vendor: 28,313 bytes, lines 1-9
1var Nre=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var MGe=Nre((BGe,tb)=>{function Are(e,t){for(var a=0;a<t.length;a++){const n=t[a];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(n,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}}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 r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function a(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=a(r);fetch(r.href,i)}})();var E0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $j={exports:{}},gh={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var nR;function Sre(){if(nR)return gh;nR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(n,r,i){var o=null;if(i!==void 0&&(o=""+i),r.key!==void 0&&(o=""+r.key),"key"in r){i={};for(var l in r)l!=="key"&&(i[l]=r[l])}else i=r;return r=i.ref,{$$typeof:e,type:n,key:o,ref:r!==void 0?r:null,props:i}}return gh.Fragment=t,gh.jsx=a,gh.jsxs=a,gh}var sR;function Cre(){return sR||(sR=1,$j.exports=Sre()),$j.exports}var s=Cre(),Nu=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(){}},Tre={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Dre=class{#t=Tre;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Wd=new Dre;function Ere(e){setTimeout(e,0)}var du=typeof window>"u"||"Deno"in globalThis;function Is(){}function Mre(e,t){return typeof e=="function"?e(t):e}function G5(e){return typeof e=="number"&&e>=0&&e!==1/0}function gV(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Dc(e,t){return typeof e=="function"?e(t):e}function ri(e,t){return typeof e=="function"?e(t):e}function rR(e,t){const{type:a="all",exact:n,fetchStatus:r,predicate:i,queryKey:o,stale:l}=e;if(o){if(n){if(t.queryHash!==QT(o,t.options))return!1}else if(!Ag(t.queryKey,o))return!1}if(a!=="all"){const c=t.isActive();if(a==="active"&&!c||a==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||r&&r!==t.state.fetchStatus||i&&!i(t))}function iR(e,t){const{exact:a,status:n,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(a){if(_c(t.options.mutationKey)!==_c(i))return!1}else if(!Ag(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||r&&!r(t))}function QT(e,t){return(t?.queryKeyHashFn||_c)(e)}function _c(e){return JSON.stringify(e,(t,a)=>H5(a)?Object.keys(a).sort().reduce((n,r)=>(n[r]=a[r],n),{}):a)}function Ag(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(a=>Ag(e[a],t[a])):!1}var Ore=Object.prototype.hasOwnProperty;function WT(e,t){if(e===t)return e;const a=oR(e)&&oR(t);if(!a&&!(H5(e)&&H5(t)))return t;const r=(a?e:Object.keys(e)).length,i=a?t:Object.keys(t),o=i.length,l=a?new Array(o):{};let c=0;for(let d=0;d<o;d++){const m=a?d:i[d],f=e[m],h=t[m];if(f===h){l[m]=f,(a?d<r:Ore.call(e,m))&&c++;continue}if(f===null||h===null||typeof f!="object"||typeof h!="object"){l[m]=h;continue}const x=WT(f,h);l[m]=x,x===f&&c++}return r===o&&c===r?e:l}function Sg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(e[a]!==t[a])return!1;return!0}function oR(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function H5(e){if(!lR(e))return!1;const t=e.constructor;if(t===void 0)return!0;const a=t.prototype;return!(!lR(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lR(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rre(e){return new Promise(t=>{Wd.setTimeout(t,e)})}function q5(e,t,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,t):a.structuralSharing!==!1?WT(e,t):t}function zre(e,t,a=0){const n=[...e,t];return a&&n.length>a?n.slice(1):n}function _re(e,t,a=0){const n=[t,...e];return a&&n.length>a?n.slice(0,-1):n}var Tr=Symbol();function xV(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Tr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bV(e,t){return typeof e=="function"?e(...t):!!e}var Ire=class extends Nu{#t;#e;#a;constructor(){super(),this.#a=e=>{if(!du&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#a=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},KT=new Ire;function U5(){let e,t;const a=new Promise((r,i)=>{e=r,t=i});a.status="pending",a.catch(()=>{});function n(r){Object.assign(a,r),delete a.resolve,delete a.reject}return a.resolve=r=>{n({status:"fulfilled",value:r}),e(r)},a.reject=r=>{n({status:"rejected",reason:r}),t(r)},a}var Lre=Ere;function Fre(){let e=[],t=0,a=l=>{l()},n=l=>{l()},r=Lre;const i=l=>{t?e.push(l):r(()=>{a(l)})},o=()=>{const l=e;e=[],l.length&&r(()=>{n(()=>{l.forEach(c=>{a(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{a=l},setBatchNotifyFunction:l=>{n=l},setScheduler:l=>{r=l}}}var On=Fre(),Bre=class extends Nu{#t=!0;#e;#a;constructor(){super(),this.#a=e=>{if(!du&&window.addEventListener){const t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#a=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#t}},Jv=new Bre;function Gre(e){return Math.min(1e3*2**e,3e4)}function vV(e){return(e??"online")==="online"?Jv.isOnline():!0}var V5=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function yV(e){let t=!1,a=0,n;const r=U5(),i=()=>r.status!=="pending",o=y=>{if(!i()){const w=new V5(y);h(w),e.onCancel?.(w)}},l=()=>{t=!0},c=()=>{t=!1},d=()=>KT.isFocused()&&(e.networkMode==="always"||Jv.isOnline())&&e.canRun(),m=()=>vV(e.networkMode)&&e.canRun(),f=y=>{i()||(n?.(),r.resolve(y))},h=y=>{i()||(n?.(),r.reject(y))},x=()=>new Promise(y=>{n=w=>{(i()||d())&&y(w)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),b=()=>{if(i())return;let y;const w=a===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(j){y=Promise.reject(j)}Promise.resolve(y).then(f).catch(j=>{if(i())return;const N=e.retry??(du?0:3),k=e.retryDelay??Gre,D=typeof k=="function"?k(a,j):k,C=N===!0||typeof N=="number"&&a<N||typeof N=="function"&&N(a,j);if(t||!C){h(j);return}a++,e.onFail?.(a,j),Rre(D).then(()=>d()?void 0:x()).then(()=>{t?h(j):b()})})};return{promise:r,status:()=>r.status,cancel:o,continue:()=>(n?.(),r),cancelRetry:l,continueRetry:c,canStart:m,start:()=>(m()?b():x().then(b),r)}}var wV=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G5(this.gcTime)&&(this.#t=Wd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(du?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Wd.clearTimeout(this.#t),this.#t=void 0)}},Hre=class extends wV{#t;#e;#a;#s;#n;#r;#o;constructor(e){super(),this.#o=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#a=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=cR(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=cR(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(e,t){const a=q5(this.state.data,e,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(Is).catch(Is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>ri(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Tr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Dc(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!gV(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#o?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const l=this.observers.find(c=>c.options.queryFn);l&&this.setOptions(l.options)}const a=new AbortController,n=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#o=!0,a.signal)})},r=()=>{const l=xV(this.options,t),d=(()=>{const m={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(m),m})();return this.#o=!1,this.options.persister?this.options.persister(l,d,this):l(d)},o=(()=>{const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:r};return n(l),l})();this.options.behavior?.onFetch(o,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#i({type:"fetch",meta:o.fetchOptions?.meta}),this.#n=yV({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof V5&&l.revert&&this.setState({...this.#e,fetchStatus:"idle"}),a.abort()},onFail:(l,c)=>{this.#i({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await this.#n.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#a.config.onSuccess?.(l,this),this.#a.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof V5){if(l.silent)return this.#n.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#i({type:"error",error:l}),this.#a.config.onError?.(l,this),this.#a.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#i(e){const t=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...PV(a.data,this.options),fetchMeta:e.meta??null};case"success":const n={...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?n:void 0,n;case"error":const r=e.error;return{...a,error:r,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=t(this.state),On.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function PV(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vV(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function cR(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,a=t!==void 0,n=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var Lx=class extends Nu{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=U5(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#a=void 0;#s=void 0;#n;#r;#o;#i;#m;#u;#p;#c;#d;#l;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),dR(this.#e,this.options)?this.#f():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Q5(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Q5(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,a=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ri(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#P(),this.#e.setOptions(this.options),t._defaulted&&!Sg(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const n=this.hasListeners();n&&uR(this.#e,a,this.options,t)&&this.#f(),this.updateResult(),n&&(this.#e!==a||ri(this.options.enabled,this.#e)!==ri(t.enabled,this.#e)||Dc(this.options.staleTime,this.#e)!==Dc(t.staleTime,this.#e))&&this.#g();const r=this.#x();n&&(this.#e!==a||ri(this.options.enabled,this.#e)!==ri(t.enabled,this.#e)||r!==this.#l)&&this.#b(r)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),a=this.createResult(t,e);return Ure(this,a)&&(this.#s=a,this.#r=this.options,this.#n=this.#e.state),a}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(a,n)=>(this.trackProp(n),t?.(n),n==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(a,n))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),a=this.#t.getQueryCache().build(this.#t,t);return a.fetch().then(()=>this.createResult(a,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#f(e){this.#P();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Is)),t}#g(){this.#y();const e=Dc(this.options.staleTime,this.#e);if(du||this.#s.isStale||!G5(e))return;const a=gV(this.#s.dataUpdatedAt,e)+1;this.#c=Wd.setTimeout(()=>{this.#s.isStale||this.updateResult()},a)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#w(),this.#l=e,!(du||ri(this.options.enabled,this.#e)===!1||!G5(this.#l)||this.#l===0)&&(this.#d=Wd.setInterval(()=>{(this.options.refetchIntervalInBackground||KT.isFocused())&&this.#f()},this.#l))}#v(){this.#g(),this.#b(this.#x())}#y(){this.#c&&(Wd.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#d&&(Wd.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const a=this.#e,n=this.options,r=this.#s,i=this.#n,o=this.#r,c=e!==a?e.state:this.#a,{state:d}=e;let m={...d},f=!1,h;if(t._optimisticResults){const E=this.hasListeners(),R=!E&&dR(e,t),F=E&&uR(e,a,t,n);(R||F)&&(m={...m,...PV(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:b,status:y}=m;h=m.data;let w=!1;if(t.placeholderData!==void 0&&h===void 0&&y==="pending"){let E;r?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(E=r.data,w=!0):E=typeof t.placeholderData=="function"?t.placeholderData(this.#p?.state.data,this.#p):t.placeholderData,E!==void 0&&(y="success",h=q5(r?.data,E,t),f=!0)}if(t.select&&h!==void 0&&!w)if(r&&h===i?.data&&t.select===this.#m)h=this.#u;else try{this.#m=t.select,h=t.select(h),h=q5(r?.data,h,t),this.#u=h,this.#i=null}catch(E){this.#i=E}this.#i&&(x=this.#i,h=this.#u,b=Date.now(),y="error");const j=m.fetchStatus==="fetching",N=y==="pending",k=y==="error",D=N&&j,C=h!==void 0,A={status:y,fetchStatus:m.fetchStatus,isPending:N,isSuccess:y==="success",isError:k,isInitialLoading:D,isLoading:D,data:h,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>c.dataUpdateCount||m.errorUpdateCount>c.errorUpdateCount,isFetching:j,isRefetching:j&&!N,isLoadingError:k&&!C,isPaused:m.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:k&&C,isStale:$T(e,t),refetch:this.refetch,promise:this.#o,isEnabled:ri(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const E=I=>{A.status==="error"?I.reject(A.error):A.data!==void 0&&I.resolve(A.data)},R=()=>{const I=this.#o=A.promise=U5();E(I)},F=this.#o;switch(F.status){case"pending":e.queryHash===a.queryHash&&E(F);break;case"fulfilled":(A.status==="error"||A.data!==F.value)&&R();break;case"rejected":(A.status!=="error"||A.error!==F.reason)&&R();break}}return A}updateResult(){const e=this.#s,t=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#r=this.options,this.#n.data!==void 0&&(this.#p=this.#e),Sg(t,e))return;this.#s=t;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,r=typeof n=="function"?n():n;if(r==="all"||!r&&!this.#h.size)return!0;const i=new Set(r??this.#h);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(o=>{const l=o;return this.#s[l]!==e[l]&&i.has(l)})};this.#j({listeners:a()})}#P(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#a=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#j(e){On.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qre(e,t){return ri(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dR(e,t){return qre(e,t)||e.state.data!==void 0&&Q5(e,t,t.refetchOnMount)}function Q5(e,t,a){if(ri(t.enabled,e)!==!1&&Dc(t.staleTime,e)!=="static"){const n=typeof a=="function"?a(e):a;return n==="always"||n!==!1&&$T(e,t)}return!1}function uR(e,t,a,n){return(e!==t||ri(n.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&$T(e,a)}function $T(e,t){return ri(t.enabled,e)!==!1&&e.isStaleByTime(Dc(t.staleTime,e))}function Ure(e,t){return!Sg(e.getCurrentResult(),t)}function ey(e){return{onFetch:(t,a)=>{const n=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let m=!1;const f=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},h=xV(t.options,t.fetchOptions),x=async(b,y,w)=>{if(m)return Promise.reject();if(y==null&&b.pages.length)return Promise.resolve(b);const N=(()=>{const S={client:t.client,queryKey:t.queryKey,pageParam:y,direction:w?"backward":"forward",meta:t.options.meta};return f(S),S})(),k=await h(N),{maxPages:D}=t.options,C=w?_re:zre;return{pages:C(b.pages,k,D),pageParams:C(b.pageParams,y,D)}};if(r&&i.length){const b=r==="backward",y=b?jV:W5,w={pages:i,pageParams:o},j=y(n,w);l=await x(w,j,b)}else{const b=e??i.length;do{const y=c===0?o[0]??n.initialPageParam:W5(n,l);if(c>0&&y==null)break;l=await x(l,y),c++}while(c<b)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=d}}}function W5(e,{pages:t,pageParams:a}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,a[n],a):void 0}function jV(e,{pages:t,pageParams:a}){return t.length>0?e.getPreviousPageParam?.(t[0],t,a[0],a):void 0}function Vre(e,t){return t?W5(e,t)!=null:!1}function Qre(e,t){return!t||!e.getPreviousPageParam?!1:jV(e,t)!=null}var kV=class extends Lx{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:ey()})}getOptimisticResult(e){return e.behavior=ey(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:a}=e,n=super.createResult(e,t),{isFetching:r,isRefetching:i,isError:o,isRefetchError:l}=n,c=a.fetchMeta?.fetchMore?.direction,d=o&&c==="forward",m=r&&c==="forward",f=o&&c==="backward",h=r&&c==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Vre(t,a.data),hasPreviousPage:Qre(t,a.data),isFetchNextPageError:d,isFetchingNextPage:m,isFetchPreviousPageError:f,isFetchingPreviousPage:h,isRefetchError:l&&!d&&!f,isRefetching:i&&!m&&!h}}},Wre=class extends wV{#t;#e;#a;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#a=e.mutationCache,this.#e=[],this.state=e.state||NV(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=yV({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#n({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const n=this.state.status==="pending",r=!this.#s.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:r}),await this.#a.config.onMutate?.(e,this,a);const o=await this.options.onMutate?.(e,a);o!==this.state.context&&this.#n({type:"pending",context:o,variables:e,isPaused:r})}const i=await this.#s.start();return await this.#a.config.onSuccess?.(i,e,this.state.context,this,a),await this.options.onSuccess?.(i,e,this.state.context,a),await this.#a.config.onSettled?.(i,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(i,null,e,this.state.context,a),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#a.config.onError?.(i,e,this.state.context,this,a),await this.options.onError?.(i,e,this.state.context,a),await this.#a.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(void 0,i,e,this.state.context,a),i}finally{this.#n({type:"error",error:i})}}finally{this.#a.runNext(this)}}#n(e){const t=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),On.batch(()=>{this.#e.forEach(a=>{a.onMutationUpdate(e)}),this.#a.notify({mutation:this,type:"updated",action:e})})}};function NV(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kre=class extends Nu{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#a=0}#t;#e;#a;build(e,t,a){const n=new Wre({client:e,mutationCache:this,mutationId:++this.#a,options:e.defaultMutationOptions(t),state:a});return this.add(n),n}add(e){this.#t.add(e);const t=M0(e);if(typeof t=="string"){const a=this.#e.get(t);a?a.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=M0(e);if(typeof t=="string"){const a=this.#e.get(t);if(a)if(a.length>1){const n=a.indexOf(e);n!==-1&&a.splice(n,1)}else a[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=M0(e);if(typeof t=="string"){const n=this.#e.get(t)?.find(r=>r.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=M0(e);return typeof t=="string"?this.#e.get(t)?.find(n=>
9n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){On.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(a=>iR(t,a))}findAll(e={}){return this.getAll().filter(t=>iR(e,t))}notify(e){On.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return On.batch(()=>Promise.all(e.map(t=>t.continue().catch(Is))))}};function M0(e){return e.options.scope?.id}var $re=class extends Nu{#t;#e=void 0;#a;#s;constructor(t,a){super(),this.#t=t,this.setOptions(a),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const a=this.options;this.options=this.#t.defaultMutationOptions(t),Sg(this.options,a)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),a?.mutationKey&&this.options.mutationKey&&_c(a.mutationKey)!==_c(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(t){this.#n(),this.#r(t)}getCurrentResult(){return this.#e}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#n(),this.#r()}mutate(t,a){return this.#s=a,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(t)}#n(){const t=this.#a?.state??NV();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#r(t){On.batch(()=>{if(this.#s&&this.hasListeners()){const a=this.#e.variables,n=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#s.onSuccess?.(t.data,a,n,r),this.#s.onSettled?.(t.data,null,a,n,r)):t?.type==="error"&&(this.#s.onError?.(t.error,a,n,r),this.#s.onSettled?.(void 0,t.error,a,n,r))}this.listeners.forEach(a=>{a(this.#e)})})}};function pR(e,t){const a=new Set(t);return e.filter(n=>!a.has(n))}function Xre(e,t,a){const n=e.slice(0);return n[t]=a,n}var Yre=class extends Nu{#t;#e;#a;#s;#n;#r;#o;#i;#m=[];constructor(e,t,a){super(),this.#t=e,this.#s=a,this.#a=[],this.#n=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(e=>{e.subscribe(t=>{this.#d(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t){this.#a=e,this.#s=t,On.batch(()=>{const a=this.#n,n=this.#c(this.#a);this.#m=n,n.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const r=n.map(m=>m.observer),i=r.map(m=>m.getCurrentResult()),o=a.length!==r.length,l=r.some((m,f)=>m!==a[f]),c=o||l,d=c?!0:i.some((m,f)=>{const h=this.#e[f];return!h||!Sg(m,h)});!c&&!d||(c&&(this.#n=r),this.#e=i,this.hasListeners()&&(c&&(pR(a,r).forEach(m=>{m.destroy()}),pR(r,a).forEach(m=>{m.subscribe(f=>{this.#d(m,f)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){const a=this.#c(e),n=a.map(r=>r.observer.getOptimisticResult(r.defaultedQueryOptions));return[n,r=>this.#p(r??n,t),()=>this.#u(n,a)]}#u(e,t){return t.map((a,n)=>{const r=e[n];return a.defaultedQueryOptions.notifyOnChangeProps?r:a.observer.trackResult(r,i=>{t.forEach(o=>{o.observer.trackProp(i)})})})}#p(e,t){return t?((!this.#r||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#r=WT(this.#r,t(e))),this.#r):e}#c(e){const t=new Map(this.#n.map(n=>[n.options.queryHash,n])),a=[];return e.forEach(n=>{const r=this.#t.defaultQueryOptions(n),i=t.get(r.queryHash);i?a.push({defaultedQueryOptions:r,observer:i}):a.push({defaultedQueryOptions:r,observer:new Lx(this.#t,r)})}),a}#d(e,t){const a=this.#n.indexOf(e);a!==-1&&(this.#e=Xre(this.#e,a,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#r,t=this.#u(this.#e,this.#m),a=this.#p(t,this.#s?.combine);e!==a&&On.batch(()=>
vendor: 5,423 bytes, lines 9-17
9{this.listeners.forEach(n=>{n(this.#e)})})}}},Zre=class extends Nu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,a){const n=t.queryKey,r=t.queryHash??QT(n,t);let i=this.get(r);return i||(i=new Hre({client:e,queryKey:n,queryHash:r,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){On.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(a=>rR(t,a))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(a=>rR(e,a)):t}notify(e){On.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){On.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){On.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Jre=class{#t;#e;#a;#s;#n;#r;#o;#i;constructor(e={}){this.#t=e.queryCache||new Zre,this.#e=e.mutationCache||new Kre,this.#a=e.defaultOptions||{},this.#s=new Map,this.#n=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=KT.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Jv.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=this.#t.build(this,t),n=a.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Dc(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:a})=>{const n=a.data;return[t,n]})}setQueryData(e,t,a){const n=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(n.queryHash)?.state.data,o=Mre(t,i);if(o!==void 0)return this.#t.build(this,n).setData(o,{...a,manual:!0})}setQueriesData(e,t,a){return On.batch(()=>this.#t.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,a)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;On.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=this.#t;return On.batch(()=>(a.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const a={revert:!0,...t},n=On.batch(()=>this.#t.findAll(e).map(r=>r.cancel(a)));return Promise.all(n).then(Is).catch(Is)}invalidateQueries(e,t={}){return On.batch(()=>(this.#t.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},n=On.batch(()=>this.#t.findAll(e).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let i=r.fetch(void 0,a);return a.throwOnError||(i=i.catch(Is)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(Is)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=this.#t.build(this,t);return a.isStaleByTime(Dc(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Is).catch(Is)}fetchInfiniteQuery(e){return e.behavior=ey(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Is).catch(Is)}ensureInfiniteQueryData(e){return e.behavior=ey(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Jv.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#s.set(_c(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],a={};return t.forEach(n=>{Ag(e,n.queryKey)&&Object.assign(a,n.defaultOptions)}),a}setMutationDefaults(e,t){this.#n.set(_c(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],a={};return t.forEach(n=>{Ag(e,n.mutationKey)&&Object.assign(a,n.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QT(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===Tr&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Xj={exports:{}},ea={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var mR;
vendor: 4,518 bytes, line 17
17function eie(){if(mR)return ea;mR=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=h&&O[h]||O["@@iterator"],typeof O=="function"?O:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,w={};function j(O,Y,Q){this.props=O,this.context=Y,this.refs=w,this.updater=Q||b}j.prototype.isReactComponent={},j.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,Y,"setState")},j.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function N(){}N.prototype=j.prototype;function k(O,Y,Q){this.props=O,this.context=Y,this.refs=w,this.updater=Q||b}var D=k.prototype=new N;D.constructor=k,y(D,j.prototype),D.isPureReactComponent=!0;var C=Array.isArray;function S(){}var A={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function R(O,Y,Q){var U=Q.ref;return{$$typeof:e,type:O,key:Y,ref:U!==void 0?U:null,props:Q}}function F(O,Y){return R(O.type,Y,O.props)}function I(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function H(O){var Y={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(Q){return Y[Q]})}var _=/\/+/g;function V(O,Y){return typeof O=="object"&&O!==null&&O.key!=null?H(""+O.key):Y.toString(36)}function W(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(S,S):(O.status="pending",O.then(function(Y){O.status==="pending"&&(O.status="fulfilled",O.value=Y)},function(Y){O.status==="pending"&&(O.status="rejected",O.reason=Y)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function B(O,Y,Q,U,oe){var X=typeof O;(X==="undefined"||X==="boolean")&&(O=null);var ne=!1;if(O===null)ne=!0;else switch(X){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(O.$$typeof){case e:case t:ne=!0;break;case m:return ne=O._init,B(ne(O._payload),Y,Q,U,oe)}}if(ne)return oe=oe(O),ne=U===""?"."+V(O,0):U,C(oe)?(Q="",ne!=null&&(Q=ne.replace(_,"$&/")+"/"),B(oe,Y,Q,"",function(Ae){return Ae})):oe!=null&&(I(oe)&&(oe=F(oe,Q+(oe.key==null||O&&O.key===oe.key?"":(""+oe.key).replace(_,"$&/")+"/")+ne)),Y.push(oe)),1;ne=0;var ge=U===""?".":U+":";if(C(O))for(var me=0;me<O.length;me++)U=O[me],X=ge+V(U,me),ne+=B(U,Y,Q,X,oe);else if(me=x(O),typeof me=="function")for(O=me.call(O),me=0;!(U=O.next()).done;)U=U.value,X=ge+V(U,me++),ne+=B(U,Y,Q,X,oe);else if(X==="object"){if(typeof O.then=="function")return B(W(O),Y,Q,U,oe);throw Y=String(O),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ne}function K(O,Y,Q){if(O==null)return O;var U=[],oe=0;return B(O,U,"","",function(X){return Y.call(Q,X,oe++)}),U}function ae(O){if(O._status===-1){var Y=O._result;Y=Y(),Y.then(function(Q){(O._status===0||O._status===-1)&&(O._status=1,O._result=Q)},function(Q){(O._status===0||O._status===-1)&&(O._status=2,O._result=Q)}),O._status===-1&&(O._status=0,O._result=Y)}if(O._status===1)return O._result.default;throw O._result}var $=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Z={map:K,forEach:function(O,Y,Q){K(O,function(){Y.apply(this,arguments)},Q)},count:function(O){var Y=0;return K(O,function(){Y++}),Y},toArray:function(O){return K(O,function(Y){return Y})||[]},only:function(O){if(!I(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};
vendor: 4,108 bytes, line 17
17return ea.Activity=f,ea.Children=Z,ea.Component=j,ea.Fragment=a,ea.Profiler=r,ea.PureComponent=k,ea.StrictMode=n,ea.Suspense=c,ea.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,ea.__COMPILER_RUNTIME={__proto__:null,c:function(O){return A.H.useMemoCache(O)}},ea.cache=function(O){return function(){return O.apply(null,arguments)}},ea.cacheSignal=function(){return null},ea.cloneElement=function(O,Y,Q){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var U=y({},O.props),oe=O.key;if(Y!=null)for(X in Y.key!==void 0&&(oe=""+Y.key),Y)!E.call(Y,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&Y.ref===void 0||(U[X]=Y[X]);var X=arguments.length-2;if(X===1)U.children=Q;else if(1<X){for(var ne=Array(X),ge=0;ge<X;ge++)ne[ge]=arguments[ge+2];U.children=ne}return R(O.type,oe,U)},ea.createContext=function(O){return O={$$typeof:o,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:i,_context:O},O},ea.createElement=function(O,Y,Q){var U,oe={},X=null;if(Y!=null)for(U in Y.key!==void 0&&(X=""+Y.key),Y)E.call(Y,U)&&U!=="key"&&U!=="__self"&&U!=="__source"&&(oe[U]=Y[U]);var ne=arguments.length-2;if(ne===1)oe.children=Q;else if(1<ne){for(var ge=Array(ne),me=0;me<ne;me++)ge[me]=arguments[me+2];oe.children=ge}if(O&&O.defaultProps)for(U in ne=O.defaultProps,ne)oe[U]===void 0&&(oe[U]=ne[U]);return R(O,X,oe)},ea.createRef=function(){return{current:null}},ea.forwardRef=function(O){return{$$typeof:l,render:O}},ea.isValidElement=I,ea.lazy=function(O){return{$$typeof:m,_payload:{_status:-1,_result:O},_init:ae}},ea.memo=function(O,Y){return{$$typeof:d,type:O,compare:Y===void 0?null:Y}},ea.startTransition=function(O){var Y=A.T,Q={};A.T=Q;try{var U=O(),oe=A.S;oe!==null&&oe(Q,U),typeof U=="object"&&U!==null&&typeof U.then=="function"&&U.then(S,$)}catch(X){$(X)}finally{Y!==null&&Q.types!==null&&(Y.types=Q.types),A.T=Y}},ea.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},ea.use=function(O){return A.H.use(O)},ea.useActionState=function(O,Y,Q){return A.H.useActionState(O,Y,Q)},ea.useCallback=function(O,Y){return A.H.useCallback(O,Y)},ea.useContext=function(O){return A.H.useContext(O)},ea.useDebugValue=function(){},ea.useDeferredValue=function(O,Y){return A.H.useDeferredValue(O,Y)},ea.useEffect=function(O,Y){return A.H.useEffect(O,Y)},ea.useEffectEvent=function(O){return A.H.useEffectEvent(O)},ea.useId=function(){return A.H.useId()},ea.useImperativeHandle=function(O,Y,Q){return A.H.useImperativeHandle(O,Y,Q)},ea.useInsertionEffect=function(O,Y){return A.H.useInsertionEffect(O,Y)},ea.useLayoutEffect=function(O,Y){return A.H.useLayoutEffect(O,Y)},ea.useMemo=function(O,Y){return A.H.useMemo(O,Y)},ea.useOptimistic=function(O,Y){return A.H.useOptimistic(O,Y)},ea.useReducer=function(O,Y,Q){return A.H.useReducer(O,Y,Q)},ea.useRef=function(O){return A.H.useRef(O)},ea.useState=function(O){return A.H.useState(O)},ea.useSyncExternalStore=function(O,Y,Q){return A.H.useSyncExternalStore(O,Y,Q)},ea.useTransition=function(){return A.H.useTransition()},ea.version="19.2.1",ea}var fR;function q1(){return fR||(fR=1,Xj.exports=eie()),Xj.exports}var P=q1();const ie=Fa(P),U1=Are({__proto__:null,default:ie},[P]);var AV=P.createContext(void 0),Fx=e=>{const t=P.useContext(AV);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tie=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(AV.Provider,{value:e,children:t})),SV=P.createContext(!1),CV=()=>P.useContext(SV);SV.Provider;function aie(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var nie=P.createContext(aie()),TV=()=>P.useContext(nie),DV=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},EV=e=>{P.useEffect(()=>{e.clearReset()},[e])},MV=({result:e,errorResetBoundary:t,throwOnError:a,query:n,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(r&&e.data===void 0||bV(a,[e.error,n])),XT=(e,t)=>t.state.data===void 0,OV=e=>{if(e.suspense){const a=r=>
17r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>a(n(...r)):a(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},RV=(e,t)=>e.isLoading&&e.isFetching&&!t,K5=(e,t)=>e?.suspense&&t.isPending,ty=(e,t,a)=>t.fetchOptimistic(e).catch(()=>{a.clearReset()});function zV({queries:e,...t},a){const n=Fx(a),r=CV(),i=TV(),o=P.useMemo(()=>e.map(y=>{const w=n.defaultQueryOptions(y);return w._optimisticResults=r?"isRestoring":"optimistic",w}),[e,n,r]);o.forEach(y=>{OV(y),DV(y,i)}),EV(i);const[l]=P.useState(()=>new Yre(n,o,t)),[c,d,m]=l.getOptimisticResult(o,t.combine),f=!r&&t.subscribed!==!1;P.useSyncExternalStore(P.useCallback(y=>f?l.subscribe(On.batchCalls(y)):Is,[l,f]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),P.useEffect(()=>{l.setQueries(o,t)},[o,t,l]);const x=c.some((y,w)=>K5(o[w],y))?c.flatMap((y,w)=>{const j=o[w];if(j){const N=new Lx(n,j);if(K5(j,y))return ty(j,N,i);RV(y,r)&&ty(j,N,i)}return[]}):[];if(x.length>0)throw Promise.all(x);const b=c.find((y,w)=>{const j=o[w];return j&&MV({result:y,errorResetBoundary:i,throwOnError:j.throwOnError,query:n.getQueryCache().get(j.queryHash),suspense:j.suspense})});if(b?.error)throw b.error;return d(m())}function V1(e,t,a){const n=CV(),r=TV(),i=Fx(a),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=n?"isRestoring":"optimistic",OV(o),DV(o,r),EV(r);const l=!i.getQueryCache().get(o.queryHash),[c]=P.useState(()=>new t(i,o)),d=c.getOptimisticResult(o),m=!n&&e.subscribed!==!1;if(P.useSyncExternalStore(P.useCallback(f=>{const h=m?c.subscribe(On.batchCalls(f)):Is;return c.updateResult(),h},[c,m]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),P.useEffect(()=>{c.setOptions(o)},[o,c]),K5(o,d))throw ty(o,c,r);if(MV({result:d,errorResetBoundary:r,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw d.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!du&&RV(d,n)&&(l?ty(o,c,r):i.getQueryCache().get(o.queryHash)?.promise)?.catch(Is).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?d:c.trackResult(d)}function sie(e,t){return V1(e,Lx,t)}function rie(e,t){return V1({...e,enabled:!0,suspense:!0,throwOnError:XT,placeholderData:void 0},Lx,t)}function iie(e,t){return V1({...e,enabled:!0,suspense:!0,throwOnError:XT},kV,t)}function oie(e,t){return zV({...e,queries:e.queries.map(a=>({...a,suspense:!0,throwOnError:XT,enabled:!0,placeholderData:void 0}))},t)}function lie(e,t){const a=Fx(t);a.getQueryState(e.queryKey)||a.prefetchQuery(e)}function cie(e,t){const a=Fx(t);a.getQueryState(e.queryKey)||a.prefetchInfiniteQuery(e)}function die(e,t){const a=Fx(t),[n]=P.useState(()=>new $re(a,e));P.useEffect(()=>{n.setOptions(e)},[n,e]);const r=P.useSyncExternalStore(P.useCallback(o=>n.subscribe(On.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=P.useCallback((o,l)=>{n.mutate(o,l).catch(Is)},[n]);if(r.error&&bV(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}function uie(e,t){return V1(e,kV,t)}function uu(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const pie=typeof Symbol=="function"&&!!Symbol.asyncIterator;function _V(e){return pie&&uu(e)&&Symbol.asyncIterator in e}var mie=Object.create,IV=Object.defineProperty,fie=Object.getOwnPropertyDescriptor,LV=Object.getOwnPropertyNames,hie=Object.getPrototypeOf,gie=Object.prototype.hasOwnProperty,Bx=(e,t)=>function(){return t||(0,e[LV(e)[0]])((t={exports:{}}).exports,t),t.exports},xie=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=LV(t),i=0,o=r.length,l;i<o;i++)l=r[i],!gie.call(e,l)&&l!==a&&IV(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(n=fie(t,l))||n.enumerable});return e},Q1=(e,t,a)=>(a=e!=null?mie(hie(e)):{},xie(IV(a,"default",{value:e,enumerable:!0}),e));const FV=()=>{},hR=e=>{Object.freeze&&Object.freeze(e)};function BV(e,t,a){var n;const r=t.join(".");return(n=a[r])!==null&&n!==void 0||(a[r]=new Proxy(FV,{get(i,o){if(!(typeof o!="string"||o==="then"))return BV(e,[...t,o],a)},apply(i,o,l){const c=t[t.length-1];let d={args:l,path:t};return c==="call"?d={args:l.length>=2?[l[1]]:[],path:t.slice(0,-1)}:c==="apply"&&(d={args:l.length>=2?l[1]:[],path:t.slice(0,-1)}),hR(d.args),hR(d.path),e(d)}})),a[r]}const W1=e=>BV(e,[],Object.create(null)),YT=e=>new Proxy(FV,{get(t,a){if(a!=="then")return e(a)}});var GV=Bx({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function a(n){"@babel/helpers - typeof";return t.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r}
17,t.exports.__esModule=!0,t.exports.default=t.exports,a(n)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),bie=Bx({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var a=GV().default;function n(r,i){if(a(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var l=o.call(r,i||"default");if(a(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),vie=Bx({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var a=GV().default,n=bie();function r(i){var o=n(i,"string");return a(o)=="symbol"?o:o+""}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),HV=Bx({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var a=vie();function n(r,i,o){return(i=a(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ZT=Bx({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var a=HV();function n(i,o){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);o&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),l.push.apply(l,c)}return l}function r(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?n(Object(l),!0).forEach(function(c){a(i,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEac
17h(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(l,c))})}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Q1(ZT());Q1(HV());var O0=Q1(ZT());function yie(e,t){if("error"in e){const n=t.deserialize(e.error);return{ok:!1,error:(0,O0.default)((0,O0.default)({},e),{},{error:n})}}return{ok:!0,result:(0,O0.default)((0,O0.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Yj=class extends Error{constructor(){super("Unable to transform response from server")}};function wie(e,t){let a;try{a=yie(e,t)}catch{throw new Yj}if(!a.ok&&(!uu(a.error.error)||typeof a.error.error.code!="number"))throw new Yj;if(a.ok&&!uu(a.result))throw new Yj;return a}Q1(ZT());function K1(e){const t={subscribe(a){let n=null,r=!1,i=!1,o=!1;function l(){if(n===null){o=!0;return}i||(i=!0,typeof n=="function"?n():n&&n.unsubscribe())}return n=e({next(c){var d;r||(d=a.next)===null||d===void 0||d.call(a,c)},error(c){var d;r||(r=!0,(d=a.error)===null||d===void 0||d.call(a,c),l())},complete(){var c;r||(r=!0,(c=a.complete)===null||c===void 0||c.call(a),l())}}),o&&l(),{unsubscribe:l}},pipe(...a){return a.reduce(Pie,t)}};return t}function Pie(e,t){return t(e)}function jie(e){const t=new AbortController;return new Promise((n,r)=>{let i=!1;function o(){i||(i=!0,l.unsubscribe())}t.signal.addEventListener("abort",()=>{r(t.signal.reason)});const l=e.subscribe({next(c){i=!0,n(c),o()},error(c){r(c)},complete(){t.abort(),o()}})})}var kie=Object.create,qV=Object.defineProperty,Nie=Object.getOwnPropertyDescriptor,UV=Object.getOwnPropertyNames,Aie=Object.getPrototypeOf,Sie=Object.prototype.hasOwnProperty,$c=(e,t)=>function(){return t||(0,e[UV(e)[0]])((t={exports:{}}).exports,t),t.exports},Cie=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=UV(t),i=0,o=r.length,l;i<o;i++)l=r[i],!Sie.call(e,l)&&l!==a&&qV(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(n=Nie(t,l))||n.enumerable});return e},Au=(e,t,a)=>(a=e!=null?kie(Aie(e)):{},Cie(t||!e||!e.__esModule?qV(a,"default",{value:e,enumerable:!0}):a,e)),Tie=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function a(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Die=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var a=Tie();function n(r,i){if(r==null)return{};var o,l,c=a(r,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);for(l=0;l<d.length;l++)o=d[l],i.includes(o)||{}.propertyIsEnumerable.call(r,o)&&(c[o]=r[o])}return c}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),VV=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function a(n){"@babel/helpers - typeof";return t.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t.exports.__esModule=!0,t.exports.default=t.exports,a(n)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Eie=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var a=VV().default;function n(r,i){if(a(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var l=o.call(r,i||"default");if(a(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Mie=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var a=VV().default,n=Eie();function r(i){var o=n(i,"string");return a(o)=="symbol"?o:o+""}
17t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Oie=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var a=Mie();function n(r,i,o){return(i=a(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gx=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var a=Oie();function n(i,o){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);o&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),l.push.apply(l,c)}return l}function r(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?n(Object(l),!0).forEach(function(c){a(i,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(l,c))})}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Rie=Au(Die(),1),gR=Au(Gx(),1);const zie=["cursor","direction"];function po(e,t,a){const n=e.flatMap(r=>r.split("."));if(!t&&(!a||a==="any"))return n.length?[n]:[];if(a==="infinite"&&uu(t)&&("direction"in t||"cursor"in t)){const{cursor:r,direction:i}=t,o=(0,Rie.default)(t,zie);return[n,{input:o,type:"infinite"}]}return[n,(0,gR.default)((0,gR.default)({},typeof t<"u"&&t!==Tr&&{input:t}),a&&a!=="any"&&{type:a})]}function Cv(e){return po(e,void 0,"any")}var _ie=Object.create,QV=Object.defineProperty,Iie=Object.getOwnPropertyDescriptor,WV=Object.getOwnPropertyNames,Lie=Object.getPrototypeOf,Fie=Object.prototype.hasOwnProperty,To=(e,t)=>function(){return t||(0,e[WV(e)[0]])((t={exports:{}}).exports,t),t.exports},Bie=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var r=WV(t),i=0,o=r.length,l;i<o;i++)l=r[i],!Fie.call(e,l)&&l!==a&&QV(e,l,{get:(c=>t[c]).bind(null,l),enumerable:!(n=Iie(t,l))||n.enumerable});return e},Fn=(e,t,a)=>(a=e!=null?_ie(Lie(e)):{},Bie(t||!e||!e.__esModule?QV(a,"default",{value:e,enumerable:!0}):a,e)),KV=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function a(n){"@babel/helpers - typeof";return t.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t.exports.__esModule=!0,t.exports.default=t.exports,a(n)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gie=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var a=KV().default;function n(r,i){if(a(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var l=o.call(r,i||"default");if(a(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Hie=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var a=KV().default,n=Gie();function r(i){var o=n(i,"string");return a(o)=="symbol"?o:o+""}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Su=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var a=Hie();function n(r,i,o){return(i=a(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ji=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var a=Su();function n(i,o){var l=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);o&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),l.push.apply(l,c)}return l}function r(i){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};
17o%2?n(Object(l),!0).forEach(function(c){a(i,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(l,c))})}return i}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});function qie(e){return t=>{let a=0,n=null;const r=[];function i(){n||(n=t.subscribe({next(l){for(const d of r){var c;(c=d.next)===null||c===void 0||c.call(d,l)}},error(l){for(const d of r){var c;(c=d.error)===null||c===void 0||c.call(d,l)}},complete(){for(const c of r){var l;(l=c.complete)===null||l===void 0||l.call(c)}}}))}function o(){if(a===0&&n){const l=n;n=null,l.unsubscribe()}}return K1(l=>(a++,r.push(l),i(),{unsubscribe(){a--,o();const c=r.findIndex(d=>d===l);c>-1&&r.splice(c,1)}}))}}function Uie(e){let t=e;const a=[],n=o=>{t!==void 0&&o.next(t),a.push(o)},r=o=>{a.splice(a.indexOf(o),1)},i=K1(o=>(n(o),()=>{r(o)}));return i.next=o=>{if(t!==o){t=o;for(const l of a)l.next(o)}},i.get=()=>t,i}function Vie(e){return K1(t=>{function a(r=0,i=e.op){const o=e.links[r];if(!o)throw new Error("No more links to execute - did you forget to add an ending link?");return o({op:i,next(c){return a(r+1,c)}})}return a().subscribe(t)})}var R0=Fn(Su(),1),jp=Fn(Ji(),1);function Qie(e){return e instanceof hm}function Wie(e){return uu(e)&&uu(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function Kie(e,t){return typeof e=="string"?e:uu(e)&&typeof e.message=="string"?e.message:t}var hm=class Tv extends Error{constructor(t,a){var n,r;const i=a?.cause;super(t,{cause:i}),(0,R0.default)(this,"cause",void 0),(0,R0.default)(this,"shape",void 0),(0,R0.default)(this,"data",void 0),(0,R0.default)(this,"meta",void 0),this.meta=a?.meta,this.cause=i,this.shape=a==null||(n=a.result)===null||n===void 0?void 0:n.error,this.data=a==null||(r=a.result)===null||r===void 0?void 0:r.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Tv.prototype)}static from(t,a={}){const n=t;return Qie(n)?(a.meta&&(n.meta=(0,jp.default)((0,jp.default)({},n.meta),a.meta)),n):Wie(n)?new Tv(n.error.message,(0,jp.default)((0,jp.default)({},a),{},{result:n})):new Tv(Kie(n,"Unknown error"),(0,jp.default)((0,jp.default)({},a),{},{cause:n}))}};function $ie(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:a=>a,deserialize:a=>a},output:{serialize:a=>a,deserialize:a=>a}}}const xR=e=>typeof e=="function";function Xie(e){if(e)return e;if(typeof window<"u"&&xR(window.fetch))return window.fetch;if(typeof globalThis<"u"&&xR(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var tg=Fn(Ji());function Yie(e){return{url:e.url.toString(),fetch:e.fetch,transformer:$ie(e.transformer),methodOverride:e.methodOverride}}function Zie(e){const t={};for(let a=0;a<e.length;a++){const n=e[a];t[a]=n}return t}const Jie={query:"GET",mutation:"POST",subscription:"PATCH"};function $V(e){return"input"in e?e.transformer.input.serialize(e.input):Zie(e.inputs.map(t=>e.transformer.input.serialize(t)))}const XV=e=>{const t=e.url.split("?");let n=t[0].replace(/\/$/,"")+"/"+e.path;const r=[];if(t[1]&&r.push(t[1]),"inputs"in e&&r.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=$V(e);i!==void 0&&e.methodOverride!=="POST"&&r.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return r.length&&(n+="?"+r.join("&")),n},eoe=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=$V(e);return t!==void 0?JSON.stringify(t):void 0},toe=e=>roe((0,tg.default)((0,tg.default)({},e),{},{contentTypeHeader:"application/json",getUrl:XV,getBody:eoe}));var aoe=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const noe=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new aoe};async function soe(e){var t;noe(e.signal);const a=e.getUrl(e),n=e.getBody(e),r=(t=e.methodOverride)!==null&&t!==void 0?t:Jie[e.type],i=await(async()=>{const l=await e.headers();return Symbol.iterator in l?Object.fromEntries(l):l})(),o=(0,tg.default)((0,tg.default)((0,tg.default)({},e.contentTypeHeader&&r!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return Xie(e.fetch)(a,{method:r,signal:e.signal,body:n,headers:o})}async function roe(e){const t={},a=await soe(e);t.response=a;const n=await a.json();return t.responseJSON=n,{json:n,meta:t}}Fn(Ji(),1);const bR=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function vR(e){let t=null,a=null;const n=()=>{clearTimeout(a),a=null,t=null};function r(l){const c=[[]];let d=0;for(;;){const h=l[d];if(!h)break;const x=c[c.length-1];if(h.aborted){var m;(m=h.reject)===null||m===void 0||m.call(h,new Error("Aborted")),d++;continue}if(e.validate(x.concat(h).map(y=>y.key))){x.push(h),d++;continue}if(x.length===0){var f;(f=h.reject)===null||f===void 0||f.call(h,new Error("Input is too big for a single dispatch")),d++;continue}c.push([])}return c}function i(){const l=r(t);n();for(const c of l){if(!c.length)continue;const d={items:c};for(const f of c)f.batch=d;e.fetch(d.items.map(f=>f.key)).then(async f=>{await Promise.all(f.map(async(x,b)=>{const y=d.items[b];try{var w;const N=await Promise.resolve(x);(w=y.resolve)===null||w===void 0||w.call(y,N)}catch(N){var j;(j=y.reject)===null||j===void 0||j.call(y,N)}y.batch=null,y.reject=null,y.resolve=null}));for(const x of d.items){var h;(h=x.reject)===null||h===void 0||h.call(x,new Error("Missing result")),x.batch=null}}).catch(f=>{for(const x of d.items){var h;(h=x.reject)===null||h===void 0||h.call(x,f),x.batch=null}})}}function o(l){var c;const d={aborted:!1,key:l,batch:null,resolve:bR,reject:bR},m=new Promise((f,h)=>{var x;d.reject=h,d.resolve=f,(x=t)!==null&&x!==void 0||(t=[]),t.push(d)});return(c=a)!==null&&c!==void 0||(a=setTimeout(i)),m}return{load:o}}function ioe(...e){const t=new AbortController,a=e.length;let n=0;const r=()=>{++n===a&&t.abort()};for(const i of e)i?.aborted?r():i?.addEventListener("abort",r,{once:!0});return t.signal}var z0=Fn(Ji(),1);function ooe(e){var t,a;const n=Yie(e),r=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(a=e.maxItems)!==null&&a!==void 0?a:1/0;return()=>{const o=m=>({validate(f){if(r===1/0&&i===1/0)return!0;
17if(f.length>i)return!1;const h=f.map(y=>y.path).join(","),x=f.map(y=>y.input);return XV((0,z0.default)((0,z0.default)({},n),{},{type:m,path:h,inputs:x,signal:null})).length<=r},async fetch(f){const h=f.map(N=>N.path).join(","),x=f.map(N=>N.input),b=ioe(...f.map(N=>N.signal)),y=await toe((0,z0.default)((0,z0.default)({},n),{},{path:h,inputs:x,type:m,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:f}):e.headers:{}},signal:b}));return(Array.isArray(y.json)?y.json:f.map(()=>y.json)).map(N=>({meta:y.meta,json:N}))}}),l=vR(o("query")),c=vR(o("mutation")),d={query:l,mutation:c};return({op:m})=>K1(f=>{/* istanbul ignore if -- @preserve */if(m.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const x=d[m.type].load(m);let b;return x.then(y=>{b=y;const w=wie(y.json,n.transformer.output);if(!w.ok){f.error(hm.from(w.error,{meta:y.meta}));return}f.next({context:y.meta,result:w.result}),f.complete()}).catch(y=>{f.error(hm.from(y,{meta:b?.meta}))}),()=>{}})}}Fn(Ji(),1);const YV=(e,...t)=>typeof e=="function"?e(...t):e;Fn(Su(),1);function loe(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}async function coe(e){const t=await YV(e.url);if(!e.connectionParams)return t;const n=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+n}async function doe(e){const t={method:"connectionParams",data:await YV(e)};return JSON.stringify(t)}Fn(Su(),1);var Ld=Fn(Su(),1);function uoe(e){const{promise:t,resolve:a,reject:n}=loe();return e.addEventListener("open",()=>{e.removeEventListener("error",n),a()}),e.addEventListener("error",n),t}function poe(e,{intervalMs:t,pongTimeoutMs:a}){let n,r;function i(){n=setTimeout(()=>{e.send("PING"),r=setTimeout(()=>{e.close()},a)},t)}function o(){clearTimeout(n),i()}function l(){clearTimeout(r),o()}e.addEventListener("open",i),e.addEventListener("message",({data:c})=>{clearTimeout(n),i(),c==="PONG"&&l()}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(r)})}var moe=class $5{constructor(t){var a;if((0,Ld.default)(this,"id",++$5.connectCount),(0,Ld.default)(this,"WebSocketPonyfill",void 0),(0,Ld.default)(this,"urlOptions",void 0),(0,Ld.default)(this,"keepAliveOpts",void 0),(0,Ld.default)(this,"wsObservable",Uie(null)),(0,Ld.default)(this,"openPromise",null),this.WebSocketPonyfill=(a=t.WebSocketPonyfill)!==null&&a!==void 0?a:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++$5.connectCount;const a=coe(t.urlOptions).then(n=>new t.WebSocketPonyfill(n));t.openPromise=a.then(async n=>{t.ws=n,n.addEventListener("message",function({data:r}){r==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&poe(n,t.keepAliveOpts),n.addEventListener("close",()=>{t.ws===n&&(t.ws=null)}),await uoe(n),t.urlOptions.connectionParams&&n.send(await doe(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var a;(a=t.ws)===null||a===void 0||a.close()}}};(0,Ld.default)(moe,"connectCount",0);Fn(Su(),1);Fn(Ji(),1);var Zj=Fn(Su(),1),yR=Fn(Ji(),1),$1=class{constructor(e){(0,Zj.default)(this,"links",void 0),(0,Zj.default)(this,"runtime",void 0),(0,Zj.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return Vie({links:this.links,op:(0,yR.default)((0,yR.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(qie())}async requestAsPromise(e){var t=this;try{const a=t.$request(e);return(await jie(a)).result.data}catch(a){throw hm.from(a)}}query(e,t,a){return this.requestAsPromise({type:"query",path:e,input:t,context:a?.context,signal:a?.signal})}mutation(e,t,a){return this.requestAsPromise({type:"mutation",path:e,input:t,context:a?.context,signal:a?.signal})}subscription(e,t,a){return this.$request({type:"subscription",path:e,input:t,context:a.context,signal:a.signal}).subscribe({next(r){switch(r.result.type){case"state":{var i;(i=a.onConnectionStateChange)===null||i===void 0||i.call(a,r.result);break}case"started":{var o;(o=a.onStarted)===null||o===void 0||o.call(a,{context:r.context});break}case"stopped":{var l;
17(l=a.onStopped)===null||l===void 0||l.call(a);break}case"data":case void 0:{var c;(c=a.onData)===null||c===void 0||c.call(a,r.result.data);break}}},error(r){var i;(i=a.onError)===null||i===void 0||i.call(a,r)},complete(){var r;(r=a.onComplete)===null||r===void 0||r.call(a)}})}};const ZV=Symbol.for("trpc_untypedClient"),foe={query:"query",mutate:"mutation",subscribe:"subscription"},hoe=e=>foe[e];function JV(e){const t=W1(({path:a,args:n})=>{const r=[...a],i=hoe(r.pop()),o=r.join(".");return e[i](o,...n)});return YT(a=>a===ZV?e:t[a])}function goe(e){const t=new $1(e);return JV(t)}function JT(e){return e[ZV]}Fn(Ji(),1);Fn(Ji(),1);var xoe=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function a(r){var i,o,l,c=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,l=Symbol.iterator);c--;){if(o&&(i=r[o])!=null)return i.call(r);if(l&&(i=r[l])!=null)return new n(i.call(r));o="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")}function n(r){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var l=o.done;return Promise.resolve(o.value).then(function(c){return{value:c,done:l}})}return n=function(l){this.s=l,this.n=l.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(l){var c=this.s.return;return c===void 0?Promise.resolve({value:l,done:!0}):i(c.apply(this.s,arguments))},throw:function(l){var c=this.s.return;return c===void 0?Promise.reject(l):i(c.apply(this.s,arguments))}},new n(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});Fn(xoe(),1);Fn(Ji(),1);var boe=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function a(){var n=typeof SuppressedError=="function"?SuppressedError:function(l,c){var d=Error();return d.name="SuppressedError",d.error=l,d.suppressed=c,d},r={},i=[];function o(l,c){if(c!=null){if(Object(c)!==c)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(l)var d=c[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=c[Symbol.dispose||Symbol.for("Symbol.dispose")],l))var m=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");m&&(d=function(){try{m.call(c)}catch(h){return Promise.reject(h)}}),i.push({v:c,d,a:l})}else l&&i.push({d:c,a:l});return c}return{e:r,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var c,d=this.e,m=0;function f(){for(;c=i.pop();)try{if(!c.a&&m===1)return m=0,i.push(c),Promise.resolve().then(f);if(c.d){var x=c.d.call(c.v);if(c.a)return m|=2,Promise.resolve(x).then(f,h)}else m|=1}catch(b){return h(b)}if(m===1)return d!==r?Promise.reject(d):Promise.resolve();if(d!==r)throw d}function h(x){return d=d!==r?new n(x,d):x,f()}return f()}}}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),eQ=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function a(n,r){this.v=n,this.k=r}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),voe=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var a=eQ();function n(r){return new a(r,0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),yoe=To({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var a=eQ();function n(i){return function(){return new r(i.apply(this,arguments))}}function r(i){var o,l;function c(m,f){try{var h=i[m](f),x=h.value,b=x instanceof a;Promise.resolve(b?x.v:x).then(function(y){if(b){var w=m==="return"?"return":"next";if(!x.k||y.done)return c(w,y);y=i[w](y).value}d(h.done?"return":"normal",y)},function(y){c("throw",y)})}catch(y){d("throw",y)}}function d(m,f){switch(m){case"return":o.resolve({value:f,done:!0});break;case"throw":o.reject(f);break;default:o.resolve({value:f,done:!1})}(o=o.next)?c(o.key,o.arg):l=null}this._invoke=function(m,f){return new Promise(function(h,x){var b={key:m,arg:f,resolve:h,reject:x,next:null};l?l=l.next=b:(o=l=b,c(m,f))})},typeof i.return!="function"&&(this.return=void 0)}r.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(i){return this._invoke("next",i)},r.prototype.throw=function(i){return this._invoke("throw",i)},r.prototype.return=function(i){return this._invoke("return",i)}
17,t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});Fn(boe(),1);Fn(voe(),1);Fn(yoe(),1);Fn(Ji(),1);function woe(e){return W1(({path:t,args:a})=>{var n;const r=[...t],i=r.pop();if(i==="useMutation")return e[i](r,...a);if(i==="_def")return{path:r};const[o,...l]=a,c=(n=l[0])!==null&&n!==void 0?n:{};return e[i](r,o,c)})}var Jj;const Poe=["client","ssrContext","ssrState","abortOnUnmount"],joe=(Jj=P.createContext)===null||Jj===void 0?void 0:Jj.call(U1,null),koe=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Noe(e){return W1(t=>{const a=[...t.path],n=a.pop(),r=[...t.args],i=r.shift(),o=koe(n),l=po(a,i,o);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(a,l,r[0]),queryOptions:()=>e.queryOptions(a,l,...r),fetch:()=>e.fetchQuery(l,...r),fetchInfinite:()=>e.fetchInfiniteQuery(l,r[0]),prefetch:()=>e.prefetchQuery(l,...r),prefetchInfinite:()=>e.prefetchInfiniteQuery(l,r[0]),ensureData:()=>e.ensureQueryData(l,...r),invalidate:()=>e.invalidateQueries(l,...r),reset:()=>e.resetQueries(l,...r),refetch:()=>e.refetchQueries(l,...r),cancel:()=>e.cancelQuery(l,...r),setData:()=>{e.setQueryData(l,r[0],r[1])},setQueriesData:()=>e.setQueriesData(l,r[0],r[1],r[2]),setInfiniteData:()=>{e.setInfiniteQueryData(l,r[0],r[1])},getData:()=>e.getQueryData(l),getInfiniteData:()=>e.getInfiniteQueryData(l),setMutationDefaults:()=>e.setMutationDefaults(Cv(a),i),getMutationDefaults:()=>e.getMutationDefaults(Cv(a)),isMutating:()=>e.isMutating({mutationKey:Cv(a)})}[n]()})}function Aoe(e){const t=JV(e.client),a=Noe(e);return YT(n=>{const r=n;return r==="client"?t:Poe.includes(r)?e[r]:a[n]})}var Soe=Au(Gx(),1);function wR(e){const t=e instanceof $1?e:JT(e);return W1(a=>{const n=a.path,r=n.join("."),[i,o]=a.args;return(0,Soe.default)({queryKey:po(n,i,"query"),queryFn:()=>t.query(r,i,o?.trpc)},o)})}var ek=Au(Gx(),1);function Vs(e,t,a){var n;const r=e[0];let i=(n=e[1])===null||n===void 0?void 0:n.input;if(a){var o;i=(0,ek.default)((0,ek.default)((0,ek.default)({},(o=i)!==null&&o!==void 0?o:{}),a.pageParam?{cursor:a.pageParam}:{}),{},{direction:a.direction})}return[r.join("."),i,t?.trpc]}var Coe=$c({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function a(r){var i,o,l,c=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,l=Symbol.iterator);c--;){if(o&&(i=r[o])!=null)return i.call(r);if(l&&(i=r[l])!=null)return new n(i.call(r));o="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")}function n(r){function i(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var l=o.done;return Promise.resolve(o.value).then(function(c){return{value:c,done:l}})}return n=function(l){this.s=l,this.n=l.next},n.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(l){var c=this.s.return;return c===void 0?Promise.resolve({value:l,done:!0}):i(c.apply(this.s,arguments))},throw:function(l){var c=this.s.return;return c===void 0?Promise.reject(l):i(c.apply(this.s,arguments))}},new n(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Toe=Au(Coe(),1);function X5(e){return{path:e.path.join(".")}}function xh(e){const t=X5(e);return P.useMemo(()=>t,[t])}async function tQ(e,t,a){const r=t.getQueryCache().build(t,{queryKey:a});r.setState({data:[],status:"success"});const i=[];var o=!1,l=!1,c;try{for(var d=(0,Toe.default)(e),m;o=!(m=await d.next()).done;o=!1){const f=m.value;i.push(f),r.setState({data:[...i]})}}catch(f){l=!0,c=f}finally{try{o&&d.return!=null&&await d.return()}finally{if(l)throw c}}return i}var _a=Au(Gx(),1);function Doe(e){const{client:t,queryClient:a}=e,n=t instanceof $1?t:JT(t);return{infiniteQueryOptions:(r,i,o)=>{var l,c;const d=((l=i[1])===null||l===void 0?void 0:l.input)===Tr,m=async f=>{var h;const x=(0,_a.default)((0,_a.default)({},o),{},{trpc:(0,_a.default)((0,_a.default)({},o?.trpc),!(o==null||(h=o.trpc)===null||h===void 0)&&h.abortOnUnmount?{signal:f.
17signal}:{signal:null})});return await n.query(...Vs(i,x,{direction:f.direction,pageParam:f.pageParam}))};return Object.assign((0,_a.default)((0,_a.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:d?Tr:m,initialPageParam:(c=o?.initialCursor)!==null&&c!==void 0?c:null}),{trpc:X5({path:r})})},queryOptions:(r,i,o)=>{var l;const c=((l=i[1])===null||l===void 0?void 0:l.input)===Tr,d=async m=>{var f;const h=(0,_a.default)((0,_a.default)({},o),{},{trpc:(0,_a.default)((0,_a.default)({},o?.trpc),!(o==null||(f=o.trpc)===null||f===void 0)&&f.abortOnUnmount?{signal:m.signal}:{signal:null})}),x=await n.query(...Vs(i,h));return _V(x)?tQ(x,a,i):x};return Object.assign((0,_a.default)((0,_a.default)({},o),{},{initialData:o?.initialData,queryKey:i,queryFn:c?Tr:d}),{trpc:X5({path:r})})},fetchQuery:(r,i)=>a.fetchQuery((0,_a.default)((0,_a.default)({},i),{},{queryKey:r,queryFn:()=>n.query(...Vs(r,i))})),fetchInfiniteQuery:(r,i)=>{var o;return a.fetchInfiniteQuery((0,_a.default)((0,_a.default)({},i),{},{queryKey:r,queryFn:({pageParam:l,direction:c})=>n.query(...Vs(r,i,{pageParam:l,direction:c})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},prefetchQuery:(r,i)=>a.prefetchQuery((0,_a.default)((0,_a.default)({},i),{},{queryKey:r,queryFn:()=>n.query(...Vs(r,i))})),prefetchInfiniteQuery:(r,i)=>{var o;return a.prefetchInfiniteQuery((0,_a.default)((0,_a.default)({},i),{},{queryKey:r,queryFn:({pageParam:l,direction:c})=>n.query(...Vs(r,i,{pageParam:l,direction:c})),initialPageParam:(o=i?.initialCursor)!==null&&o!==void 0?o:null}))},ensureQueryData:(r,i)=>a.ensureQueryData((0,_a.default)((0,_a.default)({},i),{},{queryKey:r,queryFn:()=>n.query(...Vs(r,i))})),invalidateQueries:(r,i,o)=>a.invalidateQueries((0,_a.default)((0,_a.default)({},i),{},{queryKey:r}),o),resetQueries:(r,i,o)=>a.resetQueries((0,_a.default)((0,_a.default)({},i),{},{queryKey:r}),o),refetchQueries:(r,i,o)=>a.refetchQueries((0,_a.default)((0,_a.default)({},i),{},{queryKey:r}),o),cancelQuery:(r,i)=>a.cancelQueries({queryKey:r},i),setQueryData:(r,i,o)=>a.setQueryData(r,i,o),setQueriesData:(r,i,o,l)=>a.setQueriesData((0,_a.default)((0,_a.default)({},i),{},{queryKey:r}),o,l),getQueryData:r=>a.getQueryData(r),setInfiniteQueryData:(r,i,o)=>a.setQueryData(r,i,o),getInfiniteQueryData:r=>a.getQueryData(r),setMutationDefaults:(r,i)=>{const o=r[0],l=c=>n.mutation(...Vs([o,{input:c}],e));return a.setMutationDefaults(r,typeof i=="function"?i({canonicalMutationFn:l}):i)},getMutationDefaults:r=>a.getMutationDefaults(r),isMutating:r=>a.isMutating((0,_a.default)((0,_a.default)({},r),{},{exact:!0}))}}var Pt=Au(Gx());const PR=(e,t)=>new Proxy(e,{get(n,r){return t(r),n[r]}});function Eoe(e){var t,a;const n=(t=void 0)!==null&&t!==void 0?t:C=>C.originalFn(),r=(a=void 0)!==null&&a!==void 0?a:joe,i=goe,o=C=>{var S;const{abortOnUnmount:A=!1,queryClient:E,ssrContext:R}=C,[F,I]=P.useState((S=C.ssrState)!==null&&S!==void 0?S:!1),H=C.client instanceof $1?C.client:JT(C.client),_=P.useMemo(()=>Doe({client:H,queryClient:E}),[H,E]),V=P.useMemo(()=>(0,Pt.default)({abortOnUnmount:A,queryClient:E,client:H,ssrContext:R??null,ssrState:F},_),[A,H,_,E,R,F]);return P.useEffect(()=>{I(W=>W?"mounted":!1)},[]),s.jsx(r.Provider,{value:V,children:C.children})};function l(){const C=P.useContext(r);if(!C)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return C}function c(C,S){var A;const{queryClient:E,ssrState:R}=l();return R&&R!=="mounted"&&((A=E.getQueryCache().find({queryKey:C}))===null||A===void 0?void 0:A.state.status)==="error"?(0,Pt.default)({retryOnMount:!1},S):S}function d(C,S,A){var E,R,F,I,H;const _=l(),{abortOnUnmount:V,client:W,ssrState:B,queryClient:K,prefetchQuery:ae}=_,$=po(C,S,"query"),Z=K.getQueryDefaults($),O=S===Tr;typeof window>"u"&&B==="prepass"&&(A==null||(E=A.trpc)===null||E===void 0?void 0:E.ssr)!==!1&&((R=A?.enabled)!==null&&R!==void 0?R:Z?.enabled)!==!1&&!O&&!K.getQueryCache().find({queryKey:$})&&ae($,A);const Y=c($,(0,Pt.default)((0,Pt.default)({},Z),A)),Q=(F=(I=A==null||(H=A.trpc)===null||H===void 0?void 0:H.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&F!==void 0?F:V,U=sie((0,Pt.default)((0,Pt.default)({},Y),{}
17,{queryKey:$,queryFn:O?S:async oe=>{const X=(0,Pt.default)((0,Pt.default)({},Y),{},{trpc:(0,Pt.default)((0,Pt.default)({},Y?.trpc),Q?{signal:oe.signal}:{signal:null})}),ne=await W.query(...Vs($,X));return _V(ne)?tQ(ne,K,$):ne}}),K);return U.trpc=xh({path:C}),U}function m(C,S,A){var E,R,F;const I=l(),H=po(C,S,"query"),_=S===Tr,V=(E=(R=A==null||(F=A.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&R!==void 0?R:void 0)!==null&&E!==void 0?E:I.abortOnUnmount;lie((0,Pt.default)((0,Pt.default)({},A),{},{queryKey:H,queryFn:_?S:W=>{const B={trpc:(0,Pt.default)((0,Pt.default)({},A?.trpc),V?{signal:W.signal}:{})};return I.client.query(...Vs(H,B))}}))}function f(C,S,A){var E,R,F;const I=l(),H=po(C,S,"query"),_=(E=(R=A==null||(F=A.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&R!==void 0?R:void 0)!==null&&E!==void 0?E:I.abortOnUnmount,V=rie((0,Pt.default)((0,Pt.default)({},A),{},{queryKey:H,queryFn:W=>{const B=(0,Pt.default)((0,Pt.default)({},A),{},{trpc:(0,Pt.default)((0,Pt.default)({},A?.trpc),_?{signal:W.signal}:{signal:null})});return I.client.query(...Vs(H,B))}}),I.queryClient);return V.trpc=xh({path:C}),[V.data,V]}function h(C,S){const{client:A,queryClient:E}=l(),R=Cv(C),F=E.defaultMutationOptions(E.getMutationDefaults(R)),I=die((0,Pt.default)((0,Pt.default)({},S),{},{mutationKey:R,mutationFn:H=>A.mutation(...Vs([C,{input:H}],S)),onSuccess(...H){var _,V;return n({originalFn:()=>{var B,K,ae;return(B=S==null||(K=S.onSuccess)===null||K===void 0?void 0:K.call(S,...H))!==null&&B!==void 0?B:F==null||(ae=F.onSuccess)===null||ae===void 0?void 0:ae.call(F,...H)},queryClient:E,meta:(_=(V=S?.meta)!==null&&V!==void 0?V:F?.meta)!==null&&_!==void 0?_:{}})}}),E);return I.trpc=xh({path:C}),I}const x={data:void 0,error:null,status:"idle"},b={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function y(C,S,A){var E;const R=(E=A?.enabled)!==null&&E!==void 0?E:S!==Tr,F=_c(po(C,S,"any")),{client:I}=l(),H=P.useRef(A);P.useEffect(()=>{H.current=A});const[_]=P.useState(new Set([])),V=P.useCallback(O=>{_.add(O)},[_]),W=P.useRef(null),B=P.useCallback(O=>{const Y=ae.current,Q=ae.current=O(Y);let U=!1;for(const oe of _)if(Y[oe]!==Q[oe]){U=!0;break}U&&Z(PR(Q,V))},[V,_]),K=P.useCallback(()=>{var O;if((O=W.current)===null||O===void 0||O.unsubscribe(),!R){B(()=>(0,Pt.default)((0,Pt.default)({},x),{},{reset:K}));return}B(()=>(0,Pt.default)((0,Pt.default)({},b),{},{reset:K}));const Y=I.subscription(C.join("."),S??void 0,{onStarted:()=>{var Q,U;(Q=(U=H.current).onStarted)===null||Q===void 0||Q.call(U),B(oe=>(0,Pt.default)((0,Pt.default)({},oe),{},{status:"pending",error:null}))},onData:Q=>{var U,oe;(U=(oe=H.current).onData)===null||U===void 0||U.call(oe,Q),B(X=>(0,Pt.default)((0,Pt.default)({},X),{},{status:"pending",data:Q,error:null}))},onError:Q=>{var U,oe;(U=(oe=H.current).onError)===null||U===void 0||U.call(oe,Q),B(X=>(0,Pt.default)((0,Pt.default)({},X),{},{status:"error",error:Q}))},onConnectionStateChange:Q=>{B(U=>{switch(Q.state){case"idle":return(0,Pt.default)((0,Pt.default)({},U),{},{status:Q.state,error:null,data:void 0});case"connecting":return(0,Pt.default)((0,Pt.default)({},U),{},{error:Q.error,status:Q.state});case"pending":return U}})},onComplete:()=>{var Q,U;(Q=(U=H.current).onComplete)===null||Q===void 0||Q.call(U),B(oe=>(0,Pt.default)((0,Pt.default)({},oe),{},{status:"idle",error:null,data:void 0}))}});W.current=Y},[I,F,R,B]);P.useEffect(()=>(K(),()=>{var O;(O=W.current)===null||O===void 0||O.unsubscribe()}),[K]);const ae=P.useRef(R?(0,Pt.default)((0,Pt.default)({},b),{},{reset:K}):(0,Pt.default)((0,Pt.default)({},x),{},{reset:K})),[$,Z]=P.useState(PR(ae.current,V));return $}function w(C,S,A){var E,R,F,I,H;const{client:_,ssrState:V,prefetchInfiniteQuery:W,queryClient:B,abortOnUnmount:K}=l(),ae=po(C,S,"infinite"),$=B.getQueryDefaults(ae),Z=S===Tr;typeof window>"u"&&V==="prepass"&&(A==null||(E=A.trpc)===null||E===void 0?void 0:E.ssr)!==!1&&((R=A?.enabled)!==null&&R!==void 0?R:$?.enabled)!==!1&&!Z&&!B.getQueryCache().find({queryKey:ae})&&W(ae,(0,Pt.default)((0,Pt.default)({},$),A));const O=c(ae,(0,Pt.default)((0,Pt.default)({},$),A)),Y=(F=A==null||(I=A.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&F!==void 0?F:K,Q=uie((0,Pt.default)((0,Pt.default)({},O),{},{initialPageParam:(H=A.initialCursor)!==null&&H!==void 0?H:null,persister:A.persister,queryKey:ae,queryFn:Z?S:U=>{var oe;const X=(0,Pt.default)((0,Pt.default)({},O),{},{trpc:(0,Pt.default)((0,Pt.default)({},O?.trpc),Y?{signal:U.signal}:{signal:null})});return _.query(...Vs(ae,X,{pageParam:(oe=U.pageParam)!==null&&oe!==void 0?oe:A.initialCursor,direction:U.direction}))}}),B);return Q.trpc=xh({path:C}),Q}function j(C,S,A){var E,R,F;const I=l(),H=po(C,S,"infinite"),_=I.queryClient.getQueryDefaults(H),V=S===Tr,W=c(H,(0,Pt.default)((0,Pt.default)({},_),A)),B=(E=A==null||(R=A.trpc)===null||R===void 0?void 0:R.abortOnUnmount)!==null&&E!==void 0?E:I.abortOnUnmount;cie((0,Pt.default)((0,Pt.default)({},A),{},{initialPageParam:(F=A.initialCursor)!==null&&F!==void 0?F:null,queryKey:H,queryFn:V?S:K=>{var ae;const $=(0,Pt.default)((0,Pt.default)({},W),{},{trpc:(0,Pt.default)((0,Pt.default)({},W?.trpc),B?{signal:K.signal}:{})});return I.client.query(...Vs(H,$,{pageParam:(ae=K.pageParam)!==null&&ae!==void 0?ae:A.initialCursor,direction:K.direction}))}}))}function N(C,S,A){var E,R,F;const I=l(),H=po(C,S,"infinite"),_=I.queryClient.getQueryDefaults(H),V=c(H,(0,Pt.default)((0,Pt.default)({},_),A)),W=(E=A==null||(R=A.trpc)===null||R===void 0?void 0:R.abortOnUnmount)!==null&&E!==void 0?E:I.abortOnUnmount,B=iie((0,Pt.default)((0,Pt.default)({},A),{},{initialPageParam:(F=A.initialCursor)!==null&&F!==void 0?F:null,queryKey:H,queryFn:K=>{var ae;const $=(0,Pt.default)((0,Pt.default)({},V),{},{trpc:(0,Pt.default)((0,Pt.default)({},V?.trpc),W?{signal:K.signal}:{})});return I.client.query(...Vs(H,$,{pageParam:(ae=K.pageParam)!==null&&ae!==void 0?ae:A.initialCursor,direction:K.direction}))}}),I.queryClient);return B.trpc=xh({path:C}),[B.data,B]}return{Provider:o,createClient:i,useContext:l,useUtils:l,useQuery:d,usePrefetchQuery:m,useSuspenseQuery:f,useQueries:(C,S)=>{const{ssrState:A,queryClient:E,prefetchQuery:R,client:F}=l(),I=wR(F),H=C(I);if(typeof window>"u"&&A==="prepass")for(const V of H){var _;const W=V;((_=W.trpc)===null||_===void 0?void 0:_.ssr)!==!1&&!E.getQueryCache().find({queryKey:W.queryKey})&&R(W.queryKey,W)}return zV({queries:H.map(V=>(0,Pt.default)((0,Pt.default)({},V),{},{queryKey:V.queryKey}
17)),combine:S?.combine},E)},useSuspenseQueries:C=>{const{queryClient:S,client:A}=l(),E=wR(A),R=C(E),F=oie({queries:R.map(I=>(0,Pt.default)((0,Pt.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},S);return[F.map(I=>I.data),F]},useMutation:h,useSubscription:y,useInfiniteQuery:w,usePrefetchInfiniteQuery:j,useSuspenseInfiniteQuery:N}}function Moe(e){const t=woe(e);return YT(a=>a==="useContext"||a==="useUtils"?()=>{const n=e.useUtils();return P.useMemo(()=>Aoe(n),[n])}:e.hasOwnProperty(a)?e[a]:t[a])}function Ooe(e){const t=Eoe();return Moe(t)}const J=Ooe(),Roe="app_session_id",zoe="Please login (10001)",_oe="__Host-oauth_state",Ioe=e=>btoa(JSON.stringify(e));var tk={exports:{}},bh={},ak={exports:{}},nk={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var jR;function Loe(){return jR||(jR=1,(function(e){function t(B,K){var ae=B.length;B.push(K);e:for(;0<ae;){var $=ae-1>>>1,Z=B[$];if(0<r(Z,K))B[$]=K,B[ae]=Z,ae=$;else break e}}function a(B){return B.length===0?null:B[0]}function n(B){if(B.length===0)return null;var K=B[0],ae=B.pop();if(ae!==K){B[0]=ae;e:for(var $=0,Z=B.length,O=Z>>>1;$<O;){var Y=2*($+1)-1,Q=B[Y],U=Y+1,oe=B[U];if(0>r(Q,ae))U<Z&&0>r(oe,Q)?(B[$]=oe,B[U]=ae,$=U):(B[$]=Q,B[Y]=ae,$=Y);else if(U<Z&&0>r(oe,ae))B[$]=oe,B[U]=ae,$=U;else break e}}return K}function r(B,K){var ae=B.sortIndex-K.sortIndex;
vendor: 8,405 bytes, lines 25-41
25return ae!==0?ae:B.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],m=1,f=null,h=3,x=!1,b=!1,y=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function D(B){for(var K=a(d);K!==null;){if(K.callback===null)n(d);else if(K.startTime<=B)n(d),K.sortIndex=K.expirationTime,t(c,K);else break;K=a(d)}}function C(B){if(y=!1,D(B),!b)if(a(c)!==null)b=!0,S||(S=!0,H());else{var K=a(d);K!==null&&W(C,K.startTime-B)}}var S=!1,A=-1,E=5,R=-1;function F(){return w?!0:!(e.unstable_now()-R<E)}function I(){if(w=!1,S){var B=e.unstable_now();R=B;var K=!0;try{e:{b=!1,y&&(y=!1,N(A),A=-1),x=!0;var ae=h;try{t:{for(D(B),f=a(c);f!==null&&!(f.expirationTime>B&&F());){var $=f.callback;if(typeof $=="function"){f.callback=null,h=f.priorityLevel;var Z=$(f.expirationTime<=B);if(B=e.unstable_now(),typeof Z=="function"){f.callback=Z,D(B),K=!0;break t}f===a(c)&&n(c),D(B)}else n(c);f=a(c)}if(f!==null)K=!0;else{var O=a(d);O!==null&&W(C,O.startTime-B),K=!1}}break e}finally{f=null,h=ae,x=!1}K=void 0}}finally{K?H():S=!1}}}var H;if(typeof k=="function")H=function(){k(I)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,V=_.port2;_.port1.onmessage=I,H=function(){V.postMessage(null)}}else H=function(){j(I,0)};function W(B,K){A=j(function(){B(e.unstable_now())},K)}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(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(B){switch(h){case 1:case 2:case 3:var K=3;break;default:K=h}var ae=h;h=K;try{return B()}finally{h=ae}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(B,K){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ae=h;h=B;try{return K()}finally{h=ae}},e.unstable_scheduleCallback=function(B,K,ae){var $=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?$+ae:$):ae=$,B){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=ae+Z,B={id:m++,callback:K,priorityLevel:B,startTime:ae,expirationTime:Z,sortIndex:-1},ae>$?(B.sortIndex=ae,t(d,B),a(c)===null&&B===a(d)&&(y?(N(A),A=-1):y=!0,W(C,ae-$))):(B.sortIndex=Z,t(c,B),b||x||(b=!0,S||(S=!0,H()))),B},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(B){var K=h;return function(){var ae=h;h=K;try{return B.apply(this,arguments)}finally{h=ae}}}})(nk)),nk}var kR;function Foe(){return kR||(kR=1,ak.exports=Loe()),ak.exports}var sk={exports:{}},zs={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var NR;function Boe(){if(NR)return zs;NR=1;var e=q1();function t(c){var d="https://react.dev/errors/"+c;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+c+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var n={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},r=Symbol.for("react.portal");function i(c,d,m){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:f==null?null:""+f,children:c,containerInfo:d,implementation:m}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return zs.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,zs.createPortal=function(c,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return i(c,d,null,m)},zs.flushSync=function(c){var d=o.T,m=n.p;try{if(o.T=null,n.p=2,c)return c()}finally{o.T=d,n.p=m,n.d.f()}},zs.preconnect=function(c,d){typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,n.d.C(c,d))},zs.prefetchDNS=function(c){typeof c=="string"&&n.d.D(c)},zs.preinit=function(c,d){if(typeof c=="string"&&d&&typeof d.as=="string"){var m=d.as,f=l(m,d.crossOrigin),h=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?n.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:f,integrity:h,fetchPriority:x}):m==="script"&&n.d.X(c,{crossOrigin:f,integrity:h,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},zs.preinitModule=function(c,d){if(typeof c=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=l(d.as,d.crossOrigin);n.d.M(c,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&n.d.M(c)},zs.preload=function(c,d){if(typeof c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,f=l(m,d.crossOrigin);n.d.L(c,m,{crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},zs.preloadModule=function(c,d){if(typeof c=="string")if(d){var m=l(d.as,d.crossOrigin);n.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else n.d.m(c)},zs.requestFormReset=function(c){n.d.r(c)},zs.unstable_batchedUpdates=function(c,d){return c(d)},zs.useFormState=function(c,d,m){return o.H.useFormState(c,d,m)},zs.useFormStatus=function(){return o.H.useHostTransitionStatus()},zs.version="19.2.1",zs}var AR;function aQ(){if(AR)return sk.exports;AR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sk.exports=Boe(),sk.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var SR;function Goe(){if(SR)return bh;SR=1;var e=Foe(),t=q1(),a=aQ();function n(u){var p="https://react.dev/errors/"+u;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function i(u){var p=u,g=u;if(u.alternate)for(;p.return;)p=p.return;else{u=p;do p=u,(p.flags&4098)!==0&&(g=p.return),u=p.return;while(u)}return p.tag===3?g:null}function o(u){if(u.tag===13){var p=u.memoizedState;if(p===null&&(u=u.alternate,u!==null&&(p=u.memoizedState)),p!==null)return p.dehydrated}return null}function l(u){if(u.tag===31){var p=u.memoizedState;if(p===null&&(u=u.alternate,u!==null&&(p=u.memoizedState)),p!==null)return p.dehydrated}return null}function c(u){if(i(u)!==u)throw Error(n(188))}function d(u){var p=u.alternate;if(!p){if(p=i(u),p===null)throw Error(n(188));return p!==u?null:u}for(var g=u,v=p;;){var T=g.return;if(T===null)break;var M=T.alternate;if(M===null){if(v=T.return,v!==null){g=v;
vendor: 12,603 bytes, lines 41-48
41continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===g)return c(T),u;if(M===v)return c(T),p;M=M.sibling}throw Error(n(188))}if(g.return!==v.return)g=T,v=M;else{for(var q=!1,le=T.child;le;){if(le===g){q=!0,g=T,v=M;break}if(le===v){q=!0,v=T,g=M;break}le=le.sibling}if(!q){for(le=M.child;le;){if(le===g){q=!0,g=M,v=T;break}if(le===v){q=!0,v=M,g=T;break}le=le.sibling}if(!q)throw Error(n(189))}}if(g.alternate!==v)throw Error(n(190))}if(g.tag!==3)throw Error(n(188));return g.stateNode.current===g?u:p}function m(u){var p=u.tag;if(p===5||p===26||p===27||p===6)return u;for(u=u.child;u!==null;){if(p=m(u),p!==null)return p;u=u.sibling}return null}var f=Object.assign,h=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),k=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function H(u){return u===null||typeof u!="object"?null:(u=I&&u[I]||u["@@iterator"],typeof u=="function"?u:null)}var _=Symbol.for("react.client.reference");function V(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===_?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case y:return"Fragment";case j:return"Profiler";case w:return"StrictMode";case C:return"Suspense";case S:return"SuspenseList";case R:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case b:return"Portal";case k:return u.displayName||"Context";case N:return(u._context.displayName||"Context")+".Consumer";case D:var p=u.render;return u=u.displayName,u||(u=p.displayName||p.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case A:return p=u.displayName||null,p!==null?p:V(u.type)||"Memo";case E:p=u._payload,u=u._init;try{return V(u(p))}catch{}}return null}var W=Array.isArray,B=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},$=[],Z=-1;function O(u){return{current:u}}function Y(u){0>Z||(u.current=$[Z],$[Z]=null,Z--)}function Q(u,p){Z++,$[Z]=u.current,u.current=p}var U=O(null),oe=O(null),X=O(null),ne=O(null);function ge(u,p){switch(Q(X,p),Q(oe,u),Q(U,null),p.nodeType){case 9:case 11:u=(u=p.documentElement)&&(u=u.namespaceURI)?A7(u):0;break;default:if(u=p.tagName,p=p.namespaceURI)p=A7(p),u=S7(p,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}Y(U),Q(U,u)}function me(){Y(U),Y(oe),Y(X)}function Ae(u){u.memoizedState!==null&&Q(ne,u);var p=U.current,g=S7(p,u.type);p!==g&&(Q(oe,u),Q(U,g))}function Pe(u){oe.current===u&&(Y(U),Y(oe)),ne.current===u&&(Y(ne),ph._currentValue=ae)}var L,ke;function Me(u){if(L===void 0)try{throw Error()}catch(g){var p=g.stack.trim().match(/\n( *(at )?)/);L=p&&p[1]||"",ke=-1<g.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+L+u+ke}var Ze=!1;function Ce(u,p){if(!u||Ze)return"";Ze=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(p){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(Ue){var Ge=Ue}Reflect.construct(u,[],tt)}else{try{tt.call()}catch(Ue){Ge=Ue}u.call(tt.prototype)}}else{try{throw Error()}catch(Ue){Ge=Ue}(tt=u())&&typeof tt.catch=="function"&&tt.catch(function(){})}}catch(Ue){if(Ue&&Ge&&typeof Ue.stack=="string")return[Ue.stack,Ge.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=v.DetermineComponentFrameRoot(),q=M[0],le=M[1];if(q&&le){var we=q.split(` 44`),Be=le.split(` 45`);for(T=v=0;v<we.length&&!we[v].includes("DetermineComponentFrameRoot");)v++;for(;T<Be.length&&!Be[T].includes("DetermineComponentFrameRoot");)T++;if(v===we.length||T===Be.length)for(v=we.length-1,T=Be.length-1;1<=v&&0<=T&&we[v]!==Be[T];)T--;for(;1<=v&&0<=T;v--,T--)if(we[v]!==Be[T]){if(v!==1||T!==1)do if(v--,T--,0>T||we[v]!==Be[T]){var $e=` 46`+we[v].replace(" at new "," at ");return u.displayName&&$e.includes("<anonymous>")&&($e=$e.replace("<anonymous>",u.displayName)),$e}while(1<=v&&0<=T);break}}}finally{Ze=!1,Error.prepareStackTrace=g}return(g=u?u.displayName||u.name:"")?Me(g):""}function Te(u,p){switch(u.tag){case 26:case 27:case 5:return Me(u.type);case 16:return Me("Lazy");case 13:return u.child!==p&&p!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return Ce(u.type,!1);case 11:return Ce(u.type.render,!1);case 1:return Ce(u.type,!0);case 31:return Me("Activity");default:return""}}function Ke(u){try{var p="",g=null;do p+=Te(u,g),g=u,u=u.return;while(u);return p}catch(v){return` 47Error generating stack: `+v.message+` 48`+v.stack}}var Ve=Object.prototype.hasOwnProperty,ht=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,et=e.unstable_shouldYield,xe=e.unstable_requestPaint,it=e.unstable_now,Tt=e.unstable_getCurrentPriorityLevel,bt=e.unstable_ImmediatePriority,vt=e.unstable_UserBlockingPriority,St=e.unstable_NormalPriority,de=e.unstable_LowPriority,be=e.unstable_IdlePriority,G=e.log,je=e.unstable_setDisableYieldValue,ze=null,Qe=null;function ye(u){if(typeof G=="function"&&je(u),Qe&&typeof Qe.setStrictMode=="function")try{Qe.setStrictMode(ze,u)}catch{}}var Ee=Math.clz32?Math.clz32:mt,te=Math.log,We=Math.LN2;function mt(u){return u>>>=0,u===0?32:31-(te(u)/We|0)|0}var z=256,_e=262144,ce=4194304;function se(u){var p=u&42;if(p!==0)return p;switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return u&261888;case 262144:case 524288:case 1048576:case 2097152:return u&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function fe(u,p,g){var v=u.pendingLanes;if(v===0)return 0;var T=0,M=u.suspendedLanes,q=u.pingedLanes;u=u.warmLanes;var le=v&134217727;return le!==0?(v=le&~M,v!==0?T=se(v):(q&=le,q!==0?T=se(q):g||(g=le&~u,g!==0&&(T=se(g))))):(le=v&~M,le!==0?T=se(le):q!==0?T=se(q):g||(g=v&~u,g!==0&&(T=se(g)))),T===0?0:p!==0&&p!==T&&(p&M)===0&&(M=T&-T,g=p&-p,M>=g||M===32&&(g&4194048)!==0)?p:T}function Se(u,p){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&p)===0}function ot(u,p){switch(u){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lt(){var u=ce;return ce<<=1,(ce&62914560)===0&&(ce=4194304),u}function Le(u){for(var p=[],g=0;31>g;g++)p.push(u);return p}function nt(u,p){u.pendingLanes|=p,p!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function gt(u,p,g,v,T,M){var q=u.pendingLanes;u.pendingLanes=g,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=g,u.entangledLanes&=g,u.errorRecoveryDisabledLanes&=g,u.shellSuspendCounter=0;var le=u.entanglements,we=u.expirationTimes,Be=u.hiddenUpdates;for(g=q&~g;0<g;){var $e=31-Ee(g),tt=1<<$e;le[$e]=0,we[$e]=-1;var Ge=Be[$e];if(Ge!==null)for(Be[$e]=null,$e=0;$e<Ge.length;$e++){var Ue=Ge[$e];Ue!==null&&(Ue.lane&=-536870913)}g&=~tt}v!==0&&yt(u,v,0),M!==0&&T===0&&u.tag!==0&&(u.suspendedLanes|=M&~(q&~p))}function yt(u,p,g){u.pendingLanes|=p,u.suspendedLanes&=~p;var v=31-Ee(p);u.entangledLanes|=p,u.entanglements[v]=u.entanglements[v]|1073741824|g&261930}function rt(u,p){var g=u.entangledLanes|=p;for(u=u.entanglements;g;){var v=31-Ee(g),T=1<<v;T&p|u[v]&p&&(u[v]|=p),g&=~T}}function xt(u,p){var g=p&-p;return g=(g&42)!==0?1:Mt(g),(g&(u.suspendedLanes|p))!==0?0:g}function Mt(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function ee(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function Oe(){var u=K.p;return u!==0?u:(u=window.event,u===void 0?32:X7(u.type))}function Ye(u,p){var g=K.p;try{return K.p=u,p()}finally{K.p=g}}var at=Math.random().toString(36).slice(2),wt="__reactFiber$"+at,kt="__reactProps$"+at,Sa="__reactContainer$"+at,Ca="__reactEvents$"+at,Br="__reactListeners$"+at,qu="__reactHandles$"+at,od="__reactResources$"+at,ld="__reactMarker$"+at;function cd(u){delete u[wt],delete u[kt],delete u[Ca],delete u[Br],delete u[qu]}function qs(u){var p=u[wt];if(p)return p;for(var g=u.parentNode;g;){if(p=g[Sa]||g[wt]){if(g=p.alternate,p.child!==null||g!==null&&g.child!==null)for(u=R7(u);u!==null;){if(g=u[wt])return g;u=R7(u)}return p}u=g,g=u.parentNode}return null}function zo(u){if(u=u[wt]||u[Sa]){var p=u.tag;if(p===5||p===6||p===13||p===31||p===26||p===27||p===3)return u}return null}function dd(u){var p=u.tag;if(p===5||p===26||p===27||p===6)return u.stateNode;throw Error(n(33))}function _o(u){var p=u[od];return p||(p=u[od]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function Bn(u){u[ld]=!0}var Sf=new Set,Cf={};function gr(u,p){Gr(u,p),Gr(u+"Capture",p)}function Gr(u,p){for(Cf[u]=p,u=0;u<p.length;u++)Sf.add(p[u])}var He=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),dt={},ve={};function st(u){return Ve.call(ve,u)?!0:Ve.call(dt,u)?!1:He.test(u)?ve[u]=!0:(dt[u]=!0,!1)}function ha(u,p,g){if(st(p))if(g===null)u.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":u.removeAttribute(p);return;case"boolean":var v=p.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){u.removeAttribute(p);return}}u.setAttribute(p,""+g)}}function Da(u,p,g){if(g===null)u.removeAttribute(p);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(p);return}u.setAttribute(p,""+g)}}function Oa(u,p,g,v){if(v===null)u.removeAttribute(g);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(g);return}u.setAttributeNS(p,g,""+v)}}function Qa(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Ni(u){var p=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Gw(u,p,g){var v=Object.getOwnPropertyDescriptor(u.constructor.prototype,p);if(!u.hasOwnProperty(p)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var T=v.get,M=v.set;return Object.defineProperty(u,p,{configurable:!0,get:function(){return T.call(this)},set:function(q){g=""+q,M.call(this,q)}}),Object.defineProperty(u,p,{enumerable:v.enumerable}),{getValue:function(){return g},setValue:function(q){g=""+q},stopTracking:function(){u._valueTracker=null,delete u[p]}}}}function Hw(u){if(!u._valueTracker){var p=Ni(u)?"checked":"value";u._valueTracker=Gw(u,p,""+u[p])}}function vE(u){if(!u)return!1;var p=u._valueTracker;if(!p)return!0;var g=p.getValue(),v="";return u&&(v=Ni(u)?u.checked?"true":"false":u.value),u=v,u!==g?(p.setValue(u),!0):!1}function wb(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var vne=/[\n"\\]/g;function Hr(u){return u.replace(vne,function(p){return"\\"+p.charCo
vendor: 4,429 bytes, line 48
48deAt(0).toString(16)+" "})}function qw(u,p,g,v,T,M,q,le){u.name="",q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?u.type=q:u.removeAttribute("type"),p!=null?q==="number"?(p===0&&u.value===""||u.value!=p)&&(u.value=""+Qa(p)):u.value!==""+Qa(p)&&(u.value=""+Qa(p)):q!=="submit"&&q!=="reset"||u.removeAttribute("value"),p!=null?Uw(u,q,Qa(p)):g!=null?Uw(u,q,Qa(g)):v!=null&&u.removeAttribute("value"),T==null&&M!=null&&(u.defaultChecked=!!M),T!=null&&(u.checked=T&&typeof T!="function"&&typeof T!="symbol"),le!=null&&typeof le!="function"&&typeof le!="symbol"&&typeof le!="boolean"?u.name=""+Qa(le):u.removeAttribute("name")}function yE(u,p,g,v,T,M,q,le){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(u.type=M),p!=null||g!=null){if(!(M!=="submit"&&M!=="reset"||p!=null)){Hw(u);return}g=g!=null?""+Qa(g):"",p=p!=null?""+Qa(p):g,le||p===u.value||(u.value=p),u.defaultValue=p}v=v??T,v=typeof v!="function"&&typeof v!="symbol"&&!!v,u.checked=le?u.checked:!!v,u.defaultChecked=!!v,q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(u.name=q),Hw(u)}function Uw(u,p,g){p==="number"&&wb(u.ownerDocument)===u||u.defaultValue===""+g||(u.defaultValue=""+g)}function Uu(u,p,g,v){if(u=u.options,p){p={};for(var T=0;T<g.length;T++)p["$"+g[T]]=!0;for(g=0;g<u.length;g++)T=p.hasOwnProperty("$"+u[g].value),u[g].selected!==T&&(u[g].selected=T),T&&v&&(u[g].defaultSelected=!0)}else{for(g=""+Qa(g),p=null,T=0;T<u.length;T++){if(u[T].value===g){u[T].selected=!0,v&&(u[T].defaultSelected=!0);return}p!==null||u[T].disabled||(p=u[T])}p!==null&&(p.selected=!0)}}function wE(u,p,g){if(p!=null&&(p=""+Qa(p),p!==u.value&&(u.value=p),g==null)){u.defaultValue!==p&&(u.defaultValue=p);return}u.defaultValue=g!=null?""+Qa(g):""}function PE(u,p,g,v){if(p==null){if(v!=null){if(g!=null)throw Error(n(92));if(W(v)){if(1<v.length)throw Error(n(93));v=v[0]}g=v}g==null&&(g=""),p=g}g=Qa(p),u.defaultValue=g,v=u.textContent,v===g&&v!==""&&v!==null&&(u.value=v),Hw(u)}function Vu(u,p){if(p){var g=u.firstChild;if(g&&g===u.lastChild&&g.nodeType===3){g.nodeValue=p;return}}u.textContent=p}var yne=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jE(u,p,g){var v=p.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?v?u.setProperty(p,""):p==="float"?u.cssFloat="":u[p]="":v?u.setProperty(p,g):typeof g!="number"||g===0||yne.has(p)?p==="float"?u.cssFloat=g:u[p]=(""+g).trim():u[p]=g+"px"}function kE(u,p,g){if(p!=null&&typeof p!="object")throw Error(n(62));if(u=u.style,g!=null){for(var v in g)!g.hasOwnProperty(v)||p!=null&&p.hasOwnProperty(v)||(v.indexOf("--")===0?u.setProperty(v,""):v==="float"?u.cssFloat="":u[v]="");for(var T in p)v=p[T],p.hasOwnProperty(T)&&g[T]!==v&&jE(u,T,v)}else for(var M in p)p.hasOwnProperty(M)&&jE(u,M,p[M])}function Vw(u){if(u.indexOf("-")===-1)return!1;switch(u){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 wne=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pne=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pb(u){return Pne.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}function Io(){}var Qw=null;function Ww(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var Qu=null,Wu=null;function NE(u){var p=zo(u);if(p&&(u=p.stateNode)){var g=u[kt]||null;e:switch(u=p.stateNode,p.type){case"input":if(qw(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),p=g.name,g.type==="radio"&&p!=null){for(g=u;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+Hr(""+p)+'"][type="radio"]'),p=0;p<g.length;p++){var v=g[p];if(v!==u&&v.form===u.form){var T=v[kt]||null;if(!T)throw Error(n(90));qw(v,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(p=0;p<g.length;p++)v=g[p],v.form===u.form&&vE(v)}break e;case"textarea":wE(u,g.value,g.defaultValue);break e;case"select":p=g.value,p!=null&&Uu(u,!!g.multiple,p,!1)}}}var Kw=!1;function AE(u,p,g){if(Kw)return u(p,g);Kw=!0;try{var v=u(p);return v}finally{if(Kw=!1,(Qu!==null||Wu!==null)&&(c0(),Qu&&(p=Qu,u=Wu,Wu=Qu=null,NE(p),u)))for(p=0;p<u.length;p++)NE(u[p])}}function Tf(u,p){var g=u.stateNode;if(g===null)return null;var v=g[kt]||null;if(v===null)return null;g=v[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(u=u.type,v=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!v;break e;default:u=!1}if(u)return null;if(g&&typeof g!="function")throw Error(n(231,p,typeof g));return g}var Lo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$w=!1;if(Lo)try{var Df={};Object.defineProperty(Df,"passive",{get:function(){$w=!0}}),window.addEventListener("test",Df,Df),window.removeEventListener("test",Df,Df)}catch{$w=!1}var Hl=null,Xw=null,jb=null;function SE(){if(jb)return jb;var u,p=Xw,g=p.length,v,T="value"in Hl?Hl.value:Hl.textContent,M=T.length;for(u=0;
vendor: 5,417 bytes, line 48
48u<g&&p[u]===T[u];u++);var q=g-u;for(v=1;v<=q&&p[g-v]===T[M-v];v++);return jb=T.slice(u,1<v?1-v:void 0)}function kb(u){var p=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&p===13&&(u=13)):u=p,u===10&&(u=13),32<=u||u===13?u:0}function Nb(){return!0}function CE(){return!1}function ar(u){function p(g,v,T,M,q){this._reactName=g,this._targetInst=T,this.type=v,this.nativeEvent=M,this.target=q,this.currentTarget=null;for(var le in u)u.hasOwnProperty(le)&&(g=u[le],this[le]=g?g(M):M[le]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Nb:CE,this.isPropagationStopped=CE,this}return f(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=Nb)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=Nb)},persist:function(){},isPersistent:Nb}),p}var ud={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ab=ar(ud),Ef=f({},ud,{view:0,detail:0}),jne=ar(Ef),Yw,Zw,Mf,Sb=f({},Ef,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eP,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Mf&&(Mf&&u.type==="mousemove"?(Yw=u.screenX-Mf.screenX,Zw=u.screenY-Mf.screenY):Zw=Yw=0,Mf=u),Yw)},movementY:function(u){return"movementY"in u?u.movementY:Zw}}),TE=ar(Sb),kne=f({},Sb,{dataTransfer:0}),Nne=ar(kne),Ane=f({},Ef,{relatedTarget:0}),Jw=ar(Ane),Sne=f({},ud,{animationName:0,elapsedTime:0,pseudoElement:0}),Cne=ar(Sne),Tne=f({},ud,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),Dne=ar(Tne),Ene=f({},ud,{data:0}),DE=ar(Ene),Mne={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},One={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"},Rne={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zne(u){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(u):(u=Rne[u])?!!p[u]:!1}function eP(){return zne}var _ne=f({},Ef,{key:function(u){if(u.key){var p=Mne[u.key]||u.key;if(p!=="Unidentified")return p}return u.type==="keypress"?(u=kb(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?One[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eP,charCode:function(u){return u.type==="keypress"?kb(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?kb(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),Ine=ar(_ne),Lne=f({},Sb,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),EE=ar(Lne),Fne=f({},Ef,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eP}),Bne=ar(Fne),Gne=f({},ud,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hne=ar(Gne),qne=f({},Sb,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),Une=ar(qne),Vne=f({},ud,{newState:0,oldState:0}),Qne=ar(Vne),Wne=[9,13,27,32],tP=Lo&&"CompositionEvent"in window,Of=null;Lo&&"documentMode"in document&&(Of=document.documentMode);var Kne=Lo&&"TextEvent"in window&&!Of,ME=Lo&&(!tP||Of&&8<Of&&11>=Of),OE=" ",RE=!1;function zE(u,p){switch(u){case"keyup":return Wne.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _E(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Ku=!1;function $ne(u,p){switch(u){case"compositionend":return _E(p);case"keypress":return p.which!==32?null:(RE=!0,OE);case"textInput":return u=p.data,u===OE&&RE?null:u;default:return null}}function Xne(u,p){if(Ku)return u==="compositionend"||!tP&&zE(u,p)?(u=SE(),jb=Xw=Hl=null,Ku=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return ME&&p.locale!=="ko"?null:p.data;default:return null}}var Yne={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 IE(u){var p=u&&u.nodeName&&u.nodeName.toLowerCase();return p==="input"?!!Yne[u.type]:p==="textarea"}
vendor: 6,286 bytes, line 48
48function LE(u,p,g,v){Qu?Wu?Wu.push(v):Wu=[v]:Qu=v,p=g0(p,"onChange"),0<p.length&&(g=new Ab("onChange","change",null,g,v),u.push({event:g,listeners:p}))}var Rf=null,zf=null;function Zne(u){y7(u,0)}function Cb(u){var p=dd(u);if(vE(p))return u}function FE(u,p){if(u==="change")return p}var BE=!1;if(Lo){var aP;if(Lo){var nP="oninput"in document;if(!nP){var GE=document.createElement("div");GE.setAttribute("oninput","return;"),nP=typeof GE.oninput=="function"}aP=nP}else aP=!1;BE=aP&&(!document.documentMode||9<document.documentMode)}function HE(){Rf&&(Rf.detachEvent("onpropertychange",qE),zf=Rf=null)}function qE(u){if(u.propertyName==="value"&&Cb(zf)){var p=[];LE(p,zf,u,Ww(u)),AE(Zne,p)}}function Jne(u,p,g){u==="focusin"?(HE(),Rf=p,zf=g,Rf.attachEvent("onpropertychange",qE)):u==="focusout"&&HE()}function ese(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return Cb(zf)}function tse(u,p){if(u==="click")return Cb(p)}function ase(u,p){if(u==="input"||u==="change")return Cb(p)}function nse(u,p){return u===p&&(u!==0||1/u===1/p)||u!==u&&p!==p}var xr=typeof Object.is=="function"?Object.is:nse;function _f(u,p){if(xr(u,p))return!0;if(typeof u!="object"||u===null||typeof p!="object"||p===null)return!1;var g=Object.keys(u),v=Object.keys(p);if(g.length!==v.length)return!1;for(v=0;v<g.length;v++){var T=g[v];if(!Ve.call(p,T)||!xr(u[T],p[T]))return!1}return!0}function UE(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function VE(u,p){var g=UE(u);u=0;for(var v;g;){if(g.nodeType===3){if(v=u+g.textContent.length,u<=p&&v>=p)return{node:g,offset:p-u};u=v}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=UE(g)}}function QE(u,p){return u&&p?u===p?!0:u&&u.nodeType===3?!1:p&&p.nodeType===3?QE(u,p.parentNode):"contains"in u?u.contains(p):u.compareDocumentPosition?!!(u.compareDocumentPosition(p)&16):!1:!1}function WE(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var p=wb(u.document);p instanceof u.HTMLIFrameElement;){try{var g=typeof p.contentWindow.location.href=="string"}catch{g=!1}if(g)u=p.contentWindow;else break;p=wb(u.document)}return p}function sP(u){var p=u&&u.nodeName&&u.nodeName.toLowerCase();return p&&(p==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||p==="textarea"||u.contentEditable==="true")}var sse=Lo&&"documentMode"in document&&11>=document.documentMode,$u=null,rP=null,If=null,iP=!1;function KE(u,p,g){var v=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;iP||$u==null||$u!==wb(v)||(v=$u,"selectionStart"in v&&sP(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),If&&_f(If,v)||(If=v,v=g0(rP,"onSelect"),0<v.length&&(p=new Ab("onSelect","select",null,p,g),u.push({event:p,listeners:v}),p.target=$u)))}function pd(u,p){var g={};return g[u.toLowerCase()]=p.toLowerCase(),g["Webkit"+u]="webkit"+p,g["Moz"+u]="moz"+p,g}var Xu={animationend:pd("Animation","AnimationEnd"),animationiteration:pd("Animation","AnimationIteration"),animationstart:pd("Animation","AnimationStart"),transitionrun:pd("Transition","TransitionRun"),transitionstart:pd("Transition","TransitionStart"),transitioncancel:pd("Transition","TransitionCancel"),transitionend:pd("Transition","TransitionEnd")},oP={},$E={};Lo&&($E=document.createElement("div").style,"AnimationEvent"in window||(delete Xu.animationend.animation,delete Xu.animationiteration.animation,delete Xu.animationstart.animation),"TransitionEvent"in window||delete Xu.transitionend.transition);function md(u){if(oP[u])return oP[u];if(!Xu[u])return u;var p=Xu[u],g;for(g in p)if(p.hasOwnProperty(g)&&g in $E)return oP[u]=p[g];return u}var XE=md("animationend"),YE=md("animationiteration"),ZE=md("animationstart"),rse=md("transitionrun"),ise=md("transitionstart"),ose=md("transitioncancel"),JE=md("transitionend"),eM=new Map,lP="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");lP.push("scrollEnd");function Ai(u,p){eM.set(u,p),gr(p,[u])}var Tb=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},qr=[],Yu=0,cP=0;function Db(){for(var u=Yu,p=cP=Yu=0;p<u;){var g=qr[p];qr[p++]=null;var v=qr[p];qr[p++]=null;var T=qr[p];qr[p++]=null;var M=qr[p];if(qr[p++]=null,v!==null&&T!==null){var q=v.pending;q===null?T.next=T:(T.next=q.next,q.next=T),v.pending=T}M!==0&&tM(g,T,M)}}function Eb(u,p,g,v){qr[Yu++]=u,qr[Yu++]=p,qr[Yu++]=g,qr[Yu++]=v,cP|=v,u.lanes|=v,u=u.alternate,u!==null&&(u.lanes|=v)}function dP(u,p,g,v){return Eb(u,p,g,v),Mb(u)}function fd(u,p){return Eb(u,null,null,p),Mb(u)}function tM(u,p,g){u.lanes|=g;var v=u.alternate;v!==null&&(v.lanes|=g);for(var T=!1,M=u.return;M!==null;)M.childLanes|=g,v=M.alternate,v!==null&&(v.childLanes|=g),M.tag===22&&(u=M.stateNode,u===null||u._visibility&1||(T=!0)),u=M,M=M.return;return u.tag===3?(M=u.stateNode,T&&p!==null&&(T=31-Ee(g),u=M.hiddenUpdates,v=u[T],v===null?u[T]=[p]:v.push(p),p.lane=g|536870912),M):null}function Mb(u){if(50<rh)throw rh=0,vj=null,Error(n(185));for(var p=u.return;p!==null;)u=p,p=u.return;return u.tag===3?u.stateNode:null}var Zu={};function lse(u,p,g,v){this.tag=u,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 15,433 bytes, line 48
48ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(u,p,g,v){return new lse(u,p,g,v)}function uP(u){return u=u.prototype,!(!u||!u.isReactComponent)}function Fo(u,p){var g=u.alternate;return g===null?(g=br(u.tag,p,u.key,u.mode),g.elementType=u.elementType,g.type=u.type,g.stateNode=u.stateNode,g.alternate=u,u.alternate=g):(g.pendingProps=p,g.type=u.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=u.flags&65011712,g.childLanes=u.childLanes,g.lanes=u.lanes,g.child=u.child,g.memoizedProps=u.memoizedProps,g.memoizedState=u.memoizedState,g.updateQueue=u.updateQueue,p=u.dependencies,g.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},g.sibling=u.sibling,g.index=u.index,g.ref=u.ref,g.refCleanup=u.refCleanup,g}function aM(u,p){u.flags&=65011714;var g=u.alternate;return g===null?(u.childLanes=0,u.lanes=p,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=g.childLanes,u.lanes=g.lanes,u.child=g.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=g.memoizedProps,u.memoizedState=g.memoizedState,u.updateQueue=g.updateQueue,u.type=g.type,p=g.dependencies,u.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),u}function Ob(u,p,g,v,T,M){var q=0;if(v=u,typeof u=="function")uP(u)&&(q=1);else if(typeof u=="string")q=mre(u,g,U.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case R:return u=br(31,g,p,T),u.elementType=R,u.lanes=M,u;case y:return hd(g.children,T,M,p);case w:q=8,T|=24;break;case j:return u=br(12,g,p,T|2),u.elementType=j,u.lanes=M,u;case C:return u=br(13,g,p,T),u.elementType=C,u.lanes=M,u;case S:return u=br(19,g,p,T),u.elementType=S,u.lanes=M,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case k:q=10;break e;case N:q=9;break e;case D:q=11;break e;case A:q=14;break e;case E:q=16,v=null;break e}q=29,g=Error(n(130,u===null?"null":typeof u,"")),v=null}return p=br(q,g,p,T),p.elementType=u,p.type=v,p.lanes=M,p}function hd(u,p,g,v){return u=br(7,u,v,p),u.lanes=g,u}function pP(u,p,g){return u=br(6,u,null,p),u.lanes=g,u}function nM(u){var p=br(18,null,null,0);return p.stateNode=u,p}function mP(u,p,g){return p=br(4,u.children!==null?u.children:[],u.key,p),p.lanes=g,p.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},p}var sM=new WeakMap;function Ur(u,p){if(typeof u=="object"&&u!==null){var g=sM.get(u);return g!==void 0?g:(p={value:u,source:p,stack:Ke(p)},sM.set(u,p),p)}return{value:u,source:p,stack:Ke(p)}}var Ju=[],ep=0,Rb=null,Lf=0,Vr=[],Qr=0,ql=null,no=1,so="";function Bo(u,p){Ju[ep++]=Lf,Ju[ep++]=Rb,Rb=u,Lf=p}function rM(u,p,g){Vr[Qr++]=no,Vr[Qr++]=so,Vr[Qr++]=ql,ql=u;var v=no;u=so;var T=32-Ee(v)-1;v&=~(1<<T),g+=1;var M=32-Ee(p)+T;if(30<M){var q=T-T%5;M=(v&(1<<q)-1).toString(32),v>>=q,T-=q,no=1<<32-Ee(p)+T|g<<T|v,so=M+u}else no=1<<M|g<<T|v,so=u}function fP(u){u.return!==null&&(Bo(u,1),rM(u,1,0))}function hP(u){for(;u===Rb;)Rb=Ju[--ep],Ju[ep]=null,Lf=Ju[--ep],Ju[ep]=null;for(;u===ql;)ql=Vr[--Qr],Vr[Qr]=null,so=Vr[--Qr],Vr[Qr]=null,no=Vr[--Qr],Vr[Qr]=null}function iM(u,p){Vr[Qr++]=no,Vr[Qr++]=so,Vr[Qr++]=ql,no=p.id,so=p.overflow,ql=u}var ws=null,fn=null,ka=!1,Ul=null,Wr=!1,gP=Error(n(519));function Vl(u){var p=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ff(Ur(p,u)),gP}function oM(u){var p=u.stateNode,g=u.type,v=u.memoizedProps;switch(p[wt]=u,p[kt]=v,g){case"dialog":xa("cancel",p),xa("close",p);break;case"iframe":case"object":case"embed":xa("load",p);break;case"video":case"audio":for(g=0;g<oh.length;g++)xa(oh[g],p);break;case"source":xa("error",p);break;case"img":case"image":case"link":xa("error",p),xa("load",p);break;case"details":xa("toggle",p);break;case"input":xa("invalid",p),yE(p,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":xa("invalid",p);break;case"textarea":xa("invalid",p),PE(p,v.value,v.defaultValue,v.children)}g=v.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||p.textContent===""+g||v.suppressHydrationWarning===!0||k7(p.textContent,g)?(v.popover!=null&&(xa("beforetoggle",p),xa("toggle",p)),v.onScroll!=null&&xa("scroll",p),v.onScrollEnd!=null&&xa("scrollend",p),v.onClick!=null&&(p.onclick=Io),p=!0):p=!1,p||Vl(u,!0)}function lM(u){for(ws=u.return;ws;)switch(ws.tag){case 5:case 31:case 13:Wr=!1;return;case 27:case 3:Wr=!0;return;default:ws=ws.return}}function tp(u){if(u!==ws)return!1;if(!ka)return lM(u),ka=!0,!1;var p=u.tag,g;if((g=p!==3&&p!==27)&&((g=p===5)&&(g=u.type,g=!(g!=="form"&&g!=="button")||Rj(u.type,u.memoizedProps)),g=!g),g&&fn&&Vl(u),lM(u),p===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(n(317));fn=O7(u)}else if(p===31){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(n(317));fn=O7(u)}else p===27?(p=fn,rc(u.type)?(u=Fj,Fj=null,fn=u):fn=p):fn=ws?$r(u.stateNode.nextSibling):null;return!0}function gd(){fn=ws=null,ka=!1}function xP(){var u=Ul;return u!==null&&(ir===null?ir=u:ir.push.apply(ir,u),Ul=null),u}function Ff(u){Ul===null?Ul=[u]:Ul.push(u)}var bP=O(null),xd=null,Go=null;function Ql(u,p,g){Q(bP,p._currentValue),p._currentValue=g}function Ho(u){u._currentValue=bP.current,Y(bP)}function vP(u,p,g){for(;u!==null;){var v=u.alternate;if((u.childLanes&p)!==p?(u.childLanes|=p,v!==null&&(v.childLanes|=p)):v!==null&&(v.childLanes&p)!==p&&(v.childLanes|=p),u===g)break;u=u.return}}function yP(u,p,g,v){var T=u.child;for(T!==null&&(T.return=u);T!==null;){var M=T.dependencies;if(M!==null){var q=T.child;M=M.firstContext;e:for(;M!==null;){var le=M;M=T;for(var we=0;we<p.length;we++)if(le.context===p[we]){M.lanes|=g,le=M.alternate,le!==null&&(le.lanes|=g),vP(M.return,g,u),v||(q=null);break e}M=le.next}}else if(T.tag===18){if(q=T.return,q===null)throw Error(n(341));q.lanes|=g,M=q.alternate,M!==null&&(M.lanes|=g),vP(q,g,u),q=null}else q=T.child;if(q!==null)q.return=T;else for(q=T;q!==null;){if(q===u){q=null;break}if(T=q.sibling,T!==null){T.return=q.return,q=T;break}q=q.return}T=q}}function ap(u,p,g,v){u=null;for(var T=p,M=!1;T!==null;){if(!M){if((T.flags&524288)!==0)M=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var q=T.alternate;if(q===null)throw Error(n(387));if(q=q.memoizedProps,q!==null){var le=T.type;xr(T.pendingProps.value,q.value)||(u!==null?u.push(le):u=[le])}}else if(T===ne.current){if(q=T.alternate,q===null)throw Error(n(387));q.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(u!==null?u.push(ph):u=[ph])}T=T.return}u!==null&&yP(p,u,g,v),p.flags|=262144}function zb(u){for(u=u.firstContext;u!==null;){if(!xr(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function bd(u){xd=u,Go=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function Ps(u){return cM(xd,u)}function _b(u,p){return xd===null&&bd(u),cM(u,p)}function cM(u,p){var g=p._currentValue;if(p={context:p,memoizedValue:g,next:null},Go===null){if(u===null)throw Error(n(308));Go=p,u.dependencies={lanes:0,firstContext:p},u.flags|=524288}else Go=Go.next=p;return g}var cse=typeof AbortController<"u"?AbortController:function(){var u=[],p=this.signal={aborted:!1,addEventListener:function(g,v){u.push(v)}};this.abort=function(){p.aborted=!0,u.forEach(function(g){return g()})}},dse=e.unstable_scheduleCallback,use=e.unstable_NormalPriority,Gn={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wP(){return{controller:new cse,data:new Map,refCount:0}}function Bf(u){u.refCount--,u.refCount===0&&dse(use,function(){u.controller.abort()})}var Gf=null,PP=0,np=0,sp=null;function pse(u,p){if(Gf===null){var g=Gf=[];PP=0,np=Nj(),sp={status:"pending",value:void 0,then:function(v){g.push(v)}}}return PP++,p.then(dM,dM),p}function dM(){if(--PP===0&&Gf!==null){sp!==null&&(sp.status="fulfilled");var u=Gf;Gf=null,np=0,sp=null;for(var p=0;p<u.length;p++)(0,u[p])()}}function mse(u,p){var g=[],v={status:"pending",value:null,reason:null,then:function(T){g.push(T)}};return u.then(function(){v.status="fulfilled",v.value=p;for(var T=0;T<g.length;T++)(0,g[T])(p)},function(T){for(v.status="rejected",v.reason=T,T=0;T<g.length;T++)(0,g[T])(void 0)}),v}var uM=B.S;B.S=function(u,p){KO=it(),typeof p=="object"&&p!==null&&typeof p.then=="function"&&pse(u,p),uM!==null&&uM(u,p)};var vd=O(null);function jP(){var u=vd.current;return u!==null?u:an.pooledCache}function Ib(u,p){p===null?Q(vd,vd.current):Q(vd,p.pool)}function pM(){var u=jP();return u===null?null:{parent:Gn._currentValue,pool:u}}var rp=Error(n(460)),kP=Error(n(474)),Lb=Error(n(542)),Fb={then:function(){}};function mM(u){return u=u.status,u==="fulfilled"||u==="rejected"}function fM(u,p,g){switch(g=u[g],g===void 0?u.push(p):g!==p&&(p.then(Io,Io),p=g),p.status){case"fulfilled":return p.value;case"rejected":throw u=p.reason,gM(u),u;default:if(typeof p.status=="string")p.then(Io,Io);else{if(u=an,u!==null&&100<u.shellSuspendCounter)throw Error(n(482));u=p,u.status="pending",u.then(function(v){if(p.status==="pending"){var T=p;T.status="fulfilled",T.value=v}},function(v){if(p.status==="pending"){var T=p;T.status="rejected",T.reason=v}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw u=p.reason,gM(u),u}throw wd=p,rp}}function yd(u){try{var p=u._init;return p(u._payload)}catch(g){throw g!==null&&typeof g=="object"&&typeof g.then=="function"?(wd=g,rp):g}}var wd=null;function hM(){if(wd===null)throw Error(n(459));var u=wd;return wd=null,u}function gM(u){if(u===rp||u===Lb)throw Error(n(483))}var ip=null,Hf=0;function Bb(u){var p=Hf;return Hf+=1,ip===null&&(ip=[]),fM(ip,u,p)}function qf(u,p){p=p.props.ref,u.ref=p!==void 0?p:null}function Gb(u,p){throw p.$$typeof===h?Error(n(525)):(u=Object.prototype.toString.call(p),Error(n(31,u==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":u)))}function xM(u){function p(De,Ne){if(u){var Fe=De.deletions;Fe===null?(De.deletions=[Ne],De.flags|=16):Fe.push(Ne)}}function g(De,Ne){if(!u)return null;for(;Ne!==null;)p(De,Ne),Ne=Ne.sibling;return null}function v(De){for(var Ne=new Map;De!==null;)De.key!==null?Ne.set(De.key,De):Ne.set(De.index,De),De=De.sibling;return Ne}function T(De,Ne){return De=Fo(De,Ne),De.index=0,De.sibling=null,De}function M(De,Ne,Fe){return De.index=Fe,u?(Fe=De.alternate,Fe!==null?(Fe=Fe.index,Fe<Ne?(De.flags|=67108866,Ne):Fe):(De.flags|=67108866,Ne)):(De.flags|=1048576,Ne)}function q(De){return u&&De.alternate===null&&(De.flags|=67108866),De}function le(De,Ne,Fe,Je){return Ne===null||Ne.tag!==6?(Ne=pP(Fe,De.mode,Je),Ne.return=De,Ne):(Ne=T(Ne,Fe),Ne.return=De,Ne)}function we(De,Ne,Fe,Je){var Lt=Fe.type;return Lt===y?$e(De,Ne,Fe.props.children,Je,Fe.key):Ne!==null&&(Ne.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===E&&yd(Lt)===Ne.type)?(Ne=T(Ne,Fe.props),qf(Ne,Fe),Ne.return=De,Ne):(Ne=Ob(Fe.type,Fe.key,Fe.props,null,De.mode,Je),qf(Ne,Fe),Ne.return=De,Ne)}function Be(De,Ne,Fe,Je){return Ne===null||Ne.tag!==4||Ne.stateNode.containerInfo!==Fe.containerInfo||Ne.stateNode.implementation!==Fe.implementation?(Ne=mP(Fe,De.mode,Je),Ne.return=De,Ne):(Ne=T(Ne,Fe.children||[]),Ne.return=De,Ne)}function $e(De,Ne,Fe,Je,Lt){return Ne===null||Ne.tag!==7?(Ne=hd(Fe,De.mode,Je,Lt),Ne.return=De,Ne):(Ne=T(Ne,Fe),Ne.return=De,Ne)}function tt(De,Ne,Fe){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return Ne=pP(""+Ne,De.mode,Fe),Ne.return=De,Ne;if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case x:return Fe=Ob(Ne.type,Ne.key,Ne.props,null,De.mode,Fe),qf(Fe,Ne),Fe.return=De,Fe;case b:return Ne=mP(Ne,De.mode,Fe),Ne.return=De,Ne;case E:return Ne=yd(Ne),tt(De,Ne,Fe)}if(W(Ne)||H(Ne))return Ne=hd(Ne,De.mode,Fe,null),Ne.return=De,Ne;if(typeof Ne.then=="function")return tt(De,Bb(Ne),Fe);if(Ne.$$typeof===k)return tt(De,_b(De,Ne),Fe);Gb(De,Ne)}return null}function Ge(De,Ne,Fe,Je){var Lt=Ne!==null?Ne.key:null;if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint")return Lt!==null?null:le(De,Ne,""+Fe,Je);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case x:return Fe.key===Lt?we(De,Ne,Fe,Je):null;case b:return Fe.key===Lt?Be(De,Ne,Fe,Je):null;case E:return Fe=yd(Fe),Ge(De,Ne,Fe,Je)}if(W(Fe)||H(Fe))return Lt!==null?null:$e(De,Ne,Fe,Je,null);if(typeof Fe.then=="function")return Ge(De,Ne,Bb(Fe),Je);if(Fe.$$typeof===k)return Ge(De,Ne,_b(De,Fe),Je);Gb(De,Fe)}return null}function Ue(De,Ne,Fe,Je,Lt){if(typeof Je=="string"&&Je!==""||typeof Je=="number"||typeof Je=="bigint")return De=De.get(Fe)||null,le(Ne,De,""+Je,Lt);if(typeof Je=="object"&&Je!==null){switch(Je.$$typeof){case x:return De=De.get(Je.key===null?Fe:Je.key)||null,we(Ne,De,Je,Lt);case b:return De=De.get(Je.key===null?Fe:Je.key)||null,Be(Ne,De,Je,Lt);case E:return Je=yd(Je),Ue(De,Ne,Fe,Je,Lt)}if(W(Je)||H(Je))return De=De.get(Fe)||null,$e(Ne,De,Je,Lt,null);if(typeof Je.then=="function")return Ue(De,Ne,Fe,Bb(Je),Lt);if(Je.$$typeof===k)return Ue(De,Ne,Fe,_b(Ne,Je),Lt);Gb(Ne,Je)}return null}function Ct(De,Ne,Fe,Je){for(var Lt=null,Ra=null,Ot=Ne,ca=Ne=0,ya=null;Ot!==null&&ca<Fe.length;ca++){Ot.index>ca?(ya=Ot,Ot=null):ya=Ot.sibling;var za=Ge(De,Ot,Fe[ca],Je);if(za===null){Ot===null&&(Ot=ya);break}u&&Ot&&za.alternate===null&&p(De,Ot),Ne=M(za,Ne,ca),Ra===null?Lt=za:Ra.sibling=za,Ra=za,Ot=ya}if(ca===Fe.length)return g(De,Ot),ka&&Bo(De,ca),Lt;if(Ot===null){for(;ca<Fe.length;ca++)Ot=tt(De,Fe[ca],Je),Ot!==null&&(Ne=M(Ot,Ne,ca),Ra===null?Lt=Ot:Ra.sibling=Ot,Ra=Ot);return ka&&Bo(De,ca),Lt}for(Ot=v(Ot);ca<Fe.length;ca++)ya=Ue(Ot,De,ca,Fe[ca],Je),ya!==null&&(u&&ya.alternate!==null&&Ot.delete(ya.key===null?ca:ya.key),Ne=M(ya,Ne,ca),Ra===null?Lt=ya:Ra.sibling=ya,Ra=ya);return u&&Ot.forEach(function(dc){return p(De,dc)}),ka&&Bo(De,ca),Lt}function Bt(De,Ne,Fe,Je){if(Fe==null)throw Error(n(151));for(var Lt=null,Ra=null,Ot=Ne,ca=Ne=0,ya=null,za=Fe.next();Ot!==null&&!za.done;ca++,za=Fe.next()){Ot.index>ca?(ya=Ot,Ot=null):ya=Ot.sibling;var dc=Ge(De,Ot,za.value,Je);if(dc===null){Ot===null&&(Ot=ya);break}u&&Ot&&dc.alternate===null&&p(De,Ot),Ne=M(dc,Ne,ca),Ra===null?Lt=dc:Ra.sibling=dc,Ra=dc,Ot=ya}if(za.done)return g(De,Ot),ka&&Bo(De,ca),Lt;if(Ot===null){for(;!za.done;ca++,za=Fe.next())za=tt(De,za.value,Je),za!==null&&(Ne=M(za,Ne,ca),Ra===null?Lt=za:Ra.sibling=za,Ra=za);return ka&&Bo(De,ca),Lt}for(Ot=v(Ot);!za.done;ca++,za=Fe.next())za=Ue(Ot,De,ca,za.value,Je),za!==null&&(u&&za.alternate!==null&&Ot.delete(za.key===null?ca:za.key),Ne=M(za,Ne,ca),Ra===null?Lt=za:Ra.sibling=za,Ra=za);return u&&Ot.forEach(function(kre){return p(De,kre)}),ka&&Bo(De,ca),Lt}function Ja(De,Ne,Fe,Je){if(typeof Fe=="object"&&Fe!==null&&Fe.type===y&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case x:e:{for(var Lt=Fe.key;Ne!==null;){if(Ne.key===Lt){if(Lt=Fe.type,Lt===y){if(Ne.tag===7){g(De,Ne.sibling),Je=T(Ne,Fe.props.children),Je.return=De,De=Je;break e}}else if(Ne.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===E&&yd(Lt)===Ne.type){g(De,Ne.sibling),Je=T(Ne,Fe.props),qf(Je,Fe),Je.return=De,De=Je;break e}g(De,Ne);break}else p(De,Ne);Ne=Ne.sibling}Fe.type===y?(Je=hd(Fe.props.children,De.mode,Je,Fe.key),Je.return=De,De=Je):(Je=Ob(Fe.type,Fe.key,Fe.props,null,De.mode,Je),qf(Je,Fe),Je.return=De,De=Je)}
vendor: 5,678 bytes, line 48
48return q(De);case b:e:{for(Lt=Fe.key;Ne!==null;){if(Ne.key===Lt)if(Ne.tag===4&&Ne.stateNode.containerInfo===Fe.containerInfo&&Ne.stateNode.implementation===Fe.implementation){g(De,Ne.sibling),Je=T(Ne,Fe.children||[]),Je.return=De,De=Je;break e}else{g(De,Ne);break}else p(De,Ne);Ne=Ne.sibling}Je=mP(Fe,De.mode,Je),Je.return=De,De=Je}return q(De);case E:return Fe=yd(Fe),Ja(De,Ne,Fe,Je)}if(W(Fe))return Ct(De,Ne,Fe,Je);if(H(Fe)){if(Lt=H(Fe),typeof Lt!="function")throw Error(n(150));return Fe=Lt.call(Fe),Bt(De,Ne,Fe,Je)}if(typeof Fe.then=="function")return Ja(De,Ne,Bb(Fe),Je);if(Fe.$$typeof===k)return Ja(De,Ne,_b(De,Fe),Je);Gb(De,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,Ne!==null&&Ne.tag===6?(g(De,Ne.sibling),Je=T(Ne,Fe),Je.return=De,De=Je):(g(De,Ne),Je=pP(Fe,De.mode,Je),Je.return=De,De=Je),q(De)):g(De,Ne)}return function(De,Ne,Fe,Je){try{Hf=0;var Lt=Ja(De,Ne,Fe,Je);return ip=null,Lt}catch(Ot){if(Ot===rp||Ot===Lb)throw Ot;var Ra=br(29,Ot,null,De.mode);return Ra.lanes=Je,Ra.return=De,Ra}finally{}}}var Pd=xM(!0),bM=xM(!1),Wl=!1;function NP(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function AP(u,p){u=u.updateQueue,p.updateQueue===u&&(p.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function Kl(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function $l(u,p,g){var v=u.updateQueue;if(v===null)return null;if(v=v.shared,(Ba&2)!==0){var T=v.pending;return T===null?p.next=p:(p.next=T.next,T.next=p),v.pending=p,p=Mb(u),tM(u,null,g),p}return Eb(u,v,p,g),Mb(u)}function Uf(u,p,g){if(p=p.updateQueue,p!==null&&(p=p.shared,(g&4194048)!==0)){var v=p.lanes;v&=u.pendingLanes,g|=v,p.lanes=g,rt(u,g)}}function SP(u,p){var g=u.updateQueue,v=u.alternate;if(v!==null&&(v=v.updateQueue,g===v)){var T=null,M=null;if(g=g.firstBaseUpdate,g!==null){do{var q={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};M===null?T=M=q:M=M.next=q,g=g.next}while(g!==null);M===null?T=M=p:M=M.next=p}else T=M=p;g={baseState:v.baseState,firstBaseUpdate:T,lastBaseUpdate:M,shared:v.shared,callbacks:v.callbacks},u.updateQueue=g;return}u=g.lastBaseUpdate,u===null?g.firstBaseUpdate=p:u.next=p,g.lastBaseUpdate=p}var CP=!1;function Vf(){if(CP){var u=sp;if(u!==null)throw u}}function Qf(u,p,g,v){CP=!1;var T=u.updateQueue;Wl=!1;var M=T.firstBaseUpdate,q=T.lastBaseUpdate,le=T.shared.pending;if(le!==null){T.shared.pending=null;var we=le,Be=we.next;we.next=null,q===null?M=Be:q.next=Be,q=we;var $e=u.alternate;$e!==null&&($e=$e.updateQueue,le=$e.lastBaseUpdate,le!==q&&(le===null?$e.firstBaseUpdate=Be:le.next=Be,$e.lastBaseUpdate=we))}if(M!==null){var tt=T.baseState;q=0,$e=Be=we=null,le=M;do{var Ge=le.lane&-536870913,Ue=Ge!==le.lane;if(Ue?(va&Ge)===Ge:(v&Ge)===Ge){Ge!==0&&Ge===np&&(CP=!0),$e!==null&&($e=$e.next={lane:0,tag:le.tag,payload:le.payload,callback:null,next:null});e:{var Ct=u,Bt=le;Ge=p;var Ja=g;switch(Bt.tag){case 1:if(Ct=Bt.payload,typeof Ct=="function"){tt=Ct.call(Ja,tt,Ge);break e}tt=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=Bt.payload,Ge=typeof Ct=="function"?Ct.call(Ja,tt,Ge):Ct,Ge==null)break e;tt=f({},tt,Ge);break e;case 2:Wl=!0}}Ge=le.callback,Ge!==null&&(u.flags|=64,Ue&&(u.flags|=8192),Ue=T.callbacks,Ue===null?T.callbacks=[Ge]:Ue.push(Ge))}else Ue={lane:Ge,tag:le.tag,payload:le.payload,callback:le.callback,next:null},$e===null?(Be=$e=Ue,we=tt):$e=$e.next=Ue,q|=Ge;if(le=le.next,le===null){if(le=T.shared.pending,le===null)break;Ue=le,le=Ue.next,Ue.next=null,T.lastBaseUpdate=Ue,T.shared.pending=null}}while(!0);$e===null&&(we=tt),T.baseState=we,T.firstBaseUpdate=Be,T.lastBaseUpdate=$e,M===null&&(T.shared.lanes=0),ec|=q,u.lanes=q,u.memoizedState=tt}}function vM(u,p){if(typeof u!="function")throw Error(n(191,u));u.call(p)}function yM(u,p){var g=u.callbacks;if(g!==null)for(u.callbacks=null,u=0;u<g.length;u++)vM(g[u],p)}var op=O(null),Hb=O(0);function wM(u,p){u=Yo,Q(Hb,u),Q(op,p),Yo=u|p.baseLanes}function TP(){Q(Hb,Yo),Q(op,op.current)}function DP(){Yo=Hb.current,Y(op),Y(Hb)}var vr=O(null),Kr=null;function Xl(u){var p=u.alternate;Q(zn,zn.current&1),Q(vr,u),Kr===null&&(p===null||op.current!==null||p.memoizedState!==null)&&(Kr=u)}function EP(u){Q(zn,zn.current),Q(vr,u),Kr===null&&(Kr=u)}function PM(u){u.tag===22?(Q(zn,zn.current),Q(vr,u),Kr===null&&(Kr=u)):Yl()}function Yl(){Q(zn,zn.current),Q(vr,vr.current)}function yr(u){Y(vr),Kr===u&&(Kr=null),Y(zn)}var zn=O(0);function qb(u){for(var p=u;p!==null;){if(p.tag===13){var g=p.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||Ij(g)||Lj(g)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===u)break;for(;p.sibling===null;){if(p.return===null||p.return===u)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var qo=0,ia=null,Ya=null,Hn=null,Ub=!1,lp=!1,jd=!1,Vb=0,Wf=0,cp=null,fse=0;function Cn(){throw Error(n(321))}function MP(u,p){if(p===null)return!1;for(var g=0;g<p.length&&g<u.length;g++)if(!xr(u[g],p[g]))return!1;return!0}function OP(u,p,g,v,T,M){return qo=M,ia=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,B.H=u===null||u.memoizedState===null?rO:KP,jd=!1,M=g(v,T),jd=!1,lp&&(M=kM(p,g,v,T)),jM(u),M}function jM(u){B.H=Xf;var p=Ya!==null&&Ya.next!==null;if(qo=0,Hn=Ya=ia=null,Ub=!1,Wf=0,cp=null,p)throw Error(n(300));
vendor: 20,378 bytes, line 48
48u===null||qn||(u=u.dependencies,u!==null&&zb(u)&&(qn=!0))}function kM(u,p,g,v){ia=u;var T=0;do{if(lp&&(cp=null),Wf=0,lp=!1,25<=T)throw Error(n(301));if(T+=1,Hn=Ya=null,u.updateQueue!=null){var M=u.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}B.H=iO,M=p(g,v)}while(lp);return M}function hse(){var u=B.H,p=u.useState()[0];return p=typeof p.then=="function"?Kf(p):p,u=u.useState()[0],(Ya!==null?Ya.memoizedState:null)!==u&&(ia.flags|=1024),p}function RP(){var u=Vb!==0;return Vb=0,u}function zP(u,p,g){p.updateQueue=u.updateQueue,p.flags&=-2053,u.lanes&=~g}function _P(u){if(Ub){for(u=u.memoizedState;u!==null;){var p=u.queue;p!==null&&(p.pending=null),u=u.next}Ub=!1}qo=0,Hn=Ya=ia=null,lp=!1,Wf=Vb=0,cp=null}function Us(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hn===null?ia.memoizedState=Hn=u:Hn=Hn.next=u,Hn}function _n(){if(Ya===null){var u=ia.alternate;u=u!==null?u.memoizedState:null}else u=Ya.next;var p=Hn===null?ia.memoizedState:Hn.next;if(p!==null)Hn=p,Ya=u;else{if(u===null)throw ia.alternate===null?Error(n(467)):Error(n(310));Ya=u,u={memoizedState:Ya.memoizedState,baseState:Ya.baseState,baseQueue:Ya.baseQueue,queue:Ya.queue,next:null},Hn===null?ia.memoizedState=Hn=u:Hn=Hn.next=u}return Hn}function Qb(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kf(u){var p=Wf;return Wf+=1,cp===null&&(cp=[]),u=fM(cp,u,p),p=ia,(Hn===null?p.memoizedState:Hn.next)===null&&(p=p.alternate,B.H=p===null||p.memoizedState===null?rO:KP),u}function Wb(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return Kf(u);if(u.$$typeof===k)return Ps(u)}throw Error(n(438,String(u)))}function IP(u){var p=null,g=ia.updateQueue;if(g!==null&&(p=g.memoCache),p==null){var v=ia.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(p={data:v.data.map(function(T){return T.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),g===null&&(g=Qb(),ia.updateQueue=g),g.memoCache=p,g=p.data[p.index],g===void 0)for(g=p.data[p.index]=Array(u),v=0;v<u;v++)g[v]=F;return p.index++,g}function Uo(u,p){return typeof p=="function"?p(u):p}function Kb(u){var p=_n();return LP(p,Ya,u)}function LP(u,p,g){var v=u.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=g;var T=u.baseQueue,M=v.pending;if(M!==null){if(T!==null){var q=T.next;T.next=M.next,M.next=q}p.baseQueue=T=M,v.pending=null}if(M=u.baseState,T===null)u.memoizedState=M;else{p=T.next;var le=q=null,we=null,Be=p,$e=!1;do{var tt=Be.lane&-536870913;if(tt!==Be.lane?(va&tt)===tt:(qo&tt)===tt){var Ge=Be.revertLane;if(Ge===0)we!==null&&(we=we.next={lane:0,revertLane:0,gesture:null,action:Be.action,hasEagerState:Be.hasEagerState,eagerState:Be.eagerState,next:null}),tt===np&&($e=!0);else if((qo&Ge)===Ge){Be=Be.next,Ge===np&&($e=!0);continue}else tt={lane:0,revertLane:Be.revertLane,gesture:null,action:Be.action,hasEagerState:Be.hasEagerState,eagerState:Be.eagerState,next:null},we===null?(le=we=tt,q=M):we=we.next=tt,ia.lanes|=Ge,ec|=Ge;tt=Be.action,jd&&g(M,tt),M=Be.hasEagerState?Be.eagerState:g(M,tt)}else Ge={lane:tt,revertLane:Be.revertLane,gesture:Be.gesture,action:Be.action,hasEagerState:Be.hasEagerState,eagerState:Be.eagerState,next:null},we===null?(le=we=Ge,q=M):we=we.next=Ge,ia.lanes|=tt,ec|=tt;Be=Be.next}while(Be!==null&&Be!==p);if(we===null?q=M:we.next=le,!xr(M,u.memoizedState)&&(qn=!0,$e&&(g=sp,g!==null)))throw g;u.memoizedState=M,u.baseState=q,u.baseQueue=we,v.lastRenderedState=M}return T===null&&(v.lanes=0),[u.memoizedState,v.dispatch]}function FP(u){var p=_n(),g=p.queue;if(g===null)throw Error(n(311));g.lastRenderedReducer=u;var v=g.dispatch,T=g.pending,M=p.memoizedState;if(T!==null){g.pending=null;var q=T=T.next;do M=u(M,q.action),q=q.next;while(q!==T);xr(M,p.memoizedState)||(qn=!0),p.memoizedState=M,p.baseQueue===null&&(p.baseState=M),g.lastRenderedState=M}return[M,v]}function NM(u,p,g){var v=ia,T=_n(),M=ka;if(M){if(g===void 0)throw Error(n(407));g=g()}else g=p();var q=!xr((Ya||T).memoizedState,g);if(q&&(T.memoizedState=g,qn=!0),T=T.queue,HP(CM.bind(null,v,T,u),[u]),T.getSnapshot!==p||q||Hn!==null&&Hn.memoizedState.tag&1){if(v.flags|=2048,dp(9,{destroy:void 0},SM.bind(null,v,T,g,p),null),an===null)throw Error(n(349));M||(qo&127)!==0||AM(v,p,g)}return g}function AM(u,p,g){u.flags|=16384,u={getSnapshot:p,value:g},p=ia.updateQueue,p===null?(p=Qb(),ia.updateQueue=p,p.stores=[u]):(g=p.stores,g===null?p.stores=[u]:g.push(u))}function SM(u,p,g,v){p.value=g,p.getSnapshot=v,TM(p)&&DM(u)}function CM(u,p,g){return g(function(){TM(p)&&DM(u)})}function TM(u){var p=u.getSnapshot;u=u.value;try{var g=p();return!xr(u,g)}catch{return!0}}function DM(u){var p=fd(u,2);p!==null&&or(p,u,2)}function BP(u){var p=Us();if(typeof u=="function"){var g=u;if(u=g(),jd){ye(!0);try{g()}finally{ye(!1)}}}return p.memoizedState=p.baseState=u,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:u},p}function EM(u,p,g,v){return u.baseState=g,LP(u,Ya,typeof v=="function"?v:Uo)}function gse(u,p,g,v,T){if(Yb(u))throw Error(n(485));if(u=p.action,u!==null){var M={payload:T,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){M.listeners.push(q)}};B.T!==null?g(!0):M.isTransition=!1,v(M),g=p.pending,g===null?(M.next=p.pending=M,MM(p,M)):(M.next=g.next,p.pending=g.next=M)}}function MM(u,p){var g=p.action,v=p.payload,T=u.state;if(p.isTransition){var M=B.T,q={};B.T=q;try{var le=g(T,v),we=B.S;we!==null&&we(q,le),OM(u,p,le)}catch(Be){GP(u,p,Be)}finally{M!==null&&q.types!==null&&(M.types=q.types),B.T=M}}else try{M=g(T,v),OM(u,p,M)}catch(Be){GP(u,p,Be)}}function OM(u,p,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(v){RM(u,p,v)},function(v){return GP(u,p,v)}):RM(u,p,g)}function RM(u,p,g){p.status="fulfilled",p.value=g,zM(p),u.state=g,p=u.pending,p!==null&&(g=p.next,g===p?u.pending=null:(g=g.next,p.next=g,MM(u,g)))}function GP(u,p,g){var v=u.pending;if(u.pending=null,v!==null){v=v.next;do p.status="rejected",p.reason=g,zM(p),p=p.next;while(p!==v)}u.action=null}function zM(u){u=u.listeners;for(var p=0;p<u.length;p++)(0,u[p])()}function _M(u,p){return p}function IM(u,p){if(ka){var g=an.formState;if(g!==null){e:{var v=ia;if(ka){if(fn){t:{for(var T=fn,M=Wr;T.nodeType!==8;){if(!M){T=null;break t}if(T=$r(T.nextSibling),T===null){T=null;break t}}M=T.data,T=M==="F!"||M==="F"?T:null}if(T){fn=$r(T.nextSibling),v=T.data==="F!";break e}}Vl(v)}v=!1}v&&(p=g[0])}}return g=Us(),g.memoizedState=g.baseState=p,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_M,lastRenderedState:p},g.queue=v,g=aO.bind(null,ia,v),v.dispatch=g,v=BP(!1),M=WP.bind(null,ia,!1,v.queue),v=Us(),T={state:p,dispatch:null,action:u,pending:null},v.queue=T,g=gse.bind(null,ia,T,M,g),T.dispatch=g,v.memoizedState=u,[p,g,!1]}function LM(u){var p=_n();return FM(p,Ya,u)}function FM(u,p,g){if(p=LP(u,p,_M)[0],u=Kb(Uo)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var v=Kf(p)}catch(q){throw q===rp?Lb:q}else v=p;p=_n();var T=p.queue,M=T.dispatch;return g!==p.memoizedState&&(ia.flags|=2048,dp(9,{destroy:void 0},xse.bind(null,T,g),null)),[v,M,u]}function xse(u,p){u.action=p}function BM(u){var p=_n(),g=Ya;if(g!==null)return FM(p,g,u);_n(),p=p.memoizedState,g=_n();var v=g.queue.dispatch;return g.memoizedState=u,[p,v,!1]}function dp(u,p,g,v){return u={tag:u,create:g,deps:v,inst:p,next:null},p=ia.updateQueue,p===null&&(p=Qb(),ia.updateQueue=p),g=p.lastEffect,g===null?p.lastEffect=u.next=u:(v=g.next,g.next=u,u.next=v,p.lastEffect=u),u}function GM(){return _n().memoizedState}function $b(u,p,g,v){var T=Us();ia.flags|=u,T.memoizedState=dp(1|p,{destroy:void 0},g,v===void 0?null:v)}function Xb(u,p,g,v){var T=_n();v=v===void 0?null:v;var M=T.memoizedState.inst;Ya!==null&&v!==null&&MP(v,Ya.memoizedState.deps)?T.memoizedState=dp(p,M,g,v):(ia.flags|=u,T.memoizedState=dp(1|p,M,g,v))}function HM(u,p){$b(8390656,8,u,p)}function HP(u,p){Xb(2048,8,u,p)}function bse(u){ia.flags|=4;var p=ia.updateQueue;if(p===null)p=Qb(),ia.updateQueue=p,p.events=[u];else{var g=p.events;g===null?p.events=[u]:g.push(u)}}function qM(u){var p=_n().memoizedState;return bse({ref:p,nextImpl:u}),function(){if((Ba&2)!==0)throw Error(n(440));return p.impl.apply(void 0,arguments)}}function UM(u,p){return Xb(4,2,u,p)}function VM(u,p){return Xb(4,4,u,p)}function QM(u,p){if(typeof p=="function"){u=u();var g=p(u);return function(){typeof g=="function"?g():p(null)}}if(p!=null)return u=u(),p.current=u,function(){p.current=null}}function WM(u,p,g){g=g!=null?g.concat([u]):null,Xb(4,4,QM.bind(null,p,u),g)}function qP(){}function KM(u,p){var g=_n();p=p===void 0?null:p;var v=g.memoizedState;return p!==null&&MP(p,v[1])?v[0]:(g.memoizedState=[u,p],u)}function $M(u,p){var g=_n();p=p===void 0?null:p;var v=g.memoizedState;if(p!==null&&MP(p,v[1]))return v[0];if(v=u(),jd){ye(!0);try{u()}finally{ye(!1)}}return g.memoizedState=[v,p],v}function UP(u,p,g){return g===void 0||(qo&1073741824)!==0&&(va&261930)===0?u.memoizedState=p:(u.memoizedState=g,u=XO(),ia.lanes|=u,ec|=u,g)}function XM(u,p,g,v){return xr(g,p)?g:op.current!==null?(u=UP(u,g,v),xr(u,p)||(qn=!0),u):(qo&42)===0||(qo&1073741824)!==0&&(va&261930)===0?(qn=!0,u.memoizedState=g):(u=XO(),ia.lanes|=u,ec|=u,p)}function YM(u,p,g,v,T){var M=K.p;K.p=M!==0&&8>M?M:8;var q=B.T,le={};B.T=le,WP(u,!1,p,g);try{var we=T(),Be=B.S;if(Be!==null&&Be(le,we),we!==null&&typeof we=="object"&&typeof we.then=="function"){var $e=mse(we,v);$f(u,p,$e,jr(u))}else $f(u,p,v,jr(u))}catch(tt){$f(u,p,{then:function(){},status:"rejected",reason:tt},jr())}finally{K.p=M,q!==null&&le.types!==null&&(q.types=le.types),B.T=q}}function vse(){}function VP(u,p,g,v){if(u.tag!==5)throw Error(n(476));var T=ZM(u).queue;YM(u,T,p,ae,g===null?vse:function(){return JM(u),g(v)})}function ZM(u){var p=u.memoizedState;if(p!==null)return p;p={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:ae},next:null};var g={};return p.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:g},next:null},u.memoizedState=p,u=u.alternate,u!==null&&(u.memoizedState=p),p}function JM(u){var p=ZM(u);p.next===null&&(p=u.alternate.memoizedState),$f(u,p.next.queue,{},jr())}function QP(){return Ps(ph)}function eO(){return _n().memoizedState}function tO(){return _n().memoizedState}function yse(u){for(var p=u.return;p!==null;){switch(p.tag){case 24:case 3:var g=jr();u=Kl(g);var v=$l(p,u,g);v!==null&&(or(v,p,g),Uf(v,p,g)),p={cache:wP()},u.payload=p;return}p=p.return}}function wse(u,p,g){var v=jr();g={lane:v,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Yb(u)?nO(p,g):(g=dP(u,p,g,v),g!==null&&(or(g,u,v),sO(g,p,v)))}function aO(u,p,g){var v=jr();$f(u,p,g,v)}function $f(u,p,g,v){var T={lane:v,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(Yb(u))nO(p,T);else{var M=u.alternate;if(u.lanes===0&&(M===null||M.lanes===0)&&(M=p.lastRenderedReducer,M!==null))try{var q=p.lastRenderedState,le=M(q,g);if(T.hasEagerState=!0,T.eagerState=le,xr(le,q))return Eb(u,p,T,0),an===null&&Db(),!1}catch{}finally{}if(g=dP(u,p,T,v),g!==null)return or(g,u,v),sO(g,p,v),!0}return!1}function WP(u,p,g,v){if(v={lane:2,revertLane:Nj(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Yb(u)){if(p)throw Error(n(479))}else p=dP(u,g,v,2),p!==null&&or(p,u,2)}function Yb(u){var p=u.alternate;return u===ia||p!==null&&p===ia}function nO(u,p){lp=Ub=!0;var g=u.pending;g===null?p.next=p:(p.next=g.next,g.next=p),u.pending=p}function sO(u,p,g){if((g&4194048)!==0){var v=p.lanes;v&=u.pendingLanes,g|=v,p.lanes=g,rt(u,g)}}var Xf={readContext:Ps,use:Wb,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useLayoutEffect:Cn,useInsertionEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useSyncExternalStore:Cn,useId:Cn,useHostTransitionStatus:Cn,useFormState:Cn,useActionState:Cn,useOptimistic:Cn,useMemoCache:Cn,useCacheRefresh:Cn};Xf.useEffectEvent=Cn;var rO={readContext:Ps,use:Wb,useCallback:function(u,p){return Us().memoizedState=[u,p===void 0?null:p],u},useContext:Ps,useEffect:HM,useImperativeHandle:function(u,p,g){g=g!=null?g.concat([u]):null,$b(4194308,4,QM.bind(null,p,u),g)},useLayoutEffect:function(u,p){return $b(4194308,4,u,p)},useInsertionEffect:function(u,p){$b(4,2,u,p)},useMemo:function(u,p){var g=Us();p=p===void 0?null:p;var v=u();if(jd){ye(!0);try{u()}finally{ye(!1)}}return g.memoizedState=[v,p],v},useReducer:function(u,p,g){var v=Us();if(g!==void 0){var T=g(p);if(jd){ye(!0);try{g(p)}finally{ye(!1)}}}else T=p;return v.memoizedState=v.baseState=T,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:T},v.queue=u,u=u.dispatch=wse.bind(null,ia,u),[v.memoizedState,u]},useRef:function(u){var p=Us();return u={current:u},p.memoizedState=u},useState:function(u){u=BP(u);var p=u.queue,g=aO.bind(null,ia,p);return p.dispatch=g,[u.memoizedState,g]},useDebugValue:qP,useDeferredValue:function(u,p){var g=Us();return UP(g,u,p)},useTransition:function(){var u=BP(!1);return u=YM.bind(null,ia,u.queue,!0,!1),Us().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,p,g){var v=ia,T=Us();if(ka){if(g===void 0)throw Error(n(407));g=g()}else{if(g=p(),an===null)throw Error(n(349));(va&127)!==0||AM(v,p,g)}T.memoizedState=g;var M={value:g,getSnapshot:p};return T.queue=M,HM(CM.bind(null,v,M,u),[u]),v.flags|=2048,dp(9,{destroy:void 0},SM.bind(null,v,M,g,p),null),g},useId:function(){var u=Us(),p=an.identifierPrefix;if(ka){var g=so,v=no;g=(v&~(1<<32-Ee(v)-1)).toString(32)+g,p="_"+p+"R_"+g,g=Vb++,0<g&&(p+="H"+g.toString(32)),p+="_"}else g=fse++,p="_"+p+"r_"+g.toString(32)+"_";return u.memoizedState=p},useHostTransitionStatus:QP,useFormState:IM,useActionState:IM,useOptimistic:function(u){var p=Us();p.memoizedState=p.baseState=u;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=g,p=WP.bind(null,ia,!0,g),g.dispatch=p,[u,p]},useMemoCache:IP,useCacheRefresh:function(){return Us().memoizedState=yse.bind(null,ia)},useEffectEvent:function(u){var p=Us(),g={impl:u};return p.memoizedState=g,function(){if((Ba&2)!==0)throw Error(n(440));return g.impl.apply(void 0,arguments)}}},KP={readContext:Ps,use:Wb,useCallback:KM,useContext:Ps,useEffect:HP,useImperativeHandle:WM,useInsertionEffect:UM,useLayoutEffect:VM,useMemo:$M,useReducer:Kb,useRef:GM,useState:function(){return Kb(Uo)},useDebugValue:qP,useDeferredValue:function(u,p){var g=_n();return XM(g,Ya.memoizedState,u,p)},useTransition:function(){var u=Kb(Uo)[0],p=_n().memoizedState;return[typeof u=="boolean"?u:Kf(u),p]},useSyncExternalStore:NM,useId:eO,useHostTransitionStatus:QP,useFormState:LM,useActionState:LM,useOptimistic:function(u,p){var g=_n();return EM(g,Ya,u,p)},useMemoCache:IP,useCacheRefresh:tO};KP.useEffectEvent=qM;var iO={readContext:Ps,use:Wb,useCallback:KM,useContext:Ps,useEffect:HP,useImperativeHandle:WM,useInsertionEffect:UM,useLayoutEffect:VM,useMemo:$M,useReducer:FP,useRef:GM,useState:function(){return FP(Uo)},useDebugValue:qP,useDeferredValue:function(u,p){var g=_n();return Ya===null?UP(g,u,p):XM(g,Ya.memoizedState,u,p)},useTransition:function(){var u=FP(Uo)[0],p=_n().memoizedState;return[typeof u=="boolean"?u:Kf(u),p]},useSyncExternalStore:NM,useId:eO,useHostTransitionStatus:QP,useFormState:BM,useActionState:BM,useOptimistic:function(u,p){var g=_n();return Ya!==null?EM(g,Ya,u,p):(g.baseState=u,[u,g.queue.dispatch])},useMemoCache:IP,useCacheRefresh:tO};iO.useEffectEvent=qM;function $P(u,p,g,v){p=u.memoizedState,g=g(v,p),g=g==null?p:f({},p,g),u.memoizedState=g,u.lanes===0&&(u.updateQueue.baseState=g)}var XP={enqueueSetState:function(u,p,g){u=u._reactInternals;var v=jr(),T=Kl(v);T.payload=p,g!=null&&(T.callback=g),p=$l(u,T,v),p!==null&&(or(p,u,v),Uf(p,u,v))},enqueueReplaceState:function(u,p,g){u=u._reactInternals;var v=jr(),T=Kl(v);T.tag=1,T.payload=p,g!=null&&(T.callback=g),p=$l(u,T,v),p!==null&&(or(p,u,v),Uf(p,u,v))},enqueueForceUpdate:function(u,p){u=u._reactInternals;var g=jr(),v=Kl(g);v.tag=2,p!=null&&(v.callback=p),p=$l(u,v,g),p!==null&&(or(p,u,g),Uf(p,u,g))}};function oO(u,p,g,v,T,M,q){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(v,M,q):p.prototype&&p.prototype.isPureReactComponent?!_f(g,v)||!_f(T,M):!0}function lO(u,p,g,v){u=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(g,v),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(g,v),p.state!==u&&XP.enqueueReplaceState(p,p.state,null)}function kd(u,p){var g=p;if("ref"in p){g={};for(var v in p)v!=="ref"&&(g[v]=p[v])}if(u=u.defaultProps){g===p&&(g=f({},g));for(var T in u)g[T]===void 0&&(g[T]=u[T])}return g}function cO(u){Tb(u)}function dO(u){console.error(u)}function uO(u){Tb(u)}function Zb(u,p){try{var g=u.onUncaughtError;g(p.value,{componentStack:p.stack})}catch(v){setTimeout(function(){throw v})}}function pO(u,p,g){try{var v=u.onCaughtError;v(g.value,{componentStack:g.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function YP(u,p,g){return g=Kl(g),g.tag=3,g.payload={element:null},g.callback=function(){Zb(u,p)},g}function mO(u){return u=Kl(u),u.tag=3,u}function fO(u,p,g,v){var T=g.type.getDerivedStateFromError;if(typeof T=="function"){var M=v.value;u.payload=function(){return T(M)},u.callback=function(){pO(p,g,v)}}var q=g.stateNode;q!==null&&typeof q.componentDidCatch=="function"&&(u.callback=function(){pO(p,g,v),typeof T!="function"&&(tc===null?tc=new Set([this]):tc.add(this));var le=v.stack;this.componentDidCatch(v.value,{componentStack:le!==null?le:""})})}function Pse(u,p,g,v,T){if(g.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(p=g.alternate,p!==null&&ap(p,g,T,!0),g=vr.current,g!==null){switch(g.tag){case 31:case 13:return Kr===null?d0():g.alternate===null&&Tn===0&&(Tn=3),g.flags&=-257,g.flags|=65536,g.lanes=T,v===Fb?g.flags|=16384:(p=g.updateQueue,p===null?g.updateQueue=new Set([v]):p.add(v),Pj(u,v,T)),!1;case 22:return g.flags|=65536,v===Fb?g.flags|=16384:(p=g.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([v])},g.updateQueue=p):(g=p.retryQueue,g===null?p.retryQueue=new Set([v]):g.add(v)),Pj(u,v,T)),!1}throw Error(n(435,g.tag))}return Pj(u,v,T),d0(),!1}if(ka)return p=vr.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=T,v!==gP&&(u=Error(n(422),{cause:v}),Ff(Ur(u,g)))):(v!==gP&&(p=Error(n(423),{cause:v}),Ff(Ur(p,g))),u=u.current.alternate,u.flags|=65536,T&=-T,u.lanes|=T,v=Ur(v,g),T=YP(u.stateNode,v,T),SP(u,T),Tn!==4&&(Tn=2)),!1;var M=Error(n(520),{cause:v});if(M=Ur(M,g),sh===null?sh=[M]:sh.push(M),Tn!==4&&(Tn=2),p===null)return!0;v=Ur(v,g),g=p;do{switch(g.tag){case 3:return g.flags|=65536,u=T&-T,g.lanes|=u,u=YP(g.stateNode,v,u),SP(g,u),!1;case 1:if(p=g.type,M=g.stateNode,(g.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(tc===null||!tc.has(M))))return g.flags|=65536,T&=-T,g.lanes|=T,T=mO(T),fO(T,u,g,v),SP(g,T),!1}g=g.return}while(g!==null);return!1}var ZP=Error(n(461)),qn=!1;function js(u,p,g,v){p.child=u===null?bM(p,null,g,v):Pd(p,u.child,g,v)}function hO(u,p,g,v,T){g=g.render;var M=p.ref;if("ref"in v){var q={};for(var le in v)le!=="ref"&&(q[le]=v[le])}else q=v;return bd(p),v=OP(u,p,g,q,M,T),le=RP(),u!==null&&!qn?(zP(u,p,T),Vo(u,p,T)):(ka&&le&&fP(p),p.flags|=1,js(u,p,v,T),p.child)}function gO(u,p,g,v,T){if(u===null){var M=g.type;return typeof M=="function"&&!uP(M)&&M.defaultProps===void 0&&g.compare===null?(p.tag=15,p.type=M,xO(u,p,M,v,T)):(u=Ob(g.type,null,v,p,p.mode,T),u.ref=p.ref,u.return=p,p.child=u)}if(M=u.child,!ij(u,T)){var q=M.memoizedProps;if(g=g.compare,g=g!==null?g:_f,g(q,v)&&u.ref===p.ref)return Vo(u,p,T)}return p.flags|=1,u=Fo(M,v),u.ref=p.ref,u.return=p,p.child=u}function xO(u,p,g,v,T){if(u!==null){var M=u.memoizedProps;if(_f(M,v)&&u.ref===p.ref)if(qn=!1,p.pendingProps=v=M,ij(u,T))(u.flags&131072)!==0&&(qn=!0);else return p.lanes=u.lanes,Vo(u,p,T)}return JP(u,p,g,v,T)}function bO(u,p,g,v){var T=v.children,M=u!==null?u.memoizedState:null;if(u===null&&p.stateNode===null&&(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}
vendor: 11,346 bytes, line 48
48),v.mode==="hidden"){if((p.flags&128)!==0){if(M=M!==null?M.baseLanes|g:g,u!==null){for(v=p.child=u.child,T=0;v!==null;)T=T|v.lanes|v.childLanes,v=v.sibling;v=T&~M}else v=0,p.child=null;return vO(u,p,M,g,v)}if((g&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},u!==null&&Ib(p,M!==null?M.cachePool:null),M!==null?wM(p,M):TP(),PM(p);else return v=p.lanes=536870912,vO(u,p,M!==null?M.baseLanes|g:g,g,v)}else M!==null?(Ib(p,M.cachePool),wM(p,M),Yl(),p.memoizedState=null):(u!==null&&Ib(p,null),TP(),Yl());return js(u,p,T,g),p.child}function Yf(u,p){return u!==null&&u.tag===22||p.stateNode!==null||(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function vO(u,p,g,v,T){var M=jP();return M=M===null?null:{parent:Gn._currentValue,pool:M},p.memoizedState={baseLanes:g,cachePool:M},u!==null&&Ib(p,null),TP(),PM(p),u!==null&&ap(u,p,v,!0),p.childLanes=T,null}function Jb(u,p){return p=t0({mode:p.mode,children:p.children},u.mode),p.ref=u.ref,u.child=p,p.return=u,p}function yO(u,p,g){return Pd(p,u.child,null,g),u=Jb(p,p.pendingProps),u.flags|=2,yr(p),p.memoizedState=null,u}function jse(u,p,g){var v=p.pendingProps,T=(p.flags&128)!==0;if(p.flags&=-129,u===null){if(ka){if(v.mode==="hidden")return u=Jb(p,v),p.lanes=536870912,Yf(null,u);if(EP(p),(u=fn)?(u=M7(u,Wr),u=u!==null&&u.data==="&"?u:null,u!==null&&(p.memoizedState={dehydrated:u,treeContext:ql!==null?{id:no,overflow:so}:null,retryLane:536870912,hydrationErrors:null},g=nM(u),g.return=p,p.child=g,ws=p,fn=null)):u=null,u===null)throw Vl(p);return p.lanes=536870912,null}return Jb(p,v)}var M=u.memoizedState;if(M!==null){var q=M.dehydrated;if(EP(p),T)if(p.flags&256)p.flags&=-257,p=yO(u,p,g);else if(p.memoizedState!==null)p.child=u.child,p.flags|=128,p=null;else throw Error(n(558));else if(qn||ap(u,p,g,!1),T=(g&u.childLanes)!==0,qn||T){if(v=an,v!==null&&(q=xt(v,g),q!==0&&q!==M.retryLane))throw M.retryLane=q,fd(u,q),or(v,u,q),ZP;d0(),p=yO(u,p,g)}else u=M.treeContext,fn=$r(q.nextSibling),ws=p,ka=!0,Ul=null,Wr=!1,u!==null&&iM(p,u),p=Jb(p,v),p.flags|=4096;return p}return u=Fo(u.child,{mode:v.mode,children:v.children}),u.ref=p.ref,p.child=u,u.return=p,u}function e0(u,p){var g=p.ref;if(g===null)u!==null&&u.ref!==null&&(p.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(n(284));(u===null||u.ref!==g)&&(p.flags|=4194816)}}function JP(u,p,g,v,T){return bd(p),g=OP(u,p,g,v,void 0,T),v=RP(),u!==null&&!qn?(zP(u,p,T),Vo(u,p,T)):(ka&&v&&fP(p),p.flags|=1,js(u,p,g,T),p.child)}function wO(u,p,g,v,T,M){return bd(p),p.updateQueue=null,g=kM(p,v,g,T),jM(u),v=RP(),u!==null&&!qn?(zP(u,p,M),Vo(u,p,M)):(ka&&v&&fP(p),p.flags|=1,js(u,p,g,M),p.child)}function PO(u,p,g,v,T){if(bd(p),p.stateNode===null){var M=Zu,q=g.contextType;typeof q=="object"&&q!==null&&(M=Ps(q)),M=new g(v,M),p.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=XP,p.stateNode=M,M._reactInternals=p,M=p.stateNode,M.props=v,M.state=p.memoizedState,M.refs={},NP(p),q=g.contextType,M.context=typeof q=="object"&&q!==null?Ps(q):Zu,M.state=p.memoizedState,q=g.getDerivedStateFromProps,typeof q=="function"&&($P(p,g,q,v),M.state=p.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(q=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),q!==M.state&&XP.enqueueReplaceState(M,M.state,null),Qf(p,v,M,T),Vf(),M.state=p.memoizedState),typeof M.componentDidMount=="function"&&(p.flags|=4194308),v=!0}else if(u===null){M=p.stateNode;var le=p.memoizedProps,we=kd(g,le);M.props=we;var Be=M.context,$e=g.contextType;q=Zu,typeof $e=="object"&&$e!==null&&(q=Ps($e));var tt=g.getDerivedStateFromProps;$e=typeof tt=="function"||typeof M.getSnapshotBeforeUpdate=="function",le=p.pendingProps!==le,$e||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(le||Be!==q)&&lO(p,M,v,q),Wl=!1;var Ge=p.memoizedState;M.state=Ge,Qf(p,v,M,T),Vf(),Be=p.memoizedState,le||Ge!==Be||Wl?(typeof tt=="function"&&($P(p,g,tt,v),Be=p.memoizedState),(we=Wl||oO(p,g,we,v,Ge,Be,q))?($e||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(p.flags|=4194308)):(typeof M.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=v,p.memoizedState=Be),M.props=v,M.state=Be,M.context=q,v=we):(typeof M.componentDidMount=="function"&&(p.flags|=4194308),v=!1)}else{M=p.stateNode,AP(u,p),q=p.memoizedProps,$e=kd(g,q),M.props=$e,tt=p.pendingProps,Ge=M.context,Be=g.contextType,we=Zu,typeof Be=="object"&&Be!==null&&(we=Ps(Be)),le=g.getDerivedStateFromProps,(Be=typeof le=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(q!==tt||Ge!==we)&&lO(p,M,v,we),Wl=!1,Ge=p.memoizedState,M.state=Ge,Qf(p,v,M,T),Vf();var Ue=p.memoizedState;q!==tt||Ge!==Ue||Wl||u!==null&&u.dependencies!==null&&zb(u.dependencies)?(typeof le=="function"&&($P(p,g,le,v),Ue=p.memoizedState),($e=Wl||oO(p,g,$e,v,Ge,Ue,we)||u!==null&&u.dependencies!==null&&zb(u.dependencies))?(Be||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(v,Ue,we),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(v,Ue,we)),typeof M.componentDidUpdate=="function"&&(p.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof M.componentDidUpdate!="function"||q===u.memoizedProps&&Ge===u.memoizedState||(p.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||q===u.memoizedProps&&Ge===u.memoizedState||(p.flags|=1024),p.memoizedProps=v,p.memoizedState=Ue),M.props=v,M.state=Ue,M.context=we,v=$e):(typeof M.componentDidUpdate!="function"||q===u.memoizedProps&&Ge===u.memoizedState||(p.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||q===u.memoizedProps&&Ge===u.memoizedState||(p.flags|=1024),v=!1)}return M=v,e0(u,p),v=(p.flags&128)!==0,M||v?(M=p.stateNode,g=v&&typeof g.getDerivedStateFromError!="function"?null:M.render(),p.flags|=1,u!==null&&v?(p.child=Pd(p,u.child,null,T),p.child=Pd(p,null,g,T)):js(u,p,g,T),p.memoizedState=M.state,u=p.child):u=Vo(u,p,T),u}function jO(u,p,g,v){return gd(),p.flags|=256,js(u,p,g,v),p.child}var ej={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tj(u){return{baseLanes:u,cachePool:pM()}}function aj(u,p,g){return u=u!==null?u.childLanes&~g:0,p&&(u|=Pr),u}function kO(u,p,g){var v=p.pendingProps,T=!1,M=(p.flags&128)!==0,q;if((q=M)||(q=u!==null&&u.memoizedState===null?!1:(zn.current&2)!==0),q&&(T=!0,p.flags&=-129),q=(p.flags&32)!==0,p.flags&=-33,u===null){if(ka){if(T?Xl(p):Yl(),(u=fn)?(u=M7(u,Wr),u=u!==null&&u.data!=="&"?u:null,u!==null&&(p.memoizedState={dehydrated:u,treeContext:ql!==null?{id:no,overflow:so}:null,retryLane:536870912,hydrationErrors:null},g=nM(u),g.return=p,p.child=g,ws=p,fn=null)):u=null,u===null)throw Vl(p);return Lj(u)?p.lanes=32:p.lanes=536870912,null}var le=v.children;return v=v.fallback,T?(Yl(),T=p.mode,le=t0({mode:"hidden",children:le},T),v=hd(v,T,g,null),le.return=p,v.return=p,le.sibling=v,p.child=le,v=p.child,v.memoizedState=tj(g),v.childLanes=aj(u,q,g),p.memoizedState=ej,Yf(null,v)):(Xl(p),nj(p,le))}var we=u.memoizedState;if(we!==null&&(le=we.dehydrated,le!==null)){if(M)p.flags&256?(Xl(p),p.flags&=-257,p=sj(u,p,g)):p.memoizedState!==null?(Yl(),p.child=u.child,p.flags|=128,p=null):(Yl(),le=v.fallback,T=p.mode,v=t0({mode:"visible",children:v.children},T),le=hd(le,T,g,null),le.flags|=2,v.return=p,le.return=p,v.sibling=le,p.child=v,Pd(p,u.child,null,g),v=p.child,v.memoizedState=tj(g),v.childLanes=aj(u,q,g),p.memoizedState=ej,p=Yf(null,v));else if(Xl(p),Lj(le)){if(q=le.nextSibling&&le.nextSibling.dataset,q)var Be=q.dgst;q=Be,v=Error(n(419)),v.stack="",v.digest=q,Ff({value:v,source:null,stack:null}),p=sj(u,p,g)}else if(qn||ap(u,p,g,!1),q=(g&u.childLanes)!==0,qn||q){if(q=an,q!==null&&(v=xt(q,g),v!==0&&v!==we.retryLane))throw we.retryLane=v,fd(u,v),or(q,u,v),ZP;Ij(le)||d0(),p=sj(u,p,g)}else Ij(le)?(p.flags|=192,p.child=u.child,p=null):(u=we.treeContext,fn=$r(le.nextSibling),ws=p,ka=!0,Ul=null,Wr=!1,u!==null&&iM(p,u),p=nj(p,v.children),p.flags|=4096);return p}return T?(Yl(),le=v.fallback,T=p.mode,we=u.child,Be=we.sibling,v=Fo(we,{mode:"hidden",children:v.children}),v.subtreeFlags=we.subtreeFlags&65011712,Be!==null?le=Fo(Be,le):(le=hd(le,T,g,null),le.flags|=2),le.return=p,v.return=p,v.sibling=le,p.child=v,Yf(null,v),v=p.child,le=u.child.memoizedState,le===null?le=tj(g):(T=le.cachePool,T!==null?(we=Gn._currentValue,T=T.parent!==we?{parent:we,pool:we}:T):T=pM(),le={baseLanes:le.baseLanes|g,cachePool:T}),v.memoizedState=le,v.childLanes=aj(u,q,g),p.memoizedState=ej,Yf(u.child,v)):(Xl(p),g=u.child,u=g.sibling,g=Fo(g,{mode:"visible",children:v.children}),g.return=p,g.sibling=null,u!==null&&(q=p.deletions,q===null?(p.deletions=[u],p.flags|=16):q.push(u)),p.child=g,p.memoizedState=null,g)}function nj(u,p){return p=t0({mode:"visible",children:p},u.mode),p.return=u,u.child=p}function t0(u,p){return u=br(22,u,null,p),u.lanes=0,u}function sj(u,p,g){return Pd(p,u.child,null,g),u=nj(p,p.pendingProps.children),u.flags|=2,p.memoizedState=null,u}function NO(u,p,g){u.lanes|=p;var v=u.alternate;v!==null&&(v.lanes|=p),vP(u.return,p,g)}function rj(u,p,g,v,T,M){var q=u.memoizedState;q===null?u.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:v,tail:g,tailMode:T,treeForkCount:M}:(q.isBackwards=p,q.rendering=null,q.renderingStartTime=0,q.last=v,q.tail=g,q.tailMode=T,q.treeForkCount=M)}function AO(u,p,g){var v=p.pendingProps,T=v.revealOrder,M=v.tail;v=v.children;var q=zn.current,le=(q&2)!==0;if(le?(q=q&1|2,p.flags|=128):q&=1,Q(zn,q),js(u,p,v,g),v=ka?Lf:0,!le&&u!==null&&(u.flags&128)!==0)e:for(u=p.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&NO(u,g,p);else if(u.tag===19)NO(u,g,p);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===p)break e;for(;u.sibling===null;){if(u.return===null||u.return===p)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}switch(T){case"forwards":for(g=p.child,T=null;g!==null;)u=g.alternate,u!==null&&qb(u)===null&&(T=g),g=g.sibling;g=T,g===null?(T=p.child,p.child=null):(T=g.sibling,g.sibling=null),rj(p,!1,T,g,M,v);break;case"backwards":case"unstable_legacy-backwards":for(g=null,T=p.child,p.child=null;T!==null;){if(u=T.alternate,u!==null&&qb(u)===null){p.child=T;break}u=T.sibling,T.sibling=g,g=T,T=u}rj(p,!0,g,null,M,v);break;case"together":rj(p,!1,null,null,void 0,v);break;default:p.memoizedState=null}return p.child}function Vo(u,p,g){if(u!==null&&(p.dependencies=u.dependencies),ec|=p.lanes,(g&p.childLanes)===0)if(u!==null){if(ap(u,p,g,!1),(g&p.childLanes)===0)return null}else return null;if(u!==null&&p.child!==u.child)throw Error(n(153));if(p.child!==null){for(u=p.child,g=Fo(u,u.pendingProps),p.child=g,g.return=p;u.sibling!==null;)u=u.sibling,g=g.sibling=Fo(u,u.pendingProps),g.return=p;g.sibling=null}return p.child}
vendor: 3,618 bytes, line 48
48function ij(u,p){return(u.lanes&p)!==0?!0:(u=u.dependencies,!!(u!==null&&zb(u)))}function kse(u,p,g){switch(p.tag){case 3:ge(p,p.stateNode.containerInfo),Ql(p,Gn,u.memoizedState.cache),gd();break;case 27:case 5:Ae(p);break;case 4:ge(p,p.stateNode.containerInfo);break;case 10:Ql(p,p.type,p.memoizedProps.value);break;case 31:if(p.memoizedState!==null)return p.flags|=128,EP(p),null;break;case 13:var v=p.memoizedState;if(v!==null)return v.dehydrated!==null?(Xl(p),p.flags|=128,null):(g&p.child.childLanes)!==0?kO(u,p,g):(Xl(p),u=Vo(u,p,g),u!==null?u.sibling:null);Xl(p);break;case 19:var T=(u.flags&128)!==0;if(v=(g&p.childLanes)!==0,v||(ap(u,p,g,!1),v=(g&p.childLanes)!==0),T){if(v)return AO(u,p,g);p.flags|=128}if(T=p.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),Q(zn,zn.current),v)break;return null;case 22:return p.lanes=0,bO(u,p,g,p.pendingProps);case 24:Ql(p,Gn,u.memoizedState.cache)}return Vo(u,p,g)}function SO(u,p,g){if(u!==null)if(u.memoizedProps!==p.pendingProps)qn=!0;else{if(!ij(u,g)&&(p.flags&128)===0)return qn=!1,kse(u,p,g);qn=(u.flags&131072)!==0}else qn=!1,ka&&(p.flags&1048576)!==0&&rM(p,Lf,p.index);switch(p.lanes=0,p.tag){case 16:e:{var v=p.pendingProps;if(u=yd(p.elementType),p.type=u,typeof u=="function")uP(u)?(v=kd(u,v),p.tag=1,p=PO(null,p,u,v,g)):(p.tag=0,p=JP(null,p,u,v,g));else{if(u!=null){var T=u.$$typeof;if(T===D){p.tag=11,p=hO(null,p,u,v,g);break e}else if(T===A){p.tag=14,p=gO(null,p,u,v,g);break e}}throw p=V(u)||u,Error(n(306,p,""))}}return p;case 0:return JP(u,p,p.type,p.pendingProps,g);case 1:return v=p.type,T=kd(v,p.pendingProps),PO(u,p,v,T,g);case 3:e:{if(ge(p,p.stateNode.containerInfo),u===null)throw Error(n(387));v=p.pendingProps;var M=p.memoizedState;T=M.element,AP(u,p),Qf(p,v,null,g);var q=p.memoizedState;if(v=q.cache,Ql(p,Gn,v),v!==M.cache&&yP(p,[Gn],g,!0),Vf(),v=q.element,M.isDehydrated)if(M={element:v,isDehydrated:!1,cache:q.cache},p.updateQueue.baseState=M,p.memoizedState=M,p.flags&256){p=jO(u,p,v,g);break e}else if(v!==T){T=Ur(Error(n(424)),p),Ff(T),p=jO(u,p,v,g);break e}else{switch(u=p.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(fn=$r(u.firstChild),ws=p,ka=!0,Ul=null,Wr=!0,g=bM(p,null,v,g),p.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(gd(),v===T){p=Vo(u,p,g);break e}js(u,p,v,g)}p=p.child}return p;case 26:return e0(u,p),u===null?(g=L7(p.type,null,p.pendingProps,null))?p.memoizedState=g:ka||(g=p.type,u=p.pendingProps,v=x0(X.current).createElement(g),v[wt]=p,v[kt]=u,ks(v,g,u),Bn(v),p.stateNode=v):p.memoizedState=L7(p.type,u.memoizedProps,p.pendingProps,u.memoizedState),null;case 27:return Ae(p),u===null&&ka&&(v=p.stateNode=z7(p.type,p.pendingProps,X.current),ws=p,Wr=!0,T=fn,rc(p.type)?(Fj=T,fn=$r(v.firstChild)):fn=T),js(u,p,p.pendingProps.children,g),e0(u,p),u===null&&(p.flags|=4194304),p.child;case 5:return u===null&&ka&&((T=v=fn)&&(v=ere(v,p.type,p.pendingProps,Wr),v!==null?(p.stateNode=v,ws=p,fn=$r(v.firstChild),Wr=!1,T=!0):T=!1),T||Vl(p)),Ae(p),T=p.type,M=p.pendingProps,q=u!==null?u.memoizedProps:null,v=M.children,Rj(T,M)?v=null:q!==null&&Rj(T,q)&&(p.flags|=32),p.memoizedState!==null&&(T=OP(u,p,hse,null,null,g),ph._currentValue=T),e0(u,p),js(u,p,v,g),p.child;case 6:return u===null&&ka&&((u=g=fn)&&(g=tre(g,p.pendingProps,Wr),g!==null?(p.stateNode=g,ws=p,fn=null,u=!0):u=!1),u||Vl(p)),null;case 13:return kO(u,p,g);case 4:return ge(p,p.stateNode.containerInfo),v=p.pendingProps,u===null?p.child=Pd(p,null,v,g):js(u,p,v,g),p.child;case 11:return hO(u,p,p.type,p.pendingProps,g);case 7:return js(u,p,p.pendingProps,g),p.child;
vendor: 5,221 bytes, line 48
48case 8:return js(u,p,p.pendingProps.children,g),p.child;case 12:return js(u,p,p.pendingProps.children,g),p.child;case 10:return v=p.pendingProps,Ql(p,p.type,v.value),js(u,p,v.children,g),p.child;case 9:return T=p.type._context,v=p.pendingProps.children,bd(p),T=Ps(T),v=v(T),p.flags|=1,js(u,p,v,g),p.child;case 14:return gO(u,p,p.type,p.pendingProps,g);case 15:return xO(u,p,p.type,p.pendingProps,g);case 19:return AO(u,p,g);case 31:return jse(u,p,g);case 22:return bO(u,p,g,p.pendingProps);case 24:return bd(p),v=Ps(Gn),u===null?(T=jP(),T===null&&(T=an,M=wP(),T.pooledCache=M,M.refCount++,M!==null&&(T.pooledCacheLanes|=g),T=M),p.memoizedState={parent:v,cache:T},NP(p),Ql(p,Gn,T)):((u.lanes&g)!==0&&(AP(u,p),Qf(p,null,null,g),Vf()),T=u.memoizedState,M=p.memoizedState,T.parent!==v?(T={parent:v,cache:v},p.memoizedState=T,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=T),Ql(p,Gn,v)):(v=M.cache,Ql(p,Gn,v),v!==T.cache&&yP(p,[Gn],g,!0))),js(u,p,p.pendingProps.children,g),p.child;case 29:throw p.pendingProps}throw Error(n(156,p.tag))}function Qo(u){u.flags|=4}function oj(u,p,g,v,T){if((p=(u.mode&32)!==0)&&(p=!1),p){if(u.flags|=16777216,(T&335544128)===T)if(u.stateNode.complete)u.flags|=8192;else if(e7())u.flags|=8192;else throw wd=Fb,kP}else u.flags&=-16777217}function CO(u,p){if(p.type!=="stylesheet"||(p.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!q7(p))if(e7())u.flags|=8192;else throw wd=Fb,kP}function a0(u,p){p!==null&&(u.flags|=4),u.flags&16384&&(p=u.tag!==22?lt():536870912,u.lanes|=p,fp|=p)}function Zf(u,p){if(!ka)switch(u.tailMode){case"hidden":p=u.tail;for(var g=null;p!==null;)p.alternate!==null&&(g=p),p=p.sibling;g===null?u.tail=null:g.sibling=null;break;case"collapsed":g=u.tail;for(var v=null;g!==null;)g.alternate!==null&&(v=g),g=g.sibling;v===null?p||u.tail===null?u.tail=null:u.tail.sibling=null:v.sibling=null}}function hn(u){var p=u.alternate!==null&&u.alternate.child===u.child,g=0,v=0;if(p)for(var T=u.child;T!==null;)g|=T.lanes|T.childLanes,v|=T.subtreeFlags&65011712,v|=T.flags&65011712,T.return=u,T=T.sibling;else for(T=u.child;T!==null;)g|=T.lanes|T.childLanes,v|=T.subtreeFlags,v|=T.flags,T.return=u,T=T.sibling;return u.subtreeFlags|=v,u.childLanes=g,p}function Nse(u,p,g){var v=p.pendingProps;switch(hP(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hn(p),null;case 1:return hn(p),null;case 3:return g=p.stateNode,v=null,u!==null&&(v=u.memoizedState.cache),p.memoizedState.cache!==v&&(p.flags|=2048),Ho(Gn),me(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(u===null||u.child===null)&&(tp(p)?Qo(p):u===null||u.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,xP())),hn(p),null;case 26:var T=p.type,M=p.memoizedState;return u===null?(Qo(p),M!==null?(hn(p),CO(p,M)):(hn(p),oj(p,T,null,v,g))):M?M!==u.memoizedState?(Qo(p),hn(p),CO(p,M)):(hn(p),p.flags&=-16777217):(u=u.memoizedProps,u!==v&&Qo(p),hn(p),oj(p,T,u,v,g)),null;case 27:if(Pe(p),g=X.current,T=p.type,u!==null&&p.stateNode!=null)u.memoizedProps!==v&&Qo(p);else{if(!v){if(p.stateNode===null)throw Error(n(166));return hn(p),null}u=U.current,tp(p)?oM(p):(u=z7(T,v,g),p.stateNode=u,Qo(p))}return hn(p),null;case 5:if(Pe(p),T=p.type,u!==null&&p.stateNode!=null)u.memoizedProps!==v&&Qo(p);else{if(!v){if(p.stateNode===null)throw Error(n(166));return hn(p),null}if(M=U.current,tp(p))oM(p);else{var q=x0(X.current);switch(M){case 1:M=q.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:M=q.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":M=q.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":M=q.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":M=q.createElement("div"),M.innerHTML="<script><\/script>",M=M.removeChild(M.firstChild);break;case"select":M=typeof v.is=="string"?q.createElement("select",{is:v.is}):q.createElement("select"),v.multiple?M.multiple=!0:v.size&&(M.size=v.size);break;default:M=typeof v.is=="string"?q.createElement(T,{is:v.is}):q.createElement(T)}}M[wt]=p,M[kt]=v;e:for(q=p.child;q!==null;){if(q.tag===5||q.tag===6)M.appendChild(q.stateNode);else if(q.tag!==4&&q.tag!==27&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===p)break e;for(;q.sibling===null;){if(q.return===null||q.return===p)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}p.stateNode=M;e:switch(ks(M,T,v),T){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&Qo(p)}}return hn(p),oj(p,p.type,u===null?null:u.memoizedProps,p.pendingProps,g),null;case 6:if(u&&p.stateNode!=null)u.memoizedProps!==v&&Qo(p);else{if(typeof v!="string"&&p.stateNode===null)throw Error(n(166));if(u=X.current,tp(p)){if(u=p.stateNode,g=p.memoizedProps,v=null,T=ws,T!==null)switch(T.tag){case 27:case 5:v=T.memoizedProps}u[wt]=p,u=!!(u.nodeValue===g||v!==null&&v.suppressHydrationWarning===!0||k7(u.nodeValue,g)),u||Vl(p,!0)}else u=x0(u).createTextNode(v),u[wt]=p,p.stateNode=u}return hn(p),null;case 31:if(g=p.memoizedState,u===null||u.memoizedState!==null){if(v=tp(p),g!==null){if(u===null){if(!v)throw Error(n(318));if(u=p.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(n(557)
vendor: 23,455 bytes, line 48
48);u[wt]=p}else gd(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;hn(p),u=!1}else g=xP(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=g),u=!0;if(!u)return p.flags&256?(yr(p),p):(yr(p),null);if((p.flags&128)!==0)throw Error(n(558))}return hn(p),null;case 13:if(v=p.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(T=tp(p),v!==null&&v.dehydrated!==null){if(u===null){if(!T)throw Error(n(318));if(T=p.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(n(317));T[wt]=p}else gd(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;hn(p),T=!1}else T=xP(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=T),T=!0;if(!T)return p.flags&256?(yr(p),p):(yr(p),null)}return yr(p),(p.flags&128)!==0?(p.lanes=g,p):(g=v!==null,u=u!==null&&u.memoizedState!==null,g&&(v=p.child,T=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(T=v.alternate.memoizedState.cachePool.pool),M=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(M=v.memoizedState.cachePool.pool),M!==T&&(v.flags|=2048)),g!==u&&g&&(p.child.flags|=8192),a0(p,p.updateQueue),hn(p),null);case 4:return me(),u===null&&Tj(p.stateNode.containerInfo),hn(p),null;case 10:return Ho(p.type),hn(p),null;case 19:if(Y(zn),v=p.memoizedState,v===null)return hn(p),null;if(T=(p.flags&128)!==0,M=v.rendering,M===null)if(T)Zf(v,!1);else{if(Tn!==0||u!==null&&(u.flags&128)!==0)for(u=p.child;u!==null;){if(M=qb(u),M!==null){for(p.flags|=128,Zf(v,!1),u=M.updateQueue,p.updateQueue=u,a0(p,u),p.subtreeFlags=0,u=g,g=p.child;g!==null;)aM(g,u),g=g.sibling;return Q(zn,zn.current&1|2),ka&&Bo(p,v.treeForkCount),p.child}u=u.sibling}v.tail!==null&&it()>o0&&(p.flags|=128,T=!0,Zf(v,!1),p.lanes=4194304)}else{if(!T)if(u=qb(M),u!==null){if(p.flags|=128,T=!0,u=u.updateQueue,p.updateQueue=u,a0(p,u),Zf(v,!0),v.tail===null&&v.tailMode==="hidden"&&!M.alternate&&!ka)return hn(p),null}else 2*it()-v.renderingStartTime>o0&&g!==536870912&&(p.flags|=128,T=!0,Zf(v,!1),p.lanes=4194304);v.isBackwards?(M.sibling=p.child,p.child=M):(u=v.last,u!==null?u.sibling=M:p.child=M,v.last=M)}return v.tail!==null?(u=v.tail,v.rendering=u,v.tail=u.sibling,v.renderingStartTime=it(),u.sibling=null,g=zn.current,Q(zn,T?g&1|2:g&1),ka&&Bo(p,v.treeForkCount),u):(hn(p),null);case 22:case 23:return yr(p),DP(),v=p.memoizedState!==null,u!==null?u.memoizedState!==null!==v&&(p.flags|=8192):v&&(p.flags|=8192),v?(g&536870912)!==0&&(p.flags&128)===0&&(hn(p),p.subtreeFlags&6&&(p.flags|=8192)):hn(p),g=p.updateQueue,g!==null&&a0(p,g.retryQueue),g=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),v=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(v=p.memoizedState.cachePool.pool),v!==g&&(p.flags|=2048),u!==null&&Y(vd),null;case 24:return g=null,u!==null&&(g=u.memoizedState.cache),p.memoizedState.cache!==g&&(p.flags|=2048),Ho(Gn),hn(p),null;case 25:return null;case 30:return null}throw Error(n(156,p.tag))}function Ase(u,p){switch(hP(p),p.tag){case 1:return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 3:return Ho(Gn),me(),u=p.flags,(u&65536)!==0&&(u&128)===0?(p.flags=u&-65537|128,p):null;case 26:case 27:case 5:return Pe(p),null;case 31:if(p.memoizedState!==null){if(yr(p),p.alternate===null)throw Error(n(340));gd()}return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 13:if(yr(p),u=p.memoizedState,u!==null&&u.dehydrated!==null){if(p.alternate===null)throw Error(n(340));gd()}return u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 19:return Y(zn),null;case 4:return me(),null;case 10:return Ho(p.type),null;case 22:case 23:return yr(p),DP(),u!==null&&Y(vd),u=p.flags,u&65536?(p.flags=u&-65537|128,p):null;case 24:return Ho(Gn),null;case 25:return null;default:return null}}function TO(u,p){switch(hP(p),p.tag){case 3:Ho(Gn),me();break;case 26:case 27:case 5:Pe(p);break;case 4:me();break;case 31:p.memoizedState!==null&&yr(p);break;case 13:yr(p);break;case 19:Y(zn);break;case 10:Ho(p.type);break;case 22:case 23:yr(p),DP(),u!==null&&Y(vd);break;case 24:Ho(Gn)}}function Jf(u,p){try{var g=p.updateQueue,v=g!==null?g.lastEffect:null;if(v!==null){var T=v.next;g=T;do{if((g.tag&u)===u){v=void 0;var M=g.create,q=g.inst;v=M(),q.destroy=v}g=g.next}while(g!==T)}}catch(le){Xa(p,p.return,le)}}function Zl(u,p,g){try{var v=p.updateQueue,T=v!==null?v.lastEffect:null;if(T!==null){var M=T.next;v=M;do{if((v.tag&u)===u){var q=v.inst,le=q.destroy;if(le!==void 0){q.destroy=void 0,T=p;var we=g,Be=le;try{Be()}catch($e){Xa(T,we,$e)}}}v=v.next}while(v!==M)}}catch($e){Xa(p,p.return,$e)}}function DO(u){var p=u.updateQueue;if(p!==null){var g=u.stateNode;try{yM(p,g)}catch(v){Xa(u,u.return,v)}}}function EO(u,p,g){g.props=kd(u.type,u.memoizedProps),g.state=u.memoizedState;try{g.componentWillUnmount()}catch(v){Xa(u,p,v)}}function eh(u,p){try{var g=u.ref;if(g!==null){switch(u.tag){case 26:case 27:case 5:var v=u.stateNode;break;case 30:v=u.stateNode;break;default:v=u.stateNode}typeof g=="function"?u.refCleanup=g(v):g.current=v}}catch(T){Xa(u,p,T)}}function ro(u,p){var g=u.ref,v=u.refCleanup;if(g!==null)if(typeof v=="function")try{v()}catch(T){Xa(u,p,T)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(T){Xa(u,p,T)}else g.current=null}function MO(u){var p=u.type,g=u.memoizedProps,v=u.stateNode;try{e:switch(p){case"button":case"input":case"select":case"textarea":g.autoFocus&&v.focus();break e;case"img":g.src?v.src=g.src:g.srcSet&&(v.srcset=g.srcSet)}}catch(T){Xa(u,u.return,T)}}function lj(u,p,g){try{var v=u.stateNode;Kse(v,u.type,g,p),v[kt]=p}catch(T){Xa(u,u.return,T)}}function OO(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&rc(u.type)||u.tag===4}function cj(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||OO(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&rc(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function dj(u,p,g){var v=u.tag;if(v===5||v===6)u=u.stateNode,p?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(u,p):(p=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,p.appendChild(u),g=g._reactRootContainer,g!=null||p.onclick!==null||(p.onclick=Io));else if(v!==4&&(v===27&&rc(u.type)&&(g=u.stateNode,p=null),u=u.child,u!==null))for(dj(u,p,g),u=u.sibling;u!==null;)dj(u,p,g),u=u.sibling}function n0(u,p,g){var v=u.tag;if(v===5||v===6)u=u.stateNode,p?g.insertBefore(u,p):g.appendChild(u);else if(v!==4&&(v===27&&rc(u.type)&&(g=u.stateNode),u=u.child,u!==null))for(n0(u,p,g),u=u.sibling;u!==null;)n0(u,p,g),u=u.sibling}function RO(u){var p=u.stateNode,g=u.memoizedProps;try{for(var v=u.type,T=p.attributes;T.length;)p.removeAttributeNode(T[0]);ks(p,v,g),p[wt]=u,p[kt]=g}catch(M){Xa(u,u.return,M)}}var Wo=!1,Un=!1,uj=!1,zO=typeof WeakSet=="function"?WeakSet:Set,us=null;function Sse(u,p){if(u=u.containerInfo,Mj=k0,u=WE(u),sP(u)){if("selectionStart"in u)var g={start:u.selectionStart,end:u.selectionEnd};else e:{g=(g=u.ownerDocument)&&g.defaultView||window;var v=g.getSelection&&g.getSelection();if(v&&v.rangeCount!==0){g=v.anchorNode;var T=v.anchorOffset,M=v.focusNode;v=v.focusOffset;try{g.nodeType,M.nodeType}catch{g=null;break e}var q=0,le=-1,we=-1,Be=0,$e=0,tt=u,Ge=null;t:for(;;){for(var Ue;tt!==g||T!==0&&tt.nodeType!==3||(le=q+T),tt!==M||v!==0&&tt.nodeType!==3||(we=q+v),tt.nodeType===3&&(q+=tt.nodeValue.length),(Ue=tt.firstChild)!==null;)Ge=tt,tt=Ue;for(;;){if(tt===u)break t;if(Ge===g&&++Be===T&&(le=q),Ge===M&&++$e===v&&(we=q),(Ue=tt.nextSibling)!==null)break;tt=Ge,Ge=tt.parentNode}tt=Ue}g=le===-1||we===-1?null:{start:le,end:we}}else g=null}g=g||{start:0,end:0}}else g=null;for(Oj={focusedElem:u,selectionRange:g},k0=!1,us=p;us!==null;)if(p=us,u=p.child,(p.subtreeFlags&1028)!==0&&u!==null)u.return=p,us=u;else for(;us!==null;){switch(p=us,M=p.alternate,u=p.flags,p.tag){case 0:if((u&4)!==0&&(u=p.updateQueue,u=u!==null?u.events:null,u!==null))for(g=0;g<u.length;g++)T=u[g],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((u&1024)!==0&&M!==null){u=void 0,g=p,T=M.memoizedProps,M=M.memoizedState,v=g.stateNode;try{var Ct=kd(g.type,T);u=v.getSnapshotBeforeUpdate(Ct,M),v.__reactInternalSnapshotBeforeUpdate=u}catch(Bt){Xa(g,g.return,Bt)}}break;case 3:if((u&1024)!==0){if(u=p.stateNode.containerInfo,g=u.nodeType,g===9)_j(u);else if(g===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":_j(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(n(163))}if(u=p.sibling,u!==null){u.return=p.return,us=u;break}us=p.return}}function _O(u,p,g){var v=g.flags;switch(g.tag){case 0:case 11:case 15:$o(u,g),v&4&&Jf(5,g);break;case 1:if($o(u,g),v&4)if(u=g.stateNode,p===null)try{u.componentDidMount()}catch(q){Xa(g,g.return,q)}else{var T=kd(g.type,p.memoizedProps);p=p.memoizedState;try{u.componentDidUpdate(T,p,u.__reactInternalSnapshotBeforeUpdate)}catch(q){Xa(g,g.return,q)}}v&64&&DO(g),v&512&&eh(g,g.return);break;case 3:if($o(u,g),v&64&&(u=g.updateQueue,u!==null)){if(p=null,g.child!==null)switch(g.child.tag){case 27:case 5:p=g.child.stateNode;break;case 1:p=g.child.stateNode}try{yM(u,p)}catch(q){Xa(g,g.return,q)}}break;case 27:p===null&&v&4&&RO(g);case 26:case 5:$o(u,g),p===null&&v&4&&MO(g),v&512&&eh(g,g.return);break;case 12:$o(u,g);break;case 31:$o(u,g),v&4&&FO(u,g);break;case 13:$o(u,g),v&4&&BO(u,g),v&64&&(u=g.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(g=_se.bind(null,g),are(u,g))));break;case 22:if(v=g.memoizedState!==null||Wo,!v){p=p!==null&&p.memoizedState!==null||Un,T=Wo;var M=Un;Wo=v,(Un=p)&&!M?Xo(u,g,(g.subtreeFlags&8772)!==0):$o(u,g),Wo=T,Un=M}break;case 30:break;default:$o(u,g)}}function IO(u){var p=u.alternate;p!==null&&(u.alternate=null,IO(p)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(p=u.stateNode,p!==null&&cd(p)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var vn=null,nr=!1;function Ko(u,p,g){for(g=g.child;g!==null;)LO(u,p,g),g=g.sibling}function LO(u,p,g){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(ze,g)}catch{}switch(g.tag){case 26:Un||ro(g,p),Ko(u,p,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:Un||ro(g,p);var v=vn,T=nr;rc(g.type)&&(vn=g.stateNode,nr=!1),Ko(u,p,g),ch(g.stateNode),vn=v,nr=T;break;case 5:Un||ro(g,p);case 6:if(v=vn,T=nr,vn=null,Ko(u,p,g),vn=v,nr=T,vn!==null)if(nr)try{(vn.nodeType===9?vn.body:vn.nodeName==="HTML"?vn.ownerDocument.body:vn).removeChild(g.stateNode)}catch(M){Xa(g,p,M)}else try{vn.removeChild(g.stateNode)}catch(M){Xa(g,p,M)}break;case 18:vn!==null&&(nr?(u=vn,D7(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,g.stateNode),Pp(u)):D7(vn,g.stateNode));break;case 4:v=vn,T=nr,vn=g.stateNode.containerInfo,nr=!0,Ko(u,p,g),vn=v,nr=T;break;case 0:case 11:case 14:case 15:Zl(2,g,p),Un||Zl(4,g,p),Ko(u,p,g);break;case 1:Un||(ro(g,p),v=g.stateNode,typeof v.componentWillUnmount=="function"&&EO(g,p,v)),Ko(u,p,g);break;case 21:Ko(u,p,g);break;case 22:Un=(v=Un)||g.memoizedState!==null,Ko(u,p,g),Un=v;break;default:Ko(u,p,g)}}function FO(u,p){if(p.memoizedState===null&&(u=p.alternate,u!==null&&(u=u.memoizedState,u!==null))){u=u.dehydrated;try{Pp(u)}catch(g){Xa(p,p.return,g)}}}function BO(u,p){if(p.memoizedState===null&&(u=p.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Pp(u)}catch(g){Xa(p,p.return,g)}}function Cse(u){switch(u.tag){case 31:case 13:case 19:var p=u.stateNode;return p===null&&(p=u.stateNode=new zO),p;case 22:return u=u.stateNode,p=u._retryCache,p===null&&(p=u._retryCache=new zO),p;default:throw Error(n(435,u.tag))}}function s0(u,p){var g=Cse(u);p.forEach(function(v){if(!g.has(v)){g.add(v);var T=Ise.bind(null,u,v);v.then(T,T)}})}function sr(u,p){var g=p.deletions;if(g!==null)for(var v=0;v<g.length;v++){var T=g[v],M=u,q=p,le=q;e:for(;le!==null;){switch(le.tag){case 27:if(rc(le.type)){vn=le.stateNode,nr=!1;break e}break;case 5:vn=le.stateNode,nr=!1;break e;case 3:case 4:vn=le.stateNode.containerInfo,nr=!0;break e}le=le.return}if(vn===null)throw Error(n(160));LO(M,q,T),vn=null,nr=!1,M=T.alternate,M!==null&&(M.return=null),T.return=null}if(p.subtreeFlags&13886)for(p=p.child;p!==null;)GO(p,u),p=p.sibling}var Si=null;function GO(u,p){var g=u.alternate,v=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:sr(p,u),rr(u),v&4&&(Zl(3,u,u.return),Jf(3,u),Zl(5,u,u.return));break;case 1:sr(p,u),rr(u),v&512&&(Un||g===null||ro(g,g.return)),v&64&&Wo&&(u=u.updateQueue,u!==null&&(v=u.callbacks,v!==null&&(g=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=g===null?v:g.concat(v))));break;case 26:var T=Si;if(sr(p,u),rr(u),v&512&&(Un||g===null||ro(g,g.return)),v&4){var M=g!==null?g.memoizedState:null;if(v=u.memoizedState,g===null)if(v===null)if(u.stateNode===null){e:{v=u.type,g=u.memoizedProps,T=T.ownerDocument||T;t:switch(v){case"title":M=T.getElementsByTagName("title")[0],(!M||M[ld]||M[wt]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=T.createElement(v),T.head.insertBefore(M,T.querySelector("head > title"))),ks(M,v,g),M[wt]=u,Bn(M),v=M;break e;case"link":var q=G7("link","href",T).get(v+(g.href||""));if(q){for(var le=0;le<q.length;le++)if(M=q[le],M.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&M.getAttribute("rel")===(g.rel==null?null:g.rel)&&M.getAttribute("title")===(g.title==null?null:g.title)&&M.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){q.splice(le,1);break t}}M=T.createElement(v),ks(M,v,g),T.head.appendChild(M);break;case"meta":if(q=G7("meta","content",T).get(v+(g.content||""))){for(le=0;le<q.length;le++)if(M=q[le],M.getAttribute("content")===(g.content==null?null:""+g.content)&&M.getAttribute("name")===(g.name==null?null:g.name)&&M.getAttribute("property")===(g.property==null?null:g.property)&&M.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&M.getAttribute("charset")===(g.charSet==null?null:g.charSet)){q.splice(le,1);break t}}M=T.createElement(v),ks(M,v,g),T.head.appendChild(M);break;default:throw Error(n(468,v))}M[wt]=u,Bn(M),v=M}u.stateNode=v}else H7(T,u.type,u.stateNode);else u.stateNode=B7(T,v,u.memoizedProps);else M!==v?(M===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):M.count--,v===null?H7(T,u.type,u.stateNode):B7(T,v,u.memoizedProps)):v===null&&u.stateNode!==null&&lj(u,u.memoizedProps,g.memoizedProps)}break;case 27:sr(p,u),rr(u),v&512&&(Un||g===null||ro(g,g.return)),g!==null&&v&4&&lj(u,u.memoizedProps,g.memoizedProps);break;case 5:if(sr(p,u),rr(u),v&512&&(Un||g===null||ro(g,g.return)),u.flags&32){T=u.stateNode;try{Vu(T,"")}catch(Ct){Xa(u,u.return,Ct)}}v&4&&u.stateNode!=null&&(T=u.memoizedProps,lj(u,T,g!==null?g.memoizedProps:T)),v&1024&&(uj=!0);break;case 6:if(sr(p,u),rr(u),v&4){if(u.stateNode===null)throw Error(n(162));v=u.memoizedProps,g=u.stateNode;try{g.nodeValue=v}catch(Ct){Xa(u,u.return,Ct)}}break;case 3:if(y0=null,T=Si,Si=b0(p.containerInfo),sr(p,u),Si=T,rr(u),v&4&&g!==null&&g.memoizedState.isDehydrated)try{Pp(p.containerInfo)}catch(Ct){Xa(u,u.return,Ct)}uj&&(uj=!1,HO(u));break;case 4:v=Si,Si=b0(u.stateNode.containerInfo),sr(p,u),rr(u),Si=v;break;case 12:sr(p,u),rr(u);break;case 31:sr(p,u),rr(u),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,s0(u,v)));break;case 13:sr(p,u),rr(u),u.child.flags&8192&&u.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(i0=it()),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,s0(u,v)));break;case 22:T=u.memoizedState!==null;var we=g!==null&&g.memoizedState!==null,Be=Wo,$e=Un;if(Wo=Be||T,Un=$e||we,sr(p,u),Un=$e,Wo=Be,rr(u),v&8192)e:for(p=u.stateNode,p._visibility=T?p._visibility&-2:p._visibility|1,T&&(g===null||we||Wo||Un||Nd(u)),g=null,p=u;;){if(p.tag===5||p.tag===26){if(g===null){we=g=p;try{if(M=we.stateNode,T)q=M.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none";else{le=we.stateNode;var tt=we.memoizedProps.style,Ge=tt!=null&&tt.hasOwnProperty("display")?tt.display:null;le.style.display=Ge==null||typeof Ge=="boolean"?"":(""+Ge).trim()}}catch(Ct){Xa(we,we.return,Ct)}}}else if(p.tag===6){if(g===null){we=p;try{we.stateNode.nodeValue=T?"":we.memoizedProps}catch(Ct){Xa(we,we.return,Ct)}}}else if(p.tag===18){if(g===null){we=p;try{var Ue=we.stateNode;T?E7(Ue,!0):E7(we.stateNode,!1)}catch(Ct){Xa(we,we.return,Ct)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===u)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===u)break e;for(;p.sibling===null;){if(p.return===null||p.return===u)break e;g===p&&(g=null),p=p.return}g===p&&(g=null),p.sibling.return=p.return,p=p.sibling}v&4&&(v=u.updateQueue,v!==null&&(g=v.retryQueue,g!==null&&(v.retryQueue=null,s0(u,g))));break;case 19:sr(p,u),rr(u),v&4&&(v=u.updateQueue,v!==null&&(u.updateQueue=null,s0(u,v)));break;case 30:break;case 21:break;default:sr(p,u),rr(u)}}function rr(u){var p=u.flags;if(p&2){try{for(var g,v=u.return;v!==null;){if(OO(v)){g=v;break}v=v.return}if(g==null)throw Error(n(160));switch(g.tag){case 27:var T=g.stateNode,M=cj(u);n0(u,M,T);break;case 5:var q=g.stateNode;g.flags&32&&(Vu(q,""),g.flags&=-33);var le=cj(u);n0(u,le,q);break;case 3:case 4:var we=g.stateNode.containerInfo,Be=cj(u);dj(u,Be,we);break;default:throw Error(n(161))}}catch($e){Xa(u,u.return,$e)}u.flags&=-3}p&4096&&(u.flags&=-4097)}function HO(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var p=u;HO(p),p.tag===5&&p.flags&1024&&p.stateNode.reset(),u=u.sibling}}function $o(u,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)_O(u,p.alternate,p),p=p.sibling}function Nd(u){for(u=u.child;u!==null;){var p=u;switch(p.tag){case 0:case 11:case 14:case 15:Zl(4,p,p.return),Nd(p);break;case 1:ro(p,p.return);var g=p.stateNode;typeof g.componentWillUnmount=="function"&&EO(p,p.return,g),Nd(p);break;case 27:ch(p.stateNode);case 26:case 5:ro(p,p.return),Nd(p);break;case 22:p.memoizedState===null&&Nd(p);break;case 30:Nd(p);break;default:Nd(p)}u=u.sibling}}function Xo(u,p,g){for(g=g&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var v=p.alternate,T=u,M=p,q=M.flags;switch(M.tag){case 0:case 11:case 15:Xo(T,M,g),Jf(4,M);break;case 1:if(Xo(T,M,g),v=M,T=v.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(Be){Xa(v,v.return,Be)}if(v=M,T=v.updateQueue,T!==null){var le=v.stateNode;try{var we=T.shared.hiddenCallbacks;if(we!==null)for(T.shared.hiddenCallbacks=null,T=0;T<we.length;T++)vM(we[T],le)}catch(Be){Xa(v,v.return,Be)}}g&&q&64&&DO(M),eh(M,M.return);break;case 27:RO(M);case 26:case 5:Xo(T,M,g),g&&v===null&&q&4&&MO(M),eh(M,M.return);break;case 12:Xo(T,M,g);break;case 31:Xo(T,M,g),g&&q&4&&FO(T,M);break;case 13:Xo(T,M,g),g&&q&4&&BO(T,M);break;case 22:M.memoizedState===null&&Xo(T,M,g),eh(M,M.return);break;case 30:break;default:Xo(T,M,g)}p=p.sibling}}function pj(u,p){var g=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),u=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(u=p.memoizedState.cachePool.pool),u!==g&&(u!=null&&u.refCount++,g!=null&&Bf(g))}function mj(u,p){u=null,p.alternate!==null&&(u=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==u&&(p.refCount++,u!=null&&Bf(u))}function Ci(u,p,g,v){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)qO(u,p,g,v),p=p.sibling}function qO(u,p,g,v){var T=p.flags;switch(p.tag){case 0:case 11:case 15:Ci(u,p,g,v),T&2048&&Jf(9,p);break;case 1:Ci(u,p,g,v);break;case 3:Ci(u,p,g,v),T&2048&&(u=null,p.alternate!==null&&(u=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==u&&(p.refCount++,u!=null&&Bf(u)));break;case 12:if(T&2048){Ci(u,p,g,v),u=p.stateNode;try{var M=p.memoizedProps,q=M.id,le=M.onPostCommit;typeof le=="function"&&le(q,p.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(we){Xa(p,p.return,we)}}else Ci(u,p,g,v);break;case 31:Ci(u,p,g,v);break;case 13:Ci(u,p,g,v);break;case 23:break;case 22:M=p.stateNode,q=p.alternate,p.memoizedState!==null?M._visibility&2?Ci(u,p,g,v):th(u,p):M._visibility&2?Ci(u,p,g,v):(M._visibility|=2,up(u,p,g,v,(p.subtreeFlags&10256)!==0||!1)),T&2048&&pj(q,p);break;case 24:Ci(u,p,g,v),T&2048&&mj(p.alternate,p);break;default:Ci(u,p,g,v)}}function up(u,p,g,v,T){for(T=T&&((p.subtreeFlags&10256)!==0||!1),p=p.child;p!==null;){var M=u,q=p,le=g,we=v,Be=q.flags;switch(q.tag){case 0:case 11:case 15:up(M,q,le,we,T),Jf(8,q);break;case 23:break;case 22:var $e=q.stateNode;q.memoizedState!==null?$e._visibility&2?up(M,q,le,we,T):th(M,q):($e._visibility|=2,up(M,q,le,we,T)),T&&Be&2048&&pj(q.alternate,q);break;case 24:up(M,q,le,we,T),T&&Be&2048&&mj(q.alternate,q);break;default:up(M,q,le,we,T)}p=p.sibling}}function th(u,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var g=u,v=p,T=v.flags;switch(v.tag){case 22:th(g,v),T&2048&&pj(v.alternate,v);break;case 24:th(g,v),T&2048&&mj(v.alternate,v);break;default:th(g,v)}p=p.sibling}}var ah=8192;function pp(u,p,g){if(u.subtreeFlags&ah)for(u=u.child;u!==null;)UO(u,p,g),u=u.sibling}function UO(u,p,g){switch(u.tag){case 26:pp(u,p,g),u.flags&ah&&u.memoizedState!==null&&fre(g,Si,u.memoizedState,u.memoizedProps);break;case 5:pp(u,p,g);break;case 3:case 4:var v=Si;Si=b0(u.stateNode.containerInfo),pp(u,p,g),Si=v;break;case 22:u.memoizedState===null&&(v=u.alternate,v!==null&&v.memoizedState!==null?(v=ah,ah=16777216,pp(u,p,g),ah=v):pp(u,p,g));break;default:pp(u,p,g)}}function VO(u){var p=u.alternate;if(p!==null&&(u=p.child,u!==null)){p.child=null;do p=u.sibling,u.sibling=null,u=p;while(u!==null)}}function nh(u){var p=u.deletions;if((u.flags&16)!==0){if(p!==null)for(var g=0;g<p.length;g++){var v=p[g];us=v,WO(v,u)}VO(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)QO(u),u=u.sibling}function QO(u){switch(u.tag){case 0:case 11:case 15:nh(u),u.flags&2048&&Zl(9,u,u.return);break;case 3:nh(u);break;case 12:nh(u);break;case 22:var p=u.stateNode;u.memoizedState!==null&&p._visibility&2&&(u.return===null||u.return.tag!==13)?(p._visibility&=-3,r0(u)):nh(u);break;default:nh(u)}}function r0(u){var p=u.deletions;if((u.flags&16)!==0){if(p!==null)for(var g=0;g<p.length;g++){var v=p[g];us=v,WO(v,u)}VO(u)}for(u=u.child;u!==null;){switch(p=u,p.tag){case 0:case 11:case 15:Zl(8,p,p.return),r0(p);break;case 22:g=p.stateNode,g._visibility&2&&(g._visibility&=-3,r0(p));break;default:r0(p)}u=u.sibling}}function WO(u,p){for(;us!==null;){var g=us;switch(g.tag){case 0:case 11:case 15:Zl(8,g,p);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var v=g.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Bf(g.memoizedState.cache)}if(v=g.child,v!==null)v.return=g,us=v;else e:for(g=u;us!==null;){v=us;var T=v.sibling,M=v.return;if(IO(v),v===g){us=null;break e}if(T!==null){T.return=M,us=T;break e}us=M}}}var Tse={getCacheForType:function(u){var p=Ps(Gn),g=p.data.get(u);return g===void 0&&(g=u(),p.data.set(u,g)),g},cacheSignal:function(){return Ps(Gn).controller.signal}},Dse=typeof WeakMap=="function"?WeakMap:Map,Ba=0,an=null,ga=null,va=0,$a=0,wr=null,Jl=!1,mp=!1,fj=!1,Yo=0,Tn=0,ec=0,Ad=0,hj=0,Pr=0,fp=0,sh=null,ir=null,gj=!1,i0=0,KO=0,o0=1/0,l0=null,tc=null,Jn=0,ac=null,hp=null,Zo=0,xj=0,bj=null,$O=null,rh=0,vj=null;function jr(){return(Ba&2)!==0&&va!==0?va&-va:B.T!==null?Nj():Oe(
vendor: 14,727 bytes, line 48
48)}function XO(){if(Pr===0)if((va&536870912)===0||ka){var u=_e;_e<<=1,(_e&3932160)===0&&(_e=262144),Pr=u}else Pr=536870912;return u=vr.current,u!==null&&(u.flags|=32),Pr}function or(u,p,g){(u===an&&($a===2||$a===9)||u.cancelPendingCommit!==null)&&(gp(u,0),nc(u,va,Pr,!1)),nt(u,g),((Ba&2)===0||u!==an)&&(u===an&&((Ba&2)===0&&(Ad|=g),Tn===4&&nc(u,va,Pr,!1)),io(u))}function YO(u,p,g){if((Ba&6)!==0)throw Error(n(327));var v=!g&&(p&127)===0&&(p&u.expiredLanes)===0||Se(u,p),T=v?Ose(u,p):wj(u,p,!0),M=v;do{if(T===0){mp&&!v&&nc(u,p,0,!1);break}else{if(g=u.current.alternate,M&&!Ese(g)){T=wj(u,p,!1),M=!1;continue}if(T===2){if(M=p,u.errorRecoveryDisabledLanes&M)var q=0;else q=u.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){p=q;e:{var le=u;T=sh;var we=le.current.memoizedState.isDehydrated;if(we&&(gp(le,q).flags|=256),q=wj(le,q,!1),q!==2){if(fj&&!we){le.errorRecoveryDisabledLanes|=M,Ad|=M,T=4;break e}M=ir,ir=T,M!==null&&(ir===null?ir=M:ir.push.apply(ir,M))}T=q}if(M=!1,T!==2)continue}}if(T===1){gp(u,0),nc(u,p,0,!0);break}e:{switch(v=u,M=T,M){case 0:case 1:throw Error(n(345));case 4:if((p&4194048)!==p)break;case 6:nc(v,p,Pr,!Jl);break e;case 2:ir=null;break;case 3:case 5:break;default:throw Error(n(329))}if((p&62914560)===p&&(T=i0+300-it(),10<T)){if(nc(v,p,Pr,!Jl),fe(v,0,!0)!==0)break e;Zo=p,v.timeoutHandle=C7(ZO.bind(null,v,g,ir,l0,gj,p,Pr,Ad,fp,Jl,M,"Throttled",-0,0),T);break e}ZO(v,g,ir,l0,gj,p,Pr,Ad,fp,Jl,M,null,-0,0)}}break}while(!0);io(u)}function ZO(u,p,g,v,T,M,q,le,we,Be,$e,tt,Ge,Ue){if(u.timeoutHandle=-1,tt=p.subtreeFlags,tt&8192||(tt&16785408)===16785408){tt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Io},UO(p,M,tt);var Ct=(M&62914560)===M?i0-it():(M&4194048)===M?KO-it():0;if(Ct=hre(tt,Ct),Ct!==null){Zo=M,u.cancelPendingCommit=Ct(i7.bind(null,u,p,M,g,v,T,q,le,we,$e,tt,null,Ge,Ue)),nc(u,M,q,!Be);return}}i7(u,p,M,g,v,T,q,le,we)}function Ese(u){for(var p=u;;){var g=p.tag;if((g===0||g===11||g===15)&&p.flags&16384&&(g=p.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var v=0;v<g.length;v++){var T=g[v],M=T.getSnapshot;T=T.value;try{if(!xr(M(),T))return!1}catch{return!1}}if(g=p.child,p.subtreeFlags&16384&&g!==null)g.return=p,p=g;else{if(p===u)break;for(;p.sibling===null;){if(p.return===null||p.return===u)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function nc(u,p,g,v){p&=~hj,p&=~Ad,u.suspendedLanes|=p,u.pingedLanes&=~p,v&&(u.warmLanes|=p),v=u.expirationTimes;for(var T=p;0<T;){var M=31-Ee(T),q=1<<M;v[M]=-1,T&=~q}g!==0&&yt(u,g,p)}function c0(){return(Ba&6)===0?(ih(0),!1):!0}function yj(){if(ga!==null){if($a===0)var u=ga.return;else u=ga,Go=xd=null,_P(u),ip=null,Hf=0,u=ga;for(;u!==null;)TO(u.alternate,u),u=u.return;ga=null}}function gp(u,p){var g=u.timeoutHandle;g!==-1&&(u.timeoutHandle=-1,Yse(g)),g=u.cancelPendingCommit,g!==null&&(u.cancelPendingCommit=null,g()),Zo=0,yj(),an=u,ga=g=Fo(u.current,null),va=p,$a=0,wr=null,Jl=!1,mp=Se(u,p),fj=!1,fp=Pr=hj=Ad=ec=Tn=0,ir=sh=null,gj=!1,(p&8)!==0&&(p|=p&32);var v=u.entangledLanes;if(v!==0)for(u=u.entanglements,v&=p;0<v;){var T=31-Ee(v),M=1<<T;p|=u[T],v&=~M}return Yo=p,Db(),g}function JO(u,p){ia=null,B.H=Xf,p===rp||p===Lb?(p=hM(),$a=3):p===kP?(p=hM(),$a=4):$a=p===ZP?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,wr=p,ga===null&&(Tn=1,Zb(u,Ur(p,u.current)))}function e7(){var u=vr.current;return u===null?!0:(va&4194048)===va?Kr===null:(va&62914560)===va||(va&536870912)!==0?u===Kr:!1}function t7(){var u=B.H;return B.H=Xf,u===null?Xf:u}function a7(){var u=B.A;return B.A=Tse,u}function d0(){Tn=4,Jl||(va&4194048)!==va&&vr.current!==null||(mp=!0),(ec&134217727)===0&&(Ad&134217727)===0||an===null||nc(an,va,Pr,!1)}function wj(u,p,g){var v=Ba;Ba|=2;var T=t7(),M=a7();(an!==u||va!==p)&&(l0=null,gp(u,p)),p=!1;var q=Tn;e:do try{if($a!==0&&ga!==null){var le=ga,we=wr;switch($a){case 8:yj(),q=6;break e;case 3:case 2:case 9:case 6:vr.current===null&&(p=!0);var Be=$a;if($a=0,wr=null,xp(u,le,we,Be),g&&mp){q=0;break e}break;default:Be=$a,$a=0,wr=null,xp(u,le,we,Be)}}Mse(),q=Tn;break}catch($e){JO(u,$e)}while(!0);return p&&u.shellSuspendCounter++,Go=xd=null,Ba=v,B.H=T,B.A=M,ga===null&&(an=null,va=0,Db()),q}function Mse(){for(;ga!==null;)n7(ga)}function Ose(u,p){var g=Ba;Ba|=2;var v=t7(),T=a7();an!==u||va!==p?(l0=null,o0=it()+500,gp(u,p)):mp=Se(u,p);e:do try{if($a!==0&&ga!==null){p=ga;var M=wr;t:switch($a){case 1:$a=0,wr=null,xp(u,p,M,1);break;case 2:case 9:if(mM(M)){$a=0,wr=null,s7(p);break}p=function(){$a!==2&&$a!==9||an!==u||($a=7),io(u)},M.then(p,p);break e;case 3:$a=7;break e;case 4:$a=5;break e;case 7:mM(M)?($a=0,wr=null,s7(p)):($a=0,wr=null,xp(u,p,M,7));break;case 5:var q=null;switch(ga.tag){case 26:q=ga.memoizedState;case 5:case 27:var le=ga;if(q?q7(q):le.stateNode.complete){$a=0,wr=null;var we=le.sibling;if(we!==null)ga=we;else{var Be=le.return;Be!==null?(ga=Be,u0(Be)):ga=null}break t}}$a=0,wr=null,xp(u,p,M,5);break;case 6:$a=0,wr=null,xp(u,p,M,6);break;case 8:yj(),Tn=6;break e;default:throw Error(n(462))}}Rse();break}catch($e){JO(u,$e)}while(!0);return Go=xd=null,B.H=v,B.A=T,Ba=g,ga!==null?0:(an=null,va=0,Db(),Tn)}function Rse(){for(;ga!==null&&!et();)n7(ga)}function n7(u){var p=SO(u.alternate,u,Yo);u.memoizedProps=u.pendingProps,p===null?u0(u):ga=p}function s7(u){var p=u,g=p.alternate;switch(p.tag){case 15:case 0:p=wO(g,p,p.pendingProps,p.type,void 0,va);break;case 11:p=wO(g,p,p.pendingProps,p.type.render,p.ref,va);break;case 5:_P(p);default:TO(g,p),p=ga=aM(p,Yo),p=SO(g,p,Yo)}u.memoizedProps=u.pendingProps,p===null?u0(u):ga=p}function xp(u,p,g,v){Go=xd=null,_P(p),ip=null,Hf=0;var T=p.return;try{if(Pse(u,T,p,g,va)){Tn=1,Zb(u,Ur(g,u.current)),ga=null;return}}catch(M){if(T!==null)throw ga=T,M;Tn=1,Zb(u,Ur(g,u.current)),ga=null;return}p.flags&32768?(ka||v===1?u=!0:mp||(va&536870912)!==0?u=!1:(Jl=u=!0,(v===2||v===9||v===3||v===6)&&(v=vr.current,v!==null&&v.tag===13&&(v.flags|=16384))),r7(p,u)):u0(p)}function u0(u){var p=u;do{if((p.flags&32768)!==0){r7(p,Jl);return}u=p.return;var g=Nse(p.alternate,p,Yo);if(g!==null){ga=g;return}if(p=p.sibling,p!==null){ga=p;return}ga=p=u}while(p!==null);Tn===0&&(Tn=5)}function r7(u,p){do{var g=Ase(u.alternate,u);if(g!==null){g.flags&=32767,ga=g;return}if(g=u.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!p&&(u=u.sibling,u!==null)){ga=u;return}ga=u=g}while(u!==null);Tn=6,ga=null}function i7(u,p,g,v,T,M,q,le,we){u.cancelPendingCommit=null;do p0();while(Jn!==0);if((Ba&6)!==0)throw Error(n(327));if(p!==null){if(p===u.current)throw Error(n(177));if(M=p.lanes|p.childLanes,M|=cP,gt(u,g,M,q,le,we),u===an&&(ga=an=null,va=0),hp=p,ac=u,Zo=g,xj=M,bj=T,$O=v,(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,Lse(St,function(){return u7(),null})):(u.callbackNode=null,u.callbackPriority=0),v=(p.flags&13878)!==0,(p.subtreeFlags&13878)!==0||v){v=B.T,B.T=null,T=K.p,K.p=2,q=Ba,Ba|=4;try{Sse(u,p,g)}finally{Ba=q,K.p=T,B.T=v}}Jn=1,o7(),l7(),c7()}}function o7(){if(Jn===1){Jn=0;var u=ac,p=hp,g=(p.flags&13878)!==0;if((p.subtreeFlags&13878)!==0||g){g=B.T,B.T=null;var v=K.p;K.p=2;var T=Ba;Ba|=4;try{GO(p,u);var M=Oj,q=WE(u.containerInfo),le=M.focusedElem,we=M.selectionRange;if(q!==le&&le&&le.ownerDocument&&QE(le.ownerDocument.documentElement,le)){if(we!==null&&sP(le)){var Be=we.start,$e=we.end;if($e===void 0&&($e=Be),"selectionStart"in le)le.selectionStart=Be,le.selectionEnd=Math.min($e,le.value.length);else{var tt=le.ownerDocument||document,Ge=tt&&tt.defaultView||window;if(Ge.getSelection){var Ue=Ge.getSelection(),Ct=le.textContent.length,Bt=Math.min(we.start,Ct),Ja=we.end===void 0?Bt:Math.min(we.end,Ct);!Ue.extend&&Bt>Ja&&(q=Ja,Ja=Bt,Bt=q);var De=VE(le,Bt),Ne=VE(le,Ja);if(De&&Ne&&(Ue.rangeCount!==1||Ue.anchorNode!==De.node||Ue.anchorOffset!==De.offset||Ue.focusNode!==Ne.node||Ue.focusOffset!==Ne.offset)){var Fe=tt.createRange();Fe.setStart(De.node,De.offset),Ue.removeAllRanges(),Bt>Ja?(Ue.addRange(Fe),Ue.extend(Ne.node,Ne.offset)):(Fe.setEnd(Ne.node,Ne.offset),Ue.addRange(Fe))}}}}for(tt=[],Ue=le;Ue=Ue.parentNode;)Ue.nodeType===1&&tt.push({element:Ue,left:Ue.scrollLeft,top:Ue.scrollTop});for(typeof le.focus=="function"&&le.focus(),le=0;le<tt.length;le++){var Je=tt[le];Je.element.scrollLeft=Je.left,Je.element.scrollTop=Je.top}}k0=!!Mj,Oj=Mj=null}finally{Ba=T,K.p=v,B.T=g}}u.current=p,Jn=2}}function l7(){if(Jn===2){Jn=0;var u=ac,p=hp,g=(p.flags&8772)!==0;if((p.subtreeFlags&8772)!==0||g){g=B.T,B.T=null;var v=K.p;K.p=2;var T=Ba;Ba|=4;try{_O(u,p.alternate,p)}finally{Ba=T,K.p=v,B.T=g}}Jn=3}}function c7(){if(Jn===4||Jn===3){Jn=0,xe();var u=ac,p=hp,g=Zo,v=$O;(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?Jn=5:(Jn=0,hp=ac=null,d7(u,u.pendingLanes));var T=u.pendingLanes;if(T===0&&(tc=null),ee(g),p=p.stateNode,Qe&&typeof Qe.onCommitFiberRoot=="function")try{Qe.onCommitFiberRoot(ze,p,void 0,(p.current.flags&128)===128)}catch{}if(v!==null){p=B.T,T=K.p,K.p=2,B.T=null;try{for(var M=u.onRecoverableError,q=0;q<v.length;q++){var le=v[q];M(le.value,{componentStack:le.stack})}}finally{B.T=p,K.p=T}}(Zo&3)!==0&&p0(),io(u),T=u.pendingLanes,(g&261930)!==0&&(T&42)!==0?u===vj?rh++:(rh=0,vj=u):rh=0,ih(0)}}function d7(u,p){(u.pooledCacheLanes&=p)===0&&(p=u.pooledCache,p!=null&&(u.pooledCache=null,Bf(p)))}function p0(){return o7(),l7(),c7(),u7()}function u7(){if(Jn!==5)return!1;var u=ac,p=xj;xj=0;var g=ee(Zo),v=B.T,T=K.p;try{K.p=32>g?32:g,B.T=null,g=bj,bj=null;var M=ac,q=Zo;if(Jn=0,hp=ac=null,Zo=0,(Ba&6)!==0)throw Error(n(331));var le=Ba;if(Ba|=4,QO(M.current),qO(M,M.current,q,g),Ba=le,ih(0,!1),Qe&&typeof Qe.onPostCommitFiberRoot=="function")try{Qe.onPostCommitFiberRoot(ze,M)}catch{}return!0}finally{K.p=T,B.T=v,d7(u,p)}}function p7(u,p,g){p=Ur(g,p),p=YP(u.stateNode,p,2),u=$l(u,p,2),u!==null&&(nt(u,2),io(u))}function Xa(u,p,g){if(u.tag===3)p7(u,u,g);else for(;p!==null;){if(p.tag===3){p7(p,u,g);break}else if(p.tag===1){var v=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(tc===null||!tc.has(v))){u=Ur(g,u),g=mO(2),v=$l(p,g,2),v!==null&&(fO(g,v,p,u),nt(v,2),io(v));break}}p=p.return}}function Pj(u,p,g){var v=u.pingCache;if(v===null){v=u.pingCache=new Dse;var T=new Set;v.set(p,T)}else T=v.get(p),T===void 0&&(T=new Set,v.set(p,T));T.has(g)||(fj=!0,T.add(g),u=zse.bind(null,u,p,g),p.then(u,u))}function zse(u,p,g){var v=u.pingCache;v!==null&&v.delete(p),u.pingedLanes|=u.suspendedLanes&g,u.warmLanes&=~g,an===u&&(va&g)===g&&(Tn===4||Tn===3&&(va&62914560)===va&&300>it()-i0?(Ba&2)===0&&gp(u,0):hj|=g,fp===va&&(fp=0)),io(u)}function m7(u,p){p===0&&(p=lt()),u=fd(u,p),u!==null&&(nt(u,p),io(u))}function _se(u){var p=u.memoizedState,g=0;p!==null&&(g=p.retryLane),m7(u,g)}function Ise(u,p){var g=0;switch(u.tag){case 31:case 13:var v=u.stateNode,T=u.memoizedState;T!==null&&(g=T.retryLane);break;case 19:v=u.stateNode;break;case 22:v=u.stateNode._retryCache;break;default:throw Error(n(314))}v!==null&&v.delete(p),m7(u,g)}function Lse(u,p){return ht(u,p)}var m0=null,bp=null,jj=!1,f0=!1,kj=!1,sc=0;function io(u){u!==bp&&u.next===null&&(bp===null?m0=bp=u:bp=bp.next=u),f0=!0,jj||(jj=!0,Bse())}function ih(u,p){if(!kj&&f0){kj=!0;do for(var g=!1,v=m0;v!==null;){if(u!==0){var T=v.pendingLanes;if(T===0)var M=0;else{var q=v.suspendedLanes,le=v.pingedLanes;M=(1<<31-Ee(42|u)+1)-1,M&=T&~(q&~le),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(g=!0,x7(v,M))}else M=va,M=fe(v,v===an?M:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(M&3)===0||Se(v,M)||(g=!0,x7(v,M));v=v.next}while(g);kj=!1}}function Fse(){f7()}function f7(){f0=jj=!1;var u=0;sc!==0&&Xse()&&(u=sc);for(var p=it(),g=null,v=m0;v!==null;){var T=v.next,M=h7(v,p);M===0?(v.next=null,g===null?m0=T:g.next=T,T===null&&(bp=g)):(g=v,(u!==0||(M&3)!==0)&&(f0=!0)),v=T}Jn!==0&&Jn!==5||ih(u),sc!==0&&(sc=0)}function h7(u,p){for(var g=u.suspendedLanes,v=u.pingedLanes,T=u.expirationTimes,M=u.pendingLanes&-62914561;0<M;){var q=31-Ee(M),le=1<<q,we=T[q];we===-1?((le&g)===0||(le&v)!==0)&&(T[q]=ot(le,p)):we<=p&&(u.expiredLanes|=le),M&=~le}if(p=an,g=va,g=fe(u,u===p?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),v=u.callbackNode,g===0||u===p&&($a===2||$a===9)||u.cancelPendingCommit!==null)return v!==null&&v!==null&&pe(v),u.callbackNode=null,u.callbackPriority=0;if((g&3)===0||Se(u,g)){if(p=g&-g,p===u.callbackPriority)return p;switch(v!==null&&pe(v),ee(g)){case 2:case 8:g=vt;break;case 32:g=St;break;case 268435456:g=be;break;default:g=St}return v=g7.bind(null,u),g=ht(g,v),u.callbackPriority=p,u.callbackNode=g,p}return v!==null&&v!==null&&pe(v),u.callbackPriority=2,u.callbackNode=null,2}function g7(u,p){if(Jn!==0&&Jn!==5)return u.callbackNode=null,u.callbackPriority=0,null;var g=u.callbackNode;if(p0()&&u.callbackNode!==g)return null;var v=va;return v=fe(u,u===an?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),v===0?null:(YO(u,v,p),h7(u,it()),u.callbackNode!=null&&u.callbackNode===g?g7.bind(null,u):null)}function x7(u,p){if(p0())return null;YO(u,p,!0)}function Bse(){Zse(function(){(Ba&6)!==0?ht(bt,Fse):f7()})}function Nj(){if(sc===0){var u=np;u===0&&(u=z,z<<=1,(z&261888)===0&&(z=256)),sc=u}return sc}function b7(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:Pb(""+u)}function v7(u,p){var g=p.ownerDocument.createElement("input");return g.name=p.name,g.value=p.value,u.id&&g.setAttribute("form",u.id),p.parentNode.insertBefore(g,p),u=new FormData(u),g.parentNode.removeChild(g),u}function Gse(u,p,g,v,T){if(p==="submit"&&g&&g.stateNode===T){var M=b7((T[kt]||null).action),q=v.submitter;q&&(p=(p=q[kt]||null)?b7(p.formAction):q.getAttribute("formAction"),p!==null&&(M=p,q=null));var le=new Ab("action","action",null,v,T);u.push({event:le,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(sc!==0){var we=q?v7(T,q):new FormData(T);VP(g,{pending:!0,data:we,method:T.method,action:M},null,we)}}else typeof M=="function"&&(le.preventDefault(),we=q?v7(T,q):new FormData(T),VP(g,{pending:!0,data:we,method:T.method,action:M},M,we))},currentTarget:T}]})}}for(var Aj=0;Aj<lP.length;Aj++){var Sj=lP[Aj],Hse=Sj.toLowerCase(),qse=Sj[0].toUpperCase()+Sj.slice(1);Ai(Hse,"on"+qse)}Ai(XE,"onAnimationEnd"),Ai(YE,"onAnimationIteration"),Ai(ZE,"onAnimationStart"),Ai("dblclick","onDoubleClick"),Ai("focusin","onFocus"),Ai("focusout","onBlur"),Ai(rse,"onTransitionRun"),Ai(ise,"onTransitionStart"),Ai(ose,"onTransitionCancel"),Ai(JE,"onTransitionEnd"),Gr("onMouseEnter",["mouseout","mouseover"]),Gr("onMouseLeave",["mouseout","mouseover"]),Gr("onPointerEnter",["pointerout","pointerover"]),Gr("onPointerLeave",["pointerout","pointerover"]),gr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gr("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),gr("onBeforeInput",["compositionend","keypress","textInput","paste"]),gr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oh="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(" "),Use=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oh));function y7(u,p){p=(p&4)!==0;for(var g=0;g<u.length;g++){var v=u[g],T=v.event;v=v.listeners;e:{var M=void 0;if(p)for(var q=v.length-1;0<=q;q--){var le=v[q],we=le.instance,Be=le.currentTarget;if(le=le.listener,we!==M&&T.isPropagationStopped())break e;M=le,T.currentTarget=Be;try{M(T)}catch($e){Tb($e)}T.currentTarget=null,M=we}else for(q=0;q<v.length;q++){if(le=v[q],we=le.instance,Be=le.currentTarget,le=le.listener,we!==M&&T.isPropagationStopped())break e;M=le,T.currentTarget=Be;try{M(T)}catch($e){Tb($e)}T.currentTarget=null,M=we}}}}function xa(u,p){var g=p[Ca];g===void 0&&(g=p[Ca]=new Set);var v=u+"__bubble";g.has(v)||(w7(p,u,2,!1),g.add(v))}function Cj(u,p,g){var v=0;p&&(v|=4),w7(g,u,v,p)}var h0="_reactListening"+Math.random().toString(36).slice(2);function Tj(u){if(!u[h0]){u[h0]=!0,Sf.forEach(function(g){g!=="selectionchange"&&(Use.has(g)||Cj(g,!1,u),Cj(g,!0,u))});var p=u.nodeType===9?u:u.ownerDocument;p===null||p[h0]||(p[h0]=!0,Cj("selectionchange",!1,p))}}function w7(u,p,g,v){switch(X7(p)){case 2:var T=bre;break;case 8:T=vre;break;default:T=Uj}g=T.bind(null,p,g,u),T=void 0,!$w||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(T=!0),v?T!==void 0?u.addEventListener(p,g,{capture:!0,passive:T}):u.addEventListener(p,g,!0):T!==void 0?u.addEventListener(p,g,{passive:T}):u.addEventListener(p,g,!1)}function Dj(u,p,g,v,T){var M=v;if((p&1)===0&&(p&2)===0&&v!==null)e:for(;;){if(v===null)return;var q=v.tag;if(q===3||q===4){var le=v.stateNode.containerInfo;if(le===T)break;if(q===4)for(q=v.return;q!==null;){var we=q.tag;if((we===3||we===4)&&q.stateNode.containerInfo===T)return;q=q.return}for(;le!==null;){if(q=qs(le),q===null)return;if(we=q.tag,we===5||we===6||we===26||we===27){v=M=q;continue e}le=le.parentNode}}v=v.return}AE(function(){var Be=M,$e=Ww(g),tt=[];e:{var Ge=eM.get(u);if(Ge!==void 0){var Ue=Ab,Ct=u;switch(u){case"keypress":if(kb(g)===0)break e;case"keydown":case"keyup":Ue=Ine;break;case"focusin":Ct="focus",Ue=Jw;break;case"focusout":Ct="blur",Ue=Jw;break;case"beforeblur":case"afterblur":Ue=Jw;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=TE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=Nne;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=Bne;break;case XE:case YE:case ZE:Ue=Cne;break;case JE:Ue=Hne;break;case"scroll":case"scrollend":Ue=jne;break;case"wheel":Ue=Une;break;case"copy":case"cut":case"paste":Ue=Dne;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=EE;break;case"toggle":case"beforetoggle":Ue=Qne}var Bt=(p&4)!==0,Ja=!Bt&&(u==="scroll"||u==="scrollend"),De=Bt?Ge!==null?Ge+"Capture":null:Ge;Bt=[];for(var Ne=Be,Fe;Ne!==null;){var Je=Ne;if(Fe=Je.stateNode,Je=Je.tag,Je!==5&&Je!==26&&Je!==27||Fe===null||De===null||(Je=Tf(Ne,De),Je!=null&&Bt.push(lh(Ne,Je,Fe))),Ja)break;Ne=Ne.return}0<Bt.length&&(Ge=new Ue(Ge,Ct,null,g,$e),tt.push({event:Ge,listeners:Bt}))}}if((p&7)===0){e:{if(Ge=u==="mouseover"||u==="pointerover",Ue=u==="mouseout"||u==="pointerout",Ge&&g!==Qw&&(Ct=g.relatedTarget||g.fromElement)&&(qs(Ct)||Ct[Sa]))break e;if((Ue||Ge)&&(Ge=$e.window===$e?$e:(Ge=$e.ownerDocument)?Ge.defaultView||Ge.parentWindow:window,Ue?(Ct=g.relatedTarget||g.toElement,Ue=Be,Ct=Ct?qs(Ct):null,Ct!==null&&(Ja=i(Ct),Bt=Ct.tag,Ct!==Ja||Bt!==5&&Bt!==27&&Bt!==6)&&(Ct=null)):(Ue=null,Ct=Be),Ue!==Ct)){if(Bt=TE,Je="onMouseLeave",De="onMouseEnter",Ne="mouse",(u==="pointerout"||u==="pointerover")&&(Bt=EE,Je="onPointerLeave",De="onPointerEnter",Ne="pointer"),Ja=Ue==null?Ge:dd(Ue),Fe=Ct==null?Ge:dd(Ct),Ge=new Bt(Je,Ne+"leave",Ue,g,$e),Ge.target=Ja,Ge.relatedTarget=Fe,Je=null,qs($e)===Be&&(Bt=new Bt(De,Ne+"enter",Ct,g,$e),Bt.target=Fe,Bt.relatedTarget=Ja,Je=Bt),Ja=Je,Ue&&Ct)t:{for(Bt=Vse,De=Ue,Ne=Ct,Fe=0,Je=De;Je;Je=Bt(Je))Fe++;Je=0;for(var Lt=Ne;Lt;Lt=Bt(Lt))Je++;for(;0<Fe-Je;)De=Bt(De),Fe--;for(;0<Je-Fe;)Ne=Bt(Ne),Je--;for(;Fe--;){if(De===Ne||Ne!==null&&De===Ne.alternate){Bt=De;break t}De=Bt(De),Ne=Bt(Ne)}Bt=null}else Bt=null;Ue!==null&&P7(tt,Ge,Ue,Bt,!1),Ct!==null&&Ja!==null&&P7(tt,Ja,Ct,Bt,!0)}}
vendor: 5,272 bytes, lines 48-49
48e:{if(Ge=Be?dd(Be):window,Ue=Ge.nodeName&&Ge.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&Ge.type==="file")var Ra=FE;else if(IE(Ge))if(BE)Ra=ase;else{Ra=ese;var Ot=Jne}else Ue=Ge.nodeName,!Ue||Ue.toLowerCase()!=="input"||Ge.type!=="checkbox"&&Ge.type!=="radio"?Be&&Vw(Be.elementType)&&(Ra=FE):Ra=tse;if(Ra&&(Ra=Ra(u,Be))){LE(tt,Ra,g,$e);break e}Ot&&Ot(u,Ge,Be),u==="focusout"&&Be&&Ge.type==="number"&&Be.memoizedProps.value!=null&&Uw(Ge,"number",Ge.value)}switch(Ot=Be?dd(Be):window,u){case"focusin":(IE(Ot)||Ot.contentEditable==="true")&&($u=Ot,rP=Be,If=null);break;case"focusout":If=rP=$u=null;break;case"mousedown":iP=!0;break;case"contextmenu":case"mouseup":case"dragend":iP=!1,KE(tt,g,$e);break;case"selectionchange":if(sse)break;case"keydown":case"keyup":KE(tt,g,$e)}var ca;if(tP)e:{switch(u){case"compositionstart":var ya="onCompositionStart";break e;case"compositionend":ya="onCompositionEnd";break e;case"compositionupdate":ya="onCompositionUpdate";break e}ya=void 0}else Ku?zE(u,g)&&(ya="onCompositionEnd"):u==="keydown"&&g.keyCode===229&&(ya="onCompositionStart");ya&&(ME&&g.locale!=="ko"&&(Ku||ya!=="onCompositionStart"?ya==="onCompositionEnd"&&Ku&&(ca=SE()):(Hl=$e,Xw="value"in Hl?Hl.value:Hl.textContent,Ku=!0)),Ot=g0(Be,ya),0<Ot.length&&(ya=new DE(ya,u,null,g,$e),tt.push({event:ya,listeners:Ot}),ca?ya.data=ca:(ca=_E(g),ca!==null&&(ya.data=ca)))),(ca=Kne?$ne(u,g):Xne(u,g))&&(ya=g0(Be,"onBeforeInput"),0<ya.length&&(Ot=new DE("onBeforeInput","beforeinput",null,g,$e),tt.push({event:Ot,listeners:ya}),Ot.data=ca)),Gse(tt,u,Be,g,$e)}y7(tt,p)})}function lh(u,p,g){return{instance:u,listener:p,currentTarget:g}}function g0(u,p){for(var g=p+"Capture",v=[];u!==null;){var T=u,M=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||M===null||(T=Tf(u,g),T!=null&&v.unshift(lh(u,T,M)),T=Tf(u,p),T!=null&&v.push(lh(u,T,M))),u.tag===3)return v;u=u.return}return[]}function Vse(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function P7(u,p,g,v,T){for(var M=p._reactName,q=[];g!==null&&g!==v;){var le=g,we=le.alternate,Be=le.stateNode;if(le=le.tag,we!==null&&we===v)break;le!==5&&le!==26&&le!==27||Be===null||(we=Be,T?(Be=Tf(g,M),Be!=null&&q.unshift(lh(g,Be,we))):T||(Be=Tf(g,M),Be!=null&&q.push(lh(g,Be,we)))),g=g.return}q.length!==0&&u.push({event:p,listeners:q})}var Qse=/\r\n?/g,Wse=/\u0000|\uFFFD/g;function j7(u){return(typeof u=="string"?u:""+u).replace(Qse,` 49`).replace(Wse,"")}function k7(u,p){return p=j7(p),j7(u)===p}function Za(u,p,g,v,T,M){switch(g){case"children":typeof v=="string"?p==="body"||p==="textarea"&&v===""||Vu(u,v):(typeof v=="number"||typeof v=="bigint")&&p!=="body"&&Vu(u,""+v);break;case"className":Da(u,"class",v);break;case"tabIndex":Da(u,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Da(u,g,v);break;case"style":kE(u,v,M);break;case"data":if(p!=="object"){Da(u,"data",v);break}case"src":case"href":if(v===""&&(p!=="a"||g!=="href")){u.removeAttribute(g);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(g);break}v=Pb(""+v),u.setAttribute(g,v);break;case"action":case"formAction":if(typeof v=="function"){u.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof M=="function"&&(g==="formAction"?(p!=="input"&&Za(u,p,"name",T.name,T,null),Za(u,p,"formEncType",T.formEncType,T,null),Za(u,p,"formMethod",T.formMethod,T,null),Za(u,p,"formTarget",T.formTarget,T,null)):(Za(u,p,"encType",T.encType,T,null),Za(u,p,"method",T.method,T,null),Za(u,p,"target",T.target,T,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){u.removeAttribute(g);break}v=Pb(""+v),u.setAttribute(g,v);break;case"onClick":v!=null&&(u.onclick=Io);break;case"onScroll":v!=null&&xa("scroll",u);break;case"onScrollEnd":v!=null&&xa("scrollend",u);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(g=v.__html,g!=null){if(T.children!=null)throw Error(n(60));u.innerHTML=g}}break;case"multiple":u.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":u.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){u.removeAttribute("xlink:href");break}g=Pb(""+v),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(g,""+v):u.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(g,""):u.removeAttribute(g);break;case"capture":case"download":v===!0?u.setAttribute(g,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?u.setAttribute(g,v):u.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?u.setAttribute(g,v):u.removeAttribute(g);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?u.removeAttribute(g):u.setAttribute(g,v);break;case"popover":xa("beforetoggle",u),xa("toggle",u),ha(u,"popover",v);break;case"xlinkActuate":Oa(u,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Oa(u,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Oa(u,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Oa(u,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Oa(u,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Oa(u,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Oa(u,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Oa(u,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Oa(u,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":ha(u,"is",v);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=wne.get(g)||g,ha(u,g,v))}}function Ej(u,p,g,v,T,M){switch(g){case"style":kE(u,v,M);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(g=v.__html,g!=null){if(T.children!=null)throw Error(n(60));u.innerHTML=g}}break;case"children":typeof v=="string"?Vu(u,v):(typeof v=="number"||typeof v=="bigint")&&Vu(u,""+v);break;case"onScroll":v!=null&&xa("scroll",u);break;case"onScrollEnd":v!=null&&xa("scrollend",u);break;case"onClick":v!=null&&(u.onclick=Io);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cf.hasOwnProperty(g))e:{if(g[0]==="o"&&g[1]==="n"&&(T=g.endsWith("Capture"),p=g.slice(2,T?g.length-7:void 0),M=u[kt]||null,M=M!=null?M[g]:null,typeof M=="function"&&u.removeEventListener(p,M,T),typeof v=="function")){typeof M!="function"&&M!==null&&(g in u?u[g]=null:u.hasAttribute(g)&&u.removeAttribute(g)),u.addEventListener(p,v,T);break e}g in u?u[g]=v:v===!0?u.setAttribute(g,""):ha(u,g,v)}}}function ks(u,p,g){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xa("error",u),xa("load",u);var v=!1,T=!1,M;for(M in g)if(g.hasOwnProperty(M)){var q=g[M];if(q!=null)switch(M){case"src":v=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,p));default:Za(u,p,M,q,g,null)}}T&&Za(u,p,"srcSet",g.srcSet,g,null),v&&Za(u,p,"src",g.src,g,null);return;case"input":xa("invalid",u);var le=M=q=T=null,we=null,Be=null;for(v in g)if(g.hasOwnProperty(v)){var $e=g[v];if($e!=null)switch(v){case"name":T=$e;break;case"type":q=$e;break;case"checked":we=$e;break;case"defaultChecked":Be=$e;break;case"value":M=$e;break;case"defaultValue":le=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(n(137,p));break;default:Za(u,p,v,$e,g,null)}}yE(u,M,le,we,Be,q,T,!1);return;case"select":xa("invalid",u),v=q=M=null;for(T in g)if(g.hasOwnProperty(T)&&(le=g[T],le!=null))switch(T){case"value":M=le;break;case"defaultValue":q=le;break;case"multiple":v=le;default:Za(u,p,T,le,g,null)}p=M,g=q,u.multiple=!!v,p!=null?Uu(u,!!v,p,!1):g!=null&&Uu(u,!!v,g,!0);return;case"textarea":xa("invalid",u),M=T=v=null;for(q in g)if(g.hasOwnProperty(q)&&(le=g[q],le!=null))switch(q){case"value":v=le;break;case"defaultValue":T=le;break;case"children":M=le;break;case"dangerouslySetInnerHTML":if(le!=null)throw Error(n(91));break;default:Za(u,p,q,le,g,null)}PE(u,v,T,M);return;case"option":for(we in g)if(g.hasOwnProperty(we)&&(v=g[we],v!=null))switch(we){case"selected":u.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:Za(u,p,we,v,g,null)}return;case"dialog":xa("beforetoggle",u),xa("toggle",u),xa("cancel",u),xa("close",u);break;case"iframe":case"object":xa("load",u);break;case"video":case"audio":for(v=0;v<oh.length;v++)xa(oh[v],u);break;case"image":xa("error",u),xa("load",u);break;case"details":xa("toggle",u);break;case"embed":case"source":case"link":xa("error",u),xa("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Be in g)if(g.hasOwnProperty(Be)&&(v=g[Be],v!=null))switch(Be){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,p));default:Za(u,p,Be,v,g,null)}return;default:if(Vw(p)){for($e in g)g.hasOwnProperty($e)&&(v=g[$e],v!==void 0&&Ej(u,p,$e,v,g,void 0));return}}for(le in g)g.hasOwnProperty(le)&&(v=g[le],v!=null&&Za(u,p,le,v,g,null))}function Kse(u,p,g,v){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,M=null,q=null,le=null,we=null,Be=null,$e=null;for(Ue in g){var tt=g[Ue];if(g.hasOwnProperty(Ue)&&tt!=null)switch(Ue){case"checked":break;case"value":break;case"defaultValue":we=tt;default:v.hasOwnProperty(Ue)||Za(u,p,Ue,null,v,tt)}}for(var Ge in v){var Ue=v[Ge];
vendor: 4,172 bytes, line 49
49if(tt=g[Ge],v.hasOwnProperty(Ge)&&(Ue!=null||tt!=null))switch(Ge){case"type":M=Ue;break;case"name":T=Ue;break;case"checked":Be=Ue;break;case"defaultChecked":$e=Ue;break;case"value":q=Ue;break;case"defaultValue":le=Ue;break;case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(n(137,p));break;default:Ue!==tt&&Za(u,p,Ge,Ue,v,tt)}}qw(u,q,le,we,Be,$e,M,T);return;case"select":Ue=q=le=Ge=null;for(M in g)if(we=g[M],g.hasOwnProperty(M)&&we!=null)switch(M){case"value":break;case"multiple":Ue=we;default:v.hasOwnProperty(M)||Za(u,p,M,null,v,we)}for(T in v)if(M=v[T],we=g[T],v.hasOwnProperty(T)&&(M!=null||we!=null))switch(T){case"value":Ge=M;break;case"defaultValue":le=M;break;case"multiple":q=M;default:M!==we&&Za(u,p,T,M,v,we)}p=le,g=q,v=Ue,Ge!=null?Uu(u,!!g,Ge,!1):!!v!=!!g&&(p!=null?Uu(u,!!g,p,!0):Uu(u,!!g,g?[]:"",!1));return;case"textarea":Ue=Ge=null;for(le in g)if(T=g[le],g.hasOwnProperty(le)&&T!=null&&!v.hasOwnProperty(le))switch(le){case"value":break;case"children":break;default:Za(u,p,le,null,v,T)}for(q in v)if(T=v[q],M=g[q],v.hasOwnProperty(q)&&(T!=null||M!=null))switch(q){case"value":Ge=T;break;case"defaultValue":Ue=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(n(91));break;default:T!==M&&Za(u,p,q,T,v,M)}wE(u,Ge,Ue);return;case"option":for(var Ct in g)if(Ge=g[Ct],g.hasOwnProperty(Ct)&&Ge!=null&&!v.hasOwnProperty(Ct))switch(Ct){case"selected":u.selected=!1;break;default:Za(u,p,Ct,null,v,Ge)}for(we in v)if(Ge=v[we],Ue=g[we],v.hasOwnProperty(we)&&Ge!==Ue&&(Ge!=null||Ue!=null))switch(we){case"selected":u.selected=Ge&&typeof Ge!="function"&&typeof Ge!="symbol";break;default:Za(u,p,we,Ge,v,Ue)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Bt in g)Ge=g[Bt],g.hasOwnProperty(Bt)&&Ge!=null&&!v.hasOwnProperty(Bt)&&Za(u,p,Bt,null,v,Ge);for(Be in v)if(Ge=v[Be],Ue=g[Be],v.hasOwnProperty(Be)&&Ge!==Ue&&(Ge!=null||Ue!=null))switch(Be){case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(n(137,p));break;default:Za(u,p,Be,Ge,v,Ue)}return;default:if(Vw(p)){for(var Ja in g)Ge=g[Ja],g.hasOwnProperty(Ja)&&Ge!==void 0&&!v.hasOwnProperty(Ja)&&Ej(u,p,Ja,void 0,v,Ge);for($e in v)Ge=v[$e],Ue=g[$e],!v.hasOwnProperty($e)||Ge===Ue||Ge===void 0&&Ue===void 0||Ej(u,p,$e,Ge,v,Ue);return}}for(var De in g)Ge=g[De],g.hasOwnProperty(De)&&Ge!=null&&!v.hasOwnProperty(De)&&Za(u,p,De,null,v,Ge);for(tt in v)Ge=v[tt],Ue=g[tt],!v.hasOwnProperty(tt)||Ge===Ue||Ge==null&&Ue==null||Za(u,p,tt,Ge,v,Ue)}function N7(u){switch(u){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $se(){if(typeof performance.getEntriesByType=="function"){for(var u=0,p=0,g=performance.getEntriesByType("resource"),v=0;v<g.length;v++){var T=g[v],M=T.transferSize,q=T.initiatorType,le=T.duration;if(M&&le&&N7(q)){for(q=0,le=T.responseEnd,v+=1;v<g.length;v++){var we=g[v],Be=we.startTime;if(Be>le)break;var $e=we.transferSize,tt=we.initiatorType;$e&&N7(tt)&&(we=we.responseEnd,q+=$e*(we<le?1:(le-Be)/(we-Be)))}if(--v,p+=8*(M+q)/(T.duration/1e3),u++,10<u)break}}if(0<u)return p/u/1e6}return navigator.connection&&(u=navigator.connection.downlink,typeof u=="number")?u:5}var Mj=null,Oj=null;function x0(u){return u.nodeType===9?u:u.ownerDocument}function A7(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function S7(u,p){if(u===0)switch(p){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&p==="foreignObject"?0:u}function Rj(u,p){return u==="textarea"||u==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.children=="bigint"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var zj=null;function Xse(){var u=window.event;return u&&u.type==="popstate"?u===zj?!1:(zj=u,!0):(zj=null,!1)}var C7=typeof setTimeout=="function"?setTimeout:void 0,Yse=typeof clearTimeout=="function"?clearTimeout:void 0,T7=typeof Promise=="function"?Promise:void 0,Zse
vendor: 13,495 bytes, line 49
49=typeof queueMicrotask=="function"?queueMicrotask:typeof T7<"u"?function(u){return T7.resolve(null).then(u).catch(Jse)}:C7;function Jse(u){setTimeout(function(){throw u})}function rc(u){return u==="head"}function D7(u,p){var g=p,v=0;do{var T=g.nextSibling;if(u.removeChild(g),T&&T.nodeType===8)if(g=T.data,g==="/$"||g==="/&"){if(v===0){u.removeChild(T),Pp(p);return}v--}else if(g==="$"||g==="$?"||g==="$~"||g==="$!"||g==="&")v++;else if(g==="html")ch(u.ownerDocument.documentElement);else if(g==="head"){g=u.ownerDocument.head,ch(g);for(var M=g.firstChild;M;){var q=M.nextSibling,le=M.nodeName;M[ld]||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&M.rel.toLowerCase()==="stylesheet"||g.removeChild(M),M=q}}else g==="body"&&ch(u.ownerDocument.body);g=T}while(g);Pp(p)}function E7(u,p){var g=u;u=0;do{var v=g.nextSibling;if(g.nodeType===1?p?(g._stashedDisplay=g.style.display,g.style.display="none"):(g.style.display=g._stashedDisplay||"",g.getAttribute("style")===""&&g.removeAttribute("style")):g.nodeType===3&&(p?(g._stashedText=g.nodeValue,g.nodeValue=""):g.nodeValue=g._stashedText||""),v&&v.nodeType===8)if(g=v.data,g==="/$"){if(u===0)break;u--}else g!=="$"&&g!=="$?"&&g!=="$~"&&g!=="$!"||u++;g=v}while(g)}function _j(u){var p=u.firstChild;for(p&&p.nodeType===10&&(p=p.nextSibling);p;){var g=p;switch(p=p.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":_j(g),cd(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}u.removeChild(g)}}function ere(u,p,g,v){for(;u.nodeType===1;){var T=g;if(u.nodeName.toLowerCase()!==p.toLowerCase()){if(!v&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(v){if(!u[ld])switch(p){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(M=u.getAttribute("rel"),M==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(M!==T.rel||u.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||u.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||u.getAttribute("title")!==(T.title==null?null:T.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(M=u.getAttribute("src"),(M!==(T.src==null?null:T.src)||u.getAttribute("type")!==(T.type==null?null:T.type)||u.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&M&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(p==="input"&&u.type==="hidden"){var M=T.name==null?null:""+T.name;if(T.type==="hidden"&&u.getAttribute("name")===M)return u}else return u;if(u=$r(u.nextSibling),u===null)break}return null}function tre(u,p,g){if(p==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!g||(u=$r(u.nextSibling),u===null))return null;return u}function M7(u,p){for(;u.nodeType!==8;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!p||(u=$r(u.nextSibling),u===null))return null;return u}function Ij(u){return u.data==="$?"||u.data==="$~"}function Lj(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState!=="loading"}function are(u,p){var g=u.ownerDocument;if(u.data==="$~")u._reactRetry=p;else if(u.data!=="$?"||g.readyState!=="loading")p();else{var v=function(){p(),g.removeEventListener("DOMContentLoaded",v)};g.addEventListener("DOMContentLoaded",v),u._reactRetry=v}}function $r(u){for(;u!=null;u=u.nextSibling){var p=u.nodeType;if(p===1||p===3)break;if(p===8){if(p=u.data,p==="$"||p==="$!"||p==="$?"||p==="$~"||p==="&"||p==="F!"||p==="F")break;if(p==="/$"||p==="/&")return null}}return u}var Fj=null;function O7(u){u=u.nextSibling;for(var p=0;u;){if(u.nodeType===8){var g=u.data;if(g==="/$"||g==="/&"){if(p===0)return $r(u.nextSibling);p--}else g!=="$"&&g!=="$!"&&g!=="$?"&&g!=="$~"&&g!=="&"||p++}u=u.nextSibling}return null}function R7(u){u=u.previousSibling;for(var p=0;u;){if(u.nodeType===8){var g=u.data;if(g==="$"||g==="$!"||g==="$?"||g==="$~"||g==="&"){if(p===0)return u;p--}else g!=="/$"&&g!=="/&"||p++}u=u.previousSibling}return null}function z7(u,p,g){switch(p=x0(g),u){case"html":if(u=p.documentElement,!u)throw Error(n(452));return u;case"head":if(u=p.head,!u)throw Error(n(453));return u;case"body":if(u=p.body,!u)throw Error(n(454));return u;default:throw Error(n(451))}}function ch(u){for(var p=u.attributes;p.length;)u.removeAttributeNode(p[0]);cd(u)}var Xr=new Map,_7=new Set;function b0(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var Jo=K.d;K.d={f:nre,r:sre,D:rre,C:ire,L:ore,m:lre,X:dre,S:cre,M:ure};function nre(){var u=Jo.f(),p=c0();return u||p}function sre(u){var p=zo(u);p!==null&&p.tag===5&&p.type==="form"?JM(p):Jo.r(u)}var vp=typeof document>"u"?null:document;function I7(u,p,g){var v=vp;if(v&&typeof p=="string"&&p){var T=Hr(p);T='link[rel="'+u+'"][href="'+T+'"]',typeof g=="string"&&(T+='[crossorigin="'+g+'"]'),_7.has(T)||(_7.add(T),u={rel:u,crossOrigin:g,href:p},v.querySelector(T)===null&&(p=v.createElement("link"),ks(p,"link",u),Bn(p),v.head.appendChild(p)))}}function rre(u){Jo.D(u),I7("dns-prefetch",u,null)}function ire(u,p){Jo.C(u,p),I7("preconnect",u,p)}function ore(u,p,g){Jo.L(u,p,g);var v=vp;if(v&&u&&p){var T='link[rel="preload"][as="'+Hr(p)+'"]';p==="image"&&g&&g.imageSrcSet?(T+='[imagesrcset="'+Hr(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(T+='[imagesizes="'+Hr(g.imageSizes)+'"]')):T+='[href="'+Hr(u)+'"]';var M=T;switch(p){case"style":M=yp(u);break;case"script":M=wp(u)}Xr.has(M)||(u=f({rel:"preload",href:p==="image"&&g&&g.imageSrcSet?void 0:u,as:p},g),Xr.set(M,u),v.querySelector(T)!==null||p==="style"&&v.querySelector(dh(M))||p==="script"&&v.querySelector(uh(M))||(p=v.createElement("link"),ks(p,"link",u),Bn(p),v.head.appendChild(p)))}}function lre(u,p){Jo.m(u,p);var g=vp;if(g&&u){var v=p&&typeof p.as=="string"?p.as:"script",T='link[rel="modulepreload"][as="'+Hr(v)+'"][href="'+Hr(u)+'"]',M=T;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=wp(u)}if(!Xr.has(M)&&(u=f({rel:"modulepreload",href:u},p),Xr.set(M,u),g.querySelector(T)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(uh(M)))return}v=g.createElement("link"),ks(v,"link",u),Bn(v),g.head.appendChild(v)}}}function cre(u,p,g){Jo.S(u,p,g);var v=vp;if(v&&u){var T=_o(v).hoistableStyles,M=yp(u);p=p||"default";var q=T.get(M);if(!q){var le={loading:0,preload:null};if(q=v.querySelector(dh(M)))le.loading=5;else{u=f({rel:"stylesheet",href:u,"data-precedence":p},g),(g=Xr.get(M))&&Bj(u,g);var we=q=v.createElement("link");Bn(we),ks(we,"link",u),we._p=new Promise(function(Be,$e){we.onload=Be,we.onerror=$e}),we.addEventListener("load",function(){le.loading|=1}),we.addEventListener("error",function(){le.loading|=2}),le.loading|=4,v0(q,p,v)}q={type:"stylesheet",instance:q,count:1,state:le},T.set(M,q)}}}function dre(u,p){Jo.X(u,p);var g=vp;if(g&&u){var v=_o(g).hoistableScripts,T=wp(u),M=v.get(T);M||(M=g.querySelector(uh(T)),M||(u=f({src:u,async:!0},p),(p=Xr.get(T))&&Gj(u,p),M=g.createElement("script"),Bn(M),ks(M,"link",u),g.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},v.set(T,M))}}function ure(u,p){Jo.M(u,p);var g=vp;if(g&&u){var v=_o(g).hoistableScripts,T=wp(u),M=v.get(T);M||(M=g.querySelector(uh(T)),M||(u=f({src:u,async:!0,type:"module"},p),(p=Xr.get(T))&&Gj(u,p),M=g.createElement("script"),Bn(M),ks(M,"link",u),g.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},v.set(T,M))}}function L7(u,p,g,v){var T=(T=X.current)?b0(T):null;if(!T)throw Error(n(446));switch(u){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(p=yp(g.href),g=_o(T).hoistableStyles,v=g.get(p),v||(v={type:"style",instance:null,count:0,state:null},g.set(p,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){u=yp(g.href);var M=_o(T).hoistableStyles,q=M.get(u);if(q||(T=T.ownerDocument||T,q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(u,q),(M=T.querySelector(dh(u)))&&!M._p&&(q.instance=M,q.state.loading=5),Xr.has(u)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},Xr.set(u,g),M||pre(T,u,g,q.state))),p&&v===null)throw Error(n(528,""));return q}if(p&&v!==null)throw Error(n(529,""));return null;case"script":return p=g.async,g=g.src,typeof g=="string"&&p&&typeof p!="function"&&typeof p!="symbol"?(p=wp(g),g=_o(T).hoistableScripts,v=g.get(p),v||(v={type:"script",instance:null,count:0,state:null},g.set(p,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,u))}}function yp(u){return'href="'+Hr(u)+'"'}function dh(u){return'link[rel="stylesheet"]['+u+"]"}function F7(u){return f({},u,{"data-precedence":u.precedence,precedence:null})}function pre(u,p,g,v){u.querySelector('link[rel="preload"][as="style"]['+p+"]")?v.loading=1:(p=u.createElement("link"),v.preload=p,p.addEventListener("load",function(){return v.loading|=1}),p.addEventListener("error",function(){return v.loading|=2}),ks(p,"link",g),Bn(p),u.head.appendChild(p))}function wp(u){return'[src="'+Hr(u)+'"]'}function uh(u){return"script[async]"+u}function B7(u,p,g){if(p.count++,p.instance===null)switch(p.type){case"style":var v=u.querySelector('style[data-href~="'+Hr(g.href)+'"]');if(v)return p.instance=v,Bn(v),v;var T=f({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return v=(u.ownerDocument||u).createElement("style"),Bn(v),ks(v,"style",T),v0(v,g.precedence,u),p.instance=v;case"stylesheet":T=yp(g.href);var M=u.querySelector(dh(T));if(M)return p.state.loading|=4,p.instance=M,Bn(M),M;v=F7(g),(T=Xr.get(T))&&Bj(v,T),M=(u.ownerDocument||u).createElement("link"),Bn(M);var q=M;return q._p=new Promise(function(le,we){q.onload=le,q.onerror=we}),ks(M,"link",v),p.state.loading|=4,v0(M,g.precedence,u),p.instance=M;case"script":return M=wp(g.src),(T=u.querySelector(uh(M)))?(p.instance=T,Bn(T),T):(v=g,(T=Xr.get(M))&&(v=f({},g),Gj(v,T)),u=u.ownerDocument||u,T=u.createElement("script"),Bn(T),ks(T,"link",v),u.head.appendChild(T),p.instance=T);case"void":return null;default:throw Error(n(443,p.type))}else p.type==="stylesheet"&&(p.state.loading&4)===0&&(v=p.instance,p.state.loading|=4,v0(v,g.precedence,u));return p.instance}function v0(u,p,g){for(var v=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=v.length?v[v.length-1]:null,M=T,q=0;q<v.length;q++){var le=v[q];if(le.dataset.precedence===p)M=le;else if(M!==T)break}M?M.parentNode.insertBefore(u,M.nextSibling):(p=g.nodeType===9?g.head:g,p.insertBefore(u,p.firstChild))}function Bj(u,p){u.crossOrigin==null&&(u.crossOrigin=p.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=p.referrerPolicy),u.title==null&&(u.title=p.title)}function Gj(u,p){u.crossOrigin==null&&(u.crossOrigin=p.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=p.referrerPolicy),u.integrity==null&&(u.integrity=p.integrity)}var y0=null;function G7(u,p,g){if(y0===null){var v=new Map,T=y0=new Map;T.set(g,v)}else T=y0,v=T.get(g),v||(v=new Map,T.set(g,v));if(v.has(u))return v;for(v.set(u,null),g=g.getElementsByTagName(u),T=0;T<g.length;T++){var M=g[T];if(!(M[ld]||M[wt]||u==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var q=M.getAttribute(p)||"";q=u+q;var le=v.get(q);le?le.push(M):v.set(q,[M])}}return v}function H7(u,p,g){u=u.ownerDocument||u,u.head.insertBefore(g,p==="title"?u.querySelector("head > title"):null)}function mre(u,p,g){if(g===1||p.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof p.precedence!="string"||typeof p.href!="string"||p.href==="")break;return!0;case"link":if(typeof p.rel!="string"||typeof p.href!="string"||p.href===""||p.onLoad||p.onError)break;switch(p.rel){case"stylesheet":return u=p.disabled,typeof p.precedence=="string"&&u==null;default:return!0}case"script":if(p.async&&typeof p.async!="function"&&typeof p.async!="symbol"&&!p.onLoad&&!p.onError&&p.src&&typeof p.src=="string")return!0}return!1}function q7(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}function fre(u,p,g,v){if(g.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(g.state.loading&4)===0){if(g.instance===null){var T=yp(v.href),M=p.querySelector(dh(T));if(M){p=M._p,p!==null&&typeof p=="object"&&typeof p.then=="function"&&(u.count++,u=w0.bind(u),p.then(u,u)),g.state.loading|=4,g.instance=M,Bn(M);return}M=p.ownerDocument||p,v=F7(v),(T=Xr.get(T))&&Bj(v,T),M=M.createElement("link"),Bn(M);var q=M;q._p=new Promise(function(le,we){q.onload=le,q.onerror=we}),ks(M,"link",v),g.instance=M}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(g,p),(p=g.state.preload)&&(g.state.loading&3)===0&&(u.count++,g=w0.bind(u),p.addEventListener("load",g),p.addEventListener("error",g))}}var Hj=0;function hre(u,p){return u.stylesheets&&u.count===0&&j0(u,u.stylesheets),0<u.count||0<u.imgCount?function(g){var v=setTimeout(function(){if(u.stylesheets&&j0(u,u.stylesheets),u.unsuspend){var M=u.unsuspend;u.unsuspend=null,M()}},6e4+p);0<u.imgBytes&&Hj===0&&(Hj=62500*$se());var T=setTimeout(function(){if(u.waitingForImages=!1,u.count===0&&(u.stylesheets&&j0(u,u.stylesheets),u.unsuspend)){var M=u.unsuspend;u.unsuspend=null,M()}},(u.imgBytes>
vendor: 4,202 bytes, line 49
49Hj?50:800)+p);return u.unsuspend=g,function(){u.unsuspend=null,clearTimeout(v),clearTimeout(T)}}:null}function w0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)j0(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var P0=null;function j0(u,p){u.stylesheets=null,u.unsuspend!==null&&(u.count++,P0=new Map,p.forEach(gre,u),P0=null,w0.call(u))}function gre(u,p){if(!(p.state.loading&4)){var g=P0.get(u);if(g)var v=g.get(null);else{g=new Map,P0.set(u,g);for(var T=u.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<T.length;M++){var q=T[M];(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")&&(g.set(q.dataset.precedence,q),v=q)}v&&g.set(null,v)}T=p.instance,q=T.getAttribute("data-precedence"),M=g.get(q)||v,M===v&&g.set(null,T),g.set(q,T),this.count++,v=w0.bind(this),T.addEventListener("load",v),T.addEventListener("error",v),M?M.parentNode.insertBefore(T,M.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(T,u.firstChild)),p.state.loading|=4}}var ph={$$typeof:k,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function xre(u,p,g,v,T,M,q,le,we){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Le(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Le(0),this.hiddenUpdates=Le(null),this.identifierPrefix=v,this.onUncaughtError=T,this.onCaughtError=M,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=we,this.incompleteTransitions=new Map}function U7(u,p,g,v,T,M,q,le,we,Be,$e,tt){return u=new xre(u,p,g,q,we,Be,$e,tt,le),p=1,M===!0&&(p|=24),M=br(3,null,null,p),u.current=M,M.stateNode=u,p=wP(),p.refCount++,u.pooledCache=p,p.refCount++,M.memoizedState={element:v,isDehydrated:g,cache:p},NP(M),u}function V7(u){return u?(u=Zu,u):Zu}function Q7(u,p,g,v,T,M){T=V7(T),v.context===null?v.context=T:v.pendingContext=T,v=Kl(p),v.payload={element:g},M=M===void 0?null:M,M!==null&&(v.callback=M),g=$l(u,v,p),g!==null&&(or(g,u,p),Uf(g,u,p))}function W7(u,p){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var g=u.retryLane;u.retryLane=g!==0&&g<p?g:p}}function qj(u,p){W7(u,p),(u=u.alternate)&&W7(u,p)}function K7(u){if(u.tag===13||u.tag===31){var p=fd(u,67108864);p!==null&&or(p,u,67108864),qj(u,67108864)}}function $7(u){if(u.tag===13||u.tag===31){var p=jr();p=Mt(p);var g=fd(u,p);g!==null&&or(g,u,p),qj(u,p)}}var k0=!0;function bre(u,p,g,v){var T=B.T;B.T=null;var M=K.p;try{K.p=2,Uj(u,p,g,v)}finally{K.p=M,B.T=T}}function vre(u,p,g,v){var T=B.T;B.T=null;var M=K.p;try{K.p=8,Uj(u,p,g,v)}finally{K.p=M,B.T=T}}function Uj(u,p,g,v){if(k0){var T=Vj(v);if(T===null)Dj(u,p,v,N0,g),Y7(u,v);else if(wre(T,u,p,g,v))v.stopPropagation();else if(Y7(u,v),p&4&&-1<yre.indexOf(u)){for(;T!==null;){var M=zo(T);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var q=se(M.pendingLanes);if(q!==0){var le=M;for(le.pendingLanes|=2,le.entangledLanes|=2;q;){var we=1<<31-Ee(q);le.entanglements[1]|=we,q&=~we}io(M),(Ba&6)===0&&(o0=it()+500,ih(0))}}break;case 31:case 13:le=fd(M,2),le!==null&&or(le,M,2),c0(),qj(M,2)}if(M=Vj(v),M===null&&Dj(u,p,v,N0,g),M===T)break;T=M}T!==null&&v.stopPropagation()}else Dj(u,p,v,null,g)}}function Vj(u){return u=Ww(u),Qj(u)}var N0=null;function Qj(u){if(N0=null,u=qs(u),u!==null){var p=i(u);if(p===null)u=null;else{var g=p.tag;if(g===13){if(u=o(p),u!==null)return u;u=null}else if(g===31){if(u=l(p),u!==null)return u;u=null}else if(g===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;u=null}else p!==u&&(u=null)}}return N0=u,null}function X7(u){switch(u){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invali
49d":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Tt()){case bt:return 2;case vt:return 8;case St:case de:return 32;case be:return 268435456;default:return 32}default:return 32}}var Wj=!1,ic=null,oc=null,lc=null,mh=new Map,fh=new Map,cc=[],yre="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Y7(u,p){switch(u){case"focusin":case"focusout":ic=null;break;case"dragenter":case"dragleave":oc=null;break;case"mouseover":case"mouseout":lc=null;break;case"pointerover":case"pointerout":mh.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":fh.delete(p.pointerId)}}function hh(u,p,g,v,T,M){return u===null||u.nativeEvent!==M?(u={blockedOn:p,domEventName:g,eventSystemFlags:v,nativeEvent:M,targetContainers:[T]},p!==null&&(p=zo(p),p!==null&&K7(p)),u):(u.eventSystemFlags|=v,p=u.targetContainers,T!==null&&p.indexOf(T)===-1&&p.push(T),u)}function wre(u,p,g,v,T){switch(p){case"focusin":return ic=hh(ic,u,p,g,v,T),!0;case"dragenter":return oc=hh(oc,u,p,g,v,T),!0;case"mouseover":return lc=hh(lc,u,p,g,v,T),!0;case"pointerover":var M=T.pointerId;return mh.set(M,hh(mh.get(M)||null,u,p,g,v,T)),!0;case"gotpointercapture":return M=T.pointerId,fh.set(M,hh(fh.get(M)||null,u,p,g,v,T)),!0}return!1}function Z7(u){var p=qs(u.target);if(p!==null){var g=i(p);if(g!==null){if(p=g.tag,p===13){if(p=o(g),p!==null){u.blockedOn=p,Ye(u.priority,function(){$7(g)});return}}else if(p===31){if(p=l(g),p!==null){u.blockedOn=p,Ye(u.priority,function(){$7(g)});return}}else if(p===3&&g.stateNode.current.memoizedState.isDehydrated){u.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}u.blockedOn=null}function A0(u){if(u.blockedOn!==null)return!1;for(var p=u.targetContainers;0<p.length;){var g=Vj(u.nativeEvent);if(g===null){g=u.nativeEvent;var v=new g.constructor(g.type,g);Qw=v,g.target.dispatchEvent(v),Qw=null}else return p=zo(g),p!==null&&K7(p),u.blockedOn=g,!1;p.shift()}return!0}function J7(u,p,g){A0(u)&&g.delete(p)}function Pre(){Wj=!1,ic!==null&&A0(ic)&&(ic=null),oc!==null&&A0(oc)&&(oc=null),lc!==null&&A0(lc)&&(lc=null),mh.forEach(J7),fh.forEach(J7)}function S0(u,p){u.blockedOn===p&&(u.blockedOn=null,Wj||(Wj=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Pre)))}var C0=null;function eR(u){C0!==u&&(C0=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){C0===u&&(C0=null);for(var p=0;p<u.length;p+=3){var g=u[p],v=u[p+1],T=u[p+2];if(typeof v!="function"){if(Qj(v||g)===null)continue;break}var M=zo(g);M!==null&&(u.splice(p,3),p-=3,VP(M,{pending:!0,data:T,method:g.method,action:v},v,T))}}))}function Pp(u){function p(we){return S0(we,u)}ic!==null&&S0(ic,u),oc!==null&&S0(oc,u),lc!==null&&S0(lc,u),mh.forEach(p),fh.forEach(p);for(var g=0;g<cc.length;g++){var v=cc[g];v.blockedOn===u&&(v.blockedOn=null)}for(;0<cc.length&&(g=cc[0],g.blockedOn===null);)Z7(g),g.blockedOn===null&&cc.shift();if(g=(u.ownerDocument||u).$$reactFormReplay,g!=null)for(v=0;v<g.length;v+=3){var T=g[v],M=g[v+1],q=T[kt]||null;if(typeof M=="function")q||eR(g);else if(q){var le=null;if(M&&M.hasAttribute("formAction")){if(T=M,q=M[kt]||null)le=q.formAction;else if(Qj(T)!==null)continue}else le=q.action;typeof le=="function"?g[v+1]=le:(g.splice(v,3),v-=3),eR(g)}}}function tR(){function u(M){M.canIntercept&&M.info==="react-transition"&&M.intercept({handler:function(){return new Promise(function(q){return T=q})},focusReset:"manual",scroll:"manual"})}function p(){T!==null&&(T(),T=null),v||setTimeout(g,20)}function g(){if(!v&&!navigation.transition){var M=navigation.currentEntry;M&&M.url!=null&&navigation.navigate(M.url,{state:M.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var v=!1,T=null;return navigation.addEventListener("navigate",u),navigation.addEventListener("navigatesuccess",p),navigation.addEventListener("navigateerror",p),setTimeout(g,100),function(){v=!0,navigation.removeEventListener("navigate",u),navigation.removeEventListener("navigatesuccess",p),navigation.removeEventListener("navigateerror",p),T!==null&&(T(),T=null)}}}function Kj(u){this._internalRoot=u}T0.prototype.render=Kj.prototype.render=function(u){var p=this._internalRoot;if(p===null)throw Error(n(409));var g=p.current,v=jr();
49Q7(g,v,u,p,null,null)},T0.prototype.unmount=Kj.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var p=u.containerInfo;Q7(u.current,2,null,u,null,null),c0(),p[Sa]=null}};function T0(u){this._internalRoot=u}T0.prototype.unstable_scheduleHydration=function(u){if(u){var p=Oe();u={blockedOn:null,target:u,priority:p};for(var g=0;g<cc.length&&p!==0&&p<cc[g].priority;g++);cc.splice(g,0,u),g===0&&Z7(u)}};var aR=t.version;if(aR!=="19.2.1")throw Error(n(527,aR,"19.2.1"));K.findDOMNode=function(u){var p=u._reactInternals;if(p===void 0)throw typeof u.render=="function"?Error(n(188)):(u=Object.keys(u).join(","),Error(n(268,u)));return u=d(p),u=u!==null?m(u):null,u=u===null?null:u.stateNode,u};var jre={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var D0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!D0.isDisabled&&D0.supportsFiber)try{ze=D0.inject(jre),Qe=D0}catch{}}return bh.createRoot=function(u,p){if(!r(u))throw Error(n(299));var g=!1,v="",T=cO,M=dO,q=uO;return p!=null&&(p.unstable_strictMode===!0&&(g=!0),p.identifierPrefix!==void 0&&(v=p.identifierPrefix),p.onUncaughtError!==void 0&&(T=p.onUncaughtError),p.onCaughtError!==void 0&&(M=p.onCaughtError),p.onRecoverableError!==void 0&&(q=p.onRecoverableError)),p=U7(u,1,!1,null,null,g,v,null,T,M,q,tR),u[Sa]=p.current,Tj(u),new Kj(p)},bh.hydrateRoot=function(u,p,g){if(!r(u))throw Error(n(299));var v=!1,T="",M=cO,q=dO,le=uO,we=null;return g!=null&&(g.unstable_strictMode===!0&&(v=!0),g.identifierPrefix!==void 0&&(T=g.identifierPrefix),g.onUncaughtError!==void 0&&(M=g.onUncaughtError),g.onCaughtError!==void 0&&(q=g.onCaughtError),g.onRecoverableError!==void 0&&(le=g.onRecoverableError),g.formState!==void 0&&(we=g.formState)),p=U7(u,1,!0,p,g??null,v,T,we,M,q,le,tR),p.context=V7(null),g=p.current,v=jr(),v=Mt(v),T=Kl(v),T.callback=null,$l(g,T,v),g=v,p.current.lanes=g,nt(p,g),io(p),u[Sa]=p.current,Tj(u),new T0(p)},bh.version="19.2.1",bh}var CR;function Hoe(){if(CR)return tk.exports;CR=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),tk.exports=Goe(),tk.exports}var qoe=Hoe(),Uoe=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,a){this.keyToValue.set(t,a),this.valueToKey.set(a,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),nQ=(function(){function e(t){this.generateIdentifier=t,this.kv=new Uoe}return e.prototype.register=function(t,a){this.kv.getByValue(t)||(a||(a=this.generateIdentifier(t)),this.kv.set(a,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),Voe=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function n(){this.constructor=t}t.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}})(),Qoe=(function(e){Voe(t,e);function t(){var a=e.call(this,function(n){return n.name})||this;return a.classToAllowedProps=new Map,a}return t.prototype.register=function(a,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(a,n.allowProps),e.prototype.register.call(this,a,n.identifier)):e.prototype.register.call(this,a,n)},t.prototype.getAllowedProps=function(a){return this.classToAllowedProps.get(a)},t})(nQ),Woe=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var n=a.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return i};function Koe(e){if("values"in Object)return Object.values(e);var t=[];
49for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t}function $oe(e,t){var a=Koe(e);if("find"in a)return a.find(t);for(var n=a,r=0;r<n.length;r++){var i=n[r];if(t(i))return i}}function gm(e,t){Object.entries(e).forEach(function(a){var n=Woe(a,2),r=n[0],i=n[1];return t(i,r)})}function Dv(e,t){return e.indexOf(t)!==-1}function TR(e,t){for(var a=0;a<e.length;a++){var n=e[a];if(t(n))return n}}var Xoe=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return $oe(this.transfomers,function(a){return a.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),Yoe=function(e){return Object.prototype.toString.call(e).slice(8,-1)},sQ=function(e){return typeof e>"u"},Zoe=function(e){return e===null},Cg=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},Y5=function(e){return Cg(e)&&Object.keys(e).length===0},Ic=function(e){return Array.isArray(e)},Joe=function(e){return typeof e=="string"},ele=function(e){return typeof e=="number"&&!isNaN(e)},tle=function(e){return typeof e=="boolean"},ale=function(e){return e instanceof RegExp},Tg=function(e){return e instanceof Map},Dg=function(e){return e instanceof Set},rQ=function(e){return Yoe(e)==="Symbol"},nle=function(e){return e instanceof Date&&!isNaN(e.valueOf())},sle=function(e){return e instanceof Error},DR=function(e){return typeof e=="number"&&isNaN(e)},rle=function(e){return tle(e)||Zoe(e)||sQ(e)||ele(e)||Joe(e)||rQ(e)},ile=function(e){return typeof e=="bigint"},ole=function(e){return e===1/0||e===-1/0},lle=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},cle=function(e){return e instanceof URL},iQ=function(e){return e.replace(/\./g,"\\.")},rk=function(e){return e.map(String).map(iQ).join(".")},ag=function(e){for(var t=[],a="",n=0;n<e.length;n++){var r=e.charAt(n),i=r==="\\"&&e.charAt(n+1)===".";if(i){a+=".",n++;continue}var o=r===".";if(o){t.push(a),a="";continue}a+=r}var l=a;return t.push(l),t},Z5=function(){return Z5=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Z5.apply(this,arguments)},J5=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var n=a.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return i},eC=function(e,t){for(var a=0,n=t.length,r=e.length;a<n;a++,r++)e[r]=t[a];return e};function oo(e,t,a,n){return{isApplicable:e,annotation:t,transform:a,untransform:n}}var oQ=[oo(sQ,"undefined",function(){return null},function(){}),oo(ile,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),oo(nle,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),oo(sle,"Error",function(e,t){var a={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(n){a[n]=e[n]}),a},function(e,t){var a=new Error(e.message);return a.name=e.name,a.stack=e.stack,t.allowedErrorProps.forEach(function(n){a[n]=e[n]}),a}),oo(ale,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),oo(Dg,"set",function(e){return eC([],J5(e.values()))},function(e){return new Set(e)}),oo(Tg,"map",function(e){return eC([],J5(e.entries()))},function(e){return new Map(e)}),oo(function(e){return DR(e)||ole(e)},"number",function(e){return DR(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),oo(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),oo(cle,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function X1(e,t,a,n){return{isApplicable:e,annotation:t,transform:a,untransform:n}}var lQ=X1(function(e,t){if(rQ(e)){var a=!!t.symbolRegistry.getIdentifier(e);return a}return!1},function(e,t){var a=t.symbolRegistry.getIdentifier(e);return["symbol",a]},function(e){return e.description},function(e,t,a){var n=a.symbolRegistry.getValue(t[1]);
49if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),dle=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),cQ=X1(lle,function(e){return["typed-array",e.constructor.name]},function(e){return eC([],J5(e))},function(e,t){var a=dle[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});function dQ(e,t){if(e?.constructor){var a=!!t.classRegistry.getIdentifier(e.constructor);return a}return!1}var uQ=X1(dQ,function(e,t){var a=t.classRegistry.getIdentifier(e.constructor);return["class",a]},function(e,t){var a=t.classRegistry.getAllowedProps(e.constructor);if(!a)return Z5({},e);var n={};return a.forEach(function(r){n[r]=e[r]}),n},function(e,t,a){var n=a.classRegistry.getValue(t[1]);if(!n)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),pQ=X1(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var a=t.customTransformerRegistry.findApplicable(e);return["custom",a.name]},function(e,t){var a=t.customTransformerRegistry.findApplicable(e);return a.serialize(e)},function(e,t,a){var n=a.customTransformerRegistry.findByName(t[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),ule=[uQ,lQ,pQ,cQ],ER=function(e,t){var a=TR(ule,function(r){return r.isApplicable(e,t)});if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};var n=TR(oQ,function(r){return r.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},mQ={};oQ.forEach(function(e){mQ[e.annotation]=e});var ple=function(e,t,a){if(Ic(t))switch(t[0]){case"symbol":return lQ.untransform(e,t,a);case"class":return uQ.untransform(e,t,a);case"custom":return pQ.untransform(e,t,a);case"typed-array":return cQ.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{var n=mQ[t];if(!n)throw new Error("Unknown transformation: "+t);return n.untransform(e,a)}},Vp=function(e,t){for(var a=e.keys();t>0;)a.next(),t--;return a.next().value};function fQ(e){if(Dv(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Dv(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Dv(e,"constructor"))throw new Error("constructor is not allowed as a property")}var mle=function(e,t){fQ(t);for(var a=0;a<t.length;a++){var n=t[a];if(Dg(e))e=Vp(e,+n);else if(Tg(e)){var r=+n,i=+t[++a]==0?"key":"value",o=Vp(e,r);switch(i){case"key":e=o;break;case"value":e=e.get(o);break}}else e=e[n]}return e},tC=function(e,t,a){if(fQ(t),t.length===0)return a(e);for(var n=e,r=0;r<t.length-1;r++){var i=t[r];if(Ic(n)){var o=+i;n=n[o]}else if(Cg(n))n=n[i];else if(Dg(n)){var l=+i;n=Vp(n,l)}else if(Tg(n)){var c=r===t.length-2;if(c)break;var l=+i,d=+t[++r]==0?"key":"value",m=Vp(n,l);switch(d){case"key":n=m;break;case"value":n=n.get(m);break}}}var f=t[t.length-1];if(Ic(n)?n[+f]=a(n[+f]):Cg(n)&&(n[f]=a(n[f])),Dg(n)){var h=Vp(n,+f),x=a(h);h!==x&&(n.delete(h),n.add(x))}if(Tg(n)){var l=+t[t.length-2],b=Vp(n,l),d=+f==0?"key":"value";switch(d){case"key":{var y=a(b);n.set(y,n.get(b)),y!==b&&n.delete(b);break}case"value":{n.set(b,a(n.get(b)));break}}}return e},dl=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var n=a.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return i},Nc=function(e,t){for(var a=0,n=t.length,r=e.length;a<n;a++,r++)e[r]=t[a];return e};function aC(e,t,a){if(a===void 0&&(a=[]),!!e){if(!Ic(e)){gm(e,function(o,l){return aC(o,t,Nc(Nc([],dl(a)),dl(ag(l))))});return}var n=dl(e,2),r=n[0],i=n[1];i&&gm(i,function(o,l){aC(o,t,Nc(Nc([],dl(a)),dl(ag(l))))}),t(r,a)}}function fle(e,t,a){return aC(t,function(n,r){e=tC(e,r,function(i){return ple(i,n,a)})}),e}function hle(e,t){function a(o,l){var c=mle(e,ag(l));o.map(ag).forEach(function(d){e=tC(e,d,function(){return c})})}if(Ic(t)){var n=dl(t,2),r=n[0],i=n[1];r.forEach(function(o){e=tC(e,ag(o),function(){return e})}),i&&gm(i,a)}else gm(t,a);return e}var gle=function(e,t){return Cg(e)||Ic(e)||Tg(e)||Dg(e)||dQ(e,t)};function xle(e,t,a){var n=a.get(e);n?n.push(t):a.set(e,[t])}function ble(e,t){var a={},n=void 0;return e.forEach(function(r){if(!(r.length<=1)){t||(r=r.map(function(c){return c.map(String)}).sort(function(c,d){return c.length-d.length}));var i=dl(r),o=i[0],l=i.slice(1);o.length===0?n=l.map(rk):a[rk(o)]=l.map(rk)}}),n?Y5(a)?[n]:[n,a]:Y5(a)?void 0:a}var hQ=function(e,t,a,n,r,i,o){var l;r===void 0&&(r=[]),i===void 0&&(i=[]),o===void 0&&(o=new Map);var c=rle(e);if(!c){xle(e,r,t);var d=o.get(e);if(d)return n?{transformedValue:null}:d}if(!gle(e,a)){var m=ER(e,a),f=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:e};return c||o.set(e,f),f}if(Dv(i,e))return{transformedValue:null};var h=ER(e,a),x=(l=h?.value)!==null&&l!==void 0?l:e,b=Ic(x)?[]:{},y={};gm(x,function(j,N){var k=hQ(j,t,a,n,Nc(Nc([],dl(r)),[N]),Nc(Nc([],dl(i)),[e]),o);
49b[N]=k.transformedValue,Ic(k.annotations)?y[N]=k.annotations:Cg(k.annotations)&&gm(k.annotations,function(D,C){y[iQ(N)+"."+C]=D})});var w=Y5(y)?{transformedValue:b,annotations:h?[h.type]:void 0}:{transformedValue:b,annotations:h?[h.type,y]:y};return c||o.set(e,w),w};function gQ(e){return Object.prototype.toString.call(e).slice(8,-1)}function MR(e){return gQ(e)==="Array"}function vle(e){if(gQ(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function yle(e,t,a,n,r){const i={}.propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=a),r&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:a,enumerable:!1,writable:!0,configurable:!0})}function nC(e,t={}){if(MR(e))return e.map(r=>nC(r,t));if(!vle(e))return e;const a=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols(e);return[...a,...n].reduce((r,i)=>{if(MR(t.props)&&!t.props.includes(i))return r;const o=e[i],l=nC(o,t);return yle(r,i,l,e,t.nonenumerable),r},{})}var Ud=function(){return Ud=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ud.apply(this,arguments)},wle=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var n=a.call(e),r,i=[],o;try{for(;(t===void 0||t-- >0)&&!(r=n.next()).done;)i.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(o)throw o.error}}return i},Ple=function(e,t){for(var a=0,n=t.length,r=e.length;a<n;a++,r++)e[r]=t[a];return e},Ml=(function(){function e(t){var a=t===void 0?{}:t,n=a.dedupe,r=n===void 0?!1:n;this.classRegistry=new Qoe,this.symbolRegistry=new nQ(function(i){var o;return(o=i.description)!==null&&o!==void 0?o:""}),this.customTransformerRegistry=new Xoe,this.allowedErrorProps=[],this.dedupe=r}return e.prototype.serialize=function(t){var a=new Map,n=hQ(t,a,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta=Ud(Ud({},r.meta),{values:n.annotations}));var i=ble(a,this.dedupe);return i&&(r.meta=Ud(Ud({},r.meta),{referentialEqualities:i})),r},e.prototype.deserialize=function(t){var a=t.json,n=t.meta,r=nC(a);return n?.values&&(r=fle(r,n.values,this)),n?.referentialEqualities&&(r=hle(r,n.referentialEqualities)),r},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,a){this.classRegistry.register(t,a)},e.prototype.registerSymbol=function(t,a){this.symbolRegistry.register(t,a)},e.prototype.registerCustom=function(t,a){this.customTransformerRegistry.register(Ud({name:a},t))},e.prototype.allowErrorProps=function(){for(var t,a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];(t=this.allowedErrorProps).push.apply(t,Ple([],wle(a)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();Ml.serialize;Ml.deserialize;Ml.stringify;Ml.parse;Ml.registerClass;Ml.registerCustom;Ml.registerSymbol;Ml.allowErrorProps;var jle=(e,t,a,n,r,i,o,l)=>{let c=document.documentElement,d=["light","dark"];function m(x){(Array.isArray(e)?e:[e]).forEach(b=>{let y=b==="class",w=y&&i?r.map(j=>i[j]||j):r;y?(c.classList.remove(...w),c.classList.add(i&&i[x]?i[x]:x)):c.setAttribute(b,x)}),f(x)}function f(x){l&&d.includes(x)&&(c.style.colorScheme=x)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)m(n);else try{let x=localStorage.getItem(t)||a,b=o&&x==="system"?h():x;m(b)}catch{}},kle=P.createContext(void 0),Nle={setTheme:e=>{},themes:[]},Ale=()=>{var e;return(e=P.useContext(kle))!=null?e:Nle};P.memo(({forcedTheme:e,storageKey:t,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:i,value:o,themes:l,nonce:c,scriptProps:d})=>{let m=JSON.stringify([a,t,i,e,l,o,n,r]).slice(1,-1);return P.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${jle.toString()})(${m})`}})});var Hx=aQ();const xQ=Fa(Hx);function Sle(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}const Cle=e=>{switch(e){case"success":return Ele;case"info":return Ole;case"warning":return Mle;case"error":return Rle;default:return null}},Tle=Array(12).fill(0),Dle=({visible:e,className:t})=>ie.createElement("div",{className:["sonner-loading-wrapper",t].filter(
vendor: 6,059 bytes, line 49
49Boolean).join(" "),"data-visible":e},ie.createElement("div",{className:"sonner-spinner"},Tle.map((a,n)=>ie.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),Ele=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ie.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"})),Mle=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ie.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"})),Ole=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ie.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"})),Rle=ie.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ie.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"})),zle=ie.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"},ie.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ie.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_le=()=>{const[e,t]=ie.useState(document.hidden);return ie.useEffect(()=>{const a=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),e};let sC=1;class Ile{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const a=this.subscribers.indexOf(t);this.subscribers.splice(a,1)}),this.publish=t=>{this.subscribers.forEach(a=>a(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var a;const{message:n,...r}=t,i=typeof t?.id=="number"||((a=t.id)==null?void 0:a.length)>0?t.id:sC++,o=this.toasts.find(c=>c.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...t,id:i,title:n}),{...c,...t,id:i,dismissible:l,title:n}):c):this.addToast({title:n,...r,dismissible:l,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:t,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(n=>n({id:a.id,dismiss:!0}))}),t),this.message=(t,a)=>this.create({...a,message:t}),this.error=(t,a)=>this.create({...a,message:t,type:"error"}),this.success=(t,a)=>this.create({...a,type:"success",message:t}),this.info=(t,a)=>this.create({...a,type:"info",message:t}),this.warning=(t,a)=>this.create({...a,type:"warning",message:t}),this.loading=(t,a)=>this.create({...a,type:"loading",message:t}),this.promise=(t,a)=>{if(!a)return;let n;a.loading!==void 0&&(n=this.create({...a,promise:t,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const r=Promise.resolve(t instanceof Function?t():t);let i=n!==void 0,o;const l=r.then(async d=>{if(o=["resolve",d],ie.isValidElement(d))i=!1,this.create({id:n,type:"default",message:d});else if(Fle(d)&&!d.ok){i=!1;const f=typeof a.error=="function"?await a.error(`HTTP error! status: ${d.status}`):a.error,h=typeof a.description=="function"?await a.description(`HTTP error! status: ${d.status}`):a.description,b=typeof f=="object"&&!ie.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:h,...b})}else if(d instanceof Error){i=!1;const f=typeof a.error=="function"?await a.error(d):a.error,h=typeof a.description=="function"?await a.description(d):a.description,b=typeof f=="object"&&!ie.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:h,...b})}else if(a.success!==void 0){i=!1;const f=typeof a.success=="function"?await a.success(d):a.success,h=typeof a.description=="function"?await a.description(d):a.description,b=typeof f=="object"&&!ie.isValidElement(f)?f:{message:f};this.create({id:n,type:"success",description:h,...b})}}).catch(async d=>{if(o=["reject",d],a.error!==void 0){i=!1;const m=typeof a.error=="function"?await a.error(d):a.error,f=typeof a.description=="function"?await a.description(d):a.description,x=typeof m=="object"&&!ie.isValidElement(m)?m:{message:m};this.create({id:n,type:"error",description:f,...x})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),a.finally==null||a.finally.call(a)}),c=()=>new Promise((d,m)=>l.then(()=>o[0]==="reject"?m(o[1]):d(o[1])).catch(m));return typeof n!="string"&&typeof n!="number"?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(t,a)=>{const n=a?.id||sC++;return this.create({jsx:t(n),id:n,...a}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const lr=new Ile,Lle=(e,t)=>{const a=t?.id||sC++;return lr.addToast({title:e,...t,id:a}),a},Fle=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Ble=Lle,Gle=()=>lr.toasts,Hle=()=>lr.getActiveToasts(),re=Object.assign(Ble,{success:lr.success,info:lr.info,warning:lr.warning,error:lr.error,custom:lr.custom,message:lr.message,promise:lr.promise,dismiss:lr.dismiss,loading:lr.loading},{getHistory:Gle,getToasts:Hle});Sl
vendor: 14,874 bytes, line 49
49e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
vendor: 1,339 bytes, line 49
49_0(e){return e.label!==void 0}const qle=3,Ule="24px",Vle="16px",OR=4e3,Qle=356,Wle=14,Kle=45,$le=200;function lo(...e){return e.filter(Boolean).join(" ")}function Xle(e){const[t,a]=e.split("-"),n=[];return t&&n.push(t),a&&n.push(a),n}const Yle=e=>{var t,a,n,r,i,o,l,c,d;const{invert:m,toast:f,unstyled:h,interacting:x,setHeights:b,visibleToasts:y,heights:w,index:j,toasts:N,expanded:k,removeToast:D,defaultRichColors:C,closeButton:S,style:A,cancelButtonStyle:E,actionButtonStyle:R,className:F="",descriptionClassName:I="",duration:H,position:_,gap:V,expandByDefault:W,classNames:B,icons:K,closeButtonAriaLabel:ae="Close toast"}=e,[$,Z]=ie.useState(null),[O,Y]=ie.useState(null),[Q,U]=ie.useState(!1),[oe,X]=ie.useState(!1),[ne,ge]=ie.useState(!1),[me,Ae]=ie.useState(!1),[Pe,L]=ie.useState(!1),[ke,Me]=ie.useState(0),[Ze,Ce]=ie.useState(0),Te=ie.useRef(f.duration||H||OR),Ke=ie.useRef(null),Ve=ie.useRef(null),ht=j===0,pe=j+1<=y,et=f.type,xe=f.dismissible!==!1,it=f.className||"",Tt=f.descriptionClassName||"",bt=ie.useMemo(()=>w.findIndex(fe=>fe.toastId===f.id)||0,[w,f.id]),vt=ie.useMemo(()=>{var fe;return(fe=f.closeButton)!=null?fe:S},[f.closeButton,S]),St=ie.useMemo(()=>f.duration||H||OR,[f.duration,H]),de=ie.useRef(0),be=ie.useRef(0),G=ie.useRef(0),je=ie.useRef(null),[ze,Qe]=_.split("-"),ye=ie.useMemo(()=>w.reduce((fe,Se,ot)=>ot>
vendor: 7,645 bytes, line 49
49=bt?fe:fe+Se.height,0),[w,bt]),Ee=_le(),te=f.invert||m,We=et==="loading";be.current=ie.useMemo(()=>bt*V+ye,[bt,ye]),ie.useEffect(()=>{Te.current=St},[St]),ie.useEffect(()=>{U(!0)},[]),ie.useEffect(()=>{const fe=Ve.current;if(fe){const Se=fe.getBoundingClientRect().height;return Ce(Se),b(ot=>[{toastId:f.id,height:Se,position:f.position},...ot]),()=>b(ot=>ot.filter(lt=>lt.toastId!==f.id))}},[b,f.id]),ie.useLayoutEffect(()=>{if(!Q)return;const fe=Ve.current,Se=fe.style.height;fe.style.height="auto";const ot=fe.getBoundingClientRect().height;fe.style.height=Se,Ce(ot),b(lt=>lt.find(nt=>nt.toastId===f.id)?lt.map(nt=>nt.toastId===f.id?{...nt,height:ot}:nt):[{toastId:f.id,height:ot,position:f.position},...lt])},[Q,f.title,f.description,b,f.id,f.jsx,f.action,f.cancel]);const mt=ie.useCallback(()=>{X(!0),Me(be.current),b(fe=>fe.filter(Se=>Se.toastId!==f.id)),setTimeout(()=>{D(f)},$le)},[f,D,b,be]);ie.useEffect(()=>{if(f.promise&&et==="loading"||f.duration===1/0||f.type==="loading")return;let fe;return k||x||Ee?(()=>{if(G.current<de.current){const lt=new Date().getTime()-de.current;Te.current=Te.current-lt}G.current=new Date().getTime()})():(()=>{Te.current!==1/0&&(de.current=new Date().getTime(),fe=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),mt()},Te.current))})(),()=>clearTimeout(fe)},[k,x,f,et,Ee,mt]),ie.useEffect(()=>{f.delete&&(mt(),f.onDismiss==null||f.onDismiss.call(f,f))},[mt,f.delete]);function z(){var fe;if(K?.loading){var Se;return ie.createElement("div",{className:lo(B?.loader,f==null||(Se=f.classNames)==null?void 0:Se.loader,"sonner-loader"),"data-visible":et==="loading"},K.loading)}return ie.createElement(Dle,{className:lo(B?.loader,f==null||(fe=f.classNames)==null?void 0:fe.loader),visible:et==="loading"})}const _e=f.icon||K?.[et]||Cle(et);var ce,se;return ie.createElement("li",{tabIndex:0,ref:Ve,className:lo(F,it,B?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,B?.default,B?.[et],f==null||(a=f.classNames)==null?void 0:a[et]),"data-sonner-toast":"","data-rich-colors":(ce=f.richColors)!=null?ce:C,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":Q,"data-promise":!!f.promise,"data-swiped":Pe,"data-removed":oe,"data-visible":pe,"data-y-position":ze,"data-x-position":Qe,"data-index":j,"data-front":ht,"data-swiping":ne,"data-dismissible":xe,"data-type":et,"data-invert":te,"data-swipe-out":me,"data-swipe-direction":O,"data-expanded":!!(k||W&&Q),"data-testid":f.testId,style:{"--index":j,"--toasts-before":j,"--z-index":N.length-j,"--offset":`${oe?ke:be.current}px`,"--initial-height":W?"auto":`${Ze}px`,...A,...f.style},onDragEnd:()=>{ge(!1),Z(null),je.current=null},onPointerDown:fe=>{fe.button!==2&&(We||!xe||(Ke.current=new Date,Me(be.current),fe.target.setPointerCapture(fe.pointerId),fe.target.tagName!=="BUTTON"&&(ge(!0),je.current={x:fe.clientX,y:fe.clientY})))},onPointerUp:()=>{var fe,Se,ot;if(me||!xe)return;je.current=null;const lt=Number(((fe=Ve.current)==null?void 0:fe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Le=Number(((Se=Ve.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nt=new Date().getTime()-((ot=Ke.current)==null?void 0:ot.getTime()),gt=$==="x"?lt:Le,yt=Math.abs(gt)/nt;if(Math.abs(gt)>=Kle||yt>.11){Me(be.current),f.onDismiss==null||f.onDismiss.call(f,f),Y($==="x"?lt>0?"right":"left":Le>0?"down":"up"),mt(),Ae(!0);return}else{var rt,xt;(rt=Ve.current)==null||rt.style.setProperty("--swipe-amount-x","0px"),(xt=Ve.current)==null||xt.style.setProperty("--swipe-amount-y","0px")}L(!1),ge(!1),Z(null)},onPointerMove:fe=>{var Se,ot,lt;if(!je.current||!xe||((Se=window.getSelection())==null?void 0:Se.toString().length)>0)return;const nt=fe.clientY-je.current.y,gt=fe.clientX-je.current.x;var yt;const rt=(yt=e.swipeDirections)!=null?yt:Xle(_);!$&&(Math.abs(gt)>1||Math.abs(nt)>1)&&Z(Math.abs(gt)>Math.abs(nt)?"x":"y");let xt={x:0,y:0};const Mt=ee=>1/(1.5+Math.abs(ee)/20);if($==="y"){if(rt.includes("top")||rt.includes("bottom"))if(rt.includes("top")&&nt<0||rt.includes("bottom")&&nt>0)xt.y=nt;else{const ee=nt*Mt(nt);xt.y=Math.abs(ee)<Math.abs(nt)?ee:nt}}else if($==="x"&&(rt.includes("left")||rt.includes("right")))if(rt.includes("left")&><0||rt.includes("right")&>>0)xt.x=gt;else{const ee=gt*Mt(gt);xt.x=Math.abs(ee)<Math.abs(gt)?ee:gt}(Math.abs(xt.x)>0||Math.abs(xt.y)>0)&&L(!0),(ot=Ve.current)==null||ot.style.setProperty("--swipe-amount-x",`${xt.x}px`),(lt=Ve.current)==null||lt.style.setProperty("--swipe-amount-y",`${xt.y}px`)}},vt&&!f.jsx&&et!=="loading"?ie.createElement("button",{"aria-label":ae,"data-disabled":We,"data-close-button":!0,onClick:We||!xe?()=>{}:()=>{mt(),f.onDismiss==null||f.onDismiss.call(f,f)},className:lo(B?.closeButton,f==null||(n=f.classNames)==null?void 0:n.closeButton)},(se=K?.close)!=null?se:zle):null,(et||f.icon||f.promise)&&f.icon!==null&&(K?.[et]!==null||f.icon)?ie.createElement("div",{"data-icon":"",className:lo(B?.icon,f==null||(r=f.classNames)==null?void 0:r.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||z():null,f.type!=="loading"?_e:null):null,ie.createElement("div",{"data-content":"",className:lo(B?.content,f==null||(i=f.classNames)==null?void 0:i.content)},ie.createElement("div",{"data-title":"",className:lo(B?.title,f==null||(o=f.classNames)==null?void 0:o.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?ie.createElement("div",{"data-description":"",className:lo(I,Tt,B?.description,f==null||(l=f.classNames)==null?void 0:l.description)},typeof f.description=="function"?f.description():f.description):null),ie.isValidElement(f.cancel)?f.cancel:f.cancel&&_0(f.cancel)?ie.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||E,onClick:fe=>{_0(f.cancel)&&xe&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,fe),mt())},className:lo(B?.cancelButton,f==null||(c=f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,ie.isValidElement(f.action)?f.action:f.action&&_0(f.action)?ie.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||R,onClick:fe=>{_0(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,fe),!fe.defaultPrevented&&mt())},className:lo(B?.actionButton,f==null||(d=f.classNames)==null?void 0:d.actionButton)},f.action.label):null)};function RR(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Zle(e,t){const a={};return[e,t].forEach((n,r)=>{const i=r===1,o=i?"--mobile-offset":"--offset",l=i?Vle:Ule;function c(d){["top","right","bottom","left"].forEach(m=>{a[`${o}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(d=>{n[d]===void 0?a[`${o}-${d}`]=l:a[`${o}-${d}`]=typeof n[d]=="number"?`${n[d]}px`:n[d]}):c(l)}),a}const Jle=ie.forwardRef(function(t,a){const{id:n,invert:r,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:l,closeButton:c,className:d,offset:m,mobileOffset:f,theme:h="light",richColors:x,duration:b,style:y,visibleToasts:w=qle,toastOptions:j,dir:N=RR(),gap:k=Wle,icons:D,containerAriaLabel:C="Notifications"}=t,[S,A]=ie.useState([]),E=ie.useMemo(()=>n?S.filter(Q=>Q.toasterId===n):S.filter(Q=>!Q.toasterId),[S,n]),R=ie.useMemo(()=>Array.from(new Set([i].concat(E.filter(Q=>Q.position).map(Q=>Q.position)))),[E,i]),[F,I]=ie.useState([]),[H,_]=ie.useState(!1),[V,W]=ie.useState(!1),[B,K]=ie.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
49k":"light"),ae=ie.useRef(null),$=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=ie.useRef(null),O=ie.useRef(!1),Y=ie.useCallback(Q=>{A(U=>{var oe;return(oe=U.find(X=>X.id===Q.id))!=null&&oe.delete||lr.dismiss(Q.id),U.filter(({id:X})=>X!==Q.id)})},[]);return ie.useEffect(()=>lr.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{A(U=>U.map(oe=>oe.id===Q.id?{...oe,delete:!0}:oe))});return}setTimeout(()=>{xQ.flushSync(()=>{A(U=>{const oe=U.findIndex(X=>X.id===Q.id);return oe!==-1?[...U.slice(0,oe),{...U[oe],...Q},...U.slice(oe+1)]:[Q,...U]})})})}),[S]),ie.useEffect(()=>{if(h!=="system"){K(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:U})=>{K(U?"dark":"light")})}catch{Q.addListener(({matches:oe})=>{try{K(oe?"dark":"light")}catch(X){console.error(X)}})}},[h]),ie.useEffect(()=>{S.length<=1&&_(!1)},[S]),ie.useEffect(()=>{const Q=U=>{var oe;if(o.every(ge=>U[ge]||U.code===ge)){var ne;_(!0),(ne=ae.current)==null||ne.focus()}U.code==="Escape"&&(document.activeElement===ae.current||(oe=ae.current)!=null&&oe.contains(document.activeElement))&&_(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[o]),ie.useEffect(()=>{if(ae.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,O.current=!1)}},[ae.current]),ie.createElement("section",{ref:a,"aria-label":`${C} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((Q,U)=>{var oe;const[X,ne]=Q.split("-");return E.length?ie.createElement("ol",{key:Q,dir:N==="auto"?RR():N,tabIndex:-1,ref:ae,className:d,"data-sonner-toaster":!0,"data-sonner-theme":B,"data-y-position":X,"data-x-position":ne,style:{"--front-toast-height":`${((oe=F[0])==null?void 0:oe.height)||0}px`,"--width":`${Qle}px`,"--gap":`${k}px`,...y,...Zle(m,f)},onBlur:ge=>{O.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(O.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||O.current||(O.current=!0,Z.current=ge.relatedTarget)},onMouseEnter:()=>_(!0),onMouseMove:()=>_(!0),onMouseLeave:()=>{V||_(!1)},onDragEnd:()=>_(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},E.filter(ge=>!ge.position&&U===0||ge.position===Q).map((ge,me)=>{var Ae,Pe;return ie.createElement(Yle,{key:ge.id,icons:D,index:me,toast:ge,defaultRichColors:x,duration:(Ae=j?.duration)!=null?Ae:b,className:j?.className,descriptionClassName:j?.descriptionClassName,invert:r,visibleToasts:w,closeButton:(Pe=j?.closeButton)!=null?Pe:c,interacting:V,position:Q,style:j?.style,unstyled:j?.unstyled,classNames:j?.classNames,cancelButtonStyle:j?.cancelButtonStyle,actionButtonStyle:j?.actionButtonStyle,closeButtonAriaLabel:j?.closeButtonAriaLabel,removeToast:Y,toasts:E.filter(L=>L.position==ge.position),heights:F.filter(L=>L.position==ge.position),setHeights:I,expandByDefault:l,gap:k,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),ece=({...e})=>{const{theme:t="system"}=Ale();return s.jsx(Jle,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Nt(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}function zR(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y1(...e){return t=>{let a=!1;const n=e.map(r=>{const i=zR(r,t);return!a&&typeof i=="function"&&(a=!0),i});if(a)return()=>{for(let r=0;r<n.length;r++){const i=n[r];typeof i=="function"?i():zR(e[r],null)}}}}function Va(...e){return P.useCallback(Y1(...e),e)}function tce(e,t){const a=P.createContext(t),n=i=>{const{children:o,...l}=i,c=P.useMemo(()=>l,Object.values(l));return s.jsx(a.Provider,{value:c,children:o})};n.displayName=e+"Provider";function r(i){const o=P.useContext(a);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,r]}function Pi(e,t=[]){let a=[];function n(i,o){const l=P.createContext(o),c=a.length;a=[...a,o];const d=f=>{const{scope:h,children:x,...b}=f,y=h?.[e]?.[c]||l,w=P.useMemo(()=>b,Object.values(b));return s.jsx(y.Provider,{value:w,children:x})};d.displayName=i+"Provider";function m(f,h){const x=h?.[e]?.[c]||l,b=P.useContext(x);if(b)return b;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[d,m]}const r=()=>{const i=a.map(o=>P.createContext(o));return function(l){const c=l?.[e]||i;return P.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return r.scopeName=e,[n,ace(r,...t)]}function ace(...e){const t=e[0];if(e.length===1)return t;const a=()=>{const n=e.map(r=>({useScope:r(),scopeName:r.scopeName}));
vendor: 9,132 bytes, line 49
49return function(i){const o=n.reduce((l,{useScope:c,scopeName:d})=>{const f=c(i)[`__scope${d}`];return{...l,...f}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return a.scopeName=t.scopeName,a}function pu(e){const t=nce(e),a=P.forwardRef((n,r)=>{const{children:i,...o}=n,l=P.Children.toArray(i),c=l.find(sce);if(c){const d=c.props.children,m=l.map(f=>f===c?P.Children.count(d)>1?P.Children.only(null):P.isValidElement(d)?d.props.children:null:f);return s.jsx(t,{...o,ref:r,children:P.isValidElement(d)?P.cloneElement(d,void 0,m):null})}return s.jsx(t,{...o,ref:r,children:i})});return a.displayName=`${e}.Slot`,a}var e6=pu("Slot");function nce(e){const t=P.forwardRef((a,n)=>{const{children:r,...i}=a;if(P.isValidElement(r)){const o=ice(r),l=rce(i,r.props);return r.type!==P.Fragment&&(l.ref=n?Y1(n,o):o),P.cloneElement(r,l)}return P.Children.count(r)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bQ=Symbol("radix.slottable");function vQ(e){const t=({children:a})=>s.jsx(s.Fragment,{children:a});return t.displayName=`${e}.Slottable`,t.__radixId=bQ,t}function sce(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bQ}function rce(e,t){const a={...t};for(const n in t){const r=e[n],i=t[n];/^on[A-Z]/.test(n)?r&&i?a[n]=(...l)=>{const c=i(...l);return r(...l),c}:r&&(a[n]=r):n==="style"?a[n]={...r,...i}:n==="className"&&(a[n]=[r,i].filter(Boolean).join(" "))}return{...e,...a}}function ice(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var oce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=oce.reduce((e,t)=>{const a=pu(`Primitive.${t}`),n=P.forwardRef((r,i)=>{const{asChild:o,...l}=r,c=o?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function yQ(e,t){e&&Hx.flushSync(()=>e.dispatchEvent(t))}function $i(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...a)=>t.current?.(...a),[])}function lce(e,t=globalThis?.document){const a=$i(e);P.useEffect(()=>{const n=r=>{r.key==="Escape"&&a(r)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[a,t])}var cce="DismissableLayer",rC="dismissableLayer.update",dce="dismissableLayer.pointerDownOutside",uce="dismissableLayer.focusOutside",_R,wQ=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qx=P.forwardRef((e,t)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:n,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,d=P.useContext(wQ),[m,f]=P.useState(null),h=m?.ownerDocument??globalThis?.document,[,x]=P.useState({}),b=Va(t,A=>f(A)),y=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),j=y.indexOf(w),N=m?y.indexOf(m):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,D=N>=j,C=fce(A=>{const E=A.target,R=[...d.branches].some(F=>F.contains(E));!D||R||(r?.(A),o?.(A),A.defaultPrevented||l?.())},h),S=hce(A=>{const E=A.target;[...d.branches].some(F=>F.contains(E))||(i?.(A),o?.(A),A.defaultPrevented||l?.())},h);return lce(A=>{N===d.layers.size-1&&(n?.(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},h),P.useEffect(()=>{if(m)return a&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(_R=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),IR(),()=>{a&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=_R)}},[m,h,a,d]),P.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),IR())},[m,d]),P.useEffect(()=>{const A=()=>x({});return document.addEventListener(rC,A),()=>document.removeEventListener(rC,A)},[]),s.jsx(Zt.div,{...c,ref:b,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:Nt(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Nt(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Nt(e.onPointerDownCapture,C.onPointerDownCapture)})});qx.displayName=cce;var pce="DismissableLayerBranch",mce=P.forwardRef((e,t)=>{const a=P.useContext(wQ),n=P.useRef(null),r=Va(t,n);return P.useEffect(()=>{const i=n.current;if(i)return a.branches.add(i),()=>{a.branches.delete(i)}},[a.branches]),s.jsx(Zt.div,{...e,ref:r})});mce.displayName=pce;function fce(e,t=globalThis?.document){const a=$i(e),n=P.useRef(!1),r=P.useRef(()=>{});return P.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let c=function(){PQ(dce,a,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",r.current)}},[t,a]),{onPointerDownCapture:()=>n.current=!0}}function hce(e,t=globalThis?.document){const a=$i(e),n=P.useRef(!1);return P.useEffect(()=>{const r=i=>{i.target&&!n.current&&PQ(uce,a,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,a]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function IR(){const e=new CustomEvent(rC);document.dispatchEvent(e)}function PQ(e,t,a,{discrete:n}){const r=a.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&r.addEventListener(e,t,{once:!0}),n?yQ(r,i):r.dispatchEvent(i)}var os=globalThis?.document?P.useLayoutEffect:()=>{},gce=U1[" useId ".trim().toString()]||(()=>{}),xce=0;function Vi(e){const[t,a]=P.useState(gce());return os(()=>{a(n=>n??String(xce++))},[e]),e||(t?`radix-${t}`:"")}const bce=["top","right","bottom","left"],Lc=Math.min,Cr=Math.max,ay=Math.round,I0=Math.floor,bo=e=>({x:e,y:e}),vce={left:"right",right:"left",bottom:"top",top:"bottom"},yce={start:"end",end:"start"};function iC(e,t,a){return Cr(e,Lc(t,a))}function kl(e,t){return typeof e=="function"?e(t):e}function Nl(e){return e.split("-")[0]}function ef(e){return e.split("-")[1]}function t6(e){return e==="x"?"y":"x"}function a6(e){return e==="y"?"height":"width"}const wce=new Set(["top","bottom"]);function ho(e){return wce.has(Nl(e))?"y":"x"}function n6(e){return t6(ho(e))}function Pce(e,t,a){a===void 0&&(a=!1);const n=ef(e),r=n6(e),i=a6(r);let o=r==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ny(o)),[o,ny(o)]}function jce(e){const t=ny(e);return[oC(e),t,oC(t)]}function oC(e){return e.replace(/start|end/g,t=>yce[t])}const LR=["left","right"],FR=["right","left"],kce=["top","bottom"],Nce=["bottom","top"];function Ace(e,t,a){switch(e){case"top":case"bottom":return a?t?FR:LR:t?LR:FR;case"left":case"right":return t?kce:Nce;default:return[]}}function Sce(e,t,a,n){const r=ef(e);let i=Ace(Nl(e),a==="start",n);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(oC)))),i}function ny(e){return e.replace(/left|right|bottom|top/g,t=>vce[t])}function Cce(e){return{top:0,right:0,bottom:0,left:0,...e}}function jQ(e){return typeof e!="number"?Cce(e):{top:e,right:e,bottom:e,left:e}}function sy(e){const{x:t,y:a,width:n,height:r}=e;return{width:n,height:r,top:a,left:t,right:t+n,bottom:a+r,x:t,y:a}}function BR(e,t,a){let{reference:n,floating:r}=e;const i=ho(t),o=n6(t),l=a6(o),c=Nl(t),d=i==="y",m=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,h=n[l]/2-r[l]/2;let x;switch(c){case"top":x={x:m,y:n.y-r.height};break;case"bottom":x={x:m,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:f};break;case"left":x={x:n.x-r.width,y:f};break;default:x={x:n.x,y:n.y}}switch(ef(t)){case"start":x[o]-=h*(a&&d?-1:1);break;case"end":x[o]+=h*(a&&d?-1:1);break}return x}const Tce=async(e,t,a)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o}=a,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:m,y:f}=BR(d,n,c),h=n,x={},b=0;for(let y=0;y<l.length;y++){const{name:w,fn:j}=l[y],{x:N,y:k,data:D,reset:C}=await j({x:m,y:f,initialPlacement:n,placement:h,strategy:r,middlewareData:x,rects:d,platform:o,elements:{reference:e,floating:t}});m=N??m,f=k??f,x={...x,[w]:{...x[w],...D}},C&&b<=50&&(b++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(d=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):C.rects),{x:m,y:f}=BR(d,h,c)),y=-1)}return{x:m,y:f,placement:h,strategy:r,middlewareData:x}};async function Eg(e,t){var a;t===void 0&&(t={});const{x:n,y:r,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:h=!1,padding:x=0}=kl(t,e),b=jQ(x),w=l[h?f==="floating"?"reference":"floating":f],j=sy(await i.getClippingRect
vendor: 13,196 bytes, line 49
49({element:(a=await(i.isElement==null?void 0:i.isElement(w)))==null||a?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:m,strategy:c})),N=f==="floating"?{x:n,y:r,width:o.floating.width,height:o.floating.height}:o.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),D=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},C=sy(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:k,strategy:c}):N);return{top:(j.top-C.top+b.top)/D.y,bottom:(C.bottom-j.bottom+b.bottom)/D.y,left:(j.left-C.left+b.left)/D.x,right:(C.right-j.right+b.right)/D.x}}const Dce=e=>({name:"arrow",options:e,async fn(t){const{x:a,y:n,placement:r,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:d,padding:m=0}=kl(e,t)||{};if(d==null)return{};const f=jQ(m),h={x:a,y:n},x=n6(r),b=a6(x),y=await o.getDimensions(d),w=x==="y",j=w?"top":"left",N=w?"bottom":"right",k=w?"clientHeight":"clientWidth",D=i.reference[b]+i.reference[x]-h[x]-i.floating[b],C=h[x]-i.reference[x],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let A=S?S[k]:0;(!A||!await(o.isElement==null?void 0:o.isElement(S)))&&(A=l.floating[k]||i.floating[b]);const E=D/2-C/2,R=A/2-y[b]/2-1,F=Lc(f[j],R),I=Lc(f[N],R),H=F,_=A-y[b]-I,V=A/2-y[b]/2+E,W=iC(H,V,_),B=!c.arrow&&ef(r)!=null&&V!==W&&i.reference[b]/2-(V<H?F:I)-y[b]/2<0,K=B?V<H?V-H:V-_:0;return{[x]:h[x]+K,data:{[x]:W,centerOffset:V-W-K,...B&&{alignmentOffset:K}},reset:B}}}),Ece=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,n;const{placement:r,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...w}=kl(e,t);if((a=i.arrow)!=null&&a.alignmentOffset)return{};const j=Nl(r),N=ho(l),k=Nl(l)===l,D=await(c.isRTL==null?void 0:c.isRTL(d.floating)),C=h||(k||!y?[ny(l)]:jce(l)),S=b!=="none";!h&&S&&C.push(...Sce(l,y,b,D));const A=[l,...C],E=await Eg(t,w),R=[];let F=((n=i.flip)==null?void 0:n.overflows)||[];if(m&&R.push(E[j]),f){const V=Pce(r,o,D);R.push(E[V[0]],E[V[1]])}if(F=[...F,{placement:r,overflows:R}],!R.every(V=>V<=0)){var I,H;const V=(((I=i.flip)==null?void 0:I.index)||0)+1,W=A[V];if(W&&(!(f==="alignment"?N!==ho(W):!1)||F.every(ae=>ho(ae.placement)===N?ae.overflows[0]>0:!0)))return{data:{index:V,overflows:F},reset:{placement:W}};let B=(H=F.filter(K=>K.overflows[0]<=0).sort((K,ae)=>K.overflows[1]-ae.overflows[1])[0])==null?void 0:H.placement;if(!B)switch(x){case"bestFit":{var _;const K=(_=F.filter(ae=>{if(S){const $=ho(ae.placement);return $===N||$==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter($=>$>0).reduce(($,Z)=>$+Z,0)]).sort((ae,$)=>ae[1]-$[1])[0])==null?void 0:_[0];K&&(B=K);break}case"initialPlacement":B=l;break}if(r!==B)return{reset:{placement:B}}}return{}}}};function GR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function HR(e){return bce.some(t=>e[t]>=0)}const Mce=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a}=t,{strategy:n="referenceHidden",...r}=kl(e,t);switch(n){case"referenceHidden":{const i=await Eg(t,{...r,elementContext:"reference"}),o=GR(i,a.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:HR(o)}}}case"escaped":{const i=await Eg(t,{...r,altBoundary:!0}),o=GR(i,a.floating);return{data:{escapedOffsets:o,escaped:HR(o)}}}default:return{}}}}},kQ=new Set(["left","top"]);async function Oce(e,t){const{placement:a,platform:n,elements:r}=e,i=await(n.isRTL==null?void 0:n.isRTL(r.floating)),o=Nl(a),l=ef(a),c=ho(a)==="y",d=kQ.has(o)?-1:1,m=i&&c?-1:1,f=kl(t,e);let{mainAxis:h,crossAxis:x,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof b=="number"&&(x=l==="end"?b*-1:b),c?{x:x*m,y:h*d}:{x:h*d,y:x*m}}const Rce=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,n;const{x:r,y:i,placement:o,middlewareData:l}=t,c=await Oce(t,e);return o===((a=l.offset)==null?void 0:a.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},zce=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:n,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:w=>{let{x:j,y:N}=w;return{x:j,y:N}}},...c}=kl(e,t),d={x:a,y:n},m=await Eg(t,c),f=ho(Nl(r)),h=t6(f);let x=d[h],b=d[f];if(i){const w=h==="y"?"top":"left",j=h==="y"?"bottom":"right",N=x+m[w],k=x-m[j];x=iC(N,x,k)}if(o){const w=f==="y"?"top":"left",j=f==="y"?"bottom":"right",N=b+m[w],k=b-m[j];b=iC(N,b,k)}const y=l.fn({...t,[h]:x,[f]:b});return{...y,data:{x:y.x-a,y:y.y-n,enabled:{[h]:i,[f]:o}}}}}},_ce=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:n,placement:r,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=kl(e,t),m={x:a,y:n},f=ho(r),h=t6(f);let x=m[h],b=m[f];const y=kl(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const k=h==="y"?"height":"width",D=i.reference[h]-i.floating[k]+w.mainAxis,C=i.reference[h]+i.reference[k]-w.mainAxis;x<D?x=D:x>C&&(x=C)}if(d){var j,N;const k=h==="y"?"width":"height",D=kQ.has(Nl(r)),C=i.reference[f]-i.floating[k]+(D&&((j=o.offset)==null?void 0:j[f])||0)+(D?0:w.crossAxis),S=i.reference[f]+i.reference[k]+(D?0:((N=o.offset)==null?void 0:N[f])||0)-(D?w.crossAxis:0);b<C?b=C:b>S&&(b=S)}return{[h]:x,[f]:b}}}},Ice=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,n;const{placement:r,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...d}=kl(e,t),m=await Eg(t,d),f=Nl(r),h=ef(r),x=ho(r)==="y",{width:b,height:y}=i.floating;let w,j;f==="top"||f==="bottom"?(w=f,j=h===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(j=f,w=h==="end"?"top":"bottom");const N=y-m.top-m.bottom,k=b-m.left-m.right,D=Lc(y-m[w],N),C=Lc(b-m[j],k),S=!t.middlewareData.shift;let A=D,E=C;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(E=k),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=N),S&&!h){const F=Cr(m.left,0),I=Cr(m.right,0),H=Cr(m.top,0),_=Cr(m.bottom,0);x?E=b-2*(F!==0||I!==0?F+I:Cr(m.left,m.right)):A=y-2*(H!==0||_!==0?H+_:Cr(m.top,m.bottom))}await c({...t,availableWidth:E,availableHeight:A});const R=await o.getDimensions(l.floating);return b!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function Z1(){return typeof window<"u"}function tf(e){return NQ(e)?(e.nodeName||"").toLowerCase():"#document"}function Or(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Do(e){var t;return(t=(NQ(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function NQ(e){return Z1()?e instanceof Node||e instanceof Or(e).Node:!1}function Xi(e){return Z1()?e instanceof Element||e instanceof Or(e).Element:!1}function No(e){return Z1()?e instanceof HTMLElement||e instanceof Or(e).HTMLElement:!1}function qR(e){return!Z1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Or(e).ShadowRoot}const Lce=new Set(["inline","contents"]);function Ux(e){const{overflow:t,overflowX:a,overflowY:n,display:r}=Yi(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&!Lce.has(r)}const Fce=new Set(["table","td","th"]);function Bce(e){return Fce.has(tf(e))}const Gce=[":popover-open",":modal"];function J1(e){return Gce.some(t=>{try{return e.matches(t)}catch{return!1}})}const Hce=["transform","translate","scale","rotate","perspective"],qce=["transform","translate","scale","rotate","perspective","filter"],Uce=["paint","layout","strict","content"];function s6(e){const t=r6(),a=Xi(e)?Yi(e):e;return Hce.some(n=>a[n]?a[n]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||qce.some(n=>(a.willChange||"").includes(n))||Uce.some(n=>(a.contain||"").includes(n))}function Vce(e){let t=Fc(e);for(;No(t)&&!xm(t);){if(s6(t))return t;if(J1(t))return null;t=Fc(t)}return null}function r6(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qce=new Set(["html","body","#document"]);function xm(e){return Qce.has(tf(e))}function Yi(e){return Or(e).getComputedStyle(e)}function e2(e){return Xi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fc(e){if(tf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qR(e)&&e.host||Do(e);return qR(t)?t.host:t}function AQ(e){const t=Fc(e);return xm(t)?e.ownerDocument?e.ownerDocument.body:e.body:No(t)&&Ux(t)?t:AQ(t)}function Mg(e,t,a){var n;t===void 0&&(t=[]),a===void 0&&(a=!0);const r=AQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Or(r);if(i){const l=lC(o);return t.concat(o,o.visualViewport||[],Ux(r)?r:[],l&&a?Mg(l):[])}return t.concat(r,Mg(r,[],a))}function lC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function SQ(e){const t=Yi(e);let a=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=No(e),i=r?e.offsetWidth:a,o=r?e.offsetHeight:n,l=ay(a)!==i||ay(n)!==o;return l&&(a=i,n=o),{width:a,height:n,$:l}}function i6(e){return Xi(e)?e:e.contextElement}function im(e){const t=i6(e);if(!No(t))return bo(1);const a=t.getBoundingClientRect(),{width:n,height:r,$:i}=SQ(t);let o=(i?ay(a.width):a.width)/n,l=(i?ay(a.height):a.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Wce=bo(0);function CQ(e){const t=Or(e);return!r6()||!t.visualViewport?Wce:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kce(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==Or(e)?!1:t}function mu(e,t,a,n){t===void 0&&(t=!1),a===void 0&&(a=!1);const r=e.getBoundingClientRect(),i=i6(e);let o=bo(1);t&&(n?Xi(n)&&(o=im(n)):o=im(e));const l=Kce(i,a,n)?CQ(i):bo(0);let c=(r.left+l.x)/o.x,d=(r.top+l.y)/o.y,m=r.width/o.x,f=r.height/o.y;if(i){const h=Or(i),x=n&&Xi(n)?Or(n):n;let b=h,y=lC(b);for(;y&&n&&x!==b;){const w=im(y),j=y.getBoundingClientRect(),N=Yi(y),k=j.left+(y.clientLeft+parseFloat(N.paddingLeft))*w.x,D=j.top+(y.clientTop+parseFloat(N.paddingTop))*w.y;c*=w.x,d*=w.y,m*=w.x,f*=w.y,c+=k,d+=D,b=Or(y),y=lC(b)}}return sy({width:m,height:f,x:c,y:d})}function t2(e,t){const a=e2(e).scrollLeft;return t?t.left+a:mu(Do(e)).left+a}function TQ(e,t){const a=e.getBoundingClientRect(),n=a.left+t.scrollLeft-t2(e,a),r=a.top+t.scrollTop;return{x:n,y:r}}function $ce(e){let{elements:t,rect:a,offsetParent:n,strategy:r}=e;const i=r==="fixed",o=Do(n),l=t?J1(t.floating):!1;if(n===o||l&&i)return a;let c={scrollLeft:0,scrollTop:0},d=bo(1);const m=bo(0),f=No(n);if((f||!f&&!i)&&((tf(n)!=="body"||Ux(o))&&(c=e2(n)),No(n))){const x=mu(n);d=im(n),m.x=x.x+n.clientLeft,m.y=x.y+n.clientTop}const h=o&&!f&&!i?TQ(o,c):bo(0);return{width:a.width*d.x,height:a.height*d.y,x:a.x*d.x-c.scrollLeft*d.x+m.x+h.x,y:a.y*d.y-c.scrollTop*d.y+m.y+h.y}}function Xce(e){return Array.from(e.getClientRects())}function Yce(e){const t=Do(e),a=e2(e),n=e.ownerDocument.body,r=Cr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Cr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-a.scrollLeft+t2(e);const l=-a.scrollTop;return Yi(n).direction==="rtl"&&(o+=Cr(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:o,y:l}}const UR=25;function Zce(e,t){const a=Or(e),n=Do(e),r=a.visualViewport;let i=n.clientWidth,o=n.clientHeight,l=0,c=0;if(r){i=r.width,o=r.height;const m=r6();(!m||m&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}const d=t2(n);if(d<=0){const m=n.ownerDocument,f=m.body,h=getComputedStyle(f),x=m.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(n.clientWidth-f.clientWidth-x);b<=UR&&(i-=b)}else d<=UR&&(i+=d);return{width:i,height:o,x:l,y:c}}const Jce=new Set(["absolute","fixed"]);function ede(e,t){const a=mu(e,!0,t==="fixed"),n=a.top+e.clientTop,r=a.left+e.clientLeft,i=No(e)?im(e):bo(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=r*i.x,d=n*i.y;return{width:o,height:l,x:c,y:d}}function VR(e,t,a){let n;if(t==="viewport")n=Zce(e,a);else if(t==="document")n=Yce(Do(e));else if(Xi(t))n=ede(t,a);else{const r=CQ(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return sy(n)}function DQ(e,t){const a=Fc(e);return a===t||!Xi(a)||xm(a)?!1:Yi(a).position==="fixed"||DQ(a,t)}function tde(e,t){const a=t.get(e);if(a)return a;let n=Mg(e,[],!1).filter(l=>Xi(l)&&tf(l)!=="body"),r=null;const i=Yi(e).position==="fixed";let o=i?Fc(e):e;for(;Xi(o)&&!xm(o);){const l=Yi(o),c=s6(o);!c&&l.position==="fixed"&&(r=null),(i?!c&&!r:!c&&l.position==="static"&&!!r&&Jce.has(r.position)||Ux(o)&&!c&&DQ(e,o))?n=n.filter(m=>m!==o):r=l,o=Fc(o)}return t.set(e,n),n}function ade(e){let{element:t,boundary:a,rootBoundary:n,strategy:r}=e;const o=[...a==="clippingAncestors"?J1(t)?[]:tde(t,this._c):[].concat(a),n],l=o[0],c=o.reduce((d,m)=>{const f=VR(t,m,r);return d.top=Cr(f.top,d.top),d.right=Lc(f.right,d.right),d.bottom=Lc(f.bottom,d.bottom),d.left
vendor: 9,912 bytes, line 49
49=Cr(f.left,d.left),d},VR(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function nde(e){const{width:t,height:a}=SQ(e);return{width:t,height:a}}function sde(e,t,a){const n=No(t),r=Do(t),i=a==="fixed",o=mu(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=bo(0);function d(){c.x=t2(r)}if(n||!n&&!i)if((tf(t)!=="body"||Ux(r))&&(l=e2(t)),n){const x=mu(t,!0,i,t);c.x=x.x+t.clientLeft,c.y=x.y+t.clientTop}else r&&d();i&&!n&&r&&d();const m=r&&!n&&!i?TQ(r,l):bo(0),f=o.left+l.scrollLeft-c.x-m.x,h=o.top+l.scrollTop-c.y-m.y;return{x:f,y:h,width:o.width,height:o.height}}function ik(e){return Yi(e).position==="static"}function QR(e,t){if(!No(e)||Yi(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return Do(e)===a&&(a=a.ownerDocument.body),a}function EQ(e,t){const a=Or(e);if(J1(e))return a;if(!No(e)){let r=Fc(e);for(;r&&!xm(r);){if(Xi(r)&&!ik(r))return r;r=Fc(r)}return a}let n=QR(e,t);for(;n&&Bce(n)&&ik(n);)n=QR(n,t);return n&&xm(n)&&ik(n)&&!s6(n)?a:n||Vce(e)||a}const rde=async function(e){const t=this.getOffsetParent||EQ,a=this.getDimensions,n=await a(e.floating);return{reference:sde(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ide(e){return Yi(e).direction==="rtl"}const ode={convertOffsetParentRelativeRectToViewportRelativeRect:$ce,getDocumentElement:Do,getClippingRect:ade,getOffsetParent:EQ,getElementRects:rde,getClientRects:Xce,getDimensions:nde,getScale:im,isElement:Xi,isRTL:ide};function MQ(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lde(e,t){let a=null,n;const r=Do(e);function i(){var l;clearTimeout(n),(l=a)==null||l.disconnect(),a=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:m,top:f,width:h,height:x}=d;if(l||t(),!h||!x)return;const b=I0(f),y=I0(r.clientWidth-(m+h)),w=I0(r.clientHeight-(f+x)),j=I0(m),k={rootMargin:-b+"px "+-y+"px "+-w+"px "+-j+"px",threshold:Cr(0,Lc(1,c))||1};let D=!0;function C(S){const A=S[0].intersectionRatio;if(A!==c){if(!D)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!MQ(d,e.getBoundingClientRect())&&o(),D=!1}try{a=new IntersectionObserver(C,{...k,root:r.ownerDocument})}catch{a=new IntersectionObserver(C,k)}a.observe(e)}return o(!0),i}function cde(e,t,a,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=i6(e),m=r||i?[...d?Mg(d):[],...Mg(t)]:[];m.forEach(j=>{r&&j.addEventListener("scroll",a,{passive:!0}),i&&j.addEventListener("resize",a)});const f=d&&l?lde(d,a):null;let h=-1,x=null;o&&(x=new ResizeObserver(j=>{let[N]=j;N&&N.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=x)==null||k.observe(t)})),a()}),d&&!c&&x.observe(d),x.observe(t));let b,y=c?mu(e):null;c&&w();function w(){const j=mu(e);y&&!MQ(y,j)&&a(),y=j,b=requestAnimationFrame(w)}return a(),()=>{var j;m.forEach(N=>{r&&N.removeEventListener("scroll",a),i&&N.removeEventListener("resize",a)}),f?.(),(j=x)==null||j.disconnect(),x=null,c&&cancelAnimationFrame(b)}}const dde=Rce,ude=zce,pde=Ece,mde=Ice,fde=Mce,WR=Dce,hde=_ce,gde=(e,t,a)=>{const n=new Map,r={platform:ode,...a},i={...r.platform,_c:n};return Tce(e,t,{...r,platform:i})};var xde=typeof document<"u",bde=function(){},Ev=xde?P.useLayoutEffect:bde;function ry(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 a,n,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(n=a;n--!==0;)if(!ry(e[n],t[n]))return!1;return!0}if(r=Object.keys(e),a=r.length,a!==Object.keys(t).length)return!1;for(n=a;n--!==0;)if(!{}.hasOwnProperty.call(t,r[n]))return!1;for(n=a;n--!==0;){const i=r[n];if(!(i==="_owner"&&e.$$typeof)&&!ry(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function OQ(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function KR(e,t){const a=OQ(e);return Math.round(t*a)/a}function ok(e){const t=P.useRef(e);return Ev(()=>{t.current=e}),t}function vde(e){e===void 0&&(e={});const{placement:t="bottom",strategy:a="absolute",middleware:n=[],platform:r,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[m,f]=P.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[h,x]=P.useState(n);ry(h,n)||x(n);const[b,y]=P.useState(null),[w,j]=P.useState(null),N=P.useCallback(ae=>{ae!==S.current&&(S.current=ae,y(ae))},[]),k=P.useCallback(ae=>{ae!==A.current&&(A.current=ae,j(ae))},[]),D=i||b,C=o||w,S=P.useRef(null),A=P.useRef(null),E=P.useRef(m),R=c!=null,F=ok(c),I=ok(r),H=ok(d),_=P.useCallback(()=>{if(!S.current||!A.current)return;const ae={placement:t,strategy:a,middleware:h};I.current&&(ae.platform=I.current),gde(S.current,A.current,ae).then($=>{const Z={...$,isPositioned:H.current!==!1};V.current&&!ry(E.current,Z)&&(E.current=Z,Hx.flushSync(()=>{f(Z)}))})},[h,t,a,I,H]);Ev(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(ae=>({...ae,isPositioned:!1})))},[d]);const V=P.useRef(!1);Ev(()=>(V.current=!0,()=>{V.current=!1}),[]),Ev(()=>{if(D&&(S.current=D),C&&(A.current=C),D&&C){if(F.current)return F.current(D,C,_);_()}},[D,C,_,F,R]);const W=P.useMemo(()=>({reference:S,floating:A,setReference:N,setFloating:k}),[N,k]),B=P.useMemo(()=>({reference:D,floating:C}),[D,C]),K=P.useMemo(()=>{const ae={position:a,left:0,top:0};if(!B.floating)return ae;const $=KR(B.floating,m.x),Z=KR(B.floating,m.y);return l?{...ae,transform:"translate("+$+"px, "+Z+"px)",...OQ(B.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:$,top:Z}},[a,l,B.floating,m.x,m.y]);return P.useMemo(()=>({...m,update:_,refs:W,elements:B,floatingStyles:K}),[m,_,W,B,K])}const yde=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){const{element:n,padding:r}=typeof e=="function"?e(a):e;return n&&t(n)?n.current!=null?WR({element:n.current,padding:r}).fn(a):{}:n?WR({element:n,padding:r}).fn(a):{}}}},wde=(e,t)=>({...dde(e),options:[e,t]}),Pde=(e,t)=>({...ude(e),options:[e,t]}),jde=(e,t)=>({...hde(e),options:[e,t]}),kde=(e,t)=>({...pde(e),options:[e,t]}),Nde=(e,t)=>({...mde(e),options:[e,t]}),Ade=(e,t)=>({...fde(e),options:[e,t]}),Sde=(e,t)=>({...yde(e),options:[e,t]});var Cde="Arrow",RQ=P.forwardRef((e,t)=>{const{children:a,width:n=10,height:r=5,...i}=e;return s.jsx(Zt.svg,{...i,ref:t,width:n,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});RQ.displayName=Cde;var Tde=RQ;function Dde(e){const[t,a]=P.useState(void 0);return os(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=e.offsetWidth,l=e.offsetHeight;a({width:o,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else a(void 0)},[e]),t}var o6="Popper",[zQ,af]=Pi(o6),[Ede,_Q]=zQ(o6),IQ=e=>{const{__scopePopper:t,children:a}=e,[n,r]=P.useState(null);return s.jsx(Ede,{scope:t,anchor:n,onAnchorChange:r,children:a})};IQ.displayName=o6;var LQ="PopperAnchor",FQ=P.forwardRef((e,t)=>{const{__scopePopper:a,virtualRef:n,...r}=e,i=_Q(LQ,a),o=P.useRef(null),l=Va(t,o),c=P.useRef(null);return P.useEffect(()=>{const d=c.current;c.current=n?.current||o.current,d!==c.current&&i.onAnchorChange(c.current)}),n?null:s.jsx(Zt.div,{...r,ref:l})});FQ.displayName=LQ;var l6="PopperContent",[Mde,Ode]=zQ(l6),BQ=P.forwardRef((e,t)=>{const{__scopePopper:a,side:n="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:x="optimized",onPlaced:b,...y}=e,w=_Q(l6,a),[j,N]=P.useState(null),k=Va(t,ne=>N(ne)),[D,C]=P.useState(null),S=Dde(D),A=S?.width??0,E=S?.height??0,R=n+(i!=="center"?"-"+i:""),F=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},I=Array.isArray(d)?d:[d],H=I.length>0,_={padding:F,boundary:I.filter(zde),altBoundary:H},{refs:V,floatingStyles:W,placement:B,isPositioned:K,middlewareData:ae}=vde({strategy:"fixed",placement:R,whileElementsMounted:(...ne)=>cde(...ne,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[wde({mainAxis:r+E,alignmentAxis:o}),c&&Pde({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?jde():void 0,..._}),c&&kde({..._}),Nde({..._,apply:({elements:ne,rects:ge,availableWidth:me,availableHeight:Ae})=>{const{width:Pe,height:L}=ge.reference,ke=ne.floating.style;ke.setProperty("--radix-popper-available-width",`${me}px`),ke.setProperty("--radix-popper-available-height",`${Ae}px`),ke.setProperty("--radix-popper-anchor-width",`${Pe}px`),ke.setProperty("--radix-popper-anchor-height",`${L}px`)}}),D&&Sde({element:D,padding:l}),_de({arrowWidth:A,arrowHeight:E}),h&&Ade({strategy:"referenceHidden",..._})]}),[$,Z]=qQ(B),O=$i(b);os(()=>{K&&O?.()},[K,O]);const Y=ae.arrow?.x,Q=ae.arrow?.y,U=ae.arrow?.centerOffset!==0,[oe,X]=P.useState();return os(()=>{j&&X(window.getComputedStyle(j).zIndex)},[j]),s.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:K?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[ae.transformOrigin?.x,ae.transformOrigin?.y].join(" "),...ae.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(Mde,{scope:a,placedSide:$,onArrowChange:C,arrowX:Y,arrowY:Q,shouldHideArrow:U,children:s.jsx(Zt.div,{"data-side":$,"data-align":Z,...y,ref:k,style:{...y.style,animation:K?void 0:"none"}})})})});BQ.displayName=l6;var GQ="PopperArrow",Rde={top:"bottom",right:"left",bottom:"top",left:"r
49ight"},HQ=P.forwardRef(function(t,a){const{__scopePopper:n,...r}=t,i=Ode(GQ,n),o=Rde[i.placedSide];return s.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:s.jsx(Tde,{...r,ref:a,style:{...r.style,display:"block"}})})});HQ.displayName=GQ;function zde(e){return e!==null}var _de=e=>({name:"transformOrigin",options:e,fn(t){const{placement:a,rects:n,middlewareData:r}=t,o=r.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[d,m]=qQ(a),f={start:"0%",center:"50%",end:"100%"}[m],h=(r.arrow?.x??0)+l/2,x=(r.arrow?.y??0)+c/2;let b="",y="";return d==="bottom"?(b=o?f:`${h}px`,y=`${-c}px`):d==="top"?(b=o?f:`${h}px`,y=`${n.floating.height+c}px`):d==="right"?(b=`${-c}px`,y=o?f:`${x}px`):d==="left"&&(b=`${n.floating.width+c}px`,y=o?f:`${x}px`),{data:{x:b,y}}}});function qQ(e){const[t,a="center"]=e.split("-");return[t,a]}var c6=IQ,d6=FQ,u6=BQ,p6=HQ,Ide="Portal",Vx=P.forwardRef((e,t)=>{const{container:a,...n}=e,[r,i]=P.useState(!1);os(()=>i(!0),[]);const o=a||r&&globalThis?.document?.body;return o?xQ.createPortal(s.jsx(Zt.div,{...n,ref:t}),o):null});Vx.displayName=Ide;function Lde(e,t){return P.useReducer((a,n)=>t[a][n]??a,e)}var eo=e=>{const{present:t,children:a}=e,n=Fde(t),r=typeof a=="function"?a({present:n.isPresent}):P.Children.only(a),i=Va(n.ref,Bde(r));return typeof a=="function"||n.isPresent?P.cloneElement(r,{ref:i}):null};eo.displayName="Presence";function Fde(e){const[t,a]=P.useState(),n=P.useRef(null),r=P.useRef(e),i=P.useRef("none"),o=e?"mounted":"unmounted",[l,c]=Lde(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const d=L0(n.current);i.current=l==="mounted"?d:"none"},[l]),os(()=>{const d=n.current,m=r.current;if(m!==e){const h=i.current,x=L0(d);e?c("MOUNT"):x==="none"||d?.display==="none"?c("UNMOUNT"):c(m&&h!==x?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),os(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,f=x=>{const y=L0(n.current).includes(CSS.escape(x.animationName));if(x.target===t&&y&&(c("ANIMATION_END"),!r.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=x=>{x.target===t&&(i.current=L0(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:P.useCallback(d=>{n.current=d?getComputedStyle(d):null,a(d)},[])}}function L0(e){return e?.animationName||"none"}function Bde(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Gde=U1[" useInsertionEffect ".trim().toString()]||os;function fu({prop:e,defaultProp:t,onChange:a=()=>{},caller:n}){const[r,i,o]=Hde({defaultProp:t,onChange:a}),l=e!==void 0,c=l?e:r;{const m=P.useRef(e!==void 0);P.useEffect(()=>{const f=m.current;f!==l&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${l?"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.`),m.current=l},[l,n])}const d=P.useCallback(m=>{if(l){const f=qde(m)?m(e):m;f!==e&&o.current?.(f)}else i(m)},[l,e,i,o]);return[c,d]}function Hde({defaultProp:e,onChange:t}){const[a,n]=P.useState(e),r=P.useRef(a),i=P.useRef(t);return Gde(()=>{i.current=t},[t]),P.useEffect(()=>{r.current!==a&&(i.current?.(a),r.current=a)},[a,r]),[a,n,i]}function qde(e){return typeof e=="function"}var UQ=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"}),Ude="VisuallyHidden",VQ=P.forwardRef((e,t)=>
vendor: 4,636 bytes, line 49
49s.jsx(Zt.span,{...e,ref:t,style:{...UQ,...e.style}}));VQ.displayName=Ude;var Vde=VQ,[a2]=Pi("Tooltip",[af]),n2=af(),QQ="TooltipProvider",Qde=700,cC="tooltip.open",[Wde,m6]=a2(QQ),WQ=e=>{const{__scopeTooltip:t,delayDuration:a=Qde,skipDelayDuration:n=300,disableHoverableContent:r=!1,children:i}=e,o=P.useRef(!0),l=P.useRef(!1),c=P.useRef(0);return P.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),s.jsx(Wde,{scope:t,isOpenDelayedRef:o,delayDuration:a,onOpen:P.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:P.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:P.useCallback(d=>{l.current=d},[]),disableHoverableContent:r,children:i})};WQ.displayName=QQ;var Og="Tooltip",[Kde,Qx]=a2(Og),KQ=e=>{const{__scopeTooltip:t,children:a,open:n,defaultOpen:r,onOpenChange:i,disableHoverableContent:o,delayDuration:l}=e,c=m6(Og,e.__scopeTooltip),d=n2(t),[m,f]=P.useState(null),h=Vi(),x=P.useRef(0),b=o??c.disableHoverableContent,y=l??c.delayDuration,w=P.useRef(!1),[j,N]=fu({prop:n,defaultProp:r??!1,onChange:A=>{A?(c.onOpen(),document.dispatchEvent(new CustomEvent(cC))):c.onClose(),i?.(A)},caller:Og}),k=P.useMemo(()=>j?w.current?"delayed-open":"instant-open":"closed",[j]),D=P.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w.current=!1,N(!0)},[N]),C=P.useCallback(()=>{window.clearTimeout(x.current),x.current=0,N(!1)},[N]),S=P.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current=!0,N(!0),x.current=0},y)},[y,N]);return P.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),s.jsx(c6,{...d,children:s.jsx(Kde,{scope:t,contentId:h,open:j,stateAttribute:k,trigger:m,onTriggerChange:f,onTriggerEnter:P.useCallback(()=>{c.isOpenDelayedRef.current?S():D()},[c.isOpenDelayedRef,S,D]),onTriggerLeave:P.useCallback(()=>{b?C():(window.clearTimeout(x.current),x.current=0)},[C,b]),onOpen:D,onClose:C,disableHoverableContent:b,children:a})})};KQ.displayName=Og;var dC="TooltipTrigger",$Q=P.forwardRef((e,t)=>{const{__scopeTooltip:a,...n}=e,r=Qx(dC,a),i=m6(dC,a),o=n2(a),l=P.useRef(null),c=Va(t,l,r.onTriggerChange),d=P.useRef(!1),m=P.useRef(!1),f=P.useCallback(()=>d.current=!1,[]);return P.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.jsx(d6,{asChild:!0,...o,children:s.jsx(Zt.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...n,ref:c,onPointerMove:Nt(e.onPointerMove,h=>{h.pointerType!=="touch"&&!m.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),m.current=!0)}),onPointerLeave:Nt(e.onPointerLeave,()=>{r.onTriggerLeave(),m.current=!1}),onPointerDown:Nt(e.onPointerDown,()=>{r.open&&r.onClose(),d.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Nt(e.onFocus,()=>{d.current||r.onOpen()}),onBlur:Nt(e.onBlur,r.onClose),onClick:Nt(e.onClick,r.onClose)})})});$Q.displayName=dC;var f6="TooltipPortal",[$de,Xde]=a2(f6,{forceMount:void 0}),XQ=e=>{const{__scopeTooltip:t,forceMount:a,children:n,container:r}=e,i=Qx(f6,t);return s.jsx($de,{scope:t,forceMount:a,children:s.jsx(eo,{present:a||i.open,children:s.jsx(Vx,{asChild:!0,container:r,children:n})})})};XQ.displayName=f6;var bm="TooltipContent",YQ=P.forwardRef((e,t)=>{const a=Xde(bm,e.__scopeTooltip),{forceMount:n=a.forceMount,side:r="top",...i}=e,o=Qx(bm,e.__scopeTooltip);return s.jsx(eo,{present:n||o.open,children:o.disableHoverableContent?s.jsx(ZQ,{side:r,...i,ref:t}):s.jsx(Yde,{side:r,...i,ref:t})})}),Yde=P.forwardRef((e,t)=>{const a=Qx(bm,e.__scopeTooltip),n=m6(bm,e.__scopeTooltip),r=P.useRef(null),i=Va(t,r),[o,l]=P.useState(null),{trigger:c,onClose:d}=a,m=r.current,{onPointerInTransitChange:f}=n,h=P.useCallback(()=>{l(null),f(!1)},[f]),x=P.useCallback((b,y)=>{const w=b.currentTarget,j={x:b.clientX,y:b.clientY},N=tue(j,w.getBoundingClientRect()),k=aue(j,N),D=nue(y.getBoundingClientRect()),C=rue([...k,...D]);l(C),f(!0)},[f]);return P.useEffect(()=>()=>h(),[h]),P.useEffect(()=>{if(c&&m){const b=w=>x(w,m),y=w=>x(w,c);return c.addEventListener("pointerleave",b),m.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",b),m.removeEventListener("pointerleave",y)}}},[c,m,x,h]),P.useEffect(()=>{if(o){const b=y=>{const w=y.target,j={x:y.clientX,y:y.clientY},N=c?.contains(w)||m?.contains(w),k=!sue(j,o);N?h():k&&(h(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,m,o,d,h]),s.jsx(ZQ,{...e,ref:i})}),[Zde,Jde]=a2(Og,{isInside:!1}),eue=vQ("TooltipContent"),ZQ=P.forwardRef((e,t)=>
vendor: 10,743 bytes, line 49
49{const{__scopeTooltip:a,children:n,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=Qx(bm,a),d=n2(a),{onClose:m}=c;return P.useEffect(()=>(document.addEventListener(cC,m),()=>document.removeEventListener(cC,m)),[m]),P.useEffect(()=>{if(c.trigger){const f=h=>{h.target?.contains(c.trigger)&&m()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,m]),s.jsx(qx,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:m,children:s.jsxs(u6,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.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:[s.jsx(eue,{children:n}),s.jsx(Zde,{scope:a,isInside:!0,children:s.jsx(Vde,{id:c.contentId,role:"tooltip",children:r||n})})]})})});YQ.displayName=bm;var JQ="TooltipArrow",eW=P.forwardRef((e,t)=>{const{__scopeTooltip:a,...n}=e,r=n2(a);return Jde(JQ,a).isInside?null:s.jsx(p6,{...r,...n,ref:t})});eW.displayName=JQ;function tue(e,t){const a=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(a,n,r,i)){case i:return"left";case r:return"right";case a:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function aue(e,t,a=5){const n=[];switch(t){case"top":n.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":n.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":n.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":n.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return n}function nue(e){const{top:t,right:a,bottom:n,left:r}=e;return[{x:r,y:t},{x:a,y:t},{x:a,y:n},{x:r,y:n}]}function sue(e,t){const{x:a,y:n}=e;let r=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],d=l.x,m=l.y,f=c.x,h=c.y;m>n!=h>n&&a<(f-d)*(n-m)/(h-m)+d&&(r=!r)}return r}function rue(e){const t=e.slice();return t.sort((a,n)=>a.x<n.x?-1:a.x>n.x?1:a.y<n.y?-1:a.y>n.y?1:0),iue(t)}function iue(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}t.pop();const a=[];for(let n=e.length-1;n>=0;n--){const r=e[n];for(;a.length>=2;){const i=a[a.length-1],o=a[a.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))a.pop();else break}a.push(r)}return a.pop(),t.length===1&&a.length===1&&t[0].x===a[0].x&&t[0].y===a[0].y?t:t.concat(a)}var oue=WQ,lue=KQ,cue=$Q,due=XQ,uue=YQ,pue=eW;function tW(e){var t,a,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=tW(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function Yt(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=tW(e))&&(n&&(n+=" "),n+=t);return n}const h6="-",mue=e=>{const t=hue(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(h6);return l[0]===""&&l.length!==1&&l.shift(),aW(l,t)||fue(o)},getConflictingClassGroupIds:(o,l)=>{const c=a[o]||[];return l&&n[o]?[...c,...n[o]]:c}}},aW=(e,t)=>{if(e.length===0)return t.classGroupId;const a=e[0],n=t.nextPart.get(a),r=n?aW(e.slice(1),n):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(h6);return t.validators.find(({validator:o})=>o(i))?.classGroupId},$R=/^\[(.+)\]$/,fue=e=>{if($R.test(e)){const t=$R.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},hue=e=>{const{theme:t,classGroups:a}=e,n={nextPart:new Map,validators:[]};for(const r in a)uC(a[r],n,r,t);return n},uC=(e,t,a,n)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:XR(t,r);i.classGroupId=a;return}if(typeof r=="function"){if(gue(r)){uC(r(n),t,a,n);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([i,o])=>{uC(o,XR(t,i),a,n)})})},XR=(e,t)=>{let a=e;return t.split(h6).forEach(n=>{a.nextPart.has(n)||a.nextPart.set(n,{nextPart:new Map,validators:[]}),a=a.nextPart.get(n)}),a},gue=e=>e.isThemeGetter,xue=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,n=new Map;const r=(i,o)=>{a.set(i,o),t++,t>e&&(t=0,n=a,a=new Map)};return{get(i){let o=a.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return r(i,o),o},set(i,o){a.has(i)?a.set(i,o):r(i,o)}}},pC="!",mC=":",bue=mC.length,vue=e=>{const{prefix:t,experimentalParseClassName:a}=e;let n=r=>{const i=[];let o=0,l=0,c=0,d;for(let b=0;b<r.length;b++){let y=r[b];if(o===0&&l===0){if(y===mC){i.push(r.slice(c,b)),c=b+bue;continue}if(y==="/"){d=b;continue}}y==="["?o++:y==="]"?o--:y==="("?l++:y===")"&&l--}const m=i.length===0?r:r.substring(c),f=yue(m),h=f!==m,x=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:x}};if(t){const r=t+mC,i=n;n=o=>o.startsWith(r)?i(o.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(a){const r=n;n=i=>a({className:i,parseClassName:r})}return n},yue=e=>e.endsWith(pC)?e.substring(0,e.length-1):e.startsWith(pC)?e.substring(1):e,wue=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const r=[];let i=[];return n.forEach(o=>{o[0]==="["||t[o]?(r.push(...i.sort(),o),i=[]):i.push(o)}),r.push(...i.sort()),r}},Pue=e=>({cache:xue(e.cacheSize),parseClassName:vue(e),sortModifiers:wue(e),...mue(e)}),jue=/\s+/,kue=(e,t)=>{const{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:i}=t,o=[],l=e.trim().split(jue);let c="";for(let d=l.length-1;d>=0;d-=1){const m=l[d],{isExternal:f,modifiers:h,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:y}=a(m);if(f){c=m+(c.length>0?" "+c:c);continue}let w=!!y,j=n(w?b.substring(0,y):b);if(!j){if(!w){c=m+(c.length>0?" "+c:c);continue}if(j=n(b),!j){c=m+(c.length>0?" "+c:c);continue}w=!1}const N=i(h).join(":"),k=x?N+pC:N,D=k+j;if(o.includes(D))continue;o.push(D);const C=r(j,w);for(let S=0;S<C.length;++S){const A=C[S];o.push(k+A)}c=m+(c.length>0?" "+c:c)}return c};function Nue(){let e=0,t,a,n="";for(;e<arguments.length;)(t=arguments[e++])&&(a=nW(t))&&(n&&(n+=" "),n+=a);return n}const nW=e=>{if(typeof e=="string")return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=nW(e[n]))&&(a&&(a+=" "),a+=t);return a};function Aue(e,...t){let a,n,r,i=o;function o(c){const d=t.reduce((m,f)=>f(m),e());return a=Pue(d),n=a.cache.get,r=a.cache.set,i=l,l(c)}function l(c){const d=n(c);if(d)return d;const m=kue(c,a);return r(c,m),m}return function(){return i(Nue.apply(null,arguments))}}const es=e=>{const t=a=>a[e]||[];return t.isThemeGetter=!0,t},sW=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rW=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Sue=/^\d+\/\d+$/,Cue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tue=/\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$/,Due=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Eue=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kp=e=>Sue.test(e),pa=e=>!!e&&!Number.isNaN(Number(e)),uc=e=>!!e&&Number.isInteger(Number(e)),lk=e=>e.endsWith("%")&&pa(e.slice(0,-1)),el=e=>Cue.test(e),Oue=()=>!0,Rue=e=>Tue.test(e)&&!Due.test(e),iW=()=>!1,zue=e=>Eue.test(e),_ue=e=>Mue.test(e),Iue=e=>!Dt(e)&&!Et(e),Lue=e=>nf(e,cW,iW),Dt=e=>sW.test(e),Sd=e=>nf(e,dW,Rue),ck=e=>nf(e,que,pa),YR=e=>nf(e,oW,iW),Fue=e=>nf(e,lW,_ue),F0=e=>nf(e,uW,zue),Et=e=>rW.test(e),vh=e=>sf(e,dW),Bue=e=>sf(e,Uue),ZR=e=>sf(e,oW),Gue=e=>sf(e,cW),Hue=e=>sf(e,lW),B0=e=>sf(e,uW,!0),nf=(e,t,a)=>{const n=sW.exec(e);return n?n[1]?t(n[1]):a(n[2]):!1},sf=(e,t,a=!1)=>{const n=rW.exec(e);return n?n[1]?t(n[1]):a:!1},oW=e=>e==="position"||e==="percentage",lW=e=>e==="image"||e==="url",cW=e=>e==="length"||e==="size"||e==="bg-size",dW=e=>e==="length",que=e=>e==="number",Uue=e=>e==="family-name",uW=e=>e==="shadow",Vue=()=>{const e=es("color"),t=es("font"),a=es("text"),n=es("font-weight"),r=es("tracking"),i=es("leading"),o=es("breakpoint"),l=es("container"),c=es("spacing"),d=es("radius"),m=es("shadow"),f=es("inset-shadow"),h=es("text-shadow"),x=es("drop-shadow"),b=es("blur"),y=es("perspective"),w=es("aspect"),j=es("ease"),N=es("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...D(),Et,Dt],S=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],E=()=>[Et,Dt,c],R=()=>[kp,"full","auto",...E()],F=()=>[uc,"none","subgrid",Et,Dt],I=()=>["auto",{span:["full",uc,Et,Dt]},uc,Et,Dt],H=()=>[uc,"auto",Et,Dt],_=()=>["auto","min","max","fr",Et,Dt],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...E()],K=()=>[kp,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],ae=()=>[e,Et,Dt],$=()=>[...D(),ZR,YR,{position:[Et,Dt]}],Z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",Gue,Lue,{size:[Et,Dt]}],Y=()=>[lk,vh,Sd],Q=()=>["","none","full",d,Et,Dt],U=()=>["",pa,vh,Sd],oe=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[pa,lk,ZR,YR],ge=()=>["","none",b,Et,Dt],me=()=>["none",pa,Et,Dt],Ae=()=>["none",pa,Et,Dt],Pe=()=>[pa,Et,Dt],L=()=>[kp,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[el],breakpoint:[el],color:[Oue],container:[el],"drop-shadow":[el],ease:["in","out","in-out"],font:[Iue],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[el],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[el],shadow:[el],spacing:["px",pa],text:[el],"text-shadow":[el],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kp,Dt,Et,w]}
vendor: 12,886 bytes, line 49
49],container:["container"],columns:[{columns:[pa,Dt,Et,l]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{start:R()}],end:[{end:R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[uc,"auto",Et,Dt]}],basis:[{basis:[kp,"full","auto",l,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pa,kp,"auto","initial","none",Dt]}],grow:[{grow:["",pa,Et,Dt]}],shrink:[{shrink:["",pa,Et,Dt]}],order:[{order:[uc,"first","last","none",Et,Dt]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],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":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[l,"screen",...K()]}],"min-w":[{"min-w":[l,"screen","none",...K()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",a,vh,Sd]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Et,ck]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",lk,Dt]}],"font-family":[{font:[Bue,Dt,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Et,Dt]}],"line-clamp":[{"line-clamp":[pa,"none",Et,ck]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",Et,Dt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Et,Dt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ae()}],"text-color":[{text:ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[pa,"from-font","auto",Et,Sd]}],"text-decoration-color":[{decoration:ae()}],"underline-offset":[{"underline-offset":[pa,"auto",Et,Dt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Et,Dt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Et,Dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:Z()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},uc,Et,Dt],radial:["",Et,Dt],conic:[uc,Et,Dt]},Hue,Fue]}],"bg-color":[{bg:ae()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:ae()}],"gradient-via":[{via:ae()}],"gradient-to":[{to:ae()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:ae()}],"border-color-x":[{"border-x":ae()}],"border-color-y":[{"border-y":ae()}],"border-color-s":[{"border-s":ae()}],"border-color-e":[{"border-e":ae()}],"border-color-t":[{"border-t":ae()}],"border-color-r":[{"border-r":ae()}],"border-color-b":[{"border-b":ae()}],"border-color-l":[{"border-l":ae()}],"divide-color":[{divide:ae()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pa,Et,Dt]}],"outline-w":[{outline:["",pa,vh,Sd]}],"outline-color":[{outline:ae()}],shadow:[{shadow:["","none",m,B0,F0]}],"shadow-color":[{shadow:ae()}],"inset-shadow":[{"inset-shadow":["none",f,B0,F0]}],"inset-shadow-color":[{"inset-shadow":ae()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ae()}],"ring-offset-w":[{"ring-offset":[pa,Sd]}],"ring-offset-color":[{"ring-offset":ae()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":ae()}],"text-shadow":[{"text-shadow":["none",h,B0,F0]}],"text-shadow-color":[{"text-shadow":ae()}],opacity:[{opacity:[pa,Et,Dt]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pa]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":ae()}],"mask-image-linear-to-color":[{"mask-linear-to":ae()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":ae()}],"mask-image-t-to-color":[{"mask-t-to":ae()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":ae()}],"mask-image-r-to-color":[{"mask-r-to":ae()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":ae()}],"mask-image-b-to-color":[{"mask-b-to":ae()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":ae()}],"mask-image-l-to-color":[{"mask-l-to":ae()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":ae()}],"mask-image-x-to-color":[{"mask-x-to":ae()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":ae()}],"mask-image-y-to-color":[{"mask-y-to":ae()}],"mask-image-radial":[{"mask-radial":[Et,Dt]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":ae()}],"mask-image-radial-to-color":[{"mask-radial-to":ae()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[pa]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":ae()}],"mask-image-conic-to-color":[{"mask-conic-to":ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:Z()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Et,Dt]}],filter:[{filter:["","none",Et,Dt]}],blur:[{blur:ge()}],brightness:[{brightness:[pa,Et,Dt]}],contrast:[{contrast:[pa,Et,Dt]}],"drop-shadow":[{"drop-shadow":["","none",x,B0,F0]}],"drop-shadow-color":[{"drop-shadow":ae()}],grayscale:[{grayscale:["",pa,Et,Dt]}],"hue-rotate":[{"hue-rotate":[pa,Et,Dt]}],invert:[{invert:["",pa,Et,Dt]}],saturate:[{saturate:[pa,Et,Dt]}],sepia:[{sepia:["",pa,Et,Dt]}],"backdrop-filter":[{"backdrop-filter":["","none",Et,Dt]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[pa,Et,Dt]}],"backdrop-contrast":[{"backdrop-contrast":[pa,Et,Dt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pa,Et,Dt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pa,Et,Dt]}],"backdrop-invert":[{"backdrop-invert":["",pa,Et,Dt]}],"backdrop-opacity":[{"backdrop-opacity":[pa,Et,Dt]}],"backdrop-saturate":[{"backdrop-saturate":[pa,Et,Dt]}],"backdrop-sepia":[{"backdrop-sepia":["",pa,Et,Dt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Et,Dt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pa,"initial",Et,Dt]}],ease:[{ease:["linear","initial",j,Et,Dt]}],delay:[{delay:[pa,Et,Dt]}],animate:[{animate:["none",N,Et,Dt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Et,Dt]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[Et,Dt,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:L()}],"translate-x":[{"translate-x":L()}],"translate-y":[{"translate-y":L()}],"translate-z":[{"translate-z":L()}],"translate-none":["translate-none"],accent:[{accent:ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ae()}
vendor: 5,477 bytes, line 49
49],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Et,Dt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Et,Dt]}],fill:[{fill:["none",...ae()]}],"stroke-w":[{stroke:[pa,vh,Sd,ck]}],stroke:[{stroke:["none",...ae()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Que=Aue(Vue);function zt(...e){return Que(Yt(e))}function g6({delayDuration:e=0,...t}){return s.jsx(oue,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}function x6({...e}){return s.jsx(g6,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:s.jsx(lue,{"data-loc":"client/src/components/ui/tooltip.tsx:24","data-slot":"tooltip",...e})})}function b6({...e}){return s.jsx(cue,{"data-loc":"client/src/components/ui/tooltip.tsx:32","data-slot":"tooltip-trigger",...e})}function v6({className:e,sideOffset:t=0,children:a,...n}){return s.jsx(due,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:s.jsxs(uue,{"data-loc":"client/src/components/ui/tooltip.tsx:43","data-slot":"tooltip-content",sideOffset:t,className:zt("bg-foreground text-background 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]:sli
49de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...n,children:[a,s.jsx(pue,{"data-loc":"client/src/components/ui/tooltip.tsx:53",className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const JR=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ez=Yt,y6=(e,t)=>a=>{var n;if(t?.variants==null)return ez(e,a?.class,a?.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(d=>{const m=a?.[d],f=i?.[d];if(m===null)return null;const h=JR(m)||JR(f);return r[d][h]}),l=a&&Object.entries(a).reduce((d,m)=>{let[f,h]=m;return h===void 0||(d[f]=h),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,m)=>{let{class:f,className:h,...x}=m;return Object.entries(x).every(b=>{let[y,w]=b;return Array.isArray(w)?w.includes({...i,...l}[y]):{...i,...l}[y]===w})?[...d,f,h]:d},[]);return ez(e,o,c,a?.class,a?.className)},w6=y6("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ie({className:e,variant:t,size:a,asChild:n=!1,...r}){const i=n?e6:"button";return s.jsx(i,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:zt(w6({variant:t,size:a,className:e})),...r})}function ma({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:zt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function nn({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:zt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function sn({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:zt("leading-none font-semibold",e),...t})}function Ti({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:zt("text-muted-foreground text-sm",e),...t})}function fa({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:zt("px-6",e),...t})}/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const Wue=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pW=(...e)=>e.filter((t,a,n)=>!!t&&n.indexOf(t)===a).join(" ");/** 55 * @license lucide-react v0.453.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */var Kue={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 60 * @license lucide-react v0.453.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const $ue=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:r="",children:i,iconNode:o,...l},c)=>P.createElement("svg",{ref:c,...Kue,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:pW("lucide",r),...l},[...o.map(([d,m])=>P.createElement(d,m)),...Array.isArray(i)?i:[i]]));/** 65 * @license lucide-react v0.453.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const qe=(e,t)=>
69{const a=P.forwardRef(({className:n,...r},i)=>P.createElement($ue,{ref:i,iconNode:t,className:pW(`lucide-${Wue(e)}`,n),...r}));return a.displayName=`${e}`,a};/** 70 * @license lucide-react v0.453.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const Xue=qe("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 75 * @license lucide-react v0.453.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const dk=qe("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/** 80 * @license lucide-react v0.453.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const Yue=qe("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 85 * @license lucide-react v0.453.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const Zue=qe("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/** 90 * @license lucide-react v0.453.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const P6=qe("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 95 * @license lucide-react v0.453.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const Wx=qe("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 100 * @license lucide-react v0.453.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const Jue=qe("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/** 105 * @license lucide-react v0.453.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const uk=qe("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 110 * @license lucide-react v0.453.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const epe=qe("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 115 * @license lucide-react v0.453.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const Al=qe("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"}]]);/** 120 * @license lucide-react v0.453.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const tpe=qe("BellOff",[["path",{d:"M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5",key:"o7mx20"}],["path",{d:"M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7",key:"16f1lm"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 125 * @license lucide-react v0.453.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree. 129 */const ape=qe("BellRing",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}]]);/** 130 * @license lucide-react v0.453.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const j6=qe("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 135 * @license lucide-react v0.453.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree. 139 */const npe=qe("BookCheck",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m9 9.5 2 2 4-4",key:"1dth82"}]]);/** 140 * @license lucide-react v0.453.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const spe=qe("BookOpenCheck",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** 145 * @license lucide-react v0.453.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const Ln=qe("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 150 * @license lucide-react v0.453.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const rpe=qe("BookmarkPlus",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}],["line",{x1:"12",x2:"12",y1:"7",y2:"13",key:"1cppfj"}],["line",{x1:"15",x2:"9",y1:"10",y2:"10",key:"1gty7f"}]]);/** 155 * @license lucide-react v0.453.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const Hi=qe("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 160 * @license lucide-react v0.453.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const ipe=qe("BrainCircuit",[["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:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["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:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}
164],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]]);/** 165 * @license lucide-react v0.453.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree. 169 */const ope=qe("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"}]]);/** 170 * @license lucide-react v0.453.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree. 174 */const iy=qe("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"}]]);/** 175 * @license lucide-react v0.453.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree. 179 */const lpe=qe("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 180 * @license lucide-react v0.453.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const Kx=qe("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 185 * @license lucide-react v0.453.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const pl=qe("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/** 190 * @license lucide-react v0.453.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const fC=qe("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/** 195 * @license lucide-react v0.453.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const Ir=qe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 200 * @license lucide-react v0.453.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const $x=qe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 205 * @license lucide-react v0.453.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const s2=qe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 210 * @license lucide-react v0.453.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const r2=qe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 215 * @license lucide-react v0.453.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const i2=qe("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 220 * @license lucide-react v0.453.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const k6=qe("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"}]]);/** 225 * @license lucide-react v0.453.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const cr=qe("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 230 * @license lucide-react v0.453.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const bn=qe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 235 * @license lucide-react v0.453.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const cpe=qe("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/** 240 * @license lucide-react v0.453.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const pk=qe("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"}]]);/** 245 * @license lucide-react v0.453.0 - ISC 246 * 247 * This source code is licensed under the ISC license. 248 * See the LICENSE file in the root directory of this source tree. 249 */const dpe=qe("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/** 250 * @license lucide-react v0.453.0 - ISC 251 * 252 * This source code is licensed under the ISC license. 253 * See the LICENSE file in the root directory of this source tree. 254 */const upe=qe("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/** 255 * @license lucide-react v0.453.0 - ISC 256 * 257 * This source code is licensed under the ISC license. 258 * See the LICENSE file in the root directory of this source tree. 259 */const ppe=qe("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/** 260 * @license lucide-react v0.453.0 - ISC 261 * 262 * This source code is licensed under the ISC license. 263 * See the LICENSE file in the root directory of this source tree. 264 */const Rg=qe("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 265 * @license lucide-react v0.453.0 - ISC 266 * 267 * This source code is licensed under the ISC license. 268 * See the LICENSE file in the root directory of this source tree.
269 */const hC=qe("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 270 * @license lucide-react v0.453.0 - ISC 271 * 272 * This source code is licensed under the ISC license. 273 * See the LICENSE file in the root directory of this source tree. 274 */const zg=qe("Clock3",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16.5 12",key:"1aq6pp"}]]);/** 275 * @license lucide-react v0.453.0 - ISC 276 * 277 * This source code is licensed under the ISC license. 278 * See the LICENSE file in the root directory of this source tree. 279 */const xi=qe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 280 * @license lucide-react v0.453.0 - ISC 281 * 282 * This source code is licensed under the ISC license. 283 * See the LICENSE file in the root directory of this source tree. 284 */const mpe=qe("CloudOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]]);/** 285 * @license lucide-react v0.453.0 - ISC 286 * 287 * This source code is licensed under the ISC license. 288 * See the LICENSE file in the root directory of this source tree. 289 */const fpe=qe("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/** 290 * @license lucide-react v0.453.0 - ISC 291 * 292 * This source code is licensed under the ISC license. 293 * See the LICENSE file in the root directory of this source tree. 294 */const mW=qe("Contrast",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 18a6 6 0 0 0 0-12v12z",key:"j4l70d"}]]);/** 295 * @license lucide-react v0.453.0 - ISC 296 * 297 * This source code is licensed under the ISC license. 298 * See the LICENSE file in the root directory of this source tree. 299 */const o2=qe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 300 * @license lucide-react v0.453.0 - ISC 301 * 302 * This source code is licensed under the ISC license. 303 * See the LICENSE file in the root directory of this source tree. 304 */const Gs=qe("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 305 * @license lucide-react v0.453.0 - ISC 306 * 307 * This source code is licensed under the ISC license. 308 * See the LICENSE file in the root directory of this source tree. 309 */const Qi=qe("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"}]]);/** 310 * @license lucide-react v0.453.0 - ISC 311 * 312 * This source code is licensed under the ISC license. 313 * See the LICENSE file in the root directory of this source tree. 314 */const _g=qe("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"}]]);/** 315 * @license lucide-react v0.453.0 - ISC 316 * 317 * This source code is licensed under the ISC license. 318 * See the LICENSE file in the root directory of this source tree. 319 */const hpe=qe("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"}]]);/** 320 * @license lucide-react v0.453.0 - ISC 321 * 322 * This source code is licensed under the ISC license. 323 * See the LICENSE file in the root directory of this source tree. 324 */const gpe=qe("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 325 * @license lucide-react v0.453.0 - ISC 326 * 327 * This source code is licensed under the ISC license. 328 * See the LICENSE file in the root directory of this source tree. 329 */const Zi=qe("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"}]]);/** 330 * @license lucide-react v0.453.0 - ISC 331 * 332 * This source code is licensed under the ISC license. 333 * See the LICENSE file in the root directory of this source tree. 334 */const xpe=qe("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]);/** 335 * @license lucide-react v0.453.0 - ISC 336 * 337 * This source code is licensed under the ISC license. 338 * See the LICENSE file in the root directory of this source tree. 339 */const fW=qe("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 340 * @license lucide-react v0.453.0 - ISC 341 * 342 * This source code is licensed under the ISC license. 343 * See the LICENSE file in the root directory of this source tree. 344 */const bpe=qe("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/** 345 * @license lucide-react v0.453.0 - ISC 346 * 347 * This source code is licensed under the ISC license. 348 * See the LICENSE file in the root directory of this source tree. 349 */const Eo=qe("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** 350 * @license lucide-react v0.453.0 - ISC 351 * 352 * This source code is licensed under the ISC license. 353 * See the LICENSE file in the root directory of this source tree. 354 */const vpe=qe("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/** 355 * @license lucide-react v0.453.0 - ISC 356 * 357 * This source code is licensed under the ISC license. 358 * See the LICENSE file in the root directory of this source tree.
359 */const tz=qe("Focus",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/** 360 * @license lucide-react v0.453.0 - ISC 361 * 362 * This source code is licensed under the ISC license. 363 * See the LICENSE file in the root directory of this source tree. 364 */const vm=qe("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"}]]);/** 365 * @license lucide-react v0.453.0 - ISC 366 * 367 * This source code is licensed under the ISC license. 368 * See the LICENSE file in the root directory of this source tree. 369 */const mk=qe("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** 370 * @license lucide-react v0.453.0 - ISC 371 * 372 * This source code is licensed under the ISC license. 373 * See the LICENSE file in the root directory of this source tree. 374 */const ype=qe("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/** 375 * @license lucide-react v0.453.0 - ISC 376 * 377 * This source code is licensed under the ISC license. 378 * See the LICENSE file in the root directory of this source tree. 379 */const Ig=qe("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 380 * @license lucide-react v0.453.0 - ISC 381 * 382 * This source code is licensed under the ISC license. 383 * See the LICENSE file in the root directory of this source tree. 384 */const wpe=qe("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/** 385 * @license lucide-react v0.453.0 - ISC 386 * 387 * This source code is licensed under the ISC license. 388 * See the LICENSE file in the root directory of this source tree. 389 */const Ppe=qe("Hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]]);/** 390 * @license lucide-react v0.453.0 - ISC 391 * 392 * This source code is licensed under the ISC license. 393 * See the LICENSE file in the root directory of this source tree. 394 */const jpe=qe("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]);/** 395 * @license lucide-react v0.453.0 - ISC 396 * 397 * This source code is licensed under the ISC license. 398 * See the LICENSE file in the root directory of this source tree. 399 */const N6=qe("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 400 * @license lucide-react v0.453.0 - ISC 401 * 402 * This source code is licensed under the ISC license. 403 * See the LICENSE file in the root directory of this source tree. 404 */const tu=qe("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** 405 * @license lucide-react v0.453.0 - ISC 406 * 407 * This source code is licensed under the ISC license. 408 * See the LICENSE file in the root directory of this source tree. 409 */const hW=qe("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"}]]);/** 410 * @license lucide-react v0.453.0 - ISC 411 * 412 * This source code is licensed under the ISC license. 413 * See the LICENSE file in the root directory of this source tree. 414 */const oy=qe("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/** 415 * @license lucide-react v0.453.0 - ISC 416 * 417 * This source code is licensed under the ISC license. 418 * See the LICENSE file in the root directory of this source tree. 419 */const kpe=qe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 420 * @license lucide-react v0.453.0 - ISC 421 * 422 * This source code is licensed under the ISC license. 423 * See the LICENSE file in the root directory of this source tree. 424 */const Npe=qe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 425 * @license lucide-react v0.453.0 - ISC 426 * 427 * This source code is licensed under the ISC license. 428 * See the LICENSE file in the root directory of this source tree. 429 */const Ape=qe("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 430 * @license lucide-react v0.453.0 - ISC 431 * 432 * This source code is licensed under the ISC license. 433 * See the LICENSE file in the root directory of this source tree.
434 */const l2=qe("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 435 * @license lucide-react v0.453.0 - ISC 436 * 437 * This source code is licensed under the ISC license. 438 * See the LICENSE file in the root directory of this source tree. 439 */const hu=qe("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"}]]);/** 440 * @license lucide-react v0.453.0 - ISC 441 * 442 * This source code is licensed under the ISC license. 443 * See the LICENSE file in the root directory of this source tree. 444 */const c2=qe("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 445 * @license lucide-react v0.453.0 - ISC 446 * 447 * This source code is licensed under the ISC license. 448 * See the LICENSE file in the root directory of this source tree. 449 */const Spe=qe("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"}]]);/** 450 * @license lucide-react v0.453.0 - ISC 451 * 452 * This source code is licensed under the ISC license. 453 * See the LICENSE file in the root directory of this source tree. 454 */const Lg=qe("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 455 * @license lucide-react v0.453.0 - ISC 456 * 457 * This source code is licensed under the ISC license. 458 * See the LICENSE file in the root directory of this source tree. 459 */const Ta=qe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 460 * @license lucide-react v0.453.0 - ISC 461 * 462 * This source code is licensed under the ISC license. 463 * See the LICENSE file in the root directory of this source tree. 464 */const Cpe=qe("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/** 465 * @license lucide-react v0.453.0 - ISC 466 * 467 * This source code is licensed under the ISC license. 468 * See the LICENSE file in the root directory of this source tree. 469 */const d2=qe("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 470 * @license lucide-react v0.453.0 - ISC 471 * 472 * This source code is licensed under the ISC license. 473 * See the LICENSE file in the root directory of this source tree. 474 */const ng=qe("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/** 475 * @license lucide-react v0.453.0 - ISC 476 * 477 * This source code is licensed under the ISC license. 478 * See the LICENSE file in the root directory of this source tree. 479 */const ly=qe("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 480 * @license lucide-react v0.453.0 - ISC 481 * 482 * This source code is licensed under the ISC license. 483 * See the LICENSE file in the root directory of this source tree. 484 */const A6=qe("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/** 485 * @license lucide-react v0.453.0 - ISC 486 * 487 * This source code is licensed under the ISC license. 488 * See the LICENSE file in the root directory of this source tree. 489 */const rf=qe("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]]);/** 490 * @license lucide-react v0.453.0 - ISC 491 * 492 * This source code is licensed under the ISC license. 493 * See the LICENSE file in the root directory of this source tree. 494 */const gW=qe("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"}]]);/** 495 * @license lucide-react v0.453.0 - ISC 496 * 497 * This source code is licensed under the ISC license. 498 * See the LICENSE file in the root directory of this source tree. 499 */const xW=qe("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 500 * @license lucide-react v0.453.0 - ISC 501 * 502 * This source code is licensed under the ISC license. 503 * See the LICENSE file in the root directory of this source tree. 504 */const sg=qe("MessageSquarePlus",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]]);/** 505 * @license lucide-react v0.453.0 - ISC 506 * 507 * This source code is licensed under the ISC license. 508 * See the LICENSE file in the root directory of this source tree. 509 */const gC=qe("MessageSquareText",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]]);/** 510 * @license lucide-react v0.453.0 - ISC 511 * 512 * This source code is licensed under the ISC license. 513 * See the LICENSE file in the root directory of this source tree. 514 */const cy=qe("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 515 * @license lucide-react v0.453.0 - ISC 516 * 517 * This source code is licensed under the ISC license. 518 * See the LICENSE file in the root directory of this source tree.
519 */const Mv=qe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 520 * @license lucide-react v0.453.0 - ISC 521 * 522 * This source code is licensed under the ISC license. 523 * See the LICENSE file in the root directory of this source tree. 524 */const Tpe=qe("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 525 * @license lucide-react v0.453.0 - ISC 526 * 527 * This source code is licensed under the ISC license. 528 * See the LICENSE file in the root directory of this source tree. 529 */const Dpe=qe("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 530 * @license lucide-react v0.453.0 - ISC 531 * 532 * This source code is licensed under the ISC license. 533 * See the LICENSE file in the root directory of this source tree. 534 */const az=qe("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 535 * @license lucide-react v0.453.0 - ISC 536 * 537 * This source code is licensed under the ISC license. 538 * See the LICENSE file in the root directory of this source tree. 539 */const bW=qe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 540 * @license lucide-react v0.453.0 - ISC 541 * 542 * This source code is licensed under the ISC license. 543 * See the LICENSE file in the root directory of this source tree. 544 */const Epe=qe("PartyPopper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);/** 545 * @license lucide-react v0.453.0 - ISC 546 * 547 * This source code is licensed under the ISC license. 548 * See the LICENSE file in the root directory of this source tree. 549 */const Fd=qe("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/** 550 * @license lucide-react v0.453.0 - ISC 551 * 552 * This source code is licensed under the ISC license. 553 * See the LICENSE file in the root directory of this source tree. 554 */const Fg=qe("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 555 * @license lucide-react v0.453.0 - ISC 556 * 557 * This source code is licensed under the ISC license. 558 * See the LICENSE file in the root directory of this source tree. 559 */const Mpe=qe("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/** 560 * @license lucide-react v0.453.0 - ISC 561 * 562 * This source code is licensed under the ISC license. 563 * See the LICENSE file in the root directory of this source tree. 564 */const Qp=qe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 565 * @license lucide-react v0.453.0 - ISC 566 * 567 * This source code is licensed under the ISC license. 568 * See the LICENSE file in the root directory of this source tree. 569 */const qi=qe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 570 * @license lucide-react v0.453.0 - ISC 571 * 572 * This source code is licensed under the ISC license. 573 * See the LICENSE file in the root directory of this source tree. 574 */const Ope=qe("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/** 575 * @license lucide-react v0.453.0 - ISC 576 * 577 * This source code is licensed under the ISC license. 578 * See the LICENSE file in the root directory of this source tree. 579 */const vo=qe("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"}]]);/** 580 * @license lucide-react v0.453.0 - ISC 581 * 582 * This source code is licensed under the ISC license. 583 * See the LICENSE file in the root directory of this source tree. 584 */const Rpe=qe("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
584kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 585 * @license lucide-react v0.453.0 - ISC 586 * 587 * This source code is licensed under the ISC license. 588 * See the LICENSE file in the root directory of this source tree. 589 */const u2=qe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 590 * @license lucide-react v0.453.0 - ISC 591 * 592 * This source code is licensed under the ISC license. 593 * See the LICENSE file in the root directory of this source tree. 594 */const vW=qe("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/** 595 * @license lucide-react v0.453.0 - ISC 596 * 597 * This source code is licensed under the ISC license. 598 * See the LICENSE file in the root directory of this source tree. 599 */const zpe=qe("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 600 * @license lucide-react v0.453.0 - ISC 601 * 602 * This source code is licensed under the ISC license. 603 * See the LICENSE file in the root directory of this source tree. 604 */const yW=qe("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/** 605 * @license lucide-react v0.453.0 - ISC 606 * 607 * This source code is licensed under the ISC license. 608 * See the LICENSE file in the root directory of this source tree. 609 */const xl=qe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 610 * @license lucide-react v0.453.0 - ISC 611 * 612 * This source code is licensed under the ISC license. 613 * See the LICENSE file in the root directory of this source tree. 614 */const p2=qe("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"}]]);/** 615 * @license lucide-react v0.453.0 - ISC 616 * 617 * This source code is licensed under the ISC license. 618 * See the LICENSE file in the root directory of this source tree. 619 */const wW=qe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 620 * @license lucide-react v0.453.0 - ISC 621 * 622 * This source code is licensed under the ISC license. 623 * See the LICENSE file in the root directory of this source tree. 624 */const _pe=qe("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 625 * @license lucide-react v0.453.0 - ISC 626 * 627 * This source code is licensed under the ISC license. 628 * See the LICENSE file in the root directory of this source tree. 629 */const Lr=qe("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 630 * @license lucide-react v0.453.0 - ISC 631 * 632 * This source code is licensed under the ISC license. 633 * See the LICENSE file in the root directory of this source tree. 634 */const bl=qe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
634y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 635 * @license lucide-react v0.453.0 - ISC 636 * 637 * This source code is licensed under the ISC license. 638 * See the LICENSE file in the root directory of this source tree. 639 */const rg=qe("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 640 * @license lucide-react v0.453.0 - ISC 641 * 642 * This source code is licensed under the ISC license. 643 * See the LICENSE file in the root directory of this source tree. 644 */const Ov=qe("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/** 645 * @license lucide-react v0.453.0 - ISC 646 * 647 * This source code is licensed under the ISC license. 648 * See the LICENSE file in the root directory of this source tree. 649 */const S6=qe("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/** 650 * @license lucide-react v0.453.0 - ISC 651 * 652 * This source code is licensed under the ISC license. 653 * See the LICENSE file in the root directory of this source tree. 654 */const nz=qe("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 655 * @license lucide-react v0.453.0 - ISC 656 * 657 * This source code is licensed under the ISC license. 658 * See the LICENSE file in the root directory of this source tree. 659 */const C6=qe("Snowflake",[["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"m20 16-4-4 4-4",key:"rquw4f"}],["path",{d:"m4 8 4 4-4 4",key:"12s3z9"}],["path",{d:"m16 4-4 4-4-4",key:"1tumq1"}],["path",{d:"m8 20 4-4 4 4",key:"9p200w"}]]);/** 660 * @license lucide-react v0.453.0 - ISC 661 * 662 * This source code is licensed under the ISC license. 663 * See the LICENSE file in the root directory of this source tree. 664 */const pn=qe("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"}]]);/** 665 * @license lucide-react v0.453.0 - ISC 666 * 667 * This source code is licensed under the ISC license. 668 * See the LICENSE file in the root directory of this source tree. 669 */const Sn=qe("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 670 * @license lucide-react v0.453.0 - ISC 671 * 672 * This source code is licensed under the ISC license. 673 * See the LICENSE file in the root directory of this source tree. 674 */const ym=qe("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);/** 675 * @license lucide-react v0.453.0 - ISC 676 * 677 * This source code is licensed under the ISC license. 678 * See the LICENSE file in the root directory of this source tree. 679 */const fk=qe("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 680 * @license lucide-react v0.453.0 - ISC 681 * 682 * This source code is licensed under the ISC license. 683 * See the LICENSE file in the root directory of this source tree. 684 */const Os=qe("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"}]]);/** 685 * @license lucide-react v0.453.0 - ISC 686 * 687 * This source code is licensed under the ISC license. 688 * See the LICENSE file in the root directory of this source tree.
689 */const Ipe=qe("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/** 690 * @license lucide-react v0.453.0 - ISC 691 * 692 * This source code is licensed under the ISC license. 693 * See the LICENSE file in the root directory of this source tree. 694 */const m2=qe("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/** 695 * @license lucide-react v0.453.0 - ISC 696 * 697 * This source code is licensed under the ISC license. 698 * See the LICENSE file in the root directory of this source tree. 699 */const au=qe("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/** 700 * @license lucide-react v0.453.0 - ISC 701 * 702 * This source code is licensed under the ISC license. 703 * See the LICENSE file in the root directory of this source tree. 704 */const ur=qe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 705 * @license lucide-react v0.453.0 - ISC 706 * 707 * This source code is licensed under the ISC license. 708 * See the LICENSE file in the root directory of this source tree. 709 */const PW=qe("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** 710 * @license lucide-react v0.453.0 - ISC 711 * 712 * This source code is licensed under the ISC license. 713 * See the LICENSE file in the root directory of this source tree. 714 */const er=qe("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"}]]);/** 715 * @license lucide-react v0.453.0 - ISC 716 * 717 * This source code is licensed under the ISC license. 718 * See the LICENSE file in the root directory of this source tree. 719 */const Xx=qe("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"}]]);/** 720 * @license lucide-react v0.453.0 - ISC 721 * 722 * This source code is licensed under the ISC license. 723 * See the LICENSE file in the root directory of this source tree. 724 */const aa=qe("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 725 * @license lucide-react v0.453.0 - ISC 726 * 727 * This source code is licensed under the ISC license. 728 * See the LICENSE file in the root directory of this source tree. 729 */const jW=qe("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/** 730 * @license lucide-react v0.453.0 - ISC 731 * 732 * This source code is licensed under the ISC license. 733 * See the LICENSE file in the root directory of this source tree. 734 */const dy=qe("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"}]]);/** 735 * @license lucide-react v0.453.0 - ISC 736 * 737 * This source code is licensed under the ISC license. 738 * See the LICENSE file in the root directory of this source tree. 739 */const kW=qe("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"}]]);/** 740 * @license lucide-react v0.453.0 - ISC 741 * 742 * This source code is licensed under the ISC license. 743 * See the LICENSE file in the root directory of this source tree. 744 */const Lpe=qe("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** 745 * @license lucide-react v0.453.0 - ISC 746 * 747 * This source code is licensed under the ISC license. 748 * See the LICENSE file in the root directory of this source tree. 749 */const ln=qe("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"}]]);/** 750 * @license lucide-react v0.453.0 - ISC 751 * 752 * This source code is licensed under the ISC license. 753 * See the LICENSE file in the root directory of this source tree. 754 */const T6=qe("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/** 755 * @license lucide-react v0.453.0 - ISC 756 * 757 * This source code is licensed under the ISC license. 758 * See the LICENSE file in the root directory of this source tree. 759 */const NW=qe("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** 760 * @license lucide-react v0.453.0 - ISC 761 * 762 * This source code is licensed under the ISC license. 763 * See the LICENSE file in the root directory of this source tree. 764 */const Fpe=qe("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}
764],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 765 * @license lucide-react v0.453.0 - ISC 766 * 767 * This source code is licensed under the ISC license. 768 * See the LICENSE file in the root directory of this source tree. 769 */const Bpe=qe("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/** 770 * @license lucide-react v0.453.0 - ISC 771 * 772 * This source code is licensed under the ISC license. 773 * See the LICENSE file in the root directory of this source tree. 774 */const Zn=qe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 775 * @license lucide-react v0.453.0 - ISC 776 * 777 * This source code is licensed under the ISC license. 778 * See the LICENSE file in the root directory of this source tree. 779 */const vs=qe("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"}]]);/** 780 * @license lucide-react v0.453.0 - ISC 781 * 782 * This source code is licensed under the ISC license. 783 * See the LICENSE file in the root directory of this source tree. 784 */const Gpe=qe("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/** 785 * @license lucide-react v0.453.0 - ISC 786 * 787 * This source code is licensed under the ISC license. 788 * See the LICENSE file in the root directory of this source tree. 789 */const Hpe=qe("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function qpe(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var a,n,r,i,o=[],l="",c=e.split("/");for(c[0]||c.shift();r=c.shift();)a=r[0],a==="*"?(o.push(a),l+=r[1]==="?"?"(?:/(.*))?":"/(.*)"):a===":"?(n=r.indexOf("?",1),i=r.indexOf(".",1),o.push(r.substring(1,~n?n:~i?i:r.length)),l+=~n&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(l+=(~n?"?":"")+"\\"+r.substring(i))):l+="/"+r;return{keys:o,pattern:new RegExp("^"+l+(t?"(?=$|/)":"/?$"),"i")}}var hk={exports:{}},gk={};/** 790 * @license React 791 * use-sync-external-store-shim.production.js 792 * 793 * Copyright (c) Meta Platforms, Inc. and affiliates. 794 * 795 * This source code is licensed under the MIT license found in the 796 * LICENSE file in the root directory of this source tree. 797 */var sz;function Upe(){if(sz)return gk;sz=1;var e=q1();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var a=typeof Object.is=="function"?Object.is:t,n=e.useState,r=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function l(f,h){var x=h(),b=n({inst:{value:x,getSnapshot:h}}),y=b[0].inst,w=b[1];return i(function(){y.value=x,y.getSnapshot=h,c(y)&&w({inst:y})},[f,x,h]),r(function(){return c(y)&&w({inst:y}),f(function(){c(y)&&w({inst:y})})},[f]),o(x),x}function c(f){var h=f.getSnapshot;f=f.value;try{var x=h();return!a(f,x)}catch{return!0}}function d(f,h){return h()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return gk.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,gk}var rz;function Vpe(){return rz||(rz=1,hk.exports=Upe()),hk.exports}var AW=Vpe();const Qpe=U1.useInsertionEffect,Wpe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kpe=Wpe?P.useLayoutEffect:P.useEffect,$pe=Qpe||Kpe,SW=e=>{const t=P.useRef([e,(...a)=>t[0](...a)]).current;return $pe(()=>{t[0]=e}),t[1]},Xpe="popstate",D6="pushState",E6="replaceState",Ype="hashchange",iz=[Xpe,D6,E6,Ype],Zpe=e=>{for(const t of iz)addEventListener(t,e);return()=>{for(const t of iz)removeEventListener(t,e)}},CW=(e,t)=>AW.useSyncExternalStore(Zpe,e,t),Jpe=()=>location.search,eme=({ssrSearch:e=""}={})=>CW(Jpe,()=>e),oz=()=>location.pathname,tme=({ssrPath:e}={})=>CW(oz,e?()=>e:oz),ame=(e,{replace:t=!1,state:a=null}={})=>history[t?E6:D6](a,"",e),nme=(e={})=>[tme(e),ame],lz=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[lz]>"u"){for(const e of[D6,E6]){const t=history[e];history[e]=function(){const a=t.apply(this,arguments),n=new Event(e);return n.arguments=arguments,dispatchEvent(n),a}}Object.defineProperty(window,lz,{value:!0})}const sme=(e,t)=>
797t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",TW=(e="")=>e==="/"?"":e,rme=(e,t)=>e[0]==="~"?e.slice(1):TW(t)+e,ime=(e="",t)=>sme(cz(TW(e)),cz(t)),cz=e=>{try{return decodeURI(e)}catch{return e}},DW={hook:nme,searchHook:eme,parser:qpe,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},EW=P.createContext(DW),of=()=>P.useContext(EW),MW={},OW=P.createContext(MW),Ol=()=>P.useContext(OW),f2=e=>{const[t,a]=e.hook(e);return[ime(e.base,t),SW((n,r)=>a(rme(n,e.base),r))]},Mo=()=>f2(of()),M6=(e,t,a,n)=>{const{pattern:r,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",n),o=r.exec(a)||[],[l,...c]=o;return l!==void 0?[!0,(()=>{const d=i!==!1?Object.fromEntries(i.map((f,h)=>[f,c[h]])):o.groups;let m={...c};return d&&Object.assign(m,d),m})(),...n?[l]:[]]:[!1,null]},ome=e=>M6(of().parser,e,Mo()[0]),lme=({children:e,...t})=>{const a=of(),n=t.hook?DW:a;let r=n;const[i,o]=t.ssrPath?.split("?")??[];o&&(t.ssrSearch=o,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let l=P.useRef({}),c=l.current,d=c;for(let m in n){const f=m==="base"?n[m]+(t[m]||""):t[m]||n[m];c===d&&f!==d[m]&&(l.current=d={...d}),d[m]=f,(f!==n[m]||f!==r[m])&&(r=d)}return P.createElement(EW.Provider,{value:r,children:e})},dz=({children:e,component:t},a)=>t?P.createElement(t,{params:a}):typeof e=="function"?e(a):e,cme=e=>{let t=P.useRef(MW);const a=t.current;return t.current=Object.keys(e).length!==Object.keys(a).length||Object.entries(e).some(([n,r])=>r!==a[n])?e:a},da=({path:e,nest:t,match:a,...n})=>{const r=of(),[i]=f2(r),[o,l,c]=a??M6(r.parser,e,i,t),d=cme({...Ol(),...l});if(!o)return null;const m=c?P.createElement(lme,{base:c},dz(n,d)):dz(n,d);return P.createElement(OW.Provider,{value:d,children:m})},jt=P.forwardRef((e,t)=>{const a=of(),[n,r]=f2(a),{to:i="",href:o=i,onClick:l,asChild:c,children:d,className:m,replace:f,state:h,...x}=e,b=SW(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(l?.(w),w.defaultPrevented||(w.preventDefault(),r(o,e)))}),y=a.hrefs(o[0]==="~"?o.slice(1):a.base+o,a);return c&&P.isValidElement(d)?P.cloneElement(d,{onClick:b,href:y}):P.createElement("a",{...x,onClick:b,href:y,className:m?.call?m(n===o):m,children:d,ref:t})}),xC=e=>Array.isArray(e)?e.flatMap(t=>xC(t&&t.type===P.Fragment?t.props.children:t)):[e],dme=({children:e,location:t})=>{const a=of(),[n]=f2(a);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),xC(e).forEach(i=>{if(P.isValidElement(i)&&i.props.path){const o=i.props.path;window.__WOUTER_ROUTES__.includes(o)||window.__WOUTER_ROUTES__.push(o)}}));for(const r of xC(e)){let i=0;if(P.isValidElement(r)&&(i=M6(a.parser,r.props.path,t||n,r.props.nest))[0])return P.cloneElement(r,{match:i})}return null};function uz(){const[,e]=Mo(),t=()=>{e("/")};return s.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:s.jsx(ma,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:s.jsxs(fa,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:s.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[s.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),s.jsx(k6,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),s.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),s.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),s.jsxs("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",s.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),s.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:s.jsxs(Ie,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[s.jsx(hW,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}class ume extends P.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?s.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:s.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[s.jsx(Xx,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),s.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),s.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:s.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),s.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:zt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[s.jsx(u2,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const pme=P.createContext(void 0);function mme({children:e,defaultTheme:t="light",switchable:a=!1}){const[n,r]=P.useState(()=>a&&localStorage.getItem("theme")||t);P.useEffect(()=>{const o=document.documentElement;n==="dark"?o.classList.add("dark"):o.classList.remove("dark"),a&&localStorage.setItem("theme",n)},[n,a]);const i=a?()=>{r(o=>o==="light"?"dark":"light")}:void 0;return s.jsx(pme.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:n,toggleTheme:i,switchable:a},children:e})}const Rn=()=>{const e="https://manus.im",t="c4xuHqfv3FCAWFMWo65Rm2",a=`${window.location.origin}/api/oauth/callback`,n=crypto.randomUUID();document.cookie=`${_oe}=${n}; Path=/; Max-Age=600; SameSite=None; Secure`;const r=Ioe({redirectUri:a,nonce:n}),i=new URL(`${e}/app-auth`);i.searchParams.set("appId",t),i.searchParams.set("redirectUri",a),i.searchParams.set("state",r),i.searchParams.set("type","signIn"),window.location.href=i.toString()};function Ma(e){const{redirectOnUnauthenticated:t=!1,redirectPath:a}=e??{},n=J.useUtils(),r=J.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),i=J.auth.logout.useMutation({onSuccess:()=>{n.auth.me.setData(void 0,null)}}),o=P.useCallback(async()=>{try{await i.mutateAsync()}catch(c){if(c instanceof hm&&c.data?.code==="UNAUTHORIZED")return;throw c}finally{try{sessionStorage.removeItem("manus-cookie")}catch{}
vendor: 4,217 bytes, line 797
797n.auth.me.setData(void 0,null),await n.auth.me.invalidate()}},[i,n]),l=P.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(r.data)),{user:r.data??null,loading:r.isLoading||i.isPending,error:r.error??i.error??null,isAuthenticated:!!r.data}),[r.data,r.error,r.isLoading,i.error,i.isPending]);return P.useEffect(()=>{t&&(r.isLoading||i.isPending||l.user||typeof window>"u"||a&&window.location.pathname===a||(a?window.location.href=a:Rn()))},[t,a,i.isPending,r.isLoading,l.user]),{...l,refresh:()=>r.refetch(),logout:o}}var xk="focusScope.autoFocusOnMount",bk="focusScope.autoFocusOnUnmount",pz={bubbles:!1,cancelable:!0},fme="FocusScope",h2=P.forwardRef((e,t)=>{const{loop:a=!1,trapped:n=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[l,c]=P.useState(null),d=$i(r),m=$i(i),f=P.useRef(null),h=Va(t,y=>c(y)),x=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(n){let y=function(k){if(x.paused||!l)return;const D=k.target;l.contains(D)?f.current=D:bc(f.current,{select:!0})},w=function(k){if(x.paused||!l)return;const D=k.relatedTarget;D!==null&&(l.contains(D)||bc(f.current,{select:!0}))},j=function(k){if(document.activeElement===document.body)for(const C of k)C.removedNodes.length>0&&bc(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const N=new MutationObserver(j);return l&&N.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),N.disconnect()}}},[n,l,x.paused]),P.useEffect(()=>{if(l){fz.add(x);const y=document.activeElement;if(!l.contains(y)){const j=new CustomEvent(xk,pz);l.addEventListener(xk,d),l.dispatchEvent(j),j.defaultPrevented||(hme(yme(RW(l)),{select:!0}),document.activeElement===y&&bc(l))}return()=>{l.removeEventListener(xk,d),setTimeout(()=>{const j=new CustomEvent(bk,pz);l.addEventListener(bk,m),l.dispatchEvent(j),j.defaultPrevented||bc(y??document.body,{select:!0}),l.removeEventListener(bk,m),fz.remove(x)},0)}}},[l,d,m,x]);const b=P.useCallback(y=>{if(!a&&!n||x.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,j=document.activeElement;if(w&&j){const N=y.currentTarget,[k,D]=gme(N);k&&D?!y.shiftKey&&j===D?(y.preventDefault(),a&&bc(k,{select:!0})):y.shiftKey&&j===k&&(y.preventDefault(),a&&bc(D,{select:!0})):j===N&&y.preventDefault()}},[a,n,x.paused]);return s.jsx(Zt.div,{tabIndex:-1,...o,ref:h,onKeyDown:b})});h2.displayName=fme;function hme(e,{select:t=!1}={}){const a=document.activeElement;for(const n of e)if(bc(n,{select:t}),document.activeElement!==a)return}function gme(e){const t=RW(e),a=mz(t,e),n=mz(t.reverse(),e);return[a,n]}function RW(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function mz(e,t){for(const a of e)if(!xme(a,{upTo:t}))return a}function xme(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bme(e){return e instanceof HTMLInputElement&&"select"in e}function bc(e,{select:t=!1}={}){if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),e!==a&&bme(e)&&t&&e.select()}}var fz=vme();function vme(){let e=[];return{add(t){const a=e[0];t!==a&&a?.pause(),e=hz(e,t),e.unshift(t)},remove(t){e=hz(e,t),e[0]?.resume()}}}function hz(e,t){const a=[...e],n=a.indexOf(t);return n!==-1&&a.splice(n,1),a}function yme(e){return e.filter(t=>t.tagName!=="A")}var vk=0;function O6(){P.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gz()),document.body.insertAdjacentElement("beforeend",e[1]??gz()),vk++,()=>{vk===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vk--}},[])}function gz(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,687 bytes, lines 797-812
797style.position="fixed",e.style.pointerEvents="none",e}var mo=function(){return mo=Object.assign||function(t){for(var a,n=1,r=arguments.length;n<r;n++){a=arguments[n];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},mo.apply(this,arguments)};function zW(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a}function wme(e,t,a){if(a||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Rv="right-scroll-bar-position",zv="width-before-scroll-bar",Pme="with-scroll-bars-hidden",jme="--removed-body-scroll-bar-size";function yk(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function kme(e,t){var a=P.useState(function(){return{value:e,callback:t,facade:{get current(){return a.value},set current(n){var r=a.value;r!==n&&(a.value=n,a.callback(n,r))}}}})[0];return a.callback=t,a.facade}var Nme=typeof window<"u"?P.useLayoutEffect:P.useEffect,xz=new WeakMap;function Ame(e,t){var a=kme(null,function(n){return e.forEach(function(r){return yk(r,n)})});return Nme(function(){var n=xz.get(a);if(n){var r=new Set(n),i=new Set(e),o=a.current;r.forEach(function(l){i.has(l)||yk(l,null)}),i.forEach(function(l){r.has(l)||yk(l,o)})}xz.set(a,e)},[e]),a}function Sme(e){return e}function Cme(e,t){t===void 0&&(t=Sme);var a=[],n=!1,r={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:e},useMedium:function(i){var o=t(i,n);return a.push(o),function(){a=a.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;a.length;){var o=a;a=[],o.forEach(i)}a={push:function(l){return i(l)},filter:function(){return a}}},assignMedium:function(i){n=!0;var o=[];if(a.length){var l=a;a=[],l.forEach(i),o=a}var c=function(){var m=o;o=[],m.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),a={push:function(m){o.push(m),d()},filter:function(m){return o=o.filter(m),a}}}};return r}function Tme(e){e===void 0&&(e={});var t=Cme(null);return t.options=mo({async:!0,ssr:!1},e),t}var _W=function(e){var t=e.sideCar,a=zW(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return P.createElement(n,mo({},a))};_W.isSideCarExport=!0;function Dme(e,t){return e.useMedium(t),_W}var IW=Tme(),wk=function(){},g2=P.forwardRef(function(e,t){var a=P.useRef(null),n=P.useState({onScrollCapture:wk,onWheelCapture:wk,onTouchMoveCapture:wk}),r=n[0],i=n[1],o=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,m=e.enabled,f=e.shards,h=e.sideCar,x=e.noRelative,b=e.noIsolation,y=e.inert,w=e.allowPinchZoom,j=e.as,N=j===void 0?"div":j,k=e.gapMode,D=zW(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,S=Ame([a,t]),A=mo(mo({},D),r);return P.createElement(P.Fragment,null,m&&P.createElement(C,{sideCar:IW,removeScrollBar:d,shards:f,noRelative:x,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!w,lockRef:a,gapMode:k}),o?P.cloneElement(P.Children.only(l),mo(mo({},A),{ref:S})):P.createElement(N,mo({},A,{className:c,ref:S}),l))});g2.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};g2.classNames={fullWidth:zv,zeroRight:Rv};var Eme=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Mme(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Eme();return t&&e.setAttribute("nonce",t),e}function Ome(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Rme(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zme=function(){var e=0,t=null;return{add:function(a){e==0&&(t=Mme())&&(Ome(t,a),Rme(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_me=function(){var e=zme();return function(t,a){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&a])}},LW=function(){var e=_me(),t=function(a){var n=a.styles,r=a.dynamic;return e(n,r),null};return t},Ime={left:0,top:0,right:0,gap:0},Pk=function(e){return parseInt(e||"",10)||0},Lme=function(e){var t=window.getComputedStyle(document.body),a=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Pk(a),Pk(n),Pk(r)]},Fme=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ime;var t=Lme(e),a=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-a+t[2]-t[0])}},Bme=LW(),om="data-scroll-locked",Gme=function(e,t,a,n){var r=e.left,i=e.top,o=e.right,l=e.gap;return a===void 0&&(a="margin"),` 798 .`.concat(Pme,` { 799 overflow: hidden `).concat(n,`; 800 padding-right: `).concat(l,"px ").concat(n,`; 801 } 802 body[`).concat(om,`] { 803 overflow: hidden `).concat(n,`; 804 overscroll-behavior: contain; 805 `).concat([t&&"position: relative ".concat(n,";"),a==="margin"&&` 806 padding-left: `.concat(r,`px; 807 padding-top: `).concat(i,`px; 808 padding-right: `).concat(o,`px; 809 margin-left:0; 810 margin-top:0; 811 margin-right: `).concat(l,"px ").concat(n,`; 812 `),a==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";
812")].filter(Boolean).join(""),` 813 } 814 815 .`).concat(Rv,` { 816 right: `).concat(l,"px ").concat(n,`; 817 } 818 819 .`).concat(zv,` { 820 margin-right: `).concat(l,"px ").concat(n,`; 821 } 822 823 .`).concat(Rv," .").concat(Rv,` { 824 right: 0 `).concat(n,`; 825 } 826 827 .`).concat(zv," .").concat(zv,` { 828 margin-right: 0 `).concat(n,`; 829 } 830 831 body[`).concat(om,`] { 832 `).concat(jme,": ").concat(l,`px; 833 } 834`)},bz=function(){var e=parseInt(document.body.getAttribute(om)||"0",10);return isFinite(e)?e:0},Hme=function(){P.useEffect(function(){return document.body.setAttribute(om,(bz()+1).toString()),function(){var e=bz()-1;e<=0?document.body.removeAttribute(om):document.body.setAttribute(om,e.toString())}},[])},qme=function(e){var t=e.noRelative,a=e.noImportant,n=e.gapMode,r=n===void 0?"margin":n;Hme();var i=P.useMemo(function(){return Fme(r)},[r]);return P.createElement(Bme,{styles:Gme(i,!t,r,a?"":"!important")})},bC=!1;if(typeof window<"u")try{var G0=Object.defineProperty({},"passive",{get:function(){return bC=!0,!0}});window.addEventListener("test",G0,G0),window.removeEventListener("test",G0,G0)}catch{bC=!1}var Np=bC?{passive:!1}:!1,Ume=function(e){return e.tagName==="TEXTAREA"},FW=function(e,t){if(!(e instanceof Element))return!1;var a=window.getComputedStyle(e);return a[t]!=="hidden"&&!(a.overflowY===a.overflowX&&!Ume(e)&&a[t]==="visible")},Vme=function(e){return FW(e,"overflowY")},Qme=function(e){return FW(e,"overflowX")},vz=function(e,t){var a=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=BW(e,n);if(r){var i=GW(e,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==a.body);return!1},Wme=function(e){var t=e.scrollTop,a=e.scrollHeight,n=e.clientHeight;return[t,a,n]},Kme=function(e){var t=e.scrollLeft,a=e.scrollWidth,n=e.clientWidth;return[t,a,n]},BW=function(e,t){return e==="v"?Vme(t):Qme(t)},GW=function(e,t){return e==="v"?Wme(t):Kme(t)},$me=function(e,t){return e==="h"&&t==="rtl"?-1:1},Xme=function(e,t,a,n,r){var i=$me(e,window.getComputedStyle(t).direction),o=i*n,l=a.target,c=t.contains(l),d=!1,m=o>0,f=0,h=0;do{if(!l)break;var x=GW(e,l),b=x[0],y=x[1],w=x[2],j=y-w-i*b;(b||j)&&BW(e,l)&&(f+=j,h+=b);var N=l.parentNode;l=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(m&&Math.abs(f)<1||!m&&Math.abs(h)<1)&&(d=!0),d},H0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yz=function(e){return[e.deltaX,e.deltaY]},wz=function(e){return e&&"current"in e?e.current:e},Yme=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zme=function(e){return` 835 .block-interactivity-`.concat(e,` {pointer-events: none;} 836 .allow-interactivity-`).concat(e,` {pointer-events: all;} 837`)},Jme=0,Ap=[];function efe(e){var t=P.useRef([]),a=P.useRef([0,0]),n=P.useRef(),r=P.useState(Jme++)[0],i=P.useState(LW)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var y=wme([e.lockRef.current],(e.shards||[]).map(wz),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var l=P.useCallback(function(y,w){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!o.current.allowPinchZoom;var j=H0(y),N=a.current,k="deltaX"in y?y.deltaX:N[0]-j[0],D="deltaY"in y?y.deltaY:N[1]-j[1],C,S=y.target,A=Math.abs(k)>Math.abs(D)?"h":"v";if("touches"in y&&A==="h"&&S.type==="range")return!1;var E=vz(A,S);if(!E)return!0;if(E?C=A:(C=A==="v"?"h":"v",E=vz(A,S)),!E)return!1;if(!n.current&&"changedTouches"in y&&(k||D)&&(n.current=C),!C)return!0;var R=n.current||C;return Xme(R,w,y,R==="h"?k:D)},[]),c=P.useCallback(function(y){var w=y;if(!(!Ap.length||Ap[Ap.length-1]!==i)){var j="deltaY"in w?yz(w):H0(w),N=t.current.filter(function(C){return C.name===w.type&&(C.target===w.target||w.target===C.shadowParent)&&Yme(C.delta,j)})[0];if(N&&N.should){w.cancelable&&w.preventDefault();return}
vendor: 9,862 bytes, lines 837-841
837if(!N){var k=(o.current.shards||[]).map(wz).filter(Boolean).filter(function(C){return C.contains(w.target)}),D=k.length>0?l(w,k[0]):!o.current.noIsolation;D&&w.cancelable&&w.preventDefault()}}},[]),d=P.useCallback(function(y,w,j,N){var k={name:y,delta:w,target:j,should:N,shadowParent:tfe(j)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(D){return D!==k})},1)},[]),m=P.useCallback(function(y){a.current=H0(y),n.current=void 0},[]),f=P.useCallback(function(y){d(y.type,yz(y),y.target,l(y,e.lockRef.current))},[]),h=P.useCallback(function(y){d(y.type,H0(y),y.target,l(y,e.lockRef.current))},[]);P.useEffect(function(){return Ap.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Np),document.addEventListener("touchmove",c,Np),document.addEventListener("touchstart",m,Np),function(){Ap=Ap.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,Np),document.removeEventListener("touchmove",c,Np),document.removeEventListener("touchstart",m,Np)}},[]);var x=e.removeScrollBar,b=e.inert;return P.createElement(P.Fragment,null,b?P.createElement(i,{styles:Zme(r)}):null,x?P.createElement(qme,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function tfe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const afe=Dme(IW,efe);var x2=P.forwardRef(function(e,t){return P.createElement(g2,mo({},e,{ref:t,sideCar:afe}))});x2.classNames=g2.classNames;var nfe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Sp=new WeakMap,q0=new WeakMap,U0={},jk=0,HW=function(e){return e&&(e.host||HW(e.parentNode))},sfe=function(e,t){return t.map(function(a){if(e.contains(a))return a;var n=HW(a);return n&&e.contains(n)?n:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},rfe=function(e,t,a,n){var r=sfe(t,Array.isArray(e)?e:[e]);U0[a]||(U0[a]=new WeakMap);var i=U0[a],o=[],l=new Set,c=new Set(r),d=function(f){!f||l.has(f)||(l.add(f),d(f.parentNode))};r.forEach(d);var m=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(l.has(h))m(h);else try{var x=h.getAttribute(n),b=x!==null&&x!=="false",y=(Sp.get(h)||0)+1,w=(i.get(h)||0)+1;Sp.set(h,y),i.set(h,w),o.push(h),y===1&&b&&q0.set(h,!0),w===1&&h.setAttribute(a,"true"),b||h.setAttribute(n,"true")}catch(j){console.error("aria-hidden: cannot operate on ",h,j)}})};return m(t),l.clear(),jk++,function(){o.forEach(function(f){var h=Sp.get(f)-1,x=i.get(f)-1;Sp.set(f,h),i.set(f,x),h||(q0.has(f)||f.removeAttribute(n),q0.delete(f)),x||f.removeAttribute(a)}),jk--,jk||(Sp=new WeakMap,Sp=new WeakMap,q0=new WeakMap,U0={})}},R6=function(e,t,a){a===void 0&&(a="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=nfe(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),rfe(n,r,a,"aria-hidden")):function(){return null}},b2="Dialog",[qW,UW]=Pi(b2),[ife,to]=qW(b2),VW=e=>{const{__scopeDialog:t,children:a,open:n,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,l=P.useRef(null),c=P.useRef(null),[d,m]=fu({prop:n,defaultProp:r??!1,onChange:i,caller:b2});return s.jsx(ife,{scope:t,triggerRef:l,contentRef:c,contentId:Vi(),titleId:Vi(),descriptionId:Vi(),open:d,onOpenChange:m,onOpenToggle:P.useCallback(()=>m(f=>!f),[m]),modal:o,children:a})};VW.displayName=b2;var QW="DialogTrigger",WW=P.forwardRef((e,t)=>{const{__scopeDialog:a,...n}=e,r=to(QW,a),i=Va(t,r.triggerRef);return s.jsx(Zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":I6(r.open),...n,ref:i,onClick:Nt(e.onClick,r.onOpenToggle)})});WW.displayName=QW;var z6="DialogPortal",[ofe,KW]=qW(z6,{forceMount:void 0}),$W=e=>{const{__scopeDialog:t,forceMount:a,children:n,container:r}=e,i=to(z6,t);return s.jsx(ofe,{scope:t,forceMount:a,children:P.Children.map(n,o=>s.jsx(eo,{present:a||i.open,children:s.jsx(Vx,{asChild:!0,container:r,children:o})}))})};$W.displayName=z6;var uy="DialogOverlay",XW=P.forwardRef((e,t)=>{const a=KW(uy,e.__scopeDialog),{forceMount:n=a.forceMount,...r}=e,i=to(uy,e.__scopeDialog);return i.modal?s.jsx(eo,{present:n||i.open,children:s.jsx(cfe,{...r,ref:t})}):null});XW.displayName=uy;var lfe=pu("DialogOverlay.RemoveScroll"),cfe=P.forwardRef((e,t)=>{const{__scopeDialog:a,...n}=e,r=to(uy,a);return s.jsx(x2,{as:lfe,allowPinchZoom:!0,shards:[r.contentRef],children:s.jsx(Zt.div,{"data-state":I6(r.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),gu="DialogContent",YW=P.forwardRef((e,t)=>{const a=KW(gu,e.__scopeDialog),{forceMount:n=a.forceMount,...r}=e,i=to(gu,e.__scopeDialog);return s.jsx(eo,{present:n||i.open,children:i.modal?s.jsx(dfe,{...r,ref:t}):s.jsx(ufe,{...r,ref:t})})});YW.displayName=gu;var dfe=P.forwardRef((e,t)=>{const a=to(gu,e.__scopeDialog),n=P.useRef(null),r=Va(t,a.contentRef,n);return P.useEffect(()=>{const i=n.current;if(i)return R6(i)},[]),s.jsx(ZW,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nt(e.onCloseAutoFocus,i=>{i.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:Nt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:Nt(e.onFocusOutside,i=>i.preventDefault())})}),ufe=P.forwardRef((e,t)=>{const a=to(gu,e.__scopeDialog),n=P.useRef(!1),r=P.useRef(!1);return s.jsx(ZW,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||a.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;a.triggerRef.current?.contains(o)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),ZW=P.forwardRef((e,t)=>{const{__scopeDialog:a,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,l=to(gu,a),c=P.useRef(null),d=Va(t,c);return O6(),s.jsxs(s.Fragment,{children:[s.jsx(h2,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:s.jsx(qx,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":I6(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(mfe,{titleId:l.titleId}),s.jsx(hfe,{contentRef:c,descriptionId:l.descriptionId})]})]})}),_6="DialogTitle",JW=P.forwardRef((e,t)=>{const{__scopeDialog:a,...n}=e,r=to(_6,a);return s.jsx(Zt.h2,{id:r.titleId,...n,ref:t})});JW.displayName=_6;var eK="DialogDescription",tK=P.forwardRef((e,t)=>{const{__scopeDialog:a,...n}=e,r=to(eK,a);return s.jsx(Zt.p,{id:r.descriptionId,...n,ref:t})});tK.displayName=eK;var aK="DialogClose",nK=P.forwardRef((e,t)=>{const{__scopeDialog:a,...n}=e,r=to(aK,a);return s.jsx(Zt.button,{type:"button",...n,ref:t,onClick:Nt(e.onClick,()=>r.onOpenChange(!1))})});nK.displayName=aK;function I6(e){return e?"open":"closed"}var sK="DialogTitleWarning",[pfe,rK]=tce(sK,{contentName:gu,titleName:_6,docsSlug:"dialog"}),mfe=({titleId:e})=>{const t=rK(sK),a=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 838 839If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 840 841For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(a))},[a,e]),null},ffe="DialogDescriptionWarning",hfe=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rK(ffe).contentName}}.`;return P.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},L6=VW,gfe=WW,F6=$W,B6=XW,G6=YW,H6=JW,q6=tK,v2=nK;const iK=P.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),U6=()=>P.useContext(iK);function xs({...e}){const t=P.useRef(!1),a=P.useRef(!1),n=P.useRef(null),r=P.useMemo(()=>({isComposing:()=>t.current,setComposing:i=>{t.current=i},justEndedComposing:()=>a.current,markCompositionEnd:()=>{a.current=!0,n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{a.current=!1},150)}}),[]);return s.jsx(iK.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:r,children:s.jsx(L6,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function xfe({...e}){return s.jsx(F6,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function oK({className:e,...t}){return s.jsx(B6,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:zt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}oK.displayName="DialogOverlay";function bs({className:e,children:t,showCloseButton:a=!0,onEscapeKeyDown:n,...r}){const{isComposing:i}=U6(),o=P.useCallback(l=>{if(l.isComposing||i()){l.preventDefault();return}n?.(l)},[i,n]);return s.jsxs(xfe,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[s.jsx(oK,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),s.jsxs(G6,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:zt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
841ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:o,...r,children:[t,a&&s.jsxs(v2,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[s.jsx(Zn,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),s.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function ml({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:zt("flex flex-col gap-2 text-center sm:text-left",e),...t})}function nu({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:160","data-slot":"dialog-footer",className:zt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Ui({className:e,...t}){return s.jsx(H6,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:zt("text-lg leading-none font-semibold",e),...t})}function lf({className:e,...t}){return s.jsx(q6,{"data-loc":"client/src/components/ui/dialog.tsx:189","data-slot":"dialog-description",className:zt("text-muted-foreground text-sm",e),...t})}function bfe(){const e=["#FFD700","#FF6B9D","#7C3AED","#10B981","#F59E0B","#EF4444","#3B82F6"],t=Array.from({length:30},(a,n)=>({id:n,color:e[n%e.length],left:`${Math.random()*100}%`,animDelay:`${Math.random()*1.5}s`,size:Math.random()*10+6,shape:n%3===0?"circle":n%3===1?"square":"star"}));return s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:25",className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":!0,children:t.map(a=>s.jsxs("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:27",className:"absolute animate-confetti-fall",style:{left:a.left,top:"-10%",animationDelay:a.animDelay,animationDuration:`${Math.random()*1.5+1.5}s`},children:[a.shape==="circle"&&s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:38",style:{width:a.size,height:a.size,backgroundColor:a.color,borderRadius:"50%"}}),a.shape==="square"&&s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:43",style:{width:a.size,height:a.size,backgroundColor:a.color,transform:"rotate(45deg)"}}),a.shape==="star"&&s.jsx("svg",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:48",width:a.size+4,height:a.size+4,viewBox:"0 0 24 24",fill:a.color,children:s.jsx("polygon",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:49",points:"12,2 15,9 22,9 16,14 18,21 12,17 6,21 8,14 2,9 9,9"})})]},a.id))})}function vfe(){return s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:61",className:"absolute inset-0 pointer-events-none","aria-hidden":!0,children:[...Array(8)].map((e,t)=>s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:63",className:"absolute animate-sparkle",style:{left:`${10+t*11}%`,top:`${15+t%3*25}%`,animationDelay:`${t*.2}s`},children:s.jsx("svg",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:72",width:"16",height:"16",viewBox:"0 0 24 24",fill:"#FFD700",children:s.jsx("path",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:73",d:"M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17l-6.2 4.3 2.4-7.4L2 9.4h7.6z"})})},t))})}const Pz=["Ù
ا شاء اÙÙ٠عÙÙÙ! 7 Ø£ÙØ§Ù
Ù
تتاÙÙØ© â ÙØ°Ø§ Ù
Ù Ø´ÙØ¡ Ø¨Ø³ÙØ·Ø ÙØ°Ø§ Ø¥ÙØ¬Ø§Ø² ØÙÙÙÙ! ð","ÙØ§ Ø³ÙØ§Ù
! Ø£Ø³Ø¨ÙØ¹ ÙØ§Ù
Ù Ù
ا ÙÙÙØªØª ÙÙÙ
â Ø§ÙاستÙ
Ø±Ø§Ø±ÙØ© Ù٠سر اÙÙØ¬Ø§ØØ ÙØ£Ùت تثبت ذÙÙ! ð","اÙÙÙ ÙØ¨Ø§Ø±Ù! 7 Ø£ÙØ§Ù
عÙÙ Ø§ÙØªÙاÙÙ â Ø±ÙØÙ Ø§ÙØ¹Ø§ÙÙØ© تÙÙÙ
Ø§ÙØ¬Ù
ÙØ¹ Ù
Ù ØÙÙÙ! ðª","تسÙÙ
! Ø£Ø³Ø¨ÙØ¹ Ù
Ù Ø§ÙØ§ÙتزاÙ
ÙØ§ÙÙ
ثابرة â ÙØ°Ø§ Ù٠اÙÙØ±Ù بÙÙ Ø§ÙØ¹Ø§Ø¯Ù ÙØ§ÙÙ
تÙ
ÙØ²! ð"];function yfe({open:e,onClose:t,streakDays:a,rewards:n=[]}){const[r]=P.useState(()=>Math.floor(Math.random()*Pz.length)),[i,o]=P.useState(!1),l=n.at(-1),c=l?.badge?.nameAr??"اÙÙ
ÙØ§Ø¸Ø¨",d=l?.badge?.icon??"ð";return P.useEffect(()=>{if(e){const m=setTimeout(()=>
841o(!0),400);return()=>clearTimeout(m)}else o(!1)},[e]),s.jsx(xs,{"data-loc":"client/src/components/StreakCelebrationModal.tsx:106",open:e,onOpenChange:m=>!m&&t(),children:s.jsx(bs,{"data-loc":"client/src/components/StreakCelebrationModal.tsx:107",className:"max-w-md p-0 overflow-hidden border-4 border-black shadow-[8px_8px_0px_0px_#000]",style:{borderRadius:"20px"},children:s.jsxs("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:112",className:"relative bg-gradient-to-br from-[#FFD700] via-[#FFF3B0] to-[#FFEAA7] min-h-[420px] flex flex-col items-center justify-center p-8 text-center overflow-hidden",children:[s.jsx(bfe,{"data-loc":"client/src/components/StreakCelebrationModal.tsx:113"}),s.jsx(vfe,{"data-loc":"client/src/components/StreakCelebrationModal.tsx:114"}),s.jsxs("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:117",className:"relative z-10 mb-4",children:[s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:118",className:"text-7xl animate-bounce-slow select-none",style:{filter:"drop-shadow(0 4px 8px rgba(0,0,0,0.2))"},children:"ð¥"}),s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:124",className:"absolute -top-2 -right-2 bg-black text-white text-xs font-black rounded-full w-8 h-8 flex items-center justify-center border-2 border-yellow-400",children:a})]}),s.jsx("h2",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:130",className:"relative z-10 text-3xl font-black text-black mb-1 leading-tight",style:{textShadow:"2px 2px 0px rgba(0,0,0,0.1)"},children:"Ù
برÙÙ! ð"}),s.jsxs("p",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:136",className:"relative z-10 text-lg font-bold text-black/70 mb-4",children:["ØØµÙت عÙ٠شارة ",s.jsx("span",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:137",className:"text-purple-700",children:c}),"!"]}),s.jsxs("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:141",className:"relative z-10 mb-5 transition-all duration-700",style:{transform:i?"scale(1) rotate(0deg)":"scale(0) rotate(-180deg)",opacity:i?1:0},children:[s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:148",className:"w-24 h-24 rounded-full border-4 border-black flex items-center justify-center shadow-[4px_4px_0px_0px_#000]",style:{background:"linear-gradient(135deg, #7C3AED, #A855F7)"},children:s.jsx("span",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:152",className:"text-5xl","aria-label":c,children:d})}),s.jsx("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:155",className:"absolute inset-0 rounded-full animate-ping-slow border-4 border-purple-400 opacity-40"})]}),s.jsxs("div",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:159",className:"relative z-10 bg-white/80 backdrop-blur-sm border-2 border-black rounded-2xl p-4 mb-6 shadow-[3px_3px_0px_0px_#000]",children:[s.jsx("p",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:162",className:"text-sm font-bold text-gray-800 leading-relaxed",children:Pz[r]}),l&&s.jsxs("p",{"data-loc":"client/src/components/StreakCelebrationModal.tsx:165",className:"mt-2 rounded-lg border-2 border-black bg-memphis-mint px-3 py-2 text-xs font-black text-black",children:["+",l.points," ÙÙØ·Ø© ÙÙ
ÙØ§Ùأة ",l.milestoneDays," ÙÙÙ
اÙ"]})]}),s.jsx(Ie,{"data-loc":"client/src/components/StreakCelebrationModal.tsx:169",onClick:t,className:"relative z-10 bg-black text-white font-black text-base px-8 py-3 rounded-full border-2 border-black shadow-[4px_4px_0px_0px_#7C3AED] hover:shadow-[2px_2px_0px_0px_#7C3AED] hover:translate-x-[2px] hover:translate-y-[2px] transition-all duration-150 active:scale-95",children:"Ø´ÙØ±Ø§Ù! استÙ
ر ð"})]})})})}const V6=P.createContext({});function Q6(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const W6=typeof window<"u",lK=W6?P.useLayoutEffect:P.useEffect,y2=P.createContext(null);function K6(e,t){e.indexOf(t)===-1&&e.push(t)}function $6(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}const Sl=(e,t,a)=>a>t?t:a<e?e:a;let X6=()=>{};const Cl={}
vendor: 44,152 bytes, lines 841-849
841,cK=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function dK(e){return typeof e=="object"&&e!==null}const uK=e=>/^0[^.\s]+$/u.test(e);function Y6(e){let t;return()=>(t===void 0&&(t=e()),t)}const hi=e=>e,wfe=(e,t)=>a=>t(e(a)),Yx=(...e)=>e.reduce(wfe),Bg=(e,t,a)=>{const n=t-e;return n===0?1:(a-e)/n};class Z6{constructor(){this.subscriptions=[]}add(t){return K6(this.subscriptions,t),()=>$6(this.subscriptions,t)}notify(t,a,n){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,a,n);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,a,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const yo=e=>e*1e3,ui=e=>e/1e3;function pK(e,t){return t?e*(1e3/t):0}const mK=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,Pfe=1e-7,jfe=12;function kfe(e,t,a,n,r){let i,o,l=0;do o=t+(a-t)/2,i=mK(o,n,r)-e,i>0?a=o:t=o;while(Math.abs(i)>Pfe&&++l<jfe);return o}function Zx(e,t,a,n){if(e===t&&a===n)return hi;const r=i=>kfe(i,0,1,e,a);return i=>i===0||i===1?i:mK(r(i),t,n)}const fK=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,hK=e=>t=>1-e(1-t),gK=Zx(.33,1.53,.69,.99),J6=hK(gK),xK=fK(J6),bK=e=>(e*=2)<1?.5*J6(e):.5*(2-Math.pow(2,-10*(e-1))),eD=e=>1-Math.sin(Math.acos(e)),vK=hK(eD),yK=fK(eD),Nfe=Zx(.42,0,1,1),Afe=Zx(0,0,.58,1),wK=Zx(.42,0,.58,1),Sfe=e=>Array.isArray(e)&&typeof e[0]!="number",PK=e=>Array.isArray(e)&&typeof e[0]=="number",Cfe={linear:hi,easeIn:Nfe,easeInOut:wK,easeOut:Afe,circIn:eD,circInOut:yK,circOut:vK,backIn:J6,backInOut:xK,backOut:gK,anticipate:bK},Tfe=e=>typeof e=="string",jz=e=>{if(PK(e)){X6(e.length===4);const[t,a,n,r]=e;return Zx(t,a,n,r)}else if(Tfe(e))return Cfe[e];return e},V0=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Dfe(e,t){let a=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(m){o.has(m)&&(d.schedule(m),e()),m(l)}const d={schedule:(m,f=!1,h=!1)=>{const b=h&&r?a:n;return f&&o.add(m),b.has(m)||b.add(m),m},cancel:m=>{n.delete(m),o.delete(m)},process:m=>{if(l=m,r){i=!0;return}r=!0,[a,n]=[n,a],a.forEach(c),a.clear(),r=!1,i&&(i=!1,d.process(m))}};return d}const Efe=40;function jK(e,t){let a=!1,n=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>a=!0,o=V0.reduce((k,D)=>(k[D]=Dfe(i),k),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:m,update:f,preRender:h,render:x,postRender:b}=o,y=()=>{const k=Cl.useManualTiming?r.timestamp:performance.now();a=!1,Cl.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(k-r.timestamp,Efe),1)),r.timestamp=k,r.isProcessing=!0,l.process(r),c.process(r),d.process(r),m.process(r),f.process(r),h.process(r),x.process(r),b.process(r),r.isProcessing=!1,a&&t&&(n=!1,e(y))},w=()=>{a=!0,n=!0,r.isProcessing||e(y)};return{schedule:V0.reduce((k,D)=>{const C=o[D];return k[D]=(S,A=!1,E=!1)=>(a||w(),C.schedule(S,A,E)),k},{}),cancel:k=>{for(let D=0;D<V0.length;D++)o[V0[D]].cancel(k)},state:r,steps:o}}const{schedule:wn,cancel:Bc,state:As,steps:kk}=jK(typeof requestAnimationFrame<"u"?requestAnimationFrame:hi,!0);let _v;function Mfe(){_v=void 0}const pr={now:()=>(_v===void 0&&pr.set(As.isProcessing||Cl.useManualTiming?As.timestamp:performance.now()),_v),set:e=>{_v=e,queueMicrotask(Mfe)}},kK=e=>t=>typeof t=="string"&&t.startsWith(e),tD=kK("--"),Ofe=kK("var(--"),aD=e=>Ofe(e)?Rfe.test(e.split("/*")[0].trim()):!1,Rfe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,cf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gg={...cf,transform:e=>Sl(0,1,e)},Q0={...cf,default:1},ig=e=>Math.round(e*1e5)/1e5,nD=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function zfe(e){return e==null}const _fe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,sD=(e,t)=>a=>!!(typeof a=="string"&&_fe.test(a)&&a.startsWith(e)||t&&!zfe(a)&&Object.prototype.hasOwnProperty.call(a,t)),NK=(e,t,a)=>n=>{if(typeof n!="string")return n;const[r,i,o,l]=n.match(nD);return{[e]:parseFloat(r),[t]:parseFloat(i),[a]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Ife=e=>Sl(0,255,e),Nk={...cf,transform:e=>Math.round(Ife(e))},Kd={test:sD("rgb","red"),parse:NK("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:n=1})=>"rgba("+Nk.transform(e)+", "+Nk.transform(t)+", "+Nk.transform(a)+", "+ig(Gg.transform(n))+")"};function Lfe(e){let t="",a="",n="",r="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),n=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),n=e.substring(3,4),r=e.substring(4,5),t+=t,a+=a,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}}const vC={test:sD("#"),parse:Lfe,transform:Kd.transform},Jx=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vc=Jx("deg"),wo=Jx("%"),Vt=Jx("px"),Ffe=Jx("vh"),Bfe=Jx("vw"),kz={...wo,parse:e=>wo.parse(e)/100,transform:e=>wo.transform(e*100)},Wp={test:sD("hsl","hue"),parse:NK("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:n=1})=>"hsla("+Math.round(e)+", "+wo.transform(ig(t))+", "+wo.transform(ig(a))+", "+ig(Gg.transform(n))+")"},Qn={test:e=>Kd.test(e)||vC.test(e)||Wp.test(e),parse:e=>Kd.test(e)?Kd.parse(e):Wp.test(e)?Wp.parse(e):vC.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Kd.transform(e):Wp.transform(e),getAnimatableNone:e=>{const t=Qn.parse(e);return t.alpha=0,Qn.transform(t)}},Gfe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Hfe(e){return isNaN(e)&&typeof e=="string"&&(e.match(nD)?.length||0)+(e.match(Gfe)?.length||0)>0}const AK="number",SK="color",qfe="var",Ufe="var(",Nz="${}",Vfe=/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 Hg(e){const t=e.toString(),a=[],n={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(Vfe,c=>(Qn.test(c)?(n.color.push(i),r.push(SK),a.push(Qn.parse(c))):c.startsWith(Ufe)?(n.var.push(i),r.push(qfe),a.push(c)):(n.number.push(i),r.push(AK),a.push(parseFloat(c))),++i,Nz)).split(Nz);return{values:a,split:l,indexes:n,types:r}}function CK(e){return Hg(e).values}function TK(e){const{split:t,types:a}=Hg(e),n=t.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],r[o]!==void 0){const l=a[o];l===AK?i+=ig(r[o]):l===SK?i+=Qn.transform(r[o]):i+=r[o]}return i}}const Qfe=e=>typeof e=="number"?0:Qn.test(e)?Qn.getAnimatableNone(e):e;function Wfe(e){const t=CK(e);return TK(e)(t.map(Qfe))}const Gc={test:Hfe,parse:CK,createTransformer:TK,getAnimatableNone:Wfe};function Ak(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function Kfe({hue:e,saturation:t,lightness:a,alpha:n}){e/=360,t/=100,a/=100;let r=0,i=0,o=0;if(!t)r=i=o=a;else{const l=a<.5?a*(1+t):a+t-a*t,c=2*a-l;r=Ak(c,l,e+1/3),i=Ak(c,l,e),o=Ak(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}function py(e,t){return a=>a>0?t:e}const An=(e,t,a)=>e+(t-e)*a,Sk=(e,t,a)=>{const n=e*e,r=a*(t*t-n)+n;return r<0?0:Math.sqrt(r)},$fe=[vC,Kd,Wp],Xfe=e=>$fe.find(t=>t.test(e));function Az(e){const t=Xfe(e);if(!t)return!1;let a=t.parse(e);return t===Wp&&(a=Kfe(a)),a}const Sz=(e,t)=>{const a=Az(e),n=Az(t);if(!a||!n)return py(e,t);const r={...a};return i=>(r.red=Sk(a.red,n.red,i),r.green=Sk(a.green,n.green,i),r.blue=Sk(a.blue,n.blue,i),r.alpha=An(a.alpha,n.alpha,i),Kd.transform(r))},yC=new Set(["none","hidden"]);function Yfe(e,t){return yC.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function Zfe(e,t){return a=>An(e,t,a)}function rD(e){return typeof e=="number"?Zfe:typeof e=="string"?aD(e)?py:Qn.test(e)?Sz:the:Array.isArray(e)?DK:typeof e=="object"?Qn.test(e)?Sz:Jfe:py}function DK(e,t){const a=[...e],n=a.length,r=e.map((i,o)=>rD(i)(i,t[o]));return i=>{for(let o=0;o<n;o++)a[o]=r[o](i);return a}}function Jfe(e,t){const a={...e,...t},n={};for(const r in a)e[r]!==void 0&&t[r]!==void 0&&(n[r]=rD(e[r])(e[r],t[r]));return r=>{for(const i in n)a[i]=n[i](r);return a}}function ehe(e,t){const a=[],n={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],o=e.indexes[i][n[i]],l=e.values[o]??0;a[r]=l,n[i]++}return a}const the=(e,t)=>{const a=Gc.createTransformer(t),n=Hg(e),r=Hg(t);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?yC.has(e)&&!r.values.length||yC.has(t)&&!n.values.length?Yfe(e,t):Yx(DK(ehe(n,r),r.values),a):py(e,t)};function EK(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?An(e,t,a):rD(e)(e,t)}const ahe=e=>{const t=({timestamp:a})=>e(a);return{start:(a=!0)=>wn.update(t,a),stop:()=>Bc(t),now:()=>As.isProcessing?As.timestamp:pr.now()}},MK=(e,t,a=10)=>{let n="";const r=Math.max(Math.round(t/a),2);for(let i=0;i<r;i++)n+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},my=2e4;function iD(e){let t=0;const a=50;let n=e.next(t);for(;!n.done&&t<my;)t+=a,n=e.next(t);return t>=my?1/0:t}function nhe(e,t=100,a){const n=a({...e,keyframes:[0,t]}),r=Math.min(iD(n),my);return{type:"keyframes",ease:i=>n.next(r*i).value/t,duration:ui(r)}}const she=5;function OK(e,t,a){const n=Math.max(t-she,0);return pK(a-e(n),t-n)}const En={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},Ck=.001;function rhe({duration:e=En.duration,bounce:t=En.bounce,velocity:a=En.velocity,mass:n=En.mass}){let r,i,o=1-t;o=Sl(En.minDamping,En.maxDamping,o),e=Sl(En.minDuration,En.maxDuration,ui(e)),o<1?(r=d=>{const m=d*o,f=m*e,h=m-a,x=wC(d,o),b=Math.exp(-f);return Ck-h/x*b},i=d=>{const f=d*o*e,h=f*a+a,x=Math.pow(o,2)*Math.pow(d,2)*e,b=Math.exp(-f),y=wC(Math.pow(d,2),o);return(-r(d)+Ck>0?-1:1)*((h-x)*b)/y}):(r=d=>{const m=Math.exp(-d*e),f=(d-a)*e+1;return-Ck+m*f},i=d=>{const m=Math.exp(-d*e),f=(a-d)*(e*e);return m*f});const l=5/e,c=ohe(r,i,l);if(e=yo(e),isNaN(c))return{stiffness:En.stiffness,damping:En.damping,duration:e};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:e}}}const ihe=12;function ohe(e,t,a){let n=a;for(let r=1;r<ihe;r++)n=n-e(n)/t(n);return n}function wC(e,t){return e*Math.sqrt(1-t*t)}const lhe=["duration","bounce"],che=["stiffness","damping","mass"];function Cz(e,t){return t.some(a=>e[a]!==void 0)}function dhe(e){let t={velocity:En.velocity,stiffness:En.stiffness,damping:En.damping,mass:En.mass,isResolvedFromDuration:!1,...e};if(!Cz(e,che)&&Cz(e,lhe))if(e.visualDuration){const a=e.visualDuration,n=2*Math.PI/(a*1.2),r=n*n,i=2*Sl(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:En.mass,stiffness:r,damping:i}}else{const a=rhe(e);t={...t,...a,mass:En.mass},t.isResolvedFromDuration=!0}return t}function fy(e=En.visualDuration,t=En.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:r}=a;const i=a.keyframes[0],o=a.keyframes[a.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:d,mass:m,duration:f,velocity:h,isResolvedFromDuration:x}=dhe({...a,velocity:-ui(a.velocity||0)}),b=h||0,y=d/(2*Math.sqrt(c*m)),w=o-i,j=ui(Math.sqrt(c/m)),N=Math.abs(w)<5;n||(n=N?En.restSpeed.granular:En.restSpeed.default),r||(r=N?En.restDelta.granular:En.restDelta.default);let k;if(y<1){const C=wC(j,y);k=S=>{const A=Math.exp(-y*j*S);return o-A*((b+y*j*w)/C*Math.sin(C*S)+w*Math.cos(C*S))}}else if(y===1)k=C=>o-Math.exp(-j*C)*(w+(b+j*w)*C);else{const C=j*Math.sqrt(y*y-1);k=S=>{const A=Math.exp(-y*j*S),E=Math.min(C*S,300);return o-A*((b+y*j*w)*Math.sinh(E)+C*w*Math.cosh(E))/C}}const D={calculatedDuration:x&&f||null,next:C=>{const S=k(C);if(x)l.done=C>=f;else{let A=C===0?b:0;y<1&&(A=C===0?yo(b):OK(k,C,S));const E=Math.abs(A)<=n,R=Math.abs(o-S)<=r;l.done=E&&R}return l.value=l.done?o:S,l},toString:()=>{const C=Math.min(iD(D),my),S=MK(A=>D.next(C*A).value,C,30);return C+"ms "+S},toTransition:()=>{}};return D}fy.applyToOptions=e=>{const t=nhe(e,100,fy);return e.ease=t.ease,e.duration=yo(t.duration),e.type="keyframes",e};function PC({keyframes:e,velocity:t=0,power:a=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:c,restDelta:d=.5,restSpeed:m}){const f=e[0],h={done:!1,value:f},x=E=>l!==void 0&&E<l||c!==void 0&&E>c,b=E=>l===void 0?c:c===void 0||Math.abs(l-E)<Math.abs(c-E)?l:c;let y=a*t;const w=f+y,j=o===void 0?w:o(w);j!==w&&(y=j-f);const N=E=>-y*Math.exp(-E/n),k=E=>j+N(E),D=E=>{const R=N(E),F=k(E);h.done=Math.abs(R)<=d,h.value=h.done?j:F};let C,S;const A=E=>{x(h.value)&&(C=E,S=fy({keyframes:[h.value,b(h.value)],velocity:OK(k,E,h.value),damping:r,stiffness:i,restDelta:d,restSpeed:m}))};return A(0),{calculatedDuration:null,next:E=>{let R=!1;return!S&&C===void 0&&(R=!0,D(E),A(E)),C!==void 0&&E>=C?S.next(E-C):(!R&&D(E),h)}}}function uhe(e,t,a){const n=[],r=a||Cl.mix||EK,i=e.length-1;for(let o=0;o<i;o++){let l=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||hi:t;l=Yx(c,l)}n.push(l)}return n}function phe(e,t,{clamp:a=!0,ease:n,mixer:r}={}){const i=e.length;if(X6(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=uhe(t,n,r),c=l.length,d=m=>{if(o&&m<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(m<e[f+1]);f++);const h=Bg(e[f],e[f+1],m);return l[f](h)};return a?m=>d(Sl(e[0],e[i-1],m)):d}function mhe(e,t){const a=e[e.length-1];for(let n=1;n<=t;n++){const r=Bg(0,t,n);e.push(An(a,1,r))}}function fhe(e){const t=[0];return mhe(t,e.length-1),t}function hhe(e,t){return e.map(a=>a*t)}function ghe(e,t){return e.map(()=>t||wK).splice(0,e.length-1)}function og({duration:e=300,keyframes:t,times:a,ease:n="easeInOut"}){const r=Sfe(n)?n.map(jz):jz(n),i={done:!1,value:t[0]},o=hhe(a&&a.length===t.length?a:fhe(t),e),l=phe(o,t,{ease:Array.isArray(r)?r:ghe(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const xhe=e=>e!==null;function oD(e,{repeat:t,repeatType:a="loop"},n,r=1){const i=e.filter(xhe),l=r<0||t&&a!=="loop"&&t%2===1?0:i.length-1;return!l||n===void 0?i[l]:n}const bhe={decay:PC,inertia:PC,tween:og,keyframes:og,spring:fy};function RK(e){typeof e.type=="string"&&(e.type=bhe[e.type])}class lD{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const vhe=e=>e/100;class cD extends lD{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==pr.now()&&this.tick(pr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;RK(t);const{type:a=og,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=t;let{keyframes:l}=t;const c=a||og;c!==og&&typeof l[0]!="number"&&(this.mixKeyframes=Yx(vhe,EK(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=iD(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=d}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:d=0,keyframes:m,repeat:f,repeatType:h,repeatDelay:x,type:b,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const j=this.currentTime-d*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?j<0:j>r;this.currentTime=Math.max(j,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let k=this.currentTime,D=n;if(f){const E=Math.min(this.currentTime,r)/l;let R=Math.floor(E),F=E%1;!F&&E>=1&&(F=1),F===1&&R--,R=Math.min(R,f+1),!!(R%2)&&(h==="reverse"?(F=1-F,x&&(F-=x/l)):h==="mirror"&&(D=o)),k=Sl(0,1,F)*l}const C=N?{done:!1,value:m[0]}:D.next(k);i&&(C.value=i(C.value));let{done:S}=C;!N&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return A&&b!==PC&&(C.value=oD(m,this.options,w,this.speed)),y&&y(C.value),A&&this.finish(),C}then(t,a){return this.finished.then(t,a)}get duration(){return ui(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ui(t)}get time(){return ui(this.currentTime)}set time(t){t=yo(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(pr.now());const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=ui(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=ahe,startTime:a}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=a??n),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(pr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function yhe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const $d=e=>e*180/Math.PI,jC=e=>{const t=$d(Math.atan2(e[1],e[0]));return kC(t)},whe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:jC,rotateZ:jC,skewX:e=>$d(Math.atan(e[1])),skewY:e=>$d(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},kC=e=>(e=e%360,e<0&&(e+=360),e),Tz=jC,Dz=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ez=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Phe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dz,scaleY:Ez,scale:e=>(Dz(e)+Ez(e))/2,rotateX:e=>kC($d(Math.atan2(e[6],e[5]))),rotateY:e=>kC($d(Math.atan2(-e[2],e[0]))),rotateZ:Tz,rotate:Tz,skewX:e=>$d(Math.atan(e[4])),skewY:e=>$d(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function NC(e){return e.includes("scale")?1:0}function AC(e,t){if(!e||e==="none")return NC(t);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,r;if(a)n=Phe,r=a;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=whe,r=l}if(!r)return NC(t);const i=n[t],o=r[1].split(",").map(khe);return typeof i=="function"?i(o):o[i]}const jhe=(e,t)=>{const{transform:a="none"}=getComputedStyle(e);return AC(a,t)};function khe(e){return parseFloat(e.trim())}const df=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],uf=new Set(df),Mz=e=>e===cf||e===Vt,Nhe=new Set(["x","y","z"]),Ahe=df.filter(e=>!Nhe.has(e));function She(e){const t=[];return Ahe.forEach(a=>{const n=e.getValue(a);n!==void 0&&(t.push([a,n.get()]),n.set(a.startsWith("scale")?1:0))}),t}const su={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),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})=>AC(t,"x"),y:(e,{transform:t})=>AC(t,"y")};su.translateX=su.x;su.translateY=su.y;const ru=new Set;let SC=!1,CC=!1,TC=!1;function zK(){if(CC){const e=Array.from(ru).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),a=new Map;t.forEach(n=>{const r=She(n);r.length&&(a.set(n,r),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const r=a.get(n);r&&r.forEach(([i,o])=>{n.getValue(i)?.set(o)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}CC=!1,SC=!1,ru.forEach(e=>e.complete(TC)),ru.clear()}function _K(){ru.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(CC=!0)})}function Che(){TC=!0,_K(),zK(),TC=!1}class dD{constructor(t,a,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ru.add(this),SC||(SC=!0,wn.read(_K),wn.resolveKeyframes(zK))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:n,motionValue:r}=this;if(t[0]===null){const i=r?.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&a){const l=n.readValue(a,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),r&&i===void 0&&r.set(t[0])}yhe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ru.delete(this)}cancel(){this.state==="scheduled"&&(ru.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const The=e=>e.startsWith("--");function Dhe(e,t,a){The(t)?e.style.setProperty(t,a):e.style[t]=a}const Ehe=Y6(()=>window.ScrollTimeline!==void 0),Mhe={};function Ohe(e,t){const a=Y6(e);return()=>Mhe[t]??a()}const IK=Ohe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Hh=([e,t,a,n])=>`cubic-bezier(${e}, ${t}, ${a}, ${n})`,Oz={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hh([0,.65,.55,1]),circOut:Hh([.55,0,1,.45]),backIn:Hh([.31,.01,.66,-.59]),backOut:Hh([.33,1.53,.69,.99])};function LK(e,t){if(e)return typeof e=="function"?IK()?MK(e,t):"ease-out":PK(e)?Hh(e):Array.isArray(e)?e.map(a=>LK(a,t)||Oz.easeOut):Oz[e]}function Rhe(e,t,a,{delay:n=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:l="easeOut",times:c}={},d=void 0){const m={[t]:a};c&&(m.offset=c);const f=LK(l,r);Array.isArray(f)&&(m.easing=f);const h={delay:n,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(h.pseudoElement=d),e.animate(m,h)}function FK(e){return typeof e=="function"&&"applyToOptions"in e}function zhe({type:e,...t}){return FK(e)&&IK()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _he extends lD{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:a,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,X6(typeof t.type!="string");const d=zhe(t);this.animation=Rhe(a,n,r,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const m=oD(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(m):Dhe(a,n,m),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ui(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ui(t)}get time(){return ui(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=yo(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ehe()?(this.animation.timeline=t,hi):a(this)}}const BK={anticipate:bK,backInOut:xK,circInOut:yK};function Ihe(e){return e in BK}function Lhe(e){typeof e.ease=="string"&&Ihe(e.ease)&&(e.ease=BK[e.ease])}const Rz=10;class Fhe extends _he{constructor(t){Lhe(t),RK(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const l=new cD({...o,autoplay:!1}),c=yo(this.finishedTime??this.time);a.setWithVelocity(l.sample(c-Rz).value,l.sample(c).value,Rz),l.stop()}}const zz=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gc.test(e)||e==="0")&&!e.startsWith("url("));function Bhe(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function Ghe(e,t,a,n){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=zz(r,t),l=zz(i,t);return!o||!l?!1:Bhe(e)||(a==="spring"||FK(a))&&n}function DC(e){e.duration=0,e.type="keyframes"}const Hhe=new Set(["opacity","clipPath","filter","transform"]),qhe=Y6(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Uhe(e){const{motionValue:t,name:a,repeatDelay:n,repeatType:r,damping:i,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return qhe()&&a&&Hhe.has(a)&&(a!=="transform"||!d)&&!c&&!n&&r!=="mirror"&&i!==0&&o!=="inertia"}const Vhe=40;class Qhe extends lD{constructor({autoplay:t=!0,delay:a=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:l,name:c,motionValue:d,element:m,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=pr.now();const h={autoplay:t,delay:a,type:n,repeat:r,repeatDelay:i,repeatType:o,name:c,motionValue:d,element:m,...f},x=m?.KeyframeResolver||dD;this.keyframeResolver=new x(l,(b,y,w)=>this.onKeyframesResolved(b,y,h,!w),c,d,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,n,r){this.keyframeResolver=void 0;const{name:i,type:o,velocity:l,delay:c,isHandoff:d,onUpdate:m}=n;this.resolvedAt=pr.now(),Ghe(t,i,o,l)||((Cl.instantAnimations||!c)&&m?.(oD(t,n,a)),t[0]=t[t.length-1],DC(n),n.repeat=0);const h={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>Vhe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...n,keyframes:t},x=!d&&Uhe(h)?new Fhe({...h,element:h.motionValue.owner.current}):new cD(h);x.finished.then(()=>this.notifyFinished()).catch(hi),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Che()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Whe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Khe(e){const t=Whe.exec(e);if(!t)return[,];const[,a,n,r]=t;return[`--${a??n}`,r]}function GK(e,t,a=1){const[n,r]=Khe(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const o=i.trim();return cK(o)?parseFloat(o):o}return aD(r)?GK(r,t,a+1):r}function uD(e,t){return e?.[t]??e?.default??e}const HK=new Set(["width","height","top","left","right","bottom",...df]),$he={test:e=>e==="auto",parse:e=>e},qK=e=>t=>t.test(e),UK=[cf,Vt,wo,vc,Bfe,Ffe,$he],_z=e=>UK.find(qK(e));function Xhe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||uK(e):!0}const Yhe=new Set(["brightness","contrast","saturate","opacity"]);function Zhe(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=a.match(nD)||[];if(!n)return e;const r=a.replace(n,"");let i=Yhe.has(t)?1:0;return n!==a&&(i*=100),t+"("+i+r+")"}const Jhe=/\b([a-z-]*)\(.*?\)/gu,EC={...Gc,getAnimatableNone:e=>{const t=e.match(Jhe);return t?t.map(Zhe).join(" "):e}},Iz={...cf,transform:Math.round},ege={rotate:vc,rotateX:vc,rotateY:vc,rotateZ:vc,scale:Q0,scaleX:Q0,scaleY:Q0,scaleZ:Q0,skew:vc,skewX:vc,skewY:vc,distance:Vt,translateX:Vt,translateY:Vt,translateZ:Vt,x:Vt,y:Vt,z:Vt,perspective:Vt,transformPerspective:Vt,opacity:Gg,originX:kz,originY:kz,originZ:Vt},pD={borderWidth:Vt,borderTopWidth:Vt,borderRightWidth:Vt,borderBottomWidth:Vt,borderLeftWidth:Vt,borderRadius:Vt,radius:Vt,borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomRightRadius:Vt,borderBottomLeftRadius:Vt,width:Vt,maxWidth:Vt,height:Vt,maxHeight:Vt,top:Vt,right:Vt,bottom:Vt,left:Vt,padding:Vt,paddingTop:Vt,paddingRight:Vt,paddingBottom:Vt,paddingLeft:Vt,margin:Vt,marginTop:Vt,marginRight:Vt,marginBottom:Vt,marginLeft:Vt,backgroundPositionX:Vt,backgroundPositionY:Vt,...ege,zIndex:Iz,fillOpacity:Gg,strokeOpacity:Gg,numOctaves:Iz},tge={...pD,color:Qn,backgroundColor:Qn,outlineColor:Qn,fill:Qn,stroke:Qn,borderColor:Qn,borderTopColor:Qn,borderRightColor:Qn,borderBottomColor:Qn,borderLeftColor:Qn,filter:EC,WebkitFilter:EC},VK=e=>tge[e];function QK(e,t){let a=VK(e);return a!==EC&&(a=Gc),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const age=new Set(["auto","none","0"]);function nge(e,t,a){let n=0,r;for(;n<e.length&&!r;){const i=e[n];typeof i=="string"&&!age.has(i)&&Hg(i).values.length&&(r=e[n]),n++}if(r&&a)for(const i of t)e[i]=QK(a,r)}class sge extends dD{constructor(t,a,n,r,i){super(t,a,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:n}=this;if(!a||!a.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),aD(d))){const m=GK(d,a.current);m!==void 0&&(t[c]=m),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!HK.has(n)||t.length!==2)return;const[r,i]=t,o=_z(r),l=_z(i);if(o!==l)if(Mz(o)&&Mz(l))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else su[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,n=[];for(let r=0;r<t.length;r++)(t[r]===null||Xhe(t[r]))&&n.push(r);n.length&&nge(t,n,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=su[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const r=a[a.length-1];r!==void 0&&t.getValue(n,r).jump(r,!1)}measureEndState(){const{element:t,name:a,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const r=t.getValue(a);r&&r.jump(this.measuredOrigin,!1);const i=n.length-1,o=n[i];n[i]=su[a](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function rge(e,t,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const r=a?.[e]??n.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}const WK=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function KK(e){return dK(e)&&"offsetHeight"in e}const Lz=30,ige=e=>!isNaN(parseFloat(e));class oge{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const r=pr.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=pr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ige(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Z6);const n=this.events[t].add(a);return t==="change"?()=>{n(),wn.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,n){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=pr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Lz)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,Lz);return pK(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function wm(e,t){return new oge(e,t)}const{schedule:mD}=jK(queueMicrotask,!1),Oi={x:!1,y:!1};function $K(){return Oi.x||Oi.y}function lge(e){return e==="x"||e==="y"?Oi[e]?null:(Oi[e]=!0,()=>{Oi[e]=!1}):Oi.x||Oi.y?null:(Oi.x=Oi.y=!0,()=>{Oi.x=Oi.y=!1})}function XK(e,t){const a=rge(e),n=new AbortController,r={passive:!0,...t,signal:n.signal};return[a,r,()=>n.abort()]}function Fz(e){return!(e.pointerType==="touch"||$K())}function cge(e,t,a={}){const[n,r,i]=XK(e,a),o=l=>{if(!Fz(l))return;const{target:c}=l,d=t(c,l);if(typeof d!="function"||!c)return;const m=f=>{Fz(f)&&(d(f),c.removeEventListener("pointerleave",m))};c.addEventListener("pointerleave",m,r)};return n.forEach(l=>{l.addEventListener("pointerenter",o,r)}),i}const YK=(e,t)=>t?e===t?!0:YK(e,t.parentElement):!1,fD=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,dge=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uge(e){return dge.has(e.tagName)||e.tabIndex!==-1}const Iv=new WeakSet;function Bz(e){return t=>{t.key==="Enter"&&e(t)}}function Tk(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const pge=(e,t)=>{const a=e.currentTarget;if(!a)return;const n=Bz(()=>{if(Iv.has(a))return;Tk(a,"down");const r=Bz(()=>{Tk(a,"up")}),i=()=>Tk(a,"cancel");a.addEventListener("keyup",r,t),a.addEventListener("blur",i,t)});a.addEventListener("keydown",n,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",n),t)};function Gz(e){return fD(e)&&!$K()}function mge(e,t,a={}){const[n,r,i]=XK(e,a),o=l=>{const c=l.currentTarget;if(!Gz(l))return;Iv.add(c);const d=t(c,l),m=(x,b)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),Iv.has(c)&&Iv.delete(c),Gz(x)&&typeof d=="function"&&d(x,{success:b})},f=x=>{m(x,c===window||c===document||a.useGlobalTarget||YK(c,x.target))},h=x=>{m(x,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",h,r)};return n.forEach(l=>{(a.useGlobalTarget?window:l).addEventListener("pointerdown",o,r),KK(l)&&(l.addEventListener("focus",d=>pge(d,r)),!uge(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function ZK(e){return dK(e)&&"ownerSVGElement"in e}function fge(e){return ZK(e)&&e.tagName==="svg"}const Fs=e=>!!(e&&e.getVelocity),hge=[...UK,Qn,Gc],gge=e=>hge.find(qK(e)),hD=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Hz(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xge(...e){return t=>{let a=!1;const n=e.map(r=>{const i=Hz(r,t);return!a&&typeof i=="function"&&(a=!0),i});if(a)return()=>{for(let r=0;r<n.length;r++){const i=n[r];typeof i=="function"?i():Hz(e[r],null)}}}}function bge(...e){return P.useCallback(xge(...e),e)}class vge extends P.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){const n=a.offsetParent,r=KK(n)&&n.offsetWidth||0,i=this.props.sizeRef.current;i.height=a.offsetHeight||0,i.width=a.offsetWidth||0,i.top=a.offsetTop,i.left=a.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function yge({children:e,isPresent:t,anchorX:a,root:n}){const r=P.useId(),i=P.useRef(null),o=P.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=P.useContext(hD),c=bge(i,e?.ref);return P.useInsertionEffect(()=>{const{width:d,height:m,top:f,left:h,right:x}=o.current;if(t||!i.current||!d||!m)return;const b=a==="left"?`left: ${h}`:`right: ${x}`;i.current.dataset.motionPopId=r;const y=document.createElement("style");l&&(y.nonce=l);const w=n??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(` 842 [data-motion-pop-id="${r}"] { 843 position: absolute !important; 844 width: ${d}px !important; 845 height: ${m}px !important; 846 ${b}px !important; 847 top: ${f}px !important; 848 } 849 `),()=>{w.contains(y)&&w.removeChild(y)}},[t]),s.jsx(vge,{isPresent:t,childRef:i,sizeRef:o,children:P.cloneElement(e,{ref:c})})}const wge=({children:e,initial:t,isPresent:a,onExitComplete:n,custom:r,presenceAffectsLayout:i,mode:o,anchorX:l,root:c})=>{const d=Q6(Pge),m=P.useId();let f=!0,h=P.useMemo(()=>(f=!1,{id:m,initial:t,isPresent:a,custom:r,onExitComplete:x=>{d.set(x,!0);for(const b of d.values())if(!b)return;n&&n()},register:x=>(d.set(x,!1),()=>d.delete(x))}),[a,d,n]);return i&&f&&(h={...h}),P.useMemo(()=>{d.forEach((x,b)=>d.set(b,!1))},[a]),P.useEffect(()=>{!a&&!d.size&&n&&n()},[a]),o==="popLayout"&&(e=s.jsx(yge,{isPresent:a,anchorX:l,root:c,children:e})),s.jsx(y2.Provider,{value:h,children:e})};function Pge(){return new Map}function JK(e=!0){const t=P.useContext(y2);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:n,register:r}=t,i=P.useId();P.useEffect(()=>{if(e)return r(i)},[e]);const o=P.useCallback(()=>e&&n&&n(i),[i,n,e]);return!a&&n?[!1,o]:[!0]}const W0=e=>e.key||"";function qz(e){const t=[];return P.Children.forEach(e,a=>{P.isValidElement(a)&&t.push(a)}),t}const jge=({children:e,custom:t,initial:a=!0,onExitComplete:n,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:l="left",root:c})=>{const[d,m]=JK(o),f=P.useMemo(()=>qz(e),[e]),h=o&&!d?[]:f.map(W0),x=P.useRef(!0),b=P.useRef(f),y=Q6(()=>new Map),[w,j]=P.useState(f),[N,k]=P.useState(f);lK(()=>{x.current=!1,b.current=f;for(let S=0;S<N.length;S++){const A=W0(N[S]);h.includes(A)?y.delete(A):y.get(A)!==!0&&y.set(A,!1)}},[N,h.length,h.join("-")]);const D=[];if(f!==w){let S=[...f];for(let A=0;A<N.length;A++){const E=N[A],R=W0(E);h.includes(R)||(S.splice(A,0,E),D.push(E))}return i==="wait"&&D.length&&(S=D),k(qz(S)),j(f),null}const{forceRender:C}=P.useContext(V6);return s.jsx(s.Fragment,{children:N.map(S=>{const A=W0(S),E=o&&!d?!1:f===N||h.includes(A),R=()=>{if(y.has(A))y.set(A,!0);else return;let F=!0;y.forEach(I=>{I||(F=!1)}),F&&(C?.(),k(b.current),o&&m?.(),n&&n())};return s.jsx(wge,{isPresent:E,initial:!x.current||a?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:c,onExitComplete:E?void 0:R,anchorX:l,children:S},A)})})},e$=P.createContext({strict:!1}),Uz={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"]},Pm={};for(const e in Uz)Pm[e]={isEnabled:t=>Uz[e].some(a=>!!t[a])};function kge(e){for(const t in e)Pm[t]={...Pm[t],...e[t]}}const Nge=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function hy(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Nge.has(e)}let t$=e=>!hy(e);function Age(e){typeof e=="function"&&(t$=t=>t.startsWith("on")?!hy(t):e(t))}try{Age(require("@emotion/is-prop-valid").default)}catch{}function Sge(e,t,a){const n={};for(const r in e)r==="values"&&typeof e.values=="object"||(t$(r)||a===!0&&hy(r)||!t&&!hy(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}const w2=P.createContext({});function P2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qg(e){return typeof e=="string"||Array.isArray(e)}const gD=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xD=["initial",...gD];function j2(e){return P2(e.animate)||xD.some(t=>qg(e[t]))}function a$(e){return!!(j2(e)||e.variants)}function Cge(e,t){if(j2(e)){const{initial:a,animate:n}=e;return{initial:a===!1||qg(a)?a:void 0,animate:qg(n)?n:void 0}}return e.inherit!==!1?t:{}}function Tge(e){const{initial:t,animate:a}=Cge(e,P.useContext(w2));return P.useMemo(()=>({initial:t,animate:a}
vendor: 5,834 bytes, line 849
849),[Vz(t),Vz(a)])}function Vz(e){return Array.isArray(e)?e.join(" "):e}const Ug={};function Dge(e){for(const t in e)Ug[t]=e[t],tD(t)&&(Ug[t].isCSSVariable=!0)}function n$(e,{layout:t,layoutId:a}){return uf.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Ug[e]||e==="opacity")}const Ege={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mge=df.length;function Oge(e,t,a){let n="",r=!0;for(let i=0;i<Mge;i++){const o=df[i],l=e[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||a){const d=WK(l,pD[o]);if(!c){r=!1;const m=Ege[o]||o;n+=`${m}(${d}) `}a&&(t[o]=d)}}return n=n.trim(),a?n=a(t,r?"":n):r&&(n="none"),n}function bD(e,t,a){const{style:n,vars:r,transformOrigin:i}=e;let o=!1,l=!1;for(const c in t){const d=t[c];if(uf.has(c)){o=!0;continue}else if(tD(c)){r[c]=d;continue}else{const m=WK(d,pD[c]);c.startsWith("origin")?(l=!0,i[c]=m):n[c]=m}}if(t.transform||(o||a?n.transform=Oge(t,e.transform,a):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:m=0}=i;n.transformOrigin=`${c} ${d} ${m}`}}const vD=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function s$(e,t,a){for(const n in t)!Fs(t[n])&&!n$(n,a)&&(e[n]=t[n])}function Rge({transformTemplate:e},t){return P.useMemo(()=>{const a=vD();return bD(a,t,e),Object.assign({},a.vars,a.style)},[t])}function zge(e,t){const a=e.style||{},n={};return s$(n,a,e),Object.assign(n,Rge(e,t)),n}function _ge(e,t){const a={},n=zge(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=n,a}const Ige={offset:"stroke-dashoffset",array:"stroke-dasharray"},Lge={offset:"strokeDashoffset",array:"strokeDasharray"};function Fge(e,t,a=1,n=0,r=!0){e.pathLength=1;const i=r?Ige:Lge;e[i.offset]=Vt.transform(-n);const o=Vt.transform(t),l=Vt.transform(a);e[i.array]=`${o} ${l}`}function r$(e,{attrX:t,attrY:a,attrScale:n,pathLength:r,pathSpacing:i=1,pathOffset:o=0,...l},c,d,m){if(bD(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=m?.transformBox??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),a!==void 0&&(f.y=a),n!==void 0&&(f.scale=n),r!==void 0&&Fge(f,r,i,o,!1)}const i$=()=>({...vD(),attrs:{}}),o$=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Bge(e,t,a,n){const r=P.useMemo(()=>{const i=i$();return r$(i,t,o$(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};s$(i,e.style,e),r.style={...i,...r.style}}return r}const Gge=["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 yD(e){return typeof e!="string"||e.includes("-")?!1:!!(Gge.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hge(e,t,a,{latestValues:n},r,i=!1){const l=(yD(e)?Bge:_ge)(t,n,r,e),c=Sge(t,typeof e=="string",i),d=e!==P.Fragment?{...c,...l,ref:a}:{},{children:m}=t,f=P.useMemo(()=>Fs(m)?m.get():m,[m]);return P.createElement(e,{...d,children:f})}function Qz(e){const t=[{},{}];return e?.values.forEach((a,n)=>{t[0][n]=a.get(),t[1][n]=a.getVelocity()}),t}function wD(e,t,a,n){if(typeof t=="function"){const[r,i]=Qz(n);t=t(a!==void 0?a:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Qz(n);t=t(a!==void 0?a:e.custom,r,i)}return t}function Lv(e){return Fs(e)?e.get():e}function qge({scrapeMotionValuesFromProps:e,createRenderState:t},a,n,r){return{latestValues:Uge(a,n,r,e),renderState:t()}}function Uge(e,t,a,n){const r={},i=n(e,{});for(const h in i)r[h]=Lv(i[h]);let{initial:o,animate:l}=e;const c=j2(e),d=a$(e);t&&d&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let m=a?a.initial===!1:!1;m=m||o===!1;const f=m?l:o;if(f&&typeof f!="boolean"&&!P2(f)){const h=Array.isArray(f)?f:[f];for(let x=0;x<h.length;x++){const b=wD(e,h[x]);if(b){const{transitionEnd:y,transition:w,...j}=b;for(const N in j){let k=j[N];if(Array.isArray(k)){const D=m?k.length-1:0;k=k[D]}k!==null&&(r[N]=k)}for(const N in y)r[N]=y[N]}}}return r}const l$=e=>(t,a)=>{const n=P.useContext(w2),r=P.useContext(y2),i=()=>qge(e,t,n,r);return a?i():Q6(i)};function PD(e,t,a){const{style:n}=e,r={};for(const i in n)(Fs(n[i])||t.style&&Fs(t.style[i])||n$(i,e)||a?.getValue(i)?.liveStyle!==void 0)&&(r[i]=n[i]);return r}const Vge=l$({scrapeMotionValuesFromProps:PD,createRenderState:vD});function c$(e,t,a){const n=PD(e,t,a);for(const r in e)if(Fs(e[r])||Fs(t[r])){const i=df.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}const Qge=l$({scrapeMotionValuesFromProps:c$,createRenderState:i$}),Wge=Symbol.for("motionComponentSymbol");function Kp(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Kge(e,t,a){return P.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),a&&(typeof a=="function"?a(n):Kp(a)&&(a.current=n))},[t])}const jD=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),$ge="framerAppearId",d$="data-"+jD($ge),u$=P.createContext({});function Xge(e,t,a,n,r){const{visualElement:i}=P.useContext(w2),o=P.useContext(e$),l=P.useContext(y2),c=P.useContext(hD).reducedMotion,d=P.useRef(null);n=n||o.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:i,props:a,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}
vendor: 11,653 bytes, line 849
849));const m=d.current,f=P.useContext(u$);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&Yge(d.current,a,r,f);const h=P.useRef(!1);P.useInsertionEffect(()=>{m&&h.current&&m.update(a,l)});const x=a[d$],b=P.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return lK(()=>{m&&(h.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),P.useEffect(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),b.current=!1),m.enteringChildren=void 0)}),m}function Yge(e,t,a,n){const{layoutId:r,layout:i,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:m}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:p$(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||l&&Kp(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:m,layoutScroll:c,layoutRoot:d})}function p$(e){if(e)return e.options.allowProjection!==!1?e.projection:p$(e.parent)}function Dk(e,{forwardMotionProps:t=!1}={},a,n){a&&kge(a);const r=yD(e)?Qge:Vge;function i(l,c){let d;const m={...P.useContext(hD),...l,layoutId:Zge(l)},{isStatic:f}=m,h=Tge(l),x=r(l,f);if(!f&&W6){Jge();const b=exe(m);d=b.MeasureLayout,h.visualElement=Xge(e,x,m,n,b.ProjectionNode)}return s.jsxs(w2.Provider,{value:h,children:[d&&h.visualElement?s.jsx(d,{visualElement:h.visualElement,...m}):null,Hge(e,l,Kge(x,h.visualElement,c),x,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const o=P.forwardRef(i);return o[Wge]=e,o}function Zge({layoutId:e}){const t=P.useContext(V6).id;return t&&e!==void 0?t+"-"+e:e}function Jge(e,t){P.useContext(e$).strict}function exe(e){const{drag:t,layout:a}=Pm;if(!t&&!a)return{};const n={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function txe(e,t){if(typeof Proxy>"u")return Dk;const a=new Map,n=(i,o)=>Dk(i,o,e,t),r=(i,o)=>n(i,o);return new Proxy(r,{get:(i,o)=>o==="create"?n:(a.has(o)||a.set(o,Dk(o,void 0,e,t)),a.get(o))})}function m$({top:e,left:t,right:a,bottom:n}){return{x:{min:t,max:a},y:{min:e,max:n}}}function axe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nxe(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:n.y,right:n.x}}function Ek(e){return e===void 0||e===1}function MC({scale:e,scaleX:t,scaleY:a}){return!Ek(e)||!Ek(t)||!Ek(a)}function Bd(e){return MC(e)||f$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function f$(e){return Wz(e.x)||Wz(e.y)}function Wz(e){return e&&e!=="0%"}function gy(e,t,a){const n=e-a,r=t*n;return a+r}function Kz(e,t,a,n,r){return r!==void 0&&(e=gy(e,r,n)),gy(e,a,n)+t}function OC(e,t=0,a=1,n,r){e.min=Kz(e.min,t,a,n,r),e.max=Kz(e.max,t,a,n,r)}function h$(e,{x:t,y:a}){OC(e.x,t.translate,t.scale,t.originPoint),OC(e.y,a.translate,a.scale,a.originPoint)}const $z=.999999999999,Xz=1.0000000000001;function sxe(e,t,a,n=!1){const r=a.length;if(!r)return;t.x=t.y=1;let i,o;for(let l=0;l<r;l++){i=a[l],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Xp(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,h$(e,o)),n&&Bd(i.latestValues)&&Xp(e,i.latestValues))}t.x<Xz&&t.x>$z&&(t.x=1),t.y<Xz&&t.y>$z&&(t.y=1)}function $p(e,t){e.min=e.min+t,e.max=e.max+t}function Yz(e,t,a,n,r=.5){const i=An(e.min,e.max,r);OC(e,t,a,i,n)}function Xp(e,t){Yz(e.x,t.x,t.scaleX,t.scale,t.originX),Yz(e.y,t.y,t.scaleY,t.scale,t.originY)}function g$(e,t){return m$(nxe(e.getBoundingClientRect(),t))}function rxe(e,t,a){const n=g$(e,a),{scroll:r}=t;return r&&($p(n.x,r.offset.x),$p(n.y,r.offset.y)),n}const Zz=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yp=()=>({x:Zz(),y:Zz()}),Jz=()=>({min:0,max:0}),In=()=>({x:Jz(),y:Jz()}),xy={current:null},kD={current:!1};function x$(){if(kD.current=!0,!!W6)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xy.current=e.matches;e.addEventListener("change",t),t()}else xy.current=!1}const ixe=new WeakMap;function oxe(e,t,a){for(const n in t){const r=t[n],i=a[n];if(Fs(r))e.addValue(n,r);else if(Fs(i))e.addValue(n,wm(r,{owner:e}));else if(i!==r)if(e.hasValue(n)){const o=e.getValue(n);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(n);e.addValue(n,wm(o!==void 0?o:r,{owner:e}))}}for(const n in a)t[n]===void 0&&e.removeValue(n);return t}const e_=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lxe{scrapeMotionValuesFromProps(t,a,n){return{}}constructor({parent:t,props:a,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=dD,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=pr.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,wn.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=a.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=a,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=j2(a),this.isVariantNode=a$(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...f}=this.scrapeMotionValuesFromProps(a,{},this);for(const h in f){const x=f[h];c[h]!==void 0&&Fs(x)&&x.set(c[h])}}mount(t){this.current=t,ixe.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((a,n)=>this.bindToMotionValue(n,a)),kD.current||x$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xy.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Bc(this.notifyUpdate),Bc(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.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,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=uf.has(t);n&&this.onBindTransform&&this.onBindTransform();const r=a.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&wn.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Pm){const a=Pm[t];if(!a)continue;const{isEnabled:n,Feature:r}=a;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):In()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let n=0;n<e_.length;n++){const r=e_[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=oxe(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 a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const n=this.values.get(t);a!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&a!==void 0&&(n=wm(a===null?void 0:a,{owner:this}),this.addValue(t,n)),n}readValue(t,a){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(cK(n)||uK(n))?n=parseFloat(n):!gge(n)&&Gc.test(a)&&(n=QK(t,a)),this.setBaseTarget(t,Fs(n)?n.get():n)),Fs(n)?n.get():n}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){const{initial:a}=this.props;let n;if(typeof a=="string"||typeof a=="object"){const i=wD(this.props,a,this.presenceContext?.custom);i&&(n=i[t])}if(a&&n!==void 0)return n;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!Fs(r)?r:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Z6),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){mD.render(this.render)}}class b$ extends lxe{constructor(){super(...arguments),this.KeyframeResolver=sge}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:n}){delete a[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fs(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function v$(e,{style:t,vars:a},n,r){const i=e.style;let o;
vendor: 1,383 bytes, line 849
849for(o in t)i[o]=t[o];r?.applyProjectionStyles(i,n);for(o in a)i.setProperty(o,a[o])}function cxe(e){return window.getComputedStyle(e)}class dxe extends b${constructor(){super(...arguments),this.type="html",this.renderInstance=v$}readValueFromInstance(t,a){if(uf.has(a))return this.projection?.isProjecting?NC(a):jhe(t,a);{const n=cxe(t),r=(tD(a)?n.getPropertyValue(a):n[a])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:a}){return g$(t,a)}build(t,a,n){bD(t,a,n.transformTemplate)}scrapeMotionValuesFromProps(t,a,n){return PD(t,a,n)}}const y$=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function uxe(e,t,a,n){v$(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(y$.has(r)?r:jD(r),t.attrs[r])}class pxe extends b${constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=In}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(uf.has(a)){const n=VK(a);return n&&n.default||0}return a=y$.has(a)?a:jD(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,n){return c$(t,a,n)}
vendor: 9,601 bytes, line 849
849build(t,a,n){r$(t,a,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,a,n,r){uxe(t,a,n,r)}mount(t){this.isSVGTag=o$(t.tagName),super.mount(t)}}const mxe=(e,t)=>yD(e)?new pxe(t):new dxe(t,{allowProjection:e!==P.Fragment});function lm(e,t,a){const n=e.getProps();return wD(n,t,a!==void 0?a:n.custom,e)}const RC=e=>Array.isArray(e);function fxe(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,wm(a))}function hxe(e){return RC(e)?e[e.length-1]||0:e}function gxe(e,t){const a=lm(e,t);let{transitionEnd:n={},transition:r={},...i}=a||{};i={...i,...n};for(const o in i){const l=hxe(i[o]);fxe(e,o,l)}}function xxe(e){return!!(Fs(e)&&e.add)}function zC(e,t){const a=e.getValue("willChange");if(xxe(a))return a.add(t);if(!a&&Cl.WillChange){const n=new Cl.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function w$(e){return e.props[d$]}const bxe=e=>e!==null;function vxe(e,{repeat:t,repeatType:a="loop"},n){const r=e.filter(bxe),i=t&&a!=="loop"&&t%2===1?0:r.length-1;return r[i]}const yxe={type:"spring",stiffness:500,damping:25,restSpeed:10},wxe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pxe={type:"keyframes",duration:.8},jxe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},kxe=(e,{keyframes:t})=>t.length>2?Pxe:uf.has(e)?e.startsWith("scale")?wxe(t[1]):yxe:jxe;function Nxe({when:e,delay:t,delayChildren:a,staggerChildren:n,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:l,from:c,elapsed:d,...m}){return!!Object.keys(m).length}const ND=(e,t,a,n={},r,i)=>o=>{const l=uD(n,e)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-yo(c);const m={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:h=>{t.set(h),l.onUpdate&&l.onUpdate(h)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:r};Nxe(l)||Object.assign(m,kxe(e,m)),m.duration&&(m.duration=yo(m.duration)),m.repeatDelay&&(m.repeatDelay=yo(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let f=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(DC(m),m.delay===0&&(f=!0)),(Cl.instantAnimations||Cl.skipAnimations)&&(f=!0,DC(m),m.delay=0),m.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const h=vxe(m.keyframes,l);if(h!==void 0){wn.update(()=>{m.onUpdate(h),m.onComplete()});return}}return l.isSync?new cD(m):new Qhe(m)};function Axe({protectedKeys:e,needsAnimating:t},a){const n=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,n}function P$(e,t,{delay:a=0,transitionOverride:n,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:o,...l}=t;n&&(i=n);const c=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const m in l){const f=e.getValue(m,e.latestValues[m]??null),h=l[m];if(h===void 0||d&&Axe(d,m))continue;const x={delay:a,...uD(i||{},m)},b=f.get();if(b!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===b&&!x.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const j=w$(e);if(j){const N=window.MotionHandoffAnimation(j,m,wn);N!==null&&(x.startTime=N,y=!0)}}zC(e,m),f.start(ND(m,f,h,e.shouldReduceMotion&&HK.has(m)?{type:!1}:x,e,y));const w=f.animation;w&&c.push(w)}return o&&Promise.all(c).then(()=>{wn.update(()=>{o&&gxe(e,o)})}),c}function j$(e,t,a,n=0,r=1){const i=Array.from(e).sort((d,m)=>d.sortNodePosition(m)).indexOf(t),o=e.size,l=(o-1)*n;return typeof a=="function"?a(i,o):r===1?i*n:l-i*n}function _C(e,t,a={}){const n=lm(e,t,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=n||{};a.transitionOverride&&(r=a.transitionOverride);const i=n?()=>Promise.all(P$(e,n,a)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:f}=r;return Sxe(e,t,c,d,m,f,a)}:()=>Promise.resolve(),{when:l}=r;if(l){const[c,d]=l==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(a.delay)])}function Sxe(e,t,a=0,n=0,r=0,i=1,o){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(_C(c,t,{...o,delay:a+(typeof n=="function"?0:n)+j$(e.variantChildren,c,n,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Cxe(e,t,a={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const r=t.map(i=>_C(e,i,a));n=Promise.all(r)}else if(typeof t=="string")n=_C(e,t,a);else{const r=typeof t=="function"?lm(e,t,a.custom):t;n=Promise.all(P$(e,r,a))}return n.then(()=>{e.notify("AnimationComplete",t)})}function k$(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let n=0;n<a;n++)if(t[n]!==e[n])return!1;return!0}const Txe=xD.length;function N$(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?N$(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<Txe;a++){const n=xD[a],r=e.props[n];(qg(r)||r===!1)&&(t[n]=r)}return t}const Dxe=[...gD].reverse(),Exe=gD.length;function Mxe(e){return t=>Promise.all(t.map(({animation:a,options:n})=>Cxe(e,a,n)))}function Oxe(e){let t=Mxe(e),a=t_(),n=!0;const r=c=>(d,m)=>{const f=lm(e,m,c==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:h,transitionEnd:x,...b}=f;d={...d,...b,...x}}return d};function i(c){t=c(e)}function o(c){const{props:d}=e,m=N$(e.parent)||{},f=[],h=new Set;let x={},b=1/0;for(let w=0;w<Exe;w++){const j=Dxe[w],N=a[j],k=d[j]!==void 0?d[j]:m[j],D=qg(k),C=j===c?N.isActive:null;C===!1&&(b=w);let S=k===m[j]&&k!==d[j]&&D;if(S&&n&&e.manuallyAnimateOnMount&&(S=!1),N.protectedKeys={...x},!N.isActive&&C===null||!k&&!N.prevProp||P2(k)||typeof k=="boolean")continue;const A=Rxe(N.prevProp,k);let E=A||j===c&&N.isActive&&!S&&D||w>b&&D,R=!1;const F=Array.isArray(k)?k:[k];let I=F.reduce(r(j),{});C===!1&&(I={});const{prevResolvedValues:H={}}=N,_={...H,...I},V=K=>{E=!0,h.has(K)&&(R=!0,h.delete(K)),N.needsAnimating[K]=!0;const ae=e.getValue(K);ae&&(ae.liveStyle=!1)};for(const K in _){const ae=I[K],$=H[K];if(x.hasOwnProperty(K))continue;let Z=!1;RC(ae)&&RC($)?Z=!k$(ae,$):Z=ae!==$,Z?ae!=null?V(K):h.add(K):ae!==void 0&&h.has(K)?V(K):N.protectedKeys[K]=!0}N.prevProp=k,N.prevResolvedValues=I,N.isActive&&(x={...x,...I}),n&&e.blockInitialAnimation&&(E=!1);const W=S&&A;E&&(!W||R)&&f.push(...F.map(K=>{const ae={type:j};if(typeof K=="string"&&n&&!W&&e.manuallyAnimateOnMount&&e.parent){const{parent:$}=e,Z=lm($,K);if($.enteringChildren&&Z){const{delayChildren:O}=Z.transition||{};ae.delay=j$($.enteringChildren,e,O)}}return{animation:K,options:ae}}))}if(h.size){const w={};if(typeof d.initial!="boolean"){const j=lm(e,Array.isArray(d.initial)?d.initial[0]:d.initial);j&&j.transition&&(w.transition=j.transition)}h.forEach(j=>{const N=e.getBaseTarget(j),k=e.getValue(j);k&&(k.liveStyle=!0),w[j]=N??null}),f.push({animation:w})}let y=!!f.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,y?t(f):Promise.resolve()}function l(c,d){if(a[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(c,d)),a[c].isActive=d;const m=o(c);for(const f in a)a[f].protectedKeys={};return m}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>a,reset:()=>{a=t_(),n=!0}}}function Rxe(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!k$(t,e):!1}function Cd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t_(){return{animate:Cd(!0),whileInView:Cd(),whileHover:Cd(),whileTap:Cd(),whileDrag:Cd(),whileFocus:Cd(),exit:Cd()}}class Xc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class zxe extends Xc{constructor(t){super(t),t.animationState||(t.animationState=Oxe(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();P2(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let _xe=0;class Ixe extends Xc{constructor(){super(...arguments),this.id=_xe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const r=this.node.animationState.setActive("exit",!t);a&&!t&&r.then(()=>{a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Lxe={animation:{Feature:zxe},exit:{Feature:Ixe}};function Vg(e,t,a,n={passive:!0}){return e.addEventListener(t,a,n),()=>e.removeEventListener(t,a)}function eb(e){return{point:{x:e.pageX,y:e.pageY}}}const Fxe=e=>t=>fD(t)&&e(t,eb(t));function lg(e,t,a,n){return Vg(e,t,Fxe(a),n)}const A$=1e-4,Bxe=1-A$,Gxe=1+A$,S$=.01,Hxe=0-S$,qxe=0+S$;function Qs(e){return e.max-e.min}function Uxe(e,t,a){return Math.abs(e-t)<=a}function a_(e,t,a,n=.5){e.origin=n,e.originPoint=An(t.min,t.max,e.origin),e.scale=Qs(a)/Qs(t),e.translate=An(a.min,a.max,e.origin)-e.originPoint,(e.scale>=Bxe&&e.scale<=Gxe||isNaN(e.scale))&&(e.scale=1),(e.translate>=Hxe&&e.translate<=qxe||isNaN(e.translate))&&(e.translate=0)}function cg(e,t,a,n){a_(e.x,t.x,a.x,n?n.originX:void 0),a_(e.y,t.y,a.y,n?n.originY:void 0)}function n_(e,t,a){e.min=a.min+t.min,e.max=e.min+Qs(t)}function Vxe(e,t,a){n_(e.x,t.x,a.x),n_(e.y,t.y,a.y)}function s_(e,t,a){e.min=t.min-a.min,e.max=e.min+Qs(t)}function dg(e,t,a){s_(e.x,t.x,a.x),s_(e.y,t.y,a.y)}function ni(e){return[e("x"),e("y")]}const C$=({current:e})=>e?e.ownerDocument.defaultView:null,r_=(e,t)=>
vendor: 4,976 bytes, line 849
849Math.abs(e-t);function Qxe(e,t){const a=r_(e.x,t.x),n=r_(e.y,t.y);return Math.sqrt(a**2+n**2)}class T${constructor(t,a,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Ok(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,b=Qxe(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!b)return;const{point:y}=h,{timestamp:w}=As;this.history.push({...y,timestamp:w});const{onStart:j,onMove:N}=this.handlers;x||(j&&j(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,h)},this.handlePointerMove=(h,x)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Mk(x,this.transformPagePoint),wn.update(this.updatePoint,!0)},this.handlePointerUp=(h,x)=>{this.end();const{onEnd:b,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Ok(h.type==="pointercancel"?this.lastMoveEventInfo:Mk(x,this.transformPagePoint),this.history);this.startEvent&&b&&b(h,j),y&&y(h,j)},!fD(t))return;this.dragSnapToOrigin=i,this.handlers=a,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const l=eb(t),c=Mk(l,this.transformPagePoint),{point:d}=c,{timestamp:m}=As;this.history=[{...d,timestamp:m}];const{onSessionStart:f}=a;f&&f(t,Ok(c,this.history)),this.removeListeners=Yx(lg(this.contextWindow,"pointermove",this.handlePointerMove),lg(this.contextWindow,"pointerup",this.handlePointerUp),lg(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Bc(this.updatePoint)}}function Mk(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 Ok({point:e},t){return{point:e,delta:i_(e,D$(t)),offset:i_(e,Wxe(t)),velocity:Kxe(t,.1)}}function Wxe(e){return e[0]}function D$(e){return e[e.length-1]}function Kxe(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,n=null;const r=D$(e);for(;a>=0&&(n=e[a],!(r.timestamp-n.timestamp>yo(t)));)a--;if(!n)return{x:0,y:0};const i=ui(r.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function $xe(e,{min:t,max:a},n){return t!==void 0&&e<t?e=n?An(t,e,n.min):Math.max(e,t):a!==void 0&&e>a&&(e=n?An(a,e,n.max):Math.min(e,a)),e}function o_(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function Xxe(e,{top:t,left:a,bottom:n,right:r}){return{x:o_(e.x,a,r),y:o_(e.y,t,n)}}function l_(e,t){let a=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,n]=[n,a]),{min:a,max:n}}function Yxe(e,t){return{x:l_(e.x,t.x),y:l_(e.y,t.y)}}function Zxe(e,t){let a=.5;const n=Qs(e),r=Qs(t);return r>n?a=Bg(t.min,t.max-n,e.min):n>r&&(a=Bg(e.min,e.max-r,t.min)),Sl(0,1,a)}function Jxe(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const IC=.35;function ebe(e=IC){return e===!1?e=0:e===!0&&(e=IC),{x:c_(e,"left","right"),y:c_(e,"top","bottom")}}function c_(e,t,a){return{min:d_(e,t),max:d_(e,a)}}function d_(e,t){return typeof e=="number"?e:e[t]||0}const tbe=new WeakMap;class abe{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=In(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(eb(f).point)},o=(f,h)=>{const{drag:x,dragPropagation:b,onDragStart:y}=this.getProps();if(x&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lge(x),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ni(j=>{let N=this.getAxisMotionValue(j).get()||0;if(wo.test(N)){const{projection:k}=this.visualElement;if(k&&k.layout){const D=k.layout.layoutBox[j];D&&(N=Qs(D)*(parseFloat(N)/100))}}this.originPoint[j]=N}),y&&wn.postRender(()=>y(f,h)),zC(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:x,dragDirectionLock:b,onDirectionLock:y,onDrag:w}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:j}=h;if(b&&this.currentDirection===null){this.currentDirection=nbe(j),this.currentDirection!==null&&y&&y(this.currentDirection);return}
vendor: 8,831 bytes, line 849
849this.updateAxis("x",h.point,j),this.updateAxis("y",h.point,j),this.visualElement.render(),w&&w(f,h)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>ni(f=>this.getAnimationState(f)==="paused"&&this.getAxisMotionValue(f).animation?.play()),{dragSnapToOrigin:m}=this.getProps();this.panSession=new T$(t,{onSessionStart:i,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:n,contextWindow:C$(this.visualElement)})}stop(t,a){const n=t||this.latestPointerEvent,r=a||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&wn.postRender(()=>l(n,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,n){const{drag:r}=this.getProps();if(!n||!K0(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=$xe(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:a}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Kp(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=Xxe(n.layoutBox,t):this.constraints=!1,this.elastic=ebe(a),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ni(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Jxe(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Kp(t))return!1;const n=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=rxe(n,r.root,this.visualElement.getTransformPagePoint());let o=Yxe(r.layout.layoutBox,i);if(a){const l=a(axe(o));this.hasMutatedConstraints=!!l,l&&(o=m$(l))}return o}startAnimation(t){const{drag:a,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=ni(m=>{if(!K0(m,a,this.currentDirection))return;let f=c&&c[m]||{};o&&(f={min:0,max:0});const h=r?200:1e6,x=r?40:1e7,b={type:"inertia",velocity:n?t[m]:0,bounceStiffness:h,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(m,b)});return Promise.all(d).then(l)}startAxisValueAnimation(t,a){const n=this.getAxisMotionValue(t);return zC(this.visualElement,t),n.start(ND(t,n,0,a,this.visualElement,!1))}stopAnimation(){ni(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ni(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),r=n[a];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ni(a=>{const{drag:n}=this.getProps();if(!K0(a,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(a);if(r&&r.layout){const{min:o,max:l}=r.layout.layoutBox[a];i.set(t[a]-An(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:n}=this.visualElement;if(!Kp(a)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};ni(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();r[o]=Zxe({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ni(o=>{if(!K0(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(An(c,d,r[o]))})}addListeners(){if(!this.visualElement.current)return;tbe.set(this.visualElement,this);const t=this.visualElement.current,a=lg(t,"pointerdown",c=>{const{drag:d,dragListener:m=!0}=this.getProps();d&&m&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Kp(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),wn.read(n);const o=Vg(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(ni(m=>{const f=this.getAxisMotionValue(m);f&&(this.originPoint[m]+=c[m].translate,f.set(f.get()+c[m].translate))}),this.visualElement.render())}));return()=>{o(),a(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=IC,dragMomentum:l=!0}=t;return{...t,drag:a,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function K0(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function nbe(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class sbe extends Xc{constructor(t){super(t),this.removeGroupControls=hi,this.removeListeners=hi,this.controls=new abe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||hi}unmount(){this.removeGroupControls(),this.removeListeners()}}const u_=e=>(t,a)=>{e&&wn.postRender(()=>e(t,a))};class rbe extends Xc{constructor(){super(...arguments),this.removePointerDownListener=hi}onPointerDown(t){this.session=new T$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:C$(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:u_(t),onStart:u_(a),onMove:n,onEnd:(i,o)=>{delete this.session,r&&wn.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=lg(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Fv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function p_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yh={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Vt.test(e))e=parseFloat(e);else return e;const a=p_(e,t.target.x),n=p_(e,t.target.y);return`${a}% ${n}%`}},ibe={correct:(e,{treeScale:t,projectionDelta:a})=>{const n=e,r=Gc.parse(e);if(r.length>5)return n;const i=Gc.createTransformer(e),o=typeof r[0]!="number"?1:0,l=a.x.scale*t.x,c=a.y.scale*t.y;r[0+o]/=l,r[1+o]/=c;const d=An(l,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=d),typeof r[3+o]=="number"&&(r[3+o]/=d),i(r)}};let Rk=!1;class obe extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Dge(lbe),i&&(a.group&&a.group.add(i),n&&n.register&&r&&n.register(i),Rk&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Fv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,Rk=!0,r||t.layoutDependency!==a||a===void 0||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||wn.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),mD.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:n}=this.props,{projection:r}=t;Rk=!0,r&&(r.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function E$(e){const[t,a]=JK(),n=P.useContext(V6);return s.jsx(obe,{...e,layoutGroup:n,switchLayoutGroup:P.useContext(u$),isPresent:t,safeToRemove:a})}const lbe={borderRadius:{...yh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yh,borderTopRightRadius:yh,borderBottomLeftRadius:yh,borderBottomRightRadius:yh,boxSh
vendor: 4,466 bytes, line 849
849adow:ibe};function cbe(e,t,a){const n=Fs(e)?e:wm(e);return n.start(ND("",n,t,a)),n.animation}const dbe=(e,t)=>e.depth-t.depth;class ube{constructor(){this.children=[],this.isDirty=!1}add(t){K6(this.children,t),this.isDirty=!0}remove(t){$6(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dbe),this.isDirty=!1,this.children.forEach(t)}}function pbe(e,t){const a=pr.now(),n=({timestamp:r})=>{const i=r-a;i>=t&&(Bc(n),e(i-t))};return wn.setup(n,!0),()=>Bc(n)}const M$=["TopLeft","TopRight","BottomLeft","BottomRight"],mbe=M$.length,m_=e=>typeof e=="string"?parseFloat(e):e,f_=e=>typeof e=="number"||Vt.test(e);function fbe(e,t,a,n,r,i){r?(e.opacity=An(0,a.opacity??1,hbe(n)),e.opacityExit=An(t.opacity??1,0,gbe(n))):i&&(e.opacity=An(t.opacity??1,a.opacity??1,n));for(let o=0;o<mbe;o++){const l=`border${M$[o]}Radius`;let c=h_(t,l),d=h_(a,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||f_(c)===f_(d)?(e[l]=Math.max(An(m_(c),m_(d),n),0),(wo.test(d)||wo.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||a.rotate)&&(e.rotate=An(t.rotate||0,a.rotate||0,n))}function h_(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const hbe=O$(0,.5,vK),gbe=O$(.5,.95,hi);function O$(e,t,a){return n=>n<e?0:n>t?1:a(Bg(e,t,n))}function g_(e,t){e.min=t.min,e.max=t.max}function Yr(e,t){g_(e.x,t.x),g_(e.y,t.y)}function x_(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function b_(e,t,a,n,r){return e-=t,e=gy(e,1/a,n),r!==void 0&&(e=gy(e,1/r,n)),e}function xbe(e,t=0,a=1,n=.5,r,i=e,o=e){if(wo.test(t)&&(t=parseFloat(t),t=An(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=An(i.min,i.max,n);e===i&&(l-=t),e.min=b_(e.min,t,a,l,r),e.max=b_(e.max,t,a,l,r)}function v_(e,t,[a,n,r],i,o){xbe(e,t[a],t[n],t[r],t.scale,i,o)}const bbe=["x","scaleX","originX"],vbe=["y","scaleY","originY"];function y_(e,t,a,n){v_(e.x,t,bbe,a?a.x:void 0,n?n.x:void 0),v_(e.y,t,vbe,a?a.y:void 0,n?n.y:void 0)}function w_(e){return e.translate===0&&e.scale===1}function R$(e){return w_(e.x)&&w_(e.y)}function P_(e,t){return e.min===t.min&&e.max===t.max}function ybe(e,t){return P_(e.x,t.x)&&P_(e.y,t.y)}function j_(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function z$(e,t){return j_(e.x,t.x)&&j_(e.y,t.y)}function k_(e){return Qs(e.x)/Qs(e.y)}function N_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wbe{constructor(){this.members=[]}add(t){K6(this.members,t),t.scheduleRender()}remove(t){if($6(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(r=>t===r);if(a===0)return!1;let n;for(let r=a;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,a){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,a&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:n}=t;a.onExitComplete&&a.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Pbe(e,t,a){let n="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=a?.z||0;if((r||i||o)&&(n=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:d,rotate:m,rotateX:f,rotateY:h,skewX:x,skewY:b}=a;d&&(n=`perspective(${d}px) ${n}`),m&&(n+=`rotate(${m}deg) `),f&&(n+=`rotateX(${f}deg) `),h&&(n+=`rotateY(${h}deg) `),x&&(n+=`skewX(${x}deg) `),b&&(n+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const zk=["","X","Y","Z"],jbe=1e3;let kbe=0;function _k(e,t,a,n){const{latestValues:r}=t;r[e]&&(a[e]=r[e],t.setStaticValue(e,0),n&&(n[e]=0))}function _$(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=w$(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:r,layoutId:i}=e.options;
vendor: 4,198 bytes, line 849
849window.MotionCancelOptimisedAnimation(a,"transform",wn,!(r||i))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&_$(n)}function I$({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(o={},l=t?.()){this.id=kbe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Sbe),this.nodes.forEach(Ebe),this.nodes.forEach(Mbe),this.nodes.forEach(Cbe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new ube)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Z6),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=ZK(o)&&!fge(o),this.instance=o;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let m,f=0;const h=()=>this.root.updateBlockedByResize=!1;wn.read(()=>{f=window.innerWidth}),e(o,()=>{const x=window.innerWidth;x!==f&&(f=x,this.root.updateBlockedByResize=!0,m&&m(),m=pbe(h,250),Fv.hasAnimatedSinceResize&&(Fv.hasAnimatedSinceResize=!1,this.nodes.forEach(C_)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Ibe,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=d.getProps(),j=!this.targetLayout||!z$(this.targetLayout,x),N=!f&&h;if(this.options.layoutRoot||this.resumeFrom||N||f&&(j||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...uD(b,"layout"),onPlay:y,onComplete:w};(d.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(m,N)}else f||C_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Bc(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(Obe),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&&_$(this),!this.root.isUpdating&&this.root.startUpd
vendor: 7,171 bytes, line 849
849ate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const f=this.path[m];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(A_);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(S_);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Dbe),this.nodes.forEach(Nbe),this.nodes.forEach(Abe)):this.nodes.forEach(S_),this.clearAllSnapshots();const l=pr.now();As.delta=Sl(0,1e3/60,l-As.timestamp),As.timestamp=l,As.isProcessing=!0,kk.update.process(As),kk.preRender.process(As),kk.render.process(As),As.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mD.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Tbe),this.sharedNodes.forEach(Rbe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Qs(this.snapshot.measuredBox.x)&&!Qs(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=In(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!R$(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;o&&this.instance&&(l||Bd(this.latestValues)||m)&&(r(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),Lbe(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return In();const l=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Fbe))){const{scroll:d}=this.root;d&&($p(l.x,d.offset.x),$p(l.y,d.offset.y))}return l}removeElementScroll(o){const l=In();if(Yr(l,o),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:m,options:f}=d;d!==this.root&&m&&f.layoutScroll&&(m.wasRoot&&Yr(l,o),$p(l.x,m.offset.x),$p(l.y,m.offset.y))}return l}applyTransform(o,l=!1){const c=In();Yr(c,o);for(let d=0;d<this.path.length;d++){const m=this.path[d];!l&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Xp(c,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Bd(m.latestValues)&&Xp(c,m.latestValues)}return Bd(this.latestValues)&&Xp(c,this.latestValues),c}removeTransform(o){const l=In();Yr(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Bd(d.latestValues))continue;MC(d.latestValues)&&d.updateSnapshot();const m=In(),f=d.measurePageBox();Yr(m,f),y_(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,m)}return Bd(this.latestValues)&&y_(l,this.latestValues),l}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!==As.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:f}=this.options;if(!(!this.layout||!(m||f))){if(this.resolvedRelativeTargetAt=As.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=In(),this.relativeTargetOrigin=In(),dg(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Yr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=In(),this.targetWithTransforms=In()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Vxe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yr(this.target,this.layout.layoutBox),h$(this.target,this.targetDelta)):Yr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=In(),this.relativeTargetOrigin=In(),dg(this.relativeTargetOrigin,this.target,h.target),Yr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||MC(this.parent.latestValues)||f$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;
vendor: 9,340 bytes, line 849
849if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===As.timestamp&&(c=!1),c)return;const{layout:d,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||m))return;Yr(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;sxe(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=In());const{target:x}=o;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(x_(this.prevProjectionDelta.x,this.projectionDelta.x),x_(this.prevProjectionDelta.y,this.projectionDelta.y)),cg(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!N_(this.projectionDelta.x,this.prevProjectionDelta.x)||!N_(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yp(),this.projectionDelta=Yp(),this.projectionDeltaWithTransform=Yp()}setAnimationOrigin(o,l=!1){const c=this.snapshot,d=c?c.latestValues:{},m={...this.latestValues},f=Yp();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const h=In(),x=c?c.source:void 0,b=this.layout?this.layout.source:void 0,y=x!==b,w=this.getStack(),j=!w||w.members.length<=1,N=!!(y&&!j&&this.options.crossfade===!0&&!this.path.some(_be));this.animationProgress=0;let k;this.mixTargetDelta=D=>{const C=D/1e3;T_(f.x,o.x,C),T_(f.y,o.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(dg(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),zbe(this.relativeTarget,this.relativeTargetOrigin,h,C),k&&ybe(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=In()),Yr(k,this.relativeTarget)),y&&(this.animationValues=m,fbe(m,d,this.latestValues,C,N,j)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Bc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wn.update(()=>{Fv.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=wm(0)),this.currentAnimation=cbe(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(jbe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:m}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&L$(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||In();const f=Qs(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const h=Qs(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+h}Yr(l,c),Xp(l,m),cg(this.projectionDeltaWithTransform,this.layoutCorrected,l,m)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new wbe),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&_k("z",o,d,this.animationValues);for(let m=0;m<zk.length;m++)_k(`rotate${zk[m]}`,o,d,this.animationValues),_k(`skew${zk[m]}`,o,d,this.animationValues);o.render();for(const m in d)o.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);o.scheduleRender()}applyProjectionStyles(o,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Lv(l?.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Lv(l?.pointerEvents)||""),this.hasProjected&&!Bd(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let f=Pbe(this.projectionDeltaWithTransform,this.treeScale,m);c&&(f=c(m,f)),o.transform=f;const{x:h,y:x}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${x.origin*100}% 0`,d.animationValues?o.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:o.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const b in Ug){if(m[b]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:j}=Ug[b],N=f==="none"?m[b]:y(m[b],d);if(w){const k=w.length;for(let D=0;D<k;D++)o[w[D]]=N}else j?this.options.visualElement.renderState.vars[b]=N:o[b]=N}this.options.layoutId&&(o.pointerEvents=d===this?Lv(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(A_),this.root.sharedNodes.clear()}}}function Nbe(e){e.updateLayout()}function Abe(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:n}=e.layout,{animationType:r}=e.options,i=t.source!==e.layout.source;r==="size"?ni(m=>{const f=i?t.measuredBox[m]:t.layoutBox[m],h=Qs(f);f.min=a[m].min,f.max=f.min+h}):L$(r,t.layoutBox,a)&&ni(m=>{const f=i?t.measuredBox[m]:t.layoutBox[m],h=Qs(a[m]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+h)});const o=Yp();cg(o,a,t.layoutBox);const l=Yp();i?cg(l,e.applyTransform(n,!0),t.measuredBox):cg(l,a,t.layoutBox);const c=!R$(o);let d=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:f,layout:h}=m;if(f&&h){const x=In();dg(x,t.layoutBox,f.layoutBox);const b=In();dg(b,a,h.layoutBox),z$(x,b)||(d=!0),m.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=x,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:l,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function Sbe(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 Cbe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Tbe(e){e.clearSnapshot()}function A_(e){e.clearMeasurements()}function S_(e){e.isLayoutDirty=!1}function Dbe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function C_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ebe(e){e.resolveTargetDelta()}function Mbe(e){e.calcProjection()}
vendor: 5,457 bytes, line 849
849function Obe(e){e.resetSkewAndRotation()}function Rbe(e){e.removeLeadSnapshot()}function T_(e,t,a){e.translate=An(t.translate,0,a),e.scale=An(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function D_(e,t,a,n){e.min=An(t.min,a.min,n),e.max=An(t.max,a.max,n)}function zbe(e,t,a,n){D_(e.x,t.x,a.x,n),D_(e.y,t.y,a.y,n)}function _be(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ibe={duration:.45,ease:[.4,0,.1,1]},E_=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),M_=E_("applewebkit/")&&!E_("chrome/")?Math.round:hi;function O_(e){e.min=M_(e.min),e.max=M_(e.max)}function Lbe(e){O_(e.x),O_(e.y)}function L$(e,t,a){return e==="position"||e==="preserve-aspect"&&!Uxe(k_(t),k_(a),.2)}function Fbe(e){return e!==e.root&&e.scroll?.wasRoot}const Bbe=I$({attachResizeListener:(e,t)=>Vg(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ik={current:void 0},F$=I$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ik.current){const e=new Bbe({});e.mount(window),e.setOptions({layoutScroll:!0}),Ik.current=e}return Ik.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gbe={pan:{Feature:rbe},drag:{Feature:sbe,ProjectionNode:F$,MeasureLayout:E$}};function R_(e,t,a){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",a==="Start");const r="onHover"+a,i=n[r];i&&wn.postRender(()=>i(t,eb(t)))}class Hbe extends Xc{mount(){const{current:t}=this.node;t&&(this.unmount=cge(t,(a,n)=>(R_(this.node,n,"Start"),r=>R_(this.node,r,"End"))))}unmount(){}}class qbe extends Xc{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=Yx(Vg(this.node.current,"focus",()=>this.onFocus()),Vg(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function z_(e,t,a){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",a==="Start");const r="onTap"+(a==="End"?"":a),i=n[r];i&&wn.postRender(()=>i(t,eb(t)))}class Ube extends Xc{mount(){const{current:t}=this.node;t&&(this.unmount=mge(t,(a,n)=>(z_(this.node,n,"Start"),(r,{success:i})=>z_(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const LC=new WeakMap,Lk=new WeakMap,Vbe=e=>{const t=LC.get(e.target);t&&t(e)},Qbe=e=>{e.forEach(Vbe)};function Wbe({root:e,...t}){const a=e||document;Lk.has(a)||Lk.set(a,{});const n=Lk.get(a),r=JSON.stringify(t);return n[r]||(n[r]=new IntersectionObserver(Qbe,{root:e,...t})),n[r]}function Kbe(e,t,a){const n=Wbe(t);return LC.set(e,a),n.observe(e),()=>{LC.delete(e),n.unobserve(e)}}const $be={some:0,all:1};class Xbe extends Xc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:n,amount:r="some",once:i}=t,o={root:a?a.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:$be[r]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:m,onViewportLeave:f}=this.node.getProps(),h=d?m:f;h&&h(c)};return Kbe(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(Ybe(t,a))&&this.startObserver()}unmount(){}}function Ybe({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const Zbe={inView:{Feature:Xbe},tap:{Feature:Ube},focus:{Feature:qbe},hover:{Feature:Hbe}},Jbe={layout:{ProjectionNode:F$,MeasureLayout:E$}},e0e={...Lxe,...Zbe,...Gbe,...Jbe},rn=txe(e0e,mxe);function Cu(){!kD.current&&x$();const[e]=P.useState(xy.current);return e}function B$({mode:e,freezeCount:t=0,streakDays:a=0,onClose:n}){const r=Cu(),i=e==="purchased",o=e!==null,l=i?"ØÙ
Ø§ÙØªÙ Ø¬Ø§ÙØ²Ø©!":"Ø³ÙØ³Ùت٠Ù
ØÙÙØ¸Ø©!",c=i?`تÙ
ØªÙØ¹Ù٠تجÙ
ÙØ¯ Ø§ÙØ³ÙØ³ÙØ© Ø¨ÙØ¬Ø§Ø. ÙØ¯ÙÙ Ø§ÙØ¢Ù ${t} ØÙ
Ø§ÙØ© Ù
ØªØ§ØØ© ÙÙÙÙ
ØºÙØ§Ø¨ ÙØ§ØØ¯.`:`استخدÙ
ÙØ§ ØÙ
Ø§ÙØ© Ø§ÙØ³ÙØ³ÙØ© تÙÙØ§Ø¦Ùا٠بعد ØºÙØ§Ø¨ ÙÙÙ
ÙØ§ØØ¯Ø ÙØ§ØµÙت Ø§ÙØ¢Ù Ø³ÙØ³ÙØ© ${a} Ø£ÙØ§Ù
.`;return s.jsx(xs,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:26",open:o,onOpenChange:d=>!d&&n(),children:s.jsx(bs,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:27",showCloseButton:!1,className:"max-w-sm overflow-hidden border-4 border-black bg-white p-0 shadow-[8px_8px_0_0_#000]","aria-describedby":void 0,children:s.jsxs("div",{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:32",className:"relative overflow-hidden bg-gradient-to-br from-[#dff2c6] via-[#f7faf0] to-memphis-sky px-6 py-7 text-center",children:[s.jsx("span",{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:33","aria-hidden":!0,
849className:"absolute -right-3 -top-3 text-6xl opacity-20",children:"â"}),s.jsx("span",{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:34","aria-hidden":!0,className:"absolute -bottom-3 -left-2 text-5xl opacity-20",children:"â¦"}),s.jsxs(rn.div,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:35",initial:r?!1:{opacity:0,scale:.95,y:8},animate:r?void 0:{opacity:1,scale:1,y:0},transition:{duration:.24,ease:[.23,1,.32,1]},className:"relative mx-auto flex h-20 w-20 items-center justify-center rounded-[24px] border-4 border-black bg-memphis-mint shadow-[4px_4px_0_0_#000]",children:[i?s.jsx(C6,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:41",className:"h-10 w-10 text-[#246a8a]","aria-hidden":"true"}):s.jsx(bl,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:41",className:"h-10 w-10 text-[#246a8a]","aria-hidden":"true"}),!r&&s.jsx(pn,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:42",className:"absolute -right-4 -top-3 h-6 w-6 text-memphis-yellow animate-pulse","aria-hidden":"true"})]}),s.jsx(Ui,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:44",className:"relative mt-5 text-2xl font-black text-black",children:l}),s.jsx(lf,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:45",className:"relative mt-2 text-sm font-bold leading-6 text-black/70",children:c}),s.jsx("div",{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:48",className:"relative mt-5 rounded-xl border-2 border-black bg-white/85 px-4 py-3 text-xs font-black text-black shadow-[2px_2px_0_0_rgba(0,0,0,.18)]",children:i?"ð§ Ø³ØªÙستÙÙÙ Ø§ÙØÙ
Ø§ÙØ© تÙÙØ§Ø¦Ùا٠ÙÙØ· Ø¹ÙØ¯ Ø§ÙØºÙاب ÙÙÙÙ
ÙØ§ØØ¯.":"ð¥ ÙØ¬Ùد٠اÙÙÙÙ
ÙÙ Ù
ا أبÙÙ Ø§ÙØ²Ø®Ù
Ù
ستÙ
راÙ."}),s.jsx(Ie,{"data-loc":"client/src/components/StreakFreezeFeedbackModal.tsx:51",onClick:n,className:"relative mt-5 min-h-11 w-full border-2 border-black bg-black font-black text-white shadow-[3px_3px_0_0_#5F6F36] transition-transform active:translate-y-px",children:"Ù
Ù
ØªØ§Ø²Ø Ø£ÙÙ
Ù ØªÙØ¯ÙÙ
Ù"})]})})})}function t0e(){return s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:10",className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":!0,children:[s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:12",className:"absolute top-16 left-12 w-16 h-16 rounded-full bg-memphis-mint border-2 border-black opacity-70"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:13",className:"absolute top-32 right-20 w-10 h-10 rounded-full bg-memphis-lilac border-2 border-black opacity-60"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:14",className:"absolute bottom-40 left-24 w-20 h-20 rounded-full bg-memphis-yellow border-2 border-black opacity-50"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:15",className:"absolute bottom-20 right-16 w-12 h-12 rounded-full bg-memphis-sky border-2 border-black opacity-60"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:17",className:"absolute top-48 left-40 w-0 h-0",style:{borderLeft:"20px solid transparent",borderRight:"20px solid transparent",borderBottom:"35px solid oklch(0.15 0 0)",opacity:.15}}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:18",className:"absolute bottom-60 right-40 w-0 h-0",style:{borderLeft:"15px solid transparent",borderRight:"15px solid transparent",borderBottom:"26px solid oklch(0.15 0 0)",opacity:.12}}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:20",className:"absolute top-24 right-48 w-8 h-14 bg-memphis-coral border-2 border-black opacity-40 rotate-12"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:21",className:"absolute bottom-32 left-48 w-10 h-6 bg-memphis-mint border-2 border-black opacity-50 -rotate-6"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:23",className:"absolute top-20 left-1/3 w-3 h-3 rounded-full bg-black opacity-20"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:24",className:"absolute top-64 right-1/3 w-2 h-2 rounded-full bg-black opacity-25"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:25",className:"absolute bottom-48 left-1/2 w-4 h-4 rounded-full bg-black opacity-15"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:27",className:"absolute top-56 left-16 w-6 h-6 bg-memphis-yellow border-2 border-black opacity-50 rotate-45"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:28",className:"absolute bottom-72 right-24 w-5 h-5 bg-memphis-lilac border-2 border-black opacity-45 rotate-45"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:30",className:"absolute top-40 right-1/4 w-24 h-0.5 bg-black opacity-15 rotate-12"}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:31",className:"absolute bottom-56 left-1/4 w-20 h-0.5 bg-black opacity-12 -rotate-6"})]})}function a0e(){const{isAuthenticated:e,loading:t}=Ma(),[,a]=Mo();P.useEffect(()=>{!t&&e&&a("/dashboard")},[e,t,a]);const n=[{icon:Ln,color:"bg-memphis-mint",title:"Ø¯Ø±ÙØ³ ØªÙØ§Ø¹ÙÙØ©",desc:"تعÙÙÙ
عبر Ù
ØØ§Ùر Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù ÙØ§ÙØ±ÙØ§Ø¶Ø© ÙØ§ÙØªØºØ°ÙØ©"},{icon:vs,color:"bg-memphis-yellow",title:"Ø£ÙØ¹Ø§Ø¨ ÙÙÙÙØ²",desc:"اختبر Ù
عÙÙÙ
Ø§ØªÙ Ø¨Ø£Ø³Ø¦ÙØ© Ù
Ù
تعة Ù
ع ØªØºØ°ÙØ© راجعة ÙÙØ±ÙØ©"},{icon:Os,color:"bg-memphis-sky",title:"ØªØØ¯Ùات ÙÙÙ
ÙØ©",desc:"Ø£ÙØ¬Ø² ØªØØ¯Ùات ÙÙÙ
ÙØ© ÙØ£Ø³Ø¨ÙØ¹ÙØ© ÙØ§Ùسب ÙÙØ§Ø·Ø§Ù"}
849,{icon:aa,color:"bg-memphis-lilac",title:"ÙÙØ§Ø· ÙØ´Ø§Ø±Ø§Øª",desc:"اج٠ع اÙÙÙØ§Ø· ÙØ§ØØµÙ عÙ٠شارات Ø§ÙØ¥Ùجاز"},{icon:Sn,color:"bg-memphis-coral",title:"ÙÙØØ© اÙ٠تصدرÙÙ",desc:"ØªÙØ§Ùس ٠ع Ø²Ù ÙØ§Ø¦Ù ÙØªØµØ¯Ùر اÙÙØ§Ø¦Ù Ø©"},{icon:Al,color:"bg-memphis-peach",title:"Ø¬ÙØ§Ø¦Ø² ØÙÙÙÙØ©",desc:"استبد٠ÙÙØ§Ø·Ù Ø¨Ø¬ÙØ§Ø¦Ø² ÙÙÙÙ Ø©"}];return s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:56",className:"min-h-screen memphis-bg relative",children:[s.jsx(t0e,{"data-loc":"client/src/pages/Home.tsx:57"}),s.jsxs("header",{"data-loc":"client/src/pages/Home.tsx:60",className:"relative z-10 flex items-center justify-between px-6 py-4 max-w-7xl mx-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:61",className:"flex items-center gap-2.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:62",className:"relative w-10 h-10 rounded-xl bg-memphis-lilac border-2 border-black shadow-memphis flex items-center justify-center",children:[s.jsx(Ln,{"data-loc":"client/src/pages/Home.tsx:63",className:"w-5 h-5 text-black"}),s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:64",className:"absolute -left-1 -top-1 rounded-full border border-black bg-memphis-yellow px-1 text-[9px] font-black",children:"â¦"})]}),s.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:66",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:66",className:"block font-black text-xl leading-none text-black",children:"جد ÙØ¬Ø¯"}),s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:66",className:"mt-0.5 block text-[9px] font-black tracking-wide text-black/55",children:"تعÙÙ٠⢠طبÙÙ â¢ ØªÙØ¯ÙÙ "})]})]}),s.jsx("button",{"data-loc":"client/src/pages/Home.tsx:68",onClick:()=>Rn(),className:"memphis-btn bg-black text-white px-6 py-2.5 font-black text-sm",children:"ابدأ Ø§ÙØ¢Ù"})]}),s.jsxs("main",{"data-loc":"client/src/pages/Home.tsx:77",className:"relative z-10 max-w-7xl mx-auto px-6 pt-16 pb-24",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:78",className:"text-center mb-16",children:[s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:79",className:"inline-flex items-center gap-2 bg-memphis-yellow border-2 border-black rounded-full px-4 py-1.5 shadow-memphis mb-6",children:[s.jsx(N6,{"data-loc":"client/src/pages/Home.tsx:80",className:"w-4 h-4 text-black"}),s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:81",className:"font-bold text-sm text-black",children:"Ù ÙØµØ© تعÙÙÙ ÙØ© ØªÙØ§Ø¹ÙÙØ© ÙÙÙ ÙØ¸ÙÙÙ"})]}),s.jsxs("h1",{"data-loc":"client/src/pages/Home.tsx:83",className:"memphis-title text-5xl md:text-7xl text-black mb-6 leading-tight",children:["Ø¬Ø¯Ø Ø§ÙØ¹Ø¨Ø",s.jsx("br",{"data-loc":"client/src/pages/Home.tsx:84"}),s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:85",className:"text-memphis-lilac",style:{WebkitTextStroke:"2px black"},children:"ÙØ§Ùتصر"})]}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:87",className:"text-xl text-black/70 max-w-2xl mx-auto font-medium mb-6",children:"Ø§ÙØªØ³Ø¨ عادات صØÙØ© ÙØ¥ÙØ¬Ø§Ø¨ÙØ© ÙÙ Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù Ù Ù Ù Ø®ÙØ§Ù Ø¯Ø±ÙØ³ ٠٠تعة ÙØ£Ùعاب ØªÙØ§Ø¹ÙÙØ© ÙÙ ÙØ§Ùسة ٠ع Ø²Ù ÙØ§Ø¦Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:90",className:"mb-8 flex flex-wrap justify-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:91",className:"memphis-badge-pill bg-white",children:"Ø¯Ø±ÙØ³ ÙØµÙرة ÙÙØ§Ø¶ØØ©"}),s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:92",className:"memphis-badge-pill bg-memphis-mint",children:"ÙØ±Ø§Ø± ÙØªØ·Ø¨ÙÙ ÙÙØ±Ù"}),s.jsx("span",{"data-loc":"client/src/pages/Home.tsx:93",className:"memphis-badge-pill bg-memphis-yellow",children:"ØªÙØ¯Ù ÙÙ ÙØ§Ùآت Ù Ø±Ø¦ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:95",className:"flex flex-col sm:flex-row gap-3 justify-center",children:[s.jsx("button",{"data-loc":"client/src/pages/Home.tsx:96",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-8 py-4 text-lg font-black text-black",children:"ð Ø§Ø¨Ø¯Ø£ رØÙØªÙ Ø§ÙØ¢Ù"}),s.jsx("a",{"data-loc":"client/src/pages/Home.tsx:102",href:"#ÙÙÙ-تع٠Ù",className:"memphis-btn bg-white px-8 py-4 text-lg font-black text-black",children:"ÙÙ٠تع٠٠اÙÙ ÙØµØ©Ø"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:107",id:"ÙÙÙ-تع٠Ù",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map((r,i)=>{const o=r.icon;return s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:111",className:"memphis-card memphis-card--quiet p-6 cursor-default",children:[s.jsx("div",{"data-loc":"client/src/pages/Home.tsx:112",className:`w-12 h-12 rounded-xl ${r.color} border-2 border-black shadow-memphis flex items-center justify-center mb-4`,children:s.jsx(o,{"data-loc":"client/src/pages/Home.tsx:113",className:"w-6 h-6 text-black"})}),s.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:115",className:"font-black text-lg text-black mb-2",children:r.title}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:116",className:"text-black/60 text-sm font-medium",children:r.desc})]},i)})}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:123",className:"mt-12 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:124",className:"text-black/60 font-medium mb-4 text-sm",children:"Ø´Ø§Ø±Ù Ù ÙØµØ© جد ÙØ¬Ø¯ ٠ع Ø²Ù ÙØ§Ø¦Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:125",className:"flex items-center justify-center gap-3 flex-wrap",children:[s.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:127",onClick:()=>window.open(`https://wa.me/?text=${encodeURIComponent(`ð¯ Ø¬Ø±Ùب Ù ÙØµØ© جد ÙØ¬Ø¯ â ØªØ¹ÙÙÙ Ø Ø§ÙØ¹Ø¨Ø ÙØ§Ùتصر ٠ع Ø²Ù ÙØ§Ø¦Ù! 850`+window.location.origin)}`,"_blank"),className:"memphis-btn bg-[#25D366] text-white px-5 py-2.5 font-bold text-sm flex items-center gap-2 hover:opacity-90",children:[s.jsx("svg",{"data-loc":"client/src/pages/Home.tsx:131",width:"18",height:"18",viewBox:"0 0 24 24",fill:"
850currentColor",children:s.jsx("path",{"data-loc":"client/src/pages/Home.tsx:131",d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"ÙØ§ØªØ³Ø§Ø¨"]}),s.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:135",onClick:()=>window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent("ð¯ Ù
ÙØµØ© جد ÙØ¬Ø¯ â ØªØ¹ÙÙÙ
ÙØªÙØ§ÙØ³ Ù
ع زÙ
ÙØ§Ø¦Ù ÙÙ Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù! #تعÙÙ
_ØªÙØ§Ø¹ÙÙ #تطÙÙØ±_Ø§ÙØ°Ø§Øª")}&url=${encodeURIComponent(window.location.origin)}`,"_blank"),className:"memphis-btn bg-black text-white px-5 py-2.5 font-bold text-sm flex items-center gap-2 hover:opacity-90",children:[s.jsx("svg",{"data-loc":"client/src/pages/Home.tsx:139",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{"data-loc":"client/src/pages/Home.tsx:139",d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.744l7.73-8.835L1.254 2.25H8.08l4.253 5.622zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"X (تÙÙØªØ±)"]}),s.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:143",onClick:()=>window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(window.location.origin)}`,"_blank"),className:"memphis-btn bg-[#0A66C2] text-white px-5 py-2.5 font-bold text-sm flex items-center gap-2 hover:opacity-90",children:[s.jsx("svg",{"data-loc":"client/src/pages/Home.tsx:147",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{"data-loc":"client/src/pages/Home.tsx:147",d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),"ÙÙÙÙØ¯Ø¥Ù"]}),s.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:151",onClick:()=>{navigator.clipboard.writeText(window.location.origin),alert("تÙ
ÙØ³Ø® رابط اÙÙ
ÙØµØ©! ð")},className:"memphis-btn bg-memphis-yellow text-black px-5 py-2.5 font-bold text-sm flex items-center gap-2 hover:opacity-90",children:[s.jsx(Lr,{"data-loc":"client/src/pages/Home.tsx:155",size:16}),"ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:162",className:"mt-16 memphis-card memphis-card--hero bg-memphis-lilac p-8 text-center",children:[s.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:163",className:"font-black text-3xl text-black mb-3",children:"Ø¬Ø§ÙØ² ÙÙØ¨Ø¯Ø¡Ø"}),s.jsx("p",{"data-loc":"client/src/pages/Home.tsx:164",className:"text-black/70 font-medium mb-6",children:"سجÙ٠دخÙÙÙ Ø§ÙØ¢Ù ÙØ§Ø¨Ø¯Ø£ رØÙØªÙ ÙØÙ Ø¨ÙØ¦Ø© عÙ
Ù Ø£ÙØ¶Ù"}),s.jsx("button",{"data-loc":"client/src/pages/Home.tsx:165",onClick:()=>Rn(),className:"memphis-btn bg-black text-white px-8 py-3 font-black text-base",children:"سجÙ٠دخÙÙÙ Ù
Ø¬Ø§ÙØ§Ù"})]})]})]})}function n0e(e){return`daily-content-notification-${e}`}function s0e(e){return`task-reactivation-notification-${e}`}function r0e(e,t,a=!0){if(!a)return;const n=e?.find(r=>!r.isRead);if(!(!n||n.id===t))return n}function i0e(e,t){const a=e?.find(n=>!n.isRead);if(!(!a||a.id===t))return a}function o0e(e){return e.filter(t=>t.type==="reaction"&&t.relatedType==="quiz_leaderboard")}function l0e(e){return o0e(e).filter(t=>!t.isRead).length}const c0e=[{value:"all",label:"اÙÙÙ"},{value:"congratulations",label:"ØªÙØ§ÙÙ"},{value:"challenges",label:"ØªØØ¯Ùات"},{value:"interactions",label:"ØªÙØ§Ø¹Ùات"}];function d0e(e,t){if(t==="all")return!0;const a=`${e.title} ${e.body??""}`;return t==="congratulations"?e.type==="reaction"&&/تÙÙØ¦Ø©|ÙÙØ£Ù/.test(a):t==="challenges"?e.type==="team_challenge_complete"||/ØªØØ¯Ù|ØªØØ¯ÙÙ|ØªØØ¯Ù/.test(a):e.type==="reaction"||e.type==="mention"||/ØªÙØ§Ø¹Ù|إعجاب|ردÙ/.test(a)}const G$="jad-wajad-accessibility-preferences",Fk={highContrast:!1,largeText:!1};function AD(e=typeof window>"u"?null:window.localStorage){if(!e)return Fk;try{const t=e.getItem(G$);if(!t)return Fk;const a=JSON.parse(t);return{highContrast:a.highContrast===!0,largeText:a.largeText===!0}}catch{return Fk}}function H$(e,t=typeof document>"u"?null:document.documentElement){t&&(t.classList.toggle("accessibility-high-contrast",e.highContrast),t.classList.toggle("accessibility-text-large",e.largeText))}function u0e(e,t=typeof window>"u"?null:window.localStorage){t?.setItem(G$,JSON.stringify(e))}function by(){const[e,t]=P.useState({highContrast:!1,largeText:!1});P.useEffect(()=>{t(AD())},[]);const a=n=>{const r={...e,...n};t(r),H$(r),u0e(r),window.dispatchEvent(new Event("accessibility-preferences-changed"))};return s.jsxs("div",{"data-loc":"client/src/components/AccessibilityControl
850s.tsx:19",className:"flex items-center gap-1 rounded-xl border-2 border-black bg-white p-1 shadow-memphis","aria-label":"إعدادات اÙÙØµÙÙ",children:[s.jsx("button",{"data-loc":"client/src/components/AccessibilityControls.tsx:20",type:"button","aria-pressed":e.highContrast,onClick:()=>a({highContrast:!e.highContrast}),className:`rounded-lg px-2 py-1.5 text-xs font-black transition-colors ${e.highContrast?"bg-black text-white":"text-black hover:bg-memphis-peach"}`,title:"تباÙ٠عاÙÙ",children:s.jsx(mW,{"data-loc":"client/src/components/AccessibilityControls.tsx:21",className:"h-4 w-4"})}),s.jsx("button",{"data-loc":"client/src/components/AccessibilityControls.tsx:23",type:"button","aria-pressed":e.largeText,onClick:()=>a({largeText:!e.largeText}),className:`rounded-lg px-2 py-1.5 text-xs font-black transition-colors ${e.largeText?"bg-black text-white":"text-black hover:bg-memphis-peach"}`,title:"ØªÙØ¨Ùر اÙÙØµ",children:s.jsx(jW,{"data-loc":"client/src/components/AccessibilityControls.tsx:24",className:"h-4 w-4"})})]})}const p0e=["Ø´ÙØ±Ø§Ù ÙÙ! ð","ÙØ³Ø¹Ø¯Ù٠دعÙ
Ù! ð","Ø§ÙØªØØ¯Ù اÙÙØ§Ø¯Ù
Ø£ÙÙÙ â¡","ð","ð¥"];function m0e({open:e,filter:t="all",onReplied:a}){const n=J.quiz.reactionInbox.useQuery({limit:8},{enabled:e}),[r,i]=P.useState({}),o=J.quiz.replyToLeaderboardReaction.useMutation({onSuccess:(d,m)=>{i(f=>({...f,[m.reactionId]:""})),n.refetch(),a?.(),re.success("تÙ
إرسا٠ردÙ٠اÙÙØ·ÙÙ")},onError:d=>re.error(d.message||"تعذر Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø¯")});if(!e)return null;if(n.isLoading)return s.jsxs("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:25",className:"border-b-2 border-black/15 bg-memphis-yellow/30 px-3 py-4",children:[s.jsx("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:25",className:"h-4 w-32 animate-pulse rounded bg-black/15"}),s.jsx("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:25",className:"mt-2 h-16 animate-pulse rounded-xl border border-black/10 bg-white/70"})]});const l=t==="challenges"?[]:(n.data??[]).filter(d=>t!=="congratulations"||d.reactionType==="congratulate");if(l.length===0)return null;const c=(d,m)=>{const f=m.trim();f&&o.mutate({reactionId:d,content:f})};return s.jsxs("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"border-b-2 border-black/15 bg-memphis-yellow/30 px-3 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"mb-2 flex items-center justify-between gap-2",children:[s.jsxs("span",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"inline-flex items-center gap-1.5 text-xs font-black text-black",children:[s.jsx(xW,{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"h-4 w-4"})," Ø±Ø¯ÙØ¯ عÙÙ ØªÙØ§ÙÙ ÙØªÙجتÙ"]}),s.jsx("span",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"rounded-full border border-black/25 bg-white px-2 py-0.5 text-[10px] font-black text-black",children:l.length})]}),s.jsx("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"space-y-2",children:l.slice(0,4).map(d=>{const m=d.reactionType==="congratulate",f=o.isPending&&o.variables?.reactionId===d.reactionId;return s.jsxs("article",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"rounded-xl border border-black/20 bg-white/90 p-2.5",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"flex items-start gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:`flex h-8 w-8 shrink-0 items-center justify-center rounded-lg border border-black/25 ${m?"bg-memphis-lilac":"bg-memphis-mint"}`,children:m?s.jsx(N6,{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"h-4 w-4 fill-red-500 text-red-500"}):s.jsx(m2,{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"min-w-0 flex-1",children:[s.jsxs("p",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"text-[11px] font-black text-black",children:[d.senderName??"زÙ
ÙÙÙ"," ",m?"ÙÙØ£Ù عÙÙ ÙØªÙجتÙ":"أعجب Ø¨ÙØªÙجتÙ"]}),s.jsx("p",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"mt-0.5 text-[10px] font-bold text-black/55",children:new Date(d.createdAt).toLocaleStr
850ing("ar-SA")})]})]}),d.replyContent?s.jsxs("p",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"mt-2 rounded-lg border border-black/15 bg-memphis-mint/35 px-2 py-1.5 text-[11px] font-bold text-black",children:["ردÙÙ: ",d.replyContent]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"mt-2 flex gap-1.5",children:[s.jsx("input",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",value:r[d.reactionId]??"",onChange:h=>i(x=>({...x,[d.reactionId]:h.target.value})),onKeyDown:h=>{h.key==="Enter"&&c(d.reactionId,r[d.reactionId]??"")},maxLength:180,placeholder:"Ø§ÙØªØ¨ Ø±Ø¯ÙØ§Ù ÙØµÙراÙ...",className:"min-w-0 flex-1 rounded-lg border-2 border-black/25 bg-white px-2 py-1.5 text-[11px] font-bold text-black outline-none focus:border-black"}),s.jsx("button",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",type:"button",onClick:()=>c(d.reactionId,r[d.reactionId]??""),disabled:f||!(r[d.reactionId]??"").trim(),className:"inline-flex items-center justify-center rounded-lg border-2 border-black bg-memphis-lilac px-2 text-black disabled:opacity-45","aria-label":"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø¯",children:s.jsx(p2,{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"h-3.5 w-3.5"})})]}),s.jsx("div",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",className:"mt-1.5 flex flex-wrap gap-1",children:p0e.map(h=>s.jsx("button",{"data-loc":"client/src/components/QuizReactionReplyInbox.tsx:35",type:"button",onClick:()=>c(d.reactionId,h),disabled:f,className:"rounded-full border border-black/20 bg-white px-1.5 py-0.5 text-[10px] font-black text-black hover:border-black disabled:opacity-45",children:h},h))})]})]},d.reactionId)})})]})}const __=[{href:"/dashboard",label:"Ø§ÙØ±Ø¦ÙØ³ÙØ©",icon:hW},{href:"/learning-path",label:"Ù
سارÙ",icon:A6},{href:"/challenges",label:"Ø§ÙØªØØ¯Ùات",icon:Os},{href:"/teams",label:"اÙÙØ±Ù",icon:ln},{href:"/leaderboard",label:"اÙÙ
تصدرÙÙ",icon:pl},{href:"/prizes",label:"Ø§ÙØ¬Ùائز",icon:Al},{href:"/game",label:"Ù
Ø³Ø§Ø¨ÙØ© â¡",icon:vs},{href:"/saved-resources",label:"اÙÙ
ØÙÙØ¸Ø§Øª",icon:Hi},{href:"/profile",label:"Ù
ÙÙÙ",icon:kW}],f0e=[{value:"all",label:"اÙÙÙ"},{value:"level_up",label:"Ù
ستÙÙ"},{value:"badge_earned",label:"شارة"},{value:"streak_updated",label:"Ø³ÙØ³ÙØ©"},{value:"team_challenge_complete",label:"ØªØØ¯Ù"},{value:"prize_approved",label:"جائزة"},{value:"new_puzzle",label:"ÙØºØ² ð§©"},{value:"daily_content",label:"Ù
ØØªÙÙ Ø¬Ø¯ÙØ¯ â¨"},{value:"task_reactivated",label:"Ù
ÙÙ
Ø© Ù
ÙØ¹ÙÙØ© â»"},{value:"peak_puzzle",label:"Ù
Ø´Ø§Ø±ÙØ© ÙÙØ§Ø³ÙØ© ð¥"},{value:"reaction",label:"ØªÙØ§Ø¹Ùات â¤ï¸"},{value:"quiz_rematch_accepted",label:"إعادة ØªØØ¯ÙÙ âï¸"},{value:"challenge_evidence_review",label:"Ù
راجعة دÙÙÙ ð"},{value:"challenge_evidence_reply",label:"رد اÙÙ
Ø¯ÙØ± ð¬"},{value:"challenge_evidence_overdue",label:"دÙÙÙ Ù
تأخر â°"}];function h0e(e){return{level_up:"ð",badge_earned:"ðï¸",streak_updated:"ð¥",team_challenge_complete:"âï¸",prize_approved:"ð",team_joined:"ð¥",mention:"ð¬",reaction:"â¤ï¸",new_puzzle:"ð§©",daily_content:"â¨",task_reactivated:"â»",peak_puzzle:"ð¥",quiz_rematch_accepted:"âï¸",challenge_evidence_review:"ð",challenge_evidence_reply:"ð¬",challenge_evidence_overdue:"â°"}[e]??"ð"}function jn(){const{user:e,isAuthenticated:t}=Ma(),[a]=Mo(),[n,r]=P.useState(!1),[i,o]=P.useState(!1),[l,c]=P.useState("all"),[d,m]=P.useState("all"),f=P.useRef(null),h=P.useRef(null),x=P.useRef(null),b=P.useRef(null),y=P.useRef(null),w=P.useRef(null),j=P.useRef(null),N=J.auth.logout.useMutation({onSuccess:()=>{window.location.href="/"}}),k=J.profile.me.useQuery(void 0,{enabled:t}),D=J.notifications.unreadCount.useQuery(void 0,{enabled:t,refetchInterval:2e4}),C=J.notifications.list.useQuery({limit:50,type:l==="all"?void 0:l},{enabled:t&&i}),S=J.notifications.list.useQuery({limit:12,type:"reaction"},{enabled:t,refetchInterval:2e4}),A=J.notifications.list.useQuery({limit:1,type:"daily_content"},{enabled:t,refetchInterval:2e4}),E=J.notifications.list.useQuery({limit:1,type:"task_reactivated"},{enabled:t,refetchInterval:8e3}),R=J.notifications.list.useQuery({limit:1,type:"quiz_rematch_accepted"},{enabled:t,refetchInterval:8e3}),F=J.notifications.list.useQuery({limit:1,type:"challenge_evidence_review"},{enabled:t,refetchInterval:8e3}),I=J.notifications.list.useQuery({limit:1,type:"challenge_evidence_reply"},{enabled:t,refetchInterval:8e3}),H=J.notifications.list.useQuery({limit:1,type:"challenge_evidence_overdue"},{enabled:t,refetchInterval:8e3}),_=J.dailyContent.notificationPreference.useQuery(void 0,{enabled:t});J.notifications.markRead.useMutation({onSuccess:()=>{D.refetch(),C.refetch(),S.refetch()}});const V=J.notifications.markAllRead.useMutation({onSuccess:()=>{D.refetch(),C.refetch(),S.refetch()}}),W=(typeof D.data=="number"?D.data:D.data?.count)??0,B=l0e(S.data??[]),K=(C.data??[]).filter($=>d0e($,d));P.useEffect(()=>{const $=r0e(A.data,h.current,_.data===!0);if(!$)return;const Z=n0e($.id);h.current=$.id,!window.sessionStorage.getItem(Z)&&(window.sessionStorage.setItem(Z,"shown"),re.success($.title,{description:$.body,action:{label:"Ø§Ø³ØªÙØ´Ø§Ù",onClick:()=>{window.location.href="/daily-content"}},duration:9e3}))},[A.data,_.data]),P.useEffect(()=>{const $=i0e(E.data,x.current);if(!$)return;const Z=s0e($.id);x.current=$.id,!window.sessionStorage.getItem(Z)&&(window.sessionStorage.setItem(Z,"shown"),re.success($.title,{description:$.body,action:{label:"ÙØªØ Ø§ÙØªØØ¯Ù",onClick:()=>{window.location.href="/thirty-day-challenge"}},duration:9e3}),D.refetch())},[E.data]),P.useEffect(()=>{const $=R.data?.[0];if(!$||$.isRead||b.current===$.id)return;const Z=`athar-rematch-accepted-${$.id}`;b.current=$.id,!window.sessionStorage.getItem(Z)&&(window.sessionStorage.setItem(Z,"shown"),re.success($.title,{description:$.body,action:{label:"ÙØªØ Ø§ÙØ³Ø¬Ù",onClick:()=>{window.location.href="/profile#qr-challenge-history-title"}},duration:9e3}),D.refetch())},[R.data]),P.useEffect(()=>{const $=F.data?.[0];if(!$||$.isRead||y.current===$.id)return;const Z=`athar-challenge-evidence-review-${$.id}`;y.current=$.id,!window.sessionStorage.getItem(Z)&&(window.sessionStorage.setItem(Z,"shown"),re.success($.title,{description:$.body,action:{label:"ÙØªØ Ø§ÙØªØØ¯Ùات",onClick:()=>{window.location.href="/challenges"}},duration:9e3}),D.refetch())},[F.data]),P.useEffect(()=>{const $=I.data?.[0];if(!$||$.isRead||w.current===$.id)return;const Z=`athar-challenge-evidence-reply-${$.id}`;w.current=$.id,!window.sessionStorage.getItem(Z)&&(window.sessionStorage.setItem(Z,"shown"),re.success($.title,{description:$.body,action:{label:"ÙØªØ Ø§ÙØªØØ¯Ùات",onClick:()=>{window.location.href="/challenges"}},duration:9e3}),D.refetch())},[I.data]),P.useEffect(()=>{const $=H.data?.[0];if(!$||$.isRead||j.current===$.id)return;const Z=`athar-challenge-evidence-overdue-${$.id}`;j.current=$.id,!window.sessionStorage.getItem(Z)&&(window.sessionStorage.setItem(Z,"shown"),re.warning($.title,{description:$.body,action:{label:"ÙØªØ اÙÙ
راجعة",onClick:()=>{window.location.href="/admin/content"}},duration:1e4}),D.refetch())},[H.data]),P.useEffect(()=>{function $(Z){f.current&&!f.current.contains(Z.target)&&o(!1)}return i&&document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[i]);const ae=()=>{o(!i)};return s.jsxs("nav",{"data-loc":"client/src/components/Navbar.tsx:238",className:"sticky top-0 z-50 border-b-2 border-black bg-white/90 backdrop-blur-sm shadow-memphis",children:[s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:239",className:"max-w-7xl mx-auto px-4 flex items-center justify-between h-16 min-w-0",children:[s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:241",href:t?"/dashboard":"/",children:s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:242",className:"flex items-center gap-2.5 cursor-pointer",children:[s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:243",className:"relative flex h-9 w-9 items-center justify-center rounded-xl border-2 border-black bg-memphis-lilac shadow-memphis",children:[s.jsx(Ln,{"data-loc":"client/src/components/Navbar.tsx:244",className:"w-5 h-5 text-black"}),s.jsx(pn,{"data-loc":"client/src/components/Navbar.tsx:245",className:"absolute -left-1 -top-1 h-3.5 w-3.5 rounded-full bg-memphis-yellow p-0.5 text-black"})]}),s.jsxs("span",{"data-loc":"client/src/components/Navbar.tsx:247",className:"hidden sm:block",children:[s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:247",className:"block font-black text-lg leading-none tracking-tight text-black",children:"جد ÙØ¬Ø¯"}),s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:247",className:"mt-0.5 block text-[9px] font-black tracking-wide text-black/55",children:"تعÙÙÙ
⢠طبÙÙ â¢ ØªÙØ¯ÙÙ
"})]})]})}),t&&s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:253",className:"hidden md:flex items-center gap-0.5 flex-shrink min-w-0 overflow-hidden",children:[__.map($=>{const Z=$.icon,O=a===$.href;return s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:258",href:$.href,children:s.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:259",className:`flex items-center gap-1 px-2 py-1.5 rounded-lg text-xs font-bold border-2 transition-all duration-150 whitespace-nowrap ${O?"bg-memphis-lilac border-black shadow-memphis":"border-transparent hover:border-black hover:bg-memphis-peach"}`,children:[s.jsx(Z,{"data-loc":"client/src/components/Navbar.tsx:260",className:"w-4 h-4"}),$.label]})},$.href)}),e?.role==="admin"&&s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:267",href:"/admin",children:s.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:268",className:`flex items-center gap-1 px-2 py-1.5 rounded-lg text-xs font-bold border-2 transition-all duration-150 whitespace-nowrap ${a==="/admin"?"bg-memphis-coral border-black shadow-memphis":"border-transparent hover:border-black hover:bg-memphis-peach"}`,children:[s.jsx(aa,{"data-loc":"client/src/components/Navbar.tsx:269",className:"w-4 h-4"}),"ÙÙØØ© اÙÙ
Ø¯ÙØ±"]})})]}),s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:278",className:"flex items-center gap-1.5 flex-shrink-0",children:t?s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:281",className:"hidden xl:block",children:s.jsx(by,{"data-loc":"client/src/components/Navbar.tsx:281"})}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:283",className:"hidden lg:flex items-center gap-1 bg-memphis-yellow border-2 border-black rounded-full px-2 py-1 shadow-memphis",children:[s.jsx(aa,{"data-loc":"client/src/components/Navbar.tsx:284",className:"w-3.5 h-3.5 text-black"}),s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:285",className:"font-black text-xs text-black",children:k.data?.totalPoints??e?.totalPoints??0})]}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:288",className:"relative",ref:f,children:[s.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:289",onClick:ae,className:"relative p-2 rounded-lg border-2 border-black bg-white hover:bg-memphis-peach shadow-memphis transition-all",title:"Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª","aria-label":`Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª${W>0?`Ø ${W} ØºÙØ± Ù
ÙØ±Ùءة`:""}`,children:[s.jsx(j6,{"data-loc":"client/src/components/Navbar.tsx:295",className:"w-4 h-4 text-black"}),W>0&&s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:297",className:"absolute -top-1.5 -right-1.5 min-w-[18px] h-[18px] bg-red-500 text-white text-[10px] font-black rounded-full flex items-center justify-center px-1 border border-white animate-bounce",children:W>9?"9+":W}),B>0&&s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:302",className:"absolute -bottom-1.5 -left-1.5 flex h-[18px] min-w-[18px] items-center justify-center rounded-full border border-white bg-memphis-yellow px-1 text-[10px] font-black text-black shadow-sm","aria-label":`${B} ØªÙØ§Ø¹Ù Ø¬Ø¯ÙØ¯ عÙÙ ÙØªÙجة ÙÙÙØ²`,children:s.jsx(N6,{"data-loc":"client/src/components/Navbar.tsx:302",className:"h-2.5 w-2.5 fill-current"})})]}),i&&s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:307",className:"absolute left-0 top-full mt-2 w-80 bg-white border-2 border-black rounded-2xl shadow-[4px_4px_0px_black] z-[9999] overflow-hidden",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:308",className:"flex items-center justify-between px-4 py-3 border-b-2 border-black bg-memphis-peach",children:[s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:309",className:"font-black text-sm text-black",children:"Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª"}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:310",className:"flex items-center gap-2",children:[W>0&&s.jsxs("span",{"data-loc":"client/src/components/Navbar.tsx:311",className:"memphis-badge-pill bg-red-500 text-white text-xs",children:[W," Ø¬Ø¯ÙØ¯"]}),W>0&&s.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:313",onClick:()=>V.mutate(),className:"text-[10px] font-black text-black/60 hover:text-black border border-black/20 rounded-full px-2 py-0.5 hover:bg-white transition-all",children:"ØªØØ¯Ùد اÙÙÙ â"})]})]}),s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:323",className:"flex gap-1 px-3 py-2 border-b border-black/10 overflow-x-auto scrollbar-none",children:f0e.map($=>s.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:325",onClick:()=>c($.value),className:`flex-shrink-0 text-[10px] font-black px-2 py-1 rounded-full border transition-all ${l===$.value?"bg-black text-white border-black":"bg-white text-black border-black/20 hover:border-black"}`,children:$.label},$.value))}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:334",className:"border-b-2 border-black/10 bg-[#f7faf0] px-3 py-2",children:[s.jsx("p",{"data-loc":"client/src/components/Navbar.tsx:335",className:"mb-1.5 text-[10px] font-black text-black/55",children:"تصÙÙØ© Ø³Ø±ÙØ¹Ø©"}),s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:336",className:"flex gap-1 overflow-x-auto scrollbar-none",children:c0e.map($=>s.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:337",type:"button",onClick:()=>m($.value),"aria-pressed":d===$.value,className:`shrink-0 rounded-full border-2 px-2.5 py-1 text-[10px] font-black transition-all ${d===$.value?"border-black bg-memphis-yellow text-black":"border-black/25 bg-white text-black hover:border-black"}`,children:$.label},$.value))})]}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:340",className:"max-h-72 overflow-y-auto",children:[s.jsx(m0e,{"data-loc":"client/src/components/Navbar.tsx:341",open:i,filter:d,onReplied:()=>{D.refetch(),C.refetch(),S.refetch()}}),C.isLoading?s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:343",className:"flex items-center justify-center py-8",children:s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:344",className:"w-6 h-6 border-2 border-black border-t-transparent roun
850ded-full animate-spin"})}):K.length===0?s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:347",className:"flex flex-col items-center justify-center py-8 text-center",children:[s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:348",className:"text-3xl mb-2",children:"ð"}),s.jsxs("p",{"data-loc":"client/src/components/Navbar.tsx:349",className:"font-bold text-black/40 text-sm",children:["ÙØ§ ØªÙØ¬Ø¯ إشعارات ",d!=="all"?"ضÙ
Ù Ø§ÙØªØµÙÙØ© اÙÙ
ختارة":l!=="all"?"Ù
Ù ÙØ°Ø§ اÙÙÙØ¹":""]})]}):K.map($=>s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:353",className:`flex items-start gap-3 px-4 py-3 border-b border-black/10 transition-colors ${$.isRead?"hover:bg-gray-50":"bg-memphis-mint/30"}`,children:[s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:354",className:"text-xl flex-shrink-0 mt-0.5",children:h0e($.type)}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:355",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/components/Navbar.tsx:356",className:"font-black text-xs text-black",children:$.title}),s.jsx("p",{"data-loc":"client/src/components/Navbar.tsx:357",className:"font-medium text-xs text-black/60 mt-0.5 leading-relaxed",children:$.body}),s.jsx("p",{"data-loc":"client/src/components/Navbar.tsx:358",className:"text-[10px] text-black/30 mt-1",children:new Date($.createdAt).toLocaleString("ar-SA")}),$.type==="peak_puzzle"&&$.relatedId&&s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:360",className:"mt-2",children:s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:361",href:"/admin/puzzles",onClick:()=>o(!1),children:s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:362",className:"inline-flex items-center gap-1 bg-black text-white px-2 py-1 rounded-md text-[10px] font-black hover:bg-memphis-yellow hover:text-black transition-colors",children:"ð Ø¹Ø±Ø¶ اÙÙØºØ² ÙÙ ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©"})})})]}),!$.isRead&&s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:369",className:"w-2 h-2 rounded-full bg-red-500 flex-shrink-0 mt-1"})]},$.id))]}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:375",className:"px-4 py-2 border-t border-black/10 bg-gray-50 flex gap-1",children:[s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:376",href:"/notifications",className:"flex-1",children:s.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:377",onClick:()=>o(!1),className:"w-full text-center text-[11px] font-black text-black/70 hover:text-black transition-colors py-1.5 rounded-lg hover:bg-memphis-lilac/30",children:"ð Ø¹Ø±Ø¶ اÙÙÙ"})}),s.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:381",className:"w-px bg-black/10"}),s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:382",href:"/points-history",className:"flex-1",children:s.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:383",onClick:()=>o(!1),className:"w-full text-center text-[11px] font-black text-black/50 hover:text-black transition-colors py-1.5 rounded-lg hover:bg-memphis-mint/30",children:"سج٠اÙÙÙØ§Ø· â"})})]})]})]}),s.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:391",onClick:()=>N.mutate(),className:"hidden lg:flex items-center gap-1 px-2 py-1.5 rounded-lg text-xs font-bold border-2 border-black bg-white hover:bg-red-50 shadow-memphis transition-all",children:[s.jsx(ly,{"data-loc":"client/src/components/Navbar.tsx:395",className:"w-4 h-4"}),"Ø®Ø±ÙØ¬"]}),s.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:399",className:"md:hidden p-2 rounded-lg border-2 border-black shadow-memphis",onClick:()=>r(!n),children:n?s.jsx(Zn,{"data-loc":"client/src/components/Navbar.tsx:400",className:"w-5 h-5"}):s.jsx(gW,{"data-loc":"client/src/components/Navbar.tsx:400",className:"w-5 h-5"})})]}):s.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:404",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-4 py-2 text-sm font-black text-black",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})})]}),n&&t&&s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:416",className:"md:hidden border-t-2 border-black bg-white px-4 py-3 flex flex-col gap-2",children:[__.map($=>{const Z=$.icon,O=a===$.href;return s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:421",href:$.href,children:s.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:422",onClick:()=>r(!1),className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-bold border-2 transition-all ${O?"bg-memphis-lilac border-black":"border-transparent hover:border-black hover:bg-memphis-peach"}`,children:[s.jsx(Z,{"data-loc":"client/src/components/Navbar.tsx:423",className:"w-4 h-4"}),$.label]})},$.href)}),e?.role==="admin"&&s.jsx(jt,{"data-loc":"client/src/components/Navbar.tsx:430",href:"/admin",children:s.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:431",onClick:()=>r(!1),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-bold border-2 border-transparent hover:border-black hover:bg-memphis-peach",children:[s.jsx(aa,{"data-loc":"client/src/components/Navbar.tsx:432",className:"w-4 h-4"}),"ÙÙØØ© اÙÙ
Ø¯ÙØ±"]})}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:437",className:"flex items-center justify-between gap-3 rounded-xl border-2 border-black bg-memphis-peach/40 p-2.5",children:[s.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:438",className:"text-xs font-black text-black",children:"سÙÙÙØ© اÙÙØ±Ø§Ø¡Ø©"}),s.jsx(by,{"data-loc":"client/src/components/Navbar.tsx:439"})]}),s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:441",className:"flex items-center justify-between pt-2 border-t border-gray-200",children:[s.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:442",className:"flex items-center gap-1 bg-memphis-yellow border-2 border-black rounded-full px-3 py-1",children:[s.jsx(aa,{"data-loc":"client/src/components/Navbar.tsx:443",className:"w-3.5 h-3.5"}),s.jsxs("span",{"data-loc":"client/src/components/Navbar.tsx:444",className:"font-black text-sm",children:[k.data?.totalPoints??0," ÙÙØ·Ø©"]})]}),s.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:446",onClick:()=>N.mutate(),className:"flex items-center gap-1 text-sm font-bold text-red-600",children:[s.jsx(ly,{"data-loc":"client/src/components/Navbar.tsx:447",className:"w-4 h-4"}),"Ø®Ø±ÙØ¬"]})]})]})]})}var tb={};(function e(t,a,n,r){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),o=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=(function(){if(!t.OffscreenCanvas)return!1;try{var Z=new OffscreenCanvas(1,1),O=Z.getContext("2d");O.fillRect(0,0,1,1);var Y=Z.transferToImageBitmap();O.createPattern(Y,"no-repeat")}catch{return!1}return!0})();function c(){}function d(Z){var O=a.exports.Promise,Y=O!==void 0?O:t.Promise;return typeof Y=="function"?new Y(Z):(Z(c,c),null)}var m=(function(Z,O){return{transform:function(Y){if(Z)return Y;if(O.has(Y))return O.get(Y);var Q=new OffscreenCanvas(Y.width,Y.height),U=Q.getContext("2d");return U.drawImage(Y,0,0),O.set(Y,Q),Q},clear:function(){O.clear()}}}
vendor: 7,526 bytes, lines 850-851
850)(l,new Map),f=(function(){var Z=Math.floor(16.666666666666668),O,Y,Q={},U=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(O=function(oe){var X=Math.random();return Q[X]=requestAnimationFrame(function ne(ge){U===ge||U+Z-1<ge?(U=ge,delete Q[X],oe()):Q[X]=requestAnimationFrame(ne)}),X},Y=function(oe){Q[oe]&&cancelAnimationFrame(Q[oe])}):(O=function(oe){return setTimeout(oe,Z)},Y=function(oe){return clearTimeout(oe)}),{frame:O,cancel:Y}})(),h=(function(){var Z,O,Y={};function Q(U){function oe(X,ne){U.postMessage({options:X||{},callback:ne})}U.init=function(ne){var ge=ne.transferControlToOffscreen();U.postMessage({canvas:ge},[ge])},U.fire=function(ne,ge,me){if(O)return oe(ne,null),O;var Ae=Math.random().toString(36).slice(2);return O=d(function(Pe){function L(ke){ke.data.callback===Ae&&(delete Y[Ae],U.removeEventListener("message",L),O=null,m.clear(),me(),Pe())}U.addEventListener("message",L),oe(ne,Ae),Y[Ae]=L.bind(null,{data:{callback:Ae}})}),O},U.reset=function(){U.postMessage({reset:!0});for(var ne in Y)Y[ne](),delete Y[ne]}}return function(){if(Z)return Z;if(!n&&i){var U=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(` 851`);try{Z=new Worker(URL.createObjectURL(new Blob([U])))}catch(oe){return typeof console<"u"&&typeof console.warn=="function"&&console.warn("ð Could not load worker",oe),null}Q(Z)}return Z}})(),x={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(Z,O){return O?O(Z):Z}function y(Z){return Z!=null}function w(Z,O,Y){return b(Z&&y(Z[O])?Z[O]:x[O],Y)}function j(Z){return Z<0?0:Math.floor(Z)}function N(Z,O){return Math.floor(Math.random()*(O-Z))+Z}function k(Z){return parseInt(Z,16)}function D(Z){return Z.map(C)}function C(Z){var O=String(Z).replace(/[^0-9a-f]/gi,"");return O.length<6&&(O=O[0]+O[0]+O[1]+O[1]+O[2]+O[2]),{r:k(O.substring(0,2)),g:k(O.substring(2,4)),b:k(O.substring(4,6))}}function S(Z){var O=w(Z,"origin",Object);return O.x=w(O,"x",Number),O.y=w(O,"y",Number),O}function A(Z){Z.width=document.documentElement.clientWidth,Z.height=document.documentElement.clientHeight}function E(Z){var O=Z.getBoundingClientRect();Z.width=O.width,Z.height=O.height}function R(Z){var O=document.createElement("canvas");return O.style.position="fixed",O.style.top="0px",O.style.left="0px",O.style.pointerEvents="none",O.style.zIndex=Z,O}function F(Z,O,Y,Q,U,oe,X,ne,ge){Z.save(),Z.translate(O,Y),Z.rotate(oe),Z.scale(Q,U),Z.arc(0,0,1,X,ne,ge),Z.restore()}function I(Z){var O=Z.angle*(Math.PI/180),Y=Z.spread*(Math.PI/180);return{x:Z.x,y:Z.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Z.startVelocity*.5+Math.random()*Z.startVelocity,angle2D:-O+(.5*Y-Math.random()*Y),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:Z.color,shape:Z.shape,tick:0,totalTicks:Z.ticks,decay:Z.decay,drift:Z.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Z.gravity*3,ovalScalar:.6,scalar:Z.scalar,flat:Z.flat}}function H(Z,O){O.x+=Math.cos(O.angle2D)*O.velocity+O.drift,O.y+=Math.sin(O.angle2D)*O.velocity+O.gravity,O.velocity*=O.decay,O.flat?(O.wobble=0,O.wobbleX=O.x+10*O.scalar,O.wobbleY=O.y+10*O.scalar,O.tiltSin=0,O.tiltCos=0,O.random=1):(O.wobble+=O.wobbleSpeed,O.wobbleX=O.x+10*O.scalar*Math.cos(O.wobble),O.wobbleY=O.y+10*O.scalar*Math.sin(O.wobble),O.tiltAngle+=.1,O.tiltSin=Math.sin(O.tiltAngle),O.tiltCos=Math.cos(O.tiltAngle),O.random=Math.random()+2);var Y=O.tick++/O.totalTicks,Q=O.x+O.random*O.tiltCos,U=O.y+O.random*O.tiltSin,oe=O.wobbleX+O.random*O.tiltCos,X=O.wobbleY+O.random*O.tiltSin;if(Z.fillStyle="rgba("+O.color.r+", "+O.color.g+", "+O.color.b+", "+(1-Y)+")",Z.beginPath(),o&&O.shape.type==="path"&&typeof O.shape.path=="string"&&Array.isArray(O.shape.matrix))Z.fill(K(O.shape.path,O.shape.matrix,O.x,O.y,Math.abs(oe-Q)*.1,Math.abs(X-U)*.1,Math.PI/10*O.wobble));else if(O.shape.type==="bitmap"){var ne=Math.PI/10*O.wobble,ge=Math.abs(oe-Q)*.1,me=Math.abs(X-U)*.1,Ae=O.shape.bitmap.width*O.scalar,Pe=O.shape.bitmap.height*O.scalar,L=new DOMMatrix([Math.cos(ne)*ge,Math.sin(ne)*ge,-Math.sin(ne)*me,Math.cos(ne)*me,O.x,O.y]);L.multiplySelf(new DOMMatrix(O.shape.matrix));var ke=Z.createPattern(m.transform(O.shape.bitmap),"no-repeat");ke.setTransform(L),Z.globalAlpha=1-Y,Z.fillStyle=ke,Z.fillRect(O.x-Ae/2,O.y-Pe/2,Ae,Pe),Z.globalAlpha=1}else if(O.shape==="circle")Z.ellipse?Z.ellipse(O.x,O.y,Math.abs(oe-Q)*O.ovalScalar,Math.abs(X-U)*O.ovalScalar,Math.PI/10*O.wobble,0,2*Math.PI):F(Z,O.x,O.y,Math.abs(oe-Q)*O.ovalScalar,Math.abs(X-U)*O.ovalScalar,Math.PI/10*O.wobble,0,2*Math.PI);else if(O.shape==="star")for(var Me=Math.PI/2*3,Ze=4*O.scalar,Ce=8*O.scalar,Te=O.x,Ke=O.y,Ve=5,ht=Math.PI/Ve;Ve--;)Te=O.x+Math.cos(Me)*Ce,Ke=O.y+Math.sin(Me)*Ce,Z.lineTo(Te,Ke),Me+=ht,Te=O.x+Math.cos(Me)*Ze,Ke=O.y+Math.sin(Me)*Ze,Z.lineTo(Te,Ke),Me+=ht;else Z.moveTo(Math.floor(O.x),Math.floor(O.y)),Z.lineTo(Math.floor(O.wobbleX),Math.floor(U)),Z.lineTo(Math.floor(oe),Math.floor(X)),Z.lineTo(Math.floor(Q),Math.floor(O.wobbleY));return Z.closePath(),Z.fill(),O.tick<O.totalTicks}function _(Z,O,Y,Q,U){var oe=O.slice(),X=Z.getContext("2d"),ne,ge,me=d(function(Ae){function Pe(){ne=ge=null,X.clearRect(0,0,Q.width,Q.height),m.clear(),U(),Ae()}function L(){n&&!(Q.width===r.width&&Q.height===r.height)&&(Q.width=Z.width=r.width,Q.height=Z.height=r.height),!Q.width&&!Q.height&&(Y(Z),Q.width=Z.width,Q.height=Z.height),X.clearRect(0,0,Q.width,Q.height),oe=oe.filter(function(ke){return H(X,ke)}),oe.length?ne=f.frame(L):Pe()}ne=f.frame(L),ge=Pe});return{addFettis:function(Ae){return oe=oe.concat(Ae),me},canvas:Z,promise:me,reset:function(){ne&&f.cancel(ne),ge&&ge()}}}function V(Z,O){var Y=!Z,Q=!!w(O||{},"resize"),U=!1,oe=w(O,"disableForReducedMotion",Boolean),X=i&&!!w(O||{},"useWorker"),ne=X?h():null,ge=Y?A:E,me=Z&&ne?!!Z.__confetti_initialized:!1,Ae=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Pe;function L(Me,Ze,Ce){for(var Te=w(Me,"particleCount",j),Ke=w(Me,"angle",Number),Ve=w(Me,"spread",Number),ht=w(Me,"startVelocity",Number),pe=w(Me,"decay",Number),et=w(Me,"gravity",Number),xe=w(Me,"drift",Number),it=w(Me,"colors",D),Tt=w(Me,"ticks",Number),bt=w(Me,"shapes"),vt=w(Me,"scalar"),St=!!w(Me,"flat"),de=S(Me),be=Te,G=[],je=Z.width*de.x,ze=Z.height*de.y;be--;)G.push(I({x:je,y:ze,angle:Ke,spread:Ve,startVelocity:ht,color:it[be%it.length],shape:bt[N(0,bt.length)],ticks:Tt,decay:pe,gravity:et,drift:xe,scalar:vt,flat:St}));return Pe?Pe.addFettis(G):(Pe=_(Z,G,ge,Ze,Ce),Pe.promise)}function ke(Me){var Ze=oe||w(Me,"disableForReducedMotion",Boolean),Ce=w(Me,"zIndex",Number);if(Ze&&Ae)return d(function(ht){ht()});Y&&Pe?Z=Pe.canvas:Y&&!Z&&(Z=R(Ce),document.body.appendChild(Z)),Q&&!me&&ge(Z);
851var Te={width:Z.width,height:Z.height};ne&&!me&&ne.init(Z),me=!0,ne&&(Z.__confetti_initialized=!0);function Ke(){if(ne){var ht={getBoundingClientRect:function(){if(!Y)return Z.getBoundingClientRect()}};ge(ht),ne.postMessage({resize:{width:ht.width,height:ht.height}});return}Te.width=Te.height=null}function Ve(){Pe=null,Q&&(U=!1,t.removeEventListener("resize",Ke)),Y&&Z&&(document.body.contains(Z)&&document.body.removeChild(Z),Z=null,me=!1)}return Q&&!U&&(U=!0,t.addEventListener("resize",Ke,!1)),ne?ne.fire(Me,Te,Ve):L(Me,Te,Ve)}return ke.reset=function(){ne&&ne.reset(),Pe&&Pe.reset()},ke}var W;function B(){return W||(W=V(null,{useWorker:!0,resize:!0})),W}function K(Z,O,Y,Q,U,oe,X){var ne=new Path2D(Z),ge=new Path2D;ge.addPath(ne,new DOMMatrix(O));var me=new Path2D;return me.addPath(ge,new DOMMatrix([Math.cos(X)*U,Math.sin(X)*U,-Math.sin(X)*oe,Math.cos(X)*oe,Y,Q])),me}function ae(Z){if(!o)throw new Error("path confetti are not supported in this browser");var O,Y;typeof Z=="string"?O=Z:(O=Z.path,Y=Z.matrix);var Q=new Path2D(O),U=document.createElement("canvas"),oe=U.getContext("2d");if(!Y){for(var X=1e3,ne=X,ge=X,me=0,Ae=0,Pe,L,ke=0;ke<X;ke+=2)for(var Me=0;Me<X;Me+=2)oe.isPointInPath(Q,ke,Me,"nonzero")&&(ne=Math.min(ne,ke),ge=Math.min(ge,Me),me=Math.max(me,ke),Ae=Math.max(Ae,Me));Pe=me-ne,L=Ae-ge;var Ze=10,Ce=Math.min(Ze/Pe,Ze/L);Y=[Ce,0,0,Ce,-Math.round(Pe/2+ne)*Ce,-Math.round(L/2+ge)*Ce]}return{type:"path",path:O,matrix:Y}}function $(Z){var O,Y=1,Q="#000000",U='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof Z=="string"?O=Z:(O=Z.text,Y="scalar"in Z?Z.scalar:Y,U="fontFamily"in Z?Z.fontFamily:U,Q="color"in Z?Z.color:Q);var oe=10*Y,X=""+oe+"px "+U,ne=new OffscreenCanvas(oe,oe),ge=ne.getContext("2d");ge.font=X;var me=ge.measureText(O),Ae=Math.ceil(me.actualBoundingBoxRight+me.actualBoundingBoxLeft),Pe=Math.ceil(me.actualBoundingBoxAscent+me.actualBoundingBoxDescent),L=2,ke=me.actualBoundingBoxLeft+L,Me=me.actualBoundingBoxAscent+L;Ae+=L+L,Pe+=L+L,ne=new OffscreenCanvas(Ae,Pe),ge=ne.getContext("2d"),ge.font=X,ge.fillStyle=Q,ge.fillText(O,ke,Me);var Ze=1/Y;return{type:"bitmap",bitmap:ne.transferToImageBitmap(),matrix:[Ze,0,0,Ze,-Ae*Ze/2,-Pe*Ze/2]}}a.exports=function(){return B().apply(this,arguments)},a.exports.reset=function(){B().reset()},a.exports.create=V,a.exports.shapeFromPath=ae,a.exports.shapeFromText=$})((function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}})(),tb,!1);const ii=tb.exports;tb.exports.create;const g0e={ØµØØ©:"bg-memphis-mint",عÙ
Ù:"bg-memphis-sky",Ø±ÙØ§Ø¶Ø©:"bg-memphis-coral",ØªØºØ°ÙØ©:"bg-memphis-peach",Ø¥ÙØ¬Ø§Ø¨ÙØ©:"bg-memphis-yellow",Ø¥ÙØªØ§Ø¬ÙØ©:"bg-memphis-lilac",تعÙÙ
:"bg-memphis-mint","ØµØØ© ÙÙØ³ÙØ©":"bg-memphis-lilac"};function x0e(){const e=J.tips.daily.useQuery(),t=e.data;if(e.isLoading)return s.jsxs("div",{"data-loc":"client/src/components/DailyTipCard.tsx:21",className:"memphis-card bg-memphis-yellow p-5 animate-pulse",children:[s.jsx("div",{"data-loc":"client/src/components/DailyTipCard.tsx:22",className:"h-4 bg-black/10 rounded w-24 mb-3"}),s.jsx("div",{"data-loc":"client/src/components/DailyTipCard.tsx:23",className:"h-4 bg-black/10 rounded w-full mb-2"}),s.jsx("div",{"data-loc":"client/src/components/DailyTipCard.tsx:24",className:"h-4 bg-black/10 rounded w-3/4"})]});if(!t)return null;const a=g0e[t.category]??"bg-memphis-yellow";return s.jsxs("div",{"data-loc":"client/src/components/DailyTipCard.tsx:34",className:`memphis-card ${a} p-5 relative overflow-hidden`,children:[s.jsx("div",{"data-loc":"client/src/components/DailyTipCard.tsx:36",className:"absolute top-2 left-2 w-12 h-12 rounded-full bg-black/5 -translate-x-4 -translate-y-4"}),s.jsx("div",{"data-loc":"client/src/components/DailyTipCard.tsx:37",className:"absolute bottom-2 right-2 w-8 h-8 rounded-full bg-black/5 translate-x-3 translate-y-3"}),s.jsxs("div",{"data-loc":"client/src/components/DailyTipCard.tsx:40",className:"flex items-center justify-between mb-3 relative z-10",children:[s.jsxs("div",{"data-loc":"client/src/components/DailyTipCard.tsx:41",className:"flex items-center gap-2",children:[s.jsx("div",{"data-loc":"client/src/components/DailyTipCard.tsx:42",className:"w-8 h-8 rounded-lg bg-black/10 border-2 border-black/20 flex items-center justify-center",children:s.jsx(hu,{"data-loc":"client/src/components/DailyTipCard.tsx:43",className:"w-4 h-4 text-black"})}),s.jsx("span",{"data-loc":"client/src/components/DailyTipCard.tsx:45",className:"font-black text-sm text-black",children:"ÙØµÙØØ© اÙÙÙÙ
"})]}),s.jsxs("span",{"data-loc":"client/src/components/DailyTipCard.tsx:47",className:"memphis-badge-pill bg-white/60 text-xs text-black border-black/30",children:[t.icon," ",t.category]})]}),s.jsx("p",{"data-loc":"client/src/components/DailyTipCard.tsx:53",className:"font-bold text-base text-black leading-relaxed relative z-10",children:t.text}),s.jsxs("div",{"data-loc":"client/src/components/DailyTipCard.tsx:58",className:"flex items-center gap-1 mt-3 relative z-10",children:[s.jsx(vo,{"data-loc":"client/src/components/DailyTipCard.tsx:59",className:"w-3 h-3 text-black/40"}),s.jsx("span",{"data-loc":"client/src/components/DailyTipCard.tsx:60",className:"text-xs text-black/40 font-medium",children:"تتجدد ÙÙ ÙÙÙ
"})]})]})}const b0e=[{value:"week",label:"ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"},{value:"month",label:"ÙØ°Ø§ Ø§ÙØ´Ùر"},{value:"all",label:"Ø§ÙØ¥Ø¬Ù
اÙÙ"}];function q$(e){return(e??"Ù
ÙØ¸Ù").trim().slice(0,2)||"Ù
Ù"}function v0e({userId:e,onClose:t}){const a=J.profile.publicById.useQuery({userId:e??0},{enabled:e!==null}),n=J.profile.requestAccess.useMutation(),r=a.data;return s.jsx(xs,{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:30",open:e!==null,onOpenChange:i=>!i&&t(),children:s.jsx(bs,{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:31",className:"max-w-sm border-4 border-black shadow-[6px_6px_0px_0px_#000] bg-memphis-lilac",dir:"rtl",children:a.isLoading?s.jsx("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:33",className:"py-10 text-center font-black text-black",children:"جار٠تØÙ
Ù٠اÙÙ
ÙÙ..."}):a.isError||!r?s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:35",className:"py-8 text-center font-black text-black space-y-4",children:[s.jsx("p",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:36",children:"ÙØ°Ø§ اÙÙ
ÙÙ Ø§ÙØ´Ø®ØµÙ خاص Ø£Ù ØºÙØ± Ù
ØªØ§Ø ÙÙ ØØ§ÙÙØ§Ù."}),e!==null&&s.jsx("button",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:37",type:"button",className:"memphis-btn bg-memphis-yellow text-black px-4 py-2 font-black",onClick:()=>n.mutate({targetUserId:e}),disabled:n.isPending,children:n.isSuccess?"تÙ
Ø¥Ø±Ø³Ø§Ù Ø§ÙØ·Ùب":n.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...":"Ø·ÙØ¨ اÙÙØµÙÙ"})]}):s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:40",className:"space-y-4 text-center",children:[s.jsx("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:41",className:"mx-auto w-20 h-20 rounded-2xl border-3 border-black bg-white overflow-hidden flex items-center justify-center shadow-memphis",children:r.avatarUrl?s.jsx("img",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:42",src:r.avatarUrl,alt:`Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ© ÙÙ ${r.name??"Ù
ÙØ¸Ù"}`,className:"w-full h-full object-cover"}):s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:42",className:"font-black text-lg text-black",children:q$(r.name)})}),s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:44",children:[s.jsx("h2",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:45",className:"font-black text-xl text-black",children:r.name??"Ù
ÙØ¸Ù"}),s.jsxs("p",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:4
8516",className:"font-bold text-sm text-black/60",children:["اÙÙ
ستÙÙ ",r.level," · ",r.totalPoints," ÙÙØ·Ø©"]})]}),s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:48",className:"grid grid-cols-3 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:49",className:"bg-memphis-yellow border-2 border-black rounded-lg p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:49",className:"block text-lg text-black",children:r.badgesCount}),s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:49",className:"text-[10px] font-bold text-black",children:"Ø§ÙØ´Ø§Ø±Ø§Øª"})]}),s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:50",className:"bg-memphis-mint border-2 border-black rounded-lg p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:50",className:"block text-lg text-black",children:r.lessonsCompleted}),s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:50",className:"text-[10px] font-bold text-black",children:"Ø§ÙØ¯Ø±Ùس"})]}),s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:51",className:"bg-memphis-sky border-2 border-black rounded-lg p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:51",className:"block text-lg text-black",children:r.challengesCompleted}),s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:51",className:"text-[10px] font-bold text-black",children:"Ø§ÙØªØØ¯Ùات"})]})]})]})})})}const y0e=()=>{const[e,t]=P.useState("all"),[a,n]=P.useState(null),[r,i]=P.useState(new Set),o=P.useRef({}),{data:l,isLoading:c,isError:d}=J.leaderboard.top.useQuery({limit:5,period:e},{refetchInterval:1e4}),m=l??[];return P.useEffect(()=>{o.current={},i(new Set)},[e]),P.useEffect(()=>{const f={},h=new Set;m.forEach((x,b)=>{const y=b+1;f[x.id]=y;const w=o.current[x.id];w&&y<w&&h.add(x.id)}),m.length>0&&(o.current=f,i(h))},[l,m]),s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:90",className:"memphis-card p-4 bg-white/95 border-2 border-black shadow-memphis space-y-3",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:91",className:"flex items-center justify-between gap-2 border-b-2 border-black/10 pb-2",children:[s.jsxs("h3",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:92",className:"font-black text-sm text-black flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:92","aria-hidden":"true",children:"ð"})," ÙÙØØ© Ø§ÙØµØ¯Ø§Ø±Ø©"]}),s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:93",className:"text-[10px] font-bold bg-memphis-yellow px-2 py-0.5 rounded-full border border-black animate-pulse",children:"ØªØØ¯ÙØ« ÙÙØ±Ù"})]}),s.jsx("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:95",className:"grid grid-cols-3 gap-1.5",role:"tablist","aria-label":"اÙÙØªØ±Ø© Ø§ÙØ²Ù
ÙÙØ© ÙÙØªØ±ØªÙب",children:b0e.map(f=>s.jsx("button",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:96",type:"button",role:"tab","aria-selected":e===f.value,onClick:()=>t(f.value),className:`px-2 py-1.5 rounded-lg border-2 border-black text-[10px] font-black transition-all duration-200 ${e===f.value?"bg-black text-white":"bg-white text-black hover:bg-memphis-yellow"}`,children:f.label},f.value))}),c?s.jsx("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:99",className:"space-y-2 py-4","aria-label":"جار٠تØÙ
ÙÙ ÙÙØØ© Ø§ÙØµØ¯Ø§Ø±Ø©",children:[1,2,3].map(f=>s.jsx("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:99",className:"h-10 bg-gray-100 rounded-lg animate-pulse"},f))}):d?s.jsx("p",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:100",className:"py-4 text-center text-xs font-bold text-black/60",children:"تعذر تØÙ
ÙÙ ÙÙØØ© Ø§ÙØµØ¯Ø§Ø±Ø© ØØ§ÙÙØ§Ù."}):m.length===0?s.jsx("p",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:100",className:"py-4 text-center text-xs font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ ÙÙØ§Ø· Ù
Ø³Ø¬ÙØ© ÙÙ ÙØ°Ù اÙÙØªØ±Ø© بعد."}):s.jsx("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:101",className:"space-y-2 animate-[leaderboard-refresh_240ms_ease-out]","aria-live":"polite",children:m.map((f,h)=>{const x=h+1,b=x===1?"bg-amber-300 border-amber-600":x===2?"bg-gray-200 border-gray-400":x===3?"bg-amber-700/30 border-amber-800":"bg-gray-50 border-black/20",y=x===1?"ð¥":x===2?"ð¥":x===3?"ð¥"
851:`#${x}`,w=r.has(f.id);return s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:107",className:`flex items-center justify-between p-2.5 rounded-xl border-2 transition-transform duration-200 hover:scale-[1.02] ${b} shadow-sm ${w?"ring-4 ring-memphis-mint animate-pulse":""}`,children:[s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:108",className:"flex items-center gap-3 min-w-0",children:[s.jsx("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:108",className:"w-7 h-7 shrink-0 flex items-center justify-center font-black text-xs bg-black text-white rounded-lg","aria-label":`اÙÙ
Ø±ÙØ² ${x}`,children:y}),s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:108",className:"flex items-center gap-2 min-w-0",children:[f.avatarUrl?s.jsx("img",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:109",src:f.avatarUrl,alt:`Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ© ÙÙ ${f.name??"Ù
ÙØ¸Ù"}`,className:"w-8 h-8 shrink-0 rounded-full border-2 border-black object-cover"}):s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:109",className:"w-8 h-8 shrink-0 rounded-full bg-memphis-lilac border-2 border-black flex items-center justify-center text-[10px] font-black text-black","aria-hidden":"true",children:q$(f.name)}),s.jsxs("button",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:110",type:"button",onClick:()=>n(f.id),className:"min-w-0 text-right hover:underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-black",children:[s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:110",className:"block font-black text-xs text-black truncate",children:f.name??"Ù
ÙØ¸Ù"}),s.jsxs("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:110",className:"block text-[10px] text-black/60 font-bold",children:["عرض Ø§ÙØ¥Ùجازات · اÙÙ
ستÙÙ ",f.level,w?" · ØªØØ³Ù Ø§ÙØªØ±ØªÙب â":""]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:112",className:"flex items-center gap-1.5 bg-white/90 px-2.5 py-1 rounded-lg border border-black/20 shadow-inner shrink-0",children:[s.jsx("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:112","aria-hidden":"true",children:"â¡"}),s.jsxs("span",{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:112",className:"font-black text-xs text-black",children:[f.totalPoints," ÙÙØ·Ø©"]})]})]},f.id)})},e)]}),s.jsx(v0e,{"data-loc":"client/src/components/AnimatedLeaderboardWidget.tsx:118",userId:a,onClose:()=>n(null)})]})},w0e=()=>{const e=[{id:"1",title:"ØªØØ¯Ù ÙØ³Ø± Ø§ÙØ±ÙÙ
اÙÙÙØ§Ø³Ù ÙÙØ£Ùغاز",description:"Ù
خصص ÙØ£ØµØØ§Ø¨ اÙÙ
Ø±Ø§ÙØ² اÙÙ 3 Ø§ÙØ£ÙÙÙ: ØÙ 5 Ø£ÙØºØ§Ø² Ù
ØªÙØ¯Ù
Ø© Ø¨Ø¯ÙØ© 100% ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع.",reward:"500 Ù
851ÙØ·Ø© إضاÙÙØ© + ÙØ³Ø§Ù
Ø§ÙØ£Ø³Ø·Ùرة Ø§ÙØ°ÙبÙ",progress:3,total:5,completed:!1},{id:"2",title:"Ù
Ø¹Ø±ÙØ© سرعة Ø§ÙØ§Ø³ØªØ¬Ø§Ø¨Ø© اÙÙÙØ§Ø¯ÙØ©",description:"Ù
خصص ÙÙÙ
Ø±ÙØ² Ø§ÙØ£ÙÙ ÙØ§ÙثاÙÙ: Ø¥ÙÙØ§Ø¡ Ø§ÙØªØØ¯Ù Ø§ÙØ£Ø³Ø¨Ùع٠Ù٠أÙÙ Ù
Ù 45 ثاÙÙØ©.",reward:"300 ÙÙØ·Ø© إضاÙÙØ© + درع اÙÙÙØ§Ø¯Ø© اÙÙ
عرÙÙØ©",progress:1,total:1,completed:!0}];return s.jsxs("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:26",className:"memphis-card p-4 bg-gradient-to-br from-amber-50 to-memphis-yellow/30 border-2 border-black shadow-memphis space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:27",className:"flex items-center justify-between border-b-2 border-black/10 pb-2",children:[s.jsxs("h3",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:28",className:"font-black text-sm text-black flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:29",children:"ð¡ï¸"})," Ø§ÙØªØØ¯Ùات Ø§ÙØ£Ø³Ø¨ÙØ¹ÙØ© Ø§ÙØ®Ø§ØµØ© باÙÙØ®Ø¨Ø© ÙØ§ÙÙ
Ø±Ø§ÙØ² Ø§ÙØ£ÙÙÙ"]}),s.jsx("span",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:31",className:"text-[10px] font-black bg-black text-white px-2.5 py-0.5 rounded-full border border-black animate-bounce",children:"ØØµØ±ÙØ© ÙÙÙ
تصدرÙÙ"})]}),s.jsx("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:36",className:"space-y-2.5",children:e.map(t=>{const a=Math.round(t.progress/t.total*100);return s.jsxs("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:40",className:`p-3 rounded-xl border-2 border-black bg-white shadow-sm transition-all hover:shadow-memphis ${t.completed?"border-emerald-600 bg-emerald-50/40":""}`,children:[s.jsxs("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:46",className:"flex items-start justify-between gap-2 mb-1",children:[s.jsxs("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:47",children:[s.jsxs("h4",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:48",className:"font-black text-xs text-black flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:49",children:t.completed?"â
":"âï¸"}),s.jsx("span",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:50",children:t.title})]}),s.jsx("p",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:52",className:"text-[11px] text-black/70 font-bold mt-0.5",children:t.description})]}),s.jsx("span",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:54",className:"text-[10px] font-black bg-memphis-peach px-2 py-0.5 rounded border border-black/30 whitespace-nowrap",children:t.reward})]}),s.jsxs("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:59",className:"mt-2 space-y-1",children:[s.jsxs("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:60",className:"flex justify-between text-[10px] font-black text-black/60",children:[s.jsxs("span",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:61",children:["Ø§ÙØªÙدÙ
: ",t.progress,"/",t.total]}),s.jsxs("span",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:62",children:[a,"%"]})]}),s.jsx("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:64",className:"w-full bg-gray-200 h-2 rounded-full overflow-hidden border border-black",children:s.jsx("div",{"data-loc":"client/src/components/EliteWeeklyChallengesWidget.tsx:65",className:`h-full transition-all duration-500 ${t.completed?"bg-emerald-600":"bg-black"}`,style:{width:`${a}%`}})})]})]},t.id)})})]})};function P0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:6",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:7",x:"14",y:"16",width:"4",height:"14",rx:"2",fill:"#8B6914"}),s.jsx("ellipse",{"data-loc":"client/src/components/BadgeIcon.tsx:8",cx:"16",cy:"15",rx:"2",ry:"3",fill:"#5D8A3C"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:9",d:"M16 12 C10 10 6 6 8 2 C10 6 14 8 16 10",fill:"#4CAF50"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:10",d:"M16 12 C22 10 26 6 24 2 C22 6 18 8 16 10",fill:"#4CAF50"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:11",d:"M16 14 C9 14 5 10 6 6 C9 10 13 12 16 12",fill:"#66BB6A"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:12",d:"M16 14 C23 14 27 10 26 6 C23 10 19 12 16 12",fill:"#66BB6A"}),s.jsx("ellipse",{"data-loc":"client/src/components/BadgeIcon.tsx:13",cx:"16",cy:"11",rx:"1.5",ry:"1.5",fill:"#FFC107"})]})}function Bk({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:21",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:22",d:"M4 6 C4 5 5 4 6 4 L14 4 C15 4 16 5 16 6 L16 26 C16 25 15 24 14 24 L6 24 C5 24 4 23 4 22 Z",fill:"#1565C0"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:23",d:"M28 6 C28 5 27 4 26 4 L18 4 C17 4 16 5 16 6 L16 26 C16 25 17 24 18 24 L26 24 C27 24 28 23 28 22 Z",fill:"#1976D2"}),s.jsx("line",{"data-loc":"client/src/components/BadgeIcon.tsx:24",x1:"16",y1:"6",x2:"16",y2:"26",stroke:"#0D47A1",strokeWidth:"1"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:25",d:"M7 9 L13 9",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:26",d:"M7 12 L13 12",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:27",d:"M7 15 L11 15",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:28",d:"M19 9 L25 9",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:29",d:"M19 12 L25 12",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:30",d:"M19 15 L23 15",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})]})}function Gk({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:38",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:39",d:"M10 4 L22 4 L22 16 C22 20 19 23 16 23 C13 23 10 20 10 16 Z",fill:"#FFC107"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:40",d:"M10 4 L10 10 C6 10 4 8 4 6 C4 5 5 4 6 4 Z",fill:"#FFB300"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:41",d:"M22 4 L22 10 C26 10 28 8 28 6 C28 5 27 4 26 4 Z",fill:"#FFB300"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:42",x:"13",y:"23",width:"6",height:"4",fill:"#FFC107"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:43",x:"10",y:"27",width:"12",height:"2",rx:"1",fill:"#FF8F00"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:44",d:"M14 10 L16 8 L18 10
851L17 13 L15 13 Z",fill:"white",opacity:"0.6"})]})}function I_({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:52",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:53",d:"M16 3 L19.5 12 L29 12.5 L22 18.5 L24.5 28 L16 23 L7.5 28 L10 18.5 L3 12.5 L12.5 12 Z",fill:"#FFD700",stroke:"#FF8F00",strokeWidth:"1"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:54",d:"M16 7 L18.5 13.5 L25.5 14 L20 18.5 L21.8 25.5 L16 22 L10.2 25.5 L12 18.5 L6.5 14 L13.5 13.5 Z",fill:"#FFF176",opacity:"0.5"})]})}function j0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:62",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:63",cx:"16",cy:"16",r:"7",fill:"#FF8F00"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:64",cx:"16",cy:"16",r:"5",fill:"#FFC107"}),[0,45,90,135,180,225,270,315].map((a,n)=>{const r=a*Math.PI/180,i=16+9*Math.cos(r),o=16+9*Math.sin(r),l=16+13*Math.cos(r),c=16+13*Math.sin(r);return s.jsx("line",{"data-loc":"client/src/components/BadgeIcon.tsx:71",x1:i,y1:o,x2:l,y2:c,stroke:"#FF8F00",strokeWidth:"2.5",strokeLinecap:"round"},n)})]})}function k0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:80",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:81",d:"M19 3 L10 17 L15 17 L13 29 L22 15 L17 15 Z",fill:"#FFD700",stroke:"#FF8F00",strokeWidth:"1",strokeLinejoin:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:82",d:"M19 3 L12 15 L17 15 Z",fill:"#FFF176",opacity:"0.6"})]})}function L_({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:90",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:91",d:"M16 3 L5 7 L5 16 C5 22 10 27 16 29 C22 27 27 22 27 16 L27 7 Z",fill:"#1565C0"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:92",d:"M16 5 L7 8.5 L7 16 C7 21 11 25.5 16 27.5 C21 25.5 25 21 25 16 L25 8.5 Z",fill:"#1976D2"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:93",d:"M12 16 L15 19 L21 13",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function $0({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:101",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:102",d:"M4 22 L4 12 L10 17 L16 8 L22 17 L28 12 L28 22 Z",fill:"#FFD700"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:103",x:"4",y:"22",width:"24",height:"4",rx:"1",fill:"#FF8F00"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:104",cx:"4",cy:"12",r:"2.5",fill:"#FF8F00"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:105",cx:"16",cy:"8",r:"2.5",fill:"#FF8F00"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:106",cx:"28",cy:"12",r:"2.5",fill:"#FF8F00"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:107",cx:"10",cy:"24",r:"1.5",fill:"#FFD700"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:108",cx:"16",cy:"24",r:"1.5",fill:"#FFD700"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:109",cx:"22",cy:"24",r:"1.5",fill:"#FFD700"})]})}function N0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:117",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:118",d:"M8 8 C8 6 10 4 13 4 L19 4 C22 4 24 6 24 8 L22 24 C22 26 20 28 18 28 L14 28 C12 28 10 26 10 24 Z",fill:"#8B6914"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:119",d:"M8 8 C6 8 4 9 4 11 C4 13 6 14 8 14",fill:"none",stroke:"#8B6914",strokeWidth:"2"}),s.jsx("ellipse",{"data-loc":"client/src/components/BadgeIcon.tsx:120",cx:"16",cy:"8",rx:"8",ry:"3",fill:"#A0780A"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:121",d:"M13 12
851C13 10 19 10 19 12",stroke:"#FFC107",strokeWidth:"1.5",fill:"none"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:122",cx:"16",cy:"6",r:"1.5",fill:"#FFC107"})]})}function A0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:130",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:131",x:"5",y:"4",width:"18",height:"24",rx:"2",fill:"#4CAF50"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:132",x:"7",y:"6",width:"14",height:"20",rx:"1",fill:"#E8F5E9"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:133",d:"M10 11 L22 11",stroke:"#4CAF50",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:134",d:"M10 14 L22 14",stroke:"#4CAF50",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:135",d:"M10 17 L18 17",stroke:"#4CAF50",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:136",cx:"24",cy:"8",r:"6",fill:"#FF8F00"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:137",d:"M24 5 L24 8 L26 10",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function S0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:145",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:146",d:"M4 4 L7 4 L10 18 L24 18 L27 8 L9 8",stroke:"#E91E63",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:147",cx:"12",cy:"22",r:"2.5",fill:"#E91E63"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:148",cx:"22",cy:"22",r:"2.5",fill:"#E91E63"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:149",x:"4",y:"3",width:"4",height:"2",rx:"1",fill:"#E91E63"})]})}function C0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:157",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:158",x:"2",y:"13",width:"5",height:"6",rx:"2.5",fill:"#1565C0"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:159",x:"25",y:"13",width:"5",height:"6",rx:"2.5",fill:"#1565C0"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:160",x:"6",y:"11",width:"4",height:"10",rx:"2",fill:"#1976D2"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:161",x:"22",y:"11",width:"4",height:"10",rx:"2",fill:"#1976D2"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:162",x:"10",y:"15",width:"12",height:"2",rx:"1",fill:"#42A5F5"})]})}function T0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:170",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:171",cx:"16",cy:"10",r:"7",fill:"#FFC107"}),[0,60,120,180,240,300].map((a,n)=>{const r=a*Math.PI/180,i=16+9*Math.cos(r),o=10+9*Math.sin(r),l=16+12*Math.cos(r),c=10+12*Math.sin(r);return s.jsx("line",{"data-loc":"client/src/components/BadgeIcon.tsx:178",x1:i,y1:o,x2:l,y2:c,stroke:"#FF8F00",strokeWidth:"2",strokeLinecap:"round"},n)}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:180",d:"M4 26 Q8 22 16 24 Q24 26 28 22",stroke:"#0288D1",strokeWidth:"2.5",fill:"none",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:181",d:"M4 29 Q8 25 16 27 Q24 29 28 25",stroke:"#0288D1",strokeWidth:"2",fill:"none",strokeLinecap:"round",opacity:"0.6"})]})}function D0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:189",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("ellipse",{"data-loc":"client/src/components/BadgeIcon.tsx:190",cx:"16",cy:"18",rx:"12",ry:"3",fill:"#FF7043"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:191",d:"M8 18 L8 26",stroke:"#FF7043",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:192",d:"M24 18 L24 26",stroke:"#FF7043",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:193",d:"M8 8 C8 8 6 12 8 16",stroke:"#FF7043",strokeWidth:"2",strokeLinecap:"round",fill:"none"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:194",d:"M12 8 L12 16",stroke:"#FF7043",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:195",d:"M16 8 C16 8 18 10 16 14",stroke:"#FF7043",strokeWidth:"2",strokeLinecap:"round",fill:"none"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:196",d:"M20 8 C22 8 24 10 24 14 L20 14 Z",fill:"#FF7043"})]})}function U$({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:204",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:205",x:"4",y:"14",width:"24",height:"16",rx:"2",fill:"#E91E63"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:206",x:"3",y:"10",width:"26",height:"6",rx:"2",fill:"#C2185B"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:207",x:"14",y:"10",width:"4",height:"20",fill:"#FF80AB"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:208",d:"M16 10 C16 10 12 8 10 5 C9 3 10 2 12 3 C14 4 16 8 16 10",fill:"#FF80AB"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:209",d:"M16 10 C16 10 20 8 22 5 C23 3 22 2 20 3 C18 4 16 8 16 10",fill:"#FF80AB"})]})}function E0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:217",width:e,height:e,viewBox:"0 0 32 32",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:218",cx:"16",cy:"8",r:"5",fill:"#FF5722"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:219",d:"M8 28 C8 22 12 18 16 18 C20 18 24 22 24 28",fill:"#FF5722"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:220",d:"M6 20 L10 18",stroke:"#FF5722",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:221",d:"M26 20 L22 18",stroke:"#FF5722",strokeWidth:"2",strokeLinecap:"round"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:222",cx:"6",cy:"20",r:"3",fill:"#FF8A65"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:223",cx:"26",cy:"20",r:"3",fill:"#FF8A65"})]})}function M0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:231",width:e,height:e,viewBox:"0 0 64 64",f
851ill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("polygon",{"data-loc":"client/src/components/BadgeIcon.tsx:232",points:"32,4 39,23 60,23 43,36 50,55 32,43 14,55 21,36 4,23 25,23",fill:"#F59E0B",stroke:"#000",strokeWidth:"2"}),s.jsx("circle",{"data-loc":"client/src/components/BadgeIcon.tsx:233",cx:"32",cy:"32",r:"10",fill:"#FFF",stroke:"#000",strokeWidth:"1.5"}),s.jsx("polyline",{"data-loc":"client/src/components/BadgeIcon.tsx:234",points:"26,32 30,37 38,27",stroke:"#16A34A",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function O0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:242",width:e,height:e,viewBox:"0 0 64 64",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:243",d:"M20 8 H44 V28 C44 38 32 44 32 44 C32 44 20 38 20 28 Z",fill:"#7C3AED",stroke:"#000",strokeWidth:"2"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:244",d:"M44 14 H52 C52 14 54 26 44 26",stroke:"#000",strokeWidth:"2",fill:"#A855F7"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:245",d:"M20 14 H12 C12 14 10 26 20 26",stroke:"#000",strokeWidth:"2",fill:"#A855F7"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:246",x:"28",y:"44",width:"8",height:"8",rx:"2",fill:"#92400E",stroke:"#000",strokeWidth:"1.5"}),s.jsx("rect",{"data-loc":"client/src/components/BadgeIcon.tsx:247",x:"22",y:"52",width:"20",height:"4",rx:"2",fill:"#92400E",stroke:"#000",strokeWidth:"1.5"}),s.jsx("polygon",{"data-loc":"client/src/components/BadgeIcon.tsx:248",points:"32,16 34,22 40,22 35,26 37,32 32,28 27,32 29,26 24,22 30,22",fill:"#FFD700",stroke:"#000",strokeWidth:"1"})]})}function R0e({size:e=32,className:t=""}){return s.jsxs("svg",{"data-loc":"client/src/components/BadgeIcon.tsx:256",width:e,height:e,viewBox:"0 0 64 64",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:257",d:"M32 5 L52 13 V30 C52 44 43 53 32 59 C21 53 12 44 12 30 V13 Z",fill:"#E8F1D5",stroke:"#000",strokeWidth:"2.5"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:258",d:"M32 14 C22 25 24 33 29 37 C28 29 34 25 37 20 C44 31 43 41 32 48 C19 42 18 28 32 14 Z",fill:"#F59E0B",stroke:"#000",strokeWidth:"2",strokeLinejoin:"round"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:259",d:"M31 27 C27 34 30 40 33 42 C38 38 38 32 34 28 C34 33 32 35 31 27 Z",fill:"#FFF7D6"}),s.jsx("path",{"data-loc":"client/src/components/BadgeIcon.tsx:260",d:"M20 18 L25 23 M44 18 L39 23 M22 45 L27 42 M42 45 L37 42",stroke:"#5F6F36",strokeWidth:"2.5",strokeLinecap:"round"})]})}const Qg={"first-lesson":Bk,"three-lessons":Bk,"five-lessons":Bk,"ten-lessons":Gk,"fifty-points":I_,"hundred-points":j0e,"two-hundred-points":$0,"five-challenges":k0e,"fifteen-challenges":L_,"thirty-challenges":$0,"team-member":L_,"team-captain":$0,"top-rank":Gk,"seven-day-streak":P0e,"perfect-quiz":M0e,"weekly-champion":O0e,"quiz-top-ten":I_,"quiz-podium":Gk,"quiz-champion":$0,"pure-streak-30":R0e},z0e={ÙÙÙØ©:N0e,ÙØªØ§Ø¨:A0e,تسÙÙ:S0e,ÙØ§Ø¯Ù:C0e,إجازة:T0e,ØªØ¯Ø±ÙØ¨:E0e,Ù
طعÙ
:D0e,ÙØ¯ÙØ©:U$};function F_(e){for(const[t,a]of Object.entries(z0e))if(e.includes(t))return a;return U$}function X0(e){const t=P.useRef(e);t.current=e;const a=P.useRef(null);return a.current||(a.current=function(...n){return t.current.apply(this,n)}),a.current}function V$(e={}){const{onKeyDown:t,onCompositionStart:a,onCompositionEnd:n}=e,r=P.useRef(!1),i=P.useRef(null),o=P.useRef(null),l=X0(f=>{i.current&&(clearTimeout(i.current),i.current=null),o.current&&(clearTimeout(o.current),o.current=null),r.current=!0,a?.(f)}),c=X0(f=>{i.current=setTimeout(()=>{o.current=setTimeout(()=>{r.current=!1})}),n?.(f)}),d=X0(f=>{if(r.current&&(f.key==="Escape"||f.key==="Enter"&&!f.shiftKey)){f.stopPropagation();return}t?.(f)}),m=X0(()=>r.current);return{onCompositionStart:l,onCompositionEnd:c,onKeyDown:d,isComposing:m}}function Es({className:e,onKeyDown:t,onCompositionStart:a,onCompositionEnd:n,...r}){const i=U6(),{onCompositionStart:o,onCompositionEnd:l,onKeyDown:c}=V$({onKeyDown:d=>{const m=d.nativeEvent.isComposing||i.justEndedComposing();
851d.key==="Enter"&&!d.shiftKey&&m||t?.(d)},onCompositionStart:d=>{i.setComposing(!0),a?.(d)},onCompositionEnd:d=>{i.markCompositionEnd(),setTimeout(()=>{i.setComposing(!1)},100),n?.(d)}});return s.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:zt("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:o,onCompositionEnd:l,onKeyDown:c,...r})}function _0e(){const[e,t]=P.useState(""),[a,n]=P.useState("suggestion"),[r,i]=P.useState(!1),o=J.suggestions.submit.useMutation({onSuccess:()=>{i(!0),t(""),re.success("Ø´ÙØ±Ø§Ù! تÙ
Ø¥Ø±Ø³Ø§Ù Ø§ÙØªØ±Ø§ØÙ Ø¨ÙØ¬Ø§Ø ð")},onError:c=>{re.error(c.message||"ØØ¯Ø« Ø®Ø·Ø£Ø ØØ§ÙÙ Ù
رة أخرÙ")}}),l=()=>{if(e.trim().length<10){re.error("Ø§ÙØ§ÙØªØ±Ø§Ø ÙØ¬Ø¨ Ø£Ù ÙÙÙÙ 10 Ø£ØØ±Ù عÙÙ Ø§ÙØ£ÙÙ");return}o.mutate({text:e.trim(),type:a})};return r?s.jsxs("div",{"data-loc":"client/src/components/SuggestionBox.tsx:34",className:"mt-8 rounded-2xl bg-gradient-to-br from-emerald-50 to-teal-50 border border-emerald-200 p-6 text-center",children:[s.jsx(bn,{"data-loc":"client/src/components/SuggestionBox.tsx:35",className:"mx-auto mb-3 text-emerald-500",size:40}),s.jsx("h3",{"data-loc":"client/src/components/SuggestionBox.tsx:36",className:"text-lg font-bold text-emerald-700 mb-1",children:"Ø´ÙØ±Ø§Ù عÙÙ Ù
Ø´Ø§Ø±ÙØªÙ!"}),s.jsx("p",{"data-loc":"client/src/components/SuggestionBox.tsx:37",className:"text-emerald-600 text-sm mb-4",children:"Ø§ÙØªØ±Ø§ØÙ ÙØµÙ ÙØ³ÙÙØ±Ø§Ø¬Ø¹ Ù
Ù ÙÙØ¨Ù Ø§ÙØ¥Ø¯Ø§Ø±Ø© ÙØ±ÙباÙ."}),s.jsx(Ie,{"data-loc":"client/src/components/SuggestionBox.tsx:38",variant:"outline",size:"sm",className:"border-emerald-300 text-emerald-700 hover:bg-emerald-50",onClick:()=>i(!1),children:"Ø¥Ø±Ø³Ø§Ù Ø§ÙØªØ±Ø§Ø آخر"})]}):s.jsxs("div",{"data-loc":"client/src/components/SuggestionBox.tsx:51",className:"mt-8 rounded-2xl bg-gradient-to-br from-amber-50 to-orange-50 border border-amber-200 p-6",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/components/SuggestionBox.tsx:53",className:"flex items-center gap-3 mb-4",children:[s.jsx("div",{"data-loc":"client/src/components/SuggestionBox.tsx:54",className:"p-2 rounded-xl bg-amber-100",children:s.jsx(sg,{"data-loc":"client/src/components/SuggestionBox.tsx:55",className:"text-amber-600",size:22})}),s.jsxs("div",{"data-loc":"client/src/components/SuggestionBox.tsx:57",children:[s.jsx("h3",{"data-loc":"client/src/components/SuggestionBox.tsx:58",className:"text-base font-bold text-amber-800",children:"Ø§ÙØªØ±Ø§ØØ§ØªÙ تÙÙ
ÙØ§"}),s.jsx("p",{"data-loc":"client/src/components/SuggestionBox.tsx:59",className:"text-xs text-amber-600",children:"شارÙÙØ§ Ø£ÙÙØ§Ø±Ù ÙØªØ·ÙÙØ± Ù
ÙØµØ© جد ÙØ¬Ø¯"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/SuggestionBox.tsx:64",className:"flex gap-2 mb-4",children:[s.jsxs("button",{"data-loc":"client/src/components/SuggestionBox.tsx:65",onClick:()=>n("suggestion"),className:`flex items-center gap-2 px-4 py-2 rounded-xl text-sm font-medium transition-all ${a==="suggestion"?"bg-amber-500 text-white shadow-sm":"bg-white text-amber-700 border border-amber-200 hover:bg-amber-50"}`,children:[s.jsx(hu,{"data-loc":"client/src/components/SuggestionBox.tsx:73",size:15}),"Ø§ÙØªØ±Ø§Ø Ø¬Ø¯ÙØ¯"]}),s.jsxs("button",{"data-loc":"client/src/components/SuggestionBox.tsx:76",onClick:()=>n("improvement"),className:`flex items-center gap-2 px-4 py-2 rounded-xl text-sm font-medium transition-all ${a==="improvement"?"bg-orange-500 text-white shadow-sm":"bg-white text-orange-700 border border-orange-200 hover:bg-orange-50"}`,children:[s.jsx(er,{"data-loc":"client/src/components/SuggestionBox.tsx:84",size:15}),"ÙØ±ØµØ© ØªØØ³ÙÙ"]})]}),s.jsx(Es,{"data-loc":"client/src/components/SuggestionBox.tsx:90",value:e,onCh
851ange:c=>t(c.target.value),placeholder:a==="suggestion"?"Ø§ÙØªØ¨ Ø§ÙØªØ±Ø§ØÙ ÙÙØ§... Ù
ثاÙ: أتÙ
ÙÙ Ø¥Ø¶Ø§ÙØ© Ù
ØÙر ع٠إدارة اÙÙÙØª":"Ø§ÙØªØ¨ ÙØ±ØµØ© Ø§ÙØªØØ³ÙÙ ÙÙØ§... Ù
ثاÙ: اÙÙÙÙØ² ÙØØªØ§Ø¬ تÙÙØ¹Ø§Ù Ø£ÙØ¨Ø± ÙÙ Ø§ÙØ£Ø³Ø¦ÙØ©",className:"min-h-[100px] bg-white border-amber-200 focus:border-amber-400 text-right resize-none mb-3 text-sm",maxLength:1e3,dir:"rtl"}),s.jsxs("div",{"data-loc":"client/src/components/SuggestionBox.tsx:104",className:"flex items-center justify-between",children:[s.jsxs("span",{"data-loc":"client/src/components/SuggestionBox.tsx:105",className:"text-xs text-amber-500",children:[e.length,"/1000"]}),s.jsx(Ie,{"data-loc":"client/src/components/SuggestionBox.tsx:106",onClick:l,disabled:o.isPending||e.trim().length<10,className:"bg-amber-500 hover:bg-amber-600 text-white px-6 rounded-xl",size:"sm",children:o.isPending?s.jsxs("span",{"data-loc":"client/src/components/SuggestionBox.tsx:113",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/SuggestionBox.tsx:114",className:"animate-spin",children:"â³"})," Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù..."]}):s.jsxs("span",{"data-loc":"client/src/components/SuggestionBox.tsx:117",className:"flex items-center gap-2",children:[s.jsx(sg,{"data-loc":"client/src/components/SuggestionBox.tsx:118",size:15}),"إرساÙ"]})})]})]})}function I0e({challenges:e,completedIds:t,level:a}){const n=J.useUtils(),[r,i]=P.useState(!1),[o,l]=P.useState("balanced"),c=J.lessons.adaptiveChallenge.useQuery(),d=P.useMemo(()=>e.filter(y=>!t.has(y.id)),[e,t]),m=e.length-d.length,f=d.length?d[Math.min(Math.max(a-1,0),d.length-1)]:null,h=c.data,x={support:{label:"داعÙ
",note:"راجع اÙÙÙØ±Ø© Ø¨ÙØ¯ÙØ¡ Ø«Ù
أجب Ø¹Ù Ø§ÙØ³Ø¤Ø§Ù ÙØªØ«Ø¨Ùت اÙÙÙØ±Ø©."},balanced:{label:"Ù
ØªÙØ§Ø²Ù",note:"راجع اÙÙ
ÙÙÙÙ
Ø«Ù
طبÙÙÙ ÙÙ Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªÙاعÙÙ Ø§ÙØªØ§ÙÙ."},stretch:{label:"Ù
ØªÙØ¯Ù
",note:"بعد اÙÙ
Ø±Ø§Ø¬Ø¹Ø©Ø ØØ§ÙÙ ØªÙØ³Ùر سبب Ø§ÙØ¥Ø¬Ø§Ø¨Ø© ÙØ¨Ù Ø§Ø®ØªÙØ§Ø±Ùا."}}[o],b=J.challenges.complete.useMutation({onSuccess:y=>{if(y.alreadyCompleted){re.info("تÙ
تسجÙÙ ÙØ°Ø§ Ø§ÙØªØØ¯Ù Ù
Ø³Ø¨ÙØ§Ù اÙÙÙÙ
");return}re.success("Ø£ØØ³Ùت! تÙ
تسجÙÙ Ø¥ÙØ¬Ø§Ø² ÙØ¯Ù اÙÙÙÙ
ÙØ¥Ø¶Ø§ÙØ© Ù
ÙØ§Ùأت٠إÙÙ Ø±ØµÙØ¯Ù"),n.challenges.myTodayCompletions.invalidate(),n.profile.me.invalidate(),n.badges.mine.invalidate()},onError:y=>re.error(`تعذر Ø¥ÙÙ
ا٠اÙÙ
ÙÙ
Ø©: ${y.message}`)});return e.length?s.jsxs("section",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:51",className:"memphis-card memphis-card--hero mb-8 overflow-hidden bg-memphis-yellow p-0","aria-labelledby":"daily-gamification-focus",children:[s.jsxs("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:52",className:"flex flex-col gap-4 p-5 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:53",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:54",className:"mb-2 flex flex-wrap items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:55",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black text-black",children:"ÙØ¯Ù اÙÙÙÙ
"}),s.jsxs("span",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:56",className:"text-xs font-black text-black/70",children:[m,"/",e.length," Ù
ÙØ§Ù
Ù
ÙØªÙ
ÙØ©"]})]}),f?s.jsxs(s.Fragment,{children:[s.jsxs("h2",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:60",id:"daily-gamification-focus",className:"flex items-center gap-2 text-xl font-black text-black",children:[s.jsx(Os,{"data-loc":"client/src/components/DailyGamificationFocus.tsx:60",className:"h-5 w-5"})," ",h?.title??f.titleAr]}),s.jsx("p",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:61",className:"mt-1 max-w-2xl text-sm font-bold leading-6 text-black/70",children:h?.description??(f.descriptionAr||`Ù
ÙÙ
Ø© Ù
ÙØ§Ø³Ø¨Ø© ÙÙ
Ø³ØªÙØ§Ù Ø§ÙØØ§ÙÙ (${a}
851)Ø Ø®Ø·ÙØ© ÙØ§ØØ¯Ø© ØªÙØ±Ùب٠Ù
Ù ÙØ¯ÙÙ.`)}),h&&s.jsxs("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:62",className:"mt-3",children:[s.jsx("p",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:62",className:"mb-2 text-xs font-black text-black",children:"اختر Ù
ستÙÙ Ø§ÙØªØØ¯Ù ÙØ¨Ù Ø§ÙØ¨Ø¯Ø¡"}),s.jsx("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:62",className:"flex flex-wrap gap-2",children:["support","balanced","stretch"].map(y=>s.jsx("button",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:62",type:"button",onClick:()=>l(y),"aria-pressed":o===y,className:`rounded-full border-2 border-black px-3 py-1 text-xs font-black transition-transform active:translate-y-px ${o===y?"bg-black text-white":"bg-white text-black"}`,children:{support:"داعÙ
",balanced:"Ù
ØªÙØ§Ø²Ù",stretch:"Ù
ØªÙØ¯Ù
"}[y]},y))}),s.jsx("p",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:62",className:"mt-2 text-xs font-bold text-black/65",children:x.note})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("h2",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:66",id:"daily-gamification-focus",className:"flex items-center gap-2 text-xl font-black text-black",children:[s.jsx(aa,{"data-loc":"client/src/components/DailyGamificationFocus.tsx:66",className:"h-5 w-5"})," Ø£ÙØ¬Ø²Øª ÙØ¯Ù اÙÙÙÙ
"]}),s.jsx("p",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:67",className:"mt-1 text-sm font-bold text-black/70",children:"Ø£ÙÙ
ÙØª Ù
ÙØ§Ù
Ù Ø§ÙØØ§ÙÙØ©. Ø§ÙØªØ ØµÙØ¯Ù٠اÙÙÙÙ
Ø«Ù
عد ØºØ¯Ø§Ù ÙØªÙØ³ÙØ¹ Ø³ÙØ³ÙتÙ."})]})]}),s.jsx("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:72",className:"flex shrink-0 flex-wrap items-center gap-2",children:f&&h?s.jsxs("a",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:74",href:`/lesson/${h.lessonId}?adaptiveDifficulty=${o}`,className:"memphis-btn bg-black px-5 py-3 text-sm font-black text-white",children:["ابدأ Ø§ÙØªØØ¯Ù ",x.label]}):f?s.jsx("button",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:76",type:"button",onClick:()=>b.mutate({challengeId:f.id}),disabled:b.isPending,className:"memphis-btn bg-black px-5 py-3 text-sm font-black text-white disabled:opacity-50",children:b.isPending?"جار٠تسجÙÙ Ø§ÙØ¥Ùجاز...":`Ø£ÙÙ
Ù ØªØØ¯Ù اÙÙÙÙ
+${f.pointsReward}`}):s.jsxs("button",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:85",type:"button",onClick:()=>{i(!0),re.success("تÙ
ÙØªØ ØµÙØ¯Ù٠اÙÙÙÙ
â Ø§Ø³ØªÙÙ
ت Ù
ÙØ§Ùآت ØªØØ¯Ùات٠اÙÙ
ÙØªÙ
ÙØ©")},className:"memphis-btn bg-memphis-mint px-5 py-3 text-sm font-black text-black",children:[s.jsx(Ig,{"data-loc":"client/src/components/DailyGamificationFocus.tsx:90",className:"ml-1 inline h-4 w-4"})," ",r?"ØµÙØ¯Ù٠اÙÙÙÙ
Ù
ÙØªÙØ":"Ø§ÙØªØ ØµÙØ¯Ù٠اÙÙÙÙ
"]})})]}),s.jsxs("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:95",className:"border-t-2 border-black/20 bg-white/45 px-5 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:96",className:"mb-1.5 flex items-center justify-between gap-3 text-xs font-black text-black",children:[s.jsx("span",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:96",children:"ØªÙØ¯Ù
Ù ÙÙ ÙØ¯Ù اÙÙÙÙ
"}),s.jsxs("span",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:96",className:"memphis-number",children:[Math.round(m/e.length*100),"%"]})]}),s.jsx("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:97",className:"memphis-progress-track h-2.5",children:s.jsx("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:97",className:"memphis-progress-fill",style:{width:`${Math.round(m/e.length*100)}%`}})}),s.jsx("p",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:98",className:"mt-2 text-xs font-bold text-black/65",children:f?"Ø£ÙØ¬Ø² اÙÙ
ÙÙ
Ø© Ø§ÙØªØ§ÙÙØ© ÙØªØØ§Ùظ عÙ٠زخÙ
Ù ÙØªÙترب Ù
Ù Ù
ÙØ§Ùأة اÙÙÙÙ
.":"Ø§ÙØªÙ
٠اÙÙØ¯Ù â Ø§ÙØªØ Ø§ÙØµÙدÙÙ ÙØªØ«Ø¨Ùت Ù
ÙØ§Ùأت٠اÙÙÙÙ
."})]}),r&&!f&&s.jsx("div",{"data-loc":"client/src/components/DailyGamificationFocus.tsx:100",className:"border-t-2 border-black bg-memphis-mint px-5 py-3 text-sm font-black text-black",children:"Ù
ÙØ§Ùأت٠اÙÙÙÙ
: ÙÙØ§Ø· Ù
ÙØ§Ù
٠اÙÙ
ÙØªÙ
ÙØ©Ø ÙØªÙدÙ
إضاÙÙ ÙØÙ Ø´Ø§Ø±Ø§Øª Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ© ÙØ§ÙØªØØ¯Ùات."})]}):null}function L0e(e){const t=e.slice(-14).reduce((o,l)=>o+(l.points||0),0),a=e.slice(-28,-14).reduce((o,l)=>
851o+(l.points||0),0),n=t-a,r=a>0?Math.round(n/a*100):t>0?100:0,i=e.slice(-14).reduce((o,l)=>o+(l.lessons||0),0);return{recent:t,previous:a,delta:n,deltaPercent:r,recentLessons:i}}function F0e({progress:e}){const{recent:t,delta:a,deltaPercent:n,recentLessons:r}=L0e(e);return s.jsxs("section",{"data-loc":"client/src/components/LearningMomentumCard.tsx:18",className:"memphis-card bg-white p-4","aria-labelledby":"learning-momentum-title",children:[s.jsxs("div",{"data-loc":"client/src/components/LearningMomentumCard.tsx:19",className:"mb-3 flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/LearningMomentumCard.tsx:20",children:[s.jsx("h2",{"data-loc":"client/src/components/LearningMomentumCard.tsx:21",id:"learning-momentum-title",className:"text-base font-black text-black",children:"Ù
ÙØ§Ø±ÙØ© ØªÙØ¯Ù
Ù"}),s.jsx("p",{"data-loc":"client/src/components/LearningMomentumCard.tsx:22",className:"mt-1 text-xs font-bold text-black/60",children:"آخر 14 ÙÙÙ
ا٠Ù
ÙØ§Ø±Ùة٠باÙÙ14 ÙÙÙ
Ø§Ù Ø§ÙØ³Ø§Ø¨ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/components/LearningMomentumCard.tsx:24",className:`flex items-center gap-1 rounded-full border-2 border-black px-2 py-1 text-xs font-black ${a>=0?"bg-memphis-mint":"bg-memphis-peach"}`,children:[a>=0?s.jsx(er,{"data-loc":"client/src/components/LearningMomentumCard.tsx:25",className:"h-3.5 w-3.5"}):s.jsx(PW,{"data-loc":"client/src/components/LearningMomentumCard.tsx:25",className:"h-3.5 w-3.5"}),a>=0?"+":"",n,"%"]})]}),s.jsxs("div",{"data-loc":"client/src/components/LearningMomentumCard.tsx:29",className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/LearningMomentumCard.tsx:30",className:"rounded-xl border-2 border-black bg-memphis-lilac p-2 text-center",children:[s.jsx("p",{"data-loc":"client/src/components/LearningMomentumCard.tsx:30",className:"text-lg font-black text-black",children:t}),s.jsx("p",{"data-loc":"client/src/components/LearningMomentumCard.tsx:30",className:"text-[11px] font-bold text-black/65",children:"ÙÙØ·Ø© ØØ¯ÙثاÙ"})]}),s.jsxs("div",{"data-loc":"client/src/components/LearningMomentumCard.tsx:31",className:"rounded-xl border-2 border-black bg-memphis-yellow p-2 text-center",children:[s.jsx("p",{"data-loc":"client/src/components/LearningMomentumCard.tsx:31",className:"text-lg font-black text-black",children:r}),s.jsx("p",{"data-loc":"client/src/components/LearningMomentumCard.tsx:31",className:"text-[11px] font-bold text-black/65",children:"Ø¯Ø±ÙØ³ ØØ¯ÙثاÙ"})]})]}),s.jsx("p",{"data-loc":"client/src/components/LearningMomentumCard.tsx:33",className:"mt-3 text-xs font-bold leading-5 text-black/70",children:a>=0?"زخÙ
Ù ÙØªØØ³ÙØ ØØ§Ùظ عÙÙ Ù
ÙÙ
Ø© ÙÙÙ
ÙØ© ØµØºÙØ±Ø© ÙØªÙØ³ÙØ¹ ØªÙØ¯Ù
Ù.":"Ø§ÙØ¹Ùدة بÙ
ÙÙ
Ø© ÙÙÙ
ÙØ© ÙØ§ØØ¯Ø© ÙØ§ÙÙØ© ÙØ§Ø³ØªØ¹Ø§Ø¯Ø© زخÙ
Ù ØªØ¯Ø±ÙØ¬ÙاÙ."})]})}function B0e(e){const t=Math.max(e.requiredCount,1),a=Math.min(Math.max(e.completedCount,0),t),n=Math.max(t-a,0),r=Math.round(a/t*100),i=e.claimed?"تÙ
Ø§Ø³ØªÙØ§Ù
Ù
ÙØ§Ùأت٠اÙÙÙÙ
â Ø¹Ùد غدا٠ÙÙ
سار Ø¬Ø¯ÙØ¯.":e.eligible?"Ù
Ù
تاز! Ø§ÙØªÙ
ÙØª Ù
Ø´Ø§Ø±ÙØ§ØªÙ اÙÙ
تÙÙØ¹Ø©Ø ÙØ§ÙÙ
ÙØ§Ùأة Ø¬Ø§ÙØ²Ø© ÙÙØ§Ø³ØªÙاÙ
.":n===1?"بÙÙØª Ù
Ø´Ø§Ø±ÙØ© Ù
تÙÙØ¹Ø© ÙØ§ØØ¯Ø© ÙØªØ³ØªÙÙ
Ù
ÙØ§ÙأتÙ.":`بÙÙØª ${n} Ù
Ø´Ø§Ø±ÙØ§Øª Ù
تÙÙØ¹Ø© ÙØªØ³ØªÙÙ
Ù
ÙØ§ÙأتÙ.`;return{completedCount:a,requiredCount:t,remainingCount:n,percentage:r,status:i}}function G0e(e){const t=Math.max(e.dailyTotal,0),a=Math.min(Math.max(e.dailyCompleted,0),t),n=t>0&&a===t,r=n?"Ù
ÙÙ
Ø© اÙÙÙÙ
Ù
ÙØªÙ
ÙØ©":`تبÙÙÙ ${Math.max(t-a,0)} Ù
Ù Ù
ÙØ§Ù
اÙÙÙÙ
`,i=n?"Ø£ØØ³ÙØªØ ØØ§Ùظ عÙ٠زخÙ
Ù Ø¨Ø®Ø·ÙØ© Ø¬Ø¯ÙØ¯Ø©":e.streak>=3?"Ø³ÙØ³Ùت٠Ù
ستÙ
رة â ÙØ§ تÙÙÙ Ø§ÙØ²Ø®Ù
":"Ø®Ø·ÙØ© ÙØ§ØØ¯Ø© اÙÙÙÙ
ØªØµÙØ¹ ÙØ±ÙØ§Ù ÙØ¨ÙراÙ",o=e.pointsToNextLevel>0?`Ø£ÙØª عÙÙ Ø¨ÙØ¹Ø¯ ${e.pointsToNextLevel} ÙÙØ·Ø© Ù
٠اÙÙ
ستÙÙ Ø§ÙØªØ§ÙÙ.`:"استÙ
ر ÙÙ Ø§ÙØªØ¹ÙÙÙ
ÙØ§Ø¬Ù
ع Ù
Ø²ÙØ¯Ø§Ù Ù
٠اÙÙÙØ§Ø· ÙØ§Ùشارات.";return{dailyCompleted:a,dailyTotal:t,dailyIsComplete:n,dailyLabel:r,headline:i,encouragement:o}}function k2(e=!0){const t=P.useRef(null),a=P.useCallback(()=>
851{if(!e||typeof window>"u")return null;const m=window.AudioContext??window.webkitAudioContext;return m?((!t.current||t.current.state==="closed")&&(t.current=new m),t.current.state==="suspended"&&t.current.resume(),t.current):null},[e]),n=P.useCallback(m=>{try{const f=a();if(!f)return;const h=f.currentTime+.01;m.forEach(x=>{const b=f.createOscillator(),y=f.createGain();b.connect(y),y.connect(f.destination),b.type=x.type,b.frequency.setValueAtTime(x.frequency,h+x.delay),y.gain.setValueAtTime(1e-4,h+x.delay),y.gain.exponentialRampToValueAtTime(x.gain,h+x.delay+.015),y.gain.exponentialRampToValueAtTime(1e-4,h+x.delay+x.duration),b.start(h+x.delay),b.stop(h+x.delay+x.duration+.02)})}catch{}},[a]),r=P.useCallback(()=>{try{a()}catch{}},[a]),i=P.useCallback(()=>n([{frequency:523.25,delay:0,duration:.25,gain:.2,type:"sine"},{frequency:659.25,delay:.12,duration:.25,gain:.2,type:"sine"},{frequency:783.99,delay:.24,duration:.25,gain:.2,type:"sine"},{frequency:1046.5,delay:.36,duration:.3,gain:.22,type:"sine"}]),[n]),o=P.useCallback(()=>n([{frequency:880,delay:0,duration:.2,gain:.16,type:"triangle"},{frequency:1174.66,delay:.16,duration:.24,gain:.18,type:"triangle"}]),[n]),l=P.useCallback(()=>n([{frequency:659.25,delay:0,duration:.14,gain:.12,type:"triangle"},{frequency:987.77,delay:.1,duration:.2,gain:.15,type:"triangle"}]),[n]),c=P.useCallback(()=>n([{frequency:246.94,delay:0,duration:.14,gain:.08,type:"sawtooth"},{frequency:196,delay:.11,duration:.2,gain:.07,type:"sawtooth"}]),[n]),d=P.useCallback(()=>n([{frequency:880,delay:0,duration:.09,gain:.065,type:"square"}]),[n]);return P.useEffect(()=>()=>{const m=t.current;t.current=null,m&&m.state!=="closed"&&m.close()},[]),{primeAudio:r,playLevelUp:i,playBadge:o,playQuizCorrect:l,playQuizWrong:c,playQuizWarning:d}}function ab(){function e(t=2800,a=120){const n=document.createElement("canvas");n.style.cssText=` 852 position: fixed; top: 0; left: 0; 853 width: 100vw; height: 100vh; 854 pointer-events: none; z-index: 99999; 855 `,n.width=window.innerWidth,n.height=window.innerHeight,document.body.appendChild(n);const r=n.getContext("2d"),i=["#C4B5FD","#6EE7B7","#FDE68A","#FCA5A5","#BAE6FD","#FED7AA","#F9A8D4","#86EFAC","#FFD700","#FF6B6B"],o=["circle","rect","star"],l=Array.from({length:a},()=>({x:Math.random()*n.width,y:-10-Math.random()*80,vx:(Math.random()-.5)*4,vy:2+Math.random()*4,color:i[Math.floor(Math.random()*i.length)],shape:o[Math.floor(Math.random()*o.length)],size:6+Math.random()*10,rotation:Math.random()*Math.PI*2,rotSpeed:(Math.random()-.5)*.15,opacity:1})),c=performance.now();let d;function m(h,x){h.beginPath();for(let b=0;b<10;b++){const y=b*Math.PI/5-Math.PI/2,w=b%2===0?x:x*.45;b===0?h.moveTo(Math.cos(y)*w,Math.sin(y)*w):h.lineTo(Math.cos(y)*w,Math.sin(y)*w)}h.closePath()}function f(h){const x=h-c;r.clearRect(0,0,n.width,n.height);for(const b of l)b.x+=b.vx,b.y+=b.vy,b.vy+=.08,b.vx*=.99,b.rotation+=b.rotSpeed,x>t-600&&(b.opacity=Math.max(0,1-(x-(t-600))/600)),r.save(),r.globalAlpha=b.opacity,r.translate(b.x,b.y),r.rotate(b.rotation),r.fillStyle=b.color,r.strokeStyle="rgba(0,0,0,0.15)",r.lineWidth=.8,b.shape==="circle"?(r.beginPath(),r.arc(0,0,b.size/2,0,Math.PI*2),r.fill(),r.stroke()):b.shape==="rect"?(r.fillRect(-b.size/2,-b.size/4,b.size,b.size/2),r.strokeRect(-b.size/2,-b.size/4,b.size,b.size/2)):(m(r,b.size/2),r.fill(),r.stroke()),r.restore();x<t?d=requestAnimationFrame(f):n.remove()}d=requestAnimationFrame(f),setTimeout(()=>{cancelAnimationFrame(d),n.remove()},t+200)}return{launch:e}}const H0e=4200,q0e=["â¦","â","â§","â¦","â","â§","â¦","â"];function U0e({open:e,points:t,prefersReducedMotion:a,onClose:n}){const r={duration:a?0:.28,ease:"circOut"};return s.jsx(jge,{"data-loc":"client/src/components/ParticipationMomentum.tsx:16",children:e?s.jsxs(rn.div,{"data-loc":"client/src/components/ParticipationMomentum.tsx:16",role:"status","aria-live":"assertive","aria-label":"ØªÙ Ø§Ø³ØªÙØ§Ù Ù ÙØ§Ùأة اÙÙ Ø´Ø§Ø±ÙØ© اÙÙÙÙ ÙØ©",initial:{opacity:0}
855,animate:{opacity:1},exit:{opacity:0},transition:r,className:"absolute inset-0 z-20 flex items-center justify-center overflow-hidden bg-black/82 p-4 backdrop-blur-sm",children:[a?null:q0e.map((i,o)=>s.jsx(rn.span,{"data-loc":"client/src/components/ParticipationMomentum.tsx:17","aria-hidden":"true","data-testid":"daily-bonus-sparkle",initial:{opacity:0,scale:.7,rotate:-20},animate:{opacity:[0,1,1,0],scale:[.7,1.2,1,.85],rotate:[-20,18,50]},transition:{duration:1.3,delay:o*.075,ease:"easeOut"},className:"absolute text-2xl text-memphis-yellow",style:{top:`${14+o*17%68}%`,right:`${7+o*23%82}%`},children:i},`${i}-${o}`)),s.jsxs(rn.div,{"data-loc":"client/src/components/ParticipationMomentum.tsx:18",initial:{opacity:0,y:a?0:14,scale:a?1:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:a?1:.98},transition:r,className:"relative z-10 w-full max-w-sm rounded-2xl border-2 border-black bg-memphis-yellow p-5 text-center text-black shadow-memphis-lg",children:[s.jsx("button",{"data-loc":"client/src/components/ParticipationMomentum.tsx:19",type:"button",onClick:n,"aria-label":"Ø¥ØºÙØ§Ù Ø§ØØªÙا٠اÙÙ
ÙØ§Ùأة",className:"absolute left-3 top-3 rounded-full border-2 border-black bg-white p-1 text-black transition-transform active:scale-95",children:s.jsx(Zn,{"data-loc":"client/src/components/ParticipationMomentum.tsx:19",className:"h-3.5 w-3.5"})}),s.jsx("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:20",className:"mx-auto flex h-14 w-14 items-center justify-center rounded-2xl border-2 border-black bg-white",children:s.jsx(pn,{"data-loc":"client/src/components/ParticipationMomentum.tsx:20",className:"h-7 w-7"})}),s.jsx("p",{"data-loc":"client/src/components/ParticipationMomentum.tsx:21",className:"mt-4 text-xs font-black text-black/65",children:"Ø«ÙØ§Ø« Ù
Ø´Ø§Ø±ÙØ§Øª Ù
تÙÙØ¹Ø©Ø Ø¥ÙØ¬Ø§Ø² ÙØ§ØØ¯ ÙØ¨Ùر"}),s.jsx("h3",{"data-loc":"client/src/components/ParticipationMomentum.tsx:22",className:"mt-1 text-xl font-black",children:"Ø£ØØ³Ùت! استÙÙ
ت Ù
ÙØ§Ùأت٠اÙÙÙÙ
ÙØ©"}),s.jsxs("p",{"data-loc":"client/src/components/ParticipationMomentum.tsx:23",className:"mt-2 text-sm font-bold text-black/75",children:["أضÙÙØ§ ",s.jsxs("strong",{"data-loc":"client/src/components/ParticipationMomentum.tsx:23",className:"rounded-full border-2 border-black bg-black px-2 py-1 text-white",children:["+",t," ÙÙØ·Ø©"]})," Ø¥ÙÙ Ø±ØµÙØ¯Ù. ÙØ§ØµÙ ÙØ°Ø§ Ø§ÙØ²Ø®Ù
غداÙ."]})]})]}):null})}function V0e({dailyCompleted:e,dailyTotal:t,streak:a,pointsToNextLevel:n,dailyBonus:r}){const i=J.useUtils(),[o,l]=P.useState(!1),c=P.useRef(null),d=!!Cu(),m=J.profile.achievementSoundsPreference.useQuery(void 0,{enabled:!!r}),{playBadge:f}=k2(m.data?.enabled??!0),{launch:h}=ab(),x=J.engagement.claimDailyVarietyBonus.useMutation(),b=()=>{c.current&&window.clearTimeout(c.current),c.current=null,l(!1)};P.useEffect(()=>()=>{c.current&&window.clearTimeout(c.current)},[]);const y=()=>x.mutate(void 0,{onSuccess:k=>{k.awarded?(i.engagement.dailyVarietyBonus.invalidate(),i.profile.me.invalidate(),l(!0),d||(h(1600),f()),c.current=window.setTimeout(b,H0e)):re.info("تÙ
Ø§Ø³ØªÙØ§Ù
Ù
ÙØ§Ùأت٠اÙÙÙÙ
ÙØ© Ù
Ø³Ø¨ÙØ§Ù.")},onError:()=>re.error("تعذر Ø¥Ø¶Ø§ÙØ© Ù
ÙØ§ÙØ£ØªÙ Ø§ÙØ¢ÙØ ØØ§ÙÙ Ù
رة أخرÙ.")}),w=G0e({dailyCompleted:e,dailyTotal:t,streak:a,pointsToNextLevel:n}),j=r?B0e(r):null,N=[{title:"ÙØ¯Ù اÙÙÙÙ
",description:w.dailyLabel,href:"/challenges",icon:Os,color:w.dailyIsComplete?"bg-memphis-mint":"bg-memphis-yellow",status:w.dailyIsComplete?"Ù
ÙØªÙ
Ù":"Ù
ØªØ§Ø Ø§ÙØ¢Ù"},{title:"ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع",description:"اختبر سرعة بدÙÙØªÙ ÙØ³Ø¬ÙÙ ÙÙØ·Ø© Ù
Ø´Ø§Ø±ÙØ© Ø¬Ø¯ÙØ¯Ø©.",href:"/weekly-puzzle",icon:Ope,color:"bg-memphis-sky",status:"Ø¬Ø§ÙØ² ÙÙÙ
Ø´Ø§Ø±ÙØ©"},{title:"Ø¯ÙØ¹Ø© ÙÙÙØ±ÙÙ",description:"Ø´Ø¬ÙØ¹ زÙ
ÙØ§Ø¡Ù أ٠شار٠ÙÙ ÙØ±Ø§Ø± اÙÙØ±ÙÙ Ø§ÙØ³Ø±Ùع.",href:"/teams",icon:ln,color:"bg-memphis-peach",status:"ØªÙØ§Ø¹Ù جÙ
اعÙ"}];return s.jsxs("section",{"data-loc":"client/src/components/ParticipationMomentum.tsx:107",className:"memphis-card momentum-olive relative mb-6 overflow-hidden p-0 text-black","aria-labelledby":"participation-momentum-title",children:[s.jsx(U0e,{"data-loc":"client/src/components/ParticipationMomentum.tsx:108",open:o,points:r?.pointsReward??15,prefersReducedMotion:d,onClose:b}),s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:109",className:"flex flex-col gap-4 p-5 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:110",children:[s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:111",className:"mb-2 flex flex-wrap items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:112",className:"rounded-full border border-black/35 bg-white/45 px-3 py-1 text-xs font-black",children:"زخÙ
اÙÙ
Ø´Ø§Ø±ÙØ©"}),a>0?s.jsxs("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:113",className:"inline-flex items-center gap-1 text-xs font-black text-memp
855his-yellow",children:[s.jsx(Eo,{"data-loc":"client/src/components/ParticipationMomentum.tsx:113",className:"h-3.5 w-3.5"})," Ø³ÙØ³ÙØ© ",a," Ø£ÙØ§Ù
"]}):null]}),s.jsx("h2",{"data-loc":"client/src/components/ParticipationMomentum.tsx:115",id:"participation-momentum-title",className:"text-xl font-black",children:w.headline}),s.jsx("p",{"data-loc":"client/src/components/ParticipationMomentum.tsx:116",className:"mt-1 text-sm font-bold text-black/70",children:w.encouragement})]}),s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:118",className:"inline-flex items-center gap-2 rounded-xl border-2 border-white bg-memphis-yellow px-3 py-2 text-sm font-black text-black",children:[s.jsx(bn,{"data-loc":"client/src/components/ParticipationMomentum.tsx:119",className:"h-4 w-4"})," ",w.dailyCompleted,"/",w.dailyTotal||0," Ù
Ù ÙØ¯Ù اÙÙÙÙ
"]})]}),r&&j?s.jsx("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:`border-t-2 border-black/20 bg-white/25 px-5 py-3 ${r.eligible&&!r.claimed?"animate-badge-shine":""}`,children:s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"flex flex-col gap-3 md:flex-row md:items-center md:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"min-w-0 flex-1",children:[s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"flex flex-wrap items-center gap-2",children:[s.jsx("p",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"text-sm font-black",children:"Ù
ÙØ§Ùأة Ø§ÙØªÙÙØ¹ اÙÙÙÙ
Ù"}),s.jsxs("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"rounded-full border border-memphis-yellow/70 px-2 py-0.5 text-[11px] font-black text-black",children:["+",r.pointsReward," ÙÙØ·Ø©"]})]}),s.jsxs("p",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"mt-1 text-xs font-bold text-black/70",children:["Ø£ÙÙ
Ù ",r.requiredCount," Ø£ÙÙØ§Ø¹ Ù
ختÙÙØ© Ù
٠اÙÙ
Ø´Ø§Ø±ÙØ©: تعÙÙÙ
Ø ØªØØ¯ÙÙØ دعÙ
ÙØ±ÙÙØ Ø£Ù ÙØºØ²."]}),s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"mt-3","aria-label":"ØªÙØ¯Ù
Ù
ÙØ§Ùأة Ø§ÙØªÙÙØ¹ اÙÙÙÙ
ÙØ©",children:[s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"mb-1.5 flex items-center justify-between gap-3 text-[11px] font-black",children:[s.jsx("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:r.claimed?"text-green-800":r.eligible?"text-amber-900":"text-black/70",children:j.status}),s.jsxs("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"shrink-0 text-black",children:[j.completedCount,"/",j.requiredCount]})]}),s.jsx("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",role:"progressbar","aria-label":"ØªÙØ¯Ù
اÙÙ
Ø´Ø§Ø±ÙØ§Øª اÙÙ
تÙÙØ¹Ø© ÙÙÙ
ÙØ§Ùأة اÙÙÙÙ
ÙØ©","aria-valuemin":0,"aria-valuemax":j.requiredCount,"aria-valuenow":j.completedCount,"aria-valuetext":`${j.completedCount} Ù
Ù ${j.requiredCount} Ù
Ø´Ø§Ø±ÙØ§Øª Ù
تÙÙØ¹Ø©`,className:"h-3 overflow-hidden rounded-full border-2 border-black/55 bg-white/60 p-[2px]",children:s.jsx(rn.div,{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",initial:!1,animate:{width:`${j.percentage}%`},transition:{duration:d?0:.32,ease:"circOut"},className:`h-full rounded-full ${r.claimed?"bg-memphis-mint":r.eligible?"bg-memphis-yellow":"bg-memphis-sky"}`})}),s.jsx("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:"mt-2 flex flex-wrap gap-1.5",children:r.activityTypes.map(k=>s.jsxs("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",className:`rounded-full border px-2 py-1 text-[10px] font-black transition-colors ${k.complete?"border-memphis-mint bg-memphis-mint text-black":"border-black/30 bg-white/25 text-black/65 hover:border-black hover:text-black"}`,title:k.complete?`${k.label}: Ù
ÙØªÙ
ÙØ©`:`${k.label}: Ù
Ø´Ø§Ø±ÙØ© Ù
Ø·ÙÙØ¨Ø©`,children:[k.complete?"â ":"â ",k.label]},k.id))})]})]}),s.jsx("button",{"data-loc":"client/src/components/ParticipationMomentum.tsx:122",type:"button",onClick:y,disabled:!r.eligible||r.claimed||x.isPending,className:`memphis-btn shrink-0 px-4 py-2 text-xs font-black disabled:opacity-45 ${r.claimed?"bg-memphis-mint text-black":"bg-memphis-yellow text-black"}`,children:r.claimed?"تÙ
Ø§Ø³ØªÙØ§Ù
اÙÙ
ÙØ§Ùأة":x.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø¶Ø§ÙØ©â¦":r.eligible?"استÙÙ
Ù
ÙØ§ÙأتÙ":`${j.remainingCount} Ù
تبÙÙØ©`})]})}
855):null,s.jsx("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:123",className:"grid border-t-2 border-black/20 md:grid-cols-3",children:N.map(k=>{const D=k.icon;return s.jsx(jt,{"data-loc":"client/src/components/ParticipationMomentum.tsx:127",href:k.href,className:"group border-b-2 border-black/20 p-4 transition-colors hover:bg-white/25 md:border-b-0 md:border-s-2 md:last:border-s-0",children:s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:128",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:129",className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border-2 border-black ${k.color} text-black`,children:s.jsx(D,{"data-loc":"client/src/components/ParticipationMomentum.tsx:129",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:130",className:"min-w-0 flex-1",children:[s.jsxs("div",{"data-loc":"client/src/components/ParticipationMomentum.tsx:130",className:"flex flex-wrap items-center justify-between gap-2",children:[s.jsx("h3",{"data-loc":"client/src/components/ParticipationMomentum.tsx:130",className:"font-black",children:k.title}),s.jsx("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:130",className:"text-[10px] font-black text-black/60",children:k.status})]}),s.jsx("p",{"data-loc":"client/src/components/ParticipationMomentum.tsx:130",className:"mt-1 text-xs font-bold leading-5 text-black/70",children:k.description}),s.jsxs("span",{"data-loc":"client/src/components/ParticipationMomentum.tsx:130",className:"mt-2 inline-flex items-center gap-1 text-xs font-black text-black",children:["ابدأ Ø§ÙØ¢Ù ",s.jsx(P6,{"data-loc":"client/src/components/ParticipationMomentum.tsx:130",className:"h-3.5 w-3.5 transition-transform group-hover:-translate-x-1"})]})]})]})},k.title)})})]})}function Q0e(e){return{resourceType:e.resourceType==="all"?void 0:e.resourceType,categoryId:e.categoryId==="all"?void 0:Number(e.categoryId),folderId:!e.folderId||e.folderId==="all"?void 0:Number(e.folderId),tagId:!e.tagId||e.tagId==="all"?void 0:Number(e.tagId),search:e.search?.trim()||void 0,sortBy:e.sortBy,sortDirection:e.sortDirection}}function W0e(e){return e.resourceType!=="all"||e.categoryId!=="all"||!!e.folderId&&e.folderId!=="all"||!!e.tagId&&e.tagId!=="all"||!!e.search?.trim()?{heading:"ÙØ§ ØªÙØ¬Ø¯ Ù
ØÙÙØ¸Ø§Øª Ù
Ø·Ø§Ø¨ÙØ©",description:"غÙÙØ± اÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ© ÙØ¹Ø±Ø¶ Ù
ÙØ§Ø±Ø¯ Ø£Ø®Ø±ÙØ أ٠اØÙظ Ù
ÙØ±Ø¯Ø§Ù Ø¬Ø¯ÙØ¯Ø§Ù Ù
Ù Ø§ÙØ¯Ø±Ùس."}:{heading:"ÙÙ
تØÙظ Ø£Ù Ù
ÙØ±Ø¯ بعد",description:"اØÙظ ÙÙØ¯Ù٠أ٠Ù
رجعا٠Ù
٠أ٠درس ÙØªØ¬Ù
ÙØ¹Ù ÙÙØ§ ÙØ§ÙØ¹ÙØ¯Ø© Ø¥ÙÙÙ ÙØ§ØÙاÙ."}}function K0e(e){return e.isLoading?"loading":e.isError?"error":e.count===0?"empty":"ready"}function $0e(e){return e.isLoading?"loading":e.count===0?"empty":"ready"}function X0e({completedCount:e}){const a=J.categories.list.useQuery().data??[],n=J.lessons.byCategory.useQuery({categoryId:a[0]?.id??0},{enabled:a.length>0}),r=J.lessons.byCategory.useQuery({categoryId:a[1]?.id??0},{enabled:a.length>1}),i=J.lessons.byCategory.useQuery({categoryId:a[2]?.id??0},{enabled:a.length>2}),o=J.lessons.byCategory.useQuery({categoryId:a[3]?.id??0},{enabled:a.length>3}),l=J.lessons.byCategory.useQuery({categoryId:a[4]?.id??0},{enabled:a.length>4}),c=(n.data?.length??0)+(r.data?.length??0)+(i.data?.length??0)+(o.data?.length??0)+(l.data?.length??0);if(c===0)return null;const d=Math.round(e/c*100);return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:34",className:"memphis-card p-5 bg-white",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:35",className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:36",className:"flex items-center gap-2",children:[s.jsx(er,{"data-loc":"client/src/pages/Dashboard.tsx:37",className:"w-4 h-4 text-black"}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:38",className:"font-black text-sm text-black",children:"ØªÙØ¯Ù
Ù Ø§ÙØ¥Ø¬Ù
اÙÙ ÙÙ Ø§ÙØ¯Ø±Ùس"})]}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"font-black text-2xl text-black",children:[d,"%"]})]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:42",className:"h-4 bg-black/5 border-2 border-black rounded-full overflow-hidden mb-2",children:s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:43",className:"h-full bg-black rounded-full transition-all duration-700",style:{width:`${d}%`}})}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:48",className:"flex justify-between text-xs font-bold text-black/50",children:[s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:49",children:[e," درس Ù
ÙØªÙ
Ù"]}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:50",children:[c-e," Ù
تبÙÙÙ"]})]}),d===100&&s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:53",className:"text-xs font-black text-green-600 mt-2 text-center",children:"ð Ø£ÙÙ
ÙØª جÙ
ÙØ¹ Ø§ÙØ¯Ø±Ùس! Ø¥ÙØ¬Ø§Ø² Ø§Ø³ØªØ«ÙØ§Ø¦Ù!"}),d>0&&d<100&&s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:56",className:"text-xs font-bold text-black/40 mt-2 text-center",children:d<25?"Ø¨Ø¯Ø§ÙØ© رائعة! ÙØ§ØµÙ ðª":d<50?"Ø£ÙØª ÙÙ Ø§ÙØ·Ø±ÙÙ Ø§ÙØµØÙØ ð":d<75?"Ø£ÙØ«Ø± Ù
٠اÙÙØµÙ! ÙØ±Ùبا٠â":"ÙÙØ·Ø© Ø£Ø®ÙØ±Ø© ÙØªÙÙÙÙ! ð¯"})]})}function Y0e(e){return e.replace(/[\uD800-\uDFFF]|\u200D|[\u2600-\u27FF]/g,"").trim()}const B_=["bg-memphis-mint","bg-memphis-lilac","bg-memphis-sky","bg-memphis-peach","bg-cyan-100","bg-rose-100"],G_=["ð¢","ð","ð¥","ð±","ð¤","ð¤²"];function Z0e(){const{user:e,isAuthenticated:t,loading:a}=Ma(),n=J.categories.list.useQuery(),r=J.profile.me.useQuery(void 0,{enabled:t}),i=J.badges.mine.useQuery(void 0,{enabled:t});J.leaderboard.top.useQuery({limit:5});const o=J.challenges.list.useQuery({type:"daily"}),l=J.challenges.myTodayCompletions.useQuery(void 0,{enabled:t}),c=J.lessons.myCompletions.useQuery(void 0,{enabled:t}),d=J.streak.mine.useQuery(void 0,{enabled:t}),m=J.streak.freezeStatus.useQuery(void 0,{enabled:t}
855),f=J.engagement.dailyVarietyBonus.useQuery(void 0,{enabled:t}),h=J.badges.weeklyChampions.useQuery(),x=J.profile.monthlyProgress.useQuery(void 0,{enabled:t}),b=J.savedResources.recent.useQuery({limit:4},{enabled:t}),y=$0e({isLoading:b.isLoading,count:b.data?.length??0});if(a)return s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:92",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:93",className:"memphis-card p-8 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:94",className:"w-12 h-12 border-4 border-black border-t-memphis-lilac rounded-full animate-spin mx-auto mb-4"}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:95",className:"font-bold text-black",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."})]})});if(!t)return s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:103",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:104",className:"memphis-card p-10 text-center max-w-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:105",className:"text-5xl mb-4",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:106",className:"font-black text-2xl text-black mb-3",children:"ÙØ¬Ø¨ تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:107",className:"text-black/60 mb-6 font-medium",children:"سجÙ٠دخÙÙÙ ÙÙÙØµÙ٠إÙÙ ÙÙØØ© Ø§ÙØªØÙÙ
"}),s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:108",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-6 py-3 font-black text-black w-full",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]})});const w=r.data,j=w?.level??1,N=w?.totalPoints??0,k=j*100-N,D=Math.min(100,N%100),C=new Set((l.data??[]).map(E=>E.challengeId)),S=(o.data??[]).slice(0,3),A=new Set((c.data??[]).map(E=>E.lessonId));return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:127",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/Dashboard.tsx:128"}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:129",className:"max-w-7xl mx-auto px-4 py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:131",className:"memphis-card memphis-page-header bg-memphis-lilac p-6 mb-8 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 relative overflow-hidden",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:133",className:"absolute top-2 left-3 bg-memphis-yellow border-2 border-black px-3 py-1 rounded-full text-xs font-black shadow-memphis flex items-center gap-1.5 animate-badge-shine",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:134",children:"ð"}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:135",children:"اÙÙ
ØªØµØ¯ÙØ± Ø§ÙØ£ÙÙ (Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØØ§ÙÙ)"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:138",children:[s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:139",className:"text-black/60 font-medium text-sm mb-1",children:"Ù
Ø±ØØ¨Ø§Ù Ø¨Ø¹ÙØ¯ØªÙ ð"}),s.jsxs("h1",{"data-loc":"client/src/pages/Dashboard.tsx:140",className:"font-black text-2xl text-black flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:141",children:e?.name??"Ù
ÙØ¸Ù"}),N>1e3&&s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:143",className:"bg-amber-400 text-black text-[11px] px-2 py-0.5 rounded-full border border-black font-black animate-bounce",title:"ÙØ¬Ù
صدارة اÙÙ
ÙØµØ©",children:"â Ø¨Ø·Ù اÙÙØ®Ø¨Ø©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:148",className:"flex items-center gap-3 mt-3",children:[s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:149",className:"memphis-badge-pill bg-memphis-yellow",children:["اÙÙ
ستÙÙ ",j]}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:150",className:"memphis-badge-pill bg-white",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:150",className:"memphis-number",children:N})," ÙÙØ·Ø©"]}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:151",className:"memphis-badge-pill bg-memphis-mint",children:[i.data?.length??0," شارة"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:155",className:"w-full sm:w-48",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:156",className:"flex justify-between text-xs font-bold text-black mb-1",children:[s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:157",children:["اÙÙ
ستÙÙ ",j]}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:158",children:k>0?`${k} ÙÙÙ
ستÙÙ Ø§ÙØªØ§ÙÙ`:"Ø§ÙØØ¯ Ø§ÙØ£ÙصÙ!"})]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:160",className:"memphis-progress-track h-3",children:s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"memphis-progress-fill",style:{width:`${D}%`}})}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"mt-3 flex flex-wrap gap-2",children:[s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:163",href:"/focus",children:s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"memphis-btn inline-flex items-center bg-white px-2.5 py-1.5 text-[11px] font-black text-black",children:[s.jsx(Os,{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"ml-1 h-3.5 w-3.5"}),"ÙØ¶Ø¹ ترÙÙØ²"]}
855)}),s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:163",href:"/achievements",children:s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"memphis-btn inline-flex items-center bg-memphis-yellow px-2.5 py-1.5 text-[11px] font-black text-black",children:[s.jsx(aa,{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"ml-1 h-3.5 w-3.5"}),"Ø¥ÙØ¬Ø§Ø²Ø§ØªÙ"]})})]})]})]}),s.jsx(I0e,{"data-loc":"client/src/pages/Dashboard.tsx:167",challenges:S,completedIds:C,level:j}),s.jsx(V0e,{"data-loc":"client/src/pages/Dashboard.tsx:168",dailyCompleted:C.size,dailyTotal:S.length,streak:d.data?.currentStreak??0,pointsToNextLevel:Math.max(k,0),dailyBonus:f.data}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:170",className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:172",className:"lg:col-span-2 space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:174",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:175",className:"font-black text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(Ln,{"data-loc":"client/src/pages/Dashboard.tsx:176",className:"w-5 h-5"})," Ù
Ù Ø¬Ø¯Ù ÙØ¬Ø¯"]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:178",className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:n.isLoading?[1,2,3].map(E=>s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:180",className:"memphis-card h-32 animate-pulse bg-gray-100"},E)):(n.data??[]).map((E,R)=>s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:183",href:`/category/${E.id}`,children:s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:184",className:`memphis-card memphis-card--quiet memphis-focus-ring ${B_[R%B_.length]} p-5 cursor-pointer`,children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:185",className:"text-3xl mb-3",children:E.icon??G_[R%G_.length]}),s.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:186",className:"font-black text-base text-black",children:E.nameAr}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:187",className:"text-black/60 text-xs mt-1 font-medium line-clamp-2",children:E.descriptionAr}),s.jsx(nve,{"data-loc":"client/src/pages/Dashboard.tsx:189",categoryId:E.id,completedLessonIds:A}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:190",className:"flex items-center gap-1 mt-3 text-xs font-bold text-black",children:[s.jsx(P6,{"data-loc":"client/src/pages/Dashboard.tsx:191",className:"w-3 h-3"})," تابع Ù
ØÙرÙ"]})]})},E.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:201",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:202",className:"mb-4 flex items-center justify-between gap-3",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:203",className:"flex items-center gap-2 text-xl font-black text-black",children:[s.jsx(Hi,{"data-loc":"client/src/pages/Dashboard.tsx:203",className:"h-5 w-5"})," Ù
ØÙÙØ¸Ø§Øª ØØ¯Ùثة"]}),s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:204",href:"/saved-resources",children:s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:204",className:"text-sm font-bold text-black underline underline-offset-2",children:"عرض اÙÙÙ"})})]}),y==="loading"?s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:207",className:"grid gap-3 sm:grid-cols-2",children:[1,2].map(E=>s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:207",className:"memphis-card h-24 animate-pulse bg-white"},E))}):y==="empty"?s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:209",href:"/learning-path",children:s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:209",className:"memphis-card cursor-pointer bg-white p-5 transition hover:-translate-y-0.5",children:[s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:209",className:"font-black text-black",children:"ÙÙ
تØÙظ Ù
ÙØ±Ø¯Ø§Ù بعد"}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:209",className:"mt-1 text-sm text-black/60",children:"اØÙظ ÙÙØ¯Ù٠أ٠Ù
رجعا٠Ù
٠أ٠درس ÙØªØ¬Ø¯Ù ÙÙØ§."})]})}):s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:211",className:"grid gap-3 sm:grid-cols-2",children:(b.data??[]).map(E=>{const R=E.resourceType==="video"?T6:c2,F=E.resourceTitle||E.lessonTitle;return s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:216",href:"/saved-resources",children:s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:217",className:"memphis-card cursor-pointer bg-white p-4 transition hover:-translate-y-0.5",children:s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:218",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:219",className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border-2 border-black ${E.resourceType==="video"?"bg-memphis-yellow":"bg-memphis-sky"}`,children:s.jsx(R,{"data-loc":"client/src/pages/Dashboard.tsx:219",className:"h-4 w-4 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:220",className:"min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:220",className:"line-clamp-2 text-sm font-black text-black",children:F}),s.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:220",className:"mt-1 truncate text-xs font-bold text-black/55",children:["Ù
٠درس: ",E.lessonTitle]})]})]})})},E.id)})})]}),s.jsx(x0e,{"data-loc":"client/src/pages/Dashboard.tsx:231"}),s.jsx(J0e,{"data-loc":"client/src/pages/Dashboard.tsx:233"}),s.jsx(w0e,{"data-loc":"client/src/pages/Dashboard.tsx:235"}),s.jsx(ave,{"data-loc":"client/src/pages/Dashboard.tsx:237",streak:d.data?.currentStreak??0})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:241",className:"space-y-6",children:[s.jsx(eve,{"data-loc":"client/src/pages/Dashboard.tsx:243",streak:d.data?.currentStreak??0,longestStreak:d.data?.longestStreak??0,freezeStatus:m.data}),s.jsx(tve,{"data-loc":"client/src/pages/Dashboard.tsx:244",streak:d.data?.currentStreak??0}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:246",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:247",className:"font-black text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(vs,{"data-loc":"client/src/pages/Dashboard.tsx:248",className:"w-5 h-5"})," Ø¥ØØµØ§Ø¡Ø§ØªÙ"]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:250",className:"grid grid-cols-2 gap-3",children:[{label:"اÙÙÙØ§Ø·",value:N,color:"bg-memphis-yellow",icon:"ð"},{label:"اÙÙ
ستÙÙ",value:j,color:"bg-memphis-lilac",icon:"â"},{label:"Ø§ÙØ´Ø§Ø±Ø§Øª",value:i.data?.length??0,color:"bg-memphis-mint",icon:"ðï¸"},{label:"Ø£ÙØ§Ù
Ù
تتاÙÙØ©",value:d.data?.currentStreak??0,color:"bg-memphis-sky",icon:"ð¥"}].map(E=>s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:257",className:`memphis-card ${E.color} p-4 text-center`,children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:258",className:"text-2xl mb-1",children:E.icon}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:259",className:"font-black text-2xl text-black",children:E.value}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:260",className:"text-xs font-bold text-black/60",children:E.label})]},E.label))})]}),s.jsx(X0e,{"data-loc":"client/src/pages/Dashboard.tsx:267",completedCount:A.size}),s.jsx(F0e,{"data-loc":"client/src/pages/Dashboard.tsx:269",progress:x.data??[]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:272",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:273",className:"flex items-center justify-between",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:274",className:"font-black text-xl text-black flex items-center gap-2",children:[s.jsx(aa,{"data-loc":"client/src/pages/Dashboard.tsx:275",className:"w-5 h-5"})," اÙÙ
تصدرÙÙ Ø§ÙØÙÙÙ"]}),s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:277",href:"/leaderboard",children:s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:278",className:"text-sm font-bold text-black underline underline-offset-2 hover:text-memp
855his-coral transition-colors",children:"عرض اÙÙÙ"})})]}),s.jsx(y0e,{"data-loc":"client/src/pages/Dashboard.tsx:281"})]}),(i.data?.length??0)>0&&s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:286",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:287",className:"font-black text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(Sn,{"data-loc":"client/src/pages/Dashboard.tsx:288",className:"w-5 h-5"})," شاراتÙ"]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:290",className:"memphis-card p-4 flex flex-wrap gap-2",children:i.data?.map(E=>s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:292",title:E.badge.descriptionAr??E.badge.nameAr,className:"memphis-badge-pill bg-memphis-yellow text-xs flex items-center gap-1.5 py-1.5 px-3",children:[s.jsx(sve,{"data-loc":"client/src/pages/Dashboard.tsx:293",slug:E.badge.slug,size:16}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:294",className:"font-bold",children:Y0e(E.badge.nameAr)})]},E.badge.id))})]}),s.jsx(ive,{"data-loc":"client/src/pages/Dashboard.tsx:301",champions:h.data??[],currentUserId:e?.id}),s.jsx(_0e,{"data-loc":"client/src/pages/Dashboard.tsx:303"})]})]})]})]})}const H_=[{text:"اشرب ÙÙØ¨Ø§Ù Ù
٠اÙÙ
اء Ø§ÙØ¢Ù â Ø¬Ø³Ù
Ù ÙØ´ÙØ±Ù ÙØ¹ÙÙÙ ÙØµÙÙ!",cat:"ØµØØ©",color:"bg-memphis-mint"},{text:"خذ Ø§Ø³ØªØ±Ø§ØØ© ÙØµÙرة Ù٠ساعة â 5 Ø¯ÙØ§Ø¦Ù ØªØ¹ÙØ¯ Ø´ØÙ Ø·Ø§ÙØªÙ ÙØªØ¶Ø§Ø¹Ù Ø¥ÙØªØ§Ø¬ÙتÙ!",cat:"ØµØØ©",color:"bg-memphis-mint"},{text:"اÙÙÙÙ
Ø§ÙØ¬Ùد Ù
Ù ÙØ³Ù â Ù٠استثÙ
ار ÙÙ ØµØØªÙ ÙØ¥ÙØªØ§Ø¬ÙØªÙ!",cat:"ØµØØ©",color:"bg-memphis-mint"},{text:"ضع زجاجة Ù
اء عÙÙ Ù
ÙØªØ¨Ù ÙØªØ°ÙÙØ± دائÙ
â Ø§ÙعÙ٠تشÙÙØ اÙÙØ¯ تÙ
د!",cat:"ØµØØ©",color:"bg-memphis-mint"},{text:"خذ Ø§Ø³ØªØ±Ø§ØØ© ØÙÙÙÙØ© ÙÙØª Ø§ÙØºØ¯Ø§Ø¡ Ø¨Ø¹ÙØ¯Ø§Ù Ø¹Ù Ø§ÙØ´Ø§Ø´Ø© â Ø¬Ø³Ù
Ù ÙØØªØ§Ø¬ إعادة Ø´ØÙ!",cat:"ØµØØ©",color:"bg-memphis-mint"},{text:"Ø§ÙØªØ اÙÙØ§Ùذة ÙØªÙÙØ³ ÙÙØ§Ø¡ ÙÙÙ 5 Ø¯ÙØ§Ø¦Ù â Ø§ÙØ£ÙÙØ³Ø¬ÙÙ ÙØ¬Ø¯Ø¯ Ø·Ø§ÙØ© Ø§ÙØ¯Ù
اغ!",cat:"ØµØØ©",color:"bg-memphis-mint"},{text:"ØØ§Ùظ عÙÙ ÙØ¶Ø¹ÙØ© جÙÙØ³ صØÙØØ© â Ø¸ÙØ±Ù ÙØ´Ùر٠بعد سÙÙØ§Øª!",cat:"ØµØØ©",color:"bg-memphis-mint"},{text:"تÙ
دد ÙÙ
دة دÙÙÙØªÙÙ Ø§ÙØ¢Ù â Ø¬Ø³Ù
Ù ÙØØªØ§Ø¬ Ø§ÙØØ±ÙØ© ØØªÙ ÙØ³Ø· Ø§ÙØ¯ÙاÙ
!",cat:"Ø±ÙØ§Ø¶Ø©",color:"bg-memphis-coral"},{text:"Ù
Ø´Ù 15 دÙÙÙØ© ÙÙØª Ø§ÙØºØ¯Ø§Ø¡ ÙØØ³Ù Ù
زاج٠ÙÙØ±Ùع ترÙÙØ²Ù بÙÙØ© اÙÙÙÙ
!",cat:"Ø±ÙØ§Ø¶Ø©",color:"bg-memphis-coral"},{text:"بد٠اÙÙ
ØµØ¹Ø¯Ø Ø§Ø³ØªØ®Ø¯Ù
Ø§ÙØ³ÙÙ
اÙÙÙÙ
â Ø®Ø·Ùات ØµØºÙØ±Ø© تجÙ
ع ÙÙ ØµØØ© ÙØ¨Ùرة!",cat:"Ø±ÙØ§Ø¶Ø©",color:"bg-memphis-coral"},{text:"10 ÙÙØ²Ø§Øª Ø§ÙØ¢Ù ØªÙØ´Ø· Ø¯ÙØ±ØªÙ Ø§ÙØ¯Ù
ÙÙØ© ÙØªØ·Ø±Ø¯ اÙÙØ³Ù â Ø¬Ø±ÙØ¨ÙØ§!",cat:"Ø±ÙØ§Ø¶Ø©",color:"bg-memphis-coral"},{text:"ØØ¯Ø¯ Ù
ÙØ¹Ø¯Ø§Ù ثابتا٠ÙÙØ±Ùاضة ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع â Ø§ÙØ§ÙØªØ¸Ø§Ù
ÙÙ Ø§ÙØ³Ø±!",cat:"Ø±ÙØ§Ø¶Ø©",color:"bg-memphis-coral"},{text:"تÙ
رÙÙ 20 دÙÙÙØ© ÙÙÙ
ÙØ§Ù ÙØ¹Ø§Ø¯Ù ساعة Ù
Ù Ø§ÙØ±Ø§ØØ© Ø§ÙØ°ÙÙÙØ©!",cat:"Ø±ÙØ§Ø¶Ø©",color:"bg-memphis-coral"},{text:"ØªÙØ§ÙÙ ÙØ¬Ø¨Ø© Ø¥ÙØ·Ø§Ø± Ù
ØªÙØ§Ø²ÙØ© ØºØ¯Ø§Ù â Ø§ÙØ¨Ø¯Ø§ÙØ© Ø§ÙØµØÙØØ© ØªØµÙØ¹ ÙÙÙ
ا٠رائعاÙ!",cat:"ØªØºØ°ÙØ©",color:"bg-memphis-peach"},{text:"ØªØ¬ÙØ¨ Ø§ÙØ£Ù٠أÙ
اÙ
Ø§ÙØ´Ø§Ø´Ø© â ÙÙ
ا تأÙ٠بترÙÙØ² تستÙ
تع Ø£ÙØ«Ø± ÙØªØ£Ù٠أÙÙ!",cat:"ØªØºØ°ÙØ©",color:"bg-memphis-peach"},{text:"اشرب ÙÙØ¨ Ù
اء ÙØ¨Ù ÙÙ ÙØ¬Ø¨Ø© â ÙØ³Ø§Ø¹Ø¯Ù عÙÙ Ø§ÙØ´Ø¹Ùر Ø¨Ø§ÙØ´Ø¨Ø¹ بشÙ٠أسرع!",cat:"ØªØºØ°ÙØ©",color:"bg-memphis-peach"},{text:"ØªÙØ§Ù٠اÙÙ
ÙØ³Ø±Ø§Øª ÙÙØ¬Ø¨Ø© Ø®ÙÙÙØ© Ø¨Ø¯Ù Ø§ÙØ´Ùبس â Ø·Ø§ÙØ© Ù
ستداÙ
Ø© ÙÙÙØ§Ø¦Ø¯ ÙØ§ ØªØØµÙ!",cat:"ØªØºØ°ÙØ©",color:"bg-memphis-peach"},{text:"Ø¬Ø±ÙØ¨ ÙØ¬Ø¨Ø© صØÙØ© Ø¬Ø¯ÙØ¯Ø© ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع â Ø§ÙتÙÙØ¹ ÙÙ Ø§ÙØ£ÙÙ ÙØ¹Ù٠تÙÙØ¹Ø§Ù Ù٠اÙÙÙØ§Ø¦Ø¯!",cat:"ØªØºØ°ÙØ©",color:"bg-memphis-peach"},{text:"Ø£Ø¶Ù Ø®Ø¶Ø±Ø§ÙØ§Øª ÙÙÙ ÙØ¬Ø¨Ø© â Ø§ÙÙÙÙ Ø§ÙØ£Ø®Ø¶Ø± عÙ٠طبÙÙ ÙØ¹ÙÙ Ø·Ø§ÙØ© Ø£ÙØ«Ø±!",cat:"ØªØºØ°ÙØ©",color:"bg-memphis-peach"},{text:"ÙÙÙÙ Ø§ÙØ³Ùر ÙÙ ÙÙÙØªÙ ØªØ¯Ø±ÙØ¬ÙØ§Ù â Ø¨Ø¹Ø¯ Ø£Ø³Ø¨ÙØ¹ Ù
ا ØªØØ³ باÙÙØ±Ù ÙØ¬Ø³Ù
Ù ÙØ³ØªÙÙØ¯!",cat:"ØªØºØ°ÙØ©",color:"bg-memphis-peach"},{text:"ØØ¯Ùد Ø£ÙÙ
3 Ù
ÙØ§Ù
ÙÙÙÙ
Ù Ø§ÙØ¢Ù â Ø§ÙترÙÙØ² عÙ٠اÙÙÙÙÙ ÙØÙ٠اÙÙØ«Ùر!",cat:"Ø¥ÙØªØ§Ø¬ÙØ©",color:"bg-memphis-lilac"},{text:"أغÙÙ Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª ساعة ÙØ§Ù
ÙØ© ÙØ±ÙÙØ² عÙÙ Ù
ÙÙ
Ø© ÙØ§ØØ¯Ø© â Ø³ØªØ¯Ùش٠اÙÙØªØ§Ø¦Ø¬!",cat:"Ø¥ÙØªØ§Ø¬ÙØ©",color:"bg-memphis-lilac"}
855,{text:"خصص 5 Ø¯ÙØ§Ø¦Ù آخر اÙÙÙÙ
تراجع ÙÙÙØ§ Ù
ا Ø£ÙØ¬Ø²ØªÙ â ÙØ°Ø§ ÙØÙØ²Ù ÙÙØºØ¯!",cat:"Ø¥ÙØªØ§Ø¬ÙØ©",color:"bg-memphis-lilac"},{text:"Ø±ØªÙØ¨ Ù
ÙØªØ¨Ù ÙÙ Ø¨Ø¯Ø§ÙØ© ÙÙ Ø£Ø³Ø¨ÙØ¹ â Ø§ÙØ¨ÙØ¦Ø© اÙÙ
ÙØ¸Ù
Ø© ØªØµÙØ¹ عÙÙØ§Ù Ù
ÙØ¸Ù
اÙ!",cat:"Ø¥ÙØªØ§Ø¬ÙØ©",color:"bg-memphis-lilac"},{text:"اÙÙÙØª Ù٠أثÙ
Ù Ù
ا Ø¹ÙØ¯Ù â Ø§Ø³ØªØ«Ù
ر 30 دÙÙÙØ© ÙÙÙ
ÙØ§Ù Ù٠تطÙÙØ± ÙÙØ³Ù!",cat:"Ø¥ÙØªØ§Ø¬ÙØ©",color:"bg-memphis-lilac"},{text:"ابدأ باÙÙ
ÙÙ
Ø© Ø§ÙØ£ØµØ¹Ø¨ ØµØ¨Ø§ØØ§Ù â Ø¹ÙÙÙ ÙÙ Ø£ÙØ¶Ù ØØ§Ùات٠ÙÙØª Ø§ÙØµØ¨Ø§Ø Ø§ÙØ¨Ø§Ùر!",cat:"Ø¥ÙØªØ§Ø¬ÙØ©",color:"bg-memphis-lilac"},{text:"ÙØ³ÙÙ
اÙÙ
ÙØ§Ù
اÙÙØ¨Ùرة Ø¥ÙÙ Ø®Ø·ÙØ§Øª ØµØºÙØ±Ø© â ÙÙ Ø®Ø·ÙØ© ØªÙØ±Ø¨Ù Ù
٠اÙÙØ¯Ù!",cat:"Ø¥ÙØªØ§Ø¬ÙØ©",color:"bg-memphis-lilac"},{text:"ÙÙ Ø´ÙØ±Ø§Ù ÙØ²Ù
Ù٠ساعد٠اÙÙÙÙ
â Ø§ÙاÙ
ØªÙØ§Ù ÙØ¨ÙÙ Ø¹ÙØ§Ùات Ø£ÙÙÙ!",cat:"عÙ
Ù",color:"bg-memphis-sky"},{text:"ÙØ¨Ù أ٠اجتÙ
Ø§Ø¹Ø Ø®Ø° دÙÙÙØ© تراجع ÙÙÙØ§ Ø§ÙØ£Ùدا٠â ÙØ°Ø§ ÙÙÙØ± ÙÙØªÙ ÙÙÙØª Ø§ÙØ¬Ù
ÙØ¹!",cat:"عÙ
Ù",color:"bg-memphis-sky"},{text:"ÙØ¨Ù Ù
ا ترد عÙÙ Ø±Ø³Ø§ÙØ© ØºØ§Ø¶Ø¨Ø©Ø Ø§ÙØªØ¸Ø± 10 Ø¯ÙØ§Ø¦Ù â Ø±Ø¯Ùد٠ستÙÙ٠أØÙÙ
ÙØ£Ùدأ!",cat:"عÙ
Ù",color:"bg-memphis-sky"},{text:"ØªÙØ§ØµÙ Ù
ع شخص ÙÙ
تÙÙÙ
Ù Ù
ÙØ° ÙØªØ±Ø© â Ø§ÙØ¹ÙØ§Ùات ØªØØªØ§Ø¬ ØµÙØ§ÙØ© Ù
Ø«Ù Ø§ÙØ³Ùارة!",cat:"عÙ
Ù",color:"bg-memphis-sky"},{text:"ÙØ¯ÙÙ
Ù
ساعدة ÙØ²Ù
ÙÙ٠بدÙÙ Ø§ÙØªØ¸Ø§Ø± Ù
ÙØ§Ø¨Ù â Ø§ÙÙØ±Ù
ÙØ¹Ùد عÙÙ٠بأضعاÙ!",cat:"عÙ
Ù",color:"bg-memphis-sky"},{text:"استÙ
ع Ø£ÙØ«Ø± Ù
Ù
ا تتÙÙÙ
ÙÙ Ø§ÙØ§Ø¬ØªÙ
اعات â Ø§ÙاستÙ
اع Ø§ÙØ¬Ùد ÙÙØªØ Ø£Ø¨ÙØ§Ø¨Ø§Ù ÙØ«Ùرة!",cat:"عÙ
Ù",color:"bg-memphis-sky"},{text:"Ø§ØØ±Øµ عÙ٠اÙÙØ¶ÙØ Ù٠رسائÙÙ â Ø§ÙØ±Ø³Ø§ÙØ© اÙÙØ§Ø¶ØØ© تÙÙØ± 10 Ø±Ø³Ø§Ø¦Ù ØªÙØ¶ÙØÙØ©!",cat:"عÙ
Ù",color:"bg-memphis-sky"},{text:"شار٠زÙ
ÙÙÙ Ø¨Ø´ÙØ¡ تعÙÙ
ت٠اÙÙÙÙ
â Ø§ÙتعÙÙÙ
ÙØ«Ø¨Ùت اÙÙ
عÙÙÙ
Ø© ÙÙÙÙÙ Ø§ÙØ¹ÙØ§ÙØ§Øª!",cat:"تعÙÙ
",color:"bg-memphis-mint"},{text:"Ø¬Ø±ÙØ¨ تتعÙÙ
ÙÙÙ
Ø© Ø¥ÙØ¬ÙÙØ²ÙØ© Ø¬Ø¯ÙØ¯Ø© ÙÙ ÙÙÙ
â Ø¨Ø¹Ø¯ Ø³ÙØ© Ø¹ÙØ¯Ù 365 ÙÙÙ
Ø© إضاÙÙØ©!",cat:"تعÙÙ
",color:"bg-memphis-mint"},{text:"Ø§ÙØ±Ø£ ØµÙØØªÙÙ Ù
Ù ÙØªØ§Ø¨ ÙØ¨Ù اÙÙÙÙ
â 10 Ø¯ÙØ§Ø¦Ù ÙÙÙ
ÙØ§Ù تعاد٠12 ÙØªØ§Ø¨Ø§Ù ÙÙ Ø§ÙØ³ÙØ©!",cat:"تعÙÙ
",color:"bg-memphis-mint"},{text:"تعÙÙÙ
Ù
ÙØ§Ø±Ø© Ø¬Ø¯ÙØ¯Ø© ÙÙ Ù
جاÙÙ ÙÙ Ø´ÙØ± â Ø§ÙÙØ¶ÙÙ Ù٠أÙÙÙ Ù
ØØ±Ù ÙÙÙØ¬Ø§Ø!",cat:"تعÙÙ
",color:"bg-memphis-mint"},{text:"Ø´Ø§ÙØ¯ ÙÙØ¯Ù٠تعÙÙÙ
ÙØ§Ù ÙØµÙرا٠اÙÙÙÙ
â 10 Ø¯ÙØ§Ø¦Ù ÙÙÙ
ÙØ§Ù ØªØµÙØ¹ Ø®Ø¨ÙØ±Ø§Ù ÙÙ Ø³ÙØ©!",cat:"تعÙÙ
",color:"bg-memphis-mint"},{text:"Ø§Ø³Ø£Ù Ø³Ø¤Ø§ÙØ§Ù ÙØ§ØØ¯Ø§Ù Ù٠اجتÙ
اع٠اÙÙØ§Ø¯Ù
â Ø§ÙØ£Ø³Ø¦ÙØ© Ø§ÙØ¬Ùدة ØªÙØªØ Ø¢ÙØ§ÙØ§Ù Ø¬Ø¯ÙØ¯Ø©!",cat:"تعÙÙ
",color:"bg-memphis-mint"},{text:"دÙÙÙ Ù
ÙØ§ØØ¸Ø© ÙØ§ØØ¯Ø© Ù
Ù
ا تعÙÙ
ت٠اÙÙÙÙ
â Ø§ÙÙØªØ§Ø¨Ø© ØªØ«Ø¨ÙØª اÙÙ
عÙÙÙ
Ø© ÙÙ Ø§ÙØ°Ø§Ùرة!",cat:"تعÙÙ
",color:"bg-memphis-mint"},{text:"Ø§ÙØªØ¨ 3 Ø£Ø´ÙØ§Ø¡ ØªØ´ÙØ± عÙÙÙØ§ اÙÙÙÙ
â Ø§ÙاÙ
ØªÙØ§Ù ÙØºÙر ÙØ¸Ø±ØªÙ ÙÙØÙØ§Ø©!",cat:"Ø¥ÙØ¬Ø§Ø¨ÙØ©",color:"bg-memphis-yellow"},{text:"ÙÙ
ا ØªØØ³ Ø¨Ø§ÙØªØ¹Ø¨Ø ابتسÙ
â Ø§ÙابتساÙ
Ø© ترس٠إشارات Ø¥ÙØ¬Ø§Ø¨ÙØ© ÙØ¯Ù
اغÙ!",cat:"Ø¥ÙØ¬Ø§Ø¨ÙØ©",color:"bg-memphis-yellow"},{text:"Ø§ØØªÙÙ Ø¨Ø¥ÙØ¬Ø§Ø²Ø§ØªÙ Ø§ÙØµØºÙرة â ÙÙ Ø®Ø·ÙØ© ÙÙØ£Ù
اÙ
تستØÙ Ø§ÙØªÙØ¯ÙØ±!",cat:"Ø¥ÙØ¬Ø§Ø¨ÙØ©",color:"bg-memphis-yellow"},{text:"اÙÙÙÙ
ÙÙÙ
Ø¬Ø¯ÙØ¯ ÙÙØ±ØµØ© Ø¬Ø¯ÙØ¯Ø© â ÙÙ Ù
ا Ù
ض٠Ù
Ø¶ÙØ ابدأ Ù
Ù Ø§ÙØ¢Ù!",cat:"Ø¥ÙØ¬Ø§Ø¨ÙØ©",color:"bg-memphis-yellow"},{text:"تذÙÙØ± Ø£Ù Ø§ÙØ£Ø®Ø·Ø§Ø¡ جزء Ù
Ù Ø§ÙØªØ¹ÙÙ
â ÙÙ ØºÙØ·Ø© ØªÙØ±Ø¨Ù Ø®Ø·ÙØ© Ù
٠اÙÙØ¬Ø§Ø!",cat:"Ø¥ÙØ¬Ø§Ø¨ÙØ©",color:"bg-memphis-yellow"},{text:"ÙØ§Ø±Ù ÙÙØ³Ù بÙÙØ³Ù Ø£Ù
س ÙÙØ· â Ø£Ùت Ù٠سبا٠Ù
ع ÙÙØ³Ù ÙØ§ Ù
ع ØºÙØ±Ù!",cat:"Ø¥ÙØ¬Ø§Ø¨ÙØ©",color:"bg-memphis-yellow"},{text:"خذ 3 Ø£ÙÙØ§Ø³ عÙ
ÙÙØ© Ø§ÙØ¢Ù â ÙØ°Ø§ ÙÙØ¯Ø¦ Ø§ÙØ¬Ùاز Ø§ÙØ¹ØµØ¨Ù ÙÙØµÙÙ Ø§ÙØ°ÙÙ!",cat:"ØµØØ© ÙÙØ³ÙØ©",color:"bg-memphis-lilac"},{text:"ØªØØ¯Ø« Ù
ع شخص تث٠ب٠ع٠ÙÙÙ
Ù â Ø§ÙØªØ¹Ø¨ÙØ± ع٠اÙÙ
شاعر ÙØ®ÙÙ Ø§ÙØ¶ØºØ·!",cat:"ØµØØ© ÙÙØ³ÙØ©",color:"bg-memphis-lilac"},{text:"أعط٠ÙÙØ³Ù Ø¥Ø°ÙØ§Ù Ø¨Ø§ÙØ±Ø§ØØ© â Ø§ÙØ¥ÙØ³Ø§Ù Ù
Ù Ø¢ÙØ© ÙØªØ³ØªØÙ ÙÙØªØ§Ù ÙÙÙØ³Ù!",cat:"ØµØØ© ÙÙØ³ÙØ©",color:"bg-memphis-lilac"},{text:"ØªØ¬ÙØ¨ Ù
ÙØ§Ø±ÙØ© ØÙات٠بÙ
ا ترا٠ÙÙ Ø§ÙØ³ÙØ´ÙØ§Ù Ù
ÙØ¯Ùا â Ø§ÙÙØ§Ùع أجÙ
Ù Ø¨ÙØ«Ùر!",cat:"ØµØØ© ÙÙØ³ÙØ©",color:"bg-memphis-lilac"},{text:"Ø§ÙØ¶Ù 10 Ø¯ÙØ§Ø¦Ù ÙÙ Ø§ÙØ·Ø¨Ùعة أ٠باÙÙØ±Ø¨ Ù
Ù ÙØ§Ùذة â Ø§ÙØ¶ÙØ¡ Ø§ÙØ·Ø¨ÙØ¹Ù ÙØ±Ùع اÙÙ
زاج!",cat:"ØµØØ© ÙÙØ³ÙØ©",color:"bg-memphis-lilac"},{text:"ØØ¯Ø¯ ÙØ¯ÙØ§Ù ÙØ§ØØ¯Ø§Ù ØµØºÙØ±Ø§Ù ÙÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع ÙØÙÙÙ â Ø§ÙÙØ¬Ø§Ø Ø§ÙØµØºÙر ÙØ¨ÙÙ Ø§ÙØ«ÙØ©!",cat:"تطÙÙØ± ذاتÙ",color:"bg-memphis-sky"},{text:"اخرج Ù
Ù Ù
ÙØ·ÙØ© Ø§ÙØ±Ø§ØØ© اÙÙÙÙ
ÙÙ٠بخطÙ
855Ø© ØµØºÙØ±Ø© â Ø§ÙÙÙ
Ù ÙØ¨Ø¯Ø£ Ù
Ù Ø§ÙØØ§ÙØ©!",cat:"تطÙÙØ± ذاتÙ",color:"bg-memphis-sky"},{text:"Ø§Ø·ÙØ¨ Ø±Ø£ÙØ§Ù ØµØ±ÙØØ§Ù Ù
٠زÙ
ÙÙ ØªØ«Ù Ø¨Ù â Ø§ÙÙ
ÙØ§ØØ¸Ø§Øª Ø§ÙØ¨ÙÙØ§Ø¡Ø© Ù٠أسرع طرÙÙ ÙÙØªØ·Ùر!",cat:"تطÙÙØ± ذاتÙ",color:"bg-memphis-sky"},{text:"راجع Ø£ÙØ¯Ø§ÙÙ Ø§ÙØ´ÙØ±ÙØ© اÙÙÙÙ
â ÙÙ Ø£ÙØª Ù٠اÙÙ
سار Ø§ÙØµØÙØØ",cat:"تطÙÙØ± ذاتÙ",color:"bg-memphis-sky"},{text:"Ø¬Ø±ÙØ¨ ØÙ Ù
Ø´ÙÙØ© بطرÙÙØ© Ù
ختÙÙØ© اÙÙÙÙ
â Ø§Ùإبداع ÙØ¨Ø¯Ø£ بتغÙÙØ± Ø§ÙØ²Ø§ÙÙØ©!",cat:"إبداع",color:"bg-memphis-coral"},{text:"Ø§ÙØªØ±Ø ÙÙØ±Ø© Ø¬Ø¯ÙØ¯Ø© Ù٠اجتÙ
اع٠اÙÙØ§Ø¯Ù
â Ø£ÙÙØ§Ø±Ù تستØÙ Ø£Ù ØªÙØ³Ù
ع!",cat:"إبداع",color:"bg-memphis-coral"},{text:"خصص 15 دÙÙÙØ© ÙÙØ±Ø³Ù
أ٠اÙÙØªØ§Ø¨Ø© Ø§ÙØØ±Ø© â Ø§Ùإبداع ÙØ´ØÙ Ø·Ø§ÙØªÙ ÙÙÙØªØ عÙÙÙ!",cat:"إبداع",color:"bg-memphis-coral"},{text:"Ø§ÙØ¸Ø± Ø¥ÙÙ Ù
Ø´ÙÙØ© زÙ
ÙÙ٠بعÙÙÙ Ø¬Ø¯ÙØ¯Ø© â Ù
ÙØ¸ÙØ±Ù Ø§ÙØ®Ø§Ø±Ø¬Ù ÙØ¯ ÙÙÙÙ Ø§ÙØÙ!",cat:"إبداع",color:"bg-memphis-coral"},{text:"ابÙ٠عادة Ø¥ÙØ¬Ø§Ø¨ÙØ© ØµØºÙØ±Ø© Ø¬Ø¯ÙØ¯Ø© اÙÙÙÙ
â 1% ØªØØ³ÙÙ ÙÙÙ
ÙØ§Ù ÙØµÙع ÙØ±Ùا٠ضخÙ
ا٠بعد Ø³ÙØ©! (جÙÙ
س ÙÙÙØ±)",cat:"تطÙÙØ± Ø§ÙØ°Ø§Øª",color:"bg-memphis-peach"},{text:"Ø§ÙØªØ¨ ÙØ¯ÙØ§Ù ÙØ§Ø¶ØØ§Ù بÙÙ
ÙØ°Ø¬ SMART â Ø§ÙÙØ¯Ù Ø§ÙØºØ§Ù
ض Ø£Ù
ÙÙØ©Ø ÙØ§ÙÙØ¯Ù اÙÙØ§Ø¶Ø خطة!",cat:"تطÙÙØ± Ø§ÙØ°Ø§Øª",color:"bg-memphis-peach"},{text:"خذ دÙÙÙØ© تراجع ÙÙÙØ§ Ù
Ø´Ø§Ø¹Ø±Ù â Ø§ÙÙØ¹Ù Ø§ÙØ°Ø§ØªÙ Ù٠أساس Ø§ÙØ°Ùاء Ø§ÙØ¹Ø§Ø·ÙÙ!",cat:"تطÙÙØ± Ø§ÙØ°Ø§Øª",color:"bg-memphis-peach"},{text:"بد٠'Ù
ا Ø£ÙØ¯Ø±'Ø ÙÙ 'ÙÙÙ Ø£ÙØ¯Ø±Ø' â ÙØ°Ø§ Ø§ÙØ³Ø¤Ø§Ù ÙÙØªØ عÙÙ٠عÙÙ Ø§ÙØÙÙÙ!",cat:"تطÙÙØ± Ø§ÙØ°Ø§Øª",color:"bg-memphis-peach"},{text:"Ø§ÙØ±Ø£ 10 ØµÙØØ§Øª Ù
Ù ÙØªØ§Ø¨ Ù
ÙÙÙ
اÙÙÙÙ
â Ø§ÙÙØ±Ø§Ø¡Ø© Ù٠أرخص استثÙ
ار ÙØ£Ø¹Ù٠عائد!",cat:"تطÙÙØ± Ø§ÙØ°Ø§Øª",color:"bg-memphis-peach"},{text:"Ø§ØØªÙÙ Ø¨Ø¥ÙØ¬Ø§Ø² ØµØºÙØ± ØÙÙØªÙ اÙÙÙÙ
â Ø¯Ù
Ø§ØºÙ ÙØªØ¹ÙÙ
Ù
٠اÙÙ
ÙØ§Ùأة ÙÙÙØ±Ø± Ø§ÙØ³ÙÙÙ!",cat:"تطÙÙØ± Ø§ÙØ°Ø§Øª",color:"bg-memphis-peach"},{text:"ÙÙÙØ± Ù٠شخص ÙØ§Ø¬Ø ØªØ¹Ø¬Ø¨Ù ÙØªØ³Ø§Ø¡Ù: Ù
اذا ÙØ§Ù سÙÙØ¹Ù ÙÙ Ù
ÙØ§ÙÙØ â ÙØ°Ø§ ÙÙØ³Ùع Ø£ÙÙÙ!",cat:"تطÙÙØ± Ø§ÙØ°Ø§Øª",color:"bg-memphis-peach"},{text:"Ø¬Ø±ÙØ¨ تسأ٠ChatGPT Ø£Ù Gemini ع٠Ù
Ø´ÙÙØ© Ù٠عÙ
Ù٠اÙÙÙÙ
â Ø³ØªØªÙاجأ ÙÙÙ ÙÙÙÙØ± عÙÙ٠ساعات!",cat:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù",color:"bg-cyan-100"},{text:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠Ù
٠بدÙ٠عÙÙ â ÙÙ Ù
ساعد ÙØ¶Ø§Ø¹Ù Ø¥ÙØªØ§Ø¬Ùت٠إذا Ø£ØØ³Ùت ØªÙØ¬ÙÙÙ!",cat:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù",color:"bg-cyan-100"},{text:"تعÙÙÙ
ÙÙÙ ØªÙØªØ¨ Prompt ÙØ§Ø¶Ø ÙÙ
ØØ¯Ø¯ â ÙÙÙ
ا ÙØ§Ù سؤاÙÙ Ø£Ø¯ÙØ ÙØ§Ùت إجابة AI Ø£ÙØ¶Ù!",cat:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù",color:"bg-cyan-100"},{text:"استخدÙ
AI ÙØªÙØ®ÙØµ Ø§ÙØªÙØ§Ø±ÙØ± Ø§ÙØ·ÙÙÙØ© â Ù
ا ÙØ£Ø®Ø° ساعة ÙØµÙر 5 Ø¯ÙØ§Ø¦Ù!",cat:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù",color:"bg-cyan-100"},{text:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØªØ·Ùر ÙÙ ÙÙÙ
â Ø®ØµØµ 10 Ø¯ÙØ§Ø¦Ù Ø£Ø³Ø¨ÙØ¹ÙØ§Ù ÙØªØªØ§Ø¨Ø¹ آخر Ø§ÙØ£Ø®Ø¨Ø§Ø± Ø§ÙØªÙÙÙØ©!",cat:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù",color:"bg-cyan-100"},{text:"ÙØ§ تخا٠Ù
Ù AI â Ù
Ù ÙØªØ¹ÙÙ
٠اÙÙÙÙ
سÙÙÙØ¯ Ù
جاÙ٠غداÙ. ابدأ Ø¨Ø®Ø·ÙØ© ØµØºÙØ±Ø©!",cat:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù",color:"bg-cyan-100"}],q_=[{min:0,max:0,msg:"ابدأ رØÙت٠اÙÙÙÙ
â Ø£ÙÙ ÙÙÙ
ÙÙ Ø§ÙØ£ØµØ¹Ø¨! ðª",color:"bg-gray-100",textColor:"text-black/60"},{min:1,max:2,msg:"Ø¨Ø¯Ø§ÙØ© رائعة! ØØ§Ùظ عÙ٠تسجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙÙÙ
ÙØ§Ù ð±",color:"bg-memphis-mint",textColor:"text-black"},{min:3,max:6,msg:"Ø£ÙØª عÙÙ Ø§ÙØ·Ø±ÙÙ Ø§ÙØµØÙØ! ÙØ§ ØªÙØ³Ø± Ø§ÙØ³ÙØ³ÙØ© ð¥",color:"bg-memphis-peach",textColor:"text-black"},{min:7,max:13,msg:"Ø£Ø³Ø¨ÙØ¹ ÙØ§Ù
Ù! Ø¥ÙØ¬Ø§Ø² Ø±Ø§Ø¦Ø¹Ø ÙØ§ØµÙ اÙÙ
Ø³ÙØ±Ø© ð
",color:"bg-memphis-yellow",textColor:"text-black"},{min:14,max:29,msg:"Ø£Ø³Ø¨ÙØ¹Ø§Ù Ù
تتاÙÙØ§Ù! Ø£ÙØª Ù
٠اÙÙ
تÙ
ÙØ²ÙÙ â",color:"bg-memphis-lilac",textColor:"text-black"},{min:30,max:999,msg:"Ø´ÙØ± ÙØ§Ù
Ù! Ø£ÙØª بط٠ØÙÙÙÙ
855ð",color:"bg-memphis-coral",textColor:"text-black"}];function J0e(){const{data:e,isLoading:t}=J.puzzle.current.useQuery();if(t||!e)return null;const a=e.difficulty==="easy"?"ð¢":e.difficulty==="hard"?"ð´":"ð¡";return s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:415",className:"memphis-card bg-memphis-yellow border-4 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]",children:s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:416",className:"p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:417",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:418",className:"flex-1 min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:419",className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:420",className:"text-2xl",children:"ð§©"}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:421",className:"font-black text-sm text-black bg-white border-2 border-black px-2 py-0.5 rounded-full",children:"ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:424",className:"text-xs font-bold text-black/60",children:[a," ",e.difficulty==="easy"?"سÙÙ":e.difficulty==="hard"?"صعب":"Ù
ØªÙØ³Ø·"]})]}),s.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:426",className:"font-black text-lg text-black leading-tight mb-1",children:e.titleAr}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:427",className:"text-sm font-medium text-black/70 line-clamp-2",children:e.questionAr})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:429",className:"flex-shrink-0 text-right",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:430",className:"bg-black text-white font-black text-sm px-2 py-1 rounded-lg mb-1",children:["ð ",e.pointsReward]}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:433",className:"text-xs text-black/50 font-bold",children:"ÙÙØ·Ø©"})]})]}),s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:436",href:"/weekly-puzzle",children:s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:437",className:"mt-3 w-full bg-black text-white font-black py-2.5 rounded-xl border-2 border-black hover:bg-black/80 transition-colors text-sm",children:"ØÙ اÙÙØºØ² Ø§ÙØ¢Ù â"})})]})})}function eve({streak:e,longestStreak:t,freezeStatus:a}){const{isAuthenticated:n}=Ma(),r=J.useUtils(),[i,o]=P.useState(!1),[l,c]=P.useState(null),d=J.streak.buyFreeze.useMutation({onSuccess:x=>{r.streak.mine.invalidate(),r.streak.freezeStatus.invalidate(),r.profile.me.invalidate(),x.success&&c({mode:"purchased",freezeCount:x.freezeCount})}}),m=q_.find(x=>e>=x.min&&e<=x.max)??q_[0],f=a?.protected?"ð§ Ø§ÙØÙ
Ø§ÙØ© Ø¬Ø§ÙØ²Ø©":a?.reason==="no_active_streak"?"ð§ Ø§Ø¨Ø¯Ø£ Ø³ÙØ³ÙØ© Ø£ÙÙØ§Ù":a?.canBuy?`ð§ ØªØ¬Ù
ÙØ¯ Ø§ÙØ³ÙØ³ÙØ© (${a.cost} ÙÙØ·Ø©)`:"ð§ Ø¬Ø§Ø±Ù Ø§ÙØªØÙÙ Ù
Ù Ø§ÙØÙ
Ø§ÙØ©...";Array.from({length:7},(x,b)=>b<e%7||e>=7&&b<7);const h=e>=7?7:e;return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:473",className:`memphis-card ${m.color} p-4`,children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:474",className:"flex items-center justify-between mb-3",children:[s.jsxs("h3",{"data-loc":"client/src/pages/Dashboard.tsx:475",className:"font-black text-base text-black flex items-center gap-2",children:[s.jsx(Eo,{"data-loc":"client/src/pages/Dashboard.tsx:476",className:"w-5 h-5 text-orange-500"})," Ø³ÙØ³ÙØ© Ø§ÙØ£ÙاÙ
"]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:478",className:"flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:479",className:"font-black text-2xl text-black",children:e}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:480",className:"text-xs font-bold text-black/60",children:"ÙÙÙ
"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:484",className:"flex gap-1.5 mb-3 justify-center",children:Array.from({length:7},(x,b)=>{const y=b<h;return s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:488",className:`w-8 h-8 rounded-full border-2 border-black flex items-center justify-center text-sm font-black transition-all duration-300 ${y?"bg-orange-400 shadow-[2px_2px_0px_0px_#000]":"bg-white/40"}`,children:y?"ð¥":s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:492",className:"text-black/20 text-xs",children:b+1})},b)})}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:498",className:`text-xs font-bold ${m.textColor} text-center mb-2`,children:m.msg}),t>0&&s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:501",className:"flex items-center justify-center gap-1 mt-1",children:[s.jsx(er,{"data-loc":"client/src/pages/Dashboard.tsx:502",className:"w-3.5 h-3.5 text-black/50"}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:503",className:"text-xs font-bold text-black/50",children:["أطÙÙ Ø³ÙØ³ÙØ©: ",t," ÙÙÙ
"]})]}),n&&s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:508",className:"mt-3 pt-3 border-t border-black/10",children:[s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:509",onClick:()=>a?.canBuy&&o(!0),disabled:d.isPending||!a?.canBuy,className:"w-full flex items-center justify-center gap-2 px-3 py-2 bg-white/70 border-2 border-black rounded-lg font-black text-xs shadow-[2px_2px_0px_0px_#000] hover:shadow-[1px_1px_0px_0px_#000] hover:translate-x-[1px] hover:translate-y-[1px] transition-all disabled:opacity-50",children:f}
855),a&&!a.canBuy&&s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:517",className:"mt-1.5 text-center text-[11px] font-bold text-black/60",children:a.reason==="already_protected"?"Ø³ØªÙØ³ØªÙÙ٠تÙÙØ§Ø¦Ùا٠إذا غبت ÙÙÙ
Ø§Ù ÙØ§ØØ¯Ø§Ù ÙÙØ·.":a.reason==="insufficient_points"?`ØªØØªØ§Ø¬ ${a.pointsNeeded} ÙÙØ·Ø© إضاÙÙØ©.`:"Ø£ÙÙ
Ù ÙÙÙ
Ù Ø§ÙØ£ÙÙ Ø«Ù
ÙØ¹ÙÙ Ø§ÙØÙ
Ø§ÙØ© ÙØ¨Ù Ø§ÙØºÙاب."}),d.data&&s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:522",className:`text-xs font-bold text-center mt-1.5 ${d.data.success?"text-green-700":"text-red-600"}`,children:d.data.message})]}),i&&s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:530",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:()=>o(!1),children:s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:531",className:"memphis-card p-6 w-full max-w-sm mx-4 text-center bg-white",onClick:x=>x.stopPropagation(),children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:532",className:"text-5xl mb-3",children:"ð§"}),s.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:533",className:"font-black text-xl text-black mb-2",children:"تأÙÙØ¯ تجÙ
ÙØ¯ Ø§ÙØ³ÙØ³ÙØ©"}),s.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:534",className:"text-sm font-bold text-black/60 mb-1",children:["Ø³ÙØªÙ
خصÙ
",s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:534",className:"text-black font-black",children:[a?.cost??50," ÙÙØ·Ø©"]})," Ù
Ù Ø±ØµÙØ¯Ù"]}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:535",className:"text-xs font-medium text-black/50 mb-5",children:"ØªÙØ®Ø²ÙÙ ØÙ
Ø§ÙØ© ÙØ§ØØ¯Ø© ÙÙØ·Ø ÙØªÙستÙÙ٠تÙÙØ§Ø¦Ùا٠إذا غبت ÙÙÙ
Ø§Ù ÙØ§ØØ¯Ø§Ù Ø«Ù
عدت Ù٠اÙÙÙÙ
Ø§ÙØªØ§ÙÙ."}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:536",className:"flex gap-3",children:[s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:537",onClick:()=>o(!1),className:"flex-1 px-4 py-2.5 border-2 border-black rounded-xl font-black text-sm bg-white hover:bg-gray-50 transition-colors",children:"Ø¥ÙØºØ§Ø¡"}),s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:543",onClick:()=>{d.mutate(),o(!1)},disabled:d.isPending,className:"flex-1 px-4 py-2.5 bg-black text-white border-2 border-black rounded-xl font-black text-sm shadow-[3px_3px_0px_0px_#555] hover:shadow-[1px_1px_0px_0px_#555] hover:translate-x-[2px] hover:translate-y-[2px] transition-all disabled:opacity-50",children:"تأÙÙØ¯ Ø§ÙØªØ¬Ù
ÙØ¯"})]})]})}),s.jsx(B$,{"data-loc":"client/src/pages/Dashboard.tsx:554",mode:l?.mode??null,freezeCount:l?.freezeCount,streakDays:e,onClose:()=>c(null)})]})}function tve({streak:e}){const t=J.useUtils(),[a,n]=P.useState(!1),[r,i]=P.useState(0),o=[{days:3,title:"بذرة Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©",reward:"Ø±Ø³Ø§ÙØ© تØÙÙØ² ÙÙ
Ø¶Ø§Ø¹ÙØ© Ø´Ø¹ÙØ± Ø§ÙØ¥Ùجاز"},{days:7,title:"Ø£Ø³Ø¨ÙØ¹ ثابت",reward:"ÙØ±ØµØ© شارة Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©"},{days:14,title:"زخÙ
Ù
تصاعد",reward:"ØµÙØ¯ÙÙ Ù
ÙØ§Ø¬Ø£Ø© Ø§ÙØ£Ø³Ø¨ÙعÙÙ"},{days:30,title:"Ø¨Ø·Ù Ø§ÙØ¹Ø§Ø¯Ø©",reward:"ØµÙØ¯ÙÙ Ø§ÙØ´Ùر ÙØ´Ø§Ø±Ø© Ø§ÙØªØ²Ø§Ù
Ù
Ù
ÙØ²Ø©"}],l=o.find(f=>e<f.days),c=[...o].reverse().find(f=>e>=f.days),d=J.streak.claimReward.useMutation({onSuccess:f=>{if(!f.claimed){re.info(f.reason==="already_claimed"?"استÙÙ
ت ÙØ°Ù اÙÙ
ÙØ§Ùأة Ù
Ø³Ø¨ÙØ§Ù":"ÙÙ
تص٠بعد Ø¥ÙÙ ÙØ°Ù اÙÙ
رØÙØ© Ù
Ù Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©");return}i(f.points),n(!0),t.profile.me.invalidate(),t.streak.mine.invalidate();const h=Date.now()+1800,x=()=>{ii({particleCount:6,angle:60,spread:62,origin:{x:0},colors:["#FFD166","#7C3AED","#34D399","#FF8FA3"]}),ii({particleCount:6,angle:120,spread:62,origin:{x:1},colors:["#FFD166","#7C3AED","#34D399","#FF8FA3"]}),Date.now()<h&&requestAnimationFrame(x)};x()},onError:()=>re.error("تعذر ÙØªØ ØµÙØ¯ÙÙ Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ© Ø§ÙØ¢Ù")}),m=()=>{!c||a||d.mutate({milestoneDays:c.days})};return s.jsxs("section",{"data-loc":"client/src/pages/Dashboard.tsx:601",className:"memphis-card bg-memphis-peach p-4","aria-labelledby":"streak-rewards-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:602",className:"mb-3 flex items-center justify-between gap-2",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:602",id:"streak-rewards-title",className:"flex items-center gap-2 text-base font-black text-black",children:[s.jsx(Ig,{"data-loc":"client/src/pages/Dashboard.tsx:602",className:"h-4 w-4"})," ØµÙØ¯ÙÙ Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©"]}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:602",className:"rounded-full border-2 border-black bg-white px-2 py-1 text-[11px] font-black",children:[e," ÙÙÙ
"]})]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:603",className:"space-y-2",children:o.map(f=>{const h=e>=f.days;return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:606",className:`flex items-center justify-between gap-2 rounded-lg border-2 border-black px-2 py-2 ${h?"bg-memphis-mint":"bg-white/70"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:606",children:[s.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:606",className:"text-xs font-black text-black",children:[f.days," Ø£ÙØ§Ù
· ",f.title]}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:606",className:"text-[10px] font-bold text-black/60",children:f.reward})]}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:606",className:"text-lg",children:h?"ð":"ð"})]},f.days)})}),c&&s.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:609",type:"button",onClick:m,disabled:a||d.isPending,className:"memphis-btn mt-3 w-full bg-black py-2 text-xs font-black text-white disabled:bg-memphis-mint disabled:text-black",children:[s.jsx(Ig,{"data-loc":"client/src/pages/Dashboard.tsx:609",className:"ml-1 inline h-4 w-4"})," ",d.isPending?"Ø¬Ø§Ø±Ù ÙØªØ Ø§ÙØµÙدÙÙ...":a?`تÙ
ÙØªØ Ù
ÙØ§Ùأة «${c.title}»`:`Ø§ÙØªØ Ù
ÙØ§Ùأة «${c.title}»`]}),a&&s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:610",className:"relative mt-3 overflow-hidden rounded-xl border-2 border-black bg-memphis-mint px-3 py-4 text-center",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:610",className:"absolute right-5 top-1 animate-sparkle text-2xl",children:"â¦"}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:610",className:"absolute bottom-1 left-5 animate-bounce text-xl",children:"â
"}),s.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:610",className:"animate-bounce-slow text-lg font-black text-black",children:["ð Ø£ØØ³Ùت! ",c?.reward]}),s.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:610",className:"mt-1 text-sm font-black text-purple-800",children:["+",r," ÙÙØ·Ø© أضÙÙØª Ø¥ÙÙ Ø±ØµÙØ¯Ù"]}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:610",className:"mt-1 text-xs font-bold text-black/70",children:"استÙ
ر ÙÙ Ø§ÙØªØ¹ÙÙ
ÙÙØªØ Ø§ÙØµÙدÙÙ Ø§ÙØªØ§ÙÙ."})]}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:611",className:"mt-3 text-xs font-bold text-black/70",children:l?`ÙØ§ØµÙ ${l.days-e} Ø£ÙØ§Ù
ÙÙØªØ اÙÙ
ÙØ§Ùأة Ø§ÙØªØ§ÙÙØ©.`:"ÙØªØØª جÙ
ÙØ¹ ØµÙØ§Ø¯ÙÙ Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ© Ø§ÙØØ§ÙÙØ© â Ø§Ø³ØªÙ
ر ÙØµÙاعة رÙÙ
٠اÙÙÙØ§Ø³Ù!"})]})}function ave({streak:e}){const t=P.useMemo(()=>Math.floor((Date.now()-new Date(new Date().getFullYear(),0,0).getTime())/864e5),[]),a=P.useMemo(()=>{const n=[];for(let r=0;r<3;r++)n.push(H_[(t+r*6)%H_.length]);return n},[t]);return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:628",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:629",className:"flex items-center justify-between mb-4",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:630",className:"font-black text-xl text-black flex items-center gap-2",children:[s.jsx(hu,{"data-loc":"client/src/pages/Dashboard.tsx:631",className:"w-5 h-5"})," Ù
٠زرع ØØµØ¯"]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:633",className:"flex items-center gap-2",children:[e>0&&s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:635",className:"flex items-center gap-1 bg-memphis-coral border-2 border-black rounded-full px-3 py-1 shadow-memphis",children:[s.jsx(Eo,{"data-loc":"client/src/pages/Dashboard.tsx:636",className:"w-3.5 h-3.5 text-black"}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:637",className:"font-black text-xs text-black",children:[e," ÙÙÙ
ð¥"]})]}),s.jsx(jt,{"data-loc":"client/src/pages/Dashboard.tsx:640",href:"/learning-path",children:s.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:641",className:"flex items-center gap-1 text-sm font-bold text-black underline underline-offset-2",children:[s.jsx(A6,{"data-loc":"client/src/pages/Dashboard.tsx:642",className:"w-4 h-4"})," Ù
سارÙ"]})})]})]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:647",className:"space-y-3",children:a.map((n,r)=>s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:649",className:`memphis-card ${n.color} p-4 flex items-start gap-3`,children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:650",className:"w-8 h-8 rounded-lg bg-black/10 border-2 border-black/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:s.jsx(hu,{"data-loc":"client/src/pages/Dashboard.tsx:651",className:"w-4 h-4 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:653",className:"flex-1",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:654",className:"memphis-badge-pill bg-white/60 text-xs mb-2 inline-block",children:n.cat}),s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:655",className:"font-bold text-sm text-black leading-relaxed",children:n.text})]})]},r))})]})}function nve({categoryId:e,completedLessonIds:t}){const n=J.lessons.byCategory.useQuery({categoryId:e}).data??[];if(n.length===0)return null;const r=n.filter(o=>t.has(o.id)).length,i=Math.round(r/n.length*100);return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:672",className:"mt-3 mb-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:673",className:"flex justify-between text-xs font-bold text-black/70 mb-1",children:[s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:674",children:[r,"/",n.length," درس"]}
855),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:675",children:[i,"%"]})]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:677",className:"h-2.5 bg-black/10 border border-black/20 rounded-full overflow-hidden",children:s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:678",className:"h-full bg-black rounded-full transition-all duration-700",style:{width:`${i}%`}})}),i===100&&s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:684",className:"text-xs font-black text-black mt-1",children:"â
Ø£ÙÙ
ÙØª ÙØ°Ø§ اÙÙ
ØÙر!"})]})}function sve({slug:e,size:t=20}){const a=Qg[e];return a?s.jsx(a,{"data-loc":"client/src/pages/Dashboard.tsx:693",size:t}):s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:694",className:"text-sm",children:"ð
"})}function rve({userId:e,name:t}){const a=J.badges.userSummary.useQuery({userId:e},{staleTime:6e4}),n=a.data;return s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:702",className:"absolute z-50 right-0 top-full mt-1 w-52 bg-white border-2 border-black rounded-2xl shadow-[4px_4px_0px_0px_#000] p-3 text-right pointer-events-none",children:a.isLoading?s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:704",className:"text-xs font-bold text-black/40 text-center py-2",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."}):n?s.jsxs(s.Fragment,{children:[s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:707",className:"font-black text-sm text-black mb-2",children:n.name??t??"Ù
ÙØ¸Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:708",className:"grid grid-cols-3 gap-1 mb-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:709",className:"bg-memphis-yellow/60 rounded-lg p-1 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:710",className:"font-black text-sm text-black",children:n.level}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:711",className:"text-xs font-bold text-black/50",children:"Ù
ستÙÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:713",className:"bg-memphis-mint/60 rounded-lg p-1 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:714",className:"font-black text-sm text-black",children:n.lessonsCompleted}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:715",className:"text-xs font-bold text-black/50",children:"درس"})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:717",className:"bg-memphis-lilac/60 rounded-lg p-1 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:718",className:"font-black text-sm text-black",children:n.totalPoints}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:719",className:"text-xs font-bold text-black/50",children:"ÙÙØ·Ø©"})]})]}),n.badges.length>0&&s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:723",className:"flex gap-1 mt-1 justify-center flex-wrap",children:n.badges.map((r,i)=>s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:725",className:"text-base",title:r.nameAr,children:r.icon},i))})]}):s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:731",className:"text-xs font-bold text-black/40 text-center py-2",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات"})})}function ive({champions:e,currentUserId:t}){if(e.length===0)return null;const a=["ð¥","ð¥","ð¥"],n=["bg-memphis-yellow","bg-gray-200","bg-memphis-coral"],[r,i]=P.useState(null),[o,l]=P.useState("date"),[c,d]=P.useState(null),m=e.find(h=>h.id===c)??null,f=P.useMemo(()=>{const h=[...e];return o==="points"?h.sort((x,b)=>b.totalPoints-x.totalPoints):h.sort((x,b)=>new Date(b.earnedAt).getTime()-new Date(x.earnedAt).getTime()),h},[e,o]);return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:752",children:[s.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:753",className:"font-black text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(rf,{"data-loc":"client/src/pages/Dashboard.tsx:754",className:"w-5 h-5"})," Ø£Ø¨Ø·Ø§Ù Ø§ÙØ£Ø³Ø¨Ùع"]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:756",className:"memphis-card bg-memphis-yellow p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:757",className:"flex items-center justify-between mb-3 flex-wrap gap-2",children:[s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:758",className:"text-xs font-bold text-black/60",children:'اÙÙ
ÙØ¸ÙÙÙ Ø§ÙØØ§ØµÙÙ٠عÙ٠شارة "Ø¨Ø·Ù Ø§ÙØ£Ø³Ø¨Ùع"'}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:759",className:"flex items-center gap-1",children:[s.jsx(Jue,{"data-loc":"client/src/pages/Dashboard.tsx:760",className:"w-3 h-3 text-black/50"}),s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:761",onClick:()=>l("date"),className:`text-xs font-black px-2 py-0.5 rounded border border-black transition-all ${o==="date"?"bg-black text-white":"bg-white/60 text-black hover:bg-white"}`,children:"Ø§ÙØ£ØØ¯Ø«"}),s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:762",onClick:()=>l("points"),className:`text-xs font-black px-2 py-0.5 rounded border border-black transition-all ${o==="points"?"bg-black text-white":"bg-white/60 text-black hover:bg-white"}`,children:"اÙÙÙØ§Ø·"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:765",className:"space-y-2",children:f.slice(0,5).map((h,x)=>{const b=h.id===t;return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:769",className:`relative flex items-center gap-3 p-2.5 rounded-xl border-2 border-black/20 cursor-pointer transition-all duration-200 ${b?"bg-black/10 border-black":"bg-white/60"} ${r===h.id?"shadow-[3px_3px_0px_0px_#000] scale-[1.02]":""}`,onMouseEnter:()=>i(h.id),onMouseLeave:()=>i(null),onClick:()=>d(h.id),children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:776",className:`w-8 h-8 rounded-full border-2 border-black flex items-center justify-center text-sm font-black ${n[x]??"bg-white"}`,children:a[x]??`${x+1}`}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:779",className:"flex-1 min-w-0",children:[s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:780",className:`font-bold text-sm text-black block truncate ${b?"font-black":""}`,children:[h.name??"Ù
ÙØ¸Ù",b&&s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:782",className:"text-xs font-bold text-black/60 mr-1",children:" (Ø£ÙØª)"})]}),o==="points"&&s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:784",className:"text-xs text-black/50 font-bold",children:[h.totalPoints," ÙÙØ·Ø©"]})]}),s.jsxs("svg",{"data-loc":"client/src/pages/Dashboard.tsx:786",width:"20",height:"20",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("ellipse",{"data-loc":"client/src/pages/Dashboard.tsx:787",cx:"20",cy:"36",rx:"8",ry:"3",fill:"#b8860b",opacity:"0.3"}),s.jsx("rect",{"data-loc":"client/src/pages/Dashboard.tsx:788",x:"18",y:"28",width:"4",height:"8",rx:"2",fill:"#8B6914"}),s.jsx("ellipse",{"data-loc":"client/src/pages/Dashboard.tsx:789",cx:"20",cy:"16",rx:"12",ry:"14",f
855ill:"#FFD700",stroke:"#000",strokeWidth:"2"}),s.jsx("path",{"data-loc":"client/src/pages/Dashboard.tsx:790",d:"M14 10 Q20 4 26 10",stroke:"#000",strokeWidth:"1.5",fill:"none"}),s.jsx("path",{"data-loc":"client/src/pages/Dashboard.tsx:791",d:"M12 16 Q8 12 10 8",stroke:"#000",strokeWidth:"1.5",fill:"none"}),s.jsx("path",{"data-loc":"client/src/pages/Dashboard.tsx:792",d:"M28 16 Q32 12 30 8",stroke:"#000",strokeWidth:"1.5",fill:"none"}),s.jsx("circle",{"data-loc":"client/src/pages/Dashboard.tsx:793",cx:"20",cy:"16",r:"5",fill:"#FFF9C4",stroke:"#000",strokeWidth:"1.5"}),s.jsx("text",{"data-loc":"client/src/pages/Dashboard.tsx:794",x:"20",y:"20",textAnchor:"middle",fontSize:"6",fontWeight:"bold",fill:"#000",children:"بطÙ"})]}),r===h.id&&s.jsx(rve,{"data-loc":"client/src/pages/Dashboard.tsx:796",userId:h.id,name:h.name})]},h.id)})}),e.length===0&&s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:802",className:"text-center text-black/50 font-bold text-sm py-4",children:"ÙØ§ ÙÙØ¬Ø¯ Ø£Ø¨Ø·Ø§Ù ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع بعد â Ù٠أÙÙ Ø§ÙØ¨Ø·ÙÙØ©! ð"})]}),c!==null&&s.jsx(ove,{"data-loc":"client/src/pages/Dashboard.tsx:807",userId:c,name:m?.name??null,onClose:()=>d(null)})]})}function ove({userId:e,name:t,onClose:a}){const n=J.badges.userDetails.useQuery({userId:e},{staleTime:6e4}),r=n.data;return s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:822",className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:a,children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:823",className:"absolute inset-0 bg-black/40 backdrop-blur-sm"}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:824",className:"relative bg-white border-4 border-black rounded-3xl shadow-[8px_8px_0px_0px_#000] p-6 w-full max-w-sm text-right animate-in fade-in zoom-in-95 duration-200",onClick:i=>i.stopPropagation(),children:[s.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:829",onClick:a,className:"absolute top-3 left-3 w-8 h-8 bg-black text-white rounded-full flex items-center justify-center font-black text-sm hover:bg-gray-800 transition-colors",children:"â"}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:836",className:"flex items-center gap-3 mb-5",children:[s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:837",className:"w-14 h-14 bg-memphis-yellow border-3 border-black rounded-2xl flex items-center justify-center text-2xl font-black",children:(r?.name??t??"Ù
").charAt(0)}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:840",children:[s.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:841",className:"font-black text-lg text-black",children:r?.name??t??"Ù
ÙØ¸Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:842",className:"flex gap-2 mt-1",children:[s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:843",className:"memphis-badge-pill bg-memphis-lilac text-xs",children:["اÙÙ
ستÙÙ ",r?.level??"â"]}),s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:844",className:"memphis-badge-pill bg-memphis-mint text-xs",children:[r?.totalPoints??"â"," ÙÙØ·Ø©"]})]})]})]}),n.isLoading?s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:849",className:"flex items-center justify-center py-8",children:s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:850",className:"w-8 h-8 border-4 border-black border-t-memphis-lilac rounded-full animate-spin"})}):r?s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:853",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:855",children:[s.jsxs("h4",{"data-loc":"client/src/pages/Dashboard.tsx:856",className:"font-black text-sm text-black mb-2 flex items-center gap-1",children:[s.jsx(Sn,{"data-loc":"client/src/pages/Dashboard.tsx:857",className:"w-4 h-4"})," Ø§ÙØ´Ø§Ø±Ø§Øª اÙÙ
ÙØªØ³Ø¨Ø© (",r.badges.length,")"]}),r.badges.length===0?s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:860",className:"text-xs font-bold text-black/40",children:"ÙÙ
ÙØØµÙ Ø¹Ù٠شارات بعد"}):s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:862",className:"flex flex-wrap gap-2",children:r.badges.map((i,o)=>s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:864",className:"memphis-badge-pill bg-memphis-yellow text-xs flex items-center gap-1 py-1 px-2",children:[s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:865",children:i.icon}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:866",className:"font-bold",children:i.nameAr})]},o))})]}),s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:873",children:[s.jsxs("h4",{"data-loc":"client/src/pages/Dashboard.tsx:874",className:"font-black text-sm text-black mb-2 flex items-center gap-1",children:[s.jsx(Ln,{"data-loc":"client/src/pages/Dashboard.tsx:875",className:"w-4 h-4"})," آخر Ø§ÙØ¯Ø±Ùس اÙÙ
ÙØªÙ
ÙØ© (",r.lessonsCompleted," درس)"]}),r.recentCompletions.length===0?s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:878",className:"text-xs font-bold text-black/40",children:"ÙÙ
ÙÙÙ
Ù Ø¯Ø±ÙØ³Ø§Ù بعد"}):s.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:880",className:"space-y-1.5",children:r.recentCompletions.map((i,o)=>s.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:882",className:"flex items-center justify-between bg-memphis-mint/30 rounded-lg px-3 py-1.5",children:[s.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:883",className:"text-xs font-bold text-black",children:["درس #",i.lessonId]}),s.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:884",className:"text-xs text-black/50 font-medium",children:new Date(i.completedAt).toLocaleDateString("ar-SA")})]},o))})]})]}):s.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:894",className:"text-center text-black/40 font-bold py-4",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات"})]})]})}const U_=["bg-memphis-mint","bg-memphis-lilac","bg-memphis-sky","bg-memphis-peach","bg-cyan-100","bg-rose-100"];function lve({total:e,completed:t,bgColor:a}){const n=e>0?Math.round(t/e*100):0,[r,i]=P.useState(0),o=P.useRef(!1);P.useEffect(()=>{if(!o.current&&e>0){o.current=!0;let c=0;const d=Math.ceil(n/40),m=setInterval(()=>{c+=d,c>=n?(i(n),clearInterval(m)):i(c)},25);return()=>clearInterval(m)}},[n,e]);const l=[25,50,75,100];return s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:39",className:"memphis-card p-6 mb-8 bg-white",children:[s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:40",className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:41",className:"flex items-center gap-2",children:[s.jsx(er,{"data-loc":"client/src/pages/CategoryPage.tsx:42",className:"w-5 h-5 text-black"}),s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:43",className:"font-black text-lg text-black",children:"ØªÙØ¯Ù
Ù ÙÙ ÙØ°Ø§ اÙÙ
ØÙر"})]}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:45",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:46",className:"font-black text-3xl text-black",children:[r,"%"]}),n===100&&s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:48",className:"flex items-center gap-1 memphis-badge-pill bg-memphis-yellow",children:[s.jsx(Al,{"data-loc":"client/src/pages/CategoryPage.tsx:49",className:"w-3 h-3"}),s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:50",className:"text-xs font-black",children:"Ø£ÙÙ
ÙØª اÙÙ
ØÙر!"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:57",className:"relative h-6 bg-black/5 border-2 border-black rounded-full overflow-hidden mb-3",children:[s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:58",className:"h-full bg-black rounded-full transition-all duration-700 ease-out relative overflow-hidden",style:{width:`${r}%`},children:s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:63",className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent animate-pulse"})}),l.map(c=>s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:67",className:`absolute top-0 bottom-0 w-0.5 ${n>=c?"bg-white/40":"bg-black/20"}`,style:{left:`${c}%`}},c))]}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:76",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:77",className:"flex items-center gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:78",className:"flex items-center gap-1.5",children:[s.jsx(bn,{"data-loc":"client/src/pages/CategoryPage.tsx:79",className:"w-4 h-4 text-green-600"}),s.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:80",className:"text-sm font-bold text-black",children:[t," درس Ù
ÙØªÙ
Ù"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:82",className:"flex items-center gap-1.5",children:[s.jsx(Ln,{"data-loc":"client/src/pages/CategoryPage.tsx:83",className:"w-4 h-4 text-black/40"}),s.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:84",className:"text-sm font-bold text-black/50",children:[e-t," Ù
تبÙÙÙ"]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:88",className:"flex gap-1",children:l.map(c=>s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:90",className:`w-8 h-8 rounded-lg border-2 border-black flex items-center justify-center text-xs font-black transition-all duration-300 ${n>=c?"bg-memphis-yellow text-black scale-110":"bg-black/5 text-black/30"}`,title:`${c}% Ø¥ÙØ¬Ø§Ø²`,children:c===100?"ð":`${c}%`},c))})]}),n>0&&n<100&&s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:103",className:"text-xs font-bold text-black/50 mt-3 text-center",children:n<25?"Ø¨Ø¯Ø§ÙØ© رائعة! ÙØ§ØµÙ Ø§ÙØªØ¹ÙÙ
ðª":n<50?"Ø£ÙØª ÙÙ Ø§ÙØ·Ø±ÙÙ Ø§ÙØµØÙØ! استÙ
ر ð":n<75?"Ø£ÙØ«Ø± Ù
٠اÙÙØµÙ! ÙØ±Ùبا٠Ù
٠اÙÙØ¯Ù â":"ÙÙØ·Ø© Ø£Ø®ÙØ±Ø© ÙØªÙÙÙÙ! ð¯"}),n===0&&s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:111",className:"text-xs font-bold text-black/40 mt-3 text-center",children:"ابدأ Ø£Ù٠درØ
855³ ÙØ§ÙØ·ÙÙ ÙØÙ Ø§ÙØ¥Ùجاز! ð"})]})}function cve(){const e=Ol(),t=parseInt(e.id??"0"),{isAuthenticated:a}=Ma(),n=J.categories.list.useQuery(),r=J.lessons.byCategory.useQuery({categoryId:t},{enabled:!!t}),i=J.lessons.myCompletions.useQuery(void 0,{enabled:a}),o=n.data?.find(h=>h.id===t),l=new Set((i.data??[]).map(h=>h.lessonId)),c=new Set((r.data??[]).map(h=>h.id)),d=new Set(Array.from(l).filter(h=>c.has(h))),m=n.data?.findIndex(h=>h.id===t)??0,f=U_[m%U_.length];return s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:135",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/CategoryPage.tsx:136"}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:137",className:"max-w-4xl mx-auto px-4 py-8",children:[s.jsx(jt,{"data-loc":"client/src/pages/CategoryPage.tsx:139",href:"/dashboard",children:s.jsxs("button",{"data-loc":"client/src/pages/CategoryPage.tsx:140",className:"flex items-center gap-2 font-bold text-black mb-6 hover:underline",children:[s.jsx(Wx,{"data-loc":"client/src/pages/CategoryPage.tsx:141",className:"w-4 h-4"})," Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©"]})}),o&&s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:147",className:`memphis-card ${f} p-8 mb-8`,children:[s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:148",className:"text-5xl mb-4",children:o.icon}),s.jsx("h1",{"data-loc":"client/src/pages/CategoryPage.tsx:149",className:"font-black text-3xl text-black mb-2",children:o.nameAr}),s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:150",className:"text-black/70 font-medium",children:o.descriptionAr}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:151",className:"flex items-center gap-3 mt-4",children:[s.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:152",className:"memphis-badge-pill bg-white",children:[r.data?.length??0," درس"]}),s.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:153",className:"memphis-badge-pill bg-memphis-yellow",children:[d.size," Ù
ÙØªÙ
Ù"]})]})]}),(r.data?.length??0)>0&&s.jsx(lve,{"data-loc":"client/src/pages/CategoryPage.tsx:160",total:r.data?.length??0,completed:d.size,bgColor:f}),s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:168",className:"space-y-4",children:r.isLoading?[1,2,3].map(h=>s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:170",className:"memphis-card h-24 animate-pulse bg-gray-100"},h)):r.data?.length===0?s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:172",className:"memphis-card p-10 text-center",children:[s.jsx(Ln,{"data-loc":"client/src/pages/CategoryPage.tsx:173",className:"w-12 h-12 text-black/30 mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:174",className:"font-bold text-black/50",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¯Ø±ÙØ³ ÙÙ ÙØ°Ø§ اÙÙ
ØÙر بعد"})]}):r.data?.map((h,x)=>{const b=d.has(h.id);return s.jsx(jt,{"data-loc":"client/src/pages/CategoryPage.tsx:179",href:`/lesson/${h.id}`,children:s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:180",className:`memphis-card p-5 cursor-pointer flex items-center gap-4 ${b?"opacity-70":""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:181",className:`w-12 h-12 rounded-xl ${b?"bg-green-100":f} border-2 border-black shadow-memphis flex items-center justify-center text-xl flex-shrink-0`,children:b?s.jsx(bn,{"data-loc":"client/src/pages/CategoryPage.tsx:182",className:"w-6 h-6 text-green-600"}):h.icon??`${x+1}`}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:184",className:"flex-1 min-w-0",children:[s.jsx("h3",{"data-loc":"client/src/pages/CategoryPage.tsx:185",className:"font-black text-base text-black",children:h.titleAr}),h.summaryAr&&s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:186",className:"text-sm text-black/50 mt-0.5 line-clamp-1",children:h.summaryAr}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:187",className:"flex items-center gap-3 mt-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:188",className:"flex items-center gap-1 text-xs font-bold text-black/50",children:[s.jsx(xi,{"data-loc":"client/src/pages/CategoryPage.tsx:189",className:"w-3 h-3"})," ",h.durationMinutes," Ø¯ÙØ§Ø¦Ù"]}),s.jsxs("span",{"data-loc":"client/src/pages/CategoryPage.tsx:191",className:"flex items-center gap-1 text-xs font-bold text-black/50",children:[s.jsx(Sn,{"data-loc":"client/src/pages/CategoryPage.tsx:192",className:"w-3 h-3"})," ",h.pointsReward," ÙÙØ·Ø©"]})]})]}),b&&s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:196",className:"memphis-badge-pill bg-green-100 text-green-700 text-xs",children:"Ù
ÙØªÙ
Ù â"})]})},h.id)})}),o?.slug==="self-development"&&s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:205",className:"mt-8 space-y-4",children:[s.jsx("h2",{"data-loc":"client/src/pages/CategoryPage.tsx:206",className:"font-black text-xl text-black border-b-2 border-black pb-2",children:"Ù
ÙØ²Ø§Øª خاصة بÙ
ØÙر تطÙÙØ± Ø§ÙØ°Ø§Øª"}),s.jsx(jt,{"data-loc":"client/src/pages/CategoryPage.tsx:209",href:"/diagnostic-test",children:s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:210",className:"memphis-card p-5 cursor-pointer flex items-center gap-4 bg-memphis-sky hover:shadow-[6px_6px_0px_0px_rgba(0,0,0,1)] transition-all",children:[s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:211",className:"w-14 h-14 roun
855ded-xl bg-white border-2 border-black flex items-center justify-center text-2xl flex-shrink-0 shadow-memphis",children:"ð"}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:214",className:"flex-1 min-w-0",children:[s.jsx("h3",{"data-loc":"client/src/pages/CategoryPage.tsx:215",className:"font-black text-base text-black",children:"Ø§ÙØ§Ø®ØªØ¨Ø§Ø± Ø§ÙØªØ´Ø®ÙصÙ"}),s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:216",className:"text-sm text-black/60 mt-0.5",children:"Ø§ÙØªØ´Ù ÙÙØ§Ø· ÙÙØªÙ ÙØªØØ¯Ùات٠Ù٠تطÙÙØ± Ø§ÙØ°Ø§Øª â 8 Ø£Ø³Ø¦ÙØ© Ø³Ø±ÙØ¹Ø©"}),s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:217",className:"inline-block mt-2 text-xs font-bold bg-white border border-black rounded-full px-2 py-0.5",children:"ابدأ Ø§ÙØ§Ø®ØªØ¨Ø§Ø± â"})]})]})}),s.jsx(jt,{"data-loc":"client/src/pages/CategoryPage.tsx:223",href:"/thirty-day-challenge",children:s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:224",className:"memphis-card p-5 cursor-pointer flex items-center gap-4 bg-memphis-peach hover:shadow-[6px_6px_0px_0px_rgba(0,0,0,1)] transition-all",children:[s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:225",className:"w-14 h-14 rounded-xl bg-white border-2 border-black flex items-center justify-center text-2xl flex-shrink-0 shadow-memphis",children:"ð
"}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:228",className:"flex-1 min-w-0",children:[s.jsx("h3",{"data-loc":"client/src/pages/CategoryPage.tsx:229",className:"font-black text-base text-black",children:"ØªØØ¯Ù اÙÙ30 ÙÙÙ
"}),s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:230",className:"text-sm text-black/60 mt-0.5",children:"30 Ù
ÙÙ
Ø© ÙÙÙ
ÙØ© Ù
ÙÙÙ
Ø© ÙØ¨Ùاء عادات تطÙÙØ± Ø§ÙØ°Ø§Øª â Ø£ØªÙ
ÙÙØ§ ÙØ§ØØµÙ عÙ٠شارة بطÙ!"}),s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:231",className:"inline-block mt-2 text-xs font-bold bg-white border border-black rounded-full px-2 py-0.5",children:"ابدأ Ø§ÙØªØØ¯Ù â"})]})]})})]}),o?.slug==="artificial-intelligence"&&s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:240",className:"mt-8 space-y-4",children:[s.jsx("h2",{"data-loc":"client/src/pages/CategoryPage.tsx:241",className:"font-black text-xl text-black border-b-2 border-black pb-2",children:"ð¤ Ø§Ø¨Ø¯Ø£ رØÙت٠Ù
ع Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"}),s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:242",className:"memphis-card p-5 bg-cyan-50 border-2 border-cyan-300",children:s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:243",className:"flex items-start gap-4",children:[s.jsx("div",{"data-loc":"client/src/pages/CategoryPage.tsx:244",className:"w-14 h-14 rounded-xl bg-white border-2 border-black flex items-center justify-center text-2xl flex-shrink-0 shadow-memphis",children:"ð¡"}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:247",className:"flex-1",children:[s.jsx("h3",{"data-loc":"client/src/pages/CategoryPage.tsx:248",className:"font-black text-base text-black",children:"ÙØµÙØØ© ÙØ¨Ù Ø§ÙØ¨Ø¯Ø¡"}),s.jsx("p",{"data-loc":"client/src/pages/CategoryPage.tsx:249",className:"text-sm text-black/70 mt-1",children:"ابدأ Ø¨Ø§ÙØ¯Ø±Ø³ Ø§ÙØ£ÙÙ ÙÙÙÙ
اÙÙ
ÙØ§ÙÙÙ
Ø§ÙØ£Ø³Ø§Ø³ÙØ©Ø Ø«Ù
Ø§ÙØªÙÙ ÙØ¯Ø±Ø³ Ø§ÙØ£Ø¯Ùات Ø§ÙØ¹Ù
ÙÙØ© ÙØªØ¬Ø±Ø¨Ø© ChatGPT ÙGemini Ù
باشرة٠Ù٠عÙ
ÙÙ. ÙØ§ ØªØØªØ§Ø¬ خبرة تÙÙÙØ© Ù
Ø³Ø¨ÙØ©!"}),s.jsxs("div",{"data-loc":"client/src/pages/CategoryPage.tsx:250",className:"flex gap-2 mt-3 flex-wrap",children:[s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:251",className:"memphis-badge-pill bg-cyan-100 text-xs",children:"â±ï¸ 81 دÙÙÙØ© إجÙ
Ø§ÙØ§Ù"}),s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:252",className:"memphis-badge-pill bg-memphis-yellow text-xs",children:"â 185 ÙÙØ·Ø©"}),s.jsx("span",{"data-loc":"client/src/pages/CategoryPage.tsx:253",className:"memphis-badge-pill bg-white text-xs",children:"ð¤ Ø´Ø§Ø±ØªØ§Ù Ø¹ÙØ¯ Ø§ÙØ¥ØªÙ
اÙ
"})]})]})]})})]})]})]})}const dve=[{value:"helpful",label:"Ù
ÙÙØ¯",icon:m2},{value:"try",label:"Ø´Ø¬ÙØ¹Ù٠أجرب",icon:pn},{value:"unclear",label:"Ø£ØØªØ§Ø¬ ØªÙØ¶ÙØØ§Ù",icon:hu}];function uve({lessonId:e,isAuthenticated:t}){const a=J.quiz.exampleForLesson.useMutation(),n=J.quiz.markExampleEngaged.useMutation(),r=J.quiz.rateLessonExample.useMutation(),i=P.useRef(null),[o,l]=P.useState(!1),[c,d]=P.useState(null);if(P.useEffect(()=>{!t||!e||i.current===e||(i.current=e,a.mutate({lessonId:e}))},[t,e]),P.useEffect(()=>{l(!1),d(null)},[e,a.data?.revision]),!t||!a.data?.example||a.variables?.lessonId!==e)return null;const m=o||a.data.engaged,f=c??a.data.feedback;return s.jsxs("aside",{"data-loc":"client/src/components/LessonExampleVariant.tsx:28",className:"mt-5 rounded-xl border-2 border-black bg-memphis-yellow/50 p-4 text-black","aria-label":"Ù
ثا٠تطبÙÙ٠إضاÙÙ",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonExampleVariant.tsx:29",className:"mb-2 flex items-center gap-2 font-black",children:[s.jsx(spe,{"data-loc":"client/src/components/LessonExampleVariant.tsx:29",className:"h-5 w-5"})," Ø¬Ø±ÙØ¨Ùا ÙÙ Ù
ÙÙÙÙ ",a.data.winnerVariant===a.data.variant&&s.jsx("span",{"data-loc":"client/src/components/LessonExampleVariant.tsx:29",className:"rounded-full border border-black bg-memphis-mint px-2 py-0.5 text-xs",children:"Ù
ثا٠Ù
ÙØ¶ÙÙ"})]}),s.jsx("p",{"data-loc":"client/src/components/LessonExampleVariant.tsx:30",className:"whitespace-pre-line text-sm leading-7",children:a.data.example}),s.jsx("button",{"data-loc":"client/src/components/LessonExampleVariant.tsx:31",type:"button",disabled:m||n.isPending,onClick:()=>n.mutate({lessonId:e,revision:a.data.revision},{onSuccess:()=>l(!0)}),className:"mt-3 rounded-lg border-2 border-black bg-white px-4 py-2 text-sm font-black text-black transition-transform active:scale-[.97] disabled:opacity-65",children:m?"تÙ
تسجÙ٠تطبÙÙÙ ÙÙÙ
ثا٠â":n.isPending?"جار٠تسجÙÙ Ø§ÙØªØ·Ø¨ÙÙ...":"طبÙÙØª ÙØ°Ù اÙÙÙØ±Ø©"}),n.isError&&s.jsx("p",{"data-loc":"client/src/components/LessonExampleVariant.tsx:34",role:"alert",className:"mt-2 text-xs font-bold text-red-700",children:"تعذر تسجÙÙ Ø§ÙØªØ·Ø¨ÙÙØ أعد اÙÙ
ØØ§ÙÙØ©."}),s.jsxs("div",{"data-loc":"client/src/components/LessonExampleVariant.tsx:35",className:"mt-4 border-t-2 border-black/15 pt-3",children:[s.jsx("p",{"data-loc":"client/src/components/LessonExampleVariant.tsx:35",className:"text-sm font-black",children:"ÙÙÙ ÙØ§Ù اÙÙ
Ø«Ø§ÙØ"}),s.jsx("div",{"data-loc":"client/src/components/LessonExampleVariant.tsx:36",className:"mt-2 flex flex-wrap gap-2",role:"group","aria-label":"تÙÙÙÙ
اÙÙ
Ø«Ø§Ù Ø§ÙØ¹Ù
ÙÙ",children:dve.map(({value:h,label:x,icon:b})=>s.jsxs("button",{"data-loc":"client/src/components/LessonExampleVariant.tsx:37",type:"button","aria-pressed":f===h,disabled:r.isPending,onClick:()=>r.mutate({lessonId:e,revision:a.data.revision,feedback:h},{onSuccess:()=>d(h)}),className:`flex items-center gap-1.5 rounded-lg border-2 border-black px-3 py-2 text-sm font-bold transition-transform active:scale-[.97] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black disabled:opacity-60 ${f===h?"bg-memphis-mint":"bg-white"}`,children:[s.jsx(b,{"data-loc":"client/src/components/LessonExampleVariant.tsx:38",className:"h-4 w-4","aria-hidden":"true"}),x]},h))}),r.isError&&s.jsx("p",{"data-loc":"client/src/components/LessonExampleVariant.tsx:40",role:"alert",className:"mt-2 text-xs font-bold text-red-700",children:"تعذر ØÙظ تÙÙÙÙ
ÙØ ØØ§ÙÙ Ù
جدداÙ."}),f&&s.jsx("p",{"data-loc":"client/src/components/LessonExampleVariant.tsx:41",role:"status",className:"mt-2 text-xs font-bold text-emerald-800",children:"تÙ
ØÙظ رأÙÙØ بإÙ
ÙØ§Ù٠تغÙÙØ± Ø§Ø®ØªÙØ§Ø±Ù Ù٠أ٠ÙÙØª."})]}),s.jsx("p",{"data-loc":"client/src/components/LessonExampleVariant.tsx:43",className:"mt-2 text-xs font-bold text-black/65",children:"اÙÙ
Ø´Ø§Ø±ÙØ© Ø§Ø®ØªÙØ§Ø±ÙØ©Ø ÙØ§ÙتÙÙÙÙ
ÙØ§ ÙØ¤Ø«Ø± عÙÙ ÙÙØ§Ø· اÙÙÙÙØ². ÙÙØØªØ³Ø¨ رأÙÙ Ù
رة ÙØ§ØØ¯Ø© ÙÙØ·."})]})}function pve(e){return{2:["ð¯ ÙØªØ ØªØØ¯Ùات Ù
ØªÙØ¯Ù
Ø©","â Ù
Ø¶Ø§Ø¹ÙØ© ÙÙØ§Ø· اÙÙÙÙØ²"],3:["ð Ø§ÙÙØµÙÙ ÙÙ
Ø³Ø§Ø¨ÙØ§Øª اÙÙØ±Ù","ð¡ ÙØµØ§Ø¦Ø ØØµØ±ÙØ© ÙÙÙ
ÙØ©"],4:["ð Ø®ØµÙ
10% عÙÙ Ø§ÙØ¬Ùائز","ð¥ ØªØØ¯Ùات Ø£Ø³Ø¨ÙØ¹ÙØ© Ù
Ù
ÙØ²Ø©"],5:["ð ÙÙØ¨ 'اÙÙ
تÙ
ÙØ²'","ð Ø¸ÙÙØ± ÙÙ ÙØ§Ø¦Ù
Ø© Ø§ÙØ´Ø±Ù"],6:["ð ÙØµÙÙ Ù
Ø¨ÙØ± ÙÙÙ
ØØªÙÙ Ø§ÙØ¬Ø¯Ùد","ðï¸ Ø´Ø§Ø±Ø© اÙÙ
ستÙÙ Ø§ÙØ°ÙبÙ"],7:["ð Ù
Ø¶Ø§Ø¹ÙØ© ÙÙØ§Ø· Ø§ÙØ¯Ø±Ùس","ð
Ø¯Ø¹ÙØ© ÙÙ
جÙ
ÙØ¹Ø© اÙÙØ®Ø¨Ø©"],8:["ð ØªØØ¯Ùات ÙÙÙÙØ© ØØµØ±ÙØ©","ð« Ù
ÙØ§Ùأة ÙÙØ§Ø· ÙÙÙ
ÙØ©"],9:["ð® ÙØµÙÙ ÙÙ
ØØªÙ٠سرÙ","ð Ø§ØØªÙا٠خاص باÙÙ
ستÙÙ"],10:["ð ÙÙØ¨ 'Ø§ÙØ£Ø³Ø·Ùرة'","ð Ø´Ø§Ø±Ø© Ø§ÙØ¥Ùجاز Ø§ÙØ£Ø¹ÙÙ","ð Ø¬Ø§Ø¦Ø²Ø© ØØµØ±ÙØ©"]}[e]??[`ð Ù
ستÙÙ ${e} â Ø§Ø³ØªÙ
ر ÙÙ Ø§ÙØªÙ
ÙØ²!`,"ðª Ø£Ùت ÙÙ Ø§ÙØ·Ø±ÙÙ Ø§ÙØµØ!"]}function mve(e){return e<=2?{from:"#6EE7B7",to:"#3B82F6",accent:"#10B981"}:e<=4?{from:"#FDE68A",to:"#F59E0B",accent:"#D97706"}:e<=6?{from:"#C4B5FD",to:"#7C3AED",accent:"#6D28D9"}:e<=8?{from:"#FCA5A5",to:"#EF4444",accent:"#DC2626"}:{from:"#FDE68A",to:"#F59E0B",accent:"#B45309"}}function fve(e,t,a,n){e.width=800,e.height=500;const o=e.getContext("2d"),l=o.createLinearGradient(0,0,800,500);l.addColorStop(0,n.from),l.addColorStop(1,n.to),o.fillStyle=l,o.fillRect(0,0,800,500),o.strokeStyle="rgba(0,0,0,0.25)",o.lineWidth=6,o.beginPath(),o.roundRect(20,20,760,460,24),o.stroke(),o.fillStyle="rgba(0,0,0,0.12)",o.fillRect(710,340,12,120);for(let h=0;h<6;h++)o.save(),o.translate(716,340),o.rotate((-60+h*24)*(Math.PI/180)
855),o.beginPath(),o.ellipse(0,-55,8,55,0,0,Math.PI*2),o.fill(),o.restore();o.fillRect(70,340,12,120);for(let h=0;h<6;h++)o.save(),o.translate(76,340),o.rotate((-60+h*24)*(Math.PI/180)),o.beginPath(),o.ellipse(0,-55,8,55,0,0,Math.PI*2),o.fill(),o.restore();o.fillStyle="rgba(255,255,255,0.35)",[[60,60],[740,60],[800/2,40],[120,450],[680,450]].forEach(([h,x])=>{o.save(),o.translate(h,x),o.beginPath();for(let b=0;b<10;b++){const y=b*Math.PI/5-Math.PI/2,w=b%2===0?14:6;b===0?o.moveTo(Math.cos(y)*w,Math.sin(y)*w):o.lineTo(Math.cos(y)*w,Math.sin(y)*w)}o.closePath(),o.fill(),o.restore()});const d=800/2,m=195,f=o.createRadialGradient(d,m,10,d,m,80);f.addColorStop(0,n.accent),f.addColorStop(1,n.to),o.fillStyle=f,o.beginPath(),o.arc(d,m,80,0,Math.PI*2),o.fill(),o.strokeStyle="#000",o.lineWidth=4,o.stroke(),o.fillStyle="#fff",o.font="bold 72px Calibri, Arial",o.textAlign="center",o.textBaseline="middle",o.fillText(String(t),d,m),o.fillStyle="#000",o.font="bold 36px Calibri, Arial",o.textAlign="center",o.textBaseline="alphabetic",o.fillText("ارتÙÙØª ÙÙÙ
ستÙÙ "+t+"!",d,90),o.font="bold 26px Calibri, Arial",o.fillStyle="rgba(0,0,0,0.75)",o.fillText(a,d,318),o.font="22px Calibri, Arial",o.fillStyle="rgba(0,0,0,0.6)",o.fillText("Ø§ÙØ¬Ø¯ ÙØ§ÙÙ
ثابرة تؤت٠ثÙ
Ø§Ø±ÙØ§ â ÙØ§ØµÙ Ø§ÙØªÙ
ÙØ²!",d,360),o.font="bold 18px Calibri, Arial",o.fillStyle="rgba(0,0,0,0.4)",o.fillText("Ù
ÙØµØ© جد ÙØ¬Ø¯ | Learning Hub",d,445)}function hve({color:e}){return s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:156",className:"absolute inset-0 overflow-hidden pointer-events-none","aria-hidden":!0,children:[...Array(20)].map((t,a)=>s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:158",className:"absolute animate-confetti-fall",style:{left:`${(a*17+5)%100}%`,top:"-5%",animationDelay:`${a*.13%2}s`,animationDuration:`${a*.17%1.5+1.5}s`},children:s.jsx("svg",{"data-loc":"client/src/components/LevelUpModal.tsx:168",width:a%3*4+6,height:a%3*4+6,viewBox:"0 0 24 24",fill:e,children:s.jsx("polygon",{"data-loc":"client/src/components/LevelUpModal.tsx:169",points:"12,2 15,9 22,9 16,14 18,21 12,17 6,21 8,14 2,9 9,9"})})},a))})}function gve({newLevel:e,userName:t,colors:a}){const[n,r]=P.useState(!1),[i,o]=P.useState(!1),l=P.useCallback(async()=>{r(!0);try{const c=document.createElement("canvas");fve(c,e,t,a);const d=c.toDataURL("image/png"),m=document.createElement("a");m.href=d,m.download=`Ø§ÙØ¬Ø§Ø²-Ù
ستÙÙ-${e}.png`,document.body.appendChild(m),m.click(),document.body.removeChild(m),o(!0),re.success("تÙ
تØÙ
ÙÙ Ø¨Ø·Ø§ÙØ© Ø§ÙØªÙÙØ¦Ø©! شارÙÙØ§ ÙÙ ÙØ³Ø§Ø¦Ù Ø§ÙØªÙاص٠ð"),setTimeout(()=>o(!1),3e3)}catch{re.error("ØªØ¹Ø°ÙØ± تØÙ
ÙÙ Ø§ÙØ¨Ø·Ø§ÙØ©Ø ØØ§ÙÙ Ù
رة أخرÙ")}finally{r(!1)}},[e,t,a]);return s.jsxs("button",{"data-loc":"client/src/components/LevelUpModal.tsx:208",onClick:l,disabled:n,className:"relative z-10 flex items-center gap-2 bg-white/90 text-black font-black text-sm px-5 py-2.5 rounded-full border-2 border-black shadow-[3px_3px_0px_0px_#000] hover:shadow-[1px_1px_0px_0px_#000] hover:translate-x-[2px] hover:translate-y-[2px] transition-all duration-150 active:scale-95 disabled:opacity-60",children:[i?s.jsx(Ir,{"data-loc":"client/src/components/LevelUpModal.tsx:213",className:"w-4 h-4 text-green-600"}):s.jsx(Qi,{"data-loc":"client/src/components/LevelUpModal.tsx:213",className:"w-4 h-4"}),i?"تÙ
Ø§ÙØªØÙ
ÙÙ!":n?"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ...":"تØÙ
ÙÙ Ø§ÙØ¨Ø·Ø§ÙØ©"]})}function xve({newLevel:e}){const[t,a]=P.useState(!1),n=`ð ÙØµÙت ÙÙÙ
ستÙÙ ${e} ÙÙ Ù
ÙØµØ© Ø§ÙØªØ¹ÙÙ
! Ø§ÙØ¬Ø¯ ÙØ§ÙÙ
ثابرة تؤت٠ثÙ
Ø§Ø±ÙØ§ ðª #Ù
ÙØµØ©_Ø§ÙØªØ¹ÙÙ
#Ø¥ÙØ¬Ø§Ø²`,r=async()=>{if(navigator.share)try{await navigator.share({title:"Ø¥ÙØ¬Ø§Ø² Ø¬Ø¯ÙØ¯!",text:n})}catch{}else await navigator.clipboard.writeText(n),a(!0),re.success("تÙ
ÙØ³Ø® Ø±Ø³Ø§ÙØ© Ø§ÙØ¥Ùجاز! شارÙÙØ§ Ù
ع زÙ
ÙØ§Ø¦Ù ð"),setTimeout(()=>a(!1),2500)};return s.jsxs("button",{"data-loc":"client/src/components/LevelUpModal.tsx:233",onClick:r,className:"relative z-10 flex items-center gap-2 bg-white/70 text-black font-bold text-sm px-4 py-2.5 rounded-full border-2 border-black/50 hover:border-black hover:bg-white/90 transition-all duration-150 active:scale-95",children:[t?s.jsx(Ir,{"data-loc":"client/src/components/LevelUpModal.tsx:237",className:"w-4 h-4 text-green-600"}):s.jsx(Lr,{"data-loc":"client/src/components/LevelUpModal.tsx:237",className:"w-4 h-4"}),t?"تÙ
اÙÙØ³Ø®!":"Ù
Ø´Ø§Ø±ÙØ©"]})}const V_=["Ù
ا شاء اÙÙÙ! ÙØµÙت ÙÙ
ستÙÙ Ø¬Ø¯ÙØ¯ â ÙØ°Ø§ ÙØ¯Ù عÙÙ ÙÙ
ØªÙ Ø§ÙØ¹Ø§ÙÙØ© ÙØ¥ØµØ±Ø§Ø±Ù! ð","اÙÙÙ ÙØ¨Ø§Ø±Ù! ارتÙÙØª درجة â ÙÙ Ø®Ø·ÙØ© ØªÙØ±Ø¨Ù Ù
٠اÙÙÙ
Ø©Ø ÙØ§ØµÙ! ðª","تسÙÙ
! Ù
ستÙÙ Ø¬Ø¯ÙØ¯ ÙØ¹Ù٠إÙ
ÙØ§ÙÙØ§Øª Ø¬Ø¯ÙØ¯Ø© â Ø§Ø³ØªÙ
تع باÙÙ
Ø²Ø§ÙØ§ Ø§ÙØ¬Ø¯Ùدة! ð","ÙØ§ Ø³ÙØ§Ù
عÙÙÙ! ارتÙÙØª ÙÙÙ
ستÙÙ Ø§ÙØ¬Ø¯Ùد â Ø§Ùجد ÙØ§ÙÙ
ثابرة تؤت٠ثÙ
Ø§Ø±ÙØ§! ð"];function bve({open:e,onClose:t,newLevel:a,oldLevel:n,userName:r="Ù
ÙØ¸Ù Ù
تÙ
ÙØ²"}){const[i]=P.useState(()=>Math.floor(Math.random()*V_.length)),[o,l]=P.useState(!1),c=mve(a),d=pve(a),{playLevelUp:m}=k2(),{launch:f}=ab();return P.useEffect(()=>{if(e){const h=setTimeout(()=>l(!0),300);return m(),f(3e3),()=>clearTimeout(h)}else l(!1)},[e]),s.jsx(xs,{"data-loc":"client/src/components/LevelUpModal.tsx:270",open:e,onOpenChange:h=>!h&&t(),children:s.jsx(bs,{"data-loc":"client/src/components/LevelUpModal.tsx:271",className:"max-w-md p-0 overflow-hidden border-4 border-black shadow-[8px_8px_0px_0px_#000]",style:{borderRadius:"20px"},children:s.jsxs("div",{"data-loc":"client/src/components/LevelUpModal.tsx:275",className:"relative min-h-[460px] flex flex-col items-center justify-center p-8 text-center overflow-hidden",style:{background:`linear-gradient(135deg, ${c.from}, ${c.to})`},children:[s.jsx(hve,{"data-loc":"client/src/components/LevelUpModal.tsx:279",color:c.accent}),s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:282",className:"relative z-10 mb-3",children:s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:283",className:"text-6xl animate-bounce-slow select-none",children:"â¬ï¸"})}),s.jsx("h2",{"data-loc":"client/src/components/LevelUpModal.tsx:287",className:"relative z-10 text-3xl font-black text-black mb-1 leading-tight",children:"ارتÙÙØª ÙÙÙ
ستÙÙ! ð"}),s.jsxs("div",{"data-loc":"client/src/components/LevelUpModal.tsx:292",className:"relative z-10 flex items-center gap-4 mb-4 transition-all duration-700",style:{transform:o?"scale(1)":"scale(0.5)",opacity:o?1:0},children:[s.jsxs("div",{"data-loc":"client/src/components/LevelUpModal.tsx:299",className:"flex flex-col items-center",children:[s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:300",className:"w-14 h-14 roun
855ded-full border-3 border-black/30 bg-white/40 flex items-center justify-center text-xl font-black text-black/50",children:n}),s.jsx("span",{"data-loc":"client/src/components/LevelUpModal.tsx:303",className:"text-xs font-bold text-black/50 mt-1",children:"Ø§ÙØ³Ø§Ø¨Ù"})]}),s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:305",className:"text-3xl font-black text-black",children:"â"}),s.jsxs("div",{"data-loc":"client/src/components/LevelUpModal.tsx:306",className:"flex flex-col items-center",children:[s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:307",className:"w-20 h-20 rounded-full border-4 border-black flex items-center justify-center text-3xl font-black text-white shadow-[4px_4px_0px_0px_#000]",style:{background:`linear-gradient(135deg, ${c.accent}, ${c.to})`},children:a}),s.jsx("span",{"data-loc":"client/src/components/LevelUpModal.tsx:313",className:"text-sm font-black text-black mt-1",children:"اÙÙ
ستÙÙ Ø§ÙØ¬Ø¯Ùد"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/LevelUpModal.tsx:318",className:"relative z-10 bg-white/80 backdrop-blur-sm border-2 border-black rounded-2xl p-4 mb-4 w-full shadow-[3px_3px_0px_0px_#000] transition-all duration-700 delay-200",style:{transform:o?"translateY(0)":"translateY(20px)",opacity:o?1:0},children:[s.jsx("p",{"data-loc":"client/src/components/LevelUpModal.tsx:325",className:"text-xs font-black text-gray-500 mb-2 uppercase tracking-wide",children:"Ù
Ø²Ø§ÙØ§ اÙÙ
ستÙÙ Ø§ÙØ¬Ø¯Ùد"}),s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:326",className:"space-y-1",children:d.map((h,x)=>s.jsx("div",{"data-loc":"client/src/components/LevelUpModal.tsx:328",className:"text-sm font-bold text-gray-800 text-right",children:h},x))})]}),s.jsx("p",{"data-loc":"client/src/components/LevelUpModal.tsx:336",className:"relative z-10 text-xs font-bold text-black/70 mb-4 leading-relaxed transition-all duration-700 delay-300",style:{opacity:o?1:0},children:V_[i]}),s.jsxs("div",{"data-loc":"client/src/components/LevelUpModal.tsx:344",className:"relative z-10 flex flex-col sm:flex-row gap-3 w-full justify-center",children:[s.jsx(gve,{"data-loc":"client/src/components/LevelUpModal.tsx:345",newLevel:a,userName:r,colors:c}),s.jsx(xve,{"data-loc":"client/src/components/LevelUpModal.tsx:346",newLevel:a}),s.jsx(Ie,{"data-loc":"client/src/components/LevelUpModal.tsx:347",onClick:t,className:"bg-black text-white font-black text-base px-8 py-3 rounded-full border-2 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,0.4)] hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,0.4)] hover:translate-x-[2px] hover:translate-y-[2px] transition-all duration-150 active:scale-95",children:"رائع! ÙØ§ØµÙ Ø§ÙØªÙ
ÙØ² ð"})]})]})})})}const Q_=[{value:"day",label:"اÙÙÙÙ
"},{value:"week",label:"ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"},{value:"all",label:"Ø·ÙØ§Ù اÙÙÙØª"}];function vve(e){return(e??"Ù
تعÙÙ
").trim().slice(0,2)||"Ù
ت"}function yve(e){return e===1?{label:"ð¥",className:"border-amber-500 bg-amber-100"}:e===2?{label:"ð¥",className:"border-slate-400 bg-slate-100"}:e===3?{label:"ð¥",className:"border-orange-600 bg-orange-100"}:{label:`#${e}`,className:"border-black/25 bg-white"}}function wve({lessonId:e,currentUserId:t}){const[a,n]=P.useState("all"),r=J.quiz.leaderboard.useQuery({lessonId:e,limit:5,period:a},{enabled:e>0,refetchOnMount:"always"}),i=J.quiz.leaderboardSocial.useQuery({lessonId:e},{enabled:e>0&&!!t}),o=J.quiz.toggleLeaderboardReaction.useMutation({onSuccess:async(m,f)=>{await i.refetch(),re.success(m.active?f.reactionType==="like"?"Ø£Ø±Ø³ÙØª إعجابÙ":"Ø£Ø±Ø³ÙØª تÙÙØ¦ØªÙ":"تÙ
ت Ø¥Ø²Ø§ÙØ© Ø§ÙØªÙاعÙ")},onError:m=>re.error(m.message)}),l=r.data??[],c=Q_.find(m=>m.value===a)?.label??"Ø·ÙØ§Ù اÙÙÙØª",d=P.useMemo(()=>new Map((i.data??[]).map(m=>[m.targetUserId,m])),[i.data]);return s.jsxs("section",{"data-loc":"client/src/components/QuizLeaderboard.tsx:50",className:"mx-auto mt-6 max-w-xl overflow-hidden rounded-2xl border-2 border-black bg-white shadow-memphis","aria-labelledby":"quiz-leaderboard-title",dir:"rtl",children:[s.jsxs("header",{"data-loc":"client/src/components/QuizLeaderboard.tsx:51",className:"border-b-2 border-black bg-memphis-lilac px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",className:"flex items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",className:"flex items-center gap-2",children:[s.jsx(aa,{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",className:"h-5 w-5 text-black"}),s.jsxs("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",children:[s.jsx("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",className:"text-[11px] font-black text-black/60",children:"Ø£ÙØ¶Ù Ù
ØØ§ÙÙØ© ÙÙÙ Ù
تعÙÙ
"}),s.jsx("h3",{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",id:"quiz-leaderboard-title",className:"text-base font-black text-black",children:"Ù
ØªØµØ¯Ø±Ù ÙØ°Ø§ اÙÙÙÙØ²"})]})]}),s.jsxs("span",{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",className:"inline-flex items-center gap-1 rounded-full border-2 border-black bg-memphis-yellow px-2 py-1 text-[10px] font-black text-black",children:[s.jsx(vs,{"data-loc":"client/src/components/QuizLeaderboard.tsx:52",className:"h-3.5 w-3.5"})," اÙÙÙØ§Ø· Ø«Ù
Ø§ÙØ³Ø±Ø¹Ø©"]})]}),s.jsx("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:53",className:"mt-3 grid grid-cols-3 gap-1.5",role:"tablist","aria-label":"تصÙÙØ© Ù
دة ÙÙØØ© صدارة اÙÙÙÙØ²",children:Q_.map(m=>s.jsx("button",{"data-loc":"client/src/components/QuizLeaderboard.tsx:54",type:"button",role:"tab","aria-selected":a===m.value,onClick:()=>n(m.value),className:`min-h-9 rounded-lg border-2 border-black px-2 py-1 text-[10px] font-black transition-colors ${a===m.value?"bg-black text-white":"bg-white text-black hover:bg-memphis-yellow"}`,children:m.label},m.value))})]}),r.isLoading?s.jsx("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:59",className:"space-y-2 p-4","aria-label":"جار٠تØÙ
ÙÙ Ù
تصدر٠اÙÙÙÙØ²",children:[1,2,3].map(m=>s.jsx("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:59",className:"h-16 animate-pulse rounded-xl bg-black/5"},m))}):r.isError?s.jsx("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:61",className:"p-5 text-center text-xs font-bold text-black/60",children:"تعذر تØÙ
ÙÙ ØªØ±ØªÙØ¨ اÙÙÙÙØ² ØØ§ÙÙØ§Ù."}):l.length===0?s.jsxs("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:63",className:"p-6 text-center",children:[s.jsx(Gs,{"data-loc":"client/src/components/QuizLeaderboard.tsx:63",className:"mx-auto mb-2 h-7 w-7 text-amber-600"}),s.jsxs("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:63",className:"text-sm font-black text-black",children:["Ù٠أÙÙ Ù
تصدر ",c]}),s.jsx("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:63",className:"mt-1 text-xs font-bold text-black/60",children:"ØªÙØ±ØªÙÙØ¨ اÙÙ
ØØ§ÙÙØ§Øª باÙÙÙØ§Ø· Ø«Ù
Ù
ÙØ§Ùأة Ø§ÙØ³Ø±Ø¹Ø©."})]}):s.jsx("ol",{"data-loc":"client/src/components/QuizLeaderboard.tsx:65",className:"divide-y-2 divide-black/10","aria-live":"polite",children:l.map(m=>{const f=yve(m.rank),h=m.userId===t,x=d.get(m.userId),b=!!t&&!h,y=w=>o.mutate({lessonId:e,targetUserId:m.userId,reactionType:w});return s.jsxs("li",{"data-loc":"client/src/components/QuizLeaderboard.tsx:73",className:`flex items-center gap-3 p-3 ${h?"bg-memphis-mint/40":"bg-white"}`,children:[s.jsx("span",{"data-loc":"client/src/components/QuizLeaderboard.tsx:74",className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-xl border-2 text-sm font-black text-black ${f.className}`,"aria-label":`اÙÙ
Ø±ÙØ² ${m.rank}`,children:f.label}),m.avatarUrl?s.jsx("img",{"data-loc":"client/src/components/QuizLeaderboard.tsx:75",src:m.avatarUrl,alt:`Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ© ÙÙ ${m.name??"Ù
تعÙÙ
"}`,className:"h-9 w-9 shrink-0 rounded-full border-2 border-black object-cover"}):s.jsx("span",{"data-loc":"client/src/components/QuizLeaderboard.tsx:75",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full border-2 border-black bg-memphis-sky text-[11px] font-black text-black","aria-hidden":"true",children:vve(m.n
vendor: 21,042 bytes, lines 855-858
855ame)}),s.jsxs("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"min-w-0 flex-1",children:[s.jsxs("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"truncate text-sm font-black text-black",children:[m.name??"٠تعÙÙ ",h?" (Ø£ÙØª)":""]}),s.jsxs("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[10px] font-bold text-black/60",children:[s.jsxs("span",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",children:[m.score,"/",m.totalQuestions," صØÙØ"]}),s.jsxs("span",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"inline-flex items-center gap-0.5",children:[s.jsx(au,{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"h-3 w-3"}),m.averageResponseSeconds===null?"سرعة ÙØ¯ÙÙ Ø©":`${m.averageResponseSeconds}Ø«/سؤاÙ`]}),s.jsxs("span",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",children:["Ø±ØµÙØ¯ اÙÙ ÙØµØ©: ",m.totalPoints]})]}),b&&s.jsxs("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"mt-2 flex flex-wrap gap-1.5","aria-label":`Ø§ÙØªÙاع٠٠ع ÙØªÙجة ${m.name??"اÙ٠تعÙÙ "}`,children:[s.jsxs("button",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",type:"button","aria-pressed":x?.myLikes??!1,disabled:o.isPending,onClick:()=>y("like"),className:`inline-flex min-h-8 items-center gap-1 rounded-full border-2 border-black px-2 py-1 text-[10px] font-black text-black transition-transform hover:-translate-y-0.5 active:scale-[0.97] disabled:cursor-wait disabled:opacity-60 ${x?.myLikes?"bg-memphis-mint":"bg-white hover:bg-memphis-mint/45"}`,children:[s.jsx(m2,{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"h-3.5 w-3.5"})," إعجاب ",x?.likes?`(${x.likes})`:""]}),s.jsxs("button",{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",type:"button","aria-pressed":x?.myCongratulations??!1,disabled:o.isPending,onClick:()=>y("congratulate"),className:`inline-flex min-h-8 items-center gap-1 rounded-full border-2 border-black px-2 py-1 text-[10px] font-black text-black transition-transform hover:-translate-y-0.5 active:scale-[0.97] disabled:cursor-wait disabled:opacity-60 ${x?.myCongratulations?"bg-memphis-yellow":"bg-white hover:bg-memphis-yellow/55"}`,children:[s.jsx(Epe,{"data-loc":"client/src/components/QuizLeaderboard.tsx:76",className:"h-3.5 w-3.5"})," تÙÙØ¦Ø© ",x?.congratulations?`(${x.congratulations})`:""]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizLeaderboard.tsx:77",className:"shrink-0 text-left",children:[s.jsxs("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:77",className:"text-sm font-black text-black",children:[m.pointsEarned," ÙÙØ·Ø©"]}),s.jsxs("p",{"data-loc":"client/src/components/QuizLeaderboard.tsx:77",className:"inline-flex items-center gap-0.5 text-[10px] font-black text-amber-700",children:[s.jsx(vs,{"data-loc":"client/src/components/QuizLeaderboard.tsx:77",className:"h-3 w-3"}),"+",m.speedBonus," سرعة"]})]})]},m.userId)})}),s.jsxs("footer",{"data-loc":"client/src/components/QuizLeaderboard.tsx:83",className:"border-t-2 border-black/10 bg-memphis-sky/30 px-4 py-2 text-center text-[11px] font-bold text-black/65",children:["ÙØ¹Ø±Ø¶ ÙÙØªØ± «",c,"» Ø£ÙØ¶Ù Ù ØØ§ÙÙØ© ÙÙ٠٠تعÙÙ Ø ÙØ¹Ùد Ø§ÙØªØ¹Ø§Ø¯Ù ØªØªÙØ¯Ù Ø§ÙØ³Ø±Ø¹Ø© ث٠أÙÙ Ù ØªÙØ³Ø· ÙÙØª."]})]})}var Cp={},Hk,W_;function Pve(){return W_||(W_=1,Hk=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Hk}var qk={},pc={},K_;function Tu(){if(K_)return pc;K_=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return pc.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},pc.getSymbolTotalCodewords=function(n){return t[n]},pc.getBCHDigit=function(a){let n=0;for(;a!==0;)n++,a>>>=1;return n},pc.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},pc.isKanjiModeEnabled=function(){return typeof e<"u"},pc.toSJIS=function(n){return e(n)},pc}var Uk={},$_;function SD(){return $_||($_=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+a)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})(Uk)),Uk}var Vk,X_;function jve(){if(X_)return Vk;X_=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const a=Math.floor(t/8);return(this.buffer[a]>>>7-t%8&1)===1},put:function(t,a){for(let n=0;n<a;n++)this.putBit((t>>>a-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const a=Math.floor(this.length/8);this.buffer.length<=a&&this.buffer.push(0),t&&(this.buffer[a]|=128>>>this.length%8),this.length++}},Vk=e,Vk}var Qk,Y_;function kve(){if(Y_)return Qk;Y_=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,a,n,r){const i=t*this.size+a;this.data[i]=n,r&&(this.reservedBit[i]=!0)},e.prototype.get=function(t,a){return this.data[t*this.size+a]},e.prototype.xor=function(t,a,n){this.data[t*this.size+a]^=n},e.prototype.isReserved=function(t,a){return this.reservedBit[t*this.size+a]},Qk=e,Qk}var Wk={},Z_;function Nve(){return Z_||(Z_=1,(function(e){const t=Tu().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,i=t(n),o=i===145?26:Math.ceil((i-13)/(2*r-2))*2,l=[i-7];for(let c=1;c<r-1;c++)l[c]=l[c-1]-o;return l.push(6),l.reverse()},e.getPositions=function(n){const r=[],i=e.getRowColCoords(n),o=i.length;for(let l=0;l<o;l++)for(let c=0;c<o;c++)l===0&&c===0||l===0&&c===o-1||l===o-1&&c===0||r.push([i[l],i[c]]);return r}})(Wk)),Wk}var Kk={},J_;function Ave(){if(J_)return Kk;J_=1;const e=Tu().getSymbolSize,t=7;return Kk.getPositions=function(n){const r=e(n);return[[0,0],[r-t,0],[0,r-t]]},Kk}var $k={},e9;function Sve(){return e9||(e9=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const i=r.size;let o=0,l=0,c=0,d=null,m=null;for(let f=0;f<i;f++){l=c=0,d=m=null;for(let h=0;h<i;h++){let x=r.get(f,h);x===d?l++:(l>=5&&(o+=t.N1+(l-5)),d=x,l=1),x=r.get(h,f),x===m?c++:(c>=5&&(o+=t.N1+(c-5)),m=x,c=1)}l>=5&&(o+=t.N1+(l-5)),c>=5&&(o+=t.N1+(c-5))}return o},e.getPenaltyN2=function(r){const i=r.size;let o=0;for(let l=0;l<i-1;l++)for(let c=0;c<i-1;c++){const d=r.get(l,c)+r.get(l,c+1)+r.get(l+1,c)+r.get(l+1,c+1);(d===4||d===0)&&o++}return o*t.N2},e.getPenaltyN3=function(r){const i=r.size;let o=0,l=0,c=0;for(let d=0;d<i;d++){l=c=0;for(let m=0;m<i;m++)l=l<<1&2047|r.get(d,m),m>=10&&(l===1488||l===93)&&o++,c=c<<1&2047|r.get(m,d),m>=10&&(c===1488||c===93)&&o++}return o*t.N3},e.getPenaltyN4=function(r){let i=0;const o=r.data.length;for(let c=0;c<o;c++)i+=r.data[c];return Math.abs(Math.ceil(i*100/o/5)-10)*t.N4};function a(n,r,i){switch(n){case e.Patterns.PATTERN000:return(r+i)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(r+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return r*i%2+r*i%3===0;case e.Patterns.PATTERN110:return(r*i%2+r*i%3)%2===0;case e.Patterns.PATTERN111:return(r*i%3+(r+i)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(r,i){const o=i.size;for(let l=0;l<o;l++)for(let c=0;c<o;c++)i.isReserved(c,l)||i.xor(c,l,a(r,c,l))},e.getBestMask=function(r,i){const o=Object.keys(e.Patterns).length;let l=0,c=1/0;for(let d=0;d<o;d++){i(d),e.applyMask(d,r);const m=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(d,r),m<c&&(c=m,l=d)}return l}})($k)),$k}var Y0={},t9;function Q$(){if(t9)return Y0;t9=1;const e=SD(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Y0.getBlocksCount=function(r,i){switch(i){case e.L:return t[(r-1)*4+0];case e.M:return t[(r-1)*4+1];case e.Q:return t[(r-1)*4+2];case e.H:return t[(r-1)*4+3];default:return}},Y0.getTotalCodewordsCount=function(r,i){switch(i){case e.L:return a[(r-1)*4+0];case e.M:return a[(r-1)*4+1];case e.Q:return a[(r-1)*4+2];case e.H:return a[(r-1)*4+3];default:return}},Y0}var Xk={},wh={},a9;function Cve(){if(a9)return wh;a9=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let n=1;for(let r=0;r<255;r++)e[r]=n,t[n]=r,n<<=1,n&256&&(n^=285);for(let r=255;r<512;r++)e[r]=e[r-255]})(),wh.log=function(n){if(n<1)throw new Error("log("+n+")");return t[n]},wh.exp=function(n){return e[n]},wh.mul=function(n,r){return n===0||r===0?0:e[t[n]+t[r]]},wh}var n9;function Tve(){return n9||(n9=1,(function(e){const t=Cve();e.mul=function(n,r){const i=new Uint8Array(n.length+r.length-1);for(let o=0;o<n.length;o++)for(let l=0;l<r.length;l++)i[o+l]^=t.mul(n[o],r[l]);return i},e.mod=function(n,r){let i=new Uint8Array(n);for(;i.length-r.length>=0;){const o=i[0];for(let c=0;c<r.length;c++)i[c]^=t.mul(r[c],o);let l=0;for(;l<i.length&&i[l]===0;)l++;i=i.slice(l)}return i},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})(Xk)),Xk}var Yk,s9;function Dve(){if(s9)return Yk;s9=1;const e=Tve();function t(a){this.genPoly=void 0,this.degree=a,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(n.length+this.degree);r.set(n);const i=e.mod(r,this.genPoly),o=this.degree-i.length;if(o>0){const l=new Uint8Array(this.degree);return l.set(i,o),l}return i},Yk=t,Yk}var Zk={},Jk={},eN={},r9;function W$(){return r9||(r9=1,eN.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),eN}var co={},i9;function K$(){if(i9)return co;i9=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let a="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";a=a.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+a+`)(?:.|[\r 856]))+`;co.KANJI=new RegExp(a,"g"),co.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),co.BYTE=new RegExp(n,"g"),co.NUMERIC=new RegExp(e,"g"),co.ALPHANUMERIC=new RegExp(t,"g");const r=new RegExp("^"+a+"$"),i=new RegExp("^"+e+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return co.testKanji=function(c){return r.test(c)},co.testNumeric=function(c){return i.test(c)},co.testAlphanumeric=function(c){return o.test(c)},co}var o9;function Du(){return o9||(o9=1,(function(e){const t=W$(),a=K$();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,o){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?i.ccBits[0]:o<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return a.testNumeric(i)?e.NUMERIC:a.testAlphanumeric(i)?e.ALPHANUMERIC:a.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(i,o){if(e.isValid(i))return i;try{return n(i)}catch{return o}}})(Jk)),Jk}var l9;function Eve(){return l9||(l9=1,(function(e){const t=Tu(),a=Q$(),n=SD(),r=Du(),i=W$(),o=7973,l=t.getBCHDigit(o);function c(h,x,b){for(let y=1;y<=40;y++)if(x<=e.getCapacity(y,b,h))return y}function d(h,x){return r.getCharCountIndicator(h,x)+4}function m(h,x){let b=0;return h.forEach(function(y){const w=d(y.mode,x);b+=w+y.getBitsLength()}),b}function f(h,x){for(let b=1;b<=40;b++)if(m(h,b)<=e.getCapacity(b,x,r.MIXED))return b}e.from=function(x,b){return i.isValid(x)?parseInt(x,10):b},e.getCapacity=function(x,b,y){if(!i.isValid(x))throw new Error("Invalid QR Code version");typeof y>"u"&&(y=r.BYTE);const w=t.getSymbolTotalCodewords(x),j=a.getTotalCodewordsCount(x,b),N=(w-j)*8;if(y===r.MIXED)return N;const k=N-d(y,x);switch(y){case r.NUMERIC:return Math.floor(k/10*3);case r.ALPHANUMERIC:return Math.floor(k/11*2);case r.KANJI:return Math.floor(k/13);case r.BYTE:default:return Math.floor(k/8)}},e.getBestVersionForData=function(x,b){let y;const w=n.from(b,n.M);if(Array.isArray(x)){if(x.length>1)return f(x,w);if(x.length===0)return 1;y=x[0]}else y=x;return c(y.mode,y.getLength(),w)},e.getEncodedBits=function(x){if(!i.isValid(x)||x<7)throw new Error("Invalid QR Code version");let b=x<<12;for(;t.getBCHDigit(b)-l>=0;)b^=o<<t.getBCHDigit(b)-l;return x<<12|b}})(Zk)),Zk}var tN={},c9;function Mve(){if(c9)return tN;c9=1;const e=Tu(),t=1335,a=21522,n=e.getBCHDigit(t);return tN.getEncodedBits=function(i,o){const l=i.bit<<3|o;let c=l<<10;for(;e.getBCHDigit(c)-n>=0;)c^=t<<e.getBCHDigit(c)-n;return(l<<10|c)^a},tN}var aN={},nN,d9;function Ove(){if(d9)return nN;d9=1;const e=Du();function t(a){this.mode=e.NUMERIC,this.data=a.toString()}return t.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let r,i,o;for(r=0;r+3<=this.data.length;r+=3)i=this.data.substr(r,3),o=parseInt(i,10),n.put(o,10);const l=this.data.length-r;l>0&&(i=this.data.substr(r),o=parseInt(i,10),n.put(o,l*3+1))},nN=t,nN}var sN,u9;function Rve(){if(u9)return sN;u9=1;const e=Du(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(n){this.mode=e.ALPHANUMERIC,this.data=n}return a.getBitsLength=function(r){return 11*Math.floor(r/2)+6*(r%2)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(r){let i;for(i=0;i+2<=this.data.length;i+=2){let o=t.indexOf(this.data[i])*45;o+=t.indexOf(this.data[i+1]),r.put(o,11)}this.data.length%2&&r.put(t.indexOf(this.data[i]),6)},sN=a,sN}var rN,p9;function zve(){if(p9)return rN;p9=1;const e=Du();function t(a){this.mode=e.BYTE,typeof a=="string"?this.data=new TextEncoder().encode(a):this.data=new Uint8Array(a)}return t.getBitsLength=function(n){return n*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(a){for(let n=0,r=this.data.length;n<r;n++)a.put(this.data[n],8)},rN=t,rN}var iN,m9;function _ve(){if(m9)return iN;m9=1;const e=Du(),t=Tu();function a(n){this.mode=e.KANJI,this.data=n}return a.getBitsLength=function(r){return r*13},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(n){let r;for(r=0;r<this.data.length;r++){let i=t.toSJIS(this.data[r]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[r]+` 857Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),n.put(i,13)}},iN=a,iN}var oN={exports:{}},f9;function Ive(){return f9||(f9=1,(function(e){var t={single_source_shortest_paths:function(a,n,r){var i={},o={};o[n]=0;var l=t.PriorityQueue.make();l.push(n,0);for(var c,d,m,f,h,x,b,y,w;!l.empty();){c=l.pop(),d=c.value,f=c.cost,h=a[d]||{};for(m in h)h.hasOwnProperty(m)&&(x=h[m],b=f+x,y=o[m],w=typeof o[m]>"u",(w||y>b)&&(o[m]=b,l.push(m,b),i[m]=d))}if(typeof r<"u"&&typeof o[r]>"u"){var j=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(j)}return i},extract_shortest_path_from_predecessor_list:function(a,n){for(var r=[],i=n;i;)r.push(i),a[i],i=a[i];return r.reverse(),r},find_path:function(a,n,r){var i=t.single_source_shortest_paths(a,n,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(a){var n=t.PriorityQueue,r={},i;a=a||{};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);return r.queue=[],r.sorter=a.sorter||n.default_sorter,r},default_sorter:function(a,n){return a.cost-n.cost},push:function(a,n){var r={value:a,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(oN)),oN.exports}var h9;function Lve(){return h9||(h9=1,(function(e){const t=Du(),a=Ove(),n=Rve(),r=zve(),i=_ve(),o=K$(),l=Tu(),c=Ive();function d(j){return unescape(encodeURIComponent(j)).length}function m(j,N,k){const D=[];let C;for(;(C=j.exec(k))!==null;)D.push({data:C[0],index:C.index,mode:N,length:C[0].length});return D}function f(j){const N=m(o.NUMERIC,t.NUMERIC,j),k=m(o.ALPHANUMERIC,t.ALPHANUMERIC,j);let D,C;return l.isKanjiModeEnabled()?(D=m(o.BYTE,t.BYTE,j),C=m(o.KANJI,t.KANJI,j)):(D=m(o.BYTE_KANJI,t.BYTE,j),C=[]),N.concat(k,D,C).sort(function(A,E){return A.index-E.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function h(j,N){switch(N){case t.NUMERIC:return a.getBitsLength(j);case t.ALPHANUMERIC:return n.getBitsLength(j);case t.KANJI:return i.getBitsLength(j);case t.BYTE:return r.getBitsLength(j)}}function x(j){return j.reduce(function(N,k){const D=N.length-1>=0?N[N.length-1]:null;return D&&D.mode===k.mode?(N[N.length-1].data+=k.data,N):(N.push(k),N)},[])}function b(j){const N=[];for(let k=0;k<j.length;k++){const D=j[k];switch(D.mode){case t.NUMERIC:N.push([D,{data:D.data,mode:t.ALPHANUMERIC,length:D.length},{data:D.data,mode:t.BYTE,length:D.length}]);break;case t.ALPHANUMERIC:N.push([D,{data:D.data,mode:t.BYTE,length:D.length}]);break;case t.KANJI:N.push([D,{data:D.data,mode:t.BYTE,length:d(D.data)}]);break;case t.BYTE:N.push([{data:D.data,mode:t.BYTE,length:d(D.data)}])}}return N}function y(j,N){const k={},D={start:{}};let C=["start"];for(let S=0;S<j.length;S++){const A=j[S],E=[];for(let R=0;R<A.length;R++){const F=A[R],I=""+S+R;E.push(I),k[I]={node:F,lastCount:0},D[I]={};for(let H=0;H<C.length;H++){const _=C[H];k[_]&&k[_].node.mode===F.mode?(D[_][I]=h(k[_].lastCount+F.length,F.mode)-h(k[_].lastCount,F.mode),k[_].lastCount+=F.length):(k[_]&&(k[_].lastCount=F.length),D[_][I]=h(F.length,F.mode)+4+t.getCharCountIndicator(F.mode,N))}}C=E}for(let S=0;S<C.length;S++)D[C[S]].end=0;return{map:D,table:k}}function w(j,N){let k;const D=t.getBestModeForData(j);if(k=t.from(N,D),k!==t.BYTE&&k.bit<D.bit)throw new Error('"'+j+'" cannot be encoded with mode '+t.toString(k)+`. 858 Suggested mode is: `+t.toString(D));switch(k===t.KANJI&&!l.isKanjiModeEnabled()&&(k=t.BYTE),k){case t.NUMERIC:return new a(j);case t.ALPHANUMERIC:return new n(j);case t.KANJI:return new i(j);case t.BYTE:return new r(j)}}e.fromArray=function(N){return N.reduce(function(k,D){return typeof D=="str
858ing"?k.push(w(D,null)):D.data&&k.push(w(D.data,D.mode)),k},[])},e.fromString=function(N,k){const D=f(N,l.isKanjiModeEnabled()),C=b(D),S=y(C,k),A=c.find_path(S.map,"start","end"),E=[];for(let R=1;R<A.length-1;R++)E.push(S.table[A[R]].node);return e.fromArray(x(E))},e.rawSplit=function(N){return e.fromArray(f(N,l.isKanjiModeEnabled()))}})(aN)),aN}var g9;function Fve(){if(g9)return qk;g9=1;const e=Tu(),t=SD(),a=jve(),n=kve(),r=Nve(),i=Ave(),o=Sve(),l=Q$(),c=Dve(),d=Eve(),m=Mve(),f=Du(),h=Lve();function x(S,A){const E=S.size,R=i.getPositions(A);for(let F=0;F<R.length;F++){const I=R[F][0],H=R[F][1];for(let _=-1;_<=7;_++)if(!(I+_<=-1||E<=I+_))for(let V=-1;V<=7;V++)H+V<=-1||E<=H+V||(_>=0&&_<=6&&(V===0||V===6)||V>=0&&V<=6&&(_===0||_===6)||_>=2&&_<=4&&V>=2&&V<=4?S.set(I+_,H+V,!0,!0):S.set(I+_,H+V,!1,!0))}}function b(S){const A=S.size;for(let E=8;E<A-8;E++){const R=E%2===0;S.set(E,6,R,!0),S.set(6,E,R,!0)}}function y(S,A){const E=r.getPositions(A);for(let R=0;R<E.length;R++){const F=E[R][0],I=E[R][1];for(let H=-2;H<=2;H++)for(let _=-2;_<=2;_++)H===-2||H===2||_===-2||_===2||H===0&&_===0?S.set(F+H,I+_,!0,!0):S.set(F+H,I+_,!1,!0)}}function w(S,A){const E=S.size,R=d.getEncodedBits(A);let F,I,H;for(let _=0;_<18;_++)F=Math.floor(_/3),I=_%3+E-8-3,H=(R>>_&1)===1,S.set(F,I,H,!0),S.set(I,F,H,!0)}function j(S,A,E){const R=S.size,F=m.getEncodedBits(A,E);let I,H;for(I=0;I<15;I++)H=(F>>I&1)===1,I<6?S.set(I,8,H,!0):I<8?S.set(I+1,8,H,!0):S.set(R-15+I,8,H,!0),I<8?S.set(8,R-I-1,H,!0):I<9?S.set(8,15-I-1+1,H,!0):S.set(8,15-I-1,H,!0);S.set(R-8,8,1,!0)}function N(S,A){const E=S.size;let R=-1,F=E-1,I=7,H=0;for(let _=E-1;_>0;_-=2)for(_===6&&_--;;){for(let V=0;V<2;V++)if(!S.isReserved(F,_-V)){let W=!1;H<A.length&&(W=(A[H]>>>I&1)===1),S.set(F,_-V,W),I--,I===-1&&(H++,I=7)}if(F+=R,F<0||E<=F){F-=R,R=-R;break}}}function k(S,A,E){const R=new a;E.forEach(function(V){R.put(V.mode.bit,4),R.put(V.getLength(),f.getCharCountIndicator(V.mode,S)),V.write(R)});const F=e.getSymbolTotalCodewords(S),I=l.getTotalCodewordsCount(S,A),H=(F-I)*8;for(R.getLengthInBits()+4<=H&&R.put(0,4);R.getLengthInBits()%8!==0;)R.putBit(0);const _=(H-R.getLengthInBits())/8;for(let V=0;V<_;V++)R.put(V%2?17:236,8);return D(R,S,A)}function D(S,A,E){const R=e.getSymbolTotalCodewords(A),F=l.getTotalCodewordsCount(A,E),I=R-F,H=l.getBlocksCount(A,E),_=R%H,V=H-_,W=Math.floor(R/H),B=Math.floor(I/H),K=B+1,ae=W-B,$=new c(ae);let Z=0;const O=new Array(H),Y=new Array(H);let Q=0;const U=new Uint8Array(S.buffer);for(let me=0;me<H;me++){const Ae=me<V?B:K;O[me]=U.slice(Z,Z+Ae),Y[me]=$.encode(O[me]),Z+=Ae,Q=Math.max(Q,Ae)}const oe=new Uint8Array(R);let X=0,ne,ge;for(ne=0;ne<Q;ne++)for(ge=0;ge<H;ge++)ne<O[ge].length&&(oe[X++]=O[ge][ne]);for(ne=0;ne<ae;ne++)for(ge=0;ge<H;ge++)oe[X++]=Y[ge][ne];return oe}function C(S,A,E,R){let F;if(Array.isArray(S))F=h.fromArray(S);else if(typeof S=="string"){let W=A;if(!W){const B=h.rawSplit(S);W=d.getBestVersionForData(B,E)}F=h.fromString(S,W||40)}else throw new Error("Invalid data");const I=d.getBestVersionForData(F,E);if(!I)throw new Error("The amount of data is too big to be stored in a QR Code");if(!A)A=I;else if(A<I)throw new Error(` 859The chosen QR Code version cannot contain this amount of data. 860Minimum version required to store current data is: `+I+`. 861`);const H=k(A,E,F),_=e.getSymbolSize(A),V=new n(_);return x(V,A),b(V),y(V,A),j(V,E,0),A>=7&&w(V,A),N(V,H),isNaN(R)&&(R=o.getBestMask(V,j.bind(null,V,E))),o.applyMask(R,V),j(V,E,R),{modules:V,version:A,errorCorrectionLevel:E,maskPattern:R,segments:F}}return qk.create=function(A,E){if(typeof A>"u"||A==="")throw new Error("No input text");let R=t.M,F,I;return typeof E<"u"&&(R=t.from(E.errorCorrectionLevel,t.M),F=d.from(E.version),I=o.from(E.maskPattern),E.toSJISFunc&&e.setToSJISFunction(E.toSJISFunc)),C(A,F,R,I)},qk}var lN={},cN={},x9;function $$(){return x9||(x9=1,(function(e){function t(a){if(typeof a=="number"&&(a=a.toString()),typeof a!="string")throw new Error("Color should be defined as hex string");let n=a.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+a);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(i){return[i,i]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,i=n.width&&n.width>=21?n.width:void 0,o=n.scale||4;
vendor: 4,058 bytes, lines 861-862
861return{width:i,scale:i?4:o,margin:r,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},e.getImageWidth=function(n,r){const i=e.getScale(n,r);return Math.floor((n+r.margin*2)*i)},e.qrToImageData=function(n,r,i){const o=r.modules.size,l=r.modules.data,c=e.getScale(o,i),d=Math.floor((o+i.margin*2)*c),m=i.margin*c,f=[i.color.light,i.color.dark];for(let h=0;h<d;h++)for(let x=0;x<d;x++){let b=(h*d+x)*4,y=i.color.light;if(h>=m&&x>=m&&h<d-m&&x<d-m){const w=Math.floor((h-m)/c),j=Math.floor((x-m)/c);y=f[l[w*o+j]?1:0]}n[b++]=y.r,n[b++]=y.g,n[b++]=y.b,n[b]=y.a}}})(cN)),cN}var b9;function Bve(){return b9||(b9=1,(function(e){const t=$$();function a(r,i,o){r.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=o,i.width=o,i.style.height=o+"px",i.style.width=o+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(i,o,l){let c=l,d=o;typeof c>"u"&&(!o||!o.getContext)&&(c=o,o=void 0),o||(d=n()),c=t.getOptions(c);const m=t.getImageWidth(i.modules.size,c),f=d.getContext("2d"),h=f.createImageData(m,m);return t.qrToImageData(h.data,i,c),a(f,d,m),f.putImageData(h,0,0),d},e.renderToDataURL=function(i,o,l){let c=l;typeof c>"u"&&(!o||!o.getContext)&&(c=o,o=void 0),c||(c={});const d=e.render(i,o,c),m=c.type||"image/png",f=c.rendererOpts||{};return d.toDataURL(m,f.quality)}})(lN)),lN}var dN={},v9;function Gve(){if(v9)return dN;v9=1;const e=$$();function t(r,i){const o=r.a/255,l=i+'="'+r.hex+'"';return o<1?l+" "+i+'-opacity="'+o.toFixed(2).slice(1)+'"':l}function a(r,i,o){let l=r+i;return typeof o<"u"&&(l+=" "+o),l}function n(r,i,o){let l="",c=0,d=!1,m=0;for(let f=0;f<r.length;f++){const h=Math.floor(f%i),x=Math.floor(f/i);!h&&!d&&(d=!0),r[f]?(m++,f>0&&h>0&&r[f-1]||(l+=d?a("M",h+o,.5+x+o):a("m",c,0),c=0,d=!1),h+1<i&&r[f+1]||(l+=a("h",m),m=0)):c++}return l}return dN.render=function(i,o,l){const c=e.getOptions(o),d=i.modules.size,m=i.modules.data,f=d+c.margin*2,h=c.color.light.a?"<path "+t(c.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",x="<path "+t(c.color.dark,"stroke")+' d="'+n(m,d,c.margin)+'"/>',b='viewBox="0 0 '+f+" "+f+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+b+' shape-rendering="crispEdges">'+h+x+`</svg> 862`;return typeof l=="function"&&l(null,w),w},dN}var y9;function Hve(){if(y9)return Cp;y9=1;const e=Pve(),t=Fve(),a=Bve(),n=Gve();function r(i,o,l,c,d){const m=[].slice.call(arguments,1),f=m.length,h=typeof m[f-1]=="function";if(!h&&!e())throw new Error("Callback required as last argument");if(h){if(f<2)throw new Error("Too few arguments provided");f===2?(d=l,l=o,o=c=void 0):f===3&&(o.getContext&&typeof d>"u"?(d=c,c=void 0):(d=c,c=l,l=o,o=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(l=o,o=c=void 0):f===2&&!o.getContext&&(c=l,l=o,o=void 0),new Promise(function(x,b){try{const y=t.create(l,c);x(i(y,o,c))}catch(y){b(y)}})}try{const x=t.create(l,c);d(null,i(x,o,c))}catch(x){d(x)}}return Cp.create=t.create,Cp.toCanvas=r.bind(null,a.render),Cp.toDataURL=r.bind(null,a.renderToDataURL),Cp.toString=r.bind(null,function(i,o,l){return n.render(i,l)}),Cp}var qve=Hve();const X$=Fa(qve),vy={olive:{label:"Ø²ÙØªÙÙÙ ÙØ§Ø¯Ø¦",colors:["#DCE6A6","#F7E8C1","#F7C8AB"],accent:"#5F6F36",shape:"rgba(124, 58, 237, 0.12)"},sunrise:{label:"شرÙÙ Ø¯Ø§ÙØ¦",colors:["#FDE68A","#FDBA74","#F9A8D4"],accent:"#B45309",shape:"rgba(255, 255, 255, 0.42)"},ocean:{label:"Ù ÙØ¬Ø© س٠اÙÙØ©",colors:["#BAE6FD","#C4B5FD","#99F6E4"],accent:"#075985",shape:"rgba(255, 255, 255, 0.42)"},lilac:{label:"بÙÙØ³Ø¬Ù Ù Ù ÙØ²",colors:["#DDD6FE","#FBCFE8","#BFDBFE"],accent:"#6D28D9",shape:"rgba(255, 255, 255, 0.44)"}};function FC(e){return e===1?"اÙÙ Ø±ÙØ² Ø§ÙØ£ÙÙ":e===2?"اÙÙ Ø±ÙØ² Ø§ÙØ«Ø§ÙÙ":e===3?"اÙÙ Ø±ÙØ² Ø§ÙØ«Ø§ÙØ«":e?`اÙÙ Ø±ÙØ² #${e}`:"ÙØªÙجة Ù Ù ÙØ²Ø©"}
862function w9(e){return e===1?"ð¥":e===2?"ð¥":e===3?"ð¥":"ð"}function fo(e,t,a,n,r,i){e.beginPath(),e.roundRect(t,a,n,r,i),e.closePath()}function P9(e,t,a,n,r){e.save(),e.translate(t,a),e.fillStyle=r,e.beginPath();for(let i=0;i<10;i+=1){const o=i*Math.PI/5-Math.PI/2,l=i%2===0?n:n*.45;i===0?e.moveTo(Math.cos(o)*l,Math.sin(o)*l):e.lineTo(Math.cos(o)*l,Math.sin(o)*l)}e.closePath(),e.fill(),e.restore()}function BC(e,t,a){let n=t.trim();for(;n.length>1&&e.measureText(n).width>a;)n=`${n.slice(0,-2)}â¦`;return n}function Y$(e,t,a,n,r,i,o){e.fillStyle=o,e.beginPath(),e.arc(n,r,i/2,0,Math.PI*2),e.fill(),e.fillStyle="#FFFFFF",e.font="900 34px Calibri, Arial",e.textAlign="center",e.textBaseline="middle",e.fillText((a.trim().at(0)??"Ø£").toUpperCase(),n,r+1),e.textBaseline="alphabetic",t&&(e.save(),e.beginPath(),e.arc(n,r,i/2,0,Math.PI*2),e.clip(),e.drawImage(t,n-i/2,r-i/2,i,i),e.restore(),e.beginPath(),e.arc(n,r,i/2,0,Math.PI*2),e.strokeStyle="#111827",e.lineWidth=4,e.stroke())}function Z$(e,t,a,n){const r=Math.max(a/t.width,n/t.height),i=t.width*r,o=t.height*r;e.drawImage(t,(a-i)/2,(n-o)/2,i,o)}function Uve(e,t,a=null,n=null,r=null){e.width=1200,e.height=630;const l=e.getContext("2d");if(!l)throw new Error("تعذر تجÙÙØ² Ø¨Ø·Ø§ÙØ© اÙÙ
Ø´Ø§Ø±ÙØ©");l.direction="rtl";const c=vy[t.theme??"olive"];if(n)Z$(l,n,1200,630),l.fillStyle="rgba(255, 255, 255, 0.2)",l.fillRect(0,0,1200,630);else{const y=l.createLinearGradient(0,0,1200,630);y.addColorStop(0,c.colors[0]),y.addColorStop(.55,c.colors[1]),y.addColorStop(1,c.colors[2]),l.fillStyle=y,l.fillRect(0,0,1200,630)}l.fillStyle=c.shape,l.beginPath(),l.arc(95,85,72,0,Math.PI*2),l.fill(),l.fillStyle="rgba(16, 185, 129, 0.16)",l.beginPath(),l.arc(1095,545,96,0,Math.PI*2),l.fill(),P9(l,83,495,24,"rgba(255, 255, 255, 0.72)"),P9(l,1107,110,18,"rgba(255, 255, 255, 0.7)"),fo(l,26,26,1148,578,34),l.fillStyle="rgba(255,255,255,0.74)",l.fill(),l.strokeStyle="#111827",l.lineWidth=7,l.stroke(),l.textAlign="right",l.fillStyle="#111827",l.font="900 32px Calibri, Arial",l.fillText("Ù
ÙØµØ© أثر",1124,89),l.font="700 18px Calibri, Arial",l.fillStyle="rgba(17,24,39,0.62)",l.fillText("Ù
Ù Ø¬Ø¯Ù ÙØ¬Ø¯",1124,120),fo(l,76,151,1048,172,28),l.fillStyle="#111827",l.fill(),l.textAlign="right",l.fillStyle="#FDE68A",l.font="900 20px Calibri, Arial",l.fillText("Ø£ÙÙÙØª ÙÙÙØ²Ø§Ù Ø¬Ø¯ÙØ¯Ø§Ù",1082,205),l.fillStyle="#FFFFFF",l.font="900 42px Calibri, Arial",l.fillText(BC(l,t.lessonTitle,940),1082,266),l.font="700 22px Calibri, Arial",l.fillStyle="rgba(255,255,255,0.76)",l.fillText(t.userName||"Ù
تعÙÙ
Ù
تÙ
ÙØ²",1082,300),Y$(l,a,t.userName||"Ù
تعÙÙ
Ù
تÙ
ÙØ²",125,238,88,c.accent);const d=370,m=235,f=25,h=[76,76+m+f,76+(m+f)*2];[{label:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©",value:`${t.score}/${t.totalQuestions}`,color:"#D5F5E3"},{label:"ÙÙØ§Ø· اÙÙÙÙØ²",value:`${t.pointsEarned}`,color:"#FDE68A"},{label:"Ù
ÙØ§Ùأة Ø§ÙØ³Ø±Ø¹Ø©",value:`+${t.speedBonus}`,color:"#CDEBFA"}].forEach((y,w)=>{fo(l,h[w],d,m,156,24),l.fillStyle=y.color,l.fill(),l.strokeStyle="#111827",l.lineWidth=4,l.stroke(),l.textAlign="center",l.fillStyle="#111827",l.font="900 42px Calibri, Arial",l.fillText(y.value,h[w]+m/2,d+77),l.font="800 17px Calibri, Arial",l.fillText(y.label,h[w]+m/2,d+117)});const b=875;fo(l,b,d,249,156,24),l.fillStyle="#C4B5FD",l.fill(),l.strokeStyle="#111827",l.lineWidth=4,l.stroke(),r?(fo(l,b+15,d+25,105,105,13),l.fillStyle="#FFFFFF",l.fill(),l.drawImage(r,b+20,d+30,95,95),l.textAlign="center",l.font="28px Arial",l.fillText(w9(t.rank),b+184,d+54),l.fillStyle="#111827",l.font="900 16px Calibri, Arial",l.fillText(FC(t.rank),b+184,d+86),l.font="800 14px Calibri, Arial",l.fillText("اÙ
Ø³Ø ÙØªØØ¯ÙÙ ÙØªÙجتÙ",b+184,d+116),l.font="700 12px Calibri, Arial",l.fillStyle="rgba(17,24,39,0.62)",l.fillText("ÙÙÙØ² Ù
باشر Ù
٠أثر",b+184,d+138)):(l.textAlign="center",l.font="46px Arial",l.fillText(w9(t.rank),b+124,d+65),l.fillStyle="#111827",l.font="900 21px Calibri, Arial",l.fillText(FC(t.rank),b+124,d+111),l.font="700 15px Calibri, Arial",l.fillText("ÙÙØØ© Ù
تصدر٠اÙÙÙÙØ²",b+124,d+137)),l.textAlign="center",l.fillStyle="rgba(17,24,39,0.56)",l.font="700 16px Calibri, Arial",l.fillText("تعÙÙ
⢠أجب بسرعة â¢ ØªÙØ¯ÙÙ
",1200/2,578)}function cm(e){return e?new Promise(t=>{const a=new Image;a.onload=()=>t(a),a.onerror=()=>t(null),a.src=e}):Promise.resolve(null)}async function Vve(e){const t=document.createElement("canvas"),a=e.challengeUrl?await X$.toDataURL(e.challengeUrl,{errorCorrectionLevel:"M",margin:1,width:120,color:{dar
862k:"#111827",light:"#FFFFFF"}}):null,[n,r,i]=await Promise.all([cm(e.avatarDataUrl),cm(e.backgroundDataUrl),cm(a)]);return Uve(t,e,n,r,i),new Promise((o,l)=>{t.toBlob(c=>{c?o(c):l(new Error("تعذر Ø¥ÙØ´Ø§Ø¡ ØµÙØ±Ø© اÙÙØªÙجة"))},"image/png")})}function Qve(e){return`ÙØªÙجتÙ-ÙÙ-اÙÙÙÙØ²-${e?`اÙÙ
Ø±ÙØ²-${e}`:"Ù
ÙØµØ©-أثر"}.png`}function Wve(e){return e.userScore>e.challengerScore||e.userScore===e.challengerScore&&e.userPoints>e.challengerPoints?"ØªØ¬Ø§ÙØ²Øª Ø§ÙØªØØ¯Ù!":e.userScore===e.challengerScore&&e.userPoints===e.challengerPoints?"ØªØØ¯Ù Ù
تعادÙ!":"Ø§ÙØªØØ¯Ù اÙÙØ§Ø¯Ù
Ø£ÙÙÙ"}function Kve(e,t,a=null,n=null,r=null){e.width=1200,e.height=630;const l=e.getContext("2d");if(!l)throw new Error("تعذر تجÙÙØ² Ø¨Ø·Ø§ÙØ© Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù");l.direction="rtl";const c=vy[t.theme??"olive"];if(n)Z$(l,n,1200,630),l.fillStyle="rgba(255,255,255,.24)",l.fillRect(0,0,1200,630);else{const j=l.createLinearGradient(0,0,1200,630);j.addColorStop(0,c.colors[0]),j.addColorStop(.5,c.colors[1]),j.addColorStop(1,c.colors[2]),l.fillStyle=j,l.fillRect(0,0,1200,630)}l.fillStyle=c.shape,l.beginPath(),l.arc(100,80,80,0,Math.PI*2),l.fill(),l.beginPath(),l.arc(1120,556,110,0,Math.PI*2),l.fill(),fo(l,26,26,1148,578,34),l.fillStyle="rgba(255,255,255,.78)",l.fill(),l.strokeStyle="#111827",l.lineWidth=7,l.stroke(),l.textAlign="right",l.fillStyle="#111827",l.font="900 32px Calibri, Arial",l.fillText("Ù
ÙØµØ© أثر",1124,88),l.fillStyle="rgba(17,24,39,.62)",l.font="700 18px Calibri, Arial",l.fillText("ØªØØ¯Ù ÙÙÙØ² Ù
باشر",1124,118),fo(l,76,146,1048,108,28),l.fillStyle="#111827",l.fill(),l.fillStyle="#FDE68A",l.font="900 18px Calibri, Arial",l.fillText("Ø¨Ø·Ø§ÙØ© Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù",1082,187),l.fillStyle="#FFFFFF",l.font="900 35px Calibri, Arial",l.fillText(BC(l,t.lessonTitle,940),1082,228),Y$(l,a,t.userName||"Ù
تعÙÙ
",124,200,74,c.accent);const d=Wve(t),m=d==="ØªØ¬Ø§ÙØ²Øª Ø§ÙØªØØ¯Ù!",f=m?"#A7E4C5":d==="ØªØØ¯Ù Ù
تعادÙ!"?"#FDE68A":"#FBC4B3";fo(l,420,274,360,52,24),l.fillStyle=f,l.fill(),l.strokeStyle="#111827",l.lineWidth=3,l.stroke(),l.textAlign="center",l.fillStyle="#111827",l.font="900 21px Calibri, Arial",l.fillText(d,600,308);const h=352,x=390,b=92,y=1108-x,w=(j,N,k,D,C,S,A)=>{fo(l,j,h,x,180,26),l.fillStyle=S,l.fill(),l.strokeStyle="#111827",l.lineWidth=4,l.stroke(),l.textAlign="center",l.fillStyle="rgba(17,24,39,.62)",l.font="800 16px Calibri, Arial",l.fillText(A,j+x/2,h+32),l.fillStyle="#111827",l.font="900 27px Calibri, Arial",l.fillText(BC(l,N,x-46),j+x/2,h+72),l.font="900 39px Calibri, Arial",l.fillText(`${k}/${t.totalQuestions}`,j+x/2,h+120),l.font="800 16px Calibri, Arial",l.fillText(`${D} ÙÙØ·Ø© ⢠${FC(C)}`,j+x/2,h+151)};w(b,t.challengerName||"اÙÙ
ØªØØ¯Ù",t.challengerScore,t.challengerPoints,t.challengerRank,"#FDE68A","ØµØ§ØØ¨ Ø§ÙØªØØ¯Ù"),w(y,t.userName||"Ø£ÙØª",t.userScore,t.userPoints,t.userRank,m?"#B8E7CD":"#DDD6FE","اÙÙ
ØªØØ¯Ù Ø§ÙØ¢Ù"),l.textAlign="center",l.fillStyle="#111827",l.font="900 31px Calibri, Arial",l.fillText("VS",1200/2,h+108),r&&(fo(l,536,530,128,72,16),l.fillStyle="#FFFFFF",l.fill(),l.strokeStyle="#111827",l.lineWidth=3,l.stroke(),l.drawImage(r,544,538,56,56),l.textAlign="right",l.fillStyle="#111827",l.font="900 14px Calibri, Arial",l.fillText("اÙ
Ø³Ø ÙØªØØ¯Ù٠اÙÙØªÙجة",654,560),l.font="700 12px Calibri, Arial",l.fillText("ÙÙÙØ² Ù
باشر Ù
٠أثر",654,582))}async function $ve(e){const t=document.createElement("canvas"),a=e.challengeUrl?await X$.toDataURL(e.challengeUrl,{errorCorrectionLevel:"M",margin:1,width:120,color:{dark:"#111827",light:"#FFFFFF"}}):null,[n,r,i]=await Promise.all([cm(e.avatarDataUrl),cm(e.backgroundDataUrl),cm(a)]);return Kve(t,e,n,r,i),new Promise((o,l)=>{t.toBlob(c=>{c?o(c):l(new Error("تعذر Ø¥ÙØ´Ø§Ø¡ Ø¨Ø·Ø§ÙØ© Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù"))},"image/png")})}function Xve(){return"Ù
ÙØ§Ø±ÙØ©-ØªØØ¯Ù-اÙÙÙÙØ²-Ù
ÙØµØ©-أثر.png"}const Yve=2*1024*1024,Zve=4*1024*1024;function Jve({open:e,onOpenChange:t,initialTheme:a="olive",isPreparing:n=!1,variant:r="result",onConfirm:i}){const[o,l]=P.useState(a),[c,d]=P.useState(null),[m,f]=P.useState(null),h=P.useRef(null),x=P.useRef(null),b=vy[o],y=P.useMemo(()=>`linear-gradient(135deg, ${b.colors[0]}, ${b.colors[1]}, ${b.colors[2]})`,[b]),w=P.useMemo(()=>m?{backgroundImage:`linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.12)), url(${m})`,backgroundSize:"cover",backgroundPosition:"center"}:{background:y},[m,y]),j=()=>
862{l(a),d(null),f(null),h.current&&(h.current.value=""),x.current&&(x.current.value="")},N=(k,D,C)=>{if(!k)return;if(!k.type.startsWith("image/")){re.error("اختر ØµÙØ±Ø© Ø¨ØµÙØºØ© Ù
دعÙÙ
Ø©");return}if(k.size>D){re.error(`Ø§ÙØµÙرة ÙØ¨ÙØ±Ø©Ø Ø§Ø®ØªØ± Ù
ÙÙØ§Ù Ø¨ØØ¬Ù
${Math.round(D/1024/1024)} Ù
ÙØ¬Ø§Ø¨Ø§Ùت أ٠أÙÙ`);return}const S=new FileReader;S.onload=()=>C(typeof S.result=="string"?S.result:null),S.onerror=()=>re.error("تعذر ÙØ±Ø§Ø¡Ø© Ø§ÙØµÙØ±Ø©Ø Ø¬Ø±ÙØ¨ Ù
ÙÙØ§Ù آخر"),S.readAsDataURL(k)};return s.jsx(xs,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:62",open:e,onOpenChange:t,children:s.jsxs(bs,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:63",dir:"rtl",className:"max-h-[90vh] max-w-lg overflow-y-auto border-4 border-black bg-[#fffaf2] p-0 shadow-[8px_8px_0_0_#000] sm:rounded-2xl",children:[s.jsx("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:64",className:"border-b-2 border-black bg-memphis-yellow/80 p-5",children:s.jsxs(ml,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:65",children:[s.jsxs(Ui,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:65",className:"flex items-center gap-2 text-xl font-black text-black",children:[s.jsx(az,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:65",className:"h-5 w-5"})," ",r==="challenge"?"Ø®ØµÙØµ Ø¨Ø·Ø§ÙØ© Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù":"Ø®ØµÙØµ Ø¨Ø·Ø§ÙØ© ÙØªÙجتÙ"]}),s.jsx(lf,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:65",className:"pt-1 text-xs font-bold text-black/65",children:r==="challenge"?"ستعرض Ø§ÙØ¨Ø·Ø§ÙØ© ÙØªÙجت٠Ù
ÙØ§Ø¨Ù ÙØªÙجة زÙ
ÙÙÙØ Ù
ع رÙ
ز QR ÙØªÙØ³ÙØ¹ Ø§ÙØªØØ¯Ù.":"اختر ÙÙÙØ§Ù Ø£Ù Ø£Ø¶Ù ØµÙØ±Ø§Ù Ù
ØÙÙØ©Ø ÙÙØ¶Ø§Ù رÙ
ز QR تÙÙØ§Ø¦Ùا٠ÙÙØªØØ¯Ù Ø§ÙØ¢Ø®Ø±ÙÙ ÙØªÙØ¬ØªÙ Ø¹ÙØ¯ اÙÙ
سØ."})]})}),s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:67",className:"space-y-5 p-5",children:[s.jsxs("section",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68","aria-labelledby":"share-theme-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",className:"mb-2 flex items-center gap-2",children:[s.jsx(az,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",className:"h-4 w-4"}),s.jsx("h3",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",id:"share-theme-title",className:"font-black text-black",children:"ÙÙÙ Ø§ÙØ®ÙÙÙØ©"})]}),s.jsx("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",className:"grid grid-cols-2 gap-3",children:Object.entries(vy).map(([k,D])=>s.jsxs("button",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",type:"button",onClick:()=>l(k),"aria-pressed":o===k,className:`group relative min-h-20 rounded-xl border-2 p-3 text-right font-black text-black transition-transform duration-150 ease-out hover:-translate-y-0.5 hover:shadow-[3px_3px_0_0_#000] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black active:scale-[0.97] motion-reduce:transform-none ${o===k?"border-black shadow-[3px_3px_0_0_#000]":"border-black/45"}`,style:{background:`linear-gradient(135deg, ${D.colors[0]}, ${D.colors[1]}, ${D.colors[2]})`},children:[s.jsx("span",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",className:"block text-sm",children:D.label}),o===k&&s.jsx("span",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",className:"absolute left-2 top-2 flex h-5 w-5 items-center justify-center rounded-full border-2 border-black bg-white",children:s.jsx(Ir,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:68",className:"h-3 w-3"})})]},k))})]}),s.jsxs("section",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70","aria-labelledby":"share-background-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"mb-2 flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCu
862stomizer.tsx:70",className:"flex items-center gap-2",children:[s.jsx(oy,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"h-4 w-4"}),s.jsx("h3",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",id:"share-background-title",className:"font-black text-black",children:"ØµÙØ±Ø© Ø®ÙÙÙØ© Ù
خصصة"})]}),m&&s.jsxs("button",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",type:"button",onClick:()=>{f(null),x.current&&(x.current.value="")},className:"inline-flex items-center gap-1 rounded-full border-2 border-black bg-white px-2 py-1 text-[10px] font-black text-black transition-transform duration-150 hover:bg-memphis-peach active:scale-[0.97]",children:[s.jsx(Zn,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"h-3 w-3"})," Ø¥Ø²Ø§ÙØ©"]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"rounded-xl border-2 border-dashed border-black/45 bg-white/70 p-3",children:[s.jsx("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"flex h-20 items-center justify-center overflow-hidden rounded-lg border-2 border-black",style:w,children:!m&&s.jsx("span",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"rounded-full border-2 border-black bg-white/75 px-3 py-1 text-xs font-black text-black",children:"Ø®ÙÙÙØ© Ø¬Ø§ÙØ²Ø©"})}),s.jsx("p",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"mt-2 text-xs font-bold text-black/70",children:"ØªÙØ³ØªØ®Ø¯Ù
Ø§ÙØµÙرة ÙÙ ÙØ°Ù Ø§ÙØ¨Ø·Ø§ÙØ© ÙÙØ· ÙØªÙØ¹Ø§ÙØ¬ عÙÙ Ø¬ÙØ§Ø²ÙØ ÙØ§ ØªÙØ®Ø²ÙÙÙ ÙÙ ØØ³Ø§Ø¨Ù."}),s.jsxs("button",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",type:"button",onClick:()=>x.current?.click(),className:"memphis-btn mt-2 inline-flex items-center gap-1.5 bg-memphis-peach px-3 py-1.5 text-xs font-black text-black",children:[s.jsx(dy,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",className:"h-3.5 w-3.5"})," اختر Ø®ÙÙÙØ©"]}),s.jsx("input",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:70",ref:x,type:"file",accept:"image/png,image/jpeg,image/webp",className:"sr-only",onChange:k=>N(k.target.files?.[0],Zve,f)})]})]}),s.jsxs("section",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72","aria-labelledby":"share-avatar-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"mb-2 flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"flex items-center gap-2",children:[s.jsx(oy,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"h-4 w-4"}),s.jsx("h3",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",id:"share-avatar-title",className:"font-black text-black",children:"ØµÙØ±Ø© رÙ
Ø²ÙØ© Ø§Ø®ØªÙØ§Ø±ÙØ©"})]}),c&&s.jsxs("button",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",type:"button",onClick:()=>{d(null),h.current&&(h.current.value="")},className:"inline-flex items-center gap-1 rounded-full border-2 border-black bg-white px-2 py-1 text-[10px] font-black text-black transition-transform duration-150 hover:bg-memphis-peach active:scale-[0.97]",children:[s.jsx(Zn,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"h-3 w-3"})," Ø¥Ø²Ø§ÙØ©"]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"flex flex-wrap items-center gap-3 rounded-xl border-2 border-dashed border-black/45 bg-white/70 p-3",children:[s.jsx("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-full border-2 border-black",style:{background:y},children:c?s.jsx("img",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",src:c,alt:"Ù
عاÙÙØ© Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ©",className:"h-full w-full object-cover"}):s.jsx("span",{"data-loc":"client/src/components/QuizShareCardCu
862stomizer.tsx:72",className:"text-xl font-black text-black/65",children:"Ø£"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"min-w-0 flex-1",children:[s.jsx("p",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"text-xs font-bold text-black/70",children:"ØªØ¹Ø§ÙØ¬ Ø§ÙØµÙرة عÙÙ Ø¬ÙØ§Ø²Ù ÙÙØ·Ø ÙÙØ§ تØÙظ Ù٠اÙÙ
ÙÙ Ø§ÙØ´Ø®ØµÙ."}),s.jsxs("button",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",type:"button",onClick:()=>h.current?.click(),className:"memphis-btn mt-2 inline-flex items-center gap-1.5 bg-memphis-sky px-3 py-1.5 text-xs font-black text-black",children:[s.jsx(dy,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",className:"h-3.5 w-3.5"})," اختر ØµÙØ±Ø©"]}),s.jsx("input",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:72",ref:h,type:"file",accept:"image/png,image/jpeg,image/webp",className:"sr-only",onChange:k=>N(k.target.files?.[0],Yve,d)})]})]})]}),s.jsxs("section",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74","aria-label":"Ù
عاÙÙØ© Ø¨Ø·Ø§ÙØ© اÙÙ
Ø´Ø§Ø±ÙØ©",children:[s.jsx("p",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74",className:"mb-2 text-xs font-black text-black/65",children:"Ù
عاÙÙØ© Ø§ÙØ¨Ø·Ø§ÙØ©"}),s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74",className:"relative overflow-hidden rounded-2xl border-2 border-black p-5 shadow-[3px_3px_0_0_#000]",style:w,children:[s.jsx("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74",className:"absolute left-4 top-4 h-11 w-11 overflow-hidden rounded-full border-2 border-black bg-white/65",children:c?s.jsx("img",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74",src:c,alt:"",className:"h-full w-full object-cover"}):s.jsx("span",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74",className:"flex h-full items-center justify-center font-black",children:"Ø£"})}),s.jsx("p",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74",className:"text-lg font-black text-black",children:r==="challenge"?"Ù
ÙØ§Ø±ÙØ© ØªØØ¯Ù Ù
Ù
ÙØ²Ø©":"ÙØªÙجة Ù
Ù
ÙØ²Ø©"}),s.jsx("p",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:74",className:"mt-1 text-xs font-bold text-black/65",children:r==="challenge"?"Ø³ØªØ¸ÙØ± ÙØªÙجت٠ÙÙØªÙجة زÙ
ÙÙÙ ÙÙØ§.":"Ø³ØªØ¸ÙØ± ÙØªÙجة اÙÙÙÙØ² ÙØªØ±ØªÙب٠ÙÙØ§."})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:76",className:"flex flex-col-reverse gap-2 sm:flex-row sm:justify-between",children:[s.jsxs("button",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:76",type:"button",onClick:j,disabled:n,className:"inline-flex items-center justify-center gap-2 rounded-xl border-2 border-black bg-white px-4 py-2.5 text-sm font-black text-black transition-transform duration-150 hover:bg-memphis-peach active:scale-[0.97] disabled:opacity-60",children:[s.jsx(u2,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:76",className:"h-4 w-4"})," إعادة Ø§ÙØ¶Ø¨Ø·"]}),s.jsxs("button",{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:76",type:"button",onClick:()=>i({theme:o,avatarDataUrl:c,backgroundDataUrl:m}),disabled:n,className:"memphis-btn inline-flex items-center justify-center gap-2 bg-memphis-mint px-5 py-2.5 text-sm font-black text-black disabled:cursor-wait disabled:opacity-60",children:[s.jsx(Ir,{"data-loc":"client/src/components/QuizShareCardCustomizer.tsx:76",className:"h-4 w-4"}),n?"جار٠تجÙÙØ² Ø§ÙØµÙرة...":r==="challenge"?"Ø£ÙØ´Ø¦ Ø¨Ø·Ø§ÙØ© اÙÙ
ÙØ§Ø±ÙØ© ÙØ´Ø§Ø±Ù":"Ø£ÙØ´Ø¦ Ø§ÙØ¨Ø·Ø§ÙØ© ÙØ´Ø§Ø±Ù"]})]})]})]})})}function eye({lessonId:e}){const{isAuthenticated:t}=Ma(),[a,n]=P.useState(null),r=J.useUtils(),i=t?J.lessons.ratingStatsAuth.useQuery({lessonId:e}):J.lessons.ratingStats.useQuery({lessonId:e}),o=J.lessons.rate.useMutation({onSuccess:()=>{re.success("Ø´ÙØ±Ø§Ù عÙ٠تÙÙÙÙ
Ù! â"),r.lessons.ratingStatsAuth.invalidate(),r.lessons.ratingStats.invalidate()},onError:x=>re.error(x.message)}),l=i.data,c=l?.userRating??null,d=l?.averageRating??0,m=l?.totalRatings??0,f=a??c??0,h=x=>
862{if(!t){re.info("سجÙ٠دخÙÙÙ ÙØªÙÙÙÙ Ø§ÙØ¯Ø±Ø³");return}o.mutate({lessonId:e,rating:x})};return s.jsxs("div",{"data-loc":"client/src/components/StarRating.tsx:45",className:"memphis-card p-5 mt-6",children:[s.jsxs("div",{"data-loc":"client/src/components/StarRating.tsx:46",className:"flex items-center justify-between flex-wrap gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/StarRating.tsx:47",children:[s.jsx("h3",{"data-loc":"client/src/components/StarRating.tsx:48",className:"font-black text-black text-sm mb-1",children:"ÙÙÙÙ ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³"}),s.jsx("p",{"data-loc":"client/src/components/StarRating.tsx:49",className:"text-xs text-black/50 font-medium",children:m>0?`Ù ØªÙØ³Ø· Ø§ÙØªÙÙÙÙ : ${d} â (${m} تÙÙÙÙ )`:"Ù٠أÙÙ Ù Ù ÙÙÙÙÙ ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³"})]}),s.jsx("div",{"data-loc":"client/src/components/StarRating.tsx:55",className:"flex items-center gap-1",children:[1,2,3,4,5].map(x=>s.jsx("button",{"data-loc":"client/src/components/StarRating.tsx:57",onClick:()=>h(x),onMouseEnter:()=>n(x),onMouseLeave:()=>n(null),disabled:o.isPending,className:"transition-transform hover:scale-125 active:scale-95 disabled:opacity-50","aria-label":`تÙÙÙÙ ${x} ÙØ¬ÙÙ `,children:s.jsx(Sn,{"data-loc":"client/src/components/StarRating.tsx:66",className:`w-8 h-8 transition-colors ${x<=f?"fill-yellow-400 text-yellow-400":"fill-transparent text-gray-300"}`})},x))})]}),c&&s.jsxs("p",{"data-loc":"client/src/components/StarRating.tsx:78",className:"text-xs text-green-600 font-bold mt-2 text-center",children:["â ÙÙÙ٠ت ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³ ب٠",c," ÙØ¬ÙÙ â ÙÙ ÙÙ٠تغÙÙØ± تÙÙÙÙ Ù"]})]})}var J$="AlertDialog",[tye]=Pi(J$,[UW]),Rl=UW(),eX=e=>{const{__scopeAlertDialog:t,...a}=e,n=Rl(t);return s.jsx(L6,{...n,...a,modal:!0})};eX.displayName=J$;var aye="AlertDialogTrigger",tX=P.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...n}=e,r=Rl(a);return s.jsx(gfe,{...r,...n,ref:t})});tX.displayName=aye;var nye="AlertDialogPortal",aX=e=>{const{__scopeAlertDialog:t,...a}=e,n=Rl(t);return s.jsx(F6,{...n,...a})};aX.displayName=nye;var sye="AlertDialogOverlay",nX=P.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...n}=e,r=Rl(a);return s.jsx(B6,{...r,...n,ref:t})});nX.displayName=sye;var dm="AlertDialogContent",[rye,iye]=tye(dm),oye=vQ("AlertDialogContent"),sX=P.forwardRef((e,t)=>{const{__scopeAlertDialog:a,children:n,...r}=e,i=Rl(a),o=P.useRef(null),l=Va(t,o),c=P.useRef(null);return s.jsx(pfe,{contentName:dm,titleName:rX,docsSlug:"alert-dialog",children:s.jsx(rye,{scope:a,cancelRef:c,children:s.jsxs(G6,{role:"alertdialog",...i,...r,ref:l,onOpenAutoFocus:Nt(r.onOpenAutoFocus,d=>{d.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[s.jsx(oye,{children:n}),s.jsx(cye,{contentRef:o})]})})})});sX.displayName=dm;var rX="AlertDialogTitle",iX=P.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...n}=e,r=Rl(a);return s.jsx(H6,{...r,...n,ref:t})});iX.displayName=rX;var oX="AlertDialogDescription",lX=P.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...n}=e,r=Rl(a);return s.jsx(q6,{...r,...n,ref:t})});lX.displayName=oX;var lye="AlertDialogAction",cX=P.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...n}=e,r=Rl(a);return s.jsx(v2,{...r,...n,ref:t})});cX.displayName=lye;var dX="AlertDialogCancel",uX=P.forwardRef((e,t)=>{const{__scopeAlertDialog:a,...n}=e,{cancelRef:r}=iye(dX,a),i=Rl(a),o=Va(t,r);return s.jsx(v2,{...i,...n,ref:o})});uX.displayName=dX;var cye=({contentRef:e})=>{const t=`\`${dm}\` requires a description for the component to be accessible for screen reader users. 863 864You can add a description to the \`${dm}\` by passing a \`${oX}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 865 866Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${dm}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 867 868For more information, see https://radix-ui.com/primitives/docs/components/
868alert-dialog`;return P.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},dye=eX,uye=tX,pye=aX,mye=nX,fye=sX,hye=cX,gye=uX,xye=iX,bye=lX;function al({...e}){return s.jsx(dye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:10","data-slot":"alert-dialog",...e})}function yc({...e}){return s.jsx(uye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:17","data-slot":"alert-dialog-trigger",...e})}function vye({...e}){return s.jsx(pye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:25","data-slot":"alert-dialog-portal",...e})}function yye({className:e,...t}){return s.jsx(mye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:34","data-slot":"alert-dialog-overlay",className:zt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function nl({className:e,...t}){return s.jsxs(vye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:50",children:[s.jsx(yye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:51"}),s.jsx(fye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:52","data-slot":"alert-dialog-content",className:zt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function wye({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:69","data-slot":"alert-dialog-header",className:zt("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Pye({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:82","data-slot":"alert-dialog-footer",className:zt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function sl({className:e,...t}){return s.jsx(xye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:98","data-slot":"alert-dialog-title",className:zt("text-lg font-semibold",e),...t})}function rl({className:e,...t}){return s.jsx(bye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:111","data-slot":"alert-dialog-description",className:zt("text-muted-foreground text-sm",e),...t})}function il({className:e,...t}){return s.jsx(hye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:124",className:zt(w6(),e),...t})}function ol({className:e,...t}){return s.jsx(gye,{"data-loc":"client/src/components/ui/alert-dialog.tsx:136",className:zt(w6({variant:"outline"}),e),...t})}function pX({open:e,onOpenChange:t,title:a,description:n,confirmLabel:r="ØØ°Ù",onConfirm:i,isPending:o=!1}){return s.jsx(al,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:22",open:e,onOpenChange:t,children:s.jsxs(nl,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:23",className:"border-2 border-black bg-white text-right shadow-memphis",dir:"rtl",children:[s.jsxs(wye,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:24",children:[s.jsx(sl,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:24",className:"font-black text-black",children:a}),s.jsx(rl,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:24",className:"leading-6 text-black/70",children:n})]}),s.jsxs(Pye,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:25",children:[s.jsx(ol,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:25",children:"Ø¥ÙØºØ§Ø¡"}),s.jsx(il,{"data-loc":"client/src/components/SavedResourceDeleteConfirmDialog.tsx:25",onClick:i,disabled:o,className:"bg-red-600 font-black text-white hover:bg-red-700",children:r})]})]})})}function j9(e){try{const t=new URL(e);return t.hash="",t.hostname=t.hostname.toLowerCase(),["fbclid","gclid"].forEach(a=>t.searchParams.delete(a)),Array.from(t.searchParams.keys()).forEach(a=>{a.startsWith("utm_")&&t.searchParams.delete(a)}),t.toString()}catch{return e}}function jye(e){try{const t=new URL(e),a=t.hostname.replace(/^www\./,"").toLowerCase(),n=a==="youtu.be"?t.pathname.split("/").filter(
868Boolean)[0]:a==="youtube.com"||a==="m.youtube.com"?t.searchParams.get("v")||t.pathname.match(/^\/(?:embed|shorts)\/([^/?]+)/)?.[1]:null;return n&&/^[A-Za-z0-9_-]{11}$/.test(n)?n:null}catch{return null}}function kye(e){const t=e.match(/https?:\/\/[^\s<>"')\]}]+/g)??[];return Array.from(new Set(t)).filter(a=>{try{return["http:","https:"].includes(new URL(a).protocol)}catch{return!1}})}function Nye(e,t,a){const n=j9(a);return e.some(r=>r.resourceType===t&&j9(r.resourceUrl)===n)}async function mX(e){if(typeof navigator<"u"&&typeof navigator.share=="function")return await navigator.share({title:e.title,text:e.text,url:e.url}),"shared";if(typeof navigator<"u"&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e.url),"copied";throw new Error("ÙØ§ ÙØ¯Ø¹Ù
ÙØ°Ø§ اÙÙ
ØªØµÙØ اÙÙ
Ø´Ø§Ø±ÙØ© Ø£Ù ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·")}function Aye(e,t){const a=e.trim();return a?a.length>t?{valid:!1,message:`Ø§ÙØ§Ø³Ù
ÙØ¬Ø¨ Ø£ÙØ§ ÙØªØ¬Ø§Ùز ${t} ØØ±ÙاÙ`}:{valid:!0,name:a}:{valid:!1,message:"Ø§ÙØªØ¨ اسÙ
Ø§Ù ØµØ§ÙØØ§Ù Ø£ÙÙØ§Ù"}}function Sye(e,t){return{resourceId:e,folderId:t}}function Cye(e,t,a=e.color){const n=Aye(t,e.kind==="folder"?80:60);return n.valid?n.name===e.name&&a===e.color?{valid:!1,message:"ÙÙ
ÙØªØºÙر Ø§ÙØ§Ø³Ù
أ٠اÙÙÙÙ"}:e.kind==="folder"?{valid:!0,kind:"folder",payload:{folderId:e.id,name:n.name,color:a}}:{valid:!0,kind:"tag",payload:{tagId:e.id,name:n.name,color:a}}:n}function Tye(e,t,a,n){const r=Cye(e,t,a);return r.valid&&(r.kind==="folder"?n.updateFolder(r.payload):n.updateTag(r.payload)),r}function uN(e,t,a){const n=Sye(e,t);return a(n),n}function Dye(e,t){return e.kind==="folder"?(t.deleteFolder({folderId:e.id}),{dispatched:!0,kind:"folder"}):e.lessonId&&e.resourceType&&e.resourceUrl?(t.removeResource({lessonId:e.lessonId,resourceType:e.resourceType,resourceUrl:e.resourceUrl}),{dispatched:!0,kind:"resource"}):{dispatched:!1,kind:"resource"}}function Eye(e){return e?"confirm_remove":"save"}function GC({lessonId:e,resourceType:t,resourceUrl:a,resourceTitle:n,isAuthenticated:r}){const i=J.useUtils(),[o,l]=P.useState(!1),d=J.lessons.savedResources.useQuery({lessonId:e},{enabled:r&&e>0}).data??[],m=Nye(d,t,a),f=J.lessons.saveResource.useMutation({onSuccess:()=>{i.lessons.savedResources.invalidate({lessonId:e}),i.lessons.savedLibrary.invalidate(),re.success("تÙ
Ø§ÙØÙØ¸ ÙÙØ±Ø¬Ùع Ø¥ÙÙÙ ÙØ§ØÙاÙ")},onError:w=>re.error(w.message)}),h=J.lessons.removeSavedResource.useMutation({onSuccess:()=>{i.lessons.savedResources.invalidate({lessonId:e}),i.lessons.savedLibrary.invalidate(),re.success("أزÙ٠اÙÙ
ÙØ±Ø¯ Ù
٠اÙÙ
ØÙÙØ¸Ø§Øª")},onError:w=>re.error(w.message)}),x=f.isPending||h.isPending,b=()=>{if(!r){re.info("سجÙ٠دخÙÙÙ ÙØÙØ¸ ÙØ°Ø§ اÙÙ
ÙØ±Ø¯ ÙØ§ÙØ±Ø¬ÙØ¹ Ø¥ÙÙÙ ÙØ§ØÙاÙ"),Rn();return}const w={lessonId:e,resourceType:t,resourceUrl:a,resourceTitle:n};Eye(m)==="confirm_remove"?l(!0):f.mutate(w)},y=()=>{h.mutate({lessonId:e,resourceType:t,resourceUrl:a}),l(!1)};return s.jsxs(s.Fragment,{children:[s.jsxs(Ie,{"data-loc":"client/src/components/LessonResourceExperience.tsx:70",type:"button",size:"sm",variant:m?"secondary":"outline",onClick:b,disabled:x,"aria-pressed":m,className:"gap-1.5 rounded-full border-black/20 bg-white/90 text-xs font-bold text-black hover:bg-memphis-yellow",children:[x?s.jsx(Ta,{"data-loc":"client/src/components/LessonResourceExperience.tsx:79",className:"h-3.5 w-3.5 animate-spin"}):m?s.jsx(Ir,{"data-loc":"client/src/components/LessonResourceExperience.tsx:79",className:"h-3.5 w-3.5"}):s.jsx(Hi,{"data-loc":"client/src/components/LessonResourceExperience.tsx:79",className:"h-3.5 w-3.5"}),m?"Ù
ØÙÙØ¸":"ØÙظ"]}),s.jsx(pX,{"data-loc":"client/src/components/LessonResourceExperience.tsx:82",open:o,onOpenChange:l,title:"Ø¥Ø²Ø§ÙØ© اÙÙ
ÙØ±Ø¯ Ù
٠اÙÙ
ØÙÙØ¸Ø§ØªØ",description:`ÙÙ ØªØ±ÙØ¯ Ø¥Ø²Ø§ÙØ© «${n}» Ù
Ù Ù
ØÙÙØ¸Ø§ØªÙØ ÙÙ
ÙÙÙ ØÙظ٠Ù
رة أخر٠Ù٠أ٠ÙÙØª.`,confirmLabel:"Ø¥Ø²Ø§ÙØ©",onConfirm:y,isPending:h.isPending})]})}function yy({resourceUrl:e,resourceTitle:t}){const[a,n]=P.useState(!1),r=async()=>{n(!0);try{const i=await mX({title:t,text:`Ù
ÙØ±Ø¯ تعÙÙÙ
Ù Ù
Ù Ù
ÙØµØ© جد ÙØ¬Ø¯: ${t}`,url:e});re.success(i==="shared"?"تÙ
ت اÙÙ
Ø´Ø§Ø±ÙØ©":"تÙ
ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø· ÙÙÙ
Ø´Ø§Ø±ÙØ©")}catch(i){if(i instanceof DOMException&&i.name==="AbortError")return;re.error(i instanceof Error?i.message:"تعذرت Ù
Ø´Ø§Ø±ÙØ© اÙÙ
ÙØ±Ø¯")}finally{n(!1)}};return s.jsxs(Ie,{"data-loc":"client/src/components/LessonResourceExperience.tsx:108",type:"button",size:"sm",variant:"outline",onClick:r,disabled:a,className:"gap-1.5 rounded-full border-black/20 bg-white/90 text-xs font-bold text-black hover:bg-memphis-lilac","aria-label":`Ù
Ø´Ø§Ø±ÙØ©: ${t}`,children:[a?s.jsx(Ta,{"data-loc":"client/src/components/LessonResourceExperience.tsx:117",className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Lr,{"data-loc":"client/src/components/LessonResourceExperience.tsx:117",className:"h-3.5 w-3.5"}),"Ù
Ø´Ø§Ø±ÙØ©"]})}function Mye({lessonId:e,lessonTitle:t,isAuthenticated:a}){const n=J.useUtils(),r=J.lessons.savedLesson.useQuery({lessonId:e},{enabled:a&&e>0}),i=J.lessons.toggleSavedLesson.useMutation({onSuccess:f=>{n.lessons.savedLesson.invalidate({lessonId:e}),re.success(f.saved?"ØÙÙØ¸ Ø§ÙØ¯Ø±Ø³ ÙÙ Ù
ÙØ¶ÙتÙ":"Ø£ÙØ²ÙÙ Ø§ÙØ¯Ø±Ø³ Ù
٠اÙÙ
ÙØ¶ÙØ©")},onError:f=>re.error(f.message)}),[o,l]=P.useState(!1),c=()=>
868{if(!a){re.info("سجÙ٠دخÙÙÙ ÙØÙØ¸ Ø§ÙØ¯Ø±Ø³ ÙÙ Ù
ÙØ¶ÙتÙ"),Rn();return}i.mutate({lessonId:e})},d=async()=>{l(!0);try{const f=await mX({title:t,text:`درس Ù
ÙÙØ¯ Ù
Ù Ù
ÙØµØ© جد ÙØ¬Ø¯: ${t}`,url:window.location.href});re.success(f==="shared"?"تÙ
ت Ù
Ø´Ø§Ø±ÙØ© Ø§ÙØ¯Ø±Ø³":"تÙ
ÙØ³Ø® رابط Ø§ÙØ¯Ø±Ø³ ÙÙÙ
Ø´Ø§Ø±ÙØ©")}catch(f){f instanceof DOMException&&f.name==="AbortError"||re.error(f instanceof Error?f.message:"تعذرت Ù
Ø´Ø§Ø±ÙØ© Ø§ÙØ¯Ø±Ø³")}finally{l(!1)}},m=r.data?.saved??!1;return s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:152",className:"my-5 flex flex-wrap items-center gap-2 rounded-2xl border-2 border-black bg-memphis-yellow/30 p-3","aria-label":"إجراءات Ø§ÙØ¯Ø±Ø³",children:[s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:153",className:"ml-auto text-xs font-black text-black/70",children:"Ø§ØØªÙظ بÙ
ا ÙÙÙØ¯Ù ÙØ´Ø§Ø±ÙÙ Ù
ع ÙØ±ÙÙÙ"}),s.jsxs(Ie,{"data-loc":"client/src/components/LessonResourceExperience.tsx:154",type:"button",size:"sm",variant:m?"secondary":"outline",onClick:c,disabled:i.isPending,className:"gap-1.5 border-black bg-white font-black text-black hover:bg-memphis-mint",children:[i.isPending?s.jsx(Ta,{"data-loc":"client/src/components/LessonResourceExperience.tsx:155",className:"h-4 w-4 animate-spin"}):m?s.jsx(Ir,{"data-loc":"client/src/components/LessonResourceExperience.tsx:155",className:"h-4 w-4"}):s.jsx(Hi,{"data-loc":"client/src/components/LessonResourceExperience.tsx:155",className:"h-4 w-4"}),m?"Ù٠اÙÙ
ÙØ¶ÙØ©":"ØÙظ Ø§ÙØ¯Ø±Ø³"]}),s.jsxs(Ie,{"data-loc":"client/src/components/LessonResourceExperience.tsx:158",type:"button",size:"sm",variant:"outline",onClick:d,disabled:o,className:"gap-1.5 border-black bg-white font-black text-black hover:bg-memphis-lilac",children:[o?s.jsx(Ta,{"data-loc":"client/src/components/LessonResourceExperience.tsx:159",className:"h-4 w-4 animate-spin"}):s.jsx(Lr,{"data-loc":"client/src/components/LessonResourceExperience.tsx:159",className:"h-4 w-4"})," Ù
Ø´Ø§Ø±ÙØ© Ø§ÙØ¯Ø±Ø³"]})]})}function Oye({lessonId:e,videoUrl:t,lessonTitle:a,isAuthenticated:n}){const[r,i]=P.useState(!1),[o,l]=P.useState(!1),c=jye(t),d=c?`https://i.ytimg.com/vi/${c}/${o?"mqdefault":"hqdefault"}.jpg`:null,m=c?`https://www.youtube-nocookie.com/embed/${c}?rel=0`:null;return!c||!m?s.jsx("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:185",className:"mt-6 rounded-xl border-2 border-black bg-memphis-yellow p-4",children:s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:186",className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:187",children:[s.jsx("p",{"data-loc":"client/src/components/LessonResourceExperience.tsx:188",className:"font-black text-black",children:"ÙÙØ¯Ù٠تعÙÙÙ
Ù Ù
رتبط"}),s.jsx("p",{"data-loc":"client/src/components/LessonResourceExperience.tsx:189",className:"mt-1 text-sm text-black/70",children:"ÙÙØªØ اÙÙÙØ¯ÙÙ ÙÙ Ù
ÙØµØ© YouTube."})]}),s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:191",className:"flex items-center gap-2",children:[s.jsx(GC,{"data-loc":"client/src/components/LessonResourceExperience.tsx:192",lessonId:e,resourceType:"video",resourceUrl:t,resourceTitle:a,isAuthenticated:n}),s.jsx(yy,{"data-loc":"client/src/components/LessonResourceExperience.tsx:193",resourceUrl:t,resourceTitle:a}),s.jsxs("a",{"data-loc":"client/src/components/LessonResourceExperience.tsx:194",href:t,target:"_blank",rel:"noopener noreferrer",className:"memphis-btn bg-memphis-lilac px-3 py-2 text-sm font-black text-black",children:[s.jsx(_g,{"data-loc":"client/src/components/LessonResourceExperience.tsx:195",className:"ml-1 inline h-4 w-4"})," ÙØªØ اÙÙÙØ¯ÙÙ"]})]})]})}):s.jsxs("section",{"data-loc":"client/src/components/LessonResourceExperience.tsx:204",className:"mt-7","aria-label":"ÙÙØ¯Ù٠تعÙÙÙ
Ù Ù
رتبط",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:205",className:"mb-3 flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:206",className:"flex items-center gap-2",children:[s.jsx(upe,{"data-loc":"client/src/components/LessonResourceExperience.tsx:207",className:"h-5 w-5 text-red-600"}),s.jsx("h3",{"data-loc":"client/src/components/LessonResourceExperience.tsx:208",className:"font-black text-black",children:"ÙÙØ¯Ù٠تعÙÙÙ
Ù Ù
رتبط"})]}),s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:210",className:"flex items-center gap-2",children:[s.jsx(GC,{"data-loc":"client/src/components/LessonResourceExperience.tsx:211",lessonId:e,resourceType:"video",resourceUrl:t,resourceTitle:a,isAuthenticated:n}),s.jsx(yy,{"data-loc":"client/src/components/LessonResourceExperience.tsx:212",resourceUrl:t,resourceTitle:a})]})]}),s.jsx("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:216",className:"relative aspect-video overflow-hidden rounded-xl border-2 border-black bg-black shadow-[4px_4px_0_0_rgba(0,0,0,1)]",children:r?s.jsx("iframe",{"data-loc":"client/src/components/LessonResourceExperience.tsx:218",src:m,title:`ÙÙØ¯Ù٠تعÙÙÙ
Ù: ${a}`,className:"absolute inset-0 h-full w-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):s.jsxs("button",{"data-loc":"client/src/components/LessonResourceExperience.tsx:226",type:"button",onClick:()=>i(!0),className:"group absolute inset-0 h-full w-full bg-black text-right focus:outline-none focus-visible:ring-4 focus-visible:ring-memphis-yellow","aria-label":`تشغÙ٠اÙÙÙØ¯ÙÙ Ø§ÙØªØ¹ÙÙÙ
Ù: ${a}`,children:[d&&s.jsx("img",{"data-loc":"client/src/components/LessonResourceExperience.tsx:233",src:d,alt:"",loading:"lazy",onError:()=>l(!0),className:"h-full w-full object-cover opacity-85 transition duration-200 group-hover:scale-[1.02] group-hover:opacity-100"}),s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:241",className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-black/20"}),s.jsxs("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:242",className:"absolute inset-0 flex flex-col items-center justify-center gap-3 text-center text-white",children:[s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:243",className:"flex h-16 w-16 items-center justify-center rounded-full border-2 border-white bg-red-600 shadow-[3px_3px_0_0_rgba(0,0,0,0.65)] transition group-hover:scale-105",children:s.jsx(Qp,{"data-loc":"client/src/components/LessonResourceExperience.tsx:244",className:"mr-0.5 h-8 w-8 fill-current"})}),s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:246",className:"rounded-full bg-black/70 px-3 py-1 text-sm font-bold",children:"اÙÙØ± ÙØªØ´ØºÙ٠اÙÙÙØ¯ÙÙ"})]})]})}),s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:251",className:"mt-2 flex items-center justify-between gap-2 text-xs text-black/55",children:[s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:252",children:"ÙØ§ ÙÙØÙ
ÙÙ٠اÙÙ
شغÙÙ ØØªÙ تضغط تشغÙÙ."}),s.jsxs("a",{"data-loc":"client/src/components/LessonResourceExperience.tsx:253",href:t,target:"_blank",rel:"noopener noreferrer",className:"font-bold text-blue-700 underline hover:text-blue-900",children:["Ø´Ø§ÙØ¯ عÙÙ YouTube ",s.jsx(_g,{"data-loc":"client/src/components/LessonResourceExperience.tsx:254",className:"mr-0.5 inline h-3 w-3"})]})]})]})}function Rye({lessonId:e,url:t,isAuthenticated:a,source:n}){const r=J.useUtils(),i=J.resources.preview.useQuery({url:t},{retry:!1,refetchOnWindowFocus:!1,staleTime:1e3*60*60*6}),o=P.useMemo(()=>{try{const m=new URL(t);return{title:m.hostname.replace(/^www\./,""),siteName:m.hostname.replace(/^www\./,""),faviconUrl:`https://www.google.com/s2/favicons?domain=${encodeURIComponent(m.hostname)}&sz=64`,imageUrl:null,description:null}}catch{return{title:"Ù
رجع خارجÙ",siteName:"رابط",faviconUrl:"",imageUrl:null,description:null}}},[t]),l=i.data??o,c=J.lessons.voteSource.useMutation({onSuccess:()=>{r.lessons.sources.invalidate({lessonId:e}),r.lessons.mySources.invalidate({lessonId:e}),re.success("Ø´ÙØ±ÙØ§Ø Ø³ÙØ³Ø§Ø¹Ø¯ تÙÙÙÙ
Ù ÙÙ ØªØØ³Ù٠اÙÙ
راجع")},onError:m=>re.error(m.message)}),d=m=>{if(n){if(!a){re.info("سجÙ٠دخÙÙÙ ÙØªÙÙÙÙ
ÙØ§Ø¦Ø¯Ø© اÙÙ
صدر"),Rn();return}c.mutate({sourceId:n.id,helpful:m})}};return s.jsxs("article",{"data-loc":"client/src/components/LessonResourceExperience.tsx:311",className:"overflow-hidden rounded-xl border-2 border-black bg-white shadow-[3px_3px_0_0_rgba(0,0,0,1)] transition hover:-translate-y-0.5 hover:shadow-[5px_5px_0_0_rgba(0,0,0,1)]",children:[l.imageUrl&&s.jsx("img",{"data-loc":"client/src/components/LessonResourceExperience.tsx:312",src:l.imageUrl,alt:"",loading:"lazy",className:"h-28 w-full object-cover"}),s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:313",className:"p-3",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:314",className:"mb-2 flex items-center gap-2 text-xs text-black/55",children:[l.faviconUrl?s.jsx("img",{"data-loc":"client/src/components/LessonResourceExperience.tsx:315",src:l.faviconUrl,alt:"",className:"h-4 w-4 roun
868ded-sm",loading:"lazy"}):s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:315",className:"h-4 w-4 rounded-sm bg-memphis-lilac"}),s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:316",className:"truncate",children:l.siteName}),i.isFetching&&s.jsx(Ta,{"data-loc":"client/src/components/LessonResourceExperience.tsx:317",className:"mr-auto h-3 w-3 animate-spin","aria-label":"جار٠تØÙ
ÙÙ Ø¨ÙØ§Ùات اÙÙ
رجع"})]}),s.jsx("h4",{"data-loc":"client/src/components/LessonResourceExperience.tsx:319",className:"line-clamp-2 text-sm font-black text-black",children:n?.titleAr??l.title}),n&&s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:320",className:"mt-2 flex flex-wrap items-center gap-1.5 text-[11px] font-bold",children:[s.jsxs("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:321",className:`inline-flex items-center gap-1 rounded-full border px-2 py-0.5 ${n.verificationStatus==="verified"?"border-emerald-700 bg-emerald-50 text-emerald-800":"border-amber-700 bg-amber-50 text-amber-800"}`,children:[n.verificationStatus==="verified"?s.jsx(bl,{"data-loc":"client/src/components/LessonResourceExperience.tsx:322",className:"h-3 w-3"}):s.jsx(zg,{"data-loc":"client/src/components/LessonResourceExperience.tsx:322",className:"h-3 w-3"}),n.verificationStatus==="verified"?"تÙ
Ø§ÙØªØÙÙ":"Ø¨ØØ§Ø¬Ø© ÙÙ
راجعة"]}),s.jsx("span",{"data-loc":"client/src/components/LessonResourceExperience.tsx:324",className:"rounded-full bg-black/5 px-2 py-0.5",children:n.language==="ar"?"Ù
رجع عربÙ":"Ù
رجع Ø¥ÙØ¬ÙÙØ²Ù"})]}),l.description&&s.jsx("p",{"data-loc":"client/src/components/LessonResourceExperience.tsx:326",className:"mt-1 line-clamp-2 text-xs leading-5 text-black/65",children:l.description}),s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:327",className:"mt-3 flex flex-wrap items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:328",className:"flex items-center gap-1.5",children:[s.jsx(GC,{"data-loc":"client/src/components/LessonResourceExperience.tsx:329",lessonId:e,resourceType:"reference",resourceUrl:t,resourceTitle:l.title,isAuthenticated:a}),s.jsx(yy,{"data-loc":"client/src/components/LessonResourceExperience.tsx:330",resourceUrl:t,resourceTitle:l.title}),n&&s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:331",className:"mr-1 flex items-center gap-1 border-r border-black/10 pr-2","aria-label":"تÙÙÙÙ
ÙØ§Ø¦Ø¯Ø© اÙÙ
صدر",children:[s.jsx("button",{"data-loc":"client/src/components/LessonResourceExperience.tsx:332",type:"button",onClick:()=>d(!0),disabled:c.isPending,className:`rounded-full p-1.5 ${n.userVote===!0?"bg-emerald-100 text-emerald-800":"hover:bg-emerald-50"}`,"aria-label":"ÙØ°Ø§ اÙÙ
صدر Ù
ÙÙØ¯",children:s.jsx(m2,{"data-loc":"client/src/components/LessonResourceExperience.tsx:332",className:"h-3.5 w-3.5"})}),s.jsx("button",{"data-loc":"client/src/components/LessonResourceExperience.tsx:333",type:"button",onClick:()=>d(!1),disabled:c.isPending,className:`rounded-full p-1.5 ${n.userVote===!1?"bg-rose-100 text-rose-800":"hover:bg-rose-50"}`,"aria-label":"ÙØ°Ø§ اÙÙ
صدر ØºÙØ± Ù
ÙÙØ¯",children:s.jsx(Ipe,{"data-loc":"client/src/components/LessonResourceExperience.tsx:333",className:"h-3.5 w-3.5"})})]})]}),s.jsxs("a",{"data-loc":"client/src/components/LessonResourceExperience.tsx:336",href:t,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-bold text-blue-700 underline hover:text-blue-900",children:["Ø§ÙØªØ اÙÙ
رجع ",s.jsx(_g,{"data-loc":"client/src/components/LessonResourceExperience.tsx:337",className:"mr-0.5 inline h-3 w-3"})]})]})]})]})}function zye({lessonId:e,content:t,isAuthenticated:a}){const n=P.useMemo(()=>kye(t),[t]),r=J.lessons.sources.useQuery({lessonId:e},{enabled:e>0}),i=J.lessons.mySources.useQuery({lessonId:e},{enabled:a&&e>0}),o=(a?i.data:r.data)??[],l=o.length?o.map(c=>({url:c.url,source:c})):n.map(c=>({url:c,source:void 0}));return l.length===0?null:s.jsxs("section",{"data-loc":"client/src/components/LessonResourceExperience.tsx:364",className:"mt-7 border-t-2 border-dashed border-black/20 pt-6","aria-label":"Ù
راجع Ø§ÙØ¯Ø±Ø³",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:365",className:"mb-3 flex items-center gap-2",children:[s.jsx(Hi,{"data-loc":"client/src/components/LessonResourceExperience.tsx:366",className:"h-5 w-5 text-memp
868his-orange"}),s.jsx("h3",{"data-loc":"client/src/components/LessonResourceExperience.tsx:367",className:"font-black text-black",children:"Ù
راجع ÙÙÙØ±Ø§Ø¡Ø© ÙØ§Ùاستزادة"})]}),s.jsx("div",{"data-loc":"client/src/components/LessonResourceExperience.tsx:369",className:"grid gap-3 sm:grid-cols-2",children:l.map(({url:c,source:d})=>s.jsx(Rye,{"data-loc":"client/src/components/LessonResourceExperience.tsx:370",lessonId:e,url:c,isAuthenticated:a,source:d},`${d?.id??"fallback"}-${c}`))})]})}const _ye=[{terms:["Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù","ChatGPT","برÙÙ
بت","Ø¨ÙØ§Ùات","Ø§ÙØ®ØµÙØµÙØ©"],label:"Ù
ختبر Ø§ÙØ¯ÙÙÙØ© اÙÙØ§ØØ¯Ø©",prompt:"اختر Ø£ÙØ¶Ù Ø¨Ø¯Ø§ÙØ© عÙ
ÙÙØ© بعد ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³:",choices:["أجرب اÙÙÙØ±Ø© ÙÙ Ù
ÙÙ
Ø© ØµØºÙØ±Ø© ÙØ¢Ù
ÙØ© اÙÙÙÙ
","Ø£ÙØªØ¸Ø± Ø¥ÙÙ Ø£Ù Ø£ØØªØ§Ø¬Ùا ÙÙ ÙÙØª ØºÙØ± Ù
ØØ¯Ø¯","Ø£ÙÙÙ Ø¨ÙØ§Ùات ØØ³Ø§Ø³Ø© Ù
باشرة Ø¥Ù٠أ٠أداة"],explanation:"Ø§ÙØªØ¬Ø±Ø¨Ø© اÙÙ
ØØ¯Ùدة ÙØ§ÙÙØ§Ø¶ØØ© تØÙ٠اÙÙ
Ø¹Ø±ÙØ© Ø¥ÙÙ Ù
ÙØ§Ø±Ø©Ø ÙØªØØ§Ùظ عÙ٠استخداÙ
Ù
سؤÙÙ ÙÙØ£Ø¯Ùات."},{terms:["غذاء","ØªØºØ°ÙØ©","ÙØ¬Ø¨Ø©","Ù
اء","صØÙ","طعاÙ
"],label:"ÙØ±Ø§Ø±Ù Ø§ÙØµØÙ اÙÙÙÙ
",prompt:"Ù
ا Ø§ÙØ®Ø·ÙØ© Ø§ÙØµØºÙرة Ø§ÙØ£Ùثر ÙØ§Ø¨ÙÙØ© ÙÙØªÙÙÙØ° Ø§ÙØ¢ÙØ",choices:["Ø£ØØ¯Ø¯ Ø®ÙØ§Ø±Ø§Ù Ù
ØªÙØ§Ø²ÙØ§Ù ÙØ§ØØ¯Ø§Ù ÙÙØ¬Ø¨ØªÙ Ø§ÙØªØ§ÙÙØ©","Ø£ØºÙØ± ÙÙ Ø¹Ø§Ø¯Ø§ØªÙ Ø¯ÙØ¹Ø© ÙØ§ØØ¯Ø©","أتجاÙÙ Ø§ÙØªØ®Ø·ÙØ· ØØªÙ ÙÙØ§ÙØ© Ø§ÙØ£Ø³Ø¨Ùع"],explanation:"اÙÙØ±Ø§Ø± Ø§ÙØµØºÙر اÙÙØ§Ø¶Ø أسÙÙ ÙÙ Ø§ÙØ§ÙتزاÙ
Ø ÙÙÙ
ÙØÙ ÙÙØ·Ø© Ø¨Ø¯Ø§ÙØ© ÙØ§ÙØ¹ÙØ© دÙ٠تعÙÙØ¯."},{terms:["Ø±ÙØ§Ø¶Ø©","ØØ±ÙØ©","ÙÙØ§ÙØ©","تÙ
رÙÙ","ÙØ´Ø§Ø·","جÙÙØ³"],label:"دÙÙÙØ© ÙØ´Ø§Ø·",prompt:"ÙÙ٠تطبÙÙ ÙÙØ±Ø© Ø§ÙØ¯Ø±Ø³ Ø®ÙØ§Ù ÙÙÙ
عÙ
ÙÙØ",choices:["أربط ØØ±ÙØ© ÙØµÙرة بÙ
ÙØ¹Ø¯ ثابت اÙÙÙÙ
","أؤجÙÙØ§ ØØªÙ تتÙÙØ± ساعة ÙØ§Ù
ÙØ©","أبدأ Ø¨ØØ±ÙØ© Ù
رÙÙØ© Ø¨ÙØ§ تدرج"],explanation:"ربط Ø§ÙØØ±ÙØ© Ø¨ÙØØ¸Ø© Ù
ØØ¯Ø¯Ø© Ù٠اÙÙÙÙ
ÙØ¬Ø¹ÙÙØ§ عادة ÙØ§Ø¨ÙØ© ÙÙØ§Ø³ØªÙ
رار."},{terms:["عطاء","ØªØ·ÙØ¹","Ù
ساعدة","ØµØ¯ÙØ©","أثر","Ù
جتÙ
ع"],label:"أثر ØµØºÙØ± Ø§ÙØ¢Ù",prompt:"اختر ØªØµØ±ÙØ§Ù ÙØÙ٠اÙÙÙØ±Ø© Ø¥Ù٠أثر Ù
ÙÙ
ÙØ³:",choices:["Ø£ÙØ¯Ù
Ù
ساعدة Ù
ØØ¯Ø¯Ø© ÙØ´Ø®Øµ Ø£Ù ÙØ±Ù٠اÙÙÙÙ
","Ø£ÙØªØ¸Ø± Ù
بادرة ÙØ¨Ùرة ÙÙØ·","Ø£ÙØªÙÙ Ø¨ÙØ±Ø§Ø¡Ø© اÙÙÙØ±Ø© دÙ٠تطبÙÙ"],explanation:"Ø§ÙØ£Ø«Ø± اÙÙ
ستداÙ
ÙØ¨Ø¯Ø£ بÙ
ساÙÙ
Ø© Ù
ØØ¯Ø¯Ø© ÙÙ
Ù٠تÙÙÙØ°Ùا ÙÙ
ÙØ§ØØ¸ØªÙا."},{terms:["ÙØ¯Ù","عادة","ترÙÙØ²","ذات","Ø¥ÙØ¬Ø§Ø¨Ù","اÙÙØ¹Ø§Ù"],label:"Ø§ÙØªØ²Ø§Ù
Ø§ÙØ¯ÙÙÙØªÙÙ",prompt:"Ù
ا Ø£ÙØ¶Ù طرÙÙØ© ÙØªØÙÙ٠اÙÙÙØ±Ø© Ø¥Ù٠عادةØ",choices:["Ø£ÙØªØ¨ Ø®Ø·ÙØ© ÙØ§ØØ¯Ø© ÙÙ
ÙØ¹Ø¯Ø§Ù ÙØ±ÙØ¨Ø§Ù ÙØªÙÙÙØ°Ùا","Ø£ÙØªØ¸Ø± Ø§ÙØØ§ÙØ² اÙÙØ§Ù
Ù ÙØ¨Ù Ø§ÙØ¨Ø¯Ø¡","أضع ÙØ¯ÙØ§Ù ÙØ¨ÙØ±Ø§Ù Ø¨ÙØ§ Ø®Ø·ÙØ© Ø£ÙÙÙ"],explanation:"Ø§ÙØ®Ø·ÙØ© اÙÙ
ØØ¯Ø¯Ø© بÙÙØª تÙÙÙ Ø§ÙØªØ±Ø¯Ø¯ ÙØªÙ
ÙØÙ Ø¯ÙÙÙØ§Ù Ø³Ø±ÙØ¹Ø§Ù عÙÙ Ø§ÙØªÙدÙ
."},{terms:["ÙØ±ÙÙ","تعاÙÙ","ØªÙØ§ØµÙ","اجتÙ
اع","زÙ
ÙÙ","عÙ
Ù"],label:"ÙØ±Ø§Ø± اÙÙØ±ÙÙ Ø§ÙØ³Ø±Ùع",prompt:"ÙÙ٠تختبر ÙÙØ±Ø© Ø§ÙØ¯Ø±Ø³ ÙÙ Ø³ÙØ§Ù Ø§ÙØ¹Ù
ÙØ",choices:["أطبÙÙØ§ ÙÙ Ù
ÙÙÙ ÙØ§ØØ¯ ÙØ£ÙØ§ØØ¸ Ø£Ø«Ø±ÙØ§","Ø£ÙØªØ±Ø¶ Ø£Ù Ø§ÙØ¬Ù
ÙØ¹ ÙÙÙÙ
ÙØ§ دÙÙ ÙÙØ§Ø´","Ø£Ø¤Ø¬Ù Ø§ÙØªØ¬Ø±Ø¨Ø© Ø¥ÙÙ Ù
Ø´Ø±ÙØ¹ Ø¨Ø¹ÙØ¯"],explanation:"Ø§ÙØªØ·Ø¨ÙÙ ÙÙ Ù
ÙÙÙ ÙØ§ØØ¯ Ù
ع Ù
ÙØ§ØØ¸Ø© اÙÙØªÙجة Ù٠أسرع طرÙÙ ÙØªØÙÙ٠اÙÙ
Ø¹Ø±ÙØ© Ø¥Ù٠سÙÙÙ Ù
ÙÙÙ."}],Iye={label:"Ø®Ø·ÙØ© Ø§ÙØªØ·Ø¨ÙÙ",prompt:"اختر Ø£ÙØ¶Ù Ø®Ø·ÙØ© تضÙ
٠أ٠تبÙÙ ÙÙØ±Ø© Ø§ÙØ¯Ø±Ø³ Ù
عÙ:",choices:["Ø£ØØ¯Ø¯ تطبÙÙØ§Ù ØµØºÙØ±Ø§Ù أبدأ ب٠اÙÙÙÙ
","Ø£ÙØªÙ٠باÙÙØ±Ø§Ø¡Ø© دÙÙ Ù
Ù
ارسة","Ø£ÙØªØ¸Ø± ØØªÙ Ø£ÙØ³Ù Ø§ÙØªÙاصÙÙ"],explanation:"اÙÙ
Ù
ارسة اÙÙØµÙرة بعد Ø§ÙØªØ¹ÙÙ
Ù
باشرة تساعد٠عÙ٠ربط اÙÙÙØ±Ø© Ø¨Ø³ÙØ§Ù٠اÙÙÙÙ
Ù."};function Lye(e,t){const a=`${e} ${t}`.toLocaleLowerCase(),n=_ye.find(o=>o.terms.some(l=>a.includes(l.toLocaleLowerCase())));if(!n)return Iye;const{terms:r,...i}=n;return i}function k9(e){return Array.from(e).reduce((t,a)=>
868t*31+a.charCodeAt(0)>>>0,7)}function Fye(e,t,a){if(!e.length)return[];const n=Math.min(Math.max(t,0),e.length-1),r=e.map((d,m)=>({label:d,originalIndex:m}));let i=k9(a);for(let d=r.length-1;d>0;d-=1){i=i*1664525+1013904223>>>0;const m=i%(d+1);[r[d],r[m]]=[r[m],r[d]]}const o=r.findIndex(d=>d.originalIndex===n),l=Number(a.split("-").at(-1)),c=Number.isFinite(l)?Math.abs(l)%r.length:k9(a)%r.length;return o>=0&&o!==c&&([r[o],r[c]]=[r[c],r[o]]),r.map(({label:d,originalIndex:m})=>({label:d,originalIndex:m,isCorrect:m===n}))}function Bye(e,t=18){return e>=Math.ceil(t*.72)?2:e>=Math.ceil(t*.4)?1:0}function N9(e){return e<2?0:Math.min(3,e-1)}function Gye(e){return e>=4?"Ø®Ø¨ÙØ± اÙÙØ±Ø§Ø±":e>=2?"٠سار ٠تزÙ":"Ø¨Ø¯Ø§ÙØ© ÙØ§Ø¹ÙØ©"}function Hye(e){return e==="support"?{label:"دع٠ذÙÙ",timeLimitSeconds:45,hintPenalty:0,hintLabel:"اعرض Ù Ø¤Ø´Ø±Ø§Ù Ù Ø¬Ø§ÙØ§Ù"}:e==="challenge"?{label:"ØªØØ¯ÙÙ",timeLimitSeconds:45,hintPenalty:2,hintLabel:"اعرض ٠ؤشرا٠(-2 ÙÙØ·Ø©)"}:{label:"Ù ØªÙØ§Ø²Ù",timeLimitSeconds:45,hintPenalty:1,hintLabel:"اعرض ٠ؤشرا٠(-1 ÙÙØ·Ø©)"}}function mc(e,t){const a=Number(e);return Number.isFinite(a)?a:t}function qye(e){if(!e.startsWith("[[")||!e.endsWith("]]"))return null;const t=e.slice(2,-2).split("|").map(n=>n.trim()),a=t.shift();if(a==="blank"&&t.length>=2)return{kind:"activity",activity:{kind:a,prompt:t[0],answer:t[1],points:mc(t[2],3)}};if((a==="choice"||a==="paragraph_choice")&&t.length>=4){const n=t.shift()??"اختر Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",r=mc(t.pop(),0),i=mc(t.pop(),3),o=t.pop();return{kind:"activity",activity:{kind:"choice",prompt:n,options:t,correctIndex:r,explanation:o,points:i,source:a==="paragraph_choice"?"paragraph_review":void 0,mode:"decision"}}}if(a==="true_false"&&t.length>=4){const n=t[0],r=["true","صØ","صØÙØ"].includes((t[1]??"").toLocaleLowerCase()),i=t[2];return{kind:"activity",activity:{kind:"choice",prompt:`ØµØ Ø£Ù Ø®Ø·Ø£: ${n}`,options:["صØ","خطأ"],correctIndex:r?0:1,explanation:i,points:mc(t[3],3),mode:"true_false"}}}if(a==="completion"&&t.length>=4){const n=t.shift()??"Ø£ÙÙ Ù Ø§ÙØ¹Ø¨Ø§Ø±Ø© Ø§ÙØµØÙØØ©",r=mc(t.pop(),0),i=mc(t.pop(),3),o=t.pop();return{kind:"activity",activity:{kind:"choice",prompt:n,options:t,correctIndex:r,explanation:o,points:i,mode:"completion"}}}if(a==="image"&&t.length>=5){const n=t.shift()??"اختر Ø§ÙØµÙرة اÙÙ ÙØ§Ø³Ø¨Ø©",r=t.shift()??"",i=t.shift()??"ØµÙØ±Ø© تعÙÙÙ ÙØ©",o=mc(t.pop(),0),l=mc(t.pop(),3),c=t.pop();return{kind:"activity",activity:{kind:a,prompt:n,imageUrl:r,alt:i,options:t,correctIndex:o,explanation:c,points:l}}}return null}function Uye(e,t){const a=e[t].trim().slice(2,-2).split("|").map(i=>i.trim());if(a.shift()!=="story_start"||a.length<3)return null;const n={id:a[0],title:a[1],intro:a[2],nodes:[]};let r=t+1;for(;r<e.length;){const i=e[r].trim();if(i.startsWith("[[story_end")&&i.endsWith("]]")){const o=i.slice(2,-2).split("|").map(l=>l.trim());return n.ending=o[1],n.nodes.length?{segment:{kind:"story",story:n},nextIndex:r}:null}if(i.startsWith("[[node|")&&i.endsWith("]]")){const o=i.slice(2,-2).split("|").map(m=>m.trim()),l=o[1],c=o[2],d=o.slice(3).map((m,f)=>{const h=m.lastIndexOf(">");return{id:`${l}-choice-${f}`,label:h>0?m.slice(0,h).trim():m,nextNodeId:h>0?m.slice(h+1).trim():"end"}}).filter(m=>m.label&&m.nextNodeId);l&&c&&n.nodes.push({id:l,text:c,choices:d})}r+=1}return null}function Vye(e){const t=e.split(` 869`),a=[];for(let n=0;n<t.length;n+=1){const r=t[n],i=r.trim();if(!i||i.startsWith("[[source|")&&i.endsWith("]]"))continue;const o=i.match(/^(#{1,3})\s+(.+)$/);if(o){a.push({kind:"heading",level:o[1].length,text:o[2].trim()});continue}if(i.startsWith("[[story_start")&&i.endsWith("]]")){const l=Uye(t,n);if(l){a.push(l.segment),n=l.nextIndex;continue}}a.push(qye(i)??{kind:"paragraph",text:r})}return a}function Qye({story:e,lessonId:t,preview:a}){const n=e.nodes[0]?.id??"",[r,i]=P.useState(n),[o,l]=P.useState(!1),[c,d]=P.useState([]),[m,f]=P.useState(null),h=J.lessons.getStoryProgress.useQuery({lessonId:t,storyId:e.id},{enabled:!a}),x=J.lessons.saveStoryProgress.useMutation({onSuccess:j=>{j.rewarded&&(re.success(`+${j.points} ÙÙØ§Ø·! Ø§ÙØªÙ ÙØª اÙÙØµØ© اÙÙ ØªÙØ±Ø¹Ø© Ø¨ÙØ¬Ø§Ø`),j.newBadges.forEac
869h(N=>re.success(`${N.icon} ØØµÙت عÙ٠شارة: ${N.nameAr}`)))}});P.useEffect(()=>{if(h.data){i(h.data.currentNodeId),l(h.data.completed);try{d(h.data.pathJson?JSON.parse(h.data.pathJson):[])}catch{d([])}}},[h.data]);const b=e.nodes.find(j=>j.id===r)??e.nodes[0],y=Math.max(0,e.nodes.findIndex(j=>j.id===b?.id)),w=j=>{const N=e.nodes.find(D=>D.id===j.nextNodeId),k=[...c,{nodeId:b?.id??n,choiceId:j.id,choiceLabel:j.label,nextNodeId:j.nextNodeId}].slice(-50);if(d(k),f(N?`Ø§Ø®ØªÙØ§Ø±Ù «${j.label}» ÙØªØ اÙÙ
رØÙØ© Ø§ÙØªØ§ÙÙØ© ÙØºÙÙØ± Ù
سار اÙÙØµØ©.`:`Ø§Ø®ØªÙØ§Ø±Ù «${j.label}» Ø£ÙÙÙ ÙØ°Ø§ اÙÙ
Ø³Ø§Ø±Ø Ø±Ø§Ø¬Ø¹ اÙÙØªÙجة ÙØªØ¹ÙÙÙ
Ù
٠أثر اÙÙØ±Ø§Ø±.`),!N){l(!0),a||x.mutate({lessonId:t,storyId:e.id,currentNodeId:b?.id??n,completed:!0,path:k});return}i(N.id),a||x.mutate({lessonId:t,storyId:e.id,currentNodeId:N.id,completed:!1,path:k})};return b?s.jsxs("section",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:147",className:"my-6 rounded-2xl border-3 border-black bg-memphis-lilac p-4 shadow-memphis","aria-labelledby":`story-${e.id}`,children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:148",className:"mb-3 flex flex-wrap items-start justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:148",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:148",className:"text-xs font-black text-black/60",children:"ÙØµØ© Ù
ØªÙØ±Ø¹Ø©"}),s.jsx("h3",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:148",id:`story-${e.id}`,className:"text-lg font-black text-black",children:e.title})]}),s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:148",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black text-black",children:["اÙÙ
رØÙØ© ",o?e.nodes.length:y+1," Ù
Ù ",e.nodes.length]})]}),s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:149",className:"mb-3 rounded-xl border-2 border-black bg-white p-3 text-sm font-bold leading-7 text-black",children:y===0&&!o?e.intro:b.text}),m&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:150",className:"mb-3 rounded-xl border-2 border-black bg-memphis-mint p-3 text-xs font-black leading-5 text-black",children:["أثر ÙØ±Ø§Ø±Ù: ",m]}),o?s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",className:"rounded-xl border-2 border-black bg-memphis-mint p-4 text-center text-sm font-black text-black",children:[s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",className:"mb-3",children:e.ending??"Ø£ØØ³Ùت! Ø£ÙÙ
ÙØª Ù
سار اÙÙØµØ© ÙØ§ØªØ®Ø°Øª ÙØ±Ø§Ø±Ù Ø¨Ø«ÙØ©."}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",className:"border-t-2 border-black/20 pt-3 text-right",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",className:"mb-2 text-xs font-black text-black/60",children:"Ù
سار٠Ù٠اÙÙØµØ©"}),s.jsx("ol",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",className:"space-y-1 text-xs font-bold",children:c.map((j,N)=>s.jsxs("li",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",className:"ml-1 inline-flex h-5 w-5 items-center justify-center rounded-full border border-black bg-white text-[10px]",children:N+1}),j.choiceLabel]},`${j.choiceId}-${N}`))})]})]}):s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",className:"grid gap-2 sm:grid-cols-2",children:b.choices.map(j=>s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:151",type:"button",onClick:()=>w(j),className:"rounded-xl border-2 border-black bg-memphis-yellow px-3 py-3 text-right text-sm font-black text-black transition-transform hover:-translate-y-0.5 active:translate-y-0",children:j.label},j.id))})]}):null}function Wye({activity:e,index:t,lessonId:a,difficulty:n,onCorrect:r,onAttempt:i,onSubmitted:o}){const l=P.useRef(null),[c,d]=P.useState(""),[m,f]=P.useState(null),[h,x]=P.useState(!1),b=Hye(n),[y,w]=P.useState(b.timeLimitSeconds),[j,N]=P.useState(!1),[k,D]=P.useState(!1),C=P.useMemo(()=>e.kind==="choice"||e.kind==="image"?Fye(e.options,e.correctIndex,`${a}-${t}`):[],[e,t,a]),S=e.kind==="blank"?c.trim().toLocaleLowerCase()===e.answer.trim().toLocaleLowerCase():m!==null&&C[m]?.isCorrect===!0,A=e.kind==="blank"?void 0:e.explanation,E=e.kind==="choice"&&e.mode==="true_false"?"ØµØ Ø£Ù
خطأ":e.kind==="choice"&&e.mode==="completion"?"Ø£ÙÙ
Ù Ø§ÙØ¹Ø¨Ø§Ø±Ø©":"Ù
ÙÙÙ ÙØ±Ø§Ø±";P.useEffect(()=>{const F=l.current;if(!F||h)return;if(!window.IntersectionObserver){D(!0);return}const I=new IntersectionObserver(([H])=>{H.isIntersecting&&(D(!0),I.disconnect())},{threshold:.45});return I.observe(F),()=>I.disconnect()},[h]),P.useEffect(()=>{if(!k||h||y<=0)return;const F=window.setInterval(()=>w(I=>Math.max(0,I-1)),1e3);return()=>window.clearInterval(F)},[y,h,k]);const R=()=>
869{if(!h)if(x(!0),i(S),o(S),S){const F=e.kind==="blank"?0:Bye(y,b.timeLimitSeconds),I=Math.max(1,e.points+F-(j?b.hintPenalty:0));r(I),re.success(`ÙØ±Ø§Ø± صØÙØ! سجÙÙØ§ ÙÙØ§Ø· اÙÙØ±Ø§Ø± ${F?"ÙÙ
ÙØ§Ùأة Ø§ÙØ³Ø±Ø¹Ø©":""} ⨠${A?`ÙÙ
Ø§Ø°Ø§Ø ${A}`:"ربطت Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø¨Ø§ÙØ³ÙØ§Ù Ø§ÙØ³Ø§Ø¨Ù ÙÙØ¯Ø±Ø³."}`)}else re.error("ÙÙØ³Øª Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© ÙØ°Ù اÙÙ
رة. راجع اÙÙÙØ±Ø© ÙØØ§ÙÙ Ù
رة أخرÙ.")};return s.jsxs("section",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:206",ref:l,className:"my-5 border-3 border-black bg-memphis-yellow/50 p-4 rounded-2xl shadow-memphis","aria-labelledby":`activity-${t}`,children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",className:"flex flex-wrap items-center justify-between gap-2 mb-3",children:[s.jsxs("h3",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",id:`activity-${t}`,className:"font-black text-sm text-black flex items-center gap-2",children:[s.jsx(pn,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",className:"w-4 h-4"})," ",E]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",className:"rounded-full border-2 border-black bg-white px-2 py-1 text-[11px] font-black text-black",children:["+",e.points," ÙÙØ§Ø·"]}),s.jsx("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",className:"rounded-full border-2 border-black bg-memphis-mint px-2 py-1 text-[11px] font-black text-black",children:b.label}),s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",className:`inline-flex items-center gap-1 rounded-full border-2 border-black px-2 py-1 text-[11px] font-black ${y===0?"bg-memphis-peach":"bg-memphis-lilac"}`,children:[s.jsx(zg,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:207",className:"h-3 w-3"}),k?y>0?`${y}Ø«`:"Ø§ÙØªÙ٠اÙÙÙØª":"ÙØ¨Ø¯Ø£ Ø¹ÙØ¯ اÙÙØµÙÙ"]})]})]}),s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:208",className:"font-black text-black mb-3",children:e.prompt}),e.kind==="blank"&&s.jsx("input",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:209",value:c,onChange:F=>d(F.target.value),placeholder:"Ø§ÙØªØ¨ إجابت٠ÙÙØ§",disabled:h,className:"w-full rounded-xl border-2 border-black bg-white px-3 py-2 font-bold text-black","aria-label":"إجابة اÙÙØ±Ø§Øº"}),e.kind==="image"&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:210",className:"mb-3 overflow-hidden rounded-xl border-2 border-black bg-white",children:[s.jsx("img",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:210",src:e.imageUrl,alt:e.alt,className:"h-36 w-full object-contain"}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:210",className:"p-2 flex items-center gap-2 text-xs font-bold text-black",children:[s.jsx(kpe,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:210",className:"w-4 h-4"})," اختر اÙÙØµÙ اÙÙ
طاب٠ÙÙØµÙرة"]})]}),(e.kind==="choice"||e.kind==="image")&&s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:211",className:"grid gap-2 sm:grid-cols-2",children:C.map((F,I)=>s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:211",type:"button",disabled:h,onClick:()=>f(I),className:`rounded-xl border-2 border-black px-3 py-2 text-right font-bold text-sm text-black transition-all ${m===I?"bg-memphis-lilac":"bg-white hover:bg-memphis-peach"}`,children:F.label},`${F.originalIndex}-${F.label}`))}),!h&&A&&s.jsxs("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:212",type:"button",onClick:()=>N(!0),disabled:j,className:"mt-3 inline-flex items-center gap-1 rounded-lg border-2 border-black bg-white px-3 py-1.5 text-xs font-black text-black disabled:opacity-60",children:[s.jsx(hu,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:212",className:"h-3.5 w-3.5"}),j?b.hintPenalty?`Ø§Ø³ØªÙØ®Ø¯Ù
اÙÙ
ؤشر (-${b.hintPenalty} ÙÙØ·Ø©)`:"Ø§Ø³ØªÙØ®Ø¯Ù
اÙÙ
ؤشر اÙÙ
جاÙÙ":b.hintLabel]}),j&&!h&&s.jsxs("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:213",className:"mt-2 rounded-lg border-2 border-black/20 bg-white/80 p-2 text-xs font-bold text-black",children:["Ù
ؤشر: ",A?.split(/[ØØ.]/)[0]??"ارجع Ø¥ÙÙ Ø§ÙØ®Ø·ÙØ© Ø§ÙØ¹Ù
ÙÙØ© اÙÙ
ذÙÙØ±Ø© ÙØ¨Ù Ø§ÙØ³Ø¤Ø§Ù."]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:214",className:"mt-3 flex items-center gap-3",children:[s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:214",type:"button",onClick:R,disabled:h||(e.kind==="blank"?!c.trim():m
869===null),className:"memphis-btn bg-black px-4 py-2 text-sm font-black text-white disabled:opacity-40",children:"تØÙÙ Ù
Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"}),h&&s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:214",className:`flex items-center gap-1 text-sm font-black ${S?"text-green-700":"text-red-700"}`,children:[S?s.jsx(bn,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:214",className:"w-4 h-4"}):s.jsx(Rg,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:214",className:"w-4 h-4"}),S?"Ø£ØØ³ÙØªØ ÙØ§ØµÙ اÙÙØ±Ø§Ø¡Ø©!":"ØØ§ÙÙ Ù٠اÙÙØ´Ø§Ø· Ø§ÙØªØ§ÙÙ"]})]}),h&&A&&s.jsxs("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:215",className:`mt-2 rounded-lg border-2 border-black/20 p-2 text-xs font-bold ${S?"bg-memphis-mint/50 text-black":"bg-memphis-peach/50 text-black"}`,children:["ð¡ ",S?"سبب Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©: ":"تذÙÙØ±: ",A]})]})}function Kye({action:e,onComplete:t}){const[a,n]=P.useState(""),[r,i]=P.useState(!1),o=()=>{a.trim().length<12||r||(i(!0),t())};return s.jsxs("section",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:228",className:"my-6 rounded-2xl border-3 border-black bg-memphis-mint p-4 shadow-memphis","aria-labelledby":"quick-action-title",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:229",className:"mb-3 flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:229",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:229",className:"text-xs font-black text-black/60",children:"اÙÙ
رØÙØ© Ø§ÙØ£Ø®Ùرة: طبÙÙ"}),s.jsx("h3",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:229",id:"quick-action-title",className:"text-lg font-black text-black",children:e.label})]}),s.jsx("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:229",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black text-black",children:"+5 ÙÙØ§Ø·"})]}),s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:230",className:"mb-3 font-black leading-7 text-black",children:e.prompt}),s.jsx("label",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:231",htmlFor:"lesson-application-plan",className:"mb-2 block text-xs font-bold text-black/70",children:"Ø§ÙØªØ¨ Ù
ÙÙÙØ§Ù Ù
ØØ¯Ø¯Ø§Ù ÙØ®Ø·ÙØ© Ø³ØªØ¬Ø±Ø¨ÙØ§ اÙÙÙÙ
Ø ÙØ§ ØªØ°ÙØ± أسÙ
اء زÙ
ÙØ§Ø¡ Ø£Ù Ø¨ÙØ§Ùات عÙ
Ù ØØ³Ø§Ø³Ø©."}),s.jsx("textarea",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:232",id:"lesson-application-plan",maxLength:240,rows:2,value:a,onChange:l=>n(l.target.value),disabled:r,placeholder:"Ù
Ø«ÙØ§Ù: ÙÙ Ø§ÙØ§Ø¬ØªÙ
اع اÙÙØ§Ø¯Ù
Ø³Ø£Ø·ÙØ¨ رأ٠زÙ
ÙÙÙ ÙØ¨Ù ØªÙØ®Ùص اÙÙØ±Ø§Ø± اÙÙ
شترÙ.",className:"w-full rounded-xl border-2 border-black bg-white p-3 text-sm font-bold text-black"}),r?s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:233",className:"mt-3 rounded-xl border-2 border-black bg-white p-3 text-sm font-black text-black",children:[s.jsx(bn,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:233",className:"ml-1 inline h-4 w-4 text-green-700"})," تÙ
ØªØ«Ø¨ÙØª Ø®Ø·ÙØªÙ ÙÙ ÙØ°Ù Ø§ÙØ¬Ùسة. ",e.explanation]}):s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:233",type:"button",disabled:a.trim().length<12,onClick:o,className:"memphis-btn mt-3 bg-black px-4 py-2 text-sm font-black text-white disabled:opacity-40",children:"Ø«Ø¨ÙØª Ø®Ø·ÙØªÙ اÙÙÙÙ
"})]})}function $ye({lessonId:e,lessonTitle:t,teamId:a}){const[n,r]=P.useState(""),i=J.teamMessages.send.useMutation({onSuccess:()=>{re.success("ÙØµÙت ÙÙØ±ØªÙ Ø¥Ù٠رسائ٠اÙÙØ±ÙÙØ Ø´Ø¬ÙØ¹ زÙ
ÙØ§Ø¡Ù عÙ٠اÙÙÙØ§Ø´"),r("")},onError:o=>re.error(o.message)});return s.jsxs("section",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:243",className:"my-5 rounded-2xl border-2 border-black bg-memphis-lilac/50 p-4","aria-labelledby":"lesson-team-discussion",children:[s.jsx("h3",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:244",id:"lesson-team-discussion",className:"text-base font-black text-black",children:"Ø®Ù٠اÙÙÙØ±Ø© ØªÙØªÙÙ ÙÙÙØ±ÙÙ"}),s.jsxs("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:245",className:"mt-1 text-sm font-bold text-black/75",children:["Ù٠«",t,"Â»Ø Ø£Ù Ø®Ø·Ù
869Ø© Ø¬Ø±ÙØ¨ØªÙØ§Ø Ø§Ø³Ø£Ù Ø²Ù
ÙØ§Ø¡Ù ÙÙÙ ÙØªØ¹Ø§Ù
ÙÙÙ Ù
ع اÙÙ
ÙÙÙØ ÙØ§ØØªØ±Ù
Ø§Ø®ØªÙØ§Ù تجاربÙÙ
."]}),a?s.jsxs(s.Fragment,{children:[s.jsx("label",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:247",htmlFor:"lesson-team-message",className:"mt-3 block text-xs font-bold text-black/75",children:"Ø±Ø³Ø§ÙØªÙ ÙØ£Ø¹Ø¶Ø§Ø¡ ÙØ±ÙÙÙ (Ø§Ø®ØªÙØ§Ø±ÙØ©)"}),s.jsx("textarea",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:248",id:"lesson-team-message",maxLength:190,rows:2,value:n,onChange:o=>r(o.target.value),placeholder:"Ø£ÙØ§ ÙØ§ÙÙ Ø£Ø¬Ø±ÙØ¨... ÙØ´ رأÙÙÙ
Ø",className:"mt-1 w-full rounded-xl border-2 border-black bg-white p-3 text-sm font-bold text-black"}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:249",className:"mt-2 flex flex-wrap items-center gap-3",children:[s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:249",type:"button",disabled:i.isPending||n.trim().length<8,onClick:()=>i.mutate({teamId:a,message:`Ù
٠درس «${t.slice(0,55)}»: ${n.trim()} â /lesson/${e}`,emoji:"ð¬"}),className:"memphis-btn bg-memphis-yellow px-4 py-2 text-sm font-black text-black disabled:opacity-40",children:i.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...":"ÙØ§ÙØ´ اÙÙÙØ±Ø© Ù
ع اÙÙØ±ÙÙ"}),s.jsx("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:249",className:"text-xs font-bold text-black/60",children:"ÙØ§ تشار٠Ù
عÙÙÙ
ات Ø´Ø®ØµÙØ© Ø£Ù Ø¨ÙØ§Ùات عÙ
Ù Ø³Ø±ÙØ©."})]})]}):s.jsx(jt,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:250",href:"/teams",className:"mt-3 inline-block text-sm font-black text-blue-800 underline",children:"Ø§ÙØ¶Ù
Ø¥ÙÙ ÙØ±ÙÙ ÙØªØ¨Ø§Ø¯Ù تطبÙÙØ§Øª Ø§ÙØ¯Ø±Ùس"})]})}function HC({content:e,lessonId:t,lessonTitle:a="",onPointsEarned:n,preview:r=!1}){const i=J.lessons.completeInteractiveActivity.useMutation(),o=J.lessons.recordInteractiveActivityAttempt.useMutation(),l=J.lessons.recordAchievementShare.useMutation(),c=J.lessons.interactionDifficulty.useQuery({lessonId:t},{enabled:!r}),d=J.profile.achievementSoundsPreference.useQuery(void 0,{enabled:!r}),m=J.auth.me.useQuery(void 0,{enabled:!r}),f=J.teams.myTeam.useQuery(void 0,{enabled:!r&&!!m.data}),{playBadge:h}=k2(d.data?.enabled??!0),{launch:x}=ab(),b=P.useMemo(()=>Vye(e),[e]),y=P.useMemo(()=>Lye(a,e),[a,e]),[w,j]=P.useState(0),[N,k]=P.useState(0),[D,C]=P.useState(!1),[S,A]=P.useState(-1),[E,R]=P.useState(0),[F,I]=P.useState(0),H=c.data?.level??"balanced",_=b.filter(Y=>Y.kind==="activity"),V=(Y,Q)=>{r||o.mutate({lessonId:t,activityKey:`reading-activity-${Q}`,isCorrect:Y})},W=async Y=>{const Q=`Ø£ÙÙ
ÙØª Ø£ÙØ´Ø·Ø© اÙÙØ±Ø§Ø¡Ø© Ø§ÙØªÙاعÙÙØ© Ù٠«Ù
٠جد ÙØ¬Ø¯Â» ÙØØµÙØª عÙÙ ${w} ÙÙØ·Ø©!`,U=window.location.href;l.mutate({lessonId:t,channel:Y});try{Y==="whatsapp"?window.open(`https://wa.me/?text=${encodeURIComponent(`${Q} ${U}`)}`,"_blank","noopener,noreferrer"):Y==="x"?window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(Q)}&url=${encodeURIComponent(U)}`,"_blank","noopener,noreferrer"):Y==="facebook"?window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(U)}`,"_blank","noopener,noreferrer"):Y==="native"||Y==="team"?navigator.share?await navigator.share({title:"Ø¥ÙØ¬Ø§Ø² ØªÙØ§Ø¹ÙÙ",text:Q,url:U}):(await navigator.clipboard.writeText(`${Q} ${U}`),re.success(Y==="team"?"تÙ
ÙØ³Ø® Ø§ÙØ¥Ùجاز ÙÙ
Ø´Ø§Ø±ÙØªÙ داخ٠Ù
جÙ
ÙØ¹Ø© اÙÙØ±ÙÙ":"تÙ
ÙØ³Ø® Ø¥ÙØ¬Ø§Ø²Ù ÙÙÙ
Ø´Ø§Ø±ÙØ©")):(await navigator.clipboard.writeText(`${Q} ${U}`),re.success("تÙ
ÙØ³Ø® Ø¥ÙØ¬Ø§Ø²Ù ÙÙÙ
Ø´Ø§Ø±ÙØ©")),C(!0)}catch{re.info("ÙÙ
ÙÙÙ Ù
Ø´Ø§Ø±ÙØ© Ø¥ÙØ¬Ø§Ø²Ù ÙØ§ØÙاÙ")}},B=(Y,Q)=>{const U=N9(E+1),oe=Y+U;if(j(X=>X+1),n?.(oe),r){re.success(`Ù
عاÙÙØ© ÙØ§Ø¬ØØ©! +${oe} ÙÙØ·Ø© ØªØ¬Ø±ÙØ¨ÙØ© â¨`);return}i.mutate({lessonId:t,activityKey:`reading-activity-${Q}`,points:oe},{onSuccess:X=>{X.awarded?(h(),x(1200),re.success(`Ù
ÙØ§Ùأة ØªÙØ§Ø¹ÙÙØ© +${X.points} ÙÙØ·Ø© ð`)):re.info("تÙ
تسجÙÙ ÙØ°Ø§ اÙÙØ´Ø§Ø· Ù
Ø³Ø¨ÙØ§Ù")},onError:X=>re.error(`تعذر ØÙظ اÙÙÙØ§Ø·: ${X.message}`)})},K=_.length+1,ae=Math.round(N/K*100),$=N>=K,Z=3,O=N9(E+1);return s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:318",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"mb-5 rounded-2xl border-2 border-black bg-white p-3 shadow-memphis","aria-label":`ØªÙØ¯Ù
Ø§ÙØ£Ùشطة ${ae}%`,children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"mb-2 flex items-center justify-between gap-3 text-sm font-black text-black",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",children:"رØÙØ© Ø§ÙØ¯Ø±Ø³: تعÙÙÙ
Ø Ø¬Ø±ÙØ¨Ø طبÙÙ"}),s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",children:[ae,"%"]})]}),s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"h-3 overflow-hidden rounded-full border-2 border-black bg-gray-100",children:s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"h-full bg-memphis-mint transition-all duration-300",style:{width:`${ae}%`}})}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"mt-3 rounded-xl border-2 border-black bg-memphis-yellow/50 p-2.5",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"flex flex-wrap items-center justify-between gap-2 text-xs font-black text-black",children:[s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"inline-flex items-center gap-1",children:[s.jsx(Eo,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"h-4 w-4"}),"Ø³ÙØ³ÙØ© Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©: ",E]}),s.jsx("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",children:Gye(F)})]}),s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"mt-2 grid grid-cols-3 gap-1.5","aria-label":`ØªÙØ¯Ù
Ø³ÙØ³ÙØ© اÙÙØ±Ø§Ø± ${Math.min(E,Z)} Ù
Ù ${Z}`,children:Array.from({length:Z},(Y,Q)=>s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:`h-2.5 rounded-full border border-black transition-colors ${E>Q?"bg-memphis-peach":"bg-white"}`},Q))}),s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"mt-2 text-[11px] font-bold text-black/75",children:E>=Z?"Ø³ÙØ³ÙØ© ÙÙÙØ©! ØØ§Ùظ عÙÙÙØ§ ÙØªÙØ§ØµÙ Ø±ÙØ¹ Ù
ÙØ§Ùأة اÙÙØ±Ø§Ø±.":O?`Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© Ø§ÙØªØ§ÙÙØ© تÙ
ÙØÙ Ù
ÙØ§Ùأة Ø³ÙØ³ÙØ© +${O} ÙÙØ·Ø©.`:"أجب ØµØ Ù
رتÙÙ Ù
تتاÙÙØªÙÙ ÙØªÙعÙÙ Ù
ÙØ§Ùأة Ø§ÙØ³ÙØ³ÙØ©."})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",className:"mt-2 flex flex-wrap items-center justify-between gap-2 text-xs font-bold text-black/60",children:[s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",children:["Ø£ÙÙ
ÙØª ",
869N," Ù
Ù ",K," Ù
ØØ·Ø§Øª ØªÙØ§Ø¹ÙÙØ©"]}),s.jsxs("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:319",children:["Ù
ستÙ٠اÙÙØ±Ø§Ø±: ",c.data?.label??"Ù
ØªÙØ§Ø²Ù"]})]})]}),b.map((Y,Q)=>{const U=b.findIndex((X,ne)=>X.kind==="activity"&&ne>S);return U!==-1&&Q>U?Q===U+1?s.jsx("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:320",className:"my-4 rounded-xl border-2 border-dashed border-black/30 bg-gray-50 p-4 text-center text-sm font-black text-black/60",children:"Ø£ÙÙ
Ù Ù
ÙÙ٠اÙÙØ±Ø§Ø± Ø§ÙØ³Ø§Ø¨Ù ÙÙØªØ بÙÙØ© اÙÙØ±Ø§Ø¡Ø©."},Q):null:Y.kind==="paragraph"?s.jsx("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:320",className:"mb-4 leading-8",children:Y.text},Q):Y.kind==="heading"?Y.level===1?s.jsx("h2",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:320",className:"mt-7 mb-3 border-r-4 border-memphis-orange pr-3 text-xl font-black text-black",children:Y.text},Q):s.jsx("h3",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:320",className:"mt-6 mb-2 text-base font-black text-black",children:Y.text},Q):Y.kind==="story"?s.jsx(Qye,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:320",story:Y.story,lessonId:t,preview:r},Q):s.jsx(Wye,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:320",activity:Y.activity,index:Q,lessonId:t,difficulty:H,onCorrect:X=>B(X,Q),onAttempt:X=>V(X,Q),onSubmitted:X=>{k(ne=>ne+1),A(Q),R(ne=>{const ge=X?ne+1:0;return I(me=>Math.max(me,ge)),X&&[2,3,4].includes(ge)&&re.success(ge===3?"Ø³ÙØ³ÙØ© ÙØ±Ø§Ø± ÙÙÙØ©! ÙÙØ¹Ùت Ù
ÙØ§Ùأت٠ð":`Ø³ÙØ³ÙØ© ÙØ±Ø§Ø± ${ge} إجابات صØÙØØ©!`),ge})}},Q)}),s.jsx(Kye,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:321",action:y,onComplete:()=>{V(!0,"quick-action"),B(5,"quick-action"),k(Y=>Y+1)}}),!r&&m.data&&s.jsx($ye,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:322",lessonId:t,lessonTitle:a,teamId:f.data?.membership.teamId}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",className:"mt-4 flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("p",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",className:"text-xs font-black text-black/60",children:["Ø£ÙØ¬Ø²Øª ",Math.min(w,K)," Ù
Ù ",K," Ù
ØØ·Ø§Øª ØªÙØ§Ø¹ÙÙØ©."]}),$&&!r&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",className:"flex flex-wrap items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",className:"text-xs font-black text-black",children:D?"تÙ
تسجÙ٠اÙÙ
Ø´Ø§Ø±ÙØ©":"Ø´Ø§Ø±Ù Ø¥ÙØ¬Ø§Ø²Ù:"}),s.jsxs("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",type:"button",onClick:()=>W("team"),className:"memphis-btn bg-memphis-yellow px-2 py-1 text-xs font-black text-black",children:[s.jsx(Lr,{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",className:"inline h-3 w-3"})," اÙÙØ±ÙÙ"]}),s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",type:"button",onClick:()=>W("whatsapp"),className:"memphis-btn bg-green-200 px-2 py-1 text-xs font-black text-black",children:"ÙØ§ØªØ³Ø§Ø¨"}),s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",type:"button",onClick:()=>W("x"),className:"memphis-btn bg-gray-200 px-2 py-1 text-xs font-black text-black",children:"X"}),s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",type:"button",onClick:()=>W("facebook"),className:"memphis-btn bg-blue-200 px-2 py-1 text-xs font-black text-black",children:"ÙÙØ³Ø¨ÙÙ"}),s.jsx("button",{"data-loc":"client/src/components/InteractiveLessonContent.tsx:323",type:"button",onClick:()=>W("copy"),className:"memphis-btn bg-white px-2 py-1 text-xs font-black text-black",children:"ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·"})]})]})]})}function Xye(){return"استخدÙ
Ø§ÙØ¹ÙاÙÙÙ Ø¨ØµÙØºØ© ## عÙÙØ§ÙØ ÙØ§ÙÙ
صادر Ø¨ØµÙØºØ© [[source|اسÙ
اÙÙ
صدر|https://example.com]]. ÙÙÙØªÙاعÙ: [[blank|Ø§ÙØ³Ø¤Ø§Ù|Ø§ÙØ¥Ø¬Ø§Ø¨Ø©|3]] Ø£Ù [[choice|Ø§ÙØ³Ø¤Ø§Ù|Ø®ÙØ§Ø± 1|Ø®ÙØ§Ø± 2|شرØ|3|0]] Ø£Ù [[image|Ø§ÙØ³Ø¤Ø§Ù|رابط Ø§ÙØµÙرة|ÙØµÙ Ø§ÙØµÙرة|Ø®ÙØ§Ø± 1|Ø®ÙØ§Ø± 2|شرØ|3|0]]. ÙÙÙØµØµ: [[story_start|story-id|Ø§ÙØ¹ÙÙØ§Ù|Ù
ÙØ¯Ù
Ø©]] Ø«Ù
[[node|node-1|Ù
869ص اÙÙ
رØÙØ©|ÙØ±Ø§Ø± Ø£ÙÙ>node-2|ÙØ±Ø§Ø± ÙÙØ§Ø¦Ù>end]] Ø«Ù
[[story_end|Ø±Ø³Ø§ÙØ© اÙÙÙØ§ÙØ©]]"}function Yye(e){let t=2166136261;for(let a=0;a<e.length;a+=1)t^=e.charCodeAt(a),t=Math.imul(t,16777619);return t>>>0}function Zye(e){let t=e>>>0;return()=>{t+=1831565813;let a=t;return a=Math.imul(a^a>>>15,a|1),a^=a+Math.imul(a^a>>>7,a|61),((a^a>>>14)>>>0)/4294967296}}function A9(){if(typeof globalThis.crypto?.getRandomValues=="function"){const e=new Uint32Array(2);return globalThis.crypto.getRandomValues(e),`${e[0].toString(36)}-${e[1].toString(36)}`}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function Jye(e,t,a){const n=e.map((i,o)=>({label:i,originalIndex:o,isCorrect:o===t})),r=Zye(Yye(a));for(let i=n.length-1;i>0;i-=1){const o=Math.floor(r()*(i+1));[n[i],n[o]]=[n[o],n[i]]}return n}const e1e=20,ug=30;function fX(e,t){if(!e)return 0;const a=Math.max(0,Math.min(Math.trunc(t),ug));return a>=21?3:a>=11?2:a>=1?1:0}function t1e(e,t){const a=Math.max(0,Math.trunc(t)),n=e.reduce((o,l)=>o+(l.isCorrect?1:0),0),r=a===0?0:Math.round(n/a*e1e),i=e.reduce((o,l)=>
869o+fX(l.isCorrect,l.secondsRemaining),0);return{score:n,totalQuestions:a,basePoints:r,speedBonus:i,pointsEarned:r+i}}const a1e=5;function n1e(e,t=ug){const a=Math.max(1,t),n=Math.max(0,Math.min(e,a)),r=Math.round(n/a*100),i=n===0?"expired":n<=a1e?"critical":n<=10?"warning":"normal";return{secondsRemaining:n,percentage:r,tone:i,label:i==="expired"?"Ø§ÙØªÙ٠اÙÙÙØª":i==="critical"?`باÙÙ ${n} Ø«ÙØ§ÙÙ â Ø§ØØ³Ù إجابتÙ!`:`${n} ثاÙÙØ© ٠تبÙÙØ©`}}function s1e(e,t){const a=Math.max(0,t),n=Math.max(0,Math.min(e,a)),r=a===0?0:Math.round(n/a*100);return a>0&&n===a?{percentage:r,isSuccessful:!0,icon:"ð",title:"ÙØªÙجة ÙØ§Ù ÙØ©!",message:"أتÙÙØª Ø£ÙÙØ§Ø± Ø§ÙØ¯Ø±Ø³ بترÙÙØ² ٠٠تاز."}:r>=80?{percentage:r,isSuccessful:!0,icon:"â",title:"Ø¥ØªÙ Ø§Ù Ù ØªÙ ÙØ²!",message:"ÙÙÙ Ù ÙÙÙØ Ù٠راجعة Ø¨Ø³ÙØ·Ø© ØªØ«Ø¨ÙØª Ø§ÙØªÙاصÙÙ."}:r>=60?{percentage:r,isSuccessful:!0,icon:"ð¯",title:"أت٠٠ت اÙÙÙÙØ² Ø¨ÙØ¬Ø§Ø",message:"أداء Ø¬ÙØ¯Ø راجع Ø§ÙØ£Ø®Ø·Ø§Ø¡ ÙØªØµÙ Ø¥ÙÙ Ø§ÙØ¥ØªÙاÙ."}:{percentage:r,isSuccessful:!1,icon:"ðª",title:"Ù ØØ§ÙÙØ© تبÙÙ Ø¥ØªÙØ§ÙÙ",message:"راجع اÙÙÙØ§Ø· Ø§ÙØªÙ ÙØ§ØªØªÙ Ø«Ù Ø¬Ø±ÙØ¨ ٠رة أخرÙ."}}function r1e(e){if(!e?.trim())return"ارجع Ø¥Ù٠اÙÙÙØ±Ø© اÙ٠رتبطة Ø¨Ø§ÙØ³Ø¤Ø§Ù ÙÙ Ø§ÙØ¯Ø±Ø³Ø ÙÙØ§Ø±ÙÙØ§ Ø¨Ø§ÙØ¨Ø¯Ø§Ø¦Ù ÙØ¨Ù اÙÙ ØØ§ÙÙØ© Ø§ÙØªØ§ÙÙØ©.";const t=e.replace(/\[([^\]]+)]\(https?:\/\/[^)]+\)/g,"$1").replace(/\(\s*https?:\/\/[^)]+\)/g,"").replace(/https?:\/\/\S+/g,"").replace(/\s+/g," ").trim(),n=(t.match(/[^.!Ø]+[.!Ø]?/g)??[t]).slice(0,2).join(" ").trim();return n.length>260?`${n.slice(0,257).trim()}â¦`:n}function i1e(e){const t=e.rank===null?"ÙØ£ØªØ§Ø¨Ø¹ ØªØ±ØªÙØ¨Ù ÙÙ ÙÙØØ© صدارة Ù ÙØµØ© أثر.":`ÙØÙÙØª اÙÙ Ø±ÙØ² #${e.rank} ÙÙ ÙÙØØ© صدارة اÙÙÙÙØ².`;return`Ø£ÙÙÙØª ÙÙÙØ² «${e.lessonTitle}» ÙÙ Ù ÙØµØ© أثر ð¯ 870${e.score}/${e.totalQuestions} إجابة صØÙØØ© · ${e.pointsEarned} ÙÙØ·Ø© · +${e.speedBonus} سرعة 871${t}`}function pN(e){const t=Number.parseInt(e??"",10);return Number.isFinite(t)&&t>0?t:null}function o1e(e){const t=e.origin.replace(/\/$/,""),a=new URL(`/quiz-challenge/${e.lessonId}`,t);return a.searchParams.set("challenge","quiz"),a.searchParams.set("name",e.challengerName.trim().slice(0,80)||"٠تعÙ٠٠٠أثر"),a.searchParams.set("score",String(Math.max(0,e.score))),a.searchParams.set("total",String(Math.max(1,e.totalQuestions))),a.searchParams.set("points",String(Math.max(0,e.pointsEarned))),e.rank&&e.rank>0&&a.searchParams.set("rank",String(e.rank)),e.token&&a.searchParams.set("token",e.token.slice(0,32)),a.toString()}function hX(e){const t=new URLSearchParams({challenge:"quiz",name:e.challengerName.trim().slice(0,80)||"٠تعÙ٠٠٠أثر",score:String(Math.max(0,e.score)),total:String(Math.max(1,e.totalQuestions)),points:String(Math.max(0,e.pointsEarned)),rematch:"1",accepted:"1",token:e.token.slice(0,32)});return e.rank&&e.rank>0&&t.set("rank",String(e.rank)),`/quiz-challenge/${e.lessonId}?${t.toString()}`}function gX(e){const t=new URLSearchParams(e);if(t.get("challenge")!=="quiz")return null;const a=pN(t.get("score")),n=pN(t.get("total"));if(a===null||n===null||a>n)return null;const r=pN(t.get("rank")),i=Number.parseInt(t.get("points")??"0",10);return{challengerName:t.get("name")?.trim().slice(0,80)||"٠تعÙ٠٠٠أثر",score:a,totalQuestions:n,pointsEarned:Number.isFinite(i)&&i>0?i:0,rank:r,token:t.get("token")?.trim().slice(0,32)||null}}const qC="athar-quiz-rank-badge-celebration",l1e=600*1e3;function c1e(e){typeof window>"u"||e.length===0||window.sessionStorage.setItem(qC,JSON.stringify({createdAt:Date.now(),badges:e}))}function d1e(){if(typeof window>"u")return[];const e=window.sessionStorage.getItem(qC);if(window.sessionStorage.removeItem(qC),!e)return[];try{const t=JSON.parse(e);return!Array.isArray(t.badges)||typeof t.createdAt!="number"||Date.now()-t.createdAt>l1e?[]:t.badges.filter(a=>!!(a&&typeof a.id=="number"&&typeof a.nameAr=="string"&&typeof a.icon=="str
871ing"&&typeof a.conditionValue=="number"))}catch{return[]}}function u1e(){const e=Ol(),t=parseInt(e.id??"0"),{isAuthenticated:a,user:n}=Ma(),[r,i]=P.useState(null),{launch:o}=ab(),l=!!Cu(),c=J.lessons.byId.useQuery({id:t},{enabled:!!t}),d=J.quiz.byLesson.useQuery({lessonId:t},{enabled:!!t}),m=J.lessons.myCompletions.useQuery(void 0,{enabled:a}),f=J.profile.achievementSoundsPreference.useQuery(void 0,{enabled:a}),{primeAudio:h,playBadge:x,playQuizCorrect:b,playQuizWarning:y,playQuizWrong:w}=k2(f.data?.enabled??!0),j=J.useUtils(),N=J.lessons.complete.useMutation({onSuccess:be=>{if(be?.alreadyCompleted)re.info("ÙÙØ¯ Ø£ÙÙ
ÙØª ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³ Ù
Ø³Ø¨ÙØ§Ù");else{re.success(`Ø£ØØ³Ùت! ØØµÙت عÙÙ ${c.data?.pointsReward} ÙÙØ·Ø© ð`),be&&"leveledUp"in be&&be.leveledUp&&i({newLevel:be.newLevel,oldLevel:be.oldLevel});const G=be?.newBadges??[];G.length>0&&(x(),o(2500),G.forEach(je=>{re.success(`ðï¸ ØØµÙت عÙ٠شارة Ø¬Ø¯ÙØ¯Ø©: ${je.icon} ${je.nameAr}!`,{duration:5e3,style:{background:"#FDE68A",color:"#000",border:"2px solid #000",fontWeight:"bold"}})}))}j.lessons.myCompletions.invalidate(),j.profile.me.invalidate()},onError:be=>re.error(be.message)}),k=J.quiz.submit.useMutation({onSuccess:be=>{re.success(`Ø£ÙÙÙØª اÙÙÙÙØ²! ${be.basePoints} ÙÙØ·Ø© Ø¯ÙØ© + ${be.speedBonus} سرعة = ${be.pointsEarned} ÙÙØ·Ø© ð¯`),be.leaderboardBadges.length>0&&c1e(be.leaderboardBadges),j.profile.me.invalidate(),j.quiz.leaderboard.invalidate(),j.quiz.myProfile.invalidate(),j.quiz.myLeaderboardRank.invalidate(),j.quiz.challengeHistory.invalidate()},onError:be=>re.error(be.message)}),D=J.quiz.createChallenge.useMutation(),[C,S]=P.useState("idle"),[A,E]=P.useState(0),[R,F]=P.useState(null),[I,H]=P.useState(!1),[_,V]=P.useState(0),[W,B]=P.useState([]),[K,ae]=P.useState(()=>A9()),[$,Z]=P.useState(ug),[O,Y]=P.useState([]),[Q,U]=P.useState(!1),[oe,X]=P.useState(!1),[ne,ge]=P.useState(null),me=P.useRef(!1),Ae=P.useRef(null),Pe=c.data,L=d.data??[],ke=(m.data??[]).some(be=>be.lessonId===t),Me=L[A],Ze=P.useMemo(()=>{const be=Array.isArray(Me?.options)?Me.options.filter(G=>typeof G=="string"):[];return Jye(be,Me?.correctIndex??-1,`${K}-${Me?.id??A}`)},[A,Me,K]),Ce=R!==null&&Ze[R]?.isCorrect===!0,Te=n1e($),Ke=s1e(_,L.length),Ve=O.filter(be=>!be.correct),ht=O.at(-1),pe=t1e(O.map(be=>({isCorrect:be.correct,secondsRemaining:be.secondsRemaining})),L.length),et=k.data??pe,xe=P.useMemo(()=>typeof window>"u"?null:gX(window.location.search),[]),it=J.quiz.myLeaderboardRank.useQuery({lessonId:t,period:"all"},{enabled:a&&C==="result"&&!!k.data}),Tt=async be=>{const G=ne==="challenge"&&xe!==null,je=i1e({lessonTitle:Pe?.titleAr??"اÙÙÙÙØ²",score:_,totalQuestions:L.length,pointsEarned:et.pointsEarned,speedBonus:et.speedBonus,rank:it.data?.rank??null});X(!0);try{const ze=it.data?.rank??null,Qe=k.data?.quizResultId?await D.mutateAsync({quizResultId:k.data.quizResultId}):null,ye=o1e({origin:window.location.origin,lessonId:t,challengerName:n?.name??"Ù
تعÙÙ
Ù
تÙ
ÙØ²",score:_,totalQuestions:L.length,pointsEarned:et.pointsEarned,rank:ze,token:Qe?.token??xe?.token}),Ee=G?await $ve({challengerName:xe.challengerName,challengerScore:xe.score,challengerPoints:xe.pointsEarned,challengerRank:xe.rank,userName:n?.name??"Ù
تعÙÙ
Ù
تÙ
ÙØ²",userScore:_,userPoints:et.pointsEarned,userRank:ze,totalQuestions:L.length,lessonTitle:Pe?.titleAr??"اÙÙÙÙØ²",theme:be.theme,avatarDataUrl:be.avatarDataUrl,backgroundDataUrl:be.backgroundDataUrl,challengeUrl:ye}):await Vve({userName:n?.name??"Ù
تعÙÙ
Ù
تÙ
ÙØ²",lessonTitle:Pe?.titleAr??"اÙÙÙÙØ²",score:_,totalQuestions:L.length,pointsEarned:et.pointsEarned,speedBonus:et.speedBonus,rank:ze,theme:be.theme,avatarDataUrl:be.avatarDataUrl,backgroundDataUrl:be.backgroundDataUrl,challengeUrl:ye}),te=new File([Ee],G?Xve():Qve(ze),{type:"image/png"});if(typeof navigator.share=="function"&&(typeof navigator.canShare!="function"||navigator.canShare({files:[te]})))await navigator.share({title:G?"Ù
ÙØ§Ø±ÙØ© ØªØØ¯Ù اÙÙÙÙØ² ÙÙ Ù
ÙØµØ© أثر":"ÙØªÙجت٠ÙÙ Ù
ÙØµØ© أثر",text:G?`ÙØ¨Ùت ØªØØ¯Ù ${xe.challengerName} Ù٠«${Pe?.titleAr??"اÙÙÙÙØ²"}» â Ø´ÙÙÙØ§ اÙÙ
ÙØ§Ø±ÙØ©!`:je,files:[te]}),re.success(G?"تÙ
تجÙÙØ² Ø¨Ø·Ø§ÙØ© Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù ÙÙÙ
Ø´Ø§Ø±ÙØ©":"تÙ
تجÙÙØ² Ø¨Ø·Ø§ÙØ© ÙØªÙجت٠ÙÙÙ
Ø´Ø§Ø±ÙØ©");else{const mt=URL.createObjectURL(Ee),z=document.createElement("a");z.href=mt,z.download=te.name,document.body.appendChild(z),z.click(),document.body.removeChild(z),window.setTimeout(()=>URL.revokeObjectURL(mt),500),re.success(G?"تÙ
تØÙ
ÙÙ Ø¨Ø·Ø§ÙØ© Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù ÙØµÙرة":"تÙ
تØÙ
ÙÙ Ø¨Ø·Ø§ÙØ© اÙÙØªÙجة ÙØµÙØ±Ø©Ø Ø£Ø±ÙÙÙØ§ Ù٠تطبÙ٠اÙÙ
Ø´Ø§Ø±ÙØ© Ø§ÙØ°Ù ØªÙØ¶ÙÙ")}ge(null)}catch(ze){ze instanceof DOMException&&ze.name==="AbortError"||re.error("تعذرت Ù
Ø´Ø§Ø±ÙØ© اÙÙØªÙجة ØØ§ÙÙØ§Ù")}finally{X(!1)}},bt=P.useCallback((be,G=!1)=>
871{if(me.current||!Me)return;me.current=!0;const je=be===null?null:Ze[be],ze=Ze.find(Ee=>Ee.isCorrect),Qe=je?.isCorrect===!0,ye=fX(Qe,$);F(be),H(!0),Qe&&V(Ee=>Ee+1),Qe?b():w(),Qe&&ye===3&&!l&&(o(1600,170),re.success("إجابة Ø®Ø§Ø·ÙØ©! ØØµÙت عÙ٠أعÙÙ Ù
ÙØ§Ùأة سرعة (+3)",{duration:2600})),B(Ee=>[...Ee,Qe]),Y(Ee=>[...Ee,{questionId:Me.id,questionNumber:A+1,question:Me.questionAr,selectedAnswer:je?.label??null,correctAnswer:ze?.label??"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© ØºÙØ± Ù
ØªØ§ØØ©",explanation:r1e(Me.explanationAr),correct:Qe,timedOut:G,selectedOriginalIndex:je?.originalIndex??null,secondsRemaining:$,speedBonus:ye}])},[A,Me,o,Ze,b,w,l,$]),vt=P.useCallback(be=>{$<=0||bt(be,!1)},[bt,$]);P.useEffect(()=>{if(C!=="quiz"||!Me||I)return;if($<=0){bt(null,!0);return}const be=window.setTimeout(()=>Z(G=>Math.max(0,G-1)),1e3);return()=>window.clearTimeout(be)},[Me,C,bt,$,I]),P.useEffect(()=>{C!=="quiz"||I||$<1||$>3||Ae.current!==$&&(Ae.current=$,y())},[y,C,$,I]);const St=()=>{A<L.length-1?(me.current=!1,Ae.current=null,E(be=>be+1),F(null),H(!1),Z(ug)):(S("result"),U(!1),k.mutate({lessonId:t,answers:O.map(be=>({questionId:be.questionId,selectedOriginalIndex:be.selectedOriginalIndex,secondsRemaining:be.secondsRemaining})),challengeToken:xe?.token??void 0}),Ke.isSuccessful&&!l&&o(1500))},de=()=>{h(),me.current=!1,Ae.current=null,k.reset(),ae(A9()),S("quiz"),E(0),F(null),H(!1),V(0),B([]),Z(ug),Y([]),U(!1),X(!1),ge(null)};return c.isLoading?s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:321",className:"min-h-screen w-full overflow-x-clip memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/LessonPage.tsx:322"}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:323",className:"mx-auto w-full max-w-3xl min-w-0 px-4 py-8",children:s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:324",className:"memphis-card h-64 animate-pulse bg-gray-100"})})]}):Pe?s.jsxs(s.Fragment,{children:[s.jsx(bve,{"data-loc":"client/src/pages/LessonPage.tsx:343",open:!!r,onClose:()=>i(null),newLevel:r?.newLevel??1,oldLevel:r?.oldLevel??1,userName:n?.name??"Ù
ÙØ¸Ù Ù
تÙ
ÙØ²"}),s.jsx(Jve,{"data-loc":"client/src/pages/LessonPage.tsx:350",open:ne!==null,onOpenChange:be=>{be||ge(null)},isPreparing:oe,variant:ne==="challenge"?"challenge":"result",onConfirm:Tt}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:357",className:"min-h-screen w-full overflow-x-clip memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/LessonPage.tsx:358"}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:359",className:"mx-auto w-full max-w-3xl min-w-0 px-4 py-8",children:[s.jsx(jt,{"data-loc":"client/src/pages/LessonPage.tsx:360",href:`/category/${Pe.categoryId}`,children:s.jsxs("button",{"data-loc":"client/src/pages/LessonPage.tsx:361",className:"flex items-center gap-2 font-bold text-black mb-6 hover:underline",children:[s.jsx(Wx,{"data-loc":"client/src/pages/LessonPage.tsx:362",className:"w-4 h-4"})," Ø§ÙØ¹Ùدة ÙÙÙ
ØÙر"]})}),C==="idle"&&s.jsxs(s.Fragment,{children:[xe&&s.jsx(rn.aside,{"data-loc":"client/src/pages/LessonPage.tsx:368",initial:{opacity:0,y:l?0:-8},animate:{opacity:1,y:0},transition:{duration:l?0:.24,ease:"circOut"},className:"mb-5 overflow-hidden rounded-2xl border-2 border-black bg-memphis-yellow p-4 shadow-memphis","aria-label":"ØªØØ¯Ù ÙØªÙجة ÙÙÙØ²",children:s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:368",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:368",className:"flex min-w-0 items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:368",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-white text-xl",children:"â¡"}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:368",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:368",className:"text-xs font-black text-black/60",children:"ÙØµÙت Ù
Ù Ø¨Ø·Ø§ÙØ© ØªØØ¯ÙÙ"}),s.jsxs("h2",{"data-loc":"client/src/pages/LessonPage.tsx:368",className:"mt-0.5 text-lg font-black text-black",children:[xe.challengerName," ÙØªØØ¯Ø§Ù!"]}),s.jsxs("p",{"data-loc":"client/src/pages/LessonPage.tsx:368",className:"mt-1 text-xs font-bold leading-5 text-black/75",children:["ØÙÙÙ ",xe.score,"/",xe.totalQuestions," ÙÙØ§Ù ",xe.pointsEarned," ÙÙØ·Ø©",xe.rank?` Ù٠اÙÙ
Ø±ÙØ² #${xe.rank}`:"",". ابدأ اÙÙÙÙØ² ÙØØ§ÙÙ ØªØ¬Ø§ÙØ² اÙÙØªÙجة."]})]})]}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:368",className:"rounded-full border-2 border-black bg-memphis-mint px-2.5 py-1 text-[10px] font-black text-black",children:"ØªØØ¯ÙÙ Ù
باشر"})]})}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:370",className:"memphis-card min-w-0 max-w-full overflow-hidden p-8 mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:371",className:"flex items-start gap-4 mb-6",children:[s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:372",className:"w-14 h-14 roun
871ded-xl bg-memphis-mint border-2 border-black shadow-memphis flex items-center justify-center text-2xl flex-shrink-0",children:Pe.icon??s.jsx(Ln,{"data-loc":"client/src/pages/LessonPage.tsx:373",className:"w-7 h-7 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:375",children:[s.jsx("h1",{"data-loc":"client/src/pages/LessonPage.tsx:376",className:"font-black text-2xl text-black",children:Pe.titleAr}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:377",className:"flex items-center gap-3 mt-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:378",className:"flex items-center gap-1 text-xs font-bold text-black/50",children:[s.jsx(xi,{"data-loc":"client/src/pages/LessonPage.tsx:379",className:"w-3 h-3"})," ",Pe.durationMinutes," Ø¯ÙØ§Ø¦Ù"]}),s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:381",className:"flex items-center gap-1 text-xs font-bold text-black/50",children:[s.jsx(Sn,{"data-loc":"client/src/pages/LessonPage.tsx:382",className:"w-3 h-3"})," ",Pe.pointsReward," ÙÙØ·Ø©"]}),ke&&s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:384",className:"memphis-badge-pill bg-green-100 text-green-700 text-xs",children:"Ù
ÙØªÙ
Ù â"})]})]})]}),s.jsx(Mye,{"data-loc":"client/src/pages/LessonPage.tsx:388",lessonId:t,lessonTitle:Pe.titleAr,isAuthenticated:a}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:389",className:"prose prose-sm min-w-0 max-w-none break-words text-black/80 leading-relaxed font-medium whitespace-pre-line",children:Pe.contentAr&&s.jsx(HC,{"data-loc":"client/src/pages/LessonPage.tsx:390",content:Pe.contentAr,lessonId:t,lessonTitle:Pe.titleAr})}),s.jsx(uve,{"data-loc":"client/src/pages/LessonPage.tsx:393",lessonId:t,isAuthenticated:a}),Pe.videoUrl&&s.jsx(Oye,{"data-loc":"client/src/pages/LessonPage.tsx:395",lessonId:t,videoUrl:Pe.videoUrl,lessonTitle:Pe.titleAr,isAuthenticated:a}),s.jsx(zye,{"data-loc":"client/src/pages/LessonPage.tsx:402",lessonId:t,content:Pe.contentAr,isAuthenticated:a})]}),s.jsx(eye,{"data-loc":"client/src/pages/LessonPage.tsx:406",lessonId:t}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:409",className:"flex flex-col sm:flex-row gap-4",children:a?s.jsxs(s.Fragment,{children:[!ke&&s.jsx("button",{"data-loc":"client/src/pages/LessonPage.tsx:417",onClick:()=>N.mutate({lessonId:t}),disabled:N.isPending,className:"memphis-btn bg-memphis-mint px-6 py-3 font-black text-black flex-1 disabled:opacity-50",children:N.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"â
إتÙ
اÙ
Ø§ÙØ¯Ø±Ø³ (+ÙÙØ§Ø·)"}),L.length>0&&s.jsxs("button",{"data-loc":"client/src/pages/LessonPage.tsx:426",onClick:de,className:"memphis-btn bg-memphis-yellow px-6 py-3 font-black text-black flex-1",children:["ð® Ø§Ø¨Ø¯Ø£ اÙÙÙÙØ² (",L.length," Ø£Ø³Ø¦ÙØ©)"]})]}):s.jsx("button",{"data-loc":"client/src/pages/LessonPage.tsx:411",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-6 py-3 font-black text-black flex-1",children:"سجÙ٠دخÙÙÙ ÙØ¥ÙÙ
Ø§Ù Ø§ÙØ¯Ø±Ø³"})})]}),C==="quiz"&&Me&&s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:440",className:"memphis-card p-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:442",className:"flex items-center justify-between mb-6",children:[s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:443",className:"font-black text-sm text-black",children:["Ø§ÙØ³Ø¤Ø§Ù ",A+1," Ù
Ù ",L.length]}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:444",className:"flex gap-1",children:L.map((be,G)=>s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:446",className:`w-3 h-3 rounded-full border-2 border-black ${G<A?W[G]?"bg-green-400":"bg-red-400":G===A?"bg-memphis-yellow":"bg-gray-200"}`},G))})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:450",className:`mb-4 rounded-xl border-2 p-3 transition-colors ${Te.tone==="critical"||Te.tone==="expired"?"border-red-500 bg-red-50":Te.tone==="warning"?"border-amber-500 bg-amber-50":"border-black/25 bg-white/65"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:451",className:"mb-2 flex items-center justify-between gap-3",children:[s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:452",className:"inline-flex items-center gap-2 text-xs font-black text-black",children:[s.jsx(au,{"data-loc":"client/src/pages/LessonPage.tsx:452",className:"h-4 w-4"})," ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"]}),s.jsxs("strong",{"data-loc":"client/src/pages/LessonPage.tsx:453",role:"timer","aria-label":`${Te.secondsRemaining} ثاÙÙØ© Ù
تبÙÙØ©`,"aria-live":Te.tone==="critical"?"assertive":"off",className:`text-lg font-black tabular-nums ${Te.tone==="critical"||Te.tone==="expired"?"text-red-700 motion-safe:animate-pulse":Te.tone==="warning"?"text-amber-700":"text-black"}`,children:[Te.secondsRemaining,"Ø«"]})]}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:455",className:"h-3 overflow-hidden rounded-full border-2 border-black/40 bg-white","aria-hidden":"true",children:s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:456",className:`h-full rounded-full transition-[width,background-color] duration-300 motion-reduce:transition-none ${Te.tone==="critical"||Te.tone==="expired"?"bg-red-500":Te.tone==="warning"?"bg-amber-400":"bg-memphis-mint"}`,style:{width:`${Te.percentage}%`}})}),(Te.tone==="critical"||Te.tone==="expired")&&s.jsxs("p",{"data-loc":"client/src/pages/LessonPage.tsx:458",role:"alert",className:"mt-2 flex items-center gap-1.5 text-xs font-black text-red-700",children:[s.jsx(Xx,{"data-loc":"client/src/pages/LessonPage.tsx:458",className:"h-4 w-4"})," ",Te.label]})]}),s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:460",className:"mb-4 rounded-lg border-2 border-black/20 bg-memphis-yellow/45 px-3 py-2 text-xs font-bold text-black/65",children:"ØªØªØºÙØ± Ø£Ù
اÙÙ Ø§ÙØ®Ùارات ÙÙ ÙÙ Ù
ØØ§ÙÙØ©Ø Ø§ÙØ±Ø£ Ø§ÙØ¨Ø¯Ø§Ø¦Ù Ø¨Ø¹ÙØ§ÙØ© ÙØ¨Ù Ø§ÙØ§Ø®ØªÙار."}),s.jsx("h2",{"data-loc":"client/src/pages/LessonPage.tsx:462",className:"font-black text-xl text-black mb-6",children:Me.questionAr}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:464",className:"space-y-3 mb-6",children:Ze.map((be,G)=>{let je="memphis-card p-4 text-right font-bold text-sm text-black cursor-pointer w-full transition-all ";return I?be.isCorrect?je+="bg-green-100 border-green-500":G===R?je+="bg-red-100 border-red-500":je+="opacity-50":je+=R===G?"bg-memphis-yellow":"hover:bg-memphis-peach",s.jsxs("button",{"data-loc":"client/src/pages/LessonPage.tsx:475",type:"button",disabled:I||$<=0,onClick:()=>vt(G),className:`${je} disabled:cursor-default`,children:[s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:476",className:"font-black ml-2",children:[String.fromCharCode(65+G),"."]})," ",be.label]},be.originalIndex)})}),I&&s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:483",className:`memphis-card p-4 mb-6 ${Ce?"bg-green-50":"bg-red-50"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:484",className:"flex items-center gap-2 mb-2",children:[Ce?s.jsx(bn,{"data-loc":"client/src/pages/LessonPage.tsx:486",className:"w-5 h-5 text-green-600"}):s.jsx(Rg,{"data-loc":"client/src/pages/LessonPage.tsx:488",className:"w-5 h-5 text-red-500"}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:490",className:"font-black text-sm",children:Ce?"إجابة صØÙØØ©! ð":ht?.timedOut?"Ø§ÙØªÙ٠اÙÙÙØª ÙØ¨Ù Ø§Ø®ØªÙØ§Ø± إجابة":"إجابة خاطئة"}),Ce&&ht&&s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:493",className:"ms-auto inline-flex items-center gap-1 rounded-full border-2 border-black bg-memphis-yellow px-2 py-1 text-[11px] font-black text-black",children:[s.jsx(vs,{"data-loc":"client/src/pages/LessonPage.tsx:493",className:"h-3.5 w-3.5"})," +",ht.speedBonus," سرعة"]})]}),Me.explanationAr&&s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:496",className:"text-sm text-black/70 font-medium",children:Me.explanationAr})]}),I&&s.jsx("button",{"data-loc":"client/src/pages/LessonPage.tsx:502",onClick:St,className:"memphis-btn bg-memphis-lilac px-6 py-3 font-black text-black w-full",children:A<L.length-1?"Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ â":"Ø¥ÙÙØ§Ø¡ اÙÙÙÙØ²"})]}),C==="result"&&s.jsxs(rn.section,{"data-loc":"client/src/pages/LessonPage.tsx:510",initial:{opacity:0,y:l?0:14,scale:l?1:.98}
871,animate:{opacity:1,y:0,scale:1},transition:{duration:l?0:.3,ease:"circOut"},className:"memphis-card overflow-hidden bg-memphis-mint","aria-labelledby":"quiz-result-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:511",className:"p-6 text-center sm:p-10",children:[s.jsx(rn.div,{"data-loc":"client/src/pages/LessonPage.tsx:512",initial:{rotate:0,scale:l?1:.92},animate:{rotate:l?0:[0,-4,4,0],scale:1},transition:{duration:l?0:.55},className:"mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-3xl border-2 border-black bg-memphis-yellow shadow-memphis",children:Ke.isSuccessful?s.jsx(aa,{"data-loc":"client/src/pages/LessonPage.tsx:513",className:"h-10 w-10 text-black"}):s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:513",className:"text-4xl","aria-hidden":"true",children:Ke.icon})}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:515",className:`inline-flex rounded-full border-2 border-black px-3 py-1 text-xs font-black ${Ke.isSuccessful?"bg-white":"bg-memphis-peach"}`,children:Ke.isSuccessful?"Ø§ÙØªÙ
٠اÙÙÙÙØ² Ø¨ÙØ¬Ø§Ø":"اÙÙ
راجعة ØªÙØ±Ùب٠Ù
Ù Ø§ÙØ¥ØªÙاÙ"}),s.jsx("h2",{"data-loc":"client/src/pages/LessonPage.tsx:516",id:"quiz-result-title",className:"mt-3 text-3xl font-black text-black",children:Ke.title}),s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:517",className:"mx-auto mt-2 max-w-xl text-sm font-bold text-black/65",children:Ke.message}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:519",className:"mx-auto mt-6 grid max-w-xl grid-cols-2 gap-2 text-center sm:grid-cols-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:520",className:"rounded-xl border-2 border-black bg-white/75 p-3",children:[s.jsxs("strong",{"data-loc":"client/src/pages/LessonPage.tsx:520",className:"block text-2xl font-black text-black",children:[_,"/",L.length]}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:520",className:"text-[11px] font-bold text-black/60",children:"إجابات صØÙØØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:521",className:"rounded-xl border-2 border-black bg-memphis-yellow p-3",children:[s.jsxs("strong",{"data-loc":"client/src/pages/LessonPage.tsx:521",className:"block text-2xl font-black text-black",children:[Ke.percentage,"%"]}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:521",className:"text-[11px] font-bold text-black/60",children:"ÙØ³Ø¨Ø© Ø§ÙØ¥ØªÙاÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:522",className:"rounded-xl border-2 border-black bg-white/75 p-3",children:[s.jsx("strong",{"data-loc":"client/src/pages/LessonPage.tsx:522",className:"block text-2xl font-black text-black",children:et.basePoints}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:522",className:"text-[11px] font-bold text-black/60",children:"ÙÙØ§Ø· Ø§ÙØ¯ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:523",className:"rounded-xl border-2 border-black bg-memphis-sky/70 p-3",children:[s.jsxs("strong",{"data-loc":"client/src/pages/LessonPage.tsx:523",className:"flex items-center justify-center gap-1 text-2xl font-black text-black",children:[s.jsx(vs,{"data-loc":"client/src/pages/LessonPage.tsx:523",className:"h-5 w-5"}),"+",et.speedBonus]}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:523",className:"text-[11px] font-bold text-black/60",children:"Ù
ÙØ§Ùأة Ø§ÙØ³Ø±Ø¹Ø©"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:526",className:"mx-auto mt-3 flex max-w-xl items-center justify-between gap-3 rounded-xl border-2 border-black bg-white/80 px-4 py-3 text-right shadow-[3px_3px_0_0_rgba(0,0,0,.18)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:527",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:527",className:"text-[11px] font-black text-black/55",children:k.isPending?"اÙÙÙØ§Ø· اÙÙ
تÙÙØ¹Ø© â Ø¬Ø§Ø±Ù Ø§ÙØªØ«Ø¨Ùت":"إجÙ
اÙ٠اÙÙÙØ§Ø· اÙÙ
Ø¶Ø§ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:527",className:"text-xs font-bold text-black/65",children:"Ø§ÙØ¯ÙØ© + Ø§ÙØ³Ø±Ø¹Ø© ÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©"})]}),s.jsxs("strong",{"data-loc":"client/src/pages/LessonPage.tsx:528",className:"inline-flex items-center gap-2 text-3xl font-black text-black",children:[s.jsx(pn,{"data-loc":"client/src/pages/LessonPage.tsx:528",className:"h-6 w-6 text-amber-600"}),et.pointsEarned]})]}),k.isError&&s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:530",role:"alert",className:"mx-auto mt-3 max-w-xl rounded-lg border-2 border-red-400 bg-red-50 px-3 py-2 text-xs font-black text-red-700",children:"تعذر ØªØ«Ø¨ÙØª اÙÙÙØ§Ø· ØØ§ÙÙØ§Ù. أعد اÙÙ
ØØ§ÙÙØ© ÙÙØªØ³Ø¬ÙÙ Ù
Ù Ø¬Ø¯ÙØ¯."}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:532",className:"mx-auto mt-3 flex max-w-xl flex-col gap-2 rounded-xl border-2 border-black bg-memphis-lilac/65 p-3 text-right sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:533",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:533",className:"text-[11px] font-black text-black/55",children:"ØªØ±ØªÙØ¨Ù ÙÙ ÙÙØØ© اÙÙÙÙØ²"}),it.isLoading?s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:533",className:"text-sm font-black text-black",children:"Ø¬Ø§Ø±Ù ØªØ«Ø¨ÙØª ØªØ±ØªÙØ¨Ù..."}):it.data?s.jsxs("p",{"data-loc":"client/src/pages/LessonPage.tsx:533",className:"text-lg font-black text-black",children:["اÙÙ
Ø±ÙØ² #",it.data.rank," ",s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:533",className:"text-xs text-black/65",children:["Ù
Ù ",it.data.score,"/",it.data.totalQuestions," صØÙØ"]})]}):s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:533",className:"text-sm font-black text-black",children:"Ø³ÙØ¸Ùر ØªØ±ØªÙØ¨Ù بعد ØªØ«Ø¨ÙØª اÙÙØªÙجة"})]}),s.jsxs("button",{"data-loc":"client/src/pages/LessonPage.tsx:534",type:"button",onClick:()=>
871ge("result"),disabled:oe||k.isPending||k.isError||it.isLoading,className:"memphis-btn inline-flex min-h-11 items-center justify-center gap-2 bg-memphis-yellow px-4 py-2 text-sm font-black text-black disabled:cursor-not-allowed disabled:opacity-60",children:[s.jsx(Lr,{"data-loc":"client/src/pages/LessonPage.tsx:534",className:"h-4 w-4"}),oe?"Ø¬Ø§Ø±Ù Ø§ÙØªØØ¶Ùر...":it.isLoading?"Ø¬Ø§Ø±Ù ØØ³Ø§Ø¨ Ø§ÙØªØ±ØªÙب...":"Ø®ØµÙØµ ÙØ´Ø§Ø±Ù ÙØªÙجتÙ"]})]}),xe&&s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"mx-auto mt-3 max-w-xl rounded-2xl border-2 border-black bg-[#f7faf0] p-4 text-right shadow-[3px_3px_0_0_rgba(0,0,0,.18)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"flex items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:537",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"text-[11px] font-black text-black/55",children:"Ù
ÙØ§Ø±ÙØ© ØªØØ¯ÙÙ QR"}),s.jsxs("h3",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"text-base font-black text-black",children:["ÙØªÙجت٠Ù
ÙØ§Ø¨Ù ",xe.challengerName]})]}),s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:`rounded-full border-2 border-black px-3 py-1 text-xs font-black ${_>xe.score||et.pointsEarned>xe.pointsEarned?"bg-memphis-mint":"bg-memphis-yellow"}`,children:_>xe.score||et.pointsEarned>xe.pointsEarned?"ØªØ¬Ø§ÙØ²Øª Ø§ÙØªØØ¯Ù!":"باÙÙ Ø®Ø·ÙØ© ÙÙØªØ¬Ø§Ùز"})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"mt-3 grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"rounded-xl border-2 border-black bg-white p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"text-[10px] font-black text-black/55",children:xe.challengerName}),s.jsxs("p",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"mt-1 text-lg font-black text-black",children:[xe.score,"/",xe.totalQuestions]}),s.jsxs("p",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"text-xs font-bold text-black/60",children:[xe.pointsEarned," ÙÙØ·Ø©"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"rounded-xl border-2 border-black bg-memphis-lilac/50 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"text-[10px] font-black text-black/55",children:"Ø£ÙØª Ø§ÙØ¢Ù"}),s.jsxs("p",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"mt-1 text-lg font-black text-black",children:[_,"/",L.length]}),s.jsxs("p",{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"text-xs font-bold text-black/60",children:[et.pointsEarned," ÙÙØ·Ø©"]})]})]}),s.jsxs("button",{"data-loc":"client/src/pages/LessonPage.tsx:537",type:"button",onClick:()=>ge("challenge"),disabled:oe||k.isPending||k.isError||it.isLoading,className:"memphis-btn mt-3 inline-flex min-h-10 items-center justify-center gap-2 bg-memphis-sky px-4 py-2 text-xs font-black text-black disabled:cursor-not-allowed disabled:opacity-60",children:[s.jsx(Lr,{"data-loc":"client/src/pages/LessonPage.tsx:537",className:"h-4 w-4"}),oe?"جار٠تجÙÙØ² Ø§ÙØ¨Ø·Ø§ÙØ©...":"Ø®ØµÙØµ ÙØ´Ø§Ø±Ù Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù"]})]}),s.jsx(wve,{"data-loc":"client/src/pages/LessonPage.tsx:539",lessonId:t,currentUserId:n?.id}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:541",className:"mx-auto mt-4 max-w-xl",children:s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:542",className:"h-4 overflow-hidden rounded-full border-2 border-black bg-white",role:"progressbar","aria-label":"ÙØ³Ø¨Ø© Ø¥ØªÙØ§Ù اÙÙÙÙØ²","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Ke.percentage,children:s.jsx(rn.div,{"data-loc":"client/src/pages/LessonPage.tsx:543",initial:{width:l?`${Ke.percentage}%`:0},animate:{width:`${Ke.percentage}%`},transition:{duration:l?0:.65,ease:"circOut"},className:"h-full rounded-full bg-memphis-yellow"})})}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:547",className:"mt-5 flex flex-wrap justify-center gap-2","aria-label":"ÙØªÙجة Ù٠سؤاÙ",children:W.map((be,G)=>be?s.jsx(bn,{"data-loc":"client/src/pages/LessonPage.tsx:549",className:"h-6 w-6 text-green-700","aria-label":`Ø§ÙØ³Ø¤Ø§Ù ${G+1} صØÙØ`},G):s.jsx(Rg,{"data-loc":"client/src/pages/LessonPage.tsx:550",className:"h-6 w-6 text-red-600","aria-label":`Ø§ÙØ³Ø¤Ø§Ù ${G+1} ØºÙØ± صØÙØ`},G))}),Ve.length>0?s.jsxs("button",{"data-loc":"client/src/pages/LessonPage.tsx:554",type:"button",onClick:()=>U(be=>!be),"aria-expanded":Q,className:"memphis-btn mt-6 inline-flex items-center gap-2 bg-white px-5 py-3 font-black text-black",children:[s.jsx(npe,{"data-loc":"client/src/pages/LessonPage.tsx:555",className:"h-5 w-5"})," ",Q?"Ø¥Ø®ÙØ§Ø¡ Ù
راجعة Ø§ÙØ£Ø®Ø·Ø§Ø¡":`راجع Ø¥Ø¬Ø§Ø¨Ø§ØªÙ Ø§ÙØ®Ø§Ø·Ø¦Ø© (${Ve.length})`]}):s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:558",className:"mx-auto mt-6 max-w-xl rounded-xl border-2 border-black bg-white/70 p-4 text-sm font-black text-green-800",children:"Ù٠إجابات٠صØÙØØ© â Ø£ØªÙÙØª Ù
ØØªÙÙ Ø§ÙØ¯Ø±Ø³!"})]}),Q&&Ve.length>0&&s.jsxs(rn.div,{"data-loc":"client/src/pages/LessonPage.tsx:563",initial:{opacity:0,y:l?0:8}
871,animate:{opacity:1,y:0},transition:{duration:l?0:.22},className:"border-t-2 border-black bg-white/65 p-5 sm:p-7","aria-label":"Ù
راجعة Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØ®Ø§Ø·Ø¦Ø©",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:564",className:"mb-4 flex items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:564",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:564",className:"text-xs font-black text-black/55",children:"Ù
راجعة ذÙÙØ©"}),s.jsx("h3",{"data-loc":"client/src/pages/LessonPage.tsx:564",className:"text-xl font-black text-black",children:"Ø«Ø¨ÙØª اÙÙÙØ±Ø© ÙØ¨Ù اÙÙ
ØØ§ÙÙØ© Ø§ÙØªØ§ÙÙØ©"})]}),s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:564",className:"rounded-full border-2 border-black bg-memphis-peach px-3 py-1 text-xs font-black",children:[Ve.length," أخطاء"]})]}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:565",className:"space-y-4",children:Ve.map(be=>s.jsxs("article",{"data-loc":"client/src/pages/LessonPage.tsx:567",className:"rounded-2xl border-2 border-black bg-white p-4 text-right shadow-[3px_3px_0_0_rgba(0,0,0,.18)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:568",className:"mb-2 flex flex-wrap items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/LessonPage.tsx:568",className:"rounded-full border-2 border-black bg-memphis-yellow px-2 py-0.5 text-[11px] font-black",children:["Ø§ÙØ³Ø¤Ø§Ù ",be.questionNumber]}),be.timedOut&&s.jsx("span",{"data-loc":"client/src/pages/LessonPage.tsx:568",className:"rounded-full border border-red-300 bg-red-50 px-2 py-0.5 text-[11px] font-black text-red-700",children:"Ø§ÙØªÙ٠اÙÙÙØª"})]}),s.jsx("h4",{"data-loc":"client/src/pages/LessonPage.tsx:569",className:"font-black leading-7 text-black",children:be.question}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:570",className:"mt-3 grid gap-2 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:571",className:"rounded-xl border-2 border-red-200 bg-red-50 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:571",className:"text-[11px] font-black text-red-700",children:"إجابتÙ"}),s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:571",className:"mt-1 text-sm font-bold text-black/75",children:be.selectedAnswer??"ÙÙ
تختر إجابة"})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:572",className:"rounded-xl border-2 border-green-300 bg-green-50 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:572",className:"text-[11px] font-black text-green-800",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©"}),s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:572",className:"mt-1 text-sm font-bold text-black",children:be.correctAnswer})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:574",className:"mt-3 rounded-xl border-2 border-black/15 bg-memphis-sky/35 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:574",className:"text-[11px] font-black text-black/55",children:"Ø´Ø±Ø Ù
بسط"}),s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:574",className:"mt-1 text-sm font-bold leading-6 text-black/75",children:be.explanation})]})]},be.questionId))})]}),s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:581",className:"flex flex-col gap-3 border-t-2 border-black bg-white/45 p-5 sm:flex-row sm:justify-center",children:[s.jsxs("button",{"data-loc":"client/src/pages/LessonPage.tsx:582",type:"button",onClick:de,className:"memphis-btn inline-flex items-center justify-center gap-2 bg-memphis-yellow px-5 py-2.5 font-black text-black",children:[s.jsx(u2,{"data-loc":"client/src/pages/LessonPage.tsx:582",className:"h-4 w-4"})," إعادة اÙÙ
ØØ§ÙÙØ©"]}),s.jsx(jt,{"data-loc":"client/src/pages/LessonPage.tsx:583",href:`/category/${Pe.categoryId}`,children:s.jsx("button",{"data-loc":"client/src/pages/LessonPage.tsx:583",className:"memphis-btn w-full bg-white px-5 py-2.5 font-black text-black sm:w-auto",children:"Ø§ÙØ¹Ùدة ÙÙÙ
ØÙر"})})]})]})]})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/LessonPage.tsx:332",className:"min-h-screen w-full overflow-x-clip memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/LessonPage.tsx:333"}),s.jsx("div",{"data-loc":"client/src/pages/LessonPage.tsx:334",className:"max-w-3xl mx-auto px-4 py-8 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/LessonPage.tsx:335",className:"font-bold text-black/50",children:"Ø§ÙØ¯Ø±Ø³ ØºÙØ± Ù
ÙØ¬Ùد"})})]})}function p1e(){const{id:e}=Ol(),t=Number.parseInt(e??"0",10),{isAuthenticated:a}=Ma(),n=!!Cu(),r=P.useMemo(()=>typeof window>"u"?null:gX(window.location.search),[]),i=P.useMemo(()=>typeof window<"u"&&new URLSearchParams(window.location.search).get("rematch")==="1",[]),o=P.useMemo(()=>typeof window>"u"?`/lesson/${t}`:`/lesson/${t}${window.location.search}`,[t]),l=J.lessons.byId.useQuery({id:t},{enabled:t>0}),c=J.quiz.leaderboard.useQuery({lessonId:t,limit:5,period:"all"},{enabled:t>0}),d=J.quiz.acceptRematchRequest.useMutation({onSuccess:b=>{const y=hX({lessonId:b.lessonId,challengerName:b.requesterName,score:b.score,totalQuestions:b.totalQuestions,pointsEarned:b.pointsEarned,rank:b.rank,token:b.token});window.location.href=y}});if(!r||t<=0)return s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:37",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/QuizChallengePage.tsx:37"}),s.jsx("main",{"data-loc":"client/src/pages/QuizChallengePage.tsx:37",className:"mx-auto flex min-h-[70vh] max-w-xl items-center px-4 py-10",children:s.jsxs("section",{"data-loc":"client/src/pages/QuizChallengePage.tsx:37",className:"memphis-card w-full bg-white p-7 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:37",className:"mx-auto flex h-16 w-16 items-center justify-center rounded-2xl border-2 border-black bg-memphis-peach text-3xl",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/QuizChallengePage.tsx:37",className:"mt-4 text-2xl font-black text-black",children:"رابط Ø§ÙØªØØ¯Ù ØºÙØ± Ù
ÙØªÙ
Ù"}),s.jsx("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:37",className:"mt-2 text-sm font-bold leading-6 text-black/65",children:"Ø§Ø·ÙØ¨ Ø¨Ø·Ø§ÙØ© Ù
Ø´Ø§Ø±ÙØ© Ø¬Ø¯ÙØ¯Ø© Ù
٠زÙ
ÙÙÙ Ø«Ù
اÙ
Ø³Ø Ø±Ù
ز QR Ù
رة أخرÙ."}),s.jsx(jt,{"data-loc":"client/src/pages/QuizChallengePage.tsx:37",href:"/dashboard",className:"memphis-btn mt-5 inline-flex bg-memphis-lilac px-5 py-3 text-sm font-black text-black",children:"Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©"})]})})]});const m=[{label:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©",value:`${r.score}/${r.totalQuestions}
871`,icon:aa,color:"bg-memphis-yellow"},{label:"ÙÙØ§Ø· اÙÙÙÙØ²",value:`${r.pointsEarned}`,icon:vs,color:"bg-memphis-mint"},{label:"ØªØ±ØªÙØ¨Ù",value:r.rank?`#${r.rank}`:"Ù
Ù
ÙØ²",icon:Gs,color:"bg-memphis-lilac"}],f=c.data?.[0]?.score??null,h=f===null?"سجÙÙ ÙØªÙجة ÙØªØ«Ø¨Øª تÙÙÙÙ":`ÙØ¯ÙÙ Ø§ÙØªØ§ÙÙ: ${Math.max(r.score+1,f)}/${r.totalQuestions}`,x=()=>{i&&r.token?d.mutate({token:r.token}):window.location.href=o};return s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52"}),s.jsxs("main",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mx-auto max-w-4xl px-4 py-8 sm:py-12",children:[!i&&s.jsx(jt,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",href:o,className:"inline-flex items-center gap-1 text-sm font-black text-black/70 underline underline-offset-4 hover:text-black",children:"ابدأ اÙÙÙÙØ² Ù
باشرة â"}),i&&s.jsxs(rn.aside,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",initial:n?!1:{opacity:0,y:-8},animate:n?void 0:{opacity:1,y:0},transition:{duration:.2,ease:[.23,1,.32,1]},role:"status","aria-label":`Ø·ÙØ¨ إعادة ØªØØ¯Ù Ù
Ù ${r.challengerName} Ø¨Ø§ÙØªØ¸Ø§Ø±Ù`,className:"mt-4 flex flex-wrap items-center justify-center gap-2 rounded-xl border-2 border-black bg-memphis-mint px-4 py-3 text-center shadow-[3px_3px_0_0_#000]",children:[s.jsx(ape,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"h-5 w-5 animate-pulse text-black","aria-hidden":"true"}),s.jsxs("span",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"text-sm font-black text-black",children:["Ø·ÙØ¨ إعادة ØªØØ¯ÙÙ Ù
Ù ",r.challengerName," Ø¨Ø§ÙØªØ¸Ø§Ø±Ù"]}),s.jsx("span",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"rounded-full border border-black bg-white px-2 py-0.5 text-[10px] font-black text-black",children:"ÙØ§ÙÙ ÙØ¨Ø¯Ø¡ Ø§ÙØ¬ÙÙØ©"})]}),s.jsxs(rn.section,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",initial:{opacity:0,y:n?0:12},animate:{opacity:1,y:0},transition:{duration:n?0:.28,ease:"circOut"},className:"mt-4 overflow-hidden rounded-[28px] border-4 border-black bg-white shadow-[8px_8px_0_0_#000]",children:[s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"relative overflow-hidden bg-gradient-to-l from-memphis-lilac via-[#f8e7be] to-memphis-yellow px-6 py-8 text-center sm:px-10",children:[s.jsx("span",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52","aria-hidden":!0,className:"absolute right-5 top-4 text-3xl",children:"â¡"}),s.jsx("span",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52","aria-hidden":!0,className:"absolute bottom-3 left-5 text-2xl",children:"â¦"}),s.jsx("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"text-xs font-black tracking-wide text-black/60",children:i?"Ø·ÙØ¨ إعادة ØªØØ¯ÙÙ Ù
Ù Ù
ÙØµØ© أثر":"ØªØØ¯ÙÙ Ù
باشر Ù
Ù Ù
ÙØµØ© أثر"}),s.jsx("h1",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mt-2 text-3xl font-black text-black sm:text-4xl",children:i?`أعد ØªØØ¯Ù ${r.challengerName}!`:`${r.challengerName} ÙØªØØ¯Ø§Ù!`}),s.jsxs("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mx-auto mt-3 max-w-xl text-sm font-bold leading-6 text-black/75",children:["اÙ
Ø³ØØ Ø§ÙØ¹Ø¨Ø Ø«Ù
ØªØ¬Ø§ÙØ² ÙØªÙجة زÙ
ÙÙÙ ÙÙ ÙÙÙØ² ",s.jsx("span",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"font-black",children:l.data?.titleAr??"ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³"}),"."]})]}),s.jsx("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"grid gap-4 p-5 sm:grid-cols-3 sm:p-7",children:m.map((b,y)=>{const w=b.icon;return s.jsxs(rn.div,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",initial:{opacity:0,scale:n?1:.96},animate:{opacity:1,scale:1},transition:{duration:n?0:.2,delay:n?0:.08+y*.06},className:`rounded-2xl border-2 border-black ${b.color} p-4 text-center shadow-[3px_3px_0_0_rgba(0,0,0,.18)]`,children:[s.jsx(w,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mx-auto h-5 w-5 text-black"}),s.jsx("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mt-2 text-2xl font-black text-black",children:b.value}),s.jsx("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mt-1 text-xs font-bold text-black/65",children:b.label})]},b.label)})}),s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mx-5 mb-5 rounded-2xl border-2 border-black bg-[#f7faf0] p-4 sm:mx-7 sm:mb-7",children:[s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"flex items-center gap-2",children:[s.jsx(ype,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"h-5 w-5 text-[#5F6F36]"}),s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",children:[s.jsx("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"text-sm font-black text-black",children:"Ù
ÙØ§Ø±ÙØ© Ø§ÙØªØØ¯Ù"}),s.jsx("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mt-0.5 text-xs font-bold text-black/65",children:h})]})]}),s.jsxs("span",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-[11px] font-black text-black",children:[c.data?.length??0," Ù
ØªÙØ§ÙسÙÙ Ø¸Ø§ÙØ±ÙÙ"]})]}),c.data&&c.data.length>0&&s.jsx("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"mt-3 flex flex-wrap gap-2",children:c.data.slice(0,3).map(b=>s.jsxs("span",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"rounded-lg border border-black/20 bg-white px-2 py-1 text-[11px] font-bold text-black",children:["#",b.rank," ",b.name??"Ù
تعÙÙ
"," â ",b.score,"/",b.totalQuestions]}
871,b.userId))})]}),s.jsxs("div",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"flex flex-col items-center gap-3 border-t-2 border-black/10 bg-memphis-peach/40 px-5 py-6 text-center sm:px-7",children:[s.jsxs("p",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"flex items-center gap-2 text-sm font-black text-black",children:[s.jsx(ln,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"h-4 w-4"})," Ø§ÙØ¹Ø¨ Ø¨ØªØØ¯ÙÙ ÙØ·ÙÙØ ÙØªÙاع٠Ù
ع ÙØªÙجة زÙ
ÙÙ٠بعد Ø§ÙØ¥ÙÙ
اÙ."]}),a?s.jsxs("button",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",type:"button",onClick:x,disabled:d.isPending,className:"memphis-btn inline-flex items-center gap-2 bg-black px-6 py-3 text-sm font-black text-white disabled:cursor-wait disabled:opacity-70",children:[s.jsx(Kx,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"h-4 w-4"})," ",d.isPending?"Ø¬Ø§Ø±Ù ÙØ¨ÙÙ Ø§ÙØ·Ùبâ¦":i?"Ø§ÙØ¨Ù Ø·ÙØ¨ Ø§ÙØ¥Ø¹Ø§Ø¯Ø© ÙØ§Ø¨Ø¯Ø£":"Ø§ÙØ¨Ù Ø§ÙØªØØ¯Ù ÙØ§Ø¨Ø¯Ø£ اÙÙÙÙØ²"]}):s.jsxs("button",{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",type:"button",onClick:()=>Rn(),className:"memphis-btn inline-flex items-center gap-2 bg-black px-6 py-3 text-sm font-black text-white",children:[s.jsx(pn,{"data-loc":"client/src/pages/QuizChallengePage.tsx:52",className:"h-4 w-4"})," سجÙ٠دخÙÙÙ ÙØ§ÙØ¨Ù Ø§ÙØªØØ¯Ù"]})]})]})]})]})}function m1e(e,t,a){return`athar:challenge-evidence-draft:${e}:${t}:${a}`}function f1e(e=new Date){const t=new Intl.DateTimeFormat("en-US",{timeZone:"Asia/Riyadh",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(e),a=n=>t.find(r=>r.type===n)?.value??"";return`${a("year")}-${a("month")}-${a("day")}`}function h1e(e,t){try{const a=e.getItem(t);if(!a)return null;const n=JSON.parse(a);return typeof n.text!="string"||n.text.length>500||n.imageUrl!==null&&n.imageUrl!==void 0&&(typeof n.imageUrl!="string"||!n.imageUrl.startsWith("/manus-storage/challenge-evidence/"))?null:{text:n.text,imageUrl:typeof n.imageUrl=="string"?n.imageUrl:null,savedAt:typeof n.savedAt=="number"?n.savedAt:Date.now()}}catch{return null}}function g1e(e,t,a){e.setItem(t,JSON.stringify(a))}function x1e(e,t){e.removeItem(t)}const xX=e=>e==="reviewed"?{label:"تÙ
اعتÙ
اد Ø§ÙØ¯ÙÙÙ",className:"border-emerald-700 bg-emerald-100 text-emerald-900"}:e==="needs_revision"?{label:"ÙØØªØ§Ø¬ Ø§ÙØ¯ÙÙ٠إÙÙ ØªÙØ¶ÙØ",className:"border-rose-700 bg-rose-100 text-rose-900"}:{label:"Ø¨Ø§ÙØªØ¸Ø§Ø± Ù
راجعة اÙÙ
Ø¯ÙØ±",className:"border-amber-700 bg-amber-100 text-amber-900"};function S9({challenge:e,isDone:t,isAuthenticated:a,evidence:n,evidenceImageUrl:r,isSubmitting:i,isUploadingImage:o,review:l,onEvidenceChange:c,onImageSelected:d,onImageCleared:m,onComplete:f}){const h=`challenge-evidence-${e.id}`,x=`challenge-evidence-image-${e.id}`,b=n.trim().length>=8,y=xX(l?.evidenceStatus);return s.jsxs("article",{"data-loc":"client/src/pages/ChallengesPage.tsx:43",className:`memphis-card p-4 sm:p-5 flex flex-col sm:flex-row items-start sm:items-center gap-3 sm:gap-4 transition-all ${t?"opacity-85":""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:44",className:`w-12 h-12 sm:w-14 sm:h-14 rounded-xl border-2 border-black shadow-memphis flex items-center justify-center text-xl sm:text-2xl flex-shrink-0 ${t?"bg-green-100":"bg-memphis-yellow"}`,children:t?s.jsx(bn,{"data-loc":"client/src/pages/ChallengesPage.tsx:45",className:"w-7 h-7 text-green-600"}):e.icon??"â¡"}),s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:47",className:"flex-1 min-w-0
871w-full sm:w-auto",children:[s.jsx("h3",{"data-loc":"client/src/pages/ChallengesPage.tsx:48",className:"font-black text-sm sm:text-base text-black",children:e.titleAr}),e.descriptionAr&&s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:49",className:"text-sm text-black/50 mt-0.5",children:e.descriptionAr}),s.jsxs("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:50",className:"memphis-badge-pill bg-memphis-yellow text-xs mt-2 inline-block",children:[e.pointsReward," ÙÙØ·Ø©"]}),e.type==="daily"&&!t&&s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:53",className:"mt-3 rounded-xl border-2 border-black/20 bg-white/70 p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:54",className:"mb-1 flex items-center justify-between gap-2",children:[s.jsxs("label",{"data-loc":"client/src/pages/ChallengesPage.tsx:55",htmlFor:h,className:"flex items-center gap-1 text-xs font-black text-black",children:[s.jsx(Zi,{"data-loc":"client/src/pages/ChallengesPage.tsx:55",className:"h-3.5 w-3.5"})," دÙÙÙ Ø§ÙØ¥Ùجاز"]}),s.jsxs("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:56","aria-live":"polite",className:"text-[11px] font-bold text-black/55",children:[n.length,"/500"]})]}),s.jsx("textarea",{"data-loc":"client/src/pages/ChallengesPage.tsx:58",id:h,value:n,onChange:w=>c(w.target.value),maxLength:500,minLength:8,rows:3,dir:"rtl",enterKeyHint:"done",className:"w-full resize-y touch-manipulation rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black outline-none transition-[box-shadow,border-color] focus:shadow-[3px_3px_0_0_#000]",placeholder:"Ù
ثاÙ: Ù
Ø´ÙØª 10 Ø¯ÙØ§Ø¦Ù بعد Ø§ÙØºØ¯Ø§Ø¡ Ù
ع زÙ
ÙÙÙ.","aria-describedby":`${h}-help`}),s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:59",id:`${h}-help`,className:"mt-1 text-[11px] font-bold text-black/60",children:"Ø§ÙØªØ¨ Ù
ا طبÙÙØªÙ Ø£Ù Ø§ÙØ£Ø«Ø± Ø§ÙØ°Ù ÙØ§ØØ¸ØªÙ. ØªÙØÙØ¸ اÙÙ
Ø³ÙØ¯Ø© تÙÙØ§Ø¦Ùا٠عÙÙ Ø¬ÙØ§Ø²ÙØ ÙÙÙØ²Ù
8 Ø£ØØ±Ù عÙÙ Ø§ÙØ£ÙÙ."}),s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:60",className:"mt-3 rounded-lg border-2 border-dashed border-black/35 bg-memphis-sky/15 p-2.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:61",className:"flex flex-wrap items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:62",children:[s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:62",className:"text-xs font-black text-black",children:"ØµÙØ±Ø© دÙÙÙ Ø§Ø®ØªÙØ§Ø±ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:62",className:"text-[11px] font-bold text-black/60",children:"PNG Ø£Ù JPG Ø£Ù WebP ØØªÙ 5 Ù
ÙØ¬Ø§Ø¨Ø§Ùت."})]}),r?s.jsxs("button",{"data-loc":"client/src/pages/ChallengesPage.tsx:63",type:"button",onClick:m,className:"rounded-lg border-2 border-black bg-white px-2 py-1 text-xs font-black text-black","aria-label":`Ø¥Ø²Ø§ÙØ© ØµÙØ±Ø© دÙÙÙ ${e.titleAr}`,children:[s.jsx(Zn,{"data-loc":"client/src/pages/ChallengesPage.tsx:63",className:"ml-1 inline h-3.5 w-3.5"})," Ø¥Ø²Ø§ÙØ©"]}):s.jsxs("label",{"data-loc":"client/src/pages/ChallengesPage.tsx:63",htmlFor:x,className:`cursor-pointer rounded-lg border-2 border-black bg-white px-2.5 py-1.5 text-xs font-black text-black ${!a||o?"cursor-not-allowed opacity-55":""}`,children:[s.jsx(oy,{"data-loc":"client/src/pages/ChallengesPage.tsx:63",className:"ml-1 inline h-3.5 w-3.5"})," ",o?"Ø¬Ø§Ø±Ù Ø±ÙØ¹ Ø§ÙØµÙرة...":"Ø¥Ø±ÙØ§Ù ØµÙØ±Ø©"]})]}),!r&&s.jsx("input",{"data-loc":"client/src/pages/ChallengesPage.tsx:65",id:x,type:"file",accept:"image/png,image/jpeg,image/webp",disabled:!a||o,onChange:w=>{d(w.target.files?.[0]),w.currentTarget.value=""},className:"sr-only"}),r&&s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:66",className:"mt-2 flex items-center gap-2",children:[s.jsx("img",{"data-loc":"client/src/pages/ChallengesPage.tsx:66",src:r,alt:"Ù
عاÙÙØ© ØµÙØ±Ø© دÙÙÙ Ø§ÙØ¥Ùجاز",className:"h-20 w-20 rounded-lg border-2 border-black bg-white object-cover"}),s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:66",className:"text-xs font-bold text-emerald-800",children:"تÙ
Ø¥Ø±ÙØ§Ù Ø§ÙØµÙرة ÙØ³ØªÙرس٠Ù
ع Ø§ÙØ¯ÙÙÙ."})]})]})]}),e.type==="daily"&&t&&l&&s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:71",className:`mt-3 rounded-xl border-2 p-3 text-sm ${y.className}`,"aria-live":"polite",children:[s.jsxs("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:71",className:"font-black",children:["ØØ§ÙØ© دÙÙÙ Ø§ÙØ¥Ùجاز: ",y.label]}),(l.evidenceReviewNote||l.evidenceRevisionReason)&&s.jsxs("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:71",className:"mt-2 rounded-lg border border-black/20 bg-white/70 p-2 text-xs font-bold leading-5 text-black",children:[s.jsx(gC,{"data-loc":"client/src/pages/ChallengesPage.tsx:71",className:"ml-1 inline h-3.5 w-3.5"})," ",l.evidenceStatus==="needs_revision"?"سبب Ø·ÙØ¨ Ø§ÙØªÙØ¶ÙØ":"Ù
ÙØ§ØØ¸Ø© اÙÙ
Ø¯ÙØ±",": ",l.evidenceReviewNote||l.evidenceRevisionReason]}),l.evidenceAdminReply&&s.jsxs("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:71",className:"mt-2 rounded-lg border border-black/20 bg-white/70 p-2 text-xs font-bold leading-5 text-black",children:[s.jsx(gC,{"data-loc":"client/src/pages/ChallengesPage.tsx:71",className:"ml-1 inline h-3.5 w-3.5"})," رد اÙÙ
Ø¯ÙØ±: ",l.evidenceAdminReply]}),l.evidenceImageUrl&&s.jsx("img",{"data-loc":"client/src/pages/ChallengesPage.tsx:71",src:l.evidenceImageUrl,alt:`ØµÙØ±Ø© دÙÙÙ ${e.titleAr}`,className:"mt-2 h-20 w-20 rounded-lg border-2 border-black bg-white object-cover"})]})]}),a?t?s.jsx("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:76",className:"memphis-badge-pill bg-green-100 text-green-700 text-xs flex-shrink-0",children:e.type==="daily"?"Ø§ÙØ¯ÙÙÙ Ù
سج٠â":"Ù
ÙØªÙ
Ù â"}):s.jsx("button",{"data-loc":"client/src/pages/ChallengesPage.tsx:78",type:"button",onClick:f,disabled:i||e.type==="daily"&&!b,className:"memphis-btn bg-memphis-mint px-3 py-1.5 text-xs font-black text-black flex-shrink-0 disabled:opacity-50 w-full sm:w-auto",children:i?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...":e.type==="daily"?"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ¯ÙÙÙ ÙØ¥ÙÙØ§Ø¡ اÙÙ
ÙÙ
Ø©":"Ø£ÙØ¬Ø²Øª!"}):s.jsx("button",{"data-loc":"client/src/pages/ChallengesPage.tsx:74",type:"button",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-3 py-1.5 text-xs font-black text-black flex-shrink-0 w-full sm:w-auto",children:"دخÙÙ ÙØÙØ¸ Ø§ÙØ¯ÙÙÙ"})]})}function b1e({review:e,text:t,imageUrl:a,isSubmitting:n,isUploadingImage:r,onTextChange:i,onImageSelected:o,onImageCleared:l,onSubmit:c}){const d=t.trim().length>=8,m=`challenge-evidence-resubmit-${e.completionId}`;return s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:"mt-3 rounded-xl border-2 border-rose-700 bg-white/80 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:"font-black text-black",children:"عدÙÙ Ø§ÙØ¯ÙÙÙ Ø«Ù
أرسÙÙ Ù
جدداÙ"}),s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:"mt-0.5 text-xs font-bold text-black/65",children:"ÙÙ ØªÙØØªØ³Ø¨ ÙÙØ§Ø· إضاÙÙØ©Ø ÙØ°Ù إعادة إرسا٠ÙÙÙ
راجعة ÙÙØ·."}),s.jsx("label",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",htmlFor:m,className:"mt-3 block text-xs font-black text-black",children:"ØªÙØ¶ÙØÙ"}),s.jsx("textarea",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",id:m,value:t,onChange:f=>i(f.target.value),rows:3,maxLength:500,minLength:8,dir:"rtl",className:"mt-1 w-full resize-y rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black outline-none focus:shadow-[3px_3px_0_0_#000]"}),s.jsxs("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:"mt-1 text-[11px] font-bold text-black/60",children:[t.length,"/500 â ÙÙØ²Ù
8 Ø£ØØ±Ù عÙÙ Ø§ÙØ£ÙÙ."]}),s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:"mt-3 flex flex-wrap items-center gap-2 rounded-lg border-2 border-dashed border-black/35 bg-memphis-sky/15 p-2.5",children:a?s.jsxs(s.Fragment,{children:[s.jsx("img",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",src:a,alt:`Ù
عاÙÙØ© إعادة إرسا٠دÙÙÙ ${e.challengeTitle}`,className:"h-16 w-16 rounded-lg border-2 border-black bg-white object-cover"}),s.jsxs("button",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",type:"button",onClick:l,className:"rounded-lg border-2 border-black bg-white px-2 py-1 text-xs font-black text-black",children:[s.jsx(Zn,{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:"ml-1 inline h-3.5 w-3.5"})," Ø¥Ø²Ø§ÙØ© Ø§ÙØµÙرة"]})]}):s.jsxs("label",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:`curs
871or-pointer rounded-lg border-2 border-black bg-white px-2.5 py-1.5 text-xs font-black text-black ${r?"cursor-not-allowed opacity-55":""}`,children:[s.jsx(oy,{"data-loc":"client/src/pages/ChallengesPage.tsx:87",className:"ml-1 inline h-3.5 w-3.5"})," ",r?"Ø¬Ø§Ø±Ù Ø±ÙØ¹ Ø§ÙØµÙرة...":"Ø¥Ø±ÙØ§Ù Ø£Ù Ø§Ø³ØªØ¨Ø¯Ø§Ù ØµÙØ±Ø©",s.jsx("input",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",type:"file",accept:"image/png,image/jpeg,image/webp",disabled:r,onChange:f=>{o(f.target.files?.[0]),f.currentTarget.value=""},className:"sr-only"})]})}),s.jsx("button",{"data-loc":"client/src/pages/ChallengesPage.tsx:87",type:"button",disabled:!d||n||r,onClick:c,className:"memphis-btn mt-3 w-full bg-memphis-yellow px-3 py-2 text-xs font-black text-black disabled:opacity-50",children:n?"جار٠إعادة Ø§ÙØ¥Ø±Ø³Ø§Ù...":"إعادة Ø¥Ø±Ø³Ø§Ù Ø§ÙØ¯ÙÙÙ ÙÙÙ
راجعة"})]})}function v1e(){const{isAuthenticated:e,user:t}=Ma(),[a,n]=P.useState(!1),[r,i]=P.useState({}),[o,l]=P.useState({}),[c,d]=P.useState({}),[m,f]=P.useState({}),h=P.useRef(new Set),x=P.useMemo(()=>f1e(),[]),b=J.challenges.list.useQuery({type:"daily"}),y=J.challenges.list.useQuery({type:"weekly"}),w=J.challenges.myTodayCompletions.useQuery(void 0,{enabled:e}),j=J.challenges.myCompletions.useQuery(void 0,{enabled:e}),N=J.challenges.myEvidenceReviews.useQuery(void 0,{enabled:e}),k=J.leaderboard.top.useQuery({limit:10}),D=J.useUtils(),C=P.useCallback(U=>t?.id?m1e(t.id,U,x):null,[x,t?.id]),S=P.useCallback(U=>{const oe=C(U);oe&&typeof window<"u"&&x1e(window.localStorage,oe)},[C]),A=new Set((w.data??[]).map(U=>U.challengeId)),E=P.useMemo(()=>new Map((w.data??[]).filter(U=>U.evidenceText).map(U=>[U.challengeId,U])),[w.data]);P.useEffect(()=>{if(!t?.id||!b.data||typeof window>"u")return;const U=[];b.data.forEach(oe=>{if(A.has(oe.id)){S(oe.id);return}const X=C(oe.id);if(!X||h.current.has(X))return;h.current.add(X);const ne=h1e(window.localStorage,X);ne&&U.push({challengeId:oe.id,text:ne.text,imageUrl:ne.imageUrl})}),U.length&&(i(oe=>{const X={...oe};return U.forEach(ne=>{X[ne.challengeId]===void 0&&(X[ne.challengeId]=ne.text)}),X}),l(oe=>{const X={...oe};return U.forEach(ne=>{X[ne.challengeId]===void 0&&(X[ne.challengeId]=ne.imageUrl)}),X}))},[S,b.data,C,A,t?.id]);const R=P.useCallback((U,oe,X)=>{const ne=C(U);!ne||typeof window>"u"||g1e(window.localStorage,ne,{text:oe,imageUrl:X,savedAt:Date.now()})},[C]),F=P.useCallback((U,oe)=>{i(X=>({...X,[U]:oe})),R(U,oe,o[U]??null)},[o,R]),I=P.useCallback((U,oe)=>{l(X=>({...X,[U]:oe})),R(U,r[U]??"",oe)},[r,R]),H=J.challenges.complete.useMutation({onSuccess:(U,oe)=>{U?.alreadyCompleted?re.info("ÙÙØ¯ Ø£ÙØ¬Ø²Øª ÙØ°Ø§ Ø§ÙØªØØ¯Ù Ù
Ø³Ø¨ÙØ§Ù اÙÙÙÙ
"):(re.success("Ø£ØØ³Ùت! تÙ
Ø§ØØªØ³Ø§Ø¨ ÙÙØ§Ø·Ù ð"),n(!0)),S(oe.challengeId),i(X=>{const ne={...X};return delete ne[oe.challengeId],ne}),l(X=>{const ne={...X};return delete ne[oe.challengeId],ne}),D.challenges.myTodayCompletions.invalidate(),D.challenges.myCompletions.invalidate(),D.challenges.myEvidenceReviews.invalidate(),D.profile.me.invalidate()},onError:U=>{console.error("Challenge completion error:",U),re.error(U.message||"ØØ¯Ø« خطأ Ø£Ø«ÙØ§Ø¡ Ø¥ÙØ¬Ø§Ø² Ø§ÙØªØØ¯Ù")}}),_=J.challenges.resubmitEvidence.useMutation({onSuccess:(U,oe)=>{re.success(`تÙ
ت إعادة Ø§ÙØ¥Ø±Ø³Ø§Ù ÙÙÙ
راجعة دÙÙ ÙÙØ§Ø· إضاÙÙØ© (اÙÙ
رة ${U.resubmissionCount})`),d(X=>{const ne={...X};return delete ne[oe.completionId],ne}),f(X=>{const ne={...X};return delete ne[oe.completionId],ne}),D.challenges.myTodayCompletions.invalidate(),D.challenges.myEvidenceReviews.invalidate()},onError:U=>re.error(U.message||"تعذر إعادة Ø¥Ø±Ø³Ø§Ù Ø§ÙØ¯ÙÙÙ")}),V=J.challenges.uploadEvidenceImage.useMutation({onError:U=>re.error(U.message||"تعذر Ø±ÙØ¹ ØµÙØ±Ø© Ø§ÙØ¯ÙÙÙ")}),W=P.useCallback((U,oe)=>{if(!oe)return;if(!e){re.info("سجÙÙ Ø§ÙØ¯Ø®Ù٠أÙÙØ§Ù ÙØ¥Ø±ÙØ§Ù ØµÙØ±Ø© Ø§ÙØ¯ÙÙÙ");return}if(!["image/png","image/jpeg","image/webp"].includes(oe.type)){re.error("اختر ØµÙØ±Ø© PNG Ø£Ù JPG Ø£Ù WebP");return}if(oe.size>5*1024*1024){re.error("ØØ¬Ù
ØµÙØ±Ø© Ø§ÙØ¯ÙÙÙ ÙØ¬Ø¨ Ø£ÙØ§ ÙØªØ¬Ø§Ùز 5 Ù
ÙØ¬Ø§Ø¨Ø§Ùت");return}const X=new FileReader;X.onerror=()=>re.error("تعذر ÙØ±Ø§Ø¡Ø© Ø§ÙØµÙرة اÙÙ
ختارة"),X.onload=()=>V.mutate({dataUrl:String(X.result),mimeType:oe.type},{onSuccess:({url:ne})=>{I(U,ne),re.success("تÙ
Ø¥Ø±ÙØ§Ù ØµÙØ±Ø© Ø§ÙØ¯ÙÙÙ")}}),X.readAsDataURL(oe)},[e,I,V]),B=P.useCallback((U,oe)=>{if(!oe)return;if(!["image/png","image/jpeg","image/webp"].includes(oe.type)){re.error("اختر ØµÙØ±Ø© P
871NG Ø£Ù JPG Ø£Ù WebP");return}if(oe.size>5*1024*1024){re.error("ØØ¬Ù
ØµÙØ±Ø© Ø§ÙØ¯ÙÙÙ ÙØ¬Ø¨ Ø£ÙØ§ ÙØªØ¬Ø§Ùز 5 Ù
ÙØ¬Ø§Ø¨Ø§Ùت");return}const X=new FileReader;X.onerror=()=>re.error("تعذر ÙØ±Ø§Ø¡Ø© Ø§ÙØµÙرة اÙÙ
ختارة"),X.onload=()=>V.mutate({dataUrl:String(X.result),mimeType:oe.type},{onSuccess:({url:ne})=>{f(ge=>({...ge,[U]:ne})),re.success("تÙ
Ø¥Ø±ÙØ§Ù Ø§ÙØµÙرة Ø§ÙØ¬Ø¯Ùدة")}}),X.readAsDataURL(oe)},[V]),K=new Date,ae=new Date(K),$=ae.getDay();ae.setDate(ae.getDate()-$+($===0?-6:1)),ae.setHours(0,0,0,0);const Z=new Set((j.data??[]).filter(U=>new Date(U.completedAt)>=ae).map(U=>U.challengeId)),O=b.data?.length??0,Y=A.size,Q=["ð¥","ð¥","ð¥"];return s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:188",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/ChallengesPage.tsx:188"}),s.jsxs("main",{"data-loc":"client/src/pages/ChallengesPage.tsx:188",className:"max-w-3xl mx-auto px-3 sm:px-4 py-6 sm:py-8",children:[a&&s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4 rounded-2xl",onClick:()=>n(!1),children:s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"memphis-card bg-memphis-mint p-6 max-w-md w-full max-h-[80vh] overflow-y-auto",onClick:U=>U.stopPropagation(),children:[s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"text-center mb-4",children:[s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"text-5xl mb-3",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"font-black text-2xl text-black",children:"Ù
برÙÙ!"}),s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"text-black/60 font-medium mt-2",children:"Ø£ÙØª Ù
Ù Ø£ÙØ¶Ù اÙÙ
شارÙÙ٠اÙÙÙÙ
"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"bg-white border-2 border-black rounded-xl p-4 mb-4",children:[s.jsxs("h3",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"font-black text-lg text-black mb-3 flex items-center gap-2",children:[s.jsx(aa,{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"w-5 h-5"})," Ø£ÙØ¶Ù اÙÙ
شارÙÙ٠اÙÙÙÙ
"]}),s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"space-y-2",children:k.isLoading?s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"text-center text-black/40 font-bold",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."}):(k.data?.slice(0,5)??[]).map((U,oe)=>s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:`flex items-center gap-2 p-2 rounded-lg ${oe===0?"bg-memphis-yellow":"bg-gray-50"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"text-xl w-6 text-center",children:Q[oe]??`#${oe+1}`}),s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"flex-1 min-w-0",children:s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"font-black text-sm text-black truncate",children:U.name??"Ù
ÙØ¸Ù"})}),s.jsxs("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",className:"font-black text-xs text-black/70",children:[U.totalPoints," ÙÙØ·Ø©"]})]},U.id))})]}),s.jsx("button",{"data-loc":"client/src/pages/ChallengesPage.tsx:189",type:"button",onClick:()=>n(!1),className:"w-full memphis-btn bg-black text-white font-black py-2 rounded-lg",children:"Ø¥ØºÙØ§Ù"})]})}),s.jsxs("header",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"memphis-card bg-memphis-sky p-5 sm:p-6 mb-6 sm:mb-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"flex items-center gap-3 sm:gap-4 mb-4",children:[s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"w-12 h-12 sm:w-14 sm:h-14 rounded-xl bg-white border-2 border-black shadow-memphis flex items-center justify-center flex-shrink-0",children:s.jsx(Os,{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"w-6 h-6 sm:w-7 sm:h-7 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",children:[s.jsx("h1",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"font-black text-xl sm:text-2xl text-black",children:"Ø§ÙØªØØ¯Ùات"}),s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"text-black/60 font-medium text-xs sm:text-sm",children:"Ø£ÙØ¬Ø² Ø§ÙØªØØ¯Ùات ÙØ§Ùسب ÙÙØ§Ø·Ø§Ù إضاÙÙØ©"})]})]}),e&&O>0&&s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",children:[s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"flex justify-between text-xs sm:text-sm font-bold text-black mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",children:"ØªÙØ¯Ù
اÙÙÙÙ
"}),s.jsxs("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",children:[Y,"/",O]})]}),s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"h-3 sm:h-4 bg-white border-2 border-black rounded-full overflow-hidden",children:s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:191",className:"h-full bg-black rounded-full transition-all duration-500",style:{width:`${O>0?Y/O*100:0}%`}})})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/ChallengesPage.tsx:193",className:"mb-8","aria-labelledby":"daily-challenges-title",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ChallengesPage.tsx:193",id:"daily-challenges-title",className:"font-black text-lg sm:text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(vs,{"data-loc":"client/src/pages/ChallengesPage.tsx:193",className:"w-4 h-4 sm:w-5 sm:h-5"})," Ø§ÙØªØØ¯Ùات اÙÙÙÙ
ÙØ© ",s.jsx("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:193",className:"memphis-badge-pill bg-memphis-yellow text-xs",children:"تتجدد ÙÙÙ
ÙØ§Ù"})]}),s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:193",className:"space-y-3",children:b.isLoading?[1,2,3].map(U=>s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:193",className:"memphis-card h-20 animate-pulse bg-gray-100"},U)):b.data?.length===0?s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:193",className:"memphis-card p-8 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:193",className:"font-bold text-black/40",children:"ÙØ§ ØªÙØ¬Ø¯ ØªØØ¯Ùات ÙÙÙ
ÙØ© ØØ§ÙÙØ§Ù"})}):b.data?.map(U=>s.jsx(S9,{"data-loc":"client/src/pages/ChallengesPage.tsx:193",challenge:U,isDone:A.has(U.id),isAuthenticated:e,evidence:r[U.id]??"",evidenceImageUrl:o[U.id]??null,isSubmitting:H.isPending,isUploadingImage:V.isPending,review:E.get(U.id),onEvidenceChange:oe=>F(U.id,oe),onImageSelected:oe=>W(U.id,oe),onImageCleared:()=>I(U.id,null),onComplete:()=>H.mutate({challengeId:U.id,evidenceText:r[U.id]?.trim(),evidenceImageUrl:o[U.id]??void 0})},U.id))})]}),e&&s.jsxs("section",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mb-8 rounded-2xl border-2 border-black bg-white p-4 shadow-memphis","aria-labelledby":"evidence-review-title",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",id:"evidence-review-title",className:"flex items-center gap-2 font-black text-black",children:[s.jsx(gC,{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"h-5 w-5"})," Ù
تابعة Ù
راجعة Ø£Ø¯ÙØ© Ø§ÙØ¥Ùجاز"]}),s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mt-1 text-xs font-bold leading-5 text-black/60",children:"ÙÙØ§ ØªØ¸ÙØ± ÙØªÙجة Ù
راجعة اÙÙ
Ø¯ÙØ± ÙØ±Ø¯Ù٠اÙÙ
ختصر ÙÙ
ÙØ§ØØ¸Ø§ØªÙ عÙÙ Ø£Ø¯ÙØªÙ. ØªØ¸ÙØ± Ø§ÙØ£Ø¯ÙØ© Ø§ÙØ£ØØ¯Ø« Ø£ÙÙØ§Ù."}),N.isLoading?s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mt-3 h-20 animate-pulse rounded-lg bg-memphis-peach/50"}):N.data?.length?s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mt-3 space-y-2",children:N.data.slice(0,8).map(U=>{const oe=xX(U.evidenceStatus);return s.jsxs("article",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:`rounded-xl border-2 p-3 ${oe.className}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"flex flex-wrap items-start justify-between gap-2",children:[s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"font-black",children:U.challengeTitle}),s.jsx("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"text-xs font-black",children:oe.label})]}),U.evidenceReviewNote||U.evidenceRevisionReason?s.jsxs("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mt-2 rounded-lg border border-black/20 bg-white/70 p-2 text-xs font-bold text-black",children:[U.evidenceStatus==="needs_revision"?"سبب Ø·ÙØ¨ Ø§ÙØªÙØ¶ÙØ":"Ù
ÙØ§ØØ¸Ø© اÙÙ
Ø¯ÙØ±",": ",U.evidenceReviewNote||U.evidenceRevisionReason]}):s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mt-2 text-xs font-bold",children:U.evidenceStatus==="submitted"?"ÙÙ
ÙØ¶Ù اÙÙ
Ø¯ÙØ± Ù
ÙØ§ØØ¸Ø© بعد.":"ÙØ§ ØªÙØ¬Ø¯ Ù
ÙØ§ØØ¸Ø© إضاÙÙØ©."}),U.evidenceAdminReply&&s.jsxs("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mt-2 rounded-lg border border-black/20 bg-white/70 p-2 text-xs font-bold text-black",children:["رد اÙÙ
Ø¯ÙØ±: ",U.evidenceAdminReply]}),U.evidenceImageUrl&&s.jsx("img",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",src:U.evidenceImageUrl,alt:`ØµÙØ±Ø© دÙÙÙ ${U.challengeTitle}`,className:"mt-2 h-16 w-16 rounded-lg border-2 border-black bg-white object-cover"}),U.evidenceStatus==="needs_revision"&&s.jsx(b1e,{"data-loc":"client/src/pages/ChallengesPage.tsx:195",review:U,text:c[U.completionId]??U.evidenceText??"",imageUrl:Object.prototype.hasOwnProperty.call(m,U.completionId)?m[U.completionId]:U.evidenceImageUrl,isSubmitting:_.isPending,isUploadingImage:V.isPending,onTextChange:X=>d(ne=>({...ne,[U.completionId]:X})),onImageSelected:X=>B(U.completionId,X),onImageCleared:()=>f(X=>({...X,[U.completionId]:null})),onSubmit:()=>_.mutate({completionId:U.completionId,evidenceText:(c[U.completionId]??U.evidenceText??"").trim(),evidenceImageUrl:Object.prototype.hasOwnProperty.call(m,U.completionId)?m[U.completionId]:U.evidenceImageUrl})})]},U.completionId)})}):s.jsxs("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"mt-3 flex items-start gap-2 rounded-lg border-2 border-dashed border-black/30 bg-gray-50 p-3 text-sm font-bold text-black/65",children:[s.jsx(k6,{"data-loc":"client/src/pages/ChallengesPage.tsx:195",className:"h-4 w-4 shrink-0"})," ÙÙ
ترس٠دÙÙÙØ§Ù ÙÙÙ
راجعة بعد. Ø£ÙÙ
Ù Ø£ØØ¯ Ø§ÙØªØØ¯Ùات اÙÙÙÙ
ÙØ© ÙØ¨Ø¯Ø¡ اÙÙ
تابعة."]})]}),s.jsxs("section",{"data-loc":"client/src/pages/ChallengesPage.tsx:197","aria-labelledby":"weekly-challenges-title",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ChallengesPage.tsx:197",id:"weekly-challenges-title",className:"font-black text-lg sm:text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(xi,{"data-loc":"client/src/pages/ChallengesPage.tsx:197",className:"w-4 h-4 sm:w-5 sm:h-5"})," Ø§ÙØªØØ¯Ùات Ø§ÙØ£Ø³Ø¨ÙØ¹ÙØ© ",s.jsx("span",{"data-loc":"client/src/pages/ChallengesPage.tsx:197",className:"memphis-badge-pill bg-memphis-lilac text-xs",children:"تتجدد Ø£Ø³Ø¨ÙØ¹ÙاÙ"})]}),s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:197",className:"space-y-3",children:y.isLoading?[1,2].map(U=>s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:197",className:"memphis-card h-20 animate-pulse bg-gray-100"},U)):y.data?.length===0?s.jsx("div",{"data-loc":"client/src/pages/ChallengesPage.tsx:197",className:"memphis-card p-8 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/ChallengesPage.tsx:197",className:"font-bold text-black/40",children:"ÙØ§ ØªÙØ¬Ø¯ ØªØØ¯Ùات Ø£Ø³Ø¨ÙØ¹ÙØ© ØØ§ÙÙØ§Ù"})}):y.data?.map(U=>s.jsx(S9,{"data-loc":"client/src/pages/ChallengesPage.tsx:197",challenge:U,isDone:Z.has(U.id),isAuthenticated:e,evidence:"",evidenceImageUrl:null,isSubmitting:H.isPending,isUploadingImage:!1,onEvidenceChange:()=>{},onImageSelected:()=>{},onImageCleared:()=>{},onComplete:()=>H.mutate({challengeId:U.id})},U.id))})]})]})]})}const y1e=["ð¥","ð¥","ð¥"],w1e=["bg-memphis-yellow","bg-memphis-lilac","bg-memphis-peach"];function P1e({champions:e,isLoading:t,currentUserId:a}){return t?s.jsx("section",{"data-loc":"client/src/components/StreakChampions.tsx:20",className:"memphis-card mb-6 h-40 animate-pulse bg-white","aria-label":"جار٠تØÙ
ÙÙ Ø£Ø¨Ø·Ø§Ù Ø§ÙØ³ÙØ³ÙØ©"}):e?.length?s.jsxs("section",{"data-loc":"client/src/components/StreakChampions.tsx:25",className:"memphis-card mb-6 overflow-hidden bg-white","aria-labelledby":"streak-champions-title",children:[s.jsxs("header",{"data-loc":"client/src/components/StreakChampions.tsx:26",className:"flex items-start justify-between gap-3 border-b-2 border-black bg-[#dfe7ad] px-5 py-4",children:[s.jsxs("div",{"data-loc":"client/src/components/StreakChampions.tsx:27",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/StreakChampions.tsx:28",className:"flex h-10 w-10 items-center justify-center rounded-xl border-2 border-black bg-memphis-yellow shadow-[3px_3px_0_#000]",children:s.jsx(Eo,{"data-loc":"client/src/components/StreakChampions.tsx:28",className:"h-5 w-5 text-orange-600"})}),s.jsxs("div",{"data-loc":"client/src/components/StreakChampions.tsx:29",children:[s.jsx("h2",{"data-loc":"client/src/components/StreakChampions.tsx:30",id:"streak-champions-title",className:"font-black text-base text-black",children:"Ø£Ø¨Ø·Ø§Ù Ø§ÙØ³ÙØ³ÙØ©"}),s.jsx("p",{"data-loc":"client/src/components/StreakChampions.tsx:31",className:"mt-1 text-xs font-bold text-black/65",children:"أطÙÙ Ø³ÙØ§Ø³Ù Ø§ÙØ£ÙاÙ
اÙÙØ´Ø·Ø© ØØ§ÙÙØ§Ù بتÙÙÙØª Ø§ÙØ³Ø¹ÙØ¯ÙØ©."})]})]}),s.jsx("span",{"data-loc":"client/src/components/StreakChampions.tsx:34",className:"rounded-full border-2 border-black bg-white px-2.5 py-1 text-[11px] font-black text-black",children:"ÙØ´Ø· Ø§ÙØ¢Ù"})]}),s.jsx("div",{"data-loc":"client/src/components/StreakChampions.tsx:36",className:"grid gap-2 p-3 sm:grid-cols-3",children:e.map((n,r)=>{const i=n.userId===a;return s.jsxs("article",{"data-loc":"client/src/components/StreakChampions.tsx:40",className:`relative overflow-hidden rounded-xl border-2 border-black p-3 ${i?"bg-memphis-mint":w1e[r]??"bg-[#f7faf0]"}`,children:[r===0&&s.jsx(Gs,{"data-loc":"client/src/components/StreakChampions.tsx:41",className:"absolute -left-2 -top-2 h-9 w-9 rotate-[-18deg] text-black/15","aria-hidden":"true"}),s.jsxs("div",{"data-loc":"client/src/components/StreakChampions.tsx:42",className:"flex items-center justify-between gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/StreakChampions.tsx:43",className:"text-xl","aria-label":`اÙÙ
Ø±ÙØ² ${r+1}`,children:y1e[r]??s.jsx(rf,{"data-loc":"client/src/components/StreakChampions.tsx:43",className:"h-5 w-5"})}),i&&s.jsx("span",{"data-loc":"client/src/components/StreakChampions.tsx:44",className:"rounded-full border border-black bg-white px-1.5 py-0.5 text-[10px] font-black",children:"Ø£ÙØª"})]}),s.jsxs("div",{"data-loc":"client/src/components/StreakChampions.tsx:46",className:"mt-2 flex min-w-0 items-center gap-1.5",children:[s.jsx("p",{"data-loc":"client/src/components/StreakChampions.tsx:47",className:"truncate text-sm font-black text-black",children:n.name??"بط٠Ù
٠أثر"}),r===0&&s.jsxs(x6,{"data-loc":"client/src/components/StreakChampions.tsx:49",children:[s.jsx(b6,{"data-loc":"client/src/components/StreakChampions.tsx:50",asChild:!0,children:s.jsxs("button",{"data-loc":"client/src/components/StreakChampions.tsx:51",type:"button",className:"inline-flex shrink-0 items-center gap-1 rounded-full border-2 border-black bg-white px-1.5 py-0.5 text-[10px] font-black text-black shadow-[2px_2px_0_0_#000] outline-none transition-transform hover:-translate-y-0.5 focus-visible:ring-2 focus-visible:ring-black","aria-label":`ØªÙØ§ØµÙÙ Ø¨Ø·Ù Ø§ÙØ³ÙØ³ÙØ©: ${n.currentStreak} ÙÙÙ
ا٠Ù
تتاÙÙØ§Ù`,children:[s.jsx(Gs,{"data-loc":"client/src/components/StreakChampions.tsx:52",className:"h-3.5 w-3.5 fill-memp
871his-yellow text-black"})," Ø¨Ø·Ù Ø§ÙØ³ÙØ³ÙØ©"]})}),s.jsxs(v6,{"data-loc":"client/src/components/StreakChampions.tsx:55",side:"top",sideOffset:8,className:"max-w-56 border-2 border-black bg-black px-3 py-2 text-center font-bold text-white shadow-[3px_3px_0_0_#FDE68A]",children:["Ø§ÙØ³ÙØ³ÙØ© اÙÙØ´Ø·Ø©: ",n.currentStreak," ÙÙÙ
ا٠Ù
تتاÙÙØ§Ù",s.jsx("br",{"data-loc":"client/src/components/StreakChampions.tsx:56"}),"Ø£ÙØ¶Ù Ø³ÙØ³ÙØ© Ù
Ø³Ø¬ÙØ©: ",n.longestStreak," ÙÙÙ
اÙ"]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/StreakChampions.tsx:62",className:"mt-2 flex items-end justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/StreakChampions.tsx:63",children:[s.jsx("strong",{"data-loc":"client/src/components/StreakChampions.tsx:63",className:"text-2xl font-black text-black",children:n.currentStreak}),s.jsx("span",{"data-loc":"client/src/components/StreakChampions.tsx:63",className:"mr-1 text-[11px] font-black text-black/65",children:"ÙÙÙ
"})]}),s.jsxs("span",{"data-loc":"client/src/components/StreakChampions.tsx:64",className:"flex items-center gap-1 text-[11px] font-bold text-black/65",children:[s.jsx(aa,{"data-loc":"client/src/components/StreakChampions.tsx:64",className:"h-3.5 w-3.5"})," Ø£ÙØ¶ÙÙØ§ ",n.longestStreak]})]})]},n.userId)})})]}):null}function j1e(){const{user:e}=Ma(),[t,a]=P.useState("individuals"),n=J.leaderboard.top.useQuery({limit:50}),r=J.leaderboard.streakChampions.useQuery({limit:3}),i=J.teams.leaderboard.useQuery({limit:20}),o=J.teams.myTeam.useQuery(void 0,{enabled:!!e}),l=["ð¥","ð¥","ð¥"],c=["bg-memphis-yellow","bg-gray-100","bg-memphis-peach"];return s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:21",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/LeaderboardPage.tsx:22"}),s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:23",className:"max-w-2xl mx-auto px-4 py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:24",className:"memphis-card bg-memphis-lilac p-6 mb-6 text-center",children:[s.jsx(aa,{"data-loc":"client/src/pages/LeaderboardPage.tsx:25",className:"w-12 h-12 mx-auto mb-3 text-black"}),s.jsx("h1",{"data-loc":"client/src/pages/LeaderboardPage.tsx:26",className:"memphis-title text-3xl text-black",children:"ÙÙØØ© اÙÙ
تصدرÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/LeaderboardPage.tsx:27",className:"text-black/60 font-medium mt-2",children:"Ø£ÙØ¶Ù اÙÙ
ÙØ¸ÙÙÙ ÙØ§ÙÙØ±Ù Ø§ÙØ£Ùثر ØªÙØ§Ø¹ÙاÙ"})]}),s.jsx(P1e,{"data-loc":"client/src/pages/LeaderboardPage.tsx:30",champions:r.data,isLoading:r.isLoading,currentUserId:e?.id}),s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:33",className:"flex gap-2 mb-6",children:[s.jsxs("button",{"data-loc":"client/src/pages/LeaderboardPage.tsx:34",onClick:()=>a("individuals"),className:`flex-1 flex items-center justify-center gap-2 py-3 font-black rounded-xl border-2 border-black transition-all ${t==="individuals"?"bg-memphis-yellow shadow-memphis":"bg-white hover:bg-memphis-peach"}`,children:[s.jsx(aa,{"data-loc":"client/src/pages/LeaderboardPage.tsx:38",className:"w-4 h-4"})," Ø§ÙØ£Ùراد"]}),s.jsxs("button",{"data-loc":"client/src/pages/LeaderboardPage.tsx:40",onClick:()=>a("teams"),className:`flex-1 flex items-center justify-center gap-2 py-3 font-black rounded-xl border-2 border-black transition-all ${t==="teams"?"bg-memphis-mint shadow-memphis":"bg-white hover:bg-memphis-peach"}`,children:[s.jsx(ln,{"data-loc":"client/src/pages/LeaderboardPage.tsx:44",className:"w-4 h-4"})," اÙÙØ±Ù"]})]}),t==="individuals"&&(n.isLoading?s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:51",className:"space-y-3",children:[1,2,3,4,5].map(d=>s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:52",className:"memphis-card h-16 animate-pulse bg-gray-100"},d))}):s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:55",className:"memphis-card overflow-hidden",children:[(n.data??[]).map((d,m)=>s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:57",className:`flex items-center gap-4 px-5 py-4 ${m<(n.data?.length??0)-1?"border-b-2 border-black":""} ${d.id===e?.id?"bg-memphis-yellow":m<3?c[m]:""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:61",className:"w-8 text-center font-black text-lg",children:m<3?l[m]:s.jsx("span",{"data-loc":"client/src/pages/LeaderboardPage.tsx:62",className:"text-black/50 text-base",children:m+1})}),s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:64",className:"flex-1",children:[s.jsx("p",{"data-loc":"client/src/pages/LeaderboardPage.tsx:65",className:"font-black text-base text-black",children:d.name??"Ù
ÙØ¸Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:66",className:"flex flex-wrap items-center gap-2",children:[s.jsxs("p",{"data-loc":"client/src/pages/LeaderboardPage.tsx:66",className:"text-xs font-bold text-black/50",children:["اÙÙ
ستÙÙ ",d.level]}),(d.storyCount??0)>0&&s.jsxs("span",{"data-loc":"client/src/pages/LeaderboardPage.tsx:66",className:"text-[11px] font-black text-purple-700",children:["ð§ ",d.storyCount," ÙØµØ©"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:68",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/LeaderboardPage.tsx:69",className:"memphis-badge-pill bg-memphis-yellow font-black",children:[d.totalPoints," ÙÙØ·Ø©"]}),d.id===e?.id&&s.jsx("span",{"data-loc":"client/src/pages/LeaderboardPage.tsx:70",className:"text-xs font-bold text-black/60",children:"(Ø£ÙØª)"})]})]},d.id)),(n.data?.length??0)===0&&s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:75",className:"p-10 text-center",children:[s.jsx(rf,{"data-loc":"client/src/pages/LeaderboardPage.tsx:76",className:"w-12 h-12 text-black/20 mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/pages/LeaderboardPage.tsx:77",className:"font-bold text-black/40",children:"ÙØ§ ÙÙØ¬Ø¯ Ù
ÙØ¸ÙÙ٠بعد"})]})]})),t==="teams"&&(i.isLoading?s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:87",className:"space-y-3",children:[1,2,3].map(d=>s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:88",className:"memphis-card h-20 animate-pulse bg-gray-100"},d))}):(i.data?.length??0)===0?s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:91",className:"memphis-card p-10 text-center",children:[s.jsx(ln,{"data-loc":"client/src/pages/LeaderboardPage.tsx:92",className:"w-12 h-12 text-black/20 mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/pages/LeaderboardPage.tsx:93",className:"font-bold text-black/40 mb-3",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØ±Ù بعد"}),s.jsx(jt,{"data-loc":"client/src/pages/LeaderboardPage.tsx:94",href:"/teams",children:s.jsx("button",{"data-loc":"client/src/pages/LeaderboardPage.tsx:95",className:"memphis-btn bg-black text-white px-5 py-2.5 font-black text-sm",children:"Ø¥ÙØ´Ø§Ø¡ ÙØ±ÙÙ"})})]}):s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:99",className:"memphis-card overflow-hidden",children:(i.data??[]).map((d,m)=>{const f=o.data?.team.id===d.id;return s.jsx(jt,{"data-loc":"client/src/pages/LeaderboardPage.tsx:103",href:`/teams/${d.id}`,children:s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:104",className:`flex items-center gap-4 px-5 py-4 cursor-pointer hover:bg-memphis-peach transition-colors ${m<(i.data?.length??0)-1?"border-b-2 border-black":""} ${f?"bg-memphis-mint":m<3?c[m]:""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:105",className:"w-8 text-center font-black text-lg",children:m<3?l[m]:s.jsx("span",{"data-loc":"client/src/pages/LeaderboardPage.tsx:106",className:"text-black/50 text-base",children:m+1})}),s.jsx("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:108",className:"w-10 h-10 rounded-xl border-2 border-black flex items-center justify-center text-xl bg-white flex-shrink-0",children:d.icon}),s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:111",className:"flex-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/LeaderboardPage.tsx:112",className:"flex items-center gap-2",children:[s.jsx("p",{"data-loc":"client/src/pages/LeaderboardPage.tsx:113",className:"font-black text-base text-black",children:d.name}),f&&s.jsxs("span",{"data-loc":"client/src/pages/LeaderboardPage.tsx:114",className:"memphis-badge-pill bg-black text-white text-xs flex items-center gap-1",children:[s.jsx(Gs,{"data-loc":"client/src/pages/LeaderboardPage.tsx:114",className:"w-3 h-3"})," ÙØ±ÙÙÙ"]})]}),s.jsxs("p",{"data-loc":"client/src/pages/LeaderboardPage.tsx:116",className:"text-xs font-bold text-black/50",children:[d.memberCount," عضÙ"]})]}),s.jsxs("span",{"data-loc":"client/src/pages/LeaderboardPage.tsx:118",className:"memphis-badge-pill bg-memphis-yellow font-black",children:[d.totalPoints," ÙÙØ·Ø©"]})]})},d.id)})}))]})]})}function k1e(){const{isAuthenticated:e}=Ma(),t=J.prizes.list.useQuery(),a=J.profile.me.useQuery(void 0,{enabled:e}),n=J.prizes.myRequests.useQuery(void 0,{enabled:e}),r=J.useUtils(),i=J.prizes.request.useMutation({onSuccess:()=>{re.success("تÙ
Ø¥Ø±Ø³Ø§Ù Ø·ÙØ¨Ù Ø¨ÙØ¬Ø§Ø! Ø³ÙØªÙ
Ù
راجعت٠Ù
Ù ÙØ¨Ù اÙÙ
Ø¯ÙØ±."),r.prizes.myRequests.invalidate()},onError:m=>re.error(m.message)}),o=a.data?.totalPoints??0,l=new Set((n.data??[]).filter(m=>m.request.status!=="rejected").map(m=>m.request.prizeId)),c={pending:"ÙÙØ¯ اÙÙ
راجعة",approved:"Ù
ÙØ§Ù٠عÙÙÙ",rejected:"Ù
رÙÙØ¶",delivered:"تÙ
Ø§ÙØªØ³ÙÙÙ
"},d={pending:"bg-memphis-yellow",approved:"bg-memphis-mint",rejected:"bg-red-100",delivered:"bg-green-100"};return s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:41",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/PrizesPage.tsx:42"}),s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:43",className:"max-w-4xl mx-auto px-4 py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:45",className:"memphis-card bg-memphis-yellow p-6 mb-8 flex flex-col sm:flex-row items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:46",className:"flex items-center gap-4",children:[s.jsx(Al,{"data-loc":"client/src/pages/PrizesPage.tsx:47",className:"w-12 h-12 text-black"}),s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:48",children:[s.jsx("h1",{"data-loc":"client/src/pages/PrizesPage.tsx:49",className:"memphis-title text-2xl text-black",children:"Ù
تجر Ø§ÙØ¬Ùائز"}),s.jsx("p",{"data-loc":"client/src/pages/PrizesPage.tsx:50",className:"text-black/60 font-medium",children:"استبد٠ÙÙØ§Ø·Ù Ø¨Ø¬ÙØ§Ø¦Ø² رائعة"})]})]}),e&&s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:54",className:"flex items-center gap-2 bg-white border-2 border-black rounded-full px-4 py-2 shadow-memphis",children:[s.jsx(aa,{"data-loc":"client/src/pages/PrizesPage.tsx:55",className:"w-4 h-4 text-black"}),s.jsxs("span",{"data-loc":"client/src/pages/PrizesPage.tsx:56",className:"font-black text-black",children:[o," ÙÙØ·Ø© Ù
ØªØ§ØØ©"]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/PrizesPage.tsx:62",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 mb-10",children:t.isLoading?[1,2,3].map(m=>s.jsx("div",{"data-loc":"client/src/pages/PrizesPage.tsx:64",className:"memphis-card h-48 animate-pulse bg-gray-100"},m)):t.data?.length===0?s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:66",className:"col-span-3 memphis-card p-10 text-center",children:[s.jsx(Al,{"data-loc":"client/src/pages/PrizesPage.tsx:67",className:"w-12 h-12 text-black/20 mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/pages/PrizesPage.tsx:68",className:"font-bold text-black/40",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¬ÙØ§Ø¦Ø² Ù
ØªØ§ØØ© ØØ§ÙÙØ§Ù"})]}):t.data?.map(m=>{const f=o>=m.requiredPoints,h=l.has(m.id);return s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:74",className:`memphis-card p-6 flex flex-col ${f?"":"op
871acity-70"}`,children:[s.jsx("div",{"data-loc":"client/src/pages/PrizesPage.tsx:75",className:"flex justify-center mb-4",children:s.jsx("div",{"data-loc":"client/src/pages/PrizesPage.tsx:76",className:"w-16 h-16 rounded-2xl border-2 border-black bg-memphis-peach flex items-center justify-center shadow-memphis",children:(()=>{const x=F_(m.nameAr);return s.jsx(x,{"data-loc":"client/src/pages/PrizesPage.tsx:77",size:40})})()})}),s.jsx("h3",{"data-loc":"client/src/pages/PrizesPage.tsx:80",className:"font-black text-lg text-black mb-2 text-center",children:m.nameAr}),m.descriptionAr&&s.jsx("p",{"data-loc":"client/src/pages/PrizesPage.tsx:81",className:"text-sm text-black/50 text-center mb-4 flex-1",children:m.descriptionAr}),s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:82",className:"flex items-center justify-between mt-auto pt-4 border-t-2 border-black",children:[s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:83",className:"flex items-center gap-1",children:[s.jsx(aa,{"data-loc":"client/src/pages/PrizesPage.tsx:84",className:"w-4 h-4 text-black"}),s.jsxs("span",{"data-loc":"client/src/pages/PrizesPage.tsx:85",className:"font-black text-sm text-black",children:[m.requiredPoints," ÙÙØ·Ø©"]})]}),e?h?s.jsxs("span",{"data-loc":"client/src/pages/PrizesPage.tsx:92",className:"memphis-badge-pill bg-memphis-mint text-xs flex items-center gap-1",children:[s.jsx(cr,{"data-loc":"client/src/pages/PrizesPage.tsx:93",className:"w-3 h-3"})," تÙ
Ø§ÙØ·Ùب"]}):f?s.jsx("button",{"data-loc":"client/src/pages/PrizesPage.tsx:96",onClick:()=>i.mutate({prizeId:m.id}),disabled:i.isPending,className:"memphis-btn bg-memphis-yellow px-3 py-1.5 text-xs font-black text-black disabled:opacity-50",children:i.isPending?"...":"Ø§Ø·ÙØ¨ Ø§ÙØ¬Ø§Ø¦Ø²Ø©"}):s.jsxs("span",{"data-loc":"client/src/pages/PrizesPage.tsx:104",className:"flex items-center gap-1 text-xs font-bold text-black/40",children:[s.jsx(d2,{"data-loc":"client/src/pages/PrizesPage.tsx:105",className:"w-3 h-3"})," ",m.requiredPoints-o," ÙÙØ·Ø© ÙØ§Ùصة"]}):s.jsx("button",{"data-loc":"client/src/pages/PrizesPage.tsx:88",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-3 py-1.5 text-xs font-black text-black",children:"سجÙ٠دخÙÙÙ"})]})]},m.id)})}),e&&(n.data?.length??0)>0&&s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:116",children:[s.jsx("h2",{"data-loc":"client/src/pages/PrizesPage.tsx:117",className:"font-black text-xl text-black mb-4",children:"Ø·ÙØ¨Ø§ØªÙ"}),s.jsx("div",{"data-loc":"client/src/pages/PrizesPage.tsx:118",className:"memphis-card overflow-hidden",children:n.data?.map((m,f)=>s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:120",className:`flex items-center gap-4 px-5 py-4 ${f<(n.data?.length??0)-1?"border-b-2 border-black":""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/PrizesPage.tsx:121",className:"w-10 h-10 rounded-xl border-2 border-black bg-memphis-peach flex items-center justify-center flex-shrink-0",children:(()=>{const h=F_(m.prize.nameAr);return s.jsx(h,{"data-loc":"client/src/pages/PrizesPage.tsx:122",size:24})})()}),s.jsxs("div",{"data-loc":"client/src/pages/PrizesPage.tsx:124",className:"flex-1",children:[s.jsx("p",{"data-loc":"client/src/pages/PrizesPage.tsx:125",className:"font-bold text-sm text-black",children:m.prize.nameAr}),s.jsxs("p",{"data-loc":"client/src/pages/PrizesPage.tsx:126",className:"text-xs text-black/50",children:[m.request.pointsSpent," ÙÙØ·Ø©"]})]}),s.jsx("span",{"data-loc":"client/src/pages/PrizesPage.tsx:128",className:`memphis-badge-pill ${d[m.request.status]} text-xs`,children:c[m.request.status]})]},m.request.id))})]})]})]})}const UC="jad-wajad-swipe-hint-dismissed";function N1e(){try{window.localStorage.removeItem(UC)}catch{}}function A1e({className:e=""}){const[t,a]=P.useState(!1);P.useEffect(()=>{try{a(window.localStorage.getItem(UC)!=="true")}catch{a(!0)}},[]),P.useEffect(()=>{if(!t)return;const r=window.setTimeout(()=>n(),7e3);return()=>window.clearTimeout(r)},[t]);const n=()=>{a(!1);try{window.localStorage.setItem(UC,"true")}catch{}};return t?s.jsxs("div",{"data-loc":"client/src/components/MobileSwipeHint.tsx:47",className:`flex items-start gap-3 border-2 border-[#16233f] bg-[#f2c84b] p-3 text-[#16233f] shadow-[3px_3px_0px_#16233f] md:hidden ${e}`,role:"status","aria-live":"polite",children:[s.jsx(Ppe,{"data-loc":"client/src/components/MobileSwipeHint.tsx:48",className:"mt-0.5 h-5 w-5 shrink-0","aria-hidden":"true"}),s.jsx("p",{"data-loc":"client/src/components/MobileSwipeHint.tsx:49",className:"flex-1 text-xs font-black leading-6",children:"تÙÙ
ÙØ: Ø§Ø³ØØ¨ ÙÙ
ÙÙØ§Ù Ø£Ù ÙØ³Ø§Ø±Ø§Ù ÙÙØªÙÙ٠بÙÙ Ø¹ÙØ§Ù
ات Ø§ÙØªØ¨ÙÙØ¨ ÙÙ
Ø±Ø´ØØ§Øª Ø§ÙØ±Ø³Ù
."}),s.jsx("button",{"data-loc":"client/src/components/MobileSwipeHint.tsx:50",type:"button",onClick:n,"aria-label":"Ø¥Ø®ÙØ§Ø¡ تÙÙ
ÙØ Ø§ÙØ³ØØ¨",title:"Ø¥Ø®ÙØ§Ø¡ Ø§ÙØªÙÙ
ÙØ",className:"shrink-0 border-2 border-[#16233f] bg-[#fff9ef] p-1 transition-transform active:translate-y-
871px",children:s.jsx(Zn,{"data-loc":"client/src/components/MobileSwipeHint.tsx:51",className:"h-4 w-4","aria-hidden":"true"})})]}):null}var mN,C9;function hr(){if(C9)return mN;C9=1;var e=Array.isArray;return mN=e,mN}var fN,T9;function bX(){if(T9)return fN;T9=1;var e=typeof E0=="object"&&E0&&E0.Object===Object&&E0;return fN=e,fN}var hN,D9;function Oo(){if(D9)return hN;D9=1;var e=bX(),t=typeof self=="object"&&self&&self.Object===Object&&self,a=e||t||Function("return this")();return hN=a,hN}var gN,E9;function nb(){if(E9)return gN;E9=1;var e=Oo(),t=e.Symbol;return gN=t,gN}var xN,M9;function S1e(){if(M9)return xN;M9=1;var e=nb(),t=Object.prototype,a=t.hasOwnProperty,n=t.toString,r=e?e.toStringTag:void 0;function i(o){var l=a.call(o,r),c=o[r];try{o[r]=void 0;var d=!0}catch{}var m=n.call(o);return d&&(l?o[r]=c:delete o[r]),m}return xN=i,xN}var bN,O9;function C1e(){if(O9)return bN;O9=1;var e=Object.prototype,t=e.toString;function a(n){return t.call(n)}return bN=a,bN}var vN,R9;function zl(){if(R9)return vN;R9=1;var e=nb(),t=S1e(),a=C1e(),n="[object Null]",r="[object Undefined]",i=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?r:n:i&&i in Object(l)?t(l):a(l)}return vN=o,vN}var yN,z9;function _l(){if(z9)return yN;z9=1;function e(t){return t!=null&&typeof t=="object"}return yN=e,yN}var wN,_9;function pf(){if(_9)return wN;_9=1;var e=zl(),t=_l(),a="[object Symbol]";function n(r){return typeof r=="symbol"||t(r)&&e(r)==a}return wN=n,wN}var PN,I9;function CD(){if(I9)return PN;I9=1;var e=hr(),t=pf(),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function r(i,o){if(e(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||t(i)?!0:n.test(i)||!a.test(i)||o!=null&&i in Object(o)}return PN=r,PN}var jN,L9;function Yc(){if(L9)return jN;L9=1;function e(t){var a=typeof t;return t!=null&&(a=="object"||a=="function")}return jN=e,jN}var kN,F9;function TD(){if(F9)return kN;F9=1;var e=zl(),t=Yc(),a="[object AsyncFunction]",n="[object Function]",r="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!t(l))return!1;var c=e(l);return c==n||c==r||c==a||c==i}return kN=o,kN}var NN,B9;function T1e(){if(B9)return NN;B9=1;var e=Oo(),t=e["__core-js_shared__"];return NN=t,NN}var AN,G9;function D1e(){if(G9)return AN;G9=1;var e=T1e(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function a(n){return!!t&&t in n}return AN=a,AN}var SN,H9;function vX(){if(H9)return SN;H9=1;var e=Function.prototype,t=e.toString;function a(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return SN=a,SN}var CN,q9;function E1e(){if(q9)return CN;q9=1;var e=TD(),t=D1e(),a=Yc(),n=vX(),r=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,c=o.toString,d=l.hasOwnProperty,m=RegExp("^"+c.call(d).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!a(h)||t(h))return!1;var x=e(h)?m:i;return x.test(n(h))}return CN=f,CN}var TN,U9;function M1e(){if(U9)return TN;U9=1;function e(t,a){return t?.[a]}return TN=e,TN}var DN,V9;function Eu(){if(V9)return DN;V9=1;var e=E1e(),t=M1e();function a(n,r){var i=t(n,r);return e(i)?i:void 0}return DN=a,DN}var EN,Q9;function N2(){if(Q9)return EN;Q9=1;var e=Eu(),t=e(Object,"create");return EN=t,EN}var MN,W9;function O1e(){if(W9)return MN;W9=1;var e=N2();function t(){this.__data__=e?e(null):{},this.size=0}return MN=t,MN}var ON,K9;function R1e(){if(K9)return ON;K9=1;function e(t){var a=this.has(t)&&delete this.__data__[t];return this.size-=a?1:0,a}return ON=e,ON}var RN,$9;function z1e(){if($9)return RN;$9=1;var e=N2(),t="__lodash_hash_undefined__",a=Object.prototype,n=a.hasOwnProperty;function r(i){var o=this.__data__;if(e){var l=o[i];return l===t?void 0:l}return n.call(o,i)?o[i]:void 0}return RN=r,RN}var zN,X9;function _1e(){if(X9)return zN;X9=1;var e=N2(),t=Object.prototype,a=t.hasOwnProperty;function n(r){var i=this.__data__;return e?i[r]!==void 0:a.call(i,r)}return zN=n,zN}var _N,Y9;function I1e(){if(Y9)return _N;Y9=1;var e=N2(),t="__lodash_hash_undefined__";function a(n,r){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&r===void 0?t:r,this}return _N=a,_N}var IN,Z9;function L1e(){if(Z9)return IN;Z9=1;var e=O1e(),t=R1e(),a=z1e(),n=_1e(),r=I1e();function i(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var d=o[l];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=a,i.prototype.has=n,i.prototype.set=r,IN=i,IN}var LN,J9;function F1e(){if(J9)return LN;J9=1;function e(){this.__data__=[],this.size=0}return LN=e,LN}var FN,eI;function DD(){if(eI)return FN;eI=1;function e(t,a){return t===a||t!==t&&a!==a}return FN=e,FN}var BN,tI;
vendor: 4,110 bytes, line 871
871function A2(){if(tI)return BN;tI=1;var e=DD();function t(a,n){for(var r=a.length;r--;)if(e(a[r][0],n))return r;return-1}return BN=t,BN}var GN,aI;function B1e(){if(aI)return GN;aI=1;var e=A2(),t=Array.prototype,a=t.splice;function n(r){var i=this.__data__,o=e(i,r);if(o<0)return!1;var l=i.length-1;return o==l?i.pop():a.call(i,o,1),--this.size,!0}return GN=n,GN}var HN,nI;function G1e(){if(nI)return HN;nI=1;var e=A2();function t(a){var n=this.__data__,r=e(n,a);return r<0?void 0:n[r][1]}return HN=t,HN}var qN,sI;function H1e(){if(sI)return qN;sI=1;var e=A2();function t(a){return e(this.__data__,a)>-1}return qN=t,qN}var UN,rI;function q1e(){if(rI)return UN;rI=1;var e=A2();function t(a,n){var r=this.__data__,i=e(r,a);return i<0?(++this.size,r.push([a,n])):r[i][1]=n,this}return UN=t,UN}var VN,iI;function S2(){if(iI)return VN;iI=1;var e=F1e(),t=B1e(),a=G1e(),n=H1e(),r=q1e();function i(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var d=o[l];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=a,i.prototype.has=n,i.prototype.set=r,VN=i,VN}var QN,oI;function ED(){if(oI)return QN;oI=1;var e=Eu(),t=Oo(),a=e(t,"Map");return QN=a,QN}var WN,lI;function U1e(){if(lI)return WN;lI=1;var e=L1e(),t=S2(),a=ED();function n(){this.size=0,this.__data__={hash:new e,map:new(a||t),string:new e}}return WN=n,WN}var KN,cI;function V1e(){if(cI)return KN;cI=1;function e(t){var a=typeof t;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?t!=="__proto__":t===null}return KN=e,KN}var $N,dI;function C2(){if(dI)return $N;dI=1;var e=V1e();function t(a,n){var r=a.__data__;return e(n)?r[typeof n=="string"?"string":"hash"]:r.map}return $N=t,$N}var XN,uI;function Q1e(){if(uI)return XN;uI=1;var e=C2();function t(a){var n=e(this,a).delete(a);return this.size-=n?1:0,n}return XN=t,XN}var YN,pI;function W1e(){if(pI)return YN;pI=1;var e=C2();function t(a){return e(this,a).get(a)}return YN=t,YN}var ZN,mI;function K1e(){if(mI)return ZN;mI=1;var e=C2();function t(a){return e(this,a).has(a)}return ZN=t,ZN}var JN,fI;function $1e(){if(fI)return JN;fI=1;var e=C2();function t(a,n){var r=e(this,a),i=r.size;return r.set(a,n),this.size+=r.size==i?0:1,this}return JN=t,JN}var e3,hI;function MD(){if(hI)return e3;hI=1;var e=U1e(),t=Q1e(),a=W1e(),n=K1e(),r=$1e();function i(o){var l=-1,c=o==null?0:o.length;for(this.clear();++l<c;){var d=o[l];this.set(d[0],d[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=a,i.prototype.has=n,i.prototype.set=r,e3=i,e3}var t3,gI;function yX(){if(gI)return t3;gI=1;var e=MD(),t="Expected a function";function a(n,r){if(typeof n!="function"||r!=null&&typeof r!="function")throw new TypeError(t);var i=function(){var o=arguments,l=r?r.apply(this,o):o[0],c=i.cache;if(c.has(l))return c.get(l);var d=n.apply(this,o);return i.cache=c.set(l,d)||c,d};return i.cache=new(a.Cache||e),i}return a.Cache=e,t3=a,t3}var a3,xI;function X1e(){if(xI)return a3;xI=1;var e=yX(),t=500;function a(n){var r=e(n,function(o){return i.size===t&&i.clear(),o}),i=r.cache;return r}return a3=a,a3}var n3,bI;function Y1e(){if(bI)return n3;bI=1;var e=X1e(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,n=e(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(t,function(o,l,c,d){i.push(c?d.replace(a,"$1"):l||o)}),i});return n3=n,n3}var s3,vI;function OD(){if(vI)return s3;vI=1;function e(t,a){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=a(t[n],n,t);return i}return s3=e,s3}var r3,yI;function Z1e(){if(yI)return r3;yI=1;var e=nb(),t=OD(),a=hr(),n=pf(),r=e?e.prototype:void 0,i=r?r.toString:void 0;function o(l){if(typeof l=="string")return l;if(a(l))return t(l,o)+"";if(n(l))return i?i.call(l):"";var c=l+"";return c=="0"&&1/l==-1/0?"-0":c}return r3=o,r3}var i3,wI;function wX(){if(wI)return i3;wI=1;var e=Z1e();function t(a){return a==null?"":e(a)}return i3=t,i3}var o3,PI;function PX(){if(PI)return o3;PI=1;var e=hr(),t=CD(),a=Y1e(),n=wX();function r(i,o){return e(i)?i:t(i,o)?[i]:a(n(i))}return o3=r,o3}var l3,jI;function T2(){if(jI)return l3;jI=1;var e=pf();
vendor: 4,903 bytes, lines 871-879
871function t(a){if(typeof a=="string"||e(a))return a;var n=a+"";return n=="0"&&1/a==-1/0?"-0":n}return l3=t,l3}var c3,kI;function RD(){if(kI)return c3;kI=1;var e=PX(),t=T2();function a(n,r){r=e(r,n);for(var i=0,o=r.length;n!=null&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0}return c3=a,c3}var d3,NI;function jX(){if(NI)return d3;NI=1;var e=RD();function t(a,n,r){var i=a==null?void 0:e(a,n);return i===void 0?r:i}return d3=t,d3}var J1e=jX();const Rr=Fa(J1e);var u3,AI;function e2e(){if(AI)return u3;AI=1;function e(t){return t==null}return u3=e,u3}var t2e=e2e();const Ft=Fa(t2e);var p3,SI;function a2e(){if(SI)return p3;SI=1;var e=zl(),t=hr(),a=_l(),n="[object String]";function r(i){return typeof i=="string"||!t(i)&&a(i)&&e(i)==n}return p3=r,p3}var n2e=a2e();const xu=Fa(n2e);var s2e=TD();const Gt=Fa(s2e);var r2e=Yc();const mf=Fa(r2e);var m3={exports:{}},Wa={};/** 872 * @license React 873 * react-is.production.min.js 874 * 875 * Copyright (c) Facebook, Inc. and its affiliates. 876 * 877 * This source code is licensed under the MIT license found in the 878 * LICENSE file in the root directory of this source tree. 879 */var CI;function i2e(){if(CI)return Wa;CI=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function y(w){if(typeof w=="object"&&w!==null){var j=w.$$typeof;switch(j){case e:switch(w=w.type,w){case a:case r:case n:case d:case m:return w;default:switch(w=w&&w.$$typeof,w){case l:case o:case c:case h:case f:case i:return w;default:return j}}case t:return j}}}return Wa.ContextConsumer=o,Wa.ContextProvider=i,Wa.Element=e,Wa.ForwardRef=c,Wa.Fragment=a,Wa.Lazy=h,Wa.Memo=f,Wa.Portal=t,Wa.Profiler=r,Wa.StrictMode=n,Wa.Suspense=d,Wa.SuspenseList=m,Wa.isAsyncMode=function(){return!1},Wa.isConcurrentMode=function(){return!1},Wa.isContextConsumer=function(w){return y(w)===o},Wa.isContextProvider=function(w){return y(w)===i},Wa.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Wa.isForwardRef=function(w){return y(w)===c},Wa.isFragment=function(w){return y(w)===a},Wa.isLazy=function(w){return y(w)===h},Wa.isMemo=function(w){return y(w)===f},Wa.isPortal=function(w){return y(w)===t},Wa.isProfiler=function(w){return y(w)===r},Wa.isStrictMode=function(w){return y(w)===n},Wa.isSuspense=function(w){return y(w)===d},Wa.isSuspenseList=function(w){return y(w)===m},Wa.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===a||w===r||w===n||w===d||w===m||w===x||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===f||w.$$typeof===i||w.$$typeof===o||w.$$typeof===c||w.$$typeof===b||w.getModuleId!==void 0)},Wa.typeOf=y,Wa}var TI;function o2e(){return TI||(TI=1,m3.exports=i2e()),m3.exports}var l2e=o2e(),f3,DI;function kX(){if(DI)return f3;DI=1;var e=zl(),t=_l(),a="[object Number]";function n(r){return typeof r=="number"||t(r)&&e(r)==a}return f3=n,f3}var h3,EI;function c2e(){if(EI)return h3;EI=1;var e=kX();function t(a){return e(a)&&a!=+a}return h3=t,h3}var d2e=c2e();const ff=Fa(d2e);var u2e=kX();const p2e=Fa(u2e);var Ws=function(t){return t===0?0:t>0?1:-1},Xd=function(t){return xu(t)&&t.indexOf("%")===t.length-1},ut=function(t){return p2e(t)&&!ff(t)},m2e=function(t){return Ft(t)},rs=function(t){return ut(t)||xu(t)},f2e=0,Zc=function(t){var a=++f2e;return"".concat(t||"").concat(a)},Ks=function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ut(t)&&!xu(t))return n;var i;if(Xd(t)){var o=t.indexOf("%");i=a*parseFloat(t.slice(0,o))/100}else i=+t;return ff(i)&&(i=n),r&&i>a&&(i=a),i},kc=function(t){if(!t)return null;var a=Object.keys(t);return a&&a.length?t[a[0]]:null},h2e=function(t){if(!Array.isArray(t))return!1;for(var a=t.length,n={},r=0;r<a;r++)if(!n[t[r]])n[t[r]]=!0;else return!0;return!1},Nn=function(t,a){return ut(t)&&ut(a)?function(n){return t+n*(a-t)}:function(){return a}};function wy(e,t,a){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Rr(n,t))===a})}var g2e=function(t){if(!t||!t.length)return null;for(var a=t.length,n=0,r=0,i=0,o=0,l=1/0,c=-1/0,d=0,m=0,f=0;f<a;f++)d=t[f].cx||0,m=t[f].cy||0,n+=d,r+=m,i+=d*m,o+=d*d,l=Math.min(l,d),c=Math.max(c,d);var h=a*o!==n*n?(a*i-n*r)/(a*o-n*n):0;return{xmin:l,xmax:c,a:h,b:(r-h*n)/a}},x2e=function(t,a){return ut(t)&&ut(a)?t-a:xu(t)&&xu(a)?t.localeCompare(a):t instanceof Date&&a instanceof Date?t.getTime()-a.getTime():String(t).localeCompare(String(a))};function um(e,t){for(var a in e)if({}.hasOwnProperty.call(e,a)&&(!{}
879.hasOwnProperty.call(t,a)||e[a]!==t[a]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function VC(e){"@babel/helpers - typeof";return VC=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},VC(e)}var b2e=["viewBox","children"],v2e=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],MI=["points","pathLength"],g3={svg:b2e,polygon:MI,polyline:MI},zD=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
879ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Py=function(t,a){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(P.isValidElement(t)&&(n=t.props),!mf(n))return null;var r={};return Object.keys(n).forEach(function(i){zD.includes(i)&&(r[i]=a||function(o){return n[i](n,o)})}),r},y2e=function(t,a,n){return function(r){return t(a,n,r),null}},Hc=function(t,a,n){if(!mf(t)||VC(t)!=="object")return null;var r=null;return Object.keys(t).forEach(function(i){var o=t[i];zD.includes(i)&&typeof o=="function"&&(r||(r={}),r[i]=y2e(o,a,n))}),r},w2e=["children"],P2e=["children"];function OI(e,t){if(e==null)return{};var a=j2e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function j2e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function QC(e){"@babel/helpers - typeof";return QC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QC(e)}var RI={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
vendor: 5,384 bytes, line 879
879,vl=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zI=null,x3=null,_D=function e(t){if(t===zI&&Array.isArray(x3))return x3;var a=[];return P.Children.forEach(t,function(n){Ft(n)||(l2e.isFragment(n)?a=a.concat(e(n.props.children)):a.push(n))}),x3=a,zI=t,a};function Ys(e,t){var a=[],n=[];return Array.isArray(t)?n=t.map(function(r){return vl(r)}):n=[vl(t)],_D(e).forEach(function(r){var i=Rr(r,"type.displayName")||Rr(r,"type.name");n.indexOf(i)!==-1&&a.push(r)}),a}function Sr(e,t){var a=Ys(e,t);return a&&a[0]}var _I=function(t){if(!t||!t.props)return!1;var a=t.props,n=a.width,r=a.height;return!(!ut(n)||n<=0||!ut(r)||r<=0)},k2e=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],N2e=function(t){return t&&t.type&&xu(t.type)&&k2e.indexOf(t.type)>=0},NX=function(t){return t&&QC(t)==="object"&&"clipDot"in t},A2e=function(t,a,n,r){var i,o=(i=g3?.[r])!==null&&i!==void 0?i:[];return a.startsWith("data-")||!Gt(t)&&(r&&o.includes(a)||v2e.includes(a))||n&&zD.includes(a)},Rt=function(t,a,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!mf(r))return null;var i={};return Object.keys(r).forEach(function(o){var l;A2e((l=r)===null||l===void 0?void 0:l[o],o,a,n)&&(i[o]=r[o])}),i},WC=function e(t,a){if(t===a)return!0;var n=P.Children.count(t);if(n!==P.Children.count(a))return!1;if(n===0)return!0;if(n===1)return II(Array.isArray(t)?t[0]:t,Array.isArray(a)?a[0]:a);for(var r=0;r<n;r++){var i=t[r],o=a[r];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!II(i,o))return!1}return!0},II=function(t,a){if(Ft(t)&&Ft(a))return!0;if(!Ft(t)&&!Ft(a)){var n=t.props||{},r=n.children,i=OI(n,w2e),o=a.props||{},l=o.children,c=OI(o,P2e);return r&&l?um(i,c)&&WC(r,l):!r&&!l?um(i,c):!1}return!1},LI=function(t,a){var n=[],r={};return _D(t).forEach(function(i,o){if(N2e(i))n.push(i);else if(i){var l=vl(i.type),c=a[l]||{},d=c.handler,m=c.once;if(d&&(!m||!r[l])){var f=d(i,l,o);n.push(f),r[l]=!0}}}),n},S2e=function(t){var a=t&&t.type;return a&&RI[a]?RI[a]:null},C2e=function(t,a){return _D(a).indexOf(t)},T2e=["children","width","height","viewBox","className","style","title","desc"];function KC(){return KC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},KC.apply(this,arguments)}function D2e(e,t){if(e==null)return{};var a=E2e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function E2e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function $C(e){var t=e.children,a=e.width,n=e.height,r=e.viewBox,i=e.className,o=e.style,l=e.title,c=e.desc,d=D2e(e,T2e),m=r||{width:a,height:n,x:0,y:0},f=Yt("recharts-surface",i);return ie.createElement("svg",KC({},Rt(d,!0,"svg"),{className:f,width:a,height:n,style:o,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),ie.createElement("title",null,l),ie.createElement("desc",null,c),t)}var M2e=["children","className"];function XC(){return XC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},XC.apply(this,arguments)}function O2e(e,t){if(e==null)return{};var a=R2e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function R2e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}var la=ie.forwardRef(function(e,t){var a=e.children,n=e.className,r=O2e(e,M2e),i=Yt("recharts-layer",n);return ie.createElement("g",XC({className:i},Rt(r,!0),{ref:t}),a)}),Wi=function(t,a){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i]},b3,FI;function z2e(){if(FI)return b3;FI=1;function e(t,a,n){var r=-1,i=t.length;a<0&&(a=-a>i?0:i+a),n=n>i?i:n,n<0&&(n+=i),i=a>n?0:n-a>>>0,a>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+a];return o}return b3=e,b3}var v3,BI;function _2e(){if(BI)return v3;BI=1;var e=z2e();function t(a,n,r){var i=a.length;return r=r===void 0?i:r,!n&&r>=i?a:e(a,n,r)}return v3=t,v3}var y3,GI;
vendor: 15,297 bytes, line 879
879function AX(){if(GI)return y3;GI=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",r=t+a+n,i="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+r+i+"]");function c(d){return l.test(d)}return y3=c,y3}var w3,HI;function I2e(){if(HI)return w3;HI=1;function e(t){return t.split("")}return w3=e,w3}var P3,qI;function L2e(){if(qI)return P3;qI=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",r=t+a+n,i="\\ufe0e\\ufe0f",o="["+e+"]",l="["+r+"]",c="\\ud83c[\\udffb-\\udfff]",d="(?:"+l+"|"+c+")",m="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",b=d+"?",y="["+i+"]?",w="(?:"+x+"(?:"+[m,f,h].join("|")+")"+y+b+")*",j=y+b+w,N="(?:"+[m+l+"?",l,f,h,o].join("|")+")",k=RegExp(c+"(?="+c+")|"+N+j,"g");function D(C){return C.match(k)||[]}return P3=D,P3}var j3,UI;function F2e(){if(UI)return j3;UI=1;var e=I2e(),t=AX(),a=L2e();function n(r){return t(r)?a(r):e(r)}return j3=n,j3}var k3,VI;function B2e(){if(VI)return k3;VI=1;var e=_2e(),t=AX(),a=F2e(),n=wX();function r(i){return function(o){o=n(o);var l=t(o)?a(o):void 0,c=l?l[0]:o.charAt(0),d=l?e(l,1).join(""):o.slice(1);return c[i]()+d}}return k3=r,k3}var N3,QI;function G2e(){if(QI)return N3;QI=1;var e=B2e(),t=e("toUpperCase");return N3=t,N3}var H2e=G2e();const D2=Fa(H2e);function un(e){return function(){return e}}const SX=Math.cos,jy=Math.sin,ao=Math.sqrt,ky=Math.PI,E2=2*ky,YC=Math.PI,ZC=2*YC,Gd=1e-6,q2e=ZC-Gd;function CX(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=arguments[t]+e[t]}function U2e(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return CX;const a=10**t;return function(n){this._+=n[0];for(let r=1,i=n.length;r<i;++r)this._+=Math.round(arguments[r]*a)/a+n[r]}}class V2e{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?CX:U2e(t)}moveTo(t,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+a}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,a){this._append`L${this._x1=+t},${this._y1=+a}`}quadraticCurveTo(t,a,n,r){this._append`Q${+t},${+a},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,a,n,r,i,o){this._append`C${+t},${+a},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,a,n,r,i){if(t=+t,a=+a,n=+n,r=+r,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,c=n-t,d=r-a,m=o-t,f=l-a,h=m*m+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=a}`;else if(h>Gd)if(!(Math.abs(f*c-d*m)>Gd)||!i)this._append`L${this._x1=t},${this._y1=a}`;else{let x=n-o,b=r-l,y=c*c+d*d,w=x*x+b*b,j=Math.sqrt(y),N=Math.sqrt(h),k=i*Math.tan((YC-Math.acos((y+h-w)/(2*j*N)))/2),D=k/N,C=k/j;Math.abs(D-1)>Gd&&this._append`L${t+D*m},${a+D*f}`,this._append`A${i},${i},0,0,${+(f*x>m*b)},${this._x1=t+C*c},${this._y1=a+C*d}`}}arc(t,a,n,r,i,o){if(t=+t,a=+a,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(r),c=n*Math.sin(r),d=t+l,m=a+c,f=1^o,h=o?r-i:i-r;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>Gd||Math.abs(this._y1-m)>Gd)&&this._append`L${d},${m}`,n&&(h<0&&(h=h%ZC+ZC),h>q2e?this._append`A${n},${n},0,1,${f},${t-l},${a-c}A${n},${n},0,1,${f},${this._x1=d},${this._y1=m}`:h>Gd&&this._append`A${n},${n},0,${+(h>=YC)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=a+n*Math.sin(i)}`)}rect(t,a,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+a}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function ID(e){let t=3;return e.digits=function(a){if(!arguments.length)return t;if(a==null)t=null;else{const n=Math.floor(a);if(!(n>=0))throw new RangeError(`invalid digits: ${a}`);t=n}return e},()=>new V2e(t)}function LD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function TX(e){this._context=e}TX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function M2(e){return new TX(e)}function DX(e){return e[0]}function EX(e){return e[1]}function MX(e,t){var a=un(!0),n=null,r=M2,i=null,o=ID(l);e=typeof e=="function"?e:e===void 0?DX:un(e),t=typeof t=="function"?t:t===void 0?EX:un(t);function l(c){var d,m=(c=LD(c)).length,f,h=!1,x;for(n==null&&(i=r(x=o())),d=0;d<=m;++d)!(d<m&&a(f=c[d],d,c))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(f,d,c),+t(f,d,c));if(x)return i=null,x+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:un(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:un(+c),l):t},l.defined=function(c){return arguments.length?(a=typeof c=="function"?c:un(!!c),l):a},l.curve=function(c){return arguments.length?(r=c,n!=null&&(i=r(n)),l):r},l.context=function(c){return arguments.length?(c==null?n=i=null:i=r(n=c),l):n},l}function Z0(e,t,a){var n=null,r=un(!0),i=null,o=M2,l=null,c=ID(d);e=typeof e=="function"?e:e===void 0?DX:un(+e),t=typeof t=="function"?t:un(t===void 0?0:+t),a=typeof a=="function"?a:a===void 0?EX:un(+a);function d(f){var h,x,b,y=(f=LD(f)).length,w,j=!1,N,k=new Array(y),D=new Array(y);for(i==null&&(l=o(N=c())),h=0;h<=y;++h){if(!(h<y&&r(w=f[h],h,f))===j)if(j=!j)x=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=h-1;b>=x;--b)l.point(k[b],D[b]);l.lineEnd(),l.areaEnd()}j&&(k[h]=+e(w,h,f),D[h]=+t(w,h,f),l.point(n?+n(w,h,f):k[h],a?+a(w,h,f):D[h]))}if(N)return l=null,N+""||null}function m(){return MX().defined(r).curve(o).context(i)}return d.x=function(f){return arguments.length?(e=typeof f=="function"?f:un(+f),n=null,d):e},d.x0=function(f){return arguments.length?(e=typeof f=="function"?f:un(+f),d):e},d.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:un(+f),d):n},d.y=function(f){return arguments.length?(t=typeof f=="function"?f:un(+f),a=null,d):t},d.y0=function(f){return arguments.length?(t=typeof f=="function"?f:un(+f),d):t},d.y1=function(f){return arguments.length?(a=f==null?null:typeof f=="function"?f:un(+f),d):a},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(a)},d.lineX1=function(){return m().x(n).y(t)},d.defined=function(f){return arguments.length?(r=typeof f=="function"?f:un(!!f),d):r},d.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),d):o},d.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),d):i},d}class OX{constructor(t,a){this._context=t,this._x=a}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,a){switch(t=+t,a=+a,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,a):this._context.moveTo(t,a);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,a,t,a):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+a)/2,t,this._y0,t,a);break}}this._x0=t,this._y0=a}}function Q2e(e){return new OX(e,!0)}function W2e(e){return new OX(e,!1)}const FD={draw(e,t){const a=ao(t/ky);e.moveTo(a,0),e.arc(0,0,a,0,E2)}},K2e={draw(e,t){const a=ao(t/5)/2;e.moveTo(-3*a,-a),e.lineTo(-a,-a),e.lineTo(-a,-3*a),e.lineTo(a,-3*a),e.lineTo(a,-a),e.lineTo(3*a,-a),e.lineTo(3*a,a),e.lineTo(a,a),e.lineTo(a,3*a),e.lineTo(-a,3*a),e.lineTo(-a,a),e.lineTo(-3*a,a),e.closePath()}},RX=ao(1/3),$2e=RX*2,X2e={draw(e,t){const a=ao(t/$2e),n=a*RX;e.moveTo(0,-a),e.lineTo(n,0),e.lineTo(0,a),e.lineTo(-n,0),e.closePath()}},Y2e={draw(e,t){const a=ao(t),n=-a/2;e.rect(n,n,a,a)}},Z2e=.8908130915292852,zX=jy(ky/10)/jy(7*ky/10),J2e=jy(E2/10)*zX,ewe=-SX(E2/10)*zX,twe={draw(e,t){const a=ao(t*Z2e),n=J2e*a,r=ewe*a;e.moveTo(0,-a),e.lineTo(n,r);for(let i=1;i<5;++i){const o=E2*i/5,l=SX(o),c=jy(o);e.lineTo(c*a,-l*a),e.lineTo(l*n-c*r,c*n+l*r)}e.closePath()}},A3=ao(3),awe={draw(e,t){const a=-ao(t/(A3*3));e.moveTo(0,a*2),e.lineTo(-A3*a,-a),e.lineTo(A3*a,-a),e.closePath()}},Zr=-.5,Jr=ao(3)/2,JC=1/ao(12),nwe=(JC/2+1)*3,swe={draw(e,t){const a=ao(t/nwe),n=a/2,r=a*JC,i=n,o=a*JC+a,l=-i,c=o;e.moveTo(n,r),e.lineTo(i,o),e.lineTo(l,c),e.lineTo(Zr*n-Jr*r,Jr*n+Zr*r),e.lineTo(Zr*i-Jr*o,Jr*i+Zr*o),e.lineTo(Zr*l-Jr*c,Jr*l+Zr*c),e.lineTo(Zr*n+Jr*r,Zr*r-Jr*n),e.lineTo(Zr*i+Jr*o,Zr*o-Jr*i),e.lineTo(Zr*l+Jr*c,Zr*c-Jr*l),e.closePath()}};function rwe(e,t){let a=null,n=ID(r);e=typeof e=="function"?e:un(e||FD),t=typeof t=="function"?t:un(t===void 0?64:+t);function r(){let i;if(a||(a=i=n()),e.apply(this,arguments).draw(a,+t.apply(this,arguments)),i)return a=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:un(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:un(+i),r):t},r.context=function(i){return arguments.length?(a=i??null,r):a},r}function Ny(){}function Ay(e,t,a){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+a)/6)}function _X(e){this._context=e}_X.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ay(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ay(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iwe(e){return new _X(e)}function IX(e){this._context=e}IX.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ay(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function owe(e){return new IX(e)}function LX(e){this._context=e}LX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var a=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(a,n):this._context.moveTo(a,n);break;case 3:this._point=4;default:Ay(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lwe(e){return new LX(e)}function FX(e){this._context=e}FX.prototype={areaStart:Ny,areaEnd:Ny,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function cwe(e){return new FX(e)}function WI(e){return e<0?-1:1}function KI(e,t,a){var n=e._x1-e._x0,r=t-e._x1,i=(e._y1-e._y0)/(n||r<0&&-0),o=(a-e._y1)/(r||n<0&&-0),l=(i*r+o*n)/(n+r);return(WI(i)+WI(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function $I(e,t){var a=e._x1-e._x0;return a?(3*(e._y1-e._y0)/a-t)/2:t}function S3(e,t,a){var n=e._x0,r=e._y0,i=e._x1,o=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,r+l*t,i-l,o-l*a,i,o)}function Sy(e){this._context=e}Sy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:S3(this,this._t0,$I(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var a=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,S3(this,$I(this,a=KI(this,e,t)),a);break;default:S3(this,this._t0,a=KI(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=a}}};function BX(e){this._context=new GX(e)}(BX.prototype=Object.create(Sy.prototype)).point=function(e,t){Sy.prototype.point.call(this,t,e)};function GX(e){this._context=e}GX.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,a,n,r,i){this._context.bezierCurveTo(t,e,n,a,i,r)}};function dwe(e){return new Sy(e)}function uwe(e){return new BX(e)}function HX(e){this._context=e}HX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,a=e.length;if(a)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),a===2)this._context.lineTo(e[1],t[1]);else for(var n=XI(e),r=XI(t),i=0,o=1;o<a;++i,++o)this._context.bezierCurveTo(n[0][i],r[0][i],n[1][i],r[1][i],e[o],t[o]);(this._line||this._line!==0&&a===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function XI(e){var t,a=e.length-1,n,r=new Array(a),i=new Array(a),o=new Array(a);for(r[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<a-1;++t)r[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(r[a-1]=2,i[a-1]=7,o[a-1]=8*e[a-1]+e[a],t=1;t<a;++t)n=r[t]/i[t-1],i[t]-=n,o[t]-=n*o[t-1];for(r[a-1]=o[a-1]/i[a-1],t=a-2;t>=0;--t)r[t]=(o[t]-r[t+1])/i[t];for(i[a-1]=(e[a]+r[a-1])/2,t=0;t<a-1;++t)i[t]=2*e[t+1]-r[t+1];return[r,i]}function pwe(e){return new HX(e)}function O2(e,t){this._context=e,this._t=t}O2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 17,528 bytes, lines 879-882
879default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var a=this._x*(1-this._t)+e*this._t;this._context.lineTo(a,this._y),this._context.lineTo(a,t)}break}}this._x=e,this._y=t}};function mwe(e){return new O2(e,.5)}function fwe(e){return new O2(e,0)}function hwe(e){return new O2(e,1)}function jm(e,t){if((o=e.length)>1)for(var a=1,n,r,i=e[t[0]],o,l=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function e4(e){for(var t=e.length,a=new Array(t);--t>=0;)a[t]=t;return a}function gwe(e,t){return e[t]}function xwe(e){const t=[];return t.key=e,t}function bwe(){var e=un([]),t=e4,a=jm,n=gwe;function r(i){var o=Array.from(e.apply(this,arguments),xwe),l,c=o.length,d=-1,m;for(const f of i)for(l=0,++d;l<c;++l)(o[l][d]=[0,+n(f,o[l].key,d,i)]).data=f;for(l=0,m=LD(t(o));l<c;++l)o[m[l]].index=l;return a(o,m),o}return r.keys=function(i){return arguments.length?(e=typeof i=="function"?i:un(Array.from(i)),r):e},r.value=function(i){return arguments.length?(n=typeof i=="function"?i:un(+i),r):n},r.order=function(i){return arguments.length?(t=i==null?e4:typeof i=="function"?i:un(Array.from(i)),r):t},r.offset=function(i){return arguments.length?(a=i??jm,r):a},r}function vwe(e,t){if((n=e.length)>0){for(var a,n,r=0,i=e[0].length,o;r<i;++r){for(o=a=0;a<n;++a)o+=e[a][r][1]||0;if(o)for(a=0;a<n;++a)e[a][r][1]/=o}jm(e,t)}}function ywe(e,t){if((r=e.length)>0){for(var a=0,n=e[t[0]],r,i=n.length;a<i;++a){for(var o=0,l=0;o<r;++o)l+=e[o][a][1]||0;n[a][1]+=n[a][0]=-l/2}jm(e,t)}}function wwe(e,t){if(!(!((o=e.length)>0)||!((i=(r=e[t[0]]).length)>0))){for(var a=0,n=1,r,i,o;n<i;++n){for(var l=0,c=0,d=0;l<o;++l){for(var m=e[t[l]],f=m[n][1]||0,h=m[n-1][1]||0,x=(f-h)/2,b=0;b<l;++b){var y=e[t[b]],w=y[n][1]||0,j=y[n-1][1]||0;x+=w-j}c+=f,d+=x*f}r[n-1][1]+=r[n-1][0]=a,c&&(a-=d/c)}r[n-1][1]+=r[n-1][0]=a,jm(e,t)}}function Wg(e){"@babel/helpers - typeof";return Wg=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},Wg(e)}var Pwe=["type","size","sizeType"];function t4(){return t4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},t4.apply(this,arguments)}function YI(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function ZI(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?YI(Object(a),!0).forEach(function(n){jwe(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):YI(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function jwe(e,t,a){return t=kwe(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function kwe(e){var t=Nwe(e,"string");return Wg(t)=="symbol"?t:t+""}function Nwe(e,t){if(Wg(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Wg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Awe(e,t){if(e==null)return{};var a=Swe(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Swe(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}var qX={symbolCircle:FD,symbolCross:K2e,symbolDiamond:X2e,symbolSquare:Y2e,symbolStar:twe,symbolTriangle:awe,symbolWye:swe},Cwe=Math.PI/180,Twe=function(t){var a="symbol".concat(D2(t));return qX[a]||FD},Dwe=function(t,a,n){if(a==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var r=18*Cwe;return 1.25*t*t*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Ewe=function(t,a){qX["symbol".concat(D2(t))]=a},R2=function(t){var a=t.type,n=a===void 0?"circle":a,r=t.size,i=r===void 0?64:r,o=t.sizeType,l=o===void 0?"area":o,c=Awe(t,Pwe),d=ZI(ZI({},c),{},{type:n,size:i,sizeType:l}),m=function(){var w=Twe(n),j=rwe().type(w).size(Dwe(i,l,n));return j()},f=d.className,h=d.cx,x=d.cy,b=Rt(d,!0);return h===+h&&x===+x&&i===+i?ie.createElement("path",t4({},b,{className:Yt("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(x,")"),d:m()})):null};R2.registerSymbol=Ewe;function km(e){"@babel/helpers - typeof";return km=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},km(e)}function a4(){return a4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},a4.apply(this,arguments)}function JI(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Mwe(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(a),!0).forEach(function(n){Kg(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):JI(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Owe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rwe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VX(n.key),n)}}function zwe(e,t,a){return t&&Rwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _we(e,t,a){return t=Cy(t),Iwe(e,UX()?Reflect.construct(t,a||[],Cy(e).constructor):t.apply(e,a))}function Iwe(e,t){if(t&&(km(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lwe(e)}function Lwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UX=function(){return!!e})()}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Cy(e)}function Fwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n4(e,t)}function n4(e,t){return n4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},n4(e,t)}function Kg(e,t,a){return t=VX(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function VX(e){var t=Bwe(e,"string");return km(t)=="symbol"?t:t+""}function Bwe(e,t){if(km(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(km(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ei=32,BD=(function(e){function t(){return Owe(this,t),_we(this,t,arguments)}return Fwe(t,e),zwe(t,[{key:"renderIcon",value:function(n){var r=this.props.inactiveColor,i=ei/2,o=ei/6,l=ei/3,c=n.inactive?r:n.color;if(n.type==="plainline")return ie.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:ei,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return ie.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(l,` 880 A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,` 881 H`).concat(ei,"M").concat(2*l,",").concat(i,` 882 A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return ie.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(ei/8,"h").concat(ei,"v").concat(ei*3/4,"h").concat(-ei,"z"),className:"recharts-legend-icon"});if(ie.isValidElement(n.legendIcon)){var d=Mwe({},n);return delete d.legendIcon,ie.cloneElement(n.legendIcon,d)}return ie.createElement(R2,{fill:c,cx:i,cy:i,size:ei,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,r=this.props,i=r.payload,o=r.iconSize,l=r.layout,c=r.formatter,d=r.inactiveColor,m={x:0,y:0,width:ei,height:ei},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(x,b){var y=x.formatter||c,w=Yt(Kg(Kg({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",x.inactive));if(x.type==="none")return null;var j=Gt(x.value)?null:x.value;Wi(!Gt(x.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var N=x.inactive?d:x.color;return ie.createElement("li",a4({className:w,style:f,key:"legend-item-".concat(b)},Hc(n.props,x,b)),ie.createElement($C,{width:o,height:o,viewBox:m,style:h},n.renderIcon(x)),ie.createElement("span",{className:"recharts-legend-item-text",style:{color:N}},y?y(j,x,b):j))})}},{key:"render",value:function(){var n=this.props,r=n.payload,i=n.layout,o=n.align;if(!r||!r.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return ie.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(P.PureComponent);Kg(BD,"displayName","Legend");Kg(BD,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var C3,eL;function Gwe(){if(eL)return C3;eL=1;var e=S2();function t(){this.__data__=new e,this.size=0}return C3=t,C3}var T3,tL;function Hwe(){if(tL)return T3;tL=1;function e(t){var a=this.__data__,n=a.delete(t);return this.size=a.size,n}return T3=e,T3}var D3,aL;function qwe(){if(aL)return D3;aL=1;function e(t){return this.__data__.get(t)}return D3=e,D3}var E3,nL;function Uwe(){if(nL)return E3;nL=1;function e(t){return this.__data__.has(t)}return E3=e,E3}var M3,sL;function Vwe(){if(sL)return M3;sL=1;var e=S2(),t=ED(),a=MD(),n=200;function r(i,o){var l=this.__data__;if(l instanceof e){var c=l.__data__;if(!t||c.length<n-1)return c.push([i,o]),this.size=++l.size,this;l=this.__data__=new a(c)}return l.set(i,o),this.size=l.size,this}return M3=r,M3}var O3,rL;function QX(){if(rL)return O3;rL=1;var e=S2(),t=Gwe(),a=Hwe(),n=qwe(),r=Uwe(),i=Vwe();function o(l){var c=this.__data__=new e(l);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=a,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,O3=o,O3}var R3,iL;function Qwe(){if(iL)return R3;iL=1;var e="__lodash_hash_undefined__";function t(a){return this.__data__.set(a,e),this}return R3=t,R3}var z3,oL;function Wwe(){if(oL)return z3;oL=1;function e(t){return this.__data__.has(t)}return z3=e,z3}var _3,lL;function WX(){if(lL)return _3;lL=1;var e=MD(),t=Qwe(),a=Wwe();function n(r){var i=-1,o=r==null?0:r.length;for(this.__data__=new e;++i<o;)this.add(r[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=a,_3=n,_3}var I3,cL;function KX(){if(cL)return I3;cL=1;function e(t,a){for(var n=-1,r=t==null?0:t.length;++n<r;)if(a(t[n],n,t))return!0;return!1}return I3=e,I3}var L3,dL;function $X(){if(dL)return L3;dL=1;function e(t,a){return t.has(a)}return L3=e,L3}var F3,uL;function XX(){if(uL)return F3;uL=1;var e=WX(),t=KX(),a=$X(),n=1,r=2;function i(o,l,c,d,m,f){var h=c&n,x=o.length,b=l.length;if(x!=b&&!(h&&b>x))return!1;var y=f.get(o),w=f.get(l);if(y&&w)return y==l&&w==o;var j=-1,N=!0,k=c&r?new e:void 0;for(f.set(o,l),f.set(l,o);++j<x;){var D=o[j],C=l[j];if(d)var S=h?d(C,D,j,l,o,f):d(D,C,j,o,l,f);if(S!==void 0){if(S)continue;N=!1;break}if(k){if(!t(l,function(A,E){if(!a(k,E)&&(D===A||m(D,A,c,d,f)))return k.push(E)})){N=!1;break}}else if(!(D===C||m(D,C,c,d,f))){N=!1;break}}return f.delete(o),f.delete(l),N}return F3=i,F3}var B3,pL;function Kwe(){if(pL)return B3;pL=1;var e=Oo(),t=e.Uint8Array;return B3=t,B3}var G3,mL;function $we(){if(mL)return G3;mL=1;function e(t){var a=-1,n=Array(t.size);return t.forEach(function(r,i){n[++a]=[i,r]}),n}return G3=e,G3}var H3,fL;function GD(){if(fL)return H3;fL=1;function e(t){var a=-1,n=Array(t.size);return t.forEach(function(r){n[++a]=r}),n}return H3=e,H3}var q3,hL;function Xwe(){if(hL)return q3;hL=1;var e=nb(),t=Kwe(),a=DD(),n=XX(),r=$we(),i=GD(),o=1,l=2,c="[object Boolean]",d="[object Date]",m="[object Error]",f="[object Map]",h="[object Number]",x="[object RegExp]",b="[object Set]",y="[object String]",w="[object Symbol]",j="[object ArrayBuffer]",N="[object DataView]",k=e?e.prototype:void 0,D=k?k.valueOf:void 0;function C(S,A,E,R,F,I,H){switch(E){case N:if(S.byteLength!=A.byteLength||S.byteOffset!=A.byteOffset)return!1;S=S.buffer,A=A.buffer;case j:return!(S.byteLength!=A.byteLength||!I(new t(S),new t(A)));case c:case d:case h:return a(+S,+A);case m:return S.name==A.name&&S.message==A.message;case x:case y:return S==A+"";case f:var _=r;case b:var V=R&o;if(_||(_=i),S.size!=A.size&&!V)return!1;var W=H.get(S);if(W)return W==A;R|=l,H.set(S,A);var B=n(_(S),_(A),R,F,I,H);return H.delete(S),B;case w:if(D)return D.call(S)==D.call(A)}return!1}return q3=C,q3}var U3,gL;function YX(){if(gL)return U3;gL=1;function e(t,a){for(var n=-1,r=a.length,i=t.length;++n<r;)t[i+n]=a[n];return t}return U3=e,U3}var V3,xL;function Ywe(){if(xL)return V3;xL=1;var e=YX(),t=hr();function a(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))}return V3=a,V3}var Q3,bL;function Zwe(){if(bL)return Q3;bL=1;function e(t,a){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var l=t[n];a(l,n,t)&&(o[i++]=l)}return o}return Q3=e,Q3}var W3,vL;function Jwe(){if(vL)return W3;vL=1;function e(){return[]}return W3=e,W3}var K3,yL;function ePe(){if(yL)return K3;yL=1;var e=Zwe(),t=Jwe(),a=Object.prototype,n=a.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(o){return o==null?[]:(o=Object(o),e(r(o),function(l){return n.call(o,l)}))}:t;return K3=i,K3}var $3,wL;function tPe(){if(wL)return $3;wL=1;function e(t,a){for(var n=-1,r=Array(t);++n<t;)r[n]=a(n);return r}return $3=e,$3}var X3,PL;function aPe(){if(PL)return X3;PL=1;var e=zl(),t=_l(),a="[object Arguments]";function n(r){return t(r)&&e(r)==a}return X3=n,X3}var Y3,jL;function HD(){if(jL)return Y3;jL=1;var e=aPe(),t=_l(),a=Object.prototype,n=a.hasOwnProperty,r=a.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!r.call(o,"callee")};return Y3=i,Y3}var qh={exports:{}},Z3,kL;function nPe(){if(kL)return Z3;kL=1;function e(){return!1}return Z3=e,Z3}qh.exports;var NL;function ZX(){return NL||(NL=1,(function(e,t){var a=Oo(),n=nPe(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,l=o?a.Buffer:void 0,c=l?l.isBuffer:void 0,d=c||n;e.exports=d})(qh,qh.exports)),qh.exports}var J3,AL;function qD(){if(AL)return J3;AL=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function a(n,r){var i=typeof n;return r=r??e,!!r&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<r}return J3=a,J3}var eA,SL;function UD(){if(SL)return eA;SL=1;var e=9007199254740991;function t(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=e}return eA=t,eA}var tA,CL;function sPe(){if(CL)return tA;CL=1;var e=zl(),t=UD(),a=_l(),n="[object Arguments]",r="[object Array]",i="[object Boolean]",o="[object Date]",l="[object Error]",c="[object Function]",d="[object Map]",m="[object Number]",f="[object Object]",h="[object RegExp]",x="[object Set]",b="[object String]",y="[object WeakMap]",w="[object ArrayBuffer]",j="[object DataView]",N="[object Float32Array]",k="[object Float64Array]",D="[object Int8Array]",C="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",E="[object Uint8ClampedArray]",R="[object Uint16Array]",F="[object Uint32Array]",I={};I[N]=I[k]=I[D]=I[C]=I[S]=I[A]=I[E]=I[R]=I[F]=!0,I[n]=I[r]=I[w]=I[i]=I[j]=I[o]=I[l]=I[c]=I[d]=I[m]=I[f]=I[h]=I[x]=I[b]=I[y]=!1;function H(_){return a(_)&&t(_.length)&&!!I[e(_)]}return tA=H,tA}var aA,TL;function JX(){if(TL)return aA;TL=1;function e(t){return function(a){return t(a)}}return aA=e,aA}var Uh={exports:{}};Uh.exports;var DL;function rPe(){return DL||(DL=1,(function(e,t){var a=bX(),n=t&&!t.nodeType&&t,r=n&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===n,o=i&&a.process,l=(function(){try{var c=r&&r.require&&r.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(Uh,Uh.exports)),Uh.exports}var nA,EL;function eY(){if(EL)return nA;EL=1;var e=sPe(),t=JX(),a=rPe(),n=a&&a.isTypedArray,r=n?t(n):e;return nA=r,nA}var sA,ML;function iPe(){if(ML)return sA;ML=1;var e=tPe(),t=HD(),a=hr(),n=ZX(),r=qD(),i=eY(),o=Object.prototype,l=o.hasOwnProperty;function c(d,m){var f=a(d),h=!f&&t(d),x=!f&&!h&&n(d),b=!f&&!h&&!x&&i(d),y=f||h||x||b,w=y?e
vendor: 3,360 bytes, line 882
882(d.length,String):[],j=w.length;for(var N in d)(m||l.call(d,N))&&!(y&&(N=="length"||x&&(N=="offset"||N=="parent")||b&&(N=="buffer"||N=="byteLength"||N=="byteOffset")||r(N,j)))&&w.push(N);return w}return sA=c,sA}var rA,OL;function oPe(){if(OL)return rA;OL=1;var e=Object.prototype;function t(a){var n=a&&a.constructor,r=typeof n=="function"&&n.prototype||e;return a===r}return rA=t,rA}var iA,RL;function tY(){if(RL)return iA;RL=1;function e(t,a){return function(n){return t(a(n))}}return iA=e,iA}var oA,zL;function lPe(){if(zL)return oA;zL=1;var e=tY(),t=e(Object.keys,Object);return oA=t,oA}var lA,_L;function cPe(){if(_L)return lA;_L=1;var e=oPe(),t=lPe(),a=Object.prototype,n=a.hasOwnProperty;function r(i){if(!e(i))return t(i);var o=[];for(var l in Object(i))n.call(i,l)&&l!="constructor"&&o.push(l);return o}return lA=r,lA}var cA,IL;function sb(){if(IL)return cA;IL=1;var e=TD(),t=UD();function a(n){return n!=null&&t(n.length)&&!e(n)}return cA=a,cA}var dA,LL;function z2(){if(LL)return dA;LL=1;var e=iPe(),t=cPe(),a=sb();function n(r){return a(r)?e(r):t(r)}return dA=n,dA}var uA,FL;function dPe(){if(FL)return uA;FL=1;var e=Ywe(),t=ePe(),a=z2();function n(r){return e(r,a,t)}return uA=n,uA}var pA,BL;function uPe(){if(BL)return pA;BL=1;var e=dPe(),t=1,a=Object.prototype,n=a.hasOwnProperty;function r(i,o,l,c,d,m){var f=l&t,h=e(i),x=h.length,b=e(o),y=b.length;if(x!=y&&!f)return!1;for(var w=x;w--;){var j=h[w];if(!(f?j in o:n.call(o,j)))return!1}var N=m.get(i),k=m.get(o);if(N&&k)return N==o&&k==i;var D=!0;m.set(i,o),m.set(o,i);for(var C=f;++w<x;){j=h[w];var S=i[j],A=o[j];if(c)var E=f?c(A,S,j,o,i,m):c(S,A,j,i,o,m);if(!(E===void 0?S===A||d(S,A,l,c,m):E)){D=!1;break}C||(C=j=="constructor")}if(D&&!C){var R=i.constructor,F=o.constructor;R!=F&&"constructor"in i&&"constructor"in o&&!(typeof R=="function"&&R instanceof R&&typeof F=="function"&&F instanceof F)&&(D=!1)}return m.delete(i),m.delete(o),D}return pA=r,pA}var mA,GL;function pPe(){if(GL)return mA;GL=1;var e=Eu(),t=Oo(),a=e(t,"DataView");return mA=a,mA}var fA,HL;function mPe(){if(HL)return fA;HL=1;var e=Eu(),t=Oo(),a=e(t,"Promise");return fA=a,fA}var hA,qL;function aY(){if(qL)return hA;qL=1;var e=Eu(),t=Oo(),a=e(t,"Set");return hA=a,hA}var gA,UL;function fPe(){if(UL)return gA;UL=1;var e=Eu(),t=Oo(),a=e(t,"WeakMap");return gA=a,gA}var xA,VL;function hPe(){if(VL)return xA;VL=1;var e=pPe(),t=ED(),a=mPe(),n=aY(),r=fPe(),i=zl(),o=vX(),l="[object Map]",c="[object Object]",d="[object Promise]",m="[object Set]",f="[object WeakMap]",h="[object DataView]",x=o(e),b=o(t),y=o(a),w=o(n),j=o(r),N=i;return(e&&N(new e(new ArrayBuffer(1)))!=h||t&&N(new t)!=l||a&&N(a.resolve())!=d||n&&N(new n)!=m||r&&N(new r)!=f)&&(N=function(k){var D=i(k),C=D==c?k.constructor:void 0,S=C?o(C):"";if(S)switch(S){case x:return h;case b:return l;case y:return d;case w:return m;case j:return f}return D}),xA=N,xA}var bA,QL;function gPe(){if(QL)return bA;QL=1;var e=QX(),t=XX(),a=Xwe(),n=uPe(),r=hPe(),i=hr(),o=ZX(),l=eY(),c=1,d="[object Arguments]",m="[object Array]",f="[object Object]",h=Object.prototype,x=h.hasOwnProperty;function b(y,w,j,N,k,D){var C=i(y),S=i(w),A=C?m:r(y),E=S?m:r(w);A=A==d?f:A,E=E==d?f:E;var R=A==f,F=E==f,I=A==E;if(I&&o(y)){if(!o(w))return!1;C=!0,R=!1}if(I&&!R)return D||(D=new e),C||l(y)?t(y,w,j,N,k,D):a(y,w,A,j,N,k,D);if(!(j&c)){var H=R&&x.call(y,"__wrapped__"),_=F&&x.call(w,"__wrapped__");
vendor: 45,679 bytes, lines 882-890
882if(H||_){var V=H?y.value():y,W=_?w.value():w;return D||(D=new e),k(V,W,j,N,D)}}return I?(D||(D=new e),n(y,w,j,N,k,D)):!1}return bA=b,bA}var vA,WL;function VD(){if(WL)return vA;WL=1;var e=gPe(),t=_l();function a(n,r,i,o,l){return n===r?!0:n==null||r==null||!t(n)&&!t(r)?n!==n&&r!==r:e(n,r,i,o,a,l)}return vA=a,vA}var yA,KL;function xPe(){if(KL)return yA;KL=1;var e=QX(),t=VD(),a=1,n=2;function r(i,o,l,c){var d=l.length,m=d,f=!c;if(i==null)return!m;for(i=Object(i);d--;){var h=l[d];if(f&&h[2]?h[1]!==i[h[0]]:!(h[0]in i))return!1}for(;++d<m;){h=l[d];var x=h[0],b=i[x],y=h[1];if(f&&h[2]){if(b===void 0&&!(x in i))return!1}else{var w=new e;if(c)var j=c(b,y,x,i,o,w);if(!(j===void 0?t(y,b,a|n,c,w):j))return!1}}return!0}return yA=r,yA}var wA,$L;function nY(){if($L)return wA;$L=1;var e=Yc();function t(a){return a===a&&!e(a)}return wA=t,wA}var PA,XL;function bPe(){if(XL)return PA;XL=1;var e=nY(),t=z2();function a(n){for(var r=t(n),i=r.length;i--;){var o=r[i],l=n[o];r[i]=[o,l,e(l)]}return r}return PA=a,PA}var jA,YL;function sY(){if(YL)return jA;YL=1;function e(t,a){return function(n){return n==null?!1:n[t]===a&&(a!==void 0||t in Object(n))}}return jA=e,jA}var kA,ZL;function vPe(){if(ZL)return kA;ZL=1;var e=xPe(),t=bPe(),a=sY();function n(r){var i=t(r);return i.length==1&&i[0][2]?a(i[0][0],i[0][1]):function(o){return o===r||e(o,r,i)}}return kA=n,kA}var NA,JL;function yPe(){if(JL)return NA;JL=1;function e(t,a){return t!=null&&a in Object(t)}return NA=e,NA}var AA,eF;function wPe(){if(eF)return AA;eF=1;var e=PX(),t=HD(),a=hr(),n=qD(),r=UD(),i=T2();function o(l,c,d){c=e(c,l);for(var m=-1,f=c.length,h=!1;++m<f;){var x=i(c[m]);if(!(h=l!=null&&d(l,x)))break;l=l[x]}return h||++m!=f?h:(f=l==null?0:l.length,!!f&&r(f)&&n(x,f)&&(a(l)||t(l)))}return AA=o,AA}var SA,tF;function PPe(){if(tF)return SA;tF=1;var e=yPe(),t=wPe();function a(n,r){return n!=null&&t(n,r,e)}return SA=a,SA}var CA,aF;function jPe(){if(aF)return CA;aF=1;var e=VD(),t=jX(),a=PPe(),n=CD(),r=nY(),i=sY(),o=T2(),l=1,c=2;function d(m,f){return n(m)&&r(f)?i(o(m),f):function(h){var x=t(h,m);return x===void 0&&x===f?a(h,m):e(f,x,l|c)}}return CA=d,CA}var TA,nF;function hf(){if(nF)return TA;nF=1;function e(t){return t}return TA=e,TA}var DA,sF;function kPe(){if(sF)return DA;sF=1;function e(t){return function(a){return a?.[t]}}return DA=e,DA}var EA,rF;function NPe(){if(rF)return EA;rF=1;var e=RD();function t(a){return function(n){return e(n,a)}}return EA=t,EA}var MA,iF;function APe(){if(iF)return MA;iF=1;var e=kPe(),t=NPe(),a=CD(),n=T2();function r(i){return a(i)?e(n(i)):t(i)}return MA=r,MA}var OA,oF;function Ro(){if(oF)return OA;oF=1;var e=vPe(),t=jPe(),a=hf(),n=hr(),r=APe();function i(o){return typeof o=="function"?o:o==null?a:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):r(o)}return OA=i,OA}var RA,lF;function rY(){if(lF)return RA;lF=1;function e(t,a,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(a(t[o],o,t))return o;return-1}return RA=e,RA}var zA,cF;function SPe(){if(cF)return zA;cF=1;function e(t){return t!==t}return zA=e,zA}var _A,dF;function CPe(){if(dF)return _A;dF=1;function e(t,a,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===a)return r;return-1}return _A=e,_A}var IA,uF;function TPe(){if(uF)return IA;uF=1;var e=rY(),t=SPe(),a=CPe();function n(r,i,o){return i===i?a(r,i,o):e(r,t,o)}return IA=n,IA}var LA,pF;function DPe(){if(pF)return LA;pF=1;var e=TPe();function t(a,n){var r=a==null?0:a.length;return!!r&&e(a,n,0)>-1}return LA=t,LA}var FA,mF;function EPe(){if(mF)return FA;mF=1;function e(t,a,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(a,t[r]))return!0;return!1}return FA=e,FA}var BA,fF;function MPe(){if(fF)return BA;fF=1;function e(){}return BA=e,BA}var GA,hF;function OPe(){if(hF)return GA;hF=1;var e=aY(),t=MPe(),a=GD(),n=1/0,r=e&&1/a(new e([,-0]))[1]==n?function(i){return new e(i)}:t;return GA=r,GA}var HA,gF;function RPe(){if(gF)return HA;gF=1;var e=WX(),t=DPe(),a=EPe(),n=$X(),r=OPe(),i=GD(),o=200;function l(c,d,m){var f=-1,h=t,x=c.length,b=!0,y=[],w=y;if(m)b=!1,h=a;else if(x>=o){var j=d?null:r(c);if(j)return i(j);b=!1,h=n,w=new e}else w=d?[]:y;e:for(;++f<x;){var N=c[f],k=d?d(N):N;if(N=m||N!==0?N:0,b&&k===k){for(var D=w.length;D--;)if(w[D]===k)continue e;d&&w.push(k),y.push(N)}else h(w,k,m)||(w!==y&&w.push(k),y.push(N))}return y}return HA=l,HA}var qA,xF;function zPe(){if(xF)return qA;xF=1;var e=Ro(),t=RPe();function a(n,r){return n&&n.length?t(n,e(r,2)):[]}return qA=a,qA}var _Pe=zPe();const bF=Fa(_Pe);function iY(e,t,a){return t===!0?bF(e,a):Gt(t)?bF(e,t):e}function Nm(e){"@babel/helpers - typeof";return Nm=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},Nm(e)}var IPe=["ref"];function vF(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function tl(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?vF(Object(a),!0).forEach(function(n){_2(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):vF(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function LPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yF(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lY(n.key),n)}}function FPe(e,t,a){return t&&yF(e.prototype,t),a&&yF(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function BPe(e,t,a){return t=Ty(t),GPe(e,oY()?Reflect.construct(t,a||[],Ty(e).constructor):t.apply(e,a))}function GPe(e,t){if(t&&(Nm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HPe(e)}function HPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oY=function(){return!!e})()}function Ty(e){return Ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Ty(e)}function qPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s4(e,t)}function s4(e,t){return s4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},s4(e,t)}function _2(e,t,a){return t=lY(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function lY(e){var t=UPe(e,"string");return Nm(t)=="symbol"?t:t+""}function UPe(e,t){if(Nm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Nm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function VPe(e,t){if(e==null)return{};var a=QPe(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function QPe(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function WPe(e){return e.value}function KPe(e,t){if(ie.isValidElement(e))return ie.cloneElement(e,t);if(typeof e=="function")return ie.createElement(e,t);t.ref;var a=VPe(t,IPe);return ie.createElement(BD,a)}var wF=1,fr=(function(e){function t(){var a;LPe(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a=BPe(this,t,[].concat(r)),_2(a,"lastBoundingBox",{width:-1,height:-1}),a}return qPe(t,e),FPe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,r=this.getBBox();r?(Math.abs(r.width-this.lastBoundingBox.width)>wF||Math.abs(r.height-this.lastBoundingBox.height)>wF)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height,n&&n(r)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?tl({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var r=this.props,i=r.layout,o=r.align,l=r.verticalAlign,c=r.margin,d=r.chartWidth,m=r.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var x=this.getBBoxSnapshot();f={left:((d||0)-x.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((m||0)-b.height)/2}}else h=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return tl(tl({},f),h)}},{key:"render",value:function(){var n=this,r=this.props,i=r.content,o=r.width,l=r.height,c=r.wrapperStyle,d=r.payloadUniqBy,m=r.payload,f=tl(tl({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return ie.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(x){n.wrapperNode=x}},KPe(i,tl(tl({},this.props),{},{payload:iY(m,d,WPe)})))}}],[{key:"getWithHeight",value:function(n,r){var i=tl(tl({},this.defaultProps),n.props),o=i.layout;return o==="vertical"&&ut(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||r}:null}}])})(P.PureComponent);_2(fr,"displayName","Legend");_2(fr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var UA,PF;function $Pe(){if(PF)return UA;PF=1;var e=nb(),t=HD(),a=hr(),n=e?e.isConcatSpreadable:void 0;function r(i){return a(i)||t(i)||!!(n&&i&&i[n])}return UA=r,UA}var VA,jF;function cY(){if(jF)return VA;jF=1;var e=YX(),t=$Pe();function a(n,r,i,o,l){var c=-1,d=n.length;for(i||(i=t),l||(l=[]);++c<d;){var m=n[c];r>0&&i(m)?r>1?a(m,r-1,i,o,l):e(l,m):o||(l[l.length]=m)}return l}return VA=a,VA}var QA,kF;function XPe(){if(kF)return QA;kF=1;function e(t){return function(a,n,r){for(var i=-1,o=Object(a),l=r(a),c=l.length;c--;){var d=l[t?c:++i];if(n(o[d],d,o)===!1)break}return a}}return QA=e,QA}var WA,NF;function YPe(){if(NF)return WA;NF=1;var e=XPe(),t=e();return WA=t,WA}var KA,AF;function dY(){if(AF)return KA;AF=1;var e=YPe(),t=z2();function a(n,r){return n&&e(n,r,t)}return KA=a,KA}var $A,SF;function ZPe(){if(SF)return $A;SF=1;var e=sb();function t(a,n){return function(r,i){if(r==null)return r;if(!e(r))return a(r,i);for(var o=r.length,l=n?o:-1,c=Object(r);(n?l--:++l<o)&&i(c[l],l,c)!==!1;);return r}}return $A=t,$A}var XA,CF;function QD(){if(CF)return XA;CF=1;var e=dY(),t=ZPe(),a=t(e);return XA=a,XA}var YA,TF;function uY(){if(TF)return YA;TF=1;var e=QD(),t=sb();function a(n,r){var i=-1,o=t(n)?Array(n.length):[];return e(n,function(l,c,d){o[++i]=r(l,c,d)}),o}return YA=a,YA}var ZA,DF;function JPe(){if(DF)return ZA;DF=1;function e(t,a){var n=t.length;for(t.sort(a);n--;)t[n]=t[n].value;return t}return ZA=e,ZA}var JA,EF;function eje(){if(EF)return JA;EF=1;var e=pf();function t(a,n){if(a!==n){var r=a!==void 0,i=a===null,o=a===a,l=e(a),c=n!==void 0,d=n===null,m=n===n,f=e(n);if(!d&&!f&&!l&&a>n||l&&c&&m&&!d&&!f||i&&c&&m||!r&&m||!o)return 1;if(!i&&!l&&!f&&a<n||f&&r&&o&&!i&&!l||d&&r&&o||!c&&o||!m)return-1}return 0}return JA=t,JA}var eS,MF;function tje(){if(MF)return eS;MF=1;var e=eje();function t(a,n,r){for(var i=-1,o=a.criteria,l=n.criteria,c=o.length,d=r.length;++i<c;){var m=e(o[i],l[i]);if(m){if(i>=d)return m;var f=r[i];return m*(f=="desc"?-1:1)}}return a.index-n.index}return eS=t,eS}var tS,OF;function aje(){if(OF)return tS;OF=1;var e=OD(),t=RD(),a=Ro(),n=uY(),r=JPe(),i=JX(),o=tje(),l=hf(),c=hr();function d(m,f,h){f.length?f=e(f,function(y){return c(y)?function(w){return t(w,y.length===1?y[0]:y)}:y}):f=[l];var x=-1;f=e(f,i(a));var b=n(m,function(y,w,j){var N=e(f,function(k){return k(y)});return{criteria:N,index:++x,value:y}});return r(b,function(y,w){return o(y,w,h)})}return tS=d,tS}var aS,RF;function nje(){if(RF)return aS;RF=1;function e(t,a,n){switch(n.length){case 0:return t.call(a);case 1:return t.call(a,n[0]);case 2:return t.call(a,n[0],n[1]);case 3:return t.call(a,n[0],n[1],n[2])}return t.apply(a,n)}return aS=e,aS}var nS,zF;function sje(){if(zF)return nS;zF=1;var e=nje(),t=Math.max;function a(n,r,i){return r=t(r===void 0?n.length-1:r,0),function(){for(var o=arguments,l=-1,c=t(o.length-r,0),d=Array(c);++l<c;)d[l]=o[r+l];l=-1;for(var m=Array(r+1);++l<r;)m[l]=o[l];return m[r]=i(d),e(n,this,m)}}return nS=a,nS}var sS,_F;function rje(){if(_F)return sS;_F=1;function e(t){return function(){return t}}return sS=e,sS}var rS,IF;function pY(){if(IF)return rS;IF=1;var e=Eu(),t=(function(){try{var a=e(Object,"defineProperty");return a({},"",{}),a}catch{}})();return rS=t,rS}var iS,LF;function ije(){if(LF)return iS;LF=1;var e=rje(),t=pY(),a=hf(),n=t?function(r,i){return t(r,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:a;return iS=n,iS}var oS,FF;function oje(){if(FF)return oS;FF=1;var e=800,t=16,a=Date.now;function n(r){var i=0,o=0;return function(){var l=a(),c=t-(l-o);if(o=l,c>0){if(++i>=e)return arguments[0]}else i=0;return r.apply(void 0,arguments)}}return oS=n,oS}var lS,BF;function lje(){if(BF)return lS;BF=1;var e=ije(),t=oje(),a=t(e);return lS=a,lS}var cS,GF;function cje(){if(GF)return cS;GF=1;var e=hf(),t=sje(),a=lje();function n(r,i){return a(t(r,i,e),r+"")}return cS=n,cS}var dS,HF;function I2(){if(HF)return dS;HF=1;var e=DD(),t=sb(),a=qD(),n=Yc();function r(i,o,l){if(!n(l))return!1;var c=typeof o;return(c=="number"?t(l)&&a(o,l.length):c=="string"&&o in l)?e(l[o],i):!1}return dS=r,dS}var uS,qF;function dje(){if(qF)return uS;qF=1;var e=cY(),t=aje(),a=cje(),n=I2(),r=a(function(i,o){if(i==null)return[];var l=o.length;return l>1&&n(i,o[0],o[1])?o=[]:l>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return uS=r,uS}var uje=dje();const WD=Fa(uje);function $g(e){"@babel/helpers - typeof";return $g=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},$g(e)}function r4(){return r4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r4.apply(this,arguments)}function pje(e,t){return gje(e)||hje(e,t)||fje(e,t)||mje()}function mje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 883In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fje(e,t){if(e){if(typeof e=="string")return UF(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return UF(e,t)}}function UF(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function hje(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function gje(e){if(Array.isArray(e))return e}function VF(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function pS(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?VF(Object(a),!0).forEach(function(n){xje(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):VF(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function xje(e,t,a){return t=bje(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function bje(e){var t=vje(e,"string");return $g(t)=="symbol"?t:t+""}function vje(e,t){if($g(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if($g(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yje(e){return Array.isArray(e)&&rs(e[0])&&rs(e[1])?e.join(" ~ "):e}var wje=function(t){var a=t.separator,n=a===void 0?" : ":a,r=t.contentStyle,i=r===void 0?{}:r,o=t.itemStyle,l=o===void 0?{}:o,c=t.labelStyle,d=c===void 0?{}:c,m=t.payload,f=t.formatter,h=t.itemSorter,x=t.wrapperClassName,b=t.labelClassName,y=t.label,w=t.labelFormatter,j=t.accessibilityLayer,N=j===void 0?!1:j,k=function(){if(m&&m.length){var H={padding:0,margin:0},_=(h?WD(m,h):m).map(function(V,W){if(V.type==="none")return null;var B=pS({display:"block",paddingTop:4,paddingBottom:4,color:V.color||"#000"},l),K=V.formatter||f||yje,ae=V.value,$=V.name,Z=ae,O=$;if(K&&Z!=null&&O!=null){var Y=K(ae,$,V,W,m);if(Array.isArray(Y)){var Q=pje(Y,2);Z=Q[0],O=Q[1]}else Z=Y}return ie.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:B},rs(O)?ie.createElement("span",{className:"recharts-tooltip-item-name"},O):null,rs(O)?ie.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,ie.createElement("span",{className:"recharts-tooltip-item-value"},Z),ie.createElement("span",{className:"recharts-tooltip-item-unit"},V.unit||""))});return ie.createElement("ul",{className:"recharts-tooltip-item-list",style:H},_)}return null},D=pS({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),C=pS({margin:0},d),S=!Ft(y),A=S?y:"",E=Yt("recharts-default-tooltip",x),R=Yt("recharts-tooltip-label",b);S&&w&&m!==void 0&&m!==null&&(A=w(y,m));var F=N?{role:"status","aria-live":"assertive"}:{};return ie.createElement("div",r4({className:E,style:D},F),ie.createElement("p",{className:R,style:C},ie.isValidElement(A)?A:"".concat(A)),k())};function Xg(e){"@babel/helpers - typeof";return Xg=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},Xg(e)}function J0(e,t,a){return t=Pje(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Pje(e){var t=jje(e,"string");return Xg(t)=="symbol"?t:t+""}function jje(e,t){if(Xg(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Xg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ph="recharts-tooltip-wrapper",kje={visibility:"hidden"};function Nje(e){var t=e.coordinate,a=e.translateX,n=e.translateY;return Yt(Ph,J0(J0(J0(J0({},"".concat(Ph,"-right"),ut(a)&&t&&ut(t.x)&&a>=t.x),"".concat(Ph,"-left"),ut(a)&&t&&ut(t.x)&&a<t.x),"".concat(Ph,"-bottom"),ut(n)&&t&&ut(t.y)&&n>=t.y),"".concat(Ph,"-top"),ut(n)&&t&&ut(t.y)&&n<t.y))}function QF(e){var t=e.allowEscapeViewBox,a=e.coordinate,n=e.key,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,d=e.viewBoxDimension;if(i&&ut(i[n]))return i[n];var m=a[n]-l-r,f=a[n]+r;if(t[n])return o[n]?m:f;if(o[n]){var h=m,x=c[n];return h<x?Math.max(f,c[n]):Math.max(m,c[n])}var b=f+l,y=c[n]+d;return b>y?Math.max(m,c[n]):Math.max(f,c[n])}function Aje(e){var t=e.translateX,a=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(a,"px, 0)"):"translate(".concat(t,"px, ").concat(a,"px)")}}function Sje(e){var t=e.allowEscapeViewBox,a=e.coordinate,n=e.offsetTopLeft,r=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,d,m,f;return o.height>0&&o.width>0&&a?(m=QF({allowEscapeViewBox:t,coordinate:a,key:"x",offsetTopLeft:n,position:r,reverseDirection:i,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=QF({allowEscapeViewBox:t,coordinate:a,key:"y",offsetTopLeft:n,position:r,reverseDirection:i,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),d=Aje({translateX:m,translateY:f,useTranslate3d:l})):d=kje,{cssProperties:d,cssClasses:Nje({translateX:m,translateY:f,coordinate:a})}}function Am(e){"@babel/helpers - typeof";return Am=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},Am(e)}function WF(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function KF(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?WF(Object(a),!0).forEach(function(n){o4(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):WF(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Cje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tje(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fY(n.key),n)}}function Dje(e,t,a){return t&&Tje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eje(e,t,a){return t=Dy(t),Mje(e,mY()?Reflect.construct(t,a||[],Dy(e).constructor):t.apply(e,a))}function Mje(e,t){if(t&&(Am(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oje(e)}function Oje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mY=function(){return!!e})()}function Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Dy(e)}function Rje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i4(e,t)}function i4(e,t){return i4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},i4(e,t)}function o4(e,t,a){return t=fY(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function fY(e){var t=zje(e,"string");return Am(t)=="symbol"?t:t+""}function zje(e,t){if(Am(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Am(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $F=1,_je=(function(e){function t(){var a;Cje(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a=Eje(this,t,[].concat(r)),o4(a,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),o4(a,"handleKeyDown",function(o){if(o.key==="Escape"){var l,c,d,m;a.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=a.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(d=(m=a.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),a}return Rje(t,e),Dje(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>$F||Math.abs(n.height-this.state.lastBoundingBox.height)>$F)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,r;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,r=this.props,i=r.active,o=r.allowEscapeViewBox,l=r.animationDuration,c=r.animationEasing,d=r.children,m=r.coordinate,f=r.hasPayload,h=r.isAnimationActive,x=r.offset,b=r.position,y=r.reverseDirection,w=r.useTranslate3d,j=r.viewBox,N=r.wrapperStyle,k=Sje({allowEscapeViewBox:o,coordinate:m,offsetTopLeft:x,position:b,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:j}),D=k.cssClasses,C=k.cssProperties,S=KF(KF({transition:h&&i?"transform ".concat(l,"ms ").concat(c):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},N);return ie.createElement("div",{tabIndex:-1,className:D,style:S,ref:function(E){n.wrapperNode=E}},d)}}])})(P.PureComponent),Ije=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Il={isSsr:Ije()};function Sm(e){"@babel/helpers - typeof";return Sm=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},Sm(e)}function XF(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function YF(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?XF(Object(a),!0).forEach(function(n){KD(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):XF(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Lje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fje(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gY(n.key),n)}}function Bje(e,t,a){return t&&Fje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gje(e,t,a){return t=Ey(t),Hje(e,hY()?Reflect.construct(t,a||[],Ey(e).constructor):t.apply(e,a))}function Hje(e,t){if(t&&(Sm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qje(e)}function qje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hY=function(){return!!e})()}function Ey(e){return Ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Ey(e)}function Uje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l4(e,t)}function l4(e,t){return l4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},l4(e,t)}function KD(e,t,a){return t=gY(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function gY(e){var t=Vje(e,"string");return Sm(t)=="symbol"?t:t+""}function Vje(e,t){if(Sm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Sm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qje(e){return e.dataKey}function Wje(e,t){return ie.isValidElement(e)?ie.cloneElement(e,t):typeof e=="function"?ie.createElement(e,t):ie.createElement(wje,t)}var yn=(function(e){function t(){return Lje(this,t),Gje(this,t,arguments)}return Uje(t,e),Bje(t,[{key:"render",value:function(){var n=this,r=this.props,i=r.active,o=r.allowEscapeViewBox,l=r.animationDuration,c=r.animationEasing,d=r.content,m=r.coordinate,f=r.filterNull,h=r.isAnimationActive,x=r.offset,b=r.payload,y=r.payloadUniqBy,w=r.position,j=r.reverseDirection,N=r.useTranslate3d,k=r.viewBox,D=r.wrapperStyle,C=b??[];f&&C.length&&(C=iY(b.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),y,Qje));var S=C.length>0;return ie.createElement(_je,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:h,active:i,coordinate:m,hasPayload:S,offset:x,position:w,reverseDirection:j,useTranslate3d:N,viewBox:k,wrapperStyle:D},Wje(d,YF(YF({},this.props),{},{payload:C})))}}])})(P.PureComponent);KD(yn,"displayName","Tooltip");KD(yn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Il.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var mS,ZF;function Kje(){if(ZF)return mS;ZF=1;var e=Oo(),t=function(){return e.Date.now()};return mS=t,mS}var fS,JF;function $je(){if(JF)return fS;JF=1;var e=/\s/;function t(a){for(var n=a.length;n--&&e.test(a.charAt(n)););return n}return fS=t,fS}var hS,eB;function Xje(){if(eB)return hS;eB=1;var e=$je(),t=/^\s+/;function a(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return hS=a,hS}var gS,tB;function xY(){if(tB)return gS;tB=1;var e=Xje(),t=Yc(),a=pf(),n=NaN,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function c(d){if(typeof d=="number")return d;if(a(d))return n;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var f=i.test(d);return f||o.test(d)?l(d.slice(2),f?2:8):r.test(d)?n:+d}return gS=c,gS}var xS,aB;function Yje(){if(aB)return xS;aB=1;var e=Yc(),t=Kje(),a=xY(),n="Expected a function",r=Math.max,i=Math.min;function o(l,c,d){var m,f,h,x,b,y,w=0,j=!1,N=!1,k=!0;if(typeof l!="function")throw new TypeError(n);c=a(c)||0,e(d)&&(j=!!d.leading,N="maxWait"in d,h=N?r(a(d.maxWait)||0,c):h,k="trailing"in d?!!d.trailing:k);function D(_){var V=m,W=f;return m=f=void 0,w=_,x=l.apply(W,V),x}function C(_){return w=_,b=setTimeout(E,c),j?D(_):x}function S(_){var V=_-y,W=_-w,B=c-V;return N?i(B,h-W):B}function A(_){var V=_-y,W=_-w;return y===void 0||V>=c||V<0||N&&W>=h}function E(){var _=t();if(A(_))return R(_);b=setTimeout(E,S(_))}function R(_){return b=void 0,k&&m?D(_):(m=f=void 0,x)}function F(){b!==void 0&&clearTimeout(b),w=0,m=y=f=b=void 0}function I(){return b===void 0?x:R(t())}function H(){var _=t(),V=A(_);if(m=arguments,f=this,y=_,V){if(b===void 0)return C(y);if(N)return clearTimeout(b),b=setTimeout(E,c),D(y)}return b===void 0&&(b=setTimeout(E,c)),x}return H.cancel=F,H.flush=I,H}return xS=o,xS}var bS,nB;function Zje(){if(nB)return bS;nB=1;var e=Yje(),t=Yc(),a="Expected a function";function n(r,i,o){var l=!0,c=!0;if(typeof r!="function")throw new TypeError(a);return t(o)&&(l="leading"in o?!!o.leading:l,c="trailing"in o?!!o.trailing:c),e(r,i,{leading:l,maxWait:i,trailing:c})}return bS=n,bS}var Jje=Zje();const bY=Fa(Jje);function Yg(e){"@babel/helpers - typeof";return Yg=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},Yg(e)}function sB(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function ev(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?sB(Object(a),!0).forEach(function(n){eke(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):sB(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function eke(e,t,a){return t=tke(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function tke(e){var t=ake(e,"string");return Yg(t)=="symbol"?t:t+""}function ake(e,t){if(Yg(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Yg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nke(e,t){return oke(e)||ike(e,t)||rke(e,t)||ske()}function ske(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 884In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rke(e,t){if(e){if(typeof e=="string")return rB(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return rB(e,t)}}function rB(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function ike(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function oke(e){if(Array.isArray(e))return e}var $s=P.forwardRef(function(e,t){var a=e.aspect,n=e.initialDimension,r=n===void 0?{width:-1,height:-1}:n,i=e.width,o=i===void 0?"100%":i,l=e.height,c=l===void 0?"100%":l,d=e.minWidth,m=d===void 0?0:d,f=e.minHeight,h=e.maxHeight,x=e.children,b=e.debounce,y=b===void 0?0:b,w=e.id,j=e.className,N=e.onResize,k=e.style,D=k===void 0?{}:k,C=P.useRef(null),S=P.useRef();S.current=N,P.useImperativeHandle(t,function(){return Object.defineProperty(C.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),C.current},configurable:!0})});var A=P.useState({containerWidth:r.width,containerHeight:r.height}),E=nke(A,2),R=E[0],F=E[1],I=P.useCallback(function(_,V){F(function(W){var B=Math.round(_),K=Math.round(V);return W.containerWidth===B&&W.containerHeight===K?W:{containerWidth:B,containerHeight:K}})},[]);P.useEffect(function(){var _=function($){var Z,O=$[0].contentRect,Y=O.width,Q=O.height;I(Y,Q),(Z=S.current)===null||Z===void 0||Z.call(S,Y,Q)};y>0&&(_=bY(_,y,{trailing:!0,leading:!1}));var V=new ResizeObserver(_),W=C.current.getBoundingClientRect(),B=W.width,K=W.height;return I(B,K),V.observe(C.current),function(){V.disconnect()}},[I,y]);var H=P.useMemo(function(){var _=R.containerWidth,V=R.containerHeight;if(_<0||V<0)return null;Wi(Xd(o)||Xd(c),`The width(%s) and height(%s) are both fixed numbers, 885 maybe you don't need to use a ResponsiveContainer.`,o,c),Wi(!a||a>0,"The aspect(%s) must be greater than zero.",a);var W=Xd(o)?_:o,B=Xd(c)?V:c;a&&a>0&&(W?B=W/a:B&&(W=B*a),h&&B>h&&(B=h)),Wi(W>0||B>0,`The width(%s) and height(%s) of chart should be greater than 0, 886 please check the style of container, or the props width(%s) and height(%s), 887 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 888 height and width.`,W,B,o,c,m,f,a);var K=!Array.isArray(x)&&vl(x.type).endsWith("Chart");return ie.Children.map(x,function(ae){return ie.isValidElement(ae)?P.cloneElement(ae,ev({width:W,height:B},K?{style:ev({height:"100%",width:"100%",maxHeight:B,maxWidth:W},ae.props.style)}:{})):ae})},[a,x,c,h,f,m,R,o]);return ie.createElement("div",{id:w?"".concat(w):void 0,className:Yt("recharts-responsive-container",j),style:ev(ev({},D),{},{width:o,height:c,minWidth:m,minHeight:f,maxHeight:h}),ref:C},H)}),Mu=function(t){return null};Mu.displayName="Cell";function Zg(e){"@babel/helpers - typeof";return Zg=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},Zg(e)}function iB(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function c4(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?iB(Object(a),!0).forEach(function(n){lke(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):iB(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function lke(e,t,a){return t=cke(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function cke(e){var t=dke(e,"string");return Zg(t)=="symbol"?t:t+""}function dke(e,t){if(Zg(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Zg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tp={widthCache:{},cacheCount:0},uke=2e3,pke={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},oB="recharts_measurement_span";function mke(e){var t=c4({},e);return Object.keys(t).forEach(function(a){t[a]||delete t[a]}),t}var pg=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Il.isSsr)return{width:0,height:0};var n=mke(a),r=JSON.stringify({text:t,copyStyle:n});if(Tp.widthCache[r])return Tp.widthCache[r];try{var i=document.getElementById(oB);i||(i=document.createElement("span"),i.setAttribute("id",oB),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=c4(c4({},pke),n);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),c={width:l.width,height:l.height};return Tp.widthCache[r]=c,++Tp.cacheCount>uke&&(Tp.cacheCount=0,Tp.widthCache={}),c}catch{return{width:0,height:0}}},fke=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Jg(e){"@babel/helpers - typeof";return Jg=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},Jg(e)}function My(e,t){return bke(e)||xke(e,t)||gke(e,t)||hke()}function hke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 889In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gke(e,t){if(e){if(typeof e=="string")return lB(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return lB(e,t)}}function lB(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function xke(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function bke(e){if(Array.isArray(e))return e}function vke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cB(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wke(n.key),n)}}function yke(e,t,a){return t&&cB(e.prototype,t),a&&cB(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function wke(e){var t=Pke(e,"string");return Jg(t)=="symbol"?t:t+""}function Pke(e,t){if(Jg(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Jg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dB=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uB=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jke=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,kke=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,vY={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Nke=Object.keys(vY),Zp="NaN";function Ake(e,t){return e*vY[t]}var tv=(function(){function e(t,a){vke(this,e),this.num=t,this.unit=a,this.num=t,this.unit=a,Number.isNaN(t)&&(this.unit=""),a!==""&&!jke.test(a)&&(this.num=NaN,this.unit=""),Nke.includes(a)&&(this.num=Ake(t,a),this.unit="px")}return yke(e,[{key:"add",value:function(a){return this.unit!==a.unit?new e(NaN,""):new e(this.num+a.num,this.unit)}},{key:"subtract",value:function(a){return this.unit!==a.unit?new e(NaN,""):new e(this.num-a.num,this.unit)}},{key:"multiply",value:function(a){return this.unit!==""&&a.unit!==""&&this.unit!==a.unit?new e(NaN,""):new e(this.num*a.num,this.unit||a.unit)}},{key:"divide",value:function(a){return this.unit!==""&&a.unit!==""&&this.unit!==a.unit?new e(NaN,""):new e(this.num/a.num,this.unit||a.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(a){var n,r=(n=kke.exec(a))!==null&&n!==void 0?n:[],i=My(r,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])})();function yY(e){if(e.includes(Zp))return Zp;for(var t=e;t.includes("*")||t.includes("/");){var a,n=(a=dB.exec(t))!==null&&a!==void 0?a:[],r=My(n,4),i=r[1],o=r[2],l=r[3],c=tv.parse(i??""),d=tv.parse(l??""),m=o==="*"?c.multiply(d):c.divide(d);if(m.isNaN())return Zp;t=t.replace(dB,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=uB.exec(t))!==null&&f!==void 0?f:[],x=My(h,4),b=x[1],y=x[2],w=x[3],j=tv.parse(b??""),N=tv.parse(w??""),k=y==="+"?j.add(N):j.subtract(N);if(k.isNaN())return Zp;t=t.replace(uB,k.toString())}return t}var pB=/\(([^()]*)\)/;function Ske(e){for(var t=e;t.includes("(");){var a=pB.exec(t),n=My(a,2),r=n[1];t=t.replace(pB,yY(r))}return t}function Cke(e){var t=e.replace(/\s+/g,"");return t=Ske(t),t=yY(t),t}function Tke(e){try{return Cke(e)}catch{return Zp}}function vS(e){var t=Tke(e.slice(5,-1));return t===Zp?"":t}var Dke=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Eke=["dx","dy","angle","className","breakAll"];function d4(){return d4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},d4.apply(this,arguments)}function mB(e,t){if(e==null)return{};var a=Mke(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Mke(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function fB(e,t){return _ke(e)||zke(e,t)||Rke(e,t)||Oke()}function Oke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 890In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rke(e,t){if(e){if(typeof e=="string")return hB(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return hB(e,t)}}function hB(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function zke(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t===0){if(Object(a)!==a)return;c=!1}else for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}
890finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function _ke(e){if(Array.isArray(e))return e}var wY=/[ \f\n\r\t\v\u2028\u2029]+/,PY=function(t){var a=t.children,n=t.breakAll,r=t.style;try{var i=[];Ft(a)||(n?i=a.toString().split(""):i=a.toString().split(wY));var o=i.map(function(c){return{word:c,width:pg(c,r).width}}),l=n?0:pg(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},Ike=function(t,a,n,r,i){var o=t.maxLines,l=t.children,c=t.style,d=t.breakAll,m=ut(o),f=l,h=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(B,K){var ae=K.word,$=K.width,Z=B[B.length-1];if(Z&&(r==null||i||Z.width+$+n<Number(r)))Z.words.push(ae),Z.width+=$+n;else{var O={words:[ae],width:$};B.push(O)}return B},[])},x=h(a),b=function(W){return W.reduce(function(B,K){return B.width>K.width?B:K})};if(!m)return x;for(var y="â¦",w=function(W){var B=f.slice(0,W),K=PY({breakAll:d,style:c,children:B+y}).wordsWithComputedWidth,ae=h(K),$=ae.length>o||b(ae).width>Number(r);return[$,ae]},j=0,N=f.length-1,k=0,D;j<=N&&k<=f.length-1;){var C=Math.floor((j+N)/2),S=C-1,A=w(S),E=fB(A,2),R=E[0],F=E[1],I=w(C),H=fB(I,1),_=H[0];if(!R&&!_&&(j=C+1),R&&_&&(N=C-1),!R&&_){D=F;break}k++}return D||x},gB=function(t){var a=Ft(t)?[]:t.toString().split(wY);return[{words:a}]},Lke=function(t){var a=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((a||n)&&!Il.isSsr){var c,d,m=PY({breakAll:o,children:r,style:i});if(m){var f=m.wordsWithComputedWidth,h=m.spaceWidth;c=f,d=h}else return gB(r);return Ike({breakAll:o,children:r,maxLines:l,style:i},c,d,a,n)}return gB(r)},xB="#808080",bu=function(t){var a=t.x,n=a===void 0?0:a,r=t.y,i=r===void 0?0:r,o=t.lineHeight,l=o===void 0?"1em":o,c=t.capHeight,d=c===void 0?"0.71em":c,m=t.scaleToFit,f=m===void 0?!1:m,h=t.textAnchor,x=h===void 0?"start":h,b=t.verticalAnchor,y=b===void 0?"end":b,w=t.fill,j=w===void 0?xB:w,N=mB(t,Dke),k=P.useMemo(function(){return Lke({breakAll:N.breakAll,children:N.children,maxLines:N.maxLines,scaleToFit:f,style:N.style,width:N.width})},[N.breakAll,N.children,N.maxLines,f,N.style,N.width]),D=N.dx,C=N.dy,S=N.angle,A=N.className,E=N.breakAll,R=mB(N,Eke);if(!rs(n)||!rs(i))return null;var F=n+(ut(D)?D:0),I=i+(ut(C)?C:0),H;switch(y){case"start":H=vS("calc(".concat(d,")"));break;case"middle":H=vS("calc(".concat((k.length-1)/2," * -").concat(l," + (").concat(d," / 2))"));break;default:H=vS("calc(".concat(k.length-1," * -").concat(l,")"));break}var _=[];if(f){var V=k[0].width,W=N.width;_.push("scale(".concat((ut(W)?W/V:1)/V,")"))}return S&&_.push("rotate(".concat(S,", ").concat(F,", ").concat(I,")")),_.length&&(R.transform=_.join(" ")),ie.createElement("text",d4({},Rt(R,!0),{x:F,y:I,className:Yt("recharts-text",A),textAnchor:x,fill:j.includes("url")?xB:j}),k.map(function(B,K){var ae=B.words.join(E?"":" ");return ie.createElement("tspan",{x:F,dy:K===0?H:l,key:"".concat(ae,"-").concat(K)},ae)}))};function Ec(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Fke(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $D(e){let t,a,n;e.length!==2?(t=Ec,a=(l,c)=>Ec(e(l),c),n=(l,c)=>e(l)-c):(t=e===Ec||e===Fke?e:Bke,a=e,n=e);function r(l,c,d=0,m=l.length){if(d<m){if(t(c,c)!==0)return m;do{const f=d+m>>>1;a(l[f],c)<0?d=f+1:m=f}while(d<m)}return d}function i(l,c,d=0,m=l.length){if(d<m){if(t(c,c)!==0)return m;do{const f=d+m>>>1;a(l[f],c)<=0?d=f+1:m=f}while(d<m)}return d}function o(l,c,d=0,m=l.length){const f=r(l,c,d,m-1);return f>d&&n(l[f-1],c)>-n(l[f],c)?f-1:f}return{left:r,center:o,right:i}}function Bke(){return 0}function jY(e){return e===null?NaN:+e}function*Gke(e,t){for(let a of e)a!=null&&(a=+a)>=a&&(yield a)}const Hke=$D(Ec),rb=Hke.right;$D(jY).center;class bB extends Map{constructor(t,a=Vke){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:a}}),t!=null)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(vB(this,t))}has(t){return super.has(vB(this,t))}set(t,a){return super.set(qke(this,t),a)}delete(t){return super.delete(Uke(this,t))}}function vB({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):a}function qke({_intern:e,_key:t},a){const n=t(a);return e.has(n)?e.get(n):(e.set(n,a),a)}function Uke({_intern:e,_key:t},a){const n=t(a);return e.has(n)&&(a=e.get(n),e.delete(n)),a}function Vke(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Qke(e=Ec){if(e===Ec)return kY;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,a)=>{const n=e(t,a);return n||n===0?n:(e(a,a)===0)-(e(t,t)===0)}}function kY(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Wke=Math.sqrt(50),Kke=Math.sqrt(10),$ke=Math.sqrt(2);function Oy(e,t,a){const n=(t-e)/Math.max(0,a),r=Math.floor(Math.log10(n)),i=n/Math.pow(10,r),o=i>=Wke?10:i>=Kke?5:i>=$ke?2:1;let l,c,d;return r<0?(d=Math.pow(10,-r)/o,l=Math.round(e*d),c=Math.round(t*d),l/d<e&&++l,c/d>t&&--c,d=-d):(d=Math.pow(10,r)*o,l=Math.round(e/d),c=Math.round(t/d),l*d<e&&++l,c*d>t&&--c),c<l&&.5<=a&&a<2?Oy(e,t,a*2):[l,c,d]}function u4(e,t,a){if(t=+t,e=+e,a=+a,!(a>0))return[];if(e===t)return[e];const n=t<e,[r,i,o]=n?Oy(t,e,a):Oy(e,t,a);if(!(i>=r))return[];const l=i-r+1,c=new Array(l);if(n)if(o<0)for(let d=0;d<l;++d)c[d]=(i-d)/-o;else for(let d=0;d<l;++d)c[d]=(i-d)*o;else if(o<0)for(let d=0;d<l;++d)c[d]=(r+d)/-o;else for(let d=0;d<l;++d)c[d]=(r+d)*o;return c}function p4(e,t,a){return t=+t,e=+e,a=+a,Oy(e,t,a)[2]}function m4(e,t,a){t=+t,e=+e,a=+a;const n=t<e,r=n?p4(t,e,a):p4(e,t,a);return(n?-1:1)*(r<0?1/-r:r)}function yB(e,t){let a;for(const n of e)n!=null&&(a<n||a===void 0&&n>=n)&&(a=n);return a}function wB(e,t){let a;for(const n of e)n!=null&&(a>n||a===void 0&&n>=n)&&(a=n);return a}function NY(e,t,a=0,n=1/0,r){if(t=Math.floor(t),a=Math.floor(Math.max(0,a)),n=Math.floor(Math.min(e.length-1,n)),!(a<=t&&t<=n))return e;for(r=r===void 0?kY:Qke(r);n>a;){if(n-a>600){const c=n-a+1,d=t-a+1,m=Math.log(c),f=.5*Math.exp(2*m/3),h=.5*Math.sqrt(m*f*(c-f)/c)*(d-c/2<0?-1:1),x=Math.max(a,Math.floor(t-d*f/c+h)),b=Math.min(n,Math.floor(t+(c-d)*f/c+h));NY(e,t,x,b,r)}const i=e[t];let o=a,l=n;for(jh(e,a,t),r(e[n],i)>0&&jh(e,a,n);o<l;){for(jh(e,o,l),++o,--l;r(e[o],i)<0;)++o;for(;r(e[l],i)>0;)--l}r(e[a],i)===0?jh(e,a,l):(++l,jh(e,l,n)),l<=t&&(a=l+1),t<=l&&(n=l-1)}return e}function jh(e,t,a){const n=e[t];e[t]=e[a],e[a]=n}function Xke(e,t,a){if(e=Float64Array.from(Gke(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wB(e);if(t>=1)return yB(e);var n,r=(n-1)*t,i=Math.floor(r),o=yB(NY(e,i).subarray(0,i+1)),l=wB(e.subarray(i+1));return o+(l-o)*(r-i)}}function Yke(e,t,a=jY){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+a(e[0],0,e);if(t>=1)return+a(e[n-1],n-1,e);var n,r=(n-1)*t,i=Math.floor(r),o=+a(e[i],i,e),l=+a(e[i+1],i+1,e);return o+(l-o)*(r-i)}}function Zke(e,t,a){e=+e,t=+t,a=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+a;for(var n=-1,r=Math.max(0,Math.ceil((t-e)/a))|0,i=new Array(r);++n<r;)i[n]=e+n*a;return i}function ji(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ll(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 10,013 bytes, line 890
890const f4=Symbol("implicit");function XD(){var e=new bB,t=[],a=[],n=f4;function r(i){let o=e.get(i);if(o===void 0){if(n!==f4)return n;e.set(i,o=t.push(i)-1)}return a[o%a.length]}return r.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new bB;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return r},r.range=function(i){return arguments.length?(a=Array.from(i),r):a.slice()},r.unknown=function(i){return arguments.length?(n=i,r):n},r.copy=function(){return XD(t,a).unknown(n)},ji.apply(r,arguments),r}function ex(){var e=XD().unknown(void 0),t=e.domain,a=e.range,n=0,r=1,i,o,l=!1,c=0,d=0,m=.5;delete e.unknown;function f(){var h=t().length,x=r<n,b=x?r:n,y=x?n:r;i=(y-b)/Math.max(1,h-c+d*2),l&&(i=Math.floor(i)),b+=(y-b-i*(h-c))*m,o=i*(1-c),l&&(b=Math.round(b),o=Math.round(o));var w=Zke(h).map(function(j){return b+i*j});return a(x?w.reverse():w)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,r]=h,n=+n,r=+r,f()):[n,r]},e.rangeRound=function(h){return[n,r]=h,n=+n,r=+r,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(c=Math.min(1,d=+h),f()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),f()):c},e.paddingOuter=function(h){return arguments.length?(d=+h,f()):d},e.align=function(h){return arguments.length?(m=Math.max(0,Math.min(1,h)),f()):m},e.copy=function(){return ex(t(),[n,r]).round(l).paddingInner(c).paddingOuter(d).align(m)},ji.apply(f(),arguments)}function AY(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return AY(t())},e}function mg(){return AY(ex.apply(null,arguments).paddingInner(1))}function YD(e,t,a){e.prototype=t.prototype=a,a.constructor=e}function SY(e,t){var a=Object.create(e.prototype);for(var n in t)a[n]=t[n];return a}function ib(){}var tx=.7,Ry=1/tx,pm="\\s*([+-]?\\d+)\\s*",ax="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Po="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jke=/^#([0-9a-f]{3,8})$/,eNe=new RegExp(`^rgb\\(${pm},${pm},${pm}\\)$`),tNe=new RegExp(`^rgb\\(${Po},${Po},${Po}\\)$`),aNe=new RegExp(`^rgba\\(${pm},${pm},${pm},${ax}\\)$`),nNe=new RegExp(`^rgba\\(${Po},${Po},${Po},${ax}\\)$`),sNe=new RegExp(`^hsl\\(${ax},${Po},${Po}\\)$`),rNe=new RegExp(`^hsla\\(${ax},${Po},${Po},${ax}\\)$`),PB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};YD(ib,nx,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jB,formatHex:jB,formatHex8:iNe,formatHsl:oNe,formatRgb:kB,toString:kB});function jB(){return this.rgb().formatHex()}function iNe(){return this.rgb().formatHex8()}function oNe(){return CY(this).formatHsl()}function kB(){return this.rgb().formatRgb()}function nx(e){var t,a;return e=(e+"").trim().toLowerCase(),(t=Jke.exec(e))?(a=t[1].length,t=parseInt(t[1],16),a===6?NB(t):a===3?new mr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):a===8?av(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):a===4?av(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=eNe.exec(e))?new mr(t[1],t[2],t[3],1):(t=tNe.exec(e))?new mr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aNe.exec(e))?av(t[1],t[2],t[3],t[4]):(t=nNe.exec(e))?av(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sNe.exec(e))?CB(t[1],t[2]/100,t[3]/100,1):(t=rNe.exec(e))?CB(t[1],t[2]/100,t[3]/100,t[4]):PB.hasOwnProperty(e)?NB(PB[e]):e==="transparent"?new mr(NaN,NaN,NaN,0):null}function NB(e){return new mr(e>>16&255,e>>8&255,e&255,1)}function av(e,t,a,n){return n<=0&&(e=t=a=NaN),new mr(e,t,a,n)}function lNe(e){return e instanceof ib||(e=nx(e)),e?(e=e.rgb(),new mr(e.r,e.g,e.b,e.opacity)):new mr}function h4(e,t,a,n){return arguments.length===1?lNe(e):new mr(e,t,a,n??1)}function mr(e,t,a,n){this.r=+e,this.g=+t,this.b=+a,this.opacity=+n}YD(mr,h4,SY(ib,{brighter(e){return e=e==null?Ry:Math.pow(Ry,e),new mr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new mr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new mr(iu(this.r),iu(this.g),iu(this.b),zy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:AB,formatHex:AB,formatHex8:cNe,formatRgb:SB,toString:SB}));function AB(){return`#${Yd(this.r)}${Yd(this.g)}${Yd(this.b)}`}function cNe(){return`#${Yd(this.r)}${Yd(this.g)}${Yd(this.b)}${Yd((isNaN(this.opacity)?1:this.opacity)*255)}`}function SB(){const e=zy(this.opacity);return`${e===1?"rgb(":"rgba("}${iu(this.r)}, ${iu(this.g)}, ${iu(this.b)}${e===1?")":`, ${e})`}`}function zy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function iu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yd(e){return e=iu(e),(e<16?"0":"")+e.toString(16)}function CB(e,t,a,n){return n<=0?e=t=a=NaN:a<=0||a>=1?e=t=NaN:t<=0&&(e=NaN),new Gi(e,t,a,n)}function CY(e){if(e instanceof Gi)return new Gi(e.h,e.s,e.l,e.opacity);if(e instanceof ib||(e=nx(e)),!e)return new Gi;if(e instanceof Gi)return e;e=e.rgb();var t=e.r/255,a=e.g/255,n=e.b/255,r=Math.min(t,a,n),i=Math.max(t,a,n),o=NaN,l=i-r,c=(i+r)/2;return l?(t===i?o=(a-n)/l+(a<n)*6:a===i?o=(n-t)/l+2:o=(t-a)/l+4,l/=c<.5?i+r:2-i-r,o*=60):l=c>0&&c<1?0:o,new Gi(o,l,c,e.opacity)}function dNe(e,t,a,n){return arguments.length===1?CY(e):new Gi(e,t,a,n??1)}function Gi(e,t,a,n){this.h=+e,this.s=+t,this.l=+a,this.opacity=+n}YD(Gi,dNe,SY(ib,{brighter(e){return e=e==null?Ry:Math.pow(Ry,e),new Gi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?tx:Math.pow(tx,e),new Gi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,a=this.l,n=a+(a<.5?a:1-a)*t,r=2*a-n;return new mr(yS(e>=240?e-240:e+120,r,n),yS(e,r,n),yS(e<120?e+240:e-120,r,n),this.opacity)},clamp(){return new Gi(TB(this.h),nv(this.s),nv(this.l),zy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=zy(this.opacity);return`${e===1?"hsl(":"hsla("}${TB(this.h)}, ${nv(this.s)*100}%, ${nv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function TB(e){return e=(e||0)%360,e<0?e+360:e}function nv(e){return Math.max(0,Math.min(1,e||0))}function yS(e,t,a){return(e<60?t+(a-t)*e/60:e<180?a:e<240?t+(a-t)*(240-e)/60:t)*255}const ZD=e=>()=>e;function uNe(e,t){return function(a){return e+a*t}}function pNe(e,t,a){return e=Math.pow(e,a),t=Math.pow(t,a)-e,a=1/a,function(n){return Math.pow(e+n*t,a)}}function mNe(e){return(e=+e)==1?TY:function(t,a){return a-t?pNe(t,a,e):ZD(isNaN(t)?a:t)}}function TY(e,t){var a=t-e;return a?uNe(e,a):ZD(isNaN(e)?t:e)}const DB=(function e(t){var a=mNe(t);function n(r,i){var o=a((r=h4(r)).r,(i=h4(i)).r),l=a(r.g,i.g),c=a(r.b,i.b),d=TY(r.opacity,i.opacity);return function(m){return r.r=o(m),r.g=l(m),r.b=c(m),r.opacity=d(m),r+""}}return n.gamma=e,n})(1);function fNe(e,t){t||(t=[]);var a=e?Math.min(t.length,e.length):0,n=t.slice(),r;return function(i){for(r=0;r<a;++r)n[r]=e[r]*(1-i)+t[r]*i;return n}}function hNe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gNe(e,t){var a=t?t.length:0,n=e?Math.min(a,e.length):0,r=new Array(n),i=new Array(a),o;for(o=0;o<n;++o)r[o]=gf(e[o],t[o]);for(;o<a;
vendor: 5,216 bytes, line 890
890++o)i[o]=t[o];return function(l){for(o=0;o<n;++o)i[o]=r[o](l);return i}}function xNe(e,t){var a=new Date;return e=+e,t=+t,function(n){return a.setTime(e*(1-n)+t*n),a}}function _y(e,t){return e=+e,t=+t,function(a){return e*(1-a)+t*a}}function bNe(e,t){var a={},n={},r;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(r in t)r in e?a[r]=gf(e[r],t[r]):n[r]=t[r];return function(i){for(r in a)n[r]=a[r](i);return n}}var g4=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wS=new RegExp(g4.source,"g");function vNe(e){return function(){return e}}function yNe(e){return function(t){return e(t)+""}}function wNe(e,t){var a=g4.lastIndex=wS.lastIndex=0,n,r,i,o=-1,l=[],c=[];for(e=e+"",t=t+"";(n=g4.exec(e))&&(r=wS.exec(t));)(i=r.index)>a&&(i=t.slice(a,i),l[o]?l[o]+=i:l[++o]=i),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,c.push({i:o,x:_y(n,r)})),a=wS.lastIndex;return a<t.length&&(i=t.slice(a),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?yNe(c[0].x):vNe(t):(t=c.length,function(d){for(var m=0,f;m<t;++m)l[(f=c[m]).i]=f.x(d);return l.join("")})}function gf(e,t){var a=typeof t,n;return t==null||a==="boolean"?ZD(t):(a==="number"?_y:a==="string"?(n=nx(t))?(t=n,DB):wNe:t instanceof nx?DB:t instanceof Date?xNe:hNe(t)?fNe:Array.isArray(t)?gNe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bNe:_y)(e,t)}function JD(e,t){return e=+e,t=+t,function(a){return Math.round(e*(1-a)+t*a)}}function PNe(e,t){t===void 0&&(t=e,e=gf);for(var a=0,n=t.length-1,r=t[0],i=new Array(n<0?0:n);a<n;)i[a]=e(r,r=t[++a]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function jNe(e){return function(){return e}}function Iy(e){return+e}var EB=[0,1];function Xs(e){return e}function x4(e,t){return(t-=e=+e)?function(a){return(a-e)/t}:jNe(isNaN(t)?NaN:.5)}function kNe(e,t){var a;return e>t&&(a=e,e=t,t=a),function(n){return Math.max(e,Math.min(t,n))}}function NNe(e,t,a){var n=e[0],r=e[1],i=t[0],o=t[1];return r<n?(n=x4(r,n),i=a(o,i)):(n=x4(n,r),i=a(i,o)),function(l){return i(n(l))}}function ANe(e,t,a){var n=Math.min(e.length,t.length)-1,r=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)r[o]=x4(e[o],e[o+1]),i[o]=a(t[o],t[o+1]);return function(l){var c=rb(e,l,1,n)-1;return i[c](r[c](l))}}function ob(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function L2(){var e=EB,t=EB,a=gf,n,r,i,o=Xs,l,c,d;function m(){var h=Math.min(e.length,t.length);return o!==Xs&&(o=kNe(e[0],e[h-1])),l=h>2?ANe:NNe,c=d=null,f}function f(h){return h==null||isNaN(h=+h)?i:(c||(c=l(e.map(n),t,a)))(n(o(h)))}return f.invert=function(h){return o(r((d||(d=l(t,e.map(n),_y)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Iy),m()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),m()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),a=JD,m()},f.clamp=function(h){return arguments.length?(o=h?!0:Xs,m()):o!==Xs},f.interpolate=function(h){return arguments.length?(a=h,m()):a},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,x){return n=h,r=x,m()}}function e8(){return L2()(Xs,Xs)}function SNe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ly(e,t){if((a=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var a,n=e.slice(0,a);return[n.length>1?n[0]+n.slice(2):n,+e.slice(a+1)]}function Cm(e){return e=Ly(Math.abs(e)),e?e[1]:NaN}function CNe(e,t){return function(a,n){for(var r=a.length,i=[],o=0,l=e[0],c=0;r>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),i.push(a.substring(r-=l,r+l)),!((c+=l+1)>n));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function TNe(e){return function(t){return t.replace(/[0-9]/g,function(a){return e[+a]})}}var DNe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sx(e){if(!(t=DNe.exec(e)))throw new Error("invalid format: "+e);var t;return new t8({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}sx.prototype=t8.prototype;function t8(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}t8.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ENe(e){e:for(var t=e.length,a=1,n=-1,r;a<t;++a)switch(e[a]){case".":n=r=a;break;case"0":n===0&&(n=a),r=a;break;default:if(!+e[a])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(r+1):e}var DY;function MNe(e,t){var a=Ly(e,t);if(!a)return e+"";var n=a[0],r=a[1],i=r-(DY=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>
vendor: 5,911 bytes, line 890
8900?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Ly(e,Math.max(0,t+i-1))[0]}function MB(e,t){var a=Ly(e,t);if(!a)return e+"";var n=a[0],r=a[1];return r<0?"0."+new Array(-r).join("0")+n:n.length>r+1?n.slice(0,r+1)+"."+n.slice(r+1):n+new Array(r-n.length+2).join("0")}const OB={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:SNe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>MB(e*100,t),r:MB,s:MNe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function RB(e){return e}var zB=Array.prototype.map,_B=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ONe(e){var t=e.grouping===void 0||e.thousands===void 0?RB:CNe(zB.call(e.grouping,Number),e.thousands+""),a=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",r=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?RB:TNe(zB.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(f){f=sx(f);var h=f.fill,x=f.align,b=f.sign,y=f.symbol,w=f.zero,j=f.width,N=f.comma,k=f.precision,D=f.trim,C=f.type;C==="n"?(N=!0,C="g"):OB[C]||(k===void 0&&(k=12),D=!0,C="g"),(w||h==="0"&&x==="=")&&(w=!0,h="0",x="=");var S=y==="$"?a:y==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",A=y==="$"?n:/[%p]/.test(C)?o:"",E=OB[C],R=/[defgprs%]/.test(C);k=k===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function F(I){var H=S,_=A,V,W,B;if(C==="c")_=E(I)+_,I="";else{I=+I;var K=I<0||1/I<0;if(I=isNaN(I)?c:E(Math.abs(I),k),D&&(I=ENe(I)),K&&+I==0&&b!=="+"&&(K=!1),H=(K?b==="("?b:l:b==="-"||b==="("?"":b)+H,_=(C==="s"?_B[8+DY/3]:"")+_+(K&&b==="("?")":""),R){for(V=-1,W=I.length;++V<W;)if(B=I.charCodeAt(V),48>B||B>57){_=(B===46?r+I.slice(V+1):I.slice(V))+_,I=I.slice(0,V);break}}}N&&!w&&(I=t(I,1/0));var ae=H.length+I.length+_.length,$=ae<j?new Array(j-ae+1).join(h):"";switch(N&&w&&(I=t($+I,$.length?j-_.length:1/0),$=""),x){case"<":I=H+I+_+$;break;case"=":I=H+$+I+_;break;case"^":I=$.slice(0,ae=$.length>>1)+H+I+_+$.slice(ae);break;default:I=$+H+I+_;break}return i(I)}return F.toString=function(){return f+""},F}function m(f,h){var x=d((f=sx(f),f.type="f",f)),b=Math.max(-8,Math.min(8,Math.floor(Cm(h)/3)))*3,y=Math.pow(10,-b),w=_B[8+b/3];return function(j){return x(y*j)+w}}return{format:d,formatPrefix:m}}var sv,a8,EY;RNe({thousands:",",grouping:[3],currency:["$",""]});function RNe(e){return sv=ONe(e),a8=sv.format,EY=sv.formatPrefix,sv}function zNe(e){return Math.max(0,-Cm(Math.abs(e)))}function _Ne(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Cm(t)/3)))*3-Cm(Math.abs(e)))}function INe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Cm(t)-Cm(e))+1}function MY(e,t,a,n){var r=m4(e,t,a),i;switch(n=sx(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=_Ne(r,o))&&(n.precision=i),EY(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=INe(r,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=zNe(r))&&(n.precision=i-(n.type==="%")*2);break}}return a8(n)}function Jc(e){var t=e.domain;return e.ticks=function(a){var n=t();return u4(n[0],n[n.length-1],a??10)},e.tickFormat=function(a,n){var r=t();return MY(r[0],r[r.length-1],a??10,n)},e.nice=function(a){a==null&&(a=10);var n=t(),r=0,i=n.length-1,o=n[r],l=n[i],c,d,m=10;for(l<o&&(d=o,o=l,l=d,d=r,r=i,i=d);m-- >0;){if(d=p4(o,l,a),d===c)return n[r]=o,n[i]=l,t(n);if(d>0)o=Math.floor(o/d)*d,l=Math.ceil(l/d)*d;else if(d<0)o=Math.ceil(o*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function Fy(){var e=e8();return e.copy=function(){return ob(e,Fy())},ji.apply(e,arguments),Jc(e)}function OY(e){var t;function a(n){return n==null||isNaN(n=+n)?t:n}return a.invert=a,a.domain=a.range=function(n){return arguments.length?(e=Array.from(n,Iy),a):e.slice()},a.unknown=function(n){return arguments.length?(t=n,a):t},a.copy=function(){return OY(e).unknown(t)},e=arguments.length?Array.from(e,Iy):[0,1],Jc(a)}function RY(e,t){e=e.slice();var a=0,n=e.length-1,r=e[a],i=e[n],o;return i<r&&(o=a,a=n,n=o,o=r,r=i,i=o),e[a]=t.floor(r),e[n]=t.ceil(i),e}function IB(e){return Math.log(e)}function LB(e){return Math.exp(e)}function LNe(e){return-Math.log(-e)}function FNe(e){return-Math.exp(-e)}function BNe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function GNe(e){return e===10?BNe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function HNe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function FB(e){return(t,a)=>-e(-t,a)}function n8(e){const t=e(IB,LB),a=t.domain;let n=10,r,i;function o(){return r=HNe(n),i=GNe(n),a()[0]<0?(r=FB(r),i=FB(i),e(LNe,FNe)):e(IB,LB),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(a(l),o()):a()},t.ticks=l=>{const c=a();let d=c[0],m=c[c.length-1];const f=m<d;f&&([d,m]=[m,d]);let h=r(d),x=r(m),b,y;const w=l==null?10:+l;let j=[];if(!(n%1)&&x-h<w){if(h=Math.floor(h),x=Math.ceil(x),d>0){for(;h<=x;++h)for(b=1;b<n;++b)if(y=h<0?b/i(-h):b*i(h),!(y<d)){if(y>m)break;j.push(y)}}else for(;h<=x;++h)for(b=n-1;b>=1;--b)if(y=h>0?b/i(-h):b*i(h),!(y<d)){if(y>m)break;j.push(y)}j.length*2<w&&(j=u4(d,m,w))}else j=u4(h,x,Math.min(x-h,w)).map(i);return f?j.reverse():j},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=sx(c)).precision==null&&(c.trim=!0),c=a8(c)),l===1/0)return c;const d=Math.max(1,n*l/t.ticks().length);return m=>{let f=m/i(Math.round(r(m)));return f*n<n-.5&&(f*=n),f<=d?c(m):""}},t.nice=()=>a(RY(a(),{floor:l=>i(Math.floor(r(l))),ceil:l=>i(Math.ceil(r(l)))})),t}function zY(){const e=n8(L2()).domain([1,10]);return e.copy=()=>ob(e,zY()).base(e.base()),ji.apply(e,arguments),e}
890function BB(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function GB(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function s8(e){var t=1,a=e(BB(t),GB(t));return a.constant=function(n){return arguments.length?e(BB(t=+n),GB(t)):t},Jc(a)}function _Y(){var e=s8(L2());return e.copy=function(){return ob(e,_Y()).constant(e.constant())},ji.apply(e,arguments)}function HB(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qNe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function UNe(e){return e<0?-e*e:e*e}function r8(e){var t=e(Xs,Xs),a=1;function n(){return a===1?e(Xs,Xs):a===.5?e(qNe,UNe):e(HB(a),HB(1/a))}return t.exponent=function(r){return arguments.length?(a=+r,n()):a},Jc(t)}function i8(){var e=r8(L2());return e.copy=function(){return ob(e,i8()).exponent(e.exponent())},ji.apply(e,arguments),e}function VNe(){return i8.apply(null,arguments).exponent(.5)}function qB(e){return Math.sign(e)*e*e}function QNe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function IY(){var e=e8(),t=[0,1],a=!1,n;function r(i){var o=QNe(e(i));return isNaN(o)?n:a?Math.round(o):o}return r.invert=function(i){return e.invert(qB(i))},r.domain=function(i){return arguments.length?(e.domain(i),r):e.domain()},r.range=function(i){return arguments.length?(e.range((t=Array.from(i,Iy)).map(qB)),r):t.slice()},r.rangeRound=function(i){return r.range(i).round(!0)},r.round=function(i){return arguments.length?(a=!!i,r):a},r.clamp=function(i){return arguments.length?(e.clamp(i),r):e.clamp()},r.unknown=function(i){return arguments.length?(n=i,r):n},r.copy=function(){return IY(e.domain(),t).round(a).clamp(e.clamp()).unknown(n)},ji.apply(r,arguments),Jc(r)}function LY(){var e=[],t=[],a=[],n;function r(){var o=0,l=Math.max(1,t.length);for(a=new Array(l-1);++o<l;)a[o-1]=Yke(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[rb(a,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?a[l-1]:e[0],l<a.length?a[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Ec),r()},i.range=function(o){return arguments.length?(t=Array.from(o),r()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return a.slice()},i.copy=function(){return LY().domain(e).range(t).unknown(n)},ji.apply(i,arguments)}function FY(){var e=0,t=1,a=1,n=[.5],r=[0,1],i;function o(c){return c!=null&&c<=c?r[rb(n,c,0,a)]:i}function l(){var c=-1;for(n=new Array(a);++c<a;)n[c]=((c+1)*t-(c-a)*e)/(a+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},o.range=function(c){return arguments.length?(a=(r=Array.from(c)).length-1,l()):r.slice()},o.invertExtent=function(c){var d=r.indexOf(c);return d<0?[NaN,NaN]:d<1?[e,n[0]]:d>=a?[n[a-1],t]:[n[d-1],n[d]]},o.unknown=function(c){return arguments.length&&(i=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return FY().domain([e,t]).range(r).unknown(i)},ji.apply(Jc(o),arguments)}function BY(){var e=[.5],t=[0,1],a,n=1;function r(i){return i!=null&&i<=i?t[rb(e,i,0,n)]:a}return r.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},r.unknown=function(i){return arguments.length?(a=i,r):a},r.copy=function(){return BY().domain(e).range(t).unknown(a)},ji.apply(r,arguments)}const PS=new Date,jS=new Date;function ds(e,t,a,n){function r(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return r.floor=i=>(e(i=new Date(+i)),i),r.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),r.round=i=>{const o=r(i),l=r.ceil(i);return i-o<l-i?o:l},r.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),r.range=(i,o,l)=>{const c=[];if(i=r.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return c;let d;do c.push(d=new Date(+i)),t(i,l),e(i);while(d<i&&i<o);return c},r.filter=i=>ds(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),a&&(r.count=(i,o)=>(PS.setTime(+i),jS.setTime(+o),e(PS),e(jS),Math.floor(a(PS,jS))),r.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?r.filter(n?o=>n(o)%i===0:o=>r.count(0,o)%i===0):r)),r}const By=ds(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);By.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ds(t=>{t.setTime(Math.floor(t/e)*e)},(t,a)=>{t.setTime(+t+a*e)},(t,a)=>(a-t)/e):By);By.range;const fl=1e3,pi=fl*60,hl=pi*60,Tl=hl*24,o8=Tl*7,UB=Tl*30,kS=Tl*365,Zd=ds(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*fl)},(e,t)=>(t-e)/fl,e=>e.getUTCSeconds());Zd.range;const l8=ds(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fl)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getMinutes());l8.range;const c8=ds(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCMinutes());c8.range;const d8=ds(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*fl-e.getMinutes()*pi)},(e,t)=>{e.setTime(+e+t*hl)},(e,t)=>(t-e)/hl,e=>e.getHours());d8.range;const u8=ds(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*hl)},(e,t)=>(t-e)/hl,e=>e.getUTCHours());u8.range;const lb=ds(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*pi)/Tl,e=>e.getDate()-1);lb.range;const F2=ds(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tl,e=>e.getUTCDate()-1);F2.range;const GY=ds(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Tl,e=>Math.floor(e/Tl));GY.range;function Ou(e){return ds(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,a)=>{t.setDate(t.getDate()+a*7)},(t,a)=>(a-t-(a.getTimezoneOffset()-t.getTimezoneOffset())*pi)/o8)}const B2=Ou(0),Gy=Ou(1),WNe=Ou(2),KNe=Ou(3),Tm=Ou(4),$Ne=Ou(5),XNe=Ou(6);B2.range;Gy.range;WNe.range;KNe.range;Tm.range;$Ne.range;XNe.range;function Ru(e){return ds(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,a)=>{t.setUTCDate(t.getUTCDate()+a*7)},(t,a)=>(a-t)/o8)}const G2=Ru(0),Hy=Ru(1),YNe=Ru(2),ZNe=Ru(3),Dm=Ru(4),JNe=Ru(5),e3e=Ru(6);G2.range;Hy.range;YNe.range;ZNe.range;Dm.range;JNe.range;e3e.range;const p8=ds(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());p8.range;const m8=ds(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());m8.range;const Dl=ds(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Dl.every=e=>
vendor: 10,210 bytes, line 890
890!isFinite(e=Math.floor(e))||!(e>0)?null:ds(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,a)=>{t.setFullYear(t.getFullYear()+a*e)});Dl.range;const El=ds(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());El.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ds(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,a)=>{t.setUTCFullYear(t.getUTCFullYear()+a*e)});El.range;function HY(e,t,a,n,r,i){const o=[[Zd,1,fl],[Zd,5,5*fl],[Zd,15,15*fl],[Zd,30,30*fl],[i,1,pi],[i,5,5*pi],[i,15,15*pi],[i,30,30*pi],[r,1,hl],[r,3,3*hl],[r,6,6*hl],[r,12,12*hl],[n,1,Tl],[n,2,2*Tl],[a,1,o8],[t,1,UB],[t,3,3*UB],[e,1,kS]];function l(d,m,f){const h=m<d;h&&([d,m]=[m,d]);const x=f&&typeof f.range=="function"?f:c(d,m,f),b=x?x.range(d,+m+1):[];return h?b.reverse():b}function c(d,m,f){const h=Math.abs(m-d)/f,x=$D(([,,w])=>w).right(o,h);if(x===o.length)return e.every(m4(d/kS,m/kS,f));if(x===0)return By.every(Math.max(m4(d,m,f),1));const[b,y]=o[h/o[x-1][2]<o[x][2]/h?x-1:x];return b.every(y)}return[l,c]}const[t3e,a3e]=HY(El,m8,G2,GY,u8,c8),[n3e,s3e]=HY(Dl,p8,B2,lb,d8,l8);function NS(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function AS(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function kh(e,t,a){return{y:e,m:t,d:a,H:0,M:0,S:0,L:0}}function r3e(e){var t=e.dateTime,a=e.date,n=e.time,r=e.periods,i=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,d=Nh(r),m=Ah(r),f=Nh(i),h=Ah(i),x=Nh(o),b=Ah(o),y=Nh(l),w=Ah(l),j=Nh(c),N=Ah(c),k={a:K,A:ae,b:$,B:Z,c:null,d:XB,e:XB,f:C3e,g:L3e,G:B3e,H:N3e,I:A3e,j:S3e,L:qY,m:T3e,M:D3e,p:O,q:Y,Q:JB,s:eG,S:E3e,u:M3e,U:O3e,V:R3e,w:z3e,W:_3e,x:null,X:null,y:I3e,Y:F3e,Z:G3e,"%":ZB},D={a:Q,A:U,b:oe,B:X,c:null,d:YB,e:YB,f:V3e,g:tAe,G:nAe,H:H3e,I:q3e,j:U3e,L:VY,m:Q3e,M:W3e,p:ne,q:ge,Q:JB,s:eG,S:K3e,u:$3e,U:X3e,V:Y3e,w:Z3e,W:J3e,x:null,X:null,y:eAe,Y:aAe,Z:sAe,"%":ZB},C={a:F,A:I,b:H,B:_,c:V,d:KB,e:KB,f:w3e,g:WB,G:QB,H:$B,I:$B,j:x3e,L:y3e,m:g3e,M:b3e,p:R,q:h3e,Q:j3e,s:k3e,S:v3e,u:d3e,U:u3e,V:p3e,w:c3e,W:m3e,x:W,X:B,y:WB,Y:QB,Z:f3e,"%":P3e};k.x=S(a,k),k.X=S(n,k),k.c=S(t,k),D.x=S(a,D),D.X=S(n,D),D.c=S(t,D);function S(me,Ae){return function(Pe){var L=[],ke=-1,Me=0,Ze=me.length,Ce,Te,Ke;for(Pe instanceof Date||(Pe=new Date(+Pe));++ke<Ze;)me.charCodeAt(ke)===37&&(L.push(me.slice(Me,ke)),(Te=VB[Ce=me.charAt(++ke)])!=null?Ce=me.charAt(++ke):Te=Ce==="e"?" ":"0",(Ke=Ae[Ce])&&(Ce=Ke(Pe,Te)),L.push(Ce),Me=ke+1);return L.push(me.slice(Me,ke)),L.join("")}}function A(me,Ae){return function(Pe){var L=kh(1900,void 0,1),ke=E(L,me,Pe+="",0),Me,Ze;if(ke!=Pe.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(Ae&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(Me=AS(kh(L.y,0,1)),Ze=Me.getUTCDay(),Me=Ze>4||Ze===0?Hy.ceil(Me):Hy(Me),Me=F2.offset(Me,(L.V-1)*7),L.y=Me.getUTCFullYear(),L.m=Me.getUTCMonth(),L.d=Me.getUTCDate()+(L.w+6)%7):(Me=NS(kh(L.y,0,1)),Ze=Me.getDay(),Me=Ze>4||Ze===0?Gy.ceil(Me):Gy(Me),Me=lb.offset(Me,(L.V-1)*7),L.y=Me.getFullYear(),L.m=Me.getMonth(),L.d=Me.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),Ze="Z"in L?AS(kh(L.y,0,1)).getUTCDay():NS(kh(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(Ze+5)%7:L.w+L.U*7-(Ze+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,AS(L)):NS(L)}}function E(me,Ae,Pe,L){for(var ke=0,Me=Ae.length,Ze=Pe.length,Ce,Te;ke<Me;){if(L>=Ze)return-1;if(Ce=Ae.charCodeAt(ke++),Ce===37){if(Ce=Ae.charAt(ke++),Te=C[Ce in VB?Ae.charAt(ke++):Ce],!Te||(L=Te(me,Pe,L))<0)return-1}else if(Ce!=Pe.charCodeAt(L++))return-1}return L}function R(me,Ae,Pe){var L=d.exec(Ae.slice(Pe));return L?(me.p=m.get(L[0].toLowerCase()),Pe+L[0].length):-1}function F(me,Ae,Pe){var L=x.exec(Ae.slice(Pe));return L?(me.w=b.get(L[0].toLowerCase()),Pe+L[0].length):-1}function I(me,Ae,Pe){var L=f.exec(Ae.slice(Pe));return L?(me.w=h.get(L[0].toLowerCase()),Pe+L[0].length):-1}function H(me,Ae,Pe){var L=j.exec(Ae.slice(Pe));return L?(me.m=N.get(L[0].toLowerCase()),Pe+L[0].length):-1}function _(me,Ae,Pe){var L=y.exec(Ae.slice(Pe));return L?(me.m=w.get(L[0].toLowerCase()),Pe+L[0].length):-1}function V(me,Ae,Pe){return E(me,t,Ae,Pe)}function W(me,Ae,Pe){return E(me,a,Ae,Pe)}function B(me,Ae,Pe){return E(me,n,Ae,Pe)}function K(me){return o[me.getDay()]}function ae(me){return i[me.getDay()]}function $(me){return c[me.getMonth()]}function Z(me){return l[me.getMonth()]}function O(me){return r[+(me.getHours()>=12)]}function Y(me){return 1+~~(me.getMonth()/3)}function Q(me){return o[me.getUTCDay()]}function U(me){return i[me.getUTCDay()]}function oe(me){return c[me.getUTCMonth()]}function X(me){return l[me.getUTCMonth()]}function ne(me){return r[+(me.getUTCHours()>=12)]}function ge(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var Ae=S(me+="",k);return Ae.toString=function(){return me},Ae},parse:function(me){var Ae=A(me+="",!1);return Ae.toString=function(){return me},Ae},utcFormat:function(me){var Ae=S(me+="",D);return Ae.toString=function(){return me},Ae},utcParse:function(me){var Ae=A(me+="",!0);return Ae.toString=function(){return me},Ae}}}var VB={"-":"",_:" ",0:"0"},ys=/^\s*\d+/,i3e=/^%/,o3e=/[\\^$*+?|[\]().{}]/g;function La(e,t,a){var n=e<0?"-":"",r=(n?-e:e)+"",i=r.length;return n+(i<a?new Array(a-i+1).join(t)+r:r)}function l3e(e){return e.replace(o3e,"\\$&")}function Nh(e){return new RegExp("^(?:"+e.map(l3e).join("|")+")","i")}function Ah(e){return new Map(e.map((t,a)=>[t.toLowerCase(),a]))}function c3e(e,t,a){var n=ys.exec(t.slice(a,a+1));return n?(e.w=+n[0],a+n[0].length):-1}function d3e(e,t,a){var n=ys.exec(t.slice(a,a+1));return n?(e.u=+n[0],a+n[0].length):-1}function u3e(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.U=+n[0],a+n[0].length):-1}function p3e(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.V=+n[0],a+n[0].length):-1}function m3e(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.W=+n[0],a+n[0].length):-1}function QB(e,t,a){var n=ys.exec(t.slice(a,a+4));return n?(e.y=+n[0],a+n[0].length):-1}function WB(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),a+n[0].length):-1}function f3e(e,t,a){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(a,a+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),a+n[0].length):-1}function h3e(e,t,a){var n=ys.exec(t.slice(a,a+1));return n?(e.q=n[0]*3-3,a+n[0].length):-1}function g3e(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.m=n[0]-1,a+n[0].length):-1}function KB(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.d=+n[0],a+n[0].length):-1}function x3e(e,t,a){var n=ys.exec(t.slice(a,a+3));return n?(e.m=0,e.d=+n[0],a+n[0].length):-1}function $B(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.H=+n[0],a+n[0].length):-1}function b3e(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.M=+n[0],a+n[0].length):-1}function v3e(e,t,a){var n=ys.exec(t.slice(a,a+2));return n?(e.S=+n[0],a+n[0].length):-1}function y3e(e,t,a){var n=ys.exec(t.slice(a,a+3));return n?(e.L=+n[0],a+n[0].length):-1}function w3e(e,t,a){var n=ys.exec(t.slice(a,a+6));return n?(e.L=Math.floor(n[0]/1e3),a+n[0].length):-1}function P3e(e,t,a){var n=i3e.exec(t.slice(a,a+1));return n?a+n[0].length:-1}function j3e(e,t,a){var n=ys.exec(t.slice(a));return n?(e.Q=+n[0],a+n[0].length):-1}function k3e(e,t,a){var n=ys.exec(t.slice(a));return n?(e.s=+n[0],a+n[0].length):-1}function XB(e,t){return La(e.getDate(),t,2)}function N3e(e,t){return La(e.getHours(),t,2)}function A3e(e,t){return La(e.getHours()%12||12,t,2)}function S3e(e,t){return La(1+lb.count(Dl(e),e),t,3)}function qY(e,t){return La(e.getMilliseconds(),t,3)}function C3e(e,t){return qY(e,t)+"000"}function T3e(e,t){return La(e.getMonth()+1,t,2)}function D3e(e,t){return La(e.getMinutes(),t,2)}function E3e(e,t){return La(e.getSeconds(),t,2)}function M3e(e){var t=e.getDay();return t===0?7:t}function O3e(e,t){return La(B2.count(Dl(e)-1,e),t,2)}function UY(e){var t=e.getDay();return t>=4||t===0?Tm(e):Tm.ceil(e)}function R3e(e,t){return e=UY(e),La(Tm.count(Dl(e),e)+(Dl(e).getDay()===4),t,2)}function z3e(e){return e.getDay()}function _3e(e,t){return La(Gy.count(Dl(e)-1,e),t,2)}function I3e(e,t){return La(e.getFullYear()%100,t,2)}function L3e(e,t){return e=UY(e),La(e.getFullYear()%100,t,2)}function F3e(e,t){return La(e.getFullYear()%1e4,t,4)}function B3e(e,t){var a=e.getDay();return e=a>=4||a===0?Tm(e):Tm.ceil(e),La(e.getFullYear()%1e4,t,4)}function G3e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+La(t/60|0,"0",2)+La(t%60,"0",2)}function YB(e,t){return La(e.getUTCDate(),t,2)}function H3e(e,t){return La(e.getUTCHours(),t,2)}function q3e(e,t){return La(e.getUTCHours()%12||12,t,2)}function U3e(e,t){return La(1+F2.count(El(e),e),t,3)}function VY(e,t){return La(e.getUTCMilliseconds(),t,3)}function V3e(e,t){return VY(e,t)+"000"}function Q3e(e,t){return La(e.getUTCMonth()+1,t,2)}function W3e(e,t){return La(e.getUTCMinutes(),t,2)}function K3e(e,t){return La(e.getUTCSeconds(),t,2)}function $3e(e){var t=e.getUTCDay();return t===0?7:t}function X3e(e,t){return La(G2.count(El(e)-1,e),t,2)}function QY(e){var t=e.getUTCDay();return t>=4||t===0?Dm(e):Dm.ceil(e)}function Y3e(e,t){return e=QY(e),La(Dm.count(El(e),e)+(El(e).getUTCDay()===4),t,2)}function Z3e(e){return e.getUTCDay()}function J3e(e,t){return La(Hy.count(El(e)-1,e),t,2)}function eAe(e,t){return La(e.getUTCFullYear()%100,t,2)}function tAe(e,t){return e=QY(e),La(e.getUTCFullYear()%100,t,2)}function aAe(e,t){return La(e.getUTCFullYear()%1e4,t,4)}function nAe(e,t){var a=e.getUTCDay();return e=a>=4||a===0?Dm(e):Dm.ceil(e),La(e.getUTCFullYear()%1e4,t,4)}function sAe(){return"+0000"}function ZB(){return"%"}function JB(e){return+e}function eG(e){return Math.floor(+e/1e3)}var Dp,WY,KY;rAe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
890ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function rAe(e){return Dp=r3e(e),WY=Dp.format,Dp.parse,KY=Dp.utcFormat,Dp.utcParse,Dp}function iAe(e){return new Date(e)}function oAe(e){return e instanceof Date?+e:+new Date(+e)}function f8(e,t,a,n,r,i,o,l,c,d){var m=e8(),f=m.invert,h=m.domain,x=d(".%L"),b=d(":%S"),y=d("%I:%M"),w=d("%I %p"),j=d("%a %d"),N=d("%b %d"),k=d("%B"),D=d("%Y");function C(S){return(c(S)<S?x:l(S)<S?b:o(S)<S?y:i(S)<S?w:n(S)<S?r(S)<S?j:N:a(S)<S?k:D)(S)}return m.invert=function(S){return new Date(f(S))},m.domain=function(S){return arguments.length?h(Array.from(S,oAe)):h().map(iAe)},m.ticks=function(S){var A=h();return e(A[0],A[A.length-1],S??10)},m.tickFormat=function(S,A){return A==null?C:d(A)},m.nice=function(S){var A=h();return(!S||typeof S.range!="function")&&(S=t(A[0],A[A.length-1],S??10)),S?h(RY(A,S)):m},m.copy=function(){return ob(m,f8(e,t,a,n,r,i,o,l,c,d))},m}function lAe(){return ji.apply(f8(n3e,s3e,Dl,p8,B2,lb,d8,l8,Zd,WY).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cAe(){return ji.apply(f8(t3e,a3e,El,m8,G2,F2,u8,c8,Zd,KY).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function H2(){var e=0,t=1,a,n,r,i,o=Xs,l=!1,c;function d(f){return f==null||isNaN(f=+f)?c:o(r===0?.5:(f=(i(f)-a)*r,l?Math.max(0,Math.min(1,f)):f))}d.domain=function(f){return arguments.length?([e,t]=f,a=i(e=+e),n=i(t=+t),r=a===n?0:1/(n-a),d):[e,t]},d.clamp=function(f){return arguments.length?(l=!!f,d):l},d.interpolator=function(f){return arguments.length?(o=f,d):o};function m(f){return function(h){var x,b;return arguments.length?([x,b]=h,o=f(x,b),d):[o(0),o(1)]}}return d.range=m(gf),d.rangeRound=m(JD),d.unknown=function(f){return arguments.length?(c=f,d):c},function(f){return i=f,a=f(e),n=f(t),r=a===n?0:1/(n-a),d}}function ed(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function $Y(){var e=Jc(H2()(Xs));return e.copy=function(){return ed(e,$Y())},Ll.apply(e,arguments)}function XY(){var e=n8(H2()).domain([1,10]);return e.copy=function(){return ed(e,XY()).base(e.base())},Ll.apply(e,arguments)}function YY(){var e=s8(H2());return e.copy=function(){return ed(e,YY()).constant(e.constant())},Ll.apply(e,arguments)}function h8(){var e=r8(H2());return e.copy=function(){return ed(e,h8()).exponent(e.exponent())},Ll.apply(e,arguments)}function dAe(){return h8.apply(null,arguments).exponent(.5)}function ZY(){var e=[],t=Xs;function a(n){if(n!=null&&!isNaN(n=+n))return t((rb(e,n,1)-1)/(e.length-1))}return a.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let r of n)r!=null&&!isNaN(r=+r)&&e.push(r);return e.sort(Ec),a},a.interpolator=function(n){return arguments.length?(t=n,a):t},a.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},a.quantiles=function(n){return Array.from({length:n+1},(r,i)=>Xke(e,i/n))},a.copy=function(){return ZY(t).domain(e)},Ll.apply(a,arguments)}function q2(){var e=0,t=.5,a=1,n=1,r,i,o,l,c,d=Xs,m,f=!1,h;function x(y){return isNaN(y=+y)?h:(y=.5+((y=+m(y))-i)*(n*y<n*i?l:c),d(f?Math.max(0,Math.min(1,y)):y))}x.domain=function(y){return arguments.length?([e,t,a]=y,r=m(e=+e),i=m(t=+t),o=m(a=+a),l=r===i?0:.5/(i-r),c=i===o?0:.5/(o-i),n=i<r?-1:1,x):[e,t,a]},x.clamp=function(y){return arguments.length?(f=!!y,x):f},x.interpolator=function(y){return arguments.length?(d=y,x):d};function b(y){return function(w){var j,N,k;return arguments.length?([j,N,k]=w,d=PNe(y,[j,N,k]),x):[d(0),d(.5),d(1)]}}return x.range=b(gf),x.rangeRound=b(JD),x.unknown=function(y){return arguments.length?(h=y,x):h},function(y){return m=y,r=y(e),i=y(t),o=y(a),l=r===i?0:.5/(i-r),c=i===o?0:.5/(o-i),n=i<r?-1:1,x}}function JY(){var e=Jc(q2()(Xs));return e.copy=function(){return ed(e,JY())},Ll.apply(e,arguments)}function eZ(){var e=n8(q2()).domain([.1,1,10]);return e.copy=function(){return ed(e,eZ()).base(e.base())},Ll.apply(e,arguments)}function tZ(){var e=s8(q2());return e.copy=function(){return ed(e,tZ()).constant(e.constant())},Ll.apply(e,arguments)}function g8(){var e=r8(q2());return e.copy=function(){return ed(e,g8()).exponent(e.exponent())},Ll.apply(e,arguments)}function uAe(){return g8.apply(null,arguments).exponent(.5)}const tG=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ex,scaleDiverging:JY,scaleDivergingLog:eZ,scaleDivergingPow:g8,scaleDivergingSqrt:uAe,scaleDivergingSymlog:tZ,scaleIdentity:OY,scaleImplicit:f4,scaleLinear:Fy,scaleLog:zY,scaleOrdinal:XD,scalePoint:mg,scalePow:i8,scaleQuantile:LY,scaleQuantize:FY,scaleRadial:IY,scaleSequential:$Y,scaleSequentialLog:XY,scaleSequentialPow:h8,scaleSequentialQuantile:ZY,scaleSequentialSqrt:dAe,scaleSequentialSymlog:YY,scaleSqrt:VNe,scaleSymlog:_Y,scaleThreshold:BY,scaleTime:lAe,scaleUtc:cAe,tickFormat:MY},Symbol.toStringTag,{value:"Module"}));var SS,aG;function U2(){if(aG)return SS;aG=1;var e=pf();function t(a,n,r){for(var i=-1,o=a.length;++i<o;){var l=a[i],c=n(l);if(c!=null&&(d===void 0?c===c&&!e(c):r(c,d)))var d=c,m=l}return m}return SS=t,SS}var CS,nG;
vendor: 66,980 bytes, lines 890-917
890function aZ(){if(nG)return CS;nG=1;function e(t,a){return t>a}return CS=e,CS}var TS,sG;function pAe(){if(sG)return TS;sG=1;var e=U2(),t=aZ(),a=hf();function n(r){return r&&r.length?e(r,a,t):void 0}return TS=n,TS}var mAe=pAe();const Ac=Fa(mAe);var DS,rG;function nZ(){if(rG)return DS;rG=1;function e(t,a){return t<a}return DS=e,DS}var ES,iG;function fAe(){if(iG)return ES;iG=1;var e=U2(),t=nZ(),a=hf();function n(r){return r&&r.length?e(r,a,t):void 0}return ES=n,ES}var hAe=fAe();const V2=Fa(hAe);var MS,oG;function gAe(){if(oG)return MS;oG=1;var e=OD(),t=Ro(),a=uY(),n=hr();function r(i,o){var l=n(i)?e:a;return l(i,t(o,3))}return MS=r,MS}var OS,lG;function xAe(){if(lG)return OS;lG=1;var e=cY(),t=gAe();function a(n,r){return e(t(n,r),1)}return OS=a,OS}var bAe=xAe();const vAe=Fa(bAe);var RS,cG;function yAe(){if(cG)return RS;cG=1;var e=VD();function t(a,n){return e(a,n)}return RS=t,RS}var wAe=yAe();const qc=Fa(wAe);var xf=1e9,PAe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},b8,Pn=!0,bi="[DecimalError] ",ou=bi+"Invalid argument: ",x8=bi+"Exponent out of range: ",bf=Math.floor,Hd=Math.pow,jAe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Dr,ps=1e7,gn=7,sZ=9007199254740991,qy=bf(sZ/gn),At={};At.absoluteValue=At.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};At.comparedTo=At.cmp=function(e){var t,a,n,r,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,r=e.d.length,t=0,a=n<r?n:r;t<a;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===r?0:n>r^i.s<0?1:-1};At.decimalPlaces=At.dp=function(){var e=this,t=e.d.length-1,a=(t-e.e)*gn;if(t=e.d[t],t)for(;t%10==0;t/=10)a--;return a<0?0:a};At.dividedBy=At.div=function(e){return yl(this,new this.constructor(e))};At.dividedToIntegerBy=At.idiv=function(e){var t=this,a=t.constructor;return on(yl(t,new a(e),0,1),a.precision)};At.equals=At.eq=function(e){return!this.cmp(e)};At.exponent=function(){return Xn(this)};At.greaterThan=At.gt=function(e){return this.cmp(e)>0};At.greaterThanOrEqualTo=At.gte=function(e){return this.cmp(e)>=0};At.isInteger=At.isint=function(){return this.e>this.d.length-2};At.isNegative=At.isneg=function(){return this.s<0};At.isPositive=At.ispos=function(){return this.s>0};At.isZero=function(){return this.s===0};At.lessThan=At.lt=function(e){return this.cmp(e)<0};At.lessThanOrEqualTo=At.lte=function(e){return this.cmp(e)<1};At.logarithm=At.log=function(e){var t,a=this,n=a.constructor,r=n.precision,i=r+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Dr))throw Error(bi+"NaN");if(a.s<1)throw Error(bi+(a.s?"NaN":"-Infinity"));return a.eq(Dr)?new n(0):(Pn=!1,t=yl(rx(a,i),rx(e,i),i),Pn=!0,on(t,r))};At.minus=At.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oZ(t,e):rZ(t,(e.s=-e.s,e))};At.modulo=At.mod=function(e){var t,a=this,n=a.constructor,r=n.precision;if(e=new n(e),!e.s)throw Error(bi+"NaN");return a.s?(Pn=!1,t=yl(a,e,0,1).times(e),Pn=!0,a.minus(t)):on(new n(a),r)};At.naturalExponential=At.exp=function(){return iZ(this)};At.naturalLogarithm=At.ln=function(){return rx(this)};At.negated=At.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};At.plus=At.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rZ(t,e):oZ(t,(e.s=-e.s,e))};At.precision=At.sd=function(e){var t,a,n,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ou+e);if(t=Xn(r)+1,n=r.d.length-1,a=n*gn+1,n=r.d[n],n){for(;n%10==0;n/=10)a--;for(n=r.d[0];n>=10;n/=10)a++}return e&&t>a?t:a};At.squareRoot=At.sqrt=function(){var e,t,a,n,r,i,o,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(bi+"NaN")}for(e=Xn(l),Pn=!1,r=Math.sqrt(+l),r==0||r==1/0?(t=go(l.d),(t.length+e)%2==0&&(t+="0"),r=Math.sqrt(t),e=bf((e+1)/2)-(e<0||e%2),r==1/0?t="5e"+e:(t=r.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(r.toString()),a=c.precision,r=o=a+3;;)if(i=n,n=i.plus(yl(l,i,o+2)).times(.5),go(i.d).slice(0,o)===(t=go(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),r==o&&t=="4999"){if(on(i,a+1,0),i.times(i).eq(l)){n=i;break}}else if(t!="9999")break;o+=4}return Pn=!0,on(n,a)};At.times=At.mul=function(e){var t,a,n,r,i,o,l,c,d,m=this,f=m.constructor,h=m.d,x=(e=new f(e)).d;if(!m.s||!e.s)return new f(0);for(e.s*=m.s,a=m.e+e.e,c=h.length,d=x.length,c<d&&(i=h,h=x,x=i,o=c,c=d,d=o),i=[],o=c+d,n=o;n--;)i.push(0);for(n=d;--n>=0;){for(t=0,r=c+n;r>n;)l=i[r]+x[n]*h[r-n-1]+t,i[r--]=l%ps|0,t=l/ps|0;i[r]=(i[r]+t)%ps|0}for(;!i[--o];)i.pop();return t?++a:i.shift(),e.d=i,e.e=a,Pn?on(e,f.precision):e};At.toDecimalPlaces=At.todp=function(e,t){var a=this,n=a.constructor;return a=new n(a),e===void 0?a:(Ao(e,0,xf),t===void 0?t=n.rounding:Ao(t,0,8),on(a,e+Xn(a)+1,t))};At.toExponential=function(e,t){var a,n=this,r=n.constructor;return e===void 0?a=vu(n,!0):(Ao(e,0,xf),t===void 0?t=r.rounding:Ao(t,0,8),n=on(new r(n),e+1,t),a=vu(n,!0,e+1)),a};At.toFixed=function(e,t){var a,n,r=this,i=r.constructor;return e===void 0?vu(r):(Ao(e,0,xf),t===void 0?t=i.rounding:Ao(t,0,8),n=on(new i(r),e+Xn(r)+1,t),a=vu(n.abs(),!1,e+Xn(n)+1),r.isneg()&&!r.isZero()?"-"+a:a)};At.toInteger=At.toint=function(){var e=this,t=e.constructor;return on(new t(e),Xn(e)+1,t.rounding)};At.toNumber=function(){return+this};At.toPower=At.pow=function(e){var t,a,n,r,i,o,l=this,c=l.constructor,d=12,m=+(e=new c(e));if(!e.s)return new c(Dr);if(l=new c(l),!l.s){if(e.s<1)throw Error(bi+"Infinity");return l}if(l.eq(Dr))return l;if(n=c.precision,e.eq(Dr))return on(l,n);if(t=e.e,a=e.d.length-1,o=t>=a,i=l.s,o){if((a=m<0?-m:m)<=sZ){for(r=new c(Dr),t=Math.ceil(n/gn+4),Pn=!1;a%2&&(r=r.times(l),uG(r.d,t)),a=bf(a/2),a!==0;)l=l.times(l),uG(l.d,t);return Pn=!0,e.s<0?new c(Dr).div(r):on(r,n)}}else if(i<0)throw Error(bi+"NaN");return i=i<0&&e.d[Math.max(t,a)]&1?-1:1,l.s=1,Pn=!1,r=e.times(rx(l,n+d)),Pn=!0,r=iZ(r),r.s=i,r};At.toPrecision=function(e,t){var a,n,r=this,i=r.constructor;return e===void 0?(a=Xn(r),n=vu(r,a<=i.toExpNeg||a>=i.toExpPos)):(Ao(e,1,xf),t===void 0?t=i.rounding:Ao(t,0,8),r=on(new i(r),e,t),a=Xn(r),n=vu(r,e<=a||a<=i.toExpNeg,e)),n};At.toSignificantDigits=At.tosd=function(e,t){var a=this,n=a.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ao(e,1,xf),t===void 0?t=n.rounding:Ao(t,0,8)),on(new n(a),e,t)};At.toString=At.valueOf=At.val=At.toJSON=At[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Xn(e),a=e.constructor;return vu(e,t<=a.toExpNeg||t>=a.toExpPos)};function rZ(e,t){var a,n,r,i,o,l,c,d,m=e.constructor,f=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),Pn?on(t,f):t;if(c=e.d,d=t.d,o=e.e,r=t.e,c=c.slice(),i=o-r,i){for(i<0?(n=c,i=-i,l=d.length):(n=d,r=o,l=c.length),o=Math.ceil(f/gn),l=o>l?o+1:l+1,i>l&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(l=c.length,i=d.length,l-i<0&&(i=l,n=d,d=c,c=n),a=0;i;)a=(c[--i]=c[i]+d[i]+a)/ps|0,c[i]%=ps;for(a&&(c.unshift(a),++r),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=r,Pn?on(t,f):t}function Ao(e,t,a){if(e!==~~e||e<t||e>a)throw Error(ou+e)}function go(e){var t,a,n,r=e.length-1,i="",o=e[0];if(r>0){for(i+=o,t=1;t<r;t++)n=e[t]+"",a=gn-n.length,a&&(i+=Pc(a)),i+=n;o=e[t],n=o+"",a=gn-n.length,a&&(i+=Pc(a))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var yl=(function(){function e(n,r){var i,o=0,l=n.length;for(n=n.slice();l--;)i=n[l]*r+o,n[l]=i%ps|0,o=i/ps|0;return o&&n.unshift(o),n}function t(n,r,i,o){var l,c;if(i!=o)c=i>o?1:-1;else for(l=c=0;l<i;l++)if(n[l]!=r[l]){c=n[l]>r[l]?1:-1;break}return c}function a(n,r,i){for(var o=0;i--;)n[i]-=o,o=n[i]<r[i]?1:0,n[i]=o*ps+n[i]-r[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,r,i,o){var l,c,d,m,f,h,x,b,y,w,j,N,k,D,C,S,A,E,R=n.constructor,F=n.s==r.s?1:-1,I=n.d,H=r.d;if(!n.s)return new R(n);if(!r.s)throw Error(bi+"Division by zero");for(c=n.e-r.e,A=H.length,C=I.length,x=new R(F),b=x.d=[],d=0;H[d]==(I[d]||0);)++d;if(H[d]>(I[d]||0)&&--c,i==null?N=i=R.precision:o?N=i+(Xn(n)-Xn(r))+1:N=i,N<0)return new R(0);if(N=N/gn+2|0,d=0,A==1)for(m=0,H=H[0],N++;(d<C||m)&&N--;d++)k=m*ps+(I[d]||0),b[d]=k/H|0,m=k%H|0;else{for(m=ps/(H[0]+1)|0,m>1&&(H=e(H,m),I=e(I,m),A=H.length,C=I.length),D=A,y=I.slice(0,A),w=y.length;w<A;)y[w++]=0;E=H.slice(),E.unshift(0),S=H[0],H[1]>=ps/2&&++S;do m=0,l=t(H,y,A,w),l<0?(j=y[0],A!=w&&(j=j*ps+(y[1]||0)),m=j/S|0,m>1?(m>=ps&&(m=ps-1),f=e(H,m),h=f.length,w=y.length,l=t(f,y,h,w),l==1&&(m--,a(f,A<h?E:H,h))):(m==0&&(l=m=1),f=H.slice()),h=f.length,h<w&&f.unshift(0),a(y,f,w),l==-1&&(w=y.length,l=t(H,y,A,w),l<1&&(m++,a(y,A<w?E:H,w))),w=y.length):l===0&&(m++,y=[0]),b[d++]=m,l&&y[0]?y[w++]=I[D]||0:(y=[I[D]],w=1);while((D++<C||y[0]!==void 0)&&N--)}return b[0]||b.shift(),x.e=c,on(x,o?i+Xn(x)+1:i)}})();function iZ(e,t){var a,n,r,i,o,l,c=0,d=0,m=e.constructor,f=m.precision;if(Xn(e)>16)throw Error(x8+Xn(e));if(!e.s)return new m(Dr);for(Pn=!1,l=f,o=new m(.03125);e.abs().gte(.1);)e=e.times(o),d+=5;for(n=Math.log(Hd(2,d))/Math.LN10*2+5|0,l+=n,a=r=i=new m(Dr),m.precision=l;;){if(r=on(r.times(e),l),a=a.times(++c),o=i.plus(yl(r,a,l)),go(o.d).slice(0,l)===go(i.d).slice(0,l)){for(;d--;)i=on(i.times(i),l);return m.precision=f,t==null?(Pn=!0,on(i,f)):i}i=o}}function Xn(e){for(var t=e.e*gn,a=e.d[0];a>=10;a/=10)t++;return t}function zS(e,t,a){if(t>e.LN10.sd())throw Pn=!0,a&&(e.precision=a),Error(bi+"LN10 precision limit exceeded");return on(new e(e.LN10),t)}function Pc(e){for(var t="";e--;)t+="0";return t}function rx(e,t){var a,n,r,i,o,l,c,d,m,f=1,h=10,x=e,b=x.d,y=x.constructor,w=y.precision;if(x.s<1)throw Error(bi+(x.s?"NaN":"-Infinity"));if(x.eq(Dr))return new y(0);if(t==null?(Pn=!1,d=w):d=t,x.eq(10))return t==null&&(Pn=!0),zS(y,d);if(d+=h,y.precision=d,a=go(b),n=a.charAt(0),i=Xn(x),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&a.charAt(1)>3;)x=x.times(e),a=go(x.d),n=a.charAt(0),f++;i=Xn(x),n>1?(x=new y("0."+a),i++):x=new y(n+"."+a.slice(1))}else return c=zS(y,d+2,w).times(i+""),x=rx(new y(n+"."+a.slice(1)),d-h).plus(c),y.precision=w,t==null?(Pn=!0,on(x,w)):x;for(l=o=x=yl(x.minus(Dr),x.plus(Dr),d),m=on(x.times(x),d),r=3;;){if(o=on(o.times(m),d),c=l.plus(yl(o,new y(r),d)),go(c.d).slice(0,d)===go(l.d).slice(0,d))return l=l.times(2),i!==0&&(l=l.plus(zS(y,d+2,w).times(i+""))),l=yl(l,new y(f),d),y.precision=w,t==null?(Pn=!0,on(l,w)):l;l=c,r+=2}}function dG(e,t){var a,n,r;for((a=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(a<0&&(a=n),a+=+t.slice(n+1),t=t.substring(0,n)):a<0&&(a=t.length),n=0;t.charCodeAt(n)===48;)++n;for(r=t.length;t.charCodeAt(r-1)===48;)--r;if(t=t.slice(n,r),t){if(r-=n,a=a-n-1,e.e=bf(a/gn),e.d=[],n=(a+1)%gn,a<0&&(n+=gn),n<r){for(n&&e.d.push(+t.slice(0,n)),r-=gn;n<r;)e.d.push(+t.slice(n,n+=gn));t=t.slice(n),n=gn-t.length}else n-=r;for(;n--;)t+="0";if(e.d.push(+t),Pn&&(e.e>qy||e.e<-qy))throw Error(x8+a)}else e.s=0,e.e=0,e.d=[0];return e}function on(e,t,a){var n,r,i,o,l,c,d,m,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=gn,r=t,d=f[m=0];else{if(m=Math.ceil((n+1)/gn),i=f.length,m>=i)return e;for(d=i=f[m],o=1;i>=10;i/=10)o++;n%=gn,r=n-gn+o}if(a!==void 0&&(i=Hd(10,o-r-1),l=d/i%10|0,c=t<0||f[m+1]!==void 0||d%i,c=a<4?(l||c)&&(a==0||a==(e.s<0?3:2)):l>5||l==5&&(a==4||c||a==6&&(n>0?r>0?d/Hd(10,o-r):0:f[m-1])%10&1||a==(e.s<0?8:7))),t<1||!f[0])return c?(i=Xn(e),f.length=1,t=t-i-1,f[0]=Hd(10,(gn-t%gn)%gn),e.e=bf(-t/gn)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=m,i=1,m--):(f.length=m+1,i=Hd(10,gn-n),f[m]=r>0?(d/Hd(10,o-r)%Hd(10,r)|0)*i:0),c)for(;;)if(m==0){(f[0]+=i)==ps&&(f[0]=1,++e.e);break}else{if(f[m]+=i,f[m]!=ps)break;f[m--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(Pn&&(e.e>qy||e.e<-qy))throw Error(x8+Xn(e));return e}function oZ(e,t){var a,n,r,i,o,l,c,d,m,f,h=e.constructor,x=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Pn?on(t,x):t;if(c=e.d,f=t.d,n=t.e,d=e.e,c=c.slice(),o=d-n,o){for(m=o<0,m?(a=c,o=-o,l=f.length):(a=f,n=d,l=c.length),r=Math.max(Math.ceil(x/gn),l)+2,o>r&&(o=r,a.length=1),a.reverse(),r=o;r--;)a.push(0);a.reverse()}else{for(r=c.length,l=f.length,m=r<l,m&&(l=r),r=0;r<l;r++)if(c[r]!=f[r]){m=c[r]<f[r];break}o=0}for(m&&(a=c,c=f,f=a,t.s=-t.s),l=c.length,r=f.length-l;r>0;--r)c[l++]=0;for(r=f.length;r>o;){if(c[--r]<f[r]){for(i=r;i&&c[--i]===0;)c[i]=ps-1;--c[i],c[r]+=ps}c[r]-=f[r]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,Pn?on(t,x):t):new h(0)}function vu(e,t,a){var n,r=Xn(e),i=go(e.d),o=i.length;return t?(a&&(n=a-o)>0?i=i.charAt(0)+"."+i.slice(1)+Pc(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(r<0?"e":"e+")+r):r<0?(i="0."+Pc(-r-1)+i,a&&(n=a-o)>0&&(i+=Pc(n))):r>=o?(i+=Pc(r+1-o),a&&(n=a-r-1)>0&&(i=i+"."+Pc(n))):((n=r+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),a&&(n=a-o)>0&&(r+1===o&&(i+="."),i+=Pc(n))),e.s<0?"-"+i:i}function uG(e,t){if(e.length>t)return e.length=t,!0}function lZ(e){var t,a,n;function r(i){var o=this;if(!(o instanceof r))return new r(i);if(o.constructor=r,i instanceof r){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ou+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return dG(o,i.toString())}else if(typeof i!="string")throw Error(ou+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,jAe.test(i))dG(o,i);else throw Error(ou+i)}if(r.prototype=At,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.clone=lZ,r.config=r.set=kAe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(a=n[t++])||(e[a]=this[a]);return r.config(e),r}function kAe(e){if(!e||typeof e!="object")throw Error(bi+"Object expected");var t,a,n,r=["precision",1,xf,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<r.length;t+=3)if((n=e[a=r[t]])!==void 0)if(bf(n)===n&&n>=r[t+1]&&n<=r[t+2])this[a]=n;else throw Error(ou+a+": "+n);if((n=e[a="LN10"])!==void 0)if(n==Math.LN10)this[a]=new this(n);else throw Error(ou+a+": "+n);return this}var b8=lZ(PAe);Dr=new b8(1);const tn=b8;function NAe(e){return TAe(e)||CAe(e)||SAe(e)||AAe()}function AAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 891In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SAe(e,t){if(e){if(typeof e=="string")return b4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return b4(e,t)}}function CAe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function TAe(e){if(Array.isArray(e))return b4(e)}function b4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var DAe=function(t){return t},cZ={},dZ=function(t){return t===cZ},pG=function(t){return function a(){return arguments.length===0||arguments.length===1&&dZ(arguments.length<=0?void 0:arguments[0])?a:t.apply(void 0,arguments)}},EAe=function e(t,a){return t===1?a:pG(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(function(l){return l!==cZ}).length;return o>=t?a.apply(void 0,r):e(t-o,pG(function(){for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var m=r.map(function(f){return dZ(f)?c.shift():f});return a.apply(void 0,NAe(m).concat(c))}))})},Q2=function(t){return EAe(t.length,t)},v4=function(t,a){for(var n=[],r=t;r<a;++r)n[r-t]=r;return n},MAe=Q2(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(a){return t[a]}).map(e)}),OAe=function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];if(!a.length)return DAe;var r=a.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce(function(l,c){return c(l)},i.apply(void 0,arguments))}},y4=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},uZ=function(t){var a=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return a&&i.every(function(l,c){return l===a[c]})||(a=i,n=t.apply(void 0,i)),n}};function RAe(e){var t;return e===0?t=1:t=Math.floor(new tn(e).abs().log(10).toNumber())+1,t}function zAe(e,t,a){for(var n=new tn(e),r=0,i=[];n.lt(t)&&r<1e5;)i.push(n.toNumber()),n=n.add(a),r++;return i}var _Ae=Q2(function(e,t,a){var n=+e,r=+t;return n+a*(r-n)}),IAe=Q2(function(e,t,a){var n=t-+e;return n=n||1/0,(a-e)/n}),LAe=Q2(function(e,t,a){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(a-e)/n))});const W2={rangeStep:zAe,getDigitCount:RAe,interpolateNumber:_Ae,uninterpolateNumber:IAe,uninterpolateTruncation:LAe};function w4(e){return GAe(e)||BAe(e)||pZ(e)||FAe()}function FAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 892In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BAe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function GAe(e){if(Array.isArray(e))return P4(e)}function ix(e,t){return UAe(e)||qAe(e,t)||pZ(e,t)||HAe()}function HAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 893In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pZ(e,t){if(e){if(typeof e=="string")return P4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return P4(e,t)}}function P4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function qAe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var a=[],n=!0,r=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(a.push(l.value),!(t&&a.length===t));n=!0);}catch(c){r=!0,i=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(r)throw i}}return a}}function UAe(e){if(Array.isArray(e))return e}function mZ(e){var t=ix(e,2),a=t[0],n=t[1],r=a,i=n;return a>n&&(r=n,i=a),[r,i]}function fZ(e,t,a){if(e.lte(0))return new tn(0);var n=W2.getDigitCount(e.toNumber()),r=new tn(10).pow(n),i=e.div(r),o=n!==1?.05:.1,l=new tn(Math.ceil(i.div(o).toNumber())).add(a).mul(o),c=l.mul(r);return t?c:new tn(Math.ceil(c))}function VAe(e,t,a){var n=1,r=new tn(e);if(!r.isint()&&a){var i=Math.abs(e);i<1?(n=new tn(10).pow(W2.getDigitCount(e)-1),r=new tn(Math.floor(r.div(n).toNumber())).mul(n)):i>1&&(r=new tn(Math.floor(e)))}else e===0?r=new tn(Math.floor((t-1)/2)):a||(r=new tn(Math.floor(e)));var o=Math.floor((t-1)/2),l=OAe(MAe(function(c){return r.add(new tn(c-o).mul(n)).toNumber()}),v4);return l(0,t)}function hZ(e,t,a,n){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(a-1)))return{step:new tn(0),tickMin:new tn(0),tickMax:new tn(0)};var i=fZ(new tn(t).sub(e).div(a-1),n,r),o;e<=0&&t>=0?o=new tn(0):(o=new tn(e).add(t).div(2),o=o.sub(new tn(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),c=Math.ceil(new tn(t).sub(o).div(i).toNumber()),d=l+c+1;return d>a?hZ(e,t,a,n,r+1):(d<a&&(c=t>0?c+(a-d):c,l=t>0?l:l+(a-d)),{step:i,tickMin:o.sub(new tn(l).mul(i)),tickMax:o.add(new tn(c).mul(i))})}function QAe(e){var t=ix(e,2),a=t[0],n=t[1],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),l=mZ([a,n]),c=ix(l,2),d=c[0],m=c[1];if(d===-1/0||m===1/0){var f=m===1/0?[d].concat(w4(v4(0,r-1).map(function(){return 1/0}))):[].concat(w4(v4(0,r-1).map(function(){return-1/0})),[m]);return a>n?y4(f):f}if(d===m)return VAe(d,r,i);var h=hZ(d,m,o,i),x=h.step,b=h.tickMin,y=h.tickMax,w=W2.rangeStep(b,y.add(new tn(.1).mul(x)),x);return a>n?y4(w):w}function WAe(e,t){var a=ix(e,2),n=a[0],r=a[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=mZ([n,r]),l=ix(o,2),c=l[0],d=l[1];if(c===-1/0||d===1/0)return[n,r];if(c===d)return[c];var m=Math.max(t,2),f=fZ(new tn(d).sub(c).div(m-1),i,0),h=[].concat(w4(W2.rangeStep(new tn(c),new tn(d).sub(new tn(.99).mul(f)),f)),[d]);return n>r?y4(h):h}var KAe=uZ(QAe),$Ae=uZ(WAe),XAe="Invariant failed";function yu(e,t){throw new Error(XAe)}var YAe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Em(e){"@babel/helpers - typeof";return Em=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},Em(e)}function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Uy.apply(this,arguments)}function ZAe(e,t){return aSe(e)||tSe(e,t)||eSe(e,t)||JAe()}function JAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 894In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eSe(e,t){if(e){if(typeof e=="string")return mG(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return mG(e,t)}}function mG(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function tSe(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function aSe(e){if(Array.isArray(e))return e}function nSe(e,t){if(e==null)return{};var a=sSe(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function sSe(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function rSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iSe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bZ(n.key),n)}}function oSe(e,t,a){return t&&iSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lSe(e,t,a){return t=Vy(t),cSe(e,gZ()?Reflect.construct(t,a||[],Vy(e).constructor):t.apply(e,a))}function cSe(e,t){if(t&&(Em(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dSe(e)}function dSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gZ=function(){return!!e})()}function Vy(e){return Vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Vy(e)}function uSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j4(e,t)}function j4(e,t){return j4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},j4(e,t)}function xZ(e,t,a){return t=bZ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function bZ(e){var t=pSe(e,"string");return Em(t)=="symbol"?t:t+""}function pSe(e,t){if(Em(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Em(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vf=(function(e){function t(){return rSe(this,t),lSe(this,t,arguments)}return uSe(t,e),oSe(t,[{key:"render",value:function(){var n=this.props,r=n.offset,i=n.layout,o=n.width,l=n.dataKey,c=n.data,d=n.dataPointFormatter,m=n.xAxis,f=n.yAxis,h=nSe(n,YAe),x=Rt(h,!1);this.props.direction==="x"&&m.type!=="number"&&yu();var b=c.map(function(y){var w=d(y,l),j=w.x,N=w.y,k=w.value,D=w.errorVal;if(!D)return null;var C=[],S,A;if(Array.isArray(D)){var E=ZAe(D,2);S=E[0],A=E[1]}else S=A=D;if(i==="vertical"){var R=m.scale,F=N+r,I=F+o,H=F-o,_=R(k-S),V=R(k+A);C.push({x1:V,y1:I,x2:V,y2:H}),C.push({x1:_,y1:F,x2:V,y2:F}),C.push({x1:_,y1:I,x2:_,y2:H})}else if(i==="horizontal"){var W=f.scale,B=j+r,K=B-o,ae=B+o,$=W(k-S),Z=W(k+A);C.push({x1:K,y1:Z,x2:ae,y2:Z}),C.push({x1:B,y1:$,x2:B,y2:Z}),C.push({x1:K,y1:$,x2:ae,y2:$})}return ie.createElement(la,Uy({className:"recharts-errorBar",key:"bar-".concat(C.map(function(O){return"".concat(O.x1,"-").concat(O.x2,"-").concat(O.y1,"-").concat(O.y2)}))},x),C.map(function(O){return ie.createElement("line",Uy({},O,{key:"line-".concat(O.x1,"-").concat(O.x2,"-").concat(O.y1,"-").concat(O.y2)}))}))});return ie.createElement(la,{className:"recharts-errorBars"},b)}}])})(ie.Component);xZ(vf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});xZ(vf,"displayName","ErrorBar");function ox(e){"@babel/helpers - typeof";return ox=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},ox(e)}function fG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Td(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?fG(Object(a),!0).forEach(function(n){mSe(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function mSe(e,t,a){return t=fSe(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function fSe(e){var t=hSe(e,"string");return ox(t)=="symbol"?t:t+""}function hSe(e,t){if(ox(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(ox(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vZ=function(t){var a=t.children,n=t.formattedGraphicalItems,r=t.legendWidth,i=t.legendContent,o=Sr(a,fr);if(!o)return null;var l=fr.defaultProps,c=l!==void 0?Td(Td({},l),o.props):{},d;return o.props&&o.props.payload?d=o.props&&o.props.payload:i==="children"?d=(n||[]).reduce(function(m,f){var h=f.item,x=f.props,b=x.sectors||x.data||[];return m.concat(b.map(function(y){return{type:o.props.iconType||h.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):d=(n||[]).map(function(m){var f=m.item,h=f.type.defaultProps,x=h!==void 0?Td(Td({},h),f.props):{},b=x.dataKey,y=x.name,w=x.legendType,j=x.hide;return{inactive:j,dataKey:b,type:c.iconType||w||"square",color:v8(f),value:y||b,payload:x}}),Td(Td(Td({},c),fr.getWithHeight(o,r)),{},{payload:d,item:o})};function lx(e){"@babel/helpers - typeof";return lx=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},lx(e)}function hG(e){return vSe(e)||bSe(e)||xSe(e)||gSe()}function gSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 895In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xSe(e,t){if(e){if(typeof e=="string")return k4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return k4(e,t)}}function bSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vSe(e){if(Array.isArray(e))return k4(e)}function k4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function gG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Mn(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?gG(Object(a),!0).forEach(function(n){mm(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):gG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function mm(e,t,a){return t=ySe(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ySe(e){var t=wSe(e,"string");return lx(t)=="symbol"?t:t+""}function wSe(e,t){if(lx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(lx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xn(e,t,a){return Ft(e)||Ft(t)?a:rs(t)?Rr(e,t,a):Gt(t)?t(e):a}function fg(e,t,a,n){var r=vAe(e,function(l){return xn(l,t)});if(a==="number"){var i=r.filter(function(l){return ut(l)||parseFloat(l)});return i.length?[V2(i),Ac(i)]:[1/0,-1/0]}var o=n?r.filter(function(l){return!Ft(l)}):r;return o.map(function(l){return rs(l)||l instanceof Date?l:""})}var PSe=function(t){var a,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(a=n?.length)!==null&&a!==void 0?a:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,d=0;d<l;d++){var m=d>0?r[d-1].coordinate:r[l-1].coordinate,f=r[d].coordinate,h=d>=l-1?r[0].coordinate:r[d+1].coordinate,x=void 0;if(Ws(f-m)!==Ws(h-f)){var b=[];if(Ws(h-f)===Ws(c[1]-c[0])){x=h;var y=f+c[1]-c[0];b[0]=Math.min(y,(y+m)/2),b[1]=Math.max(y,(y+m)/2)}else{x=m;var w=h+c[1]-c[0];b[0]=Math.min(f,(w+f)/2),b[1]=Math.max(f,(w+f)/2)}var j=[Math.min(f,(x+f)/2),Math.max(f,(x+f)/2)];if(t>j[0]&&t<=j[1]||t>=b[0]&&t<=b[1]){o=r[d].index;break}}else{var N=Math.min(m,h),k=Math.max(m,h);if(t>(N+f)/2&&t<=(k+f)/2){o=r[d].index;break}}}else for(var D=0;D<l;D++)if(D===0&&t<=(n[D].coordinate+n[D+1].coordinate)/2||D>0&&D<l-1&&t>(n[D].coordinate+n[D-1].coordinate)/2&&t<=(n[D].coordinate+n[D+1].coordinate)/2||D===l-1&&t>(n[D].coordinate+n[D-1].coordinate)/2){o=n[D].index;break}return o},v8=function(t){var a,n=t,r=n.type.displayName,i=(a=t.type)!==null&&a!==void 0&&a.defaultProps?Mn(Mn({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,c;switch(r){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:l;break;default:c=l;break}return c},jSe=function(t){var a=t.barSize,n=t.totalSize,r=t.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var o={},l=Object.keys(i),c=0,d=l.length;c<d;c++)for(var m=i[l[c]].stackGroups,f=Object.keys(m),h=0,x=f.length;h<x;h++){var b=m[f[h]],y=b.items,w=b.cateAxisId,j=y.filter(function(A){return vl(A.type).indexOf("Bar")>=0});if(j&&j.length){var N=j[0].type.defaultProps,k=N!==void 0?Mn(Mn({},N),j[0].props):j[0].props,D=k.barSize,C=k[w];o[C]||(o[C]=[]);var S=Ft(D)?a:D;o[C].push({item:j[0],stackList:j.slice(1),barSize:Ft(S)?void 0:Ks(S,n,0)})}}return o},kSe=function(t){var a=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,c=o.length;if(c<1)return null;var d=Ks(a,r,0,!0),m,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,x=r/c,b=o.reduce(function(D,C){return D+C.barSize||0},0);b+=(c-1)*d,b>=r&&(b-=(c-1)*d,d=0),b>=r&&x>0&&(h=!0,x*=.9,b=c*x);var y=(r-b)/2>>0,w={offset:y-d,size:0};m=o.reduce(function(D,C){var S={item:C.item,position:{offset:w.offset+w.size+d,size:h?x:C.barSize}},A=[].concat(hG(D),[S]);return w=A[A.length-1].position,C.stackList&&C.stackList.length&&C.stackList.forEach(function(E){A.push({item:E,position:w})}),A},f)}else{var j=Ks(n,r,0,!0);r-2*j-(c-1)*d<=0&&(d=0);var N=(r-2*j-(c-1)*d)/c;N>1&&(N>>=0);var k=l===+l?Math.min(N,l):N;m=o.reduce(function(D,C,S){var A=[].concat(hG(D),[{item:C.item,position:{offset:j+(N+d)*S+(N-k)/2,size:k}}]);return C.stackList&&C.stackList.length&&C.stackList.forEach(function(E){A.push({item:E,position:A[A.length-1].position})}),A},f)}return m},NSe=function(t,a,n,r){var i=n.children,o=n.width,l=n.margin,c=o-(l.left||0)-(l.right||0),d=vZ({children:i,legendWidth:c});if(d){var m=r||{},f=m.width,h=m.height,x=d.align,b=d.verticalAlign,y=d.layout;if((y==="vertical"||y==="horizontal"&&b==="middle")&&x!=="center"&&ut(t[x]))return Mn(Mn({},t),{},mm({},x,t[x]+(f||0)));if((y==="horizontal"||y==="vertical"&&x==="center")&&b!=="middle"&&ut(t[b]))return Mn(Mn({},t),{},mm({},b,t[b]+(h||0)))}return t},ASe=function(t,a,n){return Ft(a)?!0:t==="horizontal"?a==="yAxis":t==="vertical"||n==="x"?a==="xAxis":n==="y"?a==="yAxis":!0},yZ=function(t,a,n,r,i){var o=a.props.children,l=Ys(o,vf).filter(function(d){return ASe(r,i,d.props.direction)});if(l&&l.length){var c=l.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var f=xn(m,n);if(Ft(f))return d;var h=Array.isArray(f)?[V2(f),Ac(f)]:[f,f],x=c.reduce(function(b,y){var w=xn(m,y,0),j=h[0]-Math.abs(Array.isArray(w)?w[0]:w),N=h[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(j,b[0]),Math.max(N,b[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},SSe=function(t,a,n,r,i){var o=a.map(function(l){return yZ(t,l,n,i,r)}).filter(function(l){return!Ft(l)});return o&&o.length?o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},wZ=function(t,a,n,r,i){var o=a.map(function(c){var d=c.props.dataKey;return n==="number"&&d&&yZ(t,c,d,r)||fg(t,d,n,i)});if(n==="number")return o.reduce(function(c,d){return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);var l={};return o.reduce(function(c,d){for(var m=0,f=d.length;m<f;m++)l[d[m]]||(l[d[m]]=!0,c.push(d[m]));return c},[])},PZ=function(t,a){return t==="horizontal"&&a==="xAxis"||t==="vertical"&&a==="yAxis"||t==="centric"&&a==="angleAxis"||t==="radial"&&a==="radiusAxis"},jZ=function(t,a,n,r){if(r)return t.map(function(c){return c.coordinate});var i,o,l=t.map(function(c){return c.coordinate===a&&(i=!0),c.coordinate===n&&(o=!0),c.coordinate});return i||l.push(a),o||l.push(n),l},gl=function(t,a,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,c=t.realScaleType==="scaleBand"?r.bandwidth()/2:2,d=(a||n)&&o==="category"&&r.bandwidth?r.bandwidth()/c:0;if(d=t.axisType==="angleAxis"&&l?.length>=2?Ws(l[0]-l[1])*2*d:d,a&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:r(h)+d,value:f,offset:d}});return m.filter(function(f){return!ff(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:r(f)+d,value:f,index:h,offset:d}}):r.ticks&&!n?r.ticks(t.tickCount).map(function(f){return{coordinate:r(f)+d,value:f,offset:d}}):r.domain().map(function(f,h){return{coordinate:r(f)+d,value:i?i[f]:f,index:h,offset:d}})},_S=new WeakMap,rv=function(t,a){if(typeof a!="function")return t;_S.has(t)||_S.set(t,new WeakMap);var n=_S.get(t);if(n.has(a))return n.get(a);var r=function(){t.apply(void 0,arguments),a.apply(void 0,arguments)};return n.set(a,r),r},kZ=function(t,a,n){var r=t.scale,i=t.type,o=t.layout,l=t.axisType;if(r==="auto")return o==="radial"&&l==="radiusAxis"?{scale:ex(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:Fy(),realScaleType:"linear"}:i==="category"&&a&&(a.indexOf("LineChart")>=0||a.indexOf("AreaChart")>=0||a.indexOf("ComposedChart")>=0&&!n)?{scale:mg(),realScaleType:"point"}:i==="category"?{scale:ex(),realScaleType:"band"}:{scale:Fy(),realScaleType:"linear"};if(xu(r)){var c="scale".concat(D2(r));return{scale:(tG[c]||mg)(),realScaleType:tG[c]?c:"point"}}return Gt(r)?{scale:r}:{scale:mg(),realScaleType:"point"}},xG=1e-4,NZ=function(t){var a=t.domain();if(!(!a||a.length<=2)){var n=a.length,r=t.range(),i=Math.min(r[0],r[1])-xG,o=Math.max(r[0],r[1])+xG,l=t(a[0]),c=t(a[n-1]);(l<i||l>o||c<i||c>o)&&t.domain([a[0],a[n-1]])}},CSe=function(t,a){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===a)return t[n].position;return null},TSe=function(t,a){if(!a||a.length!==2||!ut(a[0])||!ut(a[1]))return t;var n=Math.min(a[0],a[1]),r=Math.max(a[0],a[1]),i=[t[0],t[1]];return(!ut(t[0])||t[0]<n)&&(i[0]=n),(!ut(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},DSe=function(t){var a=t.length;if(!(a<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,l=0;l<a;++l){var c=ff(t[l][n][1])?t[l][n][0]:t[l][n][1];c>=0?(t[l][n][0]=i,t[l][n][1]=i+c,i=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+c,o=t[l][n][1])}},ESe=function(t){var a=t.length;if(!(a<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0;o<a;++o){var l=ff(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=i,t[o][n][1]=i+l,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},MSe={sign:DSe,expand:vwe,none:jm,silhouette:ywe,wiggle:wwe,positive:ESe},OSe=function(t,a,n){var r=a.map(function(l){return l.props.dataKey}),i=MSe[n],o=bwe().keys(r).value(function(l,c){return+xn(l,c,0)}).order(e4).offset(i);return o(t)},RSe=function(t,a,n,r,i,o){if(!t)return null;var l=o?a.reverse():a,c={},d=l.reduce(function(f,h){var x,b=(x=h.type)!==null&&x!==void 0&&x.defaultProps?Mn(Mn({},h.type.defaultProps),h.props):h.props,y=b.stackId,w=b.hide;if(w)return f;var j=b[n],N=f[j]||{hasStack:!1,stackGroups:{}};if(rs(y)){var k=N.stackGroups[y]||{numericAxisId:n,cateAxisId:r,items:[]};k.items.push(h),N.hasStack=!0,N.stackGroups[y]=k}else N.stackGroups[Zc("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[h]};return Mn(Mn({},f),{},mm({},j,N))},c),m={};return Object.keys(d).reduce(function(f,h){var x=d[h];if(x.hasStack){var b={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(y,w){var j=x.stackGroups[w];return Mn(Mn({},y),{},mm({},w,{numericAxisId:n,cateAxisId:r,items:j.items,stackedData:OSe(t,j.items,i)}))},b)}return Mn(Mn({},f),{},mm({},h,x))},m)},AZ=function(t,a){var n=a.realScaleType,r=a.type,i=a.tickCount,o=a.originalDomain,l=a.allowDecimals,c=n||a.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=KAe(d,i,l);return t.domain([V2(m),Ac(m)]),{niceTicks:m}}if(i&&r==="number"){var f=t.domain(),h=$Ae(f,i,l);return{niceTicks:h}}return null};function Mm(e){var t=e.axis,a=e.ticks,n=e.bandSize,r=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ft(r[t.dataKey])){var l=wy(a,"value",r[t.dataKey]);if(l)return l.coordinate+n/2}return a[i]?a[i].coordinate+n/2:null}var c=xn(r,Ft(o)?t.dataKey:o);return Ft(c)?null:t.scale(c)}var bG=function(t){var a=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(a.type==="category")return n[l]?n[l].coordinate+r:null;var c=xn(o,a.dataKey,a.domain[l]);return Ft(c)?null:a.scale(c)-i/2+r},zSe=function(t){var a=t.numericAxis,n=a.scale.domain();if(a.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},_Se=function(t,a){var n,r=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Mn(Mn({},t.type.defaultProps),t.props):t.props,i=r.stackId;if(rs(i)){var o=a[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},ISe=function(t){return t.reduce(function(a,n){return[V2(n.concat([a[0]]).filter(ut)),Ac(n.concat([a[1]]).filter(ut))]},[1/0,-1/0])},SZ=function(t,a,n){return Object.keys(t).reduce(function(r,i){var o=t[i],l=o.stackedData,c=l.reduce(function(d,m){var f=ISe(m.slice(a,n+1));return[Math.min(d[0],f[0]),Math.max(d[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],r[0]),Math.max(c[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},vG=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yG=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,N4=function(t,a,n){if(Gt(t))return t(a,n);if(!Array.isArray(t))return a;var r=[];if(ut(t[0]))r[0]=n?t[0]:Math.min(t[0],a[0]);else if(vG.test(t[0])){var i=+vG.exec(t[0])[1];r[0]=a[0]-i}else Gt(t[0])?r[0]=t[0](a[0]):r[0]=a[0];if(ut(t[1]))r[1]=n?t[1]:Math.max(t[1],a[1]);else if(yG.test(t[1])){var o=+yG.exec(t[1])[1];r[1]=a[1]+o}else Gt(t[1])?r[1]=t[1](a[1]):r[1]=a[1];return r},Qy=function(t,a,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&a&&a.length>=2){for(var i=WD(a,function(f){return f.coordinate}),o=1/0,l=1,c=i.length;l<c;l++){var d=i[l],m=i[l-1];o=Math.min((d.coordinate||0)-(m.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},wG=function(t,a,n){return!t||!t.length||qc(t,Rr(n,"type.defaultProps.domain"))?a:t},CZ=function(t,a){var n=t.type.defaultProps?Mn(Mn({},t.type.defaultProps),t.props):t.props,r=n.dataKey,i=n.name,o=n.unit,l=n.formatter,c=n.tooltipType,d=n.chartType,m=n.hide;return Mn(Mn({},Rt(t,!1)),{},{dataKey:r,unit:o,formatter:l,name:i||r,color:v8(t),value:xn(a,r),type:c,payload:a,chartType:d,hide:m})};function cx(e){"@babel/helpers - typeof";return cx=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},cx(e)}function PG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function ll(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?PG(Object(a),!0).forEach(function(n){TZ(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):PG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function TZ(e,t,a){return t=LSe(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function LSe(e){var t=FSe(e,"string");return cx(t)=="symbol"?t:t+""}function FSe(e,t){if(cx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(cx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BSe(e,t){return USe(e)||qSe(e,t)||HSe(e,t)||GSe()}function GSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 896In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HSe(e,t){if(e){if(typeof e=="string")return jG(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return jG(e,t)}}function jG(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function qSe(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function USe(e){if(Array.isArray(e))return e}var Wy=Math.PI/180,VSe=function(t){return t*180/Math.PI},mn=function(t,a,n,r){return{x:t+Math.cos(-Wy*r)*n,y:a+Math.sin(-Wy*r)*n}},DZ=function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(a-(n.top||0)-(n.bottom||0)))/2},QSe=function(t,a,n,r,i){var o=t.width,l=t.height,c=t.startAngle,d=t.endAngle,m=Ks(t.cx,o,o/2),f=Ks(t.cy,l,l/2),h=DZ(o,l,n),x=Ks(t.innerRadius,h,0),b=Ks(t.outerRadius,h,h*.8),y=Object.keys(a);return y.reduce(function(w,j){var N=a[j],k=N.domain,D=N.reversed,C;if(Ft(N.range))r==="angleAxis"?C=[c,d]:r==="radiusAxis"&&(C=[x,b]),D&&(C=[C[1],C[0]]);else{C=N.range;var S=C,A=BSe(S,2);c=A[0],d=A[1]}var E=kZ(N,i),R=E.realScaleType,F=E.scale;F.domain(k).range(C),NZ(F);var I=AZ(F,ll(ll({},N),{},{realScaleType:R})),H=ll(ll(ll({},N),I),{},{range:C,radius:b,realScaleType:R,scale:F,cx:m,cy:f,innerRadius:x,outerRadius:b,startAngle:c,endAngle:d});return ll(ll({},w),{},TZ({},j,H))},{})},WSe=function(t,a){var n=t.x,r=t.y,i=a.x,o=a.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))},KSe=function(t,a){var n=t.x,r=t.y,i=a.cx,o=a.cy,l=WSe({x:n,y:r},{x:i,y:o});if(l<=0)return{radius:l};var c=(n-i)/l,d=Math.acos(c);return r>o&&(d=2*Math.PI-d),{radius:l,angle:VSe(d),angleInRadian:d}},$Se=function(t){var a=t.startAngle,n=t.endAngle,r=Math.floor(a/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:a-o*360,endAngle:n-o*360}},XSe=function(t,a){var n=a.startAngle,r=a.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(i,o);return t+l*360},kG=function(t,a){var n=t.x,r=t.y,i=KSe({x:n,y:r},a),o=i.radius,l=i.angle,c=a.innerRadius,d=a.outerRadius;if(o<c||o>d)return!1;if(o===0)return!0;var m=$Se(a),f=m.startAngle,h=m.endAngle,x=l,b;if(f<=h){for(;x>h;)x-=360;for(;x<f;)x+=360;b=x>=f&&x<=h}else{for(;x>f;)x-=360;for(;x<h;)x+=360;b=x>=h&&x<=f}return b?ll(ll({},a),{},{radius:o,angle:XSe(x,a)}):null},EZ=function(t){return!P.isValidElement(t)&&!Gt(t)&&typeof t!="boolean"?t.className:""};function dx(e){"@babel/helpers - typeof";return dx=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},dx(e)}var YSe=["offset"];function ZSe(e){return a5e(e)||t5e(e)||e5e(e)||JSe()}function JSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 897In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e5e(e,t){if(e){if(typeof e=="string")return A4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return A4(e,t)}}function t5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a5e(e){if(Array.isArray(e))return A4(e)}function A4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function n5e(e,t){if(e==null)return{};var a=s5e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function s5e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function NG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function as(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?NG(Object(a),!0).forEach(function(n){r5e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):NG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function r5e(e,t,a){return t=i5e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i5e(e){var t=o5e(e,"string");return dx(t)=="symbol"?t:t+""}function o5e(e,t){if(dx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(dx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ux.apply(this,arguments)}var l5e=function(t){var a=t.value,n=t.formatter,r=Ft(t.children)?a:t.children;return Gt(n)?n(r):r},c5e=function(t,a){var n=Ws(a-t),r=Math.min(Math.abs(a-t),360);return n*r},d5e=function(t,a,n){var r=t.position,i=t.viewBox,o=t.offset,l=t.className,c=i,d=c.cx,m=c.cy,f=c.innerRadius,h=c.outerRadius,x=c.startAngle,b=c.endAngle,y=c.clockWise,w=(f+h)/2,j=c5e(x,b),N=j>=0?1:-1,k,D;r==="insideStart"?(k=x+N*o,D=y):r==="insideEnd"?(k=b-N*o,D=!y):r==="end"&&(k=b+N*o,D=y),D=j<=0?D:!D;var C=mn(d,m,w,k),S=mn(d,m,w,k+(D?1:-1)*359),A="M".concat(C.x,",").concat(C.y,` 898 A`).concat(w,",").concat(w,",0,1,").concat(D?0:1,`, 899 `).concat(S.x,",").concat(S.y),E=Ft(t.id)?Zc("recharts-radial-line-"):t.id;return ie.createElement("text",ux({},n,{dominantBaseline:"central",className:Yt("recharts-radial-bar-label",l)}),ie.createElement("defs",null,ie.createElement("path",{id:E,d:A})),ie.createElement("textPath",{xlinkHref:"#".concat(E)},a))},u5e=function(t){var a=t.viewBox,n=t.offset,r=t.position,i=a,o=i.cx,l=i.cy,c=i.innerRadius,d=i.outerRadius,m=i.startAngle,f=i.endAngle,h=(m+f)/2;if(r==="outside"){var x=mn(o,l,d+n,h),b=x.x,y=x.y;return{x:b,y,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var w=(c+d)/2,j=mn(o,l,w,h),N=j.x,k=j.y;return{x:N,y:k,textAnchor:"middle",verticalAnchor:"middle"}},p5e=function(t){var a=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=a,l=o.x,c=o.y,d=o.width,m=o.height,f=m>=0?1:-1,h=f*r,x=f>0?"end":"start",b=f>0?"start":"end",y=d>=0?1:-1,w=y*r,j=y>0?"end":"start",N=y>0?"start":"end";if(i==="top"){var k={x:l+d/2,y:c-f*r,textAnchor:"middle",verticalAnchor:x};return as(as({},k),n?{height:Math.max(c-n.y,0),width:d}:{})}if(i==="bottom"){var D={x:l+d/2,y:c+m+h,textAnchor:"middle",verticalAnchor:b};return as(as({},D),n?{height:Math.max(n.y+n.height-(c+m),0),width:d}:{})}if(i==="left"){var C={x:l-w,y:c+m/2,textAnchor:j,verticalAnchor:"middle"};return as(as({},C),n?{width:Math.max(C.x-n.x,0),height:m}:{})}if(i==="right"){var S={x:l+d+w,y:c+m/2,textAnchor:N,verticalAnchor:"middle"};return as(as({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:m}:{})}var A=n?{width:d,height:m}:{};return i==="insideLeft"?as({x:l+w,y:c+m/2,textAnchor:N,verticalAnchor:"middle"},A):i==="insideRight"?as({x:l+d-w,y:c+m/2,textAnchor:j,verticalAnchor:"middle"},A):i==="insideTop"?as({x:l+d/2,y:c+h,textAnchor:"middle",verticalAnchor:b},A):i==="insideBottom"?as({x:l+d/2,y:c+m-h,textAnchor:"middle",verticalAnchor:x},A):i==="insideTopLeft"?as({x:l+w,y:c+h,textAnchor:N,verticalAnchor:b},A):i==="insideTopRight"?as({x:l+d-w,y:c+h,textAnchor:j,verticalAnchor:b},A):i==="insideBottomLeft"?as({x:l+w,y:c+m-h,textAnchor:N,verticalAnchor:x},A):i==="insideBottomRight"?as({x:l+d-w,y:c+m-h,textAnchor:j,verticalAnchor:x},A):mf(i)&&(ut(i.x)||Xd(i.x))&&(ut(i.y)||Xd(i.y))?as({x:l+Ks(i.x,d),y:c+Ks(i.y,m),textAnchor:"end",verticalAnchor:"end"},A):as({x:l+d/2,y:c+m/2,textAnchor:"middle",verticalAnchor:"middle"},A)},m5e=function(t){return"cx"in t&&ut(t.cx)};function hs(e){var t=e.offset,a=t===void 0?5:t,n=n5e(e,YSe),r=as({offset:a},n),i=r.viewBox,o=r.position,l=r.value,c=r.children,d=r.content,m=r.className,f=m===void 0?"":m,h=r.textBreakAll;if(!i||Ft(l)&&Ft(c)&&!P.isValidElement(d)&&!Gt(d))return null;if(P.isValidElement(d))return P.cloneElement(d,r);var x;if(Gt(d)){if(x=P.createElement(d,r),P.isValidElement(x))return x}else x=l5e(r);var b=m5e(i),y=Rt(r,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return d5e(r,x,y);var w=b?u5e(r):p5e(r);return ie.createElement(bu,ux({className:Yt("recharts-label",f)},y,w,{breakAll:h}),x)}hs.displayName="Label";var MZ=function(t){var a=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,c=t.radius,d=t.innerRadius,m=t.outerRadius,f=t.x,h=t.y,x=t.top,b=t.left,y=t.width,w=t.height,j=t.clockWise,N=t.labelViewBox;if(N)return N;if(ut(y)&&ut(w)){if(ut(f)&&ut(h))return{x:f,y:h,width:y,height:w};if(ut(x)&&ut(b))return{x,y:b,width:y,height:w}}return ut(f)&&ut(h)?{x:f,y:h,width:0,height:0}:ut(a)&&ut(n)?{cx:a,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:d||0,outerRadius:m||c||l||0,clockWise:j}:t.viewBox?t.viewBox:{}},f5e=function(t,a){return t?t===!0?ie.createElement(hs,{key:"label-implicit",viewBox:a}):rs(t)?ie.createElement(hs,{key:"label-implicit",viewBox:a,value:t}):P.isValidElement(t)?t.type===hs?P.cloneElement(t,{key:"label-implicit",viewBox:a}):ie.createElement(hs,{key:"label-implicit",content:t,viewBox:a}):Gt(t)?ie.createElement(hs,{key:"label-implicit",content:t,viewBox:a}):mf(t)?ie.createElement(hs,ux({viewBox:a},t,{key:"label-implicit"})):null:null},h5e=function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=MZ(t),o=Ys(r,hs).map(function(c,d){return P.cloneElement(c,{viewBox:a||i,key:"label-".concat(d)})});if(!n)return o;var l=f5e(t.label,a||i);return[l].concat(ZSe(o))};hs.parseViewBox=MZ;hs.renderCallByParent=h5e;var IS,AG;function g5e(){if(AG)return IS;AG=1;function e(t){var a=t==null?0:t.length;return a?t[a-1]:void 0}return IS=e,IS}var x5e=g5e();const b5e=Fa(x5e);function px(e){"@babel/helpers - typeof";return px=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},px(e)}var v5e=["valueAccessor"],y5e=["data","dataKey","clockWise","id","textBreakAll"];function w5e(e){return N5e(e)||k5e(e)||j5e(e)||P5e()}function P5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 900In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j5e(e,t){if(e){if(typeof e=="string")return S4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return S4(e,t)}}function k5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N5e(e){if(Array.isArray(e))return S4(e)}function S4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Ky.apply(this,arguments)}function SG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function CG(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?SG(Object(a),!0).forEach(function(n){A5e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):SG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function A5e(e,t,a){return t=S5e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function S5e(e){var t=C5e(e,"string");return px(t)=="symbol"?t:t+""}function C5e(e,t){if(px(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(px(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TG(e,t){if(e==null)return{};var a=T5e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function T5e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}var D5e=function(t){return Array.isArray(t.value)?b5e(t.value):t.value};function Ki(e){var t=e.valueAccessor,a=t===void 0?D5e:t,n=TG(e,v5e),r=n.data,i=n.dataKey,o=n.clockWise,l=n.id,c=n.textBreakAll,d=TG(n,y5e);return!r||!r.length?null:ie.createElement(la,{className:"recharts-label-list"},r.map(function(m,f){var h=Ft(i)?a(m,f):xn(m&&m.payload,i),x=Ft(l)?{}:{id:"".concat(l,"-").concat(f)};return ie.createElement(hs,Ky({},Rt(m,!0),d,x,{parentViewBox:m.parentViewBox,value:h,textBreakAll:c,viewBox:hs.parseViewBox(Ft(o)?m:CG(CG({},m),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Ki.displayName="LabelList";function E5e(e,t){return e?e===!0?ie.createElement(Ki,{key:"labelList-implicit",data:t}):ie.isValidElement(e)||Gt(e)?ie.createElement(Ki,{key:"labelList-implicit",data:t,content:e}):mf(e)?ie.createElement(Ki,Ky({data:t},e,{key:"labelList-implicit"})):null:null}function M5e(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&a&&!e.label)return null;var n=e.children,r=Ys(n,Ki).map(function(o,l){return P.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!a)return r;var i=E5e(e.label,t);return[i].concat(w5e(r))}Ki.renderCallByParent=M5e;function mx(e){"@babel/helpers - typeof";return mx=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},mx(e)}function C4(){return C4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},C4.apply(this,arguments)}function DG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function EG(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?DG(Object(a),!0).forEach(function(n){O5e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):DG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function O5e(e,t,a){return t=R5e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function R5e(e){var t=z5e(e,"string");return mx(t)=="symbol"?t:t+""}function z5e(e,t){if(mx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(mx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _5e=function(t,a){var n=Ws(a-t),r=Math.min(Math.abs(a-t),359.999);return n*r},iv=function(t){var a=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,l=t.isExternal,c=t.cornerRadius,d=t.cornerIsExternal,m=c*(l?1:-1)+r,f=Math.asin(c/m)/Wy,h=d?i:i+o*f,x=mn(a,n,m,h),b=mn(a,n,r,h),y=d?i-o*f:i,w=mn(a,n,m*Math.cos(f*Wy),y);return{center:x,circleTangency:b,lineTangency:w,theta:f}},OZ=function(t){var a=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,c=_5e(o,l),d=o+c,m=mn(a,n,i,o),f=mn(a,n,i,d),h="M ".concat(m.x,",").concat(m.y,` 901 A `).concat(i,",").concat(i,`,0, 902 `).concat(+(Math.abs(c)>180),",").concat(+(o>d),`, 903 `).concat(f.x,",").concat(f.y,` 904 `);if(r>0){var x=mn(a,n,r,o),b=mn(a,n,r,d);h+="L ".concat(b.x,",").concat(b.y,` 905 A `).concat(r,",").concat(r,`,0, 906 `).concat(+(Math.abs(c)>180),",").concat(+(o<=d),`, 907 `).concat(x.x,",").concat(x.y," Z")}else h+="L ".concat(a,",").concat(n," Z");return h},I5e=function(t){var a=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,f=Ws(m-d),h=iv({cx:a,cy:n,radius:i,angle:d,sign:f,cornerRadius:o,cornerIsExternal:c}),x=h.circleTangency,b=h.lineTangency,y=h.theta,w=iv({cx:a,cy:n,radius:i,angle:m,sign:-f,cornerRadius:o,cornerIsExternal:c}),j=w.circleTangency,N=w.lineTangency,k=w.theta,D=c?Math.abs(d-m):Math.abs(d-m)-y-k;if(D<0)return l?"M ".concat(b.x,",").concat(b.y,` 908 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 909 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 910 `):OZ({cx:a,cy:n,innerRadius:r,outerRadius:i,startAngle:d,endAngle:m});var C="M ".concat(b.x,",").concat(b.y,` 911 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,` 912 A`).concat(i,",").concat(i,",0,").concat(+(D>180),",").concat(+(f<0),",").concat(j.x,",").concat(j.y,` 913 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(N.x,",").concat(N.y,` 914 `);if(r>0){var S=iv({cx:a,cy:n,radius:r,angle:d,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=S.circleTangency,E=S.lineTangency,R=S.theta,F=iv({cx:a,cy:n,radius:r,angle:m,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),I=F.circleTangency,H=F.lineTangency,_=F.theta,V=c?Math.abs(d-m):Math.abs(d-m)-R-_;if(V<0&&o===0)return"".concat(C,"L").concat(a,",").concat(n,"Z");C+="L".concat(H.x,",").concat(H.y,` 915 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(I.x,",").concat(I.y,` 916 A`).concat(r,",").concat(r,",0,").concat(+(V>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,` 917 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else C+="L".concat(a,",").concat(n,"Z");return C},L5e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},RZ=function(t){var a=EG(EG({},L5e),t),n=a.cx,r=a.cy,i=a.innerRadius,o=a.outerRadius,l=a.cornerRadius,c=a.forceCornerRadius,d=a.cornerIsExternal,m=a.startAngle,f=a.endAngle,h=a.className;if(o<i||m===f)return null;var x=Yt("recharts-sector",h),b=o-i,y=Ks(l,b,0,!0),w;return y>0&&Math.abs(m-f)<360?w=I5e({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,b/2),forceCornerRadius:c,cornerIsExternal:d,startAngle:m,endAngle:f}):w=OZ({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:m,endAngle:f}),ie.createElement("path",C4({},Rt(a,!0),{className:x,d:w,role:"img"}))};function fx(e){"@babel/helpers - typeof";return fx=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},fx(e)}function T4(){return T4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},T4.apply(this,arguments)}function MG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function OG(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?MG(Object(a),!0).forEach(function(n){F5e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):MG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function F5e(e,t,a){return t=B5e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function B5e(e){var t=G5e(e,"string");return fx(t)=="symbol"?t:t+""}function G5e(e,t){if(fx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(fx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RG={curveBasisClosed:owe,curveBasisOpen:lwe,curveBasis:iwe,curveBumpX:Q2e,curveBumpY:W2e,curveLinearClosed:cwe,curveLinear:M2,curveMonotoneX:dwe,curveMonotoneY:uwe,curveNatural:pwe,curveStep:mwe,curveStepAfter:hwe,curveStepBefore:fwe},ov=function(t){return t.x===+t.x&&t.y===+t.y},Sh=function(t){return t.x},Ch=function(t){return t.y},H5e=function(t,a){if(Gt(t))return t;var n="curve".concat(D2(t));return(n==="curveMonotone"||n==="curveBump")&&a?RG["".concat(n).concat(a==="vertical"?"Y":"X")]:RG[n]||M2},q5e=function(t){var a=t.type,n=a===void 0?"linear":a,r=t.points,i=r===void 0?[]:r,o=t.baseLine,l=t.layout,c=t.connectNulls,d=c===void 0?!1:c,m=H5e(n,l),f=d?i.filter(function(y){return ov(y)}):i,h;if(Array.isArray(o)){var x=d?o.filter(function(y){return ov(y)}):o,b=f.map(function(y,w){return OG(OG({},y),{},{base:x[w]})});return l==="vertical"?h=Z0().y(Ch).x1(Sh).x0(function(y){return y.base.x}):h=Z0().x(Sh).y1(Ch).y0(function(y){return y.base.y}),h.defined(ov).curve(m),h(b)}return l==="vertical"&&ut(o)?h=Z0().y(Ch).x1(Sh).x0(o):ut(o)?h=Z0().x(Sh).y1(Ch).y0(o):h=MX().x(Sh).y(Ch),h.defined(ov).curve(m),h(f)},Mc=function(t){var a=t.className,n=t.points,r=t.path,i=t.pathRef;if((!n||!n.length)&&!r)return null;var o=n&&n.length?q5e(t):r;return P.createElement("path",T4({},Rt(t,!1),Py(t),{className:Yt("recharts-curve",a),d:o,ref:i}))},LS={exports:{}},FS,zG;function U5e(){if(zG)return FS;zG=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return FS=e,FS}var BS,_G;function V5e(){if(_G)return BS;_G=1;var e=U5e();function t(){}function a(){}return a.resetWarningCache=t,BS=function(){function n(o,l,c,d,m,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function r(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:t};return i.PropTypes=i,i},BS}var IG;function Q5e(){return IG||(IG=1,LS.exports=V5e()()),LS.exports}var W5e=Q5e();const Ka=Fa(W5e);var K5e=Object.getOwnPropertyNames,$5e=Object.getOwnPropertySymbols,X5e=Object.prototype.hasOwnProperty;function LG(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function lv(e){return function(a,n,r){if(!a||!n||typeof a!="object"||typeof n!="object")return e(a,n,r);var i=r.cache,o=i.get(a),l=i.get(n);if(o&&l)return o===n&&l===a;i.set(a,n),i.set(n,a);var c=e(a,n,r);return i.delete(a),i.delete(n),c}}function Y5e(e){return e?.[Symbol.toStringTag]}
917function FG(e){return K5e(e).concat($5e(e))}var Z5e=Object.hasOwn||(function(e,t){return X5e.call(e,t)});function zu(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var J5e="__v",eCe="__o",tCe="_owner",BG=Object.getOwnPropertyDescriptor,GG=Object.keys;function aCe(e,t,a){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!a.equals(e[n],t[n],n,n,e,t,a))return!1;return!0}function nCe(e,t){return zu(e.getTime(),t.getTime())}function sCe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function rCe(e,t){return e===t}function HG(e,t,a){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var r=new Array(n),i=e.entries(),o,l,c=0;(o=i.next())&&!o.done;){for(var d=t.entries(),m=!1,f=0;(l=d.next())&&!l.done;){if(r[f]){f++;continue}var h=o.value,x=l.value;if(a.equals(h[0],x[0],c,f,e,t,a)&&a.equals(h[1],x[1],h[0],x[0],e,t,a)){m=r[f]=!0;break}f++}if(!m)return!1;c++}return!0}var iCe=zu;function oCe(e,t,a){var n=GG(e),r=n.length;if(GG(t).length!==r)return!1;for(;r-- >0;)if(!zZ(e,t,a,n[r]))return!1;return!0}function Th(e,t,a){var n=FG(e),r=n.length;if(FG(t).length!==r)return!1;for(var i,o,l;r-- >0;)if(i=n[r],!zZ(e,t,a,i)||(o=BG(e,i),l=BG(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function lCe(e,t){return zu(e.valueOf(),t.valueOf())}function cCe(e,t){return e.source===t.source&&e.flags===t.flags}function qG(e,t,a){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var r=new Array(n),i=e.values(),o,l;(o=i.next())&&!o.done;){for(var c=t.values(),d=!1,m=0;(l=c.next())&&!l.done;){if(!r[m]&&a.equals(o.value,l.value,o.value,l.value,e,t,a)){d=r[m]=!0;break}m++}if(!d)return!1}return!0}function dCe(e,t){var a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(e[a]!==t[a])return!1;return!0}function uCe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function zZ(e,t,a,n){return(n===tCe||n===eCe||n===J5e)&&(e.$$typeof||t.$$typeof)?!0:Z5e(t,n)&&a.equals(e[n],t[n],n,n,e,t,a)}var pCe="[object Arguments]",mCe="[object Boolean]",fCe="[object Date]",hCe="[object Error]",gCe="[object Map]",xCe="[object Number]",bCe="[object Object]",vCe="[object RegExp]",yCe="[object Set]",wCe="[object String]",PCe="[object URL]",jCe=Array.isArray,UG=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,VG=Object.assign,kCe=Object.prototype.toString.call.bind(Object.prototype.toString);function NCe(e){var t=e.areArraysEqual,a=e.areDatesEqual,n=e.areErrorsEqual,r=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,m=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,x=e.unknownTagComparators;return function(y,w,j){if(y===w)return!0;if(y==null||w==null)return!1;var N=typeof y;if(N!==typeof w)return!1;if(N!=="object")return N==="number"?o(y,w,j):N==="function"?r(y,w,j):!1;var k=y.constructor;if(k!==w.constructor)return!1;if(k===Object)return l(y,w,j);if(jCe(y))return t(y,w,j);if(UG!=null&&UG(y))return f(y,w,j);if(k===Date)return a(y,w,j);if(k===RegExp)return d(y,w,j);if(k===Map)return i(y,w,j);if(k===Set)return m(y,w,j);var D=kCe(y);if(D===fCe)return a(y,w,j);if(D===vCe)return d(y,w,j);if(D===gCe)return i(y,w,j);if(D===yCe)return m(y,w,j);if(D===bCe)return typeof y.then!="function"&&typeof w.then!="function"&&l(y,w,j);if(D===PCe)return h(y,w,j);if(D===hCe)return n(y,w,j);if(D===pCe)return l(y,w,j);if(D===mCe||D===xCe||D===wCe)return c(y,w,j);if(x){var C=x[D];if(!C){var S=Y5e(y);S&&(C=x[S])}if(C)return C(y,w,j)}return!1}}function ACe(e){var t=e.circular,a=e.createCustomConfig,n=e.strict,r={areArraysEqual:n?Th:aCe,areDatesEqual:nCe,areErrorsEqual:sCe,areFunctionsEqual:rCe,areMapsEqual:n?LG(HG,Th):HG,areNumbersEqual:iCe,areObjectsEqual:n?Th:oCe,arePrimitiveWrappersEqual:lCe,areRegExpsEqual:cCe,areSetsEqual:n?LG(qG,Th):qG,areTypedArraysEqual:n?Th:dCe,areUrlsEqual:uCe,unknownTagComparators:void 0};if(a&&(r=VG({},r,a(r))),t){var i=lv(r.areArraysEqual),o=lv(r.areMapsEqual),l=lv(r.areObjectsEqual),c=lv(r.areSetsEqual);r=VG({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return r}function SCe(e){return function(t,a,n,r,i,o,l){return e(t,a,l)}}
vendor: 62,044 bytes, lines 917-936
917function CCe(e){var t=e.circular,a=e.comparator,n=e.createState,r=e.equals,i=e.strict;if(n)return function(c,d){var m=n(),f=m.cache,h=f===void 0?t?new WeakMap:void 0:f,x=m.meta;return a(c,d,{cache:h,equals:r,meta:x,strict:i})};if(t)return function(c,d){return a(c,d,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};var o={cache:void 0,equals:r,meta:void 0,strict:i};return function(c,d){return a(c,d,o)}}var TCe=td();td({strict:!0});td({circular:!0});td({circular:!0,strict:!0});td({createInternalComparator:function(){return zu}});td({strict:!0,createInternalComparator:function(){return zu}});td({circular:!0,createInternalComparator:function(){return zu}});td({circular:!0,createInternalComparator:function(){return zu},strict:!0});function td(e){e===void 0&&(e={});var t=e.circular,a=t===void 0?!1:t,n=e.createInternalComparator,r=e.createState,i=e.strict,o=i===void 0?!1:i,l=ACe(e),c=NCe(l),d=n?n(c):SCe(c);return CCe({circular:a,comparator:c,createState:r,equals:d,strict:o})}function DCe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function QG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=-1,n=function r(i){a<0&&(a=i),i-a>t?(e(i),a=-1):DCe(r)};requestAnimationFrame(n)}function D4(e){"@babel/helpers - typeof";return D4=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},D4(e)}function ECe(e){return zCe(e)||RCe(e)||OCe(e)||MCe()}function MCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 918In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OCe(e,t){if(e){if(typeof e=="string")return WG(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return WG(e,t)}}function WG(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function RCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zCe(e){if(Array.isArray(e))return e}function _Ce(){var e={},t=function(){return null},a=!1,n=function r(i){if(!a){if(Array.isArray(i)){if(!i.length)return;var o=i,l=ECe(o),c=l[0],d=l.slice(1);if(typeof c=="number"){QG(r.bind(null,d),c);return}r(c),QG(r.bind(null,d));return}D4(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){a=!0},start:function(i){a=!1,n(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function hx(e){"@babel/helpers - typeof";return hx=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},hx(e)}function KG(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function $G(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?KG(Object(a),!0).forEach(function(n){_Z(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):KG(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function _Z(e,t,a){return t=ICe(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function ICe(e){var t=LCe(e,"string");return hx(t)==="symbol"?t:String(t)}function LCe(e,t){if(hx(e)!=="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(hx(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FCe=function(t,a){return[Object.keys(t),Object.keys(a)].reduce(function(n,r){return n.filter(function(i){return r.includes(i)})})},BCe=function(t){return t},GCe=function(t){return t.replace(/([A-Z])/g,function(a){return"-".concat(a.toLowerCase())})},hg=function(t,a){return Object.keys(a).reduce(function(n,r){return $G($G({},n),{},_Z({},r,t(r,a[r])))},{})},XG=function(t,a,n){return t.map(function(r){return"".concat(GCe(r)," ").concat(a,"ms ").concat(n)}).join(",")};function HCe(e,t){return VCe(e)||UCe(e,t)||IZ(e,t)||qCe()}function qCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 919In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UCe(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function VCe(e){if(Array.isArray(e))return e}function QCe(e){return $Ce(e)||KCe(e)||IZ(e)||WCe()}function WCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 920In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IZ(e,t){if(e){if(typeof e=="string")return E4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return E4(e,t)}}function KCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Ce(e){if(Array.isArray(e))return E4(e)}function E4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var $y=1e-4,LZ=function(t,a){return[0,3*t,3*a-6*t,3*t-3*a+1]},FZ=function(t,a){return t.map(function(n,r){return n*Math.pow(a,r)}).reduce(function(n,r){return n+r})},YG=function(t,a){return function(n){var r=LZ(t,a);return FZ(r,n)}},XCe=function(t,a){return function(n){var r=LZ(t,a),i=[].concat(QCe(r.map(function(o,l){return o*l}).slice(1)),[0]);return FZ(i,n)}},ZG=function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];var r=a[0],i=a[1],o=a[2],l=a[3];if(a.length===1)switch(a[0]){case"linear":r=0,i=0,o=1,l=1;break;case"ease":r=.25,i=.1,o=.25,l=1;break;case"ease-in":r=.42,i=0,o=1,l=1;break;case"ease-out":r=.42,i=0,o=.58,l=1;break;case"ease-in-out":r=0,i=0,o=.58,l=1;break;default:{var c=a[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var d=c[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),m=HCe(d,4);r=m[0],i=m[1],o=m[2],l=m[3]}}}var f=YG(r,o),h=YG(i,l),x=XCe(r,o),b=function(j){return j>1?1:j<0?0:j},y=function(j){for(var N=j>1?1:j,k=N,D=0;D<8;++D){var C=f(k)-N,S=x(k);if(Math.abs(C-N)<$y||S<$y)return h(k);k=b(k-C/S)}return h(k)};return y.isStepper=!1,y},YCe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.stiff,n=a===void 0?100:a,r=t.damping,i=r===void 0?8:r,o=t.dt,l=o===void 0?17:o,c=function(m,f,h){var x=-(m-f)*n,b=h*i,y=h+(x-b)*l/1e3,w=h*l/1e3+m;return Math.abs(w-f)<$y&&Math.abs(y)<$y?[f,0]:[w,y]};return c.isStepper=!0,c.dt=l,c},ZCe=function(){for(var t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];var r=a[0];if(typeof r=="string")switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ZG(r);case"spring":return YCe();default:if(r.split("(")[0]==="cubic-bezier")return ZG(r)}return typeof r=="function"?r:null};function gx(e){"@babel/helpers - typeof";return gx=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},gx(e)}function JG(e){return t4e(e)||e4e(e)||BZ(e)||JCe()}function JCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 921In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function t4e(e){if(Array.isArray(e))return O4(e)}function eH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Ns(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?eH(Object(a),!0).forEach(function(n){M4(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):eH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function M4(e,t,a){return t=a4e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function a4e(e){var t=n4e(e,"string");return gx(t)==="symbol"?t:String(t)}function n4e(e,t){if(gx(e)!=="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(gx(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s4e(e,t){return o4e(e)||i4e(e,t)||BZ(e,t)||r4e()}function r4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 922In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BZ(e,t){if(e){if(typeof e=="string")return O4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return O4(e,t)}}function O4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function i4e(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function o4e(e){if(Array.isArray(e))return e}var Xy=function(t,a,n){return t+(a-t)*n},R4=function(t){var a=t.from,n=t.to;return a!==n},l4e=function e(t,a,n){var r=hg(function(i,o){if(R4(o)){var l=t(o.from,o.to,o.velocity),c=s4e(l,2),d=c[0],m=c[1];return Ns(Ns({},o),{},{from:d,velocity:m})}return o},a);return n<1?hg(function(i,o){return R4(o)?Ns(Ns({},o),{},{velocity:Xy(o.velocity,r[i].velocity,n),from:Xy(o.from,r[i].from,n)}):o},a):e(t,r,n-1)};const c4e=(function(e,t,a,n,r){var i=FCe(e,t),o=i.reduce(function(w,j){return Ns(Ns({},w),{},M4({},j,[e[j],t[j]]))},{}),l=i.reduce(function(w,j){return Ns(Ns({},w),{},M4({},j,{from:e[j],velocity:0,to:t[j]}))},{}),c=-1,d,m,f=function(){return null},h=function(){return hg(function(j,N){return N.from},l)},x=function(){return!Object.values(l).filter(R4).length},b=function(j){d||(d=j);var N=j-d,k=N/a.dt;l=l4e(a,l,k),r(Ns(Ns(Ns({},e),t),h())),d=j,x()||(c=requestAnimationFrame(f))},y=function(j){m||(m=j);var N=(j-m)/n,k=hg(function(C,S){return Xy.apply(void 0,JG(S).concat([a(N)]))},o);if(r(Ns(Ns(Ns({},e),t),k)),N<1)c=requestAnimationFrame(f);else{var D=hg(function(C,S){return Xy.apply(void 0,JG(S).concat([a(1)]))},o);r(Ns(Ns(Ns({},e),t),D))}};return f=a.isStepper?b:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}});function Om(e){"@babel/helpers - typeof";return Om=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},Om(e)}var d4e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function u4e(e,t){if(e==null)return{};var a=p4e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function p4e(e,t){if(e==null)return{};var a={},n=Object.keys(e),r,i;for(i=0;i<n.length;i++)r=n[i],!(t.indexOf(r)>=0)&&(a[r]=e[r]);return a}function GS(e){return g4e(e)||h4e(e)||f4e(e)||m4e()}function m4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 923In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f4e(e,t){if(e){if(typeof e=="string")return z4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return z4(e,t)}}function h4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function g4e(e){if(Array.isArray(e))return z4(e)}function z4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function tH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Di(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?tH(Object(a),!0).forEach(function(n){Vh(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):tH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Vh(e,t,a){return t=GZ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function x4e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b4e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GZ(n.key),n)}}function v4e(e,t,a){return t&&b4e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GZ(e){var t=y4e(e,"string");return Om(t)==="symbol"?t:String(t)}function y4e(e,t){if(Om(e)!=="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Om(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w4e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_4(e,t)}function _4(e,t){return _4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},_4(e,t)}function P4e(e){var t=j4e();return function(){var n=Yy(e),r;if(t){var i=Yy(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return I4(this,r)}}function I4(e,t){if(t&&(Om(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L4(e)}function L4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j4e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Yy(e)}var vi=(function(e){w4e(a,e);var t=P4e(a);function a(n,r){var i;x4e(this,a),i=t.call(this,n,r);var o=i.props,l=o.isActive,c=o.attributeName,d=o.from,m=o.to,f=o.steps,h=o.children,x=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(L4(i)),i.changeStyle=i.changeStyle.bind(L4(i)),!l||x<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:m}),I4(i);if(f&&f.length)i.state={style:f[0].style};else if(d){if(typeof h=="function")return i.state={style:d},I4(i);i.state={style:c?Vh({},c,d):d}}else i.state={style:{}};return i}return v4e(a,[{key:"componentDidMount",value:function(){var r=this.props,i=r.isActive,o=r.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(r){var i=this.props,o=i.isActive,l=i.canBegin,c=i.attributeName,d=i.shouldReAnimate,m=i.to,f=i.from,h=this.state.style;if(l){if(!o){var x={style:c?Vh({},c,m):m};this.state&&h&&(c&&h[c]!==m||!c&&h!==m)&&this.setState(x);return}if(!(TCe(r.to,m)&&r.canBegin&&r.isActive)){var b=!r.canBegin||!r.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=b||d?f:r.to;if(this.state&&h){var w={style:c?Vh({},c,y):y};(c&&h[c]!==y||!c&&h!==y)&&this.setState(w)}this.runAnimation(Di(Di({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var r=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),r&&r()}},{key:"handleStyleChange",value:function(r){this.changeStyle(r)}},{key:"changeStyle",value:function(r){this.mounted&&this.setState({style:r})}},{key:"runJSAnimation",value:function(r){var i=this,o=r.from,l=r.to,c=r.duration,d=r.easing,m=r.begin,f=r.onAnimationEnd,h=r.onAnimationStart,x=c4e(o,l,ZCe(d),c,this.changeStyle),b=function(){i.stopJSAnimation=x()};this.manager.start([h,m,b,c,f])}},{key:"runStepAnimation",value:function(r){var i=this,o=r.steps,l=r.begin,c=r.onAnimationStart,d=o[0],m=d.style,f=d.duration,h=f===void 0?0:f,x=function(y,w,j){if(j===0)return y;var N=w.duration,k=w.easing,D=k===void 0?"ease":k,C=w.style,S=w.properties,A=w.onAnimationEnd,E=j>0?o[j-1]:w,R=S||Object.keys(C);if(typeof D=="function"||D==="spring")return[].concat(GS(y),[i.runJSAnimation.bind(i,{from:E.style,to:C,duration:N,easing:D}),N]);var F=XG(R,N,D),I=Di(Di(Di({},E.style),C),{},{transition:F});return[].concat(GS(y),[I,N,A]).filter(BCe)};return this.manager.start([c].concat(GS(o.reduce(x,[m,Math.max(h,l)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=_Ce());var i=r.begin,o=r.duration,l=r.attributeName,c=r.to,d=r.easing,m=r.onAnimationStart,f=r.onAnimationEnd,h=r.steps,x=r.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(r);return}if(h.length>1){this.runStepAnimation(r);return}var y=l?Vh({},l,c):c,w=XG(Object.keys(y),o,d);b.start([m,i,Di(Di({},y),{},{transition:w}),o,f])}},{key:"render",value:function(){var r=this.props,i=r.children;r.begin;var o=r.duration;r.attributeName,r.easing;var l=r.isActive;r.steps,r.from,r.to,r.canBegin,r.onAnimationEnd,r.shouldReAnimate,r.onAnimationReStart;var c=u4e(r,d4e),d=P.Children.count(i),m=this.state.style;if(typeof i=="function")return i(m);if(!l||d===0||o<=0)return i;var f=function(x){var b=x.props,y=b.style,w=y===void 0?{}:y,j=b.className,N=P.cloneElement(x,Di(Di({},c),{},{style:Di(Di({},w),m),className:j}));return N};return d===1?f(P.Children.only(i)):ie.createElement("div",null,P.Children.map(i,function(h){return f(h)}))}}]),a})(P.PureComponent);vi.displayName="Animate";vi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};vi.propTypes={from:Ka.oneOfType([Ka.object,Ka.string]),to:Ka.oneOfType([Ka.object,Ka.string]),attributeName:Ka.string,duration:Ka.number,begin:Ka.number,easing:Ka.oneOfType([Ka.string,Ka.func]),steps:Ka.arrayOf(Ka.shape({duration:Ka.number.isRequired,style:Ka.object.isRequired,easing:Ka.oneOfType([Ka.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ka.func]),properties:Ka.arrayOf("string"),onAnimationEnd:Ka.func})),children:Ka.oneOfType([Ka.node,Ka.func]),isActive:Ka.bool,canBegin:Ka.bool,onAnimationEnd:Ka.func,shouldReAnimate:Ka.bool,onAnimationStart:Ka.func,onAnimationReStart:Ka.func};function xx(e){"@babel/helpers - typeof";return xx=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},xx(e)}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Zy.apply(this,arguments)}function k4e(e,t){return C4e(e)||S4e(e,t)||A4e(e,t)||N4e()}function N4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 924In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A4e(e,t){if(e){if(typeof e=="string")return aH(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return aH(e,t)}}function aH(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function S4e(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function C4e(e){if(Array.isArray(e))return e}function nH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function sH(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?nH(Object(a),!0).forEach(function(n){T4e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):nH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function T4e(e,t,a){return t=D4e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function D4e(e){var t=E4e(e,"string");return xx(t)=="symbol"?t:t+""}function E4e(e,t){if(xx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(xx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rH=function(t,a,n,r,i){var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),l=r>=0?1:-1,c=n>=0?1:-1,d=r>=0&&n>=0||r<0&&n<0?1:0,m;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,x=4;h<x;h++)f[h]=i[h]>o?o:i[h];m="M".concat(t,",").concat(a+l*f[0]),f[0]>0&&(m+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(d,",").concat(t+c*f[0],",").concat(a)),m+="L ".concat(t+n-c*f[1],",").concat(a),f[1]>0&&(m+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(d,`, 925 `).concat(t+n,",").concat(a+l*f[1])),m+="L ".concat(t+n,",").concat(a+r-l*f[2]),f[2]>0&&(m+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(d,`, 926 `).concat(t+n-c*f[2],",").concat(a+r)),m+="L ".concat(t+c*f[3],",").concat(a+r),f[3]>0&&(m+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(d,`, 927 `).concat(t,",").concat(a+r-l*f[3])),m+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);m="M ".concat(t,",").concat(a+l*b,` 928 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+c*b,",").concat(a,` 929 L `).concat(t+n-c*b,",").concat(a,` 930 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+n,",").concat(a+l*b,` 931 L `).concat(t+n,",").concat(a+r-l*b,` 932 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+n-c*b,",").concat(a+r,` 933 L `).concat(t+c*b,",").concat(a+r,` 934 A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t,",").concat(a+r-l*b," Z")}else m="M ".concat(t,",").concat(a," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return m},M4e=function(t,a){if(!t||!a)return!1;var n=t.x,r=t.y,i=a.x,o=a.y,l=a.width,c=a.height;if(Math.abs(l)>0&&Math.abs(c)>0){var d=Math.min(i,i+l),m=Math.max(i,i+l),f=Math.min(o,o+c),h=Math.max(o,o+c);return n>=d&&n<=m&&r>=f&&r<=h}return!1},O4e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y8=function(t){var a=sH(sH({},O4e),t),n=P.useRef(),r=P.useState(-1),i=k4e(r,2),o=i[0],l=i[1];P.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var D=n.current.getTotalLength();D&&l(D)}catch{}},[]);var c=a.x,d=a.y,m=a.width,f=a.height,h=a.radius,x=a.className,b=a.animationEasing,y=a.animationDuration,w=a.animationBegin,j=a.isAnimationActive,N=a.isUpdateAnimationActive;if(c!==+c||d!==+d||m!==+m||f!==+f||m===0||f===0)return null;var k=Yt("recharts-rectangle",x);return N?ie.createElement(vi,{canBegin:o>0,from:{width:m,height:f,x:c,y:d},to:{width:m,height:f,x:c,y:d},duration:y,animationEasing:b,isActive:N},function(D){var C=D.width,S=D.height,A=D.x,E=D.y;return ie.createElement(vi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:y,isActive:j,easing:b},ie.createElement("path",Zy({},Rt(a,!0),{className:k,d:rH(A,E,C,S,h),ref:n})))}):ie.createElement("path",Zy({},Rt(a,!0),{className:k,d:rH(c,d,m,f,h)}))},R4e=["points","className","baseLinePoints","connectNulls"];function Jp(){return Jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Jp.apply(this,arguments)}function z4e(e,t){if(e==null)return{};var a=_4e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _4e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function iH(e){return B4e(e)||F4e(e)||L4e(e)||I4e()}function I4e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 935In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L4e(e,t){if(e){if(typeof e=="string")return F4(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return F4(e,t)}}function F4e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B4e(e){if(Array.isArray(e))return F4(e)}function F4(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var oH=function(t){return t&&t.x===+t.x&&t.y===+t.y},G4e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=[[]];return t.forEach(function(n){oH(n)?a[a.length-1].push(n):a[a.length-1].length>0&&a.push([])}),oH(t[0])&&a[a.length-1].push(t[0]),a[a.length-1].length<=0&&(a=a.slice(0,-1)),a},gg=function(t,a){var n=G4e(t);a&&(n=[n.reduce(function(i,o){return[].concat(iH(i),iH(o))},[])]);var r=n.map(function(i){return i.reduce(function(o,l,c){return"".concat(o).concat(c===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(r,"Z"):r},H4e=function(t,a,n){var r=gg(t,n);return"".concat(r.slice(-1)==="Z"?r.slice(0,-1):r,"L").concat(gg(a.reverse(),n).slice(1))},q4e=function(t){var a=t.points,n=t.className,r=t.baseLinePoints,i=t.connectNulls,o=z4e(t,R4e);if(!a||!a.length)return null;var l=Yt("recharts-polygon",n);if(r&&r.length){var c=o.stroke&&o.stroke!=="none",d=H4e(a,r,i);return ie.createElement("g",{className:l},ie.createElement("path",Jp({},Rt(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",stroke:"none",d})),c?ie.createElement("path",Jp({},Rt(o,!0),{fill:"none",d:gg(a,i)})):null,c?ie.createElement("path",Jp({},Rt(o,!0),{fill:"none",d:gg(r,i)})):null)}var m=gg(a,i);return ie.createElement("path",Jp({},Rt(o,!0),{fill:m.slice(-1)==="Z"?o.fill:"none",className:l,d:m}))};function B4(){return B4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},B4.apply(this,arguments)}var cb=function(t){var a=t.cx,n=t.cy,r=t.r,i=t.className,o=Yt("recharts-dot",i);return a===+a&&n===+n&&r===+r?P.createElement("circle",B4({},Rt(t,!1),Py(t),{className:o,cx:a,cy:n,r})):null};function bx(e){"@babel/helpers - typeof";return bx=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},bx(e)}var U4e=["x","y","top","left","width","height","className"];function G4(){return G4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},G4.apply(this,arguments)}function lH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function V4e(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?lH(Object(a),!0).forEach(function(n){Q4e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):lH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Q4e(e,t,a){return t=W4e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function W4e(e){var t=K4e(e,"string");return bx(t)=="symbol"?t:t+""}function K4e(e,t){if(bx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(bx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $4e(e,t){if(e==null)return{};var a=X4e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function X4e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}var Y4e=function(t,a,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(a,"h").concat(n)},Z4e=function(t){var a=t.x,n=a===void 0?0:a,r=t.y,i=r===void 0?0:r,o=t.top,l=o===void 0?0:o,c=t.left,d=c===void 0?0:c,m=t.width,f=m===void 0?0:m,h=t.height,x=h===void 0?0:h,b=t.className,y=$4e(t,U4e),w=V4e({x:n,y:i,top:l,left:d,width:f,height:x},y);return!ut(n)||!ut(i)||!ut(f)||!ut(x)||!ut(l)||!ut(d)?null:ie.createElement("path",G4({},Rt(w,!0),{className:Yt("recharts-cross",b),d:Y4e(n,i,f,x,l,d)}))},HS,cH;function J4e(){if(cH)return HS;cH=1;var e=U2(),t=aZ(),a=Ro();function n(r,i){return r&&r.length?e(r,a(i,2),t):void 0}return HS=n,HS}var eTe=J4e();const tTe=Fa(eTe);var qS,dH;function aTe(){if(dH)return qS;dH=1;var e=U2(),t=Ro(),a=nZ();function n(r,i){return r&&r.length?e(r,t(i,2),a):void 0}return qS=n,qS}var nTe=aTe();const sTe=Fa(nTe);var rTe=["cx","cy","angle","ticks","axisLine"],iTe=["ticks","tick","angle","tickFormatter","stroke"];function Rm(e){"@babel/helpers - typeof";return Rm=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},Rm(e)}function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},xg.apply(this,arguments)}function uH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Dd(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?uH(Object(a),!0).forEach(function(n){K2(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):uH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function pH(e,t){if(e==null)return{};var a=oTe(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function oTe(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function lTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mH(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qZ(n.key),n)}}function cTe(e,t,a){return t&&mH(e.prototype,t),a&&mH(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function dTe(e,t,a){return t=Jy(t),uTe(e,HZ()?Reflect.construct(t,a||[],Jy(e).constructor):t.apply(e,a))}function uTe(e,t){if(t&&(Rm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pTe(e)}function pTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HZ=function(){return!!e})()}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},Jy(e)}function mTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H4(e,t)}function H4(e,t){return H4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},H4(e,t)}function K2(e,t,a){return t=qZ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function qZ(e){var t=fTe(e,"string");return Rm(t)=="symbol"?t:t+""}function fTe(e,t){if(Rm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Rm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $2=(function(e){function t(){return lTe(this,t),dTe(this,t,arguments)}return mTe(t,e),cTe(t,[{key:"getTickValueCoord",value:function(n){var r=n.coordinate,i=this.props,o=i.angle,l=i.cx,c=i.cy;return mn(l,c,r,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,r;switch(n){case"left":r="end";break;case"right":r="start";break;default:r="middle";break}return r}},{key:"getViewBox",value:function(){var n=this.props,r=n.cx,i=n.cy,o=n.angle,l=n.ticks,c=tTe(l,function(m){return m.coordinate||0}),d=sTe(l,function(m){return m.coordinate||0});return{cx:r,cy:i,startAngle:o,endAngle:o,innerRadius:d.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,r=n.cx,i=n.cy,o=n.angle,l=n.ticks,c=n.axisLine,d=pH(n,rTe),m=l.reduce(function(b,y){return[Math.min(b[0],y.coordinate),Math.max(b[1],y.coordinate)]},[1/0,-1/0]),f=mn(r,i,m[0],o),h=mn(r,i,m[1],o),x=Dd(Dd(Dd({},Rt(d,!1)),{},{fill:"none"},Rt(c,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return ie.createElement("line",xg({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var n=this,r=this.props,i=r.ticks,o=r.tick,l=r.angle,c=r.tickFormatter,d=r.stroke,m=pH(r,iTe),f=this.getTickTextAnchor(),h=Rt(m,!1),x=Rt(o,!1),b=i.map(function(y,w){var j=n.getTickValueCoord(y),N=Dd(Dd(Dd(Dd({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(j.x,", ").concat(j.y,")")},h),{},{stroke:"none",fill:d},x),{},{index:w},j),{},{payload:y});return ie.createElement(la,xg({className:Yt("recharts-polar-radius-axis-tick",EZ(o)),key:"tick-".concat(y.coordinate)},Hc(n.props,y,w)),t.renderTickItem(o,N,c?c(y.value,w):y.value))});return ie.createElement(la,{className:"recharts-polar-radius-axis-ticks"},b)}},{key:"render",value:function(){var n=this.props,r=n.ticks,i=n.axisLine,o=n.tick;return!r||!r.length?null:ie.createElement(la,{className:Yt("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),hs.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,r,i){var o;return ie.isValidElement(n)?o=ie.cloneElement(n,r):Gt(n)?o=n(r):o=ie.createElement(bu,xg({},r,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])})(P.PureComponent);K2($2,"displayName","PolarRadiusAxis");K2($2,"axisType","radiusAxis");K2($2,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function zm(e){"@babel/helpers - typeof";return zm=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},zm(e)}function Vd(){return Vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Vd.apply(this,arguments)}function fH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Ed(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?fH(Object(a),!0).forEach(function(n){X2(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function hTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hH(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VZ(n.key),n)}}function gTe(e,t,a){return t&&hH(e.prototype,t),a&&hH(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function xTe(e,t,a){return t=e1(t),bTe(e,UZ()?Reflect.construct(t,a||[],e1(e).constructor):t.apply(e,a))}function bTe(e,t){if(t&&(zm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vTe(e)}function vTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UZ=function(){return!!e})()}function e1(e){return e1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},e1(e)}function yTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q4(e,t)}function q4(e,t){return q4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},q4(e,t)}function X2(e,t,a){return t=VZ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function VZ(e){var t=wTe(e,"string");return zm(t)=="symbol"?t:t+""}function wTe(e,t){if(zm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(zm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PTe=Math.PI/180,gH=1e-5,Y2=(function(e){function t(){return hTe(this,t),xTe(this,t,arguments)}return yTe(t,e),gTe(t,[{key:"getTickLineCoord",value:function(n){var r=this.props,i=r.cx,o=r.cy,l=r.radius,c=r.orientation,d=r.tickSize,m=d||8,f=mn(i,o,l,n.coordinate),h=mn(i,o,l+(c==="inner"?-1:1)*m,n.coordinate);return{x1:f.x,y1:f.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var r=this.props.orientation,i=Math.cos(-n.coordinate*PTe),o;return i>gH?o=r==="outer"?"start":"end":i<-gH?o=r==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,r=n.cx,i=n.cy,o=n.radius,l=n.axisLine,c=n.axisLineType,d=Ed(Ed({},Rt(this.props,!1)),{},{fill:"none"},Rt(l,!1));if(c==="circle")return ie.createElement(cb,Vd({className:"recharts-polar-angle-axis-line"},d,{cx:r,cy:i,r:o}));var m=this.props.ticks,f=m.map(function(h){return mn(r,i,o,h.coordinate)});return ie.createElement(q4e,Vd({className:"recharts-polar-angle-axis-line"},d,{points:f}))}},{key:"renderTicks",value:function(){var n=this,r=this.props,i=r.ticks,o=r.tick,l=r.tickLine,c=r.tickFormatter,d=r.stroke,m=Rt(this.props,!1),f=Rt(o,!1),h=Ed(Ed({},m),{},{fill:"none"},Rt(l,!1)),x=i.map(function(b,y){var w=n.getTickLineCoord(b),j=n.getTickTextAnchor(b),N=Ed(Ed(Ed({textAnchor:j},m),{},{stroke:"none",fill:d},f),{},{index:y,payload:b,x:w.x2,y:w.y2});return ie.createElement(la,Vd({className:Yt("recharts-polar-angle-axis-tick",EZ(o)),key:"tick-".concat(b.coordinate)},Hc(n.props,b,y)),l&&ie.createElement("line",Vd({className:"recharts-polar-angle-axis-tick-line"},h,w)),o&&t.renderTickItem(o,N,c?c(b.value,y):b.value))});return ie.createElement(la,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var n=this.props,r=n.ticks,i=n.radius,o=n.axisLine;return i<=0||!r||!r.length?null:ie.createElement(la,{className:Yt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,r,i){var o;return ie.isValidElement(n)?o=ie.cloneElement(n,r):Gt(n)?o=n(r):o=ie.createElement(bu,Vd({},r,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])})(P.PureComponent);X2(Y2,"displayName","PolarAngleAxis");X2(Y2,"axisType","angleAxis");X2(Y2,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var US,xH;function jTe(){if(xH)return US;xH=1;var e=tY(),t=e(Object.getPrototypeOf,Object);return US=t,US}var VS,bH;function kTe(){if(bH)return VS;bH=1;var e=zl(),t=jTe(),a=_l(),n="[object Object]",r=Function.prototype,i=Object.prototype,o=r.toString,l=i.hasOwnProperty,c=o.call(Object);function d(m){if(!a(m)||e(m)!=n)return!1;var f=t(m);if(f===null)return!0;var h=l.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return VS=d,VS}var NTe=kTe();const ATe=Fa(NTe);var QS,vH;function STe(){if(vH)return QS;vH=1;var e=zl(),t=_l(),a="[object Boolean]";function n(r){return r===!0||r===!1||t(r)&&e(r)==a}return QS=n,QS}var CTe=STe();const TTe=Fa(CTe);function vx(e){"@babel/helpers - typeof";return vx=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},vx(e)}function t1(){return t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},t1.apply(this,arguments)}function DTe(e,t){return RTe(e)||OTe(e,t)||MTe(e,t)||ETe()}function ETe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 936In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MTe(e,t){if(e){if(typeof e=="string")return yH(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return yH(e,t)}}function yH(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function OTe(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function RTe(e){if(Array.isArray(e))return e}function wH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function PH(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?wH(Object(a),!0).forEach(function(n){zTe(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):wH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function zTe(e,t,a){return t=_Te(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _Te(e){var t=ITe(e,"string");return vx(t)=="symbol"?t:t+""}function ITe(e,t){if(vx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(vx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jH=function(t,a,n,r,i){var o=n-r,l;return l="M ".concat(t,",").concat(a),l+="L ".concat(t+n,",").concat(a),l+="L ".concat(t+n-o/2,",").concat(a+i),l+="L ".concat(t+n-o/2-r,",").concat(a+i),l+="L ".concat(t,",").concat(a," Z"),l},LTe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},FTe=function(t){var a=PH(PH({},LTe),t),n=P.useRef(),r=P.useState(-1),i=DTe(r,2),o=i[0],l=i[1];P.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var k=n.current.getTotalLength();k&&l(k)}catch{}},[]);var c=a.x,d=a.y,m=a.upperWidth,f=a.lowerWidth,h=a.height,x=a.className,b=a.animationEasing,y=a.animationDuration,w=a.animationBegin,j=a.isUpdateAnimationActive;if(c!==+c||d!==+d||m!==+m||f!==+f||h!==+h||m===0&&f===0||h===0)return null;var N=Yt("recharts-trapezoid",x);return j?ie.createElement(vi,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:d},to:{upperWidth:m,lowerWidth:f,height:h,x:c,y:d},duration:y,animationEasing:b,isActive:j},function(k){var D=k.upperWidth,C=k.lowerWidth,S=k.height,A=k.x,E=k.y;return ie.createElement(vi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:y,easing:b},ie.createElement("path",t1({},Rt(a,!0),{className:N,d:jH(A,E,D,C,S),ref:n})))}):ie.createElement("g",null,ie.createElement("path",t1({},Rt(a,!0),{className:N,d:jH(c,d,m,f,h)})))},BTe=["option","shapeType","propTransformer","activeClassName","isActive"];function yx(e){"@babel/helpers - typeof";return yx=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},yx(e)}function GTe(e,t){if(e==null)return{};var a=HTe(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function HTe(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function kH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function a1(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?kH(Object(a),!0).forEach(function(n){qTe(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):kH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function qTe(e,t,a){return t=UTe(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function UTe(e){var t=VTe(e,"string");return yx(t)=="symbol"?t:t+""}function VTe(e,t){if(yx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(yx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QTe(e,t){return a1(a1({},t),e)}function WTe(e,t){return e==="symbols"}function NH(e){var t=e.shapeType,a=e.elementProps;switch(t){case"rectangle":return ie.createElement(y8,a);case"trapezoid":return ie.createElement(FTe,a);case"sector":return ie.createElement(RZ,a);case"symbols":if(WTe(t))return ie.createElement(R2,a);break;default:return null}}function KTe(e){return P.isValidElement(e)?e.props:e}function n1(e){var t=e.option,a=e.shapeType,n=e.propTransformer,r=n===void 0?QTe:n,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,c=GTe(e,BTe),d;if(P.isValidElement(t))d=P.cloneElement(t,a1(a1({},c),KTe(t)));else if(Gt(t))d=t(c);else if(ATe(t)&&!TTe(t)){var m=r(t,c);d=ie.createElement(NH,{shapeType:a,elementProps:m})}else{var f=c;d=ie.createElement(NH,{shapeType:a,elementProps:f})}return l?ie.createElement(la,{className:o},d):d}function Z2(e,t){return t!=null&&"trapezoids"in e.props}function J2(e,t){return t!=null&&"sectors"in e.props}function wx(e,t){return t!=null&&"points"in e.props}function $Te(e,t){var a,n,r=e.x===(t==null||(a=t.labelViewBox)===null||a===void 0?void 0:a.x)||e.x===t.x,i=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return r&&i}function XTe(e,t){var a=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return a&&n}function YTe(e,t){var a=e.x===t.x,n=e.y===t.y,r=e.z===t.z;return a&&n&&r}function ZTe(e,t){var a;return Z2(e,t)?a=$Te:J2(e,t)?a=XTe:wx(e,t)&&(a=YTe),a}function JTe(e,t){var a;return Z2(e,t)?a="trapezoids":J2(e,t)?a="sectors":wx(e,t)&&(a="points"),a}function e6e(e,t){if(Z2(e,t)){var a;return(a=t.tooltipPayload)===null||a===void 0||(a=a[0])===null||a===void 0||(a=a.payload)===null||a===void 0?void 0:a.payload}if(J2(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return wx(e,t)?t.payload:{}}function t6e(e){var t=e.activeTooltipItem,a=e.graphicalItem,n=e.itemData,r=JTe(a,t),i=e6e(a,t),o=n.filter(function(c,d){var m=qc(i,c),f=a.props[r].filter(function(b){var y=ZTe(a,t);return y(b,t)}),h=a.props[r].indexOf(f[f.length-1]),x=d===h;return m&&x}),l=n.indexOf(o[o.length-1]);return l}var Bv;function _m(e){"@babel/helpers - typeof";return _m=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},_m(e)}function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},em.apply(this,arguments)}function AH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function dn(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?AH(Object(a),!0).forEach(function(n){di(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):AH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function a6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SH(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WZ(n.key),n)}}function n6e(e,t,a){return t&&SH(e.prototype,t),a&&SH(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function s6e(e,t,a){return t=s1(t),r6e(e,QZ()?Reflect.construct(t,a||[],s1(e).constructor):t.apply(e,a))}function r6e(e,t){if(t&&(_m(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i6e(e)}function i6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QZ=function(){return!!e})()}function s1(e){return s1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},s1(e)}function o6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U4(e,t)}function U4(e,t){return U4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},U4(e,t)}function di(e,t,a){return t=WZ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function WZ(e){var t=l6e(e,"string");return _m(t)=="symbol"?t:t+""}function l6e(e,t){if(_m(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(_m(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fl=(function(e){function t(a){var n;return a6e(this,t),n=s6e(this,t,[a]),di(n,"pieRef",null),di(n,"sectorRefs",[]),di(n,"id",Zc("recharts-pie-")),di(n,"handleAnimationEnd",function(){var r=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Gt(r)&&r()}),di(n,"handleAnimationStart",function(){var r=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Gt(r)&&r()}),n.state={isAnimationFinished:!a.isAnimationActive,prevIsAnimationActive:a.isAnimationActive,prevAnimationId:a.animationId,sectorToFocus:0},n}return o6e(t,e),n6e(t,[{key:"isActiveIndex",value:function(n){var r=this.props.activeIndex;return Array.isArray(r)?r.indexOf(n)!==-1:n===r}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,l=i.labelLine,c=i.dataKey,d=i.valueKey,m=Rt(this.props,!1),f=Rt(o,!1),h=Rt(l,!1),x=o&&o.offsetRadius||20,b=n.map(function(y,w){var j=(y.startAngle+y.endAngle)/2,N=mn(y.cx,y.cy,y.outerRadius+x,j),k=dn(dn(dn(dn({},m),y),{},{stroke:"none"},f),{},{index:w,textAnchor:t.getTextAnchor(N.x,y.cx)},N),D=dn(dn(dn(dn({},m),y),{},{fill:"none",stroke:y.fill},h),{},{index:w,points:[mn(y.cx,y.cy,y.outerRadius,j),N]}),C=c;return Ft(c)&&Ft(d)?C="value":Ft(c)&&(C=d),ie.createElement(la,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(w)},l&&t.renderLabelLineItem(l,D,"line"),t.renderLabelItem(o,k,xn(y,C)))});return ie.createElement(la,{className:"recharts-pie-labels"},b)}},{key:"renderSectorsStatically",value:function(n){var r=this,i=this.props,o=i.activeShape,l=i.blendStroke,c=i.inactiveShape;return n.map(function(d,m){if(d?.startAngle===0&&d?.endAngle===0&&n.length!==1)return null;var f=r.isActiveIndex(m),h=c&&r.hasActiveIndex()?c:null,x=f?o:h,b=dn(dn({},d),{},{stroke:l?d.fill:d.stroke,tabIndex:-1});return ie.createElement(la,em({ref:function(w){w&&!r.sectorRefs.includes(w)&&r.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},Hc(r.props,d,m),{key:"sector-".concat(d?.startAngle,"-").concat(d?.endAngle,"-").concat(d.midAngle,"-").concat(m)}),ie.createElement(n1,em({option:x,isActive:f,shapeType:"sector"},b)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,r=this.props,i=r.sectors,o=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,d=r.animationEasing,m=r.animationId,f=this.state,h=f.prevSectors,x=f.prevIsAnimationActive;return ie.createElement(vi,{begin:l,duration:c,isActive:o,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(b){var y=b.t,w=[],j=i&&i[0],N=j.startAngle;return i.forEach(function(k,D){var C=h&&h[D],S=D>0?Rr(k,"paddingAngle",0):0;if(C){var A=Nn(C.endAngle-C.startAngle,k.endAngle-k.startAngle),E=dn(dn({},k),{},{startAngle:N+S,endAngle:N+A(y)+S});w.push(E),N=E.endAngle}else{var R=k.endAngle,F=k.startAngle,I=Nn(0,R-F),H=I(y),_=dn(dn({},k),{},{startAngle:N+S,endAngle:N+H+S});w.push(_),N=_.endAngle}}),ie.createElement(la,null,n.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(n){var r=this;n.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++r.state.sectorToFocus%r.sectorRefs.length;r.sectorRefs[o].focus(),r.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--r.state.sectorToFocus<0?r.sectorRefs.length-1:r.state.sectorToFocus%r.sectorRefs.length;r.sectorRefs[l].focus(),r.setState({sectorToFocus:l});break}case"Escape":{r.sectorRefs[r.state.sectorToFocus].blur(),r.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,r=n.sectors,i=n.isAnimationActive,o=this.state.prevSectors;return i&&r&&r.length&&(!o||!qc(o,r))?this.renderSectorsWithAnimation():this.renderSectorsStatically(r)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,r=this.props,i=r.hide,o=r.sectors,l=r.className,c=r.label,d=r.cx,m=r.cy,f=r.innerRadius,h=r.outerRadius,x=r.isAnimationActive,b=this.state.isAnimationFinished;if(i||!o||!o.length||!ut(d)||!ut(m)||!ut(f)||!ut(h))return null;var y=Yt("recharts-pie",l);return ie.createElement(la,{tabIndex:this.props.rootTabIndex,className:y,ref:function(j){n.pieRef=j}},this.renderSectors(),c&&this.renderLabels(o),hs.renderCallByParent(this.props,null,!1),(!x||b)&&Ki.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return r.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:r.curSectors,isAnimationFinished:!0}:n.sectors!==r.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,r){return n>r?"start":n<r?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,r,i){if(ie.isValidElement(n))return ie.cloneElement(n,r);if(Gt(n))return n(r);var o=Yt("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return ie.createElement(Mc,em({},r,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,r,i){if(ie.isValidElement(n))return ie.cloneElement(n,r);var o=i;if(Gt(n)&&(o=n(r),ie.isValidElement(o)))return o;var l=Yt("recharts-pie-label-text",typeof n!="boolean"&&!Gt(n)?n.className:"");return ie.createElement(bu,em({},r,{alignmentBaseline:"middle",className:l}),o)}}])})(P.PureComponent);Bv=Fl;di(Fl,"displayName","Pie");di(Fl,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Il.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});di(Fl,"parseDeltaAngle",function(e,t){var a=Ws(t-e),n=Math.min(Math.abs(t-e),360);return a*n});di(Fl,"getRealPieData",function(e){var t=e.data,a=e.children,n=Rt(e,!1),r=Ys(a,Mu);return t&&t.length?t.map(function(i,o){return dn(dn(dn({payload:i},n),i),r&&r[o]&&r[o].props)}):r&&r.length?r.map(function(i){return dn(dn({},n),i.props)}):[]});di(Fl,"parseCoordinateOfPie",function(e,t){var a=t.top,n=t.left,r=t.width,i=t.height,o=DZ(r,i),l=n+Ks(e.cx,r,r/2),c=a+Ks(e.cy,i,i/2),d=Ks(e.innerRadius,o,0),m=Ks(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(r*r+i*i)/2;return{cx:l,cy:c,innerRadius:d,outerRadius:m,maxRadius:f}});di(Fl,"getComposedData",function(e){var t=e.item,a=e.offset,n=t.type.defaultProps!==void 0?dn(dn({},t.type.defaultProps),t.props):t.props,r=Bv.getRealPieData(n);if(!r||!r.length)return null;var i=n.cornerRadius,o=n.startAngle,l=n.endAngle,c=n.paddingAngle,d=n.dataKey,m=n.nameKey,f=n.valueKey,h=n.tooltipType,x=Math.abs(n.minAngle),b=Bv.parseCoordinateOfPie(n,a),y=Bv.parseDeltaAngle(o,l),w=Math.abs(y),j=d;Ft(d)&&Ft(f)?(Wi(!1,`Use "dataKey" to specify the value of pie,
937 the props "valueKey" will be deprecated in 1.1.0`),j="value"):Ft(d)&&(Wi(!1,`Use "dataKey" to specify the value of pie, 938 the props "valueKey" will be deprecated in 1.1.0`),j=f);var N=r.filter(function(E){return xn(E,j,0)!==0}).length,k=(w>=360?N:N-1)*c,D=w-N*x-k,C=r.reduce(function(E,R){var F=xn(R,j,0);return E+(ut(F)?F:0)},0),S;if(C>0){var A;S=r.map(function(E,R){var F=xn(E,j,0),I=xn(E,m,R),H=(ut(F)?F:0)/C,_;R?_=A.endAngle+Ws(y)*c*(F!==0?1:0):_=o;var V=_+Ws(y)*((F!==0?x:0)+H*D),W=(_+V)/2,B=(b.innerRadius+b.outerRadius)/2,K=[{name:I,value:F,payload:E,dataKey:j,type:h}],ae=mn(b.cx,b.cy,B,W);return A=dn(dn(dn({percent:H,cornerRadius:i,name:I,tooltipPayload:K,midAngle:W,middleRadius:B,tooltipPosition:ae},E),b),{},{value:xn(E,j),startAngle:_,endAngle:V,payload:E,paddingAngle:Ws(y)*c}),A})}return dn(dn({},b),{},{sectors:S,data:r})});var WS,CH;function c6e(){if(CH)return WS;CH=1;var e=Math.ceil,t=Math.max;function a(n,r,i,o){for(var l=-1,c=t(e((r-n)/(i||1)),0),d=Array(c);c--;)d[o?c:++l]=n,n+=i;return d}return WS=a,WS}var KS,TH;function KZ(){if(TH)return KS;TH=1;var e=xY(),t=1/0,a=17976931348623157e292;function n(r){if(!r)return r===0?r:0;if(r=e(r),r===t||r===-t){var i=r<0?-1:1;return i*a}return r===r?r:0}return KS=n,KS}var $S,DH;function d6e(){if(DH)return $S;DH=1;var e=c6e(),t=I2(),a=KZ();function n(r){return function(i,o,l){return l&&typeof l!="number"&&t(i,o,l)&&(o=l=void 0),i=a(i),o===void 0?(o=i,i=0):o=a(o),l=l===void 0?i<o?1:-1:a(l),e(i,o,l,r)}}return $S=n,$S}var XS,EH;function u6e(){if(EH)return XS;EH=1;var e=d6e(),t=e();return XS=t,XS}var p6e=u6e();const r1=Fa(p6e);function Px(e){"@babel/helpers - typeof";return Px=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},Px(e)}function MH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function OH(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?MH(Object(a),!0).forEach(function(n){$Z(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):MH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function $Z(e,t,a){return t=m6e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function m6e(e){var t=f6e(e,"string");return Px(t)=="symbol"?t:t+""}function f6e(e,t){if(Px(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Px(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h6e=["Webkit","Moz","O","ms"],g6e=function(t,a){var n=t.replace(/(\w)/,function(i){return i.toUpperCase()}),r=h6e.reduce(function(i,o){return OH(OH({},i),{},$Z({},o+n,a))},{});return r[t]=a,r};function Im(e){"@babel/helpers - typeof";return Im=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},Im(e)}function i1(){return i1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},i1.apply(this,arguments)}function RH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function YS(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?RH(Object(a),!0).forEach(function(n){Ar(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):RH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function x6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zH(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YZ(n.key),n)}}function b6e(e,t,a){return t&&zH(e.prototype,t),a&&zH(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function v6e(e,t,a){return t=o1(t),y6e(e,XZ()?Reflect.construct(t,a||[],o1(e).constructor):t.apply(e,a))}function y6e(e,t){if(t&&(Im(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w6e(e)}function w6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XZ=function(){return!!e})()}
vendor: 146,381 bytes, lines 938-943
938function o1(e){return o1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},o1(e)}function P6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V4(e,t)}function V4(e,t){return V4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},V4(e,t)}function Ar(e,t,a){return t=YZ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function YZ(e){var t=j6e(e,"string");return Im(t)=="symbol"?t:t+""}function j6e(e,t){if(Im(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Im(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var k6e=function(t){var a=t.data,n=t.startIndex,r=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!a||!a.length)return{};var c=a.length,d=mg().domain(r1(0,c)).range([i,i+o-l]),m=d.domain().map(function(f){return d(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(n),endX:d(r),scale:d,scaleValues:m}},_H=function(t){return t.changedTouches&&!!t.changedTouches.length},Lm=(function(e){function t(a){var n;return x6e(this,t),n=v6e(this,t,[a]),Ar(n,"handleDrag",function(r){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(r):n.state.isSlideMoving&&n.handleSlideDrag(r)}),Ar(n,"handleTouchMove",function(r){r.changedTouches!=null&&r.changedTouches.length>0&&n.handleDrag(r.changedTouches[0])}),Ar(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var r=n.props,i=r.endIndex,o=r.onDragEnd,l=r.startIndex;o?.({endIndex:i,startIndex:l})}),n.detachDragEndListener()}),Ar(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ar(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ar(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ar(n,"handleSlideDragStart",function(r){var i=_H(r)?r.changedTouches[0]:r;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return P6e(t,e),b6e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var r=n.startX,i=n.endX,o=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,m=d.length-1,f=Math.min(r,i),h=Math.max(r,i),x=t.getIndexInRange(o,f),b=t.getIndexInRange(o,h);return{startIndex:x-x%c,endIndex:b===m?m:b-b%c}}},{key:"getTextOfTick",value:function(n){var r=this.props,i=r.data,o=r.tickFormatter,l=r.dataKey,c=xn(i[n],l,n);return Gt(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var r=this.state,i=r.slideMoveStartX,o=r.startX,l=r.endX,c=this.props,d=c.x,m=c.width,f=c.travellerWidth,h=c.startIndex,x=c.endIndex,b=c.onChange,y=n.pageX-i;y>0?y=Math.min(y,d+m-f-l,d+m-f-o):y<0&&(y=Math.max(y,d-o,d-l));var w=this.getIndex({startX:o+y,endX:l+y});(w.startIndex!==h||w.endIndex!==x)&&b&&b(w),this.setState({startX:o+y,endX:l+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,r){var i=_H(r)?r.changedTouches[0]:r;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var r=this.state,i=r.brushMoveStartX,o=r.movingTravellerId,l=r.endX,c=r.startX,d=this.state[o],m=this.props,f=m.x,h=m.width,x=m.travellerWidth,b=m.onChange,y=m.gap,w=m.data,j={startX:this.state.startX,endX:this.state.endX},N=n.pageX-i;N>0?N=Math.min(N,f+h-x-d):N<0&&(N=Math.max(N,f-d)),j[o]=d+N;var k=this.getIndex(j),D=k.startIndex,C=k.endIndex,S=function(){var E=w.length-1;return o==="startX"&&(l>c?D%y===0:C%y===0)||l<c&&C===E||o==="endX"&&(l>c?C%y===0:D%y===0)||l>c&&C===E};this.setState(Ar(Ar({},o,d+N),"brushMoveStartX",n.pageX),function(){b&&S()&&b(k)})}},{key:"handleTravellerMoveKeyboard",value:function(n,r){var i=this,o=this.state,l=o.scaleValues,c=o.startX,d=o.endX,m=this.state[r],f=l.indexOf(m);if(f!==-1){var h=f+n;if(!(h===-1||h>=l.length)){var x=l[h];r==="startX"&&x>=d||r==="endX"&&x<=c||this.setState(Ar({},r,x),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,r=n.x,i=n.y,o=n.width,l=n.height,c=n.fill,d=n.stroke;return ie.createElement("rect",{stroke:d,fill:c,x:r,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,r=n.x,i=n.y,o=n.width,l=n.height,c=n.data,d=n.children,m=n.padding,f=P.Children.only(d);return f?ie.cloneElement(f,{x:r,y:i,width:o,height:l,margin:m,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,r){var i,o,l=this,c=this.props,d=c.y,m=c.travellerWidth,f=c.height,h=c.traveller,x=c.ariaLabel,b=c.data,y=c.startIndex,w=c.endIndex,j=Math.max(n,this.props.x),N=YS(YS({},Rt(this.props,!1)),{},{x:j,y:d,width:m,height:f}),k=x||"Min value: ".concat((i=b[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[w])===null||o===void 0?void 0:o.name);return ie.createElement(la,{tabIndex:0,role:"slider","aria-label":k,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(C){["ArrowLeft","ArrowRight"].includes(C.key)&&(C.preventDefault(),C.stopPropagation(),l.handleTravellerMoveKeyboard(C.key==="ArrowRight"?1:-1,r))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,N))}},{key:"renderSlide",value:function(n,r){var i=this.props,o=i.y,l=i.height,c=i.stroke,d=i.travellerWidth,m=Math.min(n,r)+d,f=Math.max(Math.abs(r-n)-d,0);return ie.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:m,y:o,width:f,height:l})}},{key:"renderText",value:function(){var n=this.props,r=n.startIndex,i=n.endIndex,o=n.y,l=n.height,c=n.travellerWidth,d=n.stroke,m=this.state,f=m.startX,h=m.endX,x=5,b={pointerEvents:"none",fill:d};return ie.createElement(la,{className:"recharts-brush-texts"},ie.createElement(bu,i1({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-x,y:o+l/2},b),this.getTextOfTick(r)),ie.createElement(bu,i1({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+c+x,y:o+l/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var n=this.props,r=n.data,i=n.className,o=n.children,l=n.x,c=n.y,d=n.width,m=n.height,f=n.alwaysShowText,h=this.state,x=h.startX,b=h.endX,y=h.isTextActive,w=h.isSlideMoving,j=h.isTravellerMoving,N=h.isTravellerFocused;if(!r||!r.length||!ut(l)||!ut(c)||!ut(d)||!ut(m)||d<=0||m<=0)return null;var k=Yt("recharts-brush",i),D=ie.Children.count(o)===1,C=g6e("userSelect","none");return ie.createElement(la,{className:k,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:C},this.renderBackground(),D&&this.renderPanorama(),this.renderSlide(x,b),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(b,"endX"),(y||w||j||N||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var r=n.x,i=n.y,o=n.width,l=n.height,c=n.stroke,d=Math.floor(i+l/2)-1;return ie.createElement(ie.Fragment,null,ie.createElement("rect",{x:r,y:i,width:o,height:l,fill:c,stroke:"none"}),ie.createElement("line",{x1:r+1,y1:d,x2:r+o-1,y2:d,fill:"none",stroke:"#fff"}),ie.createElement("line",{x1:r+1,y1:d+2,x2:r+o-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,r){var i;return ie.isValidElement(n)?i=ie.cloneElement(n,r):Gt(n)?i=n(r):i=t.renderDefaultTraveller(r),i}},{key:"getDerivedStateFromProps",value:function(n,r){var i=n.data,o=n.width,l=n.x,c=n.travellerWidth,d=n.updateId,m=n.startIndex,f=n.endIndex;if(i!==r.prevData||d!==r.prevUpdateId)return YS({prevData:i,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:o},i&&i.length?k6e({data:i,width:o,x:l,travellerWidth:c,startIndex:m,endIndex:f}):{scale:null,scaleValues:null});if(r.scale&&(o!==r.prevWidth||l!==r.prevX||c!==r.prevTravellerWidth)){r.scale.range([l,l+o-c]);var h=r.scale.domain().map(function(x){return r.scale(x)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:o,startX:r.scale(n.startIndex),endX:r.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,r){for(var i=n.length,o=0,l=i-1;l-o>1;){var c=Math.floor((o+l)/2);n[c]>r?l=c:o=c}return r>=n[l]?l:o}}])})(P.PureComponent);Ar(Lm,"displayName","Brush");Ar(Lm,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var ZS,IH;function N6e(){if(IH)return ZS;IH=1;var e=QD();function t(a,n){var r;return e(a,function(i,o,l){return r=n(i,o,l),!r}),!!r}return ZS=t,ZS}var JS,LH;function A6e(){if(LH)return JS;LH=1;var e=KX(),t=Ro(),a=N6e(),n=hr(),r=I2();function i(o,l,c){var d=n(o)?e:a;return c&&r(o,l,c)&&(l=void 0),d(o,t(l,3))}return JS=i,JS}var S6e=A6e();const C6e=Fa(S6e);var jo=function(t,a){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===a},e5,FH;function T6e(){if(FH)return e5;FH=1;var e=pY();function t(a,n,r){n=="__proto__"&&e?e(a,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):a[n]=r}return e5=t,e5}var t5,BH;function D6e(){if(BH)return t5;BH=1;var e=T6e(),t=dY(),a=Ro();function n(r,i){var o={};return i=a(i,3),t(r,function(l,c,d){e(o,c,i(l,c,d))}),o}return t5=n,t5}var E6e=D6e();const M6e=Fa(E6e);var a5,GH;function O6e(){if(GH)return a5;GH=1;function e(t,a){for(var n=-1,r=t==null?0:t.length;++n<r;)if(!a(t[n],n,t))return!1;return!0}return a5=e,a5}var n5,HH;function R6e(){if(HH)return n5;HH=1;var e=QD();function t(a,n){var r=!0;return e(a,function(i,o,l){return r=!!n(i,o,l),r}),r}return n5=t,n5}var s5,qH;function z6e(){if(qH)return s5;qH=1;var e=O6e(),t=R6e(),a=Ro(),n=hr(),r=I2();function i(o,l,c){var d=n(o)?e:t;return c&&r(o,l,c)&&(l=void 0),d(o,a(l,3))}return s5=i,s5}var _6e=z6e();const ZZ=Fa(_6e);var I6e=["x","y"];function jx(e){"@babel/helpers - typeof";return jx=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},jx(e)}function Q4(){return Q4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Q4.apply(this,arguments)}function UH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Dh(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?UH(Object(a),!0).forEach(function(n){L6e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):UH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function L6e(e,t,a){return t=F6e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function F6e(e){var t=B6e(e,"string");return jx(t)=="symbol"?t:t+""}function B6e(e,t){if(jx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(jx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G6e(e,t){if(e==null)return{};var a=H6e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function H6e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function q6e(e,t){var a=e.x,n=e.y,r=G6e(e,I6e),i="".concat(a),o=parseInt(i,10),l="".concat(n),c=parseInt(l,10),d="".concat(t.height||r.height),m=parseInt(d,10),f="".concat(t.width||r.width),h=parseInt(f,10);return Dh(Dh(Dh(Dh(Dh({},t),r),o?{x:o}:{}),c?{y:c}:{}),{},{height:m,width:h,name:t.name,radius:t.radius})}function VH(e){return ie.createElement(n1,Q4({shapeType:"rectangle",propTransformer:q6e,activeClassName:"recharts-active-bar"},e))}var U6e=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,r){if(typeof t=="number")return t;var i=ut(n)||m2e(n);return i?t(n,r):(i||yu(),a)}},V6e=["value","background"],JZ;function Fm(e){"@babel/helpers - typeof";return Fm=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},Fm(e)}function Q6e(e,t){if(e==null)return{};var a=W6e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function W6e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function l1(){return l1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},l1.apply(this,arguments)}function QH(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Vn(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?QH(Object(a),!0).forEach(function(n){Sc(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):QH(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function K6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WH(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tJ(n.key),n)}}function $6e(e,t,a){return t&&WH(e.prototype,t),a&&WH(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function X6e(e,t,a){return t=c1(t),Y6e(e,eJ()?Reflect.construct(t,a||[],c1(e).constructor):t.apply(e,a))}function Y6e(e,t){if(t&&(Fm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z6e(e)}function Z6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eJ=function(){return!!e})()}function c1(e){return c1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},c1(e)}function J6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W4(e,t)}function W4(e,t){return W4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},W4(e,t)}function Sc(e,t,a){return t=tJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function tJ(e){var t=eDe(e,"string");return Fm(t)=="symbol"?t:t+""}function eDe(e,t){if(Fm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Fm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bs=(function(e){function t(){var a;K6e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a=X6e(this,t,[].concat(r)),Sc(a,"state",{isAnimationFinished:!1}),Sc(a,"id",Zc("recharts-bar-")),Sc(a,"handleAnimationEnd",function(){var o=a.props.onAnimationEnd;a.setState({isAnimationFinished:!0}),o&&o()}),Sc(a,"handleAnimationStart",function(){var o=a.props.onAnimationStart;a.setState({isAnimationFinished:!1}),o&&o()}),a}return J6e(t,e),$6e(t,[{key:"renderRectanglesStatically",value:function(n){var r=this,i=this.props,o=i.shape,l=i.dataKey,c=i.activeIndex,d=i.activeBar,m=Rt(this.props,!1);return n&&n.map(function(f,h){var x=h===c,b=x?d:o,y=Vn(Vn(Vn({},m),f),{},{isActive:x,option:b,index:h,dataKey:l,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return ie.createElement(la,l1({className:"recharts-bar-rectangle"},Hc(r.props,f,h),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(h)}),ie.createElement(VH,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,r=this.props,i=r.data,o=r.layout,l=r.isAnimationActive,c=r.animationBegin,d=r.animationDuration,m=r.animationEasing,f=r.animationId,h=this.state.prevData;return ie.createElement(vi,{begin:c,duration:d,isActive:l,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var b=x.t,y=i.map(function(w,j){var N=h&&h[j];if(N){var k=Nn(N.x,w.x),D=Nn(N.y,w.y),C=Nn(N.width,w.width),S=Nn(N.height,w.height);return Vn(Vn({},w),{},{x:k(b),y:D(b),width:C(b),height:S(b)})}if(o==="horizontal"){var A=Nn(0,w.height),E=A(b);return Vn(Vn({},w),{},{y:w.y+w.height-E,height:E})}var R=Nn(0,w.width),F=R(b);return Vn(Vn({},w),{},{width:F})});return ie.createElement(la,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,r=n.data,i=n.isAnimationActive,o=this.state.prevData;return i&&r&&r.length&&(!o||!qc(o,r))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(r)}},{key:"renderBackground",value:function(){var n=this,r=this.props,i=r.data,o=r.dataKey,l=r.activeIndex,c=Rt(this.props.background,!1);return i.map(function(d,m){d.value;var f=d.background,h=Q6e(d,V6e);if(!f)return null;var x=Vn(Vn(Vn(Vn(Vn({},h),{},{fill:"#eee"},f),c),Hc(n.props,d,m)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:m,className:"recharts-bar-background-rectangle"});return ie.createElement(VH,l1({key:"background-bar-".concat(m),option:n.props.background,isActive:m===l},x))})}},{key:"renderErrorBar",value:function(n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,c=i.yAxis,d=i.layout,m=i.children,f=Ys(m,vf);if(!f)return null;var h=d==="vertical"?o[0].height/2:o[0].width/2,x=function(w,j){var N=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:N,errorVal:xn(w,j)}},b={clipPath:n?"url(#clipPath-".concat(r,")"):null};return ie.createElement(la,b,f.map(function(y){return ie.cloneElement(y,{key:"error-bar-".concat(r,"-").concat(y.props.dataKey),data:o,xAxis:l,yAxis:c,layout:d,offset:h,dataPointFormatter:x})}))}},{key:"render",value:function(){var n=this.props,r=n.hide,i=n.data,o=n.className,l=n.xAxis,c=n.yAxis,d=n.left,m=n.top,f=n.width,h=n.height,x=n.isAnimationActive,b=n.background,y=n.id;if(r||!i||!i.length)return null;var w=this.state.isAnimationFinished,j=Yt("recharts-bar",o),N=l&&l.allowDataOverflow,k=c&&c.allowDataOverflow,D=N||k,C=Ft(y)?this.id:y;return ie.createElement(la,{className:j},N||k?ie.createElement("defs",null,ie.createElement("clipPath",{id:"clipPath-".concat(C)},ie.createElement("rect",{x:N?d:d-f/2,y:k?m:m-h/2,width:N?f:f*2,height:k?h:h*2}))):null,ie.createElement(la,{className:"recharts-bar-rectangles",clipPath:D?"url(#clipPath-".concat(C,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(D,C),(!x||w)&&Ki.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:r.curData}:n.data!==r.curData?{curData:n.data}:null}}])})(P.PureComponent);JZ=Bs;Sc(Bs,"displayName","Bar");Sc(Bs,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Il.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Sc(Bs,"getComposedData",function(e){var t=e.props,a=e.item,n=e.barPosition,r=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,f=e.displayedData,h=e.offset,x=CSe(n,a);if(!x)return null;var b=t.layout,y=a.type.defaultProps,w=y!==void 0?Vn(Vn({},y),a.props):a.props,j=w.dataKey,N=w.children,k=w.minPointSize,D=b==="horizontal"?o:i,C=d?D.scale.domain():null,S=zSe({numericAxis:D}),A=Ys(N,Mu),E=f.map(function(R,F){var I,H,_,V,W,B;d?I=TSe(d[m+F],C):(I=xn(R,j),Array.isArray(I)||(I=[S,I]));var K=U6e(k,JZ.defaultProps.minPointSize)(I[1],F);if(b==="horizontal"){var ae,$=[o.scale(I[0]),o.scale(I[1])],Z=$[0],O=$[1];H=bG({axis:i,ticks:l,bandSize:r,offset:x.offset,entry:R,index:F}),_=(ae=O??Z)!==null&&ae!==void 0?ae:void 0,V=x.size;var Y=Z-O;if(W=Number.isNaN(Y)?0:Y,B={x:H,y:o.y,width:V,height:o.height},Math.abs(K)>0&&Math.abs(W)<Math.abs(K)){var Q=Ws(W||K)*(Math.abs(K)-Math.abs(W));_-=Q,W+=Q}}else{var U=[i.scale(I[0]),i.scale(I[1])],oe=U[0],X=U[1];if(H=oe,_=bG({axis:o,ticks:c,bandSize:r,offset:x.offset,entry:R,index:F}),V=X-oe,W=x.size,B={x:i.x,y:_,width:i.width,height:W},Math.abs(K)>0&&Math.abs(V)<Math.abs(K)){var ne=Ws(V||K)*(Math.abs(K)-Math.abs(V));V+=ne}}return Vn(Vn(Vn({},R),{},{x:H,y:_,width:V,height:W,value:d?I:I[1],payload:R,background:B},A&&A[F]&&A[F].props),{},{tooltipPayload:[CZ(a,R)],tooltipPosition:{x:H+V/2,y:_+W/2}})});return Vn({data:E,layout:b},h)});function kx(e){"@babel/helpers - typeof";return kx=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},kx(e)}function tDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KH(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aJ(n.key),n)}}function aDe(e,t,a){return t&&KH(e.prototype,t),a&&KH(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function $H(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function _i(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?$H(Object(a),!0).forEach(function(n){ew(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):$H(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function ew(e,t,a){return t=aJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function aJ(e){var t=nDe(e,"string");return kx(t)=="symbol"?t:t+""}function nDe(e,t){if(kx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(kx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var w8=function(t,a,n,r,i){var o=t.width,l=t.height,c=t.layout,d=t.children,m=Object.keys(a),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},h=!!Sr(d,Bs);return m.reduce(function(x,b){var y=a[b],w=y.orientation,j=y.domain,N=y.padding,k=N===void 0?{}:N,D=y.mirror,C=y.reversed,S="".concat(w).concat(D?"Mirror":""),A,E,R,F,I;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var H=j[1]-j[0],_=1/0,V=y.categoricalDomain.sort(x2e);if(V.forEach(function(U,oe){oe>0&&(_=Math.min((U||0)-(V[oe-1]||0),_))}),Number.isFinite(_)){var W=_/H,B=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(A=W*B/2),y.padding==="no-gap"){var K=Ks(t.barCategoryGap,W*B),ae=W*B/2;A=ae-K-(ae-K)/B*K}}}r==="xAxis"?E=[n.left+(k.left||0)+(A||0),n.left+n.width-(k.right||0)-(A||0)]:r==="yAxis"?E=c==="horizontal"?[n.top+n.height-(k.bottom||0),n.top+(k.top||0)]:[n.top+(k.top||0)+(A||0),n.top+n.height-(k.bottom||0)-(A||0)]:E=y.range,C&&(E=[E[1],E[0]]);var $=kZ(y,i,h),Z=$.scale,O=$.realScaleType;Z.domain(j).range(E),NZ(Z);var Y=AZ(Z,_i(_i({},y),{},{realScaleType:O}));r==="xAxis"?(I=w==="top"&&!D||w==="bottom"&&D,R=n.left,F=f[S]-I*y.height):r==="yAxis"&&(I=w==="left"&&!D||w==="right"&&D,R=f[S]-I*y.width,F=n.top);var Q=_i(_i(_i({},y),Y),{},{realScaleType:O,x:R,y:F,scale:Z,width:r==="xAxis"?n.width:y.width,height:r==="yAxis"?n.height:y.height});return Q.bandSize=Qy(Q,Y),!y.hide&&r==="xAxis"?f[S]+=(I?-1:1)*Q.height:y.hide||(f[S]+=(I?-1:1)*Q.width),_i(_i({},x),{},ew({},b,Q))},{})},nJ=function(t,a){var n=t.x,r=t.y,i=a.x,o=a.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},sDe=function(t){var a=t.x1,n=t.y1,r=t.x2,i=t.y2;return nJ({x:a,y:n},{x:r,y:i})},sJ=(function(){function e(t){tDe(this,e),this.scale=t}return aDe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.bandAware,i=n.position;if(a!==void 0){if(i)switch(i){case"start":return this.scale(a);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(a)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(a)+l}default:return this.scale(a)}if(r){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(a)+c}return this.scale(a)}}},{key:"isInRange",value:function(a){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?a>=r&&a<=i:a>=i&&a<=r}}],[{key:"create",value:function(a){return new e(a)}}])})();ew(sJ,"EPS",1e-4);var P8=function(t){var a=Object.keys(t).reduce(function(n,r){return _i(_i({},n),{},ew({},r,sJ.create(t[r])))},{});return _i(_i({},a),{},{apply:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return M6e(r,function(c,d){return a[d].apply(c,{bandAware:o,position:l})})},isInRange:function(r){return ZZ(r,function(i,o){return a[o].isInRange(i)})}})};function rDe(e){return(e%180+180)%180}var iDe=function(t){var a=t.width,n=t.height,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=rDe(r),o=i*Math.PI/180,l=Math.atan(n/a),c=o>l&&o<Math.PI-l?n/Math.sin(o):a/Math.cos(o);return Math.abs(c)},r5,XH;function oDe(){if(XH)return r5;XH=1;var e=Ro(),t=sb(),a=z2();function n(r){return function(i,o,l){var c=Object(i);if(!t(i)){var d=e(o,3);i=a(i),o=function(f){return d(c[f],f,c)}}var m=r(i,o,l);return m>-1?c[d?i[m]:m]:void 0}}return r5=n,r5}var i5,YH;function lDe(){if(YH)return i5;YH=1;var e=KZ();function t(a){var n=e(a),r=n%1;return n===n?r?n-r:n:0}return i5=t,i5}var o5,ZH;function cDe(){if(ZH)return o5;ZH=1;var e=rY(),t=Ro(),a=lDe(),n=Math.max;function r(i,o,l){var c=i==null?0:i.length;if(!c)return-1;var d=l==null?0:a(l);return d<0&&(d=n(c+d,0)),e(i,t(o,3),d)}return o5=r,o5}var l5,JH;function dDe(){if(JH)return l5;JH=1;var e=oDe(),t=cDe(),a=e(t);return l5=a,l5}var uDe=dDe();const pDe=Fa(uDe);var mDe=yX();const fDe=Fa(mDe);var hDe=fDe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),j8=P.createContext(void 0),k8=P.createContext(void 0),rJ=P.createContext(void 0),iJ=P.createContext({}),oJ=P.createContext(void 0),lJ=P.createContext(0),cJ=P.createContext(0),eq=function(t){var a=t.state,n=a.xAxisMap,r=a.yAxisMap,i=a.offset,o=t.clipPathId,l=t.children,c=t.width,d=t.height,m=hDe(i);return ie.createElement(j8.Provider,{value:n},ie.createElement(k8.Provider,{value:r},ie.createElement(iJ.Provider,{value:i},ie.createElement(rJ.Provider,{value:m},ie.createElement(oJ.Provider,{value:o},ie.createElement(lJ.Provider,{value:d},ie.createElement(cJ.Provider,{value:c},l)))))))},gDe=function(){return P.useContext(oJ)},dJ=function(t){var a=P.useContext(j8);a==null&&yu();var n=a[t];return n==null&&yu(),n},xDe=function(){var t=P.useContext(j8);return kc(t)},bDe=function(){var t=P.useContext(k8),a=pDe(t,function(n){return ZZ(n.domain,Number.isFinite)});return a||kc(t)},uJ=function(t){var a=P.useContext(k8);a==null&&yu();var n=a[t];return n==null&&yu(),n},vDe=function(){var t=P.useContext(rJ);return t},yDe=function(){return P.useContext(iJ)},N8=function(){return P.useContext(cJ)},A8=function(){return P.useContext(lJ)};function Bm(e){"@babel/helpers - typeof";return Bm=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},Bm(e)}function wDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PDe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mJ(n.key),n)}}function jDe(e,t,a){return t&&PDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kDe(e,t,a){return t=d1(t),NDe(e,pJ()?Reflect.construct(t,a||[],d1(e).constructor):t.apply(e,a))}function NDe(e,t){if(t&&(Bm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ADe(e)}function ADe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pJ=function(){return!!e})()}function d1(e){return d1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},d1(e)}function SDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K4(e,t)}function K4(e,t){return K4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},K4(e,t)}function tq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function aq(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?tq(Object(a),!0).forEach(function(n){S8(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):tq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function S8(e,t,a){return t=mJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function mJ(e){var t=CDe(e,"string");return Bm(t)=="symbol"?t:t+""}function CDe(e,t){if(Bm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Bm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function TDe(e,t){return ODe(e)||MDe(e,t)||EDe(e,t)||DDe()}function DDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 939In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EDe(e,t){if(e){if(typeof e=="string")return nq(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return nq(e,t)}}function nq(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function MDe(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function ODe(e){if(Array.isArray(e))return e}function $4(){return $4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},$4.apply(this,arguments)}var RDe=function(t,a){var n;return ie.isValidElement(t)?n=ie.cloneElement(t,a):Gt(t)?n=t(a):n=ie.createElement("line",$4({},a,{className:"recharts-reference-line-line"})),n},zDe=function(t,a,n,r,i,o,l,c,d){var m=i.x,f=i.y,h=i.width,x=i.height;if(n){var b=d.y,y=t.y.apply(b,{position:o});if(jo(d,"discard")&&!t.y.isInRange(y))return null;var w=[{x:m+h,y},{x:m,y}];return c==="left"?w.reverse():w}if(a){var j=d.x,N=t.x.apply(j,{position:o});if(jo(d,"discard")&&!t.x.isInRange(N))return null;var k=[{x:N,y:f+x},{x:N,y:f}];return l==="top"?k.reverse():k}if(r){var D=d.segment,C=D.map(function(S){return t.apply(S,{position:o})});return jo(d,"discard")&&C6e(C,function(S){return!t.isInRange(S)})?null:C}return null};function _De(e){var t=e.x,a=e.y,n=e.segment,r=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,c=e.alwaysShow,d=gDe(),m=dJ(r),f=uJ(i),h=vDe();if(!d||!h)return null;Wi(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=P8({x:m.scale,y:f.scale}),b=rs(t),y=rs(a),w=n&&n.length===2,j=zDe(x,b,y,w,h,e.position,m.orientation,f.orientation,e);if(!j)return null;var N=TDe(j,2),k=N[0],D=k.x,C=k.y,S=N[1],A=S.x,E=S.y,R=jo(e,"hidden")?"url(#".concat(d,")"):void 0,F=aq(aq({clipPath:R},Rt(e,!0)),{},{x1:D,y1:C,x2:A,y2:E});return ie.createElement(la,{className:Yt("recharts-reference-line",l)},RDe(o,F),hs.renderCallByParent(e,sDe({x1:D,y1:C,x2:A,y2:E})))}var C8=(function(e){function t(){return wDe(this,t),kDe(this,t,arguments)}return SDe(t,e),jDe(t,[{key:"render",value:function(){return ie.createElement(_De,this.props)}}])})(ie.Component);S8(C8,"displayName","ReferenceLine");S8(C8,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function X4(){return X4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},X4.apply(this,arguments)}function Gm(e){"@babel/helpers - typeof";return Gm=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},Gm(e)}function sq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function rq(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?sq(Object(a),!0).forEach(function(n){tw(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):sq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function IDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LDe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hJ(n.key),n)}}function FDe(e,t,a){return t&&LDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BDe(e,t,a){return t=u1(t),GDe(e,fJ()?Reflect.construct(t,a||[],u1(e).constructor):t.apply(e,a))}function GDe(e,t){if(t&&(Gm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HDe(e)}function HDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fJ=function(){return!!e})()}function u1(e){return u1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},u1(e)}function qDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y4(e,t)}function Y4(e,t){return Y4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Y4(e,t)}function tw(e,t,a){return t=hJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function hJ(e){var t=UDe(e,"string");return Gm(t)=="symbol"?t:t+""}function UDe(e,t){if(Gm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Gm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VDe=function(t){var a=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=P8({x:r.scale,y:i.scale}),l=o.apply({x:a,y:n},{bandAware:!0});return jo(t,"discard")&&!o.isInRange(l)?null:l},aw=(function(e){function t(){return IDe(this,t),BDe(this,t,arguments)}return qDe(t,e),FDe(t,[{key:"render",value:function(){var n=this.props,r=n.x,i=n.y,o=n.r,l=n.alwaysShow,c=n.clipPathId,d=rs(r),m=rs(i);if(Wi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var f=VDe(this.props);if(!f)return null;var h=f.x,x=f.y,b=this.props,y=b.shape,w=b.className,j=jo(this.props,"hidden")?"url(#".concat(c,")"):void 0,N=rq(rq({clipPath:j},Rt(this.props,!0)),{},{cx:h,cy:x});return ie.createElement(la,{className:Yt("recharts-reference-dot",w)},t.renderDot(y,N),hs.renderCallByParent(this.props,{x:h-o,y:x-o,width:2*o,height:2*o}))}}])})(ie.Component);tw(aw,"displayName","ReferenceDot");tw(aw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});tw(aw,"renderDot",function(e,t){var a;return ie.isValidElement(e)?a=ie.cloneElement(e,t):Gt(e)?a=e(t):a=ie.createElement(cb,X4({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),a});function Z4(){return Z4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Z4.apply(this,arguments)}function Hm(e){"@babel/helpers - typeof";return Hm=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},Hm(e)}function iq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function oq(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?iq(Object(a),!0).forEach(function(n){nw(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):iq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function QDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WDe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xJ(n.key),n)}}function KDe(e,t,a){return t&&WDe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $De(e,t,a){return t=p1(t),XDe(e,gJ()?Reflect.construct(t,a||[],p1(e).constructor):t.apply(e,a))}function XDe(e,t){if(t&&(Hm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YDe(e)}function YDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gJ=function(){return!!e})()}function p1(e){return p1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},p1(e)}function ZDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J4(e,t)}function J4(e,t){return J4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},J4(e,t)}function nw(e,t,a){return t=xJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function xJ(e){var t=JDe(e,"string");return Hm(t)=="symbol"?t:t+""}function JDe(e,t){if(Hm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Hm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var e8e=function(t,a,n,r,i){var o=i.x1,l=i.x2,c=i.y1,d=i.y2,m=i.xAxis,f=i.yAxis;if(!m||!f)return null;var h=P8({x:m.scale,y:f.scale}),x={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},b={x:a?h.x.apply(l,{position:"end"}):h.x.rangeMax,y:r?h.y.apply(d,{position:"end"}):h.y.rangeMax};return jo(i,"discard")&&(!h.isInRange(x)||!h.isInRange(b))?null:nJ(x,b)},sw=(function(e){function t(){return QDe(this,t),$De(this,t,arguments)}return ZDe(t,e),KDe(t,[{key:"render",value:function(){var n=this.props,r=n.x1,i=n.x2,o=n.y1,l=n.y2,c=n.className,d=n.alwaysShow,m=n.clipPathId;Wi(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=rs(r),h=rs(i),x=rs(o),b=rs(l),y=this.props.shape;if(!f&&!h&&!x&&!b&&!y)return null;var w=e8e(f,h,x,b,this.props);if(!w&&!y)return null;var j=jo(this.props,"hidden")?"url(#".concat(m,")"):void 0;return ie.createElement(la,{className:Yt("recharts-reference-area",c)},t.renderRect(y,oq(oq({clipPath:j},Rt(this.props,!0)),w)),hs.renderCallByParent(this.props,w))}}])})(ie.Component);nw(sw,"displayName","ReferenceArea");nw(sw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});nw(sw,"renderRect",function(e,t){var a;return ie.isValidElement(e)?a=ie.cloneElement(e,t):Gt(e)?a=e(t):a=ie.createElement(y8,Z4({},t,{className:"recharts-reference-area-rect"})),a});function bJ(e,t,a){if(t<1)return[];if(t===1&&a===void 0)return e;for(var n=[],r=0;r<e.length;r+=t)n.push(e[r]);return n}function t8e(e,t,a){var n={width:e.width+t.width,height:e.height+t.height};return iDe(n,a)}function a8e(e,t,a){var n=a==="width",r=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:n?r:i,end:n?r+o:i+l}:{start:n?r+o:i+l,end:n?r:i}}function m1(e,t,a,n,r){if(e*t<e*n||e*t>e*r)return!1;var i=a();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-r)<=0}function n8e(e,t){return bJ(e,t+1)}function s8e(e,t,a,n,r){for(var i=(n||[]).slice(),o=t.start,l=t.end,c=0,d=1,m=o,f=function(){var b=n?.[c];if(b===void 0)return{v:bJ(n,d)};var y=c,w,j=function(){return w===void 0&&(w=a(b,y)),w},N=b.coordinate,k=c===0||m1(e,N,j,m,l);k||(c=0,m=o,d+=1),k&&(m=N+e*(j()/2+r),c+=d)},h;d<=i.length;)if(h=f(),h)return h.v;return[]}function Nx(e){"@babel/helpers - typeof";return Nx=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},Nx(e)}function lq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function _s(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?lq(Object(a),!0).forEach(function(n){r8e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):lq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function r8e(e,t,a){return t=i8e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i8e(e){var t=o8e(e,"string");return Nx(t)=="symbol"?t:t+""}function o8e(e,t){if(Nx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Nx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l8e(e,t,a,n,r){for(var i=(n||[]).slice(),o=i.length,l=t.start,c=t.end,d=function(h){var x=i[h],b,y=function(){return b===void 0&&(b=a(x,h)),b};if(h===o-1){var w=e*(x.coordinate+e*y()/2-c);i[h]=x=_s(_s({},x),{},{tickCoord:w>0?x.coordinate-w*e:x.coordinate})}else i[h]=x=_s(_s({},x),{},{tickCoord:x.coordinate});var j=m1(e,x.tickCoord,y,l,c);j&&(c=x.tickCoord-e*(y()/2+r),i[h]=_s(_s({},x),{},{isShow:!0}))},m=o-1;m>=0;m--)d(m);return i}function c8e(e,t,a,n,r,i){var o=(n||[]).slice(),l=o.length,c=t.start,d=t.end;if(i){var m=n[l-1],f=a(m,l-1),h=e*(m.coordinate+e*f/2-d);o[l-1]=m=_s(_s({},m),{},{tickCoord:h>0?m.coordinate-h*e:m.coordinate});var x=m1(e,m.tickCoord,function(){return f},c,d);x&&(d=m.tickCoord-e*(f/2+r),o[l-1]=_s(_s({},m),{},{isShow:!0}))}for(var b=i?l-1:l,y=function(N){var k=o[N],D,C=function(){return D===void 0&&(D=a(k,N)),D};if(N===0){var S=e*(k.coordinate-e*C()/2-c);o[N]=k=_s(_s({},k),{},{tickCoord:S<0?k.coordinate-S*e:k.coordinate})}else o[N]=k=_s(_s({},k),{},{tickCoord:k.coordinate});var A=m1(e,k.tickCoord,C,c,d);A&&(c=k.tickCoord+e*(C()/2+r),o[N]=_s(_s({},k),{},{isShow:!0}))},w=0;w<b;w++)y(w);return o}function T8(e,t,a){var n=e.tick,r=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,d=e.tickFormatter,m=e.unit,f=e.angle;if(!r||!r.length||!n)return[];if(ut(c)||Il.isSsr)return n8e(r,typeof c=="number"&&ut(c)?c:0);var h=[],x=l==="top"||l==="bottom"?"width":"height",b=m&&x==="width"?pg(m,{fontSize:t,letterSpacing:a}):{width:0,height:0},y=function(k,D){var C=Gt(d)?d(k.value,D):k.value;return x==="width"?t8e(pg(C,{fontSize:t,letterSpacing:a}),b,f):pg(C,{fontSize:t,letterSpacing:a})[x]},w=r.length>=2?Ws(r[1].coordinate-r[0].coordinate):1,j=a8e(i,w,x);return c==="equidistantPreserveStart"?s8e(w,j,y,r,o):(c==="preserveStart"||c==="preserveStartEnd"?h=c8e(w,j,y,r,o,c==="preserveStartEnd"):h=l8e(w,j,y,r,o),h.filter(function(N){return N.isShow}))}var d8e=["viewBox"],u8e=["viewBox"],p8e=["ticks"];function qm(e){"@babel/helpers - typeof";return qm=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},qm(e)}function tm(){return tm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},tm.apply(this,arguments)}function cq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function ts(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?cq(Object(a),!0).forEach(function(n){D8(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):cq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function c5(e,t){if(e==null)return{};var a=m8e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m8e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function f8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dq(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yJ(n.key),n)}}function h8e(e,t,a){return t&&dq(e.prototype,t),a&&dq(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function g8e(e,t,a){return t=f1(t),x8e(e,vJ()?Reflect.construct(t,a||[],f1(e).constructor):t.apply(e,a))}function x8e(e,t){if(t&&(qm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b8e(e)}function b8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vJ=function(){return!!e})()}function f1(e){return f1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},f1(e)}function v8e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eT(e,t)}function eT(e,t){return eT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},eT(e,t)}function D8(e,t,a){return t=yJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function yJ(e){var t=y8e(e,"string");return qm(t)=="symbol"?t:t+""}function y8e(e,t){if(qm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(qm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yf=(function(e){function t(a){var n;return f8e(this,t),n=g8e(this,t,[a]),n.state={fontSize:"",letterSpacing:""},n}return v8e(t,e),h8e(t,[{key:"shouldComponentUpdate",value:function(n,r){var i=n.viewBox,o=c5(n,d8e),l=this.props,c=l.viewBox,d=c5(l,u8e);return!um(i,c)||!um(o,d)||!um(r,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var r=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];r&&this.setState({fontSize:window.getComputedStyle(r).fontSize,letterSpacing:window.getComputedStyle(r).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var r=this.props,i=r.x,o=r.y,l=r.width,c=r.height,d=r.orientation,m=r.tickSize,f=r.mirror,h=r.tickMargin,x,b,y,w,j,N,k=f?-1:1,D=n.tickSize||m,C=ut(n.tickCoord)?n.tickCoord:n.coordinate;switch(d){case"top":x=b=n.coordinate,w=o+ +!f*c,y=w-k*D,N=y-k*h,j=C;break;case"left":y=w=n.coordinate,b=i+ +!f*l,x=b-k*D,j=x-k*h,N=C;break;case"right":y=w=n.coordinate,b=i+ +f*l,x=b+k*D,j=x+k*h,N=C;break;default:x=b=n.coordinate,w=o+ +f*c,y=w+k*D,N=y+k*h,j=C;break}return{line:{x1:x,y1:y,x2:b,y2:w},tick:{x:j,y:N}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,r=n.orientation,i=n.mirror,o;switch(r){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,r=n.orientation,i=n.mirror,o="end";switch(r){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,r=n.x,i=n.y,o=n.width,l=n.height,c=n.orientation,d=n.mirror,m=n.axisLine,f=ts(ts(ts({},Rt(this.props,!1)),Rt(m,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!d||c==="bottom"&&d);f=ts(ts({},f),{},{x1:r,y1:i+h*l,x2:r+o,y2:i+h*l})}else{var x=+(c==="left"&&!d||c==="right"&&d);f=ts(ts({},f),{},{x1:r+x*o,y1:i,x2:r+x*o,y2:i+l})}return ie.createElement("line",tm({},f,{className:Yt("recharts-cartesian-axis-line",Rr(m,"className"))}))}},{key:"renderTicks",value:function(n,r,i){var o=this,l=this.props,c=l.tickLine,d=l.stroke,m=l.tick,f=l.tickFormatter,h=l.unit,x=T8(ts(ts({},this.props),{},{ticks:n}),r,i),b=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),w=Rt(this.props,!1),j=Rt(m,!1),N=ts(ts({},w),{},{fill:"none"},Rt(c,!1)),k=x.map(function(D,C){var S=o.getTickLineCoord(D),A=S.line,E=S.tick,R=ts(ts(ts(ts({textAnchor:b,verticalAnchor:y},w),{},{stroke:"none",fill:d},j),E),{},{index:C,payload:D,visibleTicksCount:x.length,tickFormatter:f});return ie.createElement(la,tm({className:"recharts-cartesian-axis-tick",key:"tick-".concat(D.value,"-").concat(D.coordinate,"-").concat(D.tickCoord)},Hc(o.props,D,C)),c&&ie.createElement("line",tm({},N,A,{className:Yt("recharts-cartesian-axis-tick-line",Rr(c,"className"))})),m&&t.renderTickItem(m,R,"".concat(Gt(f)?f(D.value,C):D.value).concat(h||"")))});return ie.createElement("g",{className:"recharts-cartesian-axis-ticks"},k)}},{key:"render",value:function(){var n=this,r=this.props,i=r.axisLine,o=r.width,l=r.height,c=r.ticksGenerator,d=r.className,m=r.hide;if(m)return null;var f=this.props,h=f.ticks,x=c5(f,p8e),b=h;return Gt(c)&&(b=h&&h.length>0?c(this.props):c(x)),o<=0||l<=0||!b||!b.length?null:ie.createElement(la,{className:Yt("recharts-cartesian-axis",d),ref:function(w){n.layerReference=w}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),hs.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,r,i){var o,l=Yt(r.className,"recharts-cartesian-axis-tick-value");return ie.isValidElement(n)?o=ie.cloneElement(n,ts(ts({},r),{},{className:l})):Gt(n)?o=n(ts(ts({},r),{},{className:l})):o=ie.createElement(bu,tm({},r,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])})(P.Component);D8(yf,"displayName","CartesianAxis");D8(yf,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var w8e=["x1","y1","x2","y2","key"],P8e=["offset"];function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function uq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Ls(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?uq(Object(a),!0).forEach(function(n){j8e(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):uq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function j8e(e,t,a){return t=k8e(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function k8e(e){var t=N8e(e,"string");return wu(t)=="symbol"?t:t+""}function N8e(e,t){if(wu(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(wu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Jd.apply(this,arguments)}function pq(e,t){if(e==null)return{};var a=A8e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function A8e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}var S8e=function(t){var a=t.fill;if(!a||a==="none")return null;var n=t.fillOpacity,r=t.x,i=t.y,o=t.width,l=t.height,c=t.ry;return ie.createElement("rect",{x:r,y:i,ry:c,width:o,height:l,stroke:"none",fill:a,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function wJ(e,t){var a;if(ie.isValidElement(e))a=ie.cloneElement(e,t);else if(Gt(e))a=e(t);else{var n=t.x1,r=t.y1,i=t.x2,o=t.y2,l=t.key,c=pq(t,w8e),d=Rt(c,!1);d.offset;var m=pq(d,P8e);a=ie.createElement("line",Jd({},m,{x1:n,y1:r,x2:i,y2:o,fill:"none",key:l}))}return a}function C8e(e){var t=e.x,a=e.width,n=e.horizontal,r=n===void 0?!0:n,i=e.horizontalPoints;if(!r||!i||!i.length)return null;var o=i.map(function(l,c){var d=Ls(Ls({},e),{},{x1:t,y1:l,x2:t+a,y2:l,key:"line-".concat(c),index:c});return wJ(r,d)});return ie.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function T8e(e){var t=e.y,a=e.height,n=e.vertical,r=n===void 0?!0:n,i=e.verticalPoints;if(!r||!i||!i.length)return null;var o=i.map(function(l,c){var d=Ls(Ls({},e),{},{x1:l,y1:t,x2:l,y2:t+a,key:"line-".concat(c),index:c});return wJ(r,d)});return ie.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function D8e(e){var t=e.horizontalFill,a=e.fillOpacity,n=e.x,r=e.y,i=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal,d=c===void 0?!0:c;if(!d||!t||!t.length)return null;var m=l.map(function(h){return Math.round(h+r-r)}).sort(function(h,x){return h-x});r!==m[0]&&m.unshift(0);var f=m.map(function(h,x){var b=!m[x+1],y=b?r+o-h:m[x+1]-h;if(y<=0)return null;var w=x%t.length;return ie.createElement("rect",{key:"react-".concat(x),y:h,x:n,height:y,width:i,stroke:"none",fill:t[w],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return ie.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function E8e(e){var t=e.vertical,a=t===void 0?!0:t,n=e.verticalFill,r=e.fillOpacity,i=e.x,o=e.y,l=e.width,c=e.height,d=e.verticalPoints;if(!a||!n||!n.length)return null;var m=d.map(function(h){return Math.round(h+i-i)}).sort(function(h,x){return h-x});i!==m[0]&&m.unshift(0);var f=m.map(function(h,x){var b=!m[x+1],y=b?i+l-h:m[x+1]-h;if(y<=0)return null;var w=x%n.length;return ie.createElement("rect",{key:"react-".concat(x),x:h,y:o,width:y,height:c,stroke:"none",fill:n[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return ie.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var M8e=function(t,a){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return jZ(T8(Ls(Ls(Ls({},yf.defaultProps),n),{},{ticks:gl(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,a)},O8e=function(t,a){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return jZ(T8(Ls(Ls(Ls({},yf.defaultProps),n),{},{ticks:gl(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,a)},Ep={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function zr(e){var t,a,n,r,i,o,l=N8(),c=A8(),d=yDe(),m=Ls(Ls({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ep.stroke,fill:(a=e.fill)!==null&&a!==void 0?a:Ep.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ep.horizontal,horizontalFill:(r=e.horizontalFill)!==null&&r!==void 0?r:Ep.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Ep.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ep.verticalFill,x:ut(e.x)?e.x:d.left,y:ut(e.y)?e.y:d.top,width:ut(e.width)?e.width:d.width,height:ut(e.height)?e.height:d.height}),f=m.x,h=m.y,x=m.width,b=m.height,y=m.syncWithTicks,w=m.horizontalValues,j=m.verticalValues,N=xDe(),k=bDe();if(!ut(x)||x<=0||!ut(b)||b<=0||!ut(f)||f!==+f||!ut(h)||h!==+h)return null;var D=m.verticalCoordinatesGenerator||M8e,C=m.horizontalCoordinatesGenerator||O8e,S=m.horizontalPoints,A=m.verticalPoints;if((!S||!S.length)&&Gt(C)){var E=w&&w.length,R=C({yAxis:k?Ls(Ls({},k),{},{ticks:E?w:k.ticks}):void 0,width:l,height:c,offset:d},E?!0:y);Wi(Array.isArray(R),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(wu(R),"]")),Array.isArray(R)&&(S=R)}if((!A||!A.length)&&Gt(D)){var F=j&&j.length,I=D({xAxis:N?Ls(Ls({},N),{},{ticks:F?j:N.ticks}):void 0,width:l,height:c,offset:d},F?!0:y);Wi(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(wu(I),"]")),Array.isArray(I)&&(A=I)}return ie.createElement("g",{className:"recharts-cartesian-grid"},ie.createElement(S8e,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),ie.createElement(C8e,Jd({},m,{offset:d,horizontalPoints:S,xAxis:N,yAxis:k})),ie.createElement(T8e,Jd({},m,{offset:d,verticalPoints:A,xAxis:N,yAxis:k})),ie.createElement(D8e,Jd({},m,{horizontalPoints:S})),ie.createElement(E8e,Jd({},m,{verticalPoints:A})))}zr.displayName="CartesianGrid";var R8e=["type","layout","connectNulls","ref"],z8e=["key"];function Um(e){"@babel/helpers - typeof";return Um=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},Um(e)}function mq(e,t){if(e==null)return{};var a=_8e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _8e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},bg.apply(this,arguments)}function fq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Nr(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?fq(Object(a),!0).forEach(function(n){Ii(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Mp(e){return B8e(e)||F8e(e)||L8e(e)||I8e()}function I8e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 940In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L8e(e,t){if(e){if(typeof e=="string")return tT(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return tT(e,t)}}function F8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B8e(e){if(Array.isArray(e))return tT(e)}function tT(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function G8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hq(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jJ(n.key),n)}}function H8e(e,t,a){return t&&hq(e.prototype,t),a&&hq(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function q8e(e,t,a){return t=h1(t),U8e(e,PJ()?Reflect.construct(t,a||[],h1(e).constructor):t.apply(e,a))}function U8e(e,t){if(t&&(Um(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V8e(e)}function V8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PJ=function(){return!!e})()}function h1(e){return h1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},h1(e)}function Q8e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aT(e,t)}function aT(e,t){return aT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},aT(e,t)}function Ii(e,t,a){return t=jJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function jJ(e){var t=W8e(e,"string");return Um(t)=="symbol"?t:t+""}function W8e(e,t){if(Um(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Um(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kn=(function(e){function t(){var a;G8e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a=q8e(this,t,[].concat(r)),Ii(a,"state",{isAnimationFinished:!0,totalLength:0}),Ii(a,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),Ii(a,"getStrokeDasharray",function(o,l,c){var d=c.reduce(function(j,N){return j+N});if(!d)return a.generateSimpleStrokeDasharray(l,o);for(var m=Math.floor(o/d),f=o%d,h=l-o,x=[],b=0,y=0;b<c.length;y+=c[b],++b)if(y+c[b]>f){x=[].concat(Mp(c.slice(0,b)),[f-y]);break}var w=x.length%2===0?[0,h]:[h];return[].concat(Mp(t.repeat(c,m)),Mp(x),w).map(function(j){return"".concat(j,"px")}).join(", ")}),Ii(a,"id",Zc("recharts-line-")),Ii(a,"pathRef",function(o){a.mainCurve=o}),Ii(a,"handleAnimationEnd",function(){a.setState({isAnimationFinished:!0}),a.props.onAnimationEnd&&a.props.onAnimationEnd()}),Ii(a,"handleAnimationStart",function(){a.setState({isAnimationFinished:!1}),a.props.onAnimationStart&&a.props.onAnimationStart()}),a}return Q8e(t,e),H8e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,l=i.xAxis,c=i.yAxis,d=i.layout,m=i.children,f=Ys(m,vf);if(!f)return null;var h=function(y,w){return{x:y.x,y:y.y,value:y.value,errorVal:xn(y.payload,w)}},x={clipPath:n?"url(#clipPath-".concat(r,")"):null};return ie.createElement(la,x,f.map(function(b){return ie.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:o,xAxis:l,yAxis:c,layout:d,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,r,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,c=l.dot,d=l.points,m=l.dataKey,f=Rt(this.props,!1),h=Rt(c,!0),x=d.map(function(y,w){var j=Nr(Nr(Nr({key:"dot-".concat(w),r:3},f),h),{},{index:w,cx:y.x,cy:y.y,value:y.value,dataKey:m,payload:y.payload,points:d});return t.renderDotItem(c,j)}),b={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(i,")"):null};return ie.createElement(la,bg({className:"recharts-line-dots",key:"dots"},b),x)}},{key:"renderCurveStatically",value:function(n,r,i,o){var l=this.props,c=l.type,d=l.layout,m=l.connectNulls;l.ref;var f=mq(l,R8e),h=Nr(Nr(Nr({},Rt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(i,")"):null,points:n},o),{},{type:c,layout:d,connectNulls:m});return ie.createElement(Mc,bg({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,r){var i=this,o=this.props,l=o.points,c=o.strokeDasharray,d=o.isAnimationActive,m=o.animationBegin,f=o.animationDuration,h=o.animationEasing,x=o.animationId,b=o.animateNewValues,y=o.width,w=o.height,j=this.state,N=j.prevPoints,k=j.totalLength;return ie.createElement(vi,{begin:m,duration:f,isActive:d,easing:h,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(D){var C=D.t;if(N){var S=N.length/l.length,A=l.map(function(H,_){var V=Math.floor(_*S);if(N[V]){var W=N[V],B=Nn(W.x,H.x),K=Nn(W.y,H.y);return Nr(Nr({},H),{},{x:B(C),y:K(C)})}if(b){var ae=Nn(y*2,H.x),$=Nn(w/2,H.y);return Nr(Nr({},H),{},{x:ae(C),y:$(C)})}return Nr(Nr({},H),{},{x:H.x,y:H.y})});return i.renderCurveStatically(A,n,r)}var E=Nn(0,k),R=E(C),F;if(c){var I="".concat(c).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});F=i.getStrokeDasharray(R,k,I)}else F=i.generateSimpleStrokeDasharray(k,R);return i.renderCurveStatically(l,n,r,{strokeDasharray:F})})}},{key:"renderCurve",value:function(n,r){var i=this.props,o=i.points,l=i.isAnimationActive,c=this.state,d=c.prevPoints,m=c.totalLength;return l&&o&&o.length&&(!d&&m>0||!qc(d,o))?this.renderCurveWithAnimation(n,r):this.renderCurveStatically(o,n,r)}},{key:"render",value:function(){var n,r=this.props,i=r.hide,o=r.dot,l=r.points,c=r.className,d=r.xAxis,m=r.yAxis,f=r.top,h=r.left,x=r.width,b=r.height,y=r.isAnimationActive,w=r.id;if(i||!l||!l.length)return null;var j=this.state.isAnimationFinished,N=l.length===1,k=Yt("recharts-line",c),D=d&&d.allowDataOverflow,C=m&&m.allowDataOverflow,S=D||C,A=Ft(w)?this.id:w,E=(n=Rt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},R=E.r,F=R===void 0?3:R,I=E.strokeWidth,H=I===void 0?2:I,_=NX(o)?o:{},V=_.clipDot,W=V===void 0?!0:V,B=F*2+H;return ie.createElement(la,{className:k},D||C?ie.createElement("defs",null,ie.createElement("clipPath",{id:"clipPath-".concat(A)},ie.createElement("rect",{x:D?h:h-x/2,y:C?f:f-b/2,width:D?x:x*2,height:C?b:b*2})),!W&&ie.createElement("clipPath",{id:"clipPath-dots-".concat(A)},ie.createElement("rect",{x:h-B/2,y:f-B/2,width:x+B,height:b+B}))):null,!N&&this.renderCurve(S,A),this.renderErrorBar(S,A),(N||o)&&this.renderDots(S,W,A),(!y||j)&&Ki.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:r.curPoints}:n.points!==r.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,r){for(var i=n.length%2!==0?[].concat(Mp(n),[0]):n,o=[],l=0;l<r;++l)o=[].concat(Mp(o),Mp(i));return o}},{key:"renderDotItem",value:function(n,r){var i;if(ie.isValidElement(n))i=ie.cloneElement(n,r);else if(Gt(n))i=n(r);else{var o=r.key,l=mq(r,z8e),c=Yt("recharts-line-dot",typeof n!="boolean"?n.className:"");i=ie.createElement(cb,bg({key:o},l,{className:c}))}return i}}])})(P.PureComponent);Ii(Kn,"displayName","Line");Ii(Kn,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Il.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ii(Kn,"getComposedData",function(e){var t=e.props,a=e.xAxis,n=e.yAxis,r=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,l=e.bandSize,c=e.displayedData,d=e.offset,m=t.layout,f=c.map(function(h,x){var b=xn(h,o);return m==="horizontal"?{x:Mm({axis:a,ticks:r,bandSize:l,entry:h,index:x}),y:Ft(b)?null:n.scale(b),value:b,payload:h}:{x:Ft(b)?null:a.scale(b),y:Mm({axis:n,ticks:i,bandSize:l,entry:h,index:x}),value:b,payload:h}});return Nr({points:f,layout:m},d)});var K8e=["layout","type","stroke","connectNulls","isRange","ref"],$8e=["key"],kJ;function Vm(e){"@babel/helpers - typeof";return Vm=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},Vm(e)}function NJ(e,t){if(e==null)return{};var a=X8e(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function X8e(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},eu.apply(this,arguments)}function gq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function wc(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?gq(Object(a),!0).forEach(function(n){xo(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):gq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Y8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xq(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SJ(n.key),n)}}function Z8e(e,t,a){return t&&xq(e.prototype,t),a&&xq(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function J8e(e,t,a){return t=g1(t),eEe(e,AJ()?Reflect.construct(t,a||[],g1(e).constructor):t.apply(e,a))}function eEe(e,t){if(t&&(Vm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tEe(e)}function tEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AJ=function(){return!!e})()}function g1(e){return g1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},g1(e)}function aEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nT(e,t)}function nT(e,t){return nT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},nT(e,t)}function xo(e,t,a){return t=SJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function SJ(e){var t=nEe(e,"string");return Vm(t)=="symbol"?t:t+""}function nEe(e,t){if(Vm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Vm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _u=(function(e){function t(){var a;Y8e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a=J8e(this,t,[].concat(r)),xo(a,"state",{isAnimationFinished:!0}),xo(a,"id",Zc("recharts-area-")),xo(a,"handleAnimationEnd",function(){var o=a.props.onAnimationEnd;a.setState({isAnimationFinished:!0}),Gt(o)&&o()}),xo(a,"handleAnimationStart",function(){var o=a.props.onAnimationStart;a.setState({isAnimationFinished:!1}),Gt(o)&&o()}),a}return aEe(t,e),Z8e(t,[{key:"renderDots",value:function(n,r,i){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var c=this.props,d=c.dot,m=c.points,f=c.dataKey,h=Rt(this.props,!1),x=Rt(d,!0),b=m.map(function(w,j){var N=wc(wc(wc({key:"dot-".concat(j),r:3},h),x),{},{index:j,cx:w.x,cy:w.y,dataKey:f,value:w.value,payload:w.payload,points:m});return t.renderDotItem(d,N)}),y={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(i,")"):null};return ie.createElement(la,eu({className:"recharts-area-dots"},y),b)}},{key:"renderHorizontalRect",value:function(n){var r=this.props,i=r.baseLine,o=r.points,l=r.strokeWidth,c=o[0].x,d=o[o.length-1].x,m=n*Math.abs(c-d),f=Ac(o.map(function(h){return h.y||0}));return ut(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Ac(i.map(function(h){return h.y||0})),f)),ut(f)?ie.createElement("rect",{x:c<d?c:c-m,y:0,width:m,height:Math.floor(f+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var r=this.props,i=r.baseLine,o=r.points,l=r.strokeWidth,c=o[0].y,d=o[o.length-1].y,m=n*Math.abs(c-d),f=Ac(o.map(function(h){return h.x||0}));return ut(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Ac(i.map(function(h){return h.x||0})),f)),ut(f)?ie.createElement("rect",{x:0,y:c<d?c:c-m,width:f+(l?parseInt("".concat(l),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(n){var r=this.props.layout;return r==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,r,i,o){var l=this.props,c=l.layout,d=l.type,m=l.stroke,f=l.connectNulls,h=l.isRange;l.ref;var x=NJ(l,K8e);return ie.createElement(la,{clipPath:i?"url(#clipPath-".concat(o,")"):null},ie.createElement(Mc,eu({},Rt(x,!0),{points:n,connectNulls:f,type:d,baseLine:r,layout:c,stroke:"none",className:"recharts-area-area"})),m!=="none"&&ie.createElement(Mc,eu({},Rt(this.props,!1),{className:"recharts-area-curve",layout:c,type:d,connectNulls:f,fill:"none",points:n})),m!=="none"&&h&&ie.createElement(Mc,eu({},Rt(this.props,!1),{className:"recharts-area-curve",layout:c,type:d,connectNulls:f,fill:"none",points:r})))}},{key:"renderAreaWithAnimation",value:function(n,r){var i=this,o=this.props,l=o.points,c=o.baseLine,d=o.isAnimationActive,m=o.animationBegin,f=o.animationDuration,h=o.animationEasing,x=o.animationId,b=this.state,y=b.prevPoints,w=b.prevBaseLine;return ie.createElement(vi,{begin:m,duration:f,isActive:d,easing:h,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var N=j.t;if(y){var k=y.length/l.length,D=l.map(function(E,R){var F=Math.floor(R*k);if(y[F]){var I=y[F],H=Nn(I.x,E.x),_=Nn(I.y,E.y);return wc(wc({},E),{},{x:H(N),y:_(N)})}return E}),C;if(ut(c)&&typeof c=="number"){var S=Nn(w,c);C=S(N)}else if(Ft(c)||ff(c)){var A=Nn(w,0);C=A(N)}else C=c.map(function(E,R){var F=Math.floor(R*k);if(w[F]){var I=w[F],H=Nn(I.x,E.x),_=Nn(I.y,E.y);return wc(wc({},E),{},{x:H(N),y:_(N)})}return E});return i.renderAreaStatically(D,C,n,r)}return ie.createElement(la,null,ie.createElement("defs",null,ie.createElement("clipPath",{id:"animationClipPath-".concat(r)},i.renderClipRect(N))),ie.createElement(la,{clipPath:"url(#animationClipPath-".concat(r,")")},i.renderAreaStatically(l,c,n,r)))})}},{key:"renderArea",value:function(n,r){var i=this.props,o=i.points,l=i.baseLine,c=i.isAnimationActive,d=this.state,m=d.prevPoints,f=d.prevBaseLine,h=d.totalLength;return c&&o&&o.length&&(!m&&h>0||!qc(m,o)||!qc(f,l))?this.renderAreaWithAnimation(n,r):this.renderAreaStatically(o,l,n,r)}},{key:"render",value:function(){var n,r=this.props,i=r.hide,o=r.dot,l=r.points,c=r.className,d=r.top,m=r.left,f=r.xAxis,h=r.yAxis,x=r.width,b=r.height,y=r.isAnimationActive,w=r.id;if(i||!l||!l.length)return null;var j=this.state.isAnimationFinished,N=l.length===1,k=Yt("recharts-area",c),D=f&&f.allowDataOverflow,C=h&&h.allowDataOverflow,S=D||C,A=Ft(w)?this.id:w,E=(n=Rt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},R=E.r,F=R===void 0?3:R,I=E.strokeWidth,H=I===void 0?2:I,_=NX(o)?o:{},V=_.clipDot,W=V===void 0?!0:V,B=F*2+H;return ie.createElement(la,{className:k},D||C?ie.createElement("defs",null,ie.createElement("clipPath",{id:"clipPath-".concat(A)},ie.createElement("rect",{x:D?m:m-x/2,y:C?d:d-b/2,width:D?x:x*2,height:C?b:b*2})),!W&&ie.createElement("clipPath",{id:"clipPath-dots-".concat(A)},ie.createElement("rect",{x:m-B/2,y:d-B/2,width:x+B,height:b+B}))):null,N?null:this.renderArea(S,A),(o||N)&&this.renderDots(S,W,A),(!y||j)&&Ki.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:r.curPoints,prevBaseLine:r.curBaseLine}:n.points!==r.curPoints||n.baseLine!==r.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(P.PureComponent);kJ=_u;xo(_u,"displayName","Area");xo(_u,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Il.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});xo(_u,"getBaseValue",function(e,t,a,n){var r=e.layout,i=e.baseValue,o=t.props.baseValue,l=o??i;if(ut(l)&&typeof l=="number")return l;var c=r==="horizontal"?n:a,d=c.scale.domain();if(c.type==="number"){var m=Math.max(d[0],d[1]),f=Math.min(d[0],d[1]);return l==="dataMin"?f:l==="dataMax"||m<0?m:Math.max(Math.min(d[0],d[1]),0)}return l==="dataMin"?d[0]:l==="dataMax"?d[1]:d[0]});xo(_u,"getComposedData",function(e){var t=e.props,a=e.item,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,c=e.dataKey,d=e.stackedData,m=e.dataStartIndex,f=e.displayedData,h=e.offset,x=t.layout,b=d&&d.length,y=kJ.getBaseValue(t,a,n,r),w=x==="horizontal",j=!1,N=f.map(function(D,C){var S;b?S=d[m+C]:(S=xn(D,c),Array.isArray(S)?j=!0:S=[y,S]);var A=S[1]==null||b&&xn(D,c)==null;return w?{x:Mm({axis:n,ticks:i,bandSize:l,entry:D,index:C}),y:A?null:r.scale(S[1]),value:S,payload:D}:{x:A?null:n.scale(S[1]),y:Mm({axis:r,ticks:o,bandSize:l,entry:D,index:C}),value:S,payload:D}}),k;return b||j?k=N.map(function(D){var C=Array.isArray(D.value)?D.value[0]:null;return w?{x:D.x,y:C!=null&&D.y!=null?r.scale(C):null}:{x:C!=null?n.scale(C):null,y:D.y}}):k=w?r.scale(y):n.scale(y),wc({points:N,baseLine:k,layout:x,isRange:j},h)});xo(_u,"renderDotItem",function(e,t){var a;if(ie.isValidElement(e))a=ie.cloneElement(e,t);else if(Gt(e))a=e(t);else{var n=Yt("recharts-area-dot",typeof e!="boolean"?e.className:""),r=t.key,i=NJ(t,$8e);a=ie.createElement(cb,eu({},i,{key:r,className:n}))}return a});function Qm(e){"@babel/helpers - typeof";return Qm=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},Qm(e)}function sEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rEe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DJ(n.key),n)}}function iEe(e,t,a){return t&&rEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oEe(e,t,a){return t=x1(t),lEe(e,CJ()?Reflect.construct(t,a||[],x1(e).constructor):t.apply(e,a))}function lEe(e,t){if(t&&(Qm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cEe(e)}function cEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CJ=function(){return!!e})()}function x1(e){return x1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},x1(e)}function dEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sT(e,t)}function sT(e,t){return sT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sT(e,t)}function TJ(e,t,a){return t=DJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function DJ(e){var t=uEe(e,"string");return Qm(t)=="symbol"?t:t+""}function uEe(e,t){if(Qm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Qm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rw=(function(e){function t(){return sEe(this,t),oEe(this,t,arguments)}return dEe(t,e),iEe(t,[{key:"render",value:function(){return null}}])})(P.Component);TJ(rw,"displayName","ZAxis");TJ(rw,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var pEe=["option","isActive"];function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},vg.apply(this,arguments)}function mEe(e,t){if(e==null)return{};var a=fEe(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function fEe(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function hEe(e){var t=e.option,a=e.isActive,n=mEe(e,pEe);return typeof t=="string"?P.createElement(n1,vg({option:P.createElement(R2,vg({type:t},n)),isActive:a,shapeType:"symbols"},n)):P.createElement(n1,vg({option:t,isActive:a,shapeType:"symbols"},n))}function Wm(e){"@babel/helpers - typeof";return Wm=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},Wm(e)}function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},yg.apply(this,arguments)}function bq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function si(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?bq(Object(a),!0).forEach(function(n){Cc(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):bq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function gEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vq(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MJ(n.key),n)}}function xEe(e,t,a){return t&&vq(e.prototype,t),a&&vq(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function bEe(e,t,a){return t=b1(t),vEe(e,EJ()?Reflect.construct(t,a||[],b1(e).constructor):t.apply(e,a))}function vEe(e,t){if(t&&(Wm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yEe(e)}function yEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EJ=function(){return!!e})()}function b1(e){return b1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},b1(e)}function wEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rT(e,t)}function rT(e,t){return rT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},rT(e,t)}function Cc(e,t,a){return t=MJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function MJ(e){var t=PEe(e,"string");return Wm(t)=="symbol"?t:t+""}function PEe(e,t){if(Wm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Wm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iw=(function(e){function t(){var a;gEe(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return a=bEe(this,t,[].concat(r)),Cc(a,"state",{isAnimationFinished:!1}),Cc(a,"handleAnimationEnd",function(){a.setState({isAnimationFinished:!0})}),Cc(a,"handleAnimationStart",function(){a.setState({isAnimationFinished:!1})}),Cc(a,"id",Zc("recharts-scatter-")),a}return wEe(t,e),xEe(t,[{key:"renderSymbolsStatically",value:function(n){var r=this,i=this.props,o=i.shape,l=i.activeShape,c=i.activeIndex,d=Rt(this.props,!1);return n.map(function(m,f){var h=c===f,x=h?l:o,b=si(si({},d),m);return ie.createElement(la,yg({className:"recharts-scatter-symbol",key:"symbol-".concat(m?.cx,"-").concat(m?.cy,"-").concat(m?.size,"-").concat(f)},Hc(r.props,m,f),{role:"img"}),ie.createElement(hEe,yg({option:x,isActive:h,key:"symbol-".concat(f)},b)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,r=this.props,i=r.points,o=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,d=r.animationEasing,m=r.animationId,f=this.state.prevPoints;return ie.createElement(vi,{begin:l,duration:c,isActive:o,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var x=h.t,b=i.map(function(y,w){var j=f&&f[w];if(j){var N=Nn(j.cx,y.cx),k=Nn(j.cy,y.cy),D=Nn(j.size,y.size);return si(si({},y),{},{cx:N(x),cy:k(x),size:D(x)})}var C=Nn(0,y.size);return si(si({},y),{},{size:C(x)})});return ie.createElement(la,null,n.renderSymbolsStatically(b))})}},{key:"renderSymbols",value:function(){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state.prevPoints;return i&&r&&r.length&&(!o||!qc(o,r))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(r)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.points,o=r.xAxis,l=r.yAxis,c=r.children,d=Ys(c,vf);return d?d.map(function(m,f){var h=m.props,x=h.direction,b=h.dataKey;return ie.cloneElement(m,{key:"".concat(x,"-").concat(b,"-").concat(i[f]),data:i,xAxis:o,yAxis:l,layout:x==="x"?"vertical":"horizontal",dataPointFormatter:function(w,j){return{x:w.cx,y:w.cy,value:x==="x"?+w.node.x:+w.node.y,errorVal:xn(w,j)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,r=n.points,i=n.line,o=n.lineType,l=n.lineJointType,c=Rt(this.props,!1),d=Rt(i,!1),m,f;if(o==="joint")m=r.map(function(k){return{x:k.cx,y:k.cy}});else if(o==="fitting"){var h=g2e(r),x=h.xmin,b=h.xmax,y=h.a,w=h.b,j=function(D){return y*D+w};m=[{x,y:j(x)},{x:b,y:j(b)}]}var N=si(si(si({},c),{},{fill:"none",stroke:c&&c.fill},d),{},{points:m});return ie.isValidElement(i)?f=ie.cloneElement(i,N):Gt(i)?f=i(N):f=ie.createElement(Mc,yg({},N,{type:l})),ie.createElement(la,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,r=n.hide,i=n.points,o=n.line,l=n.className,c=n.xAxis,d=n.yAxis,m=n.left,f=n.top,h=n.width,x=n.height,b=n.id,y=n.isAnimationActive;if(r||!i||!i.length)return null;var w=this.state.isAnimationFinished,j=Yt("recharts-scatter",l),N=c&&c.allowDataOverflow,k=d&&d.allowDataOverflow,D=N||k,C=Ft(b)?this.id:b;return ie.createElement(la,{className:j,clipPath:D?"url(#clipPath-".concat(C,")"):null},N||k?ie.createElement("defs",null,ie.createElement("clipPath",{id:"clipPath-".concat(C)},ie.createElement("rect",{x:N?m:m-h/2,y:k?f:f-x/2,width:N?h:h*2,height:k?x:x*2}))):null,o&&this.renderLine(),this.renderErrorBar(),ie.createElement(la,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||w)&&Ki.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(n,r){return n.animationId!==r.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:r.curPoints}:n.points!==r.curPoints?{curPoints:n.points}:null}}])})(P.PureComponent);Cc(iw,"displayName","Scatter");Cc(iw,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Il.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Cc(iw,"getComposedData",function(e){var t=e.xAxis,a=e.yAxis,n=e.zAxis,r=e.item,i=e.displayedData,o=e.xAxisTicks,l=e.yAxisTicks,c=e.offset,d=r.props.tooltipType,m=Ys(r.props.children,Mu),f=Ft(t.dataKey)?r.props.dataKey:t.dataKey,h=Ft(a.dataKey)?r.props.dataKey:a.dataKey,x=n&&n.dataKey,b=n?n.range:rw.defaultProps.range,y=b&&b[0],w=t.scale.bandwidth?t.scale.bandwidth():0,j=a.scale.bandwidth?a.scale.bandwidth():0,N=i.map(function(k,D){var C=xn(k,f),S=xn(k,h),A=!Ft(x)&&xn(k,x)||"-",E=[{name:Ft(t.dataKey)?r.props.name:t.name||t.dataKey,unit:t.unit||"",value:C,payload:k,dataKey:f,type:d},{name:Ft(a.dataKey)?r.props.name:a.name||a.dataKey,unit:a.unit||"",value:S,payload:k,dataKey:h,type:d}];A!=="-"&&E.push({name:n.name||n.dataKey,unit:n.unit||"",value:A,payload:k,dataKey:x,type:d});var R=Mm({axis:t,ticks:o,bandSize:w,entry:k,index:D,dataKey:f}),F=Mm({axis:a,ticks:l,bandSize:j,entry:k,index:D,dataKey:h}),I=A!=="-"?n.scale(A):y,H=Math.sqrt(Math.max(I,0)/Math.PI);return si(si({},k),{},{cx:R,cy:F,x:R-H,y:F-H,xAxis:t,yAxis:a,zAxis:n,width:2*H,height:2*H,size:I,node:{x:C,y:S,z:A},tooltipPayload:E,tooltipPosition:{x:R,y:F},payload:k},m&&m[D]&&m[D].props)});return si({points:N},c)});function Km(e){"@babel/helpers - typeof";return Km=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},Km(e)}function jEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kEe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zJ(n.key),n)}}function NEe(e,t,a){return t&&kEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AEe(e,t,a){return t=v1(t),SEe(e,OJ()?Reflect.construct(t,a||[],v1(e).constructor):t.apply(e,a))}function SEe(e,t){if(t&&(Km(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CEe(e)}function CEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OJ=function(){return!!e})()}function v1(e){return v1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},v1(e)}function TEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iT(e,t)}function iT(e,t){return iT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},iT(e,t)}function RJ(e,t,a){return t=zJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function zJ(e){var t=DEe(e,"string");return Km(t)=="symbol"?t:t+""}function DEe(e,t){if(Km(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Km(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oT(){return oT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},oT.apply(this,arguments)}function EEe(e){var t=e.xAxisId,a=N8(),n=A8(),r=dJ(t);return r==null?null:P.createElement(yf,oT({},r,{className:Yt("recharts-".concat(r.axisType," ").concat(r.axisType),r.className),viewBox:{x:0,y:0,width:a,height:n},ticksGenerator:function(o){return gl(o,!0)}}))}var is=(function(e){function t(){return jEe(this,t),AEe(this,t,arguments)}return TEe(t,e),NEe(t,[{key:"render",value:function(){return P.createElement(EEe,this.props)}}])})(P.Component);RJ(is,"displayName","XAxis");RJ(is,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function $m(e){"@babel/helpers - typeof";return $m=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},$m(e)}function MEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OEe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LJ(n.key),n)}}function REe(e,t,a){return t&&OEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zEe(e,t,a){return t=y1(t),_Ee(e,_J()?Reflect.construct(t,a||[],y1(e).constructor):t.apply(e,a))}function _Ee(e,t){if(t&&($m(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IEe(e)}function IEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _J(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_J=function(){return!!e})()}function y1(e){return y1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},y1(e)}function LEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lT(e,t)}function lT(e,t){return lT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},lT(e,t)}function IJ(e,t,a){return t=LJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function LJ(e){var t=FEe(e,"string");return $m(t)=="symbol"?t:t+""}function FEe(e,t){if($m(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if($m(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cT(){return cT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},cT.apply(this,arguments)}var BEe=function(t){var a=t.yAxisId,n=N8(),r=A8(),i=uJ(a);return i==null?null:P.createElement(yf,cT({},i,{className:Yt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return gl(l,!0)}}))},Yn=(function(e){function t(){return MEe(this,t),zEe(this,t,arguments)}return LEe(t,e),REe(t,[{key:"render",value:function(){return P.createElement(BEe,this.props)}}])})(P.Component);IJ(Yn,"displayName","YAxis");IJ(Yn,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function yq(e){return UEe(e)||qEe(e)||HEe(e)||GEe()}function GEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 941In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HEe(e,t){if(e){if(typeof e=="string")return dT(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return dT(e,t)}}function qEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UEe(e){if(Array.isArray(e))return dT(e)}function dT(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var uT=function(t,a,n,r,i){var o=Ys(t,C8),l=Ys(t,aw),c=[].concat(yq(o),yq(l)),d=Ys(t,sw),m="".concat(r,"Id"),f=r[0],h=a;if(c.length&&(h=c.reduce(function(y,w){if(w.props[m]===n&&jo(w.props,"extendDomain")&&ut(w.props[f])){var j=w.props[f];return[Math.min(y[0],j),Math.max(y[1],j)]}return y},h)),d.length){var x="".concat(f,"1"),b="".concat(f,"2");h=d.reduce(function(y,w){if(w.props[m]===n&&jo(w.props,"extendDomain")&&ut(w.props[x])&&ut(w.props[b])){var j=w.props[x],N=w.props[b];return[Math.min(y[0],j,N),Math.max(y[1],j,N)]}return y},h)}return i&&i.length&&(h=i.reduce(function(y,w){return ut(w)?[Math.min(y[0],w),Math.max(y[1],w)]:y},h)),h},d5={exports:{}},wq;function VEe(){return wq||(wq=1,(function(e){var t=Object.prototype.hasOwnProperty,a="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(a=!1));function r(c,d,m){this.fn=c,this.context=d,this.once=m||!1}function i(c,d,m,f,h){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new r(m,f||c,h),b=a?a+d:d;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],x]:c._events[b].push(x):(c._events[b]=x,c._eventsCount++),c}function o(c,d){--c._eventsCount===0?c._events=new n:delete c._events[d]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],m,f;if(this._eventsCount===0)return d;for(f in m=this._events)t.call(m,f)&&d.push(a?f.slice(1):f);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},l.prototype.listeners=function(d){var m=a?a+d:d,f=this._events[m];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,x=f.length,b=new Array(x);h<x;h++)b[h]=f[h].fn;return b},l.prototype.listenerCount=function(d){var m=a?a+d:d,f=this._events[m];return f?f.fn?1:f.length:0},l.prototype.emit=function(d,m,f,h,x,b){var y=a?a+d:d;if(!this._events[y])return!1;var w=this._events[y],j=arguments.length,N,k;if(w.fn){switch(w.once&&this.removeListener(d,w.fn,void 0,!0),j){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,m),!0;case 3:return w.fn.call(w.context,m,f),!0;case 4:return w.fn.call(w.context,m,f,h),!0;case 5:return w.fn.call(w.context,m,f,h,x),!0;case 6:return w.fn.call(w.context,m,f,h,x,b),!0}for(k=1,N=new Array(j-1);k<j;k++)N[k-1]=arguments[k];w.fn.apply(w.context,N)}else{var D=w.length,C;for(k=0;k<D;k++)switch(w[k].once&&this.removeListener(d,w[k].fn,void 0,!0),j){case 1:w[k].fn.call(w[k].context);break;case 2:w[k].fn.call(w[k].context,m);break;case 3:w[k].fn.call(w[k].context,m,f);break;case 4:w[k].fn.call(w[k].context,m,f,h);break;default:if(!N)for(C=1,N=new Array(j-1);C<j;C++)N[C-1]=arguments[C];w[k].fn.apply(w[k].context,N)}}return!0},l.prototype.on=function(d,m,f){return i(this,d,m,f,!1)},l.prototype.once=function(d,m,f){return i(this,d,m,f,!0)},l.prototype.removeListener=function(d,m,f,h){var x=a?a+d:d;if(!this._events[x])return this;if(!m)return o(this,x),this;var b=this._events[x];if(b.fn)b.fn===m&&(!h||b.once)&&(!f||b.context===f)&&o(this,x);else{for(var y=0,w=[],j=b.length;y<j;y++)(b[y].fn!==m||h&&!b[y].once||f&&b[y].context!==f)&&w.push(b[y]);w.length?this._events[x]=w.length===1?w[0]:w:o(this,x)}return this},l.prototype.removeAllListeners=function(d){var m;return d?(m=a?a+d:d,this._events[m]&&o(this,m)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=a,l.EventEmitter=l,e.exports=l})(d5)),d5.exports}var QEe=VEe();const WEe=Fa(QEe);var u5=new WEe,p5="recharts.syncMouseEvents";function Ax(e){"@babel/helpers - typeof";return Ax=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},Ax(e)}function KEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Ee(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FJ(n.key),n)}}function XEe(e,t,a){return t&&$Ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function m5(e,t,a){return t=FJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function FJ(e){var t=YEe(e,"string");return Ax(t)=="symbol"?t:t+""}function YEe(e,t){if(Ax(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Ax(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ZEe=(function(){function e(){KEe(this,e),m5(this,"activeIndex",0),m5(this,"coordinateList",[]),m5(this,"layout","horizontal")}return XEe(e,[{key:"setDetails",value:function(a){var n,r=a.coordinateList,i=r===void 0?null:r,o=a.container,l=o===void 0?null:o,c=a.layout,d=c===void 0?null:c,m=a.offset,f=m===void 0?null:m,h=a.mouseHandlerCallback,x=h===void 0?null:h;this.coordinateList=(n=i??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=d??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=x??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(a){if(this.coordinateList.length!==0)switch(a.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(a){this.activeIndex=a}},{key:"spoofMouse",value:function(){var a,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var r=this.container.getBoundingClientRect(),i=r.x,o=r.y,l=r.height,c=this.coordinateList[this.activeIndex].coordinate,d=((a=window)===null||a===void 0?void 0:a.scrollX)||0,m=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=i+c+d,h=o+this.offset.top+l/2+m;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function JEe(e,t,a){if(a==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],r=e?.[1];if(n&&r&&ut(n)&&ut(r))return!0}return!1}function eMe(e,t,a,n){var r=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-r:a.left+.5,y:e==="horizontal"?a.top+.5:t.y-r,width:e==="horizontal"?n:a.width-1,height:e==="horizontal"?a.height-1:n}}function BJ(e){var t=e.cx,a=e.cy,n=e.radius,r=e.startAngle,i=e.endAngle,o=mn(t,a,n,r),l=mn(t,a,n,i);return{points:[o,l],cx:t,cy:a,radius:n,startAngle:r,endAngle:i}}function tMe(e,t,a){var n,r,i,o;if(e==="horizontal")n=t.x,i=n,r=a.top,o=a.top+a.height;else if(e==="vertical")r=t.y,o=r,n=a.left,i=a.left+a.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,d=t.innerRadius,m=t.outerRadius,f=t.angle,h=mn(l,c,d,f),x=mn(l,c,m,f);n=h.x,r=h.y,i=x.x,o=x.y}else return BJ(t);return[{x:n,y:r},{x:i,y:o}]}function Sx(e){"@babel/helpers - typeof";return Sx=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},Sx(e)}function Pq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function cv(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Pq(Object(a),!0).forEach(function(n){aMe(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Pq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function aMe(e,t,a){return t=nMe(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function nMe(e){var t=sMe(e,"string");return Sx(t)=="symbol"?t:t+""}function sMe(e,t){if(Sx(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Sx(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rMe(e){var t,a,n=e.element,r=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,c=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,x=(t=n.props.cursor)!==null&&t!==void 0?t:(a=n.type.defaultProps)===null||a===void 0?void 0:a.cursor;if(!n||!x||!i||!o||h!=="ScatterChart"&&r!=="axis")return null;var b,y=Mc;if(h==="ScatterChart")b=o,y=Z4e;else if(h==="BarChart")b=eMe(f,o,c,m),y=y8;else if(f==="radial"){var w=BJ(o),j=w.cx,N=w.cy,k=w.radius,D=w.startAngle,C=w.endAngle;b={cx:j,cy:N,startAngle:D,endAngle:C,innerRadius:k,outerRadius:k},y=RZ}else b={points:tMe(f,o,c)},y=Mc;var S=cv(cv(cv(cv({stroke:"#ccc",pointerEvents:"none"},c),b),Rt(x,!1)),{},{payload:l,payloadIndex:d,className:Yt("recharts-tooltip-cursor",x.className)});return P.isValidElement(x)?P.cloneElement(x,S):P.createElement(y,S)}var iMe=["item"],oMe=["children","className","width","height","style","compact","title","desc"];function Xm(e){"@babel/helpers - typeof";return Xm=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},Xm(e)}function am(){return am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},am.apply(this,arguments)}function jq(e,t){return dMe(e)||cMe(e,t)||HJ(e,t)||lMe()}function lMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 942In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cMe(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var n,r,i,o,l=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(n=i.call(a)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(m){d=!0,r=m}finally{try{if(!c&&a.return!=null&&(o=a.return(),Object(o)!==o))return}finally{if(d)throw r}}return l}}function dMe(e){if(Array.isArray(e))return e}function kq(e,t){if(e==null)return{};var a=uMe(e,t),n,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function uMe(e,t){if(e==null)return{};var a={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;a[n]=e[n]}return a}function pMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mMe(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qJ(n.key),n)}}function fMe(e,t,a){return t&&mMe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hMe(e,t,a){return t=w1(t),gMe(e,GJ()?Reflect.construct(t,a||[],w1(e).constructor):t.apply(e,a))}function gMe(e,t){if(t&&(Xm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xMe(e)}function xMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GJ=function(){return!!e})()}function w1(e){return w1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},w1(e)}function bMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pT(e,t)}function pT(e,t){return pT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},pT(e,t)}function Ym(e){return wMe(e)||yMe(e)||HJ(e)||vMe()}function vMe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 943In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HJ(e,t){if(e){if(typeof e=="string")return mT(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return mT(e,t)}}function yMe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wMe(e){if(Array.isArray(e))return mT(e)}function mT(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function Nq(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function Xe(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Nq(Object(a),!0).forEach(function(n){Ht(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Nq(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function Ht(e,t,a){return t=qJ(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function qJ(e){var t=PMe(e,"string");return Xm(t)=="symbol"?t:t+""}function PMe(e,t){if(Xm(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t);if(Xm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jMe={xAxis:["bottom","top"],yAxis:["left","right"]},kMe={width:"100%",height:"100%"},UJ={x:0,y:0};function dv(e){return e}var NMe=function(t,a){return a==="horizontal"?t.x:a==="vertical"?t.y:a==="centric"?t.angle:t.radius},AMe=function(t,a,n,r){var i=a.find(function(m){return m&&m.index===n});if(i){if(t==="horizontal")return{x:i.coordinate,y:r.y};if(t==="vertical")return{x:r.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=r.radius;return Xe(Xe(Xe({},r),mn(r.cx,r.cy,l,o)),{},{angle:o,radius:l})}var c=i.coordinate,d=r.angle;return Xe(Xe(Xe({},r),mn(r.cx,r.cy,c,d)),{},{angle:d,radius:c})}return UJ},ow=function(t,a){var n=a.graphicalItems,r=a.dataStartIndex,i=a.dataEndIndex,o=(n??[]).reduce(function(l,c){var d=c.props.data;return d&&d.length?[].concat(Ym(l),Ym(d)):l},[]);return o.length>0?o:t&&t.length&&ut(r)&&ut(i)?t.slice(r,i+1):[]};function VJ(e){return e==="number"?[0,"auto"]:void 0}var fT=function(t,a,n,r){var i=t.graphicalItems,o=t.tooltipAxis,l=ow(a,t);return n<0||!i||!i.length||n>=l.length?null:i.reduce(function(c,d){var m,f=(m=d.props.data)!==null&&m!==void 0?m:a;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var x=f===void 0?l:f;h=wy(x,o.dataKey,r)}else h=f&&f[n]||l[n];return h?[].concat(Ym(c),[CZ(d,h)]):c},[])},Aq=function(t,a,n,r){var i=r||{x:t.chartX,y:t.chartY},o=NMe(i,n),l=t.orderedTooltipTicks,c=t.tooltipAxis,d=t.tooltipTicks,m=PSe(o,l,d,c);if(m>=0&&d){var f=d[m]&&d[m].value,h=fT(t,a,m,f),x=AMe(n,l,m,i);return{activeTooltipIndex:m,activeLabel:f,activePayload:h,activeCoordinate:x}}return null},SMe=function(t,a){var n=a.axes,r=a.graphicalItems,i=a.axisType,o=a.axisIdKey,l=a.stackGroups,c=a.dataStartIndex,d=a.dataEndIndex,m=t.layout,f=t.children,h=t.stackOffset,x=PZ(m,i);return n.reduce(function(b,y){var w,j=y.type.defaultProps!==void 0?Xe(Xe({},y.type.defaultProps),y.props):y.props,N=j.type,k=j.dataKey,D=j.allowDataOverflow,C=j.allowDuplicatedCategory,S=j.scale,A=j.ticks,E=j.includeHidden,R=j[o];if(b[R])return b;var F=ow(t.data,{graphicalItems:r.filter(function(Y){var Q,U=o in Y.props?Y.props[o]:(Q=Y.type.defaultProps)===null||Q===void 0?void 0:Q[o];return U===R}),dataStartIndex:c,dataEndIndex:d}),I=F.length,H,_,V;JEe(j.domain,D,N)&&(H=N4(j.domain,null,D),x&&(N==="number"||S!=="auto")&&(V=fg(F,k,"category")));var W=VJ(N);if(!H||H.length===0){var B,K=(B=j.domain)!==null&&B!==void 0?B:W;if(k){if(H=fg(F,k,N),N==="category"&&x){var ae=h2e(H);C&&ae?(_=H,H=r1(0,I)):C||(H=wG(K,H,y).reduce(function(Y,Q){return Y.indexOf(Q)>=0?Y:[].concat(Ym(Y),[Q])},[]))}else if(N==="category")C?H=H.filter(function(Y){return Y!==""&&!Ft(Y)}):H=wG(K,H,y).reduce(function(Y,Q){return Y.indexOf(Q)>=0||Q===""||Ft(Q)?Y:[].concat(Ym(Y),[Q])},[]);else if(N==="number"){var $=SSe(F,r.filter(function(Y){var Q,U,oe=o in Y.props?Y.props[o]:(Q=Y.type.defaultProps)===null||Q===void 0?void 0:Q[o],X="hide"in Y.props?Y.props.hide:(U=Y.type.defaultProps)===null||U===void 0?void 0:U.hide;return oe===R&&(E||!X)}),k,i,m);$&&(H=$)}x&&(N==="number"||S!=="auto")&&(V=fg(F,k,"category"))}else x?H=r1(0,I):l&&l[R]&&l[R].hasStack&&N==="number"?H=h==="expand"?[0,1]:SZ(l[R].stackGroups,c,d):H=wZ(F,r.filter(function(Y){var Q=o in Y.props?Y.props[o]:Y.type.defaultProps[o],U="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return Q===R&&(E||!U)}),N,m,!0);if(N==="number")H=uT(f,H,R,i,A),K&&(H=N4(K,H,D));else if(N==="category"&&K){var Z=K,O=H.every(function(Y){return Z.indexOf(Y)>=0});O&&(H=Z)}}return Xe(Xe({},b),{},Ht({},R,Xe(Xe({},j),{},{axisType:i,domain:H,categoricalDomain:V,duplicateDomain:_,originalDomain:(w=j.domain)!==null&&w!==void 0?w:W,isCategorical:x,layout:m})))},{})},CMe=function(t,a){var n=a.graphicalItems,r=a.Axis,i=a.axisType,o=a.axisIdKey,l=a.stackGroups,c=a.dataStartIndex,d=a.dataEndIndex,m=t.layout,f=t.children,h=ow(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:d}),x=h.length,b=PZ(m,i),y=-1;return n.reduce(function(w,j){var N=j.type.defaultProps!==void 0?Xe(Xe({},j.type.defaultProps),j.props):j.props,k=N[o],D=VJ("number");if(!w[k]){y++;var C;return b?C=r1(0,x):l&&l[k]&&l[k].hasStack?(C=SZ(l[k].stackGroups,c,d),C=uT(f,C,k,i)):(C=N4(D,wZ(h,n.filter(function(S){var A,E,R=o in S.props?S.props[o]:(A=S.type.defaultProps)===null||A===void 0?void 0:A[o],F="hide"in S.props?S.props.hide:(E=S.type.defaultProps)===null||E===void 0?void 0:E.hide;return R===k&&!F}),"number",m),r.defaultProps.allowDataOverflow),C=uT(f,C,k,i)),Xe(Xe({},w),{},Ht({},k,Xe(Xe({axisType:i},r.defaultProps),{},{hide:!0,orientation:Rr(jMe,"".concat(i,".").concat(y%2),null),domain:C,originalDomain:D,isCategorical:b,layout:m})))}return w},{})},TMe=function(t,a){var n=a.axisType,r=n===void 0?"xAxis":n,i=a.AxisComp,o=a.graphicalItems,l=a.stackGroups,c=a.dataStartIndex,d=a.dataEndIndex,m=t.children,f="".concat(r,"Id"),h=Ys(m,i),x={};return h&&h.length?x=SMe(t,{axes:h,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:d}):o&&o.length&&(x=CMe(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:l,dataStartIndex:c,dataEndIndex:d})),x},DMe=function(t){var a=kc(t),n=gl(a,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:WD(n,function(r){return r.coordinate}),tooltipAxis:a,tooltipAxisBandSize:Qy(a,n)}},Sq=function(t){var a=t.children,n=t.defaultShowTooltip,r=Sr(a,Lm),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},EMe=function(t){return!t||!t.length?!1:t.some(function(a){var n=vl(a&&a.type);return n&&n.indexOf("Bar")>=0})},Cq=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},MMe=function(t,a){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,c=l===void 0?{}:l,d=n.width,m=n.height,f=n.children,h=n.margin||{},x=Sr(f,Lm),b=Sr(f,fr),y=Object.keys(c).reduce(function(C,S){var A=c[S],E=A.orientation;return!A.mirror&&!A.hide?Xe(Xe({},C),{},Ht({},E,C[E]+A.width)):C},{left:h.left||0,right:h.right||0}),w=Object.keys(o).reduce(function(C,S){var A=o[S],E=A.orientation;return!A.mirror&&!A.hide?Xe(Xe({},C),{},Ht({},E,Rr(C,"".concat(E))+A.height)):C},{top:h.top||0,bottom:h.bottom||0}),j=Xe(Xe({},w),y),N=j.bottom;x&&(j.bottom+=x.props.height||Lm.defaultProps.height),b&&a&&(j=NSe(j,r,n,a));var k=d-j.left-j.right,D=m-j.top-j.bottom;return Xe(Xe({brushBottom:N},j),{},{width:Math.max(k,0),height:Math.max(D,0)})},OMe=function(t,a){if(a==="xAxis")return t[a].width;if(a==="yAxis")return t[a].height},lw=function(t){var a=t.chartName,n=t.GraphicalChild,r=t.defaultTooltipEventType,i=r===void 0?"axis":r,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,c=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,f=t.defaultProps,h=function(j,N){var k=N.graphicalItems,D=N.stackGroups,C=N.offset,S=N.updateId,A=N.dataStartIndex,E=N.dataEndIndex,R=j.barSize,F=j.layout,I=j.barGap,H=j.barCategoryGap,_=j.maxBarSize,V=Cq(F),W=V.numericAxisName,B=V.cateAxisName,K=EMe(k),ae=[];return k.forEach(function($,Z){var O=ow(j.data,{graphicalItems:[$],dataStartIndex:A,dataEndIndex:E}),Y=$.type.defaultProps!==void 0?Xe(Xe({},$.type.defaultProps),$.props):$.props,Q=Y.dataKey,U=Y.maxBarSize,oe=Y["".concat(W,"Id")],X=Y["".concat(B,"Id")],ne={},ge=c.reduce(function(pe,et){var xe=N["".concat(et.axisType,"Map")],it=Y["".concat(et.axisType,"Id")];xe&&xe[it]||et.axisType==="zAxis"||yu();var Tt=xe[it];return Xe(Xe({},pe),{},Ht(Ht({},et.axisType,Tt),"".concat(et.axisType,"Ticks"),gl(Tt)))},ne),me=ge[B],Ae=ge["".concat(B,"Ticks")],Pe=D&&D[oe]&&D[oe].hasStack&&_Se($,D[oe].stackGroups),L=vl($.type).indexOf("Bar")>=0,ke=Qy(me,Ae),Me=[],Ze=K&&jSe({barSize:R,stackGroups:D,totalSize:OMe(ge,B)});if(L){var Ce,Te,Ke=Ft(U)?_:U,Ve=(Ce=(Te=Qy(me,Ae,!0))!==null&&Te!==void 0?Te:Ke)!==null&&Ce!==void 0?Ce:0;Me=kSe({barGap:I,barCategoryGap:H,bandSize:Ve!==ke?Ve:ke,sizeList:Ze[X],maxBarSize:Ke}),Ve!==ke&&(Me=Me.map(function(pe){return Xe(Xe({},pe),{},{position:Xe(Xe({},pe.position),{},{offset:pe.position.offset-Ve/2})})}))}var ht=$&&$.type&&$.type.getComposedData;ht&&ae.push({props:Xe(Xe({},ht(Xe(Xe({},ge),{},{displayedData:O,props:j,dataKey:Q,item:$,bandSize:ke,barPosition:Me,offset:C,stackedData:Pe,layout:F,dataStartIndex:A,dataEndIndex:E}))),{},Ht(Ht(Ht({key:$.key||"item-".concat(Z)},W,ge[W]),B,ge[B]),"animationId",S)),childIndex:C2e($,j.children),item:$})}),ae},x=function(j,N){var k=j.props,D=j.dataStartIndex,C=j.dataEndIndex,S=j.updateId;if(!_I({props:k}))return null;var A=k.children,E=k.layout,R=k.stackOffset,F=k.data,I=k.reverseStackOrder,H=Cq(E),_=H.numericAxisName,V=H.cateAxisName,W=Ys(A,n),B=RSe(F,W,"".concat(_,"Id"),"".concat(V,"Id"),R,I),K=c.reduce(function(Y,Q){var U="".concat(Q.axisType,"Map");return Xe(Xe({},Y),{},Ht({},U,TMe(k,Xe(Xe({},Q),{},{graphicalItems:W,stackGroups:Q.axisType===_&&B,dataStartIndex:D,dataEndIndex:C}))))},{}),ae=MMe(Xe(Xe({},K),{},{props:k,graphicalItems:W}),N?.legendBBox);Object.keys(K).forEach(function(Y){K[Y]=m(k,K[Y],ae,Y.replace("Map",""),a)});var $=K["".concat(V,"Map")],Z=DMe($),O=h(k,Xe(Xe({},K),{},{dataStartIndex:D,dataEndIndex:C,updateId:S,graphicalItems:W,stackGroups:B,offset:ae}));return Xe(Xe({formattedGraphicalItems:O,graphicalItems:W,offset:ae,stackGroups:B},Z),K)},b=(function(w){function j(N){var k,D,C;return pMe(this,j),C=hMe(this,j,[N]),Ht(C,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ht(C,"accessibilityManager",new ZEe),Ht(C,"handleLegendBBoxUpdate",function(S){if(S){var A=C.state,E=A.dataStartIndex,R=A.dataEndIndex,F=A.updateId;C.setState(Xe({legendBBox:S},x({props:C.props,dataStartIndex:E,dataEndIndex:R,updateId:F},Xe(Xe({},C.state),{},{legendBBox:S}))))}}),Ht(C,"handleReceiveSyncEvent",function(S,A,E){if(C.props.syncId===S){if(E===C.eventEmitterSymbol&&typeof C.props.syncMethod!="function")return;C.applySyncEvent(A)}}),Ht(C,"handleBrushChange",function(S){var A=S.startIndex,E=S.endIndex;if(A!==C.state.dataStartIndex||E!==C.state.dataEndIndex){var R=C.state.updateId;C.setState(function(){return Xe({dataStartIndex:A,dataEndIndex:E},x({props:C.props,dataStartIndex:A,dataEndIndex:E,updateId:R},C.state))}),C.triggerSyncEvent({dataStartIndex:A,dataEndIndex:E})}}),Ht(C,"handleMouseEnter",function(S){var A=C.getMouseInfo(S);if(A){var E=Xe(Xe({},A),{},{isTooltipActive:!0});C.setState(E),C.triggerSyncEvent(E);var R=C.props.onMouseEnter;Gt(R)&&R(E,S)}}),Ht(C,"triggeredAfterMouseMove",function(S){var A=C.getMouseInfo(S),E=A?Xe(Xe({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};C.setState(E),C.triggerSyncEvent(E);var R=C.props.onMouseMove;Gt(R)&&R(E,S)}),Ht(C,"handleItemMouseEnter",function(S){C.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),Ht(C,"handleItemMouseLeave",function(){C.setState(function(){return{isTooltipActive:!1}})}),Ht(C,"handleMouseMove",function(S){S.persist(),C.throttleTriggeredAfterMouseMove(S)}),Ht(C,"handleMouseLeave",function(S){C.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};C.setState(A),C.triggerSyncEvent(A);var E=C.props.onMouseLeave;Gt(E)&&E(A,S)}),Ht(C,"handleOuterEvent",function(S){var A=S2e(S),E=Rr(C.props,"".concat(A));if(A&&Gt(E)){var R,F;/.*touch.*/i.test(A)?F=C.getMouseInfo(S.changedTouches[0]):F=C.getMouseInfo(S),E((R=F)!==null&&R!==void 0?R:{},S)}}),Ht(C,"handleClick",function(S){var A=C.getMouseInfo(S);if(A){var E=Xe(Xe({},A),{},{isTooltipActive:!0});C.setState(E),C.triggerSyncEvent(E);var R=C.props.onClick;Gt(R)&&R(E,S)}}),Ht(C,"handleMouseDown",function(S){var A=C.props.onMouseDown;if(Gt(A)){var E=C.getMouseInfo(S);A(E,S)}}),Ht(C,"handleMouseUp",function(S){var A=C.props.onMouseUp;if(Gt(A)){var E=C.getMouseInfo(S);A(E,S)}}),Ht(C,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&C.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),Ht(C,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&C.handleMouseDown(S.changedTouches[0])}),Ht(C,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&C.handleMouseUp(S.changedTouches[0])}),Ht(C,"handleDoubleClick",function(S){var A=C.props.onDoubleClick;if(Gt(A)){var E=C.getMouseInfo(S);A(E,S)}}),Ht(C,"handleContextMenu",function(S){var A=C.props.onContextMenu;if(Gt(A)){var E=C.getMouseInfo(S);A(E,S)}}),Ht(C,"triggerSyncEvent",function(S){C.props.syncId!==void 0&&u5.emit(p5,C.props.syncId,S,C.eventEmitterSymbol)}),Ht(C,"applySyncEvent",function(S){var A=C.props,E=A.layout,R=A.syncMethod,F=C.state.updateId,I=S.dataStartIndex,H=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)C.setState(Xe({dataStartIndex:I,dataEndIndex:H},x({props:C.props,dataStartIndex:I,dataEndIndex:H,updateId:F},C.state)));else if(S.activeTooltipIndex!==void 0){var _=S.chartX,V=S.chartY,W=S.activeTooltipIndex,B=C.state,K=B.offset,ae=B.tooltipTicks;if(!K)return;if(typeof R=="function")W=R(ae,S);else if(R==="value"){W=-1;for(var $=0;$<ae.length;$++)if(ae[$].value===S.activeLabel){W=$;break}}var Z=Xe(Xe({},K),{},{x:K.left,y:K.top}),O=Math.min(_,Z.x+Z.width),Y=Math.min(V,Z.y+Z.height),Q=ae[W]&&ae[W].value,U=fT(C.state,C.props.data,W),oe=ae[W]?{x:E==="horizontal"?ae[W].coordinate:O,y:E==="horizontal"?Y:ae[W].coordinate}:UJ;C.setState(Xe(Xe({},S),{},{activeLabel:Q,activeCoordinate:oe,activePayload:U,activeTooltipIndex:W}))}else C.setState(S)}),Ht(C,"renderCursor",function(S){var A,E=C.state,R=E.isTooltipActive,F=E.activeCoordinate,I=E.activePayload,H=E.offset,_=E.activeTooltipIndex,V=E.tooltipAxisBandSize,W=C.getTooltipEventType(),B=(A=S.props.active)!==null&&A!==void 0?A:R,K=C.props.layout,ae=S.key||"_recharts-cursor";return ie.createElement(rMe,{key:ae,activeCoordinate:F,activePayload:I,activeTooltipIndex:_,chartName:a,element:S,isActive:B,layout:K,offset:H,tooltipAxisBandSize:V,tooltipEventType:W})}),Ht(C,"renderPolarAxis",function(S,A,E){var R=Rr(S,"type.axisType"),F=Rr(C.state,"".concat(R,"Map")),I=S.type.defaultProps,H=I!==void 0?Xe(Xe({},I),S.props):S.props,_=F&&F[H["".concat(R,"Id")]];return P.cloneElement(S,Xe(Xe({},_),{},{className:Yt(R,_.className),key:S.key||"".concat(A,"-").concat(E),ticks:gl(_,!0)}))}),Ht(C,"renderPolarGrid",function(S){var A=S.props,E=A.radialLines,R=A.polarAngles,F=A.polarRadius,I=C.state,H=I.radiusAxisMap,_=I.angleAxisMap,V=kc(H),W=kc(_),B=W.cx,K=W.cy,ae=W.innerRadius,$=W.outerRadius;return P.cloneElement(S,{polarAngles:Array.isArray(R)?R:gl(W,!0).map(function(Z){return Z.coordinate}),polarRadius:Array.isArray(F)?F:gl(V,!0).map(function(Z){return Z.coordinate}),cx:B,cy:K,innerRadius:ae,outerRadius:$,key:S.key||"polar-grid",radialLines:E})}),Ht(C,"renderLegend",function(){var S=C.state.formattedGraphicalItems,A=C.props,E=A.children,R=A.width,F=A.height,I=C.props.margin||{},H=R-(I.left||0)-(I.right||0),_=vZ({children:E,formattedGraphicalItems:S,legendWidth:H,legendContent:d});if(!_)return null;var V=_.item,W=kq(_,iMe);return P.cloneElement(V,Xe(Xe({},W),{},{chartWidth:R,chartHeight:F,margin:I,onBBoxUpdate:C.handleLegendBBoxUpdate}))}),Ht(C,"renderTooltip",function(){var S,A=C.props,E=A.children,R=A.accessibilityLayer,F=Sr(E,yn);if(!F)return null;var I=C.state,H=I.isTooltipActive,_=I.activeCoordinate,V=I.activePayload,W=I.activeLabel,B=I.offset,K=(S=F.props.active)!==null&&S!==void 0?S:H;return P.cloneElement(F,{viewBox:Xe(Xe({},B),{},{x:B.left,y:B.top}),active:K,label:W,payload:K?V:[],coordinate:_,accessibilityLayer:R})}),Ht(C,"renderBrush",function(S){var A=C.props,E=A.margin,R=A.data,F=C.state,I=F.offset,H=F.dataStartIndex,_=F.dataEndIndex,V=F.updateId;return P.cloneElement(S,{key:S.key||"_recharts-brush",onChange:rv(C.handleBrushChange,S.props.onChange),data:R,x:ut(S.props.x)?S.props.x:I.left,y:ut(S.props.y)?S.props.y:I.top+I.height+I.brushBottom-(E.bottom||0),width:ut(S.props.width)?S.props.width:I.width,startIndex:H,endIndex:_,updateId:"brush-".concat(V)})}),Ht(C,"renderReferenceElement",function(S,A,E){if(!S)return null;var R=C,F=R.clipPathId,I=C.state,H=I.xAxisMap,_=I.yAxisMap,V=I.offset,W=S.type.defaultProps||{},B=S.props,K=B.xAxisId,ae=K===void 0?W.xAxisId:K,$=B.yAxisId,Z=$===void 0?W.yAxisId:$;return P.cloneElement(S,{key:S.key||"".concat(A,"-").concat(E),xAxis:H[ae],yAxis:_[Z],viewBox:{x:V.left,y:V.top,width:V.width,height:V.height},clipPathId:F})}),Ht(C,"renderActivePoints",function(S){var A=S.item,E=S.activePoint,R=S.basePoint,F=S.childIndex,I=S.isRange,H=[],_=A.props.key,V=A.item.type.defaultProps!==void 0?Xe(Xe({},A.item.type.defaultProps),A.item.props):A.item.props,W=V.activeDot,B=V.dataKey,K=Xe(Xe({index:F,dataKey:B,cx:E.x,cy:E.y,r:4,fill:v8(A.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},Rt(W,!1)),Py(W));return H.push(j.renderActiveDot(W,K,"".concat(_,"-activePoint-").concat(F))),R?H.push(j.renderActiveDot(W,Xe(Xe({},K),{},{cx:R.x,cy:R.y}),"".concat(_,"-basePoint-").concat(F))):I&&H.push(null),H}),Ht(C,"renderGraphicChild",function(S,A,E){var R=C.filterFormatItem(S,A,E);if(!R)return null;var F=C.getTooltipEventType(),I=C.state,H=I.isTooltipActive,_=I.tooltipAxis,V=I.activeTooltipIndex,W=I.activeLabel,B=C.props.children,K=Sr(B,yn),ae=R.props,$=ae.points,Z=ae.isRange,O=ae.baseLine,Y=R.item.type.defaultProps!==void 0?Xe(Xe({},R.item.type.defaultProps),R.item.props):R.item.props,Q=Y.activeDot,U=Y.hide,oe=Y.activeBar,X=Y.activeShape,ne=!!(!U&&H&&K&&(Q||oe||X)),ge={};F!=="axis"&&K&&K.props.trigger==="click"?ge={onClick:rv(C.handleItemMouseEnter,S.props.onClick)}:F!=="axis"&&(ge={onMouseLeave:rv(C.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:rv(C.handleItemMouseEnter,S.props.onMouseEnter)});var me=P.cloneElement(S,Xe(Xe({},R.props),ge));function Ae(et){return typeof _.dataKey=="function"?_.dataKey(et.payload):null}if(ne)if(V>=0){var Pe,L;if(_.dataKey&&!_.allowDuplicatedCategory){var ke=typeof _.dataKey=="function"?Ae:"payload.".concat(_.dataKey.toString());Pe=wy($,ke,W),L=Z&&O&&wy(O,ke,W)}else Pe=$?.[V],L=Z&&O&&O[V];if(X||oe){var Me=S.props.activeIndex!==void 0?S.props.activeIndex:V;return[P.cloneElement(S,Xe(Xe(Xe({},R.props),ge),{},{activeIndex:Me})),null,null]}if(!Ft(Pe))return[me].concat(Ym(C.renderActivePoints({item:R,activePoint:Pe,basePoint:L,childIndex:V,isRange:Z})))}else{var Ze,Ce=(Ze=C.getItemByXY(C.state.activeCoordinate))!==null&&Ze!==void 0?Ze:{graphicalItem:me},Te=Ce.graphicalItem,Ke=Te.item,Ve=Ke===void 0?S:Ke,ht=Te.childIndex,pe=Xe(Xe(Xe({},R.props),ge),{},{activeIndex:ht});return[P.cloneElement(Ve,pe),null,null]}return Z?[me,null,null]:[me,null]}),Ht(C,"renderCustomized",function(S,A,E){return P.cloneElement(S,Xe(Xe({key:"recharts-customized-".concat(E)},C.props),C.state))}),Ht(C,"renderMap",{CartesianGrid:{handler:dv,once:!0},ReferenceArea:{handler:C.renderReferenceElement},ReferenceLine:{handler:dv},ReferenceDot:{handler:C.renderReferenceElement},XAxis:{handler:dv},YAxis:{handler:dv},Brush:{handler:C.renderBrush,once:!0},Bar:{handler:C.renderGraphicChild},Line:{handler:C.renderGraphicChild},Area:{handler:C.renderGraphicChild},Radar:{handler:C.renderGraphicChild},RadialBar:{handler:C.renderGraphicChild},Scatter:{handler:C.renderGraphicChild},Pie:{handler:C.renderGraphicChild},Funnel:{handler:C.renderGraphicChild},Tooltip:{handler:C.renderCursor,once:!0},PolarGrid:{handler:C.renderPolarGrid,once:!0},PolarAngleAxis:{handler:C.renderPolarAxis},PolarRadiusAxis:{handler:C.renderPolarAxis},Customized:{handler:C.renderCustomized}}),C.clipPathId="".concat((k=N.id)!==null&&k!==void 0?k:Zc("recharts"),"-clip"),C.throttleTriggeredAfterMouseMove=bY(C.triggeredAfterMouseMove,(D=N.throttleDelay)!==null&&D!==void 0?D:1e3/60),C.state={},C}return bMe(j,w),fMe(j,[{key:"componentDidMount",value:function(){var k,D;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(k=this.props.margin.left)!==null&&k!==void 0?k:0,top:(D=this.props.margin.top)!==null&&D!==void 0?D:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var k=this.props,D=k.children,C=k.data,S=k.height,A=k.layout,E=Sr(D,yn);if(E){var R=E.props.defaultIndex;if(!(typeof R!="number"||R<0||R>this.state.tooltipTicks.length-1)){var F=this.state.tooltipTicks[R]&&this.state.tooltipTicks[R].value,I=fT(this.state,C,R,F),H=this.state.tooltipTicks[R].coordinate,_=(this.state.offset.top+S)/2,V=A==="horizontal",W=V?{x:H,y:_}:{y:H,x:_},B=this.state.formattedGraphicalItems.find(function(ae){var $=ae.item;return $.type.name==="Scatter"});B&&(W=Xe(Xe({},W),B.props.points[R].tooltipPosition),I=B.props.points[R].tooltipPayload);var K={activeTooltipIndex:R,isTooltipActive:!0,activeLabel:F,activePayload:I,activeCoordinate:W};this.setState(K),this.renderCursor(E),this.accessibilityManager.setIndex(R)}}}},{key:"getSnapshotBeforeUpdate",value:function(k,D){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==D.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==k.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==k.margin){var C,S;this.accessibilityManager.setDetails({offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(k){WC([Sr(k.children,yn)],[Sr(this.props.children,yn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var k=Sr(this.props.children,yn);if(k&&typeof k.props.shared=="boolean"){var D=k.props.shared?"axis":"item";return l.indexOf(D)>=0?D:i}return i}},{key:"getMouseInfo",value:function(k){if(!this.container)return null;var D=this.container,C=D.getBoundingClientRect(),S=fke(C),A={chartX:Math.round(k.pageX-S.left),chartY:Math.round(k.pageY-S.top)},E=C.width/D.offsetWidth||1,R=this.inRange(A.chartX,A.chartY,E);if(!R)return null;var F=this.state,I=F.xAxisMap,H=F.yAxisMap,_=this.getTooltipEventType(),V=Aq(this.state,this.props.data,this.props.layout,R);if(_!=="axis"&&I&&H){var W=kc(I).scale,B=kc(H).scale,K=W&&W.invert?W.invert(A.chartX):null,ae=B&&B.invert?B.invert(A.chartY):null;return Xe(Xe({},A),{},{xValue:K,yValue:ae},V)}return V?Xe(Xe({},A),V):null}},{key:"inRange",value:function(k,D){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,A=k/C,E=D/C;if(S==="horizontal"||S==="vertical"){var R=this.state.offset,F=A>=R.left&&A<=R.left+R.width&&E>=R.top&&E<=R.top+R.height;return F?{x:A,y:E}:null}var I=this.state,H=I.angleAxisMap,_=I.radiusAxisMap;if(H&&_){var V=kc(H);return kG({x:A,y:E},V)}return null}},{key:"parseEventsOfWrapper",value:function(){var k=this.props.children,D=this.getTooltipEventType(),C=Sr(k,yn),S={};C&&D==="axis"&&(C.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=Py(this.props,this.handleOuterEvent);return Xe(Xe({},A),S)}},{key:"addListener",value:function(){u5.on(p5,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){u5.removeListener(p5,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(k,D,C){for(var S=this.state.formattedGraphicalItems,A=0,E=S.length;A<E;A++){var R=S[A];if(R.item===k||R.props.key===k.key||D===vl(R.item.type)&&C===R.childIndex)return R}return null}},{key:"renderClipPath",value:function(){var k=this.clipPathId,D=this.state.offset,C=D.left,S=D.top,A=D.height,E=D.width;return ie.createElement("defs",null,ie.createElement("clipPath",{id:k},ie.createElement("rect",{x:C,y:S,height:A,width:E})))}},{key:"getXScales",value:function(){var k=this.state.xAxisMap;return k?Object.entries(k).reduce(function(D,C){var S=jq(C,2),A=S[0],E=S[1];return Xe(Xe({},D),{},Ht({},A,E.scale))},{}):null}},{key:"getYScales",value:function(){var k=this.state.yAxisMap;return k?Object.entries(k).reduce(function(D,C){var S=jq(C,2),A=S[0],E=S[1];return Xe(Xe({},D),{},Ht({},A,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(k){var D;return(D=this.state.xAxisMap)===null||D===void 0||(D=D[k])===null||D===void 0?void 0:D.scale}},{key:"getYScaleByAxisId",value:function(k){var D;return(D=this.state.yAxisMap)===null||D===void 0||(D=D[k])===null||D===void 0?void 0:D.scale}},{key:"getItemByXY",value:function(k){var D=this.state,C=D.formattedGraphicalItems,S=D.activeItem;if(C&&C.length)for(var A=0,E=C.length;A<E;A++){var R=C[A],F=R.props,I=R.item,H=I.type.defaultProps!==void 0?Xe(Xe({},I.type.defaultProps),I.props):I.props,_=vl(I.type);if(_==="Bar"){var V=(F.data||[]).find(function(ae){return M4e(k,ae)});if(V)return{graphicalItem:R,payload:V}}else if(_==="RadialBar"){var W=(F.data||[]).find(function(ae){return kG(k,ae)});if(W)return{graphicalItem:R,payload:W}}else if(Z2(R,S)||J2(R,S)||wx(R,S)){var B=t6e({graphicalItem:R,activeTooltipItem:S,itemData:H.data}),K=H.activeIndex===void 0?B:H.activeIndex;return{graphicalItem:Xe(Xe({},R),{},{childIndex:K}),payload:wx(R,S)?H.data[B]:R.props.data[B]}}}return null}},{key:"render",value:function(){var k=this;if(!_I(this))return null;var D=this.props,C=D.children,S=D.className,A=D.width,E=D.height,R=D.style,F=D.compact,I=D.title,H=D.desc,_=kq(D,oMe),V=Rt(_,!1);if(F)return ie.createElement(eq,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ie.createElement($C,am({},V,{width:A,height:E,title:I,desc:H}),this.renderClipPath(),LI(C,this.renderMap)));if(this.props.accessibilityLayer){var W,B;V.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,V.role=(B=this.props.role)!==null&&B!==void 0?B:"application",V.onKeyDown=function(ae){k.accessibilityManager.keyboardEvent(ae)},V.onFocus=function(){k.accessibilityManager.focus()}}var K=this.parseEventsOfWrapper();return ie.createElement(eq,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ie.createElement("div",am({className:Yt("recharts-wrapper",S),style:Xe({position:"relative",cursor:"default",width:A,height:E},R)},K,{ref:function($){k.container=$}}),ie.createElement($C,am({},V,{width:A,height:E,title:I,desc:H,style:kMe}),this.renderClipPath(),LI(C,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);Ht(b,"displayName",a),Ht(b,"defaultProps",Xe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Ht(b,"getDerivedStateFromProps",function(w,j){var N=w.dataKey,k=w.data,D=w.children,C=w.width,S=w.height,A=w.layout,E=w.stackOffset,R=w.margin,F=j.dataStartIndex,I=j.dataEndIndex;if(j.updateId===void 0){var H=Sq(w);return Xe(Xe(Xe({},H),{},{updateId:0},x(Xe(Xe({props:w},H),{},{updateId:0}),j)),{},{prevDataKey:N,prevData:k,prevWidth:C,prevHeight:S,prevLayout:A,prevStackOffset:E,prevMargin:R,prevChildren:D})}if(N!==j.prevDataKey||k!==j.prevData||C!==j.prevWidth||S!==j.prevHeight||A!==j.prevLayout||E!==j.prevStackOffset||!um(R,j.prevMargin)){var _=Sq(w),V={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},W=Xe(Xe({},Aq(j,k,A)),{},{updateId:j.updateId+1}),B=Xe(Xe(Xe({},_),V),W);return Xe(Xe(Xe({},B),x(Xe({props:w},B),j)),{},{prevDataKey:N,prevData:k,prevWidth:C,prevHeight:S,prevLayout:A,prevStackOffset:E,prevMargin:R,prevChildren:D})}if(!WC(D,j.prevChildren)){var K,ae,$,Z,O=Sr(D,Lm),Y=O&&(K=(ae=O.props)===null||ae===void 0?void 0:ae.startIndex)!==null&&K!==void 0?K:F,Q=O&&($=(Z=O.props)===null||Z===void 0?void 0:Z.endIndex)!==null&&$!==void 0?$:I,U=Y!==F||Q!==I,oe=!Ft(k),X=oe&&!U?j.updateId:j.updateId+1;return Xe(Xe({updateId:X},x(Xe(Xe({props:w},j),{},{updateId:X,dataStartIndex:Y,dataEndIndex:Q}),j)),{},{prevChildren:D,dataStartIndex:Y,dataEndIndex:Q})}return null}),Ht(b,"renderActiveDot",function(w,j,N){var k;return P.isValidElement(w)?k=P.cloneElement(w,j):Gt(w)?k=w(j):k=ie.createElement(cb,j),ie.createElement(la,{className:"recharts-active-dot",key:N},k)});var y=P.forwardRef(function(j,N){return ie.createElement(b,am({},j,{ref:N}))});return y.displayName=b.displayName,y},Uc=lw({chartName:"LineChart",GraphicalChild:Kn,axisComponents:[{axisType:"xAxis",AxisComp:is},{axisType:"yAxis",AxisComp:Yn}],formatAxisMap:w8}),Cx=lw({chartName:"BarChart",GraphicalChild:Bs,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:is},{axisType:"yAxis",AxisComp:Yn}],formatAxisMap:w8}),RMe=lw({chartName:"PieChart",GraphicalChild:Fl,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Y2},{axisType:"radiusAxis",AxisComp:$2}],formatAxisMap:QSe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}
vendor: 4,357 bytes, line 943
943),zMe=lw({chartName:"ComposedChart",GraphicalChild:[Kn,_u,Bs,iw],axisComponents:[{axisType:"xAxis",AxisComp:is},{axisType:"yAxis",AxisComp:Yn},{axisType:"zAxis",AxisComp:rw}],formatAxisMap:w8});function Tq(e,[t,a]){return Math.min(a,Math.max(t,e))}function E8(e){const t=e+"CollectionProvider",[a,n]=Pi(t),[r,i]=a(t,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:w,children:j}=y,N=ie.useRef(null),k=ie.useRef(new Map).current;return s.jsx(r,{scope:w,itemMap:k,collectionRef:N,children:j})};o.displayName=t;const l=e+"CollectionSlot",c=pu(l),d=ie.forwardRef((y,w)=>{const{scope:j,children:N}=y,k=i(l,j),D=Va(w,k.collectionRef);return s.jsx(c,{ref:D,children:N})});d.displayName=l;const m=e+"CollectionItemSlot",f="data-radix-collection-item",h=pu(m),x=ie.forwardRef((y,w)=>{const{scope:j,children:N,...k}=y,D=ie.useRef(null),C=Va(w,D),S=i(m,j);return ie.useEffect(()=>(S.itemMap.set(D,{ref:D,...k}),()=>void S.itemMap.delete(D))),s.jsx(h,{[f]:"",ref:C,children:N})});x.displayName=m;function b(y){const w=i(e+"CollectionConsumer",y);return ie.useCallback(()=>{const N=w.collectionRef.current;if(!N)return[];const k=Array.from(N.querySelectorAll(`[${f}]`));return Array.from(w.itemMap.values()).sort((S,A)=>k.indexOf(S.ref.current)-k.indexOf(A.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:o,Slot:d,ItemSlot:x},b,n]}var _Me=P.createContext(void 0);function cw(e){const t=P.useContext(_Me);return e||t||"ltr"}function IMe(e){const t=P.useRef({value:e,previous:e});return P.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var LMe=[" ","Enter","ArrowUp","ArrowDown"],FMe=[" ","Enter"],Pu="Select",[dw,uw,BMe]=E8(Pu),[wf]=Pi(Pu,[BMe,af]),pw=af(),[GMe,ad]=wf(Pu),[HMe,qMe]=wf(Pu),QJ=e=>{const{__scopeSelect:t,children:a,open:n,defaultOpen:r,onOpenChange:i,value:o,defaultValue:l,onValueChange:c,dir:d,name:m,autoComplete:f,disabled:h,required:x,form:b}=e,y=pw(t),[w,j]=P.useState(null),[N,k]=P.useState(null),[D,C]=P.useState(!1),S=cw(d),[A,E]=fu({prop:n,defaultProp:r??!1,onChange:i,caller:Pu}),[R,F]=fu({prop:o,defaultProp:l,onChange:c,caller:Pu}),I=P.useRef(null),H=w?b||!!w.closest("form"):!0,[_,V]=P.useState(new Set),W=Array.from(_).map(B=>B.props.value).join(";");return s.jsx(c6,{...y,children:s.jsxs(GMe,{required:x,scope:t,trigger:w,onTriggerChange:j,valueNode:N,onValueNodeChange:k,valueNodeHasChildren:D,onValueNodeHasChildrenChange:C,contentId:Vi(),value:R,onValueChange:F,open:A,onOpenChange:E,dir:S,triggerPointerDownPosRef:I,disabled:h,children:[s.jsx(dw.Provider,{scope:t,children:s.jsx(HMe,{scope:e.__scopeSelect,onNativeOptionAdd:P.useCallback(B=>{V(K=>new Set(K).add(B))},[]),onNativeOptionRemove:P.useCallback(B=>{V(K=>{const ae=new Set(K);return ae.delete(B),ae})},[]),children:a})}),H?s.jsxs(fee,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:f,value:R,onChange:B=>F(B.target.value),disabled:h,form:b,children:[R===void 0?s.jsx("option",{value:""}):null,Array.from(_)]},W):null]})})};QJ.displayName=Pu;var WJ="SelectTrigger",KJ=P.forwardRef((e,t)=>{const{__scopeSelect:a,disabled:n=!1,...r}=e,i=pw(a),o=ad(WJ,a),l=o.disabled||n,c=Va(t,o.onTriggerChange),d=uw(a),m=P.useRef("touch"),[f,h,x]=gee(y=>{const w=d().filter(k=>!k.disabled),j=w.find(k=>k.value===o.value),N=xee(w,y,j);N!==void 0&&o.onValueChange(N.value)}),b=y=>{l||(o.onOpenChange(!0),x()),y&&(o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return s.jsx(d6,{asChild:!0,...i,children:s.jsx(Zt.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":hee(o.value)?"":void 0,...r,ref:c,onClick:Nt(r.onClick,y=>{y.currentTarget.focus(),m.current!=="mouse"&&b(y)}),onPointerDown:Nt(r.onPointerDown,y=>{m.current=y.pointerType;const w=y.target;w.hasPointerCapture(y.pointerId)&&w.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(b(y),y.preventDefault())}),onKeyDown:Nt(r.onKeyDown,y=>{const w=f.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&h(y.key),!(w&&y.key===" ")&&LMe.includes(y.key)&&(b(),y.preventDefault())})})})});KJ.displayName=WJ;var $J="SelectValue",XJ=P.forwardRef((e,t)=>
vendor: 13,006 bytes, line 943
943{const{__scopeSelect:a,className:n,style:r,children:i,placeholder:o="",...l}=e,c=ad($J,a),{onValueNodeHasChildrenChange:d}=c,m=i!==void 0,f=Va(t,c.onValueNodeChange);return os(()=>{d(m)},[d,m]),s.jsx(Zt.span,{...l,ref:f,style:{pointerEvents:"none"},children:hee(c.value)?s.jsx(s.Fragment,{children:o}):i})});XJ.displayName=$J;var UMe="SelectIcon",YJ=P.forwardRef((e,t)=>{const{__scopeSelect:a,children:n,...r}=e;return s.jsx(Zt.span,{"aria-hidden":!0,...r,ref:t,children:n||"â¼"})});YJ.displayName=UMe;var VMe="SelectPortal",ZJ=e=>s.jsx(Vx,{asChild:!0,...e});ZJ.displayName=VMe;var ju="SelectContent",JJ=P.forwardRef((e,t)=>{const a=ad(ju,e.__scopeSelect),[n,r]=P.useState();if(os(()=>{r(new DocumentFragment)},[]),!a.open){const i=n;return i?Hx.createPortal(s.jsx(eee,{scope:e.__scopeSelect,children:s.jsx(dw.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),i):null}return s.jsx(tee,{...e,ref:t})});JJ.displayName=ju;var Ri=10,[eee,nd]=wf(ju),QMe="SelectContentImpl",WMe=pu("SelectContent.RemoveScroll"),tee=P.forwardRef((e,t)=>{const{__scopeSelect:a,position:n="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:o,side:l,sideOffset:c,align:d,alignOffset:m,arrowPadding:f,collisionBoundary:h,collisionPadding:x,sticky:b,hideWhenDetached:y,avoidCollisions:w,...j}=e,N=ad(ju,a),[k,D]=P.useState(null),[C,S]=P.useState(null),A=Va(t,ne=>D(ne)),[E,R]=P.useState(null),[F,I]=P.useState(null),H=uw(a),[_,V]=P.useState(!1),W=P.useRef(!1);P.useEffect(()=>{if(k)return R6(k)},[k]),O6();const B=P.useCallback(ne=>{const[ge,...me]=H().map(L=>L.ref.current),[Ae]=me.slice(-1),Pe=document.activeElement;for(const L of ne)if(L===Pe||(L?.scrollIntoView({block:"nearest"}),L===ge&&C&&(C.scrollTop=0),L===Ae&&C&&(C.scrollTop=C.scrollHeight),L?.focus(),document.activeElement!==Pe))return},[H,C]),K=P.useCallback(()=>B([E,k]),[B,E,k]);P.useEffect(()=>{_&&K()},[_,K]);const{onOpenChange:ae,triggerPointerDownPosRef:$}=N;P.useEffect(()=>{if(k){let ne={x:0,y:0};const ge=Ae=>{ne={x:Math.abs(Math.round(Ae.pageX)-($.current?.x??0)),y:Math.abs(Math.round(Ae.pageY)-($.current?.y??0))}},me=Ae=>{ne.x<=10&&ne.y<=10?Ae.preventDefault():k.contains(Ae.target)||ae(!1),document.removeEventListener("pointermove",ge),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",me,{capture:!0})}}},[k,ae,$]),P.useEffect(()=>{const ne=()=>ae(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[ae]);const[Z,O]=gee(ne=>{const ge=H().filter(Pe=>!Pe.disabled),me=ge.find(Pe=>Pe.ref.current===document.activeElement),Ae=xee(ge,ne,me);Ae&&setTimeout(()=>Ae.ref.current.focus())}),Y=P.useCallback((ne,ge,me)=>{const Ae=!W.current&&!me;(N.value!==void 0&&N.value===ge||Ae)&&(R(ne),Ae&&(W.current=!0))},[N.value]),Q=P.useCallback(()=>k?.focus(),[k]),U=P.useCallback((ne,ge,me)=>{const Ae=!W.current&&!me;(N.value!==void 0&&N.value===ge||Ae)&&I(ne)},[N.value]),oe=n==="popper"?hT:aee,X=oe===hT?{side:l,sideOffset:c,align:d,alignOffset:m,arrowPadding:f,collisionBoundary:h,collisionPadding:x,sticky:b,hideWhenDetached:y,avoidCollisions:w}:{};return s.jsx(eee,{scope:a,content:k,viewport:C,onViewportChange:S,itemRefCallback:Y,selectedItem:E,onItemLeave:Q,itemTextRefCallback:U,focusSelectedItem:K,selectedItemText:F,position:n,isPositioned:_,searchRef:Z,children:s.jsx(x2,{as:WMe,allowPinchZoom:!0,children:s.jsx(h2,{asChild:!0,trapped:N.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:Nt(r,ne=>{N.trigger?.focus({preventScroll:!0}),ne.preventDefault()}),children:s.jsx(qx,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:s.jsx(oe,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:ne=>ne.preventDefault(),...j,...X,onPlaced:()=>V(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:Nt(j.onKeyDown,ne=>{const ge=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!ge&&ne.key.length===1&&O(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let Ae=H().filter(Pe=>!Pe.disabled).map(Pe=>Pe.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const Pe=ne.target,L=Ae.indexOf(Pe);Ae=Ae.slice(L+1)}setTimeout(()=>B(Ae)),ne.preventDefault()}})})})})})})});tee.displayName=QMe;var KMe="SelectItemAlignedPosition",aee=P.forwardRef((e,t)=>{const{__scopeSelect:a,onPlaced:n,...r}=e,i=ad(ju,a),o=nd(ju,a),[l,c]=P.useState(null),[d,m]=P.useState(null),f=Va(t,A=>m(A)),h=uw(a),x=P.useRef(!1),b=P.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:j,focusSelectedItem:N}=o,k=P.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&y&&w&&j){const A=i.trigger.getBoundingClientRect(),E=d.getBoundingClientRect(),R=i.valueNode.getBoundingClientRect(),F=j.getBoundingClientRect();if(i.dir!=="rtl"){const Pe=F.left-E.left,L=R.left-Pe,ke=A.left-L,Me=A.width+ke,Ze=Math.max(Me,E.width),Ce=window.innerWidth-Ri,Te=Tq(L,[Ri,Math.max(Ri,Ce-Ze)]);l.style.minWidth=Me+"px",l.style.left=Te+"px"}else{const Pe=E.right-F.right,L=window.innerWidth-R.right-Pe,ke=window.innerWidth-A.right-L,Me=A.width+ke,Ze=Math.max(Me,E.width),Ce=window.innerWidth-Ri,Te=Tq(L,[Ri,Math.max(Ri,Ce-Ze)]);l.style.minWidth=Me+"px",l.style.right=Te+"px"}const I=h(),H=window.innerHeight-Ri*2,_=y.scrollHeight,V=window.getComputedStyle(d),W=parseInt(V.borderTopWidth,10),B=parseInt(V.paddingTop,10),K=parseInt(V.borderBottomWidth,10),ae=parseInt(V.paddingBottom,10),$=W+B+_+ae+K,Z=Math.min(w.offsetHeight*5,$),O=window.getComputedStyle(y),Y=parseInt(O.paddingTop,10),Q=parseInt(O.paddingBottom,10),U=A.top+A.height/2-Ri,oe=H-U,X=w.offsetHeight/2,ne=w.offsetTop+X,ge=W+B+ne,me=$-ge;if(ge<=U){const Pe=I.length>0&&w===I[I.length-1].ref.current;l.style.bottom="0px";const L=d.clientHeight-y.offsetTop-y.offsetHeight,ke=Math.max(oe,X+(Pe?Q:0)+L+K),Me=ge+ke;l.style.height=Me+"px"}else{const Pe=I.length>0&&w===I[0].ref.current;l.style.top="0px";const ke=Math.max(U,W+y.offsetTop+(Pe?Y:0)+X)+me;l.style.height=ke+"px",y.scrollTop=ge-U+y.offsetTop}l.style.margin=`${Ri}px 0`,l.style.minHeight=Z+"px",l.style.maxHeight=H+"px",n?.(),requestAnimationFrame(()=>x.current=!0)}},[h,i.trigger,i.valueNode,l,d,y,w,j,i.dir,n]);os(()=>k(),[k]);const[D,C]=P.useState();os(()=>{d&&C(window.getComputedStyle(d).zIndex)},[d]);const S=P.useCallback(A=>{A&&b.current===!0&&(k(),N?.(),b.current=!1)},[k,N]);return s.jsx(XMe,{scope:a,contentWrapper:l,shouldExpandOnScrollRef:x,onScrollButtonChange:S,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:s.jsx(Zt.div,{...r,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});aee.displayName=KMe;var $Me="SelectPopperPosition",hT=P.forwardRef((e,t)=>{const{__scopeSelect:a,align:n="start",collisionPadding:r=Ri,...i}=e,o=pw(a);return s.jsx(u6,{...o,...i,ref:t,align:n,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hT.displayName=$Me;var[XMe,M8]=wf(ju,{}),gT="SelectViewport",nee=P.forwardRef((e,t)=>{const{__scopeSelect:a,nonce:n,...r}=e,i=nd(gT,a),o=M8(gT,a),l=Va(t,i.onViewportChange),c=P.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),s.jsx(dw.Slot,{scope:a,children:s.jsx(Zt.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:Nt(r.onScroll,d=>{const m=d.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=o;if(h?.current&&f){const x=Math.abs(c.current-m.scrollTop);if(x>0){const b=window.innerHeight-Ri*2,y=parseFloat(f.style.minHeight),w=parseFloat(f.style.height),j=Math.max(y,w);if(j<b){const N=j+x,k=Math.min(b,N),D=N-k;f.style.height=k+"px",f.style.bottom==="0px"&&(m.scrollTop=D>0?D:0,f.style.justifyContent="flex-end")}}}c.current=m.scrollTop})})})]})});nee.displayName=gT;var see="SelectGroup",[YMe,ZMe]=wf(see),JMe=P.forwardRef((e,t)=>{const{__scopeSelect:a,...n}=e,r=Vi();return s.jsx(YMe,{scope:a,id:r,children:s.jsx(Zt.div,{role:"group","aria-labelledby":r,...n,ref:t})})});JMe.displayName=see;var ree="SelectLabel",eOe=P.forwardRef((e,t)=>{const{__scopeSelect:a,...n}=e,r=ZMe(ree,a);return s.jsx(Zt.div,{id:r.id,...n,ref:t})});eOe.displayName=ree;var P1="SelectItem",[tOe,iee]=wf(P1),oee=P.forwardRef((e,t)=>{const{__scopeSelect:a,value:n,disabled:r=!1,textValue:i,...o}=e,l=ad(P1,a),c=nd(P1,a),d=l.value===n,[m,f]=P.useState(i??""),[h,x]=P.useState(!1),b=Va(t,N=>c.itemRefCallback?.(N,n,r)),y=Vi(),w=P.useRef("touch"),j=()=>{r||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(tOe,{scope:a,value:n,disabled:r,textId:y,isSelected:d,onItemTextChange:P.useCallback(N=>{f(k=>k||(N?.textContent??"").trim())},[]),children:s.jsx(dw.ItemSlot,{scope:a,value:n,disabled:r,textValue:m,children:s.jsx(Zt.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...o,ref:b,onFocus:Nt(o.onFocus,()=>x(!0)),onBlur:Nt(o.onBlur,()=>x(!1)),onClick:Nt(o.onClick,()=>{w.current!=="mouse"&&j()}),onPointerUp:Nt(o.onPointerUp,()=>{w.current==="mouse"&&j()}),onPointerDown:Nt(o.onPointerDown,N=>{w.current=N.pointerType}),onPointerMove:Nt(o.onPointerMove,N=>{w.current=N.pointerType,r?c.onItemLeave?.():w.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Nt(o.onPointerLeave,N=>{N.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:Nt(o.onKeyDown,N=>{c.searchRef?.current!==""&&N.key===" "||(FMe.includes(N.key)&&j(),N.key===" "&&N.preventDefault())})})})})});oee.displayName=P1;var Qh="SelectItemText",lee=P.forwardRef((e,t)=>{const{__scopeSelect:a,className:n,style:r,...i}=e,o=ad(Qh,a),l=nd(Qh,a),c=iee(Qh,a),d=qMe(Qh,a),[m,f]=P.useState(null),h=Va(t,j=>f(j),c.onItemTextChange,j=>l.itemTextRefCallback?.(j,c.value,c.disabled)),x=m?.textContent,b=P.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:x},c.value),[c.disabled,c.value,x]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=d;return os(()=>(y(b),()=>w(b)),[y,w,b]),s.jsxs(s.Fragment,{children:[s.jsx(Zt.span,{id:c.textId,...i,ref:h}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Hx.createPortal(i.children,o.valueNode):null]})});lee.displayName=Qh;var cee="SelectItemIndicator",dee=P.forwardRef((e,t)=>{const{__scopeSelect:a,...n}=e;return iee(cee,a).isSelected?s.jsx(Zt.span,{"aria-hidden":!0,...n,ref:t}):null});dee.displayName=cee;var xT="SelectScrollUpButton",uee=P.forwardRef((e,t)=>{const a=nd(xT,e.__scopeSelect),n=M8(xT,e.__scopeSelect),[r,i]=P.useState(!1),o=Va(t,n.onScrollButtonChange);return os(()=>{if(a.viewport&&a.isPositioned){let l=function(){const d=c.scrollTop>0;i(d)};const c=a.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[a.viewport,a.isPositioned]),r?s.jsx(mee,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=a;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});uee.displayName=xT;var bT="SelectScrollDownButton",pee=P.forwardRef((e,t)=>{const a=nd(bT,e.__scopeSelect),n=M8(bT,e.__scopeSelect),[r,i]=P.useState(!1),o=Va(t,n.onScrollButtonChange);return os(()=>{if(a.viewport&&a.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,m=Math.ceil(c.scrollTop)<d;i(m)};const c=a.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[a.viewport,a.isPositioned]),r?s.jsx(mee,{...e,ref:o,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=a;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});pee.displayName=bT;var mee=P.forwardRef((e,t)=>{const{__scopeSelect:a,onAutoScroll:n,...r}=e,i=nd("SelectScrollButton",a),o=P.useRef(null),l=uw(a),c=P.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return P.useEffect(()=>()=>c(),[c]),os(()=>
vendor: 7,535 bytes, line 943
943{l().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),s.jsx(Zt.div,{"aria-hidden":!0,...r,ref:t,style:{flexShrink:0,...r.style},onPointerDown:Nt(r.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Nt(r.onPointerMove,()=>{i.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Nt(r.onPointerLeave,()=>{c()})})}),aOe="SelectSeparator",nOe=P.forwardRef((e,t)=>{const{__scopeSelect:a,...n}=e;return s.jsx(Zt.div,{"aria-hidden":!0,...n,ref:t})});nOe.displayName=aOe;var vT="SelectArrow",sOe=P.forwardRef((e,t)=>{const{__scopeSelect:a,...n}=e,r=pw(a),i=ad(vT,a),o=nd(vT,a);return i.open&&o.position==="popper"?s.jsx(p6,{...r,...n,ref:t}):null});sOe.displayName=vT;var rOe="SelectBubbleInput",fee=P.forwardRef(({__scopeSelect:e,value:t,...a},n)=>{const r=P.useRef(null),i=Va(n,r),o=IMe(t);return P.useEffect(()=>{const l=r.current;if(!l)return;const c=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==t&&m){const f=new Event("change",{bubbles:!0});m.call(l,t),l.dispatchEvent(f)}},[o,t]),s.jsx(Zt.select,{...a,style:{...UQ,...a.style},ref:i,defaultValue:t})});fee.displayName=rOe;function hee(e){return e===""||e===void 0}function gee(e){const t=$i(e),a=P.useRef(""),n=P.useRef(0),r=P.useCallback(o=>{const l=a.current+o;t(l),(function c(d){a.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),i=P.useCallback(()=>{a.current="",window.clearTimeout(n.current)},[]);return P.useEffect(()=>()=>window.clearTimeout(n.current),[]),[a,r,i]}function xee(e,t,a){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=a?e.indexOf(a):-1;let o=iOe(e,Math.max(i,0));r.length===1&&(o=o.filter(d=>d!==a));const c=o.find(d=>d.textValue.toLowerCase().startsWith(r.toLowerCase()));return c!==a?c:void 0}function iOe(e,t){return e.map((a,n)=>e[(t+n)%e.length])}var oOe=QJ,lOe=KJ,cOe=XJ,dOe=YJ,uOe=ZJ,pOe=JJ,mOe=nee,fOe=oee,hOe=lee,gOe=dee,xOe=uee,bOe=pee;function Ss({...e}){return s.jsx(oOe,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function Cs({...e}){return s.jsx(cOe,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function Ts({className:e,size:t="default",children:a,...n}){return s.jsxs(lOe,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:zt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[a,s.jsx(dOe,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:s.jsx($x,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function Ds({className:e,children:t,position:a="popper",align:n="center",...r}){return s.jsx(uOe,{"data-loc":"client/src/components/ui/select.tsx:59",children:s.jsxs(pOe,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:zt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,align:n,...r,children:[s.jsx(vOe,{"data-loc":"client/src/components/ui/select.tsx:72"}),s.jsx(mOe,{"data-loc":"client/src/components/ui/select.tsx:73",className:zt("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),s.jsx(yOe,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function Kt({className:e,children:t,...a}){return s.jsxs(fOe,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:zt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...a,children:[s.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(gOe,{"data-loc":"client/src/components/ui/select.tsx:116",children:s.jsx(Ir,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),s.jsx(hOe,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function vOe({className:e,...t}){return s.jsx(xOe,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:zt("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(i2,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function yOe({className:e,...t}){return s.jsx(bOe,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:zt("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx($x,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}const wOe=["easy","medium","hard"],Dq={easy:"سÙÙ",medium:"Ù
ØªÙØ³Ø·",hard:"Ù
ØªÙØ¯Ù
"};function POe({badges:e,onClose:t}){const a=!!Cu(),{launch:n}=ab(),r=e.length>0;return P.useEffect(()=>{!r||a||n(2200,180)},[n,r,a]),s.jsx(xs,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:24",open:r,onOpenChange:i=>!i&&t(),children:s.jsxs(bs,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:25",dir:"rtl",className:"overflow-hidden border-4 border-black bg-[#fffaf2] p-0 shadow-[8px_8px_0_0_#000] sm:max-w-md",children:[s.jsx(Ui,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:26",className:"sr-only",children:"تÙ
Ø§ÙØØµÙ٠عÙ٠شارة Ù
تصدر اÙÙÙÙØ²"}),s.jsx(lf,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:27",className:"sr-only",children:"ØªÙØ§ØµÙ٠شارة اÙÙ
تصدرÙÙ Ø§ÙØ¬Ø¯Ùدة Ø§ÙØªÙ تÙ
Ø§ÙØØµÙ٠عÙÙÙØ§ Ù٠اÙÙÙÙØ²."}),s.jsxs(rn.div,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:28",initial:{opacity:0,y:a?0:10,scale:a?1:.97}
943,animate:{opacity:1,y:0,scale:1},transition:{duration:a?0:.32,ease:"circOut"},className:"relative overflow-hidden bg-gradient-to-br from-memphis-yellow via-[#fff4b5] to-memphis-lilac p-7 text-center",children:[!a&&s.jsxs(s.Fragment,{children:[s.jsx(rn.span,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:29","aria-hidden":!0,className:"absolute left-8 top-10 text-2xl",animate:{y:[0,-10,0],rotate:[0,12,0]},transition:{duration:1.8,repeat:1/0},children:"â¦"}),s.jsx(rn.span,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:29","aria-hidden":!0,className:"absolute right-8 bottom-20 text-2xl",animate:{y:[0,9,0],rotate:[0,-12,0]},transition:{duration:2.1,repeat:1/0},children:"â¦"})]}),s.jsxs(rn.div,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:30",initial:{scale:a?1:.9,rotate:a?0:-8},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:340,damping:18,delay:a?0:.08},className:"relative mx-auto flex h-20 w-20 items-center justify-center rounded-3xl border-4 border-black bg-white shadow-[4px_4px_0_0_#000]",children:[s.jsx(Gs,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:30",className:"h-10 w-10 text-amber-600"}),s.jsx(pn,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:30",className:"absolute -right-3 -top-3 h-6 w-6 text-violet-700"})]}),s.jsx("p",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:31",className:"mt-5 text-xs font-black text-black/60",children:"Ø¥ÙØ¬Ø§Ø² Ø¬Ø¯ÙØ¯ ÙÙ ÙÙØØ© اÙÙÙÙØ²"}),s.jsx("h2",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:32",className:"mt-1 text-3xl font-black text-black",children:"ÙØ§ Ø³ÙØ§Ù
Ø ØªØ³ØªØ§ÙÙ!"}),s.jsx("p",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:33",className:"mx-auto mt-2 max-w-sm text-sm font-bold leading-6 text-black/75",children:"Ø£ÙÙ
ÙØª Ø´Ø±ÙØ· Ø§ÙØªÙدÙ
ÙÙØµÙت Ø¥Ù٠شارة Ø¬Ø¯ÙØ¯Ø© بÙÙ Ù
تصدر٠Ù
ÙØµØ© أثر."}),s.jsx("div",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:34",className:"mt-5 space-y-2",children:e.map((i,o)=>s.jsxs(rn.div,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:34",initial:{opacity:0,x:a?0:12},animate:{opacity:1,x:0},transition:{duration:a?0:.22,delay:a?0:.14+o*.08},className:"flex items-center gap-3 rounded-2xl border-2 border-black bg-white/85 p-3 text-right shadow-[3px_3px_0_0_rgba(0,0,0,.18)]",children:[s.jsx("span",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:34",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-memphis-lilac text-2xl",children:i.icon}),s.jsxs("span",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:34",className:"min-w-0 flex-1",children:[s.jsx("strong",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:34",className:"block font-black text-black",children:i.nameAr}),s.jsxs("span",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:34",className:"mt-0.5 block text-[11px] font-bold text-black/60",children:["ØÙÙØª Ù
Ø±ÙØ² ",i.conditionValue," Ø£Ù Ø£ÙØ¶Ù ÙÙ ÙÙØØ© اÙÙÙÙØ²"]})]}),s.jsx(aa,{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:34",className:"h-5 w-5 text-amber-700"})]},i.id))}),s.jsx("button",{"data-loc":"client/src/components/QuizRankBadgeCelebration.tsx:35",type:"button",onClick:t,className:"memphis-btn mt-6 w-full bg-black px-5 py-3 text-sm font-black text-white",children:"Ø£ÙÙ
Ù Ø§ÙØªØØ¯Ù"})]})]})})}const fc="all";function bee(e){return new Intl.DateTimeFormat("ar-SA",{day:"numeric",month:"short"}).format(new Date(e))}function jOe(e){return new Intl.DateTimeFormat("ar-SA",{dateStyle:"full",timeStyle:"short"}).format(new Date(e))}function kOe(e,t,a=!0){if(t===null)return"Ø³ÙØ¸Ùر اÙÙ
ØªÙØ³Ø· Ø¹ÙØ¯ تÙÙÙØ± Ù
ØØ§ÙÙØ§Øª ÙÙ
تعÙÙ
Ù٠آخرÙÙ.";const n=Number((e-t).toFixed(1));return n===0?"Ø£Ø¯Ø§Ø¤Ù ÙØ·Ø§Ø¨Ù Ù
ØªÙØ³Ø· اÙÙ
تعÙÙ
ÙÙ ØØ§ÙÙØ§Ù.":(a?n>0:n<0)?`Ø£ÙØª Ø£ÙØ¶Ù Ù
٠اÙÙ
ØªÙØ³Ø· ب٠${Math.abs(n)}${a?" ÙÙØ·Ø©":"Ø«"}.`:`ÙØªØ¨ÙÙ ${Math.abs(n)}${a?" ÙÙØ·Ø©":"Ø«"} ÙÙÙØµÙ٠إÙ٠اÙÙ
ØªÙØ³Ø·.`}function NOe({slug:e,icon:t}){const a=Qg[e];return a?s.jsx(a,{"data-loc":"client/src/components/QuizProfileOverview.tsx:35",size:34}):s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:35",className:"text-3xl","aria-hidden":"true",children:t})}function AOe({badge:e,reduceMotion:t}){const a=e.earnedAt!==null,n=a?`ØØµÙت عÙÙÙØ§ ÙÙ ${jOe(e.earnedAt)} بعد تØÙÙÙ Ù
Ø±ÙØ² ${e.conditionValue} Ø£Ù Ø£ÙØ¶Ù ÙÙ ÙÙØØ© اÙÙÙÙØ².`:`ÙÙØØµÙ٠عÙÙÙØ§: ØÙÙ٠اÙÙ
Ø±ÙØ² ${e.conditionValue} Ø£Ù Ø£ÙØ¶Ù Ù٠أ٠ÙÙÙØ².`;return s.jsxs(x6,{"data-loc":"client/src/components/QuizProfileOverview.tsx:45",children:[s.jsx(b6,{"data-loc":"client/src/components/QuizProfileOverview.tsx:46",asChild:!0,children:s.jsxs(rn.article,{"data-loc":"client/src/components/QuizProfileOverview.tsx:47",tabIndex:0,whileHover:t?void 0:{y:-4,rotate:a?-1:0},whileFocus:t?void 0:{y:-3},transition:{type:"spring",stiffness:420,damping:20},"aria-label":`${e.nameAr}. ${n}`,className:`relative cursor-help overflow-hidden rounded-xl border-2 border-black p-3 text-center shadow-[2px_2px_0_0_rgba(0,0,0,.16)] outline-none transition-shadow focus-visible:ring-4 focus-visible:ring-violet-300 ${a?"bg-white hover:shadow-[5px_5px_0_0_rgba(0,0,0,.2)]":"bg-white/55 opacity-75 grayscale"}`,children:[a&&!t&&s.jsx(rn.span,{"data-loc":"client/src/components/QuizProfileOverview.tsx:55","aria-hidden":"true",initial:{opacity:.6,scale:.9}
943,animate:{opacity:[.45,.9,.45],scale:[.9,1.14,.9]},transition:{duration:2.2,repeat:1/0,ease:"easeInOut"},className:"absolute left-1/2 top-7 h-14 w-14 -translate-x-1/2 rounded-full bg-memphis-yellow/45"}),s.jsx(rn.div,{"data-loc":"client/src/components/QuizProfileOverview.tsx:56",animate:a&&!t?{rotate:[0,-5,5,0]}:void 0,transition:{duration:.55,delay:.12},className:"relative mx-auto mb-2 flex h-12 w-12 items-center justify-center rounded-2xl border-2 border-black bg-memphis-yellow",children:s.jsx(NOe,{"data-loc":"client/src/components/QuizProfileOverview.tsx:56",slug:e.slug,icon:e.icon})}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:57",className:"relative text-sm font-black text-black",children:e.nameAr}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:58",className:"relative mt-1 min-h-8 text-[10px] font-bold leading-4 text-black/60",children:e.descriptionAr}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:59",className:`relative mt-2 inline-flex rounded-full border-2 border-black px-2 py-0.5 text-[10px] font-black ${a?"bg-memphis-mint":"bg-white"}`,children:a?`Ù
ØØµÙÙØ© ${bee(e.earnedAt)}`:`اÙÙ
Ø·ÙÙØ¨: Ù
Ø±ÙØ² ${e.conditionValue} Ø£Ù Ø£ÙØ¶Ù`})]})}),s.jsxs(v6,{"data-loc":"client/src/components/QuizProfileOverview.tsx:62",side:"top",sideOffset:10,className:"max-w-64 border-2 border-black bg-black px-3 py-2 text-right text-xs font-bold leading-5 text-white shadow-[3px_3px_0_0_#FDE68A]",dir:"rtl",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:63",className:"font-black text-memphis-yellow",children:a?"Ø¥ÙØ¬Ø§Ø² Ù
ØÙÙÙ":"ÙÙÙÙØ© Ø§ÙØØµÙ٠عÙÙÙØ§"}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:64",className:"mt-1 text-white/90",children:n})]})]})}function SOe(){const[e,t]=P.useState(fc),[a,n]=P.useState(fc),[r,i]=P.useState([]),o=!!Cu(),l=P.useMemo(()=>({...e!==fc?{categoryId:Number(e)}:{},...a!==fc?{difficulty:a}:{}}),[e,a]),c=J.quiz.myProfile.useQuery(l),d=c.data,m=d?.comparison??{participantCount:0,userAccuracyPercent:0,peerAccuracyPercent:null,userAveragePoints:0,peerAveragePoints:null,performanceTrend:[]},f=[e!==fc?d?.availableCategories.find(h=>String(h.id)===e)?.nameAr:null,a!==fc?Dq[a]:null].filter(Boolean).join(" · ");return P.useEffect(()=>{if(!d)return;const h=d1e();if(h.length===0)return;const x=new Set(d.rankingBadges.filter(b=>b.earnedAt!==null).map(b=>b.id));i(h.filter(b=>x.has(b.id)))},[d]),s.jsxs("section",{"data-loc":"client/src/components/QuizProfileOverview.tsx:105",className:"memphis-card mb-8 overflow-hidden bg-white p-0","aria-labelledby":"quiz-profile-title",dir:"rtl",children:[s.jsx("header",{"data-loc":"client/src/components/QuizProfileOverview.tsx:106",className:"border-b-2 border-black bg-memphis-sky/70 p-5",children:s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:107",className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:108",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:108",className:"flex h-11 w-11 items-center justify-center rounded-xl border-2 border-black bg-memphis-yellow",children:s.jsx(aa,{"data-loc":"client/src/components/QuizProfileOverview.tsx:108",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:108",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:108",className:"text-[11px] font-black text-black/60",children:"Ù
Ø³ÙØ±ØªÙ ÙÙ Ø§ÙØªØØ¯Ùات اÙÙ
عرÙÙØ©"}),s.jsx("h2",{"data-loc":"client/src/components/QuizProfileOverview.tsx:108",id:"quiz-profile-title",className:"text-xl font-black text-black",children:"Ù
Ù٠اÙÙÙÙØ²Ø§Øª"})]})]}),s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:109",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black text-black",children:[d?.totalAttempts??0," Ù
ØØ§ÙÙØ©"]})]})}),c.isLoading?s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:114",className:"space-y-4 p-5","aria-label":"جار٠تØÙ
ÙÙ Ù
Ù٠اÙÙÙÙØ²Ø§Øª",children:[s.jsx("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:114",className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:[1,2,3,4].map(h=>s.jsx("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:114",className:"h-24 animate-pulse rounded-xl bg-black/5"},h))}),s.jsx("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:114",className:"h-40 animate-pulse rounded-xl bg-black/5"})]}):d?s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:118",className:"p-5",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:119",className:"grid grid-cols-2 gap-3 sm:grid-cols-4",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:120",className:"rounded-xl border-2 border-black bg-memphis-yellow p-3 text-center",children:[s.jsx(aa,{"data-loc":"client/src/components/QuizProfileOverview.tsx:120",className:"mx-auto mb-1 h-5 w-5"}),s.jsx("strong",{"data-loc":"client/src/components/QuizProfileOverview.tsx:120",className:"block text-2xl font-black text-black",children:d.totalQuizPoints}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:120",className:"text-[11px] font-bold text-black/60",children:"ÙÙØ§Ø· اÙÙÙÙØ²Ø§Øª"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:121",className:"rounded-xl border-2 border-black bg-memphis-mint p-3 text-center",children:[s.jsx(tu,{"data-loc":"client/src/components/QuizProfileOverview.tsx:121",className:"mx-auto mb-1 h-5 w-5"}),s.jsx("strong",{"data-loc":"client/src/components/QuizProfileOverview.tsx:121",className:"block text-2xl font-black text-black",children:d.totalAttempts}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:121",className:"text-[11px] font-bold text-black/60",children:"Ù
ØØ§ÙÙØ§Øª"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:122",className:"rounded-xl border-2 border-black bg-memphis-lilac p-3 text-center",children:[s.jsx(au,{"data-loc":"client/src/components/QuizProfileOverview.tsx:122",className:"mx-auto mb-1 h-5 w-5"}),s.jsx("strong",{"data-loc":"client/src/components/QuizProfileOverview.tsx:122",className:"block text-2xl font-black text-black",children:d.averageResponseSeconds===null?"â":`${d.averageResponseSeconds}Ø«`}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:122",className:"text-[11px] font-bold text-black/60",children:"Ù
ØªÙØ³Ø· Ø§ÙØ³Ø±Ø¹Ø©"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:123",className:"rounded-xl border-2 border-black bg-memphis-peach p-3 text-center",children:[s.jsx(vs,{"data-loc":"client/src/components/QuizProfileOverview.tsx:123",className:"mx-auto mb-1 h-5 w-5"}),s.jsxs("strong",{"data-loc":"client/src/components/QuizProfileOverview.tsx:123",className:"block text-2xl font-black text-black",children:["+",d.bestSpeedBonus]}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:123",className:"text-[11px] font-bold text-black/60",children:"Ø£ÙØ¶Ù Ù
ÙØ§Ùأة سرعة"})]})]}),s.jsxs("section",{"data-loc":"client/src/components/QuizProfileOverview.tsx:126",className:"mt-5 overflow-hidden rounded-2xl border-2 border-black bg-memphis-lilac/40","aria-labelledby":"rank-badges-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:127",className:"flex flex-wrap items-center justify-between gap-3 border-b-2 border-black/15 bg-white/65 px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:127",className:"flex items-center gap-2",children:[s.jsx(rf,{"data-loc":"client/src/components/QuizProfileOverview.tsx:127",className:"h-5 w-5"}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:127",children:[s.jsx("h3",{"data-loc":"client/src/components/QuizProfileOverview.tsx:127",id:"rank-badges-title",className:"font-black text-black",children:"شارات اÙÙ
تصدرÙÙ"}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:127",className:"text-[10px] font-bold text-black/60",children:"Ù
Ø±ÙØ± اÙÙ
ؤشر أ٠رÙÙØ² باÙÙÙØ¨Ùرد عÙÙ Ø§ÙØ´Ø§Ø±Ø© ÙÙ
Ø¹Ø±ÙØ© ØªØ§Ø±ÙØ®Ùا ÙØªÙاصÙÙÙØ§."})]})]}),s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:127",className:"rounded-full border-2 border-black bg-memphis-yellow px-2 py-1 text-[10px] font-black",children:[d.rankingBadges.filter(h=>h.earnedAt).length,"/",d.rankingBadges.length," Ù
ØØµÙÙØ©"]})]}),s.jsx("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:128",className:"grid gap-3 p-4 sm:grid-cols-3",children:d.rankingBadges.map(h=>s.jsx(AOe,{"data-loc":"client/src/components/QuizProfileOverview.tsx:128",badge:h,reduceMotion:o}
943,h.id))})]}),s.jsxs("section",{"data-loc":"client/src/components/QuizProfileOverview.tsx:131",className:"mt-5 overflow-hidden rounded-2xl border-2 border-black bg-memphis-yellow/35","aria-labelledby":"next-badge-progress-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",className:"flex flex-wrap items-center justify-between gap-3 border-b-2 border-black/15 bg-white/70 px-4 py-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",className:"flex items-center gap-2",children:[s.jsx(Al,{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",className:"h-5 w-5"}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",className:"text-[10px] font-black text-black/60",children:"Ù
سار Ø§ÙØªØªÙÙØ¬"}),s.jsx("h3",{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",id:"next-badge-progress-title",className:"font-black text-black",children:"ØªÙØ¯Ù
Ù ÙØÙ Ø§ÙØ´Ø§Ø±Ø© Ø§ÙØªØ§ÙÙØ©"})]})]}),d.rankingBadgeProgress.nextBadge?s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",className:"rounded-full border-2 border-black bg-memphis-lilac px-2.5 py-1 text-[10px] font-black text-black",children:[d.rankingBadgeProgress.nextBadge.icon," ",d.rankingBadgeProgress.nextBadge.nameAr]}):s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:132",className:"rounded-full border-2 border-black bg-memphis-mint px-2.5 py-1 text-[10px] font-black text-black",children:"Ø§ÙØªÙ
ÙØª اÙÙ
جÙ
ÙØ¹Ø©"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",className:"p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",className:"flex flex-wrap items-end justify-between gap-3",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",className:"max-w-lg text-sm font-bold leading-6 text-black/75",children:d.rankingBadgeProgress.message}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",className:"flex gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",className:"rounded-full border-2 border-black bg-white px-2.5 py-1 text-[10px] font-black text-black",children:d.rankingBadgeProgress.bestRank===null?"ÙØ§ ÙÙØ¬Ø¯ Ù
Ø±ÙØ² بعد":`Ø£ÙØ¶Ù Ù
Ø±ÙØ² #${d.rankingBadgeProgress.bestRank}`}),d.rankingBadgeProgress.positionsRemaining>0&&s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",className:"rounded-full border-2 border-black bg-white px-2.5 py-1 text-[10px] font-black text-black",children:[d.rankingBadgeProgress.positionsRemaining," Ù
Ø±Ø§ÙØ² Ù
تبÙÙØ©"]})]})]}),s.jsx("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",role:"progressbar","aria-label":"Ø§ÙØªÙدÙ
ÙØÙ Ø´Ø§Ø±Ø© اÙÙ
تصدرÙÙ Ø§ÙØªØ§ÙÙØ©","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d.rankingBadgeProgress.progressPercent,className:"mt-3 h-4 overflow-hidden rounded-full border-2 border-black bg-white",children:s.jsx(rn.div,{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",initial:{width:o?`${d.rankingBadgeProgress.progressPercent}%`:0},animate:{width:`${d.rankingBadgeProgress.progressPercent}%`},transition:{duration:o?0:.55,ease:"circOut"},className:"h-full rounded-full bg-memphis-lilac"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",className:"mt-2 flex justify-between text-[10px] font-black text-black/65",children:[s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",children:[d.rankingBadgeProgress.progressPercent,"% Ù
٠اÙÙ
رØÙØ© Ø§ÙØØ§ÙÙØ©"]}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:133",children:d.rankingBadgeProgress.nextBadge?`اÙÙØ¯Ù: Ù
Ø±ÙØ² ${d.rankingBadgeProgress.nextBadge.conditionValue} Ø£Ù Ø£ÙØ¶Ù`:"جÙ
ÙØ¹ Ø§ÙØ£Ùدا٠Ù
ØÙÙØ©"})]})]})]}),s.jsxs("section",{"data-loc":"client/src/components/QuizProfileOverview.tsx:136",className:"mt-5 rounded-2xl border-2 border-black bg-white p-4","aria-labelledby":"performance-comparison-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:137",className:"mb-3 flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:137",className:"flex items-center gap-2",children:[s.jsx(Lpe,{"data-loc":"client/src/components/QuizProfileOverview.tsx:137",className:"h-5 w-5"}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:137",children:[s.jsx("h3",{"data-loc":"client/src/components/QuizProfileOverview.tsx:137",id:"performance-comparison-title",className:"font-black text-black",children:"Ù
ÙØ§Ø±ÙØ© Ø§ÙØ£Ø¯Ø§Ø¡"}),s.jsxs("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:137",className:"text-[10px] font-bold text-black/60",children:["Ù
ÙØ§Ø±ÙØ© Ù
جÙ
ÙØ¹Ø© Ù
ع ",m.participantCount," Ù
تعÙÙ
Ø ÙØ§ تعرض Ø£Ù Ø¨ÙØ§Ùات ÙØ±Ø¯ÙØ©."]})]})]}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:137",className:"rounded-full border-2 border-black bg-memphis-sky px-2 py-1 text-[10px] font-black",children:"Ø¯ÙØ© Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"mb-4 rounded-xl border-2 border-black/20 bg-memphis-sky/20 p-3","aria-label":"ÙÙØ§ØªØ± Ù
ÙØ§Ø±ÙØ© Ø§ÙØ£Ø¯Ø§Ø¡",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"mb-2 flex items-center gap-2",children:[s.jsx(S6,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"h-4 w-4"}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"text-xs font-black text-black",children:"تصÙÙØ© اÙÙ
ÙØ§Ø±ÙØ©"}),f&&s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"rounded-full border border-black/45 bg-white px-2 py-0.5 text-[10px] font-black text-black",children:f})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"grid gap-2 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"grid gap-1 text-[11px] font-black text-black/70",children:[s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",children:"ÙØ¦Ø© اÙÙÙÙØ²"}),s.jsxs(Ss,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",value:e,onValueChange:t,children:[s.jsx(Ts,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"w-full border-2 border-black bg-white font-bold text-black",children:s.jsx(Cs,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",placeholder:"Ù٠اÙÙØ¦Ø§Øª"})}),s.jsxs(Ds,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",dir:"rtl",className:"border-2 border-black bg-white",children:[s.jsx(Kt,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",value:fc,children:"Ù٠اÙÙØ¦Ø§Øª"}),d.availableCategories.map(h=>s.jsxs(Kt,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",value:String(h.id),children:[h.icon," ",h.nameAr]},h.id))]})]})]}),s.jsxs("label",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"grid gap-1 text-[11px] font-black text-black/70",children:[s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",children:"Ù
ستÙÙ Ø§ÙØµØ¹Ùبة اÙÙ
ÙØ¯Ùر"}),s.jsxs(Ss,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",value:a,onValueChange:h=>n(h),children:[s.jsx(Ts,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"w-full border-2 border-black bg-white font-bold text-black",children:s.jsx(Cs,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",placeholder:"Ù٠اÙÙ
ستÙÙØ§Øª"})}),s.jsxs(Ds,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",dir:"rtl",className:"border-2 border-black bg-white",children:[s.jsx(Kt,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",value:fc,children:"Ù٠اÙÙ
ستÙÙØ§Øª"}),wOe.map(h=>s.jsx(Kt,{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",value:h,children:Dq[h]},h))]})]})]})]}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:139",className:"mt-2 text-[10px] font-bold leading-4 text-black/55",children:"ÙÙÙØ¯Ùر Ù
ستÙÙ Ø§ÙØµØ¹Ùبة Ù
٠عÙ
Ù Ø§ÙØ¯Ø±Ø³ ÙÙ
دة تعÙÙÙ
ÙØ ÙØªÙطبÙ٠اÙÙÙØ§ØªØ± عÙÙ Ø£Ø¯Ø§Ø¦Ù ÙØ¹Ù٠اÙÙ
ØªÙØ³Ø· اÙÙ
جÙ
ع ÙÙØ³Ù."})]}),m.peerAccuracyPercent===null?s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"rounded-xl border-2 border-dashed border-black/30 bg-memphis-sky/25 p-4 text-center text-sm font-bold text-black/60",children:"Ø³ØªØ¸ÙØ± اÙÙ
ÙØ§Ø±ÙØ© ÙÙØ± تÙÙÙØ± Ù
ØØ§ÙÙØ§Øª Ù
Ù Ù
تعÙÙ
Ù٠آخرÙ٠ضÙ
٠اÙÙÙØªØ± اÙÙ
ختار."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"grid gap-3 sm:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"rounded-xl border-2 border-black bg-memphis-yellow/55 p-3",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"text-[11px] font-black text-black/60",children:"Ø¯ÙØ© إجاباتÙ"}),s.jsxs("strong",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-1 block text-2xl font-black text-black",children:[m.userAccuracyPercent,"%"]}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-1 text-[10px] font-bold text-black/65",children:kOe(m.userAccuracyPercent,m.peerAccuracyPercent)})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"rounded-xl border-2 border-black bg-memphis-mint/55 p-3",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"text-[11px] font-black text-black/60",children:"Ù
ØªÙØ³Ø· اÙÙ
تعÙÙ
ÙÙ"}),s.jsxs("strong",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-1 block text-2xl font-black text-black",children:[m.peerAccuracyPercent,"%"]}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-1 text-[10px] font-bold text-black/65",children:"Ø¨ÙØ§Ø¡Ù عÙÙ Ù
ØØ§ÙÙØ§Øª اÙÙÙÙØ²Ø§Øª اÙÙ
Ø³Ø¬ÙØ©."})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"rounded-xl border-2 border-black bg-memphis-lilac/60 p-3",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"text-[11px] font-black text-black/60",children:"Ù
ØªÙØ³Ø· ÙÙØ§Ø·Ù"}),s.jsx("strong",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-1 block text-2xl font-black text-black",children:m.userAveragePoints}),s.jsxs("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-1 text-[10px] font-bold text-black/65",children:["اÙÙ
ØªÙØ³Ø· Ø§ÙØ¹Ø§Ù
: ",m.peerAveragePoints??"â"," ÙÙØ·Ø©"]})]})]}),m.performanceTrend.length>0?s.jsx("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-4 h-56 rounded-xl border-2 border-black/15 bg-white p-2",children:s.jsx($s,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",width:"100%",height:"100%",children:s.jsxs(Uc,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",data:m.performanceTrend,margin:{top:8,right:10,left:-12,bottom:3},children:[s.jsx(zr,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",strokeDasharray:"3 3",stroke:"#000",opacity:.12}),s.jsx(is,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",dataKey:"date",tick:{fontSize:10,fontWeight:700}}),s.jsx(Yn,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",domain:[0,100],tick:{fontSize:10,fontWeight:700},unit:"%"}),s.jsx(yn,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",formatter:(h,x)=>[`${h}%`,x==="userAccuracyPercent"?"Ø¯ÙØªÙ":"Ù
ØªÙØ³Ø· اÙÙ
تعÙÙ
ÙÙ"],labelFormatter:h=>`Ø§ÙØªØ§Ø±ÙØ®: ${h}`}),s.jsx(fr,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",formatter:h=>h==="userAccuracyPercent"?"Ø¯ÙØªÙ":"Ù
ØªÙØ³Ø· اÙÙ
تعÙÙ
ÙÙ"}),s.jsx(Kn,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",type:"monotone",dataKey:"userAccuracyPercent",stroke:"#7C3AED",strokeWidth:3,dot:{r:4,fill:"#FDE68A",stroke:"#000",strokeWidth:2},activeDot:{r:6}}),s.jsx(Kn,{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",type:"monotone",dataKey:"peerAccuracyPercent",stroke:"#10B981",strokeWidth:3,strokeDasharray:"7 4",dot:{r:3,fill:"#A7F3D0",stroke:"#000",strokeWidth:1},connectNulls:!0})]})})}):s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:141",className:"mt-3 text-center text-xs font-bold text-black/55",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ÙØ§ÙÙØ© ÙÙÙÙØªØ± اÙÙ
Ø®ØªØ§Ø±Ø Ø¬Ø±ÙØ¨ ÙØ¦Ø© Ø£Ù Ù
ستÙ٠آخر."})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"mt-5 rounded-xl border-2 border-black bg-white p-4",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"mb-3 flex items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"flex items-center gap-2",children:[s.jsx(Kx,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"h-5 w-5"}),s.jsx("h3",{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"font-black text-black",children:"ØªØ·ÙØ± سرعة Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"})]}),s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"text-[10px] font-bold text-black/60",children:"Ø§ÙØ£Ø¹ÙÙ = أسرع"})]}),d.speedTrend.length>0?s.jsx("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"h-48",children:s.jsx($s,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",width:"100%",height:"100%",children:s.jsxs(Uc,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",data:d.speedTrend,margin:{top:8,right:8,left:-12,bottom:3},children:[s.jsx(zr,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",strokeDasharray:"3 3",stroke:"#000",opacity:.12}),s.jsx(is,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",dataKey:"date",tick:{fontSize:10,fontWeight:700}}),s.jsx(Yn,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",reversed:!0,tick:{fontSize:10,fontWeight:700},unit:"Ø«",allowDecimals:!1}),s.jsx(yn,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",formatter:h=>[`${h} ثاÙÙØ©`,"Ù
ØªÙØ³Ø· Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"],labelFormatter:h=>`Ø§ÙØªØ§Ø±ÙØ®: ${h}`}),s.jsx(Kn,{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",type:"monotone",dataKey:"averageResponseSeconds",stroke:"#7C3AED",strokeWidth:3,dot:{r:4,fill:"#FDE68A",stroke:"#000",strokeWidth:2},activeDot:{r:6}})]})})}):s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:144",className:"py-8 text-center text-sm font-bold text-black/55",children:"Ø³ØªØ¸ÙØ± Ø§ÙØ³Ø±Ø¹Ø© بعد اÙÙ
ØØ§ÙÙØ§Øª Ø§ÙØØ¯ÙØ«Ø© Ø§ÙØªÙ تسج٠زÙ
Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø©."})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"mt-5",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"mb-3 flex items-center gap-2",children:[s.jsx(tu,{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"h-5 w-5"}),s.jsx("h3",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"font-black text-black",children:"سج٠اÙÙÙÙØ²Ø§Øª Ø§ÙØ³Ø§Ø¨ÙØ©"})]}),d.history.length===0?s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-4 text-center text-sm font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ Ù
ØØ§ÙÙØ§Øª تطاب٠اÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ©."}):s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-loc":"client/src/components
943/QuizProfileOverview.tsx:146",className:"space-y-2",children:d.history.slice(0,8).map(h=>s.jsxs("article",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"flex flex-wrap items-center justify-between gap-3 rounded-xl border-2 border-black bg-white px-3 py-3 shadow-[2px_2px_0_0_rgba(0,0,0,.18)]",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"min-w-0",children:[s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"truncate text-sm font-black text-black",children:h.lessonTitle??`ÙÙÙØ² Ø§ÙØ¯Ø±Ø³ #${h.lessonId}`}),s.jsxs("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-[11px] font-bold text-black/60",children:[s.jsx("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",children:bee(h.completedAt)}),s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",children:[h.score,"/",h.totalQuestions," صØÙØ"]}),h.averageResponseSeconds!==null&&s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"inline-flex items-center gap-0.5",children:[s.jsx(au,{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"h-3 w-3"}),h.averageResponseSeconds,"Ø«/سؤاÙ"]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"rounded-full border-2 border-black bg-memphis-yellow px-2.5 py-1 text-xs font-black text-black",children:[h.pointsEarned," ÙÙØ·Ø©"]}),s.jsxs("span",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"inline-flex items-center gap-0.5 rounded-full border-2 border-black bg-memphis-mint px-2.5 py-1 text-xs font-black text-black",children:[s.jsx(vs,{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"h-3 w-3"}),"+",h.speedBonus]})]})]},h.id))}),d.history.length>8&&s.jsxs("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:146",className:"mt-3 text-center text-xs font-bold text-black/55",children:["ÙÙØ¹Ø±Ø¶ Ø£ØØ¯Ø« 8 Ù
ØØ§ÙÙØ§Øª Ù
٠أص٠",d.history.length,"."]})]})]}),s.jsx(POe,{"data-loc":"client/src/components/QuizProfileOverview.tsx:147",badges:r,onClose:()=>i([])})]}):s.jsxs("div",{"data-loc":"client/src/components/QuizProfileOverview.tsx:116",className:"p-8 text-center",children:[s.jsx(tu,{"data-loc":"client/src/components/QuizProfileOverview.tsx:116",className:"mx-auto mb-3 h-8 w-8 text-black/55"}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:116",className:"font-black text-black",children:"تعذر تØÙ
ÙÙ Ù
Ù٠اÙÙÙÙØ²Ø§Øª ØØ§ÙÙØ§Ù"}),s.jsx("p",{"data-loc":"client/src/components/QuizProfileOverview.tsx:116",className:"mt-1 text-xs font-bold text-black/60",children:"أعد اÙÙ
ØØ§ÙÙØ© بعد ÙÙÙÙ."})]})]})}function COe({data:e,isLoading:t=!1}){const a=!!Cu();if(t)return s.jsxs("section",{"data-loc":"client/src/components/QuizDailyTasks.tsx:30",className:"memphis-card mb-6 animate-pulse bg-memphis-yellow/50 p-5",children:[s.jsx("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:30",className:"h-5 w-40 rounded bg-black/15"}),s.jsx("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:30",className:"mt-4 h-24 rounded-xl border-2 border-black/15 bg-white/65"})]});const n=e?.completedCount??0,r=e?.totalCount??3,i=Math.round(n/Math.max(1,r)*100),o=n===r,l=e?.streak??{currentStreak:0,longestStreak:0,nextMilestone:3,daysRemaining:3,progressPercent:0},c=l.currentStreak===0?"ابدأ اÙÙÙÙ
ÙØªØ´Ø¹Ù Ø³ÙØ³ÙØ© Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©.":l.daysRemaining===0?`ÙØµÙت ÙÙ
ØØ·Ø© ${l.nextMilestone} ÙÙÙ
â Ø§Ø³ØªÙ
ر ÙØªØªØ¬Ø§ÙØ²ÙØ§!`:`باÙÙ ${l.daysRemaining} ${l.daysRemaining===1?"ÙÙÙ
":"Ø£ÙØ§Ù
"} ÙÙ
ØØ·Ø© ${l.nextMilestone} Ø£ÙØ§Ù
.`;return s.jsxs("section",{"data-loc":"client/src/components/QuizDailyTasks.tsx:43",className:"memphis-card mb-6 overflow-hidden bg-[#eef4c9] p-0","aria-labelledby":"daily-quiz-tasks-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:44",className:"flex flex-wrap items-center justify-between gap-3 border-b-2 border-black bg-memphis-yellow/70 px-5 py-4",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:45",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:46",className:"flex h-9 w-9 items-center justify-center rounded-xl border-2 border-black bg-white",children:s.jsx(bpe,{"data-loc":"client/src/components/QuizDailyTasks.tsx:46",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:47",children:[s.jsx("h2",{"data-loc":"client/src/components/QuizDailyTasks.tsx:47",id:"daily-quiz-tasks-title",className:"text-base font-black text-black",children:"اÙÙ
ÙØ§Ù
اÙÙÙÙ
ÙØ©"}),s.jsx("p",{"data-loc":"client/src/components/QuizDailyTasks.tsx:47",className:"mt-0.5 text-[11px] font-bold text-black/65",children:"Ø®Ø·ÙØ§Øª ÙÙÙØ² ÙØµÙرة تÙÙÙÙ ÙØ±ØµÙ ÙÙ Ø§ÙØªØ±ØªÙب ÙØ§Ùشارات."})]})]}),s.jsxs("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:49",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black text-black",children:[n,"/",r]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:52",className:"p-5",children:[s.jsxs(rn.section,{"data-loc":"client/src/components/QuizDailyTasks.tsx:53",initial:{opacity:0,y:a?0:6}
943,animate:{opacity:1,y:0},transition:{duration:a?0:.22},className:"mb-4 rounded-2xl border-2 border-black bg-[#fffaf2] p-4 shadow-[3px_3px_0_0_rgba(0,0,0,.18)]","aria-label":"Ø³ÙØ³ÙØ© Ø§ÙØ£ÙاÙ
اÙÙ
تتاÙÙØ©",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:54",className:"flex flex-wrap items-center gap-3",children:[s.jsx(rn.span,{"data-loc":"client/src/components/QuizDailyTasks.tsx:55",animate:a?void 0:{rotate:[0,-7,7,0],scale:[1,1.08,1]},transition:{duration:.55,delay:.2},className:`flex h-12 w-12 items-center justify-center rounded-2xl border-2 border-black ${l.currentStreak>0?"bg-memphis-peach":"bg-white"}`,children:s.jsx(Eo,{"data-loc":"client/src/components/QuizDailyTasks.tsx:55",className:`h-6 w-6 ${l.currentStreak>0?"fill-orange-500 text-orange-600":"text-black/35"}`})}),s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"min-w-0 flex-1",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"flex flex-wrap items-center justify-between gap-x-3 gap-y-1",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",children:[s.jsx("p",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"text-[11px] font-black text-black/55",children:"Ø³ÙØ³ÙØ© Ø§ÙØ£ÙاÙ
اÙÙ
تتاÙÙØ©"}),s.jsxs("p",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"text-xl font-black text-black",children:[l.currentStreak," ",s.jsx("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"text-sm",children:l.currentStreak===1?"ÙÙÙ
":"Ø£ÙØ§Ù
"})]})]}),s.jsxs("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"inline-flex items-center gap-1 rounded-full border-2 border-black bg-memphis-yellow px-2.5 py-1 text-[10px] font-black text-black",children:[s.jsx(aa,{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"h-3.5 w-3.5"})," Ø£ÙØ¶ÙÙØ§ ",l.longestStreak]})]}),s.jsx("p",{"data-loc":"client/src/components/QuizDailyTasks.tsx:56",className:"mt-1 text-[11px] font-bold text-black/65",children:c})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:58",className:"mt-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:58",className:"mb-1.5 flex items-center justify-between text-[10px] font-black text-black/60",children:[s.jsxs("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:58",children:["اÙÙ
ØØ·Ø© Ø§ÙØªØ§ÙÙØ©: ",l.nextMilestone," Ø£ÙØ§Ù
"]}),s.jsxs("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:58",children:[l.progressPercent,"%"]})]}),s.jsx("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:58",className:"h-3 overflow-hidden rounded-full border-2 border-black bg-white",role:"progressbar","aria-label":"ØªÙØ¯Ù
Ø³ÙØ³ÙØ© Ø§ÙØ£ÙاÙ
ÙØÙ Ø§ÙÙ
ØØ·Ø© Ø§ÙØªØ§ÙÙØ©","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l.progressPercent,children:s.jsx(rn.div,{"data-loc":"client/src/components/QuizDailyTasks.tsx:58",initial:{width:a?`${l.progressPercent}%`:0},animate:{width:`${l.progressPercent}%`},transition:{duration:a?0:.5,ease:"circOut"},className:"h-full rounded-full bg-orange-500"})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:61",className:"mb-4",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:61",className:"mb-1.5 flex items-center justify-between text-[11px] font-black text-black",children:[s.jsx("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:61",children:o?"Ø£ÙÙÙØª Ù
ÙØ§Ù
اÙÙÙÙ
Ø Ø¨Ø·Ù!":"ØªÙØ¯Ù
اÙÙÙÙ
"}),s.jsxs("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:61",children:[i,"%"]})]}),s.jsx("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:61",className:"h-3 overflow-hidden rounded-full border-2 border-black bg-white",role:"progressbar","aria-label":"ØªÙØ¯Ù
اÙÙ
ÙØ§Ù
اÙÙÙÙ
ÙØ©","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":n,children:s.jsx(rn.div,{"data-loc":"client/src/components/QuizDailyTasks.tsx:61",initial:{width:a?`${i}%`:0},animate:{width:`${i}%`},transition:{duration:a?0:.45,ease:"circOut"},className:"h-full rounded-full bg-[#5F6F36]"})})]}),s.jsx("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"space-y-2",children:(e?.tasks??[]).map((d,m)=>s.jsxs(rn.article,{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",initial:{opacity:0,x:a?0:10}
943,animate:{opacity:1,x:0},transition:{duration:a?0:.2,delay:a?0:m*.05},className:`flex flex-wrap items-center gap-3 rounded-xl border-2 border-black p-3 ${d.completed?"bg-memphis-mint/60":"bg-white/85"}`,children:[s.jsx("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-white text-xl",children:d.completed?s.jsx(Ir,{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"h-5 w-5 text-emerald-700"}):d.icon}),s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"min-w-0 flex-1",children:[s.jsx("h3",{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"text-sm font-black text-black",children:d.title}),s.jsx("p",{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"mt-0.5 text-[11px] font-bold leading-4 text-black/65",children:d.description})]}),d.completed?s.jsxs("span",{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"inline-flex items-center gap-1 rounded-full border-2 border-black bg-white px-2.5 py-1 text-[10px] font-black text-black",children:[s.jsx(Ir,{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"h-3.5 w-3.5 text-emerald-700"})," Ù
ÙØªÙ
ÙØ©"]}):s.jsxs(jt,{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",href:d.href,className:"memphis-btn inline-flex items-center gap-1 bg-memphis-lilac px-3 py-2 text-[11px] font-black text-black",children:["ابدأ ",s.jsx(cpe,{"data-loc":"client/src/components/QuizDailyTasks.tsx:62",className:"h-3.5 w-3.5"})]})]},d.id))}),o&&s.jsxs("div",{"data-loc":"client/src/components/QuizDailyTasks.tsx:63",className:"mt-4 flex items-start gap-2 rounded-xl border-2 border-black bg-white p-3 text-xs font-bold leading-5 text-black",children:[s.jsx(pn,{"data-loc":"client/src/components/QuizDailyTasks.tsx:63",className:"mt-0.5 h-4 w-4 shrink-0 text-amber-600"}),"Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ© اÙÙÙÙ
ÙØ© تÙ
ÙØÙ ÙØ±ØµØ§Ù Ø£ÙØ«Ø± ÙØ±Ùع ÙÙØ§Ø· اÙÙÙÙØ²Ø Ù
ÙØ§Ùأة Ø§ÙØ³Ø±Ø¹Ø©Ø ÙÙ
Ø±ÙØ²Ù ÙÙ ÙÙØØ© اÙÙ
تصدرÙÙ."]})]})]})}const Eq={congratulationsEnabled:{title:"Ø§ÙØªÙاÙÙ ÙØ§Ùإعجابات",description:"ØªÙØ¨ÙÙØ§Øª Ø¹ÙØ¯Ù
ا ÙÙÙØ¦Ù زÙ
ÙØ§Ø¤Ù Ø£Ù ÙØªÙاعÙÙÙ Ù
ع ÙØªÙجت٠Ù٠اÙÙÙÙØ².",icon:jpe,color:"bg-memphis-peach"},challengesEnabled:{title:"Ø§ÙØªØØ¯Ùات",description:"ØªÙØ¨ÙÙØ§Øª ØªØØ¯Ùثات ØªØØ¯Ùات اÙÙÙÙØ² ÙØ§ÙÙØ±Ù Ø§ÙØªÙ تشار٠ÙÙÙØ§.",icon:ym,color:"bg-memphis-sky"}};function TOe(){const e=J.profile.notificationCategoryPreferences.useQuery(),t=J.useUtils(),a=J.profile.updateNotificationCategoryPreferences.useMutation({onSuccess:()=>{t.profile.notificationCategoryPreferences.invalidate(),t.notifications.list.invalidate(),t.notifications.unreadCount.invalidate()}}),n=e.data??{congratulationsEnabled:!0,challengesEnabled:!0},r=i=>{a.mutate({...n,[i]:!n[i]})};return s.jsxs("section",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:36",className:"memphis-card mb-6 bg-white p-5","aria-labelledby":"notification-categories-title",children:[s.jsxs("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:37",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:38",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-memphis-yellow",children:s.jsx(tpe,{"data-loc":"client/src/components/NotificationCategorySettings.tsx:38",className:"h-5 w-5 text-black"})}),s.jsxs("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:39",children:[s.jsx("h2",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:40",id:"notification-categories-title",className:"font-black text-base text-black",children:"ØªØ®ØµÙØµ إشعارات Ø§ÙØªÙاعÙ"}),s.jsx("p",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:41",className:"mt-1 text-xs font-bold leading-5 text-black/55",children:"Ø£ÙÙ٠اÙÙØ¦Ø© Ø§ÙØªÙ ÙØ§ ØªÙØ§Ø³Ø¨Ù Ø§ÙØ¢ÙØ ÙÙ ÙØØ°Ù Ø£Ù Ø³Ø¬Ù Ø£Ù ÙØ¤Ø«Ø± ÙÙ ÙÙØ§Ø·Ù."})]})]}),s.jsx("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:44",className:"mt-4 grid gap-3 sm:grid-cols-2",children:Object.keys(Eq).map(i=>{const o=Eq[i],l=o.icon,c=n[i];return s.jsxs("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:49",className:`flex items-center justify-between gap-3 rounded-2xl border-2 border-black p-3 ${c?o.color:"bg-gray-100"}`,children:[s.jsxs("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:50",className:"flex min-w-0 items-center gap-2.5",children:[s.jsx("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:51",className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border-2 border-black bg-white",children:s.jsx(l,{"data-loc":"client/src/components/NotificationCategorySettings.tsx:51",className:"h-4 w-4 text-black"})}),s.jsxs("div",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:52",children:[s.jsx("p",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:52",className:"text-sm font-black text-black",children:o.title}),s.jsx("p",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:52",className:"mt-0.5 text-[11px] font-bold leading-4 text-black/60",children:o.description})]})]}),s.jsx("button",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:54",type:"button",role:"switch","aria-label":`ÙØªÙ
${o.title}`,"aria-checked":c,onClick:()=>r(i),disabled:e.isLoading||a.isPending,className:`relative h-8 w-14 shrink-0 rounded-full border-2 border-black transition-colors disabled:opacity-60 ${c?"bg-memphis-mint":"bg-gray-300"}`,children:s.jsx("span",{"data-loc":"client/src/components/NotificationCategorySettings.tsx:55",className:`absolute top-1 h-5 w-5 rounded-full border-2 border-black bg-white transition-transform ${c?"translate-x-1":"translate-x-6"}`})})]},i)})})]})}function DOe({currentStreak:e}){const t=J.profile.streakMilestones.useQuery();if(t.isLoading)return s.jsx("section",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:6",className:"memphis-card mb-6 h-44 animate-pulse bg-white","aria-label":"جار٠تØÙ
ÙÙ Ù
ÙØ§Ùآت Ø§ÙØ³ÙØ³ÙØ©"});const a=t.data??[];return s.jsxs("section",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:10",className:"memphis-card mb-6 overflow-hidden bg-[#f7faf0] p-5","aria-labelledby":"streak-milestones-title",children:[s.jsxs("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:11",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:12",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:12",className:"flex h-11 w-11 items-center justify-center rounded-xl border-2 border-black bg-memphis-peach text-xl",children:"ð¥"}),s.jsxs("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:12",children:[s.jsx("h2",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:12",id:"streak-milestones-title",className:"font-black text-base text-black",children:"Ù
ÙØ§Ùآت اÙÙ
ÙØ§Ø¸Ø¨Ø©"}),s.jsx("p",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:12",className:"mt-1 text-xs font-bold text-black/60",children:"تص٠تÙÙØ§Ø¦ÙØ§Ù Ø¹ÙØ¯ Ø§ÙØÙØ§Ø¸ عÙÙ Ø³ÙØ³ÙØ© Ø§ÙØ¯Ø®ÙÙ."})]})]}),s.jsxs("span",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:13",className:"inline-flex items-center gap-1 rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black text-black",children:[s.jsx(Eo,{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:13",className:"h-3.5 w-3.5 text-orange-600"}),e," ÙÙÙ
"]})]}),s.jsx("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:15",className:"mt-5 grid gap-3 sm:grid-cols-3",children:a.map(n=>{const r=Math.min(100,Math.round((n.milestoneDays-n.remainingDays)/n.milestoneDays*100)),i=n.status==="earned",o=n.status==="ready";return s.jsxs("article",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:20",className:`rounded-2xl border-2 border-black p-3 shadow-[3px_3px_0_0_rgba(0,0,0,.16)] ${i?"bg-memphis-mint":o?"bg-memphis-yellow":"bg-white"}`,children:[s.jsxs("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:21",className:"flex items-center justify-between gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:21",className:"text-2xl","aria-hidden":!0,
943children:n.badge?.icon??"ð¥"}),s.jsx("span",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:21",className:`rounded-full border border-black px-2 py-0.5 text-[10px] font-black ${i||o?"bg-white":"bg-gray-100"}`,children:i?"Ù
ÙØªØ³Ø¨Ø©":o?"Ø¬Ø§ÙØ²Ø©":"ÙÙØ¯ Ø§ÙØªÙدÙ
"})]}),s.jsx("h3",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:22",className:"mt-2 text-sm font-black text-black",children:n.badge?.nameAr??`Ø³ÙØ³ÙØ© ${n.milestoneDays} ÙÙÙ
اÙ`}),s.jsx("p",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:23",className:"mt-1 text-[11px] font-bold text-black/60",children:i?`أضÙÙØª +${n.points} ÙÙØ·Ø© Ø¥ÙÙ Ø±ØµÙØ¯Ù`:n.remainingDays===0?`ستÙÙ
ÙØ +${n.points} ÙÙØ·Ø© Ø¹ÙØ¯ Ø§ÙØªØØ¯ÙØ«`:`باÙÙ ${n.remainingDays} ${n.remainingDays===1?"ÙÙÙ
":"Ø£ÙØ§Ù
"} ÙÙ +${n.points} ÙÙØ·Ø©`}),s.jsx("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:24",className:"mt-3 h-2.5 overflow-hidden rounded-full border border-black bg-white",role:"progressbar","aria-label":`ØªÙØ¯Ù
شارة ${n.milestoneDays} ÙÙÙ
`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,children:s.jsx("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:24",className:`h-full transition-[width] duration-500 ${i?"bg-[#5F6F36]":"bg-memphis-orange"}`,style:{width:`${r}%`}})}),s.jsxs("div",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:25",className:"mt-2 flex items-center gap-1 text-[10px] font-black text-black/55",children:[i?s.jsx(Ig,{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:25",className:"h-3.5 w-3.5"}):o?s.jsx(pn,{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:25",className:"h-3.5 w-3.5"}):s.jsx(Cpe,{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:25",className:"h-3.5 w-3.5"}),s.jsxs("span",{"data-loc":"client/src/components/StreakMilestoneRewards.tsx:25",children:[n.milestoneDays," ÙÙÙ
ا٠Ù
تتاÙÙØ©"]})]})]},n.milestoneDays)})})]})}const EOe={win:{label:"ÙÙØ²",color:"bg-memphis-mint",icon:aa},loss:{label:"خسارة",color:"bg-memphis-peach",icon:dpe},tie:{label:"تعادÙ",color:"bg-memphis-yellow",icon:Kx}};function MOe({analytics:e}){const[t,a]=P.useState(""),n=P.useMemo(()=>e.find(o=>o.opponentName===t)??e[0],[e,t]);if(!n)return null;const r=n.summary.totalPointDifference>=0?`+${n.summary.totalPointDifference}`:String(n.summary.totalPointDifference),i=J.quiz.createRematchRequest.useMutation({onSuccess:async o=>{const l=hX({lessonId:o.lessonId,challengerName:o.requesterName,score:o.score,totalQuestions:o.totalQuestions,pointsEarned:o.pointsEarned,rank:o.rank,token:o.token}),c=new URL(l,window.location.origin).toString();try{typeof navigator.share=="function"?(await navigator.share({title:"Ø·ÙØ¨ إعادة ØªØØ¯ÙÙ Ù
Ù Ù
ÙØµØ© أثر",text:"Ø¬Ø§ÙØ² ÙØ¬ÙÙØ© Ø¬Ø¯ÙØ¯Ø©Ø ÙØ¨Ù Ø·ÙØ¨Ù ÙÙØ§ÙسÙÙ Ù٠اÙÙÙÙØ².",url:c}),re.success("Ø£ÙØ±Ø³Ù Ø·ÙØ¨ إعادة Ø§ÙØªØØ¯ÙØ Ø³ÙØµÙÙ ØªÙØ¨ÙÙ ÙÙØ± ÙØ¨ÙÙÙ.")):(await navigator.clipboard.writeText(c),re.success("ÙÙØ³Ø® رابط إعادة Ø§ÙØªØØ¯ÙØ Ø´Ø§Ø±ÙÙ Ù
ع صدÙÙÙ."))}catch(d){d instanceof DOMException&&d.name==="AbortError"||re.error("تعذر تجÙÙØ² رابط إعادة Ø§ÙØªØØ¯Ù")}},onError:o=>re.error(o.message||"تعذر Ø¥ÙØ´Ø§Ø¡ Ø·ÙØ¨ إعادة Ø§ÙØªØØ¯Ù")});return s.jsxs("section",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:79",className:"mt-5 overflow-hidden rounded-xl border-2 border-black bg-[#f7faf0]","aria-labelledby":"challenge-opponent-chart-title",children:[s.jsx("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:80",className:"border-b-2 border-black bg-memphis-lilac px-4 py-3",children:s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:81",className:"flex flex-wrap items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:82",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:82",className:"flex h-8 w-8 items-center justify-center rounded-lg border-2 border-black bg-white",children:s.jsx(er,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:82",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:82",children:[s.jsx("h3",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:82",id:"challenge-opponent-chart-title",className:"text-sm font-black text-black",children:"ØªØ·ÙØ± Ù
ÙØ§Ø¬Ùات٠Ù
ع صدÙÙ"}),s.jsx("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:82",className:"text-[11px] font-bold text-black/60",children:"اÙÙÙØ² ÙØ§Ùخسارة ÙÙØ±Ù اÙÙÙØ§Ø· عبر Ø§ÙØ¬ÙÙØ§Øª."})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:83",className:"flex flex-wrap items-center gap-2",children:[e.length>1&&s.jsxs("select",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:84","aria-label":"اختر Ø§ÙØµØ¯ÙÙ ÙÙÙ
ÙØ§Ø±ÙØ©",value:n.opponentName,onChange:o=>a(o.target.value),className:"max-w-40 rounded-lg border-2 border-black bg-white px-2 py-1.5 text-xs font-black text-black outline-none focus:ring-2 focus:ring-black",children:[s.jsx("option",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:84",value:e[0].opponentName,children:e[0].opponentName}),e.slice(1).map(o=>s.jsx("option",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:84",value:o.opponentName,children:o.opponentName},o.opponentName))]}),s.jsxs("button",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:85",type:"button",onClick:()=>i.mutate({sourceAttemptId:n.rematch.sourceAttemptId}),disabled:i.isPending,className:"inline-flex min-h-9 items-center gap-1.5 rounded-lg border-2 border-black bg-memphis-yellow px-3 py-1.5 text-xs font-black text-black shadow-[2px_2px_0_0_#000] transition-transform active:translate-y-
943px disabled:cursor-wait disabled:opacity-60",title:`Ø£Ø±Ø³Ù Ø·ÙØ¨ إعادة ØªØØ¯Ù٠إÙÙ ${n.opponentName}`,children:[s.jsx(ym,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:85",className:"h-3.5 w-3.5"})," ",i.isPending?"جار٠تجÙÙØ² Ø§ÙØ·Ùبâ¦":`أعد ØªØØ¯Ù ${n.opponentName}`]})]})]})}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"grid grid-cols-3 gap-2 px-4 pt-4 text-center",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"rounded-lg border-2 border-black bg-white p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"text-lg font-black",children:n.summary.wins}),s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"mr-1 text-[10px] font-bold text-black/60",children:"ÙÙØ²"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"rounded-lg border-2 border-black bg-white p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"text-lg font-black",children:n.summary.losses}),s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"mr-1 text-[10px] font-bold text-black/60",children:"خسارة"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:`rounded-lg border-2 border-black p-2 ${n.summary.totalPointDifference>=0?"bg-memphis-mint":"bg-memphis-peach"}`,children:[s.jsx("strong",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"text-lg font-black",children:r}),s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:89",className:"mr-1 text-[10px] font-bold text-black/60",children:"ÙØ±Ù ÙÙØ§Ø·"})]})]}),s.jsx("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:90",className:"h-60 min-w-0 px-1 pb-3 pt-4",role:"img","aria-label":`رسÙ
ØªØ·ÙØ± Ù
ÙØ§Ø¬Ùات٠Ù
ع ${n.opponentName}`,children:s.jsx($s,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:91",width:"100%",height:"100%",children:s.jsxs(zMe,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:92",data:n.entries,margin:{top:8,right:10,left:-18,bottom:4},children:[s.jsx(zr,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:93",strokeDasharray:"3 3",stroke:"#00000022"}),s.jsx(is,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:94",dataKey:"label",tick:{fontSize:10,fontWeight:700},axisLine:{stroke:"#000"},tickLine:{stroke:"#000"}}),s.jsx(Yn,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:95",yAxisId:"points",tick:{fontSize:10,fontWeight:700},axisLine:{stroke:"#000"},tickLine:{stroke:"#000"}}),s.jsx(Yn,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:96",yAxisId:"record",orientation:"right",allowDecimals:!1,tick:{fontSize:10,fontWeight:700},axisLine:{stroke:"#000"},tickLine:{stroke:"#000"}}),s.jsx(yn,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:97",formatter:(o,l)=>[l==="ÙØ±Ù اÙÙÙØ§Ø·"?`${o>0?"+":""}${o} ÙÙØ·Ø©`:o,l],labelStyle:{fontWeight:800},contentStyle:{border:"2px solid #000",borderRadius:10,fontWeight:700}}),s.jsx(fr,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:98",wrapperStyle:{fontSize:11,fontWeight:800,paddingTop:6}}),s.jsx(Bs,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:99",yAxisId:"points",dataKey:"pointDifference",name:"ÙØ±Ù اÙÙÙØ§Ø·",radius:[4,4,0,0],children:n.entries.map(o=>s.jsx(Mu,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:99",fill:o.pointDifference>=0?"#4FD1A5":"#FFB4A2"},o.id))}),s.jsx(Kn,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:100",yAxisId:"record",type:"monotone",dataKey:"cumulativeWins",name:"ÙÙØ² تراÙÙ
Ù",stroke:"#2F7D32",strokeWidth:3,dot:{r:3,strokeWidth:2}}),s.jsx(Kn,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:101",yAxisId:"record",type:"monotone",dataKey:"cumulativeLosses",name:"خسارة تراÙÙ
ÙØ©",stroke:"#D85A5A",strokeWidth:3,dot:{r:3,strokeWidth:2}})]})})}),s.jsxs("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:105",className:"border-t-2 border-black bg-white px-4 py-2 text-center text-[11px] font-bold text-black/60",children:[n.summary.matches," Ù
ÙØ§Ø¬ÙØ© Ù
ع ",n.opponentName," · ",n.summary.ties," تعادÙ"]})]})}function OOe(){const e=J.quiz.challengeHistory.useQuery({limit:50});if(e.isLoading)return s.jsx("section",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:112",className:"memphis-card mb-6 h-56 animate-pulse bg-white","aria-label":"جار٠تØÙ
ÙÙ Ø³Ø¬Ù ØªØØ¯Ùات QR"});const t=e.data;return t?s.jsxs("section",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:117",className:"memphis-card mb-6 bg-white p-5","aria-labelledby":"qr-challenge-history-title",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",className:"flex h-10 w-10 items-center justify-center rounded-xl border-2 border-black bg-memphis-lilac",children:s.jsx(ym,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",className:"h-5 w-5 text-black"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",children:[s.jsx("h2",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",id:"qr-challenge-history-title",className:"font-black text-base text-black",children:"Ø³Ø¬Ù ØªØØ¯Ùات QR"}),s.jsx("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",className:"mt-1 text-xs font-bold text-black/55",children:"ÙØªØ§Ø¦Ø¬ ØªØØ¯Ùات٠Ù
ع Ø§ÙØ£ØµØ¯ÙØ§Ø¡Ø Ù
Ù Ø§ÙØ¨Ø·Ø§Ùات Ø§ÙØªÙ Ø´Ø§Ø±ÙØªÙا Ø£Ù ÙØ¨ÙØªÙØ§."})]})]}),s.jsxs("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:118",className:"rounded-full border-2 border-black bg-memphis-yellow px-3 py-1 text-xs font-black text-black",children:[t.summary.played," Ù
ÙØ§Ø¬ÙØ©"]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"mt-4 grid grid-cols-3 gap-2 text-center",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"rounded-xl border-2 border-black bg-memphis-mint p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"block text-xl font-black text-black",children:t.summary.wins}),s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"text-[10px] font-bold text-black/60",children:"ÙÙØ²"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"rounded-xl border-2 border-black bg-memphis-peach p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"block text-xl font-black text-black",children:t.summary.losses}),s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"text-[10px] font-bold text-black/60",children:"خسارة"})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"rounded-xl border-2 border-black bg-memphis-yellow p-2",children:[s.jsx("strong",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"block text-xl font-black text-black",children:t.summary.ties}),s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:119",className:"text-[10px] font-bold text-black/60",children:"تعادÙ"})]})]}),t.opponentAnalytics.length>0&&s.jsx(MOe,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:120",analytics:t.opponentAnalytics}),t.entries.length?s.jsx("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"mt-4 space-y-2",children:t.entries.map(a=>{const n=EOe[a.outcome],r=n.icon,i=a.pointsEarned-a.opponentPoints;return s.jsxs("article",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"flex flex-wrap items-center justify-between gap-3 rounded-xl border-2 border-black bg-[#f7faf0] p-3",children:[s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"flex min-w-0 items-center gap-2.5",children:[s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:`flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border-2 border-black ${n.color}`,children:s.jsx(r,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"h-4 w-4 text-black"})}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",children:[s.jsx("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"text-sm font-black text-black",children:a.role==="issued"?`ÙØ§Ø¬Ù ${a.opponentName} ØªØØ¯ÙÙ`:`ØªØØ¯Ùت ${a.opponentName}`}),s.jsxs("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"mt-0.5 text-[11px] font-bold text-black/60",children:["Ø£ÙØª ",a.score," â ",a.opponentName," ",a.opponentScore," · ÙØ±Ù اÙÙÙØ§Ø· ",i>0?"+":"",i," · ",new Date(a.completedAt).toLocaleDateString("ar-SA")]})]})]}),s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:`rounded-full border-2 border-black px-2.5 py-1 text-[11px] font-black text-black ${n.color}`,children:n.label}),s.jsx(jt,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",href:`/lesson/${a.lessonId}`,className:"rounded-lg border-2 border-black bg-white px-2 py-1 text-[11px] font-black text-black",children:"جÙÙØ© Ø¬Ø¯ÙØ¯Ø©"})]})]},a.id)})}):s.jsxs("div",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"mt-4 rounded-xl border-2 border-dashed border-black/30 bg-[#f7faf0] p-5 text-center",children:[s.jsx(ln,{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"mx-auto h-6 w-6 text-[#5F6F36]"}),s.jsx("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"mt-2 text-sm font-black text-black",children:"ÙÙ
تبدأ Ø£Ù Ù
ÙØ§Ø¬ÙØ© بعد"}),s.jsx("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:121",className:"mt-1 text-xs font-bold leading-5 text-black/60",children:"Ø´Ø§Ø±Ù Ø¨Ø·Ø§ÙØ© ÙØªÙجت٠Ù٠اÙÙÙÙØ²Ø Ø³ØªØ¸ÙØ± ÙÙØ§ ÙÙ Ù
ÙØ§Ø¬ÙØ© ÙÙØ¨ÙÙØ§ Ø§ÙØ£ØµØ¯Ùاء."})]}),t.summary.issued>0&&s.jsxs("p",{"data-loc":"client/src/components/QuizChallengeHistory.tsx:122",className:"mt-4 text-center text-[11px] font-bold text-black/55",children:["أطÙÙØª ",t.summary.issued," Ø¨Ø·Ø§ÙØ© ØªØØ¯ÙÙØ Ù
ÙÙØ§ ",t.summary.awaiting," Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙØ¨ÙÙ."]})]}):null}const ROe={purchased:{title:"تÙ
شراء Ø§ÙØÙ
Ø§ÙØ©",description:"Ø§ØØªÙجزت ØÙ
Ø§ÙØ© تÙÙØ§Ø¦ÙØ© ÙÙÙÙ
ØºÙØ§Ø¨ ÙØ§ØØ¯.",icon:bl,color:"bg-memphis-mint"},consumed:{title:"Ø§Ø³ØªÙØ®Ø¯Ù
ت Ø§ÙØÙ
Ø§ÙØ©",description:"ØÙ
ت Ø§ÙØ³ÙØ³ÙØ© Ù
Ù Ø§ÙØ§ÙÙØ·Ø§Ø¹ بعد ØºÙØ§Ø¨ ÙÙÙ
ÙØ§ØØ¯.",icon:C6,color:"bg-memphis-sky"}};function zOe(){const e=J.streak.freezeHistory.useQuery({limit:12});if(e.isLoading)return s.jsx("section",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:21",className:"memphis-card mb-6 h-44 animate-pulse bg-white","aria-label":"جار٠تØÙ
Ù٠سج٠ØÙ
Ø§ÙØ© Ø§ÙØ³ÙØ³ÙØ©"});const t=e.data??[];return s.jsxs("section",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:24",className:"memphis-card mb-6 overflow-hidden bg-white p-5","aria-labelledby":"streak-freeze-history-title",children:[s.jsxs("div",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:25",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:26",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-memphis-lilac shadow-[2px_2px_0_0_#000]",children:s.jsx(tu,{"data-loc":"client/src/components/StreakFreezeHistory.tsx:26",className:"h-5 w-5 text-black"})}),s.jsxs("div",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:27",children:[s.jsx("h2",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:28",id:"streak-freeze-history-title",className:"font-black text-base text-black",children:"سج٠ØÙ
Ø§ÙØ© Ø§ÙØ³ÙØ³ÙØ©"}),s.jsx("p",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:29",className:"mt-1 text-xs font-bold leading-5 text-black/60",children:"راجع ØªÙØ§Ø±ÙØ® شراء Ø§ÙØÙ
Ø§ÙØ© ÙØ§Ø³ØªØ®Ø¯Ø§Ù
ÙØ§Ø استخداÙ
Ø§ÙØÙ
Ø§ÙØ© ÙØ¹Ùد Ø¹Ø¯Ù Ø§ÙØ³ÙØ³ÙØ© اÙÙÙÙØ© Ù
Ù Ø§ÙØ¨Ø¯Ø§ÙØ©."})]})]}),t.length?s.jsx("ol",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:32",className:"relative mt-5 space-y-3 border-r-2 border-black/15 pr-5",children:t.map(a=>{const n=ROe[a.action],r=n.icon,i=new Date(a.createdAt);return s.jsxs("li",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"relative rounded-xl border-2 border-black bg-[#f7faf0] p-3 shadow-[2px_2px_0_0_rgba(0,0,0,.12)]",children:[s.jsx("span",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:`absolute -right-[1.82rem] top-4 flex h-7 w-7 items-center justify-center rounded-full border-2 border-black ${n.color}`,children:s.jsx(r,{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"h-3.5 w-3.5 text-black"})}),s.jsxs("div",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"flex flex-wrap items-start justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",children:[s.jsx("p",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"text-sm font-black text-black",children:n.title}),s.jsxs("p",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"mt-1 text-[11px] font-bold text-black/60",children:[n.description,a.protectedDayKey?` اÙÙÙÙ
اÙÙ
ØÙ
Ù: ${a.protectedDayKey}`:""]})]}),s.jsxs("div",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"text-left",children:[s.jsx("p",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"text-[11px] font-black text-black",children:i.toLocaleDateString("ar-SA")}),s.jsx("p",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"mt-0.5 text-[10px] font-bold text-black/50",children:i.toLocaleTimeString("ar-SA",{hour:"2-digit",minute:"2-digit"})}),a.pointsDelta<0&&s.jsxs("span",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:37",className:"mt-1 inline-block rounded-full border border-black bg-memphis-peach px-2 py-0.5 text-[10px] font-black text-black",children:[a.pointsDelta," ÙÙØ·Ø©"]})]})]})]},a.id)})}):s.jsxs("div",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:39",className:"mt-5 rounded-xl border-2 border-dashed border-black/30 bg-[#f7faf0] p-5 text-center",children:[s.jsx(C6,{"data-loc":"client/src/components/StreakFreezeHistory.tsx:39",className:"mx-auto h-6 w-6 text-[#5F6F36]"}),s.jsx("p",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:39",className:"mt-2 text-sm font-black text-black",children:"ÙØ§ ÙÙØ¬Ø¯ اØ
943³ØªØ®Ø¯Ø§Ù
ÙÙØÙ
Ø§ÙØ© بعد"}),s.jsx("p",{"data-loc":"client/src/components/StreakFreezeHistory.tsx:39",className:"mt-1 text-xs font-bold text-black/60",children:"Ø¹ÙØ¯ شراء أ٠استخداÙ
تجÙ
ÙØ¯ Ø§ÙØ³ÙØ³ÙØ©Ø Ø³ÙØ¸Ùر Ø§ÙØ³Ø¬Ù ÙÙØ§ Ø¨Ø§ÙØªØ±ØªÙب Ø§ÙØ²Ù
ÙÙ."})]})]})}function _Oe(e){return!(e??!0)}function IOe({pathJson:e,paths:t}){let a=[];try{a=e?JSON.parse(e).map(c=>`${c.choiceLabel??"ÙØ±Ø§Ø±"} â ${c.nextNodeId??"اÙÙÙØ§ÙØ©"}`):[]}catch{a=[]}const n=t.find(c=>c.signature!==a.join(" | "))??t[0],r=n?.choices??[],i=Math.max(a.length,r.length),[o,l]=P.useState(()=>typeof window<"u"&&window.localStorage.getItem("jad-path-hint-seen")!=="1");return P.useEffect(()=>{o&&window.localStorage.setItem("jad-path-hint-seen","0")},[o]),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"mt-3 rounded-xl border-2 border-black bg-purple-50 p-3",children:[o&&s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"mb-2 flex items-center justify-between gap-2 rounded-lg border-2 border-dashed border-purple-700 bg-white p-2 text-xs font-bold text-black",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:29",children:"Ù
Ø±ÙØ± اÙÙ
ؤشر ÙÙÙ Ø£Ù Ø®Ø·ÙØ© Ù
ختÙÙØ© ÙÙ
Ø¹Ø±ÙØ© اÙÙØ±Ø§Ø± Ø§ÙØ°Ù سبب Ø§ÙØ§Ø®ØªÙاÙ."}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:29",type:"button",onClick:()=>{l(!1),window.localStorage.setItem("jad-path-hint-seen","1")},className:"rounded border border-black px-2 py-1 text-[10px] font-black",children:"ÙÙÙ
ت"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"mb-2 flex flex-wrap gap-2 text-[11px] font-black",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"rounded-md border-2 border-black bg-emerald-100 px-2 py-1",children:"أخضر: Ù
تشابÙ"}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"rounded-md border-2 border-black bg-red-100 px-2 py-1",children:"Ø£ØÙ
ر: Ù
ختÙÙ"})]}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"space-y-2",children:Array.from({length:i}).map((c,d)=>{const m=a[d]??"ÙØ§ ÙÙØ¬Ø¯ ÙØ±Ø§Ø±",f=r[d]??"ÙØ§ ÙÙØ¬Ø¯ ÙØ±Ø§Ø±",h=m===f&&m!=="ÙØ§ ÙÙØ¬Ø¯ ÙØ±Ø§Ø±";return s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:29",title:h?"ÙØ°Ø§ اÙÙØ±Ø§Ø± ÙØ·Ø§Ø¨Ù اÙÙ
سار Ø§ÙØ£Ùثر Ø´ÙÙØ¹Ø§Ù":`Ø§Ø®ØªÙØ§Ù اÙÙØ±Ø§Ø±: Ù
سار٠«${m}» ÙØ§ÙÙ
سار Ø§ÙØ´Ø§Ø¦Ø¹ «${f}»`,className:`rounded-lg border-2 border-black p-2 text-xs font-bold ${h?"bg-emerald-100":"bg-red-100"}`,children:[s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"mb-1 font-black text-black",children:["Ø§ÙØ®Ø·ÙØ© ",d+1," ",h?"â ØªØ·Ø§Ø¨Ù":"â Ø§Ø®ØªÙاÙ"]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"grid gap-1 sm:grid-cols-2",children:[s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"rounded-md bg-white/80 p-2 text-black",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"block text-[10px] text-black/50",children:"Ù
سارÙ"}),m]}),s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"rounded-md bg-white/80 p-2 text-black",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"block text-[10px] text-black/50",children:"اÙÙ
سار Ø§ÙØ£Ùثر Ø´ÙÙØ¹Ø§Ù"}),f]})]})]},d)})}),n&&s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:29",className:"mt-2 rounded-lg border-2 border-black bg-memphis-yellow p-2 text-xs font-black text-black",children:["اÙÙ
سار Ø§ÙØ´Ø§Ø¦Ø¹ اÙÙ
ختار: ",n.share,"% (",n.count," Ù
ستخدÙ
)"]})]})}function LOe({userId:e,totalLessonsCompleted:t,currentStreak:a}){const n=new Date,[r,i]=P.useState(n.getFullYear()),[o,l]=P.useState(n.getMonth()+1),[c,d]=P.useState(null),m=J.profile.activityCalendar.useQuery({year:r,month:o},{enabled:!!e}),f=P.useMemo(()=>(m.data??[]).reduce((A,E)=>A+E.lessons,0),[m.data]),h=P.useMemo(()=>(m.data??[]).filter(A=>A.loggedIn).length,[m.data]),x=new Map;for(const A of m.data??[])x.set(A.date,{lessons:A.lessons,loggedIn:A.loggedIn,lessonNames:A.lessonNames??[]});const b=new Date(r,o,0).getDate(),w=(new Date(r,o-1,1).getDay()+1)%7,j=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"],N=["Ù","Ø«","ر","Ø®","ج","س","Ø"],k=r===n.getFullYear()&&o===n.getMonth()+1,D=()=>{o===1?(i(A=>A-1),l(12)):l(A=>A-1)},C=()=>{o===12?(i(A=>A+1),l(1)):l(A=>A+1)},S=P.useCallback(A=>{const E=`${r}-${String(o).padStart(2,"0")}-${String(A).padStart(2,"0")}`,R=x.get(E);R&&(R.lessons>0||R.loggedIn)&&d({date:E,...R})},[r,o,x]);return s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:76",className:"memphis-card p-6 mt-6",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:77",className:"font-black text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(iy,{"data-loc":"client/src/pages/ProfilePage.tsx:78",className:"w-5 h-5"})," تÙÙÙÙ
اÙÙØ´Ø§Ø·"]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:80",className:"flex items-center justify-between mb-4",children:[s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:81",onClick:D,className:"memphis-btn bg-white px-3 py-1.5 font-black text-sm text-black",children:"â Ø§ÙسابÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:82",className:"font-black text-base text-black",children:[j[o-1]," ",r]}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:83",onClick:C,disabled:k,className:"memphis-btn bg-white px-3 py-1.5 font-black text-sm text-black disabled:opacity-40",children:"Ø§ÙØªØ§ÙÙ â"})]}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:85",className:"grid grid-cols-7 gap-1 mb-2",children:N.map(A=>s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:86",className:"text-center text-xs font-black text-black/50",children:A},A))}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:88",className:"grid grid-cols-7 gap-1",children:[Array.from({length:w}).map((A,E)=>s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:89"},`e-${E}`)),Array.from({length:b},(A,E)=>E+1).map(A=>{const E=`${r}-${String(o).padStart(2,"0")}-${String(A).padStart(2,"0")}`,R=x.get(E),F=k&&A===n.getDate(),I=(R?.lessons??0)>0,H=R?.loggedIn??!1,_=I||H;let V="relative aspect-square rounded-lg border-2 flex flex-col items-center justify-center text-xs font-black transition-all ";return _&&(V+="cursor-pointer hover:scale-110 hover:shadow-[2px_2px_0px_0px_#000] "),F?V+="border-black bg-black text-white shadow-memphis ":I?V+="border-black bg-memphis-mint text-black ":H?V+="border-black/40 bg-memphis-yellow/60 text-black ":V+="border-black/10 bg-white/50 text-black/30 ",s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:104",className:V,title:I?`${R.lessons} درس â Ø§ÙÙØ± ÙÙØªÙاصÙÙ`:H?"دخÙÙ â Ø§ÙÙØ± ÙÙØªÙاصÙÙ":"",onClick:()=>_&&S(A),children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:110",children:A}),I&&!F&&s.jsx(bn,{"data-loc":"client/src/pages/ProfilePage.tsx:111",className:"w-2.5 h-2.5 text-green-600 absolute bottom-0.5"}),H&&!I&&!F&&s.jsx(ng,{"data-loc":"client/src/pages/ProfilePage.tsx:112",className:"w-2 h-2 text-amber-500 absolute bottom-0.5"})]},A)})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:117",className:"flex flex-wrap gap-4 mt-4 text-xs font-bold text-black/60",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:118",className:"flex items-center gap-1.5",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:118",className:"w-4 h-4 rounded border-2 border-black bg-memphis-mint"}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:118",children:"درس Ù
ÙØªÙ
Ù"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:119",className:"flex items-center gap-1.5",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:119",className:"w-4 h-4 rounded border-2 border-black/40 bg-memphis-yellow/60"}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:119",children:"تسجÙ٠دخÙÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:120",className:"flex items-center gap-1.5",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:120",className:"w-4 h-4 rounded border-2 border-black bg-black"}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:120",children:"اÙÙÙÙ
"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:123",className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mt-5 pt-5 border-t-2 border-black/10",children:[s.jsx(xs,{"data-loc":"client/src/pages/ProfilePage.tsx:125",open:!!c,onOpenChange:A=>!A&&d(null),children:s.jsx(bs,{"data-loc":"client/src/pages/ProfilePage.tsx:126",className:"max-w-sm border-4 border-black shadow-[6px_6px_0px_0px_#000]",style:{borderRadius:"16px"},children:s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:127",className:"p-2",children:[s.jsxs("h3",{"data-loc":"client/src/pages/ProfilePage.tsx:128",className:"font-black text-lg text-black mb-1 flex items-center gap-2",children:[s.jsx(iy,{"data-loc":"client/src/pages/ProfilePage.tsx:129",className:"w-5 h-5"}),c&&(()=>{const[A,E,R]=c.date.split("-"),F=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"];return`${parseInt(R)} ${F[parseInt(E)-1]} ${A}`})()]}),c&&c.lessons>0?s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:137",className:"mt-3",children:[s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:138",className:"text-xs font-black text-black/50 mb-2 uppercase tracking-wide",children:["Ø§ÙØ¯Ø±Ùس اÙÙ
ÙØªÙ
ÙØ© (",c.lessons,")"]}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:139",className:"space-y-2",children:c.lessonNames.length>0?c.lessonNames.map((A,E)=>s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:141",className:"flex items-center gap-2 bg-memphis-mint/60 border-2 border-black rounded-xl px-3 py-2",children:[s.jsx(bn,{"data-loc":"client/src/pages/ProfilePage.tsx:142",className:"w-4 h-4 text-green-600 flex-shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:143",className:"font-bold text-sm text-black",children:A})]},E)):s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:146",className:"text-sm font-bold text-black/50",children:[c.lessons," درس Ù
ÙØªÙ
Ù"]})})]}):s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:151",className:"mt-3 flex items-center gap-2 bg-memphis-yellow/60 border-2 border-black rounded-xl px-3 py-2",children:[s.jsx(ng,{"data-loc":"client/src/pages/ProfilePage.tsx:152",className:"w-4 h-4 text-amber-600 flex-shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:153",className:"font-bold text-sm text-black",children:"ÙÙÙ
تسجÙ٠دخÙÙ ÙÙØ·"})]}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:156",onClick:()=>d(null),className:"mt-4 w-full memphis-btn bg-black text-white font-black text-sm py-2",children:"Ø¥ØºÙØ§Ù"})]})})}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:165",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:166",className:"flex items-center justify-center gap-1 mb-1",children:s.jsx(Ln,{"data-loc":"client/src/pages/ProfilePage.tsx:167",className:"w-4 h-4 text-black/60"})}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:169",className:"font-black text-2xl text-black",children:t}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:170",className:"text-xs font-bold text-black/50",children:"إجÙ
اÙÙ Ø§ÙØ¯Ø±Ùس"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:172",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:173",className:"flex items-center justify-center gap-1 mb-1",children:s.jsx(er,{"data-loc":"client/src/pages/ProfilePage.tsx:174",className:"w-4 h-4 text-black/60"})}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:176",className:"font-black text-2xl text-black",children:f}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:177",className:"text-xs font-bold text-black/50",children:"Ø¯Ø±ÙØ³ ÙØ°Ø§ Ø§ÙØ´Ùر"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:179",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:180",className:"flex items-center justify-center gap-1 mb-1",children:s.jsx(ng,{"data-loc":"client/src/pages/ProfilePage.tsx:181",className:"w-4 h-4 text-black/60"})}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:183",className:"font-black text-2xl text-black",children:h}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:184",className:"text-xs font-bold text-black/50",children:"Ø£ÙØ§Ù
Ø§ÙØ¯Ø®ÙÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:186",className:"text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:187",className:"flex items-center justify-center gap-1 mb-1",children:s.jsx(Eo,{"data-loc":"client/src/pages/ProfilePage.tsx:188",className:"w-4 h-4 text-memp
943his-coral"})}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:190",className:"font-black text-2xl text-black flex items-center justify-center gap-1",children:[a,a>=7&&s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:192",className:"text-sm",children:"ð¥"})]}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:194",className:"text-xs font-bold text-black/50",children:"Ø£ÙØ§Ù
Ù
تتاÙÙØ©"})]})]})]})}function FOe(){const{user:e,isAuthenticated:t}=Ma(),a=J.profile.me.useQuery(void 0,{enabled:t}),n=J.badges.mine.useQuery(void 0,{enabled:t}),r=J.lessons.myCompletions.useQuery(void 0,{enabled:t}),i=J.challenges.myCompletions.useQuery(void 0,{enabled:t}),o=J.profile.streakRewards.useQuery(void 0,{enabled:t}),l=J.badges.list.useQuery(),c=J.streak.mine.useQuery(void 0,{enabled:t}),d=c.data?.currentStreak??0,m=c.data?.pureStreakDays??0,f=J.profile.monthlyProgress.useQuery(void 0,{enabled:t}),h=J.dailyContent.notificationPreference.useQuery(void 0,{enabled:t}),x=J.profile.achievementSoundsPreference.useQuery(void 0,{enabled:t}),b=J.profile.updateAchievementSoundsPreference.useMutation({onSuccess:()=>x.refetch()}),y=J.dailyContent.updateNotificationPreference.useMutation({onSuccess:()=>h.refetch()}),[w,j]=P.useState(""),[N,k]=P.useState(null),[D,C]=P.useState(""),[S,A]=P.useState(null),[E,R]=P.useState("image/jpeg"),[F,I]=P.useState(!1),[H,_]=P.useState(0),[V,W]=P.useState(1),[B,K]=P.useState(0),[ae,$]=P.useState(0),Z=P.useRef(null);J.profile.weeklyRankHistory.useQuery(void 0,{enabled:t});const O=J.profile.weeklyRankComparison.useQuery(void 0,{enabled:t}),Y=J.lessons.storyHistory.useQuery(void 0,{enabled:t}),Q=J.quiz.dailyTasks.useQuery(void 0,{enabled:t}),U=J.streak.freezeStatus.useQuery(void 0,{enabled:t}),[oe,X]=P.useState(null),[ne,ge]=P.useState(null),[me,Ae]=P.useState("all"),[Pe,L]=P.useState("all"),ke=P.useMemo(()=>(o.data??[]).filter(G=>{const je=Pe==="all"||G.milestoneDays===Number(Pe),ze=me==="all"||new Date(G.claimedAt).getTime()>=Date.now()-Number(me)*864e5;return je&&ze}),[o.data,me,Pe]),Me=P.useMemo(()=>({lessonId:oe?.lessonId??0,storyId:oe?.storyId??""}),[oe?.lessonId,oe?.storyId]),Ze=J.lessons.storyPathComparison.useQuery(Me,{enabled:!!oe}),Ce=J.profile.incomingAccessRequests.useQuery(void 0,{enabled:t}),Te=J.profile.decideAccess.useMutation({onSuccess:()=>Ce.refetch()}),Ke=J.profile.updateVisibility.useMutation({onSuccess:()=>C("تÙ
ØªØØ¯ÙØ« إعدادات Ø§ÙØ®ØµÙØµÙØ©"),onError:G=>C(G.message||"تعذر ØªØØ¯ÙØ« Ø§ÙØ®ØµÙØµÙØ©")}),Ve=J.profile.updateAvatar.useMutation({onSuccess:G=>{k(G.avatarUrl),C("تÙ
ØªØØ¯ÙØ« Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ© Ø¨ÙØ¬Ø§Ø"),a.refetch()},onError:G=>C(G.message||"تعذر ØªØØ¯ÙØ« Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ©")}),ht=G=>{if(!G)return;if(!["image/png","image/jpeg","image/webp"].includes(G.type)){C("اختر ØµÙØ±Ø© Ø¨ØµÙØºØ© PNG Ø£Ù JPG Ø£Ù WebP");return}if(G.size>2*1024*1024){C("ØØ¬Ù
Ø§ÙØµÙرة ÙØ¬Ø¨ Ø£ÙØ§ ÙØªØ¬Ø§Ùز 2 Ù
ÙØ¬Ø§Ø¨Ø§Ùت");return}const je=new FileReader;je.onload=()=>{const ze=String(je.result??"");A(ze),R(G.type),_(0),W(1),K(0),$(0),I(!0),C("")},je.readAsDataURL(G)},pe=()=>{if(!S)return;const G=new Image;G.onload=()=>{const je=Z.current??document.createElement("canvas");je.width=512,je.height=512;const ze=je.getContext("2d");if(!ze)return;ze.clearRect(0,0,512,512),ze.save(),ze.translate(256,256),ze.rotate(H*Math.PI/180);const Qe=Math.max(512/G.width,512/G.height)*V,ye=B/100*512,Ee=ae/100*512;ze.drawImage(G,-G.width*Qe/2+ye,-G.height*Qe/2+Ee,G.width*Qe,G.height*Qe),ze.restore();const te=je.toDataURL(E,.9);k(te),I(!1),C("جار٠ØÙظ Ø§ÙØµÙرة..."),Ve.mutate({dataUrl:te,mimeType:E})},G.src=S};if(!t)return s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:314",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:315",className:"memphis-card p-10 text-center max-w-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:316",className:"text-5xl mb-4",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:317",className:"font-black text-2xl text-black mb-3",children:"ÙØ¬Ø¨ تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:318",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-6 py-3 font-black text-black w-full",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]})});const et=a.data,xe=et?.level??1,it=et?.totalPoints??0,Tt=Math.min(100,it%100),bt=new Set((n.data??[]).map(G=>G.badge.id)),vt=(n.data??[]).map(G=>G.badge),St=(l.data??[]).filter(G=>!bt.has(G.id)),de=G=>{const je=G.conditionType==="points_threshold"?it:G.conditionType==="lessons_count"?r.data?.length??0:G.conditionType==="challenges_count"?i.data?.length??0:G.conditionType==="story_paths"?Y.data?.length??0:G.conditionType==="streak_days"?d:G.conditionType==="pure_streak_days"?m:0,ze=G.conditionType==="points_threshold"?"ÙÙØ·Ø©":G.conditionType==="lessons_count"?"درس":G.conditionType==="challenges_count"?"ØªØØ¯Ù":G.conditionType==="story_paths"?"Ù
سار ÙØµØ©":G.conditionType==="streak_days"?"ÙÙÙ
Ù
تتاÙÙ":G.conditionType==="pure_streak_days"?"ÙÙÙ
Ø§Ù Ø¨ÙØ§ تجÙ
ÙØ¯":"Ø¥ÙØ¬Ø§Ø²";return{value:je,label:ze,remaining:Math.max(0,G.conditionValue-je),percentage:Math.min(100,Math.round(je/Math.max(1,G.conditionValue)*100))}},be=et?.id??0;return s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:341",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/ProfilePage.tsx:342"}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:343",className:"max-w-3xl mx-auto px-4 py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:345",className:"memphis-card bg-memphis-lilac p-8 mb-8 flex flex-col sm:flex-row items-center gap-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:346",className:"flex flex-col items-center gap-2 shrink-0",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:347",className:"w-20 h-20 rounded-2xl bg-white border-2 border-black shadow-memphis overflow-hidden flex items-center justify-center",children:N||et?.avatarUrl?s.jsx("img",{"data-loc":"client/src/pages/ProfilePage.tsx:349",src:N||et?.avatarUrl||"",alt:"Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ©",className:"w-full h-full object-cover"}):s.jsx(kW,{"data-loc":"client/src/pages/ProfilePage.tsx:351",className:"w-10 h-10 text-black"})}),s.jsxs("label",{"data-loc":"client/src/pages/ProfilePage.tsx:354",className:"memphis-btn bg-white px-3 py-1.5 text-[11px] font-black text-black cursor-pointer flex items-center gap-1.5",children:[s.jsx(lpe,{"data-loc":"client/src/pages/ProfilePage.tsx:355",className:"w-3.5 h-3.5"})," تعدÙÙ Ø§ÙØµÙرة",s.jsx("input",{"data-loc":"client/src/pages/ProfilePage.tsx:356",type:"file",accept:"image/png,image/jpeg,image/webp",className:"sr-only",onChange:G=>ht(G.target.files?.[0]),disabled:Ve.isPending})]}),D&&s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:358",className:"text-[10px] font-bold text-black/70 text-center max-w-28",role:"status",children:D})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:360",className:"flex-1 text-center sm:text-right",children:[s.jsx("h1",{"data-loc":"client/src/pages/ProfilePage.tsx:361",className:"font-black text-2xl text-black",children:e?.name??"Ù
ÙØ¸Ù"}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:362",className:"text-black/60 font-medium text-sm",children:e?.email??""}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:363",className:"flex flex-wrap gap-2 mt-3 justify-center sm:justify-start",children:[s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:364",className:"memphis-badge-pill bg-memphis-yellow",children:["اÙÙ
ستÙÙ ",xe]}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:365",className:"memphis-badge-pill bg-white",children:[it," ÙÙØ·Ø©"]}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:366",className:"memphis-badge-pill bg-memphis-mint",children:[n.data?.length??0," شارة"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:369",className:"mt-4 max-w-xs mx-auto
943sm:mx-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:370",className:"flex justify-between text-xs font-bold text-black mb-1",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:371",children:"ØªÙØ¯Ù
اÙÙ
ستÙÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:372",children:[Tt,"%"]})]}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:374",className:"h-3 bg-white border-2 border-black rounded-full overflow-hidden",children:s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:375",className:"h-full bg-black rounded-full transition-all",style:{width:`${Tt}%`}})})]})]})]}),s.jsx(xs,{"data-loc":"client/src/pages/ProfilePage.tsx:381",open:F,onOpenChange:I,children:s.jsx(bs,{"data-loc":"client/src/pages/ProfilePage.tsx:382",className:"max-w-md border-4 border-black shadow-[6px_6px_0px_0px_#000]",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:383",className:"space-y-4",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:384",className:"font-black text-xl text-black flex items-center gap-2",children:[s.jsx(yW,{"data-loc":"client/src/pages/ProfilePage.tsx:384",className:"w-5 h-5"})," ÙØµ ÙØªØ¯ÙÙØ± Ø§ÙØµÙرة"]}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:385",className:"mx-auto w-56 h-56 rounded-full border-4 border-black bg-white overflow-hidden flex items-center justify-center",children:S&&s.jsx("img",{"data-loc":"client/src/pages/ProfilePage.tsx:386",src:S,alt:"Ù
عاÙÙØ© Ø§ÙØµÙرة Ø§ÙØ±Ù
Ø²ÙØ©",className:"w-full h-full object-cover",style:{transform:`translate(${B}%, ${ae}%) rotate(${H}deg) scale(${V})`}})}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:388",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:388",className:"flex items-center gap-3",children:[s.jsx("label",{"data-loc":"client/src/pages/ProfilePage.tsx:388",htmlFor:"avatar-zoom",className:"text-xs font-black text-black whitespace-nowrap",children:"Ø§ÙØªÙØ¨ÙØ±"}),s.jsx("input",{"data-loc":"client/src/pages/ProfilePage.tsx:388",id:"avatar-zoom",type:"range",min:"1",max:"2",step:"0.05",value:V,onChange:G=>W(Number(G.target.value)),className:"w-full"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:388",className:"flex items-center gap-3",children:[s.jsx("label",{"data-loc":"client/src/pages/ProfilePage.tsx:388",htmlFor:"avatar-x",className:"text-xs font-black text-black whitespace-nowrap",children:"Ø£ÙÙÙ"}),s.jsx("input",{"data-loc":"client/src/pages/ProfilePage.tsx:388",id:"avatar-x",type:"range",min:"-50",max:"50",value:B,onChange:G=>K(Number(G.target.value)),className:"w-full"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:388",className:"flex items-center gap-3",children:[s.jsx("label",{"data-loc":"client/src/pages/ProfilePage.tsx:388",htmlFor:"avatar-y",className:"text-xs font-black text-black whitespace-nowrap",children:"رأسÙ"}),s.jsx("input",{"data-loc":"client/src/pages/ProfilePage.tsx:388",id:"avatar-y",type:"range",min:"-50",max:"50",value:ae,onChange:G=>$(Number(G.target.value)),className:"w-full"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:389",className:"flex gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/ProfilePage.tsx:389",type:"button",className:"memphis-btn bg-white text-black font-black px-3 py-2 flex items-center gap-1",onClick:()=>_(G=>(G+90)%360),children:[s.jsx(vW,{"data-loc":"client/src/pages/ProfilePage.tsx:389",className:"w-4 h-4"})," تدÙÙØ±"]}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:389",type:"button",className:"memphis-btn bg-memphis-mint text-black font-black px-4 py-2 flex-1",onClick:pe,disabled:Ve.isPending,children:"ØÙظ Ø§ÙØµÙرة"})]})]})})}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:395",className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-8",children:[{icon:aa,label:"اÙÙÙØ§Ø· اÙÙÙÙØ©",value:it,color:"bg-memphis-yellow"},{icon:Ln,label:"Ø§ÙØ¯Ø±Ùس اÙÙ
ÙØªÙ
ÙØ©",value:r.data?.length??0,color:"bg-memphis-mint"},{icon:Os,label:"Ø§ÙØªØØ¯Ùات اÙÙ
ÙØ¬Ø²Ø©",value:i.data?.length??0,color:"bg-memphis-sky"},{icon:Sn,label:"Ø§ÙØ´Ø§Ø±Ø§Øª",value:n.data?.length??0,color:"bg-memphis-lilac"}].map(G=>{const je=G.icon;return s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:404",className:`memphis-card ${G.color} p-4 text-center`,children:[s.jsx(je,{"data-loc":"client/src/pages/ProfilePage.tsx:405",className:"w-6 h-6 mx-auto mb-2 text-black"}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:406",className:"font-black text-2xl text-black",children:G.value}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:407",className:"text-xs font-bold text-black/60",children:G.label})]},G.label)})}),s.jsx(SOe,{"data-loc":"client/src/pages/ProfilePage.tsx:413"}),s.jsx(COe,{"data-loc":"client/src/pages/ProfilePage.tsx:414",data:Q.data,isLoading:Q.isLoading}),s.jsx(DOe,{"data-loc":"client/src/pages/ProfilePage.tsx:415",currentStreak:d}),s.jsxs("section",{"data-loc":"client/src/pages/ProfilePage.tsx:416",className:"memphis-card mb-6 overflow-hidden bg-[#f7faf0] p-5","aria-labelledby":"streak-freeze-availability-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:417",className:"flex flex-wrap items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:418",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:419",className:"flex h-11 w-11 items-center justify-center rounded-xl border-2 border-black bg-memphis-sky shadow-[2px_2px_0_0_#000]",children:s.jsx(bl,{"data-loc":"client/src/pages/ProfilePage.tsx:419",className:"h-5 w-5 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:420",children:[s.jsx("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:421",id:"streak-freeze-availability-title",className:"font-black text-base text-black",children:"ØÙ
Ø§ÙØ© Ø§ÙØ³ÙØ³ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:422",className:"mt-1 text-xs font-bold text-black/60",children:"ØÙ
Ø§ÙØ© ÙØ§ØØ¯Ø© تÙ
ÙØ¹ اÙÙØ·Ø§Ø¹ Ø³ÙØ³ÙØ© ÙÙÙ
ÙØ§ØØ¯ تÙÙØ§Ø¦ÙاÙ."})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:425",className:"min-w-30 rounded-xl border-2 border-black bg-white px-4 py-2 text-center shadow-[2px_2px_0_0_rgba(0,0,0,.18)]","aria-live":"polite",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:426",className:"text-2xl font-black text-black",children:U.isLoading?"â¦":U.data?.freezeCount??0}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:427",className:"text-[10px] font-black text-black/60",children:"ØÙ
Ø§ÙØ© Ù
ØªØ§ØØ©"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:430",className:"mt-3 flex flex-wrap items-center justify-between gap-2 border-t-2 border-black/10 pt-3 text-xs font-bold text-black/65",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:431",children:U.data?.protected?"Ø§ÙØÙ
Ø§ÙØ© Ù
ÙØ¹ÙÙØ© ÙØ³ØªÙستخدÙ
تÙÙØ§Ø¦ÙØ§Ù Ø¹ÙØ¯ Ø§ÙØºÙاب ÙÙÙÙ
ÙØ§ØØ¯.":"ÙØ¹ÙÙ Ø§ÙØÙ
Ø§ÙØ© Ù
Ù ÙÙØØ© اÙÙ
ÙØ¸Ù ÙØ¨Ù ÙÙÙ
Ø§ÙØºÙاب."}),s.jsx("a",{"data-loc":"client/src/pages/ProfilePage.tsx:432",href:"/dashboard",className:"font-black text-black underline decoration-2 underline-offset-4",children:"إدارة Ø§ÙØÙ
Ø§ÙØ© â"})]})]}),s.jsx(zOe,{"data-loc":"client/src/pages/ProfilePage.tsx:435"}),s.jsx(OOe,{"data-loc":"client/src/pages/ProfilePage.tsx:436"}),s.jsx(TOe,{"data-loc":"client/src/pages/ProfilePage.tsx:437"}),s.jsx("section",{"data-loc":"client/src/pages/ProfilePage.tsx:439",className:"memphis-card p-5 mb-6 bg-white",children:s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:440",className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:441",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:442",className:"w-10 h-10 rounded-xl bg-memphis-mint border-2 border-black flex items-center justify-center",children:s.jsx(j6,{"data-loc":"client/src/pages/ProfilePage.tsx:442",className:"w-5 h-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:443",children:[s.jsx("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:443",className:"font-black text-base",children:"ØªÙØ¨ÙÙ Ù
ØØªÙ٠اÙÙÙÙ
"}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:443",className:"font-bold text-xs text-black/55 mt-1",children:"Ø¥Ø¸ÙØ§Ø± ØªÙØ¨ÙÙ ÙÙØ±Ù Ø¹ÙØ¯ اعتÙ
اد Ù
ØØªÙÙ Ø¬Ø¯ÙØ¯ ÙÙ Ø§ÙØªØ§Ø³Ø¹Ø© ØµØ¨Ø§ØØ§Ù."})]})]}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:445",role:"switch","aria-checked":h.data??!0,onClick:()=>y.mutate({enabled:_Oe(h.data)}),disabled:y.isPending,className:`relative w-14 h-8 rounded-full border-2 border-black transition-colors ${h.data??!0?"bg-memphis-mint":"bg-gray-200"}`,children:s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:446",className:`absolute top-1 w-5 h-5 rounded-full bg-white border-2 border-black transition-transform ${h.data??!0?"translate-x-1":"translate-x-6"}`})})]})}),s.jsx("section",{"data-loc":"client/src/pages/ProfilePage.tsx:451",className:"memphis-card p-5 mb-6 bg-white","aria-labelledby":"achievement-sounds-title",children:s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:452",className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:453",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:453",className:"w-10 h-10 rounded-xl bg-memphis-yellow border-2 border-black flex items-center justify-center text-xl",children:"ð"}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:453",children:[s.jsx("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:453",id:"achievement-sounds-title",className:"font-black text-base",children:"Ø£ØµÙØ§Øª Ø§ÙØ¥Ùجاز"}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:453",className:"mt-1 text-xs font-bold text-black/55",children:"تØÙÙ
Ù٠تشغÙ٠اÙÙØºÙ
ات Ø¹ÙØ¯ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© ÙÙØ³Ø¨ Ø§ÙØ´Ø§Ø±Ø§Øª."})]})]}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:454",type:"button",role:"switch","aria-checked":x.data?.enabled??!0,onClick:()=>b.mutate({enabled:!(x.data?.enabled??!0)}),disabled:b.isPending,className:`relative w-14 h-8 rounded-full border-2 border-black transition-colors ${x.data?.enabled??!0?"bg-memphis-mint":"bg-gray-200"}`,children:s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:454",className:`absolute top-1 w-5 h-5 rounded-full bg-white border-2 border-black transition-transform ${x.data?.enabled??!0?"translate-x-1":"translate-x-6"}`})})]})}),s.jsxs("section",{"data-loc":"client/src/pages/ProfilePage.tsx:458",className:"memphis-card p-5 mb-6 bg-white","aria-labelledby":"swipe-hint-settings-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:459",className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:460",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:461",className:"flex h-10 w-10 items-center justify-center rounded-xl border-2 border-black bg-memphis-yellow text-xl",children:"â"}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:462",children:[s.jsx("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:463",id:"swipe-hint-settings-title",className:"font-black text-base",children:"Ø§ÙØªÙÙ
ÙØØ§Øª Ø§ÙØ¥Ø±Ø´Ø§Ø¯ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:464",className:"mt-1 text-xs font-bold text-black/55",children:"أعد Ø¥Ø¸ÙØ§Ø± تÙÙ
ÙØ Ø§ÙØ³ØØ¨ ÙÙ ÙÙØØ§Øª اÙÙØ§ØªÙ Ø¹ÙØ¯ Ø§ÙØØ§Ø¬Ø©."})]})]}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:467",type:"button",onClick:()=>{N1e(),j("Ø³ÙØ¸Ùر Ø§ÙØªÙÙ
ÙØ Ù
Ø¬Ø¯Ø¯Ø§Ù Ø¹ÙØ¯ ÙØªØ ÙÙØØ© تدعÙ
Ø§ÙØ³ØØ¨.")},className:"min-h-11 border-2 border-black bg-memphis-lilac px-4 py-2 text-sm font-black shadow-[2px_2px_0px_#16233f] transition-transform active:translate-y-
943px",children:"Ø¥Ø¸ÙØ§Ø± Ø§ÙØªÙÙ
ÙØ Ù
جدداÙ"})]}),w&&s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:469",role:"status",className:"mt-3 border-2 border-black/20 bg-memphis-mint/60 px-3 py-2 text-xs font-black text-black",children:w})]}),be>0&&s.jsx(LOe,{"data-loc":"client/src/pages/ProfilePage.tsx:473",userId:be,totalLessonsCompleted:r.data?.length??0,currentStreak:d}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:480",className:"memphis-card p-5 mt-6",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:481",className:"font-black text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(er,{"data-loc":"client/src/pages/ProfilePage.tsx:482",className:"w-5 h-5"})," ØªØ·ÙØ± Ø§ÙØ£Ø¯Ø§Ø¡ (30 ÙÙÙ
)"]}),f.isLoading?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:485",className:"h-40 flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:486",className:"w-8 h-8 border-4 border-black border-t-transparent rounded-full animate-spin"})}):s.jsx($s,{"data-loc":"client/src/pages/ProfilePage.tsx:489",width:"100%",height:200,children:s.jsxs(Uc,{"data-loc":"client/src/pages/ProfilePage.tsx:490",data:f.data??[],margin:{top:5,right:10,left:0,bottom:5},children:[s.jsx(zr,{"data-loc":"client/src/pages/ProfilePage.tsx:491",strokeDasharray:"3 3",stroke:"#00000015"}),s.jsx(is,{"data-loc":"client/src/pages/ProfilePage.tsx:492",dataKey:"date",tick:{fontSize:9,fontWeight:"bold"},interval:4}),s.jsx(Yn,{"data-loc":"client/src/pages/ProfilePage.tsx:493",tick:{fontSize:10,fontWeight:"bold"},allowDecimals:!1}),s.jsx(yn,{"data-loc":"client/src/pages/ProfilePage.tsx:494",formatter:(G,je)=>[G,je==="points"?"اÙÙÙØ§Ø·":"Ø§ÙØ¯Ø±Ùس"]}),s.jsx(fr,{"data-loc":"client/src/pages/ProfilePage.tsx:495",formatter:G=>G==="points"?"اÙÙÙØ§Ø·":"Ø§ÙØ¯Ø±Ùس"}),s.jsx(Kn,{"data-loc":"client/src/pages/ProfilePage.tsx:496",type:"monotone",dataKey:"points",stroke:"#7C3AED",strokeWidth:2.5,dot:!1,name:"points"}),s.jsx(Kn,{"data-loc":"client/src/pages/ProfilePage.tsx:497",type:"monotone",dataKey:"lessons",stroke:"#10B981",strokeWidth:2.5,dot:!1,name:"lessons"})]})})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:503",className:"memphis-card bg-white p-6 mb-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:504",className:"flex items-center justify-between gap-3 mb-3",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:504",className:"font-black text-lg text-black flex items-center gap-2",children:[s.jsx(bl,{"data-loc":"client/src/pages/ProfilePage.tsx:504",className:"w-5 h-5"})," Ø·ÙØ¨Ø§Øª اÙÙØµÙÙ"]}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:504",className:"memphis-badge-pill bg-memphis-yellow text-black",children:[(Ce.data??[]).filter(G=>G.request.status==="pending").length," Ù
عÙÙØ©"]})]}),(Ce.data??[]).filter(G=>G.request.status==="pending").length===0?s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:505",className:"text-sm font-bold text-black/50",children:"ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª ÙØµÙÙ Ø¬Ø¯ÙØ¯Ø©."}):s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:505",className:"space-y-2",children:(Ce.data??[]).filter(G=>G.request.status==="pending").map(G=>s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:505",className:"flex items-center justify-between gap-2 border-2 border-black rounded-lg p-3",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:505",className:"font-black text-sm text-black",children:G.requester.name??"Ù
ستخدÙ
"}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:505",className:"flex gap-2",children:[s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:505",type:"button",className:"memphis-btn bg-memphis-mint text-black px-3 py-1 text-xs font-black",onClick:()=>Te.mutate({requestId:G.request.id,decision:"approved"}),children:"Ù
ÙØ§ÙÙØ©"}),s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:505",type:"button",className:"memphis-btn bg-white text-black px-3 py-1 text-xs font-black",onClick:()=>Te.mutate({requestId:G.request.id,decision:"rejected"}),children:"Ø±ÙØ¶"})]})]},G.request.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:508",className:"memphis-card bg-white p-6 mb-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:509",className:"flex items-center justify-between gap-3 mb-3",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:509",className:"font-black text-lg text-black flex items-center gap-2",children:[s.jsx(bl,{"data-loc":"client/src/pages/ProfilePage.tsx:509",className:"w-5 h-5"})," Ø®ØµÙØµÙØ© اÙÙ
ÙÙ"]}),s.jsxs("select",{"data-loc":"client/src/pages/ProfilePage.tsx:509","aria-label":"Ø®ØµÙØµÙØ© اÙÙ
ÙÙ Ø§ÙØ´Ø®ØµÙ",value:et?.profileVisibility??"public",onChange:G=>Ke.mutate({visibility:G.target.value}),className:"border-2 border-black rounded-lg px-3 py-2 font-black text-sm bg-white text-black",children:[s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:509",value:"public",children:"عاÙ
ÙÙØ¬Ù
ÙØ¹"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:509",value:"team",children:"أعضاء ÙØ±ÙÙÙ ÙÙØ·"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:509",value:"private",children:"خاص ب٠ÙÙØ·"})]})]}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:510",className:"text-xs font-bold text-black/60",children:"ÙØªØÙÙ
ÙØ°Ø§ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ Ù٠ظÙÙØ± Ù
ÙÙÙ ÙØ¥ÙØ¬Ø§Ø²Ø§ØªÙ Ø¹ÙØ¯ اÙÙÙØ± عÙ٠اسÙ
Ù ÙÙ ÙÙØØ© Ø§ÙØµØ¯Ø§Ø±Ø©."})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:513",className:"memphis-card bg-white p-6 mb-8",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:514",className:"font-black text-lg text-black mb-3 flex items-center gap-2",children:[s.jsx(er,{"data-loc":"client/src/pages/ProfilePage.tsx:514",className:"w-5 h-5"})," Ø³Ø¬Ù ØªØºÙØ± Ø§ÙØªØ±ØªÙب"]}),O.isLoading?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:515",className:"h-40 rounded-xl bg-black/5 animate-pulse","aria-label":"جار٠تØÙ
ÙÙ Ø³Ø¬Ù Ø§ÙØªØ±ØªÙب"}):O.data&&O.data.some(G=>G.rank>0)?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:515",className:"h-44",children:s.jsx($s,{"data-loc":"client/src/pages/ProfilePage.tsx:515",
943width:"100%",height:"100%",children:s.jsxs(Uc,{"data-loc":"client/src/pages/ProfilePage.tsx:515",data:O.data,children:[s.jsx(zr,{"data-loc":"client/src/pages/ProfilePage.tsx:515",strokeDasharray:"3 3",stroke:"#000",opacity:.15}),s.jsx(is,{"data-loc":"client/src/pages/ProfilePage.tsx:515",dataKey:"weekStart",tick:{fontSize:10,fontWeight:700}}),s.jsx(Yn,{"data-loc":"client/src/pages/ProfilePage.tsx:515",reversed:!0,allowDecimals:!1,tick:{fontSize:10,fontWeight:700}}),s.jsx(yn,{"data-loc":"client/src/pages/ProfilePage.tsx:515",formatter:(G,je)=>[je==="rank"?`اÙÙ
Ø±ÙØ² ${G}`:G===null?"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات":`Ù
ØªÙØ³Ø· اÙÙ
Ø±ÙØ² ${G}`,je==="rank"?"ØªØ±ØªÙØ¨Ù":"Ù
ØªÙØ³Ø· اÙÙØ±ÙÙ"]}),s.jsx(fr,{"data-loc":"client/src/pages/ProfilePage.tsx:515",formatter:G=>G==="rank"?"ØªØ±ØªÙØ¨Ù":"Ù
ØªÙØ³Ø· اÙÙØ±ÙÙ"}),s.jsx(Kn,{"data-loc":"client/src/pages/ProfilePage.tsx:515",type:"monotone",dataKey:"rank",name:"rank",stroke:"#000",strokeWidth:3,dot:{r:4,fill:"#c4b5fd",stroke:"#000",strokeWidth:2}}),s.jsx(Kn,{"data-loc":"client/src/pages/ProfilePage.tsx:515",type:"monotone",dataKey:"teamAverageRank",name:"teamAverageRank",stroke:"#22c55e",strokeWidth:3,dot:{r:3,fill:"#86efac",stroke:"#000",strokeWidth:1},connectNulls:!0})]})})}):s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:515",className:"text-sm font-bold text-black/50 py-10 text-center",children:"Ø³ÙØ¸Ùر Ø³Ø¬Ù Ø§ÙØªØ±ØªÙب بعد تسجÙÙ ÙÙØ§Ø· Ø£Ø³Ø¨ÙØ¹ÙØ©."})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:519",className:"memphis-card bg-memphis-peach p-6 mb-8",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:520",className:"font-black text-xl text-black flex items-center gap-2 mb-4",children:[s.jsx(Ln,{"data-loc":"client/src/pages/ProfilePage.tsx:520",className:"w-5 h-5"})," Ù
سارات اÙÙØµØµ اÙÙ
ÙØªÙ
ÙØ©"]}),Y.isLoading?s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"grid gap-3 sm:grid-cols-2",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"h-20 animate-pulse rounded-xl bg-white/70"}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"h-20 animate-pulse rounded-xl bg-white/70"})]}):(Y.data?.length??0)===0?s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-5 text-center text-sm font-bold text-black/60",children:"Ø£ÙÙ
٠أÙÙ ÙØµØ© Ù
ØªÙØ±Ø¹Ø© ÙØªØ¸Ùر ÙÙØ§ رØÙØªÙ Ø§ÙØªØ¹ÙÙÙ
ÙØ©."}):s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"grid gap-3 sm:grid-cols-2",children:Y.data?.map(G=>s.jsx("button",{"data-loc":"client/src/pages/ProfilePage.tsx:521",type:"button",onClick:()=>X(G),className:"w-full rounded-xl border-2 border-black bg-white p-4 text-right shadow-[3px_3px_0_#000] transition-transform hover:-translate-y-0.5",children:s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-memphis-lilac text-xl",children:"ð§"}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"truncate font-black text-black",children:G.storyId}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"truncate text-xs font-bold text-black/60",children:G.lessonTitle??`Ø§ÙØ¯Ø±Ø³ رÙÙ
${G.lessonId}`}),s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"mt-2 text-[11px] font-bold text-emerald-700",children:["Ù
ÙØªÙ
ÙØ© ÙÙ ",G.completedAt?new Date(G.completedAt).toLocaleDateString("ar-SA"):"ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"]}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:521",className:"mt-2 text-[11px] font-black text-purple-700",children:"اÙÙØ± ÙØ¹Ø±Ø¶ اÙÙ
سار ÙØ§ÙÙØ±Ø§Ø±Ø§Øª â"})]})]})},G.id))}),s.jsx(xs,{"data-loc":"client/src/pages/ProfilePage.tsx:522",open:!!oe,onOpenChange:G=>!G&&X(null),children:s.jsx(bs,{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"max-w-md border-4 border-black shadow-[6px_6px_0_#000]",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"text-xs font-black text-black/60",children:"ØªÙØ§ØµÙ٠اÙÙØµØ© اÙÙ
ÙØªÙ
ÙØ©"}),s.jsx("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"text-xl font-black text-black",children:oe?.storyId}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"text-sm font-bold text-black/60",children:oe?.lessonTitle??`Ø§ÙØ¯Ø±Ø³ رÙÙ
${oe?.lessonId??""}`})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"rounded-xl border-2 border-black bg-memphis-mint p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"mb-3 font-black text-black",children:"اÙÙØ±Ø§Ø±Ø§Øª Ø§ÙØªÙ Ø§ØªØ®Ø°ØªÙØ§"}),(()=>{let G=[];try{G=oe?.pathJson?JSON.parse(oe.pathJson):[]}catch{G=[]}return G.length?s.jsx("ol",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"space-y-2",children:G.map((je,ze)=>s.jsxs("li",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"flex items-start gap-2 rounded-lg border-2 border-black bg-white p-2 text-sm font-bold",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full border-2 border-black bg-memphis-yellow text-xs",children:ze+1}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:522",children:[je.choiceLabel,s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"mt-1 block text-[11px] text-black/50",children:["Ø§ÙØ§ÙØªÙØ§Ù Ø¥ÙÙ: ",je.nextNodeId]})]})]},`${je.choiceLabel}-${ze}`))}):s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"text-sm font-bold text-black/60",children:"ÙØ§ ÙÙØ¬Ø¯ Ø³Ø¬Ù ÙØ±Ø§Ø±Ø§Øª Ù
ØÙÙØ¸ ÙÙØ°Ù اÙÙØµØ© اÙÙØ¯ÙÙ
Ø©."})})()]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"rounded-xl border-2 border-black bg-white p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"mb-2 font-black text-black",children:"Ù
ÙØ§Ø±ÙØ© اÙÙ
سارات"}),Ze.isLoading?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"h-8 animate-pulse rounded-lg bg-purple-100"}):Ze.data?.paths.length?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"space-y-2",children:Ze.data.paths.slice(0,3).map((G,je)=>{let ze="";try{ze=oe?.pathJson?JSON.parse(oe.pathJson).map(ye=>`${ye.choiceLabel??"ÙØ±Ø§Ø±"} â ${ye.nextNodeId??"اÙÙÙØ§ÙØ©"}`).join(" | "):""}catch{ze=""}const Qe=ze===G.signature;return s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:`rounded-lg border-2 border-black p-2 text-xs font-bold ${Qe?"bg-memphis-yellow":"bg-gray-50"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"flex items-center justify-between gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:522",children:Qe?"Ù
سارÙ":`اÙÙ
سار Ø§ÙØ£Ùثر Ø´ÙÙØ¹Ø§Ù #${je+1}`}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"font-black text-purple-700",children:[G.share,"% (",G.count," Ù
ستخدÙ
)"]})]}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"mt-1 text-black/60",children:G.choices.join(" ⢠")||"ÙØ§ ØªÙØ¬Ø¯ ØªÙØ§ØµÙÙ Ù
ØÙÙØ¸Ø©"})]},G.signature)})}):s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:522",className:"text-xs font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ÙØ§ÙÙØ© ÙÙ
ÙØ§Ø±ÙØ© اÙÙ
سارات بعد."}),Ze.data?.paths.length?s.jsx(IOe,{"data-loc":"client/src/pages/ProfilePage.tsx:522",pathJson:oe?.pathJson,paths:Ze.data.paths}):null]})]})})})]}),s.jsxs("section",{"data-loc":"client/src/pages/ProfilePage.tsx:526",className:"memphis-card mb-8 bg-memphis-lilac p-6","aria-labelledby":"achievement-hub-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:527",className:"mb-5 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:528",children:[s.jsxs("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:528",id:"achievement-hub-title",className:"flex items-center gap-2 text-xl font-black text-black",children:[s.jsx(Sn,{"data-loc":"client/src/pages/ProfilePage.tsx:528",className:"h-5 w-5"})," Ù
Ø±ÙØ² Ø¥ÙØ¬Ø§Ø²Ø§ØªÙ"]}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:528",className:"mt-1 text-xs font-bold text-black/60",children:"Ù٠شارة ÙÙØ§ Ù
رتبطة بسÙÙ٠تعÙÙ
ØÙÙÙÙ Ø£Ù ØªÙØ¯Ù
Ù
ÙØ«Ù Ù٠اÙÙ
ÙØµØ©."})]}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:529",className:"memphis-badge-pill bg-memphis-yellow text-black",children:[vt.length,"/",(l.data??[]).length," شارة Ù
ÙØªØ³Ø¨Ø©"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:531",className:"mb-5 grid grid-cols-3 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:532",className:"rounded-xl border-2 border-black bg-white p-3 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:532",className:"text-xl font-black",children:vt.length}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:532",className:"text-[11px] font-bold text-black/60",children:"شارات Ù
ØØµÙÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:533",className:"rounded-xl border-2 border-black bg-memphis-mint p-3 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:533",className:"text-xl font-black",children:r.data?.length??0}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:533",className:"text-[11px] font-bold text-black/60",children:"Ø¯Ø±ÙØ³ Ù
ÙØªÙ
ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:534",className:"rounded-xl border-2 border-black bg-memphis-peach p-3 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:534",className:"text-xl font-black",children:Y.data?.length??0}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:534",className:"text-[11px] font-bold text-black/60",children:"Ù
سارات ÙØµØ©"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"mb-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[s.jsx("h3",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"text-sm font-black text-black",children:"سج٠Ù
ÙØ§Ùآت Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©"}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"flex flex-wrap gap-2",children:[s.jsxs("select",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:me,onChange:G=>Ae(G.target.value),className:"rounded-lg border-2 border-black bg-white px-2 py-1 text-[11px] font-black",children:[s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"all",children:"ÙÙ Ø§ÙØªÙØ§Ø±ÙØ®"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"30",children:"آخر 30 ÙÙÙ
اÙ"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"90",children:"آخر 90 ÙÙÙ
اÙ"})]}),s.jsxs("select",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:Pe,onChange:G=>L(G.target.value),className:"rounded-lg border-2 border-black bg-white px-2 py-1 text-[11px] font-black",children:[s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"all",children:"Ù٠اÙÙ
راØÙ"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"3",children:"3 Ø£ÙØ§Ù
"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"7",children:"7 Ø£ÙØ§Ù
"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"14",children:"14 ÙÙÙ
اÙ"}),s.jsx("option",{"data-loc":"client/src/pages/ProfilePage.tsx:536",value:"30",children:"30 ÙÙÙ
اÙ"})]})]})]}),o.isLoading?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"h-16 animate-pulse rounded-xl border-2 border-black/20 bg-white/60"}):o.data?.length?ke.length?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"space-y-2",children:ke.map(G=>s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"flex items-center justify-between gap-3 rounded-xl border-2 border-black bg-white p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:536",children:[s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"text-sm font-black text-black",children:["ð Ù
ÙØ§Ùأة ",G.milestoneDays," Ø£ÙØ§Ù
"]}),s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"mt-1 text-[11px] font-bold text-black/60",children:["Ø§Ø³ØªÙØÙØª ÙÙ ",new Date(G.claimedAt).toLocaleDateString("ar-SA")]})]}),s.jsxs("span",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"rounded-full border-2 border-black bg-memphis-mint px-3 py-1 text-sm font-black text-black",children:["+",G.pointsAwarded," ÙÙØ·Ø©"]})]},G.id))}):s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-4 text-center text-sm font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ Ù
ÙØ§Ùآت تطاب٠اÙÙÙØ§ØªØ± اÙÙ
ØØ¯Ø¯Ø©."}):s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:536",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-4 text-center text-sm font-bold text-black/60",children:"ØØ§Ùظ عÙÙ Ø³ÙØ³ÙØ© دخÙÙÙ ÙØªØ¸Ùر Ù
ÙØ§Ùآت٠اÙÙ
ستÙÙ
Ø© ÙÙØ§."})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"mb-5",children:[s.jsx("h3",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"mb-3 text-sm font-black text-black",children:"Ø§ÙØ´Ø§Ø±Ø§Øª اÙÙ
ÙØªØ³Ø¨Ø©"}),vt.length?s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:vt.map(G=>s.jsxs("button",{"data-loc":"client/src/pages/ProfilePage.tsx:537",type:"button",onClick:()=>ge(G),className:"rounded-xl border-2 border-black bg-white p-3 text-center shadow-[3px_3px_0_#000] transition-transform hover:-translate-y-0.5",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"mb-2 flex justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"flex h-12 w-12 items-center justify-center rounded-xl border-2 border-black bg-memphis-yellow",children:Qg[G.slug]?(()=>{const je=Qg[G.slug];return s.jsx(je,{"data-loc":"client/src/pages/ProfilePage.tsx:537",size:27})})():s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"text-2xl",children:G.icon})})}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"text-sm font-black text-black",children:G.nameAr}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"mt-1 text-[11px] font-bold leading-4 text-black/60",children:G.descriptionAr}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"mt-2 inline-block rounded-full border-2 border-black bg-memphis-mint px-2 py-0.5 text-[10px] font-black",children:"Ù
ØØµÙÙØ© â"})]},G.id))}):s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:537",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-4 text-center text-sm font-bold text-black/60",children:"Ø£ÙÙ
٠أÙ٠درØ
943³ Ø£Ù ØªØØ¯Ù ÙØ¨Ø¯Ø¡ Ù
جÙ
ÙØ¹ØªÙ Ù
Ù Ø§ÙØ´Ø§Ø±Ø§Øª."})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:538",children:[s.jsx("h3",{"data-loc":"client/src/pages/ProfilePage.tsx:538",className:"mb-3 text-sm font-black text-black",children:"Ø§ÙØ¥Ùجاز Ø§ÙØªØ§ÙÙ"}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:538",className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:St.slice(0,6).map(G=>{const je=de(G);return s.jsxs("button",{"data-loc":"client/src/pages/ProfilePage.tsx:538",type:"button",onClick:()=>ge(G),className:"rounded-xl border-2 border-black bg-white/60 p-3 text-center opacity-75 grayscale transition-transform hover:-translate-y-0.5",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:538",className:"mb-2 text-2xl",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:538",className:"text-sm font-black text-black",children:G.nameAr}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:538",className:"mt-1 text-[11px] font-bold leading-4 text-black/60",children:G.descriptionAr}),s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:538",className:"mt-2 text-[10px] font-black text-purple-700",children:["Ù
تبÙÙ ",je.remaining," ",je.label]})]},G.id)})})]})]}),s.jsx(xs,{"data-loc":"client/src/pages/ProfilePage.tsx:540",open:!!ne,onOpenChange:G=>!G&&ge(null),children:s.jsx(bs,{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"max-w-md border-4 border-black shadow-[6px_6px_0_#000]",dir:"rtl",children:ne&&(()=>{const G=de(ne),je=bt.has(ne.id);return s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border-2 border-black bg-memphis-yellow text-3xl",children:ne.icon}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",children:[s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"text-xs font-black text-black/55",children:"ØªÙØ§ØµÙÙ Ø§ÙØ´Ø§Ø±Ø©"}),s.jsx("h2",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"text-xl font-black text-black",children:ne.nameAr}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"mt-1 text-sm font-bold text-black/65",children:ne.descriptionAr})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"rounded-xl border-2 border-black bg-memphis-lilac p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"flex items-center justify-between text-sm font-black",children:[s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:540",children:"Ø§ÙØªÙدÙ
ÙØÙ Ø§ÙØ´Ø§Ø±Ø©"}),s.jsx("span",{"data-loc":"client/src/pages/ProfilePage.tsx:540",children:je?"Ù
ÙØªØ³Ø¨Ø© â":`${G.value}/${ne.conditionValue}`})]}),s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"mt-3 h-3 overflow-hidden rounded-full border-2 border-black bg-white",children:s.jsx("div",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"h-full bg-black transition-all",style:{width:`${je?100:G.percentage}%`}})}),s.jsx("p",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"mt-3 text-xs font-bold text-black/70",children:je?"أتÙ
Ù
ت Ù
ØªØ·ÙØ¨Ø§Øª ÙØ°Ù Ø§ÙØ´Ø§Ø±Ø© Ø¨ÙØ¬Ø§Ø.":`ÙØªØ¨ÙÙ ÙÙ ${G.remaining} ${G.label} ÙÙØØµÙ٠عÙÙÙØ§.`}),s.jsxs("p",{"data-loc":"client/src/pages/ProfilePage.tsx:540",className:"mt-1 text-xs font-black text-purple-800",children:["اÙÙ
ØªØ·ÙØ¨: ",ne.conditionValue," ",G.label]})]})]})})()})})]})]})}function db({items:e,activePath:t}){const[a,n]=P.useState(!1),[r,i]=P.useState(!1),o=t??"/";return P.useEffect(()=>{if(a){i(!0);return}if(!r)return;const l=window.setTimeout(()=>i(!1),220);return()=>window.clearTimeout(l)},[a,r]),P.useEffect(()=>{if(!a)return;const l=c=>{c.key==="Escape"&&n(!1)};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[a]),P.useEffect(()=>{n(!1)},[o]),s.jsxs("div",{"data-loc":"client/src/components/MobileAdminMenu.tsx:45",className:"relative md:hidden",dir:"rtl",children:[s.jsx("button",{"data-loc":"client/src/components/MobileAdminMenu.tsx:4
9436",type:"button",onClick:()=>n(l=>!l),"aria-label":a?"Ø¥ØºÙØ§Ù ÙØ§Ø¦Ù Ø© ÙÙØØ© Ø§ÙØªØÙÙ ":"ÙØªØ ÙØ§Ø¦Ù Ø© ÙÙØØ© Ø§ÙØªØÙÙ ","aria-expanded":a,"aria-controls":"mobile-admin-navigation",title:a?"Ø¥ØºÙØ§Ù اÙÙØ§Ø¦Ù Ø©":"ÙØªØ اÙÙØ§Ø¦Ù Ø©",className:"flex h-10 w-10 items-center justify-center rounded-xl border-2 border-[#16233f] bg-[#f2c84b] text-[#16233f] shadow-[2px_2px_0px_#16233f] transition-transform active:translate-y-px",children:a?s.jsx(Zn,{"data-loc":"client/src/components/MobileAdminMenu.tsx:55",className:"h-5 w-5","aria-hidden":"true"}):s.jsx(gW,{"data-loc":"client/src/components/MobileAdminMenu.tsx:55",className:"h-5 w-5","aria-hidden":"true"})}),r&&s.jsxs(s.Fragment,{children:[s.jsx("button",{"data-loc":"client/src/components/MobileAdminMenu.tsx:59",type:"button","aria-label":"Ø¥ØºÙØ§Ù اÙÙØ§Ø¦Ù Ø©",onClick:()=>n(!1),className:`fixed inset-0 z-40 cursor-default bg-black/20 transition-opacity duration-200 motion-reduce:transition-none ${a?"opacity-100":"pointer-events-none opacity-0"}`}),s.jsxs("nav",{"data-loc":"client/src/components/MobileAdminMenu.tsx:60",id:"mobile-admin-navigation","aria-label":"Ø§ÙØªÙÙÙ ÙÙ ÙÙØØ© Ø§ÙØªØÙÙ ","aria-hidden":!a,"data-state":a?"open":"closed",className:`absolute left-0 top-12 z-50 w-64 origin-top-left border-3 border-[#16233f] bg-[#fff9ef] p-3 shadow-[5px_5px_0px_#16233f] transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none ${a?"translate-y-0 scale-100 opacity-100":"pointer-events-none -translate-y-2 scale-95 opacity-0"}`,children:[s.jsx("p",{"data-loc":"client/src/components/MobileAdminMenu.tsx:61",className:"mb-2 text-xs font-black text-[#596477]",children:"اÙÙØµÙÙ Ø§ÙØ³Ø±Ùع"}),s.jsx("div",{"data-loc":"client/src/components/MobileAdminMenu.tsx:62",className:"grid gap-2",children:e.map(l=>{const c=l.icon,d=o===l.path;return s.jsx(jt,{"data-loc":"client/src/components/MobileAdminMenu.tsx:67",href:l.path,"aria-current":d?"page":void 0,children:s.jsxs("span",{"data-loc":"client/src/components/MobileAdminMenu.tsx:68",className:`flex min-h-11 items-center gap-3 border-2 border-[#16233f] px-3 py-2 text-sm font-black ${d?"bg-[#6e52b8] text-white ring-2 ring-[#f2c84b] ring-offset-1":"bg-white text-[#16233f]"}`,children:[s.jsx(c,{"data-loc":"client/src/components/MobileAdminMenu.tsx:69",className:"h-4 w-4 shrink-0","aria-hidden":"true"}),s.jsx("span",{"data-loc":"client/src/components/MobileAdminMenu.tsx:70",className:"flex-1",children:l.label}),d&&s.jsxs("span",{"data-loc":"client/src/components/MobileAdminMenu.tsx:71",className:"inline-flex items-center gap-1 border border-white/70 bg-[#f2c84b] px-1.5 py-0.5 text-[10px] text-[#16233f]",children:[s.jsx(Ir,{"data-loc":"client/src/components/MobileAdminMenu.tsx:71",className:"h-3 w-3","aria-hidden":"true"})," Ø§ÙØØ§ÙÙ"]})]})},l.path)})})]})]})]})}function Mq(e,t){if(!e.length){re.error("ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ÙÙØªØµØ¯Ùر");return}const a=Object.keys(e[0]),n=e.map(c=>a.map(d=>JSON.stringify(c[d]??"")).join(",")),r=[a.join(","),...n].join(` 944`),i=new Blob(["\uFEFF"+r],{type:"text/csv;charset=utf-8;"}),o=URL.createObjectURL(i),l=document.createElement("a");l.href=o,l.download=t,l.click(),URL.revokeObjectURL(o),re.success(`ØªÙ ØªØµØ¯ÙØ± ${t} Ø¨ÙØ¬Ø§Ø â `)}function BOe(e,t,a,n){const r=` 945 <html dir="rtl"><head><meta charset="utf-8"> 946 <style> 947 body { font-family: Arial, sans-serif; padding: 24px; color: #111; } 948 h1 { font-size: 22px; border-bottom: 3px solid #000; padding-bottom: 8px; margin-bottom: 16px; } 949 h2 { font-size: 16px; margin-top: 20px; margin-bottom: 8px; } 950 table { border-collapse: collapse; width: 100%; margin-bottom: 16px; } 951 th, td { border: 1px solid #ccc; padding: 6px 10px; text-align: right; font-size: 13px; } 952 th { background: #f0f0f0; font-weight: bold; } 953 .footer { margin-top: 32px; font-size: 11px; color: #888; text-align: center; } 954 </style></head><body> 955 <h1>ð ØªÙØ±Ùر Ø¥ØØµØ§Ø¡Ø§Øª اÙÙ ÙØµØ© Ø§ÙØªØ¹ÙÙÙ ÙØ©</h1> 956 <p style="color:#666;font-size:13px">ØªØ§Ø±ÙØ® Ø§ÙØªØµØ¯Ùر: ${new Date().toLocaleDateString("ar-SA")}</p> 957 <h2>Ø§ÙØ¥ØØµØ§Ø¡Ø§Øª Ø§ÙØ¹Ø§Ù Ø©</h2> 958 <table><tr>${e.map(o=>`<th>${o.label}</th>`).join("")}</tr> 959 <tr>${e.map(o=>`<td>${o.value}</td>`).join("")}</tr></table> 960 <h2>ØªÙØ²Ùع ٠ستÙÙØ§Øª اÙÙ ÙØ¸ÙÙÙ</h2> 961 <table><tr><th>اÙ٠ستÙÙ</th><th>عدد اÙÙ ÙØ¸ÙÙÙ</th></tr> 962 ${t.map(o=>`<tr><td>اÙ٠ستÙÙ ${o.level}</td><td>${o.count}</td></tr>`).join("")}</table> 963 <h2>Ø£ÙØ«Ø± Ø§ÙØ¯Ø±Ùس Ø¥ÙÙ Ø§ÙØ§Ù</h2> 964 <table><tr><th>Ø§ÙØ¯Ø±Ø³</th><th>٠رات Ø§ÙØ¥Ù٠اÙ</th></tr> 965 ${a.map(o=>`<tr><td>${o.titleAr}</td><td>${o.count}</td></tr>`).join("")}</table> 966 <h2>ÙØ´Ø§Ø· Ø§ÙØ¯Ø±Ùس â Ø¢Ø®Ø± 7 Ø£ÙØ§Ù </h2> 967 <table><tr><th>اÙÙÙÙ </th><th>Ø§ÙØ¥ÙÙ Ø§ÙØ§Øª</th></tr> 968 ${n.map(o=>`<tr><td>${o.day}</td><td>${o.completions}</td></tr>`).join("")}</table> 969 <div class="footer">Ù ÙØµØ© جد ÙØ¬Ø¯ | Learning Hub</div> 970 </body></html>`,i=window.open("","_blank");if(!i){re.error("ÙØ±Ø¬Ù Ø§ÙØ³Ù Ø§Ø Ø¨Ø§ÙÙÙØ§Ùذ اÙÙ ÙØ¨Ø«ÙØ©");return}i.document.write(r),i.document.close(),i.focus(),setTimeout(()=>{i.print()},400),re.success("Ø¬Ø§ÙØ² ÙÙØ·Ø¨Ø§Ø¹Ø© ÙÙ PDF â ")}function GOe(){const{user:e,isAuthenticated:t,loading:a}=Ma(),[,n]=Mo(),[r,i]=P.useState("overview"),o=J.admin.stats.useQuery(void 0,{enabled:t&&e?.role==="admin"}),l=J.admin.levelDistribution.useQuery(void 0,{enabled:t&&e?.role==="admin"}),c=J.admin.topLessons.useQuery(void 0,{enabled:t&&e?.role==="admin"}),d=J.admin.weeklyActivity.useQuery(void 0,{enabled:t&&e?.role==="admin"}),m=J.admin.weeklyActivityExport.useQuery(void 0,{enabled:t&&e?.role==="admin"}),f=J.admin.teamsStats.useQuery({},{enabled:t&&e?.role==="admin"}),h=J.admin.users.useQuery(void 0,{enabled:r==="users"&&e?.role==="admin"}),x=J.categories.list.useQuery();J.lessons.byCategory.useQuery({categoryId:0},{enabled:!1});const b=J.challenges.list.useQuery({},{enabled:r==="challenges"}),y=J.prizes.list.useQuery(),w=J.admin.prizeRequests.useQuery(void 0,{enabled:r==="requests"&&e?.role==="admin"}
970),j=J.teams.list.useQuery(void 0,{enabled:r==="teams"}),N=J.useUtils(),[k,D]=P.useState({categoryId:0,titleAr:"",contentAr:"",summaryAr:"",pointsReward:10,durationMinutes:5}),[C,S]=P.useState({titleAr:"",descriptionAr:"",icon:"",type:"daily",pointsReward:15}),[A,E]=P.useState({nameAr:"",descriptionAr:"",icon:"",requiredPoints:100}),[R,F]=P.useState({lessonId:0,questionAr:"",options:["","","",""],correctIndex:0,explanationAr:""}),[I,H]=P.useState({userId:0,points:10,reason:""}),[_,V]=P.useState(""),[W,B]=P.useState(""),[K,ae]=P.useState(""),$=J.admin.createLesson.useMutation({onSuccess:()=>{re.success("تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¯Ø±Ø³"),N.lessons.byCategory.invalidate(),D({categoryId:0,titleAr:"",contentAr:"",summaryAr:"",pointsReward:10,durationMinutes:5})},onError:L=>re.error(L.message)}),Z=J.admin.createChallenge.useMutation({onSuccess:()=>{re.success("تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØªØØ¯Ù"),N.challenges.list.invalidate(),S({titleAr:"",descriptionAr:"",icon:"",type:"daily",pointsReward:15})},onError:L=>re.error(L.message)}),O=J.admin.createPrize.useMutation({onSuccess:()=>{re.success("تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¬Ø§Ø¦Ø²Ø©"),N.prizes.list.invalidate(),E({nameAr:"",descriptionAr:"",icon:"",requiredPoints:100})},onError:L=>re.error(L.message)}),Y=J.admin.createQuestion.useMutation({onSuccess:()=>{re.success("تÙ
Ø¥Ø¶Ø§ÙØ© Ø§ÙØ³Ø¤Ø§Ù"),F({lessonId:0,questionAr:"",options:["","","",""],correctIndex:0,explanationAr:""})},onError:L=>re.error(L.message)}),Q=J.admin.updatePrizeRequest.useMutation({onSuccess:()=>{re.success("تÙ
ØªØØ¯ÙØ« Ø§ÙØ·Ùب"),N.admin.prizeRequests.invalidate()},onError:L=>re.error(L.message)}),U=J.admin.giveBonus.useMutation({onSuccess:()=>{re.success("تÙ
Ù
ÙØ اÙÙÙØ§Ø·"),N.admin.users.invalidate()},onError:L=>re.error(L.message)}),oe=J.admin.deleteTeam.useMutation({onSuccess:()=>{re.success("تÙ
ØØ°Ù اÙÙØ±ÙÙ"),N.teams.list.invalidate()},onError:L=>re.error(L.message)});J.admin.deleteLesson.useMutation({onSuccess:()=>{re.success("تÙ
ØØ°Ù Ø§ÙØ¯Ø±Ø³"),N.lessons.byCategory.invalidate()},onError:L=>re.error(L.message)});const X=J.admin.updateChallenge.useMutation({onSuccess:()=>{re.success("تÙ
Ø§ÙØªØØ¯ÙØ«"),N.challenges.list.invalidate()}}),ne=J.admin.updatePrize.useMutation({onSuccess:()=>{re.success("تÙ
Ø§ÙØªØØ¯ÙØ«"),N.prizes.list.invalidate()}});if(a)return s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:144",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:144",className:"w-10 h-10 border-4 border-black border-t-memphis-lilac rounded-full animate-spin"})});if(!t||e?.role!=="admin")return s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:147",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:148",className:"memphis-card p-10 text-center max-w-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:149",className:"text-5xl mb-4",children:"ð«"}),s.jsx("h2",{"data-loc":"client/src/pages/AdminPage.tsx:150",className:"font-black text-2xl text-black mb-3",children:"ØºÙØ± Ù
صرØ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:151",className:"text-black/60 mb-6",children:"ÙØ°Ù Ø§ÙØµÙØØ© ÙÙÙ
Ø¯ÙØ±ÙÙ ÙÙØ·"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:152",onClick:()=>n("/dashboard"),className:"memphis-btn bg-memphis-lilac px-6 py-3 font-black text-black w-full",children:"Ø§ÙØ¹Ùدة"})]})});const ge=[{id:"overview",label:"ÙØ¸Ø±Ø© عاÙ
Ø©",icon:pl},{id:"content",label:"اÙÙ
ØØªÙÙ",icon:Ln},{id:"challenges",label:"Ø§ÙØªØØ¯Ùات",icon:Os},{id:"prizes",label:"Ø§ÙØ¬Ùائز",icon:Al},{id:"users",label:"اÙÙ
ÙØ¸ÙÙÙ",icon:ln},{id:"requests",label:"Ø·ÙØ¨Ø§Øª Ø§ÙØ¬Ùائز",icon:Dpe},{id:"teams",label:"اÙÙØ±Ù",icon:rg}],me="memphis-input w-full px-3 py-2 text-sm font-medium focus:outline-none",Ae=(h.data??[]).filter(L=>{const ke=!_||(L.name??"").toLowerCase().includes(_.toLowerCase())||(L.email??"").toLowerCase().includes(_.toLowerCase()),Me=W===""||L.level===W,Ze=K===""||L.role===K;return ke&&Me&&Ze}),Pe="block text-xs font-black text-black mb-1";return s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:178",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/AdminPage.tsx:179"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:180",className:"max-w-6xl mx-auto px-4 py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:181",className:"memphis-card bg-memphis-coral p-5 mb-6 flex items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:182",className:"flex items-center gap-3",children:[s.jsx(pl,{"data-loc":"client/src/pages/AdminPage.tsx:183",className:"w-8 h-8 text-black"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:184",children:[s.jsx("h1",{"data-loc":"client/src/pages/AdminPage.tsx:185",className:"font-black text-xl text-black",children:"ÙÙØØ© تØÙÙ
اÙÙ
Ø¯ÙØ±"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:186",className:"text-black/60 text-sm font-medium",children:"إدارة اÙÙ
ÙØµØ© Ø§ÙØªØ¹ÙÙÙ
ÙØ©"})]})]}),s.jsx(db,{"data-loc":"client/src/pages/AdminPage.tsx:189",activePath:"/admin",items:[{label:"ÙÙØØ© ØÙ
ÙØ© Ø§ÙØªØ´ÙÙÙ",path:"/admin/teaser",icon:ln},{label:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©",path:"/admin/dashboard",icon:rg},{label:"إدارة Ø§ÙØ£Ùغاز",path:"/admin/puzzles",icon:Os},{label:"إدارة اÙÙ
ØØªÙÙ",path:"/admin/content",icon:Zi}]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:196",className:"flex flex-wrap gap-2 mb-6",children:ge.map(L=>{const ke=L.icon;return s.jsxs("button",{"data-loc":"client/src/pages/AdminPage.tsx:200",onClick:()=>i(L.id),className:`flex items-center gap-1.5 px-4 py-2 rounded-lg text-sm font-black border-2 transition-all ${r===L.id?"bg-black text-white border-black shadow-memphis":"bg-white border-black hover:bg-memphis-peach"}`,children:[s.jsx(ke,{"data-loc":"client/src/pages/AdminPage.tsx:201",className:"w-4 h-4"})," ",L.label]},L.id)})}),r==="overview"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:209",className:"space-y-6",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:210",className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-4",children:[{label:"اÙÙ
ÙØ¸ÙÙÙ",value:o.data?.totalUsers??0,color:"bg-memphis-mint",icon:"ð¥"},{label:"اÙÙ
ØØ§Ùر",value:o.data?.totalCategories??0,color:"bg-memphis-lilac",icon:"ð"},{label:"Ø§ÙØ¯Ø±Ùس",value:o.data?.totalLessons??0,color:"bg-memphis-sky",icon:"ð"},{label:"Ø§ÙØªØØ¯Ùات",value:o.data?.totalChallenges??0,color:"bg-memphis-yellow",icon:"ð¯"},{label:"Ø·ÙØ¨Ø§Øª Ù
عÙÙØ©",value:o.data?.pendingPrizeRequests??
9700,color:"bg-memphis-coral",icon:"ð"},{label:"اÙÙØ±Ù",value:j.data?.length??0,color:"bg-memphis-mint",icon:"ð"}].map(L=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:219",className:`memphis-card ${L.color} p-5 text-center`,children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:220",className:"text-3xl mb-2",children:L.icon}),s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:221",className:"font-black text-3xl text-black",children:L.value}),s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:222",className:"text-xs font-bold text-black/60 mt-1",children:L.label})]},L.label))}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:228",className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:230",className:"lg:col-span-2 flex items-center justify-between flex-wrap gap-3",children:[s.jsxs("h3",{"data-loc":"client/src/pages/AdminPage.tsx:231",className:"font-black text-base text-black flex items-center gap-2",children:[s.jsx(er,{"data-loc":"client/src/pages/AdminPage.tsx:232",className:"w-4 h-4"})," Ø§ÙØ±Ø³ÙÙ Ø§ÙØ¨ÙاÙÙØ© ÙØ§ÙتØÙÙÙØ§Øª"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:234",className:"flex gap-2 flex-wrap",children:[s.jsxs("button",{"data-loc":"client/src/pages/AdminPage.tsx:235",onClick:()=>{const L=[...(l.data??[]).map(ke=>({اÙÙÙØ¹:"ØªÙØ²Ùع اÙ٠ستÙÙØ§Øª",اÙ٠ستÙÙ:`اÙ٠ستÙÙ ${ke.level}`,اÙÙÙÙ Ø©:ke.count})),...(c.data??[]).map(ke=>({اÙÙÙØ¹:"Ø£ÙØ«Ø± Ø§ÙØ¯Ø±Ùس",اÙ٠ستÙÙ:ke.titleAr,اÙÙÙÙ Ø©:ke.count})),...(d.data??[]).map(ke=>({اÙÙÙØ¹:"اÙÙØ´Ø§Ø· Ø§ÙØ£Ø³Ø¨ÙعÙ",اÙ٠ستÙÙ:ke.day,اÙÙÙÙ Ø©:ke.completions}))];Mq(L,"Ø¥ØØµØ§Ø¡Ø§Øª-اÙÙ ÙØµØ©.csv")},className:"flex items-center gap-1.5 px-4 py-2 bg-memphis-mint border-2 border-black rounded-lg font-black text-sm shadow-[2px_2px_0px_0px_#000] hover:shadow-[1px_1px_0px_0px_#000] hover:translate-x-[1px] hover:translate-y-[1px] transition-all",children:[s.jsx(Qi,{"data-loc":"client/src/pages/AdminPage.tsx:246",className:"w-4 h-4"})," ØªØµØ¯ÙØ± CSV"]}),s.jsxs("button",{"data-loc":"client/src/pages/AdminPage.tsx:248",onClick:()=>BOe([{label:"اÙÙ ÙØ¸ÙÙÙ",value:o.data?.totalUsers??0},{label:"Ø§ÙØ¯Ø±Ùس",value:o.data?.totalLessons??0},{label:"Ø§ÙØªØØ¯Ùات",value:o.data?.totalChallenges??0},{label:"Ø·ÙØ¨Ø§Øª ٠عÙÙØ©",value:o.data?.pendingPrizeRequests??0}],l.data??[],c.data??[],d.data??[]),className:"flex items-center gap-1.5 px-4 py-2 bg-memphis-coral border-2 border-black rounded-lg font-black text-sm shadow-[2px_2px_0px_0px_#000] hover:shadow-[1px_1px_0px_0px_#000] hover:translate-x-[1px] hover:translate-y-[1px] transition-all",children:[s.jsx(Zi,{"data-loc":"client/src/pages/AdminPage.tsx:262",className:"w-4 h-4"})," ØªØµØ¯ÙØ± PDF"]}),s.jsxs("button",{"data-loc":"client/src/pages/AdminPage.tsx:264",onClick:()=>{const L=m.data??[];if(!L.length){re.error("ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات");return}const ke=["اÙÙÙÙ ","Ø§ÙØ¯Ø±Ùس اÙÙ ÙØªÙ ÙØ©","اÙÙÙÙØ² اÙÙ ÙØªÙ Ù","Ø§ÙØªØØ¯Ùات اÙÙ ÙØªÙ ÙØ©","اÙÙ Ø¬Ù ÙØ¹"],Me=L.map(Ve=>[Ve.day,Ve.completions,Ve.quizzes,Ve.challenges,Ve.completions+Ve.quizzes+Ve.challenges]),Ze=[ke.join(","),...Me.map(Ve=>Ve.join(","))].join(` 971`),Ce=new Blob(["\uFEFF"+Ze],{type:"text/csv;charset=utf-8;"}),Te=URL.createObjectURL(Ce),Ke=document.createElement("a");Ke.href=Te,Ke.download=`ÙØ´Ø§Ø·-Ø£Ø³Ø¨ÙØ¹Ù-Ù ÙØµÙÙ-${new Date().toISOString().slice(0,10)}.csv`,Ke.click(),URL.revokeObjectURL(Te),re.success("ØªÙ ØªØµØ¯ÙØ± اÙÙØ´Ø§Ø· Ø§ÙØ£Ø³Ø¨Ùع٠اÙÙ ÙØµÙÙ â ")},className:"flex items-center gap-1.5 px-4 py-2 bg-memphis-lilac border-2 border-black rounded-lg font-black text-sm shadow-[2px_2px_0px_0px_#000] hover:shadow-[1px_1px_0px_0px_#000] hover:translate-x-[1px] hover:translate-y-[1px] transition-all",children:[s.jsx(pl,{"data-loc":"client/src/pages/AdminPage.tsx:280",className:"w-4 h-4"})," ØªØµØ¯ÙØ± ÙØ´Ø§Ø· Ù ÙØµÙÙ"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:285",className:"memphis-card p-5",children:[s.jsxs("h3",{"data-loc":"client/src/pages/AdminPage.tsx:286",className:"font-black text-base text-black mb-4 flex items-center gap-2",children:[s.jsx(er,{"data-loc":"client/src/pages/AdminPage.tsx:287",className:"w-4 h-4"})," ØªÙØ²Ùع ٠ستÙÙØ§Øª اÙÙ ÙØ¸ÙÙÙ"]}),l.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:290",className:"h-48 flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:290",className:"w-8 h-8 border-4 border-black border-t-memphis-lilac rounded-full animate-spin"})}):(l.data?.length??0)===0?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:292",className:"h-48 flex items-center justify-center text-black/40 font-bold text-sm",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات بعد"}):s.jsx($s,{"data-loc":"client/src/pages/AdminPage.tsx:294",width:"100%",height:220,children:s.jsxs(RMe,{"data-loc":"client/src/pages/AdminPage.tsx:295",children:[s.jsx(Fl,{"data-loc":"client/src/pages/AdminPage.tsx:296",data:l.data?.map(L=>({name:`Ù ${L.level}`,value:L.count})),cx:"50%",cy:"50%",outerRadius:80,dataKey:"value",label:({name:L,value:ke})=>`${L}: ${ke}`,labelLine:!1,children:l.data?.map((L,ke)=>s.jsx(Mu,{"data-loc":"client/src/pages/AdminPage.tsx:298",fill:["#C4B5FD","#6EE7B7","#FDE68A","#FCA5A5","#BAE6FD","#FED7AA","#D1FAE5","#E0E7FF"][ke%8],stroke:"#000",strokeWidth:1.5},ke))}),s.jsx(yn,{"data-loc":"client/src/pages/AdminPage.tsx:301",formatter:L=>[`${L} Ù ÙØ¸Ù`,"Ø§ÙØ¹Ø¯Ø¯"]})]})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:308",className:"memphis-card p-5",children:[s.jsxs("h3",{"data-loc":"client/src/pages/AdminPage.tsx:309",className:"font-black text-base text-black mb-4 flex items-center gap-2",children:[s.jsx(Ln,{"data-loc":"client/src/pages/AdminPage.tsx:310",className:"w-4 h-4"})," Ø£ÙØ«Ø± Ø§ÙØ¯Ø±Ùس Ø¥ÙÙ Ø§ÙØ§Ù"]}),c.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:313",className:"h-48 flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:313",className:"w-8 h-8 border-4 border-black border-t-memphis-mint rounded-full animate-spin"})}):(c.data?.length??0)===0?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:315",className:"h-48 flex items-center justify-center text-black/40 font-bold text-sm",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات بعد"}):s.jsx($s,{"data-loc":"client/src/pages/AdminPage.tsx:317",width:"100%",height:220,children:s.jsxs(Cx,{"data-loc":"client/src/pages/AdminPage.tsx:318",data:c.data?.slice(0,6).map(L=>({name:L.titleAr.slice(0,10)+(L.titleAr.length>10?"â¦":""),full:L.titleAr,count:L.count}
971)),layout:"vertical",margin:{right:20,left:8},children:[s.jsx(zr,{"data-loc":"client/src/pages/AdminPage.tsx:319",strokeDasharray:"3 3",stroke:"#00000015"}),s.jsx(is,{"data-loc":"client/src/pages/AdminPage.tsx:320",type:"number",tick:{fontSize:11,fontWeight:"bold"}}),s.jsx(Yn,{"data-loc":"client/src/pages/AdminPage.tsx:321",type:"category",dataKey:"name",width:75,tick:{fontSize:10,fontWeight:"bold"}}),s.jsx(yn,{"data-loc":"client/src/pages/AdminPage.tsx:322",formatter:L=>[`${L} Ù
رة`,"Ø§ÙØ¥ÙÙ
Ø§ÙØ§Øª"],labelFormatter:(L,ke)=>ke?.[0]?.payload?.full??L}),s.jsx(Bs,{"data-loc":"client/src/pages/AdminPage.tsx:323",dataKey:"count",fill:"#6EE7B7",stroke:"#000",strokeWidth:1.5,radius:[0,4,4,0]})]})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:331",className:"memphis-card p-5",children:[s.jsxs("h3",{"data-loc":"client/src/pages/AdminPage.tsx:332",className:"font-black text-base text-black mb-4 flex items-center gap-2",children:[s.jsx(pl,{"data-loc":"client/src/pages/AdminPage.tsx:333",className:"w-4 h-4"})," ÙØ´Ø§Ø· Ø§ÙØ¯Ø±Ùس â Ø¢Ø®Ø± 7 Ø£ÙØ§Ù
"]}),d.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:336",className:"h-32 flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:336",className:"w-8 h-8 border-4 border-black border-t-memphis-yellow rounded-full animate-spin"})}):(d.data?.length??0)===0?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:338",className:"h-32 flex items-center justify-center text-black/40 font-bold text-sm",children:"ÙØ§ ÙÙØ¬Ø¯ ÙØ´Ø§Ø· Ø®ÙØ§Ù Ø§ÙØ£Ø³Ø¨Ùع اÙÙ
اضÙ"}):s.jsx($s,{"data-loc":"client/src/pages/AdminPage.tsx:340",width:"100%",height:160,children:s.jsxs(Uc,{"data-loc":"client/src/pages/AdminPage.tsx:341",data:d.data?.map(L=>({day:L.day.slice(5),completions:L.completions})),children:[s.jsx(zr,{"data-loc":"client/src/pages/AdminPage.tsx:342",strokeDasharray:"3 3",stroke:"#00000015"}),s.jsx(is,{"data-loc":"client/src/pages/AdminPage.tsx:343",dataKey:"day",tick:{fontSize:11,fontWeight:"bold"}}),s.jsx(Yn,{"data-loc":"client/src/pages/AdminPage.tsx:344",tick:{fontSize:11,fontWeight:"bold"},allowDecimals:!1}),s.jsx(yn,{"data-loc":"client/src/pages/AdminPage.tsx:345",formatter:L=>[`${L} Ø¥ÙÙ
اÙ`,"Ø§ÙØ¯Ø±Ùس"]}),s.jsx(Kn,{"data-loc":"client/src/pages/AdminPage.tsx:346",type:"monotone",dataKey:"completions",stroke:"#7C3AED",strokeWidth:2.5,dot:{fill:"#7C3AED",r:4,stroke:"#000",strokeWidth:1.5},activeDot:{r:6}})]})})]})]}),r==="overview"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:357",className:"memphis-card p-5 mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:358",className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{"data-loc":"client/src/pages/AdminPage.tsx:359",className:"font-black text-base text-black flex items-center gap-2",children:[s.jsx(ln,{"data-loc":"client/src/pages/AdminPage.tsx:360",className:"w-4 h-4"})," Ù
ÙØ§Ø±ÙØ© أداء اÙÙØ±Ù"]}),f.isLoading&&s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:362",className:"w-4 h-4 border-2 border-black border-t-transparent rounded-full animate-spin"})]}),!f.data||f.data.length===0?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:365",className:"flex items-center justify-center py-8 text-black/40 font-bold text-sm",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØ±Ù بعد â Ø£Ùشئ ÙØ±ÙÙØ§Ù ÙØªØ¸Ùر ÙÙØ§"}):s.jsx($s,{"data-loc":"client/src/pages/AdminPage.tsx:367",width:"100%",height:220,children:s.jsxs(Cx,{"data-loc":"client/src/pages/AdminPage.tsx:368",data:f.data.map(L=>({name:L.icon+" "+L.name.slice(0,8)+(L.name.length>8?"â¦":""),fullName:L.name,ÙÙØ§Ø·:L.totalPoints,Ø¯Ø±ÙØ³:L.completionsCount,أعضاء:L.memberCount})),margin:{top:5,right:10,left:0,bottom:5},children:[s.jsx(zr,{"data-loc":"client/src/pages/AdminPage.tsx:378",strokeDasharray:"3 3",stroke:"#00000015"}),s.jsx(is,{"data-loc":"client/src/pages/AdminPage.tsx:379",dataKey:"name",tick:{fontSize:10,fontWeight:"bold"}}),s.jsx(Yn,{"data-loc":"client/src/pages/AdminPage.tsx:380",tick:{fontSize:10,fontWeight:"bold"},allowDecimals:!1}),s.jsx(yn,{"data-loc":"client/src/pages/AdminPage.tsx:381",formatter:(L,ke)=>[L,ke]}),s.jsx(fr,{"data-loc":"client/src/pages/AdminPage.tsx:382"}),s.jsx(Bs,{"data-loc":"client/src/pages/AdminPage.tsx:383",dataKey:"ÙÙØ§Ø·",fill:"#FDE68A",stroke:"#000",strokeWidth:1,radius:[4,4,0,0]}),s.jsx(Bs,{"data-loc":"client/src/pages/AdminPage.tsx:384",dataKey:"Ø¯Ø±ÙØ³",fill:"#A7F3D0",stroke:"#000",strokeWidth:1,radius:[4,4,0,0]}),s.jsx(Bs,{"data-loc":"client/src/pages/AdminPage.tsx:385",dataKey:"أعضاء",fill:"#C4B5FD",stroke:"#000",strokeWidth:1,radius:[4,4,0,0]})]})})]}),r==="overview"&&s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:393",className:"mt-6",children:s.jsx(jt,{"data-loc":"client/src/pages/AdminPage.tsx:394",href:"/admin/puzzles",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:395",className:"memphis-card bg-memphis-yellow border-4 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] p-5 cursor-pointer hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] transition-all",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:396",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:397",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:398",className:"text-3xl",children:"ð§©"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:399",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPage.tsx:400",className:"font-black text-lg text-black",children:"إدارة Ø£ÙØºØ§Ø² Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:401",className:"text-sm font-medium text-black/60",children:"Ø£ÙØ´Ø¦ Ø£ÙØºØ§Ø²Ø§Ù Ø¬Ø¯ÙØ¯Ø© ÙÙØ¹ÙÙ ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØØ§ÙÙ"})]})]}),s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:404",className:"font-black text-black text-xl",children:"â"})]})})})}),r==="overview"&&s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:412",className:"mt-4",children:s.jsx(jt,{"data-loc":"client/src/pages/AdminPage.tsx:413",href:"/admin/content",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:414",className:"memphis-card bg-blue-100 border-4 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] p-5 cursor-pointer hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] transition-all",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:415",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:416",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:417",className:"text-3xl",children:"ð¤"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:418",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPage.tsx:419",className:"font-black text-lg text-black",children:"إدارة اÙÙ
ØØªÙÙ Ø§ÙØªÙÙØ§Ø¦Ù"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:420",className:"text-sm font-medium text-black/60",children:"ØªØØ¯ÙØ« ÙÙÙ
Ù 5:40Ù
+ تÙÙÙØ¯ Ø£ÙØºØ§Ø² Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"})]})]}),s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:423",className:"font-black text-black text-xl",children:"â"})]})})})}),r==="overview"&&s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:431",className:"mt-4",children:s.jsx(jt,{"data-loc":"client/src/pages/AdminPage.tsx:432",href:"/admin/suggestions",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:433",className:"memphis-card bg-amber-100 border-4 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] p-5 cursor-pointer hover:shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] transition-all",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:434",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:435",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:436",className:"text-3xl",children:"ð¡"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:437",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPage.tsx:438",className:"font-black text-lg text-black",children:"Ø§ÙØªØ±Ø§ØØ§Øª اÙÙ
ÙØ¸ÙÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:439",className:"text-sm font-medium text-black/60",children:"عرض ÙÙ
تابعة Ø§ÙØªØ±Ø§ØØ§Øª ÙÙØ±Øµ Ø§ÙØªØØ³Ù٠اÙÙ
ÙØ±Ø³ÙØ©"})]})]}),s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:442",className:"font-black text-black text-xl",children:"â"})]})})})}),r==="content"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:450",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:452",className:"memphis-card p-6",children:[s.jsxs("h2",{"data-loc":"client/src/pages/AdminPage.tsx:453",className:"font-black text-lg text-black mb-4 flex items-center gap-2",children:[s.jsx(qi,{"data-loc":"client/src/pages/AdminPage.tsx:453",className:"w-5 h-5"})," Ø¥Ø¶Ø§ÙØ© درس Ø¬Ø¯ÙØ¯"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:454",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:455",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:456",className:Pe,children:"اÙÙ
ØÙر"}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPage.tsx:457",className:me,value:k.categoryId,onChange:L=>D({...k,categoryId:parseInt(L.target.value)}),children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:458",value:0,children:"اختر اÙÙ
ØÙر"}),x.data?.map(L=>s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:459",value:L.id,children:L.nameAr},L.id))]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:462",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:463",className:Pe,children:"عÙÙØ§Ù Ø§ÙØ¯Ø±Ø³"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:464",className:me,placeholder:"عÙÙØ§Ù Ø§ÙØ¯Ø±Ø³",value:k.titleAr,onChange:L=>D({...k,titleAr:L.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:466",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:467",className:Pe,children:"Ù
ÙØ®Øµ ÙØµÙر"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:468",className:me,placeholder:"Ù
ÙØ®Øµ Ø§ÙØ¯Ø±Ø³",value:k.summaryAr,onCh
971ange:L=>D({...k,summaryAr:L.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:470",className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:471",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:472",className:Pe,children:"اÙÙÙØ§Ø·"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:473",type:"number",className:me,value:k.pointsReward,onChange:L=>D({...k,pointsReward:parseInt(L.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:475",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:476",className:Pe,children:"اÙÙ
دة (Ø¯ÙØ§Ø¦Ù)"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:477",type:"number",className:me,value:k.durationMinutes,onChange:L=>D({...k,durationMinutes:parseInt(L.target.value)})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:480",className:"sm:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:481",className:Pe,children:"Ù
ØØªÙÙ Ø§ÙØ¯Ø±Ø³"}),s.jsx("textarea",{"data-loc":"client/src/pages/AdminPage.tsx:482",className:me,rows:5,placeholder:"Ø§ÙØªØ¨ Ù
ØØªÙÙ Ø§ÙØ¯Ø±Ø³ ÙÙØ§...",value:k.contentAr,onChange:L=>D({...k,contentAr:L.target.value})})]})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:485",onClick:()=>k.categoryId&&k.titleAr&&$.mutate(k),disabled:$.isPending||!k.categoryId||!k.titleAr,className:"memphis-btn bg-memphis-mint px-5 py-2.5 font-black text-black mt-4 disabled:opacity-50",children:$.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ùشاء...":"Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¯Ø±Ø³"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:495",className:"memphis-card p-6",children:[s.jsxs("h2",{"data-loc":"client/src/pages/AdminPage.tsx:496",className:"font-black text-lg text-black mb-4 flex items-center gap-2",children:[s.jsx(qi,{"data-loc":"client/src/pages/AdminPage.tsx:496",className:"w-5 h-5"})," Ø¥Ø¶Ø§ÙØ© سؤا٠ÙÙÙØ²"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:497",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:498",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:499",className:Pe,children:"رÙÙ
Ø§ÙØ¯Ø±Ø³"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:500",type:"number",className:me,placeholder:"ID Ø§ÙØ¯Ø±Ø³",value:R.lessonId||"",onChange:L=>F({...R,lessonId:parseInt(L.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:502",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:503",className:Pe,children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© (0-3)"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:504",type:"number",min:0,max:3,className:me,value:R.correctIndex,onChange:L=>F({...R,correctIndex:parseInt(L.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:506",className:"sm:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:507",className:Pe,children:"ÙØµ Ø§ÙØ³Ø¤Ø§Ù"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:508",className:me,placeholder:"Ø§ÙØªØ¨ Ø§ÙØ³Ø¤Ø§Ù",value:R.questionAr,onChange:L=>F({...R,questionAr:L.target.value})})]}),R.options.map((L,ke)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:511",children:[s.jsxs("label",{"data-loc":"client/src/pages/AdminPage.tsx:512",className:Pe,children:["Ø§ÙØ®Ùار ",String.fromCharCode(65+ke)]}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:513",className:me,placeholder:`Ø§ÙØ®Ùار ${String.fromCharCode(65+ke)}`,value:L,onChange:Me=>{const Ze=[...R.options];Ze[ke]=Me.target.value,F({...R,options:Ze})}})]},ke)),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:516",className:"sm:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:517",className:Pe,children:"Ø§ÙØ´Ø±Ø (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:518",className:me,placeholder:"Ø´Ø±Ø Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",value:R.explanationAr,onChange:L=>F({...R,explanationAr:L.target.value})})]})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:521",onClick:()=>R.lessonId&&R.questionAr&&Y.mutate({...R,options:R.options.filter(
971Boolean)}),disabled:Y.isPending||!R.lessonId||!R.questionAr,className:"memphis-btn bg-memphis-yellow px-5 py-2.5 font-black text-black mt-4 disabled:opacity-50",children:Y.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø¶Ø§ÙØ©...":"Ø¥Ø¶Ø§ÙØ© Ø§ÙØ³Ø¤Ø§Ù"})]})]}),r==="challenges"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:534",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:535",className:"memphis-card p-6",children:[s.jsxs("h2",{"data-loc":"client/src/pages/AdminPage.tsx:536",className:"font-black text-lg text-black mb-4 flex items-center gap-2",children:[s.jsx(qi,{"data-loc":"client/src/pages/AdminPage.tsx:536",className:"w-5 h-5"})," Ø¥Ø¶Ø§ÙØ© ØªØØ¯Ù"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:537",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:538",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:539",className:Pe,children:"عÙÙØ§Ù Ø§ÙØªØØ¯Ù"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:540",className:me,placeholder:"عÙÙØ§Ù Ø§ÙØªØØ¯Ù",value:C.titleAr,onChange:L=>S({...C,titleAr:L.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:542",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:543",className:Pe,children:"اÙÙÙØ¹"}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPage.tsx:544",className:me,value:C.type,onChange:L=>S({...C,type:L.target.value}),children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:545",value:"daily",children:"ÙÙÙ
Ù"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:546",value:"weekly",children:"Ø£Ø³Ø¨ÙØ¹Ù"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:549",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:550",className:Pe,children:"اÙÙØµÙ"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:551",className:me,placeholder:"ÙØµÙ Ø§ÙØªØØ¯Ù",value:C.descriptionAr,onChange:L=>S({...C,descriptionAr:L.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:553",className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:554",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:555",className:Pe,children:"Ø£ÙÙÙÙØ© (emoji)"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:556",className:me,placeholder:"ð§",value:C.icon,onChange:L=>S({...C,icon:L.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:558",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:559",className:Pe,children:"اÙÙÙØ§Ø·"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:560",type:"number",className:me,value:C.pointsReward,onChange:L=>S({...C,pointsReward:parseInt(L.target.value)})})]})]})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:564",onClick:()=>C.titleAr&&Z.mutate(C),disabled:Z.isPending||!C.titleAr,className:"memphis-btn bg-memphis-sky px-5 py-2.5 font-black text-black mt-4 disabled:opacity-50",children:Z.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ùشاء...":"Ø¥ÙØ´Ø§Ø¡ Ø§ÙØªØØ¯Ù"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:573",className:"memphis-card overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:574",className:"px-5 py-3 border-b-2 border-black bg-memphis-sky",children:s.jsx("h3",{"data-loc":"client/src/pages/AdminPage.tsx:575",className:"font-black text-base text-black",children:"Ø§ÙØªØØ¯Ùات Ø§ÙØØ§ÙÙØ©"})}),(b.data??[]).map((L,ke)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:578",className:`flex items-center gap-3 px-5 py-3 ${ke<(b.data?.length??0)-1?"border-b border-gray-200":""}`,children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:579",className:"text-xl",children:L.icon??"â¡"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:580",className:"flex-1",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:581",className:"font-bold text-sm text-black",children:L.titleAr}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPage.tsx:582",className:"text-xs text-black/50",children:[L.type==="daily"?"ÙÙÙ
Ù":"Ø£Ø³Ø¨ÙØ¹Ù"," · ",L.pointsReward," ÙÙØ·Ø©"]})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:584",onClick:()=>X.mutate({id:L.id,isActive:!L.isActive}),className:`memphis-badge-pill text-xs ${L.isActive?"bg-memphis-mint":"bg-red-100"}`,children:L.isActive?"ÙØ´Ø·":"Ù
عطÙÙ"})]},L.id))]})]}),r==="prizes"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:595",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:596",className:"memphis-card p-6",children:[s.jsxs("h2",{"data-loc":"client/src/pages/AdminPage.tsx:597",className:"font-black text-lg text-black mb-4 flex items-center gap-2",children:[s.jsx(qi,{"data-loc":"client/src/pages/AdminPage.tsx:597",className:"w-5 h-5"})," Ø¥Ø¶Ø§ÙØ© جائزة"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:598",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:599",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:600",className:Pe,children:"اسÙ
Ø§ÙØ¬Ø§Ø¦Ø²Ø©"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:601",className:me,placeholder:"اسÙ
Ø§ÙØ¬Ø§Ø¦Ø²Ø©",value:A.nameAr,onChange:L=>E({...A,nameAr:L.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:603",className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:604",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:605",className:Pe,children:"Ø£ÙÙÙÙØ© (emoji)"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:606",className:me,placeholder:"ð",value:A.icon,onChange:L=>E({...A,icon:L.target.value})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:608",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:609",className:Pe,children:"اÙÙÙØ§Ø· اÙÙ
Ø·ÙÙØ¨Ø©"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:610",type:"number",className:me,value:A.requiredPoints,onChange:L=>E({...A,requiredPoints:parseInt(L.target.value)})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:613",className:"sm:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:614",className:Pe,children:"اÙÙØµÙ"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:615",className:me,placeholder:"ÙØµÙ Ø§ÙØ¬Ø§Ø¦Ø²Ø©",value:A.descriptionAr,onChange:L=>E({...A,descriptionAr:L.target.value})})]})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:618",onClick:()=>A.nameAr&&O.mutate(A),disabled:O.isPending||!A.nameAr,className:"memphis-btn bg-memphis-yellow px-5 py-2.5 font-black text-black mt-4 disabled:opacity-50",children:O.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ùشاء...":"Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¬Ø§Ø¦Ø²Ø©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:626",className:"memphis-card overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:627",className:"px-5 py-3 border-b-2 border-black bg-memphis-yellow",children:s.jsx("h3",{"data-loc":"client/src/pages/AdminPage.tsx:628",className:"font-black text-base text-black",children:"Ø§ÙØ¬Ùائز Ø§ÙØØ§ÙÙØ©"})}),(y.data??[]).map((L,ke)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:631",className:`flex items-center gap-3 px-5 py-3 ${ke<(y.data?.length??0)-1?"border-b border-gray-200":""}`,children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:632",className:"text-xl",children:L.icon??"ð"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:633",className:"flex-1",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:634",className:"font-bold text-sm text-black",children:L.nameAr}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPage.tsx:635",className:"text-xs text-black/50",children:[L.requiredPoints," ÙÙØ·Ø©"]})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:637",onClick:()=>ne.mutate({id:L.id,isActive:!L.isActive}),className:`memphis-badge-pill text-xs ${L.isActive?"bg-memphis-mint":"bg-red-100"}`,children:L.isActive?"ÙØ´Ø·Ø©":"Ù
عطÙÙØ©"})]},L.id))]})]}),r==="users"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:648",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:649",className:"memphis-card p-6",children:[s.jsx("h2",{"data-loc":"client/src/pages/AdminPage.tsx:650",className:"font-black text-lg text-black mb-4",children:"Ù
ÙØ ÙÙØ§Ø· إضاÙÙØ©"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:651",className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:652",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:653",className:Pe,children:"اÙÙ
ÙØ¸Ù (ID)"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:654",type:"number",className:me,placeholder:"ID اÙÙ
ÙØ¸Ù",value:I.userId||"",onChange:L=>H({...I,userId:parseInt(L.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:656",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:657",className:Pe,children:"عدد اÙÙÙØ§Ø·"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:658",type:"number",className:me,value:I.points,onChange:L=>H({...I,points:parseInt(L.target.value)})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:660",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPage.tsx:661",className:Pe,children:"Ø§ÙØ³Ø¨Ø¨"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:662",className:me,placeholder:"سبب اÙÙ
ÙØ§Ùأة",value:I.reason,onChange:L=>H({...I,reason:L.target.value})})]})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:665",onClick:()=>I.userId&&U.mutate(I),disabled:U.isPending||!I.userId,className:"memphis-btn bg-memphis-mint px-5 py-2.5 font-black text-black mt-4 disabled:opacity-50",children:"Ù
ÙØ اÙÙÙØ§Ø·"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:669",className:"memphis-card overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:670",className:"px-5 py-3 border-b-2 border-black bg-memphis-mint",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:671",className:"flex items-center justify-between",children:[s.jsxs("h3",{"data-loc":"client/src/pages/AdminPage.tsx:672",className:"font-black text-base text-black",children:["جÙ
ÙØ¹ اÙÙ
ÙØ¸ÙÙÙ (",Ae.length,")"]}),s.jsxs("button",{"data-loc":"client/src/pages/AdminPage.tsx:673",onClick:()=>{const L=Ae.map(ke=>({Ø§ÙØ§Ø³Ù
:ke.name??"Ù
ÙØ¸Ù",Ø§ÙØ¨Ø±Ùد:ke.email,اÙÙ
ستÙÙ:ke.level,اÙÙÙØ§Ø·:ke.totalPoints,Ø§ÙØ¯Ùر:ke.role==="admin"?"Ù
Ø¯ÙØ±":"Ù
ÙØ¸Ù"}));Mq(L,"ÙØ§Ø¦Ù
Ø©-اÙÙ
ÙØ¸ÙÙÙ.csv")},className:"flex items-center gap-1.5 px-3 py-1.5 bg-white border-2 border-black rounded-lg font-black text-xs shadow-[2px_2px_0px_0px_#000] hover:shadow-[1px_1px_0px_0px_#000] hover:translate-x-[1px] hover:translate-y-[1px] transition-all",children:[s.jsx(Qi,{"data-loc":"client/src/pages/AdminPage.tsx:686",className:"w-3.5 h-3.5"})," ØªØµØ¯ÙØ± CSV"]})]})}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:691",className:"px-5 py-3 border-b border-gray-200 flex flex-wrap gap-3 items-center bg-white/50",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:692",className:"relative flex-1 min-w-[180px]",children:[s.jsx(xl,{"data-loc":"client/src/pages/AdminPage.tsx:693",className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-black/40"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPage.tsx:694",type:"text",placeholder:"Ø¨ØØ« Ø¨Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ¨Ø±Ùد...",value:_,onCh
971ange:L=>V(L.target.value),className:"w-full pr-9 pl-3 py-2 text-sm font-medium border-2 border-black rounded-lg focus:outline-none focus:ring-2 focus:ring-black/20"})]}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPage.tsx:702",value:W,onChange:L=>B(L.target.value===""?"":parseInt(L.target.value)),className:"px-3 py-2 text-sm font-bold border-2 border-black rounded-lg focus:outline-none bg-white",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:707",value:"",children:"Ù٠اÙÙ
ستÙÙØ§Øª"}),[1,2,3,4,5,6,7,8,9,10].map(L=>s.jsxs("option",{"data-loc":"client/src/pages/AdminPage.tsx:708",value:L,children:["اÙÙ
ستÙÙ ",L]},L))]}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPage.tsx:710",value:K,onChange:L=>ae(L.target.value),className:"px-3 py-2 text-sm font-bold border-2 border-black rounded-lg focus:outline-none bg-white",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:715",value:"",children:"ÙÙ Ø§ÙØ£Ø¯Ùار"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:716",value:"user",children:"Ù
ÙØ¸Ù"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPage.tsx:717",value:"admin",children:"Ù
Ø¯ÙØ±"})]}),(_||W!==""||K!=="")&&s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:720",onClick:()=>{V(""),B(""),ae("")},className:"px-3 py-2 text-xs font-black text-red-600 border-2 border-red-300 rounded-lg hover:bg-red-50 transition-colors",children:"Ù
Ø³Ø Ø§ÙÙÙØ§ØªØ±"})]}),(h.data??[]).map((L,ke)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:726",className:`flex items-center gap-3 px-5 py-3 ${ke<Ae.length-1?"border-b border-gray-200":""}`,children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminPage.tsx:727",className:"font-black text-sm text-black/40 w-8",children:["#",L.id]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:728",className:"flex-1",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:729",className:"font-bold text-sm text-black",children:L.name??"Ù
ÙØ¸Ù"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:730",className:"text-xs text-black/50",children:L.email})]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPage.tsx:732",className:"memphis-badge-pill bg-memphis-yellow text-xs",children:[L.totalPoints," ÙÙØ·Ø©"]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPage.tsx:733",className:"memphis-badge-pill bg-memphis-lilac text-xs",children:["Ù
",L.level]}),L.role==="admin"&&s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:734",className:"memphis-badge-pill bg-memphis-coral text-xs",children:"Ù
Ø¯ÙØ±"})]},L.id))]})]}),r==="requests"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:743",className:"memphis-card overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:744",className:"px-5 py-3 border-b-2 border-black bg-memphis-coral",children:s.jsx("h3",{"data-loc":"client/src/pages/AdminPage.tsx:745",className:"font-black text-base text-black",children:"Ø·ÙØ¨Ø§Øª Ø§ÙØ¬Ùائز"})}),(w.data??[]).length===0?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:748",className:"p-10 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:748",className:"font-bold text-black/40",children:"ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª"})}):(w.data??[]).map((L,ke)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:750",className:`flex flex-wrap items-center gap-3 px-5 py-4 ${ke<(w.data?.length??0)-1?"border-b border-gray-200":""}`,children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:751",className:"text-xl",children:L.prize.icon??"ð"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:752",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:753",className:"font-bold text-sm text-black",children:L.prize.nameAr}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPage.tsx:754",className:"text-xs text-black/50",children:[L.user.name," · ",L.request.pointsSpent," ÙÙØ·Ø©"]})]}),s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:756",className:`memphis-badge-pill text-xs ${L.request.status==="pending"?"bg-memphis-yellow":L.request.status==="approved"?"bg-memphis-mint":L.request.status==="delivered"?"bg-green-100":"bg-red-100"}`,children:L.request.status==="pending"?"Ù
عÙÙ":L.request.status==="approved"?"Ù
ÙØ§ÙÙ":L.request.status==="delivered"?"Ù
سÙÙÙ
":"Ù
رÙÙØ¶"}),L.request.status==="pending"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:760",className:"flex gap-2",children:[s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:761",onClick:()=>Q.mutate({requestId:L.request.id,status:"approved"}),className:"w-7 h-7 rounded-lg bg-green-100 border-2 border-black flex items-center justify-center hover:bg-green-200",children:s.jsx(Ir,{"data-loc":"client/src/pages/AdminPage.tsx:762",className:"w-4 h-4 text-green-700"})}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:764",onClick:()=>Q.mutate({requestId:L.request.id,status:"rejected"}),className:"w-7 h-7 rounded-lg bg-red-100 border-2 border-black flex items-center justify-center hover:bg-red-200",children:s.jsx(Zn,{"data-loc":"client/src/pages/AdminPage.tsx:765",className:"w-4 h-4 text-red-600"})})]}),L.request.status==="approved"&&s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:770",onClick:()=>Q.mutate({requestId:L.request.id,status:"delivered"}),className:"memphis-btn bg-memphis-mint px-3 py-1 text-xs font-black text-black",children:"تسÙÙÙ
"})]},L.request.id))]}),r==="teams"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:781",className:"memphis-card overflow-hidden",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:782",className:"px-5 py-4 border-b-2 border-black bg-memphis-mint flex items-center gap-2",children:[s.jsx(rg,{"data-loc":"client/src/pages/AdminPage.tsx:783",className:"w-5 h-5 text-black"}),s.jsxs("h3",{"data-loc":"client/src/pages/AdminPage.tsx:784",className:"font-black text-base text-black",children:["إدارة اÙÙØ±Ù (",j.data?.length??0,")"]})]}),j.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:787",className:"p-6 space-y-3",children:[1,2,3].map(L=>s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:788",className:"h-14 animate-pulse bg-gray-100 rounded-xl"},L))}):(j.data?.length??0)===0?s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:791",className:"p-10 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:791",className:"font-bold text-black/40",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØ±Ù بعد"})}):s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:793",children:(j.data??[]).map((L,ke)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:795",className:`flex items-center gap-4 px-5 py-4 ${ke<(j.data?.length??0)-1?"border-b border-gray-200":""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPage.tsx:796",className:`w-10 h-10 rounded-xl border-2 border-black flex items-center justify-center text-xl ${L.color}`,children:L.icon}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:799",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:800",className:"font-black text-sm text-black",children:L.name}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPage.tsx:801",className:"text-xs text-black/50",children:[L.memberCount," عض٠· ",L.totalPoints," ÙÙØ·Ø©"]}),L.description&&s.jsx("p",{"data-loc":"client/src/pages/AdminPage.tsx:802",className:"text-xs text-black/40 truncate",children:L.description})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPage.tsx:804",className:"flex gap-2 items-center",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPage.tsx:805",className:`memphis-badge-pill text-xs ${L.isActive?"bg-memphis-mint":"bg-red-100"}`,children:L.isActive?"ÙØ´Ø·":"Ù
عطÙÙ"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPage.tsx:808",onClick:()=>{confirm(`ÙÙ Ø£ÙØª Ù
ØªØ£ÙØ¯ Ù
Ù ØØ°Ù ÙØ±ÙÙ "${L.name}"Ø`)&&oe.mutate({teamId:L.id})},disabled:oe.isPending,className:"w-8 h-8 rounded-lg bg-red-100 border-2 border-black flex items-center justify-center hover:bg-red-200 disabled:opacity-50",children:s.jsx(ur,{"data-loc":"client/src/pages/AdminPage.tsx:813",className:"w-4 h-4 text-red-600"})})]})]},L.id))})]})]})]})}const HOe=["ð","ð","â¡","ð","ð¥","ð","ð¯","ð¦","ð","ð"],qOe=[{label:"ÙØ¹ÙاعÙ",value:"bg-memphis-mint"},{label:"ÙÙÙÙÙ",value:"bg-memphis-lilac"},{label:"Ø£ØµÙØ±",value:"bg-memphis-yellow"},{label:"سÙ
اÙÙ",value:"bg-memphis-sky"},{label:"Ù
رجاÙÙ",value:"bg-memphis-coral"}];function UOe(){const{isAuthenticated:e}
971=Ma(),t=J.useUtils(),a=J.teams.list.useQuery(),n=J.teams.myTeam.useQuery(void 0,{enabled:e}),[r,i]=P.useState(!1),[o,l]=P.useState(!1),[c,d]=P.useState(""),[m,f]=P.useState(""),[h,x]=P.useState("ð"),[b,y]=P.useState("bg-memphis-mint"),w=J.teams.create.useMutation({onSuccess:()=>{re.success("تÙ
Ø¥ÙØ´Ø§Ø¡ اÙÙØ±ÙÙ Ø¨ÙØ¬Ø§Ø! ð"),i(!1),d(""),f(""),t.teams.list.invalidate(),t.teams.myTeam.invalidate()},onError:S=>re.error(S.message)}),j=J.teams.join.useMutation({onSuccess:()=>{re.success("Ø§ÙØ¶Ù
Ù
ت ÙÙÙØ±ÙÙ Ø¨ÙØ¬Ø§Ø! ð¤"),t.teams.list.invalidate(),t.teams.myTeam.invalidate()},onError:S=>re.error(S.message)}),N=J.teams.leave.useMutation({onSuccess:()=>{re.success("غادرت اÙÙØ±ÙÙ"),t.teams.list.invalidate(),t.teams.myTeam.invalidate()},onError:S=>re.error(S.message)}),k=J.teams.delete.useMutation({onSuccess:()=>{re.success("تÙ
ØØ°Ù اÙÙØ±ÙÙ"),t.teams.list.invalidate(),t.teams.myTeam.invalidate()},onError:S=>re.error(S.message)}),D=n.data,C=a.data??[];return s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:75",className:"min-h-screen memphis-bg overflow-x-hidden",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/TeamsPage.tsx:76"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:77",className:"max-w-5xl mx-auto min-w-0 px-4 py-6 sm:py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:80",className:"memphis-card bg-memphis-lilac p-8 mb-8 text-center relative overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:81",className:"absolute top-3 left-4 text-4xl opacity-20 rotate-12",children:"ð"}),s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:82",className:"absolute bottom-3 right-4 text-3xl opacity-20 -rotate-12",children:"â¡"}),s.jsx(ln,{"data-loc":"client/src/pages/TeamsPage.tsx:83",className:"w-10 h-10 mx-auto mb-3 text-black"}),s.jsx("h1",{"data-loc":"client/src/pages/TeamsPage.tsx:84",className:"memphis-title text-4xl text-black mb-2",children:"اÙÙØ±Ù"}),s.jsx("p",{"data-loc":"client/src/pages/TeamsPage.tsx:85",className:"font-bold text-black/60",children:"تÙÙÙÙ ÙØ±ÙÙØ§Ù ÙØªÙØ§ÙØ³ Ù
ع زÙ
ÙØ§Ø¦Ù ÙØªØÙÙ٠أعÙ٠اÙÙÙØ§Ø·"})]}),e&&D&&s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:90",className:"memphis-card bg-memphis-yellow p-4 sm:p-6 mb-8",children:s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:91",className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:92",className:"flex items-center gap-3 sm:gap-4 min-w-0",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:93",className:"w-14 h-14 rounded-xl border-2 border-black shadow-memphis flex items-center justify-center text-3xl bg-white",children:D.team.icon}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:96",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:97",className:"flex flex-wrap items-center gap-2",children:[s.jsx("h2",{"data-loc":"client/src/pages/TeamsPage.tsx:98",className:"font-black text-lg sm:text-xl text-black break-words",children:D.team.name}),D.membership.role==="captain"&&s.jsxs("span",{"data-loc":"client/src/pages/TeamsPage.tsx:100",className:"memphis-badge-pill bg-black text-white text-xs flex items-center gap-1",children:[s.jsx(Gs,{"data-loc":"client/src/pages/TeamsPage.tsx:101",className:"w-3 h-3"})," ÙØ§Ø¦Ø¯"]})]}),s.jsxs("p",{"data-loc":"client/src/pages/TeamsPage.tsx:105",className:"text-sm font-bold text-black/60",children:[D.team.memberCount," عض٠· ",D.team.totalPoints," ÙÙØ·Ø©"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:108",className:"flex flex-col sm:flex-row gap-2 w-full sm:w-auto",children:[s.jsx(jt,{"data-loc":"client/src/pages/TeamsPage.tsx:109",href:`/teams/${D.team.id}`,children:s.jsxs("button",{"data-loc":"client/src/pages/TeamsPage.tsx:110",className:"memphis-btn bg-white px-4 py-2 font-black text-black text-sm flex items-center justify-center gap-2 w-full",children:[s.jsx(rg,{"data-loc":"client/src/pages/TeamsPage.tsx:111",className:"w-4 h-4"})," عرض اÙÙØ±ÙÙ"]})}),D.membership.role==="captain"?s.jsxs("button",{"data-loc":"client/src/pages/TeamsPage.tsx:115",onClick:()=>{confirm("ÙÙ Ø£ÙØª Ù
ØªØ£ÙØ¯ Ù
Ù ØØ°Ù اÙÙØ±ÙÙØ")&&k.mutate({teamId:D.team.id})},disabled:k.isPending,className:"memphis-btn bg-red-100 px-4 py-2 font-black text-red-700 text-sm flex items-center justify-center gap-2 w-full",children:[s.jsx(ur,{"data-loc":"client/src/pages/TeamsPage.tsx:120",className:"w-4 h-4"})," ØØ°Ù اÙÙØ±ÙÙ"]}):s.jsxs("button",{"data-loc":"client/src/pages/TeamsPage.tsx:123",onClick:()=>{confirm("ÙÙ ØªØ±ÙØ¯ Ù
غادرة اÙÙØ±ÙÙØ")&&N.mutate()},disabled:N.isPending,className:"memphis-btn bg-red-100 px-4 py-2 font-black text-red-700 text-sm flex items-center justify-center gap-2 w-full",children:[s.jsx(ly,{"data-loc":"client/src/pages/TeamsPage.tsx:128",className:"w-4 h-4"})," Ù
غادرة اÙÙØ±ÙÙ"]})]})]})}),e&&!D&&s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:138",className:"flex gap-4 mb-8 flex-wrap",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeamsPage.tsx:139",onClick:()=>{i(!0),l(!1)},className:"memphis-btn bg-black text-white px-6 py-3 font-black flex items-center gap-2",children:[s.jsx(qi,{"data-loc":"client/src/pages/TeamsPage.tsx:143",className:"w-5 h-5"})," Ø¥ÙØ´Ø§Ø¡ ÙØ±ÙÙ Ø¬Ø¯ÙØ¯"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeamsPage.tsx:145",onClick:()=>{l(!0),i(!1)},className:"memphis-btn bg-memphis-mint px-6 py-3 font-black text-black flex items-center gap-2",children:[s.jsx(ng,{"data-loc":"client/src/pages/TeamsPage.tsx:149",className:"w-5 h-5"})," Ø§ÙØ§ÙضÙ
اÙ
ÙÙØ±ÙÙ"]})]}),!e&&s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:155",className:"memphis-card bg-memphis-peach p-6 mb-8 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamsPage.tsx:156",className:"font-bold text-black/70 mb-3",children:"سجÙ٠دخÙÙÙ ÙÙØ§ÙضÙ
اÙ
Ø¥ÙÙ ÙØ±ÙÙ Ø£Ù Ø¥ÙØ´Ø§Ø¡ ÙØ±ÙÙ Ø¬Ø¯ÙØ¯"}),s.jsx("button",{"data-loc":"client/src/pages/TeamsPage.tsx:157",onClick:()=>Rn(),className:"memphis-btn bg-black text-white px-6 py-2.5 font-black",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]}),r&&s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:165",className:"memphis-card bg-white p-6 mb-8",children:[s.jsxs("h3",{"data-loc":"client/src/pages/TeamsPage.tsx:166",className:"font-black text-xl text-black mb-4 flex items-center gap-2",children:[s.jsx(qi,{"data-loc":"client/src/pages/TeamsPage.tsx:166",className:"w-5 h-5"})," Ø¥ÙØ´Ø§Ø¡ ÙØ±ÙÙ Ø¬Ø¯ÙØ¯"]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:167",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:168",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamsPage.tsx:169",className:"font-black text-sm text-black block mb-1",children:"اسÙ
اÙÙØ±ÙÙ *"}),s.jsx("input",{"data-loc":"client/src/pages/TeamsPage.tsx:170",value:c,onChange:S=>d(S.target.value),placeholder:"Ù
ثاÙ: ÙØ±Ù٠اÙÙØ¬ÙÙ
",className:"memphis-input w-full px-4 py-2.5 text-black font-bold",maxLength:50})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:177",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamsPage.tsx:178",className:"font-black text-sm text-black block mb-1",children:"ÙØµÙ اÙÙØ±ÙÙ (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx("textarea",{"data-loc":"client/src/pages/TeamsPage.tsx:179",value:m,onChange:S=>f(S.target.value),placeholder:"Ø§ÙØªØ¨ ÙØµÙا٠Ù
ختصرا٠ÙÙØ±ÙÙÙ...",className:"memphis-input w-full px-4 py-2.5 text-black font-bold resize-none",rows:2,maxLength:300})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:186",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamsPage.tsx:187",className:"font-black text-sm text-black block mb-2",children:"Ø£ÙÙÙÙØ© اÙÙØ±ÙÙ"}),s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:188",className:"flex gap-2 flex-wrap",children:HOe.map(S=>s.jsx("button",{"data-loc":"client/src/pages/TeamsPage.tsx:190",onClick:()=>x(S),className:`w-10 h-10 text-xl rounded-lg border-2 border-black transition-all ${h===S?"bg-memphis-yellow shadow-memphis":"bg-white hover:bg-memphis-peach"}`,children:S},S))})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:197",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamsPage.tsx:198",className:"font-black text-sm text-black block mb-2",children:"ÙÙ٠اÙÙØ±ÙÙ"}),s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:199",className:"flex gap-2 flex-wrap",children:qOe.map(S=>s.jsx("button",{"data-loc":"client/src/pages/TeamsPage.tsx:201",onClick:()=>
971y(S.value),className:`px-3 py-1.5 rounded-lg border-2 border-black font-bold text-sm transition-all ${S.value} ${b===S.value?"shadow-memphis scale-105":""}`,children:S.label},S.value))})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:208",className:"flex gap-3",children:[s.jsx("button",{"data-loc":"client/src/pages/TeamsPage.tsx:209",onClick:()=>w.mutate({name:c,description:m||void 0,icon:h,color:b}),disabled:!c.trim()||w.isPending,className:"memphis-btn bg-black text-white px-6 py-2.5 font-black disabled:opacity-50",children:w.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ùشاء...":"Ø¥ÙØ´Ø§Ø¡ اÙÙØ±ÙÙ"}),s.jsx("button",{"data-loc":"client/src/pages/TeamsPage.tsx:216",onClick:()=>i(!1),className:"memphis-btn bg-gray-100 px-6 py-2.5 font-black text-black",children:"Ø¥ÙØºØ§Ø¡"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:225",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamsPage.tsx:226",className:"font-black text-2xl text-black mb-4 flex items-center gap-2",children:[s.jsx(aa,{"data-loc":"client/src/pages/TeamsPage.tsx:227",className:"w-6 h-6"})," جÙ
ÙØ¹ اÙÙØ±Ù (",C.length,")"]}),a.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:230",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(S=>s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:231",className:"memphis-card h-40 animate-pulse bg-gray-100"},S))}):C.length===0?s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:234",className:"memphis-card bg-white p-10 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:235",className:"text-5xl mb-3",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/TeamsPage.tsx:236",className:"font-black text-black/50",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØ±Ù بعد. Ù٠أÙÙ Ù
Ù ÙÙØ´Ø¦ ÙØ±ÙÙØ§Ù!"})]}):s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:239",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:C.map((S,A)=>s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:241",className:`memphis-card p-4 sm:p-5 min-w-0 ${S.id===D?.team.id?"ring-2 ring-black":""}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:242",className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:243",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:244",className:`w-12 h-12 rounded-xl border-2 border-black shadow-memphis flex items-center justify-center text-2xl ${S.color}`,children:S.icon}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:247",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:248",className:"flex items-center gap-1",children:[A===0&&s.jsx("span",{"data-loc":"client/src/pages/TeamsPage.tsx:249",className:"text-yellow-500 text-lg",children:"ð¥"}),A===1&&s.jsx("span",{"data-loc":"client/src/pages/TeamsPage.tsx:250",className:"text-gray-400 text-lg",children:"ð¥"}),A===2&&s.jsx("span",{"data-loc":"client/src/pages/TeamsPage.tsx:251",className:"text-amber-600 text-lg",children:"ð¥"}),s.jsx("h3",{"data-loc":"client/src/pages/TeamsPage.tsx:252",className:"font-black text-base text-black break-words",children:S.name})]}),s.jsxs("p",{"data-loc":"client/src/pages/TeamsPage.tsx:254",className:"text-xs font-bold text-black/50",children:[S.memberCount," عضÙ"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:257",className:"text-right",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:258",className:"font-black text-lg text-black",children:S.totalPoints}),s.jsx("div",{"data-loc":"client/src/pages/TeamsPage.tsx:259",className:"text-xs font-bold text-black/40",children:"ÙÙØ·Ø©"})]})]}),S.description&&s.jsx("p",{"data-loc":"client/src/pages/TeamsPage.tsx:263",className:"text-xs font-medium text-black/60 mb-3 line-clamp-2",children:S.description}),s.jsxs("div",{"data-loc":"client/src/pages/TeamsPage.tsx:265",className:"flex flex-wrap gap-2",children:[s.jsx(jt,{"data-loc":"client/src/pages/TeamsPage.tsx:266",href:`/teams/${S.id}`,className:"flex-1",children:s.jsx("button",{"data-loc":"client/src/pages/TeamsPage.tsx:267",className:"memphis-btn bg-white px-3 py-1.5 font-black text-black text-xs w-full",children:"عرض Ø§ÙØªÙاصÙÙ"})}),e&&!D&&s.jsxs("button",{"data-loc":"client/src/pages/TeamsPage.tsx:272",onClick:()=>j.mutate({teamId:S.id}),disabled:j.isPending,className:"memphis-btn bg-memphis-mint px-3 py-1.5 font-black text-black text-xs flex items-center gap-1",children:[s.jsx(ng,{"data-loc":"client/src/pages/TeamsPage.tsx:277",className:"w-3 h-3"})," Ø§ÙØ¶Ù
"]}),D?.team.id===S.id&&s.jsxs("span",{"data-loc":"client/src/pages/TeamsPage.tsx:281",className:"memphis-badge-pill bg-black text-white text-xs flex items-center gap-1",children:[s.jsx(Sn,{"data-loc":"client/src/pages/TeamsPage.tsx:282",className:"w-3 h-3"})," ÙØ±ÙÙÙ"]})]})]},S.id))})]})]})]})}function yT(e){return(e??"").split(/[Ø,]/).map(t=>
971t.trim()).filter(Boolean)}function VOe(e){const t=new Map;return e.forEach(a=>yT(a.tags).forEach(n=>t.set(n,(t.get(n)??0)+1))),t}function QOe(e,t){try{const a=e.getItem(t);if(!a)return null;const n=JSON.parse(a);return typeof n.source!="string"||typeof n.focusX!="number"||typeof n.focusY!="number"?null:{source:n.source,focusX:n.focusX,focusY:n.focusY,savedAt:typeof n.savedAt=="number"?n.savedAt:Date.now()}}catch{return null}}function Oq(e,t,a){e.setItem(t,JSON.stringify(a))}function WOe(e,t){e.removeItem(t)}function KOe(e,t,a,n){const r=2.2857142857142856,i=e/t,o=i>r?Math.round(t*r):e,l=i>r?t:Math.round(e/r);return{x:Math.max(0,Math.min(e-o,Math.round((e-o)*a))),y:Math.max(0,Math.min(t-l,Math.round((t-l)*n))),width:o,height:l}}async function $Oe(e,t,a){return new Promise((n,r)=>{const i=new Image;i.onload=()=>{const o=KOe(i.width,i.height,t,a),l=document.createElement("canvas");l.width=1600,l.height=700;const c=l.getContext("2d");if(!c)return r(new Error("تعذرت Ù
Ø¹Ø§ÙØ¬Ø© Ø§ÙØµÙرة"));c.drawImage(i,o.x,o.y,o.width,o.height,0,0,l.width,l.height),n(l.toDataURL("image/jpeg",.88))},i.onerror=()=>r(new Error("تعذرت ÙØ±Ø§Ø¡Ø© Ø§ÙØµÙرة")),i.src=e})}function Rq({onReady:e,isUploading:t,draftKey:a,draftTargets:n=[],onDraftCopied:r}){const[i,o]=P.useState(null),[l,c]=P.useState(null),[d,m]=P.useState(.5),[f,h]=P.useState(.5),[x,b]=P.useState(null),[y,w]=P.useState(""),j=P.useRef(null);return P.useEffect(()=>{const N=QOe(window.localStorage,a);N&&(o(N.source),m(N.focusX),h(N.focusY))},[a]),P.useEffect(()=>{i&&$Oe(i,d,f).then(c).catch(N=>b(N instanceof Error?N.message:"تعذرت Ù
Ø¹Ø§ÙØ¬Ø© Ø§ÙØµÙرة"))},[i,d,f]),s.jsxs("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:58",className:"rounded-xl border-2 border-dashed border-black bg-memphis-peach/30 p-3 text-sm font-black text-black",children:[s.jsxs("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:59",className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:59",children:[s.jsx("p",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:59",children:"ØºÙØ§Ù Ù
خصص ÙÙÙ
ÙØ®Øµ"}),s.jsx("p",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:59",className:"mt-1 text-xs font-bold text-black/65",children:"PNG Ø£Ù JPG Ø£Ù WEBP ØØªÙ 2MB â ØªÙضبط تÙÙØ§Ø¦ÙØ§Ù Ø¨ÙØ³Ø¨Ø© Ø§ÙØºÙاÙ."})]}),i&&s.jsx("button",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:59",type:"button",onClick:()=>{o(null),c(null),b(null),WOe(window.localStorage,a)},className:"rounded-full border-2 border-black bg-white p-1","aria-label":"Ø¥Ø²Ø§ÙØ© Ø§ÙØµÙرة",children:s.jsx(Zn,{"data-loc":"client/src/components/SummaryCoverUploader.tsx:59",className:"h-4 w-4"})})]}),!i&&s.jsxs("button",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:60",type:"button",onClick:()=>j.current?.click(),className:"memphis-btn mt-3 flex items-center gap-2 bg-white px-3 py-2 text-xs",children:[s.jsx(dy,{"data-loc":"client/src/components/SummaryCoverUploader.tsx:60",className:"h-4 w-4"})," اختر ØµÙØ±Ø© ÙØ¹Ø§ÙÙÙØ§"]}),s.jsx("input",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:61",ref:j,type:"file",accept:"image/png,image/jpeg,image/webp",className:"sr-only",onChange:N=>{const k=N.currentTarget.files?.[0];if(!k)return;if(k.size>2*1024*1024){b("ÙØ¬Ø¨ Ø£ÙØ§ ÙØªØ¬Ø§Ùز ØØ¬Ù
Ø§ÙØºÙا٠2 Ù
ÙØ¬Ø§Ø¨Ø§Ùت");return}const D=new FileReader;D.onload=()=>typeof D.result=="string"&&o(D.result),D.readAsDataURL(k)}}),i&&s.jsxs("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"mt-3 space-y-3",children:[s.jsx("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"overflow-hidden rounded-lg border-2 border-black bg-black",children:s.jsx("img",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",src:l??i,alt:"Ù
عاÙÙØ© Ø§ÙØºÙا٠بعد Ø§ÙØ§Ùتطاع",className:"aspect-[16/7] w-full object-cover"})}),s.jsxs("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"grid gap-2 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"text-xs font-black",children:["ضبط اÙÙ
ÙØ¶Ø¹ Ø£ÙÙÙÙØ§",s.jsx("input",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",type:"range",min:"0",max:"1",step:"0.05",value:d,onChange:N=>m(Number(N.target.value)),className:"mt-1 w-full accent-black"})]}),s.jsxs("label",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"text-xs font-black",children:["ضبط اÙÙ
ÙØ¶Ø¹ عÙ
ÙØ¯ÙÙØ§",s.jsx("input",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",type:"range",min:"0",max:"1",step:"0.05",value:f,onChange:N=>h(Number(N.target.value)),className:"mt-1 w-full accent-black"})]})]}),n.length>0&&s.jsxs("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"grid gap-2 sm:grid-cols-[1fr_auto]",children:[s.jsxs("select",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",value:y,onChange:N=>w(N.target.value),className:"rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-bold text-black",children:[s.jsx("option",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",value:"",children:"Ø§ÙØ³Ø® اÙÙ
Ø³ÙØ¯Ø© Ø¥ÙÙ Ø£Ø³Ø¨ÙØ¹ آخرâ¦"}),n.map(N=>s.jsx("option",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",value:N.draftKey,children:N.label},N.draftKey))]}),s.jsx("button",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",type:"button",disabled:!y,onClick:()=>{const N=n.find(k=>k.draftKey===y);N&&(Oq(window.localStorage,N.draftKey,{source:i,focusX:d,focusY:f,savedAt:Date.now()}),r?.(N.weekKey),w(""))},className:"memphis-btn bg-memphis-mint px-3 py-2 text-xs disabled:opacity-50",children:"ÙØ³Ø® اÙÙ
Ø³ÙØ¯Ø©"})]}),s.jsxs("div",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"flex flex-wrap gap-2",children:[s.jsx("button",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",type:"button",onClick:()=>{Oq(window.localStorage,a,{source:i,focusX:d,focusY:f,savedAt:Date.now()}),b(null)},className:"memphis-btn bg-white px-3 py-2 text-xs",children:"ØÙظ Ù
Ø³ÙØ¯Ø©"}),s.jsxs("button",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",type:"button",onClick:()=>l&&e(l),disabled:!l||t,className:"memphis-btn flex items-center gap-2 bg-memphis-yellow px-3 py-2 text-xs disabled:opacity-50",children:[s.jsx(yW,{"data-loc":"client/src/components/SummaryCoverUploader.tsx:62",className:"h-4 w-4"})," ",t?"جار٠اعتÙ
اد Ø§ÙØºÙاÙâ¦":"اعتÙ
اد Ø§ÙØµÙرة اÙÙ
ÙØµÙصة"]})]})]}),x&&s.jsx("p",{"data-loc":"client/src/components/SummaryCoverUploader.tsx:63",className:"mt-2 text-xs font-black text-red-700",children:x})]})}const XOe=["ðª","ð¥","â¡","ð","ð¯","ð","ð","â¤ï¸","ð","â
"],YOe=["ð","â¤ï¸","ð¥","ðª","ð","ð","ð","ð"],zq=[{id:"motivational",label:"تØÙÙØ²ÙØ©",icon:"ð",color:"bg-memphis-yellow"},{id:"fun",label:"Ù
Ø±ØØ©",icon:"ð",color:"bg-memphis-mint"},{id:"formal",label:"رسÙ
ÙØ©",icon:"ð¼",color:"bg-memphis-lilac"},{id:"competitive",label:"ØªÙØ§ÙØ³ÙØ©",icon:"ð",color:"bg-memphis-peach"}],_q=[{prompt:"تÙÙ٠اÙÙØ±ÙÙ Ø·ÙØ¨Ø§Ù Ø¹Ø§Ø¬ÙØ§Ù بÙÙÙ
ا ØªÙØ¬Ø¯ Ù
ÙÙ
Ø© Ø£Ø³Ø§Ø³ÙØ© ÙÙØªØ±Ø¨ Ù
ÙØ¹Ø¯Ùا. Ù
ا اÙÙØ±Ø§Ø± Ø§ÙØ£Ùسب ÙØ¨Ù ØªÙØ²Ùع Ø§ÙØ¬ÙدØ",o
971ptions:["ØªÙØ³ÙÙ
ÙÙ Ø§ÙØ£Ø¹Ø¶Ø§Ø¡ بÙ٠اÙÙ
ÙÙ
تÙÙ ÙÙØ±Ø§Ù دÙÙ ØªØØ¯Ùد Ù
خرج ÙØ§Ø¶Ø","ØªØØ¯Ùد أثر ÙÙ Ù
ÙÙ
Ø© ÙÙ
ÙØ¹Ø¯Ùا Ø«Ù
تÙÙÙ٠شخص بÙ
راجعة Ø§ÙØ·Ùب Ø§ÙØ¹Ø§Ø¬Ù ÙØ¨Ù إعادة ØªÙØ²Ùع Ø§ÙØ¹Ù
Ù","تأجÙÙ Ù
ÙØ§Ùشة Ø§ÙØ·Ùب ØØªÙ ÙÙØ§ÙØ© اÙÙÙÙ
ÙØªØ¬Ùب ØªØ´ØªÙØª اÙÙØ±ÙÙ"],correctIndex:1,explanation:"ØªØØ¯Ùد Ø§ÙØ£Ø«Ø± ÙØ§ÙÙ
ÙØ¹Ø¯ Ø£ÙÙØ§Ù ÙØÙ
٠اÙÙ
ÙÙ
Ø© Ø§ÙØ£Ø³Ø§Ø³ÙØ© ÙÙÙ
ÙØ اÙÙØ±ÙÙ ÙØ±Ø§Ø±Ø§Ù Ù
بÙÙØ§Ù عÙÙ Ù
عÙÙÙ
Ø©Ø ÙØ§ عÙ٠رد ÙØ¹Ù Ø³Ø±ÙØ¹."},{prompt:"اختÙ٠أعضاء اÙÙØ±ÙÙ ØÙ٠طرÙÙØ© تسÙÙÙ
Ù
Ø´Ø±ÙØ¹ Ù
شترÙ. Ù
ا Ø§ÙØ®Ø·ÙØ© Ø§ÙØªÙ تØÙÙ Ø§ÙØ§Ø®ØªÙا٠إÙÙ ÙØ±Ø§Ø± ÙØ§Ø¨Ù ÙÙØªÙÙÙØ°Ø",options:["Ø§Ø®ØªÙØ§Ø± Ø±Ø£Ù Ø§ÙØ¹Ø¶Ù Ø§ÙØ£Ø¹ÙÙ ØµÙØªØ§Ù ÙØ¥ÙÙØ§Ø¡ اÙÙÙØ§Ø´ بسرعة","تجربة Ø®ÙØ§Ø± ØµØºÙØ± ÙÙÙ Ù
Ø¹ÙØ§Ø± ÙØ¬Ø§Ø Ù
تÙ٠عÙÙÙ Ø«Ù
Ù
راجعة اÙÙØªÙجة Ù
عاÙ","إرسا٠ÙÙ Ø¹Ø¶Ù ÙØ³Ø®ØªÙ Ø§ÙØ®Ø§ØµØ© ÙÙØ®ØªØ§Ø± اÙÙ
Ø¯ÙØ± ÙØ§ØÙاÙ"],correctIndex:1,explanation:"Ø§ÙØªØ¬Ø±Ø¨Ø© Ø§ÙØµØºÙرة ÙÙ
Ø¹ÙØ§Ø± اÙÙØ¬Ø§Ø اÙÙØ§Ø¶Ø ÙØÙÙØ§Ù Ø§ÙØ§Ø®ØªÙا٠إÙ٠تعÙÙÙ
جÙ
Ø§Ø¹Ù Ø¨Ø¯ÙØ§Ù Ù
٠صراع آراء."},{prompt:"ÙØ§ØØ¸ اÙÙØ±ÙÙ ØªÙØ±Ø§Ø± خطأ Ù٠تسÙÙÙ
اÙÙ
ÙÙØ§Øª بÙÙ Ø§ÙØ£Ø¹Ø¶Ø§Ø¡. Ù
ا اÙÙØ±Ø§Ø± Ø§ÙØ°Ù ÙØ¹Ø§Ùج Ø§ÙØ³Ø¨Ø¨ ÙØ§ Ø§ÙØ¹Ø±Ø¶ ÙÙØ·Ø",options:["Ù
راجعة ÙÙ Ù
ÙÙ ÙØ¯ÙÙØ§Ù Ù٠آخر ÙØØ¸Ø© ÙØ¨Ù Ø§ÙØªØ³ÙÙÙ
","تسÙ
ÙØ© Ø¹Ø¶Ù ÙØ§ØØ¯ Ù
سؤÙÙØ§Ù ع٠جÙ
ÙØ¹ اÙÙ
ÙÙØ§Øª Ù
Ø³ØªÙØ¨ÙاÙ","Ø§ÙØ§ØªÙا٠عÙÙ ÙØ§Ùب تسÙ
ÙØ© ÙØ®Ø·ÙØ© تسÙÙÙ
Ù
Ø´ØªØ±ÙØ© Ø«Ù
Ø§Ø®ØªØ¨Ø§Ø±ÙØ§ Ù٠اÙÙ
ÙÙ
Ø© Ø§ÙØªØ§ÙÙØ©"],correctIndex:2,explanation:"ÙØ§Ùب Ù
ÙØØ¯ ÙØ®Ø·ÙØ© تسÙÙÙ
ÙØ§Ø¶ØØ© ÙÙÙÙØ§Ù ØªÙØ±Ø§Ø± Ø§ÙØ®Ø·Ø£ ÙÙØ¬Ø¹Ùا٠اÙÙ
Ø¹Ø±ÙØ© ÙØ§Ø¨ÙØ© ÙÙÙ
Ø´Ø§Ø±ÙØ© بÙÙ Ø§ÙØ¬Ù
ÙØ¹."}];function ZOe({teamId:e,isCaptain:t}){const a=J.useUtils(),n=J.teamDecisions.latest.useQuery({teamId:e},{enabled:!!e,refetchInterval:5e3}),[r,i]=P.useState(null),[o,l]=P.useState(""),c=J.teamDecisions.create.useMutation({onSuccess:()=>{re.success("بدأت جÙÙØ© اÙÙÙØ§Ø´ ÙÙÙØ±ÙÙ"),a.teamDecisions.latest.invalidate({teamId:e})},onError:x=>re.error(x.message)}),d=J.teamDecisions.vote.useMutation({onSuccess:()=>{re.success("تÙ
تسجÙÙ ØµÙØªÙØ Ø§ÙØªØ¸Ø± ÙØ´Ù اÙÙØªÙجة Ù
ع اÙÙØ±ÙÙ"),a.teamDecisions.latest.invalidate({teamId:e})},onError:x=>re.error(x.message)}),m=J.teamDecisions.reveal.useMutation({onSuccess:()=>{re.success("تÙ
ÙØ´Ù اÙÙØ±Ø§Ø± Ø§ÙØ£Ùسب ÙÙÙØ±ÙÙ"),a.teamDecisions.latest.invalidate({teamId:e})},onError:x=>re.error(x.message)}),f=n.data,h=()=>{const x=_q[new Date().getDate()%_q.length];c.mutate({teamId:e,...x,discussionMinutes:3,votingMinutes:3})};return s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:57",className:"memphis-card mb-6 bg-memphis-lilac p-5","aria-labelledby":"team-decision-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:58",className:"mb-3 flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:58",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:58",id:"team-decision-title",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(ln,{"data-loc":"client/src/pages/TeamDetailPage.tsx:58",className:"h-5 w-5"})," ÙØ±Ø§Ø± اÙÙØ±ÙÙ Ø§ÙØ³Ø±Ùع"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:58",className:"mt-1 text-sm font-bold text-black/65",children:"ÙØ§ÙØ´ÙØ§ Ø£ÙÙØ§Ù Ù٠رسائ٠اÙÙØ±ÙÙØ Ø«Ù
صÙÙØªÙا بشÙÙ Ù
ستÙÙ ÙØ¨Ù ÙØ´Ù اÙÙØ±Ø§Ø± Ø§ÙØ£Ùسب."})]}),f&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:58",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black text-black",children:f.status==="discussion"?"Ù
رØÙØ© اÙÙÙØ§Ø´":f.status==="voting"?"Ù
رØÙØ© Ø§ÙØªØµÙÙØª":"ÙÙØ´Ùت اÙÙØªÙجة"})]}),n.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"h-28 animate-pulse rounded-xl border-2 border-black/20 bg-white/70"}):f?s.jsxs(s.Fragment,{children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"rounded-xl border-2 border-black bg-white p-4 text-sm font-black leading-7 text-black",children:f.prompt}),f.status==="discussion"?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"mt-3 rounded-xl border-2 border-black bg-memphis-yellow/60 p-3 text-sm font-bold text-black",children:[s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",children:["ÙÙØª اÙÙÙØ§Ø´ Ù
ÙØªÙØ ØØªÙ ",new Date(f.discu
971ssionEndsAt).toLocaleTimeString("ar-SA",{hour:"2-digit",minute:"2-digit"}),"."]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"mt-1 text-xs",children:"Ø§ÙØªØ¨Ùا Ù
برراتÙÙ
Ù٠تبÙÙØ¨ Ø§ÙØ±Ø³Ø§Ø¦ÙØ Ø«Ù
ÙØ¹Ùد Ø§ÙØ¬Ù
ÙØ¹ ÙÙØªØµÙÙØª دÙÙ Ø±Ø¤ÙØ© Ø£ØµÙØ§Øª Ø§ÙØ¢Ø®Ø±ÙÙ."})]}):f.status==="voting"?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"mt-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"mb-2 text-xs font-black text-black/65",children:"اختر ÙØ±Ø§Ø±Ù Ø«Ù
أض٠سببا٠Ù
ختصرا٠إ٠رغبت."}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"grid gap-2",children:f.options.map((x,b)=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",type:"button",disabled:!!f.myVote||d.isPending,onClick:()=>i(b),className:`rounded-xl border-2 border-black p-3 text-right text-sm font-bold text-black ${r===b?"bg-memphis-yellow":"bg-white hover:bg-memphis-peach"}`,children:x},x))}),!f.myVote&&s.jsxs(s.Fragment,{children:[s.jsx("textarea",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",value:o,onChange:x=>l(x.target.value),maxLength:500,placeholder:"Ù
ا سبب Ø§Ø®ØªÙØ§Ø±ÙØ (Ø§Ø®ØªÙØ§Ø±Ù)",className:"mt-3 w-full rounded-xl border-2 border-black bg-white p-3 text-sm font-bold text-black"}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",type:"button",onClick:()=>r!==null&&d.mutate({teamId:e,roundId:f.id,selectedIndex:r,rationale:o||void 0}),disabled:r===null||d.isPending,className:"memphis-btn mt-3 bg-black px-4 py-2 text-sm font-black text-white disabled:opacity-50",children:"سجÙÙ ØµÙØªÙ"})]}),f.myVote&&s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"mt-3 rounded-xl border-2 border-black bg-memphis-mint p-3 text-sm font-black text-black",children:["تÙ
تسجÙÙ ØµÙØªÙ. Ø§ÙØ£ØµÙات Ø§ÙØØ§ÙÙØ©: ",f.voteCount,". Ø³ÙØ¸Ùر ØªÙØ²Ùع Ø§ÙØ£ØµÙات بعد اÙÙØ´Ù."]}),t&&s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",type:"button",onClick:()=>m.mutate({teamId:e,roundId:f.id}),className:"mt-3 rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-black text-black",children:"ÙØ´Ù اÙÙØªÙجة Ø§ÙØ¢Ù"})]}):s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"mt-3 space-y-2",children:[f.options.map((x,b)=>s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:`rounded-xl border-2 border-black p-3 text-sm font-bold text-black ${b===f.correctIndex?"bg-memphis-mint":"bg-white"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"flex items-start justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",children:x}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"shrink-0 rounded-full border border-black bg-white px-2 py-1 text-[11px] font-black",children:[f.voteCounts?.[b]??0," ØµÙØª"]})]}),b===f.correctIndex&&s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"mt-2 text-xs font-black",children:["اÙÙØ±Ø§Ø± Ø§ÙØ£Ùسب: ",f.explanation]})]},x)),t&&s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",type:"button",onClick:h,disabled:c.isPending,className:"memphis-btn mt-2 bg-black px-4 py-2 text-sm font-black text-white",children:"ابدأ جÙÙØ© Ø¬Ø¯ÙØ¯Ø©"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/65 p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",className:"text-sm font-bold text-black/70",children:"ÙØ§ ØªÙØ¬Ø¯ جÙÙØ© ÙØ´Ø·Ø©. ØªÙØ·Ø±Ø Ø§ÙØ¬ÙÙØ© ÙÙ Ø«ÙØ§Ø« Ù
راØÙ: ÙÙØ§Ø´ ÙØµÙØ±Ø ØªØµÙÙØªØ Ø«Ù
ÙØ´Ù اÙÙØ±Ø§Ø± ÙØªÙØ³ÙØ±Ù."}),t&&s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:59",type:"button",onClick:h,disabled:c.isPending,className:"memphis-btn mt-3 bg-black px-4 py-2 text-sm font-black text-white disabled:opacity-50",children:"ابدأ Ù
ÙÙÙ ÙØ±Ø§Ø± ÙÙÙØ±ÙÙ"})]})]})}const JOe=["ð","ð¥","ð","ðª","â"];function e7e({teamId:e,weekKey:t,members:a,currentUserId:n}){const r=J.useUtils(),[i,o]=P.useState({}),l=J.teams.achievementSocial.useQuery({teamId:e,weekKey:t},{enabled:!!(e&&t),refetchInterval:1e4}
971),c=J.teams.weeklySupporter.useQuery({teamId:e,weekKey:t},{enabled:!!(e&&t),refetchInterval:15e3}),d=J.teams.commentAchievement.useMutation({onSuccess:(b,y)=>{o(w=>({...w,[y.targetUserId]:""})),re.success("ÙØµÙت Ø±Ø³Ø§ÙØªÙ Ø§ÙØªØ´Ø¬ÙØ¹ÙØ© Ø¥Ù٠زÙ
ÙÙÙ"),r.teams.achievementSocial.invalidate({teamId:e,weekKey:t})},onError:b=>re.error(b.message)}),m=J.teams.reactToAchievement.useMutation({onSuccess:()=>r.teams.achievementSocial.invalidate({teamId:e,weekKey:t}),onError:b=>re.error(b.message)}),f=J.teamMessages.send.useMutation({onSuccess:()=>{re.success("تÙ
ت Ù
Ø´Ø§Ø±ÙØ© Ø§ÙØªØ´Ø¬Ùع Ù٠رسائ٠اÙÙØ±ÙÙ"),r.teamMessages.list.invalidate({teamId:e,limit:50})},onError:b=>re.error(b.message)}),h=l.data?.reactions??[],x=l.data?.comments??[];return s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:99",className:"memphis-card mb-6 bg-memphis-peach p-5","aria-labelledby":"team-achievement-social-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:100",className:"mb-4 flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:100",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:100",id:"team-achievement-social-title",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:100",className:"h-5 w-5"})," Ø´Ø¬ÙØ¹ Ø¥ÙØ¬Ø§Ø²Ø§Øª زÙ
ÙØ§Ø¦Ù"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:100",className:"mt-1 text-sm font-bold text-black/65",children:"ØªÙØ§Ø¹Ù Ø³Ø±ÙØ¹ Ø£Ù ÙÙÙ
Ø© ÙØµÙرة ÙØ¯ تÙ
ÙØ زÙ
ÙÙÙ Ø¯ÙØ¹Ø© Ø¬Ø¯ÙØ¯Ø© ÙÙØªØ¹ÙÙÙ
."})]}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:100",className:"memphis-badge-pill bg-white text-black",children:"ØªØØ¯ÙØ« تÙÙØ§Ø¦Ù"})]}),c.data?.supporter&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:101",className:"mb-4 flex flex-wrap items-center justify-between gap-3 rounded-xl border-2 border-black bg-memphis-yellow p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:101",className:"flex items-center gap-2",children:[s.jsx(Gs,{"data-loc":"client/src/pages/TeamDetailPage.tsx:101",className:"h-5 w-5"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:101",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:101",className:"text-xs font-black text-black/60",children:"داعÙ
اÙÙØ±ÙÙ ÙÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:101",className:"font-black text-black",children:c.data.supporter.name})]})]}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:101",className:"text-xs font-black text-black",children:[c.data.supporter.commentCount," تعÙÙÙØ§Øª · ",c.data.supporter.reactionCount," ØªÙØ§Ø¹Ùات"]})]}),l.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:102",className:"h-24 animate-pulse rounded-xl border-2 border-black/20 bg-white/60"}):s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:102",className:"grid gap-3 md:grid-cols-2",children:a.map(b=>{const y=h.filter(k=>k.targetUserId===b.userId),w=x.filter(k=>k.targetUserId===b.userId).slice(0,2),j=JOe.map(k=>({emoji:k,count:y.filter(D=>D.emoji===k).length,active:y.some(D=>D.emoji===k&&D.userId===n)})),N=i[b.userId]??"";return s.jsxs("article",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"rounded-xl border-2 border-black bg-white p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",children:[s.jsx("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"font-black text-black",children:b.name}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"mt-1 text-xs font-bold text-black/60",children:[b.activityCount," Ø¥ÙØ¬Ø§Ø² ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"]})]}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"text-2xl",children:b.badges[0]?.icon??"ð
"})]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"mt-3 flex flex-wrap gap-1.5",children:j.map(({emoji:k,count:D,active:C})=>s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",type:"button",disabled:m.isPending||b.userId===n,onClick:()=>m.mutate({teamId:e,targetUserId:b.userId,weekKey:t,emoji:k}),"aria-label":`ØªÙØ§Ø¹Ù ${k} Ù
ع Ø¥ÙØ¬Ø§Ø² ${b.name}`,"aria-pressed":C,className:`rounded-full border-2 border-black px-2 py-1 text-xs font-black transition-transform hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-45 ${C?"bg-memphis-yellow shadow-memphis":"bg-white"}`,children:[k," ",D||""]},k))}),w.length>0&&s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"mt-3 space-y-1.5",children:w.map(k=>s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"rounded-lg border border-black/20 bg-memphis-mint/35 px-2.5 py-2 text-xs font-bold text-black",children:[s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"font-black",children:[k.senderName??"زÙ
ÙÙ",":"]}
971)," ",k.content]}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",type:"button",onClick:()=>f.mutate({teamId:e,message:`ð ØªØ´Ø¬ÙØ¹ ÙÙ ${b.name}: ${k.content}`,emoji:"ð"}),disabled:f.isPending,className:"mt-1.5 text-[11px] font-black underline decoration-2 underline-offset-2 disabled:opacity-50",children:"Ø±Ø¯Ù Ø¨Ø§ÙØªØ´Ø¬Ùع Ù٠رسائ٠اÙÙØ±ÙÙ"})]},k.id))}),b.userId!==n&&s.jsxs("form",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"mt-3 flex gap-2",onSubmit:k=>{k.preventDefault(),N.trim().length>=2&&d.mutate({teamId:e,targetUserId:b.userId,weekKey:t,content:N.trim()})},children:[s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",value:N,onChange:k=>o(D=>({...D,[b.userId]:k.target.value})),maxLength:280,placeholder:`Ø§ÙØªØ¨ ØªØ´Ø¬ÙØ¹Ø§Ù ÙÙ ${b.name}`,className:"min-w-0 flex-1 rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-bold text-black placeholder:text-black/35"}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",type:"submit",disabled:N.trim().length<2||d.isPending,className:"rounded-lg border-2 border-black bg-black px-3 py-2 text-xs font-black text-white disabled:opacity-50",children:s.jsx(p2,{"data-loc":"client/src/pages/TeamDetailPage.tsx:107",className:"h-3.5 w-3.5"})})]})]},b.userId)})})]})}function t7e({teamId:e,weekKey:t}){const a=J.teams.weeklyStars.useQuery({teamId:e,weekKey:t},{enabled:!!(e&&t),refetchInterval:15e3}),n=a.data?.stars??[],r=["bg-memphis-yellow","bg-memphis-lilac","bg-memphis-mint"];return s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:116",className:"memphis-card mb-6 !bg-black p-5 text-white","aria-labelledby":"weekly-stars-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:117",className:"mb-4 flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:117",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:117",id:"weekly-stars-title",className:"flex items-center gap-2 text-lg font-black",children:[s.jsx(Sn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:117",className:"h-5 w-5 text-memphis-yellow"})," ÙØ¬ÙÙ
اÙÙØ±ÙÙ ÙÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:117",className:"mt-1 text-sm font-bold text-white/70",children:"ØªØ±ØªÙØ¨ ÙØ¬Ù
ع Ø¥ÙØ¬Ø§Ø²Ø§Øª Ø§ÙØªØ¹ÙÙÙ
Ù
ع ÙÙÙ
ات Ø§ÙØ¯Ø¹Ù
ÙØ§ÙØªÙØ§Ø¹Ùات Ø§ÙØ¥ÙØ¬Ø§Ø¨ÙØ©."})]}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:117",className:"rounded-full border border-white/40 px-3 py-1 text-xs font-black text-memphis-yellow",children:"ÙØªØ¬Ø¯Ø¯ Ù
ع ÙÙ ØªÙØ§Ø¹Ù"})]}),a.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"h-24 animate-pulse rounded-xl bg-white/15"}):n.length?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"grid gap-3 md:grid-cols-3",children:n.slice(0,3).map((i,o)=>s.jsxs("article",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:`rounded-xl border-2 border-black p-4 text-black ${r[o]??"bg-white"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",children:[s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"text-xs font-black text-black/65",children:["#",o+1," · ",i.title]}),s.jsx("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"mt-1 font-black",children:i.name})]}),o===0?s.jsx(Gs,{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"h-6 w-6"}):s.jsx(Sn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"h-6 w-6"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"mt-3 grid grid-cols-2 gap-2 text-xs font-black",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"rounded-lg border border-black/25 bg-white/60 px-2 py-1",children:[i.activityCount," Ø¥ÙØ¬Ø§Ø²"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"rounded-lg border border-black/25 bg-white/60 px-2 py-1",children:[i.supportScore," دعÙ
"]})]}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"mt-3 text-xs font-black",children:[i.engagementScore," ÙÙØ·Ø© Ù
Ø´Ø§Ø±ÙØ©"]})]},i.userId))}):s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:118",className:"rounded-xl border-2 border-dashed border-white/35 bg-white/10 p-4 text-sm font-bold text-white/75",children:"Ø§Ø¨Ø¯Ø£ÙØ§ درØ
971³Ø§ÙØ ØªØØ¯ÙØ§ÙØ Ø£Ù ØªØ´Ø¬ÙØ¹Ø§Ù ÙØ²Ù ÙÙ ØØªÙ ØªØ¸ÙØ± ÙØ¬ÙÙ Ø§ÙØ£Ø³Ø¨Ùع ÙÙØ§."})]})}function a7e({teamId:e,weekKey:t}){const a=J.teams.weeklySupportSummary.useQuery({teamId:e,weekKey:t},{enabled:!!(e&&t),refetchInterval:15e3}),n=a.data,r=async()=>{if(!n||n.totalCheers===0)return;const i=`Ù ÙØ®Øµ Ø¯Ø¹Ù ÙØ±ÙÙÙØ§ ÙÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع ⨠972${n.totalCheers} ØªÙØ§Ø¹Ù ØªØ´Ø¬ÙØ¹Ù Ù Ù ${n.activeSupporters} أعضاء 973Ø¯Ø§Ø¹Ù Ø§ÙØ£Ø³Ø¨Ùع: ${n.supporter?.name??"ÙØ±ÙباÙ"}${n.mostCelebrated?` 974Ø£ÙØ«Ø± Ø¥ÙØ¬Ø§Ø² ØØ¸Ù Ø¨Ø§ÙØ¯Ø¹Ù : ${n.mostCelebrated.name}`:""}`;try{navigator.share?await navigator.share({title:"Ù ÙØ®Øµ دع٠اÙÙØ±ÙÙ",text:i}):(await navigator.clipboard.writeText(i),re.success("ØªÙ ÙØ³Ø® Ù ÙØ®Øµ دع٠اÙÙØ±ÙÙ ÙÙÙ Ø´Ø§Ø±ÙØ©"))}catch(o){o?.name!=="AbortError"&&re.error("تعذر Ù Ø´Ø§Ø±ÙØ© اÙÙ ÙØ®Øµ Ø§ÙØ¢Ù")}};return a.isLoading?s.jsx("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:135",className:"memphis-card mb-6 h-36 animate-pulse bg-memphis-mint/40","aria-label":"جار٠إعداد Ù ÙØ®Øµ Ø§ÙØ¯Ø¹Ù Ø§ÙØ£Ø³Ø¨ÙعÙ"}):n?s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:137",className:"memphis-card mb-6 bg-memphis-mint p-5","aria-labelledby":"weekly-support-summary-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:138",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:138",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:138",id:"weekly-support-summary-title",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:138",className:"h-5 w-5"})," Ù ÙØ®Øµ دع٠اÙÙØ±ÙÙ ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:138",className:"mt-1 text-sm font-bold text-black/65",children:"ÙÙØ·Ø© تÙÙØ§Ø¦ÙØ© ÙØ£Ø¬Ù Ù ÙØØ¸Ø§Øª Ø§ÙØªØ´Ø¬Ùع بÙ٠أعضاء اÙÙØ±ÙÙ."})]}),n.totalCheers>0&&s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:138",type:"button",onClick:()=>void r(),className:"memphis-btn flex items-center gap-2 bg-black px-3 py-2 text-xs font-black text-white",children:[s.jsx(Lr,{"data-loc":"client/src/pages/TeamDetailPage.tsx:138",className:"h-4 w-4"})," Ù Ø´Ø§Ø±ÙØ© اÙÙ ÙØ®Øµ"]})]}),n.totalCheers===0?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"mt-4 rounded-xl border-2 border-dashed border-black/30 bg-white/65 p-4 text-sm font-bold text-black/70",children:"ÙÙ ØªÙØ³Ø¬ÙÙÙ ÙØØ¸Ø§Øª دع٠بعد ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع. Ø§Ø¨Ø¯Ø£ÙØ§ Ø¨ØªØ´Ø¬ÙØ¹ Ø¥ÙØ¬Ø§Ø² ÙØ§ØØ¯ ÙÙØªÙÙÙÙ Ù ÙØ®Øµ اÙÙØ±ÙÙ."}):s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"mt-4 grid gap-3 md:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"rounded-xl border-2 border-black bg-white p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"text-xs font-black text-black/60",children:"Ø·Ø§ÙØ© Ø§ÙØªØ´Ø¬Ùع"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"mt-1 text-2xl font-black text-black",children:n.totalCheers}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"text-xs font-bold text-black/60",children:"تعÙÙÙ ÙØªÙØ§Ø¹Ù Ø¥ÙØ¬Ø§Ø¨Ù"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"rounded-xl border-2 border-black bg-memphis-yellow p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"text-xs font-black text-black/60",children:"Ø¯Ø§Ø¹Ù Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"mt-1 font-black text-black",children:n.supporter?.name??"ÙØ±ÙباÙ"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"text-xs font-bold text-black/60",children:n.supporter?`${n.supporter.commentCount} تعÙÙÙØ§Øª Ù${n.supporter.reactionCount} ØªÙØ§Ø¹Ùات`:"Ø¨Ø§ÙØªØ¸Ø§Ø± Ø£ÙÙ ØªØ´Ø¬ÙØ¹"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"rounded-xl border-2 border-black bg-white p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"text-xs font-black text-black/60",children:"ÙØØ¸Ø© Ø§ØØªÙاء Ù Ù ÙØ²Ø©"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"mt-1 font-black text-black",children:n.mostCelebrated?.name??"اÙÙØ±ÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:139",className:"text-xs font-bold text-black/60",children:n.mostCelebrated?`${n.mostCelebrated.cheerCount} ØªØ´Ø¬ÙØ¹Ø§Øª`:"Ø§Ø³ØªÙ Ø±ÙØ§ ÙÙ Ø¯Ø¹Ù Ø§ÙØ²Ù ÙØ§Ø¡"})]})]}),n.featuredComment&&s.jsxs("blockquote",{"data-loc":"client/src/pages/TeamDetailPage.tsx:140",className:"mt-3 rounded-xl border-2 border-black bg-white/80 p-3 text-sm font-bold text-black",children:["â",n.featuredComment.content,"â ",s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:140",className:"mr-1 text-xs",children:["â ",n.featuredComment.senderName," ØªØ´Ø¬ÙØ¹Ø§Ù ÙÙ ",n.featuredComment.targetName]})]})]}):null}function n7e(e){const t=e?.totalCheers??0;return t>=16?{emoji:"ð",label:"Ø£Ø³Ø¨ÙØ¹ Ø§Ø³ØªØ«ÙØ§Ø¦Ù",className:"bg-memphis-yellow"}:t>=8?{emoji:"ð¥",label:"Ø·Ø§ÙØ© ÙØ±Ù٠عاÙÙØ©",className:"bg-memphis-peach"}:{emoji:"ð±",label:"Ø®Ø·ÙØ§Øª دع٠ج٠ÙÙØ©",className:"bg-memphis-mint"}}function vee({snapshot:e,weekKey:t,pinned:a=!1,customCoverUrl:n}){const r=n7e(e);return s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:161",className:`relative overflow-hidden rounded-xl border-2 border-black p-4 ${n?"bg-black":r.className}`,style:n?{backgroundImage:`linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.12)), url(${n})`,backgroundPosition:"center",backgroundSize:"cover"}:void 0,children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:162",className:"absolute -left-3 -top-4 text-6xl opacity-20",children:"â¦"}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:162",className:"absolute -bottom-3 right-3 text-5xl opacity-20",children:"â¥"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:163",className:`relative flex items-center justify-between gap-3 ${n?"text-white":"text-black"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:163",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:163",className:`text-xs font-black ${n?"text-white/80":"text-black/65"}`,children:"ØºÙØ§Ù Ù ÙØ®Øµ Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:163",className:"mt-1 text-lg font-black",children:n?"ð¼ï¸ ØºÙØ§Ù اÙÙØ±Ù٠اÙ٠خصص":`${r.emoji} ${r.label}`}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:163",className:`mt-1 text-xs font-bold ${n?"text-white/85":"text-black/70"}`,children:["Ø£Ø³Ø¨ÙØ¹ ",new Date(`${t}T00:00:00`).toLocaleDateString("ar-SA",{day:"numeric",month:"long"})]})]}),a&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:163",className:"summary-pinned-badge rounded-full border-2 border-black bg-memphis-yellow px-3 py-1 text-xs font-black text-black",children:"â Ù ÙØ®Øµ ٠ثبت"})]})]})}function s7e({teamId:e}){const t=J.teams.pinnedWeeklySupportSummary.useQuery({teamId:e},{enabled:!!e,refetchInterval:3e4});if(!t.data)return null;const a=t.data,n=a.snapshot;return s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:172",className:"summary-pinned-entrance memphis-card mb-6 bg-white p-4","aria-labelledby":"pinned-weekly-summary-title",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:172",id:"pinned-weekly-summary-title",className:"mb-3 flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(Gs,{"data-loc":"client/src/pages/TeamDetailPage.tsx:172",className:"h-5 w-5"})," Ù ÙØ®Øµ Ù Ù ÙØ² ٠٠اÙÙØ±ÙÙ"]}),s.jsx(vee,{"data-loc":"client/src/pages/TeamDetailPage.tsx:172",snapshot:n,weekKey:a.weekKey,pinned:!0,customCoverUrl:a.customCoverUrl}),a.captainNote&&s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:172",className:"mt-3 rounded-lg bg-memphis-lilac p-3 text-sm font-black text-black",children:["ÙÙÙ Ø© اÙÙØ§Ø¦Ø¯: ",a.captainNote]})]})}function r7e({teamId:e,currentWeekKey:t,isCaptain:a,canManageCovers:n}
974){const r=J.useUtils(),i=J.teams.weeklySupportArchive.useQuery({teamId:e,limit:12},{enabled:!!e}),o=J.teams.weeklySummaryNotificationPreference.useQuery(),[l,c]=P.useState(t),[d,m]=P.useState(""),[f,h]=P.useState(""),[x,b]=P.useState("all"),[y,w]=P.useState("recent"),[j,N]=P.useState(""),k=J.teams.updateWeeklySummaryNotificationPreference.useMutation({onSuccess:()=>r.teams.weeklySummaryNotificationPreference.invalidate()}),D=J.teams.updateWeeklySupportCaptainNote.useMutation({onSuccess:()=>{re.success("تÙ
ØÙظ ÙÙÙ
Ø© Ø§ÙØªÙØ¯ÙØ± Ø§ÙØ£Ø³Ø¨ÙØ¹ÙØ©"),r.teams.weeklySupportArchive.invalidate({teamId:e,limit:12})}}),C=J.teams.setWeeklySupportSummaryPinned.useMutation({onSuccess:()=>{re.success("تÙ
ØªØØ¯ÙØ« اÙÙ
ÙØ®Øµ اÙÙ
Ù
ÙØ²"),r.teams.weeklySupportArchive.invalidate({teamId:e,limit:12}),r.teams.pinnedWeeklySupportSummary.invalidate({teamId:e})}}),S=J.teams.weeklySupportSummaryNominationCounts.useQuery({teamId:e},{enabled:!!e}),A=J.teams.myWeeklySupportSummaryNominations.useQuery({teamId:e},{enabled:!!e}),E=J.teams.toggleWeeklySupportSummaryNomination.useMutation({onSuccess:X=>{re.success(X.active?"تÙ
ØªØ±Ø´ÙØ اÙÙ
ÙØ®Øµ ÙÙØ§Ø¦Ø¯ اÙÙØ±ÙÙ":"تÙ
Ø¥ÙØºØ§Ø¡ ØªØ±Ø´ÙØ اÙÙ
ÙØ®Øµ"),S.refetch(),A.refetch()}}),R=J.teams.uploadWeeklySupportSummaryCover.useMutation({onSuccess:()=>{re.success("تÙ
Ø±ÙØ¹ ØºÙØ§Ù اÙÙ
ÙØ®Øµ Ø¨ÙØ¬Ø§Ø"),r.teams.weeklySupportArchive.invalidate({teamId:e,limit:12}),r.teams.pinnedWeeklySupportSummary.invalidate({teamId:e})}}),F=J.teams.weeklySupportCoverGallery.useQuery({teamId:e},{enabled:!!e&&n}),I=J.teams.reuseWeeklySupportSummaryCover.useMutation({onSuccess:()=>{re.success("تÙ
ت إعادة استخداÙ
Ø§ÙØºÙا٠ÙÙ ÙØ°Ø§ اÙÙ
ÙØ®Øµ"),r.teams.weeklySupportArchive.invalidate({teamId:e,limit:12}),r.teams.pinnedWeeklySupportSummary.invalidate({teamId:e}),F.refetch()}}),H=J.teams.clearWeeklySupportSummaryCover.useMutation({onSuccess:()=>{re.success("تÙ
ت استعادة Ø§ÙØºÙØ§Ù Ø§ÙØ¯ÙÙØ§Ù
ÙÙÙ Ø§ÙØ§ÙتراضÙ"),r.teams.weeklySupportArchive.invalidate({teamId:e,limit:12}),r.teams.pinnedWeeklySupportSummary.invalidate({teamId:e})}}),_=J.teams.updateWeeklySupportSummaryCoverTags.useMutation({onSuccess:()=>{re.success("تÙ
ØÙظ ÙØ³ÙÙ
Ø§ÙØºÙاÙ"),r.teams.weeklySupportArchive.invalidate({teamId:e,limit:12}),F.refetch()}}),V=i.data??[],W=V.find(X=>X.weekKey===l),B=J.teams.weeklySupportSummaryNominees.useQuery({teamId:e,summaryId:W?.id??0},{enabled:!!W?.id&&a}),K=J.teams.weeklySupportCoverHistory.useQuery({teamId:e,summaryId:W?.id??0},{enabled:!!W?.id&&n}),ae=J.teams.weeklySupportCoverTagSuggestions.useQuery({teamId:e,weekKey:l},{enabled:!!W?.id&&n}),$=W?.snapshot,Z=Array.from(new Set((F.data??[]).map(X=>X.weekKey.slice(0,7)))),O=P.useMemo(()=>VOe(F.data??[]),[F.data]),Y=(F.data??[]).filter(X=>(x==="all"||X.weekKey.startsWith(x))&&(!f.trim()||X.weekKey.includes(f.trim())||X.tags?.includes(f.trim()))).sort((X,ne)=>y==="popular"?(ne.tags?.split(",").reduce((ge,me)=>ge+(O.get(me.trim())??0),0)??0)-(X.tags?.split(",").reduce((ge,me)=>ge+(O.get(me.trim())??0),0)??0)||Number(new Date(ne.createdAt))-Number(new Date(X.createdAt)):Number(new Date(ne.createdAt))-Number(new Date(X.createdAt))),Q=W?S.data?.find(X=>X.summaryId===W.id)?.count??0:0,U=!!(W&&A.data?.some(X=>X.summaryId===W.id)),oe=X=>{const ne=V.find(ge=>ge.weekKey===X);c(X),m(ne?.captainNote??""),N(ne?.coverTags??"")};return P.useEffect(()=>{N(W?.coverTags??"")},[W?.id,W?.coverTags]),s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:215",className:"memphis-card mb-6 bg-memphis-lilac p-5","aria-labelledby":"weekly-support-archive-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:216",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:216",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:216",id:"weekly-support-archive-title",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(xi,{"data-loc":"client/src/pages/TeamDetailPage.tsx:216",className:"h-5 w-5"})," أرشÙ٠دعÙ
اÙÙØ±ÙÙ"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:216",className:"mt-1 text-sm font-bold text-black/65",children:"استعرض ÙØØ¸Ø§Øª Ø§ÙØªØ´Ø¬Ùع Ø§ÙØ³Ø§Ø¨ÙØ© ÙØ§ØØªÙظ بÙÙÙ
Ø© ØªÙØ¯Ùر تÙÙ٠باÙÙØ±ÙÙ."})]}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:216",type:"button",onClick:()=>k.mutate({enabled:!o.data}),disabled:o.isLoading||k.isPending,className:`rounded-full border-2 border-black px-3 py-2 text-xs font-black disabled:opacity-50 ${o.data?"bg-memphis-mint":"bg-white"}`,children:o.data?"إشعار اÙÙ
ÙØ®Øµ: Ù
ÙØ¹ÙÙ":"إشعار اÙÙ
ÙØ®Øµ: Ù
تÙÙÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:217",className:"mt-4 flex gap-2 overflow-x-auto pb-1",children:[V.map(X=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:217",type:"button",onClick:()=>oe(X.weekKey),className:`shrink-0 rounded-lg border-2 border-black px-3 py-2 text-xs font-black ${l===X.weekKey?"bg-memphis-yellow shadow-memphis":"bg-white"}`,children:new Date(`${X.weekKey}T00:00:00`).toLocaleDateString("ar-SA",{day:"numeric",month:"short"})},X.id)),V.length===0&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:217",className:"text-sm font-bold text-black/60",children:"Ø³ÙØ¸Ùر Ø§ÙØ£Ø±Ø´Ù٠تÙÙØ§Ø¦Ùا٠بعد Ø£ÙÙ ÙÙØ§ÙØ© Ø£Ø³Ø¨ÙØ¹ ÙÙÙØ§ ØªØ´Ø¬ÙØ¹."})]}),n&&F.data?.length?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:218",className:"mt-3 flex justify-end",children:s.jsxs("select",{"data-loc":"client/src/pages/TeamDetailPage.tsx:218",value:y,onChange:X=>w(X.target.value),className:"rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-black text-black",children:[s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:218",value:"recent",children:"ØªØ±ØªÙØ¨: Ø§ÙØ£ØØ¯Ø« Ø£ÙÙØ§Ù"}),s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:218",value:"popular",children:"ØªØ±ØªÙØ¨: اÙÙØ³ÙÙ
Ø§ÙØ£Ùثر استخداÙ
اÙ"})]})}):null,W&&$&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"mt-4 space-y-3 rounded-xl border-2 border-black bg-white p-4",children:[s.jsx(vee,{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",snapshot:$,weekKey:W.weekKey,pinned:W.isPinned,customCoverUrl:W.customCoverUrl}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"grid gap-3 sm:grid-cols-3",children:[s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"text-sm font-black text-black",children:[$.totalCheers," ØªØ´Ø¬ÙØ¹Ø§Øª"]}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"text-sm font-black text-black",children:["Ø§ÙØ¯Ø§Ø¹Ù
: ",$.supporter?.name??"â"]}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"text-sm font-black text-black",children:["Ø§ØØªÙاء: ",$.mostCelebrated?.name??"â"]})]}),$.featuredComment&&s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"rounded-lg bg-memphis-mint/30 p-3 text-sm font-bold text-black",children:["â",$.featuredComment.content,"â â ",$.featuredComment.senderName]}),W.captainNote&&!a&&s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"border-s-4 border-black ps-3 text-sm font-black text-black",children:["ÙÙÙ
Ø© اÙÙØ§Ø¦Ø¯: ",W.captainNote]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"flex flex-wrap gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",type:"button",onClick:()=>E.mutate({teamId:e,summaryId:W.id}),disabled:E.isPending,className:`rounded-lg border-2 border-black px-3 py-2 text-xs font-black disabled:opacity-50 ${U?"bg-memphis-mint":"bg-white"}`,children:[U?"â Ø±Ø´ØØª ÙØ°Ø§ اÙÙ
ÙØ®Øµ":"â Ø±Ø´ÙØ ÙÙØªØ«Ø¨Ùت"," (",Q,")"]}),a&&s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",type:"button",onClick:()=>C.mutate({teamId:e,weekKey:W.weekKey,pinned:!W.isPinned}),disabled:C.isPending,className:`memphis-btn px-4 py-2 text-xs font-black disabled:opacity-50 ${W.isPinned?"bg-white":"bg-memphis-yellow"}`,children:W.isPinned?"Ø¥ÙØºØ§Ø¡ ØªØ«Ø¨ÙØª اÙÙ
ÙØ®Øµ":"ØªØ«Ø¨ÙØª أعÙÙ ØµÙØØ© اÙÙØ±ÙÙ"})]}),a&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"space-y-3",children:[s.jsx(Rq,{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",draftKey:`team-summary-cover:${e}:${W.weekKey}`,draftTargets:V.filter(X=>X.weekKey!==W.weekKey).map(X=>({weekKey:X.weekKey,draftKey:`team-summary-cover:${e}:${X.weekKey}`,label:new Date(`${X.weekKey}T00:00:00`).toLocaleDateString("ar-SA",{day:"numeric",month:"long"})})),onDraftCopied:X=>{oe(X),re.success("تÙ
ÙØ³Ø® اÙÙ
Ø³ÙØ¯Ø© Ø¥ÙÙ Ø§ÙØ£Ø³Ø¨Ùع اÙÙ
ختار")},onReady:X=>R.mutate({teamId:e,weekKey:W.weekKey,dataUrl:X}),isUploading:R.isPending}),W.customCoverUrl&&s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",type:"button",onClick:()=>H.mutate({teamId:e,weekKey:W.weekKey}),disabled:H.isPending,className:"rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-black disabled:opacity-50",children:H.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ§Ø³ØªØ¹Ø§Ø¯Ø©â¦":"استعادة Ø§ÙØºÙØ§Ù Ø§ÙØ¯ÙÙØ§Ù
ÙÙÙ Ø§ÙØ§ÙتراضÙ"}),F.data?.length?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"rounded-xl border-2 border-black bg-memphis-mint/25 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"text-xs font-black text-black",children:"Ù
عرض أغÙÙØ© اÙÙØ±ÙÙ Ø§ÙØ³Ø§Ø¨ÙØ©"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"mt-2 grid gap-2 sm:grid-cols-2",children:[s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",value:f,onChange:X=>h(X.target.value),placeholder:"Ø§Ø¨ØØ« Ø¨ØªØ§Ø±ÙØ® Ø§ÙØ£Ø³Ø¨Ùع أ٠اÙÙØ³Ù
",className:"rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-bold text-black"}),s.jsxs("select",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",value:x,onChange:X=>b(X.target.value),className:"rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-bold text-black",children:[s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",value:"all",children:"ÙÙ Ø§ÙØ´ÙÙØ±"}),Z.map(X=>s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",value:X,children:new Date(`${X}-01T00:00:00`).toLocaleDateString("ar-SA",{month:"long",year:"numeric"})},X))]})]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"mt-2 grid grid-cols-3 gap-2 sm:grid-cols-4",children:Y.map(X=>s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",type:"button",onClick:()=>I.mutate({teamId:e,sourceSummaryId:X.id,targetWeekKey:W.weekKey}),className:"overflow-hidden rounded-lg border-2 border-black bg-white text-start text-[10px] font-black text-black",children:[s.jsx("img",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",src:X.url,alt:`ØºÙØ§Ù Ø£Ø³Ø¨ÙØ¹ ${X.weekKey}`,className:"aspect-[16/7] w-full object-cover"}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"flex flex-wrap gap-1 p-1",children:yT(X.tags).length?yT(X.tags).map(ne=>s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"rounded-full border border-black/25 bg-memphis-yellow/70 px-1.5 py-0.5",children:[ne," ",s.jsxs("strong",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",children:["(",O.get(ne)??0,")"]})]},ne)):s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",children:"إعادة Ø§ÙØ§Ø³ØªØ®Ø¯Ø§Ù
"})})]},X.id))}),Y.length===0&&s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"mt-2 text-xs font-bold text-black/65",children:"ÙØ§ ØªÙØ¬Ø¯ أغÙÙØ© تØ
974·Ø§Ø¨Ù Ø§ÙØ¨ØØ« Ø£Ù Ø§ÙØ´Ùر اÙÙ
ختار."})]}):null,B.data?.length?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"rounded-xl border-2 border-black bg-memphis-lilac/25 p-3",children:[s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"text-xs font-black text-black",children:["أعضاء Ø±Ø´ÙØÙØ§ ÙØ°Ø§ اÙÙ
ÙØ®Øµ (",B.data.length,")"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"mt-1 text-sm font-bold text-black",children:B.data.map(X=>X.name).join("Ø ")})]}):s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:219",className:"rounded-xl border-2 border-dashed border-black p-3 text-xs font-bold text-black/65",children:"ÙÙ
ÙØ±Ø´ÙØ Ø£Ù Ø¹Ø¶Ù ÙØ°Ø§ اÙÙ
ÙØ®Øµ بعد."})]})]}),n&&W&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"mt-4 grid gap-3 lg:grid-cols-2",children:[s.jsxs("form",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"rounded-xl border-2 border-black bg-memphis-peach/35 p-3",onSubmit:X=>{X.preventDefault(),_.mutate({teamId:e,summaryId:W.id,tags:j})},children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"text-sm font-black text-black",children:"ÙØ³ÙÙ
Ø§ÙØºÙاÙ"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"mt-1 text-xs font-bold text-black/65",children:"Ø§ÙØµÙ اÙÙØ³ÙÙ
Ø¨ÙØ§ØµÙØ©Ø Ù
Ø«Ù: ÙØ±ÙÙØ Ø¥ÙØ¬Ø§Ø²Ø ÙØ¹Ø§ÙÙØ©."}),ae.data?.length?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"mt-2 flex flex-wrap gap-1",children:ae.data.map(X=>s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",type:"button",onClick:()=>N(ne=>Array.from(new Set(ne.split(",").map(ge=>ge.trim()).filter(Boolean).concat(X))).join(", ")),className:"rounded-full border border-black bg-memphis-yellow px-2 py-1 text-[10px] font-black",children:["+ ",X]},X))}):null,s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"mt-2 flex flex-col gap-2 sm:flex-row",children:[s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",value:j,onChange:X=>N(X.target.value),maxLength:500,placeholder:"Ù
ÙØ¶ÙØ¹Ø ÙÙØ¹ Ø§ÙØØ¯Ø«",className:"min-w-0 flex-1 rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black"}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",type:"submit",disabled:_.isPending,className:"memphis-btn bg-white px-4 py-2 text-xs font-black disabled:opacity-50",children:"ØÙظ اÙÙØ³ÙÙ
"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"rounded-xl border-2 border-black bg-white p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"text-sm font-black text-black",children:"سج٠تعدÙÙ Ø§ÙØºÙاÙ"}),K.data?.length?s.jsx("ul",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"mt-2 space-y-1 text-xs font-bold text-black/70",children:K.data.slice(0,4).map(X=>s.jsxs("li",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",children:["⢠",X.actorName??"ÙØ§Ø¦Ø¯ اÙÙØ±ÙÙ"," â ",X.action==="uploaded"?"Ø±ÙØ¹ ØºÙØ§ÙاÙ":X.action==="reused"?"أعاد استخداÙ
ØºÙØ§Ù":X.action==="restored"?"استعاد Ø§ÙØºÙØ§Ù Ø§ÙØ¯ÙÙØ§Ù
ÙÙÙ":"عدÙ٠اÙÙØ³ÙÙ
"," ÙÙ ",new Date(X.createdAt).toLocaleDateString("ar-SA")]},X.id))}):s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:220",className:"mt-2 text-xs font-bold text-black/65",children:"Ø³ÙØ¸Ùر Ø³Ø¬Ù Ø§ÙØªØ¹Ø¯ÙÙØ§Øª ÙÙØ§ بعد Ø£Ù٠تغÙÙØ± ÙÙØºÙاÙ."})]})]}),n&&!a&&W&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:221",className:"mt-4 rounded-xl border-2 border-black bg-memphis-mint/25 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:221",className:"mb-2 text-xs font-black text-black",children:"تعدÙÙ Ø§ÙØºÙØ§Ù Ø¨ØµÙØ§ØÙØ© Ù
ØØ±Ø± Ø§ÙØ£ØºÙÙØ©"}),s.jsx(Rq,{"data-loc":"client/src/pages/TeamDetailPage.tsx:221",draftKey:`team-summary-cover:${e}:${W.weekKey}`,onReady:X=>R.mutate({teamId:e,weekKey:W.weekKey,dataUrl:X}),isUploading:R.isPending}),W.customCoverUrl&&s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:221",type:"button",onClick:()=>H.mutate({teamId:e,weekKey:W.weekKey}),disabled:H.isPending,className:"mt-2 rounded-lg border-2 border-black bg-white px-3 py-2 text-xs font-black disabled:opacity-50",children:"استعادة Ø§ÙØºÙØ§Ù Ø§ÙØ§ÙتراضÙ"})]}),a&&s.jsxs("form",{"data-loc":"client/src/pages/TeamDetailPage.tsx:222",className:"mt-4",onSubmit:X=>{X.preventDefault(),D.mutate({teamId:e,weekKey:l,captainNote:d})},children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:222",className:"text-sm font-black text-black",children:"ÙÙÙ
Ø© ØªÙØ¯Ùر اÙÙØ§Ø¦Ø¯"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:222",className:"mt-2 flex flex-col gap-2 sm:flex-row",children:[s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:222",value:d,onChange:X=>m(X.target.value),maxLength:500,placeholder:"Ø§ÙØªØ¨ ØªÙØ¯Ùرا٠Ù
ÙØ¬Ø²Ø§Ù ÙÙ
ا ØÙÙ٠اÙÙØ±ÙÙ ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع",className:"min-w-0 flex-1 rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black"}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:222",type:"submit",disabled:D.isPending,className:"memphis-btn bg-black px-4 py-2 text-xs font-black text-white disabled:opacity-50",children:"ØÙظ Ø§ÙØªÙØ¯ÙØ±"})]})]})]})}function i7e(e){const t=new Date(e),n=new Date().getTime()-t.getTime();return n<6e4?"Ø§ÙØ¢Ù":n<36e5?`Ù
ÙØ° ${Math.floor(n/6e4)} دÙÙÙØ©`:n<864e5?`Ù
ÙØ° ${Math.floor(n/36e5)} ساعة`:t.toLocaleDateString("ar-SA")}function wT(e){const t=new Date(e).getTime()-Date.now();if(t<=0)return"Ù
ÙØªÙÙ";const a=Math.floor(t/864e5),n=Math.floor(t%864e5/36e5);return a>0?`${a} ÙÙÙ
Ù${n} ساعة`:`${n} ساعة`}function o7e({teamId:e,onClose:t,onSent:a}){const[n,r]=P.useState("سبا٠أثر Ø§ÙØ£Ø³Ø¨ÙعÙ"),[i,o]=P.useState("ÙØªÙدÙ
ÙÙ ÙØ±Ù٠تÙÙØ§Ø¦Ùا٠Ù
Ù Ø¥ÙØ¬Ø§Ø²Ø§Øª Ø£Ø¹Ø¶Ø§Ø¦Ù Ø®ÙØ§Ù ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع."),[l,c]=P.useState("âï¸"),[d,m]=P.useState("lessons"),[f,h]=P.useState(12),[x,b]=P.useState(30),[y,w]=P.useState(168),[j,N]=P.useState(null),k=J.team
974s.list.useQuery(),D=(k.data??[]).filter(E=>E.id!==e),C=J.challengeInvites.send.useMutation({onSuccess:()=>{re.success("ð¡ï¸ تÙ
Ø¥Ø±Ø³Ø§Ù Ø¯Ø¹ÙØ© Ø§ÙØªØØ¯Ù!"),a(),t()},onError:E=>re.error(E.message)}),S=["âï¸","ð","ð¯","ðª","ð¥","â¡","ð","ð","ð","ð§ ","ð","ð¤"],A=()=>{if(!n.trim())return re.error("أدخ٠عÙÙØ§Ù Ø§ÙØªØØ¯Ù");if(!j)return re.error("اختر اÙÙØ±Ù٠اÙÙ
ÙØ§Ùس");C.mutate({inviterTeamId:e,inviteeTeamId:j,challengeTitle:n.trim(),challengeDescription:i||void 0,icon:l,challengeType:d,targetValue:f,pointsRewardPerMember:x,durationHours:y})};return s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:279",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:t,children:s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:280",className:"memphis-card p-6 w-full max-w-md mx-4 relative max-h-[90vh] overflow-y-auto",onClick:E=>E.stopPropagation(),children:[s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:281",onClick:t,className:"absolute top-4 left-4 w-8 h-8 bg-black text-white rounded-full flex items-center justify-center font-black hover:bg-red-500 transition-colors",children:s.jsx(Zn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:281",className:"w-4 h-4"})}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:282",className:"flex items-center gap-3 mb-5",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:283",className:"w-12 h-12 rounded-xl bg-black flex items-center justify-center text-2xl flex-shrink-0",children:"âï¸"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:284",children:[s.jsx("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:285",className:"font-black text-xl text-black",children:"ØªØØ¯ÙÙ ÙØ±ÙÙØ§Ù آخر!"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:286",className:"text-xs font-medium text-black/50",children:"Ø£Ø±Ø³Ù Ø¯Ø¹ÙØ© ØªØØ¯ÙÙ ÙØ£Ø«Ø¨Øª تÙÙÙ ÙØ±ÙÙÙ"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:289",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:290",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:291",className:"font-black text-sm text-black mb-1 block",children:"اÙÙØ±Ù٠اÙÙ
ÙØ§Ùس *"}),k.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:293",className:"h-10 animate-pulse bg-gray-100 rounded-xl"}):D.length===0?s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:295",className:"text-sm font-bold text-red-500",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØ±Ù أخر٠Ù
ØªØ§ØØ© ØØ§ÙÙØ§Ù"}):s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:297",className:"space-y-2",children:D.map(E=>s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:299",onClick:()=>N(E.id),className:`w-full flex items-center gap-3 p-3 rounded-xl border-2 transition-all text-right ${j===E.id?"border-black bg-memphis-yellow shadow-[2px_2px_0px_black]":"border-black/30 bg-white hover:border-black"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:301",className:"text-2xl",children:E.icon??"ð"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:302",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:303",className:"font-black text-sm text-black",children:E.name}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:304",className:"text-xs text-black/40 font-medium",children:[E.memberCount," عض٠· ",E.totalPoints," ÙÙØ·Ø©"]})]}),j===E.id&&s.jsx(bn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:306",className:"w-5 h-5 text-black flex-shrink-0"})]},E.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:312",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:313",className:"font-black text-sm text-black mb-1 block",children:"Ø£ÙÙÙÙØ© Ø§ÙØªØØ¯Ù"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:314",className:"flex gap-2 flex-wrap",children:S.map(E=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:315",onClick:()=>c(E),className:`w-10 h-10 text-xl rounded-lg border-2 transition-all ${l===E?"border-black bg-memphis-yellow shadow-[2px_2px_0px_black]":"border-black/30 bg-white hover:border-black"}`,children:E},E))})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:318",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:319",className:"font-black text-sm text-black mb-1 block",children:"عÙÙØ§Ù Ø§ÙØªØØ¯Ù *"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:320",value:n,onChange:E=>r(E.target.value),placeholder:"Ù
ثاÙ: Ù
Ù ÙØ¬Ù
ع Ø£ÙØ«Ø± ÙÙØ§Ø· ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨ÙعØ",className:"memphis-input w-full px-4 py-2.5 font-bold text-sm",maxLength:200})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:322",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:323",className:"font-black text-sm text-black mb-1 block",children:"اÙÙØµÙ (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx("textarea",{"data-loc":"client/src/pages/TeamDetailPage.tsx:324",value:i,onChange:E=>o(E.target.value),placeholder:"Ø§Ø´Ø±Ø Ø´Ø±ÙØ· Ø§ÙØªØØ¯Ù...",className:"memphis-input w-full px-4 py-2.5 font-bold text-sm resize-none h-16",maxLength:300})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:326",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:327",className:"font-black text-sm text-black mb-1 block",children:"طرÙÙØ© Ø§ØØªØ³Ø§Ø¨ Ø§ÙØªÙدÙ
"}),s.jsxs("select",{"data-loc":"client/src/pages/TeamDetailPage.tsx:328",value:d,onChange:E=>m(E.target.value),className:"memphis-input w-full px-4 py-2.5 font-bold text-sm",children:[s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:329",value:"lessons",children:"Ø§ÙØ¯Ø±Ùس اÙÙ
ÙØªÙ
ÙØ©"}),s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:329",value:"challenges",children:"Ø§ÙØªØØ¯Ùات اÙÙ
ÙØªÙ
ÙØ©"}),s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:329",value:"quizzes",children:"اÙÙÙÙØ²Ø§Øª اÙÙ
ÙØªÙ
ÙØ©"}),s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:329",value:"points",children:"اÙÙÙØ§Ø· اÙÙ
ÙØªØ³Ø¨Ø©"})]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:331",className:"mt-1 text-xs font-bold text-black/55",children:"ÙØªØØ¯ÙØ« Ø§ÙØªÙدÙ
تÙÙØ§Ø¦Ùا٠Ù
Ù ÙØ´Ø§Ø· أعضاء ÙÙ ÙØ±ÙÙ."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:333",className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:334",children:[s.jsxs("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:335",className:"font-black text-xs text-black mb-1 block",children:["اÙÙØ¯Ù (",d==="points"?"ÙÙØ·Ø©":d==="lessons"?"درس":d==="quizzes"?"ÙÙÙØ²":"ØªØØ¯Ù",")"]}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:336",type:"number",value:f,onChange:E=>h(Math.max(1,parseInt(E.target.value)||100)),min:1,max:1e4,className:"memphis-input w-full px-3 py-2 font-bold text-sm"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:338",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:339",className:"font-black text-xs text-black mb-1 block",children:"Ù
ÙØ§Ùأة/عضÙ"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:340",type:"number",value:x,onChange:E=>b(Math.max(5,parseInt(E.target.value)||30)),min:5,max:500,className:"memphis-input w-full px-3 py-2 font-bold text-sm"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:342",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:343",className:"font-black text-xs text-black mb-1 block",children:"اÙÙ
دة (168 = Ø£Ø³Ø¨ÙØ¹)"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:344",type:"number",value:y,onChange:E=>w(Math.max(1,Math.min(168,parseInt(E.target.value)||72))),min:1,max:168,className:"memphis-input w-full px-3 py-2 font-bold text-sm"})]})]})]}),s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:348",onClick:A,disabled:C.isPending||!j,className:"memphis-btn bg-black text-white w-full py-3 font-black mt-5 flex items-center justify-center gap-2 disabled:opacity-50",children:[C.isPending?s.jsx(Ta,{"data-loc":"client/src/pages/TeamDetailPage.tsx:349",className:"w-4 h-4 animate-spin"}):s.jsx(ym,{"data-loc":"client/src/pages/TeamDetailPage.tsx:349",className:"w-4 h-4"}),"Ø¥Ø±Ø³Ø§Ù Ø¯Ø¹ÙØ© Ø§ÙØªØØ¯Ù"]})]})})}function l7e({teamId:e,onClose:t,onCreated:a}){const[n,r]=P.useState(""),[i,o]=P.useState(""),[l,c]=P.useState("ð"),[d,m]=P.useState(2),[f,h]=P.useState(30),[x,b]=P.useState(50),[y,w]=P.useState(7),j=J.teamChallenges.create.useMutation({onSuccess:()=>{re.success("تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØªØØ¯Ù Ø§ÙØ¬Ù
اعÙ!"),a(),t()},onError:D=>re.error(D.message)}),N=["ð","ð¯","ðª","ð¥","â¡","ð","ð","ð§","ð¥","ð","ð","ð¤"],k=()=>
974{if(!n.trim())return re.error("أدخ٠عÙÙØ§Ù Ø§ÙØªØØ¯Ù");const D=new Date(Date.now()+y*864e5).toISOString();j.mutate({teamId:e,title:n.trim(),descriptionAr:i,icon:l,targetCount:d,pointsRewardPerMember:f,bonusPoints:x,expiresAt:D})};return s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:377",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:t,children:s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:378",className:"memphis-card p-6 w-full max-w-md mx-4 relative",onClick:D=>D.stopPropagation(),children:[s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:379",onClick:t,className:"absolute top-4 left-4 w-8 h-8 bg-black text-white rounded-full flex items-center justify-center font-black hover:bg-red-500 transition-colors",children:s.jsx(Zn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:379",className:"w-4 h-4"})}),s.jsx("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:380",className:"font-black text-xl text-black mb-5",children:"Ø¥ÙØ´Ø§Ø¡ ØªØØ¯Ù٠جÙ
Ø§Ø¹Ù Ø¬Ø¯ÙØ¯"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:381",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:382",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:383",className:"font-black text-sm text-black mb-1 block",children:"Ø£ÙÙÙÙØ© Ø§ÙØªØØ¯Ù"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:384",className:"flex gap-2 flex-wrap",children:N.map(D=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:385",onClick:()=>c(D),className:`w-10 h-10 text-xl rounded-lg border-2 transition-all ${l===D?"border-black bg-memphis-yellow shadow-[2px_2px_0px_black]":"border-black/30 bg-white hover:border-black"}`,children:D},D))})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:388",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:389",className:"font-black text-sm text-black mb-1 block",children:"عÙÙØ§Ù Ø§ÙØªØØ¯Ù *"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:390",value:n,onChange:D=>r(D.target.value),placeholder:"Ù
ثاÙ: Ø£ÙÙ
Ù 3 Ø¯Ø±ÙØ³ ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع",className:"memphis-input w-full px-4 py-2.5 font-bold text-sm",maxLength:200})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:392",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:393",className:"font-black text-sm text-black mb-1 block",children:"اÙÙØµÙ (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx("textarea",{"data-loc":"client/src/pages/TeamDetailPage.tsx:394",value:i,onChange:D=>o(D.target.value),placeholder:"Ø§Ø´Ø±Ø Ø§ÙØªØØ¯Ù Ø¨Ø§ÙØªÙصÙÙ...",className:"memphis-input w-full px-4 py-2.5 font-bold text-sm resize-none h-20",maxLength:400})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:396",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:397",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:398",className:"font-black text-sm text-black mb-1 block",children:"عدد Ø§ÙØ£Ø¹Ø¶Ø§Ø¡ اÙÙ
Ø·ÙÙØ¨"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:399",type:"number",value:d,onChange:D=>m(Math.max(1,parseInt(D.target.value)||1)),min:1,max:50,className:"memphis-input w-full px-3 py-2 font-bold text-sm"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:401",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:402",className:"font-black text-sm text-black mb-1 block",children:"Ù
دة Ø§ÙØªØØ¯Ù (Ø£ÙØ§Ù
)"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:403",type:"number",value:y,onChange:D=>w(Math.max(1,parseInt(D.target.value)||7)),min:1,max:30,className:"memphis-input w-full px-3 py-2 font-bold text-sm"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:406",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:407",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:408",className:"font-black text-sm text-black mb-1 block",children:"ÙÙØ§Ø· ÙÙ٠عضÙ"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:409",type:"number",value:f,onChange:D=>h(Math.max(5,parseInt(D.target.value)||30)),min:5,max:500,className:"memphis-input w-full px-3 py-2 font-bold text-sm"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:411",children:[s.jsx("label",{"data-loc":"client/src/pages/TeamDetailPage.tsx:412",className:"font-black text-sm text-black mb-1 block",children:"Ù
ÙØ§Ùأة Ø§ÙØ¥ØªÙ
اÙ
اÙÙØ§Ù
Ù"}),s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:413",type:"number",value:x,onChange:D=>b(Math.max(0,parseInt(D.target.value)||50)),min:0,max:500,className:"memphis-input w-full px-3 py-2 font-bold text-sm"})]})]})]}),s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:417",onClick:k,disabled:j.isPending,className:"memphis-btn bg-black text-white w-full py-3 font-black mt-5 flex items-center justify-center gap-2 disabled:opacity-50",children:[j.isPending?s.jsx(Ta,{"data-loc":"client/src/pages/TeamDetailPage.tsx:418",className:"w-4 h-4 animate-spin"}):s.jsx(qi,{"data-loc":"client/src/pages/TeamDetailPage.tsx:418",className:"w-4 h-4"}),"Ø¥ÙØ´Ø§Ø¡ Ø§ÙØªØØ¯Ù"]})]})})}function c7e(){const e=Ol(),t=parseInt(e.id??"0"),{isAuthenticated:a,user:n}
974=Ma(),r=J.useUtils(),i=J.teams.byId.useQuery({id:t},{enabled:!!t}),o=J.teams.members.useQuery({teamId:t},{enabled:!!t}),l=J.teams.myTeam.useQuery(void 0,{enabled:a}),c=J.teamMessages.list.useQuery({teamId:t,limit:50},{enabled:!!t&&a,refetchInterval:15e3}),d=J.teamChallenges.list.useQuery({teamId:t},{enabled:!!t&&a}),m=J.teams.adaptiveChallenges.useQuery({teamId:t},{enabled:!!t&&a}),f=J.teams.weeklyAchievements.useQuery({teamId:t},{enabled:!!t&&l.data?.team.id===t}),[h,x]=P.useState(!1),[b,y]=P.useState("motivational"),[w,j]=P.useState(!1),N=J.ai.messageSuggestionsWithTone.useQuery({teamId:t,tone:b},{enabled:!!t&&a&&w,staleTime:3e4}),[k,D]=P.useState(""),[C,S]=P.useState("ðª"),[A,E]=P.useState(!1),[R,F]=P.useState(!1),[I,H]=P.useState("messages"),[_,V]=P.useState(!1),[W,B]=P.useState(8),K=P.useMemo(()=>(m.data?.progress??[]).slice(-W),[m.data?.progress,W]),ae=xe=>{if(!K.length)return re.error("ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ÙØ§ÙÙØ© ÙÙØªØµØ¯Ùر");const it=K.map(je=>`<tr><td>${je.week}</td><td>${je.accuracy}%</td><td>${je.attempts}</td></tr>`).join("");if(xe==="pdf"){const je=window.open("","_blank","width=860,height=640");if(!je)return re.error("ÙØ±Ø¬Ù Ø§ÙØ³Ù
Ø§Ø Ø¨Ø§ÙÙÙØ§Ùذ اÙÙ
ÙØ¨Ø«ÙØ© ÙØªØµØ¯Ùر PDF");je.document.write(`<html dir="rtl"><head><title>ØªÙØ¯Ù
اÙÙØ±ÙÙ Ø§ÙØªÙÙÙÙ</title><style>body{font-family:Arial;padding:32px;color:#111}h1{font-size:24px}table{width:100%;border-collapse:collapse;margin-top:20px}th,td{border:1px solid #111;padding:10px;text-align:right}th{background:#e9d5ff}</style></head><body><h1>ØªÙØ¯Ù
اÙÙØ±ÙÙ ÙÙ ÙØ±Øµ Ø§ÙØªØØ³Ù٠اÙÙ
Ø´ØªØ±ÙØ©</h1><p>آخر ${W} Ø£Ø³Ø§Ø¨ÙØ¹ â Ø¨ÙØ§ÙØ§Øª Ù
جÙ
عة ØªØØ§Ùظ عÙÙ Ø®ØµÙØµÙØ© Ø§ÙØ£Ø¹Ø¶Ø§Ø¡.</p><table><thead><tr><th>Ø§ÙØ£Ø³Ø¨Ùع</th><th>Ø¯ÙØ© Ø§ÙØªÙاعÙ</th><th>اÙÙ
ØØ§ÙÙØ§Øª</th></tr></thead><tbody>${it}</tbody></table><script>window.print();<\/script></body></html>`),je.document.close(),re.success("تÙ
ÙØªØ ØªÙØ±Ùر PDF ÙÙØ·Ø¨Ø§Ø¹Ø© Ø£Ù Ø§ÙØÙØ¸");return}const Tt=document.createElement("canvas");Tt.width=1200,Tt.height=660;const bt=Tt.getContext("2d");if(!bt)return;bt.fillStyle="#fff8ef",bt.fillRect(0,0,Tt.width,Tt.height),bt.fillStyle="#111",bt.font="bold 34px Arial",bt.fillText("ØªÙØ¯Ù
اÙÙØ±ÙÙ ÙÙ ÙØ±Øµ Ø§ÙØªØØ³ÙÙ",760,62);const vt=110,St=130,de=980,be=360;bt.strokeStyle="#111",bt.lineWidth=3,bt.strokeRect(vt,St,de,be),bt.strokeStyle="#7c3aed",bt.lineWidth=6,bt.beginPath(),K.forEach((je,ze)=>{const Qe=vt+(K.length===1?de/2:ze*de/(K.length-1)),ye=St+be-je.accuracy/100*be;ze===0?bt.moveTo(Qe,ye):bt.lineTo(Qe,ye)}),bt.stroke(),bt.fillStyle="#111",bt.font="bold 18px Arial",K.forEach((je,ze)=>{const Qe=vt+(K.length===1?de/2:ze*de/(K.length-1)),ye=St+be-je.accuracy/100*be;bt.beginPath(),bt.arc(Qe,ye,7,0,Math.PI*2),bt.fill(),bt.fillText(`${je.accuracy}% â ${je.week}`,Math.max(20,Qe-48),St+be+36)});const G=document.createElement("a");G.download="team-adaptive-progress.png",G.href=Tt.toDataURL("image/png"),G.click(),re.success("تÙ
ØÙظ Ù
خطط ØªÙØ¯Ù
اÙÙØ±ÙÙ ÙØµÙرة")},[$,Z]=P.useState("month"),O=$==="week"?Date.now()-7*864e5:$==="month"?Date.now()-30*864e5:void 0,Y=J.admin.teamsStats.useQuery({since:O},{enabled:I==="stats"}),Q=P.useRef(null),U=J.challengeInvites.list.useQuery({teamId:t},{enabled:!!t&&a,refetchInterval:3e4}),oe=J.challengeInvites.respond.useMutation({onSuccess:(xe,it)=>{re.success(it.accept?"â
تÙ
ÙØ¨ÙÙ Ø§ÙØªØØ¯Ù!":"تÙ
Ø±ÙØ¶ Ø§ÙØ¯Ø¹ÙØ©"),r.challengeInvites.list.invalidate({teamId:t})},onError:xe=>re.error(xe.message)}),X=i.data,ne=o.data??[],ge=c.data??[],me=d.data??[],Ae=l.data?.team.id===t,Pe=Ae,L=l.data?.membership.role==="captain"||n?.role==="admin",ke=X?.coverEditorUserId===n?.id,Me=J.teams.setTeamCoverEditor.useMutation({onSuccess:()=>{re.success("تÙ
ØªØØ¯ÙØ« Ù
ØØ±Ø± Ø§ÙØ£ØºÙÙØ©"),i.refetch(),l.refetch()}}),Ze=J.teamMessages.send.useMutation({onSuccess:()=>{D(""),r.teamMessages.list.invalidate({teamId:t})},onError:xe=>re.error(xe.message)}),Ce=J.teamMessages.react.useMutation({onSuccess:()=>
974r.teamMessages.list.invalidate({teamId:t}),onError:xe=>re.error(xe.message)}),Te=J.teamMessages.delete.useMutation({onSuccess:()=>r.teamMessages.list.invalidate({teamId:t}),onError:xe=>re.error(xe.message)}),Ke=J.teamChallenges.complete.useMutation({onSuccess:xe=>{xe.alreadyCompleted?re.info("ÙÙØ¯ Ø£ÙÙ
ÙØª ÙØ°Ø§ Ø§ÙØªØØ¯Ù Ù
Ø³Ø¨ÙØ§Ù"):xe.teamCompleted?re.success(`ð Ø£Ø¨Ø¯Ø¹! أتÙ
اÙÙØ±ÙÙ Ø§ÙØªØØ¯Ù باÙÙØ§Ù
Ù! ØØµÙت عÙÙ ${xe.pointsEarned} ÙÙØ·Ø© + Ù
ÙØ§Ùأة إضاÙÙØ©!`):re.success(`â
تÙ
تسجÙÙ Ø¥ÙØ¬Ø§Ø²Ù! ØØµÙت عÙÙ ${xe.pointsEarned} ÙÙØ·Ø©`),r.teamChallenges.list.invalidate({teamId:t})},onError:xe=>re.error(xe.message)});P.useEffect(()=>{I==="messages"&&Q.current?.scrollIntoView({behavior:"smooth"})},[ge.length,I]);const Ve=()=>{const xe=k.trim();xe&&Ze.mutate({teamId:t,message:xe,emoji:C})};if(i.isLoading)return s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:565",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:566"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:56
9747",className:"max-w-5xl mx-auto px-4 py-8",children:s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:568",className:"memphis-card h-48 animate-pulse bg-gray-100"})})]});if(!X)return s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:576",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:577"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:578",className:"max-w-5xl mx-auto px-4 py-8 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:579",className:"font-black text-black/40 text-xl",children:"اÙÙØ±ÙÙ ØºÙØ± Ù
ÙØ¬Ùد"}),s.jsx(jt,{"data-loc":"client/src/pages/TeamDetailPage.tsx:580",href:"/teams",children:s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:580",className:"memphis-btn bg-black text-white px-5 py-2.5 font-black mt-4",children:"Ø§ÙØ¹Ùدة ÙÙÙØ±Ù"})})]})]});const ht=ne.length>0?Math.round(ne.reduce((xe,it)=>xe+(it.user.totalPoints??0),0)/ne.length):0,pe=me.filter(xe=>xe.status==="active"),et=me.filter(xe=>xe.status==="completed");return s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:594",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:595"}),R&&s.jsx(l7e,{"data-loc":"client/src/pages/TeamDetailPage.tsx:597",teamId:t,onClose:()=>F(!1),onCreated:()=>r.teamChallenges.list.invalidate({teamId:t})}),_&&s.jsx(o7e,{"data-loc":"client/src/pages/TeamDetailPage.tsx:604",teamId:t,onClose:()=>V(!1),onSent:()=>r.challengeInvites.list.invalidate({teamId:t})}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:610",className:"max-w-5xl mx-auto px-4 py-8",children:[s.jsx(jt,{"data-loc":"client/src/pages/TeamDetailPage.tsx:611",href:"/teams",children:s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:612",className:"flex items-center gap-2 font-bold text-black mb-6 hover:underline",children:[s.jsx(Wx,{"data-loc":"client/src/pages/TeamDetailPage.tsx:613",className:"w-4 h-4"})," Ø§ÙØ¹Ùدة ÙÙÙØ±Ù"]})}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:618",className:`memphis-card p-8 mb-6 relative overflow-hidden ${X.color}`,children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:619",className:"absolute top-2 left-4 text-5xl opacity-10",children:X.icon}),Ae&&s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:621",className:"absolute top-4 left-4 memphis-badge-pill bg-black text-white text-xs flex items-center gap-1 w-fit",children:[s.jsx(Sn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:622",className:"w-3 h-3"})," ÙØ±ÙÙÙ"]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:625",className:"flex items-center gap-5",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:626",className:"w-20 h-20 rounded-2xl border-2 border-black shadow-memphis-lg flex items-center justify-center text-4xl bg-white flex-shrink-0",children:X.icon}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:629",children:[s.jsx("h1",{"data-loc":"client/src/pages/TeamDetailPage.tsx:630",className:"font-black text-3xl text-black mb-1",children:X.name}),X.description&&s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:631",className:"font-medium text-black/60 text-sm mb-2",children:X.description}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:632",className:"flex items-center gap-3 flex-wrap",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:633",className:"memphis-badge-pill bg-white text-black flex items-center gap-1",children:[s.jsx(ln,{"data-loc":"client/src/pages/TeamDetailPage.tsx:634",className:"w-3 h-3"})," ",X.memberCount," عضÙ"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:636",className:"memphis-badge-pill bg-black text-white flex items-center gap-1",children:[s.jsx(aa,{"data-loc":"client/src/pages/TeamDetailPage.tsx:637",className:"w-3 h-3"})," ",X.totalPoints," ÙÙØ·Ø©"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:639",className:"memphis-badge-pill bg-white text-black flex items-center gap-1",children:[s.jsx(er,{"data-loc":"client/src/pages/TeamDetailPage.tsx:640",className:"w-3 h-3"})," Ù
ØªÙØ³Ø· ",ht," ÙÙØ·Ø©/عضÙ"]}),pe.length>0&&s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:643",className:"memphis-badge-pill bg-memphis-yellow text-black flex items-center gap-1",children:[s.jsx(Os,{"data-loc":"client/src/pages/TeamDetailPage.tsx:644",className:"w-3 h-3"})," ",pe.length," ØªØØ¯ÙÙ ÙØ´Ø·"]})]})]})]})]}),Pe&&s.jsx(ZOe,{"data-loc":"client/src/pages/TeamDetailPage.tsx:652",teamId:t,isCaptain:L}),L&&s.jsx("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",className:"memphis-card mb-6 bg-memphis-peach p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",className:"flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",children:[s.jsx("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",className:"text-base font-black text-black",children:"Ù
ØØ±Ø± أغÙÙØ© اÙÙØ±ÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",className:"mt-1 text-xs font-bold text-black/65",children:"عÙÙÙ Ø¹Ø¶ÙØ§Ù ÙØ³Ø§Ø¹Ø¯Ù ÙÙ Ø±ÙØ¹ Ø§ÙØ£ØºÙÙØ© ÙØ§ÙÙØ³ÙÙ
ÙØ¥Ø¯Ø§Ø±ØªÙØ§Ø Ø¯ÙÙ ØµÙØ§ØÙØ© ØªØ«Ø¨ÙØª اÙÙ
ÙØ®ØµØ§Øª."})]}),s.jsxs("select",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",value:X?.cover
974EditorUserId?.toString()??"",onChange:xe=>Me.mutate({teamId:t,editorUserId:xe.target.value?Number(xe.target.value):null}),disabled:Me.isPending,className:"rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-black text-black disabled:opacity-50",children:[s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",value:"",children:"ÙØ§ ÙÙØ¬Ø¯ Ù
ØØ±Ø± أغÙÙØ©"}),ne.filter(xe=>xe.member.role!=="captain").map(xe=>s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:654",value:xe.user.id,children:xe.user.name},xe.user.id))]})]})}),Pe&&s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"memphis-card mb-6 bg-memphis-sky p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"mb-4 flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(aa,{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"h-5 w-5"})," Ø¥ÙØ¬Ø§Ø²Ø§Øª اÙÙØ±ÙÙ ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"mt-1 text-sm font-bold text-black/65",children:"ÙØØªÙÙ Ø¨ØªÙØ¯Ù
Ø§ÙØ£Ø¹Ø¶Ø§Ø¡ ÙÙ Ø§ÙØ´Ø§Ø±Ø§Øª ÙØ§ÙØ¯Ø±ÙØ³ ÙØ§ÙØªØØ¯Ùات Ø®ÙØ§Ù Ø§ÙØ£ÙاÙ
Ø§ÙØ³Ø¨Ø¹Ø© اÙÙ
Ø§Ø¶ÙØ©."})]}),f.data&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"memphis-badge-pill bg-white text-black",children:[f.data.summary.badges," شارة Ø¬Ø¯ÙØ¯Ø©"]})]}),f.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"h-24 animate-pulse rounded-xl border-2 border-black/20 bg-white/60"}):f.data?.members.length?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"grid gap-3 md:grid-cols-2",children:f.data.members.map(xe=>s.jsxs("article",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"rounded-xl border-2 border-black bg-white p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"flex items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",children:[s.jsx("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"font-black text-black",children:xe.name}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"mt-1 text-xs font-bold text-black/60",children:xe.role==="captain"?"ÙØ§Ø¦Ø¯ اÙÙØ±ÙÙ":"عض٠اÙÙØ±ÙÙ"})]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"rounded-full border-2 border-black bg-memphis-yellow px-2 py-1 text-xs font-black",children:[xe.activityCount," Ø¥ÙØ¬Ø§Ø²"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"mt-3 flex flex-wrap gap-2 text-[11px] font-black",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"rounded-full border border-black bg-memphis-mint px-2 py-1",children:[xe.lessonsCount," درس"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"rounded-full border border-black bg-memphis-lilac px-2 py-1",children:[xe.challengesCount," ØªØØ¯Ù"]}),xe.badges.slice(0,2).map(it=>s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"rounded-full border border-black bg-memphis-yellow px-2 py-1",children:[it.icon??"ð
"," ",it.nameAr]},`${xe.userId}-${it.nameAr}`))]})]},xe.userId))}):s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:656",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-4 text-sm font-bold text-black/65",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¥ÙØ¬Ø§Ø²Ø§Øª Ù
Ø³Ø¬ÙØ© ÙÙÙØ±ÙÙ ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع بعد. Ø§Ø¨Ø¯Ø£ÙØ§ Ø¯Ø±Ø³Ø§Ù Ø£Ù ØªØØ¯ÙØ§Ù Ø¬Ø¯ÙØ¯Ø§Ù ÙØªØ¸Ùر ÙÙØ§."})]}),Pe?s.jsx(s7e,{"data-loc":"client/src/pages/TeamDetailPage.tsx:658",teamId:t}):null,Pe&&f.data?.members.length?s.jsx(e7e,{"data-loc":"client/src/pages/TeamDetailPage.tsx:660",teamId:t,weekKey:new Date(f.data.since).toISOString().slice(0,10),members:f.data.members,currentUserId:n?.id}):null,Pe&&f.data?.members.length?s.jsx(t7e,{"data-loc":"client/src/pages/TeamDetailPage.tsx:662",teamId:t,weekKey:new Date(f.data.since).toISOString().slice(0,10)}):null,Pe&&f.data?.members.length?s.jsx(a7e,{"data-loc":"client/src/pages/TeamDetailPage.tsx:664",teamId:t,weekKey:new Date(f.data.since).toISOString().slice(0,10)}):null,Pe&&f.data?.members.length?s.jsx(r7e,{"data-loc":"client/src/pages/TeamDetailPage.tsx:666",teamId:t,currentWeekKey:new Date(f.data.since).toISOString().slice(0,10),isCaptain:L,canManageCovers:L||ke}):null,Pe&&s.jsxs("section",{"data-loc":"client/src/pages/TeamDetailPage.tsx:668",className:"memphis-card mb-6 bg-memphis-mint p-5","aria-labelledby":"team-adaptive-challenges",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:669",className:"mb-3 flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:669",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:669",id:"team-adaptive-challenges",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:669",className:"h-5 w-5"})," ÙØ±Øµ Ø§ÙØªØØ³ÙÙ Ø§ÙØ¬Ù
Ø§Ø¹ÙØ©"]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:669",className:"mt-1 text-sm font-bold text-black/65",children:"ØªÙØ¨ÙÙ Ù
٠أÙÙ
اط Ø§ÙØªØ¹ÙÙÙ
اÙÙ
جÙ
عة ÙÙØ·Ø ÙØ§ ØªØ¸ÙØ± إجابات أ٠أسÙ
اء أ٠عضÙ."})]}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:669",className:"rounded-full border-2 border-black bg-white px-3 py-1 text-xs font-black",children:"Ø®ØµÙØµÙØ© اÙÙØ±ÙÙ Ù
ØÙÙØ¸Ø©"})]}),m.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"h-20 animate-pulse rounded-xl border-2 border-black/20 bg-white/60"}):m.data?.eligible?s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"grid gap-3 md:grid-cols-3",children:m.data.challenges.length?m.data.challenges.map(xe=>s.jsxs(jt,{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",href:`/lesson/${xe.lessonId}?teamAdaptive=${xe.activityKey}`,className:"rounded-xl border-2 border-black bg-white p-4 transition-transform hover:-translate-y-0.5",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"text-sm font-black text-black",children:xe.title}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"mt-2 text-xs font-bold leading-5 text-black/65",children:xe.description}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"mt-3 text-[11px] font-black text-purple-800",children:"ÙØ±ØµØ© Ù
راجعة Ù
Ø´ØªØ±ÙØ©"})]},`${xe.lessonId}-${xe.activityKey}`)):s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-4 text-sm font-bold text-black/65 md:col-span-3",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØ±Øµ ØªØØ³ÙÙ Ù
جÙ
عة ØØ§ÙÙØ§Ù. استÙ
Ø±ÙØ§ ÙÙ Ø§ÙØªÙØ§Ø¹Ù ÙØªØ¸Ùر ØªÙØµÙات Ø£ÙØ«Ø± Ø¯ÙØ©."})}),m.data.progress.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"mt-4 rounded-xl border-2 border-black bg-white p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"text-sm font-black text-black",children:"ØªÙØ¯Ù
اÙÙØ±ÙÙ ÙÙ ÙØ±Øµ Ø§ÙØªØØ³ÙÙ"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"flex flex-wrap gap-2",children:[s.jsxs("select",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",value:W,onChange:xe=>B(Number(xe.target.value)),className:"rounded-lg border-2 border-black bg-white px-2 py-1 text-[11px] font-black",children:[s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",value:4,children:"آخر 4 Ø£Ø³Ø§Ø¨ÙØ¹"}),s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",value:8,children:"آخر 8 Ø£Ø³Ø§Ø¨ÙØ¹"}),s.jsx("option",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",value:12,children:"آخر 12 Ø£Ø³Ø¨ÙØ¹Ø§Ù"})]}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",type:"button",onClick:()=>ae("png"),className:"rounded-lg border-2 border-black bg-memphis-yellow px-2 py-1 text-[11px] font-black",children:"ØµÙØ±Ø© P
974NG"}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",type:"button",onClick:()=>ae("pdf"),className:"rounded-lg border-2 border-black bg-black px-2 py-1 text-[11px] font-black text-white",children:"ØªØµØ¯ÙØ± PDF"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"h-44",children:s.jsx($s,{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",width:"100%",height:"100%",children:s.jsxs(Uc,{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",data:K,children:[s.jsx(is,{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",dataKey:"week",tick:{fontSize:10,fontWeight:700}}),s.jsx(Yn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",domain:[0,100],tickFormatter:xe=>`${xe}%`,tick:{fontSize:10,fontWeight:700}}),s.jsx(yn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",formatter:xe=>[`${xe}%`,"Ø¯ÙØ© Ø§ÙØªÙاعÙ"]}),s.jsx(Kn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",type:"monotone",dataKey:"accuracy",stroke:"#7C3AED",strokeWidth:3,dot:{r:4,fill:"#FDE68A",stroke:"#000",strokeWidth:2}})]})})}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"mt-1 text-[11px] font-bold text-black/55",children:"ÙØ¹Ø±Ø¶ اÙÙ
خطط Ø¯ÙØ© Ø§ÙØªÙاع٠اÙÙ
جÙ
عة Ø£Ø³Ø¨ÙØ¹ÙØ§ÙØ دÙÙ Ø£Ù Ø¨ÙØ§Ùات ÙØ±Ø¯ÙØ©."})]})]}):s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:670",className:"rounded-xl border-2 border-dashed border-black/30 bg-white/60 p-4 text-sm font-bold text-black/65",children:["تÙÙØ¹ÙÙ Ø§ÙØªØØ¯Ùات Ø§ÙØªÙÙÙÙØ© Ø¹ÙØ¯ ÙØµÙ٠اÙÙØ±Ù٠إÙÙ ",m.data?.minimumMembers??3," أعضاء عÙÙ Ø§ÙØ£ÙÙ. Ø§ÙØ¹Ø¯Ø¯ Ø§ÙØØ§ÙÙ: ",m.data?.memberCount??0,"."]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:674",className:"grid grid-cols-1 lg:grid-cols-5 gap-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:677",className:"lg:col-span-2 memphis-card p-5",children:[s.jsxs("h2",{"data-loc":"client/src/pages/TeamDetailPage.tsx:678",className:"font-black text-lg text-black mb-4 flex items-center gap-2",children:[s.jsx(ln,{"data-loc":"client/src/pages/TeamDetailPage.tsx:679",className:"w-5 h-5"})," Ø§ÙØ£Ø¹Ø¶Ø§Ø¡ (",ne.length,")"]}),o.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:682",className:"space-y-3",children:[1,2,3].map(xe=>s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:682",className:"h-14 animate-pulse bg-gray-100 rounded-xl"},xe))}):ne.length===0?s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:684",className:"text-center font-bold text-black/40 py-6",children:"ÙØ§ ÙÙØ¬Ø¯ أعضاء"}):s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:686",className:"space-y-2",children:ne.map((xe,it)=>s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:688",className:`flex items-center justify-between p-3 rounded-xl border-2 border-black ${it===0?"bg-memphis-yellow":"bg-white"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:689",className:"flex items-center gap-2",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:690",className:"w-7 h-7 rounded-full border-2 border-black bg-memphis-lilac flex items-center justify-center font-black text-xs text-black flex-shrink-0",children:it+1}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:691",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:692",className:"flex items-center gap-1 flex-wrap",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:693",className:"font-black text-black text-sm truncate max-w-[90px]",children:xe.user.name??"Ù
ستخدÙ
"}),xe.member.role==="captain"&&s.jsx(Gs,{"data-loc":"client/src/pages/TeamDetailPage.tsx:694",className:"w-3 h-3 text-yellow-600 flex-shrink-0"})]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:696",className:"text-xs font-bold text-black/40",children:["Ù
ستÙÙ ",xe.user.level]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:699",className:"font-black text-sm text-black flex-shrink-0",children:[xe.user.totalPoints," ",s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:699",className:"text-xs font-bold text-black/40",children:"ÙÙØ·Ø©"})]})]},xe.member.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:707",className:"lg:col-span-3 memphis-card p-5 flex flex-col",style:{minHeight:"520px"},children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:709",className:"flex gap-2 mb-4 border-b-2 border-black pb-3 flex-wrap",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:710",onClick:()=>H("messages"),className:`flex items-center gap-2 px-3 py-1.5 rounded-xl border-2 border-black font-black text-xs transition-all ${I==="messages"?"bg-black text-white":"bg-white text-black hover:bg-memphis-peach"}`,children:[s.jsx(xW,{"data-loc":"client/src/pages/TeamDetailPage.tsx:711",className:"w-3.5 h-3.5"})," Ø§ÙØ±Ø³Ø§Ø¦Ù",ge.length>0&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:712",className:"bg-memphis-mint text-black rounded-full w-4 h-4 flex items-center justify-center text-[10px]",children:ge.length})]}),s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:714",onClick:()=>H("challenges"),className:`flex items-center gap-2 px-3 py-1.5 rounded-xl border-2 border-black font-black text-xs transition-all ${I==="challenges"?"bg-black text-white":"bg-white text-black hover:bg-memphis-peach"}`,children:[s.jsx(Os,{"data-loc":"client/src/pages/TeamDetailPage.tsx:715",className:"w-3.5 h-3.5"})," Ø§ÙØªØØ¯Ùات Ø§ÙØ¬Ù
Ø§Ø¹ÙØ©",pe.length>0&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:716",className:"bg-memphis-yellow text-black rounded-full w-4 h-4 flex items-center justify-center text-[10px]",children:pe.length})]}),Pe&&s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:719",onClick:()=>H("invites"),className:`flex items-center gap-2 px-3 py-1.5 rounded-xl border-2 border-black font-black text-xs transition-all ${I==="invites"?"bg-black text-white":"bg-white text-black hover:bg-memphis-peach"}`,children:[s.jsx(ym,{"data-loc":"client/src/pages/TeamDetailPage.tsx:720",className:"w-3.5 h-3.5"})," ØªØØ¯Ùات اÙÙØ±Ù",(U.data?.filter(xe=>xe.status==="pending"&&xe.inviteeTeamId===t).length??0)>0&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:722",className:"bg-red-400 text-white rounded-full w-4 h-4 flex items-center justify-center text-[10px]",children:U.data?.filter(xe=>xe.status==="pending"&&xe.inviteeTeamId===t).length})]})]}),I==="messages"&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:732",className:"flex flex-col flex-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:734",className:"flex-1 overflow-y-auto space-y-3 mb-4 max-h-64 pr-1",children:[c.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:736",className:"space-y-3",children:[1,2,3].map(xe=>s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:736",className:"h-16 animate-pulse bg-gray-100 rounded-xl"},xe))}):ge.length===0?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:738",className:"flex flex-col items-center justify-center h-32 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:739",className:"text-4xl mb-2",children:"ð¬"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:740",className:"font-bold text-black/40 text-sm",children:"ÙØ§ ØªÙØ¬Ø¯ رسائ٠بعد"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:741",className:"font-medium text-black/30 text-xs mt-1",children:"Ù٠أÙÙ Ù
Ù ÙØ´Ø¬Ø¹ ÙØ±ÙÙÙ!"})]}):[...ge].reverse().map(xe=>{const it=xe.sender.id===n?.id;let Tt={};try{Tt=JSON.parse(xe.msg.reactions??"{}")}catch{Tt={}}return s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:749",className:`group flex gap-2 ${it?"flex-row-reverse":""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:750",className:"w-8 h-8 rounded-full border-2 border-black bg-memphis-lilac flex items-center justify-center font-black text-xs text-black flex-shrink-0 mt-1",children:(xe.sender.name??"Ù
").charAt(0).toUpperCase()}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:753",className:`flex-1 max-w-[75%] ${it?"items-end":"items-start"} flex flex-col`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:754",className:`flex items-center gap-2 mb-1 ${it?"flex-row-reverse":""}`,children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:755",className:"font-black text-xs text-black",children:it?"Ø£ÙØª":xe.sender.name??"Ù
ستخدÙ
"}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:756",className:"text-xs text-black/30",children:i7e(xe.msg.createdAt)})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:758",className:`relative px-4 py-2.5 rounded-2xl border-2 border-black shadow-[2px_2px_0px_black] ${it?"bg-memphis-mint rounded-tr-sm":"bg-white rounded-tl-sm"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:759",className:"text-lg mr-1",children:xe.msg.emoji}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:760",className:"font-bold text-black text-sm",children:xe.msg.message}),it&&s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:762",onClick:()=>Te.mutate({messageId:xe.msg.id}),className:"absolute -top-2 -left-2 w-5 h-5 bg-red-100 border border-red-300 rounded-full items-center justify-center hidden group-hover:flex",children:s.jsx(ur,{"data-loc":"client/src/pages/TeamDetailPage.tsx:763",className:"w-2.5 h-2.5 text-red-500"})})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:767",className:`flex gap-1 mt-1 flex-wrap ${it?"justify-end":""}`,children:[Object.entries(Tt).map(([bt,vt])=>s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:769",onClick:()=>a&&Pe&&Ce.mutate({messageId:xe.msg.id,reactionEmoji:bt}),className:`flex items-center gap-0.5 px-2 py-0.5 rounded-full border border-black text-xs font-bold transition-all hover:scale-110 ${vt.includes(n?.id??0)?"bg-memphis-yellow":"bg-white"}`,children:[bt," ",s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:771",className:"text-black/60",children:vt.length})]},bt)),a&&Pe&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:775",className:"relative",children:[s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:776",className:"px-2 py-0.5 rounded-full border border-black/30 text-xs font-bold bg-white hover:bg-memphis-peach opacity-0 group-hover:opacity-100 transition-opacity",onClick:bt=>{bt.stopPropagation(),document.getElementById(`rp-${xe.msg.id}`)?.classList.toggle("hidden")},children:"+ ð"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:780",id:`rp-${xe.msg.id}`,className:"hidden absolute bottom-8 left-0 bg-white border-2 border-black rounded-xl p-2 shadow-memphis z-10 flex gap-1 flex-wrap w-44",children:YOe.map(bt=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:782",onClick:()=>{Ce.mutate({messageId:xe.msg.id,reactionEmoji:bt}),document.getElementById(`rp-${xe.msg.id}`)?.classList.add("hidden")},className:"text-xl hover:scale-125 transition-transform",children:bt},bt))})]})]})]})]},xe.msg.id)}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:793",ref:Q})]}),a&&Pe?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:798",className:"border-t-2 border-black pt-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:800",className:"mb-3 space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:801",className:"flex gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:802",onClick:()=>E(!A),className:"text-xs font-bold text-black/50 hover:text-black flex items-center gap-1",children:["â¡ Ø³Ø±ÙØ¹Ø© ",A?"â²":"â¼"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:805",onClick:()=>
974x(!h),className:"text-xs font-bold text-memphis-lilac hover:text-black flex items-center gap-1 border border-memphis-lilac rounded-full px-2 py-0.5 hover:border-black transition-colors",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:809",className:"w-3 h-3"})," Ø§ÙØªØ±Ø§ØØ§Øª Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"]})]}),A&&s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:815",className:"flex gap-2 flex-wrap",children:["Ø£ØØ³ÙتÙ
! استÙ
Ø±ÙØ§ ÙÙ Ø§ÙØªÙدÙ
ðª","ÙØ±ÙÙÙØ§ Ø§ÙØ£ÙضÙ! ð","ÙÙØ§ ÙØÙ٠اÙÙ
Ø²ÙØ¯ Ù
٠اÙÙÙØ§Ø·! ð","Ø£ÙØªÙ
رائعÙÙ! ð","ÙØ§ تتÙÙÙÙØ§Ø اÙÙØ¬Ø§Ø ÙØ±Ùب! ð¯","Ù
Ø¹Ø§Ù ÙØµÙ ÙÙÙÙ
Ø©! â¡"].map(xe=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:817",onClick:()=>{Ze.mutate({teamId:t,message:xe,emoji:C}),E(!1)},disabled:Ze.isPending,className:"memphis-btn bg-memphis-peach px-3 py-1.5 text-xs font-bold text-black hover:bg-memphis-yellow transition-colors",children:xe},xe))}),h&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:827",className:"bg-gradient-to-br from-memphis-lilac/20 to-memphis-mint/20 border-2 border-black rounded-xl p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:828",className:"flex items-center justify-between gap-2 mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:829",className:"flex items-center gap-2",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:830",className:"w-4 h-4 text-purple-600"}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:831",className:"font-black text-sm text-black",children:"Ø§ÙØªØ±Ø§ØØ§Øª Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"})]}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:833",onClick:()=>x(!1),className:"w-6 h-6 bg-black text-white rounded-full flex items-center justify-center text-xs font-black hover:bg-red-500 transition-colors",children:"â"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:836",className:"mb-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:837",className:"text-xs font-bold text-black/50 mb-2",children:"اختر ÙØ¨Ø±Ø© Ø§ÙØ±Ø³Ø§ÙØ©:"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:838",className:"flex gap-2 flex-wrap",children:zq.map(xe=>s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:840",onClick:()=>{y(xe.id),j(!1)},className:`flex items-center gap-1.5 px-3 py-1.5 rounded-xl border-2 font-black text-xs transition-all ${b===xe.id?`border-black ${xe.color} shadow-[2px_2px_0px_black]`:"border-black/30 bg-white hover:border-black"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:842",children:xe.icon})," ",xe.label]},xe.id))})]}),!w&&s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:849",onClick:()=>j(!0),className:"memphis-btn bg-black text-white w-full py-2 font-black text-sm flex items-center justify-center gap-2 mb-3 hover:bg-purple-700 transition-colors",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:851",className:"w-4 h-4"})," تÙÙÙØ¯ Ø§ÙØªØ±Ø§ØØ§Øª ",zq.find(xe=>xe.id===b)?.label]}),w&&N.isLoading?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:855",className:"flex items-center gap-2 py-2",children:[s.jsx(Ta,{"data-loc":"client/src/pages/TeamDetailPage.tsx:856",className:"w-4 h-4 animate-spin text-purple-600"}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:857",className:"text-sm font-bold text-black/50",children:"ÙØÙÙ Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·Ùاع٠أداء ÙØ±ÙÙÙ..."})]}):w&&(N.data??[]).length>0?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:860",className:"space-y-2",children:[s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:861",className:"text-xs font-bold text-black/40",children:"اÙÙØ± ÙØ¥Ø¯Ø±Ø§Ø¬ Ø§ÙØ±Ø³Ø§ÙØ©:"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:862",className:"flex gap-2 flex-wrap",children:(N.data??[]).map((xe,it)=>s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:864",onClick:()=>{D(xe),x(!1),j(!1)},disabled:Ze.isPending,className:"memphis-btn bg-white border-2 border-purple-300 hover:border-black px-3 py-1.5 text-xs font-bold text-black hover:bg-memphis-lilac transition-all flex items-start gap-1 text-right max-w-full",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:867",className:"w-3 h-3 text-purple-500 flex-shrink-0 mt-0.5"}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:868",className:"leading-relaxed",children:xe})]},it))}),s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:872",onClick:()=>j(!1),className:"text-xs font-bold text-black/40 hover:text-black underline mt-1",children:"تÙÙÙØ¯ Ø§ÙØªØ±Ø§ØØ§Øª Ø¬Ø¯ÙØ¯Ø©"})]}):null]})]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:880",className:"flex gap-1.5 mb-2 flex-wrap",children:XOe.map(xe=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:882",onClick:()=>S(xe),className:`w-8 h-8 text-lg rounded-lg border-2 transition-all ${C===xe?"border-black bg-memphis-yellow shadow-[2px_2px_0px_black]":"border-black/30 bg-white hover:border-black"}`,children:xe},xe))}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:890",className:"flex gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:891",className:"flex-1 relative",children:[s.jsx("input",{"data-loc":"client/src/pages/TeamDetailPage.tsx:892",value:k,onChange:xe=>
974D(xe.target.value),onKeyDown:xe=>{xe.key==="Enter"&&!xe.shiftKey&&(xe.preventDefault(),Ve())},placeholder:"Ø§ÙØªØ¨ Ø±Ø³Ø§ÙØ© تØÙÙØ²ÙØ© ÙÙØ±ÙÙÙ...",maxLength:300,className:"memphis-input w-full px-4 py-2.5 text-black font-bold text-sm pr-12"}),s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:896",className:"absolute left-3 top-1/2 -translate-y-1/2 text-lg",children:C})]}),s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:898",onClick:Ve,disabled:!k.trim()||Ze.isPending,className:"memphis-btn bg-black text-white px-4 py-2.5 font-black flex items-center gap-2 disabled:opacity-50",children:[s.jsx(p2,{"data-loc":"client/src/pages/TeamDetailPage.tsx:900",className:"w-4 h-4"}),Ze.isPending?"...":"إرساÙ"]})]}),s.jsxs("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:904",className:"text-xs text-black/30 mt-1",children:[k.length,"/300 ØØ±Ù · اضغط Enter ÙÙØ¥Ø±Ø³Ø§Ù"]})]}):a&&!Pe?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:907",className:"border-t-2 border-black pt-4 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:908",className:"font-bold text-black/40 text-sm",children:"Ø§ÙØ¶Ù
ÙÙÙØ±ÙÙ ÙØªØªÙ
ÙÙ Ù
Ù Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§Ø¦Ù"})}):s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:911",className:"border-t-2 border-black pt-4 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:912",className:"font-bold text-black/40 text-sm",children:"سجÙ٠دخÙÙÙ ÙØªØªÙ
ÙÙ Ù
Ù Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§Ø¦Ù"})})]}),I==="challenges"&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:920",className:"flex-1 overflow-y-auto",children:[a&&Pe&&s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:923",className:"mb-4",children:s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:924",onClick:()=>F(!0),className:"memphis-btn bg-memphis-yellow text-black w-full py-3 font-black flex items-center justify-center gap-2 hover:bg-black hover:text-white transition-colors",children:[s.jsx(qi,{"data-loc":"client/src/pages/TeamDetailPage.tsx:926",className:"w-4 h-4"})," Ø¥ÙØ´Ø§Ø¡ ØªØØ¯Ù٠جÙ
Ø§Ø¹Ù Ø¬Ø¯ÙØ¯"]})}),d.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:932",className:"space-y-3",children:[1,2].map(xe=>s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:932",className:"h-24 animate-pulse bg-gray-100 rounded-xl"},xe))}):me.length===0?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:934",className:"flex flex-col items-center justify-center h-40 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:935",className:"text-5xl mb-3",children:"ð¯"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:936",className:"font-black text-black/40 text-base",children:"ÙØ§ ØªÙØ¬Ø¯ ØªØØ¯Ùات جÙ
Ø§Ø¹ÙØ© بعد"}),a&&Pe&&s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:938",className:"font-medium text-black/30 text-sm mt-1",children:"ابدأ Ø¨Ø¥ÙØ´Ø§Ø¡ Ø£ÙÙ ØªØØ¯ÙÙ ÙÙØ±ÙÙÙ!"})]}):s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:942",className:"space-y-4",children:[pe.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:944",children:[s.jsxs("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:945",className:"font-black text-sm text-black mb-2 flex items-center gap-2",children:[s.jsx(Os,{"data-loc":"client/src/pages/TeamDetailPage.tsx:945",className:"w-4 h-4 text-green-600"})," Ø§ÙØªØØ¯Ùات اÙÙØ´Ø·Ø©"]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:946",className:"space-y-3",children:pe.map(xe=>s.jsx(Iq,{"data-loc":"client/src/pages/TeamDetailPage.tsx:948",challenge:xe,teamId:t,isMember:Pe,isAuthenticated:a,userId:n?.id,onComplete:()=>Ke.mutate({challengeId:xe.id,teamId:t}),isPending:Ke.isPending},xe.id))})]}),et.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:954",children:[s.jsxs("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:955",className:"font-black text-sm text-black/50 mb-2 flex items-center gap-2",children:[s.jsx(bn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:955",className:"w-4 h-4 text-green-500"})," Ø§ÙØªØØ¯Ùات اÙÙ
ÙØªÙ
ÙØ©"]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:956",className:"space-y-3 opacity-60",children:et.map(xe=>s.jsx(Iq,{"data-loc":"client/src/pages/TeamDetailPage.tsx:958",challenge:xe,teamId:t,isMember:!1,isAuthenticated:a,userId:n?.id,onComplete:()=>{},isPending:!1},xe.id))})]})]})]}),I==="invites"&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:970",className:"flex-1 overflow-y-auto space-y-4",children:[Pe&&s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:973",onClick:()=>V(!0),className:"memphis-btn bg-black text-white w-full py-3 font-black flex items-center justify-center gap-2 hover:bg-memphis-yellow hover:text-black transition-colors",children:[s.jsx(ym,{"data-loc":"client/src/pages/TeamDetailPage.tsx:975",className:"w-4 h-4"})," ØªØØ¯ÙÙ ÙØ±ÙÙØ§Ù آخر!"]}),U.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:980",className:"space-y-3",children:[1,2].map(xe=>s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:980",className:"h-24 animate-pulse bg-gray-100 rounded-xl"},xe))}):!U.data||U.data.length===0?s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:982",className:"flex flex-col items-center justify-center h-40 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:983",className:"text-5xl mb-3",children:"âï¸"}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:984",className:"font-black text-black/40 text-base",children:"ÙØ§ ØªÙØ¬Ø¯ ØªØØ¯Ùات بÙ٠اÙÙØ±Ù بعد"}),Pe&&s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:985",className:"font-medium text-black/30 text-sm mt-1",children:"ØªØØ¯Ù ÙØ±ÙÙØ§Ù آخر ÙØ£Ø«Ø¨Øª تÙÙÙÙÙ
!"})]}):s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:988",className:"space-y-3",children:[U.data.filter(xe=>xe.status==="pending"&&xe.inviteeTeamId===t).length>0&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:991",children:[s.jsxs("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:992",className:"font-black text-sm text-red-600 mb-2 flex items-center gap-2",children:[s.jsx(rg,{"data-loc":"client/src/pages/TeamDetailPage.tsx:993",className:"w-4 h-4"})," Ø¯Ø¹ÙØ§Øª ÙØ§Ø±Ø¯Ø© ØªÙØªØ¸Ø± ردÙ"]}),U.data.filter(xe=>xe.status==="pending"&&xe.inviteeTeamId===t).map(xe=>s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:996",className:"border-2 border-red-400 rounded-2xl p-4 bg-red-50 mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:997",className:"flex items-center gap-3 mb-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:998",className:"text-3xl",children:xe.icon??"âï¸"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:999",className:"flex-1 min-w-0",children:[s.jsx("h4",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1000",className:"font-black text-black text-sm",children:xe.challengeTitle}),xe.challengeDescription&&s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1001",className:"text-xs text-black/50 mt-0.5",children:xe.challengeDescription}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1002",className:"flex items-center gap-2 mt-1 flex-wrap",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1003",className:"text-xs font-bold text-black/50",children:["اÙÙØ¯Ù: ",xe.targetValue," ÙÙØ·Ø©"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1004",className:"text-xs font-bold text-green-700",children:["+",xe.pointsRewardPerMember," ÙÙØ·Ø©/عضÙ"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1005",className:"text-xs font-bold text-black/40 flex items-center gap-1",children:[s.jsx(xi,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1005",className:"w-3 h-3"}),wT(xe.expiresAt)]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1009",className:"flex gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1010",onClick:()=>oe.mutate({inviteId:xe.id,accept:!0}),disabled:oe.isPending,className:"memphis-btn bg-green-500 text-white flex-1 py-2 font-black text-sm flex items-center justify-center gap-1 disabled:opacity-50",children:[s.jsx(bn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1012",className:"w-4 h-4"})," ÙØ¨ÙÙ Ø§ÙØªØØ¯Ù"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1014",onClick:()=>oe.mutate({inviteId:xe.id,accept:!1}),disabled:oe.isPending,className:"memphis-btn bg-white text-black border-2 border-black flex-1 py-2 font-black text-sm flex items-center justify-center gap-1 disabled:opacity-50",children:[s.jsx(Zn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1016",className:"w-4 h-4"})," Ø±ÙØ¶"]})]})]},xe.id))]}),U.data.filter(xe=>xe.status!=="pending"||xe.inviterTeamId===t).map(xe=>{const it=xe.winnerTeamId===t,Tt=xe.winnerTeamId&&xe.winnerTeamId!==t,bt=xe.status==="active",vt=xe.status==="pending"&&xe.inviterTeamId===t;return s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1031",className:`border-2 border-black rounded-2xl p-4 transition-all ${it?"bg-gradient-to-br from-yellow-50 to-green-50 border-yellow-400":Tt?"bg-gray-50 opacity-70":bt?"bg-white":"bg-gray-50"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1032",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1033",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1034",className:"text-2xl",children:xe.icon??"âï¸"}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1035",children:[s.jsx("h4",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1036",className:"font-black text-black text-sm",children:xe.challengeTitle}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1037",className:"flex items-center gap-2 mt-1 flex-wrap",children:[vt&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1038",className:"text-xs font-bold text-orange-600 bg-orange-100 px-2 py-0.5 rounded-full",children:"â³ Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ±Ø¯"}),bt&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1039",className:"text-xs font-bold text-blue-600 bg-blue-100 px-2 py-0.5 rounded-full",children:"ð¥ Ø¬Ø§Ø±Ù"}),it&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1040",className:"text-xs font-bold text-yellow-700 bg-yellow-100 px-2 py-0.5 rounded-full",children:"ð ÙØ²ØªÙ
!"}),Tt&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1041",className:"text-xs font-bold text-gray-600 bg-gray-200 px-2 py-0.5 rounded-full",children:"خسرتÙ
"}),xe.status==="declined"&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1042",className:"text-xs font-bold text-red-600 bg-red-100 px-2 py-0.5 rounded-full",children:"Ù
رÙÙØ¶"}),xe.status==="expired"&&s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1043",className:"text-xs font-bold text-gray-500 bg-gray-100 px-2 py-0.5 rounded-full",children:"Ù
ÙØªÙÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1044",className:"text-xs font-bold text-black/40 flex items-center gap-1",children:[s.jsx(xi,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1044",className:"w-3 h-3"}),wT(xe.expiresAt)]})]})]})]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1048",className:"text-xs font-bold text-green-700 flex-shrink-0",children:["+",xe.pointsRewardPerMember," ÙÙØ·Ø©"]})]}),bt&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1052",className:"mt-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1053",className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1054",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1055",className:"flex justify-between text-[10px] font-bold text-black/50 mb-0.5",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1056",children:"ÙØ±ÙÙÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1057",children:[(xe.inviterTeamId===t?xe.inviterProgress:xe.inviteeProgress)??0,"/",xe.targetValue]})]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1059",className:"h-2 bg-black/10 rounded-full overflow-hidden",children:s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1060",className:"h-full bg-memphis-yellow rounded-full transition-all duration-500",style:{width:`${Math.min(100,((xe.inviterTeamId===t?xe.inviterProgress:xe.inviteeProgress)??0)/xe.targetValue*100)}%`}})})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1064",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1065",className:"flex justify-between text-[10px] font-bold text-black/50 mb-0.5",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1066",children:"اÙÙØ±Ù٠اÙÙ
ÙØ§Ùس"}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1067",children:[(xe.inviterTeamId===t?xe.inviteeProgress:xe.inviterProgress)??0,"/",xe.targetValue]})]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1069",className:"h-2 bg-black/10 rounded-full overflow-hidden",children:s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1070",className:"h-full bg-red-400 rounded-full transition-all duration-500",style:{width:`${Math.min(100,((xe.inviterTeamId===t?xe.inviteeProgress:xe.inviterProgress)??0)/xe.targetValue*100)}%`}})})]})]}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1075",className:"mt-2 text-[11px] font-bold text-black/55",children:"ÙØªØØ¯ÙØ« Ø§ÙØ´Ø±ÙØ· تÙÙØ§Ø¦Ùا٠Ù
Ù Ø¥ÙØ¬Ø§Ø²Ø§Øª أعضاء اÙÙØ±ÙÙÙÙ."})]})]},xe.id)})]})]}),I==="stats"&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1087",className:"flex-1 overflow-y-auto space-y-5 py-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1090",className:"flex items-center gap-2 flex-wrap",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1091",className:"font-black text-xs text-black/60",children:"عرض:"}),[["week","Ø£Ø³Ø¨ÙØ¹"],["month","Ø´ÙØ±"],["all","Ù٠اÙÙÙØª"]].map(([xe,it])=>s.jsx("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1093",onClick:()=>Z(xe),className:`px-3 py-1 rounded-full border-2 text-xs font-black transition-all ${$===xe?"bg-black text-white border-black":"bg-white border-black/30 hover:border-black"}`,children:it},xe))]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1099",className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1100",className:"memphis-card p-3 text-center bg-memphis-yellow",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1101",className:"font-black text-2xl text-black",children:X?.totalPoints??0}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1102",className:"text-xs font-bold text-black/60",children:"إجÙ
اÙ٠اÙÙÙØ§Ø·"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1104",className:"memphis-card p-3 text-center bg-memphis-mint",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1105",className:"font-black text-2xl text-black",children:ne.length}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1106",className:"text-xs font-bold text-black/60",children:"عدد Ø§ÙØ£Ø¹Ø¶Ø§Ø¡"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1108",className:"memphis-card p-3 text-center bg-memphis-lilac",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1109",className:"font-black text-2xl text-black",children:ne.length>0?Math.round((X?.totalPoints??0)/ne.length):0}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1110",className:"text-xs font-bold text-black/60",children:"Ù
ØªÙØ³Ø· ÙÙØ·Ø©/عضÙ"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1114",children:[s.jsxs("h3",{"data-loc":"client/src/pages/
974TeamDetailPage.tsx:1115",className:"font-black text-sm text-black mb-3 flex items-center gap-2",children:[s.jsx(er,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1115",className:"w-4 h-4"})," Ù
ÙØ§Ø±ÙØ© Ù
ع اÙÙØ±Ù Ø§ÙØ£Ø®Ø±Ù"]}),Y.isLoading?s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1117",className:"h-48 animate-pulse bg-gray-100 rounded-xl"}):!Y.data||Y.data.length===0?s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1119",className:"text-center font-bold text-black/40 py-8",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ÙØ§ÙÙØ©"}):s.jsx($s,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1121",width:"100%",height:200,children:s.jsxs(Cx,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1122",data:Y.data.slice(0,6).map(xe=>({name:xe.name.length>8?xe.name.slice(0,8)+"â¦":xe.name,ÙÙØ§Ø·:xe.totalPoints,Ø¯Ø±ÙØ³:xe.completedLessons,isCurrent:xe.id===t})),margin:{top:5,right:10,left:-20,bottom:5},children:[s.jsx(is,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1123",dataKey:"name",tick:{fontSize:10,fontWeight:700}}),s.jsx(Yn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1124",tick:{fontSize:10}}),s.jsx(yn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1125",formatter:(xe,it)=>[xe,it]}),s.jsx(Bs,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1126",dataKey:"ÙÙØ§Ø·",radius:[4,4,0,0],children:Y.data.slice(0,6).map((xe,it)=>s.jsx(Mu,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1128",fill:xe.id===t?"#000000":"#a78bfa"},it))}),s.jsx(Bs,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1131",dataKey:"Ø¯Ø±ÙØ³",fill:"#34d399",radius:[4,4,0,0]})]})}),s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1135",className:"text-xs font-bold text-black/40 text-center mt-1",children:"â ÙØ±ÙÙÙ Â â Ø§ÙÙØ±Ù Ø§ÙØ£Ø®Ø±Ù (ÙÙØ§Ø·) Â â Ø¯Ø±Ùس Ù
ÙØªÙ
ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1138",children:[s.jsxs("h3",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1139",className:"font-black text-sm text-black mb-3 flex items-center gap-2",children:[s.jsx(aa,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1139",className:"w-4 h-4"})," ØªØ±ØªÙØ¨ Ø§ÙØ£Ø¹Ø¶Ø§Ø¡"]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1140",className:"space-y-2",children:ne.slice(0,5).map((xe,it)=>s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1142",className:"flex items-center gap-3 p-2 rounded-xl border-2 border-black bg-white",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1143",className:`w-7 h-7 rounded-full border-2 border-black flex items-center justify-center font-black text-xs flex-shrink-0 ${it===0?"bg-memphis-yellow":it===1?"bg-gray-200":it===2?"bg-orange-200":"bg-white"}`,children:it+1}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1144",className:"flex-1 min-w-0",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1145",className:"font-black text-xs text-black truncate",children:xe.user.name??"Ù
ستخدÙ
"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1146",className:"w-full bg-gray-100 rounded-full h-1.5 mt-1",children:s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1147",className:"bg-black h-1.5 rounded-full transition-all",style:{width:`${ne[0]?.user.totalPoints?Math.round(xe.user.totalPoints/ne[0].user.totalPoints*100):0}%`}})})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1150",className:"font-black text-xs text-black flex-shrink-0",children:[xe.user.totalPoints," ÙÙØ·Ø©"]})]},xe.member.id))})]})]})]})]})]})]})}function Iq({challenge:e,teamId:t,isMember:a,isAuthenticated:n,userId:r,onComplete:i,isPending:o}){const c=J.teamChallenges.completions.useQuery({challengeId:e.id}).data??[],d=c.some(N=>N.completion.userId===r),m=Math.min(100,Math.round(e.completedCount/e.targetCount*100)),f=new Date(e.expiresAt)<new Date,h=e.status==="completed",[x,b]=P.useState(0),[y,w]=P.useState(!1),j=P.useRef(0);return P.useEffect(()=>{const N=setTimeout(()=>b(m),100);return()=>clearTimeout(N)},[m]),P.useEffect(()=>{m>j.current&&m>=100&&!h&&(w(!0),setTimeout(()=>w(!1),3e3)),j.current=m},[m,h]),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1192",className:`border-2 border-black rounded-2xl p-4 relative overflow-hidden transition-all duration-300 ${h?"bg-gradient-to-br from-green-50 to-emerald-50":"bg-white"} ${y?"ring-2 ring-yellow-400 ring-offset-1":""}`,children:[y&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1195",className:"absolute inset-0 pointer-events-none z-10 flex items-center justify-center",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1196",className:"text-6xl animate-bounce",children:"ð"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1197",className:"absolute top-2 right-2 text-3xl animate-spin",children:"â"}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1198",className:"absolute bottom-2 left-2 text-3xl animate-ping",children:"ð"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1201",className:"flex items-start justify-between gap-3 mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1202",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1203",className:"w-12 h-12 rounded-xl border-2 border-black bg-memphis-yellow flex items-center justify-center text-2xl flex-shrink-0",children:e.icon}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1206",children:[s.jsx("h4",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1207",className:"font-black text-black text-sm",children:e.title}),e.descriptionAr&&s.jsx("p",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1208",className:"text-xs text-black/50 font-medium mt
974-0.5",children:e.descriptionAr}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1209",className:"flex items-center gap-2 mt-1 flex-wrap",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1210",className:"text-xs font-bold text-black/50 flex items-center gap-1",children:[s.jsx(xi,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1211",className:"w-3 h-3"}),h?"Ù
ÙØªÙ
Ù":f?"Ù
ÙØªÙÙ":wT(e.expiresAt)]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1214",className:"text-xs font-bold text-green-700",children:["+",e.pointsRewardPerMember," ÙÙØ·Ø©"]}),e.bonusPoints>0&&s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1215",className:"text-xs font-bold text-purple-700",children:["+",e.bonusPoints," Ù
ÙØ§Ùأة"]})]})]})]}),h?s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1220",className:"memphis-badge-pill bg-green-100 text-green-800 text-xs flex items-center gap-1 flex-shrink-0",children:[s.jsx(bn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1221",className:"w-3 h-3"})," Ù
ÙØªÙ
Ù!"]}):d?s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1224",className:"memphis-badge-pill bg-memphis-mint text-black text-xs flex items-center gap-1 flex-shrink-0",children:[s.jsx(bn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1225",className:"w-3 h-3"})," Ø£ÙØ¬Ø²ØªÙ"]}):a&&n&&!f?s.jsxs("button",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1228",onClick:i,disabled:o,className:"memphis-btn bg-black text-white px-3 py-1.5 text-xs font-black flex items-center gap-1 flex-shrink-0 disabled:opacity-50",children:[o?s.jsx(Ta,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1230",className:"w-3 h-3 animate-spin"}):s.jsx(bn,{"data-loc":"client/src/pages/TeamDetailPage.tsx:1230",className:"w-3 h-3"}),"إتÙ
اÙ
"]}):null]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1237",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1238",className:"flex justify-between items-center mb-1",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1239",className:"text-xs font-bold text-black/50",children:[e.completedCount," / ",e.targetCount," أعضاء Ø£ÙÙ
ÙÙØ§"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1240",className:`text-xs font-black transition-all duration-300 ${m>=100?"text-green-600":m>=50?"text-yellow-600":"text-black"}`,children:[x,"%"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1242",className:"h-4 bg-black/10 rounded-full border-2 border-black/20 overflow-hidden relative",children:[!h&&s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1245",className:"absolute inset-0 opacity-10",style:{backgroundImage:"repeating-linear-gradient(45deg, #000 0, #000 2px, transparent 0, transparent 50%)",backgroundSize:"8px 8px"}}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1248",className:`h-full rounded-full transition-all ease-out relative overflow-hidden ${h?"bg-gradient-to-r from-green-400 to-emerald-500":m>=75?"bg-gradient-to-r from-yellow-400 to-orange-400":"bg-gradient-to-r from-memphis-yellow to-yellow-300"}`,style:{width:`${x}%`,transitionDuration:"800ms"},children:!h&&x>0&&s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1254",className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/40 to-transparent animate-pulse"})}),[25,50,75].map(N=>s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1259",className:`absolute top-0 bottom-0 w-0.5 ${x>=N?"bg-black/20":"bg-black/10"}`,style:{left:`${N}%`}},N))]}),s.jsx("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1263",className:"flex justify-between mt-0.5 px-0.5",children:[0,25,50,75,100].map(N=>s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1265",className:`text-[9px] font-bold transition-colors duration-300 ${x>=N?"text-black/60":"text-black/20"}`,children:[N,"%"]},N))}),c.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1270",className:"flex items-center gap-1 mt-2 flex-wrap",children:[s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1271",className:"text-xs text-black/40 font-medium",children:"Ø£ÙØ¬Ø²Ù:"}),c.slice(0,6).map(N=>s.jsx("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1273",className:`w-7 h-7 rounded-full border-2 border-black flex items-center justify-center font-black text-xs text-black transition-all duration-300 ${N.completion.userId===r?"bg-memphis-yellow shadow-[1px_1px_0px_black] scale-110":"bg-memphis-mint"}
974`,title:N.user.name??"",children:(N.user.name??"Ù
").charAt(0).toUpperCase()},N.completion.id)),c.length>6&&s.jsxs("span",{"data-loc":"client/src/pages/TeamDetailPage.tsx:1277",className:"text-xs font-bold text-black/40",children:["+",c.length-6]})]})]})]})}const Lq=["bg-memphis-mint","bg-memphis-lilac","bg-memphis-sky","bg-memphis-peach","bg-cyan-100","bg-rose-100"];function d7e({lesson:e,position:t,completed:a,locked:n,next:r,tone:i}){const o=s.jsx("article",{"data-loc":"client/src/pages/LearningPathPage.tsx:31",className:`memphis-card min-h-[116px] p-4 sm:p-5 transition-transform ${n?"bg-gray-100 opacity-65":a?"memphis-card--completed":"bg-white hover:-translate-y-0.5"} ${r?"memphis-card--hero ring-4 ring-memphis-yellow ring-offset-2":""}`,children:s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:32",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:33",className:`w-11 h-11 rounded-xl border-2 border-black flex shrink-0 items-center justify-center text-lg ${a?"bg-green-200":n?"bg-gray-200":i}`,children:a?s.jsx(bn,{"data-loc":"client/src/pages/LearningPathPage.tsx:34",className:"w-6 h-6 text-green-700"}):n?s.jsx(d2,{"data-loc":"client/src/pages/LearningPathPage.tsx:34",className:"w-5 h-5 text-gray-500"}):e.icon||s.jsx(Ln,{"data-loc":"client/src/pages/LearningPathPage.tsx:34",className:"w-5 h-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:36",className:"min-w-0 flex-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:37",className:"flex flex-wrap items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:38",className:"memphis-badge-pill bg-black text-white text-[11px]",children:t}),r&&s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:39",className:"memphis-badge-pill bg-memphis-yellow text-[11px]",children:"Ø®Ø·ÙØªÙ Ø§ÙØªØ§ÙÙØ©"}),a&&s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:40",className:"memphis-badge-pill bg-green-200 text-[11px]",children:"Ù
ÙØªÙ
Ù"})]}),s.jsx("h4",{"data-loc":"client/src/pages/LearningPathPage.tsx:42",className:"mt-2 font-black text-base text-black leading-snug",children:e.titleAr}),e.summaryAr&&s.jsx("p",{"data-loc":"client/src/pages/LearningPathPage.tsx:43",className:"mt-1 line-clamp-2 text-sm font-medium leading-relaxed text-black/65",children:e.summaryAr}),s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:44",className:"mt-3 flex flex-wrap items-center gap-3 text-xs font-black text-black/60",children:[s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:45",className:"flex items-center gap-1",children:[s.jsx(Sn,{"data-loc":"client/src/pages/LearningPathPage.tsx:45",className:"w-3.5 h-3.5"}),e.pointsReward," ÙÙØ·Ø©"]}),s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:46",className:"flex items-center gap-1",children:[s.jsx(Os,{"data-loc":"client/src/pages/LearningPathPage.tsx:46",className:"w-3.5 h-3.5"}),e.durationMinutes," Ø¯ÙØ§Ø¦Ù"]})]})]})]})});return n?s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:53","aria-disabled":"true",children:o}):s.jsx(jt,{"data-loc":"client/src/pages/LearningPathPage.tsx:53",href:`/lesson/${e.id}`,children:o})}function u7e({category:e,lessons:t,completedIds:a,theme:n,isOpen:r,onToggle:i,globalOffset:o,globalNextId:l}){const c=t.filter(m=>a.has(m.id)).length,d=t.length?Math.round(c/t.length*100):0;return s.jsxs("section",{"data-loc":"client/src/pages/LearningPathPage.tsx:70",className:"memphis-card overflow-hidden bg-white",children:[s.jsxs("button",{"data-loc":"client/src/pages/LearningPathPage.tsx:71",onClick:i,"aria-expanded":r,className:`flex w-full items-center gap-3 p-4 text-right sm:p-5 ${n}`,children:[s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:72",className:"text-3xl","aria-hidden":"true",children:e.icon}),s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:73",className:"min-w-0 flex-1",children:[s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:74",className:"block font-black text-lg text-black",children:e.nameAr}),s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:75",className:"mt-0.5 block text-xs font-bold text-black/60",children:[c," Ù
Ù ",t.length," Ø¯Ø±ÙØ³ Ù
ÙØªÙ
ÙØ©"]})]}),s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:77",className:"memphis-badge-pill bg-white text-xs",children:[d,"%"]}),r?s.jsx(i2,{"data-loc":"client/src/pages/LearningPathPage.tsx:78",className:"h-5 w-5 shrink-0"}):s.jsx($x,{"data-loc":"client/src/pages/LearningPathPage.tsx:78",className:"h-5 w-5 shrink-0"})]}),s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:80",className:"h-2 border-y border-black/10 bg-black/10",children:s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:80",className:"h-full bg-black transition-all",style:{width:`${d}%`}})}),r&&s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:82",className:"space-y-3 bg-memphis-peach/30 p-3 sm:p-4",children:[e.descriptionAr&&s.jsx("p",{"data-loc":"client/src/pages/LearningPathPage.tsx:83",className:"px-1 text-sm font-medium leading-relaxed text-black/65",children:e.descriptionAr}),t.map((m,f)=>{const h=a.has(m.id),x=f>0&&!a.has(t[f-1].id)&&!h;return s.jsx(d7e,{"data-loc":"client/src/pages/LearningPathPage.tsx:87",lesson:m,position:o+f
974+1,completed:h,locked:x,next:m.id===l,tone:n},m.id)}),t.length===0&&s.jsx("p",{"data-loc":"client/src/pages/LearningPathPage.tsx:89",className:"p-4 text-center text-sm font-bold text-black/50",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¯Ø±ÙØ³ Ù
ÙØ´Ùرة ÙÙ ÙØ°Ø§ اÙÙ
ØÙر ØØ§ÙÙØ§Ù."})]})]})}function p7e(){const{isAuthenticated:e,loading:t}=Ma(),a=J.categories.list.useQuery(),n=J.lessons.myCompletions.useQuery(void 0,{enabled:e}),r=J.streak.mine.useQuery(void 0,{enabled:e}),i=J.streak.recordLogin.useMutation(),[o,l]=P.useState([]);P.useEffect(()=>{e&&i.mutate()},[e]);const c=(a.data??[]).map(C=>C.id),d=J.lessons.byCategory.useQuery({categoryId:c[0]??0},{enabled:c.length>0}),m=J.lessons.byCategory.useQuery({categoryId:c[1]??0},{enabled:c.length>1}),f=J.lessons.byCategory.useQuery({categoryId:c[2]??0},{enabled:c.length>2}),h=J.lessons.byCategory.useQuery({categoryId:c[3]??0},{enabled:c.length>3}),x=J.lessons.byCategory.useQuery({categoryId:c[4]??0},{enabled:c.length>4}),b=[d.data??[],m.data??[],f.data??[],h.data??[],x.data??[]],y=P.useMemo(()=>new Set((n.data??[]).map(C=>C.lessonId)),[n.data]),w=b.flat(),j=w.find(C=>!y.has(C.id)),N=w.length,k=w.filter(C=>y.has(C.id)).length,D=N?Math.round(k/N*100):0;return P.useEffect(()=>{if(o.length||!a.data?.length)return;const C=b.findIndex(S=>S.some(A=>A.id===j?.id));l([a.data[C>=0?C:0].id])},[a.data,j?.id,o.length]),t?s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:126",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:126",className:"memphis-card p-8 font-black",children:"جار٠تØÙ
ÙÙ Ù
سارÙ..."})}):e?s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:130",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/LearningPathPage.tsx:131"}),s.jsxs("main",{"data-loc":"client/src/pages/LearningPathPage.tsx:132",className:"mx-auto max-w-3xl px-4 py-5 sm:py-8",children:[s.jsxs("header",{"data-loc":"client/src/pages/LearningPathPage.tsx:133",className:"memphis-card memphis-page-header mb-5 bg-memphis-yellow p-4 sm:p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:134",className:"flex flex-wrap items-center gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:135",className:"flex min-w-0 flex-1 items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:135",className:"rounded-xl border-2 border-black bg-white p-2",children:s.jsx(A6,{"data-loc":"client/src/pages/LearningPathPage.tsx:135",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:135",children:[s.jsx("h1",{"data-loc":"client/src/pages/LearningPathPage.tsx:135",className:"font-black text-2xl sm:text-3xl",children:"Ù
سار Ø§ÙØªØ¹ÙÙ
"}),s.jsx("p",{"data-loc":"client/src/pages/LearningPathPage.tsx:135",className:"text-sm font-bold text-black/65",children:"Ø®Ø·ÙØ§Øª ØµØºÙØ±Ø© ÙÙØ§Ø¶ØØ© ÙØÙ Ø§ÙØ¥ØªÙاÙ"})]})]}),s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:136",className:"memphis-badge-pill bg-black text-white",children:[D,"% Ù
ÙØªÙ
Ù"]})]}),s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:138",className:"memphis-progress-track mt-4 h-3",children:s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:138",className:"memphis-progress-fill",style:{width:`${D}%`}})}),s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:139",className:"mt-3 flex flex-wrap gap-2 text-xs font-black",children:[s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:139",className:"memphis-badge-pill bg-white",children:[k," Ù
ÙØªÙ
Ù"]}),s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:139",className:"memphis-badge-pill bg-white",children:[Math.max(0,N-k)," Ù
تبÙÙ"]}),r.data?.currentStreak?s.jsxs("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:139",className:"memphis-badge-pill bg-memphis-lilac",children:[r.data.currentStreak," Ø£ÙØ§Ù
Ù
تتاÙÙØ© ",s.jsx(vs,{"data-loc":"client/src/pages/LearningPathPage.tsx:139",className:"inline h-3 w-3"})]}):null]})]}),j?s.jsx(jt,{"data-loc":"client/src/pages/LearningPathPage.tsx:142",href:`/lesson/${j.id}`,children:s.jsx("section",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"memphis-card memphis-card--hero memphis-focus-ring mb-6 bg-memphis-mint p-4 hover:-translate-y-0.5",children:s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"rounded-xl border-2 border-black bg-white p-2",children:s.jsx(Os,{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"min-w-0 flex-1",children:[s.jsx("p",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"memphis-kicker text-black/60",children:"اÙÙØ±Ø§Ø± Ø§ÙØªØ§ÙÙ ÙÙ Ù
سارÙ"}),s.jsx("h2",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"font-black text-lg",children:j.titleAr}),s.jsxs("p",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"mt-1 text-sm font-medium text-black/65",children:["ابدأ Ø§ÙØ¢Ù ÙØªØØµÙ عÙÙ ",j.pointsReward," ÙÙØ·Ø© Ø®ÙØ§Ù ",j.durationMinutes," Ø¯ÙØ§Ø¦Ù."]})]}),s.jsx("span",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"memphis-btn bg-black px-3 py-2 text-xs font-black text-white",children:"ابدأ"})]})})}):s.jsxs("section",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"memphis-card memphis-card--hero mb
974-6 bg-memphis-mint p-5 text-center",children:[s.jsx(aa,{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"mx-auto mb-2 h-8 w-8"}),s.jsx("h2",{"data-loc":"client/src/pages/LearningPathPage.tsx:142",className:"font-black text-xl",children:"Ø£ÙÙ
ÙØª Ù
سارÙ!"})]}),s.jsx("section",{"data-loc":"client/src/pages/LearningPathPage.tsx:144",className:"space-y-4","aria-label":"Ù
ØØ§Ùر Ù
سار Ø§ÙØªØ¹ÙÙ
",children:(a.data??[]).map((C,S)=>{const A=b[S]??[],E=b.slice(0,S).reduce((R,F)=>R+F.length,0);return s.jsx(u7e,{"data-loc":"client/src/pages/LearningPathPage.tsx:148",category:C,lessons:A,completedIds:y,theme:Lq[S%Lq.length],isOpen:o.includes(C.id),onToggle:()=>l(R=>R.includes(C.id)?R.filter(F=>F!==C.id):[...R,C.id]),globalOffset:E,globalNextId:j?.id},C.id)})})]})]}):s.jsx("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:127",className:"min-h-screen memphis-bg flex items-center justify-center p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/LearningPathPage.tsx:127",className:"memphis-card max-w-sm p-8 text-center",children:[s.jsx(d2,{"data-loc":"client/src/pages/LearningPathPage.tsx:127",className:"mx-auto mb-3 h-10 w-10"}),s.jsx("h1",{"data-loc":"client/src/pages/LearningPathPage.tsx:127",className:"font-black text-2xl",children:"سجÙ٠دخÙÙÙ ÙØ±Ø¤ÙØ© Ù
سارÙ"}),s.jsx("button",{"data-loc":"client/src/pages/LearningPathPage.tsx:127",onClick:Rn,className:"memphis-btn mt-5 bg-black px-6 py-3 font-black text-white",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]})})}const m7e={lesson:{label:"درس Ù
ÙØªÙ
Ù",icon:s.jsx(Ln,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:7",className:"w-4 h-4"}),color:"bg-blue-100 text-blue-700 border-blue-200"},quiz:{label:"اختبار",icon:s.jsx(vs,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:8",className:"w-4 h-4"}),color:"bg-yellow-100 text-yellow-700 border-yellow-200"},challenge:{label:"ØªØØ¯Ù",icon:s.jsx(aa,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:9",className:"w-4 h-4"}),color:"bg-purple-100 text-purple-700 border-purple-200"},prize_redeem:{label:"استبداÙ/تجÙ
ÙØ¯",icon:s.jsx(Ig,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:10",className:"w-4 h-4"}),color:"bg-red-100 text-red-700 border-red-200"},bonus:{label:"Ù
ÙØ§Ùأة",icon:s.jsx(Eo,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:11",className:"w-4 h-4"}),color:"bg-green-100 text-green-700 border-green-200"}};function f7e(){const{isAuthenticated:e}=Ma(),t=J.profile.pointsHistory.useQuery({limit:100},{enabled:e});if(!e)return s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:23",className:"min-h-screen flex items-center justify-center bg-memphis-bg",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:24",className:"text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:25",className:"font-black text-lg mb-4",children:"ÙØ¬Ø¨ تسجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙØ¹Ø±Ø¶ سج٠اÙÙÙØ§Ø·"}),s.jsx("button",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:26",onClick:()=>Rn(),className:"memphis-btn bg-memphis-lilac px-6 py-3 font-black",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]})});const a=t.data??[],n=a.filter(i=>i.points>0).reduce((i,o)=>i+o.points,0),r=a.filter(i=>i.points<0).reduce((i,o)=>i+Math.abs(o.points),0);return s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:37",className:"min-h-screen bg-memphis-bg py-8 px-4",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:38",className:"max-w-2xl mx-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:40",className:"mb-6",children:[s.jsxs("h1",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:41",className:"font-black text-2xl text-black flex items-center gap-2",children:[s.jsx(aa,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:42",className:"w-7 h-7"})," سج٠اÙÙÙØ§Ø·"]}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:44",className:"text-black/50 font-bold text-sm mt-1",children:"ØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø§Ø¨ ÙØ¥ÙÙØ§Ù ÙÙØ§Ø·Ù"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:48",className:"grid grid-cols-2 gap-4 mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:49",className:"memphis-card p-4 bg-memphis-mint flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:50",className:"w-10 h-10 rounded-full border-2 border-black bg-green-200 flex items-center justify-center",children:s.jsx(er,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:51",className:"w-5 h-5 text-green-700"})}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:53",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:54",className:"text-xs font-bold text-black/50",children:"إجÙ
اÙ٠اÙÙ
ÙØªØ³Ø¨"}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:55",className:"font-black text-xl text-black",children:["+",n]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:58",className:"memphis-card p-4 bg-memphis-peach flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:59",className:"w-10 h-10 rounded-full border-2 border-black bg-red-200 flex items-center justify-center",children:s.jsx(PW,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:60",className:"w-5 h-5 text-red-700"})}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:62",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:63",className:"text-xs font-bold text-black/50",children:"إجÙ
اÙ٠اÙÙ
ÙÙÙÙ"}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:64",className:"font-black text-xl text-black",children:["-",r]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:70",className:"memphis-card overflow-hidden",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:71",className:"px-4 py-3 border-b-2 border-black bg-memphis-yellow",children:s.jsxs("span",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:72",className:"font-black text-sm",children:["آخر ",a.length," عÙ
ÙÙØ©"]})}),t.isLoading?s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:75",className:"flex items-center justify-center py-12",children:s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:76",className:"w-8 h-8 border-2 border-black border-t-transparent roun
974ded-full animate-spin"})}):a.length===0?s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:79",className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:80",className:"text-4xl mb-3",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:81",className:"font-black text-black/40",children:"ÙØ§ ØªÙØ¬Ø¯ ع٠ÙÙØ§Øª بعد"}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:82",className:"text-sm font-bold text-black/30 mt-1",children:"Ø£ÙÙ Ù Ø¯Ø±ÙØ³Ø§Ù ÙØªØ¨Ø¯Ø£ ÙÙ Ø§ÙØªØ³Ø§Ø¨ اÙÙÙØ§Ø·"})]}):s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:85",className:"divide-y divide-black/5",children:a.map(i=>{const o=m7e[i.sourceType]??{label:i.sourceType,icon:s.jsx(vs,{"data-loc":"client/src/pages/PointsHistoryPage.tsx:87",className:"w-4 h-4"}),color:"bg-gray-100 text-gray-700 border-gray-200"},l=i.points>0;return s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:90",className:"flex items-center gap-3 px-4 py-3 hover:bg-gray-50 transition-colors",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:92",className:`w-9 h-9 rounded-full border-2 border-black flex items-center justify-center flex-shrink-0 ${o.color}`,children:o.icon}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:96",className:"flex-1 min-w-0",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:97",className:"font-black text-sm text-black truncate",children:i.reason}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:98",className:"flex items-center gap-2 mt-0.5",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:99",className:`text-[10px] font-black px-2 py-0.5 rounded-full border ${o.color}`,children:o.label}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:100",className:"text-[10px] font-bold text-black/40",children:new Date(i.createdAt).toLocaleString("ar-SA")})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistoryPage.tsx:104",className:`font-black text-base flex-shrink-0 ${l?"text-green-600":"text-red-600"}`,children:[l?"+":"",i.points]})]},i.id)})})]})]})})}const h7e=y6("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Ga({className:e,variant:t,asChild:a=!1,...n}){const r=a?e6:"span";return s.jsx(r,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:zt(h7e({variant:t}),e),...n})}var O8="Progress",R8=100,[g7e]=Pi(O8),[x7e,b7e]=g7e(O8),yee=P.forwardRef((e,t)=>{const{__scopeProgress:a,value:n=null,max:r,getValueLabel:i=v7e,...o}=e;(r||r===0)&&!Fq(r)&&console.error(y7e(`${r}`,"Progress"));const l=Fq(r)?r:R8;n!==null&&!Bq(n,l)&&console.error(w7e(`${n}`,"Progress"));const c=Bq(n,l)?n:null,d=j1(c)?i(c,l):void 0;return s.jsx(x7e,{scope:a,value:c,max:l,children:s.jsx(Zt.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":j1(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":jee(c,l),"data-value":c??void 0,"data-max":l,...o,ref:t})})});yee.displayName=O8;var wee="ProgressIndicator",Pee=P.forwardRef((e,t)=>{const{__scopeProgress:a,...n}=e,r=b7e(wee,a);return s.jsx(Zt.div,{"data-state":jee(r.value,r.max),"data-value":r.value??void 0,"data-max":r.max,...n,ref:t})});Pee.displayName=wee;function v7e(e,t){return`${Math.round(e/t*100)}%`}function jee(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function j1(e){return typeof e=="number"}function Fq(e){return j1(e)&&!isNaN(e)&&e>0}function Bq(e,t){return j1(e)&&!isNaN(e)&&e<=t&&e>=0}function y7e(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${R8}\`.`}function w7e(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 975 - a positive number 976 - less than the value passed to \`max\` (or ${R8} if no \`max\` prop is set) 977 - \`null\` or \`undefined\` if the progress is indeterminate. 978 979Defaulting to \`null\`.`}var P7e=yee,j7e=Pee;function k1({className:e,value:t,...a}){return s.jsx(P7e,{"data-loc":"client/src/components/ui/progress.tsx:12","data-slot":"progress",className:zt("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...a,children:s.jsx(j7e,{"data-loc":"client/src/components/ui/progress.tsx:20","data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Li({className:e,...t}){return s.jsx(Ta,{"data-loc":"client/src/components/ui/spinner.tsx:7",role:"status","aria-label":"Loading",className:zt("size-4 animate-spin",e),...t})}const Eh={habit:{bg:"bg-memphis-mint",text:"text-green-800",label:"عادة"},mindset:{bg:"bg-memphis-lilac",text:"text-purple-800",label:"عÙ
979ÙÙØ©"},social:{bg:"bg-memphis-sky",text:"text-blue-800",label:"اجتÙ
اعÙ"},focus:{bg:"bg-memphis-yellow",text:"text-yellow-800",label:"ترÙÙØ²"}},k7e=["Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØ£ÙÙ: Ø§ÙØ¹Ø§Ø¯Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©","Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØ«Ø§ÙÙ: تطÙÙØ± Ø§ÙØ¹ÙÙÙØ©","Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØ«Ø§ÙØ«: Ø§ÙØªØ±ÙÙØ² ÙØ§ÙØ¥ÙØªØ§Ø¬ÙØ©","Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØ±Ø§Ø¨Ø¹: Ø§ÙØ«Ø¨Ø§Øª ÙØ§ÙÙÙ
Ù"];function N7e(e,t,a){return{nextTask:e.find(r=>!t.has(r.id)&&!a.has(r.id))??null,completedCount:t.size,skippedCount:a.size,handledCount:t.size+a.size}}function A7e(){const{user:e}=Ma(),[t,a]=P.useState(null),[n,r]=P.useState(!1),[i,o]=P.useState(""),l=J.thirtyDay.tasks.useQuery(),c=J.thirtyDay.myProgress.useQuery(),d=J.thirtyDay.mySkips.useQuery(),m=J.thirtyDay.reactivationNotificationPreference.useQuery(),f=J.thirtyDay.reactivationNotifications.useQuery({limit:20}),h=J.useUtils(),x=J.thirtyDay.completeTask.useMutation({onSuccess:F=>{F.alreadyDone?re.info("Ø£ÙØ¬Ø²Øª ÙØ°Ù اÙÙ
ÙÙ
Ø© Ù
Ø³Ø¨ÙØ§Ù!"):(re.success("Ø£ØØ³Ùت! تÙ
تسجÙÙ Ø¥ÙØ¬Ø§Ø² اÙÙ
ÙÙ
Ø© ð"),F.isComplete&&re.success("Ù
برÙÙ! أتÙ
Ù
ت ØªØØ¯Ù اÙÙ30 ÙÙÙ
ÙØ§Ù
ÙØ§Ù! ð
",{duration:5e3}),h.thirtyDay.myProgress.invalidate())},onError:()=>re.error("ØØ¯Ø« Ø®Ø·Ø£Ø ØØ§ÙÙ Ù
رة أخرÙ")}),b=J.thirtyDay.skipTask.useMutation({onSuccess:F=>{F.alreadySkipped?re.info("تÙ
ØªØ¬Ø§ÙØ² ÙØ°Ù اÙÙ
ÙÙ
Ø© Ù
Ø³Ø¨ÙØ§Ù"):re.success("تÙ
ØªØ¬Ø§ÙØ² Ù
ÙÙ
Ø© اÙÙÙÙ
. ÙÙ
ÙÙ٠اÙÙ
تابعة Ø¥Ù٠اÙÙ
ÙÙ
Ø© Ø§ÙØªØ§ÙÙØ©."),r(!1),o(""),h.thirtyDay.myProgress.invalidate(),h.thirtyDay.mySkips.invalidate()},onError:F=>re.error(F.message||"تعذر تسجÙÙ Ø§ÙØªØ®Ø·ÙØ ØØ§ÙÙ Ù
رة أخرÙ")}),y=J.thirtyDay.updateReactivationNotificationPreference.useMutation({onSuccess:F=>{re.success(F.enabled?"Ø³ÙØµÙÙ ØªÙØ¨ÙÙ Ø¹ÙØ¯ إعادة ØªÙØ¹Ù٠أ٠Ù
ÙÙ
Ø©":"تÙ
Ø¥ÙÙØ§Ù ØªÙØ¨ÙÙØ§Øª إعادة ØªÙØ¹Ù٠اÙÙ
ÙØ§Ù
"),h.thirtyDay.reactivationNotificationPreference.invalidate()},onError:()=>re.error("تعذر ØÙظ ØªÙØ¶ÙÙ Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§ØªØ ØØ§ÙÙ Ù
رة أخرÙ")}),w=new Set((c.data??[]).map(F=>F.taskId)),j=new Set((d.data??[]).map(F=>F.taskId)),N=l.data??[],{nextTask:k,completedCount:D,skippedCount:C,handledCount:S}=N7e(N,w,j),A=N.length,E=A>0?Math.round(S/A*100):0,R=k?Math.floor((k.dayNumber-1)/7):3;return e?l.isLoading||c.isLoading||d.isLoading?s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:88",className:"flex items-center justify-center min-h-screen",children:s.jsx(Li,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:88"})}):s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:91",className:"min-h-screen bg-background",dir:"rtl",children:[s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:93",className:"bg-memphis-peach border-b-2 border-black px-4 py-3 sm:px-6 sm:py-4",children:s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:94",className:"max-w-4xl mx-auto flex items-center justify-between gap-3",children:[s.jsx(jt,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:95",href:"/category/self-development",children:s.jsxs("button",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:96",className:"flex items-center gap-2 text-black/70 hover:text-black transition-colors font-medium",children:[s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:97",children:"â"})," Ø§ÙØ¹Ùدة ÙÙ
ØÙر تطÙÙØ± Ø§ÙØ°Ø§Øª"]})}),s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:100",className:"min-w-0 text-center",children:[s.jsx("h1",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:101",className:"text-lg sm:text-2xl font-black text-black",children:"ð
ØªØØ¯Ù اÙÙ30 ÙÙÙ
"}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:102",className:"hidden sm:block text-sm text-black/70",children:"رØÙØ© تطÙÙØ± Ø§ÙØ°Ø§Øª اÙÙÙÙ
ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:104",className:"shrink-0 text-left",children:[s.jsxs("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:105",className:"text-lg sm:text-2xl font-black text-black",children:[D,"/",A]}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:106",className:"text-xs text-black/60",children:"Ù
ÙØªÙ
Ù"})]})]})}),s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:111",className:"max-w-4xl mx-auto px-4 py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:113",className:"bg-white border-2 border-black rounded-2xl p-6 mb-8 shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:114",className:"flex items-center justify-between mb-3",children:[s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:115",className:"font-bold text-lg",children:"ØªÙØ¯Ù
Ù ÙÙ Ø§ÙØªØØ¯Ù"}),s.jsxs("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:116",className:"font-black text-2xl text-orange-600",children:[E,"%"]})]}),s.jsx(k1,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:118",value:E,className:"h-4 mb-3"}),C>0&&s.jsxs("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:119",className:"mb-3 text-sm font-medium text-black/70",children:["Ø£ÙØ¬Ø²Øª ",D," Ù
ÙÙ
Ø© ÙØªØ¬Ø§Ùزت ",C," Ù
ÙÙ
Ø© Ù
ع تسجÙÙ Ø£Ø³Ø¨Ø§Ø¨ÙØ§."]}),s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:120",className:"flex gap-4 text-sm text-black/60 flex-wrap",children:Object.entries(Eh).map(([F,I])=>{const H=N.filter(V=>V.category===F&&(w.has(V.id)||j.has(V.id))).length,_=N.filter(V=>V.category===F).length;return s.jsxs("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:125",className:`px-2 py-1 rounded-full ${I.bg} ${I.text} font-medium`,children:[I.label,": ",H,"/",_]},F)})}),S===A&&A>0&&s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:132",className:"mt-4 bg-memphis-peach border-2 border-black rounded-xl p-4 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:133",className:"text-xl font-black",children:"ð
Ø£ÙÙ
ÙØª Ù
سار ØªØØ¯Ù اÙÙ30 ÙÙÙ
!"}),s.jsxs("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:134",className:"text-sm text-black/70 mt-1",children:["Ø£ÙØ¬Ø²Øª ",D," Ù
ÙÙ
Ø©",C>0?` ÙØªØ¬Ø§Ùزت ${C} Ù
ع تسجÙÙ Ø£Ø³Ø¨Ø§Ø¨ÙØ§`:"","."]})]})]}),s.jsx("section",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:139",className:"mb-6 border-2 border-black rounded-2xl bg-white p-4 shadow-[3px_3px_0px_0px_rgba(0,0,0,1)]","aria-labelledby":"reactivation-notification-preference",children:s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:140",className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:141",className:"min-w-0",children:[s.jsx("h2",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:142",id:"reactivation-notification-preference",className:"font-black text-black",children:"ð ØªÙØ¨ÙÙØ§Øª إعادة ØªÙØ¹Ù٠اÙÙ
ÙÙ
Ø©"}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:143",className:"mt-1 text-sm leading-6 text-black/65",children:"اختر Ø¥Ù ÙÙØª ØªØ±ÙØ¯ اØ
979³ØªÙØ¨Ø§Ù ØªÙØ¨ÙÙ Ø¹ÙØ¯Ù
ا ÙØ¹Ùد اÙÙ
Ø¯ÙØ± ØªÙØ¹ÙÙ Ø¥ØØ¯Ù Ù
ÙØ§Ù
٠اÙÙ
ØªØ¬Ø§ÙØ²Ø©."})]}),s.jsxs("button",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:145",type:"button",role:"switch","aria-checked":m.data!==!1,disabled:m.isLoading||y.isPending,onClick:()=>y.mutate({enabled:m.data===!1}),className:`relative h-8 w-14 shrink-0 rounded-full border-2 border-black transition-colors ${m.data!==!1?"bg-memphis-mint":"bg-gray-200"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:153",className:`absolute top-0.5 h-6 w-6 rounded-full border-2 border-black bg-white transition-transform ${m.data!==!1?"translate-x-0.5":"translate-x-6"}`}),s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:154",className:"sr-only",children:"تبدÙÙ ØªÙØ¨ÙÙØ§Øª إعادة ØªÙØ¹Ù٠اÙÙ
ÙÙ
Ø©"})]})]})}),s.jsxs("section",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:159",className:"mb-8 border-2 border-black rounded-2xl bg-white p-4 shadow-[3px_3px_0px_0px_rgba(0,0,0,1)]","aria-labelledby":"reactivation-history-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:160",className:"flex items-center justify-between gap-3 border-b-2 border-black pb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:161",children:[s.jsx("h2",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:162",id:"reactivation-history-title",className:"font-black text-black",children:"⻠سج٠إعادة ØªÙØ¹Ù٠اÙÙ
ÙØ§Ù
"}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:163",className:"mt-1 text-sm text-black/60",children:"راجع Ø§ÙØªÙبÙÙØ§Øª Ø§ÙØ³Ø§Ø¨ÙØ© اÙÙ
رتبطة Ø¨ØªØØ¯ÙÙ."})]}),s.jsx(Ga,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:165",className:"border-2 border-black bg-memphis-yellow text-black",children:f.data?.length??0})]}),f.isLoading?s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:168",className:"flex justify-center py-6",children:s.jsx(Li,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:168"})}):f.data?.length?s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:172",className:"mt-3 space-y-3",children:f.data.map(F=>s.jsxs("article",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:174",className:`rounded-xl border-2 border-black p-3 ${F.isRead?"bg-gray-50":"bg-memphis-mint/40"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:175",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:176",children:[s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:176",className:"font-black text-sm text-black",children:F.title}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:176",className:"mt-1 text-sm leading-6 text-black/70",children:F.body})]}),!F.isRead&&s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:177",className:"mt-1 h-3 w-3 shrink-0 rounded-full border border-black bg-memphis-lilac","aria-label":"إشعار ØºÙØ± Ù
ÙØ±ÙØ¡"})]}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:179",className:"mt-2 text-xs text-black/45",children:new Date(F.createdAt).toLocaleString("ar-SA")})]},F.id))}):s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:170",className:"py-5 text-center text-sm font-medium text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ إعادة ØªÙØ¹ÙÙ Ø³Ø§Ø¨ÙØ© ÙÙ
ÙØ§Ù
Ù."})]}),k?(()=>{const F=Eh[k.category]??Eh.habit;return s.jsxs("section",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:190",className:`mb-6 border-2 border-black rounded-2xl p-5 sm:p-6 shadow-[5px_5px_0px_0px_rgba(0,0,0,1)] ${F.bg}`,"aria-labelledby":"today-task-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:191",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:192",className:"min-w-0",children:[s.jsxs("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:193",className:"text-sm font-black text-black/70",children:["Ù
ÙÙ
Ø© اÙÙÙÙ
· اÙÙÙÙ
",k.dayNumber]}),s.jsxs("h2",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:194",id:"today-task-title",className:"mt-1 text-xl sm:text-2xl font-black text-black",children:[k.icon," ",k.titleAr]}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:195",className:"mt-2 text-sm sm:text-base leading-7 text-black/80",children:k.descriptionAr})]}),s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:197",className:"shrink-0 rounded-full border-2 border-black bg-white px-3 py-1 text-sm font-black",children:F.label})]}),s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:199",className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[s.jsx(Ie,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:200",className:"min-h-12 w-full bg-black text-base font-black text-white hover:bg-black/80 sm:w-auto
979sm:min-w-48",onClick:()=>x.mutate({taskId:k.id}),disabled:x.isPending||b.isPending,children:x.isPending?"جار٠تسجÙÙ Ø§ÙØ¥Ùجاز...":"â Ø£Ùجزت Ù
ÙÙ
Ø© اÙÙÙÙ
"}),s.jsx(Ie,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:207",variant:"outline",className:"min-h-12 w-full border-2 border-black bg-white/80 text-base font-black text-black hover:bg-white sm:w-auto",onClick:()=>r(!0),disabled:x.isPending||b.isPending,children:"تخط٠اÙÙ
ÙÙ
Ø©"})]})]})})():s.jsxs("section",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:219",className:"mb-6 border-2 border-black rounded-2xl bg-memphis-mint p-5 text-center shadow-[5px_5px_0px_0px_rgba(0,0,0,1)]",children:[s.jsx("h2",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:220",className:"text-xl font-black",children:"ð
ÙØ§ ØªÙØ¬Ø¯ Ù
ÙÙ
Ø© Ù
تبÙÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:221",className:"mt-1 text-black/70",children:"Ø£ÙÙÙØª Ù
سار ØªØØ¯Ù Ø§ÙØ«ÙاثÙÙ ÙÙÙ
اÙ. راجع Ø®Ø±ÙØ·ØªÙ ÙÙ
Ø¹Ø±ÙØ© اÙÙ
ÙØ§Ù
اÙÙ
ØªØ¬Ø§ÙØ²Ø©."})]}),[0,1,2,3].map(F=>{const I=N.slice(F*7,F*7+7),H=I.filter(V=>w.has(V.id)).length,_=(t??R)===F;return s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:231",className:"mb-4 border-2 border-black rounded-2xl bg-white overflow-hidden",children:[s.jsxs("button",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:232",type:"button",onClick:()=>a(_?null:F),className:"flex min-h-16 w-full items-center justify-between gap-3 px-4 text-right transition-colors hover:bg-memphis-peach/40","aria-expanded":_,children:[s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:238",className:"font-black text-base sm:text-lg text-black",children:k7e[F]}),s.jsxs("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:239",className:"flex shrink-0 items-center gap-2",children:[s.jsxs(Ga,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:240",variant:"outline",className:"font-bold border-black",children:[H,"/",I.length]}),s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:241","aria-hidden":"true",className:"text-lg",children:_?"â":"â"})]})]}),_&&s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:244",className:"grid gap-3 border-t-2 border-black bg-memphis-peach/20 p-3 sm:p-4",children:I.map(V=>{const W=w.has(V.id),B=j.has(V.id),K=Eh[V.category]??Eh.habit;return s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:250",className:`border-2 border-black rounded-xl p-4 flex flex-col sm:flex-row sm:items-start gap-3 sm:gap-4 transition-all ${W?"bg-memphis-mint opacity-80":B?"bg-memphis-yellow/60 opacity-80":"bg-white hover:shadow-[3px_3px_0px_0px_rgba(0,0,0,1)]"}`,children:[s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:257",className:`w-10 h-10 rounded-full border-2 border-black flex items-center justify-center font-black text-sm flex-shrink-0 ${W?"bg-green-400":B?"bg-yellow-300":"bg-memphis-peach"}`,children:W?"â":B?"â·":V.dayNumber}),s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:261",className:"flex-1 min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:262",className:"flex items-center gap-2 mb-1 flex-wrap",children:[s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:263",className:"text-xl",children:V.icon}),s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:264",className:"font-bold text-black",children:V.titleAr}),s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:265",className:`text-xs px-2 py-0.5 rounded-full border border-black ${K.bg} ${K.text}`,children:K.label})]}),s.jsx("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:269",className:"text-sm text-black/70 leading-relaxed",children:V.descriptionAr})]}),!W&&s.jsx(Ie,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:273",size:"sm",className:"w-full sm:w-auto sm:flex-shrink-0 bg-black text-white hover:bg-black/80 font-bold border-2 border-black",onClick:()=>x.mutate({taskId:V.id}),disabled:x.isPending,children:"Ø£ÙØ¬Ø²Øª!"}),W&&s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:283",className:"flex-shrink-0 text-green-600 font-bold text-sm",children:"â Ù
ÙØªÙ
Ù"}),B&&s.jsx("span",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:286",className:"flex-shrink-0 font-bold text-sm text-yellow-800",children:"ⷠتÙ
Ø§ÙØªØ¬Ø§Ùز"})]},V.id)})})]},F)})]}),s.jsx(xs,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:297",open:n,onOpenChange:r,children:s.jsxs(bs,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:298",dir:"rtl",className:"max-w-md border-2 border-black",children:[s.jsxs(ml,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:299",children:[s.jsx(Ui,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:300",className:"text-right",children:"تخط٠Ù
ÙÙ
Ø© اÙÙÙÙ
"}),s.jsx(lf,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:301",className:"text-right leading-6",children:"سÙÙØ³Ø¬ÙÙ Ø§ÙØªØ®Ø·Ù ÙÙØ°Ù اÙÙ
ÙÙ
Ø© ÙÙØ·Ø Ø«Ù
ØªÙØªÙ٠إÙ٠اÙÙ
ÙÙ
Ø© Ø§ÙØªØ§ÙÙØ© Ù٠اÙÙ
سار. Ø§ÙØªØ¨ سببا٠Ù
Ø®ØªØµØ±Ø§Ù ÙØªØØªÙظ بسج٠Ù
ÙÙØ¯ ÙÙ
راجعة رØÙØªÙ ÙØ§ØÙاÙ."})]}),s.jsx(Es,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:305",value:i,onChange:F=>o(F.target.value),placeholder:"Ù
ثاÙ: ÙØ¯Ù Ø§ÙØªØ²Ø§Ù
عاج٠اÙÙÙÙ
ÙØ³Ø£Ø¹Ùد ÙÙÙ
ÙÙ
Ø© ÙØ§ØÙاÙ",className:"min-h-28 border-2 border-black",maxLength:500,"aria-label":"سبب تخط٠Ù
ÙÙ
Ø© اÙÙÙÙ
"}),s.jsxs("p",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:313",className:"text-left text-xs text-muted-foreground",children:[i.trim().length,"/500"]}),s.jsxs(nu,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:314",className:"gap-2 sm:justify-start",children:[s.jsx(Ie,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:315",variant:"outline",className:"border-2 border-black",onClick:()=>r(!1),disabled:b.isPending,children:"Ø¥ÙØºØ§Ø¡"}),s.jsx(Ie,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:316",variant:"destructive",className:"border-2 border-black font-bold",disabled:i.trim().length<3||b.isPending||!k,onClick:()=>k&&b.mutate({taskId:k.id,reason:i.trim()}),children:b.isPending?"جار٠تسجÙÙ Ø§ÙØªØ®Ø·Ù...":"تأÙÙØ¯ Ø§ÙØªØ®Ø·Ù"})]})]})})]}):s.jsx("div",{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:87",className:"flex items-center justify-center min-h-screen",children:s.jsx(Li,{"data-loc":"client/src/pages/ThirtyDayChallengePage.tsx:87"})})}const Op=[{id:1,area:"habits",text:"ÙÙÙ ØªØµÙ Ø¹ÙØ§ÙØªÙ Ø¨Ø§ÙØ¹Ø§Ø¯Ø§Øª اÙÙÙÙ
ÙØ©Ø",o
979ptions:[{text:"Ø¹ÙØ¯Ù Ø±ÙØªÙ٠ثابت ÙØ£ÙØ¬Ø ÙÙ Ø§ÙØ§ÙتزاÙ
بÙ",score:10},{text:"Ø£ØØ§ÙÙ ÙÙ٠أØÙØ§ÙØ§Ù Ø£ÙØ³Ù Ø£Ù Ø£ØªÙØ§Ø³Ù",score:6},{text:"أبدأ بØÙ
اس ÙØ£ÙÙ٠بعد Ø£ÙØ§Ù
",score:3},{text:"Ù
ا Ø¹ÙØ¯Ù عادات Ù
ÙØªØ¸Ù
Ø© Ø£ØµÙØ§Ù",score:1}]},{id:2,area:"goals",text:"ÙÙ٠تضع Ø£ÙØ¯Ø§ÙÙØ",options:[{text:"Ø£ÙØªØ¨ Ø£ÙØ¯Ø§ÙØ§Ù ÙØ§Ø¶ØØ© Ù
ع خطة ØªÙØµÙÙÙØ© ÙÙ
ÙØ¹Ø¯ ÙÙØ§Ø¦Ù",score:10},{text:"Ø¹ÙØ¯Ù Ø£ÙØ¯Ø§Ù Ù٠ذÙÙÙ ÙÙÙ Ù
ا Ø£ÙØªØ¨Ùا",score:6},{text:"Ø£ÙØ¯Ø§Ù٠عاÙ
Ø© Ù
ث٠'Ø£ÙÙÙ Ø£ÙØ¶Ù'",score:3},{text:"Ù
ا Ø£ÙÙØ± ÙÙ Ø§ÙØ£ÙØ¯Ø§Ù ÙØ«ÙراÙ",score:1}]},{id:3,area:"emotional",text:"ÙÙ٠تتعاÙ
Ù Ù
ع اÙÙ
شاعر Ø§ÙØµØ¹Ø¨Ø© ÙÙ Ø§ÙØ¹Ù
ÙØ",options:[{text:"أتعر٠عÙÙ Ù
Ø´Ø§Ø¹Ø±Ù ÙØ£ØªØ¹Ø§Ù
Ù Ù
Ø¹ÙØ§ Ø¨ÙØ¯ÙØ¡ ÙØ°Ùاء",score:10},{text:"Ø£ØØ§Ù٠أتØÙÙ
بÙ
شاعر٠ÙÙ٠أØÙØ§ÙØ§Ù ØªØºÙØ¨ÙÙ",score:6},{text:"Ø£ÙØ¨Øª Ù
Ø´Ø§Ø¹Ø±Ù ÙØ£ÙÙ
Ù Ø§ÙØ´ØºÙ",score:3},{text:"اÙÙ
شاعر Ø§ÙØµØ¹Ø¨Ø© تؤثر ÙØ«Ùرا٠عÙ٠أدائÙ",score:1}]},{id:4,area:"mindset",text:"ÙÙÙ ØªÙØ¸Ø± ÙÙØ£Ø®Ø·Ø§Ø¡ ÙØ§ÙÙØ´ÙØ",options:[{text:"ÙØ±ØµØ© ÙÙØªØ¹ÙÙ
â ÙÙ ØºÙØ·Ø© تعÙÙ
ÙÙ Ø´ÙØ¦Ø§Ù Ø¬Ø¯ÙØ¯Ø§Ù",score:10},{text:"Ù
زعجة ÙÙÙ Ø£ØªØ¬Ø§ÙØ²Ùا بعد ÙØªØ±Ø©",score:6},{text:"Ø£ØÙØ§ÙØ§Ù تؤثر عÙÙ Ø«ÙØªÙ بÙÙØ³Ù",score:3},{text:"اÙÙØ´Ù ÙØ«Ø¨Ø·ÙÙ ÙÙØ¬Ø¹ÙÙ٠أتÙÙÙ",score:1}]},{id:5,area:"habits",text:"ÙÙ
Ù
رة ÙÙ Ø§ÙØ£Ø³Ø¨Ùع ØªÙØ±Ø£ أ٠تتعÙÙ
Ø´ÙØ¦Ø§Ù Ø¬Ø¯ÙØ¯Ø§ÙØ",options:[{text:"ÙÙ ÙÙÙ
ØªÙØ±ÙباÙ",score:10},{text:"3-4 Ù
رات ÙÙ Ø§ÙØ£Ø³Ø¨Ùع",score:7},{text:"Ù
رة Ø£Ù Ù
رتÙÙ",score:4},{text:"ÙØ§Ø¯Ø±Ø§Ù أ٠أبداÙ",score:1}]},{id:6,area:"goals",text:"ÙÙ٠تتعاÙ
Ù Ù
ع اÙÙ
ÙØ§Ù
اÙÙØ¨Ùرة ÙØ§ÙÙ
Ø¹ÙØ¯Ø©Ø",options:[{text:"Ø£ÙØ³Ù
ÙØ§ ÙØ®Ø·Ùات ØµØºÙØ±Ø© ÙØ£Ø¨Ø¯Ø£ ÙÙØ±Ø§Ù",score:10},{text:"أخطط ÙÙØ§ ÙÙÙ Ø§ÙØªÙÙÙØ° ÙØ£Ø®Ø° ÙÙØªØ§Ù",score:6},{text:"أؤجÙÙØ§ ØØªÙ ÙØµÙر ÙÙÙØ§ ضغط",score:3},{text:"Ø£ØªØ¬ÙØ¨Ùا ÙØ¯Ø± Ø§ÙØ¥Ù
ÙØ§Ù",score:1}]},{id:7,area:"emotional",text:"ÙÙ٠تتعاÙ
Ù Ù
ع Ø§ÙØ§ÙØªÙØ§Ø¯Ø§Øª Ù
Ù Ø§ÙØ¢Ø®Ø±ÙÙØ",options:[{text:"Ø£Ø³ØªÙØ¨ÙÙØ§ بصدر Ø±ØØ¨ ÙØ£Ø³ØªÙÙØ¯ Ù
ÙÙØ§ ÙÙØªØØ³ÙÙ",score:10},{text:"Ø£ØØ§Ù٠أستÙÙØ¯ ÙÙÙ Ø¨Ø¹Ø¶ÙØ§ ÙØ¤ÙÙ
ÙÙ",score:6},{text:"Ø£ØªÙØ¨ÙÙØ§ Ø¸Ø§ÙØ±Ùا٠ÙÙ٠تأثر عÙÙ٠داخÙÙØ§Ù",score:3},{text:"صعب عÙÙÙ Ø£ØªÙØ¨Ù Ø§ÙØ§ÙØªÙØ§Ø¯",score:1}]},{id:8,area:"mindset",text:"Ù
ا Ø§ÙØ°Ù ÙØµÙ Ø£ÙÙØ§Ø±Ù Ø¹Ù ÙØ¯Ø±Ø§ØªÙØ",options:[{text:"Ø£ÙØ¯Ø±Ø§ØªÙ ØªØªØ·ÙØ± Ù
ع Ø§ÙØ¬Ùد ÙØ§ÙتعÙÙ
اÙÙ
ستÙ
ر",score:10},{text:"Ø¹ÙØ¯Ù Ù
ÙØ§Ùب Ù
عÙÙØ© ÙØ£ØØ§ÙÙ Ø£Ø·ÙØ±Ùا",score:7},{text:"بعض Ø§ÙØ£Ø´Ùاء Ø£ÙØ¯Ø± عÙÙÙØ§ ÙØ¨Ø¹Ø¶Ùا ÙØ§",score:4},{text:"اÙÙØ§Ø³ تÙÙØ¯ Ø¨ÙØ¯Ø±Ø§Øª ثابتة Ù
ا ØªØªØºÙØ± ÙØ«ÙراÙ",score:1}]}];function S7e(e,t){const a={habits:t[0]??0,goals:t[1]??0,emotional:t[2]??0,mindset:t[3]??0};return Object.entries(e).sort((r,i)=>r[1]-i[1]).map(([r])=>a[r]).filter(Boolean)}const Rp={habits:"Ø¨ÙØ§Ø¡ Ø§ÙØ¹Ø§Ø¯Ø§Øª",goals:"ØªØØ¯Ùد Ø§ÙØ£ÙداÙ",emotional:"Ø§ÙØ°Ùاء Ø§ÙØ¹Ø§Ø·ÙÙ",mindset:"Ø§ÙØªÙÙÙØ± Ø§ÙØ¥ÙجابÙ"},Md={habits:"ð±",goals:"ð¯",emotional:"ð",mindset:"ð§ "};function C7e(){const{user:e}=Ma(),[,t]=Mo(),[a,n]=P.useState("intro"),[r,i]=P.useState(0),[o,l]=P.useState({}),[c,d]=P.useState({});J.lessons.byCategory.useQuery({categoryId:0},{enabled:!1});const m=J.categories.list.useQuery(),f=J.diagnostic.save.useMutation({onSuccess:()=>re.success("تÙ
ØÙظ ÙØªØ§Ø¦Ø¬ Ø§ÙØ§Ø®ØªØ¨Ø§Ø±!"),onError:()=>re.error("ØØ¯Ø« خطأ ÙÙ Ø§ÙØÙØ¸")}),h=(m.data??[]).find(S=>S.slug==="self-development"),x=J.lessons.byCategory.useQuery({categoryId:h?.id??0},{enabled:!!h}),b=(x.data??[]).map(S=>S.id),y=x.data??[],w=S=>{const A=Op[r],E={...o,[A.id]:S};if(l(E),r<Op.length-1)i(r+1);else{const R={};Op.forEach(H=>{R[H.area]||(R[H.area]=[]),E[H.id]!==void 0&&R[H.area].push(E[H.id])});const F={};
979Object.entries(R).forEach(([H,_])=>{F[H]=Math.round(_.reduce((V,W)=>V+W,0)/_.length)}),d(F);const I=S7e(F,b);f.mutate({scores:F,recommendedOrder:I}),n("result")}};if(!e)return s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:181",className:"flex items-center justify-center min-h-screen",children:s.jsx(Li,{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:181"})});if(a==="intro")return s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:186",className:"min-h-screen bg-background flex items-center justify-center p-4",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:187",className:"max-w-lg w-full bg-white border-2 border-black rounded-3xl p-8 shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:188",className:"text-center mb-6",children:[s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:189",className:"text-6xl mb-4",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:190",className:"text-2xl font-black text-black mb-2",children:"Ø§ÙØ§Ø®ØªØ¨Ø§Ø± Ø§ÙØªØ´Ø®ÙصÙ"}),s.jsx("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:191",className:"text-black/70 leading-relaxed",children:"8 Ø£Ø³Ø¦ÙØ© Ø³Ø±ÙØ¹Ø© ØªØ³Ø§Ø¹Ø¯ÙØ§ ÙØØ¯Ø¯ ÙÙØ§Ø· ÙÙØªÙ ÙØªØØ¯Ùات٠Ù٠تطÙÙØ± Ø§ÙØ°Ø§ØªØ ÙÙÙØªØ±Ø عÙÙÙ Ø§ÙØªØ±ØªÙب Ø§ÙØ£Ùسب ÙÙØ¯Ø±Ùس."})]}),s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:195",className:"grid grid-cols-2 gap-3 mb-6",children:Object.entries(Rp).map(([S,A])=>s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:197",className:"bg-memphis-peach border border-black rounded-xl p-3 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:198",className:"text-2xl mb-1",children:Md[S]}),s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:199",className:"text-sm font-bold text-black",children:A})]},S))}),s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:203",className:"flex gap-3",children:[s.jsx(Ie,{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:204",className:"flex-1 bg-black text-white font-bold text-lg py-3 rounded-xl border-2 border-black hover:bg-black/80",onClick:()=>n("test"),children:"ابدأ Ø§ÙØ§Ø®ØªØ¨Ø§Ø± â"}),s.jsx(Ie,{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:210",variant:"outline",className:"border-2 border-black font-bold",onClick:()=>t("/category/self-development"),children:"Ø±Ø¬ÙØ¹"})]})]})});if(a==="test"){const S=Op[r],A=Math.round(r/Op.length*100);return s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:228",className:"min-h-screen bg-background flex items-center justify-center p-4",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:229",className:"max-w-lg w-full",children:[s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:231",className:"mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:232",className:"flex justify-between text-sm font-bold text-black/70 mb-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:233",children:["Ø§ÙØ³Ø¤Ø§Ù ",r+1," Ù
Ù ",Op.length]}),s.jsxs("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:234",children:[Md[S.area]," ",Rp[S.area]]})]}),s.jsx(k1,{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:236",value:A,className:"h-3"})]}),s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:239",className:"bg-white border-2 border-black rounded-3xl p-8 shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:240",className:"text-4xl text-center mb-4",children:Md[S.area]}),s.jsx("h2",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:241",className:"text-xl font-black text-black text-center mb-6 leading-relaxed",children:S.text}),s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:242",className:"grid gap-3",children:S.options.map((E,R)=>s.jsx("button",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:244",className:"w-full text-right p-4 border-2 border-black rounded-xl bg-white hover:bg-memphis-peach hover:shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] transition-all font-medium text-black active:scale-[0.98]",onClick:()=>w(E.score),children:E.text},R))})]})]})})}const j=Object.entries(c).sort((S,A)=>A[1]-S[1]),N=j[0],k=j[j.length-1],D={habits:y[0],goals:y[1],emotional:y[2],mindset:y[3]},C=Object.entries(c).sort((S,A)=>S[1]-A[1]).map(([S])=>({area:S,lesson:D[S]})).filter(S=>S.lesson);return s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:276",className:"min-h-screen bg-background p-4",dir:"rtl",children:s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:277",className:"max-w-lg mx-auto",children:s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:278",className:"bg-white border-2 border-black rounded-3xl p-8 shadow-[6px_6px_0px_0px_rgba(0,0,0,1)] mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:279",className:"text-center mb-6",children:[s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:280",className:"text-5xl mb-3",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:281",className:"text-2xl font-black text-black",children:"ÙØªØ§Ø¦Ø¬ Ø§Ø®ØªØ¨Ø§Ø±Ù Ø§ÙØªØ´Ø®ÙصÙ"}),s.jsx("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:282",className:"text-black/60 text-sm mt-1",children:"Ø¨ÙØ§Ø¡Ù عÙÙ Ø¥Ø¬Ø§Ø¨Ø§ØªÙØ ÙØ°Ø§ تÙÙÙÙ
Ù ÙÙ ÙÙ Ù
جاÙ"})]}),s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:286",className:"grid gap-4 mb-6",children:j.map(([S,A])=>{const E=A>=8?{label:"Ù
Ù
تاز",color:"bg-memphis-mint"}:A>=5?{label:"Ø¬ÙØ¯",color:"bg-memphis-yellow"}:{label:"ÙØØªØ§Ø¬ تطÙÙØ±",color:"bg-memphis-peach"};return s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:292",className:`border-2 border-black rounded-xl p-4 ${E.color}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:293",className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:294",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:295",className:"text-xl",children:Md[S]}),s.jsx("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:296",className:"font-bold text-black",children:Rp[S]})]}),s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:298",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:299",className:"font-black text-black",children:[A,"/10"]}),s.jsx("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:300",className:"text-xs px-2 py-0.5 bg-white border border-black rounded-full font-medium",children:E.label})]})]}),s.jsx(k1,{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:303",value:A*10,className:"h-2"})]},S)})}),s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:310",className:"bg-memphis-sky border-2 border-black rounded-xl p-4 mb-4",children:[s.jsxs("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:311",className:"font-bold text-black mb-1",children:["ðª ÙÙØ·Ø© ÙÙØªÙ: ",Md[N?.[0]??"habits"]," ",Rp[N?.[0]??"habits"]]}),s.jsx("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:312",className:"text-sm text-black/70",children:"Ø£ÙØª Ù
تÙ
ÙØ² ÙÙ ÙØ°Ø§ اÙÙ
جا٠â ÙØ§ØµÙ ÙØ·Ùر Ø§ÙØ¢Ø®Ø±ÙÙ!"})]}),s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:314",className:"bg-memphis-peach border-2 border-black rounded-xl p-4 mb-6",children:[s.jsxs("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:315",className:"font-bold text-black mb-1",children:["ð¯ Ø§Ø¨Ø¯Ø£ بتطÙÙØ±: ",Md[k?.[0]??"mindset"]," ",Rp[k?.[0]??"mindset"]]}),s.jsx("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:316",className:"text-sm text-black/70",children:"ÙÙØµÙ٠تبدأ بدرس ÙØ°Ø§ اÙÙ
جا٠أÙÙØ§Ù ÙØ£Ùبر ØªØ£Ø«ÙØ± عÙÙ ØÙاتÙ."})]}),s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:319",className:"flex gap-3",children:[s.jsx(Ie,{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:320",className:"flex-1 bg-black text-white font-bold border-2 border-black rounded-xl hover:bg-black/80",onClick:()=>t("/category/self-development"),children:"ابدأ Ø§ÙØ¯Ø±Ùس â"}),s.jsx(Ie,{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:326",variant:"outline",className:"border-2 border-black font-bold",onClick:()=>{n("intro"),i(0),l({})},children:"أعد Ø§ÙØ§Ø®ØªØ¨Ø§Ø±"})]}),C.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:337",className:"mt-6",children:[s.jsx("h3",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:338",className:"font-black text-black mb-3",children:"ð Ø§ÙØªØ±ØªÙب اÙÙ
ÙØªØ±Ø ÙÙØ¯Ø±Ùس (Ù
Ù Ø§ÙØ£ÙÙ
ÙÙ)"}),s.jsx("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:339",className:"grid gap-2",children:C.map((S,A)=>s.jsxs("a",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:341",href:`/lesson/${S.lesson.id}`,className:`flex items-center gap-3 p-3 border-2 border-black rounded-xl hover:shadow-[3px_3px_0px_0px_rgba(0,0,0,1)] transition-all ${A===0?"bg-memphis-peach":"bg-white"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:348",className:"w-7 h-7 rounded-full bg-black text-white flex items-center justify-center text-sm font-black flex-shrink-0",children:A+1}),s.jsx("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:351",className:"text-lg",children:Md[S.area]}),s.jsxs("div",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:352",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:353",className:"font-bold text-black text-sm",children:S.lesson.titleAr}),s.jsx("p",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:354",className:"text-xs text-black/60",children:Rp[S.area]})]}),A===0&&s.jsx("span",{"data-loc":"client/src/pages/DiagnosticTestPage.tsx:356",className:"text-xs bg-black text-white px-2 py-0.5 rounded-full font-bold",children:"ابدأ ÙÙØ§"})]},S.lesson.id))})]})]})})})}var T7e=Object.defineProperty,N1=Object.getOwnPropertySymbols,kee=Object.prototype.hasOwnProperty,Nee=Object.prototype.propertyIsEnumerable,Gq=(e,t,a)=>t in e?T7e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,PT=(e,t)=>
979{for(var a in t||(t={}))kee.call(t,a)&&Gq(e,a,t[a]);if(N1)for(var a of N1(t))Nee.call(t,a)&&Gq(e,a,t[a]);return e},jT=(e,t)=>{var a={};for(var n in e)kee.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&N1)for(var n of N1(e))t.indexOf(n)<0&&Nee.call(e,n)&&(a[n]=e[n]);return a};/** 980 * @license QR Code generator library (TypeScript) 981 * Copyright (c) Project Nayuki. 982 * SPDX-License-Identifier: MIT 983 */var ku;(e=>{const t=class ba{constructor(c,d,m,f){if(this.version=c,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],c<ba.MIN_VERSION||c>ba.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=c*4+17;let h=[];for(let b=0;b<this.size;b++)h.push(!1);for(let b=0;b<this.size;b++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();const x=this.addEccAndInterleave(m);if(this.drawCodewords(x),f==-1){let b=1e9;for(let y=0;y<8;y++){this.applyMask(y),this.drawFormatBits(y);const w=this.getPenaltyScore();w<b&&(f=y,b=w),this.applyMask(y)}}r(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(c,d){const m=e.QrSegment.makeSegments(c);return ba.encodeSegments(m,d)}static encodeBinary(c,d){const m=e.QrSegment.makeBytes(c);return ba.encodeSegments([m],d)}static encodeSegments(c,d,m=1,f=40,h=-1,x=!0){if(!(ba.MIN_VERSION<=m&&m<=f&&f<=ba.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");let b,y;for(b=m;;b++){const k=ba.getNumDataCodewords(b,d)*8,D=o.getTotalBits(c,b);if(D<=k){y=D;break}if(b>=f)throw new RangeError("Data too long")}for(const k of[ba.Ecc.MEDIUM,ba.Ecc.QUARTILE,ba.Ecc.HIGH])x&&y<=ba.getNumDataCodewords(b,k)*8&&(d=k);let w=[];for(const k of c){a(k.mode.modeBits,4,w),a(k.numChars,k.mode.numCharCountBits(b),w);for(const D of k.getData())w.push(D)}r(w.length==y);const j=ba.getNumDataCodewords(b,d)*8;r(w.length<=j),a(0,Math.min(4,j-w.length),w),a(0,(8-w.length%8)%8,w),r(w.length%8==0);for(let k=236;w.length<j;k^=253)a(k,8,w);let N=[];for(;N.length*8<w.length;)N.push(0);return w.forEach((k,D)=>N[D>>>3]|=k<<7-(D&7)),new ba(b,d,N,h)}getModule(c,d){return 0<=c&&c<this.size&&0<=d&&d<this.size&&this.modules[d][c]}getModules(){return this.modules}drawFunctionPatterns(){for(let m=0;m<this.size;m++)this.setFunctionModule(6,m,m%2==0),this.setFunctionModule(m,6,m%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const c=this.getAlignmentPatternPositions(),d=c.length;for(let m=0;m<d;m++)for(let f=0;f<d;f++)m==0&&f==0||m==0&&f==d-1||m==d-1&&f==0||this.drawAlignmentPattern(c[m],c[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(c){const d=this.errorCorrectionLevel.formatBits<<3|c;let m=d;for(let h=0;h<10;h++)m=m<<1^(m>>>9)*1335;const f=(d<<10|m)^21522;r(f>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,n(f,h));this.setFunctionModule(8,7,n(f,6)),this.setFunctionModule(8,8,n(f,7)),this.setFunctionModule(7,8,n(f,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,n(f,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,n(f,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,n(f,h));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let c=this.version;for(let m=0;m<12;m++)c=c<<1^(c>>>11)*7973;const d=this.version<<12|c;r(d>>>18==0);for(let m=0;m<18;m++){const f=n(d,m),h=this.size-11+m%3,x=Math.floor(m/3);this.setFunctionModule(h,x,f),this.setFunctionModule(x,h,f)}}drawFinderPattern(c,d){for(let m=-4;m<=4;m++)for(let f=-4;f<=4;f++){const h=Math.max(Math.abs(f),Math.abs(m)),x=c+f,b=d+m;0<=x&&x<this.size&&0<=b&&b<this.size&&this.setFunctionModule(x,b,h!=2&&h!=4)}}drawAlignmentPattern(c,d){for(let m=-2;m<=2;m++)for(let f=-2;f<=2;f++)this.setFunctionModule(c+f,d+m,Math.max(Math.abs(f),Math.abs(m))!=1)}setFunctionModule(c,d,m){this.modules[d][c]=m,this.isFunction[d][c]=!0}addEccAndInterleave(c){const d=this.version,m=this.errorCorrectionLevel;if(c.length!=ba.getNumDataCodewords(d,m))throw new RangeError("Invalid argument");const f=ba.NUM_ERROR_CORRECTION_BLOCKS[m.ordinal][d],h=ba.ECC_CODEWORDS_PER_BLOCK[m.ordinal][d],x=Math.floor(ba.getNumRawDataModules(d)/8),b=f-x%f,y=Math.floor(x/f);let w=[];const j=ba.reedSolomonComputeDivisor(h);for(let k=0,D=0;k<f;k++){let C=c.slice(D,D+y-h+(k<b?0:1));D+=C.length;const S=ba.reedSolomonComputeRemainder(C,j);k<b&&C.push(0),w.push(C.concat(S))}let N=[];for(let k=0;k<w[0].length;k++)w.forEach((D,C)=>{(k!=y-h||C>=b)&&N.push(D[k])});return r(N.length==x),N}drawCodewords(c){if(c.length!=Math.floor(ba.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let d=0;for(let m=this.size-1;m>=1;m-=2){m==6&&(m=5);for(let f=0;f<this.size;f++)for(let h=0;h<2;h++){const x=m-h,y=(m+1&2)==0?this.size-1-f:f;!this.isFunction[y][x]&&d<c.length*8&&(this.modules[y][x]=n(c[d>>>3],7-(d&7)),d++)}}r(d==c.length*8)}
983applyMask(c){if(c<0||c>7)throw new RangeError("Mask value out of range");for(let d=0;d<this.size;d++)for(let m=0;m<this.size;m++){let f;switch(c){case 0:f=(m+d)%2==0;break;case 1:f=d%2==0;break;case 2:f=m%3==0;break;case 3:f=(m+d)%3==0;break;case 4:f=(Math.floor(m/3)+Math.floor(d/2))%2==0;break;case 5:f=m*d%2+m*d%3==0;break;case 6:f=(m*d%2+m*d%3)%2==0;break;case 7:f=((m+d)%2+m*d%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[d][m]&&f&&(this.modules[d][m]=!this.modules[d][m])}}getPenaltyScore(){let c=0;for(let h=0;h<this.size;h++){let x=!1,b=0,y=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[h][w]==x?(b++,b==5?c+=ba.PENALTY_N1:b>5&&c++):(this.finderPenaltyAddHistory(b,y),x||(c+=this.finderPenaltyCountPatterns(y)*ba.PENALTY_N3),x=this.modules[h][w],b=1);c+=this.finderPenaltyTerminateAndCount(x,b,y)*ba.PENALTY_N3}for(let h=0;h<this.size;h++){let x=!1,b=0,y=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[w][h]==x?(b++,b==5?c+=ba.PENALTY_N1:b>5&&c++):(this.finderPenaltyAddHistory(b,y),x||(c+=this.finderPenaltyCountPatterns(y)*ba.PENALTY_N3),x=this.modules[w][h],b=1);c+=this.finderPenaltyTerminateAndCount(x,b,y)*ba.PENALTY_N3}for(let h=0;h<this.size-1;h++)for(let x=0;x<this.size-1;x++){const b=this.modules[h][x];b==this.modules[h][x+1]&&b==this.modules[h+1][x]&&b==this.modules[h+1][x+1]&&(c+=ba.PENALTY_N2)}let d=0;for(const h of this.modules)d=h.reduce((x,b)=>x+(b?1:0),d);const m=this.size*this.size,f=Math.ceil(Math.abs(d*20-m*10)/m)-1;return r(0<=f&&f<=9),c+=f*ba.PENALTY_N4,r(0<=c&&c<=2568888),c}getAlignmentPatternPositions(){if(this.version==1)return[];{const c=Math.floor(this.version/7)+2,d=this.version==32?26:Math.ceil((this.version*4+4)/(c*2-2))*2;let m=[6];for(let f=this.size-7;m.length<c;f-=d)m.splice(1,0,f);return m}}static getNumRawDataModules(c){if(c<ba.MIN_VERSION||c>ba.MAX_VERSION)throw new RangeError("Version number out of range");let d=(16*c+128)*c+64;if(c>=2){const m=Math.floor(c/7)+2;d-=(25*m-10)*m-55,c>=7&&(d-=36)}return r(208<=d&&d<=29648),d}static getNumDataCodewords(c,d){return Math.floor(ba.getNumRawDataModules(c)/8)-ba.ECC_CODEWORDS_PER_BLOCK[d.ordinal][c]*ba.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][c]}static reedSolomonComputeDivisor(c){if(c<1||c>255)throw new RangeError("Degree out of range");let d=[];for(let f=0;f<c-1;f++)d.push(0);d.push(1);let m=1;for(let f=0;f<c;f++){for(let h=0;h<d.length;h++)d[h]=ba.reedSolomonMultiply(d[h],m),h+1<d.length&&(d[h]^=d[h+1]);m=ba.reedSolomonMultiply(m,2)}return d}static reedSolomonComputeRemainder(c,d){let m=d.map(f=>0);for(const f of c){const h=f^m.shift();m.push(0),d.forEach((x,b)=>m[b]^=ba.reedSolomonMultiply(x,h))}return m}static reedSolomonMultiply(c,d){if(c>>>8||d>>>8)throw new RangeError("Byte out of range");let m=0;for(let f=7;f>=0;f--)m=m<<1^(m>>>7)*285,m^=(d>>>f&1)*c;return r(m>>>8==0),m}finderPenaltyCountPatterns(c){const d=c[1];r(d<=this.size*3);const m=d>0&&c[2]==d&&c[3]==d*3&&c[4]==d&&c[5]==d;return(m&&c[0]>=d*4&&c[6]>=d?1:0)+(m&&c[6]>=d*4&&c[0]>=d?1:0)}finderPenaltyTerminateAndCount(c,d,m){return c&&(this.finderPenaltyAddHistory(d,m),d=0),d+=this.size,this.finderPenaltyAddHistory(d,m),this.finderPenaltyCountPatterns(m)}finderPenaltyAddHistory(c,d){d[0]==0&&(c+=this.size),d.pop(),d.unshift(c)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function a(l,c,d){if(c<0||c>31||l>>>c)throw new RangeError("Value out of range");for(let m=c-1;m>=0;m--)d.push(l>>>m&1)}function n(l,c){return(l>>>c&1)!=0}function r(l){if(!l)throw new Error("Assertion error")}const i=class Dn{constructor(c,d,m){if(this.mode=c,this.numChars=d,this.bitData=m,d<0)throw new RangeError("Invalid argument");this.bitData=m.slice()}static makeBytes(c){let d=[];for(const m of c)a(m,8,d);return new Dn(Dn.Mode.BYTE,c.length,d)}static makeNumeric(c){if(!Dn.isNumeric(c))throw new RangeError("String contains
983non-numeric characters");let d=[];for(let m=0;m<c.length;){const f=Math.min(c.length-m,3);a(parseInt(c.substring(m,m+f),10),f*3+1,d),m+=f}return new Dn(Dn.Mode.NUMERIC,c.length,d)}static makeAlphanumeric(c){if(!Dn.isAlphanumeric(c))throw new RangeError("String contains unencodable characters in alphanumeric mode");let d=[],m;for(m=0;m+2<=c.length;m+=2){let f=Dn.ALPHANUMERIC_CHARSET.indexOf(c.charAt(m))*45;f+=Dn.ALPHANUMERIC_CHARSET.indexOf(c.charAt(m+1)),a(f,11,d)}return m<c.length&&a(Dn.ALPHANUMERIC_CHARSET.indexOf(c.charAt(m)),6,d),new Dn(Dn.Mode.ALPHANUMERIC,c.length,d)}static makeSegments(c){return c==""?[]:Dn.isNumeric(c)?[Dn.makeNumeric(c)]:Dn.isAlphanumeric(c)?[Dn.makeAlphanumeric(c)]:[Dn.makeBytes(Dn.toUtf8ByteArray(c))]}static makeEci(c){let d=[];if(c<0)throw new RangeError("ECI assignment value out of range");if(c<128)a(c,8,d);else if(c<16384)a(2,2,d),a(c,14,d);else if(c<1e6)a(6,3,d),a(c,21,d);else throw new RangeError("ECI assignment value out of range");return new Dn(Dn.Mode.ECI,0,d)}static isNumeric(c){return Dn.NUMERIC_REGEX.test(c)}static isAlphanumeric(c){return Dn.ALPHANUMERIC_REGEX.test(c)}getData(){return this.bitData.slice()}static getTotalBits(c,d){let m=0;for(const f of c){const h=f.mode.numCharCountBits(d);if(f.numChars>=1<<h)return 1/0;m+=4+h+f.bitData.length}return m}static toUtf8ByteArray(c){c=encodeURI(c);let d=[];for(let m=0;m<c.length;m++)c.charAt(m)!="%"?d.push(c.charCodeAt(m)):(d.push(parseInt(c.substring(m+1,m+3),16)),m+=2);return d}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let o=i;e.QrSegment=i})(ku||(ku={}));(e=>{(t=>{const a=class{constructor(r,i){this.ordinal=r,this.formatBits=i}};a.LOW=new a(0,1),a.MEDIUM=new a(1,0),a.QUARTILE=new a(2,3),a.HIGH=new a(3,2),t.Ecc=a})(e.QrCode||(e.QrCode={}))})(ku||(ku={}));(e=>{(t=>{const a=class{constructor(r,i){this.modeBits=r,this.numBitsCharCount=i}numCharCountBits(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}};a.NUMERIC=new a(1,[10,12,14]),a.ALPHANUMERIC=new a(2,[9,11,13]),a.BYTE=new a(4,[8,16,16]),a.KANJI=new a(8,[8,10,12]),a.ECI=new a(7,[0,0,0]),t.Mode=a})(e.QrSegment||(e.QrSegment={}))})(ku||(ku={}));var nm=ku;/** 984 * @license qrcode.react 985 * Copyright (c) Paul O'Shannessy 986 * SPDX-License-Identifier: ISC 987 */var D7e={L:nm.QrCode.Ecc.LOW,M:nm.QrCode.Ecc.MEDIUM,Q:nm.QrCode.Ecc.QUARTILE,H:nm.QrCode.Ecc.HIGH},Aee=128,See="L",Cee="#FFFFFF",Tee="#000000",Dee=!1,Eee=1,E7e=4,M7e=0,O7e=.1;function Mee(e,t=0){const a=[];return e.forEach(function(n,r){let i=null;
987n.forEach(function(o,l){if(!o&&i!==null){a.push(`M${i+t} ${r+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===n.length-1){if(!o)return;i===null?a.push(`M${l+t},${r+t} h1v1H${l+t}z`):a.push(`M${i+t},${r+t} h${l+1-i}v1H${i+t}z`);return}o&&i===null&&(i=l)})}),a.join("")}function Oee(e,t){return e.slice().map((a,n)=>n<t.y||n>=t.y+t.h?a:a.map((r,i)=>i<t.x||i>=t.x+t.w?r:!1))}function R7e(e,t,a,n){if(n==null)return null;const r=e.length+a*2,i=Math.floor(t*O7e),o=r/t,l=(n.width||i)*o,c=(n.height||i)*o,d=n.x==null?e.length/2-l/2:n.x*o,m=n.y==null?e.length/2-c/2:n.y*o,f=n.opacity==null?1:n.opacity;let h=null;if(n.excavate){let b=Math.floor(d),y=Math.floor(m),w=Math.ceil(l+d-b),j=Math.ceil(c+m-y);h={x:b,y,w,h:j}}const x=n.crossOrigin;return{x:d,y:m,h:c,w:l,excavation:h,opacity:f,crossOrigin:x}}function z7e(e,t){return t!=null?Math.max(Math.floor(t),0):e?E7e:M7e}function Ree({value:e,level:t,minVersion:a,includeMargin:n,marginSize:r,imageSettings:i,size:o,boostLevel:l}){let c=ie.useMemo(()=>{const b=(Array.isArray(e)?e:[e]).reduce((y,w)=>(y.push(...nm.QrSegment.makeSegments(w)),y),[]);return nm.QrCode.encodeSegments(b,D7e[t],a,void 0,void 0,l)},[e,t,a,l]);const{cells:d,margin:m,numCells:f,calculatedImageSettings:h}=ie.useMemo(()=>{let x=c.getModules();const b=z7e(n,r),y=x.length+b*2,w=R7e(x,o,b,i);return{cells:x,margin:b,numCells:y,calculatedImageSettings:w}},[c,o,i,n,r]);return{qrcode:c,margin:m,cells:d,numCells:f,calculatedImageSettings:h}}var _7e=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),I7e=ie.forwardRef(function(t,a){const n=t,{value:r,size:i=Aee,level:o=See,bgColor:l=Cee,fgColor:c=Tee,includeMargin:d=Dee,minVersion:m=Eee,boostLevel:f,marginSize:h,imageSettings:x}=n,y=jT(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:w}=y,j=jT(y,["style"]),N=x?.src,k=ie.useRef(null),D=ie.useRef(null),C=ie.useCallback(V=>{k.current=V,typeof a=="function"?a(V):a&&(a.current=V)},[a]),[S,A]=ie.useState(!1),{margin:E,cells:R,numCells:F,calculatedImageSettings:I}=Ree({value:r,level:o,minVersion:m,boostLevel:f,includeMargin:d,marginSize:h,imageSettings:x,size:i});ie.useEffect(()=>{if(k.current!=null){const V=k.current,W=V.getContext("2d");if(!W)return;let B=R;const K=D.current,ae=I!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;ae&&I.excavation!=null&&(B=Oee(R,I.excavation));const $=window.devicePixelRatio||1;V.height=V.width=i*$;const Z=i/F*$;W.scale(Z,Z),W.fillStyle=l,W.fillRect(0,0,F,F),W.fillStyle=c,_7e?W.fill(new Path2D(Mee(B,E))):R.forEach(function(O,Y){O.forEach(function(Q,U){Q&&W.fillRect(U+E,Y+E,1,1)})}),I&&(W.globalAlpha=I.opacity),ae&&W.drawImage(K,I.x+E,I.y+E,I.w,I.h)}}),ie.useEffect(()=>{A(!1)},[N]);const H=PT({height:i,width:i},w);let _=null;return N!=null&&(_=ie.createElement("img",{src:N,key:N,style:{display:"none"},onLoad:()=>{A(!0)},ref:D,crossOrigin:I?.crossOrigin})),ie.createElement(ie.Fragment,null,ie.createElement("canvas",PT({style:H,height:i,width:i,ref:C,role:"img"},j)),_)});I7e.displayName="QRCodeCanvas";var mw=ie.forwardRef(function(t,a){const n=t,{value:r,size:i=Aee,level:o=See,bgColor:l=Cee,fgColor:c=Tee,includeMargin:d=Dee,minVersion:m=Eee,boostLevel:f,title:h,marginSize:x,imageSettings:b}=n,y=jT(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:w,cells:j,numCells:N,calculatedImageSettings:k}=Ree({value:r,level:o,minVersion:m,boostLevel:f,includeMargin:d,marginSize:x,imageSettings:b,size:i});let D=j,C=null;b!=null&&k!=null&&(k.excavation!=null&&(D=Oee(j,k.excavation)),C=ie.createElement("image",{href:b.src,height:k.h,width:k.w,x:k.x+w,y:k.y+w,preserveAspectRatio:"none",opacity:k.opacity,crossOrigin:k.crossOrigin}));const S=Mee(D,w);return ie.createElement("svg",PT({height:i,width:i,viewBox:`0 0 ${N} ${N}`,ref:a,role:"img"},y),!!h&&ie.createElement("title",null,h),ie.createElement("path",{fill:l,d:`M0,0 h${N}v${N}H0z`,shapeRendering:"crispEdges"}),ie.createElement("path",{fill:c,d:S,shapeRendering:"crispEdges"}),C)});mw.displayName="QRCodeSVG";const Hq={easy:{label:"سÙÙ",color:"bg-green-100 text-green-800 border-green-300",emoji:"ð¢"},medium:{label:"Ù
ØªÙØ³Ø·",color:"bg-yellow-100 text-yellow-800 border-yellow-300",emoji:"ð¡"},hard:{label:"صعب",color:"bg-red-100 text-red-800 border-red-300",emoji:"ð´"}},qq={general:{label:"عاÙ
",emoji:"ð§©"}
987,ai:{label:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù",emoji:"ð¤"},health:{label:"ØµØØ©",emoji:"ðª"},work:{label:"Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù",emoji:"ð¼"},selfdev:{label:"تطÙÙØ± Ø§ÙØ°Ø§Øª",emoji:"ð±"}};function Uq(){const{isAuthenticated:e}=Ma(),[t,a]=P.useState(""),[n,r]=P.useState(!1),[i]=P.useState(()=>Date.now()),[o,l]=P.useState(!1),[c,d]=P.useState(null),[m,f]=P.useState(!1),[h,x]=P.useState(!1),[b,y]=P.useState(null),w=P.useRef(null),{data:j,isLoading:N}=J.puzzle.current.useQuery(),{data:k}=J.puzzle.myAnswer.useQuery({puzzleId:j?.id??0},{enabled:e&&!!j?.id}),{data:D}=J.puzzle.leaderboard.useQuery({puzzleId:j?.id??0},{enabled:!!j?.id}),{data:C}=J.puzzle.participationProgress.useQuery({puzzleId:j?.id??0},{enabled:!!j?.id}),S=J.puzzle.submit.useMutation({onSuccess:Z=>{d(Z),Z.isCorrect?(l(!0),re.success("ð Ø¥Ø¬Ø§Ø¨Ø© صØÙØØ©! ØØµÙت عÙÙ ÙÙØ§Ø·!")):re.error("â Ø¥Ø¬Ø§Ø¨Ø© Ø®Ø§Ø·Ø¦Ø©Ø ØØ§ÙÙ Ù
رة أخرÙ!")},onError:()=>re.error("ØØ¯Ø« Ø®Ø·Ø£Ø ØØ§ÙÙ Ù
رة أخرÙ")});P.useEffect(()=>{k?.isCorrect&&l(!0)},[k]);const A=j?`${window.location.origin}/puzzle/${j.id}`:window.location.href,E=()=>{if(!e){Rn();return}const O=(j.options??[]).length>0?b??"":t.trim();if(!j||!O)return;const Y=Math.floor((Date.now()-i)/1e3);S.mutate({puzzleId:j.id,answerText:O,timeTakenSeconds:Y})},R=async()=>{await navigator.clipboard.writeText(A),x(!0),setTimeout(()=>x(!1),2e3),re.success("تÙ
ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·!")},F=()=>{const Z=w.current?.querySelector("svg");if(!Z)return;const O=new XMLSerializer().serializeToString(Z),Y=new Blob([O],{type:"image/svg+xml"}),Q=URL.createObjectURL(Y),U=document.createElement("a");U.href=Q,U.download="ÙØºØ²-Ø§ÙØ£Ø³Ø¨Ùع-QR.svg",U.click(),URL.revokeObjectURL(Q),re.success("تÙ
تØÙ
ÙÙ QR code!")};if(N)return s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:105",className:"min-h-screen bg-memphis-bg flex items-center justify-center",children:s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:106",className:"text-center space-y-4",children:[s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:107",className:"text-5xl animate-bounce",children:"ð§©"}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:108",className:"font-black text-xl text-black",children:"جار٠تØÙ
Ù٠اÙÙØºØ²..."})]})});if(!j)return s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:116",className:"min-h-screen bg-memphis-bg flex items-center justify-center p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:117",className:"memphis-card p-8 text-center max-w-md",children:[s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:118",className:"text-6xl mb-4",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:119",className:"font-black text-2xl text-black mb-2",children:"ÙØ§ ÙÙØ¬Ø¯ ÙØºØ² ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:120",className:"text-black/60 mb-6",children:"تابع اÙÙ
ÙØµØ© â ÙØºØ² Ø¬Ø¯ÙØ¯ ÙØ±ÙباÙ!"}),s.jsx(jt,{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:121",href:"/dashboard",children:s.jsx(Ie,{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:122",className:"memphis-btn",children:"Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©"})})]})});const I=Hq[j.difficulty]??Hq.medium,H=qq[j.category]??qq.general,_=C?.participationRate??0,V=C?.participated??0,W=C?.totalUsers??0,B=C?.correct??0,K=C?.wrong??0,ae=j.options??[],$=ae.length>=2;return s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:140",className:"min-h-screen bg-memphis-bg",dir:"rtl",children:[s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:142",className:"bg-white border-b-2 border-black sticky top-0 z-10",children:s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:143",className:"max-w-4xl mx-auto px-4 py-3 flex items-center justify-between",children:[s.jsx(jt,{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:144",href:"/dashboard",children:s.jsx("button",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:145",className:"flex items-center gap-2 font-bold text-black hover:opacity-70 transition-opacity",children:"â Ø§ÙØ¹ÙØ¯Ø©"})}),s.jsx("h1",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:149",className:"font-black text-lg text-black",children:"ð§© ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("button",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:150",onClick:()=>f(!m),className:"flex items-center gap-2 bg-black text-white font-bold px-3 py-1.5 rounded-lg text-sm hover:bg-black/80 transition-colors",children:"ð± Ù
Ø´Ø§Ø±ÙØ©"})]})}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:159",className:"max-w-4xl mx-auto px-4 py-6 space-y-6",children:[m&&s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:163",className:"memphis-card p-6 bg-white border-4 border-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsx("h2",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:164",className:"font-black text-xl text-black mb-4 text-center",children:"ð± Ø´Ø§Ø±Ù اÙÙØºØ² Ù
ع زÙ
ÙØ§Ø¦Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:165",className:"flex flex-col md:flex-row items-center gap-6",children:[s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:167",ref:w,className:"bg-white p-4 border-2 border-black rounded-xl shadow-memphis flex-shrink-0",children:s.jsx(mw,{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:168",value:A,size:180,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!0})}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:178",className:"flex-1 space-y-3",children:[s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:179",className:"font-bold text-black text-lg",children:"ÙÙÙÙØ© اÙÙ
Ø´Ø§Ø±ÙØ©:"}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:180",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:181",className:"flex items-start gap-3 bg-memphis-mint/40 p-3 rounded-lg border border-black/20",children:[s.jsx("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:182",className:"text-xl",children:"ð·"}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:183",className:"text-sm font-medium text-black",children:"صÙÙØ± اÙÙ QR code ÙØ£Ø±Ø³ÙÙ ÙÙÙ
ÙØ¸ÙÙ٠عبر ÙØ§ØªØ³Ø§Ø¨ Ø£Ù Ø§ÙØ¨Ø±Ùد"})]}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:185",className:"flex items-start gap-3 bg-memphis-yellow/40 p-3 rounded-lg border border-black/20",children:[s.jsx("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:186",className:"text-xl",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:187",className:"text-sm font-medium text-black",children:"Ø£Ù Ø§ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø· اÙÙ
باشر ÙØ´Ø§Ø±ÙÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:189",className:"flex items-start gap-3 bg-memphis-peach/40 p-3 rounded-lg border border-black/20",children:[s.jsx("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:190",className:"text-xl",children:"ðº"}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:191",className:"text-sm font-medium text-black",children:"أ٠اعرض٠عÙ٠شاشة Ø§ÙØ§Ø¬ØªÙ
اع ÙÙÙ
Ø³Ø Ø§ÙØ¬Ù
ÙØ¹ اÙÙÙØ¯"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:194",className:"flex gap-2 flex-wrap",children:[s.jsx("button",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:195",onClick:R,className:"flex-1 memphis-btn text-sm py-2",children:h?"â
تÙ
اÙÙØ³Ø®!":"ð ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·"}),s.jsx("button",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:201",onClick:F,className:"flex-1 bg-black text-white font-bold py-2 px-4 roun
987ded-lg border-2 border-black text-sm hover:bg-black/80 transition-colors",children:"â¬ï¸ تØÙ
ÙÙ QR"})]}),s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:208",className:"bg-gray-50 border border-black/20 rounded-lg p-2",children:s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:209",className:"text-xs text-black/50 font-mono break-all",children:A})})]})]})]}),W>0&&s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:218",className:"memphis-card p-5 bg-white border-4 border-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:219",className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:220",className:"font-black text-lg text-black",children:"ð ÙØ³Ø¨Ø© اÙÙ
Ø´Ø§Ø±ÙØ© ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsxs("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:221",className:"text-3xl font-black text-black",children:[_,"%"]})]}),s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:224",className:"w-full bg-gray-200 rounded-full h-5 border-2 border-black overflow-hidden mb-4",children:s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:225",className:"h-full rounded-full transition-all duration-700 ease-out",style:{width:`${Math.max(_,_>0?3:0)}%`,background:_>=75?"#4ade80":_>=40?"#facc15":"#f87171"}})}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:234",className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:235",className:"text-center bg-memphis-mint/50 rounded-xl border-2 border-black p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:236",className:"font-black text-2xl text-black",children:V}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:237",className:"text-xs font-bold text-black/60",children:"ð¥ Ø´Ø§Ø±ÙÙØ§"})]}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:239",className:"text-center bg-green-100 rounded-xl border-2 border-black p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:240",className:"font-black text-2xl text-green-700",children:B}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:241",className:"text-xs font-bold text-black/60",children:"â
إجابة صØÙØØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:243",className:"text-center bg-red-50 rounded-xl border-2 border-black p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:244",className:"font-black text-2xl text-red-600",children:K}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:245",className:"text-xs font-bold text-black/60",children:"â Ø¥Ø¬Ø§Ø¨Ø© خاطئة"})]})]}),s.jsxs("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:248",className:"text-xs text-black/40 text-center mt-2 font-medium",children:["Ù
٠إجÙ
اÙÙ ",W," Ù
ÙØ¸Ù"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:253",className:"memphis-card p-6 bg-memphis-yellow border-4 border-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:254",className:"flex items-start justify-between gap-4 mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:255",className:"flex-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:256",className:"flex flex-wrap gap-2 mb-3",children:[s.jsxs("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:257",className:`px-3 py-1 rounded-full text-xs font-bold border-2 ${I.color}`,children:[I.emoji," ",I.label]}),s.jsxs("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:260",className:"px-3 py-1 rounded-full text-xs font-bold border-2 bg-white border-black",children:[H.emoji," ",H.label]}),s.jsxs("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:263",className:"px-3 py-1 rounded-full text-xs font-bold border-2 bg-memphis-coral border-black text-black",children:["ð ",j.pointsReward," ÙÙØ·Ø©"]})]}),s.jsx("h2",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:267",className:"font-black text-2xl text-black leading-tight",children:j.titleAr})]}),s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:269",className:"text-5xl flex-shrink-0",children:"ð§©"})]}),s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:272",className:"bg-white border-2 border-black rounded-xl p-5 mb-4",children:s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:273",className:"font-bold text-lg text-black leading-relaxed",children:j.questionAr})}),j.hintAr&&s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:278",children:n?s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:287",className:"bg-memphis-lilac/60 border-2 border-black/30 rounded-lg p-3",children:s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:288",className:"text-sm font-medium text-black",children:j.hintAr})}):s.jsx("button",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:280",onClick:()=>r(!0),className:"text-sm font-bold text-black/60 hover:text-black underline transition-colors",children:"ð¡ Ø§Ø¶ØºØ· ÙØ¹Ø±Ø¶ Ø§ÙØªÙÙ
ÙØ"})})]}),o||k?.isCorrect?s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:297",className:"memphis-card p-6 bg-memphis-mint border-4 border-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:298",className:"text-center mb-4",children:[s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:299",className:"text-5xl mb-2",children:"ð"}),s.jsx("h3",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:300",className:"font-black text-2xl text-black",children:"Ø£ØØ³Ùت! ØÙÙØª اÙÙØºØ²!"})]}),s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:302",className:"bg-white border-2 border-black rounded-xl p-4 mb-3",children:[s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:303",className:"text-sm font-bold text-black/60 mb-1",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©:"}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:304",className:"font-black text-lg text-black",children:c?.correctAnswer??j.correctAnswer})]}),(c?.explanation??j.explanation)&&s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:307",className:"bg-memphis-sky/60 border-2 border-black/20 rounded-xl p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:308",className:"text-sm font-bold text-black/60 mb-1",children:"ð¡ Ù٠تعÙÙ
Ø"}),s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:309",className:"text-sm font-medium text-black leading-relaxed",children:c?.explanation??j.explanation})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:314",className:"memphis-card p-6 bg-white border-4 border-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsx("h3",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:315",className:"font-black text-xl text-black mb-4",children:$?"ð¯ Ø§Ø®ØªØ± Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©":"âï¸ Ø¥Ø¬Ø§Ø¨ØªÙ"}),c&&!c.isCorrect&&s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:317",className:"bg-red-50 border-2 border-red-300 rounded-lg p-3 mb-4",children:s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:318",className:"text-sm font-bold text-red-700",children:"â Ø¥Ø¬Ø§Ø¨Ø© خاطئة â ØØ§ÙÙ Ù
رة أخرÙ!"})}),$?s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:322",className:"grid grid-cols-1 gap-3 mb-4",children:ae.map((Z,O)=>{const Y=["Ø£","ب","ج","د","ÙÙ","Ù"],Q=b===Z;return s.jsx("button",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:327",onClick:()=>y(Z),className:`w-full text-right p-4 rounded-xl border-2 font-bold text-base transition-all duration-150 active:scale-[0.98] ${Q?"bg-black text-white border-black shadow-[3px_3px_0px_0px_rgba(0,0,0,0.3)]":"bg-white text-black border-black hover:bg-memphis-yellow"}`,children:s.jsxs("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:336",className:"inline-flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:337",className:`w-8 h-8 rounded-full border-2 flex items-center justify-center text-sm font-black flex-shrink-0 ${Q?"border-white bg-white text-black":"border-black bg-memphis-yellow"}`,children:Y[O]??O+1}),Z]})},O)})}):s.jsx("textarea",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:347",value:t,onChange:Z=>a(Z.target.value),placeholder:"Ø§ÙØªØ¨ إجابت٠ÙÙØ§...",className:"w-full border-2 border-black rounded-xl font-medium text-black resize-none mb-4 focus:ring-2 focus:ring-black p-3",rows:3,dir:"rtl"}),s.jsx(Ie,{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:356",onClick:E,disabled:($?!b:!t.trim())||S.isPending,className:"w-full memphis-btn text-lg py-3",children:S.isPending?"â³ Ø¬Ø§Ø±Ù Ø§ÙØªØÙÙ...":"ð Ø£Ø±Ø³Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"}),!e&&s.jsxs("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:364",className:"text-center text-sm text-black/50 mt-2",children:["ÙØ¬Ø¨ ",s.jsx("button",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:365",onClick:Rn,className:"underline font-bold text-black",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})," ÙÙÙ
Ø´Ø§Ø±ÙØ©"]})]}),D&&D.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:373",className:"memphis-card p-6 bg-white border-4 border-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsx("h3",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:374",className:"font-black text-xl text-black mb-4",children:"ð Ø§ÙÙ
تصدرÙÙ ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:375",className:"space-y-3",children:D.map((Z,O)=>{const Q=["ð¥","ð¥","ð¥"][O]??`#${O+1}`,U=Z.timeTakenSeconds?Math.floor(Z.timeTakenSeconds/60):0,oe=Z.timeTakenSeconds?Z.timeTakenSeconds%60:0;return s.jsxs("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:382",className:`flex items-center gap-3 p-3 rounded-xl border-2 ${O===0?"bg-memphis-yellow border-black":"bg-gray-50 border-black/20"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:386",className:"text-2xl w-8 text-center",children:Q}),s.jsx("div",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:387",className:"flex-1 min-w-0",children:s.jsx("p",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:388",className:"font-black text-black truncate",children:Z.name??"Ù
ÙØ¸Ù"})}),Z.timeTakenSeconds!=null&&s.jsxs("span",{"data-loc":"client/src/pages/WeeklyPuzzlePage.tsx:391",className:"text-sm font-bold text-black/60 flex-shrink-0",children:["â± ",U>0?`${U}د `:"",oe,"Ø«"]})]},Z.userId)})})]})]})]})}function oa({className:e,type:t,onKeyDown:a,onCompositionStart:n,onCompositionEnd:r,...i}){const o=U6(),{onCompositionStart:l,onCompositionEnd:c,onKeyDown:d}=V$({onKeyDown:m=>{const f=m.nativeEvent.isComposing||o.justEndedComposing();m.key==="Enter"&&f||a?.(m)},onCompositionStart:m=>{o.setComposing(!0),n?.(m)},onCompositionEnd:m=>{o.markCompositionEnd(),setTimeout(()=>{o.setComposing(!1)},100),r?.(m)}});return s.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:zt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:l,onCompositionEnd:c,onKeyDown:d,...i})}function L7e(e,t={}){const a=(t.search??"").trim().toLocaleLowerCase(),n=t.difficulty??"all",r=t.status??"all",i=t.sort??"newest";return[...e].filter(o=>{const l=!a||`${o.titleAr} ${o.questionAr}`.toLocaleLowerCase().includes(a),c=n==="all"||o.difficulty===n,d=r==="all"||(r==="active"?o.isActive:!o.isActive);return l&&c&&d}).sort((o,l)=>i==="points"?l.pointsReward-o.pointsReward:(i==="newest"?-1:1)*String(o.weekStart).localeCompare(String(l.weekStart)))}function F7e(e){return`transform-gpu transition-all duration-300 ease-out motion-reduce:transition-none ${e?"translate-y-1 opacity-60 scale-[0.99]":"translate-y-0 opacity-100 scale-100"}`}function B7e(e,t,a={},n=5){const r=t.trim().toLocaleLowerCase(),i=a.difficulty??"all",o=a.status??"all";return e.filter(l=>{const c=i==="all"||l.difficulty===i,d=o==="all"||(o==="active"?l.isActive:!l.isActive);if(!c||!d||!r)return!1;const m=l.titleAr.trim(),f=l.questionAr.trim();return m&&`${m} ${f}`.toLocaleLowerCase().includes(r)}).map(l=>l.titleAr.trim()).filter((l,c,d)=>l&&d.indexOf(l)===c).slice(0,n)}const hc={easy:"سÙÙ ð¢",medium:"Ù
ØªÙØ³Ø· ð¡",hard:"صعب ð´"},uv={easy:"bg-green-100 text-green-800 border-green-300",medium:"bg-yellow-100 text-yellow-800 border-yellow-300",hard:"bg-red-100 text-red-800 border-red-300"}
987,qd={general:"عاÙ
ð§©",ai:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù ð¤",health:"ØµØØ© ðª",work:"Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù ð¼",selfdev:"تطÙÙØ± Ø§ÙØ°Ø§Øª ð±"};function G7e(){const e=new Date,t=e.getDay(),a=t===0?-6:1-t,n=new Date(e);n.setDate(e.getDate()+a);const r=new Date(n);r.setDate(n.getDate()+6);const i=o=>o.toISOString().slice(0,10);return{weekStart:i(n),weekEnd:i(r)}}function Vq({value:e,color:t="bg-blue-500",label:a}){return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:43",className:"w-full",children:[a&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:45",className:"flex justify-between text-xs font-bold text-black/60 mb-1",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:46",children:a}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:46",children:[e,"%"]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:49",className:"w-full bg-black/10 rounded-full h-3 overflow-hidden border border-black/20",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:50",className:`h-full rounded-full transition-all duration-700 ${t}`,style:{width:`${Math.min(e,100)}%`}})})]})}function pv({icon:e,label:t,value:a,sub:n,color:r}){return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:58",className:`rounded-2xl border-2 border-black p-4 ${r} shadow-[3px_3px_0px_0px_rgba(0,0,0,1)]`,children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:59",className:"text-2xl mb-1",children:e}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:60",className:"font-black text-2xl text-black",children:a}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:61",className:"text-xs font-bold text-black/70",children:t}),n&&s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:62",className:"text-xs text-black/50 mt-0.5",children:n})]})}function H7e({teams:e}){const t=[{name:"سعد Ø§ÙØ£ØÙ
د",avatar:"ð¨âð»"},{name:"سارة Ø§ÙØ´Ù
رÙ",avatar:"ð©âð¼"},{name:"Ø®Ø§ÙØ¯ اÙÙ
Ø·ÙØ±Ù",avatar:"ð§âð§"},{name:"ÙÙØ±Ø© اÙÙØØ·Ø§ÙÙ",avatar:"ð©âð»"}],[a,n]=P.useState([{id:"1",text:"إرسا٠تÙÙ
ÙØØ§Øª إضاÙÙØ© ÙÙØ£Ø¹Ø¶Ø§Ø¡ ØºÙØ± اÙÙØ´Ø·Ù٠عبر إشعارات اÙÙ
ÙØµØ© ÙØªØÙÙØ² اÙÙ
Ø´Ø§Ø±ÙØ©.",done:!1,assignee:"سعد Ø§ÙØ£ØÙ
د",priority:"high",dueDate:"2026-08-25",notes:"تÙ
Ø§ÙØ¨Ø¯Ø¡ Ø¨Ø§ÙØªÙسÙÙ Ù
ع ÙØ±ÙÙ Ø§ÙØ¯Ø¹Ù
اÙÙÙÙ.",noteAuthor:"سعد Ø§ÙØ£ØÙ
د (ð¨âð»)",noteTime:"2026-08-18 10:30",unreadNote:!0},{id:"2",text:"ØªÙØ¸ÙÙ
Ø¬ÙØ³Ø© ØªÙØ¬ÙÙ ÙØµÙرة ÙÙÙØ±Ù اÙÙ
تعثرة ÙØªØ¨Ø³ÙØ· اÙÙ
ÙØ§ÙÙÙ
اÙÙ
رتبطة باÙÙØºØ².",done:!1,assignee:"سارة Ø§ÙØ´Ù
رÙ",priority:"medium",dueDate:"2026-08-28",notes:"ÙÙØ¯ اÙÙ
راجعة Ù
ع Ø±Ø¦ÙØ³ اÙÙØ³Ù
.",noteAuthor:"سارة Ø§ÙØ´Ù
ر٠(ð©âð¼)",noteTime:"2026-08-18 14:15",unreadNote:!1}]),[r,i]=P.useState(null),[o,l]=P.useState(""),[c,d]=P.useState(!1),[m,f]=P.useState(""),[h,x]=P.useState(t[0].name),[b,y]=P.useState("medium"),[w,j]=P.useState("2026-08-30"),[N,k]=P.useState("priority"),[D,C]=P.useState(!1),S=a.filter(O=>O.done).length,A=a.length>0?Math.round(S/a.length*100):0,E=O=>{n(a.map(Y=>Y.id===O?{...Y,done:!Y.done}:Y))},R=()=>{m.trim()&&(n([...a,{id:Date.now().toString(),text:m.trim(),done:!1,assignee:h,priority:b,dueDate:w}]),f(""),re.success("â ØªÙ
ت Ø¥Ø¶Ø§ÙØ© اÙÙ
ÙÙ
Ø© ÙØ¥Ø³ÙØ§Ø¯ÙØ§ Ø¨ÙØ¬Ø§Ø"))},F=O=>{n(a.filter(Y=>Y.id!==O)),re.info("ðï¸ ØªÙ
ØØ°Ù اÙÙ
ÙÙ
Ø©")},I=(O,Y)=>{n(a.map(Q=>Q.id===O?{...Q,assignee:Y}:Q))},H=O=>{const Y=new Date,Q=`${Y.getFullYear()}-${String(Y.getMonth()+1).padStart(2,"0")}-${String(Y.getDate()).padStart(2,"0")} ${String(Y.getHours()).padStart(2,"0")}:${String(Y.getMinutes()).padStart(2,"0")}`;n(a.map(U=>U.id===O?{...U,notes:o,noteAuthor:"سعد Ø§ÙØ£ØÙ
د (ð¨âð»)",noteTime:Q,unreadNote:!1}:U)),i(null),l(""),re.success("ð¬ ØªÙ
ØÙظ ÙØªÙÙÙØ¹ اÙÙ
ÙØ§ØØ¸Ø© Ù
ع Ø§ÙØ·Ø§Ø¨Ø¹ Ø§ÙØ²Ù
ÙÙ Ø¨ÙØ¬Ø§Ø")},[_,V]=P.useState("all"),B=[...a.filter(O=>_==="mine"?O.assignee==="سعد Ø§ÙØ£ØÙ
د":_==="overdue"?O.dueDate<"2026-08-19"&&!O.done:!0)].sort((O,Y)=>{if(N==="priority"){const Q={high:3,medium:2,low:1};return Q[Y.priority]-Q[O.priority]}else return N==="dueDate"?O.dueDate.localeCompare(Y.dueDate):Number(O.done)-Number(Y.done)}),K=(O,Y)=>{O.dataTransfer.setData("text/plain",Y)},[ae,$]=P.useState(null),Z=(O,Y)=>{O.preventDefault();const Q=O.dataTransfer.getData("text/plain");if(!Q||Q===Y)return;const U=a.findIndex(ge=>ge.id===Q),oe=a.findIndex(ge=>ge.id===Y);if(U<0||oe<0)return;$([...a]);const X=[...a],[ne]=X.splice(U,1);X.splice(oe,0,ne),n(X),re.custom(ge=>s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:161",className:"flex items-center gap-2 text-xs font-bold",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:162",children:"ð ØªÙ
ت إعادة ØªØ±ØªÙØ¨ اÙÙ
ÙÙ
Ø©"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:163",onClick:()=>{ae&&n(ae),re.dismiss(ge),re.info("â©ï¸ تÙ
Ø§ÙØªØ±Ø§Ø¬Ø¹ ع٠إعادة Ø§ÙØªØ±ØªÙب")},className:"bg-black text-white px-2 py-0.5 rounded text-[10px] font-black hover:bg-memphis-yellow hover:text-black transition-colors",children:"تراجع (Undo)"})]}),{duration:5e3})};return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:178",className:"mt-3 pt-3 border-t border-black/20 text-xs text-black bg-white/90 p-3 rounded-xl space-y-2.5 border-2 border-black/20",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:179",className:"flex items-center justify-between flex-wrap gap-2",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:180",className:"font-black flex items-center gap-1.5 text-black",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:181",children:"ð"})," خطة عÙ
Ù Ù
تابعة اÙÙØ±Ù ÙÙØ§Ø¯Ø© Ø§ÙØ£ÙساÙ
:"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:183",className:"flex items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:184",className:"font-black text-[11px] bg-memphis-lilac px-2.5 py-0.5 rounded-full border border-black/20",children:["Ø§ÙØ¥Ùجاز: ",S,"/",a.length," (",A,"%)"]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:187",onClick:()=>C(!D),className:"text-[11px] font-black bg-black text-white px-2 py-1 rounded hover:bg-memphis-yellow hover:text-black transition-colors",children:D?"Ø¥ÙØ¸ ÙØÙØ¸":"âï¸ ØªØ¹Ø¯Ù٠اÙÙ
ÙØ§Ù
ÙØ§ÙØ¥Ø³ÙØ§Ø¯"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:197",className:"w-full bg-gray-200 h-2 rounded-full overflow-hidden border border-black/20",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:198",className:"bg-emerald-600 h-full transition-all duration-500",style:{width:`${A}%`}})}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:202",className:"flex items-center justify-between gap-2 bg-gray-100 p-2 rounded-lg text-[11px] font-bold flex-wrap",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:203",className:"flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:204",children:"ØªØ±ØªÙØ¨:"}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:205",value:N,onChange:O=>k(O.target.value),className:"p-1 border border-black/30 rounded bg-white text-xs font-bold",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:210",value:"priority",children:"Ø§ÙØ£ÙÙÙÙØ©"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:211",value:"dueDate",children:"Ø§ÙØ§Ø³ØªØÙاÙ"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:212",value:"status",children:"Ø§ÙØØ§ÙØ©"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:215",className:"flex items-center gap-1",children:[s.jsxs("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:216",onClick:()=>V("all"),className:`px-2 py-0.5 rounded text-[10px] font-black border border-black/20 ${_==="all"?"bg-black text-white":"bg-white text-black"}`,children:["اÙÙÙ (",a.length,")"]}),s.jsxs("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:222",onClick:()=>V("mine"),className:`px-2 py-0.5 rounded text-[10px] font-black border border-black/20 flex items-center gap-1 ${_==="mine"?"bg-black text-white":"bg-white text-black"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:226",children:"Ù
ÙØ§Ù
Ù"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:227",className:"bg-memphis-yellow text-black px-1 rounded-full text-[9px] font-black",children:a.filter(O=>O.assignee==="سعد Ø§ÙØ£ØÙ
د").length})]}),s.jsxs("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:229",onClick:()=>V("overdue"),className:`px-2 py-0.5 rounded text-[10px] font-black border border-black/20 flex items-center gap-1 ${_==="overdue"?"bg-black text-white":"bg-white text-black"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:233",children:"اÙÙ
تأخرة"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:234",className:"bg-red-500 text-white px-1 rounded-full text-[9px] font-black",children:a.filter(O=>O.dueDate<"2026-08-19"&&!O.done).length})]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:240",className:"space-y-1.5",children:B.map(O=>{const Y=t.find(X=>X.name===O.assignee)||t[0],Q=O.dueDate<"2026-08-19"&&!O.done,U=O.done?"bg-green-500":Q?"bg-red-500":"bg-amber-500",oe=O.done?"Ù
ÙØªÙ
ÙØ©":Q?"Ù
تأخرة":"ÙÙØ¯ Ø§ÙØªÙÙÙØ°";return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:248",draggable:!0,onDragStart:X=>K(X,O.id),onDragOver:X=>X.preventDefault(),onDrop:X=>Z(X,O.id),className:"flex flex-col gap-1 bg-gray-50 p-2.5 rounded-lg border border-black/10 cursor-move hover:bg-yellow-50/50 transition-colors",title:"Ø§Ø³ØØ¨ ÙØ£ÙÙØª ÙØ¥Ø¹Ø§Ø¯Ø© ØªØ±ØªÙØ¨ اÙÙ
ÙÙ
Ø©",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:257",className:"flex items-center justify-between gap-2",children:[s.jsxs("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:258",className:"flex items-center gap-2 cursor-pointer flex-1",children:[s.jsx("input",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:259",type:"checkbox",checked:O.done,onChange:()=>E(O.id),className:"w-4 h-4 accent-black rounded cursor-pointer"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:265",className:`font-bold text-xs ${O.done?"line-through text-black/40":"text-black"}`,children:O.text}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:268",className:"text-[10px] text-black/55 bg-gray-200/60 px-1.5 py-0.5 rounded",children:["استØÙاÙ: ",O.dueDate]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:271",className:"flex items-center gap-1.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:272",className:"relative flex items-center",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:273",className:"text-sm",title:`اÙÙ
سؤÙÙ: ${O.assignee}`,children:Y.avatar}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:274",className:`absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 rounded-full border border-white ${U}`,title:oe})]}),D?s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:277",value:O.assignee,onChange:X=>I(O.id,X.target.value),className:"text-[10px] p-1 border border-black/30 rounded bg-white font-bold",children:t.map(X=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:282",value:X.name,children:X.name},X.name))}):s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:285",className:"text-[10px] font-bold text-black/70 bg-gray-200/80 px-1.5 py-0.5 rounded",children:O.assignee}),s.jsxs("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:287",onClick:()=>{i(r===O.id?null:O.id),l(O.notes||""),O.unreadNote&&n(a.map(X=>X.id===O.id?{...X,unreadNote:!1}:X))},className:"text-[10px] bg-white border border-black/30 px-1.5 py-0.5 rounded font-bold hover:bg-gray-100 relative",title:"Ù
ÙØ§ØØ¸Ø§Øª ÙØªØØ¯Ùثات اÙÙ
ÙÙ
Ø©",children:["ð¬ ",(O.notes,"Ù
ÙØ§ØØ¸Ø©"),O.unreadNote&&s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:300",className:"absolute -top-1 -right-1 w-2.5 h-2.5 bg-red-500 rounded-full border border-white animate-pulse",title:"تعÙÙÙ Ø¬Ø¯ÙØ¯ ØºÙØ± Ù
ÙØ±ÙØ¡"})]}),D&&s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:304",onClick:()=>F(O.id),className:"text-red-600 font-black text-xs hover:bg-red-100 px-1.5 py-0.5 rounded",children:"â"})]})]}),r===O.id&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:315",className:"mt-1 pt-2 border-t border-black/10 flex items-center gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:316",type:"text",value:o,onChange:X=>l(X.target.value),placeholder:"Ø§ÙØªØ¨ تعÙÙÙØ§Ù Ø£Ù ØªØØ¯Ùثا٠ÙÙØØ§ÙØ©...",className:"flex-1 p-1 border border-black/30 rounded text-[11px] bg-white font-bold"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:323",onClick:()=>H(O.id),className:"bg-black text-white px-2.5 py-1 rounded text-[10px] font-black hover:bg-memphis-yellow hover:text-black transition-colors",children:"ØÙظ اÙÙ
ÙØ§ØØ¸Ø©"})]})]},O.id)})}),D&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:338",className:"flex flex-wrap gap-2 pt-1",children:[s.jsx("input",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:339",type:"text",value:m,onChange:O=>f(O.target.value),placeholder:"أض٠Ù
ÙÙ
Ø© Ù
خصصة Ø¬Ø¯ÙØ¯Ø©...",className:"flex-1 p-1.5 border border-black/30 rounded-lg text-xs font-bold bg-white min-w-[150px]"}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:346",value:h,onChange:O=>x(O.target.value),className:"p-1.5 border border-black/30 rounded-lg text-xs font-bold bg-white",children:t.map(O=>s.jsxs("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:351",value:O.name,children:[O.avatar," ",O.name]},O.name))}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:353",onClick:R,className:"bg-black text-white px-3 py-1 rounded-lg text-xs font-black hover:bg-memphis-yellow hover:text-black transition-colors",children:"Ø¥Ø¶Ø§ÙØ©"})]})]})}function q7e({teams:e}){const[t,a]=P.useState("all"),n=["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","أبرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ"],r=e.length>0?Math.round(e.reduce((l,c)=>l+c.rate,0)/e.length):60,i=t==="easy"?1.15:t==="hard"?.85:1,o=n.map((l,c)=>{const d=Math.min(100,Math.max(20,Math.round((r-(5-c)*3+(c%2===0?3:-2))*i))),m=Math.round(d*1.4);return{month:l,rate:d,solved:m}});return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:383",className:"mt-3 pt-3 border-t border-black/20 bg-white/90 p-3 rounded-xl space-y-2.5 border-2 border-black/20",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:384",className:"flex items-center justify-between flex-wrap gap-2",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:385",className:"font-black text-xs text-black flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:386",children:"ð"})," ØªØ·ÙØ± Ø¯ÙØ© اÙÙØ±Ù عبر Ø§ÙØ£Ø´Ùر (Ù
خطط زÙ
ÙÙ)"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:388",className:"flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:389",className:"text-[10px] font-bold text-black/70",children:"ØµØ¹ÙØ¨Ø© Ø§ÙØ£Ùغاز:"}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:390",value:t,onChange:l=>a(l.target.value),className:"text-[10px] p-1 border border-black/30 rounded font-bold bg-white",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:395",value:"all",children:"اÙÙÙ"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:396",value:"easy",children:"سÙÙ"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:397",value:"medium",children:"Ù
ØªÙØ³Ø·"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:398",value:"hard",children:"Ø
987µØ¹Ø¨"})]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:403",className:"grid grid-cols-6 gap-1.5 pt-2 items-end h-28 px-1",children:o.map((l,c)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:405",className:"flex flex-col items-center gap-1 h-full justify-end group relative cursor-pointer",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:410",className:"absolute bottom-full mb-1 hidden group-hover:flex flex-col items-center bg-black text-white text-[10px] p-1.5 rounded shadow-lg whitespace-nowrap z-20",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:411",className:"font-bold",children:l.month}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:412",children:["ÙØ³Ø¨Ø© Ø§ÙØ¯ÙØ©: ",l.rate,"%"]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:413",children:["Ø§ÙØ£Ùغاز اÙÙ ØÙÙÙØ©: ",l.solved]})]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:416",className:"text-[10px] font-black text-black/70",children:[l.rate,"%"]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:417",className:"w-full bg-memphis-lilac border border-black/30 rounded-t transition-all duration-500 group-hover:bg-black group-hover:text-white",style:{height:`${Math.max(15,l.rate)}%`}}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:421",className:"text-[10px] font-bold text-black/60 truncate",children:l.month})]},c))})]})}function U7e({teams:e}){const[t,a]=P.useState(e[0]?.id??0),[n,r]=P.useState(null),i=e.find(f=>f.id===Number(t))||e[0],o=i?i.correct:10,l=Math.round(o*.5),c=Math.round(o*.35),d=Math.max(0,o-l-c),m=(f,h)=>{re.success(`ð¯ ØªÙ تطبÙÙ Ø§ÙØªØµÙÙØ©: عرض Ø£ÙØºØ§Ø² ٠ستÙÙ "${f}" (${h} Ø£ÙØºØ§Ø²) ÙÙØ±ÙÙ ${i?.name}`)};return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:444",className:"mt-3 pt-3 border-t border-black/20 bg-white/90 p-3 rounded-xl space-y-2.5 border-2 border-black/20",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:445",className:"flex items-center justify-between flex-wrap gap-2",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:446",className:"font-black text-xs text-black flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:447",children:"ð©"})," ØªÙØ²Ùع Ø§ÙØ£Ùغاز ØØ³Ø¨ Ø§ÙØµØ¹Ùبة ÙÙÙ ÙØ±ÙÙ (اÙÙØ± ÙÙØªØµÙÙØ©)"]}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:449",value:t,onChange:f=>a(Number(f.target.value)),className:"text-[10px] p-1 border border-black/30 rounded font-bold bg-white",children:e.map(f=>s.jsxs("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:454",value:f.id,children:[f.icon," ",f.name]},f.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:458",className:"flex items-center justify-around py-2 bg-gray-50 rounded-xl border border-black/10 relative",children:[n&&s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:460",className:"absolute -top-3 bg-black text-white text-[10px] px-2 py-0.5 rounded shadow",children:n}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:464",onClick:()=>m("سÙÙ",l),className:"flex flex-col items-center cursor-pointer p-1.5 rounded hover:bg-emerald-100 transition-colors border border-transparent hover:border-emerald-500",onMouseEnter:()=>r(`سÙÙ: ${l} Ø£ÙØºØ§Ø² (50%) - اÙÙØ± ÙÙØªØµÙÙØ©`),onMouseLeave:()=>r(null),children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:470",className:"w-4 h-4 rounded-full bg-emerald-500 border border-black/30 mb-1"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:471",className:"text-[11px] font-black text-black",children:"سÙÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:472",className:"text-xs font-bold text-black/70",children:[l," (50%)"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:474",onClick:()=>m("Ù ØªÙØ³Ø·",c),className:"flex flex-col items-center cursor-pointer p-1.5 rounded hover:bg-amber-100 transition-colors border border-transparent hover:border-amber-500",onMouseEnter:()=>r(`Ù ØªÙØ³Ø·: ${c} Ø£ÙØºØ§Ø² (35%) - اÙÙØ± ÙÙØªØµÙÙØ©`),onMouseLeave:()=>r(null),children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:480",className:"w-4 h-4 rounded-full bg-amber-500 border border-black/30 mb-1"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:481",className:"text-[11px] font-black text-black",children:"Ù ØªÙØ³Ø·"}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:482",className:"text-xs font-bold text-black/70",children:[c," (35%)"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:484",onClick:()=>m("صعب",d),className:"flex flex-col items-center cursor-pointer p-1.5 rounded hover:bg-rose-100 transition-colors border border-transparent hover:border-rose-500",onMouseEnter:()=>r(`صعب: ${d} Ø£ÙØºØ§Ø² (15%) - اÙÙØ± ÙÙØªØµÙÙØ©`),onMouseLeave:()=>r(null),children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:490",className:"w-4 h-4 rounded-full bg-rose-500 border border-black/30 mb-1"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:491",className:"text-[11px] font-black text-black",children:"صعب"}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:492",className:"text-xs font-bold text-black/70",children:[d," (15%)"]})]})]})]})}function V7e({teams:e,onSelectTeam:t}){const[a,n]=P.useState(e[0]?.id??0),[r,i]=P.useState(e[1]?.id??e[0]?.id??0),o=e.find(x=>x.id===Number(a)),l=e.find(x=>x.id===Number(r)),[c,d]=P.useState(()=>{const x=localStorage.getItem("pinned_puzzle_comparison");return x?JSON.parse(x):null}),m=()=>{const x={id1:a,id2:r};d(x),localStorage.setItem("pinned_puzzle_comparison",JSON.stringify(x)),re.success("ð ØªÙ ØªØ«Ø¨ÙØª إعدادات اÙÙ ÙØ§Ø±ÙØ© Ø§ÙØØ§ÙÙØ© Ø¨ÙØ¬Ø§Ø ÙÙÙØµÙÙ Ø§ÙØ³Ø±Ùع")},f=()=>{c&&(n(c.id1),i(c.id2),re.info("ð ØªÙ Ø§Ø³ØªØ¹Ø§Ø¯Ø© اÙÙ ÙØ§Ø±ÙØ© اÙ٠ثبتة Ø¨ÙØ¬Ø§Ø"))},h=()=>{const x=new Date().toLocaleDateString("ar-SA"),b=` 988 <svg xmlns="http://www.w3.org/2000/svg" width="600" height="320" viewBox="0 0 600 320"> 989 <rect width="600" height="320" fill="#fffcf0" stroke="#000" stroke-width="4"/> 990 <text x="50" y="40" font-family="Tahoma" font-size="16" font-weight="bold" fill="#000">ðï¸ Ù ÙØµØ© جد ÙØ¬Ø¯ - ØªÙØ±Ùر أداء اÙÙØ±Ù</text> 991 <text x="550" y="40" font-family="Tahoma" font-size="12" fill="#555" text-anchor="end">Ø§ÙØªØ§Ø±ÙØ®: ${x}</text> 992 <line x1="30" y1="55" x2="570" y2="55" stroke="#000" stroke-width="2"/> 993 ${o?`<text x="50" y="95" font-family="Tahoma" font-size="14" font-weight="bold">${o.icon} ${o.name}: ${o.rate}% (${o.correct}/${o.total})</text> 994 <rect x="50" y="110" width="${Math.max(20,o.rate*4.5)}" height="22" fill="#3b82f6" rx="4"/>`:""} 995 ${l?`<text x="50" y="175" font-family="Tahoma" font-size="14" font-weight="bold">${l.icon} ${l.name}: ${l.rate}% (${l.correct}/${l.total})</text> 996 <rect x="50" y="190" width="${Math.max(20,l.rate*4.5)}" height="22" fill="#10b981" rx="4"/>`:""} 997 <text x="300" y="285" font-family="Tahoma" font-size="11" fill="#444" text-anchor="middle">شعار اÙÙ ÙØµØ©: جد ÙØ¬Ø¯ | ٠عت٠د Ù Ù ÙÙØØ© Ø§ÙØ¥Ø´Ø±Ø§Ù</text> 998 </svg> 999 `,y=new Blob([b],{type:"image/svg+xml;charset=utf-8"}),w=URL.createObjectURL(y),j=document.createElement("a");j.href=w,j.download=`teams_comparison_${x}
999.svg`,document.body.appendChild(j),j.click(),document.body.removeChild(j),re.success("ð¸ ØªÙ
ØÙظ Ø§ÙØ±Ø³Ù
Ø§ÙØ¨ÙاÙÙ ÙØµÙرة SVG Ù
ع Ø§ÙØ´Ø¹Ø§Ø± ÙØ§ÙØªØ§Ø±ÙØ® Ø¨ÙØ¬Ø§Ø")};return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:553",className:"bg-yellow-50/70 border-2 border-black/20 rounded-xl p-3 space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:554",className:"flex items-center justify-between flex-wrap gap-2",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:555",className:"font-black text-xs text-black flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:556",children:"ð¥"})," أداء اÙÙØ±Ù ÙÙ
ÙØ§Ø±ÙØ© Ù
باشرة"]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:558",onClick:h,className:"text-[11px] font-black bg-black text-white px-2 py-1 rounded-lg hover:bg-memphis-yellow hover:text-black transition-colors border border-black",title:"ØÙظ اÙÙ
خطط Ø§ÙØ¨ÙاÙÙ ÙØµÙرة",children:"ð· ØÙØ¸ ÙØµÙرة"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:568",className:"bg-white border border-black/20 rounded-lg p-2.5 space-y-2 text-xs",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:569",className:"flex items-center justify-between",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:570",className:"font-bold text-black/70",children:"Ù
ÙØ§Ø±ÙØ© Ø¬Ø§ÙØ¨ÙØ© بÙÙ ÙØ±ÙÙÙÙ:"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:571",className:"flex gap-1.5",children:[s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:572",onClick:m,className:"text-[10px] font-black bg-memphis-yellow text-black px-2 py-0.5 rounded border border-black hover:bg-black hover:text-white transition-colors",title:"ØÙظ ÙØ°Ù اÙÙ
ÙØ§Ø±ÙØ© ÙÙÙØµÙÙ Ø§ÙØ³Ø±Ùع ÙØ§ØÙاÙ",children:"ð ØªØ«Ø¨ÙØª اÙÙ
ÙØ§Ø±ÙØ©"}),c&&s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:580",onClick:f,className:"text-[10px] font-black bg-memphis-mint text-black px-2 py-0.5 rounded border border-black hover:bg-black hover:text-white transition-colors",title:"استعادة اÙÙ
ÙØ§Ø±ÙØ© اÙÙ
ثبتة",children:"ð Ø§Ø³ØªØ¹Ø§Ø¯Ø© اÙÙ
ثبتة"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:590",className:"grid grid-cols-2 gap-2",children:[s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:591",value:a,onChange:x=>n(Number(x.target.value)),className:"p-1.5 rounded border border-black/30 font-bold text-xs bg-white",children:e.map(x=>s.jsxs("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:596",value:x.id,children:[x.icon," ",x.name]},x.id))}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:598",value:r,onChange:x=>i(Number(x.target.value)),className:"p-1.5 rounded border border-black/30 font-bold text-xs bg-white",children:e.map(x=>s.jsxs("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:603",value:x.id,children:[x.id," ",x.name]},x.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:608",className:"pt-2 space-y-2 border-t border-black/10",children:[o&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:610",className:"space-y-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:611",className:"flex justify-between font-bold text-[11px]",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:612",children:[o.icon," ",o.name]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:613",children:[o.rate,"% (",o.correct,"/",o.total,")"]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:615",className:"w-full bg-gray-100 h-2 rounded-full overflow-hidden border border-black/10",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:616",className:"bg-blue-600 h-full rounded-full transition-all duration-500",style:{width:`${Math.max(5,o.rate)}%`}})})]}),l&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:621",className:"space-y-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:622",className:"flex justify-between font-bold text-[11px]",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:623",children:[l.icon," ",l.name]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:624",children:[l.rate,"% (",l.correct,"/",l.total,")"]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:626",className:"w-full bg-gray-100 h-2 rounded-full overflow-hidden border border-black/10",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:627",className:"bg-emerald-600 h-full rounded-full transition-all duration-500",style:{width:`${Math.max(5,l.rate)}%`}})})]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:635",className:"space-y-2",children:e.map(x=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:637",onClick:()=>t(x),title:`ÙØ±ÙÙ ${x.name}: ${x.correct} إجابة صØÙØØ© Ù
٠أص٠${x.total} Ù
Ø´Ø§Ø±ÙØ© (${x.rate}% ÙØ³Ø¨Ø© Ø¯ÙØ©)`,className:"bg-white border-2 border-black/20 rounded-lg p-2.5 text-xs space-y-1.5 cursor-pointer hover:border-black transition-all hover:shadow-sm group relative",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:643",className:"flex items-center justify-between",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:644",className:"font-bold text-black flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:645",children:x.icon})," ",x.name," ",s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:645",className:"text-[10px] text-black/40 group-hover:text-black",children:"ð Ø§ÙÙØ± ÙÙØªÙاصÙÙ"})]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:647",className:"font-black text-black",children:[x.correct,"/",x.total," (",x.rate,"%)"]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:649",className:"w-full bg-gray-100 h-2 rounded-full overflow-hidden border border-black/10",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:650",className:`h-full transition-all duration-500 ${x.rate>
999=70?"bg-green-500":x.rate>=40?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.max(5,x.rate)}%`}})})]},x.id))})]})}function Q7e({selectedTeam:e,onClose:t}){const[a,n]=P.useState(""),r=(e.solvedList||[]).filter(l=>l.userName.toLowerCase().includes(a.toLowerCase())),i=()=>{let l=`\uFEFFØ§Ø³Ù Ø§ÙØ¹Ø¶Ù,Ø§ÙØØ§ÙØ©,ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø© (Ø«ÙØ§ÙÙ) 1000`;e.solvedList.forEach(f=>{l+=`"${f.userName}",${f.isCorrect?"صØÙØ":"خطأ"},${f.timeSeconds} 1001`});const c=new Blob([l],{type:"text/csv;charset=utf-8;"}),d=URL.createObjectURL(c),m=document.createElement("a");m.setAttribute("href",d),m.setAttribute("download",`team_${e.name}_puzzle_details.csv`),document.body.appendChild(m),m.click(),document.body.removeChild(m),re.success("â ØªÙ ØªÙØ²ÙÙ ØªÙØ§ØµÙ٠اÙÙØ±ÙÙ Ø¨ØµÙØºØ© CSV Ø¨ÙØ¬Ø§Ø")},o=()=>{const l=window.open("","_blank");if(!l){re.error("ÙØ±Ø¬Ù Ø§ÙØ³Ù Ø§Ø Ø¨ÙØªØ اÙÙÙØ§Ùذ اÙÙ ÙØ¨Ø«ÙØ© ÙÙØªØµØ¯Ùر");return}const c=` 1002 <html dir="rtl" lang="ar"> 1003 <head> 1004 <title>ØªÙØ§ØµÙ٠إجابات ÙØ±ÙÙ ${e.name}</title> 1005 <style> 1006 body { font-family: Tahoma, Arial, sans-serif; padding: 20px; color: #111; } 1007 h1 { font-size: 18px; border-bottom: 2px solid #000; padding-bottom: 8px; } 1008 table { width: 100%; border-collapse: collapse; margin-top: 15px; } 1009 th, td { border: 1px solid #333; padding: 6px 10px; text-align: right; font-size: 13px; } 1010 th { background: #f0f0f0; } 1011 </style> 1012 </head> 1013 <body> 1014 <h1>ØªÙØ±Ùر ØªÙØµÙÙÙ ÙÙØ±ÙÙ ${e.name}</h1> 1015 <p>إج٠اÙ٠اÙÙ Ø´Ø§Ø±ÙØ§Øª: <strong>${e.total}</strong> | Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©: <strong>${e.correct} (${e.rate}%)</strong></p> 1016 <table> 1017 <thead><tr><th>Ø§Ø³Ù Ø§ÙØ¹Ø¶Ù</th><th>Ø§ÙØØ§ÙØ©</th><th>ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø©</th></tr></thead> 1018 <tbody> 1019 ${e.solvedList.map(d=>`<tr><td>${d.userName}</td><td>${d.isCorrect?"صØÙØ":"خطأ"}</td><td>${d.timeSeconds} ثاÙÙØ©</td></tr>`).join("")} 1020 </tbody> 1021 </table> 1022 <script>window.print();<\/script> 1023 </body> 1024 </html> 1025 `;l.document.write(c),l.document.close(),re.success("â ØªÙ ÙØªØ ÙØ§Ùذة طباعة ØªÙØ§ØµÙ٠اÙÙØ±ÙÙ Ø¨ØµÙØºØ© PDF")};return s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:721",className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-xs flex items-center justify-center p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:722",className:"bg-white border-4 border-black shadow-memphis-lg rounded-2xl w-full max-w-md p-6 space-y-4 max-h-[85vh] overflow-y-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:723",className:"flex items-center justify-between border-b-2 border-black pb-3",children:[s.jsxs("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:724",className:"font-black text-base text-black flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:725",children:e.icon})," ØªÙØ§ØµÙ٠إجابات ÙØ±ÙÙ ",e.name]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:727",onClick:t,className:"w-8 h-8 rounded-lg border-2 border-black bg-gray-100 hover:bg-red-100 font-black text-sm flex items-center justify-center transition-colors",children:"â"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:735",className:"space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:736",className:"flex items-center justify-between text-xs font-bold text-black/60 flex-wrap gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:737",children:["إج٠اÙ٠اÙÙ Ø´Ø§Ø±ÙØ§Øª: ",e.total]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:738",children:["Ø§ÙØµØÙØØ©: ",e.correct," (",e.rate,"%)"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:739",className:"flex gap-1.5 w-full sm:w-auto mt-1",children:[s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:740",onClick:i,className:"text-[11px] font-black bg-black text-white px-2.5 py-1 rounded-lg hover:bg-memphis-yellow hover:text-black transition-colors",children:"ð¥ CSV"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:746",onClick:o,className:"text-[11px] font-black bg-memphis-lilac text-black px-2.5 py-1 rounded-lg hover:bg-black hover:text-white transition-colors",children:"ð PDF"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:756",className:"relative",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:757",className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-black/40",children:"ð"}),s.jsx("input",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:758",type:"text",value:a,onChange:l=>n(l.target.value),placeholder:"Ø§Ø¨ØØ« Ø¨Ø§Ø³Ù Ø§ÙØ¹Ø¶Ù...",className:"w-full pl-3 pr-9 py-2 rounded-xl border-2 border-black/30 focus:border-black text-xs font-bold bg-white"})]}),r.length===0?s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:768",className:"text-xs text-black/40 text-center py-6",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØªØ§Ø¦Ø¬ Ù Ø·Ø§Ø¨ÙØ© ÙÙØ¨ØØ« ÙÙ Ø³Ø¬ÙØ§Øª ÙØ°Ø§ اÙÙØ±ÙÙ."}):s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:770",className:"space-y-2 max-h-56 overflow-y-auto pr-1",children:r.map((l,c)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:772",className:"flex items-center justify-between p-2.5 rounded-xl border border-black/20 bg-gray-50 text-xs",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:773",className:"font-bold text-black",children:l.userName}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:774",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:775",className:`px-2 py-0.5 rounded font-black text-[10px] ${l.isCorrect?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:l.isCorrect?"â ØµØÙØ":"â Ø®Ø·Ø£"}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:778",className:"text-black/50 text-[10px]",children:[l.timeSeconds,"Ø«"]})]})]},c))})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:786",className:"pt-2 border-t border-black/10 flex justify-end",children:s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:787",onClick:t,className:"memphis-btn bg-black text-white px-4 py-2 text-xs font-black",children:"Ø¥ØºÙØ§Ù"})})]})})}function W7e({puzzleId:e}){const[t,a]=P.useState("all"),[n,r]=P.useState(null),[i,o]=P.useState(!1),{data:l,isLoading:c}=J.puzzle.departmentTeamAnalytics.useQuery({puzzleId:e,timeRange:t});if(c)return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:807",className:"mt-4 pt-4 border-t-2 border-black/10 space-y-3 animate-pulse",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:808",className:"flex items-center justify-between",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:809",className:"h-4 bg-gray-200 rounded w-48"}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:810",className:"h-6 bg-gray-200 rounded w-28"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:812",className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:813",className:"h-40 bg-gray-200 rounded-xl"}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:814",className:"h-40 bg-gray-200 rounded-xl"})]})]});if(!l||l.teams.length===0&&l.categories.length===0)return s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:821",className:"py-3 text-center text-xs text-black/50 font-medium bg-gray-50 rounded-xl border border-black/10",children:"ÙØ§ ØªÙØ¬Ø¯ إجابات Ù Ø³Ø¬ÙØ© ÙÙØ°Ø§ اÙÙØºØ² بعد ÙØªÙØ²ÙØ¹Ùا عÙ٠اÙÙØ±Ù."});const d=l.overallRate??0,m=()=>{let h=`\uFEFF٠عر٠اÙÙØ±ÙÙ,اس٠اÙÙØ±ÙÙ,إج٠اÙ٠اÙÙ Ø´Ø§Ø±ÙØ§Øª,Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©,ÙØ³Ø¨Ø© Ø§ÙØ¯ÙØ© 1026`;
1026l.teams.forEach(w=>{h+=`${w.id},"${w.name}",${w.total},${w.correct},${w.rate}% 1027`});const x=new Blob([h],{type:"text/csv;charset=utf-8;"}),b=URL.createObjectURL(x),y=document.createElement("a");y.setAttribute("href",b),y.setAttribute("download",`puzzle_${e}_teams_report.csv`),document.body.appendChild(y),y.click(),document.body.removeChild(y),re.success("â ØªÙ ØªÙØ²ÙÙ ØªÙØ±Ùر اÙÙØ±Ù Ø¨ØµÙØºØ© CSV Ø¨ÙØ¬Ø§Ø")},f=()=>{const h=window.open("","_blank");if(!h){re.error("ÙØ±Ø¬Ù Ø§ÙØ³Ù Ø§Ø Ø¨ÙØªØ اÙÙÙØ§Ùذ اÙÙ ÙØ¨Ø«ÙØ© ÙØªØµØ¯Ùر Ø§ÙØªÙØ±ÙØ±");return}const x=` 1028 <html dir="rtl" lang="ar"> 1029 <head> 1030 <title>ØªÙØ±Ùر تØÙÙ٠اÙÙØºØ² #${e}</title> 1031 <style> 1032 body { font-family: Tahoma, Arial, sans-serif; padding: 20px; color: #111; } 1033 h1 { font-size: 20px; border-bottom: 2px solid #000; padding-bottom: 10px; } 1034 table { width: 100%; border-collapse: collapse; margin-top: 15px; } 1035 th, td { border: 1px solid #333; padding: 8px 12px; text-align: right; font-size: 14px; } 1036 th { background: #f0f0f0; } 1037 </style> 1038 </head> 1039 <body> 1040 <h1>ØªÙØ±Ùر أداء اÙÙØ±Ù ÙØ§ÙÙØ±Ù اÙÙ Ø´Ø§Ø±ÙØ© ÙÙØºØ² رÙÙ ${e}</h1> 1041 <p>إج٠اÙ٠اÙÙ Ø´Ø§Ø±ÙØ§Øª: <strong>${l.totalAnswers}</strong> | ÙØ³Ø¨Ø© Ø§ÙØ¯ÙØ© Ø§ÙØ¹Ø§Ù Ø©: <strong>${l.overallRate}%</strong></p> 1042 <table> 1043 <thead> 1044 <tr><th>اس٠اÙÙØ±ÙÙ</th><th>إج٠اÙ٠اÙÙ Ø´Ø§Ø±ÙØ§Øª</th><th>Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©</th><th>ÙØ³Ø¨Ø© Ø§ÙØ¯ÙØ©</th></tr> 1045 </thead> 1046 <tbody> 1047 ${l.teams.map(b=>`<tr><td>${b.icon} ${b.name}</td><td>${b.total}</td><td>${b.correct}</td><td>${b.rate}%</td></tr>`).join("")} 1048 </tbody> 1049 </table> 1050 <script>window.print();<\/script> 1051 </body> 1052 </html> 1053 `;h.document.write(x),h.document.close(),re.success("â ØªÙ ÙØªØ ÙØ§Ùذة طباعة ÙØªØµØ¯Ùر Ø§ÙØªÙØ±ÙØ± Ø¨ØµÙØºØ© PDF")};return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:881",className:"mt-4 pt-4 border-t-2 border-black/10 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:882",className:"flex items-center justify-between flex-wrap gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:883",className:"flex items-center gap-2",children:[s.jsx("h4",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:884",className:"font-black text-sm text-black",children:"ð ØªØÙÙ٠أداء اÙÙØ±Ù ÙØ§ÙÙØ±Ù اÙÙ Ø´Ø§Ø±ÙØ©"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:886",className:"flex items-center gap-1 bg-white border-2 border-black/20 rounded-lg p-0.5 text-[11px] font-bold",children:[s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:887",onClick:()=>a("all"),className:`px-2 py-0.5 rounded ${t==="all"?"bg-black text-white":"text-black/70 hover:bg-gray-100"}`,children:"اÙÙÙ"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:893",onClick:()=>a("month"),className:`px-2 py-0.5 rounded ${t==="month"?"bg-black text-white":"text-black/70 hover:bg-gray-100"}`,children:"Ø§ÙØ´Ùر اÙ٠اضÙ"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:899",onClick:()=>a("week"),className:`px-2 py-0.5 rounded ${t==="week"?"bg-black text-white":"text-black/70 hover:bg-gray-100"}`,children:"آخر 7 Ø£ÙØ§Ù "})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:907",className:"flex items-center gap-2 flex-wrap",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:908",className:"text-xs font-bold bg-blue-100 text-blue-800 px-2.5 py-1 rounded-full border border-blue-300",children:["إج٠اÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª: ",l.totalAnswers," (",d,"% Ø¯ÙØ© عا٠ة)"]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:911",onClick:m,className:"text-xs font-black bg-black text-white px-2.5 py-1 rounded-lg hover:bg-memphis-yellow hover:text-black transition-colors border border-black",children:"ð¥ ØªØµØ¯Ùر CSV"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:917",onClick:f,className:"text-xs font-black bg-memphis-lilac text-black px-2.5 py-1 rounded-lg hover:bg-black hover:text-white transition-colors border border-black",children:"ð ØªØµØ¯ÙØ± PDF Ø§ÙØªÙØ±ÙØ±"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:923",disabled:i,onClick:()=>
1053{o(!0),re.loading("Ⳡجار٠تجÙÙØ² ÙØªØµØ¯Ùر Ù ÙÙ Ø§ÙØªÙØ±ÙØ± Ø§ÙØ´Ø§Ù Ù PDF..."),setTimeout(()=>{o(!1),re.dismiss();const h=window.open("","_blank");if(!h){re.error("ÙØ±Ø¬Ù Ø§ÙØ³Ù Ø§Ø Ø¨ÙØªØ اÙÙÙØ§Ùذ اÙÙ ÙØ¨Ø«ÙØ©");return}const x=` 1054 <html dir="rtl" lang="ar"> 1055 <head> 1056 <title>Ø§ÙØªÙØ±ÙØ± Ø§ÙØ´Ø§Ù Ù ÙØ£Ø¯Ø§Ø¡ Ø§ÙØ£Ùغاز ÙØ§ÙÙØ±Ù</title> 1057 <style> 1058 body { font-family: Tahoma, Arial, sans-serif; padding: 25px; color: #111; } 1059 h1 { font-size: 20px; border-bottom: 3px solid #000; padding-bottom: 10px; margin-bottom: 15px; } 1060 h2 { font-size: 16px; margin-top: 20px; border-bottom: 1px solid #666; padding-bottom: 5px; } 1061 table { width: 100%; border-collapse: collapse; margin-top: 10px; margin-bottom: 20px; } 1062 th, td { border: 1px solid #333; padding: 8px 12px; text-align: right; font-size: 13px; } 1063 th { background: #f0f0f0; } 1064 </style> 1065 </head> 1066 <body> 1067 <h1>Ù ÙØµØ© جد ÙØ¬Ø¯ - Ø§ÙØªÙØ±ÙØ± Ø§ÙØ´Ø§Ù Ù ÙØªØÙÙÙØ§Øª Ø§ÙØ£Ùغاز ÙØ§ÙÙØ±Ù</h1> 1068 <p>ØªØ§Ø±ÙØ® Ø§ÙØªÙØ±ÙØ±: <strong>${new Date().toLocaleDateString("ar-SA")}</strong> | اÙÙØ·Ø§Ù Ø§ÙØ²Ù Ù٠اÙÙ ØØ¯Ø¯: <strong>${t==="week"?"آخر 7 Ø£ÙØ§Ù ":t==="month"?"Ø§ÙØ´Ùر اÙ٠اضÙ":"Ø¬Ù ÙØ¹ اÙÙØªØ±Ø§Øª"}</strong></p> 1069 1070 <div style="background: #f4f4f4; border: 1px solid #ccc; padding: 12px; margin-bottom: 20px; border-radius: 6px;"> 1071 <h3 style="margin-top:0; font-size: 14px;">اÙÙ ÙØ®Øµ Ø§ÙØ¥ØØµØ§Ø¦Ù ÙÙÙØªØ±Ø©:</h3> 1072 <p style="margin: 4px 0; font-size: 13px;">⢠إج٠اÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª اÙÙ Ø³Ø¬ÙØ©: <strong>${l.totalAnswers}</strong></p> 1073 <p style="margin: 4px 0; font-size: 13px;">â¢ ÙØ³Ø¨Ø© Ø§ÙØ¯ÙØ© Ø§ÙØ¹Ø§Ù Ø©: <strong>${l.overallRate}%</strong></p> 1074 <p style="margin: 4px 0; font-size: 13px;">⢠إج٠اÙÙ Ù ÙØ§Ù خطة Ø§ÙØ¹Ù ٠اÙÙ ÙØ¬Ø²Ø©: <strong>2/2 (100%)</strong></p> 1075 </div> 1076 1077 <h2>أداء اÙÙØ±Ù اÙÙ Ø´Ø§Ø±ÙØ©</h2> 1078 <table> 1079 <thead><tr><th>اس٠اÙÙØ±ÙÙ</th><th>اÙÙ Ø´Ø§Ø±ÙØ§Øª</th><th>Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©</th><th>ÙØ³Ø¨Ø© Ø§ÙØ¯ÙØ©</th></tr></thead> 1080 <tbody> 1081 ${l.teams.map(b=>`<tr><td>${b.icon} ${b.name}</td><td>${b.total}</td><td>${b.correct}</td><td>${b.rate}%</td></tr>`).join("")} 1082 </tbody> 1083 </table> 1084 <script>window.print();<\/script> 1085 </body> 1086 </html> 1087 `;h.document.write(x),h.document.close(),re.success("â ØªÙ ØªØµØ¯ÙØ± Ø§ÙØªÙØ±ÙØ± Ø§ÙØ´Ø§Ù Ù Ø¨ØµÙØºØ© PDF Ø¨ÙØ¬Ø§Ø")},800)},className:"text-xs font-black bg-emerald-600 text-white px-2.5 py-1 rounded-lg hover:bg-emerald-700 transition-colors border border-black flex items-center gap-1.5",children:i?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:980",className:"w-3 h-3 border-2 border-white border-t-transparent rounded-full animate-spin"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:981",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØµØ¯Ùر..."})]}):s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:984",children:"ð¨ï¸ ØªØµØ¯ÙØ± Ø§ÙØ´Ø§Ù Ù PDF"})}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:987",onClick:()=>{const h=`${window.location.origin}/admin/puzzles?puzzle=${e}&range=${t}`;navigator.clipboard.writeText(h),re("ð ØªÙ ÙØ³Ø® رابط Ø§ÙØªÙØ±ÙØ± Ø¨ÙØ¬Ø§Ø",{description:`Ø§ÙØ±Ø§Ø¨Ø· اÙÙ ØÙÙØ¸: ${h} (اÙÙØªØ±Ø©: ${t})`,duration:4e3})},className:"text-xs font-black bg-memphis-mint text-black px-2.5 py-1 rounded-lg hover:bg-black hover:text-white transition-colors border border-black",title:"ÙØ³Ø® رابط ٠باشر ÙÙØ°Ø§ Ø§ÙØªÙØ±ÙØ± ٠ع اÙÙÙØªØ± Ø§ÙØ²Ù ÙÙ",children:"ð Ù Ø´Ø§Ø±ÙØ© Ø§ÙØªÙØ±ÙØ±"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1005",className:"bg-memphis-yellow/30 border-2 border-black rounded-xl p-4 space-y-2 shadow-memphis",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1006",className:"flex items-center justify-between",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1007",className:"font-black text-xs text-black flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1008",children:"ð¤"})," Ù ÙØ®Øµ أداء Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ§ÙØªÙØµÙات Ø§ÙØ¹Ù ÙÙØ©:"]}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1010",className:"text-[10px] font-bold bg-black text-white px-2 py-0.5 rounded-md",children:"تØÙÙ٠ذÙÙ"})]}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1012",className:"text-xs text-black/90 font-medium leading-relaxed",children:[d>=70?`أداء عا٠٠٠تاز Ø¨ÙØ³Ø¨Ø© Ø¯ÙØ© ${d}%Ø Ù Ø¹ ØªÙØ§Ø¹Ù Ø¥ÙØ¬Ø§Ø¨Ù Ù ÙØÙØ¸ ٠٠اÙÙØ±Ù ÙÙ ØÙ Ø§ÙØ£Ùغاز اÙÙ Ø¹Ø±ÙØ¶Ø©.`:d>=40?`أداء Ù ØªÙØ³Ø· Ø¨ÙØ³Ø¨Ø© Ø¯ÙØ© ${d}%Ø ÙÙÙØµØ Ø¨ØªÙØ¯Ù٠تÙÙ ÙØØ§Øª إضاÙÙØ© ÙØªØØ³ÙÙ ÙØ³Ø¨Ø© Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©.`:`ÙØ³Ø¨Ø© Ø¯ÙØ© Ù ÙØ®Ùضة (${d}%)Ø ÙØªØ·Ùب اÙÙØºØ² ٠راجعة ٠ستÙÙ Ø§ÙØµØ¹Ùبة Ø£Ù ØªØ¹Ø²ÙØ² Ø§ÙØ¯Ø¹Ù ÙÙ٠شارÙÙÙ.`,l.teams.length>
10870&&` اÙÙØ±ÙÙ Ø§ÙØ£Ùثر ÙØ´Ø§Ø·Ø§Ù ØØ§ÙÙØ§Ù ÙÙ "${l.teams.reduce((h,x)=>h.total>x.total?h:x).name}".`]}),s.jsx(H7e,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1021",teams:l.teams}),s.jsx(q7e,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1024",teams:l.teams}),s.jsx(U7e,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1027",teams:l.teams})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1030",className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[s.jsx(V7e,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1032",teams:l.teams,onSelectTeam:h=>r(h)}),n&&s.jsx(Q7e,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1036",selectedTeam:n,onClose:()=>r(null)}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1040",className:"bg-purple-50/70 border-2 border-black/20 rounded-xl p-3",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1041",className:"font-bold text-xs text-black mb-2 flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1041",children:"ð·ï¸"})," Ø§ÙØªÙØ²ÙØ¹ ØØ³Ø¨ Ø§ÙØªØµÙÙÙ (رسÙ
Ø¨ÙØ§ÙÙ ØªÙØ§Ø¹ÙÙ)"]}),l.categories.length===0?s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1043",className:"text-xs text-black/40 text-center py-2",children:"ÙØ§ ØªÙØ¬Ø¯ تصÙÙÙØ§Øª Ù
رتبطة"}):s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1045",className:"space-y-3",children:l.categories.map(h=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1047",className:"bg-white border border-black/20 rounded-lg p-2.5 text-xs space-y-1.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1048",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1049",className:"font-bold text-black",children:qd[h.category]??h.category}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1050",className:"font-black text-black",children:[h.correct,"/",h.total," (",h.rate,"%)"]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1053",className:"w-full bg-gray-100 h-2.5 rounded-full overflow-hidden border border-black/10",children:s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1054",className:"h-full bg-purple-600 transition-all duration-500",style:{width:`${Math.max(5,h.rate)}%`}})})]},h.category))})]})]})]})}function K7e(){const{user:e}=Ma({redirectOnUnauthenticated:!0}),t=e?.role==="admin",[a,n]=P.useState("list"),[r,i]=P.useState(""),[o,l]=P.useState("all"),[c,d]=P.useState("all"),[m,f]=P.useState("newest"),[h,x]=P.useState(!1),[b,y]=P.useState(!1),[w,j]=P.useState(!1),[N,k]=P.useState(!1),[D,C]=P.useState(!1),[S,A]=P.useState(null),[E,R]=P.useState([]),{data:F,refetch:I}=J.puzzle.all.useQuery(void 0,{enabled:t}),{data:H}=J.adminPanel.puzzlePreferences.get.useQuery(void 0,{enabled:t}),_=J.adminPanel.puzzlePreferences.save.useMutation({onError:()=>re.error("تعذر ØÙظ ØªÙØ¶ÙÙØ§Øª ÙÙØØ© Ø§ÙØ£Ùغاز")}),{data:V,isLoading:W}=J.puzzle.analytics.useQuery(void 0,{enabled:t&&a==="analytics"});P.useEffect(()=>{!H||h||(i(H.search),l(H.difficulty),d(H.status),f(H.sort),x(!0))},[H,h]),P.useEffect(()=>{if(!b)return;j(!0);const de=window.setTimeout(()=>j(!1),260);return()=>window.clearTimeout(de)},[r,o,c,m,b]),P.useEffect(()=>{if(!h||!b)return;const de=window.setTimeout(()=>{_.mutate({search:r,difficulty:o,status:c,sort:m})},450);return()=>window.clearTimeout(de)},[r,o,c,m,h,b]);const B=P.useMemo(()=>L7e(F??[],{search:r,difficulty:o,status:c,sort:m}),[F,r,o,c,m]),K=P.useMemo(()=>B7e(F??[],r,{difficulty:o,status:c}),[F,r,o,c]),ae=J.puzzle.create.useMutation({onSuccess:()=>{re.success("â
تÙ
Ø¥ÙØ´Ø§Ø¡ اÙÙØºØ²!"),I(),k(!1),ge(),Pe()},onError:()=>re.error("ØØ¯Ø« خطأ Ø£Ø«ÙØ§Ø¡ Ø§ÙØ¥Ùشاء")}),$=J.puzzle.update.useMutation({onSuccess:()=>{re.success("â
تÙ
ØªØØ¯ÙØ« اÙÙØºØ²!"),I(),A(null)},onError:()=>re.error("ØØ¯Ø« خطأ Ø£Ø«ÙØ§Ø¡ Ø§ÙØªØØ¯ÙØ«")}),Z=J.puzzle.toggleActive.useMutation({onSuccess:(de,be)=>{re.success(be.isActive?"â
تÙ
ØªÙØ¹Ù٠اÙÙØºØ²":"تÙ
Ø¥ÙØºØ§Ø¡ Ø§ÙØªÙعÙÙ"),I()},onError:()=>re.error("ØØ¯Ø« خطأ")}),O=J.puzzle.notifyNew.useMutation({onSuccess:de=>re.success(`ð¢ ØªÙ
Ø¥Ø±Ø³Ø§Ù Ø§ÙØ¥Ø´Ø¹Ø§Ø± ÙÙ ${de} Ù
ÙØ¸Ù!`),onError:()=>re.error("ØØ¯Ø« خطأ ÙÙ Ø§ÙØ¥Ø±Ø³Ø§Ù")}),Y=J.puzzle.autoActivate.useMutation({onSuccess:de=>{de?(re.success(`â
تÙ
ØªÙØ¹ÙÙ: "${de.titleAr}"`),I()):re.info("ÙØ§ ÙÙØ¬Ø¯ ÙØºØ² Ù
جدÙÙ ÙÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع ØØ§ÙÙØ§Ù")},onError:()=>re.error("ØØ¯Ø« خطأ")}),Q=J.puzzle.remindPending.useMutation({onSuccess:de=>{de>0?re.success(`ð ØªÙ
إرسا٠تذÙÙØ± ÙÙ ${de} Ù
ÙØ¸Ù ÙÙ
ÙØ´Ø§Ø±Ù بعد!`):re.info("ð Ø¬Ù
ÙØ¹ اÙÙ
ÙØ¸ÙÙ٠شارÙÙØ§ باÙÙØ¹Ù!")},onError:()=>re.error("ØØ¯Ø« خطأ ÙÙ Ø¥Ø±Ø³Ø§Ù Ø§ÙØªØ°ÙÙØ±")}),{weekStart:U,weekEnd:oe}=G7e(),[X,ne]=P.useState({titleAr:"",questionAr:"",hintAr:"",correctAnswer:"",explanation:"",difficulty:"medium",category:"general",pointsReward:50,weekStart:U,weekEnd:oe}),ge=()=>ne({titleAr:"",questionAr:"",hintAr:"",correctAnswer:"",explanation:"",difficulty:"medium",category:"general",pointsReward:50,weekStart:U,weekEnd:oe}),[me,Ae]=P.useState(["","","",""]),Pe=()=>Ae(["","","",""]),[L,ke]=P.useState(!1),[Me,Ze]=P.useState("general"),[Ce,Te]=P.useState("medium"),Ke=J.contentAdmin.generatePuzzle.useMutation({onSuccess:de=>{ne({titleAr:de.titleAr,questionAr:de.questionAr,hintAr:de.hintAr,correctAnswer:de.correctAnswer,explanation:de.explanation,difficulty:Ce,category:Me,pointsReward:50,weekStart:U,weekEnd:oe}),Ae(de.options.length>=2?[...de.options]:["","","",""]),k(!0),ke(!1),re.success("⨠تÙ
تÙÙÙØ¯ اÙÙØºØ²! راجع Ø§ÙØ¨ÙØ§ÙØ§Øª ÙØ£Ø¶Ù ØªÙØ§Ø±ÙØ® Ø§ÙØ£Ø³Ø¨Ùع Ø«Ù
اØÙظ.")},onError:de=>re.error("خطأ ÙÙ Ø§ÙØªÙÙÙØ¯: "+de.message)}),Ve=()=>{me.length<6&&Ae(de=>[...de,""])},ht=de=>{if(me.length<=2)return;const be=me[de];Ae(G=>G.filter((je,ze)=>ze!==de)),X.correctAnswer===be&&ne(G=>({...G,correctAnswer:""}))},pe=(de,be)=>{Ae(G=>G.map((je,ze)=>ze===de?be:je))},et=de=>{const be=de,G=Array.isArray(be.options)&&be.options.length>=2?[...be.options]:["","","",""];R(G),A({id:be.id,titleAr:be.titleAr,questionAr:be.questionAr,hintAr:be.hintAr??"",correctAnswer:be.correctAnswer,options:G,explanation:be.explanation??"",difficulty:be.difficulty,category:be.category,pointsReward:be.pointsReward,weekStart:be.weekStart,weekEnd:be.weekEnd})},xe=()=>{if(!S)return;if(!S.titleAr||!S.questionAr||!S.correctAnswer){re.error("ÙØ±Ø¬Ù Ù
ÙØ¡ Ø§ÙØÙÙ٠اÙÙ
Ø·ÙÙØ¨Ø©");return}const de=E.filter(be=>be.trim()!=="");if(de.length>=2&&!de.includes(S.correctAnswer)){re.error("ÙØ¬Ø¨ أ٠تÙÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© Ø£ØØ¯ Ø§ÙØ®Ùارات");return}$.mutate({puzzleId:S.id,titleAr:S.titleAr,questionAr:S.questionAr,hintAr:S.hintAr||void 0,correctAnswer:S.correctAnswer,options:de.length>=2?de:null,explanation:S.explanation||void 0,difficulty:S.difficulty,category:S.category,pointsReward:S.pointsReward,weekStart:S.weekStart,weekEnd:S.weekEnd})},it=()=>{if(!X.titleAr||!X.questionAr||!X.correctAnswer){re.error("ÙØ±Ø¬Ù Ù
ÙØ¡ Ø§ÙØÙÙ٠اÙÙ
Ø·ÙÙØ¨Ø©");return}const de=me.filter(be=>be.trim()!=="");if(de.length>=2&&!de.includes(X.correctAnswer)){re.error("ÙØ¬Ø¨ أ٠تÙÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© Ø£ØØ¯ Ø§ÙØ®Ùارات اÙÙ
Ø¯Ø®ÙØ©");return}ae.mutate({...X,hintAr:X.hintAr||void 0,explanation:X.explanation||void 0,options:de.length>=2?de:void 0})};if(!t)return s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1300",className:"min-h-screen bg-memphis-bg flex items-center justify-center p-4",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1301",className:"memphis-card p-8 text-center max-w-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1302",className:"text-5xl mb-3",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1303",className:"font-black text-xl text-black mb-2",children:"ØºÙØ± Ù
ØµØ±Ø ÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1304",className:"text-black/60 mb-4",children:"ÙØ°Ù Ø§ÙØµÙØØ© ÙÙÙ
Ø¯ÙØ±ÙÙ ÙÙØ·"}),s.jsx(jt,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1305",href:"/dashboard",children:s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1305",className:"memphis-btn",children:"Ø§ÙØ¹Ùدة"})})]})});const Tt=V?.length??0,bt=Tt>0?Math.round(V.reduce((de,be)=>de+be.participationRate,0)/Tt):0,vt=Tt>0?Math.round(V.reduce((de,be)=>de+be.correctRate,0)/Tt):0,St=V?.reduce((de,be)=>de+be.uniqueParticipants,0)??0;return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1317",className:"min-h-screen bg-memphis-bg",dir:"rtl",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1319",className:"bg-white border-b-2 border-black sticky top-0 z-10",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1320",className:"max-w-5xl mx-auto px-4 py-3 flex items-center justify-between gap-3",children:[s.jsx(db,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1321",activePath:"/admin/puzzles",items:[{label:"ÙÙØØ© ØÙ
ÙØ© Ø§ÙØªØ´ÙÙÙ",path:"/admin/teaser",icon:ln},{label:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©",path:"/admin/dashboard",icon:l2},{label:"إدارة Ø§ÙØ£Ùغاز",path:"/admin/puzzles",icon:Lg},{label:"إدارة اÙÙ
ØØªÙÙ",path:"/admin/content",icon:Zi}]}),s.jsx(jt,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1325",href:"/admin",children:s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1326",className:"flex items-center gap-2 font-bold text-black hover:opacity-70 transition-opacity",children:"â ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©"})}),s.jsx("h1",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1328",className:"font-black text-lg text-black",children:"𧩠إدارة Ø£ÙØºØ§Ø² Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1329",onClick:()=>{k(!N),n("list")},className:"bg-black text-white font-bold px-4 py-2 rounded-lg text-sm hover:bg-black/80 transition-colors",children:N?"â Ø¥Ùغاء":"+ ÙØºØ² Ø¬Ø¯ÙØ¯"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1335",onClick:()=>{ke(!L),n("list")},className:"bg-purple-600 text-white font-bold px-4 py-2 rounded-lg text-sm hover:bg-purple-700 transition-colors flex items-center gap-1",children:"⨠تÙÙÙØ¯ Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"})]})}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1344",className:"max-w-5xl mx-auto px-4 py-6 space-y-6",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1346",className:"flex gap-2 border-b-2 border-black",children:["list","analytics","auto"].map(de=>s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1348",onClick:()=>n(de),className:`px-4 py-2 font-black text-sm rounded-t-xl border-2 border-b-0 transition-all ${a===de?"bg-black text-white border-black":"bg-white text-black border-black/30 hover:border-black"}`,children:de==="list"?"ð Ø§ÙØ£Ùغاز":de==="analytics"?"ð Ø§ÙØªØÙÙÙØ§Øª":"âï¸ Ø§ÙØ¬Ø¯ÙÙØ©"},de))}),a==="list"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1360",className:"space-y-4",children:[L&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1363",className:"memphis-card p-5 bg-purple-50 border-4 border-purple-400 shadow-[6px_6px_0px_0px_rgba(147,51,234,0.4)]",children:[s.jsx("h2",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1364",className:"font-black text-lg text-black mb-3",children:"⨠تÙÙÙØ¯ ÙØºØ² Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1365",className:"text-sm text-gray-600 mb-4",children:"سÙÙÙÙ
اÙÙØ¸Ø§Ù
بتÙÙÙØ¯ ÙØºØ² ÙØ§Ù
Ù Ù
ع 4 Ø®ÙØ§Ø±Ø§Øª ÙØ´Ø±Ø. بعد Ø§ÙØªÙÙÙØ¯ ÙÙ
ÙÙÙ Ù
Ø±Ø§Ø¬Ø¹ØªÙ ÙØªØ¹Ø¯ÙÙÙ ÙØ¨Ù Ø§ÙØÙØ¸."}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1366",className:"flex items-center gap-3 flex-wrap mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1367",className:"flex items-center gap-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1368",className:"text-sm font-bold text-black",children:"Ø§ÙØªØµÙÙÙ:"}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1369",value:Me,onChange:de=>Ze(de.target.value),className:"border-2 border-black rounded-lg px-3 py-1.5 text-sm font-medium bg-white",children:Object.entries(qd).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1374",value:de,children:be},de))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1377",className:"flex items-center gap-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1378",className:"text-sm font-bold text-black",children:"اÙÙ
ستÙÙ:"}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1379",value:Ce,onChange:de=>
1087Te(de.target.value),className:"border-2 border-black rounded-lg px-3 py-1.5 text-sm font-medium bg-white",children:Object.entries(hc).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1384",value:de,children:be},de))})]}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1387",onClick:()=>Ke.mutate({category:Me,difficulty:Ce}),disabled:Ke.isPending,className:"bg-purple-600 text-white font-bold px-5 py-2 rounded-lg text-sm hover:bg-purple-700 disabled:opacity-50 transition-colors",children:Ke.isPending?"â³ Ø¬Ø§Ø±Ù Ø§ÙØªÙÙÙØ¯...":"⨠ÙÙÙØ¯ Ø§ÙØ¢Ù"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1394",onClick:()=>ke(!1),className:"text-sm text-gray-500 hover:text-gray-700",children:"Ø¥ÙØºØ§Ø¡"})]})]}),N&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1399",className:"memphis-card p-6 bg-yellow-50 border-4 border-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]",children:[s.jsx("h2",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1400",className:"font-black text-xl text-black mb-5",children:"Ø¥ÙØ´Ø§Ø¡ ÙØºØ² Ø¬Ø¯ÙØ¯"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1401",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1402",className:"md:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1403",className:"block text-sm font-bold text-black mb-1",children:"عÙÙØ§Ù اÙÙØºØ² *"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1404",value:X.titleAr,onChange:de=>ne(be=>({...be,titleAr:de.target.value})),placeholder:"ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع",className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1407",className:"md:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1408",className:"block text-sm font-bold text-black mb-1",children:"ÙØµ اÙÙØºØ² *"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1409",value:X.questionAr,onChange:de=>ne(be=>({...be,questionAr:de.target.value})),placeholder:"Ø§ÙØªØ¨ ÙØµ اÙÙØºØ² ÙÙØ§...",className:"border-2 border-black font-medium",rows:3})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1412",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1413",className:"block text-sm font-bold text-black mb-1",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© *"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1414",value:X.correctAnswer,onChange:de=>ne(be=>({...be,correctAnswer:de.target.value})),placeholder:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1417",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1418",className:"block text-sm font-bold text-black mb-1",children:"تÙÙ
ÙØ (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1420",className:"md:col-span-2 bg-blue-50 border-2 border-blue-200 rounded-2xl p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1421",className:"flex items-center justify-between mb-3",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1422",className:"block text-sm font-black text-black",children:"ð¯ Ø®Ùارات Ø§ÙØ¥Ø¬Ø§Ø¨Ø© (اختر Ù
Ù Ù
تعدد)"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1423",className:"text-xs text-black/50 font-medium",children:"Ù
Ù 2 Ø¥ÙÙ 6 Ø®ÙØ§Ø±Ø§Øª"})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1425",className:"space-y-2 mb-3",children:me.map((de,be)=>{const G=["Ø£","ب","ج","د","ÙÙ","Ù"],je=X.correctAnswer!==""&&X.correctAnswer===de&&de.trim()!=="";return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1430",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1431",className:`w-8 h-8 rounded-full border-2 flex items-center justify-center text-sm font-black flex-shrink-0 ${je?"bg-green-500 text-white border-green-600":"bg-memphis-yellow border-black"}`,children:G[be]??be+1}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1434",value:de,onChange:ze=>pe(be,ze.target.value),placeholder:`Ø§ÙØ®Ùار ${G[be]??be+1}`,className:`border-2 font-medium flex-1 ${je?"border-green-500 bg-green-50":"border-black bg-white"}`}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1440",type:"button",onClick:()=>{de.trim()&&ne(ze=>({...ze,correctAnswer:de}))},title:"Ø§Ø¬Ø¹Ù ÙØ°Ø§ Ø§ÙØ®Ùار ÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",className:`px-2 py-1.5 rounded-lg border-2 text-xs font-bold transition-colors flex-shrink-0 ${je?"bg-green-500 text-white border-green-600":"bg-white text-black border-black hover:bg-green-50"}`,children:je?"â
صØÙØ":"ØªØØ¯Ùد"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1448",type:"button",onClick:()=>ht(be),disabled:me.length<=2,className:"w-8 h-8 rounded-full border-2 border-red-300 bg-red-50 text-red-600 font-black text-sm hover:bg-red-100 transition-colors flex-shrink-0 disabled:opacity-30",children:"â"})]},be)})}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1460",className:"flex items-center gap-3 flex-wrap",children:[me.length<6&&s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1462",type:"button",onClick:Ve,className:"text-sm font-bold text-black border-2 border-dashed border-black rounded-lg px-3 py-1.5 hover:bg-black hover:text-white transition-colors",children:"+ Ø¥Ø¶Ø§ÙØ© Ø®ÙØ§Ø±"}),X.correctAnswer&&s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1471",className:"text-xs font-bold text-green-700 bg-green-50 border border-green-300 rounded-lg px-3 py-1.5",children:["â
Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©: ",X.correctAnswer]})]}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1476",className:"text-xs text-black/50 mt-2",children:'ð¡ Ø§Ùتب Ø§ÙØ®Ùارات Ø«Ù
اضغط "ØªØØ¯Ùد" Ø¨Ø¬Ø§ÙØ¨ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© â Ø³ÙتÙ
تعبئة ØÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© تÙÙØ§Ø¦ÙاÙ'})]}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1478",value:X.hintAr,onChange:de=>ne(be=>({...be,hintAr:de.target.value})),placeholder:"تÙÙ
ÙØ ÙÙÙ
ستخدÙ
",className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1481",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1482",className:"block text-sm font-bold text-black mb-1",children:"اÙÙÙØ§Ø·"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1483",type:"number",value:X.pointsReward,onChange:de=>ne(be=>({...be,pointsReward:Number(de.target.value)})),min:10,max:200,className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1486",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1487",className:"block text-sm font-bold text-black mb-1",children:"Ø§ÙØµØ¹Ùبة"}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1488",value:X.difficulty,onChange:de=>ne(be=>({...be,difficulty:de.target.value})),className:"w-full border-2 border-black rounded-lg px-3 py-2 font-medium bg-white",children:Object.entries(hc).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1490",value:de,children:be},de))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1493",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1494",className:"block text-sm font-bold text-black mb-1",children:"Ø§ÙØªØµÙÙÙ"}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1495",value:X.category,onChange:de=>ne(be=>({...be,category:de.target.value})),className:"w-full border-2 border-black rounded-lg px-3 py-2 font-medium bg-white",children:Object.entries(qd).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1497",value:de,children:be},de))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1500",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1501",className:"block text-sm font-bold text-black mb-1",children:"Ø¨Ø¯Ø§ÙØ© Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1502",type:"date",value:X.weekStart,onCh
1087ange:de=>ne(be=>({...be,weekStart:de.target.value})),className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1505",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1506",className:"block text-sm font-bold text-black mb-1",children:"ÙÙØ§ÙØ© Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1507",type:"date",value:X.weekEnd,onChange:de=>ne(be=>({...be,weekEnd:de.target.value})),className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1510",className:"md:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1511",className:"block text-sm font-bold text-black mb-1",children:"Ø´Ø±Ø Ø§ÙØ¥Ø¬Ø§Ø¨Ø© (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1512",value:X.explanation,onChange:de=>ne(be=>({...be,explanation:de.target.value})),placeholder:"Ù
عÙÙÙ
Ø© Ù
Ù
تعة Ø£Ù Ø´Ø±Ø ÙÙØ¥Ø¬Ø§Ø¨Ø©...",className:"border-2 border-black font-medium",rows:2})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1516",className:"flex gap-3 mt-5",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1517",onClick:it,disabled:ae.isPending,className:"memphis-btn flex-1",children:ae.isPending?"â³ Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"ð¾ ØÙØ¸ اÙÙØºØ²"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1520",onClick:()=>{k(!1),ge()},variant:"outline",className:"border-2 border-black",children:"Ø¥ÙØºØ§Ø¡"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1524",className:"mt-4",children:[s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1525",type:"button",onClick:()=>C(de=>!de),className:"text-sm font-bold text-black border-2 border-dashed border-black rounded-lg px-4 py-2 hover:bg-black hover:text-white transition-colors w-full",children:D?"ð Ø¥Ø®ÙØ§Ø¡ اÙÙ
عاÙÙØ©":"ðï¸ Ù
عاÙÙØ© اÙÙØºØ² ÙØ¨Ù Ø§ÙØÙØ¸"}),D&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1533",className:"mt-3 bg-memphis-yellow border-2 border-black rounded-2xl p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1534",className:"flex items-center justify-between mb-3",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1535",className:"font-black text-sm text-black",children:"ðï¸ Ù
عاÙÙØ© ØÙØ© â ÙÙ
ا Ø³ÙØ±Ø§Ù اÙÙ
ÙØ¸Ù"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1536",className:`px-2 py-0.5 rounded-full text-xs font-bold border ${uv[X.difficulty]??""}`,children:hc[X.difficulty]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1540",className:"bg-white border-2 border-black rounded-2xl p-4 mb-4",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1541",className:"font-black text-lg text-black mb-1",children:X.titleAr||"عÙÙØ§Ù اÙÙØºØ²"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1542",className:"text-sm text-black/50 mb-3",children:["ð ",X.pointsReward," ÙÙØ·Ø© · ",qd[X.category]]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1543",className:"bg-memphis-yellow/40 border-2 border-black/20 rounded-xl p-3 mb-4",children:s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1544",className:"font-bold text-base text-black leading-relaxed",children:X.questionAr||"ÙØµ اÙÙØºØ² Ø³ÙØ¸Ùر ÙÙØ§..."})}),me.filter(de=>de.trim()).length>=2?s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1547",className:"grid grid-cols-1 gap-2",children:me.filter(de=>de.trim()).map((de,be)=>{const G=["Ø£","ب","ج","د","ÙÙ","Ù"],je=de===X.correctAnswer;return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1552",className:`flex items-center gap-3 p-3 rounded-xl border-2 font-bold text-sm cursor-pointer transition-all ${je?"bg-green-100 border-green-500 text-green-800":"bg-white border-black/20 text-black hover:border-black"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1553",className:`w-8 h-8 rounded-full border-2 flex items-center justify-center text-sm font-black flex-shrink-0 ${je?"bg-green-500 text-white border-green-600":"bg-memphis-yellow border-black"}`,children:G[be]??be+1}),de,je&&s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1557",className:"mr-auto text-green-600 text-xs",children:"â
Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©"})]},be)})}):s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1563",className:"bg-gray-50 border-2 border-dashed border-black/20 rounded-xl p-4 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1564",className:"text-sm text-black/40 font-medium",children:"Ø£Ø¶Ù Ø®ÙØ§Ø±Ø§Øª ÙÙ Ø§ÙØ£Ø¹ÙÙ ÙØªØ¸Ùر ÙÙØ§"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1565",className:"text-xs text-black/30 mt-1",children:"(أ٠سÙÙÙÙ Ø§ÙØ¥Ø¯Ø®Ø§Ù ÙØµÙØ§Ù ØØ±Ø§Ù)"})]}),X.hintAr&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1569",className:"mt-3 bg-blue-50 border border-blue-200 rounded-xl p-3 text-sm text-blue-700 font-medium",children:["ð¡ ØªÙÙ
ÙØ: ",X.hintAr]})]}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1574",className:"text-xs text-black/40 text-center",children:"ÙØ°Ù Ù
عاÙÙØ© â Ø§ÙØ´Ù٠اÙÙØ¹ÙÙ ÙØ¯ ÙØ®ØªÙÙ ÙÙÙÙØ§Ù"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1581",className:"space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1582",className:"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[s.jsxs("h2",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1583",className:"font-black text-xl text-black",children:["جÙ
ÙØ¹ Ø§ÙØ£Ùغاز (",B.length,F?.length&&B.length!==F.length?` Ù
Ù ${F.length}`:"",")"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1584",className:"grid gap-2 sm:grid-cols-4","aria-label":"Ø®ÙØ§Ø±Ø§Øª ÙØ±Ø² ÙØªØµÙÙØ© Ø¨Ø·Ø§ÙØ§Øª Ø§ÙØ£Ùغاز",children:[s.jsxs("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1585",className:"relative sm:col-span-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1586",className:"sr-only",children:"Ø§ÙØ¨ØØ« ÙÙ Ø§ÙØ£Ùغاز"}),s.jsx(xl,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1587",className:"pointer-events-none absolute right-2 top-1/2 h-4 w-4 -translate-y-1/2 text-black/50","aria-hidden":"true"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1588",value:r,onChange:de=>{y(!0),i(de.target.value)},placeholder:"Ø§Ø¨ØØ« ÙÙ Ø§ÙØ¹ÙÙØ§Ù Ø£Ù Ø§ÙØ³Ø¤Ø§Ù...",className:"h-10 border-2 border-black pr-8 text-sm font-bold","aria-label":"Ø§ÙØ¨ØØ« ÙÙ Ø§ÙØ£Ùغاز","aria-autocomplete":"list","aria-controls":"puzzle-search-suggestions"}),K.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1598",id:"puzzle-search-suggestions",role:"listbox",className:"absolute right-0 left-0 top-full z-20 mt-1 overflow-hidden rounded-xl border-2 border-black bg-white shadow-[3px_3px_0px_0px_rgba(0,0,0,1)]",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1599",className:"border-b border-black/10 px-3 py-2 text-[11px] font-black text-black/50",children:"Ø§ÙØªØ±Ø§ØØ§Øª Ù
Ù Ø¨ÙØ§Ùات Ø§ÙØ£Ùغاز"}),K.map(de=>s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1601",type:"button",role:"option","aria-selected":r===de,onClick:()=>{y(!0),i(de)},className:"block w-full border-b border-black/10 px-3 py-2 text-right text-xs font-bold text-black transition-colors hover:bg-yellow-100 focus:bg-yellow-100 focus:outline-none",children:de},de))]})]}),s.jsxs("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1615",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1616",className:"sr-only",children:"تصÙÙØ© Ø§ÙØµØ¹Ùبة"}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1617",value:o,onChange:de=>{y(!0),l(de.target.value)},className:"h-10 w-full rounded-md border-2 border-black bg-white px-2 text-xs font-bold","aria-label":"تصÙÙØ© Ø§ÙØ£Ùغاز ØØ³Ø¨ Ø§ÙØµØ¹Ùبة",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1618",value:"all",children:"ÙÙ Ø§ÙØµØ¹Ùبات"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1618",value:"easy",children:"سÙÙ"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1618",value:"medium",children:"Ù
ØªÙØ³Ø·"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1618",value:"hard",children:"صعب"})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1621",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1622",className:"sr-only",children:"ØªØ±ØªÙØ¨ Ø§ÙØ£Ùغاز"}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1623",value:m,onChange:de=>{y(!0),f(de.target.value)},className:"h-10 w-full rounded-md border-2 border-black bg-white px-2 text-xs font-bold","aria-label":"ØªØ±ØªÙØ¨ Ø¨Ø·Ø§ÙØ§Øª Ø§ÙØ£Ùغاز",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1624",value:"newest",children:"Ø§ÙØ£ØØ¯Ø« Ø£ÙÙØ§Ù"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1624",value:"oldest",children:"Ø§ÙØ£ÙدÙ
Ø£ÙÙØ§Ù"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1624",value:"points",children:"Ø§ÙØ£Ø¹ÙÙ ÙÙØ§Ø·Ø§Ù"})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1627",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1628",className:"sr-only",children:"تصÙÙØ© Ø§ÙØØ§ÙØ©"}),s.jsxs("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1629",value:c,onChange:de=>{y(!0),d(de.target.value)},className:"h-10 w-full rounded-md border-2 border-black bg-white px-2 text-xs font-bold","aria-label":"تصÙÙØ© Ø§ÙØ£Ùغاز ØØ³Ø¨ Ø§ÙØØ§ÙØ©",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1630",value:"all",children:"ÙÙ Ø§ÙØØ§ÙØ§Øª"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1630",value:"active",children:"ÙØ´Ø· ÙÙØ·"}),s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1630",value:"inactive",children:"ØºÙØ± ÙØ´Ø· ÙÙØ·"})]})]})]})]}),!F||F.length===0?s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1636",className:"memphis-card p-8 text-center bg-white border-2 border-black",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1637",className:"text-4xl mb-2",children:"ð§©"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1638",className:"font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ Ø£ÙØºØ§Ø² بعد â Ø£Ùشئ Ø£ÙÙ ÙØºØ²!"})]}):B.length===0?s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1641",className:"memphis-card p-8 text-center bg-white border-2 border-black",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1642",className:"text-4xl mb-2",children:s.jsx(S6,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1642",className:"mx-auto h-8 w-8","aria-hidden":"true"})}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1643",className:"font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØªØ§Ø¦Ø¬ Ù
Ø·Ø§Ø¨ÙØ© ÙÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ©."}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1644",type:"button",onClick:()=>{y(!0),i(""),l("all"),d("all"),f("newest")},className:"mt-3 border-2 border-black bg-yellow-200 px-3 py-2 text-xs font-black",children:"إعادة Ø
1087¶Ø¨Ø· اÙÙÙØ§ØªØ±"})]}):B.map(de=>s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1647",className:`memphis-card p-5 bg-white border-2 border-black ${F7e(w)} ${de.isActive?"border-4 shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]":"opacity-75"}`,children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1649",className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1650",className:"flex-1 min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1651",className:"flex flex-wrap items-center gap-2 mb-2",children:[de.isActive&&s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1652",className:"px-2 py-0.5 bg-green-100 text-green-800 border border-green-300 rounded-full text-xs font-bold",children:"â
ÙØ´Ø· Ø§ÙØ¢Ù"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1653",className:`px-2 py-0.5 rounded-full text-xs font-bold border ${uv[de.difficulty]??""}`,children:hc[de.difficulty]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1656",className:"text-xs text-black/50 font-bold",children:[qd[de.category]," · ð ",de.pointsReward," ÙÙØ·Ø©"]})]}),s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1658",className:"font-black text-base text-black",children:de.titleAr}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1659",className:"text-sm text-black/60 mt-1 line-clamp-2",children:de.questionAr}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1660",className:"text-xs text-black/40 mt-1",children:["ð
",de.weekStart," â ",de.weekEnd]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1662",className:"flex flex-col gap-2 flex-shrink-0",children:[s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1663",onClick:()=>Z.mutate({puzzleId:de.id,isActive:!de.isActive}),disabled:Z.isPending,className:`px-3 py-1.5 rounded-lg text-xs font-bold border-2 transition-colors ${de.isActive?"bg-red-50 text-red-700 border-red-300 hover:bg-red-100":"bg-green-50 text-green-700 border-green-300 hover:bg-green-100"}`,children:de.isActive?"Ø¥ÙØºØ§Ø¡ Ø§ÙØªÙعÙÙ":"ØªÙØ¹ÙÙ"}),de.isActive&&s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1673",onClick:()=>O.mutate({puzzleId:de.id,titleAr:de.titleAr}),disabled:O.isPending,className:"px-3 py-1.5 rounded-lg text-xs font-bold border-2 border-blue-300 bg-blue-50 text-blue-700 hover:bg-blue-100 transition-colors",children:O.isPending?"â³":"ð¢ Ø¥Ø´Ø¹Ø§Ø±"}),de.isActive&&s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1682",onClick:()=>Q.mutate({puzzleId:de.id,titleAr:de.titleAr}),disabled:Q.isPending,className:"px-3 py-1.5 rounded-lg text-xs font-bold border-2 border-orange-300 bg-orange-50 text-orange-700 hover:bg-orange-100 transition-colors",children:Q.isPending?"â³":"ð ØªØ°ÙÙØ±"}),s.jsx(jt,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1690",href:"/weekly-puzzle",children:s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1691",className:"px-3 py-1.5 rounded-lg text-xs font-bold border-2 border-black bg-black text-white hover:bg-black/80 transition-colors w-full",children:"عرض"})}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1693",onClick:()=>et(de),className:"px-3 py-1.5 rounded-lg text-xs font-bold border-2 border-blue-300 bg-blue-50 text-blue-700 hover:bg-blue-100 transition-colors w-full",children:"âï¸ ØªØ¹Ø¯ÙÙ"})]})]})},de.id))]})]}),s.jsx(xs,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1706",open:!!S,onOpenChange:de=>{de||A(null)},children:s.jsxs(bs,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1707",className:"max-w-2xl max-h-[90vh] overflow-y-auto",dir:"rtl",children:[s.jsx(ml,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1708",children:s.jsx(Ui,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1709",className:"font-black text-xl text-black",children:"âï¸ ØªØ¹Ø¯Ù٠اÙÙØºØ²"})}),S&&s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1712",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1714",className:"bg-memphis-yellow border-2 border-black rounded-2xl p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1715",className:"flex items-center justify-between mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1716",className:"font-black text-sm text-black",children:"ðï¸ Ù
عاÙÙØ© ØÙØ©"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1717",className:`px-2 py-0.5 rounded-full text-xs font-bold border ${uv[S.difficulty]??""}`,children:hc[S.difficulty]})]}),s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1721",className:"font-black text-base text-black mb-2",children:S.titleAr||"عÙÙØ§Ù اÙÙØºØ²"}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1722",className:"bg-white border-2 border-black rounded-xl p-3 mb-3",children:s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1723",className:"font-bold text-sm text-black leading-relaxed",children:S.questionAr||"ÙØµ اÙÙØºØ²..."})}),E.filter(de=>de.trim()).length>=2?s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1726",className:"grid grid-cols-1 gap-2",children:E.filter(de=>de.trim()).map((de,be)=>{const G=["Ø£","ب","ج","د","ÙÙ","Ù"],je=de===S.correctAnswer;return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1731",className:`flex items-center gap-2 p-2 rounded-lg border-2 text-sm font-bold ${je?"bg-green-100 border-green-500 text-green-800":"bg-white border-black/30 text-black"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1732",className:`w-6 h-6 rounded-full border-2 flex items-center justify-center text-xs font-black flex-shrink-0 ${je?"bg-green-500 text-white border-green-600":"bg-memphis-yellow border-black"}`,children:G[be]??be+1}),de,je&&s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1736",className:"mr-auto text-green-600 text-xs",children:"â
صØÙØ"})]},be)})}):s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1742",className:"bg-white border-2 border-dashed border-black/30 rounded-xl p-3 text-center text-xs text-black/40",children:"Ø£Ø¶Ù Ø®ÙØ§Ø±Ø§Øª ÙØ¹Ø±Ø¶Ùا ÙÙØ§"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1747",className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1748",className:"md:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1749",className:"block text-sm font-bold text-black mb-1",children:"عÙÙØ§Ù اÙÙØºØ² *"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1750",value:S.titleAr,onChange:de=>A(be=>be?{...be,titleAr:de.target.value}:null),className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1754",className:"md:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1755",className:"block text-sm font-bold text-black mb-1",children:"ÙØµ اÙÙØºØ² *"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1756",value:S.questionAr,onChange:de=>A(be=>be?{...be,questionAr:de.target.value}:null),className:"border-2 border-black font-medium",rows:3})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1762",className:"md:col-span-2 bg-blue-50 border-2 border-blue-200 rounded-2xl p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1763",className:"flex items-center justify-between mb-3",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1764",className:"block text-sm font-black text-black",children:"ð¯ Ø®Ùارات Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1765",className:"text-xs text-black/50",children:"2-6 Ø®ÙØ§Ø±Ø§Øª"})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1767",className:"space-y-2 mb-3",children:E.map((de,be)=>{const G=["Ø£","ب","ج","د","ÙÙ","Ù"],je=S.correctAnswer!==""&&S.correctAnswer===de&&de.trim()!=="";return s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1772",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1773",className:`w-8 h-8 rounded-full border-2 flex items-center justify-center text-sm font-black flex-shrink-0 ${je?"bg-green-500 text-white border-green-600":"bg-memphis-yellow border-black"}`,children:G[be]??be+1}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1776",value:de,onChange:ze=>{const Qe=E.map((ye,Ee)=>Ee===be?ze.target.value:ye);R(Qe),S.correctAnswer===de&&A(ye=>ye?{...ye,correctAnswer:ze.target.value}:null)},placeholder:`Ø§ÙØ®Ùار ${G[be]??be+1}`,className:`border-2 font-medium flex-1 ${je?"border-green-500 bg-green-50":"border-black bg-white"}`}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1789",type:"button",onClick:()=>{de.trim()&&A(ze=>ze?{...ze,correctAnswer:de}:null)},className:`px-2 py-1.5 rounded-lg border-2 text-xs font-bold transition-colors flex-shrink-0 ${je?"bg-green-500 text-white border-green-600":"bg-white text-black border-black hover:bg-green-50"}`,children:je?"â
صØÙØ":"ØªØØ¯Ùد"}),s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1795",type:"button",onClick:()=>
1087{if(E.length<=2)return;const ze=E[be];R(Qe=>Qe.filter((ye,Ee)=>Ee!==be)),S.correctAnswer===ze&&A(Qe=>Qe?{...Qe,correctAnswer:""}:null)},disabled:E.length<=2,className:"w-8 h-8 rounded-full border-2 border-red-300 bg-red-50 text-red-600 font-black text-sm hover:bg-red-100 transition-colors flex-shrink-0 disabled:opacity-30",children:"â"})]},be)})}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1809",className:"flex items-center gap-3 flex-wrap",children:[E.length<6&&s.jsx("button",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1811",type:"button",onClick:()=>R(de=>[...de,""]),className:"text-sm font-bold text-black border-2 border-dashed border-black rounded-lg px-3 py-1.5 hover:bg-black hover:text-white transition-colors",children:"+ Ø¥Ø¶Ø§ÙØ© Ø®ÙØ§Ø±"}),S.correctAnswer&&s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1817",className:"text-xs font-bold text-green-700 bg-green-50 border border-green-300 rounded-lg px-3 py-1.5",children:["â
Ø§ÙØ¥Ø¬Ø§Ø¨Ø©: ",S.correctAnswer]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1824",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1825",className:"block text-sm font-bold text-black mb-1",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© *"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1826",value:S.correctAnswer,onChange:de=>A(be=>be?{...be,correctAnswer:de.target.value}:null),placeholder:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1830",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1831",className:"block text-sm font-bold text-black mb-1",children:"تÙÙ
ÙØ (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1832",value:S.hintAr,onChange:de=>A(be=>be?{...be,hintAr:de.target.value}:null),placeholder:"تÙÙ
ÙØ ÙÙÙ
ستخدÙ
",className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1836",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1837",className:"block text-sm font-bold text-black mb-1",children:"اÙÙÙØ§Ø·"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1838",type:"number",value:S.pointsReward,onChange:de=>A(be=>be?{...be,pointsReward:Number(de.target.value)}:null),min:10,max:200,className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1842",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1843",className:"block text-sm font-bold text-black mb-1",children:"Ø§ÙØµØ¹Ùبة"}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1844",value:S.difficulty,onChange:de=>A(be=>be?{...be,difficulty:de.target.value}:null),className:"w-full border-2 border-black rounded-lg px-3 py-2 font-medium bg-white",children:Object.entries(hc).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1847",value:de,children:be},de))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1850",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1851",className:"block text-sm font-bold text-black mb-1",children:"Ø§ÙØªØµÙÙÙ"}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1852",value:S.category,onChange:de=>A(be=>be?{...be,category:de.target.value}:null),className:"w-full border-2 border-black rounded-lg px-3 py-2 font-medium bg-white",children:Object.entries(qd).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1855",value:de,children:be},de))})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1858",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1859",className:"block text-sm font-bold text-black mb-1",children:"Ø¨Ø¯Ø§ÙØ© Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1860",type:"date",value:S.weekStart,onChange:de=>A(be=>be?{...be,weekStart:de.target.value}:null),className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1864",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1865",className:"block text-sm font-bold text-black mb-1",children:"ÙÙØ§ÙØ© Ø§ÙØ£Ø³Ø¨Ùع"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1866",type:"date",value:S.weekEnd,onChange:de=>A(be=>be?{...be,weekEnd:de.target.value}:null),className:"border-2 border-black font-medium"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1870",className:"md:col-span-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1871",className:"block text-sm font-bold text-black mb-1",children:"Ø´Ø±Ø Ø§ÙØ¥Ø¬Ø§Ø¨Ø© (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1872",value:S.explanation,onChange:de=>A(be=>be?{...be,explanation:de.target.value}:null),placeholder:"Ù
عÙÙÙ
Ø© Ù
Ù
تعة Ø£Ù Ø´Ø±Ø ÙÙØ¥Ø¬Ø§Ø¨Ø©...",className:"border-2 border-black font-medium",rows:2})]})]})]}),s.jsxs(nu,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1879",className:"gap-2 mt-4",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1880",variant:"outline",onClick:()=>A(null),className:"border-2 border-black",children:"Ø¥ÙØºØ§Ø¡"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1881",onClick:xe,disabled:$.isPending,className:"memphis-btn",children:$.isPending?"â³ Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"ð¾ ØÙØ¸ Ø§ÙØªØ¹Ø¯ÙÙØ§Øª"})]})]})}),a==="analytics"&&s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1890",className:"space-y-6",children:W?s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1892",className:"text-center py-16 text-black/50 font-bold text-lg",children:"Ⳡجار٠تØÙ
ÙÙ Ø§ÙØªØÙÙÙØ§Øª..."}):!V||V.length===0?s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1894",className:"memphis-card p-8 text-center bg-white border-2 border-black",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1895",className:"text-5xl mb-3",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1896",className:"font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات بعد â Ø§Ùتظر ØØªÙ ÙØ´Ø§Ø±Ù اÙÙ
ÙØ¸ÙÙÙ ÙÙ Ø§ÙØ£Ùغاز"})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1901",className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[s.jsx(pv,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1902",icon:"ð§©",label:"إجÙ
اÙÙ Ø§ÙØ£Ùغاز",value:Tt,color:"bg-purple-100"}),s.jsx(pv,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1903",icon:"ð¥",label:"إجÙ
اÙ٠اÙÙ
شارÙÙÙ",value:St,sub:"Ù
Ø´Ø§Ø±ÙØ© ÙØ±Ùدة",color:"bg-blue-100"}),s.jsx(pv,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1904",icon:"ð",label:"Ù
ØªÙØ³Ø· اÙÙ
Ø´Ø§Ø±ÙØ©",value:`${bt}%`,sub:"Ù
٠إجÙ
اÙ٠اÙÙ
ÙØ¸ÙÙÙ",color:"bg-green-100"}),s.jsx(pv,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1905",icon:"â
",label:"Ù
ØªÙØ³Ø· Ø§ÙØµØØ©",value:`${vt}%`,sub:"إجابات صØÙØØ©",color:"bg-yellow-100"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1909",className:"space-y-4",children:[s.jsx("h2",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1910",className:"font-black text-xl text-black",children:"ØªÙØ§ØµÙÙ ÙÙ ÙØºØ²"}),V.map(de=>s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1912",className:`memphis-card p-5 bg-white border-2 border-black ${de.isActive?"border-4 shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]":""}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1913",className:"flex items-start justify-between gap-3 mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1914",className:"flex-1 min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1915",className:"flex items-center gap-2 mb-1 flex-wrap",children:[de.isActive&&s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1916",className:"px-2 py-0.5 bg-green-100 text-green-800 border border-green-300 rounded-full text-xs font-bold",children:"â
ÙØ´Ø·"}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1917",className:`px-2 py-0.5 rounded-full text-xs font-bold border ${uv[de.difficulty]??""}`,children:hc[de.difficulty]})]}),s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1921",className:"font-black text-base text-black",children:de.titleAr}),s.jsxs("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1922",className:"text-xs text-black/50",children:["ð
",de.weekStart," â ",de.weekEnd," · ð ",de.pointsReward," ÙÙØ·Ø©"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1924",className:"text-center flex-shrink-0",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1925",className:"text-3xl font-black text-black",children:de.uniqueParticipants}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1926",className:"text-xs text-black/50 font-bold",children:"Ù
شارÙ"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1930",className:"space-y-3 mb-4",children:[s.jsx(Vq,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1931",value:de.participationRate,color:"bg-blue-500",label:`ÙØ³Ø¨Ø© اÙÙ
Ø´Ø§Ø±ÙØ© (${de.uniqueParticipants} Ù
Ù ${de.totalUsers} Ù
ÙØ¸Ù)`}),s.jsx(Vq,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1933",value:de.correctRate,color:"bg-green-500",label:`ÙØ³Ø¨Ø© Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ© (${de.correctCount} Ù
Ù ${de.totalAttempts} Ù
ØØ§ÙÙØ©)`})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1937",className:"grid grid-cols-3 gap-3 mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1938",className:"bg-green-50 rounded-xl border border-green-200 p-3 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1939",className:"font-black text-xl text-green-700",children:de.correctCount}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1940",className:"text-xs text-green-600 font-bold",children:"صØÙØØ© â
"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1942",className:"bg-red-50 rounded-xl border border-red-200 p-3 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1943",className:"font-black text-xl text-red-700",children:de.wrongCount}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1944",className:"text-xs text-red-600 font-bold",children:"خاطئة â"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1946",className:"bg-purple-50 rounded-xl border border-purple-200 p-3 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1947",className:"font-black text-xl text-purple-700",children:de.avgTime>0?`${de.avgTime}Ø«`:"â"}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1948",className:"text-xs text-purple-600 font-bold",children:"Ù
ØªÙØ³Ø· اÙÙÙØª â±ï¸"})]})]}),s.jsx(W7e,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1952",puzzleId:de.id})]},de.id))]})]})}),a==="auto"&&s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1963",className:"space-y-5",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1965",className:"memphis-card p-6 bg-white border-2 border-black",children:[s.jsx("h2",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1966",className:"font-black text-xl text-black mb-4",children:"âï¸ Ø§ÙØ¬Ø¯ÙÙØ© Ø§ÙØªÙÙØ§Ø¦ÙØ© ÙÙØ£Ùغاز"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1967",className:"bg-blue-50 border-2 border-blue-200 rounded-2xl p-4 mb-5",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1968",className:"font-black text-base text-black mb-3",children:"ð
ÙÙ٠تعÙ
Ù Ø§ÙØ¬Ø¯ÙÙØ©Ø"}),s.jsxs("ul",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1969",className:"space-y-2 text-sm text-black/70",children:[s.jsxs("li",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1970",className:"flex items-start gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1970",className:"text-blue-500 font-black",children:"1."}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1970",children:"ÙÙ Ø£ØØ¯ Ø§ÙØ³Ø§Ø¹Ø© 8 ØµØ¨Ø§ØØ§Ù ÙØªØÙ٠اÙÙØ¸Ø§Ù
Ù
Ù Ø§ÙØ£Ùغاز اÙÙ
جدÙÙØ©"})]}),s.jsxs("li",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1971",className:"flex items-start gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1971",className:"text-blue-500 font-black",children:"2."}),s.jsxs("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1971",children:["ÙÙÙØ¹ÙÙ٠اÙÙØºØ² Ø§ÙØ°Ù ÙÙØ¹ ØªØ§Ø±ÙØ® اÙÙÙÙ
ضÙ
Ù ÙØ·Ø§Ù ",s.jsx("strong",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1971",children:"weekStart â weekEnd"})]})]}),s.jsxs("li",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1972",className:"flex items-start gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1972",className:"text-blue-500 font-black",children:"3."}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1972",children:"ÙÙÙØºÙ ØªÙØ¹Ù٠جÙ
ÙØ¹ Ø§ÙØ£Ùغاز Ø§ÙØ£Ø®Ø±Ù تÙÙØ§Ø¦ÙاÙ"})]}),s.jsxs("li",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1973",className:"flex items-start gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1973",className:"text-blue-500 font-black",children:"4."}),s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1973",children:"ÙÙØ±Ø³Ù٠إشعار ÙÙØ±Ù ÙØ¬Ù
ÙØ¹ اÙÙ
ÙØ¸ÙÙÙ Ø¨ÙØ¬Ùد ÙØºØ² Ø¬Ø¯ÙØ¯"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1978",className:"bg-yellow-50 border-2 border-yellow-300 rounded-2xl p-4 mb-5",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1979",className:"font-black text-base text-black mb-1",children:"ð ØªØ´ØºÙÙ Ø§ÙØªÙعÙÙ Ø§ÙØ¢Ù"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1980",className:"text-sm text-black/60 mb-3",children:"ÙØ¹ÙÙ ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØØ§ÙÙ ÙØ¯ÙÙØ§Ù دÙÙ Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ¬Ø¯ÙÙØ© Ø§ÙØªÙÙØ§Ø¦ÙØ©."}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1983",onClick:()=>Y.mutate(),disabled:Y.isPending,className:"memphis-btn",children:Y.isPending?"â³ Ø¬Ø§Ø±Ù Ø§ÙØªÙعÙÙ...":"ð ØªÙØ¹ÙÙ ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØØ§ÙÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1988",className:"bg-orange-50 border-2 border-orange-300 rounded-2xl p-4 mb-5",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1989",className:"font-black text-base text-black mb-1",children:"ð ØªØ°ÙÙØ± اÙÙ
ÙØ¸ÙÙ٠بØÙ اÙÙØºØ²"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1990",className:"text-sm text-black/60 mb-3",children:"أرس٠إشعار تذÙÙØ± ÙÙÙ
ÙØ¸ÙÙÙ Ø§ÙØ°ÙÙ ÙÙ
ÙØ´Ø§Ø±ÙÙØ§ ÙÙ ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØØ§Ù٠بعد."}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:1993",onClick:()=>{const de=F?.find(be=>be.isActive);if(!de){re.error("ÙØ§ ÙÙØ¬Ø¯ ÙØºØ² ÙØ´Ø· ØØ§ÙÙØ§Ù");return}Q.mutate({puzzleId:de.id,titleAr:de.titleAr})},disabled:Q.isPending||!F?.some(de=>de.isActive),className:"bg-orange-500 hover:bg-orange-600 text-white font-bold px-6 py-2 rounded-xl border-2 border-black transition-colors",children:Q.isPending?"â³ Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...":"ð Ø¥Ø±Ø³Ø§Ù ØªØ°ÙÙØ± ÙÙÙ
ÙØ¸ÙÙÙ"}),!F?.some(de=>de.isActive)&&s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2005",className:"text-xs text-orange-600 mt-2 font-medium",children:"â ï¸ ÙØ¬Ø¨ ØªÙØ¹ÙÙ ÙØºØ² Ø£ÙÙØ§Ù ÙØ¥Ø±Ø³Ø§Ù Ø§ÙØªØ°ÙÙØ±"})]}),s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2010",className:"font-black text-base text-black mb-3",children:"ð Ø¬Ø¯ÙÙ Ø§ÙØ£Ùغاز اÙÙ
جدÙÙØ©"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2012",className:"bg-purple-50 border-2 border-purple-300 rounded-2xl p-4 mb-
10875",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2013",className:"font-black text-base text-black mb-1",children:"⨠تÙÙÙØ¯ ÙØºØ² Ø£Ø³Ø¨ÙØ¹Ù Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2014",className:"text-sm text-black/60 mb-3",children:"ÙÙÙÙØ¯ اÙÙØ¸Ø§Ù
ÙØºØ²Ø§Ù Ø¬Ø¯ÙØ¯Ø§Ù ÙØ§Ù
ÙØ§Ù Ù
ع 4 Ø®ÙØ§Ø±Ø§Øª ÙØ´Ø±Ø. بعد Ø§ÙØªÙÙÙØ¯ ÙÙ
ÙØ£ اÙÙÙ
ÙØ°Ø¬ تÙÙØ§Ø¦Ùا٠ÙÙÙ
راجعة ÙØ¨Ù Ø§ÙØÙØ¸."}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2017",className:"flex items-center gap-3 flex-wrap",children:[s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2018",value:Me,onChange:de=>Ze(de.target.value),className:"border-2 border-black rounded-lg px-3 py-1.5 text-sm font-medium bg-white",children:Object.entries(qd).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2023",value:de,children:be},de))}),s.jsx("select",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2025",value:Ce,onChange:de=>Te(de.target.value),className:"border-2 border-black rounded-lg px-3 py-1.5 text-sm font-medium bg-white",children:Object.entries(hc).map(([de,be])=>s.jsx("option",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2030",value:de,children:be},de))}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2032",onClick:()=>{Ke.mutate({category:Me,difficulty:Ce}),n("list")},disabled:Ke.isPending,className:"bg-purple-600 hover:bg-purple-700 text-white font-bold border-2 border-black",children:Ke.isPending?"â³ Ø¬Ø§Ø±Ù Ø§ÙØªÙÙÙØ¯...":"⨠ÙÙÙØ¯ ÙØºØ²Ø§Ù Ø¬Ø¯ÙØ¯Ø§Ù"})]})]}),!F||F.length===0?s.jsx("p",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2043",className:"text-sm text-black/50",children:"ÙØ§ ØªÙØ¬Ø¯ Ø£ÙØºØ§Ø² Ù
جدÙÙØ© بعد"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2046",className:"hidden md:block overflow-x-auto rounded-xl border-2 border-black",children:s.jsxs("table",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2047",className:"w-full text-sm",children:[s.jsx("thead",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2048",children:s.jsxs("tr",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2049",className:"bg-black text-white",children:[s.jsx("th",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2050",className:"px-3 py-2 text-right font-black",children:"اÙÙØºØ²"}),s.jsx("th",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2051",className:"px-3 py-2 text-right font-black",children:"Ù
Ù"}),s.jsx("th",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2052",className:"px-3 py-2 text-right font-black",children:"Ø¥ÙÙ"}),s.jsx("th",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2053",className:"px-3 py-2 text-right font-black",children:"Ø§ÙØØ§ÙØ©"})]})}),s.jsx("tbody",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2056",children:F.map((de,be)=>s.jsxs("tr",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2058",className:be%2===0?"bg-white":"bg-gray-50",children:[s.jsx("td",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2059",className:"px-3 py-2 font-bold text-black max-w-[200px] truncate",children:de.titleAr}),s.jsx("td",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2060",className:"px-3 py-2 text-black/70",children:de.weekStart}),s.jsx("td",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2061",className:"px-3 py-2 text-black/70",children:de.weekEnd}),s.jsx("td",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2062",className:"px-3 py-2",children:de.isActive?s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2064",className:"px-2 py-0.5 bg-green-100 text-green-800 rounded-full text-xs font-bold",children:"â
ÙØ´Ø·"}):s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2065",className:"px-2 py-0.5 bg-gray-100 text-gray-600 rounded-full text-xs font-bold",children:"â¸ ØºÙØ± ÙØ´Ø·"})})]},de.id))})]})}),s.jsx("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2073",className:"grid gap-3 md:hidden","aria-label":"ÙØ§Ø¦Ù
Ø© Ø§ÙØ£Ùغاز ÙØ¨Ø·Ø§Ùات",children:F.map(de=>s.jsxs("article",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2075",className:"rounded-xl border-2 border-black bg-white p-4 shadow-[3px_3px_0px_0px_rgba(0,0,0,1)]",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2076",className:"flex items-start justify-between gap-3",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2077",className:"min-w-0 flex-1 break-words font-black text-black",children:de.titleAr}),de.isActive?s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2079",className:"shrink-0 rounded-full bg-green-100 px-2 py-1 text-xs font-bold text-green-800",children:"â
ÙØ´Ø·"}):s.jsx("span",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2080",className:"shrink-0 rounded-full bg-gray-100 px-2 py-1 text-xs font-bold text-gray-600",children:"â¸ ØºÙØ± ÙØ´Ø·"})]}),s.jsxs("dl",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2083",className:"mt-3 grid grid-cols-2 gap-2 text-xs text-black/70",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2084",className:"rounded-lg bg-gray-50 p-2",children:[s.jsx("dt",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2084",className:"font-bold",children:"Ù
Ù"}),s.jsx("dd",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2084",className:"mt-1 break-all",children:de.weekStart})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2085",className:"rounded-lg bg-gray-50 p-2",children:[s.jsx("dt",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2085",className:"font-bold",children:"Ø¥ÙÙ"}),s.jsx("dd",{"data-loc":"client/src/pages/AdminPuzzlePage.tsx:2085",className:"mt-1 break-all",children:de.weekEnd})]})]})]},de.id))})]})]})})]})]})}const So=Object.create(null);So.open="0";So.close="1";So.ping="2";So.pong="3";So.message="4";So.upgrade="5";So.noop="6";
vendor: 5,256 bytes, line 1087
1087const Gv=Object.create(null);Object.keys(So).forEach(e=>{Gv[So[e]]=e});const kT={type:"error",data:"parser error"},zee=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",_ee=typeof ArrayBuffer=="function",Iee=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,z8=({type:e,data:t},a,n)=>zee&&t instanceof Blob?a?n(t):Qq(t,n):_ee&&(t instanceof ArrayBuffer||Iee(t))?a?n(t):Qq(new Blob([t]),n):n(So[e]+(t||"")),Qq=(e,t)=>{const a=new FileReader;return a.onload=function(){const n=a.result.split(",")[1];t("b"+(n||""))},a.readAsDataURL(e)};function Wq(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let f5;function $7e(e,t){if(zee&&e.data instanceof Blob)return e.data.arrayBuffer().then(Wq).then(t);if(_ee&&(e.data instanceof ArrayBuffer||Iee(e.data)))return t(Wq(e.data));z8(e,!1,a=>{f5||(f5=new TextEncoder),t(f5.encode(a))})}const Kq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wh=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Kq.length;e++)Wh[Kq.charCodeAt(e)]=e;const X7e=e=>{let t=e.length*.75,a=e.length,n,r=0,i,o,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),m=new Uint8Array(d);for(n=0;n<a;n+=4)i=Wh[e.charCodeAt(n)],o=Wh[e.charCodeAt(n+1)],l=Wh[e.charCodeAt(n+2)],c=Wh[e.charCodeAt(n+3)],m[r++]=i<<2|o>>4,m[r++]=(o&15)<<4|l>>2,m[r++]=(l&3)<<6|c&63;return d},Y7e=typeof ArrayBuffer=="function",_8=(e,t)=>{if(typeof e!="string")return{type:"message",data:Lee(e,t)};const a=e.charAt(0);return a==="b"?{type:"message",data:Z7e(e.substring(1),t)}:Gv[a]?e.length>1?{type:Gv[a],data:e.substring(1)}:{type:Gv[a]}:kT},Z7e=(e,t)=>{if(Y7e){const a=X7e(e);return Lee(a,t)}else return{base64:!0,data:e}},Lee=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Fee="�",J7e=(e,t)=>{const a=e.length,n=new Array(a);let r=0;e.forEach((i,o)=>{z8(i,!1,l=>{n[o]=l,++r===a&&t(n.join(Fee))})})},eRe=(e,t)=>{const a=e.split(Fee),n=[];for(let r=0;r<a.length;r++){const i=_8(a[r],t);if(n.push(i),i.type==="error")break}return n};function tRe(){return new TransformStream({transform(e,t){$7e(e,a=>{const n=a.length;let r;if(n<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,n);else if(n<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(r[0]|=128),t.enqueue(r),t.enqueue(a)})}})}let h5;function mv(e){return e.reduce((t,a)=>t+a.length,0)}function fv(e,t){if(e[0].length===t)return e.shift();const a=new Uint8Array(t);let n=0;for(let r=0;r<t;r++)a[r]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),a}function aRe(e,t){h5||(h5=new TextDecoder);const a=[];let n=0,r=-1,i=!1;return new TransformStream({transform(o,l){for(a.push(o);;){if(n===0){if(mv(a)<1)break;const c=fv(a,1);i=(c[0]&128)===128,r=c[0]&127,r<126?n=3:r===126?n=1:n=2}else if(n===1){if(mv(a)<2)break;const c=fv(a,2);r=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(mv(a)<8)break;const c=fv(a,8),d=new DataView(c.buffer,c.byteOffset,c.length),m=d.getUint32(0);if(m>Math.pow(2,21)-1){l.enqueue(kT);break}r=m*Math.pow(2,32)+d.getUint32(4),n=3}else{if(mv(a)<r)break;const c=fv(a,r);l.enqueue(_8(i?c:h5.decode(c),t)),n=0}if(r===0||r>e){l.enqueue(kT);break}}}})}const Bee=4;function $n(e){if(e)return nRe(e)}function nRe(e){for(var t in $n.prototype)e[t]=$n.prototype[t];return e}$n.prototype.on=$n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};$n.prototype.once=function(e,t){function a(){this.off(e,a),t.apply(this,arguments)}return a.fn=t,this.on(e,a),this};$n.prototype.off=$n.prototype.removeListener=$n.prototype.removeAllListeners=$n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+e];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,r=0;r<a.length;r++)if(n=a[r],n===t||n.fn===t){a.splice(r,1);break}return a.length===0&&delete this._callbacks["$"+e],this};$n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),a=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(a){a=a.slice(0);for(var n=0,r=a.length;n<r;++n)a[n].apply(this,t)}return this};$n.prototype.emitReserved=$n.prototype.emit;$n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};$n.prototype.hasListeners=function(e){return!!this.listeners(e).length};const fw=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,a)=>a(t,0),oi=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),sRe="arraybuffer";function Gee(e,...t){return t.reduce((a,n)=>(e.hasOwnProperty(n)&&(a[n]=e[n]),a),{})}
vendor: 4,746 bytes, line 1087
1087const rRe=oi.setTimeout,iRe=oi.clearTimeout;function hw(e,t){t.useNativeTimers?(e.setTimeoutFn=rRe.bind(oi),e.clearTimeoutFn=iRe.bind(oi)):(e.setTimeoutFn=oi.setTimeout.bind(oi),e.clearTimeoutFn=oi.clearTimeout.bind(oi))}const oRe=1.33;function lRe(e){return typeof e=="string"?cRe(e):Math.ceil((e.byteLength||e.size)*oRe)}function cRe(e){let t=0,a=0;for(let n=0,r=e.length;n<r;n++)t=e.charCodeAt(n),t<128?a+=1:t<2048?a+=2:t<55296||t>=57344?a+=3:(n++,a+=4);return a}function Hee(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function dRe(e){let t="";for(let a in e)e.hasOwnProperty(a)&&(t.length&&(t+="&"),t+=encodeURIComponent(a)+"="+encodeURIComponent(e[a]));return t}function uRe(e){let t={},a=e.split("&");for(let n=0,r=a.length;n<r;n++){let i=a[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class pRe extends Error{constructor(t,a,n){super(t),this.description=a,this.context=n,this.type="TransportError"}}class I8 extends $n{constructor(t){super(),this.writable=!1,hw(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,a,n){return super.emitReserved("error",new pRe(t,a,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const a=_8(t,this.socket.binaryType);this.onPacket(a)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,a={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(a)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const a=dRe(t);return a.length?"?"+a:""}}class mRe extends I8{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const a=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||a()})),this.writable||(n++,this.once("drain",function(){--n||a()}))}else a()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const a=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};eRe(t,this.socket.binaryType).forEach(a),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,J7e(t,a=>{this.doWrite(a,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",a=this.query||{};return this.opts.timestampRequests!==!1&&(a[this.opts.timestampParam]=Hee()),!this.supportsBinary&&!a.sid&&(a.b64=1),this.createUri(t,a)}}let qee=!1;try{qee=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const fRe=qee;function hRe(){}class gRe extends mRe{constructor(t){if(super(t),typeof location<"u"){const a=location.protocol==="https:";let n=location.port;n||(n=a?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,a){const n=this.request({method:"POST",data:t});n.on("success",a),n.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(a,n)=>{this.onError("xhr poll error",a,n)}),this.pollXhr=t}}class ko extends $n{constructor(t,a,n){super(),this.createRequest=t,hw(this,n),this._opts=n,this._method=n.method||"GET",this._uri=a,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;const a=Gee(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");a.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(a);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&
vendor: 10,130 bytes, line 1087
1087(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var r;n.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=ko.requestsCount++,ko.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=hRe,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ko.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ko.requestsCount=0;ko.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",$q);else if(typeof addEventListener=="function"){const e="onpagehide"in oi?"pagehide":"unload";addEventListener(e,$q,!1)}}function $q(){for(let e in ko.requests)ko.requests.hasOwnProperty(e)&&ko.requests[e].abort()}const xRe=(function(){const e=Uee({xdomain:!1});return e&&e.responseType!==null})();class bRe extends gRe{constructor(t){super(t);const a=t&&t.forceBase64;this.supportsBinary=xRe&&!a}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ko(Uee,this.uri(),t)}}function Uee(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||fRe))return new XMLHttpRequest}catch{}if(!t)try{return new oi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Vee=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class vRe extends I8{get name(){return"websocket"}doOpen(){const t=this.uri(),a=this.opts.protocols,n=Vee?{}:Gee(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,a,n)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let a=0;a<t.length;a++){const n=t[a],r=a===t.length-1;z8(n,this.supportsBinary,i=>{try{this.doWrite(n,i)}catch{}r&&fw(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",a=this.query||{};return this.opts.timestampRequests&&(a[this.opts.timestampParam]=Hee()),this.supportsBinary||(a.b64=1),this.createUri(t,a)}}const g5=oi.WebSocket||oi.MozWebSocket;class yRe extends vRe{createSocket(t,a,n){return Vee?new g5(t,a,n):a?new g5(t,a):new g5(t)}doWrite(t,a){this.ws.send(a)}}class wRe extends I8{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const a=aRe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(a).getReader(),r=tRe();r.readable.pipeTo(t.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then(({done:l,value:c})=>{l||(this.onPacket(c),i())}).catch(l=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let a=0;a<t.length;a++){const n=t[a],r=a===t.length-1;this._writer.write(n).then(()=>{r&&fw(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const PRe={websocket:yRe,webtransport:wRe,polling:bRe},jRe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kRe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function NT(e){if(e.length>8e3)throw"URI too long";const t=e,a=e.indexOf("["),n=e.indexOf("]");a!=-1&&n!=-1&&(e=e.substring(0,a)+e.substring(a,n).replace(/:/g,";")+e.substring(n,e.length));let r=jRe.exec(e||""),i={},o=14;for(;o--;)i[kRe[o]]=r[o]||"";return a!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=NRe(i,i.path),i.queryKey=ARe(i,i.query),i}function NRe(e,t){const a=/\/{2,9}/g,n=t.replace(a,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function ARe(e,t){const a={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,r,i){r&&(a[r]=i)}),a}const AT=typeof addEventListener=="function"&&typeof removeEventListener=="function",Hv=[];AT&&addEventListener("offline",()=>{Hv.forEach(e=>e())},!1);class Oc extends $n{constructor(t,a){if(super(),this.binaryType=sRe,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(a=t,t=null),t){const n=NT(t);a.hostname=n.host,a.secure=n.protocol==="https"||n.protocol==="wss",a.port=n.port,n.query&&(a.query=n.query)}else a.host&&(a.hostname=NT(a.host).host);hw(this,a),this.secure=a.secure!=null?a.secure:typeof location<"u"&&location.protocol==="https:",a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.hostname=a.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=a.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},a.transports.forEach(n=>{const r=n.prototype.name;this.transports.push(r),this._transportsByName[r]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},a),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=uRe(this.opts.query)),AT&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Hv.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const a=Object.assign({},this.opts.query);a.EIO=Bee,a.transport=t,this.id&&(a.sid=this.id);const n=Object.assign({},this.opts,{query:a,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&Oc.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const a=this.createTransport(t);a.open(),this.setTransport(a)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",a=>this._onClose("transport close",a))}onOpen(){this.readyState="open",Oc.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const a=new Error("server error");a.code=t.data,this._onError(a);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let a=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;
vendor: 13,180 bytes, line 1087
1087if(r&&(a+=lRe(r)),n>0&&a>this._maxPayload)return this.writeBuffer.slice(0,n);a+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,fw(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,a,n){return this._sendPacket("message",t,a,n),this}send(t,a,n){return this._sendPacket("message",t,a,n),this}_sendPacket(t,a,n,r){if(typeof a=="function"&&(r=a,a=void 0),typeof n=="function"&&(r=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const i={type:t,data:a,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},a=()=>{this.off("upgrade",a),this.off("upgradeError",a),t()},n=()=>{this.once("upgrade",a),this.once("upgradeError",a)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Oc.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),AT&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=Hv.indexOf(this._offlineEventListener);n!==-1&&Hv.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,a),this.writeBuffer=[],this._prevBufferLen=0}}}Oc.protocol=Bee;class SRe extends Oc{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let a=this.createTransport(t),n=!1;Oc.priorWebsocketSuccess=!1;const r=()=>{n||(a.send([{type:"ping",data:"probe"}]),a.once("packet",f=>{if(!n)if(f.type==="pong"&&f.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",a),!a)return;Oc.priorWebsocketSuccess=a.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(m(),this.setTransport(a),a.send([{type:"upgrade"}]),this.emitReserved("upgrade",a),a=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=a.name,this.emitReserved("upgradeError",h)}}))};function i(){n||(n=!0,m(),a.close(),a=null)}const o=f=>{const h=new Error("probe error: "+f);h.transport=a.name,i(),this.emitReserved("upgradeError",h)};function l(){o("transport closed")}function c(){o("socket closed")}function d(f){a&&f.name!==a.name&&i()}const m=()=>{a.removeListener("open",r),a.removeListener("error",o),a.removeListener("close",l),this.off("close",c),this.off("upgrading",d)};a.once("open",r),a.once("error",o),a.once("close",l),this.once("close",c),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||a.open()},200):a.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const a=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&a.push(t[n]);return a}}let CRe=class extends SRe{constructor(t,a={}){const n=typeof t=="object",r=n?{...t}:{...a};(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>PRe[i]).filter(i=>!!i)),super(n?r:t,r)}};function TRe(e,t="",a){let n=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),n=NT(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(a&&a.port===n.port?"":":"+n.port),n}const DRe=typeof ArrayBuffer=="function",ERe=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Qee=Object.prototype.toString,MRe=typeof Blob=="function"||typeof Blob<"u"&&Qee.call(Blob)==="[object BlobConstructor]",ORe=typeof File=="function"||typeof File<"u"&&Qee.call(File)==="[object FileConstructor]";function L8(e){return DRe&&(e instanceof ArrayBuffer||ERe(e))||MRe&&e instanceof Blob||ORe&&e instanceof File}function qv(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let a=0,n=e.length;a<n;a++)if(qv(e[a]))return!0;return!1}if(L8(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return qv(e.toJSON(),!0);for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&qv(e[a]))return!0;return!1}function RRe(e){const t=[],a=e.data,n=e;return n.data=Uv(a,t),n.attachments=t.length,{packet:n,buffers:t}}function Uv(e,t,a){if(!e)return e;if(L8(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Uv(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){if(e.toJSON&&typeof e.toJSON=="function"&&!a)return Uv(e.toJSON(),t,!0);const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Uv(e[r],t));return n}return e}function zRe(e,t){return e.data=ST(e.data,t),delete e.attachments,e}function ST(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let a=0;a<e.length;a++)e[a]=ST(e[a],t);else if(typeof e=="object")for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(e[a]=ST(e[a],t));return e}const Wee=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],_Re=5;var ua;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ua||(ua={}));class IRe{constructor(t){this.replacer=t}encode(t){return(t.type===ua.EVENT||t.type===ua.ACK)&&qv(t)?this.encodeAsBinary({type:t.type===ua.EVENT?ua.BINARY_EVENT:ua.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let a=""+t.type;return(t.type===ua.BINARY_EVENT||t.type===ua.BINARY_ACK)&&(a+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(a+=t.nsp+","),t.id!=null&&(a+=t.id),t.data!=null&&(a+=JSON.stringify(t.data,this.replacer)),a}encodeAsBinary(t){const a=RRe(t),n=this.encodeAsString(a.packet),r=a.buffers;return r.unshift(n),r}}class F8 extends $n{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let a;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");a=this.decodeString(t);const n=a.type===ua.BINARY_EVENT;n||a.type===ua.BINARY_ACK?(a.type=n?ua.EVENT:ua.ACK,this.reconstructor=new LRe(a)):super.emitReserved("decoded",a)}else if(L8(t)||t.base64)if(this.reconstructor)a=this.reconstructor.takeBinaryData(t),a&&(this.reconstructor=null,super.emitReserved("decoded",a));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let a=0;const n={type:Number(t.charAt(0))};if(ua[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ua.BINARY_EVENT||n.type===ua.BINARY_ACK){const i=a+1;for(;t.charAt(++a)!=="-"&&a!=t.length;);const o=t.substring(i,a);if(o!=Number(o)||t.charAt(a)!=="-")throw new Error("Illegal attachments");const l=Number(o);if(!Kee(l)||l<1)throw new Error("Illegal attachments");if(l>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=l}if(t.charAt(a+1)==="/"){const i=a+1;for(;++a&&!(t.charAt(a)===","||a===t.length););n.nsp=t.substring(i,a)}else n.nsp="/";const r=t.charAt(a+1);if(r!==""&&Number(r)==r){const i=a+1;for(;++a;){const o=t.charAt(a);if(o==null||Number(o)!=o){--a;break}if(a===t.length)break}n.id=Number(t.substring(i,a+1))}if(t.charAt(++a)){const i=this.tryParse(t.substr(a));if(F8.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,a){switch(t){case ua.CONNECT:return A1(a);case ua.DISCONNECT:return a===void 0;case ua.CONNECT_ERROR:return typeof a=="string"||A1(a);case ua.EVENT:case ua.BINARY_EVENT:return Array.isArray(a)&&(typeof a[0]=="number"||typeof a[0]=="string"&&Wee.indexOf(a[0])===-1);case ua.ACK:case ua.BINARY_ACK:return Array.isArray(a)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class LRe{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const a=zRe(this.reconPack,this.buffers);return this.finishedReconstruction(),a}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function FRe(e){return typeof e=="string"}const Kee=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function BRe(e){return e===void 0||Kee(e)}function A1(e){return Object.prototype.toString.call(e)==="[object Object]"}function GRe(e,t){switch(e){case ua.CONNECT:return t===void 0||A1(t);case ua.DISCONNECT:return t===void 0;case ua.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Wee.indexOf(t[0])===-1);case ua.ACK:return Array.isArray(t);case ua.CONNECT_ERROR:return typeof t=="string"||A1(t);default:return!1}}function HRe(e){return FRe(e.nsp)&&BRe(e.id)&&GRe(e.type,e.data)}const qRe=Object.freeze(Object.defineProperty({__proto__:null,Decoder:F8,Encoder:IRe,get PacketType(){return ua},isPacketValid:HRe,protocol:_Re},Symbol.toStringTag,{value:"Module"}));function Fi(e,t,a){return e.on(t,a),function(){e.off(t,a)}}const URe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class $ee extends $n{constructor(t,a,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=a,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Fi(t,"open",this.onopen.bind(this)),Fi(t,"packet",this.onpacket.bind(this)),Fi(t,"error",this.onerror.bind(this)),Fi(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...a){var n,r,i;if(URe.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(a.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(a),this;const o={type:ua.EVENT,data:a};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof a[a.length-1]=="function"){const m=this.ids++,f=a.pop();this._registerAckCallback(m,f),o.id=m}const l=(r=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||r===void 0?void 0:r.writable,c=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,a){var n;const r=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(r===void 0){this.acks[t]=a;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);a.call(this,new Error("operation has timed out"))},r),o=(...l)=>{this.io.clearTimeoutFn(i),a.apply(this,l)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...a){return new Promise((n,r)=>{const i=(o,l)=>o?r(o):n(l);i.withError=!0,a.push(i),this.emit(t,...a)})}_addToQueue(t){let a;typeof t[t.length-1]=="function"&&(a=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((r,...i)=>(this._queue[0],r!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),a&&a(r)):(this._queue.shift(),a&&a(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const a=this._queue[0];a.pending&&!t||(a.pending=!0,a.tryCount++,this.flags=a.flags,this.emit.apply(this,a.args
vendor: 7,544 bytes, line 1087
1087))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:ua.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,a){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,a),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){const n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case ua.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ua.EVENT:case ua.BINARY_EVENT:this.onevent(t);break;case ua.ACK:case ua.BINARY_ACK:this.onack(t);break;case ua.DISCONNECT:this.ondisconnect();break;case ua.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const a=t.data||[];t.id!=null&&a.push(this.ack(t.id)),this.connected?this.emitEvent(a):this.receiveBuffer.push(Object.freeze(a))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const a=this._anyListeners.slice();for(const n of a)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const a=this;let n=!1;return function(...r){n||(n=!0,a.packet({type:ua.ACK,id:t,data:r}))}}onack(t){const a=this.acks[t.id];typeof a=="function"&&(delete this.acks[t.id],a.withError&&t.data.unshift(null),a.apply(this,t.data))}onconnect(t,a){this.id=t,this.recovered=a&&this._pid===a,this._pid=a,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ua.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const a=this._anyListeners;for(let n=0;n<a.length;n++)if(t===a[n])return a.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const a=this._anyOutgoingListeners;for(let n=0;n<a.length;n++)if(t===a[n])return a.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const a=this._anyOutgoingListeners.slice();for(const n of a)n.apply(this,t.data)}}}function Pf(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Pf.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),a=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-a:e+a}return Math.min(e,this.max)|0};Pf.prototype.reset=function(){this.attempts=0};Pf.prototype.setMin=function(e){this.ms=e};Pf.prototype.setMax=function(e){this.max=e};Pf.prototype.setJitter=function(e){this.jitter=e};class CT extends $n{constructor(t,a){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(a=t,t=void 0),a=a||{},a.path=a.path||"/socket.io",this.opts=a,hw(this,a),this.reconnection(a.reconnection!==!1),this.reconnectionAttempts(a.reconnectionAttempts||1/0),this.reconnectionDelay(a.reconnectionDelay||1e3),this.reconnectionDelayMax(a.reconnectionDelayMax||5e3),this.randomizationFactor((n=a.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Pf({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(a.timeout==null?2e4:a.timeout),this._readyState="closed",this.uri=t;const r=a.parser||qRe;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=a.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var a;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(a=this.backoff)===null||a===void 0||a.setMin(t),this)}randomizationFactor(t){var a;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(a=this.backoff)===null||a===void 0||a.setJitter(t),this)}reconnectionDelayMax(t){var a;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(a=this.backoff)===null||a===void 0||a.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new CRe(this.uri,this.opts);const a=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=Fi(a,"open",function(){n.onopen(),t&&t()}),i=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},o=Fi(a,"error",i);if(this._timeout!==!1){const l=this._timeout,c=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),a.close()},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(r),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Fi(t,"ping",this.onping.bind(this)),Fi(t,"data",this.ondata.bind(this)),Fi(t,"error",this.onerror.bind(this)),Fi(t,"close",this.onclose.bind(this)),Fi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(a){this.onclose("parse error",a)}}ondecoded(t){fw(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,a){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new $ee(this,t,a),this.nsps[t]=n),n}_destroy(t){const a=Object.keys(this.nsps);for(const n of a)if(this.nsps[n].active)return;this._close()}_packet(t){const a=this.encoder.encode(t);for(let n=0;n<a.length;n++)this.engine.write(a[n],t.options)}
1087cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,a){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,a),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const a=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},a);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Mh={};function lu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const a=TRe(e,t.path||"/socket.io"),n=a.source,r=a.id,i=a.path,o=Mh[r]&&i in Mh[r].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let c;return l?c=new CT(n,t):(Mh[r]||(Mh[r]=new CT(n,t)),c=Mh[r]),a.query&&!t.query&&(t.query=a.queryKey),c.socket(a.path,t)}Object.assign(lu,{Manager:CT,Socket:$ee,io:lu,connect:lu});var VRe="Label",Xee=P.forwardRef((e,t)=>s.jsx(Zt.label,{...e,ref:t,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));Xee.displayName=VRe;var QRe=Xee;function cn({className:e,...t}){return s.jsx(QRe,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:zt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Tx={excellentTitle:"أداء Ù
ذÙÙ!",excellentBody:"Ø³Ø±Ø¹ØªÙ ÙØ¯ÙØªÙ ØªØµÙØ¹Ø§Ù اÙÙØ§Ø±Ù. ÙØ§ØµÙ Ø¨ÙØ°Ø§ Ø§ÙØ¥ÙÙØ§Ø¹!",goodTitle:"ØªÙØ¯Ù
رائع!",goodBody:"Ø£ÙØª عÙÙ Ø§ÙØ·Ø±ÙÙ Ø§ÙØµØÙØ. Ø®Ø·ÙØ© Ø£Ø®Ø±Ù ÙØ³ØªØµÙ Ø¥Ù٠اÙÙÙ
Ø©.",focusTitle:"ÙÙ Ø³Ø¤Ø§Ù ÙØ±ØµØ©",focusBody:"خذ ÙØØ¸Ø© ÙÙØªÙÙÙØ±Ø Ø§ÙØªØØ³Ù ÙØ¨Ø¯Ø£ Ù
٠اÙÙ
ØØ§ÙÙØ© Ø§ÙØªØ§ÙÙØ©."},hv=[{level:"excellent",screen:"performance_excellent",label:"Ù
Ù
تاز",description:"Ø¯ÙØ© ÙØ³Ø±Ø¹Ø© Ù
Ø±ØªÙØ¹ØªØ§Ù"},{level:"good",screen:"performance_good",label:"Ø¬ÙØ¯",description:"ØªÙØ¯Ù
ثابت"},{level:"focus",screen:"performance_focus",label:"ØªØØ³ÙÙ",description:"ÙØ±ØµØ© ÙÙÙ
ØØ§ÙÙØ© Ø§ÙØªØ§ÙÙØ©"}],WRe=["excellentTitle","excellentBody","goodTitle","goodBody","focusTitle","focusBody"],KRe=48,$Re=120;function Yee(e){const t=e&&typeof e=="object"?e:{};return WRe.reduce((a,n)=>{const r=Tx[n],i=t[n],o=typeof i=="string"?i.trim():"",l=n.endsWith("Title")?KRe:$Re;return a[n]=(o||r).slice(0,l),a},{})}function XRe(e){if(!e)return{...Tx};try{return Yee(JSON.parse(e))}catch{return{...Tx}}}const S1=[{id:"compact",label:"ÙØ§ØªÙ ØµØºÙØ±",shortLabel:"360 à 740",description:"شاشة Android Ù
دÙ
جة",width:360,height:740},{id:"standard",label:"ÙØ§ØªÙ ÙÙØ§Ø³Ù",shortLabel:"375 à 667",description:"ØØ¬Ù
iPhone SE",width:375,height:667},{id:"modern",label:"ÙØ§ØªÙ ØØ¯ÙØ«",shortLabel:"390 à 844",description:"ØØ¬Ù
iPhone ØØ¯ÙØ«",width:390,height:844},{id:"large",label:"ÙØ§ØªÙ ÙØ¨Ùر",shortLabel:"412 à 915",description:"شاشة Android ÙØ§Ø³Ø¹Ø©",width:412,height:915}];function YRe(e){return S1.find(t=>t.id===e)??S1[1]}S1.map(e=>e.id);const Vv=.75,Qv=1.5,Xq=.05;function Yq(e){const t=Number.isFinite(e)?e:1;return Math.min(Qv,Math.max(Vv,t))}function ZRe(e){return e>=1800?{label:"صعب",color:"text-red-300",bg:"bg-red-500/20 border-red-500/30"}:e>=1300?{label:"Ù
ØªÙØ³Ø·",color:"text-yellow-300",bg:"bg-yellow-500/20 border-yellow-500/30"}:{label:"سÙÙ",color:"text-green-300",bg:"bg-green-500/20 border-green-500/30"}}function JRe(e,t="join",a={}){const n=t==="join"&&e?`/game/join/${e}`:"/game/join",r=new URLSearchParams({preview:t});return a.countdownSeconds!==void 0&&r.set("countdown",String(a.countdownSeconds)),a.connection&&r.set("connection",a.connection),Object.entries(a.messages??{}
1087).forEach(([i,o])=>{o?.trim()&&r.set(`message_${i}`,o.trim())}),`${n}?${r.toString()}`}const Zq=[{icon:"ð",text:"تØÙÙ٠اÙÙØµ اÙÙ
صدر..."},{icon:"ð§ ",text:"استخراج اÙÙ
ÙØ§ÙÙÙ
Ø§ÙØ±Ø¦ÙØ³ÙØ©..."},{icon:"âï¸",text:"ØµÙØ§ØºØ© Ø§ÙØ£Ø³Ø¦ÙØ© ÙØ§ÙØ®ÙØ§Ø±Ø§Øª..."},{icon:"â
",text:"Ø§ÙØªØÙÙ Ù
Ù Ø¬ÙØ¯Ø© Ø§ÙØ£Ø³Ø¦ÙØ©..."},{icon:"ð¯",text:"ØªØØ¯Ùد Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©..."}];function Jq(){const{user:e}=Ma(),[,t]=Mo(),a=P.useRef(null),n=P.useRef(null),r=P.useRef(null),[i,o]=P.useState({session:null,participants:[],questions:[],currentQuestionIndex:0,phase:"setup",timeLeft:0,answerCount:0,totalAnswerTarget:0,lastAnswers:[]}),[l,c]=P.useState({title:"Ù
Ø³Ø§Ø¨ÙØ© ØªÙØ§Ø¹ÙÙØ©",teamMode:"individual",webhookUrl:"",sourceText:"",questionCount:10}),[d,m]=P.useState(!0),[f,h]=P.useState("competitive"),[x,b]=P.useState(null),[y,w]=P.useState(20),[j,N]=P.useState(!0),[k,D]=P.useState([]),[C,S]=P.useState(!1),[A,E]=P.useState(0),[R,F]=P.useState(null),[I,H]=P.useState(!1),[_,V]=P.useState(null),[W,B]=P.useState(!1),[K,ae]=P.useState(new Set),[$,Z]=P.useState(!1),[O,Y]=P.useState(!1),[Q,U]=P.useState(null),[oe,X]=P.useState(!1),[ne,ge]=P.useState("standard"),[me,Ae]=P.useState(1),[Pe,L]=P.useState("join"),[ke,Me]=P.useState(5),[Ze,Ce]=P.useState("connected"),[Te,Ke]=P.useState(()=>({...Tx})),[Ve,ht]=P.useState(!1),[pe,et]=P.useState(!1),[xe,it]=P.useState(""),[Tt,bt]=P.useState(""),[vt,St]=P.useState("general"),[de,be]=P.useState("all"),[G,je]=P.useState(!1),[ze,Qe]=P.useState(!1),[ye,Ee]=P.useState(null),te=J.game.createSession.useMutation(),We=J.game.addQuestions.useMutation(),mt=J.game.generateQuestions.useMutation(),z=J.game.getContentSources.useQuery();J.game.getCategoryContent.useQuery({categoryId:R??0},{enabled:!1});const _e=J.game.getQuestions.useQuery({sessionId:Q??0},{enabled:!1}),ce=J.game.saveTemplate.useMutation(),se=J.game.deleteTemplate.useMutation(),fe=J.game.getTemplates.useQuery(),Se=J.game.copyTemplate.useMutation(),[ot,lt]=P.useState(null),Le=J.game.getTemplateQuestions.useQuery({templateId:ot??0},{enabled:!1}),nt=async()=>{if(!xe.trim()){re.error("أدخ٠اسÙ
اÙÙØ§Ùب");return}if(k.length===0){re.error("ÙØ§ ØªÙØ¬Ø¯ Ø£Ø³Ø¦ÙØ© ÙØÙØ¸Ùا");return}je(!0);try{await ce.mutateAsync({name:xe.trim(),description:Tt.trim()||void 0,category:vt,defaultTimeLimitSeconds:j?y:void 0,performanceMessages:Te,questions:k.map((He,dt)=>({orderIndex:dt,questionText:He.questionText,questionType:He.questionType,options:He.options.length>0?JSON.stringify(He.options):null,correctAnswer:He.correctAnswer,timeLimitSeconds:He.timeLimitSeconds,pointsBase:He.pointsBase}))}),fe.refetch(),et(!1),it(""),bt(""),St("general"),re.success(`تÙ
ØÙظ اÙÙØ§Ùب "${xe}" Ø¨ÙØ¬Ø§Ø!`)}catch{re.error("ÙØ´Ù ÙÙ ØÙظ اÙÙØ§Ùب")}finally{je(!1)}},gt=()=>{Ke({...Tx}),re.success("تÙ
ت إعادة Ø±Ø³Ø§Ø¦Ù Ø§ÙØªØ´Ø¬Ùع Ø¥Ù٠اÙÙØµÙص Ø§ÙØ§ÙØªØ±Ø§Ø¶ÙØ©")},yt=He=>{Ae(Yq(He))},rt=He=>{Ae(dt=>Yq(Number((dt+He*Xq).toFixed(2))))},xt=()=>{Ae(1),re.success("تÙ
ت إعادة ØªÙØ¨Ùر اÙÙ
عاÙÙØ© Ø¥ÙÙ 100%")},Mt=He=>{ht(!1),L(He)};P.useEffect(()=>{if(!Ve)return;let He=0;L(hv[0].screen);const dt=window.setInterval(()=>{He=(He+1)%hv.length,L(hv[He].screen)},1800);return()=>window.clearInterval(dt)},[Ve]);const ee=async He=>{lt(He);try{const ve=(await Le.refetch()).data??[];if(ve.length===0){re.error("ÙØ§ ØªÙØ¬Ø¯ Ø£Ø³Ø¦ÙØ© ÙÙ ÙØ°Ø§ اÙÙØ§Ùب");return}const st=ve.map((Oa,Qa)=>({tempId:Date.now()+Qa,questionText:Oa.questionText,questionType:Oa.questionType,options:Oa.options?JSON.parse(Oa.options):[],correctAnswer:Oa.correctAnswer,timeLimitSeconds:Oa.timeLimitSeconds,pointsBase:Oa.pointsBase}));D(st);const ha=fe.data?.find(Oa=>Oa.id===He),Da=ha?.defaultTimeLimitSeconds;Da&&Da>0&&(w(Da),N(!0)),Ke(XRe(ha?.performanceMessages)),Qe(!0),re.success(Da&&Da>0?`تÙ
تØÙ
ÙÙ ${st.length} سؤا٠Ù
٠اÙÙØ§Ùب â ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø© ${Da} ثاÙÙØ©`:`تÙ
تØÙ
ÙÙ ${st.length} سؤا٠Ù
٠اÙÙØ§Ùب!`)}catch{re.error("ÙØ´Ù Ù٠تØÙ
Ù٠اÙÙØ§Ùب")}},Oe=async He=>{Z(!0),U(He);try{const ve=(await _e.refetch()).data??[];if(ve.length===0){re.error("ÙØ§ ØªÙØ¬Ø¯ Ø£Ø³Ø¦ÙØ© ÙÙ ÙØ°Ù Ø§ÙØ¬Ùسة");return}const st=ve.map((ha,Da)=>({tempId:Date.now()+Da,questionText:ha.questionText,questionType:ha.questionType,options:ha.options?JSON.parse(ha.options):[],correctAnswer:ha.correctAnswer,timeLimitSeconds:ha.timeLimitSeconds,pointsBase:ha.points
1087Base}));D(st),Y(!1),re.success(`تÙ
تØÙ
ÙÙ ${st.length} سؤا٠Ù
Ù Ø§ÙØ¬Ùسة Ø§ÙØ³Ø§Ø¨ÙØ©! Ø±Ø§Ø¬Ø¹ÙØ§ ÙØ¹Ø¯ÙÙÙØ§ ÙØ¨Ù Ø§ÙØ¨Ø¯Ø¡.`)}catch{re.error("ÙØ´Ù Ù٠تØÙ
ÙÙ Ø£Ø³Ø¦ÙØ© Ø§ÙØ¬Ùسة")}finally{Z(!1)}},Ye=J.game.mySessions.useQuery(),[at,wt]=P.useState([]),[kt,Sa]=P.useState(!1),[Ca,Br]=P.useState([]),[qu,od]=P.useState([]),ld=()=>{a.current&&(a.current.disconnect(),a.current=null),n.current&&(clearInterval(n.current),n.current=null),r.current&&(clearInterval(r.current),r.current=null),o({session:null,participants:[],questions:[],currentQuestionIndex:0,phase:"setup",timeLeft:0,answerCount:0,totalAnswerTarget:0,lastAnswers:[]}),D([]),S(!1),E(0),F(null),wt([]),Sa(!1),Br([]),od([]),c({title:"Ù
Ø³Ø§Ø¨ÙØ© ØªÙØ§Ø¹ÙÙØ©",teamMode:"individual",webhookUrl:"",sourceText:"",questionCount:10}),m(!0),b(null),w(10),N(!0),Me(5),ge("standard"),Ce("connected"),Ke({excellentTitle:"أداء Ù
ذÙÙ!",excellentBody:"Ø³Ø±Ø¹ØªÙ ÙØ¯ÙØªÙ ØªØµÙØ¹Ø§Ù اÙÙØ§Ø±Ù. ÙØ§ØµÙ Ø¨ÙØ°Ø§ Ø§ÙØ¥ÙÙØ§Ø¹!",goodTitle:"ØªÙØ¯Ù
رائع!",goodBody:"Ø£ÙØª عÙÙ Ø§ÙØ·Ø±ÙÙ Ø§ÙØµØÙØ. Ø®Ø·ÙØ© Ø£Ø®Ø±Ù ÙØ³ØªØµÙ Ø¥Ù٠اÙÙÙ
Ø©.",focusTitle:"ÙÙ Ø³Ø¤Ø§Ù ÙØ±ØµØ©",focusBody:"خذ ÙØØ¸Ø© ÙÙØªÙÙÙØ±Ø Ø§ÙØªØØ³Ù ÙØ¨Ø¯Ø£ Ù
٠اÙÙ
ØØ§ÙÙØ© Ø§ÙØªØ§ÙÙØ©."})},cd=i.session?`${window.location.origin}/game/join/${i.session.pin}`:"",qs=YRe(ne);P.useEffect(()=>{const He=i.session;if(!He){document.title="Ù
Ø³Ø§Ø¨ÙØ© ØªÙØ§Ø¹ÙÙØ© | Ù
ÙØµØ© جد ÙØ¬Ø¯";return}const dt=i.phase,ve=dt==="lobby"?"Ø§ÙØªØ¸Ø§Ø± اÙÙ
شارÙÙÙ":dt==="playing"?"Ø¬Ø§Ø±ÙØ© Ø§ÙØ¢Ù":dt==="finished"?"Ø§ÙØªÙت":"إعداد",st=`${He.title} â ${ve} | Ù
ÙØµØ© جد ÙØ¬Ø¯`,ha=`Ù
Ø³Ø§Ø¨ÙØ© "${He.title}" عÙÙ Ù
ÙØµØ© جد ÙØ¬Ø¯ â ${i.participants.length} Ù
Ø´Ø§Ø±ÙØ ${i.questions.length} سؤاÙ. Ø§ÙØ¶Ù
Ø§ÙØ¢Ù!`;document.title=st;let Da=document.querySelector('meta[property="og:title"]');Da||(Da=document.createElement("meta"),Da.setAttribute("property","og:title"),document.head.appendChild(Da)),Da.setAttribute("content",st);let Oa=document.querySelector('meta[property="og:description"]');Oa||(Oa=document.createElement("meta"),Oa.setAttribute("property","og:description"),document.head.appendChild(Oa)),Oa.setAttribute("content",ha);let Qa=document.querySelector('meta[name="description"]');return Qa||(Qa=document.createElement("meta"),Qa.setAttribute("name","description"),document.head.appendChild(Qa)),Qa.setAttribute("content",ha),()=>{document.title="Ù
ÙØµØ© جد ÙØ¬Ø¯ - Learning Hub"}},[i.session,i.phase,i.participants.length,i.questions.length]),P.useEffect(()=>(C?(E(0),r.current=setInterval(()=>{E(He=>(He+1)%Zq.length)},1800)):r.current&&clearInterval(r.current),()=>{r.current&&clearInterval(r.current)}),[C]),P.useEffect(()=>{if(!i.session||!e)return;const He=lu({path:"/socket.io",transports:["websocket","polling"]});return a.current=He,He.on("connect",()=>{Ce("connected"),He.emit("host:join",{sessionId:i.session.id,userId:e.id})}),He.on("disconnect",dt=>{dt!=="io client disconnect"&&Ce("reconnecting")}),He.io.on("reconnect_attempt",()=>Ce("reconnecting")),He.io.on("reconnect_error",()=>Ce("reconnecting")),He.io.on("reconnect_failed",()=>Ce("offline")),He.on("host:state",({session:dt,participants:ve,questions:st})=>{o(ha=>({...ha,session:dt,participants:ve,questions:st}))}),He.on("host:participant_joined",({participant:dt})=>{o(ve=>({...ve,participants:[...ve.participants.filter(st=>st.id!==dt.id),dt]})),re.success(`${dt.displayName} Ø§ÙØ¶Ù
Ø¥ÙÙ Ø§ÙØ¬Ùسة!`)}),He.on("game:participants_updated",({participants:dt})=>{o(ve=>({...ve,participants:dt}))}),He.on("game:teams_updated",({participants:dt})=>{o(ve=>({...ve,participants:dt}))}),He.on("game:phase_changed",({phase:dt})=>{o(ve=>({...ve,phase:dt}))}),He.on("game:started",()=>{o(dt=>({...dt,phase:"playing",answerCount:0,lastAnswers:[]})),re.success("بدأت اÙÙ
Ø³Ø§Ø¨ÙØ©!")}),He.on("game:question_started",({questionIndex:dt,timeLimitSeconds:ve})=>{o(st=>({...st,phase:"playing",currentQuestionIndex:dt,timeLeft:ve,answerCount:0,lastAnswers:[]})),b(null),Sa(!1),n.current&&clearInterval(n.current),n.current=setInterval(()=>{o(st=>st.timeLeft<=1?(clearInterval(n.current),{...st,timeLeft:0}):{...st,timeLeft:st.timeLeft-1})},1e3)}),He.on("host:answer_update",({answeredCount:dt,totalParticipants:ve})=>{o(st=>({...st,answerCount:dt,participants:ve!==void 0&&ve>st.participants.length?[...st.participants]:st.participants,totalAnswerTarget:ve??st.participants.length}))}),He.on("game:all_answered_countdown",({countdownSeconds:dt})=>{b(dt)}),He.on("game:question_results",({leaderboard:dt,teamScores:ve})=>{n.current&&clearInterval(n.current),dt&&wt(dt),ve&&ve.length>0&&Br(ve),o(st=>({...st,phase:"question_results"}))}),He.on("game:finished",({leaderboard:dt,teamResults:ve})=>{n.current&&clearInterval(n.current),o(Qa=>({...Qa,phase:"finished",participants:dt})),ve&&ve.length>0&&od(ve);const ha=Date.now()+4e3,Da=["#a855f7","#eab308","#3b82f6","#22c55e","#f97316"],Oa=()=>{ii({particleCount:3,angle:60,spread:55,origin:{x:0},colors:Da}),ii({particleCount:3,angle:120,spread:55,origin:{x:1},colors:Da}),Date.now()<ha&&requestAnimationFrame(Oa)};Oa()}),()=>{He.disconnect(),n.current&&clearInterval(n.current)}},[i.session?.id,e]);const zo=async()=>
1087{if(!l.sourceText||l.sourceText.length<50){re.error("Ø£Ø¯Ø®Ù ÙØµØ§Ù ÙØ§ ÙÙ٠ع٠50 ØØ±ÙاÙ");return}S(!0);try{const He=await mt.mutateAsync({sourceText:l.sourceText,count:l.questionCount,questionTypes:["multiple_choice","true_false"],extractionMode:f});D(He.map((dt,ve)=>({tempId:Date.now()+ve,questionText:dt.questionText,questionType:dt.questionType,options:Array.isArray(dt.options)?dt.options:[],correctAnswer:dt.correctAnswer,timeLimitSeconds:dt.timeLimitSeconds,pointsBase:dt.pointsBase}))),re.success(`تÙ
تÙÙÙØ¯ ${He.length} Ø³Ø¤Ø§Ù Ø¨ÙØ¬Ø§Ø! Ø±Ø§Ø¬Ø¹ÙØ§ ÙØ¹Ø¯ÙÙÙØ§ ÙØ¨Ù Ø§ÙØ¨Ø¯Ø¡.`)}catch{re.error("ÙØ´Ù Ù٠تÙÙÙØ¯ Ø§ÙØ£Ø³Ø¦ÙØ©Ø ØØ§ÙÙ Ù
رة أخرÙ")}finally{S(!1)}},dd=async()=>{if(e)try{const He=await te.mutateAsync({title:l.title,teamMode:l.teamMode,webhookUrl:l.webhookUrl||void 0,autoAdvance:d});let dt=[];if(k.length>0){const ve=await We.mutateAsync({sessionId:He.id,questions:k.map(st=>({questionText:st.questionText,questionType:st.questionType,options:st.options.length>0?st.options:void 0,correctAnswer:st.correctAnswer,timeLimitSeconds:j?y:st.timeLimitSeconds,pointsBase:st.pointsBase}))});ve.questions&&(dt=ve.questions)}o(ve=>({...ve,session:{id:He.id,pin:He.pin,title:He.title,teamMode:He.teamMode,status:He.status},questions:dt,phase:"lobby"})),re.success(`تÙ
Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¬Ùسة! PIN: ${He.pin}`)}catch{re.error("ÙØ´Ù ÙÙ Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¬Ùسة")}},_o=He=>{V({...He}),B(!0)},Bn=()=>{_&&(D(He=>He.map(dt=>dt.tempId===_.tempId?_:dt)),B(!1),V(null),re.success("تÙ
ØÙظ Ø§ÙØªØ¹Ø¯ÙÙ"))},Sf=He=>{D(dt=>dt.filter(ve=>ve.tempId!==He)),re.success("تÙ
ØØ°Ù Ø§ÙØ³Ø¤Ø§Ù")},Cf=He=>{ae(dt=>{const ve=new Set(dt);return ve.has(He)?ve.delete(He):ve.add(He),ve})},gr=P.useCallback((He,dt)=>{a.current?.connected&&a.current.emit(He,dt)},[]),Gr=i.questions[i.currentQuestionIndex];if(i.phase==="setup"){z.data;const dt=(Ye.data??[]).filter(ve=>ve.status==="finished");return s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:695",className:"game-host-page min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 p-4 md:p-8",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:696",className:"max-w-5xl mx-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:698",className:"flex items-center gap-3 mb-8",children:[s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:699",onClick:()=>t("/dashboard"),className:"rounded-lg p-2 text-white/80 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:s.jsx(P6,{"data-loc":"client/src/pages/GameHostPage.tsx:700",className:"w-5 h-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:702",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:703",className:"competition-brand-chip",children:"جد ÙØ¬Ø¯ â¢ ÙØ¶Ø¹ اÙÙ
ÙØ§Ùسة"}),s.jsx("h1",{"data-loc":"client/src/pages/GameHostPage.tsx:704",className:"mt-2 text-3xl font-black text-white",children:"ð® Ø¥Ùشاء Ù
Ø³Ø§Ø¨ÙØ© ØªÙØ§Ø¹ÙÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:705",className:"mt-1 text-white/80",children:"Ø£Ø¹Ø¯Ù Ø¬ÙØ³ØªÙ ÙØ§Ø¨Ø¯Ø£ اÙÙ
Ø³Ø§Ø¨ÙØ© ÙÙ Ø¯ÙØ§Ø¦Ù"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:709",className:"grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6",children:[s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:711",className:"bg-white/10 border-white/20 text-white",children:[s.jsx(nn,{"data-loc":"client/src/pages/GameHostPage.tsx:712",children:s.jsxs(sn,{"data-loc":"client/src/pages/GameHostPage.tsx:713",className:"flex items-center gap-2",children:[s.jsx(_pe,{"data-loc":"client/src/pages/GameHostPage.tsx:714",className:"w-5 h-5 text-purple-300"}),"إعدادات Ø§ÙØ¬Ùسة"]})}),s.jsxs(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:718",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:719",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:720",className:"text-white/80",children:"عÙÙØ§Ù اÙÙ
Ø³Ø§Ø¨ÙØ©"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:721",value:l.title,onChange:ve=>c(st=>({...st,title:ve.target.value})),className:"bg-white/10 border-white/20 text-white placeholder:text-white/40 mt-1",placeholder:"Ù
Ø³Ø§Ø¨ÙØ© اÙÙØ±ÙÙ Ø§ÙØ£Ø³Ø¨ÙØ¹ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:729",className:"bg-yellow-500/10 border border-yellow-500/30 rounded-xl p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:730",className:"flex items-center justify-between mb-3",children:[s.jsxs(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:731",className:"text-yellow-300 font-semibold flex items-center gap-2",children:[s.jsx(au,{"data-loc":"client/src/pages/GameHostPage.tsx:732",className:"w-4 h-4"}),"ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø© عÙÙ Ù٠سؤاÙ"]}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:735",onClick:()=>N(ve=>!ve),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors ${j?"bg-yellow-500":"bg-white/20"}`,children:s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:739",className:`inline-block h-3.5 w-3.5 transform rounded-full bg-white transition-transform ${j?"translate-x-4":"translate-x-1"}`})})]}),j&&s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:745",className:"flex flex-wrap items-center gap-2 mb-3",children:[5,10,15,20,30,45,60].map(ve=>s.jsxs("button",{"data-loc":"client/src/pages/GameHostPage.tsx:747",onClick:()=>w(ve),className:`min-w-10 h-9 px-2 rounded-full text-sm font-bold transition-all ${y===ve?"bg-yellow-400 text-black scale-105 shadow-lg":"bg-white/10 text-white/70 hover:bg-white/20"}`,children:[ve,"Ø«"]},ve))}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:757",className:"flex items-center gap-2 mb-2",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:758",className:"text-white/70 text-xs whitespace-nowrap",children:"Ø£Ù ØØ¯Ø¯ بÙÙØ³Ù:"}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:759",onClick:()=>w(ve=>Math.max(1,ve-5)),className:"w-8 h-8 rounded-lg bg-white/10 text-white font-bold hover:bg-white/20 transition-colors","aria-label":"تÙÙÙ٠اÙÙÙØª 5 Ø«ÙØ§ÙÙ",children:"â"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:766",type:"number",min:1,max:300,value:y,onChange:ve=>{const st=parseInt(ve.target.value,10);Number.isNaN(st)||w(Math.min(300,Math.max(1,st)))},className:"w-20 h-9 text-center bg-white/15 border-white/30 text-white font-bold",inputMode:"numeric"}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:779",className:"text-white/60 text-xs",children:"ثاÙÙØ©"}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:780",onClick:()=>w(ve=>Math.min(300,ve+5)),className:"w-8 h-8 rounded-lg bg-white/10 text-white font-bold hover:bg-white/20 transition-colors","aria-label":"Ø²ÙØ§Ø¯Ø© اÙÙÙØª 5 Ø«ÙØ§ÙÙ",children:"+"})]}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:788",className:"text-yellow-300/70 text-xs",children:["â± ",y," ",y===1?"ثاÙÙØ©":"Ø«ÙØ§ÙÙ"," ÙÙÙ Ø³Ø¤Ø§Ù â Ø³ÙÙØ·Ø¨ÙÙ٠عÙ٠جÙ
ÙØ¹ Ø§ÙØ£Ø³Ø¦ÙØ© Ø¹ÙØ¯ Ø§ÙØ¥Ùشاء"]})]}),!j&&s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:794",className:"text-white/75 text-xs",children:"سÙÙØ³ØªØ®Ø¯Ù
اÙÙÙØª اÙÙ
ØØ¯Ø¯ ÙÙ٠سؤا٠عÙÙ ØØ¯Ø©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:797",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:798",className:"text-white/80",children:"ÙØ¶Ø¹ اÙÙØ±Ù"}),s.jsxs(Ss,{"data-loc":"client/src/pages/GameHostPage.tsx:799",value:l.teamMode,onValueChange:ve=>c(st=>({...st,teamMode:ve})),children:[s.jsx(Ts,{"data-loc":"client/src/pages/GameHostPage.tsx:803",className:"bg-white/10 border-white/20 text-white mt-1",children:s.jsx(Cs,{"data-loc":"client/src/pages/GameHostPage.tsx:804"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/GameHostPage.tsx:806",children:[s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:807",value:"individual",children:"ÙØ±Ø¯Ù â ÙÙ Ù
ÙØ¸Ù ÙÙÙØ³Ù"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:808",value:"manual",children:"ÙØ±Ù ÙØ¯ÙÙØ© â ÙØ®ØªØ§Ø± اÙÙ
ÙØ¸Ù ÙØ±ÙÙÙ"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:809",value:"auto_balance",children:"ØªÙØ²Ùع تÙÙØ§Ø¦Ù Ù
ØªÙØ§Ø²Ù"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:813",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:814",className:"text-white/80",children:"Webhook URL (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:815",value:l.webhookUrl,onChange:ve=>c(st=>({...st,webhookUrl:ve.target.value})),className:"bg-white/10 border-white/20 text-white placeholder:text-white/40 mt-1",placeholder:"https://n8n.example.com/webhook/..."}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:821",className:"text-white/75 text-xs mt-1",children:"Ø³ÙØªÙ
إرسا٠اÙÙØªØ§Ø¦Ø¬ تÙÙØ§Ø¦ÙØ§Ù Ø¹ÙØ¯ Ø§ÙØªÙاء اÙÙ
Ø³Ø§Ø¨ÙØ©"})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:824",className:"bg-purple-500/10 border border-purple-500/30 rounded-xl p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:825",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:826",children:[s.jsxs(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:827",className:"text-purple-300 font-semibold flex items-center gap-2",children:[s.jsx(Ov,{"data-loc":"client/src/pages/GameHostPage.tsx:828",className:"w-4 h-4"}),"Ø§ÙØ§ÙØªÙØ§Ù Ø§ÙØªÙÙØ§Ø¦Ù ÙÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"]}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:831",className:"text-white/75 text-xs mt-1",children:d?"â
Ø¹ÙØ¯ إجابة Ø§ÙØ¬Ù
ÙØ¹Ø ÙÙØªÙ٠تÙÙØ§Ø¦Ùا٠بعد 2 ثاÙÙØ©":"⸠اÙÙ
Ø¯ÙØ± ÙØªØÙÙ
ÙØ¯ÙÙØ§Ù ÙÙ Ø§ÙØ§ÙØªÙØ§Ù ÙÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"})]}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:837",onClick:()=>m(ve=>!ve),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${d?"bg-purple-500":"bg-white/20"}`,children:s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:841",className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${d?"translate-x-6":"translate-x-1"}`})})]})}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:845",className:"rounded-xl border border-cyan-300/40 bg-cyan-400/10 p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:846",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:847",children:[s.jsxs(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:848",className:"flex items-center gap-2 font-semibold text-cyan-100",children:[s.jsx(nz,{"data-loc":"client/src/pages/GameHostPage.tsx:849",className:"h-4 w-4"}),"Ù
عاÙÙØ© شاشة Ø§ÙØ¬ÙاÙ"]}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:852",className:"mt-1 text-xs leading-5 text-cyan-100/80",children:"اختبر Ø±Ø³Ø§Ø¦Ù Ø§ÙØªØ´Ø¬Ùع ÙØ´Ø§Ø´Ø§Øª اÙÙ
شار٠عÙ٠أربعة Ø£ØØ¬Ø§Ù
ÙØ§ØªÙ ÙØ¨Ù Ø¥ÙØ´Ø§Ø¡ اÙÙ
Ø³Ø§Ø¨ÙØ© ÙÙØ´Ø± Ø±Ø§Ø¨Ø·ÙØ§."})]}),s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:854",type:"button",variant:"outline",size:"sm",onClick:()=>X(!0),className:"shrink-0 border-cyan-200/60 bg-white/10 text-cyan-50 hover:bg-cyan-100 hover:text-cyan-950",children:"ÙØªØ اÙÙ
عاÙÙØ©"})]})})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:869",className:"bg-white/10 border-white/20 text-white",children:[s.jsx(nn,{"data-loc":"client/src/pages/GameHostPage.tsx:870",children:s.jsxs(sn,{"data-loc":"client/src/pages/GameHostPage.tsx:871",className:"flex items-center gap-2",children:[s.jsx(NW,{"data-loc":"client/src/pages/GameHostPage.tsx:872",className:"w-5 h-5 text-yellow-300"}),"تÙÙÙØ¯ Ø£Ø³Ø¦ÙØ© Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"]})}),s.jsxs(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:876",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:878",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:879",className:"text-white/80",children:"اÙÙØµ اÙÙ
صدر"}),s.jsx(Es,{"data-loc":"client/src/pages/GameHostPage.tsx:880",value:l.sourceText,onChange:ve=>c(st=>({...st,sourceText:ve.target.value})),className:"bg-white/10 border-white/20 text-white placeholder:text-white/40 mt-1 min-h-[100px]",placeholder:"Ø§ÙØµÙ ÙÙØ§ Ù
ØØªÙÙ Ø§ÙØ¯Ø±Ø³ Ø£Ù Ø£Ù ÙØµ ØªØ±ÙØ¯ تØÙÙÙ٠إÙÙ Ø£Ø³Ø¦ÙØ©... (50 ØØ±Ù عÙÙ Ø§ÙØ£ÙÙ)"}),l.sourceText.length>0&&s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:887",className:`text-xs mt-1 ${l.sourceText.length<50?"text-red-400":"text-green-400"}`,children:[l.sourceText.length," ØØ±Ù ",l.sourceText.length<50?`(${50-l.s
1087ourceText.length} ØØ±Ù Ù
تبÙÙ)`:"â"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:894",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:895",className:"text-white/80 mb-2 block",children:"Ù
ÙÙØ¬ÙØ© تÙÙÙØ¯ Ø§ÙØ£Ø³Ø¦ÙØ©"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:896",className:"grid grid-cols-2 gap-2",children:[{value:"competitive",icon:"ð",label:"ØªÙØ§ÙØ³ÙØ©",desc:"Ø£Ø³Ø¦ÙØ© ØØ§Ø¯Ø© تÙÙØ±Ù٠بÙ٠اÙÙ
ØªÙØ§ÙسÙÙ"},{value:"creative",icon:"ð¨",label:"Ø¥Ø¨Ø¯Ø§Ø¹ÙØ©",desc:"أسÙÙØ¨ ÙØµØµÙ ÙØªÙاعÙÙ Ù
Ù
تع"},{value:"analytical",icon:"ð¬",label:"تØÙÙÙÙØ©",desc:"تختبر اÙÙÙÙ
Ø§ÙØ¹Ù
ÙÙ ÙØ§Ùربط"},{value:"challenge",icon:"â¡",label:"ØªØØ¯Ù",desc:"صعبة ØªÙØØ¯ÙÙ ØØªÙ Ø§ÙØ®Ø¨Ø±Ø§Ø¡"}].map(ve=>s.jsxs("button",{"data-loc":"client/src/pages/GameHostPage.tsx:903",type:"button",onClick:()=>h(ve.value),className:`p-3 rounded-xl border text-right transition-all duration-200 ${f===ve.value?"border-yellow-400 bg-yellow-400/15 shadow-[0_0_12px_rgba(250,204,21,0.2)]":"border-white/15 bg-white/5 hover:border-white/30 hover:bg-white/10"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:913",className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:914",className:"text-base",children:ve.icon}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:915",className:`font-semibold text-sm ${f===ve.value?"text-yellow-300":"text-white"}`,children:ve.label}),f===ve.value&&s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:919",className:"w-3.5 h-3.5 text-yellow-400 mr-auto shrink-0"})]}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:922",className:"text-white/75 text-xs leading-relaxed",children:ve.desc})]},ve.value))})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:928",className:"flex items-end gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:929",className:"flex-1",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:930",className:"text-white/80",children:"عدد Ø§ÙØ£Ø³Ø¦ÙØ©"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:931",type:"number",min:3,max:20,value:l.questionCount,onChange:ve=>c(st=>({...st,questionCount:parseInt(ve.target.value)||10})),className:"bg-white/10 border-white/20 text-white mt-1"})]}),s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:940",onClick:zo,disabled:C||l.sourceText.length<50,className:"bg-yellow-500 hover:bg-yellow-400 text-black font-bold min-w-[120px]",children:C?s.jsxs(s.Fragment,{children:[s.jsx(Ta,{"data-loc":"client/src/pages/GameHostPage.tsx:946",className:"w-4 h-4 animate-spin ml-1"})," Ø¬Ø§Ø±Ù Ø§ÙØªÙÙÙØ¯"]}):s.jsxs(s.Fragment,{children:[s.jsx(pn,{"data-loc":"client/src/pages/GameHostPage.tsx:948",className:"w-4 h-4 ml-1"})," تÙÙÙØ¯"]})})]}),C&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:955",className:"bg-yellow-500/10 border border-yellow-500/30 rounded-xl p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:956",className:"flex items-center gap-3 mb-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:957",className:"relative w-8 h-8",children:[s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:958",className:"absolute inset-0 rounded-full border-2 border-yellow-400/30 animate-ping"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:959",className:"absolute inset-1 rounded-full bg-yellow-400/20 flex items-center justify-center",children:s.jsx(pn,{"data-loc":"client/src/pages/GameHostPage.tsx:960",className:"w-4 h-4 text-yellow-300"})})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:963",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:964",className:"text-yellow-200 font-medium text-sm",children:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙØ§Ø¹Ù ÙØ¹Ù
Ù..."}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:965",className:"text-yellow-300/70 text-xs",children:"ÙØ¯ ÙØ³ØªØºØ±Ù ÙØ°Ø§ 10-30 ثاÙÙØ©"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:968",className:"space-y-2",children:Zq.map((ve,st)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:970",className:`flex items-center gap-2 text-sm transition-all duration-500 ${st===A?"text-yellow-200 opacity-100 scale-100":st<A?"text-green-400 opacity-70":"text-white/30 opacity-40"}`,children:[st<A?s.jsx(fC,{"data-loc":"client/src/pages/GameHostPage.tsx:981",className:"w-4 h-4 text-green-400 shrink-0"}):st===A?s.jsx(Ta,{"data-loc":"client/src/pages/GameHostPage.tsx:983",className:"w-4 h-4 animate-spin text-yellow-300 shrink-0"}):s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:985",className:"w-4 h-4 rounded-full border border-white/20 shrink-0"}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:987",children:[ve.icon," ",ve.text]})]},st))})]})]})]})]}),k.length>0&&s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:999",className:"bg-white/10 border-white/20 text-white mb-6",children:[s.jsxs(nn,{"data-loc":"client/src/pages/GameHostPage.tsx:1000",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1001",className:"flex items-center justify-between",children:[s.jsxs(sn,{"data-loc":"client/src/pages/GameHostPage.tsx:1002",className:"flex items-center gap-2",children:[s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:1003",className:"w-5 h-5 text-green-400"}),"Ù
راجعة Ø§ÙØ£Ø³Ø¦ÙØ© اÙÙ
ÙÙÙØ¯Ø©",s.jsxs(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1005",className:"bg-green-500/20 text-green-300 border-green-500/30 mr-2",children:[k.length," سؤاÙ"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1009",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1010",size:"sm",variant:"outline",onClick:zo,disabled:C||l.sourceText.length<50,className:"border-yellow-400/40 text-yellow-300 hover:bg-yellow-400/10 text-xs",children:[s.jsx(vo,{"data-loc":"client/src/pages/GameHostPage.tsx:1017",className:"w-3 h-3 ml-1"}),"إعادة Ø§ÙØªÙÙÙØ¯"]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1020",size:"sm",variant:"outline",onClick:()=>{const ve={tempId:Date.now(),questionText:"Ø³Ø¤Ø§Ù Ø¬Ø¯ÙØ¯",questionType:"multiple_choice",options:["Ø®ÙØ§Ø± Ø£","Ø®ÙØ§Ø± ب","Ø®ÙØ§Ø± ج","Ø®ÙØ§Ø± د"],correctAnswer:"Ø®ÙØ§Ø± Ø£",timeLimitSeconds:y,pointsBase:1e3};D(st=>[...st,ve]),V(ve),B(!0)},className:"border-white/30 text-white hover:bg-white/10 text-xs",children:[s.jsx(qi,{"data-loc":"client/src/pages/GameHostPage.tsx:1039",className:"w-3 h-3 ml-1"}),"Ø¥Ø¶Ø§ÙØ© سؤاÙ"]})]})]}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1044",className:"text-white/75 text-sm mt-1",children:"راجع Ø§ÙØ£Ø³Ø¦ÙØ© ÙØ¹Ø¯ÙÙÙØ§ Ø£Ù Ø§ØØ°ÙÙØ§ ÙØ¨Ù بدء اÙÙ
Ø³Ø§Ø¨ÙØ©"})]}),s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:1046",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1047",className:"space-y-3",children:k.map((ve,st)=>{const ha=K.has(ve.tempId),Da=ve.questionType==="multiple_choice"?"Ø§Ø®ØªÙØ§Ø± Ù
تعدد":ve.questionType==="true_false"?"صØ/خطأ":"بازر",Oa=ve.questionType==="multiple_choice"?"bg-blue-500/20 text-blue-300 border-blue-500/30":ve.questionType==="true_false"?"bg-orange-500/20 text-orange-300 border-orange-500/30":"bg-purple-500/20 text-purple-300 border-purple-500/30",Qa=ZRe(ve.pointsBase);return s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1054",className:"bg-white/5 border border-white/10 rounded-xl overflow-hidden",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1056",className:"flex items-center gap-3 p-3",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1057",className:"text-white/40 text-sm font-mono w-6 shrink-0",children:st+1}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1058",onClick:()=>Cf(ve.tempId),className:"flex-1 text-right text-white/90 text-sm font-medium hover:text-white transition-colors line-clamp-2",children:ve.questionText}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1064",className:"flex items-center gap-2 shrink-0",children:[s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1065",className:`text-xs ${Oa}`,children:Da}),s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1066",className:`text-xs border ${Qa.bg} ${Qa.color}`,children:Qa.label}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1067",onClick:()=>Cf(ve.tempId),className:"text-white/40 hover:text-white transition-colors",children:ha?s.jsx(i2,{"data-loc":"client/src/pages/GameHostPage.tsx:1071",className:"w-4 h-4"}):s.jsx($x,{"data-loc":"client/src/pages/GameHostPage.tsx:1071",className:"w-4 h-4"})}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1073",onClick:()=>_o(ve),className:"text-blue-400 hover:text-blue-300 transition-colors",title:"تعدÙÙ",children:s.jsx(Fg,{"data-loc":"client/src/pages/GameHostPage.tsx:1078",className:"w-4 h-4"})}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1080",onClick:()=>Sf(ve.tempId),className:"text-red-400 hover:text-red-300 transition-colors",title:"ØØ°Ù",children:s.jsx(ur,{"data-loc":"client/src/pages/GameHostPage.tsx:1085",className:"w-4 h-4"})})]})]}),ha&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1091",className:"px-4 pb-4 border-t border-white/10 pt-3 space-y-2",children:[ve.questionType==="multiple_choice"&&ve.options.length>0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1093",className:"grid grid-cols-2 gap-2",children:ve.options.map((Ni,Gw)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1095",className:`px-3 py-1.5 rounded-lg text-sm ${Ni===ve.correctAnswer?"bg-green-500/20 border border-green-500/40 text-green-300":"bg-white/5 border border-white/10 text-white/70"}`,children:[Ni===ve.correctAnswer&&s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:1103",className:"w-3 h-3 inline ml-1"}),Ni]},Gw))}),ve.questionType==="true_false"&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1110",className:"flex gap-2",children:["صØ","خطأ"].map(Ni=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1112",className:`px-4 py-1.5 rounded-lg text-sm ${Ni===ve.correctAnswer?"bg-green-500/20 border border-green-500/40 text-green-300":"bg-white/5 border border-white/10 text-white/70"}`,children:[Ni===ve.correctAnswer&&s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:1113",className:"w-3 h-3 inline ml-1"}),Ni]},Ni))}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1119",className:"flex gap-4 text-xs text-white/75 mt-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1120",children:["â± ",ve.timeLimitSeconds," ثاÙÙØ©"]}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1121",children:["ð ",ve.pointsBase," ÙÙØ·Ø©"]})]})]})]},ve.tempId)})})})]}),k.length===0&&!C&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1135",className:"flex items-center gap-2 text-yellow-300/70 text-sm mb-4 bg-yellow-500/10 border border-yellow-500/20 rounded-xl px-4 py-3",children:[s.jsx(k6,{"data-loc":"client/src/pages/GameHostPage.tsx:1136",className:"w-4 h-4 shrink-0"}),"ÙÙ
ÙØªÙ
تÙÙÙØ¯ Ø£Ø³Ø¦ÙØ© بعد. ÙÙ
ÙÙÙ Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¬Ùسة بدÙÙ Ø£Ø³Ø¦ÙØ© ÙØ¥Ø¶Ø§ÙØªÙØ§ ÙØ§ØÙØ§ÙØ أ٠تÙÙÙØ¯Ùا Ø£Ø¹ÙØ§Ù."]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1142",className:"flex justify-center",children:s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1143",onClick:dd,disabled:te.isPending||We.isPending,size:"lg",className:"bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-400 hover:to-pink-400 text-white font-bold px-12 py-6 text-xl rounded-2xl shadow-2xl",children:te.isPending||We.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Ta,{"data-loc":"client/src/pages/GameHostPage.tsx:1150",className:"w-6 h-6 animate-spin ml-2"})," Ø¬Ø§Ø±Ù Ø§ÙØ¥Ùشاء..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Qp,{"data-loc":"client/src/pages/GameHostPage.tsx:1152",className:"w-6 h-6 ml-2"})," Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¬Ùسة ÙÙØªØ اÙÙÙØ¨Ù ",k.length>0?`(${k.length} سؤاÙ)`:""]})})}),dt.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1159",className:"mt-10",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1160",className:"flex items-center gap-2 mb-4",children:[s.jsx(pl,{"data-loc":"client/src/pages/GameHostPage.tsx:1161",className:"w-5 h-5 text-purple-300"}),s.jsx("h2",{"data-loc":"client/src/pages/GameHostPage.tsx:1162",className:"text-xl font-bold text-white",children:"اÙÙ
Ø³Ø§Ø¨ÙØ§Øª Ø§ÙØ³Ø§Ø¨ÙØ©"}),s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1163",className:"bg-white/10 text-white/60 border-white/20",children:dt.length})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1165",className:"space-y-3",children:dt.slice(0,5).map(ve=>s.jsx(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:1167",className:"bg-white/8 border-white/15 text-white",children:s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:1168",className:"p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1169",className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1170",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1171",className:"font-semibold text-white truncate",children:ve.title}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1172",className:"flex items-center gap-3 mt-1 text-sm text-white/50",children:[s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1173",className:"flex items-center gap-1",children:[s.jsx(iy,{"data-loc":"client/src/pages/GameHostPage.tsx:1174",className:"w-3.5 h-3.5"}),new Date(ve.createdAt).toLocaleDateString("ar-SA",{day:"numeric",month:"short",year:"numeric"})]}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1177",className:"flex items-center gap-1",children:[s.jsx(ln,{"data-loc":"client/src/pages/GameHostPage.tsx:1178",className:"w-3.5 h-3.5"}),ve.participantCount??0," Ù
شارÙ"]}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1181",className:"flex items-center gap-1",children:[s.jsx(Ln,{"data-loc":"client/src/pages/GameHostPage.tsx:1182",className:"w-3.5 h-3.5"}),ve.questionCount??0," سؤاÙ"]})]})]}),ve.winner&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1188",className:"flex items-center gap-2 bg-yellow-500/15 border border-yellow-500/30 rounded-xl px-3 py-2 shrink-0",children:[s.jsx(rf,{"data-loc":"client/src/pages/GameHostPage.tsx:1189",className:"w-4 h-4 text-yellow-400"}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1190",className:"text-right",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1191",className:"text-yellow-300 font-bold text-sm",children:ve.winner.dis
1087playName}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1192",className:"text-yellow-400/70 text-xs",children:[ve.winner.totalPoints.toLocaleString()," ÙÙØ·Ø©"]})]})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1196",size:"sm",variant:"outline",className:"shrink-0 border-white/20 text-white/70 hover:bg-white/10 gap-1.5",onClick:()=>t(`/game/stats/${ve.id}`),children:[s.jsx(Kx,{"data-loc":"client/src/pages/GameHostPage.tsx:1202",className:"w-3.5 h-3.5"}),"Ø¥ØØµØ§Ø¦Ùات"]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1205",size:"sm",variant:"outline",className:"shrink-0 border-green-400/40 text-green-300 hover:bg-green-400/10 gap-1.5",disabled:$,onClick:()=>Oe(ve.id),children:[$&&Q===ve.id?s.jsx(Ta,{"data-loc":"client/src/pages/GameHostPage.tsx:1213",className:"w-3.5 h-3.5 animate-spin"}):s.jsx(Qi,{"data-loc":"client/src/pages/GameHostPage.tsx:1215",className:"w-3.5 h-3.5"}),"تØÙ
ÙÙ Ø§ÙØ£Ø³Ø¦ÙØ©"]})]})})},ve.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1227",className:"mt-10",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1228",className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1229",className:"flex items-center gap-2",children:[s.jsx(Hi,{"data-loc":"client/src/pages/GameHostPage.tsx:1230",className:"w-5 h-5 text-blue-300"}),s.jsx("h2",{"data-loc":"client/src/pages/GameHostPage.tsx:1231",className:"text-xl font-bold text-white",children:"ÙÙØ§Ùب٠اÙÙ
ØÙÙØ¸Ø©"}),s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1232",className:"bg-white/10 text-white/60 border-white/20",children:fe.data?.length??0})]}),k.length>0&&s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1235",size:"sm",variant:"outline",className:"border-blue-400/40 text-blue-300 hover:bg-blue-400/10 gap-1.5",onClick:()=>{it(""),bt(""),et(!0)},children:[s.jsx(Hi,{"data-loc":"client/src/pages/GameHostPage.tsx:1241",className:"w-3.5 h-3.5"}),"ØÙظ Ø§ÙØ£Ø³Ø¦ÙØ© Ø§ÙØØ§ÙÙØ© ÙÙØ§Ùب"]})]}),(fe.data?.length??0)>0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1248",className:"flex items-center gap-2 mb-3 flex-wrap",children:[{value:"all",label:"اÙÙÙ"},{value:"general",label:"عاÙ
"},{value:"health",label:"ØµØØ©"},{value:"tech",label:"تÙÙÙØ©"},{value:"culture",label:"Ø«ÙØ§ÙØ©"},{value:"science",label:"عÙÙÙ
"},{value:"sports",label:"Ø±ÙØ§Ø¶Ø©"},{value:"selfdev",label:"تطÙÙØ± Ø§ÙØ°Ø§Øª"},{value:"ai",label:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù"}].map(ve=>s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1260",onClick:()=>be(ve.value),className:`px-3 py-1 rounded-full text-xs font-medium transition-all ${de===ve.value?"bg-blue-500 text-white":"bg-white/10 text-white/60 hover:bg-white/20"}`,children:ve.label},ve.value))}),fe.isLoading?s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1275",className:"flex items-center gap-2 text-white/50 text-sm py-4",children:[s.jsx(Ta,{"data-loc":"client/src/pages/GameHostPage.tsx:1276",className:"w-4 h-4 animate-spin"})," Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."]}):(fe.data?.length??0)===0?s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1279",className:"bg-white/5 border border-white/10 rounded-xl p-6 text-center",children:[s.jsx(Ape,{"data-loc":"client/src/pages/GameHostPage.tsx:1280",className:"w-8 h-8 text-white/30 mx-auto mb-2"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1281",className:"text-white/50 text-sm",children:"ÙØ§ ØªÙØ¬Ø¯ ÙÙØ§Ùب Ù
ØÙÙØ¸Ø© بعد."}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1282",className:"text-white/30 text-xs mt-1",children:"ÙÙÙØ¯ Ø£Ø³Ø¦ÙØ© Ø«Ù
اØÙØ¸ÙØ§ ÙÙØ§Ùب ÙØ¥Ø¹Ø§Ø¯Ø© استخداÙ
ÙØ§ ÙØ§ØÙاÙ."})]}):s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1285",className:"space-y-3",children:[(fe.data??[]).filter(ve=>de==="all"||ve.category===de).map(ve=>s.jsx(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:1289",className:"bg-white/8 border-white/15 text-white",children:s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:1290",className:"p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1291",className:"flex items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1292",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1293",className:"font-semibold text-white truncate",children:ve.name}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1294",className:"flex items-center gap-3 mt-1 text-sm text-white/50",children:[s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1295",className:"flex items-center gap-1",children:[s.jsx(Ln,{"data-loc":"client/src/pages/GameHostPage.tsx:1296",className:"w-3.5 h-3.5"}),ve.questionCount," سؤاÙ"]}),ve.defaultTimeLimitSeconds?s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1300",className:"flex items-center gap-1 text-yellow-300/80",children:[s.jsx(au,{"data-loc":"client/src/pages/GameHostPage.tsx:1301",className:"w-3.5 h-3.5"}),ve.defaultTimeLimitSeconds,"Ø« ÙÙØ¥Ø¬Ø§Ø¨Ø©"]}):null,ve.performanceMessages?s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1306",className:"flex items-center gap-1 text-fuchsia-300/80",children:[s.jsx(pn,{"data-loc":"client/src/pages/GameHostPage.tsx:1307",className:"w-3.5 h-3.5"}),"رسائ٠Ù
ØÙÙØ¸Ø©"]}
1087):null,s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1311",className:"flex items-center gap-1",children:[s.jsx(iy,{"data-loc":"client/src/pages/GameHostPage.tsx:1312",className:"w-3.5 h-3.5"}),new Date(ve.createdAt).toLocaleDateString("ar-SA",{day:"numeric",month:"short",year:"numeric"})]}),ve.description&&s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1316",className:"text-white/40 truncate max-w-xs",children:ve.description}),ve.category&&ve.category!=="general"&&s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1319",className:"text-xs bg-indigo-500/20 text-indigo-300 border-indigo-500/30",children:{health:"ØµØØ©",tech:"تÙÙÙØ©",culture:"Ø«ÙØ§ÙØ©",science:"عÙÙÙ
",sports:"Ø±ÙØ§Ø¶Ø©",selfdev:"تطÙÙØ± Ø§ÙØ°Ø§Øª",ai:"Ø°ÙØ§Ø¡ Ø§ØµØ·ÙØ§Ø¹Ù"}[ve.category]??ve.category})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1328",className:"flex items-center gap-2 shrink-0",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1329",size:"sm",variant:"outline",className:"border-blue-400/40 text-blue-300 hover:bg-blue-400/10 gap-1.5",onClick:()=>ee(ve.id),children:[s.jsx(vm,{"data-loc":"client/src/pages/GameHostPage.tsx:1335",className:"w-3.5 h-3.5"}),"تØÙ
ÙÙ"]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1338",size:"sm",variant:"outline",className:"border-purple-400/40 text-purple-300 hover:bg-purple-400/10 gap-1.5",onClick:async()=>{try{await Se.mutateAsync({templateId:ve.id}),fe.refetch(),re.success("تÙ
ÙØ³Ø® اÙÙØ§Ùب Ø¨ÙØ¬Ø§Ø!")}catch{re.error("ÙØ´Ù ÙÙ ÙØ³Ø® اÙÙØ§Ùب")}},children:[s.jsx(xpe,{"data-loc":"client/src/pages/GameHostPage.tsx:1350",className:"w-3.5 h-3.5"}),"ÙØ³Ø®"]}),s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1353",size:"sm",variant:"outline",className:"border-red-400/40 text-red-300 hover:bg-red-400/10 gap-1.5",onClick:async()=>{try{await se.mutateAsync({templateId:ve.id}),fe.refetch(),re.success("تÙ
ØØ°Ù اÙÙØ§Ùب")}catch{re.error("ÙØ´Ù ÙÙ ØØ°Ù اÙÙØ§Ùب")}},children:s.jsx(ur,{"data-loc":"client/src/pages/GameHostPage.tsx:1365",className:"w-3.5 h-3.5"})})]})]})})},ve.id)),(fe.data??[]).filter(ve=>de==="all"||ve.category===de).length===0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1375",className:"bg-white/5 border border-white/10 rounded-xl p-4 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1376",className:"text-white/40 text-sm",children:"ÙØ§ ØªÙØ¬Ø¯ ÙÙØ§Ùب ÙÙ ÙØ°Ø§ Ø§ÙØªØµÙÙÙ."})})]})]})]}),s.jsx(xs,{"data-loc":"client/src/pages/GameHostPage.tsx:1384",open:pe,onOpenChange:et,children:s.jsxs(bs,{"data-loc":"client/src/pages/GameHostPage.tsx:1385",className:"max-w-md",dir:"rtl",children:[s.jsx(ml,{"data-loc":"client/src/pages/GameHostPage.tsx:1386",children:s.jsxs(Ui,{"data-loc":"client/src/pages/GameHostPage.tsx:1387",className:"flex items-center gap-2",children:[s.jsx(Hi,{"data-loc":"client/src/pages/GameHostPage.tsx:1388",className:"w-5 h-5 text-blue-400"}),"ØÙظ Ø§ÙØ£Ø³Ø¦ÙØ© ÙÙØ§Ùب"]})}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1392",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1393",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1394",children:"اسÙ
اÙÙØ§Ùب *"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:1395",value:xe,onChange:ve=>it(ve.target.value),placeholder:"Ù
ثاÙ: Ø£Ø³Ø¦ÙØ© Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",className:"mt-1",dir:"rtl"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1403",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1404",children:"ÙØµÙ Ù
ختصر (Ø§Ø®ØªÙØ§Ø±Ù)"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:1405",value:Tt,onChange:ve=>bt(ve.target.value),placeholder:"ÙØµÙ Ù
ختصر ÙÙÙØ§Ùب...",className:"mt-1",dir:"rtl"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1413",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1414",children:"تصÙÙ٠اÙÙØ§Ùب"}),s.jsxs(Ss,{"data-loc":"client/src/pages/GameHostPage.tsx:1415",value:vt,onValueChange:St,children:[s.jsx(Ts,{"data-loc":"client/src/pages/GameHostPage.tsx:1416",className:"mt-1",children:s.jsx(Cs,{"data-loc":"client/src/pages/GameHostPage.tsx:1417",placeholder:"اختر تصÙÙÙØ§Ù"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/GameHostPage.tsx:1419",children:[s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1420",value:"general",children:"عاÙ
"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1421",value:"health",children:"ØµØØ©"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1422",value:"tech",children:"تÙÙÙØ©"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1423",value:"culture",children:"Ø«ÙØ§ÙØ©"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1424",value:"science",children:"عÙÙÙ
"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1425",value:"sports",children:"Ø±ÙØ§Ø¶Ø©"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1426",value:"selfdev",children:"تطÙÙØ± Ø§ÙØ°Ø§Øª"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1427",value:"ai",children:"Ø°ÙØ§Ø¡ اصØ
1087·ÙاعÙ"})]})]})]}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1431",className:"text-sm text-white/50",children:["Ø³ÙØªÙ
ØÙظ ",k.length," سؤا٠ÙÙ ÙØ°Ø§ اÙÙØ§Ùب."]})]}),s.jsxs(nu,{"data-loc":"client/src/pages/GameHostPage.tsx:1433",className:"gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1434",variant:"outline",onClick:()=>et(!1),children:"Ø¥ÙØºØ§Ø¡"}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1435",onClick:nt,disabled:G||!xe.trim(),className:"bg-blue-600 hover:bg-blue-500 text-white",children:[G?s.jsx(Ta,{"data-loc":"client/src/pages/GameHostPage.tsx:1440",className:"w-4 h-4 animate-spin ml-1"}):s.jsx(Hi,{"data-loc":"client/src/pages/GameHostPage.tsx:1440",className:"w-4 h-4 ml-1"}),"ØÙظ اÙÙØ§Ùب"]})]})]})}),s.jsx(xs,{"data-loc":"client/src/pages/GameHostPage.tsx:1447",open:ze,onOpenChange:Qe,children:s.jsxs(bs,{"data-loc":"client/src/pages/GameHostPage.tsx:1448",className:"max-w-2xl max-h-[80vh] overflow-y-auto",dir:"rtl",children:[s.jsx(ml,{"data-loc":"client/src/pages/GameHostPage.tsx:1449",children:s.jsxs(Ui,{"data-loc":"client/src/pages/GameHostPage.tsx:1450",className:"flex items-center gap-2",children:[s.jsx(vm,{"data-loc":"client/src/pages/GameHostPage.tsx:1451",className:"w-5 h-5 text-green-400"}),"Ù
راجعة Ø§ÙØ£Ø³Ø¦ÙØ© اÙÙ
ØÙ
ÙØ© (",k.length," سؤاÙ)"]})}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1455",className:"space-y-2 py-2",children:k.map((ve,st)=>s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1457",className:"bg-white/5 border border-white/10 rounded-xl p-3",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1458",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1459",className:"text-white/40 text-sm font-mono w-6 shrink-0 mt-0.5",children:st+1}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1460",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1461",className:"text-white/90 text-sm font-medium",children:ve.questionText}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1462",className:"flex items-center gap-2 mt-1.5",children:[s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1463",className:"text-xs bg-purple-500/20 text-purple-300 border-purple-500/30",children:ve.questionType==="multiple_choice"?"Ø§Ø®ØªÙØ§Ø± Ù
تعدد":ve.questionType==="true_false"?"صØ/خطأ":"بازر"}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1466",className:"text-xs text-white/40",children:["â± ",ve.timeLimitSeconds,"Ø«"]}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1467",className:"text-xs text-white/40",children:["ð ",ve.pointsBase]}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1468",className:"text-xs text-green-400/70",children:["â ",ve.correctAnswer]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1471",className:"flex gap-1 shrink-0",children:[s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1472",onClick:()=>_o(ve),className:"text-blue-400 hover:text-blue-300 transition-colors p-1",title:"تعدÙÙ",children:s.jsx(Fg,{"data-loc":"client/src/pages/GameHostPage.tsx:1477",className:"w-3.5 h-3.5"})}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1479",onClick:()=>Sf(ve.tempId),className:"text-red-400 hover:text-red-300 transition-colors p-1",title:"ØØ°Ù",children:s.jsx(ur,{"data-loc":"client/src/pages/GameHostPage.tsx:1484",className:"w-3.5 h-3.5"})})]})]})},ve.tempId))}),s.jsxs(nu,{"data-loc":"client/src/pages/GameHostPage.tsx:1491",className:"gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1492",variant:"outline",onClick:()=>Qe(!1),children:"Ø¥ØºÙØ§Ù اÙÙ
راجعة"}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1493",onClick:()=>{Qe(!1),re.success("Ø§ÙØ£Ø³Ø¦ÙØ© Ø¬Ø§ÙØ²Ø©! ÙÙ
ÙÙÙ Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ¬Ùسة Ø§ÙØ¢Ù.")},className:"bg-green-600 hover:bg-green-500 text-white",children:[s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:1497",className:"w-4 h-4 ml-1"}),"تأÙÙØ¯ ÙØ¥ØºÙاÙ"]})]})]})}),s.jsx(xs,{"data-loc":"client/src/pages/GameHostPage.tsx:1505",open:W,onOpenChange:B,children:s.jsxs(bs,{"data-loc":"client/src/pages/GameHostPage.tsx:1506",className:"max-w-lg",dir:"rtl",children:[s.jsx(ml,{"data-loc":"client/src/pages/GameHostPage.tsx:1507",children:s.jsx(Ui,{"data-loc":"client/src/pages/GameHostPage.tsx:1508",children:"تعدÙÙ Ø§ÙØ³Ø¤Ø§Ù"})}),_&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1511",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1512",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1513",children:"ÙØµ Ø§ÙØ³Ø¤Ø§Ù"}),s.jsx(Es,{"data-loc":"client/src/pages/GameHostPage.tsx:1514",value:_.questionText,onChange:ve=>V(st=>st?{...st,questionText:ve.target.value}:null),className:"mt-1 min-h-[80px]"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1520",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1521",children:"ÙÙØ¹ Ø§ÙØ³Ø¤Ø§Ù"}),s.jsxs(Ss,{"data-loc":"client/src/pages/GameHostPage.tsx:1522",value:_.questionType,onValueChange:ve=>V(st=>st?{...st,questionType:ve}:null),children:[s.jsx(Ts,{"data-loc":"client/src/pages/GameHostPage.tsx:1526",className:"mt-1",children:s.jsx(Cs,{"data-loc":"client/src/pages/GameHostPage.tsx:1527"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/GameHostPage.tsx:1529",children:[s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1530",value:"multiple_choice",children:"Ø§Ø®ØªÙØ§Ø± Ù
تعدد"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1531",value:"true_false",children:"ØµØ / خطأ"}),s.jsx(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1532",value:"buzzer",children:"بازر (إجابة Ù
ÙØªÙØØ©)"})]})]})]}),_.questionType==="multiple_choice"&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1537",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1538",children:"Ø§ÙØ®Ùارات (Ø§ÙØ®Ùار Ø§ÙØµØÙØ ÙÙØØ¯Ø¯ Ø£Ø¯ÙØ§Ù)"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1539",className:"space-y-2 mt-1",children:_.options.map((ve,st)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1541",className:"flex gap-2 items-center",children:[s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:1542",value:ve,onChange:ha=>{const Da=[..._.options],Oa=Da[st]===_.correctAnswer;Da[st]=ha.target.value,V(Qa=>Qa?{...Qa,options:Da,correctAnswer:Oa?ha.target.value:Qa.correctAnswer}:null)},className:`flex-1 ${ve===_.correctAnswer?"border-green-500 bg-green-50":""}`}),s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1556",onClick:()=>V(ha=>ha?{...ha,correctAnswer:ve}:null),className:`shrink-0 p-1.5 rounded-full transition-colors ${ve===_.correctAnswer?"bg-green-500 text-white":"bg-gray-100 text-gray-400 hover:bg-green-100"}`,title:"تعÙÙÙ ÙØ¥Ø¬Ø§Ø¨Ø© صØÙØØ©",children:s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:1561",className:"w-4 h-4"})})]},st))})]}),_.questionType==="true_false"&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1569",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1570",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1571",className:"flex gap-3 mt-1",children:["صØ","خطأ"].map(ve=>s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1573",onClick:()=>V(st=>st?{...st,correctAnswer:ve}:null),className:`flex-1 py-2 rounded-lg border font-medium transition-colors ${_.correctAnswer===ve?"bg-green-500 text-white border-green-500":"border-gray-200 hover:border-green-300"}`,children:ve},ve))})]}),_.questionType==="buzzer"&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1585",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1586",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© (ÙØµ)"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:1587",value:_.correctAnswer,onChange:ve=>V(st=>st?{...st,correctAnswer:ve.target.value}:null),className:"mt-1"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1594",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1595",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1596",children:"ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø© (ثاÙÙØ©)"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:1597",type:"number",min:1,max:300,value:_.timeLimitSeconds,onChange:ve=>{const st=parseInt(ve.target.value,10),ha=Number.isNaN(st)?20:Math.min(300,Math.max(1,st));V(Da=>Da?{...Da,timeLimitSeconds:ha}:null)},className:"mt-1"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1609",className:"flex flex-wrap gap-1.5 mt-2",children:[10,15,20,30,45,60].map(ve=>s.jsxs("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1611",type:"button",onClick:()=>V(st=>st?{...st,timeLimitSeconds:ve}:null),className:`px-2 py-1 rounded-md text-xs font-bold transition-colors ${_.timeLimitSeconds===ve?"bg-yellow-400 text-black":"bg-black/10 hover:bg-black/20"}`,children:[ve,"Ø«"]},ve))})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1622",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1623",children:"اÙÙÙØ§Ø· Ø§ÙØ£Ø³Ø§Ø³ÙØ©"}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:1624",type:"number",min:100,max:5e3,step:100,value:_.pointsBase,onChange:ve=>V(st=>st?{...st,pointsBase:parseInt(ve.target.value)||1e3}:null),className:"mt-1"})]})]})]}),s.jsxs(nu,{"data-loc":"client/src/pages/GameHostPage.tsx:1637",className:"gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1638",variant:"outline",onClick:()=>B(!1),children:"Ø¥ÙØºØ§Ø¡"}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1639",onClick:Bn,className:"bg-green-600 hover:bg-green-500 text-white",children:[s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:1640",className:"w-4 h-4 ml-1"}),"ØÙظ Ø§ÙØªØ¹Ø¯ÙÙ"]})]})]})}),s.jsx(xs,{"data-loc":"client/src/pages/GameHostPage.tsx:1646",open:oe,onOpenChange:ve=>{X(ve),ve||ht(!1)},children:s.jsxs(bs,{"data-loc":"client/src/pages/GameHostPage.tsx:1647",className:"max-h-[92vh] max-w-[480px] overflow-y-auto border-2 border-cyan-300 bg-slate-950 p-4 sm:p-6",dir:"rtl",children:[s.jsxs(ml,{"data-loc":"client/src/pages/GameHostPage.tsx:1648",children:[s.jsxs(Ui,{"data-loc":"client/src/pages/GameHostPage.tsx:1649",className:"flex items-center gap-2 text-right text-white",children:[s.jsx(nz,{"data-loc":"client/src/pages/GameHostPage.tsx:1650",className:"h-5 w-5 text-cyan-300"}),"Ù
عاÙÙØ© اÙÙ
ÙØ¸Ù عÙÙ Ø§ÙØ¬ÙاÙ"]}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1653",className:"text-right text-sm leading-6 text-slate-300",children:"راجع شاشات اÙÙ
Ø´Ø§Ø±Ù Ø§ÙØ£Ø³Ø§Ø³ÙØ© بعرض ÙØ§ØªÙ شائع ÙØ¨Ù Ø¥ÙØ´Ø§Ø¡ اÙÙ
Ø³Ø§Ø¨ÙØ© ÙÙØ´Ø± Ø±Ø§Ø¨Ø·ÙØ§."})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1655",className:"space-y-2 rounded-2xl border border-cyan-300/20 bg-white/5 p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1656",className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1657",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1658",className:"text-xs text-slate-200",children:"ØØ¬Ù
شاشة اÙÙØ§ØªÙ"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1659",className:"mt-1 text-[11px] text-slate-400",children:"غÙÙØ± اÙÙ
ÙØ§Ø³ ÙÙØªØ£Ùد Ù
٠عدÙ
ÙØµÙ Ø±Ø³Ø§Ø¦Ù Ø§ÙØªØ´Ø¬Ùع Ø£Ù Ø¹ÙØ§ØµØ± Ø§ÙØ´Ø§Ø´Ø©."})]}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1661",className:"rounded-full border border-cyan-300/30 bg-cyan-300/10 px-2 py-1 text-[10px] font-bold text-cyan-100",children:qs.shortL
1087abel})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1663",className:"grid grid-cols-2 gap-2 sm:grid-cols-4",role:"radiogroup","aria-label":"Ø£ØØ¬Ø§Ù
شاشة اÙÙØ§ØªÙ",children:S1.map(ve=>s.jsxs("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1665",type:"button",role:"radio","aria-checked":ne===ve.id,onClick:()=>ge(ve.id),className:`min-h-16 rounded-xl border px-2 py-2 text-right transition-colors ${ne===ve.id?"border-cyan-200 bg-cyan-300/20 text-cyan-50":"border-white/10 bg-white/5 text-slate-300 hover:bg-white/10"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1673",className:"block text-xs font-black",children:ve.label}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1674",className:"mt-1 block text-[10px] leading-4 text-slate-400",children:ve.shortLabel})]},ve.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1679",className:"space-y-3 rounded-2xl border border-cyan-300/20 bg-white/5 p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1680",className:"grid grid-cols-2 gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1681",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1682",className:"text-xs text-slate-200",children:"زÙ
٠اÙÙ
ØØ§Ùاة"}),s.jsxs(Ss,{"data-loc":"client/src/pages/GameHostPage.tsx:1683",value:String(ke),onValueChange:ve=>Me(Number(ve)),children:[s.jsx(Ts,{"data-loc":"client/src/pages/GameHostPage.tsx:1684",className:"mt-1 border-white/20 bg-white/10 text-white",children:s.jsx(Cs,{"data-loc":"client/src/pages/GameHostPage.tsx:1684"})}),s.jsx(Ds,{"data-loc":"client/src/pages/GameHostPage.tsx:1685",children:[3,5,10,15,30].map(ve=>s.jsxs(Kt,{"data-loc":"client/src/pages/GameHostPage.tsx:1686",value:String(ve),children:[ve," Ø«ÙØ§ÙÙ"]},ve))})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1690",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1691",className:"text-xs text-slate-200",children:"ØØ§ÙØ© Socket.IO"}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1692",className:`mt-1 flex min-h-10 items-center gap-2 rounded-lg border px-3 text-xs font-bold ${Ze==="connected"?"border-emerald-400/40 bg-emerald-400/10 text-emerald-200":Ze==="reconnecting"?"border-amber-400/40 bg-amber-400/10 text-amber-200":"border-rose-400/40 bg-rose-400/10 text-rose-200"}`,role:"status",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1693",className:"h-2 w-2 rounded-full bg-current","aria-hidden":"true"}),Ze==="connected"?"Ù
ØªØµÙ ÙØ¹ÙÙØ§Ù":Ze==="reconnecting"?"إعادة Ø§ØªØµØ§Ù Ø¬Ø§Ø±ÙØ©":"ØºÙØ± Ù
تصÙ"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1698",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1699",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1700",className:"text-xs text-slate-200",children:"Ø±Ø³Ø§Ø¦Ù Ø§ÙØªØ´Ø¬Ùع ØØ³Ø¨ Ø§ÙØ£Ø¯Ø§Ø¡"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1701",className:"mt-1 text-[11px] leading-5 text-slate-400",children:"ØªÙØÙØ¸ ÙØ°Ù اÙÙØµÙص Ù
ع اÙÙØ§Ùب Ø¹ÙØ¯ Ø§ÙØ¶ØºØ· عÙ٠«ØÙظ اÙÙØ§Ùب»."})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1703",type:"button",size:"sm",variant:"outline",onClick:gt,className:"shrink-0 gap-1 border-amber-300/40 bg-transparent text-xs text-amber-200 hover:bg-amber-300/10",children:[s.jsx(vo,{"data-loc":"client/src/pages/GameHostPage.tsx:1704",className:"h-3.5 w-3.5"}),"إعادة Ø§ÙØ¶Ø¨Ø·"]})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1708",className:"grid gap-2 sm:grid-cols-2",children:[["excellentTitle","عÙÙØ§Ù Ø§ÙØ£Ø¯Ø§Ø¡ اÙÙ
Ù
تاز"],["excellentBody","ÙØµ Ø§ÙØ£Ø¯Ø§Ø¡ اÙÙ
Ù
تاز"],["goodTitle","عÙÙØ§Ù Ø§ÙØ£Ø¯Ø§Ø¡ Ø§ÙØ¬Ùد"],["goodBody","ÙØµ Ø§ÙØ£Ø¯Ø§Ø¡ Ø§ÙØ¬Ùد"],["focusTitle","عÙÙØ§Ù Ø±Ø³Ø§ÙØ© Ø§ÙØªØØ³ÙÙ"],["focusBody","ÙØµ Ø±Ø³Ø§ÙØ© Ø§ÙØªØØ³ÙÙ"]].map(([ve,st])=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1714",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1715",className:"text-xs text-slate-300",children:st}),s.jsx(oa,{"data-loc":"client/src/pages/GameHostPage.tsx:1716",value:Te[ve],onChange:ha=>Ke(Da=>({...Da,[ve]:ha.target.value})),className:"mt-1 border-white/20 bg-white/10 text-white placeholder:text-slate-500",maxLength:ve.endsWith("Title")?48:120})]},ve))}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1720",className:"text-[11px] leading-5 text-slate-400",children:"ØªØªØØ¯ÙØ« اÙÙ
عاÙÙØ© ÙÙØ±ÙØ§ÙØ ÙØªØ¸Ùر ØØ§ÙØ© Ø§ÙØ§ØªØµØ§Ù اÙÙØ¹ÙÙØ© Ù٠شاشة Ø§ÙØ§ÙÙØ·Ø§Ø¹."})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1722",className:"space-y-2 rounded-2xl border border-fuchsia-300/20 bg-fuchsia-300/5 p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1723",className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1724",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1725",className:"text-xs font-black text-fuchsia-100",children:"Ù
ØØ§Ùاة Ù
ستÙÙØ§Øª Ø§ÙØ£Ø¯Ø§Ø¡"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1726",className:"mt-1 text-[11px] text-slate-400",children:"اعرض Ø§ÙØ±Ø³Ø§Ø¦Ù Ø§ÙØ«Ùاث تÙÙØ§Ø¦Ùا٠أ٠اختر Ù
ستÙÙ Ù
ØØ¯Ø¯Ø§Ù."})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1728",type:"button",size:"sm",variant:"outline",onClick:()=>ht(ve=>!ve),className:"shrink-0 gap-1 border-fuchsia-300/40 bg-transparent text-xs text-fuchsia-100 hover:bg-fuchsia-300/10",children:[Ve?s.jsx(vo,{"data-loc":"client/src/pages/GameHostPage.tsx:1729",className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Qp,{"data-loc":"client/src/pages/GameHostPage.tsx:1729",className:"h-3.5 w-3.5"}),Ve?"Ø¥ÙÙØ§Ù اÙÙ
ØØ§Ùاة":"تشغÙ٠اÙÙ
ØØ§Ùاة"]})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1733",className:"grid grid-cols-3 gap-2",children:hv.map(({screen:ve,label:st,description:ha})=>s.jsxs("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1735",type:"button",onClick:()=>Mt(ve),"aria-pressed":Pe===ve,className:`min-h-16 rounded-xl border px-2 py-2 text-right transition-colors ${Pe===ve?"border-fuchsia-200 bg-fuchsia-300/20 text-fuchsia-50":"border-white/10 bg-white/5 text-slate-300 hover:bg-white/10"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1736",className:"block text-xs font-black",children:st}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1737",className:"mt-1 block text-[10px] leading-4 text-slate-400",children:ha})]},ve))})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1742",className:"space-y-2 rounded-2xl border border-cyan-300/20 bg-white/5 p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1743",className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1744",children:[s.jsx(cn,{"data-loc":"client/src/pages/GameHostPage.tsx:1745",className:"text-xs text-slate-200",children:"ØªÙØ¨Ùر اÙÙ
عاÙÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1746",className:"mt-1 text-[11px] leading-5 text-slate-400",children:"ÙØ¨Ùر Ø§ÙØ¥Ø·Ø§Ø± ÙØ±Ø¤ÙØ© Ø§ÙØªÙاصÙÙ Ø§ÙØ¯ÙÙÙØ© دÙ٠تغÙÙØ± أبعاد شاشة اÙÙØ§ØªÙ ÙÙ
1087Ø³ÙØ§."})]}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1748",className:"rounded-full border border-cyan-300/30 bg-cyan-300/10 px-2 py-1 text-[10px] font-black text-cyan-100","aria-live":"polite",children:[Math.round(me*100),"%"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1750",className:"flex items-center gap-2",dir:"ltr",children:[s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1751",type:"button",size:"icon",variant:"outline",onClick:()=>rt(-1),disabled:me<=Vv,"aria-label":"ØªØµØºÙØ± اÙÙ
عاÙÙØ©",title:"ØªØµØºÙØ± اÙÙ
عاÙÙØ©",className:"h-9 w-9 shrink-0 border-white/20 bg-white/10 text-cyan-100 hover:bg-cyan-300/10 disabled:opacity-40",children:s.jsx(Hpe,{"data-loc":"client/src/pages/GameHostPage.tsx:1761",className:"h-4 w-4"})}),s.jsx("input",{"data-loc":"client/src/pages/GameHostPage.tsx:1763",type:"range",min:Vv*100,max:Qv*100,step:Xq*100,value:Math.round(me*100),onChange:ve=>yt(Number(ve.target.value)/100),"aria-label":"ÙØ³Ø¨Ø© ØªÙØ¨Ùر Ù
عاÙÙØ© اÙÙØ§ØªÙ",className:"h-2 min-w-0 flex-1 cursor-pointer accent-cyan-300"}),s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1773",type:"button",size:"icon",variant:"outline",onClick:()=>rt(1),disabled:me>=Qv,"aria-label":"ØªÙØ¨Ùر اÙÙ
عاÙÙØ©",title:"ØªÙØ¨Ùر اÙÙ
عاÙÙØ©",className:"h-9 w-9 shrink-0 border-white/20 bg-white/10 text-cyan-100 hover:bg-cyan-300/10 disabled:opacity-40",children:s.jsx(Gpe,{"data-loc":"client/src/pages/GameHostPage.tsx:1783",className:"h-4 w-4"})}),s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1785",type:"button",size:"icon",variant:"outline",onClick:xt,disabled:me===1,"aria-label":"إعادة Ø§ÙØªÙØ¨ÙØ± Ø¥ÙÙ 100 باÙÙ
ئة",title:"إعادة Ø§ÙØªÙØ¨ÙØ± Ø¥ÙÙ 100%",className:"h-9 w-9 shrink-0 border-amber-300/30 bg-transparent text-amber-200 hover:bg-amber-300/10 disabled:opacity-40",children:s.jsx(u2,{"data-loc":"client/src/pages/GameHostPage.tsx:1795",className:"h-4 w-4"})})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1798",className:"flex justify-between text-[10px] text-slate-500",dir:"ltr",children:[s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1799",children:[Math.round(Vv*100),"%"]}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1800",children:"100% ÙÙØ§Ø³Ù"}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1801",children:[Math.round(Qv*100),"%"]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1804",className:"grid grid-cols-3 gap-1 rounded-xl bg-white/10 p-1",role:"tablist","aria-label":"شاشات Ù
عاÙÙØ© اÙÙØ§ØªÙ",children:[["join","Ø§ÙØ§ÙضÙ
اÙ
"],["question","Ø§ÙØ³Ø¤Ø§Ù"],["answer_correct","صØÙØØ©"],["answer_wrong","خاطئة"],["next_question","Ø§ÙØªØ¸Ø§Ø±"],["countdown","Ø¹Ø¯Ù ØªÙØ§Ø²ÙÙ"],["offline","اتصاÙ"],["performance_excellent","أداء Ù
Ù
تاز"],["performance_good","أداء Ø¬ÙØ¯"],["performance_focus","ØªØØ³ÙÙ"],["finished","اÙÙØªØ§Ø¦Ø¬"]].map(([ve,st])=>s.jsx("button",{"data-loc":"client/src/pages/GameHostPage.tsx:1818",type:"button",onClick:()=>Mt(ve),className:`min-h-10 rounded-lg px-2 text-xs font-bold transition-colors ${Pe===ve?"bg-cyan-300 text-slate-950":"text-slate-200 hover:bg-white/10"}`,role:"tab","aria-selected":Pe===ve,children:st},ve))}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1821",className:"max-w-full overflow-x-auto rounded-2xl border border-white/10 bg-slate-950/40 p-2","aria-label":"إطار Ù
عاÙÙØ© اÙÙØ§ØªÙ اÙÙØ§Ø¨Ù ÙÙØªÙØ¨ÙØ±",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1822",className:"mx-auto flex shrink-0 justify-center overflow-hidden rounded-[2rem] border border-cyan-300/20 bg-slate-950/50",style:{width:`${(qs.width+22)*me}px`,height:`${(qs.height+52)*me}px`},children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1829",className:"box-border shrink-0 rounded-[2rem] border-[7px] border-slate-700 bg-slate-900 p-1 shadow-[0_0_0_2px_rgba(103,232,249,0.35)]",style:{width:`${qs.width+22}px`,transform:`scale(${me})`,transformOrigin:"top center",transition:"transform 180ms cubic-bezier(0.23, 1, 0.32, 1)"},children:[s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1838",className:"mx-auto h-5 w-28 rounded-b-2xl bg-slate-700","aria-hidden":"true"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1839",className:"mt-1 overflow-hidden rounded-[1.55rem] bg-white",style:{height:`${qs.height}px`},children:s.jsx("iframe",{"data-loc":"client/src/pages/GameHostPage.tsx:1840",title:"Ù
عاÙÙØ© شاشة Ø§ÙØ¶Ù
اÙ
اÙÙ
شار٠عÙÙ Ø§ÙØ¬ÙاÙ",src:JRe(i.session?.pin,Pe,{countdownSeconds:ke,connection:Ze,messages:Te}),className:"h-full w-full border-0",loading:"eager"})}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1851",className:"mx-auto mt-2 h-1 w-24 rounded-full bg-slate-600","aria-hidden":"true"})]})})}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1855",className:"text-center text-xs text-slate-400",children:["Ø§ÙØ¹Ø±Ø¶: ",qs.width," à ",qs.height," Ø¨ÙØ³Ù · ",qs.label," · ",{join:"ÙØ§Ø¬ÙØ© Ø§ÙØ§ÙضÙ
اÙ
",question:"ÙØ§Ø¬ÙØ© Ø§ÙØ³Ø¤Ø§Ù",answer_
1087correct:"ØØ§ÙØ© Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",answer_wrong:"ØØ§ÙØ© Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØ®Ø§Ø·Ø¦Ø©",next_question:"شاشة Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ",countdown:"Ø§ÙØ¹Ø¯ Ø§ÙØªÙازÙÙ ÙØ¨Ù Ø§ÙØ³Ø¤Ø§Ù",offline:"ØØ§ÙØ© اÙÙØ·Ø§Ø¹ Ø§ÙØ§ØªØµØ§Ù",performance_excellent:"Ø±Ø³Ø§ÙØ© Ø§ÙØ£Ø¯Ø§Ø¡ اÙÙ
Ù
تاز",performance_good:"Ø±Ø³Ø§ÙØ© Ø§ÙØ£Ø¯Ø§Ø¡ Ø§ÙØ¬Ùد",performance_focus:"Ø±Ø³Ø§ÙØ© Ø§ÙØªØØ³ÙÙ",finished:"ÙØ§Ø¬ÙØ© اÙÙØªØ§Ø¦Ø¬ اÙÙÙØ§Ø¦ÙØ©"}[Pe]," ÙÙÙ
شارÙ."]})]})})]})}if(i.phase==="lobby"&&i.session)return s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1865",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 p-4 md:p-8",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1866",className:"max-w-5xl mx-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1867",className:"text-center mb-8",children:[s.jsx("h1",{"data-loc":"client/src/pages/GameHostPage.tsx:1868",className:"text-4xl font-bold text-white mb-2",children:i.session.title}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1869",className:"text-white/60",children:"ÙÙ Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ¶Ù
اÙ
اÙÙ
شارÙÙÙ..."})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1871",className:"grid grid-cols-1 md:grid-cols-2 gap-8 mb-8",children:[s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:1872",className:"bg-white text-center p-8",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1873",className:"text-gray-500 mb-4 font-medium",children:"اÙ
Ø³Ø Ø§ÙÙÙØ¯ ÙÙØ§ÙضÙ
اÙ
"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1874",className:"flex justify-center mb-4",children:s.jsx(mw,{"data-loc":"client/src/pages/GameHostPage.tsx:1875",value:cd,size:200,level:"H"})}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1877",className:"text-gray-400 text-sm break-all",children:cd}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1878",className:"flex gap-2 mt-3 justify-center flex-wrap",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1879",variant:"outline",size:"sm",onClick:()=>{navigator.clipboard.writeText(cd),re.success("تÙ
ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·!")},children:[s.jsx(o2,{"data-loc":"client/src/pages/GameHostPage.tsx:1884",className:"w-4 h-4 ml-1"})," ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·"]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:1886",variant:"outline",size:"sm",onClick:()=>window.open(`/game/projector/${i.session.id}`,"_blank"),className:"border-purple-400/50 text-purple-300 hover:bg-purple-400/10",children:[s.jsx(Qp,{"data-loc":"client/src/pages/GameHostPage.tsx:1892",className:"w-4 h-4 ml-1"})," ÙØ¶Ø¹ Ø§ÙØ¹Ø±Ø¶ اÙÙØ¨Ùر"]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1896",className:"flex flex-col items-center justify-center",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1897",className:"text-white/60 text-xl mb-3",children:"رÙ
ز Ø§ÙØ¬Ùسة"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1898",className:"bg-white/10 border-2 border-white/30 rounded-3xl px-10 py-6 mb-4",children:s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1899",className:"text-7xl font-black text-white tracking-widest font-mono",children:i.session.pin})}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1901",className:"text-white/40 text-sm",children:["Ø§Ø°ÙØ¨ Ø¥ÙÙ ",window.location.origin,"/game/join"]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1902",className:"mt-4 flex items-center gap-2 bg-white/10 rounded-full px-4 py-2",children:[s.jsx(ln,{"data-loc":"client/src/pages/GameHostPage.tsx:1903",className:"w-5 h-5 text-purple-300"}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1904",className:"text-white font-bold",children:[i.participants.length," Ù
شارÙ"]})]})]})]}),i.participants.length>0&&s.jsx(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:1909",className:"bg-white/10 border-white/20 mb-6",children:s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:1910",className:"p-4",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1911",className:"flex flex-wrap gap-2",children:i.participants.map(He=>s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1913",className:"bg-purple-500/30 text-purple-100 border-purple-400/30 text-sm py-1 px-3",children:He.dis
1087playName},He.id))})})}),i.session.teamMode!=="individual"&&i.participants.some(He=>He.teamId!=="none")?s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1923",className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6",children:[s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:1925",className:"bg-blue-500/15 border-blue-400/40",children:[s.jsx(nn,{"data-loc":"client/src/pages/GameHostPage.tsx:1926",className:"pb-2 pt-3 px-4",children:s.jsxs(sn,{"data-loc":"client/src/pages/GameHostPage.tsx:1927",className:"text-blue-300 text-base flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1928",className:"text-2xl",children:"ðµ"}),"اÙÙØ±Ù٠أ",s.jsxs(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1930",className:"bg-blue-500/30 text-blue-200 border-blue-400/30 mr-auto",children:[i.participants.filter(He=>He.teamId==="team_a").length," عضÙ"]})]})}),s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:1935",className:"px-4 pb-3",children:i.participants.filter(He=>He.teamId==="team_a").length===0?s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1937",className:"text-white/30 text-sm text-center py-2",children:"ÙÙ
ÙÙØ¶Ù
Ø£ØØ¯ بعد"}):s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1939",className:"flex flex-wrap gap-2",children:i.participants.filter(He=>He.teamId==="team_a").map(He=>s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1941",className:"bg-blue-500/30 text-blue-100 border-blue-400/30 text-sm py-1 px-3",children:He.displayName},He.id))})})]}),s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:1950",className:"bg-red-500/15 border-red-400/40",children:[s.jsx(nn,{"data-loc":"client/src/pages/GameHostPage.tsx:1951",className:"pb-2 pt-3 px-4",children:s.jsxs(sn,{"data-loc":"client/src/pages/GameHostPage.tsx:1952",className:"text-red-300 text-base flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1953",className:"text-2xl",children:"ð´"}),"اÙÙØ±Ù٠ب",s.jsxs(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1955",className:"bg-red-500/30 text-red-200 border-red-400/30 mr-auto",children:[i.participants.filter(He=>He.teamId==="team_b").length," عضÙ"]})]})}),s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:1960",className:"px-4 pb-3",children:i.participants.filter(He=>He.teamId==="team_b").length===0?s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:1962",className:"text-white/30 text-sm text-center py-2",children:"ÙÙ
ÙÙØ¶Ù
Ø£ØØ¯ بعد"}):s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1964",className:"flex flex-wrap gap-2",children:i.participants.filter(He=>He.teamId==="team_b").map(He=>s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1966",className:"bg-red-500/30 text-red-100 border-red-400/30 text-sm py-1 px-3",children:He.displayName},He.id))})})]}),i.participants.filter(He=>He.teamId==="none").length>0&&s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:1976",className:"bg-white/5 border-white/10 md:col-span-2",children:[s.jsx(nn,{"data-loc":"client/src/pages/GameHostPage.tsx:1977",className:"pb-2 pt-3 px-4",children:s.jsxs(sn,{"data-loc":"client/src/pages/GameHostPage.tsx:1978",className:"text-white/50 text-sm flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:1979",children:"â³"}),"ÙÙ
ÙØ®ØªØ§Ø±Ùا ÙØ±ÙÙØ§Ù بعد",s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1981",className:"bg-white/10 text-white/40 border-white/10 mr-auto",children:i.participants.filter(He=>He.teamId==="none").length})]})}),s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:1986",className:"px-4 pb-3",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1987",className:"flex flex-wrap gap-2",children:i.participants.filter(He=>He.teamId==="none").map(He=>s.jsx(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:1989",className:"bg-white/10 text-white/50 border-white/10 text-sm py-1 px-3",children:He.displayName},He.id))})})]})]}):null,s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:1999",className:"flex flex-col sm:flex-row gap-4 justify-center",children:[i.session.teamMode!=="individual"&&s.jsxs(s.Fragment,{children:[s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:2002",onClick:()=>gr("host:start_team_selection",{sessionId:i.session.id}),variant:"outline",className:"border-white/30 text-white hover:bg-white/10",children:[s.jsx(ln,{"data-loc":"client/src/pages/GameHostPage.tsx:2007",className:"w-4 h-4 ml-2"}),"بدء Ø§Ø®ØªÙØ§Ø± اÙÙØ±Ù"]}),i.session.teamMode==="auto_balance"&&s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:2011",onClick:()=>gr("host:auto_balance",{sessionId:i.session.id}),variant:"outline",className:"border-yellow-400/50 text-yellow-300 hover:bg-yellow-400/10",children:[s.jsx(vs,{"data-loc":"client/src/pages/GameHostPage.tsx:2016",className:"w-4 h-4 ml-2"}),"ØªÙØ²Ùع تÙÙØ§Ø¦Ù"]})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:2022",onClick:()=>gr("host:start_game",{sessionId:i.session.id}),disabled:i.participants.length===0||i.questions.length===0,className:"bg-green-500 hover:bg-green-400 text-white font-bold px-8 py-3 text-lg rounded-xl",children:[s.jsx(Qp,{"data-loc":"client/src/pages/GameHostPage.tsx:2027",className:"w-5 h-5 ml-2"}),"ابدأ اÙÙ
Ø³Ø§Ø¨ÙØ© (",i.questions.length," سؤاÙ)"]})]}),i.questions.length===0&&s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2032",className:"text-yellow-300 text-center mt-3 text-sm",children:"â ï¸ ÙØ§ ØªÙØ¬Ø¯ Ø£Ø³Ø¦ÙØ© â Ø§Ø±Ø¬Ø¹ ÙÙØ¥Ø¹Ø¯Ø§Ø¯ ÙØ£Ø¶Ù Ø£Ø³Ø¦ÙØ© Ø£ÙÙØ§Ù"}),i.questions.length>0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2036",className:"mt-6",children:s.jsx(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:2037",className:"bg-green-500/15 border-green-400/40 text-white",children:s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:2038",className:"p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2039",className:"flex items-center justify-between flex-wrap gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2040",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2041",className:"w-10 h-10 rounded-full bg-green-500/30 flex items-center justify-center shrink-0",children:s.jsx(fC,{"data-loc":"client/src/pages/GameHostPage.tsx:2042",className:"w-5 h-5 text-green-400"})}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2044",children:[s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2045",className:"font-bold text-green-300 text-base",children:[i.questions.length," Ø³Ø¤Ø§Ù Ø¬Ø§ÙØ² ÙÙÙ
Ø³Ø§Ø¨ÙØ© â
"]}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2048",className:"text-white/50 text-sm mt-0.5",children:[i.questions.filter(He=>He.questionType==="multiple_choice").length," Ø§Ø®ØªÙØ§Ø± Ù
تعدد"," · ",i.questions.filter(He=>He.questionType==="true_false").length," صØ/خطأ",i.questions.filter(He=>He.questionType==="buzzer").length>0&&s.jsxs(s.Fragment,{children:[" · ",i.questions.filter(He=>He.questionType==="buzzer").length," بازر"]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2058",className:"flex items-center gap-4 text-sm",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2059",className:"text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2060",className:"text-white/40 text-xs",children:"إجÙ
اÙ٠اÙÙÙØ§Ø·"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2061",className:"text-yellow-300 font-bold",children:i.questions.reduce((He,dt)=>
1087He+dt.pointsBase,0).toLocaleString()})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2065",className:"text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2066",className:"text-white/40 text-xs",children:"Ù
ØªÙØ³Ø· اÙÙÙØª"}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2067",className:"text-blue-300 font-bold",children:[Math.round(i.questions.reduce((He,dt)=>He+dt.timeLimitSeconds,0)/i.questions.length),"Ø«"]})]})]})]})})})})]})});if(i.phase==="playing"&&Gr){const He=Gr.options?JSON.parse(Gr.options):[],dt=i.timeLeft/Gr.timeLimitSeconds*100;return s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2087",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 p-4 md:p-8",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2088",className:"max-w-4xl mx-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2089",className:"flex items-center justify-between mb-6",children:[s.jsxs(Ga,{"data-loc":"client/src/pages/GameHostPage.tsx:2090",className:"bg-white/20 text-white text-sm px-4 py-2",children:["سؤا٠",i.currentQuestionIndex+1," / ",i.questions.length]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2093",className:"flex items-center gap-2 bg-white/10 rounded-full px-4 py-2",children:[s.jsx(au,{"data-loc":"client/src/pages/GameHostPage.tsx:2094",className:"w-5 h-5 text-yellow-300"}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2095",className:`text-2xl font-black ${i.timeLeft<=5?"text-red-400 animate-pulse":"text-white"}`,children:i.timeLeft})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2099",className:"flex flex-col items-center gap-1 bg-white/10 rounded-xl px-4 py-2 min-w-[110px]",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2100",className:"flex items-center gap-1.5",children:[s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:2101",className:"w-4 h-4 text-green-400"}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2102",className:"text-white font-bold text-sm",children:[i.answerCount," / ",i.totalAnswerTarget||i.participants.length," أجاب"]})]}),(i.totalAnswerTarget||i.participants.length)>0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2107",className:"w-full bg-white/20 rounded-full h-1.5",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2108",className:"h-1.5 rounded-full bg-green-400 transition-all duration-500",style:{width:`${Math.min(100,i.answerCount/(i.totalAnswerTarget||i.participants.length)*100)}%`}})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2117",className:"flex justify-end gap-2 mb-3",children:[s.jsxs("button",{"data-loc":"client/src/pages/GameHostPage.tsx:2118",onClick:()=>window.open(`/game/projector/${i.session.id}`,"_blank"),className:"flex items-center gap-1.5 text-sm text-white/60 hover:text-white transition-colors bg-white/10 hover:bg-white/20 rounded-full px-3 py-1.5 border border-white/20",children:[s.jsx(Tpe,{"data-loc":"client/src/pages/GameHostPage.tsx:2122",className:"w-4 h-4 text-purple-300"}),"ÙØ¶Ø¹ Ø§ÙØ¹Ø±Ø¶ اÙÙØ¨Ùر"]}),s.jsxs("button",{"data-loc":"client/src/pages/GameHostPage.tsx:2125",onClick:()=>Sa(ve=>!ve),className:"flex items-center gap-1.5 text-sm text-white/60 hover:text-white transition-colors bg-white/10 rounded-full px-3 py-1.5",children:[s.jsx(aa,{"data-loc":"client/src/pages/GameHostPage.tsx:2129",className:"w-4 h-4 text-yellow-400"}),kt?"Ø¥Ø®ÙØ§Ø¡ Ø§ÙØµØ¯Ø§Ø±Ø©":"عرض Ø§ÙØµØ¯Ø§Ø±Ø©"]})]}),kt&&at.length>0&&s.jsxs(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:2134",className:"bg-white/10 border-white/20 mb-4",children:[s.jsx(nn,{"data-loc":"client/src/pages/GameHostPage.tsx:2135",className:"pb-2 pt-3 px-4",children:s.jsxs(sn,{"data-loc":"client/src/pages/GameHostPage.tsx:2136",className:"text-white text-sm flex items-center gap-2",children:[s.jsx(aa,{"data-loc":"client/src/pages/GameHostPage.tsx:2137",className:"w-4 h-4 text-yellow-400"}),"ÙÙØØ© Ø§ÙØµØ¯Ø§Ø±Ø© اÙÙ
باشرة"]})}),s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:2141",className:"px-4 pb-3",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2142",className:"space-y-1.5",children:at.slice(0,5).map((ve,st)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2144",className:`flex items-center gap-3 rounded-lg px-3 py-2 ${st===0?"bg-yellow-500/20":st===1?"bg-gray-400/15":st===2?"bg-orange-500/15":"bg-white/5"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2145",className:"text-white/60 font-bold w-5 text-center text-sm",children:st+1}),st===0&&s.jsx(Gs,{"data-loc":"client/src/pages/GameHostPage.tsx:2146",className:"w-4 h-4 text-yellow-400 shrink-0"}),st===1&&s.jsx(Sn,{"data-loc":"client/src/pages/GameHostPage.tsx:2147",className:"w-4 h-4 text-gray-300 shrink-0"}),st===2&&s.jsx(aa,{"data-loc":"client/src/pages/GameHostPage.tsx:2148",className:"w-4 h-4 text-orange-400 shrink-0"}),st>2&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2149",className:"w-4 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2150",className:"flex-1 text-white text-sm font-medium truncate",children:ve.displayName}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2151",className:"text-yellow-300 font-bold text-sm",children:ve.totalPoints.toLocaleStr
1087ing()})]},ve.id))})})]}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2158",className:"w-full bg-white/10 rounded-full h-2 mb-6",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2159",className:`h-2 rounded-full transition-all duration-1000 ${i.timeLeft<=5?"bg-red-500":"bg-yellow-400"}`,style:{width:`${dt}%`}})}),s.jsx(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:2164",className:"bg-white/15 border-white/20 mb-6",children:s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:2165",className:"p-8 text-center",children:s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2166",className:"text-white text-2xl md:text-3xl font-bold leading-relaxed",children:Gr.questionText})})}),He.length>0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2170",className:"grid grid-cols-2 gap-4 mb-6",children:He.map((ve,st)=>s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2172",className:`p-4 rounded-xl text-white font-bold text-center text-lg ${["bg-red-600","bg-blue-600","bg-yellow-600","bg-green-600"][st%4]}`,children:ve},st))}),i.lastAnswers.length>0&&s.jsx(ma,{"data-loc":"client/src/pages/GameHostPage.tsx:2179",className:"bg-white/10 border-white/20",children:s.jsx(fa,{"data-loc":"client/src/pages/GameHostPage.tsx:2180",className:"p-4",children:s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2181",className:"space-y-2",children:i.lastAnswers.map((ve,st)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2183",className:"flex items-center justify-between text-sm",children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2184",className:"text-white/80",children:ve.displayName}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2185",className:"flex items-center gap-2",children:[ve.isCorrect?s.jsx(cr,{"data-loc":"client/src/pages/GameHostPage.tsx:2186",className:"w-4 h-4 text-green-400"}):s.jsx(Rg,{"data-loc":"client/src/pages/GameHostPage.tsx:2186",className:"w-4 h-4 text-red-400"}),s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2187",className:ve.isCorrect?"text-green-400":"text-red-400",children:["+",ve.pointsEarned]})]})]},st))})})}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2195",className:"flex justify-center mt-6",children:s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:2196",onClick:()=>gr("host:next_question",{sessionId:i.session.id,questionIndex:i.currentQuestionIndex+1}),className:"bg-purple-500 hover:bg-purple-400 text-white font-bold px-8 py-3 text-lg rounded-xl",children:[s.jsx(Ov,{"data-loc":"client/src/pages/GameHostPage.tsx:2200",className:"w-5 h-5 ml-2"}),"Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"]})}),x!==null&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2206",className:"fixed inset-0 flex items-center justify-center pointer-events-none z-50",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2207",className:"bg-green-500/90 backdrop-blur-sm text-white rounded-3xl px-10 py-8 text-center shadow-2xl border border-green-400/50",children:[s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2208",className:"text-5xl mb-2",children:"â
"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2209",className:"text-xl font-bold mb-1",children:"أجاب Ø§ÙØ¬Ù
ÙØ¹!"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2210",className:"text-green-100 text-sm",children:"Ø§ÙØ§ÙØªÙØ§Ù Ø®ÙØ§Ù"}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2211",className:"text-6xl font-black text-white mt-2 tabular-nums",children:x})]})})]})})}return i.phase==="question_results"?s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2223",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 p-4 md:p-8 flex items-center justify-center",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2224",className:"text-center max-w-2xl w-full",children:[s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2225",className:"text-6xl mb-4",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/GameHostPage.tsx:2226",className:"text-3xl font-bold text-white mb-6",children:"ÙØªØ§Ø¦Ø¬ Ø§ÙØ³Ø¤Ø§Ù"}),Ca.length>0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2229",className:"grid grid-cols-2 gap-4 mb-6 max-w-md mx-auto",children:Ca.map((He,dt)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2231",className:`rounded-2xl p-4 border-2 text-center ${dt===0?"bg-blue-500/20 border-blue-400/50":"bg-red-500/20 border-red-400/50"}`,children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2232",className:"text-white font-bold text-lg",children:He.teamName}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2233",className:"text-yellow-300 font-black text-3xl",children:He.totalPoints.toLocaleStr
1087ing()}),s.jsxs("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2234",className:"text-white/50 text-xs",children:[He.memberCount," عضÙ"]})]},He.teamId))}),at.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2240",className:"space-y-2 mb-8",children:[s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2241",className:"text-white/50 text-sm mb-3",children:"ð Ø§ÙØªØ±ØªÙب Ø§ÙØØ§ÙÙ"}),at.slice(0,8).map((He,dt)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2243",className:`flex items-center gap-3 rounded-xl px-5 py-3 ${dt===0?"bg-yellow-500/25 border border-yellow-500/40":dt===1?"bg-gray-400/20 border border-gray-400/30":dt===2?"bg-orange-500/20 border border-orange-500/30":"bg-white/8 border border-white/10"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2244",className:"text-white/60 font-black w-6 text-center",children:dt+1}),dt===0&&s.jsx(Gs,{"data-loc":"client/src/pages/GameHostPage.tsx:2245",className:"w-5 h-5 text-yellow-400 shrink-0"}),dt===1&&s.jsx(Sn,{"data-loc":"client/src/pages/GameHostPage.tsx:2246",className:"w-5 h-5 text-gray-300 shrink-0"}),dt===2&&s.jsx(aa,{"data-loc":"client/src/pages/GameHostPage.tsx:2247",className:"w-5 h-5 text-orange-400 shrink-0"}),dt>2&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2248",className:"w-5 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2249",className:"flex-1 text-right text-white font-semibold",children:He.displayName}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2250",className:"text-yellow-300 font-black text-lg",children:He.totalPoints.toLocaleString()})]},He.id))]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:2255",onClick:()=>gr("host:next_question",{sessionId:i.session.id,questionIndex:i.currentQuestionIndex+1}),className:"bg-purple-500 hover:bg-purple-400 text-white font-bold px-10 py-4 text-xl rounded-2xl",children:[s.jsx(Ov,{"data-loc":"client/src/pages/GameHostPage.tsx:2259",className:"w-6 h-6 ml-2"}),"Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"]})]})}):i.phase==="finished"?s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2270",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 p-4 md:p-8",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2271",className:"max-w-2xl mx-auto text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2272",className:"text-6xl mb-4",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/GameHostPage.tsx:2273",className:"text-4xl font-bold text-white mb-2",children:"Ø§ÙØªÙت اÙÙ
Ø³Ø§Ø¨ÙØ©!"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2274",className:"text-white/60 mb-6",children:"اÙÙØªØ§Ø¦Ø¬ اÙÙÙØ§Ø¦ÙØ©"}),qu.length>0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2277",className:"grid grid-cols-2 gap-4 mb-6 max-w-md mx-auto",children:qu.map((He,dt)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2279",className:`rounded-2xl p-5 border-2 text-center ${dt===0?"bg-yellow-500/25 border-yellow-400/60 scale-105":"bg-white/10 border-white/20"}`,children:[dt===0&&s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2280",className:"text-2xl mb-1",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2281",className:"text-white font-bold text-lg",children:He.teamName}),s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2282",className:"text-yellow-300 font-black text-3xl",children:He.totalPoints.toLocaleString()}),dt===0&&s.jsx("p",{"data-loc":"client/src/pages/GameHostPage.tsx:2283",className:"text-yellow-300/70 text-xs mt-1",children:"اÙÙØ±Ù٠اÙÙØ§Ø¦Ø²"})]},He.teamId))}),s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2288",className:"space-y-3 mb-8",children:i.participants.slice(0,10).map((He,dt)=>s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2290",className:`flex items-center gap-3 rounded-2xl px-4 py-3 ${dt===0?"bg-yellow-500/20 border border-yellow-500/40":dt===1?"bg-gray-400/20 border border-gray-400/40":dt===2?"bg-orange-500/20 border border-orange-500/40":"bg-white/10 border border-white/10"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2291",className:"text-xl font-black text-white w-7 shrink-0",children:dt+1}),dt===0&&s.jsx(Gs,{"data-loc":"client/src/pages/GameHostPage.tsx:2292",className:"w-5 h-5 text-yellow-400 shrink-0"}),dt===1&&s.jsx(Sn,{"data-loc":"client/src/pages/GameHostPage.tsx:2293",className:"w-5 h-5 text-gray-300 shrink-0"}),dt===2&&s.jsx(aa,{"data-loc":"client/src/pages/GameHostPage.tsx:2294",className:"w-5 h-5 text-orange-400 shrink-0"}),dt>2&&s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2295",className:"w-5 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2296",className:"flex-1 text-right text-white font-bold",children:He.dis
vendor: 5,312 bytes, line 1087
1087playName}),He.totalAnswers!==void 0&&He.totalAnswers>0&&s.jsxs("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2299",className:`text-xs font-semibold px-2 py-0.5 rounded-full shrink-0 ${(He.correctPct??0)>=70?"bg-green-500/30 text-green-300":(He.correctPct??0)>=40?"bg-yellow-500/30 text-yellow-300":"bg-red-500/30 text-red-300"}`,children:[He.correctAnswers,"/",He.totalAnswers," â"]}),s.jsx("span",{"data-loc":"client/src/pages/GameHostPage.tsx:2303",className:"text-yellow-300 font-black text-lg shrink-0",children:He.totalPoints.toLocaleString()})]},He.id))}),s.jsxs("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2307",className:"flex flex-col sm:flex-row gap-3 justify-center",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:2308",onClick:()=>{const He=i.session?.id,dt=He?`${window.location.origin}/game/results/${He}`:window.location.href;navigator.share?navigator.share({title:`ÙØªØ§Ø¦Ø¬ Ù
Ø³Ø§Ø¨ÙØ©: ${i.session?.title??""}`,url:dt}):(navigator.clipboard.writeText(dt),re.success("تÙ
ÙØ³Ø® رابط اÙÙØªØ§Ø¦Ø¬!"))},variant:"outline",className:"border-white/30 text-white hover:bg-white/10 font-bold px-6 py-3 rounded-2xl",children:[s.jsx(Lr,{"data-loc":"client/src/pages/GameHostPage.tsx:2322",className:"w-5 h-5 ml-2"}),"Ù
Ø´Ø§Ø±ÙØ© اÙÙØªØ§Ø¦Ø¬"]}),s.jsx(Ie,{"data-loc":"client/src/pages/GameHostPage.tsx:2325",onClick:ld,className:"bg-purple-500 hover:bg-purple-400 text-white font-bold px-10 py-3 text-lg rounded-2xl",children:"Ù
Ø³Ø§Ø¨ÙØ© Ø¬Ø¯ÙØ¯Ø©"})]})]})}):s.jsx("div",{"data-loc":"client/src/pages/GameHostPage.tsx:2335",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 flex items-center justify-center",dir:"rtl",children:s.jsx(Ta,{"data-loc":"client/src/pages/GameHostPage.tsx:2336",className:"w-8 h-8 animate-spin text-white"})})}var x5="rovingFocusGroup.onEntryFocus",eze={bubbles:!1,cancelable:!0},ub="RovingFocusGroup",[TT,Zee,tze]=E8(ub),[aze,gw]=Pi(ub,[tze]),[nze,sze]=aze(ub),Jee=P.forwardRef((e,t)=>s.jsx(TT.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(TT.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(rze,{...e,ref:t})})}));Jee.displayName=ub;var rze=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:a,orientation:n,loop:r=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...f}=e,h=P.useRef(null),x=Va(t,h),b=cw(i),[y,w]=fu({prop:o,defaultProp:l??null,onChange:c,caller:ub}),[j,N]=P.useState(!1),k=$i(d),D=Zee(a),C=P.useRef(!1),[S,A]=P.useState(0);return P.useEffect(()=>{const E=h.current;if(E)return E.addEventListener(x5,k),()=>E.removeEventListener(x5,k)},[k]),s.jsx(nze,{scope:a,orientation:n,dir:b,loop:r,currentTabStopId:y,onItemFocus:P.useCallback(E=>w(E),[w]),onItemShiftTab:P.useCallback(()=>N(!0),[]),onFocusableItemAdd:P.useCallback(()=>A(E=>E+1),[]),onFocusableItemRemove:P.useCallback(()=>A(E=>E-1),[]),children:s.jsx(Zt.div,{tabIndex:j||S===0?-1:0,"data-orientation":n,...f,ref:x,style:{outline:"none",...e.style},onMouseDown:Nt(e.onMouseDown,()=>{C.current=!0}),onFocus:Nt(e.onFocus,E=>{const R=!C.current;if(E.target===E.currentTarget&&R&&!j){const F=new CustomEvent(x5,eze);if(E.currentTarget.dispatchEvent(F),!F.defaultPrevented){const I=D().filter(B=>B.focusable),H=I.find(B=>B.active),_=I.find(B=>B.id===y),W=[H,_,...I].filter(Boolean).map(B=>B.ref.current);ate(W,m)}}C.current=!1}),onBlur:Nt(e.onBlur,()=>N(!1))})})}),ete="RovingFocusGroupItem",tte=P.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:a,focusable:n=!0,active:r=!1,tabStopId:i,children:o,...l}=e,c=Vi(),d=i||c,m=sze(ete,a),f=m.currentTabStopId===d,h=Zee(a),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:y}=m;return P.useEffect(()=>{if(n)return x(),()=>b()},[n,x,b]),s.jsx(TT.ItemSlot,{scope:a,id:d,focusable:n,active:r,children:s.jsx(Zt.span,{tabIndex:f?0:-1,"data-orientation":m.orientation,...l,ref:t,onMouseDown:Nt(e.onMouseDown,w=>{n?m.onItemFocus(d):w.preventDefault()}),onFocus:Nt(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:Nt(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){m.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const j=lze(w,m.orientation,m.dir);if(j!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let k=h().filter(D=>D.focusable).map(D=>D.ref.current);if(j==="last")k.reverse();else if(j==="prev"||j==="next"){j==="prev"&&k.reverse();const D=k.indexOf(w.currentTarget);k=m.loop?cze(k,D+1):k.slice(D+1)}setTimeout(()=>ate(k))}}),children:typeof o=="function"?o({isCurrentTabStop:f,hasTabStop:y!=null}):o})})});tte.displayName=ete;var ize={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function oze(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function lze(e,t,a){const n=oze(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ize[n]}function ate(e,t=!1){const a=document.activeElement;for(const n of e)if(n===a||(n.focus({preventScroll:t}),document.activeElement!==a))return}function cze(e,t){return e.map((a,n)=>e[(t+n)%e.length])}var nte=Jee,ste=tte,xw="Tabs",[dze]=Pi(xw,[gw]),rte=gw(),[uze,B8]=dze(xw),ite=P.forwardRef((e,t)=>
1087{const{__scopeTabs:a,value:n,onValueChange:r,defaultValue:i,orientation:o="horizontal",dir:l,activationMode:c="automatic",...d}=e,m=cw(l),[f,h]=fu({prop:n,onChange:r,defaultProp:i??"",caller:xw});return s.jsx(uze,{scope:a,baseId:Vi(),value:f,onValueChange:h,orientation:o,dir:m,activationMode:c,children:s.jsx(Zt.div,{dir:m,"data-orientation":o,...d,ref:t})})});ite.displayName=xw;var ote="TabsList",lte=P.forwardRef((e,t)=>{const{__scopeTabs:a,loop:n=!0,...r}=e,i=B8(ote,a),o=rte(a);return s.jsx(nte,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:s.jsx(Zt.div,{role:"tablist","aria-orientation":i.orientation,...r,ref:t})})});lte.displayName=ote;var cte="TabsTrigger",dte=P.forwardRef((e,t)=>{const{__scopeTabs:a,value:n,disabled:r=!1,...i}=e,o=B8(cte,a),l=rte(a),c=mte(o.baseId,n),d=fte(o.baseId,n),m=n===o.value;return s.jsx(ste,{asChild:!0,...l,focusable:!r,active:m,children:s.jsx(Zt.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:c,...i,ref:t,onMouseDown:Nt(e.onMouseDown,f=>{!r&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:Nt(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:Nt(e.onFocus,()=>{const f=o.activationMode!=="manual";!m&&!r&&f&&o.onValueChange(n)})})})});dte.displayName=cte;var ute="TabsContent",pte=P.forwardRef((e,t)=>{const{__scopeTabs:a,value:n,forceMount:r,children:i,...o}=e,l=B8(ute,a),c=mte(l.baseId,n),d=fte(l.baseId,n),m=n===l.value,f=P.useRef(m);return P.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),s.jsx(eo,{present:r||m,children:({present:h})=>s.jsx(Zt.div,{"data-state":m?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!h,id:d,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&i})})});pte.displayName=ute;function mte(e,t){return`${e}-trigger-${t}`}function fte(e,t){return`${e}-content-${t}`}var pze=ite,mze=lte,fze=dte,hze=pte;function bw({className:e,...t}){return s.jsx(pze,{"data-loc":"client/src/components/ui/tabs.tsx:11","data-slot":"tabs",className:zt("flex flex-col gap-2",e),...t})}function vw({className:e,...t}){return s.jsx(mze,{"data-loc":"client/src/components/ui/tabs.tsx:24","data-slot":"tabs-list",className:zt("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function ms({className:e,...t}){return s.jsx(fze,{"data-loc":"client/src/components/ui/tabs.tsx:40","data-slot":"tabs-trigger",className:zt("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function fs({className:e,...t}){return s.jsx(hze,{"data-loc":"client/src/components/ui/tabs.tsx:56","data-slot":"tabs-content",className:zt("flex-1 outline-none",e),...t})}function gze(){const{id:e}=Ol(),[,t]=Mo(),{user:a}=Ma(),n=P.useRef(null),[r,i]=P.useState(null),[o,l]=P.useState(0),[c,d]=P.useState(0),[m,f]=P.useState(30),[h,x]=P.useState(!1),[b,y]=P.useState(0),[w,j]=P.useState(0),[N,k]=P.useState([]),[D,C]=P.useState(!1),[S,A]=P.useState("question"),[E,R]=P.useState(null),[F,I]=P.useState({correct:0,wrong:0}),[H,_]=P.useState(""),V=P.useRef(null),[W,B]=P.useState([]),[K,ae]=P.useState(null),[$,Z]=P.useState(!1),O=J.game.generateShareLink.useMutation({onSuccess:({token:Ce})=>{ae(Ce);const Te=`${window.location.origin}/game/share/${Ce}`;navigator.clipboard.writeText(Te).then(()=>{Z(!0),re.success("تÙ
ÙØ³Ø® رابط اÙÙØªØ§Ø¦Ø¬!"),setTimeout(()=>Z(!1),3e3)})},onError:()=>re.error("ØªØ¹Ø°ÙØ± Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ±Ø§Ø¨Ø·")}),Y=()=>{if(K){const Ce=`${window.location.origin}/game/share/${K}`;navigator.clipboard.writeText(Ce).then(()=>{Z(!0),re.success("تÙ
ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·!"),setTimeout(()=>Z(!1),3e3)})}else O.mutate({sessionId:Q})},Q=parseInt(e??"0"),{data:U}=J.game.getById.useQuery({id:Q},{enabled:Q>0}),{data:oe}=J.game.getQuestions.useQuery({sessionId:Q},{enabled:Q>0}),{data:X}=J.game.getParticipants.useQuery({sessionId:Q},{refetchInterval:3e3}),{data:ne}=J.game.getSpeedLeaderboard.useQuery({sessionId:Q},{enabled:Q>0&&S==="finished"}),{data:ge}=J.game.getStats.useQuery({sessionId:Q},{enabled:Q>0&&S==="finished"});P.useEffect(()=>{ne&&B(ne)},[ne]),P.useEffect(()=>{U&&_(U.title??""),oe&&d(oe.length),X&&j(X.length)},[U,oe,X]),P.useEffect(()=>{if(!Q||!a)return;const Ce=lu({path:"/socket.io",transports:["websocket","polling"]});return n.current=Ce,Ce.on("connect",()=>{Ce.emit("host:join",{sessionId:Q,userId:a.id})}),Ce.on("participant:answered",({answeredCount:Te,totalParticipants:Ke})=>{y(Te),j(Ke)}),Ce.on("buzzer:pressed",({displayName:Te})=>{R(Te),V.current&&clearInterval(V.current),x(!1)}),Ce.on("leaderboard:update",Te=>{k(Te)}),Ce.on("game:ended",()=>{A("finished")}),()=>{Ce.disconnect()}},[Q,a]);const me=P.useCallback(Ce=>{f(Ce),x(!0),V.current&&clearInterval(V.current),V.current=setInterval(()=>{f(Te=>Te<=1?(clearInterval(V.current),x(!1),A("answer_reveal"),C(!0),0):Te-1)},1e3)},[]),Ae=P.useCallback(()=>
1087{if(!oe||o>=oe.length)return;const Ce=oe[o],Te={...Ce,questionType:Ce.questionType,options:Ce.options?typeof Ce.options=="string"?JSON.parse(Ce.options):Ce.options:void 0};i(Te),C(!1),R(null),y(0),A("question"),n.current?.emit("host:start_question",{sessionId:Q,questionId:Te.id,questionIndex:o,question:Te,timeLimitSeconds:Te.timeLimitSeconds}),me(Te.timeLimitSeconds)},[oe,o,Q,me]),Pe=P.useCallback(()=>{r&&(V.current&&clearInterval(V.current),x(!1),C(!0),A("answer_reveal"),n.current?.emit("host:reveal_answer",{sessionId:Q,questionId:r.id,correctAnswer:r.correctAnswer}))},[r,Q]),L=P.useCallback(()=>{if(!oe)return;const Ce=o+1;Ce>=oe.length?(A("leaderboard"),n.current?.emit("host:end_game",{sessionId:Q})):(l(Ce),A("question"),i(null))},[oe,o,Q]),ke=P.useCallback(()=>{n.current?.emit("host:end_game",{sessionId:Q}),A("finished"),t("/game")},[Q,t]),Me=r?m/r.timeLimitSeconds*100:100,Ze=Me>50?"bg-emerald-500":Me>25?"bg-amber-500":"bg-red-500";return S==="finished"?s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:255",className:"min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex items-center justify-center p-6",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:256",className:"text-center text-white max-w-2xl w-full",children:[s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:257",className:"text-8xl mb-6",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/GamePlayPage.tsx:258",className:"text-4xl font-bold mb-4",children:"Ø§ÙØªÙت اÙÙ
Ø³Ø§Ø¨ÙØ©!"}),s.jsx("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:259",className:"text-xl text-purple-200 mb-8",children:"Ø´ÙØ±Ø§Ù ÙØ¬Ù
ÙØ¹ اÙÙ
شارÙÙÙ"}),s.jsxs(bw,{"data-loc":"client/src/pages/GamePlayPage.tsx:260",defaultValue:"points",className:"w-full mb-8 text-right",children:[s.jsxs(vw,{"data-loc":"client/src/pages/GamePlayPage.tsx:261",className:"w-full bg-white/10 mb-4",children:[s.jsx(ms,{"data-loc":"client/src/pages/GamePlayPage.tsx:262",value:"points",className:"flex-1 data-[state=active]:bg-yellow-500 data-[state=active]:text-black",children:"ð ÙÙØØ© اÙÙÙØ§Ø·"}),s.jsx(ms,{"data-loc":"client/src/pages/GamePlayPage.tsx:265",value:"speed",className:"flex-1 data-[state=active]:bg-cyan-500 data-[state=active]:text-black",children:"â¡ ÙÙØØ© Ø§ÙØ³Ø±Ø¹Ø©"}),s.jsx(ms,{"data-loc":"client/src/pages/GamePlayPage.tsx:268",value:"stats",className:"flex-1 data-[state=active]:bg-purple-500 data-[state=active]:text-white",children:"ð Ø¥ØØµØ§Ø¦Ùات"})]}),s.jsx(fs,{"data-loc":"client/src/pages/GamePlayPage.tsx:272",value:"points",children:N.length>0?s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:274",className:"bg-white/10 backdrop-blur rounded-2xl p-6",children:s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:275",className:"space-y-3",children:N.slice(0,5).map((Ce,Te)=>s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:277",className:`flex items-center gap-4 p-3 rounded-xl ${Te===0?"bg-yellow-500/20 border border-yellow-500/50":Te===1?"bg-gray-400/20 border border-gray-400/50":Te===2?"bg-amber-700/20 border border-amber-700/50":"bg-white/5"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:278",className:"text-2xl font-bold w-8",children:Te===0?"ð¥":Te===1?"ð¥":Te===2?"ð¥":`${Te+1}`}),s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:279",className:"flex-1 text-right font-semibold",children:Ce.displayName}),Ce.teamName&&s.jsx(Ga,{"data-loc":"client/src/pages/GamePlayPage.tsx:280",style:{backgroundColor:Ce.teamColor??"#6366f1"},children:Ce.teamName}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:281",className:"font-bold text-yellow-400",children:[Ce.totalPoints.toLocaleString()," ÙÙØ·Ø©"]})]},Ce.participantId))})}):s.jsx("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:286",className:"text-purple-300",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات"})}),s.jsx(fs,{"data-loc":"client/src/pages/GamePlayPage.tsx:288",value:"speed",children:s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:289",className:"bg-white/10 backdrop-blur rounded-2xl p-6",children:[s.jsx("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:290",className:"text-cyan-300 text-sm mb-4 text-center",children:"Ù
Ø±ØªÙØ¨ÙÙ ØØ³Ø¨ Ù
ØªÙØ³Ø· ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© (Ø§ÙØ£Ø³Ø±Ø¹ Ø£ÙÙØ§Ù)"}),W.length>0?s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:292",className:"space-y-3",children:W.slice(0,5).map((Ce,Te)=>{const Ke=(Ce.avgResponseMs/1e3).toFixed(2);return s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:296",className:`flex items-center gap-4 p-3 rounded-xl ${Te===0?"bg-cyan-500/20 border border-cyan-500/50":Te===1?"bg-cyan-400/15 border border-cyan-400/30":Te===2?"bg-cyan-300/10 border border-cyan-300/20":"bg-white/5"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:297",className:"text-2xl font-bold w-8",children:Te===0?"â¡":Te===1?"ð¥":Te===2?"ð¨":`${Te+1}`}),s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:298",className:"flex-1 text-right font-semibold",children:Ce.displayName}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:299",className:"text-left",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:300",className:"text-cyan-300 font-bold text-lg",children:[Ke,"Ø«"]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:301",className:"text-xs text-white/50",children:[Ce.correctCount," إجابة صØÙØØ©",Ce.fastAnswers>0?` · ${Ce.fastAnswers} Ø®Ø§Ø·ÙØ©`:""]})]})]},Ce.participantId)})}):s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:308",className:"text-center py-8 text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:309",className:"text-4xl mb-2",children:"â¡"}),s.jsx("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:310",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات سرعة بعد"})]})]})}),s.jsx(fs,{"data-loc":"client/src/pages/GamePlayPage.tsx:315",value:"stats",children:ge?s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:317",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:319",className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:320",className:"bg-white/10 rounded-xl p-3 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:321",className:"text-2xl font-bold text-yellow-400",children:ge.overallStats.totalParticipants}),s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:322",className:"text-xs text-white/60 mt-1",children:"Ù
شارÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:324",className:"bg-white/10 rounded-xl p-3 text-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:325",className:"text-2xl font-bold text-green-400",children:[ge.overallStats.overallCorrectPct,"%"]}),s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:326",className:"text-xs text-white/60 mt-1",children:"Ù
Ø¹Ø¯Ù Ø§ÙØµØØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:328",className:"bg-white/10 rounded-xl p-3 text-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:329",className:"text-2xl font-bold text-cyan-400",children:[(ge.overallStats.avgResponseMs/1e3).toFixed(1),"Ø«"]}),s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:330",className:"text-xs text-white/60 mt-1",children:"Ù
ØªÙØ³Ø· اÙÙÙØª"})]})]}),ge.hardestQuestions.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:335",className:"bg-red-900/30 border border-red-500/30 rounded-xl p-4 text-right",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:336",className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:337",className:"text-red-400 text-lg",children:"ð¥"}),s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:338",className:"text-red-300 font-bold text-sm",children:"أصعب سؤاÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:339",className:"mr-auto text-red-400 text-xs font-bold",children:[ge.hardestQuestions[0].correctPct,"% Ø£Ø¬Ø§Ø¨ÙØ§ صØ"]})]}),s.jsx("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:341",className:"text-white font-semibold text-sm leading-relaxed",children:ge.hardestQuestions[0].questionText}),s.jsxs("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:342",className:"text-green-300 text-xs mt-1",children:["â Ø§Ùإجابة Ø§ÙØµØÙØØ©: ",ge.hardestQuestions[0].correctAnswer]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:346",className:"bg-white/10 rounded-xl p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:347",className:"flex items-center gap-2 mb-3",children:[s.jsx(pl,{"data-loc":"client/src/pages/GamePlayPage.tsx:348",size:16,className:"text-purple-300"}),s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:349",className:"text-purple-200 font-bold text-sm",children:"Ù
Ø¹Ø¯Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ© ÙÙ٠سؤاÙ"})]}),s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:351",className:"space-y-2 max-h-64 overflow-y-auto",children:ge.questionStats.sort((Ce,Te)=>Ce.orderIndex-Te.orderIndex).map((Ce,Te)=>s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:353",className:"text-right",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:354",className:"flex items-center justify-between mb-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:355",className:"flex items-center gap-1",children:[s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:356",className:`text-xs px-1.5 py-0.5 rounded font-bold ${Ce.difficulty==="hard"?"bg-red-500/30 text-red-300":Ce.difficulty==="medium"?"bg-yellow-500/30 text-yellow-300":"bg-green-500/30 text-green-300"}`,children:Ce.difficulty==="hard"?"صعب":Ce.difficulty==="medium"?"Ù
ØªÙØ³Ø·":"سÙÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:359",className:"text-white/50 text-xs",children:[Ce.correctAnswers,"/",Ce.totalAnswers]})]}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:361",className:"text-white text-xs font-medium truncate max-w-[55%]",children:["س",Te+1,": ",Ce.questionText.slice(0,40),Ce.questionText.length>40?"...":""]})]}),s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:363",className:"w-full bg-white/10 rounded-full h-2",children:s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:364",className:`h-2 rounded-full transition-all ${Ce.correctPct>=70?"bg-green-500":Ce.correctPct>=40?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Ce.correctPct}%`}})}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:369",className:"text-left text-xs text-white/40 mt-0.5",children:[Ce.correctPct,"%"]})]},Ce.questionId))})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:376",className:"text-center py-8 text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:377",className:"text-4xl mb-2 animate-spin",children:"â³"}),s.jsx("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:378",children:"جار٠تØÙ
ÙÙ Ø§ÙØ¥ØØµØ§Ø¦Ùات..."})]})})]}),s.jsx(Ie,{"data-loc":"client/src/pages/GamePlayPage.tsx:383",onClick:()=>t("/game"),size:"lg",className:"bg-white text-purple-900 hover:bg-purple-100",children:"Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©"}),s.jsxs(Ie,{"data-loc":"client/src/pages/GamePlayPage.tsx:386",onClick:Y,size:"lg",variant:"outline",className:"border-purple-400 text-purple-200 hover:bg-purple-500/20 mr-3",disabled:O.isPending,children:[$?s.jsx(Ir,{"data-loc":"client/src/pages/GamePlayPage.tsx:393",size:18,className:"ml-2 text-green-400"}):s.jsx(Lr,{"data-loc":"client/src/pages/GamePlayPage.tsx:393",size:18,className:"ml-2"}),O.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ùشاء...":$?"تÙ
اÙÙØ³Ø®!":"Ù
Ø´Ø§Ø±ÙØ© اÙÙØªØ§Ø¦Ø¬"]}),K&&s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:397",className:"mt-4 bg-white/10 rounded-xl p-3 flex items-center gap-2 text-sm text-purple-200 max-w-md mx-auto",children:[s.jsx(o2,{"data-loc":"client/src/pages/GamePlayPage.tsx:398",size:14,className:"shrink-0 text-purple-400"}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:399",className:"truncate text-xs",children:[window.location.origin,"/game/share/",K]})]})]})}):s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:408",className:"min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 text-white",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:410",className:"bg-black/30 backdrop-blur px-6 py-3 flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:411",className:"flex items-center gap-3",children:[s.jsx(vs,{"data-loc":"client/src/pages/GamePlayPage.tsx:412",className:"text-yellow-400",size:24}),s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:413",className:"font-bold text-lg",children:H})]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:415",className:"flex items-center gap-4 text-sm",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:416",className:"flex items-center gap-1",children:[s.jsx(ln,{"data-loc":"client/src/pages/GamePlayPage.tsx:417",size:16,className:"text-purple-300"}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:418",children:[w," Ù
شارÙ"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:420",className:"flex items-center gap-1",children:[s.jsx(Sn,{"data-loc":"client/src/pages/GamePlayPage.tsx:421",size:16,className:"text-yellow-400"}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:422",children:["س ",o+1,"/",c]})]})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GamePlayPage.tsx:425",onClick:ke,variant:"outline",size:"sm",className:"border-red-500/50 text-red-400 hover:bg-red-500/20",children:[s.jsx(ppe,{"data-loc":"client/src/pages/GamePlayPage.tsx:426",size:16,className:"ml-1"})," Ø¥ÙÙØ§Ø¡"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:430",className:"container max-w-5xl mx-auto p-6",children:[!r&&S==="question"&&s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:433",className:"text-center py-20",children:[s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:434",className:"text-6xl mb-6",children:"ð®"}),s.jsx("h2",{"data-loc":"client/src/pages/GamePlayPage.tsx:435",className:"text-3xl font-bold mb-4",children:o===0?"ابدأ اÙÙ
Ø³Ø§Ø¨ÙØ©!":`Ø§ÙØ³Ø¤Ø§Ù ${o+1}`}),s.jsxs("p",{"data-loc":"client/src/pages/GamePlayPage.tsx:438",className:"text-purple-200 mb-8",children:[w," Ù
Ø´Ø§Ø±Ù Ø¬Ø§ÙØ²"]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GamePlayPage.tsx:439",onClick:Ae,size:"lg",className:"bg-yellow-500 hover:bg-yellow-400 text-black font-bold text-xl px-12 py-6",children:[s.jsx(Qp,{"data-loc":"client/src/pages/GamePlayPage.tsx:440",size:24,className:"ml-2"}),o===0?"ابدأ Ø§ÙØ¢Ù!":"Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"]})]}),r&&s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:448",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:450",className:"bg-black/30 rounded-2xl p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:451",className:"flex items-center justify-between mb-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:452",className:"flex items-center gap-2",children:[s.jsx(xi,{"data-loc":"client/src/pages/GamePlayPage.tsx:453",size:20,className:h?"text-yellow-400 animate-pulse":"text-gray-400"}),s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:454",className:`text-3xl font-bold ${m<=10?"text-red-400":"text-white"}`,children:[m,"s"]}
1087)]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:456",className:"text-sm text-purple-200",children:["أجاب ",b,"/",w]})]}),s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:460",className:"w-full bg-white/10 rounded-full h-3 overflow-hidden",children:s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:461",className:`h-full transition-all duration-1000 ${Ze}`,style:{width:`${Me}%`}})})]}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:466",className:"bg-white/10 backdrop-blur rounded-2xl p-8 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:467",className:"text-sm text-purple-300 mb-2",children:r.questionType==="multiple_choice"?"Ø§Ø®ØªÙØ§Ø± Ù
Ù Ù
تعدد":r.questionType==="true_false"?"ØµØ Ø£Ù
خطأ":"سؤا٠Ù
ÙØªÙØ (Buzzer)"}),s.jsx("h2",{"data-loc":"client/src/pages/GamePlayPage.tsx:471",className:"text-3xl font-bold leading-relaxed",children:r.questionText})]}),E&&s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:476",className:"bg-yellow-500/20 border border-yellow-500 rounded-2xl p-4 text-center animate-pulse",children:s.jsxs("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:477",className:"text-2xl font-bold text-yellow-400",children:["â¡ ",E," ضغط اÙÙ Buzzer Ø£ÙÙØ§Ù!"]})}),r.questionType==="multiple_choice"&&r.options&&s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:483",className:"grid grid-cols-2 gap-4",children:r.options.map((Ce,Te)=>{const Ke=D&&Ce===r.correctAnswer,Ve=["bg-red-500/20 border-red-500/50","bg-blue-500/20 border-blue-500/50","bg-yellow-500/20 border-yellow-500/50","bg-green-500/20 border-green-500/50"],ht=["ð´","ðµ","ð¡","ð¢"];return s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:489",className:`p-4 rounded-xl border-2 text-center font-semibold text-lg transition-all ${Ve[Te]} ${Ke?"ring-4 ring-green-400 scale-105":""}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:490",className:"ml-2",children:ht[Te]}),Ce,Ke&&s.jsx(bn,{"data-loc":"client/src/pages/GamePlayPage.tsx:492",className:"inline mr-2 text-green-400",size:20})]},Te)})}),r.questionType==="true_false"&&s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:501",className:"grid grid-cols-2 gap-4",children:["صØ","خطأ"].map(Ce=>{const Te=D&&Ce===r.correctAnswer;return s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:505",className:`p-6 rounded-xl border-2 text-center font-bold text-2xl ${Ce==="صØ"?"bg-green-500/20 border-green-500/50":"bg-red-500/20 border-red-500/50"} ${Te?"ring-4 ring-yellow-400 scale-105":""}`,children:[Ce==="صØ"?"â
صØ":"â Ø®Ø·Ø£",Te&&s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:507",className:"text-sm text-yellow-400 mt-1",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©"})]},Ce)})}),D&&s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:516",className:"bg-green-500/20 border border-green-500 rounded-2xl p-4 text-center",children:s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:517",className:"flex items-center justify-center gap-2 text-green-400 font-bold text-xl",children:[s.jsx(bn,{"data-loc":"client/src/pages/GamePlayPage.tsx:518",size:24}),"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©: ",s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:519",className:"text-white",children:r.correctAnswer})]})}),s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:525",className:"flex gap-4 justify-center",children:[!D&&S==="question"&&s.jsxs(Ie,{"data-loc":"client/src/pages/GamePlayPage.tsx:527",onClick:Pe,className:"bg-amber-500 hover:bg-amber-400 text-black font-bold",children:[s.jsx(r2,{"data-loc":"client/src/pages/GamePlayPage.tsx:528",size:20,className:"ml-1"})," ÙØ´Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"]}),(D||S==="answer_reveal")&&s.jsxs(Ie,{"data-loc":"client/src/pages/GamePlayPage.tsx:532",onClick:L,className:"bg-purple-500 hover:bg-purple-400 font-bold",children:[s.jsx(Ov,{"data-loc":"client/src/pages/GamePlayPage.tsx:533",size:20,className:"ml-1"}),o+1>=c?"عرض اÙÙØªØ§Ø¦Ø¬ اÙÙÙØ§Ø¦ÙØ©":"Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"]})]})]}),N.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:543",className:"mt-8 bg-black/30 backdrop-blur rounded-2xl p-6",children:[s.jsxs("h3",{"data-loc":"client/src/pages/GamePlayPage.tsx:544",className:"font-bold text-lg mb-4 flex items-center gap-2",children:[s.jsx(Gs,{"data-loc":"client/src/pages/GamePlayPage.tsx:545",className:"text-yellow-400"})," اÙÙ
تصدرÙÙ Ø§ÙØØ§ÙÙÙÙ"]}),s.jsx("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:547",className:"space-y-2",children:N.slice(0,5).map((Ce,Te)=>s.jsxs("div",{"data-loc":"client/src/pages/GamePlayPage.tsx:549",className:"flex items-center gap-3 bg-white/5 rounded-lg px-4 py-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:550",className:"font-bold text-yellow-400 w-6",children:Te+1}),s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:551",className:"flex-1",children:Ce.displayName}),Ce.teamName&&s.jsx(Ga,{"data-loc":"client/src/pages/GamePlayPage.tsx:552",style:{backgroundColor:Ce.teamColor??"#6366f1"},className:"text-xs",children:Ce.teamName}),s.jsx("span",{"data-loc":"client/src/pages/GamePlayPage.tsx:553",className:"font-bold text-yellow-400",children:Ce.totalPoints.toLocaleStr
1087ing()})]},Ce.participantId))})]})]})]})}const hte="athar_game_progress_v1:",cu="athar_game_latest_progress_v1",xze=720*60*1e3;function G8(){if(typeof window>"u")return null;try{return window.localStorage}catch{return null}}function DT(e){if(!e||typeof e!="object")return!1;const t=e;return t.version===1&&typeof t.sessionId=="number"&&typeof t.pin=="string"&&typeof t.sessionTitle=="string"&&typeof t.phase=="string"&&typeof t.teamMode=="string"&&typeof t.savedAt=="number"}function bze(e,t=Date.now()){return t-e.savedAt>xze}function vze(e,t=G8()){if(!t)return;const a=JSON.stringify(e);t.setItem(`${hte}${e.sessionId}`,a),t.setItem(cu,a)}function eU(e=G8(),t=Date.now()){if(!e)return null;try{const a=e.getItem(cu);if(!a)return null;const n=JSON.parse(a);return!DT(n)||bze(n,t)?(DT(n)?ET(n.sessionId,e):e.removeItem(cu),null):n}catch{return e.removeItem(cu),null}}function ET(e,t=G8()){if(t){t.removeItem(`${hte}${e}`);try{const a=t.getItem(cu),n=a?JSON.parse(a):null;DT(n)&&n.sessionId===e&&t.removeItem(cu)}catch{t.removeItem(cu)}}}function yze(e){return e==="join"||e==="question"||e==="answer_correct"||e==="answer_wrong"||e==="next_question"||e==="countdown"||e==="offline"||e==="performance_excellent"||e==="performance_good"||e==="performance_focus"||e==="finished"?e:null}function wze(e){const t=Number(e);return Number.isFinite(t)?Math.min(60,Math.max(1,Math.round(t))):5}function Pze(e){return e==="reconnecting"||e==="offline"?e:"connected"}function jze(e){return["excellentTitle","excellentBody","goodTitle","goodBody","focusTitle","focusBody"].reduce((a,n)=>{const r=e.get(`message_${n}`);return r?.trim()&&(a[n]=r.trim()),a},{})}function kze(){const e="manus_game_guest_token";let t=localStorage.getItem(e);return t||(t=`guest_${Date.now()}_${Math.random().toString(36).slice(2,10)}`,localStorage.setItem(e,t)),t}function Nze(){return localStorage.getItem("manus_game_guest_name")??""}function Aze(e){localStorage.setItem("manus_game_guest_name",e)}function Sze(e,t={}){const a=Yee(t);return e==="performance_excellent"?{title:a.excellentTitle,body:a.excellentBody,tone:"emerald"}:e==="performance_good"?{title:a.goodTitle,body:a.goodBody,tone:"cyan"}:{title:a.focusTitle,body:a.focusBody,tone:"amber"}}function Cze({screen:e,countdownSeconds:t=5,actualConnection:a="connected",customMessages:n={}}){const r=["bg-red-500","bg-blue-500","bg-yellow-400 text-black","bg-green-500"],i=["ØªØØ¯Ùد Ø§ÙØ£ÙÙÙÙØ§Øª Ø¨ÙØ¶ÙØ","تÙÙÙØ° جÙ
ÙØ¹ اÙÙ
ÙØ§Ù
Ø¯ÙØ¹Ø©Ù ÙØ§ØØ¯Ø©","تأجÙÙ Ø§ÙØªØ®Ø·ÙØ· Ø¥ÙÙ ÙÙØ§ÙØ© اÙÙÙÙ
","Ø§ÙØ¹Ù
٠دÙÙ ÙØªØ±Ø§Øª Ø±Ø§ØØ©"],o=["5%","14%","24%","36%","49%","62%","74%","86%","94%"],[l,c]=P.useState(t),[d,m]=P.useState(!1);P.useEffect(()=>{if(e!=="countdown")return;c(t);const h=window.setInterval(()=>c(x=>Math.max(0,x-1)),1e3);return()=>window.clearInterval(h)},[e,t]);const f=()=>{m(!0),window.setTimeout(()=>m(!1),900)};if(e==="question")return s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:131",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 p-4 text-white",dir:"rtl",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:132",className:"mb-3 h-3 overflow-hidden rounded-full bg-white/10",children:s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:132",className:"h-full w-3/5 rounded-full bg-yellow-400"})}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:133",className:"mb-4 flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:134",className:"flex h-16 w-16 flex-col items-center justify-center rounded-2xl bg-white/15 font-black",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:134",className:"text-3xl leading-none",children:"18"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:134",className:"mt-0.5 text-[9px] opacity-70",children:"ثاÙÙØ©"})]}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:135",className:"rounded-full bg-blue-500 px-3 py-1 text-xs font-bold",children:"ÙØ±ÙÙÙ"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:136",className:"text-left text-sm font-bold text-yellow-300",children:["1,250",s.jsx("br",{"data-loc":"client/src/pages/GameMobilePage.tsx:136"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:136",className:"text-[10px] text-yellow-300/60",children:"ÙÙØ·Ø©"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:138",className:"mb-5 flex min-h-36 items-center justify-center rounded-2xl bg-white/10 p-5 text-center text-xl font-bold leading-relaxed",children:"Ù
ا Ø§ÙØ®Ø·ÙØ© Ø§ÙØ£Ùثر ÙØ§Ø¹ÙÙØ© ÙØ¨Ø¯Ø¡ ÙÙÙ
عÙ
Ù Ù
ÙØ¸Ù
Ø"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:139",className:"grid grid-cols-1 gap-3",children:i.map((h,x)=>s.jsxs("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:140",className:`min-h-14 roun
1087ded-2xl px-4 text-right text-sm font-bold shadow-lg ${r[x]}`,children:[["ð´","ðµ","ð¡","ð¢"][x]," ",h]},h))}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:142",className:"mt-6 text-center text-xs text-purple-200",children:"Ù
عاÙÙØ© شاشة Ø§ÙØ³Ø¤Ø§Ù ÙÙÙ
شارÙ"})]});if(e==="answer_correct"||e==="answer_wrong"){const h=e==="answer_correct";return s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:150",className:`game-mobile-stage min-h-screen p-5 text-center text-white ${h?"bg-gradient-to-br from-emerald-700 via-teal-700 to-emerald-900":"bg-gradient-to-br from-rose-800 via-red-800 to-purple-950"}`,dir:"rtl",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:151",className:`mx-auto mt-12 flex h-24 w-24 items-center justify-center rounded-full border-4 border-white/70 text-6xl shadow-2xl ${h?"bg-emerald-400":"bg-rose-500"}`,children:h?"â":"â"}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:152",className:"mt-6 text-3xl font-black",children:h?"إجابة صØÙØØ©!":"إجابة ØºÙØ± صØÙØØ©"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:153",className:"mt-2 text-sm text-white/85",children:h?"Ø¥Ø¬Ø§Ø¨ØªÙ ÙØ§Ùت Ù٠اÙÙÙØª اÙÙ
ÙØ§Ø³Ø¨.":"ÙØ§ Ø¨Ø£Ø³Ø Ø±Ø§Ø¬Ø¹ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© ÙØ§Ø³ØªØ¹Ø¯ ÙÙØ³Ø¤Ø§Ù اÙÙØ§Ø¯Ù
."}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:154",className:"mt-8 rounded-3xl border border-white/30 bg-white/10 p-5 text-right backdrop-blur",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:154",className:"text-xs font-bold text-white/70",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØªÙ Ø§Ø®ØªØ±ØªÙØ§"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:154",className:"mt-2 text-lg font-black",children:"ØªØØ¯Ùد Ø§ÙØ£ÙÙÙÙØ§Øª Ø¨ÙØ¶ÙØ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:155",className:`mt-4 rounded-3xl border p-5 ${h?"border-emerald-200 bg-emerald-300/25":"border-rose-200 bg-rose-300/20"}`,children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:155",className:"text-sm font-bold",children:h?"ð +1,250 ÙÙØ·Ø©":"ð¡ Ø§Ùإجابة Ø§ÙØµØÙØØ©: ØªØØ¯Ùد Ø§ÙØ£ÙÙÙÙØ§Øª Ø¨ÙØ¶ÙØ"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:155",className:"mt-1 text-xs text-white/80",children:h?"تÙ
Ø§ØØªØ³Ø§Ø¨ Ù
ÙØ§Ùأة Ø§ÙØ³Ø±Ø¹Ø©.":"Ø³ØªØ¸ÙØ± اÙÙØªÙجة اÙÙÙØ§Ø¦ÙØ© بعد ÙØ´Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª."})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:156",className:"mt-8 flex items-center justify-center gap-2 text-sm font-bold text-white/80",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:156",className:"h-2 w-2 animate-pulse rounded-full bg-white"})," Ø¨Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"]}),s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:157",className:"mt-7 text-xs text-white/65",children:["Ù
عاÙÙØ© ØØ§ÙØ© Ø§ÙØ¥Ø¬Ø§Ø¨Ø© ",h?"Ø§ÙØµØÙØØ©":"Ø§ÙØ®Ø§Ø·Ø¦Ø©"," ÙÙÙ
شارÙ"]})]})}if(e==="next_question")return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:164",className:"game-mobile-stage preview-next-stage min-h-screen overflow-hidden bg-gradient-to-br from-slate-950 via-indigo-950 to-violet-950 p-5 text-center text-white",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:165",className:"mx-auto flex min-h-[580px] max-w-sm flex-col items-center justify-center",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:166",className:"rounded-full border border-cyan-300/40 bg-cyan-300/10 px-4 py-1.5 text-xs font-black text-cyan-100",children:"Ø§ÙØ³Ø¤Ø§Ù 4 Ù
Ù 8"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:167",className:"preview-next-loader mt-9","aria-hidden":"true",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:167",className:"preview-next-ring preview-next-ring-outer"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:167",className:"preview-next-ring preview-next-ring-inner"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:167",className:"preview-next-core",children:"â¡"})]}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:168",className:"preview-next-title mt-9 text-3xl font-black",children:"Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ Ø¬Ø§ÙØ²"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:169",className:"preview-next-copy mt-3 max-w-xs text-sm leading-7 text-indigo-100/85",children:"استعد ÙÙØªØØ¯Ù Ø§ÙØªØ§ÙÙ. Ø³ØªØ¸ÙØ± Ø§ÙØ®Ùارات ÙØ¬Ù
ÙØ¹ اÙÙ
شارÙÙÙ Ù٠اÙÙÙØª ÙÙØ³Ù."}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:170",className:"preview-next-status mt-8 w-full rounded-3xl border border-white/15 bg-white/10 p-4 text-right",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:170",className:"flex items-center justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:170",className:"text-sm font-bold",children:"جار٠Ù
زاÙ
ÙØ© Ø§ÙØ¬ÙÙØ©"}),s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:170",className:"flex gap-1.5","aria-hidden":"true",children:[s.jsx("i",{"data-loc":"client/src/pages/GameMobilePage.tsx:170"}),s.jsx("i",{"data-loc":"client/src/pages/GameMobilePage.tsx:170"}),s.jsx("i",{"data-loc":"client/src/pages/GameMobilePage.tsx:170"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:170",className:"preview-next-track mt-3 overflow-hidden rounded-full bg-white/10",children:s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:170"})})]}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:171",className:"mt-7 text-xs text-indigo-200/65",role:"status",children:"Ù
عاÙÙØ© شاشة Ø§ÙØ§Ùتظار بÙÙ Ø§ÙØ£Ø³Ø¦ÙØ© ÙÙÙ
شارÙ"})]})});if(e==="countdown")return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:179",className:"game-mobile-stage preview-countdown-stage min-h-screen overflow-hidden bg-gradient-to-br from-indigo-950 via-slate-950 to-violet-950 p-5 text-center text-white",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:180",className:"mx-auto flex min-h-[580px] max-w-sm flex-col items-center justify-center",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:181",className:"rounded-full border border-white/20 bg-white/10 px-4 py-1.5 text-xs font-black text-indigo-100",children:"Ø§ÙØ¬ÙÙØ© Ø§ÙØªØ§ÙÙØ© تبدأ Ø§ÙØ¢Ù"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:182",className:"preview-countdown-dial mt-8","aria-live":"polite","aria-label":`ÙØ¨Ø¯Ø£ Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ Ø®ÙØ§Ù ${l} Ø«ÙØ§Ù`,children:s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:182",children:l})}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:183",className:"mt-8 text-3xl font-black",children:l===0?"Ø§ÙØ³Ø¤Ø§Ù Ø³ÙØ¸Ùر Ø§ÙØ¢Ù":"استعد ÙÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:184",className:"mt-3 text-sm leading-7 text-indigo-100/80",children:l===0?"تÙ
ت اÙÙ
زاÙ
ÙØ©. Ø±Ø§ÙØ¨ Ø§ÙØ´Ø§Ø´Ø© ÙØ¨Ø¯Ø¡ Ø§ÙØ¬ÙÙØ©.":"خذ ÙÙØ³Ø§Ù عÙ
ÙÙØ§Ù ÙØ±ÙÙØ²Ø Ø³ÙØ¸Ùر Ø§ÙØ³Ø¤Ø§Ù ÙØ¬Ù
ÙØ¹ اÙÙ
شارÙÙÙ Ù٠اÙÙØØ¸Ø© ÙÙØ³Ùا."}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:185",className:"mt-8 flex items-center gap-2 text-sm font-bold text-cyan-100",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:185",className:"preview-countdown-dot"})," ",l===0?"Ø¬Ø§ÙØ² ÙÙØ¨Ø¯Ø¡":"Ù
زاÙ
ÙØ© اÙÙ
شارÙÙÙ"]}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:186",className:"mt-7 text-xs text-indigo-200/60",role:"status",children:l===0?"Ø§ÙØªÙÙ Ø§ÙØ¹Ø¯Ùاد Ø§ÙØªØ¬Ø±ÙبÙ":`Ù
ØØ§Ùاة Ø¹Ø¯ÙØ§Ø¯ ${t} ثاÙÙØ©`})]})});if(e==="offline")return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:194",className:"game-mobile-stage preview-offline-stage min-h-screen bg-gradient-to-br from-slate-950 via-slate-900 to-zinc-950 p-5 text-center text-white",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:195",className:"mx-auto flex min-h-[580px] max-w-sm flex-col items-center justify-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:196",className:"preview-offline-icon flex h-24 w-24 items-center justify-center rounded-full border-2 border-rose-300/60 bg-rose-400/15 text-5xl",children:"â"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:197",className:"mt-7 rounded-full border border-rose-300/30 bg-rose-300/10 px-4 py-1.5 text-xs font-black text-rose-100",children:"اÙÙØ·Ø¹ Ø§ÙØ§ØªØµØ§Ù Ù
Ø¤ÙØªØ§Ù"}),s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:198",className:`mt-3 rounded-full px-3 py-1 text-[11px] font-bold ${a==="connected"?"bg-emerald-400/20 text-emerald-100":a==="reconnecting"?"bg-amber-400/20 text-amber-100":"bg-rose-400/20 text-rose-100"}`,children:["Ø§ÙØ§ØªØµØ§Ù اÙÙØ¹ÙÙ: ",a==="connected"?"Ù
تصÙ":a==="reconnecting"?"ÙØØ§Ù٠إعادة Ø§ÙØ§ØªØµØ§Ù":"ØºÙØ± Ù
تصÙ"]}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:201",className:"mt-5 text-3xl font-black",children:"ÙØÙ ÙØØ§ÙÙ Ø§ÙØ¹Ùدة"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:202",className:"mt-3 max-w-xs text-sm leading-7 text-slate-200/80",children:"ÙÙ
ÙÙÙØ¯ ØªÙØ¯Ù
Ù. أعد اÙÙ
ØØ§ÙÙØ© ÙÙØ¹Ùدة Ø¥Ù٠اÙÙ
Ø³Ø§Ø¨ÙØ© ÙÙ
زاÙ
ÙØ© آخر ØØ§ÙØ©."}),s.jsx("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:203",type:"button",onClick:f,className:"preview-retry-button mt-8 min-h-12 w-full rounded-2xl bg-cyan-300 px-5 font-black text-slate-950",children:d?"جار٠إعادة Ø§ÙØ§ØªØµØ§Ùâ¦":"إعادة اÙÙ
ØØ§ÙÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:204",className:"mt-6 text-xs text-slate-400",role:"status",children:d?"Ø¬Ø§Ø±Ù ÙØØµ Ø§ÙØ§ØªØµØ§Ù ÙØ§ÙÙ
زاÙ
ÙØ©":"Ù
عاÙÙØ© ØØ§ÙØ© اÙÙØ·Ø§Ø¹ Ø§ÙØ§ØªØµØ§Ù ÙÙÙ
شارÙ"})]})});if(e==="performance_excellent"||e==="performance_good"||e==="performance_focus"){const h=Sze(e,n),x={emerald:"from-emerald-800 via-teal-900 to-slate-950",cyan:"from-cyan-800 via-indigo-950 to-slate-950",amber:"from-amber-800 via-orange-950 to-slate-950"};return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:214",className:`game-mobile-stage preview-performance-stage min-h-screen bg-gradient-to-br ${x[h.tone]} p-5 text-center text-white`,dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:215",className:"mx-auto flex min-h-[580px] max-w-sm flex-col items-center justify-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:216",className:"preview-performance-sparkle text-6xl","aria-hidden":"true",children:h.tone==="emerald"?"ð":h.tone==="cyan"?"ð":"ð¡"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:217",className:"mt-5 rounded-full border border-white/20 bg-white/10 px-4 py-1.5 text-xs font-black text-white/85",children:"Ø±Ø³Ø§ÙØ© Ù
خصصة ØØ³Ø¨ أدائÙ"}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:218",className:"preview-performance-title mt-6 text-3xl font-black",children:h.title}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:219",className:"preview-performance-body mt-3 max-w-xs text-sm leading-7 text-white/80",children:h.body}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:220",className:"preview-performance-card mt-8 w-full rounded-3xl border border-white/20 bg-white/10 p-5 text-right",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:220",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:220",className:"text-sm font-bold",children:"Ø§ÙØ¯ÙØ© Ø§ÙØØ§ÙÙØ©"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:220",className:"text-2xl font-black text-yellow-300",children:h.tone==="emerald"?"92%":h.tone==="cyan"?"76%":"58%"})]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:220",className:"mt-3 h-2 overflow-hidden rounded-full bg-white/10",children:s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:220",className:"block h-full rounded-full bg-yellow-300",style:{width:h.tone==="emerald"?"92%":h.tone==="cyan"?"76%":"58%"}})})]}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:221",className:"mt-7 text-xs text-white/60",role:"status",children:"Ù
عاÙÙØ© Ø±Ø³Ø§ÙØ© Ø§ÙØªØ´Ø¬Ùع بعد Ø§ÙØ¥Ø¬Ø§Ø¨Ø©"})]})})}return e==="finished"?s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:229",className:"game-mobile-stage preview-results-stage min-h-screen overflow-hidden bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 p-5 text-center text-white",dir:"rtl",children:[o.map((h,x)=>s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:230",className:`preview-confetti preview-confetti-${x%3}`,style:{left:h,animationDelay:`${x*120}ms`},"aria-hidden":"true",children:x%2===0?"â¦":"â"},h)),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:231",className:"preview-trophy mb-5 text-7xl",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:232",className:"preview-results-title bg-gradient-to-r from-yellow-300 to-pink-300 bg-clip-text text-3xl font-black text-transparent",children:"Ø£ØØ³Ùت اÙÙ
Ø´Ø§Ø±ÙØ©!"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:233",className:"preview-results-subtitle mt-2 text-sm text-purple-200",children:"ÙØ°Ù Ù
عاÙÙØ© ÙÙØªÙجة اÙÙ
شار٠اÙÙÙØ§Ø¦ÙØ©"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:234",className:"preview-results-card my-6 rounded-3xl border border-white/20 bg-white/10 p-5",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"text-right",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"text-xs text-purple-300",children:"Ù
Ø±ÙØ²Ù اÙÙÙØ§Ø¦Ù"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"text-5xl font-black text-yellow-400",children:"#2"})]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"h-14 w-px bg-white/20"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"text-left",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"text-xs text-purple-300",children:"ÙÙØ§Ø·Ù اÙÙÙÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"text-3xl font-black text-green-400",children:"2,450"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:235",className:"text-xs text-purple-300",children:"ÙÙØ·Ø©"})]})]})}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"preview-leaderboard rounded-2xl bg-white/5 p-4 text-right",children:[s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"mb-3 text-center text-xs font-bold text-purple-300",children:[s.jsx(aa,{"data-loc":"client/src/pages/GameMobilePage.tsx:237",size:14,className:"ml-1 inline text-yellow-400"}),"أبطا٠اÙÙ
Ø³Ø§Ø¨ÙØ©"]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"space-y-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"preview-podium-entry preview-podium-first flex items-center gap-3 rounded-xl bg-white/5 p-2.5",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",children:"ð¥"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"flex-1 text-sm",children:"اÙÙ
Ø±ÙØ² Ø§ÙØ£ÙÙ"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"font-bold text-yellow-400",children:"3,100"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"preview-podium-entry preview-podium-second flex items-center gap-3 rounded-xl border border-yellow-500/40 bg-yellow-500/20 p-2.5",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",ch
1087ildren:"ð¥"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"flex-1 text-sm font-bold",children:"Ø£ÙØª"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:237",className:"font-bold text-yellow-400",children:"2,450"})]})]})]}),s.jsx("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:238",className:"preview-share-button mt-5 min-h-12 w-full rounded-2xl bg-green-500 font-bold text-white",children:"Ø´Ø§Ø±Ù ÙØªÙجتÙ"})]}):s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:244",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 p-4",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"mx-auto mt-8 w-full max-w-sm text-center text-white",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"mb-3 text-7xl",children:"ð®"}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"text-3xl font-black",children:"Ø§ÙØ¶Ù
ÙÙÙ
Ø³Ø§Ø¨ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"mt-1 text-sm text-purple-200",children:"أدخ٠رÙ
ز Ø§ÙØ¬Ùسة ÙØ§Ø¨Ø¯Ø£ Ø§ÙØ¢Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"mt-6 space-y-4 rounded-3xl border border-white/20 bg-white/10 p-6 text-right",children:[s.jsx("label",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"block text-xs font-bold text-purple-200",children:"رÙ
ز Ø§ÙØ¬Ùسة (PIN)"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"rounded-2xl border border-white/30 bg-white/20 py-4 text-center text-2xl font-black tracking-[0.4em] text-white/50",children:"â â â â â â"}),s.jsx("label",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"block text-xs font-bold text-purple-200",children:"اسÙ
Ù Ù٠اÙÙ
Ø³Ø§Ø¨ÙØ©"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"rounded-2xl border border-white/30 bg-white/20 px-4 py-3 text-sm text-white/40",children:"أدخ٠اسÙ
Ù..."}),s.jsx("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:245",className:"min-h-14 w-full rounded-2xl bg-yellow-500 text-xl font-black text-black",children:"â¡ Ø§ÙØ¶Ù
Ø§ÙØ¢Ù!"})]})]})})}function tU(){const{pin:e}=Ol(),[,t]=Mo(),{user:a,loading:n}=Ma(),r=P.useRef(null),i=P.useRef(null),o=P.useRef(null),l=P.useRef("connected"),c=P.useRef(null),d=P.useRef(!1),m=P.useRef(null),[f,h]=P.useState("join"),[x,b]=P.useState(e??""),[y,w]=P.useState(Nze),[j,N]=P.useState(null),[k,D]=P.useState(null),[C,S]=P.useState(""),[A,E]=P.useState("individual"),[R,F]=P.useState(null),[I,H]=P.useState(null),[_,V]=P.useState(null),[W,B]=P.useState(30),[K,ae]=P.useState(!1),[$,Z]=P.useState(null),[O,Y]=P.useState(null),[Q,U]=P.useState(null),[oe,X]=P.useState(0),[ne,ge]=P.useState([]),[me,Ae]=P.useState(0),[Pe,L]=P.useState(null),[ke,Me]=P.useState([]),[Ze,Ce]=P.useState(!1),[Te,Ke]=P.useState(0),[Ve,ht]=P.useState(!1),[pe,et]=P.useState(0),[xe,it]=P.useState(!1),[Tt,bt]=P.useState(0),[vt,St]=P.useState("connected"),[de,be]=P.useState(null),G=new URLSearchParams(window.location.search),je=yze(G.get("preview")),ze=wze(G.get("countdown")),Qe=Pze(G.get("connection")),ye=jze(G),Ee=P.useRef(null),te=P.useRef(!1);P.useEffect(()=>{if(f==="finished"){const Le=ne.find(gt=>gt.participantId===k);if((Le?ne.indexOf(Le)+1:null)===1){const gt=Date.now()+6e3,yt=()=>{ii({particleCount:8,angle:60,spread:70,origin:{x:0},colors:["#FFD700","#FF6B6B","#4ECDC4","#45B7D1","#96CEB4","#FF69B4"]}),ii({particleCount:8,angle:120,spread:70,origin:{x:1},colors:["#FFD700","#FF6B6B","#4ECDC4","#45B7D1","#96CEB4","#FF69B4"]}),ii({particleCount:4,angle:90,spread:120,origin:{x:.5,y:.3},colors:["#FFD700","#FFFFFF","#FF69B4"]}),Date.now()<gt&&requestAnimationFrame(yt)};yt();try{const rt=new AudioContext;[523,659,784,1047,784,1047,1319].forEach((Mt,ee)=>{const Oe=rt.createOscillator(),Ye=rt.createGain();Oe.connect(Ye),Ye.connect(rt.destination),Oe.type=ee<4?"sine":"triangle",Oe.frequency.value=Mt;const at=rt.currentTime+ee*.12;Ye.gain.setValueAtTime(.5,at),Ye.gain.exponentialRampToValueAtTime(.001,at+.25),Oe.start(at),Oe.stop(at+.25)}),setTimeout(()=>rt.close(),2e3)}catch{}}else{const gt=Date.now()+4e3,yt=()=>{ii({particleCount:3,angle:60,spread:55,origin:{x:0},colors:["#FFD700","#FF6B6B","#4ECDC4","#45B7D1","#96CEB4"]}),ii({particleCount:3,angle:120,spread:55,origin:{x:1},colors:["#FFD700","#FF6B6B","#4ECDC4","#45B7D1","#96CEB4"]}),Date.now()<gt&&requestAnimationFrame(yt)};yt()}}},[f,ne,k]);const We=J.game.getByPin.useQuery({pin:x||"000000"},{enabled:!1}),mt=a?.name??a?.email??y;P.useEffect(()=>()=>{r.current?.disconnect(),i.current&&clearInterval(i.current),c.current&&clearTimeout(c.current)},[]);const z=P.useCallback((Le,nt)=>{r.current&&r.current.disconnect(),Ee.current={sessionId:Le,teamChoice:nt};const gt=lu({path:"/socket.io",transports:["polling","websocket"],upgrade:!0,reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:500,reconnectionDelayMax:3e3,timeout:2e4});r.current=gt;const yt=kze(),rt=mt||"ضÙÙ";gt.on("connect",()=>{const xt=l.current!=="connected";l.current="connected",St("connected"),xt&&(be("restored"),c.current&&clearTimeout(c.current),c.current=setTimeout(()=>be(null),3600),re.success("عاد Ø§ÙØ§ØªØµØ§Ù باÙÙ
Ø³Ø§Ø¨ÙØ©Ø ÙØªÙ
ت Ù
زاÙ
ÙØ© ØªÙØ¯Ù
Ù")),gt.emit("participant:join",{sessionId:Le,userId:a?.id??null,displayName:rt,teamChoice:nt,guestToken:yt})}),gt.on("disconnect",xt=>{xt!=="io client disconnect"&&(l.current="reconnecting",St("reconnecting"))}),gt.io.on("reconnect_attempt",()=>{l.current="reconnecting",St("reconnecting")}),gt.io.on("reconnect_error",()=>{l.current="reconnecting",St("reconnecting")}),gt.io.on("reconnect_failed",()=>{l.current="offline",St("offline")}),gt.on("participant:joined",xt=>{const Mt=xt.participantId??xt.participant?.id??null;Mt&&(D(Mt),o.current=Mt);
1087const ee=xt.participant?.teamId,Oe=ee==="team_a"?"اÙÙØ±Ù٠أ":ee==="team_b"?"اÙÙØ±Ù٠ب":null,Ye=ee==="team_a"?"#3b82f6":ee==="team_b"?"#ef4444":null;F(xt.teamName??Oe),H(xt.teamColor??Ye),h(wt=>wt==="join"||wt==="lobby"?"lobby":wt),Ce(!1);const at=m.current;at&>.emit("participant:answer",at)}),gt.on("game:participants_updated",({participants:xt})=>{Me(xt)}),gt.on("game:started",()=>{h("lobby")}),gt.on("game:question_started",xt=>{const Mt=xt.isResync===!0,ee=xt.alreadyAnswered===!0;V(xt),(!Mt||!ee)&&(Z(null),Y(null),U(null),X(0),te.current=!1),B(xt.timeLimitSeconds),ae(!1),(!Mt||!ee)&&(m.current=null),h(Mt&&ee?"answered":"question"),i.current&&clearInterval(i.current),i.current=setInterval(()=>{B(Oe=>{if(Oe<=1){clearInterval(i.current),ae(!0);try{const Ye=new AudioContext,at=Ye.createOscillator(),wt=Ye.createGain();at.connect(wt),wt.connect(Ye.destination),at.type="sine",at.frequency.setValueAtTime(440,Ye.currentTime),at.frequency.exponentialRampToValueAtTime(110,Ye.currentTime+.6),wt.gain.setValueAtTime(.6,Ye.currentTime),wt.gain.exponentialRampToValueAtTime(.001,Ye.currentTime+.6),at.start(),at.stop(Ye.currentTime+.6)}catch{}return 0}if(Oe<=3)try{const Ye=new AudioContext,at=Ye.createOscillator(),wt=Ye.createGain();at.connect(wt),wt.connect(Ye.destination);const kt=Oe===3?600:Oe===2?750:900;at.type="square",at.frequency.value=kt,wt.gain.setValueAtTime(.35,Ye.currentTime),wt.gain.exponentialRampToValueAtTime(.001,Ye.currentTime+.12),at.start(),at.stop(Ye.currentTime+.12)}catch{}return Oe-1})},1e3)}),gt.on("participant:answer_received",({isCorrect:xt,pointsEarned:Mt})=>{if(m.current=null,Y(xt),X(Mt),Ke(0),xt){Ae(Oe=>Oe+Mt);try{const Oe=new AudioContext;[523,659,784,1047].forEach((at,wt)=>{const kt=Oe.createOscillator(),Sa=Oe.createGain();kt.connect(Sa),Sa.connect(Oe.destination),kt.type="sine",kt.frequency.value=at;const Ca=Oe.currentTime+wt*.08;Sa.gain.setValueAtTime(.4,Ca),Sa.gain.exponentialRampToValueAtTime(.001,Ca+.15),kt.start(Ca),kt.stop(Ca+.15)}),setTimeout(()=>Oe.close(),800)}catch{}(_?(_.timeLimitSeconds-W)*1e3:9999)<=2e3&&(ii({particleCount:120,spread:80,origin:{y:.5},colors:["#FFD700","#00FF88","#FF69B4","#00BFFF"]}),ht(!0),setTimeout(()=>ht(!1),1800))}}),gt.on("game:question_results",({correctAnswer:xt,leaderboard:Mt})=>{U(xt),ge(Mt??[]),i.current&&clearInterval(i.current),h("answer_reveal");const ee=o.current;if(ee){const Oe=Mt?.find(Ye=>Ye.participantId===ee);Oe&&(Ae(Oe.totalPoints),L(Mt.indexOf(Oe)+1))}}),gt.on("game:waiting_for_results",()=>{h("answered"),i.current&&clearInterval(i.current)}),gt.on("game:finished",({leaderboard:xt})=>{ge(xt??[]),i.current&&clearInterval(i.current),j&&ET(j),m.current=null,h("finished")}),gt.on("error",({message:xt})=>{if(re.error(xt),xt.includes("Ø§ÙØªÙت")){const Mt=eU();Mt&&ET(Mt.sessionId)}Ce(!1)})},[a,mt,j]);P.useEffect(()=>{if(n||d.current)return;const Le=eU();!Le||e&&Le.pin!==e||(d.current=!0,b(Le.pin),N(Le.sessionId),D(Le.participantId),o.current=Le.participantId,S(Le.sessionTitle),E(Le.teamMode),F(Le.teamName),H(Le.teamColor),V(Le.activeQuestion),Z(Le.selectedAnswer),B(Le.timeLeft),Ae(Le.myPoints),h(Le.phase),Le.activeQuestion&&Le.selectedAnswer&&Le.responseTimeMs!==null&&(m.current={questionId:Le.activeQuestion.id,answerText:Le.selectedAnswer,responseTimeMs:Le.responseTimeMs}),Ce(!0),z(Le.sessionId,null),re.info("تÙ
ت استعادة ØªÙØ¯Ù
ÙØ جار٠Ù
زاÙ
ÙØªÙ Ù
ع اÙÙ
Ø³Ø§Ø¨ÙØ©"))},[n,e,z]),P.useEffect(()=>{!j||f==="join"||f==="finished"||vze({version:1,sessionId:j,participantId:k,pin:x,sessionTitle:C,phase:f,teamMode:A,teamName:R,teamColor:I,activeQuestion:_,selectedAnswer:$,responseTimeMs:m.current?.responseTimeMs??null,timeLeft:W,myPoints:me,savedAt:Date.now()})},[j,k,x,C,f,A,R,I,_,$,W,me]),P.useEffect(()=>{if(f==="join")return;const Le=()=>{const rt=r.current;rt&&(rt.connected?rt.emit("participant:sync"):(St("reconnecting"),rt.connect()))},nt=()=>{document.visibilityState==="visible"&&Le()},gt=()=>Le(),yt=()=>{l.current="offline",St("offline")};return document.addEventListener("visibilitychange",nt),window.addEventListener("focus",nt),window.addEventListener("online",gt),window.addEventListener("offline",yt),()=>{document.removeEventListener("visibilitychange",nt),window.removeEventListener("focus",nt),window.removeEventListener("online",gt),window.removeEventListener("offline",yt)}},[f]);const _e=P.useCallback(async()=>{const Le=x.trim();if(!Le||Le.length<6){re.error("أدخ٠رÙ
ز Ø§ÙØ¬Ùسة اÙÙ
ÙÙÙÙ Ù
Ù 6 Ø£Ø±ÙØ§Ù
");return}if(!(a?.name??a?.email??y.trim())){re.error("أدخ٠اسÙ
٠أÙÙØ§Ù");return}a||Aze(y.trim()),Ce(!0);try{const yt=(await We.refetch()).data;if(!yt){re.error("رÙ
ز Ø§ÙØ¬Ùسة ØºÙØ± صØÙØ"),Ce(!1);return}if(yt.status==="finished"){re.error("Ø§ÙØªÙت ÙØ°Ù Ø§ÙØ¬Ùسة"),Ce(!1);return}if(!["lobby","in_progress","question_active","showing_results"].includes(yt.status)){re.error("ÙØ°Ù Ø§ÙØ¬Ùسة ØºÙØ± Ù
ØªØ§ØØ© ÙÙØ§ÙضÙ
اÙ
"),Ce(!1);return}N(yt.id),S(yt.title??""),E(yt.teamMode),yt.teamMode,z(yt.id,null)}catch{re.error("خطأ ÙÙ Ø§ÙØ§ÙضÙ
اÙ
Ø ØØ§ÙÙ Ù
رة أخرÙ"),Ce(!1)}},[x,a,y,We,z]),ce=P.useCallback(Le=>{if(r.current?.connected&&o.current){const nt=Le==="A"?"team_a":"team_b";r.current.emit("participant:choose_team",{participantId:o.current,teamId:nt}),r.current.once("participant:team_assigned",gt=>{F(gt.teamName??(Le==="A"?"اÙÙØ±Ù٠أ":"اÙÙØ±Ù٠ب")),H(gt.teamColor??(Le==="A"?"#3b82f6":"#ef4444"))})}else j&&z(j,Le)},[j,z]),se=P.useCallback(Le=>{if(!_||$!==null||!o.current)return;Z(Le),h("answered");const nt=(_.timeLimitSeconds-W)*1e3,gt=Math.max(nt,100);m.current={questionId:_.id,answerText:Le,responseTimeMs:gt},r.current?.emit("participant:answer",{questionId:_.id,answerText:Le,responseTimeMs:gt}),se._responseMs=gt},[_,$,W]),fe=P.useCallback(()=>{!_||$!==null||!o.current||(Z("BUZZ"),h("answered"),r.current?.emit("participant:buzz",{sessionId:j,questionId:_.id,participantId:o.current,displayName:mt}))},[_,$,j,mt]),Se=["bg-red-500 active:bg-red-600","bg-blue-500 active:bg-blue-600","bg-yellow-500 active:bg-yellow-600 text-black","bg-green-500 active:bg-green-600"],ot=["ð´","ðµ","ð¡","ð¢"],lt=()=>{if(f==="join"||vt==="connected"&&!de)return null;const Le=de==="restored"&&vt==="connected",nt=vt==="reconnecting";return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:755",className:`fixed top-3 right-3 left-3 z-[60] rounded-2xl border px-4 py-3 shadow-2xl backdrop-blur-md transition-all ${Le?"border-emerald-300/50 bg-emerald-500/95 text-white":nt?"border-amber-200/60 bg-amber-400/95 text-black":"border-red-300/60 bg-red-600/95 text-white"}`,role:Le?"status":"alert",dir:"rtl",children:Le?s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:763",className:"flex items-center justify-center gap-2 text-sm font-black",children:[s.jsx(Bpe,{"data-loc":"client/src/pages/GameMobilePage.tsx:764",size:19})," عاد Ø§ÙØ§ØªØµØ§Ù â ØªÙ
ت Ù
زاÙ
ÙØ© ØªÙØ¯Ù
Ù Ø¨ÙØ¬Ø§Ø"]}):nt?s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:767",className:"flex items-center justify-center gap-2 text-sm font-black",children:[s.jsx(vW,{"data-loc":"client/src/pages/GameMobilePage.tsx:768",size:19,className:"animate-spin"})," اÙÙØ·Ø¹ Ø§ÙØ§ØªØµØ§Ù Ù
Ø¤ÙØªØ§Ù â ÙØØ§Ù٠استعادت٠دÙÙ ÙÙØ¯ إجابتÙ"]}):s.jsxs("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:771",onClick:()=>{l.current="reconnecting",St("reconnecting"),r.current?.connect()},className:"flex w-full items-center justify-center gap-2 text-sm font-black underline underline-offset-4",children:[s.jsx(Fpe,{"data-loc":"client/src/pages/GameMobilePage.tsx:779",size:19})," ÙØ§ ÙÙØ¬Ø¯ Ø§ØªØµØ§Ù Ø¨Ø§ÙØ¥ÙØªØ±ÙØª â Ø§Ø¶ØºØ· ÙØ¥Ø¹Ø§Ø¯Ø© اÙÙ
ØØ§ÙÙØ©"]})})};if(je)return s.jsx(Cze,{"data-loc":"client/src/pages/GameMobilePage.tsx:792",screen:je,countdownSeconds:ze,actualConnection:Qe,customMessages:ye});if(n)return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:797",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 to-indigo-900 flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:798",className:"text-white text-xl animate-pulse",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."})});if(f==="join"){const Le=!a,nt=x.length>=6&&(a||y.trim().length>=2);return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:808",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex items-center justify-center p-4",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:809",className:"w-full max-w-sm",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:811",className:"text-center mb-8",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:812",className:"text-7xl mb-3",children:"ð®"}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:813",className:"text-3xl font-black text-white",children:"Ø§ÙØ¶Ù
ÙÙÙ
Ø³Ø§Ø¨ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:814",className:"text-purple-200 text-sm mt-1",children:"أدخ٠رÙ
ز Ø§ÙØ¬Ùسة ÙØ§Ø¨Ø¯Ø£ Ø§ÙØ¢Ù"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:818",className:"bg-white/10 backdrop-blur-md rounded-3xl p-6 space-y-4 border border-white/20 shadow-2xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:820",children:[s.jsx("label",{"data-loc":"client/src/pages/GameMobilePage.tsx:821",className:"block text-purple-200 text-xs font-bold mb-1.5 tracking-wider up
1087percase",children:"رÙ
ز Ø§ÙØ¬Ùسة (PIN)"}),s.jsx(oa,{"data-loc":"client/src/pages/GameMobilePage.tsx:822",value:x,onChange:gt=>b(gt.target.value.replace(/\D/g,"")),placeholder:"â â â â â â",className:"text-center text-3xl font-black tracking-[0.5em] bg-white/20 border-white/30 text-white placeholder:text-white/30 h-16 rounded-2xl focus:border-yellow-400 focus:ring-yellow-400/30",maxLength:6,inputMode:"numeric",onKeyDown:gt=>gt.key==="Enter"&&nt&&_e(),autoFocus:!!e})]}),Le&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:836",children:[s.jsx("label",{"data-loc":"client/src/pages/GameMobilePage.tsx:837",className:"block text-purple-200 text-xs font-bold mb-1.5 tracking-wider uppercase",children:"اسÙ
Ù Ù٠اÙÙ
Ø³Ø§Ø¨ÙØ©"}),s.jsx(oa,{"data-loc":"client/src/pages/GameMobilePage.tsx:838",value:y,onChange:gt=>w(gt.target.value),placeholder:"أدخ٠اسÙ
Ù...",className:"bg-white/20 border-white/30 text-white placeholder:text-white/40 h-12 rounded-2xl text-base font-bold focus:border-yellow-400 focus:ring-yellow-400/30",maxLength:30,onKeyDown:gt=>gt.key==="Enter"&&nt&&_e(),autoFocus:!0}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:847",className:"text-purple-300/70 text-xs mt-1.5 text-center",children:"Ø³ÙØ¸Ùر ÙØ°Ø§ Ø§ÙØ§Ø³Ù
ÙÙ ÙÙØØ© اÙÙØªØ§Ø¦Ø¬"})]}),!Le&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:853",className:"flex items-center gap-3 bg-white/5 rounded-2xl px-4 py-3 border border-white/10",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:854",className:"w-9 h-9 rounded-full bg-yellow-500/30 flex items-center justify-center text-yellow-300 font-black text-sm flex-shrink-0",children:(a?.name??a?.email??"Ø")[0].toUpperCase()}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:857",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:858",className:"text-white font-bold text-sm truncate",children:a?.name??a?.email}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:859",className:"text-purple-300 text-xs",children:"Ù
سجÙÙ Ù٠اÙÙ
ÙØµØ© â"})]})]}),s.jsx(Ie,{"data-loc":"client/src/pages/GameMobilePage.tsx:865",onClick:_e,disabled:!nt||Ze,className:"w-full h-14 text-xl font-black bg-yellow-500 hover:bg-yellow-400 text-black disabled:opacity-40 rounded-2xl shadow-lg shadow-yellow-500/30 transition-all active:scale-95",children:Ze?s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:871",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:872",className:"w-5 h-5 border-2 border-black/30 border-t-black rounded-full animate-spin"}),"Ø¬Ø§Ø±Ù Ø§ÙØ§ÙضÙ
اÙ
..."]}):s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:876",className:"flex items-center gap-2",children:[s.jsx(vs,{"data-loc":"client/src/pages/GameMobilePage.tsx:877",size:22}),"Ø§ÙØ¶Ù
Ø§ÙØ¢Ù!"]})})]}),Le&&s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:886",className:"text-center mt-5",children:s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:887",className:"text-purple-300/70 text-xs",children:["ÙØ¯ÙÙ ØØ³Ø§Ø¨Ø"," ",s.jsx("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:889",onClick:()=>t("/"),className:"text-yellow-400 underline font-bold hover:text-yellow-300 transition-colors",children:"سجÙ٠دخÙÙÙ"})," ","ÙØÙØ¸ ÙÙØ§Ø·Ù"]})})]})})}if(f==="lobby"&&A==="manual"&&!R)return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:904",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex items-center justify-center p-6",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:905",className:"w-full max-w-sm text-white text-center",children:[s.jsx("h2",{"data-loc":"client/src/pages/GameMobilePage.tsx:906",className:"text-2xl font-bold mb-2",children:C}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:907",className:"text-purple-200 mb-6",children:"اختر ÙØ±ÙÙÙ"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:908",className:"grid grid-cols-2 gap-4 mb-4",children:[s.jsxs("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:909",onClick:()=>ce("A"),className:"bg-blue-500 hover:bg-blue-400 active:scale-95 transition-transform rounded-2xl p-6 text-center relative",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:910",className:"text-5xl mb-2",children:"ðµ"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:911",className:"text-xl font-bold",children:"اÙÙØ±Ù٠أ"}),ke.filter(Le=>Le.teamId==="team_a").length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:913",className:"mt-2 text-blue-100 text-sm",children:[ke.filter(Le=>Le.teamId==="team_a").length," عضÙ"]})]}),s.jsxs("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:918",onClick:()=>
1087ce("B"),className:"bg-red-500 hover:bg-red-400 active:scale-95 transition-transform rounded-2xl p-6 text-center relative",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:919",className:"text-5xl mb-2",children:"ð´"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:920",className:"text-xl font-bold",children:"اÙÙØ±Ù٠ب"}),ke.filter(Le=>Le.teamId==="team_b").length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:922",className:"mt-2 text-red-100 text-sm",children:[ke.filter(Le=>Le.teamId==="team_b").length," عضÙ"]})]})]}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:928",className:"text-purple-300 text-xs",children:"ÙÙ
ÙÙ ÙÙÙØ±ÙÙÙ٠أ٠ÙÙÙÙ ÙØ¯ÙÙÙ
عدد Ù
ختÙÙ Ù
Ù Ø§ÙØ£Ø¹Ø¶Ø§Ø¡"})]})});if(f==="lobby"){const Le=ke.filter(rt=>rt.teamId==="team_a"),nt=ke.filter(rt=>rt.teamId==="team_b"),gt=ke.filter(rt=>!rt.teamId||rt.teamId==="none"),yt=A==="manual"||A==="auto_balance";return s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:942",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex flex-col items-center justify-center p-6",dir:"rtl",children:[s.jsx(lt,{"data-loc":"client/src/pages/GameMobilePage.tsx:943"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:944",className:"w-full max-w-sm text-white text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:945",className:"text-6xl mb-4 animate-bounce",children:"â³"}),s.jsx("h2",{"data-loc":"client/src/pages/GameMobilePage.tsx:946",className:"text-2xl font-bold mb-1",children:C}),R&&yt&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:948",className:"flex items-center justify-center gap-2 mb-4",children:[s.jsx(Ga,{"data-loc":"client/src/pages/GameMobilePage.tsx:949",style:{backgroundColor:I??"#6366f1"},className:"text-base px-4 py-1",children:R}),o.current&&s.jsxs("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:951",onClick:()=>{F(null),H(null)},className:"flex items-center gap-1 text-xs text-purple-300 hover:text-white bg-white/10 hover:bg-white/20 rounded-full px-2 py-1 transition-colors",title:"تغÙÙØ± اÙÙØ±ÙÙ",children:[s.jsx(Zue,{"data-loc":"client/src/pages/GameMobilePage.tsx:959",size:12}),"تغÙÙØ±"]})]}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:965",className:"text-purple-200 mb-6",children:"ÙÙ Ø§ÙØªØ¸Ø§Ø± بدء اÙÙ
Ø³Ø§Ø¨ÙØ©..."}),yt&&(Le.length>0||nt.length>0)?s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:968",className:"space-y-3 mb-4 text-right",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:970",className:"bg-blue-500/20 border border-blue-400/30 rounded-xl p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:971",className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:972",className:"text-lg",children:"ðµ"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:973",className:"font-bold text-blue-300 text-sm",children:"اÙÙØ±Ù٠أ"}),s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:974",className:"text-blue-200/60 text-xs mr-auto",children:[Le.length," عضÙ"]})]}),Le.length===0?s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:977",className:"text-white/30 text-xs text-center",children:"ÙÙ
ÙÙØ¶Ù
Ø£ØØ¯ بعد"}):s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:979",className:"flex flex-wrap gap-1.5",children:Le.map(rt=>s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:981",className:`text-xs px-2 py-0.5 rounded-full ${rt.displayName===mt?"bg-yellow-500/40 text-yellow-200 border border-yellow-500/50":"bg-blue-500/30 text-blue-100"}`,children:rt.displayName},rt.id))})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:989",className:"bg-red-500/20 border border-red-400/30 rounded-xl p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:990",className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:991",className:"text-lg",children:"ð´"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:992",className:"font-bold text-red-300 text-sm",children:"اÙÙØ±Ù٠ب"}),s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:993",className:"text-red-200/60 text-xs mr-auto",children:[nt.length," عضÙ"]})]}),nt.length===0?s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:996",className:"text-white/30 text-xs text-center",children:"ÙÙ
ÙÙØ¶Ù
Ø£ØØ¯ بعد"}):s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:998",className:"flex flex-wrap gap-1.5",children:nt.map(rt=>s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1000",className:`text-xs px-2 py-0.5 rounded-full ${rt.displayName===mt?"bg-yellow-500/40 text-yellow-200 border border-yellow-500/50":"bg-red-500/30 text-red-100"}`,children:rt.displayName},rt.id))})]}),gt.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1009",className:"bg-white/5 border border-white/10 rounded-xl p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1010",className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1011",className:"text-sm",children:"â³"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1012",className:"text-white/40 text-xs",children:"ÙÙ
ÙØ®ØªØ§Ø±Ùا ÙØ±ÙÙØ§Ù"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1013",className:"text-white/30 text-xs mr-auto",children:gt.length})]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1015",className:"flex flex-wrap gap-1.5",children:gt.map(rt=>s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1017",className:`text-xs px-2 py-0.5 rounded-full ${rt.displayName===mt?"bg-yellow-500/40 text-yellow-200 border border-yellow-500/50":"bg-white/10 text-white/50"}`,children:rt.displayName},rt.id))})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1028",className:"bg-white/10 rounded-2xl p-4 flex items-center justify-center gap-2 mb-4",children:[s.jsx(ln,{"data-loc":"client/src/pages/GameMobilePage.tsx:1029",size:20,className:"text-purple-300"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1030",className:"text-xl font-bold",children:ke.length||1}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1031",className:"text-purple-200",children:"Ù
Ø´Ø§Ø±Ù Ø§ÙØ¶Ù
"})]}),ke.length>0&&s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1034",className:"bg-white/5 rounded-xl p-3 max-h-40 overflow-y-auto mb-4",children:s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1035",className:"flex flex-wrap gap-2 justify-center",children:ke.map(rt=>s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1037",className:`text-xs px-2 py-1 rounded-full ${rt.displayName===mt?"bg-yellow-500/30 text-yellow-200 border border-yellow-500/50":"bg-white/10 text-white/80"}`,children:rt.displayName},rt.id))})})]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1046",className:"mt-6 flex justify-center gap-1",children:[0,1,2].map(rt=>s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1048",className:"w-3 h-3 bg-purple-400 rounded-full animate-bounce",style:{animationDelay:`${rt*.2}s`}},rt))}),s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1052",className:"text-purple-300/70 text-xs mt-5",children:["Ø£ÙØª: ",s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1052",className:"text-yellow-300 font-bold",children:mt})]})]})]})}
1087if(f==="question"&&_){const Le=W/_.timeLimitSeconds*100,nt=W<=3,gt=W<=5&&W>3;return s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1064",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex flex-col p-4 pb-6",dir:"rtl",children:[s.jsx(lt,{"data-loc":"client/src/pages/GameMobilePage.tsx:1065"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1067",className:`w-full rounded-full h-3 mb-3 overflow-hidden transition-all duration-300 ${nt?"bg-red-900/60":"bg-white/10"}`,children:s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1068",className:`h-3 rounded-full transition-all duration-1000 ${nt?"bg-red-500":gt?"bg-orange-400":"bg-yellow-400"}`,style:{width:`${Le}%`}})}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1074",className:"flex items-center justify-between gap-3 mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1076",className:`flex flex-col items-center justify-center w-16 h-16 rounded-2xl font-black transition-all duration-300 shadow-lg 1088 ${nt?"bg-red-500 text-white animate-pulse scale-110 shadow-red-500/50":gt?"bg-orange-500 text-white scale-105 shadow-orange-500/40":"bg-white/15 text-white"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1080",className:`leading-none ${W>=10?"text-3xl":"text-4xl"}`,children:W}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1081",className:"text-[9px] opacity-70 mt-0.5",children:"ثاÙÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1083",className:"flex min-w-0 flex-1 flex-col items-center gap-1",children:[s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1084",className:"rounded-full bg-white/10 px-3 py-1 text-xs font-black text-purple-100",children:["Ø§ÙØ³Ø¤Ø§Ù ",(_.questionIndex??0)+1," Ù Ù ",_.totalQuestions??"Ø"]}),R&&s.jsx(Ga,{"data-loc":"client/src/pages/GameMobilePage.tsx:1087",style:{backgroundColor:I??"#6366f1"},className:"max-w-full truncate text-xs",children:R})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1089",className:"shrink-0 text-left text-sm font-black text-yellow-300",children:[me.toLocaleString(),s.jsx("br",{"data-loc":"client/src/pages/GameMobilePage.tsx:1089"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1089",className:"text-[10px] font-medium text-yellow-300/60",children:"ÙÙØ·Ø©"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1091",className:"mb-4 rounded-3xl border border-white/20 bg-white/[0.12] p-5 shadow-xl backdrop-blur-md sm:p-6",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1092",className:"mb-2 text-center text-[11px] font-black tracking-[0.18em] text-purple-200",children:"Ø§ÙØ±Ø£ Ø§ÙØ³Ø¤Ø§Ù ث٠اختر إجابة ÙØ§ØØ¯Ø©"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1093",className:"max-h-[32vh] overflow-y-auto break-words text-center text-[clamp(1.25rem,5.5vw,1.85rem)] font-black leading-[1.65] text-white",children:_.questionText})]}),_.questionType==="buzzer"&&s.jsx("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:1096",onClick:fe,disabled:!!$,className:"w-full h-36 rounded-3xl text-4xl font-bold bg-red-500 active:scale-95 transition-all text-white shadow-2xl disabled:opacity-50",children:"â¡ BUZZ!"}),_.questionType==="multiple_choice"&&_.options&&_.options.length>0&&s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1101",className:"grid grid-cols-1 gap-3",children:_.options.map((yt,rt)=>s.jsxs("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:1103",onClick:()=>se(yt),disabled:$!==null,"aria-label":`Ø§ÙØ®Ùار ${rt+1}: ${yt}
1088`,className:`flex min-h-[76px] items-center gap-4 rounded-2xl p-4 text-right text-white shadow-lg transition-all active:scale-[0.98] disabled:opacity-60 ${Se[rt%4]} ${$===yt?"ring-4 ring-white scale-[1.02]":""}`,children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1105",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-black/15 text-xl font-black","aria-hidden":"true",children:ot[rt%4]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1106",className:"flex-1 break-words text-base font-black leading-relaxed",children:yt}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1107",className:"shrink-0 rounded-lg bg-white/15 px-2 py-1 text-xs font-bold",children:["Ø£","ب","ج","د"][rt]??rt+1})]},rt))}),_.questionType==="true_false"&&s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1113",className:"grid grid-cols-2 gap-4",children:["صØ","خطأ"].map(yt=>s.jsx("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:1115",onClick:()=>se(yt),disabled:$!==null,className:`min-h-[92px] rounded-2xl p-6 font-black text-2xl shadow-lg active:scale-[0.98] transition-all ${yt==="صØ"?"bg-green-500 text-white":"bg-red-500 text-white"} disabled:opacity-60 ${$===yt?"ring-4 ring-white scale-105":""}`,children:yt==="صØ"?"â
صØ":"â Ø®Ø·Ø£"},yt))}),K&&$===null&&s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1123",className:"fixed inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center z-50 animate-in fade-in duration-300",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1124",className:"bg-gray-900 rounded-3xl p-8 text-center shadow-2xl max-w-sm mx-4 border-2 border-red-500",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1125",className:"text-6xl mb-3",children:"â°"}),s.jsx("h2",{"data-loc":"client/src/pages/GameMobilePage.tsx:1126",className:"text-white text-2xl font-black mb-3",children:"Ø§ÙØªÙ٠اÙÙÙØª!"}),Q?s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1128",className:"bg-green-600/30 border border-green-400 rounded-2xl px-5 py-3 mt-2",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1129",className:"text-green-300 text-sm mb-1",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© ÙØ§Ùت:"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1130",className:"text-white text-xl font-bold",children:Q})]}):s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1133",className:"text-red-300 text-sm animate-pulse",children:"Ø¬Ø§Ø±Ù ÙØ´Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø©..."})]})})]})}if(f==="answered")return s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1145",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex items-center justify-center p-6 relative overflow-hidden",dir:"rtl",children:[s.jsx(lt,{"data-loc":"client/src/pages/GameMobilePage.tsx:1146"}),Ve&&s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1149",className:"absolute inset-0 flex items-center justify-center z-50 pointer-events-none",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1150",className:"animate-in zoom-in-50 fade-in duration-200 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1151",className:"text-6xl mb-2",children:"â¡"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1152",className:"text-4xl font-black text-yellow-300 drop-shadow-[0_0_20px_rgba(255,215,0,0.8)] animate-pulse",children:"إجابة Ø®Ø§Ø·ÙØ©!"})]})}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1158",className:"text-white text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1159",className:"text-7xl mb-4 animate-bounce",children:"â³"}),s.jsx("h2",{"data-loc":"client/src/pages/GameMobilePage.tsx:1160",className:"text-2xl font-bold mb-2",children:"تÙ
إرسا٠إجابتÙ!"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1161",className:"text-purple-200",children:"ÙÙ Ø§ÙØªØ¸Ø§Ø± ÙØ´Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø©..."}),$&&$!=="BUZZ"&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1163",className:"mt-4 bg-white/10 rounded-xl px-6 py-3 text-lg font-semibold",children:["إجابتÙ: ",s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1164",className:"text-yellow-400",children:$})]}),O!==null&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1168",className:`mt-3 flex items-center justify-center gap-2 text-lg font-bold ${O?"text-green-400":"text-red-400"}`,children:[O?s.jsx(cr,{"data-loc":"client/src/pages/GameMobilePage.tsx:1169",size:24}):s.jsx(Rg,{"data-loc":"client/src/pages/GameMobilePage.tsx:1169",size:24}),O?s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1171",children:["+",oe," ÙÙØ·Ø©!",Te>0&&s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1173",className:"text-yellow-300 text-sm mr-1",children:["(â¡ +",Te," سرعة)"]})]}):"خاطئة"]})]})]});if(f==="answer_reveal"){const Le=$!==null&&Q!==null&&$===Q;return s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1187",className:`game-mobile-stage min-h-screen flex flex-col items-center justify-center p-6 ${Le?"bg-gradient-to-br from-green-800 to-emerald-900":"bg-gradient-to-br from-red-900 to-rose-900"}`,dir:"rtl",children:[s.jsx(lt,{"data-loc":"client/src/pages/GameMobilePage.tsx:1188"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1189",className:"text-white text-center w-full max-w-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1190",className:"text-8xl mb-4",children:Le?"ð":"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/GameMobilePage.tsx:1191",className:"text-3xl font-bold mb-2",children:Le?"إجابة صØÙØØ©!":"إجابة خاطئة"}),Q&&s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1193",className:"text-lg mb-4 opacity-80",children:["Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©: ",s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1193",className:"font-bold text-yellow-300",children:Q})]}),Pe&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1196",className:"bg-white/10 rounded-xl px-6 py-3 mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1197",className:"text-2xl font-bold text-yellow-400",children:[me.toLocaleStr
1088ing()," ÙÙØ·Ø©",Le&&Te>0&&s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1200",className:"text-sm text-yellow-200 mr-2 font-normal",children:["â¡ +",Te," Ù
ÙØ§Ùأة Ø§ÙØ³Ø±Ø¹Ø©"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1203",className:"text-sm opacity-70",children:["اÙÙ
Ø±ÙØ² #",Pe]})]}),ne.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1207",className:"bg-white/10 rounded-xl p-3",children:[s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1208",className:"text-sm text-white/60 mb-2 flex items-center gap-1 justify-center",children:[s.jsx(aa,{"data-loc":"client/src/pages/GameMobilePage.tsx:1208",size:14})," أعÙÙ 3"]}),ne.slice(0,3).map((nt,gt)=>s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1210",className:"flex items-center gap-2 text-sm py-1",children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1211",children:gt===0?"ð¥":gt===1?"ð¥":"ð¥"}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1212",className:"flex-1 text-right truncate",children:nt.displayName}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1213",className:"text-yellow-300 font-bold",children:nt.totalPoints.toLocaleString()})]},nt.participantId))]}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1218",className:"text-sm mt-4 opacity-60 animate-pulse",children:"ÙÙ Ø§ÙØªØ¸Ø§Ø± Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ..."})]})]})}if(f==="finished"){const Le=ne.find(xt=>xt.participantId===k),nt=Le?ne.indexOf(Le)+1:null,gt=!a,yt=nt===1?"ð¥":nt===2?"ð¥":nt===3?"ð¥":"ðï¸",rt=nt===1?"Ø£ÙØª Ø§ÙØ¨Ø·Ù! ð":nt===2?"اÙÙ
Ø±ÙØ² Ø§ÙØ«Ø§Ù٠رائع!":nt===3?"عÙ٠اÙÙ
ÙØµØ©! Ø£ØØ³Ùت!":"Ø´ÙØ±Ø§Ù ÙÙ
Ø´Ø§Ø±ÙØªÙ!";return s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1232",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex flex-col items-center justify-center p-6 overflow-hidden relative",dir:"rtl",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1234",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[...Array(12)].map((xt,Mt)=>s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1236",className:"absolute w-1 h-1 bg-white rounded-full animate-ping opacity-30",style:{top:`${Math.random()*100}%`,left:`${Math.random()*100}%`,animationDelay:`${Mt*.3}s`,animationDuration:`${2+Mt*.2}s`}},Mt))}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1241",className:"w-full max-w-sm text-white text-center relative z-10",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1243",className:"mb-6 animate-in zoom-in-50 fade-in duration-500",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1244",className:"text-8xl mb-3 drop-shadow-lg",children:yt}),s.jsx("h1",{"data-loc":"client/src/pages/GameMobilePage.tsx:1245",className:"text-4xl font-black mb-1 bg-gradient-to-r from-yellow-300 to-pink-300 bg-clip-text text-transparent",children:rt}),s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1248",className:"text-purple-200 text-lg font-medium",children:["Ø´ÙØ±Ø§Ù ÙÙ ÙØ§ ",s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1249",className:"text-yellow-300 font-bold",children:mt})]}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1251",className:"text-purple-300/70 text-sm mt-1",children:"Ù
Ø´Ø§Ø±ÙØªÙ ØªÙØ¶ÙÙ Ø±ÙØØ§Ù Ø±Ø§Ø¦Ø¹Ø© ÙÙÙØ±ÙÙ â¨"})]}),nt&&s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1256",className:"bg-white/10 backdrop-blur-md rounded-3xl p-5 mb-5 border border-white/20 shadow-xl animate-in slide-in-from-bottom-4 duration-500 delay-200",children:s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1257",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1258",className:"text-right",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1259",className:"text-sm text-purple-300 mb-0.5",children:"Ù
Ø±ÙØ²Ù اÙÙÙØ§Ø¦Ù"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1260",className:"text-5xl font-black text-yellow-400",children:["#",nt]})]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1262",className:"w-px h-14 bg-white/20"}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1263",className:"text-left",children:[s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1264",className:"text-sm text-purple-300 mb-0.5",children:"ÙÙØ§Ø·Ù اÙÙÙÙØ©"}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1265",className:"text-3xl font-black text-green-400",children:me.toLocaleStr
1088ing()}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1266",className:"text-xs text-purple-300",children:"ÙÙØ·Ø©"})]})]})}),ne.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1274",className:"bg-white/5 rounded-2xl p-4 mb-5 animate-in slide-in-from-bottom-4 duration-500 delay-300",children:[s.jsxs("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1275",className:"text-purple-300 text-xs font-bold mb-3 flex items-center justify-center gap-1",children:[s.jsx(aa,{"data-loc":"client/src/pages/GameMobilePage.tsx:1276",size:14,className:"text-yellow-400"})," أبطا٠اÙÙ Ø³Ø§Ø¨ÙØ©"]}),s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1278",className:"space-y-2",children:ne.slice(0,5).map((xt,Mt)=>s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1280",className:`flex items-center gap-3 p-2.5 rounded-xl transition-all ${xt.participantId===k?"bg-yellow-500/20 border border-yellow-500/40 scale-105":"bg-white/5"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1282",className:"font-bold w-7 text-center text-lg",children:Mt===0?"ð¥":Mt===1?"ð¥":Mt===2?"ð¥":`${Mt+1}`}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1283",className:"flex-1 text-right text-sm font-medium truncate",children:xt.displayName}),xt.totalAnswers!==void 0&&xt.totalAnswers>0&&s.jsxs("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1285",className:`text-xs px-1.5 py-0.5 rounded-full font-semibold shrink-0 ${(xt.correctPct??0)>=70?"bg-green-500/30 text-green-300":(xt.correctPct??0)>=40?"bg-yellow-500/30 text-yellow-300":"bg-red-500/30 text-red-300"}`,children:[xt.correctAnswers,"/",xt.totalAnswers]}),s.jsx("span",{"data-loc":"client/src/pages/GameMobilePage.tsx:1289",className:"text-yellow-400 font-bold text-sm",children:xt.totalPoints.toLocaleString()})]},xt.participantId))})]}),gt&&s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1298",className:"bg-yellow-500/15 border border-yellow-500/30 rounded-2xl p-4 mb-4 text-right animate-in slide-in-from-bottom-4 duration-500 delay-400",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1299",className:"text-yellow-300 font-bold text-sm mb-1",children:"ð¡ ÙØ§ ØªØ¶ÙØ¹ ÙÙØ§Ø·Ù!"}),s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1300",className:"text-yellow-200/60 text-xs mb-3",children:"سجÙ٠دخÙÙÙ ÙØÙØ¸ ÙÙØ§Ø·Ù ÙØ§ÙظÙÙØ± ÙÙ ÙÙØØ© اÙ٠تصدرÙÙ Ø§ÙØ¯Ø§Ø¦Ù Ø©"}),s.jsx(Ie,{"data-loc":"client/src/pages/GameMobilePage.tsx:1301",onClick:()=>t("/"),className:"w-full bg-yellow-500 text-black font-bold hover:bg-yellow-400 rounded-xl h-10 text-sm",children:"Ø¥ÙØ´Ø§Ø¡ ØØ³Ø§Ø¨ Ù Ø¬Ø§ÙØ§Ù ð"})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/GameMobilePage.tsx:1308",onClick:()=>{const Mt=`ð ${nt?`اÙÙ Ø±ÙØ² #${nt}`:"Ø´Ø§Ø±ÙØª"} ÙÙ Ù Ø³Ø§Ø¨ÙØ© "${C}" ب٠${me.toLocaleString()} ÙÙØ·Ø©! ð 1089Ø¬Ø±ÙØ¨ اÙÙ ÙØµØ©: ${window.location.origin}`;window.open(`https://wa.me/?text=${encodeURIComponent(Mt)}`,"_blank")},className:"w-full h-12 bg-green-500 hover:bg-green-400 text-white font-bold rounded-2xl transition-all active:scale-95 animate-in slide-in-from-bottom-4 duration-500 delay-500 flex items-center justify-center gap-2 mb-3",children:[s.jsx(Lr,{"data-loc":"client/src/pages/GameMobilePage.tsx:1316",size:18}),"Ø´Ø§Ø±Ù ÙØªÙجت٠عÙÙ ÙØ§ØªØ³Ø§Ø¨"]}),s.jsxs("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1321",className:"bg-white/5 rounded-2xl p-4 mb-3 animate-in slide-in-from-bottom-4 duration-500 delay-600",children:[s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1322",className:"text-purple-200 text-sm font-bold mb-3 text-center",children:"â ÙÙÙ٠تجربة اÙÙ Ø³Ø§Ø¨ÙØ©"}),xe?s.jsx("p",{"data-loc":"client/src/pages/GameMobilePage.tsx:1341",className:"text-green-400 text-center font-bold text-sm py-2",children:"â Ø´Ùرا٠عÙ٠تÙÙÙÙ Ù!"}):s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1324",className:"flex items-center justify-center gap-2 mb-3",children:[1,2,3,4,5].map(xt=>s.jsx("button",{"data-loc":"client/src/pages/GameMobilePage.tsx:1326",onClick:()=>et(xt),onMouseEnter:()=>bt(xt),onMouseLeave:()=>bt(0),className:"transition-transform active:scale-90",children:s.jsx(Sn,{"data-loc":"client/src/pages/GameMobilePage.tsx:1333",size:32,className:`transition-colors ${(Tt||pe)>=xt?"fill-yellow-400 text-yellow-400":"text-white/30"}`})},xt))}),pe>0&&!xe&&s.jsx(Ie,{"data-loc":"client/src/pages/GameMobilePage.tsx:1344",onClick:async()=>{try{await fetch("/api/trpc/game.rateSession",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({json:{sessionId:j,participantId:k,displayName:mt,rating:pe}})})}catch{}it(!0)},className:"w-full h-9 bg-yellow-500 hover:bg-yellow-400 text-black font-bold rounded-xl text-sm",children:"Ø¥Ø±Ø³Ø§Ù Ø§ÙØªÙÙÙÙ "})]}),s.jsx(Ie,{"data-loc":"client/src/pages/GameMobilePage.tsx:1364",onClick:()=>
1089t(gt?"/":"/dashboard"),className:"w-full h-12 bg-white/20 hover:bg-white/30 text-white font-bold rounded-2xl border border-white/30 backdrop-blur transition-all active:scale-95 animate-in slide-in-from-bottom-4 duration-500 delay-700",children:gt?"ð Ø§ÙØµÙØØ© Ø§ÙØ±Ø¦ÙØ³ÙØ©":"ð Ø§ÙØ¹Ùدة ÙÙÙ
ÙØµØ©"})]})]})}return s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1376",className:"game-mobile-stage min-h-screen bg-gradient-to-br from-violet-900 to-indigo-900 flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/GameMobilePage.tsx:1377",className:"text-white text-xl animate-pulse",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."})})}const b5={all:{label:"اÙÙÙ",icon:"ð",color:"bg-gray-100 text-gray-700 border-gray-300"},daily_content:{label:"Ù
ØØªÙÙ ÙÙÙ
Ù Ø¬Ø¯ÙØ¯",icon:"â¨",color:"bg-memphis-mint text-emerald-800 border-emerald-300"},task_reactivated:{label:"Ù
ÙÙ
Ø© Ø£ÙØ¹Ùد ØªÙØ¹ÙÙÙØ§",icon:"â»",color:"bg-memphis-yellow text-yellow-800 border-yellow-300"},new_puzzle:{label:"ÙØºØ² Ø¬Ø¯ÙØ¯",icon:"ð§©",color:"bg-purple-100 text-purple-700 border-purple-300"},level_up:{label:"ترÙÙØ© Ù
ستÙÙ",icon:"â¬ï¸",color:"bg-green-100 text-green-700 border-green-300"},badge_earned:{label:"شارة Ø¬Ø¯ÙØ¯Ø©",icon:"ð
",color:"bg-yellow-100 text-yellow-700 border-yellow-300"},prize_approved:{label:"جائزة Ù
ÙØ§Ù٠عÙÙÙØ§",icon:"ð",color:"bg-pink-100 text-pink-700 border-pink-300"},streak_updated:{label:"Ø³ÙØ³ÙØ© Ø§ÙØ£ÙاÙ
",icon:"ð¥",color:"bg-orange-100 text-orange-700 border-orange-300"},team_joined:{label:"Ø¹Ø¶Ù Ø¬Ø¯ÙØ¯",icon:"ð¥",color:"bg-blue-100 text-blue-700 border-blue-300"},team_challenge_complete:{label:"ØªØØ¯Ù اÙÙØ±ÙÙ",icon:"ð",color:"bg-indigo-100 text-indigo-700 border-indigo-300"},mention:{label:"ذÙÙØ±Øª",icon:"ð¬",color:"bg-teal-100 text-teal-700 border-teal-300"},reaction:{label:"ØªÙØ§Ø¹Ù",icon:"â¤ï¸",color:"bg-red-100 text-red-700 border-red-300"},peak_puzzle:{label:"Ù
Ø´Ø§Ø±ÙØ© ÙÙØ§Ø³ÙØ©",icon:"ð¥",color:"bg-amber-100 text-amber-800 border-amber-300"}},aU=15;function Tze(e){const t=Date.now()-new Date(e).getTime(),a=Math.floor(t/6e4);if(a<1)return"Ø§ÙØ¢Ù";if(a<60)return`Ù
ÙØ° ${a} دÙÙÙØ©`;const n=Math.floor(a/60);if(n<24)return`Ù
ÙØ° ${n} ساعة`;const r=Math.floor(n/24);return r<7?`Ù
ÙØ° ${r} ÙÙÙ
`:new Date(e).toLocaleDateString("ar-SA")}function Dze(){const{isAuthenticated:e,loading:t}=Ma(),[a,n]=P.useState(""),[r,i]=P.useState("all"),[o,l]=P.useState(1),[c,d]=P.useState(!1),{data:m,isLoading:f,refetch:h}=J.notifications.listFiltered.useQuery({type:r==="all"?void 0:r,search:a||void 0,page:o,pageSize:aU},{enabled:e}),x=J.notifications.markAllRead.useMutation({onSuccess:()=>{re.success("تÙ
تعÙÙÙ
جÙ
ÙØ¹ Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª ÙÙ
ÙØ±Ùءة â
"),h()},onError:()=>re.error("ØØ¯Ø« خطأ")}),b=J.notifications.markRead.useMutation({onSuccess:()=>h(),onError:()=>re.error("ØØ¯Ø« خطأ")}),y=P.useMemo(()=>m?.items?c?m.items.filter(N=>!N.isRead):m.items:[],[m?.items,c]),w=Math.ceil((m?.total??0)/aU),j=m?.items?.filter(N=>!N.isRead).length??0;return t?s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:71",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:72",className:"w-10 h-10 border-4 border-black border-t-memphis-lilac rounded-full animate-spin"})}):e?s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:87",className:"min-h-screen memphis-bg",children:[s.jsx(jn,{"data-loc":"client/src/pages/NotificationsPage.tsx:88"}),s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:89",className:"max-w-3xl mx-auto px-4 py-8",children:[s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:91",className:"memphis-card bg-memphis-lilac p-5 mb-6 flex items-center justify-between gap-3 flex-wrap",children:[s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:92",className:"flex items-center gap-3",children:[s.jsx(j6,{"data-loc":"client/src/pages/NotificationsPage.tsx:93",className:"w-8 h-8 text-black"}),s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:94",children:[s.jsx("h1",{"data-loc":"client/src/pages/NotificationsPage.tsx:95",className:"font-black text-xl text-black",children:"Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª"}),s.jsx("p",{"data-loc":"client/src/pages/NotificationsPage.tsx:96",className:"text-black/60 text-sm font-medium",children:j>0?`${j} إشعار ØºÙØ± Ù
ÙØ±ÙØ¡`:"جÙ
ÙØ¹ Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª Ù
ÙØ±Ùءة"})]})]}),j>0&&s.jsxs("button",{"data-loc":"client/src/pages/NotificationsPage.tsx:102",onClick:()=>x.mutate(),disabled:x.isPending,className:"flex items-center gap-1.5 px-4 py-2 bg-black text-white rounded-xl font-black text-sm border-2 border-black hover:bg-black/80 transition-colors",children:[s.jsx(fC,{"data-loc":"client/src/pages/NotificationsPage.tsx:107",className:"w-4 h-4"}),x.isPending?"جارÙ...":"تعÙÙÙ
اÙÙÙ ÙÙ
ÙØ±ÙØ¡"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:114",className:"memphis-card bg-white p-4 mb-5 space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:116",className:"relative",children:[s.jsx(xl,{"data-loc":"client/src/pages/NotificationsPage.tsx:117",className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-black/40"}),s.jsx("input",{"data-loc":"client/src/pages/NotificationsPage.tsx:118",type:"text",value:a,onChange:N=>{n(N.target.value),l(1)},placeholder:"Ø§Ø¨ØØ« ÙÙ Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª...",className:"w-full pr-10 pl-4 py-2.5 border-2 border-black rounded-xl font-medium text-sm focus:outline-none focus:border-memphis-lilac bg-gray-50"})]}),s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:128",className:"flex gap-2 flex-wrap items-center",children:[s.jsx(fW,{"data-loc":"client/src/pages/NotificationsPage.tsx:129",className:"w-4 h-4 text-black/50 flex-shrink-0"}),Object.entries(b5).map(([N,k])=>s.jsxs("button",{"data-loc":"client/src/pages/NotificationsPage.tsx:131",onClick:()=>{i(N),l(1)},className:`px-3 py-1 rounded-full text-xs font-black border transition-all ${r===N?"bg-black text-white border-black shadow-[2px_2px_0px_0px_rgba(0,0,0,0.3)]":`${k.color} border hover:opacity-80`}`,children:[k.icon," ",k.label]},N))]}),s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:146",className:"flex items-center gap-2",children:[s.jsx("button",{"data-loc":"client/src/pages/NotificationsPage.tsx:147",onClick:()=>d(!c),className:`relative inline-flex h-6 w-11 items-center rounded-full border-2 border-black transition-colors ${c?"bg-black":"bg-gray-200"}`,children:s.jsx("span",{"data-loc":"client/src/pages/NotificationsPage.tsx:151",className:`inline-block h-4 w-4 roun
1089ded-full bg-white border border-black transition-transform ${c?"translate-x-1":"translate-x-5"}`})}),s.jsx("span",{"data-loc":"client/src/pages/NotificationsPage.tsx:153",className:"text-sm font-bold text-black",children:"ØºÙØ± اÙÙ
ÙØ±Ùءة ÙÙØ·"})]})]}),f?s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:159",className:"text-center py-16",children:[s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:160",className:"w-10 h-10 border-4 border-black border-t-memphis-lilac rounded-full animate-spin mx-auto mb-3"}),s.jsx("p",{"data-loc":"client/src/pages/NotificationsPage.tsx:161",className:"font-bold text-black/50",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."})]}):y.length===0?s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:164",className:"memphis-card bg-white p-12 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:165",className:"text-6xl mb-4",children:"ð"}),s.jsx("h3",{"data-loc":"client/src/pages/NotificationsPage.tsx:166",className:"font-black text-xl text-black mb-2",children:"ÙØ§ ØªÙØ¬Ø¯ إشعارات"}),s.jsx("p",{"data-loc":"client/src/pages/NotificationsPage.tsx:167",className:"text-black/50 font-medium",children:a||r!=="all"||c?"ÙØ§ ØªÙØ¬Ø¯ ÙØªØ§Ø¦Ø¬ ØªØ·Ø§Ø¨Ù Ø¨ØØ«Ù â Ø¬Ø±Ùب تغÙÙØ± اÙÙÙØªØ±":"Ø³ØªØ¸ÙØ± ÙÙØ§ Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª Ø¹ÙØ¯ ÙØµÙÙÙØ§"})]}):s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:174",className:"space-y-2",children:y.map(N=>{const k=b5[N.type]??b5.all;return s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:178",onClick:()=>{N.isRead||b.mutate()},className:`memphis-card p-4 flex items-start gap-3 cursor-pointer transition-all hover:translate-x-[-1px] hover:translate-y-[-1px] ${N.isRead?"bg-white opacity-75":"bg-white border-l-4 border-l-memphis-lilac"}`,children:[s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:186",className:`w-10 h-10 rounded-xl flex items-center justify-center text-xl flex-shrink-0 border-2 border-black ${k.color}`,children:k.icon}),s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:191",className:"flex-1 min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:192",className:"flex items-start justify-between gap-2",children:[s.jsx("h4",{"data-loc":"client/src/pages/NotificationsPage.tsx:193",className:`font-black text-sm text-black leading-tight ${N.isRead?"text-black/70":"text-black"}`,children:N.title}),!N.isRead&&s.jsx("span",{"data-loc":"client/src/pages/NotificationsPage.tsx:197",className:"w-2.5 h-2.5 rounded-full bg-memphis-lilac border-2 border-black flex-shrink-0 mt-1"})]}),s.jsx("p",{"data-loc":"client/src/pages/NotificationsPage.tsx:200",className:"text-xs text-black/60 font-medium mt-0.5 leading-relaxed",children:N.body}),s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:201",className:"flex items-center gap-2 mt-1.5 flex-wrap",children:[s.jsxs("span",{"data-loc":"client/src/pages/NotificationsPage.tsx:202",className:`px-2 py-0.5 rounded-full text-xs font-bold border ${k.color}`,children:[k.icon," ",k.label]}),s.jsx("span",{"data-loc":"client/src/pages/NotificationsPage.tsx:205",className:"text-xs text-black/40 font-medium",children:Tze(N.createdAt)}),N.type==="peak_puzzle"&&N.relatedId&&s.jsx(jt,{"data-loc":"client/src/pages/NotificationsPage.tsx:207",href:"/admin/puzzles",className:"mr-auto",children:s.jsx("span",{"data-loc":"client/src/pages/NotificationsPage.tsx:208",className:"inline-flex items-center gap-1 bg-black text-white px-2 py-1 rounded-lg text-xs font-black hover:bg-memphis-yellow hover:text-black transition-colors",children:"ð Ø¹Ø±Ø¶ اÙÙØºØ² ÙÙ Ø§ÙØ¥Ø¯Ø§Ø±Ø©"})})]})]})]},N.id)})}),w>1&&s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:223",className:"flex items-center justify-center gap-3 mt-6",children:[s.jsxs("button",{"data-loc":"client/src/pages/NotificationsPage.tsx:224",onClick:()=>l(N=>Math.max(1,N-1)),disabled:o===1,className:"flex items-center gap-1 px-4 py-2 bg-white border-2 border-black rounded-xl font-black text-sm disabled:opacity-40 hover:bg-memphis-peach transition-colors",children:[s.jsx(r2,{"data-loc":"client/src/pages/NotificationsPage.tsx:229",className:"w-4 h-4"})," Ø§ÙØ³Ø§Ø¨Ù"]}),s.jsxs("span",{"data-loc":"client/src/pages/NotificationsPage.tsx:231",className:"font-black text-sm text-black bg-white border-2 border-black px-4 py-2 rounded-xl",children:[o," / ",w]}),s.jsxs("button",{"data-loc":"client/src/pages/NotificationsPage.tsx:234",onClick:()=>l(N=>Math.min(w,N+1)),disabled:o===w,className:"flex items-center gap-1 px-4 py-2 bg-white border-2 border-black rounded-xl font-black text-sm disabled:opacity-40 hover:bg-memphis-peach transition-colors",children:["Ø§ÙØªØ§ÙÙ ",s.jsx(s2,{"data-loc":"client/src/pages/NotificationsPage.tsx:239",className:"w-4 h-4"})]})]})]})]}):s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:77",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsxs("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:78",className:"memphis-card p-10 text-center max-w-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/NotificationsPage.tsx:79",className:"text-5xl mb-4",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/NotificationsPage.tsx:80",className:"font-black text-2xl text-black mb-3",children:"ÙØ¬Ø¨ تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"}),s.jsx(jt,{"data-loc":"client/src/pages/NotificationsPage.tsx:81",href:"/",children:s.jsx("button",{"data-loc":"client/src/pages/NotificationsPage.tsx:81",className:"memphis-btn bg-memphis-lilac px-6 py-3 font-black text-black w-full",children:"Ø§ÙØµÙØØ© Ø§ÙØ±Ø¦ÙØ³ÙØ©"})})]})})}const gv=[{bg:"bg-red-600",border:"border-red-400"},{bg:"bg-blue-600",border:"border-blue-400"},{bg:"bg-yellow-600",border:"border-yellow-400"},{bg:"bg-green-600",border:"border-green-400"}],Eze=["â²","â","â","â
"];function Mze(){const{id:e}=Ol(),t=parseInt(e??"0"),a=P.useRef(null),[n,r]=P.useState("waiting"),[i,o]=P.useState("اÙÙ
Ø³Ø§Ø¨ÙØ©"),[l,c]=P.useState([]),[d,m]=P.useState(null),[f,h]=P.useState(0),[x,b]=P.useState(0),[y,w]=P.useState(0),[j,N]=P.useState(null),[k,D]=P.useState([]),[C,S]=P.useState([]),[A,E]=P.useState(null),[R,F]=P.useState({}),[I,H]=P.useState(""),[_,V]=P.useState(8),W=P.useRef(null),B=P.useRef(null),[K,ae]=P.useState("points"),{data:$}=J.game.getSpeedLeaderboard.useQuery({sessionId:t},{enabled:t>0&&n==="finished"}),Z=$??[];P.useEffect(()=>{if(!t)return;const Q=lu({path:"/socket.io"});return a.current=Q,H(`${window.location.origin}/game/join/${t}`),Q.on("connect",()=>{Q.emit("projector:join",{sessionId:t})}),Q.on("host:state",({session:U,participants:oe})=>{o(U?.title??"اÙÙ
Ø³Ø§Ø¨ÙØ©"),c(oe??[]),w(oe?.length??0)}),Q.on("game:participants_updated",({participants:U})=>{c(U??[]),w(U?.length??0)}),Q.on("game:started",()=>{r("waiting")}),Q.on("game:question_started",U=>{m(U),N(null),b(0),F({}),h(U.timeLimitSeconds),r("question"),W.current&&clearInterval(W.current),B.current&&clearInterval(B.current),W.current=setInterval(()=>{h(oe=>oe<=1?(clearInterval(W.current),0):oe-1)},1e3)}),Q.on("host:answer_update",({answeredCount:U,totalParticipants:oe,answerDistribution:X})=>{b(U),oe&&w(oe),X&&F(X)}),Q.on("game:question_results",({correctAnswer:U,leaderboard:oe,teamScores:X})=>{W.current&&clearInterval(W.current),N(U),D(oe??[]),X&&X.length>0&&S(X),r("answer_reveal"),setTimeout(()=>{r("leaderboard"),V(8),B.current&&clearInterval(B.current),B.current=setInterval(()=>{V(ne=>ne<=1?(clearInterval(B.current),0):ne-1)},1e3)},5e3)}),Q.on("game:finished",({leaderboard:U,teamResults:oe})=>{W.current&&clearInterval(W.current),B.current&&clearInterval(B.current),D(U??[]),E(U?.[0]??null),oe&&oe.length>0&&S(oe),r("finished")}),()=>{W.current&&clearInterval(W.current),B.current&&clearInterval(B.current),Q.disconnect()}},[t]),P.useEffect(()=>{if(n==="finished"){const U=Date.now()+5e3,oe=()=>{ii({particleCount:4,angle:60,spread:55,origin:{x:0},colors:["#FFD700","#FF6B6B","#4ECDC4","#45B7D1","#96CEB4"]}),ii({particleCount:4,angle:120,spread:55,origin:{x:1},colors:["#FFD700","#FF6B6B","#4ECDC4","#45B7D1","#96CEB4"]}),Date.now()<U&&requestAnimationFrame(oe)};oe()}},[n]);const O=d?f/d.timeLimitSeconds*100:0,Y=y>0?Math.min(100,x/y*100):0;if(n==="waiting")return s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:201",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 flex flex-col items-center justify-center p-8",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:202",className:"w-full max-w-6xl flex flex-col md:flex-row items-center justify-between gap-12",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:203",className:"flex-1 text-center md:text-right",children:[s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:204",className:"text-8xl mb-6",children:"ð®"}),s.jsx("h1",{"data-loc":"client/src/pages/ProjectorPage.tsx:205",className:"text-6xl font-black text-white mb-4",children:i}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:206",className:"text-purple-300 text-2xl mb-8",children:"ÙÙ Ø§ÙØªØ¸Ø§Ø± بدء اÙÙ
Ø³Ø§Ø¨ÙØ©..."}),s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:207",className:"flex items-center justify-center md:justify-start gap-3 bg-white/10 rounded-2xl px-8 py-4 mb-6 w-fit",children:[s.jsx(ln,{"data-loc":"client/src/pages/ProjectorPage.tsx:208",className:"w-8 h-8 text-purple-300"}),s.jsxs("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:209",className:"text-white text-3xl font-bold",children:[l.length," Ù
شارÙ"]})]}),l.length>0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:212",className:"flex flex-wrap gap-3 justify-center md:justify-start max-w-xl",children:l.map(Q=>s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:214",className:"bg-white/10 text-white text-lg px-4 py-2 rounded-full border border-white/20",children:Q.displayName}
1089,Q.id))})]}),I&&s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:222",className:"flex flex-col items-center gap-4 shrink-0",children:[s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:223",className:"bg-white rounded-3xl p-6 shadow-2xl",children:s.jsx(mw,{"data-loc":"client/src/pages/ProjectorPage.tsx:224",value:I,size:220,level:"H"})}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:226",className:"text-white text-2xl font-bold",children:"اÙ
Ø³Ø ÙÙØ§ÙضÙ
اÙ
"}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:227",className:"text-purple-300 text-sm font-mono bg-white/10 px-4 py-2 rounded-xl text-center",children:I})]})]})});if(n==="question"&&d){const Q=d.options?JSON.parse(d.options):[],U=Object.values(R).reduce((oe,X)=>oe+X,0);return s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:240",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 flex flex-col p-6",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:241",className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:242",className:"bg-white/10 rounded-xl px-5 py-2 text-white font-bold text-xl",children:["سؤا٠",d.questionIndex+1," / ",d.totalQuestions]}),s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:245",className:`flex items-center gap-2 bg-white/10 rounded-xl px-6 py-3 ${f<=5?"bg-red-500/30 animate-pulse":""}`,children:[s.jsx(xi,{"data-loc":"client/src/pages/ProjectorPage.tsx:246",className:`w-7 h-7 ${f<=5?"text-red-300":"text-yellow-300"}`}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:247",className:`text-5xl font-black ${f<=5?"text-red-300":"text-white"}`,children:f})]}),s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:249",className:"flex flex-col items-center bg-white/10 rounded-xl px-5 py-2 min-w-[150px]",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:250",className:"flex items-center gap-2 mb-1",children:[s.jsx(cr,{"data-loc":"client/src/pages/ProjectorPage.tsx:251",className:"w-5 h-5 text-green-400"}),s.jsxs("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:252",className:"text-white font-bold text-lg",children:[x," / ",y," أجاب"]})]}),s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:254",className:"w-full bg-white/20 rounded-full h-2",children:s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:255",className:"h-2 rounded-full bg-green-400 transition-all duration-500",style:{width:`${Y}%`}})})]})]}),s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:259",className:"w-full bg-white/10 rounded-full h-3 mb-6",children:s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:260",className:`h-3 rounded-full transition-all duration-1000 ${f<=5?"bg-red-500":"bg-yellow-400"}`,style:{width:`${O}%`}})}),s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:262",className:"flex-1 flex items-center justify-center mb-6",children:s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:263",className:"bg-white/10 backdrop-blur rounded-3xl p-10 max-w-4xl w-full text-center",children:s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:264",className:"text-white text-4xl md:text-5xl font-bold leading-relaxed",children:d.questionText})})}),Q.length>0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:268",className:"grid grid-cols-2 gap-4 max-w-5xl mx-auto w-full",children:Q.map((oe,X)=>{const ne=R[oe]??0,ge=U>0?Math.round(ne/U*100):0;return s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:273",className:`${gv[X%4].bg} border-2 ${gv[X%4].border} rounded-2xl p-5 text-white font-bold`,children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:274",className:"flex items-center gap-3 mb-3",children:[s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:275",className:"text-3xl",children:Eze[X%4]}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:276",className:"text-2xl flex-1",children:oe}),U>0&&s.jsxs("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:277",className:"text-white/80 text-xl font-black",children:[ge,"%"]})]}),U>0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:280",className:"w-full bg-black/20 rounded-full h-3",children:s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:281",className:"h-3 rounded-full bg-white/60 transition-all duration-700",style:{width:`${ge}%`}})}),U>0&&s.jsxs("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:284",className:"text-white/70 text-sm mt-1",children:[ne," إجابة"]})]},X)})}),d.questionType==="true_false"&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:291",className:"grid grid-cols-2 gap-6 max-w-2xl mx-auto w-full",children:["صØ","خطأ"].map((oe,X)=>{const ne=R[oe]??0,ge=U>0?Math.round(ne/U*100):0;return s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:296",className:`${X===0?"bg-green-600 border-green-400":"bg-red-600 border-red-400"} border-2 rounded-2xl p-6 text-white font-bold`,children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:297",className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:298",className:"text-3xl",children:[X===0?"â
":"â"," ",oe]}),U>0&&s.jsxs("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:299",className:"text-2xl font-black",children:[ge,"%"]})]}),U>0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:302",className:"w-full bg-black/20 rounded-full h-3",children:s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:303",className:"h-3 rounded-full bg-white/60 transition-all duration-700",style:{width:`${ge}%`}})})]},oe)})})]})}if(n==="answer_reveal"){const Q=d?.options?JSON.parse(d.options):[],U=Object.values(R).reduce((oe,X)=>oe+X,0);return s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:320",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 flex flex-col p-6",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:321",className:"text-center mb-4",children:[s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:322",className:"text-4xl mb-2",children:"â
"}),s.jsx("h2",{"data-loc":"client/src/pages/ProjectorPage.tsx:323",className:"text-3xl font-bold text-white",children:"Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©"}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:324",className:"text-purple-300 text-sm mt-1",children:"Ø³ØªØ¸ÙØ± ÙÙØØ© Ø§ÙØµØ¯Ø§Ø±Ø© Ø®ÙØ§Ù ÙØØ¸Ø§Øª..."})]}),s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:326",className:"bg-white/10 rounded-3xl p-6 mb-4 max-w-3xl mx-auto w-full text-center",children:s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:327",className:"text-white text-2xl font-bold",children:d?.questionText})}),Q.length>0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:330",className:"grid grid-cols-2 gap-4 max-w-3xl mx-auto w-full mb-4",children:Q.map((oe,X)=>{const ne=R[oe]??0,ge=U>0?Math.round(ne/U*100):0,me=oe===j;return s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:336",className:`border-2 rounded-2xl p-5 font-bold transition-all ${me?`${gv[X%4].bg} ${gv[X%4].border} scale-105 shadow-lg`:"bg-white/5 border-white/10"}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:337",className:"flex items-center gap-2 mb-2",children:[me&&s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:338",className:"text-2xl",children:"â
"}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:339",className:`text-xl flex-1 ${me?"text-white":"text-white/40"}`,children:oe}),s.jsxs("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:340",className:`font-black text-xl ${me?"text-white":"text-white/40"}`,children:[ge,"%"]})]}),s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:342",className:"w-full bg-black/20 rounded-full h-3",children:s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:343",className:`h-3 rounded-full transition-all duration-700 ${me?"bg-white":"bg-white/20"}`,style:{width:`${ge}%`}})}),s.jsxs("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:345",className:`text-sm mt-1 ${me?"text-white/80":"text-white/30"}`,children:[ne," إجابة"]})]},X)})}),d?.questionType==="true_false"&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:352",className:"grid grid-cols-2 gap-6 max-w-2xl mx-auto w-full mb-4",children:["صØ","خطأ"].map((oe,X)=>{const ne=R[oe]??0,ge=U>0?Math.round(ne/U*100):0,me=oe===j;return s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:358",className:`border-2 rounded-2xl p-8 font-bold text-3xl text-center ${me?X===0?"bg-green-500 border-green-300 scale-105":"bg-red-500 border-red-300 scale-105":"bg-white/5 border-white/10"}`,children:[s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:359",className:me?"text-white":"text-white/40",children:X===0?"â
صØ":"â Ø®Ø·Ø£"}),U>0&&s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:360",className:`text-xl mt-2 ${me?"text-white/80":"text-white/30"}`,children:[ge,"% (",ne,")"]})]},oe)})})]})}return n==="leaderboard"?s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:373",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 flex flex-col items-center justify-center p-8",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:374",className:"w-full max-w-4xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:376",className:"text-center mb-6",children:[s.jsx(aa,{"data-loc":"client/src/pages/ProjectorPage.tsx:377",className:"w-16 h-16 text-yellow-400 mx-auto mb-2"}),s.jsx("h2",{"data-loc":"client/src/pages/ProjectorPage.tsx:378",className:"text-5xl font-black text-white mb-1",children:"Ø§ÙØªØ±ØªÙب Ø§ÙØØ§ÙÙ"}),_>0&&s.jsxs("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:380",className:"text-purple-300 text-lg",children:["ÙØ³ØªÙ
ر Ø§ÙØ³Ø¤Ø§Ù Ø§ÙØªØ§ÙÙ Ø®ÙØ§Ù ",_," ثاÙÙØ©"]})]}),C.length>0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:386",className:"grid grid-cols-2 gap-4 mb-6 max-w-lg mx-auto",children:C.map((Q,U)=>s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:388",className:`rounded-2xl p-4 border-2 text-center ${U===0?"bg-blue-500/25 border-blue-400/60":"bg-red-500/25 border-red-400/60"}`,children:[s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:389",className:"text-white font-bold text-xl",children:Q.teamName}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:390",className:"text-yellow-300 font-black text-4xl",children:Q.totalPoints.toLocaleStr
1089ing()}),s.jsxs("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:391",className:"text-white/50 text-sm",children:[Q.memberCount," عضÙ"]})]},Q.teamId))}),s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:398",className:"space-y-3",children:k.slice(0,8).map((Q,U)=>s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:400",className:`flex items-center gap-4 rounded-2xl px-6 py-4 transition-all ${U===0?"bg-yellow-500/25 border-2 border-yellow-400/60 scale-102":U===1?"bg-gray-400/20 border border-gray-400/40":U===2?"bg-orange-500/20 border border-orange-500/40":"bg-white/8 border border-white/10"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:409",className:"text-3xl font-black text-white w-10 text-center",children:U+1}),U===0&&s.jsx(Gs,{"data-loc":"client/src/pages/ProjectorPage.tsx:410",className:"w-8 h-8 text-yellow-400 shrink-0"}),U===1&&s.jsx(Sn,{"data-loc":"client/src/pages/ProjectorPage.tsx:411",className:"w-8 h-8 text-gray-300 shrink-0"}),U===2&&s.jsx(aa,{"data-loc":"client/src/pages/ProjectorPage.tsx:412",className:"w-8 h-8 text-orange-400 shrink-0"}),U>2&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:413",className:"w-8 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:414",className:"flex-1 text-right text-white font-bold text-2xl",children:Q.displayName}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:415",className:"text-yellow-300 font-black text-3xl",children:Q.totalPoints.toLocaleString()})]},Q.participantId))})]})}):n==="finished"?s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:427",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 flex flex-col items-center justify-center p-8",dir:"rtl",children:[s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:428",className:"text-8xl mb-4 animate-bounce",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/ProjectorPage.tsx:429",className:"text-6xl font-black text-white mb-2",children:"Ø§ÙØªÙت اÙÙ
Ø³Ø§Ø¨ÙØ©!"}),s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:431",className:"w-full max-w-3xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:432",className:"flex gap-3 mb-6 justify-center",children:[s.jsx("button",{"data-loc":"client/src/pages/ProjectorPage.tsx:433",onClick:()=>ae("points"),className:`px-8 py-3 rounded-2xl text-xl font-bold transition-all ${K==="points"?"bg-yellow-500 text-black scale-105 shadow-lg":"bg-white/10 text-white hover:bg-white/20"}`,children:"ð ÙÙØØ© اÙÙÙØ§Ø·"}),s.jsx("button",{"data-loc":"client/src/pages/ProjectorPage.tsx:439",onClick:()=>ae("speed"),className:`px-8 py-3 rounded-2xl text-xl font-bold transition-all ${K==="speed"?"bg-cyan-500 text-black scale-105 shadow-lg":"bg-white/10 text-white hover:bg-white/20"}`,children:"â¡ ÙÙØØ© Ø§ÙØ³Ø±Ø¹Ø©"})]}),K==="points"&&s.jsxs(s.Fragment,{children:[A&&s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:449",className:"bg-yellow-500/20 border-2 border-yellow-400/50 rounded-3xl px-12 py-6 mb-6 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:450",className:"text-yellow-300 text-xl mb-1",children:"ð¥ Ø§ÙÙØ§Ø¦Ø²"}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:451",className:"text-white text-5xl font-black",children:A.displayName}),s.jsxs("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:452",className:"text-yellow-300 text-2xl mt-2",children:[A.totalPoints.toLocaleString()," ÙÙØ·Ø©"]})]}),C.length>0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:456",className:"grid grid-cols-2 gap-4 mb-6 max-w-lg mx-auto",children:C.map((Q,U)=>s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:458",className:`rounded-2xl p-5 border-2 text-center ${U===0?"bg-yellow-500/25 border-yellow-400/60 scale-105":"bg-white/10 border-white/20"}`,children:[U===0&&s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:459",className:"text-2xl mb-1",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:460",className:"text-white font-bold text-xl",children:Q.teamName}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:461",className:"text-yellow-300 font-black text-4xl",children:Q.totalPoints.toLocaleStr
1089ing()}),U===0&&s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:462",className:"text-yellow-300/70 text-sm mt-1",children:"اÙÙØ±Ù٠اÙÙØ§Ø¦Ø²"})]},Q.teamId))}),s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:467",className:"space-y-3",children:k.slice(0,8).map((Q,U)=>s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:469",className:`flex items-center gap-4 rounded-2xl px-6 py-4 ${U===0?"bg-yellow-500/20 border border-yellow-500/40":U===1?"bg-gray-400/20 border border-gray-400/40":U===2?"bg-orange-500/20 border border-orange-500/40":"bg-white/10 border border-white/10"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:470",className:"text-3xl font-black text-white w-8",children:U+1}),U===0&&s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:471",className:"text-2xl",children:"ð"}),U===1&&s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:472",className:"text-2xl",children:"ð¥"}),U===2&&s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:473",className:"text-2xl",children:"ð¥"}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:474",className:"flex-1 text-right text-white font-bold text-xl",children:Q.displayName}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:475",className:"text-yellow-300 font-black text-2xl",children:Q.totalPoints.toLocaleString()})]},Q.participantId))})]}),K==="speed"&&s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:482",children:[s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:483",className:"text-cyan-300 text-center text-lg mb-4",children:"Ù
Ø±ØªÙØ¨ÙÙ ØØ³Ø¨ Ù
ØªÙØ³Ø· ÙÙØª Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© (Ø§ÙØ£Ø³Ø±Ø¹ Ø£ÙÙØ§Ù)"}),Z.length>0?s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:485",className:"space-y-3",children:Z.slice(0,8).map((Q,U)=>{const oe=(Q.avgResponseMs/1e3).toFixed(2);return s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:489",className:`flex items-center gap-4 roun
1089ded-2xl px-6 py-4 ${U===0?"bg-cyan-500/25 border-2 border-cyan-400/60":U===1?"bg-cyan-400/15 border border-cyan-400/30":U===2?"bg-cyan-300/10 border border-cyan-300/20":"bg-white/10 border border-white/10"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:490",className:"text-4xl",children:U===0?"ð":U===1?"â¡":U===2?"ð¨":`${U+1}`}),s.jsx("span",{"data-loc":"client/src/pages/ProjectorPage.tsx:491",className:"flex-1 text-right text-white font-bold text-xl",children:Q.displayName}),s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:492",className:"text-left",children:[s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:493",className:"text-cyan-300 font-black text-2xl",children:[oe,"Ø«"]}),s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:494",className:"text-white/50 text-sm",children:[Q.correctCount," صØÙØØ©",Q.fastAnswers>0?` · ${Q.fastAnswers} Ø®Ø§Ø·ÙØ© â¡`:""]})]})]},Q.participantId)})}):s.jsxs("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:501",className:"text-center py-12 text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:502",className:"text-6xl mb-4",children:"â¡"}),s.jsx("p",{"data-loc":"client/src/pages/ProjectorPage.tsx:503",className:"text-2xl",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات سرعة بعد"})]})]})]})]}):s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:514",className:"min-h-screen bg-gradient-to-br from-indigo-950 via-purple-900 to-indigo-900 flex items-center justify-center",dir:"rtl",children:s.jsx("div",{"data-loc":"client/src/pages/ProjectorPage.tsx:515",className:"text-white text-2xl animate-pulse",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ..."})})}var Oze="Separator",nU="horizontal",Rze=["horizontal","vertical"],gte=P.forwardRef((e,t)=>{const{decorative:a,orientation:n=nU,...r}=e,i=zze(n)?n:nU,l=a?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return s.jsx(Zt.div,{"data-orientation":i,...l,...r,ref:t})});gte.displayName=Oze;function zze(e){return Rze.includes(e)}var _ze=gte;function Ize({className:e,orientation:t="horizontal",decorative:a=!0,...n}){return s.jsx(_ze,{"data-loc":"client/src/components/ui/separator.tsx:13","data-slot":"separator",decorative:a,orientation:t,className:zt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...n})}function sU(e){if(!e)return"ÙÙ
تتÙ
اÙÙ
زاÙ
ÙØ© بعد";const t=Math.max(0,Date.now()-new Date(e).getTime()),a=Math.floor(t/6e4);if(a<1)return"Ù
ÙØ° ÙØØ¸Ø§Øª";if(a<60)return`Ù
ÙØ° ${a} دÙÙÙØ©`;const n=Math.floor(a/60);return n<24?`Ù
ÙØ° ${n} ساعة`:`Ù
ÙØ° ${Math.floor(n/24)} ÙÙÙ
`}const rU=[{name:"ÙØ§ØªÙ ØµØºÙØ±",width:"320",height:"568"},{name:"ÙØ§ØªÙ ÙÙØ§Ø³Ù",width:"390",height:"844"},{name:"ÙØ§ØªÙ ÙØ¨Ùر",width:"430",height:"932"},{name:"Ø¬ÙØ§Ø² ÙÙØÙ Ø¹Ù
ÙØ¯Ù",width:"768",height:"1024"},{name:"Ø¬ÙØ§Ø² ÙÙØÙ Ø£ÙÙÙ",width:"1024",height:"768"}];function Lze(e){const t=[];for(const r of e){const[i,o,...l]=r.split("|").map(c=>c.trim());!i||!o||t.push({id:i,text:o,choices:l.filter(Boolean).flatMap(c=>c.split(",")).map((c,d)=>{const[m,f]=c.split(">").map(h=>h.trim());return{label:m||"ÙØ±Ø§Ø±",next:f||"end",index:d}})})}const a=new Set(t.map(r=>r.id)),n=t.flatMap(r=>r.choices.filter(i=>a.has(i.next)).map(i=>({from:r.id,to:i.next,label:i.label,choiceIndex:i.index})));return{nodes:t,edges:n}}function Fze({graph:e,onConnect:t}){const a=new Map(e.nodes.map((r,i)=>[r.id,{x:24+i%2*350,y:24+Math.floor(i/2)*112}])),n=Math.max(210,Math.ceil(e.nodes.length/2)*112+40);return e.nodes.length?s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",className:"overflow-x-auto rounded-xl border-2 border-black bg-white p-2","aria-label":"Ù
خطط Ø¹ÙØ§Ùات ÙØ±Ùع اÙÙØµØ©",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",className:"mb-2 text-xs font-black text-black/60",children:"Ø§Ø³ØØ¨ Ø¹ÙØ¯Ø© ÙØ£Ø³ÙØ·ÙØ§ ÙÙÙ Ø¹ÙØ¯Ø© Ø£Ø®Ø±Ù ÙØ¥Ùشاء Ø§ÙØªÙا٠Ù
باشر"}),s.jsxs("svg",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",width:"720",height:n,viewBox:`0 0 720 ${n}`,role:"img","aria-label":"Ø§ÙØ¹ÙØ§ÙØ§Øª بÙÙ Ù
راØÙ اÙÙØµØ©",children:[s.jsx("defs",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",children:s.jsx("marker",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",id:"story-arrow",viewBox:"0 0 10 10",refX:"9",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:s.jsx("path",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",d:"M 0 0 L 10 5 L 0 10 z",fill:"#111"})})}),e.edges.map((r,i)=>{const o=a.get(r.from),l=a.get(r.to);return!o||!l?null:s.jsxs("g",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",children:[s.jsx("line",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",x1:o.x+280,y1:o.y+38,x2:l.x,y2:l.y+38,stroke:"#111",strokeWidth:"2",markerEnd:"url(#story-arrow)"}),s.jsx("text",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",x:(o.x+280+l.x)/2,y:(o.y+l.y)/2+30,textAnchor:"middle",fontSize:"11",fontWeight:"700",fill:"#7c3aed",children:r.label})]},`${r.from}-${r.to}-${i}`)}),e.nodes.map(r=>{const i=a.get(r.id);return s.jsxs("g",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",onDragOver:o=>o.preventDefault(),onDrop:o=>{o.preventDefault();const l=o.dataTransfer.getData("text/story-node"),c=Number(o.dataTransfer.getData("text/story-choice-index"));l&&l!==r.id&&Number.isInteger(c)&&t(l,c,r.id)},children:[s.jsx("rect",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",x:i.x,y:i.y,width:"280",height:"92",rx:"12",fill:"#fef08a",stroke:"#111",strokeWidth:"3"}),s.jsx("text",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",x:i.x+14,y:i.y+20,fontSize:"13",fontWeight:"900",fill:"#111",children:r.id}),s.jsxs("text",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",x:i.x+14,y:i.y+41,fontSize:"11",fontWeight:"700",fill:"#111",children:[r.text.slice(0,32),r.text.length>32?"â¦":""]}),r.choices.slice(0,2).map(o=>s.jsxs("g",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",draggable:!0,onDragStart:l=>{l.stopPropagation(),l.dataTransfer.setData("text/story-node",r.id),l.dataTransfer.setData("text/story-choice-index",String(o.index))},children:[s.jsx("rect",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",x:i.x+10+o.index*132,y:i.y+52,width:"122",height:"26",rx:"7",fill:"#fff",stroke:"#111",strokeWidth:"2"}),s.jsxs("text",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:40",x:i.x+18+o.index*132,y:i.y+69,fontSize:"9",fontWeight:"800",fill:"#111",children:[o.label.slice(0,17),o.label.length>17?"â¦":""]})]},`${r.id}-${o.index}`))]},r.id)})]})]}):s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:39",className:"rounded-lg border-2 border-dashed border-black/30 bg-white p-4 text-center text-xs font-bold text-black/50",children:"أض٠Ù
راØÙ Ø¨ØµÙØºØ© «اÙÙ
عرÙ|اÙÙØµ|اÙÙØ±Ø§Ø±>اÙÙ
Ø¹Ø±Ù Ø§ÙØªØ§ÙÙ» ÙÙØ¸Ùر Ù
خطط اÙÙ
سارات ÙÙØ§."})}const Bze=e=>{const t=e.replace(/[ØØ:!?Ø.]+/g," ").replace(/\s+/g," ").trim(),a=[[["تعاÙÙ","ÙØ±ÙÙ","جÙ
اعÙ"],"Ø§ÙØªØ¹Ø§ÙÙ ÙØ§ÙعÙ
Ù Ø§ÙØ¬Ù
اعÙ"],[["ÙØ¯Ù","خطة","Ø®Ø·ÙØ§Øª"],"تØÙÙ٠اÙÙØ¯Ù Ø¥Ù٠خطÙ
1089ات ع٠ÙÙØ©"],[["ØµØØ©","غذاء","ÙÙÙ ","Ø±ÙØ§Ø¶Ø©"],"Ø§ÙØ¹ÙØ§ÙØ© Ø¨Ø§ÙØµØØ© ÙØ§Ùعادات اÙÙÙÙ ÙØ©"],[["است٠ر","عادة","ØªÙØ±Ø§Ø±"],"Ø§ÙØ§Ø³ØªÙ Ø±Ø§Ø±ÙØ© ÙØ§Ù٠٠ارسة"],[["ØªÙØ§ØµÙ","است٠اع","ØÙار"],"Ø§ÙØªÙØ§ØµÙ ÙØ§Ùاست٠اع اÙÙØ¹Ø§Ù"]],n=t.toLocaleLowerCase();return a.find(([r])=>r.some(i=>n.includes(i)))?.[1]??(t.split(" ").filter(r=>r.length>2).slice(0,6).join(" ")||"اÙÙÙØ±Ø© Ø§ÙØ£Ø³Ø§Ø³ÙØ© Ù٠اÙÙÙØ±Ø©")},v5=e=>e.replaceAll("|","-").replaceAll(` 1090`," ").trim();function Gze(e){const t=e.trim().slice(2,-2).split("|").map(i=>i.trim());if(t.shift()!=="paragraph_choice"||t.length<4)return null;const a=t.shift()??"٠ا اÙÙÙØ±Ø© Ø§ÙØ£Ø³Ø§Ø³ÙØ© ÙÙ ÙØ°Ù اÙÙÙØ±Ø©Ø",n=Number(t.pop()??0);t.pop();const r=t.pop()??"";return{prompt:a,options:t,correctIndex:Number.isInteger(n)?n:0,explanation:r}}function Hze(e){const t=e.split(` 1091`);return t.flatMap((a,n)=>{const r=a.trim();if(!r||r.startsWith("[["))return[];const i=t.slice(n+1).find((c,d)=>d<2&&c.trim().startsWith("[[paragraph_choice|")),o=i?Gze(i):null,l=Bze(r);return[{lineIndex:n,paragraph:a,prompt:o?.prompt??"ØªÙØ§Ø¹Ù Ø³Ø±ÙØ¹: ٠ا اÙÙØ¯Ù Ø§ÙØ°Ù ØªØ¤ÙØ¯Ù ÙØ°Ù اÙÙÙØ±Ø©Ø",options:o?.options?.length?o.options:[l,"تجاÙ٠اÙÙÙØ±Ø© دÙ٠تطبÙÙÙØ§","تأجÙÙÙØ§ دÙ٠خطة"],correctIndex:o?.correctIndex??0,explanation:o?.explanation??`Ø§ÙØ¥Ø¬Ø§Ø¨Ø© ٠رتبطة ٠باشرة Ø¨Ù ØØªÙ٠اÙÙÙØ±Ø©: ${l}.`}]})}function qze(e,t){const a=e.split(` 1092`),n=new Map(t.map(i=>[i.lineIndex,i])),r=[];return a.forEach((i,o)=>{if(i.trim().startsWith("[[paragraph_choice|"))return;r.push(i);const l=n.get(o);if(!l)return;const c=l.options.map(v5).filter(Boolean),d=Math.max(0,Math.min(c.length-1,Number(l.correctIndex)||0));r.push(`[[paragraph_choice|${v5(l.prompt)}|${c.join("|")}|${v5(l.explanation)}|3|${d}]]`)}),r.join(` 1093`)}const Uze=[{id:"team-decision",title:"ÙØ±Ø§Ø± اÙÙØ±ÙÙ",storyTitle:"ÙØ±Ø§Ø±Ù ÙØµÙع اÙÙØ±Ù",intro:"ÙØ§Ø¬Ù ÙØ±ÙÙÙ Ù ÙÙÙØ§Ù ÙØØªØ§Ø¬ ÙØ±Ø§Ø±Ø§Ù Ù ØªÙØ§Ø²ÙاÙ. ÙÙ٠تبدأØ",nodes:`start|ÙØ§ØØ¸Øª Ù Ø´ÙÙØ© ÙÙ Ø³ÙØ± Ø§ÙØ¹Ù Ù|تسأ٠اÙÙØ±ÙÙ>check|تتجاÙÙÙØ§>end 1094check|ج٠عت اÙ٠عÙÙÙ Ø§ØªØ Ù Ø§ Ø®Ø·ÙØªÙ Ø§ÙØªØ§ÙÙØ©Ø|تجرب ØÙاÙ>success|تؤج٠اÙÙØ±Ø§Ø±>end 1095success|ÙØ¬Ø Ø§ÙØÙ ÙØªØ¹Ù٠اÙÙØ±ÙÙ Ù Ù Ø§ÙØªØ¬Ø±Ø¨Ø©.|تÙÙ٠اÙÙØµØ©>end`,ending:"Ø£ØØ³Ùت! ØÙÙØª اÙÙ ÙÙ٠إÙ٠تعÙ٠ع٠ÙÙ."},{id:"learning-habit",title:"عادة Ø§ÙØªØ¹ÙÙ ",storyTitle:"Ø®Ø·ÙØ© ØµØºÙØ±Ø© ÙÙ ÙÙÙ ",intro:"ÙØ¯Ù٠عشر Ø¯ÙØ§Ø¦Ù ÙØªØ·ÙÙØ± Ù ÙØ§Ø±Ø© Ø¬Ø¯ÙØ¯Ø©. ٠ا Ø®Ø·ÙØªÙ Ø§ÙØ£ÙÙÙØ",nodes:`start|اخترت ÙØ¯ÙØ§Ù ÙØ§Ø¶ØØ§Ù ÙÙØªØ¹ÙÙ .|تضع خطة ÙØµÙرة>practice|ØªØ¨ØØ« ع٠أسÙ٠طرÙÙ>end 1096practice|بدأت Ø§ÙØªØ¯Ø±ÙØ¨Ø ÙØ¸Ùرت Ø£ÙÙ Ø¹ÙØ¨Ø©.|تراجع ØªÙØ¯Ù Ù>finish|تتÙÙÙ Ø¹ÙØ¯ Ø£ÙÙ ØµØ¹ÙØ¨Ø©>end 1097finish|عدÙÙØª Ø®Ø·ØªÙ ÙØ£ÙÙ ÙØª Ø§ÙØªØ¯Ø±Ùب.|تÙÙ٠اÙÙØµØ©>end`,ending:"٠٠تاز! Ø§ÙØ§Ø³ØªÙ Ø±Ø§Ø±ÙØ© ØªØµÙØ¹ Ø£Ø«Ø±Ø§Ù ÙØªØ±Ø§ÙÙ ÙÙ ÙÙÙ ."}];function Vze({value:e,onChange:t}){const[a,n]=P.useState("choice"),[r,i]=P.useState(""),[o,l]=P.useState(""),[c,d]=P.useState(`Ø®ÙØ§Ø± Ø£ÙÙ 1098Ø®ÙØ§Ø± ثاÙÙ`),[m,f]=P.useState(""),[h,x]=P.useState("3"),[b,y]=P.useState(""),[w,j]=P.useState("ØµÙØ±Ø© تعÙÙÙ ÙØ©"),[N,k]=P.useState("Ø£ØØ³Ùت! ÙØµÙت Ø¥ÙÙ ÙÙØ§ÙØ© اÙÙØµØ©."),D=ee=>{n("story"),i(ee.storyTitle),l(ee.id),f(ee.intro),d(ee.nodes),k(ee.ending),re.success(`ت٠تØÙ ÙÙ ÙØ§Ùب «${ee.title}» ÙÙÙ ÙÙÙ ØªØ®ØµÙØµÙ ÙØ¨Ù Ø§ÙØ¥Ø¯Ø±Ø§Ø¬`)},[C,S]=P.useState("idle"),A=P.useRef([]),E=P.useRef([]),[R,F]=P.useState(!1),[I,H]=P.useState(!1),[_,V]=P.useState(()=>typeof window<"u"&&window.localStorage.getItem("jad-preview-device")==="tablet"?"tablet":"phone"),[W,B]=P.useState(()=>typeof window<"u"&&window.localStorage.getItem("jad-preview-orientation")==="landscape"?"landscape":"portrait"),[K,ae]=P.useState(null),[$,Z]=P.useState(()=>typeof window<"u"?window.localStorage.getItem("jad-preview-width")??"":""),[O,Y]=P.useState(()=>typeof window<"u"?window.localStorage.getItem("jad-preview-height")??"":""),[Q,U]=P.useState(100),[oe,X]=P.useState(""),[ne,ge]=P.useState(()=>{try{return JSON.parse(window.localStorage.getItem("jad-preview-presets")??"[]")}catch{return[]}}),[me,Ae]=P.useState("idle"),[Pe,L]=P.useState(!1),[ke,Me]=P.useState([]),[Ze,Ce]=P.useState(()=>{try{return JSON.parse(window.localStorage.getItem("jad-preview-conflicts")??"[]")}catch{return[]}}),Te=P.useRef(null),Ke=P.useRef([]),Ve=P.useRef(null),ht=J.lessons.previewPresets.useQuery(void 0,{enabled:a==="story"}),pe=J.lessons.savePreviewPreset.useMutation(),et=J.lessons.renamePreviewPreset.useMutation(),xe=J.lessons.deletePreviewPreset.useMutation(),it=`jad-story-draft:${o.trim()||"new"}`,[Tt,bt]=P.useState([]);P.useEffect(()=>{bt(Hze(e))},[e]);const vt=(ee,Oe)=>bt(Ye=>Ye.map((at,wt)=>wt===ee?{...at,...Oe}:at)),St=()=>{if(Tt.find(Oe=>{const Ye=Oe.options.map(at=>
1098at.trim()).filter(Boolean);return!Oe.prompt.trim()||Ye.length<2||Oe.correctIndex<0||Oe.correctIndex>=Ye.length})){re.error("تØÙÙ Ù
Ù Ø§ÙØ³Ø¤Ø§Ù ÙØ§ÙØ®ÙØ§Ø±Ø§Øª ÙØ±ÙÙ
Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© ÙØ¨Ù Ø§ÙØªØ·Ø¨ÙÙ");return}t(qze(e,Tt)),re.success(`تÙ
تطبÙÙ Ù
راجعة ${Tt.length} Ø£Ø³Ø¦ÙØ© عÙ٠اÙÙ
Ø³ÙØ¯Ø©`)},de=ee=>{ee!==c&&(A.current=[...A.current.slice(-19),c],E.current=[],d(ee))},be=ee=>{ae(ee),window.setTimeout(()=>ae(null),1800)},G=ee=>{const Oe={at:new Date().toISOString(),action:ee};Ce(Ye=>{const at=[Oe,...Ye].slice(0,20);return window.localStorage.setItem("jad-preview-conflicts",JSON.stringify(at)),at})},je=ee=>{G(ee==="server"?"اعتÙ
اد ÙØ³Ø®Ø© Ø§ÙØ®Ø§Ø¯Ù
":"Ø§ÙØ§ØØªÙاظ باÙÙØ³Ø®Ø© اÙÙ
ØÙÙØ©"),ee==="server"?(ge(ke),window.localStorage.setItem("jad-preview-presets",JSON.stringify(ke)),Te.current=JSON.stringify(ke)):Te.current=JSON.stringify(ne),L(!1),Ae(ee==="server"?"synced":"local"),be(ee==="server"?"تÙ
اعتÙ
اد ÙØ³Ø®Ø© Ø§ÙØ®Ø§Ø¯Ù
":"تÙ
Ø§ÙØ§ØØªÙاظ باÙÙØ³Ø®Ø© اÙÙ
ØÙÙØ©")},ze=P.useRef(!1);P.useEffect(()=>{Ke.current=ne},[ne]),P.useEffect(()=>{if(typeof window>"u"||typeof window.BroadcastChannel>"u")return;const ee=new BroadcastChannel("jad-preview-presets-sync");return Ve.current=ee,ee.onmessage=Oe=>{const Ye=Oe.data;if(!Array.isArray(Ye))return;const at=JSON.stringify(Ke.current);if(Te.current!==null&&JSON.stringify(Ye)!==Te.current&&at!==JSON.stringify(Ye)){Me(Ye),L(!0),Ae("local"),G("Ø§ÙØªØ´Ø§Ù تعارض Ù
Ù ÙØ§Ùذة أخرÙ"),re.error("تعارض Ù
زاÙ
ÙØ©: ÙØµÙت ÙØ³Ø®Ø© Ù
ختÙÙØ© Ù
Ù ÙØ§Ùذة أخرÙ.");return}ge(Ye),Ae("local"),be("تÙ
ØªØØ¯ÙØ« Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ù
Ù ÙØ§Ùذة أخرÙ")},()=>{ee.close(),Ve.current=null}},[]),P.useEffect(()=>{window.localStorage.setItem("jad-preview-device",_),window.localStorage.setItem("jad-preview-orientation",W),$?window.localStorage.setItem("jad-preview-width",$):window.localStorage.removeItem("jad-preview-width"),O?window.localStorage.setItem("jad-preview-height",O):window.localStorage.removeItem("jad-preview-height"),ze.current?be("تÙ
ØÙظ ØªÙØ¶ÙÙØ§Øª اÙÙ
عاÙÙØ©"):ze.current=!0},[_,W,$,O]),P.useEffect(()=>{if(!ht.data)return;const ee=ht.data.map(Oe=>{const Ye=Oe;return{id:Oe.id,name:Oe.name,width:String(Oe.width),height:String(Oe.height),lastSyncedAt:Ye.updatedAt?new Date(Ye.updatedAt).toISOString():void 0}});Te.current=JSON.stringify(ee),ge(ee),Me(ee),Ae("synced"),L(!1),window.localStorage.setItem("jad-preview-presets",JSON.stringify(ee))},[ht.data]),P.useEffect(()=>{const ee=Oe=>{if(!(Oe.key!=="jad-preview-presets"||!Oe.newValue))try{const Ye=JSON.parse(Oe.newValue),at=JSON.stringify(ne),wt=Te.current!==null&&at!==Te.current,kt=Te.current!==null&&Oe.newValue!==Te.current;if(wt&&kt&&Oe.newValue!==at){Me(Ye),L(!0),Ae("local"),G("Ø§ÙØªØ´Ø§Ù تعارض Ù
٠تبÙÙØ¨ آخر"),re.error("تعارض Ù
زاÙ
ÙØ©: تÙ
تعدÙÙ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ù
٠تبÙÙØ¨ آخر. راجع اÙÙØ³Ø®ØªÙÙ ÙØ¨Ù Ø§ÙØ§Ø¹ØªÙ
اد.");return}Me(Ye),ge(Ye),Te.current=JSON.stringify(Ye),Ae("synced"),be("تÙ
ØªØØ¯ÙØ« Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ù
٠تبÙÙØ¨ آخر")}catch{}};return window.addEventListener("storage",ee),()=>window.removeEventListener("storage",ee)},[ne]);const Qe=ee=>{ge(ee),window.localStorage.setItem("jad-preview-presets",JSON.stringify(ee)),Ve.current?.postMessage(ee)},ye=async()=>{Ae("syncing");try{await ht.refetch(),L(!1),be("تÙ
ت إعادة Ø¬ÙØ¨ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ù
Ù Ø§ÙØ®Ø§Ø¯Ù
")}catch{Ae("local"),be("تعذر إعادة Ø¬ÙØ¨ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª")}},Ee=()=>{const ee=oe.trim(),Oe=Number($),Ye=Number(O);if(!ee||!Number.isInteger(Oe)||!Number.isInteger(Ye)||Oe<280||Oe>1200||Ye<240||Ye>1e3){be("أدخ٠اسÙ
Ø§Ù ÙØ£Ø¨Ø¹Ø§Ø¯Ø§Ù صØÙØØ© ÙØÙØ¸ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ اÙÙ
سبÙ");return}const at=[...ne.filter(wt=>wt.name!==ee),{name:ee,width:String(Oe),height:String(Ye)}];Qe(at),Ae("syncing"),pe.mutate({name:ee,width:Oe,height:Ye},{onSuccess:wt=>{const kt=wt?.id,Sa=new Date().toISOString();Qe(at.map(Ca=>Ca.name===ee?{...Ca,id:kt,lastSyncedAt:Sa}:Ca)),Ae("synced"),be(`تÙ
ت Ù
زاÙ
ÙØ© Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ «${ee}»`)},onError:()=>{Ae("local"),be("ØÙÙØ¸ Ù
ØÙÙØ§Ù ÙØ³ØªØªÙ
اÙÙ
زاÙ
ÙØ© بعد تسجÙÙ Ø§ÙØ¯Ø®ÙÙ")}}),X("")},te=ee=>{const Oe=window.prompt("Ø§ÙØªØ¨ اسÙ
Ø§Ù Ø¬Ø¯ÙØ¯Ø§Ù ÙÙØ¥Ø¹Ø¯Ø§Ø¯",ee.name)?.trim();if(!Oe||Oe===ee.name)return;const Ye=ne.map(at=>
1098at.id===ee.id||!at.id&&at.name===ee.name?{...at,name:Oe}:at);Qe(Ye),ee.id?(Ae("syncing"),et.mutate({id:ee.id,name:Oe},{onSuccess:()=>{const at=new Date().toISOString(),wt=ne.map(kt=>kt.id===ee.id?{...kt,name:Oe,lastSyncedAt:at}:kt);Qe(wt),Ae("synced"),be("ت٠ت إعادة ØªØ³Ù ÙØ© Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯")},onError:()=>{Ae("local"),be("تعذر Ù Ø²Ø§Ù ÙØ© إعادة Ø§ÙØªØ³Ù ÙØ©")}})):(Ae("local"),be("ت٠ت إعادة ØªØ³Ù ÙØ© Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ Ù ØÙÙØ§Ù"))},We=ee=>{if(!window.confirm(`ØØ°Ù Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ «${ee.name}»Ø`))return;Qe(ne.filter(Ye=>Ye.id!==ee.id&&Ye.name!==ee.name));const Oe=()=>{const Ye=[...ne.filter(at=>at.id!==ee.id&&at.name!==ee.name),ee];Qe(Ye),ee.id?pe.mutate({name:ee.name,width:Number(ee.width),height:Number(ee.height)},{onSuccess:at=>{const wt=at?.id;Qe(Ye.map(kt=>kt.name===ee.name?{...kt,id:wt,lastSyncedAt:new Date().toISOString()}:kt)),Ae("synced"),be("ØªÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ Ø¹Ù Ø§ÙØØ°Ù ÙÙ Ø²Ø§Ù ÙØ© Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯")},onError:()=>{Ae("local"),be("ت٠ت استعادة Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ Ù ØÙÙØ§Ù")}}):(Ae("local"),be("ØªÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ Ø¹Ù Ø§ÙØØ°Ù"))};ee.id?(Ae("syncing"),xe.mutate(ee.id,{onSuccess:()=>{Ae("synced"),re.success("ØªÙ ØØ°Ù Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯",{action:{label:"تراجع",onClick:Oe}})},onError:()=>{Qe(ne),Ae("local"),be("تعذر Ù Ø²Ø§Ù ÙØ© Ø§ÙØØ°Ù")}})):(Ae("local"),re.success("ØªÙ ØØ°Ù Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ اÙÙ ØÙÙ",{action:{label:"تراجع",onClick:Oe}}))},mt=ee=>{Z(ee.width),Y(ee.height),be(`ت٠تطبÙ٠«${ee.name}»`)},z=()=>{const ee=Number($)||(_==="phone"?390:768),Oe=Number(O)||(_==="phone"?844:1024),Ye=Math.max(280,window.innerWidth-48),at=Math.max(240,window.innerHeight*.68),wt=Math.min(1,Ye/ee,at/Oe),kt=Math.max(50,Math.min(100,Math.floor(wt*100/5)*5));U(kt),be(`ت٠ت Ù ÙØ§Ø¡Ù Ø© اÙ٠عاÙÙØ© Ø¨ÙØ³Ø¨Ø© ${kt}%`)},_e=()=>{V("phone"),B("portrait"),Z(""),Y(""),U(100),window.localStorage.removeItem("jad-preview-device"),window.localStorage.removeItem("jad-preview-orientation"),window.localStorage.removeItem("jad-preview-width"),window.localStorage.removeItem("jad-preview-height"),be("ت٠ت إعادة ضبط ØªÙØ¶ÙÙØ§Øª اÙ٠عاÙÙØ©")},ce=()=>{const ee=A.current.pop();if(!ee){re.info("ÙØ§ ØªÙØ¬Ø¯ تعدÙÙØ§Øª ÙÙ ÙÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ عÙÙØ§"),be("ÙØ§ ØªÙØ¬Ø¯ تعدÙÙØ§Øª ÙÙØªØ±Ø§Ø¬Ø¹ عÙÙØ§");return}E.current=[...E.current.slice(-19),c],d(ee),re.success("ØªÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ ع٠آخر تعدÙÙ"),be("ØªÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ ع٠آخر تعدÙÙ")},se=()=>{const ee=E.current.pop();if(!ee){re.info("ÙØ§ ØªÙØ¬Ø¯ تعدÙÙØ§Øª ÙÙ Ù٠إعادة تطبÙÙÙØ§"),be("ÙØ§ ØªÙØ¬Ø¯ تعدÙÙØ§Øª ÙØ¥Ø¹Ø§Ø¯Ø© تطبÙÙÙØ§");return}A.current=[...A.current.slice(-19),c],d(ee),re.success("ت٠ت إعادة Ø§ÙØªØ¹Ø¯ÙÙ"),be("ت٠ت إعادة Ø§ÙØªØ¹Ø¯ÙÙ Ø¨ÙØ¬Ø§Ø")};P.useEffect(()=>{if(a!=="story")return;const ee=Oe=>{if(!(Oe.ctrlKey||Oe.metaKey))return;const Ye=Oe.key.toLowerCase();Ye==="z"?(Oe.preventDefault(),Oe.shiftKey?se():ce()):Ye==="y"&&(Oe.preventDefault(),se())};return window.addEventListener("keydown",ee),()=>window.removeEventListener("keydown",ee)},[a,c]),P.useEffect(()=>{if(a!=="story")return;S("saving");const ee=window.setTimeout(()=>{window.localStorage.setItem(it,JSON.stringify({kind:a,prompt:r,answer:o,explanation:m,options:c,storyEnding:N,savedAt:new Date().toISOString()})),S("saved")},650);return()=>window.clearTimeout(ee)},[a,r,o,m,c,N,it]);const fe=ee=>ee.replaceAll("|","-").replaceAll("\\n"," ").trim(),Se=c.split(` 1099`).filter(Boolean),ot=(()=>{if(a!=="story")return"";const ee=Se.map(Oe=>{const[Ye,at,...wt]=Oe.split("|").map(kt=>kt.trim());return`[[node|${fe(Ye)}|${fe(at)}|${wt.map(fe).filter(Boolean).join("|")}]]`});return[`[[story_start|${fe(o||"preview-story")}|${fe(r||"٠عاÙÙØ© اÙÙØµØ©")}|${fe(m||"ابدأ Ø§ÙØªØ¬Ø±Ø¨Ø©")}]]`,...ee,`[[story_end|${fe(N)}]]`].join(` 1100`)})(),lt=Lze(Se),Le=(ee,Oe)=>{if(ee===Oe)return;const Ye=[...Se],[at]=Ye.splice(ee,1);Ye.splice(Oe,0,at),de(Ye.join(` 1101`)),re.success("ت٠تغÙÙØ± ØªØ±ØªÙØ¨ ٠راØÙ اÙÙØµØ©")},nt=(ee,Oe,Ye)=>{const at=Se.map(wt=>{const kt=wt.split("|");if(kt[0]?.trim()!==ee)return wt;const Sa=kt.slice(2);if(!Sa.length)return`${wt}|ÙØ±Ø§Ø± Ø¬Ø¯ÙØ¯>${Ye}`;const Ca=[...Sa],[Br]=(Ca[Oe]??Ca[0]).split(">");return Ca[Oe]=`${Br?.trim()||"ÙØ±Ø§Ø± Ø¬Ø¯ÙØ¯"}>${Ye}`,[kt[0],kt[1],...Ca].join("|")});de(at.join(` 1102`)),re.success(`ت٠ربط Ø§ÙØ®Ùار ${Oe+1} ٠٠«${ee}» ب٠«${Ye}»`)},gt=J.admin.uploadActivityImage.useMutation({onSuccess:({url:ee})=>{y(ee),re.success("ØªÙ Ø±ÙØ¹ Ø§ÙØµÙرة ÙØ¥Ø¶Ø§ÙØªÙØ§ Ø¥Ù٠اÙÙØ´Ø§Ø·")},onError:ee=>re.error(`تعذر Ø±ÙØ¹ Ø§ÙØµÙرة: ${ee.message}`)}),yt=[{label:"تعاÙ٠اÙÙØ±ÙÙ",url:"https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=900&q=80",alt:"ÙØ±ÙÙ ÙØªØ¹Ø§ÙÙ ØÙ٠طاÙÙØ©"},{label:"Ø§ÙØªØ¹Ù٠اÙ٠ست٠ر",url:"https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=900&q=80",alt:"Ø²Ù ÙØ§Ø¡ ÙØªØ¹ÙÙ Ù٠٠عاÙ"},{label:"Ø§ÙØªØ±ÙÙØ² ÙØ§ÙØ¥ÙØ¬Ø§Ø²",url:"https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=900&q=80",alt:"Ù ÙØªØ¨ Ø¹Ù Ù Ù ÙØ¸Ù "}],rt=ee=>{if(!ee)return;if(!["image/png","image/jpeg","image/webp"].includes(ee.type))return re.error("اختر ØµÙØ±Ø© P
1102NG Ø£Ù JPG Ø£Ù WebP");if(ee.size>5*1024*1024)return re.error("ØØ¬Ù Ø§ÙØµÙرة ÙØ¬Ø¨ Ø£ÙØ§ ÙØªØ¬Ø§Ùز 5 Ù ÙØ¬Ø§Ø¨Ø§Ùت");const Oe=new FileReader;Oe.onload=()=>gt.mutate({dataUrl:String(Oe.result),mimeType:ee.type}),Oe.readAsDataURL(ee)},xt=()=>{const ee=o.trim();if(!ee)return re.error("Ø§ÙØªØ¨ اÙÙÙÙ Ø© اÙÙ ÙØªØ§ØÙØ© Ø§ÙØµØÙØØ© Ø£ÙÙØ§Ù ÙØªØÙÙ٠اÙÙÙØ±Ø©");const Oe=e.split(` 1103`).find(at=>at.trim()&&!at.trim().startsWith("[["));if(!Oe)return re.error("أض٠ÙÙØ±Ø© ÙØµÙØ© Ø£ÙÙØ§Ù");const Ye=`[[blank|Ø£Ù٠٠اÙÙÙØ±Ø© Ø§ÙØ£Ø³Ø§Ø³ÙØ© بÙÙÙ Ø© Ù ÙØªØ§ØÙØ©|${fe(ee)}|3]]`;t(e.replace(Oe,`${Oe} 1104 1105${Ye}`)),re.success("ت٠تØÙÙ٠اÙÙÙØ±Ø© Ø§ÙØ£ÙÙ٠إÙÙ ÙØ´Ø§Ø· Ù ÙØ¡ ÙØ±Ø§Øº")},Mt=()=>{if(!r.trim())return re.error(a==="story"?"أدخ٠عÙÙØ§Ù اÙÙØµØ© Ø£ÙÙØ§Ù":"Ø£Ø¯Ø®Ù ÙØµ Ø§ÙØ³Ø¤Ø§Ù Ø£ÙÙØ§Ù");const ee=fe,Oe=Math.min(50,Math.max(0,Number(h)||3));let Ye="";if(a==="story"){const at=ee(o||"story-1").replaceAll(" ","-"),wt=c.split(` 1106`).map(Sa=>Sa.trim()).filter(Boolean);if(!at||!m.trim()||wt.length<1)return re.error("أدخ٠٠عر٠اÙÙØµØ© ÙØ§ÙÙ ÙØ¯Ù Ø© Ù٠رØÙØ© ÙØ§ØØ¯Ø© عÙÙ Ø§ÙØ£ÙÙ");const kt=wt.map(Sa=>{const[Ca,Br,...qu]=Sa.split("|").map(od=>od.trim());return!Ca||!Br?"":`[[node|${ee(Ca)}|${ee(Br)}|${qu.map(ee).filter(Boolean).join("|")}]]`}).filter(Boolean);if(!kt.length)return re.error("Ø§Ø³ØªØ®Ø¯Ù ØµÙØºØ© اÙ٠رØÙØ©: اÙ٠عرÙ|اÙÙØµ|اÙÙØ±Ø§Ø±>اÙÙ Ø¹Ø±Ù Ø§ÙØªØ§ÙÙ");Ye=[`[[story_start|${at}|${ee(r)}|${ee(m)}]]`,...kt,`[[story_end|${ee(N)}]]`].join(` 1107`)}if(a==="blank"&&(Ye=`[[blank|${ee(r)}|${ee(o)}|${Oe}]]`),a==="choice"){const at=c.split(` 1108`).map(ee).filter(Boolean);if(at.length<2||!o.trim())return re.error("Ø£Ø¶Ù Ø®ÙØ§Ø±Ù٠عÙÙ Ø§ÙØ£ÙÙ ÙØØ¯Ø¯ رÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©");Ye=`[[choice|${ee(r)}|${at.join("|")}|${ee(m)}|${Oe}|${Math.max(0,Number(o)||0)}]]`}if(a==="image"){const at=c.split(` 1109`).map(ee).filter(Boolean);if(!b.trim()||at.length<2)return re.error("أدخ٠رابط Ø§ÙØµÙرة ÙØ®ÙارÙ٠عÙÙ Ø§ÙØ£ÙÙ");Ye=`[[image|${ee(r)}|${ee(b)}|${ee(w)}|${at.join("|")}|${ee(m)}|${Oe}|${Math.max(0,Number(o)||0)}]]`}t(`${e.trimEnd()} 1110 1111${Ye}`.trim()),re.success("ت٠ت Ø¥Ø¶Ø§ÙØ© اÙÙØ´Ø§Ø· Ø¥Ù٠اÙÙØµ")};return s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:193",className:"space-y-3 rounded-xl border-2 border-purple-300 bg-purple-50 p-4",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:194",className:"grid gap-3 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",className:"text-sm font-bold text-black",children:["ÙÙØ¹ اÙÙØ´Ø§Ø·",s.jsxs(Ss,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",value:a,onValueChange:ee=>n(ee),children:[s.jsx(Ts,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",className:"mt-1 bg-white",children:s.jsx(Cs,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195"})}),s.jsxs(Ds,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",children:[s.jsx(Kt,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",value:"choice",children:"Ø®ÙØ§Ø±Ø§Øª ٠تعددة"}),s.jsx(Kt,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",value:"blank",children:"Ù ÙØ¡ ÙØ±Ø§Øº"}),s.jsx(Kt,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",value:"image",children:"Ø§Ø®ØªÙØ§Ø± Ø¨ØµØ±Ù Ø¨Ø§ÙØµÙرة"}),s.jsx(Kt,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:195",value:"story",children:"ÙØµØ© Ù ØªÙØ±Ø¹Ø© ٠تعددة اÙ٠راØÙ"})]})]})]}),a!=="story"&&s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:196",className:"text-sm font-bold text-black",children:["اÙÙÙØ§Ø·",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:196",value:h,onChange:ee=>x(ee.target.value),type:"number",min:"0",max:"50",className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2"})]})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:198",className:"block text-sm font-bold text-black",children:[a==="story"?"عÙÙØ§Ù اÙÙØµØ©":"Ø§ÙØ³Ø¤Ø§Ù Ø£Ù Ø§ÙØªØ¹ÙÙ٠ات",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:198",value:r,onChange:ee=>i(ee.target.value),className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2",placeholder:a==="story"?"٠ثاÙ: ÙØ±Ø§Ø±Ù ÙØµÙع اÙÙØ±Ù":"٠ثاÙ: ٠ا Ø§ÙØ³ÙÙÙ Ø§ÙØ£Ùض٠ÙÙ ÙØ°Ø§ اÙÙ ÙÙÙØ"})]}),Tt.length>0&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"rounded-xl border-2 border-black bg-memphis-yellow/60 p-3",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"text-sm font-black text-black",children:"٠راجعة Ø§ÙØ£Ø³Ø¦ÙØ© اÙ٠خصصة ÙÙÙÙØ±Ø§Øª"}),s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"text-xs font-bold text-black/60",children:"عدÙÙ Ø§ÙØ³Ø¤Ø§Ù ÙØ§ÙØ®ÙØ§Ø±Ø§Øª ÙØ§Ùإجابة ÙØ§ÙØ´Ø±ØØ ث٠طبÙÙÙØ§ عÙÙ Ù Ø³ÙØ¯Ø© Ø§ÙØ¯Ø±Ø³ ÙØ¨Ù اÙÙØ´Ø±."})]}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",type:"button",onClick:St,className:"bg-purple-700 px-3 text-xs font-black text-white",children:"تطبÙÙ Ø§ÙØ£Ø³Ø¦ÙØ© اÙÙ Ø¹Ø¯ÙØ©"})]}),s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"space-y-3",children:Tt.map((ee,Oe)=>s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"rounded-lg border-2 border-black bg-white p-3",children:[s.jsxs("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"mb-2 text-xs font-black text-black/70",children:["اÙÙÙØ±Ø© ",Oe+1,": ",ee.paragraph.trim().slice(0,120),ee.paragraph.trim().length>120?"â¦":""]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"mb-2 rounded-lg border-2 border-dashed border-purple-400 bg-purple-50 p-2",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"mb-1 text-[11px] font-black text-purple-950",children:"٠عاÙÙØ© Ø³Ø±ÙØ¹Ø© ÙÙØ·Ø§Ùب"}),s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"mb-2 text-sm font-black text-black",children:ee.prompt||"Ø§ÙØªØ¨ Ø§ÙØ³Ø¤Ø§Ù ÙÙØ§"}),s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"grid gap-1 sm:grid-cols-3",children:ee.options.map((Ye,at)=>s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:`rounded border-2 border-black px-2 py-1 text-xs font-bold ${at===ee.correctIndex?"bg-memphis-mint":"bg-white"}`,children:Ye||`Ø§ÙØ®Ùار ${at+1}`},`${Ye}-${at}`))})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"block text-xs font-black text-black",children:["Ø§ÙØ³Ø¤Ø§Ù",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",value:ee.prompt,onChange:Ye=>vt(Oe,{prompt:Ye.target.value}),className:"mt-1 w-full rounded border-2 border-black px-2 py-2 text-sm text-black"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"mt-2 block text-xs font-black text-black",children:["Ø§ÙØ®ÙØ§Ø±Ø§ØªØ Ø®ÙØ§Ø± ÙÙ Ù٠سطر",s.jsx("textarea",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",value:ee.options.join(` 1112`),onChange:Ye=>vt(Oe,{options:Ye.target.value.split(` 1113`)}),rows:3,className:"mt-1 w-full rounded border-2 border-black px-2 py-2 text-sm text-black"})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"mt-2 grid gap-2 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"text-xs font-black text-black",children:["رÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",type:"number",min:"0",value:ee.correctIndex,onChange:Ye=>vt(Oe,{correctIndex:Number(Ye.target.value)}),className:"mt-1 w-full rounded border-2 border-black px-2 py-2 text-sm text-black"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",className:"text-xs font-black text-black",children:["Ø§ÙØ´Ø±Ø",s.jsx("textarea",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:199",value:ee.explanation,onChange:Ye=>vt(Oe,{explanation:Ye.target.value}),rows:2,className:"mt-1 w-full rounded border-2 border-black px-2 py-2 text-sm text-black"})]})]})]},`${ee.lineIndex}-${Oe}`))})]}),a==="story"&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:200",className:"rounded-xl border-2 border-dashed border-purple-400 bg-white p-3",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:200",className:"mb-2 text-sm font-black text-black",children:"ÙÙØ§Ùب Ø¬Ø§ÙØ²Ø© ÙØ§Ø¨ÙØ© ÙÙØªØ®ØµÙص"}),s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:200",className:"grid gap-2 sm:grid-cols-2",children:Uze.map(ee=>s.jsxs("button",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:200",type:"button",onClick:()=>D(ee),className:"rounded-lg border-2 border-black bg-memphis-peach px-3 py-2 text-right text-xs font-black text-black hover:bg-memphis-yellow",children:[ee.title,s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:200",className:"mt-1 block text-[11px] font-bold text-black/60",children:"ÙÙ ÙØ£ Ø§ÙØ¹ÙÙØ§Ù ÙØ§Ù٠راØÙ ÙÙÙ Ù٠تعدÙÙÙØ§"})]},ee.id))})]}),a==="story"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"flex items-center justify-between gap-2 rounded-lg border-2 border-black bg-memphis-mint px-3 py-2 text-xs font-black text-black",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",children:C==="saving"?"جار٠ØÙظ اÙÙ Ø³ÙØ¯Ø© تÙÙØ§Ø¦ÙاÙ...":C==="saved"?"ت٠ØÙظ اÙÙ Ø³ÙØ¯Ø© تÙÙØ§Ø¦ÙاÙ":"اÙÙ Ø³ÙØ¯Ø© ØºÙØ± Ù ØÙÙØ¸Ø© بعد"}),s.jsxs(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",type:"button",size:"sm",variant:"outline",onClick:()=>H(ee=>!ee),className:"h-7 border-2 border-black px-2 text-xs font-black text-black",children:[s.jsx(Npe,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"ml-1 h-3 w-3"})," Ø§ÙØ§Ø®ØªØµØ§Ø±Ø§Øª"]}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",type:"button",size:"sm",variant:"outline",onClick:ce,disabled:!A.current.length,className:"h-7 border-2 border-black px-2 text-xs font-black text-black",children:"تراجع ع٠آخر تعدÙÙ"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"block text-sm font-bold text-black",children:["٠عر٠اÙÙØµØ©",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",value:o,onChange:ee=>l(ee.target.value),className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2",dir:"ltr",placeholder:"team-decision-1"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"block text-sm font-bold text-black",children:["اÙÙ ÙØ¯Ù Ø©",s.jsx("textarea",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",value:m,onChange:ee=>f(ee.target.value),rows:2,className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2",placeholder:"ÙØ¨Ø¯Ø£ اÙÙØ±ÙÙ ÙÙ٠٠ب٠ÙÙÙ ÙØØªØ§Ø¬ ÙØ±Ø§Ø±Ø§Ù..."})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"block text-sm font-bold text-black",children:["اÙ٠راØÙ ÙØ§ÙÙØ±Ø§Ø±Ø§ØªØ ٠رØÙØ© ÙÙ Ù٠سطر",s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"mb-3 rounded-xl border-2 border-purple-400 bg-purple-50 p-2",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"mb-2 text-xs font-black text-purple-900",children:"اÙ٠سارات ÙØ§ÙØ±ÙØ§Ø¨Ø· Ø¨ØµØ±ÙØ§Ù"}),s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"mb-2 text-[11px] font-bold text-black/60",children:"Ø§Ø³ØØ¨ ÙÙ Ø®ÙØ§Ø± Ø¯Ø§Ø®Ù Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø¹ÙØ¯Ø© ÙØ¯Ù ٠ختÙÙØ©Ø Ø«Ù Ø§Ø³ØªØ®Ø¯Ù Ø§ÙØªØ±Ø§Ø¬Ø¹ Ø¹ÙØ¯ Ø§ÙØØ§Ø¬Ø©."}),s.jsx(Fze,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",graph:lt,onConnect:nt})]}),s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"mt-2 grid gap-2",children:Se.map((ee,Oe)=>s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",draggable:!0,onDragStart:Ye=>Ye.dataTransfer.setData("story-index",String(Oe)),onDragOver:Ye=>Ye.preventDefault(),onDrop:Ye=>{Ye.preventDefault();const at=Number(Ye.dataTransfer.getData("story-index"));Le(at,Oe)},className:"flex cursor-grab items-center gap-2 rounded-lg border-2 border-black bg-memphis-yellow px-3 py-2 text-xs font-black text-black active:cursor-grabbing",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"text-lg",children:"â®â®"}),s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"min-w-0 flex-1 truncate",dir:"ltr",children:ee}),s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"text-[10px] text-black/60",children:"Ø§Ø³ØØ¨ ÙÙØªØ±ØªÙب"})]},`${ee}-${Oe}`))}),s.jsx("textarea",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",value:c,onChange:ee=>{A.current=[...A.current.slice(-19),c],d(ee.target.value)},rows:5,className:"mt-2 w-full rounded-md border-2 border-black bg-white px-3 py-2 font-mono text-xs",dir:"ltr",placeholder:`start|ÙØ§ØØ¸Øª Ù Ø´ÙÙØ© ÙÙ Ø³ÙØ± Ø§ÙØ¹Ù Ù|تسأ٠اÙÙØ±ÙÙ>check|تتجاÙÙÙØ§>end 1114check|ج٠عت اÙ٠عÙÙÙ Ø§ØªØ Ù Ø§ Ø®Ø·ÙØªÙØ|تجرب ØÙاÙ>success|تؤج٠اÙÙØ±Ø§Ø±>end`})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",className:"block text-sm font-bold text-black",children:["Ø±Ø³Ø§ÙØ© اÙÙÙØ§ÙØ©",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:201",value:N,onChange:ee=>k(ee.target.value),className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2"})]})]}),a==="blank"&&s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:202",className:"block text-sm font-bold text-black",children:["Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ©",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:202",value:o,onChange:ee=>l(ee.target.value),className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2"})]}),(a==="choice"||a==="image")&&s.jsxs(s.Fragment,{children:[s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:203",className:"block text-sm font-bold text-black",children:["Ø§ÙØ®ÙØ§Ø±Ø§ØªØ Ø®ÙØ§Ø± ÙÙ Ù٠سطر",s.jsx("textarea",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:203",value:c,onChange:ee=>d(ee.target.value),rows:3,className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:203",className:"block text-sm font-bold text-black",children:["رÙÙ Ø§ÙØ®Ùار Ø§ÙØµØÙØ",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityCompos
1114er.tsx:203",value:o,onChange:ee=>l(ee.target.value),type:"number",min:"0",className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2",placeholder:"0"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:203",className:"block text-sm font-bold text-black",children:["Ø´Ø±Ø Ø§Ø®ØªÙØ§Ø±Ù",s.jsx("textarea",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:203",value:m,onChange:ee=>f(ee.target.value),rows:2,className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2"})]})]}),a==="image"&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",className:"grid gap-3 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",className:"text-sm font-bold text-black",children:["رابط Ø§ÙØµÙرة",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",value:b,onChange:ee=>y(ee.target.value),className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2",dir:"ltr"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",className:"text-sm font-bold text-black",children:["اÙÙØµÙ Ø§ÙØ¨Ø¯ÙÙ",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",value:w,onChange:ee=>j(ee.target.value),className:"mt-1 w-full rounded-md border-2 border-black bg-white px-3 py-2"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",className:"flex cursor-pointer items-center justify-center gap-2 rounded-md border-2 border-dashed border-black bg-memphis-mint px-3 py-3 text-sm font-black text-black",children:[s.jsx(dy,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",className:"h-4 w-4"}),gt.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Ta,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",className:"h-4 w-4 animate-spin"})," Ø¬Ø§Ø±Ù Ø§ÙØ±Ùع..."]}):"Ø±ÙØ¹ ØµÙØ±Ø© Ù
خصصة",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:204",type:"file",accept:"image/png,image/jpeg,image/webp",className:"sr-only",disabled:gt.isPending,onChange:ee=>rt(ee.target.files?.[0])})]})]}),a==="image"&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:205",className:"rounded-xl border-2 border-dashed border-purple-400 bg-white p-3",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:205",className:"mb-2 text-sm font-black text-black",children:"Ù
ÙØªØ¨Ø© ØµÙØ± تعÙÙÙ
ÙØ©"}),s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:205",className:"grid gap-2 sm:grid-cols-3",children:yt.map(ee=>s.jsxs("button",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:205",type:"button",onClick:()=>{y(ee.url),j(ee.alt)},className:`rounded-lg border-2 border-black p-2 text-right text-xs font-black transition-all ${b===ee.url?"bg-memphis-lilac":"bg-gray-50 hover:bg-memphis-peach"}`,children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:205",className:"mb-2 block h-16 rounded-md bg-cover bg-center",style:{backgroundImage:`url(${ee.url})`},"aria-hidden":"true"}),ee.label]},ee.url))})]}),a==="image"&&b&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:206",className:"rounded-xl border-2 border-black bg-memphis-mint p-3",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:206",className:"mb-2 text-sm font-black text-black",children:"Ù
عاÙÙØ© ÙÙØ±ÙØ©"}),s.jsx("img",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:206",src:b,alt:w||"Ù
عاÙÙØ© Ø§ÙØµÙرة Ø§ÙØªØ¹ÙÙÙ
ÙØ©",className:"h-40 w-full rounded-lg border-2 border-black bg-white object-contain"}),s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:206",className:"mt-2 text-xs font-bold text-black/70",children:"Ø³ØªØ¸ÙØ± Ø§ÙØµÙرة Ø¨ÙØ°Ù Ø§ÙØ·Ø±ÙÙØ© داخ٠اÙÙØ´Ø§Ø· Ø¹ÙØ¯ ØÙظÙ."})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:207",className:"flex flex-wrap gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:207",type:"button",onClick:Mt,className:"bg-purple-700 font-black text-white",children:"Ø¥Ø¶Ø§ÙØ© اÙÙØ´Ø§Ø· Ø¥Ù٠اÙÙØµ"}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:207",type:"button",onClick:xt,variant:"outline",className:"border-2 border-black bg-memphis-yellow font-black text-black",children:"تØÙÙÙ ÙÙØ±Ø© Ø¥ÙÙ ÙØ±Ø§Øº"}),a==="story"&&s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:207",type:"button",onClick:()=>F(!0),variant:"outline",className:"border-2 border-black bg-memphis-mint font-black text-black",children:"Ù
عاÙÙØ© اÙÙØµØ©"})]}),s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:208",className:"text-xs font-bold text-black/60",children:"ÙÙØªØÙÙÙ Ø§ÙØ³Ø±Ùع: Ø§ÙØªØ¨ اÙÙÙÙ
Ø© اÙÙ
ÙØªØ§ØÙØ© Ø§ÙØµØÙØØ© ÙÙ ØÙÙ Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø«Ù
اضغط «تØÙÙÙ ÙÙØ±Ø© Ø¥ÙÙ ÙØ±Ø§ØºÂ»."}),R&&s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:210",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",role:"dialog","aria-modal":"true","aria-label":"Ù
عاÙÙØ© اÙÙØµØ©",children:s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:211",className:`max-h-[90vh] overflow-y-auto rounded-2xl border-4 border-black bg-memphis-peach p-4 shadow-[8px_8px_0_#000] ${$?"w-full":_==="phone"?W==="landscape"?"w-full max-w-2xl":"w-full max-w-sm":W==="landscape"?"w-full max-w-4xl":"w-full max-w-2xl"}`,style:{width:$?`${Math.min(1200,Math.max(280,Number($)))}px`:void 0,minHeight:O?`${Math.min(1e3,Math.max(240,Number(O)))}px`:void 0,transform:`scale(${Q/100})`,transformOrigin:"top center"},dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:212",className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[s.jsx("h3",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:213",className:"text-lg font-black text-black",children:"Ù
عاÙÙØ© اÙÙØµØ© ÙØ¨Ù Ø§ÙØÙØ¸"}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:214",className:"flex flex-wrap gap-1",children:[s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:215",type:"button",variant:"outline",onClick:()=>V("phone"),className:`border-2 border-black px-2 text-xs font-black ${_==="phone"?"bg-memphis-lilac":"bg-white"}`,children:"ÙØ§ØªÙ"}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:216",type:"button",variant:"outline",onClick:()=>V("tablet"),className:`border-2 border-black px-2 text-xs font-black ${_==="tablet"?"bg-memphis-lilac":"bg-white"}`,children:"Ø¬ÙØ§Ø² ÙÙØÙ"}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:217",type:"button",variant:"outline",onClick:()=>B(ee=>ee==="portrait"?"landscape":"portrait"),className:"border-2 border-black bg-memphis-yellow px-2 text-xs font-black",children:W==="portrait"?"عرض Ø£ÙÙÙ":"عرض عÙ
ÙØ¯Ù"}),s.jsxs(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:218",type:"button",variant:"outline",onClick:z,className:"border-2 border-black bg-memphis-mint px-2 text-xs font-black transition-transform duration-200 active:scale-95",children:[s.jsx(vo,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:218",className:"ml-1 h-3 w-3"})," Ù
ÙØ§Ø¡Ù
Ø© تÙÙØ§Ø¦ÙØ© ",s.jsxs("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:218",className:"rounded bg-black px-1.5 py-0.5 text-[10px] text-white",children:[Q,"%"]})]}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:218",type:"button",variant:"outline",onClick:_e,className:"border-2 border-black bg-white px-2 text-xs font-black",children:"إعادة Ø
1114¶Ø¨Ø·"}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:219",type:"button",variant:"outline",onClick:()=>F(!1),className:"border-2 border-black bg-white px-2 text-xs font-black",children:"Ø¥ØºÙØ§Ù"})]})]}),Pe&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"mb-3 rounded-xl border-2 border-red-700 bg-red-100 p-3 text-xs font-black text-red-950",role:"alert",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"mb-2 flex flex-wrap items-center justify-between gap-2",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",children:"ÙÙØ¬Ø¯ تعارض: تغÙÙØ±Øª Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ù
Ù ÙØ§Ùذة Ø£Ø®Ø±Ù Ø£Ø«ÙØ§Ø¡ ÙØ¬Ùد تعدÙÙ Ù
ØÙÙ."}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"flex gap-1",children:[s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",type:"button",variant:"outline",onClick:()=>je("server"),className:"border-2 border-red-700 bg-white px-2 py-1 text-xs font-black text-red-950",children:"اعتÙ
اد Ø§ÙØ®Ø§Ø¯Ù
"}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",type:"button",variant:"outline",onClick:()=>je("local"),className:"border-2 border-red-700 bg-white px-2 py-1 text-xs font-black text-red-950",children:"Ø§ÙØ§ØØªÙاظ باÙÙ
ØÙÙ"})]})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"grid gap-2 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"rounded border-2 border-red-700 bg-white p-2",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"mb-1 underline",children:"اÙÙØ³Ø®Ø© اÙÙ
ØÙÙØ©"}),ne.length?ne.map(ee=>s.jsxs("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",children:[ee.name," â ",ee.width,"Ã",ee.height]},`local-${ee.id??ee.name}`)):s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",children:"ÙØ§ ØªÙØ¬Ø¯ إعدادات"})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"rounded border-2 border-red-700 bg-white p-2",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"mb-1 underline",children:"ÙØ³Ø®Ø© Ø§ÙØ®Ø§Ø¯Ù
/اÙÙØ§Ùذة Ø§ÙØ£Ø®Ø±Ù"}),ke.length?ke.map(ee=>s.jsxs("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",children:[ee.name," â ",ee.width,"Ã",ee.height]},`remote-${ee.id??ee.name}`)):s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",children:"ÙØ§ ØªÙØ¬Ø¯ إعدادات"})]})]}),s.jsxs("details",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"mt-2",children:[s.jsxs("summary",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"cursor-pointer underline",children:["Ø³Ø¬Ù Ø§ÙØªØ¹Ø§Ø±Ø¶Ø§Øª (",Ze.length,")"]}),s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"mt-1 grid gap-1",children:Ze.length?Ze.map((ee,Oe)=>s.jsxs("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",className:"text-[11px]",children:[new Date(ee.at).toLocaleString("ar-SA")," â ",ee.action]},`${ee.at}-${Oe}`)):s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:222",children:"ÙØ§ ØªÙØ¬Ø¯ تعارضات Ù
Ø³Ø¬ÙØ©."})})]})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:223",className:"mb-3 grid gap-2 rounded-xl border-2 border-dashed border-black bg-white p-3",children:[s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:224",className:"text-xs font-black text-black",children:["Ù
ÙÙØ§Ø³ اÙÙ
عاÙÙØ©: ",Q,"%",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:224",type:"range",min:"50",max:"100",step:"5",value:Q,onChange:ee=>U(Number(ee.target.value)),className:"mt-2 w-full accent-purple-700"})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:225",className:"grid gap-2 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:226",className:"text-xs font-black text-black",children:["أبعاد Ø¬ÙØ§Ø² Ø¬Ø§ÙØ²Ø©",s.jsxs("select",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:226",defaultValue:"",onChange:ee=>{const Oe=[...rU,...ne].find(Ye=>
1114Ye.name===ee.target.value);Oe&&mt(Oe)},className:"mt-1 w-full rounded border-2 border-black bg-white px-2 py-1 text-black",children:[s.jsx("option",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:226",value:"",children:"اختر Ø¬ÙØ§Ø²Ø§Ù"}),rU.map(ee=>s.jsxs("option",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:226",value:ee.name,children:[ee.name," â ",ee.width,"Ã",ee.height]},ee.name)),ne.map(ee=>s.jsxs("option",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:226",value:ee.name,children:[ee.name," â Ù
خصص"]},`custom-${ee.id??ee.name}`))]})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:227",className:"flex items-end gap-1",children:[s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:227",value:oe,onChange:ee=>X(ee.target.value),placeholder:"اسÙ
Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯ اÙÙ
سبÙ",className:"min-w-0 flex-1 rounded border-2 border-black bg-white px-2 py-1 text-xs text-black"}),s.jsx(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:227",type:"button",onClick:Ee,variant:"outline",className:"border-2 border-black bg-memphis-mint px-2 text-xs font-black text-black",children:"ØÙظ"})]})]}),ne.length>0&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"mt-2 grid gap-1",children:[s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"flex items-center justify-between gap-2 border-b border-black/30 pb-1 text-[11px] font-black text-black",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",children:"Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª اÙÙ
ØÙÙØ¸Ø©"}),s.jsxs(Ie,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",type:"button",variant:"outline",onClick:()=>void ye(),disabled:me==="syncing",className:"border-2 border-black bg-white px-2 py-0.5 text-[11px] font-black text-black",title:"إعادة Ø¬ÙØ¨ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª Ù
Ù Ø§ÙØ®Ø§Ø¯Ù
",children:[s.jsx(vo,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:`ml-1 inline h-3 w-3 ${me==="syncing"?"animate-spin":""}`})," Ù
زاÙ
ÙØ©"]})]}),ne.map(ee=>s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"flex flex-wrap items-center justify-between gap-1 rounded border-2 border-black bg-memphis-lilac px-2 py-1 text-xs font-black text-black",children:[s.jsxs("button",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",type:"button",onClick:()=>mt(ee),className:"min-w-0 flex-1 text-right underline",children:[s.jsx("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"ml-1 inline-flex items-center gap-1",title:me==="syncing"?"جار٠اÙÙ
زاÙ
ÙØ©â¦":ee.id?`Ù
ØÙÙØ¸ ÙÙ Ø§ÙØ³ØØ§Ø¨Ø© â ${sU(ee.lastSyncedAt)}${ee.lastSyncedAt?` â ${new Date(ee.lastSyncedAt).toLocaleString("ar-SA")}`:""}`:"Ù
ØÙÙØ¸ Ù
ØÙÙØ§Ù ÙÙØ·","aria-label":me==="syncing"?"جار٠اÙÙ
زاÙ
ÙØ©":ee.id?`Ù
ØÙÙØ¸ ÙÙ Ø§ÙØ³ØØ§Ø¨Ø© â ${sU(ee.lastSyncedAt)}`:"Ù
ØÙÙØ¸ Ù
ØÙÙØ§Ù ÙÙØ·",children:me==="syncing"?s.jsx(Ta,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"h-3.5 w-3.5 animate-spin text-blue-700"}):ee.id?s.jsx(fpe,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"h-3.5 w-3.5 text-emerald-700"}):s.jsx(mpe,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"h-3.5 w-3.5 text-amber-700"})}),ee.name," â ",ee.width,"Ã",ee.height]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",className:"flex gap-1",children:[s.jsx("button",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",type:"button",onClick:()=>te(ee),className:"rounded border border-black bg-white px-1.5 py-0.5","aria-label":`إعادة تسÙ
ÙØ© ${ee.name}`,children:"تسÙ
ÙØ©"}),s.jsx("button",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:229",type:"button",onClick:()=>We(ee),className:"rounded border border-black bg-white px-1.5 py-0.5","aria-label":`ØØ°Ù ${ee.name}`,children:"ØØ°Ù"})]})]},`${ee.id??"local"}-${ee.name}`))]})]}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:231",className:"mb-3 grid grid-cols-2 gap-2",children:[s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:231",className:"text-xs font-black text-black",children:["Ø§ÙØ¹Ø±Ø¶ (px)",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:231",type:"number",min:"280",max:"1200",value:$,onChange:ee=>Z(ee.target.value),placeholder:"تÙÙØ§Ø¦Ù",className:"mt-1 w-full rounded border-2 border-black bg-white px-2 py-1 text-black"})]}),s.jsxs("label",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:231",className:"text-xs font-black text-black",children:["Ø§ÙØ·ÙÙ (px)",s.jsx("input",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:231",type:"number",min:"240",max:"1000",value:O,onChange:ee=>Y(ee.target.value),placeholder:"تÙÙØ§Ø¦Ù",className:"mt-1 w-full rounded border-2 border-black bg-white px-2 py-1 text-black"})]})]}),ot?s.jsx(HC,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:232",content:ot,lessonId:0,preview:!0}):s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:232",className:"rounded-xl border-2 border-dashed border-black bg-white p-5 text-center font-bold text-black/60",children:"أض٠عÙÙØ§Ùا٠ÙÙ
راØÙ ÙÙÙØµØ© Ø£ÙÙØ§Ù."})]})}),K&&s.jsx("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:236",className:"fixed bottom-4 left-1/2 z-[60] -translate-x-1/2 roun
1114ded-full border-2 border-black bg-black px-4 py-2 text-xs font-black text-white shadow-[4px_4px_0_#7c3aed]",role:"status","aria-live":"polite",children:K}),I&&s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",className:"rounded-xl border-2 border-black bg-memphis-yellow p-3 text-xs font-bold text-black",children:[s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",className:"mb-2 font-black",children:"اختصارات Ù
ØØ±Ø± اÙÙØµØ©"}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",className:"grid gap-1 sm:grid-cols-3",children:[s.jsxs("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",children:[s.jsx("kbd",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",className:"rounded border border-black bg-white px-1",children:"Ctrl/Cmd + Z"})," تراجع"]}),s.jsxs("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",children:[s.jsx("kbd",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",className:"rounded border border-black bg-white px-1",children:"Ctrl/Cmd + Y"})," إعادة"]}),s.jsxs("span",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",children:[s.jsx("kbd",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",className:"rounded border border-black bg-white px-1",children:"Ctrl/Cmd + Shift + Z"})," إعادة"]})]}),s.jsx("button",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:237",type:"button",onClick:()=>{window.localStorage.removeItem("jad-path-hint-seen"),re.success("Ø³ØªØ¸ÙØ± تÙÙ
ÙØØ§Øª Ù
ÙØ§Ø±ÙØ© اÙÙ
سارات Ø¹ÙØ¯ ÙØªØÙا Ù
جدداÙ")},className:"mt-2 rounded border-2 border-black bg-white px-2 py-1 text-[11px] font-black text-black",children:"إعادة Ø¥Ø¸ÙØ§Ø± تÙÙ
ÙØØ§Øª اÙÙ
سارات"})]}),s.jsx(Es,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:238",value:e,onChange:ee=>t(ee.target.value),rows:6,className:"border-2 border-black bg-white text-black",placeholder:"راجع Ù
ØØªÙÙ Ø§ÙØ¯Ø±Ø³ ÙÙØ§ ÙÙÙ
ÙÙ٠تعدÙÙÙ ÙØ¨Ù Ø§ÙØÙØ¸"}),s.jsxs("div",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:239",className:"rounded-xl border-2 border-black bg-white p-4",children:[s.jsx("h3",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:240",className:"mb-2 font-black text-black",children:"Ù
عاÙÙØ© ØªÙØ§Ø¹ÙÙØ© ÙØ¨Ù Ø§ÙØÙØ¸"}),e.trim()?s.jsx(HC,{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:241",content:e,lessonId:0,preview:!0}):s.jsx("p",{"data-loc":"client/src/components/InteractiveActivityComposer.tsx:241",className:"text-sm font-bold text-black/50",children:"Ø£Ø¶Ù ÙØµØ§Ù Ø£Ù ÙØ´Ø§Ø·Ø§Ù Ø¥Ù٠اÙÙ
ØØ±Ø± ÙØªØ¸Ùر اÙÙ
عاÙÙØ© ÙÙØ§."})]})]})}const Qze=[{value:"all",label:"ÙÙ Ø§ÙØªØ¬Ø§Ø±Ø¨"},{value:"active",label:"ÙØ´Ø·Ø©"},{value:"decided",label:"ØÙسÙ
ت"},{value:"inactive",label:"Ù
تÙÙÙØ©"}],Od=e=>e.winnerVariant?"decided":e.isActive?"active":"inactive",iU=e=>e?new Date(e).toLocaleString("ar-SA"):"ØºÙØ± Ù
سجÙÙ",oU=e=>e==="quizCompletion"?"Ø¥ÙÙ
ا٠اÙÙÙÙØ²":"Ø§ÙØªÙÙÙÙ
ات Ø§ÙØ¥ÙØ¬Ø§Ø¨ÙØ©";function Wze({lessons:e}){const t=J.useUtils(),[a,n]=P.useState(""),[r,i]=P.useState(""),[o,l]=P.useState(""),[c,d]=P.useState(!1),[m,f]=P.useState(30),[h,x]=P.useState("all"),b=J.admin.lessonExampleExperiments.useQuery(void 0,{refetchInterval:15e3}),y=J.admin.saveLessonExampleExperiment.useMutation({onSuccess:()=>{re.success("تÙ
ØÙظ Ø§ÙØªØ¬Ø±Ø¨Ø© ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§ØªÙا"),t.admin.lessonExampleExperiments.invalidate()},onError:A=>re.error(A.message)}),w=b.data??[],j=P.useMemo(()=>h==="all"?w:w.filter(A=>Od(A)===h),[w,h]),N=w.find(A=>String(A.lessonId)===a),k=N?.winnerSnapshot,D=P.useMemo(()=>j.flatMap(A=>A.decisionHistory.map(E=>({...E,lessonTitle:e.find(R=>R.id===A.lessonId)?.titleAr??`Ø§ÙØ¯Ø±Ø³ #${A.lessonId}`}))).sort((A,E)=>new Date(E.decidedAt).getTime()-new Date(A.decidedAt).getTime()),[e,j]),C=P.useMemo(()=>({all:w.length,active:w.filter(A=>Od(A)==="active").length,decided:w.filter(A=>Od(A)==="decided").length,inactive:w.filter(A=>Od(A)==="inactive").length}),[w]);P.useEffect(()=>{i(N?.exampleA??""),l(N?.exampleB??""),d(N?.isActive??!1),f(N?.minExposuresPerVariant??30)},[a,N?.id,N?.revision,N?.isActive,N?.minExposuresPerVariant]);const S=A=>{x(A);const E=A==="all"?w:w.filter(R=>Od(R)===A);a&&!E.some(R=>String(R.lessonId)===a)&&n(E[0]?String(E[0].lessonId):"")};return s.jsxs("section",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:54",className:"rounded-2xl border-2 border-black bg-white p-5 shadow-memphis","aria-label":"تجربة Ø§ÙØ£Ù
Ø«ÙØ© Ø§ÙØ¹Ù
ÙÙØ©",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:55",className:"flex flex-wrap items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:56",children:[s.jsxs("h2",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:57",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(vpe,{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:57",className:"h-5 w-5"})," تجربة Ù
ثاÙÙ٠عÙ
ÙÙÙÙ A/B"]}),s.jsx("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:58",className:"mt-2 max-w-4xl text-sm leading-6 text-black/75",children:"Ø§ÙØªØ¨ Ù
ثاÙÙ٠ع٠اÙÙ
ÙÙÙ ÙÙØ³Ù Ù
ع ØµØ¹ÙØ¨Ø© Ù
ØªÙØ§Ø±Ø¨Ø©. ÙØªÙÙÙ ÙÙ Ù
تعÙÙ
ÙØ³Ø®Ø© ÙØ§ØØ¯Ø© Ø«Ø§Ø¨ØªØ©Ø ÙÙÙØ³ اÙÙ
Ø´Ø§ÙØ¯Ø© ÙØ§ÙتطبÙÙ ÙØªÙÙÙÙ
Ù Ø§ÙØ³Ø±Ùع ÙØ¥ÙÙ
ا٠اÙÙÙÙØ². ÙØ§ ÙÙØØ³Ù
اÙÙØ§Ø¦Ø² Ø¥ÙØ§ بعد بÙÙØº Ø§ÙØØ¯ اÙÙ
خصص ÙÙÙ ÙØ³Ø®Ø© ÙØ¸ÙÙØ± ÙØ±Ù Ù
ÙØ«ÙÙØ ÙØªØ¸Ù ÙÙ ÙØ±Ø§Ø±Ø§Øª اÙÙØ¸Ø§Ù
Ù
ØÙÙØ¸Ø© ÙÙ Ø³Ø¬Ù ØªØ§Ø±ÙØ®Ù ÙÙÙ
راجعة."})]}),s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:60",className:"rounded-xl border-2 border-black bg-memphis-yellow/50 px-3 py-2 text-xs font-black text-black",children:[s.jsx(wW,{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:60",className:"ml-1 inline h-4 w-4"})," ØªØªØØ¯Ø« Ø§ÙØ¨ÙØ§ÙØ§Øª ÙÙ 15 ثاÙÙØ©"]})]}),s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:63",className:"mt-5 rounded-xl border-2 border-black bg-memphis-peach/45 p-3","aria-label":"تصÙÙØ© تجارب Ø§ÙØ£Ù
Ø«ÙØ©",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:64",className:"mb-2 flex items-center gap-2 text-sm font-black text-black",children:[s.jsx(zg,{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:64",className:"h-4 w-4"})," تصÙÙØ© Ø³Ø±ÙØ¹Ø© ØØ³Ø¨ Ø§ÙØØ§ÙØ©"]}),s.jsx("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:65",className:"flex flex-wrap gap-2",children:Qze.map(A=>s.jsxs("button",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:66",type:"button","aria-pressed":h===A.value,onClick:()=>S(A.value),className:`rounded-full border-2 border-black px-3 py-1.5 text-sm font-black transition-transform active:scale-95 ${h===A.value?"bg-black text-white":"bg-white text-black"}`,children:[A.label," ",s.jsx("span",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:66",className:"mr-1 rounded-full bg-memphis-yellow px-1.5 text-xs text-black",children:C[A.value]})]},A.value))})]}),s.jsx("label",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:70",className:"mt-4 block text-sm font-bold text-black",htmlFor:"experiment-lesson",children:"Ø§ÙØ¯Ø±Ø³"}),s.jsxs("select",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:71",id:"experiment-lesson",value:a,onChange:A=>n(A.target.value),className:"mt-1 w-full rounded-lg border-2 border-black bg-white p-2 text-black",children:[s.jsx("option",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:72",value:"",children:"اختر درØ
1114³Ø§Ù"}),j.map(A=>s.jsxs("option",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:72",value:String(A.lessonId),children:[e.find(E=>E.id===A.lessonId)?.titleAr??`Ø§ÙØ¯Ø±Ø³ #${A.lessonId}`," â ",Od(A)==="active"?"ÙØ´Ø·Ø©":Od(A)==="decided"?"ØÙسÙ
ت":"Ù
تÙÙÙØ©"]},A.id))]}),!b.isLoading&&!j.length&&s.jsx("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:74",className:"mt-4 rounded-lg border-2 border-dashed border-black/40 bg-gray-50 p-4 text-sm font-bold text-black/70",children:"ÙØ§ ØªÙØ¬Ø¯ تجارب ضÙ
Ù ÙØ°Ù Ø§ÙØªØµÙÙØ©."}),a&&N&&s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:76",className:"mt-4 space-y-3",children:[s.jsx("label",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:77",className:"block text-sm font-bold text-black",htmlFor:"experiment-a",children:"اÙÙ
ثا٠أ"}),s.jsx("textarea",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:78",id:"experiment-a",value:r,onChange:A=>i(A.target.value),maxLength:1500,rows:4,className:"w-full rounded-lg border-2 border-black bg-white p-3 text-black",placeholder:"Ù
ÙÙÙ ÙØ§ÙØ¹ÙØ ÙØ±Ø§Ø±Ø ÙØ®Ø·ÙØ© ÙØ·Ø¨ÙÙÙØ§ اÙÙ
ÙØ¸Ù"}),s.jsx("label",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:79",className:"block text-sm font-bold text-black",htmlFor:"experiment-b",children:"اÙÙ
ثا٠ب"}),s.jsx("textarea",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:80",id:"experiment-b",value:o,onChange:A=>l(A.target.value),maxLength:1500,rows:4,className:"w-full rounded-lg border-2 border-black bg-white p-3 text-black",placeholder:"Ù
ÙÙ٠بدÙÙ ÙØ´Ø±Ø ÙÙØ³ اÙÙÙØ±Ø© بÙ
ستÙÙ Ù
Ù
اثÙ"}),s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:81",className:"grid gap-3 md:grid-cols-[minmax(0,1fr)_auto] md:items-end",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:82",children:[s.jsx("label",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:83",className:"block text-sm font-bold text-black",htmlFor:"min-exposures",children:"Ø§ÙØØ¯ Ø§ÙØ£Ø¯ÙÙ ÙÙÙ
Ø´Ø§ÙØ¯Ø§Øª اÙÙØ±Ùدة ÙÙÙ ÙØ³Ø®Ø©"}),s.jsx("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:84",className:"mt-1 text-xs font-bold leading-5 text-black/65",children:"Ù
Ù 10 Ø¥ÙÙ 1000 Ù
Ø´Ø§ÙØ¯Ø©. Ø¹ÙØ¯ تغÙÙØ± ÙØ°Ø§ Ø§ÙØ±ÙÙ
ÙØ¨Ø¯Ø£ ÙÙØ§Ø³ إصدار Ø¬Ø¯ÙØ¯ ØØªÙ ÙØ§ ØªØ®ØªÙØ· اÙÙ
ÙØ§Ø±ÙØ© اÙÙØ¯ÙÙ
Ø© Ø¨Ø§ÙØ¬Ø¯Ùدة."}),s.jsx("input",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:85",id:"min-exposures",type:"number",min:10,max:1e3,step:1,value:m,onChange:A=>f(Number(A.target.value)),className:"mt-2 w-full rounded-lg border-2 border-black bg-white p-2 text-black md:max-w-xs"})]}),s.jsxs("label",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:87",className:"flex items-center gap-2 rounded-lg border-2 border-black bg-white p-2 text-sm font-bold text-black",children:[s.jsx("input",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:87",type:"checkbox",checked:c,onChange:A=>d(A.target.checked),className:"h-5 w-5"})," Ø¥Ø¸ÙØ§Ø± Ø§ÙØªØ¬Ø±Ø¨Ø© ÙÙÙ
تعÙÙ
"]})]}),s.jsx("button",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:89",type:"button",disabled:y.isPending||r.trim().length<30||o.trim().length<30||r.trim()===o.trim()||!Number.isInteger(m)||m<10||m>1e3,onClick:()=>y.mutate({lessonId:Number(a),exampleA:r.trim(),exampleB:o.trim(),isActive:c,minExposuresPerVariant:m}),className:"rounded-lg border-2 border-black bg-memphis-mint px-4 py-2 font-black text-black disabled:opacity-50",children:y.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"ØÙظ ÙØ³Ø®ØªÙ اÙÙ
Ø«Ø§Ù ÙØ¥Ø¹Ø¯Ø§Ø¯ Ø§ÙØØ³Ù
"}),s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:90",className:"rounded-xl border border-black/25 bg-memphis-yellow/30 p-3 text-sm text-black",children:[s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:91",className:"font-black",children:["ÙØªØ§Ø¦Ø¬ اÙÙØ³Ø®Ø© ",N.revision," â ",N.winnerVariant?`اعتÙÙ
د اÙÙ
ثا٠${N.winnerVariant} تÙÙØ§Ø¦ÙاÙ`:N.isActive?"ÙØ´Ø·Ø©Ø Ø§ÙØØ³Ù
ÙÙØ¯ Ø§ÙØ§Ùتظار":"Ù
تÙÙÙØ©"]}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:92",className:"mt-1 text-xs font-bold",children:["ØØ¯ Ø§ÙØØ³Ù
ÙÙØ°Ù اÙÙØ³Ø®Ø©: ",N.minExposuresPerVariant," Ù
Ø´Ø§ÙØ¯Ø© ÙØ±Ùدة ÙÙÙ Ù
ثاÙ."]}),N.winnerVariant&&s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:93",role:"status",className:"mt-2 rounded-lg border border-emerald-600 bg-emerald-100 p-2 text-xs font-bold text-emerald-900",children:[s.jsx(bn,{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:93",className:"ml-1 inline h-4 w-4"})," ØªØ§Ø±ÙØ® Ø§ÙØ§Ø¹ØªÙ
اد: ",iU(N.winnerDecidedAt)," ⢠Ù
ÙÙØ§Ø³ Ø§ÙØØ³Ù
: ",oU(k?.metric)," ⢠",k?.rule??"ÙÙØ·Ø© اÙÙØ±Ø§Ø± Ù
ØÙÙØ¸Ø© ÙÙØ°Ù اÙÙØ³Ø®Ø©."]}),s.jsx("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",className:"mt-3 grid gap-2 sm:grid-cols-2",children:N.variants.map(A=>s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",className:"rounded-lg border-2 border-black bg-white p-3",children:[s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",className:"font-black",children:["اÙÙ
ثا٠",A.variant," ",N.winnerVariant===A.variant&&"â
اÙÙ
عتÙ
د"]}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",children:["Ø´Ø§ÙØ¯ÙÙ ÙÙ Ø§ÙØ§Ø®ØªØ¨Ø§Ø±: ",A.exposed]}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",children:["طبÙÙÙÙ: ",A.engaged," (",A.engagementRate,"%)"]}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",children:["Ø£ÙÙ
ÙÙØ§ اÙÙÙÙØ²: ",A.quizCompleted," (",A.completionRate,"%)"]}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",children:["ÙÙÙÙ
ÙÙ: ",A.ratings," ⢠Ù
ÙÙØ¯ ",A.helpful," â¢ Ø´Ø¬ÙØ¹ÙÙ ",A.tryCount," â¢ ÙØØªØ§Ø¬ ØªÙØ¶ÙØØ§Ù ",A.unclear]}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:94",children:["ÙØ³Ø¨Ø© Ø§ÙØªÙÙÙÙ
ات Ø§ÙØ¥ÙØ¬Ø§Ø¨ÙØ©: ",A.positiveRate,"% Ù
٠اÙÙ
ÙÙÙÙÙ
ÙÙ"]})]},A.variant))}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:95",className:"mt-2 text-xs font-bold text-black/70",children:["اÙÙ
ÙØ§Ù
ÙÙ
Ø¹Ø¯Ù Ø§ÙØ¥ÙÙ
ا٠Ù٠عدد Ù
Ù Ø´Ø§ÙØ¯Ùا اÙÙØ³Ø®Ø© Ø®ÙØ§Ù Ø§ÙØ§Ø®ØªØ¨Ø§Ø±Ø Ø§ÙØªÙÙÙÙ
Ø§ÙØ¥Ùجاب٠Ù
٠عدد اÙÙ
ÙÙÙÙ
ÙÙ ÙÙØ·. ",N.variants.some(A=>A.exposed<N.minExposuresPerVariant)?`Ø§ÙØ¨ÙØ§ÙØ§Øª Ø£ÙÙÙØ©: ÙØØªØ§Ø¬ ${N.minExposuresPerVariant} Ù
Ø´Ø§ÙØ¯Ø© ÙÙÙ ÙØ³Ø®Ø© ÙØ¨Ù Ø§ÙØØ³Ù
.`:N.winnerVariant?"اعتÙ
اد تÙÙØ§Ø¦Ù ÙÙ٠اÙÙØ§Ø¹Ø¯Ø© اÙÙ
Ø³Ø¬ÙØ©Ø ÙØ§ ÙØ«Ø¨Øª Ø¹ÙØ§ÙØ© Ø³Ø¨Ø¨ÙØ© Ù
Ø·ÙÙØ©.":"Ø¨ÙØºØª Ø§ÙØªØ¬Ø±Ø¨Ø© ØØ¯ اÙÙ
Ø´Ø§ÙØ¯Ø©Ø ÙÙÙ ÙÙ
ÙØ¸Ùر ÙØ§Ø±Ù ÙØ§ÙÙ Ø¨Ø«ÙØ©Ø تستÙ
ر دÙÙ Ø¥Ø¹ÙØ§Ù ÙØ§Ø¦Ø²."]})]})]}),s.jsxs("section",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:99",className:"mt-6 rounded-xl border-2 border-black bg-white p-4","aria-label":"Ø³Ø¬Ù ÙØ±Ø§Ø±Ø§Øª اعتÙ
اد اÙÙØ³Ø®",children:[s.jsxs("h3",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:100",className:"flex items-center gap-2 text-base font-black text-black",children:[s.jsx(tu,{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:100",className:"h-5 w-5"})," Ø³Ø¬Ù ÙØ±Ø§Ø±Ø§Øª Ø§ÙØ§Ø¹ØªÙ
اد Ø§ÙØªÙÙØ§Ø¦Ù"]}),s.jsx("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:101",className:"mt-1 text-xs font-bold leading-5 text-black/65",children:"ÙÙØ¶Ø Ø§ÙØ³Ø¬Ù Ù
ت٠اتخذ اÙÙØ¸Ø§Ù
اÙÙØ±Ø§Ø±Ø ÙØ§ÙÙØ³Ø®Ø© اÙÙØ§Ø¦Ø²Ø©Ø ÙØ§ÙÙ
ÙÙØ§Ø³Ø ÙØ§ÙØØ¯ اÙÙ
ستخدÙ
Ø ÙØ£Ø±ÙاÙ
اÙÙ
Ø´Ø§ÙØ¯Ø© ÙØ§ÙØªÙØ§Ø¹Ù ÙÙØª Ø§ÙØØ³Ù
. ÙØ§ ÙØªÙ
ØØ°Ù Ø§ÙØ³Ø¬Ù Ø¹ÙØ¯ تعدÙÙ Ø§ÙØªØ¬Ø±Ø¨Ø©."}),D.length?s.jsx("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"mt-3 space-y-3",children:D.map(A=>s.jsxs("article",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"rounded-lg border-2 border-black/20 bg-memphis-peach/30 p-3 text-sm text-black",children:[s.jsxs("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"flex flex-wrap items-center justify-between gap-2",children:[s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"font-black",children:[s.jsx(aa,{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"ml-1 inline h-4 w-4"})," ",A.lessonTitle," â Ø§Ùإصدار ",A.revision]}),s.jsx("time",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"text-xs font-bold text-black/65",children:iU(A.decidedAt)})]}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"mt-2 font-bold",children:["اعتÙ
د اÙÙØ¸Ø§Ù
",s.jsxs("span",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"rounded bg-memphis-yellow px-1.5",children:["اÙÙ
ثا٠",A.winnerVariant]})," تÙÙØ§Ø¦ÙØ§Ù Ø¨ÙØ§Ø¡Ù عÙÙ ",oU(A.metric),"Ø Ø¨Ø¹Ø¯ بÙÙØº ",A.minExposuresPerVariant," Ù
Ø´Ø§ÙØ¯Ø© ÙØ±Ùدة ÙÙÙ ÙØ³Ø®Ø©."]}),s.jsx("div",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"mt-2 grid gap-2 sm:grid-cols-2",children:(A.winnerSnapshot.arms??[]).map(E=>s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"rounded bg-white p-2 text-xs font-bold",children:["اÙÙ
ثا٠",E.variant,": ",E.exposed," Ù
Ø´Ø§ÙØ¯Ø© ⢠",E.quizCompleted," Ø¥ÙÙ
ا٠ÙÙÙØ² ⢠",E.helpful+E.tryCount+E.unclear," تÙÙÙÙ
ات (",E.helpful+E.tryCount," Ø¥ÙØ¬Ø§Ø¨ÙØ©)"]},E.variant))}),s.jsxs("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"mt-2 text-xs font-bold text-black/65",children:["ÙØ§Ø¹Ø¯Ø© اÙÙØ±Ø§Ø±: ",A.winnerSnapshot.rule??"ÙØ±Ù Ù
ÙØ«ÙÙ ÙÙÙ ÙØ§ØµÙ Wilson 95% ÙØ¨ØØ¯ ÙØ§Ø±Ù 10 ÙÙØ§Ø· Ù
ئÙÙØ©."]})]},A.id))}):s.jsx("p",{"data-loc":"client/src/components/LessonExperimentAdmin.tsx:102",className:"mt-3 rounded-lg bg-gray-50 p-3 text-sm font-bold text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØ±Ø§Ø±Ø§Øª تÙÙØ§Ø¦ÙØ© Ù
ØÙÙØ¸Ø© ØØªÙ Ø§ÙØ¢Ù."})]})]})}function Kze(){const e=J.useUtils(),t=J.admin.quizContentReview.useQuery(void 0,{refetchInterval:1e4,refetchIntervalInBackgroun
1114d:!1}),[a,n]=P.useState("flagged"),[r,i]=P.useState(""),[o,l]=P.useState(null),c=J.admin.reviewQuizQuestion.useMutation({onSuccess:()=>{re.success("تÙ
ت Ù
راجعة Ø§ÙØ³Ø¤Ø§Ù ÙØÙØ¸Ù"),l(null),e.admin.quizContentReview.invalidate(),e.admin.quizLowAlignmentAlerts.invalidate(),e.quiz.byLesson.invalidate()},onError:f=>re.error(f.message)}),d=(t.data??[]).filter(f=>(a==="all"||(a==="pending"?f.needsReview:f.needsReview&&f.overlap<15))&&(!r||`${f.lessonTitle} ${f.questionAr}`.includes(r.trim()))),m=t.data?.find(f=>f.id===o?.id);return s.jsxs("section",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:19",className:"rounded-2xl border-2 border-black bg-white p-5 shadow-memphis","aria-label":"Ù
راجعة Ø£Ø³Ø¦ÙØ© اÙÙÙÙØ²",children:[s.jsxs("h2",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:20",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(hC,{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:20",className:"h-5 w-5"})," Ù
راجعة ربط اÙÙÙÙØ² Ø¨Ø§ÙØ¯Ø±Ø³"]}),s.jsx("p",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:21",className:"mt-2 text-sm leading-6 text-black/75",children:"ÙØ±Ø´ÙØ Ø§ÙØ£Ø³Ø¦ÙØ© Ù
ÙØ®Ùضة تطاب٠اÙÙ
ÙØ±Ø¯Ø§Øª Ù
ع Ù
ØªÙ Ø§ÙØ¯Ø±Ø³ ÙÙÙ
راجعة Ø§ÙØ¨Ø´Ø±ÙØ©Ø Ø§ÙÙ
ؤشر اÙÙØµÙ ÙØØ¯Ù ÙØ§ ÙØ«Ø¨Øª خطأ Ø§ÙØ¥Ø¬Ø§Ø¨Ø©. Ø§ÙØ±Ø£ Ù
ÙØªØ·Ù Ø§ÙØ¯Ø±Ø³ Ø«Ù
راجع ÙÙ Ø®ÙØ§Ø± ÙØ§ÙØªÙØ³Ùر ÙØ¨Ù Ø§ÙØÙØ¸."}),s.jsxs("div",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:22",className:"mt-4 grid gap-2 sm:grid-cols-[1fr_auto]",children:[s.jsxs("label",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:23",className:"flex items-center gap-2 rounded-lg border-2 border-black p-2",children:[s.jsx(xl,{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:23",className:"h-4 w-4"}),s.jsx("input",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:23","aria-label":"Ø¨ØØ« ÙÙ Ø£Ø³Ø¦ÙØ© اÙÙÙÙØ²",value:r,onChange:f=>i(f.target.value),className:"w-full min-w-0 outline-none",placeholder:"اسÙ
Ø§ÙØ¯Ø±Ø³ Ø£Ù Ø§ÙØ³Ø¤Ø§Ù"})]}),s.jsxs("select",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:24","aria-label":"تصÙÙØ© Ø£Ø³Ø¦ÙØ© اÙÙÙÙØ²",value:a,onChange:f=>{n(f.target.value),l(null)},className:"rounded-lg border-2 border-black bg-white p-2 text-black",children:[s.jsx("option",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:24",value:"flagged",children:"Ù
Ø±Ø´ØØ© ÙÙÙ
راجعة"}),s.jsx("option",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:24",value:"pending",children:"ÙÙ
ØªÙØ±Ø§Ø¬Ø¹/ØªØºÙØ± Ø§ÙØ¯Ø±Ø³"}),s.jsx("option",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:24",value:"all",children:"ÙÙ Ø§ÙØ£Ø³Ø¦ÙØ©"})]})]}),t.isLoading?s.jsx("p",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",className:"mt-4 text-sm",children:"جار٠تØÙ
ÙÙ Ø§ÙØ£Ø³Ø¦ÙØ©â¦"}):t.isError?s.jsx("p",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",role:"alert",className:"mt-4 text-red-700",children:"تعذر تØÙ
ÙÙ ÙØ§Ø¦Ù
Ø© Ø§ÙØ£Ø³Ø¦ÙØ©."}):s.jsx("div",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",className:"mt-4 max-h-72 space-y-2 overflow-y-auto","aria-label":"ÙØ§Ø¦Ù
Ø© Ø§ÙØ£Ø³Ø¦ÙØ©",children:d.length?d.map(f=>s.jsxs("button",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",type:"button",onClick:()=>l({id:f.id,revision:f.revision,questionAr:f.questionAr,options:[...f.options],correctIndex:f.correctIndex,explanationAr:f.explanationAr}),className:`block w-full rounded-lg border-2 p-3 text-right text-sm text-black ${o?.id===f.id?"border-black bg-memphis-yellow":"border-black/25 bg-white"}`,children:[s.jsx("strong",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",children:f.lessonTitle}),s.jsxs("span",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",className:"mr-2 text-xs font-bold",children:[f.overlap,"% ØªØ´Ø§Ø¨Ù ÙØµÙ ⢠",f.needsReview?"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة":"رÙÙØ¬Ø¹"]}),s.jsx("p",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",className:"mt-1",children:f.questionAr})]},f.id)):s.jsx("p",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:26",className:"text-sm text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ Ø£Ø³Ø¦ÙØ© ÙÙ ÙØ°Ù Ø§ÙØªØµÙÙØ©."})}),o&&m&&s.jsxs("div",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:27",className:"mt-5 space-y-3 rounded-xl border-2 border-black bg-amber-50 p-4 text-black",children:[s.jsxs("h3",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:28",className:"font-black",children:["Ø§ÙØ³Ø¤Ø§Ù #",o.id,": ",m.lessonTitle]}),s.jsxs("details",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:29",children:[s.jsx("summary",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:29",className:"cursor-pointer text-sm font-bold",children:"Ø§ÙØ±Ø£ Ù
ÙØªØ·Ùا٠Ù
Ù Ø§ÙØ¯Ø±Ø³ ÙØ¨Ù Ø§ÙØªØµØÙØ"}),s.jsx("p",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:29",className:"mt-2 max-h-52 overflow-y-auto whitespace-pre-line rounded-lg bg-white p-3 text-sm leading-6",children:m.lessonExcerpt})]}),s.jsx("label",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:30",className:"block text-sm font-bold",htmlFor:"review-question",children:"ÙØµ Ø§ÙØ³Ø¤Ø§Ù"}),s.jsx("textarea",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:30",id:"review-question",value:o.questionAr,onChange:f=>l({...o,questionAr:f.target.value}),className:"w-full rounded-lg border-2 border-black bg-white p-2",rows:2}),s.jsx("p",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:31",className:"text-sm font-bold",children:"Ø§ÙØ¨Ø¯Ø§Ø¦ÙØ Ø§Ø®ØªØ± Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© Ù
Ù Ø§ÙØ¯Ø§Ø¦Ø±Ø© Ø¨Ø¬Ø§ÙØ¨Ùا"}),o.options.map((f,h)=>s.jsxs("div",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:32",className:"flex items-center gap-2",children:[s.jsx("input",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:32",type:"radio","aria-label":`Ø§ÙØ¥Ø¬Ø§Ø¨Ø© Ø§ÙØµØÙØØ© ${h+1}`,name:"correct-quiz-answer",checked:o.correctIndex===h,onChange:()=>l({...o,correctIndex:h})}),s.jsx("input",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:32","aria-label":`Ø§ÙØ¨Ø¯ÙÙ ${h+1}`,className:"w-full rounded-lg border-2 border-black bg-white p-2 text-sm",value:f,onChange:x=>l({...o,options:o.options.map((b,y)=>y===h?x.target.value:b)})})]},h)),s.jsx("label",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:33",className:"block text-sm font-bold",htmlFor:"review-explanation",children:"Ø´Ø±Ø Ø§ÙØ¥Ø¬Ø§Ø¨Ø© ÙØªØ¨Ø±Ùر Ø§ÙØ¨Ø¯Ø§Ø¦Ù"}),s.jsx("textarea",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:33",id:"review-explanation",className:"w-full rounded-lg border-2 border-black bg-white p-2",rows:3,value:o.explanationAr,onChange:f=>l({...o,explanationAr:f.target.value})}),s.jsxs("div",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:34",className:"flex gap-2",children:[s.jsx("button",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:34",type:"button",disabled:c.isPending||o.options.length!==4||o.options.some(f=>f.trim().length<2)||o.questionAr.trim().length<12||o.explanationAr.trim().length<10,onClick:()=>c.mutate(o),className:"rounded-lg border-2 border-black bg-memphis-mint px-4 py-2 text-sm font-black disabled:opacity-50",children:c.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"اØÙظ ÙØ§Ø¹ØªÙ
د اÙÙ
راجعة"}),s.jsx("button",{"data-loc":"client/src/components/QuizContentReviewAdmin.tsx:34",type:"button",onClick:()=>l(null),className:"rounded-lg border-2 border-black bg-white px-4 py-2 text-sm font-black",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})}const lU="athar.quiz-low-alignment-seen-v1";function xte(){const e=J.admin.quizLowAlignmentAlerts.useQuery(void 0,{refetchInterval:1e4,refetchIntervalInBackgroun
1114d:!1}),t=P.useRef(null);return P.useEffect(()=>{if(!e.data)return;if(!t.current)try{const n=sessionStorage.getItem(lU);t.current=n?new Set(JSON.parse(n)):new Set(e.data.items.map(r=>r.id))}catch{t.current=new Set(e.data.items.map(n=>n.id))}const a=e.data.items.filter(n=>!t.current.has(n.id));a.length&&re.warning(`Ø³Ø¤Ø§Ù Ø¬Ø¯ÙØ¯ ÙØØªØ§Ø¬ Ù
راجعة Ø§Ø±ØªØ¨Ø§Ø·Ù Ø¨Ø§ÙØ¯Ø±Ø³${a.length>1?` (+${a.length-1})`:""}`),e.data.items.forEach(n=>t.current.add(n.id));try{sessionStorage.setItem(lU,JSON.stringify(Array.from(t.current).slice(-500)))}catch{}},[e.data]),e.isError?s.jsx("p",{"data-loc":"client/src/components/AdminQuizAlignmentAlert.tsx:26",role:"alert",className:"text-xs font-bold text-amber-200",children:"ØªØ¹Ø°ÙØ± ØªØØ¯ÙØ« ØªÙØ¨ÙÙØ§Øª Ø§ÙØ£Ø³Ø¦ÙØ©."}):e.data?.count?s.jsxs(jt,{"data-loc":"client/src/components/AdminQuizAlignmentAlert.tsx:28",href:"/admin/content#quiz-alignment",className:"inline-flex items-center gap-2 rounded-lg border-2 border-amber-800 bg-amber-100 px-3 py-2 text-xs font-black text-amber-950 shadow-[2px_2px_0_#111] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amber-600","aria-label":`${e.data.count} Ø³Ø¤Ø§Ù ÙØØªØ§Ø¬ Ù
راجعة ØªØ±Ø§Ø¨Ø·Ù Ø¨Ø§ÙØ¯Ø±Ø³`,children:[s.jsx(Xx,{"data-loc":"client/src/components/AdminQuizAlignmentAlert.tsx:29",className:"h-4 w-4","aria-hidden":"true"}),s.jsxs("span",{"data-loc":"client/src/components/AdminQuizAlignmentAlert.tsx:29",role:"status",children:[e.data.count," سؤا٠ÙÙÙ
راجعة"]})]}):null}const $ze={3:"Ø¨Ø¯Ø§ÙØ© Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©",7:"Ø£Ø³Ø¨ÙØ¹ ثابت",14:"زخÙ
Ù
تصاعد",30:"Ø¨Ø·Ù Ø§ÙØ¹Ø§Ø¯Ø©"};function Xze(){const e=J.useUtils(),t=J.admin.streakRewardSettings.useQuery(),[a,n]=P.useState({3:20,7:50,14:120,30:300});P.useEffect(()=>{t.data&&n(Object.fromEntries(t.data.map(o=>[o.milestoneDays,o.pointsAwarded])))},[t.data]);const r=J.admin.updateStreakRewardSettings.useMutation({onSuccess:()=>{re.success("تÙ
ØªØØ¯ÙØ« ÙÙÙ
Ù
ÙØ§Ùآت Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©"),e.admin.streakRewardSettings.invalidate()},onError:o=>re.error(o.message||"تعذر ØÙظ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª")}),i=()=>r.mutate({rewards:[3,7,14,30].map(o=>({milestoneDays:o,pointsAwarded:Math.max(0,Math.min(5e3,Number(a[o]??0)))}))});return s.jsxs("section",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:20",className:"memphis-card mt-6 bg-memphis-lilac p-5","aria-labelledby":"streak-reward-settings",children:[s.jsx("div",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:21",className:"mb-4 flex flex-wrap items-start justify-between gap-3",children:s.jsxs("div",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:21",children:[s.jsxs("h2",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:21",id:"streak-reward-settings",className:"flex items-center gap-2 text-lg font-black text-black",children:[s.jsx(wW,{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:21",className:"h-5 w-5"})," Ù
ÙØ§Ùآت Ø³ÙØ³ÙØ© Ø§ÙØ§Ø³ØªÙ
Ø±Ø§Ø±ÙØ©"]}),s.jsx("p",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:21",className:"mt-1 text-sm font-bold text-black/65",children:"ØªÙØ·Ø¨Ù اÙÙÙÙ
Ø§ÙØ¬Ø¯Ùدة عÙ٠اÙÙ
Ø·Ø§ÙØ¨Ø§Øª اÙÙØ§Ø¯Ù
Ø© ÙÙØ·Ø ÙØ§ ØªØªØºÙØ± اÙÙ
ÙØ§Ùآت اÙÙ
ستÙÙ
Ø© Ø³Ø§Ø¨ÙØ§Ù."})]})}),s.jsx("div",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:22",className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",children:[3,7,14,30].map(o=>s.jsxs("label",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:22",className:"rounded-xl border-2 border-black bg-white p-3",children:[s.jsxs("span",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:22",className:"block text-xs font-black text-black",children:[o," Ø£ÙØ§Ù
"]}),s.jsx("span",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:22",className:"mt-1 block text-[11px] font-bold text-black/55",children:$ze[o]}),s.jsxs("div",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:22",className:"mt-3 flex items-center gap-2",children:[s.jsx("input",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:22",type:"number",min:0,max:5e3,value:a[o]??0,onChange:l=>n(c=>({...c,[o]:Number(l.target.value)})),className:"memphis-input min-w-0 flex-1 px-3 py-2 text-sm font-black"}),s.jsx("span",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:22",className:"text-xs font-black text-black",children:"ÙÙØ·Ø©"})]})]},o))}),s.jsx("button",{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:23",type:"button",onClick:i,disabled:r.isPending||t.isLoading,className:"memphis-btn mt-4 bg-black px-5 py-2.5 text-sm font-black text-white disabled:opacity-50",children:r.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Ta,{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:23",className:"ml-1 inline h-4 w-4 animate-spin"})," Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸..."]}):s.jsxs(s.Fragment,{children:[s.jsx(zpe,{"data-loc":"client/src/components/StreakRewardSettingsPanel.tsx:23",className:"ml-1 inline h-4 w-4"})," ØÙظ اÙÙÙÙ
"]})})]})}const Yze={general:"Ù
عÙÙÙ
ات عاÙ
Ø©",ai:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",health:"Ø§ÙØµØØ© ÙØ§ÙÙÙØ§ÙØ©",work:"Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù",selfdev:"تطÙÙØ± Ø§ÙØ°Ø§Øª"},Zze={easy:"سÙÙ",medium:"Ù
ØªÙØ³Ø·",hard:"صعب"};function Jze(e){const a="\\uFEFF"+[["اÙÙÙØ¹","اÙÙ
عرÙ","Ø§ÙØ§Ø³Ù
","اÙÙ
ØØ§ÙÙØ§Øª","Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©","ÙØ³Ø¨Ø© اÙÙØ¬Ø§Ø"],...e.lessons.map(i=>["درس",i.lessonId,i.titleAr,i.attempts,i.correct,`${i.successRate}%`]),...e.teams.map(i=>["ÙØ±ÙÙ",i.teamId,i.teamName,i.attempts,i.correct,`${i.successRate}%`]),...e.activities.map(i=>["ÙØ´Ø§Ø·",`${i.lessonId}:${i.activityKey}`,`${i.lessonTitleAr} â ${i.activityKey}`,i.attempts,i.correct,`${i.successRate}%`])].map(i=>i.map(o=>`"${String(o).replaceAll('"','""')}"`).join(",")).join("\\n"),n=URL.createObjectURL(new Blob([a],{type:"text/csv;charset=utf-8"})),r=document.createElement("a");r.href=n,r.download="interactive-activity-stats.csv",r.click(),URL.revokeObjectURL(n)}function e_e(e){const t=e.range.since?`${new Date(e.range.since).toLocaleDateString("ar-SA")} â ${e.range.until?new Date(e.range.until).toLocaleDateString("ar-SA"):"Ø§ÙØ¢Ù"}`:"Ø§ÙØ¥Ø¬Ù
اÙÙ",a=[...e.lessons.map(r=>`<tr><td>درس</td><td>${r.titleAr}</td><td>${r.attempts}</td><td>${r.correct}</td><td>${r.successRate}%</td></tr>`),...e.teams.map(r=>`<tr><td>ÙØ±ÙÙ</td><td>${r.teamName}</td><td>${r.attempts}</td><td>${r.correct}</td><td>${r.successRate}%</td></tr>`),...e.activities.map(r=>`<tr><td>ÙØ´Ø§Ø·</td><td>${r.lessonTitleAr} â ${r.activityKey}</td><td>${r.attempts}</td><td>${r.correct}</td><td>${r.successRate}%</td></tr>`)].join(""),n=window.open("","_blank","noopener,noreferrer,width=900,height=700");n&&(n.document.write(`<html dir="rtl"><head><title>ØªÙØ±Ùر Ø§ÙØ£Ùشطة Ø§ÙØªÙاعÙÙØ©</title><style>body{font-family:Arial,sans-serif;padding:32px;color:#111}h1{font-size:24px}table{border-collapse:collapse;width:100%;margin-top:24px}th,td{border:1px solid #222;padding:8px;text-align:right}th{background:#eee}</style></head><body><h1>ØªÙØ±Ùر ÙØ¬Ø§Ø Ø§ÙØ£Ùشطة Ø§ÙØªÙاعÙÙØ©</h1><p>اÙÙØ·Ø§Ù Ø§ÙØ²Ù
ÙÙ: ${t}</p><table><thead><tr><th>
1114اÙÙÙØ¹</th><th>Ø§ÙØ§Ø³Ù
</th><th>اÙÙ
ØØ§ÙÙØ§Øª</th><th>Ø§ÙØµØÙØ</th><th>ÙØ³Ø¨Ø© اÙÙØ¬Ø§Ø</th></tr></thead><tbody>${a}</tbody></table><script>window.onload=()=>window.print()<\/script></body></html>`),n.document.close())}const t_e=e=>e.replace(/[&<>\"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]??t);function bte(e){const t=[...e].reverse().slice(-12),a=1200,n=650,r=90,i=40,o=90,l=95,c=Math.max(100,...t.flatMap(x=>[x.totalShares,x.totalAttempts,x.successRate])),d=x=>r+(t.length<=1?0:x*((a-r-i)/(t.length-1))),m=x=>n-l-x/c*(n-o-l),f=(x,b)=>t.map((y,w)=>`${d(w)},${m(Number(y[x])||0)}`).join(" "),h=t.map((x,b)=>`<text x="${d(b)}" y="${n-55}" text-anchor="middle" font-size="18" font-weight="700">${t_e(new Date(x.weekStart).toLocaleDateString("ar-SA",{month:"short",day:"numeric"}))}</text>`).join("");return`<svg xmlns="http://www.w3.org/2000/svg" width="${a}" height="${n}" viewBox="0 0 ${a} ${n}"><rect width="100%" height="100%" fill="#fff7ed"/><text x="${a-40}" y="48" text-anchor="end" font-size="28" font-weight="900">ØªÙØ¬Ùات Ø§ÙØªÙØ§Ø¹Ù Ø§ÙØ£Ø³Ø¨ÙØ¹ÙØ© â Ø¬Ø¯ ÙØ¬Ø¯</text><line x1="${r}" y1="${n-l}" x2="${a-i}" y2="${n-l}" stroke="#111" stroke-width="3"/><line x1="${r}" y1="${o}" x2="${r}" y2="${n-l}" stroke="#111" stroke-width="3"/><polyline points="${f("totalShares")}" fill="none" stroke="#7c3aed" stroke-width="6"/><polyline points="${f("totalAttempts")}" fill="none" stroke="#f59e0b" stroke-width="6"/><polyline points="${f("successRate")}" fill="none" stroke="#059669" stroke-width="6"/>${h}<text x="${a-40}" y="${n-15}" text-anchor="end" font-size="16">اÙÙ
Ø´Ø§Ø±ÙØ§Øª بÙÙØ³Ø¬Ù ⢠اÙÙ
ØØ§ÙÙØ§Øª Ø¨Ø±ØªÙØ§Ù٠⢠اÙÙØ¬Ø§Ø أخضر</text></svg>`}function a_e(e){return new Promise((t,a)=>{const n=bte(e),r=new Image;r.onload=()=>{try{const i=document.createElement("canvas");i.width=1200,i.height=650;const o=i.getContext("2d");if(!o)throw new Error("Canvas unavailable");o.drawImage(r,0,0);const l=document.createElement("a");l.download="jad-wjad-weekly-report.png",l.href=i.toDataURL("image/png"),l.click(),t()}catch(i){a(i)}},r.onerror=()=>a(new Error("تعذر Ø¥ÙØ´Ø§Ø¡ ØµÙØ±Ø© Ø§ÙØªÙØ±ÙØ±")),r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(n)}`})}function n_e(e,t={includeChart:!0,includeTable:!0,includeSummary:!0}){const a=[...e].reverse().map(l=>`<tr><td>${new Date(l.weekStart).toLocaleDateString("ar-SA")}</td><td>${l.totalShares}</td><td>${l.totalAttempts}</td><td>${l.successRate}%</td></tr>`).join(""),n=window.open("","_blank","noopener,noreferrer,width=1000,height=800");if(!n)return!1;const r=t.includeSummary?`<p>عدد Ø§ÙØ£Ø³Ø§Ø¨Ùع اÙÙ
Ø´Ù
ÙÙØ©: ${e.length} â Ø¢Ø®Ø± ØªØØ¯ÙØ«: ${new Date().toLocaleDateString("ar-SA")}</p>`:"",i=t.includeChart?bte(e):"",o=t.includeTable?`<table><thead><tr><th>Ø§ÙØ£Ø³Ø¨Ùع</th><th>اÙÙ
Ø´Ø§Ø±ÙØ§Øª</th><th>اÙÙ
ØØ§ÙÙØ§Øª</th><th>Ù
عد٠اÙÙØ¬Ø§Ø</th></tr></thead><tbody>${a}</tbody></table>`:"";return n.document.write(`<html dir="rtl"><head><title>Ø§ÙØªÙØ±ÙØ± Ø§ÙØ£Ø³Ø¨ÙØ¹Ù â Ø¬Ø¯ ÙØ¬Ø¯</title><style>body{font-family:Arial,sans-serif;padding:28px;color:#111}h1{font-size:26px}svg{width:100%;height:auto;margin:18px 0}table{border-collapse:collapse;width:100%;margin-top:18px}th,td{border:1px solid #111;padding:9px;text-align:right}th{background:#ede9fe}</style></head><body><h1>Ø§ÙØªÙØ±ÙØ± Ø§ÙØ£Ø³Ø¨ÙØ¹Ù ÙØªÙØ¬ÙØ§Øª Ø§ÙØªÙاعÙ</h1>${r}${i}${o}<script>window.onload=()=>window.print()<\/script></body></html>`),n.document.close(),!0}function s_e(){const[e,t]=P.useState("general"),[a,n]=P.useState("medium"),[r,i]=P.useState(null),[o,l]=P.useState(""),[c,d]=P.useState(""),m=J.admin.listLessons.useQuery(),[f,h]=P.useState("all"),[x,b]=P.useState("all"),[y,w]=P.useState(""),j=J.admin.interactiveActivityStats.useQuery({period:f}),[N,k]=P.useState("all"),[D,C]=P.useState("all"),S=P.useMemo(()=>({status:N,hasImage:D}),[D,N]),A=J.admin.challengeEvidence.useQuery(S),E=J.admin.challengeEvidenceDashboard.useQuery(),[R,F]=P.useState({}),[I,H]=P.useState({}),_=J.admin.achievementShareAnalytics.useQuery(),V=J.admin.lessonSourcesReport.useQuery(),W=J.admin.weeklyEngagementReports.useQuery(),[B,K]=P.useState(null),[ae,$]=P.useState(!1),[Z,O]=P.useState({includeChart:!0,includeTable:!0,includeSummary:!0}),Y=W.data??[],Q=async()=>
1114{if(!(!Y.length||B)){K("png");try{await a_e(Y),re.success("تÙ
تجÙÙØ² ØµÙØ±Ø© Ø§ÙØªÙØ±ÙØ± Ø§ÙØ£Ø³Ø¨ÙعÙ")}catch(pe){re.error(pe instanceof Error?pe.message:"تعذر ØªØµØ¯ÙØ± Ø§ÙØµÙرة")}finally{K(null)}}},U=()=>{!Y.length||B||$(!0)},oe=()=>{$(!1),K("pdf"),n_e(Y,Z)||re.error("اسÙ
Ø Ø¨Ø§ÙÙÙØ§Ùذ اÙÙ
ÙØ¨Ø«ÙØ© ÙØªØµØ¯Ùر PDF"),window.setTimeout(()=>K(null),900)},X=J.admin.updateLesson.useMutation({onSuccess:()=>{re.success("تÙ
ØÙظ Ù
ØØªÙÙ Ø§ÙØ¯Ø±Ø³ ÙØ§ÙØ£ÙØ´Ø·Ø© Ø§ÙØªÙاعÙÙØ©"),m.refetch()},onError:pe=>re.error(`تعذر ØÙظ Ø§ÙØ¯Ø±Ø³: ${pe.message}`)}),ne=J.admin.reviewChallengeEvidence.useMutation({onSuccess:()=>{re.success("تÙ
ØªØØ¯ÙØ« ØØ§ÙØ© دÙÙÙ Ø§ÙØ¥Ùجاز"),A.refetch(),E.refetch()},onError:pe=>re.error(`تعذر ØªØØ¯ÙØ« Ø§ÙØ¯ÙÙÙ: ${pe.message}`)}),ge=J.admin.replyChallengeEvidence.useMutation({onSuccess:(pe,et)=>{re.success("Ø£ÙØ±Ø³Ù رد اÙÙ
Ø¯ÙØ± ÙÙÙ
ÙØ¸Ù"),H(xe=>{const it={...xe};return delete it[et.completionId],it}),A.refetch()},onError:pe=>re.error(`تعذر Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø¯: ${pe.message}`)}),me=J.admin.checkOverdueChallengeEvidence.useMutation({onSuccess:pe=>{E.refetch(),pe.overdueCount?re.warning(`Ø£ÙØ±Ø³Ù ØªÙØ¨ÙÙ ÙØ§ØØ¯ ÙÙÙ
شرÙÙ٠ع٠${pe.overdueCount} دÙÙÙ Ù
تأخر`):re.success("ÙØ§ ØªÙØ¬Ø¯ Ø£Ø¯ÙØ© ØªØ¬Ø§ÙØ²Øª اÙÙ
ÙÙØ© ØØ§ÙÙØ§Ù")},onError:pe=>re.error(`تعذر ÙØØµ اÙÙ
ÙÙØ©: ${pe.message}`)}),{data:Ae,isLoading:Pe,refetch:L}=J.contentAdmin.dailyLog.useQuery(),ke=m.data?.find(pe=>String(pe.id)===o),Me=(j.data?.activities??[]).filter(pe=>(x==="all"||String(pe.lessonId)===x)&&(!y.trim()||`${pe.lessonTitleAr} ${pe.activityKey}`.toLocaleLowerCase().includes(y.trim().toLocaleLowerCase()))),Ze=[...W.data??[]].reverse(),Ce=Ze.at(-1),Te=Ze.at(-2),Ke=(pe,et)=>et===0?pe>0?100:0:Math.round((pe-et)/et*100),Ve=J.contentAdmin.runDailyUpdate.useMutation({onSuccess:pe=>{const et=pe.results[0];et?.status==="skipped"?re.info("تÙ
تشغÙÙ Ø§ÙØªØØ¯ÙØ« اÙÙÙÙ
Ù
Ø³Ø¨ÙØ§Ù â ÙØ§ ÙÙØ¬Ø¯ ØªÙØ±Ø§Ø±"):et?.status==="success"?re.success(`â
تÙ
ت Ø¥Ø¶Ø§ÙØ© درس Ø¬Ø¯ÙØ¯: ${et.lessonTitle} (${et.quizCount} Ø£Ø³Ø¦ÙØ©)`):re.error("ÙØ´Ù Ø§ÙØªØØ¯ÙØ«: "+et?.error),L()},onError:pe=>re.error("خطأ: "+pe.message)}),ht=J.contentAdmin.generatePuzzle.useMutation({onSuccess:pe=>{i(pe),re.success("â
تÙ
تÙÙÙØ¯ اÙÙØºØ² Ø¨ÙØ¬Ø§Ø! Ø±Ø§Ø¬Ø¹Ù Ø£Ø¯ÙØ§Ù Ø«Ù
أضÙÙ Ù
Ù ØµÙØØ© Ø§ÙØ£Ùغاز.")},onError:pe=>re.error("خطأ Ù٠تÙÙÙØ¯ اÙÙØºØ²: "+pe.message)});return s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:165",className:"min-h-screen bg-gray-50 p-6",dir:"rtl",children:[ae&&s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/45 p-4",role:"dialog","aria-modal":"true","aria-labelledby":"weekly-pdf-title",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",className:"w-full max-w-md rounded-2xl border-4 border-black bg-white p-5 shadow-[6px_6px_0_#000]",children:[s.jsx("h2",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",id:"weekly-pdf-title",className:"text-lg font-black text-black",children:"ØªØ®ØµÙØµ ØªÙØ±Ùر PDF"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",className:"mt-1 text-sm font-bold text-black/60",children:"اختر Ø§ÙØ¹Ùاصر Ø§ÙØªÙ ØªØ±ÙØ¯ Ù
Ø´Ø§Ø±ÙØªÙا Ù
ع Ø§ÙØ¥Ø¯Ø§Ø±Ø©."}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",className:"mt-4 space-y-3",children:[{key:"includeSummary",label:"اÙÙ
ÙØ®Øµ Ø§ÙØ²Ù
ÙÙ"},{key:"includeChart",label:"Ø§ÙØ±Ø³Ù
Ø§ÙØ¨ÙاÙÙ Ø§ÙØ£Ø³Ø¨ÙعÙ"},{key:"includeTable",label:"جدÙÙ Ø§ÙØ¨ÙØ§ÙØ§Øª Ø§ÙØªÙصÙÙÙ"}].map(pe=>s.jsxs("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",className:"flex cursor-pointer items-center gap-3 rounded-lg border-2 border-black bg-memphis-peach px-3 py-3 text-sm font-black text-black",children:[s.jsx("input",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",type:"checkbox",checked:Z[pe.key],onChange:et=>O(xe=>({...xe,[pe.key]:et.target.checked})),className:"h-5 w-5 accent-purple-700"}),pe.label]},pe.key))}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:166",className:"mt-5 flex justify-end gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:166",type:"button",variant:"outline",onClick:()=>$(!1),className:"border-2 border-black font-black text-black",children:"Ø¥ÙØºØ§Ø¡"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:166",type:"button",onClick:oe,disabled:!Z.includeSummary&&!Z.includeChart&&!Z.includeTable,className:"bg-purple-700 font-black text-white",children:"ØªØµØ¯ÙØ± PDF"})]})]})}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:167",className:"max-w-4xl mx-auto
1114space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:169",className:"flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:170",children:[s.jsx("h1",{"data-loc":"client/src/pages/AdminContentPage.tsx:171",className:"text-2xl font-bold text-gray-900",children:"إدارة اÙÙ
ØØªÙÙ Ø§ÙØªÙÙØ§Ø¦Ù"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:172",className:"text-gray-500 text-sm mt-1",children:"Ø¯ÙØ±Ø© Ù
ØØªÙÙ ÙÙÙ
ÙØ© Ù
ÙØÙØ¯Ø© ÙÙ 9:00ص (تÙÙÙØª Ø§ÙØ³Ø¹ÙØ¯ÙØ©) Ù
ع Ù
راجعة ذÙÙØ© ÙØ¨Ù اÙÙØ´Ø±"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:174",className:"flex flex-wrap items-center gap-2",children:[s.jsx(xte,{"data-loc":"client/src/pages/AdminContentPage.tsx:174"}),s.jsx(jt,{"data-loc":"client/src/pages/AdminContentPage.tsx:174",href:"/admin",children:s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:175",variant:"outline",size:"sm",children:"â ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©"})})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:179",className:"border-2 border-dashed border-purple-300 bg-purple-50",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:180",className:"pb-3",children:[s.jsx(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:180",className:"text-purple-900 flex items-center gap-2",children:"ð® ÙÙØ±Ø§Øª اÙÙØ±Ø§Ø¡Ø© Ø§ÙØªÙاعÙÙØ©"}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:180",children:"ÙÙ
ÙÙ ÙÙÙ
ØØ±Ø± إدراج ÙØ´Ø§Ø· ÙØµÙر Ø¯Ø§Ø®Ù ÙØµ Ø§ÙØ¯Ø±Ø³Ø ÙØ¸Ùر ÙÙÙ
ستخدÙ
Ø£Ø«ÙØ§Ø¡ اÙÙØ±Ø§Ø¡Ø© Ù
ع تØÙÙ ÙÙØ±Ù ÙØªØºØ°ÙØ© راجعة ÙÙÙØ§Ø·."})]}),s.jsx(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:181",children:s.jsx("code",{"data-loc":"client/src/pages/AdminContentPage.tsx:181",dir:"ltr",className:"block rounded-lg bg-white border border-purple-200 p-3 text-xs text-purple-900 break-words",children:Xye()})})]}),s.jsx(Wze,{"data-loc":"client/src/pages/AdminContentPage.tsx:184",lessons:m.data??[]}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:185",id:"quiz-alignment",children:s.jsx(Kze,{"data-loc":"client/src/pages/AdminContentPage.tsx:185"})}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:186",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:187",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:187",className:"flex items-center gap-2",children:[s.jsx(c2,{"data-loc":"client/src/pages/AdminContentPage.tsx:187",className:"h-5 w-5"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:187",children:"ØØ§ÙØ© Ù
صادر Ø§ÙØ¯Ø±Ùس ÙØ±ÙØ§Ø¨Ø·ÙØ§"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:187",children:"ØªØªØ¨ÙØ¹ اÙÙ
راجع ØØ³Ø¨ ØØ§ÙØ© Ø§ÙØªØÙÙØ آخر Ù
Ø±Ø§Ø¬Ø¹Ø©Ø ÙØªÙÙÙÙ
ÙØ§Ø¦Ø¯Ø© اÙÙ
ÙØ¸ÙÙÙ ÙØ¨Ù اعتÙ
Ø§Ø¯ÙØ§ ÙÙ Ø§ÙØ¯Ø±Ùس."})]}),s.jsx(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:188",className:"space-y-4",children:V.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:189",className:"grid gap-3 sm:grid-cols-3",children:[1,2,3].map(pe=>s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:189",className:"h-20 animate-pulse rounded-xl bg-slate-100"},pe))}):V.isError?s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:189",className:"rounded-xl border-2 border-red-300 bg-red-50 p-3 text-sm font-bold text-red-800",children:"تعذر تØÙ
ÙÙ ØªÙØ±Ùر اÙÙ
صادر."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"grid gap-3 sm:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"rounded-xl border-2 border-black bg-emerald-100 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"text-xs font-bold text-black/60",children:"تÙ
Ø§ÙØªØÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"mt-1 text-2xl font-black text-emerald-800",children:V.data?.totals.verified??0})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"rounded-xl border-2 border-black bg-amber-100 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"text-xs font-bold text-black/60",children:"ØªØØªØ§Ø¬ Ù
راجعة"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"mt-1 text-2xl font-black text-amber-800",children:V.data?.totals.needsReview??0})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"rounded-xl border-2 border-black bg-rose-100 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"text-xs font-bold text-black/60",children:"ØªØØªØ§Ø¬ Ø¥ØµÙØ§ØØ§Ù"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:190",className:"mt-1 text-2xl font-black text-rose-800",children:V.data?.totals.failed??0})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:"space-y-2",children:(V.data?.sources??[]).slice(0,18).map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:"grid gap-2 rounded-xl border-2 border-black bg-white p-3 text-sm md:grid-cols-[1fr_auto_auto] md:items-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:191",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:"font-black text-black",children:pe.titleAr}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:"text-xs font-bold text-black/55",children:[pe.lessonTitle," ⢠",pe.provider??"Ù
صدر خارجÙ"," ⢠",pe.language==="ar"?"عربÙ":"Ø¥ÙØ¬ÙÙØ²Ù"]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:"text-xs font-bold text-black/70",children:pe.lastVerifiedAt?`آخر تØÙÙ: ${new Date(pe.lastVerifiedAt).toLocaleDateString("ar-SA")}`:"ÙÙ
ÙÙØªØÙÙ Ù
Ù٠آÙÙØ§Ù"}),s.jsx(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:pe.verificationStatus==="verified"?"bg-emerald-100 text-emerald-800":pe.verificationStatus==="failed"?"bg-rose-100 text-rose-800":"bg-amber-100 text-amber-800",children:pe.verificationStatus==="verified"?s.jsxs(s.Fragment,{children:[s.jsx(bl,{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:"ml-1 h-3.5 w-3.5"}),"Ù
ÙØ«Ù"]}):s.jsxs(s.Fragment,{children:[s.jsx(Xx,{"data-loc":"client/src/pages/AdminContentPage.tsx:191",className:"ml-1 h-3.5 w-3.5"}),"Ù
راجعة"]})})]},pe.id))}),(V.data?.sources.length??0)>18&&s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:192",className:"text-center text-xs font-bold text-black/55",children:["ÙÙØ¹Ø±Ø¶ Ø£ØØ¯Ø« 18 Ù
صدرا٠Ù
٠إجÙ
اÙÙ ",V.data?.sources.length," Ù
صدر."]})]})})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:197",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:198",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:198",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:198",children:"ð§©"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:198",children:"Ù
ØØ±Ø± Ø§ÙØ£Ùشطة Ø§ÙØªÙاعÙÙØ©"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:198",children:"اختر درØ
1114³Ø§ÙØ Ø£Ø¶Ù Ø§ÙÙØ´Ø§Ø· Ø¨ØµØ±ÙØ§ÙØ Ø«Ù
راجع اÙÙØµ ÙØ§ØÙظÙ. Ø³ÙØ¸Ùر اÙÙØ´Ø§Ø· ÙÙÙ
تعÙÙ
داخ٠اÙÙØ±Ø§Ø¡Ø©."})]}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:199",className:"space-y-4",children:[s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:200",value:o,onValueChange:pe=>{l(pe),d(m.data?.find(et=>String(et.id)===pe)?.contentAr??"")},children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:201",className:"bg-white",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:201",placeholder:"اختر Ø¯Ø±Ø³Ø§Ù ÙØªØØ±ÙرÙ"})}),s.jsx(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:202",children:(m.data??[]).map(pe=>s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:202",value:String(pe.id),children:pe.titleAr},pe.id))})]}),o?s.jsxs(s.Fragment,{children:[s.jsx(Vze,{"data-loc":"client/src/pages/AdminContentPage.tsx:204",value:c,onChange:d}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:204",type:"button",disabled:X.isPending||!ke,onClick:()=>X.mutate({id:Number(o),contentAr:c}),className:"bg-emerald-700 font-black text-white",children:X.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Li,{"data-loc":"client/src/pages/AdminContentPage.tsx:204",className:"ml-2 h-4 w-4"})," Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸..."]}):"ØÙظ Ù
ØØªÙÙ Ø§ÙØ¯Ø±Ø³"})]}):s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:204",className:"rounded-lg border-2 border-dashed border-black/30 p-4 text-sm text-black/60",children:"اختر درسا٠ÙÙØ¨Ø¯Ø¡."}),s.jsx(Xze,{"data-loc":"client/src/pages/AdminContentPage.tsx:205"})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:209",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:210",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:210",className:"flex items-center gap-2",children:[s.jsx(Kx,{"data-loc":"client/src/pages/AdminContentPage.tsx:210",className:"h-5 w-5"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:210",children:"Ø¥ØØµØ§Ø¦Ùات Ø§ÙØ£Ùشطة Ø§ÙØªÙاعÙÙØ©"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:210",children:"Ù
ÙØ§Ø±ÙØ© ÙØ³Ø¨ اÙÙØ¬Ø§Ø بÙÙ Ø§ÙØ¯Ø±Ùس ÙØ§ÙÙØ±Ù Ù
٠اÙÙ
ØØ§ÙÙØ§Øª اÙÙ
Ø³Ø¬ÙØ© ÙØ¹ÙÙØ§Ù."})]}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:211",className:"space-y-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:212",className:"flex flex-wrap items-center gap-2",role:"group","aria-label":"اÙÙØªØ±Ø© Ø§ÙØ²Ù
ÙÙØ© ÙÙØ¥ØØµØ§Ø¦Ùات",children:[[{value:"week",label:"آخر 7 Ø£ÙØ§Ù
"},{value:"month",label:"آخر 30 ÙÙÙ
اÙ"},{value:"all",label:"Ø§ÙØ¥Ø¬Ù
اÙÙ"}].map(pe=>s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:213",type:"button",size:"sm",variant:f===pe.value?"default":"outline",onClick:()=>h(pe.value),children:pe.label},pe.value)),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:214",className:"mr-auto flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:214",type:"button",size:"sm",variant:"outline",onClick:()=>j.data&&Jze(j.data),disabled:j.isLoading||!j.data,children:[s.jsx(Qi,{"data-loc":"client/src/pages/AdminContentPage.tsx:214",className:"ml-1 h-4 w-4"})," CSV"]}),s.jsxs(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:214",type:"button",size:"sm",variant:"outline",onClick:()=>j.data&&e_e(j.data),disabled:j.isLoading||!j.data,children:[s.jsx(Zi,{"data-loc":"client/src/pages/AdminContentPage.tsx:214",className:"ml-1 h-4 w-4"})," PDF"]})]})]}),!j.isLoading&&s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"grid gap-3 sm:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"rounded-xl border-2 border-black bg-memphis-mint p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"text-xs font-bold text-black/60",children:"Ø¥ÙÙ
Ø§Ù Ø§ÙØªÙØ§Ø¹ÙØ§Øª"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"mt-1 text-2xl font-black text-black",children:(j.data?.lessons??[]).reduce((pe,et)=>pe+et.completions,0)})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"rounded-xl border-2 border-black bg-memphis-yellow p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"text-xs font-bold text-black/60",children:"Ù
ØªÙØ³Ø· Ø§ÙØ¯ÙØ©"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"mt-1 text-2xl font-black text-black",children:[(j.data?.lessons??[]).length?Math.round((j.data?.lessons??[]).reduce((pe,et)=>pe+et.successRate,0)/(j.data?.lessons??[]).length):0,"%"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"rounded-xl border-2 border-black bg-memphis-lilac p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"text-xs font-bold text-black/60",children:"Ø¯Ø±ÙØ³ ذات Ø¨ÙØ§Ùات"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:216",className:"mt-1 text-2xl font-black text-black",children:j.data?.lessons.length??0})]})]}),j.isLoading?s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"space-y-3",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"h-6 animate-pulse rounded bg-purple-100"}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"h-6 animate-pulse rounded bg-purple-100"}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"h-6 animate-pulse rounded bg-purple-100"})]}):j.isError?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"rounded-lg border-2 border-red-300 bg-red-50 p-3 text-sm font-bold text-red-800",children:"تعذر تØÙ
ÙÙ Ø§ÙØ¥ØØµØ§Ø¦Ùات. أعد اÙÙ
ØØ§ÙÙØ© ÙØ§ØÙاÙ."}):j.data?.lessons.length||j.data?.teams.length?s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"grid gap-6 lg:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"mb-2 font-black text-black",children:"Ù
ÙØ§Ø±ÙØ© Ø§ÙØ¯Ø±Ùس"}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"h-64",children:s.jsx($s,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",width:"100%",height:"100%",children:s.jsxs(Cx,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",data:j.data.lessons,layout:"vertical",margin:{left:20,right:20},children:[s.jsx(zr,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",strokeDasharray:"3 3"}),s.jsx(is,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",type:"number",domain:[0,100],unit:"%"}),s.jsx(Yn,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",type:"category",dataKey:"titleAr",width:110,tick:{fontSize:11}}),s.jsx(yn,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",formatter:pe=>[`${pe}%`,"ÙØ³Ø¨Ø© اÙÙØ¬Ø§Ø"]}),s.jsx(Bs,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",dataKey:"successRate",fill:"#7c3aed",radius:[0,6,6,0],name:"ÙØ³Ø¨Ø© اÙÙØ¬Ø§Ø"})]})})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"mb-2 font-black text-black",children:"Ù
ÙØ§Ø±ÙØ© اÙÙØ±Ù"}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"h-64",children:s.jsx($s,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",width:"100%",height:"100%",children:s.jsxs(Cx,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",data:j.data.teams,layout:"vertical",margin:{left:20,right:20},children:[s.jsx(zr,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",strokeDasharray:"3 3"}),s.jsx(is,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",type:"number",domain:[0,100],unit:"%"}),s.jsx(Yn,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",type:"category",dataKey:"teamName",width:110,tick:{fontSize:11}}),s.jsx(yn,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",formatter:pe=>[`${pe}%`,"ÙØ³Ø¨Ø© اÙÙØ¬Ø§Ø"]}),s.jsx(fr,{"data-loc":"client/src/pages/AdminContentPage.tsx:217"}),s.jsx(Bs,{"data-loc":"client/src/pages/AdminContentPage.tsx:217",dataKey:"successRate",fill:"#10b981",radius:[0,6,6,0],name:"ÙØ³Ø¨Ø© اÙÙØ¬Ø§Ø"})]})})})]})]}):s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:217",className:"rounded-lg border-2 border-dashed border-gray-300 p-5 text-center text-sm font-bold text-gray-500",children:"ÙØ§ ØªÙØ¬Ø¯ Ù
ØØ§ÙÙØ§Øª Ù
Ø³Ø¬ÙØ© ÙÙ ÙØ°Ù اÙÙØªØ±Ø©."})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:221",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:222",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:222",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:222",children:"ð¯"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:222",children:"ØªÙØ§ØµÙÙ ÙØ¬Ø§Ø ÙÙ ÙØ´Ø§Ø·"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:222",children:"ØØ¯Ø¯ Ø¯Ø±Ø³Ø§Ù Ø£Ù Ø§Ø¨ØØ« باسÙ
اÙÙØ´Ø§Ø· ÙÙ
راجعة اÙÙ
ØØ§ÙÙØ§Øª ÙØ§Ùإجابات Ø§ÙØµØÙØØ© ÙÙ
عد٠اÙÙØ¬Ø§Ø Ø¨Ø¯ÙØ©."})]}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:223",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:224",className:"grid gap-3 md:grid-cols-[1fr_1fr_auto]",children:[s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:225",value:x,onValueChange:b,children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:225",className:"bg-white",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:225",placeholder:"ÙÙ Ø§ÙØ¯Ø±Ùس"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:225",children:[s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:225",value:"all",children:"ÙÙ Ø§ÙØ¯Ø±Ùس"}),(m.data??[]).map(pe=>s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:225",value:String(pe.id),children:pe.titleAr},pe.id))]})]}),s.jsx("input",{"data-loc":"client/src/pages/AdminContentPage.tsx:226",value:y,onChange:pe=>w(pe.target.value),className:"rounded-md border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black",placeholder:"Ø¨ØØ« باسÙ
Ø§ÙØ¯Ø±Ø³ Ø£Ù Ù
ÙØªØ§Ø اÙÙØ´Ø§Ø·","aria-label":"Ø¨ØØ« ÙÙ ØªÙØ§ØµÙÙ Ø§ÙØ£Ùشطة"}),s.jsxs(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:227",className:"justify-center bg-memphis-mint px-3 py-2 text-black",children:[Me.length," ÙØ´Ø§Ø·Ø§Ù"]})]}),j.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"space-y-2",children:[1,2,3].map(pe=>s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"h-14 animate-pulse rounded-lg bg-purple-100"},pe))}):Me.length?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"space-y-2",children:Me.map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"grid gap-2 rounded-xl border-2 border-black bg-memphis-yellow/50 p-3 text-sm md:grid-cols-[1fr_auto_auto_auto] md:items-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"font-black text-black",children:pe.lessonTitleAr}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"font-mono text-xs font-bold text-black/60",dir:"ltr",children:pe.activityKey})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"text-xs font-bold text-black/60",children:"اÙÙ
ØØ§ÙÙØ§Øª"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"font-black text-black",children:pe.attempts})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"text-xs font-bold text-black/60",children:"Ø§ÙØµØÙØ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"font-black text-emerald-700",children:pe.correct})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"text-xs font-bold text-black/60",children:"اÙÙØ¬Ø§Ø"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"font-black text-purple-700",children:[pe.successRate,"%"]})]})]},`${pe.lessonId}-${pe.activityKey}`))}):s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:229",className:"rounded-lg border-2 border-dashed border-gray-300 p-5 text-center text-sm font-bold text-gray-500",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ØªÙØµÙÙÙØ© ضÙ
٠اÙÙØªØ±Ø© اÙÙ
ØØ¯Ø¯Ø©."}),!j.isLoading&&!!j.data?.lessons.length&&s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"space-y-2 border-t-2 border-black/10 pt-4",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"font-black text-black",children:"Ù
ÙØ®Øµ Ø¥ÙÙ
ا٠Ù٠درس"}),j.data.lessons.map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"grid gap-2 rounded-xl border-2 border-black bg-white p-3 text-sm sm:grid-cols-[1fr_auto_auto] sm:items-center",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"font-black text-black",children:pe.titleAr}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"text-xs font-bold text-black/60",children:"Ø¥ÙÙ
Ø§Ù Ø§ÙØªÙØ§Ø¹ÙØ§Øª"}),s.jsx("br",{"data-loc":"client/src/pages/AdminContentPage.tsx:230"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"font-black text-emerald-700",children:pe.completions})]}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"text-xs font-bold text-black/60",children:"Ø¯ÙØ© Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª"}),s.jsx("br",{"data-loc":"client/src/pages/AdminContentPage.tsx:230"}),s.jsxs("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:230",className:"font-black text-purple-700",children:[pe.successRate,"%"]})]})]},pe.lessonId))]})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:234",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:235",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:235",className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:235",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:235",className:"flex items-center gap-2",children:[s.jsx(hC,{"data-loc":"client/src/pages/AdminContentPage.tsx:235",className:"h-5 w-5"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:235",children:"Ù
راجعة Ø£Ø¯ÙØ© Ø§ÙØªØØ¯Ùات اÙÙÙÙ
ÙØ©"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:235",children:"Ù
ÙÙØ© اÙÙ
راجعة اÙÙ
Ø³ØªÙØ¯ÙØ© 48 ساعة. راجع Ù
ا ÙÙØ°Ù اÙÙ
ÙØ¸ÙØ Ø£Ø±Ø³Ù Ø±Ø¯ÙØ§Ù ÙØµÙØ±Ø§Ù Ø¹ÙØ¯ Ø§ÙØØ§Ø¬Ø©Ø Ø«Ù
اعتÙ
د Ø§ÙØ¯ÙÙÙ Ø£Ù Ø§Ø·ÙØ¨ ØªÙØ¶ÙØØ§Ù."})]}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:235",type:"button",size:"sm",variant:"outline",onClick:()=>me.mutate(),disabled:me.isPending,className:"border-2 border-black font-black text-black",children:me.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Li,{"data-loc":"client/src/pages/AdminContentPage.tsx:235",className:"ml-1 h-4 w-4"})," جار٠اÙÙØØµ..."]}):"ÙØØµ اÙÙ
تأخر Ø§ÙØ¢Ù"})]})}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:236",className:"space-y-4",children:[E.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",cla
1114ssName:"grid gap-2 sm:grid-cols-4",children:[1,2,3,4].map(pe=>s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"h-20 animate-pulse rounded-xl bg-slate-100"},pe))}):E.isError?s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"rounded-lg border-2 border-red-300 bg-red-50 p-3 text-sm font-bold text-red-800",children:"تعذر تØÙ
ÙÙ Ù
ؤشرات Ù
راجعة Ø§ÙØ£Ø¯ÙØ©."}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"rounded-xl border-2 border-black bg-memphis-yellow p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"text-xs font-bold text-black/60",children:"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"mt-1 text-2xl font-black text-black",children:E.data?.pendingCount??0})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"rounded-xl border-2 border-black bg-emerald-100 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"text-xs font-bold text-black/60",children:"ÙØ³Ø¨Ø© Ø§ÙØ§Ø¹ØªÙ
اد"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"mt-1 text-2xl font-black text-emerald-800",children:[E.data?.approvalRatePercent??0,"%"]}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"text-[10px] font-bold text-black/60",children:"Ù
٠اÙÙØ±Ø§Ø±Ø§Øª اÙÙ
ØØ³ÙÙ
Ø©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:`rounded-xl border-2 border-black p-3 ${(E.data?.overdueCount??0)>0?"bg-rose-100":"bg-memphis-mint"}`,children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"text-xs font-bold text-black/60",children:"ØªØ¬Ø§ÙØ²Øª 48 ساعة"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"mt-1 text-2xl font-black text-black",children:E.data?.overdueCount??0})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"rounded-xl border-2 border-black bg-memphis-lilac p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"text-xs font-bold text-black/60",children:"Ù
ØªÙØ³Ø· ÙÙØª اÙÙØ±Ø§Ø±"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"mt-1 text-2xl font-black text-black",children:E.data?.averageDecisionHours===null?"â":`${E.data?.averageDecisionHours} س`})]})]}),(E.data?.reasons.length??0)>0&&s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"rounded-xl border-2 border-black bg-white p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"mb-2 text-sm font-black text-black",children:"أسباب Ø·ÙØ¨ Ø§ÙØªÙØ¶ÙØ"}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"flex flex-wrap gap-2",children:E.data?.reasons.slice(0,6).map(pe=>s.jsxs(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"bg-rose-100 text-rose-900",children:[pe.count,"à ",pe.reason]},pe.reason))})]}),(E.data?.overdue.length??0)>0&&s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"rounded-xl border-2 border-rose-700 bg-rose-50 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"font-black text-rose-900",children:"Ø£ÙÙÙÙØ© اÙÙ
راجعة Ø§ÙØ¢Ù"}),E.data?.overdue.slice(0,3).map(pe=>s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:237",className:"mt-1 text-xs font-bold text-rose-900",children:[pe.challengeTitle," â ",pe.userName??"Ù
ÙØ¸Ù"," â Ù
تأخر ",pe.elapsedHours," ساعة"]},pe.completionId))]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:238",className:"grid gap-2 rounded-xl border-2 border-black bg-memphis-sky/25 p-3 sm:grid-cols-3",children:[s.jsxs("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:238",className:"text-xs font-black text-black",children:["Ø§ÙØØ§ÙØ©",s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:N,onValueChange:pe=>k(pe),children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",className:"mt-1 bg-white",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:238"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",children:[s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:"all",children:"ÙÙ Ø§ÙØØ§ÙØ§Øª"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:"submitted",children:"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:"needs_revision",children:"ÙØØªØ§Ø¬ ØªÙØ¶ÙØØ§Ù"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:"reviewed",children:"Ù
عتÙ
د"})]})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:238",className:"text-xs font-black text-black",children:["Ø§ÙØµÙرة",s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:D,onValueChange:pe=>C(pe),children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",className:"mt-1 bg-white",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:238"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",children:[s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:"all",children:"اÙÙÙ"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:"with_image",children:"Ù
ع ØµÙØ±Ø©"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",value:"without_image",children:"دÙÙ ØµÙØ±Ø©"})]})]})]}),s.jsxs(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:238",className:"self-end justify-center bg-memphis-yellow px-3 py-2 text-black",children:[A.data?.length??0," دÙÙÙ"]})]}),A.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"space-y-2",children:[1,2,3].map(pe=>s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"h-24 animate-pulse rounded-xl bg-amber-100"},pe))}):A.isError?s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"rounded-lg border-2 border-red-300 bg-red-50 p-3 text-sm font-bold text-red-800",children:"تعذر تØÙ
ÙÙ Ø£Ø¯ÙØ© Ø§ÙØªØØ¯Ùات."}):A.data?.length?A.data.map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"rounded-xl border-2 border-black bg-memphis-peach/50 p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"flex flex-wrap items-start justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"font-black text-black",children:pe.challengeTitle}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"text-xs font-bold text-black/60",children:[pe.userName," ⢠",pe.evidenceSubmittedAt?new Date(pe.evidenceSubmittedAt).toLocaleStr
1114ing("ar-SA"):"ØØ¯ÙثاÙ"]})]}),s.jsx(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:pe.evidenceStatus==="reviewed"?"bg-emerald-100 text-emerald-800":pe.evidenceStatus==="needs_revision"?"bg-red-100 text-red-800":"bg-yellow-100 text-yellow-800",children:pe.evidenceStatus==="reviewed"?"Ù
عتÙ
د":pe.evidenceStatus==="needs_revision"?"ÙØØªØ§Ø¬ ØªÙØ¶ÙØØ§Ù":"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة"})]}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"mt-3 rounded-lg border-2 border-black/20 bg-white p-3 text-sm font-bold leading-6 text-black",children:pe.evidenceText}),pe.evidenceImageUrl&&s.jsx("a",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",href:pe.evidenceImageUrl,target:"_blank",rel:"noreferrer",className:"mt-3 block w-fit",children:s.jsx("img",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",src:pe.evidenceImageUrl,alt:`ØµÙØ±Ø© دÙÙÙ ${pe.challengeTitle}`,className:"h-32 w-32 rounded-lg border-2 border-black bg-white object-cover"})}),s.jsx("textarea",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",value:R[pe.completionId]??pe.evidenceReviewNote??"",onChange:et=>F(xe=>({...xe,[pe.completionId]:et.target.value})),rows:2,maxLength:500,placeholder:"Ù
ÙØ§ØØ¸Ø© Ø§Ø®ØªÙØ§Ø±ÙØ© ÙÙÙ
ÙØ¸Ù",className:"mt-3 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black","aria-label":`Ù
ÙØ§ØØ¸Ø© Ù
راجعة ${pe.challengeTitle}`}),pe.evidenceStatus==="submitted"&&s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"mt-3 rounded-xl border-2 border-black bg-memphis-lilac/25 p-3",children:[s.jsxs("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"text-xs font-black text-black",children:["رد ÙØµÙر ÙØ¨Ù اÙÙØ±Ø§Ø± اÙÙÙØ§Ø¦Ù",s.jsx("textarea",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",value:I[pe.completionId]??pe.evidenceAdminReply??"",onChange:et=>H(xe=>({...xe,[pe.completionId]:et.target.value})),rows:2,maxLength:500,placeholder:"Ù
ثاÙ: Ø£ØØ³ÙØªØ Ø£Ø¶Ù ÙÙØª Ø§ÙØªÙÙÙØ° Ø«Ù
سأعتÙ
د Ø§ÙØ¯ÙÙÙ.",className:"mt-1 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black","aria-label":`رد اÙÙ
Ø¯ÙØ± عÙÙ ${pe.challengeTitle}`})]}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:239",type:"button",size:"sm",variant:"outline",disabled:ge.isPending||!(I[pe.completionId]??pe.evidenceAdminReply??"").trim(),onClick:()=>ge.mutate({completionId:pe.completionId,reply:I[pe.completionId]??pe.evidenceAdminReply??""}),className:"mt-2 border-2 border-black font-black text-black",children:ge.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...":"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø¯"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"mt-3 flex flex-wrap gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:239",type:"button",size:"sm",disabled:ne.isPending,onClick:()=>ne.mutate({completionId:pe.completionId,status:"reviewed",note:R[pe.completionId]??pe.evidenceReviewNote??void 0}),className:"bg-emerald-700 font-black text-white",children:"اعتÙ
اد Ø§ÙØ¯ÙÙÙ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:239",type:"button",size:"sm",variant:"outline",disabled:ne.isPending||!(R[pe.completionId]??pe.evidenceReviewNote??"").trim(),onClick:()=>ne.mutate({completionId:pe.completionId,status:"needs_revision",note:R[pe.completionId]??pe.evidenceReviewNote??void 0}),className:"border-2 border-black font-black text-black",children:"Ø·ÙØ¨ ØªÙØ¶ÙØ"})]})]},pe.completionId)):s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:239",className:"rounded-lg border-2 border-dashed border-gray-300 p-5 text-center text-sm font-bold text-gray-500",children:"ÙØ§ ØªÙØ¬Ø¯ Ø£Ø¯ÙØ© Ù
Ø±Ø³ÙØ© ØØªÙ Ø§ÙØ¢Ù."})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:243",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:244",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:244",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:244",children:"ð£"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:244",children:"تØÙÙÙØ§Øª Ù
Ø´Ø§Ø±ÙØ© Ø§ÙØ¥Ùجازات"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:244",children:"تتبع ØªÙØ§Ø¹Ù اÙÙ
ستخدÙ
ÙÙ Ù
ع Ù
Ø´Ø§Ø±ÙØ© Ø¥ÙØ¬Ø§Ø²Ø§Øª اÙÙØ±Ø§Ø¡Ø© ØØ³Ø¨ ÙÙØ§Ø© اÙÙ
Ø´Ø§Ø±ÙØ©."})]}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:245",children:[_.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"grid gap-3 sm:grid-cols-4",children:[1,2,3,4].map(pe=>s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"h-20 animate-pulse rounded-lg bg-purple-100"},pe))}):_.isError?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"rounded-lg border-2 border-red-300 bg-red-50 p-3 text-sm font-bold text-red-800",children:"تعذر تØÙ
Ù٠تØÙÙÙØ§Øª اÙÙ
Ø´Ø§Ø±ÙØ©."}):s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-4",children:_.data?.byChannel.map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"rounded-xl border-2 border-black bg-memphis-yellow p-3 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"text-sm font-black text-black",children:{native:"Ù
Ø´Ø§Ø±ÙØ© Ø§ÙØ¬Ùاز",whatsapp:"ÙØ§ØªØ³Ø§Ø¨",x:"X",facebook:"ÙÙØ³Ø¨ÙÙ",copy:"ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·",team:"اÙÙØ±ÙÙ"}[pe.channel]??pe.channel}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"mt-1 text-2xl font-black text-black",children:Number(pe.count)}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:246",className:"text-xs font-bold text-black/60",children:"Ù
Ø´Ø§Ø±ÙØ©"})]},pe.channel))}),!_.isLoading&&!_.isError&&!_.data?.byChannel.length&&s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:247",className:"rounded-lg border-2 border-dashed border-gray-300 p-5 text-center text-sm font-bold text-gray-500",children:"ÙØ§ ØªÙØ¬Ø¯ Ù
Ø´Ø§Ø±ÙØ§Øª Ù
Ø³Ø¬ÙØ© بعد."})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:251",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:252",className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:252",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:252",children:"ð"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:252",children:"Ø§ÙØªÙØ±ÙØ± Ø§ÙØ£Ø³Ø¨Ùع٠ÙÙØ¥Ø¯Ø§Ø±Ø©"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",children:"Ù
ÙØ®Øµ Ù
ØÙÙØ¸ ÙØªÙØ¬ÙØ§Øª Ø§ÙØªÙØ§Ø¹Ù ÙØ§ÙÙ
Ø´Ø§Ø±ÙØ© ÙÙ ÙÙ Ø£Ø³Ø¨ÙØ¹ Ù
ÙØªÙ
Ù. ÙØ±Ø³Ù اÙÙØ¸Ø§Ù
ØªÙØ¨ÙÙØ§Ù Ø¥Ø¯Ø§Ø±ÙØ§Ù تÙÙØ§Ø¦ÙØ§Ù ØµØ¨Ø§Ø Ø§ÙØ¥Ø«ÙÙÙ."})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:252",className:"flex shrink-0 gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",type:"button",size:"sm",variant:"outline",onClick:U,disabled:W.
1114isLoading||!Y.length||!!B,children:B==="pdf"?s.jsxs(s.Fragment,{children:[s.jsx(Li,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",className:"ml-1 h-4 w-4"})," Ø¬Ø§Ø±Ù Ø§ÙØªØ¬ÙÙØ²..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Zi,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",className:"ml-1 h-4 w-4"})," PDF"]})}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",type:"button",size:"sm",variant:"outline",onClick:Q,disabled:W.isLoading||!Y.length||!!B,children:B==="png"?s.jsxs(s.Fragment,{children:[s.jsx(Li,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",className:"ml-1 h-4 w-4"})," Ø¬Ø§Ø±Ù Ø§ÙØ¥Ùشاء..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Qi,{"data-loc":"client/src/pages/AdminContentPage.tsx:252",className:"ml-1 h-4 w-4"})," ØµÙØ±Ø©"]})})]})]})}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:253",children:[!W.isLoading&&!W.isError&&Ce&&Te&&s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"mb-5",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"mb-2 font-black text-black",children:"Ù
ÙØ§Ø±ÙØ© Ø£Ø³Ø¨ÙØ¹ Ø¨Ø£Ø³Ø¨ÙØ¹"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"mb-4 grid gap-2 sm:grid-cols-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"rounded-xl border-2 border-black bg-purple-100 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"text-xs font-black text-black/60",children:"اÙÙ
Ø´Ø§Ø±ÙØ§Øª"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:`mt-1 flex items-center gap-1 text-xl font-black ${Ke(Ce.totalShares,Te.totalShares)>=0?"text-emerald-700":"text-red-700"}`,children:[Ke(Ce.totalShares,Te.totalShares)>0?s.jsx(uk,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}):Ke(Ce.totalShares,Te.totalShares)<0?s.jsx(dk,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}):s.jsx(Mv,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}),Math.abs(Ke(Ce.totalShares,Te.totalShares)),"%"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"rounded-xl border-2 border-black bg-yellow-100 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"text-xs font-black text-black/60",children:"Ù
ØØ§ÙÙØ§Øª Ø§ÙØ£Ùشطة"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:`mt-1 flex items-center gap-1 text-xl font-black ${Ke(Ce.totalAttempts,Te.totalAttempts)>=0?"text-emerald-700":"text-red-700"}`,children:[Ke(Ce.totalAttempts,Te.totalAttempts)>0?s.jsx(uk,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}):Ke(Ce.totalAttempts,Te.totalAttempts)<0?s.jsx(dk,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}):s.jsx(Mv,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}),Math.abs(Ke(Ce.totalAttempts,Te.totalAttempts)),"%"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"rounded-xl border-2 border-black bg-emerald-100 p-3",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"text-xs font-black text-black/60",children:"Ù
عد٠اÙÙØ¬Ø§Ø"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:`mt-1 flex items-center gap-1 text-xl font-black ${Ke(Ce.successRate,Te.successRate)>=0?"text-emerald-700":"text-red-700"}`,children:[Ke(Ce.successRate,Te.successRate)>0?s.jsx(uk,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}):Ke(Ce.successRate,Te.successRate)<0?s.jsx(dk,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}):s.jsx(Mv,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-5 w-5"}),Math.abs(Ke(Ce.successRate,Te.successRate)),"%"]}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"text-[10px] font-bold text-black/60",children:"ÙØ³Ø¨Ø© Ø§ÙØªØºÙر Ø¹Ù Ø§ÙØ£Ø³Ø¨Ùع Ø§ÙØ³Ø§Ø¨Ù"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"h-72 w-full",children:s.jsx($s,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",width:"100%",height:"100%",children:s.jsxs(Uc,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",data:[...W.data??[]].reverse().map(pe=>({week:new Date(pe.weekStart).toLocaleDateString("ar-SA",{month:"short",day:"numeric"}),اÙÙ
Ø´Ø§Ø±ÙØ§Øª:pe.totalShares,اÙÙ
ØØ§ÙÙØ§Øª:pe.totalAttempts,اÙÙØ¬Ø§Ø:pe.successRate})),margin:{top:8,right:8,left:8,bottom:8},children:[s.jsx(zr,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",strokeDasharray:"3 3"}),s.jsx(is,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",dataKey:"week",t
1114ick:{fontSize:11}}),s.jsx(Yn,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",tick:{fontSize:11}}),s.jsx(yn,{"data-loc":"client/src/pages/AdminContentPage.tsx:254"}),s.jsx(fr,{"data-loc":"client/src/pages/AdminContentPage.tsx:254"}),s.jsx(Kn,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",type:"monotone",dataKey:"اÙÙ
Ø´Ø§Ø±ÙØ§Øª",stroke:"#7c3aed",strokeWidth:3,dot:{r:4}}),s.jsx(Kn,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",type:"monotone",dataKey:"اÙÙ
ØØ§ÙÙØ§Øª",stroke:"#f59e0b",strokeWidth:3,dot:{r:4}}),s.jsx(Kn,{"data-loc":"client/src/pages/AdminContentPage.tsx:254",type:"monotone",dataKey:"اÙÙØ¬Ø§Ø",stroke:"#059669",strokeWidth:3,dot:{r:4}})]})})}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:254",className:"mt-2 text-xs font-bold text-black/60",children:"اÙÙØ¬Ø§Ø Ù
Ø¹Ø±ÙØ¶ ÙÙØ³Ø¨Ø© Ù
ئÙÙØ©Ø بÙÙÙ
ا اÙÙ
Ø´Ø§Ø±ÙØ§Øª ÙØ§ÙÙ
ØØ§ÙÙØ§Øª أعداد ÙØ¹ÙÙØ©."})]}),W.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"grid gap-3 sm:grid-cols-4",children:[1,2,3,4].map(pe=>s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"h-20 animate-pulse rounded-lg bg-purple-100"},pe))}):W.isError?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"rounded-lg border-2 border-red-300 bg-red-50 p-3 text-sm font-bold text-red-800",children:"تعذر تØÙ
ÙÙ Ø§ÙØªÙØ§Ø±ÙØ± Ø§ÙØ£Ø³Ø¨ÙØ¹ÙØ©."}):W.data?.length?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"space-y-3",children:W.data.map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"grid gap-3 rounded-xl border-2 border-black bg-white p-3 text-sm sm:grid-cols-5 sm:items-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"font-black text-black",children:new Date(pe.weekStart).toLocaleDateString("ar-SA")}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xs font-bold text-black/60",children:["ØØªÙ ",new Date(pe.weekEnd).toLocaleDateString("ar-SA")]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xs font-bold text-black/60",children:"اÙÙ
Ø´Ø§Ø±ÙØ§Øª"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xl font-black text-black",children:pe.totalShares})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xs font-bold text-black/60",children:"Ù
ستخدÙ
ÙÙ Ù
شارÙÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xl font-black text-black",children:pe.uniqueSharers})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xs font-bold text-black/60",children:"Ù
ØØ§ÙÙØ§Øª Ø§ÙØ£Ùشطة"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xl font-black text-black",children:pe.totalAttempts})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xs font-bold text-black/60",children:"Ù
عد٠اÙÙØ¬Ø§Ø"}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"text-xl font-black text-emerald-700",children:[pe.successRate,"%"]})]})]},pe.id))}):s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:255",className:"rounded-lg border-2 border-dashed border-gray-300 p-5 text-center text-sm font-bold text-gray-500",children:"Ø³ÙØ¸Ùر Ø£ÙÙ ØªÙØ±Ùر بعد Ø§ÙØªÙ
Ø§Ù Ø£Ø³Ø¨ÙØ¹ Ù
Ù Ø§ÙØ¨ÙØ§ÙØ§Øª ÙØªØ´ØºÙ٠اÙÙ
ÙÙ
Ø© اÙÙ
جدÙÙØ©."})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:260",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:261",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:262",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:263",children:"ð"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:264",children:"Ø§ÙØªØØ¯ÙØ« اÙÙÙÙ
Ù ÙÙÙ
ØØªÙÙ"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:266",children:"ÙØ¶Ù٠اÙÙØ¸Ø§Ù
ÙÙÙ
ÙØ§Ù Ø¯Ø±Ø³Ø§Ù ÙØ£Ø³Ø¦ÙØ© ÙØªØØ¯Ùات Ø¬Ø¯ÙØ¯Ø© Ø¹ÙØ¯ Ø§ÙØ³Ø§Ø¹Ø© 9:00ص بتÙÙÙØª Ø§ÙØ³Ø¹ÙØ¯ÙØ©Ø ÙÙØ¶ÙÙ Â«ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع» ÙÙÙ
Ø§ÙØ£ØØ¯. ÙØ±Ø§Ø¬Ø¹ اÙÙ
ØØªÙ٠آÙÙØ§Ù ÙÙØªØÙÙ Ù
Ù Ø§ÙØ¬Ùدة ÙØ§ÙØªÙØ±Ø¯ ÙØµØØ© Ø§ÙØ®Ùارات ÙØ¨Ù اÙÙØ´Ø±Ø Ù
ع تسجÙ٠أ٠Ù
ØØªÙÙ Ù
رÙÙØ¶ Ø£Ù ÙØ§Ø´Ù."})]}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:271",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:272",className:"flex items-center gap-3",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:273",onClick:()=>Ve.mutate(),disabled:Ve.isPending,className:"bg-emerald-600 hover:bg-emerald-700 text-white",children:Ve.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Li,{"data-loc":"client/src/pages/AdminContentPage.tsx:278",className:"ml-2 h-4 w-4"})," Ø¬Ø§Ø±Ù Ø§ÙØªØØ¯ÙØ«..."]}):"ⶠتشغÙÙ Ø§ÙØªØØ¯ÙØ« Ø§ÙØ¢Ù"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:280",className:"text-xs text-gray-400",children:"ÙÙ
ÙÙ٠تشغÙÙÙ ÙØ¯ÙÙØ§Ù ÙØ§Ø®ØªØ¨Ø§Ø± اÙÙØ¸Ø§Ù
(ÙÙ ÙØªÙرر ÙÙ ÙÙØ³ اÙÙÙÙ
)"})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:283",className:"bg-blue-50 border border-blue-200 rounded-lg p-3 text-sm text-blue-800",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminContentPage.tsx:284",children:"â° Ø§ÙØ¬Ø¯ÙÙØ© Ø§ÙØªÙÙØ§Ø¦ÙØ©:"})," Ø§ÙØ¬Ø¯ÙÙØ© تÙÙØ¹ÙÙ٠بعد اÙÙØ´Ø± Ø§ÙØ£ÙÙ. ÙÙ
ÙÙ٠تتبع جÙ
ÙØ¹ اÙÙ
ÙØ§Ù
اÙÙ
جدÙÙØ© Ù
Ù ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø© â Ø§ÙجداÙÙ Ø§ÙØ²Ù
ÙÙØ©."]})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:290",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:291",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:292",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:293",children:"ð§©"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:294",children:"تÙÙÙØ¯ ÙØºØ² Ø£Ø³Ø¨ÙØ¹Ù Ø¨Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ"})]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:296",children:"ÙÙÙÙØ¯ اÙÙØ¸Ø§Ù
ÙØºØ²Ø§Ù Ø¬Ø¯ÙØ¯Ø§Ù ÙØ§Ù
ÙØ§Ù Ù
ع 4 Ø®ÙØ§Ø±Ø§Øª ÙØ´Ø±Ø. بعد اÙÙ
Ø±Ø§Ø¬Ø¹Ø©Ø Ø§ÙØªÙÙ ÙØµÙØØ© Ø§ÙØ£Ùغاز ÙØ¥Ø¶Ø§Ùت٠رسÙ
ÙØ§Ù."})]}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:300",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:301",className:"flex items-center gap-3 flex-wrap",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:302",className:"flex items-center gap-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:303",className:"text-sm font-medium text-gray-700",children:"Ø§ÙØªØµÙÙÙ:"}),s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:304",value:e,onValueChange:pe=>t(pe),children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:305",className:"w-40",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:306"})}),s.jsx(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:308",children:Object.entries(Yze).map(([pe,et])=>s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:310",value:pe,children:et},pe))})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:315",className:"flex items-center gap-2",children:[s.jsx("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:316",className:"text-sm font-medium text-gray-700",children:"اÙÙ
ستÙÙ:"}),s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:317",value:a,onValueChange:pe=>n(pe),children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:318",className:"w-32",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:319"})}),s.jsx(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:321",children:Object.entries(Zze).map(([pe,et])=>s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:323",value:pe,children:et},pe))})]})]}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:328",onClick:()=>ht.mutate({category:e,difficulty:a}),disabled:ht.isPending,className:"bg-purple-600 hover:bg-purple-700 text-white",children:ht.isPending?s.jsxs(s.Fragment,{children:[s.jsx(Li,{"data-loc":"client/src/pages/AdminContentPage.tsx:333",className:"ml-2 h-4 w-4"})," Ø¬Ø§Ø±Ù Ø§ÙØªÙÙÙØ¯..."]}):"⨠تÙÙÙØ¯ ÙØºØ² Ø¬Ø¯ÙØ¯"})]}),r&&s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:339",className:"border border-purple-200 bg-purple-50 rounded-xl p-4 space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:340",className:"flex items-center justify-between",children:[s.jsx("h3",{"data-loc":"client/src/pages/AdminContentPage.tsx:341",className:"font-bold text-purple-900 text-lg",children:r.titleAr}),s.jsx(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:342",className:"bg-purple-100 text-purple-700",children:"Ù
عاÙÙØ©"})]}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:344",className:"text-gray-800 font-medium",children:r.questionAr}),s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:345",className:"grid grid-cols-2 gap-2",children:r.options.map((pe,et)=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:347",className:`p-2 rounded-lg border text-sm font-medium ${pe===r.correctAnswer?"bg-green-100 border-green-400 text-green-800":"bg-white border-gray-200 text-gray-700"}`,children:[pe===r.correctAnswer&&"â
",pe]},et))}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:355",className:"bg-yellow-50 border border-yellow-200 rounded p-2 text-sm",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminContentPage.tsx:356",children:"ð¡ Ø§ÙتÙÙ
ÙØ:"})," ",r.hintAr]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:358",className:"bg-green-50 border border-green-200 rounded p-2 text-sm",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminContentPage.tsx:359",children:"ð Ø§ÙØ´Ø±Ø:"})," ",r.explanation]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:361",className:"flex gap-2 pt-2",children:[s.jsx(jt,{"data-loc":"client/src/pages/AdminContentPage.tsx:362",href:"/admin/puzzles",children:s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:363",size:"sm",className:"bg-green-600 hover:bg-green-700 text-white",children:"â Ø£Ø¶ÙÙ Ù
Ù ØµÙØØ© Ø§ÙØ£Ùغاز"})}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:367",size:"sm",variant:"outline",onClick:()=>i(null),children:"تجاÙÙ"})]})]})]})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:377",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:378",children:s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:379",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:380",children:"ð"}),s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:381",children:"Ø³Ø¬Ù Ø§ÙØªØØ¯Ùثات اÙÙÙÙ
ÙØ©"})]})}),s.jsx(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:384",children:Pe?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:386",className:"flex justify-center py-8",children:s.jsx(Li,{"data-loc":"client/src/pages/AdminContentPage.tsx:386"})}):!Ae||Ae.length===0?s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:388",className:"text-center py-8 text-gray-400",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:389",className:"text-4xl mb-2",children:"ð"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:390",children:"ÙÙ
ÙØªÙ
تشغÙÙ Ø£Ù ØªØØ¯ÙØ« بعد"})]}):s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:393",className:"space-y-2",children:Ae.map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:395",className:"flex items-center justify-between p-3 bg-white border rounded-lg",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:396",className:"flex items-center gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminContentPage.tsx:397",className:`text-lg ${pe.status==="success"?"text-green-500":pe.status==="skipped"?"text-yellow-500":"text-red-500"}`,children:pe.status==="success"?"â
":pe.status==="skipped"?"âï¸":"â"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:400",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:401",className:"font-medium text-gray-900 text-sm",children:pe.lessonTitle||pe.categoryName}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:402",className:"text-xs text-gray-500",children:[pe.contentType==="lesson"?"درس":pe.contentType==="quiz"?"ÙÙÙØ²":pe.contentType==="challenge"?"ØªØØ¯Ùات":"ÙØºØ² Ø£Ø³Ø¨ÙØ¹Ù"," · ",pe.categoryName,pe.quizCount?` · ${pe.quizCount} Ø£Ø³Ø¦ÙØ©`:""]}),pe.reviewReason&&s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:403",className:`mt-1 text-xs ${pe.reviewStatus==="rejected"?"text-amber-700":"text-emerald-700"}`,children:["اÙÙ
راجعة: ",pe.reviewReason]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:406",className:"text-left",children:[s.jsx(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:407",variant:pe.status==="success"?"default":"secondary",className:"text-xs",children:pe.status==="success"?"ÙØ¬Ø":pe.status==="skipped"?"تÙ
Ù
Ø³Ø¨ÙØ§Ù":"ÙØ´Ù"}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:410",className:"text-xs text-gray-400 mt-1",children:pe.runDate})]})]},pe.id))})})]}),s.jsxs(ma,{"data-loc":"client/src/pages/AdminContentPage.tsx:419",children:[s.jsxs(nn,{"data-loc":"client/src/pages/AdminContentPage.tsx:420",children:[s.jsxs(sn,{"data-loc":"client/src/pages/AdminContentPage.tsx:420",className:"flex items-center gap-2",children:[s.jsx(hC,{"data-loc":"client/src/pages/AdminContentPage.tsx:420",className:"h-5 w-5"})," Ù
راجعة Ø£Ø¯ÙØ© Ø¥ÙØ¬Ø§Ø² Ø§ÙØªØØ¯Ùات"]}),s.jsx(Ti,{"data-loc":"client/src/pages/AdminContentPage.tsx:420",children:"ÙØ±Ø² Ø§ÙØ£Ø¯ÙØ© ØØ³Ø¨ ØØ§ÙØ© اÙÙ
راجعة Ø£Ù ÙØ¬Ùد ØµÙØ±Ø©Ø Ø«Ù
اعتÙ
Ø§Ø¯ÙØ§ Ø£Ù Ø·ÙØ¨ ØªÙØ¶ÙØ Ù
٠اÙÙ
تعÙÙ
."})]}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminContentPage.tsx:421",className:"space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:422",className:"grid gap-2 rounded-xl border-2 border-black bg-memphis-sky/25 p-3 sm:grid-cols-[1fr_1fr_auto] sm:items-end",children:[s.jsxs("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:422",className:"text-xs font-black text-black",children:["ØØ§ÙØ© اÙÙ
راجعة",s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:N,onValueChange:pe=>k(pe),children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",className:"mt-1 bg-white",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:422"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",children:[s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:"all",children:"ÙÙ Ø§ÙØØ§ÙØ§Øª"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:"submitted",children:"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:"needs_revision",children:"ÙØØªØ§Ø¬ ØªÙØ¶ÙØØ§Ù"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:"reviewed",children:"Ù
عتÙ
د"})]})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/AdminContentPage.tsx:422",className:"text-xs font-black text-black",children:
1114["Ø§ÙØµÙرة اÙÙ
رÙÙØ©",s.jsxs(Ss,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:D,onValueChange:pe=>C(pe),children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",className:"mt-1 bg-white",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminContentPage.tsx:422"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",children:[s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:"all",children:"اÙÙÙ"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:"with_image",children:"Ù
ع ØµÙØ±Ø©"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",value:"without_image",children:"دÙÙ ØµÙØ±Ø©"})]})]})]}),s.jsxs(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:422",className:"justify-center bg-memphis-yellow px-3 py-2 text-black",children:[A.data?.length??0," دÙÙÙ"]})]}),A.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"h-24 animate-pulse rounded-xl bg-amber-100"}):A.isError?s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"rounded-lg border-2 border-red-300 bg-red-50 p-3 text-sm font-bold text-red-800",children:"تعذر تØÙ
ÙÙ Ø£Ø¯ÙØ© Ø§ÙØªØØ¯Ùات."}):A.data?.length?A.data.map(pe=>s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"rounded-xl border-2 border-black bg-memphis-peach/50 p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"flex flex-wrap items-start justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"font-black text-black",children:pe.challengeTitle}),s.jsxs("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"text-xs font-bold text-black/60",children:[pe.userName," ⢠",pe.evidenceSubmittedAt?new Date(pe.evidenceSubmittedAt).toLocaleString("ar-SA"):"ØØ¯ÙثاÙ",pe.evidenceResubmissionCount?` ⢠إعادة إرسا٠${pe.evidenceResubmissionCount}`:""]})]}),s.jsx(Ga,{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:pe.evidenceStatus==="reviewed"?"bg-emerald-100 text-emerald-800":pe.evidenceStatus==="needs_revision"?"bg-red-100 text-red-800":"bg-yellow-100 text-yellow-800",children:pe.evidenceStatus==="reviewed"?"Ù
عتÙ
د":pe.evidenceStatus==="needs_revision"?"ÙØØªØ§Ø¬ ØªÙØ¶ÙØØ§Ù":"Ø¨Ø§ÙØªØ¸Ø§Ø± اÙÙ
راجعة"})]}),s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"mt-3 rounded-lg border-2 border-black/20 bg-white p-3 text-sm font-bold leading-6 text-black",children:pe.evidenceText}),pe.evidenceImageUrl&&s.jsx("a",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",href:pe.evidenceImageUrl,target:"_blank",rel:"noreferrer",className:"mt-3 block w-fit",children:s.jsx("img",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",src:pe.evidenceImageUrl,alt:`ØµÙØ±Ø© دÙÙÙ ${pe.challengeTitle}`,className:"h-28 w-28 rounded-lg border-2 border-black bg-white object-cover"})}),s.jsx("textarea",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",value:R[pe.completionId]??pe.evidenceReviewNote??"",onChange:et=>F(xe=>({...xe,[pe.completionId]:et.target.value})),rows:2,maxLength:500,placeholder:"Ù
ÙØ§ØØ¸Ø© ÙÙÙ
ÙØ¸Ù â Ù
Ø·ÙÙØ¨Ø© Ø¹ÙØ¯ Ø·ÙØ¨ Ø§ÙØªÙØ¶ÙØ",className:"mt-3 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-bold text-black","aria-label":`Ù
ÙØ§ØØ¸Ø© Ù
راجعة ${pe.challengeTitle}`}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"mt-3 flex flex-wrap gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:423",type:"button",size:"sm",disabled:ne.isPending,onClick:()=>ne.mutate({completionId:pe.completionId,status:"reviewed",note:R[pe.completionId]??pe.evidenceReviewNote??void 0}),className:"bg-emerald-700 font-black text-white",children:"اعتÙ
اد Ø§ÙØ¯ÙÙÙ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:423",type:"button",size:"sm",variant:"outline",disabled:ne.isPending||!(R[pe.completionId]??pe.evidenceReviewNote??"").trim(),onClick:()=>ne.mutate({completionId:pe.completionId,status:"needs_revision",note:R[pe.completionId]??pe.evidenceReviewNote??void 0}),className:"border-2 border-black font-black text-black",children:"Ø·ÙØ¨ ØªÙØ¶ÙØ"})]})]},pe.completionId)):s.jsx("p",{"data-loc":"client/src/pages/AdminContentPage.tsx:423",className:"rounded-lg border-2 border-dashed border-gray-300 p-5 text-center text-sm font-bold text-gray-500",children:"ÙØ§ ØªÙØ¬Ø¯ Ø£Ø¯ÙØ© Ù
Ø·Ø§Ø¨ÙØ© ÙÙØªØµÙÙØ© Ø§ÙØØ§ÙÙØ©."})]})]}),s.jsx(Ize,{"data-loc":"client/src/pages/AdminContentPage.tsx:427"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminContentPage.tsx:428",className:"flex gap-3",children:[s.jsx(jt,{"data-loc":"client/src/pages/AdminContentPage.tsx:429",href:"/admin/puzzles",children:s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:430",variant:"outline",children:"𧩠إدارة Ø§ÙØ£Ùغاز"})}),s.jsx(jt,{"data-loc":"client/src/pages/AdminContentPage.tsx:432",href:"/admin",children:s.jsx(Ie,{"data-loc":"client/src/pages/AdminContentPage.tsx:433",variant:"outline",children:"ð ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©"})})]})]})]})}const Oh={pending:{label:"ÙÙØ¯ Ø§ÙØ§Ùتظار",color:"bg-yellow-100 text-yellow-800 border-yellow-200"},reviewed:{label:"تÙ
ت اÙÙ
راجعة",color:"bg-blue-100 text-blue-800 border-blue-200"},implemented:{label:"تÙ
Ø§ÙØªØ·Ø¨ÙÙ",color:"bg-green-100 text-green-800 border-green-200"}},y5={suggestion:{label:"Ø§ÙØªØ±Ø§Ø",icon:s.jsx(hu,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:26",size:14,className:"text-amber-500"})},improvement:{label:"ÙØ±ØµØ© ØªØØ³ÙÙ",icon:s.jsx(er,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:27",size:14,className:"text-orange-500"})}};function r_e(){const{user:e,isAuthenticated:t}=Ma(),[a,n]=P.useState("all"),[r,i]=P.useState("all"),o=J.suggestions.getAll.useQuery(),l=J.useUtils(),c=J.suggestions.updateStatus.useMutation({onSuccess:()=>
1114{l.suggestions.getAll.invalidate(),re.success("تÙ
ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ© Ø¨ÙØ¬Ø§Ø")},onError:()=>re.error("ØØ¯Ø« خطأ ÙÙ Ø§ÙØªØØ¯ÙØ«")});if(!t||e?.role!=="admin")return s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:48",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:49",className:"memphis-card p-10 text-center max-w-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:50",className:"text-5xl mb-4",children:"ð"}),s.jsx("h2",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:51",className:"font-black text-2xl text-black mb-3",children:"ØºÙØ± Ù
صرØ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:52",className:"text-black/60 mb-6",children:"ÙØ°Ù Ø§ÙØµÙØØ© ÙÙÙ
Ø¯ÙØ± ÙÙØ·"}),s.jsx(jt,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:53",href:"/",children:s.jsx(Ie,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:54",className:"bg-black text-white",children:"Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©"})})]})});const d=o.data??[],m=d.filter(h=>!(a!=="all"&&h.status!==a||r!=="all"&&h.type!==r)),f={total:d.length,pending:d.filter(h=>h.status==="pending").length,reviewed:d.filter(h=>h.status==="reviewed").length,implemented:d.filter(h=>h.status==="implemented").length,suggestions:d.filter(h=>h.type==="suggestion").length,improvements:d.filter(h=>h.type==="improvement").length};return s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:78",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:80",className:"bg-white border-b-2 border-black px-6 py-4 flex items-center justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:81",className:"flex items-center gap-3",children:[s.jsx(jt,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:82",href:"/admin",children:s.jsxs("button",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:83",className:"flex items-center gap-1 text-sm font-bold text-black/60 hover:text-black transition-colors",children:[s.jsx(Wx,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:84",size:16}),"ÙÙØØ© اÙÙ
Ø¯ÙØ±"]})}),s.jsx("span",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:88",className:"text-black/30",children:"/"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:89",className:"flex items-center gap-2",children:[s.jsx(sg,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:90",size:20,className:"text-amber-500"}),s.jsx("h1",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:91",className:"font-black text-xl text-black",children:"Ø§ÙØªØ±Ø§ØØ§Øª اÙÙ
ÙØ¸ÙÙÙ"})]})]}),s.jsxs("button",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:94",onClick:()=>o.refetch(),className:"flex items-center gap-1 text-sm font-bold text-black/60 hover:text-black",children:[s.jsx(vo,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:98",size:15}),"ØªØØ¯ÙØ«"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:103",className:"max-w-5xl mx-auto px-4 py-8",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:105",className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-8",children:[{label:"Ø§ÙØ¥Ø¬Ù
اÙÙ",value:f.total,color:"bg-white",icon:s.jsx(sg,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:107",size:18,className:"text-amber-500"})}
1114,{label:"ÙÙØ¯ Ø§ÙØ§Ùتظار",value:f.pending,color:"bg-yellow-50",icon:s.jsx(xi,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:108",size:18,className:"text-yellow-600"})},{label:"تÙ
ت اÙÙ
راجعة",value:f.reviewed,color:"bg-blue-50",icon:s.jsx(bn,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:109",size:18,className:"text-blue-600"})},{label:"تÙ
Ø§ÙØªØ·Ø¨ÙÙ",value:f.implemented,color:"bg-green-50",icon:s.jsx(pn,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:110",size:18,className:"text-green-600"})}].map(h=>s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:112",className:`memphis-card ${h.color} p-4 text-center`,children:[s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:113",className:"flex justify-center mb-2",children:h.icon}),s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:114",className:"font-black text-2xl text-black",children:h.value}),s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:115",className:"text-xs font-bold text-black/60",children:h.label})]},h.label))}),s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:121",className:"flex flex-wrap gap-3 mb-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:122",className:"flex gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:123",className:"text-xs font-bold text-black/50 self-center",children:"Ø§ÙØØ§ÙØ©:"}),["all","pending","reviewed","implemented"].map(h=>s.jsx("button",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:125",onClick:()=>n(h),className:`px-3 py-1 rounded-full text-xs font-bold border transition-all ${a===h?"bg-black text-white border-black":"bg-white text-black/60 border-black/20 hover:border-black/40"}`,children:h==="all"?"اÙÙÙ":Oh[h].label},h))]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:138",className:"flex gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:139",className:"text-xs font-bold text-black/50 self-center",children:"اÙÙÙØ¹:"}),["all","suggestion","improvement"].map(h=>s.jsx("button",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:141",onClick:()=>i(h),className:`px-3 py-1 rounded-full text-xs font-bold border transition-all ${r===h?"bg-black text-white border-black":"bg-white text-black/60 border-black/20 hover:border-black/40"}`,children:h==="all"?"اÙÙÙ":y5[h].label},h))]})]}),o.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:158",className:"space-y-3",children:[1,2,3].map(h=>s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:160",className:"memphis-card h-24 animate-pulse bg-gray-100"},h))}):m.length===0?s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:164",className:"memphis-card p-12 text-center",children:[s.jsx(sg,{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:165",size:40,className:"mx-auto mb-3 text-black/20"}),s.jsx("p",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:166",className:"font-bold text-black/40",children:"ÙØ§ ØªÙØ¬Ø¯ Ø§ÙØªØ±Ø§ØØ§Øª Ø¨ÙØ°Ù اÙÙÙØ§ØªØ±"})]}):s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:169",className:"space-y-3",children:m.map(h=>s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:171",className:"memphis-card bg-white p-5",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:172",className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:173",className:"flex-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:175",className:"flex items-center gap-2 mb-2 flex-wrap",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:176",className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-bold border ${h.type==="suggestion"?"bg-amber-50 text-amber-700 border-amber-200":"bg-orange-50 text-orange-700 border-orange-200"}`,children:[y5[h.type]?.icon,y5[h.type]?.label]}),s.jsx("span",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:184",className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-bold border ${Oh[h.status]?.color}`,children:Oh[h.status]?.label})]}),s.jsx("p",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:189",className:"text-sm font-medium text-black leading-relaxed",children:h.text}),s.jsxs("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:191",className:"flex items-center gap-3 mt-2 text-xs text-black/40 font-medium",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:192",children:["ð¤ ",h.userName??`Ù
ÙØ¸Ù #${h.userId}`]}),s.jsxs("span",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:193",children:["ð
",new Date(h.createdAt).toLocaleDateString("ar-SA",{year:"numeric",month:"short",day:"numeric"})]})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:198",className:"flex flex-col gap-1.5 shrink-0",children:["pending","reviewed","implemented"].map(x=>s.jsx("button",{"data-loc":"client/src/pages/AdminSuggestionsPage.tsx:200",disabled:h.status===x||c.isPending,onClick:()=>c.mutate({id:h.id,status:x}),className:`px-3 py-1 rounded-lg text-xs font-bold border transition-all disabled:opacity-40 ${h.status===x?Oh[x].color+" cursor-default":"bg-white text-black/60 border-black/20 hover:border-black/60 hover:text-black"}`,children:Oh[x].label},x))})]})},h.id))})]})]})}function i_e(){const[e,t]=P.useState(null),[a,n]=P.useState({}),[r,i]=P.useState(""),[o,l]=P.useState("date"),[c,d]=P.useState("desc"),[m,f]=P.useState(null),h=J.adminPanel.lessons.list.useQuery(),x=J.adminPanel.lessons.update.useMutation(),b=J.adminPanel.lessons.delete.useMutation(),y=J.adminPanel.rephrase.useMutation(),w=P.useMemo(()=>
1114{if(!h.data)return[];let D=h.data.filter(C=>C.titleAr?.toLowerCase().includes(r.toLowerCase())||C.contentAr?.toLowerCase().includes(r.toLowerCase()));return D.sort((C,S)=>{let A,E;return o==="name"?(A=C.titleAr||"",E=S.titleAr||"",c==="asc"?A.localeCompare(E):E.localeCompare(A)):o==="date"?(A=new Date(C.createdAt).getTime(),E=new Date(S.createdAt).getTime(),c==="asc"?A-E:E-A):o==="points"?(A=C.pointsReward||0,E=S.pointsReward||0,c==="asc"?A-E:E-A):0}),D},[h.data,r,o,c]),j=async(D,C,S)=>{try{f(S);const A=await y.mutateAsync({text:D,style:"formal"});n({...a,[C]:A.rephrased}),re.success("تÙ
إعادة Ø§ÙØµÙاغة Ø¨ÙØ¬Ø§Ø")}catch{re.error("ÙØ´Ùت إعادة Ø§ÙØµÙاغة")}finally{f(null)}},N=async(D,C,S)=>{try{switch(D){case"lesson":await x.mutateAsync({id:C,...S}),h.refetch();break}t(null),n({}),re.success("تÙ
Ø§ÙØªØØ¯ÙØ« Ø¨ÙØ¬Ø§Ø")}catch{re.error("ÙØ´Ù Ø§ÙØªØØ¯ÙØ«")}},k=async(D,C)=>{try{switch(D){case"lesson":await b.mutateAsync(C),h.refetch();break}re.success("تÙ
Ø§ÙØØ°Ù Ø¨ÙØ¬Ø§Ø")}catch{re.error("ÙØ´Ù Ø§ÙØØ°Ù")}};return s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:106",className:"min-h-screen bg-gradient-to-b from-purple-900 to-purple-950 p-3 sm:p-6",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:107",className:"mx-auto min-w-0 max-w-7xl",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:108",className:"mb-5 flex items-center justify-between gap-3 sm:mb-8",children:[s.jsx("h1",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:109",className:"text-2xl font-bold text-white sm:text-4xl",children:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø© اÙÙ
ØØ³ÙÙØ©"}),s.jsx(db,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:110",activePath:"/admin/dashboard-enhanced",items:[{label:"ÙÙØØ© ØÙ
ÙØ© Ø§ÙØªØ´ÙÙÙ",path:"/admin/teaser",icon:ln},{label:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©",path:"/admin/dashboard",icon:l2},{label:"إدارة Ø§ÙØ£Ùغاز",path:"/admin/puzzles",icon:Lg},{label:"إدارة اÙÙ
ØØªÙÙ",path:"/admin/content",icon:Zi}]})]}),s.jsxs(bw,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:116",defaultValue:"lessons",className:"w-full",children:[s.jsxs(vw,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:117",className:"grid h-auto w-full grid-cols-2 gap-1 bg-purple-800 p-1 sm:grid-cols-6",children:[s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:118",value:"lessons",children:"Ø§ÙØ¯Ø±Ùس"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:119",value:"questions",children:"Ø§ÙØ£Ø³Ø¦ÙØ©"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:120",value:"puzzles",children:"Ø§ÙØ£Ùغاز"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:121",value:"challenges",children:"Ø§ÙØªØØ¯Ùات"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:122",value:"badges",children:"Ø§ÙØ´Ø§Ø±Ø§Øª"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:123",value:"prizes",children:"Ø§ÙØ¬Ùائز"})]}),s.jsxs(fs,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:127",value:"lessons",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:129",className:"space-y-4 bg-purple-800 p-4 rounded-lg",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:130",className:"flex gap-2",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:131",className:"flex-1 relative",children:[s.jsx(xl,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:132",className:"absolute right-3 top-3 w-5 h-5 text-purple-400"}),s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:133",placeholder:"Ø§Ø¨ØØ« ع٠درس...",value:r,onChange:D=>i(D.target.value),className:"bg-purple-700 text-white border-purple-600 pr-10"})]})}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:143",className:"flex gap-2 flex-wrap",children:[s.jsxs("select",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:144",value:o,onChange:D=>l(D.target.value),className:"bg-purple-700 text-white border border-purple-600 rounded px-3 py-2",children:[s.jsx("option",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:149",value:"date",children:"ØªØ±ØªÙØ¨ ØØ³Ø¨ Ø§ÙØªØ§Ø±ÙØ®"}),s.jsx("option",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:150",value:"name",children:"ØªØ±ØªÙØ¨ ØØ³Ø¨ Ø§ÙØ§Ø³Ù
"}),s.jsx("option",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:151",value:"points",children:"ØªØ±ØªÙØ¨ ØØ³Ø¨ اÙÙÙØ§Ø·"})]}),s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:154",onClick:()=>d(c==="asc"?"desc":"asc"),variant:"outline",className:"border-purple-600 text-white",children:[c==="asc"?s.jsx(i2,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:159",className:"w-4 h-4"}):s.jsx($x,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:159",className:"w-4 h-4"}),c==="asc"?"تصاعدÙ":"ØªÙØ§Ø²ÙÙ"]}
1114),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:163",className:"text-purple-300 text-sm flex items-center",children:[w.length," ÙØªÙجة"]})]})]}),h.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:171",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:171",className:"animate-spin"})}):w.length===0?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:173",className:"text-center text-purple-300 py-8",children:"ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ ÙØªØ§Ø¦Ø¬"}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:175",className:"space-y-4",children:w.map(D=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:177",className:"bg-purple-800 border-purple-700",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:178",children:s.jsxs(sn,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:179",className:"text-white flex justify-between items-center",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:180",children:D.titleAr}),s.jsxs("span",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:181",className:"text-sm font-normal text-purple-300",children:[D.questionCount," Ø£Ø³Ø¦ÙØ©"]})]})}),s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:184",className:"space-y-4",children:e===D.id?s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:186",className:"space-y-3",children:[s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:187",placeholder:"Ø§ÙØ¹ÙÙØ§Ù",value:a.titleAr||D.titleAr,onChange:C=>n({...a,titleAr:C.target.value}),className:"bg-purple-700 text-white border-purple-600"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:193",className:"relative",children:[s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:194",placeholder:"اÙÙ
ØØªÙÙ",value:a.contentAr||D.contentAr,onChange:C=>n({...a,contentAr:C.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:4}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:201",onClick:()=>j(a.contentAr||D.contentAr,"contentAr",D.id),disabled:m===D.id,size:"sm",className:"absolute left-2 bottom-2 bg-blue-600 hover:bg-blue-700",children:m===D.id?s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:208",className:"w-4 h-4 animate-spin"}):s.jsxs(s.Fragment,{children:[s.jsx(NW,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:211",className:"w-4 h-4 mr-1"}),"إعادة ØµÙØ§ØºØ©"]})})]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:217",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:218",onClick:()=>N("lesson",D.id,a),className:"bg-green-600 hover:bg-green-700",children:"ØÙظ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:224",onClick:()=>t(null),variant:"outline",className:"border-purple-600 text-white",children:"Ø¥ÙØºØ§Ø¡"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:234",className:"space-y-2 text-purple-100",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:235",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:235",children:"اÙÙ
ØØªÙÙ:"})," ",D.contentAr?.substring(0,100),"..."]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:236",className:"flex gap-2 flex-wrap",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:237",onClick:()=>{t(D.id),n(D)},size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[s.jsx(Fd,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:245",className:"w-4 h-4 mr-2"}),"تعدÙÙ"]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:248",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:249",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:250",size:"sm",variant:"destructive",children:[s.jsx(ur,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:251",className:"w-4 h-4 mr-2"}),"ØØ°Ù"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:255",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:256",children:"تأÙÙØ¯ Ø§ÙØØ°Ù"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:257",children:"ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³ ÙØ¬Ù
ÙØ¹ Ø£Ø³Ø¦ÙØªÙØ"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:260",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:261",onClick:()=>k("lesson",D.id),children:"ØØ°Ù"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:264",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]})})]},D.id))})]}),s.jsxs(fs,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:279",value:"questions",className:"text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:280",className:"space-y-4 bg-purple-800 p-4 rounded-lg",children:s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:281",placeholder:"Ø§Ø¨ØØ« ع٠سؤاÙ...",className:"bg-purple-700 text-white border-purple-600"})}),s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:283",className:"text-center py-8",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØ·ÙÙØ± - ÙÙØ³ اÙÙ
ÙØ²Ø§Øª ÙÙØ£Ø³Ø¦ÙØ©"})]}),s.jsxs(fs,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:285",value:"puzzles",className:"text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:286",className:"space-y-4 bg-purple-800 p-4 rounded-lg",children:s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:287",placeholder:"Ø§Ø¨ØØ« Ø¹Ù ÙØºØ²...",className:"bg-purple-700 text-white border-purple-600"})}),s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:289",className:"text-center py-8",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØ·ÙÙØ± - ÙÙØ³ اÙÙ
ÙØ²Ø§Øª ÙÙØ£Ùغاز"})]}),s.jsxs(fs,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:291",value:"challenges",className:"text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:292",className:"space-y-4 bg-purple-800 p-4 rounded-lg",children:s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:293",placeholder:"Ø§Ø¨ØØ« Ø¹Ù ØªØØ¯Ù...",className:"bg-purple-700 text-white border-purple-600"})}),s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:295",className:"text-center py-8",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØ·ÙÙØ± - ÙÙØ³ اÙÙ
ÙØ²Ø§Øª ÙÙØªØØ¯Ùات"})]}),s.jsxs(fs,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:297",value:"badges",className:"text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:298",className:"space-y-4 bg-purple-800 p-4 rounded-lg",children:s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:299",placeholder:"Ø§Ø¨ØØ« ع٠شارة...",className:"bg-purple-700 text-white border-purple-600"})}),s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:301",className:"text-center py-8",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØ·ÙÙØ± - ÙÙØ³ اÙÙ
ÙØ²Ø§Øª ÙÙØ´Ø§Ø±Ø§Øª"})]}),s.jsxs(fs,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:303",value:"prizes",className:"text-purple-300",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:304",className:"space-y-4 bg-purple-800 p-4 rounded-lg",children:s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:305",placeholder:"Ø§Ø¨ØØ« ع٠جائزة...",className:"bg-purple-700 text-white border-purple-600"})}),s.jsx("div",{"data-loc":"client/src/pages/AdminDashboardEnhanced.tsx:307",className:"text-center py-8",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØ·ÙÙØ± - ÙÙØ³ اÙÙ
ÙØ²Ø§Øª ÙÙØ¬Ùائز"})]})]})]})})}function o_e({open:e,onOpenChange:t,kind:a,name:n,color:r,onNameChange:i,onColorChange:o,onSave:l,isPending:c=!1}){const d=a==="folder"?"اÙÙ
Ø¬ÙØ¯":"اÙÙØ³Ù
";return s.jsx(xs,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",open:e,onOpenChange:t,children:s.jsxs(bs,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",className:"border-2 border-black bg-white text-right shadow-memphis",dir:"rtl",children:[s.jsxs(ml,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",children:[s.jsxs(Ui,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",className:"font-black text-black",children:["تعدÙÙ ",d]}),s.jsx(lf,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",className:"text-black/65",children:"عدÙÙ Ø§ÙØ§Ø³Ù
أ٠اÙÙÙÙ ÙØªÙ
ÙÙØ²Ù Ø¨ØµØ±ÙØ§Ù داخ٠Ù
ÙØªØ¨ØªÙ."})]}),s.jsxs("label",{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",className:"text-sm font-bold text-black",children:["Ø§ÙØ§Ø³Ù
",s.jsx("input",{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",autoFocus:!0,value:n,onChange:m=>i(m.target.value),onKeyDown:m=>{m.key==="Enter"&&l()},maxLength:a==="folder"?80:60,className:"mt-1 w-full rounded-lg border-2 border-black px-3 py-2 text-black focus:outline-none focus:ring-2 focus:ring-memphis-lilac"})]}),s.jsxs("label",{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",className:"text-sm font-bold text-black",children:["اÙÙÙÙ",s.jsx("input",{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",type:"color",value:r,onChange:m=>o(m.target.value),"aria-label":"ÙÙÙ Ø§ÙØªÙظÙÙ
",className:"mt-1 block h-11 w-full cursor-pointer rounded-lg border-2 border-black bg-white p-1"})]}),s.jsxs(nu,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",children:[s.jsx(Ie,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",type:"button",variant:"outline",onClick:()=>t(!1),children:"Ø¥ÙØºØ§Ø¡"}),s.jsx(Ie,{"data-loc":"client/src/components/SavedResourceEditDialog.tsx:27",type:"button",onClick:l,disabled:c,
1114className:"bg-memphis-yellow font-black text-black",children:"ØÙظ Ø§ÙØªØ¹Ø¯ÙÙ"})]})]})})}function l_e({open:e,onOpenChange:t,folderName:a,shareUrl:n,isActive:r,permission:i,expiresAt:o,onPermissionChange:l,onExpiresAtChange:c,activity:d,onCreate:m,onRevoke:f,onCopy:h,isPending:x=!1}){return s.jsx(xs,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",open:e,onOpenChange:t,children:s.jsxs(bs,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"max-h-[88vh] overflow-y-auto border-2 border-black bg-white text-right shadow-memphis",dir:"rtl",children:[s.jsxs(ml,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",children:[s.jsx(Ui,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"font-black text-black",children:"Ù
Ø´Ø§Ø±ÙØ© Ù
Ø¬ÙØ¯"}),s.jsxs(lf,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"text-black/65",children:["Ø£ÙØ´Ø¦ رابطا٠Ù
خصصا٠ÙÙ
Ø¬ÙØ¯ «",a,"». ÙÙ ÙØ¹Ø±Ø¶ Ø§ÙØ±Ø§Ø¨Ø· اسÙ
ØØ³Ø§Ø¨Ù Ø£Ù Ø£Ø¯ÙØ§Øª Ø§ÙØ¥Ø¯Ø§Ø±Ø©."]})]}),s.jsxs("div",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"grid gap-3 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"text-sm font-bold text-black",children:["Ø§ÙØµÙاØÙØ©",s.jsxs("select",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37","aria-label":"Ø§ÙØµÙاØÙØ©",value:i,onChange:b=>l(b.target.value),className:"mt-1 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-black",children:[s.jsx("option",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",value:"view",children:"عرض ÙÙØ·"}),s.jsx("option",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",value:"edit",children:"عرض ÙØªØ¹Ø¯Ù٠إعدادات اÙÙ
Ø¬ÙØ¯"})]})]}),s.jsxs("label",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"text-sm font-bold text-black",children:["ÙÙØªÙÙ ÙÙ",s.jsx("input",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37","aria-label":"ÙÙØªÙÙ ÙÙ",type:"datetime-local",value:o,onChange:b=>c(b.target.value),className:"mt-1 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-black"}),s.jsx("span",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"mt-1 block text-xs font-normal text-black/55",children:"اترÙÙ ÙØ§Ø±ØºØ§Ù ÙÙØ¨ÙÙ Ø§ÙØ±Ø§Ø¨Ø· ÙØ´Ø·Ø§Ù."})]})]}),n?s.jsxs("div",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"space-y-2",children:[s.jsxs("label",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"text-sm font-bold text-black",children:["رابط اÙÙ
Ø´Ø§Ø±ÙØ©",s.jsx("input",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",readOnly:!0,value:n,className:"mt-1 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-left text-xs text-black",dir:"ltr"})]}),s.jsxs(Ie,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",type:"button",onClick:h,className:"w-full gap-2 bg-memphis-sky font-black text-black",children:[s.jsx(o2,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"h-4 w-4"})," ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·"]})]}):s.jsx("p",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"rounded-lg border-2 border-dashed border-black/35 bg-memphis-peach p-3 text-sm leading-6 text-black/70",children:"Ø£ÙØ´Ø¦ رابطا٠ÙÙ
رة Ø£ÙÙÙØ أ٠أعد ØªÙØ¹ÙÙ Ø§ÙØ±Ø§Ø¨Ø· اÙÙ
ÙÙÙÙ. ÙÙ
ÙÙÙ Ø¥ÙØºØ§Ø¡ Ø§ÙØ±Ø§Ø¨Ø· Ù٠أ٠ÙÙØª."}),s.jsxs("section",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"rounded-xl border-2 border-black/20 bg-memphis-peach/40 p-3",children:[s.jsx("h3",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"font-black text-black",children:"سج٠اÙÙØ´Ø§Ø·"}),d.length===0?s.jsx("p",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"mt-1 text-sm text-black/60",children:"ÙØ§ ØªÙØ¬Ø¯ تغÙÙØ±Ø§Øª Ù
Ø³Ø¬ÙØ© ÙÙØ°Ø§ اÙÙ
Ø¬ÙØ¯ بعد."}):s.jsx("ol",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"mt-2 space-y-2",children:d.map(b=>s.jsxs("li",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"rounded-lg border border-black/15 bg-white px-3 py-2 text-sm",children:[s.jsx("p",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"font-bold text-black",children:b.description}),s.jsx("p",{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",className:"mt-0.5 text-xs text-black/55",children:new Date(b.createdAt).toLocaleStr
1114ing("ar-SA")})]},b.id))})]}),s.jsxs(nu,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",children:[s.jsx(Ie,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",type:"button",variant:"outline",onClick:()=>t(!1),children:"Ø¥ØºÙØ§Ù"}),r?s.jsxs(s.Fragment,{children:[s.jsx(Ie,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",type:"button",onClick:m,disabled:x,className:"bg-memphis-yellow font-black text-black",children:"ØÙظ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª"}),s.jsx(Ie,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",type:"button",variant:"outline",onClick:f,disabled:x,className:"border-red-300 text-red-700",children:"Ø¥ÙØºØ§Ø¡ Ø§ÙØ±Ø§Ø¨Ø·"})]}):s.jsx(Ie,{"data-loc":"client/src/components/SavedFolderShareDialog.tsx:37",type:"button",onClick:m,disabled:x,className:"bg-memphis-yellow font-black text-black",children:"Ø¥ÙØ´Ø§Ø¡ Ø§ÙØ±Ø§Ø¨Ø·"})]})]})})}function c_e(e,t){return`${e.replace(/\/$/,"")}/shared-folder/${encodeURIComponent(t)}`}function d_e(e){return`"${e.replace(/"/g,'""')}"`}function zp(e){return e.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]??t)}function u_e(e){const t=["Ø§ÙØ¹ÙÙØ§Ù","اÙÙÙØ¹","Ø§ÙØ¯Ø±Ø³","اÙÙØ¦Ø©","اÙÙ Ø¬ÙØ¯","اÙÙØ³ÙÙ ","Ø§ÙØ±Ø§Ø¨Ø·","ØªØ§Ø±ÙØ® Ø§ÙØÙØ¸"],a=e.map(n=>[n.resourceTitle||n.lessonTitle,n.resourceType==="video"?"ÙÙØ¯ÙÙ":"٠رجع",n.lessonTitle,n.categoryName,n.folderName||"دÙÙ Ù Ø¬ÙØ¯",n.tags.map(r=>r.name).join("Ø "),n.resourceUrl,new Date(n.savedAt).toLocaleDateString("ar-SA")]);return"\uFEFF"+[t,...a].map(n=>n.map(r=>d_e(r)).join(",")).join(` 1115`)}function p_e(e){const t=new Blob([u_e(e)],{type:"text/csv;charset=utf-8"}),a=URL.createObjectURL(t),n=document.createElement("a");n.href=a,n.download=`Ù ØÙÙØ¸Ø§ØªÙ-${new Date().toISOString().slice(0,10)}.csv`,document.body.appendChild(n),n.click(),n.remove(),URL.revokeObjectURL(a)}function m_e(e){const t=window.open("","_blank");if(!t)throw new Error("تعذر ÙØªØ ÙØ§Ùذة Ø§ÙØªØµØ¯Ùر. Ø§Ø³Ù Ø Ø¨Ø§ÙÙÙØ§Ùذ اÙÙ ÙØ¨Ø«ÙØ© ث٠أعد اÙÙ ØØ§ÙÙØ©.");t.opener=null;const a=e.map(n=>`<tr><td>${zp(n.resourceTitle||n.lessonTitle)}</td><td>${n.resourceType==="video"?"ÙÙØ¯ÙÙ":"٠رجع"}</td><td>${zp(n.lessonTitle)}</td><td>${zp(n.categoryName)}</td><td>${zp(n.folderName||"دÙÙ Ù Ø¬ÙØ¯")}</td><td>${zp(n.tags.map(r=>r.name).join("Ø "))}</td><td><a href="${zp(n.resourceUrl)}">ÙØªØ اÙÙ ÙØ±Ø¯</a></td></tr>`).join("");t.document.write(`<!doctype html><html dir="rtl" lang="ar"><head><meta charset="utf-8"><title>Ù ØÙÙØ¸Ø§ØªÙ Ø§ÙØªØ¹ÙÙÙ ÙØ©</title><style>body{font-family:Arial,sans-serif;margin:32px;color:#111}h1{font-size:24px}p{color:#555}table{width:100%;border-collapse:collapse;margin-top:20px;font-size:12px}th,td{border:1px solid #222;padding:8px;text-align:right;vertical-align:top}th{background:#ede9fe}@media print{body{margin:12mm}a{color:#111;text-decoration:none}}</style></head><body><h1>Ù ØÙÙØ¸Ø§ØªÙ Ø§ÙØªØ¹ÙÙÙ ÙØ©</h1><p>ØªØ§Ø±ÙØ® Ø§ÙØªØµØ¯Ùر: ${new Date().toLocaleDateString("ar-SA")}</p><table><thead><tr><th>Ø§ÙØ¹ÙÙØ§Ù</th><th>اÙÙÙØ¹</th><th>Ø§ÙØ¯Ø±Ø³</th><th>اÙÙØ¦Ø©</th><th>اÙÙ Ø¬ÙØ¯</th><th>اÙÙØ³ÙÙ </th><th>Ø§ÙØ±Ø§Ø¨Ø·</th></tr></thead><tbody>${a}</tbody></table></body></html>`),t.document.close(),t.focus(),t.print()}const f_e={video:"ÙÙØ¯ÙÙÙØ§Øª",reference:"٠راجع ÙØ±Ùابط"},_p="mt-1 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-sm font-medium text-black focus:outline-none focus:ring-2 focus:ring-memphis-lilac";function h_e(e){if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const a=n=>String(n).padStart(2,"0");return`${t.getFullYear()}-${a(t.getMonth()+1)}-${a(t.getDate())}T${a(t.getHours())}:${a(t.getMinutes())}`}function g_e(){const{isAuthenticated:e}=Ma(),t=J.useUtils(),[a,n]=P.useState("all"),[r,i]=P.useState("all"),[o,l]=P.useState("all"),[c,d]=P.useState("all"),[m,f]=P.useState(""),[h,x]=P.useState("savedAt"),[b,y]=P.useState("desc"),[w,j]=P.useState(""),[N,k]=P.useState("#C4B5FD"),[D,C]=P.useState(""),[S,A]=P.useState("#FDE68A"),[E,R]=P.useState(null),[F,I]=P.useState(null),[H,_]=P.useState(""),[V,W]=P.useState("#C4B5FD"),[B,K]=P.useState(null),[ae,$]=P.useState(null),[Z,O]=P.useState(null),[Y,Q]=P.useState("view"),[U,oe]=P.useState(""),X=P.useMemo(()=>Q0e({resourceType:a,categoryId:r,folderId:o,tagId:c,search:m,sortBy:h,sortDirection:b}),[r,o,a,m,h,b,c]),ne=W0e({resourceType:a,categoryId:r,folderId:o,tagId:c,search:m}),ge=J.categories.list.useQuery(),me=J.savedResources.folders.list.useQuery(void 0,{enabled:e}),Ae=J.savedResources.tags.list.useQuery(void 0,{enabled:e}),Pe=J.lessons.savedLibrary.useQuery(X,{enabled:e}),L=J.savedResources.folders.share.useQuery({folderId:ae?.id??1},{enabled:e&&!!ae}),ke=J.savedResources.folders.activity.useQuery({folderId:ae?.id??1,limit:20},{enabled:e&&!!ae});P.useEffect(()=>{if(!ae)return;const ce=L.data;Q(ce?.permission??"view"),oe(h_e(ce?.expiresAt))},[ae?.id,L.data]);const Me=()=>{t.lessons.savedLibrary.invalidate(),t.savedResources.folders.list.invali
1115date(),t.savedResources.tags.list.invalidate()},Ze=J.lessons.removeSavedResource.useMutation({onSuccess:()=>{Me(),re.success("أزÙ٠اÙÙ
ÙØ±Ø¯ Ù
٠اÙÙ
ØÙÙØ¸Ø§Øª")},onError:ce=>re.error(ce.message)}),Ce=J.savedResources.folders.create.useMutation({onSuccess:()=>{Me(),j(""),re.success("تÙ
Ø¥ÙØ´Ø§Ø¡ اÙÙ
Ø¬ÙØ¯")},onError:ce=>re.error(ce.message)}),Te=J.savedResources.folders.delete.useMutation({onSuccess:()=>{Me(),l("all"),re.success("تÙ
ØØ°Ù اÙÙ
Ø¬ÙØ¯ ÙØ¥Ø¨Ùاء Ù
ÙØ§Ø±Ø¯Ù Ù٠اÙÙ
ÙØªØ¨Ø©")},onError:ce=>re.error(ce.message)}),Ke=J.savedResources.folders.createShare.useMutation({onSuccess:ce=>{O(ce),L.refetch(),ke.refetch(),re.success("تÙ
ØÙظ إعدادات رابط اÙÙ
Ø´Ø§Ø±ÙØ©")},onError:ce=>re.error(ce.message)}),Ve=J.savedResources.folders.revokeShare.useMutation({onSuccess:()=>{Z&&O({...Z,isActive:!1}),L.refetch(),ke.refetch(),re.success("تÙ
Ø¥ÙÙØ§Ù رابط اÙÙ
Ø´Ø§Ø±ÙØ©")},onError:ce=>re.error(ce.message)}),ht=J.savedResources.folders.update.useMutation({onSuccess:()=>{Me(),I(null),re.success("تÙ
ت إعادة تسÙ
ÙØ© اÙÙ
Ø¬ÙØ¯")},onError:ce=>re.error(ce.message)}),pe=J.savedResources.tags.create.useMutation({onSuccess:()=>{Me(),C(""),re.success("تÙ
Ø¥ÙØ´Ø§Ø¡ اÙÙØ³Ù
")},onError:ce=>re.error(ce.message)}),et=J.savedResources.tags.delete.useMutation({onSuccess:()=>{Me(),d("all"),re.success("تÙ
ØØ°Ù اÙÙØ³Ù
")},onError:ce=>re.error(ce.message)}),xe=J.savedResources.tags.update.useMutation({onSuccess:()=>{Me(),I(null),re.success("تÙ
ت إعادة تسÙ
ÙØ© اÙÙØ³Ù
")},onError:ce=>re.error(ce.message)}),it=J.savedResources.setFolder.useMutation({onSuccess:()=>{t.lessons.savedLibrary.invalidate()},onError:ce=>re.error(ce.message)}),Tt=J.savedResources.setTags.useMutation({onSuccess:()=>{t.lessons.savedLibrary.invalidate()},onError:ce=>re.error(ce.message)}),bt=()=>{if(!w.trim())return re.error("Ø§ÙØªØ¨ اسÙ
اÙÙ
Ø¬ÙØ¯ Ø£ÙÙØ§Ù");Ce.mutate({name:w,color:N})},vt=()=>{if(!D.trim())return re.error("Ø§ÙØªØ¨ اسÙ
اÙÙØ³Ù
Ø£ÙÙØ§Ù");pe.mutate({name:D,color:S})},St=(ce,se)=>{I({kind:ce,...se}),_(se.name),W(se.color)},de=()=>{if(!F)return;const ce=Tye(F,H,V,{updateFolder:se=>ht.mutate(se),updateTag:se=>xe.mutate(se)});if(!ce.valid)return re.error(ce.message)},be=()=>{B&&(Dye(B,{deleteFolder:ce=>Te.mutate(ce),removeResource:ce=>Ze.mutate(ce)}),K(null))},G=Z??L.data,je=G?.isActive&&G.shareToken?c_e(window.location.origin,G.shareToken):"",ze=async()=>{if(je)try{await navigator.clipboard.writeText(je),re.success("تÙ
ÙØ³Ø® رابط Ù
Ø´Ø§Ø±ÙØ© اÙÙ
Ø¬ÙØ¯")}catch{re.error("تعذر ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·Ø Ø§ÙØ³Ø®Ù ÙØ¯ÙÙØ§Ù Ù
Ù Ø§ÙØÙÙ")}},Qe=ce=>{$(ce),O(null),Q("view"),oe("")},ye=()=>{if(!ae)return;const ce=U?new Date(U).getTime():void 0;if(ce!==void 0&&(!Number.isFinite(ce)||ce<=Date.now()+6e4))return re.error("اختر ØªØ§Ø±ÙØ® Ø§ÙØªÙاء بعد دÙÙÙØ© ÙØ§ØØ¯Ø© عÙÙ Ø§ÙØ£ÙÙ");Ke.mutate({folderId:ae.id,permission:Y,expiresAt:ce??null})};if(!e)return s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:169",className:"min-h-screen bg-memphis-peach",children:[s.jsx(jn,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:170"}),s.jsxs("main",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:171",className:"mx-auto flex max-w-xl flex-col items-center px-4 py-20 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:172",className:"mb-5 flex h-16 w-16 items-center justify-center rounded-2xl border-2 border-black bg-memphis-lilac shadow-memphis",children:s.jsx(Hi,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:172",className:"h-8 w-8 text-black"})}),s.jsx("h1",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:173",className:"text-3xl font-black text-black",children:"Ù
ØÙÙØ¸Ø§ØªÙ Ø§ÙØªØ¹ÙÙÙ
ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:174",className:"mt-3 leading-7 text-black/70",children:"سجÙ٠دخÙÙÙ ÙØ¹Ø±Ø¶ اÙÙÙØ¯ÙÙÙØ§Øª ÙØ§ÙÙ
راجع Ø§ÙØªÙ ØÙØ¸ØªÙØ§ ÙÙØ±Ø¬Ùع Ø¥ÙÙÙØ§ ÙØ§ØÙاÙ."}),s.jsx(Ie,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:175",onClick:Rn,className:"memphis-btn mt-6 bg-memphis-yellow font-black text-black",children:"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"})]})]});const Ee=me.data??[],te=Ae.data??[],We=Pe.data??[],mt=K0e({isLoading:Pe.isLoading,isError:Pe.isError,count:We.length}),z=()=>{if(We.length===0)return re.error("ÙØ§ ØªÙØ¬Ø¯ Ù
ÙØ§Ø±Ø¯ ÙØªØµØ¯ÙØ±ÙØ§ ÙÙ٠اÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ©");p_e(We),re.success("بدأ ØªÙØ²ÙÙ Ù
ÙÙ CSV")},_e=()=>{if(We.length===0)return re.error("ÙØ§ ØªÙØ¬Ø¯ Ù
ÙØ§Ø±Ø¯ ÙØªØµØ¯ÙØ±ÙØ§ ÙÙ٠اÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ©");try{m_e(We)}catch(ce){re.error(ce instanceof Error?ce.message:"تعذر ÙØªØ ÙØ§Ùذة Ø§ÙØªØµØ¯Ùر")}};return s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:196",className:"min-h-screen bg-memphis-peach pb-12",children:[s.jsx(jn,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:197"}),s.jsxs("main",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:198",className:"mx-auto max-w-6xl px-4 pt-8",children:[s.jsx("section",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:199",className:"border-2 border-black bg-memphis-lilac p-5 shadow-memphis sm:p-7",children:s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:200",className:"flex flex-col justify-between gap-4 sm:flex-row sm:items-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:201",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:202",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-white",children:s.jsx(Hi,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:202",className:"h-6 w-6 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:203",children:[s.jsx("p",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:204",className:"text-sm font-bold text-black/65",children:"Ù
ÙØªØ¨ØªÙ Ø§ÙØ´Ø®ØµÙØ©"}),s.jsx("h1",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:205",className:"text-2xl font-black text-black sm:text-3xl",children:"اÙÙ
ØÙÙØ¸Ø§Øª"}),s.jsx("p",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:206",className:"mt-1 text-sm text-black/70",children:"Ø§Ø¨ØØ« ÙÙØ¸ÙÙ
ÙÙØ¯ÙÙÙØ§ØªÙ ÙØ±Ùابط٠ÙÙØ¹Ùدة Ø¥ÙÙÙØ§ Ù
ت٠شئت."})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:209",className:"flex flex-wrap items-center gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:209",type:"button",size:"sm",variant:"outline",onClick:z,className:"gap-1 border-black bg-white text-xs font-black text-black",children:[s.jsx(Qi,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:209",className:"h-3.5 w-3.5"})," CSV"]}),s.jsxs(Ie,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:209",type:"button",size:"sm",variant:"outline",onClick:_e,className:"gap-1 border-black bg-white text-xs font-black text-black",children:[s.jsx(Zi,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:209",className:"h-3.5 w-3.5"})," PDF"]}),s.jsxs("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:209",className:"w-fit roun
1115ded-full border-2 border-black bg-memphis-yellow px-3 py-1 text-sm font-black text-black",children:[We.length," Ù
ÙØ±Ø¯"]})]})]})}),s.jsxs("section",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:213",className:"mt-6 border-2 border-black bg-white p-4 shadow-memphis","aria-label":"Ø¨ØØ« ÙØªØµÙÙØ© ÙÙØ±Ø² اÙÙ
ØÙÙØ¸Ø§Øª",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:214",className:"mb-3 flex items-center gap-2 font-black text-black",children:[s.jsx(S6,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:214",className:"h-5 w-5"})," Ø¨ØØ« ÙØªØµÙÙØ© ÙÙØ±Ø²"]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:215",className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:216",className:"text-sm font-bold text-black lg:col-span-3",children:["Ø¨ØØ« ÙØµÙ",s.jsxs("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:217",className:"relative mt-1 block",children:[s.jsx(xl,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:217",className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-black/45"}),s.jsx("input",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:217",value:m,onChange:ce=>f(ce.target.value),placeholder:"Ø§Ø¨ØØ« Ù٠عÙÙØ§Ù Ø§ÙØ¯Ø±Ø³ أ٠اسÙ
اÙÙ
ÙØ±Ø¯ أ٠رابطÙ",className:"w-full rounded-lg border-2 border-black py-2 pr-9 pl-3 text-sm font-medium text-black focus:outline-none focus:ring-2 focus:ring-memphis-lilac"})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:219",className:"text-sm font-bold text-black",children:["اÙÙÙØ¹",s.jsxs("select",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:220",value:a,onChange:ce=>n(ce.target.value),className:_p,children:[s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:220",value:"all",children:"ÙÙ Ø§ÙØ£ÙÙØ§Ø¹"}),s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:220",value:"video",children:"ÙÙØ¯ÙÙÙØ§Øª"}),s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:220",value:"reference",children:"Ù
راجع ÙØ±Ùابط"})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:222",className:"text-sm font-bold text-black",children:["اÙÙØ¦Ø©",s.jsxs("select",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:223",value:r,onChange:ce=>i(ce.target.value),className:_p,children:[s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:223",value:"all",children:"Ù٠اÙÙØ¦Ø§Øª"}),(ge.data??[]).map(ce=>s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:223",value:ce.id,children:ce.nameAr},ce.id))]})]}),s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:225",className:"text-sm font-bold text-black",children:["اÙÙ
Ø¬ÙØ¯",s.jsxs("select",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:226",value:o,onChange:ce=>l(ce.target.value),className:_p,children:[s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:226",value:"all",children:"Ù٠اÙÙ
Ø¬ÙØ¯Ø§Øª"}),Ee.map(ce=>s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:226",value:ce.id,children:ce.name},ce.id))]})]}),s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:228",className:"text-sm font-bold text-black",children:["اÙÙØ³Ù
",s.jsxs("select",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:229",value:c,onChange:ce=>d(ce.target.value),className:_p,children:[s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:229",value:"all",children:"Ù٠اÙÙØ³ÙÙ
"}),te.map(ce=>s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:229",value:ce.id,children:ce.name},ce.id))]})]}),s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:231",className:"text-sm font-bold text-black",children:["اÙÙØ±Ø² ØØ³Ø¨",s.jsxs("select",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:232",value:h,onChange:ce=>x(ce.target.value),className:_p,children:[s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:232",value:"savedAt",children:"ØªØ§Ø±ÙØ® Ø§ÙØ¥Ø¶Ø§ÙØ©"}),s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:232",value:"title",children:"عÙÙØ§Ù Ø§ÙØ¯Ø±Ø³"}),s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:232",value:"category",children:"اÙÙØ¦Ø©"})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:234",className:"text-sm font-bold text-black",children:["Ø§ÙØ§ØªØ¬Ø§Ù",s.jsxs("select",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:235",value:b,onChange:ce=>y(ce.target.value),className:_p,children:[s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:235",value:"desc",children:"Ø§ÙØ£ØØ¯Ø« / Ù-Ø£"}),s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:235",value:"asc",children:"Ø§ÙØ£ÙدÙ
/ Ø£-Ù"})]})]})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:240",className:"mt-6 grid gap-4 lg:grid-cols-2","aria-label":"ØªÙØ¸ÙÙ
اÙÙ
ØÙÙØ¸Ø§Øª",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:241",className:"border-2 border-black bg-white p-4 shadow-memphis",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:242",className:"mb-3 flex items-center gap-2 font-black text-black",children:[s.jsx(mk,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:242",className:"h-5 w-5 text-memp
1115his-orange"})," اÙÙ
Ø¬ÙØ¯Ø§Øª"]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:243",className:"flex gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:243",value:w,onChange:ce=>j(ce.target.value),onKeyDown:ce=>{ce.key==="Enter"&&bt()},placeholder:"Ù
ثاÙ: ÙÙØªØ·Ø¨ÙÙ ÙØ°Ø§ Ø§ÙØ£Ø³Ø¨Ùع",maxLength:80,className:"min-w-0 flex-1 rounded-lg border-2 border-black px-3 py-2 text-sm text-black focus:outline-none focus:ring-2 focus:ring-memphis-lilac"}),s.jsx("input",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:243",type:"color",value:N,onChange:ce=>k(ce.target.value),"aria-label":"ÙÙ٠اÙÙ
Ø¬ÙØ¯",className:"h-10 w-11 cursor-pointer rounded border-2 border-black p-1"}),s.jsxs(Ie,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:243",type:"button",size:"sm",onClick:bt,disabled:Ce.isPending,className:"gap-1 bg-memphis-yellow text-black",children:[s.jsx(qi,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:243",className:"h-4 w-4"})," Ø¥Ø¶Ø§ÙØ©"]})]}),s.jsx("p",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:244",className:"mt-2 text-xs font-medium text-black/60",children:"Ø§Ø³ØØ¨ Ø¨Ø·Ø§ÙØ© اÙÙ
ÙØ±Ø¯ Ø¥ÙÙ Ù
Ø¬ÙØ¯ ÙÙÙÙÙØ§Ø ÙØ¹ÙÙ Ø§ÙØ¬Ùا٠استخدÙ
ÙØ§Ø¦Ù
Ø© «اÙÙ
Ø¬ÙØ¯Â» Ø¯Ø§Ø®Ù Ø§ÙØ¨Ø·Ø§ÙØ©."}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",className:"mt-3 flex flex-wrap gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",onDragOver:ce=>ce.preventDefault(),onDrop:()=>{E&&uN(E,null,ce=>it.mutate(ce)),R(null)},className:"inline-flex items-center gap-1 rounded-full border-2 border-dashed border-black px-2 py-1 text-xs font-bold text-black/70",children:[s.jsx(vm,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",className:"h-3.5 w-3.5"})," دÙÙ Ù
Ø¬ÙØ¯"]}),Ee.length===0?s.jsx("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",className:"text-sm text-black/55",children:"Ø£ÙØ´Ø¦ Ù
Ø¬ÙØ¯Ø§Ù ÙØªØ±ØªÙب Ù
ÙØ§Ø±Ø¯Ù."}):Ee.map(ce=>s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",onDragOver:se=>se.preventDefault(),onDrop:()=>{E&&uN(E,ce.id,se=>it.mutate(se)),R(null)},className:"inline-flex items-center gap-1 rounded-full border-2 border-black px-2 py-1 text-xs font-bold text-black transition hover:scale-105",style:{backgroundColor:ce.color},children:[s.jsx(mk,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",className:"h-3.5 w-3.5"}),ce.name,s.jsx("button",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",type:"button",onClick:()=>St("folder",ce),"aria-label":`تعدÙÙ Ù
Ø¬ÙØ¯ ${ce.name}`,className:"rounded-full p-0.5 hover:bg-white/60",children:s.jsx(Fg,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",className:"h-3.5 w-3.5"})}),s.jsx("button",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",type:"button",onClick:()=>Qe(ce),"aria-label":`Ù
Ø´Ø§Ø±ÙØ© Ù
Ø¬ÙØ¯ ${ce.name}`,className:"rounded-full p-0.5 hover:bg-white/60",children:s.jsx(Lr,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",className:"h-3.5 w-3.5"})}),s.jsx("button",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",type:"button",onClick:()=>K({kind:"folder",id:ce.id,name:ce.name}),"aria-label":`ØØ°Ù Ù
Ø¬ÙØ¯ ${ce.name}`,className:"rounded-full p-0.5 hover:bg-white/60",children:s.jsx(Zn,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:245",className:"h-3.5 w-3.5"})})]},ce.id))]})]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:247",className:"border-2 border-black bg-white p-4 shadow-memphis",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:248",className:"mb-3 flex items-center gap-2 font-black text-black",children:[s.jsx(fk,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:248",className:"h-5 w-5 text-memphis-orange"})," اÙÙØ³ÙÙ
"]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:249",className:"flex gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:249",value:D,onChange:ce=>C(ce.target.value),onKeyDown:ce=>{ce.key==="Enter"&&vt()},placeholder:"Ù
ثاÙ: Ø£ÙÙÙÙØ© عاÙÙØ©",maxLength:60,className:"min-w-0 flex-1 rounded-lg border-2 border-black px-3 py-2 text-sm text-black focus:outline-none focus:ring-2 focus:ring-memphis-lilac"}),s.jsx("input",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:249",type:"color",value:S,onChange:ce=>A(ce.target.value),"aria-label":"ÙÙ٠اÙÙØ³Ù
",className:"h-10 w-11 cursor-pointer rounded border-2 border-black p-1"}),s.jsxs(Ie,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:249",type:"button",size:"sm",onClick:vt,disabled:pe.isPending,className:"gap-1 bg-memphis-sky text-black",children:[s.jsx(qi,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:249",className:"h-4 w-4"})," Ø¥Ø¶Ø§ÙØ©"]})]}),s.jsx("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",className:"mt-3 flex flex-wrap gap-2",children:te.length===0?s.jsx("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",className:"text-sm text-black/55",children:"Ø£ÙØ´Ø¦ ÙØ³ÙÙ
Ø§Ù ÙØªØ¬Ù
ÙØ¹ اÙÙ
ÙØ§Ø±Ø¯ عبر اÙÙ
Ø¬ÙØ¯Ø§Øª."}):te.map(ce=>s.jsxs("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",className:"inline-flex items-center gap-1 rounded-full border-2 border-black px-2 py-1 text-xs font-bold text-black",style:{backgroundColor:ce.color},children:[s.jsx(fk,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",className:"h-3.5 w-3.5"}),ce.name,s.jsx("button",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",type:"button",onClick:()=>St("tag",ce),"aria-label":`إعادة تسÙ
ÙØ© ÙØ³Ù
${ce.name}`,className:"rounded-full p-0.5 hover:bg-white/60",children:s.jsx(Fg,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",className:"h-3.5 w-3.5"})}),s.jsx("button",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",type:"button",onClick:()=>et.mutate({tagId:ce.id}),"aria-label":`ØØ°Ù ÙØ³Ù
${ce.name}`,className:"rounded-full p-0.5 hover:bg-white/60",children:s.jsx(Zn,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:250",className:"h-3.5 w-3.5"})})]},ce.id))})]})]}),mt==="loading"?s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:255",className:"flex items-center justify-center gap-2 py-20 text-black/60",children:[s.jsx(Ta,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:255",className:"h-6 w-6 animate-spin"})," جار٠تØÙ
Ù٠اÙÙ
ØÙÙØ¸Ø§Øªâ¦"]}):mt==="error"?s.jsx("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:257",className:"mt-6 border-2 border-black bg-memphis-coral p-5 text-center font-bold text-black",children:"تعذر تØÙ
Ù٠اÙÙ
ØÙÙØ¸Ø§Øª. ØØ§ÙÙ ØªØØ¯ÙØ« Ø§ÙØµÙØØ©."}):mt==="empty"?s.jsxs("section",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:259",className:"mt-6 border-2 border-dashed border-black bg-white p-10 text-center shadow-memphis",children:[s.jsx(vm,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:259",className:"mx-auto h-12 w-12 text-memp
1115his-orange"}),s.jsx("h2",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:259",className:"mt-4 text-xl font-black text-black",children:ne.heading}),s.jsx("p",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:259",className:"mx-auto mt-2 max-w-md text-sm leading-6 text-black/65",children:ne.description}),s.jsx(jt,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:259",href:"/dashboard",children:s.jsx(Ie,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:259",className:"memphis-btn mt-5 bg-memphis-yellow font-black text-black",children:"Ø§Ø³ØªÙØ´Ù Ø§ÙØ¯Ø±Ùس"})})]}):s.jsx("section",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:261",className:"mt-6 grid gap-4 md:grid-cols-2",children:We.map(ce=>{const se=ce.resourceType==="video"?T6:c2,fe=ce.resourceTitle||ce.lessonTitle,Se=ce.tags.map(ot=>ot.id);return s.jsxs("article",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:267",draggable:!0,onDragStart:()=>R(ce.id),onDragEnd:()=>R(null),className:"border-2 border-black bg-white p-4 shadow-memphis transition hover:-translate-y-0.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:"flex min-w-0 items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border-2 border-black ${ce.resourceType==="video"?"bg-memphis-yellow":"bg-memphis-sky"}`,children:s.jsx(se,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:"h-5 w-5 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:"min-w-0",children:[s.jsxs("p",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:"text-xs font-bold text-black/55",children:[f_e[ce.resourceType]," · ",new Date(ce.savedAt).toLocaleDateString("ar-SA")]}),s.jsx("h2",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:"mt-1 line-clamp-2 font-black text-black",children:fe})]})]}),s.jsx("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:268",className:"shrink-0 rounded-full border border-black/30 px-2 py-0.5 text-xs font-bold text-black",style:{backgroundColor:ce.categoryColor},children:ce.categoryName})]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:269",className:"mt-3 border-r-2 border-black/15 pr-3 text-sm text-black/70",children:[s.jsx(Ln,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:269",className:"ml-1 inline h-4 w-4"})," Ù
٠درس: ",s.jsx(jt,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:269",href:`/lesson/${ce.lessonId}`,children:s.jsx("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:269",className:"font-bold text-blue-700 underline hover:text-blue-900",children:ce.lessonTitle})})]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"mt-3 grid gap-2 sm:grid-cols-2",children:[s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"text-xs font-bold text-black/70",children:["اÙÙ
Ø¬ÙØ¯",s.jsxs("select",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",value:ce.folderId??"none",onChange:ot=>uN(ce.id,ot.target.value==="none"?null:Number(ot.target.value),lt=>it.mutate(lt)),className:"mt-1 w-full rounded-md border border-black/30 bg-white px-2 py-1.5 text-xs text-black",children:[s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",value:"none",children:"دÙÙ Ù
Ø¬ÙØ¯"}),Ee.map(ot=>s.jsx("option",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",value:ot.id,children:ot.name},ot.id))]})]}),s.jsxs("details",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"rounded-md border border-black/30 bg-white px-2 py-1.5 text-xs text-black",children:[s.jsxs("summary",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"cursor-pointer font-bold",children:["اÙÙØ³ÙÙ
(",ce.tags.length,")"]}),s.jsx("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"mt-2 space-y-1.5",children:te.length===0?s.jsx("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"text-black/55",children:"Ø£ÙØ´Ø¦ ÙØ³Ù
ا٠أÙÙØ§Ù"}):te.map(ot=>{const lt=Se.includes(ot.id);return s.jsxs("label",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"flex cursor-pointer items-center gap-1.5",children:[s.jsx("input",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",type:"checkbox",checked:lt,onChange:()=>Tt.mutate({resourceId:ce.id,tagIds:lt?Se.filter(Le=>Le!==ot.id):[...Se,ot.id]})}),s.jsx("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:270",className:"rounded-full px-2 py-0.5 font-bold",style:{backgroundColor:ot.color},children:ot.name})]},ot.id)})})]})]}),(ce.folderName||ce.tags.length>0)&&s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:271",className:"mt-3 flex flex-wrap gap-1.5",children:[ce.folderName&&s.jsxs("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:271",className:"rounded-full border border-black/30 px-2 py-0.5 text-xs font-bold text-black",style:{backgroundColor:ce.folderColor??"#fff"},children:[s.jsx(mk,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:271",className:"ml-1 inline h-3 w-3"}),ce.folderName]}),ce.tags.map(ot=>s.jsxs("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:271",className:"rounded-full border border-black/30 px-2 py-0.5 text-xs font-bold text-black",style:{backgroundColor:ot.color},children:[s.jsx(fk,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:271",className:"ml-1 inline h-3 w-3"}),ot.name]},ot.id))]}),s.jsxs("div",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",className:"mt-4 flex flex-wrap items-center gap-2",children:[s.jsxs("span",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",className:"inline-flex cursor-grab items-center gap-1 rounded border border-dashed border-black/35 px-2 py-1 text-xs font-bold text-black/55 active:cursor-grabbing",children:[s.jsx(wpe,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",className:"h-3.5 w-3.5"})," Ø§Ø³ØØ¨ Ø¥ÙÙ Ù
Ø¬ÙØ¯"]}),s.jsxs("a",{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",href:ce.resourceUrl,target:"_blank",rel:"noopener noreferrer",className:"memphis-btn bg-memphis-lilac px-3 py-2 text-xs font-black text-black",children:[s.jsx(_g,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",className:"ml-1 inline h-3.5 w-3.5"})," ÙØªØ اÙÙ
ÙØ±Ø¯"]}),s.jsx(yy,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",resourceUrl:ce.resourceUrl,resourceTitle:fe}),s.jsxs(Ie,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",type:"button",variant:"outline",size:"sm",onClick:()=>K({kind:"resource",id:ce.id,name:fe,lessonId:ce.lessonId,resourceType:ce.resourceType,resourceUrl:ce.resourceUrl}),disabled:Ze.isPending,className:"mr-auto gap-1.5 border-red-300 text-xs font-bold text-red-700 hover:bg-red-50",children:[s.jsx(ur,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:272",className:"h-3.5 w-3.5"})," Ø¥Ø²Ø§ÙØ©"]})]})]},ce.id)})})]}),s.jsx(o_e,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:279",open:!!F,onOpenChange:ce=>{ce||I(null)},kind:F?.kind??"folder",name:H,color:V,onNameChange:_,onColorChange:W,onSave:de,isPending:ht.isPending||xe.isPending}),s.jsx(l_e,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:280",open:!!ae,onOpenChange:ce=>{ce||($(null),O(null))},folderName:ae?.name??"",shareUrl:je,isActive:!!G?.isActive,permission:Y,expiresAt:U,onPermissionChange:Q,onExpiresAtChange:oe,activity:ke.data??[],onCreate:ye,onRevoke:()=>{ae&&Ve.mutate({folderId:ae.id})},onCopy:ze,isPending:Ke.isPending||Ve.isPending}),s.jsx(pX,{"data-loc":"client/src/pages/SavedResourcesPage.tsx:281",open:!!B,onOpenChange:ce=>{ce||K(null)},title:"تأÙÙØ¯ Ø§ÙØØ°Ù",description:`ÙÙ ØªØ±ÙØ¯ ØØ°Ù ${B?.kind==="folder"?"اÙÙ
Ø¬ÙØ¯":"اÙÙ
ÙØ±Ø¯ اÙÙ
ØÙÙØ¸"} «${B?.name??""}»Ø${B?.kind==="folder"?" ستبÙÙ Ù
ÙØ§Ø±Ø¯Ù Ù٠اÙÙ
ÙØªØ¨Ø© دÙÙ Ù
Ø¬ÙØ¯.":" ÙØ§ ÙÙ
ÙÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ Ø¹Ù ÙØ°Ù Ø§ÙØ¹Ù
ÙÙØ©."}`,onConfirm:be,isPending:Te.isPending||Ze.isPending})]})}function x_e(){const[,e]=ome("/shared-folder/:token"),t=e?.token??"",a=J.savedResources.sharedFolder.useQuery({shareToken:t},{enabled:t.length>=16}),[n,r]=P.useState(!1),[i,o]=P.useState(""),[l,c]=P.useState("#C4B5FD"),d=J.savedResources.updateSharedFolder.useMutation({onSuccess:()=>{r(!1),a.refetch()}}),m=()=>{a.data&&(o(a.data.folder.folderName),c(a.data.folder.folderColor),r(!0))};return s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:24",className:"min-h-screen bg-memphis-peach pb-12",children:[s.jsx(jn,{"data-loc":"client/src/pages/SharedFolderPage.tsx:25"}),s.jsx("main",{"data-loc":"client/src/pages/SharedFolderPage.tsx:26",className:"mx-auto max-w-5xl px-4 pt-8",children:a.isLoading?s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",className:"flex min-h-64 items-center justify-center gap-2 text-black/65",children:[s.jsx(Ta,{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",className:"h-6 w-6 animate-spin"})," جار٠تØÙ
Ù٠اÙÙ
Ø¬ÙØ¯ اÙÙ
شترÙâ¦"]}):a.data?s.jsxs(s.Fragment,{children:[s.jsxs("section",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"border-2 border-black p-6 shadow-memphis",style:{backgroundColor:a.data.folder.folderColor},children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl border-2 border-black bg-white",children:s.jsx(vm,{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"h-6 w-6 text-black"})}),s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",children:[s.jsxs("p",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"text-sm font-bold text-black/65",children:["Ù
Ø¬ÙØ¯ تعÙÙÙ
Ù Ù
شتر٠· ",a.data.share.permission==="edit"?"ØµÙØ§ØÙØ© تعدÙÙ":"عرض ÙÙØ·"]}),s.jsx("h1",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"text-3xl font-black text-black",children:a.data.folder.folderName}),s.jsxs("p",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"mt-1 text-sm text-black/70",children:[a.data.resources.length," Ù
ÙØ±Ø¯ Ù
ØªØ§Ø ÙÙØ¹Ø±Ø¶"]})]})]}),a.data.share.permission==="edit"&&s.jsxs(Ie,{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",type:"button",variant:"outline",onClick:m,className:"gap-1.5 border-black bg-white text-black",children:[s.jsx(Fg,{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"h-4 w-4"})," تعدÙÙ"]})]}),n&&s.jsxs("form",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",onSubmit:f=>{f.preventDefault(),d.mutate({shareToken:t,name:i.trim(),color:l})},className:"mt-5 grid gap-3 border-t-2 border-black/20 pt-4 sm:grid-cols-[1fr_120px_auto]",children:[s.jsxs("label",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"text-sm font-bold text-black",children:["اسÙ
اÙÙ
Ø¬ÙØ¯",s.jsx("input",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28","aria-label":"اسÙ
اÙÙ
Ø¬ÙØ¯ اÙÙ
شترÙ",value:i,onChange:f=>o(f.target.value),maxLength:80,className:"mt-1 w-full rounded-lg border-2 border-black bg-white px-3 py-2 text-black"})]}),s.jsxs("label",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"text-sm font-bold text-black",children:["اÙÙÙÙ",s.jsx("input",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28","aria-label":"ÙÙ٠اÙÙ
Ø¬ÙØ¯ اÙÙ
شترÙ",type:"color",value:l,onCh
1115ange:f=>c(f.target.value),className:"mt-1 h-11 w-full cursor-pointer rounded-lg border-2 border-black bg-white p-1"})]}),s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"flex items-end gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",type:"button",variant:"outline",onClick:()=>r(!1),children:"Ø¥ÙØºØ§Ø¡"}),s.jsx(Ie,{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",type:"submit",disabled:d.isPending,className:"bg-memphis-yellow font-black text-black",children:"ØÙظ"})]}),d.isError&&s.jsx("p",{"data-loc":"client/src/pages/SharedFolderPage.tsx:28",className:"text-sm font-bold text-red-700 sm:col-span-3",children:"تعذر ØÙظ Ø§ÙØªØ¹Ø¯ÙÙ. ÙØ¯ تÙÙÙ ØµÙØ§ØÙØ© Ø§ÙØ±Ø§Ø¨Ø· ÙØ¯ ØªØºÙØ±Øª Ø£Ù Ø§ÙØªÙت."})]})]}),a.data.resources.length===0?s.jsxs("section",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"mt-6 border-2 border-dashed border-black bg-white p-10 text-center shadow-memphis",children:[s.jsx(Ln,{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"mx-auto h-10 w-10"}),s.jsx("h2",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"mt-3 text-xl font-black",children:"ÙØ§ ØªÙØ¬Ø¯ Ù
ÙØ§Ø±Ø¯ ÙÙ ÙØ°Ø§ اÙÙ
Ø¬ÙØ¯ بعد"})]}):s.jsx("section",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"mt-6 grid gap-4 md:grid-cols-2",children:a.data.resources.map(f=>{const h=f.resourceType==="video"?T6:c2;return s.jsxs("article",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"border-2 border-black bg-white p-4 shadow-memphis",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"flex items-start gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border-2 border-black ${f.resourceType==="video"?"bg-memphis-yellow":"bg-memphis-sky"}`,children:s.jsx(h,{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"min-w-0",children:[s.jsxs("p",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"text-xs font-bold text-black/55",children:[f.resourceType==="video"?"ÙÙØ¯ÙÙ":"Ù
رجع"," · ",f.categoryName]}),s.jsx("h2",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"mt-1 line-clamp-2 font-black text-black",children:f.resourceTitle||f.lessonTitle}),s.jsxs("p",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"mt-1 text-xs text-black/60",children:["Ù
٠درس: ",f.lessonTitle]})]})]}),s.jsxs("a",{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",href:f.resourceUrl,target:"_blank",rel:"noopener noreferrer",className:"memphis-btn mt-4 inline-block bg-memphis-lilac px-3 py-2 text-xs font-black text-black",children:[s.jsx(_g,{"data-loc":"client/src/pages/SharedFolderPage.tsx:29",className:"ml-1 inline h-3.5 w-3.5"})," ÙØªØ اÙÙ
ÙØ±Ø¯"]})]},f.id)})})]}):s.jsxs("section",{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",className:"mx-auto mt-12 max-w-xl border-2 border-dashed border-black bg-white p-10 text-center shadow-memphis",children:[s.jsx(vm,{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",className:"mx-auto h-12 w-12 text-memphis-orange"}),s.jsx("h1",{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",className:"mt-4 text-2xl font-black text-black",children:"Ø§ÙØ±Ø§Ø¨Ø· ØºÙØ± Ù
تاØ"}),s.jsx("p",{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",className:"mt-2 leading-7 text-black/65",children:"ÙØ¯ ÙÙÙÙ Ø§ÙØ±Ø§Ø¨Ø· ØºÙØ± صØÙØ Ø£Ù Ø£ÙÙÙ ØµØ§ØØ¨Ù Ù
Ø´Ø§Ø±ÙØªÙ."}),s.jsx(jt,{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",href:"/",children:s.jsx("span",{"data-loc":"client/src/pages/SharedFolderPage.tsx:27",className:"mt-5 inline-block font-black text-blue-700 underline",children:"Ø§ÙØ¹Ùدة ÙÙØ±Ø¦ÙØ³ÙØ©"})})]})})]})}const b_e={lesson:"Ø¯Ø±ÙØ³",quiz:"ÙÙÙØ²Ø§Øª",challenge:"ØªØØ¯Ùات",puzzle:"Ø£ÙØºØ§Ø²"};function v_e(e,t){return t==="all"?e:e.filter(a=>a.type===t)}function y_e(e){const t=e.reduce((n,r)=>({...n,[r.type]:n[r.type]+1}),{lesson:0,quiz:0,challenge:0,puzzle:0}),a=Object.keys(t).filter(n=>t[n]>0).map(n=>`${t[n]} ${b_e[n]}`);return{counts:t,text:a.length?`أضÙÙØ§ اÙÙÙÙ
${a.join(" Ù")} بعد اÙÙ
راجعة Ø§ÙØ°ÙÙØ©.`:"Ø³ÙØ¸Ùر Ù
ÙØ®Øµ Ø§ÙØªØØ¯ÙØ« ÙÙØ± اعتÙ
اد Ù
ØØªÙ٠اÙÙÙÙ
."}}
1115const cU={lesson:{label:"درس Ø¬Ø¯ÙØ¯",icon:Ln,color:"bg-memphis-lilac"},quiz:{label:"ÙÙÙØ² Ø¬Ø¯ÙØ¯",icon:ipe,color:"bg-memphis-yellow"},challenge:{label:"ØªØØ¯Ù Ø¬Ø¯ÙØ¯",icon:Os,color:"bg-memphis-mint"},puzzle:{label:"ÙØºØ² Ø§ÙØ£Ø³Ø¨Ùع",icon:pn,color:"bg-memphis-sky"}};function w_e(){const{isAuthenticated:e}=Ma(),t=J.dailyContent.today.useQuery(void 0,{enabled:e}),a=J.savedResources.folders.list.useQuery(void 0,{enabled:e}),n=J.useUtils(),[r,i]=P.useState("all"),[o,l]=P.useState(null),c=J.dailyContent.saveAll.useMutation({onSuccess:h=>{re.success(`تÙ
ØÙظ ${h.saved} Ø¹ÙØµØ± Ù
Ù Ù
ØØªÙ٠اÙÙÙÙ
`),n.savedResources.recent.invalidate(),n.lessons.savedLibrary.invalidate()},onError:h=>re.error(h.message||"تعذر ØÙظ Ù
ØØªÙ٠اÙÙÙÙ
")}),d=t.data??[],m=P.useMemo(()=>v_e(d,r),[d,r]),f=P.useMemo(()=>y_e(d),[d]);return e?s.jsxs("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:39",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/DailyContentPage.tsx:40"}),s.jsxs("main",{"data-loc":"client/src/pages/DailyContentPage.tsx:41",className:"max-w-5xl mx-auto px-4 py-8",children:[s.jsx("section",{"data-loc":"client/src/pages/DailyContentPage.tsx:42",className:"memphis-card bg-memphis-lilac p-6 mb-6",children:s.jsxs("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:43",className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:44",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:45",className:"w-12 h-12 rounded-xl bg-white border-2 border-black flex items-center justify-center shadow-memphis",children:s.jsx(pn,{"data-loc":"client/src/pages/DailyContentPage.tsx:45",className:"w-6 h-6"})}),s.jsxs("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:46",children:[s.jsx("h1",{"data-loc":"client/src/pages/DailyContentPage.tsx:46",className:"font-black text-2xl text-black",children:"Ù
ØØªÙ٠اÙÙÙÙ
"}),s.jsx("p",{"data-loc":"client/src/pages/DailyContentPage.tsx:46",className:"font-bold text-black/70 text-sm mt-1",children:f.text})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:48",className:"flex flex-wrap gap-2 items-center",children:[s.jsxs("select",{"data-loc":"client/src/pages/DailyContentPage.tsx:49",value:o??"",onChange:h=>l(h.target.value?Number(h.target.value):null),className:"h-10 max-w-44 border-2 border-black rounded-lg bg-white px-2 text-xs font-black",children:[s.jsx("option",{"data-loc":"client/src/pages/DailyContentPage.tsx:50",value:"",children:"ØÙظ دÙÙ Ù
Ø¬ÙØ¯"}),a.data?.map(h=>s.jsx("option",{"data-loc":"client/src/pages/DailyContentPage.tsx:51",value:h.id,children:h.name},h.id))]}),s.jsxs("button",{"data-loc":"client/src/pages/DailyContentPage.tsx:53",onClick:()=>c.mutate({folderId:o}),disabled:d.length===0||c.isPending,className:"memphis-btn bg-black text-white px-4 py-2 text-sm font-black disabled:opacity-50 flex items-center gap-2",children:[s.jsx(rpe,{"data-loc":"client/src/pages/DailyContentPage.tsx:53",className:"w-4 h-4"}),c.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"ØÙظ اÙÙÙ"]})]})]})}),t.isLoading?s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:57",className:"py-16 flex justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:57",className:"w-9 h-9 border-4 border-black border-t-transparent rounded-full animate-spin"})}):d.length===0?s.jsxs("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:58",className:"memphis-card p-10 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:58",className:"text-5xl mb-3",children:"ð¤ï¸"}),s.jsx("h2",{"data-loc":"client/src/pages/DailyContentPage.tsx:58",className:"font-black text-xl",children:"ÙØ§ ÙÙØ¬Ø¯ Ù
ØØªÙÙ Ø¬Ø¯ÙØ¯ بعد"}),s.jsx("p",{"data-loc":"client/src/pages/DailyContentPage.tsx:58",className:"font-bold text-black/55 mt-2",children:"Ø³ÙØ¸Ùر اÙÙ
ØØªÙ٠اÙÙÙÙ
Ù ÙÙØ§ ÙÙØ± اعتÙ
ادÙ."})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:60",className:"flex flex-wrap gap-2 mb-5",children:["all","lesson","quiz","challenge","puzzle"].map(h=>s.jsx("button",{"data-loc":"client/src/pages/DailyContentPage.tsx:60",onClick:()=>i(h),className:`memphis-badge-pill border-2 border-black transition-colors ${r===h?"bg-black text-white":"bg-white text-black"}`,children:h==="all"?`اÙÙÙ (${d.length})`:`${cU[h].label} (${f.counts[h]})`},h))}),m.length===0?s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:61",className:"memphis-card p-8 text-center font-black",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¥Ø¶Ø§ÙØ§Øª Ù
Ù ÙØ°Ø§ اÙÙÙØ¹ اÙÙÙÙ
."}):s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:61",className:"grid md:grid-cols-2 gap-5",children:m.map(h=>{const x=cU[h.type],b=x.icon;return s.jsx(jt,{"data-loc":"client/src/pages/DailyContentPage.tsx:65",href:h.href,children:s.jsxs("article",{"data-loc":"client/src/pages/DailyContentPage.tsx:65",className:`memphis-card ${x.color} p-5 h-full cursor-pointer hover:-translate-y-1 transition-transform`,children:[s.jsxs("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:66",className:"flex items-start justify-between gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/DailyContentPage.tsx:66",className:"memphis-badge-pill bg-white",children:x.label}),s.jsx(b,{"data-loc":"client/src/pages/DailyContentPage.tsx:66",className:"w-6 h-6"})]}),s.jsx("h2",{"data-loc":"client/src/pages/DailyContentPage.tsx:67",className:"font-black text-lg text-black mt-5",children:h.title}),s.jsx("p",{"data-loc":"client/src/pages/DailyContentPage.tsx:67",className:"font-medium text-sm text-black/70 mt-2 leading-relaxed",children:h.description}),s.jsx("p",{"data-loc":"client/src/pages/DailyContentPage.tsx:68",className:"font-black text-xs mt-4",children:"Ø§Ø³ØªÙØ´Ù Ø§ÙØ¢Ù â"})]})},h.id)})})]})]})]}):s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:36",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/DailyContentPage.tsx:36",className:"memphis-card p-8 text-center font-black",children:"سجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙØ¹Ø±Ø¶ Ù
ØØªÙ٠اÙÙÙÙ
."})})}function P_e(e){const t=e.name.trim(),a=e.email.trim(),n=e.companyName.trim(),r
1115={name:t.length<2?"Ø§ÙØªØ¨ Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù (ØØ±Ùا٠عÙÙ Ø§ÙØ£ÙÙ).":"",email:/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(a)?"":"Ø£Ø¯Ø®Ù Ø¨Ø±ÙØ¯Ø§Ù Ù
ÙÙÙØ§Ù Ù
ث٠[email protected].",companyName:n.length<2?"أدخ٠اسÙ
اÙÙ
ÙØ´Ø£Ø© (ØØ±Ùا٠عÙÙ Ø§ÙØ£ÙÙ).":""};return{values:{name:t,email:a,companyName:n},errors:r,isValid:!r.name&&!r.email&&!r.companyName}}function j_e(){const[e,t]=P.useState({days:29,hours:14,minutes:45,seconds:30}),[a,n]=P.useState(""),[r,i]=P.useState(""),[o,l]=P.useState(""),[c,d]=P.useState(""),[m,f]=P.useState(!1),[h,x]=P.useState({name:!1,email:!1,companyName:!1}),[b,y]=P.useState(""),[w,j]=P.useState(!1),[N,k]=P.useState(5),[D,C]=P.useState(""),[S,A]=P.useState("general"),[E,R]=P.useState(""),[F,I]=P.useState(!1),[H,_]=P.useState(!1),[V,W]=P.useState(""),[B,K]=P.useState(!1),[ae]=P.useState(()=>"visitor_"+Math.random().toString(36).substring(2,11)),[$,Z]=P.useState(""),[O,Y]=P.useState(""),Q=J.teaser.registerEarly.useMutation({onSuccess:()=>{f(!0),y("")},onError:Ve=>{y(Ve.message||"ØØ¯Ø« خطأ Ø£Ø«ÙØ§Ø¡ Ø§ÙØªØ³Ø¬ÙÙ. ØØ§ÙÙ Ù
رة أخرÙ.")}}),U=J.teaser.submitFeedback.useMutation({onSuccess:()=>{I(!0),setTimeout(()=>{j(!1),I(!1),C("")},2500)}}),oe=J.teaser.getSupportMessages.useQuery({sessionId:ae},{refetchInterval:5e3}),X=J.teaser.sendSupportMessage.useMutation({onSuccess:()=>{Y(""),oe.refetch()},onError:()=>{Y("تعذر Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ© ØØ§ÙÙØ§Ù. تØÙÙ Ù
٠اتصاÙÙ ÙØØ§ÙÙ Ù
رة أخرÙ.")}});P.useEffect(()=>{const Ve=setInterval(()=>{t(ht=>ht.seconds>0?{...ht,seconds:ht.seconds-1}:ht.minutes>0?{...ht,minutes:ht.minutes-1,seconds:59}:ht.hours>0?{...ht,hours:ht.hours-1,minutes:59,seconds:59}:ht.days>0?{...ht,days:ht.days-1,hours:23,minutes:59,seconds:59}:ht)},1e3);return()=>clearInterval(Ve)},[]);const ne=P_e({name:a,email:r,companyName:o}),ge=!ne.errors.email,me=!ne.errors.name,Ae=!ne.errors.companyName,Pe=(Ve,ht)=>`w-full px-4 py-3 bg-[#f5efdf] border-3 font-bold text-base focus:outline-none focus:ring-2 focus:ring-[#6e52b8] ${ht&&!Ve?"border-red-600 bg-red-50":ht&&Ve?"border-green-700 bg-green-50":"border-[#16233f]"}`,L=Ve=>{if(Ve.preventDefault(),x({name:!0,email:!0,companyName:!0}),!ne.isValid){y("ÙØ±Ø¬Ù Ø¥ÙÙ
Ø§Ù Ø§ÙØÙÙ٠اÙÙ
Ø·ÙÙØ¨Ø© Ø¨ØµÙØºØ© صØÙØØ© ÙØ¨Ù Ø§ÙØªØ³Ø¬ÙÙ.");return}y(""),Q.mutate({name:ne.values.name,email:ne.values.email,companyName:ne.values.companyName,roleTitle:c.trim()})},ke=typeof window<"u"?window.location.href:"https://jadwjad.com/teaser",Me="Ù
ÙØµØ© جد ÙØ¬Ø¯ â ØªØ¹ÙÙÙ
Ù
Ø¤Ø³Ø³Ù ØªÙØ§Ø¹ÙÙ ÙØ¨Ø¯Ø£ Ù
٠اÙÙØ¹Ø¨",Ze=async Ve=>{if(Ve==="copy"){try{await navigator.clipboard.writeText(ke),_(!0),W("تÙ
ÙØ³Ø® رابط ØµÙØØ© Ø§ÙØªØ´ÙÙÙ Ø¨ÙØ¬Ø§Ø"),window.setTimeout(()=>_(!1),2200)}catch{W("ÙÙ
ÙÙÙ ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø· Ù
Ù Ø´Ø±ÙØ· Ø§ÙØ¹ÙÙØ§Ù ÙÙ
Ø´Ø§Ø±ÙØªÙ Ù
ع ÙØ±ÙÙÙ")}return}const ht=encodeURIComponent(ke),pe=encodeURIComponent(Me),et=Ve==="linkedin"?`https://www.linkedin.com/sharing/share-offsite/?url=${ht}`:`https://www.facebook.com/sharer/sharer.php?u=${ht}"e=${pe}`;window.open(et,"_blank","noopener,noreferrer,width=640,height=640"),W("Ø´ÙØ±Ø§Ù ÙÙØ´Ø± Ø§ÙØÙ
ÙØ© Ù
ع Ø´Ø¨ÙØªÙ اÙÙ
ÙÙÙØ©")},Ce=["ÙÙ٠تختÙ٠اÙÙ
ÙØµØ© Ø¹Ù Ø§ÙØªØ¯Ø±Ùب Ø§ÙØªÙÙÙØ¯ÙØ","ÙÙ ÙÙ
ÙÙ ØªØ®ØµÙØµ اÙÙ
ØØªÙÙ ÙØ´Ø¹Ø§Ø± Ø§ÙØ´Ø±ÙØ©Ø","ÙÙ٠تعÙ
٠تجربة اÙÙ 30 ÙÙÙ
Ø§ÙØ"],Te=Ve=>{if(Ve.preventDefault(),!$.trim()||X.isPending)return;const ht=$;Z(""),Y(""),X.mutate({sessionId:ae,messageText:ht})},Ke=Ve=>{Ve.preventDefault(),D.trim()&&U.mutate({email:E,rating:N,feedbackText:D,category:S})};return s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:139",className:"min-h-screen bg-[#f5efdf] text-[#16233f] font-sans direction-rtl",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:141",className:"bg-[#16233f] text-[#f2c84b] py-3 px-4 text-center text-sm font-black tracking-wide border-b-4 border-[#16233f] flex items-center justify-center gap-2",children:[s.jsx(pn,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:142",className:"w-4 h-4 animate-bounce"}),s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:143",children:"ØÙ
ÙØ© Ø§ÙØªØ³Ø¬Ù٠اÙÙ
Ø¨ÙØ± ÙÙ
Ø¯ÙØ±Ù اÙÙ
ÙØ§Ø±Ø¯ Ø§ÙØ¨Ø´Ø±ÙØ© â Ø§ØØµÙ عÙ٠خصÙ
50% عÙ٠تجربة اÙÙ 30 ÙÙÙ
Ø§Ù Ø§ÙØ£ÙÙÙ"}),s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:144",onClick:()=>j(!0),className:"mr-4 bg-[#6e52b8] text-white px-3 py-1 text-xs font-bold border-2 border-[#16233f] shadow-[2px_2px_0px_#16233f] hover:translate-y-[-1px] transition-all",children:"Ø£Ø±ÙØ¯ تÙÙÙÙ
اÙÙ
ÙØµØ©"})]}),s.jsxs("header",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:153",className:"max-w-7xl mx-auto px-6 py-6 flex items-center justify-between border-b-4 border-[#16233f]",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:154",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:155",className:"w-12 h-12 bg-[#6e52b8] border-4 border-[#16233f] shadow-[3px_3px_0px_#16233f] flex items-center justify-center text-white font-black text-2xl",children:"جÙ"}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:158",children:[s.jsx("h1",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:159",className:"text-2xl font-black tracking-tight text-[#16233f]",children:"جد ÙØ¬Ø¯"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:160",className:"text-xs font-bold text-[#6e52b8]",children:"Ù
ÙØµØ© Ø§ÙØªØ¹ÙÙ
اÙÙ
Ø¤Ø³Ø³Ù Ø§ÙØªÙاعÙÙ"})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:163",className:"flex items-center gap-4",children:[s.jsx(jt,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:164",href:"/",children:s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:165",className:"cursor-pointer px-5 py-2.5 bg-white text-[#16233f] font-black border-3 border-[#16233f] shadow-[3px_3px_0px_#16233f] hover:translate-y-[-2px] transition-all inline-block",children:"Ø§ÙØ¯Ø®ÙÙ ÙÙÙ
ÙØµØ©"})}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:169",onClick:()=>K(!0),className:"px-5 py-2.5 bg-[#f2c84b] text-[#16233f] font-black border-3 border-[#16233f] shadow-[3px_3px_0px_#16233f] hover:translate-y-[-2px] transition-all flex items-center gap-2",children:[s.jsx(cy,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:173",className:"w-4 h-4"})," اÙÙ
ØØ§Ø¯Ø«Ø© اÙÙ
باشرة"]})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:179",className:"mx-auto grid max-w-7xl grid-cols-1 items-center gap-8 px-4 py-10 sm:gap-12 sm:px-6 sm:py-16 lg:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:180",children:[s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:181",className:"inline-block bg-[#f2c84b] border-3 border-[#16233f] px-4 py-1.5 font-black text-sm mb-6 shadow-[3px_3px_0px_#16233f] rotate-[-1deg]",children:"ð Ø§ÙØ·ÙØ§Ù Ø§ÙØ¥Ø·ÙØ§Ù Ø§ÙØ±Ø³Ù
Ù ÙØ±Ùبا٠ÙÙ Ø§ÙØ±Ùاض"}),s.jsxs("h2",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:184",className:"mb-6 text-4xl font-black leading-tight sm:text-5xl lg:text-6xl",children:["ØÙÙÙ ØªØ¯Ø±ÙØ¨ Ù
ÙØ¸ÙÙÙ Ù
Ù ",s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:185",className:"text-[#6e52b8] underline decoration-[#f2c84b] decoration-4",children:"عبء إدارÙ"})," Ø¥ÙÙ ",s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:185",className:"bg-[#f2c84b] px-2",children:"شغ٠ÙÙÙ
Ù"})]}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:187",className:"mb-8 text-lg font-bold leading-relaxed text-[#34405a] sm:text-xl",children:"«جد ÙØ¬Ø¯Â» تجÙ
ع بÙÙ ØªØØ¯Ùات اÙÙ 30 ÙÙÙ
Ø§ÙØ اÙÙ
Ø³Ø§Ø¨ÙØ§Øª Ø§ÙØÙØ©Ø ÙÙÙØØ© إدارة اÙÙ
ÙØ§Ø±Ø¯ Ø§ÙØ¨Ø´Ø±ÙØ© اÙÙ
ØªÙØ¯Ù
Ø© ÙØ¶Ù
ا٠أعÙÙ Ù
Ø¹Ø¯ÙØ§Øª ØªÙØ§Ø¹Ù ÙØ¥ÙÙ
ا٠ÙÙ Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù."}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:192",className:"mb-8 border-4 border-[#16233f] bg-white p-4 shadow-[6px_6px_0px_#16233f] sm:p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:193",className:"text-sm font-black text-[#6e52b8] mb-3 flex items-center gap-2",children:[s.jsx(xi,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:194",className:"w-5 h-5 animate-spin"})," Ø§ÙØ¹Ø¯ Ø§ÙØªÙازÙÙ ÙÙØ¥Ø·ÙØ§Ù Ø§ÙØ±Ø³Ù
Ù:"]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:196",className:"grid grid-cols-2 gap-3 text-center sm:grid-cols-4 sm:gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:197",className:"border-3 border-[#16233f] bg-[#f5efdf] p-2 sm:p-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:198",className:"block text-2xl font-black text-[#16233f] sm:text-3xl",children:e.days}),s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:199",className:"text-xs font-bold text-[#596477]",children:"ÙÙÙ
اÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:201",className:"border-3 border-[#16233f] bg-[#f5efdf] p-2 sm:p-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:202",className:"block text-2xl font-black text-[#16233f] sm:text-3xl",children:e.hours}),s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:203",className:"text-xs font-bold text-[#596477]",children:"ساعة"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:205",className:"border-3 border-[#16233f] bg-[#f5efdf] p-2 sm:p-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:206",className:"block text-2xl font-black text-[#16233f] sm:text-3xl",children:e.minutes}),s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:207",className:"text-xs font-bold text-[#596477]",children:"دÙÙÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:209",className:"border-3 border-[#16233f] bg-[#f5efdf] p-2 sm:p-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:210",className:"block text-2xl font-black text-[#16233f] sm:text-3xl",children:e.seconds}),s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:211",className:"text-xs font-bold text-[#596477]",children:"ثاÙÙØ©"})]})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:218",className:"relative border-4 border-[#16233f] bg-white p-5 shadow-[8px_8px_0px_#16233f] sm:p-8",children:[s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:219",className:"absolute -top-5 right-6 bg-[#6e52b8] text-white px-4 py-1.5 font-black text-sm border-3 border-[#16233f]",children:"Ø³Ø¬Ù Ø§ÙØ¢Ù Ù
Ø¬Ø§ÙØ§Ù"}),s.jsx("h3",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:222",className:"text-2xl font-black mb-3",children:"Ø§ØØ¬Ø² Ù
ÙØ¹Ø¯ Ø´Ø±ÙØªÙ Ù٠اÙÙØ§Ø¦Ù
Ø© Ø§ÙØ°ÙØ¨ÙØ©"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:223",className:"text-sm font-bold text-[#596477] mb-6",children:"Ø§ÙØ¶Ù
Ø¥ÙÙ Ø£ÙØ«Ø± Ù
Ù 40 Ø´Ø±ÙØ© ØªÙØªØ¸Ø± Ø¥Ø·ÙØ§Ù اÙÙØ³Ø®Ø© اÙÙ
Ø¤Ø³Ø³ÙØ© اÙÙØ§Ù
ÙØ© Ù
ع Ø£ÙÙÙÙØ© Ø§ÙØØµÙ٠عÙÙ Ø§ÙØ¹Ø±Ø¶ Ø§ÙØªØ¬Ø±Ùب٠اÙÙ
جاÙÙ."}),m?s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:228",className:"animate-pulse bg-[#f2c84b]/20 border-3 border-[#16233f] p-6 text-center shadow-[4px_4px_0px_#16233f]",children:[s.jsx(cr,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:229",className:"mx-auto mb-3 h-12 w-12 animate-bounce text-[#6e52b8]"}),s.jsx("h4",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:230",className:"text-xl font-black text-[#16233f] mb-2",children:"تÙ
تسجÙÙ Ø¨Ø±ÙØ¯Ù Ø¨ÙØ¬Ø§Ø!"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:231",className:"text-sm font-bold text-[#34405a]",children:"ÙØÙ Ø³Ø¹ÙØ¯ÙÙ Ø¨Ø§ÙØ¶Ù
اÙ
Ù. سÙÙÙÙ
Ø¨Ø¥Ø±Ø³Ø§Ù Ø¯Ø¹ÙØ© خاصة ÙÙ ÙÙØ± Ø¥Ø·ÙØ§Ù اÙÙØ³Ø®Ø© Ø§ÙØªØ¬Ø±ÙØ¨ÙØ© Ù
ع خصÙ
50%."}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:234",className:"mt-5 border-t-2 border-[#16233f]/20 pt-4",children:[s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:235",className:"mb-3 text-xs font-black text-[#34405a]",children:"ساعد زÙ
ÙØ§Ø¡Ù عÙÙ Ø§ÙØªØ´Ø§Ù تجربة Ø§ÙØªØ¹ÙÙ
Ø§ÙØªÙاعÙÙ"}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:236",className:"flex flex-wrap justify-center gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:237",type:"button","aria-label":"Ù
Ø´Ø§Ø±ÙØ© ØµÙØØ© Ø§ÙØªØ´ÙÙ٠عÙÙ LinkedIn",onClick:()=>Ze("linkedin"),className:"group flex items-center gap-2 border-2 border-[#16233f] bg-[#0a66c2] px-3 py-2 text-xs font-black text-white shadow-[2px_2px_0px_#16233f] transition-all duration-200 ease-out hover:-translate-y-1 hover:scale-[1.03] hover:shadow-[5px_5px_0px_#16233f] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#f2c84b] active:translate-y-0 active:scale-[0.98]",children:[s.jsx(Spe,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:238",className:"h-4 w-4 transition-transform duration-200 group-hover:rotate-6 group-hover:scale-110"})," LinkedIn"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:240",type:"button","aria-label":"Ù
Ø´Ø§Ø±ÙØ© ØµÙØØ© Ø§ÙØªØ´ÙÙ٠عÙÙ Facebook",onClick:()=>Ze("facebook"),className:"group flex items-center gap-2 border-2 border-[#16233f] bg-[#1877f2] px-3 py-2 text-xs font-black text-white shadow-[2px_2px_0px_#16233f] transition-all duration-200 ease-out hover:-translate-y-1 hover:scale-[1.03] hover:shadow-[5px_5px_0px_#16233f] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#f2c84b] active:translate-y-0 active:scale-[0.98]",children:[s.jsx(gpe,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:241",className:"h-4 w-4 transition-transform duration-200 group-hover:-rotate-6 group-hover:scale-110"})," Facebook"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:243",type:"button","aria-label":"ÙØ³Ø® رابط ØµÙØØ© Ø§ÙØªØ´ÙÙÙ",onClick:()=>
1115Ze("copy"),className:"group flex items-center gap-2 border-2 border-[#16233f] bg-white px-3 py-2 text-xs font-black shadow-[2px_2px_0px_#16233f] transition-all duration-200 ease-out hover:-translate-y-1 hover:scale-[1.03] hover:bg-[#f2c84b] hover:shadow-[5px_5px_0px_#16233f] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#6e52b8] active:translate-y-0 active:scale-[0.98]",children:[H?s.jsx(Ir,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:244",className:"h-4 w-4 text-green-700 transition-transform duration-200 group-hover:scale-110"}):s.jsx(o2,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:244",className:"h-4 w-4 transition-transform duration-200 group-hover:rotate-12 group-hover:scale-110"})," ",H?"تÙ
اÙÙØ³Ø®":"ÙØ³Ø® Ø§ÙØ±Ø§Ø¨Ø·"]})]}),V&&s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:247",role:"status",className:"mt-3 text-xs font-black text-[#6e52b8]",children:V})]})]}):s.jsxs("form",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:251",onSubmit:L,className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:252",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:253",className:"block text-sm font-black mb-2",children:"Ø§ÙØ§Ø³Ù
:"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:254",type:"text",placeholder:"Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù",value:a,onChange:Ve=>{n(Ve.target.value),x(ht=>({...ht,name:!0}))},className:Pe(me,h.name),autoComplete:"name",required:!0,"aria-invalid":h.name&&!me,"aria-describedby":"registration-name-hint"}),h.name&&s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:265",id:"registration-name-hint",className:`mt-1 text-xs font-black ${me?"text-green-700":"text-red-600"}`,children:me?"Ø§ÙØ§Ø³Ù
Ø¬Ø§ÙØ² ÙÙØªØ³Ø¬ÙÙ":"Ø§ÙØªØ¨ Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù (ØØ±Ùا٠عÙÙ Ø§ÙØ£ÙÙ)."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:267",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:268",className:"block text-sm font-black mb-2",children:"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙ٠اÙÙ
ÙÙÙ:"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:269",type:"email",placeholder:"[email protected]",value:r,onChange:Ve=>{i(Ve.target.value),x(ht=>({...ht,email:!0}))},className:Pe(ge,h.email),required:!0,"aria-invalid":h.email&&!ge,"aria-describedby":"registration-email-hint"}),h.email&&s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:279",id:"registration-email-hint",className:`mt-1 text-xs font-black ${ge?"text-green-700":"text-red-600"}`,children:ge?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ ØµØ§ÙØ":"Ø£Ø¯Ø®Ù Ø¨Ø±ÙØ¯Ø§Ù Ù
ÙÙÙØ§Ù Ù
ث٠[email protected]."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:281",className:"grid grid-cols-2 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:282",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:283",className:"block text-xs font-black mb-1",children:"اسÙ
اÙÙ
ÙØ´Ø£Ø©:"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:284",type:"text",placeholder:"Ø´Ø±ÙØ© Ø§ÙØ£ÙÙ",value:o,onChange:Ve=>{l(Ve.target.value),x(ht=>({...ht,companyName:!0}))},className:`w-full px-3 py-2 bg-[#f5efdf] border-2 font-bold text-sm focus:outline-none focus:ring-2 focus:ring-[#6e52b8] ${h.companyName&&!Ae?"border-red-600 bg-red-50":h.companyName&&Ae?"border-green-700 bg-green-50":"border-[#16233f]"}`,required:!0,"aria-invalid":h.companyName&&!Ae,"aria-describedby":"registration-company-hint"}),h.companyName&&s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:294",id:"registration-company-hint",className:`mt-1 text-[11px] font-black ${Ae?"text-green-700":"text-red-600"}`,children:Ae?"اسÙ
اÙÙ
ÙØ´Ø£Ø© Ø¬Ø§ÙØ²":"أدخ٠اسÙ
اÙÙ
ÙØ´Ø£Ø© (ØØ±Ùا٠عÙÙ Ø§ÙØ£ÙÙ)."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:296",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:297",className:"block text-xs font-black mb-1",children:"اÙÙ
سÙ
٠اÙÙØ¸ÙÙÙ:"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:298",type:"text",placeholder:"Ù
Ø¯ÙØ± اÙÙ
ÙØ§Ø±Ø¯ Ø§ÙØ¨Ø´Ø±ÙØ©",value:c,onChange:Ve=>d(Ve.target.value),className:"w-full px-3 py-2 bg-[#f5efdf] border-2 border-[#16233f] font-bold text-sm"})]})]}),b&&s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:307",className:"text-red-600 text-xs font-bold",children:b}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:308",type:"submit",disabled:Q.isPending,className:"w-full py-4 bg-[#6e52b8] text-white font-black text-lg border-3 border-[#16233f] shadow-[4px_4px_0px_#16233f] hover:translate-y-[-2px] transition-all flex items-center justify-center gap-2",children:[s.jsx(Rpe,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:313",className:"w-5 h-5"})," ",Q.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØªØ³Ø¬ÙÙ...":"Ø§ØØ¬Ø² Ù
ÙØ§ÙÙ Ù٠اÙÙØ§Ø¦Ù
Ø© Ø§ÙØ°ÙØ¨ÙØ©"]}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:315",className:"text-xs text-center font-bold text-[#596477] mt-3",children:"ð Ø¨ÙØ§Ùات٠Ù
ØÙ
ÙØ© تÙ
اÙ
ا٠ÙÙØ§ ÙØªÙ
Ù
Ø´Ø§Ø±ÙØªÙا بأ٠شÙ٠تجارÙ."})]})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:324",className:"max-w-5xl mx-auto px-6 py-16 border-t-4 border-[#16233f]",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:325",className:"text-center mb-12",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:326",className:"bg-[#f2c84b] border-2 border-[#16233f] px-4 py-1 font-black text-xs shadow-[2px_2px_0px_#16233f]",children:"Ø§ÙØ§Ø³ØªÙسارات اÙÙ
ØªÙØ±Ø±Ø©"}),s.jsx("h3",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:327",className:"text-3xl font-black mt-3",children:"ÙÙ Ù
ا ØªØØªØ§Ø¬ Ù
Ø¹Ø±ÙØªÙ ع٠«جد ÙØ¬Ø¯Â»"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:330",className:"space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:331",className:"bg-white border-3 border-[#16233f] p-6 shadow-[4px_4px_0px_#16233f]",children:[s.jsxs("h4",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:332",className:"text-lg font-black text-[#16233f] mb-2 flex items-center gap-2",children:[s.jsx(pk,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:333",className:"w-5 h-5 text-[#6e52b8]"})," ÙÙ٠تختÙ٠«جد ÙØ¬Ø¯Â» ع٠Ù
ÙØµØ§Øª Ø§ÙØªØ¯Ø±Ùب Ø§ÙØªÙÙÙØ¯ÙØ©Ø"]}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:335",className:"text-sm font-bold text-[#34405a] leading-relaxed",children:"ÙØÙ ÙØ§ ÙÙØ¯Ù
Ù
ÙØ§Ø·Ø¹ ÙÙØ¯ÙÙ Ø·ÙÙÙØ© Ù
Ù
ÙØ©Ø Ø¨Ù ÙØ¹ØªÙ
د عÙÙ Ø§ÙØªÙØ¹ÙØ¨ (Gamification)Ø Ø§ÙØªØØ¯Ùات اÙÙÙÙ
ÙØ© اÙÙØµÙرة عÙ٠اÙÙØ§ØªÙØ ÙØ§ÙÙ
Ø³Ø§Ø¨ÙØ§Øª Ø§ÙØÙØ© بÙÙ Ø§ÙØ£ÙساÙ
Ø Ù
Ù
ا ÙØ±Ùع Ù
Ø¹Ø¯ÙØ§Øª Ø§ÙØ¥ÙÙ
ا٠إÙÙ Ø£ÙØ«Ø± Ù
Ù 85%."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:340",className:"bg-white border-3 border-[#16233f] p-6 shadow-[4px_4px_0px_#16233f]",children:[s.jsxs("h4",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:341",className:"text-lg font-black text-[#16233f] mb-2 flex items-center gap-2",children:[s.jsx(pk,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:342",className:"w-5 h-5 text-[#6e52b8]"})," Ù٠تدعÙ
اÙÙ
ÙØµØ© ØªØ®ØµÙØµ اÙÙ
ØØªÙÙ ÙØ´Ø¹Ø§Ø± Ø§ÙØ´Ø±ÙØ©Ø"]}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:344",className:"text-sm font-bold text-[#34405a] leading-relaxed",children:"ÙØ¹Ù
باÙÙØ§Ù
Ù! ØªØªÙØ Ø¨Ø§ÙØ§Øª اÙÙ
ؤسسات ØªØ®ØµÙØµ اÙÙÙÙØ© Ø§ÙØ¨ØµØ±ÙØ©Ø Ø±ÙØ¹ اÙÙ
ØØªÙÙ Ø§ÙØ¯Ø§Ø®ÙÙ Ø§ÙØ®Ø§Øµ Ø¨Ø´Ø±ÙØªÙÙ
Ø ÙØ±Ø¨Ø·Ù بÙ
سارات Ø§ÙØªØ¹ÙÙ
Ø§ÙØ±Ø³Ù
ÙØ© ÙÙÙ
ÙØ¸ÙÙÙ."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:349",className:"bg-white border-3 border-[#16233f] p-6 shadow-[4px_4px_0px_#16233f]",children:[s.jsxs("h4",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:350",className:"text-lg font-black text-[#16233f] mb-2 flex items-center gap-2",children:[s.jsx(pk,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:351",className:"w-5 h-5 text-[#6e52b8]"})," ÙÙ٠تتÙ
تجربة اÙÙ 30 ÙÙÙ
ا٠ÙÙÙ
ؤسساتØ"]}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:353",className:"text-sm font-bold text-[#34405a] leading-relaxed",children:"ÙØ®ØµØµ ÙØ±ÙÙ ÙØ¬Ø§Ø Ø§ÙØ¹Ù
ÙØ§Ø¡ ÙØ¥Ø·ÙØ§Ù ØªØØ¯Ù ØªØ¬Ø±ÙØ¨Ù ÙÙØ³Ù
ÙØ§ØØ¯ (ØØªÙ 50 Ù
ÙØ¸ÙاÙ) ÙÙ
دة 30 ÙÙÙ
Ø§ÙØ Ù
ع إصدار ØªÙØ±Ùر أثر ØªÙØµÙÙÙ ÙÙ
Ø¯ÙØ± اÙÙ
ÙØ§Ø±Ø¯ Ø§ÙØ¨Ø´Ø±ÙØ© ÙØ¨Ù اتخاذ ÙØ±Ø§Ø± Ø§ÙØ§Ø´ØªØ±Ø§Ù Ø§ÙØ³ÙÙÙ."})]})]})]}),w&&s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:362",className:"fixed inset-0 bg-black/60 z-50 flex items-center justify-center p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:363",className:"bg-white border-4 border-[#16233f] p-8 max-w-lg w-full shadow-[10px_10px_0px_#16233f] relative",children:[s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:364",onClick:()=>j(!1),className:"absolute top-4 left-4 w-8 h-8 bg-red-100 border-2 border-[#16233f] flex items-center justify-center font-black text-red-600 hover:bg-red-200",children:s.jsx(Zn,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:368",className:"w-5 h-5"})}),s.jsx("h3",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:371",className:"text-2xl font-black mb-2",children:"رأÙÙ ÙÙÙ
ÙØ§ Ù٠تطÙÙØ± «جد ÙØ¬Ø¯Â»"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:372",className:"text-xs font-bold text-[#596477] mb-6",children:"Ø³Ø§Ø¹Ø¯ÙØ§ ÙÙ ØªØØ³Ù٠تجربة اÙÙ
ÙØµØ© ÙÙ
Ø´Ø§Ø±ÙØ© Ù
ÙØ§ØØ¸Ø§ØªÙ اÙÙÙÙ
Ø© ÙÙ
ستخدÙ
Ø£ÙÙ."}),F?s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:377",className:"bg-[#f2c84b]/20 border-3 border-[#16233f] p-6 text-center",children:[s.jsx(cr,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:378",className:"w-10 h-10 text-[#6e52b8] mx-auto mb-2"}),s.jsx("h4",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:379",className:"font-black text-lg",children:"Ø´ÙØ±Ø§Ù ÙÙ! تÙ
Ø§Ø³ØªÙØ§Ù
تÙÙÙÙ
Ù ÙÙ
ÙØ§ØØ¸Ø§ØªÙ Ø¨ÙØ¬Ø§Ø."})]}):s.jsxs("form",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:382",onSubmit:Ke,className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:383",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:384",className:"block text-sm font-black mb-2",children:"Ø§ÙØªÙÙÙÙ
Ø§ÙØ¹Ø§Ù
ÙÙÙ
ÙØµØ©:"}),s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:385",className:"flex gap-2",children:[1,2,3,4,5].map(Ve=>s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:387",type:"button",onClick:()=>k(Ve),className:`p-2 border-2 border-[#16233f] ${N>=Ve?"bg-[#f2c84b]":"bg-gray-100"}`,children:s.jsx(Sn,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:393",className:"w-6 h-6 fill-current text-[#16233f]"})},Ve))})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:399",className:"grid gap-3 sm:grid-cols-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:400",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:401",className:"block text-xs font-black mb-2",children:"Ø¨Ø±ÙØ¯Ù Ø§ÙØ¥ÙÙØªØ±ÙÙÙ (Ø§Ø®ØªÙØ§Ø±Ù):"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:402",type:"email",value:E,onChange:Ve=>R(Ve.target.value),placeholder:"[email protected]",className:"w-full border-3 border-[#16233f] bg-[#f5efdf] p-3 text-sm font-bold outline-none"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:410",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:411",className:"block text-xs font-black mb-2",children:"تصÙÙ٠اÙÙ
ÙØ§ØØ¸Ø©:"}),s.jsxs("select",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:412",value:S,onChange:Ve=>A(Ve.target.value),className:"w-full border-3 border-[#16233f] bg-[#f5efdf] p-3 text-sm font-bold outline-none",children:[s.jsx("option",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:413",value:"general",children:"عاÙ
"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:414",value:"ux",children:"تجربة اÙÙ
ستخدÙ
"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:415",value:"games",children:"Ø§ÙØ£Ùعاب ÙØ§ÙÙ
Ø³Ø§Ø¨ÙØ§Øª"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:416",value:"content",children:"اÙÙ
ØØªÙÙ"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:417",value:"enterprise",children:"تجربة اÙÙ
ؤسسات"})]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:422",children:[s.jsx("label",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:423",className:"block text-sm font-black mb-2",children:"Ù
ÙØ§ØØ¸Ø§ØªÙ Ø£Ù Ù
ÙØªØ±ØØ§ØªÙ ÙÙØªØØ³ÙÙ:"}),s.jsx("textarea",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:424",rows:4,placeholder:"Ø§ÙØªØ¨ Ø§ÙØªØ±Ø§ØØ§ØªÙ ÙØªØ·ÙÙØ± اÙÙ
Ø³Ø§Ø¨ÙØ§ØªØ ÙÙØØ© Ø§ÙØªØÙÙ
Ø Ø£Ù Ø§ÙØªØØ¯Ùات...",value:D,onChange:Ve=>C(Ve.target.value),className:"w-full p-3 bg-[#f5efdf] border-3 border-[#16233f] font-bold text-sm focus:outline-none",required:!0})]}),s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:434",type:"submit",disabled:U.isPending,className:"w-full py-3 bg-[#6e52b8] text-white font-black border-3 border-[#16233f] shadow-[3px_3px_0px_#16233f] disabled:cursor-wait disabled:opacity-60",children:U.isPending?"جار٠إرسا٠اÙÙ
ÙØ§ØØ¸Ø§Øª...":"إرسا٠اÙÙ
ÙØ§ØØ¸Ø§Øª"})]})]})}),B&&s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:449",className:"fixed bottom-6 left-4 z-50 flex h-[min(560px,calc(100vh-2rem))] w-[calc(100vw-2rem)] max-w-sm flex-col border-4 border-[#16233f] bg-white shadow-[8px_8px_0px_#16233f] sm:left-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:450",className:"bg-[#16233f] text-[#f5efdf] p-4 flex items-center justify-between border-b-4 border-[#16233f]",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:451",className:"flex items-center gap-2",children:[s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:452",className:"w-3 h-3 bg-green-400 rounded-full animate-ping"}),s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:453",className:"font-black text-sm",children:"Ù
ساعد «جد ÙØ¬Ø¯Â» Ø§ÙØ°ÙÙ"})]}),s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:455",onClick:()=>K(!1),className:"text-[#f5efdf] hover:text-[#f2c84b] font-black",children:s.jsx(Zn,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:459",className:"w-5 h-5"})})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:463","aria-live":"polite",className:"flex-1 space-y-3 overflow-y-auto bg-[#f5efdf]/50 p-4 text-sm",children:[s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:464",className:"flex justify-end",children:s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:465",className:"max-w-[85%] border-2 border-[#16233f] bg-white p-3 font-bold text-[#16233f] shadow-[2px_2px_0px_#16233f]",children:"Ø£ÙÙØ§Ù ب٠ÙÙ Ù
ÙØµØ© «جد ÙØ¬Ø¯Â»! Ø£ÙØ§ Ù
ساعد ذÙÙ Ø£Ø¬ÙØ¨Ù ÙÙØ±Ø§Ù Ù
Ù Ø§ÙØ£Ø³Ø¦ÙØ© Ø§ÙØ´Ø§Ø¦Ø¹Ø© ØÙ٠اÙÙ
ÙØµØ© ÙØ§Ùتجربة اÙÙ
Ø¤Ø³Ø³ÙØ©."})}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:469",className:"space-y-2 border-y-2 border-[#16233f]/20 py-3",children:[s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:470",className:"text-[11px] font-black text-[#596477]",children:"Ø£Ø³Ø¦ÙØ© Ø³Ø±ÙØ¹Ø©:"}),s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:471",className:"flex flex-wrap gap-2",children:Ce.map(Ve=>s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:473",type:"button",disabled:X.isPending,onClick:()=>X.mutate({sessionId:ae,messageText:Ve}),className:"border-2 border-[#16233f] bg-white px-2 py-1 text-right text-[11px] font-black transition-color
1115s hover:bg-[#f2c84b] disabled:opacity-50",children:Ve},Ve))})]}),oe.error&&s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:477",role:"alert",className:"border-2 border-red-700 bg-red-50 p-3 text-xs font-black text-red-700",children:"تعذر تØÙ
Ù٠سج٠اÙÙ
ØØ§Ø¯Ø«Ø©. ÙÙ
ÙÙ٠إعادة اÙÙ
ØØ§ÙÙØ© بعد ÙØØ¸Ø§Øª."}),O&&s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:478",role:"alert",className:"border-2 border-red-700 bg-red-50 p-3 text-xs font-black text-red-700",children:O}),oe.data?.map(Ve=>s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:480",className:`flex ${Ve.sender==="user"?"justify-start":"justify-end"}`,children:s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:481",className:`max-w-[80%] p-3 border-2 border-[#16233f] font-bold ${Ve.sender==="user"?"bg-[#6e52b8] text-white shadow-[2px_2px_0px_#16233f]":"bg-white text-[#16233f] shadow-[2px_2px_0px_#16233f]"}`,children:Ve.messageText})},Ve.id)),X.isPending&&s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:487",className:"flex justify-end",children:s.jsx("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:487",className:"border-2 border-[#16233f] bg-white p-3 text-xs font-black shadow-[2px_2px_0px_#16233f]",children:s.jsxs("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:487",className:"inline-flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:487",className:"h-2 w-2 animate-ping rounded-full bg-[#6e52b8]"})," ÙÙØªØ¨ اÙÙ
ساعد Ø§ÙØ°ÙÙ..."]})})})]}),s.jsxs("form",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:491",onSubmit:Te,className:"p-3 bg-white border-t-4 border-[#16233f] flex gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:492",type:"text",placeholder:"Ø§ÙØªØ¨ Ø§Ø³ØªÙØ³Ø§Ø±Ù ÙÙØ§...",value:$,onChange:Ve=>Z(Ve.target.value),className:"flex-1 p-2 bg-[#f5efdf] border-2 border-[#16233f] text-xs font-bold focus:outline-none"}),s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:499",type:"submit",disabled:X.isPending,className:"px-4 bg-[#f2c84b] text-[#16233f] border-2 border-[#16233f] font-black text-xs shadow-[2px_2px_0px_#16233f]",children:s.jsx(p2,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:504",className:"w-4 h-4"})})]})]}),!B&&s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:512",onClick:()=>K(!0),className:"fixed bottom-6 left-6 w-14 h-14 bg-[#f2c84b] text-[#16233f] border-4 border-[#16233f] shadow-[4px_4px_0px_#16233f] rounded-full flex items-center justify-center font-black hover:scale-105 transition-all z-40",title:"ÙØªØ اÙÙ
ØØ§Ø¯Ø«Ø© اÙÙ
باشرة",children:s.jsx(cy,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:517",className:"w-6 h-6"})}),s.jsx("footer",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:522",id:"faq",className:"bg-[#16233f] text-[#f5efdf] py-12 px-6 border-t-4 border-[#16233f] mt-20",children:s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:523",className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:524",children:[s.jsx("h4",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:525",className:"text-xl font-black mb-2",children:"Ù
ÙØµØ© «جد ÙØ¬Ø¯Â» (Jadwjad.com)"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:526",className:"text-xs font-bold text-gray-400",children:"اÙÙ
ÙØµØ© Ø§ÙØ£ØØ¯Ø« ÙÙØªØ¹ÙÙ
Ø§ÙØªÙاعÙÙ ÙØ§ÙØªÙØ¹Ùب اÙÙ
ؤسس٠Ù٠اÙÙ
Ù
ÙÙØ© Ø§ÙØ¹Ø±Ø¨ÙØ© Ø§ÙØ³Ø¹ÙØ¯ÙØ©."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:528",className:"flex items-center gap-6 text-sm font-bold",children:[s.jsx(jt,{"data-loc":"client/src/pages/TeaserLandingPage.tsx:529",href:"/",children:s.jsx("span",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:529",className:"cursor-pointer hover:text-[#f2c84b]",children:"Ø§ÙØ±Ø¦ÙØ³ÙØ©"})}),s.jsx("button",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:530",onClick:()=>j(!0),className:"hover:text-[#f2c84b]",children:"ÙÙÙ
اÙÙ
ÙØµØ©"}),s.jsx("a",{"data-loc":"client/src/pages/TeaserLandingPage.tsx:531",href:"#faq",className:"hover:text-[#f2c84b]",children:"Ø§ÙØ£Ø³Ø¦ÙØ© Ø§ÙØ´Ø§Ø¦Ø¹Ø©"})]})]})})]})}function k_e(){return AW.useSyncExternalStore(N_e,()=>!0,()=>!1)}function N_e(){return()=>{}}var H8="Avatar",[A_e]=Pi(H8),[S_e,vte]=A_e(H8),yte=P.forwardRef((e,t)=>
vendor: 4,210 bytes, line 1115
1115{const{__scopeAvatar:a,...n}=e,[r,i]=P.useState("idle");return s.jsx(S_e,{scope:a,imageLoadingStatus:r,onImageLoadingStatusChange:i,children:s.jsx(Zt.span,{...n,ref:t})})});yte.displayName=H8;var wte="AvatarImage",C_e=P.forwardRef((e,t)=>{const{__scopeAvatar:a,src:n,onLoadingStatusChange:r=()=>{},...i}=e,o=vte(wte,a),l=T_e(n,i),c=$i(d=>{r(d),o.onImageLoadingStatusChange(d)});return os(()=>{l!=="idle"&&c(l)},[l,c]),l==="loaded"?s.jsx(Zt.img,{...i,ref:t,src:n}):null});C_e.displayName=wte;var Pte="AvatarFallback",jte=P.forwardRef((e,t)=>{const{__scopeAvatar:a,delayMs:n,...r}=e,i=vte(Pte,a),[o,l]=P.useState(n===void 0);return P.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>l(!0),n);return()=>window.clearTimeout(c)}},[n]),o&&i.imageLoadingStatus!=="loaded"?s.jsx(Zt.span,{...r,ref:t}):null});jte.displayName=Pte;function dU(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function T_e(e,{referrerPolicy:t,crossOrigin:a}){const n=k_e(),r=P.useRef(null),i=n?(r.current||(r.current=new window.Image),r.current):null,[o,l]=P.useState(()=>dU(i,e));return os(()=>{l(dU(i,e))},[i,e]),os(()=>{const c=f=>()=>{l(f)};if(!i)return;const d=c("loaded"),m=c("error");return i.addEventListener("load",d),i.addEventListener("error",m),t&&(i.referrerPolicy=t),typeof a=="string"&&(i.crossOrigin=a),()=>{i.removeEventListener("load",d),i.removeEventListener("error",m)}},[i,a,t]),o}var D_e=yte,E_e=jte;function M_e({className:e,...t}){return s.jsx(D_e,{"data-loc":"client/src/components/ui/avatar.tsx:11","data-slot":"avatar",className:zt("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function O_e({className:e,...t}){return s.jsx(E_e,{"data-loc":"client/src/components/ui/avatar.tsx:40","data-slot":"avatar-fallback",className:zt("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}var MT=["Enter"," "],R_e=["ArrowDown","PageUp","Home"],kte=["ArrowUp","PageDown","End"],z_e=[...R_e,...kte],__e={ltr:[...MT,"ArrowRight"],rtl:[...MT,"ArrowLeft"]},I_e={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pb="Menu",[Dx,L_e,F_e]=E8(pb),[Iu,Nte]=Pi(pb,[F_e,af,gw]),yw=af(),Ate=gw(),[B_e,Lu]=Iu(pb),[G_e,mb]=Iu(pb),Ste=e=>{const{__scopeMenu:t,open:a=!1,children:n,dir:r,onOpenChange:i,modal:o=!0}=e,l=yw(t),[c,d]=P.useState(null),m=P.useRef(!1),f=$i(i),h=cw(r);return P.useEffect(()=>{const x=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),s.jsx(c6,{...l,children:s.jsx(B_e,{scope:t,open:a,onOpenChange:f,content:c,onContentChange:d,children:s.jsx(G_e,{scope:t,onClose:P.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:m,dir:h,modal:o,children:n})})})};Ste.displayName=pb;var H_e="MenuAnchor",q8=P.forwardRef((e,t)=>{const{__scopeMenu:a,...n}=e,r=yw(a);return s.jsx(d6,{...r,...n,ref:t})});q8.displayName=H_e;var U8="MenuPortal",[q_e,Cte]=Iu(U8,{forceMount:void 0}),Tte=e=>{const{__scopeMenu:t,forceMount:a,children:n,container:r}=e,i=Lu(U8,t);return s.jsx(q_e,{scope:t,forceMount:a,children:s.jsx(eo,{present:a||i.open,children:s.jsx(Vx,{asChild:!0,container:r,children:n})})})};Tte.displayName=U8;var gi="MenuContent",[U_e,V8]=Iu(gi),Dte=P.forwardRef((e,t)=>{const a=Cte(gi,e.__scopeMenu),{forceMount:n=a.forceMount,...r}=e,i=Lu(gi,e.__scopeMenu),o=mb(gi,e.__scopeMenu);return s.jsx(Dx.Provider,{scope:e.__scopeMenu,children:s.jsx(eo,{present:n||i.open,children:s.jsx(Dx.Slot,{scope:e.__scopeMenu,children:o.modal?s.jsx(V_e,{...r,ref:t}):s.jsx(Q_e,{...r,ref:t})})})})}),V_e=P.forwardRef((e,t)=>{const a=Lu(gi,e.__scopeMenu),n=P.useRef(null),r=Va(t,n);return P.useEffect(()=>{const i=n.current;if(i)return R6(i)},[]),s.jsx(Q8,{...e,ref:r,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:Nt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),Q_e=P.forwardRef((e,t)=>
vendor: 19,199 bytes, line 1115
1115{const a=Lu(gi,e.__scopeMenu);return s.jsx(Q8,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),W_e=pu("MenuContent.ScrollLock"),Q8=P.forwardRef((e,t)=>{const{__scopeMenu:a,loop:n=!1,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:f,onInteractOutside:h,onDismiss:x,disableOutsideScroll:b,...y}=e,w=Lu(gi,a),j=mb(gi,a),N=yw(a),k=Ate(a),D=L_e(a),[C,S]=P.useState(null),A=P.useRef(null),E=Va(t,A,w.onContentChange),R=P.useRef(0),F=P.useRef(""),I=P.useRef(0),H=P.useRef(null),_=P.useRef("right"),V=P.useRef(0),W=b?x2:P.Fragment,B=b?{as:W_e,allowPinchZoom:!0}:void 0,K=$=>{const Z=F.current+$,O=D().filter(ne=>!ne.disabled),Y=document.activeElement,Q=O.find(ne=>ne.ref.current===Y)?.textValue,U=O.map(ne=>ne.textValue),oe=r9e(U,Z,Q),X=O.find(ne=>ne.textValue===oe)?.ref.current;(function ne(ge){F.current=ge,window.clearTimeout(R.current),ge!==""&&(R.current=window.setTimeout(()=>ne(""),1e3))})(Z),X&&setTimeout(()=>X.focus())};P.useEffect(()=>()=>window.clearTimeout(R.current),[]),O6();const ae=P.useCallback($=>_.current===H.current?.side&&o9e($,H.current?.area),[]);return s.jsx(U_e,{scope:a,searchRef:F,onItemEnter:P.useCallback($=>{ae($)&&$.preventDefault()},[ae]),onItemLeave:P.useCallback($=>{ae($)||(A.current?.focus(),S(null))},[ae]),onTriggerLeave:P.useCallback($=>{ae($)&&$.preventDefault()},[ae]),pointerGraceTimerRef:I,onPointerGraceIntentChange:P.useCallback($=>{H.current=$},[]),children:s.jsx(W,{...B,children:s.jsx(h2,{asChild:!0,trapped:r,onMountAutoFocus:Nt(i,$=>{$.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:s.jsx(qx,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:f,onInteractOutside:h,onDismiss:x,children:s.jsx(nte,{asChild:!0,...k,dir:j.dir,orientation:"vertical",loop:n,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:Nt(c,$=>{j.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(u6,{role:"menu","aria-orientation":"vertical","data-state":Qte(w.open),"data-radix-menu-content":"",dir:j.dir,...N,...y,ref:E,style:{outline:"none",...y.style},onKeyDown:Nt(y.onKeyDown,$=>{const O=$.target.closest("[data-radix-menu-content]")===$.currentTarget,Y=$.ctrlKey||$.altKey||$.metaKey,Q=$.key.length===1;O&&($.key==="Tab"&&$.preventDefault(),!Y&&Q&&K($.key));const U=A.current;if($.target!==U||!z_e.includes($.key))return;$.preventDefault();const X=D().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);kte.includes($.key)&&X.reverse(),n9e(X)}),onBlur:Nt(e.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(R.current),F.current="")}),onPointerMove:Nt(e.onPointerMove,Ex($=>{const Z=$.target,O=V.current!==$.clientX;if($.currentTarget.contains(Z)&&O){const Y=$.clientX>V.current?"right":"left";_.current=Y,V.current=$.clientX}}))})})})})})})});Dte.displayName=gi;var K_e="MenuGroup",W8=P.forwardRef((e,t)=>{const{__scopeMenu:a,...n}=e;return s.jsx(Zt.div,{role:"group",...n,ref:t})});W8.displayName=K_e;var $_e="MenuLabel",Ete=P.forwardRef((e,t)=>{const{__scopeMenu:a,...n}=e;return s.jsx(Zt.div,{...n,ref:t})});Ete.displayName=$_e;var C1="MenuItem",uU="menu.itemSelect",ww=P.forwardRef((e,t)=>{const{disabled:a=!1,onSelect:n,...r}=e,i=P.useRef(null),o=mb(C1,e.__scopeMenu),l=V8(C1,e.__scopeMenu),c=Va(t,i),d=P.useRef(!1),m=()=>{const f=i.current;if(!a&&f){const h=new CustomEvent(uU,{bubbles:!0,cancelable:!0});f.addEventListener(uU,x=>n?.(x),{once:!0}),yQ(f,h),h.defaultPrevented?d.current=!1:o.onClose()}};return s.jsx(Mte,{...r,ref:c,disabled:a,onClick:Nt(e.onClick,m),onPointerDown:f=>{e.onPointerDown?.(f),d.current=!0},onPointerUp:Nt(e.onPointerUp,f=>{d.current||f.currentTarget?.click()}),onKeyDown:Nt(e.onKeyDown,f=>{const h=l.searchRef.current!=="";a||h&&f.key===" "||MT.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});ww.displayName=C1;var Mte=P.forwardRef((e,t)=>{const{__scopeMenu:a,disabled:n=!1,textValue:r,...i}=e,o=V8(C1,a),l=Ate(a),c=P.useRef(null),d=Va(t,c),[m,f]=P.useState(!1),[h,x]=P.useState("");return P.useEffect(()=>{const b=c.current;b&&x((b.textContent??"").trim())},[i.children]),s.jsx(Dx.ItemSlot,{scope:a,disabled:n,textValue:r??h,children:s.jsx(ste,{asChild:!0,...l,focusable:!n,children:s.jsx(Zt.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:d,onPointerMove:Nt(e.onPointerMove,Ex(b=>{n?o.onItemLeave(b):(o.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Nt(e.onPointerLeave,Ex(b=>o.onItemLeave(b))),onFocus:Nt(e.onFocus,()=>f(!0)),onBlur:Nt(e.onBlur,()=>f(!1))})})})}),X_e="MenuCheckboxItem",Ote=P.forwardRef((e,t)=>{const{checked:a=!1,onCheckedChange:n,...r}=e;return s.jsx(Lte,{scope:e.__scopeMenu,checked:a,children:s.jsx(ww,{role:"menuitemcheckbox","aria-checked":T1(a)?"mixed":a,...r,ref:t,"data-state":$8(a),onSelect:Nt(r.onSelect,()=>n?.(T1(a)?!0:!a),{checkForDefaultPrevented:!1})})})});Ote.displayName=X_e;var Rte="MenuRadioGroup",[Y_e,Z_e]=Iu(Rte,{value:void 0,onValueChange:()=>{}}),zte=P.forwardRef((e,t)=>{const{value:a,onValueChange:n,...r}=e,i=$i(n);return s.jsx(Y_e,{scope:e.__scopeMenu,value:a,onValueChange:i,children:s.jsx(W8,{...r,ref:t})})});zte.displayName=Rte;var _te="MenuRadioItem",Ite=P.forwardRef((e,t)=>{const{value:a,...n}=e,r=Z_e(_te,e.__scopeMenu),i=a===r.value;return s.jsx(Lte,{scope:e.__scopeMenu,checked:i,children:s.jsx(ww,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":$8(i),onSelect:Nt(n.onSelect,()=>r.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});Ite.displayName=_te;var K8="MenuItemIndicator",[Lte,J_e]=Iu(K8,{checked:!1}),Fte=P.forwardRef((e,t)=>{const{__scopeMenu:a,forceMount:n,...r}=e,i=J_e(K8,a);return s.jsx(eo,{present:n||T1(i.checked)||i.checked===!0,children:s.jsx(Zt.span,{...r,ref:t,"data-state":$8(i.checked)})})});Fte.displayName=K8;var e9e="MenuSeparator",Bte=P.forwardRef((e,t)=>{const{__scopeMenu:a,...n}=e;return s.jsx(Zt.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Bte.displayName=e9e;var t9e="MenuArrow",Gte=P.forwardRef((e,t)=>{const{__scopeMenu:a,...n}=e,r=yw(a);return s.jsx(p6,{...r,...n,ref:t})});Gte.displayName=t9e;var a9e="MenuSub",[FGe,Hte]=Iu(a9e),Kh="MenuSubTrigger",qte=P.forwardRef((e,t)=>{const a=Lu(Kh,e.__scopeMenu),n=mb(Kh,e.__scopeMenu),r=Hte(Kh,e.__scopeMenu),i=V8(Kh,e.__scopeMenu),o=P.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=i,d={__scopeMenu:e.__scopeMenu},m=P.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return P.useEffect(()=>m,[m]),P.useEffect(()=>{const f=l.current;return()=>{window.clearTimeout(f),c(null)}},[l,c]),s.jsx(q8,{asChild:!0,...d,children:s.jsx(Mte,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":r.contentId,"data-state":Qte(a.open),...e,ref:Y1(t,r.onTriggerChange),onClick:f=>{e.onClick?.(f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:Nt(e.onPointerMove,Ex(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!a.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{a.onOpenChange(!0),m()},100))})),onPointerLeave:Nt(e.onPointerLeave,Ex(f=>{m();const h=a.content?.getBoundingClientRect();if(h){const x=a.content?.dataset.side,b=x==="right",y=b?-5:5,w=h[b?"left":"right"],j=h[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x:w,y:h.top},{x:j,y:h.top},{x:j,y:h.bottom},{x:w,y:h.bottom}],side:x}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Nt(e.onKeyDown,f=>{const h=i.searchRef.current!=="";e.disabled||h&&f.key===" "||__e[n.dir].includes(f.key)&&(a.onOpenChange(!0),a.content?.focus(),f.preventDefault())})})})});qte.displayName=Kh;var Ute="MenuSubContent",Vte=P.forwardRef((e,t)=>{const a=Cte(gi,e.__scopeMenu),{forceMount:n=a.forceMount,...r}=e,i=Lu(gi,e.__scopeMenu),o=mb(gi,e.__scopeMenu),l=Hte(Ute,e.__scopeMenu),c=P.useRef(null),d=Va(t,c);return s.jsx(Dx.Provider,{scope:e.__scopeMenu,children:s.jsx(eo,{present:n||i.open,children:s.jsx(Dx.Slot,{scope:e.__scopeMenu,children:s.jsx(Q8,{id:l.contentId,"aria-labelledby":l.triggerId,...r,ref:d,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{o.isUsingKeyboardRef.current&&c.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Nt(e.onFocusOutside,m=>{m.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Nt(e.onEscapeKeyDown,m=>{o.onClose(),m.preventDefault()}),onKeyDown:Nt(e.onKeyDown,m=>{const f=m.currentTarget.contains(m.target),h=I_e[o.dir].includes(m.key);f&&h&&(i.onOpenChange(!1),l.trigger?.focus(),m.preventDefault())})})})})})});Vte.displayName=Ute;function Qte(e){return e?"open":"closed"}function T1(e){return e==="indeterminate"}function $8(e){return T1(e)?"indeterminate":e?"checked":"unchecked"}function n9e(e){const t=document.activeElement;for(const a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function s9e(e,t){return e.map((a,n)=>e[(t+n)%e.length])}function r9e(e,t,a){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=a?e.indexOf(a):-1;let o=s9e(e,Math.max(i,0));r.length===1&&(o=o.filter(d=>d!==a));const c=o.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return c!==a?c:void 0}function i9e(e,t){const{x:a,y:n}=e;let r=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],d=l.x,m=l.y,f=c.x,h=c.y;m>n!=h>n&&a<(f-d)*(n-m)/(h-m)+d&&(r=!r)}return r}function o9e(e,t){if(!t)return!1;const a={x:e.clientX,y:e.clientY};return i9e(a,t)}function Ex(e){return t=>t.pointerType==="mouse"?e(t):void 0}var l9e=Ste,c9e=q8,d9e=Tte,u9e=Dte,p9e=W8,m9e=Ete,f9e=ww,h9e=Ote,g9e=zte,x9e=Ite,b9e=Fte,v9e=Bte,y9e=Gte,w9e=qte,P9e=Vte,Pw="DropdownMenu",[j9e]=Pi(Pw,[Nte]),tr=Nte(),[k9e,Wte]=j9e(Pw),Kte=e=>{const{__scopeDropdownMenu:t,children:a,dir:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=tr(t),d=P.useRef(null),[m,f]=fu({prop:r,defaultProp:i??!1,onChange:o,caller:Pw});return s.jsx(k9e,{scope:t,triggerId:Vi(),triggerRef:d,contentId:Vi(),open:m,onOpenChange:f,onOpenToggle:P.useCallback(()=>f(h=>!h),[f]),modal:l,children:s.jsx(l9e,{...c,open:m,onOpenChange:f,dir:n,modal:l,children:a})})};Kte.displayName=Pw;var $te="DropdownMenuTrigger",Xte=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,disabled:n=!1,...r}=e,i=Wte($te,a),o=tr(a);return s.jsx(c9e,{asChild:!0,...o,children:s.jsx(Zt.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...r,ref:Y1(t,i.triggerRef),onPointerDown:Nt(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(i.onOpenToggle(),i.open||l.preventDefault())}),onKeyDown:Nt(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&i.onOpenToggle(),l.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Xte.displayName=$te;var N9e="DropdownMenuPortal",Yte=e=>{const{__scopeDropdownMenu:t,...a}=e,n=tr(t);return s.jsx(d9e,{...n,...a})};Yte.displayName=N9e;var Zte="DropdownMenuContent",Jte=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=Wte(Zte,a),i=tr(a),o=P.useRef(!1);return s.jsx(u9e,{id:r.contentId,"aria-labelledby":r.triggerId,...i,...n,ref:t,onCloseAutoFocus:Nt(e.onCloseAutoFocus,l=>{o.current||r.triggerRef.current?.focus(),o.current=!1,l.preventDefault()}),onInteractOutside:Nt(e.onInteractOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,m=c.button===2||d;(!r.modal||m)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jte.displayName=Zte;var A9e="DropdownMenuGroup",S9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(p9e,{...r,...n,ref:t})});S9e.displayName=A9e;var C9e="DropdownMenuLabel",T9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(m9e,{...r,...n,ref:t})});T9e.displayName=C9e;var D9e="DropdownMenuItem",eae=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(f9e,{...r,...n,ref:t})});eae.displayName=D9e;var E9e="DropdownMenuCheckboxItem",M9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(h9e,{...r,...n,ref:t})});M9e.displayName=E9e;var O9e="DropdownMenuRadioGroup",R9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(g9e,{...r,...n,ref:t})});R9e.displayName=O9e;var z9e="DropdownMenuRadioItem",_9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(x9e,{...r,...n,ref:t})});_9e.displayName=z9e;var I9e="DropdownMenuItemIndicator",L9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(b9e,{...r,...n,ref:t})});L9e.displayName=I9e;var F9e="DropdownMenuSeparator",B9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(v9e,{...r,...n,ref:t})});B9e.displayName=F9e;var G9e="DropdownMenuArrow",H9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(y9e,{...r,...n,ref:t})});H9e.displayName=G9e;var q9e="DropdownMenuSubTrigger",U9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(w9e,{...r,...n,ref:t})});U9e.displayName=q9e;var V9e="DropdownMenuSubContent",Q9e=P.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...n}=e,r=tr(a);return s.jsx(P9e,{...r,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Q9e.displayName=V9e;var W9e=Kte,K9e=Xte,$9e=Yte,X9e=Jte,Y9e=eae;function Z9e({...e}){return s.jsx(W9e,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:10","data-slot":"dropdown-menu",...e})}function J9e({...e}){return s.jsx(K9e,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:25","data-slot":"dropdown-menu-trigger",...e})}function eIe({className:e,sideOffset:t=4,...a}){return s.jsx($9e,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:s.jsx(X9e,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:t,className:zt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...a})})}function tIe({className:e,inset:t,variant:a="default",...n}){return s.jsx(Y9e,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":a,className:zt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n})}function aIe({...e}){return s.jsx(L6,{"data-loc":"client/src/components/ui/sheet.tsx:10","data-slot":"sheet",...e})}function nIe({...e}){return s.jsx(F6,{"data-loc":"client/src/components/ui/sheet.tsx:28","data-slot":"sheet-portal",...e})}function sIe({className:e,...t}){return s.jsx(B6,{"data-loc":"client/src/components/ui/sheet.tsx:36","data-slot":"sheet-overlay",className:zt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function rIe({className:e,children:t,side:a="right",...n}){return s.jsxs(nIe,{"data-loc":"client/src/components/ui/sheet.tsx:56",children:[s.jsx(sIe,{"data-loc":"client/src/components/ui/sheet.tsx:57"}),s.jsxs(G6,{"data-loc":"client/src/components/ui/sheet.tsx:58","data-slot":"sheet-content",className:zt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",a==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",a==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",a==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...n,children:[t,s.jsxs(v2,{"data-loc":"client/src/components/ui/sheet.tsx:75",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsx(Zn,{"data-loc":"client/src/components/ui/sheet.tsx:76",className:"size-4"}),s.jsx("span",{"data-loc":"client/src/components/ui/sheet.tsx:77",className:"sr-only",children:"Close"})]})]})]})}function iIe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sheet.tsx:86","data-slot":"sheet-header",className:zt("flex flex-col gap-1.5 p-4",e),...t})}function oIe({className:e,...t}){return s.jsx(H6,{"data-loc":"client/src/components/ui/sheet.tsx:109","data-slot":"sheet-title",className:zt("text-foreground font-semibold",e),...t})}function lIe({className:e,...t}){return s.jsx(q6,{"data-loc":"client/src/components/ui/sheet.tsx:122","data-slot":"sheet-
1115description",className:zt("text-muted-foreground text-sm",e),...t})}function kr({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/skeleton.tsx:5","data-slot":"skeleton",className:zt("bg-accent animate-pulse rounded-md",e),...t})}const w5=768;function tae(){const[e,t]=P.useState(void 0);return P.useEffect(()=>{const a=window.matchMedia(`(max-width: ${w5-1}px)`),n=()=>{t(window.innerWidth<w5)};return a.addEventListener("change",n),t(window.innerWidth<w5),()=>a.removeEventListener("change",n)},[]),!!e}const cIe="sidebar_state",dIe=3600*24*7,uIe="16rem",pIe="18rem",mIe="3rem",fIe="b",aae=P.createContext(null);function jw(){const e=P.useContext(aae);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function hIe({defaultOpen:e=!0,open:t,onOpenChange:a,className:n,style:r,children:i,...o}){const l=tae(),[c,d]=P.useState(!1),[m,f]=P.useState(e),h=t??m,x=P.useCallback(j=>{const N=typeof j=="function"?j(h):j;a?a(N):f(N),document.cookie=`${cIe}=${N}; path=/; max-age=${dIe}`},[a,h]),b=P.useCallback(()=>l?d(j=>!j):x(j=>!j),[l,x,d]);P.useEffect(()=>{const j=N=>{N.key===fIe&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),b())};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[b]);const y=h?"expanded":"collapsed",w=P.useMemo(()=>({state:y,open:h,setOpen:x,isMobile:l,openMobile:c,setOpenMobile:d,toggleSidebar:b}),[y,h,x,l,c,d,b]);return s.jsx(aae.Provider,{"data-loc":"client/src/components/ui/sidebar.tsx:129",value:w,children:s.jsx(g6,{"data-loc":"client/src/components/ui/sidebar.tsx:130",delayDuration:0,children:s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:131","data-slot":"sidebar-wrapper",style:{"--sidebar-width":uIe,"--sidebar-width-icon":mIe,...r},className:zt("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",n),...o,children:i})})})}function gIe({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",disableTransition:n=!1,className:r,children:i,...o}){const{isMobile:l,state:c,openMobile:d,setOpenMobile:m}=jw();return a==="none"?s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:171","data-slot":"sidebar",className:zt("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...o,children:i}):l?s.jsx(aIe,{"data-loc":"client/src/components/ui/sidebar.tsx:186",open:d,onOpenChange:m,...o,children:s.jsxs(rIe,{"data-loc":"client/src/components/ui/sidebar.tsx:187","data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":pIe},side:e,children:[s.jsxs(iIe,{"data-loc":"client/src/components/ui/sidebar.tsx:199",className:"sr-only",children:[s.jsx(oIe,{"data-loc":"client/src/components/ui/sidebar.tsx:200",children:"Sidebar"}),s.jsx(lIe,{"data-loc":"client/src/components/ui/sidebar.tsx:201",children:"Displays the mobile sidebar."})]}),s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:203",className:"flex h-full w-full flex-col",children:i})]})}):s.jsxs("div",{"data-loc":"client/src/components/ui/sidebar.tsx:210",className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:219","data-slot":"sidebar-gap",className:zt("relative w-(--sidebar-width) bg-transparent",n?"transition-none":"transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:233","data-slot":"sidebar-container",className:zt("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",n?"transition-none":"transition-[left,right,width] duration-200 ease-linear",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:251","data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i})})]})}function xIe({className:e,onClick:t,...a}){const{toggleSidebar:n}=jw();return s.jsxs(Ie,{"data-loc":"client/src/components/ui/sidebar.tsx:271","data-sidebar":"trigger","data-slot":"sidebar-tr
1115igger",variant:"ghost",size:"icon",className:zt("size-7",e),onClick:r=>{t?.(r),n()},...a,children:[s.jsx(bW,{"data-loc":"client/src/components/ui/sidebar.tsx:283"}),s.jsx("span",{"data-loc":"client/src/components/ui/sidebar.tsx:284",className:"sr-only",children:"Toggle Sidebar"})]})}function bIe({className:e,...t}){return s.jsx("main",{"data-loc":"client/src/components/ui/sidebar.tsx:316","data-slot":"sidebar-inset",className:zt("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function vIe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:344","data-slot":"sidebar-header","data-sidebar":"header",className:zt("flex flex-col gap-2 p-2",e),...t})}function yIe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:355","data-slot":"sidebar-footer","data-sidebar":"footer",className:zt("flex flex-col gap-2 p-2",e),...t})}function wIe({className:e,...t}){return s.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:380","data-slot":"sidebar-content","data-sidebar":"content",className:zt("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function PIe({className:e,...t}){return s.jsx("ul",{"data-loc":"client/src/components/ui/sidebar.tsx:463","data-slot":"sidebar-menu","data-sidebar":"menu",className:zt("flex w-full min-w-0 flex-col gap-1",e),...t})}function jIe({className:e,...t}){return s.jsx("li",{"data-loc":"client/src/components/ui/sidebar.tsx:474","data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:zt("group/menu-item relative",e),...t})}const kIe=y6("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function NIe({asChild:e=!1,isActive:t=!1,variant:a="default",size:n="default",tooltip:r,className:i,...o}){const l=e?e6:"button",{isMobile:c,state:d}=jw(),m=s.jsx(l,{"data-loc":"client/src/components/ui/sidebar.tsx:522","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":n,"data-active":t,className:zt(kIe({variant:a,size:n}),i),...o});return r?(typeof r=="string"&&(r={children:r}),s.jsxs(x6,{"data-loc":"client/src/components/ui/sidebar.tsx:543",children:[s.jsx(b6,{"data-loc":"client/src/components/ui/sidebar.tsx:544",asChild:!0,children:m}),s.jsx(v6,{"data-loc":"client/src/components/ui/sidebar.tsx:545",side:"right",align:"center",hidden:d!=="collapsed"||c,...r})]})):m}function AIe(){return s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:5",className:"flex min-h-screen bg-background",children:[s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:7",className:"w-[280px] border-r border-border bg-background p-4 space-y-6",children:[s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:9",className:"flex items-center gap-3 px-2",children:[s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:10",className:"h-8 w-8 rounded-md"}),s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:11",className:"h-4 w-24"})]}),s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:15",className:"space-y-2 px-2",children:[s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:16",className:"h-10 w-full rounded-lg"}),s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:17",className:"h-10 w-full rounded-lg"}),s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:18",className:"h-10 w-full rounded-lg"})]}),s.jsx("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:22",className:"absolute bottom-4 left-4 right-4",children:s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:23",className:"flex items-center gap-3 px-1",children:[s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:24",className:"h-9 w-9 rounded-full"}),s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:25",className:"flex-1 space-y-2",children:[s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:26",className:"h-3 w-20"}),s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:27",className:"h-2 w-32"})]})]})})]}),s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:34",className:"flex-1 p-4 space-y-4",children:[s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:36",className:"h-12 w-48 rounded-lg"}),s.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:37",className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:38",className:"h-32 rounded-xl"}),s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:39",className:"h-32 rounded-xl"}),s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:40",className:"h-32 rounded-xl"})]}),s.jsx(kr,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:42",className:"h-64 roun
1115ded-xl"})]})]})}const pU=[{icon:l2,label:"ÙÙØØ© Ø§ÙØÙ
ÙØ©",path:"/admin/teaser"},{icon:ln,label:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©",path:"/admin/dashboard"}],mU="sidebar-width",SIe=280,CIe=200,TIe=480;function DIe({children:e,hideSidebar:t=!1}){const[a,n]=P.useState(()=>{const o=localStorage.getItem(mU);return o?parseInt(o,10):SIe}),{loading:r,user:i}=Ma();return P.useEffect(()=>{localStorage.setItem(mU,a.toString())},[a]),r?s.jsx(AIe,{"data-loc":"client/src/components/DashboardLayout.tsx:58"}):i?t?s.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:86",className:"min-h-screen",children:e}):s.jsx(hIe,{"data-loc":"client/src/components/DashboardLayout.tsx:90",style:{"--sidebar-width":`${a}px`},children:s.jsx(EIe,{"data-loc":"client/src/components/DashboardLayout.tsx:97",setSidebarWidth:n,children:e})}):s.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:63",className:"flex items-center justify-center min-h-screen",children:s.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:64",className:"flex flex-col items-center gap-8 p-8 max-w-md w-full",children:[s.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:65",className:"flex flex-col items-center gap-6",children:[s.jsx("h1",{"data-loc":"client/src/components/DashboardLayout.tsx:66",className:"text-2xl font-semibold tracking-tight text-center",children:"Sign in to continue"}),s.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:69",className:"text-sm text-muted-foreground text-center max-w-sm",children:"Access to this dashboard requires authentication. Continue to launch the login flow."})]}),s.jsx(Ie,{"data-loc":"client/src/components/DashboardLayout.tsx:73",onClick:()=>Rn(),size:"lg",className:"w-full shadow-lg hover:shadow-xl transition-all",children:"Sign in"})]})})}function EIe({children:e,setSidebarWidth:t}){const{user:a,logout:n}=Ma(),[r,i]=Mo(),{state:o,toggleSidebar:l}=jw(),c=o==="collapsed",[d,m]=P.useState(!1),f=P.useRef(null),h=pU.find(b=>b.path===r),x=tae();return P.useEffect(()=>{c&&m(!1)},[c]),P.useEffect(()=>{const b=w=>{if(!d)return;const j=f.current?.getBoundingClientRect().left??0,N=w.clientX-j;N>=CIe&&N<=TIe&&t(N)},y=()=>{m(!1)};return d&&(document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),document.body.style.cursor="col-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",y),document.body.style.cursor="",document.body.style.userSelect=""}},[d,t]),s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:160",className:"relative",ref:f,children:[s.jsxs(gIe,{"data-loc":"client/src/components/DashboardLayout.tsx:161",collapsible:"icon",className:"border-r-0",disableTransition:d,children:[s.jsx(vIe,{"data-loc":"client/src/components/DashboardLayout.tsx:166",className:"h-16 justify-center",children:s.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:167",className:"flex items-center gap-3 px-2 transition-all w-full",children:[s.jsx("button",{"data-loc":"client/src/components/DashboardLayout.tsx:168",onClick:l,className:"h-8 w-8 flex items-center justify-center hover:bg-accent rounded-lg transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring shrink-0","aria-label":"Toggle navigation",children:s.jsx(bW,{"data-loc":"client/src/components/DashboardLayout.tsx:173",className:"h-4 w-4 text-muted-foreground"})}),c?null:s.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:176",className:"flex items-center gap-2 min-w-0",children:s.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:177",className:"font-semibold tracking-tight truncate",children:"Navigation"})})]})}),s.jsx(wIe,{"data-loc":"client/src/components/DashboardLayout.tsx:185",className:"gap-0",children:s.jsx(PIe,{"data-loc":"client/src/components/DashboardLayout.tsx:186",className:"px-2 py-1",children:pU.map(b=>{const y=r===b.path;return s.jsx(jIe,{"data-loc":"client/src/components/DashboardLayout.tsx:190",children:s.jsxs(NIe,{"data-loc":"client/src/components/DashboardLayout.t
1115sx:191",isActive:y,onClick:()=>i(b.path),tooltip:b.label,className:"h-10 transition-all font-normal",children:[s.jsx(b.icon,{"data-loc":"client/src/components/DashboardLayout.tsx:197",className:`h-4 w-4 ${y?"text-primary":""}`}),s.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:200",children:b.label})]})},b.path)})})}),s.jsx(yIe,{"data-loc":"client/src/components/DashboardLayout.tsx:208",className:"p-3",children:s.jsxs(Z9e,{"data-loc":"client/src/components/DashboardLayout.tsx:209",children:[s.jsx(J9e,{"data-loc":"client/src/components/DashboardLayout.tsx:210",asChild:!0,children:s.jsxs("button",{"data-loc":"client/src/components/DashboardLayout.tsx:211",className:"flex items-center gap-3 rounded-lg px-1 py-1 hover:bg-accent/50 transition-colors w-full text-left group-data-[collapsible=icon]:justify-center focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[s.jsx(M_e,{"data-loc":"client/src/components/DashboardLayout.tsx:212",className:"h-9 w-9 border shrink-0",children:s.jsx(O_e,{"data-loc":"client/src/components/DashboardLayout.tsx:213",className:"text-xs font-medium",children:a?.name?.charAt(0).toUpperCase()})}),s.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:217",className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:[s.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:218",className:"text-sm font-medium truncate leading-none",children:a?.name||"-"}),s.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:221",className:"text-xs text-muted-foreground truncate mt-1.5",children:a?.email||"-"})]})]})}),s.jsx(eIe,{"data-loc":"client/src/components/DashboardLayout.tsx:227",align:"end",className:"w-48",children:s.jsxs(tIe,{"data-loc":"client/src/components/DashboardLayout.tsx:228",onClick:n,className:"cursor-pointer text-destructive focus:text-destructive",children:[s.jsx(ly,{"data-loc":"client/src/components/DashboardLayout.tsx:232",className:"mr-2 h-4 w-4"}),s.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:233",children:"Sign out"})]})})]})})]}),s.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:239",className:`absolute top-0 right-0 w-1 h-full cursor-col-resize hover:bg-primary/20 transition-colors ${c?"hidden":""}`,onMouseDown:()=>{c||m(!0)},style:{zIndex:50}})]}),s.jsxs(bIe,{"data-loc":"client/src/components/DashboardLayout.tsx:249",children:[x&&s.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:251",className:"flex border-b h-14 items-center justify-between bg-background/95 px-2 backdrop-blur supports-[backdrop-filter]:backdrop-blur sticky top-0 z-40",children:s.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:252",className:"flex items-center gap-2",children:[s.jsx(xIe,{"data-loc":"client/src/components/DashboardLayout.tsx:253","aria-label":"ÙØªØ ÙØ§Ø¦Ù
Ø© ÙÙØØ© Ø§ÙØªØÙÙ
",title:"ÙØªØ ÙØ§Ø¦Ù
Ø© ÙÙØØ© Ø§ÙØªØÙÙ
",className:"h-10 w-10 rounded-xl border-2 border-black bg-yellow-300 text-black shadow-[2px_2px_0px_0px_rgba(0,0,0,1)] hover:bg-yellow-200 active:translate-y-px"}),s.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:258",className:"flex items-center gap-3",children:s.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:259",className:"flex flex-col gap-1",children:s.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:260",className:"tracking-tight text-foreground",children:h?.label??"Menu"})})})]})}),s.jsx("main",{"data-loc":"client/src/components/DashboardLayout.tsx:268",className:"flex-1 p-4",children:e})]})]})}function MIe(){return s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:5",className:"grid w-full grid-cols-2 gap-4 sm:col-span-2 lg:col-span-6 lg:grid-cols-6","aria-label":"جار٠تØÙ
ÙÙ Ø§ÙØ¥ØØµØ§Ø¡Ø§Øª","aria-busy":"true",children:Array.from({length:6}).map((e,t)=>s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:6",className:"h-32 animate-pulse border-4 border-[#16233f]/20 bg-[#e8dfd2]"},t))})}function fU(){return s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:13",className:"space-y-3","aria-label":"جار٠تØÙ
ÙÙ ÙØ§Ø¦Ù
Ø© اÙÙ
سجÙÙÙ","aria-busy":"true",children:Array.from({length:4}).map((e,t)=>s.jsxs("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:15",className:"grid min-h-28 animate-pulse gap-4 border-3 border-[#16233f]/20 bg-[#e8dfd2] p-4 md:grid-cols-[1fr_auto]",children:[s.jsxs("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:16",className:"space-y-3",children:[s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:16",className:"h-5 w-2/3 bg-[#d6cab9]"}),s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:16",className:"h-4 w-1/2 bg-[#d6cab9]"}),s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:16",className:"h-3 w-1/3 bg-[#d6cab9]"})]}),s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:17",className:"h-10 w-28 bg-[#d6cab9]"})]},t))})}
1115function hU({label:e="جار٠تجÙÙØ² Ù ÙÙ CSV"}){return s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:25",className:"h-3 animate-pulse bg-[#d8cdf9]","aria-label":e,"aria-busy":"true"})}function OIe(){return s.jsx("div",{"data-loc":"client/src/components/TeaserAdminLoadingStates.tsx:29",className:"min-h-64 animate-pulse border-3 border-[#16233f]/20 bg-[#e8dfd2]","aria-label":"جار٠تØÙ ÙÙ Ø§ØªØ¬Ø§ÙØ§Øª Ø§ÙØªØ³Ø¬ÙÙ ÙØ§ÙØªÙØ¹ÙÙ","aria-busy":"true"})}function RIe(e,t,a=48){const n=t.x-e.x,r=t.y-e.y;return Math.abs(n)<a||Math.abs(n)<=Math.abs(r)?null:n<0?"left":"right"}function nae({onSwipe:e,threshold:t=48,disabled:a=!1}){const n=P.useRef(null),r=P.useCallback(o=>{if(a||o.touches.length!==1){n.current=null;return}const l=o.touches[0];n.current={x:l.clientX,y:l.clientY}},[a]),i=P.useCallback(o=>{if(a||!n.current||o.changedTouches.length!==1){n.current=null;return}const l=o.changedTouches[0],c=RIe(n.current,{x:l.clientX,y:l.clientY},t);n.current=null,c&&e(c)},[a,e,t]);return{onTouchStart:r,onTouchEnd:i}}const sae=[{key:"registrations",label:"Ø§ÙØªØ³Ø¬ÙÙØ§Øª",color:"#6e52b8"},{key:"active",label:"Ø§ÙØªÙعÙÙ",color:"#159a68"},{key:"invited",label:"Ø§ÙØ¯Ø¹Ùات",color:"#d18b00"}];function gU(e,t){return e.length<2?0:Number(e[e.length-1][t]??0)-Number(e[0][t]??0)}function zIe(e,t){return sae.map(a=>a.key).filter(a=>t==="all"||(t==="up"?gU(e,a)>0:gU(e,a)<0))}function rae(e){const t=new Date(`${e}T00:00:00`);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat("ar-SA",{month:"short",day:"numeric"}).format(t)}function _Ie({active:e,payload:t,label:a}){return!e||!t?.length?null:s.jsxs("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:28",className:"min-w-40 border-3 border-[#16233f] bg-[#fff9ef] px-3 py-2 text-right shadow-[4px_4px_0px_#16233f]",dir:"rtl",children:[s.jsx("p",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:29",className:"mb-2 border-b-2 border-[#16233f]/20 pb-1 text-xs font-black text-[#16233f]",children:typeof a=="string"?rae(a):a}),s.jsx("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:30",className:"space-y-1",children:t.map(n=>s.jsxs("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:32",className:"flex items-center justify-between gap-4 text-xs font-black",children:[s.jsxs("span",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:33",className:"flex items-center gap-1.5",children:[s.jsx("span",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:33",className:"h-2.5 w-2.5 border border-[#16233f]",style:{backgroundColor:n.color||"#16233f"}}),n.name]}),s.jsx("span",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:34",children:n.value??"â"})]},`${n.name}-${n.color}`))})]})}const xU={all:"Ø¬Ù ÙØ¹ Ø§ÙØ§ØªØ¬Ø§Ùات",up:"Ø§ÙØªØØ³Ù ÙÙØ·",down:"Ø§ÙØªØ±Ø§Ø¬Ø¹ ÙÙØ·"};function IIe({points:e,rangeLabel:t}){const[a,n]=ie.useState("all"),r=zIe(e,a),i=sae.filter(d=>r.includes(d.key)),o=ie.useCallback(d=>{const m=["all","up","down"],f=m.indexOf(a);n(m[(f+(d==="left"?1:-1)+m.length)%m.length])},[a]),l=nae({onSwipe:o,disabled:!e.length});if(!e.length)return s.jsx("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:61",className:"flex min-h-64 items-center justify-center border-3 border-dashed border-[#16233f]/30 bg-[#fff9ef] p-6 text-center text-sm font-black text-[#596477]",children:"ÙØ§ ØªÙØ¬Ø¯ Ø¨ÙØ§Ùات ز٠ÙÙØ© ÙØ§ÙÙØ© ÙØ¹Ø±Ø¶ Ø§ÙØ§ØªØ¬Ø§Ùات بعد."});const c=e.map(d=>({...d,label:d.date}));return s.jsxs("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:66",...l,className:"border-3 border-[#16233f] bg-[#fff9ef] p-3 sm:p-5 touch-pan-y",dir:"rtl","aria-label":"Ø±Ø³Ù Ø§ØªØ¬Ø§ÙØ§Øª Ø§ÙØªØ³Ø¬ÙÙ ÙØ§ÙØªÙØ¹Ù٠٠تعدد اÙ٠ؤشرات. Ø§Ø³ØØ¨ Ø£ÙÙÙØ§Ù ÙØªØºÙÙØ± اÙÙÙØªØ±.",children:[s.jsxs("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:67",className:"mb-3 flex flex-wrap items-center gap-2 text-sm font-black",children:[s.jsx(Xue,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:67",className:"h-4 w-4 text-[#6e52b8]"})," Ø§ØªØ¬Ø§ÙØ§Øª Ø§ÙØªØ³Ø¬ÙÙ ÙØ§ÙØªÙØ¹ÙÙ ",s.jsx("span",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:67",className:"border-2 border-[#16233f] bg-[#d8cdf9] px-2 py-1 text-[11px]",children:t||`آخر ${e.length} ÙÙ٠اÙ`})]}),s.jsxs("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:68",className:"mb-4 flex flex-wrap items-center gap-2",role:"group","aria-label":"ÙÙØªØ± Ø§ØªØ¬Ø§ÙØ§Øª Ø§ÙØ±Ø³Ù Ø§ÙØ¨ÙاÙÙ",children:[s.jsx("span",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:69",className:"text-xs font-black text-[#596477]",children:"عرض:"}),Object.keys(xU).map(d=>s.jsx("button",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:71",type:"button",onClick:()=>n(d),"aria-pressed":a===d,className:`border-2 border-[#16233f] px-2 py-1 text-[11px] font-black transition-colors ${a===d?"bg-[#16233f] text-white":"bg-[#fff9ef] text-[#16233f] hover:bg-[#d8cdf9]"}`,children:xU[d]},d))]}),a!=="all"&&!i.length?s.jsxs("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:77",className:"flex min-h-52 items-center justify-center border-3 border-dashed border-[#16233f]/30 bg-[#f5efdf] p-6 text-center text-sm font-black text-[#596477]",role:"status",children:["ÙØ§ ØªÙØ¬Ø¯ ٠ؤشرات ",a==="up"?"ØªÙØ¸Ùر ØªØØ³ÙاÙ":"ØªÙØ¸Ùر تراجعاÙ"," Ø®ÙØ§Ù اÙÙØ·Ø§Ù اÙÙ ØØ¯Ø¯."]}):s.jsx("div",{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:79",className:"h-64 w-full",dir:"ltr",children:s.jsx($s,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:80",width:"100%",height:"100%",minWidth:1,minHeight:1,children:s.jsxs(Uc,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:81",data:c,margin:{top:8,right:12,left:4,bottom:4},children:[s.jsx(zr,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:82",strokeDasharray:"3 3",stroke:"#16233f22"}),s.jsx(is,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:83",dataKey:"label",tickFormatter:rae,tick:{fontSize:11,fontWeight:700},minTickGap:18}),s.jsx(Yn,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:84",allowDecimals:!1,tick:{fontSize:11,fontWeight:700}}),s.jsx(yn,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:85",content:s.jsx(_Ie,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:85"}),cursor:{stroke:"#6e52b8",strokeDasharray:"4 4"}}),s.jsx(fr,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:86",wrapperStyle:{fontWeight:800,direction:"rtl"}}),i.map(d=>s.jsx(Kn,{"data-loc":"client/src/components/TeaserRegistrationTrendsChart.tsx:88",type:"monotone",dataKey:d.key,name:d.label,stroke:d.color,strokeWidth:d.key==="invited"?2.5:3,dot:d.key==="invited"?!1:{r:3,fill:d.color,stroke:"#16233f",strokeWidth:1},activeDot:{r:d.key==="invited"?5:6}},d.key))]})})})]})}/*! ***************************************************************************** 1116Copyright (c) Microsoft Corporation. 1117 1118Permission to use, copy, modify, and/or distribute this software for any 1119purpose with or without fee is hereby granted. 1120 1121THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 1122REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 1123AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 1124INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 1125LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 1126OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1127PERFORMANCE OF THIS SOFTWARE. 1128***************************************************************************** */var OT=function(e,t){return OT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var r in n)n.hasOwnProperty(r)&&(a[r]=n[r])},OT(e,t)};function ft(e,t){OT(e,t);function a(){this.constructor=e}
vendor: 8,971 bytes, line 1128
1128e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}var Xt=function(){return Xt=Object.assign||function(t){for(var a,n=1,r=arguments.length;n<r;n++){a=arguments[n];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},Xt.apply(this,arguments)};function LIe(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a}function na(e,t,a,n){function r(i){return i instanceof a?i:new a(function(o){o(i)})}return new(a||(a=Promise))(function(i,o){function l(m){try{d(n.next(m))}catch(f){o(f)}}function c(m){try{d(n.throw(m))}catch(f){o(f)}}function d(m){m.done?i(m.value):r(m.value).then(l,c)}d((n=n.apply(e,[])).next())})}function sa(e,t){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(d){return function(m){return c([d,m])}}function c(d){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=d[0]&2?r.return:d[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,d[1])).done)return i;switch(r=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,r=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){a.label=d[1];break}if(d[0]===6&&a.label<i[1]){a.label=i[1],i=d;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(d);break}i[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(m){d=[6,m],r=0}finally{n=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Na(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;for(var n=Array(e),r=0,t=0;t<a;t++)for(var i=arguments[t],o=0,l=i.length;o<l;o++,r++)n[r]=i[o];return n}var sm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$h=new Uint8Array(256);for(var xv=0;xv<sm.length;xv++)$h[sm.charCodeAt(xv)]=xv;var FIe=function(e){for(var t="",a=e.length,n=0;n<a;n+=3)t+=sm[e[n]>>2],t+=sm[(e[n]&3)<<4|e[n+1]>>4],t+=sm[(e[n+1]&15)<<2|e[n+2]>>6],t+=sm[e[n+2]&63];return a%3===2?t=t.substring(0,t.length-1)+"=":a%3===1&&(t=t.substring(0,t.length-2)+"=="),t},bU=function(e){var t=e.length*.75,a=e.length,n,r=0,i,o,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new Uint8Array(t);for(n=0;n<a;n+=4)i=$h[e.charCodeAt(n)],o=$h[e.charCodeAt(n+1)],l=$h[e.charCodeAt(n+2)],c=$h[e.charCodeAt(n+3)],d[r++]=i<<2|o>>4,d[r++]=(o&15)<<4|l>>2,d[r++]=(l&3)<<6|c&63;return d},BIe=/^(data)?:?([\w\/\+]+)?;?(charset=[\w-]+|base64)?.*,/i,GIe=function(e){var t=e.trim(),a=t.substring(0,100),n=a.match(BIe);if(!n)return bU(t);var r=n[0],i=t.substring(r.length);return bU(i)},$t=function(e){return e.charCodeAt(0)},HIe=function(e){return e.codePointAt(0)},fb=function(e,t){return Bi(e.toString(16),t,"0").toUpperCase()},kw=function(e){return fb(e,2)},wl=function(e){return String.fromCharCode(e)},qIe=function(e){return wl(parseInt(e,16))},Bi=function(e,t,a){for(var n="",r=0,i=t-e.length;r<i;r++)n+=a;return n+e},Ms=function(e,t,a){for(var n=e.length,r=0;r<n;r++)t[a++]=e.charCodeAt(r);return n},UIe=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},hb=function(e){return e.replace(/\t|\u0085|\u2028|\u2029/g," ").replace(/[\b\v]/g,"")},VIe=["\\n","\\f","\\r","\\u000B"],iae=function(e){return/^[\n\f\r\u000B]$/.test(e)},oae=function(e){return e.split(/[\n\f\r\u000B]/)},lae=function(e){return e.replace(/[\n\f\r\u000B]/g," ")},cae=function(e,t){var a=e.charCodeAt(t),n,r=t+1,i=1;return a>=55296&&a<=56319&&e.length>r&&(n=e.charCodeAt(r),n>=56320&&n<=57343&&(i=2)),[e.slice(t,t+i),i]},QIe=function(e){for(var t=[],a=0,n=e.length;a<n;){var r=cae(e,a),i=r[0],o=r[1];t.push(i),a+=o}return t},WIe=function(e){for(var t=VIe.join("|"),a=["$"],n=0,r=e.length;n<r;n++){var i=e[n];if(iae(i))throw new TypeError("`wordBreak` must not include "+t);a.push(i===""?".":UIe(i))}var o=a.join("|");return new RegExp("("+t+")|((.*?)("+o+"))","gm")},KIe=function(e,t,a,n){for(var r=WIe(t),i=hb(e).match(r),o="",l=0,c=[],d=function(){o!==""&&c.push(o),o="",l=0},m=0,f=i.length;m<f;m++){var h=i[m];if(iae(h))d();else{var x=n(h);l+x>a&&d(),o+=h,l+=x}}return d(),c},$Ie=/^D:(\d\d\d\d)(\d\d)?(\d\d)?(\d\d)?(\d\d)?(\d\d)?([+\-Z])?(\d\d)?'?(\d\d)?'?$/,dae=function(e){var t=e.match($Ie);if(t){var a=t[1],n=t[2],r=n===void 0?"01":n,i=t[3],o=i===void 0?"01":i,l=t[4],c=l===void 0?"00":l,d=t[5],m=d===void 0?"00":d,f=t[6],h=f===void 0?"00":f,x=t[7],b=x===void 0?"Z":x,y=t[8],w=y===void 0?"00":y,j=t[9],N=j===void 0?"00":j,k=b==="Z"?"Z":""+b+w+":"+N,D=new Date(a+"-"+r+"-"+o+"T"+c+":"+m+":"+h+k);return D}},X8=function(e,t){for(var a,n=0,r;n<e.length;){var i=e.substring(n).match(t);if(!i)return{match:r,pos:n};r=i,n+=((a=i.index)!==null&&a!==void 0?a:0)+i[0].length}return{match:r,pos:n}},D1=function(e){return e[e.length-1]},RT=function(e){if(e instanceof Uint8Array)return e;for(var t=e.length,a=new Uint8Array(t),n=0;n<t;n++)a[n]=e.charCodeAt(n);return a},XIe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var a=e.length,n=[],r=0;r<a;r++){var i=e[r];n[r]=i instanceof Uint8Array?i:RT(i)}for(var o=0,r=0;r<a;r++)o+=e[r].length;for(var l=new Uint8Array(o),c=0,d=0;d<a;d++)for(var m=n[d],f=0,h=m.length;f<h;f++)l[c++]=m[f];return l},YIe=function(e){for(var t=0,a=0,n=e.length;a<n;a++)t+=e[a].length;for(var r=new Uint8Array(t),i=0,a=0,n=e.length;a<n;a++){var o=e[a];r.set(o,i),i+=o.length}return r},uae=function(e){for(var t="",a=0,n=e.length;a<n;a++)t+=wl(e[a]);return t},ZIe=function(e,t){return e.id-t.id},JIe=function(e,t){for(var a=[],n=0,r=e.length;n<r;n++){var i=e[n],o=e[n-1];(n===0||t(i)!==t(o))&&a.push(i)}return a},Ip=function(e){for(var t=e.length,a=0,n=Math.floor(t/2);a<n;a++){var r=a,i=t-a-1,o=e[a];e[r]=e[i],e[i]=o}return e},eLe=function(e){for(var t=0,a=0,n=e.length;a<n;a++)t+=e[a];return t},tLe=function(e,t){for(var a=new Array(t-e),n=0,r=a.length;n<r;n++)a[n]=e+n;return a},aLe=function(e,t){for(var a=new Array(t.length),n=0,r=t.length;n<r;n++)a[n]=e[t[n]];return a},nLe=function(e){return e instanceof Uint8Array||e instanceof ArrayBuffer||typeof e=="string"},Rh=function(e){if(typeof e=="string")return GIe(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(e instanceof Uint8Array)return e;throw new TypeError("`input` must be one of `string | ArrayBuffer | Uint8Array`")},Zm=function(){return new Promise(function(e){setTimeout(function(){return e()},0)})},sLe=function(e,t){t===void 0&&(t=!0);var a=[];t&&a.push(65279);for(var n=0,r=e.length;n<r;){var i=e.codePointAt(n);if(i<65536)a.push(i),n+=1;else if(i<1114112)a.push(pae(i),mae(i)),n+=2;else throw new Error("Invalid code point: 0x"+kw(i))}return new Uint16Array(a)},rLe=function(e){return e>=0&&e<=65535},iLe=function(e){return e>=65536&&e<=1114111},pae=function(e){return Math.floor((e-65536)/1024)+55296},mae=function(e){return(e-65536)%1024+56320},Rc;(function(e){e.BigEndian="BigEndian",e.LittleEndian="LittleEndian"})(Rc||(Rc={}));var zh="�".codePointAt(0),fae=function(e,t){if(t===void 0&&(t=!0),e.length<=1)return String.fromCodePoint(zh);for(var a=t?lLe(e):Rc.BigEndian,n=t?2:0,r=[];e.length-n>=2;){var i=yU(e[n++],e[n++],a);if(oLe(i))if(e.length-n<2)r.push(zh);else{var o=yU(e[n++],e[n++],a);vU(o)?r.push(i,o):r.push(zh)}else vU(i)?(n+=2,r.push(zh)):r.push(i)}return n<e.length&&r.push(zh),String.fromCodePoint.apply(String,r)},oLe=function(e){return e>=55296&&e<=56319},vU=function(e){return e>=56320&&e<=57343},yU=function(e,t,a){if(a===Rc.LittleEndian)return t<<8|e;if(a===Rc.BigEndian)return e<<8|t;throw new Error("Invalid byteOrder: "+a)},lLe=function(e){return hae(e)?Rc.BigEndian:gae(e)?Rc.LittleEndian:Rc.BigEndian},hae=function(e){return e[0]===254&&e[1]===255},gae=function(e){return e[0]===255&&e[1]===254},xae=function(e){return hae(e)||gae(e)},cLe=function(e){var t=String(e);if(Math.abs(e)<1){var a=parseInt(e.toString().split("e-")[1]);if(a){var n=e<0;n&&(e*=-1),e*=Math.pow(10,a-1),t="0."+new Array(a).join("0")+e.toString().substring(2),n&&(t="-"+t)}}else{var a=parseInt(e.toString().split("+")[1]);a>20&&(a-=20,e/=Math.pow(10,a),t=e.toString()+new Array(a+1).join("0"))}return t},Wv=function(e){return Math.ceil(e.toString(2).length/8)},Lp=function(e){for(var t=new Uint8Array(Wv(e)),a=1;a<=t.length;a++)t[a-1]=e>>(t.length-a)*8;return t},gb=function(e){throw new Error(e)},P5={},wU;function sd(){return wU||(wU=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function a(i,o){return Object.prototype.hasOwnProperty.call(i,o)}e.assign=function(i){for(var o=Array.prototype.slice.call(arguments,1
vendor: 4,693 bytes, line 1128
1128);o.length;){var l=o.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var c in l)a(l,c)&&(i[c]=l[c])}}return i},e.shrinkBuf=function(i,o){return i.length===o?i:i.subarray?i.subarray(0,o):(i.length=o,i)};var n={arraySet:function(i,o,l,c,d){if(o.subarray&&i.subarray){i.set(o.subarray(l,l+c),d);return}for(var m=0;m<c;m++)i[d+m]=o[l+m]},flattenChunks:function(i){var o,l,c,d,m,f;for(c=0,o=0,l=i.length;o<l;o++)c+=i[o].length;for(f=new Uint8Array(c),d=0,o=0,l=i.length;o<l;o++)m=i[o],f.set(m,d),d+=m.length;return f}},r={arraySet:function(i,o,l,c,d){for(var m=0;m<c;m++)i[d+m]=o[l+m]},flattenChunks:function(i){return[].concat.apply([],i)}};e.setTyped=function(i){i?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,r))},e.setTyped(t)})(P5)),P5}var Fp={},Ei={},Rd={},PU;function dLe(){if(PU)return Rd;PU=1;var e=sd(),t=4,a=0,n=1,r=2;function i(G){for(var je=G.length;--je>=0;)G[je]=0}var o=0,l=1,c=2,d=3,m=258,f=29,h=256,x=h+1+f,b=30,y=19,w=2*x+1,j=15,N=16,k=7,D=256,C=16,S=17,A=18,E=[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],R=[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],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=512,_=new Array((x+2)*2);i(_);var V=new Array(b*2);i(V);var W=new Array(H);i(W);var B=new Array(m-d+1);i(B);var K=new Array(f);i(K);var ae=new Array(b);i(ae);function $(G,je,ze,Qe,ye){this.static_tree=G,this.extra_bits=je,this.extra_base=ze,this.elems=Qe,this.max_length=ye,this.has_stree=G&&G.length}var Z,O,Y;function Q(G,je){this.dyn_tree=G,this.max_code=0,this.stat_desc=je}function U(G){return G<256?W[G]:W[256+(G>>>7)]}function oe(G,je){G.pending_buf[G.pending++]=je&255,G.pending_buf[G.pending++]=je>>>8&255}function X(G,je,ze){G.bi_valid>N-ze?(G.bi_buf|=je<<G.bi_valid&65535,oe(G,G.bi_buf),G.bi_buf=je>>N-G.bi_valid,G.bi_valid+=ze-N):(G.bi_buf|=je<<G.bi_valid&65535,G.bi_valid+=ze)}function ne(G,je,ze){X(G,ze[je*2],ze[je*2+1])}function ge(G,je){var ze=0;do ze|=G&1,G>>>=1,ze<<=1;while(--je>0);return ze>>>1}function me(G){G.bi_valid===16?(oe(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):G.bi_valid>=8&&(G.pending_buf[G.pending++]=G.bi_buf&255,G.bi_buf>>=8,G.bi_valid-=8)}function Ae(G,je){var ze=je.dyn_tree,Qe=je.max_code,ye=je.stat_desc.static_tree,Ee=je.stat_desc.has_stree,te=je.stat_desc.extra_bits,We=je.stat_desc.extra_base,mt=je.stat_desc.max_length,z,_e,ce,se,fe,Se,ot=0;for(se=0;se<=j;se++)G.bl_count[se]=0;for(ze[G.heap[G.heap_max]*2+1]=0,z=G.heap_max+1;z<w;z++)_e=G.heap[z],se=ze[ze[_e*2+1]*2+1]+1,se>mt&&(se=mt,ot++),ze[_e*2+1]=se,!(_e>Qe)&&(G.bl_count[se]++,fe=0,_e>=We&&(fe=te[_e-We]),Se=ze[_e*2],G.opt_len+=Se*(se+fe),Ee&&(G.static_len+=Se*(ye[_e*2+1]+fe)));if(ot!==0){do{for(se=mt-1;G.bl_count[se]===0;)se--;G.bl_count[se]--,G.bl_count[se+1]+=2,G.bl_count[mt]--,ot-=2}while(ot>0);for(se=mt;se!==0;se--)for(_e=G.bl_count[se];_e!==0;)ce=G.heap[--z],!(ce>Qe)&&(ze[ce*2+1]!==se&&(G.opt_len+=(se-ze[ce*2+1])*ze[ce*2],ze[ce*2+1]=se),_e--)}}function Pe(G,je,ze){var Qe=new Array(j+1),ye=0,Ee,te;for(Ee=1;Ee<=j;Ee++)Qe[Ee]=ye=ye+ze[Ee-1]<<1;for(te=0;te<=je;te++){var We=G[te*2+1];We!==0&&(G[te*2]=ge(Qe[We]++,We))}}function L(){var G,je,ze,Qe,ye,Ee=new Array(j+1);for(ze=0,Qe=0;Qe<f-1;Qe++)for(K[Qe]=ze,G=0;G<1<<E[Qe];G++)B[ze++]=Qe;for(B[ze-1]=Qe,ye=0,Qe=0;Qe<16;Qe++)for(ae[Qe]=ye,G=0;G<1<<R[Qe];G++)W[ye++]=Qe;for(ye>>=7;Qe<b;Qe++)for(ae[Qe]=ye<<7,G=0;G<1<<R[Qe]-7;G++)W[256+ye++]=Qe;for(je=0;je<=j;je++)Ee[je]=0;for(G=0;G<=143;)_[G*2+1]=8,G++,Ee[8]++;for(;G<=255;)_[G*2+1]=9,G++,Ee[9]++;for(;G<=279;)_[G*2+1]=7,G++,Ee[7]++;for(;G<=287;)_[G*2+1]=8,G++,Ee[8]++;for(Pe(_,x+1,Ee),G=0;G<b;G++)V[G*2+1]=5,V[G*2]=ge(G,5);Z=new $(_,E,h+1,x,j),O=new $(V,R,0,b,j),Y=new $(new Array(0),F,0,y,k)}function ke(G){var je;for(je=0;je<x;je++)G.dyn_ltree[je*2]=0;for(je=0;je<b;je++)G.dyn_dtree[je*2]=0;for(je=0;je<y;je++)G.bl_tree[je*2]=0;G.dyn_ltree[D*2]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function Me(G){G.bi_valid>8?oe(G,G.bi_buf):G.bi_valid>0&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0}function Ze(G,je,ze,Qe){Me(G),oe(G,ze),oe(G,~ze),e.arraySet(G.pending_buf,G.window,je,ze,G.pending),G.pending+=ze}function Ce(G,je,ze,Qe){var ye=je*2,Ee=ze*2;return G[ye]<G[Ee]||G[ye]===G[Ee]&&Qe[je]<=Qe[ze]}function Te(G,je,ze){for(var Qe=G.heap[ze],ye=ze<<1;ye<=G.heap_len&&(ye<G.heap_len&&Ce(je,G.heap[ye+1],G.heap[ye],G.depth)&&ye++,!Ce(je,Qe,G.heap[ye],G.depth));)G.heap[ze]=G.heap[ye],ze=ye,ye<<=1;G.heap[ze]=Qe}function Ke(G,je,ze){var Qe,ye,Ee=0,te,We;if(G.last_lit!==0)do Qe=G.pending_buf[G.d_buf+Ee*2]<<8|G.pending_buf[G.d_buf+Ee*2+1],ye=G.pen
vendor: 24,558 bytes, line 1128
1128ding_buf[G.l_buf+Ee],Ee++,Qe===0?ne(G,ye,je):(te=B[ye],ne(G,te+h+1,je),We=E[te],We!==0&&(ye-=K[te],X(G,ye,We)),Qe--,te=U(Qe),ne(G,te,ze),We=R[te],We!==0&&(Qe-=ae[te],X(G,Qe,We)));while(Ee<G.last_lit);ne(G,D,je)}function Ve(G,je){var ze=je.dyn_tree,Qe=je.stat_desc.static_tree,ye=je.stat_desc.has_stree,Ee=je.stat_desc.elems,te,We,mt=-1,z;for(G.heap_len=0,G.heap_max=w,te=0;te<Ee;te++)ze[te*2]!==0?(G.heap[++G.heap_len]=mt=te,G.depth[te]=0):ze[te*2+1]=0;for(;G.heap_len<2;)z=G.heap[++G.heap_len]=mt<2?++mt:0,ze[z*2]=1,G.depth[z]=0,G.opt_len--,ye&&(G.static_len-=Qe[z*2+1]);for(je.max_code=mt,te=G.heap_len>>1;te>=1;te--)Te(G,ze,te);z=Ee;do te=G.heap[1],G.heap[1]=G.heap[G.heap_len--],Te(G,ze,1),We=G.heap[1],G.heap[--G.heap_max]=te,G.heap[--G.heap_max]=We,ze[z*2]=ze[te*2]+ze[We*2],G.depth[z]=(G.depth[te]>=G.depth[We]?G.depth[te]:G.depth[We])+1,ze[te*2+1]=ze[We*2+1]=z,G.heap[1]=z++,Te(G,ze,1);while(G.heap_len>=2);G.heap[--G.heap_max]=G.heap[1],Ae(G,je),Pe(ze,mt,G.bl_count)}function ht(G,je,ze){var Qe,ye=-1,Ee,te=je[1],We=0,mt=7,z=4;for(te===0&&(mt=138,z=3),je[(ze+1)*2+1]=65535,Qe=0;Qe<=ze;Qe++)Ee=te,te=je[(Qe+1)*2+1],!(++We<mt&&Ee===te)&&(We<z?G.bl_tree[Ee*2]+=We:Ee!==0?(Ee!==ye&&G.bl_tree[Ee*2]++,G.bl_tree[C*2]++):We<=10?G.bl_tree[S*2]++:G.bl_tree[A*2]++,We=0,ye=Ee,te===0?(mt=138,z=3):Ee===te?(mt=6,z=3):(mt=7,z=4))}function pe(G,je,ze){var Qe,ye=-1,Ee,te=je[1],We=0,mt=7,z=4;for(te===0&&(mt=138,z=3),Qe=0;Qe<=ze;Qe++)if(Ee=te,te=je[(Qe+1)*2+1],!(++We<mt&&Ee===te)){if(We<z)do ne(G,Ee,G.bl_tree);while(--We!==0);else Ee!==0?(Ee!==ye&&(ne(G,Ee,G.bl_tree),We--),ne(G,C,G.bl_tree),X(G,We-3,2)):We<=10?(ne(G,S,G.bl_tree),X(G,We-3,3)):(ne(G,A,G.bl_tree),X(G,We-11,7));We=0,ye=Ee,te===0?(mt=138,z=3):Ee===te?(mt=6,z=3):(mt=7,z=4)}}function et(G){var je;for(ht(G,G.dyn_ltree,G.l_desc.max_code),ht(G,G.dyn_dtree,G.d_desc.max_code),Ve(G,G.bl_desc),je=y-1;je>=3&&G.bl_tree[I[je]*2+1]===0;je--);return G.opt_len+=3*(je+1)+5+5+4,je}function xe(G,je,ze,Qe){var ye;for(X(G,je-257,5),X(G,ze-1,5),X(G,Qe-4,4),ye=0;ye<Qe;ye++)X(G,G.bl_tree[I[ye]*2+1],3);pe(G,G.dyn_ltree,je-1),pe(G,G.dyn_dtree,ze-1)}function it(G){var je=4093624447,ze;for(ze=0;ze<=31;ze++,je>>>=1)if(je&1&&G.dyn_ltree[ze*2]!==0)return a;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return n;for(ze=32;ze<h;ze++)if(G.dyn_ltree[ze*2]!==0)return n;return a}var Tt=!1;function bt(G){Tt||(L(),Tt=!0),G.l_desc=new Q(G.dyn_ltree,Z),G.d_desc=new Q(G.dyn_dtree,O),G.bl_desc=new Q(G.bl_tree,Y),G.bi_buf=0,G.bi_valid=0,ke(G)}function vt(G,je,ze,Qe){X(G,(o<<1)+(Qe?1:0),3),Ze(G,je,ze)}function St(G){X(G,l<<1,3),ne(G,D,_),me(G)}function de(G,je,ze,Qe){var ye,Ee,te=0;G.level>0?(G.strm.data_type===r&&(G.strm.data_type=it(G)),Ve(G,G.l_desc),Ve(G,G.d_desc),te=et(G),ye=G.opt_len+3+7>>>3,Ee=G.static_len+3+7>>>3,Ee<=ye&&(ye=Ee)):ye=Ee=ze+5,ze+4<=ye&&je!==-1?vt(G,je,ze,Qe):G.strategy===t||Ee===ye?(X(G,(l<<1)+(Qe?1:0),3),Ke(G,_,V)):(X(G,(c<<1)+(Qe?1:0),3),xe(G,G.l_desc.max_code+1,G.d_desc.max_code+1,te+1),Ke(G,G.dyn_ltree,G.dyn_dtree)),ke(G),Qe&&Me(G)}function be(G,je,ze){return G.pending_buf[G.d_buf+G.last_lit*2]=je>>>8&255,G.pending_buf[G.d_buf+G.last_lit*2+1]=je&255,G.pending_buf[G.l_buf+G.last_lit]=ze&255,G.last_lit++,je===0?G.dyn_ltree[ze*2]++:(G.matches++,je--,G.dyn_ltree[(B[ze]+h+1)*2]++,G.dyn_dtree[U(je)*2]++),G.last_lit===G.lit_bufsize-1}return Rd._tr_init=bt,Rd._tr_stored_block=vt,Rd._tr_flush_block=de,Rd._tr_tally=be,Rd._tr_align=St,Rd}var j5,jU;function bae(){if(jU)return j5;jU=1;function e(t,a,n,r){for(var i=t&65535|0,o=t>>>16&65535|0,l=0;n!==0;){l=n>2e3?2e3:n,n-=l;do i=i+a[r++]|0,o=o+i|0;while(--l);i%=65521,o%=65521}return i|o<<16|0}return j5=e,j5}var k5,kU;function vae(){if(kU)return k5;kU=1;function e(){for(var n,r=[],i=0;i<256;i++){n=i;for(var o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;r[i]=n}return r}var t=e();function a(n,r,i,o){var l=t,c=o+i;n^=-1;for(var d=o;d<c;d++)n=n>>>8^l[(n^r[d])&255];return n^-1}return k5=a,k5}var N5,NU;function Y8(){return NU||(NU=1,N5={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"}),N5}var AU;function uLe(){if(AU)return Ei;AU=1;var e=sd(),t=dLe(),a=bae(),n=vae(),r=Y8(),i=0,o=1,l=3,c=4,d=5,m=0,f=1,h=-2,x=-3,b=-5,y=-1,w=1,j=2,N=3,k=4,D=0,C=2,S=8,A=9,E=15,R=8,F=29,I=256,H=I+1+F,_=30,V=19,W=2*H+1,B=15,K=3,ae=258,$=ae+K+1,Z=32,O=42,Y=69,Q=73,U=91,oe=103,X=113,ne=666,ge=1,me=2,Ae=3,Pe=4,L=3;function ke(z,_e){return z.msg=r[_e],_e}function Me(z){return(z<<1)-(z>4?9:0)}function Ze(z){for(var _e=z.length;--_e>=0;)z[_e]=0}function Ce(z){var _e=z.state,ce=_e.pending;ce>z.avail_out&&(ce=z.avail_out),ce!==0&&(e.arraySet(z.output,_e.pending_buf,_e.pending_out,ce,z.next_out),z.next_out+=ce,_e.pending_out+=ce,z.total_out+=ce,z.avail_out-=ce,_e.pending-=ce,_e.pending===0&&(_e.pending_out=0))}function Te(z,_e){t._tr_flush_block(z,z.block_start>=0?z.block_start:-1,z.strstart-z.block_start,_e),z.block_start=z.strstart,Ce(z.strm)}function Ke(z,_e){z.pending_buf[z.pending++]=_e}function Ve(z,_e){z.pending_buf[z.pending++]=_e>>>8&255,z.pending_buf[z.pending++]=_e&255}function ht(z,_e,ce,se){var fe=z.avail_in;return fe>se&&(fe=se),fe===0?0:(z.avail_in-=fe,e.arraySet(_e,z.input,z.next_in,fe,ce),z.state.wrap===1?z.adler=a(z.adler,_e,fe,ce):z.state.wrap===2&&(z.adler=n(z.adler,_e,fe,ce)),z.next_in+=fe,z.total_in+=fe,fe)}function pe(z,_e){var ce=z.max_chain_length,se=z.strstart,fe,Se,ot=z.prev_length,lt=z.nice_match,Le=z.strstart>z.w_size-$?z.strstart-(z.w_size-$):0,nt=z.window,gt=z.w_mask,yt=z.prev,rt=z.strstart+ae,xt=nt[se+ot-1],Mt=nt[se+ot];z.prev_length>=z.good_match&&(ce>>=2),lt>z.lookahead&&(lt=z.lookahead);do if(fe=_e,!(nt[fe+ot]!==Mt||nt[fe+ot-1]!==xt||nt[fe]!==nt[se]||nt[++fe]!==nt[se+1])){se+=2,fe++;do;while(nt[++se]===nt[++fe]&&nt[++se]===nt[++fe]&&nt[++se]===nt[++fe]&&nt[++se]===nt[++fe]&&nt[++se]===nt[++fe]&&nt[++se]===nt[++fe]&&nt[++se]===nt[++fe]&&nt[++se]===nt[++fe]&&se<rt);if(Se=ae-(rt-se),se=rt-ae,Se>ot){if(z.match_start=_e,ot=Se,Se>=lt)break;xt=nt[se+ot-1],Mt=nt[se+ot]}}while((_e=yt[_e>])>Le&&--ce!==0);return ot<=z.lookahead?ot:z.lookahead}function et(z){var _e=z.w_size,ce,se,fe,Se,ot;do{if(Se=z.window_size-z.lookahead-z.strstart,z.strstart>=_e+(_e-$)){e.arraySet(z.window,z.window,_e,_e,0),z.match_start-=_e,z.strstart-=_e,z.block_start-=_e,se=z.hash_size,ce=se;do fe=z.head[--ce],z.head[ce]=fe>=_e?fe-_e:0;while(--se);se=_e,ce=se;do fe=z.prev[--ce],z.prev[ce]=fe>=_e?fe-_e:0;while(--se);Se+=_e}if(z.strm.avail_in===0)break;if(se=ht(z.strm,z.window,z.strstart+z.lookahead,Se),z.lookahead+=se,z.lookahead+z.insert>=K)for(ot=z.strstart-z.insert,z.ins_h=z.window[ot],z.ins_h=(z.ins_h<<z.hash_shift^z.window[ot+1])&z.hash_mask;z.insert&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[ot+K-1])&z.hash_mask,z.prev[ot&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=ot,ot++,z.insert--,!(z.lookahead+z.insert<K)););}while(z.lookahead<$&&z.strm.avail_in!==0)}function xe(z,_e){var ce=65535;for(ce>z.pending_buf_size-5&&(ce=z.pending_buf_size-5);;){if(z.lookahead<=1){if(et(z),z.lookahead===0&&_e===i)return ge;if(z.lookahead===0)break}z.strstart+=z.lookahead,z.lookahead=0;var se=z.block_start+ce;if((z.strstart===0||z.strstart>=se)&&(z.lookahead=z.strstart-se,z.strstart=se,Te(z,!1),z.strm.avail_out===0)||z.strstart-z.block_start>=z.w_size-$&&(Te(z,!1),z.strm.avail_out===0))return ge}return z.insert=0,_e===c?(Te(z,!0),z.strm.avail_out===0?Ae:Pe):(z.strstart>z.block_start&&(Te(z,!1),z.strm.avail_out===0),ge)}function it(z,_e){for(var ce,se;;){if(z.lookahead<$){if(et(z),z.lookahead<$&&_e===i)return ge;if(z.lookahead===0)break}if(ce=0,z.lookahead>=K&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+K-1])&z.hash_mask,ce=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart),ce!==0&&z.strstart-ce<=z.w_size-$&&(z.match_length=pe(z,ce)),z.match_length>=K)if(se=t._tr_tally(z,z.strstart-z.match_start,z.match_length-K),z.lookahead-=z.match_length,z.match_length<=z.max_lazy_match&&z.lookahead>=K){z.match_length--;do z.strstart++,z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+K-1])&z.hash_mask,ce=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart;while(--z.match_length!==0);z.strstart++}else z.strstart+=z.match_length,z.match_length=0,z.ins_h=z.window[z.strstart],z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+1])&z.hash_mask;else se=t._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++;if(se&&(Te(z,!1),z.strm.avail_out===0))return ge}return z.insert=z.strstart<K-1?z.strstart:K-1,_e===c?(Te(z,!0),z.strm.avail_out===0?Ae:Pe):z.last_lit&&(Te(z,!1),z.strm.avail_out===0)?ge:me}function Tt(z,_e){for(var ce,se,fe;;){if(z.lookahead<$){if(et(z),z.lookahead<$&&_e===i)return ge;if(z.lookahead===0)break}if(ce=0,z.lookahead>=K&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+K-1])&z.hash_mask,ce=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart),z.prev_length=z.match_length,z.prev_match=z.match_start,z.match_length=K-1,ce!==0&&z.prev_length<z.max_lazy_match&&z.strstart-ce<=z.w_size-$&&(z.match_length=pe(z,ce),z.match_length<=5&&(z.strategy===w||z.match_length===K&&z.strstart-z.match_start>4096)&&(z.match_length=K-1)),z.prev_length>=K&&z.match_length<=z.prev_length){fe=z.strstart+z.lookahead-K,se=t._tr_tally(z,z.strstart-1-z.prev_match,z.prev_length-K),z.lookahead-=z.prev_length-1,z.prev_length-=2;do++z.strstart<=fe&&(z.ins_h=(z.ins_h<<z.hash_shift^z.window[z.strstart+K-1])&z.hash_mask,ce=z.prev[z.strstart&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=z.strstart);while(--z.prev_length!==0);if(z.match_available=0,z.match_length=K-1,z.strstart++,se&&(Te(z,!1),z.strm.avail_out===0))return ge}else if(z.match_available){if(se=t._tr_tally(z,0,z.window[z.strstart-1]),se&&Te(z,!1),z.strstart++,z.lookahead--,z.strm.avail_out===0)return ge}else z.match_available=1,z.strstart++,z.lookahead--}return z.match_available&&(se=t._tr_tally(z,0,z.window[z.strstart-1]),z.match_available=0),z.insert=z.strstart<K-1?z.strstart:K-1,_e===c?(Te(z,!0),z.strm.avail_out===0?Ae:Pe):z.last_lit&&(Te(z,!1),z.strm.avail_out===0)?ge:me}function bt(z,_e){for(var ce,se,fe,Se,ot=z.window;;){if(z.lookahead<=ae){if(et(z),z.lookahead<=ae&&_e===i)return ge;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=K&&z.strstart>0&&(fe=z.strstart-1,se=ot[fe],se===ot[++fe]&&se===ot[++fe]&&se===ot[++fe])){Se=z.strstart+ae;do;while(se===ot[++fe]&&se===ot[++fe]&&se===ot[++fe]&&se===ot[++fe]&&se===ot[++fe]&&se===ot[++fe]&&se===ot[++fe]&&se===ot[++fe]&&fe<Se);z.match_length=ae-(Se-fe),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=K?(ce=t._tr_tally(z,1,z.match_length-K),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(ce=t._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),ce&&(Te(z,!1),z.strm.avail_out===0))return ge}return z.insert=0,_e===c?(Te(z,!0),z.strm.avail_out===0?Ae:Pe):z.last_lit&&(Te(z,!1),z.strm.avail_out===0)?ge:me}function vt(z,_e){for(var ce;;){if(z.lookahead===0&&(et(z),z.lookahead===0)){if(_e===i)return ge;break}if(z.match_length=0,ce=t._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,ce&&(Te(z,!1),z.strm.avail_out===0))return ge}return z.insert=0,_e===c?(Te(z,!0),z.strm.avail_out===0?Ae:Pe):z.last_lit&&(Te(z,!1),z.strm.avail_out===0)?ge:me}function St(z,_e,ce,se,fe){this.good_length=z,this.max_lazy=_e,this.nice_length=ce,this.max_chain=se,this.func=fe}var de;de=[new St(0,0,0,0,xe),new St(4,4,8,4,it),new St(4,5,16,8,it),new St(4,6,32,32,it),new St(4,4,16,16,Tt),new St(8,16,32,32,Tt),new St(8,16,128,128,Tt),new St(8,32,128,256,Tt),new St(32,128,258,1024,Tt),new St(32,258,258,4096,Tt)];function be(z){z.window_size=2*z.w_size,Ze(z.head),z.max_lazy_match=de[z.level].max_lazy,z.good_match=de[z.level].good_length,z.nice_match=de[z.level].nice_length,z.max_chain_length=de[z.level].max_chain,z.strstart=0,z.block_start=0,z.lookahead=0,z.insert=0,z.match_length=z.prev_length=K-1,z.match_available=0,z.ins_h=0}function G(){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=S,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(W*2),this.dyn_dtree=new e.Buf16((2*_+1)*2),this.bl_tree=new e.Buf16((2*V+1)*2),Ze(this.dyn_ltree),Ze(this.dyn_dtree),Ze(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(B+1),this.heap=new e.Buf16(2*H+1),Ze(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*H+1),Ze(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function je(z){var _e;return!z||!z.state?ke(z,h):(z.total_in=z.total_out=0,z.data_type=C,_e=z.state,_e.pending=0,_e.pending_out=0,_e.wrap<0&&(_e.wrap=-_e.wrap),_e.status=_e.wrap?O:X,z.adler=_e.wrap===2?0:1,_e.last_flush=i,t._tr_init(_e),m)}function ze(z){var _e=je(z);return _e===m&&be(z.state),_e}function Qe(z,_e){return!z||!z.state||z.state.wrap!==2?h:(z.state.gzhead=_e,m)}function ye(z,_e,ce,se,fe,Se){if(!z)return h;var ot=1;if(_e===y&&(_e=6),se<0?(ot=0,se=-se):se>15&&(ot=2,se-=16),fe<1||fe>A||ce!==S||se<8||se>15||_e<0||_e>9||Se<0||Se>k)return ke(z,h);se===8&&(se=9);var lt=new G;return z.state=lt,lt.strm=z,lt.wrap=ot,lt.gzhead=null,lt.w_bits=se,lt.w_size=1<<lt.w_bits,lt.w_mask=lt.w_size-1,lt.hash_bits=fe+7,lt.hash_size=1<<lt.hash_bits,lt.hash_mask=lt.hash_size-1,lt.hash_shift=~~((lt.hash_bits+K-1)/K),lt.window=new e.Buf8(lt.w_size*2),lt.head=new e.Buf16(lt.hash_size),lt.prev=new e.Buf16(lt.w_size),lt.lit_bufsize=1<<fe+6,lt.pending_buf_size=lt.lit_bufsize*4,lt.pending_buf=new e.Buf8(lt.pending_buf_size),lt.d_buf=1*lt.lit_bufsize,lt.l_buf=3*lt.lit_bufsize,lt.level=_e,lt.strategy=Se,lt.method=ce,ze(z)}function Ee(z,_e){return ye(z,_e,S,E,R,D)}function te(z,_e){var ce,se,fe,Se;if(!z||!z.state||_e>d||_e<0)return z?ke(z,h):h;if(se=z.state,!z.output||!z.input&&z.avail_in!==0||se.status===ne&&_e!==c)return ke(z,z.avail_out===0?b:h);if(se.strm=z,ce=se.last_flush,se.last_flush=_e,se.status===O)if(se.wrap===2)z.adler=0,Ke(se,31),Ke(se,139),Ke(se,8),se.gzhead?(Ke(se,(se.gzhead.text?1:0)+(se.gzhead.hcrc?2:0)+(se.gzhead.extra?4:0)+(se.gzhead.name?8:0)+(se.gzhead.comment?16:0)),Ke(se,se.gzhead.time&255),Ke(se,se.gzhead.time>>8&255),Ke(se,se.gzhead.time>>16&255),Ke(se,se.gzhead.time>>24&255),Ke(se,se.level===9?2:se.strategy>=j||se.level<2?4:0),Ke(se,se.gzhead.os&255),se.gzhead.extra&&se.gzhead.extra.length&&(Ke(se,se.gzhead.extra.length&255),Ke(se,se.gzhead.extra.length>>8&255)),se.gzhead.hcrc&&(z.adler=n(z.adler,se.pending_buf,se.pending,0)),se.gzindex=0,se.status=Y):(Ke(se,0),Ke(se,0),Ke(se,0),Ke(se,0),Ke(se,0),Ke(se,se.level===9?2:se.strategy>=j||se.level<2?4:0),Ke(se,L),se.status=X);else{var ot=S+(se.w_bits-8<<4)<<8,lt=-1;se.strategy>=j||se.level<2?lt=0:se.level<6?lt=1:se.level===6?lt=2:lt=3,ot|=lt<<6,se.strstart!==0&&(ot|=Z),ot+=31-ot%31,se.status=X,Ve(se,ot),se.strstart!==0&&(Ve(se,z.adler>>>16),Ve(se,z.adler&65535)),z.adler=1}if(se.status===Y)if(se.gzhead.extra){for(fe=se.pending;se.gzindex<(se.gzhead.extra.length&65535)&&!(se.pending===se.pending_buf_size&&(se.gzhead.hcrc&&se.pending>fe&&(z.adler=n(z.adler,se.pending_buf,se.pending-fe,fe)),Ce(z),fe=se.pending,se.pending===se.pending_buf_size));)Ke(se,se.gzhead.extra[se.gzindex]&255),se.gzindex++;se.gzhead.hcrc&&se.pending>fe&&(z.adler=n(z.adler,se.pending_buf,se.pending-fe,fe)),se.gzindex===se.gzhead.extra.length&&(se.gzindex=0,se.status=Q)}else se.status=Q;if(se.status===Q)if(se.gzhead.name){fe=se.pending;do{if(se.pending===se.pending_buf_size&&(se.gzhead.hcrc&&se.pending>fe&&(z.adler=n(z.adler,se.pending_buf,se.pending-fe,fe)),Ce(z),fe=se.pending,se.pending===se.pending_buf_size)){Se=1;break}se.gzindex<se.gzhead.name.length?Se=se.gzhead.name.charCodeAt(se.gzindex++)&255:Se=0,Ke(se,Se)}while(Se!==0);se.gzhead.hcrc&&se.pending>fe&&(z.adler=n(z.adler,se.pending_buf,se.pending-fe,fe)),Se===0&&(se.gzindex=0,se.status=U)}else se.status=U;if(se.status===U)if(se.gzhead.comment){fe=se.pending;do{if(se.pending===se.pending_buf_size&&(se.gzhead.hcrc&&se.pending>fe&&(z.adler=n(z.adler,se.pending_buf,se.pending-fe,fe)),Ce(z),fe=se.pending,se.pending===se.pending_buf_size)){Se=1;break}se.gzindex<se.gzhead.comment.length?Se=se.gzhead.comment.charCodeAt(se.gzindex++)&255:Se=0,Ke(se,Se)}while(Se!==0);se.gzhead.hcrc&&se.pending>fe&&(z.adler=n(z.adler,se.pending_buf,se.pending-fe,fe)),Se===0&&(se.status=oe)}else se.status=oe;if(se.status===oe&&(se.gzhead.hcrc?(se.pending+2>se.pending_buf_size&&Ce(z),se.pending+2<=se.pending_buf_size&&(Ke(se,z.adler&255),Ke(se,z.adler>>8&255),z.adler=0,se.status=X)):se.status=X),se.pending!==0){if(Ce(z),z.avail_out===0)return se.last_flush=-1,m}else if(z.avail_in===0&&Me(_e)<=Me(ce)&&_e!==c)return ke(z,b);if(se.status===ne&&z.avail_in!==0)return ke(z,b);if(z.avail_in!==0||se.lookahead!==0||_e!==i&&se.status!==ne){var Le=se.strategy===j?vt(se,_e):se.strategy===N?bt(se,_e):de[se.level].func(se,_e);if((Le===Ae||Le===Pe)&&(se.status=ne),Le===ge||Le===Ae)return z.avail_out===0&&(se.last_flush=-1),m;if(Le===me&&(_e===o?t._tr_align(se):_e!==d&&(t._tr_stored_block(se,0,0,!1),_e===l&&(Ze(se.head),se.lookahead===0&&(se.strstart=0,se.block_start=0,se.insert=0))),Ce(z),z.avail_out===0))return se.last_flush=-1,m}return _e!==c?m:se.wrap<=0?f:(se.wrap===2?(Ke(se,z.adler&255),Ke(se,z.adler>>8&255),Ke(se,z.adler>>16&255),Ke(se,z.adler>>24&255),Ke(se,z.total_in&255),Ke(se,z.total_in>>8&255),Ke(se,z.total_in>>16&255),Ke(se,z.total_in>>24&255)):(Ve(se,z.adler>>>16),Ve(se,z.adler&65535)),Ce(z),se.wrap>0&&(se.wrap=-se.wrap),se.pending!==0?m:f)}function We(z){var _e;return!z||!z.state?h:(_e=z.state.status,_e!==O&&_e!==Y&&_e!==Q&&_e!==U&&_e!==oe&&_e!==X&&_e!==ne?ke(z,h):(z.state=null,_e===X?ke(z,x):m))}function mt(z,_e){var ce=_e.length,se,fe,Se,ot,lt,Le,nt,gt;if(!z||!z.state||(se=z.state,ot=se.wrap,ot===2||ot===1&&se.status!==O||se.lookahead))return h;for(ot===1&&(z.adler=a(z.adler,_e,ce,0)),se.wrap=0,ce>=se.w_size&&(ot===0&&(Ze(se.head),se.strstart=0,se.block_start=0,se.insert=0),gt=new e.Buf8(se.w_size),e.arraySet(gt,_e,ce-se.w_size,se.w_size,0),_e=gt,ce=se.w_size),lt=z.avail_in,Le=z.next_in,nt=z.input,z.avail_in=ce,z.next_in=0,z.input=_e,et(se);se.lookahead>=K;){fe=se.strstart,Se=se.lookahead-(K-1);do se.ins_h=(se.ins_h<<se.hash_shift^se.window[fe+K-1])&se.hash_mask,se.prev[fe&se.w_mask]=se.head[se.ins_h],se.head[se.ins_h]=fe,fe++;while(--Se);se.strstart=fe,se.lookahead=K-1,et(se)}return se.strstart+=se.lookahead,se.block_start=se.strstart,se.insert=se.lookahead,se.lookahead=0,se.match_length=se.prev_length=K-1,se.match_available=0,z.next_in=Le,z.input=nt,z.avail_in=lt,se.wrap=ot,m}return Ei.deflateInit=Ee,Ei.deflateInit2=ye,Ei.deflateReset=ze,Ei.deflateResetKeep=je,Ei.deflateSetHeader=Qe,Ei.deflate=te,Ei.deflateEnd=We,Ei.deflateSetDictionary=mt,Ei.deflateInfo="pako deflate (from Nodeca project)",Ei}var zd={},SU;function yae(){if(SU)return zd;SU=1;var e=sd(),t=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var n=new e.Buf8(256),r=0;r<256;r++)n[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;n[254]=n[254]=1,zd.string2buf=function(o){var l,c,d,m,f,h=o.length,x=0;for(m=0;m<h;m++)c=o.charCodeAt(m),(c&64512)===55296&&m+1<h&&(d=o.charCodeAt(m+1),(d&64512)===56320&&(c=65536+(c-55296<<10)+(d-56320),m++)),x+=c<128?1:c<2048?2:c<65536?3:4;for(l=new e.Buf8(x),f=0,m=0;f<x;m++)c=o.charCodeAt(m),(c&64512)===55296&&m+1<h&&(d=o.charCodeAt(m+1),(d&64512)===56320&&(c=65536+(c-55296<<10)+(d-56320),m++)),c<128?l[f++]=c:c<2048?(l[f++]=192|c>>>6,l[f++]=128|c&63):c<65536?(l[f++]=224|c>>>12,l[f++]=128|c>>>6&63,l[f++]=128|c&63):(l[f++]=240|c>>>18,l[f++]=128|c>>>12&63,l[f++]=128|c>>>6&63,l[f++]=128|c&63);return l};function i(o,l){if(l<65534&&(o.subarray&&a||!o.subarray&&t))return String.fromCharCode.apply(null,e.shrinkBuf(o,l));for(var c="",d=0;d<l;d++)c+=String.fromCharCode(o[d]);return c}return zd.buf2binstring=function(o){return i(o,o.length)},zd.binstring2buf=function(o){for(var l=new e.Buf8(o.length),c=0,d=l.length;c<d;c++)l[c]=o.charCodeAt(c);return l},zd.buf2string=function(o,l){var c,d,m,f,h=l||o.length,x=new Array(h*2);for(d=0,c=0;c<h;){if(m=o[c++],m<128){x[d++]=m;continue}if(f=n[m],f>4){x[d++]=65533,c+=f-1;continue}for(m&=f===2?31:f===3?15:7;f>1&&c<h;)m=m<<6|o[c++]&63,f--;if(f>1){x[d++]=65533;continue}m<65536?x[d++]=m:(m-=65536,x[d++]=55296|m>>10&1023,x[d++]=56320|m&1023)}return i(x,d)},zd.utf8border=function(o,l){var c;for(l=l||o.length,l>o.length&&(l=o.length),c=l-1;c>=0&&(o[c]&192)===128;)c--;return c<0||c===0?l:c+n[o[c]]>l?c:l},zd}var A5,CU;function wae(){if(CU)return A5;CU=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return A5=e,A5}var TU;function pLe(){if(TU)return Fp;TU=1;var e=uLe(),t=sd(),a=yae(),n=Y8(),r=wae(),i=Object.prototype.toString,o=0,l=4,c=0,d=1,m=2,f=-1,h=0,x=8;function b(N){if(!(this instanceof b))return new b(N);this.options=t.assign({level:f,method:x,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},N||{});var k=this.options;k.raw&&k.windowBits>0?k.windowBits=-k.windowBits:k.gzip&&k.windowBits>0&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new r,this.strm.avail_out=0;var D=e.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(D!==c)throw new Error(n[D]);if(k.header&&e.deflateSetHeader(this.strm,k.header),k.dictionary){var C;if(typeof k.dictionary=="string"?C=a.string2buf(k.dictionary):i.call(k.dictionary)==="[object ArrayBuffer]"?C=new Uint8Array(k.dictionary):C=k.dictionary,D=e.deflateSetDictionary(this.strm,C),D!==c)throw new Error(n[D]);this._dict_set=!0}}b.prototype.push=function(N,k){var D=this.strm,C=this.options.chunkSize,S,A;if(this.ended)return!1;A=k===~~k?k:k===!0?l:o,typeof N=="string"?D.input=a.string2buf(N):i.call(N)==="[object ArrayBuffer]"?D.input=new Uint8Array(N):D.input=N,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new t.Buf8(C),D.next_out=0,D.avail_out=C),S=e.deflate(D,A),S!==d&&S!==c)return this.onEnd(S),this.ended=!0,!1;(D.avail_out===0||D.avail_in===0&&(A===l||A===m))&&(this.options.to==="string"?this.onData(a.buf2binstring(t.shrinkBuf(D.output,D.next_out))):this.onData(t.shrinkBuf(D.output,D.next_out)))}while((D.avail_in>0||D.avail_out===0)&&S!==d);return A===l?(S=e.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===c):(A===m&&(this.onEnd(c),D.avail_out=0),!0)},b.prototype.onData=function(N){this.chunks.push(N)},b.prototype.onEnd=function(N){N===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=N,this.msg=this.strm.msg};function y(N,k){var D=new b(k);if(D.push(N,!0),D.err)throw D.msg||n[D.err];return D.result}function w(N,k){return k=k||{},k.raw=!0,y(N,k)}function j(N,k){return k=k||{},k.gzip=!0,y(N,k)}return Fp.Deflate=b,Fp.deflate=y,Fp.deflateRaw=w,Fp.gzip=j,Fp}var Bp={},ti={},S5,DU;function mLe(){if(DU)return S5;DU=1;var e=30,t=12;return S5=function(n,r){var i,o,l,c,d,m,f,h,x,b,y,w,j,N,k,D,C,S,A,E,R,F,I,H,_;i=n.state,o=n.next_in,H=n.input,l=o+(n.avail_in-5),c=n.next_out,_=n.output,d=c-(r-n.avail_out),m=c+(n.avail_out-257),f=i.dmax,h=i.wsize,x=i.whave,b=i.wnext,y=i.window,w=i.hold,j=i.bits,N=i.lencode,k=i.distcode,D=(1<<i.lenbits)-1,C=(1<<i.distbits)-1;e:do{j<15&&(w+=H[o++]<<j,j+=8,w+=H[o++]<<j,j+=8),S=N[w&D];t:for(;;){if(A=S>>>24,w>>>=A,j-=A,A=S>>>16&255,A===0)_[c++]=S&65535;else if(A&16){E=S&65535,A&=15,A&&(j<A&&(w+=H[o++]<<j,j+=8),E+=w&(1<<A)-1,w>>>=A,j-=A),j<15&&(w+=H[o++]<<j,j+=8,w+=H[o++]<<j,j+=8),S=k[w&C];a:for(;;){if(A=S>>>24,w>>>=A,j-=A,A=S>>>16&255,A&16){if(R=S&65535,A&=15,j<A&&(w+=H[o++]<<j,j+=8,j<A&&(w+=H[o++]<<j,j+=8)),R+=w&(1<<A)-1,R>f){n.msg="invalid distance too far back",i.mode=e;break e}if(w>>>=A,j-=A,A=c-d,R>A){if(A=R-A,A>x&&i.sane){n.msg="invalid distance too far back",i.mode=e;break e}
vendor: 15,468 bytes, line 1128
1128if(F=0,I=y,b===0){if(F+=h-A,A<E){E-=A;do _[c++]=y[F++];while(--A);F=c-R,I=_}}else if(b<A){if(F+=h+b-A,A-=b,A<E){E-=A;do _[c++]=y[F++];while(--A);if(F=0,b<E){A=b,E-=A;do _[c++]=y[F++];while(--A);F=c-R,I=_}}}else if(F+=b-A,A<E){E-=A;do _[c++]=y[F++];while(--A);F=c-R,I=_}for(;E>2;)_[c++]=I[F++],_[c++]=I[F++],_[c++]=I[F++],E-=3;E&&(_[c++]=I[F++],E>1&&(_[c++]=I[F++]))}else{F=c-R;do _[c++]=_[F++],_[c++]=_[F++],_[c++]=_[F++],E-=3;while(E>2);E&&(_[c++]=_[F++],E>1&&(_[c++]=_[F++]))}}else if((A&64)===0){S=k[(S&65535)+(w&(1<<A)-1)];continue a}else{n.msg="invalid distance code",i.mode=e;break e}break}}else if((A&64)===0){S=N[(S&65535)+(w&(1<<A)-1)];continue t}else if(A&32){i.mode=t;break e}else{n.msg="invalid literal/length code",i.mode=e;break e}break}}while(o<l&&c<m);E=j>>3,o-=E,j-=E<<3,w&=(1<<j)-1,n.next_in=o,n.next_out=c,n.avail_in=o<l?5+(l-o):5-(o-l),n.avail_out=c<m?257+(m-c):257-(c-m),i.hold=w,i.bits=j},S5}var C5,EU;function fLe(){if(EU)return C5;EU=1;var e=sd(),t=15,a=852,n=592,r=0,i=1,o=2,l=[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],c=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],d=[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],m=[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];return C5=function(h,x,b,y,w,j,N,k){var D=k.bits,C=0,S=0,A=0,E=0,R=0,F=0,I=0,H=0,_=0,V=0,W,B,K,ae,$,Z=null,O=0,Y,Q=new e.Buf16(t+1),U=new e.Buf16(t+1),oe=null,X=0,ne,ge,me;for(C=0;C<=t;C++)Q[C]=0;for(S=0;S<y;S++)Q[x[b+S]]++;for(R=D,E=t;E>=1&&Q[E]===0;E--);if(R>E&&(R=E),E===0)return w[j++]=1<<24|64<<16|0,w[j++]=1<<24|64<<16|0,k.bits=1,0;for(A=1;A<E&&Q[A]===0;A++);for(R<A&&(R=A),H=1,C=1;C<=t;C++)if(H<<=1,H-=Q[C],H<0)return-1;if(H>0&&(h===r||E!==1))return-1;for(U[1]=0,C=1;C<t;C++)U[C+1]=U[C]+Q[C];for(S=0;S<y;S++)x[b+S]!==0&&(N[U[x[b+S]]++]=S);if(h===r?(Z=oe=N,Y=19):h===i?(Z=l,O-=257,oe=c,X-=257,Y=256):(Z=d,oe=m,Y=-1),V=0,S=0,C=A,$=j,F=R,I=0,K=-1,_=1<<R,ae=_-1,h===i&&_>a||h===o&&_>n)return 1;for(;;){ne=C-I,N[S]<Y?(ge=0,me=N[S]):N[S]>Y?(ge=oe[X+N[S]],me=Z[O+N[S]]):(ge=96,me=0),W=1<<C-I,B=1<<F,A=B;do B-=W,w[$+(V>>I)+B]=ne<<24|ge<<16|me|0;while(B!==0);for(W=1<<C-1;V&W;)W>>=1;if(W!==0?(V&=W-1,V+=W):V=0,S++,--Q[C]===0){if(C===E)break;C=x[b+N[S]]}if(C>R&&(V&ae)!==K){for(I===0&&(I=R),$+=A,F=C-I,H=1<<F;F+I<E&&(H-=Q[F+I],!(H<=0));)F++,H<<=1;if(_+=1<<F,h===i&&_>a||h===o&&_>n)return 1;K=V&ae,w[K]=R<<24|F<<16|$-j|0}}return V!==0&&(w[$+V]=C-I<<24|64<<16|0),k.bits=R,0},C5}var MU;function hLe(){if(MU)return ti;MU=1;var e=sd(),t=bae(),a=vae(),n=mLe(),r=fLe(),i=0,o=1,l=2,c=4,d=5,m=6,f=0,h=1,x=2,b=-2,y=-3,w=-4,j=-5,N=8,k=1,D=2,C=3,S=4,A=5,E=6,R=7,F=8,I=9,H=10,_=11,V=12,W=13,B=14,K=15,ae=16,$=17,Z=18,O=19,Y=20,Q=21,U=22,oe=23,X=24,ne=25,ge=26,me=27,Ae=28,Pe=29,L=30,ke=31,Me=32,Ze=852,Ce=592,Te=15,Ke=Te;function Ve(ye){return(ye>>>24&255)+(ye>>>8&65280)+((ye&65280)<<8)+((ye&255)<<24)}function ht(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function pe(ye){var Ee;return!ye||!ye.state?b:(Ee=ye.state,ye.total_in=ye.total_out=Ee.total=0,ye.msg="",Ee.wrap&&(ye.adler=Ee.wrap&1),Ee.mode=k,Ee.last=0,Ee.havedict=0,Ee.dmax=32768,Ee.head=null,Ee.hold=0,Ee.bits=0,Ee.lencode=Ee.lendyn=new e.Buf32(Ze),Ee.distcode=Ee.distdyn=new e.Buf32(Ce),Ee.sane=1,Ee.back=-1,f)}function et(ye){var Ee;return!ye||!ye.state?b:(Ee=ye.state,Ee.wsize=0,Ee.whave=0,Ee.wnext=0,pe(ye))}function xe(ye,Ee){var te,We;return!ye||!ye.state||(We=ye.state,Ee<0?(te=0,Ee=-Ee):(te=(Ee>>4)+1,Ee<48&&(Ee&=15)),Ee&&(Ee<8||Ee>15))?b:(We.window!==null&&We.wbits!==Ee&&(We.window=null),We.wrap=te,We.wbits=Ee,et(ye))}function it(ye,Ee){var te,We;return ye?(We=new ht,ye.state=We,We.window=null,te=xe(ye,Ee),te!==f&&(ye.state=null),te):b}function Tt(ye){return it(ye,Ke)}var bt=!0,vt,St;function de(ye){if(bt){var Ee;for(vt=new e.Buf32(512),St=new e.Buf32(32),Ee=0;Ee<144;)ye.lens[Ee++]=8;for(;Ee<256;)ye.lens[Ee++]=9;for(;Ee<280;)ye.lens[Ee++]=7;for(;Ee<288;)ye.lens[Ee++]=8;for(r(o,ye.lens,0,288,vt,0,ye.work,{bits:9}),Ee=0;Ee<32;)ye.lens[Ee++]=5;r(l,ye.lens,0,32,St,0,ye.work,{bits:5}),bt=!1}ye.lencode=vt,ye.lenbits=9,ye.distcode=St,ye.distbits=5}function be(ye,Ee,te,We){var mt,z=ye.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new e.Buf8(z.wsize)),We>=z.wsize?(e.arraySet(z.window,Ee,te-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(mt=z.wsize-z.wnext,mt>We&&(mt=We),e.arraySet(z.window,Ee,te-We,mt,z.wnext),We-=mt,We?(e.arraySet(z.window,Ee,te-We,We,0),z.wnext=We,z.whave=z.wsize):(z.wnext+=mt,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=mt))),0}function G(ye,Ee){var te,We,mt,z,_e,ce,se,fe,Se,ot,lt,Le,nt,gt,yt=0,rt,xt,Mt,ee,Oe,Ye,at,wt,kt=new e.Buf8(4),Sa,Ca,Br=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ye||!ye.state||!ye.output||!ye.input&&ye.avail_in!==0)return b;te=ye.state,te.mode===V&&(te.mode=W),_e=ye.next_out,mt=ye.output,se=ye.avail_out,z=ye.next_in,We=ye.input,ce=ye.avail_in,fe=te.hold,Se=te.bits,ot=ce,lt=se,wt=f;e:for(;;)switch(te.mode){case k:if(te.wrap===0){te.mode=W;break}for(;Se<16;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(te.wrap&2&&fe===35615){te.check=0,kt[0]=fe&255,kt[1]=fe>>>8&255,te.check=a(te.check,kt,2,0),fe=0,Se=0,te.mode=D;break}if(te.flags=0,te.head&&(te.head.done=!1),!(te.wrap&1)||(((fe&255)<<8)+(fe>>8))%31){ye.msg="incorrect header check",te.mode=L;break}if((fe&15)!==N){ye.msg="unknown compression method",te.mode=L;break}if(fe>>>=4,Se-=4,at=(fe&15)+8,te.wbits===0)te.wbits=at;else if(at>te.wbits){ye.msg="invalid window size",te.mode=L;break}te.dmax=1<<at,ye.adler=te.check=1,te.mode=fe&512?H:V,fe=0,Se=0;break;case D:for(;Se<16;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(te.flags=fe,(te.flags&255)!==N){ye.msg="unknown compression method",te.mode=L;break}if(te.flags&57344){ye.msg="unknown header flags set",te.mode=L;break}te.head&&(te.head.text=fe>>8&1),te.flags&512&&(kt[0]=fe&255,kt[1]=fe>>>8&255,te.check=a(te.check,kt,2,0)),fe=0,Se=0,te.mode=C;case C:for(;Se<32;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}te.head&&(te.head.time=fe),te.flags&512&&(kt[0]=fe&255,kt[1]=fe>>>8&255,kt[2]=fe>>>16&255,kt[3]=fe>>>24&255,te.check=a(te.check,kt,4,0)),fe=0,Se=0,te.mode=S;case S:for(;Se<16;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}te.head&&(te.head.xflags=fe&255,te.head.os=fe>>8),te.flags&512&&(kt[0]=fe&255,kt[1]=fe>>>8&255,te.check=a(te.check,kt,2,0)),fe=0,Se=0,te.mode=A;case A:if(te.flags&1024){for(;Se<16;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}te.length=fe,te.head&&(te.head.extra_len=fe),te.flags&512&&(kt[0]=fe&255,kt[1]=fe>>>8&255,te.check=a(te.check,kt,2,0)),fe=0,Se=0}else te.head&&(te.head.extra=null);te.mode=E;case E:if(te.flags&1024&&(Le=te.length,Le>ce&&(Le=ce),Le&&(te.head&&(at=te.head.extra_len-te.length,te.head.extra||(te.head.extra=new Array(te.head.extra_len)),e.arraySet(te.head.extra,We,z,Le,at)),te.flags&512&&(te.check=a(te.check,We,Le,z)),ce-=Le,z+=Le,te.length-=Le),te.length))break e;te.length=0,te.mode=R;case R:if(te.flags&2048){if(ce===0)break e;Le=0;do at=We[z+Le++],te.head&&at&&te.length<65536&&(te.head.name+=String.fromCharCode(at));while(at&&Le<ce);if(te.flags&512&&(te.check=a(te.check,We,Le,z)),ce-=Le,z+=Le,at)break e}else te.head&&(te.head.name=null);te.length=0,te.mode=F;case F:if(te.flags&4096){if(ce===0)break e;Le=0;do at=We[z+Le++],te.head&&at&&te.length<65536&&(te.head.comment+=String.fromCharCode(at));while(at&&Le<ce);if(te.flags&512&&(te.check=a(te.check,We,Le,z)),ce-=Le,z+=Le,at)break e}else te.head&&(te.head.comment=null);te.mode=I;case I:if(te.flags&512){for(;Se<16;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(fe!==(te.check&65535)){ye.msg="header crc mismatch",te.mode=L;break}fe=0,Se=0}te.head&&(te.head.hcrc=te.flags>>9&1,te.head.done=!0),ye.adler=te.check=0,te.mode=V;break;case H:for(;Se<32;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}ye.adler=te.check=Ve(fe),fe=0,Se=0,te.mode=_;case _:if(te.havedict===0)return ye.next_out=_e,ye.avail_out=se,ye.next_in=z,ye.avail_in=ce,te.hold=fe,te.bits=Se,x;ye.adler=te.check=1,te.mode=V;case V:if(Ee===d||Ee===m)break e;case W:if(te.last){fe>>>=Se&7,Se-=Se&7,te.mode=me;break}for(;Se<3;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}switch(te.last=fe&1,fe>>>=1,Se-=1,fe&3){case 0:te.mode=B;break;case 1:if(de(te),te.mode=Y,Ee===m){fe>>>=2,Se-=2;break e}break;case 2:te.mode=$;break;case 3:ye.msg="invalid block type",te.mode=L}fe>>>=2,Se-=2;break;case B:for(fe>>>=Se&7,Se-=Se&7;Se<32;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if((fe&65535)!==(fe>>>16^65535)){ye.msg="invalid stored block lengths",te.mode=L;break}if(te.length=fe&65535,fe=0,Se=0,te.mode=K,Ee===m)break e;case K:te.mode=ae;case ae:if(Le=te.length,Le){if(Le>ce&&(Le=ce),Le>se&&(Le=se),Le===0)break e;e.arraySet(mt,We,z,Le,_e),ce-=Le,z+=Le,se-=Le,_e+=Le,te.length-=Le;break}te.mode=V;break;case $:for(;Se<14;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(te.nlen=(fe&31)+257,fe>>>=5,Se-=5,te.ndist=(fe&31)+1,fe>>>=5,Se-=5,te.ncode=(fe&15)+4,fe>>>=4,Se-=4,te.nlen>286||te.ndist>30){ye.msg="too many length or distance symbols",te.mode=L;break}te.have=0,te.mode=Z;case Z:for(;te.have<te.ncode;){for(;Se<3;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}te.lens[Br[te.have++]]=fe&7,fe>>>=3,Se-=3}for(;te.have<19;)te.lens[Br[te.have++]]=0;if(te.lencode=te.lendyn,te.lenbits=7,Sa={bits:te.lenbits},wt=r(i,te.lens,0,19,te.lencode,0,te.work,Sa),te.lenbits=Sa.bits,wt){ye.msg="invalid code lengths set",te.mode=L;break}te.have=0,te.mode=O;case O:for(;te.have<te.nlen+te.ndist;){for(;yt=te.lencode[fe&(1<<te.lenbits)-1],rt=yt>>>24,xt=yt>>>16&255,Mt=yt&65535,!(rt<=Se);){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(Mt<16)fe>>>=rt,Se-=rt,te.lens[te.have++]=Mt;else{if(Mt===16){for(Ca=rt+2;Se<Ca;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(fe>>>=rt,Se-=rt,te.have===0){ye.msg="invalid bit length repeat",te.mode=L;break}at=te.lens[te.have-1],Le=3+(fe&3),fe>>>=2,Se-=2}else if(Mt===17){for(Ca=rt+3;Se<Ca;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}fe>>>=rt,Se-=rt,at=0,Le=3+(fe&7),fe>>>=3,Se-=3}else{for(Ca=rt+7;Se<Ca;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}fe>>>=rt,Se-=rt,at=0,Le=11+(fe&127),fe>>>=7,Se-=7}if(te.have+Le>te.nlen+te.ndist){ye.msg="invalid bit length repeat",te.mode=L;break}for(;Le--;)te.lens[te.have++]=at}}if(te.mode===L)break;if(te.lens[256]===0){ye.msg="invalid code -- missing end-of-block",te.mode=L;break}if(te.lenbits=9,Sa={bits:te.lenbits},wt=r(o,te.lens,0,te.nlen,te.lencode,0,te.work,Sa),te.lenbits=Sa.bits,wt){ye.msg="invalid literal/lengths set",te.mode=L;break}if(te.distbits=6,te.distcode=te.distdyn,Sa={bits:te.distbits},wt=r(l,te.lens,te.nlen,te.ndist,te.distcode,0,te.work,Sa),te.distbits=Sa.bits,wt){ye.msg="invalid distances set",te.mode=L;break}if(te.mode=Y,Ee===m)break e;case Y:te.mode=Q;case Q:if(ce>=6&&se>=258){ye.next_out=_e,ye.avail_out=se,ye.next_in=z,ye.avail_in=ce,te.hold=fe,te.bits=Se,n(ye,lt),_e=ye.next_out,mt=ye.output,se=ye.avail_out,z=ye.next_in,We=ye.input,ce=ye.avail_in,fe=te.hold,Se=te.bits,te.mode===V&&(te.back=-1);break}for(te.back=0;yt=te.lencode[fe&(1<<te.lenbits)-1],rt=yt>>>24,xt=yt>>>16&255,Mt=yt&65535,!(rt<=Se);){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(xt&&(xt&240)===0){for(ee=rt,Oe=xt,Ye=Mt;yt=te.lencode[Ye+((fe&(1<<ee+Oe)-1)>>ee)],rt=yt>>>24,xt=yt>>>16&255,Mt=yt&65535,!(ee+rt<=Se);){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}fe>>>=ee,Se-=ee,te.back+=ee}if(fe>>>=rt,Se-=rt,te.back+=rt,te.length=Mt,xt===0){te.mode=ge;break}if(xt&32){te.back=-1,te.mode=V;break}if(xt&64){ye.msg="invalid literal/length code",te.mode=L;break}te.extra=xt&15,te.mode=U;case U:if(te.extra){for(Ca=te.extra;Se<Ca;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}te.length+=fe&(1<<te.extra)-1,fe>>>=te.extra,Se-=te.extra,te.back+=te.extra}te.was=te.length,te.mode=oe;case oe:for(;yt=te.distcode[fe&(1<<te.distbits)-1],rt=yt>>>24,xt=yt>>>16&255,Mt=yt&65535,!(rt<=Se);){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if((xt&240)===0){for(ee=rt,Oe=xt,Ye=Mt;yt=te.distcode[Ye+((fe&(1<<ee+Oe)-1)>>ee)],rt=yt>>>24,xt=yt>>>16&255,Mt=yt&65535,!(ee+rt<=Se);){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}fe>>>=ee,Se-=ee,te.back+=ee}if(fe>>>=rt,Se-=rt,te.back+=rt,xt&64){ye.msg="invalid distance code",te.mode=L;break}te.offset=Mt,te.extra=xt&15,te.mode=X;case X:if(te.extra){for(Ca=te.extra;Se<Ca;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}te.offset+=fe&(1<<te.extra)-1,fe>>>=te.extra,Se-=te.extra,te.back+=te.extra}if(te.offset>te.dmax){ye.msg="invalid distance too far back",te.mode=L;break}te.mode=ne;case ne:if(se===0)break e;if(Le=lt-se,te.offset>Le){if(Le=te.offset-Le,Le>te.whave&&te.sane){ye.msg="invalid distance too far back",te.mode=L;break}Le>te.wnext?(Le-=te.wnext,nt=te.wsize-Le):nt=te.wnext-Le,Le>te.length&&(Le=te.length),gt=te.window}else gt=mt,nt=_e-te.offset,Le=te.length;Le>se&&(Le=se),se-=Le,te.length-=Le;do mt[_e++]=gt[nt++];while(--Le);te.length===0&&(te.mode=Q);break;case ge:if(se===0)break e;mt[_e++]=te.length,se--,te.mode=Q;break;case me:if(te.wrap){for(;Se<32;){if(ce===0)break e;ce--,fe|=We[z++]<<Se,Se+=8}if(lt-=se,ye.total_out+=lt,te.total+=lt,lt&&(ye.adler=te.check=te.flags?a(te.check,mt,lt,_e-lt):t(te.check,mt,lt,_e-lt)),lt=se,(te.flags?fe:Ve(fe))!==te.check){ye.msg="incorrect data check",te.mode=L;break}fe=0,Se=0}te.mode=Ae;case Ae:if(te.wrap&&te.flags){for(;Se<32;){if(ce===0)break e;ce--,fe+=We[z++]<<Se,Se+=8}if(fe!==(te.total&4294967295)){ye.msg="incorrect length check",te.mode=L;break}fe=0,Se=0}te.mode=Pe;case Pe:wt=h;break e;case L:wt=y;break e;case ke:return w;case Me:default:return b}return ye.next_out=_e,ye.avail_out=se,ye.next_in=z,ye.avail_in=ce,te.hold=fe,te.bits=Se,(te.wsize||lt!==ye.avail_out&&te.mode<L&&(te.mode<me||Ee!==c))&&be(ye,ye.output,ye.next_out,lt-ye.avail_out),ot-=ye.avail_in,lt-=ye.avail_out,ye.total_in+=ot,ye.total_out+=lt,te.total+=lt,te.wrap&<&&(ye.adler=te.check=te.flags?a(te.check,mt,lt,ye.next_out-lt):t(te.check,mt,lt,ye.next_out-lt)),ye.data_type=te.bits+(te.last?64:0)+(te.mode===V?128:0)+(te.mode===Y||te.mode===K?256:0),(ot===0&<===0||Ee===c)&&wt===f&&(wt=j),wt}function je(ye){if(!ye||!ye.state)return b;var Ee=ye.state;return Ee.window&&(Ee.window=null),ye.state=null,f}function ze(ye,Ee){var te;return!ye||!ye.state||(te=ye.state,(te.wrap&2)===0)?b:(te.head=Ee,Ee.done=!1,f)}function Qe(ye,Ee){var te=Ee.length,We,mt,z;return!ye||!ye.state||(We=ye.state,We.wrap!==0&&We.mode!==_)?b:We.mode===_&&(mt=1,mt=t(mt,Ee,te,0),mt!==We.check)?y:(z=be(ye,Ee,te,te),z?(We.mode=ke,w):(We.havedict=1,f))}return ti.inflateReset=et,ti.inflateReset2=xe,ti.inflateResetKeep=pe,ti.inflateInit=Tt,ti.inflateInit2=it,ti.inflate=G,ti.inflateEnd=je,ti.inflateGetHeader=ze,ti.inflateSetDictionary=Qe,ti.inflateInfo="pako inflate (from Nodeca project)",ti}var T5,OU;function Pae(){return OU||(OU=1,T5={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ER
vendor: 5,378 bytes, line 1128
1128ROR:-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}),T5}var D5,RU;function gLe(){if(RU)return D5;RU=1;function e(){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}return D5=e,D5}var zU;function xLe(){if(zU)return Bp;zU=1;var e=hLe(),t=sd(),a=yae(),n=Pae(),r=Y8(),i=wae(),o=gLe(),l=Object.prototype.toString;function c(f){if(!(this instanceof c))return new c(f);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},f||{});var h=this.options;h.raw&&h.windowBits>=0&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),h.windowBits>=0&&h.windowBits<16&&!(f&&f.windowBits)&&(h.windowBits+=32),h.windowBits>15&&h.windowBits<48&&(h.windowBits&15)===0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var x=e.inflateInit2(this.strm,h.windowBits);if(x!==n.Z_OK)throw new Error(r[x]);if(this.header=new o,e.inflateGetHeader(this.strm,this.header),h.dictionary&&(typeof h.dictionary=="string"?h.dictionary=a.string2buf(h.dictionary):l.call(h.dictionary)==="[object ArrayBuffer]"&&(h.dictionary=new Uint8Array(h.dictionary)),h.raw&&(x=e.inflateSetDictionary(this.strm,h.dictionary),x!==n.Z_OK)))throw new Error(r[x])}c.prototype.push=function(f,h){var x=this.strm,b=this.options.chunkSize,y=this.options.dictionary,w,j,N,k,D,C=!1;if(this.ended)return!1;j=h===~~h?h:h===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof f=="string"?x.input=a.binstring2buf(f):l.call(f)==="[object ArrayBuffer]"?x.input=new Uint8Array(f):x.input=f,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new t.Buf8(b),x.next_out=0,x.avail_out=b),w=e.inflate(x,n.Z_NO_FLUSH),w===n.Z_NEED_DICT&&y&&(w=e.inflateSetDictionary(this.strm,y)),w===n.Z_BUF_ERROR&&C===!0&&(w=n.Z_OK,C=!1),w!==n.Z_STREAM_END&&w!==n.Z_OK)return this.onEnd(w),this.ended=!0,!1;x.next_out&&(x.avail_out===0||w===n.Z_STREAM_END||x.avail_in===0&&(j===n.Z_FINISH||j===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(N=a.utf8border(x.output,x.next_out),k=x.next_out-N,D=a.buf2string(x.output,N),x.next_out=k,x.avail_out=b-k,k&&t.arraySet(x.output,x.output,N,k,0),this.onData(D)):this.onData(t.shrinkBuf(x.output,x.next_out))),x.avail_in===0&&x.avail_out===0&&(C=!0)}while((x.avail_in>0||x.avail_out===0)&&w!==n.Z_STREAM_END);return w===n.Z_STREAM_END&&(j=n.Z_FINISH),j===n.Z_FINISH?(w=e.inflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===n.Z_OK):(j===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),x.avail_out=0),!0)},c.prototype.onData=function(f){this.chunks.push(f)},c.prototype.onEnd=function(f){f===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg};function d(f,h){var x=new c(h);if(x.push(f,!0),x.err)throw x.msg||r[x.err];return x.result}function m(f,h){return h=h||{},h.raw=!0,d(f,h)}return Bp.Inflate=c,Bp.inflate=d,Bp.inflateRaw=m,Bp.ungzip=d,Bp}var E5,_U;function bLe(){if(_U)return E5;_U=1;var e=sd().assign,t=pLe(),a=xLe(),n=Pae(),r={};return e(r,t,a,n),E5=r,E5}var vLe=bLe();const Nw=Fa(vLe);var IU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xh=new Uint8Array(256);for(var bv=0;bv<IU.length;bv++)Xh[IU.charCodeAt(bv)]=bv;var yLe=function(e){var t=e.length*.75,a=e.length,n,r=0,i,o,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new Uint8Array(t);for(n=0;n<a;n+=4)i=Xh[e.charCodeAt(n)],o=Xh[e.charCodeAt(n+1)],l=Xh[e.charCodeAt(n+2)],c=Xh[e.charCodeAt(n+3)],d[r++]=i<<2|o>>4,d[r++]=(o&15)<<4|l>>2,d[r++]=(l&3)<<6|c&63;return d},wLe=function(e){for(var t="",a=0;a<e.length;a++)t+=String.fromCharCode(e[a]);return t},jae=function(e){return wLe(Nw.inflate(yLe(e)))},PLe=function(e,t,a){for(var n="",r=0,i=t-e.length;r<i;r++)n+=a;return n+e};const jLe="eJyFWdtyGjkQ/RVqnnar8Bb4lpg3jEnCxgEvGDtxKg9iphm01oyILrZxKv++mrGd3az6KC8UnNa0+nrUGr5lI11VVLtskF198FaU1Dns9w9OOkf7/ePDrJu90bWbiorCgpH2RpLZO9WqaCReqZ8lnReJqKTa/SwL8DXJctPs9Lxs4oSS+bAuVVjXC7/tG/lAxYV0+SYbOOOpm402wojckVlQ8+T4wVFdUDHXlaifrTs91Q/Z4PNeMLu7t3/U6746POm+7vW/dLNlWGuUrOlCW+mkrrPBXr/X+4/gciPz25qszQbhyeyKjG2XZb3ewR+9Xi/sMdVO5k+ebHemcaHzW/57p3/y+qQbPk967We//TxoP191hoVeUWexs44q25nUuTZbbYSj4o9OZ6hUZ97osZ05WTJ3AQ37jMOqQtblIt9QG7lWycKJuhCmeJGGhSOxffccyqPj/W728eXX4cFJNxvavAmRyQbH++HnGf34vdc/etXNFq54d50NXh+2X6/C137v+CnQH8gZmYdQfP6WXX8MCppQTYMlditCBL53/wfTQ65EFeNfvQ6erlQsqX21akJc1rGs0EoJE+NbMnlToZFAVEFkQ3iABW2uGH3CUK1ojUTgMWEbjfaWeUp5G6N5aCwRw5vddkOM98EVqRlPrBJ2E8OPZHSM6prJkrtnVrqNIWbtOjQrg8o7Zq2VDwxId5x3xMe0lpzBuVaa0WGpkkCkmgaON/3qBVODpaHQiIybXz3ZliTi3DO2D2PoNIZGMXQWQ+MYehNDb2PoXQxNYujPGHofQ+cx9CGGpjE0i6GLGPorhuYxtIihyxhaxtBVDF3H0McY+hRDNzG0CqfQLTmeNlZBBvr0+TnIKbmUuTS5Z1jUN6xtw8nBtEjLb7wxDOesmB5j+JfpIIYLmIZiWC6GZAz9HUMMvTItzESL6VqG9rZMKGOI4QaGXpjY+xi6i6H7GGKYdMeQPl9foBBW3GHark9Vo5OqgEd9oe+ZOPOnc3NcqmZgiUuomehYnt1xZ8daaSPZ8wBoyb0Jx3jOBLBtGyvbiRNOLXw0Sy+DpNKAAhpxq/gXYhD6NdMda6bwwyTH0kwhypI70p5wdhR7Gjia3JEhpvfDLCRKI7YcqYXJnxgv/g3vSthEhNNSEKIfCQByUkpurWQaNXjqNtqjSfHp0OdLOwSAG31E7h03uLRMvlbEtDPoq0rkhqvhlSFu40I7kfP9VoRLFrH+G7YLcypCQLkJ1delML5SwjPb6DIMmQxL54L1gyq+YIfMyKNNsQ4zHj8UnoMDdoZwfoMqkJxX7A6Cj3czWzLdqcC+GuGM9tCa4RobSp5J2gTnk0D5CVA0Pp1RAqn7hC0o5J3kqvkTsGyY6gwBHlqmHtqBh2x77UI9QimVS75PljgMA
1128jXDEljn0QNjvMlZIAju/pF0NH95VcFshSgnB3Ug+LhMkwYoVKOAUS+T2kZIG2DVcYInLXDTQkKUYHelH6kuGcEcbPE26aRPNklKOEQpNcCQHPp6k4jc5UYbRtkM7T4HcVsAvADWLtEGnq/M9t2G9e2Aw8xEM1CCQ4QDWq28cnKrmDHTAwcvgYNh1HJSqEKumdvVDlPDFOwjU8UyTpZZ4tTBohzYUSMaRAmdggBNgKLmzVsYGLjXbyujb6lm70CGSmnB1PsWJHuSYhQfupq/ioxBTRngkEaRuQEP3ICIPb/kAq/Axo6ZUEaQFFSStxwa/eDpiARDND4kqhIE+BG1Btp7hjKCjh6UKYt2xk7MkmMJ8PCMlGNy5XiSdvc6wYjYtIp5pSGBRTo9Z45R6Asw4bQ8HgrYhEJmTFsk6pWvyPfJOj4HiXNGFFQJw1hOCVaYgChNUOGcA6tD0DZCMSdDczMBDa5TFVWDqWn5i/yB+BByqARcGhx6ziqXVD4Ii2TqZmnLi8AS3L8dGqRoBIzwkM0LmXNpOAOKTNKbKciPBvg8XdZJ6RDoHEKO5meuGdDzmOiQMTrt0d63SVfAIDBJtgIwwaUvN7ps8l1r7v0I5lKPRUEV+rcqfaHlDvJH4FSdVBVCjk8IiXp87Jv/Ib90s/dk6gshTfPv8Zfv/wDUfBK2",kLe="eJyFWdtyGjkQ/RVqnnarcAo7vuE3jEnCxgEvGDtxKg9iRgxaa0ZEF9s4lX/fnrGdTVZ9lBcKTmvU96PW8C0bmqqStc9OsqsPwYlSdnaPDvb6naP+3v5+1s3emNpPRCVpwdAEq6TdOTW6mC61+hpksyBo/euCTrOg89MKUSm9/XUNwddSletGcbOcfo+90Cof1KWmdTu7e4S4N+pBFhfK5+vsxNsgu9lwLazIvbRz2Tw7evCyLmQxM5Won809PTUP2cnnnYOj7s7eQa97fNjvHvd2v3SzBS21WtXywjjllakbRb3eT4LLtcpva+lcdkJPZlfSunZZ1uu9ftXr9UjFxHiVP7my2drGh84f+Z+d3f5xv0uf/V77udt+vm4/jzqDwixlZ751XlauM65zYzfGCi+LV53OQOvOrNnHdWbSSXtHKOkZ0apC1eU8X8s2dO0mcy/qQtjiRUoLh2Lz7jmWB4cUto8vv/Zf97vZwOVNhGx2crhHP8/kj987uxShbO6Ld9fZyfF++/WKvu72Dp/i/EF6q3IKxedv2fVH2qAJ1YQscRtBEfje/R8sH3Itqhj/Ggx5utSxpA7VsglxWceywmgtbIxvpM2bio0EoiKRo/AAC9pcMfsJK2stV0gEHhOu2dHdMk/p4GI0p0YTMbzebtaS8Z5cUYbxxGnh1jH8KK2JUVMzWfL3zEq/tpJZu6JuZVB1x6x16oEB5R3nneRjWivO4Nxow+zhZKWASDcNHCv9GgRTg6WV1IiMm8ReriWJOPeM7YMYOo2hYQydxdAoht7E0NsYehdD4xj6K4bex9B5DH2IoUkMTWPoIob+jqFZDM1j6DKGFjF0FUPXMfQxhj7F0E0MLekQupWep40lyUCfPj8HOSVXKlc2DwyLhoa1HZ0cTIu0/MYbw3DOkukxhn+ZDmK4gGkohuViSMXQPzHE0CvTwky0mK5laG/DhDKGGG5g6IWJfYihuxi6jyGGSbcM6fP1BQphyR2m7fpUNXqlC3jUF+aeiTN/OjfHpW4GlriEmoGO5dktd3astLGKPQ/ALnmwdIznTADbtnGqHTnh1MJHswyKJJUBFNCI241/IwahXzHdsWIKnyY5lmYKUZbckfaEs6PY08DR5E5ayfQ+zUKitGLDkRpdASTjxX/hXQqXiHBaCkL0IwFALrVWG6eYRiVP/doENCk+Hfp8aVMAuNFH5MFzg0vL5CstmXYGfVWJ3HI1vLSSU1wYL3K+3wq6ZUnWf8t2YS4LCig3oYa6FDZUWgRGjSlpyGRYOhesH7LiC3bAjDzGFiua8fih8BwcsFOE8woqIrmgWQ2Cj3czWzLdqYFeg3Bmd2pNusVSyTNJG+N8SlB+AhRNSGdUgtR9whYU6k5x1fwJWDZIdYYADy1SD23BQ669dqEekaktF3yfLHAYBGqGBbAuoAdGWMkZEQR3/0g6mr+8qmBUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2j7IuGcEMqHibdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4CuzfbfhQjvgMDPRFJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNS8eaOBgXv9trTmVtbsHcjKUjkw9b4FyR6nGCVQV/NXkRGoKQscMigyN+CBGxCx55dc4BXYyDMTyhCSgk7ylkejHzwdkWCAxodEVYIAP6LWQLqnKCPo6EGZckgzdmKaHEuAh2dSeyZXnidpf28SjIhNq5hXGgpYZNJz5giFvgATTsvjVMCWCpkxbZ6oV74i3yfr+BwkzltRyEpYxnKZYIUxiNIYFc45sJqCthaaORmamwlocJOqqBpMTYvf5A/ERyKHSsCl5NBzVrmk8kGYJ1M3TVteEEtw/3YYkKIhMCJANi9UzqXhDGxkk95MQH4MwGfpsk5KB2DPAeRofuaagn0eEx0yQqc90n2bdAUMAuNkKwATfPpyY8om37Xh3o9gLg1YRFuhf6vSF1ruIH8ETtXJrSjk+IRQqMdHofkf8ks3ey9tfSGUbf49/vL9XxrnGMA=",NLe="eJyFWVtT2zgU/isZP+3OhE5Iy/UtDaHNFhI2IdDS4UGxFUeLbKW6AKHT/77Hhnbb1fnUFw98x9K5fzpyvmZDU1Wy9tlxdnUenChlZ3e//+awc7B32D/Kutmpqf1EVJJeGJpglbQ706VWX4JshEHrX4Wdn4SiUnr7q5jga6nKdaPvXBYqVISMvdAqH9Slpjd3dvuEuFP1KIsL5fN1duxtkN1suBZW5F7auWxWjx69rAtZzEwl6hc73741j9nx553+QXenv9frHr456h729m672YJetVrV8sI45ZWpG0W93k+Cy7XK72rpXHZMK7MraV37WtbrvX7V6/VIxcR4lT87s9naxovOH/mfnd2jw6MuPY967XO3ffbb5+v2edAZFGYpO/Ot87JynXGdG7sxVnhZvOp0Blp3Zs1urjOTTtp7QknbiN4qVF3O87VsQ9huMveiLoQtvkvpxaHYvH+J6d4+Be/j9//e9Pe72cDlTZxsdrzfP+pmJ/LH/zu7ewfdbO6L99e0crf98+rlzybY59JblVM8Pn/Nrj/S+iZeEzLEbQSF4Vv3f7B8zLWoYvxLMOToUseSOlTLJs5lHcsKo7WwMb6RNm/qNRKIikSOogMsaBPG7CesrLVcIRFYJlyzo7tjVungYjSnNhMxvN5u1pLxnlxRhvHEaeHWMfwkrYlRUzNZ8g/Mm35tJfPuipqWQdU9865Tjwwo7znvJB/TWnEG50YbZg8nKwVEuuniWOmXIJgaLK2kPmTcJBJzLVPEuWdsH8TQ2xgaxtBJDI1i6DSG3sXQ+xgax9BfMfQhhs5i6DyGJjE0jaGLGPo7hmYxNI+hyxhaxNBVDF3H0McY+hRDNzG0pJPoTnqeNpYkA336sg5ySq5UrmweGBYNDWk7OjiYFmn5jTeG4Zwl02MM/zIdxHAB01AMy8WQiqF/YoihV6aFmWgxXcvQ3oYJZQwx3MDQCxP7EEP3MfQQQwyTbhnS5+sLFMKSO0zb91PV6JUu4FFfmAcmzvzp3ByXuplX4hJqpjqWZ7fc2bHSxir2PAC75MHSMZ4zAWzbxql27oRTCx/NMiiSVAZQQCNuN/6NGIR+xXTHiil8GuRYmilEWXJH2jPOjmLPA0eTO2kl0/s0C4nSig1HanQJkIwX/4V3KVwiwmkpCNGPBAC51FptnGIalTz1axPQpPh86POlTQHgRh+RB88NLi2Tr7Rk2hn0VSVyy9Xw0kpOcWG8yPl+K+iyJVn/LduFOV3GaOBmuDvUpbCh0iIwakxJQybD0rlg/ZAVX7ADZuQxtljRjMcPhWfggJ0inFdQEckFzWoQfLyb2ZLpTg30GoQzu1Nr0lWWSp5J2hjnU4LyE6BoQjqjEqTuE7agUPeKq+ZPwLJBqjMEWLRILdqCRa69dqEekaktF3yfLHAYBGqGBbAuoAUjrOSECIK7fyQdzb9/r2BUIcrJQR0IPi6TpAEa1Shg1MvkbkO0G2DVUYInHXDTQUJUQLs2T7IuGcEMqHiXdDIkmyQlHKCUWmBIDn29SUTucm0ss9kUaZ+BuM0BXgBrF0hB4Cuz/bbhQjvgMDPR
1128FJTgAOGAVqugvdpoZswMwMFL4CCNWl4JXagVc7vaYmqYAD0qVSyjZJklTh0syoEdNaJBlNAJCNAYbNR8eaOBgfv8trTmTtbsHcjKUjkw9b4DyR6nGCVQV/NXkRGoKQscMigyN2DBDYjYy0cu8Als5JkJZQhJQSd5y6PRD56OSDBA40OiKkGAn1BrIN1TlBF09KBMOaQZOzFNjiXAwxOpPZMrz5O0fzAJRsSmVcwnDQUsMuk5c4RCX4AJp+VxKmBLhcyYNk/UK1+RH5J1fAYS560oZCUsY7lMsMIYRGmMCucMWE1BWwvNnAzNzQQ0uElVVA2mpsVv8gfiI5FDJeBScuglq1xS+SDMk6mbpi0viCW4XzsMSNEQGBEgmxcq59JwAjaySW8mID8G4LN0WSelA7DnAHI0P3NNwT5PiQ4ZodMe6b5LugIGgXGyFYAJPn25MWWT79pw30cwlwYsoq3Qr1XpCy13kD8Bp+rkVhRyfEIo1OOj0PwOedvNPkhbXwhlm1+Pb7/9C/NFF2U=",ALe="eJyFWdtSGzkQ/RXXPO1WmZSBEAJvjnESb8AmGENCKg+ypj3Wohk5ugAmlX9fzUCyW6s+ysuUfVqXvh61Zr4XI1PX1PjiuLg6C05U1Ns/Ojx42TsYHB4eFf3irWn8VNQUB4xMsIpsCwatU1DUSm8T+JpUtW7XP6NShToiEy+0ksOm0nHkIP53b9UDlefKy3Vx7G2gfjFaCyukJzundu74wVNTUnlhatE8a/XmjXkojr/s7O33d/YOBv3D3YP+68HB136xiEOtVg2dG6e8Mk1xvLM7GPxHcLlW8rYh54rjOLO4Iuu6YcVgsP9iMBjELabGK/lkymZrWxt6f8g/e7tHr4/68Xk06J673XOve+53z8PesDRL6s23zlPtepNGGrsxVngqX/R6Q617F+1qrndBjuxdRONu4ziqVE01l2vqHNgtMveiKYUtf0rjwJHYvH/26MGrvX7x6ee/l3uv+sXQydZPtjh+tXfUL07o1/+d3YPDfjH35fvrOHO3+3n1/LN19hl5q2T0x5fvxfWnOL/11zQq4jYiuuFH/38wPUgt6hT/Fkw0dKlTSRPqZevnqkllpdFa2BTfkJVtdiYCUUeRi94BGnQBY9YTlhpNKyQC04RrV3S3zCwdXIrKWFQihdfbzZoY66MpyjCWOC3cOoUfyZoUNQ0TJX/PjPRrS8zYVSxZBlV3zFinHhiQ7jjriPdpoziFpdGGWcNRrYBIt1WcbvotCCYHK0uxDhkzvwVyHVOksWd0H6bQmxQapdBJCo1T6G0KvUuh9yk0SaG/UuhDCp2m0FkKTVNolkLnKfQxhS5SaJ5Clym0SKGrFLpOoU8p9DmFblJoGU+iW/I8bSyjDNTp8zzIKVIpqawMDIuGlrRdPDiYEun4jVeG4ZwlU2MM/zIVxHABU1AMy6WQSqG/U4ihV6aEGW8xVcvQ3oZxZQox3MDQC+P7kEJ3KXSfQgyTbhnS5/MLJMKSO0y78bls9EqX8KgvzT3jZ/50bo9L3fYraQq1XR3Ls1vu7FhpYxV7HoBVZLDxGJeMA7uycarrOmHXwnuzCipKagMooBV3C/9GDFy/YqpjxSR+bORYmilFVXFH2hPOtmJPDUcbO7LE1H7shURlxYYjtdj6E2PFv+5dCpfxcF4KXPQrAEBOWquNU0yhRkv92gTUKT4d+nxqRwdwrY+QwXONS8fkK01MOYO6qoW0XA4vLXEbl8YLyddbGa9axNpv2SqU8SoWG26Gu0NTCRtqLQKzjalik8mwtBSsHVTzCTtkWh5jy1Xs8fim8BQcsDOE8xvUkeSCZncQvL/b3pKpTg32NQhnVo+lGa+yMeWZoE1wPAmknwBJE/IRJRC6z1iDUt0pLps/A82GucoQYNIiN2kLJrnu2oVqhHJLLvg6WWA3CFQMC6BdQBPGeJOTSBDc/SNrqPz5voLZClGOBHkgeL9MswpolKOAUS+zq43QaoBVxxmedMBMBwlRgd21eaSmYgQXYIt3WSNDtkhywiEKqQWKSGjrTcZzl2tjmcVmaPcL4Lc5wEug7QJtEPjM7N5tuNA1OExPNAMpOEQ4oNU6aK82mmkzAzDwEhgYWy2vhC7VirldbTE1TME+Kpcs42yaZU4dLJJAjwbRIAroFDhoAhZq37zFhoF7/ba05pYa9g5kqVIOdL3vQLAnOUYJsar5q8gY5JQFBhnkmRsw4QZ47PklF3gFNvZMhzKCpKCzvOVR6wdPRyQYovYhk5XAwY+oNNDeMxQRdPSgSDm0MzZilm1LgIUnpD0TK8+TtL83GUbEqtXMKw0FNDL5PnOMXF+CDqfj8ZjANiYyo9o8k698Rn7I5vEpCJy3oqRaWEZzyrDCBHhpghLnFGgdnbYWmjkZ2psJKHCTy6gGdE2L38QP+IeQQRXg0mjQc1S5oPJOmGdDN8trXkaW4L52GBCiEVAiQDYvleTCcAIWsllrpiA+BuAX+bTOSodgzSHkaL7nmoF1HjMVMkanPdr7NmsKaAQm2VIAKvj85cZUbbwbw70fwVwasCguhb5W5S+03EH+CIxqsktFl+MTQqEaH4f2O+TXfvGBbHMulG2/Hn/98Q/b2xEO",SLe=JSON.parse('
vendor: 6,428 bytes, line 1128
1128"eJyNnVtzG0eyrf8KA0/7RMhzJJK6+U2+zMX2mJYsEuJMzANEtihsgYQMEITaO/Z/P41CV+bKlaug86JQf6uArsrKXNVX8H8m3y9vb7u7+8m3k4t/btazm+7o5PmTZy+PTl88eXk6eTT56/Lu/tfZbTc0+Hu3eOju51ezb75bLq532maxYO2oarPb+aJndRCm3fzm425/Y8N/3M8W86tXdzeLoeXjYXv91/mX7vq3+f3Vx8m396tN92jy/cfZanZ1361+73af/PHLfXd33V2/Wd7O7sY+fvfd8svk239/8+T540ffHB+/ePTk8eOTRy+fHf/n0eR8aLxazO+635br+f18eTf59ptBBuHtx/nVp7tuvZ58+3TgF91qXZpNHj8+/svjx4+Hnfy6HAawG8z3y8/9ajeGo/+6+j9HT16+ePpo9+/z8u/L3b8vH5d/nx+9ul6+745+79f33e366B93V8vV5+Vqdt9d/+Xo6NVicfRm9z3rozfduls9DNTDOF8fzY7uV7Pr7na2+nS0/HD0y/xued9/7r4ZGi2OXv3taHZ3/X+Xq6P58AXrzfv1/Ho+W8279V+Gzv447Op6fnfz+9XHrsxA6cnv98NHZqvrqg4Nv599/vs4Ic+fvHg0eVe3np4cP5q8Wl/tAr0axR862/7m+PHzR5Pf76//Pp18+2QnDv+/2P3/9PF+vv7Z3a/mV0NA//0/k+m7ybfHz4dGvw5dWX+eDXH830d7fHJyssfdl6vF7Nb46fPTPf9jsxzi9X5hytOnz/bK3eb2/W6ibu6ydr1cLGYr4y+GiSn8c7e62qV7FZ4fH++F2e0grYf4mGQdLj0oM557/Xm26u4W3YeWRB+r3Zitd9+4/uQdfzEO9/Nis85duBqqdJZ38bH//LG7y82HocyXYiTrxWz9MQfrz261zHR512V4vxUt7z+uOtH2w3KzEnT+INqu518E7B46MbddiKmnw/xOpNXVcrG8y3jd3c6jZDOw2NlAot0fm9ki45tVN5SzD/PZkyc1abp1sZqqvHz+dJx7kX2vMvouo+8z+sH3/Oz5Hv2YO/NX/2BNhb/l7/p7Tph/5DD/lD/4c97jL156NeT/zB/8NffrLA/ot9zqdf6uN/mDv+d+vc0fPM8fvPBZOx0neppbvcvoMu/xXzn53g+L2afuPtiGhfz9oMU65c9FT7FUnK2v5vOr+epqc5tnbbOz7fWw/nR5j8XfQmfsY7M8nve51VVudZ1bieL8kD94k9HH3OV5Rv+d9/gpt/IStiXhNu/xLqNlRp9F1WerFxa4zpG4z9+1yR98yJWwza2Ek/aOdsc9xfRzV3f5FRPh+MXjmpWrRvtD2Xg/X1w3l/rr5VaYe1idPWL35TjNk+NJrbgPuwND9Fkfs1o7PiyWq7ng667xLVeb1bCMX3kAj0+wbNbzcuCaoluPWnRZ3Wzmg3K7vNdHDju5fPFX5Bh6S5wPc8HE8dNwKCcPB65nNzedSNs9x0MxOuDYzV236kTtD8dCs5vV7DOY2tOaWcNJRCd80MP7frY+EOHD6kofK9gERH04KRg/Pxxizz+v52shDWO9/7jchGPFtOyH5PaZW80eRD3Mrjb36tClePmHRfcla43Kup1drdThzvtVp3Z8vbyfXYWKc2k+zCQGwJQV1qF3trseQqqOUTd3N7PV5nYx24jdLG+Gw8xP4utmOA6Yl9uQsy688sOek+cjW66uPwzHeeHA0I9Q4iLrByCR+x7OYA/Pntoebgen2yxwF7ayzMRie70r+vVaLGCLuGNfeSK3I5KlGNRQn8Mp8ZD34hziH2lK3QliBvryH/PGlyY5qf51cfb86Cj3oC4X1/OHOSS0fyT2zA+YRXF4txsfOj/0ob4Rg3U596IygaHmr/T9hVJx3J6IGdWDfyb2zmeCPuBnAWknfs4weASchBxXJ1YDfX7yvIrjVQ+xK3IdXztjHvgodVx+VR3w8mjlaDRVP9KXw7FTqda3RWOFcCarhAzRw1yzJ/rha9z76ct66rn8s7u7EZn7Ju7Cz+LUID05DhbJocx9xQuJHc02xnrFY/Xznxw5i+rbj8uVGNUZ7d3DQFVgJ3pU8Kd1EaOwWTXRDjxienErFzjWm3KUsxL9jSnoUWzxaKtmgrebxf3886IX/WqU/9s4QEuk4Xjrfj5bXM8/fMhz1bet4de4H09YkSxeGwfT7MCq05auGuO9a9lgK2N+jQHyxZDqHy+/DUcMeA3OToFWy0/dHZ4ImTmuupv5Oh76eonGyYblONdFPdRYb4aqDucjHmw6hrTCbERm2Ur1fzU+8C+q8NOX9di1XOmK18Eszj/ef8zw+6YBLpRv2VjuGybTNVfHlvCqdfhwICtjgP18uVUavG9zhdaMtJae1jK6bu0517Ht++BhCa+Y9bigW9wLA78PJu2euF0ecMTUNfu6240YSWMNX8rjTK8FPvixq0/xCOfFySn4+JDAqyGR1/n7fud8Pa2Tv2gsJD8fXH9/iRPnpxJ2X0eZYrIFt4wYJuetGv8ldtviMETt42wBS0Mt8t2pSaxwnwu1BJgvx8MmT7WvTGCjFLrWgG6imeKAxmlVs6rPRn6XB4iWwbLnlhDXg010KmMbS/731AlbuMhtTs3Or+dXymh/iF8EB2aHDnd/pcNa625j3t4czuuD+3rV+M5XTZOOpwM2A/F73IgPHFD+2Fruad9+iVie3dkBWTwSsG87WAo0QeaXB/e0WN7s5vtuKcK9bJvpJq9jNYOGr2pU8s3Bye1gJfeYN9L3Tq7jdnHnLh80u+e3lrsfN7u7kf95NPm5W939NpuvdveQ/z15tbtbPXn0zenj/zwat/buEdC+nxGNpo7wb8PWU9/au0pAODAUzsL3nOUu4NIbuE1VoPv6Dyg4T1DGkAW2vzoU0L5wEL0OW2+HrZe+VWOGKIzehfMQi/M6ekBh9MBh9EDr6AHR6EGx0QMb6zqwYidILoatF7Y1Hbae2dblsPXkiW/WISGDvgPeDJsnvlU/CCjEAjh8H9AaC0AUC1AsFsAsFsDGWDh5CJmwDVoft/KI+tzzsRGWpiEqDuNUpM65UqsC5WqIata4LNyqnuXv5hI2rurYxFzMJlFFG9dlbTLXtglU4Mapyit/nRHUuyEqeueq8qt6niPKHmBcGYGJ2Q1MIkswrn3BZDYHE9ghTIg2UTF4RUVgGBWhaxhj6zBB+EfVwEQMUd0ZV3ZiYrsy2ViMa3cxmS3GBPYZE6LZVPyQE3KbW/UCNQIhXGg0A3QhQ1TfxsmFnLMLVQVcyBC5kHHpQlU9y9/NLmRcuZCJ2YVMIhcyrl3IZHYhE8iFjJMLVf46I3AhQ+RCzpULVfU8R5RdyLhyIROzC5lELmRcu5DJ7EImsAuZEF2oYnChisCFKkIXMsYuZIJwoaqBCxmi4jOuXMjEdmWyCxnXLmQyu5AJ7EImRBeq+CEn5Da36gVqBEK4EIYGrShyqvQokimRyM4UZLCnyMmjoiiNKjQ5a+yPLSuKyrdii2xeUScHi6K2sdiGvSyqZGhRJFcL4usGB3+LnEyOROV0ocl5Y17Y86KojC+2yO4XdbLAKGofjG3YDKPKjhjVaItBA28MHAwycHTJKLBVRlX4ZWgAphk5GUYUlX3GFl/xFTbSKGo3jW3YUqPKvhrVaK5Be2jUxbbRvm/xQ/ETrusEPRcpGRVK5LdBYrcFEbwWKTktStJnocGZ3A97LErKYVHP/ooquStK2luxBTsrauSrKJGrgvRaUnBUpOSnQVJuCg3OZezZSVFSPop6dlFUyUNR0g6KLdg/UWP3RC16JyjgnEDBN4GiayJmz0RNOCbI4JdIqdpRUl6J+kEvYJ9ESbsktmCPRI0dErXoj6A8yAzfyra9pu1ICVccR4+WaIhMxTiZoXN2wqqADRoiDzQuDbCqZ/m72fqMK98zMZueSeR4xrXdmcxeZwIZnXFyucpfZwT+ZojMzblytqqe54iypxlXhmZidjOTyMqMax8zmU3MBHYwE6J9VQzeVREYV0XoWsbYskwQflU1MCtDVH/GlU2Z2K5MNijj2p1MZmsygX3JhGhKFT/khNzmVr1AjUAIF6p9RRtyRhXuAhkRCOxEJoEVOSMvckGakcln4vvZjlxQfuRqNiTXyJFc0JbkOnuSK2RKLpArmfBaMPAlZ2RMIChnMvlcxJe9yQVlTq5md3KN7MkF7U+us0G5wg7lSrQo4+BRxsCkjKFLOWSbckX4lIlgVM6oQF1QVuXqgfpls3JBu5XrbFeusF+5Eg3L+IPI1a1o1yvWiolwrdoxdC1nZAQukGuBwK5lEriWM3ItF6RrmXwmvp9dywXlWq5m13KNXMsF7Vqus2u5Qq7lArmWCa8FA9dyRq4FgnItk89FfNm1XFCu5Wp2LdfItVzQruU6u5Yr7FquRNcyDq5lDFzLGLqWQ3YtV4RrmQiu5Ywq1AXlWq4eqF92LRe0a7nOruUKu5Yr0bWMP4hc3Yp2vWKtmAjXWo2/6OG7q4RMoGLyK8PsVqMAXlUJOVXF0qdG8Sx9L3tUxcqhqpb9qSrkThVrb6oqO1Pl5EsVkyuN+HUi4EiVkB8ZVm40iucphuxEFSsfqlp2oaqQB1WsHaiq7D+Vs/tUHr1npOA8IwHfGQm6TkXsOZULxxkl8JtKqLIqVl5TtWbNsc9UrF2mquwxlbPDVB79ZaQPKeu2qU2fiR69cJUx19FWDFHhGidjcc7OUhWwFkPkLcaluVT1LH8324tx5S8mZoMxiRzGuLYYk9ljTCCTMU4uU/nrjMBnDJHROFdOU9XzHFH2GuPKbEzMbmMS2Y1x7Tcms+GYwI5jQrScisFzKgLTqQhdxxjbjgnCd6oGxmOIas+4sh4T25XJ5mNcu4/JbD8msP+YEA2o4oeckNvcqheoEYjsQt8N9FXcip8tqDoGIBHSwvUeYiALoiAVRvEpLISmkFq+jnbV9cS3LJ0che4CxwRzWrsLiKYcFBsIMBsIsHEge/LDGPdT34pu+gPGHZDw1h8o7kCjo/4Q4g7Mugts7C6QaJs/jCXvW9OwtSv0575VRwcIuux0/3tsdXJ3ZPzJNUOj/2L4DFEMjVMgjatomphDahLF1TgH1wSOsAkxzIYp1pVfZDTNCEJviOJvPE9ClWgmKk7TUV4IjNNREU9H5TwdlcvpqKKYjirxdFSepqMKaTqqQNNRMU/HyC8ymmaE01ERT0flYjpGiadjxDQdfx1n4oVv1V0BqvEHFEIPHDoEtAYckMUamIUZ2BhhIDW4jnbjPPatOgJAdQSAwgiAwwiA1hEAshEAsxEAG0cApI7AUZ2tJ48N2UyN7Kdxqo59Kw70J5wqQGKgP9FUAY0D/SlMFTAa6E8wVUDiQH+CgTqxcTraxK08zE1jTBs5pk0eEx+SgSJGuxGj3YTR/jzZn/Kc+FY8LipIHAQVng6CCo0HQQXJA8mi0OFRYfV8BlA8Ftqhctzy1LbsWMhRPYFBFA6PnOPhEVB7TTRgO2py5MdGzvzYyNhyNwLfskg7ipF2jpF2apF2xJF2xSPtzCLtyCJtaBPivsn5oc47fp6oU46fJ+ls42eR1aCI/ODTi58nfGaxI70tUGUrLtEFpYU2vIsf6oIECgGpKhrUJAeGGlCMSNXhokYcOZKpyEileosqJD8JVIWkUkGyKmqTmuQy5Qa5YqkFFS+pXMckc0lHGaqbBCp0UlXNU5Nc/tSAnIBUbQrUiP2BZLIKUsk1orppJRJ7CalfLyThMNTgYCE1fIcaHS6k5EYkR2OKIngUCWRXpCbn+mWC1/DKVrx8t0fiyt1O2B3ej5eddptTO0bdbZULWce+aSUODOvScfwFzUE6jZLgfo3nl0m6vPPLRF3Z+SW/o+qIgnDwHVVTMRz4BueLiDAw+Q1OFkSIqtaKU9BbYp8DwWFrv/X4S8wriCAJFEdWVTRjG4xpVCCyUcD4ksJRJlnEOrZoRVy0Otykb4WS56BdwGOD0V5xDgxR9J2ruFcVI14ZxLoijLIxjq8JIrJVa8U06C2xz4HgCBpPsRuO08oJ5lPfirccCop3gwoSNyAKT/ceCo23HQqiWwqF0d2EwsKNhELqeunorZn5Gc45ojDdLlyE75mGrXdhy6/QnE3SxZmzibous6P13Nd3aee+I6oWA9NgiObCOE2IcTUrJuapMYnmxzhPkgk8UybE6TJMc4brDoWBZ6+x7pB6kb97mtG7jGBa00LEPE9wlWiWK+apDi9TwXxHTpMeRZr5KKrpjy1yDkSdEiGKnA1R5ZSIasyLqFFypPc6VfQ4TQ6916maXDT2N23wdw0O+aNfb5RizqSgUzoFjXMKXkSBjEJK+YQSZRNKKpdQz5mEKuURSpxFqHEOoRYzCBXKH3qHLceJc6f9DltucCH3M5X0naSQMerVLiHlbAGVcgUUzpT6pgCkiSHKEeO
vendor: 7,690 bytes, line 1128
1128UIMZVdpiYU8MkygvjnBQmcEaYENPBMOUCvuxDYeAsaLzsQ+pF/u5pRu8ygmlP78YwzxNeJZrtinmq47k5zjgrNPEs0/yzrNKA2+Rs4BaUFCxzbrDOKcJ6zBRWKWFIftuMKadPklUWUaOL5n6nTeVdU4EMY4USjeWcb9SC0o5Uzj57uh/yzhllnAuUay6oLHM155drlFkucE65wtnkSswj55RB4UUejghnTetFHpYvxPdPBXsnGORFft8lCTkXTKMsMM7zX083YfoN0ewbp8k3rubexDz1JtHMG+eJN4Hn3YQ47YZp1vEaBIWB57xxDYLUi/zd04zeZQTTnS5KMM+TXSWa64p5qutTYzDVhmiqjdNUG1dTbWKeapNoqo3zVJvAU21CnGrDNNX44CeFgae68eAnqRf5u6cZvcsIpjo9J8k8T3WVaKorpqn+bZzl8cmE33CGkdXZRUZP1rkQHq1z7M/WOYNH6BzCM3QO7SE6R3UGgflzMmUrXjErKD7RWJC4q1J4uq5WaLx/UhDdDymMboIUFu58FBLvKv4G8zZeTdyh2KDLg7L7iIj0oDo5qHCbEHAeayfG2omxLkOK2f0+QOKRr8LTrZxC44NeBcmHw4tCT38VFh8JLyg+2/UbVscY/dcTfMS0bMVHTAsSj5gWnh4xLTQ+YlqQfMS0KPSIaWH0iGlh4RHT155GPow6tD15M9nfzYet+GxOQeLZnMLTszmFxmdzCpLP5hSFns0prE4RoPjY0ZvRn2GrZj6i4MounMetPN7zxnjP5XjP83h5IkER4z2nZ5HewEQ68WXkzQQfMnwzrhSuXcal+Q2tDyOtVzFh9g1RSIyruJiYg2MSRci4DpPJHCsTKEGMU5bgdWhGlC+N69CkngvUiJXMIRPbseJsMn44VimvTODkMiFmWL7UbghyDa+rUyvOOnVdfZTqg8SQeoYonMZVOE3M4TSJwmlch9NkDqcJlHrGKfUqfysQpZ5zlXpVPReoESuZeia2Y8WpZ/xwrFLqmcCpZ0JMPXy0nTIEUg8fbadWnHrq0fYqpefYjqXAoT3wHJtuIsKsn2PTaiPkjefYtMypqp9jk+rbpsDJe+h5B9nmvCkcjLlO6tjkazFPCR7V/5+Y52SPckr5KFPipwdBZJZiEaTnQOQnUkE0nwLZNximu5z9vfSt+g2A6hkToDApwGEPQGv4AVk4gVkMgY2BA1Lz15G/oPoWSxiQONV4S8UKNJ5qvBVlCQqdarzFAgQUTzV2aHeO98K34rsaBcV3NQoS72oUnt7VKDS+q1EQvatRGL2rUVh4V6OQ+K7GDl0tFzTyeu7qbXafeOZbdZSAqrEgwlECh1EihVNXwHXwgGzwwGzwzj72nz925Zzr2NgyjGqZZ2vZmJqlnJplnho+nQVFTJqdzgLKM2Sns45WcSsPZBW93IV1dzvPU74JpbjJ9rFpeMVGesUmewU/kgqKcJGNcJFNcpFtmPA+buUk7XPm4buILwlRENK7iMxVhNS7iCxRrPK7iCxwbPhdRMbktXj8fkqIXFcfv7OY/TcdvzPXTpyP31kgT07H78TBxQxRrRgnnzauHMHEbAsmkTcYZxswgQ3chOjihsko/LXPhQodmXrFXa4Ftnfj5PHOhdGb2K45Zfmmke8bZ/M3gVeAKqRloArLHAxeEIwfygGxNJjUyIHGImFyK0V4uTDeSAVeOCpfCdQYul5HqioWkyrBimKo4ahybTGx7Zy8yhjXS43JLWNNi44J2li3Odt6gRrlpFajcKCPa1IUOI5R5fUpqjLWsYmIeGzAcY9qCm+UU5CjTKGOIq9k6XLAqRR4VTtwOUA3ESucvhyg1cZq17gcoGVe+fTlAKmi7UeBiz6qvCJGVXpibCKcMTZgf4xqssEop/UyyrRqRpENM6jsaCTGdTS+SNeq5bSmRpVXVlLV+hqbfM1L5FobW/CKG9W07kY5rb5BzmtwfMmuFc60Hkf16xmo1ubY4GAGttbp2OhwmqY1O6oHEzGt30FdNYWDYWus6KGNWtdDA1zdo3BwbdIrfWzytdUnrfpRbaz9sdHhJSofB0T50BK1bdVA3xQOWkM+Sjif4BM953g8ACg+x3OeVn7g6XriOa7xgOiZnfOwmgMLT+qc47rtqNroiRH6IZR6PRnH2nj1xjmN+tCrNy7m8TdevXHOkWi9euNCjEnj1RvjFJ30ysrIG6+sEKdgHXplhUQVtq+8skI6BfDgKyukcigPvLJCGgVVvr2hIsjhlW9vBEqhbb+9ESQV1oNvbwSVQnrg7Y2gcTibb28EhUIpXm3IseIw5lcbHFEAG682OFeha7/a4BIFrfVqgwscLv1qg2MKFL8SQKHgEDVfCUgKBezwKwFJVuH76isBqQUF8yuvBCSdQ3vwlYCkUqAbz8LruHLYxbPwwCjUrWfhQVDhPfAsPGgU0uaz8KBwGBvPwgOn0KVHxzkqHC77iW0IlzMKlwsULhdUuFzN4XKNwuUCh8sVDpcrMVzOKVwmULiMc7jGXw6GYFVCoaqYAlWxClPVcpCqQiGqmANUOYen8hicSik0I6bAjJTCcjGG5IVvxdOVCwwFIHG2d0EhABrP6y7C0IHRNYQLGDKQeJK2Q/6zzGUrzlxB8SzLhbO4FVOhIDHfhae5LjTOc0Hy94KLQrNfWD0/BRSnd4d20/rMt+IpS0E1BIDEdYvC0ylNofH6Q0F00aEwutJQ2DhjQOoIHMXT2YtJekR7h+Kguzw5dqUGkZ6vTs5XuBADOE9jJyarozLdMbu44tm5u6Dy0rfiKXlB4jy88HTyXWg84y5InmYXhc6tC6s5Biheyr2Y5Ke2dyxfiNjRTZjZTc7GTSP1NjL1Njn1+DICKCIpNyIpNyEpp6PrwVbs9RRdD5AYyJRcD2gcyDS4HjDq7hRcD0isoekEH7iboncBEo95Tcm7gMYHuqbCu0ChR7em6F2A4oNx09G7Tn0r3gyYoncBEjcFpuRdQOPl/2nwLmD0q7VT8C4g8Vr+FLzrCRC8Cj0drWv/I2VTtC5A9nYJoPwLbVOyLqT4donj+BNt02BdwPztEmNmXT7UZUi4ZS6SZaMilrIilrki2LpAEbVi1gUoFwZdqJ2Sc/m87Zzr1MZvzgUoJp5zTDynlniO+GaTK56SzjwlndWUNNKHeupz3fepvi9Hwxt/qekSHQ+ZvZEGLL6IAwK+iQPYXsUB5m/cAPRXbgDWd24A2RtpznbW99y34ot8l8n6gKd3+y7R+gDRxIFigwFW8xJQ7bajmS2wl2h9gOLN4stkfcDTscElWh8gOgK4DNYHLFxHv0Trc1RL6CmQW/xl5svR+174VjyfuETvQ5TPJy7J+5CC9wGOpxmXwfuA0WnG5Wh0MARzOmTq1cxL8jrE9GrmpXA7lPitzUv0O2T0hublJP8Y9iVZns/XJjbaiIFuWgPd6IFuxEDZ91BSA3XnQxhfT7206/RgBukmRBLY0/RtiKQKd0s3IpKQfC7fikgKOV66GcECeF96x4y5ckH1jhlL5Ietd8xYZmdM75gxJ4+sHIzSELmlcbJM48o3TczmaRI5qHG2URPYS02IhmqYXNVvMoVS5XtPXANgc4bIaY2T3ToXnmtiNl6XsvuaRhZsnH3YBDbjKizFoJMtmyAty1ThW6axeZnQcDDTk42ZwqZtAjt3upPIgvDwKm1E8+TmJhyMj/J101rxaTm86c34ZK83hQyfbvlVJ1T3/JTGzt+866caCP9X9/2UllYBeedPibQWqHt/QoMVASktCiipdQH1vDSgSqsDSnqBwBa8RqBGywRKtFKABIsFUlovUKIlAyW1aqCeFw5Uae1AiZcP1HgFQS0uIqjQOhJuBgfHELeJRYGBaSOlNQUlWlaCJFYW1PPiEtS8vqBMSwxKvMqgxgsNaEsdkrTcoCYdFRsIU0WZfRW1hrVik+SuKPIChBqvQepRAaGJlQjUjf5QWo9Q+1oA1aqE8oEAttYmbHIogHmFQjEuUkM5TfxXQsqW/66PoXj/yYXd3yTc/5WH3dY2bPl1nrIVr/MUlK7zVNfDHhmibhmXfasqdLCibUZ97gH313ju9Ngx7LQh6rRx2emqQqcr2mbU5x5wp43nTodnlaDnkVP3oyjHEJrAQALfNnjf6B+PK4p5cJDuMDSkNDCU5LCgAQwK6FbSXvaJh4NSHkx9zAdGYoiGYVyOoaowgIq2GfW5B9xv47nT9tgH9NoZddsF2W+ToePGtoL1oh/cdxdy5+0hDOi8M+q8C7Lz4c/Tjx0Nf56eWS/6wZ2Xf55+1MYHJaDrlVDHK5bdhr96PXYQ/up1JH3aN3dX/NXrUam/QAe9NUTdNS77i38kd+we/pFcQn3uAfdZ/ZHcvfR+oAvbc9ny4wRDqpdF8IObijbhq+nv4b1PxxrAZd/o7+G9FwcUoNCN0Pfh8AFY+LWK92OkfauPW3kMOY5XA/VA7LY+Be2T+gGRqzH4sBX3dZWDD0K8xXs1dtx70MeZvKKOj7QeC3zMCIZgSPamqguBaETGD38RjQ2PbaiTPEp1bDNK9uJrRjBUQ7KHVV0IREM1fviLaKj4viR1koeq3pes0nBat1jMaLAGcbgOdT9NX0jIg3bla1/HAzelV11Og3clD39/cjRZf55d7T5yOtJywp3/bM1xlhta/MLh9GxybTstW1f7v10LyE38Ovj3dR2ob9kIHeHQ9nTcA+7YEO298of86W1GvUDUI+OpW7uKG4O03zleSj028hA+sA1bX8JWH7diR1J97yldpx87whd2jyN+yJ/fZvQlo14g6qb0or1EPz4w9pVfTz+O+CF/fpvRl4x6gaiv0kxGSbwmUjus3hI5FtpD4+u2Df6lwfsW5+G0zqpGPV+IG0ckrsEcJ+VBftFW0i+S9prSKBonU1X1a3M8CFB4FCA96O/aavxF476BeSio5bHQayHjOPitkOOIH/Lntxl9yagXiPqrzgdHiV8PGDub3g44Jv4gvmIr2BfBesWoy/I0cNT4Gf2xz+kR/WPiD+IrtoJ9EaxXjPosz/722ocJXiSvpItb8aigoHotHFH+AePC05HDnuKflHUcf9e4IPr14sLo14t3bGlHOWUrHjIVJE6KCk8nGoXGk6KC5ElRUeikqLB46FVQfDr0wyRcgq6IDp1OohDozX6unvjGOGwg40whgTgA9jAg9GkCOsYGSA0AoDpHjvykXVxeaF5aqO1gpEbicA3HMTvOAzctjd6VFAKTYhwMUzCMU0TyZeCbxmXgm4OXgSOEMOkfgdBiDNmBn4DQLVL42j8AoRvEUDZ+/kGrFNao3rTCxCEmVQW6/knNY9+KNsN/SHNPP43utHfcT+hOgKJ9Ok+W/QndCRDfA3LFHdSZXVVyZHfK9ij/SoYWaCyHfiVDN8kjbPxKhlb1uFu/kqFlikbjVzL26iKszouwBi/y6ruQ6+4inwct8knPonHSs2if9MQrAvj1+QchtEC7av8gxNig/v2XbUa9QPT16u/P7qXbCV7pLFux2goSi3rhqQoLjYt6QXJRLwot6oXRlc7CwpXO2wn+2d1bHDEg6N2e3k3qTWXbikddd2mwwNMh1t0k3DA2JP9GxN0k3h42RkdZdxO8GVzJ7uD11LbcHsU9FH335C4+4RURBaH1fFcUczjE012R68CoZ7uiwCHKT3YFDMHKt5LvUrUzz7HD37t7Qohip3/vjsUcu/R7d8x17PLv3bHAsePfuyMMscNLLhQIjp265FKl9JtCT6TAcTzwm0K6iYip/k0hrTbi2/hNIS2nWMvfFJIixj0tITKUaQ6aS8jYoN47gzkwRNE3ruJuYo64SRRr4zrKJnN8TeDImhBjivcbTyPqcyA4gu2bi8sJ3llbhnV4t+V/uGkZdrXMe1nqHaB3EYJd4UXck9iqzx/kPbcdbpmucCoOHUlXOE9E+77xPdyvrzw3Aoeu2DV5uRIpdEs++xEodengsx9LvGpHCLqCV+1OYqs+f5B70H6Kg47FsRekQGdIgT6R0je/jXvIcu5ouF7IDDoXrheeULtefJa7cuCxkXrWgX3IB9OGoAd4fE0f5P2r4+tRQksiBLuvCHafjWvZMK5l27g+T/D84DN+FlA6K6gXzFp3GKPeEuM9RvoqU1+4uug+3Ncv3f//m9NnptYPXscPGa73DIXmN3wjjnGMmrrpG1vEa49BC3ERY1jFsBiuHVJavRostdBZ0WI3t88ErjtUWvzFUtLqTWuthu6oFnnyq+SFMgRp96wHbsUJK6j2EpF1DuB4/f2ZkeugW/o4urF6KFt2KcsRXb8ywV569y9bxq08EHXlvPBU1IXGk+yC5El2Uegku7CYvQXFK+c7ZFfOPWx/hAbrMO51NJcVZhEimx+EjVje11s5ZSO0cv5QL0yu9oYHG+GC7Cra3QjtdrsPzRBNlHFKO+ece3Qvv0ay4uvcklPRnqn2uBiipDQuo2lPSFF6Vr4UqDF+ma0m5pQ1ifLWuE5ekzmDTaA0Nk65zM9O8DT8kZuuc+A4v41TkjvnTHfl0AR5bhtRiQ8nDZTJfSaxDsS5wKjY8xweEUOUDMapGJxzMfBfqngW8XVuycVQORSDISoG4zLW6Y9H0A6WAjXGL4tB/e0IlqgYWn87gmUuhvS3I5hTMaS/HUHT8Eduus6B42IwTsXgnIvBlUMT5PluRBUDXMGiTO4zicUgLl9VJVxUwZKIAidGVLk8SE1FEnUqlSBetz6Vyibfr3uqBC6hg/frVJtUTukGlxYORlAXWPMGl27AxXbwBpdulApP3+DSKhdhUFMpBvWP1sfWrWlIxRlVLlFSU6GS/vU0gLqMXJYuXwqV1de3OBVz6zroXo/Xi2qYEOUHEj0gATbuAcJLjXQKPG6Vv905vuhnyJ/1IU63yIN6YadQlUwT2f0JyvHM3JAlB3G8EBClevY+npa/yOKo7PN3mMOJO1rZigVeUDUbQKLQC0/VXWgs6YKoRAuj+4mFhfuJhcT6fADrfWFk518nvhVvOj4kpwKebkY+oCcBIiMCxX9xzVm1HEB1HI7op8u2MLRTI27N2+zH24YJb6XzbrPdbpseuxXGus1uus0WusWh7Qeyu4Ls9x3KVry1UVB8rm6P8o2OwtM9jj1Nz9UVHO96FER3NAqjmxn9WCsnvhXzqsdaASRSradaARpTrQ+1Asx/ws/ZWCtAYo71qVb6MA99noc+z0PfmIdezkOv56HP89CLeegb81CK4KltWRE4ikXgHIvAqRWBIy4CV7wInFkROLIiMET1XRdEzCpDlFrGKb+MqyQzMWeaSZRuxjnnTODEMyFmn2FKQb7MQqGAdDBEGWmc0tK5yE0Tc4K6lLPUNEpV45yvJnDShms3TyOi9G1cuyExJ3K+dkNcp7S4dkMCJXe+dhM5pzncpINMR0rJjhLlO0oq5VHPWY8qJT5KnPuocfqjFisAFSqC/C6IiBWkG1KqBpSoIIIkagL1XBZBzZWBMhUHSlwfqHGJgAZVgpQKBSVVK6jnckGVKgYlXTTYgusGNSodlKh6xGtAY1L8OYHnmP+EHAASnlj+k2ccMJ9n/UnzCzQ8hfwnziag+Lzxn+DjTGKn2cUTzt0XHp6UNBB2cMY0pOTfI68nm10mcVyG47gc53GZlsblShqXSXFchmlcxmlc+JJUp2kcX5DiGKOUxxn0NNaopvEGOY45SDTuoMHY//O//w/7Vd1G"
1128'),CLe=JSON.parse('
vendor: 5,135 bytes, line 1128
1128"eJyNnVtzG0eyrf8KA0/7RMhzRIq6+U2+zMX2mJYsEuJMzANEtihsgYQMEITaO/Z/P41CV+bKlaug86JQf6uArsrKXNVX8H8m3y9vb7u7+8m3k4t/btazm+7o+PT0xcnRsxdPXzybPJr8dXl3/+vsthsa/L1bPHT386vZN98tF9dn7xfzPzbdrslmseAmR7smR9Bmdjtf9NxqEKbd/Objbve7Dwzb/7ifLeZXr+5uFkPLb45PBrL+6/xLd/3b/P7q4+Tb+9WmezT5/uNsNbu671a/d7vP/vjlvru77q7fLG9nd2Onv/tu+WXy7b+/OX5++uibk5MXj46Pj08fvXx28p9Hk/Oh8Woxv+t+W67n9/Pl3W5Xjx+D8Pbj/OrTXbdeT759OvCLbrUuzSaPH5/85fHjx8NOfl0OQ9gN5/vl5361G8XRf139n6Pjly+ePtr9+7z8+3L378vH5d/nR6+ul++7o9/79X13uz76x93VcvV5uZrdd9d/OTp6tVgcvdl9z/roTbfuVg8D9YDO10ezo/vV7Lq7na0+HS0/HP0yv1ve95+7b4ZGi6NXfzua3V3/3+XqaD58wXrzfj2/ns9W8279l6GzPw67up7f3fx+9bErc1B68vv98JHZ6rqqQ8PvZ5//Pk7J8+MXjybv6tbTJ8NcvFpf7QK9GsUfOtv+5uTx80eT3++v/z6dfHu8E4f/X+z+f/p4P1//7O5X86shoP/+n8n03eTbk+dDo1+Hrqw/z4Y4/u+jPX7y5Mked1+uFrNb46fDPBb+x2Y5xOv9wpSnT5/tlbvN7fvdRN3cZe16uVjMVsZfDBNT+OdudbXL/yo8PznZC7PbQVoP8THJOlx6UGY89/rzbNXdLboPLYk+VrsxW+++cf3JO/5iHO7nxWadu3A1lO0s7+Jj//ljd5ebD0OZL8VI1ovZ+mMO1p/dapnp8q7L8H4rWt5/XHWi7YflZiXo/EG0Xc+/CNg9dGJuuxBTT4f5nUirq+VieZfxurudR8lmYLGzgUS7PzazRcY3q24oZx/ms+PjmjTdulhNVV4+fzrOvci+Vxl9l9H3Gf3ge372fI9+zJ35q3+wpsLf8nf9PSfMP3KYf8of/Dnv8RcvvRryf+YP/pr7dZYH9Ftu9Tp/15v8wd9zv97mD57nD174rJ2OEz3Nrd5ldJn3+K+cfO+HxexTdx9sw0L+ftBinfLnoqdYKs7WV/P51Xx1tbnNs7bZ2fZ6WH+6vMfib6Ez9rFZHs/73Ooqt7rOrURxfsgfvMnoY+7yPKP/znv8lFt5CduScJv3eJfRMqPPouqz1QsLXOdI3Ofv2uQPPuRK2OZWwkl7R7vjnmL6uau7/IqJcPLicc3KVaP9oWy8ny+um0v99XIrzD2szh6x+3Kc5slxXCvuw+7AEH3Wx6zWjg+L5Wou+LprfMvVZjUs41cewJMnWDbreTl0TdGtRy26rG4280G5Xd7rI4edXL74K3IMvSXOh7lg4vhpOJSThwPXs5ubTqTtnuOhGB1w7OauW3Wi9odjodnNavYZTO1pzazhdKITPujhfT9bH4jwYXWljxVsAqI+nBSMnx8Oseef1/O1kIax3n9cbsKxYlr2Q3L7zK1mD6IeZlebe3XoUrz8w6L7krVGZd3OrlbqcOf9qlM7vl7ez65Cxbk0H2YSA2DKCuvQO9tdDyFVx6ibu5vZanO7mG3EbpY3w2HmJ/F1MxwHzMttyFkXXvlhz5PnI1uurj8Mx3nhwNCPUOIi6wcgkfsezmAPz57aHm4Hp9sscBe2sszEYnu9K/r1Wixgi7hjX3kityOSpRjUUJ/DKfGQ9+Ic4h9pSt0JYgb68h/zxpcmOan+dXH2/Ogo96AuF9fzhzkktH8k9swPmEVxeLcbHzo/9KG+EYN1OfeiMoGh5q/0/YVScdyeiBnVg38m9s5ngj7gZwFpJ37OMHgEnIScVCdWA33+5HkVx6seYlfkOr52xjzwUeq4/Ko64OXRytFoqn6kL4djp1Ktb4vGCuFMVgkZooe5Zk/0w9e499OX9dRz+Wd3dyMy903chZ/FqUF6chwskkOZ+4oXEjuabYz1isfq5z85chbVtx+XKzGqM9q7h4GqwE70qOBP6yJGYbNqoh14xPTiVi5wrDflKGcl+htT0KPY4tFWzQRvN4v7+edFL/rVKP+3cYCWSMPx1v18trief/iQ56pvW8OvcT+esCJZvDYOptmBVactXTXGe9eywVbG/BoD5Ish1T9efhuOGPAanJ0CrZafujs8ETJzXHU383U89PUSjZMNy3Gui3qosd4MVR3ORzzYdAxphdmIzLKV6v9qfOBfVOGnL+uxa7nSFa+DWZx/vP+Y4fdNA1wo37Kx3DdMpmuuji3hVevw4UBWxgD7+XKrNHjf5gqtGWktPa1ldN3ac65j2/fBwxJeMetxQbe4FwZ+H0zaPXG7POCIqWv2dbcbMZLGGr6Ux5leC3zwY1ef4hHOiyen4ONDAq+GRF7n7/ud8/W0Tv6isZD8fHD9/SVOnJ9K2H0dZYrJFtwyYpict2r8l9hti8MQtY+zBSwNtch3pyaxwn0u1BJgvhwPmzzVvjKBjVLoWgO6iWaKAxqnVc2qPhv5XR4gWgbLnltCXA820amMbSz531MnbOEitzk1O7+eXymj/SF+ERyYHTrc/ZUOa627jXl7czivD+7rVeM7XzVNOp4O2AzE73EjPnBA+WNruad9+yVieXZnB2TxSMC+7WAp0ASZXx7c02J5s5vvu6UI97Jtppu8jtUMGr6qUck3Bye3g5XcY95I3zu5jtvFnbt80Oye31ruftzs7kb+59Hk525199tsvtrdQ/735NXubvXk0Tenj//zaNzau0dA+35GNJo6wr8NW099a+8qAeHAUDgL33OWu4BLb+A2VYHu6z+g4DxBGUMW2P7qUED7wkH0Omy9HbZe+laNGaIwehfOQyzO6+gBhdEDh9EDraMHRKMHxUYPbKzrwIqdILkYtl7Y1nTYemZbl8PW8bFv1iEhg74D3gybT3yrfhBQiAVw+D6gNRaAKBagWCyAWSyAjbFw8hAyYRu0Pm7lEfW552MjLE1DVBzGqUidc6VWBcrVENWscVm4VT3L380lbFzVsYm5mE2iijauy9pkrm0TqMCNU5VX/jojqHdDVPTOVeVX9TxHlD3AuDICE7MbmESWYFz7gslsDiawQ5gQbaJi8IqKwDAqQtcwxtZhgvCPqoGJGKK6M67sxMR2ZbKxGNfuYjJbjAnsMyZEs6n4ISfkNrfqBWoEQrjQaAboQoaovo2TCzlnF6oKuJAhciHj0oWqepa/m13IuHIhE7MLmUQuZFy7kMnsQiaQCxknF6r8dUbgQobIhZwrF6rqeY4ou5Bx5UImZhcyiVzIuHYhk9mFTGAXMiG6UMXgQhWBC1WELmSMXcgE4UJVAxcyRMVnXLmQie3KZBcyrl3IZHYhE9iFTIguVPFDTshtbtUL1AiEcCEMDVpR5FTpUSRTIpGdKchgT5GTR0VRGlVoctbYH1tWFJVvxRbZvKJODhZFbWOxDXtZVMnQokiuFsTXDQ7+FjmZHInK6UKT88a8sOdFURlfbJHdL+pkgVHUPhjbsBlGlR0xqtEWgwbeGDgYZODoklFgq4yq8MvQAEwzcjKMKCr7jC2+4itspFHUbhrbsKVGlX01qtFcg/bQqItto33f4ofiJ1zXCXouUjIqlMhvg8RuCyJ4LVJyWpSkz0KDM7kf9liUlMOinv0VVXJXlLS3Ygt2VtTIV1EiVwXptaTgqEjJT4Ok3BQanMvYs5OipHwU9eyiqJKHoqQdFFuwf6LG7ola9E5QwDmBgm8CRddEzJ6JmnBMkMEvkVK1o6S8EvWDXsA+iZJ2SWzBHokaOyRq0R9BeZAZvpVte03bkRKuOI4eLdEQmYpxMkPn7IRVARs0RB5oXBpgVc/yd7P1GVe+Z2I2PZPI8YxruzOZvc4EMjrj5HKVv84I/M0QmZtz5WxVPc8RZU8zrgzNxOxmJpGVGdc+ZjKbmAnsYCZE+6oYvKsiMK6K0LWMsWWZIPyqamBWhqj+jCubMrFdmWxQxrU7mczWZAL7kgnRlCp+yAm5za16gRqBEC5U+4o25Iwq3AUyIhDYiUwCK3JGXuSCNCOTz8T3sx25oPzI1WxIrpEjuaAtyXX2JFfIlFwgVzLhtWDgS87ImEBQzmTyuYgve5MLypxcze7kGtmTC9qfXGeDcoUdypVoUcbBo4yBSRlDl3LINuWK8CkTwaicUYG6oKzK1QP1y2blgnYr19muXGG/ciUalvEHkatb0a5XrBUT4Vq1Y+hazsgIXCDXAoFdyyRwLWfkWi5I1zL5THw/u5YLyrVcza7lGrmWC9q1XGfXcoVcywVyLRNeCwau5YxcCwTlWiafi/iya7mgXMvV7FqukWu5oF3LdXYtV9i1XImuZRxcyxi4ljF0LYfsWq4I1zIRXMsZVagLyrVcPVC/7FouaNdynV3LFXYtV6JrGX8QuboV7XrFWjERrrUaf9HDd1cJmUDF5FeG2a1GAbyqEnKqiqVPjeJZ+l72qIqVQ1Ut+1NVyJ0q1t5UVXamysmXKiZXGvHrRMCRKiE/MqzcaBTPUwzZiSpWPlS17EJVIQ+qWDtQVdl/Kmf3qTx6z0jBeUYCvjMSdJ2K2HMqF44zSuA3lVBlVay8pmrNmmOfqVi7TFXZYypnh6k8+stIH1LWbVObPhM9euEqY66jrRiiwjVOxuKcnaUqYC2GyFuMS3Op6ln+brYX48pfTMwGYxI5jHFtMSazx5hAJmOcXKby1xmBzxgio3GunKaq5zmi7DXGldmYmN3GJLIb49pvTGbDMYEdx4RoORWD51QEplMRuo4xth0ThO9UDYzHENWecWU9JrYrk83HuHYfk9l+TGD/MSEaUMUPOSG3uVUvUCMQ2YW+G+iruBU/W1B1DEAipIXrPcRAFkRBKoziU1gITSG1fB3tquvYtyydHIXuAscEc1q7C4imHBQbCDAbCLBxIHvywxj3U9+KbvoDxh2Q8NYfKO5Ao6P+EOIOzLoLbOwukGibP4wl71vTsLUr9Oe+VUcHCLrsdP97bHVyd2T8yTVDo/9i+AxRDI1TII2raJqYQ2oSxdU4B9cEjrAJMcyGKd
vendor: 9,003 bytes, line 1128
1128aVX2Q0zQhCb4jibzxPQpVoJipO01FeCIzTURFPR+U8HZXL6aiimI4q8XRUnqajCmk6qkDTUTFPx8gvMppmhNNREU9H5WI6RomnY8Q0HX8dZ+KFb9VdAarxBxRCDxw6BLQGHJDFGpiFGdgYYSA1uI524zzxrToCQHUEgMIIgMMIgNYRALIRALMRABtHAKSOwFGdrePHhmymRvbTOFUnvhUH+hNOFSAx0J9oqoDGgf4UpgoYDfQnmCogcaA/wUCd2DgdbeJWHuamMaaNHNMmj4kPyUARo92I0W7CaH+e7E95nvhWPC4qSBwEFZ4OggqNB0EFyQPJotDhUWH1fAZQPBbaoXLc8tS27FjIUT2BQRQOj5zj4RFQe000YDtqcuTHRs782MjYcjcC37JIO4qRdo6RdmqRdsSRdsUj7cwi7cgibWgT4r7J+aHOO36eqFOOnyfpbONnkdWgiPzg04ufJ3xmsSO9LVBlKy7RBaWFNryLH+qCBAoBqSoa1CQHhhpQjEjV4aJGHDmSqchIpXqLKiQ/CVSFpFJBsipqk5rkMuUGuWKpBRUvqVzHJHNJRxmqmwQqdFJVzVOTXP7UgJyAVG0K1Ij9gWSyClLJNaK6aSUSewmpXy8k4TDU4GAhNXyHGh0upORGJEdjiiJ4FAlkV6Qm5/plgtfwyla8fLdH4srdTtgd3o+XnXabUztG3W2VC1knvmklDgzr0nH8Bc1BOo2S4H6N55dJurzzy0Rd2fklv6PqiIJw8B1VUzEc+Abni4gwMPkNThZEiKrWilPQW2KfA8Fha7/1+EvMK4ggCRRHVlU0YxuMaVQgslHA+JLCUSZZxDq2aEVctDrcpG+FkuegXcBjg9FecQ4MUfSdq7hXFSNeGcS6IoyyMY6vCSKyVWvFNOgtsc+B4AgaT7EbjtPKCeZT34q3HAqKd4MKEjcgCk/3HgqNtx0KolsKhdHdhMLCjYRC6nrp6K2Z+RnOOaIw3S5chO+Zhq13Ycuv0JxN0sWZs4m6LrOj9dzXd2nnviOqFgPTYIjmwjhNiHE1KybmqTGJ5sc4T5IJPFMmxOkyTHOG6w6FgWevse6QepG/e5rRu4xgWtNCxDxPcJVolivmqQ4vU8F8R06THkWa+Siq6Y8tcg5EnRIhipwNUeWUiGrMi6hRcqT3OlX0OE0Ovdepmlw09jdt8HcNDvmjX2+UYs6koFM6BY1zCl5EgYxCSvmEEmUTSiqXUM+ZhCrlEUqcRahxDqEWMwgVyh96hy3HiXOn/Q5bbnAh9zOV9J2kkDHq1S4h5WwBlXIFFM6U+qYApIkhyhHjlCDGVXaYmFPDJMoL45wUJnBGmBDTwTDlAr7sQ2HgLGi87EPqRf7uaUbvMoJpT+/GMM8TXiWa7Yp5quO5Oc44KzTxLNP8s6zSgNvkbOAWlBQsc26wzinCeswUVilhSH7bjCmnT5JVFlGji+Z+p03lXVOBDGOFEo3lnG/UgtKOVM4+e7of8s4ZZZwLlGsuqCxzNeeXa5RZLnBOucLZ5ErMI+eUQeFFHo4IZ03rRR6WL8T3TwV7JxjkRX7fJQk5F0yjLDDO819PN2H6DdHsG6fJN67m3sQ89SbRzBvniTeB592EOO2GadbxGgSFgee8cQ2C1Iv83dOM3mUE050uSjDPk10lmuuKearrU2Mw1YZoqo3TVBtXU21inmqTaKqN81SbwFNtQpxqwzTV+OAnhYGnuvHgJ6kX+bunGb3LCKY6PSfJPE91lWiqK6ap/m2c5fHJhN9whpHV2UVGT9a5EB6tc+zP1jmDR+gcwjN0Du0hOkd1BoH5czJlK14xKyg+0ViQuKtSeLquVmi8f1IQ3Q8pjG6CFBbufBQS7yr+BvM2Xk3codigy4Oy+4iI9KA6OahwmxBwHmsnxtqJsS5Ditn9PkDika/C062cQuODXgXJh8OLQk9/FRYfCS8oPtv1G1bHGP3XE3zEtGzFR0wLEo+YFp4eMS00PmJakHzEtCj0iGlh9IhpYeER09eeRj6MOrQ9eTPZ382HrfhsTkHi2ZzC07M5hcZncwqSz+YUhZ7NKaxOEaD42NGb0Z9hq2Y+ouDKLpzHrTze88Z4z+V4z/N4eSJBEeM9p2eR3sBEOvFl5M0EHzJ8M64Url3GpfkNrQ8jrVcxYfYNUUiMq7iYmINjEkXIuA6TyRwrEyhBjFOW4HVoRpQvjevQpJ4L1IiVzCET27HibDJ+OFYpr0zg5DIhZli+1G4Icg2vq1Mrzjp1XX2U6oPEkHqGKJzGVThNzOE0icJpXIfTZA6nCZR6xin1Kn8rEKWec5V6VT0XqBErmXomtmPFqWf8cKxS6pnAqWdCTD18tJ0yBFIPH22nVpx66tH2KqXn2E6kwKE98BybbiLCrJ9j02oj5I3n2LTMqaqfY5Pq26bAyXvoeQfZ5rwpHIy5TurY5GsxTwke1f+fmOdkj3JK+ShT4qcHQWSWYhGk50DkJ1JBNJ8C2TcYpruc/b30rfoNgOoZE6AwKcBhD0Br+AFZOIFZDIGNgQNS89eRv6D6FksYkDjVeEvFCjSearwVZQkKnWq8xQIEFE81dmh3jvfCt+K7GgXFdzUKEu9qFJ7e1Sg0vqtREL2rURi9q1FYeFejkPiuxg5dLRc08nru6m12n3jmW3WUgKqxIMJRAodRIoVTV8B18IBs8MBs8M4+9p8/duWc68TYMoxqmWdr2ZiapZyaZZ4aPp0FRUyanc4CyjNkp7OOVnErD2QVvdyFdXc7z1O+CaW4yfaxaXjFRnrFJnsFP5IKinCRjXCRTXKRbZjwPm7lJO1z5uG7iC8JURDSu4jMVYTUu4gsUazyu4gscGz4XUTG5LV4/H5KiFxXH7+zmP03Hb8z106cj99ZIE9Ox+/EwcUMUa0YJ582rhzBxGwLJpE3GGcbMIEN3ITo4obJKPy1z4UKHZl6xV2uBbZ34+TxzoXRm9iuOWX5ppHvG2fzN4FXgCqkZaAKyxwMXhCMH8oBsTSY1MiBxiJhcitFeLkw3kgFXjgqXwnUGLpeR6oqFpMqwYpiqOGocm0xse2cvMoY10uNyS1jTYuOCdpYtznbeoEa5aRWo3Cgj2tSFDiOUeX1Kaoy1rGJiHhswHGPagpvlFOQo0yhjiKvZOlywKkUeFU7cDlANxErnL4coNXGate4HKBlXvn05QCpou1HgYs+qrwiRlV6YmwinDE2YH+MarLBKKf1Msq0akaRDTOo7GgkxnU0vkjXquW0pkaVV1ZS1foam3zNS+RaG1vwihvVtO5GOa2+Qc5rcHzJrhXOtB5H9esZqNbm2OBgBrbW6djocJqmNTuqBxMxrd9BXTWFg2FrrOihjVrXQwNc3aNwcG3SK31s8rXVJ636UW2s/bHR4SUqHwdE+dAStW3VQN8UDlpDPko4n+ATPed4PAAoPsdznlZ+4Ol64jmu8YDomZ3zsJoDC0/qnOO67aja6BMj9EMo9XoyjrXx6o1zGvWhV29czONvvHrjnCPRevXGhRiTxqs3xik66ZWVkTdeWSFOwTr0ygqJKmxfeWWFdArgwVdWSOVQHnhlhTQKqnx7Q0WQwyvf3giUQtt+eyNIKqwH394IKoX0wNsbQeNwNt/eCAqFUrzakGPFYcyvNjiiADZebXCuQtd+tcElClrr1QYXOFz61QbHFCh+JYBCwSFqvhKQFArY4VcCkqzC99VXAlILCuZXXglIOof24CsBSaVAN56F13HlsItn4YFRqFvPwoOgwnvgWXjQKKTNZ+FB4TA2noUHTqFLj45zVDhc9hPbEC5nFC4XKFwuqHC5msPlGoXLBQ6XKxwuV2K4nFO4TKBwGedwjb8cDMGqhEJVMQWqYhWmquUgVYVCVDEHqHIOT+UxOJVSaEZMgRkpheViDMkL34qnKxcYCkDibO+CQgA0ntddhKEDo2sIFzBkIPEkbYf8Z5nLVpy5guJZlgtncSumQkFivgtPc11onOeC5O8FF4Vmv7B6fgooTu8O7ab1mW/FU5aCaggAiesWhadTmkLj9YeC6KJDYXSlobBxxoDUETiKp7MXk/SI9g7FQXd5cuxKDSI9X52cr3AhBnCexk5MVkdlumN2ccWzc3dB5aVvxVPygsR5eOHp5LvQeMZdkDzNLgqdWxdWcwxQvJR7MclPbe9YvhCxo5sws5ucjZtG6m1k6m1y6vFlBFBEUm5EUm5CUk5H14Ot2Ospuh4gMZApuR7QOJBpcD1g1N0puB6QWEPTCT5wN0XvAiQe85qSdwGND3RNhXeBQo9uTdG7AMUH46ajd536VrwZMEXvAiRuCkzJu4DGy//T4F3A6Fdrp+BdQOK1/Cl41zEQvAo9Ha1r/yNlU7QuQPZ2CaD8C21Tsi6k+HaJ4/gTbdNgXcD87RJjZl0+1GVIuGUukmWjIpayIpa5Iti6QBG1YtYFKBcGXaidknP5vO2c69TGb84FKCaec0w8p5Z4jvhmkyueks48JZ3VlDTSh3rqc933qb4vR8Mbf6npEh0Pmb2RBiy+iAMCvokD2F7FAeZv3AD0V24A1nduANkbac521vfct+KLfJfJ+oCnd/su0foA0cSBYoMBVvMSUO22o5ktsJdofYDizeLLZH3A07HBJVofIDoCuAzWByxcR79E63NUS+gpkFv8ZebL0fte+FY8n7hE70OUzycuyfuQgvcBjqcZl8H7gNFpxuVodDAEczpk6tXMS/I6xPRq5qVwO5T4rc1L9Dtk9Ibm5ST/GPYlWZ7P1yY22oiBbloD3eiBbsRA2fdQUgN150MYX0+9tOv0YAbpJkQS2NP0bYikCndLNyKSkHwu34pICjleuhnBAnhfeseMuXJB9Y4ZS+SHrXfMWGZnTO+YMSePrByM0hC5pXGyTOPKN03M5mkSOahxtlET2EtNiIZqmFzVbzKFUuV7T1wDYHOGyGmNk906F55rYjZel7L7mkYWbJx92AQ24yosxaCTLZsgLctU4VumsXmZ0HAw05ONmcKmbQI7d7qTyILw8CptRPPk5iYcjI/yddNa8Wk5vOnN+GSvN4UMn275VSdU9/yUxs7fvOunGgj/V/f9lJZWAXnnT4m0Fqh7f0KDFQEpLQooqXUB9bw0oEqrA0p6gcAWvEagRssESrRSgASLBVJaL1CiJQMltWqgnhcOVGntQImXD9R4BUEtLiKo0DoSbgYHxxC3iUWBgWkjpTUFJVpWgiRWFtTz4hLUvL6gTEsMSrzKoMYLDWhLHZK03KAmHRUbCFNFmX0VtYa1YpPkrijyAoQar0HqUQGhiZUI1I3+UFqPUPtaANWqhPKBALbWJmxyKIB5hUIxLlJDOU38V0LKlv+uj6F4/8mF3d8k3P+Vh93WNmz5dZ6yFa/zFJSu81TXwx4Zom4Zl32rKnSwom1Gfe4B99d47vTYMey0Ieq0cdnpqkKnK9pm1OcecKeN506HZ5Wg55FT96MoxxCawEAC3zZ43+gfjyuKeXCQ7jA0pDQwlOSwoAEMCuhW0l72iYeDUh5MfcwHRmKIhmFcjqGqMICKthn1uQfcb+O50/bYB/TaGXXbBdlvk6HjxraC9aIf3HcXcuftIQzovDPqvAuy8+HP048dDX+enlkv+sGdl3+eftTGByWg65VQxyuW3Ya/ej12EP7qdSR92jd3V/zV61Gpv0AHvTVE3TUu+4t/JHfsHv6RXEJ97gH3Wf2R3L30fqAL23PZ8uMEQ6qXRfCDm4o24avp7+G9T8cawGXf6O/hvRcHFKDQjdD34fABWPi1ivdjpH2rj1t5DDmOVwP1QOy2PgXtk/oBkasx+LAV93WVgw9CvMV7NXbce9DHmbyijo+0Hgt8zAiGYEj2pqoLgWhExg9/EY0Nj22okzxKdWwzSvbia0YwVEOyh1VdCERDNX74i2io+L4kdZKHqt6XrNJwWrdYzGiwBnG4DnU/TV9IyIN25WtfxwM3pVddToN3JQ9/f3I0WX+eXe0+cjrScsKd/2zNSZYbWvzC4fRscm07LVtX+79dC8hN/Dr493UdqG/ZCB3h0PZ03APu2BDtvfKH/OltRr1A1CPjqVu7ihuDtN85Xko9MfIQPrANW1/CVh+3YkdSfe8pXacfO8IXdk8ifsif32b0JaNeIOqm9KK9RD8+MPaVX08/ifghf36b0ZeMeoGor9JMRkm8JlI7rN4SORHaQ+Prtg3+pcH7FufhtM6qRj1fiBtHJK7BnCTlQX7RVtIvkvaa0igaJ1NV9WtzPAhQeBQgPejv2mr8ReO+gXkoqOWx0Gsh4zj4rZCTiB/y57cZfcmoF4j6q84HR4lfDxg7m94OOCH+IL5iK9gXwXrFqMvyNHDU+Bn9sc/pEf0T4g/iK7aCfRGsV4z6LM/+9tqHCV4kr6SLW/GooKB6LRxR/gHjwtORw57in5R1HH/XuCD69eLC6NeLd2xpRzllKx4yFSROigpPJxqFxpOiguRJUVHopKiweOhVUHw69MMkXIKuiA6dnkQh0Jv9XB37xjhsIONMIYE4APYwIPRpAjrGBkgNAKA6R478pF1cXmheWqjtYKRG4nANxzE7zgM3LY3elRQCk2IcDFMwjFNE8mXgm8Zl4JuDl4EjhDDpH4HQYgzZgZ+A0C1S+No/AKEbxFA2fv5BqxTWqN60wsQhJlUFuv5JzRPfijbDf0hzTz+N7rR33E/oToCifTpPlv0J3QkQ3wNyxR3UmV1VcmR3yvYo/0qGFmgsh34lQzfJI2z8SoZW9bhbv5KhZYpG41cy9uoirM6LsAYv8uq7kOvuIp8HLfJJz6Jx0rNon/TEKwL49fkHIbRAu2r/IMTYoP79l21GvUD09ervz+6l2wle6SxbsdoKEot64akKC42LekFyUS8KLeqF0ZXOwsKVztsJ/tndWxwxIOjdnt5N6k1l24pHXXdpsMDTIdbdJNwwNiT/RsTdJN4eNkZHWXcTvBlcye7g9dS23B7FPRR99+QuPuEVEQWh9XxXFHM4xNNdkevAqGe7osAhyk92BQzByreS71K1M8+xw9+7OyZEsdO/d8dijl36vTvmOnb59+5Y4Njx790RhtjhJRcKBMdOXXKpUvpNoWMpcBwP/KaQbiJiqn9TSKuN+DZ+U0jLKdbyN4WkiHFPS4gMZZqD5hIyNqj3zmAODFH0jau4m5gjbhLF2riOsskcXxM4sibEmOL9xtOI+hwIjmD75uJygnfWlmEd3m35H25ahl0t816WegfoXYRgV3gR90ls1ecP8p7bDrdMVzgVh46kK5xPRPu+8T3cr688NwKHrtg1ebkSKXRLPvsRKHXp4LMfS7xqRwi6glftnsRWff4g96D9FAcdi2MvSIHOkAJ9IqVvfhv3kOXc0XC9kBl0LlwvfELtevFZ7sqBx0bqWQf2IR9MG4Ie4PE1fZD3r46vRwktiRDsviLYfTauZcO4lm3j+jzB84PP+FlA6aygXjBr3WGMekuM9xjpq0x94eqi+3Bfv3T//29On5laP3gdP2S43jMUmt/wjTjGMWrqpm9sEa89Bi3ERYxhFcNiuHZIafVqsNRCZ0WL3dw+E7juUGnxF0tJqzettRq6o1rkya+SF8oQpN2zHrgVJ6yg2ktE1jmA4/X3Z0aug27p4+jG6qFs2aUsR3T9ygR76d2/bBm38kDUlfPCU1EXGk+yC5In2UWhk+zCYvYWFK+c75BdOfew/REarMO419FcVphFiGx+EDZieV9v5ZSN0Mr5Q70wudobHmyEC7KraHcjtNvtPjRDNFHGKe2cc+7RvfwayYqvc0tORXum2uNiiJLSuIymPSFF6Vn5UqDG+GW2mphT1iTKW+M6eU3mDDaB0tg45TI/O8HT8Eduus6B4/w2TknunDPdlUMT5LltRCU+nDRQJveZxDoQ5wKjYs9zeEQMUTIYp2JwzsXAf6niWcTXuSUXQ+VQDIaoGIzLWKc/HkE7WArUGL8sBvW3I1iiYmj97QiWuRjS345gTsWQ/nYETcMfuek6B46LwTgVg3MuBlcOTZDnuxFVDHAFizK5zyQWg7h8VZVwUQVLIgqcGFHl8iA1FUnUqVSCeN36VCqbfL/uqRK4hA7er1NtUjmlG1xaOBhBXWDNG1y6ARfbwRtculEqPH2DS6tchEFNpRjUP1ofW7emIRVnVLlESU2FSvrX0wDqMnJZunwpVFZf3+JUzK3roHs9Xi+qYUKUH0j0gATYuAcILzXSKfC4Vf525/iinyF/1oc43SIP6oWdQlUyTWT3JyjHM3NDlhzE8UJAlOrZ+3ha/iKLo7LP32EOJ+5oZSsWeEHVbACJQi88VXehsaQLohItjO4nFhbuJxYS6/MBrPeFkZ1/PfGteNPxITkV8HQz8gE9CRAZESj+i2vOquUAquNwRD9dtoWhnRpxa95mP942THgrnXeb7Xbb9NitMNZtdtNtttAtDm0/kN0VZL/vULbirY2C4nN1e5RvdBSe7nHsaXquruB416MguqNRGN3M6MdaeeJbMa96rBVAItV6qhWgMdX6UCvA/Cf8nI21AiTmWJ9qpQ/z0Od56PM89I156OU89Hoe+jwPvZiHvjEPpQie2pYVgaNYBM6xCJxaETjiInDFi8CZFYEjKwJDVN91QcSsMkSpZZzyy7hKMhNzpplE6Wacc84ETjwTYvYZphTkyywUCkgHQ5SRxiktnYvcNDEnqEs5S02jVDXO+WoCJ224dvM0IkrfxrUbEnMi52s3xHVKi2s3JFBy52s3kXOaw006yHSklOwoUb6jpFIe9Zz1qFLio8S5jxqnP2qxAlChIsjvgohYQbohpWpAiQoiSKImUM9lEdRcGShTcaDE9YEalwhoUCVIqVBQUrWCei4XVKliUNJFgy24blCj0kGJqke8BjQmxZ8TeI75T8gBIOGJ5T95xgHzedafNL9Aw1PIf+JsAorPG/8JPs4kdppdPOHcfeHhSUkDYQdnTENK/j3yerLZZRLHZTiOy3Eel2lpXK6kcZkUx2WYxmWcxoUvSXWaxvEFKY4xSnmcQU9jjWoab5DjmINE4w4ajP0///v/AGoZ428="
1128'),TLe=JSON.parse('
vendor: 14,922 bytes, line 1128
1128"eJyNnVtzG8mxrf+KAk/nRGh8eBWleZPnItsaD0dXWNvhB5BsUdgC0TLAFgjt2P/9AI2uzJUrV7X8olB/q4CuyspaVX0p8H8mP7V3d83yfvLj5P3fu/Xstnl0fPbsydGjJ89Oz55MHk9+bZf3v8/uml2BvzSLr839/Hr2w+XVYv7vrtnL3WLB8iOQZ3fzxZYL7IRpM7/9tD/r35ubeXe3I3+9ny3m18+Xt4td2R+OT3Zk/ev8obn5Y35//Wny4/2qax5Pfvo0W82u75vVm2b/6V8e7pvlTXPzur2bLYfa/vnP7cPkx3/+cHxx9PiHk5Pzx8fHx08ePzs9/tfjybtd4dVivmz+aNfz+3m73J/q6AiEt5/m15+XzXo9+fF8x983q3VfbHJ0dPKno6Oj3Ul+b3eN2Dfop/bLdrVvx6P/c/1/Hx0/e3r+eP/vRf/vs/2/z476fy8ePb9pr5pHb7br++Zu/eivy+t29aVdze6bmz89evR8sXj0ev8960evm3Wz+rqjHs35+tHs0f1qdtPczVafH7UfH/02X7b32y/ND7tCi0fPXzyaLW/+X7t6NN99wbq7Ws9v5rPVvFn/aVfZX3anupkvb99cf2r6Xuhr8uZ+95HZ6qaou4I/zb78ZeiUi+Onjyf/KEfnJ6ePJ8/X1/tArwbx58aOfzg5ung8eXN/85fpTnzS//f97r9Pnx566+/N/Wp+vQvnP/9nMv3H5MeTi53w+64i6y+zXRT/9zHh5uF6Mbszfnp+fuD/7tpdtK4WppyfPzkoy+7uat9Nt8us3bSLxWxl/OmuW3r+pVld79O+CE+eXByE2d1OWu+i4zU7OYEa9P3ttTs9Hb5vtmqWi+ZjTaKPlWrM1vtvXH/2ij89Gz616NY5ONe70TrLp/i0/fKpWebiu6bM25vM14vZ+lMO1rdm1WbaLpsM7zei5P2nVSPKfmy7laDzr6Lsev4gYPO1EX3bhJh6OsyXIq2u20UrIrRu7uZRsh5Y7E0g0ebf3WyR8e2q2Q1m0cydD657oynK8dHxkNEzkX7PM/qzoYuSiT9l9HP+4C+Ojo8P6Ff/YInAi/xdf8lx+qu3bG+Xe/S3fMaXuf2/+dgr2fr3fMbfc70u89f/kUu9yt/1On/wTY7E2/zBd/mD7w09Oxt6eppL/SOjD/mM/5WjerWbyz4398E3XNxpcaDy56KpnD0xU7mez6/nq+vuLvdHt3ft9W76gTESDC5Uxj42y+gqp8S1MGAxbnODPuZStxl9ylWeZ/TfuV6fc6lFzksRLeE6wve+iGGfTXqV6yUcXsS+yx/8mrN3k0s9ZLTN6BtU9czzKybCyZOjkpWrSvmYjeaMfTbezxc3TQ7JYa6/aTcizmF69qngvl+meXIclxH3cb8uRKO1z2zV5PFx0a7mgq+byrdcd6vdPH7tATx+dgzDZj3vV66piWXZoofVbTffKXftvV467OX+i78jU+hLz36cCyYWULuVnFwP3Mxub9WcduC4FqMVx77vmlUDY//0whZDs9vV7Iuf7fS8ZNbuUqKBjAuu1DfzarYeifC4utKLBeuAqO+uCYZa7VbY8y/r+VpIu7bef2q7sFg0ty/zfkhu77nV7Kuo7Oy6uxf44OUfF81D1ioj6252vWrFia9WjTrxTXs/uw4jzqX5ricxAG5oOA69srsLut2aWyxSu+XtbNXdLWadOE17u1tnfhZfN1uFxZP1y13IWRee+7Ln9GJg7erm426hF1aGvkKJk6wvQCL3M1zCGZ6c2xnudk7XLfAUdrUxE1PezX7Qr9diAlvEE1tKtZHbiqRtctnd+NxdEe/yXkwxf01d6k4QM9Cn/5g3PjXJTvWvi73nq6NcgzJd3My/ziGh/SOxZr5gFoPDqx0/5Cs99SGbIikGNln3F180TKCp+Sv9fGGoOK53xIzGg3+m0kMdfcCvAtJJ/Jph5xFwEXJSnFg19KI4+HW56SFORa7j68KYB95KHZffVQV8eNRyNJqqr/Rlc+xSqvZt0VghnMkqIUNmsvlr9kQbivN49rOLoc6L9luzvBWZ+zqewq/iRpOzGx0kQvThVZtIVpW2XnNb/fonR85O8/ZTuxKtuqSzexgqbvCG+FmZxChsNpo4Yy1ienLr73Csu36VsxL1pRS0KNY42WoxwbtucT//stiKelEDPclDA88uyqXJbHU/ny1u5h8/5r7a1q3h93geT9ixZPllNM1GZp0sWTpVhueyZoO1jPk9BsgnQ/oivP+2WzHgTTi7BFq1n5slXgiZOa6a2/k6Ln19iMbOhuk4jwtzjm43qsP1iAe7soZcVSLTUmR8XFZS6r9ohJ89K2vX/lZXvBFmcf7l/lOGPyUDNDNXvnV6PLTxvjJvNNXZsTYLPq8tH0ayMgbYr5dpaNitCK6UuUKtR2pTT20aXdcGZR7Hdu7RZQnPmGVd0CzuxQ2f+2DS7ombdsQR6/G960RLKOYWKrnO9LFAofcr1bjCeVpuWPQ+vkvg1S6R1/n73qR8ffas5Kte0b4cnX9/ix3nlxL2WEeZYrIFt4wYJue16ey3WG2Lwy5qn2YLmBrKIN9fmtCtbuuLMZdfxmWTp9p3OrAyFJpag26jmWKDhm5Vvar77o1cIFoGy5qflR682dmEeujRxi4CK9SW1sXyZ+dm5zfza2W0P8cvgoXZ2HL399g/Xt1Kv70ez2ulurdWltDPqyYdLwesB6jOZsQjC8pfatM9O4XdIpYNtQVZXAnYt40OhUoV7kfPtGhv9/29bEW427qZdlkqQ3n3VZWRfDt+RQszuce8kr5LOY/bzZ1lXjS759fG+C/d/nHkvx5PXjar5R+z+Wr/EPmfk+f7h9WTxz+cHv3r8XB0cI+ADvWMaDB1hC/i0cFVAsKGoXAZj3IVcOoN3Loq0MP4Dyg4T1CGkAV2uDsU0GHgIHoVjt7ujo5P/LAELbDQflDe7Q7P/agEAFAIAHAIANASAEAUAFAsAMCGoR1Y7yhI3u+OLuxoGrQP+wYe+WFpEjKoO+AuhLXLydBVkqGTydDlZOiqydCJZOgsFsCGWDj5ujs6s6NNONrGo9IiQFDzgQ6FcHQaopAYp3HqnAdrUV4IRMPWuBy7Rb0UqFJLOZRNzF1oEvWjcd2ZJnOPmkBj3DgN9MJfZYRD3hiPexfk4C8yOIAhsgHjygtMzIZgErmCcW0NJrM/mMAmYUJ0ioLBLgqa5lJoHMbYPUwQFlK0LncYm4nxsZwUtmJSJScrBmNyLSeT1ZgQ/aZgMJ2CNhltBSIPMp6NaPADNCJDFE7jZETO2YiK8kIgMiLj0oiKeilQpZbSiEzMnW4Sdbpx3ekmc6ebQEZknIyo8FcZoREZYyNyQRpRkcGIDJERGVdGZGI2IpPIiIxrIzKZjcgENiITohEVDEZU0DSXQiMyxkZkgjCionW5w9iIjI/lpDAikyo5WTEik2s5mYzIhGhEBYMRFbTJaCsQGZHxbEQYGnSjyCmwUSRfIpHNKcgvapxsKorSq0KRyxofa4i0rlgi50rUKWGiqLMmluHUiSp5WhTJ2IL4qsLR4qLAPkeqNLtQBhwvcrK9KCrviyWyAUadXDCK2gpjGfbDqLIpRjU6Y9DAHgOfVsqjUUaB3TKqwjJDga6SCmyeUfzu0BA2GvWxoVEx1FhmdGgka41q9NeggckGvqnwbY2T50YxG68TtF2k1CEokeUGiQ0XxBeaktmiJK0WClxqWq+6NFnUcx6hSlmEks4hLMEZhBpZK0pkrCC9khRNFTFbatCkoUIJsFOkZKYoKStFPRspqmSjKGkTxRJsoaixgaIW7RMUME+gU1kWjRMx2yZqwjRB7mQ3s2Gi9J0kF2aJaj3JK0aJJUaSPJkkatEiQQGDBLqRdKspWSNK2RiH1qMrGqKQGyc/dM5mWJQXApENGpceWNRLgSq1lNZnYk4JkygfjOtkMJkzwQTyOuNkdIW/yggtzhj7mwvS3IoMzmaIbM248jQTs6GZRG5mXFuZyexjJrCJmRAdrGCwr4KmuRQalzF2LROEZRWtyx3GZmV8LCeFTZlUycmKQZlcy8lkTSZEXyoYTKmgTUZbgciLjGcjKnVFJ3JGAXWBvAgENiOTXihGduSC9COTLxWrVVZakqu5/12jBHBBZ4DrnAKukC+5QMZkwivB0JocsjeBIs3JdHAnZ2RPLih/cjUblGvkUC5oi3KdPcoVNilXoksZB5syNhXl0KgcslO5IqzKxE50IZuVC6PpKuzKtVq6VgzL9Wq6JstyJXqWcTAtYxvBtoqRb7mQjatUDI3LGQXXBTIuENi4THqhGBmXC9K4TL5UrFZZaVyu5kxwjTLBBZ0JrnMmuELG5QIZlwmvBEPjcsjGBYo0LtPBuJyRcbmgjMvVbFyukXG5oI3LdTYuV9i4XInGZRyMy9hUlEPjcsjG5YowLhM70YVsXC6MpqswLtdq6VoxLter6ZqMy5VoXMbBuIxtBNsqRsblQjau1fBDH16FQiiwBZNlGWbDGoQXmZBZFSytahAvM9HVkyZVtNznRaEeL1j3d1G5twsnayqYjGnArxJBUyqILcm4NKRBBTsqhMyoYGVFRctGVBSyoYK1CRWVLahwNqDCo/0MFMxnINNUBo2nILadwoXpDFKXuocNp+CRxBNmUxSdeBWjKWol8ZLJFB4tZqBgMAPZJLLNhKyl4GwsQ7qjsxiiEBonb3HO5lKUFwKRvRiX/lLUS4EqtZQWY2LuapOor43rzjaZe9sE8hnjZDSFv8oIrcYYe40L0myKDG5jiOzGuPIbE7PhmESOY1xbjsnsOSaw6ZgQXadgsJ2CprkUGo8xdh4ThPUUrcsdxuZjfCwnhf2YVMnJigGZXMvJZEEmRA8qGEyooE1GW4HIh4wnI/rzkJvHfuSdYSjED3joHqMlaoAoYKBYrIBZmIANEXJy+F2vxz+cGBl+uqugn6DQqRErNKDyShyVLJiLD8OfixecihdrTh8wgT7y8w49t+7pj2Jn9qi4OKDQR8BTl/e09BEg6wlg1hPAhp4AUizVkXvBz4MNuLZ3gGd+VFoHCKrstATQv9YiN6DSCRA+QxRD4xRI4yqaJuaQmkRxNc7BNYEjbEIMs2GKdeHvcximuRSE3hDF33juBM59Ol/qjn4fYeyOgrg7CufuKFx2RxFFdxSJu6Pw1B1FSN1RBOqOgrk7Bv4+h2GaS2F3FMTdUbjojkHi7hgwdcevQ0889aNyKkAl/oBC6IFDhYCWgAOyWAOzMAMbIgykBNfRzBYU/VFcQfWotACQWE/1PC2lehpXUT2iFVLPaHHUs7Au6klpgaPSW8eOfIXRH8VFTI/iyv+A8pKm52k1c6C27S/guL7pEa1dekbLlj1r41Guc1upYCsr2OaatHKR1Suijm1c7vcorvR/xTEB0V/tx+W5HZkzOSrRRxQW+wfhb8MIO6w+/oYjDFDJT0AhUsAhUkBLpABZPIBZnwEb8hNICZGjWTzKLZjlFswqLZjJFsxyC2aiBTPRgllqwSy3IK60/paXWHvUhY90uZldpU2dbFOX28QXCaCI1naitV1o7cvJ4Tr83I+i/fVIeF3Pk9f1NHpdj+TFYq+QC/asjDpA0fJeDv525kdx7n+J/oYoz/gvyd+Qgr8BjtP/y+BvwGjSfzn4GxzlOreVCraygm2uCfsbKKKO5m+A4trj5QSviV9O0uXwy5TVwJMrv5yk69+XIqtBIVd+OckXvC8nfK27J9uQLduc1ducvcGAcVyQQF9GqhotVOS7p6YxRKoeTlSIRxbJNMhIpfEWVUgPEiijSaUByapIfSqSRwEXyCOWStCQIZXHCMk8pKPcVoXRsMgxT0W+13B2AlK1KVCh8bazVZBKrhFVMBASyEtIVbZCRbLDUAEyG1K171AhtiCS2Y1IjsYUxW1thLFdkZrs47fJcGP52A/tnjKyeDvZlffxcH9ZeWFH/d3VMz+0e3nA8Kad4/ijr1ky/sT41oL1GwYCUOrz38Ke6mNiHIfanmqS3wsGYQk7js+IcYDkjmPSaqEKOscLd+lSLDhyapfuIJV7LRg+Yxw+F2T48NYRMwgf3jsqLU03j5Igwle0WviCzuEr4jbHgsNnXIQvDM4QxKikUJKsAxoKva8qGNwghBBHJQU6yircoUQ16LlUCn0yQhnN1A1VIxwKDNNU6AZj3AEuyNAX+b1gEO6CMNDGOMQmiOAWrRbWoHNAi7jNseAgGk/h2y154W5DfxQvYnsUr9V7JK5re56ua3sar2t7RFevPaOr156Fq9eexGv1y6Hvz/woLjsvc3+78N5m1Muhjz0u/9gdPbGjD9b/l9jNgKDpTsttBD+l3UYYUPFp6AZD1BfGqUOMq14xMXeNSdQ/xrmTTOCeMiF2l2HqM5y/KQzce5XZm1ToR5y7TyOCHsXp/IIQ9a2azEmiXk6P/QYe9k5Cf0dOnR5F6vkoqu6PJXIORJ0SIYqcDVHllIhqzIuoUXKkndwqepwmY/u4VRFImLRt+VRwSJ20nflCcUqi6mZmpVM6BY1zCjadQUYhpXxCibIJJZVLqOdMQpXyCCXOItQ4h1CLGYQK5Q9tWc1x4typb1jNBSBvaMfmaaKQM7SP8yJTypfKLs6sUq6AwplStgRBmhiiHDFOCWJcZYeJOTVMorwwzklhAmeECTEdDFMu4MY+CgNnQWVbH6nQ/7jl7TQi6HncBXdBiPpc7YEjiXq7YO7qeJsDe5wV6niWqf9ZVmnAZXI2cAlKCpY5N1jnFGE9ZgqrlDAkv63GlNMnySqLqBAkEymQU6RAapECGcYKJRrLOd+oBKUdqZx9tocH8s4ZZZwLlGsuqCxzNeeXa5RZLnBOucLZ5ErMI+eUQWHHHkeEs6a2X49lyJSwhe2UGGRH2NZ2wYwyQm5qY42ywDj3f7nchO43RL1vnDrfuOp7E3PXm0Q9b5w73gTudxNitxumXsfbEBQG7vPKTQhSocfxFsRpRNDfeFfighD1tronQRL1dcHc1eWVUOhqQ9TVxqmrjauuNjF3tUnU1ca5q03grjYhdrVh6mp8sZvCwF1dea2bVOhqfOX5NCLoanwL+oIQdbV6B5ok6uqCqav/GHp5eCX9D+xhZKV3kcUXf0HAe2KA7dVfYP6GL0B/xRdgeccXUOlBYLPQMntDBVB8i7BH4sldz9Pjup7GZ3Q9omduPaOHjD0L7wn2JD5w+wP67fipocYyqT+KD5V6VBIUUX583fP00OlA4Ykr4Pj8ukf0PLpn9L7bnrXxKNe5rVSwlRVsc034cSgooo724BNQfDr+B46OIfqvJvgGfH8U34DvkXgDvufpDfiexjfgeyTfgO8VegO+Z/QGfM/CG/CvJ4e3Hk78KLp2j4Qx9zx5ck+jHfdIvsPUK+TRPSvxBxQd+PVgvqd+FF9tfJ0t14V3NoheYy8BEqP8NfUS0DjKX4teAoXG/+vQS8DC+H8d5ojXYXp4PUwDrn2II+g1mf9Ayy1K6H1DlALGVR6YmJPBJMoI4zotTObcMIESxDhlCd5kPiVE+VK5yUwqZI4hSh/jKodMzIlkEmWTcZ1SJnNemcDJZULMsHwf3dA0B+JDLsVZp26aD1J5sgqpZ4hSz7hKPRNz6plEqWdcp57JnHomUOoZp9TDB+ynhCj1Ko/XSYXUM0SpZ1ylnok59Uyi1DOuU89kTj0TOPVMiKmHLxBQhkxzID7kUpx66u2BIqX3/U6kwGk48r6fLiJSUr/vp9VKelbe99Myp6p+30+qmLb6jYaKKlM4lMFEjgKnc1RlUsciIrVjAU7wqFbSPBZKyR7llPJRpsRPL3rILJ3WQvmh9ok0IKpveRwKvJnwPsg3k7QP8g0/6yTMxXmbF+FUPG1xTEL6SGgWfyyI9NFdfuO1bH9I17I9o2vZnqlr2V7I17I9pmvZnvG1bA/5WraH8Vq2R3Qt+3YwsjM/iiPpbbIs4GnMvEVzAiRHx9tgQ8Diu6Nv0XAczWIjZqIH7Br8iaNaB8x0B8xEB/hlOHyviv8sx98uxP2j1+0CfPgtJCN8jqrQiNbaxXlgleY2urnh+hx5CYNXuxFRaFQUPm2/fGr6ennntbFIK5rT1qre6qq3oqf40h0lUX27dsdyucP84t2LrehQNGgl+of2cIGybu7mOTO6WKgTp+lqcet03DoRN37RGSURt051e5eTfxMPt3QoGoOvnA3nww3WpWTaYZ0E9mK9xzqpImRpl3USkj/nfdZJoWClndYsgGenqx/myr3V1Q9L5OO1qx+W2dHT1Q9z8vbCZ6LZyeVNIKs3Ptq/yvRNq/Vvsn8Tqt3LE4FxMhdf9YSBz4sh/hpVyzRDmMA25MJYqNSE4ZqYNUykqcN4LYx5EilKmkmK0IrCaU4xYbSdanYxrZYStXnG9Fpb04xjQiUz0txThJVitRCkqcgFOR8VWUxKRepE8TQ9mTDaBWqiMq3WBbUpy/RaF+TJy5TKqN0ItlWs1nw1q4ULjjC3RSV9Z5TTPBdlHfdYRkU/lkh9EOU8/0U9BzzqHPaophkx3ZQ5kwLPjiM3ZXQRMVPqmzJarcyalZsyWuYZVN+UkeqsGrI8p0aZZ9ao/gcZJWfZWGI8o/KMG+XvJFSafaPKTkv3BaLbyZsG+ovr7clzc5STO5P8/ZDL2ZpKqDk7FuGZO6rjnSJm8aDnuTzIbfWDeV6P8n8QHTnHxxLjCVmd72Op8QjluT/Ko3mZ1wFBXtWV8fDllQHJen0QCqlVQijQVT+aVwxR/g86V64eYonxzq2uJGKp8c4Vq4qoj3rSpqps68p46PKa492w0DjzozhHvsMFBSAxV76jhQPQOCu+CwsEYHTv+x0sBIDEKe7dhF8/ejdJbx6VJwPY1rRDijm1Wu+QYjG3P+2QYs6RyDukWIgxSTukiFN0KjuLwuMRjJPeWSRFitjIziJZIsdO7yySIkexsrNIqjGeemeREimyY5ts4NESBldtshESBba6yUboOahqk42QOKByk43QYjDVJpssUSDrO1DKAziMYdqBwpyip3egsJjjlnagMOeI5R0oLMRYpR0oxClKlZ0b73h7Ql2hgNV2blRkFb6RnRuVEhTM6s6Nis6hrezcqKgU6NEtC6xy2MOWhcQo1HnLQhJUeOWWhaRRSMWWhaRwGNOWhcQpdJU3/J1zuOyPHTxXjMLlAoXLBRUuV3O4XKNwucDhcoXD5UoMl3MKlwkULuMcruEH3J9nQqEqmAJVsApT0XKQikIhKpgDVDiHp/AYnEIpNAOmwAyUwvJ+CMlTPyrhABR/S/R9CgPw9Fui77H5gOi3RN+HZgMLvyX6Hpvr6EVoz4vYcz2KV1wuXMajmAo9Ev3d89TXPY393CN5y6pXqPd7Fm9O9Sh27x75b8T2R3G7QY9KCACFhgBPmxJ6WhoCyKoLzHoM2NBjQEoLHJUr2zMg5TbQeUGxk5ucmHaPB5FOzEYmZrh/AzjnayPytRH5andkHLXxKDejrdS5lXVuc+X4Tgoootp2ywRQHlNwb8Q6BO9JeM91oWe7nI1dJfU6mXpdTj2+mQCKSMpOJGUXknI6uN65H8XXtaboeoDELogpuR7QuAtiGlwPGO3HmILrAYnbH6YTfHVyit4FSLwkOSXvAhpfh5wK7wKFXnyconcBiq84Tie452eK3gUo2vc0eRfwZMJT9C5AZLXT4F3AwgQ7Re9yVJzqqZG9fupHpU2A4jub02RUwNPvA03ZqADHX9qbBqMCRj+XN0Wj8oa1oUCbm6F+CXpKRgU0V07/EvQ0GBWw+EvQUzQqR2ZU3h9dKNDlhqhfOZySIwHNDdE/YjgNjgRMxD/+RuGebMM42ebxvE3j9sNgZMMPZX1AJ0NmDzSBxbvAIOCtX8B2vxeYP6QE6DdtAZY7tYDsGaSzvaU9PbcjmyodxanSOU6VTm2qdMRTpSs+VTqzqdKRTZWG+mXLmTXCHwUCiwuyD8nUsGz+lbIPaGvIaPr7EHwNC5b4A7L4OyuT+xMgw7LMC9FnGtFcf/iGrNLeRrc3PlsDLuLQiDg0Kg78wGzP5mE4zeO46xFtVv4weCV8RyuC0NYa3OoGt6Jh6RkZSD74ANrjMGCio3115wxXd54AXRyhnbCXrmYlnbaSTlhJel4EknKZTrlMRy6DDy0S44akxxZJkM1UDy6Sxg3Ojy6SktrHDy8SZz/F7YWDWaXthcyVvarthSyR0da2F7LMlpu2FzIn8y0cHcoYD0kTyIuNy/Fqqhi0pvHINYF9yYRkTqaQUxuPF9HGacTyMyv+GlXL5OAmsI27MBYqZeiuCVc3sRbH5O8mVOOYnL4IYPeGyPONs/EXoRXfm6YAE0aDpSYD02rxqE0LptfileYHE3iSSE85WRDTRZFwzjBW81s9e5g6YqtpHjGhMpmYXrXdPK2YQrZLjyMV5harB5JKkwGpPJJUModFPpRUYmq8eCypJJ55QIPJBynNPyipKQj1PAuhShMRSnouwhI8HaFGMxJKNCmBhA6MmK0CNZqdUJJGggWEl6DMdoIaOwZqyWRRpPkKJZqywvPqYBziSbb4vkrV0/SFGs9gQftOONU8FmQxlaE+Eu40oaE2Fu40rYEGMxtSmtxQ4vkNtFafI81yqH0voGquQ3kkYLUZD4ukCyIUeeJDjec+9fqE0MQMCCpOgohHZgU9FWKBcedPEyJqlTkRi4xNDnlmRDFODvudwl8tq/ZHm3DkP5feH8X7cz1K9+GKZeL3FrTJaJs/yKcxns81WDCeq6BNRtv8QT6X8Xyu8M4TnDDwTYVvK9/D549irgR0JVQB6EbSrfwGPjlK+dTlJRw4b0GbjLb5g3w64/lc9i4FnMzYRrCt+Cyfz4V8QnsbAU5obCPYVnyWT+hCPiH8zfuTQDaJbNOn+ETib94PCv5Z65OINhlt8wf5VOrPWh+kqx292luLHcUXG/ZkYefsj+KE16P4/B+E+MzqapLekLia4J8YvEIHBySetF2RXwONT9quhDuDQk/aroIXAws/nHgVOudqgk8XrjD+gFJdr3E5dl7I56B/VpG9TnchzgP+nEvq70l7Ns8D/pxLVr4n/bJF+SYTPqvS+tsOU/5k/WV2vQ/h+UD7L85/R+Qoy6TlSMULb0NfbVTEkbY/egjaNmjU2zzQBqo7zTDXByfk0/gNm/ylD7nUNpfiiqo5epB0ahjm2hYOtcWdiPSlD7nUNpfi2qqdiUVSbz2Xqsm3npWIldfLg8gfKuW3lfKpQbVlw6Cry7ZzVrhFtNY4TV+1kSd4kGW3siy3o7ICKapfxqVmgJTaARo2BPBGn+RBl97q0qkxqOXW8LvOQ23Tu87EoQV5+WXoIZfa5lJcY7UiG6T01utQrfzWKwtQYbGEc/Ygym1FOa60XNYNWnr5dKhcfvmUBai1WAc6exDltqIc11quDQ/ax8nhftSpH8VFWI/K3SdA4l2JnqelWk/juxI9ojciekZvRPQsvBHRk/i2x0eIuJPdeFg063V/8+NpgfFDTW4ovZFzQLqh+Y2cA01v5PQ4t5/fyOmZaH8bj3Kd1es3PZcVbHNN9Os3vSLqSK/f9Ch3CP1F7o95CfQkCgM9rJr21xf9Nks/svsjjuwmHqC4hfIglMvslUD0tcbpu52rE4j9oVKgk9V2h2pVnDj+jTnx5+X0X5b7PIyEEz+KfvEZRwKifDnzmUYCUhgJgONVzucwEoDRtcznYSTAUa5zW6lgKyvY5prwSABF1LGNV4mfcSQMKO9a1wK1pbJnvaKKRtd3rFcK5L6q7FfXKkentl9dym1VGA2L7O36ZnRdYLRZlXSo7UTXMiVJZSP6Qb2bDDeI/Sh6Ro/ET5X3HO8CO40/Vd4j+VPlvUI/Vd4z+qnynoWfKr8bbOiwqrlDGwKEtevpMjR2mRu7rDR2KRu7zI1dVhu7FI1disYuU2PjfcJlaPoyN52XigMNj8SPIqIgVB6Ik5jDkR+HE9eBEQ/DSeAQpUfhEUOw8BKfAsFhU5f4gxR+FekoIopd5TeRSMyxy7+IRFzHLv8eEgscu/RzSBFD7MKPIcVAcOzUDYci5d+KOFICx3HslyJkERHTyu9ESLUS38qvRGg5xVr/SIQSMe75JyJUKFMfVH8gYihQbm1DHxii6BtXcTcxR9wkirVxHWWTOb4mcGRNiDHNjwOWeO+fAsERVPf+D9JuvUB3+/eEbtC3w4n9I5tw5NdKbVhFt3kV3cpVdFmccFXSjVHiUCm8MUroIZ9nKxBVtP7wspW3Gs+ExvVOtxqHmqZbjYo/VCqwrXFq0HeeUML6jtukbjVmCdpDtxozfZCn3WpK7Rh92NnyzbmziLn+eHNuqCbenCP0kM+zFYgqXH9c2o7u5meV604yNIGUTVV5qFZlW1eoeSznVlY23rf5FiQL0KZwC5LZgzjZVjGq+8iT5XKx0d/ROz+PqHwNc9vQSDzuaiQRTs2S7W8k7pscSfCdjiSU7Y6Ebc9j5FcZXQtUCUN5VJh5eeyXlCExnkV8k0ve7Bo+u89cVKOpVK+pVK8Z66Wm3kvxj4WRVunBptaDTa0HP2YkOvS2koHxFhirnzKaC1SJ53wsbvN63OaV2MxrsZnXYvPfGYlSn0djsBCo0uDF+BfZX1aL/C4j0cZl5ZzLStIuR+uyrIzvVqDKidux3m3rvdtWejf9mTqSa53fVsLaVpr4RaAyzZDN/DsXXQlUCdCq0jOr0Z4REVtXTrCunGBdtdP16KkVGv1AJ1Clrt1YtnT1bOkq2cLXVSzXsqWrWUWnJ8L9QuMizvubjPx9eUPbXMoWGcyh+SR9yzX6Vonwt0o2fBOzkP7bp4Z52YUXmcfxGzYZwZorv4bWVl5Da+uvoX2Bip6eF+IPvwxtw0foBF/0dw/fUnt3KOo1sbyOdHjcRl9l6pmri+bjffnSw/9/OL8wtXywX+UcZWwrnayFaoqvXOmPuYUJzfJKadEecol1BY+ccD1yQrQ2pX63OkNfHIbZaljFH/tRvC20wrU7IHGTaEUrdqDx1tAqrNOB0R2fFazOgdgL84aGl+JOARwGy7mR3aLtMEhXsFwDgu0B7M0BOLQGSGkMoNIWR/EgdJTzRThI9VzUPjZ4nZPdmurEDpbhYPhWIEO+IcHzAB+C7+QLxt0syQMP+xS83O47z/wgnMt5h83pUig63WWd6rIudRnNniDkvuxyXw5zpYOv2LxtOBhqDsSrOMByRw2GoiEaj8ZpUBpXI9PEPDxNojFqnAeqCTxaTYhD1jCNW7+xicnBtzvPI/ZhbCQmhmGRHaalFDEl5olhygnjlBjwijETNW6LuMhEN0qOfhOjBRTsPlDIMpPoCIajLTgW3mBiNAi7TZ06mK2i8OwXRXFzMKKcAx56Uig6HVVlJOKJJys6VbSvpMedzCuJFG0G7u1TaLaZRNcRt+wHJfytJkJkPekvNTFX1iP/UBNJZD35zzSxwNaT/koTYbIe+iNNp0yD9RTs1mMk5pNhkU+mpXwyJeaTYcoY45QxsCuBiTKNIi4y0Y2S1mNitJ6C3XoKWWYSrcdwtB7HwnpMjNZjL+OnDmbrEX8biT7h7mJEWQ+8M0Ch6HRUlfWIFwZY0amirSe9LcC8kkjReuBVAQrNNpNoPeI9gaKEp9doQFFgG4oqm1FUpSXFIsKYYgG2p6gmk4pysqook2FFkW0rqJSppEULCyIYWeSUo1FUmRpL5HyNOmVtFDk7o8o5GtQql5YViixqfCwU2gpjETLEIIItBr6scbLIKJJRkqjsMhYh0wzil0p6JQMNqrDRoINfRi4tlV8lkiFle62/SKRLfCd12XDH3iLSZUbTO1mweoVIal8rId7WOFlz7fWhg563VoktVeVNhuEjfP02FEqrfuLwDXpv3TpN3sTxGyobLtfiT4knBb9Hemr5hB4RUoXv9LFBWziHo/3fzGUS7wY6Frf6ivg+kandfy1k/+fjn0VSZlrCMENGpdzoHe7gnmZxUA73hb8O0/zBbL7i3A6oTOiA4jvYzvHFa6f2trUjf3vamb8u7qzsY3Zir04bKonw1NoU9Sa3yd+tB6Tb1Mg2xVfnHeemNqKpjWhqG49yndtKBVtZwTbXJL3X7oqoo7/B7ijHnn5vd1PWjed2FN/v24QVoqO4LHSe3gLchAWgI1/1OfOlnrOyvnNiizpDJaGeWJt80bfBhAIUt/FsUkIBT+vbDScU4LjW3YSEAkar2s2QUHCU69xWKtjKCra5JulneFwRdfQf3XEUF9QbTKhD8B8muH3vAYMPKG7fe0jBB56etz1w8AHHTXMPIfjAaPvetriqH9lodmSu6kjsbNmyqzqNe1i20VWd0SacLbqqk7ghZYvT65GhWKDJjaItS9tsq85lo8SOpG2wVUeirbzhaFts1Y9yndV+oi3bqtNcE71daBtt1VncGLQNtmrIly9D9PGBxAkhalN6IMFcNVg9kGCJmp4fSLDA3cEPJBhTHNLSlWIhinJOGqfEdD4SC5GiLuU8Na0Sp5SxJtTi1ApUaaDMYhPrDeF8Nq6T2uRaWzi9jVf6NiU6vDINuY6UIoASZTxKKj6o5xChSlFCiSOBGncsanEMoEKhUr+rkYOlP8DjASUaEkEaD5YYGEHNYwPleizTCEFtJJatpvW2y9GC+mgDecygpIcNlhhpIw8elOpJwUPoW1mvnttRXIN/C+tVQHkN/o3Xq0Bxveo4Ls2/xfWqM1qafyvrVT/KdW4rFWxlBdtck7RedUXU0derjuK1wjeciRhR/dNMlLhonJqJkpT7Ic1EzLm1eSYioRWo0kDZS2omYqlS2Uqn5ZmIBeq+NBMNvNyvUoiaaJz60Llouom56S7lPjSNwmKc220C92ERWoEqDZR9aGK9IdyHxnUfmlxrC/ehcepD/BWkGqamBo36M2oiFKFADkeUc98GnUIWNI5LELmfUWwreCQIss9DgfGGct8HTfd/KDLWVs6DoEEu/Ot//z8nhUqv"
1128'),DLe=JSON.parse('
vendor: 14,906 bytes, line 1128
1128"eJyNnVtzG8mxrf+KAk/nRGh8eBWleZPnItsaj0ZXWNvhB5BsUdgE0TLAFgjt2P/9AI2uzJUrV7X8olB/q4CuyspaVX0p8H8mP7V3d83yfvLj5MPfu/Xspnl0enH05Nmjs6dHz84mjye/tsv732d3za7AX5rF1+Z+fjXb426xUHh2N19shTBt5jef92f5e3M97+525K/3s8X86vnyZrEre7Q7Xv86f2iu/5jfX32e/Hi/6prHk58+z1azq/tm9bbZf/aXh/tmed1cv2nvZsuhbn/+c/sw+fGfPxw/efL4h5OT88fHR0dHj5+dHv/r8eT9rvBqMV82f7Tr+f28XU5+/GEng/Du8/zqdtms15Mfz3f8Q7Na98UmR0cnf9p90e4kv7e7Juyb81P7Zbvat+LR/7n6v4+Onz09f7z/96L/99n+32dH/b8Xj55ft5fNo7fb9X1zt3701+VVu/rSrmb3zfWfHj16vlg8erP/nvWjN826WX3dUQvVo/n60ezR/Wp23dzNVreP2k+Pfpsv2/vtl+aHXaHFo+cvHs2W1/+vXT2a775g3V2u59fz2WrerP+0q+wvu1Ndz5c3b68+N30f9DV5e7/7yGx1XdRdwZ9mX/4ydMnF8dPHk3+Uo/OT08eT5+urfaBXg/hzY8c/nBxdPJ68vb/+y3QnPun/+2H336dPD7319+Z+Nb/ahfOf/zOZ/mPy48nFTvh9V5H1l9kuiv/7mHDzcLWY3Rk/PT8/8H937S5alwtTzs+fHJRld3e576abZdau28VitjL+dNctPf/SrK72SV6EJ08uDsLsbietd9Hxmp2cQA36/vbanZ4O3zdbNctF86km0cdKNWbr/Teub73iT8+GTy26dQ7O1W5szvIpPm+/fG6WufiuKfP2OvP1Yrb+nIP1rVm1mbbLJsP7jSh5/3nViLKf2m4l6PyrKLuePwjYfG1E3zYhpp4O86VIq6t20YoIrZu7eZSsBxZ7E0i0+Xc3W2R8s2p2g1k0899ds+6NpijHR8dDRs9E+j3P6M+GLkom/pTRz/mDvzg6Pj6gX/2DJQIv8nf9Jcfpr96yvV3u0d/yGV/m9v/mY69k69/zGX/P9XqVv/6PXOp1/q43+YNvcyTe5Q++zx/8YOjZ2dDT01zqHxl9zGf8rxzVy91cdtvcB99wcafFgcqfi6Zy9sRM5Wo+v5qvrrq73B/d3rXXu+kHxkgwuFAZ+9gso8ucElfCgMW4zQ36lEvdZPQ5V3me0X/net3mUouclyJawnWE730Rwz6b9CrXSzi8iH2XP/g1Z+8ml3rIaJvRN6jqmedXTISTJ0clK1eV8jEbzRn7bLyfL66bHJLDXH/dbkScw/TsU8F9v0zz5DguI+7Tfl2IRmuf2arJ49OiXc0FXzeVb7nqVrt5/MoDePzsGIbNet6vW1MTy7JFD6ubbr5T7tp7vXTYy/0Xf0em0Jee/TQXTCygdis5uR64nt3cqDntwHEtRiuOfd81qwbG/umFLYZmN6vZFz/b6XnJrN0FRAMZF1ypb+blbD0S4XF1pRcL1gFR7y8ZDrFZLOZf1vO1kHZtvf/cdmGxaG5f5v2Q3N5zq9lXUdnZVXcv8MHLPy2ah6xVRtbd7GrVihNfrhp14uv2fnYVRpxL811PYgDc0HAcemV3l3O7NbdYpHbLm9mqu1vMOnGa9ma3zrwVXzdbhcWT9ctdyFkXnvuyZ3fdOnz56vrTbqEXVoa+QomTrC9AIvczvIIzPDm3M9ztnK5b4CnsamMmprzr/aBfr8UEtogntpRqI7cVSdvksrvxubsi3uW9mGL+mrrUnSBmoE//MW98apKd6l8Xe89XR7kGZbq4nn+dQ0L7R2LNfMEsBodXO37IV3rqQzZFUgxssu4vvmiYQFPzV/r5wlBxXO+IGY0H/0ylhzr6gF8FpJP4NcPOI+Ai5KQ4sWroRXHwq3LTQ5yKXMfXhTEPvJU6Lr+rCvjwqOVoNFVf6cvm2KVU7duisUI4k1VChsxk89fsiTYU5/HsZxdDnRftt2Z5IzL3TTyFX8WNJmc3OkiE6MOrNpGsKm294rb69U+OnJ3m3ed2JVr1is7uYai4wVviZ2USo7DZaOKMtYjpya2/w7Hu+lXOStSXUtCiWONkq8UE77rF/fzLYivqRQ30JA8NPLsolyaz1f18trief/qU+2pbt4bf43k8YceS5ZfRNBuZdbJk6VQZnsuaDdYy5vcYIJ8M6Yvw/ttuxYA34ewSaNXeNku8EDJzXDU383Vc+voQjZ0N03EeF+Yc3W5Uh+sRD3ZlDbmqRKalyPi4rKTUf9EIP3tW1q79ra54I8zi/Mv95wx/SgZoZq586/R4aON9Zd5oqrNjbRZ8Xls+jGRlDLBfL9PQsFsRXClzhVqP1Kae2jS6rg3KPI7t3KPLEp4xy7qgWdyLGz73waTdEzftiCPW43vXiZZQzC1Ucp3pY4FC71eqcYXztNyw6H18l8CrXSKv8/e9Tfn67FnJV72ifTk6//4WO84vJeyxjjLFZAtuGTFMzmvT2W+x2haHXdQ+zxYwNZRBvr80oVvd1hdjLr+MyyZPte90YGUoNLUG3UQzxQYN3ap6VffdW7lAtAyWNT8rPXi9swn10KONXQRWqC2ti+XPzs3Or+dXymh/jl8EC7Ox5e7vsX+8upV+ezOe10p1b60soZ9XTTpeDlgPUJ3NiEcWlL/Upnt2CrtFLBtqC7K4ErBvGx0KlSrcj55p0d7s+3vZinC3dTPtslSG8u6rKiP5ZvyKFmZyj3klfZdyHrebO8u8aHbPr43xX7r948h/PZ68bFbLP2bz1f4h8j8nz/cPqyePfzg9+tfj4ejgHgEd6hnRYOoIX8Sjg6sEhA1D4VU8ylXAqTdw66pAD+M/oOA8QRlCFtjh7lBAh4GD6HU4erc7Oj7xwxK0wEL7QXm/Ozz3oxIAQCEAwCEAQEsAAFEAQLEAABuGdmC9oyD5sDu6sKNp0D7uG3jkh6VJyKDugLsQ1i4nQ1dJhk4mQ5eToasmQyeSobNYABti4eTr7ujMjjbhaBuPSosAQc0HOhTC0WmIQmKcxqlzHqxFeSEQDVvjcuwW9ZVAlVrKoWxi7kKTqB+N6840mXvUBBrjxmmgF/46IxzyxnjcuyAHf5HBAQyRDRhXXmBiNgSTyBWMa2swmf3BBDYJE6JTFAx2UdA0l0LjMMbuYYKwkKJ1ucPYTIyP5aSwFZMqOVkxGJNrOZmsxoToNwWD6RS0yWgrEHmQ8WxEgx+gERmicBonI3LORlSUFwKRERmXRlTUVwJVaimNyMTc6SZRpxvXnW4yd7oJZETGyYgKf50RGpExNiIXpBEVGYzIEBmRcWVEJmYjMomMyLg2IpPZiExgIzIhGlHBYEQFTXMpNCJjbEQmCCMqWpc7jI3I+FhOCiMyqZKTFSMyuZaTyYhMiEZUMBhRQZuMtgKRERnPRoShQTeKnAIbRfIlEtmcgvyixsmmoii9KhR5VeNjDZHWFUvkXIk6JUwUddbEMpw6USVPiyIZWxBfVzhaXBTY50iVZhfKgONFTrYXReV9sUQ2wKiTC0ZRW2Esw34YVTbFqEZnDBrYY+DTSnk0yiiwW0ZVWGYo0FVSgc0zit8dGsJGoz42NCqGGsuMDo1krVGN/ho0MNnANxW+rXHy3Chm43WCtouUOgQlstwgseGC+EJTMluUpNVCgVea1qsuTRb1nEeoUhahpHMIS3AGoUbWihIZK0ivJUVTRcyWGjRpqFAC7BQpmSlKykpRz0aKKtkoStpEsQRbKGpsoKhF+wQFzBPoVJZF40TMtomaME2QO9nNbJgofSfJhVmiWk/yilFiiZEkTyaJWrRIUMAggW4k3WpK1ohSNsah9eiKhijkxskPnbMZFuWFQGSDxqUHFvWVQJVaSuszMaeESZQPxnUymMyZYAJ5nXEyusJfZ4QWZ4z9zQVpbkUGZzNEtmZceZqJ2dBMIjczrq3MZPYxE9jETIgOVjDYV0HTXAqNyxi7lgnCsorW5Q5jszI+lpPCpkyq5GTFoEyu5WSyJhOiLxUMplTQJqOtQORFxrMRlbqiEzmjgLpAXgQCm5FJLxQjO3JB+pHJrxSrVVZakqu5/12jBHBBZ4DrnAKukC+5QMZkwmvB0JocsjeBIs3JdHAnZ2RPLih/cjUblGvkUC5oi3KdPcoVNilXoksZB5syNhXl0KgcslO5IqzKxE50IZuVC6PpKuzKtVq6VgzL9Wq6JstyJXqWcTAtYxvBtoqRb7mQjatUDI3LGQXXBTIuENi4THqhGBmXC9K4TH6lWK2y0rhczZngGmWCCzoTXOdMcIWMywUyLhNeC4bG5ZCNCxRpXKaDcTkj43JBGZer2bhcI+NyQRuX62xcrrBxuRKNyzgYl7GpKIfG5ZCNyxVhXCZ2ogvZuFwYTVdhXK7V0rViXK5X0zUZlyvRuIyDcRnbCLZVjIzLhWxcq+GHPrwKhVBgCybLMsyGNQgvMiGzKlha1SC+ykRXT5pU0XKfF4V6vGDd30Xl3i6crKlgMqYBv04ETakgtiTj0pAGFeyoEDKjgpUVFS0bUVHIhgrWJlRUtqDC2YAKj/YzUDCfgUxTGTSegth2ChemM0hd6h42nIJHEk+YTVF04lWMpqiVxEsmU3i0mIGCwQxkk8g2E7KWgrOxDOmOzmKIQmicvMU5m0tRXghE9mJc+ktRXwlUqaW0GBNzV5tEfW1cd7bJ3NsmkM8YJ6Mp/HVGaDXG2GtckGZTZHAbQ2Q3xpXfmJgNxyRyHOPackxmzzGBTceE6DoFg+0UNM2l0HiMsfOYIKynaF3uMDYf42M5KezHpEpOVgzI5FpOJgsyIXpQwWBCBW0y2gpEPmQ8GdGfh9w89iPvDEMhfsBD9xgtUQNEAQPFYgXMwgRsiJCTw+96Pf7hxMjw010F/QSFTo1YoQGVV+KoZMFcfBj+XLzgVLxYc/qACfSRn3fouXVPfxQ7s0fFxQGFPgKeurynpY8AWU8As54ANvQEkGKpjtwLfh5swLW9Azzzo9I6QFBlpyWA/rUWuQGVToDwGaIYGqdAGlfRNDGH1CSKq3EOrgkcYRNimA1TrAv/kMMwzaUg9IYo/sZzJ3Du0/lSd/T7CGN3FMTdUTh3R+GyO4oouqNI3B2Fp+4oQuqOIlB3FMzdMfAPOQzTXAq7oyDujsJFdwwSd8eAqTt+HXriqR+VUwEq8QcUQg8cKgS0BByQxRqYhRnYEGEgJbiOZrag6I/iCqpHpQWAxHqq52kp1dO4iuoRrZB6RoujnoV1UU9KCxyV3jp25CuM/iguYnoUV/4HlJc0PU+rmQO1bX8Bx/VNj2jt0jNatuxZG49yndtKBVtZwTbXpJWLrF4RdWzjcr9HcaX/K44JiP5qPy7P7cicyVGJPqKw2D8IfxtG2GH18TccYYBKfgIKkQIOkQJaIgXI4gHM+gzYkJ9ASogczeJRbsEst2BWacFMtmCWWzATLZiJFsxSC2a5BXGl9be8xNqjLnyky83sKm3qZJu63Ca+SABFtLYTre1Ca19ODtfh534U7a9Hwut6nryup9HreiQvFnuFXLBnZdQBipb3cvC3Mz+Kc/9L9DdEecZ/Sf6GFPwNcJz+XwZ/A0aT/svB3+Ao17mtVLCVFWxzTdjfQBF1NH8DFNceLyd4Tfxyki6HX6asBp5c+eUkXf++FFkNCrnyy0m+4H054WvdPdmGbNnmrN7m7A0GjOOCBPoyUtVooSLfPTWNIVL1cKJCPLJIpkFGKo23qEJ6kEAZTSoNSFZF6lORPAq4QB6xVIKGDKk8RkjmIR3ltiqMhkWOeSryvYazE5CqTYEKjbedrYJUco2ogoGQQF5CqrIVKpIdhgqQ2ZCqfYcKsQWRzG5EcjSmKG5rI4ztitRkH79NhhvLx35o95SRxdvJrnyIh/vLygs76u+unvmh3csDhjftHMcffc2S8SfGtxas3zAQgFKf/xb2VB8T4zjU9lST/EEwCEvYcXxGjAMkdxyTVgtV0DleuEuXYsGRU7t0B6nca8HwGePwuSDDh7eOmEH48N5RaWm6eZQEEb6i1cIXdA5fEbc5Fhw+4yJ8YXCGIEYlhZJkHdBQ6ENVweAGIYQ4KinQUVbhDiWqQc+lUuiTEcpopm6oGuFQYJimQjcY4w5wQYa+yB8Eg3AXhIE2xiE2QQS3aLWwBp0DWsRtjgUH0XgK327JC3cb+qN4EdujeK3eI3Fd2/N0XdvTeF3bI7p67RldvfYsXL32JF6rvxr6/syP4rLzVe5vFz7YjPpq6GOPyz92R0/s6KP1/yvsZkDQdKflNoKf0m4jDKj4NHSDIeoL49QhxlWvmJi7xiTqH+PcSSZwT5kQu8sw9RnO3xQG7r3K7E0q9CPO3acRQY/idH5BiPpWTeYkUS+nx34DD3snob8jp06PIvV8FFX3xxI5B6JOiRBFzoaockpENeZF1Cg50k5uFT1Ok7F93KoIJEzatnwqOKRO2s58oTglUXUzs9IpnYLGOQWbziCjkFI+oUTZhJLKJdRzJqFKeYQSZxFqnEOoxQxChfKHtqzmOHHu1Des5gKQN7Rj8zRRyBnax3mRKeVLZRdnVilXQOFMKVuCIE0MUY4YpwQxrrLDxJwaJlFeGOekMIEzwoSYDoYpF3BjH4WBs6CyrY9U6H/c8nYaEfQ87oK7IER9rvbAkUS9XTB3dbzNgT3OCnU8y9T/LKs04DI5G7gEJQXLnBusc4qwHjOFVUoYkt9VY8rpk2SVRVQIkokUyClSILVIgQxjhRKN5ZxvVILSjlTOPtvDA3nnjDLOBco1F1SWuZrzyzXKLBc4p1zhbHIl5pFzyqCwY48jwllT26/HMmRK2MJ2SgyyI2xru2BGGSE3tbFGWWCc+79cbkL3G6LeN06db1z1vYm5602injfOHW8C97sJsdsNU6/jbQgKA/d55SYEqdDjeAviNCLob7wrcUGIelvdkyCJ+rpg7urySih0tSHqauPU1cZVV5uYu9ok6mrj3NUmcFebELvaMHU1vthNYeCurrzWTSp0Nb7yfBoRdDW+BX1BiLpavQNNEnV1wdTVfwy9PLyS/gf2MLLSu8jii78g4D0xwPbqLzB/wxegv+ILsLzjC6j0ILBZaJm9oQIovkXYI/HkrufpcV1P4zO6HtEzt57RQ8aehfcEexIfuP0B/Xb81FBjmdQfxYdKPSoJiig/vu55euh0oPDEFXB8ft0jeh7dM3rfbc/aeJTr3FYq2MoKtrkm/DgUFFFHe/AJKD4d/wNHxxD91xN8A74/im/A90i8Ad/z9AZ8T+Mb8D2Sb8D3Cr0B3zN6A75n4Q34N5PDWw8nfhRdu0fCmHuePLmn0Y57JN9h6hXy6J6V+AOKDvxmMN9TP4qvNr7JluvCextEb7CXAIlR/oZ6CWgc5W9EL4FC4/9N6CVgYfy/CXPEmzA9vBmmAdc+xhH0hsx/oOUWJfS+IUoB4yoPTMzJYBJlhHGdFiZzbphACWKcsgRvMp8Sonyp3GQmFTLHEKWPcZVDJuZEMomyybhOKZM5r0zg5DIhZli+j25omgPxMZfirFM3zQepPFmF1DNEqWdcpZ6JOfVMotQzrlPPZE49Eyj1jFPq4QP2U0KUepXH66RC6hmi1DOuUs/EnHomUeoZ16lnMqeeCZx6JsTUwxcIKEOmORAfcylOPfX2QJHS+34nUuA0HHnfTxcRKanf99NqJT0r7/tpmVNVv+8nVUxb/UZDRZUpHMpgIkeB0zmqMqljEZHasQAneFQraR4LpWSPckr5KFPipxc9ZJZOa6H8WPtEGhDVtzwOBd5OeB/k20naB/mWn3US5uK8zYtwKp62OCYhfSQ0iz8WRProLr/xWrY/pGvZntG1bM/UtWwv5GvZHtO1bM/4WraHfC3bw3gt2yO6ln03GNmZH8WR9C5ZFvA0Zt6hOQGSo+NdsCFg8d3Rd2g4jmaxETPRA3YN/sRRrQNmugNmogP8Mhy+V8V/luNvF+L+0at2AT78DpIRPkdVaERr7eI8sEpzG93ccH2OvITBq92IKDQqCp+3Xz43fb2889pYpBXNaWtVb3XVW9FTfOmOkqi+XbtjudxhfvHuxVZ0KBq0Ev1De7hAWTd385wZXSzUidN0tbh1Om6diBu/6IySiFunur3Lyb+Jh1s6FI3BV86G8+EG61Iy7bBOAnux3mOdVBGytMs6Ccmf8z7rpFCw0k5rFsCz09UPc+Xe6uqHJfLx2tUPy+zo6eqHOXl74TPR7OTyJpDVGx/tX2X6ptX6N9m/CdXu5YnAOJmLr3rCwOfFEH+NqmWaIUxgG3JhLFRqwnBNzBom0tRhvBbGPIkUJc0kRWhF4TSnmDDaTjW7mFZLido8Y3qtrWnGMaGSGWnuKcJKsVoI0lTkgpyPiiwmpSJ1oniankwY7QI1UZlW64LalGV6rQvy5GVKZdRuBNsqVmu+mtXCBUeY26KSvjPKaZ6Lso57LKOiH0ukPohynv+ingMedQ57VNOMmG7KnEmBZ8eRmzK6iJgp9U0ZrVZmzcpNGS3zDKpvykh1Vg1ZnlOjzDNrVP+DjJKzbCwxnlF5xo3ydxIqzb5RZael+wLR7eRNA/3F9fbkuTnKyZ1J/n7I5WxNJdScHYvwzB3V8U4Rs3jQ81we5Lb6wTyvR/k/iI6c42OJ8YSszvex1HiE8twf5dG8zOuAIK/qynj48sqAZL0+CIXUKiEU6KofzSuGKP8HnStXD7HEeOdWVxKx1HjnilVF1Ec9aVNVtnVlPHR5zfF+WGic+VGcI9/jggKQmCvf08IBaJwV34cFAjC69/0eFgJA4hT3fsKvH72fpDePypMBbGvaIcWcWq13SLGY2592SDHnSOQdUizEmKQdUsQpOpWdReHxCMZJ7yySIkVsZGeRLJFjp3cWSZGjWNlZJNUYT72zSIkU2bFNNvBoCYOrNtkIiQJb3WQj9BxUtclGSBxQuclGaDGYapNNliiQ9R0o5QEcxjDtQGFO0dM7UFjMcUs7UJhzxPIOFBZirNIOFOIUpcrOjfe8PaGuUMBqOzcqsgrfyM6NSgkKZnXnRkXn0FZ2blRUCvTolgVWOexhy0JiFOq8ZSEJKrxyy0LSKKRiy0JSOIxpy0LiFLrKG/7OOVz2xw6eK0bhcoHC5YIKl6s5XK5RuFzgcLnC4XIlhss5hcsECpdxDtfwA+7PM6FQFUyBKliFqWg5SEWhEBXMASqcw1N4DE6hFJoBU2AGSmH5MITkqR+VcACKvyX6IYUBePot0Q/YfED0W6IfQrOBhd8S/YDNdfQitOdF7LkexSsuF17Fo5gKPRL93fPU1z2N/dwjecuqV6j3exZvTvUodu8e+W/E9kdxu0GPSggAhYYAT5sSeloaAsiqC8x6DNjQY0BKCxyVK9szIOU20HlBsZObnJh2jweRTsxGJma4fwM452sj8rUR+Wp3ZBy18Sg3o63UuZV1bnPl+E4KKKLadssEUB5TcG/EOgTvSXjPdaFnu5yNXSX1Opl6XU49vpkAikjKTiRlF5JyOrjeuR/F17Wm6HqAxC6IKbke0LgLYhpcDxjtx5iC6wGJ2x+mE3x1coreBUi8JDkl7wIaX4ecCu8ChV58nKJ3AYqvOE4nuOdnit4FKNr3NHkX8GTCU/QuQGS10+BdwMIEO0XvclSc6qmRvX7qR6VNgOI7m9NkVMDT7wNN2agAx1/amwajAkY/lzdFo/KGtaFAm5uhfgl6SkYFNFdO/xL0NBgVsPhL0FM0KkdmVN4fXSjQ5YaoXzmckiMBzQ3RP2I4DY4ETMQ//kbhnmzDONnm8bxN4/bjYGTDD2V9RCdDZg80gcW7wCDgrV/Adr8XmD+kBOg3bQGWO7WA7Bmks72lPT23I5sqHcWp0jlOlU5tqnTEU6UrPlU6s6nSkU2Vhvply5k1wh8FAosLso/J1LBs/pWyj2hryGj6+xh8DQuW+AOy+Dsrk/sTIMOyzAvRZxrRXH/4hqzS3ka3Nz5bAy7i0Ig4NCoO/MBsz+ZhOM3juOsRbVb+OHglfEcrgtDWGtzqBreiYekZGUg++ADa4zBgoqN9decMV3eeAF0coZ2wl65mJZ22kk5YSXpeBJJymU65TEcugw8tEuOGpMcWSZDNVA8uksYNzo8ukpLaxw8vEmc/xe2Fg1ml7YXMlb2q7YUskdHWtheyzJabthcyJ/MtHB3KGA9JE8iLjcvxaqoYtKbxyDWBfcmEZE6mkFMbjxfRxmnE8jMr/hpVy+TgJrCNuzAWKmXorglXN7EWx+TvJlTjmJy+CGD3hsjzjbPxF6EV35umABNGg6UmA9Nq8ahNC6bX4pXmBxN4kkhPOVkQ00WRcM4wVvNbPXuYOmKraR4xoTKZmF613TytmEK2S48jFeYWqweSSpMBqTySVDKHRT6UVGJqvHgsqSSeeUCDyQcpzT8oqSkI9TwLoUoTEUp6LsISPB2hRjMSSjQpgYQOjJitAjWanVCSRoIFhJegzHaCGjsGaslkUaT5CiWassLz6mAc4km2+L5K1dP0hRrPYEH7TjjVPBZkMZWhPhLuNKGhNhbuNK2BBjMbUprcUOL5DbRWnyPNcqh9L6BqrkN5JGC1GQ+LpAsiFHniQ43nPvX6hNDEDAgqToKIR2YFPRVigXHnTxMiapU5EYuMTQ55ZkQxTg77ncJfLav2R5tw5D+X3h/F+3M9SvfhimXi9xa0yWibP8inMZ7PNVgwnqugTUbb/EE+l/F8rvDOE5ww8E2Fbyvfw+ePYq4EdCVUAehG0q38Bj45SvnU5SUcOG9Bm4y2+YN8OuP5XPYuBZzM2Eawrfgsn8+FfEJ7GwFOaGwj2FZ8lk/oQj4h/M37k0A2iWzTp/hE4m/eDwr+WeuTiDYZbfMH+VTqz1ofpMsdvdxbix3FFxv2ZGHn7I/ihNej+PwfhPjM6nKS3pC4nOCfGLxEBwcknrRdkl8DjU/aLoU7g0JP2i6DFwMLP5x4GTrncoJPFy4x/oBSXa9wOXZeyG3Qb1Vkr9JdiPOAb3NJ/T1pz+Z5wLe5ZOV70i9blG8y4VaV1t92mPIn6y+zq30Izwfaf3H+OyJHWSYtRypeeBv6aqMijrT90UPQtkGj3uaBNlDdaYa5Pjghn8Zv2OQvfciltrkUV1TN0YOkU8Mw17ZwqC3uRKQvfciltrkU11btTCySeuu5VE2+9axErLxeHkT+UCm/rZRPDaotGwZdXbads8ItorXGafqqjTzBgyy7lWW5HZUVSFH9Mi41A6TUDtCwIYA3+iQPuvRWl06NQS23ht91Hmqb3nUmDi3Iyy9DD7nUNpfiGqsV2SClt16HauW3XlmACoslnLMHUW4rynGl5bJu0NLLp0Pl8sunLECtxTrQ2YMotxXluNZybXjQPk0O96NO/SguwnpU7j4BEu9K9Dwt1Xoa35XoEb0R0TN6I6Jn4Y2InsS3PT5BxJ3sxsOiWa/7mx9PC4wfanJD6Y2cA9INzW/kHGh6I6fHuf38Rk7PRPvbeJTrrF6/6bmsYJtrol+/6RVRR3r9pke5Q+gvcn/KS6AnURjoYdW0v77ot1n6kd0fcWQ38QDFLZQHoVxmrwSirzVO3+1cnUDsD5UCnay2O1Sr4sTxb8yJPy+n/7Lc7TASTvwo+sUtjgRE+XLmlkYCUhgJgONVzm0YCcDoWuZ2GAlwlOvcVirYygq2uSY8EkARdWzjVeItjoQB5V3rWqC2VPasV1TR6PqO9UqB3FeV/epa5ejU9qtLua0Ko2GRvV3fjK4LjDarkg61nehapiSpbEQ/qHeT4QaxH0XP6JH4qfKe411gp/Gnynskf6q8V+inyntGP1Xes/BT5XeDDR1WNXdoQ4Cwdj1dhsYuc2OXlcYuZWOXubHLamOXorFL0dhlamy8T7gMTV/mpvNScaDhkfhRRBSEygNxEnM48uNw4jow4mE4CRyi9Cg8YggWXuJTIDhs6hJ/kMKvIh1FRLGr/CYSiTl2+ReRiOvY5d9DYoFjl34OKWKIXfgxpBgIjp264VCk/FsRR0rgOI79UoQsImJa+Z0IqVbiW/mVCC2nWOsfiVAixj3/RIQKZeqD6g9EDAXKrW3oA0MUfeMq7ibmiJtEsTauo2wyx9cEjqwJMab5ccAS7/1TIDiC6t7/QdqtF+hu/57QDfp2OLF/ZBOO/FqpDavoNq+iW7mKLosTrkq6MUocKoU3Rgk95PNsBaKK1h9etvJW45nQuN7pVuNQ03SrUfGHSgW2NU4N+s4TSljfcZvUrcYsQXvoVmOmD/K0W02pHaMPO1u+OXcWMdcfb84N1cSbc4Qe8nm2AlGF649L29Hd/Kxy3UmGJpCyqSoP1aps6wo1j+XcysrG+zbfgmQB2hRuQTJ7ECfbKkZ1H3myXC42+jt65+cRla9hbhsaicddjSTCqVmy/Y3EfZMjCb7TkYSy3ZGw7XmM/DKjK4EqYSiPCjMvj/2SMiTGs4ivc8nrXcNn95mLajSV6jWV6jVjvdTUeyn+sTDSKj3Y1HqwqfXgp4xEh95UMjDeAmP1c0ZzgSrxnI/FbV6P27wSm3ktNvNabP47I1HqdjQGC4EqDV6Mf5H9ZbXI7zISbVxWzrmsJO1ytC7LyvhuBaqcuB3r3bbeu22ld9OfqSO51vltJaxtpYlfBCrTDNnMv3PRlUCVAK0qPbMa7RkRsXXlBOvKCdZVO12Pnlqh0Q90AlXq2o1lS1fPlq6SLXxdxXItW7qaVXR6ItwvNC7ivL/JyN+XN7TNpWyRwRyaT9K3XKNvlQh/q2TDNzEL6b99apiXXXiReRy/YZMRrLnya2ht5TW0tv4a2heo6Ol5If7wy9A2fIRO8EV/9/AttXeHol4Ty+tIh8dt9FWmnrm6aD7dly89/P+H8wtTywf7Vc5RxrbSyVqopvjKlf6YW5jQLK+UFu0hl1hX8MgJ1yMnRGtT6nerM/TFYZithlX8sR/F20IrXLsDEjeJVrRiBxpvDa3COh0Y3fFZweociL0wb2h4Ke4UwGGwnBvZLdoOg3QFyzUg2B7A3hyAQ2uAlMYAKm1xFA9CRzlfhINUz0XtY4PXOdmtqU7sYBkOhm8FMuQbEjwP8CH4Tr5g3M2SPPCwT8HL7b7zzA/CuZx32JwuhaLTXdapLutSl9HsCULuyy735TBXOviKzduGg6HmQLyKAyx31GAoGqLxaJwGpXE1Mk3Mw9MkGqPGeaCawKPVhDhkDdO49RubmBx8u/M8Yh/GRmJiGBbZYVpKEVNinhimnDBOiQGvGDNR47aIi0x0o+ToNzFaQMHuA4UsM4mOYDjagmPhDSZGg7Db1KmD2SoKz35RFDcHI8o54KEnhaLTUVVGIp54sqJTRftKetzJvJJI0Wbg3j6FZptJdB1xy35Qwt9qIkTWk/5SE3NlPfIPNZFE1pP/TBMLbD3przQRJuuhP9J0yjRYT8FuPUZiPhkW+WRayidTYj4ZpowxThkDuxKYKNMo4iIT3ShpPSZG6ynYraeQZSbRegxH63EsrMfEaD32Mn7qYLYe8beR6BPuLkaU9cA7AxSKTkdVWY94YYAVnSraetLbAswriRStB14VoNBsM4nWI94TKEp4eo0GFAW2oaiyGUVVWlIsIowpFmB7imoyqSgnq4oyGVYU2baCSplKWrSwIIKRRU45GkWVqbFEzteoU9ZGkbMzqpyjQa1yaVmhyKLGx0KhrTAWIUMMIthi4MsaJ4uMIhklicouYxEyzSB+qaRXMtCgChsNOvhl5NJS+VUiGVK21/qLRLrEd1KXDXfsLSJdZjS9kwWrV4ik9rUS4m2NkzXXXh866HlrldhSVd5kGD7C129DobTqJw7foPfWrdPkTRy/obLhci3+lHhS8Hukp5ZP6BEhVfhOHxu0hXM42v/NXCbxbqBjcauviB8Smdr910L2fz7+WSRlpiUMM2RUyo3e4Q7uaRYH5XBf+OswzR/M5ivO7YDKhA4ovoPtHF+8dmpvWzvyt6ed+evizso+Zif26rShkghPrU1Rb3Kb/N16QLpNjWxTfHXecW5qI5raiKa28SjXua1UsJUVbHNN0nvtrog6+hvsjnLs6fd2N2XdeG5H8f2+TVghOorLQufpLcBNWAA68lWfM1/qOSvrOye2qDNUEuqJtckXfRtMKEBxG88mJRTwtL7dcEIBjmvdTUgoYLSq3QwJBUe5zm2lgq2sYJtrkn6GxxVRR//RHUdxQb3BhDoE/2GC2/ceMPiA4va9hxR84Ol52wMHH3DcNPcQgg+Mtu9ti6v6kY1mR+aqjsTOli27qtO4h2UbXdUZbcLZoqs6iRtStji9HhmKBZrcKNqytM226lw2SuxI2gZbdSTayhuOtsVW/SjXWe0n2rKtOs010duFttFWncWNQdtgq4Z8+TJEHx9InBCiNqUHEsxVg9UDCZao6fmBBAvcHfxAgjHFIS1dKRaiKOekcUpM5yOxECnqUs5T0ypxShlrQi1OrUCVBsosNrHeEM5n4zqpTa61hdPbeKVvU6LDK9OQ60gpAihRxqOk4oN6DhGqFCWUOBKocceiFscAKhQq9bsaOVj6AzweUKIhEaTxYImBEdQ8NlCuxzKNENRGYtlqWm+7HC2ojzaQxwxKethgiZE28uBBqZ4UPIS+lfXquR3FNfi3sF4FlNfg33i9ChTXq47j0vxbXK86o6X5t7Je9aNc57ZSwVZWsM01SetVV0Qdfb3qKF4rfMOZiBHVP81EiYvGqZkoSbkf0kzEnFubZyISWoEqDZS9pGYiliqVrXRanolYoO5LM9HAy/0qhaiJxqkPnYumm5ib7lLuQ9MoLMa53SZwHxahFajSQNmHJtYbwn1oXPehybW2cB8apz7EX0GqYWpq0Kg/oyZCEQrkcEQ5923QKWRB47gEkfsZxbaCR4Ig+zwUGG8o933QdP+HImNt5TwIGuTCv/73/wO+9kRf"
1128'),ELe=JSON.parse('
vendor: 13,098 bytes, line 1128
1128"eJyFnVtzG0eShf8KA0+7EfKseJXkN9nj0Vj0yNaNEHZiHkCySWEJsmmAIA1PzH/fRqMr8+TJU9CLQv2dYqMrK/NU9Q349+jH9va2uXsYfT86+8dqOb1u9o72Tw5P9o4PTk72R89Gf2vvHt5Nb5uuwafZbbP87od2frnhq/kc+V7h09vZfI1KB8fN7Prr5jOGRj8/TOezi9d31/Ou1fNue/m32R/N5W+zh4uvo+8fFqvm2ejHr9PF9OKhWXxsNn/50x8Pzd1lc/mhvZ3eDcf1ww/tH6Pv//nd/snLZ98d7L98tv/8+fNnrw6P//Vs9LlrvJjP7prf2uXsYdbejb7/rpNB+PR1dnFz1yyXo++PO37WLJZ9s9Hz5wd/6XbUfci79mF2senIj+39erHpw95/Xfz33v6rl8fPNv++6P99tfn31fP+38P+3xd7ry/b82bv43r50Nwu936+u2gX9+1i+tBc/mVv7/V8vvdhs7fl3odm2SweO7oN4my5N917WEwvm9vp4mavvdr7ZXbXPqzvm+/+3nR/9frN3vTu8n/axd6s++Pl6nw5u5xNF7Nm+ZfucH/qPuZydnf98eJr08e/P4qPD92fTBeXRe0a/ji9//swJCcvTp6NvpSto5P9Z6PXy4tNqBed+PLw2eivjW13QX7xbPTx4fLv467tUf/fs+6/+4evtgP2j+ZhMbvoIvrPf4/GX0bfH2wi+647kuX9tAvkf55t8eHh4RY3f1zMp7fGj4+Pt/z3VduF6nzuyvNhR3er2/PNSF3fZe2ync+nC+N9NvTCfbO42CR5UV6Wz5/edtKyi08+tP4Q+jHP2v100dzNm6uaFP/Mjm+63OxxeePKi3KA89XSqAXtoqvNaf6Ir+v7r81dbt51ZdZ6Tw5evBxiP58uv+aj+bNZtJm2d02GD0+i5cPXRSPaXrWrhaCzR9F2OftDwOaxEYPb6Jjeze5EXl208/Yu42VzO4uSjcB8YwSJNr+vpvOMrxdNV8qim7+vmmVvNkV5dVjG3o/9xcHBlr02dHLyYot+yK1+zOiv+Q9/crS/v0V/8z8sqfAmo797mDon69HPuWNv8x+e5oP4xfu9cYcN+kc++nd5X7/mo/8tt3qf9/UBvONkiz7m4/qU//BzRmfCOca52ZeMJvkj/zdn33k3n900D8E3rEjPOy0WKv8dmcrL/WIqF7PZxWxxsbrNw7ba+Paym3xEjfQGFw7GjSpH9dzQURnai9zqMrcSn3yVP/E67+trDtIs7+v/8h/e5D/0Gjbrv81/KFynza3uM/o9d9vNwcpqmY/+Ie9rlQ/iMWfcU24lrHSdj+tPP4hXR55fMREODp6XrFxU2lM2HjyHbHyYzS+rk/1l+yTiHKZnnwoe+qWaJ8d+Ka+rzdoQjdb7rCaPq3m7mAm+bCp7uVgtunn8Yp1TqS+b5axfuwr/365bdFldr2adcts+6KXDRu53/A2ZQl8S52ommFhBdWs5uR64nF5fqzlty3ExRiuOzdg1i8Zr//io6N0S/noxvQdTK3963p0/NKKXHt7z6XJHhHerlQWYDUDU3e67NfbsfjlbCqnr68PXdhUWi2neD8ntI7eYPop6mF6sHtTapffyq3nzR9YqlXU7vVio9c75olEffNk+TC9Cxbk060YSA2DKAuvQD7a57EKqFqmru+vpYnU7n67Ex7TX3TrzRuxuiv2AcbkNOevCa1/3HJpnLy6vuoVeWBn6EiVOsr4Cidw/4Vf4hEP/hNvO6VZz/Ajz5qkzc43LTdEvl7OszCvL85YOtOy9hbQvZd7VZ3dW3OU9jJst5tKQ+tQcM9Cn/5g3PjXJQfXdxdHz1VE6AltIX84eZ5cihJN4ZL5iFsXhh135o8+7/mhNVWiTdX/yRWUCXc279M8LpeI4h8GOnOrB/4ZGyEaC/sBPA9KH+ElD5xFwFhLPMqmjL45eFHG48CE+ilzH14UxD7yXOi7v1AF4edRyNJqqL/Vld+xcqra3aKwQzmyVniGhm8DJE335Gj/9qCyo5u2fzd21yNwPVFF2Gqc66cmxs0h2Ze7r2pAu4oHAUFNf/fwnR85O7T59bReiV7/Sp3sYKlXwMfKTF0P7y4oRfaYP8IjFyS1c4Viu+lXOQhxvTEGPYo2TrRYTvF3NH2b387U4LuqgJ3kcjpJI3XrrYTadX86uxCnWum4N7+LneMKKZPHa2JlmO2adunRRGei7mg3WMuZdpTZ/ph3h9bduxYAX4ewUaNHeNHd4ImTmuGiuZ8u49PUSpbWXT8e5LuxsZNVVdTgf8WDHnPLCrBhaS5Hxuqyk1P+SaR+9KmvX/lJXvBBmcf7pQaxQfqwa4FxOqvvDaD5UTKapzo414XVt+bAjKysB/rNWGvzZ5gq1EalNPbx4t3mk9sm5ju2zdy5LaMbcL+uCZv4gLvg8BJN2T3xqdzhiXuKU3d2uRE/iEXmo5DrTa4FC71ef4grnxTH6eJfAiy6RxaF9TCcxNjFX5t9Tlcd+ihEHzk8l7MaOMsX6QuNnOn80XqvxX+iwSxy6qH2dzmFqKEW+OTWhS902FsrlzZfjsslT7RsDSOsgCwLPz3beHs0UOzQMqxrVqZzrP8oFomWwPsWxayGdTaibHm1lyv+xchAryvwyEF2CzC6U0f614o2Lncvdd3F8/HAr4/Zhd17v/KzXlX2+rpp0PB2wEYj7cSMWE6cvRSrTfc0pbuQC2hZkYSXge9tZCnQIdsVm5yfN2+vNeN+14mJVWzfTVZZKBnW7qlTytTwSu8ICM7nHvJK+d2pXfv3lLi+a3fNrNf7TanM78l/PRqfN4u636WyxuYv8z9Hrze3q0bPvjo//9WzY2rpHQNvjjGgwdYRv4tbWVQLCjqHwa7d15FvlEABBcgRuQxXotv4DCs4TlCFkgW2vDgW0LRxE78PWp27rlW+VmCEKvXfh8yYWz23LBsBR6D1w6D3Q0ntA1HtQrPfAhroOrLcTJGfd1r53f7zZPDR1stl87pulU8jg6AHfd5sHtlt4TuDZdy+OCl6FQ1nlkK0qIVvJkK1yyFbVkK1EyFYiZKsUssfY06dNFtjWOnRwXboECA59oEMjLGFDVMfGqZidc0UX5Y1AVNvGZYEXFarcEJW6cVXvJuaiN4kq37guf5PZA0wgIzBOblD4+4zAFwyROThXDlFUsAlDlPjGVfabmEvAJKoD47oYTOaKMIHLwoRYGwWjpxSGxlIYuosxthgThM8UDcymIOU4RVvlQ2bvMb5rCIQLmVQZgoofmVwbguRMJugheBRRAqMqaJ2Dw5ZlPPvWYB/oW4bIt4yTbzln3yrKG4HIt4xL3yoq+JYh8i3jyrdMzL5lEvmWce1bJrNvmUC+ZZx8q/D3GYFvGSLfcq58q6jgW4aoaIyrojExF41JVDTGddGYzEVjAheNCbFoCkbfKgx9qzD0LWPsWyYI3yoa+FZByreKtsqHzL5lfNcQCN8yqTIEFd8yuTYEybdM0EPwKKIEvlXQOgeHfct49i2MDZpX5ORgUSQbI5G9LMhvapxcLYrS2kIT8LfIyeSiqJwutsh2F3XyvChq44tt2P2iShYYRfLBIL6vcHDEyMkWSVTeGJqAQUZOJRpFVaexRS7WqFPFRlGXbWzDtRtVLuCoxioOGrppENBSg4C+GgU216gKhw0NwGYDV14bGqwqXWPXjeI3h1T4b9R3DWnFiWObnUOaPDmqO4b0sRZhsOjA15XAsllHMTu2E/RrpOTWKJFXB4mdGsQ3mpJLoyQ9GhqAQyMlf0ZJuTPq2ZtRJWdGSfsytmBXRo08GSVyZJDeSwpujJS8OEjKiaEB+DBSKlmUVMGinssVVSpWlHSpYgsuVNS4TFGLRQoKui5g9FzA6LiI2W9RE24LMngtUOW0IK9kV9hlUfrGkAmHRbU+ZBV3xRY7hiw5K2rVIXvUkQRPBbqWAWQ/RSm76dB9tFJD5KPGyUSds4MW5Y1A5J3GpXEWFVzTEFmmceWXJmazNImc0ri2SZPZI00ggzRO7lj4+4zAFw2RKTpXjlhUsENDVFjGVVWZmEvKJKon47qYTOZKMoHLyIRYQwWj5xWGhlcYup0xtjoThM8VDUyuIOVwRVvlQ2ZvM75rCISrmVQZgoqfmVwbguRkJugheBRRAgMraJ2Dw9ZlPPtWOVg0LmfkXC6QdYHA3mXSG8XIvVyQ9mUy+JczMjAXlIO5mi3MNfIwF7SJuc4u5grZmAvkYya8FwyczBlZGQjKy0wGM3NGpeSCqiVXczG5RtXkgi4n17meXOGCciVWlHF0NYNoawbR1xyysbkinM1EsDZjyttMXIlDZ3dzYeeQCH9zrTYkFYdzvTokyeNcqQzJo4oY2JyxtQgUG50L2enKkaHTOSOnc4GcDgR2OpPeKEZO54J0OpPB6ZyR07mgnM7V7HSukdO5oJ3OdXY6V8jpXCCnM+G9YOB0zsjpQFBOZzI4nTMqKxdUWbmay8o1KisXdFm5zmXlCpeVK7GsjKPTGUSnM4hO55CdzhXhdCaC0xlTTmfiShw6O50LO4dEOJ1rtSGpOJ3r1SFJTudKZUgeVcTA6YxtnO6QAmVOlwTo9qAthi9bcTsphFyuYPI4w+xwg/AmE3K3gqW3DSI4WyHkawUrVyta9rSikKMVrP2sqOxmhZOXFUxONuD3iYCLFUIeZlg52CCCfxVCpVKwKpSi5TIpChVJwbpEisoFUjiXR+GxOAaKbjUg9KoBoVMVxD5VuHCpQQKPGohyqEFapUNldyp4R8iFMxVFh7ziSkWthDw5UuEy5I85MuBFA1mngPCKq+C83hpqA23IEPmQcTIi5+xERXkjEHmRcWlGRQU3MkR2ZFz5kYnZkEwiRzKuLclk9iQTyJSMkysV/j4j8CVDZEzOlTMVFazJEBWKcVUpJuZSMYlqxbguFpO5WkzgcjEh1kvB6FGFoUkVhi5ljG3KBOFTRQOjKkg5VdFW+ZDZq4zvGgLhViZVhqDiVybXhiA5lgl6CB5FlMC0Clrn4LBtGU++9UNHX2/WUs9ty5ZejorHAAoxBY7rM6clkoAsSsAsQMCG2AApBe/ocx8p2/L0MxQOF3hISKPlcAHRmINiHQFmHQE2dGRL/lrifmxbFndHFndHMe7OMe5OLe6OPO7OPO7OStydWNwNbUziyPozDluTuGWziyOcO4wO367XecEWDf6MwTJEETNOYTOuYmdiDqBJFEXjHEoTOJ4mxKAapsgWDuEtaJzRRCCKtvEc8iKluPfveMa4F8RxL5zjXriMexFF3IvEcS88xb0IKe5FoLgXzHEfOMZ9QOOMJgJx3AsXcR8kivvfhpC/8q2yT0Al0IBCjIHDJwMtkQVkQQVm8QQ2hBJIiaKjqc3l/VbpAaDSA0ChB8ChB0BLDwBZD4BZD4ANPQBSeuBo+52gXZ8OCol6k/vUlKUkIt2nRvYJXk4OOHe1EV1tRFfbuJWPua0cYCsPsM1H0tK8CIo4xras4QHl2FtJ7G/nyrdhjfI2r1He5jXK28oa5a1co7zNa5S3Yo3yVqxR3qY1ytu8Rnk71MT+sW3ZGsVR6QGguGxxjssWp7ZsceSLE2e+OHFWFidOSg8c0VbugVUAIt2DRvYgVADg3LFGdKwRHWvjVj7mtnKArTzANh8JVwAo4hitAgDlSNOksEGr0GCVO7KqdGQlO7LKHeHTGlBER1Yi2KuQRaej7XWGbQn0W7FseyRqtOepRnsaa7RHdNSgUPX2rIQfUCzV02D1p9nqT7PVn1as/lRa/am2+tNs9afC6k+F1Z8Gqz/NVn9asfpTafWn2epPq1Z/Kqz+NFv9abb605DVpzmrTytZfSqz+jRn9Wk1q09FVp+KrD6VWb054z7yrXjhrEfpslj4KpNQFyRQiZCqqoWa5MKhBlRDpOpyokZcWSRTkZFK9RZVSA8SKKNJpYJkVaQ+NclVwA1yxVILKhlSuUZI5pKOclsVdoZF1jw1+VbH2QlI1aZAjXb3na2CVHKNqIKBkEBeQqqyFWqSHYYakNmQqn2HGrEFkcxuRHI0piiCR5FAdkVqcq5fRsOF8wPbsmvmgOLlchPOwtY4bE3ilp3nOsKTV6Pxy4fLGsmUgoeTh1+GWBxbZywAgPAi8JaGt/YPIqL+197aj+pZRuOMJgJRYNTr7CRVQiTfbC9xwhe6KQYcMfVC9yDFbILgkUAhZFUFMrY5qwnjmjCpChRgUnOYY4NKsEUjDnmuWBlFDn+9YocGg59i+A1R4J2rkBf1LKNxRhOBKLTGc1CLVAlnkDmQRVznGHDwjKewvRttLzNsP7DfssnVkV24chQnWec4szq16dSRT4/OfD3grFy4cmJz4xaVwnwtEPXFOHXIuOqViblrJlH/jHMnTeCemhC7a5j6jDcIGFGf0w0C5qrP6gYBS9TnfIOABe4z3yBgzH0ODvC6KnD/o8pRiKqMRWwiIhIbcFyimqIT5RSjKFOkokjxKvc/XwtEMTJO0TGu4mJijohJFAvjHAUTuP8mxJ4bjn3+dejukW/FmxO/YicBxcc9nKdbGL9irwD5AxzOrC/Ahm4AsSc5DH2KW2XyQhTmLRc2U9axbY3D1pfQchI0m7EApUcEfkWjPSJEYU5Gy1wFXBktSxT6bLQs8CCw0TKm4cAVMSMamMqKmNSzHM9xRl/yH05yKx42tUgepPCmOAxg5DSKUaShjKIaz9giD2rUaWSjyMMbVR7jqMaBjhqNdvrCC8lp3Hd94YVqclYZlXGFf6nsZ1Jpz1lR/dKHQYeXXiExkFJaoERJgZJKCdRzQqBK6YASJwNqnAqoxURAhdKA3rMXlFKg/p59bnAmIz+W9Ivcw0S25WGvvHs+qOV1QRhxQzTcxmmsjauBNjGPskk0xMZ5fE3gwTUhjqxhGlZ8R5gRDWjlHWFSz3I8xxl9yX84ya14+NT7tIMUL7LhELJCI8kyDSjLaly5TR5ebkGjzDIPNus85qzHoWeVMoDkT3WF8iHJKi2o0Vl1xMZV5Ut1b5Pq33DmsJwTyF6hg9RxRknjAqWLCypRXM0p4holhwucFq5wQrgSU8E5JUF4wzYxGvjaG7Ysn4nojgX7Iv52ItrxoMq3UAetXN2B0TREg2mcxtK4GkoT80iaRANpnMfRBB5GE+IoGqZBxKt9jGgIK1f7SD3L8Rxn9CX/4SS34sFTFwAHCU/SjwjR2KWTdOZq7NRJOks0dvkknQUeOz5JZ0xjh28mMKKxq7yZQOpZjuc4oy/5Dye5FY+deop/K/02DNv2mfLfcMQAlcECFMYJeHpO/TccHUA2MMBsTIANwwGkjISj/gkt648/oeXIntByJB4s73l6sLyn8cHyHtHj4z2jx8d7Fh4f74k9N2QoPrW4IX5BqN+KF7t6ZHfOAeVLXD1PV7e2FG+MO47Xu3pEl7p6Rle5NqyNW/mY28oBtvIA23wk6a61K+IY/f60o3ixbYP4qcX3I3wvod+KGdUjkT49T+nT05g+PZLvJfQKJVbPKLF6FhLr/Sg9ffZhhM+r9FvxIZUeiSdTep4eR+lpfAalR/LBk16hp016Fh8x6VF8ruRDcNUP2VA/1Lz0wzBwvp/Pub+fK/39LPv7OfeXBw4U0d/P9NTpBxg4J735H5etje8f2tYkbsVH+D+Qqw+0XESD0TdEITGu4mJiDo5JFCHjOkwmc6xMoAQxTlmSL2o6onzZeVHT1M9535w+xnfFSiSSSZVYVVLK5FqsUnKZEDMsXLeNGTLOSTMRiLJOXaQdpHLnC1LPEIXTuAqniTmcJlE4jetwmszhNIFSzzilXuGQeoYo9Zyr1Cvq57xvTj3ju2IlUs+kSqwqqWdyLVYp9UyIqYdvRB3HDBnnpJkIRKmn3ogqUuVJTRY4tN98UpObiDDvelKT1UrIdz6pyTKn6q4nNUnFtNXP9lRUmcKhzefaZ6Z0juq3Y65SOzbYGfNamsdGu2OeUz7KlPjpoadjlaXjWvpOqgIXRPWhp22DbrjhxbR+y57tcRRfTOuReDGt5+nFtJ7GF9N6RC+m9YxeTOtZeDGtJ/HFtE9DNe+/tC1bkDuKC3LnuCB3agtyR7wgd8UX5M7sdRBHdlpnyE/p+q34TFWP7EsgHMWX3p3jybtTe9Xdkb/G7szj7qzE3Unpgf/hRTuHs/Qt2Z6qOoldanIv7VQVUcgu57KX4VQVGufON6Lzjej81/X91yYe0iwM3Syn2MxPwoy1YRdt7ntb6Sie8gK1MnJEeQmKF5izkpeArJoM2YmiF9giDOkiXgXqURlERGFKcGHZ3M5y5qzCMaxyrFaVWK1krFY5VvzsNigiViuRF6tUFE+hD/6dV/2WebGj9D1XZVpFF04PujEnP9YPurGYnTk96MacPTo/6MZCdOv0oBtx8O10GsBcObg6DWCJvLx2GsAyu3o6DWBO/l44mLwhym3jZPfGleebmC3RJDJA4+yCJnDKmxDz3jDNCIVTcTsOc0PBIhI8SxinqcK5sAYT6xFSM4dpleilOcSEWvR4Nil8lrOF5xXjPLkUoc275WnG+K4giQnHJHJS49pOTWZPNYEmIeM0ExXO01Hhi5xKPDEZp9nJuZqiiirmqSKt8mHyjGV8V9jF3GVSJeyVWczkWtjTfGaCLu6n3GuY3gzRHGdcTHTp6eYyoPrpZq3y1Lfj6WbdREyD+ulmraYpsfJ0s5ZpetRPN0sVp0p9wUKrctqsXrDQDXgK3XnBQjdK06m+YKFVnlqDihNsFLggo8qTbVTllBubiGklNuAJJKppGolyqtYoU81GkafloLKjkRin6Pgya+0D03QdVZ60SVX2GJt8K9JyGo8tdo5FntKjvHss0vQe1Fktb9NUH9U04Qe5rX1cmvyj+u1gq4VAbMDzUlQrs1NslOaoKPMCIaq8TAhqWiwEdVFL7bRwiCovH0iVi4jQRi0lQoNVrUNpWRHVbw+oWmLEBjsHtLbciI12D2heekR5l5k91SKGi5Eo8JIkqmlh8nlYjZw8t62yB0BlugAUYg8cPgFoiTIgixowCxWwIT5ASg04Ks59bMRKYUD4cssJIepwermFueq6ermFJQpCfrmFBQ4Hv9zCmAJTOEWnYA5ReofkRHEKln6HRIoqbNV3SKROAay8QyJVDqV8h0RqFNQgUmSDxuGl9zBOMqXQqvcwhKTCWnkPQ6gUUvkehtA4nOI9DKFQKEGiQILCYcQ3G04IUQDTmw3MVejUmw0sUdDymw0scLj4zQbGFKjCKUoFc4jECwQnWqGA1V4gqMgqfDteIKi0oGBWXyCo6BzaygsEFZUCTTLFm1QOe3js/oQZhTo/dp8EFV752H3SKKTisfukcBjTY/eJU+hMoKAZ53DZz19AuJxRuFygcLmgwuVqDpdrFC4XOFyucLhcieFyTuEygcLlv8NC4Rq+pR+CVQiFqmAKVMEqTEXLQSoKhahgDlDhHJ7CY3AKpdAMmAJTfvohhuVsCMn+9ob+GcYDmT3kDCxeHAIBLwkBtgtBwPzKDkA/ewVYnkgFZFd2nG1+DOHQema/gwAonm+54L9+0G/ZywWOxG8e9Dx9O1JP4y8d9Ej+yEGv0O8b9Cz+tEGP4q8abJBfv+q34ulej+ySpyNx2tfzdK7X03iC1yM6YesZnaX1LJya9SSefp+N/IoSkm3i7h+8Kqgf5ec2Vv41o8DKaXZg8UlqF8Kj1IDxq0aB+zPWzuBRaofwLLVBu8SzPRPdoM11ncMXtmXnnI7iY0vO8QTUqT2g5MgfOHLmTxkZa+OxtiKybS2KrY5iK6KVvhAVJBVI/0pUYP5ugzF/wN5rAi+XeFat4lauFHU1pOeyLFa5LPTFjl4RBcOXNXoWCmZcvHn7yP04eDMw82ZgcchAwCEDbEMGzMcFoCc4wOLNgGysnPU3IXwrvvgwTg4LPL34MEaHBSRffBgHhwXmOWYovj4zHhz25Ni2bLHgyBYKjuIiwTkuEJza4sCRLwyc+aLAWVkQOLHFgKFSC8dA8JWg8WCw/hdN7qXZKyLdy0b2Mngr4Nz5RnS+EZ03X9262XiE18vHo3SRfDzKV8bHgwW+sL2aAwKKb6Q5xzfSnNobaY4oL0Hxd9WclbwEZC+mGfJr1TaIaHw+2P6jOGM0PkDip3DGZHxA4w/gjIXxgUI/ezMOxgcs/NjNhmwu0J74Vlyj9ygttifFL/d90zIAmPklsOg8IKD1ADbvAeYWA9DzDWDxS0BmPM76p8yPbSs+mztJfgk8Pag7Qb8ExI8uu0I/pzFBvwQUfyxjMvjlS98qRw2oxB9Q6Ahw6AjQ0hFAdrjALPTAhsgDKT1wFNcOk+SXk8Ev9/f3bdPzzJktSJHFPHMBrQQorkehtVmMIzcSZ5B8BumG42SEq9HJKK1GJ6O8cJwMrgm7bUUE2lpvw8IRsFeVM57SQYKCc2iTOjAvLmNkn5ORWjdORrhunIzSunGS7BN4WjdORmndOBH2CQqtGyejvG6cjHjdOLH7GeAn6WZNEtgW9e2apAqDTDdskpCsMt+ySQqZZrppwwLYZ35BkbgyUvmCIklkqdUXFElmc80vKBInmy0cvNYQGa5xcl3jynpNzP5rEpmwcXZiE9iOTYiebJiM2W/GhQrle3SEseqNsVWZwI7tgjIyU7N3uyQM3ERyceNs5SYkPy8Km3rh4OyGyN6Ns8cXoRWfl9zehJ2RUr5vGpu/CZUZwPQ0DZjCc4EJPCGkW7oURzE1FGklEE0SxtVMYWKeLkyiOcO4njhM5tnDBJ5CTIjzCN1xLQarbrkqjSeU6k1X1UBMK+q2q9LS5CJvvCqRphh161VoMNEgpbkGJTXdoJ5nHFRp0kFJzzvYgqce1Gj2QYkmIJBgDkJK0xBKNBOhpCYj1PN8hCpNSSjxrIQaT0yoxbkJFZqewr34YBTiLn1W0IwQs8+ixrNV0JQNY4M8ZwVVTFuo08yFEk9eqKX5C0SewkCCWQwpTWQo8VwGWqs/Ps1oqH0rmmpeQ5mnNtQqsxs2SRMcijzHocbTnHosJIdbTHagrjSlKQ8lNeuhnic+VGnuQ0lPf9iCZ0DUeBJELcyDXcX2P7u8/a2Z4myIBkdDFB5lAg6fArQ8iQLI7vsDs5vbwOC37AeCPxW9Refd1vmoXNU+x+E/MrQZ2APfKgMKSHzD0jkNIND4DUvnYsBAoW9YOg8DBCx8zfn50Mntb90M5pp+K+Ioq0XaXiTtwtA/KLrdzeXF8COsjprwOQ0mwIDKiyuIOAEGTglQqBsuYsyLAYW8GFjIiy27gunGSfcx82a5nNlMfjXY64FttXHL0sCR+P2oKzJBoPGXoq6E5YFCvwl1hQYHKP760xXms/eV8mB7afmKUmCbAdd5D9elpplXnhjfquX3RmDL5hVHOFv0dFaGrj/GWUiwLcrZtOWcTVsa0maLYtpsWUybnt2UtYhvxft0N2HlASjfuruhdQbScJ/dcLyjdxOWE8DoC8tuyqx+bFsx6Dd5DneeBuMmzNiO5G933cT52Vn8Sc+bMBsbWsetfNQ5VW7yWzVDFCpv1WiVRnDXWzW6SR7XHW/V6BY02rW3arTMOZDfcJHx4szY9YaLbvKtEeHU2f2Gi27ECVV5w0WrlGb5vQct7AxMzsNiJdv1wx1a1oBwTiwo7BQEXLJsURtsqS3z8XYrG6QhaFXxzMihvfRSpNA2O6whaEUPvD5WFfgbYdTOoF350tzHjKAVBpaQtyqTWFo6bWfHKEet/MW8uSqPSm/3yUK0I1bjd6iyKuyImyQ74gbRbFgls2GZzIbl8GWZLMYnSnpVB2tHpHaE6Vsx2h2gHdHZFZpdcakH5dsRgf9/d3Jo6pByI//60YiHFbvSQsqKXS70ny3i2U/UytwptfB0qWjhD+5FHC9mRK18oNS6mXg+n9bU+LCraHE/vegv5Bwl6dE60AVpdLEZsJe2FZ+s6ZEtKQDZwQEM18AWZQ1jepN33eRd0xLFOeY5UFyMOI6vpi/issMZPTO0YZ7a/VYszB7F0LtATy1tkM/0/VaciXtkAQAU9+9CnP8XZTVkh97mALeVaLYymm0OW1rWuCIC2sYX9hdh1WLoPoTNT7SeG/s9tPcprlQvJq0h6r1xyjHnnMP6jqNhsW9O6Xy/kbkYDnW3MUk5zdPNRuY8PuJmYxSuc5w5/43LIkg3LYdKKBwS3RDVhHEqDOeqOkylEgl3OmNnuVgq9zlJrA8R1071JifJtVHiUsp3OCO/z8OQKqsIv+c/hxqz72XyVoYoaMYp351zjfGXPg01hl/6RC25xtKXPiUuBlB96VOSco2lL31izqOXv/SJhOscZ64x47LG0rdHDTVWONSMIaox41RjzlWNmUo1hl85RZ3lGtNfOcVifYi4xmpfOcVybZS4xtJXThG/z8OQaqwIv+c/xxqLX68CbaPAAYwqVwCpqfbkd7qUCsxXn9RfpWqsXH3Sqhr2+tUn3UBUaeXqk1RTLtSuPin5ujaCqYajqitZf11MqeegYpVGgWs7qlzhpMo6j2242vPVOBWoVPm7rsbJJt9KhOQFu6/GyUa7cyG5Q+VqnFLva8Oc/SLIv9d26N4xnNj1Fxm2l2qMlKATtq+0iji+HBA1fEEgKvaSQMT+OkDk/kpA5OW1gEjtG6oC/jQqr3MasRNnwuIV0CJuvk37KOx3nNpM0mdPdEwnKUDdAMFPCvVb8XpPj6JN9Ehc3+l5uq7T03g9p0d0HadndP2mZ+G6TU/i9ZpHmBS8T1Fvcp/ojsNjNnrnsk/ihsJj8HFHoqt8v+Cx2JJv5WPmFx+NywNs85Hktx5NEcfYxvfRHoN9GDJreNGjpzQcT6FrT7lrT5WuPcmuPeWuPVW79iS69pS79pS79pS7tk5dW4dMW+dMW+dMW1cybS0zba0zbZ0zbS0ybS0ybT3Ce+prHA5A4p76moYDaLynvhbDAQrdU1/jcACK99TXYjj4wscwJuHCR2zJo5MvfDAX4yQvfLCURyxf+CDOYycufEQBRjFdHmCuxlNdHmCJRrZ2eYBlHuN0eYA5jXa6FjAMuXh2cRh1fnYxteexl08uCklkQOW5RaXmPFCPLQqJs0E/tpg0yAn1MKGQVGZUHiUUKuXHjgcJRQvOEvUYoZAoV9RDhF26/Os//w8s8zdF"
1128'),MLe=JSON.parse('
vendor: 12,134 bytes, line 1128
1128"eJyFnV9TG0myxb8K0U/3RjC7NgZj5o0ZZnYGz5pZGyH3bsyDEA3oImhWfxCajf3ut1Xqyjx5Mkt+cbh/p9RdlZV1qrrVJf5T/dg+PjZPi+r76urvy/nortk7PPpwfLh39P7DyUm1X/3cPi0+jR6brsDl5LGZf/dDO735dTGaTsYbdTmdorq3UfdUHj1Opmss0MFhM7m731xwU7Y73pY+fbqbdqW+e3vUkfnPk9fm5vfJYnxffb+YLZv96sf70Ww0XjSzL83msz+9Lpqnm+bmc/s4euqr+cMP7Wv1/b++O3jzZv+7g7cf9k9O3u+fHLz9Y78adGVn08lT83s7nywm7dPmSl0xFS7vJ+OHp2Y+r74/6vhVM5unYtWbNwd/efPmTXeNT+1iMt605Mf2eT3bNGLvf8b/u/f25MPR/ubf4/Tvyebfkzfp33fp3+O905v2utn7sp4vmsf53q9P43b23M5Gi+bmL3t7p9Pp3ufN2eZ7n5t5M3vp6DaYk/neaG8xG900j6PZw157u/fb5KldrJ+b735puk+d/m1v9HTz13a2N+k+PF9ezyc3k9Fs0sz/0lX3p+4yN5Onuy/j+yZ1QKrFl0X3kdHsJqtdwR9Hz7/0ffL+/cl+9TUfHb4/2K9O5+NNpGed+OHdfnXWyHEX4+P96svi5pdhV/Yg/feq++/bg7fb/vp7s5hNxl1E//Wfavi1+v5gE9lPXU3mz6MukP/d3+J3XcwSbl7H09Gj8KOjoy3/97LtQnU9VeVNf6Kn5eP1pqfunrx2006no5nwD+/ebflzMxtvMj4Lx8cftsLosZPmXXi0ZvkzqQapy732PJo1T9PmtiTZj0n1RvPNGecPqhz3yvN0ORcqMRt3A3XkL3G/fr5vnnzxrimTVltykBs5n47m9742fzaz1tP2qfFwsQpKLu5nTVD2tl3OAjp5CcrOJ68BbF6aoG+bOKZPE6iwhGjcTtsnj+fN48RK0gPTjQ842vx7OZp6fDdrupEcNPPfy2aevEZT8KDve637+/fHW3bq0Q8e/ahpe9Cf7MyX+smjn/0H/+aHwC9+UP7qG3buT/9R0du3W/Sbtjuf6+++Ep88uvDn+t2X+oevxGewjvdb9MWf69Kfa+DPdeVrP/SlvvrT1x790yffdTeZPTQLYxsyRq87zY5T/hx5yrF4yngyGU9m4+Wj77XlxrXn3dQTDJHkb6Yy6lMeXQs6PDzsx1jgv75UcOVb/8E73433PkgTj/7Pn+vBl9IhLGn/6K8YmE5ge8/BqPdDaObR3Ndr4Sux9CF88Um48pV49R9c+0r8qejwg+aXTYSDg9zrMJna8ruycTGZ3hSn+pt2FcTZzM46EyzSQk2T421u/+1mYYg+K59ZR3PH7bSdTQI+bwpnGS9n3TQ+XvsuS8NmPklL18D+t6uWeFjdLSed8tgu4pXDRk4n/oZMoc+JczsJWLB+6lZy4XLgZnR3F01pW45LMVpwbPqumTU3/qPdWmh0Nxs9g6nlj153dxFN0EoN7/VoviPCu9XC+ks6wOrdXUGOzXQ6eZ5P5oHUtXVx3y7NWtFN+ya5tedmo5fABkfj5SJauiQvv502r16jkZXx42g8i5Y717MmuvBNuxiNzYhTadL1JAZAlBmOQ61sc9OFNFqjLp/uRrPl43S0DC7T3nXLzIfgdCNsB/TLo8nZk2xwp7rqOXjf53w7u7ntlnlmXagLFDvH6vrDcrnAhV7gncwJs5vHzueWU7yCnGmkTDzjZjPk5/Ng+poW1uZtoZ5tkPTd6OxuiLush16TlZzrUJ2Ybf7p5G+zRiemsEv1dLbvdG3kaiCTxc3kZXITdFJta6bL5WBoaLXth3SdF3xIJ0gagzJVpzsvGiTQVH9KvZ4ZKIp9GKTmNBr0M9RD0hP0Ab0HcBfRO4bOIeAWxN5iUkOPD4+z2D/0CC5FnqOrQpsH2so4Lp+iCujwKOWotVRd50dn0xup0tmsrUI4vVFqhphmAidH1MWrvfrhSR+waftn83QXXP6zvYTew0WN1OTYOUgCUYcXTyOylrUVga6mturdj4+c9tF9OwtadUFX1zAURsEXcok32WwLYRvQBTRidmozjzfmy7TGmQX1pRSUKJY42Wo2wcfldDF5nq6DelEDNcltd+RE6lZbi8loejO5vfV9tS5bwyd7HU3YXcny08402zHrlKVxoaOfSjZIHQqeEo/NX+lE+PCtWzDgEzi5AZq1D80T3gaJOc6au8ncLnx1iNLKS6djPy7kXmTZjWpzN6LBphWkDMyCobU8lmRcFlLqn2Tahyd55Zqec9mnYNLKnxb3vq4/Fg1wGvnWu7xsWxRMpinOjqVZ8LS0fNiRlYUA/1kaGqVKXZR6pDT1lDx3XrpyeRxf7FyW8IyZ1wXNdBE87lkYk1ZPXLU7HDFY6b3PJhe0xNZIQxWuM3UsUOj1PtWucI6P0Me7BJ51iQxVk2nE3cJ8OMj5OgonpI/hIkPuMGzH6T2MfKkTmWJ5ofFrITV/LY3x32j+y3HoonY/msKztzzIN7cm9Jxb+iJyefFlu2zSVPtGB9I6SILA87Pc31gzxQb13Rr16iic67+E613J4PgWRzKss4noG4+2MOX/WKjEkjL/UOz8ZjKOjPasMKHNdrbmk+0frW5huft5d17vXFqfFs55WjTp+HbgovDs8M9g4tSlSGG6LznFQ9iUN9mrzEpAz7ZzKNgq6PPdnVeatneb/n5qg0dVrTdTSR8v5QzqTlUYyXfhTYM8X4GZXGNeSN+ncB6H7w/dFKGeXxrjPy0330X+sV99bGZPv48ms803yP+qTjdfVVf7370/+mO/P9q6h0HbelrUmzrCv22O3sjR1lUMwoahcNEdHelRrgIgSA7DpasM3Y5/g4zzGKUPmWHbp0MGbQcOon9sjqT1l/YoxwyRab0KA3PWgW/9oND6Qdj6gW/9oNj6QdD6vPAzLNkJkqvu6ETaMOyOuqk4H9bd4bEe5SYBgqorhVcCOnyY8bI7eieFlvlsgEyAgMNVgOYAAaIAgSIBAiYBAtYHSMmLacPKHK3tkcRHEcZnS/tCOF4F0aAVTiNXOQ/frMAYFkQDWXg4mrMKQ1oQZbbwKL1F9DkuEiW68DjbReaUF4FGvXAa+pnD+M/oMkDkBMojO8jqwF+OjUH4rvAFFiFSIXwFsxC5FD5nGyJY78gYDCQjdJHMwEoEkZ8I96aSpchZsgb2Iog8RnhkNCJ6txGJLEd47Dsis/mIwA4kgrWhjF98q1cerQNE1iTc+1NvE+hPgsifhJM/KWd/ygr4kyDyJ+GhP2UV/EkQDTDh0QAT0Q8wkWiACY8HmMg8wEQgfxJO/pQ5+FNGlwEif1Ie+VNWB/5y7E/Cd4Uv8CeRCuEr+JPIpfA5fxLB+lPG4E8ZoT9lBv4kiPxJuPenLEX+lDXwJ0HkT8IjfxLR+5NI5E/CY38Smf1JBPYnEaw/ZfziW73yaB0g8ifh3p8wNGhSlpNTWZHsikT2LCODcVlO7mXF0MJMEfAxy2k0WjEakraEH5dWp8FpxXiE2jI8TK1KVmdF8jsjgukZflniZH8kRh5oigwK9WA3tOI34x/4otV3xb/gkLbMzvg7r7SqNUyjgWsajtZpBPBPy8lEreid1OiRnZoC4KmWk7FaMXJXW8JbrNXJZ60Ym60tw45rVbZdq1rvNdpLIU6rAl+XOPmxFb0pK0FLRkqGjBLZsZHYjEEEK0ZKRoxSaMNQAEwYKVkASpEBoO6HP6o0+FGKhz6W4IGPGtkuSmS6IIHlAr2MKdmtkSKzhQKD8OpstCh9I8qByaJajnLBYLHEjig7c0XNWisoYKxA0VYBg6kiJUtFyRsqqJGdggxmipSsFKXISFH3NooqmShKsYViCTZQ1Ng+UbPmCcpLGJNVSNcxJdNEyVtm33r0S0FklsLJKZWzTWYFPFIQGaTw0B2zCtYoiEas8Gi4iujHqkg0UIXHo1RkHqIikAsKJwvMHPwvo8sAkfMpj2wvqwN/OTY84bvCF1idSIXwFUxO5FL4nL2JYL0tYzC2jNDVMgNLE0R+JtybWZYiJ8sa2Jgg8jDhkYGJ6N1LJLIu4bFvicymJQI7lgjWrjJ+8a1eebQOEFmUcO9Pua5oUMrIoVQgiwKBPUokMCll5FIqhDYlMviUMhppKkRDTVU/1lSjwaZCPNpU5+GmCtmVCuRXIoBhCbuMGFkWCJFniTwIrsmupcLOWAa+pVoplgXnUr0YS+ddqljzEg7uJQztSyD4lzIyMBW8g4kWWZiI4GHKyMRUiFxMVW9jqpGPqRAbmersZKqwlalivUz4S9D+VcDWESM/U8EbWq4YGpoyMjQVyNBAYEMTCQxNGRmaCqGhiQyGpowGoQrRIFTVD0LVaBCqEA9C1XkQqkKGpgIZmghgaMIuI0aGBkJkaCIPgmuyoamwM5aBoalWimXB0FQvxtIZmirW0ISDoQlDQxMIhqaMDE0Fb2iiRYYmIhiaMjI0FSJDU9UbmmpkaCrEhqY6G5oqbGiqWEMT/hK0fxWwjaG9YyYxYQFbvdVm/W+UqANlQmaWMVmZYDayXgAby4RMLOPQwnoRDCwTGnIZRwMua364ZYUGW8bxUMsqD7TMybIyJsPqMdhVTy49IasSHBlVLw7cldikMt4RscCgshJHrGBOWS1EzBlT5taWegqm1BO0pB6BIWVCdpSxN6Neiayol8CIMiEbyjgyoax5C8oKGVDGsf1klc0nc7aezK3x9PTFtXXlyNoTWkFl7NdP/SBAvxFEhiOcHEc5W05WwHMEkekID10nq2A7gmgUCY+GkYh+HIlEA0l4PJJE5qEkArmPcLKfzMF/MroMEDmQ8siCsjrwl2MTEr4rfIENiVQIX8GIRC6Fz1mRCNaLMgYzygjdKDOwI0HkR8K9IWUpcqSsgSUJIk8SHpmSiN6VRCJbEh77kshsTCKwM4lgrSnjF9/qlUfrAJE9CXf+9ENHT7ujgyM5yp8FlL0EkAkpcLgC0BxIQBIkYBIfYH1ogOSBrWiQMlCOcgsAmeoCh+oCzdUFRF0OijQEmDQEWN+QLTkzcT/zcT/zcT8rxP0sjPuZj/tZEPezIO5nLu5nPu5nvRkcSXs2PnAoR7XRamuDZzTue9qbLkZGEIVHOMVIeBQoEX20RKKQCee4icDBE8FGUDCFMfMrHwYIaEa1L8WhFR7EN21itPHNiOObOcc38zC+WQzimyWOb+Yuvllw8c0CxTdjjm/Pr3wYML49qn0pF9/MXXx/7kPbT4Y/Y1iR5ZAiI4NSwTiUYrUoZeBECsGKFIoXKcphAzaSuT4d5aYAyi0BZBoCHNoBNDcDkLQCmDQCWN8GILkJira/cdk16uAkI2pjE3RQkxd/hhU6qIk7CHbdWh50XBN1XBN13EQyNh3lugMy1QQOtQSaKwNI6gJMqqKsldVaOrJru4RMTYC75V6iuSaAaMoFReoILN8GAMr5oKj/EVOTEDMzfmd2tCck9wKA7G1AEs6Ns557Uz33fnpesNLz0EXPvYGeB955HtjmuXPMc2+W5/2gP5T2jGyKneOgBxRk3TkNeqA2687NoAdGWXcOgx5IboEiGfRCrN74NsmIRxS3qQnbZIY7YN/UJmhqEzS1tUe+zm2hgm1YwdbXhAcYKEEdZYAB8rHXASZoaQosfUOWhYYsw4YsfUP4fgyUoCHLINhLk1cfq+2TkHd6ZO8sEwpuKhN395OJ2lvJhMK7yKTQDWRiOfyAcvgV6VD+iIkOKCc6Im8/HynRkUKiA7au9NEkOjBypY99osORr3NbqGAbVrD1NeFEByWooyQ6IGuTH/usPpC4S1YDsrVWjrVWKrVWxLVWRWutTCOrLPu9kLU98rVe+9qZqQ7HBQk0REiNRgsV8QOHCtAYIjUeTlSIRxbJNMhIpfFmVUgPEiijSaUByWqQ+lTEjwIu4EcslaAhQyqPEZJ5SFu5LQo7wxKOeSryrYazE5AamwIV2t12tgpSyTWsuiyNMPYSUiNboSLfGsNsNqTGvkOF2IJIZjci2RqTFddFYWdgvHP9Vm0f7b/9IEdyYwfIrORV2DwveHecj4bmqLZH4nyK0MuEmsfZ268OfusbrIXW/mxrfzbcc9/X2e25dzxqKW5Ip3MPPaoDRPWN9qOTFMUBt2FTcY5ItA27l2xKQHBIoBCxGgXKlrkqXXNYEuqiQM0j9VuNjILpB1T4UQ5seUD1BXq7w8AKopAqj4KZ1St/7qFHdYCo6sLLlY4ClbW1L87BEe6u8Kna3vdvlwXpyK6FEsp3zYCCNVHibiGUqF39JESrmcToO6bEzNdLidilzKc8pE4DRG0RTg0SHrVKRN80kah9wrmRInBLRbDNFUxtxi8bGFGb3ZcNzKM2R182sERt9l82sMBt5i8bGHObzQg/LQrcfqtyFKwaxsIWCSJiC3BcrOqiY2UXIytTpKxI8cpfnJ4GiGIknKIjPIqLiD4iIlEshHMUROD2i2BbLti2+aJv7qEe2Uc2F9hIQMFTnAtqGlD7FOfCNAgYPau5gGYAsc+hLvoZCo7s470LPy+poN8TXfSzkR59NSVro9HXRBdV9A3RBRrtISEKszNa5lHAI6NliULvjZYF7gQ2WsbUHbhWZUQdU1irknrl4zn06Kv/YO1LcbdFy9deMtu5oQMtp160InWlFaP+tCV8p1qdetaK3L1W5T62qu1oq1Fvux+eCDn1+64fnoiKXBV6ZVjgXwvnqQvlOSuKv7/Q67BpFRIDKaUFSpQUKEUpgbpPCFQpHVDiZECNUwE1mwioUBrQZviAUgqUN8P7Aldh5Ich/RqeoQ7LcrcX9oj3at4GCD0uiLpbOPW18KijRfS9LBJ1sXDuXxG4c0WwPSuYuhX3+DKiDi3s8SX1ysdz6NFX/8Hal+Lui7bE9pJ9xoVdyAr1JMvUoSxH/cplfPdyCepllrmzWec+Z912PauUASRflhXKBydHaUGFroo9NiwqX4tnq4uf4cxh2SeQ7JmD1FFGSaMCpYsKUaKo6lNENUoOFTgtVOGEUMWmgnJKArNz1jHq+NLOWZavgugOA/Y1+GwdlONODTeY9lp+ugO9KYg6Uzj1pfCoK0X0PSkSdaRw7kcRuBtFsL0omDoRn+Yxoi4sPM0j9crHc+jRV//B2pfizose8PUS3qQfEqK+czfpzKO+i27SWaK+8zfpLHDf8U06Y+o73LrAiPqusHWB1Csfz6FHX/0Ha1+K+y56038r/d5324cjOcqfBZQ7C5DpJ+BwBaC5dwBJxwCTPgHWdweQ3BOK9JWpdGRzLiGbbgkFmZa4S7JEbX4lRKmVGGVVYiahErG5tEH0nuQGNaaTGtulCdnX4rbIb2pJPOx488U0YLvDJSHavZIYbVzZsM2XzUfSLfINMyBbQeVYQaVSE0W8zUYVraMy2ZukSLYlCeKXEv9R4Y6GdGR3NCQU7GhI3O1oSNTuaEgo3NGQFNrRkBjtaEjM7Gj4XG1fDjnUIzsQEgqyPnGX9YnarE8ofNUrKTQeErPvrCVkk/9z76Hv9CinNSLjnCoMzHkGvr2DQnsHYXsHvr3cS6AE7R3Q+P8MvaRkY/Xb7+E+9y6vR7U9krxThPm1pfmRGfS+IAqJ8CguIvrgiEQREh6HSWSOlQiUIMIpS/AR5jtClC+FR5ikDvy5OX2E74pVkEgiFWJVSCmRS7FyySWCzTB8SksZMvSoDhBlXfRItpfy91yQeoIonMKjcIrowykShVN4HE6ROZwiUOoJp9TLHFJPEKWe8ij1sjrw5+bUE74rVkHqiVSIVSH1RC7FyqWeCDb1cC8VZcjQozpAlHrRXqosudcicyXi1yJjNQxw8bXIuAAHe+drkXEhF/j4tchY5YR17+C8CwVO3l3v4IRlBqVrunS26rdjHqW2LbAz5qU0t4V2x9ynvJUp8d3LSWGWDktCXRR4QBRfTtoW6Lo73dBtV7fpyK7CE8q3Q4CChXnibmGeqF2YJ0TL78T0FkFZ3tauxK7IL/vRrO25sDG4dOMWeBgQGaGAePWtiq6+leUBCEj26wlK2/UO5CjXGpBs11Nkt+spx+16SmW7niLdrqdMt+spy9v1lMh2PUHjdrrd1nWoZHtjqmXsJxrfSrkvRRS30tyXAoX7UigsSadIk05Z0Pj79fN9Y6u02cm3fX0sHdmXzRLS1ziEbe5vTyRL5f4WULD7MnG3+zJRu/syIcpLUGhfZmI5LwHZTZgbJPe32vqZadbMt1723CGyU4II8+Zx4jNnacos/SXoVyGUuxf8EpXXcBTxjgNV9N0cZUF/yu8+CFmZo7U98m3wLyPmaRVd2L3Wxpz8OH6tjUXvzO61Nubs0f61NhasW7vX2oiDb7vbAOaRg0e3ASyRl5duA1hmV3e3AczJ3zMHMxREHiic7F545IYieuMXidxfOE8BIrAVimAnA8E0I2ROg1uxmRsyDk7As4RwmiqU74hQMGmo5GcO0Wj6EM5ziAil6PFskjlMKYLIMoSzGWUBZhhBNM0Ij+YaEf2EIxLNOsLjqUdknn9EoElIOM1EmfN0lPnMR4MnJuE0OymPpqisBvNUlpa+NM9YwqNpS8TyfMATmPB4FhOZpzIRSilEk1rGK4/WASq0Opro3LvMeTaI32WOVZ76drzLHBcJpsH4XeZYdVNi4V3mWKbpMX6XOVRxqowfWMRqOG0WH1jEBXgK3fnAIi7kptP4gUWs8tRqVJxRrMCTiFV5srVqOKHYIsHEawvw9GtVNwlb2U0mVqYJ2Yo8LRuVHY1EO0XbnaNFYWek3aRN6jcjHU3gVCCYxm0Jnsyt6qZ0K+/uCze9GxUneSuwc1rVubXdqgrTpBV48rdquASwRYKFgC3AywGrFhYFtpBbGliZFwhW5WWCUd1iwaizUjzdwsGqvHwgNVxEmDLRUsIUWJY+6ZYVVg0XF7bIt2Zit9CwamG5YQu5RYeVdyczL0CMuCoJ66KwM2J+YTLoVyOHR3Ikz6MVyRshiuxzaeX4MFqpPIFWpE+UleljZGX52bESeYS/RWaXCiFqi9+lQjxqVbhLhSRqX7BLhQRuqdulQpja7Hd3RJxaX9jdEYlRHMq7OyKdIlLa3RGpHJt4d0ekUZR4o4OnFKFwo4OXouiUNjp4lSITb3TwGkcl2ujgFYqI2QVAiGLhdwEQj6IQ7gIgidof7AIggVvudgEQpjZHb8/HCkWg+PZ8LEfx2PX2fFyColN+ez7WOValt+djlSJnXxtnRtEKXhtnIYpQ/No4axSV6LVxVjgS/rVx5tR6+bsMpxGj1qtArVchar2qvvWqUetV4Narwq1XxbZeObW+/5H4U0+o5RlTuzOOWp013+asUIsz5vZmzq3N3LY1U9vSq76VH/TIvtV7ha0DFLzVe0WtAmrf6r0yrQFGb/VeQSuA2Ld6N2jzo/rbVxvTkf5oqyC7UFdBfyMrHdmN4gkFe8ETd9vAE7U7wBMKf+wqKbQtPDH7s1YJ2U3fG5Te/337Vg7lORAwCQIw+0QIBHwOBFie/gDTxzkA9ZVTgPmdU0DyOEeZvTfaEvOG8wbRZ5qgwfpLsMgKDcbnCsdA8YdgobT84qki/V1TZVEU5BHBsfTe5rnAkeTuxD70TIgeJW5Ya0/bBhFoS61t4+5tg+7lm3iUop6XG3ZkQS/zi9Mb5u+MN3Rpmr300VkGT3oTd493E7XPdBMKXwxPCj3iTSzojKV5mDvsPXTbhiF6KKA8HgHZn91VjsmpVJJQkSahMqkusL66QOT3dgWlp8zSHn20rMiml3LMLqWSXIo4t1TR1FImmaVIEkvQSOaBIRohIDt3DZ0NAndz1xBNEBDNXUNjgcDM3DVEA1SUR8ARkK3/ad+kZ15v5Ege9CmSB62AzAM/5W6Dx5CtDwrbDR5D43zA9DGpMDE+LaYPRIeVewo6rPyjz2FvfB/kFOJ7gGx3KsfuVCrdqYjyEhTtaGU5LwFJrwoSv9NORLvTzl7aI2t3w4LdDUO7G3q7GxbtbhjY3TCwu2Fod2t75Gu9drWrjUvW3iVr75J1wSXr0CVr75J14JJ14JK1c8nau2Tdu+SBtEdcElDwa5g1uSRQ+7uXdeCSoNAvXNbokoDsb1nWFX5RVlfu27G6cl+J1c4lgbsvv+rKfeNVV/5rrrry323VFX+hVVfuW6waXBIJfl9VV2aRWFd+kVhXfpFYO6M8Vu7WiDUbJZ7FrhHryq8R6ypYI9aV+xqprnCNWFdujVhXfo1YV2aNWFd+jVg7s0TBrxHryq8R68AvUeI1Yl35NWJd+TVi7T2zJs/U4CztkU/nZSF3l2HuLn3usmeCEmT1Msjqpc1qfEzfN889pmdOXhg/pmfRu6J7TM+c/dE/pmfBOqV7TE8cPNNtNmMeuWe02Ywl8tHSZjOW2VHdZjPm5K2Zj3xPs8sKJ6sVHuWsiD5xRaLsFc6JKgJnqwhxyrIbZ07jUrHx5YxxrAtjgxKBbVqFwKtF9IatUuDaIpJ1C2f/FsGZeFbYyTMHOxdEni6cjT0LbXA9Z/EihD4vamD2orHji1CwfdGd94vCE4AIPAtkgaeCzIP5IEvLABWGYDg9iFgeajxRCI9nC5FLI9HNGyLYkUjf5PUxib7JCySaRYrf5AW6n0uib/ICiWeU8Ju8QLPzSvRNnpdgdkFKEwxK0RyDup9mUKWZBqV4ssESPN+gRlMOSjTrgDQKs4TnHpRo+kEpGhao+5GBKg0OlHgAoMZjALXiMOA5CSSyB6OYmQkUtCDE7K6o8RRltGCWQt1PVEYN5irUabpCiWcs1NykBSLPWyDB1IWUZi+UeAIDrY0v76Yx1MKZDAsEkxnKPJ+hVpjSsIib1VDkiQ01nttA4+kNpGCGA3UZ0/JwD6c61HeOaZ7wUIrnPCyxY9S7mQ81M+qvO3Jd5a/srjF4h4L0D3RcYzgABX+K45qaD9T+0Y3roLmg0J/XuDbNA2b+kMZ4M+ikWZujB3sUfWE5lmWmRw8BCs8hW1M8eghQfI78183NWQQ+hDA809aStz/4f3M9zb/5v33B06hWakxaZKNGlFuACF+XAg7Jh1RtGHF+0QaQvEQBTF4tUHZb8R+825DuMtNmPk/PxgU2pgj84UtB9m9WCqbf/tmw2yq/Pn+bHVi01p+Z/Fa5/V2i28g+VRFjVKR/tTQj+gt0t9TV2+njoQ/HNjgPGA5A9hcKHtwkDNx9cf/A8QRsv89/MHMsMPod9wcT6Acf6IdCoB94PlNqw/9QDP+DnbSU2S558F1iRygGvfDOf6xSV+x65z8u4jtoxzv/cQnqttI7/7HMnenfvw/jxV286/37uIjv+ML797Eap0Pp/ftYpiQpvH+/VTeO9yLz8FP2YEDZgxGZM4KQf3lQUdsfbb/t3Rxt3gg/kCMN5OZobY9sZyTkwttilfurZASXyujVf3AdILqycH95Mx9BHQyHihj+WjjPusSpXlb0lYNJEaoGFCoG9DU8wzqmVCWUfIXyxAu1yQiqktGr/+A6QFQD4f7y9LYo1IIUqAwpr8WzrcsK1ZBlX1FZjUAVhUHlhL0Gn11HjKqigq9E/g1YqENGUIWMXv0H1wGi60d/5qmX0Ez6y2cEl8/o1X9wHSC6vHB3+byuKSxrrWy1hKbN7SLL2//3N4r4gepG2mbxePtH7yPNXDA45Sz+mGyRijR5DhJpdsnvS8zjeszt80yr5QuGWr7diFVTnajE82hcuKxugLI42gFmSmgKdtGV9f97IbII7hF/j0KYi/MvLBB2xcM9n6FIH+1js/37SseG2Bd5BMtfV7I42LcmGi79rGJ3qgmm3WfC6UUi4Wa/mVB5w9bgzW9zbd/azGToSO2J5K7F+MwvKS/QAdsLv/Sr7m26vOBSG5AdcC9uUQ3cvZn3wstnwPaFvRezUAamd5jCWnvk69wWKtiGFWx9TdzaVpWgjq19dfDFLF0FSX5vg9/NC5Xemacja/gJ2VfLEwoW9om7aSFRu4RPiJbkidF9fGLmN3wTsevxlUuoVYWPElaVe5SwMgkFKG5TE7YpeBaxMgmlKGgqP7JYmYRa+YRaFRJqFSbUyifUqphQqyChVj6hVj6hVj6hXk3wX33wX33wXwvBfw2D/xoH/9UH/zUI/msQ/LVLobVv2JqnKMJcPPgKxiv4oT/++/9jjgIE"
1128'),OLe=JSON.parse('
vendor: 13,394 bytes, line 1128
1128"eJyNnV1320aWtf+KF6/mXcvpsWTJsnPnTtLdsdNx7ESGMb36gpZgmSNKcEhRCjNr/vsLgqhz9tlnFz03XsaziwDqVNWuDxSg/5l919/cdLd3s29n7/+5Wc+vukcnZ2fHZ49On5+dHs8ez/7W3979PL/phgS/LW669Tc/3s2Xi4udslkuUXnkyvxmsdyiNsCmW1x93l3nn93lYnMzkH36l7dXyyHdN0enfzkd2Ppviz+6y18WdxefZ9/erTbd49l3n+er+cVdt/q12/3+hz/uutvL7vJdfzO/ne7wr3/t/5h9+69vjp69ePzN8dHZ46MnR08eP3/+9N+PZ+dD4tVycdv90q8Xd4v+dnexJ09A+O3z4uL6tluvZ9+eDvx9t1qPyWZPnhz/5cmTJ8NFfu7vFhe77HzXf9mudjl59B8X/+/R0Yvnp493/56N/77Y/fviyfjv0/Hfs0cvL/uP3aNft+u77maI0e1Fv/rSr+Z33eVfHj16uVw+erc72/rRu27dre4Hug/mYv1o/uhuNb/sbuar60f9p0c/LW77u+2X7pt/dMOvXv790fz28j/71aPF8OP15uN6cbmYrxbd+i/D7f4wXOZycXv168XnbiyF8S5+vRt+Ml9dFnVI+N38yz+mgnl2+vTx7EM5Ojk5ejx7ub7YhXo1iM8H8fvOjscgz369u/xHM/v26fH43/fDf8+e7cvrn93danExBPRf/zNrPsy+Pd4F9ufhRtZf5kMc//fxHj99+nSPuz8ulvMb4yfHU/LfN/0QqY9LU06fTMrt5ubjrqCubrN22S+X85Xx5+UqX7rVxa6yF+Hs7PlemN8M0nqITr6z8Q7GEs/al/mqu112n2pS/Jnd3ny9O+P62pRnZ6fTr5abtVGL2cXQRuf5Ep+3Xz53tzn5kJVF7zk5LplcL+frz/lu/uxWfab9bZfh3YNIefd51Ym0n/rNStDFvUi7XvwhYHffibLtdExvF7eiWl30y/4243V3s4iSlcByZwOJdr9v5suMr1bd0JBFNn/fdOvRaoryolToud/7s6OjPXuZ0V8dPTvbo++82h4f79H3+Yc/ZPS3/MO/Z/SPHKYfvT2enOzRq3xfrz37p8/26Kfc9P6Zf/hzvok3+e5/yane5lTvchn8mu/rt3yu83yu9/num5zqQz59m9F/eVSH3mFEH4fO7Lq7C7ZhbfTjoMV2yr+LnnJS8jFfXywWF4vVxeYmh2KzM+310POIJjL6W7gZ96mMPuYqcSH8N6fqcl4/5R9eZfQ5/3CR0X/nK17nVMtc/iJawnSE7X0RrT4X2iqjdb4vEftNztB9bkIPOdUfGW3zTfzpqaxoh/rVUa08LbVyVUlPPdzJEdTGu8XyssuX3nf1l/2DiHPonb0nuBvHaV45jkr+P+0Ghuiz9put6js+LfvVQvB1VznLxWY1dOMXHsDjoxNoNuvFOHhNrb6MWnSzutosBuWmv9Mjh508nvgrcmVw8Wmh8i360WEoqIYDl/OrK9Wl7TkOxWjAsSu7btV52z899rHQ/Go1/wKmVn76cZhEdCKXHt6P8/WBCB9WKyGyAoj6c6uhy+Xiy3rhDXWYLnhW7z73mzBUTL1+qNtecKv5vfDf+cXmTo1cRiv/tOz+yBo1rIJv5hcrNdr5uOrUhS/7u/lFaHAuLYaCxACYssJm6Dc7TOmGEbcYom5ur+arzc1yvhGX6a+GUea1ON0c8+HFchNqrPGXPuY5PptqQL+6/DQM8sKo0IcnsYf10UfkL4p/vvELPD16Yhe4GVxus8QrmC/PRXd3uWvw67XovJaVkXkfuZ29F0PooW0O0+GhzotC+zGVp3fLsfp51x8rjXdLskT9dLHofGSU7sDG0JeL+8WlKKQ23pkPlkXL8NuOP/JRnviRd4/UBK2jHudd1EYgq/mUfr3QThynMPidU2Pw31RKaEM/8BlAuojPFwaDgAlInGBSRs+emTiteIhLkeX4mJDqgeUyxMVnAuoGvHnU6mh0VB/lq7P5NKp2tuiqEM7sk15DQjaBkyH60DVe/eRsusqy/7O7vRKXfxcv4TM4lUmvHAcbiRC9eXEvYiPZeCNQ1JRXn/vkyNllfvvcr0Su3tDVPQyVUvuVeLmry0rYzukCHrHYs4XFjfVmHOGsxP3GKuhRrPFoq2aCN5vl3eLLcivuizLolTwWR+n4hrHW3WK+vFx8+pTLaptt2JpgvI5X2EOV5YeD1exAr1OXLioFfVuzQa4x7ilzORr6kfoVXHobBgy4/mbTn1V/3d3iJMjMcdVdLdZx2OtNtDLw+lG0C5uJbIZWHeYiHmwaQFrDrESm56pu7bJSpf6LTPvkRRm4jqtccQ3McvnDnRihfFc1wKXyLW9uFZPpqr1jrRd8WRs+HKiVlQD/WWsatZt6UyuRWtdT89x17cr1Lv7NwWEJ21IZF3TLO7HYcxdM2gvpoT/giPUhzs1G5IT6cAuVHGd6W6DQ+yw1jnDOTtHHhwq8GiqyuLVf0wymKMtYI33VU/a/NsOIBffiebmN8kBHeWJ9PvZjZe74Y627/Im6vxKGIWif50tYeCttfDcziQ3ci+KQyd/GUZPXtK+UHw2DLAi17vkqeilmaCpVVah6EPqrHO5aBdYzHKtgg0uoxx09NS13Qn0Tm5j+5LRMsIdu80L57PeVsebq4Gj351g+fruV0e67w9VaXsustXLOl1WP1rOkN5WFwz8PjCd/qPX2dG1fHZZZsfFYGAj42Q42hXgLvrh78ErL/mpX3re9GMX3dS/dZKk05eFUlZZ8dXDO0N2Jhw5/Vqrv7cFufAh56iHc8mtt/IfN7kHkvx/PXner21/mi9Xu8fG/Zi93j6lnj795+uTfj6ejvXsEtL/PiCZPR/j33dGpHe1dJSDMGApvhqMTO8+bcguAoHIEbkUV6L79BxScJyhTyALbLw4FtG84iN6Go992OTqzI4sZoJh7E86Ho1M7z3nJPaCQe+CQe6Al94Ao96BY7oFN7Tqw0U6QvB+Ojp5YETbD4Qs7andJ/ciy5Ahv3SjsB8AAbYajY7vwppwNUAgQcLgK0BIgQBQgUCxAwCxAwKYAObkPWXsIR9t4lOOzzfGZEmF7NUSN1ji1XOfcfIsCbdgQNWTjsjUXFZq0IWrXxlXjNjG3cJOomRvXbd1kbvAmUKs3Tk2/8LcZgQkYIidwruygqOAJhsgYjCt3MDFbhEnkE8a1WZjMjmEC24YJ0TsKRgMpDFykoDa3APYT4/VGo5ylaGAvhshjjCujMTG7jUlkOca175jM5mMCO5AJ0YYKvs8RechoK1Al1MKfJptAfzJE/mSc/Mk5+1NRwJ8MkT8Zl/5UVPAnQ+RPxpU/mZj9ySTyJ+Pan0xmfzKB/Mk4+VPhbzMCfzJE/uRc+VNRwZ8MkT8ZV/5kYvYnk8ifjGt/Mpn9yQT2JxOiPxWM/lQY+FNBbW4B7E/G641G+VPRwJ8MkT8ZV/5kYvYnk8ifjGt/Mpn9yQT2JxOiPxV8nyPykNFWoEqohT9haNCkIieniiLZFYnsWUEG44qc3CuK0sJCEvCxyMnMoqgcLabIthZ18rYoaoOLadjlokpWF0XyuyC+rXBwvsjJ/khUHhiSgBFGTm4YRWWJMUX2xaiTOUZRO2RMwzYZVfbKqEbDDBq6ZhDAOgNvKy2UTTSKX2neyk5DAvDUyMlYo6jcNabIFht18tkoarONadhxo8q2G9XovUG7rwTyocK3NX6o1IQpO0FLRkqGjBLZcZDYjEEEK0ZKRoyStGFIACaMlCwYJWXAqGf7RZXMFyVtvZiCjRc1sl2UyHRBeispGC5SstsgKbOFBGC1SMloUVI2i3o2WVTJYlHSBosp2F5RY3NFLVorKGisgMFWgbayhbGlonSwaSo7BRnMFClZKUrKSFHPNooqmShK2kIxBRsoamyfqEXzBOVehuxB0q2m9XIRljnlHv3SEJmlcXJK52yTRQGPNEQGaVy6Y1HBGg2RLxpXpmhidkSTyA6Nay80mY3QBHJB42SBhb/NCMzPEDmfc2V7RQXPM0SGZ1y5nYnZ6kwinzOuTc5kdjgT2N5MiN5WMBpbYeBqBbW5BbCfGa83GuVkRQMbM0QeZlwZmInZvUwi6zKufctkNi0T2LFMiHZV8H2OyENGW4EqoRb+VO4VDcoZOZQLZFEgsEeZBCbljFzKBWlTJoNPOSOjckE5lavZqlwjr3JBm5Xr7FaukF25QH5lwlvBwLGckWWBoDzLZDAtZ+RaLijbcjX7lmtkXC5o53KdrcsV9i5XonkZR/cyCPZlrBUthA3MhQPNSlmYieBhzsjEXFAu5mq2MdfIx1zQRuY6O5krbGWuRC8zfi+C8yDYVrFa5IWhlRtDQ3NGhuYCGRoIbGgmgaE5I0NzQRqayWBozsjQXFCG5mo2NNfI0FzQhuY6G5orZGgukKGZ8FYwMDRnZGggKEMzGQzNGRmaC8rQXM2G5hoZmgva0FxnQ3OFDc2VaGjG0dAMgqEZa0ULYUNz4UCzUoZmIhiaMzI0F5ShuZoNzTUyNBe0obnOhuYKG5or0dCM34vgPAi2VawWeWFoq+n7JO5AhZCZFUxWZpiNbBLAxgohEytYWtgkgoEVQvZVsDKvomXrKgoZV8HatorKplU4WVbBZFgTfpsImFUhZFWGlVFNIthUIWRSBSuLKlo2qKKQPRWszamobE2FszEVHm1pomhKEwJLmkibajjbUcHVJqGsaJLAiAohGypYmVDRsgUVhQyoYG0/RWXzKZytp/BoPBO9T2F4SGSbiY6tsJupEaDfGCLDMU6O45wtpyjgOYbIdIxL1ykq2I4h8h3jynhMzM5jElmPce09JrP5mEDuY5zsp/C3GYEBGSIHcq4sqKjgQYbIhIwrFzIx25BJ5EPGtRGZzE5kAluRCdGLCkYzKgzcqKA2twD2I+P1RqMcqWhgSYbIk4wrUzIxu5JJZEvGtS+ZzMZkAjuTCdGaCr7PEXnIaCtQJdTZn/460Je7K/uRBdFR8RJAMaTOMZpOLZCOPEjOPD7OSmiclIbt6HyslHZUcgAo3C5wuF2g5XYBUZGDYhkBZhkBNmVkT76f4r733+8x7oCih3+f4g4cMgK0ZASQ3S4wu11g0+0CKXF39N689PvJBvyojUexF/me2v1EJ9PFyBii8BinGBlXgTIxR8skCplxjpsJHDwTYgQNUxgLf5/D0GTUCkShNS7iO77DGONbEMe3cI5v4TK+RRTxLRLHt/AU3yKk+BaB4lswx3fi73MYmoxagTi+haf4/m0K7dHRqR2aFwErIUUWDQoEdCjAZlHA3IkAuhUBLF4EqIQN2G6keeZHJSuASk4AhYwAh3wALdkAZLkAZpkANuUBSMmCo/0HLodMPTUUE3Q5U10Z+iHSmepkpuCF24BzXjuR107kdbGrYn5kFdJRHIw7xzrq1Ibgjnx47czuxFnvw7/x0LtaZ9TXuhA6W8fe2zpL3a1L0N86LJMAZFajnU1fMA0VYmWDofEoDp1GVCoEojAN2Auvpua/N4NX2PoBlSYDSMykXlHTBxrnT69CwwfmhedsajJA4iTp1dTon1p+5rFbeIWNHpDoDF5Rowcau4BXodEDI+N/BY0eSLT7V9Doj4108SiOcF9hm0eUR7ivqM0jhTYPOA58X4U2D4wGvq+mlgZH+Z77yg328gb7fCfcyEAR92hNDFAcib/CBuZoEwpnkyvUplJ7NrL2bHLt4fkYKKJebUS92oR69Xq2XwnZT33HoziLH5GYwI88zd1HGqftI5Iz9lGhyfrISvgBlfA76kIeuhjr11jREeXwv6aKjhQqOuBYKq9DRQdGsX89VfQTy0EfLfN1qujAkz++xooOSC4tvQ4VHVhcUHqNFd3RJh7lu95U7noj73qT75prNSjirjfk96+hVjvZxqN819t8d6Grw3ZBAjURUlVroSS54VACakOk6uZEibhlkUyNjFRqb1GFyk8CtUJSqUGyKtomJcnNlBPkFkspqPGSyu2YZG7SUe5rFYkbOqmq9VCSr1VVdgJSdfOiRNzSSCarIJVcI6qbqnAwMNJWKMnXAsNmQ+r/JTDJgkhmNyI5GlMUt1XhYGCyc/002y/tH/uRDfMAhZG8C7v1gv24fnfUhKM2pGzjsvOI0qLyjorl7J+mDD+1RJZLQNjE9xTfuT8mRJmsvHNPKmQX30cn1OYfcu7V++gkqTjga9iUR46Ieg17kmKVgOCQQCFiVQUqpoFwRaGpCW3tVBxAUnMYYwIVzNygZHw4sPUGNSWY7A4Da4hC6lwFs6gQxoKajNr8Qw6a8RyuIqlAFW2b88jBMZ7C8vNseoZyZkd2d47sGYqjOIFzjnlwahM4Rz5Nc+ZTSWflGYoTm7ntUWlSLwWivBinDBlXuTIxZ80kyp9xzqQJnFMTYnYNU57xYQMjynN62MBc5Vk9bGCJ8pwfNrDAeeaHDYw5z6GFv6wKnP+ochSiKmMRk4iIxAQcl6im6EQ5xSjKFKkoUrzKg9OXAlGMjFN0jKu4mJgjYhLFwjhHwQTOvwkx54Zjnt9M2d178BvMKaCSSUBxhuc8PXN+g7kC5HMzZ747wVnZmODEJmaGfrNR4BvsnBCFfsmFsUuyoyYcfQgp26D59gZHaUb7Bo12uttktMwp1tpoWcxRT0bLnOOfjZaFWBLJaIlDmaSxauKqdMJYNaImow/5h21OxcWmhq+TFF7nhgKMnEoxilSUUVTlGVPkQo06lWwUuXijymUc1VjQUaPSTh+eOBHR43I/9OEJleR9pVSaCv9QOU9bSc+1ov79hb0OL61CxUBK1QIlqhQoqSqBeq4QqFJ1QIkrA2pcFVCLFQEVqgb0MvxJihNXgfrL8DnBexn5RtIP8gytTMvFXntHfK+W1wChxA1RcRunsjauCtrEXMomUREb5/I1gQvXhFiyhqlY8R3fkxgGLtDKO76kvs/xbDL6kH/Y5lRcfPKV2L0U17iwCFmhkmSZCpRlVa6cJhcvp6BSZpkLm3Uuc9Zj0bNKNYBkqAisUH1IsqoWlOh9tcSaqvKhera2+huuOSznCmTvzEHVcUaVxgWqLi6oiuJqriKuUeVwgauFK1whXIlVwTlVgvDm7AlFhAu+9uYsy+9FdBvBPojftiIdF6p+wXSvldUdKE1DVJjGqSyNq6I0MZekSVSQxrkcTeBiNCGWomEqRFzNO4lh4CKsrOaR+j7Hs8noQ/5hm1Nx4akFvknCSfqUtTRJZ05lpyfpLOayS5N05lx2eZLOQiy7NEknDmWXXl1IXJUd7uuneDYZfcg/bHMqLju503+UfpmK7YUfld8CKoUFKJQTcLgC0FI6gKxggFmZAJuKA0gpCUe7zUbP/ajkAFDJAaCQA+CQA6AlB4AsB8AsB8CmHAApOXBE+yR3KCbocqbsyTUinalOZio8mAac89qJvHYir308yvfcV26wlzfY5zvhp8agiHu058OAcvB5U+LbGb7RMB7FNxpGJN5oGHl6o2Gk8Y2GEck3GkaF3mgYGb3RMLLwRsO7Gb4+Nh7F57UjEk+vR54e3o40PqcekXw4PSr0RHpk8fn8iOJD+XdTrOEo3/V55a7P5V2f57vmWIMi7vqcHp6/g1g7GV/Eel6OmnDUxiOrPY6wluxpWfiCMjREITGu4mJiDo5JFCHjOkwmc6xMoGI2TmVd+LlAlSzKojexnkWuBMYPZzFVBxO4TpgQKwYukVLBNhm1AlFlUeuhk1QeMkGNMUThNK7CaWIOp0kUTuM6nCZzOE2gGmOcakzh5wJVsihrjIn1LHKNMX44i6nGmMA1xoRYY/D9IyrYJqNWIKox6v2jIqWthOUm9FZCrcoAV7cS6gQc7INbCXWiFHi9lVCrXM+Cel4VDgZG17yY5GuBSbUwqv+XwOQaGeVUL6NMtTPtupFVqakJbVXgWlvddbNPMEy09hPMJ3YUZzkjsmmlI7HxdeRpLjTSuMV1RLRldWT00vbIwvvaI4n7VX+bmpzn502MwW+pcQGXAbFmBIiHla74sNKZvbfjyF7bMbSbmbw4tiObITqyGaKjOEN0jjNEpzZDdOQzRGc+Q3RWZohObIZo6KJfwirAnuxnXGcnhcRfdDmXNuFCFGqXc6xdQGHCBSexSufIK50zkfnP2y+fu9uQjUXIpr2rBoiWPnasD2ftc977SnH2sjj7XJw8cQNFFLRN3ADlUrWJm+d+FbK1yrmnl8n2SLxMthPW3c2i1JxnRjchzSZfYiMWsUae1q9GGpeuRsRb6V2h9ayRifLchFWsHXkIYdrGo5IHQLjLbk9xv9bkaGm/FnPyY71fi8XszGm/FnP26Lxfi4Xo1mm/FnHw7TTEZq4cXA2xWSIvrw2xWWZXT0Ns5uTvhYPJGyIfME52b1yZhInZKUwiuzDOzmACW6EJsTMwTN5ROHULjkPfULA4AfcSxqmrcC76CxNzp+FS7jlMo+7DOPchJtSix71J4YscIu5XjLMZFaHPl+NuxvihaiQ6HJMq1ajS9Zhcq2XcCRmv1Cbujgpf5Whwx2SceifnqosqquinirTJqbnHMq66LRNz32USdWDGdS9mMndlJtSqEHVqBT/kiG8Foj7OuOjo0ibd0hvoTbpa5a7vwCZdnUR0g3qTrlZTl1jZpKtl6h71Jl2pYlepVxW0KrvN6qqCTsBd6MFVBZ0odad6VUGr3LUGFTvYKLAPRpU726hKr4xJhGPGBOybUU32GOXUmUSZOuQospEGlTtnEmMXnV4FladM3bV+FbSiqq67+ipoJYHoxvWroPr3qUuvvAoqz52696AuaqFOXX1Uk1vHdzBrN5M6/6h+vVqrgUBMcLBa1wYFMdHhup8GCFE9WLvTYCGoq1o808Ahqjx8IFUOIkIaNZSIr47WfpmGFVGVg4uYRAwxYgIeaES1MtyIidKgI8qHKzMPQIL4UCvLbVXgIUn99b8xwfk0GtkvzZ7jEARQ/L7NeRpsAE+L0ec4rABEK8rnYQABLKwdn+NQwVFx7v0HSs5n6ZslZZEd85re0WBOudbvaLCY85/e0WDOkcjvaLAQY5Le0SBO0SmYQ5RehZhOo1+FkCJF7MCrEDJFjp1+FUKKHMXKqxBSjfHUr0IokSIbNA4vvU4wnU69TiAkCmz1dQKh56Cq1wmExAGVrxMILQZTvU6QJQokKBxG3KA/nSdt0GdO0dMb9FnMcUsb9JlzxPIGfRZirNIGfeIUpYI5RGIf/HSi2j74ikxxO7gPvpImR7G2D74ic0yr++AreoxwbR+8linepHLYw+7x6YR593gSKMiV3eNJzYHNu8eTwMEUu8eTEgOYd4+zQEEzzuGyv+cA4XJG4XKBwuWCCperOVyuUbhc4HC5wuFyJYbLOYXLBAqXcQ7X9DV6CFYhFKqCKVAFqzAVLQepKBSigjlAhXN4Co/BKZRCM2EKzEQpLO+nkDx7YkclHIBKKACFMACHEAAt2QdkWQdm2QY2ZRlIya6j3fLWUz8qOQAUPxnlPH23YqT26SdH/DU9V/xLUM7KHBSQfZLR0Li3+OjIDm0pDph/FdcZfRXXBVyKA+xfxXUGX8V1CF/FdWhfxXXkX8U1Fqen76H6HR2/KIh+04kM23JPYJUMhy/NAoX1HExtn5p15J+adaaiYKs0p5a/3dLMfo44HsVp44hinXOe5pAjtTrnyGuWM/8QrrE+3msvwtrXQtjrOtOLOpM+PwuSqk7++Vlgour4Tm+vKbji4RndxKMc8rigARwrilOrEI4oj6B4VXEmCqMsR+xJE+y1yfbaZHttKvbaSHttsr02wl4bYa9Nstcm22sz2eu+u2jQXgGJr642ZK9A41dXG2GvoNBXVxu0V0Dxq6vNDJf2m1laz29maRG/Sd4KPK1rNrO0Rt/M8sJ8M8ur8c2Ml+CbWVp3b5KpNmCqnib+osu5pAX0Jhkq8LRU3rCfQuK4KN7M8kp4M8vL3w266f6DU80MF7qbWVrdbmZ5SbuZ4Tp2M0uL102yPeCyOPtcnHpBupnlVehmlpaem1lab27Q7xzlBd5mhqu6zSwt5TbJ7oCnRdtmllZqG2F3oNCabDPLC7HNjFdfd2RcWTXr8OVUR2jGI21n+ES3RZcEFJ/dtsklgaentC26JCB6HtsGlwQWnry26JKOxmesp3ZkvbCj2Ak7xz7YqXXBjrgHdsU7YGfW/zqy7teQu0mbXbLNLtlWXLKVLtlml2yFS7bCJdvkkm12yTa5ZJtcsg0u2WaXbLNLthWXbKVLttol2+ySrXDJVrhkO0tPBtsZjjnbWRpzjkiMOUeexpwjjWPOEdGYs53lMWcbrLfN1ttWrLeV1ttm622r1tsK622z9bbZettsva203nayXk+zydnbVLK3kdnb5Oyx9YIisrcR9WMTGwc+oJlMKT2gYU6Wqh/QsJjNNT2gYc42mx/QsBANNz2gIQ7Wm17PY65MWL2exxLZce31PJbZmNPreczJoguf55JmszZOjm1c1VkTc8U1iWqvca6oJnBtNUFXWTZ1f+4W2iU/jqPU4gRs9MbJ7Z0fiJDwfZey+ZtGPYBx7gZMqEWPO4TCFwJR12Bc9Q8m5k7CJOopjHN3YQL3GUXoc7649zB+qDREP2JSpb5WehSTa9WZ+xbjlWrLvUzhoqsp0ian5k7H+KGoiO7HpEpUKh2RybWopC7JhNjI+StwTxKl3kl+BS5Lqo+qfQUuq9RT6a/AZY37K/UVuKxQrwUSdFxIqe9CSXVfqOceDFXqxFDS/Rim4K4MNerNUKIODaS5rCXcraFEPRtKqlmgnlsGqtQ4UOIGgBq3AdSqzYC7u/AYP9iDeMCff6PPxF0fStT7BelwFEUfGNTcDaJMPSFK3BmidiDI3CWCtNCUOkaUVN+Ieu4eUaUeEiXuJFHjfhK0XmaZe0uUvlJ6os9Etd4GKj0npjjQSrj/RKneFLgXBUl0pKBu5G+4O0XpK2ETnSqq9bBVulZMcSBsqYNFLZjL4Asz/+bMeGTPDR3FjaaTUDrtK4HoHMbliabEeCJDdCLj8kRhD9hVjdMpoyjPC9G70pTOiZI8Y9k+dCUQncu4PJFt8bhSjE7lgjyX7X+4UozO5YI817Rl4CoTOk/B8izlQ2dXAtF5jKsTfURTODHkf/L8IzZzQPHhlHN8OOXUHk45kn/Z/GNovsDo75l/hOa6Jxe7jssGRLuj66Bdx9xPgs0C/ZcFXedU+hz2TqGfo6DrnKpyjmEMsFzO6SwGr1VKfab9iGb/J0guPy7LXyE5OskyabgKcGTEd8aEugUo3oYL/gj6tKD7cPQQjrwe7Y78z6SMR3HzyYjSJpMyOONMoBufEKLsVNyYVM5Y4fcZPWQE+Sxom/PAOTaes83v8h5FDNk2RNk2LrOdXvqcMlT4fUYPGUG28d1FygNnW767OElqy/OR0DAAsruTog6F3EpdcorifYU/VDiGB/m2kuEUqCDmaIlJz1FSIFKqCxeSjJIab055Bule0gdJITpAtzJ7HBmURFx8cpUCAxJGBjGHBjUdG0iRggPavcYPGmN8AG91PlOEUMsh4n3eRxFDaNJAjbkMSdowPmWw8PuMHjKCEBS0zXngrBvP2U5bh4+IQ8bzuDIJMut5G/KUKxPuBXsQDLJvbCsywwFwIUcg7QY+Ig4RyKPhJMgI5J3FU85MuBfsQTCIgLGtyAxHwIUUgU8p7zsyNJdlt17vlkKeGfw0K+9C744Wdi/jEQ1eP+XsfqIx2X4KepWuvyNdPLJlTUe23RNQ/obryHFlEyhu9nQcP+06IvqA68joA65xtiNmOtVZzlUOVPkpx6XgTiCKkHEKk3MRKxNzwFzKUTONQmec42cCBzEvBVxVlgKuDi4FmMqB1W+dTz/Kb51rgUJdeeu8ooqw1986ryTIRVB561yrXBy1t86lfFUVqIBIlcVUeYd6X1jXoRCuc+Svc7ivKzG+loG91tG8ziG8FnG7FsHasT4e5XvuKzfYyxvs852k/dSuiHv03dSO7MmKoW08yne9zXdXazAs0MkONpikilh9rcGkBLmIDzYYVjmohxsMyX1VOBgWWUnqn0zQCQ5mq1KLap9M0DLVrconE6S6rQoHA5PrYRlC7kdbt7hSMSGcxRcUTgpCWUl01Afb67PX9TWD68vQbn+Ul8z7tEjDXJ42LMbsUWXxuz+0+N1/ffG7zxP+PZeL4r2aUQtJXomnzXual8r7ylJ5f3CpvA8zrT2it0qv6gpdiWV5QUoE1xWr9n1t1b4/vGrfx0nUnpU/7nIlEJ3duDx5UeHceU2+r6zJ9wfX5HtsZ3tU+v/aum7USRzZsvt0V/T9/8vrQviTmb/EGPEQyfmd1uIlxTlX+nf2gRellZ5PanHdO6dYmz9FXC6otHJBqZU1d62KeW1M8WV+0VVis/vJ0/yTu3hSkcLrxhDe/VuPp3YUt7qMyCqgI7HrZeRpt8tI4y6XEdHelZF5j++svO3oJG5f2aGLWXlzZTyySbqjUkKIrGAAlpnLPtqrqVJ7AqvLjuKVunzxLl88Dr+A4zICUBhoAbYNDo58Y4Mzi6qzq3hUyhcQ1SETbH/HsdWf3UjsxMrChl+A4hvaziG3QO3NbEf8QXdX/H1tZ/ZNe0f2QrYhnxV5Wf8esuojoRUaAKA4xF7F5o5QGHVxMGx+aR8xc2qIeh8xi7lJpn3EzLlx5n3ELMRmmvYRE4cGa4gajnFqPc65/aZHeFPBFn6Zk3Jzxp3LjCr3x61b71xmMbdzuXOZNWrxeecyC9z2cajMiFygMlQmlf0AdxWfxEJnZ9C7ilnMHpF2FTPXbpF3FbNAvpF2FRNPDlKE33OYwEsMkaEYJ1dxztbiivIX/GL11PzSF6uZk7/oL1azmP0lfbGaOftL/mI1C9Ff0heriYO/GKL2a5zar3P2l/SsfCr2wi9zUvYX/EY2o8r9sb/ob2SzmP1FfiObNfKX/I1sFthfcOMAI/KXysYBUtlf8EPZJ7HQ2V/0h7JZzP6SPpTNXPtL/lA2C+Qv6UPZxJO/FOH3HCbwF0PkL8bJX5yzv7gi/SWs9KDLRIG9JqrsOFGVvhOTCPeJCdiDopqcKMrJj6JMrhRF9qb4jATKMArsA1FlNyA1eZZ+MFMqVFAvaz9LLpbWp7VwMCfJ1w6sT+skwuPq69M6BftdZX1ay8n70gMdLbAPHnqgI9MkT0wL4yeqyiV/PLAwrpMIr9QL41qt+GZlYVzL7KF6YVyq2U+D/Hst3OitUWCHjSr7LKnJbUkXnjstBo2vbe03DBixW4nY7DVi8RV509BQoxK/G2+YvgVv3L0z8mKakcaPwhf8WyYWVsIxXkHc/UG2/R+tLWT3l9hOQkx3f4LtLKSxv71GGAK0V+7BWvcvjdxjddujh5ToISfaQqL9Bzy2mGhCPNElzMnF9r2s4I/+/b//H63X5Vs="
1128'),RLe=JSON.parse('
vendor: 12,510 bytes, line 1128
1128"eJyFnVtzG0mOhf+Kgk+7Ee5ZSdbN/aa+ebzuMdvupmjORD9QUlnmmmJpSMoSZ2L++9YNwMEBkn5xuL6TdUkkgLxUFvXv0Y/1/X212o6+H1397XEzv6sOTl6+Onx1cHry6uXJ6MXol3q1fTe/r5oCfyzuq813H+r7+aoVHpdLFA5UmN8vljuUGjitFnef27tIqTfb+XJxc7m6WzbFDpvjzS+L5+r2t8X25vPo++36sXox+vHzfD2/2Vbr36v21J+ft9XqtrrVGzWP9sMP9fPo+398d3R28eK746OLF0eHh4cvLl5d/PliNGkKr5eLVfVbvVlsF/Vq9P13jQzCH58XN19W1WYz+v604VfVetMVGx0eHv+luVBzk3f1dnHT1uTH+mG3bitx8F83/31w9Ori9EX773n376v231eH3b8vu3/PDy5v6+vq4PfdZlvdbw7erG7q9UO9nm+r278cHFwulwcf2qs1dqs21fprQ3szLjYH84Pten5b3c/XXw7qTwe/Llb1dvdQfffXqjnr8vXBfHX7P/X6YNGcvHm83ixuF/P1otr8pXncn5vb3C5Wd7/ffK66Buie4vdtc8p8fStqU/DH+cNfhzY5Ozt+MfooRyetJS43N62p14148fLF6KdKjxsjn78Y/b69/et09P3xRfffq+a/Fyd9e/2t2q4XN41B//Hv0fRjU6S93LvmQTYP88aO/3nR45cvX/a4er5Zzu+Vnxxe9Pyfj3VjqeulKqeHw4VWj/fXbUPdraJ2Wy+X87XyC7nLQ7W+ab1chPPz4Tbz+0baNNaJT9Y9QdfiUXuYr6vVsvpUkvxp+njzTXvFzRdTzk6Gs5aPG6Vqs5smOOfxFp93D5+rVSzeVGVRW02OpZKb5XzzOT7Nv6p1HWm9qiLcPiUlt5/XVVL2U/24Tujia1J2s3hOYPW1Stq2ym26WsADa5Vv6mW9SixR3S+8pC2wbNNAoNU/H+fLiO/WVRPIVs2TkxNxmmrTpRpRXh0fDW0P3nd83LNLRWdn5z36IaIf44k/Wamj4fo/21OenvXol3ji64j+Gh3sjaEmtXXof+OJb+ND/GqhJyf+LZ74LqJxfPrfYqn30Tgf4om/x+f6I15rEtGVtZq05zSW+hjRLN7x79Gq101n9qXaurShnnndaD5O+TyfU07OXklOuVksbhbrm0fLohocj23S3jQ9T5J5u/zmHka9eB6vdB1L3ST5N5ZK7vwpnngX0edopEVE/xdP/BJLWQhr5k+slSSdJO09RPTPWEfLDRpCm/hcST57jOhr9LinWCrJpLvYHP8ydHFo/uUd4VhbHTpTX556uJMj8MbtYnlb7Opv66fEzq53tp5g243TzDmOJOw/tQNDzLNW56zv+LSs14uEb6rCVW4e1003fmMGPJLad2GzWXQD1yT996MWZ01z8sdFo9zX23zk0Mrdhb8hk+kl7X1aJCwZPzUDuXQ4cDu/u6uSnrvnOBSjAUfbdtW6gtg/tbHQ/G49f4CkJqdeN9OHKqmlmfd6vtlj4f1qYfylDeD1bs7Q22a5XDxsFptEauq6/Vw/urFi6Padc1vLredfk3iY3zxuE9zn8k/L6jlqhci6n9+s6+TG1+squ/FtvZ3fuIgzadG0JBrAEhrGoT1sdduYNBujPq7u5uvH++X8MblNfdcMM78kl5tjPaBd7p3P6uDi0kY9x+eDz9fr20/NMM+NC22A4vtYG394rjcY2w1eHh3qDe6bPPe4dHeQzDRPRqO3bchvNkn3tSyMzevCc9bJILqJzmZC3Hh90mpvQoNax+z9zzp/7zXWMaVNapfzbWdjo/AEOoq+XXxdgDvbKf7JbLichIY9duGkSXKSdRYUg9pVdzMvChKoaryk3c8FiuFyQ8wpGuwc/3TWEnSCzQHCTWzG0GQImIL4KSZV9PxMxWHNI7kV5RwbFXo/sFrmdnmXPYCFR8lHfUq1cX52NZtIla7m0yqYMyZK8xBXTeCUEW3wSnc/H+6yrP9Vre6STPKhEFGvs0qac+wNkn2ee1nqRtaFJr3hutrsJ1pOxyR/fK7XSa3GdHczA0WBTvOIX0iyLZhtQjcwi/muzS1vbB67Mc46eV7vgmbFEqe0Kknw/nG5XTwsd8lz+QqCk/vmkI6vGW1tF/Pl7eJTMsHalVPDO38fc9jEWSw29rrZnl6nLN0U0t2qlAapQSGnzFM/fkMXwsW3ZsCAK3A6AVrXX6oVToM0Oa6ru8XGD3wtRAsjrzcxLs50LvLYRLWbjZixCyPIdcEyNceSxmXBpf7uLXZ68kpGrt06l18F01r+vLURiiXZYgJcZnnr5fHgvdtCkqmKvWNJuCwNH/Z4pTewzZZLoVG697jUIqWuh3Ou9iOlO5fjeLx3WMI9powLquU2We7ZuiRtOfGp3pMR40hPzrt/TGrin8hMlY4zLRbI9DZP9SOc81PM440DrxtHhkfTbiRMYaRtloWO5G06yNAZhm+4V7JuoK90spxYnpC9KYT+m1KI/0pPLWZojPZ5voSeQWK8nZnQMrc2xb6x88qPmszTvtF+hUioSt3znc+lWKGhVbNG9fnMeDbcVQfOZzjqYE2WyF541BRalgnn+XiDks2pZvPbxU2WZ38q9GfrvbV559vHHpdGuzbc3OvWe+91WfCFy2KOzmcDY38dy8NJv2kjkUJvX0oUX9Lxs47H3EDArrY3FPwj2PLu3jst67u2vVd1Moqvy7n0MUoSys2lCpF8t3fOUEFHbjYvuO8q7cbh9WHoISzll2L858f2VeSfL0Zvq/Xqt/li3b5A/sfosn1RPXrx3cnhny+Goz57ONQ/p0dDTkf42h/1WcUhrBgK4+bo9FSP5BEAgXM4rk3laB//DrnM45TBZI71i0MO9YGD6L07+qM5Ojo60kMxmmOu/qBM3KUm0QCTggEmqQEm0QCTogEmiQFk6OdYl1GQXLWVeKmH0+bwlbbprBUPVZxJnZDBwwOGfQHOSF+bw/MTOXpq73YsRzt/JDcDBPca6FAIA0ARRYFyCgXjHA+ivE4QRYbyNDxEhRhRRH6iPHMWFaPHqERuozz3HZXZgVSgMFJOsST8fUQYVco4tExI40vkSbw8R5ryfRZMYk6lggUL0adyyYIhDlXwwSgYI1IYhKUgjE1lHKAqJFEqWhqqIkK8CoKgFbRLEIWv8hjDQyhhDCuiGFZOMWycY1iU1wmiGFaexrCoEMOKyAOVZx6oYvRAlcgDleceqDJ7oAoUw8ophoW/jwhjWBnHsAlpDIs8iZfnGFa+z4JJDKtUsGAhhlUuWTDEsAo+hgVjDAuDGBaEMayMY1iFJIZFS2NYRIhhQRDDgnYJohhWHmMY2wkD2XOKZi9SSJPIce3k1yVOEe7FNMxdEYh1z8ldvZj5rC8RHdfr5L1ezF3Yl2E/9iqlAy9STnDi+wLH7OAFThGkpnnClZkUbskZw4vfbIIkd3h9XxMUsogvs7cJQj7xqk8qTsPM4gRIL45jjvECJxqvJtnGFUhTjisBecdxSD6O70qc0pAXYy4ygpkIKeUhlCgLOYlzEIivc0r5B6U0+0AByD1Iye1Rypwe9ejyqJLDo5S7O5ZgZ0eNsg1KlGtAep9SzDOIOcs4Lc0xUGKS3orzC0rfMHSSW1AtG7qQV7DEHkOHnIKazyigYD4BDNkEKOYSxJxJUEvyCMhpFgEdcghQyCBAdzml7IFSzB1D42DiUERZQzmlDOOcL0R5nSDKFMrTNCEq5AhF5LfKM6dVMXqsSuSuynNfVZkdVQVKB8opFwh/HxFmAWWcAkxI41/kSbw8R77yfRZMYl6lggUL0a5yyYIhzlXwQS4YI1wYhLcgjG1lHNgqJFEtWhrSIkI8C4JgFrRLEIWx8hjDYjgMYmMUxSZQGIPAcazS64xRJJuQhrLKEMvGyBVNyHzR1OiMppE3mpC7o+nsj6ZQSJtAMa3C+4RhVBvksAYljWvVJ8ktOLJN2GvOJLZNK5mzEN2mF80Z4tsUH+DKMcIVQogrwxg3yEFuShLlKqZhrirEuTIIdGW7jFGomxBjXWyFsW6MYt0EinUQONZVep0xinUT0lhXGWLdGDmnCZlzmhqd0zRyThNy5zSdndMUinUTKNZVeJ8wjHWDHOugpLGu+iS5Bce6CXvNmcS6aSVzFmLd9KI5Q6yb4mNdOca6Qoh1ZRjrBjnWTUliXcU01lWFWFfWxvopheguY9pMLGBD9Np6+CjbAkoIxblginLFHOOD8DoSim/BaXQPIsS2EHJFwZkjihbdUBRyQsG5C4rKDiicolkwxfKA3weCcSyIo1h5GsODOgmX5vgVvMdoSeyKkhutELeiFowWYla4j9iBYrwOCKJ1IBirgjhShSdxOkhplA4axOhAoDceyC4S6okFx3548BgMTkUUncopPI1zfIryOkEUocrTEBUVYlQR+ZvyzOFUjB6nErmc8tznVGanU4FCVTnFqvD3EWG0KuNwNSGNV5En8fIcscr3WTCJWZUKFixErcolC4a4VcEHrmCMXGEQuoIwdpVx8KqQRK9oafiKCPErCAJY0C5BFMLKQwz/0NDL5qivcnck5wKSeAPk2hc43AGotCogbTFg2ljAhnYCIs5vaNJZVo+sIRS5xwXumkapPC4g8j9QtCLAtCLAhor05KfB7id25DPmT2h3QK4iwKEiQKUigPRxgenjAhseF4jY3dCVO2rj5KUezTS4fsLgABSywLCb11lGEZlHOdlIeWYoFaO1VCKTKWe7qcDGU8FbUDGZUfhVRGBQQbNoLDat8sS+3XcA3r6C2L7C2b7CU/uKmNhXJLav8GBfEYJ9RSD7Cmb7DvwqIrTvgGbRWMG+woN9fxlM2+fsX9CqgMSggJwtgcMdgIoFAanxgKndgA0mAyLWMtSOwY60PnNNpoakBoB8fjWO+dWo5ldDlkWNWRY1JlnUiNTAUP/jUC++uzgUUju9jnWqCxWo0wrUsQI1dxCmJFWrZWAHKNZj+NUqqcj/Du51ZkdSEUDSOIBc3YBD3YBK3QBpDYBp4wAbGgeIVKpHb0f9MPylHelow5AfWhjHoYVRHVoYoqYAxQYdxqQpAOkIQ1F7dHyqR/LUgGRMjQgrAhwqglQ/5HBY6gdIawFMm8NYrWOkt+j0gJJB3FtyeqB+EPc2cXpQaHj3Fp0ekB/LtehRQ6A78qHaoSRUOx5CtaM+VDuUhmqnUKh2jLJQx1wWasnOWX4X/WMXG91NtjAuSKAQITWLFioSA4cKUAyRmocTFeLIIpmCjFSKN69WJYtxFJJKAclqEptU5FstlkUslaDgJZXjmGQOaS9DdJNAgU5qFvNUJIY/FaBMQGqeFKgQ5weSKVWQSlnDq5BASKBcQmqWVqhIzDBUgJINqXneoUKcgkjmbESyT0xe3JVcidMVqSEOfh3160r9EkJ3JMGGyK0lmdAtsRweyuFUB5+/jmRhRUVYUzHm5uyK3UqK3a17/6BPvfNj+V+pegPFb1iGK4VPWALPauu+7hgeFb/uGOrtv+7wxYIF8q87vJbZAj/boHqyVbLPNgZJJpfZHUTbxeJ8B+XJHZzzQROQQA3BatYcvgw2ilegabwwK54SmonkpLF8idSgIXxTGwXjFsN3KDAkVzSuIjKr8cygoqIphYERBc2SYsFwKiQmEy0zlmi7WE82kPJgmncjXA7tjnxv2iG/HNqhpFfteOhKO+r7zw5Rf9gxWg7tmFsO7YjvDN9J8F4miOqinCqkPKuVirFqKlH9lHMlVeCaquCrq5jqjOuGjKjOYd2QeVbnbN2QJapzXDdkgevM64aMuc4uyi+LAtffq2wFr6a28EUSi/gCbBevBut4OdjIy2QpL5K95B3IZYLIRsrJOsozu6gYLaIS2UI5W0EFrr8KvuaKfZ3HrrrjWNNxrOS4UL9xWrVxrNU4qdA4qcs4VGOc16DtpfqF2zF2UIiS177joVs61aOpu+pHV3LmStqKryHsKnoaE+24kGjHhUQ73pdox+VEOy4k2nEp0Y5LiXacJ9pxIdEqhzYJI+PAs9bBkTHZcxpv9zGeOIsncrNlI+VBcl8TQQN6Tq3oRWpKL2bt6UvERvU6tawXuXm9ym3sVd/QXqPWDp/7nSTW43bf97FfVuSq0CrTwnN8LFxnVrgOe0Xxg7dBh09FwDGQklugRE6BUuYSqEeHQJXcASV2BtTYFVDzjoAKuQF9i3US7MQuUP4SKxa4Si0/Te/+Mb3CLL0CN3vh66RBlQ8LoMUVUXMrp7ZWnjW0irGVVaImVs7tqwI3rgq+ZRVTs+KXNSfeDNyghe9qSL2K9pzG232MJ87iidx82Tcog+RX1bAJWaGWZJkalOWsXblMbF4uQa3MMjc269zmrPumZ5U8gGRwBFbIH4KcuQUVuiq22LT4RB+LV5sVr8aew3J0IP3UAFzHGDmNCeQuJmSOYmp0EdPIOUxgtzCFHcIU7wrGyQnctzgnZBFu+NKXOCxfJdadJvf8mJw7S87lRk2/Vhk0Wd2B1lREjamc2lJ51pQqxpZUiRpSObejCtyMKvhWVEyNiCt6J94M3ISFFT1Sr6I9p/F2H+OJs3giN162wjdIcZI+LkzSx4VJ+njfJH1cnqSPC5P0cWmSPi5N0sf5JH1cmqTjTt0TbwZuu8I+XVKvoj2n8XYf44mzeCK3XbantZd+G5qtX479DVsMkDQWINdOwMNe1d+wdQBpwwDTNgE2NAcQaQlDtvmpO/JvDDvkNz91KHlz2PHwurCj/h1hh+idX8foRV/H3Nu9jvhNQy2SzU/DZuIW6T6igb0f4ZbZ7shvme1QsmW242HLbEf9ltkOpVtmO4W2zHaMtsx2zG2Z/TDqN0mc2JHfs9ihZFtix8OOxI76zYgdoqcGhXYodkzeUwPy+w8/DJF9ZkcS1IhcPJswcdeZxPpOCvWdpPWdxPpyK4GS1HdCmzE/QCsZaRPQhR61uad/u/JhyDFndqQb2AzhrrSeykIOtL4iMonyzC4qRuOoRBZSnptJZbaVCuQgyslLcGHtjBD5S2FhjdRJvDa7j/J9tkocSaWCrQoupXLJVsG5VPAehmuHFx6Br+FCIfkRe122UDhI8vYFXE8RmVN5Zk4VozlVInMqz82pMptTBXI95eR6wsH1FJHrGc9cT9RJvDa7nvJ9tkpcT6WCrQqup3LJVsH1VPCuh5v1LzwC18PN+uRH7HrZZn2RwvZAeYh8e2CupgYubg/MC7Cx924PzAsFw+fbA3OVHTbsEDlLBXbefTtE0jKT0j2DO3v12zbPXNsX2Gvzkpv7QvttHl3ey+T4YevMRSZgEISdM6lfh4Ao7pvpC/wxGqYZL/VIpxmGdJphyE8zjOM0w6hOMwzZNMOYTTOMyTTDiE4zFLXRfHShRzr6NuRH38Zx9G1UR9+GePRtio2+jen3CIZ0aqHIvqnojuSpAYndAbmKAA8R0FHv9h0iN+6Y2h0uONgdiM8bLer/wrVMWXvST5f6rUotac84V103GQOSxILIfcFjPGy97ilsHIbC+mGPIdpW3TH7sEfZ8HfPZSbbosVIpvzdkV896RCtW7SsdgasYwvXhebEPcNApUaAyC9B0boCE78EJK1qSOe31ohrV611rP1aGhGR6xJMsL+NLtmtpe0+4xM70i7BkO8HjKPrG1XXN8Rp3hQLCmOW0I1JFlfy5Cy380exvXexXXGz1ZDRwmYr5pSP881WLMbMHDZbMeccHTdbseCzddhsRRzydpgGMM8yeDYNYIlyeWkawDJn9TANYE75Xfg8tjRneuWU7pVnSULFmPhVouyvnLsAFbgfUMF3BoqpRxBO3YJh1zcIhhStiHoJ5dRVGI9f7ZgYOw2TYs+hGnUfyrkPUYE7EhG4NxEOXYoiyqzKuXMRoY6twt2M8n1ulHQ4KlGvozzvelTm/kcF6oSUU08knLsj4etoDe6YlFPvZDzrokRN+imRoLNSRD2W8qzbUjH2XSpRB6Y878VU5q5MBe7PVPCdmuCn2BK7BBWcLevowg5b6Q3yHba5yl3fnh22eZGkG8x32OZq6BILO2xzmbrHfIdtqmJXmS9Y5GrabRYXLPIC3IXuXbDIC4XuNF+wyFXuWp06L3lY6Ga9yp2tV9Nc6YskHa8vwN2vV0Mn7OXQFXuZOmQvcrfsVO6cSfRdtP+CEro2L3B37VXutEnNum5fJOnAqUDSjfsS/pNcVu33HlI5dOxODt27U7GT9wL3VV4NHb7/ZLPU9qHz9+q33TobCPgCPBzwamFQ4AuFoYGXeYDgVR4mODUMFpy6LtkzDBy8ysMHUtNBhCuTDSVcARxQeIGHFV5NBxe+SDLE8AV4oOHVwnDDFwqDDi+HoYeXaQDixKdSS++Kwt4QiAOTyTAaObEjvx49wXEHoGRdekIjDKC+N5i4sQQwWkaewKgBiM/wsn6O1QjfTjCnCuXfTrAYqxa+nWDOlYzfTrDgqxu+nRh4+OYg5VT7/JuDVMzsUPzmINXJIoVvDlKVbZN+c5BqZCXafp9QslC2/T6RMusUtt8nKlkm3X6faGyVZPt9opBFcG86I7JF2JvOPLNCtjedJap/3JvOAtec96Yzpjone7oLClmgtKe7IGf22LOnu1CCrFPc013Q2VaFPd0FlSznNjMHRtaKm5mDkFko3cwcNLJKspk5KGyJsJk5cKq9/pL0Zcao9iZQ7U3Iam9qrL1pVHsTuPamcO1N8bU3TrUffqn3MhKquWCqt+Cs1qLFOotCNRbM9RXOtRXu6yrU1/RqqOXwS61XWEVkulcTmF9fAAFXFQDrWgIwWxwAaBsYAcoORkC6OGCs/Y3jIzvyW0w75IfsJoydTWgvSIeSxux4aMiO+kbsULrXoFOoaTvmd3J0KLYd7E/tDrXtgKkRgPm3rMbxdxKN6nq4IZs3G7N2gztJuwHSX0pUJBOkfurWk2Hz7fErQVSHKqmrLTgAyqtapVV16wl44WiCKjFBlZlAVwmGH99oWbs2cGZHunXDkP9ZLeP4G0JG9eexDNlvYhmjnxpsWe2NbL/oCMxHOgg4ozKqywSGeKUQrmErAsZ0URDK6eRfke3GtmI43TZvaufY5xrqOrEG5L3EOHqJUfUGQ1RDUMxPjNm6kjH5SdGOTCUx9603dYkZmAY3MGouEzAxA9bEDMwSM0DzboAS4IA0MRvrFrHtyO+Sn4b0Cjzskp9iegWU7pKfuvQKTF3MkD62Ilthno7CsvJ0FNaSpyG3Ag/LD1PMrYBojWw6iovC0xGvBE8xsxqSWHh5bqTPrP2a5XRIrHZGFWupaRVRXssq9IZTTqtQ2HeSU5dVgSWV16R6puGycCctfA8+denPWO2uWse6ZwunU859RmNz5uui01FcDJ2OwgrodBSWPaeY+awRMfFZY7eJ71RP08QHyP95AePhs6QpJj5A/PcETLE/JWDM/oqAMfkDAkraBb7zl3qk6doQpuWOzny+nCX5cpbky1kpX87yfDlL8uUsy5ezLF/OYr6cJflyNsIfMZ1hvgSUvD2ZUb4E6t+CzJJ8CQrtc5hhvgTkf2x0NuTLYZQzw4SJTFsAGOV+E3DXqlH/w8ozlzOBwYdQBvVLKEP+p5VnkDX78JqNwnh0NqRNuEyVVFYTp2OFylZpZf2IFEpHI1SJEarMCDYi7UepsyF79u8nZpg9AdEfAJkN2fPoSK9rg0dgvrogYAwb9XtvZkkCxWvQ67sZZlAsp1MORTx4nFEOtaZ/9IZ6pHnHLGRRFMIsY4ZpFFCopEk00Zi5PIoF/VxrpuvnkFrCy4EgcIbMXw8ENcmV4QVBEELWjK8IgkL5M7wkYAEyafjWjXmWU7Nv3Vii7Fr61o1lzrPhWzfmlHGFY9pVxulIBU7AKqSJSdWYnVSiVKSc85EKISmpQulZOeVo4RSthn22Fp5VO+RtFTh5m7DPUEkaNynJ5SoWrBiyugpFK4b8LgIkeUWU6ZVzuhcBc74yTvwqpNlf1dgFqET9gPJCZ6A69wgqcLegAvUNwkMHIULSS4j0mNg89BcqpJ2GqrHnUIm6D+WFPkR17khUCL2JKtSl0EtFybXZW8VM476l+F4xK5D0MNmbxUwL/Uz6bjETqbfJ3i4mGvQ5SKnbQSnreVCPnQ+q1P+glHdBWIJ7IdSoI0KJ+iKQsDtCzIkWNe6UUEvTLRaIGRdVyqsocWpFLWRXFKmbQslWkYJGWcMpvsMCqXCt0G2hxj2X075hzaT/cmrShaFetnboyFDbZ+3QnYEGPRpS6tRQ4n4NNOzaEHPvhlrawWGB2MehSt0cSoWeDotwZ4ca93eoUZcHUuj1QEs6PlAf8wYK3R9qaQ+IBWIniCr1gygVukIswr0haqFDRNH3iU3Ydn9fsu8F2qN241r/YlFSHhYQBKWG5IelBEEpt9sHijoO5eGRoTRQKCvbR6CgICiluwWgmDIo5/629VDO/W3roRz8dd2hFPx13aEM/gnPoRD+Cc++1DV6br+4ez245LEdiScCSt6yXZPfAfVv2a4TPwOF3r9dO7cCNniTka9arZtRvxYKRxpNhnBc1FNxsV2C6ALK41Xw2w9GdJXs2w+R5M8Ru+sY5CuZEq/Vd5L9Hy24vV7K3y3os5hTvdRW0H7uqTvyOwM6lO0MUM/Toyd39OxK7vyRr1puZenG8fkU0UMqT5/UpRqPniJ6jifuEkRVKHuLDDmwHoqoHsrTeogK9cAPkwg9xxN3CaJ6lP3VDY9cZRznGjkxr1bI3gl/KvDnwnV2Jc71dWKsNHQKdzmlCqOUVpc7n0CfUvqcXmGXU6okSkkVbdzq6oiYK4laXksogdUE/JTj5/wiuwLmqqIW6ypd912CqI7K0/q5YYFHTxE9xxN3CaK6KI/10LHFXcaoJiakVfFjF2JPCXtOzt1ljOpjQqyQDoLuMkYVMiGtkB9kEXtK2HNy7i5jVCETQoU+jWS2r0d+Z0eHbG6vKNns0fGw2aOjfrNHh2hLR8fohw875n74sCN+l0eLmmhaVptNN5VU+Ekt2B4tdITWHfmR5CcadfQTy7vBNnagk1IlYhkj/nW8Ynwbr1BfxiuxN+6KbLqrSN63KxCT9ESmHvNIfA0U+2ooTuqiWqiQKr5Wiqlqyql+yl0llfqaxs9JU+5rXfiYNBUTC5Q/JU11b43Sh6SpSpbJPyNNNWcl/VNgeuDsEf78VwsXLi0t4tB0URgOLdJxwyL2Q4skny+SlNgeWbR3Rz5DdcjWywzFDNXxkKF66lbFFPvE1SFKXB2jxNWy2h/FZ64LD1inD1jHJwnrS6Ykz1j7/XId8pnUdydJR5J3IV/il8bD9QpfGucqteC+L43zItFse740zkuQjUtfGucy+0D86jcX9poldZLyV795gb3VKnhR6avfXCbfKnz1m6q7kiOx85W/Be0LLIdRU3+XpVul61H8OnUQ5GfYDUleOtEje85kzJiPFleYNocrxbn6qjBXX5Xn6iucYg8XjpPnVWHyvCpPnlfeRHj5QqOxwLf6RqOtcHVwuJWgXSzFl1ceLlyPcB2udiPqWi5+qEc+CGu+ZE+xOYfrxgWa2rWwP5Fvk7ZwL4XudbhhYbWhjqsKyXX4/uVVhV6nvnx4hHQNoObZfrgC37w02+9VHDAM940T19rNUv2JfLt0ltpL9B0h3JIUuDMpu+LV+DlYjo/jBkbDgyQT3dpPaulcvm0+qe01SX9wP8yIxx7t4ol8s+yvyg4SxvtwL3wbcOzRLp7I90pTQCc9uAs8xHMf8tOG1xCFVWove03OWFaf5Fvdi1SQ58hV/0kCq8l2di4CdcoL+E3urNKudpZpMz/L7qMGFv1O+E7NjbXHUnvM9C0b7TfQHuvsM80+u5SN8m2LwP+HL6HQ5Ubtm7LTw4ibB5xvc22pTu6xDwuv0dJVUsIP/pzmYyTWYZ0/p/6kS6bJRCHV3MMmJboJ7mnEfruB1/SGmSZvu3LVP05S4mF+U+Wm6ax9ETG1RyzxVWveWFf3pZwoudPTuiNd2zOU3aIVdBvHsV5M39n2lZOG49u6d2QXHtEDlN6ReZUfJez5G56Hf79yeB73ruvCI3qe0rsur/LzhB9AlOdJf7JLnsqJ+Gxe4Cf0av6c+c9eHWc3pmcefLRL0ER81CjWFTWP/Vqa13D9ySu6fuaxrZx5TpuDlMtqmae6TubwH2o3Jbo6QTixtYj2t6eEdH96ypH2t+BfeSI2JQwG6pUmzLsFz37E1B3porYhaQpAfseEcdwxYVR3TBiyfRHGbF+EMdkXYUTMbUgi4EyJze66Iz/h65C2BaD4Z6c6HqaFPcWFIMP+r1F1iP4aVcfor1G1rNZQ6o78y4UOJdtUOh62qXTUb1PpULpNpVNom0rHpEsGpLZXpHHeG/9phK+CntChAPlXQU/BoYCHkfUTOhQgWlx6cg4FzL0KekKHMuQd6mmEK29Po7Dc9hQaB3hagTpWIF9CexrFdbOnUVgsexqFFbKn2DjPLjKeY2Q8x8h4LkTGcxoZz3lkPMfIeE4i4zmJjF1ojl2s2I5HDIS5eLLlNip40p//+X+DG1I7"
1128'),zLe="eJx9WFlv2zgQ/iuGnnYBt5DkS85bmk13g27SoEkPbNEHWqIlIhSpklSuov99R7JIkSLtFyGZjxzN8c0h/4oueF1jpqKz6Mt1K1GJZ4s4S+PZYrvdbqJ59J4zdYNqDAfuXuodp52spdSToZrQl6n0KyZl1Sm/xgVpa5BcKURJfs5KCgdj+F++J8+4uCUqr6IzJVo8jy4qJFCusLjD3d27BucE0cGYd+/4c3T2/U2SxfM36XYxT+JtDI8k/jGPPrMCC0oYvuWSKMJZdPYmiWMLuK9I/sCwlNHZCuRfsJD9sSiOk7dxnMFbbrgieefGBW9eROfA7I/8z1myzVbz7rnpn9vuCW/unpvZecF3eHb3IhWu5eyK5Vw0XCCFi7ezc0pnvRo5E1hi8QhCeM0lHCoIK+/yCvdR67zrfd2THPA7VfzzNTrbpv2fX+BPeH8fm2usBMnBg++/oq/forO08+QGNMgGgeG/5wfxYrE4iPFzTlFt5JtkkLeMPIL/EFoNreJBE2vrXReako3YcqvVEXCTKWJdzPS7Gizyjk/mZZvsAKC66d7FCgMtF4NC2eaVqpDyLW+QwIzi/TGoD6tvPQL7BJEPNVKVb39DW2mkJnY5FALyD9eEhU6DL4SPrqTaS0mRrHyDXrHgvpQz7AvVU+CkqgQOnN3zVgSkkFVfKslzQIgfMfPFOBxWRiyDjcs5p5wFIoFr4kImprQrP59WP1ubiVpcCgxlNLq5XC4PwM8Wy77EvSs5ZyU0EpuFaXqAzmlTjVlerzcH8TuskH/4oiLj0WQQ/oWpdXadJAfxZSOJ7exmPfD01lYSD8K/kU0288JLS7Mh+hW337dINCPA5MRX8QE1jXU8Wx/E/6J6V4zyLBtCdd36Km4Cso+QTOG4N6T5dvRusxxsu6/scK5Wgw2fKovZ20HxHSnrQDjv0WjEejvw7/MkxmMD6ZQkvnEfa1xayperg/ibZfN2kN1K4lvxHw4lZAfD6QErpy1lOt2QF4H3XATa8HDP7VnrVWY6SoNZQfKWokBRt90Ak7mt2GACwTVE8bNPE+Tw3VTIzkmQqRuLqsvtUGaFw3cTcjzJxSod3tjYSnQgS4fvpgyc8KaDZuLwXR8FtYlv8YPD9rHBuGxfbQYG1q1vL2v9+3zC9nF0EF+BqoLBFBbbjRfSYbsJprLYboxtpx1Fj23esXoMhqlx7rB9uR2OPxP/aCMDmX61/Vhm8cha7HA91bzbWUR1z0/m8tLUKSyJ1qWNHqeXrTUf16lb76Or6XIzTmWFA4mHyeLOkUS3+H23UpJQPAnbE0bUS2CSUi6IdWM13Mhpu/OlBUE1t/YbA1QYCeWLYVsrRh+SeDm0RCQEf9pxa3Xpds4RcpJhqNVDbXPkzqTpOJcK/mT1VO17gUtn57C3J3cpMlUucW77Px3hRwZ83VJFGvriJ6YRHJboLmnWPUNXWAC7FbQg+/0IrjUL4RMFBxhYkEdSBLxiXB0xD8TkEZorywPXoP0I/jxhXGzWKEoJUFgeiTvs3srq2eO9Hq2Aeq92S9eDIgeYwIeawKoVY+KyVOumuBmpY0r+CgrgQVn7ohl9n6aIoc4TJjB0lEDWvmaGa05ETrGfPRd3lm1jI64b9SKtBJlbhAFTgEhuqWoUvlhCFdwRBW613cNWqnGYyDAdj+OQfdnugpBWHUa14jAKbbN2tlDrfR6mXUT9p7F3peyGvHNBb0UCl933GHgmyN6Hc/0R6+KZxiG7Ba6ReJjg6RiAos0DpTRsHWNz1s284Mr58DI+UF52N8B7vyIGzP4+nGJcWLXiNMtiR0/0S0BPtExAj3ZNwE42zh11e6duTZS/YlZaK6DebfrkOsb4aURMnsqiA+viHpPowDrwsoX1y6moRTZ20cMXtmpOgFYf8sGd8kFrRw4ptuCQagu2lJvwmpXEUu2DNSlOoEf12vY4aXOZkG6WY8OC4hzrwHRcjVhWepjd4KdYKK7jrx5H89WjRxPWoycydlS3jZ/I2VS/G9yp9gB6PG1T1aY4YAp3LfPHPPqABbtFRHS/jf34/T82FAfb",_Le="eJxtmNtu20YQhl+F4FULyMGeD7pz3AY1ChtG7NpFA18w1NomIlECSRcxgrx7SVk7+wOdG8H5OJydf2Z2d5gf9cV+t0v9VK/r+6vXsXlOlbHe28paq229qj/t++m62aXZ4J/m8PRb1z9/baZxefK63Z6eXN5dVMvTCh83u277xr/6kLrnl2XNq7TpXnczuZyabdee98/b2VzM/x4/dd/T5qab2pd6PQ2vaVVfvDRD005puE3Lu7eH1HbN9hTjx4/77/X6y5lcnUmjVzHIVVDicVX/1W/SsO36dLMfu6nb9/X6TAoBD+5euvZbn8axXtuZ36dhPJrVQqgPQoh5hev91LWLkIv94W1Ygq9+aX+tZAx2tfz64284/sblN/rqfLP/mqrbt3FKu7G67Nv9cNgPzZQ2H6rz7bb6vLgZq89pTMO/M/xfEqturJpqSM/d7GJIm2oamk3aNcO3av80O5xh3yyKmm1193ZIT02bqovTKjP+MAf++7zsZvZ3276kYyWWXB0z99S18/PbafPHQ71W4fjn/fxnFO+ZvkrT0LVzTr78qB/+nk38bHM9exgP8zr1z9U7jt6840YW5uSJKcZOCaBBnKgm5mU8MVNYyMwWFvO7Ukagkmgg6sDWQ5yFFqjzUrLEaQ3BEmiwNsMSaZS0vgWfOkPHWQowNeTUc0kumnxZvsgPxlGai6VTGUqAVCTQ6QkWnc77DKEiLktSUBJKqHIQZ86d8gCpHYoiEzMsb1ubYy8vW50DChB5ZhGqrijD0EqUIeiaEHIfCg5Kpuu0ApiToaGPSY0uaQsyr65L2oKi1yFt1PLaQ3lzfXTgXodGoJYzglndSLDMPg1sTPJpQJHJigw0QrGERqD9YhyTOgONQDUyuF1zaxuokc/BW2ztXCMrGZ9WMW1oQZHIXWNBkSCfRZEL5BMUiZw6CzVSFCfUSGZFNjIldoKDkonTKQiJIGzWmFd3BizJJ9SINoLDriOfUCOZS+zg+KGD1qGiLNMLxtJD1/ns00ON6EzyUCM6vbxhoBKaqbG3DFQCNiL1iHccBPV0DHhQH/JW8EW90dkyFKGywCJU0WkVSvSGeiSUODWFFD0HYdPQVoiRgfPMA+/nnRgiAyNYSjpWNQcNSMrtFCUH4ZIRpSCWocFCSuhCEY6hoUClc0WC52BJlCYYLQdhN+hygRRRlo5BKRRLS6oihSqh+ZzzRGG1Mo4Iz1LoP0qsxDGFzk0JE42ji0jCPejomJKCuwil4m5CiRMEUMVSzVLDUstSx1Juc0oVWMpqY295qVltmtWmWW2a1aZZbZrVplltmtWmWW2G1WZYbYbVZlhthtVmWG2G1WZYbYbVZlhtltVmWW2W1WZZbZbVZlltltVmWW2W1QYjQCh7E2aAQHeGhCFgPoNoy8KNb2wxBhmGKBxoUZXlLGsLI6AsftEDHV0wIURVbANLcTKlGGBIKPOAxCmhePCKUwFzAmpDFRQvjA9R06Hq8TONvshgKDCuRAZTXigUxjxNFfKRo3CLhnIJBMFRvMZpqpNBMlQJzGT5WFQMVQI/AikPMIhEU1aDjqJvQwmjSHB05cC9jbYwc5UtAHNLhDw41ha+lEqF4JaH3gmB61SYcqInxTDmQK8v08vjqv4zDf1N0w3Lf4A8/vwPpfK11w==";var ILe={Courier:ALe,"Courier-Bold":jLe,"Courier-Oblique":NLe,"Courier-BoldOblique":kLe,Helvetica:DLe,"Helvetica-Bold":SLe,"Helvetica-Oblique":TLe,"Helvetica-BoldOblique":CLe,"Times-Roman":RLe,"Times-Bold":ELe,"Times-Italic":OLe,"Times-BoldItalic":MLe,Symbol:zLe,ZapfDingbats:_Le},Mx;(function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.Helvetica
1128Bold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"})(Mx||(Mx={}));var LU={},LLe=(function(){function e(){var t=this;this.getWidthOfGlyph=function(a){return t.CharWidths[a]},this.getXAxisKerningForPair=function(a,n){return(t.KernPairXAmounts[a]||{})[n]}}return e.load=function(t){var a=LU[t];if(a)return a;var n=jae(ILe[t]),r=Object.assign(new e,JSON.parse(n));return r.CharWidths=r.CharMetrics.reduce(function(i,o){return i[o.N]=o.WX,i},{}),r.KernPairXAmounts=r.KernPairs.reduce(function(i,o){var l=o[0],c=o[1],d=o[2];return i[l]||(i[l]={}),i[l][c]=d,i},{}),LU[t]=r,r},e})();const FLe=
vendor: 6,083 bytes, line 1128
1128"eJztWsuy48iN/Ret74KZfHtX47meqfGjPHaXx4/wgpJ4JbooUU1JVXXb0f9u4JwESF13R7TD29koIpFi8gCJBHDA/Pvm+nraTuPmZ3/f5HHzs7/k8WlzvXS7fvPXp02eqyR/2vRfd2N3gqhUUfm0Od9P236+DoczxLWK66fNpZ93/fkGWaOy5mnTnUR67c57lRaZSItM/tnN/XnsX/DfIqg0JOk8HI4UK4BCAFzG+xWCQgXF02Y3nU4dJJVKKrx5mPgKBVMImOvYXY+QKJRCoHzXzxMErQrap810hqaloioF1e0L5kvFUwqe23Hu+Q+1TinWeZnuMwSKrRRsL8Nn/kOxlYLtOnzFWE1Viqmu/eceVioVaylYe1OwVKilQD0PCYgiLRtVcJz4kEItW13mNLi0UsCVAB77KyxTKeJKEPff3rsREkVcCeLD3He3HqArBV0J6G/v/fU2cK1WH23l0e3c7T71N9uUVv/c5i73bWlVs1Y0u5/3srO7aQb2EPUB+eUTva0TYgG5mGbbzZSUkJTpn75ygF4PThhq1SMGMds4HYZdN54n/rdWc8rv02bfH9I2hbqGsKbPnIYzHSc0qmTIxI6nuwpiAIQmU8F4Gy7jK8RwntAI1v3wedj39FmFECp508s4zUOyGmwpKrwbL8eOIlVU//Yf/S1J9C212Pa/uuSwbVDYlWzxf/aj/UtfWgm258t1GG1X1BVawfdnX0xdoRbjPCdBVGs1svo3R/tPVD1r2YL3k0kUfC04f9ldLkmk0NVwv+pO232SKXa126/vHAO5wPxNGivsRsZ/HDhWzLVg/iBuOSfMUTGrTX+b/qSIG0H8u+NEl1J4jcD7/XBI9kDcUYN/0/FNCDuNAP64skYOeLrykUsjElWC9+cmAEAB9NtrEijCplaE/YHvKuC5Iup8zxBAWtFrayakC2QC8uCbhggSskx9zXYNQSRkeuZWQBFKQowabNIfS/qeqOgSOFTINcC4DKcnE70H2zqElJAJ3k++dwgrIRPA47J5iCwr724RWELINFBTAAWiCL7SOogrIQj6abWBOH8hCPoL/4a4EoJgn9MWIq40lcY52cJAGbCHMgkpA3g9t7e0sRWgB1HnvjJYRez6yrSTlYJvRZmdCQhe80Pa24roNYL75uLo10WyKYHVeFLjYnImilM0qPDOJOKWNGlFCJsIrw/qsNv7OPY3SnNYSQ9DP46DLHylvGCcEFU08Nz6JIVx9Chd+93ENNhEWroSuC8SAi0WNznNpqH9+c5k1RQ0nIbi9/LnTzdmoKZAaAwaib/0g0Ti29wxG8gUgLey/O8eHmmqt4eiKTNYo416LPrLkcIWa2u06eZ5+mLBXCaoTp4m7pckBm41P8Qe0mUG6DUCYWY/fTmnCQbwkCa2043vrhA2gqakncwM3aGfe9GAj1Vw9qiuzPW2o4Or4PcxhmUu4atwAGKMy8wCscJhiDFfJh1lhY2K6mo250DrTJXOC82EUgVIkTMmOd0moqC5Dd24H15e0hRKJS0Cvg7Xm9RKgz9ErdWrTpfb6zV5Wx2ytwlDZLplUQ/8Ye72Qyq5RI5kqY4t6fe0iHOItdCYbo8zKOi0vLjvjrdjZ2IYRAPUZZ72910SI7vEiL9LaHSvrZFkipKOf02y8gc9vEbmKHQjRP95uH6ShZI9c9pao41otTPLICMETXSC5jLNupbP8bxo2Dy/DOfh9prk8BKNk935MPIo1jiKUSNQqiVSVSozBWYan5nmNMGz1+r6AleO8KJJwXdk2H8XwgVVP31AticBhdvqIZPwNPcvqWhqah74iIB6GsYuvbdGeYFS93yY775hPNh6giUlzNNXr/eaJmNYKrnLKznOt4ZsEQ6f5ZCfWVvJFK2Xs5BcP8ND23r5uJqDyaPmM90Oscl9a87aIC3HLCxz+uOzNFgOhA+P4XRq8hPTjP3Xhzn4oiYIm1svybSpOX03zDuJX4kqyAx3rrKZdZ3XNMggGh9lsUt/Fm+7m+1bGCxqOttPN/fOFiExKh+xnb1d0gz8qiiXmS0r5YxLaaULN/TaOsu4WEgTS3Fd1TCvlsvj9F1/PvQpPzHAZqiN9yZEntcyaDfet0mGOKLl5LGX6EMhU5ZGkf3QnVIWqvJA5FoG7KbLK1BcBcyLTfNYZGr7g8ar+WEWm63VgmSefX/q5k+r6Rplrdo/Heb+q00gKzcWUiVy3pY5RkGL7kept7/zSRS8Uc+Kw+nOV5ukqeu1KqtZ2Ds2a6yrWZghX/NS7q3OwQZ5WM0tgGCBPK7muPM6B2fP8wditayKMKG5YzW7rIvzkJcPs8vKOBGaRJxo+boMocrFfe407G0SJlJS7pO+KOrwqKkAcw4lp28Xi28vU7AM2Lfz9gUITKM8fJlcnoRtlJIvkwsSRtD2kXkuC8M2ytbX08vSME4ZHqd9cTQgojL5hXr60uhDxDJfTy7WQ3kXy2I9q+t+L7V+d3nZD+fDtrtdf7iZ8gPUNhVNSLOdFKmrqgg5UGR5ktUWkERW4ETnYSnQpK5PsqU2k3I5yZbCTGhJki0lmbJ2ypxOd8rYKXM23Slnp6yxclZkVZK1li1EVlMWmY0yyJokC5bIRdYm6sDCW/9X54knZEYnurpKJCEzNtHVdYqTmdGJrm6SiJRMsdWJmTS1MYWuSZwAHg3D5dSJO6tnpqPiNXIHapSQHkL9WNCyDwEZymTtQzyGcfx/rQVukWUP4RgGS29oG5RieEMSVKm67GISoHZUs0g6TKImlZMdbde2cDMFUCZBSBWevKlNIlRrBNQkEVpt0CXUSYTWGvzG1q5TldeFIklgFfiMvQ6tNXgMtk5IM+qSAjbJSpOh4wdUtYnQYgOqxkRosgFVayK02SJsYCJ02tRw9HkVodUG00UTodcG4+UmQrdN0dPhVYR2m8KPBhX1t/bkumgaofzWplwXDT2Oo9K2Lhp6dogUvT+HBpGC98fQxlDs/lSVCr/OVGZ7CGY3lXEIKyD3fylyrQS63P4VjTl0uRkGJxB+l5th2CBS5LkZhg0iRZ6bYdgPUqC5aYMEh8CSmzrsCinU3PRBKkNYyQ0qTgSiSmFQcSAQVAqDimSFmFIYVPaKFGphUNktUqiFQUVaUvLVFbaHSEZK47vC0LNfpOgLQ8+OkaIvDD2SjZbOXWHokWBQgJeGHkmlwaEz9EglKHFKQ48og8qmNPQgJEp0u9LQg4mAjJeGnm0rRV8aeratFH1p6EE8tBnQlYYebSutwLrS0KNrhRZYZegRbpV3dpWhR8tKSU9XGXr2rJTsdJXBTz0ruLjhT00rVaAyBVLTSjWoTIPUs1IVKlOBbSulAV1lOrBzpZS2q0wJNq8yhH7TovIOb1cb5tSXUny14Ut9KUYQUyS1phRgbaDZmEIiFrKThCnpIMMYGrZh0JBo7M01e+H65sZeUpPp6ZsbX4+dcH1xa1YgxYsIAWYF9rXBI1p/L9tiiL6ZmYGtrYpZybaz8caUCA1iA4iIPcEN0ZAQIuq70g2ZPCOQ7R+yE5riIjTojfMRESbsge1zHMhgsSlk5PR4u0WnQDraMOdEE7JTj7dbhAqpw4K3W4wKGZv3eHtempBkA+nHQldgrwXHM1jwCgj0pB7BwlcIbI7BnhbAAmsvHNJgISyw+MIxDRbEAqsvHNRgYSyw/GqZSE0j1l84rMFCWWABhuMaLJgFVmA4sMHCWUi8CRpZQAvkSzizwUJaIE/CoQ0W1ALpEU5tsLDGDzqg6yI0jaKzfxGaRuRBOLjBglsgAcpYHZhG5D04usECXCDdQd0WLMQFshwc6GBBLqQOETSyMBdIa3DMgwW6QD6Dcx4s1AXyDpSRYmoTsrpmzWKQyDJw0GWjTci2GCBZIAtkFDj+wSJZIJPA+Q8WygIJRCQkw8meFCJAsGAWCu8BiNAsjzTAXkKwEBfYg2IQqM3y7EFFauT/ZAcUGlk0DAU7nyzETPeSHBIa1aZmSe4IjWpTsyRphEa1qVmSTFMjU7Mki4ZGreEsSZ+hUWO6s7+bc4/8cdJlaNSYQdjTRbEbM3+c5BgaWTgOSA7stkSLiqFiCwbgLUiHinQX4C1Kh4pEl+BN94oEl+DNdBWJLcH74yS0AG8RPeCjRmRZ3JiR0ZWKrItbW7MmZWVlbG+vSVWxHY2tyW+lJTUy0yEVgdTKmmYlNplKagSDCMFlTIaH8GmVMWkpIj6sMsQv+Ae3UmUIX3AP6q0yRC94x/IOBC84B4+VyhC7yHTIELQRhGgM32hchmAM14hMRCpEMIZrNC6DJvAMWkxl0ASOQYOpDJqACrX+EmgCX9EQ8f3T5stwlggXf/otCfss8O19uvX7LfqmP3Z1AiRPP2JPY2pA/vTbFIhHqhFedB2s0/2v3bIAG1z14yH8CVcvwJFFoePr5cgbDv9/G+Pfvo2BUIP6ix0r8EO9ZYARuKFeMMAIvFA/gWMESqifiTACG9QrBTpCBFGK9wuMQKz0UgJGoH+C7L8xAvPTL40Y4au7gPkfjEAB9SYBRmB/eokAIxA/vT6AETifXh7ACHRPrwroqAFX0i/5GIEmCZb/xQj8Tu8LYARqp5cFMAKr03sCGIHQ6SUBjMDlBMsfMLIP//+HERicXlzACORNsPxJR2iW4I4FRj92EQa8TTuGInY3/vHrMSBwuoPX3TDot4c7osKPXJtBm0XLvsPc0XfRZkHNhxE4nLZsMQJ902/jDOQIkriXkAL7JhEyNh1ZemtZ98IxCZvebeCYZE3AHjkmUdMPGRyTpAm6v3FMgqY3EjgmOdPPZhyTmOlFBIwZxHEPgWNeJ9BbBxyz+af9c45J2PRMcEyyph8EOSZP03PMMTmaXjLgmN0+vWLAMfBpFfeZY7838AVjNilxLYJj4NOy7ZVjUju9zcHxv3/FiVcKULCpf9yGcb9qEOPL/6pp7GyO2cU+S7N2AaOzDMHKBXxO4/goyYBiZ3S7+yxxf0fNKud0r31a0gnddp4+9WfTpHJOt/r4yfIlfVDq5z7dgWABg8amf4SBnLxZQ9A0718keFqMZSGDNurhPoxjf5r84LGeQY/77d0vb3QvyYc1DTrd9nWo56movd196uyqy792faz2prfkJHyAHPiBONTe+kZ2ephrlhb4Ll0HSRfRNOLxqk5onB1LWu4kCPAGRmicIDOZ6j67Ro0T5V2/F6t1lDpTlkz6iMTpspj/JI53H83+jZNmt/+ybY2TZ1lRctmcUldonEDLxLEbGV5aZ9AwRnqAJmydSFu6c2dunU6/8yDIL5Og0+8W67VOp98xsL6kr1H8FglO/W45Uq1z6ncPXto6rX432zlpnVW/e6bAGfXPV0aOmXPqZwcbM+fUzw42Zs6pnx/BxsyJ9fMaV8ycW79fre3c+v1qbefW79+u7QT7/ePazrGf+UE7Zk6wf+Mmi8EJ9ocFQnCC/WGBEJxgf3gDgddNNIp/WC3Mb12i24cHXIEfkcs3FzGDM/UPnnJjcKb+cQXOmfrHFThn6h/fgItO1z8+4IjO2P+0LBOdsX9znHgBKUYn7Id+Pkklvh3TCgtpX9DFhbSvll1I+1t0C3NfTBcX5v4IeSHv5sYxX7g7H86dt+/Wbpw7c+8XsLkz934Bmztz79+AzZ2+9w+4cmfww2ptZ/DDam1n8MPbtZ3GDw9rs9ui3KZPblw4tz8vJiuc208LhMK5/bRAKJzbT28gFE7wp9XCTvCnR1zO8ZeLw7Fwjj8tTlw4x78v0Ern+PcFWukc//4GWulE//6AonSu/7paxrn+zZ2YnRclRK/rBXJsCAjxh2cKEAWVJ02ku/wOoFv2+12XkmnODwHgW4uQGVbZ0uM7mAJ1b/68/JlpUMnWdy5MF6/Vd5eL19YYSPd6FqPwBkNQo/h2NQxdQQ3bn/dpCxrGrqCW7U8rKZl/mfi0Xytk3Am66ZhYbg4y+KAVslDwbXdNL2d5qU5hnYBlTZaa6hs2t1qWdaeeTptcLco+hl5R7w4H5uOGcQbtEkpT18GusOI2xT9dYcVJf7zCSjmbD+Iud2s1NPRb9E+0UICmizb8ZK/+5JOLOulSqwaw5VJr2vB8dSFn89fvv/8H0oq1dA==";
vendor: 17,240 bytes, lines 1128-1129
1128var BLe=jae(FLe),M5=JSON.parse(BLe),O5=(function(){function e(t,a){var n=this;this.canEncodeUnicodeCodePoint=function(r){return r in n.unicodeMappings},this.encodeUnicodeCodePoint=function(r){var i=n.unicodeMappings[r];if(!i){var o=String.fromCharCode(r),l="0x"+PLe(r.toString(16),4,"0"),c=n.name+' cannot encode "'+o+'" ('+l+")";throw new Error(c)}return{code:i[0],name:i[1]}},this.name=t,this.supportedCodePoints=Object.keys(a).map(Number).sort(function(r,i){return r-i}),this.unicodeMappings=a}return e})(),vv={Symbol:new O5("Symbol",M5.symbol),ZapfDingbats:new O5("ZapfDingbats",M5.zapfdingbats),WinAnsi:new O5("WinAnsi",M5.win1252)},Aw=function(e){return Object.keys(e).map(function(t){return e[t]})},GLe=Aw(Mx),FU=function(e){return GLe.includes(e)},yv=function(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},ns=function(e){return"`"+e+"`"},HLe=function(e){return"'"+e+"'"},BU=function(e){var t=typeof e;return t==="string"?HLe(e):t==="undefined"?ns(e):e},qLe=function(e,t,a){for(var n=new Array(a.length),r=0,i=a.length;r<i;r++){var o=a[r];n[r]=BU(o)}var l=n.join(" or ");return ns(t)+" must be one of "+l+", but was actually "+BU(e)},Tc=function(e,t,a){Array.isArray(a)||(a=Aw(a));for(var n=0,r=a.length;n<r;n++)if(e===a[n])return;throw new TypeError(qLe(e,t,a))},ai=function(e,t,a){Array.isArray(a)||(a=Aw(a)),Tc(e,t,a.concat(void 0))},ULe=function(e,t,a){Array.isArray(a)||(a=Aw(a));for(var n=0,r=e.length;n<r;n++)Tc(e[n],t,a)},VLe=function(e){return e===null?"null":e===void 0?"undefined":typeof e=="string"?"string":isNaN(e)?"NaN":typeof e=="number"?"number":typeof e=="boolean"?"boolean":typeof e=="symbol"?"symbol":typeof e=="bigint"?"bigint":e.constructor&&e.constructor.name?e.constructor.name:e.name?e.name:e.constructor?String(e.constructor):String(e)},QLe=function(e,t){return t==="null"?e===null:t==="undefined"?e===void 0:t==="string"?typeof e=="string":t==="number"?typeof e=="number"&&!isNaN(e):t==="boolean"?typeof e=="boolean":t==="symbol"?typeof e=="symbol":t==="bigint"?typeof e=="bigint":t===Date?e instanceof Date:t===Array?e instanceof Array:t===Uint8Array?e instanceof Uint8Array:t===ArrayBuffer?e instanceof ArrayBuffer:t===Function?e instanceof Function:e instanceof t[0]},WLe=function(e,t,a){for(var n=new Array(a.length),r=0,i=a.length;r<i;r++){var o=a[r];o==="null"&&(n[r]=ns("null")),o==="undefined"&&(n[r]=ns("undefined")),o==="string"?n[r]=ns("string"):o==="number"?n[r]=ns("number"):o==="boolean"?n[r]=ns("boolean"):o==="symbol"?n[r]=ns("symbol"):o==="bigint"?n[r]=ns("bigint"):o===Array?n[r]=ns("Array"):o===Uint8Array?n[r]=ns("Uint8Array"):o===ArrayBuffer?n[r]=ns("ArrayBuffer"):n[r]=ns(o[1])}var l=n.join(" or ");return ns(t)+" must be of type "+l+", but was actually of type "+ns(VLe(e))},Re=function(e,t,a){for(var n=0,r=a.length;n<r;n++)if(QLe(e,a[n]))return;throw new TypeError(WLe(e,t,a))},pt=function(e,t,a){Re(e,t,a.concat("undefined"))},kae=function(e,t,a){for(var n=0,r=e.length;n<r;n++)Re(e[n],t,a)},Er=function(e,t,a,n){if(Re(e,t,["number"]),Re(a,"min",["number"]),Re(n,"max",["number"]),n=Math.max(a,n),e<a||e>n)throw new Error(ns(t)+" must be at least "+a+" and at most "+n+", but was actually "+e)},Mi=function(e,t,a,n){Re(e,t,["number","undefined"]),typeof e=="number"&&Er(e,t,a,n)},Nae=function(e,t,a){if(Re(e,t,["number"]),e%a!==0)throw new Error(ns(t)+" must be a multiple of "+a+", but was actually "+e)},KLe=function(e,t){if(!Number.isInteger(e))throw new Error(ns(t)+" must be an integer, but was actually "+e)},Sw=function(e,t){if(![1,0].includes(Math.sign(e)))throw new Error(ns(t)+" must be a positive number or 0, but was actually "+e)},Jt=new Uint16Array(256);for(var wv=0;wv<256;wv++)Jt[wv]=wv;Jt[22]=$t("�");Jt[24]=$t("Ë");Jt[25]=$t("Ë");Jt[26]=$t("Ë");Jt[27]=$t("Ë");Jt[28]=$t("Ë");Jt[29]=$t("Ë");Jt[30]=$t("Ë");Jt[31]=$t("Ë");Jt[127]=$t("�");Jt[128]=$t("â¢");Jt[129]=$t("â ");Jt[130]=$t("â¡");Jt[131]=$t("â¦");Jt[132]=$t("â");Jt[133]=$t("â");Jt[134]=$t("Æ");Jt[135]=$t("â");Jt[136]=$t("â¹");Jt[137]=$t("âº");Jt[138]=$t("â");Jt[139]=$t("â°");Jt[140]=$t("â");Jt[141]=$t("â");Jt[142]=$t("â");Jt[143]=$t("â");Jt[144]=$t("â");Jt[145]=$t("â");Jt[146]=$t("â¢");Jt[147]=$t("ï¬");Jt[148]=$t("ï¬");Jt[149]=$t("Å");Jt[150]=$t("Å");Jt[151]=$t("Å ");Jt[152]=$t("Ÿ");Jt[153]=$t("Ž");Jt[154]=$t("ı");Jt[155]=$t("Å");Jt[156]=$t("Å");Jt[157]=$t("Å¡");Jt[158]=$t("ž");Jt[159]=$t("�");Jt[160]=$t("â¬");Jt[173]=$t("�");var Aae=function(e){for(var t=new Array(e.length),a=0,n=e.length;a<n;a++)t[a]=Jt[e[a]];return String.fromCodePoint.apply(String,t)},Pl=(function(){function e(t){this.populate=t,this.value=void 0}return e.prototype.getValue=function(){return this.value},e.prototype.access=function(){return this.value||(this.value=this.populate()),this.value},e.prototype.invalidate=function(){this.value=void 0},e.populatedBy=function(t){return new e(t)},e})(),mi=(function(e){ft(t,e);function t(a,n){var r=this,i="Method "+a+"."+n+"() not implemented";return r=e.call(this,i)||this,r}return t})(Error),Z8=(function(e){ft(t,e);function t(a){var n=this,r="Cannot construct "+a+" - it has a private constructor";return n=e.call(this,r)||this,n}return t})(Error),E1=(function(e){ft(t,e);function t(a,n){var r=this,i=function(c){var d,m;return(d=c?.name)!==null&&d!==void 0?d:(m=c?.constructor)===null||m===void 0?void 0:m.name},o=Array.isArray(a)?a.map(i):[i(a)],l="Expected instance of "+o.join(" or ")+", "+("but got instance of "+(n&&i(n)));return r=e.call(this,l)||this,r}return t})(Error),$Le=(function(e){ft(t,e);function t(a){var n=this,r=a+" stream encoding not supported";return n=e.call(this,r)||this,n}return t})(Error),J8=(function(e){ft(t,e);function t(a,n){var r=this,i="Cannot call "+a+"."+n+"() more than once";return r=e.call(this,i)||this,r}return t})(Error);(function(e){ft(t,e);function t(a){var n=this,r="Missing catalog (ref="+a+")";return n=e.call(this,r)||this,n}return t})(Error);var XLe=(function(e){ft(t,e);function t(){var a=this,n="Can't embed page with missing Contents";return a=e.call(this,n)||this,a}return t})(Error),YLe=(function(e){ft(t,e);function t(a){var n,r,i,o=this,l=(i=(r=(n=a?.contructor)===null||n===void 0?void 0:n.name)!==null&&r!==void 0?r:a?.name)!==null&&i!==void 0?i:a,c="Unrecognized stream type: "+l;return o=e.call(this,c)||this,o}return t})(Error),ZLe=(function(e){ft(t,e);function t(){var a=this,n="Found mismatched contexts while embedding pages. All pages in the array passed to `PDFDocument.embedPages()` must be from the same document.";return a=e.call(this,n)||this,a}return t})(Error),JLe=(function(e){ft(t,e);function t(a){var n=this,r="Attempted to convert PDFArray with "+a+" elements to rectangle, but must have exactly 4 elements.";return n=e.call(this,r)||this,n}return t})(Error),Sae=(function(e){ft(t,e);function t(a){var n=this,r='Attempted to convert "'+a+'" to a date, but it does not match the PDF date string format.';return n=e.call(this,r)||this,n}return t})(Error),GU=(function(e){ft(t,e);function t(a,n){var r=this,i="Invalid targetIndex specified: targetIndex="+a+" must be less than Count="+n;return r=e.call(this,i)||this,r}return t})(Error),HU=(function(e){ft(t,e);function t(a,n){var r=this,i="Failed to "+n+" at targetIndex="+a+" due to corrupt page tree: It is likely that one or more 'Count' entries are invalid";return r=e.call(this,i)||this,r}return t})(Error),M1=(function(e){ft(t,e);function t(a,n,r){var i=this,o="index should be at least "+n+" and at most "+r+", but was actually "+a;return i=e.call(this,o)||this,i}return t})(Error),eE=(function(e){ft(t,e);function t(){var a=this,n="Attempted to set invalid field value";return a=e.call(this,n)||this,a}return t})(Error),eFe=(function(e){ft(t,e);function t(){var a=this,n="Attempted to select multiple values for single-select field";return a=e.call(this,n)||this,a}return t})(Error),tFe=(function(e){ft(t,e);function t(a){var n=this,r="No /DA (default appearance) entry found for field: "+a;return n=e.call(this,r)||this,n}return t})(Error),aFe=(function(e){ft(t,e);function t(a){var n=this,r="No Tf operator found for DA of field: "+a;return n=e.call(this,r)||this,n}return t})(Error),qU=(function(e){ft(t,e);function t(a,n){var r=this,i="Failed to parse number "+("(line:"+a.line+" col:"+a.column+" offset="+a.offset+'): "'+n+'"');return r=e.call(this,i)||this,r}return t})(Error),rd=(function(e){ft(t,e);function t(a,n){var r=this,i="Failed to parse PDF document "+("(line:"+a.line+" col:"+a.column+" offset="+a.offset+"): "+n);return r=e.call(this,i)||this,r}return t})(Error),nFe=(function(e){ft(t,e);function t(a,n,r){var i=this,o="Expected next byte to be "+n+" but it was actually "+r;return i=e.call(this,a,o)||this,i}return t})(rd),sFe=(function(e){ft(t,e);function t(a,n){var r=this,i="Failed to parse PDF object starting with the following byte: "+n;return r=e.call(this,a,i)||this,r}return t})(rd),rFe=(function(e){ft(t,e);function t(a){var n=this,r="Failed to parse invalid PDF object";return n=e.call(this,a,r)||this,n}return t})(rd),iFe=(function(e){ft(t,e);function t(a){var n=this,r="Failed to parse PDF stream";return n=e.call(this,a,r)||this,n}return t})(rd),oFe=(function(e){ft(t,e);function t(a){var n=this,r="Failed to parse PDF literal string due to unbalanced parenthesis";return n=e.call(this,a,r)||this,n}return t})(rd),lFe=(function(e){ft(t,e);function t(a){var n=this,r="Parser stalled";return n=e.call(this,a,r)||this,n}return t})(rd),cFe=(function(e){ft(t,e);function t(a){var n=this,r="No PDF header found";return n=e.call(this,a,r)||this,n}return t})(rd),dFe=(function(e){ft(t,e);function t(a,n){var r=this,i="Did not find expected keyword '"+uae(n)+"'";return r=e.call(this,a,i)||this,r}return t})(rd),zT;(function(e){e[e.Null=0]="Null",e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Newline=10]="Newline",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationPoint=33]="ExclamationPoint",e[e.Hash=35]="Hash",e[e.Percent=37]="Percent",e[e.LeftParen=40]="LeftParen",e[e.RightParen=41]="RightParen",e[e.Plus=43]="Plus",e[e.Minus=45]="Minus",e[e.Dash=45]="Dash",e[e.Period=46]="Period",e[e.ForwardSlash=47]="ForwardSlash",e[e.Zero=48]="Zero",e[e.One=49]="One",e[e.Two=50]="Two",e[e.Three=51]="Three",e[e.Four=52]="Four",e[e.Five=53]="Five",e[e.Six=54]="Six",e[e.Seven=55]="Seven",e[e.Eight=56]="Eight",e[e.Nine=57]="Nine",e[e.LessThan=60]="LessThan",e[e.GreaterThan=62]="GreaterThan",e[e.A=65]="A",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.O=79]="O",e[e.P=80]="P",e[e.R=82]="R",e[e.LeftSquareBracket=91]="LeftSquareBracket",e[e.BackSlash=92]="BackSlash",e[e.RightSquareBracket=93]="RightSquareBracket",e[e.a=97]="a",e[e.b=98]="b",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.i=105]="i",e[e.j=106]="j",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.x=120]="x",e[e.LeftCurly=123]="LeftCurly",e[e.RightCurly=125]="RightCurly",e[e.Tilde=126]="Tilde"})(zT||(zT={}));const he=zT;var Cw=(function(){function e(t,a){this.major=String(t),this.minor=String(a)}return e.prototype.toString=function(){var t=wl(129);return"%PDF-"+this.major+"."+this.minor+` 1129%`+t+t+t+t},e.prototype.sizeInBytes=function(){return 12+this.major.length+this.minor.length},e.prototype.copyBytesInto=function(t,a){var n=a;return t[a++]=he.Percent,t[a++]=he.P,t[a++]=he.D,t[a++]=he.F,t[a++]=he.Dash,a+=Ms(this.major,t,a),t[a++]=he.Period,a+=Ms(this.minor,t,a),t[a++]=he.Newline,t[a++]=he.Percent,t[a++]=129,t[a++]=129,t[a++]=129,t[a++]=129,a-n},e.forVersion=function(t,a){return new e(t,a)},e})(),Zs=(function(){function e(){}return e.prototype.clone=function(t){throw new mi(this.constructor.name,"clone")},e.prototype.toString=function(){throw new mi(this.constructor.name,"toString")},e.prototype.sizeInBytes=function(){throw new mi(this.constructor.name,"sizeInBytes")},e.prototype.copyBytesInto=function(t,a){throw new mi(this.constructor.name,"copyBytesInto")},e})(),Qt=(function(e){ft(t,e);function t(a){var n=e.call(this)||this;return n.numberValue=a,n.stringValue=cLe(a),n}return t.prototype.asNumber=function(){return this.numberValue},t.prototype.value=function(){return this.numberValue},t.prototype.clone=function(){return t.of(this.numberValue)},t.prototype.toString=function(){return this.stringValue},t.prototype.sizeInBytes=function(){return this.stringValue.length},t.prototype.copyBytesInto=function(a,n){return n+=Ms(this.stringValue,a,n),this.stringValue.length},t.of=function(a){return new t(a)},t})(Zs),Ea=(function(e){ft(t,e);function t(a){var n=e.call(this)||this;return n.array=[],n.context=a,n}return t.prototype.size=function(){return this.array.length},t.prototype.push=function(a){this.array.push(a)},t.prototype.insert=function(a,n){this.array.splice(a,0,n)},t.prototype.indexOf=function(a){var n=this.array.indexOf(a);return n===-1?void 0:n},t.prototype.remove=function(a){this.array.splice(a,1)},t.prototype.set=function(a,n){this.array[a]=n},t.prototype.get=function(a){return this.array[a]},t.prototype.lookupMaybe=function(a){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(n=this.context).lookupMaybe.apply(n,Na([this.get(a)],r))},t.prototype.lookup=function(a){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(n=this.context).lookup.apply(n,Na([this.get(a)],r))},t.prototype.asRectangle=function(){if(this.size()!==4)throw new JLe(this.size());var a=this.lookup(0,Qt).asNumber(),n=this.lookup(1,Qt).asNumber(),r=this.lookup(2,Qt).asNumber(),i=this.lookup(3,Qt).asNumber(),o=a,l=n,c=r-a,d=i-n;return{x:o,y:l,width:c,height:d}},t.prototype.asArray=function(){return this.array.slice()},t.prototype.clone=function(a){for(var n=t.withContext(a||this.context),r=0,i=this.size();r<i;r++)n.push(this.array[r]);return n},t.prototype.toString=function(){for(var a="[ ",n=0,r=this.size();n<r;n++)a+=this.get(n).toString(),a+=" ";return a+="]",a},t.prototype.sizeInBytes=function(){for(var a=3,n=0,r=this.size();n<r;n++)a+=this.get(n).sizeInBytes()+1;return a},t.prototype.copyBytesInto=function(a,n){var r=n;a[n++]=he.LeftSquareBracket,a[n++]=he.Space;for(var i=0,o=this.size();i<o;i++)n+=this.get(i).copyBytesInto(a,n),a[n++]=he.Space;return a[n++]=he.RightSquareBracket,n-r},t.prototype.scalePDFNumbers=function(a,n){for(var r=0,i=this.size();r<i;r++){var o=this.lookup(r);if(o instanceof Qt){var l=r%2===0?a:n;this.set(r,Qt.of(o.asNumber()*l))}}},t.withContext=function(a){return new t(a)},t})(Zs),R5={},Ox=(function(e){ft(t,e);function t(a,n){var r=this;if(a!==R5)throw new Z8("PDFBool");return r=e.call(this)||this,r.value=n,r}return t.prototype.asBoolean=function(){return this.value},t.prototype.clone=function(){return this},t.prototype.toString=function(){return String(this.value)},t.prototype.sizeInBytes=function(){return this.value?4:5},t.prototype.copyBytesInto=function(a,n){return this.value?(a[n++]=he.t,a[n++]=he.r,a[n++]=he.u,a[n++]=he.e,4):(a[n++]=he.f,a[n++]=he.a,a[n++]=he.l,a[n++]=he.s,a[n++]=he.e,5)},t.True=new t(R5,!0),t.False=new t(R5,!1),t})(Zs),ki=new Uint8Array(256);ki[he.LeftParen]=1;ki[he.RightParen]=1;ki[he.LessThan]=1;ki[he.GreaterThan]=1;ki[he.LeftSquareBracket]=1;ki[he.RightSquareBracket]=1;ki[he.LeftCurly]=1;ki[he.RightCurly]=1;ki[he.ForwardSlash]=1;ki[he.Percent]=1;var Bl=new Uint8Array(256);Bl[he.Null]=1;Bl[he.Tab]=1;Bl[he.Newline]=1;Bl[he.FormFeed]=1;Bl[he.CarriageReturn]=1;Bl[he.Space]=1;var tE=new Uint8Array(256);for(var _h=0,uFe=256;_h<uFe;_h++)tE[_h]=Bl[_h]||ki[_h]?1:0;tE[he.Hash]=1;var pFe=function(e){return e.replace(/#([\dABCDEF]{2})/g,function(t,a){return qIe(a)})},mFe=function(e){return e>=he.ExclamationPoint&&e<=he.Tilde&&!tE[e]},UU={},VU=new Map,ue=(function(e){ft(t,e);function t(a,n){var r=this;if(a!==UU)throw new Z8("PDFName");r=e.call(this)||this;for(var i="/",o=0,l=n.length;o<l;o++){var c=n[o],d=$t(c);i+=mFe(d)?c:"#"+kw(d)}return r.encodedName=i,r}return t.prototype.asBytes=function(){for(var a=[],n="",r=!1,i=function(f){f!==void 0&&a.push(f),r=!1},o=1,l=this.encodedName.length;o<l;o++){var c=this.encodedName[o],d=$t(c),m=this.encodedName[o+1];r?d>=he.Zero&&d<=he.Nine||d>=he.a&&d<=he.f||d>=he.A&&d<=he.F?(n+=c,(n.length===2||!(m>="0"&&m<="9"||m>="a"&&m<="f"||m>="A"&&m<="F"))&&(i(parseInt(n,16)),n="")):i(d):d===he.Hash?r=!0:i(d)}return new Uint8Array(a)},t.prototype.decodeText=function(){var a=this.asBytes();return String.fromCharCode.apply(String,Array.from(a))},t.prototype.asString=function(){return this.encodedName},t.prototype.value=function(){return this.encodedName},t.prototype.clone=function(){return this},t.prototype.toString=function(){return this.encodedName},t.prototype.sizeInBytes=function(){return this.encodedName.length},t.prototype.copyBytesInto=function(a,n){return n+=Ms(this.encodedName,a,n),this.encodedName.length},t.of=function(a){var n=pFe(a),r=VU.get(n);return r||(r=new t(UU,n),VU.set(n,r)),r},t.Length=t.of("Length"),t.FlateDecode=t.of("FlateDecode"),t.Resources=t.of("Resources"),t.Font=t.of("Font"),t.XObject=t.of("XObject"),t.ExtGState=t.of("ExtGState"),t.Contents=t.of("Contents"),t.Type=t.of("Type"),t.Parent=t.of("Parent"),t.MediaBox=t.of("MediaBox"),t.Page=t.of("Page"),t.Annots=t.of("Annots"),t.TrimBox=t.of("TrimBox"),t.ArtBox=t.of("ArtBo
1129x"),t.BleedBox=t.of("BleedBox"),t.CropBox=t.of("CropBox"),t.Rotate=t.of("Rotate"),t.Title=t.of("Title"),t.Author=t.of("Author"),t.Subject=t.of("Subject"),t.Creator=t.of("Creator"),t.Keywords=t.of("Keywords"),t.Producer=t.of("Producer"),t.CreationDate=t.of("CreationDate"),t.ModDate=t.of("ModDate"),t})(Zs),fFe=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.asNull=function(){return null},t.prototype.clone=function(){return this},t.prototype.toString=function(){return"null"},t.prototype.sizeInBytes=function(){return 4},t.prototype.copyBytesInto=function(a,n){return a[n++]=he.n,a[n++]=he.u,a[n++]=he.l,a[n++]=he.l,4},t})(Zs);const dr=new fFe;var ta=(function(e){ft(t,e);function t(a,n){var r=e.call(this)||this;return r.dict=a,r.context=n,r}return t.prototype.keys=function(){return Array.from(this.dict.keys())},t.prototype.values=function(){return Array.from(this.dict.values())},t.prototype.entries=function(){return Array.from(this.dict.entries())},t.prototype.set=function(a,n){this.dict.set(a,n)},t.prototype.get=function(a,n){n===void 0&&(n=!1);var r=this.dict.get(a);if(!(r===dr&&!n))return r},t.prototype.has=function(a){var n=this.dict.get(a);return n!==void 0&&n!==dr},t.prototype.lookupMaybe=function(a){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=r.includes(dr),l=(n=this.context).lookupMaybe.apply(n,Na([this.get(a,o)],r));if(!(l===dr&&!o))return l},t.prototype.lookup=function(a){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=r.includes(dr),l=(n=this.context).lookup.apply(n,Na([this.get(a,o)],r));if(!(l===dr&&!o))return l},t.prototype.delete=function(a){return this.dict.delete(a)},t.prototype.asMap=function(){return new Map(this.dict)},t.prototype.uniqueKey=function(a){a===void 0&&(a="");for(var n=this.keys(),r=ue.of(this.context.addRandomSuffix(a,10));n.includes(r);)r=ue.of(this.context.addRandomSuffix(a,10));return r},t.prototype.clone=function(a){for(var n=t.withContext(a||this.context),r=this.entries(),i=0,o=r.length;i<o;i++){var l=r[i],c=l[0],d=l[1];n.set(c,d)}return n},t.prototype.toString=function(){for(var a=`<< 1130`,n=this.entries(),r=0,i=n.length;r<i;r++){var o=n[r],l=o[0],c=o[1];a+=l.toString()+" "+c.toString()+` 1131`}return a+=">>",a},t.prototype.sizeInBytes=function(){for(var a=5,n=this.entries(),r=0,i=n.length;r<i;r++){var o=n[r],l=o[0],c=o[1];a+=l.sizeInBytes()+c.sizeInBytes()+2}return a},t.prototype.copyBytesInto=function(a,n){var r=n;a[n++]=he.LessThan,a[n++]=he.LessThan,a[n++]=he.Newline;for(var i=this.entries(),o=0,l=i.length;o<l;o++){var c=i[o],d=c[0],m=c[1];n+=d.copyBytesInto(a,n),a[n++]=he.Space,n+=m.copyBytesInto(a,n),a[n++]=he.Newline}return a[n++]=he.GreaterThan,a[n++]=he.GreaterThan,n-r},t.withContext=function(a){return new t(new Map,a)},t.fromMapWithContext=function(a,n){return new t(a,n)},t})(Zs),_r=(function(e){ft(t,e);function t(a){var n=e.call(this)||this;return n.dict=a,n}return t.prototype.clone=function(a){throw new mi(this.constructor.name,"clone")},t.prototype.getContentsString=function(){throw new mi(this.constructor.name,"getContentsString")},t.prototype.getContents=function(){throw new mi(this.constructor.name,"getContents")},t.prototype.getContentsSize=function(){throw new mi(this.constructor.name,"getContentsSize")},t.prototype.updateDict=function(){var a=this.getContentsSize();this.dict.set(ue.Length,Qt.of(a))},t.prototype.sizeInBytes=function(){return this.updateDict(),this.dict.sizeInBytes()+this.getContentsSize()+18},t.prototype.toString=function(){this.updateDict();var a=this.dict.toString();return a+=` 1132stream 1133`,a+=this.getContentsString(),a+=` 1134endstream`,a},t.prototype.copyBytesInto=function(a,n){this.updateDict();var r=n;n+=this.dict.copyBytesInto(a,n),a[n++]=he.Newline,a[n++]=he.s,a[n++]=he.t,a[n++]=he.r,a[n++]=he.e,a[n++]=he.a,a[n++]=he.m,a[n++]=he.Newline;for(var i=this.getContents(),o=0,l=i.length;o<l;o++)a[n++]=i[o];return a[n++]=he.Newline,a[n++]=he.e,a[n++]=he.n,a[n++]=he.d,a[n++]=he.s,a[n++]=he.t,a[n++]=he.r,a[n++]=he.e,a[n++]=he.a,a[n++]=he.m,n-r},t})(Zs),Rx=(function(e){ft(t,e);function t(a,n){var r=e.call(this,a)||this;return r.contents=n,r}return t.prototype.asUint8Array=function(){return this.contents.slice()},t.prototype.clone=function(a){return t.of(this.dict.clone(a),this.contents.slice())},t.prototype.getContentsString=function(){return uae(this.contents)},t.prototype.getContents=function(){return this.contents},t.prototype.getContentsSize=function(){return this.contents.length},t.of=function(a,n){return new t(a,n)},t})(_r),QU={},WU=new Map,Ua=(function(e){ft(t,e);function t(a,n,r){var i=this;if(a!==QU)throw new Z8("PDFRef");return i=e.call(this)||this,i.objectNumber=n,i.generationNumber=r,i.tag=n+" "+r+" R",i}return t.prototype.clone=function(){return this},t.prototype.toString=function(){return this.tag},t.prototype.sizeInBytes=function(){return this.tag.length},t.prototype.copyBytesInto=function(a,n){return n+=Ms(this.tag,a,n),this.tag.length},t.of=function(a,n){n===void 0&&(n=0);var r=a+" "+n+" R",i=WU.get(r);
vendor: 217,543 bytes, lines 1134-1165
1134return i||(i=new t(QU,a,n),WU.set(r,i)),i},t})(Zs),ja=(function(){function e(t,a){this.name=t,this.args=a||[]}return e.prototype.clone=function(t){for(var a=new Array(this.args.length),n=0,r=a.length;n<r;n++){var i=this.args[n];a[n]=i instanceof Zs?i.clone(t):i}return e.of(this.name,a)},e.prototype.toString=function(){for(var t="",a=0,n=this.args.length;a<n;a++)t+=String(this.args[a])+" ";return t+=this.name,t},e.prototype.sizeInBytes=function(){for(var t=0,a=0,n=this.args.length;a<n;a++){var r=this.args[a];t+=(r instanceof Zs?r.sizeInBytes():r.length)+1}return t+=this.name.length,t},e.prototype.copyBytesInto=function(t,a){for(var n=a,r=0,i=this.args.length;r<i;r++){var o=this.args[r];o instanceof Zs?a+=o.copyBytesInto(t,a):a+=Ms(o,t,a),t[a++]=he.Space}return a+=Ms(this.name,t,a),a-n},e.of=function(t,a){return new e(t,a)},e})(),_T;(function(e){e.NonStrokingColor="sc",e.NonStrokingColorN="scn",e.NonStrokingColorRgb="rg",e.NonStrokingColorGray="g",e.NonStrokingColorCmyk="k",e.NonStrokingColorspace="cs",e.StrokingColor="SC",e.StrokingColorN="SCN",e.StrokingColorRgb="RG",e.StrokingColorGray="G",e.StrokingColorCmyk="K",e.StrokingColorspace="CS",e.BeginMarkedContentSequence="BDC",e.BeginMarkedContent="BMC",e.EndMarkedContent="EMC",e.MarkedContentPointWithProps="DP",e.MarkedContentPoint="MP",e.DrawObject="Do",e.ConcatTransformationMatrix="cm",e.PopGraphicsState="Q",e.PushGraphicsState="q",e.SetFlatness="i",e.SetGraphicsStateParams="gs",e.SetLineCapStyle="J",e.SetLineDashPattern="d",e.SetLineJoinStyle="j",e.SetLineMiterLimit="M",e.SetLineWidth="w",e.SetTextMatrix="Tm",e.SetRenderingIntent="ri",e.AppendRectangle="re",e.BeginInlineImage="BI",e.BeginInlineImageData="ID",e.EndInlineImage="EI",e.ClipEvenOdd="W*",e.ClipNonZero="W",e.CloseAndStroke="s",e.CloseFillEvenOddAndStroke="b*",e.CloseFillNonZeroAndStroke="b",e.ClosePath="h",e.AppendBezierCurve="c",e.CurveToReplicateFinalPoint="y",e.CurveToReplicateInitialPoint="v",e.EndPath="n",e.FillEvenOddAndStroke="B*",e.FillEvenOdd="f*",e.FillNonZeroAndStroke="B",e.FillNonZero="f",e.LegacyFillNonZero="F",e.LineTo="l",e.MoveTo="m",e.ShadingFill="sh",e.StrokePath="S",e.BeginText="BT",e.EndText="ET",e.MoveText="Td",e.MoveTextSetLeading="TD",e.NextLine="T*",e.SetCharacterSpacing="Tc",e.SetFontAndSize="Tf",e.SetTextHorizontalScaling="Tz",e.SetTextLineHeight="TL",e.SetTextRenderingMode="Tr",e.SetTextRise="Ts",e.SetWordSpacing="Tw",e.ShowText="Tj",e.ShowTextAdjusted="TJ",e.ShowTextLine="'",e.ShowTextLineAndSpace='"',e.Type3D0="d0",e.Type3D1="d1",e.BeginCompatibilitySection="BX",e.EndCompatibilitySection="EX"})(_T||(_T={}));const Aa=_T;var aE=(function(e){ft(t,e);function t(a,n){var r=e.call(this,a)||this;return r.computeContents=function(){var i=r.getUnencodedContents();return r.encode?Nw.deflate(i):i},r.encode=n,n&&a.set(ue.of("Filter"),ue.of("FlateDecode")),r.contentsCache=Pl.populatedBy(r.computeContents),r}return t.prototype.getContents=function(){return this.contentsCache.access()},t.prototype.getContentsSize=function(){return this.contentsCache.access().length},t.prototype.getUnencodedContents=function(){throw new mi(this.constructor.name,"getUnencodedContents")},t})(_r),wg=(function(e){ft(t,e);function t(a,n,r){r===void 0&&(r=!0);var i=e.call(this,a,r)||this;return i.operators=n,i}return t.prototype.push=function(){for(var a,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(a=this.operators).push.apply(a,n)},t.prototype.clone=function(a){for(var n=new Array(this.operators.length),r=0,i=this.operators.length;r<i;r++)n[r]=this.operators[r].clone(a);var o=this,l=o.dict,c=o.encode;return t.of(l.clone(a),n,c)},t.prototype.getContentsString=function(){for(var a="",n=0,r=this.operators.length;n<r;n++)a+=this.operators[n]+` 1135`;return a},t.prototype.getUnencodedContents=function(){for(var a=new Uint8Array(this.getUnencodedContentsSize()),n=0,r=0,i=this.operators.length;r<i;r++)n+=this.operators[r].copyBytesInto(a,n),a[n++]=he.Newline;return a},t.prototype.getUnencodedContentsSize=function(){for(var a=0,n=0,r=this.operators.length;n<r;n++)a+=this.operators[n].sizeInBytes()+1;return a},t.of=function(a,n,r){return r===void 0&&(r=!0),new t(a,n,r)},t})(aE),hFe=(function(){function e(t){this.seed=t}return e.prototype.nextInt=function(){var t=Math.sin(this.seed++)*1e4;return t-Math.floor(t)},e.withSeed=function(t){return new e(t)},e})(),gFe=function(e,t){var a=e[0],n=t[0];return a.objectNumber-n.objectNumber},IT=(function(){function e(){this.largestObjectNumber=0,this.header=Cw.forVersion(1,7),this.trailerInfo={},this.indirectObjects=new Map,this.rng=hFe.withSeed(1)}return e.prototype.assign=function(t,a){this.indirectObjects.set(t,a),t.objectNumber>this.largestObjectNumber&&(this.largestObjectNumber=t.objectNumber)},e.prototype.nextRef=function(){return this.largestObjectNumber+=1,Ua.of(this.largestObjectNumber)},e.prototype.register=function(t){var a=this.nextRef();return this.assign(a,t),a},e.prototype.delete=function(t){return this.indirectObjects.delete(t)},e.prototype.lookupMaybe=function(t){for(var a=[],n=1;n<arguments.length;n++)a[n-1]=arguments[n];var r=a.includes(dr),i=t instanceof Ua?this.indirectObjects.get(t):t;if(!(!i||i===dr&&!r)){for(var o=0,l=a.length;o<l;o++){var c=a[o];if(c===dr){if(i===dr)return i}else if(i instanceof c)return i}throw new E1(a,i)}},e.prototype.lookup=function(t){for(var a=[],n=1;n<arguments.length;n++)a[n-1]=arguments[n];var r=t instanceof Ua?this.indirectObjects.get(t):t;if(a.length===0)return r;for(var i=0,o=a.length;i<o;i++){var l=a[i];if(l===dr){if(r===dr)return r}else if(r instanceof l)return r}throw new E1(a,r)},e.prototype.getObjectRef=function(t){for(var a=Array.from(this.indirectObjects.entries()),n=0,r=a.length;n<r;n++){var i=a[n],o=i[0],l=i[1];if(l===t)return o}},e.prototype.enumerateIndirectObjects=function(){return Array.from(this.indirectObjects.entries()).sort(gFe)},e.prototype.obj=function(t){if(t instanceof Zs)return t;if(t==null)return dr;if(typeof t=="string")return ue.of(t);if(typeof t=="number")return Qt.of(t);if(typeof t=="boolean")return t?Ox.True:Ox.False;if(Array.isArray(t)){for(var a=Ea.withContext(this),n=0,r=t.length;n<r;n++)a.push(this.obj(t[n]));return a}else{for(var i=ta.withContext(this),o=Object.keys(t),n=0,r=o.length;n<r;n++){var l=o[n],c=t[l];c!==void 0&&i.set(ue.of(l),this.obj(c))}return i}},e.prototype.stream=function(t,a){return a===void 0&&(a={}),Rx.of(this.obj(a),RT(t))},e.prototype.flateStream=function(t,a){return a===void 0&&(a={}),this.stream(Nw.deflate(RT(t)),Xt(Xt({},a),{Filter:"FlateDecode"}))},e.prototype.contentStream=function(t,a){return a===void 0&&(a={}),wg.of(this.obj(a),t)},e.prototype.formXObject=function(t,a){return a===void 0&&(a={}),this.contentStream(t,Xt(Xt({BBox:this.obj([0,0,0,0]),Matrix:this.obj([1,0,0,1,0,0])},a),{Type:"XObject",Subtype:"Form"}))},e.prototype.getPushGraphicsStateContentStream=function(){if(this.pushGraphicsStateContentStreamRef)return this.pushGraphicsStateContentStreamRef;var t=this.obj({}),a=ja.of(Aa.PushGraphicsState),n=wg.of(t,[a]);return this.pushGraphicsStateContentStreamRef=this.register(n),this.pushGraphicsStateContentStreamRef},e.prototype.getPopGraphicsStateContentStream=function(){if(this.popGraphicsStateContentStreamRef)return this.popGraphicsStateContentStreamRef;var t=this.obj({}),a=ja.of(Aa.PopGraphicsState),n=wg.of(t,[a]);return this.popGraphicsStateContentStreamRef=this.register(n),this.popGraphicsStateContentStreamRef},e.prototype.addRandomSuffix=function(t,a){return a===void 0&&(a=4),t+"-"+Math.floor(this.rng.nextInt()*Math.pow(10,a))},e.create=function(){return new e},e})(),jl=(function(e){ft(t,e);function t(a,n,r){r===void 0&&(r=!0);var i=e.call(this,a,n)||this;return i.normalized=!1,i.autoNormalizeCTM=r,i}return t.prototype.clone=function(a){for(var n=t.fromMapWithContext(new Map,a||this.context,this.autoNormalizeCTM),r=this.entries(),i=0,o=r.length;i<o;i++){var l=r[i],c=l[0],d=l[1];n.set(c,d)}return n},t.prototype.Parent=function(){return this.lookupMaybe(ue.Parent,ta)},t.prototype.Contents=function(){return this.lookup(ue.of("Contents"))},t.prototype.Annots=function(){return this.lookupMaybe(ue.Annots,Ea)},t.prototype.BleedBox=function(){return this.lookupMaybe(ue.BleedBox,Ea)},t.prototype.TrimBox=function(){return this.lookupMaybe(ue.TrimBox,Ea)},t.prototype.ArtBox=function(){return this.lookupMaybe(ue.ArtBox,Ea)},t.prototype.Resources=function(){var a=this.getInheritableAttribute(ue.Resources);return this.context.lookupMaybe(a,ta)},t.prototype.MediaBox=function(){var a=this.getInheritableAttribute(ue.MediaBox);return this.context.lookup(a,Ea)},t.prototype.CropBox=function(){var a=this.getInheritableAttribute(ue.CropBox);return this.context.lookupMaybe(a,Ea)},t.prototype.Rotate=function(){var a=this.getInheritableAttribute(ue.Rotate);return this.context.lookupMaybe(a,Qt)},t.prototype.getInheritableAttribute=function(a){var n;return this.ascend(function(r){n||(n=r.get(a))}),n},t.prototype.setParent=function(a){this.set(ue.Parent,a)},t.prototype.addContentStream=function(a){var n=this.normalizedEntries().Contents||this.context.obj([]);this.set(ue.Contents,n),n.push(a)},t.prototype.wrapContentStreams=function(a,n){var r=this.Contents();return r instanceof Ea?(r.insert(0,a),r.push(n),!0):!1},t.prototype.addAnnot=function(a){var n=this.normalizedEntries().Annots;n.push(a)},t.prototype.removeAnnot=function(a){var n=this.normalizedEntries().Annots,r=n.indexOf(a);r!==void 0&&n.remove(r)},t.prototype.setFontDictionary=function(a,n){var r=this.normalizedEntries().Font;r.set(a,n)},t.prototype.newFontDictionaryKey=function(a){var n=this.normalizedEntries().Font;return n.uniqueKey(a)},t.prototype.newFontDictionary=function(a,n){var r=this.newFontDictionaryKey(a);return this.setFontDictionary(r,n),r},t.prototype.setXObject=function(a,n){var r=this.normalizedEntries().XObject;r.set(a,n)},t.prototype.newXObjectKey=function(a){var n=this.normalizedEntries().XObject;return n.uniqueKey(a)},t.prototype.newXObject=function(a,n){var r=this.newXObjectKey(a);return this.setXObject(r,n),r},t.prototype.setExtGState=function(a,n){var r=this.normalizedEntries().ExtGState;r.set(a,n)},t.prototype.newExtGStateKey=function(a){var n=this.normalizedEntries().ExtGState;return n.uniqueKey(a)},t.prototype.newExtGState=function(a,n){var r=this.newExtGStateKey(a);return this.setExtGState(r,n),r},t.prototype.ascend=function(a){a(this);var n=this.Parent();n&&n.ascend(a)},t.prototype.normalize=function(){if(!this.normalized){var a=this.context,n=this.get(ue.Contents),r=this.context.lookup(n);r instanceof _r&&this.set(ue.Contents,a.obj([n])),this.autoNormalizeCTM&&this.wrapContentStreams(this.context.getPushGraphicsStateContentStream(),this.context.getPopGraphicsStateContentStream());var i=this.getInheritableAttribute(ue.Resources),o=a.lookupMaybe(i,ta)||a.obj({});this.set(ue.Resources,o);var l=o.lookupMaybe(ue.Font,ta)||a.obj({});o.set(ue.Font,l);var c=o.lookupMaybe(ue.XObject,ta)||a.obj({});o.set(ue.XObject,c);var d=o.lookupMaybe(ue.ExtGState,ta)||a.obj({});o.set(ue.ExtGState,d);var m=this.Annots()||a.obj([]);this.set(ue.Annots,m),this.normalized=!0}},t.prototype.normalizedEntries=function(){this.normalize();var a=this.Annots(),n=this.Resources(),r=this.Contents();return{Annots:a,Resources:n,Contents:r,Font:n.lookup(ue.Font,ta),XObject:n.lookup(ue.XObject,ta),ExtGState:n.lookup(ue.ExtGState,ta)}},t.InheritableEntries=["Resources","MediaBox","CropBox","Rotate"],t.withContextAndParent=function(a,n){var r=new Map;return r.set(ue.Type,ue.Page),r.set(ue.Parent,n),r.set(ue.Resources,a.obj({})),r.set(ue.MediaBox,a.obj([0,0,612,792])),new t(r,a,!1)},t.fromMapWithContext=function(a,n,r){return r===void 0&&(r=!0),new t(a,n,r)},t})(ta),KU=(function(){function e(t,a){var n=this;this.traversedObjects=new Map,this.copy=function(r){return r instanceof jl?n.copyPDFPage(r):r instanceof ta?n.copyPDFDict(r):r instanceof Ea?n.copyPDFArray(r):r instanceof _r?n.copyPDFStream(r):r instanceof Ua?n.copyPDFIndirectObject(r):r.clone()},this.copyPDFPage=function(r){for(var i=r.clone(),o=jl.InheritableEntries,l=0,c=o.length;l<c;l++){var d=ue.of(o[l]),m=i.getInheritableAttribute(d);!i.get(d)&&m&&i.set(d,m)}return i.delete(ue.of("Parent")),n.copyPDFDict(i)},this.copyPDFDict=function(r){if(n.traversedObjects.has(r))return n.traversedObjects.get(r);var i=r.clone(n.dest);n.traversedObjects.set(r,i);for(var o=r.entries(),l=0,c=o.length;l<c;l++){var d=o[l],m=d[0],f=d[1];i.set(m,n.copy(f))}return i},this.copyPDFArray=function(r){if(n.traversedObjects.has(r))return n.traversedObjects.get(r);var i=r.clone(n.dest);n.traversedObjects.set(r,i);for(var o=0,l=r.size();o<l;o++){var c=r.get(o);i.set(o,n.copy(c))}return i},this.copyPDFStream=function(r){if(n.traversedObjects.has(r))return n.traversedObjects.get(r);var i=r.clone(n.dest);n.traversedObjects.set(r,i);for(var o=r.dict.entries(),l=0,c=o.length;l<c;l++){var d=o[l],m=d[0],f=d[1];i.dict.set(m,n.copy(f))}return i},this.copyPDFIndirectObject=function(r){var i=n.traversedObjects.has(r);if(!i){var o=n.dest.nextRef();n.traversedObjects.set(r,o);var l=n.src.lookup(r);if(l){var c=n.copy(l);n.dest.assign(o,c)}}return n.traversedObjects.get(r)},this.src=t,this.dest=a}return e.for=function(t,a){return new e(t,a)},e})(),Cae=(function(){function e(t){this.subsections=t?[[t]]:[],this.chunkIdx=0,this.chunkLength=t?1:0}return e.prototype.addEntry=function(t,a){this.append({ref:t,offset:a,deleted:!1})},e.prototype.addDeletedEntry=function(t,a){this.append({ref:t,offset:a,deleted:!0})},e.prototype.toString=function(){for(var t=`xref 1136`,a=0,n=this.subsections.length;a<n;a++){var r=this.subsections[a];t+=r[0].ref.objectNumber+" "+r.length+` 1137`;for(var i=0,o=r.length;i<o;i++){var l=r[i];t+=Bi(String(l.offset),10,"0"),t+=" ",t+=Bi(String(l.ref.generationNumber),5,"0"),t+=" ",t+=l.deleted?"f":"n",t+=` 1138`}}return t},e.prototype.sizeInBytes=function(){for(var t=5,a=0,n=this.subsections.length;a<n;a++){var r=this.subsections[a],i=r.length,o=r[0];t+=2,t+=String(o.ref.objectNumber).length,t+=String(i).length,t+=20*i}return t},e.prototype.copyBytesInto=function(t,a){var n=a;return t[a++]=he.x,t[a++]=he.r,t[a++]=he.e,t[a++]=he.f,t[a++]=he.Newline,a+=this.copySubsectionsIntoBuffer(this.subsections,t,a),a-n},e.prototype.copySubsectionsIntoBuffer=function(t,a,n){for(var r=n,i=t.length,o=0;o<i;o++){var l=this.subsections[o],c=String(l[0].ref.objectNumber);n+=Ms(c,a,n),a[n++]=he.Space;var d=String(l.length);n+=Ms(d,a,n),a[n++]=he.Newline,n+=this.copyEntriesIntoBuffer(l,a,n)}return n-r},e.prototype.copyEntriesIntoBuffer=function(t,a,n){for(var r=t.length,i=0;i<r;i++){var o=t[i],l=Bi(String(o.offset),10,"0");n+=Ms(l,a,n),a[n++]=he.Space;var c=Bi(String(o.ref.generationNumber),5,"0");n+=Ms(c,a,n),a[n++]=he.Space,a[n++]=o.deleted?he.f:he.n,a[n++]=he.Space,a[n++]=he.Newline}return 20*r},e.prototype.append=function(t){if(this.chunkLength===0){this.subsections.push([t]),this.chunkIdx=0,this.chunkLength=1;return}var a=this.subsections[this.chunkIdx],n=a[this.chunkLength-1];t.ref.objectNumber-n.ref.objectNumber>1?(this.subsections.push([t]),this.chunkIdx+=1,this.chunkLength=1):(a.push(t),this.chunkLength+=1)},e.create=function(){return new e({ref:Ua.of(0,65535),offset:0,deleted:!0})},e.createEmpty=function(){return new e},e})(),nE=(function(){function e(t){this.lastXRefOffset=String(t)}return e.prototype.toString=function(){return`startxref 1139`+this.lastXRefOffset+` 1140%%EOF`},e.prototype.sizeInBytes=function(){return 16+this.lastXRefOffset.length},e.prototype.copyBytesInto=function(t,a){var n=a;return t[a++]=he.s,t[a++]=he.t,t[a++]=he.a,t[a++]=he.r,t[a++]=he.t,t[a++]=he.x,t[a++]=he.r,t[a++]=he.e,t[a++]=he.f,t[a++]=he.Newline,a+=Ms(this.lastXRefOffset,t,a),t[a++]=he.Newline,t[a++]=he.Percent,t[a++]=he.Percent,t[a++]=he.E,t[a++]=he.O,t[a++]=he.F,a-n},e.forLastCrossRefSectionOffset=function(t){return new e(t)},e})(),xFe=(function(){function e(t){this.dict=t}return e.prototype.toString=function(){return`trailer 1141`+this.dict.toString()},e.prototype.sizeInBytes=function(){return 8+this.dict.sizeInBytes()},e.prototype.copyBytesInto=function(t,a){var n=a;return t[a++]=he.t,t[a++]=he.r,t[a++]=he.a,t[a++]=he.i,t[a++]=he.l,t[a++]=he.e,t[a++]=he.r,t[a++]=he.Newline,a+=this.dict.copyBytesInto(t,a),a-n},e.of=function(t){return new e(t)},e})(),Tae=(function(e){ft(t,e);function t(a,n,r){r===void 0&&(r=!0);var i=e.call(this,a.obj({}),r)||this;return i.objects=n,i.offsets=i.computeObjectOffsets(),i.offsetsString=i.computeOffsetsString(),i.dict.set(ue.of("Type"),ue.of("ObjStm")),i.dict.set(ue.of("N"),Qt.of(i.objects.length)),i.dict.set(ue.of("First"),Qt.of(i.offsetsString.length)),i}return t.prototype.getObjectsCount=function(){return this.objects.length},t.prototype.clone=function(a){return t.withContextAndObjects(a||this.dict.context,this.objects.slice(),this.encode)},t.prototype.getContentsString=function(){for(var a=this.offsetsString,n=0,r=this.objects.length;n<r;n++){var i=this.objects[n],o=i[1];a+=o+` 1142`}return a},t.prototype.getUnencodedContents=function(){for(var a=new Uint8Array(this.getUnencodedContentsSize()),n=Ms(this.offsetsString,a,0),r=0,i=this.objects.length;r<i;r++){var o=this.objects[r],l=o[1];n+=l.copyBytesInto(a,n),a[n++]=he.Newline}return a},t.prototype.getUnencodedContentsSize=function(){return this.offsetsString.length+D1(this.offsets)[1]+D1(this.objects)[1].sizeInBytes()+1},t.prototype.computeOffsetsString=function(){for(var a="",n=0,r=this.offsets.length;n<r;n++){var i=this.offsets[n],o=i[0],l=i[1];a+=o+" "+l+" "}return a},t.prototype.computeObjectOffsets=function(){for(var a=0,n=new Array(this.objects.length),r=0,i=this.objects.length;r<i;r++){var o=this.objects[r],l=o[0],c=o[1];n[r]=[l.objectNumber,a],a+=c.sizeInBytes()+1}return n},t.withContextAndObjects=function(a,n,r){return r===void 0&&(r=!0),new t(a,n,r)},t})(aE),Dae=(function(){function e(t,a){var n=this;this.parsedObjects=0,this.shouldWaitForTick=function(r){return n.parsedObjects+=r,n.parsedObjects%n.objectsPerTick===0},this.context=t,this.objectsPerTick=a}return e.prototype.serializeToBuffer=function(){return na(this,void 0,void 0,function(){var t,a,n,r,i,o,l,c,d,m,f,h,x,b,y,w,j;return sa(this,function(N){switch(N.label){case 0:return[4,this.computeBufferSize()];case 1:t=N.sent(),a=t.size,n=t.header,r=t.indirectObjects,i=t.xref,o=t.trailerDict,l=t.trailer,c=0,d=new Uint8Array(a),c+=n.copyBytesInto(d,c),d[c++]=he.Newline,d[c++]=he.Newline,m=0,f=r.length,N.label=2;case 2:return m<f?(h=r[m],x=h[0],b=h[1],y=String(x.objectNumber),c+=Ms(y,d,c),d[c++]=he.Space,w=String(x.generationNumber),c+=Ms(w,d,c),d[c++]=he.Space,d[c++]=he.o,d[c++]=he.b,d[c++]=he.j,d[c++]=he.Newline,c+=b.copyBytesInto(d,c),d[c++]=he.Newline,d[c++]=he.e,d[c++]=he.n,d[c++]=he.d,d[c++]=he.o,d[c++]=he.b,d[c++]=he.j,d[c++]=he.Newline,d[c++]=he.Newline,j=b instanceof Tae?b.getObjectsCount():1,this.shouldWaitForTick(j)?[4,Zm()]:[3,4]):[3,5];case 3:N.sent(),N.label=4;case 4:return m++,[3,2];case 5:return i&&(c+=i.copyBytesInto(d,c),d[c++]=he.Newline),o&&(c+=o.copyBytesInto(d,c),d[c++]=he.Newline,d[c++]=he.Newline),c+=l.copyBytesInto(d,c),[2,d]}})})},e.prototype.computeIndirectObjectSize=function(t){var a=t[0],n=t[1],r=a.sizeInBytes()+3,i=n.sizeInBytes()+9;return r+i},e.prototype.createTrailerDict=function(){return this.context.obj({Size:this.context.largestObjectNumber+1,Root:this.context.trailerInfo.Root,Encrypt:this.context.trailerInfo.Encrypt,Info:this.context.trailerInfo.Info,ID:this.context.trailerInfo.ID})},e.prototype.computeBufferSize=function(){return na(this,void 0,void 0,function(){var t,a,n,r,i,o,l,c,d,m,f;return sa(this,function(h){switch(h.label){case 0:t=Cw.forVersion(1,7),a=t.sizeInBytes()+2,n=Cae.create(),r=this.context.enumerateIndirectObjects(),i=0,o=r.length,h.label=1;case 1:return i<o?(l=r[i],c=l[0],n.addEntry(c,a),a+=this.computeIndirectObjectSize(l),this.shouldWaitForTick(1)?[4,Zm()]:[3,3]):[3,4];case 2:h.sent(),h.label=3;case 3:return i++,[3,1];case 4:return d=a,a+=n.sizeInBytes()+1,m=xFe.of(this.createTrailerDict()),a+=m.sizeInBytes()+2,f=nE.forLastCrossRefSectionOffset(d),a+=f.sizeInBytes(),[2,{size:a,header:t,indirectObjects:r,xref:n,trailerDict:m,trailer:f}]}})})},e.forContext=function(t,a){return new e(t,a)},e})(),Eae=(function(e){ft(t,e);function t(a){var n=e.call(this)||this;return n.data=a,n}return t.prototype.clone=function(){return t.of(this.data.slice())},t.prototype.toString=function(){return"PDFInvalidObject("+this.data.length+" bytes)"},t.prototype.sizeInBytes=function(){return this.data.length},t.prototype.copyBytesInto=function(a,n){for(var r=this.data.length,i=0;i<r;i++)a[n++]=this.data[i];return r},t.of=function(a){return new t(a)},t})(Zs),jc;(function(e){e[e.Deleted=0]="Deleted",e[e.Uncompressed=1]="Uncompressed",e[e.Compressed=2]="Compressed"})(jc||(jc={}));var bFe=(function(e){ft(t,e);function t(a,n,r){r===void 0&&(r=!0);var i=e.call(this,a,r)||this;return i.computeIndex=function(){for(var o=[],l=0,c=0,d=i.entries.length;c<d;c++){var m=i.entries[c],f=i.entries[c-1];c===0?o.push(m.ref.objectNumber):m.ref.objectNumber-f.ref.objectNumber>1&&(o.push(l),o.push(m.ref.objectNumber),l=0),l+=1}return o.push(l),o},i.computeEntryTuples=function(){for(var o=new Array(i.entries.length),l=0,c=i.entries.length;l<c;l++){var d=i.entries[l];if(d.type===jc.Deleted){var m=d.type,f=d.nextFreeObjectNumber,h=d.ref;o[l]=[m,f,h.generationNumber]}if(d.type===jc.Uncompressed){var m=d.type,x=d.offset,h=d.ref;o[l]=[m,x,h.generationNumber]}if(d.type===jc.Compressed){var m=d.type,b=d.objectStreamRef,y=d.index;o[l]=[m,b.objectNumber,y]}}return o},i.computeMaxEntryByteWidths=function(){for(var o=i.entryTuplesCache.access(),l=[0,0,0],c=0,d=o.length;c<d;c++){var m=o[c],f=m[0],h=m[1],x=m[2],b=Wv(f),y=Wv(h),w=Wv(x);b>l[0]&&(l[0]=b),y>l[1]&&(l[1]=y),w>l[2]&&(l[2]=w)}return l},i.entries=n||[],i.entryTuplesCache=Pl.populatedBy(i.computeEntryTuples),i.maxByteWidthsCache=Pl.populatedBy(i.computeMaxEntryByteWidths),i.indexCache=Pl.populatedBy(i.computeIndex),a.set(ue.of("Type"),ue.of("XRef")),i}return t.prototype.addDeletedEntry=function(a,n){var r=jc.Deleted;this.entries.push({type:r,ref:a,nextFreeObjectNumber:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addUncompressedEntry=function(a,n){var r=jc.Uncompressed;this.entries.push({type:r,ref:a,offset:n}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.addCompressedEntry=function(a,n,r){var i=jc.Compressed;this.entries.push({type:i,ref:a,objectStreamRef:n,index:r}),this.entryTuplesCache.invalidate(),this.maxByteWidthsCache.invalidate(),this.indexCache.invalidate(),this.contentsCache.invalidate()},t.prototype.clone=function(a){var n=this,r=n.dict,i=n.entries,o=n.encode;return t.of(r.clone(a),i.slice(),o)},t.prototype.getContentsString=function(){for(var a=this.entryTuplesCache.access(),n=this.maxByteWidthsCache.access(),r="",i=0,o=a.length;i<o;i++){for(var l=a[i],c=l[0],d=l[1],m=l[2],f=Ip(Lp(c)),h=Ip(Lp(d)),x=Ip(Lp(m)),b=n[0]-1;b>=0;b--)r+=(f[b]||0).toString(2);for(var b=n[1]-1;b>=0;b--)r+=(h[b]||0).toString(2);for(var b=n[2]-1;b>=0;b--)r+=(x[b]||0).toString(2)}return r},t.prototype.getUnencodedContents=function(){for(var a=this.entryTuplesCache.access(),n=this.maxByteWidthsCache.access(),r=new Uint8Array(this.getUnencodedContentsSize()),i=0,o=0,l=a.length;o<l;o++){for(var c=a[o],d=c[0],m=c[1],f=c[2],h=Ip(Lp(d)),x=Ip(Lp(m)),b=Ip(Lp(f)),y=n[0]-1;y>=0;y--)r[i++]=h[y]||0;for(var y=n[1]-1;y>=0;y--)r[i++]=x[y]||0;for(var y=n[2]-1;y>=0;y--)r[i++]=b[y]||0}return r},t.prototype.getUnencodedContentsSize=function(){var a=this.maxByteWidthsCache.access(),n=eLe(a);return n*this.entries.length},t.prototype.updateDict=function(){e.prototype.updateDict.call(this);var a=this.maxByteWidthsCache.access(),n=this.indexCache.access(),r=this.dict.context;this.dict.set(ue.of("W"),r.obj(a)),this.dict.set(ue.of("Index"),r.obj(n))},t.create=function(a,n){n===void 0&&(n=!0);var r=new t(a,[],n);return r.addDeletedEntry(Ua.of(0,65535),0),r},t.of=function(a,n,r){return r===void 0&&(r=!0),new t(a,n,r)},t})(aE),vFe=(function(e){ft(t,e);function t(a,n,r,i){var o=e.call(this,a,n)||this;return o.encodeStreams=r,o.objectsPerStream=i,o}return t.prototype.computeBufferSize=function(){return na(this,void 0,void 0,function(){var a,n,r,i,o,l,c,d,b,y,m,j,f,h,w,x,b,y,w,j,N,k,D,C;return sa(this,function(S){switch(S.label){case 0:a=this.context.largestObjectNumber+1,n=Cw.forVersion(1,7),r=n.sizeInBytes()+2,i=bFe.create(this.createTrailerDict(),this.encodeStreams),o=[],l=[],c=[],d=this.context.enumerateIndirectObjects(),b=0,y=d.length,S.label=1;case 1:return b<y?(m=d[b],j=m[0],f=m[1],h=j===this.context.trailerInfo.Encrypt||f instanceof _r||f instanceof Eae||j.generationNumber!==0,h?(o.push(m),i.addUncompressedEntry(j,r),r+=this.computeIndirectObjectSize(m),this.shouldWaitForTick(1)?[4,Zm()]:[3,3]):[3,4]):[3,6];case 2:S.sent(),S.label=3;case 3:return[3,5];case 4:w=D1(l),x=D1(c),(!w||w.length%this.objectsPerStream===0)&&(w=[],l.push(w),x=Ua.of(a++),c.push(x)),i.addCompressedEntry(j,x,w.length),w.push(m),S.label=5;case 5:return b++,[3,1];case 6:b=0,y=l.length,S.label=7;case 7:return b<y?(w=l[b],j=c[b],N=Tae.withContextAndObjects(this.context,w,this.encodeStreams),i.addUncompressedEntry(j,r),r+=this.computeIndirectObjectSize([j,N]),o.push([j,N]),this.shouldWaitForTick(w.length)?[4,Zm()]:[3,9]):[3,10];case 8:S.sent(),S.label=9;case 9:return b++,[3,7];case 10:return k=Ua.of(a++),i.dict.set(ue.of("Size"),Qt.of(a)),i.addUncompressedEntry(k,r),D=r,r+=this.computeIndirectObjectSize([k,i]),o.push([k,i]),C=nE.forLastCrossRefSectionOffset(D),r+=C.sizeInBytes(),[2,{size:r,header:n,indirectObjects:o,trailer:C}]}})})},t.forContext=function(a,n,r,i){return r===void 0&&(r=!0),i===void 0&&(i=50),new t(a,n,r,i)},t})(Dae),qt=(function(e){ft(t,e);function t(a){var n=e.call(this)||this;return n.value=a,n}return t.prototype.asBytes=function(){for(var a=this.value+(this.value.length%2===1?"0":""),n=a.length,r=new Uint8Array(a.length/2),i=0,o=0;i<n;){var l=parseInt(a.substring(i,i+2),16);r[o]=l,i+=2,o+=1}return r},t.prototype.decodeText=function(){var a=this.asBytes();return xae(a)?fae(a):Aae(a)},t.prototype.decodeDate=function(){var a=this.decodeText(),n=dae(a);if(!n)throw new Sae(a);return n},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"<"+this.value+">"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(a,n){return a[n++]=he.LessThan,n+=Ms(this.value,a,n),a[n++]=he.GreaterThan,this.value.length+2},t.of=function(a){return new t(a)},t.fromText=function(a){for(var n=sLe(a),r="",i=0,o=n.length;i<o;i++)r+=fb(n[i],4);return new t(r)},t})(Zs),O1=(function(){function e(t,a){this.encoding=t===Mx.ZapfDingbats?vv.ZapfDingbats:t===Mx.Symbol?vv.Symbol:vv.WinAnsi,this.font=LLe.load(t),this.fontName=this.font.FontName,this.customName=a}return e.prototype.encodeText=function(t){for(var a=this.encodeTextAsGlyphs(t),n=new Array(a.length),r=0,i=a.length;r<i;r++)n[r]=kw(a[r].code);return qt.of(n.join(""))},e.prototype.widthOfTextAtSize=function(t,a){for(var n=this.encodeTextAsGlyphs(t),r=0,i=0,o=n.length;i<o;i++){var l=n[i].name,c=(n[i+1]||{}).name,d=this.font.getXAxisKerningForPair(l,c)||0;r+=this.widthOfGlyph(l)+d}var m=a/1e3;return r*m},e.prototype.heightOfFontAtSize=function(t,a){a===void 0&&(a={});var n=a.descender,r=n===void 0?!0:n,i=this.font,o=i.Ascender,l=i.Descender,c=i.FontBBox,d=o||c[3],m=l||c[1],f=d-m;return r||(f+=l||0),f/1e3*t},e.prototype.sizeOfFontAtHeight=function(t){var a=this.font,n=a.Ascender,r=a.Descender,i=a.FontBBox,o=n||i[3],l=r||i[1];return 1e3*t/(o-l)},e.prototype.embedIntoContext=function(t,a){var n=t.obj({Type:"Font",Subtype:"Type1",BaseFont:this.customName||this.fontName,Encoding:this.encoding===vv.WinAnsi?"WinAnsiEncoding":void 0});return a?(t.assign(a,n),a):t.register(n)},e.prototype.widthOfGlyph=function(t){return this.font.getWidthOfGlyph(t)||250},e.prototype.encodeTextAsGlyphs=function(t){for(var a=Array.from(t),n=new Array(a.length),r=0,i=a.length;r<i;r++){var o=HIe(a[r]);n[r]=this.encoding.encodeUnicodeCodePoint(o)}return n},e.for=function(t,a){return new e(t,a)},e})(),yFe=function(e,t){for(var a=new Array(e.length),n=0,r=e.length;n<r;n++){var i=e[n],o=$U(Kv(t(i))),l=$U.apply(void 0,i.codePoints.map(PFe));a[n]=[o,l]}return wFe(a)},wFe=function(e){return`/CIDInit /ProcSet findresource begin 114312 dict begin 1144begincmap 1145/CIDSystemInfo << 1146 /Registry (Adobe) 1147 /Ordering (UCS) 1148 /Supplement 0 1149>> def 1150/CMapName /Adobe-Identity-UCS def 1151/CMapType 2 def 11521 begincodespacerange 1153<0000><ffff> 1154endcodespacerange 1155`+e.length+` beginbfchar 1156`+e.map(function(t){var a=t[0],n=t[1];return a+" "+n}).join(` 1157`)+` 1158endbfchar 1159endcmap 1160CMapName currentdict /CMap defineresource pop 1161end 1162end`},$U=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"<"+e.join("")+">"},Kv=function(e){return fb(e,4)},PFe=function(e){if(rLe(e))return Kv(e);if(iLe(e)){var t=pae(e),a=mae(e);return""+Kv(t)+Kv(a)}var n=kw(e),r="0x"+n+" is not a valid UTF-8 or UTF-16 codepoint.";throw new Error(r)},jFe=function(e){var t=0,a=function(n){t|=1<<n-1};return e.fixedPitch&&a(1),e.serif&&a(2),a(3),e.script&&a(4),e.nonsymbolic&&a(6),e.italic&&a(7),e.allCap&&a(17),e.smallCap&&a(18),e.forceBold&&a(19),t},kFe=function(e){var t=e["OS/2"]?e["OS/2"].sFamilyClass:0,a=jFe({fixedPitch:e.post.isFixedPitch,serif:1<=t&&t<=7,script:t===10,italic:e.head.macStyle.italic});return a},qa=(function(e){ft(t,e);function t(a){var n=e.call(this)||this;return n.value=a,n}return t.prototype.asBytes=function(){for(var a=[],n="",r=!1,i=function(f){f!==void 0&&a.push(f),r=!1},o=0,l=this.value.length;o<l;o++){var c=this.value[o],d=$t(c),m=this.value[o+1];r?d===he.Newline||d===he.CarriageReturn?i():d===he.n?i(he.Newline):d===he.r?i(he.CarriageReturn):d===he.t?i(he.Tab):d===he.b?i(he.Backspace):d===he.f?i(he.FormFeed):d===he.LeftParen?i(he.LeftParen):d===he.RightParen?i(he.RightParen):d===he.Backspace?i(he.BackSlash):d>=he.Zero&&d<=he.Seven?(n+=c,(n.length===3||!(m>="0"&&m<="7"))&&(i(parseInt(n,8)),n="")):i(d):d===he.BackSlash?r=!0:i(d)}return new Uint8Array(a)},t.prototype.decodeText=function(){var a=this.asBytes();return xae(a)?fae(a):Aae(a)},t.prototype.decodeDate=function(){var a=this.decodeText(),n=dae(a);if(!n)throw new Sae(a);return n},t.prototype.asString=function(){return this.value},t.prototype.clone=function(){return t.of(this.value)},t.prototype.toString=function(){return"("+this.value+")"},t.prototype.sizeInBytes=function(){return this.value.length+2},t.prototype.copyBytesInto=function(a,n){return a[n++]=he.LeftParen,n+=Ms(this.value,a,n),a[n++]=he.RightParen,this.value.length+2},t.of=function(a){return new t(a)},t.fromDate=function(a){var n=Bi(String(a.getUTCFullYear()),4,"0"),r=Bi(String(a.getUTCMonth()+1),2,"0"),i=Bi(String(a.getUTCDate()),2,"0"),o=Bi(String(a.getUTCHours()),2,"0"),l=Bi(String(a.getUTCMinutes()),2,"0"),c=Bi(String(a.getUTCSeconds()),2,"0");return new t("D:"+n+r+i+o+l+c+"Z")},t})(Zs),sE=(function(){function e(t,a,n,r){var i=this;this.allGlyphsInFontSortedById=function(){for(var o=new Array(i.font.characterSet.length),l=0,c=o.length;l<c;l++){var d=i.font.characterSet[l];o[l]=i.font.glyphForCodePoint(d)}return JIe(o.sort(ZIe),function(m){return m.id})},this.font=t,this.scale=1e3/this.font.unitsPerEm,this.fontData=a,this.fontName=this.font.postscriptName||"Font",this.customName=n,this.fontFeatures=r,this.baseFontName="",this.glyphCache=Pl.populatedBy(this.allGlyphsInFontSortedById)}return e.for=function(t,a,n,r){return na(this,void 0,void 0,function(){var i;return sa(this,function(o){switch(o.label){case 0:return[4,t.create(a)];case 1:return i=o.sent(),[2,new e(i,a,n,r)]}})})},e.prototype.encodeText=function(t){for(var a=this.font.layout(t,this.fontFeatures).glyphs,n=new Array(a.length),r=0,i=a.length;r<i;r++)n[r]=fb(a[r].id,4);return qt.of(n.join(""))},e.prototype.widthOfTextAtSize=function(t,a){for(var n=this.font.layout(t,this.fontFeatures).glyphs,r=0,i=0,o=n.length;i<o;i++)r+=n[i].advanceWidth*this.scale;var l=a/1e3;return r*l},e.prototype.heightOfFontAtSize=function(t,a){a===void 0&&(a={});var n=a.descender,r=n===void 0?!0:n,i=this.font,o=i.ascent,l=i.descent,c=i.bbox,d=(o||c.maxY)*this.scale,m=(l||c.minY)*this.scale,f=d-m;return r||(f-=Math.abs(l)||0),f/1e3*t},e.prototype.sizeOfFontAtHeight=function(t){var a=this.font,n=a.ascent,r=a.descent,i=a.bbox,o=(n||i.maxY)*this.scale,l=(r||i.minY)*this.scale;return 1e3*t/(o-l)},e.prototype.embedIntoContext=function(t,a){return this.baseFontName=this.customName||t.addRandomSuffix(this.fontName),this.embedFontDict(t,a)},e.prototype.embedFontDict=function(t,a){return na(this,void 0,void 0,function(){var n,r,i;return sa(this,function(o){switch(o.label){case 0:return[4,this.embedCIDFontDict(t)];case 1:return n=o.sent(),r=this.embedUnicodeCmap(t),i=t.obj({Type:"Font",Subtype:"Type0",BaseFont:this.baseFontName,Encoding:"Identity-H",DescendantFonts:[n],ToUnicode:r}),a?(t.assign(a,i),[2,a]):[2,t.register(i)]}})})},e.prototype.isCFF=function(){return this.font.cff},e.prototype.embedCIDFontDict=function(t){return na(this,void 0,void 0,function(){var a,n;return sa(this,function(r){switch(r.label){case 0:return[4,this.embedFontDescriptor(t)];case 1:return a=r.sent(),n=t.obj({Type:"Font",Subtype:this.isCFF()?"CIDFontType0":"CIDFontType2",CIDToGIDMap:"Identity",BaseFont:this.baseFontName,CIDSystemInfo:{Registry:qa.of("Adobe"),Ordering:qa.of("Identity"),Supplement:0},FontDescriptor:a,W:this.computeWidths()}),[2,t.register(n)]}})})},e.prototype.embedFontDescriptor=function(t){return na(this,void 0,void 0,function(){var a,n,r,i,o,l,c,d,m,f,h,x,b,y,w;return sa(this,function(j){switch(j.label){case 0:return[4,this.embedFontStream(t)];case 1:return a=j.sent(),n=this.scale,r=this.font,i=r.italicAngle,o=r.ascent,l=r.descent,c=r.capHeight,d=r.xHeight,m=this.font.bbox,f=m.minX,h=m.minY,x=m.maxX,b=m.maxY,y=t.obj((w={Type:"FontDescriptor",FontName:this.baseFontName,Flags:kFe(this.font),FontBBox:[f*n,h*n,x*n,b*n],ItalicAngle:i,Ascent:o*n,Descent:l*n,CapHeight:(c||o)*n,XHeight:(d||0)*n,StemV:0},w[this.isCFF()?"FontFile3":"FontFile2"]=a,w)),[2,t.register(y)]}})})},e.prototype.serializeFont=function(){return na(this,void 0,void 0,function(){return sa(this,function(t){return[2,this.fontData]})})},e.prototype.embedFontStream=function(t){return na(this,void 0,void 0,function(){var a,n,r;return sa(this,function(i){switch(i.label){case 0:return r=(n=t).flateStream,[4,this.serializeFont()];case 1:return a=r.apply(n,[i.sent(),{Subtype:this.isCFF()?"CIDFontType0C":void 0}]),[2,t.register(a)]}})})},e.prototype.embedUnicodeCmap=function(t){var a=yFe(this.glyphCache.access(),this.glyphId.bind(this)),n=t.flateStream(a);return t.register(n)},e.prototype.glyphId=function(t){return t?t.id:-1},e.prototype.computeWidths=function(){for(var t=this.glyphCache.access(),a=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r],l=t[r-1],c=this.glyphId(o),d=this.glyphId(l);r===0?a.push(c):c-d!==1&&(a.push(n),a.push(c),n=[]),n.push(o.advanceWidth*this.scale)}return a.push(n),a},e})(),NFe=(function(e){ft(t,e);function t(a,n,r,i){var o=e.call(this,a,n,r,i)||this;return o.subset=o.font.createSubset(),o.glyphs=[],o.glyphCache=Pl.populatedBy(function(){return o.glyphs}),o.glyphIdMap=new Map,o}return t.for=function(a,n,r,i){return na(this,void 0,void 0,function(){var o;return sa(this,function(l){switch(l.label){case 0:return[4,a.create(n)];case 1:return o=l.sent(),[2,new t(o,n,r,i)]}})})},t.prototype.encodeText=function(a){for(var n=this.font.layout(a,this.fontFeatures).glyphs,r=new Array(n.length),i=0,o=n.length;i<o;i++){var l=n[i],c=this.subset.includeGlyph(l);this.glyphs[c-1]=l,this.glyphIdMap.set(l.id,c),r[i]=fb(c,4)}return this.glyphCache.invalidate(),qt.of(r.join(""))},t.prototype.isCFF=function(){return this.subset.cff},t.prototype.glyphId=function(a){return a?this.glyphIdMap.get(a.id):-1},t.prototype.serializeFont=function(){var a=this;return new Promise(function(n,r){var i=[];a.subset.encodeStream().on("data",function(o){return i.push(o)}).on("end",function(){return n(YIe(i))}).on("error",function(o){return r(o)})})},t})(sE),LT;(function(e){e.Source="Source",e.Data="Data",e.Alternative="Alternative",e.Supplement="Supplement",e.EncryptedPayload="EncryptedPayload",e.FormData="EncryptedPayload",e.Schema="Schema",e.Unspecified="Unspecified"})(LT||(LT={}));var AFe=(function(){function e(t,a,n){n===void 0&&(n={}),this.fileData=t,this.fileName=a,this.options=n}return e.for=function(t,a,n){return n===void 0&&(n={}),new e(t,a,n)},e.prototype.embedIntoContext=function(t,a){return na(this,void 0,void 0,function(){var n,r,i,o,l,c,d,m,f;return sa(this,function(h){return n=this.options,r=n.mimeType,i=n.description,o=n.creationDate,l=n.modificationDate,c=n.afRelationship,d=t.flateStream(this.fileData,{Type:"EmbeddedFile",Subtype:r??void 0,Params:{Size:this.fileData.length,CreationDate:o?qa.fromDate(o):void 0,ModDate:l?qa.fromDate(l):void 0}}),m=t.register(d),f=t.obj({Type:"Filespec",F:qa.of(this.fileName),UF:qt.fromText(this.fileName),EF:{F:m},Desc:i?qt.fromText(i):void 0,AFRelationship:c??void 0}),a?(t.assign(a,f),[2,a]):[2,t.register(f)]})})},e})(),XU=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],fm;(function(e){e.DeviceGray="DeviceGray",e.DeviceRGB="DeviceRGB",e.DeviceCMYK="DeviceCMYK"})(fm||(fm={}));var SFe={1:fm.DeviceGray,3:fm.DeviceRGB,4:fm.DeviceCMYK},Mae=(function(){function e(t,a,n,r,i){this.imageData=t,this.bitsPerComponent=a,this.width=n,this.height=r,this.colorSpace=i}return e.for=function(t){return na(this,void 0,void 0,function(){var a,n,r,i,o,l,c,d,m,f;return sa(this,function(h){if(a=new DataView(t.buffer),n=a.getUint16(0),n!==65496)throw new Error("SOI not found in JPEG");for(r=2;r<a.byteLength&&(i=a.getUint16(r),r+=2,!XU.includes(i));)r+=a.getUint16(r);if(!XU.includes(i))throw new Error("Invalid JPEG");if(r+=2,o=a.getUint8(r++),l=a.getUint16(r),r+=2,c=a.getUint16(r),r+=2,d=a.getUint8(r++),m=SFe[d],!m)throw new Error("Unknown JPEG channel.");return f=m,[2,new e(t,o,c,l,f)]})})},e.prototype.embedIntoContext=function(t,a){return na(this,void 0,void 0,function(){var n;return sa(this,function(r){return n=t.stream(this.imageData,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.bitsPerComponent,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode",Decode:this.colorSpace===fm.DeviceCMYK?[1,0,1,0,1,0,1,0]:void 0}),a?(t.assign(a,n),[2,a]):[2,t.register(n)]})})},e})(),ct={};ct.toRGBA8=function(e){var t=e.width,a=e.height;if(e.tabs.acTL==null)return[ct.toRGBA8.decodeImage(e.data,t,a,e).buffer];var n=[];e.frames[0].data==null&&(e.frames[0].data=e.data);for(var r=t*a*4,i=new Uint8Array(r),o=new Uint8Array(r),l=new Uint8Array(r),c=0;c<e.frames.length;c++){var d=e.frames[c],m=d.rect.x,f=d.rect.y,h=d.rect.width,x=d.rect.height,b=ct.toRGBA8.decodeImage(d.data,h,x,e);if(c!=0)for(var y=0;y<r;y++)l[y]=i[y];if(d.blend==0?ct._copyTile(b,h,x,i,t,a,m,f,0):d.blend==1&&ct._copyTile(b,h,x,i,t,a,m,f,1),n.push(i.buffer.slice(0)),d.dispose!=0){if(d.dispose==1)ct._copyTile(o,h,x,i,t,a,m,f,0);else if(d.dispose==2)for(var y=0;y<r;y++)i[y]=l[y]}}return n};ct.toRGBA8.decodeImage=function(e,t,a,n){var r=t*a,i=ct.decode._getBPP(n),o=Math.ceil(t*i/8),l=new Uint8Array(r*4),c=new Uint32Array(l.buffer),d=n.ctype,m=n.depth,f=ct._bin.readUshort;if(d==6){var h=r<<2;if(m==8)for(var x=0;x<h;x+=4)l[x]=e[x],l[x+1]=e[x+1],l[x+2]=e[x+2],l[x+3]=e[x+3];if(m==16)for(var x=0;x<h;x++)l[x]=e[x<<1]}else if(d==2){var b=n.tabs.tRNS;if(b==null){if(m==8)for(var x=0;x<r;x++){var y=x*3;c[x]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y]}if(m==16)for(var x=0;x<r;x++){var y=x*6;c[x]=255<<24|e[y+4]<<16|e[y+2]<<8|e[y]}}else{var w=b[0],j=b[1],N=b[2];if(m==8)for(var x=0;x<r;x++){var k=x<<2,y=x*3;c[x]=255<<24|e[y+2]<<16|e[y+1]<<8|e[y],e[y]==w&&e[y+1]==j&&e[y+2]==N&&(l[k+3]=0)}if(m==16)for(var x=0;x<r;x++){var k=x<<2,y=x*6;c[x]=255<<24|e[y+4]<<16|e[y+2]<<8|e[y],f(e,y)==w&&f(e,y+2)==j&&f(e,y+4)==N&&(l[k+3]=0)}}}else if(d==3){var D=n.tabs.PLTE,C=n.tabs.tRNS,S=C?C.length:0;if(m==1)for(var A=0;A<a;A++)for(var E=A*o,R=A*t,x=0;x<t;x++){var k=R+x<<2,F=e[E+(x>>3)]>>7-((x&7)<<0)&1,I=3*F;l[k]=D[I],l[k+1]=D[I+1],l[k+2]=D[I+2],l[k+3]=F<S?C[F]:255}if(m==2)for(var A=0;A<a;A++)for(var E=A*o,R=A*t,x=0;x<t;x++){var k=R+x<<2,F=e[E+(x>>2)]>>6-((x&3)<<1)&3,I=3*F;l[k]=D[I],l[k+1]=D[I+1],l[k+2]=D[I+2],l[k+3]=F<S?C[F]:255}if(m==4)for(var A=0;A<a;A++)for(var E=A*o,R=A*t,x=0;x<t;x++){var k=R+x<<2,F=e[E+(x>>1)]>>4-((x&1)<<2)&15,I=3*F;l[k]=D[I],l[k+1]=D[I+1],l[k+2]=D[I+2],l[k+3]=F<S?C[F]:255}if(m==8)for(var x=0;x<r;x++){var k=x<<2,F=e[x],I=3*F;l[k]=D[I],l[k+1]=D[I+1],l[k+2]=D[I+2],l[k+3]=F<S?C[F]:255}}else if(d==4){if(m==8)for(var x=0;x<r;x++){var k=x<<2,H=x<<1,_=e[H];l[k]=_,l[k+1]=_,l[k+2]=_,l[k+3]=e[H+1]}if(m==16)for(var x=0;x<r;x++){var k=x<<2,H=x<<2,_=e[H];l[k]=_,l[k+1]=_,l[k+2]=_,l[k+3]=e[H+2]}}else if(d==0)for(var w=n.tabs.tRNS?n.tabs.tRNS:-1,A=0;A<a;A++){var V=A*o,W=A*t;if(m==1)for(var B=0;B<t;B++){var _=255*(e[V+(B>>>3)]>>>7-(B&7)&1),K=_==w*255?0:255;c[W+B]=K<<24|_<<16|_<<8|_}else if(m==2)for(var B=0;B<t;B++){var _=85*(e[V+(B>>>2)]>>>6-((B&3)<<1)&3),K=_==w*85?0:255;c[W+B]=K<<24|_<<16|_<<8|_}else if(m==4)for(var B=0;B<t;B++){var _=17*(e[V+(B>>>1)]>>>4-((B&1)<<2)&15),K=_==w*17?0:255;c[W+B]=K<<24|_<<16|_<<8|_}else if(m==8)for(var B=0;B<t;B++){var _=e[V+B],K=_==w?0:255;c[W+B]=K<<24|_<<16|_<<8|_}else if(m==16)for(var B=0;B<t;B++){var _=e[V+(B<<1)],K=f(e,V+(B<<x))==w?0:255;c[W+B]=K<<24|_<<16|_<<8|_}}return l};ct.decode=function(e){for(var t=new Uint8Array(e),a=8,n=ct._bin,r=n.readUshort,i=n.readUint,o={tabs:{},frames:[]},l=new Uint8Array(t.length),c=0,d,m=0,f=[137,80,78,71,13,10,26,10],h=0;h<8;h++)if(t[h]!=f[h])throw"The input is not a PNG file!";for(;a<t.length;){var x=n.readUint(t,a);a+=4;var b=n.readASCII(t,a,4);if(a+=4,b=="IHDR")ct.decode._IHDR(t,a,o);else if(b=="IDAT"){for(var h=0;h<x;h++)l[c+h]=t[a+h];c+=x}else if(b=="acTL")o.tabs[b]={num_frames:i(t,a),num_plays:i(t,a+4)},d=new Uint8Array(t.length);else if(b=="fcTL"){if(m!=0){var y=o.frames[o.frames.length-1];y.data=ct.decode._decompress(o,d.slice(0,m),y.rect.width,y.rect.height),m=0}var w={x:i(t,a+12),y:i(t,a+16),width:i(t,a+4),height:i(t,a+8)},j=r(t,a+22);j=r(t,a+20)/(j==0?100:j);var N={rect:w,delay:Math.round(j*1e3),dispose:t[a+24],blend:t[a+25]};o.frames.push(N)}else if(b=="fdAT"){for(var h=0;h<x-4;h++)d[m+h]=t[a+h+4];m+=x-4}else if(b=="pHYs")o.tabs[b]=[n.readUint(t,a),n.readUint(t,a+4),t[a+8]];else if(b=="cHRM"){o.tabs[b]=[];for(var h=0;h<8;h++)o.tabs[b].push(n.readUint(t,a+h*4))}else if(b=="tEXt"){o.tabs[b]==null&&(o.tabs[b]={});var k=n.nextZero(t,a),D=n.readASCII(t,a,k-a),C=n.readASCII(t,k+1,a+x-k-1);o.tabs[b][D]=C}else if(b=="iTXt"){o.tabs[b]==null&&(o.tabs[b]={});var k=0,S=a;k=n.nextZero(t,S);var D=n.readASCII(t,S,k-S);S=k+1,t[S],t[S+1],S+=2,k=n.nextZero(t,S),n.readASCII(t,S,k-S),S=k+1,k=n.nextZero(t,S),n.readUTF8(t,S,k-S),S=k+1;var C=n.readUTF8(t,S,x-(S-a));o.tabs[b][D]=C}else if(b=="PLTE")o.tabs[b]=n.readBytes(t,a,x);else if(b=="hIST"){var A=o.tabs.PLTE.length/3;o.tabs[b]=[];for(var h=0;h<A;h++)o.tabs[b].push(r(t,a+h*2))}else if(b=="tRNS")o.ctype==3?o.tabs[b]=n.readBytes(t,a,x):o.ctype==0?o.tabs[b]=r(t,a):o.ctype==2&&(o.tabs[b]=[r(t,a),r(t,a+2),r(t,a+4)]);else if(b=="gAMA")o.tabs[b]=n.readUint(t,a)/1e5;else if(b=="sRGB")o.tabs[b]=t[a];else if(b=="bKGD")o.ctype==0||o.ctype==4?o.tabs[b]=[r(t,a)]:o.ctype==2||o.ctype==6?o.tabs[b]=[r(t,a),r(t,a+2),r(t,a+4)]:o.ctype==3&&(o.tabs[b]=t[a]);else if(b=="IEND")break;a+=x,n.readUint(t,a),a+=4}if(m!=0){var y=o.frames[o.frames.length-1];y.data=ct.decode._decompress(o,d.slice(0,m),y.rect.width,y.rect.height),m=0}return o.data=ct.decode._decompress(o,l,o.width,o.height),delete o.compress,delete o.interlace,delete o.filter,o};ct.decode._decompress=function(e,t,a,n){var r=ct.decode._getBPP(e),i=Math.ceil(a*r/8),o=new Uint8Array((i+1+e.interlace)*n);return t=ct.decode._inflate(t,o),e.interlace==0?t=ct.decode._filterZero(t,e,0,a,n):e.interlace==1&&(t=ct.decode._readInterlace(t,e)),t};ct.decode._inflate=function(e,t){var a=ct.inflateRaw(new Uint8Array(e.buffer,2,e.length-6),t);return a};ct.inflateRaw=(function(){var e={};return e.H={},e.H.N=function(t,a){var n=Uint8Array,r=0,i=0,o=0,l=0,c=0,d=0,m=0,f=0,h=0,x,b;if(t[0]==3&&t[1]==0)return a||new n(0);var y=e.H,w=y.b,j=y.e,N=y.R,k=y.n,D=y.A,C=y.Z,S=y.m,A=a==null;for(A&&(a=new n(t.length>>>2<<3));r==0;){if(r=w(t,h,1),i=w(t,h+1,2),h+=3,i==0){(h&7)!=0&&(h+=8-(h&7));var E=(h>>>3)+4,R=t[E-4]|t[E-3]<<8;A&&(a=e.H.W(a,f+R)),a.set(new n(t.buffer,t.byteOffset+E,R),f),h=E+R<<3,f+=R;continue}if(A&&(a=e.H.W(a,f+(1<<17))),i==1&&(x=S.J,b=S.h,d=511,m=31),i==2){o=j(t,h,5)+257,l=j(t,h+5,5)+1,c=j(t,h+10,4)+4,h+=14;for(var F=1,I=0;I<38;I+=2)S.Q[I]=0,S.Q[I+1]=0;for(var I=0;I<c;I++){var H=j(t,h+I*3,3);S.Q[(S.X[I]<<1)+1]=H,H>F&&(F=H)}h+=3*c,k(S.Q,F),D(S.Q,F,S.u),x=S.w,b=S.d,h=N(S.u,(1<<F)-1,o+l,t,h,S.v);var _=y.V(S.v,0,o,S.C);d=(1<<_)-1;var V=y.V(S.v,o,l,S.D);m=(1<<V)-1,k(S.C,_),D(S.C,_,x),k(S.D,V),D(S.D,V,b)}for(;;){var W=x[C(t,h)&d];h+=W&15;var B=W>>>4;if(!(B>>>8))a[f++]=B;else{if(B==256)break;var K=f+B-254;if(B>264){var ae=S.q[B-257];K=f+(ae>>>3)+j(t,h,ae&7),h+=ae&7}var $=b[C(t,h)&m];h+=$&15;var Z=$>>>4,O=S.c[Z],Y=(O>>>4)+w(t,h,O&15);for(h+=O&15;f<K;)a[f]=a[f++-Y],a[f]=a[f++-Y],a[f]=a[f++-Y],a[f]=a[f++-Y];f=K}}}return a.length==f?a:a.slice(0,f)},e.H.W=function(t,a){var n=t.length;if(a<=n)return t;var r=new Uint8Array(n<<1);return r.set(t,0),r},e.H.R=function(t,a,n,r,i,o){for(var l=e.H.e,c=e.H.Z,d=0;d<n;){var m=t[c(r,i)&a];i+=m&15;var f=m>>>4;if(f<=15)o[d]=f,d++;else{var h=0,x=0;f==16?(x=3+l(r,i,2),i+=2,h=o[d-1]):f==17?(x=3+l(r,i,3),i+=3):f==18&&(x=11+l(r,i,7),i+=7);for(var b=d+x;d<b;)o[d]=h,d++}}return i},e.H.V=function(t,a,n,r){for(var i=0,o=0,l=r.length>>>1;o<n;){var c=t[o+a];r[o<<1]=0,r[(o<<1)+1]=c,c>i&&(i=c),o++}for(;o<l;)r[o<<1]=0,r[(o<<1)+1]=0,o++;return i},e.H.n=function(t,a){for(var n=e.H.m,r=t.length,i,o,l,c,d,m=n.j,c=0;c<=a;c++)m[c]=0;for(c=1;c<r;c+=2)m[t[c]]++;var f=n.K;for(i=0,m[0]=0,o=1;o<=a;o++)i=i+m[o-1]<<1,f[o]=i;for(l=0;l<r;l+=2)d=t[l+1],d!=0&&(t[l]=f[d],f[d]++)},e.H.A=function(t,a,n){for(var r=t.length,i=e.H.m,o=i.r,l=0;l<r;l+=2)if(t[l+1]!=0)for(var c=l>>1,d=t[l+1],m=c<<4|d,f=a-d,h=t[l]<<f,x=h+(1<<f);h!=x;){var b=o[h]>>>15-a;n[b]=m,h++}},e.H.l=function(t,a){for(var n=e.H.m.r,r=15-a,i=0;i<t.length;i+=2){var o=t[i]<<a-t[i+1];t[i]=n[o]>>>r}},e.H.M=function(t,a,n){n=n<<(a&7);var r=a>>>3;t[r]|=n,t[r+1]|=n>>>8},e.H.I=function(t,a,n){n=n<<(a&7);var r=a>>>3;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},e.H.e=function(t,a,n){return(t[a>>>3]|t[(a>>>3)+1]<<8)>>>(a&7)&(1<<n)-1},e.H.b=function(t,a,n){return(t[a>>>3]|t[(a>>>3)+1]<<8|t[(a>>>3)+2]<<16)>>>(a&7)&(1<<n)-1},e.H.Z=function(t,a){return(t[a>>>3]|t[(a>>>3)+1]<<8|t[(a>>>3)+2]<<16)>>>(a&7)},e.H.i=function(t,a){return(t[a>>>3]|t[(a>>>3)+1]<<8|t[(a>>>3)+2]<<16|t[(a>>>3)+3]<<24)>>>(a&7)},e.H.m=(function(){var t=Uint16Array,a=Uint32Array;return{K:new t(16),j:new t(16),X:[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S:[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,999,999,999],T:[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0],q:new t(32),p:[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,65535,65535],z:[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0],c:new a(32),J:new t(512),_:[],h:new t(32),$:[],w:new t(32768),C:[],v:[],d:new t(32768),D:[],u:new t(512),Q:[],r:new t(32768),s:new a(286),Y:new a(30),a:new a(19),t:new a(15e3),k:new t(65536),g:new t(32768)}})(),(function(){for(var t=e.H.m,a=32768,n=0;n<a;n++){var r=n;r=(r&2863311530)>>>1|(r&1431655765)<<1,r=(r&3435973836)>>>2|(r&858993459)<<2,r=(r&4042322160)>>>4|(r&252645135)<<4,r=(r&4278255360)>>>8|(r&16711935)<<8,t.r[n]=(r>>>16|r<<16)>>>17}function i(o,l,c){for(;l--!=0;)o.push(0,c)}for(var n=0;n<32;n++)t.q[n]=t.S[n]<<3|t.T[n],t.c[n]=t.p[n]<<4|t.z[n];i(t._,144,8),i(t._,112,9),i(t._,24,7),i(t._,8,8),e.H.n(t._,9),e.H.A(t._,9,t.J),e.H.l(t._,9),i(t.$,32,5),e.H.n(t.$,5),e.H.A(t.$,5,t.h),e.H.l(t.$,5),i(t.Q,19,0),i(t.C,286,0),i(t.D,30,0),i(t.v,320,0)})(),e.H.N})();ct.decode._readInterlace=function(e,t){for(var a=t.width,n=t.height,r=ct.decode._getBPP(t),i=r>>3,o=Math.ceil(a*r/8),l=new Uint8Array(n*o),c=0,d=[0,0,4,0,2,0,1],m=[0,4,0,2,0,1,0],f=[8,8,8,4,4,2,2],h=[8,8,4,4,2,2,1],x=0;x<7;){for(var b=f[x],y=h[x],w=0,j=0,N=d[x];N<n;)N+=b,j++;for(var k=m[x];k<a;)k+=y,w++;var D=Math.ceil(w*r/8);ct.decode._filterZero(e,t,c,w,j);for(var C=0,S=d[x];S<n;){for(var A=m[x],E=c+C*D<<3;A<a;){if(r==1){var R=e[E>>3];R=R>>7-(E&7)&1,l[S*o+(A>>3)]|=R<<7-((A&7)<<0)}if(r==2){var R=e[E>>3];R=R>>6-(E&7)&3,l[S*o+(A>>2)]|=R<<6-((A&3)<<1)}if(r==4){var R=e[E>>3];R=R>>4-(E&7)&15,l[S*o+(A>>1)]|=R<<4-((A&1)<<2)}if(r>=8)for(var F=S*o+A*i,I=0;I<i;I++)l[F+I]=e[(E>>3)+I];E+=r,A+=y}C++,S+=b}w*j!=0&&(c+=j*(1+D)),x=x+1}return l};ct.decode._getBPP=function(e){var t=[1,null,3,1,2,null,4][e.ctype];return t*e.depth};ct.decode._filterZero=function(e,t,a,n,r){var i=ct.decode._getBPP(t),o=Math.ceil(n*i/8),l=ct.decode._paeth;i=Math.ceil(i/8);var c=0,d=1,m=e[a],f=0;if(m>1&&(e[a]=[0,0,1][m-2]),m==3)for(f=i;f<o;f++)e[f+1]=e[f+1]+(e[f+1-i]>>>1)&255;for(var h=0;h<r;h++)if(c=a+h*o,d=c+h+1,m=e[d-1],f=0,m==0)for(;f<o;f++)e[c+f]=e[d+f];else if(m==1){for(;f<i;f++)e[c+f]=e[d+f];for(;f<o;f++)e[c+f]=e[d+f]+e[c+f-i]}else if(m==2)for(;f<o;f++)e[c+f]=e[d+f]+e[c+f-o];else if(m==3){for(;f<i;f++)e[c+f]=e[d+f]+(e[c+f-o]>>>1);for(;f<o;f++)e[c+f]=e[d+f]+(e[c+f-o]+e[c+f-i]>>>1)}else{for(;f<i;f++)e[c+f]=e[d+f]+l(0,e[c+f-o],0);for(;f<o;f++)e[c+f]=e[d+f]+l(e[c+f-i],e[c+f-o],e[c+f-i-o])}return e};ct.decode._paeth=function(e,t,a){var n=e+t-a,r=n-e,i=n-t,o=n-a;return r*r<=i*i&&r*r<=o*o?e:i*i<=o*o?t:a};ct.decode._IHDR=function(e,t,a){var n=ct._bin;a.width=n.readUint(e,t),t+=4,a.height=n.readUint(e,t),t+=4,a.depth=e[t],t++,a.ctype=e[t],t++,a.compress=e[t],t++,a.filter=e[t],t++,a.interlace=e[t],t++};ct._bin={nextZero:function(e,t){for(;e[t]!=0;)t++;return t},readUshort:function(e,t){return e[t]<<8|e[t+1]},writeUshort:function(e,t,a){e[t]=a>>8&255,e[t+1]=a&255},readUint:function(e,t){return e[t]*(256*256*256)+(e[t+1]<<16|e[t+2]<<8|e[t+3])},writeUint:function(e,t,a){e[t]=a>>24&255,e[t+1]=a>>16&255,e[t+2]=a>>8&255,e[t+3]=a&255},readASCII:function(e,t,a){for(var n="",r=0;r<a;r++)n+=String.fromCharCode(e[t+r]);return n},writeASCII:function(e,t,a){for(var n=0;n<a.length;n++)e[t+n]=a.charCodeAt(n)},readBytes:function(e,t,a){for(var n=[],r=0;r<a;r++)n.push(e[t+r]);return n},pad:function(e){return e.length<2?"0"+e:e},readUTF8:function(e,t,a){for(var n="",r,i=0;i<a;i++)n+="%"+ct._bin.pad(e[t+i].toString(16));try{r=decodeURIComponent(n)}catch{return ct._bin.readASCII(e,t,a)}return r}};ct._copyTile=function(e,t,a,n,r,i,o,l,c){for(var d=Math.min(t,r),m=Math.min(a,i),f=0,h=0,x=0;x<m;x++)for(var b=0;b<d;b++)if(o>=0&&l>=0?(f=x*t+b<<2,h=(l+x)*r+o+b<<2):(f=(-l+x)*t-o+b<<2,h=x*r+b<<2),c==0)n[h]=e[f],n[h+1]=e[f+1],n[h+2]=e[f+2],n[h+3]=e[f+3];else if(c==1){var y=e[f+3]*.00392156862745098,w=e[f]*y,j=e[f+1]*y,N=e[f+2]*y,k=n[h+3]*(1/255),D=n[h]*k,C=n[h+1]*k,S=n[h+2]*k,A=1-y,E=y+k*A,R=E==0?0:1/E;n[h+3]=255*E,n[h+0]=(w+D*A)*R,n[h+1]=(j+C*A)*R,n[h+2]=(N+S*A)*R}else if(c==2){var y=e[f+3],w=e[f],j=e[f+1],N=e[f+2],k=n[h+3],D=n[h],C=n[h+1],S=n[h+2];y==k&&w==D&&j==C&&N==S?(n[h]=0,n[h+1]=0,n[h+2]=0,n[h+3]=0):(n[h]=w,n[h+1]=j,n[h+2]=N,n[h+3]=y)}else if(c==3){var y=e[f+3],w=e[f],j=e[f+1],N=e[f+2],k=n[h+3],D=n[h],C=n[h+1],S=n[h+2];if(y==k&&w==D&&j==C&&N==S)continue;if(y<220&&k>20)return!1}return!0};ct.encode=function(e,t,a,n,r,i,o){n==null&&(n=0),o==null&&(o=!1);var l=ct.encode.compress(e,t,a,n,[!1,!1,!1,0,o]);return ct.encode.compressPNG(l,-1),ct.encode._main(l,t,a,r,i)};ct.encodeLL=function(e,t,a,n,r,i,o,l){for(var c={ctype:0+(n==1?0:2)+(r==0?0:4),depth:i,frames:[]},d=(n+r)*i,m=d*t,f=0;f<e.length;f++)c.frames.push({rect:{x:0,y:0,width:t,height:a},img:new Uint8Array(e[f]),blend:0,dispose:1,bpp:Math.ceil(d/8),bpl:Math.ceil(m/8)});ct.encode.compressPNG(c,0,!0);var h=ct.encode._main(c,t,a,o,l);return h};ct.encode._main=function(e,t,a,n,r){r==null&&(r={});var i=ct.crc.crc,o=ct._bin.writeUint,l=ct._bin.writeUshort,c=ct._bin.writeASCII,d=8,m=e.frames.length>1,f=!1,h=33+(m?20:0);if(r.sRGB!=null&&(h+=13),r.pHYs!=null&&(h+=21),e.ctype==3){for(var x=e.plte.length,b=0;b<x;b++)e.plte[b]>>>24!=255&&(f=!0);h+=8+x*3+4+(f?8+x*1+4:0)}for(var y=0;y<e.frames.length;y++){var w=e.frames[y];m&&(h+=38),h+=w.cimg.length+12,y!=0&&(h+=4)}h+=12;for(var j=new Uint8Array(h),N=[137,80,78,71,13,10,26,10],b=0;b<8;b++)j[b]=N[b];if(o(j,d,13),d+=4,c(j,d,"IHDR"),d+=4,o(j,d,t),d+=4,o(j,d,a),d+=4,j[d]=e.depth,d++,j[d]=e.ctype,d++,j[d]=0,d++,j[d]=0,d++,j[d]=0,d++,o(j,d,i(j,d-17,17)),d+=4,r.sRGB!=null&&(o(j,d,1),d+=4,c(j,d,"sRGB"),d+=4,j[d]=r.sRGB,d++,o(j,d,i(j,d-5,5)),d+=4),r.pHYs!=null&&(o(j,d,9),d+=4,c(j,d,"pHYs"),d+=4,o(j,d,r.pHYs[0]),d+=4,o(j,d,r.pHYs[1]),d+=4,j[d]=r.pHYs[2],d++,o(j,d,i(j,d-13,13)),d+=4),m&&(o(j,d,8),d+=4,c(j,d,"acTL"),d+=4,o(j,d,e.frames.length),d+=4,o(j,d,r.loop!=null?r.loop:0),d+=4,o(j,d,i(j,d-12,12)),d+=4),e.ctype==3){var x=e.plte.length;o(j,d,x*3),d+=4,c(j,d,"PLTE"),d+=4;for(var b=0;b<x;b++){var k=b*3,D=e.plte[b],C=D&255,S=D>>>8&255,A=D>>>16&255;j[d+k+0]=C,j[d+k+1]=S,j[d+k+2]=A}if(d+=x*3,o(j,d,i(j,d-x*3-4,x*3+4)),d+=4,f){o(j,d,x),d+=4,c(j,d,"tRNS"),d+=4;for(var b=0;b<x;b++)j[d+b]=e.plte[b]>>>24&255;d+=x,o(j,d,i(j,d-x-4,x+4)),d+=4}}for(var E=0,y=0;y<e.frames.length;y++){var w=e.frames[y];m&&(o(j,d,26),d+=4,c(j,d,"fcTL"),d+=4,o(j,d,E++),d+=4,o(j,d,w.rect.width),d+=4,o(j,d,w.rect.height),d+=4,o(j,d,w.rect.x),d+=4,o(j,d,w.rect.y),d+=4,l(j,d,n[y]),d+=2,l(j,d,1e3),d+=2,j[d]=w.dispose,d++,j[d]=w.blend,d++,o(j,d,i(j,d-30,30)),d+=4);var R=w.cimg,x=R.length;o(j,d,x+(y==0?0:4)),d+=4;var F=d;c(j,d,y==0?"IDAT":"fdAT"),d+=4,y!=0&&(o(j,d,E++),d+=4),j.set(R,d),d+=x,o(j,d,i(j,F,d-F)),d+=4}return o(j,d,0),d+=4,c(j,d,"IEND"),d+=4,o(j,d,i(j,d-4,4)),d+=4,j.buffer};ct.encode.compressPNG=function(e,t,a){for(var n=0;n<e.frames.length;n++){var r=e.frames[n];r.rect.width;var i=r.rect.height,o=new Uint8Array(i*r.bpl+i);r.cimg=ct.encode._filterZero(r.img,i,r.bpp,r.bpl,o,t,a)}};ct.encode.compress=function(e,t,a,n,r){for(var i=r[0],o=r[1],l=r[2],c=r[3],d=r[4],m=6,f=8,h=255,x=0;x<e.length;x++)for(var b=new Uint8Array(e[x]),y=b.length,w=0;w<y;w+=4)h&=b[w+3];var j=h!=255,N=ct.encode.framize(e,t,a,i,o,l),k={},D=[],C=[];if(n!=0){for(var S=[],w=0;w<N.length;w++)S.push(N[w].img.buffer);for(var A=ct.encode.concatRGBA(S),E=ct.quantize(A,n),R=0,F=new Uint8Array(E.abuf),w=0;w<N.length;w++){var I=N[w].img,H=I.length;C.push(new Uint8Array(E.inds.buffer,R>>2,H>>2));for(var x=0;x<H;x+=4)I[x]=F[R+x],I[x+1]=F[R+x+1],I[x+2]=F[R+x+2],I[x+3]=F[R+x+3];R+=H}for(var w=0;w<E.plte.length;w++)D.push(E.plte[w].est.rgba)}else for(var x=0;x<N.length;x++){var _=N[x],V=new Uint32Array(_.img.buffer),W=_.rect.width,y=V.length,B=new Uint8Array(y);C.push(B);for(var w=0;w<y;w++){var K=V[w];if(w!=0&&K==V[w-1])B[w]=B[w-1];else if(w>W&&K==V[w-W])B[w]=B[w-W];else{var ae=k[K];if(ae==null&&(k[K]=ae=D.length,D.push(K),D.length>=300))break;B[w]=ae}}}var $=D.length;$<=256&&d==!1&&($<=2?f=1:$<=4?f=2:$<=16?f=4:f=8,f=Math.max(f,c));for(var x=0;x<N.length;x++){var _=N[x];_.rect.x,_.rect.y;var W=_.rect.width,Z=_.rect.height,O=_.img;new Uint32Array(O.buffer);var Y=4*W,Q=4;if($<=256&&d==!1){Y=Math.ceil(f*W/8);for(var U=new Uint8Array(Y*Z),oe=C[x],X=0;X<Z;X++){var w=X*Y,ne=X*W;if(f==8)for(var ge=0;ge<W;ge++)U[w+ge]=oe[ne+ge];else if(f==4)for(var ge=0;ge<W;ge++)U[w+(ge>>1)]|=oe[ne+ge]<<4-(ge&1)*4;else if(f==2)for(var ge=0;ge<W;ge++)U[w+(ge>>2)]|=oe[ne+ge]<<6-(ge&3)*2;else if(f==1)for(var ge=0;ge<W;ge++)U[w+(ge>>3)]|=oe[ne+ge]<<7-(ge&7)*1}O=U,m=3,Q=1}else if(j==!1&&N.length==1){for(var U=new Uint8Array(W*Z*3),me=W*Z,w=0;w<me;w++){var I=w*3,Ae=w*4;U[I]=O[Ae],U[I+1]=O[Ae+1],U[I+2]=O[Ae+2]}O=U,m=2,Q=3,Y=3*W}_.img=O,_.bpl=Y,_.bpp=Q}return{ctype:m,depth:f,plte:D,frames:N}};ct.encode.framize=function(e,t,a,n,r,i){for(var o=[],l=0;l<e.length;l++){var c=new Uint8Array(e[l]),d=new Uint32Array(c.buffer),m,f=0,h=0,x=t,b=a,y=n?1:0;if(l!=0){for(var w=i||n||l==1||o[l-2].dispose!=0?1:2,j=0,N=1e9,k=0;k<w;k++){for(var _=new Uint8Array(e[l-1-k]),D=new Uint32Array(e[l-1-k]),C=t,S=a,A=-1,E=-1,R=0;R<a;R++)for(var F=0;F<t;F++){var I=R*t+F;d[I]!=D[I]&&(F<C&&(C=F),F>A&&(A=F),R<S&&(S=R),R>E&&(E=R))}A==-1&&(C=S=A=E=0),r&&((C&1)==1&&C--,(S&1)==1&&S--);var H=(A-C+1)*(E-S+1);H<N&&(N=H,j=k,f=C,h=S,x=A-C+1,b=E-S+1)}var _=new Uint8Array(e[l-1-j]);j==1&&(o[l-1].dispose=2),m=new Uint8Array(x*b*4),ct._copyTile(_,t,a,m,x,b,-f,-h,0),y=ct._copyTile(c,t,a,m,x,b,-f,-h,3)?1:0,y==1?ct.encode._prepareDiff(c,t,a,m,{x:f,y:h,width:x,height:b}):ct._copyTile(c,t,a,m,x,b,-f,-h,0)}else m=c.slice(0);o.push({rect:{x:f,y:h,width:x,height:b},img:m,blend:y,dispose:0})}if(n)for(var l=0;l<o.length;l++){var V=o[l];if(V.blend!=1){var W=V.rect,B=o[l-1].rect,K=Math.min(W.x,B.x),ae=Math.min(W.y,B.y),$=Math.max(W.x+W.width,B.x+B.width),Z=Math.max(W.y+W.height,B.y+B.height),O={x:K,y:ae,width:$-K,height:Z-ae};o[l-1].dispose=1,l-1!=0&&ct.encode._updateFrame(e,t,a,o,l-1,O,r),ct.encode._updateFrame(e,t,a,o,l,O,r)}}var Y=0;if(e.length!=1)for(var I=0;I<o.length;I++){var V=o[I];Y+=V.rect.width*V.rect.height}return o};ct.encode._updateFrame=function(e,t,a,n,r,i,o){for(var l=Uint8Array,c=Uint32Array,d=new l(e[r-1]),m=new c(e[r-1]),f=r+1<e.length?new l(e[r+1]):null,h=new l(e[r]),x=new c(h.buffer),b=t,y=a,w=-1,j=-1,N=0;N<i.height;N++)for(var k=0;k<i.width;k++){var D=i.x+k,C=i.y+N,S=C*t+D,A=x[S];A==0||n[r-1].dispose==0&&m[S]==A&&(f==null||f[S*4+3]!=0)||(D<b&&(b=D),D>w&&(w=D),C<y&&(y=C),C>j&&(j=C))}w==-1&&(b=y=w=j=0),o&&((b&1)==1&&b--,(y&1)==1&&y--),i={x:b,y,width:w-b+1,height:j-y+1};var E=n[r];E.rect=i,E.blend=1,E.img=new Uint8Array(i.width*i.height*4),n[r-1].dispose==0?(ct._copyTile(d,t,a,E.img,i.width,i.height,-i.x,-i.y,0),ct.encode._prepareDiff(h,t,a,E.img,i)):ct._copyTile(h,t,a,E.img,i.width,i.height,-i.x,-i.y,0)};ct.encode._prepareDiff=function(e,t,a,n,r){ct._copyTile(e,t,a,n,r.width,r.height,-r.x,-r.y,2)};ct.encode._filterZero=function(e,t,a,n,r,i,o){var l=[],c=[0,1,2,3,4];i!=-1?c=[i]:(t*n>5e5||a==1)&&(c=[0]);var d;o&&(d={level:0});for(var m=o&&UZIP!=null?UZIP:Nw,f=0;f<c.length;f++){for(var h=0;h<t;h++)ct.encode._filterLine(r,e,h,n,a,c[f]);l.push(m.deflate(r,d))}for(var x,b=1e9,f=0;f<l.length;f++)l[f].length<b&&(x=f,b=l[f].length);return l[x]};ct.encode._filterLine=function(e,t,a,n,r,i){var o=a*n,l=o+a,c=ct.decode._paeth;if(e[l]=i,l++,i==0)if(n<500)for(var d=0;d<n;d++)e[l+d]=t[o+d];else e.set(new Uint8Array(t.buffer,o,n),l);else if(i==1){for(var d=0;d<r;d++)e[l+d]=t[o+d];for(var d=r;d<n;d++)e[l+d]=t[o+d]-t[o+d-r]+256&255}else if(a==0){for(var d=0;d<r;d++)e[l+d]=t[o+d];if(i==2)for(var d=r;d<n;d++)e[l+d]=t[o+d];if(i==3)for(var d=r;d<n;d++)e[l+d]=t[o+d]-(t[o+d-r]>>1)+256&255;if(i==4)for(var d=r;d<n;d++)e[l+d]=t[o+d]-c(t[o+d-r],0,0)+256&255}else{if(i==2)for(var d=0;d<n;d++)e[l+d]=t[o+d]+256-t[o+d-n]&255;if(i==3){for(var d=0;d<r;d++)e[l+d]=t[o+d]+256-(t[o+d-n]>>1)&255;for(var d=r;d<n;d++)e[l+d]=t[o+d]+256-(t[o+d-n]+t[o+d-r]>>1)&255}if(i==4){for(var d=0;d<r;d++)e[l+d]=t[o+d]+256-c(0,t[o+d-n],0)&255;for(var d=r;d<n;d++)e[l+d]=t[o+d]+256-c(t[o+d-r],t[o+d-n],t[o+d-r-n])&255}}};ct.crc={table:(function(){for(var e=new Uint32Array(256),t=0;t<256;t++){for(var a=t,n=0;n<8;n++)a&1?a=3988292384^a>>>1:a=a>>>1;e[t]=a}return e})(),update:function(e,t,a,n){for(var r=0;r<n;r++)e=ct.crc.table[(e^t[a+r])&255]^e>>>8;return e},crc:function(e,t,a){return ct.crc.update(4294967295,e,t,a)^4294967295}};ct.quantize=function(e,t){var a=new Uint8Array(e),n=a.slice(0),r=new Uint32Array(n.buffer),i=ct.quantize.getKDtree(n,t),o=i[0],l=i[1];ct.quantize.planeDst;for(var c=a,d=r,m=c.length,f=new Uint8Array(a.length>>2),h=0;h<m;h+=4){var x=c[h]*.00392156862745098,b=c[h+1]*(1/255),y=c[h+2]*(1/255),w=c[h+3]*(1/255),j=ct.quantize.getNearest(o,x,b,y,w);f[h>>2]=j.ind,d[h>>2]=j.est.rgba}return{abuf:n.buffer,inds:f,plte:l}};ct.quantize.getKDtree=function(e,t,a){a==null&&(a=1e-4);var n=new Uint32Array(e.buffer),r={i0:0,i1:e.length,bst:null,est:null,tdst:0,left:null,right:null};r.bst=ct.quantize.stats(e,r.i0,r.i1),r.est=ct.quantize.estats(r.bst);for(var i=[r];i.length<t;){for(var o=0,l=0,c=0;c<i.length;c++)i[c].est.L>o&&(o=i[c].est.L,l=c);if(o<a)break;var d=i[l],m=ct.quantize.splitPixels(e,n,d.i0,d.i1,d.est.e,d.est.eMq255),f=d.i0>=m||d.i1<=m;if(f){d.est.L=0;continue}var h={i0:d.i0,i1:m,bst:null,est:null,tdst:0,left:null,right:null};h.bst=ct.quantize.stats(e,h.i0,h.i1),h.est=ct.quantize.estats(h.bst);var x={i0:m,i1:d.i1,bst:null,est:null,tdst:0,left:null,right:null};x.bst={R:[],m:[],N:d.bst.N-h.bst.N};for(var c=0;c<16;c++)x.bst.R[c]=d.bst.R[c]-h.bst.R[c];for(var c=0;c<4;c++)x.bst.m[c]=d.bst.m[c]-h.bst.m[c];x.est=ct.quantize.estats(x.bst),d.left=h,d.right=x,i[l]=h,i.push(x)}i.sort(function(b,y){return y.bst.N-b.bst.N});for(var c=0;c<i.length;c++)i[c].ind=c;return[r,i]};ct.quantize.getNearest=function(e,t,a,n,r){if(e.left==null)return e.tdst=ct.quantize.dist(e.est.q,t,a,n,r),e;var i=ct.quantize.planeDst(e.est,t,a,n,r),o=e.left,l=e.right;i>0&&(o=e.right,l=e.left);var c=ct.quantize.getNearest(o,t,a,n,r);if(c.tdst<=i*i)return c;var d=ct.quantize.getNearest(l,t,a,n,r);return d.tdst<c.tdst?d:c};ct.quantize.planeDst=function(e,t,a,n,r){var i=e.e;return i[0]*t+i[1]*a+i[2]*n+i[3]*r-e.eMq};ct.quantize.dist=function(e,t,a,n,r){var i=t-e[0],o=a-e[1],l=n-e[2],c=r-e[3];return i*i+o*o+l*l+c*c};ct.quantize.splitPixels=function(e,t,a,n,r,i){var o=ct.quantize.vecDot;for(n-=4;a<n;){for(;o(e,a,r)<=i;)a+=4;for(;o(e,n,r)>i;)n-=4;if(a>=n)break;var l=t[a>>2];t[a>>2]=t[n>>2],t[n>>2]=l,a+=4,n-=4}for(;o(e,a,r)>i;)a-=4;return a+4};ct.quantize.vecDot=function(e,t,a){return e[t]*a[0]+e[t+1]*a[1]+e[t+2]*a[2]+e[t+3]*a[3]};ct.quantize.stats=function(e,t,a){for(var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r=[0,0,0,0],i=a-t>>2,o=t;o<a;o+=4){var l=e[o]*.00392156862745098,c=e[o+1]*(1/255),d=e[o+2]*(1/255),m=e[o+3]*(1/255);r[0]+=l,r[1]+=c,r[2]+=d,r[3]+=m,n[0]+=l*l,n[1]+=l*c,n[2]+=l*d,n[3]+=l*m,n[5]+=c*c,n[6]+=c*d,n[7]+=c*m,n[10]+=d*d,n[11]+=d*m,n[15]+=m*m}return n[4]=n[1],n[8]=n[2],n[9]=n[6],n[12]=n[3],n[13]=n[7],n[14]=n[11],{R:n,m:r,N:i}};ct.quantize.estats=function(e){var t=e.R,a=e.m,n=e.N,r=a[0],i=a[1],o=a[2],l=a[3],c=n==0?0:1/n,d=[t[0]-r*r*c,t[1]-r*i*c,t[2]-r*o*c,t[3]-r*l*c,t[4]-i*r*c,t[5]-i*i*c,t[6]-i*o*c,t[7]-i*l*c,t[8]-o*r*c,t[9]-o*i*c,t[10]-o*o*c,t[11]-o*l*c,t[12]-l*r*c,t[13]-l*i*c,t[14]-l*o*c,t[15]-l*l*c],m=d,f=ct.M4,h=[.5,.5,.5,.5],x=0,b=0;if(n!=0)for(var y=0;y<10&&(h=f.multVec(m,h),b=Math.sqrt(f.dot(h,h)),h=f.sml(1/b,h),!(Math.abs(b-x)<1e-9));y++)x=b;var w=[r*c,i*c,o*c,l*c],j=f.dot(f.sml(255,w),h);return{Cov:d,q:w,e:h,L:x,eMq255:j,eMq:f.dot(h,w),rgba:(Math.round(255*w[3])<<24|Math.round(255*w[2])<<16|Math.round(255*w[1])<<8|Math.round(255*w[0])<<0)>>>0}};ct.M4={multVec:function(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3],e[4]*t[0]+e[5]*t[1]+e[6]*t[2]+e[7]*t[3],e[8]*t[0]+e[9]*t[1]+e[10]*t[2]+e[11]*t[3],e[12]*t[0]+e[13]*t[1]+e[14]*t[2]+e[15]*t[3]]},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},sml:function(e,t){return[e*t[0],e*t[1],e*t[2],e*t[3]]}};ct.encode.concatRGBA=function(e){for(var t=0,a=0;a<e.length;a++)t+=e[a].byteLength;for(var n=new Uint8Array(t),r=0,a=0;a<e.length;a++){for(var i=new Uint8Array(e[a]),o=i.length,l=0;l<o;l+=4){var c=i[l],d=i[l+1],m=i[l+2],f=i[l+3];f==0&&(c=d=m=0),n[r+l]=c,n[r+l+1]=d,n[r+l+2]=m,n[r+l+3]=f}r+=o}return n.buffer};var CFe=function(e){if(e===0)return Qd.Greyscale;if(e===2)return Qd.Truecolour;if(e===3)return Qd.IndexedColour;if(e===4)return Qd.GreyscaleWithAlpha;if(e===6)return Qd.TruecolourWithAlpha;throw new Error("Unknown color type: "+e)},TFe=function(e){for(var t=Math.floor(e.length/4),a=new Uint8Array(t*3),n=new Uint8Array(t*1),r=0,i=0,o=0;r<e.length;)a[i++]=e[r++],a[i++]=e[r++],a[i++]=e[r++],n[o++]=e[r++];return{rgbChannel:a,alphaChannel:n}},Qd;(function(e){e.Greyscale="Greyscale",e.Truecolour="Truecolour",e.IndexedColour="IndexedColour",e.GreyscaleWithAlpha="GreyscaleWithAlpha",e.TruecolourWithAlpha="TruecolourWithAlpha"})(Qd||(Qd={}));var DFe=(function(){function e(t){var a=ct.decode(t),n=ct.toRGBA8(a);if(n.length>1)throw new Error("Animated PNGs are not supported");var r=new Uint8Array(n[0]),i=TFe(r),o=i.rgbChannel,l=i.alphaChannel;this.rgbChannel=o;var c=l.some(function(d){return d<255});c&&(this.alphaChannel=l),this.type=CFe(a.ctype),this.width=a.width,this.height=a.height,this.bitsPerComponent=8}return e.load=function(t){return new e(t)},e})(),Oae=(function(){function e(t){this.image=t,this.bitsPerComponent=t.bitsPerComponent,this.width=t.width,this.height=t.height,this.colorSpace="DeviceRGB"}return e.for=function(t){return na(this,void 0,void 0,function(){var a;return sa(this,function(n){return a=DFe.load(t),[2,new e(a)]})})},e.prototype.embedIntoContext=function(t,a){return na(this,void 0,void 0,function(){var n,r;return sa(this,function(i){return n=this.embedAlphaChannel(t),r=t.flateStream(this.image.rgbChannel,{Type:"XObject",Subtype:"Image",BitsPerComponent:this.image.bitsPerComponent,Width:this.image.width,Height:this.image.height,ColorSpace:this.colorSpace,SMask:n}),a?(t.assign(a,r),[2,a]):[2,t.register(r)]})})},e.prototype.embedAlphaChannel=function(t){if(this.image.alphaChannel){var a=t.flateStream(this.image.alphaChannel,{Type:"XObject",Subtype:"Image",Height:this.image.height,Width:this.image.width,BitsPerComponent:this.image.bitsPerComponent,ColorSpace:"DeviceGray",Decode:[0,1]});return t.register(a)}},e})(),Rae=(function(){function e(t,a,n){this.bytes=t,this.start=a||0,this.pos=this.start,this.end=a&&n?a+n:this.bytes.length}return Object.defineProperty(e.prototype,"length",{get:function(){return this.end-this.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),e.prototype.getByte=function(){return this.pos>=this.end?-1:this.bytes[this.pos++]},e.prototype.getUint16=function(){var t=this.getByte(),a=this.getByte();return t===-1||a===-1?-1:(t<<8)+a},e.prototype.getInt32=function(){var t=this.getByte(),a=this.getByte(),n=this.getByte(),r=this.getByte();return(t<<24)+(a<<16)+(n<<8)+r},e.prototype.getBytes=function(t,a){a===void 0&&(a=!1);var n=this.bytes,r=this.pos,i=this.end;if(t){var l=r+t;l>i&&(l=i),this.pos=l;var o=n.subarray(r,l);return a?new Uint8ClampedArray(o):o}else{var o=n.subarray(r,i);return a?new Uint8ClampedArray(o):o}},e.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},e.prototype.peekBytes=function(t,a){a===void 0&&(a=!1);var n=this.getBytes(t,a);return this.pos-=n.length,n},e.prototype.skip=function(t){t||(t=1),this.pos+=t},e.prototype.reset=function(){this.pos=this.start},e.prototype.moveStart=function(){this.start=this.pos},e.prototype.makeSubStream=function(t,a){return new e(this.bytes,t,a)},e.prototype.decode=function(){return this.bytes},e})(),EFe=new Uint8Array(0),xb=(function(){function e(t){if(this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=EFe,this.minBufferLength=512,t)for(;this.minBufferLength<t;)this.minBufferLength*=2}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){for(;!this.eof&&this.bufferLength===0;)this.readBlock();return this.bufferLength===0},enumerable:!1,configurable:!0}),e.prototype.getByte=function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]},e.prototype.getUint16=function(){var t=this.getByte(),a=this.getByte();return t===-1||a===-1?-1:(t<<8)+a},e.prototype.getInt32=function(){var t=this.getByte(),a=this.getByte(),n=this.getByte(),r=this.getByte();return(t<<24)+(a<<16)+(n<<8)+r},e.prototype.getBytes=function(t,a){a===void 0&&(a=!1);var n,r=this.pos;if(t){for(this.ensureBuffer(r+t),n=r+t;!this.eof&&this.bufferLength<n;)this.readBlock();var i=this.bufferLength;n>i&&(n=i)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}this.pos=n;var o=this.buffer.subarray(r,n);return a&&!(o instanceof Uint8ClampedArray)?new Uint8ClampedArray(o):o},e.prototype.peekByte=function(){var t=this.getByte();return this.pos--,t},e.prototype.peekBytes=function(t,a){a===void 0&&(a=!1);var n=this.getBytes(t,a);return this.pos-=n.length,n},e.prototype.skip=function(t){t||(t=1),this.pos+=t},e.prototype.reset=function(){this.pos=0},e.prototype.makeSubStream=function(t,a){for(var n=t+a;this.bufferLength<=n&&!this.eof;)this.readBlock();return new Rae(this.buffer,t,a)},e.prototype.decode=function(){for(;!this.eof;)this.readBlock();return this.buffer.subarray(0,this.bufferLength)},e.prototype.readBlock=function(){throw new mi(this.constructor.name,"readBlock")},e.prototype.ensureBuffer=function(t){var a=this.buffer;if(t<=a.byteLength)return a;for(var n=this.minBufferLength;n<t;)n*=2;var r=new Uint8Array(n);return r.set(a),this.buffer=r},e})(),YU=function(e){return e===32||e===9||e===13||e===10},MFe=(function(e){ft(t,e);function t(a,n){var r=e.call(this,n)||this;return r.stream=a,r.input=new Uint8Array(5),n&&(n=.8*n),r}return t.prototype.readBlock=function(){for(var a=126,n=122,r=-1,i=this.stream,o=i.getByte();YU(o);)o=i.getByte();if(o===r||o===a){this.eof=!0;return}var l=this.bufferLength,c,d;if(o===n){for(c=this.ensureBuffer(l+4),d=0;d<4;++d)c[l+d]=0;this.bufferLength+=4}else{var m=this.input;for(m[0]=o,d=1;d<5;++d){for(o=i.getByte();YU(o);)o=i.getByte();if(m[d]=o,o===r||o===a)break}if(c=this.ensureBuffer(l+d-1),this.bufferLength+=d-1,d<5){for(;d<5;++d)m[d]=117;this.eof=!0}var f=0;for(d=0;d<5;++d)f=f*85+(m[d]-33);for(d=3;d>=0;--d)c[l+d]=f&255,f>>=8}},t})(xb),OFe=(function(e){ft(t,e);function t(a,n){var r=e.call(this,n)||this;return r.stream=a,r.firstDigit=-1,n&&(n=.5*n),r}return t.prototype.readBlock=function(){var a=8e3,n=this.stream.getBytes(a);if(!n.length){this.eof=!0;return}for(var r=n.length+1>>1,i=this.ensureBuffer(this.bufferLength+r),o=this.bufferLength,l=this.firstDigit,c=0,d=n.length;c<d;c++){var m=n[c],f=void 0;if(m>=48&&m<=57)f=m&15;else if(m>=65&&m<=70||m>=97&&m<=102)f=(m&15)+9;else if(m===62){this.eof=!0;break}else continue;l<0?l=f:(i[o++]=l<<4|f,l=-1)}l>=0&&this.eof&&(i[o++]=l<<4,l=-1),this.firstDigit=l,this.bufferLength=o},t})(xb),ZU=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),RFe=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),zFe=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),_Fe=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],IFe=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5],LFe=(function(e){ft(t,e);function t(a,n){var r=e.call(this,n)||this;r.stream=a;var i=a.getByte(),o=a.getByte();if(i===-1||o===-1)throw new Error("Invalid header in flate stream: "+i+", "+o);if((i&15)!==8)throw new Error("Unknown compression method in flate stream: "+i+", "+o);if(((i<<8)+o)%31!==0)throw new Error("Bad FCHECK in flate stream: "+i+", "+o);if(o&32)throw new Error("FDICT bit set in flate stream: "+i+", "+o);return r.codeSize=0,r.codeBuf=0,r}return t.prototype.readBlock=function(){var a,n,r=this.stream,i=this.getBits(3);if(i&1&&(this.eof=!0),i>>=1,i===0){var o=void 0;if((o=r.getByte())===-1)throw new Error("Bad block header in flate stream");var l=o;if((o=r.getByte())===-1)throw new Error("Bad block header in flate stream");if(l|=o<<8,(o=r.getByte())===-1)throw new Error("Bad block header in flate stream");var c=o;if((o=r.getByte())===-1)throw new Error("Bad block header in flate stream");if(c|=o<<8,c!==(~l&65535)&&(l!==0||c!==0))throw new Error("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;var d=this.bufferLength;a=this.ensureBuffer(d+l);var m=d+l;if(this.bufferLength=m,l===0)r.peekByte()===-1&&(this.eof=!0);else for(var f=d;f<m;++f){if((o=r.getByte())===-1){this.eof=!0;break}a[f]=o}return}var h,x;if(i===1)h=_Fe,x=IFe;else if(i===2){var b=this.getBits(5)+257,y=this.getBits(5)+1,w=this.getBits(4)+4,j=new Uint8Array(ZU.length),N=void 0;for(N=0;N<w;++N)j[ZU[N]]=this.getBits(3);var k=this.generateHuffmanTable(j);n=0,N=0;for(var D=b+y,C=new Uint8Array(D),S=void 0,A=void 0,E=void 0;N<D;){var R=this.getCode(k);if(R===16)S=2,A=3,E=n;else if(R===17)S=3,A=3,E=n=0;else if(R===18)S=7,A=11,E=n=0;else{C[N++]=n=R;continue}for(var F=this.getBits(S)+A;F-- >0;)C[N++]=E}h=this.generateHuffmanTable(C.subarray(0,b)),x=this.generateHuffmanTable(C.subarray(b,D))}else throw new Error("Unknown block type in flate stream");a=this.buffer;for(var I=a?a.length:0,H=this.bufferLength;;){var _=this.getCode(h);if(_<256){H+1>=I&&(a=this.ensureBuffer(H+1),I=a.length),a[H++]=_;continue}if(_===256){this.bufferLength=H;return}_-=257,_=RFe[_];var V=_>>16;V>0&&(V=this.getBits(V)),n=(_&65535)+V,_=this.getCode(x),_=zFe[_],V=_>>16,V>0&&(V=this.getBits(V));var W=(_&65535)+V;H+n>=I&&(a=this.ensureBuffer(H+n),I=a.length);for(var B=0;B<n;++B,++H)a[H]=a[H-W]}},t.prototype.getBits=function(a){for(var n=this.stream,r=this.codeSize,i=this.codeBuf,o;r<a;){if((o=n.getByte())===-1)throw new Error("Bad encoding in flate stream");i|=o<<r,r+=8}return o=i&(1<<a)-1,this.codeBuf=i>>a,this.codeSize=r-=a,o},t.prototype.getCode=function(a){for(var n=this.stream,r=a[0],i=a[1],o=this.codeSize,l=this.codeBuf,c;o<i&&(c=n.getByte())!==-1;)l|=c<<o,o+=8;var d=r[l&(1<<i)-1];typeof r=="number"&&console.log("FLATE:",d);var m=d>>16,f=d&65535;if(m<1||o<m)throw new Error("Bad encoding in flate stream");return this.codeBuf=l>>m,this.codeSize=o-m,f},t.prototype.generateHuffmanTable=function(a){var n=a.length,r=0,i;for(i=0;i<n;++i)a[i]>r&&(r=a[i]);for(var o=1<<r,l=new Int32Array(o),c=1,d=0,m=2;c<=r;++c,d<<=1,m<<=1)for(var f=0;f<n;++f)if(a[f]===c){var h=0,x=d;for(i=0;i<c;++i)h=h<<1|x&1,x>>=1;for(i=h;i<o;i+=m)l[i]=c<<16|f;++d}return[l,r]},t})(xb),FFe=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,n)||this;i.stream=a,i.cachedData=0,i.bitsCached=0;for(var o=4096,l={earlyChange:r,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(o),dictionaryLengths:new Uint16Array(o),dictionaryPrevCodes:new Uint16Array(o),currentSequence:new Uint8Array(o),currentSequenceLength:0},c=0;c<256;++c)l.dictionaryValues[c]=c,l.dictionaryLengths[c]=1;return i.lzwState=l,i}return t.prototype.readBlock=function(){var a=512,n=a*2,r=a,i,o,l,c=this.lzwState;if(c){var d=c.earlyChange,m=c.nextCode,f=c.dictionaryValues,h=c.dictionaryLengths,x=c.dictionaryPrevCodes,b=c.codeLength,y=c.prevCode,w=c.currentSequence,j=c.currentSequenceLength,N=0,k=this.bufferLength,D=this.ensureBuffer(this.bufferLength+n);for(i=0;i<a;i++){var C=this.readBits(b),S=j>0;if(!C||C<256)w[0]=C,j=1;else if(C>=258)if(C<m)for(j=h[C],o=j-1,l=C;o>=0;o--)w[o]=f[l],l=x[l];else w[j++]=w[0];else if(C===256){b=9,m=258,j=0;continue}else{this.eof=!0,delete this.lzwState;break}if(S&&(x[m]=y,h[m]=h[y]+1,f[m]=w[0],m++,b=m+d&m+d-1?b:Math.min(Math.log(m+d)/.6931471805599453+1,12)|0),y=C,N+=j,n<N){do n+=r;while(n<N);D=this.ensureBuffer(this.bufferLength+n)}for(o=0;o<j;o++)D[k++]=w[o]}c.nextCode=m,c.codeLength=b,c.prevCode=y,c.currentSequenceLength=j,this.bufferLength=k}},t.prototype.readBits=function(a){for(var n=this.bitsCached,r=this.cachedData;n<a;){var i=this.stream.getByte();if(i===-1)return this.eof=!0,null;r=r<<8|i,n+=8}return this.bitsCached=n-=a,this.cachedData=r,r>>>n&(1<<a)-1},t})(xb),BFe=(function(e){ft(t,e);function t(a,n){var r=e.call(this,n)||this;return r.stream=a,r}return t.prototype.readBlock=function(){var a=this.stream.getBytes(2);if(!a||a.length<2||a[0]===128){this.eof=!0;return}var n,r=this.bufferLength,i=a[0];if(i<128){if(n=this.ensureBuffer(r+i+1),n[r++]=a[1],i>0){var o=this.stream.getBytes(i);n.set(o,r),r+=i}}else{i=257-i;var l=a[1];n=this.ensureBuffer(r+i+1);for(var c=0;c<i;c++)n[r++]=l}this.bufferLength=r},t})(xb),JU=function(e,t,a){if(t===ue.of("FlateDecode"))return new LFe(e);if(t===ue.of("LZWDecode")){var n=1;if(a instanceof ta){var r=a.lookup(ue.of("EarlyChange"));r instanceof Qt&&(n=r.asNumber())}return new FFe(e,void 0,n)}if(t===ue.of("ASCII85Decode"))return new MFe(e);if(t===ue.of("ASCIIHexDecode"))return new OFe(e);if(t===ue.of("RunLengthDecode"))return new BFe(e);throw new $Le(t.asString())},zae=function(e){var t=e.dict,a=e.contents,n=new Rae(a),r=t.lookup(ue.of("Filter")),i=t.lookup(ue.of("DecodeParms"));if(r instanceof ue)n=JU(n,r,i);else if(r instanceof Ea)for(var o=0,l=r.size();o<l;o++)n=JU(n,r.lookup(o,ue),i&&i.lookupMaybe(o,ta));else if(r)throw new E1([ue,Ea],r);return n},GFe=function(e){var t=e.MediaBox(),a=t.lookup(2,Qt).asNumber()-t.lookup(0,Qt).asNumber(),n=t.lookup(3,Qt).asNumber()-t.lookup(1,Qt).asNumber();return{left:0,bottom:0,right:a,top:n}},HFe=function(e){return[1,0,0,1,-e.left,-e.bottom]},_ae=(function(){function e(t,a,n){this.page=t;var r=a??GFe(t);this.width=r.right-r.left,this.height=r.top-r.bottom,this.boundingBox=r,this.transformationMatrix=n??HFe(r)}return e.for=function(t,a,n){return na(this,void 0,void 0,function(){return sa(this,function(r){return[2,new e(t,a,n)]})})},e.prototype.embedIntoContext=function(t,a){return na(this,void 0,void 0,function(){var n,r,i,o,l,c,d,m,f,h;return sa(this,function(x){if(n=this.page.normalizedEntries(),r=n.Contents,i=n.Resources,!r)throw new XLe;return o=this.decodeContents(r),l=this.boundingBox,c=l.left,d=l.bottom,m=l.right,f=l.top,h=t.flateStream(o,{Type:"XObject",Subtype:"Form",FormType:1,BBox:[c,d,m,f],Matrix:this.transformationMatrix,Resources:i}),a?(t.assign(a,h),[2,a]):[2,t.register(h)]})})},e.prototype.decodeContents=function(t){for(var a=Uint8Array.of(he.Newline),n=[],r=0,i=t.size();r<i;r++){var o=t.lookup(r,_r),l=void 0;if(o instanceof Rx)l=zae(o).decode();else if(o instanceof wg)l=o.getUnencodedContents();else throw new YLe(o);n.push(l,a)}return XIe.apply(void 0,n)},e})(),Pv=function(e,t){if(e!==void 0)return t[e]},Pg;(function(e){e.UseNone="UseNone",e.UseOutlines="UseOutlines",e.UseThumbs="UseThumbs",e.UseOC="UseOC"})(Pg||(Pg={}));var jg;(function(e){e.L2R="L2R",e.R2L="R2L"})(jg||(jg={}));var kg;(function(e){e.None="None",e.AppDefault="AppDefault"})(kg||(kg={}));var R1;(function(e){e.Simplex="Simplex",e.DuplexFlipShortEdge="DuplexFlipShortEdge",e.DuplexFlipLongEdge="DuplexFlipLongEdge"})(R1||(R1={}));var eV=(function(){function e(t){this.dict=t}return e.prototype.lookupBool=function(t){var a=this.dict.lookup(ue.of(t));if(a instanceof Ox)return a},e.prototype.lookupName=function(t){var a=this.dict.lookup(ue.of(t));if(a instanceof ue)return a},e.prototype.HideToolbar=function(){return this.lookupBool("HideToolbar")},e.prototype.HideMenubar=function(){return this.lookupBool("HideMenubar")},e.prototype.HideWindowUI=function(){return this.lookupBool("HideWindowUI")},e.prototype.FitWindow=function(){return this.lookupBool("FitWindow")},e.prototype.CenterWindow=function(){return this.lookupBool("CenterWindow")},e.prototype.DisplayDocTitle=function(){return this.lookupBool("DisplayDocTitle")},e.prototype.NonFullScreenPageMode=function(){return this.lookupName("NonFullScreenPageMode")},e.prototype.Direction=function(){return this.lookupName("Direction")},e.prototype.PrintScaling=function(){return this.lookupName("PrintScaling")},e.prototype.Duplex=function(){return this.lookupName("Duplex")},e.prototype.PickTrayByPDFSize=function(){return this.lookupBool("PickTrayByPDFSize")},e.prototype.PrintPageRange=function(){var t=this.dict.lookup(ue.of("PrintPageRange"));if(t instanceof Ea)return t},e.prototype.NumCopies=function(){var t=this.dict.lookup(ue.of("NumCopies"));if(t instanceof Qt)return t},e.prototype.getHideToolbar=function(){var t,a;return(a=(t=this.HideToolbar())===null||t===void 0?void 0:t.asBoolean())!==null&&a!==void 0?a:!1},e.prototype.getHideMenubar=function(){var t,a;return(a=(t=this.HideMenubar())===null||t===void 0?void 0:t.asBoolean())!==null&&a!==void 0?a:!1},e.prototype.getHideWindowUI=function(){var t,a;return(a=(t=this.HideWindowUI())===null||t===void 0?void 0:t.asBoolean())!==null&&a!==void 0?a:!1},e.prototype.getFitWindow=function(){var t,a;return(a=(t=this.FitWindow())===null||t===void 0?void 0:t.asBoolean())!==null&&a!==void 0?a:!1},e.prototype.getCenterWindow=function(){var t,a;return(a=(t=this.CenterWindow())===null||t===void 0?void 0:t.asBoolean())!==null&&a!==void 0?a:!1},e.prototype.getDisplayDocTitle=function(){var t,a;return(a=(t=this.DisplayDocTitle())===null||t===void 0?void 0:t.asBoolean())!==null&&a!==void 0?a:!1},e.prototype.getNonFullScreenPageMode=function(){var t,a,n=(t=this.NonFullScreenPageMode())===null||t===void 0?void 0:t.decodeText();return(a=Pv(n,Pg))!==null&&a!==void 0?a:Pg.UseNone},e.prototype.getReadingDirection=function(){var t,a,n=(t=this.Direction())===null||t===void 0?void 0:t.decodeText();return(a=Pv(n,jg))!==null&&a!==void 0?a:jg.L2R},e.prototype.getPrintScaling=function(){var t,a,n=(t=this.PrintScaling())===null||t===void 0?void 0:t.decodeText();return(a=Pv(n,kg))!==null&&a!==void 0?a:kg.AppDefault},e.prototype.getDuplex=function(){var t,a=(t=this.Duplex())===null||t===void 0?void 0:t.decodeText();return Pv(a,R1)},e.prototype.getPickTrayByPDFSize=function(){var t;return(t=this.PickTrayByPDFSize())===null||t===void 0?void 0:t.asBoolean()},e.prototype.getPrintPageRange=function(){var t=this.PrintPageRange();if(!t)return[];for(var a=[],n=0;n<t.size();n+=2){var r=t.lookup(n,Qt).asNumber(),i=t.lookup(n+1,Qt).asNumber();a.push({start:r,end:i})}return a},e.prototype.getNumCopies=function(){var t,a;return(a=(t=this.NumCopies())===null||t===void 0?void 0:t.asNumber())!==null&&a!==void 0?a:1},e.prototype.setHideToolbar=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("HideToolbar"),a)},e.prototype.setHideMenubar=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("HideMenubar"),a)},e.prototype.setHideWindowUI=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("HideWindowUI"),a)},e.prototype.setFitWindow=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("FitWindow"),a)},e.prototype.setCenterWindow=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("CenterWindow"),a)},e.prototype.setDisplayDocTitle=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("DisplayDocTitle"),a)},e.prototype.setNonFullScreenPageMode=function(t){Tc(t,"nonFullScreenPageMode",Pg);var a=ue.of(t);this.dict.set(ue.of("NonFullScreenPageMode"),a)},e.prototype.setReadingDirection=function(t){Tc(t,"readingDirection",jg);var a=ue.of(t);this.dict.set(ue.of("Direction"),a)},e.prototype.setPrintScaling=function(t){Tc(t,"printScaling",kg);var a=ue.of(t);this.dict.set(ue.of("PrintScaling"),a)},e.prototype.setDuplex=function(t){Tc(t,"duplex",R1);var a=ue.of(t);this.dict.set(ue.of("Duplex"),a)},e.prototype.setPickTrayByPDFSize=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("PickTrayByPDFSize"),a)},e.prototype.setPrintPageRange=function(t){Array.isArray(t)||(t=[t]);for(var a=[],n=0,r=t.length;n<r;n++)a.push(t[n].start),a.push(t[n].end);kae(a,"printPageRange",["number"]);var i=this.dict.context.obj(a);this.dict.set(ue.of("PrintPageRange"),i)},e.prototype.setNumCopies=function(t){Er(t,"numCopies",1,Number.MAX_VALUE),KLe(t,"numCopies");var a=this.dict.context.obj(t);this.dict.set(ue.of("NumCopies"),a)},e.fromDict=function(t){return new e(t)},e.create=function(t){var a=t.obj({});return new e(a)},e})(),qFe=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+Tf/,Iae=(function(){function e(t,a){this.dict=t,this.ref=a}return e.prototype.T=function(){return this.dict.lookupMaybe(ue.of("T"),qa,qt)},e.prototype.Ff=function(){var t=this.getInheritableAttribute(ue.of("Ff"));return this.dict.context.lookupMaybe(t,Qt)},e.prototype.V=function(){var t=this.getInheritableAttribute(ue.of("V"));return this.dict.context.lookup(t)},e.prototype.Kids=function(){return this.dict.lookupMaybe(ue.of("Kids"),Ea)},e.prototype.DA=function(){var t=this.dict.lookup(ue.of("DA"));if(t instanceof qa||t instanceof qt)return t},e.prototype.setKids=function(t){this.dict.set(ue.of("Kids"),this.dict.context.obj(t))},e.prototype.getParent=function(){var t=this.dict.get(ue.of("Parent"));if(t instanceof Ua){var a=this.dict.lookup(ue.of("Parent"),ta);return new e(a,t)}},e.prototype.setParent=function(t){t?this.dict.set(ue.of("Parent"),t):this.dict.delete(ue.of("Parent"))},e.prototype.getFullyQualifiedName=function(){var t=this.getParent();return t?t.getFullyQualifiedName()+"."+this.getPartialName():this.getPartialName()},e.prototype.getPartialName=function(){var t;return(t=this.T())===null||t===void 0?void 0:t.decodeText()},e.prototype.setPartialName=function(t){t?this.dict.set(ue.of("T"),qt.fromText(t)):this.dict.delete(ue.of("T"))},e.prototype.setDefaultAppearance=function(t){this.dict.set(ue.of("DA"),qa.of(t))},e.prototype.getDefaultAppearance=function(){var t=this.DA();return t instanceof qt?t.decodeText():t?.asString()},e.prototype.setFontSize=function(t){var a,n=(a=this.getFullyQualifiedName())!==null&&a!==void 0?a:"",r=this.getDefaultAppearance();if(!r)throw new tFe(n);var i=X8(r,qFe);if(!i.match)throw new aFe(n);var o=r.slice(0,i.pos-i.match[0].length),l=i.pos<=r.length?r.slice(i.pos):"",c=i.match[1],d=o+" /"+c+" "+t+" Tf "+l;this.setDefaultAppearance(d)},e.prototype.getFlags=function(){var t,a;return(a=(t=this.Ff())===null||t===void 0?void 0:t.asNumber())!==null&&a!==void 0?a:0},e.prototype.setFlags=function(t){this.dict.set(ue.of("Ff"),Qt.of(t))},e.prototype.hasFlag=function(t){var a=this.getFlags();return(a&t)!==0},e.prototype.setFlag=function(t){var a=this.getFlags();this.setFlags(a|t)},e.prototype.clearFlag=function(t){var a=this.getFlags();this.setFlags(a&~t)},e.prototype.setFlagTo=function(t,a){a?this.setFlag(t):this.clearFlag(t)},e.prototype.getInheritableAttribute=function(t){var a;return this.ascend(function(n){a||(a=n.dict.get(t))}),a},e.prototype.ascend=function(t){t(this);var a=this.getParent();a&&a.ascend(t)},e})(),z5=(function(){function e(t){this.dict=t}return e.prototype.W=function(){var t=this.dict.lookup(ue.of("W"));if(t instanceof Qt)return t},e.prototype.getWidth=function(){var t,a;return(a=(t=this.W())===null||t===void 0?void 0:t.asNumber())!==null&&a!==void 0?a:1},e.prototype.setWidth=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("W"),a)},e.fromDict=function(t){return new e(t)},e})(),UFe=(function(){function e(t){this.dict=t}return e.prototype.Rect=function(){return this.dict.lookup(ue.of("Rect"),Ea)},e.prototype.AP=function(){return this.dict.lookupMaybe(ue.of("AP"),ta)},e.prototype.F=function(){var t=this.dict.lookup(ue.of("F"));return this.dict.context.lookupMaybe(t,Qt)},e.prototype.getRectangle=function(){var t,a=this.Rect();return(t=a?.asRectangle())!==null&&t!==void 0?t:{x:0,y:0,width:0,height:0}},e.prototype.setRectangle=function(t){var a=t.x,n=t.y,r=t.width,i=t.height,o=this.dict.context.obj([a,n,a+r,n+i]);this.dict.set(ue.of("Rect"),o)},e.prototype.getAppearanceState=function(){var t=this.dict.lookup(ue.of("AS"));if(t instanceof ue)return t},e.prototype.setAppearanceState=function(t){this.dict.set(ue.of("AS"),t)},e.prototype.setAppearances=function(t){this.dict.set(ue.of("AP"),t)},e.prototype.ensureAP=function(){var t=this.AP();return t||(t=this.dict.context.obj({}),this.dict.set(ue.of("AP"),t)),t},e.prototype.getNormalAppearance=function(){var t=this.ensureAP(),a=t.get(ue.of("N"));if(a instanceof Ua||a instanceof ta)return a;throw new Error("Unexpected N type: "+a?.constructor.name)},e.prototype.setNormalAppearance=function(t){var a=this.ensureAP();a.set(ue.of("N"),t)},e.prototype.setRolloverAppearance=function(t){var a=this.ensureAP();a.set(ue.of("R"),t)},e.prototype.setDownAppearance=function(t){var a=this.ensureAP();a.set(ue.of("D"),t)},e.prototype.removeRolloverAppearance=function(){var t=this.AP();t?.delete(ue.of("R"))},e.prototype.removeDownAppearance=function(){var t=this.AP();t?.delete(ue.of("D"))},e.prototype.getAppearances=function(){var t=this.AP();if(t){var a=t.lookup(ue.of("N"),ta,_r),n=t.lookupMaybe(ue.of("R"),ta,_r),r=t.lookupMaybe(ue.of("D"),ta,_r);return{normal:a,rollover:n,down:r}}},e.prototype.getFlags=function(){var t,a;return(a=(t=this.F())===null||t===void 0?void 0:t.asNumber())!==null&&a!==void 0?a:0},e.prototype.setFlags=function(t){this.dict.set(ue.of("F"),Qt.of(t))},e.prototype.hasFlag=function(t){var a=this.getFlags();return(a&t)!==0},e.prototype.setFlag=function(t){var a=this.getFlags();this.setFlags(a|t)},e.prototype.clearFlag=function(t){var a=this.getFlags();this.setFlags(a&~t)},e.prototype.setFlagTo=function(t,a){a?this.setFlag(t):this.clearFlag(t)},e.fromDict=function(t){return new e(t)},e})(),_5=(function(){function e(t){this.dict=t}return e.prototype.R=function(){var t=this.dict.lookup(ue.of("R"));if(t instanceof Qt)return t},e.prototype.BC=function(){var t=this.dict.lookup(ue.of("BC"));if(t instanceof Ea)return t},e.prototype.BG=function(){var t=this.dict.lookup(ue.of("BG"));if(t instanceof Ea)return t},e.prototype.CA=function(){var t=this.dict.lookup(ue.of("CA"));if(t instanceof qt||t instanceof qa)return t},e.prototype.RC=function(){var t=this.dict.lookup(ue.of("RC"));if(t instanceof qt||t instanceof qa)return t},e.prototype.AC=function(){var t=this.dict.lookup(ue.of("AC"));if(t instanceof qt||t instanceof qa)return t},e.prototype.getRotation=function(){var t;return(t=this.R())===null||t===void 0?void 0:t.asNumber()},e.prototype.getBorderColor=function(){var t=this.BC();if(t){for(var a=[],n=0,r=t?.size();n<r;n++){var i=t.get(n);i instanceof Qt&&a.push(i.asNumber())}return a}},e.prototype.getBackgroundColor=function(){var t=this.BG();if(t){for(var a=[],n=0,r=t?.size();n<r;n++){var i=t.get(n);i instanceof Qt&&a.push(i.asNumber())}return a}},e.prototype.getCaptions=function(){var t=this.CA(),a=this.RC(),n=this.AC();return{normal:t?.decodeText(),rollover:a?.decodeText(),down:n?.decodeText()}},e.prototype.setRotation=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("R"),a)},e.prototype.setBorderColor=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("BC"),a)},e.prototype.setBackgroundColor=function(t){var a=this.dict.context.obj(t);this.dict.set(ue.of("BG"),a)},e.prototype.setCaptions=function(t){var a=qt.fromText(t.normal);if(this.dict.set(ue.of("CA"),a),t.rollover){var n=qt.fromText(t.rollover);this.dict.set(ue.of("RC"),n)}else this.dict.delete(ue.of("RC"));if(t.down){var r=qt.fromText(t.down);this.dict.set(ue.of("AC"),r)}else this.dict.delete(ue.of("AC"))},e.fromDict=function(t){return new e(t)},e})(),FT=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.MK=function(){var a=this.dict.lookup(ue.of("MK"));if(a instanceof ta)return a},t.prototype.BS=function(){var a=this.dict.lookup(ue.of("BS"));if(a instanceof ta)return a},t.prototype.DA=function(){var a=this.dict.lookup(ue.of("DA"));if(a instanceof qa||a instanceof qt)return a},t.prototype.P=function(){var a=this.dict.get(ue.of("P"));if(a instanceof Ua)return a},t.prototype.setP=function(a){this.dict.set(ue.of("P"),a)},t.prototype.setDefaultAppearance=function(a){this.dict.set(ue.of("DA"),qa.of(a))},t.prototype.getDefaultAppearance=function(){var a=this.DA();return a instanceof qt?a.decodeText():a?.asString()},t.prototype.getAppearanceCharacteristics=function(){var a=this.MK();if(a)return _5.fromDict(a)},t.prototype.getOrCreateAppearanceCharacteristics=function(){var a=this.MK();if(a)return _5.fromDict(a);var n=_5.fromDict(this.dict.context.obj({}));return this.dict.set(ue.of("MK"),n.dict),n},t.prototype.getBorderStyle=function(){var a=this.BS();if(a)return z5.fromDict(a)},t.prototype.getOrCreateBorderStyle=function(){var a=this.BS();if(a)return z5.fromDict(a);var n=z5.fromDict(this.dict.context.obj({}));return this.dict.set(ue.of("BS"),n.dict),n},t.prototype.getOnValue=function(){var a,n=(a=this.getAppearances())===null||a===void 0?void 0:a.normal;if(n instanceof ta)for(var r=n.keys(),i=0,o=r.length;i<o;i++){var l=r[i];if(l!==ue.of("Off"))return l}},t.fromDict=function(a){return new t(a)},t.create=function(a,n){var r=a.obj({Type:"Annot",Subtype:"Widget",Rect:[0,0,0,0],Parent:n});return new t(r)},t})(UFe),jf=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.FT=function(){var a=this.getInheritableAttribute(ue.of("FT"));return this.dict.context.lookup(a,ue)},t.prototype.getWidgets=function(){var a=this.Kids();if(!a)return[FT.fromDict(this.dict)];for(var n=new Array(a.size()),r=0,i=a.size();r<i;r++){var o=a.lookup(r,ta);n[r]=FT.fromDict(o)}return n},t.prototype.addWidget=function(a){var n=this.normalizedEntries().Kids;n.push(a)},t.prototype.removeWidget=function(a){var n=this.Kids();if(n){if(a<0||a>n.size())throw new M1(a,0,n.size());n.remove(a)}else{if(a!==0)throw new M1(a,0,0);this.setKids([])}},t.prototype.normalizedEntries=function(){var a=this.Kids();return a||(a=this.dict.context.obj([this.ref]),this.dict.set(ue.of("Kids"),a)),{Kids:a}},t.fromDict=function(a,n){return new t(a,n)},t})(Iae),rE=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.Opt=function(){return this.dict.lookupMaybe(ue.of("Opt"),qa,qt,Ea)},t.prototype.setOpt=function(a){this.dict.set(ue.of("Opt"),this.dict.context.obj(a))},t.prototype.getExportValues=function(){var a=this.Opt();if(a){if(a instanceof qa||a instanceof qt)return[a];for(var n=[],r=0,i=a.size();r<i;r++){var o=a.lookup(r);(o instanceof qa||o instanceof qt)&&n.push(o)}return n}},t.prototype.removeExportValue=function(a){var n=this.Opt();if(n)if(n instanceof qa||n instanceof qt){if(a!==0)throw new M1(a,0,0);this.setOpt([])}else{if(a<0||a>n.size())throw new M1(a,0,n.size());n.remove(a)}},t.prototype.normalizeExportValues=function(){for(var a,n,r,i,o=(a=this.getExportValues())!==null&&a!==void 0?a:[],l=[],c=this.getWidgets(),d=0,m=c.length;d<m;d++){var f=c[d],h=(n=o[d])!==null&&n!==void 0?n:qt.fromText((i=(r=f.getOnValue())===null||r===void 0?void 0:r.decodeText())!==null&&i!==void 0?i:"");l.push(h)}this.setOpt(l)},t.prototype.addOpt=function(a,n){var r;this.normalizeExportValues();var i=a.decodeText(),o;if(n)for(var l=(r=this.getExportValues())!==null&&r!==void 0?r:[],c=0,d=l.length;c<d;c++){var m=l[c];m.decodeText()===i&&(o=c)}var f=this.Opt();return f.push(a),o??f.size()-1},t.prototype.addWidgetWithOpt=function(a,n,r){var i=this.addOpt(n,r),o=ue.of(String(i));return this.addWidget(a),o},t})(jf),Tw=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setValue=function(a){var n,r=(n=this.getOnValue())!==null&&n!==void 0?n:ue.of("Yes");if(a!==r&&a!==ue.of("Off"))throw new eE;this.dict.set(ue.of("V"),a);for(var i=this.getWidgets(),o=0,l=i.length;o<l;o++){var c=i[o],d=c.getOnValue()===a?a:ue.of("Off");c.setAppearanceState(d)}},t.prototype.getValue=function(){var a=this.V();return a instanceof ue?a:ue.of("Off")},t.prototype.getOnValue=function(){var a=this.getWidgets()[0];return a?.getOnValue()},t.fromDict=function(a,n){return new t(a,n)},t.create=function(a){var n=a.obj({FT:"Btn",Kids:[]}),r=a.register(n);return new t(n,r)},t})(rE),Wn=function(e){return 1<<e},zi;(function(e){e[e.ReadOnly=Wn(0)]="ReadOnly",e[e.Required=Wn(1)]="Required",e[e.NoExport=Wn(2)]="NoExport"})(zi||(zi={}));var li;(function(e){e[e.NoToggleToOff=Wn(14)]="NoToggleToOff",e[e.Radio=Wn(15)]="Radio",e[e.PushButton=Wn(16)]="PushButton",e[e.RadiosInUnison=Wn(25)]="RadiosInUnison"})(li||(li={}));var kn;(function(e){e[e.Multiline=Wn(12)]="Multiline",e[e.Password=Wn(13)]="Password",e[e.FileSelect=Wn(20)]="FileSelect",e[e.DoNotSpellCheck=Wn(22)]="DoNotSpellCheck",e[e.DoNotScroll=Wn(23)]="DoNotScroll",e[e.Comb=Wn(24)]="Comb",e[e.RichText=Wn(25)]="RichText"})(kn||(kn={}));var Ha;(function(e){e[e.Combo=Wn(17)]="Combo",e[e.Edit=Wn(18)]="Edit",e[e.Sort=Wn(19)]="Sort",e[e.MultiSelect=Wn(21)]="MultiSelect",e[e.DoNotSpellCheck=Wn(22)]="DoNotSpellCheck",e[e.CommitOnSelChange=Wn(26)]="CommitOnSelChange"})(Ha||(Ha={}));var Lae=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setValues=function(a){if(this.hasFlag(Ha.Combo)&&!this.hasFlag(Ha.Edit)&&!this.valuesAreValid(a))throw new eE;if(a.length===0&&this.dict.delete(ue.of("V")),a.length===1&&this.dict.set(ue.of("V"),a[0]),a.length>1){if(!this.hasFlag(Ha.MultiSelect))throw new eFe;this.dict.set(ue.of("V"),this.dict.context.obj(a))}this.updateSelectedIndices(a)},t.prototype.valuesAreValid=function(a){for(var n=this.getOptions(),r=function(c,d){var m=a[c].decodeText();if(!n.find(function(f){return m===(f.display||f.value).decodeText()}))return{value:!1}},i=0,o=a.length;i<o;i++){var l=r(i);if(typeof l=="object")return l.value}return!0},t.prototype.updateSelectedIndices=function(a){if(a.length>1){for(var n=new Array(a.length),r=this.getOptions(),i=function(c,d){var m=a[c].decodeText();n[c]=r.findIndex(function(f){return m===(f.display||f.value).decodeText()})},o=0,l=a.length;o<l;o++)i(o,l);this.dict.set(ue.of("I"),this.dict.context.obj(n.sort()))}else this.dict.delete(ue.of("I"))},t.prototype.getValues=function(){var a=this.V();if(a instanceof qa||a instanceof qt)return[a];if(a instanceof Ea){for(var n=[],r=0,i=a.size();r<i;r++){var o=a.lookup(r);(o instanceof qa||o instanceof qt)&&n.push(o)}return n}return[]},t.prototype.Opt=function(){return this.dict.lookupMaybe(ue.of("Opt"),qa,qt,Ea)},t.prototype.setOptions=function(a){for(var n=new Array(a.length),r=0,i=a.length;r<i;r++){var o=a[r],l=o.value,c=o.display;n[r]=this.dict.context.obj([l,c||l])}this.dict.set(ue.of("Opt"),this.dict.context.obj(n))},t.prototype.getOptions=function(){var a=this.Opt();if(a instanceof qa||a instanceof qt)return[{value:a,display:a}];if(a instanceof Ea){for(var n=[],r=0,i=a.size();r<i;r++){var o=a.lookup(r);if((o instanceof qa||o instanceof qt)&&n.push({value:o,display:o}),o instanceof Ea&&o.size()>0){var l=o.lookup(0,qa,qt),c=o.lookupMaybe(1,qa,qt);n.push({value:l,display:c||l})}}return n}return[]},t})(jf),Dw=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(a,n){return new t(a,n)},t.create=function(a){var n=a.obj({FT:"Ch",Ff:Ha.Combo,Kids:[]}),r=a.register(n);return new t(n,r)},t})(Lae),z1=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.addField=function(a){var n=this.normalizedEntries().Kids;n?.push(a)},t.prototype.normalizedEntries=function(){var a=this.Kids();return a||(a=this.dict.context.obj([]),this.dict.set(ue.of("Kids"),a)),{Kids:a}},t.fromDict=function(a,n){return new t(a,n)},t.create=function(a){var n=a.obj({}),r=a.register(n);return new t(n,r)},t})(Iae),iE=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(a,n){return new t(a,n)},t})(jf),Ew=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.MaxLen=function(){var a=this.dict.lookup(ue.of("MaxLen"));if(a instanceof Qt)return a},t.prototype.Q=function(){var a=this.dict.lookup(ue.of("Q"));if(a instanceof Qt)return a},t.prototype.setMaxLength=function(a){this.dict.set(ue.of("MaxLen"),Qt.of(a))},t.prototype.removeMaxLength=function(){this.dict.delete(ue.of("MaxLen"))},t.prototype.getMaxLength=function(){var a;return(a=this.MaxLen())===null||a===void 0?void 0:a.asNumber()},t.prototype.setQuadding=function(a){this.dict.set(ue.of("Q"),Qt.of(a))},t.prototype.getQuadding=function(){var a;return(a=this.Q())===null||a===void 0?void 0:a.asNumber()},t.prototype.setValue=function(a){this.dict.set(ue.of("V"),a)},t.prototype.removeValue=function(){this.dict.delete(ue.of("V"))},t.prototype.getValue=function(){var a=this.V();if(a instanceof qa||a instanceof qt)return a},t.fromDict=function(a,n){return new t(a,n)},t.create=function(a){var n=a.obj({FT:"Tx",Kids:[]}),r=a.register(n);return new t(n,r)},t})(jf),Mw=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(a,n){return new t(a,n)},t.create=function(a){var n=a.obj({FT:"Btn",Ff:li.PushButton,Kids:[]}),r=a.register(n);return new t(n,r)},t})(rE),Ow=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.setValue=function(a){var n=this.getOnValues();if(!n.includes(a)&&a!==ue.of("Off"))throw new eE;this.dict.set(ue.of("V"),a);for(var r=this.getWidgets(),i=0,o=r.length;i<o;i++){var l=r[i],c=l.getOnValue()===a?a:ue.of("Off");l.setAppearanceState(c)}},t.prototype.getValue=function(){var a=this.V();return a instanceof ue?a:ue.of("Off")},t.prototype.getOnValues=function(){for(var a=this.getWidgets(),n=[],r=0,i=a.length;r<i;r++){var o=a[r].getOnValue();o&&n.push(o)}return n},t.fromDict=function(a,n){return new t(a,n)},t.create=function(a){var n=a.obj({FT:"Btn",Ff:li.Radio,Kids:[]}),r=a.register(n);return new t(n,r)},t})(rE),Rw=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.fromDict=function(a,n){return new t(a,n)},t.create=function(a){var n=a.obj({FT:"Ch",Kids:[]}),r=a.register(n);return new t(n,r)},t})(Lae),oE=function(e){if(!e)return[];for(var t=[],a=0,n=e.size();a<n;a++){var r=e.get(a),i=e.lookup(a);r instanceof Ua&&i instanceof ta&&t.push([Fae(i,r),r])}return t},Fae=function(e,t){var a=VFe(e);return a?z1.fromDict(e,t):QFe(e,t)},VFe=function(e){var t=e.lookup(ue.of("Kids"));if(t instanceof Ea)for(var a=0,n=t.size();a<n;a++){var r=t.lookup(a),i=r instanceof ta&&r.has(ue.of("T"));if(i)return!0}return!1},QFe=function(e,t){var a=lE(e,ue.of("FT")),n=e.context.lookup(a,ue);return n===ue.of("Btn")?WFe(e,t):n===ue.of("Ch")?KFe(e,t):n===ue.of("Tx")?Ew.fromDict(e,t):n===ue.of("Sig")?iE.fromDict(e,t):jf.fromDict(e,t)},WFe=function(e,t){var a,n=lE(e,ue.of("Ff")),r=e.context.lookupMaybe(n,Qt),i=(a=r?.asNumber())!==null&&a!==void 0?a:0;return BT(i,li.PushButton)?Mw.fromDict(e,t):BT(i,li.Radio)?Ow.fromDict(e,t):Tw.fromDict(e,t)},KFe=function(e,t){var a,n=lE(e,ue.of("Ff")),r=e.context.lookupMaybe(n,Qt),i=(a=r?.asNumber())!==null&&a!==void 0?a:0;return BT(i,Ha.Combo)?Dw.fromDict(e,t):Rw.fromDict(e,t)},BT=function(e,t){return(e&t)!==0},lE=function(e,t){var a;return Bae(e,function(n){a||(a=n.get(t))}),a},Bae=function(e,t){t(e);var a=e.lookupMaybe(ue.of("Parent"),ta);a&&Bae(a,t)},_1=(function(){function e(t){this.dict=t}return e.prototype.Fields=function(){var t=this.dict.lookup(ue.of("Fields"));if(t instanceof Ea)return t},e.prototype.getFields=function(){for(var t=this.normalizedEntries().Fields,a=new Array(t.size()),n=0,r=t.size();n<r;n++){var i=t.get(n),o=t.lookup(n,ta);a[n]=[Fae(o,i),i]}return a},e.prototype.getAllFields=function(){var t=[],a=function(n){if(n)for(var r=0,i=n.length;r<i;r++){var o=n[r];t.push(o);var l=o[0];l instanceof z1&&a(oE(l.Kids()))}};return a(this.getFields()),t},e.prototype.addField=function(t){var a=this.normalizedEntries().Fields;a?.push(t)},e.prototype.removeField=function(t){var a=t.getParent(),n=a===void 0?this.normalizedEntries().Fields:a.Kids(),r=n?.indexOf(t.ref);if(n===void 0||r===void 0)throw new Error("Tried to remove inexistent field "+t.getFullyQualifiedName());n.remove(r),a!==void 0&&n.size()===0&&this.removeField(a)},e.prototype.normalizedEntries=function(){var t=this.Fields();return t||(t=this.dict.context.obj([]),this.dict.set(ue.of("Fields"),t)),{Fields:t}},e.fromDict=function(t){return new e(t)},e.create=function(t){var a=t.obj({Fields:[]});return new e(a)},e})(),Gae=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.Pages=function(){return this.lookup(ue.of("Pages"),ta)},t.prototype.AcroForm=function(){return this.lookupMaybe(ue.of("AcroForm"),ta)},t.prototype.getAcroForm=function(){var a=this.AcroForm();if(a)return _1.fromDict(a)},t.prototype.getOrCreateAcroForm=function(){var a=this.getAcroForm();if(!a){a=_1.create(this.context);var n=this.context.register(a.dict);this.set(ue.of("AcroForm"),n)}return a},t.prototype.ViewerPreferences=function(){return this.lookupMaybe(ue.of("ViewerPreferences"),ta)},t.prototype.getViewerPreferences=function(){var a=this.ViewerPreferences();if(a)return eV.fromDict(a)},t.prototype.getOrCreateViewerPreferences=function(){var a=this.getViewerPreferences();if(!a){a=eV.create(this.context);var n=this.context.register(a.dict);this.set(ue.of("ViewerPreferences"),n)}return a},t.prototype.insertLeafNode=function(a,n){var r=this.get(ue.of("Pages")),i=this.Pages().insertLeafNode(a,n);return i||r},t.prototype.removeLeafNode=function(a){this.Pages().removeLeafNode(a)},t.withContextAndPages=function(a,n){var r=new Map;return r.set(ue.of("Type"),ue.of("Catalog")),r.set(ue.of("Pages"),n),new t(r,a)},t.fromMapWithContext=function(a,n){return new t(a,n)},t})(ta),Hae=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.Parent=function(){return this.lookup(ue.of("Parent"))},t.prototype.Kids=function(){return this.lookup(ue.of("Kids"),Ea)},t.prototype.Count=function(){return this.lookup(ue.of("Count"),Qt)},t.prototype.pushTreeNode=function(a){var n=this.Kids();n.push(a)},t.prototype.pushLeafNode=function(a){var n=this.Kids();this.insertLeafKid(n.size(),a)},t.prototype.insertLeafNode=function(a,n){var r=this.Kids(),i=this.Count().asNumber();if(n>i)throw new GU(n,i);for(var o=n,l=0,c=r.size();l<c;l++){if(o===0){this.insertLeafKid(l,a);return}var d=r.get(l),m=this.context.lookup(d);if(m instanceof t){if(m.Count().asNumber()>o)return m.insertLeafNode(a,o)||d;o-=m.Count().asNumber()}m instanceof jl&&(o-=1)}if(o===0){this.insertLeafKid(r.size(),a);return}throw new HU(n,"insertLeafNode")},t.prototype.removeLeafNode=function(a,n){n===void 0&&(n=!0);var r=this.Kids(),i=this.Count().asNumber();if(a>=i)throw new GU(a,i);for(var o=a,l=0,c=r.size();l<c;l++){var d=r.get(l),m=this.context.lookup(d);if(m instanceof t)if(m.Count().asNumber()>o){m.removeLeafNode(o,n),n&&m.Kids().size()===0&&r.remove(l);return}else o-=m.Count().asNumber();if(m instanceof jl)if(o===0){this.removeKid(l);return}else o-=1}throw new HU(a,"removeLeafNode")},t.prototype.ascend=function(a){a(this);var n=this.Parent();n&&n.ascend(a)},t.prototype.traverse=function(a){for(var n=this.Kids(),r=0,i=n.size();r<i;r++){var o=n.get(r),l=this.context.lookup(o);l instanceof t&&l.traverse(a),a(l,o)}},t.prototype.insertLeafKid=function(a,n){var r=this.Kids();this.ascend(function(i){var o=i.Count().asNumber()+1;i.set(ue.of("Count"),Qt.of(o))}),r.insert(a,n)},t.prototype.removeKid=function(a){var n=this.Kids(),r=n.lookup(a);r instanceof jl&&this.ascend(function(i){var o=i.Count().asNumber()-1;i.set(ue.of("Count"),Qt.of(o))}),n.remove(a)},t.withContext=function(a,n){var r=new Map;return r.set(ue.of("Type"),ue.of("Pages")),r.set(ue.of("Kids"),a.obj([])),r.set(ue.of("Count"),a.obj(0)),n&&r.set(ue.of("Parent"),n),new t(r,a)},t.fromMapWithContext=function(a,n){return new t(a,n)},t})(ta),Hs=new Uint8Array(256);Hs[he.Zero]=1;Hs[he.One]=1;Hs[he.Two]=1;Hs[he.Three]=1;Hs[he.Four]=1;Hs[he.Five]=1;Hs[he.Six]=1;Hs[he.Seven]=1;Hs[he.Eight]=1;Hs[he.Nine]=1;var zw=new Uint8Array(256);zw[he.Period]=1;zw[he.Plus]=1;zw[he.Minus]=1;var cE=new Uint8Array(256);for(var Ih=0,$Fe=256;Ih<$Fe;Ih++)cE[Ih]=Hs[Ih]||zw[Ih]?1:0;var tV=he.Newline,aV=he.CarriageReturn,XFe=(function(){function e(t,a){a===void 0&&(a=!1),this.bytes=t,this.capNumbers=a}return e.prototype.parseRawInt=function(){for(var t="";!this.bytes.done();){var a=this.bytes.peek();if(!Hs[a])break;t+=wl(this.bytes.next())}var n=Number(t);if(!t||!isFinite(n))throw new qU(this.bytes.position(),t);return n},e.prototype.parseRawNumber=function(){for(var t="";!this.bytes.done();){var a=this.bytes.peek();if(!cE[a]||(t+=wl(this.bytes.next()),a===he.Period))break}for(;!this.bytes.done();){var a=this.bytes.peek();if(!Hs[a])break;t+=wl(this.bytes.next())}var n=Number(t);if(!t||!isFinite(n))throw new qU(this.bytes.position(),t);if(n>Number.MAX_SAFE_INTEGER)if(this.capNumbers){var r="Parsed number that is too large for some PDF readers: "+t+", using Number.MAX_SAFE_INTEGER instead.";return console.warn(r),Number.MAX_SAFE_INTEGER}else{var r="Parsed number that is too large for some PDF readers: "+t+", not capping.";console.warn(r)}return n},e.prototype.skipWhitespace=function(){for(;!this.bytes.done()&&Bl[this.bytes.peek()];)this.bytes.next()},e.prototype.skipLine=function(){for(;!this.bytes.done();){var t=this.bytes.peek();if(t===tV||t===aV)return;this.bytes.next()}},e.prototype.skipComment=function(){if(this.bytes.peek()!==he.Percent)return!1;for(;!this.bytes.done();){var t=this.bytes.peek();if(t===tV||t===aV)return!0;this.bytes.next()}return!0},e.prototype.skipWhitespaceAndComments=function(){for(this.skipWhitespace();this.skipComment();)this.skipWhitespace()},e.prototype.matchKeyword=function(t){for(var a=this.bytes.offset(),n=0,r=t.length;n<r;n++)if(this.bytes.done()||this.bytes.next()!==t[n])return this.bytes.moveTo(a),!1;return!0},e})(),_w=(function(){function e(t){this.idx=0,this.line=0,this.column=0,this.bytes=t,this.length=this.bytes.length}return e.prototype.moveTo=function(t){this.idx=t},e.prototype.next=function(){var t=this.bytes[this.idx++];return t===he.Newline?(this.line+=1,this.column=0):this.column+=1,t},e.prototype.assertNext=function(t){if(this.peek()!==t)throw new nFe(this.position(),t,this.peek());return this.next()},e.prototype.peek=function(){return this.bytes[this.idx]},e.prototype.peekAhead=function(t){return this.bytes[this.idx+t]},e.prototype.peekAt=function(t){return this.bytes[t]},e.prototype.done=function(){return this.idx>=this.length},e.prototype.offset=function(){return this.idx},e.prototype.slice=function(t,a){return this.bytes.slice(t,a)},e.prototype.position=function(){return{line:this.line,column:this.column,offset:this.idx}},e.of=function(t){return new e(t)},e.fromPDFRawStream=function(t){return e.of(zae(t).decode())},e})(),YFe=he.Space,Lh=he.CarriageReturn,Fh=he.Newline,Bh=[he.s,he.t,he.r,he.e,he.a,he.m],jv=[he.e,he.n,he.d,he.s,he.t,he.r,he.e,he.a,he.m],en={header:[he.Percent,he.P,he.D,he.F,he.Dash],eof:[he.Percent,he.Percent,he.E,he.O,he.F],obj:[he.o,he.b,he.j],endobj:[he.e,he.n,he.d,he.o,he.b,he.j],xref:[he.x,he.r,he.e,he.f],trailer:[he.t,he.r,he.a,he.i,he.l,he.e,he.r],startxref:[he.s,he.t,he.a,he.r,he.t,he.x,he.r,he.e,he.f],true:[he.t,he.r,he.u,he.e],false:[he.f,he.a,he.l,he.s,he.e],null:[he.n,he.u,he.l,he.l],stream:Bh,streamEOF1:Na(Bh,[YFe,Lh,Fh]),streamEOF2:Na(Bh,[Lh,Fh]),streamEOF3:Na(Bh,[Lh]),streamEOF4:Na(Bh,[Fh]),endstream:jv,EOF1endstream:Na([Lh,Fh],jv),EOF2endstream:Na([Lh],jv),EOF3endstream:Na([Fh],jv)},qae=(function(e){ft(t,e);function t(a,n,r){r===void 0&&(r=!1);var i=e.call(this,a,r)||this;return i.context=n,i}return t.prototype.parseObject=function(){if(this.skipWhitespaceAndComments(),this.matchKeyword(en.true))return Ox.True;if(this.matchKeyword(en.false))return Ox.False;if(this.matchKeyword(en.null))return dr;var a=this.bytes.peek();if(a===he.LessThan&&this.bytes.peekAhead(1)===he.LessThan)return this.parseDictOrStream();if(a===he.LessThan)return this.parseHexString();if(a===he.LeftParen)return this.parseString();if(a===he.ForwardSlash)return this.parseName();if(a===he.LeftSquareBracket)return this.parseArray();if(cE[a])return this.parseNumberOrRef();throw new sFe(this.bytes.position(),a)},t.prototype.parseNumberOrRef=function(){var a=this.parseRawNumber();this.skipWhitespaceAndComments();var n=this.bytes.offset();if(Hs[this.bytes.peek()]){var r=this.parseRawNumber();if(this.skipWhitespaceAndComments(),this.bytes.peek()===he.R)return this.bytes.assertNext(he.R),Ua.of(a,r)}return this.bytes.moveTo(n),Qt.of(a)},t.prototype.parseHexString=function(){var a="";for(this.bytes.assertNext(he.LessThan);!this.bytes.done()&&this.bytes.peek()!==he.GreaterThan;)a+=wl(this.bytes.next());return this.bytes.assertNext(he.GreaterThan),qt.of(a)},t.prototype.parseString=function(){for(var a=0,n=!1,r="";!this.bytes.done();){var i=this.bytes.next();if(r+=wl(i),n||(i===he.LeftParen&&(a+=1),i===he.RightParen&&(a-=1)),i===he.BackSlash?n=!n:n&&(n=!1),a===0)return qa.of(r.substring(1,r.length-1))}throw new oFe(this.bytes.position())},t.prototype.parseName=function(){this.bytes.assertNext(he.ForwardSlash);for(var a="";!this.bytes.done();){var n=this.bytes.peek();if(Bl[n]||ki[n])break;a+=wl(n),this.bytes.next()}return ue.of(a)},t.prototype.parseArray=function(){this.bytes.assertNext(he.LeftSquareBracket),this.skipWhitespaceAndComments();for(var a=Ea.withContext(this.context);this.bytes.peek()!==he.RightSquareBracket;){var n=this.parseObject();a.push(n),this.skipWhitespaceAndComments()}return this.bytes.assertNext(he.RightSquareBracket),a},t.prototype.parseDict=function(){this.bytes.assertNext(he.LessThan),this.bytes.assertNext(he.LessThan),this.skipWhitespaceAndComments();for(var a=new Map;!this.bytes.done()&&this.bytes.peek()!==he.GreaterThan&&this.bytes.peekAhead(1)!==he.GreaterThan;){var n=this.parseName(),r=this.parseObject();a.set(n,r),this.skipWhitespaceAndComments()}this.skipWhitespaceAndComments(),this.bytes.assertNext(he.GreaterThan),this.bytes.assertNext(he.GreaterThan);var i=a.get(ue.of("Type"));return i===ue.of("Catalog")?Gae.fromMapWithContext(a,this.context):i===ue.of("Pages")?Hae.fromMapWithContext(a,this.context):i===ue.of("Page")?jl.fromMapWithContext(a,this.context):ta.fromMapWithContext(a,this.context)},t.prototype.parseDictOrStream=function(){var a=this.bytes.position(),n=this.parseDict();if(this.skipWhitespaceAndComments(),!this.matchKeyword(en.streamEOF1)&&!this.matchKeyword(en.streamEOF2)&&!this.matchKeyword(en.streamEOF3)&&!this.matchKeyword(en.streamEOF4)&&!this.matchKeyword(en.stream))return n;var r=this.bytes.offset(),i,o=n.get(ue.of("Length"));o instanceof Qt?(i=r+o.asNumber(),this.bytes.moveTo(i),this.skipWhitespaceAndComments(),this.matchKeyword(en.endstream)||(this.bytes.moveTo(r),i=this.findEndOfStreamFallback(a))):i=this.findEndOfStreamFallback(a);var l=this.bytes.slice(r,i);return Rx.of(n,l)},t.prototype.findEndOfStreamFallback=function(a){for(var n=1,r=this.bytes.offset();!this.bytes.done()&&(r=this.bytes.offset(),this.matchKeyword(en.stream)?n+=1:this.matchKeyword(en.EOF1endstream)||this.matchKeyword(en.EOF2endstream)||this.matchKeyword(en.EOF3endstream)||this.matchKeyword(en.endstream)?n-=1:this.bytes.next(),n!==0););if(n!==0)throw new iFe(a);return r},t.forBytes=function(a,n,r){return new t(_w.of(a),n,r)},t.forByteStream=function(a,n,r){return r===void 0&&(r=!1),new t(a,n,r)},t})(XFe),ZFe=(function(e){ft(t,e);function t(a,n){var r=e.call(this,_w.fromPDFRawStream(a),a.dict.context)||this,i=a.dict;return r.alreadyParsed=!1,r.shouldWaitForTick=n||(function(){return!1}),r.firstOffset=i.lookup(ue.of("First"),Qt).asNumber(),r.objectCount=i.lookup(ue.of("N"),Qt).asNumber(),r}return t.prototype.parseIntoContext=function(){return na(this,void 0,void 0,function(){var a,n,r,i,o,l,c,d;return sa(this,function(m){switch(m.label){case 0:if(this.alreadyParsed)throw new J8("PDFObjectStreamParser","parseIntoContext");this.alreadyParsed=!0,a=this.parseOffsetsAndObjectNumbers(),n=0,r=a.length,m.label=1;case 1:return n<r?(i=a[n],o=i.objectNumber,l=i.offset,this.bytes.moveTo(this.firstOffset+l),c=this.parseObject(),d=Ua.of(o,0),this.context.assign(d,c),this.shouldWaitForTick()?[4,Zm()]:[3,3]):[3,4];case 2:m.sent(),m.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},t.prototype.parseOffsetsAndObjectNumbers=function(){for(var a=[],n=0,r=this.objectCount;n<r;n++){this.skipWhitespaceAndComments();var i=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.parseRawInt();a.push({objectNumber:i,offset:o})}return a},t.forStream=function(a,n){return new t(a,n)},t})(qae),JFe=(function(){function e(t){this.alreadyParsed=!1,this.dict=t.dict,this.bytes=_w.fromPDFRawStream(t),this.context=this.dict.context;var a=this.dict.lookup(ue.of("Size"),Qt),n=this.dict.lookup(ue.of("Index"));if(n instanceof Ea){this.subsections=[];for(var r=0,i=n.size();r<i;r+=2){var o=n.lookup(r+0,Qt).asNumber(),l=n.lookup(r+1,Qt).asNumber();this.subsections.push({firstObjectNumber:o,length:l})}}else this.subsections=[{firstObjectNumber:0,length:a.asNumber()}];var c=this.dict.lookup(ue.of("W"),Ea);this.byteWidths=[-1,-1,-1];for(var r=0,i=c.size();r<i;r++)this.byteWidths[r]=c.lookup(r,Qt).asNumber()}return e.prototype.parseIntoContext=function(){if(this.alreadyParsed)throw new J8("PDFXRefStreamParser","parseIntoContext");this.alreadyParsed=!0,this.context.trailerInfo={Root:this.dict.get(ue.of("Root")),Encrypt:this.dict.get(ue.of("Encrypt")),Info:this.dict.get(ue.of("Info")),ID:this.dict.get(ue.of("ID"))};var t=this.parseEntries();return t},e.prototype.parseEntries=function(){for(var t=[],a=this.byteWidths,n=a[0],r=a[1],i=a[2],o=0,l=this.subsections.length;o<l;o++)for(var c=this.subsections[o],d=c.firstObjectNumber,m=c.length,f=0;f<m;f++){for(var h=0,x=0,b=n;x<b;x++)h=h<<8|this.bytes.next();for(var y=0,x=0,b=r;x<b;x++)y=y<<8|this.bytes.next();for(var w=0,x=0,b=i;x<b;x++)w=w<<8|this.bytes.next();n===0&&(h=1);var j=d+f,N={ref:Ua.of(j,w),offset:y,deleted:h===0,inObjectStream:h===2};t.push(N)}return t},e.forStream=function(t){return new e(t)},e})(),eBe=(function(e){ft(t,e);function t(a,n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=!1),i===void 0&&(i=!1);var o=e.call(this,_w.of(a),IT.create(),i)||this;return o.alreadyParsed=!1,o.parsedObjects=0,o.shouldWaitForTick=function(){return o.parsedObjects+=1,o.parsedObjects%o.objectsPerTick===0},o.objectsPerTick=n,o.throwOnInvalidObject=r,o}return t.prototype.parseDocument=function(){return na(this,void 0,void 0,function(){var a,n;return sa(this,function(r){switch(r.label){case 0:if(this.alreadyParsed)throw new J8("PDFParser","parseDocument");this.alreadyParsed=!0,this.context.header=this.parseHeader(),r.label=1;case 1:return this.bytes.done()?[3,3]:[4,this.parseDocumentSection()];case 2:if(r.sent(),n=this.bytes.offset(),n===a)throw new lFe(this.bytes.position());return a=n,[3,1];case 3:return this.maybeRecoverRoot(),this.context.lookup(Ua.of(0))&&(console.warn("Removing parsed object: 0 0 R"),this.context.delete(Ua.of(0))),[2,this.context]}})})},t.prototype.maybeRecoverRoot=function(){var a=function(m){return m instanceof ta&&m.lookup(ue.of("Type"))===ue.of("Catalog")},n=this.context.lookup(this.context.trailerInfo.Root);if(!a(n))for(var r=this.context.enumerateIndirectObjects(),i=0,o=r.length;i<o;i++){var l=r[i],c=l[0],d=l[1];a(d)&&(this.context.trailerInfo.Root=c)}},t.prototype.parseHeader=function(){for(;!this.bytes.done();){if(this.matchKeyword(en.header)){var a=this.parseRawInt();this.bytes.assertNext(he.Period);var n=this.parseRawInt(),r=Cw.forVersion(a,n);return this.skipBinaryHeaderComment(),r}this.bytes.next()}throw new cFe(this.bytes.position())},t.prototype.parseIndirectObjectHeader=function(){this.skipWhitespaceAndComments();var a=this.parseRawInt();this.skipWhitespaceAndComments();var n=this.parseRawInt();if(this.skipWhitespaceAndComments(),!this.matchKeyword(en.obj))throw new dFe(this.bytes.position(),en.obj);return Ua.of(a,n)},t.prototype.matchIndirectObjectHeader=function(){var a=this.bytes.offset();try{return this.parseIndirectObjectHeader(),!0}catch{return this.bytes.moveTo(a),!1}},t.prototype.parseIndirectObject=function(){return na(this,void 0,void 0,function(){var a,n;return sa(this,function(r){switch(r.label){case 0:return a=this.parseIndirectObjectHeader(),this.skipWhitespaceAndComments(),n=this.parseObject(),this.skipWhitespaceAndComments(),this.matchKeyword(en.endobj),n instanceof Rx&&n.dict.lookup(ue.of("Type"))===ue.of("ObjStm")?[4,ZFe.forStream(n,this.shouldWaitForTick).parseIntoContext()]:[3,2];case 1:return r.sent(),[3,3];case 2:n instanceof Rx&&n.dict.lookup(ue.of("Type"))===ue.of("XRef")?JFe.forStream(n).parseIntoContext():this.context.assign(a,n),r.label=3;case 3:return[2,a]}})})},t.prototype.tryToParseInvalidIndirectObject=function(){var a=this.bytes.position(),n="Trying to parse invalid object: "+JSON.stringify(a)+")";if(this.throwOnInvalidObject)throw new Error(n);console.warn(n);var r=this.parseIndirectObjectHeader();console.warn("Invalid object ref: "+r),this.skipWhitespaceAndComments();for(var i=this.bytes.offset(),o=!0;!this.bytes.done()&&(this.matchKeyword(en.endobj)&&(o=!1),!!o);)this.bytes.next();if(o)throw new rFe(a);var l=this.bytes.offset()-en.endobj.length,c=Eae.of(this.bytes.slice(i,l));return this.context.assign(r,c),r},t.prototype.parseIndirectObjects=function(){return na(this,void 0,void 0,function(){var a;return sa(this,function(n){switch(n.label){case 0:this.skipWhitespaceAndComments(),n.label=1;case 1:if(!(!this.bytes.done()&&Hs[this.bytes.peek()]))return[3,8];a=this.bytes.offset(),n.label=2;case 2:return n.trys.push([2,4,,5]),[4,this.parseIndirectObject()];case 3:return n.sent(),[3,5];case 4:return n.sent(),this.bytes.moveTo(a),this.tryToParseInvalidIndirectObject(),[3,5];case 5:return this.skipWhitespaceAndComments(),this.skipJibberish(),this.shouldWaitForTick()?[4,Zm()]:[3,7];case 6:n.sent(),n.label=7;case 7:return[3,1];case 8:return[2]}})})},t.prototype.maybeParseCrossRefSection=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(en.xref)){this.skipWhitespaceAndComments();for(var a=-1,n=Cae.createEmpty();!this.bytes.done()&&Hs[this.bytes.peek()];){var r=this.parseRawInt();this.skipWhitespaceAndComments();var i=this.parseRawInt();this.skipWhitespaceAndComments();var o=this.bytes.peek();if(o===he.n||o===he.f){var l=Ua.of(a,i);this.bytes.next()===he.n?n.addEntry(l,r):n.addDeletedEntry(l,r),a+=1}else a=r;this.skipWhitespaceAndComments()}return n}},t.prototype.maybeParseTrailerDict=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(en.trailer)){this.skipWhitespaceAndComments();var a=this.parseDict(),n=this.context;n.trailerInfo={Root:a.get(ue.of("Root"))||n.trailerInfo.Root,Encrypt:a.get(ue.of("Encrypt"))||n.trailerInfo.Encrypt,Info:a.get(ue.of("Info"))||n.trailerInfo.Info,ID:a.get(ue.of("ID"))||n.trailerInfo.ID}}},t.prototype.maybeParseTrailer=function(){if(this.skipWhitespaceAndComments(),!!this.matchKeyword(en.startxref)){this.skipWhitespaceAndComments();var a=this.parseRawInt();return this.skipWhitespace(),this.matchKeyword(en.eof),this.skipWhitespaceAndComments(),this.matchKeyword(en.eof),this.skipWhitespaceAndComments(),nE.forLastCrossRefSectionOffset(a)}},t.prototype.parseDocumentSection=function(){return na(this,void 0,void 0,function(){return sa(this,function(a){switch(a.label){case 0:return[4,this.parseIndirectObjects()];case 1:return a.sent(),this.maybeParseCrossRefSection(),this.maybeParseTrailerDict(),this.maybeParseTrailer(),this.skipJibberish(),[2]}})})},t.prototype.skipJibberish=function(){for(this.skipWhitespaceAndComments();!this.bytes.done();){var a=this.bytes.offset(),n=this.bytes.peek(),r=n>=he.Space&&n<=he.Tilde;if(r&&(this.matchKeyword(en.xref)||this.matchKeyword(en.trailer)||this.matchKeyword(en.startxref)||this.matchIndirectObjectHeader())){this.bytes.moveTo(a);break}this.bytes.next()}},t.prototype.skipBinaryHeaderComment=function(){this.skipWhitespaceAndComments();try{var a=this.bytes.offset();this.parseIndirectObjectHeader(),this.bytes.moveTo(a)}catch{this.bytes.next(),this.skipWhitespaceAndComments()}},t.forBytesWithOptions=function(a,n,r,i){return new t(a,n,r,i)},t})(qae),uo=function(e){return 1<<e},Ng;(function(e){e[e.Invisible=uo(0)]="Invisible",e[e.Hidden=uo(1)]="Hidden",e[e.Print=uo(2)]="Print",e[e.NoZoom=uo(3)]="NoZoom",e[e.NoRotate=uo(4)]="NoRotate",e[e.NoView=uo(5)]="NoView",e[e.ReadOnly=uo(6)]="ReadOnly",e[e.Locked=uo(7)]="Locked",e[e.ToggleNoView=uo(8)]="ToggleNoView",e[e.LockedContents=uo(9)]="LockedContents"})(Ng||(Ng={}));var Iw=function(e){return e instanceof ue?e:ue.of(e)},Wt=function(e){return e instanceof Qt?e:Qt.of(e)},ra=function(e){return e instanceof Qt?e.asNumber():e},zx;(function(e){e.Degrees="degrees",e.Radians="radians"})(zx||(zx={}));var Ut=function(e){return Re(e,"degreeAngle",["number"]),{type:zx.Degrees,angle:e}},Uae=zx.Radians,Vae=zx.Degrees,Qae=function(e){return e*Math.PI/180},tBe=function(e){return e*180/Math.PI},Rs=function(e){return e.type===Uae?e.angle:e.type===Vae?Qae(e.angle):gb("Invalid rotation: "+JSON.stringify(e))},Wae=function(e){return e.type===Uae?tBe(e.angle):e.type===Vae?e.angle:gb("Invalid rotation: "+JSON.stringify(e))},Gl=function(e){e===void 0&&(e=0);var t=e/90%4;return t===0?0:t===1?90:t===2?180:t===3?270:0},Fu=function(e,t){t===void 0&&(t=0);var a=Gl(t);return a===90||a===270?{width:e.height,height:e.width}:{width:e.width,height:e.height}},aBe=function(e,t,a){t===void 0&&(t=0),a===void 0&&(a=0);var n=e.x,r=e.y,i=e.width,o=e.height,l=Gl(a),c=t/2;return l===0?{x:n-c,y:r-c,width:i,height:o}:l===90?{x:n-o+c,y:r-c,width:o,height:i}:l===180?{x:n-i+c,y:r-o+c,width:i,height:o}:l===270?{x:n-c,y:r-i+c,width:o,height:i}:{x:n-c,y:r-c,width:i,height:o}},Kae=function(){return ja.of(Aa.ClipNonZero)},I1=Math.cos,L1=Math.sin,F1=Math.tan,Lw=function(e,t,a,n,r,i){return ja.of(Aa.ConcatTransformationMatrix,[Wt(e),Wt(t),Wt(a),Wt(n),Wt(r),Wt(i)])},fi=function(e,t){return Lw(1,0,0,1,e,t)},_x=function(e,t){return Lw(e,0,0,t,0,0)},kf=function(e){return Lw(I1(ra(e)),L1(ra(e)),-L1(ra(e)),I1(ra(e)),0,0)},kv=function(e){return kf(Qae(ra(e)))},dE=function(e,t){return Lw(1,F1(ra(e)),F1(ra(t)),1,0,0)},Fw=function(e,t){return ja.of(Aa.SetLineDashPattern,["["+e.map(Wt).join(" ")+"]",Wt(t)])},rm;(function(e){e[e.Butt=0]="Butt",e[e.Round=1]="Round",e[e.Projecting=2]="Projecting"})(rm||(rm={}));var Bw=function(e){return ja.of(Aa.SetLineCapStyle,[Wt(e)])},nV;(function(e){e[e.Miter=0]="Miter",e[e.Round=1]="Round",e[e.Bevel=2]="Bevel"})(nV||(nV={}));var Bu=function(e){return ja.of(Aa.SetGraphicsStateParams,[Iw(e)])},ls=function(){return ja.of(Aa.PushGraphicsState)},cs=function(){return ja.of(Aa.PopGraphicsState)},bb=function(e){return ja.of(Aa.SetLineWidth,[Wt(e)])},Mr=function(e,t,a,n,r,i){return ja.of(Aa.AppendBezierCurve,[Wt(e),Wt(t),Wt(a),Wt(n),Wt(r),Wt(i)])},Nv=function(e,t,a,n){return ja.of(Aa.CurveToReplicateInitialPoint,[Wt(e),Wt(t),Wt(a),Wt(n)])},Vc=function(){return ja.of(Aa.ClosePath)},Co=function(e,t){return ja.of(Aa.MoveTo,[Wt(e),Wt(t)])},gs=function(e,t){return ja.of(Aa.LineTo,[Wt(e),Wt(t)])},vb=function(){return ja.of(Aa.StrokePath)},uE=function(){return ja.of(Aa.FillNonZero)},pE=function(){return ja.of(Aa.FillNonZeroAndStroke)},$ae=function(){return ja.of(Aa.EndPath)},nBe=function(){return ja.of(Aa.NextLine)},Xae=function(e){return ja.of(Aa.ShowText,[e])},Yae=function(){return ja.of(Aa.BeginText)},Zae=function(){return ja.of(Aa.EndText)},mE=function(e,t){return ja.of(Aa.SetFontAndSize,[Iw(e),Wt(t)])},sBe=function(e){return ja.of(Aa.SetTextLineHeight,[Wt(e)])},sV;(function(e){e[e.Fill=0]="Fill",e[e.Outline=1]="Outline",e[e.FillAndOutline=2]="FillAndOutline",e[e.Invisible=3]="Invisible",e[e.FillAndClip=4]="FillAndClip",e[e.OutlineAndClip=5]="OutlineAndClip",e[e.FillAndOutlineAndClip=6]="FillAndOutlineAndClip",e[e.Clip=7]="Clip"})(sV||(sV={}));var rBe=function(e,t,a,n,r,i){return ja.of(Aa.SetTextMatrix,[Wt(e),Wt(t),Wt(a),Wt(n),Wt(r),Wt(i)])},Jae=function(e,t,a,n,r){return rBe(I1(ra(e)),L1(ra(e))+F1(ra(t)),-L1(ra(e))+F1(ra(a)),I1(ra(e)),n,r)},fE=function(e){return ja.of(Aa.DrawObject,[Iw(e)])},iBe=function(e){return ja.of(Aa.NonStrokingColorGray,[Wt(e)])},oBe=function(e){return ja.of(Aa.StrokingColorGray,[Wt(e)])},lBe=function(e,t,a){return ja.of(Aa.NonStrokingColorRgb,[Wt(e),Wt(t),Wt(a)])},cBe=function(e,t,a){return ja.of(Aa.StrokingColorRgb,[Wt(e),Wt(t),Wt(a)])},dBe=function(e,t,a,n){return ja.of(Aa.NonStrokingColorCmyk,[Wt(e),Wt(t),Wt(a),Wt(n)])},uBe=function(e,t,a,n){return ja.of(Aa.StrokingColorCmyk,[Wt(e),Wt(t),Wt(a),Wt(n)])},ene=function(e){return ja.of(Aa.BeginMarkedContent,[Iw(e)])},tne=function(){return ja.of(Aa.EndMarkedContent)},Qc;(function(e){e.Grayscale="Grayscale",e.RGB="RGB",e.CMYK="CMYK"})(Qc||(Qc={}));var ane=function(e){return Er(e,"gray",0,1),{type:Qc.Grayscale,gray:e}},Ia=function(e,t,a){return Er(e,"red",0,1),Er(t,"green",0,1),Er(a,"blue",0,1),{type:Qc.RGB,red:e,green:t,blue:a}},nne=function(e,t,a,n){return Er(e,"cyan",0,1),Er(t,"magenta",0,1),Er(a,"yellow",0,1),Er(n,"key",0,1),{type:Qc.CMYK,cyan:e,magenta:t,yellow:a,key:n}},hE=Qc.Grayscale,gE=Qc.RGB,xE=Qc.CMYK,Gu=function(e){return e.type===hE?iBe(e.gray):e.type===gE?lBe(e.red,e.green,e.blue):e.type===xE?dBe(e.cyan,e.magenta,e.yellow,e.key):gb("Invalid color: "+JSON.stringify(e))},yb=function(e){return e.type===hE?oBe(e.gray):e.type===gE?cBe(e.red,e.green,e.blue):e.type===xE?uBe(e.cyan,e.magenta,e.yellow,e.key):gb("Invalid color: "+JSON.stringify(e))},Js=function(e,t){return t===void 0&&(t=1),e?.length===1?ane(e[0]*t):e?.length===3?Ia(e[0]*t,e[1]*t,e[2]*t):e?.length===4?nne(e[0]*t,e[1]*t,e[2]*t,e[3]*t):void 0},rV=function(e){return e.type===hE?[e.gray]:e.type===gE?[e.red,e.green,e.blue]:e.type===xE?[e.cyan,e.magenta,e.yellow,e.key]:gb("Invalid color: "+JSON.stringify(e))},_t=0,It=0,wa=0,Pa=0,Yh=0,Zh=0,iV=new Map([["A",7],["a",7],["C",6],["c",6],["H",1],["h",1],["L",2],["l",2],["M",2],["m",2],["Q",4],["q",4],["S",4],["s",4],["T",2],["t",2],["V",1],["v",1],["Z",0],["z",0]]),pBe=function(e){for(var t,a=[],n=[],r="",i=!1,o=0,l=0,c=e;l<c.length;l++){var d=c[l];if(iV.has(d))o=iV.get(d),t&&(r.length>0&&(n[n.length]=+r),a[a.length]={cmd:t,args:n},n=[],r="",i=!1),t=d;else if([" ",","].includes(d)||d==="-"&&r.length>0&&r[r.length-1]!=="e"||d==="."&&i){if(r.length===0)continue;n.length===o?(a[a.length]={cmd:t,args:n},n=[+r],t==="M"&&(t="L"),t==="m"&&(t="l")):n[n.length]=+r,i=d===".",r=["-","."].includes(d)?d:""}else r+=d,d==="."&&(i=!0)}return r.length>0&&(n.length===o?(a[a.length]={cmd:t,args:n},n=[+r],t==="M"&&(t="L"),t==="m"&&(t="l")):n[n.length]=+r),a[a.length]={cmd:t,args:n},a},mBe=function(e){_t=It=wa=Pa=Yh=Zh=0;for(var t=[],a=0;a<e.length;a++){var n=e[a];if(n.cmd&&typeof oV[n.cmd]=="function"){var r=oV[n.cmd](n.args);Array.isArray(r)?t=t.concat(r):t.push(r)}}return t},oV={M:function(e){return _t=e[0],It=e[1],wa=Pa=null,Yh=_t,Zh=It,Co(_t,It)},m:function(e){return _t+=e[0],It+=e[1],wa=Pa=null,Yh=_t,Zh=It,Co(_t,It)},C:function(e){return _t=e[4],It=e[5],wa=e[2],Pa=e[3],Mr(e[0],e[1],e[2],e[3],e[4],e[5])},c:function(e){var t=Mr(e[0]+_t,e[1]+It,e[2]+_t,e[3]+It,e[4]+_t,e[5]+It);return wa=_t+e[2],Pa=It+e[3],_t+=e[4],It+=e[5],t},S:function(e){(wa===null||Pa===null)&&(wa=_t,Pa=It);var t=Mr(_t-(wa-_t),It-(Pa-It),e[0],e[1],e[2],e[3]);return wa=e[0],Pa=e[1],_t=e[2],It=e[3],t},s:function(e){(wa===null||Pa===null)&&(wa=_t,Pa=It);var t=Mr(_t-(wa-_t),It-(Pa-It),_t+e[0],It+e[1],_t+e[2],It+e[3]);return wa=_t+e[0],Pa=It+e[1],_t+=e[2],It+=e[3],t},Q:function(e){return wa=e[0],Pa=e[1],_t=e[2],It=e[3],Nv(e[0],e[1],_t,It)},q:function(e){var t=Nv(e[0]+_t,e[1]+It,e[2]+_t,e[3]+It);return wa=_t+e[0],Pa=It+e[1],_t+=e[2],It+=e[3],t},T:function(e){wa===null||Pa===null?(wa=_t,Pa=It):(wa=_t-(wa-_t),Pa=It-(Pa-It));var t=Nv(wa,Pa,e[0],e[1]);return wa=_t-(wa-_t),Pa=It-(Pa-It),_t=e[0],It=e[1],t},t:function(e){wa===null||Pa===null?(wa=_t,Pa=It):(wa=_t-(wa-_t),Pa=It-(Pa-It));var t=Nv(wa,Pa,_t+e[0],It+e[1]);return _t+=e[0],It+=e[1],t},A:function(e){var t=lV(_t,It,e);return _t=e[5],It=e[6],t},a:function(e){e[5]+=_t,e[6]+=It;var t=lV(_t,It,e);return _t=e[5],It=e[6],t},L:function(e){return _t=e[0],It=e[1],wa=Pa=null,gs(_t,It)},l:function(e){return _t+=e[0],It+=e[1],wa=Pa=null,gs(_t,It)},H:function(e){return _t=e[0],wa=Pa=null,gs(_t,It)},h:function(e){return _t+=e[0],wa=Pa=null,gs(_t,It)},V:function(e){return It=e[0],wa=Pa=null,gs(_t,It)},v:function(e){return It+=e[0],wa=Pa=null,gs(_t,It)},Z:function(){var e=Vc();return _t=Yh,It=Zh,e},z:function(){var e=Vc();return _t=Yh,It=Zh,e}},lV=function(e,t,a){for(var n=a[0],r=a[1],i=a[2],o=a[3],l=a[4],c=a[5],d=a[6],m=fBe(c,d,n,r,o,l,i,e,t),f=[],h=0,x=m;h<x.length;h++){var b=x[h],y=hBe.apply(void 0,b);f.push(Mr.apply(void 0,y))}return f},fBe=function(e,t,a,n,r,i,o,l,c){var d=o*(Math.PI/180),m=Math.sin(d),f=Math.cos(d);a=Math.abs(a),n=Math.abs(n),wa=f*(l-e)*.5+m*(c-t)*.5,Pa=f*(c-t)*.5-m*(l-e)*.5;var h=wa*wa/(a*a)+Pa*Pa/(n*n);h>1&&(h=Math.sqrt(h),a*=h,n*=h);var x=f/a,b=m/a,y=-m/n,w=f/n,j=x*l+b*c,N=y*l+w*c,k=x*e+b*t,D=y*e+w*t,C=(k-j)*(k-j)+(D-N)*(D-N),S=1/C-.25;S<0&&(S=0);var A=Math.sqrt(S);i===r&&(A=-A);var E=.5*(j+k)-A*(D-N),R=.5*(N+D)+A*(k-j),F=Math.atan2(N-R,j-E),I=Math.atan2(D-R,k-E),H=I-F;H<0&&i===1?H+=2*Math.PI:H>0&&i===0&&(H-=2*Math.PI);for(var _=Math.ceil(Math.abs(H/(Math.PI*.5+.001))),V=[],W=0;W<_;W++){var B=F+W*H/_,K=F+(W+1)*H/_;V[W]=[E,R,B,K,a,n,m,f]}return V},hBe=function(e,t,a,n,r,i,o,l){var c=l*r,d=-o*i,m=o*r,f=l*i,h=.5*(n-a),x=8/3*Math.sin(h*.5)*Math.sin(h*.5)/Math.sin(h),b=e+Math.cos(a)-x*Math.sin(a),y=t+Math.sin(a)+x*Math.cos(a),w=e+Math.cos(n),j=t+Math.sin(n),N=w+x*Math.sin(n),k=j-x*Math.cos(n),D=[c*b+d*y,m*b+f*y,c*N+d*k,m*N+f*k,c*w+d*j,m*w+f*j];return D},gBe=function(e){return mBe(pBe(e))},xBe=function(e,t){for(var a=[ls(),t.graphicsState&&Bu(t.graphicsState),Yae(),Gu(t.color),mE(t.font,t.size),sBe(t.lineHeight),Jae(Rs(t.rotate),Rs(t.xSkew),Rs(t.ySkew),t.x,t.y)].filter(Boolean),n=0,r=e.length;n<r;n++)a.push(Xae(e[n]),nBe());return a.push(Zae(),cs()),a},sne=function(e,t){return[ls(),t.graphicsState&&Bu(t.graphicsState),fi(t.x,t.y),kf(Rs(t.rotate)),_x(t.width,t.height),dE(Rs(t.xSkew),Rs(t.ySkew)),fE(e),cs()].filter(Boolean)},bBe=function(e,t){return[ls(),t.graphicsState&&Bu(t.graphicsState),fi(t.x,t.y),kf(Rs(t.rotate)),_x(t.xScale,t.yScale),dE(Rs(t.xSkew),Rs(t.ySkew)),fE(e),cs()].filter(Boolean)},vBe=function(e){var t,a;return[ls(),e.graphicsState&&Bu(e.graphicsState),e.color&&yb(e.color),bb(e.thickness),Fw((t=e.dashArray)!==null&&t!==void 0?t:[],(a=e.dashPhase)!==null&&a!==void 0?a:0),Co(e.start.x,e.start.y),e.lineCap&&Bw(e.lineCap),Co(e.start.x,e.start.y),gs(e.end.x,e.end.y),vb(),cs()].filter(Boolean)},Jm=function(e){var t,a;return[ls(),e.graphicsState&&Bu(e.graphicsState),e.color&&Gu(e.color),e.borderColor&&yb(e.borderColor),bb(e.borderWidth),e.borderLineCap&&Bw(e.borderLineCap),Fw((t=e.borderDashArray)!==null&&t!==void 0?t:[],(a=e.borderDashPhase)!==null&&a!==void 0?a:0),fi(e.x,e.y),kf(Rs(e.rotate)),dE(Rs(e.xSkew),Rs(e.ySkew)),Co(0,0),gs(0,e.height),gs(e.width,e.height),gs(e.width,0),Vc(),e.color&&e.borderWidth?pE():e.color?uE():e.borderColor?vb():Vc(),cs()].filter(Boolean)},B1=4*((Math.sqrt(2)-1)/3),yBe=function(e){var t=ra(e.x),a=ra(e.y),n=ra(e.xScale),r=ra(e.yScale);t-=n,a-=r;var i=n*B1,o=r*B1,l=t+n*2,c=a+r*2,d=t+n,m=a+r;return[ls(),Co(t,m),Mr(t,m-o,d-i,a,d,a),Mr(d+i,a,l,m-o,l,m),Mr(l,m+o,d+i,c,d,c),Mr(d-i,c,t,m+o,t,m),cs()]},wBe=function(e){var t=ra(e.x),a=ra(e.y),n=ra(e.xScale),r=ra(e.yScale),i=-n,o=-r,l=n*B1,c=r*B1,d=i+n*2,m=o+r*2,f=i+n,h=o+r;return[fi(t,a),kf(Rs(e.rotate)),Co(i,h),Mr(i,h-c,f-l,o,f,o),Mr(f+l,o,d,h-c,d,h),Mr(d,h+c,f+l,m,f,m),Mr(f-l,m,i,h+c,i,h)]},GT=function(e){var t,a,n;return Na([ls(),e.graphicsState&&Bu(e.graphicsState),e.color&&Gu(e.color),e.borderColor&&yb(e.borderColor),bb(e.borderWidth),e.borderLineCap&&Bw(e.borderLineCap),Fw((t=e.borderDashArray)!==null&&t!==void 0?t:[],(a=e.borderDashPhase)!==null&&a!==void 0?a:0)],e.rotate===void 0?yBe({x:e.x,y:e.y,xScale:e.xScale,yScale:e.yScale}):wBe({x:e.x,y:e.y,xScale:e.xScale,yScale:e.yScale,rotate:(n=e.rotate)!==null&&n!==void 0?n:Ut(0)}),[e.color&&e.borderWidth?pE():e.color?uE():e.borderColor?vb():Vc(),cs()]).filter(Boolean)},PBe=function(e,t){var a,n,r;return Na([ls(),t.graphicsState&&Bu(t.graphicsState),fi(t.x,t.y),kf(Rs((a=t.rotate)!==null&&a!==void 0?a:Ut(0))),t.scale?_x(t.scale,-t.scale):_x(1,-1),t.color&&Gu(t.color),t.borderColor&&yb(t.borderColor),t.borderWidth&&bb(t.borderWidth),t.borderLineCap&&Bw(t.borderLineCap),Fw((n=t.borderDashArray)!==null&&n!==void 0?n:[],(r=t.borderDashPhase)!==null&&r!==void 0?r:0)],gBe(e),[t.color&&t.borderWidth?pE():t.color?uE():t.borderColor?vb():Vc(),cs()]).filter(Boolean)},jBe=function(e){var t=ra(e.size),a=-1+.75,n=-1+.51,r=1-.525,i=1-.31,o=-1+.325,l=.3995/(r-n)+n;return[ls(),e.color&&yb(e.color),bb(e.thickness),fi(e.x,e.y),Co(o*t,l*t),gs(a*t,n*t),gs(i*t,r*t),vb(),cs()].filter(Boolean)},id=function(e){return e.rotation===0?[fi(0,0),kv(0)]:e.rotation===90?[fi(e.width,0),kv(90)]:e.rotation===180?[fi(e.width,e.height),kv(180)]:e.rotation===270?[fi(0,e.height),kv(270)]:[]},Av=function(e){var t=Jm({x:e.x,y:e.y,width:e.width,height:e.height,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)});if(!e.filled)return t;var a=ra(e.width),n=ra(e.height),r=Math.min(a,n)/2,i=jBe({x:a/2,y:n/2,size:r,thickness:e.thickness,color:e.markColor});return Na([ls()],t,i,[cs()])},Sv=function(e){var t=ra(e.width),a=ra(e.height),n=Math.min(t,a)/2,r=GT({x:e.x,y:e.y,xScale:n,yScale:n,color:e.color,borderColor:e.borderColor,borderWidth:e.borderWidth});if(!e.filled)return r;var i=GT({x:e.x,y:e.y,xScale:n*.45,yScale:n*.45,color:e.dotColor,borderColor:void 0,borderWidth:0});return Na([ls()],r,i,[cs()])},cV=function(e){var t=ra(e.x),a=ra(e.y),n=ra(e.width),r=ra(e.height),i=Jm({x:t,y:a,width:n,height:r,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)}),o=bE(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)});return Na([ls()],i,o,[cs()])},bE=function(e,t){for(var a=[Yae(),Gu(t.color),mE(t.font,t.size)],n=0,r=e.length;n<r;n++){var i=e[n],o=i.encoded,l=i.x,c=i.y;a.push(Jae(Rs(t.rotate),Rs(t.xSkew),Rs(t.ySkew),l,c),Xae(o))}return a.push(Zae()),a},rne=function(e){var t=ra(e.x),a=ra(e.y),n=ra(e.width),r=ra(e.height),i=ra(e.borderWidth),o=ra(e.padding),l=t+i/2+o,c=a+i/2+o,d=n-(i/2+o)*2,m=r-(i/2+o)*2,f=[Co(l,c),gs(l,c+m),gs(l+d,c+m),gs(l+d,c),Vc(),Kae(),$ae()],h=Jm({x:t,y:a,width:n,height:r,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)}),x=bE(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)}),b=Na([ene("Tx"),ls()],x,[cs(),tne()]);return Na([ls()],h,f,b,[cs()])},kBe=function(e){for(var t=ra(e.x),a=ra(e.y),n=ra(e.width),r=ra(e.height),i=ra(e.lineHeight),o=ra(e.borderWidth),l=ra(e.padding),c=t+o/2+l,d=a+o/2+l,m=n-(o/2+l)*2,f=r-(o/2+l)*2,h=[Co(c,d),gs(c,d+f),gs(c+m,d+f),gs(c+m,d),Vc(),Kae(),$ae()],x=Jm({x:t,y:a,width:n,height:r,borderWidth:e.borderWidth,color:e.color,borderColor:e.borderColor,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)}),b=[],y=0,w=e.selectedLines.length;y<w;y++){var j=e.textLines[e.selectedLines[y]];b.push.apply(b,Jm({x:j.x-l,y:j.y-(i-j.height)/2,width:n-o,height:j.height+(i-j.height)/2,borderWidth:0,color:e.selectedColor,borderColor:void 0,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)}))}var N=bE(e.textLines,{color:e.textColor,font:e.font,size:e.fontSize,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)}),k=Na([ene("Tx"),ls()],N,[cs(),tne()]);return Na([ls()],x,b,h,k,[cs()])},NBe=(function(e){ft(t,e);function t(){var a=this,n="Input document to `PDFDocument.load` is encrypted. You can use `PDFDocument.load(..., { ignoreEncryption: true })` if you wish to load the document anyways.";return a=e.call(this,n)||this,a}return t})(Error),ABe=(function(e){ft(t,e);function t(){var a=this,n="Input to `PDFDocument.embedFont` was a custom font, but no `fontkit` instance was found. You must register a `fontkit` instance with `PDFDocument.registerFontkit(...)` before embedding custom fonts.";return a=e.call(this,n)||this,a}return t})(Error),SBe=(function(e){ft(t,e);function t(){var a=this,n="A `page` passed to `PDFDocument.addPage` or `PDFDocument.insertPage` was from a different (foreign) PDF document. If you want to copy pages from one PDFDocument to another, you must use `PDFDocument.copyPages(...)` to copy the pages before adding or inserting them.";return a=e.call(this,n)||this,a}return t})(Error),CBe=(function(e){ft(t,e);function t(){var a=this,n="PDFDocument has no pages so `PDFDocument.removePage` cannot be called";return a=e.call(this,n)||this,a}return t})(Error),TBe=(function(e){ft(t,e);function t(a){var n=this,r='PDFDocument has no form field with the name "'+a+'"';return n=e.call(this,r)||this,n}return t})(Error),_d=(function(e){ft(t,e);function t(a,n,r){var i,o,l=this,c=n?.name,d=(o=(i=r?.constructor)===null||i===void 0?void 0:i.name)!==null&&o!==void 0?o:r,m='Expected field "'+a+'" to be of type '+c+", "+("but it is actually of type "+d);return l=e.call(this,m)||this,l}return t})(Error);(function(e){ft(t,e);function t(a){var n=this,r='Failed to select check box due to missing onValue: "'+a+'"';return n=e.call(this,r)||this,n}return t})(Error);var ine=(function(e){ft(t,e);function t(a){var n=this,r='A field already exists with the specified name: "'+a+'"';return n=e.call(this,r)||this,n}return t})(Error),DBe=(function(e){ft(t,e);function t(a){var n=this,r='Field name contains invalid component: "'+a+'"';return n=e.call(this,r)||this,n}return t})(Error);(function(e){ft(t,e);function t(a){var n=this,r='A non-terminal field already exists with the specified name: "'+a+'"';return n=e.call(this,r)||this,n}return t})(Error);var EBe=(function(e){ft(t,e);function t(a){var n=this,r="Reading rich text fields is not supported: Attempted to read rich text field: "+a;return n=e.call(this,r)||this,n}return t})(Error),MBe=(function(e){ft(t,e);function t(a,n){var r=this,i="Failed to layout combed text as lineLength="+a+" is greater than cellCount="+n;return r=e.call(this,i)||this,r}return t})(Error),OBe=(function(e){ft(t,e);function t(a,n,r){var i=this,o="Attempted to set text with length="+a+" for TextField with maxLength="+n+" and name="+r;return i=e.call(this,o)||this,i}return t})(Error),RBe=(function(e){ft(t,e);function t(a,n,r){var i=this,o="Attempted to set maxLength="+n+", which is less than "+a+", the length of this field's current value (name="+r+")";return i=e.call(this,o)||this,i}return t})(Error),ss;(function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"})(ss||(ss={}));var one=4,lne=500,cne=function(e,t,a,n){n===void 0&&(n=!1);for(var r=one;r<lne;){for(var i=0,o=0,l=e.length;o<l;o++){i+=1;for(var c=e[o],d=c.split(" "),m=a.width,f=0,h=d.length;f<h;f++){var x=f===h-1,b=x?d[f]:d[f]+" ",y=t.widthOfTextAtSize(b,r);m-=y,m<=0&&(i+=1,m=a.width-y)}}if(!n&&i>e.length)return r-1;var w=t.heightAtSize(r),j=w+w*.2,N=j*i;if(N>Math.abs(a.height))return r-1;r+=1}return r},zBe=function(e,t,a,n){for(var r=a.width/n,i=a.height,o=one,l=QIe(e);o<lne;){for(var c=0,d=l.length;c<d;c++){var m=l[c],f=t.widthOfTextAtSize(m,o)>r*.75;if(f)return o-1}var h=t.heightAtSize(o,{descender:!1});if(h>i)return o-1;o+=1}return o},_Be=function(e){for(var t=e.length;t>0;t--)if(/\s/.test(e[t]))return t},IBe=function(e,t,a,n){for(var r,i=e.length;i>0;){var o=e.substring(0,i),l=a.encodeText(o),c=a.widthOfTextAtSize(o,n);if(c<t){var d=e.substring(i)||void 0;return{line:o,encoded:l,width:c,remainder:d}}i=(r=_Be(o))!==null&&r!==void 0?r:0}return{line:e,encoded:a.encodeText(e),width:a.widthOfTextAtSize(e,n),remainder:void 0}},dne=function(e,t){var a=t.alignment,n=t.fontSize,r=t.font,i=t.bounds,o=oae(hb(e));(n===void 0||n===0)&&(n=cne(o,r,i,!0));for(var l=r.heightAtSize(n),c=l+l*.2,d=[],m=i.x,f=i.y,h=i.x+i.width,x=i.y+i.height,b=i.y+i.height,y=0,w=o.length;y<w;y++)for(var j=o[y];j!==void 0;){var N=IBe(j,i.width,r,n),k=N.line,D=N.encoded,C=N.width,S=N.remainder,A=a===ss.Left?i.x:a===ss.Center?i.x+i.width/2-C/2:a===ss.Right?i.x+i.width-C:i.x;b-=c,A<m&&(m=A),b<f&&(f=b),A+C>h&&(h=A+C),b+l>x&&(x=b+l),d.push({text:k,encoded:D,width:C,height:l,x:A,y:b}),j=S?.trim()}return{fontSize:n,lineHeight:c,lines:d,bounds:{x:m,y:f,width:h-m,height:x-f}}},LBe=function(e,t){var a=t.fontSize,n=t.font,r=t.bounds,i=t.cellCount,o=lae(hb(e));if(o.length>i)throw new MBe(o.length,i);(a===void 0||a===0)&&(a=zBe(o,n,r,i));for(var l=r.width/i,c=n.heightAtSize(a,{descender:!1}),d=r.y+(r.height/2-c/2),m=[],f=r.x,h=r.y,x=r.x+r.width,b=r.y+r.height,y=0,w=0;y<i;){var j=cae(o,w),N=j[0],k=j[1],D=n.encodeText(N),C=n.widthOfTextAtSize(N,a),S=r.x+(l*y+l/2),A=S-C/2;A<f&&(f=A),d<h&&(h=d),A+C>x&&(x=A+C),d+c>b&&(b=d+c),m.push({text:o,encoded:D,width:C,height:c,x:A,y:d}),y+=1,w+=k}return{fontSize:a,cells:m,bounds:{x:f,y:h,width:x-f,height:b-h}}},G1=function(e,t){var a=t.alignment,n=t.fontSize,r=t.font,i=t.bounds,o=lae(hb(e));(n===void 0||n===0)&&(n=cne([o],r,i));var l=r.encodeText(o),c=r.widthOfTextAtSize(o,n),d=r.heightAtSize(n,{descender:!1}),m=a===ss.Left?i.x:a===ss.Center?i.x+i.width/2-c/2:a===ss.Right?i.x+i.width-c:i.x,f=i.y+(i.height/2-d/2);return{fontSize:n,line:{text:o,encoded:l,width:c,height:d,x:m,y:f},bounds:{x:m,y:f,width:c,height:d}}},Nf=function(e){return"normal"in e?e:{normal:e}},FBe=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,Wc=function(e){var t,a,n=(t=e.getDefaultAppearance())!==null&&t!==void 0?t:"",r=(a=X8(n,FBe).match)!==null&&a!==void 0?a:[],i=Number(r[2]);return isFinite(i)?i:void 0},BBe=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,yi=function(e){var t,a=(t=e.getDefaultAppearance())!==null&&t!==void 0?t:"",n=X8(a,BBe).match,r=n??[],i=r[1],o=r[2],l=r[3],c=r[4],d=r[5];if(d==="g"&&i)return ane(Number(i));if(d==="rg"&&i&&o&&l)return Ia(Number(i),Number(o),Number(l));if(d==="k"&&i&&o&&l&&c)return nne(Number(i),Number(o),Number(l),Number(c))},wi=function(e,t,a,n){var r;n===void 0&&(n=0);var i=[Gu(t).toString(),mE((r=a?.name)!==null&&r!==void 0?r:"dummy__noop",n).toString()].join(` 1163`);e.setDefaultAppearance(i)},GBe=function(e,t){var a,n,r,i=yi(t),o=yi(e.acroField),l=t.getRectangle(),c=t.getAppearanceCharacteristics(),d=t.getBorderStyle(),m=(a=d?.getWidth())!==null&&a!==void 0?a:0,f=Gl(c?.getRotation()),h=Fu(l,f),x=h.width,b=h.height,y=id(Xt(Xt({},l),{rotation:f})),w=Ia(0,0,0),j=(n=Js(c?.getBorderColor()))!==null&&n!==void 0?n:w,N=Js(c?.getBackgroundColor()),k=Js(c?.getBackgroundColor(),.8),D=(r=i??o)!==null&&r!==void 0?r:w;wi(i?t:e.acroField,D);var C={x:0+m/2,y:0+m/2,width:x-m,height:b-m,thickness:1.5,borderWidth:m,borderColor:j,markColor:D};return{normal:{on:Na(y,Av(Xt(Xt({},C),{color:N,filled:!0}))),off:Na(y,Av(Xt(Xt({},C),{color:N,filled:!1})))},down:{on:Na(y,Av(Xt(Xt({},C),{color:k,filled:!0}))),off:Na(y,Av(Xt(Xt({},C),{color:k,filled:!1})))}}},HBe=function(e,t){var a,n,r,i=yi(t),o=yi(e.acroField),l=t.getRectangle(),c=t.getAppearanceCharacteristics(),d=t.getBorderStyle(),m=(a=d?.getWidth())!==null&&a!==void 0?a:0,f=Gl(c?.getRotation()),h=Fu(l,f),x=h.width,b=h.height,y=id(Xt(Xt({},l),{rotation:f})),w=Ia(0,0,0),j=(n=Js(c?.getBorderColor()))!==null&&n!==void 0?n:w,N=Js(c?.getBackgroundColor()),k=Js(c?.getBackgroundColor(),.8),D=(r=i??o)!==null&&r!==void 0?r:w;wi(i?t:e.acroField,D);var C={x:x/2,y:b/2,width:x-m,height:b-m,borderWidth:m,borderColor:j,dotColor:D};return{normal:{on:Na(y,Sv(Xt(Xt({},C),{color:N,filled:!0}))),off:Na(y,Sv(Xt(Xt({},C),{color:N,filled:!1})))},down:{on:Na(y,Sv(Xt(Xt({},C),{color:k,filled:!0}))),off:Na(y,Sv(Xt(Xt({},C),{color:k,filled:!1})))}}},qBe=function(e,t,a){var n,r,i,o,l,c=yi(t),d=yi(e.acroField),m=Wc(t),f=Wc(e.acroField),h=t.getRectangle(),x=t.getAppearanceCharacteristics(),b=t.getBorderStyle(),y=x?.getCaptions(),w=(n=y?.normal)!==null&&n!==void 0?n:"",j=(i=(r=y?.down)!==null&&r!==void 0?r:w)!==null&&i!==void 0?i:"",N=(o=b?.getWidth())!==null&&o!==void 0?o:0,k=Gl(x?.getRotation()),D=Fu(h,k),C=D.width,S=D.height,A=id(Xt(Xt({},h),{rotation:k})),E=Ia(0,0,0),R=Js(x?.getBorderColor()),F=Js(x?.getBackgroundColor()),I=Js(x?.getBackgroundColor(),.8),H={x:N,y:N,width:C-N*2,height:S-N*2},_=G1(w,{alignment:ss.Center,fontSize:m??f,font:a,bounds:H}),V=G1(j,{alignment:ss.Center,fontSize:m??f,font:a,bounds:H}),W=Math.min(_.fontSize,V.fontSize),B=(l=c??d)!==null&&l!==void 0?l:E;wi(c||m!==void 0?t:e.acroField,B,a,W);var K={x:0+N/2,y:0+N/2,width:C-N,height:S-N,borderWidth:N,borderColor:R,textColor:B,font:a.name,fontSize:W};return{normal:Na(A,cV(Xt(Xt({},K),{color:F,textLines:[_.line]}))),down:Na(A,cV(Xt(Xt({},K),{color:I,textLines:[V.line]})))}},UBe=function(e,t,a){var n,r,i,o,l=yi(t),c=yi(e.acroField),d=Wc(t),m=Wc(e.acroField),f=t.getRectangle(),h=t.getAppearanceCharacteristics(),x=t.getBorderStyle(),b=(n=e.getText())!==null&&n!==void 0?n:"",y=(r=x?.getWidth())!==null&&r!==void 0?r:0,w=Gl(h?.getRotation()),j=Fu(f,w),N=j.width,k=j.height,D=id(Xt(Xt({},f),{rotation:w})),C=Ia(0,0,0),S=Js(h?.getBorderColor()),A=Js(h?.getBackgroundColor()),E,R,F=e.isCombed()?0:1,I={x:y+F,y:y+F,width:N-(y+F)*2,height:k-(y+F)*2};if(e.isMultiline()){var H=dne(b,{alignment:e.getAlignment(),fontSize:d??m,font:a,bounds:I});E=H.lines,R=H.fontSize}else if(e.isCombed()){var H=LBe(b,{fontSize:d??m,font:a,bounds:I,cellCount:(i=e.getMaxLength())!==null&&i!==void 0?i:0});E=H.cells,R=H.fontSize}else{var H=G1(b,{alignment:e.getAlignment(),fontSize:d??m,font:a,bounds:I});E=[H.line],R=H.fontSize}var _=(o=l??c)!==null&&o!==void 0?o:C;wi(l||d!==void 0?t:e.acroField,_,a,R);var V={x:0+y/2,y:0+y/2,width:N-y,height:k-y,borderWidth:y??0,borderColor:S,textColor:_,font:a.name,fontSize:R,color:A,textLines:E,padding:F};return Na(D,rne(V))},VBe=function(e,t,a){var n,r,i,o=yi(t),l=yi(e.acroField),c=Wc(t),d=Wc(e.acroField),m=t.getRectangle(),f=t.getAppearanceCharacteristics(),h=t.getBorderStyle(),x=(n=e.getSelected()[0])!==null&&n!==void 0?n:"",b=(r=h?.getWidth())!==null&&r!==void 0?r:0,y=Gl(f?.getRotation()),w=Fu(m,y),j=w.width,N=w.height,k=id(Xt(Xt({},m),{rotation:y})),D=Ia(0,0,0),C=Js(f?.getBorderColor()),S=Js(f?.getBackgroundColor()),A=1,E={x:b+A,y:b+A,width:j-(b+A)*2,height:N-(b+A)*2},R=G1(x,{alignment:ss.Left,fontSize:c??d,font:a,bounds:E}),F=R.line,I=R.fontSize,H=(i=o??l)!==null&&i!==void 0?i:D;wi(o||c!==void 0?t:e.acroField,H,a,I);var _={x:0+b/2,y:0+b/2,width:j-b,height:N-b,borderWidth:b??0,borderColor:C,textColor:H,font:a.name,fontSize:I,color:S,textLines:[F],padding:A};return Na(k,rne(_))},QBe=function(e,t,a){var n,r,i=yi(t),o=yi(e.acroField),l=Wc(t),c=Wc(e.acroField),d=t.getRectangle(),m=t.getAppearanceCharacteristics(),f=t.getBorderStyle(),h=(n=f?.getWidth())!==null&&n!==void 0?n:0,x=Gl(m?.getRotation()),b=Fu(d,x),y=b.width,w=b.height,j=id(Xt(Xt({},d),{rotation:x})),N=Ia(0,0,0),k=Js(m?.getBorderColor()),D=Js(m?.getBackgroundColor()),C=e.getOptions(),S=e.getSelected();e.isSorted()&&C.sort();for(var A="",E=0,R=C.length;E<R;E++)A+=C[E],E<R-1&&(A+=` 1164`);for(var F=1,I={x:h+F,y:h+F,width:y-(h+F)*2,height:w-(h+F)*2},H=dne(A,{alignment:ss.Left,fontSize:l??c,font:a,bounds:I}),_=H.lines,V=H.fontSize,W=H.lineHeight,B=[],E=0,R=_.length;E<R;E++){var K=_[E];S.includes(K.text)&&B.push(E)}var ae=Ia(153/255,193/255,218/255),$=(r=i??o)!==null&&r!==void 0?r:N;return wi(i||l!==void 0?t:e.acroField,$,a,V),Na(j,kBe({x:0+h/2,y:0+h/2,width:y-h,height:w-h,borderWidth:h??0,borderColor:k,textColor:$,font:a.name,fontSize:V,color:D,textLines:_,lineHeight:W,selectedColor:ae,selectedLines:B,padding:F}))},une=(function(){function e(t,a,n){this.alreadyEmbedded=!1,Re(t,"ref",[[Ua,"PDFRef"]]),Re(a,"doc",[[Kc,"PDFDocument"]]),Re(n,"embedder",[[_ae,"PDFPageEmbedder"]]),this.ref=t,this.doc=a,this.width=n.width,this.height=n.height,this.embedder=n}return e.prototype.scale=function(t){return Re(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},e.prototype.size=function(){return this.scale(1)},e.prototype.embed=function(){return na(this,void 0,void 0,function(){return sa(this,function(t){switch(t.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t.sent(),this.alreadyEmbedded=!0,t.label=2;case 2:return[2]}})})},e.of=function(t,a,n){return new e(t,a,n)},e})(),Fr=(function(){function e(t,a,n){this.modified=!0,Re(t,"ref",[[Ua,"PDFRef"]]),Re(a,"doc",[[Kc,"PDFDocument"]]),Re(n,"embedder",[[sE,"CustomFontEmbedder"],[O1,"StandardFontEmbedder"]]),this.ref=t,this.doc=a,this.name=n.fontName,this.embedder=n}return e.prototype.encodeText=function(t){return Re(t,"text",["string"]),this.modified=!0,this.embedder.encodeText(t)},e.prototype.widthOfTextAtSize=function(t,a){return Re(t,"text",["string"]),Re(a,"size",["number"]),this.embedder.widthOfTextAtSize(t,a)},e.prototype.heightAtSize=function(t,a){var n;return Re(t,"size",["number"]),pt(a?.descender,"options.descender",["boolean"]),this.embedder.heightOfFontAtSize(t,{descender:(n=a?.descender)!==null&&n!==void 0?n:!0})},e.prototype.sizeAtHeight=function(t){return Re(t,"height",["number"]),this.embedder.sizeOfFontAtHeight(t)},e.prototype.getCharacterSet=function(){return this.embedder instanceof O1?this.embedder.encoding.supportedCodePoints:this.embedder.font.characterSet},e.prototype.embed=function(){return na(this,void 0,void 0,function(){return sa(this,function(t){switch(t.label){case 0:return this.modified?[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]:[3,2];case 1:t.sent(),this.modified=!1,t.label=2;case 2:return[2]}})})},e.of=function(t,a,n){return new e(t,a,n)},e})(),HT=(function(){function e(t,a,n){Re(t,"ref",[[Ua,"PDFRef"]]),Re(a,"doc",[[Kc,"PDFDocument"]]),Re(n,"embedder",[[Mae,"JpegEmbedder"],[Oae,"PngEmbedder"]]),this.ref=t,this.doc=a,this.width=n.width,this.height=n.height,this.embedder=n}return e.prototype.scale=function(t){return Re(t,"factor",["number"]),{width:this.width*t,height:this.height*t}},e.prototype.scaleToFit=function(t,a){Re(t,"width",["number"]),Re(a,"height",["number"]);var n=t/this.width,r=a/this.height,i=Math.min(n,r);return this.scale(i)},e.prototype.size=function(){return this.scale(1)},e.prototype.embed=function(){return na(this,void 0,void 0,function(){var t,a,n;return sa(this,function(r){switch(r.label){case 0:return this.embedder?(this.embedTask||(t=this,a=t.doc,n=t.ref,this.embedTask=this.embedder.embedIntoContext(a.context,n)),[4,this.embedTask]):[2];case 1:return r.sent(),this.embedder=void 0,[2]}})})},e.of=function(t,a,n){return new e(t,a,n)},e})(),zc;(function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"})(zc||(zc={}));var Af=function(e){pt(e?.x,"options.x",["number"]),pt(e?.y,"options.y",["number"]),pt(e?.width,"options.width",["number"]),pt(e?.height,"options.height",["number"]),pt(e?.textColor,"options.textColor",[[Object,"Color"]]),pt(e?.backgroundColor,"options.backgroundColor",[[Object,"Color"]]),pt(e?.borderColor,"options.borderColor",[[Object,"Color"]]),pt(e?.borderWidth,"options.borderWidth",["number"]),pt(e?.rotate,"options.rotate",[[Object,"Rotation"]])},Hu=(function(){function e(t,a,n){Re(t,"acroField",[[jf,"PDFAcroTerminal"]]),Re(a,"ref",[[Ua,"PDFRef"]]),Re(n,"doc",[[Kc,"PDFDocument"]]),this.acroField=t,this.ref=a,this.doc=n}return e.prototype.getName=function(){var t;return(t=this.acroField.getFullyQualifiedName())!==null&&t!==void 0?t:""},e.prototype.isReadOnly=function(){return this.acroField.hasFlag(zi.ReadOnly)},e.prototype.enableReadOnly=function(){this.acroField.setFlagTo(zi.ReadOnly,!0)},e.prototype.disableReadOnly=function(){this.acroField.setFlagTo(zi.ReadOnly,!1)},e.prototype.isRequired=function(){return this.acroField.hasFlag(zi.Required)},e.prototype.enableRequired=function(){this.acroField.setFlagTo(zi.Required,!0)},e.prototype.disableRequired=function(){this.acroField.setFlagTo(zi.Required,!1)},e.prototype.isExported=function(){return!this.acroField.hasFlag(zi.NoExport)},e.prototype.enableExporting=function(){this.acroField.setFlagTo(zi.NoExport,!1)},e.prototype.disableExporting=function(){this.acroField.setFlagTo(zi.NoExport,!0)},e.prototype.needsAppearancesUpdate=function(){throw new mi(this.constructor.name,"needsAppearancesUpdate")},e.prototype.defaultUpdateAppearances=function(t){throw new mi(this.constructor.name,"defaultUpdateAppearances")},e.prototype.markAsDirty=function(){this.doc.getForm().markFieldAsDirty(this.ref)},e.prototype.markAsClean=function(){this.doc.getForm().markFieldAsClean(this.ref)},e.prototype.isDirty=function(){return this.doc.getForm().fieldIsDirty(this.ref)},e.prototype.createWidget=function(t){var a,n=t.textColor,r=t.backgroundColor,i=t.borderColor,o=t.borderWidth,l=Wae(t.rotate),c=t.caption,d=t.x,m=t.y,f=t.width+o,h=t.height+o,x=!!t.hidden,b=t.page;Nae(l,"degreesAngle",90);var y=FT.create(this.doc.context,this.ref),w=aBe({x:d,y:m,width:f,height:h},o,l);y.setRectangle(w),b&&y.setP(b);var j=y.getOrCreateAppearanceCharacteristics();r&&j.setBackgroundColor(rV(r)),j.setRotation(l),c&&j.setCaptions({normal:c}),i&&j.setBorderColor(rV(i));var N=y.getOrCreateBorderStyle();if(o!==void 0&&N.setWidth(o),y.setFlagTo(Ng.Print,!0),y.setFlagTo(Ng.Hidden,x),y.setFlagTo(Ng.Invisible,!1),n){var k=(a=this.acroField.getDefaultAppearance())!==null&&a!==void 0?a:"",D=k+` 1165`+Gu(n).toString();this.acroField.setDefaultAppearance(D)}return y},e.prototype.updateWidgetAppearanceWithFont=function(t,a,n){var r=n.normal,i=n.rollover,o=n.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceStream(t,r,a),rollover:i&&this.createAppearanceStream(t,i,a),down:o&&this.createAppearanceStream(t,o,a)})},e.prototype.updateOnOffWidgetAppearance=function(t,a,n){var r=n.normal,i=n.rollover,o=n.down;this.updateWidgetAppearances(t,{normal:this.createAppearanceDict(t,r,a),rollover:i&&this.createAppearanceDict(t,i,a),down:o&&this.createAppearanceDict(t,o,a)})},e.prototype.updateWidgetAppearances=function(t,a){var n=a.normal,r=a.rollover,i=a.down;t.setNormalAppearance(n),r?t.setRolloverAppearance(r):t.removeRolloverAppearance(),i?t.setDownAppearance(i):t.removeDownAppearance()},e.prototype.createAppearanceStream=function(t,a,n){var r,i=this.acroField.dict.context,o=t.getRectangle(),l=o.width,c=o.height,d=n&&{Font:(r={},r[n.name]=n.ref,r)},m=i.formXObject(a,{Resources:d,BBox:i.obj([0,0,l,c]),Matrix:i.obj([1,0,0,1,0,0])}),f=i.register(m);return f},e.prototype.createImageAppearanceStream=function(t,a,n){var r,i,o=this.acroField.dict.context,l=t.getRectangle(),c=t.getAppearanceCharacteristics(),d=t.getBorderStyle(),m=(i=d?.getWidth())!==null&&i!==void 0?i:0,f=Gl(c?.getRotation()),h=id(Xt(Xt({},l),{rotation:f})),x=Fu(l,f),b=a.scaleToFit(x.width-m*2,x.height-m*2),y={x:m,y:m,width:b.width,height:b.height,rotate:Ut(0),xSkew:Ut(0),ySkew:Ut(0)};n===zc.Center?(y.x+=(x.width-m*2)/2-b.width/2,y.y+=(x.height-m*2)/2-b.height/2):n===zc.Right&&(y.x=x.width-m-b.width,y.y=x.height-m-b.height);var w=this.doc.context.addRandomSuffix("Image",10),j=Na(h,sne(w,y)),N={XObject:(r={},r[w]=a.ref,r)},k=o.formXObject(j,{Resources:N,BBox:o.obj([0,0,l.width,l.height]),Matrix:o.obj([1,0,0,1,0,0])});return o.register(k)},e.prototype.createAppearanceDict=function(t,a,n){var r=this.acroField.dict.context,i=this.createAppearanceStream(t,a.on),o=this.createAppearanceStream(t,a.off),l=r.obj({});return l.set(n,i),l.set(ue.of("Off"),o),l},e})(),Jh=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,a,n,r)||this;return Re(a,"acroCheckBox",[[Tw,"PDFAcroCheckBox"]]),i.acroField=a,i}return t.prototype.check=function(){var a,n=(a=this.acroField.getOnValue())!==null&&a!==void 0?a:ue.of("Yes");this.markAsDirty(),this.acroField.setValue(n)},t.prototype.uncheck=function(){this.markAsDirty(),this.acroField.setValue(ue.of("Off"))},t.prototype.isChecked=function(){var a=this.acroField.getOnValue();return!!a&&a===this.acroField.getValue()},t.prototype.addToPage=function(a,n){var r,i,o,l,c,d;Re(a,"page",[[ci,"PDFPage"]]),Af(n),n||(n={}),"textColor"in n||(n.textColor=Ia(0,0,0)),"backgroundColor"in n||(n.backgroundColor=Ia(1,1,1)),"borderColor"in n||(n.borderColor=Ia(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var m=this.createWidget({x:(r=n.x)!==null&&r!==void 0?r:0,y:(i=n.y)!==null&&i!==void 0?i:0,width:(o=n.width)!==null&&o!==void 0?o:50,height:(l=n.height)!==null&&l!==void 0?l:50,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(c=n.borderWidth)!==null&&c!==void 0?c:0,rotate:(d=n.rotate)!==null&&d!==void 0?d:Ut(0),hidden:n.hidden,page:a.ref}),f=this.doc.context.register(m.dict);this.acroField.addWidget(f),m.setAppearanceState(ue.of("Off")),this.updateWidgetAppearance(m,ue.of("Yes")),a.node.addAnnot(f)},t.prototype.needsAppearancesUpdate=function(){for(var a,n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],l=o.getAppearanceState(),c=(a=o.getAppearances())===null||a===void 0?void 0:a.normal;if(!(c instanceof ta)||l&&!c.has(l))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(a){var n;pt(a,"provider",[Function]);for(var r=this.acroField.getWidgets(),i=0,o=r.length;i<o;i++){var l=r[i],c=(n=l.getOnValue())!==null&&n!==void 0?n:ue.of("Yes");c&&this.updateWidgetAppearance(l,c,a)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(a,n,r){var i=r??GBe,o=Nf(i(this,a));this.updateOnOffWidgetAppearance(a,n,o)},t.of=function(a,n,r){return new t(a,n,r)},t})(Hu),$v=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,a,n,r)||this;return Re(a,"acroComboBox",[[Dw,"PDFAcroComboBox"]]),i.acroField=a,i}return t.prototype.getOptions=function(){for(var a=this.acroField.getOptions(),n=new Array(a.length),r=0,i=n.length;r<i;r++){var o=a[r],l=o.display,c=o.value;n[r]=(l??c).decodeText()}return n},t.prototype.getSelected=function(){for(var a=this.acroField.getValues(),n=new Array(a.length),r=0,i=a.length;r<i;r++)n[r]=a[r].decodeText();return n},t.prototype.setOptions=function(a){Re(a,"options",[Array]);for(var n=new Array(a.length),r=0,i=a.length;r<i;r++)n[r]={value:qt.fromText(a[r])};this.acroField.setOptions(n)},t.prototype.addOptions=function(a){Re(a,"options",["string",Array]);for(var n=Array.isArray(a)?a:[a],r=this.acroField.getOptions(),i=new Array(n.length),o=0,l=n.length;o<l;o++)i[o]={value:qt.fromText(n[o])};this.acroField.setOptions(r.concat(i))},t.prototype.select=function(a,n){n===void 0&&(n=!1),Re(a,"options",["string",Array]),Re(n,"merge",["boolean"]);var r=Array.isArray(a)?a:[a],i=this.getOptions(),o=r.find(function(f){return!i.includes(f)});o&&this.enableEditing(),this.markAsDirty(),(r.length>1||r.length===1&&n)&&this.enableMultiselect();for(var l=new Array(r.length),c=0,d=r.length;c<d;c++)l[c]=qt.fromText(r[c]);if(n){var m=this.acroField.getValues();this.acroField.setValues(m.concat(l))}else this.acroField.setValues(l)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(a){Sw(a,"fontSize"),this.acroField.setFontSize(a),this.markAsDirty()},t.prototype.isEditable=function(){return this.acroField.hasFlag(Ha.Edit)},t.prototype.enableEditing=function(){this.acroField.setFlagTo(Ha.Edit,!0)},t.prototype.disableEditing=function(){this.acroField.setFlagTo(Ha.Edit,!1)},t.prototype.isSorted=function(){return this.acroField.hasFlag(Ha.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo(Ha.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo(Ha.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag(Ha.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Ha.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Ha.MultiSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(Ha.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(Ha.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(Ha.DoNotSpellCheck,!0)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Ha.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Ha.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Ha.CommitOnSelChange,!1)},t.prototype.addToPage=function(a,n){var r,i,o,l,c,d,m;Re(a,"page",[[ci,"PDFPage"]]),Af(n),n||(n={}),"textColor"in n||(n.textColor=Ia(0,0,0)),"backgroundColor"in n||(n.backgroundColor=Ia(1,1,1)),"borderColor"in n||(n.borderColor=Ia(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var f=this.createWidget({x:(r=n.x)!==null&&r!==void 0?r:0,y:(i=n.y)!==null&&i!==void 0?i:0,width:(o=n.width)!==null&&o!==void 0?o:200,height:(l=n.height)!==null&&l!==void 0?l:50,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(c=n.borderWidth)!==null&&c!==void 0?c:0,rotate:(d=n.rotate)!==null&&d!==void 0?d:Ut(0),hidden:n.hidden,page:a.ref}),h=this.doc.context.register(f.dict);this.acroField.addWidget(h);var x=(m=n.font)!==null&&m!==void 0?m:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(f,x),a.node.addAnnot(h)},t.prototype.needsAppearancesUpdate=function(){var a;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],l=((a=o.getAppearances())===null||a===void 0?void 0:a.normal)instanceof _r;if(!l)return!0}return!1},t.prototype.defaultUpdateAppearances=function(a){Re(a,"font",[[Fr,"PDFFont"]]),this.updateAppearances(a)},t.prototype.updateAppearances=function(a,n){Re(a,"font",[[Fr,"PDFFont"]]),pt(n,"provider",[Function]);for(var r=this.acroField.getWidgets(),i=0,o=r.length;i<o;i++){var l=r[i];this.updateWidgetAppearance(l,a,n)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(a,n,r){var i=r??VBe,o=Nf(i(this,a,n));this.updateWidgetAppearanceWithFont(a,n,o)},t.of=function(a,n,r){return new t(a,n,r)},t})(Hu),Xv=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,a,n,r)||this;return Re(a,"acroListBox",[[Rw,"PDFAcroListBox"]]),i.acroField=a,i}return t.prototype.getOptions=function(){for(var a=this.acroField.getOptions(),n=new Array(a.length),r=0,i=n.length;r<i;r++){var o=a[r],l=o.display,c=o.value;n[r]=(l??c).decodeText()}return n},t.prototype.getSelected=function(){for(var a=this.acroField.getValues(),n=new Array(a.length),r=0,i=a.length;r<i;r++)n[r]=a[r].decodeText();return n},t.prototype.setOptions=function(a){Re(a,"options",[Array]),this.markAsDirty();for(var n=new Array(a.length),r=0,i=a.length;r<i;r++)n[r]={value:qt.fromText(a[r])};this.acroField.setOptions(n)},t.prototype.addOptions=function(a){Re(a,"options",["string",Array]),this.markAsDirty();for(var n=Array.isArray(a)?a:[a],r=this.acroField.getOptions(),i=new Array(n.length),o=0,l=n.length;o<l;o++)i[o]={value:qt.fromText(n[o])};this.acroField.setOptions(r.concat(i))},t.prototype.select=function(a,n){n===void 0&&(n=!1),Re(a,"options",["string",Array]),Re(n,"merge",["boolean"]);var r=Array.isArray(a)?a:[a],i=this.getOptions();ULe(r,"option",i),this.markAsDirty(),(r.length>1||r.length===1&&n)&&this.enableMultiselect();for(var o=new Array(r.length),l=0,c=r.length;l<c;l++)o[l]=qt.fromText(r[l]);if(n){var d=this.acroField.getValues();this.acroField.setValues(d.concat(o))}else this.acroField.setValues(o)},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValues([])},t.prototype.setFontSize=function(a){Sw(a,"fontSize"),this.acroField.setFontSize(a),this.markAsDirty()},t.prototype.isSorted=function(){return this.acroField.hasFlag(Ha.Sort)},t.prototype.enableSorting=function(){this.acroField.setFlagTo(Ha.Sort,!0)},t.prototype.disableSorting=function(){this.acroField.setFlagTo(Ha.Sort,!1)},t.prototype.isMultiselect=function(){return this.acroField.hasFlag(Ha.MultiSelect)},t.prototype.enableMultiselect=function(){this.acroField.setFlagTo(Ha.MultiSelect,!0)},t.prototype.disableMultiselect=function(){this.acroField.setFlagTo(Ha.MultiSelect,!1)},t.prototype.isSelectOnClick=function(){return this.acroField.hasFlag(Ha.CommitOnSelChange)},t.prototype.enableSelectOnClick=function(){this.acroField.setFlagTo(Ha.CommitOnSelChange,!0)},t.prototype.disableSelectOnClick=function(){this.acroField.setFlagTo(Ha.CommitOnSelChange,!1)},t.prototype.addToPage=function(a,n){var r,i,o,l,c,d,m;Re(a,"page",[[ci,"PDFPage"]]),Af(n),n||(n={}),"textColor"in n||(n.textColor=Ia(0,0,0)),"backgroundColor"in n||(n.backgroundColor=Ia(1,1,1)),"borderColor"in n||(n.borderColor=Ia(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var f=this.createWidget({x:(r=n.x)!==null&&r!==void 0?r:0,y:(i=n.y)!==null&&i!==void 0?i:0,width:(o=n.width)!==null&&o!==void 0?o:200,height:(l=n.height)!==null&&l!==void 0?l:100,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(c=n.borderWidth)!==null&&c!==void 0?c:0,rotate:(d=n.rotate)!==null&&d!==void 0?d:Ut(0),hidden:n.hidden,page:a.ref}),h=this.doc.context.register(f.dict);this.acroField.addWidget(h);var x=(m=n.font)!==null&&m!==void 0?m:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(f,x),a.node.addAnnot(h)},t.prototype.needsAppearancesUpdate=function(){var a;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],l=((a=o.getAppearances())===null||a===void 0?void 0:a.normal)instanceof _r;if(!l)return!0}return!1},t.prototype.defaultUpdateAppearances=function(a){Re(a,"font",[[Fr,"PDFFont"]]),this.updateAppearances(a)},t.prototype.updateAppearances=function(a,n){Re(a,"font",[[Fr,"PDFFont"]]),pt(n,"provider",[Function]);for(var r=this.acroField.getWidgets(),i=0,o=r.length;i<o;i++){var l=r[i];this.updateWidgetAppearance(l,a,n)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(a,n,r){var i=r??QBe,o=Nf(i(this,a,n));this.updateWidgetAppearanceWithFont(a,n,o)},t.of=function(a,n,r){return new t(a,n,r)},t})(Hu),eg=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,a,n,r)||this;return Re(a,"acroRadioButton",[[Ow,"PDFAcroRadioButton"]]),i.acroField=a,i}return t.prototype.getOptions=function(){var a=this.acroField.getExportValues();if(a){for(var n=new Array(a.length),r=0,i=a.length;r<i;r++)n[r]=a[r].decodeText();return n}for(var o=this.acroField.getOnValues(),l=new Array(o.length),r=0,i=l.length;r<i;r++)l[r]=o[r].decodeText();return l},t.prototype.getSelected=function(){var a=this.acroField.getValue();if(a!==ue.of("Off")){var n=this.acroField.getExportValues();if(n){for(var r=this.acroField.getOnValues(),i=0,o=r.length;i<o;i++)if(r[i]===a)return n[i].decodeText()}return a.decodeText()}},t.prototype.select=function(a){Re(a,"option",["string"]);var n=this.getOptions();Tc(a,"option",n),this.markAsDirty();var r=this.acroField.getOnValues(),i=this.acroField.getExportValues();if(i)for(var o=0,l=i.length;o<l;o++)i[o].decodeText()===a&&this.acroField.setValue(r[o]);else for(var o=0,l=r.length;o<l;o++){var c=r[o];c.decodeText()===a&&this.acroField.setValue(c)}},t.prototype.clear=function(){this.markAsDirty(),this.acroField.setValue(ue.of("Off"))},t.prototype.isOffToggleable=function(){return!this.acroField.hasFlag(li.NoToggleToOff)},t.prototype.enableOffToggling=function(){this.acroField.setFlagTo(li.NoToggleToOff,!1)},t.prototype.disableOffToggling=function(){this.acroField.setFlagTo(li.NoToggleToOff,!0)},t.prototype.isMutuallyExclusive=function(){return!this.acroField.hasFlag(li.RadiosInUnison)},t.prototype.enableMutualExclusion=function(){this.acroField.setFlagTo(li.RadiosInUnison,!1)},t.prototype.disableMutualExclusion=function(){this.acroField.setFlagTo(li.RadiosInUnison,!0)},t.prototype.addOptionToPage=function(a,n,r){var i,o,l,c,d,m,f,h,x;Re(a,"option",["string"]),Re(n,"page",[[ci,"PDFPage"]]),Af(r);var b=this.createWidget({x:(i=r?.x)!==null&&i!==void 0?i:0,y:(o=r?.y)!==null&&o!==void 0?o:0,width:(l=r?.width)!==null&&l!==void 0?l:50,height:(c=r?.height)!==null&&c!==void 0?c:50,textColor:(d=r?.textColor)!==null&&d!==void 0?d:Ia(0,0,0),backgroundColor:(m=r?.backgroundColor)!==null&&m!==void 0?m:Ia(1,1,1),borderColor:(f=r?.borderColor)!==null&&f!==void 0?f:Ia(0,0,0),borderWidth:(h=r?.borderWidth)!==null&&h!==void 0?h:1,rotate:(x=r?.rotate)!==null&&x!==void 0?x:Ut(0),hidden:r?.hidden,page:n.ref}),y=this.doc.context.register(b.dict),w=this.acroField.addWidgetWithOpt(y,qt.fromText(a),!this.isMutuallyExclusive());b.setAppearanceState(ue.of("Off")),this.updateWidgetAppearance(b,w),n.node.addAnnot(y)},t.prototype.needsAppearancesUpdate=function(){for(var a,n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],l=o.getAppearanceState(),c=(a=o.getAppearances())===null||a===void 0?void 0:a.normal;if(!(c instanceof ta)||l&&!c.has(l))return!0}return!1},t.prototype.defaultUpdateAppearances=function(){this.updateAppearances()},t.prototype.updateAppearances=function(a){pt(a,"provider",[Function]);for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],l=o.getOnValue();l&&this.updateWidgetAppearance(o,l,a)}},t.prototype.updateWidgetAppearance=function(a,n,r){var i=r??HBe,o=Nf(i(this,a));this.updateOnOffWidgetAppearance(a,n,o)},t.of=function(a,n,r){return new t(a,n,r)},t})(Hu),qT=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,a,n,r)||this;return Re(a,"acroSignature",[[iE,"PDFAcroSignature"]]),i.acroField=a,i}return t.prototype.needsAppearancesUpdate=function(){return!1},t.of=function(a,n,r){return new t(a,n,r)},t})(Hu),Yv=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,a,n,r)||this;return Re(a,"acroText",[[Ew,"PDFAcroText"]]),i.acroField=a,i}return t.prototype.getText=function(){var a=this.acroField.getValue();if(!a&&this.isRichFormatted())throw new EBe(this.getName());return a?.decodeText()},t.prototype.setText=function(a){pt(a,"text",["string"]);var n=this.getMaxLength();if(n!==void 0&&a&&a.length>n)throw new OBe(a.length,n,this.getName());this.markAsDirty(),this.disableRichFormatting(),a?this.acroField.setValue(qt.fromText(a)):this.acroField.removeValue()},t.prototype.getAlignment=function(){var a=this.acroField.getQuadding();return a===0?ss.Left:a===1?ss.Center:a===2?ss.Right:ss.Left},t.prototype.setAlignment=function(a){Tc(a,"alignment",ss),this.markAsDirty(),this.acroField.setQuadding(a)},t.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},t.prototype.setMaxLength=function(a){if(Mi(a,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),a===void 0)this.acroField.removeMaxLength();else{var n=this.getText();if(n&&n.length>a)throw new RBe(n.length,a,this.getName());this.acroField.setMaxLength(a)}},t.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},t.prototype.setImage=function(a){for(var n=this.getAlignment(),r=n===ss.Center?zc.Center:n===ss.Right?zc.Right:zc.Left,i=this.acroField.getWidgets(),o=0,l=i.length;o<l;o++){var c=i[o],d=this.createImageAppearanceStream(c,a,r);this.updateWidgetAppearances(c,{normal:d})}this.markAsClean()},t.prototype.setFontSize=function(a){Sw(a,"fontSize"),this.acroField.setFontSize(a),this.markAsDirty()},t.prototype.isMultiline=function(){return this.acroField.hasFlag(kn.Multiline)},t.prototype.enableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(kn.Multiline,!0)},t.prototype.disableMultiline=function(){this.markAsDirty(),this.acroField.setFlagTo(kn.Multiline,!1)},t.prototype.isPassword=function(){return this.acroField.hasFlag(kn.Password)},t.prototype.enablePassword=function(){this.acroField.setFlagTo(kn.Password,!0)},t.prototype.disablePassword=function(){this.acroField.setFlagTo(kn.Password,!1)},t.prototype.isFileSelector=function(){return this.acroField.hasFlag(kn.FileSelect)},t.prototype.enableFileSelection=function(){this.acroField.setFlagTo(kn.FileSelect,!0)},t.prototype.disableFileSelection=function(){this.acroField.setFlagTo(kn.FileSelect,!1)},t.prototype.isSpellChecked=function(){return!this.acroField.hasFlag(kn.DoNotSpellCheck)},t.prototype.enableSpellChecking=function(){this.acroField.setFlagTo(kn.DoNotSpellCheck,!1)},t.prototype.disableSpellChecking=function(){this.acroField.setFlagTo(kn.DoNotSpellCheck,!0)},t.prototype.isScrollable=function(){return!this.acroField.hasFlag(kn.DoNotScroll)},t.prototype.enableScrolling=function(){this.acroField.setFlagTo(kn.DoNotScroll,!1)},t.prototype.disableScrolling=function(){this.acroField.setFlagTo(kn.DoNotScroll,!0)},t.prototype.isCombed=function(){return this.acroField.hasFlag(kn.Comb)&&!this.isMultiline()&&!this.isPassword()&&!this.isFileSelector()&&this.getMaxLength()!==void 0},t.prototype.enableCombing=function(){if(this.getMaxLength()===void 0){var a="PDFTextFields must have a max length in order to be combed";console.warn(a)}this.markAsDirty(),this.disableMultiline(),this.disablePassword(),this.disableFileSelection(),this.acroField.setFlagTo(kn.Comb,!0)},t.prototype.disableCombing=function(){this.markAsDirty(),this.acroField.setFlagTo(kn.Comb,!1)},t.prototype.isRichFormatted=function(){return this.acroField.hasFlag(kn.RichText)},t.prototype.enableRichFormatting=function(){this.acroField.setFlagTo(kn.RichText,!0)},t.prototype.disableRichFormatting=function(){this.acroField.setFlagTo(kn.RichText,!1)},t.prototype.addToPage=function(a,n){var r,i,o,l,c,d,m;Re(a,"page",[[ci,"PDFPage"]]),Af(n),n||(n={}),"textColor"in n||(n.textColor=Ia(0,0,0)),"backgroundColor"in n||(n.backgroundColor=Ia(1,1,1)),"borderColor"in n||(n.borderColor=Ia(0,0,0)),"borderWidth"in n||(n.borderWidth=1);var f=this.createWidget({x:(r=n.x)!==null&&r!==void 0?r:0,y:(i=n.y)!==null&&i!==void 0?i:0,width:(o=n.width)!==null&&o!==void 0?o:200,height:(l=n.height)!==null&&l!==void 0?l:50,textColor:n.textColor,backgroundColor:n.backgroundColor,borderColor:n.borderColor,borderWidth:(c=n.borderWidth)!==null&&c!==void 0?c:0,rotate:(d=n.rotate)!==null&&d!==void 0?d:Ut(0),hidden:n.hidden,page:a.ref}),h=this.doc.context.register(f.dict);this.acroField.addWidget(h);var x=(m=n.font)!==null&&m!==void 0?m:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(f,x),a.node.addAnnot(h)},t.prototype.needsAppearancesUpdate=function(){var a;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],l=((a=o.getAppearances())===null||a===void 0?void 0:a.normal)instanceof _r;if(!l)return!0}return!1},t.prototype.defaultUpdateAppearances=function(a){Re(a,"font",[[Fr,"PDFFont"]]),this.updateAppearances(a)},t.prototype.updateAppearances=function(a,n){Re(a,"font",[[Fr,"PDFFont"]]),pt(n,"provider",[Function]);for(var r=this.acroField.getWidgets(),i=0,o=r.length;i<o;i++){var l=r[i];this.updateWidgetAppearance(l,a,n)}this.markAsClean()},t.prototype.updateWidgetAppearance=function(a,n,r){var i=r??UBe,o=Nf(i(this,a,n));this.updateWidgetAppearanceWithFont(a,n,o)},t.of=function(a,n,r){return new t(a,n,r)},t})(Hu),Ix;(function(e){e.Courier="Courier",e.CourierBold="Courier-Bold",e.CourierOblique="Courier-Oblique",e.CourierBoldOblique="Courier-BoldOblique",e.Helvetica="Helvetica",e.HelveticaBold="Helvetica-Bold",e.HelveticaOblique="Helvetica-Oblique",e.HelveticaBoldOblique="Helvetica-BoldOblique",e.TimesRoman="Times-Roman",e.TimesRomanBold="Times-Bold",e.TimesRomanItalic="Times-Italic",e.TimesRomanBoldItalic="Times-BoldItalic",e.Symbol="Symbol",e.ZapfDingbats="ZapfDingbats"})(Ix||(Ix={}));var WBe=(function(){function e(t,a){var n=this;this.embedDefaultFont=function(){return n.doc.embedStandardFont(Ix.Helvetica)},Re(t,"acroForm",[[_1,"PDFAcroForm"]]),Re(a,"doc",[[Kc,"PDFDocument"]]),this.acroForm=t,this.doc=a,this.dirtyFields=new Set,this.defaultFontCache=Pl.populatedBy(this.embedDefaultFont)}return e.prototype.hasXFA=function(){return this.acroForm.dict.has(ue.of("XFA"))},e.prototype.deleteXFA=function(){this.acroForm.dict.delete(ue.of("XFA"))},e.prototype.getFields=function(){for(var t=this.acroForm.getAllFields(),a=[],n=0,r=t.length;n<r;n++){var i=t[n],o=i[0],l=i[1],c=KBe(o,l,this.doc);c&&a.push(c)}return a},e.prototype.getFieldMaybe=function(t){Re(t,"name",["string"]);for(var a=this.getFields(),n=0,r=a.length;n<r;n++){var i=a[n];if(i.getName()===t)return i}},e.prototype.getField=function(t){Re(t,"name",["string"]);var a=this.getFieldMaybe(t);if(a)return a;throw new TBe(t)},e.prototype.getButton=function(t){Re(t,"name",["string"]);var a=this.getField(t);if(a instanceof Zv)return a;throw new _d(t,Zv,a)},e.prototype.getCheckBox=function(t){Re(t,"name",["string"]);var a=this.getField(t);if(a instanceof Jh)return a;throw new _d(t,Jh,a)},e.prototype.getDropdown=function(t){Re(t,"name",["string"]);var a=this.getField(t);if(a instanceof $v)return a;throw new _d(t,$v,a)},e.prototype.getOptionList=function(t){Re(t,"name",["string"]);var a=this.getField(t);if(a instanceof Xv)return a;throw new _d(t,Xv,a)},e.prototype.getRadioGroup=function(t){Re(t,"name",["string"]);var a=this.getField(t);if(a instanceof eg)return a;throw new _d(t,eg,a)},e.prototype.getSignature=function(t){Re(t,"name",["string"]);var a=this.getField(t);if(a instanceof qT)return a;throw new _d(t,qT,a)},e.prototype.getTextField=function(t){Re(t,"name",["string"]);var a=this.getField(t);if(a instanceof Yv)return a;throw new _d(t,Yv,a)},e.prototype.createButton=function(t){Re(t,"name",["string"]);var a=Gp(t),n=this.findOrCreateNonTerminals(a.nonTerminal),r=Mw.create(this.doc.context);return r.setPartialName(a.terminal),Hp(n,[r,r.ref],a.terminal),Zv.of(r,r.ref,this.doc)},e.prototype.createCheckBox=function(t){Re(t,"name",["string"]);var a=Gp(t),n=this.findOrCreateNonTerminals(a.nonTerminal),r=Tw.create(this.doc.context);return r.setPartialName(a.terminal),Hp(n,[r,r.ref],a.terminal),Jh.of(r,r.ref,this.doc)},e.prototype.createDropdown=function(t){Re(t,"name",["string"]);var a=Gp(t),n=this.findOrCreateNonTerminals(a.nonTerminal),r=Dw.create(this.doc.context);return r.setPartialName(a.terminal),Hp(n,[r,r.ref],a.terminal),$v.of(r,r.ref,this.doc)},e.prototype.createOptionList=function(t){Re(t,"name",["string"]);var a=Gp(t),n=this.findOrCreateNonTerminals(a.nonTerminal),r=Rw.create(this.doc.context);return r.setPartialName(a.terminal),Hp(n,[r,r.ref],a.terminal),Xv.of(r,r.ref,this.doc)},e.prototype.createRadioGroup=function(t){Re(t,"name",["string"]);var a=Gp(t),n=this.findOrCreateNonTerminals(a.nonTerminal),r=Ow.create(this.doc.context);return r.setPartialName(a.terminal),Hp(n,[r,r.ref],a.terminal),eg.of(r,r.ref,this.doc)},e.prototype.createTextField=function(t){Re(t,"name",["string"]);var a=Gp(t),n=this.findOrCreateNonTerminals(a.nonTerminal),r=Ew.create(this.doc.context);return r.setPartialName(a.terminal),Hp(n,[r,r.ref],a.terminal),Yv.of(r,r.ref,this.doc)},e.prototype.flatten=function(t){t===void 0&&(t={updateFieldAppearances:!0}),t.updateFieldAppearances&&this.updateFieldAppearances();for(var a=this.getFields(),n=0,r=a.length;n<r;n++){for(var i=a[n],o=i.acroField.getWidgets(),l=0,c=o.length;l<c;l++){var d=o[l],m=this.findWidgetPage(d),f=this.findWidgetAppearanceRef(i,d),h=m.node.newXObject("FlatWidget",f),x=d.getRectangle(),b=Na([ls(),fi(x.x,x.y)],id(Xt(Xt({},x),{rotation:0})),[fE(h),cs()]).filter(Boolean);m.pushOperators.apply(m,b)}this.removeField(i)}},e.prototype.removeField=function(t){for(var a=t.acroField.getWidgets(),n=new Set,r=0,i=a.length;r<i;r++){var o=a[r],l=this.findWidgetAppearanceRef(t,o),c=this.findWidgetPage(o);n.add(c),c.node.removeAnnot(l)}n.forEach(function(x){return x.node.removeAnnot(t.ref)}),this.acroForm.removeField(t.acroField);for(var d=t.acroField.normalizedEntries().Kids,m=d.size(),f=0;f<m;f++){var h=d.get(f);h instanceof Ua&&this.doc.context.delete(h)}this.doc.context.delete(t.ref)},e.prototype.updateFieldAppearances=function(t){pt(t,"font",[[Fr,"PDFFont"]]),t=t??this.getDefaultFont();for(var a=this.getFields(),n=0,r=a.length;n<r;n++){var i=a[n];i.needsAppearancesUpdate()&&i.defaultUpdateAppearances(t)}},e.prototype.markFieldAsDirty=function(t){pt(t,"fieldRef",[[Ua,"PDFRef"]]),this.dirtyFields.add(t)},e.prototype.markFieldAsClean=function(t){pt(t,"fieldRef",[[Ua,"PDFRef"]]),this.dirtyFields.delete(t)},e.prototype.fieldIsDirty=function(t){return pt(t,"fieldRef",[[Ua,"PDFRef"]]),this.dirtyFields.has(t)},e.prototype.getDefaultFont=function(){return this.defaultFontCache.access()},e.prototype.findWidgetPage=function(t){var a=t.P(),n=this.doc.getPages().find(function(i){return i.ref===a});if(n===void 0){var r=this.doc.context.getObjectRef(t.dict);if(r===void 0)throw new Error("Could not find PDFRef for PDFObject");if(n=this.doc.findPageForAnnotationRef(r),n===void 0)throw new Error("Could not find page for PDFRef "+r)}return n},e.prototype.findWidgetAppearanceRef=function(t,a){var n,r=a.getNormalAppearance();if(r instanceof ta&&(t instanceof Jh||t instanceof eg)){var i=t.acroField.getValue(),o=(n=r.get(i))!==null&&n!==void 0?n:r.get(ue.of("Off"));o instanceof Ua&&(r=o)}if(!(r instanceof Ua)){var l=t.getName();throw new Error("Failed to extract appearance ref for: "+l)}return r},e.prototype.findOrCreateNonTerminals=function(t){for(var a=[this.acroForm],n=0,r=t.length;n<r;n++){var i=t[n];if(!i)throw new DBe(i);var o=a[0],l=a[1],c=this.findNonTerminal(i,o);if(c)a=c;else{var d=z1.create(this.doc.context);d.setPartialName(i),d.setParent(l);var m=this.doc.context.register(d.dict);o.addField(m),a=[d,m]}}return a},e.prototype.findNonTerminal=function(t,a){for(var n=a instanceof _1?this.acroForm.getFields():oE(a.Kids()),r=0,i=n.length;r<i;r++){var o=n[r],l=o[0],c=o[1];if(l.getPartialName()===t){if(l instanceof z1)return[l,c];throw new ine(t)}}},e.of=function(t,a){return new e(t,a)},e})(),KBe=function(e,t,a){if(e instanceof Mw)return Zv.of(e,t,a);if(e instanceof Tw)return Jh.of(e,t,a);if(e instanceof Dw)return $v.of(e,t,a);if(e instanceof Rw)return Xv.of(e,t,a);if(e instanceof Ew)return Yv.of(e,t,a);if(e instanceof Ow)return eg.of(e,t,a);if(e instanceof iE)return qT.of(e,t,a)},Gp=function(e){if(e.length===0)throw new Error("PDF field names must not be empty strings");for(var t=e.split("."),a=0,n=t.length;a<n;a++)if(t[a]==="")throw new Error('Periods in PDF field names must be separated by at least one character: "'+e+'"');return t.length===1?{nonTerminal:[],terminal:t[0]}:{nonTerminal:t.slice(0,t.length-1),terminal:t[t.length-1]}},Hp=function(e,t,a){for(var n=e[0],r=e[1],i=t[0],o=t[1],l=n.normalizedEntries(),c=oE("Kids"in l?l.Kids:l.Fields),d=0,m=c.length;d<m;d++)if(c[d][0].getPartialName()===a)throw new ine(a);n.addField(o),i.setParent(r)},$Be={A4:[595.28,841.89]},UT;(function(e){e[e.Fastest=1/0]="Fastest",e[e.Fast=1500]="Fast",e[e.Medium=500]="Medium",e[e.Slow=100]="Slow"})(UT||(UT={}));var XBe=(function(){function e(t,a,n){this.alreadyEmbedded=!1,this.ref=t,this.doc=a,this.embedder=n}return e.prototype.embed=function(){return na(this,void 0,void 0,function(){var t,a,n,r,i;return sa(this,function(o){switch(o.label){case 0:return this.alreadyEmbedded?[3,2]:[4,this.embedder.embedIntoContext(this.doc.context,this.ref)];case 1:t=o.sent(),this.doc.catalog.has(ue.of("Names"))||this.doc.catalog.set(ue.of("Names"),this.doc.context.obj({})),a=this.doc.catalog.lookup(ue.of("Names"),ta),a.has(ue.of("EmbeddedFiles"))||a.set(ue.of("EmbeddedFiles"),this.doc.context.obj({})),n=a.lookup(ue.of("EmbeddedFiles"),ta),n.has(ue.of("Names"))||n.set(ue.of("Names"),this.doc.context.obj([])),r=n.lookup(ue.of("Names"),Ea),r.push(qt.fromText(this.embedder.fileName)),r.push(t),this.doc.catalog.has(ue.of("AF"))||this.doc.catalog.set(ue.of("AF"),this.doc.context.obj([])),i=this.doc.catalog.lookup(ue.of("AF"),Ea),i.push(t),this.alreadyEmbedded=!0,o.label=2;case 2:return[2]}})})},e.of=function(t,a,n){return new e(t,a,n)},e})(),YBe=(function(){function e(t,a,n){this.alreadyEmbedded=!1,this.ref=t,this.doc=a,this.embedder=n}return e.prototype.embed=function(){return na(this,void 0,void 0,function(){var t,a,n,r,i,o,l;return sa(this,function(c){switch(c.label){case 0:return this.alreadyEmbedded?[3,2]:(t=this.doc,a=t.catalog,n=t.context,[4,this.embedder.embedIntoContext(this.doc.context,this.ref)]);case 1:r=c.sent(),a.has(ue.of("Names"))||a.set(ue.of("Names"),n.obj({})),i=a.lookup(ue.of("Names"),ta),i.has(ue.of("JavaScript"))||i.set(ue.of("JavaScript"),n.obj({})),o=i.lookup(ue.of("JavaScript"),ta),o.has(ue.of("Names"))||o.set(ue.of("Names"),n.obj([])),l=o.lookup(ue.of("Names"),Ea),l.push(qt.fromText(this.embedder.scriptName)),l.push(r),this.alreadyEmbedded=!0,c.label=2;case 2:return[2]}})})},e.of=function(t,a,n){return new e(t,a,n)},e})(),ZBe=(function(){function e(t,a){this.script=t,this.scriptName=a}return e.for=function(t,a){return new e(t,a)},e.prototype.embedIntoContext=function(t,a){return na(this,void 0,void 0,function(){var n;return sa(this,function(r){return n=t.obj({Type:"Action",S:"JavaScript",JS:qt.fromText(this.script)}),a?(t.assign(a,n),[2,a]):[2,t.register(n)]})})},e})(),Kc=(function(){function e(t,a,n){var r=this;if(this.defaultWordBreaks=[" "],this.computePages=function(){var i=[];return r.catalog.Pages().traverse(function(o,l){if(o instanceof jl){var c=r.pageMap.get(o);c||(c=ci.of(o,l,r),r.pageMap.set(o,c)),i.push(c)}}),i},this.getOrCreateForm=function(){var i=r.catalog.getOrCreateAcroForm();return WBe.of(i,r)},Re(t,"context",[[IT,"PDFContext"]]),Re(a,"ignoreEncryption",["boolean"]),this.context=t,this.catalog=t.lookup(t.trailerInfo.Root),this.isEncrypted=!!t.lookup(t.trailerInfo.Encrypt),this.pageCache=Pl.populatedBy(this.computePages),this.pageMap=new Map,this.formCache=Pl.populatedBy(this.getOrCreateForm),this.fonts=[],this.images=[],this.embeddedPages=[],this.embeddedFiles=[],this.javaScripts=[],!a&&this.isEncrypted)throw new NBe;n&&this.updateInfoDict()}return e.load=function(t,a){return a===void 0&&(a={}),na(this,void 0,void 0,function(){var n,r,i,o,l,c,d,m,f,h,x,b;return sa(this,function(y){switch(y.label){case 0:return n=a.ignoreEncryption,r=n===void 0?!1:n,i=a.parseSpeed,o=i===void 0?UT.Slow:i,l=a.throwOnInvalidObject,c=l===void 0?!1:l,d=a.updateMetadata,m=d===void 0?!0:d,f=a.capNumbers,h=f===void 0?!1:f,Re(t,"pdf",["string",Uint8Array,ArrayBuffer]),Re(r,"ignoreEncryption",["boolean"]),Re(o,"parseSpeed",["number"]),Re(c,"throwOnInvalidObject",["boolean"]),x=Rh(t),[4,eBe.forBytesWithOptions(x,o,c,h).parseDocument()];case 1:return b=y.sent(),[2,new e(b,r,m)]}})})},e.create=function(t){return t===void 0&&(t={}),na(this,void 0,void 0,function(){var a,n,r,i,o,l;return sa(this,function(c){return a=t.updateMetadata,n=a===void 0?!0:a,r=IT.create(),i=Hae.withContext(r),o=r.register(i),l=Gae.withContextAndPages(r,o),r.trailerInfo.Root=r.register(l),[2,new e(r,!1,n)]})})},e.prototype.registerFontkit=function(t){this.fontkit=t},e.prototype.getForm=function(){var t=this.formCache.access();return t.hasXFA()&&(console.warn("Removing XFA form data as pdf-lib does not support reading or writing XFA"),t.deleteXFA()),t},e.prototype.getTitle=function(){var t=this.getInfoDict().lookup(ue.Title);if(t)return gc(t),t.decodeText()},e.prototype.getAuthor=function(){var t=this.getInfoDict().lookup(ue.Author);if(t)return gc(t),t.decodeText()},e.prototype.getSubject=function(){var t=this.getInfoDict().lookup(ue.Subject);if(t)return gc(t),t.decodeText()},e.prototype.getKeywords=function(){var t=this.getInfoDict().lookup(ue.Keywords);if(t)return gc(t),t.decodeText()},e.prototype.getCreator=function(){var t=this.getInfoDict().lookup(ue.Creator);if(t)return gc(t),t.decodeText()},e.prototype.getProducer=function(){var t=this.getInfoDict().lookup(ue.Producer);if(t)return gc(t),t.decodeText()},e.prototype.getCreationDate=function(){var t=this.getInfoDict().lookup(ue.CreationDate);if(t)return gc(t),t.decodeDate()},e.prototype.getModificationDate=function(){var t=this.getInfoDict().lookup(ue.ModDate);if(t)return gc(t),t.decodeDate()},e.prototype.setTitle=function(t,a){Re(t,"title",["string"]);var n=ue.of("Title");if(this.getInfoDict().set(n,qt.fromText(t)),a?.showInWindowTitleBar){var r=this.catalog.getOrCreateViewerPreferences();r.setDisplayDocTitle(!0)}},e.prototype.setAuthor=function(t){Re(t,"author",["string"]);var a=ue.of("Author");this.getInfoDict().set(a,qt.fromText(t))},e.prototype.setSubject=function(t){Re(t,"author",["string"]);var a=ue.of("Subject");this.getInfoDict().set(a,qt.fromText(t))},e.prototype.setKeywords=function(t){Re(t,"keywords",[Array]);var a=ue.of("Keywords");this.getInfoDict().set(a,qt.fromText(t.join(" ")))},e.prototype.setCreator=function(t){Re(t,"creator",["string"]);var a=ue.of("Creator");this.getInfoDict().set(a,qt.fromText(t))},e.prototype.setProducer=function(t){Re(t,"creator",["string"]);var a=ue.of("Producer");this.getInfoDict().set(a,qt.fromText(t))},e.prototype.setLanguage=function(t){Re(t,"language",["string"]);var a=ue.of("Lang");this.catalog.set(a,qa.of(t))},e.prototype.setCreationDate=function(t){Re(t,"creationDate",[[Date,"Date"]]);var a=ue.of("CreationDate");this.getInfoDict().set(a,qa.fromDate(t))},e.prototype.setModificationDate=function(t){Re(t,"modificationDate",[[Date,"Date"]]);var a=ue.of("ModDate");this.getInfoDict().set(a,qa.fromDate(t))},e.prototype.getPageCount=function(){return this.pageCount===void 0&&(this.pageCount=this.getPages().length),this.pageCount},e.prototype.getPages=function(){return this.pageCache.access()},e.prototype.getPage=function(t){var a=this.getPages();return Er(t,"index",0,a.length-1),a[t]},e.prototype.getPageIndices=function(){return tLe(0,this.getPageCount())},e.prototype.removePage=function(t){var a=this.getPageCount();if(this.pageCount===0)throw new CBe;Er(t,"index",0,a-1),this.catalog.removeLeafNode(t),this.pageCount=a-1},e.prototype.addPage=function(t){return Re(t,"page",["undefined",[ci,"PDFPage"],Array]),this.insertPage(this.getPageCount(),t)},e.prototype.insertPage=function(t,a){var n=this.getPageCount();if(Er(t,"index",0,n),Re(a,"page",["undefined",[ci,"PDFPage"],Array]),!a||Array.isArray(a)){var r=Array.isArray(a)?a:$Be.A4;a=ci.create(this),a.setSize.apply(a,r)}else if(a.doc!==this)throw new SBe;var i=this.catalog.insertLeafNode(a.ref,t);return a.node.setParent(i),this.pageMap.set(a.node,a),this.pageCache.invalidate(),this.pageCount=n+1,a},e.prototype.copyPages=function(t,a){return na(this,void 0,void 0,function(){var n,r,i,o,l,c,d,m;return sa(this,function(f){switch(f.label){case 0:return Re(t,"srcDoc",[[e,"PDFDocument"]]),Re(a,"indices",[Array]),[4,t.flush()];case 1:for(f.sent(),n=KU.for(t.context,this.context),r=t.getPages(),i=new Array(a.length),o=0,l=a.length;o<l;o++)c=r[a[o]],d=n.copy(c.node),m=this.context.register(d),i[o]=ci.of(d,m,this);return[2,i]}})})},e.prototype.copy=function(){return na(this,void 0,void 0,function(){var t,a,n,r;return sa(this,function(i){switch(i.label){case 0:return[4,e.create()];case 1:return t=i.sent(),[4,t.copyPages(this,this.getPageIndices())];case 2:for(a=i.sent(),n=0,r=a.length;n<r;n++)t.addPage(a[n]);return this.getAuthor()!==void 0&&t.setAuthor(this.getAuthor()),this.getCreationDate()!==void 0&&t.setCreationDate(this.getCreationDate()),this.getCreator()!==void 0&&t.setCreator(this.getCreator()),this.getModificationDate()!==void 0&&t.setModificationDate(this.getModificationDate()),this.getProducer()!==void 0&&t.setProducer(this.getProducer()),this.getSubject()!==void 0&&t.setSubject(this.getSubject()),this.getTitle()!==void 0&&t.setTitle(this.getTitle()),t.defaultWordBreaks=this.defaultWordBreaks,[2,t]}})})},e.prototype.addJavaScript=function(t,a){Re(t,"name",["string"]),Re(a,"script",["string"]);var n=ZBe.for(a,t),r=this.context.nextRef(),i=YBe.of(r,this,n);this.javaScripts.push(i)},e.prototype.attach=function(t,a,n){return n===void 0&&(n={}),na(this,void 0,void 0,function(){var r,i,o,l;return sa(this,function(c){return Re(t,"attachment",["string",Uint8Array,ArrayBuffer]),Re(a,"name",["string"]),pt(n.mimeType,"mimeType",["string"]),pt(n.description,"description",["string"]),pt(n.creationDate,"options.creationDate",[Date]),pt(n.modificationDate,"options.modificationDate",[Date]),ai(n.afRelationship,"options.afRelationship",LT),r=Rh(t),i=AFe.for(r,a,n),o=this.context.nextRef(),l=XBe.of(o,this,i),this.embeddedFiles.push(l),[2]})})},e.prototype.embedFont=function(t,a){return a===void 0&&(a={}),na(this,void 0,void 0,function(){var n,r,i,o,l,c,d,m,f,h;return sa(this,function(x){switch(x.label){case 0:return n=a.subset,r=n===void 0?!1:n,i=a.customName,o=a.features,Re(t,"font",["string",Uint8Array,ArrayBuffer]),Re(r,"subset",["boolean"]),FU(t)?(l=O1.for(t,i),[3,7]):[3,1];case 1:return nLe(t)?(c=Rh(t),d=this.assertFontkit(),r?[4,NFe.for(d,c,i,o)]:[3,3]):[3,6];case 2:return m=x.sent(),[3,5];case 3:return[4,sE.for(d,c,i,o)];case 4:m=x.sent(),x.label=5;case 5:return l=m,[3,7];case 6:throw new TypeError("`font` must be one of `StandardFonts | string | Uint8Array | ArrayBuffer`");case 7:return f=this.context.nextRef(),h=Fr.of(f,this,l),this.fonts.push(h),[2,h]}})})},e.prototype.embedStandardFont=function(t,a){if(Re(t,"font",["string"]),!FU(t))throw new TypeError("`font` must be one of type `StandardFonts`");var n=O1.for(t,a),r=this.context.nextRef(),i=Fr.of(r,this,n);return this.fonts.push(i),i},e.prototype.embedJpg=function(t){return na(this,void 0,void 0,function(){var a,n,r,i;return sa(this,function(o){switch(o.label){case 0:return Re(t,"jpg",["string",Uint8Array,ArrayBuffer]),a=Rh(t),[4,Mae.for(a)];case 1:return n=o.sent(),r=this.context.nextRef(),i=HT.of(r,this,n),this.images.push(i),[2,i]}})})},e.prototype.embedPng=function(t){return na(this,void 0,void 0,function(){var a,n,r,i;return sa(this,function(o){switch(o.label){case 0:return Re(t,"png",["string",Uint8Array,ArrayBuffer]),a=Rh(t),[4,Oae.for(a)];case 1:return n=o.sent(),r=this.context.nextRef(),i=HT.of(r,this,n),this.images.push(i),[2,i]}})})},e.prototype.embedPdf=function(t,a){return a===void 0&&(a=[0]),na(this,void 0,void 0,function(){var n,r,i;return sa(this,function(o){switch(o.label){case 0:return Re(t,"pdf",["string",Uint8Array,ArrayBuffer,[e,"PDFDocument"]]),Re(a,"indices",[Array]),t instanceof e?(r=t,[3,3]):[3,1];case 1:return[4,e.load(t)];case 2:r=o.sent(),o.label=3;case 3:return n=r,i=aLe(n.getPages(),a),[2,this.embedPages(i)]}})})},e.prototype.embedPage=function(t,a,n){return na(this,void 0,void 0,function(){var r;return sa(this,function(i){switch(i.label){case 0:return Re(t,"page",[[ci,"PDFPage"]]),[4,this.embedPages([t],[a],[n])];case 1:return r=i.sent()[0],[2,r]}})})},e.prototype.embedPages=function(t,a,n){return a===void 0&&(a=[]),n===void 0&&(n=[]),na(this,void 0,void 0,function(){var d,m,r,i,o,l,c,d,m,f,h,x,b,y,w;return sa(this,function(j){switch(j.label){case 0:if(t.length===0)return[2,[]];for(d=0,m=t.length-1;d<m;d++)if(r=t[d],i=t[d+1],r.node.context!==i.node.context)throw new ZLe;o=t[0].node.context,l=o===this.context?function(N){return N}:KU.for(o,this.context).copy,c=new Array(t.length),d=0,m=t.length,j.label=1;case 1:return d<m?(f=l(t[d].node),h=a[d],x=n[d],[4,_ae.for(f,h,x)]):[3,4];case 2:b=j.sent(),y=this.context.nextRef(),c[d]=une.of(y,this,b),j.label=3;case 3:return d++,[3,1];case 4:return(w=this.embeddedPages).push.apply(w,c),[2,c]}})})},e.prototype.flush=function(){return na(this,void 0,void 0,function(){return sa(this,function(t){switch(t.label){case 0:return[4,this.embedAll(this.fonts)];case 1:return t.sent(),[4,this.embedAll(this.images)];case 2:return t.sent(),[4,this.embedAll(this.embeddedPages)];case 3:return t.sent(),[4,this.embedAll(this.embeddedFiles)];case 4:return t.sent(),[4,this.embedAll(this.javaScripts)];case 5:return t.sent(),[2]}})})},e.prototype.save=function(t){return t===void 0&&(t={}),na(this,void 0,void 0,function(){var a,n,r,i,o,l,c,d,m,f;return sa(this,function(h){switch(h.label){case 0:return a=t.useObjectStreams,n=a===void 0?!0:a,r=t.addDefaultPage,i=r===void 0?!0:r,o=t.objectsPerTick,l=o===void 0?50:o,c=t.updateFieldAppearances,d=c===void 0?!0:c,Re(n,"useObjectStreams",["boolean"]),Re(i,"addDefaultPage",["boolean"]),Re(l,"objectsPerTick",["number"]),Re(d,"updateFieldAppearances",["boolean"]),i&&this.getPageCount()===0&&this.addPage(),d&&(m=this.formCache.getValue(),m&&m.updateFieldAppearances()),[4,this.flush()];case 1:return h.sent(),f=n?vFe:Dae,[2,f.forContext(this.context,l).serializeToBuffer()]}})})},e.prototype.saveAsBase64=function(t){return t===void 0&&(t={}),na(this,void 0,void 0,function(){var a,n,r,i,o;return sa(this,function(l){switch(l.label){case 0:return a=t.dataUri,n=a===void 0?!1:a,r=LIe(t,["dataUri"]),Re(n,"dataUri",["boolean"]),[4,this.save(r)];case 1:return i=l.sent(),o=FIe(i),[2,n?"data:application/pdf;base64,"+o:o]}})})},e.prototype.findPageForAnnotationRef=function(t){for(var a=this.getPages(),n=0,r=a.length;n<r;n++){var i=a[n],o=i.node.Annots();if(o?.indexOf(t)!==void 0)return i}},e.prototype.embedAll=function(t){return na(this,void 0,void 0,function(){var a,n;return sa(this,function(r){switch(r.label){case 0:a=0,n=t.length,r.label=1;case 1:return a<n?[4,t[a].embed()]:[3,4];case 2:r.sent(),r.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},e.prototype.updateInfoDict=function(){var t="pdf-lib (https://github.com/Hopding/pdf-lib)",a=new Date,n=this.getInfoDict();this.setProducer(t),this.setModificationDate(a),n.get(ue.of("Creator"))||this.setCreator(t),n.get(ue.of("CreationDate"))||this.setCreationDate(a)},e.prototype.getInfoDict=function(){var t=this.context.lookup(this.context.trailerInfo.Info);if(t instanceof ta)return t;var a=this.context.obj({});return this.context.trailerInfo.Info=this.context.register(a),a},e.prototype.assertFontkit=function(){if(!this.fontkit)throw new ABe;return this.fontkit},e})();function gc(e){if(!(e instanceof qt)&&!(e instanceof qa))throw new E1([qt,qa],e)}var cl;(function(e){e.Normal="Normal",e.Multiply="Multiply",e.Screen="Screen",e.Overlay="Overlay",e.Darken="Darken",e.Lighten="Lighten",e.ColorDodge="ColorDodge",e.ColorBurn="ColorBurn",e.HardLight="HardLight",e.SoftLight="SoftLight",e.Difference="Difference",e.Exclusion="Exclusion"})(cl||(cl={}));var ci=(function(){function e(t,a,n){this.fontSize=24,this.fontColor=Ia(0,0,0),this.lineHeight=24,this.x=0,this.y=0,Re(t,"leafNode",[[jl,"PDFPageLeaf"]]),Re(a,"ref",[[Ua,"PDFRef"]]),Re(n,"doc",[[Kc,"PDFDocument"]]),this.node=t,this.ref=a,this.doc=n}return e.prototype.setRotation=function(t){var a=Wae(t);Nae(a,"degreesAngle",90),this.node.set(ue.of("Rotate"),this.doc.context.obj(a))},e.prototype.getRotation=function(){var t=this.node.Rotate();return Ut(t?t.asNumber():0)},e.prototype.setSize=function(t,a){Re(t,"width",["number"]),Re(a,"height",["number"]);var n=this.getMediaBox();this.setMediaBox(n.x,n.y,t,a);var r=this.getCropBox(),i=this.getBleedBox(),o=this.getTrimBox(),l=this.getArtBox(),c=this.node.CropBox(),d=this.node.BleedBox(),m=this.node.TrimBox(),f=this.node.ArtBox();c&&yv(r,n)&&this.setCropBox(n.x,n.y,t,a),d&&yv(i,n)&&this.setBleedBox(n.x,n.y,t,a),m&&yv(o,n)&&this.setTrimBox(n.x,n.y,t,a),f&&yv(l,n)&&this.setArtBox(n.x,n.y,t,a)},e.prototype.setWidth=function(t){Re(t,"width",["number"]),this.setSize(t,this.getSize().height)},e.prototype.setHeight=function(t){Re(t,"height",["number"]),this.setSize(this.getSize().width,t)},e.prototype.setMediaBox=function(t,a,n,r){Re(t,"x",["number"]),Re(a,"y",["number"]),Re(n,"width",["number"]),Re(r,"height",["number"]);var i=this.doc.context.obj([t,a,t+n,a+r]);this.node.set(ue.MediaBox,i)},e.prototype.setCropBox=function(t,a,n,r){Re(t,"x",["number"]),Re(a,"y",["number"]),Re(n,"width",["number"]),Re(r,"height",["number"]);var i=this.doc.context.obj([t,a,t+n,a+r]);this.node.set(ue.CropBox,i)},e.prototype.setBleedBox=function(t,a,n,r){Re(t,"x",["number"]),Re(a,"y",["number"]),Re(n,"width",["number"]),Re(r,"height",["number"]);var i=this.doc.context.obj([t,a,t+n,a+r]);this.node.set(ue.BleedBox,i)},e.prototype.setTrimBox=function(t,a,n,r){Re(t,"x",["number"]),Re(a,"y",["number"]),Re(n,"width",["number"]),Re(r,"height",["number"]);var i=this.doc.context.obj([t,a,t+n,a+r]);this.node.set(ue.TrimBox,i)},e.prototype.setArtBox=function(t,a,n,r){Re(t,"x",["number"]),Re(a,"y",["number"]),Re(n,"width",["number"]),Re(r,"height",["number"]);var i=this.doc.context.obj([t,a,t+n,a+r]);this.node.set(ue.ArtBox,i)},e.prototype.getSize=function(){var t=this.getMediaBox(),a=t.width,n=t.height;return{width:a,height:n}},e.prototype.getWidth=function(){return this.getSize().width},e.prototype.getHeight=function(){return this.getSize().height},e.prototype.getMediaBox=function(){var t=this.node.MediaBox();return t.asRectangle()},e.prototype.getCropBox=function(){var t,a=this.node.CropBox();return(t=a?.asRectangle())!==null&&t!==void 0?t:this.getMediaBox()},e.prototype.getBleedBox=function(){var t,a=this.node.BleedBox();return(t=a?.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},e.prototype.getTrimBox=function(){var t,a=this.node.TrimBox();return(t=a?.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},e.prototype.getArtBox=function(){var t,a=this.node.ArtBox();return(t=a?.asRectangle())!==null&&t!==void 0?t:this.getCropBox()},e.prototype.translateContent=function(t,a){Re(t,"x",["number"]),Re(a,"y",["number"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(ls(),fi(t,a)),r=this.doc.context.register(n),i=this.createContentStream(cs()),o=this.doc.context.register(i);this.node.wrapContentStreams(r,o)},e.prototype.scale=function(t,a){Re(t,"x",["number"]),Re(a,"y",["number"]),this.setSize(this.getWidth()*t,this.getHeight()*a),this.scaleContent(t,a),this.scaleAnnotations(t,a)},e.prototype.scaleContent=function(t,a){Re(t,"x",["number"]),Re(a,"y",["number"]),this.node.normalize(),this.getContentStream();var n=this.createContentStream(ls(),_x(t,a)),r=this.doc.context.register(n),i=this.createContentStream(cs()),o=this.doc.context.register(i);this.node.wrapContentStreams(r,o)},e.prototype.scaleAnnotations=function(t,a){Re(t,"x",["number"]),Re(a,"y",["number"]);var n=this.node.Annots();if(n)for(var r=0;r<n.size();r++){var i=n.lookup(r);i instanceof ta&&this.scaleAnnot(i,t,a)}},e.prototype.resetPosition=function(){this.getContentStream(!1),this.x=0,this.y=0},e.prototype.setFont=function(t){Re(t,"font",[[Fr,"PDFFont"]]),this.font=t,this.fontKey=this.node.newFontDictionary(this.font.name,this.font.ref)},e.prototype.setFontSize=function(t){Re(t,"fontSize",["number"]),this.fontSize=t},e.prototype.setFontColor=function(t){Re(t,"fontColor",[[Object,"Color"]]),this.fontColor=t},e.prototype.setLineHeight=function(t){Re(t,"lineHeight",["number"]),this.lineHeight=t},e.prototype.getPosition=function(){return{x:this.x,y:this.y}},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.moveTo=function(t,a){Re(t,"x",["number"]),Re(a,"y",["number"]),this.x=t,this.y=a},e.prototype.moveDown=function(t){Re(t,"yDecrease",["number"]),this.y-=t},e.prototype.moveUp=function(t){Re(t,"yIncrease",["number"]),this.y+=t},e.prototype.moveLeft=function(t){Re(t,"xDecrease",["number"]),this.x-=t},e.prototype.moveRight=function(t){Re(t,"xIncrease",["number"]),this.x+=t},e.prototype.pushOperators=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];kae(t,"operator",[[ja,"PDFOperator"]]);var n=this.getContentStream();n.push.apply(n,t)},e.prototype.drawText=function(t,a){var n,r,i,o,l,c,d;a===void 0&&(a={}),Re(t,"text",["string"]),pt(a.color,"options.color",[[Object,"Color"]]),Mi(a.opacity,"opacity.opacity",0,1),pt(a.font,"options.font",[[Fr,"PDFFont"]]),pt(a.size,"options.size",["number"]),pt(a.rotate,"options.rotate",[[Object,"Rotation"]]),pt(a.xSkew,"options.xSkew",[[Object,"Rotation"]]),pt(a.ySkew,"options.ySkew",[[Object,"Rotation"]]),pt(a.x,"options.x",["number"]),pt(a.y,"options.y",["number"]),pt(a.lineHeight,"options.lineHeight",["number"]),pt(a.maxWidth,"options.maxWidth",["number"]),pt(a.wordBreaks,"options.wordBreaks",[Array]),ai(a.blendMode,"options.blendMode",cl);for(var m=this.setOrEmbedFont(a.font),f=m.oldFont,h=m.newFont,x=m.newFontKey,b=a.size||this.fontSize,y=a.wordBreaks||this.doc.defaultWordBreaks,w=function(A){return h.widthOfTextAtSize(A,b)},j=a.maxWidth===void 0?oae(hb(t)):KIe(t,y,a.maxWidth,w),N=new Array(j.length),k=0,D=j.length;k<D;k++)N[k]=h.encodeText(j[k]);var C=this.maybeEmbedGraphicsState({opacity:a.opacity,blendMode:a.blendMode}),S=this.getContentStream();S.push.apply(S,xBe(N,{color:(n=a.color)!==null&&n!==void 0?n:this.fontColor,font:x,size:b,rotate:(r=a.rotate)!==null&&r!==void 0?r:Ut(0),xSkew:(i=a.xSkew)!==null&&i!==void 0?i:Ut(0),ySkew:(o=a.ySkew)!==null&&o!==void 0?o:Ut(0),x:(l=a.x)!==null&&l!==void 0?l:this.x,y:(c=a.y)!==null&&c!==void 0?c:this.y,lineHeight:(d=a.lineHeight)!==null&&d!==void 0?d:this.lineHeight,graphicsState:C})),a.font&&(f?this.setFont(f):this.resetFont())},e.prototype.drawImage=function(t,a){var n,r,i,o,l,c,d;a===void 0&&(a={}),Re(t,"image",[[HT,"PDFImage"]]),pt(a.x,"options.x",["number"]),pt(a.y,"options.y",["number"]),pt(a.width,"options.width",["number"]),pt(a.height,"options.height",["number"]),pt(a.rotate,"options.rotate",[[Object,"Rotation"]]),pt(a.xSkew,"options.xSkew",[[Object,"Rotation"]]),pt(a.ySkew,"options.ySkew",[[Object,"Rotation"]]),Mi(a.opacity,"opacity.opacity",0,1),ai(a.blendMode,"options.blendMode",cl);var m=this.node.newXObject("Image",t.ref),f=this.maybeEmbedGraphicsState({opacity:a.opacity,blendMode:a.blendMode}),h=this.getContentStream();h.push.apply(h,sne(m,{x:(n=a.x)!==null&&n!==void 0?n:this.x,y:(r=a.y)!==null&&r!==void 0?r:this.y,width:(i=a.width)!==null&&i!==void 0?i:t.size().width,height:(o=a.height)!==null&&o!==void 0?o:t.size().height,rotate:(l=a.rotate)!==null&&l!==void 0?l:Ut(0),xSkew:(c=a.xSkew)!==null&&c!==void 0?c:Ut(0),ySkew:(d=a.ySkew)!==null&&d!==void 0?d:Ut(0),graphicsState:f}))},e.prototype.drawPage=function(t,a){var n,r,i,o,l;a===void 0&&(a={}),Re(t,"embeddedPage",[[une,"PDFEmbeddedPage"]]),pt(a.x,"options.x",["number"]),pt(a.y,"options.y",["number"]),pt(a.xScale,"options.xScale",["number"]),pt(a.yScale,"options.yScale",["number"]),pt(a.width,"options.width",["number"]),pt(a.height,"options.height",["number"]),pt(a.rotate,"options.rotate",[[Object,"Rotation"]]),pt(a.xSkew,"options.xSkew",[[Object,"Rotation"]]),pt(a.ySkew,"options.ySkew",[[Object,"Rotation"]]),Mi(a.opacity,"opacity.opacity",0,1),ai(a.blendMode,"options.blendMode",cl);var c=this.node.newXObject("EmbeddedPdfPage",t.ref),d=this.maybeEmbedGraphicsState({opacity:a.opacity,blendMode:a.blendMode}),m=a.width!==void 0?a.width/t.width:a.xScale!==void 0?a.xScale:1,f=a.height!==void 0?a.height/t.height:a.yScale!==void 0?a.yScale:1,h=this.getContentStream();h.push.apply(h,bBe(c,{x:(n=a.x)!==null&&n!==void 0?n:this.x,y:(r=a.y)!==null&&r!==void 0?r:this.y,xScale:m,yScale:f,rotate:(i=a.rotate)!==null&&i!==void 0?i:Ut(0),xSkew:(o=a.xSkew)!==null&&o!==void 0?o:Ut(0),ySkew:(l=a.ySkew)!==null&&l!==void 0?l:Ut(0),graphicsState:d}))},e.prototype.drawSvgPath=function(t,a){var n,r,i,o,l,c,d,m,f;a===void 0&&(a={}),Re(t,"path",["string"]),pt(a.x,"options.x",["number"]),pt(a.y,"options.y",["number"]),pt(a.scale,"options.scale",["number"]),pt(a.rotate,"options.rotate",[[Object,"Rotation"]]),pt(a.borderWidth,"options.borderWidth",["number"]),pt(a.color,"options.color",[[Object,"Color"]]),Mi(a.opacity,"opacity.opacity",0,1),pt(a.borderColor,"options.borderColor",[[Object,"Color"]]),pt(a.borderDashArray,"options.borderDashArray",[Array]),pt(a.borderDashPhase,"options.borderDashPhase",["number"]),ai(a.borderLineCap,"options.borderLineCap",rm),Mi(a.borderOpacity,"options.borderOpacity",0,1),ai(a.blendMode,"options.blendMode",cl);var h=this.maybeEmbedGraphicsState({opacity:a.opacity,borderOpacity:a.borderOpacity,blendMode:a.blendMode});!("color"in a)&&!("borderColor"in a)&&(a.borderColor=Ia(0,0,0));var x=this.getContentStream();x.push.apply(x,PBe(t,{x:(n=a.x)!==null&&n!==void 0?n:this.x,y:(r=a.y)!==null&&r!==void 0?r:this.y,scale:a.scale,rotate:(i=a.rotate)!==null&&i!==void 0?i:Ut(0),color:(o=a.color)!==null&&o!==void 0?o:void 0,borderColor:(l=a.borderColor)!==null&&l!==void 0?l:void 0,borderWidth:(c=a.borderWidth)!==null&&c!==void 0?c:0,borderDashArray:(d=a.borderDashArray)!==null&&d!==void 0?d:void 0,borderDashPhase:(m=a.borderDashPhase)!==null&&m!==void 0?m:void 0,borderLineCap:(f=a.borderLineCap)!==null&&f!==void 0?f:void 0,graphicsState:h}))},e.prototype.drawLine=function(t){var a,n,r,i,o;Re(t.start,"options.start",[[Object,"{ x: number, y: number }"]]),Re(t.end,"options.end",[[Object,"{ x: number, y: number }"]]),Re(t.start.x,"options.start.x",["number"]),Re(t.start.y,"options.start.y",["number"]),Re(t.end.x,"options.end.x",["number"]),Re(t.end.y,"options.end.y",["number"]),pt(t.thickness,"options.thickness",["number"]),pt(t.color,"options.color",[[Object,"Color"]]),pt(t.dashArray,"options.dashArray",[Array]),pt(t.dashPhase,"options.dashPhase",["number"]),ai(t.lineCap,"options.lineCap",rm),Mi(t.opacity,"opacity.opacity",0,1),ai(t.blendMode,"options.blendMode",cl);var l=this.maybeEmbedGraphicsState({borderOpacity:t.opacity,blendMode:t.blendMode});"color"in t||(t.color=Ia(0,0,0));var c=this.getContentStream();c.push.apply(c,vBe({start:t.start,end:t.end,thickness:(a=t.thickness)!==null&&a!==void 0?a:1,color:(n=t.color)!==null&&n!==void 0?n:void 0,dashArray:(r=t.dashArray)!==null&&r!==void 0?r:void 0,dashPhase:(i=t.dashPhase)!==null&&i!==void 0?i:void 0,lineCap:(o=t.lineCap)!==null&&o!==void 0?o:void 0,graphicsState:l}))},e.prototype.drawRectangle=function(t){var a,n,r,i,o,l,c,d,m,f,h,x,b;t===void 0&&(t={}),pt(t.x,"options.x",["number"]),pt(t.y,"options.y",["number"]),pt(t.width,"options.width",["number"]),pt(t.height,"options.height",["number"]),pt(t.rotate,"options.rotate",[[Object,"Rotation"]]),pt(t.xSkew,"options.xSkew",[[Object,"Rotation"]]),pt(t.ySkew,"options.ySkew",[[Object,"Rotation"]]),pt(t.borderWidth,"options.borderWidth",["number"]),pt(t.color,"options.color",[[Object,"Color"]]),Mi(t.opacity,"opacity.opacity",0,1),pt(t.borderColor,"options.borderColor",[[Object,"Color"]]),pt(t.borderDashArray,"options.borderDashArray",[Array]),pt(t.borderDashPhase,"options.borderDashPhase",["number"]),ai(t.borderLineCap,"options.borderLineCap",rm),Mi(t.borderOpacity,"options.borderOpacity",0,1),ai(t.blendMode,"options.blendMode",cl);var y=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});!("color"in t)&&!("borderColor"in t)&&(t.color=Ia(0,0,0));var w=this.getContentStream();w.push.apply(w,Jm({x:(a=t.x)!==null&&a!==void 0?a:this.x,y:(n=t.y)!==null&&n!==void 0?n:this.y,width:(r=t.width)!==null&&r!==void 0?r:150,height:(i=t.height)!==null&&i!==void 0?i:100,rotate:(o=t.rotate)!==null&&o!==void 0?o:Ut(0),xSkew:(l=t.xSkew)!==null&&l!==void 0?l:Ut(0),ySkew:(c=t.ySkew)!==null&&c!==void 0?c:Ut(0),borderWidth:(d=t.borderWidth)!==null&&d!==void 0?d:0,color:(m=t.color)!==null&&m!==void 0?m:void 0,borderColor:(f=t.borderColor)!==null&&f!==void 0?f:void 0,borderDashArray:(h=t.borderDashArray)!==null&&h!==void 0?h:void 0,borderDashPhase:(x=t.borderDashPhase)!==null&&x!==void 0?x:void 0,graphicsState:y,borderLineCap:(b=t.borderLineCap)!==null&&b!==void 0?b:void 0}))},e.prototype.drawSquare=function(t){t===void 0&&(t={});var a=t.size;pt(a,"size",["number"]),this.drawRectangle(Xt(Xt({},t),{width:a,height:a}))},e.prototype.drawEllipse=function(t){var a,n,r,i,o,l,c,d,m,f,h;t===void 0&&(t={}),pt(t.x,"options.x",["number"]),pt(t.y,"options.y",["number"]),pt(t.xScale,"options.xScale",["
1165number"]),pt(t.yScale,"options.yScale",["number"]),pt(t.rotate,"options.rotate",[[Object,"Rotation"]]),pt(t.color,"options.color",[[Object,"Color"]]),Mi(t.opacity,"opacity.opacity",0,1),pt(t.borderColor,"options.borderColor",[[Object,"Color"]]),Mi(t.borderOpacity,"options.borderOpacity",0,1),pt(t.borderWidth,"options.borderWidth",["number"]),pt(t.borderDashArray,"options.borderDashArray",[Array]),pt(t.borderDashPhase,"options.borderDashPhase",["number"]),ai(t.borderLineCap,"options.borderLineCap",rm),ai(t.blendMode,"options.blendMode",cl);var x=this.maybeEmbedGraphicsState({opacity:t.opacity,borderOpacity:t.borderOpacity,blendMode:t.blendMode});!("color"in t)&&!("borderColor"in t)&&(t.color=Ia(0,0,0));var b=this.getContentStream();b.push.apply(b,GT({x:(a=t.x)!==null&&a!==void 0?a:this.x,y:(n=t.y)!==null&&n!==void 0?n:this.y,xScale:(r=t.xScale)!==null&&r!==void 0?r:100,yScale:(i=t.yScale)!==null&&i!==void 0?i:100,rotate:(o=t.rotate)!==null&&o!==void 0?o:void 0,color:(l=t.color)!==null&&l!==void 0?l:void 0,borderColor:(c=t.borderColor)!==null&&c!==void 0?c:void 0,borderWidth:(d=t.borderWidth)!==null&&d!==void 0?d:0,borderDashArray:(m=t.borderDashArray)!==null&&m!==void 0?m:void 0,borderDashPhase:(f=t.borderDashPhase)!==null&&f!==void 0?f:void 0,borderLineCap:(h=t.borderLineCap)!==null&&h!==void 0?h:void 0,graphicsState:x}))},e.prototype.drawCircle=function(t){t===void 0&&(t={});var a=t.size,n=a===void 0?100:a;pt(n,"size",["number"]),this.drawEllipse(Xt(Xt({},t),{xScale:n,yScale:n}))},e.prototype.setOrEmbedFont=function(t){var a=this.font,n=this.fontKey;t?this.setFont(t):this.getFont();var r=this.font,i=this.fontKey;return{oldFont:a,oldFontKey:n,newFont:r,newFontKey:i}},e.prototype.getFont=function(){if(!this.font||!this.fontKey){var t=this.doc.embedStandardFont(Ix.Helvetica);this.setFont(t)}return[this.font,this.fontKey]},e.prototype.resetFont=function(){this.font=void 0,this.fontKey=void 0},e.prototype.getContentStream=function(t){return t===void 0&&(t=!0),t&&this.contentStream?this.contentStream:(this.contentStream=this.createContentStream(),this.contentStreamRef=this.doc.context.register(this.contentStream),this.node.addContentStream(this.contentStreamRef),this.contentStream)},e.prototype.createContentStream=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];var n=this.doc.context.obj({}),r=wg.of(n,t);return r},e.prototype.maybeEmbedGraphicsState=function(t){var a=t.opacity,n=t.borderOpacity,r=t.blendMode;if(!(a===void 0&&n===void 0&&r===void 0)){var i=this.doc.context.obj({Type:"ExtGState",ca:a,CA:n,BM:r}),o=this.node.newExtGState("GS",i);return o}},e.prototype.scaleAnnot=function(t,a,n){for(var r=["RD","CL","Vertices","QuadPoints","L","Rect"],i=0,o=r.length;i<o;i++){var l=t.lookup(ue.of(r[i]));l instanceof Ea&&l.scalePDFNumbers(a,n)}var c=t.lookup(ue.of("InkList"));if(c instanceof Ea)for(var i=0,o=c.size();i<o;i++){var d=c.lookup(i);d instanceof Ea&&d.scalePDFNumbers(a,n)}},e.of=function(t,a,n){return new e(t,a,n)},e.create=function(t){Re(t,"doc",[[Kc,"PDFDocument"]]);var a=Ua.of(-1),n=jl.withContextAndParent(t.context,a),r=t.context.register(n);return new e(n,r,t)},e})(),Zv=(function(e){ft(t,e);function t(a,n,r){var i=e.call(this,a,n,r)||this;return Re(a,"acroButton",[[Mw,"PDFAcroPushButton"]]),i.acroField=a,i}return t.prototype.setImage=function(a,n){n===void 0&&(n=zc.Center);for(var r=this.acroField.getWidgets(),i=0,o=r.length;i<o;i++){var l=r[i],c=this.createImageAppearanceStream(l,a,n);this.updateWidgetAppearances(l,{normal:c})}this.markAsClean()},t.prototype.setFontSize=function(a){Sw(a,"fontSize"),this.acroField.setFontSize(a),this.markAsDirty()},t.prototype.addToPage=function(a,n,r){var i,o,l,c,d,m,f,h,x,b,y;pt(a,"text",["string"]),pt(n,"page",[[ci,"PDFPage"]]),Af(r);var w=this.createWidget({x:((i=r?.x)!==null&&i!==void 0?i:0)-((o=r?.borderWidth)!==null&&o!==void 0?o:0)/2,y:((l=r?.y)!==null&&l!==void 0?l:0)-((c=r?.borderWidth)!==null&&c!==void 0?c:0)/2,width:(d=r?.width)!==null&&d!==void 0?d:100,height:(m=r?.height)!==null&&m!==void 0?m:50,textColor:(f=r?.textColor)!==null&&f!==void 0?f:Ia(0,0,0),backgroundColor:(h=r?.backgroundColor)!==null&&h!==void 0?h:Ia(.75,.75,.75),borderColor:r?.borderColor,borderWidth:(x=r?.borderWidth)!==null&&x!==void 0?x:0,rotate:(b=r?.rotate)!==null&&b!==void 0?b:Ut(0),caption:a,hidden:r?.hidden,page:n.ref}),j=this.doc.context.register(w.dict);this.acroField.addWidget(j);var N=(y=r?.font)!==null&&y!==void 0?y:this.doc.getForm().getDefaultFont();this.updateWidgetAppearance(w,N),n.node.addAnnot(j)},t.prototype.needsAppearancesUpdate=function(){var a;if(this.isDirty())return!0;for(var n=this.acroField.getWidgets(),r=0,i=n.length;r<i;r++){var o=n[r],l=((a=o.getAppearances())===null||a===void 0?void 0:a.normal)instanceof _r;if(!l)return!0}return!1},t.prototype.defaultUpdateAppearances=function(a){Re(a,"font",[[Fr,"PDFFont"]]),this.updateAppearances(a)},t.prototype.updateAppearances=function(a,n){Re(a,"font",[[Fr,"PDFFont"]]),pt(n,"provider",[Function]);for(var r=this.acroField.getWidgets(),i=0,o=r.length;i<o;i++){var l=r[i];this.updateWidgetAppearance(l,a,n)}},t.prototype.updateWidgetAppearance=function(a,n,r){var i=r??qBe,o=Nf(i(this,a,n));this.updateWidgetAppearanceWithFont(a,n,o)},t.of=function(a,n,r){return new t(a,n,r)},t}
1165)(Hu);const JBe={pending:"ÙÙØ¯ اÙ٠تابعة",invited:"ت٠ت Ø§ÙØ¯Ø¹ÙØ©",active:"ÙØ´Ø·"};function eGe(e){return`"${e.replaceAll('"','""')}"`}function tGe(e){const t=["Ø§ÙØ§Ø³Ù ","Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","اÙÙ ÙØ´Ø£Ø©","اÙ٠س٠٠اÙÙØ¸ÙÙÙ","Ø§ÙØØ§ÙØ©","ØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¬ÙÙ","ØªØ§Ø±ÙØ® Ø§ÙØ¯Ø¹ÙØ©","ØªØ§Ø±ÙØ® Ø§ÙØªÙعÙÙ"],a=e.map(n=>[n.name||"",n.email,n.companyName||"",n.roleTitle||"",JBe[n.status]||n.status,new Date(n.createdAt).toLocaleString("ar-SA"),n.invitedAt?new Date(n.invitedAt).toLocaleString("ar-SA"):"",n.activatedAt?new Date(n.activatedAt).toLocaleString("ar-SA"):""]);return`\uFEFF${[t,...a].map(n=>n.map(eGe).join(",")).join(`\r 1166`)}`}function aGe(e){return`"${e.replaceAll('"','""')}"`}function nGe(e){return`\uFEFF${[["ØªÙØ±Ùر Ø§ØªØ¬Ø§ÙØ§Øª ØÙ ÙØ© Ø§ÙØªØ´ÙÙÙ","Ù ÙØµØ© جد ÙØ¬Ø¯"],["Ù Ù",e.startDate],["Ø¥ÙÙ",e.endDate],[],["اÙ٠ؤشر","اÙÙÙÙ Ø©"],["إج٠اÙ٠اÙ٠سجÙÙÙ",String(e.stats.total)],["ÙÙØ¯ اÙ٠تابعة",String(e.stats.pending)],["ت٠ت Ø¯Ø¹ÙØªÙÙ ",String(e.stats.invited)],["ÙØ´Ø·ÙÙ",String(e.stats.active)],["ÙØ³Ø¨Ø© Ø§ÙØªÙعÙÙ",`${e.stats.activationRate}%`],[],["Ø§ÙØªØ§Ø±ÙØ®","Ø§ÙØªØ³Ø¬ÙÙØ§Øª","Ø§ÙØ¯Ø¹Ùات","Ø§ÙØªÙعÙÙ"],...e.points.map(a=>[a.date,String(a.registrations),String(a.invited),String(a.active)])].map(a=>a.map(aGe).join(",")).join(`\r 1167`)}`}function sGe(e){return e>0?{direction:"up",label:"ØªØØ³Ù Ù ÙØ§Ø±ÙØ© باÙÙØªØ±Ø© Ø§ÙØ³Ø§Ø¨ÙØ©"}:e<0?{direction:"down",label:"تراجع Ù ÙØ§Ø±ÙØ© باÙÙØªØ±Ø© Ø§ÙØ³Ø§Ø¨ÙØ©"}:{direction:"flat",label:"ثبات Ù ÙØ§Ø±ÙØ© باÙÙØªØ±Ø© Ø§ÙØ³Ø§Ø¨ÙØ©"}}const ul={all:"ÙÙ Ø§ÙØØ§ÙØ§Øª",pending:"ÙÙØ¯ اÙ٠تابعة",invited:"ت٠ت Ø§ÙØ¯Ø¹ÙØ©",active:"ÙØ´Ø·"},VT=["pending","invited","active"],dV={all:"ÙÙ Ø§ÙØªØµÙÙÙØ§Øª",general:"عا٠",ux:"تجربة اÙ٠ستخد٠",games:"Ø§ÙØ£Ùعاب",content:"اÙÙ ØØªÙÙ",enterprise:"اÙ٠ؤسسات"},uV={registration_status_change:"تغÙÙØ± ØØ§ÙØ© ٠سجÙ",registrations_bulk_status_change:"تغÙÙØ± ØØ§Ùات ج٠اعÙ",registrations_export:"ØªØµØ¯ÙØ± Ø§ÙØªØ³Ø¬ÙÙØ§Øª",registrations_export_selected:"ØªØµØ¯ÙØ± ٠سجÙÙÙ Ù ØØ¯Ø¯ÙÙ",trend_report_export_csv:"ØªØµØ¯ÙØ± Ø§ØªØ¬Ø§ÙØ§Øª CSV",trend_report_export_pdf:"ØªØµØ¯ÙØ± Ø§ØªØ¬Ø§ÙØ§Øª PDF"};function rGe(e){const t=sGe(e);return t.direction==="up"?{Icon:epe,tone:"text-[#087443] bg-[#bfe6ce]",label:t.label}:t.direction==="down"?{Icon:Yue,tone:"text-[#b42318] bg-[#ffd9d3]",label:t.label}:{Icon:Mv,tone:"text-[#596477] bg-[#e7e1d6]",label:t.label}}function Gh({label:e,value:t,suffix:a}){const n=rGe(t),r=n.Icon,i=`${t>0?"+":""}${t}${a??""}`;return s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:92",className:"border-3 border-[#16233f] bg-[#f5efdf] p-3","aria-label":`${e}: ${i}Ø ${n.label}`,children:[s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:93",className:"text-xs font-black text-[#596477]",children:e}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:94",className:"mt-1 flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:95",className:`inline-flex h-8 w-8 items-center justify-center border-2 border-[#16233f] ${n.tone}`,title:n.label,"aria-label":n.label,children:s.jsx(r,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:95",className:"h-4 w-4","aria-hidden":"true"})}),s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:96",className:`text-2xl font-black ${t>0?"text-[#087443]":t<0?"text-[#b42318]":"text-[#596477]"}`,children:i})]}),s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:98",className:"mt-1 text-[11px] font-bold text-[#596477]",children:n.label})]})}function pV(e,t){const a=tGe(e),n=new Blob([a],{type:"text/csv;charset=utf-8;"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=t,i.click(),URL.revokeObjectURL(r)}function pne(e,t){const a=URL.createObjectURL(e),n=document.createElement("a");n.href=a,n.download=t,n.click(),URL.revokeObjectURL(a)}function iGe(e,t,a){pne(new Blob([e],{type:a}),t)}async function oGe(e,t){const a=await Kc.create(),n=await a.embedFont(Ix.Helvetica);let r=a.addPage([595,842]),i=800;const o=(c,d=11)=>{i<45&&(r=a.addPage([595,842]),i=800),r.drawText(c.slice(0,110),{x:40,y:i,size:d,font:n,color:Ia(.09,.14,.25)}),i-=d+10}
1167;o("Jad Wajad - Teaser Trend Report",18),o(`Period: ${e.startDate} to ${e.endDate}`),o(""),o(`Total registrations: ${e.stats.total}`),o(`Pending: ${e.stats.pending}`),o(`Invited: ${e.stats.invited}`),o(`Active: ${e.stats.active}`),o(`Activation rate: ${e.stats.activationRate}%`),o(""),o("Date | Registrations | Invited | Activated",12),e.points.forEach(c=>o(`${c.date} | ${c.registrations} | ${c.invited} | ${c.active}`,10));const l=await a.save();pne(new Blob([l],{type:"application/pdf"}),t)}function lGe(){const[e,t]=P.useState("registrations"),a=["registrations","feedback","audit"],n=ie.useCallback(ee=>{const Oe=a.indexOf(e);t(a[(Oe+(ee==="left"?1:-1)+a.length)%a.length])},[e]),r=nae({onSwipe:n}),[i,o]=P.useState(""),[l,c]=P.useState("all"),[d,m]=P.useState("desc"),[f,h]=P.useState(1),[x,b]=P.useState(null),[y,w]=P.useState([]),[j,N]=P.useState("invited"),[k,D]=P.useState(!1),[C,S]=P.useState(""),[A,E]=P.useState(""),[R,F]=P.useState(""),[I,H]=P.useState("all"),[_,V]=P.useState(void 0),[W,B]=P.useState("30"),[K,ae]=P.useState(""),[$,Z]=P.useState(""),[O,Y]=P.useState(""),[Q,U]=P.useState(""),[oe,X]=P.useState(""),[ne,ge]=P.useState(""),[me,Ae]=P.useState(""),[Pe,L]=P.useState("all"),[ke,Me]=P.useState(""),[Ze,Ce]=P.useState(""),[Te,Ke]=P.useState(""),[Ve,ht]=P.useState(""),[pe,et]=P.useState(1),xe=P.useMemo(()=>({days:W==="custom"?30:Number(W),startDate:W==="custom"&&K?K:void 0,endDate:W==="custom"&&$?$:void 0}),[$,W,K]),it=!!(Q&&oe&&Q>oe||ne&&me&&ne>me),Tt=!!(Q&&oe&&ne&&me)&&!it,bt=J.adminPanel.teaser.stats.useQuery(),vt=J.adminPanel.teaser.report.useQuery(xe),St=J.adminPanel.teaser.comparison.useQuery({currentStartDate:Q||"2000-01-01",currentEndDate:oe||"2000-01-01",previousStartDate:ne||"2000-01-01",previousEndDate:me||"2000-01-01"},{enabled:Tt}),de=J.adminPanel.teaser.registrations.useQuery({search:i||void 0,status:l,sortDirection:d,page:f,pageSize:12}),be=J.adminPanel.teaser.feedback.useQuery({search:R||void 0,category:I,rating:_}),G=J.adminPanel.teaser.auditLogs.useQuery({actorUserId:Ze?Number(Ze):void 0,actorName:ke||void 0,action:Pe==="all"?void 0:Pe,startDate:Te||void 0,endDate:Ve||void 0,page:pe,pageSize:12}),je=J.adminPanel.teaser.logReportExport.useMutation(),ze=J.adminPanel.teaser.exportRegistrations.useQuery({search:i||void 0,status:l,sortDirection:d,limit:1e4},{enabled:!1}),Qe=J.adminPanel.teaser.exportSelectedRegistrations.useQuery({ids:y.length?y:[0]},{enabled:!1}),ye=J.adminPanel.teaser.updateRegistrationStatus.useMutation({onSuccess:(ee,Oe)=>{Promise.all([de.refetch(),bt.refetch(),vt.refetch()]),b(Ye=>Ye&&Ye.id===Oe.id?{...Ye,status:Oe.status}:Ye)}}),Ee=J.adminPanel.teaser.bulkUpdateRegistrationStatus.useMutation({onSuccess:ee=>{E(`تÙ
ØªØØ¯ÙØ« ØØ§ÙØ© ${ee.updated} Ù
Ø³Ø¬ÙØ§Ù Ø¨ÙØ¬Ø§Ø.`),w([]),Promise.all([de.refetch(),bt.refetch(),vt.refetch()])},onError:ee=>E(`تعذر تÙÙÙØ° Ø§ÙØ¥Ø¬Ø±Ø§Ø¡ Ø§ÙØ¬Ù
اعÙ: ${ee.message}`)}),te=de.data?.items??[],We=de.data,mt=te.map(ee=>ee.id),z=mt.length>0&&mt.every(ee=>y.includes(ee)),_e=be.data??[],ce=bt.data,se=P.useMemo(()=>_e.length?(_e.reduce((ee,Oe)=>ee+Oe.rating,0)/_e.length).toFixed(1):"â",[_e]),fe=()=>{de.refetch(),be.refetch(),bt.refetch(),vt.refetch(),G.refetch()},Se=(ee,Oe)=>{h(1),w([]),E(""),ee(Oe)},ot=async()=>{S("جار٠تجÙÙØ² Ù
ÙÙ CSV...");try{const Oe=(await ze.refetch()).data;if(!Oe)throw new Error("ÙÙ
ØªØµÙ Ø¨ÙØ§Ùات Ø§ÙØªØµØ¯Ùر");pV(Oe.items,`jad-wajad-registrations-${new Date().toISOString().slice(0,10)}.csv`),S(Oe.truncated?`تÙ
ØªØµØ¯ÙØ± Ø£ÙÙ ${Oe.items.length} Ø³Ø¬ÙØ§Ù بسبب ØØ¯ اÙÙ
ÙÙ.`:`تÙ
ØªØµØ¯ÙØ± ${Oe.items.length} Ø³Ø¬ÙØ§Ù Ø¨ÙØ¬Ø§Ø.`)}catch{S("تعذر ØªØµØ¯ÙØ± Ø§ÙØ¨ÙØ§ÙØ§Øª ØØ§ÙÙØ§Ù. ØØ§ÙÙ Ù
رة أخرÙ.")}},lt=ee=>{w(Oe=>Oe.includes(ee)?Oe.filter(Ye=>Ye!==ee):[...Oe,ee])},Le=()=>{w(ee=>z?ee.filter(Oe=>!mt.includes(Oe)):Array.from(new Set([...ee,...mt])))},nt=()=>{y.length&&(E("Ø¬Ø§Ø±Ù ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ§Øª..."),D(!1),Ee.mutate({ids:y,status:j}))},gt=()=>{y.length&&D(!0)},yt=async()=>{if(y.length){E("جار٠تجÙÙØ² Ù
Ù٠اÙÙ
سجÙÙ٠اÙÙ
ØØ¯Ø¯ÙÙ...");try{const Oe=(await Qe.refetch()).data;if(!Oe)throw new Error("ÙÙ
ØªØµÙ Ø¨ÙØ§Ùات Ø§ÙØªØµØ¯Ùر");pV(Oe.items,`jad-wajad-selected-registrations-${new Date().toISOString().slice(0,10)}.csv`),E(`تÙ
ØªØµØ¯ÙØ± ${Oe.items.length} Ù
Ø³Ø¬ÙØ§Ù Ù
ØØ¯Ø¯Ø§Ù Ø¨ÙØ¬Ø§Ø.`)}catch{E("تعذر ØªØµØ¯ÙØ± اÙÙ
سجÙÙ٠اÙÙ
ØØ¯Ø¯ÙÙ ØØ§ÙÙØ§Ù.")}}},rt=W==="custom"&&(!K||!$||K>$),xt=async()=>
1167{if(!(!vt.data||rt)){Y("جار٠تجÙÙØ² ØªÙØ±Ùر CSV...");try{iGe(nGe(vt.data),`jad-wajad-trends-${vt.data.startDate}-${vt.data.endDate}.csv`,"text/csv;charset=utf-8;"),await je.mutateAsync({format:"csv",startDate:vt.data.startDate,endDate:vt.data.endDate,pointCount:vt.data.points.length}),Y("تÙ
ØªÙØ²ÙÙ ØªÙØ±Ùر CSV ÙØªØ³Ø¬ÙÙ Ø§ÙØ¹Ù
ÙÙØ© ÙÙ Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ.")}catch{Y("تعذر ØªØµØ¯ÙØ± ØªÙØ±Ùر CSV ØØ§ÙÙØ§Ù.")}}},Mt=async()=>{if(!(!vt.data||rt)){Y("جار٠تجÙÙØ² ØªÙØ±Ùر PDF...");try{await oGe(vt.data,`jad-wajad-trends-${vt.data.startDate}-${vt.data.endDate}.pdf`),await je.mutateAsync({format:"pdf",startDate:vt.data.startDate,endDate:vt.data.endDate,pointCount:vt.data.points.length}),Y("تÙ
ØªÙØ²ÙÙ ØªÙØ±Ùر PDF ÙØªØ³Ø¬ÙÙ Ø§ÙØ¹Ù
ÙÙØ© ÙÙ Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ.")}catch{Y("تعذر ØªØµØ¯ÙØ± ØªÙØ±Ùر PDF ØØ§ÙÙØ§Ù.")}}};return s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:359",dir:"rtl",className:"min-h-screen bg-[#f5efdf] text-[#16233f] font-sans",children:[s.jsx("header",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:360",className:"border-b-4 border-[#16233f] bg-white",children:s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:361",className:"mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-5 sm:px-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:362",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:363",className:"mb-1 flex items-center gap-2 text-xs font-black text-[#6e52b8]",children:[s.jsx(bl,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:364",className:"h-4 w-4"})," Ù
Ø³Ø§ØØ© اÙÙ
شرÙÙÙ"]}),s.jsx("h1",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:366",className:"text-2xl font-black sm:text-3xl",children:"ÙÙØØ© ØÙ
ÙØ© Ø§ÙØªØ´ÙÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:367",className:"mt-1 text-sm font-bold text-[#596477]",children:"إدارة اÙÙØ§Ø¦Ù
Ø© Ø§ÙØ°ÙØ¨ÙØ© ÙÙØ±Ø§Ø¡Ø© ØµÙØª اÙÙ
ستخدÙ
ÙÙ Ø§ÙØ£ÙائÙ."})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:369",className:"flex items-center gap-2",children:[s.jsx(db,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:370",activePath:"/admin/teaser",items:[{label:"ÙÙØØ© ØÙ
ÙØ© Ø§ÙØªØ´ÙÙÙ",path:"/admin/teaser",icon:ln},{label:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©",path:"/admin/dashboard",icon:bl},{label:"إدارة Ø§ÙØ£Ùغاز",path:"/admin/puzzles",icon:Lg},{label:"إدارة اÙÙ
ØØªÙÙ",path:"/admin/content",icon:Zi}]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:374",type:"button",onClick:fe,className:"flex items-center gap-2 border-3 border-[#16233f] bg-[#f2c84b] px-3 py-2 text-sm font-black shadow-[3px_3px_0px_#16233f] transition-transform hover:-translate-y-0.5 active:translate-y-0",children:[s.jsx(vo,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:379",className:"h-4 w-4"})," ØªØØ¯ÙØ«"]}),s.jsx(jt,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:381",href:"/teaser",children:s.jsxs("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:382",className:"flex cursor-pointer items-center gap-2 border-3 border-[#16233f] bg-[#6e52b8] px-3 py-2 text-sm font-black text-white shadow-[3px_3px_0px_#16233f] transition-transform hover:-translate-y-0.5",children:["ØµÙØØ© Ø§ÙØªØ´ÙÙÙ ",s.jsx(Wx,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:383",className:"h-4 w-4"})]})})]})]})}),s.jsxs("main",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:390",className:"mx-auto max-w-7xl space-y-7 px-4 py-7 sm:px-6",children:[s.jsx("section",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:391",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-6",children:bt.isLoading?s.jsx(MIe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:392"}):bt.error?s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:392",className:"sm:col-span-2 lg:col-span-6",children:s.jsx(Up,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:392",message:bt.error.message})}):ce?s.jsxs(s.Fragment,{children:[s.jsx(qp,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:393",icon:s.jsx(ln,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:393",className:"h-5 w-5"}),label:"إجÙ
اÙ٠اÙÙ
سجÙÙÙ",value:ce.total,tone:"purple"}),s.jsx(qp,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:394",icon:s.jsx(bn,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:394",className:"h-5 w-5"}),label:"ÙØ´Ø·ÙÙ",value:ce.active,tone:"green"}),s.jsx(qp,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:395",icon:s.jsx(zg,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:395",className:"h-5 w-5"}),label:"ÙÙØ¯ اÙÙ
تابعة",value:ce.pending,tone:"yellow"}),s.jsx(qp,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:396",icon:s.jsx(cy,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:396",className:"h-5 w-5"}),label:"تÙ
ت Ø¯Ø¹ÙØªÙÙ
",value:ce.invited,tone:"blue"}),s.jsx(qp,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:397",icon:s.jsx(Mpe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:397",className:"h-5 w-5"}),label:"ÙØ³Ø¨Ø© Ø§ÙØªÙعÙÙ",value:`${ce.activationRate}%`,tone:"blue"}),s.jsx(qp,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:398",icon:s.jsx(Sn,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:398",className:"h-5 w-5"}),label:"Ù
ØªÙØ³Ø· Ø§ÙØªÙÙÙÙ
",value:se,tone:"pink"})]}):null}),s.jsxs("section",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:402",className:"border-4 border-[#16233f] bg-white p-4 shadow-[7px_7px_0px_#16233f] sm:p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:403",className:"mb-4 flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:404",children:[s.jsx("h2",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:404",className:"text-lg font-black",children:"تØÙÙÙ Ø§ÙØ§ØªØ¬Ø§Ùات"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:404",className:"text-xs font-bold text-[#596477]",children:"ØªØ·ÙØ± Ø§ÙØªØ³Ø¬ÙÙØ§Øª ÙØ§ÙØ¯Ø¹ÙØ§Øª ÙØ§ÙØªÙØ¹ÙÙ ØØ³Ø¨ ØªØ§Ø±ÙØ® ÙÙ ØØ¯Ø« ضÙ
٠اÙÙØªØ±Ø© اÙÙ
ختارة."})]}),s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:405",className:"border-2 border-[#16233f] bg-[#d8cdf9] px-2 py-1 text-xs font-black",children:"Ø¨ÙØ§Ùات ØÙÙÙÙØ© Ù
٠اÙÙØ§Ø¦Ù
Ø© Ø§ÙØ°ÙØ¨ÙØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:407",className:"mb-4 grid gap-3 border-3 border-[#16233f] bg-[#fff9ef] p-3 md:grid-cols-[180px_1fr_1fr_auto_auto] md:items-end",children:[s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:408",className:"text-xs font-black",children:["اÙÙØªØ±Ø©",s.jsxs("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:409",value:W,onChange:ee=>{const Oe=ee.target.value;B(Oe),Oe!=="custom"&&(ae(""),Z(""))},className:"mt-1 w-full border-2 border-[#16233f] bg-white px-2 py-2 text-xs font-black",children:[s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:410",value:"7",children:"آخر 7 Ø£ÙØ§Ù
"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:410",value:"30",children:"آخر 30 ÙÙÙ
اÙ"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:410",value:"90",children:"آخر 90 ÙÙÙ
اÙ"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:410",value:"custom",children:"ÙØ·Ø§Ù Ù
خصص"})]})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:413",className:"text-xs font-black",children:["Ù
Ù",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:414",type:"date",value:K,disabled:W!=="custom",onChange:ee=>ae(ee.target.value),className:"mt-1 w-full border-2 border-[#16233f] bg-white px-2 py-2 text-xs font-black disabled:cursor-not-allowed disabled:opacity-50","aria-label":"ØªØ§Ø±ÙØ® Ø¨Ø¯Ø§ÙØ© Ø§ØªØ¬Ø§ÙØ§Øª Ø§ÙØªØ³Ø¬ÙÙ"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:416",className:"text-xs font-black",children:["Ø¥ÙÙ",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:417",type:"date",value:$,disabled:W!=="custom",onChange:ee=>Z(ee.target.value),className:"mt-1 w-full border-2 border-[#16233f] bg-white px-2 py-2 text-xs font-black disabled:cursor-not-allowed disabled:opacity-50","aria-label":"ØªØ§Ø±ÙØ® ÙÙØ§ÙØ© Ø§ØªØ¬Ø§ÙØ§Øª Ø§ÙØªØ³Ø¬ÙÙ"})]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:419",type:"button",onClick:()=>void xt(),disabled:!vt.data||rt||vt.isFetching||je.isPending,className:"flex items-center justify-center gap-2 border-2 border-[#16233f] bg-[#bfe6ce] px-3 py-2 text-xs font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-wait disabled:opacity-50",children:[s.jsx(Qi,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:419",className:"h-4 w-4"})," CSV"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:420",type:"button",onClick:()=>void Mt(),disabled:!vt.data||rt||vt.isFetching||je.isPending,className:"flex items-center justify-center gap-2 border-2 border-[#16233f] bg-[#f2c84b] px-3 py-2 text-xs font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-wait disabled:opacity-50",children:[s.jsx(Zi,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:420",className:"h-4 w-4"})," PDF"]})]}),rt&&s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:422",className:"mb-3 text-xs font-black text-[#b42318]",role:"alert",children:"اختر ØªØ§Ø±ÙØ® Ø¨Ø¯Ø§ÙØ© ÙÙÙØ§ÙØ© صØÙØØªÙÙØ ÙÙØ¬Ø¨ Ø£Ù ÙØ³Ø¨Ù ØªØ§Ø±ÙØ® Ø§ÙØ¨Ø¯Ø§ÙØ© ØªØ§Ø±ÙØ® اÙÙÙØ§ÙØ©."}),O&&s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:423",className:"mb-3 text-xs font-black text-[#596477]",role:"status",children:O}),vt.isLoading?s.jsx(OIe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:424"}):vt.error?s.jsx(Up,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:424",message:vt.error.message}):s.jsx(IIe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:424",points:vt.data?.points??[],rangeLabel:vt.data?`${vt.data.startDate} â ${vt.data.endDate}`:void 0})]}),s.jsxs("section",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:427",className:"border-4 border-[#16233f] bg-white p-4 shadow-[7px_7px_0px_#16233f] sm:p-5","aria-labelledby":"
1167comparison-heading",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:428",className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:429",children:[s.jsx("h2",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:429",id:"comparison-heading",className:"text-lg font-black",children:"Ù
ÙØ§Ø±ÙØ© Ø§ÙØ£Ø¯Ø§Ø¡ بÙÙ ÙØªØ±ØªÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:429",className:"text-xs font-bold text-[#596477]",children:"ÙØ§Ø±Ù Ø§ÙØªØ³Ø¬ÙÙØ§Øª ÙØ§ÙØ¯Ø¹ÙØ§Øª ÙØ§ÙØªÙØ¹Ù٠بÙÙ ÙØªØ±ØªÙÙ Ù
ØØ¯Ø¯ØªÙÙ ÙØ§ØªØ®Ø§Ø° ÙØ±Ø§Ø± أدÙ."})]}),s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:430",className:"border-2 border-[#16233f] bg-[#bfe6ce] px-2 py-1 text-xs font-black",children:"Ù
ؤشرات Ù
Ù ÙØ§Ø¹Ø¯Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:432",className:"grid gap-3 border-3 border-[#16233f] bg-[#fff9ef] p-3 md:grid-cols-4",children:[s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:433",className:"text-xs font-black",children:["اÙÙØªØ±Ø© Ø§ÙØØ§ÙÙØ© â Ù
Ù",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:433",type:"date",value:Q,onChange:ee=>U(ee.target.value),className:"mt-1 w-full border-2 border-[#16233f] bg-white px-2 py-2 text-xs font-black","aria-label":"Ø¨Ø¯Ø§ÙØ© اÙÙØªØ±Ø© Ø§ÙØØ§ÙÙØ©"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:434",className:"text-xs font-black",children:["اÙÙØªØ±Ø© Ø§ÙØØ§ÙÙØ© â Ø¥ÙÙ",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:434",type:"date",value:oe,onChange:ee=>X(ee.target.value),className:"mt-1 w-full border-2 border-[#16233f] bg-white px-2 py-2 text-xs font-black","aria-label":"ÙÙØ§ÙØ© اÙÙØªØ±Ø© Ø§ÙØØ§ÙÙØ©"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:435",className:"text-xs font-black",children:["اÙÙØªØ±Ø© Ø§ÙØ³Ø§Ø¨ÙØ© â Ù
Ù",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:435",type:"date",value:ne,onChange:ee=>ge(ee.target.value),className:"mt-1 w-full border-2 border-[#16233f] bg-white px-2 py-2 text-xs font-black","aria-label":"Ø¨Ø¯Ø§ÙØ© اÙÙØªØ±Ø© Ø§ÙØ³Ø§Ø¨ÙØ©"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:436",className:"text-xs font-black",children:["اÙÙØªØ±Ø© Ø§ÙØ³Ø§Ø¨ÙØ© â Ø¥ÙÙ",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:436",type:"date",value:me,onChange:ee=>Ae(ee.target.value),className:"mt-1 w-full border-2 border-[#16233f] bg-white px-2 py-2 text-xs font-black","aria-label":"ÙÙØ§ÙØ© اÙÙØªØ±Ø© Ø§ÙØ³Ø§Ø¨ÙØ©"})]})]}),it&&s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:438",className:"mt-3 text-xs font-black text-[#b42318]",role:"alert",children:"ÙØ¬Ø¨ Ø£Ù ÙØ³Ø¨Ù ØªØ§Ø±ÙØ® Ø§ÙØ¨Ø¯Ø§ÙØ© ØªØ§Ø±ÙØ® اÙÙÙØ§ÙØ© ÙÙ ÙÙ ÙØªØ±Ø©."}),!Tt&&!it&&s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:439",className:"mt-3 text-xs font-black text-[#596477]",role:"status",children:"اختر ØªÙØ§Ø±ÙØ® اÙÙØªØ±ØªÙÙ ÙØ¹Ø±Ø¶ اÙÙ
ÙØ§Ø±ÙØ©."}),Tt&&St.isFetching&&s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:440",className:"mt-4 grid gap-3 sm:grid-cols-5",children:Array.from({length:5}).map((ee,Oe)=>s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:440",className:"h-20 animate-pulse border-3 border-[#16233f]/20 bg-[#f5efdf]"},Oe))}),Tt&&St.error&&s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:441",className:"mt-4",children:s.jsx(Up,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:441",message:St.error.message})}),Tt&&!it&&St.data&&!St.isFetching&&s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:443",className:"mt-4 grid gap-3 sm:grid-cols-5",children:[s.jsx(Gh,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:444",label:"اÙÙ
سجÙÙÙ",value:St.data.delta.total}),s.jsx(Gh,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:445",label:"ÙÙØ¯ اÙÙ
تابعة",value:St.data.delta.pending}),s.jsx(Gh,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:446",label:"Ø§ÙØ¯Ø¹Ùات",value:St.data.delta.invited}),s.jsx(Gh,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:447",label:"Ø§ÙØªÙعÙÙ",value:St.data.delta.active}),s.jsx(Gh,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:448",label:"ÙØ³Ø¨Ø© Ø§ÙØªÙعÙÙ",value:St.data.delta.activationRate,suffix:" ÙÙØ·Ø©"})]})]}),s.jsx("section",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:453",className:"sticky top-2 z-20 border-4 border-[#16233f] bg-[#f2c84b] p-3 shadow-[5px_5px_0px_#16233f]",children:s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:454",className:"flex items-center gap-3",children:[s.jsx(xl,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:455",className:"h-5 w-5 shrink-0"}),s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:456",className:"whitespace-nowrap text-sm font-black",children:"Ø¨ØØ« Ø³Ø±ÙØ¹"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:457",value:i,onChange:ee=>Se(o,ee.target.value),placeholder:"Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ...",className:"min-w-0 flex-1 border-3 border-[#16233f] bg-white px-3 py-2 text-sm font-bold outline-none focus:ring-2 focus:ring-[#6e52b8]","aria-label":"Ø¨ØØ« Ø³Ø±ÙØ¹ ع٠اÙÙ
سجÙÙÙ Ø¨Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ"}),i&&s.jsx("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:458",type:"button",onClick:()=>Se(o,""),className:"border-2 border-[#16233f] bg-white px-2 py-1 text-xs font-black","aria-label":"Ù
Ø³Ø Ø§ÙØ¨ØØ« Ø§ÙØ³Ø±Ùع",children:s.jsx(Zn,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:458",className:"h-4 w-4"})})]})}),s.jsx(A1e,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:462",className:"mb-3"}),s.jsxs("section",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:463",...r,className:"border-4 border-[#16233f] bg-white shadow-[7px_7px_0px_#16233f] touch-pan-y","aria-label":"تبÙÙØ¨Ø§Øª ÙÙØØ© اÙÙ
شرÙ. Ø§Ø³ØØ¨ Ø£ÙÙÙØ§Ù ÙÙØªÙÙ٠بÙÙÙØ§.",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:464",className:"flex flex-col gap-4 border-b-3 border-[#16233f] p-4 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:465",className:"flex gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:466",type:"button",onClick:()=>t("registrations"),className:`flex items-center gap-2 border-3 border-[#16233f] px-4 py-2 text-sm font-black transition-colors ${e==="registrations"?"bg-[#6e52b8] text-white":"bg-[#f5efdf]"}`,children:[s.jsx(ln,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:471",className:"h-4 w-4"})," اÙÙØ§Ø¦Ù
Ø© Ø§ÙØ°ÙØ¨ÙØ©"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:473",type:"button",onClick:()=>t("feedback"),className:`flex items-center gap-2 border-3 border-[#16233f] px-4 py-2 text-sm font-black transition-colors ${e==="feedback"?"bg-[#6e52b8] text-white":"bg-[#f5efdf]"}`,children:[s.jsx(cy,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:478",className:"h-4 w-4"})," اÙÙ
ÙØ§ØØ¸Ø§Øª ÙØ§ÙتÙÙÙÙ
ات"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:480",type:"button",onClick:()=>t("audit"),className:`flex items-center gap-2 border-3 border-[#16233f] px-4 py-2 text-sm font-black transition-colors ${e==="audit"?"bg-[#6e52b8] text-white":"bg-[#f5efdf]"}`,children:[s.jsx(tu,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:485",className:"h-4 w-4"})," Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ"]}
1167)]}),s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:488",className:"text-xs font-black text-[#596477]",children:"ØªØØ¯ÙØ« تÙÙØ§Ø¦Ù Ø¹ÙØ¯ تغÙÙØ± اÙÙÙØ§ØªØ±"})]}),e==="registrations"?s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:492",className:"p-4 sm:p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:493",className:"mb-5 grid gap-3 md:grid-cols-[1fr_190px_190px]",children:[s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:494",className:"relative block",children:[s.jsx(xl,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:495",className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#6e52b8]"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:496",value:i,onChange:ee=>Se(o,ee.target.value),placeholder:"Ø§Ø¨ØØ« Ø¨Ø§ÙØ§Ø³Ù
Ø£Ù Ø§ÙØ¨Ø±Ùد أ٠اÙÙ
ÙØ´Ø£Ø© أ٠اÙÙ
سÙ
Ù...",className:"w-full border-3 border-[#16233f] bg-[#f5efdf] py-3 pr-10 pl-3 text-sm font-bold outline-none focus:bg-white"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:503",className:"relative block",children:[s.jsx(fW,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:504",className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#6e52b8]"}),s.jsx("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:505",value:l,onChange:ee=>Se(c,ee.target.value),className:"w-full appearance-none border-3 border-[#16233f] bg-[#f5efdf] py-3 pr-10 pl-3 text-sm font-black outline-none",children:Object.entries(ul).map(([ee,Oe])=>s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:510",value:ee,children:Oe},ee))})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:513",className:"relative block",children:[s.jsx(zg,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:514",className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#6e52b8]"}),s.jsxs("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:515",value:d,onChange:ee=>Se(m,ee.target.value),className:"w-full appearance-none border-3 border-[#16233f] bg-[#f5efdf] py-3 pr-10 pl-3 text-sm font-black outline-none","aria-label":"ØªØ±ØªÙØ¨ اÙÙ
سجÙÙÙ ØØ³Ø¨ ØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¬ÙÙ",children:[s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:521",value:"desc",children:"Ø§ÙØ£ØØ¯Ø« تسجÙÙØ§Ù Ø£ÙÙØ§Ù"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:522",value:"asc",children:"Ø§ÙØ£ÙدÙ
تسجÙÙØ§Ù Ø£ÙÙØ§Ù"})]})]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:525",type:"button",onClick:()=>void ot(),disabled:ze.isFetching,className:"flex items-center justify-center gap-2 border-3 border-[#16233f] bg-[#bfe6ce] px-3 py-3 text-sm font-black shadow-[3px_3px_0px_#16233f] transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-wait disabled:opacity-60 md:col-span-3",children:[s.jsx(Qi,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:531",className:"h-4 w-4"}),ze.isFetching?"جار٠تجÙÙØ² CSV...":"ØªØµØ¯ÙØ± اÙÙØªØ§Ø¦Ø¬ اÙÙ
ÙÙØªØ±Ø© CSV"]}),C&&s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:534",role:"status",className:"text-xs font-black text-[#596477] md:col-span-3",children:C}),ze.isFetching&&s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:535",className:"md:col-span-3",children:s.jsx(hU,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:535"})})]}),de.isFetching&&!de.isLoading?s.jsx(fU,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:538"}):te.length>0||y.length>0?s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:539",className:"mb-5 border-3 border-[#16233f] bg-[#fff9ef] p-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:540",className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:541",className:"flex items-center gap-2 text-sm font-black",children:[s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:542",type:"checkbox",checked:z,onChange:Le,className:"h-5 w-5 accent-[#6e52b8]","aria-label":"ØªØØ¯Ùد Ù٠اÙÙ
سجÙÙÙ ÙÙ Ø§ÙØµÙØØ©"}),"ØªØØ¯Ùد ÙØªØ§Ø¦Ø¬ Ø§ÙØµÙØØ© (",mt.length,")"]}),s.jsxs("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:545",className:"text-xs font-black text-[#596477]",children:["تÙ
ØªØØ¯Ùد ",y.length," Ù
Ø³Ø¬ÙØ§Ù"]})]}),y.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:547",className:"mt-3 flex flex-col gap-2 border-t-2 border-[#16233f]/20 pt-3 sm:flex-row sm:items-center",children:[s.jsx("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:548",value:j,onChange:ee=>N(ee.target.value),className:"border-2 border-[#16233f] bg-white px-3 py-2 text-xs font-black","aria-label":"Ø§ÙØØ§ÙØ© Ø§ÙØ¬Ù
Ø§Ø¹ÙØ© Ø§ÙØ¬Ø¯Ùدة",children:VT.map(ee=>s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:549",value:ee,children:ul[ee]},ee))}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:551",type:"button",onClick:gt,disabled:Ee.isPending,className:"flex items-center justify-center gap-2 border-2 border-[#16233f] bg-[#d8cdf9] px-3 py-2 text-xs font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-wait disabled:opacity-60",children:[Ee.isPending?s.jsx(Ta,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:552",className:"h-4 w-4 animate-spin"}):s.jsx(Lg,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:552",className:"h-4 w-4"})," Ù
راجعة تطبÙÙ Ø§ÙØØ§ÙØ©"]}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:554",type:"button",onClick:()=>void yt(),disabled:Qe.isFetching,className:"flex items-center justify-center gap-2 border-2 border-[#16233f] bg-[#bfe6ce] px-3 py-2 text-xs font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-wait disabled:opacity-60",children:[Qe.isFetching?s.jsx(Ta,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:555",className:"h-4 w-4 animate-spin"}):s.jsx(Qi,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:555",className:"h-4 w-4"}
1167)," ",Qe.isFetching?"جار٠تجÙÙØ² اÙÙ
ÙÙ...":"ØªØµØ¯ÙØ± اÙÙ
ØØ¯Ø¯ÙÙ"]}),s.jsx("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:557",type:"button",onClick:()=>w([]),className:"border-2 border-[#16233f] bg-white px-3 py-2 text-xs font-black",children:"Ø¥ÙØºØ§Ø¡ Ø§ÙØªØØ¯Ùد"}),Qe.isFetching&&s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:558",className:"flex-1",children:s.jsx(hU,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:558",label:"جار٠تجÙÙØ² ØªØµØ¯ÙØ± اÙÙ
ØØ¯Ø¯ÙÙ"})})]}),A&&s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:560",role:"status",className:"mt-2 text-xs font-black text-[#596477]",children:A})]}):null,de.isLoading?s.jsx(fU,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:564"}):de.error?s.jsx(Up,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:564",message:de.error.message}):te.length===0?s.jsx(I5,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:564",label:"ÙØ§ ØªÙØ¬Ø¯ تسجÙÙØ§Øª Ù
Ø·Ø§Ø¨ÙØ© ØØªÙ Ø§ÙØ¢Ù."}):s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:565",className:"space-y-3",children:te.map(ee=>s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:567",className:"grid gap-4 border-3 border-[#16233f] bg-[#fdf9f2] p-4 md:grid-cols-[1fr_auto] md:items-center",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:568",className:"flex min-w-0 items-start gap-3",children:[s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:569",type:"checkbox",checked:y.includes(ee.id),onChange:()=>lt(ee.id),className:"mt-1 h-5 w-5 shrink-0 accent-[#6e52b8]","aria-label":`ØªØØ¯Ùد ${ee.email}`}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:576",className:"min-w-0",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:577",className:"flex flex-wrap items-center gap-2",children:[s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:578",className:"break-all text-base font-black",children:ee.email}),s.jsx(uGe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:579",status:ee.status})]}),s.jsxs("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:581",className:"mt-1 text-sm font-bold text-[#596477]",children:[ee.companyName||"Ù
ÙØ´Ø£Ø© ØºÙØ± Ù
ØØ¯Ø¯Ø©"," · ",ee.roleTitle||"Ù
سÙ
Ù ØºÙØ± Ù
ØØ¯Ø¯"]}),s.jsxs("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:582",className:"mt-2 text-xs font-bold text-[#8a92a2]",children:["Ø³ÙØ¬Ù ÙÙ ",new Date(ee.createdAt).toLocaleString("ar-SA")]})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:585",className:"flex flex-col items-stretch gap-2 md:items-end",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:586",className:"flex flex-wrap justify-end gap-1","aria-label":"إجراءات Ø³Ø±ÙØ¹Ø© ÙÙÙ
سجÙ",children:[VT.map(Oe=>s.jsx("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:588",type:"button",disabled:ye.isPending||ee.status===Oe,onClick:()=>ye.mutate({id:ee.id,status:Oe}),className:`border-2 border-[#16233f] px-2 py-1 text-[11px] font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-not-allowed disabled:opacity-40 ${Oe==="active"?"bg-[#bfe6ce]":Oe==="invited"?"bg-[#d8cdf9]":"bg-[#f2c84b]"}`,children:ul[Oe]},Oe)),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:598",type:"button",onClick:()=>b(ee),className:"flex items-center gap-1 border-2 border-[#16233f] bg-white px-2 py-1 text-[11px] font-black transition-transform hover:-translate-y-0.5 active:translate-y-0",children:[s.jsx(hpe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:603",className:"h-3.5 w-3.5"})," Ø§ÙØªÙاصÙÙ"]})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:606",className:"flex items-center gap-2 text-xs font-black",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:607",children:"ØªØØ¯ÙØ« Ø§ÙØØ§ÙØ©"}),s.jsxs("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:608",value:ee.status,disabled:ye.isPending,onChange:Oe=>ye.mutate({id:ee.id,status:Oe.target.value}),className:"border-2 border-[#16233f] bg-white px-2 py-2 font-black outline-none",children:[s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:614",value:"pending",children:"ÙÙØ¯ اÙÙ
تابعة"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:615",value:"invited",children:"تÙ
ت Ø§ÙØ¯Ø¹ÙØ©"}),s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:616",value:"active",children:"ÙØ´Ø·"})]})]})]})]},ee.id))}),We&&We.totalPages>1&&s.jsx(mV,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:625",page:We.page,totalPages:We.totalPages,total:We.total,onPageChange:h,disabled:de.isFetching})]}):e==="feedback"?s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:635",className:"p-4 sm:p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:636",className:"mb-5 grid gap-3 md:grid-cols-[1fr_180px_150px]",children:[s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:637",className:"relative block",children:[s.jsx(xl,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:638",className:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[#6e52b8]"}),s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:639",value:R,onChange:ee=>F(ee.target.value),placeholder:"Ø§Ø¨ØØ« ÙÙ ÙØµ اÙÙ
ÙØ§ØØ¸Ø© Ø£Ù Ø§ÙØ¨Ø±Ùد...",className:"w-full border-3 border-[#16233f] bg-[#f5efdf] py-3 pr-10 pl-3 text-sm font-bold outline-none focus:bg-white"})]}),s.jsx("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:646",value:I,onChange:ee=>H(ee.target.value),className:"border-3 border-[#16233f] bg-[#f5efdf] px-3 py-3 text-sm font-black outline-none",children:Object.entries(dV).map(([ee,Oe])=>s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:647",value:ee,children:Oe},ee))}),s.jsxs("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:649",value:_??"all",onChange:ee=>V(ee.target.value==="all"?void 0:Number(ee.target.value)),className:"border-3 border-[#16233f] bg-[#f5efdf] px-3 py-3 text-sm font-black outline-none",children:[s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:650",value:"all",children:"ÙÙ Ø§ÙØªÙÙÙÙ
ات"}),[5,4,3,2,1].map(ee=>s.jsxs("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:651",value:ee,children:[ee," ÙØ¬ÙÙ
"]},ee))]})]}),be.isLoading?s.jsx(fV,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:655",label:"جار٠تØÙ
ÙÙ Ø§ÙØªÙÙÙÙ
ات..."}):be.error?s.jsx(Up,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:655",message:be.error.message}):_e.length===0?s.jsx(I5,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:655",label:"ÙØ§ ØªÙØ¬Ø¯ Ù
ÙØ§ØØ¸Ø§Øª Ù
Ø·Ø§Ø¨ÙØ© ØØªÙ Ø§ÙØ¢Ù."}):s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:656",className:"grid gap-4 lg:grid-cols-2",children:_e.map(ee=>s.jsxs("article",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:658",className:"border-3 border-[#16233f] bg-[#fdf9f2] p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:659",className:"mb-3 flex items-start justify-between gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:660",className:"flex items-center gap-1","aria-label":`${ee.rating}
1167 Ù
Ù 5 ÙØ¬ÙÙ
`,children:[1,2,3,4,5].map(Oe=>s.jsx(Sn,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:661",className:`h-4 w-4 ${Oe<=ee.rating?"fill-[#f2c84b] text-[#16233f]":"text-[#b8bdc8]"}`},Oe))}),s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:663",className:"border-2 border-[#16233f] bg-[#f2c84b] px-2 py-1 text-[11px] font-black",children:dV[ee.category]||ee.category})]}),s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:665",className:"text-sm font-bold leading-7",children:ee.feedbackText}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:666",className:"mt-4 flex flex-wrap justify-between gap-2 text-xs font-bold text-[#596477]",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:667",children:ee.email||"زائر بدÙÙ Ø¨Ø±ÙØ¯"}),s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:668",children:new Date(ee.createdAt).toLocaleString("ar-SA")})]})]},ee.id))})]}):s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:676",className:"p-4 sm:p-6",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:677",className:"mb-5 grid gap-3 md:grid-cols-[1fr_1fr_1fr_1fr_180px]",children:[s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:678",className:"text-xs font-black",children:["Ù
عر٠اÙÙ
شرÙ",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:679",type:"number",min:"1",value:Ze,onChange:ee=>{Ce(ee.target.value),et(1)},placeholder:"Ù
ثاÙ: 12",className:"mt-1 w-full border-3 border-[#16233f] bg-[#f5efdf] px-3 py-3 text-sm font-black outline-none","aria-label":"Ø§ÙØ¨ØØ« بÙ
عر٠اÙÙ
شر٠ÙÙ Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:681",className:"text-xs font-black",children:["اÙÙ
شرÙ",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:682",value:ke,onChange:ee=>{Me(ee.target.value),et(1)},placeholder:"اسÙ
اÙÙ
شرÙ...",className:"mt-1 w-full border-3 border-[#16233f] bg-[#f5efdf] px-3 py-3 text-sm font-black outline-none","aria-label":"Ø§ÙØ¨ØØ« باسÙ
اÙÙ
شر٠ÙÙ Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:684",className:"text-xs font-black",children:["ÙÙØ¹ Ø§ÙØ¥Ø¬Ø±Ø§Ø¡",s.jsxs("select",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:685",value:Pe,onChange:ee=>{L(ee.target.value),et(1)},className:"mt-1 w-full border-3 border-[#16233f] bg-[#f5efdf] px-3 py-3 text-sm font-black outline-none",children:[s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:686",value:"all",children:"ÙÙ Ø§ÙØ¥Ø¬Ø±Ø§Ø¡Ø§Øª"}),Object.entries(uV).map(([ee,Oe])=>s.jsx("option",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:687",value:ee,children:Oe},ee))]})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:690",className:"text-xs font-black",children:["Ù
Ù ØªØ§Ø±ÙØ®",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:691",type:"date",value:Te,onChange:ee=>{Ke(ee.target.value),et(1)},className:"mt-1 w-full border-3 border-[#16233f] bg-[#f5efdf] px-3 py-3 text-sm font-black outline-none","aria-label":"Ø¨Ø¯Ø§ÙØ© Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ"})]}),s.jsxs("label",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:693",className:"text-xs font-black",children:["Ø¥ÙÙ ØªØ§Ø±ÙØ®",s.jsx("input",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:694",type:"date",value:Ve,onChange:ee=>{ht(ee.target.value),et(1)},className:"mt-1 w-full border-3 border-[#16233f] bg-[#f5efdf] px-3 py-3 text-sm font-black outline-none","aria-label":"ÙÙØ§ÙØ© Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ"})]})]}),Te&&Ve&&Te>Ve&&s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:697",className:"mb-3 text-xs font-black text-[#b42318]",role:"alert",children:"تØÙÙ Ù
Ù Ø£Ù ØªØ§Ø±ÙØ® Ø§ÙØ¨Ø¯Ø§ÙØ© ÙØ³Ø¨Ù ØªØ§Ø±ÙØ® اÙÙÙØ§ÙØ©."}),G.isLoading?s.jsx(fV,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:698",label:"جار٠تØÙ
ÙÙ Ø³Ø¬Ù Ø§ÙØªØ¯ÙÙÙ..."}):G.error?s.jsx(Up,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:698",message:G.error.message}):G.data?.items.length===0?s.jsx(I5,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:698",label:"ÙØ§ ØªÙØ¬Ø¯ إجراءات Ù
Ø³Ø¬ÙØ© ضÙ
٠اÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ©."}):s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:699",className:"space-y-3",children:G.data?.items.map(ee=>s.jsxs("article",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:701",className:"border-3 border-[#16233f] bg-[#fff9ef] p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:702",className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:703",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:703",className:"border-2 border-[#16233f] bg-[#d8cdf9] p-2",children:s.jsx(tu,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:703",className:"h-4 w-4"})}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:703",children:[s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:703",className:"text-sm font-black",children:uV[ee.action]||ee.action}),s.jsxs("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:703",className:"mt-1 text-xs font-bold text-[#596477]",children:[ee.actorName||`Ù
شر٠#${ee.actorUserId}`," · ",ee.entityType,ee.entityId?` #${ee.entityId}`:""]})]})]}),s.jsx("time",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:704",className:"text-xs font-bold text-[#596477]",children:new Date(ee.createdAt).toLocaleStr
1167ing("ar-SA")})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:706",className:"mt-3 flex flex-wrap gap-2 text-xs font-black",children:[s.jsxs("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:706",className:"border-2 border-[#16233f] bg-white px-2 py-1",children:["Ø§ÙØªØ£Ø«Ùر: ",ee.affectedCount]}),ee.previousStatus&&s.jsxs("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:706",className:"border-2 border-[#16233f] bg-[#f5efdf] px-2 py-1",children:["Ù
Ù: ",ul[ee.previousStatus]||ee.previousStatus]}),ee.nextStatus&&s.jsxs("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:706",className:"border-2 border-[#16233f] bg-[#bfe6ce] px-2 py-1",children:["Ø¥ÙÙ: ",ul[ee.nextStatus]||ee.nextStatus]})]})]},ee.id))}),G.data&&G.data.totalPages>1&&s.jsx(mV,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:711",page:G.data.page,totalPages:G.data.totalPages,total:G.data.total,onPageChange:et,disabled:G.isFetching})]})]}),k&&s.jsx(cGe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:715",selectedCount:y.length,status:j,onCancel:()=>D(!1),onConfirm:nt,isUpdating:Ee.isPending}),x&&s.jsx(dGe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:717",registration:x,onClose:()=>b(null),onStatusChange:ee=>ye.mutate({id:x.id,status:ee}),isUpdating:ye.isPending})]})]})}function mV({page:e,totalPages:t,total:a,onPageChange:n,disabled:r}){return s.jsxs("nav",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:733",className:"mt-5 flex flex-wrap items-center justify-between gap-3 border-t-2 border-[#16233f]/20 pt-4","aria-label":"ترÙÙÙ
ÙØ§Ø¦Ù
Ø© اÙÙ
سجÙÙÙ",children:[s.jsxs("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:734",className:"text-xs font-black text-[#596477]",children:["ØµÙØØ© ",e," Ù
Ù ",t," · ",a," ÙØªÙجة"]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:735",className:"flex items-center gap-2",children:[s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:736",type:"button",disabled:r||e<=1,onClick:()=>n(e-1),className:"flex items-center gap-1 border-2 border-[#16233f] bg-[#f5efdf] px-3 py-2 text-xs font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-not-allowed disabled:opacity-40",children:[s.jsx(r2,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:742",className:"h-4 w-4"})," Ø§ÙØ³Ø§Ø¨Ù"]}),s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:744",className:"border-2 border-[#16233f] bg-[#f2c84b] px-3 py-2 text-xs font-black",children:e}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:745",type:"button",disabled:r||e>=t,onClick:()=>n(e+1),className:"flex items-center gap-1 border-2 border-[#16233f] bg-[#f5efdf] px-3 py-2 text-xs font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-not-allowed disabled:opacity-40",children:["Ø§ÙØªØ§ÙÙ ",s.jsx(s2,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:750",className:"h-4 w-4"})]})]})]})}function cGe({selectedCount:e,status:t,onCancel:a,onConfirm:n,isUpdating:r}){return s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:759",className:"fixed inset-0 z-50 flex items-center justify-center bg-[#16233f]/70 p-4",role:"presentation",onMouseDown:i=>{i.target===i.currentTarget&&a()},children:s.jsxs("section",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:760",className:"w-full max-w-md border-4 border-[#16233f] bg-[#fdf9f2] p-5 shadow-[7px_7px_0px_#16233f]",role:"dialog","aria-modal":"true","aria-labelledby":"bulk-confirmation-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:761",className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:762",className:"flex items-start gap-3",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:762",className:"border-2 border-[#16233f] bg-[#f2c84b] p-2",children:s.jsx(Xx,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:762",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:762",children:[s.jsx("h2",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:762",id:"bulk-confirmation-title",className:"text-lg font-black",children:"تأÙÙØ¯ Ø§ÙØªØ¹Ø¯ÙÙ Ø§ÙØ¬Ù
اعÙ"}),s.jsxs("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:762",className:"mt-2 text-sm font-bold leading-6 text-[#596477]",children:["Ø³ÙØªÙ
تغÙÙØ± ØØ§ÙØ© ",e," Ù
Ø³Ø¬ÙØ§Ù Ø¥Ù٠«",ul[t],"». ÙØ§ ÙÙ
ÙÙ Ø§ÙØªØ±Ø§Ø¬Ø¹ Ø¹Ù ÙØ°Ø§ Ø§ÙØ¥Ø¬Ø±Ø§Ø¡ Ù
Ù Ø¯Ø§Ø®Ù ÙØ°Ù اÙÙØ§Ùذة."]})]})]}),s.jsx("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:763",type:"button",onClick:a,className:"border-2 border-[#16233f] bg-white px-2 py-1 text-xl font-black leading-none","aria-label":"Ø¥ØºÙØ§Ù ÙØ§Ùذة Ø§ÙØªØ£ÙÙØ¯",children:"Ã"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:765",className:"mt-5 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",children:[s.jsx("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:766",type:"button",onClick:a,disabled:r,className:"border-2 border-[#16233f] bg-white px-4 py-2 text-sm font-black",children:"Ø¥ÙØºØ§Ø¡"}),s.jsxs("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:767",type:"button",onClick:n,disabled:r,className:"flex items-center justify-center gap-2 border-2 border-[#16233f] bg-[#d8cdf9] px-4 py-2 text-sm font-black disabled:cursor-wait disabled:opacity-60",children:[r&&s.jsx(Ta,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:767",className:"h-4 w-4 animate-spin"})," تأÙÙØ¯ تغÙÙØ± Ø§ÙØØ§ÙØ©"]})]})]})})}function dGe({registration:e,onClose:t,onStatusChange:a,isUpdating:n}){return s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:776",className:"fixed inset-0 z-50 flex items-center justify-center bg-[#16233f]/70 p-4",role:"presentation",onMouseDown:r=>{r.target===r.currentTarget&&t()},children:s.jsxs("section",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:781",className:"w-full max-w-lg border-4 border-[#16233f] bg-[#fdf9f2] p-5 shadow-[7px_7px_0px_#16233f]",role:"dialog","aria-modal":"true","aria-labelledby":"registration-detail
1167s-title",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:782",className:"flex items-start justify-between gap-4 border-b-2 border-[#16233f]/20 pb-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:783",children:[s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:784",className:"text-xs font-black text-[#6e52b8]",children:"ØªÙØ§ØµÙ٠اÙÙ
سجÙ"}),s.jsx("h2",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:785",id:"registration-details-title",className:"mt-1 break-all text-xl font-black",children:e.email})]}),s.jsx("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:787",type:"button",onClick:t,className:"border-2 border-[#16233f] bg-white px-3 py-1 text-xl font-black leading-none transition-transform hover:-translate-y-0.5 active:translate-y-0","aria-label":"Ø¥ØºÙØ§Ù Ø§ÙØªÙاصÙÙ",children:"Ã"})]}),s.jsxs("dl",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:789",className:"mt-5 grid gap-3 sm:grid-cols-2",children:[s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:790",label:"رÙÙ
Ø§ÙØªØ³Ø¬ÙÙ",value:String(e.id)}),s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:791",label:"Ø§ÙØ§Ø³Ù
",value:e.name||"ØºÙØ± Ù
ØØ¯Ø¯"}),s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:792",label:"Ø§ÙØØ§ÙØ© Ø§ÙØØ§ÙÙØ©",value:ul[e.status]||e.status}),s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:793",label:"اÙÙ
ÙØ´Ø£Ø©",value:e.companyName||"ØºÙØ± Ù
ØØ¯Ø¯Ø©"}),s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:794",label:"اÙÙ
سÙ
٠اÙÙØ¸ÙÙÙ",value:e.roleTitle||"ØºÙØ± Ù
ØØ¯Ø¯"}),s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:795",label:"ØªØ§Ø±ÙØ® Ø§ÙØªØ³Ø¬ÙÙ",value:new Date(e.createdAt).toLocaleString("ar-SA")}),s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:796",label:"ØªØ§Ø±ÙØ® Ø§ÙØ¯Ø¹ÙØ©",value:e.invitedAt?new Date(e.invitedAt).toLocaleString("ar-SA"):"ÙÙ
تتÙ
Ø§ÙØ¯Ø¹ÙØ© بعد"}),s.jsx(xc,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:797",label:"ØªØ§Ø±ÙØ® Ø§ÙØªÙعÙÙ",value:e.activatedAt?new Date(e.activatedAt).toLocaleString("ar-SA"):"ÙÙ
ÙØªÙ
Ø§ÙØªÙعÙ٠بعد"})]}),s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:799",className:"mt-5 border-t-2 border-[#16233f]/20 pt-4",children:[s.jsx("p",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:800",className:"mb-2 text-xs font-black text-[#596477]",children:"تغÙÙØ± Ø§ÙØØ§ÙØ© Ø³Ø±ÙØ¹Ø§Ù"}),s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:801",className:"flex flex-wrap gap-2",children:VT.map(r=>s.jsx("button",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:803",type:"button",disabled:n||e.status===r,onClick:()=>a(r),className:`border-2 border-[#16233f] px-3 py-2 text-xs font-black transition-transform hover:-translate-y-0.5 active:translate-y-0 disabled:cursor-not-allowed disabled:opacity-40 ${r==="active"?"bg-[#bfe6ce]":r==="invited"?"bg-[#d8cdf9]":"bg-[#f2c84b]"}`,children:ul[r]},r))})]})]})})}function xc({label:e,value:t}){return s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:815",className:"border-2 border-[#16233f] bg-white p-3",children:[s.jsx("dt",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:815",className:"text-[11px] font-black text-[#6e52b8]",children:e}),s.jsx("dd",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:815",className:"mt-1 break-words text-sm font-black",children:t})]})}function qp({icon:e,label:t,value:a,tone:n}){const r={purple:"bg-[#d8cdf9]",yellow:"bg-[#f2c84b]",green:"bg-[#bfe6ce]",pink:"bg-[#ffc2bd]",blue:"bg-[#a6dded]"};return s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:820",className:`border-4 border-[#16233f] p-4 shadow-[5px_5px_0px_#16233f] ${r[n]}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:820",className:"mb-4 flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:820",className:"text-sm font-black",children:t}),s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:820",className:"border-2 border-[#16233f] bg-white p-2",children:e})]}),s.jsx("strong",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:820",className:"block text-3xl font-black",children:a})]})}function uGe({status:e}){const t=e==="active"?"bg-[#bfe6ce]":e==="invited"?"bg-[#d8cdf9]":"bg-[#f2c84b]";return s.jsx("span",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:825",className:`border-2 border-[#16233f] px-2 py-1 text-[11px] font-black ${t}`,children:ul[e]||e})}function fV({label:e}){return s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:828",className:"border-3 border-dashed border-[#16233f] p-10 text-center text-sm font-black",children:[s.jsx(vo,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:828",className:"mx-auto mb-3 h-6 w-6 animate-spin text-[#6e52b8]"}),e]})}function I5({label:e}){return s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:829",className:"border-3 border-dashed border-[#16233f] p-10 text-center text-sm font-black text-[#596477]",children:e})}function Up({message:e}){return s.jsxs("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:830",className:"border-3 border-red-700 bg-red-50 p-5 text-sm font-black text-red-700",children:["تعذر تØÙ
ÙÙ Ø§ÙØ¨ÙØ§ÙØ§Øª: ",e]})}function pGe(){return s.jsx("div",{"data-loc":"client/src/pages/TeaserAdminPage.tsx:833",dir:"rtl",className:"min-h-screen",children:s.jsx(DIe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:833",hideSidebar:!0,
1167children:s.jsx(lGe,{"data-loc":"client/src/pages/TeaserAdminPage.tsx:833"})})})}const mne="jad-wajad-focus-reminder",L5={enabled:!1,time:"18:00"};function fne(e=typeof window>"u"?null:window.localStorage){if(!e)return L5;try{const t=e.getItem(mne);if(!t)return L5;const a=JSON.parse(t);return{enabled:a.enabled===!0,time:/^\d{2}:\d{2}$/.test(a.time??"")?a.time:"18:00",lastPromptedDate:a.lastPromptedDate}}catch{return L5}}function hne(e,t=typeof window>"u"?null:window.localStorage){t?.setItem(mne,JSON.stringify(e))}function gne(e){return e.toISOString().slice(0,10)}function mGe(e,t){if(!e.enabled||e.lastPromptedDate===gne(t))return!1;const[a,n]=e.time.split(":").map(Number);return t.getHours()>a||t.getHours()===a&&t.getMinutes()>=n}function fGe(e,t){return{...e,lastPromptedDate:gne(t)}}function xne(){return typeof window<"u"&&"Notification"in window}async function hGe(){return xne()?window.Notification.requestPermission():"unsupported"}function gGe(e,t){return!xne()||window.Notification.permission!=="granted"?!1:(new window.Notification(e,t),!0)}function xGe(){const{isAuthenticated:e,loading:t}=Ma(),a=J.useUtils(),n=J.challenges.list.useQuery({type:"daily"}),r=J.challenges.myTodayCompletions.useQuery(void 0,{enabled:e}),i=J.lessons.adaptiveChallenge.useQuery(void 0,{enabled:e}),o=J.challenges.complete.useMutation({onSuccess:w=>{re.success(w.alreadyCompleted?"Ø³ÙØ¬Ùت ÙØ°Ù اÙÙ
ÙÙ
Ø© Ù
Ø³Ø¨ÙØ§Ù":"Ø£ØØ³Ùت! Ø§ÙØªÙ
ÙØª Ù
ÙÙ
Ø© Ø§ÙØªØ±ÙÙØ²."),a.challenges.myTodayCompletions.invalidate(),a.profile.me.invalidate()},onError:w=>re.error(`تعذر تسجÙ٠اÙÙ
ÙÙ
Ø©: ${w.message}`)}),[l,c]=P.useState({enabled:!1,time:"18:00"});P.useEffect(()=>{c(fne())},[]);const d=w=>{const j={...l,...w};c(j),hne(j)},m=async()=>{const w=await hGe();w==="granted"?re.success("تÙ
ØªÙØ¹Ù٠إشعارات اÙÙ
ØªØµÙØ ÙØªØ°ÙÙØ± Ø§ÙØªØ±ÙÙØ²."):w==="denied"?re.error("ÙÙ
ÙÙ٠تغÙÙØ± Ø¥Ø°Ù Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª Ù
٠إعدادات اÙÙ
ØªØµÙØ ÙØ§ØÙاÙ."):re.error("Ø§ÙØ¥Ø´Ø¹Ø§Ø±Ø§Øª ØºÙØ± Ù
دعÙÙ
Ø© ÙÙ ÙØ°Ø§ اÙÙ
ØªØµÙØ.")};if(t)return s.jsx("div",{"data-loc":"client/src/pages/FocusModePage.tsx:41",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/FocusModePage.tsx:41",className:"memphis-card p-6 font-black",children:"جار٠تجÙÙØ² ترÙÙØ²Ù..."})});if(!e)return s.jsx("div",{"data-loc":"client/src/pages/FocusModePage.tsx:42",className:"min-h-screen memphis-bg flex items-center justify-center p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:42",className:"memphis-card max-w-sm p-7 text-center",children:[s.jsx(tz,{"data-loc":"client/src/pages/FocusModePage.tsx:42",className:"mx-auto mb-3 h-10 w-10"}),s.jsx("h1",{"data-loc":"client/src/pages/FocusModePage.tsx:42",className:"text-2xl font-black",children:"سجÙ٠دخÙÙÙ ÙØ¨Ø¯Ø¡ ÙØ¶Ø¹ Ø§ÙØªØ±ÙÙØ²"})]})});const f=new Set((r.data??[]).map(w=>w.challengeId)),h=(n.data??[]).find(w=>!f.has(w.id)),x=f.size,b=n.data?.length??0,y=b?Math.min(100,Math.round(x/b*100)):0;return s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:51",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/FocusModePage.tsx:52"}),s.jsxs("main",{"data-loc":"client/src/pages/FocusModePage.tsx:53",className:"mx-auto max-w-3xl px-4 py-6 sm:py-10",children:[s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:54",className:"mb-6 flex items-center justify-between gap-3",children:[s.jsxs(jt,{"data-loc":"client/src/pages/FocusModePage.tsx:54",href:"/dashboard",className:"memphis-btn bg-white px-3 py-2 text-xs font-black text-black",children:[s.jsx(s2,{"data-loc":"client/src/pages/FocusModePage.tsx:54",className:"ml-1 inline h-4 w-4"})," Ø§ÙØ¹Ùدة ÙÙÙØØ©"]}),s.jsx(by,{"data-loc":"client/src/pages/FocusModePage.tsx:54"})]}),s.jsxs("section",{"data-loc":"client/src/pages/FocusModePage.tsx:55",className:"memphis-card memphis-card--hero overflow-hidden bg-memphis-yellow",children:[s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:56",className:"p-6 text-center sm:p-9",children:[s.jsx("div",{"data-loc":"client/src/pages/FocusModePage.tsx:57",className:"mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-2xl border-2 border-black bg-white shadow-memphis",children:s.jsx(tz,{"data-loc":"client/src/pages/FocusModePage.tsx:57",className:"h-8 w-8"})}),s.jsx("p",{"data-loc":"client/src/pages/FocusModePage.tsx:58",className:"memphis-kicker text-black/60",children:"ÙØ¶Ø¹ ترÙÙØ² اÙÙÙÙ
"}),s.jsx("h1",{"data-loc":"client/src/pages/FocusModePage.tsx:59",className:"mt-1 text-3xl font-black text-black sm:text-4xl",children:"Ø®Ø·ÙØ© ÙØ§ØØ¯Ø©Ø أثر ÙØ§Ø¶Ø"}),s.jsx("p",{"data-loc":"client/src/pages/FocusModePage.tsx:60",className:"mx-auto mt-3 max-w-xl text-sm font-bold leading-7 text-black/70",children:"أغÙÙ Ø§ÙØªØ´ØªØª Ù
Ø¤ÙØªØ§Ù. ÙØ°Ù ÙÙ Ø£ÙØ¶Ù Ø®Ø·ÙØ© Ù
ÙØªØ±ØØ© ÙÙ Ø§ÙØ¢Ù Ø¨ÙØ§Ø¡Ù عÙÙ ØªÙØ¯Ù
Ù."})]}),s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:62",className:"border-t-2 border-black/20 bg-white/45 px-6 py-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:62",className:"mb-2 flex justify-between text-xs font-black",children:[s.jsx("span",{"data-loc":"client/src/pages/FocusModePage.tsx:62",children:"ØªÙØ¯Ù
٠اÙÙÙÙ
"}),s.jsxs("span",{"data-loc":"client/src/pages/FocusModePage.tsx:62",className:"memphis-number",children:[y,"%"]})]}),s.jsx("div",{"data-loc":"client/src/pages/FocusModePage.tsx:62",className:"memphis-progress-track h-3",children:s.jsx("div",{"data-loc":"client/src/pages/FocusModePage.tsx:62",className:"memphis-progress-fill",style:{width:`${y}%`}})})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/FocusModePage.tsx:65",className:"memphis-card mt-5 flex flex-wrap items-center justify-between gap-4 bg-white p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:66",children:[s.jsx("p",{"data-loc":"client/src/pages/FocusModePage.tsx:66",className:"text-sm font-black",children:"تذÙÙØ± Ø§ÙØªØ±ÙÙØ²"}),s.jsx("p",{"data-loc":"client/src/pages/FocusModePage.tsx:66",className:"mt-1 text-xs font-bold text-black/60",children:"ÙØ¸Ùر Ø¹ÙØ¯ ÙØªØ اÙÙ
ÙØµØ© Ø£Ù Ø§ÙØ¹Ùدة Ø¥ÙÙÙØ§ بعد اÙÙÙØª اÙÙ
ØØ¯Ø¯."})]}),s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:67",className:"flex items-center gap-2",children:[s.jsx("input",{"data-loc":"client/src/pages/FocusModePage.tsx:67",type:"time",value:l.time,onChange:w=>d({time:w.target.value}),className:"rounded-lg border-2 border-black bg-white px-2 py-1.5 text-sm font-black","aria-label":"ÙÙØª تذÙÙØ± Ø§ÙØªØ±ÙÙØ²"}),s.jsx("button",{"data-loc":"client/src/pages/FocusModePage.tsx:67",type:"button","aria-pressed":l.enabled,onClick:()=>d({enabled:!l.enabled}),className:`memphis-btn px-3 py-2 text-xs font-black ${l.enabled?"bg-memphis-mint text-black":"bg-white text-black"}`,children:l.enabled?"Ù
ÙØ¹ÙÙ":"ØªÙØ¹ÙÙ"})]}),s.jsx("button",{"data-loc":"client/src/pages/FocusModePage.tsx:68",type:"button",onClick:m,className:"memphis-btn bg-memphis-lilac px-3 py-2 text-xs font-black text-black",children:"إشعارات اÙÙ
ØªØµÙØ"})]}),s.jsx("section",{"data-loc":"client/src/pages/FocusModePage.tsx:71",className:"memphis-card memphis-card--hero mt-7 bg-white p-5 sm:p-7",children:i.data?s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:73",className:"mb-4 flex items-center justify-between gap-3",children:[s.jsxs("span",{"data-loc":"client/src/pages/FocusModePage.tsx:73",className:"memphis-badge-pill bg-memphis-mint",children:[s.jsx(pn,{"data-loc":"client/src/pages/FocusModePage.tsx:73",className:"ml-1 inline h-3.5 w-3.5"}),"Ù
ÙØµÙ ب٠ÙÙ"]}),s.jsx("span",{"data-loc":"client/src/pages/FocusModePage.tsx:73",className:"text-xs font-black text-black/55",children:"5 Ø¯ÙØ§Ø¦Ù ØªÙØ±ÙباÙ"})]}),s.jsx("h2",{"data-loc":"client/src/pages/FocusModePage.tsx:74",className:"text-2xl font-black text-black",children:i.data.title}),s.jsx("p",{"data-loc":"client/src/pages/FocusModePage.tsx:75",className:"mt-3 text-base font-medium leading-8 text-black/70",children:i.data.description}),s.jsxs(jt,{"data-loc":"client/src/pages/FocusModePage.tsx:76",href:`/lesson/${i.data.lessonId}`,className:"memphis-btn mt-6 inline-flex bg-black px-6 py-3 text-sm font-black text-white",children:[s.jsx(vs,{"data-loc":"client/src/pages/FocusModePage.tsx:76",className:"ml-2 h-4 w-4"}),"ابدأ Ø®Ø·ÙØ© Ø§ÙØªØ±ÙÙØ²"]}
1167)]}):h?s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:78",className:"mb-4 flex items-center justify-between gap-3",children:[s.jsxs("span",{"data-loc":"client/src/pages/FocusModePage.tsx:78",className:"memphis-badge-pill bg-memphis-sky",children:[s.jsx(Os,{"data-loc":"client/src/pages/FocusModePage.tsx:78",className:"ml-1 inline h-3.5 w-3.5"}),"ØªØØ¯Ù اÙÙÙÙ
"]}),s.jsxs("span",{"data-loc":"client/src/pages/FocusModePage.tsx:78",className:"memphis-badge-pill bg-memphis-yellow",children:["+",h.pointsReward," ÙÙØ·Ø©"]})]}),s.jsx("h2",{"data-loc":"client/src/pages/FocusModePage.tsx:79",className:"text-2xl font-black text-black",children:h.titleAr}),s.jsx("p",{"data-loc":"client/src/pages/FocusModePage.tsx:80",className:"mt-3 text-base font-medium leading-8 text-black/70",children:h.descriptionAr}),s.jsx("button",{"data-loc":"client/src/pages/FocusModePage.tsx:81",onClick:()=>o.mutate({challengeId:h.id}),disabled:o.isPending,className:"memphis-btn mt-6 bg-black px-6 py-3 text-sm font-black text-white disabled:opacity-50",children:o.isPending?"Ø¬Ø§Ø±Ù Ø§ÙØªØ³Ø¬ÙÙ...":"Ø£ÙÙ
Ù Ù
ÙÙ
Ø© Ø§ÙØªØ±ÙÙØ²"})]}):s.jsxs("div",{"data-loc":"client/src/pages/FocusModePage.tsx:82",className:"py-5 text-center",children:[s.jsx(aa,{"data-loc":"client/src/pages/FocusModePage.tsx:82",className:"mx-auto mb-3 h-10 w-10"}),s.jsx("h2",{"data-loc":"client/src/pages/FocusModePage.tsx:82",className:"text-2xl font-black",children:"Ø£ÙÙ
ÙØª ÙØ¯Ù اÙÙÙÙ
"}),s.jsx("p",{"data-loc":"client/src/pages/FocusModePage.tsx:82",className:"mt-2 font-bold text-black/65",children:"ØØ§Ùظ عÙÙ Ø§ÙØ¥ÙÙØ§Ø¹ ÙØ§Ø±Ø¬Ø¹ غدا٠ÙÙ
ÙÙ
Ø© Ø¬Ø¯ÙØ¯Ø©."}),s.jsxs(jt,{"data-loc":"client/src/pages/FocusModePage.tsx:82",href:"/achievements",className:"memphis-btn mt-5 inline-flex bg-memphis-lilac px-5 py-3 text-sm font-black text-black",children:[s.jsx(bn,{"data-loc":"client/src/pages/FocusModePage.tsx:82",className:"ml-2 h-4 w-4"}),"Ø´Ø§ÙØ¯ Ø¥ÙØ¬Ø§Ø²Ø§ØªÙ"]})]})})]})]})}function bGe(e,{name:t,points:a,badgeCount:n,streakDays:r},i){e.width=1080,e.height=620;const c=e.getContext("2d");if(!c)throw new Error("Canvas unavailable");const d=i==="champion"?["#fde68a","#fb923c","#fffaf0","Ø¥ÙØ¬Ø§Ø² Ø§ÙØ¨Ø·Ù"]:i==="midnight"?["#312e81","#0f172a","#eef2ff","Ø¥ÙØ¬Ø§Ø² اÙÙØ®Ø¨Ø©"]:["#ffd8c0","#d8c8ff","#fffaf0","Ø¥ÙØ¬Ø§Ø² ÙØ³ØªØÙ Ø§ÙØ§ØØªÙاÙ"],m=c.createLinearGradient(0,0,1080,620);m.addColorStop(0,d[0]),m.addColorStop(1,d[1]),c.fillStyle=m,c.fillRect(0,0,1080,620),c.strokeStyle="#000",c.lineWidth=10,c.roundRect(30,30,1020,560,36),c.stroke(),c.fillStyle=d[2],c.roundRect(58,58,964,504,28),c.fill(),c.fillStyle="#000",c.textAlign="center",c.font="900 34px Calibri, Arial",c.fillText("Ù
ÙØµØ© Ø¬ÙØ¯ ÙØ¬Ø¯",1080/2,135),c.font="900 62px Calibri, Arial",c.fillText(d[3],1080/2,230),c.font="700 36px Calibri, Arial",c.fillText(t,1080/2,292);const f=[`${a.toLocaleString("ar-SA")} ÙÙØ·Ø©`,`${n} شارة`,`${r} Ø£ÙØ§Ù
Ù
تتاÙÙØ©`];c.font="900 32px Calibri, Arial",f.forEach((h,x)=>{const b=230+x*310;c.fillStyle=["#fde68a","#a7f3d0","#bfdbfe"][x],c.roundRect(b-130,355,260,88,22),c.fill(),c.strokeStyle="#000",c.lineWidth=4,c.stroke(),c.fillStyle="#000",c.fillText(h,b,410)}),c.font="700 25px Calibri, Arial",c.fillStyle="#444",c.fillText("Ø®Ø·ÙØ© ØµØºÙØ±Ø© اÙÙÙÙ
Ø Ø£Ø«Ø± ÙØ§Ø¶Ø غداÙ.",1080/2,520)}function vGe(e){const[t,a]=P.useState(!1),[n,r]=P.useState("classic"),i=()=>new Promise((c,d)=>{const m=document.createElement("canvas");bGe(m,e,n),m.toBlob(f=>f?c(f):d(new Error("blob unavailable")),"image/png")}),o=async()=>{a(!0);try{const c=await i(),d=URL.createObjectURL(c),m=document.createElement("a");m.href=d,m.download="Ø¨Ø·Ø§ÙØ©-Ø¥ÙØ¬Ø§Ø²Ù-جد-ÙØ¬Ø¯.png",m.click(),URL.revokeObjectURL(d),re.success("تÙ
ØªÙØ²ÙÙ Ø¨Ø·Ø§ÙØ© Ø¥ÙØ¬Ø§Ø²Ù.")}catch{re.error("تعذر Ø¥ÙØ´Ø§Ø¡ Ø¨Ø·Ø§ÙØ© Ø§ÙØ¥Ùجاز.")}finally{a(!1)}},l=async()=>{a(!0);try{const c=await i(),d=new File([c],"Ø¨Ø·Ø§ÙØ©-Ø¥ÙØ¬Ø§Ø²Ù-جد-ÙØ¬Ø¯.png",{type:"image/png"});navigator.share&&(!navigator.canShare||navigator.canShare({files:[d]}))?await navigator.share({title:"Ø¥ÙØ¬Ø§Ø²Ù Ù٠جد ÙØ¬Ø¯",text:"أشارÙÙÙ
ØªÙØ¯Ù
Ù ÙÙ Ù
ÙØµØ© جد ÙØ¬Ø¯!",files:[d]}):await o()}catch{}finally{a(!1)}};return s.jsxs("div",{"data-loc":"client/src/components/AchievementShareActions.tsx:41",className:"space-y-3",children:[s.jsx("div",{"data-loc":"client/src/components/AchievementShareActions.tsx:41",className:"flex flex-wrap justify-center gap-2",children:[{id:"classic",label:"ÙÙØ§Ø³ÙÙÙ",color:"bg-memphis-peach"},{id:"champion",label:"Ø§ÙØ¨Ø·Ù",color:"bg-memphis-yellow"},{id:"midnight",label:"اÙÙØ®Ø¨Ø©",color:"bg-memphis-lilac"}].map(c=>s.jsx("button",{"data-loc":"client/src/components/AchievementShareActions.tsx:41",type:"button",onClick:()=>
1167r(c.id),"aria-pressed":n===c.id,className:`rounded-full border-2 border-black px-3 py-1 text-[11px] font-black ${n===c.id?`${c.color} shadow-memphis`:"bg-white"}`,children:c.label},c.id))}),s.jsxs("div",{"data-loc":"client/src/components/AchievementShareActions.tsx:41",className:"flex flex-wrap justify-center gap-2",children:[s.jsxs("button",{"data-loc":"client/src/components/AchievementShareActions.tsx:41",type:"button",onClick:o,disabled:t,className:"memphis-btn bg-white px-3 py-2 text-xs font-black text-black disabled:opacity-60",children:[s.jsx(Qi,{"data-loc":"client/src/components/AchievementShareActions.tsx:41",className:"ml-1 inline h-4 w-4"}),"ØªØµØ¯ÙØ± Ø§ÙØ¨Ø·Ø§ÙØ©"]}),s.jsxs("button",{"data-loc":"client/src/components/AchievementShareActions.tsx:41",type:"button",onClick:l,disabled:t,className:"memphis-btn bg-black px-3 py-2 text-xs font-black text-white disabled:opacity-60",children:[s.jsx(Lr,{"data-loc":"client/src/components/AchievementShareActions.tsx:41",className:"ml-1 inline h-4 w-4"}),"شار٠Ù
ع اÙÙØ±ÙÙ"]})]})]})}function yGe(){const{isAuthenticated:e,loading:t}=Ma(),a=J.profile.me.useQuery(void 0,{enabled:e}),n=J.badges.mine.useQuery(void 0,{enabled:e}),r=J.badges.list.useQuery(),i=J.streak.mine.useQuery(void 0,{enabled:e}),o=J.lessons.myCompletions.useQuery(void 0,{enabled:e});J.challenges.myCompletions.useQuery(void 0,{enabled:e});const[l,c]=P.useState("all"),[d,m]=P.useState("all"),[f,h]=P.useState({highContrast:!1,largeText:!1}),[x,b]=P.useState(()=>new Date(new Date().getFullYear(),new Date().getMonth(),1));if(P.useEffect(()=>{const _=()=>h(AD());return _(),window.addEventListener("focus",_),window.addEventListener("accessibility-preferences-changed",_),()=>{window.removeEventListener("focus",_),window.removeEventListener("accessibility-preferences-changed",_)}},[]),t)return s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:33",className:"min-h-screen memphis-bg flex items-center justify-center",children:s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:33",className:"memphis-card p-6 font-black",children:"جار٠تØÙ
ÙÙ Ø¥ÙØ¬Ø§Ø²Ø§ØªÙ..."})});if(!e)return s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:34",className:"min-h-screen memphis-bg flex items-center justify-center p-4",children:s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:34",className:"memphis-card max-w-sm p-7 text-center",children:[s.jsx(Al,{"data-loc":"client/src/pages/AchievementsPage.tsx:34",className:"mx-auto mb-3 h-10 w-10"}),s.jsx("h1",{"data-loc":"client/src/pages/AchievementsPage.tsx:34",className:"text-2xl font-black",children:"سجÙ٠دخÙÙÙ ÙØ±Ø¤ÙØ© Ø¥ÙØ¬Ø§Ø²Ø§ØªÙ"})]})});const y=a.data,w=n.data??[],j=new Set(w.map(_=>_.badge.id)),N=(r.data??[]).find(_=>!j.has(_.id)),k=d==="all"?null:Date.now()-Number(d)*24*60*60*1e3,D=w.filter(_=>!k||new Date(_.earnedAt).getTime()>=k),C=(r.data??[]).filter(_=>!j.has(_.id)),S=[{id:"high-contrast",label:"ÙØ§Ø±Ø¦ ÙØ§Ø¶Ø",description:"ÙØ¹ÙÙØª Ø§ÙØªØ¨Ø§ÙÙ Ø§ÙØ¹Ø§ÙÙ ÙÙØ±Ø§Ø¡Ø© أسÙÙ.",active:f.highContrast,icon:mW,color:"bg-memphis-sky"},{id:"large-text",label:"ÙØ±Ø§Ø¡Ø© Ù
Ø±ÙØØ©",description:"ÙØ¹ÙÙØª ØªÙØ¨Ùر اÙÙØµ ÙØªØ¬Ø±Ø¨Ø© Ø£ÙØ¶Ø.",active:f.largeText,icon:jW,color:"bg-memphis-mint"}],A=[{label:"اÙÙÙØ§Ø·",value:y?.totalPoints??0,icon:aa,color:"bg-memphis-yellow"},{label:"Ø§ÙØ´Ø§Ø±Ø§Øª",value:w.length,icon:Al,color:"bg-memphis-lilac"},{label:"Ø³ÙØ³ÙØ© Ø§ÙØ£ÙاÙ
",value:i.data?.currentStreak??0,icon:Eo,color:"bg-memphis-sky"},{label:"Ø§ÙØ¯Ø±Ùس",value:o.data?.length??0,icon:Ln,color:"bg-memphis-mint"}],E=x,R=new Date(E.getFullYear(),E.getMonth(),1),F=new Date(E.getFullYear(),E.getMonth()+1,0).getDate(),I=Array.from({length:R.getDay()+F},(_,V)=>V>=R.getDay()?V-R.getDay()+1:null),H=new Set(w.filter(_=>{const V=new Date(_.earnedAt);return V.getMonth()===E.getMonth()&&V.getFullYear()===E.getFullYear()}).map(_=>new Date(_.earnedAt).getDate()));return s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:60",className:"min-h-screen memphis-bg",dir:"rtl",children:[s.jsx(jn,{"data-loc":"client/src/pages/AchievementsPage.tsx:61"}),s.jsxs("main",{"data-loc":"client/src/pages/AchievementsPage.tsx:62",className:"mx-auto max-w-5xl px-4 py-6 sm:py-10",children:[s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:63",className:"mb-6 flex items-center justify-between gap-3",children:[s.jsx(jt,{"data-loc":"client/src/pages/AchievementsPage.tsx:63",href:"/dashboard",className:"memphis-btn bg-white px-3 py-2 text-xs font-black text-black",children:"Ø§ÙØ¹Ùدة ÙÙÙØØ©"}),s.jsx(by,{"data-loc":"client/src/pages/AchievementsPage.tsx:63"})]}),s.jsxs("header",{"data-loc":"client/src/pages/AchievementsPage.tsx:64",className:"memphis-card memphis-page-header bg-memphis-lilac p-6 text-center sm:p-8",children:[s.jsx(rf,{"data-loc":"client/src/pages/AchievementsPage.tsx:64",className:"mx-auto mb-3 h-9 w-9"}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:64",className:"memphis-kicker text-black/60",children:"Ù
Ø±ÙØ² Ø§ÙØ¥Ùجازات"}),s.jsx("h1",{"data-loc":"client/src/pages/AchievementsPage.tsx:64",className:"mt-1 text-3xl font-black",children:"ÙÙ ØªÙØ¯Ù
ÙØ³ØªØÙ Ø£Ù ÙÙØ±Ù"}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:64",className:"mt-2 font-bold text-black/65",children:"تابع Ø´Ø§Ø±Ø§ØªÙ ÙØ³ÙØ³ÙØªÙ ÙØ§ÙØªØ´Ù ÙØ¯ÙÙ Ø§ÙØªØ§ÙÙ."})]}),s.jsx("section",{"data-loc":"client/src/pages/AchievementsPage.tsx:65",className:"mt-6 grid grid-cols-2 gap-3 sm:grid-cols-4",children:A.map(_=>{const V=_.icon;return s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:65",className:`memphis-card ${_.color} p-4 text-center`,children:[s.jsx(V,{"data-loc":"client/src/pages/AchievementsPage.tsx:65",className:"mx-auto mb-2 h-5 w-5"}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:65",className:"memphis-number text-2xl",children:_.value}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:65",className:"mt-1 text-xs font-black text-black/65",children:_.label})]},_.label)})}),s.jsxs("section",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"memphis-card mt-6 bg-white p-5",children:[s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"mb-4 flex items-center justify-between gap-2",children:[s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"flex items-center gap-2",children:[s.jsx(ope,{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"h-5 w-5"}),s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",children:[s.jsx("h2",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"font-black",children:"تÙÙÙÙ
Ø§ÙØ´Ø§Ø±Ø§Øª"}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"text-xs font-bold text-black/60",children:E.toLocaleDateString("ar-SA",{month:"long",year:"numeric"})})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"flex gap-1",children:[s.jsx("button",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",type:"button",onClick:()=>
1167b(new Date(E.getFullYear(),E.getMonth()+1,1)),"aria-label":"Ø§ÙØ´Ùر Ø§ÙØªØ§ÙÙ",className:"rounded-lg border-2 border-black bg-white p-1.5",children:s.jsx(r2,{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"h-4 w-4"})}),s.jsx("button",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",type:"button",onClick:()=>b(new Date(E.getFullYear(),E.getMonth()-1,1)),"aria-label":"Ø§ÙØ´Ùر Ø§ÙØ³Ø§Ø¨Ù",className:"rounded-lg border-2 border-black bg-white p-1.5",children:s.jsx(s2,{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"h-4 w-4"})})]})]}),s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"grid grid-cols-7 gap-1.5 text-center text-[10px] font-black text-black/55",children:["Ø£Ø","إث","Ø«Ù","أر","Ø®Ù
","جÙ
","سب"].map(_=>s.jsx("span",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",children:_},_))}),s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"mt-2 grid grid-cols-7 gap-1.5",children:I.map((_,V)=>s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:`flex aspect-square items-center justify-center rounded-lg border-2 text-xs font-black ${_?H.has(_)?"border-black bg-memphis-yellow shadow-memphis":"border-black/20 bg-memphis-peach/25 text-black/60":"border-transparent"}`,children:_&&s.jsxs("span",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",children:[_,H.has(_)?" â¦":""]})},`${_??"blank"}-${V}`))}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:66",className:"mt-3 text-xs font-bold text-black/60",children:"Ø§ÙØ£ÙاÙ
Ø§ÙØ°ÙØ¨ÙØ© تÙ
Ø«Ù ØØµÙÙ٠عÙ٠شارة Ø¬Ø¯ÙØ¯Ø©."})]}),s.jsx("section",{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"memphis-card memphis-card--hero mt-7 bg-memphis-yellow p-5 sm:p-6",children:s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"flex flex-wrap items-center gap-4",children:[s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"rounded-xl border-2 border-black bg-white p-3",children:s.jsx(Os,{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"h-6 w-6"})}),s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"min-w-0 flex-1",children:[s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"memphis-kicker text-black/60",children:"ÙØ¯ÙÙ Ø§ÙØªØ§ÙÙ"}),s.jsx("h2",{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"mt-1 text-xl font-black",children:N?N.nameAr:"Ø£ÙØª جÙ
عت ÙÙ Ø§ÙØ´Ø§Ø±Ø§Øª اÙÙ
ØªØ§ØØ©!"}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:67",className:"mt-1 text-sm font-bold text-black/65",children:N?N.descriptionAr:"استÙ
ر ÙÙ Ø§ÙØªØØ¯Ùات ÙØªØØ§Ùظ عÙÙ Ù
ÙØ§ÙÙ ÙÙ ÙÙØØ© اÙÙ
تصدرÙÙ."})]}),s.jsx(jt,{"data-loc":"client/src/pages/AchievementsPage.tsx:67",href:"/focus",className:"memphis-btn bg-black px-4 py-3 text-xs font-black text-white",children:"ÙØ¶Ø¹ ترÙÙØ²"})]})}),s.jsxs("section",{"data-loc":"client/src/pages/AchievementsPage.tsx:68",className:"memphis-card mt-5 bg-memphis-sky p-5 text-center",children:[s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:68",className:"memphis-kicker text-black/60",children:"Ø´Ø§Ø±Ù ØªÙØ¯Ù
Ù"}),s.jsx("h2",{"data-loc":"client/src/pages/AchievementsPage.tsx:68",className:"mt-1 text-xl font-black",children:"Ø¨Ø·Ø§ÙØ© Ø¥ÙØ¬Ø§Ø²Ù Ø¬Ø§ÙØ²Ø© ÙÙÙØ±ÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:68",className:"mt-1 text-sm font-bold text-black/65",children:"ØµØ¯ÙØ±Ùا ÙØµÙرة أ٠شارÙÙØ§ Ù
باشرة Ù
Ù Ø¬ÙØ§Ø²Ù."}),s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:68",className:"mt-4",children:s.jsx(vGe,{"data-loc":"client/src/pages/AchievementsPage.tsx:68",name:y?.name??"Ù
تعÙÙ
جد ÙØ¬Ø¯",points:y?.totalPoints??0,badgeCount:w.length,streakDays:i.data?.currentStreak??0})})]}),s.jsxs("section",{"data-loc":"client/src/pages/AchievementsPage.tsx:69",className:"mt-7",children:[s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",className:"flex items-center gap-2",children:[s.jsx(Sn,{"data-loc":"client/src/pages/AchievementsPage.tsx:70",className:"h-5 w-5"}),s.jsx("h2",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",className:"text-xl font-black",children:"Ù
جÙ
ÙØ¹ØªÙ"}),s.jsx("span",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",className:"memphis-badge-pill bg-memphis-mint",children:w.length})]}),s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",className:"flex flex-wrap gap-2",children:[s.jsxs("select",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:l,onCh
1167ange:_=>c(_.target.value),className:"rounded-lg border-2 border-black bg-white px-2 py-1.5 text-xs font-black",children:[s.jsx("option",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:"all",children:"ÙÙ Ø§ÙØ£ÙÙØ§Ø¹"}),s.jsx("option",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:"earned",children:"اÙÙ
ÙØªØ³Ø¨Ø©"}),s.jsx("option",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:"upcoming",children:"اÙÙØ§Ø¯Ù
Ø©"})]}),s.jsxs("select",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:d,onChange:_=>m(_.target.value),className:"rounded-lg border-2 border-black bg-white px-2 py-1.5 text-xs font-black",children:[s.jsx("option",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:"all",children:"ÙÙ Ø§ÙØªÙØ§Ø±ÙØ®"}),s.jsx("option",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:"7",children:"آخر 7 Ø£ÙØ§Ù
"}),s.jsx("option",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:"30",children:"آخر 30 ÙÙÙ
اÙ"}),s.jsx("option",{"data-loc":"client/src/pages/AchievementsPage.tsx:70",value:"90",children:"آخر 90 ÙÙÙ
اÙ"})]})]})]}),(l==="all"||l==="earned")&&(D.length?s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:D.map(({badge:_,earnedAt:V})=>{const W=Qg[_.slug];return s.jsxs("article",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"memphis-card memphis-card--completed p-4 text-center",children:[s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"mx-auto mb-3 flex h-14 w-14 items-center justify-center rounded-2xl border-2 border-black bg-memphis-yellow",children:W?s.jsx(W,{"data-loc":"client/src/pages/AchievementsPage.tsx:71",size:29}):s.jsx("span",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"text-2xl",children:_.icon})}),s.jsx("h3",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"text-sm font-black",children:_.nameAr}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"mt-1 line-clamp-2 text-[11px] font-bold leading-4 text-black/60",children:_.descriptionAr}),s.jsx("span",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"mt-3 inline-flex rounded-full border-2 border-black bg-white px-2 py-0.5 text-[10px] font-black",children:new Date(V).toLocaleDateString("ar-SA")})]},_.id)})}):s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:71",className:"memphis-card bg-white p-5 text-center font-black",children:"ÙØ§ ØªÙØ¬Ø¯ شارات Ù
ÙØªØ³Ø¨Ø© ضÙ
٠اÙÙØªØ±Ø© اÙÙ
ØØ¯Ø¯Ø©."})),(l==="all"||l==="upcoming")&&s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:72",className:"mt-5",children:[s.jsx("h3",{"data-loc":"client/src/pages/AchievementsPage.tsx:72",className:"mb-3 text-sm font-black",children:"Ø¥ÙØ¬Ø§Ø²Ø§ØªÙ اÙÙØ§Ø¯Ù
Ø©"}),s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:72",className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:C.slice(0,8).map(_=>s.jsxs("article",{"data-loc":"client/src/pages/AchievementsPage.tsx:72",className:"memphis-card bg-white/65 p-4 text-center opacity-80",children:[s.jsx(d2,{"data-loc":"client/src/pages/AchievementsPage.tsx:72",className:"mx-auto mb-3 h-7 w-7"}),s.jsx("h4",{"data-loc":"client/src/pages/AchievementsPage.tsx:72",className:"text-sm font-black",children:_.nameAr}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:72",className:"mt-1 line-clamp-2 text-[11px] font-bold leading-4 text-black/60",children:_.descriptionAr})]},_.id))})]})]}),s.jsxs("section",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"mt-7",children:[s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"mb-3 flex items-center gap-2",children:[s.jsx(pn,{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"h-5 w-5"}),s.jsx("h2",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"text-xl font-black",children:"Ø¥ÙØ¬Ø§Ø²Ø§Øª اÙÙØ±Ø§Ø¡Ø© اÙÙ
ØªØ§ØØ©"})]}),s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:S.map(_=>{const V=_.icon;return s.jsx("article",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:`memphis-card ${_.active?_.color:"bg-white/60"} p-4 ${_.active?"":"opacity-75"}`,children:s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"flex items-center gap-3",children:[s.jsx("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"rounded-xl border-2 border-black bg-white p-2",children:s.jsx(V,{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"h-5 w-5"})}),s.jsxs("div",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",children:[s.jsx("h3",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"font-black",children:_.label}),s.jsx("p",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"mt-1 text-xs font-bold text-black/65",children:_.description})]}),s.jsx("span",{"data-loc":"client/src/pages/AchievementsPage.tsx:74",className:"mr-auto text-xs font-black",children:_.active?"Ù
ÙØªØ³Ø¨Ø© â":"ÙØ¹ÙÙ Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯"})]})},_.id)})})]})]})]})}const wGe=P.createContext({triggerXpPopup:()=>{},triggerBadgeUnlock:()=>{}}),PGe=({children:e})=>{const[t,a]=P.useState([]),n=(i,o="XP+")=>{const l=Date.now()+Math.random(),c=Math.floor(window.innerWidth/2+(Math.random()*200-100)),d=Math.floor(window.innerHeight/2+(Math.random()*100-50));a(m=>[...m,{id:l,text:`${o} ${i}`,x:c,y:d}]),setTimeout(()=>{a(m=>m.filter(f=>f.id!==l))},1200)},r=i=>{re.success(`ð Ø¥ÙØ¬Ø§Ø² Ø¬Ø¯ÙØ¯ Ù
ذÙÙ! تÙ
ÙØªØ شارة: "${i}"`,{description:"ð Ø§Ø³ØªÙ
ر ÙÙ Ø§ÙØªÙ
ÙØ² ÙØØµØ¯ اÙÙÙØ§Ø· ÙØ§ÙÙ
ستÙÙØ§Øª!",duration:4e3})};return s.jsxs(wGe.Provider,{"data-loc":"client/src/components/GamifiedFeedbackProvider.tsx:38",value:{triggerXpPopup:n,triggerBadgeUnlock:r},children:[e,s.jsx("div",{"data-loc":"client/src/components/GamifiedFeedbackProvider.tsx:41",className:"fixed inset-0 pointer-events-none z-50 overflow-hidden",children:t.map(i=>s.jsxs("div",{"data-loc":"client/src/components/GamifiedFeedbackProvider.tsx:43",className:"absolute animate-xp-float bg-memphis-yellow border-2 border-black text-black font-black px-3 py-1 rounded-full shadow-memphis text-xs flex items-center gap-1",style:{left:i.x,top:i.y},children:[s.jsx("span",{"data-loc":"client/src/components/GamifiedFeedbackProvider.tsx:48",children:"â¨"}),s.jsx("span",{"data-loc":"client/src/components/GamifiedFeedbackProvider.tsx:49",children:i.text})]},i.id))})]})};function jGe(){const{token:e}=Ol(),{data:t,isLoading:a,error:n}=J.game.getSharedResults.useQuery({token:e??""},{enabled:!!e});if(a)return s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:18",className:"min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex items-center justify-center",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:19",className:"text-center text-white",children:[s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:20",className:"text-6xl mb-4 animate-spin",children:"â³"}),s.jsx("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:21",className:"text-xl text-purple-200",children:"جار٠تØÙ
Ù٠اÙÙØªØ§Ø¦Ø¬..."})]})});if(n||!t)return s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:29",className:"min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900 flex items-center justify-center",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:30",className:"text-center text-white max-w-md",children:[s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:31",className:"text-6xl mb-4",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/SharedResultsPage.tsx:32",className:"text-2xl font-bold mb-2",children:"Ø§ÙØ±Ø§Ø¨Ø· ØºÙØ± ØµØ§ÙØ"}),s.jsx("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:33",className:"text-purple-200",children:"ÙØ°Ø§ Ø§ÙØ±Ø§Ø¨Ø· Ù
ÙØªÙÙ Ø§ÙØµÙاØÙØ© Ø£Ù ØºÙØ± Ù
ÙØ¬Ùد."}),s.jsx("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:34",className:"text-purple-300 text-sm mt-2",children:"ØªÙØªÙÙ ØµÙØ§ØÙØ© Ø±ÙØ§Ø¨Ø· اÙÙ
Ø´Ø§Ø±ÙØ© بعد 7 Ø£ÙØ§Ù
Ù
Ù Ø¥ÙØ´Ø§Ø¦Ùا."})]})});const{session:r,participants:i,questionStats:o,hardestQuestions:l,overallStats:c}=t;return s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:43",className:"min-h-screen bg-gradient-to-br from-violet-900 via-purple-900 to-indigo-900",dir:"rtl",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:45",className:"text-center text-white pt-10 pb-6 px-4",children:[s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:46",className:"text-5xl mb-3",children:"ð"}),s.jsx("h1",{"data-loc":"client/src/pages/SharedResultsPage.tsx:47",className:"text-3xl font-bold mb-1",children:r.title}),s.jsx("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:48",className:"text-purple-300 text-sm",children:"ÙØªØ§Ø¦Ø¬ اÙÙ
Ø³Ø§Ø¨ÙØ©"}),r.finishedAt&&s.jsx("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:50",className:"text-purple-400 text-xs mt-1",children:new Date(r.finishedAt).toLocaleDateString("ar-SA",{year:"numeric",month:"long",day:"numeric"})})]}),s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:57",className:"max-w-2xl mx-auto px-4 mb-6",children:s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:58",className:"grid grid-cols-3 gap-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:59",className:"bg-white/10 backdrop-blur rounded-xl p-3 text-center text-white",children:[s.jsx(ln,{"data-loc":"client/src/pages/SharedResultsPage.tsx:60",size:18,className:"mx-auto mb-1 text-purple-300"}),s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:61",className:"text-2xl font-bold text-yellow-400",children:c.totalParticipants}),s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:62",className:"text-xs text-white/60",children:"Ù
شارÙ"})]}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:64",className:"bg-white/10 backdrop-blur rounded-xl p-3 text-center text-white",children:[s.jsx(bn,{"data-loc":"client/src/pages/SharedResultsPage.tsx:65",size:18,className:"mx-auto mb-1 text-green-300"}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:66",className:"text-2xl font-bold text-green-400",children:[c.overallCorrectPct,"%"]}),s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:67",className:"text-xs text-white/60",children:"Ù
Ø¹Ø¯Ù Ø§ÙØµØØ©"})]}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:69",className:"bg-white/10 backdrop-blur rounded-xl p-3 text-center text-white",children:[s.jsx(xi,{"data-loc":"client/src/pages/SharedResultsPage.tsx:70",size:18,className:"mx-auto mb-1 text-cyan-300"}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:71",className:"text-2xl font-bold text-cyan-400",children:[(c.avgRe
1167sponseMs/1e3).toFixed(1),"Ø«"]}),s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:72",className:"text-xs text-white/60",children:"Ù
ØªÙØ³Ø· اÙÙÙØª"})]})]})}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:78",className:"max-w-2xl mx-auto px-4 pb-12",children:[s.jsxs(bw,{"data-loc":"client/src/pages/SharedResultsPage.tsx:79",defaultValue:"leaderboard",className:"w-full",children:[s.jsxs(vw,{"data-loc":"client/src/pages/SharedResultsPage.tsx:80",className:"w-full bg-white/10 mb-4",children:[s.jsxs(ms,{"data-loc":"client/src/pages/SharedResultsPage.tsx:81",value:"leaderboard",className:"flex-1 text-white data-[state=active]:bg-yellow-500 data-[state=active]:text-black",children:[s.jsx(aa,{"data-loc":"client/src/pages/SharedResultsPage.tsx:82",size:14,className:"ml-1"})," اÙÙÙØ§Ø·"]}),s.jsxs(ms,{"data-loc":"client/src/pages/SharedResultsPage.tsx:84",value:"stats",className:"flex-1 text-white data-[state=active]:bg-purple-500 data-[state=active]:text-white",children:[s.jsx(pl,{"data-loc":"client/src/pages/SharedResultsPage.tsx:85",size:14,className:"ml-1"})," Ø§ÙØ¥ØØµØ§Ø¦Ùات"]})]}),s.jsx(fs,{"data-loc":"client/src/pages/SharedResultsPage.tsx:90",value:"leaderboard",children:s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:91",className:"bg-white/10 backdrop-blur rounded-2xl p-4 space-y-3",children:i.length>0?i.map((d,m)=>s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:93",className:`flex items-center gap-3 p-3 rounded-xl ${m===0?"bg-yellow-500/20 border border-yellow-500/50":m===1?"bg-gray-400/15 border border-gray-400/30":m===2?"bg-amber-600/15 border border-amber-600/30":"bg-white/5"}`,children:[s.jsx("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:94",className:"text-2xl w-8 text-center",children:m===0?"ð¥":m===1?"ð¥":m===2?"ð¥":`${m+1}`}),s.jsx("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:95",className:"flex-1 text-white font-semibold",children:d.displayName}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:96",className:"text-right",children:[s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:97",className:"text-yellow-400 font-bold",children:d.totalPoints.toLocaleString()}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:98",className:"text-xs text-white/50",children:["اÙÙ
رتبة ",m+1]})]})]},d.id)):s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:102",className:"text-center py-8 text-purple-300",children:"ÙØ§ ØªÙØ¬Ø¯ ÙØªØ§Ø¦Ø¬"})})}),s.jsx(fs,{"data-loc":"client/src/pages/SharedResultsPage.tsx:108",value:"stats",children:s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:109",className:"space-y-4",children:[l.length>0&&s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:112",className:"bg-red-900/30 border border-red-500/30 rounded-xl p-4 text-right text-white",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:113",className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:114",className:"text-red-400 text-lg",children:"ð¥"}),s.jsx("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:115",className:"text-red-300 font-bold text-sm",children:"أصعب سؤاÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:116",className:"mr-auto text-red-400 text-xs font-bold",children:[l[0].correctPct,"% Ø£Ø¬Ø§Ø¨ÙØ§ صØ"]})]}),s.jsx("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:118",className:"text-white font-semibold text-sm leading-relaxed",children:l[0].questionText}),s.jsxs("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:119",className:"text-green-300 text-xs mt-1",children:["â ",l[0].correctAnswer]})]}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:123",className:"bg-white/10 backdrop-blur rounded-xl p-4 text-white",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:124",className:"flex items-center gap-2 mb-3",children:[s.jsx(pl,{"data-loc":"client/src/pages/SharedResultsPage.tsx:125",size:16,className:"text-purple-300"}),s.jsx("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:126",className:"text-purple-200 font-bold text-sm",children:"Ù
Ø¹Ø¯Ù Ø§ÙØ¥Ø¬Ø§Ø¨Ø§Øª Ø§ÙØµØÙØØ©"})]}),s.jsx("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:128",className:"space-y-3 max-h-72 overflow-y-auto",children:o.sort((d,m)=>d.orderIndex-m.orderIndex).map((d,m)=>s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:130",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:131",className:"flex items-center justify-between mb-1",children:[s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:132",className:"flex items-center gap-1",children:[s.jsx(Ga,{"data-loc":"client/src/pages/SharedResultsPage.tsx:133",variant:"outline",className:`text-xs px-1.5 py-0 border-0 ${d.difficulty==="hard"?"bg-red-500/30 text-red-300":d.difficulty==="medium"?"bg-yellow-500/30 text-yellow-300":"bg-green-500/30 text-green-300"}`,children:d.difficulty==="hard"?"صعب":d.difficulty==="medium"?"Ù
ØªÙØ³Ø·":"سÙÙ"}),s.jsxs("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:136",className:"text-white/40 text-xs",children:[d.correctAnswers,"/",d.totalAnswers]})]}),s.jsxs("span",{"data-loc":"client/src/pages/SharedResultsPage.tsx:138",className:"text-white text-xs truncate max-w-[55%]",children:["س",m+1,": ",d.questionText.slice(0,35),d.questionText.length>35?"...":""]})]}),s.jsx(k1,{"data-loc":"client/src/pages/SharedResultsPage.tsx:140",value:d.correctPct,className:"h-2"}),s.jsxs("div",{"data-loc":"client/src/pages/SharedResultsPage.tsx:141",className:"text-left text-xs text-white/40 mt-0.5",children:[d.correctPct,"%"]})]},d.questionId))})]})]})})]}),s.jsx("p",{"data-loc":"client/src/pages/SharedResultsPage.tsx:150",className:"text-center text-purple-400 text-xs mt-6",children:"ÙØ°Ø§ Ø§ÙØ±Ø§Ø¨Ø· ØµØ§ÙØ ÙÙ
دة 7 Ø£ÙØ§Ù
Ù
Ù ØªØ§Ø±ÙØ® Ø¥ÙØ´Ø§Ø¦Ù"})]})]})}const F5=8,kGe={general:"عاÙ
",ai:"Ø§ÙØ°Ùاء Ø§ÙØ§ØµØ·ÙاعÙ",health:"Ø§ÙØµØØ©",work:"Ø¨ÙØ¦Ø© Ø§ÙØ¹Ù
Ù",selfdev:"تطÙÙØ± Ø§ÙØ°Ø§Øª",habit:"عادة",mindset:"عÙÙÙØ©",social:"اجتÙ
اعÙ",focu
1167s:"ترÙÙØ²"};function NGe(e){return{totalSkips:e.length,affectedUsers:new Set(e.map(t=>t.userId)).size,affectedTasks:new Set(e.map(t=>t.taskId)).size}}function hV(e){return Array.isArray(e)?e.map(t=>String(t)).join(" ⢠"):typeof e=="string"?e:e&&typeof e=="object"?JSON.stringify(e):""}function Id(e,t,a,n,r={category:"all",status:"all"},i={}){const o=t.trim().toLocaleLowerCase("ar"),l=(e??[]).filter(m=>{const f=!o||n(m).toLocaleLowerCase("ar").includes(o),h=i.getCategory?.(m),x=r.category==="all"||!i.getCategory||String(h)===r.category,b=i.getStatus?.(m),y=r.status==="all"||b===void 0||b===null||(r.status==="active"?b:!b);return f&&x&&y}),c=Math.max(1,Math.ceil(l.length/F5)),d=Math.min(Math.max(1,a),c);return{items:l.slice((d-1)*F5,d*F5),totalItems:(e??[]).length,filteredItems:l.length,totalPages:c,page:d}}function AGe({query:e,setQuery:t,page:a,setPage:n,result:r,filters:i,setFilters:o,categoryOptions:l,showStatusFilter:c}){return s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:94",className:"sticky top-2 z-10 rounded-xl border border-purple-500/60 bg-purple-950/95 p-3 shadow-lg backdrop-blur sm:p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:95",className:"flex flex-col gap-3 xl:flex-row xl:items-center xl:justify-between",children:[s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboard.tsx:96",value:e,onChange:d=>{t(d.target.value),n(1)},placeholder:"Ø§Ø¨ØØ« ÙÙ ÙØ°Ù اÙÙØ§Ø¦Ù
Ø©...",className:"min-h-11 bg-white text-black xl:max-w-md","aria-label":"Ø§ÙØ¨ØØ« ÙÙ ÙØ§Ø¦Ù
Ø© Ø§ÙØ¥Ø¯Ø§Ø±Ø©"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:103",className:"grid grid-cols-1 gap-2 sm:grid-cols-2 xl:flex xl:items-center",children:[l.length>0&&s.jsxs(Ss,{"data-loc":"client/src/pages/AdminDashboard.tsx:105",value:i.category,onValueChange:d=>{o({...i,category:d}),n(1)},children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminDashboard.tsx:109",className:"min-h-11 bg-white text-black sm:min-w-48","aria-label":"تصÙÙØ© ØØ³Ø¨ Ø§ÙØªØµÙÙÙ",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminDashboard.tsx:110",placeholder:"ÙÙ Ø§ÙØªØµÙÙÙØ§Øª"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/AdminDashboard.tsx:112",children:[s.jsx(Kt,{"data-loc":"client/src/pages/AdminDashboard.tsx:113",value:"all",children:"ÙÙ Ø§ÙØªØµÙÙÙØ§Øª"}),l.map(d=>s.jsx(Kt,{"data-loc":"client/src/pages/AdminDashboard.tsx:114",value:d.value,children:d.label},d.value))]})]}),c&&s.jsxs(Ss,{"data-loc":"client/src/pages/AdminDashboard.tsx:119",value:i.status,onValueChange:d=>{o({...i,status:d}),n(1)},children:[s.jsx(Ts,{"data-loc":"client/src/pages/AdminDashboard.tsx:123",className:"min-h-11 bg-white text-black sm:min-w-40","aria-label":"تصÙÙØ© ØØ³Ø¨ Ø§ÙØØ§ÙØ©",children:s.jsx(Cs,{"data-loc":"client/src/pages/AdminDashboard.tsx:124",placeholder:"ÙÙ Ø§ÙØØ§ÙØ§Øª"})}),s.jsxs(Ds,{"data-loc":"client/src/pages/AdminDashboard.tsx:126",children:[s.jsx(Kt,{"data-loc":"client/src/pages/AdminDashboard.tsx:127",value:"all",children:"ÙÙ Ø§ÙØØ§ÙØ§Øª"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminDashboard.tsx:128",value:"active",children:"ÙØ´Ø·"}),s.jsx(Kt,{"data-loc":"client/src/pages/AdminDashboard.tsx:129",value:"inactive",children:"ØºÙØ± ÙØ´Ø·"})]})]})]}),s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:134",className:"text-sm text-purple-100","aria-live":"polite",children:["عرض ",r.filteredItems," Ù
Ù ",r.totalItems," Ø¹ÙØµØ±"]})]}),r.totalPages>1&&s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:139",className:"mt-3 flex flex-wrap items-center justify-between gap-2 border-t border-purple-700 pt-3",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:140",variant:"outline",size:"sm",disabled:a<=1,onClick:()=>n(a-1),className:"min-h-10 border-purple-300 bg-white text-purple-950 hover:bg-purple-100",children:"Ø§ÙØ³Ø§Ø¨Ù"}),s.jsxs("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:143",className:"text-sm font-bold text-white",children:["ØµÙØØ© ",a," Ù
Ù ",r.totalPages]}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:144",variant:"outline",size:"sm",disabled:a>=r.totalPages,onClick:()=>n(a+1),className:"min-h-10 border-purple-300 bg-white text-purple-950 hover:bg-purple-100",children:"Ø§ÙØªØ§ÙÙ"})]})]})}function B5(e){return typeof e=="string"?e:JSON.stringify(e??[])}function SGe(){const[e,t]=P.useState(null),[a,n]=P.useState({}),[r,i]=P.useState("lessons"),[o,l]=P.useState(""),[c,d]=P.useState(1),[m,f]=P.useState({category:"all",status:"all"}),h=J.categories.list.useQuery(),x=J.adminPanel.lessons.list.useQuery(),b=J.adminPanel.lessons.update.useMutation(),y=J.adminPanel.lessons.delete.useMutation(),w=J.adminPanel.quizQuestions.list.useQuery(),j=J.adminPanel.quizQuestions.update.useMutation(),N=J.adminPanel.quizQuestions.delete.useMutation(),k=J.adminPanel.weeklyPuzzles.list.useQuery(),D=J.adminPanel.weeklyPuzzles.update.useMutation(),C=J.adminPanel.weeklyPuzzles.delete.useMutation(),S=J.adminPanel.challenges.list.useQuery(),A=J.adminPanel.challenges.update.useMutation(),E=J.adminPanel.challenges.delete.useMutation(),R=J.adminPanel.badges.list.useQuery(),F=J.adminPanel.badges.update.useMutation(),I=J.adminPanel.badges.delete.useMutation(),H=J.adminPanel.prizes.list.useQuery(),_=J.adminPanel.prizes.update.useMutation(),V=J.adminPanel.prizes.delete.useMutation(),W=J.adminPanel.thirtyDaySkips.list.useQuery(),B=J.adminPanel.thirtyDaySkips.reactivate.useMutation({onSuccess:()=>{re.success("تÙ
ت إعادة ØªÙØ¹Ù٠اÙÙ
ÙÙ
Ø© ÙÙÙ
ستخدÙ
Ø¨ÙØ¬Ø§Ø"),W.refetch()},onError:L=>re.error(L.message||"تعذر إعادة ØªÙØ¹Ù٠اÙÙ
ÙÙ
Ø©")}),K=Id(x.data,o,c,L=>`${L.titleAr??""} ${L.contentAr??""}`,m,{getCategory:L=>L.categoryId,getStatus:L=>L.isActive}),ae=Id(w.data,o,c,L=>`${L.questionAr??""} ${hV(L.options)}`,m,{getCategory:L=>L.categoryId,getStatus:L=>L.lessonIsActive}),$=Id(k.data,o,c,L=>`${L.titleAr??""} ${L.questionAr??""}`,m,{getCategory:L=>L.category,getStatus:L=>L.isActive}),Z=Id(S.data,o,c,L=>`${L.titleAr??""} ${L.descriptionAr??""}`,m,{getCategory:L=>L.categoryId,getStatus:L=>L.isActive}),O=Id(R.data,o,c,L=>`${L.nameAr??""} ${L.descriptionAr??""}`,m),Y=Id(H.data,o,c,L=>`${L.nameAr??""} ${L.descriptionAr??""}`,m,{getStatus:L=>L.isActive}),Q=Id(W.data,o,c,L=>`${L.titleAr??""} ${L.reason??""} ${L.userName??""} ${L.userEmail??""}`,m,{getCategory:L=>L.category}),U={lessons:K,questions:ae,puzzles:$,challenges:Z,badges:O,prizes:Y,skips:Q}[r]??K,oe={lessons:x.data,questions:w.data,puzzles:k.data,challenges:S.data,badges:R.data,prizes:H.data,skips:W.data}[r]??[],X={lessons:L=>L.categoryId,questions:L=>L.categoryId,puzzles:L=>L.category,challenges:L=>L.categoryId,skips:L=>L.category}[r],ne={lessons:L=>L.isActive,questions:L=>L.lessonIsActive,puzzles:L=>L.isActive,challenges:L=>L.isActive,prizes:L=>L.isActive}[r],ge=Array.from(new Set((oe??[]).map(L=>X?.(L)).filter(L=>L!=null))).map(L=>{const ke=String(L),Me=(h.data??[]).find(Ze=>String(Ze.id)===ke);return{value:ke,label:Me?.nameAr??kGe[ke]??`تصÙÙÙ ${ke}`}}),me=NGe(W.data??[]),Ae=async(L,ke,Me)=>{try{switch(L){case"lesson":await b.mutateAsync({id:ke,...Me}),x.refetch();break;case"question":await j.mutateAsync({id:ke,...Me,options:B5(Me.options)}),w.refetch();break;case"puzzle":await D.mutateAsync({id:ke,...Me}),k.refetch();break;case"challenge":await A.mutateAsync({id:ke,...Me}),S.refetch();break;case"badge":await F.mutateAsync({id:ke,...Me}),R.refetch();break;case"prize":await _.mutateAsync({id:ke,...Me}),H.refetch();break}t(null),n({}),re.success("تÙ
Ø§ÙØªØØ¯ÙØ« Ø¨ÙØ¬Ø§Ø")}catch{re.error("ÙØ´Ù Ø§ÙØªØØ¯ÙØ«")}},Pe=async(L,ke)=>{try{switch(L){case"lesson":await y.mutateAsync(ke),x.refetch();break;case"question":await N.mutateAsync(ke),w.refetch();break;case"puzzle":await C.mutateAsync(ke),k.refetch();break;case"challenge":await E.mutateAsync(ke),S.refetch();break;case"badge":await I.mutateAsync(ke),R.refetch();break;case"prize":await V.mutateAsync(ke),H.refetch();break}re.success("تÙ
Ø§ÙØØ°Ù Ø¨ÙØ¬Ø§Ø")}catch{re.error("ÙØ´Ù Ø§ÙØØ°Ù")}};return s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:314",className:"min-h-screen overflow-x-hidden bg-gradient-to-b from-purple-900 to-purple-950 p-3 sm:p-6",dir:"rtl",children:s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:315",className:"max-w-7xl min-w-0 mx-auto",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:316",className:"mb-5 flex items-center justify-between gap-3 sm:mb-8",children:[s.jsx("h1",{"data-loc":"client/src/pages/AdminDashboard.tsx:317",className:"text-2xl font-bold text-white sm:text-4xl",children:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø© Ø§ÙØ´Ø§Ù
ÙØ©"}),s.jsx(xte,{"data-loc":"client/src/pages/AdminDashboard.tsx:318"}),s.jsx(db,{"data-loc":"client/src/pages/AdminDashboard.tsx:319",activePath:"/admin/dashboard",items:[{label:"ÙÙØØ© ØÙ
ÙØ© Ø§ÙØªØ´ÙÙÙ",path:"/admin/teaser",icon:ln},{label:"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©",path:"/admin/dashboard",icon:l2},{label:"إدارة Ø§ÙØ£Ùغاز",path:"/admin/puzzles",icon:Lg},{label:"إدارة اÙÙ
ØØªÙÙ",path:"/admin/content",icon:Zi}]})]}),s.jsxs(bw,{"data-loc":"client/src/pages/AdminDashboard.tsx:325",defaultValue:"lessons",onValueChange:L=>{i(L),l(""),f({category:"all",status:"all"}),d(1)},className:"w-full",children:[s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:326",className:"w-full pb-2",children:s.jsxs(vw,{"data-loc":"client/src/pages/AdminDashboard.tsx:327",className:"grid h-auto w-full grid-cols-2 gap-1 bg-purple-800 p-1 sm:grid-cols-7",children:[s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboard.tsx:328",value:"lessons",children:"Ø§ÙØ¯Ø±Ùس"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboard.tsx:329",value:"questions",children:"Ø§ÙØ£Ø³Ø¦ÙØ©"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboard.tsx:330",value:"puzzles",children:"Ø§ÙØ£Ùغاز"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboard.tsx:331",value:"challenges",children:"Ø§ÙØªØØ¯Ùات"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboard.tsx:332",value:"badges",children:"Ø§ÙØ´Ø§Ø±Ø§Øª"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboard.tsx:333",value:"prizes",children:"Ø§ÙØ¬Ùائز"}),s.jsx(ms,{"data-loc":"client/src/pages/AdminDashboard.tsx:334",value:"skips",children:"ØªÙØ±Ùر Ø§ÙØªØ®Ø·Ù"})]})}),s.jsx(AGe,{"data-loc":"client/src/pages/AdminDashboard.tsx:338",query:o,setQuery:l,page:U.page,setPage:d,result:U,filters:m,setFilters:f,categoryOptions:ge,showStatusFilter:!!ne}),s.jsx(fs,{"data-loc":"client/src/pages/AdminDashboard.tsx:351",value:"lessons",className:"space-y-4",children:x.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:353",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboard.tsx:353",className:"animate-spin"})}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:355",className:"space-y-4",children:K.items.map(L=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:357",className:"bg-purple-800 border-purple-700",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboard.tsx:358",children:s.jsxs(sn,{"data-loc":"client/src/pages/AdminDashboard.tsx:359",className:"text-white flex justify-between items-center",children:[s.jsx("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:360",children:L.titleAr}),s.jsxs("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:361",className:"text-sm font-normal text-purple-300",children:[L.questionCount," Ø£Ø³Ø¦ÙØ©"]})]})}),s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:364",className:"space-y-4",children:e===L.id?s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:366",className:"space-y-3",children:[s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboard.tsx:367",placeholder:"Ø§ÙØ¹ÙÙØ§Ù",value:a.titleAr||L.titleAr,onChange:ke=>n({...a,titleAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboard.tsx:373",placeholder:"اÙÙ
ØØªÙÙ",value:a.contentAr||L.contentAr,onChange:ke=>n({...a,contentAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:4}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:380",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:381",onClick:()=>Ae("lesson",L.id,{titleAr:a.titleAr,contentAr:a.contentAr}),className:"bg-green-600 hover:bg-green-700",children:"ØÙظ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:387",onClick:()=>t(null),variant:"outline",className:"border-purple-600 text-white",children:"Ø¥ÙØºØ§Ø¡"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:397",className:"space-y-2 text-purple-100",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:398",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:398",children:"اÙÙ
ØØªÙÙ:"})," ",L.contentAr?.substring(0,100),"..."]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:399",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:400",onClick:()=>{t(L.id),n(L)},size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[s.jsx(Fd,{"data-loc":"client/src/pages/AdminDashboard.tsx:408",className:"w-4 h-4 mr-2"}),"تعدÙÙ"]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboard.tsx:411",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboard.tsx:412",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:413",size:"sm",variant:"destructive",children:[s.jsx(ur,{"data-loc":"client/src/pages/AdminDashboard.tsx:414",className:"w-4 h-4 mr-2"}),"ØØ°Ù"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboard.tsx:418",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboard.tsx:419",children:"تأÙÙØ¯ Ø§ÙØØ°Ù"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboard.tsx:420",children:"ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ø§ Ø§ÙØ¯Ø±Ø³ ÙØ¬Ù
ÙØ¹ Ø£Ø³Ø¦ÙØªÙØ"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:423",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboard.tsx:424",onClick:()=>Pe("lesson",L.id),children:"ØØ°Ù"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboard.tsx:427",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]})})]},L.id))})}),s.jsx(fs,{"data-loc":"client/src/pages/AdminDashboard.tsx:442",value:"questions",className:"space-y-4",children:w.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:444",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboard.tsx:444",className:"animate-spin"})}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:446",className:"space-y-4",children:ae.items.map(L=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:448",className:"bg-purple-800 border-purple-700",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboard.tsx:449",children:s.jsx(sn,{"data-loc":"client/src/pages/AdminDashboard.tsx:450",className:"text-white text-base",children:L.questionAr})}),s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:452",className:"space-y-4",children:e===L.id?s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:454",className:"space-y-3",children:[s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboard.tsx:455",placeholder:"Ø§ÙØ³Ø¤Ø§Ù",value:a.questionAr||L.questionAr,onChange:ke=>n({...a,questionAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:2}),s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboard.tsx:462",placeholder:"Ø§ÙØ®Ùارات (JSON)",value:a.options!==void 0?B5(a.options):B5(L.options),onChange:ke=>n({...a,options:ke.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:3}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:469",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:470",onClick:()=>Ae("question",L.id,a),className:"bg-green-600 hover:bg-green-700",children:"ØÙظ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:476",onClick:()=>t(null),variant:"outline",className:"border-purple-600 text-white",children:"Ø¥ÙØºØ§Ø¡"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:486",className:"space-y-2 text-purple-100",children:[s.jsxs("p",{"data-l
1167oc":"client/src/pages/AdminDashboard.tsx:487",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:487",children:"Ø§ÙØ®Ùارات:"})," ",hV(L.options).substring(0,100)||"ÙØ§ ØªÙØ¬Ø¯ Ø®ÙØ§Ø±Ø§Øª"]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:488",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:489",onClick:()=>{t(L.id),n(L)},size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[s.jsx(Fd,{"data-loc":"client/src/pages/AdminDashboard.tsx:497",className:"w-4 h-4 mr-2"}),"تعدÙÙ"]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboard.tsx:500",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboard.tsx:501",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:502",size:"sm",variant:"destructive",children:[s.jsx(ur,{"data-loc":"client/src/pages/AdminDashboard.tsx:503",className:"w-4 h-4 mr-2"}),"ØØ°Ù"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboard.tsx:507",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboard.tsx:508",children:"تأÙÙØ¯ Ø§ÙØØ°Ù"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboard.tsx:509",children:"ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ø§ Ø§ÙØ³Ø¤Ø§ÙØ"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:512",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboard.tsx:513",onClick:()=>Pe("question",L.id),children:"ØØ°Ù"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboard.tsx:516",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]})})]},L.id))})}),s.jsx(fs,{"data-loc":"client/src/pages/AdminDashboard.tsx:531",value:"puzzles",className:"space-y-4",children:k.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:533",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboard.tsx:533",className:"animate-spin"})}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:535",className:"space-y-4",children:$.items.map(L=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:537",className:"bg-purple-800 border-purple-700",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboard.tsx:538",children:s.jsx(sn,{"data-loc":"client/src/pages/AdminDashboard.tsx:539",className:"text-white text-base",children:L.titleAr})}),s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:541",className:"space-y-4",children:e===L.id?s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:543",className:"space-y-3",children:[s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboard.tsx:544",placeholder:"Ø§ÙØ¹ÙÙØ§Ù",value:a.titleAr||L.titleAr,onChange:ke=>n({...a,titleAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboard.tsx:550",placeholder:"Ø§ÙØ³Ø¤Ø§Ù",value:a.questionAr||L.questionAr,onChange:ke=>n({...a,questionAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:2}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:557",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:558",onClick:()=>Ae("puzzle",L.id,a),className:"bg-green-600 hover:bg-green-700",children:"ØÙظ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:564",onClick:()=>t(null),variant:"outline",className:"border-purple-600 text-white",children:"Ø¥ÙØºØ§Ø¡"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:574",className:"space-y-2 text-purple-100",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:575",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:575",children:"Ø§ÙØ³Ø¤Ø§Ù:"})," ",L.questionAr?.substring(0,100),"..."]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:576",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:577",onClick:()=>{t(L.id),n(L)},size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[s.jsx(Fd,{"data-loc":"client/src/pages/AdminDashboard.tsx:585",className:"w-4 h-4 mr-2"}),"تعدÙÙ"]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboard.tsx:588",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboard.tsx:589",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:590",size:"sm",variant:"destructive",children:[s.jsx(ur,{"data-loc":"client/src/pages/AdminDashboard.tsx:591",className:"w-4 h-4 mr-2"}),"ØØ°Ù"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboard.tsx:595",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboard.tsx:596",children:"تأÙÙØ¯ Ø§ÙØØ°Ù"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboard.tsx:597",children:"ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ø§ اÙÙØºØ²Ø"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:600",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboard.tsx:601",onClick:()=>Pe("puzzle",L.id),children:"ØØ°Ù"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboard.tsx:604",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]})})]},L.id))})}),s.jsx(fs,{"data-loc":"client/src/pages/AdminDashboard.tsx:619",value:"challenges",className:"space-y-4",children:S.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:621",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboard.tsx:621",className:"animate-spin"})}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:623",className:"space-y-4",children:Z.items.map(L=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:625",className:"bg-purple-800 border-purple-700",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboard.tsx:626",children:s.jsx(sn,{"data-loc":"client/src/pages/AdminDashboard.tsx:627",className:"text-white text-base",children:L.titleAr})}),s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:629",className:"space-y-4",children:e===L.id?s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:631",className:"space-y-3",children:[s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboard.tsx:632",placeholder:"Ø§ÙØ¹ÙÙØ§Ù",value:a.titleAr||L.titleAr,onChange:ke=>n({...a,titleAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboard.tsx:638",placeholder:"اÙÙØµÙ",value:a.descriptionAr||L.descriptionAr,onChange:ke=>n({...a,descriptionAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:3}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:645",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:646",onClick:()=>Ae("challenge",L.id,a),className:"bg-green-600 hover:bg-green-700",children:"ØÙظ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:652",onClick:()=>t(null),variant:"outline",className:"border-purple-600 text-white",children:"Ø¥ÙØºØ§Ø¡"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:662",className:"space-y-2 text-purple-100",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:663",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:663",children:"اÙÙØµÙ:"})," ",L.descriptionAr?.substring(0,100),"..."]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:664",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:665",onClick:()=>{t(L.id),n(L)},size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[s.jsx(Fd,{"data-loc":"client/src/pages/AdminDashboard.tsx:673",className:"w-4 h-4 mr-2"}),"تعدÙÙ"]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboard.tsx:676",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboard.tsx:677",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:678",size:"sm",variant:"destructive",children:[s.jsx(ur,{"data-loc":"client/src/pages/AdminDashboard.tsx:679",className:"w-4 h-4 mr-2"}),"ØØ°Ù"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboard.tsx:683",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboard.tsx:684",children:"تأÙÙØ¯ Ø§ÙØØ°Ù"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboard.tsx:685",children:"ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ø§ Ø§ÙØªØØ¯ÙØ"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:688",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboard.tsx:689",onClick:()=>Pe("challenge",L.id),children:"ØØ°Ù"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboard.tsx:692",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]})})]},L.id))})}),s.jsx(fs,{"data-loc":"client/src/pages/AdminDashboard.tsx:707",value:"badges",className:"space-y-4",children:R.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:709",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboard.tsx:709",className:"animate-spin"})}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:711",className:"space-y-4",children:O.items.map(L=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:713",className:"bg-purple-800 border-purple-700",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboard.tsx:714",children:s.jsx(sn,{"data-loc":"client/src/pages/AdminDashboard.tsx:715",className:"text-white text-base",children:L.nameAr})}
1167),s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:717",className:"space-y-4",children:e===L.id?s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:719",className:"space-y-3",children:[s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboard.tsx:720",placeholder:"Ø§ÙØ§Ø³Ù
",value:a.nameAr||L.nameAr,onChange:ke=>n({...a,nameAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboard.tsx:726",placeholder:"اÙÙØµÙ",value:a.descriptionAr||L.descriptionAr,onChange:ke=>n({...a,descriptionAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:2}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:733",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:734",onClick:()=>Ae("badge",L.id,a),className:"bg-green-600 hover:bg-green-700",children:"ØÙظ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:740",onClick:()=>t(null),variant:"outline",className:"border-purple-600 text-white",children:"Ø¥ÙØºØ§Ø¡"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:750",className:"space-y-2 text-purple-100",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:751",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:751",children:"اÙÙØµÙ:"})," ",L.descriptionAr?.substring(0,100),"..."]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:752",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:753",onClick:()=>{t(L.id),n(L)},size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[s.jsx(Fd,{"data-loc":"client/src/pages/AdminDashboard.tsx:761",className:"w-4 h-4 mr-2"}),"تعدÙÙ"]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboard.tsx:764",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboard.tsx:765",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:766",size:"sm",variant:"destructive",children:[s.jsx(ur,{"data-loc":"client/src/pages/AdminDashboard.tsx:767",className:"w-4 h-4 mr-2"}),"ØØ°Ù"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboard.tsx:771",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboard.tsx:772",children:"تأÙÙØ¯ Ø§ÙØØ°Ù"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboard.tsx:773",children:"ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ù Ø§ÙØ´Ø§Ø±Ø©Ø"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:776",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboard.tsx:777",onClick:()=>Pe("badge",L.id),children:"ØØ°Ù"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboard.tsx:780",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]})})]},L.id))})}),s.jsx(fs,{"data-loc":"client/src/pages/AdminDashboard.tsx:795",value:"prizes",className:"space-y-4",children:H.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:797",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboard.tsx:797",className:"animate-spin"})}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:799",className:"space-y-4",children:Y.items.map(L=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:801",className:"bg-purple-800 border-purple-700",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboard.tsx:802",children:s.jsx(sn,{"data-loc":"client/src/pages/AdminDashboard.tsx:803",className:"text-white text-base",children:L.nameAr})}),s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:805",className:"space-y-4",children:e===L.id?s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:807",className:"space-y-3",children:[s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboard.tsx:808",placeholder:"Ø§ÙØ§Ø³Ù
",value:a.nameAr||L.nameAr,onChange:ke=>n({...a,nameAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600"}),s.jsx(Es,{"data-loc":"client/src/pages/AdminDashboard.tsx:814",placeholder:"اÙÙØµÙ",value:a.descriptionAr||L.descriptionAr,onChange:ke=>n({...a,descriptionAr:ke.target.value}),className:"bg-purple-700 text-white border-purple-600",rows:2}),s.jsx(oa,{"data-loc":"client/src/pages/AdminDashboard.tsx:821",placeholder:"اÙÙÙØ§Ø· اÙÙ
Ø·ÙÙØ¨Ø©",type:"number",value:a.requiredPoints||L.requiredPoints,onChange:ke=>n({...a,requiredPoints:parseInt(ke.target.value)}),className:"bg-purple-700 text-white border-purple-600"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:828",className:"flex gap-2",children:[s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:829",onClick:()=>Ae("prize",L.id,a),className:"bg-green-600 hover:bg-green-700",children:"ØÙظ"}),s.jsx(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:835",onClick:()=>t(null),variant:"outline",className:"border-purple-600 text-white",children:"Ø¥ÙØºØ§Ø¡"})]})]}):s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:845",className:"space-y-2 text-purple-100",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:846",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:846",children:"اÙÙÙØ§Ø· اÙÙ
Ø·ÙÙØ¨Ø©:"})," ",L.requiredPoints]}),s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:847",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:847",children:"اÙÙØµÙ:"})," ",L.descriptionAr?.substring(0,100),"..."]}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:848",className:"flex gap-2",children:[s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:849",onClick:()=>{t(L.id),n(L)},size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[s.jsx(Fd,{"data-loc":"client/src/pages/AdminDashboard.tsx:857",className:"w-4 h-4 mr-2"}),"تعدÙÙ"]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboard.tsx:860",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboard.tsx:861",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:862",size:"sm",variant:"destructive",children:[s.jsx(ur,{"data-loc":"client/src/pages/AdminDashboard.tsx:863",className:"w-4 h-4 mr-2"}),"ØØ°Ù"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboard.tsx:867",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboard.tsx:868",children:"تأÙÙØ¯ Ø§ÙØØ°Ù"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboard.tsx:869",children:"ÙÙ ØªØ±ÙØ¯ ØØ°Ù ÙØ°Ù Ø§ÙØ¬Ø§Ø¦Ø²Ø©Ø"}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:872",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboard.tsx:873",onClick:()=>Pe("prize",L.id),children:"ØØ°Ù"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboard.tsx:876",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]})})]},L.id))})}),s.jsxs(fs,{"data-loc":"client/src/pages/AdminDashboard.tsx:891",value:"skips",className:"space-y-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:892",className:"grid gap-3 sm:grid-cols-3",children:[s.jsx(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:893",className:"border-purple-500 bg-purple-900/80 text-white",children:s.jsxs(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:893",className:"p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:893",className:"text-sm text-purple-200",children:"إجÙ
اÙ٠اÙÙ
ÙØ§Ù
اÙÙ
ØªØ¬Ø§ÙØ²Ø©"}),s.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:893",className:"mt-1 text-3xl font-black",children:me.totalSkips})]})}),s.jsx(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:894",className:"border-blue-500 bg-blue-900/70 text-white",children:s.jsxs(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:894",className:"p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:894",className:"text-sm text-blue-200",children:"اÙÙ
ستخدÙ
Ù٠اÙÙ
تأثرÙÙ"}),s.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:894",className:"mt-1 text-3xl font-black",children:me.affectedUsers})]})}),s.jsx(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:895",className:"border-yellow-500 bg-yellow-900/70 text-white",children:s.jsxs(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:895",className:"p-4",children:[s.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:895",className:"text-sm text-yellow-100",children:"اÙÙ
ÙØ§Ù
Ø§ÙØªÙ Ø·ÙÙØ¨ ØªØ¬Ø§ÙØ²Ùا"}),s.jsx("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:895",className:"mt-1 text-3xl font-black",children:me.affectedTasks})]})})]}),W.isLoading?s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:898",className:"flex justify-center",children:s.jsx(Ta,{"data-loc":"client/src/pages/AdminDashboard.tsx:898",className:"animate-spin"})}):Q.items.length===0?s.jsx(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:900",className:"border-purple-700 bg-purple-800 text-purple-100",children:s.jsx(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:900",className:"p-6 text-center font-medium",children:"ÙØ§ ØªÙØ¬Ø¯ Ù
ÙØ§Ù
Ù
ØªØ¬Ø§ÙØ²Ø© تطاب٠اÙÙÙØ§ØªØ± Ø§ÙØØ§ÙÙØ©."})}):s.jsx("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:902",className:"space-y-4",children:Q.items.map(L=>s.jsxs(ma,{"data-loc":"client/src/pages/AdminDashboard.tsx:904",className:"border-yellow-500/60 bg-purple-800 text-white",children:[s.jsx(nn,{"data-loc":"client/src/pages/AdminDashboard.tsx:905",className:"pb-3",children:s.jsxs(sn,{"data-loc":"client/src/pages/AdminDashboard.tsx:906",className:"flex flex-wrap items-center justify-between gap-2 text-base",children:[s.jsxs("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:907",children:[L.icon," اÙÙÙÙ
",L.dayNumber,": ",L.titleAr]}),s.jsx("span",{"data-loc":"client/src/pages/AdminDashboard.tsx:908",className:"rounded-full bg-yellow-300 px-3 py-1 text-xs font-black text-black",children:"تÙ
Ø§ÙØªØ¬Ø§Ùز"})]})}),s.jsxs(fa,{"data-loc":"client/src/pages/AdminDashboard.tsx:911",className:"space-y-3",children:[s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:912",className:"grid gap-2 text-sm text-purple-100 sm:grid-cols-2",children:[s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:913",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:913",children:"اÙÙ
ستخدÙ
:"})," ",L.userName||L.userEmail||`Ù
ستخدÙ
#${L.userId}`]}),s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:914",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:914",children:"Ø§ÙØªØ§Ø±ÙØ®:"}
1167)," ",new Date(L.skippedAt).toLocaleString("ar-SA")]}),s.jsxs("p",{"data-loc":"client/src/pages/AdminDashboard.tsx:915",className:"sm:col-span-2",children:[s.jsx("strong",{"data-loc":"client/src/pages/AdminDashboard.tsx:915",children:"سبب Ø§ÙØªØ®Ø·Ù:"})," ",L.reason]})]}),s.jsxs(al,{"data-loc":"client/src/pages/AdminDashboard.tsx:917",children:[s.jsx(yc,{"data-loc":"client/src/pages/AdminDashboard.tsx:918",asChild:!0,children:s.jsxs(Ie,{"data-loc":"client/src/pages/AdminDashboard.tsx:919",size:"sm",className:"bg-memphis-mint text-black hover:bg-emerald-300",disabled:B.isPending,children:[s.jsx(vo,{"data-loc":"client/src/pages/AdminDashboard.tsx:920",className:"ml-2 h-4 w-4"})," إعادة ØªÙØ¹Ù٠اÙÙ
ÙÙ
Ø©"]})}),s.jsxs(nl,{"data-loc":"client/src/pages/AdminDashboard.tsx:923",dir:"rtl",children:[s.jsx(sl,{"data-loc":"client/src/pages/AdminDashboard.tsx:924",children:"إعادة ØªÙØ¹ÙÙ Ù
ÙÙ
Ø© Ù
ØªØ¬Ø§ÙØ²Ø©"}),s.jsx(rl,{"data-loc":"client/src/pages/AdminDashboard.tsx:925",children:"Ø³ÙØ¸Ùر ÙØ°Ø§ اÙÙÙÙ
ÙÙÙ
ستخدÙ
Ù
رة أخر٠ÙÙ
ÙÙ
Ø© تاÙÙØ© ØºÙØ± Ù
ÙØ¬Ø²Ø©. ÙÙ ØªÙØØ°Ù Ø£Ù Ø³Ø¬ÙØ§Øª Ø¥ÙØ¬Ø§Ø² أخرÙ."}),s.jsxs("div",{"data-loc":"client/src/pages/AdminDashboard.tsx:926",className:"flex gap-2",children:[s.jsx(il,{"data-loc":"client/src/pages/AdminDashboard.tsx:927",onClick:()=>B.mutate({skipId:L.id}),children:"تأÙÙØ¯ إعادة Ø§ÙØªÙعÙÙ"}),s.jsx(ol,{"data-loc":"client/src/pages/AdminDashboard.tsx:928",children:"Ø¥ÙØºØ§Ø¡"})]})]})]})]})]},L.id))})]})]})]})})}function CGe(){return s.jsxs(dme,{"data-loc":"client/src/App.tsx:53",children:[s.jsx(da,{"data-loc":"client/src/App.tsx:54",path:"/",component:a0e}),s.jsx(da,{"data-loc":"client/src/App.tsx:55",path:"/teaser",component:j_e}),s.jsx(da,{"data-loc":"client/src/App.tsx:56",path:"/admin/teaser",component:pGe}),s.jsx(da,{"data-loc":"client/src/App.tsx:57",path:"/dashboard",component:Z0e}),s.jsx(da,{"data-loc":"client/src/App.tsx:58",path:"/category/:id",component:cve}),s.jsx(da,{"data-loc":"client/src/App.tsx:59",path:"/lesson/:id",component:u1e}),s.jsx(da,{"data-loc":"client/src/App.tsx:60",path:"/quiz-challenge/:id",component:p1e}),s.jsx(da,{"data-loc":"client/src/App.tsx:61",path:"/challenges",component:v1e}),s.jsx(da,{"data-loc":"client/src/App.tsx:62",path:"/leaderboard",component:j1e}),s.jsx(da,{"data-loc":"client/src/App.tsx:63",path:"/prizes",component:k1e}),s.jsx(da,{"data-loc":"client/src/App.tsx:64",path:"/profile",component:FOe}),s.jsx(da,{"data-loc":"client/src/App.tsx:65",path:"/focus",component:xGe}),s.jsx(da,{"data-loc":"client/src/App.tsx:66",path:"/achievements",component:yGe}),s.jsx(da,{"data-loc":"client/src/App.tsx:67",path:"/saved-resources",component:g_e}),s.jsx(da,{"data-loc":"client/src/App.tsx:68",path:"/daily-content",component:w_e}),s.jsx(da,{"data-loc":"client/src/App.tsx:69",path:"/shared-folder/:token",component:x_e}),s.jsx(da,{"data-loc":"client/src/App.tsx:70",path:"/admin",component:GOe}),s.jsx(da,{"data-loc":"client/src/App.tsx:71",path:"/teams",component:UOe}),s.jsx(da,{"data-loc":"client/src/App.tsx:72",path:"/teams/:id",component:c7e}),s.jsx(da,{"data-loc":"client/src/App.tsx:73",path:"/learning-path",component:p7e}),s.jsx(da,{"data-loc":"client/src/App.tsx:74",path:"/points-history",component:f7e}),s.jsx(da,{"data-loc":"client/src/App.tsx:75",path:"/thirty-day-challenge",component:A7e}),s.jsx(da,{"data-loc":"client/src/App.tsx:76",path:"/diagnostic-test",component:C7e}),s.jsx(da,{"data-loc":"client/src/App.tsx:77",path:"/weekly-puzzle",component:Uq}),s.jsx(da,{"data-loc":"client/src/App.tsx:78",path:"/puzzle/:id",component:Uq}),s.jsx(da,{"data-loc":"client/src/App.tsx:79",path:"/admin/puzzles",component:K7e}),s.jsx(da,{"data-loc":"client/src/App.tsx:80",path:"/admin/content",component:s_e}),s.jsx(da,{"data-loc":"client/src/App.tsx:81",path:"/admin/suggestions",component:r_e}),s.jsx(da,{"data-loc":"client/src/App.tsx:82",path:"/admin/dashboard",component:SGe}),s.jsx(da,{"data-loc":"client/src/App.tsx:83",path:"/admin/dashboard-enhanced",component:i_e}),s.jsx(da,{"data-loc":"client/src/App.tsx:84",path:"/game",component:Jq}),s.jsx(da,{"data-loc":"client/src/App.tsx:85",path:"/game/host/:id",component:Jq}),s.jsx(da,{"data-loc":"client/src/App.tsx:86",path:"/game/play/:id",component:gze}),s.jsx(da,{"data-loc":"client/src/App.tsx:87",path:"/game/join/:pin",component:tU}),s.jsx(da,{"data-loc":"client/src/App.tsx:88",path:"/game/join",component:tU}),s.jsx(da,{"data-loc":"client/src/App.tsx:89",path:"/notifications",component:Dze}),s.jsx(da,{"data-loc":"client/src/App.tsx:90",path:"/game/projector/:id",component:Mze}),s.jsx(da,{"data-loc":"client/src/App.tsx:91",path:"/game/share/:token",component:jGe}),s.jsx(da,{"data-loc":"client/src/App.tsx:92",path:"/404",component:uz}),s.jsx(da,{"data-loc":"client/src/App.tsx:93",component:uz})]})}function TGe(){return s.jsx(ume,{"data-loc":"client/src/App.tsx:102",children:s.jsx(mme,{"data-loc":"client/src/App.tsx:103",defaultTheme:"light",children:s.jsxs(g6,{"data-loc":"client/src/App.tsx:104",children:[s.jsx(ece,{"data-loc":"client/src/App.tsx:105",richColors:!0,position:"top-center"}),s.jsx(PGe,{"data-loc":"client/src/App.tsx:106",children:s.jsx(DGe,{"data-loc":"client/src/App.tsx:107"})})]})})})}function DGe(){const{isAuthenticated:e}=Ma(),t=J.streak.recordLogin.useMutation(),[a,n]=P.useState(!1),[r,i]=P.useState(!1),[o,l]=P.useState(7),[c,d]=P.useState([]);return P.useEffect(()=>{H$(AD())},[]),P.useEffect(()=>{if(!e)return;const m=()=>{const h=fne(),x=new Date;
1167mGe(h,x)&&(hne(fGe(h,x)),gGe("ØØ§Ù ÙÙØª Ø®Ø·ÙØ© Ø§ÙØªØ±ÙÙØ²",{body:"اختر Ù
ÙÙ
Ø© ÙØ§ØØ¯Ø© ØµØºÙØ±Ø© ÙØ§Ø¨Ø¯Ø£ Ø§ÙØ¢Ù.",icon:"/favicon.ico"}),re("ØØ§Ù ÙÙØª Ø®Ø·ÙØ© Ø§ÙØªØ±ÙÙØ²",{description:"اختر Ù
ÙÙ
Ø© ÙØ§ØØ¯Ø© ØµØºÙØ±Ø© ÙØ§Ø¨Ø¯Ø£ Ø§ÙØ¢Ù.",action:{label:"ابدأ",onClick:()=>{window.location.href="/focus"}}}))};m();const f=()=>{document.visibilityState==="visible"&&m()};return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)},[e]),P.useEffect(()=>{e&&t.mutate(void 0,{onSuccess:m=>{m?.freezeConsumed&&(l(m.currentStreak??1),i(!0)),m?.streakBadgeEarned&&(l(m.currentStreak??7),d(m.milestoneRewards??[]),n(!0))}})},[e]),s.jsxs(s.Fragment,{children:[s.jsx(CGe,{"data-loc":"client/src/App.tsx:165"}),s.jsx(yfe,{"data-loc":"client/src/App.tsx:166",open:a&&!r,onClose:()=>n(!1),streakDays:o,rewards:c}),s.jsx(B$,{"data-loc":"client/src/App.tsx:172",mode:r?"used":null,streakDays:o,onClose:()=>i(!1)})]})}const H1=new Jre,bne=e=>{!(e instanceof hm)||typeof window>"u"||!(e.message===zoe)||Rn()};H1.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;bne(t),console.error("[API Query Error]",t)}});H1.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;bne(t),console.error("[API Mutation Error]",t)}});const EGe=J.createClient({links:[ooe({url:"/api/trpc",transformer:Ml,headers(){try{const e=sessionStorage.getItem("manus-cookie");if(e){const t=`${Roe}=`,n=e.split(";").find(r=>r.trim().startsWith(t))?.trim().slice(t.length);if(n)return{Authorization:`Bearer ${n}`}}}catch{}return{}},fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});qoe.createRoot(document.getElementById("root")).render(s.jsx(J.Provider,{"data-loc":"client/src/main.tsx:76",client:EGe,queryClient:H1,children:s.jsx(tie,{"data-loc":"client/src/main.tsx:77",client:H1,children:s.jsx(TGe,{"data-loc":"client/src/main.tsx:78"})})}))});export default MGe();
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.