PageSourceSearch

https://apps.awatcloud.com/assets/CPrcv64q.js

js awatcloud.com collected 2026-10-08 08:44:42 UTC 2,571,828 bytes, 2,745 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ynRYv2Vk.js","assets/Ssl5WjxV.js","assets/DaNbzTdM.js","assets/DcgU61uk.js","assets/C4CXnTcG.js","assets/0Edo5081.js","assets/D_LQEvRb.js","assets/CJcG5UPG.js","assets/O1r6d0wx.js","assets/D4dGknFN2.js","assets/plcVBZxr.js","assets/jhe_GLA1.js","assets/DKKvK1fy.js","assets/BvKoVRqy2.js","assets/D5hp-Tet.js","assets/B02_dSN3.js","assets/Bq_TObDB.js","assets/CaL4mhh3.js","assets/DQud5Z5r.js","assets/DjdRVSNb2.js","assets/DpRr-rBr2.js","assets/D2vno9Zp2.js","assets/B_n2FPdC.js","assets/DgRFdIis2.js","assets/Dd18eh0-.js","assets/BMWb70HJ.js","assets/imkHHRJR.js","assets/DkjvPtn3.js","assets/DPeq7z_x2.js","assets/BSRZuWhP.js","assets/CGQYOqtt2.js","assets/DNO1JvWq.js","assets/DwzVB4sM.js","assets/DlaeUfrI2.js","assets/DF2MRS9C.js","assets/BOa-68zx.js","assets/Cr4zvYN-.js","assets/vUeXKXiC.js","assets/BRqPLQ7D.js","assets/BA9kQf9s.js","assets/3xIN_FsB.js","assets/CGSCWXdQ.js","assets/BI2oEDr_2.js","assets/BJY6wd8d.js","assets/B_pbaSFs.js","assets/DqoM5K6h.js","assets/BzAw0dky.js","assets/D66A9pbT.js","assets/BnS7n_yk.js","assets/DQmmTZB5.js","assets/bGKWnUJY2.js","assets/ZCBIZLl22.js","assets/eT_FYVvw2.js","assets/VvcrFSRq2.js","assets/CaMFuRVQ2.js","assets/CkcM2wvt.js","assets/8bb_H-Xr2.js","assets/IRveqIhr2.js","assets/3b6V_Psl2.js","assets/2tbyDYPX.js","assets/DECTR7Dw.js","assets/DF6nfIjf2.js","assets/I1FeMg57.js","assets/BKe2Pd-O.js","assets/DUkANT0Z.js","assets/DnoOL2EE.js","assets/B3kOaQu3.js","assets/_Vxy8pFl2.js","assets/uIwVUnXB.js","assets/C3ErwNYh2.js","assets/CXXYSTPL.js","assets/B3CJjpwr.js","assets/zxhERAPw.js","assets/BDqRymuW2.js","assets/Ch4Py7O4.js","assets/w2drXEiR.js","assets/CZijL2Wf.js","assets/DME3Ue_i.js","assets/BQIgj2yL2.js","assets/CuJ8Y5X-2.js","assets/KY9B3zmH2.js","assets/BszQM9OR2.js","assets/Ww46cwjM2.js","assets/CV9XNtS5.js","assets/D4AlqTwS.js","assets/CkvgRmNF2.js","assets/j1Knp4Yz.js","assets/DL6in6WC2.js","assets/CX7FRErq.js","assets/B9TiDnXT2.js","assets/p8nPqf2G2.js","assets/CuELywyl2.js","assets/P1GdbdBc.js","assets/C7SyzGjb.js","assets/B1RBwJop2.js","assets/DzmTV6tK.js","assets/BSDNoZ-72.js","assets/Zpbh0nIj2.js","assets/sd6poxUF.js","assets/Du-nkxVg2.js","assets/D5Z71M7C2.js","assets/DMPBL1VY2.js","assets/Dxi8Ym5o.js","assets/Bk-sQIf72.js","assets/DKYHeOzC2.js","assets/2f0_sbPy2.js","assets/DKxGBfn5.js","assets/oNxfXig4.js","assets/DlOvWU-q.js","assets/BkA2H6QV2.js","assets/CkvM9ajM.js","assets/DzE5FZ5Q.js","assets/DgHNACjp.js","assets/CqfpJFt1.js","assets/BGDfkRHk.js","assets/BZpDiQQs2.js","assets/BDBw5yTm.js","assets/DycItJGY2.js","assets/DWzy7JQX.js","assets/B4j195Wq.js","assets/CV_Poe4-.js","assets/DT6eAGUR.js","assets/wo9j6Ryi.js","assets/D_7WLjPr.js","assets/D7NkSzIf.js","assets/ldxvfzcm.js","assets/x8cof-bS2.js","assets/DOjAhHY12.js","assets/DVwekNPJ.js","assets/BH24Tr3d2.js","assets/ZTU2aB6C2.js","assets/Bat27OAT.js","assets/vqlwalys.js","assets/DBtRSr-V2.js","assets/C6uLmP31.js","assets/C9Bmcn3_.js","assets/Ca_cUhO92.js","assets/BQtSrF222.js","assets/Bx583W9N.js","assets/D9D6nb-Y2.js","assets/BkqSgM762.js","assets/DQSOhVVf.js","assets/Cfp8_0vf.js","assets/CnNa3Pbv.js","assets/DLKfTtLO.js","assets/Cra5P3hD.js","assets/6Dyr1PNt.js","assets/BrDIUT3d2.js","assets/BXwo0Urf.js","assets/DoWJ23Ew2.js","assets/B8RF6UuZ.js","assets/DzDoutTj.js","assets/CNFhe8TJ2.js","assets/CXEpyBm8.js","assets/DiBv9_6d.js","assets/TYNtl6Mg2.js","assets/C2l6PUz22.js","assets/_XOc5uuK.js","assets/BIaHOWGO2.js","assets/DaoJA2h02.js","assets/BHi-cUiS2.js","assets/C4r38gzG.js","assets/_fUPMKu42.js","assets/BqWL-pCW2.js","assets/DUnEkgC9.js","assets/CDggyKir.js","assets/C0h49IBe2.js","assets/DmVH7Cd9.js","assets/B0POqRmU.js","assets/ChtJPTJk2.js","assets/C9D7MCGz.js","assets/BayrHXk0.js","assets/DGkwM1Xc.js","assets/DQ1MJpni.js","assets/Dl78TykH.css","assets/C7Bqb1YY2.js","assets/BFKU4aH82.js","assets/su0eZ_As2.js","assets/ITXdNQIg2.js","assets/EUwyxuTt2.js","assets/BH2xhxm92.js","assets/C9mWqbaQ2.js","assets/Bz6DjgDX2.js","assets/DQF33V0h.js","assets/BkTs4GcZ.js","assets/C-QkR3XA2.js","assets/oG36jhDF2.js","assets/BhAa_ODk.js","assets/IQuyqvjR.js","assets/BCel6whI.js","assets/Da-7WYO3.js","assets/r61N4Wc92.js","assets/BamwBVMb2.js","assets/CL86LPJa2.js","assets/B1pnM97x.js","assets/HCLzNOtC.js","assets/CZHxEdY0.js","assets/ChDeXSLZ.js","assets/9q3r0HYJ.js","assets/BrvnegGG.js","assets/_w5NAT_9.js","assets/Bs6zZLSj.js","assets/5RyS9CP9.js","assets/nvtmMgZL.js","assets/Byz5ZW692.js","assets/Bq1ArzJ7.js","assets/DFlbdOrQ.js","assets/CmvyLbKq.js","assets/DYSJfSpW2.js","assets/C86IU6842.js","assets/Bf_wM1pW.js","assets/Dg3VVZop2.
vendor: 9,440 bytes, lines 1-2
1js","assets/-q7WaU8R2.js","assets/iVvD7v752.js","assets/Dy9uYwtI.css","assets/C0ADkNZU2.js","assets/CiLlYbcL.js","assets/CXw6mvLg2.js","assets/CGNjiAdC2.js","assets/DSvM98L12.js","assets/C0JcbNf72.js","assets/BpshIrH52.js","assets/BooOoyFs2.js","assets/Ct_d4ykm2.js","assets/BqBU8TeR2.js","assets/DiVcWDL92.js","assets/CIoeERLa2.js","assets/BLwuhvfy.js","assets/DJbBfxLn.js","assets/b4VlYulz.js","assets/IVvuEDvn.js","assets/Fk5X6EaR.js","assets/Cq2dem5j.js","assets/Ba9lSXSP.js","assets/CM6PCz6S2.js","assets/CgNLHryS2.js","assets/CrGTnzSn2.js","assets/COiMysb_2.js","assets/CBy5Erjy2.js","assets/D8U5si1S2.js","assets/CtWQ0kzx.js","assets/Bb7J5d812.js","assets/CLSFVh5-.js","assets/wS2pi3-7.js","assets/DbDIyvwv.js","assets/DKjxA1B3.js","assets/jxEXOEq9.js","assets/535iy9Jr.js","assets/DV8offjc.js","assets/DNDqjByO2.js","assets/DzHrFukV2.js","assets/BC6BN5oZ2.js","assets/owZ-XGW72.js","assets/CQ_Ux4If2.js","assets/BvZommPt2.js","assets/BvhDXklB.js","assets/Dc9R9g5y.js","assets/Btg3q3JG.js","assets/DayCJs21.js"])))=>i.map(i=>d[i]);
2import{C as e,D as t,E as n,N as r,O as i,S as a,T as o,b as s,i as c,n as l,o as u,r as d,t as f,v as p,w as m}from"./Ssl5WjxV.js";import{$ as h,A as g,B as _,D as v,E as y,F as b,G as x,H as S,I as C,K as w,N as T,P as E,Q as D,R as O,U as k,V as A,W as j,X as M,Y as N,Z as P,_ as F,d as I,et as ee,f as L,h as R,i as z,j as te,k as ne,l as re,m as ie,n as ae,o as oe,p as se,q as ce,r as le,t as B,w as ue}from"./C4CXnTcG.js";import{_ as de,a as fe,c as pe,d as me,f as he,g as ge,h as _e,i as ve,m as ye,n as be,o as xe,p as Se,s as Ce,t as V,u as we,v as Te}from"./DaNbzTdM.js";import{C as Ee,E as De,M as Oe,S as ke,T as Ae,b as je,j as Me,k as Ne,l as Pe,n as H,o as U,p as Fe,r as Ie,s as Le,t as Re,u as ze,w as Be,x as Ve,y as He}from"./BSRZuWhP.js";import{n as Ue,r as W}from"./DcgU61uk.js";import{a as We,i as Ge,n as Ke,o as qe,r as Je,t as Ye}from"./DNO1JvWq.js";import{i as Xe,n as Ze,r as Qe,t as $e}from"./DwzVB4sM.js";import{C as et,D as tt,E as nt,F as rt,M as it,N as at,O as ot,b as st,c as ct,d as lt,f as ut,g as dt,h as ft,i as pt,j as mt,k as ht,l as gt,m as _t,o as vt,p as yt,r as bt,s as xt,t as St,u as Ct,v as wt,w as Tt,y as Et}from"./CJcG5UPG.js";import{t as Dt}from"./DKKvK1fy.js";import{t as Ot}from"./jhe_GLA1.js";import{t as G}from"./BOa-68zx.js";import{t as kt}from"./plcVBZxr.js";import{$ as At,A as jt,B as Mt,C as Nt,D as Pt,E as Ft,F as It,G as Lt,H as Rt,I as zt,J as Bt,K as Vt,L as Ht,M as Ut,N as Wt,O as Gt,P as Kt,Q as qt,R as Jt,S as Yt,T as Xt,U as Zt,V as Qt,W as $t,X as en,Y as tn,Z as nn,_ as rn,a as an,at as on,b as sn,c as cn,ct as ln,d as un,et as dn,f as fn,g as pn,h as mn,i as hn,it as gn,j as _n,k as vn,l as yn,n as bn,nt as xn,o as Sn,ot as Cn,p as wn,q as Tn,r as En,rt as Dn,s as On,st as kn,t as An,tt as jn,u as Mn,v as Nn,w as Pn,x as Fn,y as In,z as Ln}from"./CDggyKir.js";import{a as Rn,i as zn,n as Bn,t as Vn}from"./B02_dSN3.js";import{n as Hn,r as Un,t as Wn}from"./B_n2FPdC.js";import{a as Gn,c as Kn,d as qn,l as Jn,o as Yn,p as Xn,s as Zn,t as Qn}from"./Bq_TObDB.js";import{a as $n,i as er,o as tr,t as nr}from"./CaL4mhh3.js";import{n as rr,t as ir}from"./DkjvPtn3.js";import{t as ar}from"./DiBv9_6d.js";import{t as or}from"./DzmTV6tK.js";import{i as sr,n as cr,t as lr}from"./DQud5Z5r.js";import{n as ur,t as dr}from"./Cr4zvYN-.js";import{t as fr}from"./DUnEkgC9.js";import{n as pr,t as mr}from"./CXXYSTPL.js";import{t as K}from"./D_LQEvRb.js";import{t as hr}from"./BMWb70HJ.js";import{t as gr}from"./C6uLmP31.js";import{n as _r,r as vr,t as yr}from"./CXEpyBm8.js";import{t as br}from"./3xIN_FsB.js";import{t as xr}from"./zxhERAPw.js";import{n as Sr,s as Cr,t as wr}from"./D5hp-Tet.js";import{r as Tr,t as Er}from"./DjdRVSNb2.js";import{t as Dr}from"./DMPBL1VY2.js";import{t as Or}from"./ZCBIZLl22.js";import{t as kr}from"./bGKWnUJY2.js";import{n as Ar,t as jr}from"./BZpDiQQs2.js";import{i as Mr,r as Nr,t as Pr}from"./CuJ8Y5X-2.js";import{t as Fr}from"./KY9B3zmH2.js";import{t as Ir}from"./BszQM9OR2.js";import{t as Lr}from"./B9TiDnXT2.js";import{n as Rr,t as zr}from"./CkvgRmNF2.js";import{t as Br}from"./eT_FYVvw2.js";import{n as Vr,t as Hr}from"./D4dGknFN2.js";import{t as Ur}from"./DPeq7z_x2.js";import{n as Wr,t as Gr}from"./D2vno9Zp2.js";import{t as Kr}from"./VvcrFSRq2.js";import{n as qr,t as Jr}from"./CaMFuRVQ2.js";import{t as Yr}from"./IRveqIhr2.js";import{t as Xr}from"./C3ErwNYh2.js";import{n as Zr,r as Qr,t as $r}from"./DpRr-rBr2.js";import{t as ei}from"./CkcM2wvt.js";import{t as ti}from"./BA9kQf9s.js";import{i as ni,n as ri,r as ii,t as ai}from"./C9Bmcn3_.js";import{t as oi}from"./C7SyzGjb.js";import{t as si}from"./CGSCWXdQ.js";import{t as ci}from"./DME3Ue_i.js";import{n as li,t as ui}from"./BRqPLQ7D.js";import{t as di}from"./Ch4Py7O4.js";import{t as q}from"./DF2MRS9C.js";import{t as fi}from"./vUeXKXiC.js";import{t as pi}from"./Cfp8_0vf.js";import{t as mi}from"./Cra5P3hD.js";import{t as hi}from"./uIwVUnXB.js";import{t as gi}from"./Bx583W9N.js";import{b as _i,g as vi,v as yi,x as bi,y as xi}from"./DKYHeOzC2.js";import{b as Si,c as Ci,h as wi,s as Ti,y as Ei}from"./p8nPqf2G2.js";import{t as Di}from"./CGQYOqtt2.js";import{t as Oi}from"./DlaeUfrI2.js";import{t as ki}from"./BamwBVMb2.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ai=i((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),ji=i(((e,t)=>{t.exports=Ai()})),Mi=i((e=>
vendor: 4,337 bytes, lines 2-4
2{var n=ji(),r=t(),i=Te();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.memo_cache_sentinel`),k=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=k&&e[k]||e[`@@iterator`],typeof e==`function`?e:null)}var j=Symbol.for(`react.client.reference`);function M(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===j?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return t=e.displayName||null,t===null?M(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return M(e(t))}catch{}}return null}var N=Array.isArray,P=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ee=[],L=-1;function R(e){return{current:e}}function z(e){0>L||(e.current=ee[L],ee[L]=null,L--)}function te(e,t){L++,ee[L]=e.current,e.current=t}var ne=R(null),re=R(null),ie=R(null),ae=R(null);function oe(e,t){switch(te(ie,t),te(re,e),te(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(ne),te(ne,e)}function se(){z(ne),z(re),z(ie)}function ce(e){e.memoizedState!==null&&te(ae,e);var t=ne.current,n=Ud(t,e.type);t!==n&&(te(re,e),te(ne,n))}function le(e){re.current===e&&(z(ne),z(re)),ae.current===e&&(z(ae),$f._currentValue=I)}var B,ue;function de(e){if(B===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||``,ue=-1<e.stack.indexOf(`
3    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4`+B
vendor: 2,112 bytes, lines 4-9
4+e+ue}var fe=!1;function pe(e,t){if(!e||fe)return``;fe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5`),l=s.split(`
6`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?de(n):``}function me(e,t){switch(e.tag){case 26:case 27:case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return e.child!==t&&t!==null?de(`Suspense Fallback`):de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return de(`Activity`);default:return``}}function he(e){try{var t=``,n=null;do t+=me(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8Error generating stack: `+e.message+`
9`+e.stack}}var ge=Object.prototype.hasOwnProperty,_e=
vendor: 18,614 bytes, line 9
9n.unstable_scheduleCallback,ve=n.unstable_cancelCallback,ye=n.unstable_shouldYield,be=n.unstable_requestPaint,xe=n.unstable_now,Se=n.unstable_getCurrentPriorityLevel,Ce=n.unstable_ImmediatePriority,V=n.unstable_UserBlockingPriority,we=n.unstable_NormalPriority,Ee=n.unstable_LowPriority,De=n.unstable_IdlePriority,Oe=n.log,ke=n.unstable_setDisableYieldValue,Ae=null,je=null;function Me(e){if(typeof Oe==`function`&&ke(e),je&&typeof je.setStrictMode==`function`)try{je.setStrictMode(Ae,e)}catch{}}var Ne=Math.clz32?Math.clz32:U,Pe=Math.log,H=Math.LN2;function U(e){return e>>>=0,e===0?32:31-(Pe(e)/H|0)|0}var Fe=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 He(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function W(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function We(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ne(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ge(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ge(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ne(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ke(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ne(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function qe(e,t){var n=t&-t;return n=n&42?1:Je(n),(n&(e.suspendedLanes|t))===0?n:0}function Je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ye(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Xe(){var e=F.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function Ze(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Qe=Math.random().toString(36).slice(2),$e=`__reactFiber$`+Qe,et=`__reactProps$`+Qe,tt=`__reactContainer$`+Qe,nt=`__reactEvents$`+Qe,rt=`__reactListeners$`+Qe,it=`__reactHandles$`+Qe,at=`__reactResources$`+Qe,ot=`__reactMarker$`+Qe;function st(e){delete e[$e],delete e[et],delete e[nt],delete e[rt],delete e[it]}function ct(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[$e])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function lt(e){if(e=e[$e]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ut(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function dt(e){var t=e[at];return t||=e[at]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ft(e){e[ot]=!0}var pt=new Set,mt={};function ht(e,t){gt(e,t),gt(e+`Capture`,t)}function gt(e,t){for(mt[e]=t,e=0;e<t.length;e++)pt.add(t[e])}var _t=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]*$`),vt={},yt={};function bt(e){return ge.call(yt,e)?!0:ge.call(vt,e)?!1:_t.test(e)?yt[e]=!0:(vt[e]=!0,!1)}function xt(e,t,n){if(bt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function St(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ct(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function wt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Tt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Et(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dt(e){if(!e._valueTracker){var t=Tt(e)?`checked`:`value`;e._valueTracker=Et(e,t,``+e[t])}}function Ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Tt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function G(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var kt=/[\n"\\]/g;function At(e){return e.replace(kt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function jt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+wt(t)):e.value!==``+wt(t)&&(e.value=``+wt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Nt(e,o,wt(n)):Nt(e,o,wt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+wt(s):e.removeAttribute(`name`)}function Mt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Dt(e);return}n=n==null?``:``+wt(n),t=t==null?n:``+wt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Dt(e)}function Nt(e,t,n){t===`number`&&G(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Pt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+wt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ft(e,t,n){if(t!=null&&(t=``+wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+wt(n)}function It(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(a(92));if(N(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}n??=``,t=n}n=wt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Dt(e)}function Lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Rt=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 zt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Rt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Bt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(a(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&zt(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&zt(e,o,t[o])}function Vt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ht=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-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`]]),Ut=/^[\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 Wt(e){return Ut.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Gt(){}var Kt=null;function qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jt=null,Yt=null;function Xt(e){var t=lt(e);if(t&&(e=t.stateNode)){var n=e[et]||null;a:switch(e=t.stateNode,t.type){case`input`:if(jt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+At(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[et]||null;if(!i)throw Error(a(90));jt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ot(r)}break a;case`textarea`:Ft(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Pt(e,!!n.multiple,t,!1)}}}var Zt=!1;function Qt(e,t,n){if(Zt)return e(t,n);Zt=!0;try{return e(t)}finally{if(Zt=!1,(Jt!==null||Yt!==null)&&(bu(),Jt&&(t=Jt,e=Yt,Yt=Jt=null,Xt(t),e)))for(t=0;t<e.length;t++)Xt(e[t])}}function $t(e,t){var n=e.stateNode;if(n===null)return null;var r=n[et]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(a(231,t,typeof n));return n}var en=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,"passive",{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return on=i.slice(e,1<r?1-r:void 0)}function cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ln(){return!0}function un(){return!1}function dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?ln:un,this.isPropagationStopped=un,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=dn(fn),mn=p({},fn,{view:0,detail:0}),hn=dn(mn),gn,_n,vn,yn=p({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==vn&&(vn&&e.type===`mousemove`?(gn=e.screenX-vn.screenX,_n=e.screenY-vn.screenY):_n=gn=0,vn=e),gn)},movementY:function(e){return`movementY`in e?e.movementY:_n}}),bn=dn(yn),xn=dn(p({},yn,{dataTransfer:0})),Sn=dn(p({},mn,{relatedTarget:0})),Cn=dn(p({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=dn(p({},fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Tn=dn(p({},fn,{data:0})),En={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Dn={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:`F
95`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},On={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=On[e])?!!t[e]:!1}function An(){return kn}var jn=dn(p({},mn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Dn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return e.type===`keypress`?cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Mn=dn(p({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=dn(p({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Pn=dn(p({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Fn=dn(p({},yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=dn(p({},fn,{newState:0,oldState:0})),Ln=[9,13,27,32],Rn=en&&`CompositionEvent`in window,zn=null;en&&`documentMode`in document&&(zn=document.documentMode);var Bn=en&&`TextEvent`in window&&!zn,Vn=en&&(!Rn||zn&&8<zn&&11>=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function Jn(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=sn(),on=an=rn=null,Kn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Vn&&t.locale!==`ko`?null:t.data;default:return null}}var Yn={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 Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Yn[e.type]:t===`textarea`}function Zn(e,t,n,r){Jt?Yt?Yt.push(r):Yt=[r]:Jt=r,t=Ed(t,`onChange`),0<t.length&&(n=new pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Qn=null,$n=null;function er(e){vd(e,0)}function tr(e){if(Ot(ut(e)))return e}function nr(e,t){if(e===`change`)return t}var rr=!1;if(en){var ir;if(en){var ar=`oninput`in document;if(!ar){var or=document.createElement(`div`);or.setAttribute(`oninput`,`return;`),ar=typeof or.oninput==`function`}ir=ar}else ir=!1;rr=ir&&(!document.documentMode||9<document.documentMode)}function sr(){Qn&&(Qn.detachEvent(`onpropertychange`,cr),$n=Qn=null)}function cr(e){if(e.propertyName===`value`&&tr($n)){var t=[];Zn(t,$n,e,qt(e)),Qt(er,t)}}function lr(e,t,n){e===`focusin`?(sr(),Qn=t,$n=n,Qn.attachEvent(`onpropertychange`,cr)):e===`focusout`&&sr()}function ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return tr($n)}function dr(e,t){if(e===`click`)return tr(t)}function fr(e,t){if(e===`input`||e===`change`)return tr(t)}function pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var mr=typeof Object.is==`function`?Object.is:pr;function K(e,t){if(mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ge.call(t,i)||!mr(e[i],t[i]))return!1}return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function gr(e,t){var n=hr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=hr(n)}}function _r(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_r(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=G(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=G(e.document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var br=en&&`documentMode`in document&&11>=document.documentMode,xr=null,Sr=null,Cr=null,wr=!1;function Tr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wr||xr==null||xr!==G(r)||(r=xr,`selectionStart`in r&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 72,151 bytes, line 9
9sNode:r.focusNode,focusOffset:r.focusOffset}),Cr&&K(Cr,r)||(Cr=r,r=Ed(Sr,`onSelect`),0<r.length&&(t=new pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Dr={animationend:Er(`Animation`,`AnimationEnd`),animationiteration:Er(`Animation`,`AnimationIteration`),animationstart:Er(`Animation`,`AnimationStart`),transitionrun:Er(`Transition`,`TransitionRun`),transitionstart:Er(`Transition`,`TransitionStart`),transitioncancel:Er(`Transition`,`TransitionCancel`),transitionend:Er(`Transition`,`TransitionEnd`)},Or={},kr={};en&&(kr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),`TransitionEvent`in window||delete Dr.transitionend.transition);function Ar(e){if(Or[e])return Or[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kr)return Or[e]=t[n];return e}var jr=Ar(`animationend`),Mr=Ar(`animationiteration`),Nr=Ar(`animationstart`),Pr=Ar(`transitionrun`),Fr=Ar(`transitionstart`),Ir=Ar(`transitioncancel`),Lr=Ar(`transitionend`),Rr=new Map,zr=`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(` `);zr.push(`scrollEnd`);function Br(e,t){Rr.set(e,t),ht(t,[e])}var Vr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Hr=[],Ur=0,Wr=0;function Gr(){for(var e=Ur,t=Wr=Ur=0;t<e;){var n=Hr[t];Hr[t++]=null;var r=Hr[t];Hr[t++]=null;var i=Hr[t];Hr[t++]=null;var a=Hr[t];if(Hr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Yr(n,i,a)}}function Kr(e,t,n,r){Hr[Ur++]=e,Hr[Ur++]=t,Hr[Ur++]=n,Hr[Ur++]=r,Wr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function qr(e,t,n,r){return Kr(e,t,n,r),Xr(e)}function Jr(e,t){return Kr(e,null,null,t),Xr(e)}function Yr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ne(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Xr(e){if(50<du)throw du=0,fu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zr={};function Qr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(e,t,n,r){return new Qr(e,t,n,r)}function ei(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ti(e,t){var n=e.alternate;return n===null?(n=$r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ni(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ri(e,t,n,r,i,o){var s=0;if(r=e,typeof e==`function`)ei(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,ne.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case D:return e=$r(31,n,t,i),e.elementType=D,e.lanes=o,e;case _:return ii(n.children,i,o,t);case v:s=8,i|=24;break;case y:return e=$r(12,n,t,i|2),e.elementType=y,e.lanes=o,e;case C:return e=$r(13,n,t,i),e.elementType=C,e.lanes=o,e;case w:return e=$r(19,n,t,i),e.elementType=w,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case T:s=14;break a;case E:s=16,r=null;break a}s=29,n=Error(a(130,e===null?`null`:typeof e,``)),r=null}return t=$r(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ii(e,t,n,r){return e=$r(7,e,r,t),e.lanes=n,e}function ai(e,t,n){return e=$r(6,e,null,t),e.lanes=n,e}function oi(e){var t=$r(18,null,null,0);return t.stateNode=e,t}function si(e,t,n){return t=$r(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ci=new WeakMap;function li(e,t){if(typeof e==`object`&&e){var n=ci.get(e);return n===void 0?(t={value:e,source:t,stack:he(t)},ci.set(e,t),t):n}return{value:e,source:t,stack:he(t)}}var ui=[],di=0,q=null,fi=0,pi=[],mi=0,hi=null,gi=1,_i=``;function vi(e,t){ui[di++]=fi,ui[di++]=q,q=e,fi=t}function yi(e,t,n){pi[mi++]=gi,pi[mi++]=_i,pi[mi++]=hi,hi=e;var r=gi;e=_i;var i=32-Ne(r)-1;r&=~(1<<i),n+=1;var a=32-Ne(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,gi=1<<32-Ne(t)+i|n<<i|r,_i=a+e}else gi=1<<a|n<<i|r,_i=e}function bi(e){e.return!==null&&(vi(e,1),yi(e,1,0))}function xi(e){for(;e===q;)q=ui[--di],ui[di]=null,fi=ui[--di],ui[di]=null;for(;e===hi;)hi=pi[--mi],pi[mi]=null,_i=pi[--mi],pi[mi]=null,gi=pi[--mi],pi[mi]=null}function Si(e,t){pi[mi++]=gi,pi[mi++]=_i,pi[mi++]=hi,gi=t.id,_i=t.overflow,hi=e}var Ci=null,wi=null,Ti=!1,Ei=null,Di=!1,Oi=Error(a(519));function ki(e){throw Ii(li(Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Oi}function Ai(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$e]=e,t[et]=r,n){case`dialog`:yd(`cancel`,t),yd(`close`,t);break;case`iframe`:case`object`:case`embed`:yd(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)yd(gd[n],t);break;case`source`:yd(`error`,t);break;case`img`:case`image`:case`link`:yd(`error`,t),yd(`load`,t);break;case`details`:yd(`toggle`,t);break;case`input`:yd(`invalid`,t),Mt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:yd(`invalid`,t);break;case`textarea`:yd(`invalid`,t),It(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(yd(`beforetoggle`,t),yd(`toggle`,t)),r.onScroll!=null&&yd(`scroll`,t),r.onScrollEnd!=null&&yd(`scrollend`,t),r.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ki(e,!0)}function Mi(e){for(Ci=e.return;Ci;)switch(Ci.tag){case 5:case 31:case 13:Di=!1;return;case 27:case 3:Di=!0;return;default:Ci=Ci.return}}function Ni(e){if(e!==Ci)return!1;if(!Ti)return Mi(e),Ti=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Wd(e.type,e.memoizedProps)),n=!n),n&&wi&&ki(e),Mi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));wi=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(317));wi=df(e)}else t===27?(t=wi,Qd(e.type)?(e=uf,uf=null,wi=e):wi=t):wi=Ci?lf(e.stateNode.nextSibling):null;return!0}function Pi(){wi=Ci=null,Ti=!1}function Fi(){var e=Ei;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Ei=null),e}function Ii(e){Ei===null?Ei=[e]:Ei.push(e)}var Li=R(null),Ri=null,zi=null;function Bi(e,t,n){te(Li,t._currentValue),t._currentValue=n}function Vi(e){e._currentValue=Li.current,z(Li)}function Hi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ui(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Hi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(a(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Hi(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Wi(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(a(387));if(s=s.memoizedProps,s!==null){var c=i.type;mr(i.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(i===ae.current){if(s=i.alternate,s===null)throw Error(a(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}i=i.return}e!==null&&Ui(t,e,n,r),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ki(e){Ri=e,zi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function J(e){return qi(Ri,e)}function Y(e,t){return Ri===null&&Ki(e),qi(e,t)}function qi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zi===null){if(e===null)throw Error(a(308));zi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zi=zi.next=t;return n}var Ji=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Yi=n.unstable_scheduleCallback,Xi=n.unstable_NormalPriority,Zi={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qi(){return{controller:new Ji,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&Yi(Xi,function(){e.controller.abort()})}var ea=null,ta=0,na=0,ra=null;function ia(e,t){if(ea===null){var n=ea=[];ta=0,na=dd(),ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ta++,t.then(aa,aa),t}function aa(){if(--ta===0&&ea!==null){ra!==null&&(ra.status=`fulfilled`);var e=ea;ea=null,na=0,ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function oa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var sa=P.S;P.S=function(e,t){tu=xe(),typeof t==`object`&&t&&typeof t.then==`function`&&ia(e,t),sa!==null&&sa(e,t)};var ca=R(null);function la(){var e=ca.current;return e===null?Il.pooledCache:e}function ua(e,t){t===null?te(ca,ca.current):te(ca,t.pool)}function da(){var e=la();return e===null?null:{parent:Zi._currentValue,pool:e}}var fa=Error(a(460)),pa=Error(a(474)),ma=Error(a(542)),ha={then:function(){}};function ga(e){return e=e.status,e===`fulfilled`||e===`rejected`}function _a(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gt,Gt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,xa(e),e;default:if(typeof t.status==`string`)t.then(Gt,Gt);else{if(e=Il,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,xa(e),e}throw ya=t,fa}}function va(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ya=e,fa):e}}var ya=null;function ba(){if(ya===null)throw Error(a(459));var e=ya;return ya=null,e}function xa(e){if(e===fa||e===ma)throw Error(a(483))}var Sa=null,Ca=0;function wa(e){var t=Ca;return Ca+=1,Sa===null&&(Sa=[]),_a(Sa,e,t)}function Ta(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ea(e,t){throw t.$$typeof===m?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Da(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ti(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ai(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===E&&va(a)===t.type)?(t=i(t,n.props),Ta(t,n),t.return=e,t):(t=ri(n.type,n.key,n.props,null,e.mode,r),Ta(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=si(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=ii(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ai(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=ri(t.type,t.key,t.props,null,e.mode,n),Ta(n,t),n.return=e,n;case g:return t=si(t,e.mode,n),t.return=e,t;case E:return t=va(t),f(e,t,n)}if(N(t)||A(t))return t=ii(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,wa(t),n);if(t.$$typeof===x)return f(e,Y(e,t),n);Ea(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case E:return n=va(n),p(e,t,n,r)}if(N(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,wa(n),r);if(n.$$typeof===x)return p(e,t,Y(e,n),r);Ea(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=va(r),m(e,t,n,r,i)}if(N(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,wa(r),i);if(r.$$typeof===x)return m(e,t,n,Y(t,r),i);Ea(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ti&&vi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Ti&&vi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Ti&&vi(i,h),l}function y(i,s,c,l){if(c==null)throw Error(a(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ti&&vi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ti&&vi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ti&&vi(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&va(l)===r.type){n(e,r.sibling),c=i(r,o.props),Ta(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=ii(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ri(o.type,o.key,o.props,null,e.mode,c),Ta(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=si(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=va(o),b(e,r,o,c)}if(N(o))return v(e,r,o,c);if(A(o)){if(l=A(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,wa(o),c);if(o.$$typeof===x)return b(e,r,Y(e,o),c);Ea(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=ai(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ca=0;var i=b(e,t,n,r);return Sa=null,i}catch(t){if(t===fa||t===ma)throw t;var a=$r(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Oa=Da(!0),ka=Da(!1),Aa=!1;function ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ma(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Xr(e),Yr(e,null,n),t}return Kr(e,r,t,n),Xr(e)}function Fa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var La=!1;function Ra(){if(La){var e=ra;if(e!==null)throw e}}function za(e,t,n,r){La=!1;var i=e.updateQueue;Aa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Rl&f)===f:(r&f)===f){f!==0&&f===na&&(La=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Aa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Ba(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function Va(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ba(n[e],t)}var Ha=R(null),Ua=R(0);function Wa(e,t){e=Wl,te(Ua,e),te(Ha,t),Wl=e|t.baseLanes}function Ga(){te(Ua,Wl),te(Ha,Ha.current)}function Ka(){Wl=Ua.current,z(Ha),z(Ua)}var qa=R(null),Ja=null;function Ya(e){var t=e.alternate;te(eo,eo.current&1),te(qa,e),Ja===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(Ja=e)}function Xa(e){te(eo,eo.current),te(qa,e),Ja===null&&(Ja=e)}function Za(e){e.tag===22?(te(eo,eo.current),te(qa,e),Ja===null&&(Ja=e)):Qa(e)}function Qa(){te(eo,eo.current),te(qa,qa.current)}function $a(e){z(qa),Ja===e&&(Ja=null),z(eo)}var eo=R(0);function to(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var no=0,ro=null,io=null,ao=null,oo=!1,so=!1,co=!1,lo=0,uo=0,fo=null,po=0;function mo(){throw Error(a(321))}function ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,a){return no=a,ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ns:Ps,co=!1,a=n(r,i),co=!1,so&&(a=vo(t,n,r,i)),_o(e),a}function _o(e){P.H=Ms;var t=io!==null&&io.next!==null;if(no=0,ao=io=ro=null,oo=!1,uo=0,fo=null,t)throw Error(a(300));e===null||Zs||(e=e.dependencies,e!==null&&Gi(e)&&(Zs=!0))}function vo(e,t,n,r){ro=e;var i=0;do{if(so&&(fo=null),uo=0,so=!1,25<=i)throw Error(a(301));if(i+=1,ao=io=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Fs,o=t(n,r)}while(so);return o}function yo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(io===null?null:io.memoizedState)!==e&&(ro.flags|=1024),t}function bo(){var e=lo!==0;return lo=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(oo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}oo=!1}no=0,ao=io=ro=null,so=!1,uo=lo=0,fo=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ao===null?ro.memoizedState=ao=e:ao=ao.next=e,ao}function wo(){if(io===null){var e=ro.alternate;e=e===null?null:e.memoizedState}else e=io.next;var t=ao===null?ro.memoizedState:ao.next;if(t!==null)ao=t,io=e;else{if(e===null)throw ro.alternate===null?Error(a(467)):Error(a(310));io=e,e={memoizedState:io.memoizedState,baseState:io.baseState,baseQueue:io.baseQueue,queue:io.queue,next:null},ao===null?ro.memoizedState=ao=e:ao=ao.next=e}return ao}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=uo;return uo+=1,fo===null&&(fo=[]),e=_a(fo,e,t),t=ro,(ao===null?t.memoizedState:ao.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ns:Ps),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===x)return J(e)}throw Error(a(438,String(e)))}function Oo(e){var t=null,n=ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ro.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=To(),ro.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=O;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),io,e)}function jo(e,t,n){var r=e.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(no&f)===f:(Rl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===na&&(d=!0);else if((no&p)===p){u=u.next,p===na&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,ro.lanes|=p,Kl|=p;f=u.action,co&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,ro.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!mr(o,e.memoizedState)&&(Zs=!0,d&&(n=ra,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mo(e){var t=wo(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);mr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=ro,i=wo(),o=Ti;if(o){if(n===void 0)throw Error(a(407));n=n()}else n=t();var s=!mr((io||i).memoizedState,n);if(s&&(i.memoizedState=n,Zs=!0),i=i.queue,is(Io.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||ao!==null&&ao.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,i,n,t),null),Il===null)throw Error(a(349));o||no&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ro.updateQueue,t===null?(t=To(),ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mr(e,n)}catch{return!0}}function Ro(e){var t=Jr(e,2);t!==null&&hu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),co){Me(!0);try{n()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,io,typeof r==`function`?r:ko)}function Vo(e,t,n,r,i){if(ks(e))throw Error(a(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(Ti){var n=Il.formState;if(n!==null){a:{var r=ro;if(Ti){if(wi){b:{for(var i=wi,a=Di;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){wi=lf(i.nextSibling),r=i.data===`F!`;break a}}ki(r)}r=!1}r&&(t=n[0])}}return n=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Es.bind(null,ro,r),r.dispatch=n,r=zo(!1),a=Os.bind(null,ro,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),io,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===fa?ma:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ro.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=io;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ro.updateQueue,t===null&&(t=To(),ro.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();ro.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;io!==null&&r!==null&&ho(r,io.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(ro.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){ro.flags|=4;var t=ro.updateQueue;if(t===null)t=To(),ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(Fl&2)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ho(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ho(t,r[1]))return r[0];if(r=e(),co){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||no&1073741824&&!(Rl&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),ro.lanes|=e,Kl|=e,n)}function hs(e,t,n,r){return mr(n,t)?n:Ha.current===null?!(no&42)||no&1073741824&&!(Rl&261930)?(Zs=!0,e.memoizedState=n):(e=mu(),ro.lanes|=e,Kl|=e,t):(e=ms(e,n,r),mr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Os(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,oa(c,r),pu(e)):Ds(e,t,r,pu(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=ys(e).queue;gs(e,i,t,I,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},pu())}function xs(){return J($f)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Na(n);var r=Pa(t,e,n);r!==null&&(hu(r,t,n),Fa(r,t,n)),t={cache:Qi()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=qr(e,t,n,r),n!==null&&(hu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,pu())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,mr(s,o))return Kr(e,t,i,0),Il===null&&Gr(),!1}catch{}if(n=qr(e,t,i,r),n!==null)return hu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(a(479))}else t=qr(e,n,r,2),t!==null&&hu(t,e,2)}function ks(e){var t=e.alternate;return e===ro||t!==null&&t===ro}function As(e,t){so=oo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}var Ms={readContext:J,use:Do,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useLayoutEffect:mo,useInsertionEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useSyncExternalStore:mo,useId:mo,useHostTransitionStatus:mo,useFormState:mo,useActionState:mo,useOptimistic:mo,useMemoCache:mo,useCacheRefresh:mo};Ms.useEffectEvent=mo;var Ns={readContext:J,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:J,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(co){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(co){Me(!0);try{n(t)}finally{Me(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,ro,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Es.bind(null,ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,ro,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ro,i=Co();if(Ti){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Il===null)throw Error(a(349));Rl&127||Po(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Il.identifierPrefix;if(Ti){var n=_i,r=gi;n=(r&~(1<<32-Ne(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=lo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=po++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,ro)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(Fl&2)throw Error(a(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:J,use:Do,useCallback:fs,useContext:J,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),io.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ps.useEffectEvent=os;var Fs={readContext:J,use:Do,useCallback:fs,useContext:J,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return io===null?ms(n,e,t):hs(n,io.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return io===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,io,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Fs.useEffectEvent=os;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Na(r);i.payload=t,n!=null&&(i.callback=n),t=Pa(e,i,r),t!==null&&(hu(t,e,r),Fa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Na(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pa(e,i,r),t!==null&&(hu(t,e,r),Fa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Na(n);r.tag=2,t!=null&&(r.callback=t),t=Pa(e,r,n),t!==null&&(hu(t,e,n),Fa(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!K(n,r)||!K(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Vr(e)}function Hs(e){console.error(e)}function Us(e){Vr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=Na(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=Na(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Wi(t,n,i,!0),n=qa.current,n!==null){switch(n.tag){case 31:case 13:return Ja===null?Du():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===ha?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,i)),!1;case 22:return n.flags|=65536,r===ha?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ku(e,r,i)),!1}throw Error(a(435,n.tag))}return Ku(e,r,i),Du(),!1}if(Ti)return t=qa.current,t===null?(r!==Oi&&(t=Error(a(423),{cause:r}),Ii(li(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=li(r,n),i=Ks(e.stateNode,r,i),Ia(e,i),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Oi&&(e=Error(a(422),{cause:r}),Ii(li(e,n)))),!1;var o=Error(a(520),{cause:r});if(o=li(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=li(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Ks(n.stateNode,r,e),Ia(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=qs(i),Js(i,e,n,r),Ia(n,i),!1}n=n.return}while(n!==null);return!1}var Xs=Error(a(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?ka(t,null,n,r):Oa(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ki(t),r=go(e,t,n,o,a,i),s=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(Ti&&s&&bi(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ei(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=ri(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!wc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?K:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=ti(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(K(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,wc(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ua(t,a===null?null:a.cachePool),a===null?Ga():Wa(t,a),Za(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ua(t,null),Ga(),Qa(t)):(ua(t,a.cachePool),Wa(t,a),Qa(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=la();return a=a===null?null:{parent:Zi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ua(t,null),Ga(),Za(t),e!==null&&Wi(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Oa(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,$a(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Ti){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if(Xa(t),(e=wi)?(e=af(e,Di),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hi===null?null:{id:gi,overflow:_i},retryLane:536870912,hydrationErrors:null},n=oi(e),n.return=t,t.child=n,Ci=t,wi=null)):e=null,e===null)throw ki(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Xa(t),i)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(Zs||Wi(e,t,n,!1),i=(n&e.childLanes)!==0,Zs||i){if(r=Il,r!==null&&(s=qe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Jr(e,s),hu(r,e,s),Xs;Du(),t=oc(e,t,n)}else e=o.treeContext,wi=lf(s.nextSibling),Ci=t,Ti=!0,Ei=null,Di=!1,e!==null&&Si(t,e),t=ac(t,r),t.flags|=4096;return t}return e=ti(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(a(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return Ki(t),n=go(e,t,n,r,void 0,i),r=bo(),e!==null&&!Zs?(xo(e,t,i),Cc(e,t,i)):(Ti&&r&&bi(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return Ki(t),t.updateQueue=null,n=vo(t,r,n,i),_o(e),r=bo(),e!==null&&!Zs?(xo(e,t,a),Cc(e,t,a)):(Ti&&r&&bi(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(Ki(t),t.stateNode===null){var a=Zr,o=n.contextType;typeof o==`object`&&o&&(a=J(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ja(t),o=n.contextType,a.context=typeof o==`object`&&o?J(o):Zr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),za(t,r,a,i),Ra(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=Zr,typeof u==`object`&&u&&(o=J(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),Aa=!1;var f=t.memoizedState;a.state=f,za(t,r,a,i),Ra(),l=t.memoizedState,s||f!==l||Aa?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Aa||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ma(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Zr,typeof l==`object`&&l&&(c=J(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),Aa=!1,f=t.memoizedState,a.state=f,za(t,r,a,i),Ra();var p=t.memoizedState;o!==d||f!==p||Aa||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Aa||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Oa(t,e.child,null,i),t.child=Oa(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Pi(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:da()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function gc(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(eo.current&2)!=0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Ti){if(i?Ya(t):Qa(t),(e=wi)?(e=af(e,Di),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hi===null?null:{id:gi,overflow:_i},retryLane:536870912,hydrationErrors:null},n=oi(e),n.return=t,t.child=n,Ci=t,wi=null)):e=null,e===null)throw ki(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(Qa(t),i=t.mode,c=vc({mode:`hidden`,children:c},i),r=ii(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Ya(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Ya(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(Qa(t),c=r.fallback,i=t.mode,r=vc({mode:`visible`,children:r.children},i),c=ii(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Oa(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(Qa(t),t.child=e.child,t.flags|=128,t=null);else if(Ya(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(a(419)),r.stack=``,r.digest=s,Ii({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||Wi(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Il,s!==null&&(r=qe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Jr(e,r),hu(s,e,r),Xs;of(c)||Du(),t=yc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,wi=lf(c.nextSibling),Ci=t,Ti=!0,Ei=null,Di=!1,e!==null&&Si(t,e),t=_c(t,r.children),t.flags|=4096);return t}return i?(Qa(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=ti(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ii(c,i,n,null),c.flags|=2):c=ti(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(i=c.cachePool,i===null?i=da():(l=Zi._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Ya(t),n=e.child,e=n.sibling,n=ti(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=$r(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Oa(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hi(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=eo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,te(eo,o),Qs(e,t,r,n),r=Ti?fi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&to(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&to(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Wi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=ti(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ti(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Gi(e))):!0}function Tc(e,t,n){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Bi(t,Zi,e.memoizedState.cache),Pi();break;case 27:case 5:ce(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Bi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xa(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Ya(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Ya(t),t.flags|=128,null);Ya(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Wi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),te(eo,eo.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Bi(t,Zi,e.memoizedState.cache)}return Cc(e,t,n)}function Ec(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!wc(e,n)&&!(t.flags&128))return Zs=!1,Tc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Ti&&t.flags&1048576&&yi(t,fi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=va(t.elementType),t.type=e,typeof e==`function`)ei(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===S){t.tag=11,t=$s(null,t,e,r,n);break a}else if(i===T){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=M(e)||e,Error(a(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Bs(r,t.pendingProps),dc(e,t,r,i,n);case 3:a:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error(a(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,Ma(e,t),za(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Bi(t,Zi,r),r!==o.cache&&Ui(t,[Zi],n,!0),Ra(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==i){i=li(Error(a(424)),t),Ii(i),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(wi=lf(e.firstChild),Ci=t,Ti=!0,Ei=null,Di=!0,n=ka(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pi(),r===i){t=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ti||(n=t.type,e=t.pendingProps,r=Vd(ie.current).createElement(n),r[$e]=t,r[et]=e,Fd(r,n,e),ft(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ce(t),e===null&&Ti&&(r=t.stateNode=pf(t.type,t.pendingProps,ie.current),Ci=t,Di=!0,i=wi,Qd(t.type)?(uf=i,wi=lf(r.firstChild)):wi=i),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ti&&((i=r=wi)&&(r=nf(r,t.type,t.pendingProps,Di),r===null?i=!1:(t.stateNode=r,Ci=t,wi=lf(r.firstChild),Di=!1,i=!0)),i||ki(t)),ce(t),i=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(i,o)?r=null:s!==null&&Wd(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=go(e,t,yo,null,null,n),$f._currentValue=i),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Ti&&((e=n=wi)&&(n=rf(n,t.pendingProps,Di),n===null?e=!1:(t.stateNode=n,Ci=t,wi=null,e=!0)),e||ki(t)),null;case 13:return gc(e,t,n);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Oa(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Bi(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Ki(t),i=J(i),r=r(i),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return Ki(t),r=J(Zi),e===null?(i=la(),i===null&&(i=Il,o=Qi(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},ja(t),Bi(t,Zi,i)):((e.lanes&n)!==0&&(Ma(e,t),za(t,null,null,n),Ra()),i=e.memoizedState,o=t.memoizedState,i.parent===r?(r=o.cache,Bi(t,Zi,r),r!==i.cache&&Ui(t,[Zi],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Bi(t,Zi,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function Dc(e){e.flags|=4}function Oc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw ya=ha,pa}else e.flags&=-16777217}function kc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t))if(wu())e.flags|=8192;else throw ya=ha,pa}function Ac(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:He(),e.lanes|=t,Xl|=t)}function jc(e,t){if(!Ti)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Mc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Nc(e,t,n){var r=t.pendingProps;switch(xi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mc(t),null;case 1:return Mc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Vi(Zi),se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ni(t)?Dc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fi())),Mc(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Dc(t),o===null?(Mc(t),Oc(t,i,null,r,n)):(Mc(t),kc(t,o))):o?o===e.memoizedState?(Mc(t),t.flags&=-16777217):(Dc(t),Mc(t),kc(t,o)):(e=e.memoizedProps,e!==r&&Dc(t),Mc(t),Oc(t,i,e,r,n)),null;case 27:if(le(t),n=ie.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Mc(t),null}e=ne.current,Ni(t)?Ai(t,e):(e=pf(i,r,n),t.stateNode=e,Dc(t))}return Mc(t),null;case 5:if(le(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Mc(t),null}if(o=ne.current,Ni(t))Ai(t,o);else{var s=Vd(ie.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Dc(t)}}return Mc(t),Oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=ie.current,Ni(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ci,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||ki(t,!0)}else e=Vd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Mc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ni(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[$e]=t}else Pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),e=!1}else n=Fi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?($a(t),t):($a(t),null);if(t.flags&128)throw Error(a(558))}return Mc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ni(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[$e]=t}else Pi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Mc(t),i=!1}else i=Fi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?($a(t),t):($a(t),null)}return $a(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ac(t,t.updateQueue),Mc(t),null);case 4:return se(),e===null&&Sd(t.stateNode.containerInfo),Mc(t),null;case 10:return Vi(t.type),Mc(t),null;case 19:if(z(eo),r=t.memoizedState,r===null)return Mc(t),null;if(i=(t.flags&128)!=0,o=r.rendering,o===null)if(i)jc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=to(e),o!==null){for(t.flags|=128,jc(r,!1),e=o.updateQueue,t.updateQueue=e,Ac(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ni(n,e),n=n.sibling;return te(eo,eo.current&1|2),Ti&&vi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xe()>nu&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304)}else{if(!i)if(e=to(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ac(t,e),jc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ti)return Mc(t),null}else 2*xe()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,i=!0,jc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Mc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xe(),e.sibling=null,n=eo.current,te(eo,i?n&1|2:n&1),Ti&&vi(t,r.treeForkCount),e);case 22:case 23:return $a(t),Ka(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Mc(t),t.subtreeFlags&6&&(t.flags|=8192)):Mc(t),n=t.updateQueue,n!==null&&Ac(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&z(ca),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vi(Zi),Mc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Pc(e,t){switch(xi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(Zi),se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if($a(t),t.alternate===null)throw Error(a(340));Pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($a(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Pi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return z(eo),null;case 4:return se(),null;case 10:return Vi(t.type),null;case 22:case 23:return $a(t),Ka(),e!==null&&z(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vi(Zi),null;case 25:return null;default:return null}}function Fc(e,t){switch(xi(t),t.tag){case 3:Vi(Zi),se();break;case 26:case 27:case 5:le(t);break;case 4:se();break;case 31:t.memoizedState!==null&&$a(t);break;case 13:$a(t);break;case 19:z(eo);break;case 10:Vi(t.type);break;case 22:case 23:$a(t),Ka(),e!==null&&z(ca);break;case 24:Vi(Zi)}}function Ic(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Gu(t,t.return,e)}}function Lc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Gu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Gu(t,t.return,e)}}function Rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Va(t,n)}catch(t){Gu(e,e.return,t)}}}function zc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Gu(e,t,n)}}function Bc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Gu(e,t,n)}}function Vc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Gu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Gu(e,t,n)}else n.current=null}function Hc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Gu(e,e.return,t)}}function Uc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[et]=t}catch(t){Gu(e,e.return,t)}}function Wc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Gc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Wc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gt));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qc(e,t,n),e=e.sibling;e!==null;)qc(e,t,n),e=e.sibling}function Jc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[$e]=e,t[et]=n}catch(t){Gu(e,e.return,t)}}var Yc=!1,Xc=!1,Zc=!1,Qc=typeof WeakSet==`function`?WeakSet:Set,$c=null;function el(e,t){if(e=e.containerInfo,zd=cp,e=vr(e),yr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,$c=t;$c!==null;)if(t=$c,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,$c=e;else for(;$c!==null;){switch(t=$c,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,i);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Gu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(a(163))}if(e=t.sibling,e!==null){e.return=t.return,$c=e;break}
vendor: 5,678 bytes, line 9
9$c=t.return}}function tl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:gl(e,n),r&4&&Ic(5,n);break;case 1:if(gl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Gu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Gu(n,n.return,e)}}r&64&&Rc(n),r&512&&Bc(n,n.return);break;case 3:if(gl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Va(e,t)}catch(e){Gu(n,n.return,e)}}break;case 27:t===null&&r&4&&Jc(n);case 26:case 5:gl(e,n),t===null&&r&4&&Hc(n),r&512&&Bc(n,n.return);break;case 12:gl(e,n);break;case 31:gl(e,n),r&4&&sl(e,n);break;case 13:gl(e,n),r&4&&cl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||Yc,!r){t=t!==null&&t.memoizedState!==null||Xc,i=Yc;var a=Xc;Yc=r,(Xc=t)&&!a?vl(e,n,(n.subtreeFlags&8772)!=0):gl(e,n),Yc=i,Xc=a}break;case 30:break;default:gl(e,n)}}function nl(e){var t=e.alternate;t!==null&&(e.alternate=null,nl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&st(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var rl=null,il=!1;function al(e,t,n){for(n=n.child;n!==null;)ol(e,t,n),n=n.sibling}function ol(e,t,n){if(je&&typeof je.onCommitFiberUnmount==`function`)try{je.onCommitFiberUnmount(Ae,n)}catch{}switch(n.tag){case 26:Xc||Vc(n,t),al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xc||Vc(n,t);var r=rl,i=il;Qd(n.type)&&(rl=n.stateNode,il=!1),al(e,t,n),mf(n.stateNode),rl=r,il=i;break;case 5:Xc||Vc(n,t);case 6:if(r=rl,i=il,rl=null,al(e,t,n),rl=r,il=i,rl!==null)if(il)try{(rl.nodeType===9?rl.body:rl.nodeName===`HTML`?rl.ownerDocument.body:rl).removeChild(n.stateNode)}catch(e){Gu(n,t,e)}else try{rl.removeChild(n.stateNode)}catch(e){Gu(n,t,e)}break;case 18:rl!==null&&(il?(e=rl,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Pp(e)):$d(rl,n.stateNode));break;case 4:r=rl,i=il,rl=n.stateNode.containerInfo,il=!0,al(e,t,n),rl=r,il=i;break;case 0:case 11:case 14:case 15:Lc(2,n,t),Xc||Lc(4,n,t),al(e,t,n);break;case 1:Xc||(Vc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&zc(n,t,r)),al(e,t,n);break;case 21:al(e,t,n);break;case 22:Xc=(r=Xc)||n.memoizedState!==null,al(e,t,n),Xc=r;break;default:al(e,t,n)}}function sl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pp(e)}catch(e){Gu(t,t.return,e)}}}function cl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pp(e)}catch(e){Gu(t,t.return,e)}}function ll(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Qc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Qc),t;default:throw Error(a(435,e.tag))}}function ul(e,t){var n=ll(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function dl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){rl=c.stateNode,il=!1;break a}break;case 5:rl=c.stateNode,il=!1;break a;case 3:case 4:rl=c.stateNode.containerInfo,il=!0;break a}c=c.return}if(rl===null)throw Error(a(160));ol(o,s,i),rl=null,il=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),r&4&&(Lc(3,e,e.return),Ic(3,e),Lc(5,e,e.return));break;case 1:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&64&&Yc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=fl;if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:o=i.getElementsByTagName(`title`)[0],(!o||o[ot]||o[$e]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector(`head > title`))),Fd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=i.createElement(r),Fd(o,r,n),i.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=i.createElement(r),Fd(o,r,n),i.head.appendChild(o);break;default:throw Error(a(468,r))}o[$e]=e,ft(o),r=o}e.stateNode=r}else Uf(i,e.type,e.stateNode);else e.stateNode=Lf(i,r,e.memoizedProps);
vendor: 22,725 bytes, line 9
9else o===r?r===null&&e.stateNode!==null&&Uc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(i,e.type,e.stateNode):Lf(i,r,e.memoizedProps))}break;case 27:dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),n!==null&&r&4&&Uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(dl(t,e),ml(e),r&512&&(Xc||n===null||Vc(n,n.return)),e.flags&32){i=e.stateNode;try{Lt(i,``)}catch(t){Gu(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Uc(e,i,n===null?i:n.memoizedProps)),r&1024&&(Zc=!0);break;case 6:if(dl(t,e),ml(e),r&4){if(e.stateNode===null)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Gu(e,e.return,t)}}break;case 3:if(Vf=null,i=fl,fl=_f(t.containerInfo),dl(t,e),fl=i,ml(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pp(t.containerInfo)}catch(t){Gu(e,e.return,t)}Zc&&(Zc=!1,hl(e));break;case 4:r=fl,fl=_f(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 31:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 13:dl(t,e),ml(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=xe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Yc,d=Xc;if(Yc=u||i,Xc=d||l,dl(t,e),Xc=d,Yc=u,ml(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||Yc||Xc||_l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Gu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Gu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?ef(m,!0):ef(l.stateNode,!1)}catch(e){Gu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ul(e,n))));break;case 19:dl(t,e),ml(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ul(e,r)));break;case 30:break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Wc(r)){n=r;break}r=r.return}if(n==null)throw Error(a(160));switch(n.tag){case 27:var i=n.stateNode;qc(e,Gc(e),i);break;case 5:var o=n.stateNode;n.flags&32&&(Lt(o,``),n.flags&=-33),qc(e,Gc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Kc(e,Gc(e),s);break;default:throw Error(a(161))}}catch(t){Gu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tl(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Lc(4,t,t.return),_l(t);break;case 1:Vc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&zc(t,t.return,n),_l(t);break;case 27:mf(t.stateNode);case 26:case 5:Vc(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function vl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:vl(i,a,n),Ic(4,a);break;case 1:if(vl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Gu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ba(c[i],s)}catch(e){Gu(r,r.return,e)}}n&&o&64&&Rc(a),Bc(a,a.return);break;case 27:Jc(a);case 26:case 5:vl(i,a,n),n&&r===null&&o&4&&Hc(a),Bc(a,a.return);break;case 12:vl(i,a,n);break;case 31:vl(i,a,n),n&&o&4&&sl(i,a);break;case 13:vl(i,a,n),n&&o&4&&cl(i,a);break;case 22:a.memoizedState===null&&vl(i,a,n),Bc(a,a.return);break;case 30:break;default:vl(i,a,n)}t=t.sibling}}function yl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$i(n))}function bl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function xl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sl(e,t,n,r),t=t.sibling}function Sl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,n,r),i&2048&&Ic(9,t);break;case 1:xl(e,t,n,r);break;case 3:xl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e)));break;case 12:if(i&2048){xl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Gu(t,t.return,e)}}else xl(e,t,n,r);break;case 31:xl(e,t,n,r);break;case 13:xl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?xl(e,t,n,r):(a._visibility|=2,Cl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?xl(e,t,n,r):wl(e,t),i&2048&&yl(o,t);break;case 24:xl(e,t,n,r),i&2048&&bl(t.alternate,t);break;default:xl(e,t,n,r)}}function Cl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Cl(a,o,s,c,i),Ic(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Cl(a,o,s,c,i)):u._visibility&2?Cl(a,o,s,c,i):wl(a,o),i&&l&2048&&yl(o.alternate,o);break;case 24:Cl(a,o,s,c,i),i&&l&2048&&bl(o.alternate,o);break;default:Cl(a,o,s,c,i)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:wl(n,r),i&2048&&yl(r.alternate,r);break;case 24:wl(n,r),i&2048&&bl(r.alternate,r);break;default:wl(n,r)}t=t.sibling}}var Tl=8192;function El(e,t,n){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)Dl(e,t,n),e=e.sibling}function Dl(e,t,n){switch(e.tag){case 26:El(e,t,n),e.flags&Tl&&e.memoizedState!==null&&Kf(n,fl,e.memoizedState,e.memoizedProps);break;case 5:El(e,t,n);break;case 3:case 4:var r=fl;fl=_f(e.stateNode.containerInfo),El(e,t,n),fl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Tl,Tl=16777216,El(e,t,n),Tl=r):El(e,t,n));break;default:El(e,t,n)}}function Ol(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Lc(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jl(e)):kl(e);break;default:kl(e)}}function jl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$c=r,Ml(r,e)}Ol(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Lc(8,t,t.return),jl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jl(t));break;default:jl(t)}e=e.sibling}}function Ml(e,t){for(;$c!==null;){var n=$c;switch(n.tag){case 0:case 11:case 15:Lc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:$i(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$c=r;else a:for(n=e;$c!==null;){r=$c;var i=r.sibling,a=r.return;if(nl(r),r===n){$c=null;break a}if(i!==null){i.return=a,$c=i;break a}$c=a}}}var Nl={getCacheForType:function(e){var t=J(Zi),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return J(Zi).controller.signal}},Pl=typeof WeakMap==`function`?WeakMap:Map,Fl=0,Il=null,Ll=null,Rl=0,zl=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,X=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return Fl&2&&Rl!==0?Rl&-Rl:P.T===null?Xe():dd()}function mu(){if(Yl===0)if(!(Rl&536870912)||Ti){var e=Ie;Ie<<=1,!(Ie&3932160)&&(Ie=262144),Yl=e}else Yl=536870912;return e=qa.current,e!==null&&(e.flags|=32),Yl}function hu(e,t,n){(e===Il&&(zl===2||zl===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,Rl,Yl,!1)),W(e,n),(!(Fl&2)||e!==Il)&&(e===Il&&(!(Fl&2)&&(ql|=n),Gl===4&&yu(e,Rl,Yl,!1)),id(e))}function gu(e,t,n){if(Fl&6)throw Error(a(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Be(e,t),i=r?Au(e,t):Ou(e,t,!0),o=r;do{if(i===0){Hl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!vu(n)){i=Ou(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;i=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,i=4;break a}o=Ql,Ql=i,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=i,o){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(i=eu+300-xe(),10<i)){if(yu(r,t,Yl,!Vl),ze(r,0,!0)!==0)break a;su=t,r.timeoutHandle=qd(_u.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),i);break a}_u(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}}break}while(1);id(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Dl(t,a,d);var m=(a&62914560)===a?eu-xe():(a&4194048)===a?tu-xe():0;if(m=Jf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!mr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ne(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ge(e,n,t)}function bu(){return Fl&6?!0:(Z(0,!1),!1)}function xu(){if(Ll!==null){if(zl===0)var e=Ll.return;else e=Ll,zi=Ri=null,So(e),Sa=null,Ca=0,e=Ll;for(;e!==null;)Fc(e.alternate,e),e=e.return;Ll=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),Il=e,Ll=n=ti(e.current,null),Rl=t,zl=0,Bl=null,Vl=!1,Hl=Be(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ne(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,Gr(),n}function Cu(e,t){ro=null,P.H=Ms,t===fa||t===ma?(t=ba(),zl=3):t===pa?(t=ba(),zl=4):zl=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,Ll===null&&(Gl=1,Ws(e,li(t,e.current)))}function wu(){var e=qa.current;return e===null?!0:(Rl&4194048)===Rl?Ja===null:(Rl&62914560)===Rl||Rl&536870912?e===Ja:!1}function Tu(){var e=P.H;return P.H=Ms,e===null?Ms:e}function Eu(){var e=P.A;return P.A=Nl,e}function Du(){Gl=4,Vl||(Rl&4194048)!==Rl&&qa.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||Il===null||yu(Il,Rl,Yl,!1)}function Ou(e,t,n){var r=Fl;Fl|=2;var i=Tu(),a=Eu();(Il!==e||Rl!==t)&&(ru=null,Su(e,t)),t=!1;var o=Gl;a:do try{if(zl!==0&&Ll!==null){var s=Ll,c=Bl;switch(zl){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:qa.current===null&&(t=!0);var l=zl;if(zl=0,Bl=null,Pu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=zl,zl=0,Bl=null,Pu(e,s,c,l)}}ku(),o=Gl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,zi=Ri=null,Fl=r,P.H=i,P.A=a,Ll===null&&(Il=null,Rl=0,Gr()),o}function ku(){for(;Ll!==null;)Mu(Ll)}function Au(e,t){var n=Fl;Fl|=2;var r=Tu(),i=Eu();Il!==e||Rl!==t?(ru=null,nu=xe()+500,Su(e,t)):Hl=Be(e,t);a:do try{if(zl!==0&&Ll!==null){t=Ll;var o=Bl;b:switch(zl){case 1:zl=0,Bl=null,Pu(e,t,o,1);break;case 2:case 9:if(ga(o)){zl=0,Bl=null,Nu(t);break}t=function(){zl!==2&&zl!==9||Il!==e||(zl=7),id(e)},o.then(t,t);break a;case 3:zl=7;break a;case 4:zl=5;break a;case 7:ga(o)?(zl=0,Bl=null,Nu(t)):(zl=0,Bl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(Ll.tag){case 26:s=Ll.memoizedState;case 5:case 27:var c=Ll;if(s?Gf(s):c.stateNode.complete){zl=0,Bl=null;var l=c.sibling;if(l!==null)Ll=l;else{var u=c.return;u===null?Ll=null:(Ll=u,Fu(u))}break b}}zl=0,Bl=null,Pu(e,t,o,5);break;case 6:zl=0,Bl=null,Pu(e,t,o,6);break;case 8:xu(),Gl=6;break a;default:throw Error(a(462))}}ju();break}catch(t){Cu(e,t)}while(1);return zi=Ri=null,P.H=r,P.A=i,Fl=n,Ll===null?(Il=null,Rl=0,Gr(),Gl):0}function ju(){for(;Ll!==null&&!ye();)Mu(Ll)}function Mu(e){var t=Ec(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Fu(e):Ll=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Rl);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Rl);break;case 5:So(t);default:Fc(n,t),t=Ll=ni(t,Wl),t=Ec(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Fu(e):Ll=t}function Pu(e,t,n,r){zi=Ri=null,So(t),Sa=null,Ca=0;var i=t.return;try{if(Ys(e,i,t,n,Rl)){Gl=1,Ws(e,li(n,e.current)),Ll=null;return}}catch(t){if(i!==null)throw Ll=i,t;Gl=1,Ws(e,li(n,e.current)),Ll=null;return}t.flags&32768?(Ti||r===1?e=!0:Hl||Rl&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Vl);return}e=t.return;var n=Nc(t.alternate,t,Wl);if(n!==null){Ll=n;return}if(t=t.sibling,t!==null){Ll=t;return}Ll=t=e}while(t!==null);Gl===0&&(Gl=5)}function Iu(e,t){do{var n=Pc(e.alternate,e);if(n!==null){n.flags&=32767,Ll=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ll=e;return}Ll=e=n}while(e!==null);Gl=6,Ll=null}function Lu(e,t,n,r,i,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(au!==0);if(Fl&6)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(o=t.lanes|t.childLanes,o|=Wr,We(e,n,o,s,c,l),e===Il&&(Ll=Il=null,Rl=0),X=t,ou=e,su=n,cu=o,lu=i,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(we,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,i=F.p,F.p=2,s=Fl,Fl|=4;try{el(e,t,n)}finally{Fl=s,F.p=i,P.T=r}}au=1,Ru(),zu(),Bu()}}function Ru(){if(au===1){au=0;var e=ou,t=X,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Fl;Fl|=4;try{pl(t,e);var a=Bd,o=vr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&_r(s.ownerDocument.documentElement,s)){if(c!==null&&yr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=gr(s,h),v=gr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!zd,Bd=zd=null}finally{Fl=i,F.p=r,P.T=n}}e.current=t,au=2}}function zu(){if(au===2){au=0;var e=ou,t=X,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Fl;Fl|=4;try{tl(e,t.alternate,t)}finally{Fl=i,F.p=r,P.T=n}}au=3}}function Bu(){if(au===4||au===3){au=0,be();var e=ou,t=X,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,X=ou=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),Ye(n),t=t.stateNode,je&&typeof je.onCommitFiberRoot==`function`)try{je.onCommitFiberRoot(Ae,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}su&3&&Hu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,Z(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(au!==5)return!1;var e=ou,t=cu;cu=0;var n=Ye(su),r=P.T,i=F.p;try{F.p=32>n?32:n,P.T=null,n=lu,lu=null;var o=ou,s=su;if(au=0,X=ou=null,su=0,Fl&6)throw Error(a(331));var c=Fl;if(Fl|=4,Al(o.current),Sl(o,o.current,s,n),Fl=c,Z(0,!1),je&&typeof je.onPostCommitFiberRoot==`function`)try{je.onPostCommitFiberRoot(Ae,o)}catch{}return!0}finally{F.p=i,P.T=r,Vu(e,t)}}function Wu(e,t,n){t=li(n,t),t=Ks(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(W(e,2),id(e))}function Gu(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=li(n,e),n=qs(2),r=Pa(t,n,2),r!==null&&(Js(n,r,t,e),W(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Il===e&&(Rl&n)===n&&(Gl===4||Gl===3&&(Rl&62914560)===Rl&&300>xe()-eu?!(Fl&2)&&Su(e,0):Jl|=n,Xl===Rl&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=He()),e=Jr(e,t),e!==null&&(W(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return _e(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,ud())}function Z(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ne(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Rl,a=ze(r,r===Il?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,ld(r,a));r=r.next}while(n);nd=!1}}function ad(){od()}function od(){td=ed=!1;var e=0;rd!==0&&Kd()&&(e=rd);for(var t=xe(),n=null,r=Qu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||Z(e,!1),rd!==0&&(rd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ne(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ve(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Il,n=Rl,n=ze(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(zl===2||zl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ve(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Be(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ve(r),Ye(n)){case 2:case 8:n=V;break;case 32:n=we;break;case 268435456:n=De;break;default:n=we}return r=cd.bind(null,e),n=_e(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ve(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=Rl;return r=ze(e,e===Il?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,xe()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Xd(function(){Fl&6?_e(Ce,ad):od()})}function dd(){if(rd===0){var e=na;e===0&&(e=Fe,Fe<<=1,!(Fe&261888)&&(Fe=256)),rd=e}return rd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Wt(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Q(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[et]||null).action),o=r.submitter;o&&(t=(t=o[et]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?pd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<zr.length;md++){var hd=zr[md];Br(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Br(jr,`onAnimationEnd`),Br(Mr,`onAnimationIteration`),Br(Nr,`onAnimationStart`),Br(`dblclick`,`onDoubleClick`),Br(`focu
9sin`,`onFocus`),Br(`focusout`,`onBlur`),Br(Pr,`onTransitionRun`),Br(Fr,`onTransitionStart`),Br(Ir,`onTransitionCancel`),Br(Lr,`onTransitionEnd`),gt(`onMouseEnter`,[`mouseout`,`mouseover`]),gt(`onMouseLeave`,[`mouseout`,`mouseover`]),gt(`onPointerEnter`,[`pointerout`,`pointerover`]),gt(`onPointerLeave`,[`pointerout`,`pointerover`]),ht(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ht(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ht(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ht(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`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(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Vr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Vr(e)}i.currentTarget=null,a=c}}}}function yd(e,t){var n=t[nt];n===void 0&&(n=t[nt]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,pt.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=ct(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}Qt(function(){var r=a,i=qt(n),o=[];a:{var c=Rr.get(e);if(c!==void 0){var l=pn,u=e;switch(e){case`keypress`:if(cn(n)===0)break a;case`keydown`:case`keyup`:l=jn;break;case`focusin`:u=`focus`,l=Sn;break;case`focusout`:u=`blur`,l=Sn;break;case`beforeblur`:case`afterblur`:l=Sn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Nn;break;case jr:case Mr:case Nr:l=Cn;break;case Lr:l=Pn;break;case`scroll`:case`scrollend`:l=hn;break;case`wheel`:l=Fn;break;case`copy`:case`cut`:case`paste`:l=wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Mn;break;case`toggle`:case`beforetoggle`:l=In}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=$t(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Kt&&(u=n.relatedTarget||n.fromElement)&&(ct(u)||u[tt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ct(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Mn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ut(l),h=u==null?c:ut(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(o,c,l,d,!1),u!==null&&f!==null&&Od(o,f,u,d,!0)}}a:{if(c=r?ut(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=nr;else if(Xn(c))if(rr)v=fr;else{v=ur;var y=lr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Vt(r.elementType)&&(v=nr):v=dr;if(v&&=v(e,r)){Zn(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Nt(c,`number`,c.value)}switch(y=r?ut(r):window,e){case`focusin`:(Xn(y)||y.contentEditable===`true`)&&(xr=y,Sr=r,Cr=null);break;case`focusout`:Cr=Sr=xr=null;break;case`mousedown`:wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:wr=!1,Tr(o,n,i);break;case`selectionchange`:if(br)break;case`keydown`:case`keyup`:Tr(o,n,i)}var b;if(Rn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Kn?Wn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Vn&&n.locale!==`ko`&&(Kn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Kn&&(b=sn()):(rn=i,an=`value`in rn?rn.value:rn.textContent,Kn=!0)),y=Ed(r,x),0<y.length&&(x=new Tn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Gn(n),b!==null&&(x.data=b)))),(b=Bn?qn(e,n):Jn(e,n))&&
vendor: 11,389 bytes, lines 9-10
9(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new Tn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),Q(o,e,r,n,i)}vd(o,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=$t(e,n),i!=null&&r.unshift(Td(e,i,a)),i=$t(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=$t(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=$t(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
10`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function Nd(e,t,n,r,i,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Lt(e,``+r);break;case`className`:St(e,`class`,r);break;case`tabIndex`:St(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:St(e,n,r);break;case`style`:Bt(e,r,o);break;case`data`:if(t!==`object`){St(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&Nd(e,t,`name`,i.name,i,null),Nd(e,t,`formEncType`,i.formEncType,i,null),Nd(e,t,`formMethod`,i.formMethod,i,null),Nd(e,t,`formTarget`,i.formTarget,i,null)):(Nd(e,t,`encType`,i.encType,i,null),Nd(e,t,`method`,i.method,i,null),Nd(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`onScroll`:r!=null&&yd(`scroll`,e);break;case`onScrollEnd`:r!=null&&yd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Wt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:yd(`beforetoggle`,e),yd(`toggle`,e),xt(e,`popover`,r);break;case`xlinkActuate`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:xt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Ht.get(n)||n,xt(e,n,r))}}function Pd(e,t,n,r,i,o){switch(n){case`style`:Bt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(a(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(a(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Lt(e,``+r);break;case`onScroll`:r!=null&&yd(`scroll`,e);break;case`onScrollEnd`:r!=null&&yd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),o=e[et]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,i),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):xt(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:yd(`error`,e),yd(`load`,e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Nd(e,t,o,s,n,null)}}i&&Nd(e,t,`srcSet`,n.srcSet,n,null),r&&Nd(e,t,`src`,n.src,n,null);return;case`input`:yd(`invalid`,e);var c=o=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(a(137,t));break;default:Nd(e,t,r,d,n,null)}}Mt(e,o,c,l,u,s,i,!1);return;case`select`:for(i in yd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Nd(e,t,i,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Pt(e,!!r,n,!0):Pt(e,!!r,t,!1);return;case`textarea`:for(s in yd(`invalid`,e),o=i=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(a(91));break;default:Nd(e,t,s,c,n,null)}It(e,r,i,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Nd(e,t,l,r,n,null)}return;case`dialog`:yd(`beforetoggle`,e),yd(`toggle`,e),yd(`cancel`,e),yd(`close`,e);break;case`iframe`:case`object`:yd(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)yd(gd[r],e);break;case`image`:yd(`error`,e),yd(`load`,e);break;case`details`:yd(`toggle`,e);break;case`embed`:case`source`:case`link`:yd(`error`,e),yd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(a(137,t));default:Nd(e,t,u,r,n,null)}return;default:if(Vt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Nd(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Nd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(a(137,t));break;default:m!==f&&Nd(e,t,p,m,r,f)}}jt(e,s,c,l,u,d,o,i);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Nd(e,t,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Nd(e,t,i,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Pt(e,!!n,n?[]:``,!1):Pt(e,!!n,t,!0)):Pt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Nd(e,t,c,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case`value`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(a(91));break;default:i!==o&&Nd(e,t,s,i,r,o)}Ft(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Nd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Nd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Nd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(a(137,t));break;default:Nd(e,t,u,p,r,m)}return;default:if(Vt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);
vendor: 4,463 bytes, line 10
10for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Nd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Nd(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e===Gd?!1:(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Pp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body);n=i}while(n);Pp(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),st(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ot])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;
vendor: 20,902 bytes, line 10
10e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(a(452));return e;case`head`:if(e=t.head,!e)throw Error(a(453));return e;case`body`:if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);st(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=F.d;F.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=bu();return e||t}function bf(e){var t=lt(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=At(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+At(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+At(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+At(n.imageSizes)+`"]`)):i+=`[href="`+At(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+At(r)+`"][href="`+At(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=dt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);ft(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=dt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),ft(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=dt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),ft(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var i=(i=ie.current)?_f(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=dt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=dt(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=dt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function jf(e){return`href="`+At(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),ft(t),e.head.appendChild(t))}function Ff(e){return`[src="`+At(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+At(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Fd(r,`style`,i),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=jf(n.href);var o=e.querySelector(Mf(i));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Nf(n),(i=hf.get(i))&&zf(r,i),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(i=e.querySelector(If(o)))?(t.instance=i,ft(i),i):(r=n,(i=hf.get(o))&&(r=p({},n),Bf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),ft(i),Fd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ot]||a[$e]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:x,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Ue(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ue(0),this.hiddenUpdates=Ue(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=$r(3,null,null,t),e.current=a,a.stateNode=e,t=Qi(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ja(a),e}function np(e){return e?(e=Zr,e):Zr}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Na(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Pa(e,r,t),n!==null&&(hu(n,e,t),Fa(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=Jr(e,67108864);t!==null&&hu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=pu();t=Je(t);var n=Jr(e,t);n!==null&&hu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,dp(e,t,n,r)}finally{F.p=a,P.T=i}}function up(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,dp(e,t,n,r)}finally{F.p=a,P.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)wd(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=lt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Re(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ne(o);s.entanglements[1]|=c,o&=~c}id(a),!(Fl&6)&&(nu=xe()+500,Z(0,!1))}}break;case 31:case 13:s=Jr(a,2),s!==null&&hu(s,a,2),bu(),ap(a,2)}if(a=fp(r),a===null&&wd(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function fp(e){return e=qt(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=ct(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Se()){case Ce:return 2;case V:return 8;case we:case Ee:return 32;case De:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`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 wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=lt(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=ct(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){sp(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Op(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kt=r,n.target.dispatchEvent(r),Kt=null}else return t=lt(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){Op(e)&&n.delete(t)}function Ap(){gp=!1,_p!==null&&Op(_p)&&(_p=null),vp!==null&&Op(vp)&&(vp=null),yp!==null&&Op(yp)&&(yp=null),bp.forEach(kp),xp.forEach(kp)}function jp(e,t){e.blockedOn===t&&(e.blockedOn=null,gp||(gp=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ap)))}var Mp=null;function Np(e){Mp!==e&&(Mp=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Mp===e&&(Mp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=lt(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Pp(e){function t(t){return jp(t,e)}_p!==null&&jp(_p,e),vp!==null&&jp(vp,e),yp!==null&&jp(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[et]||null;if(typeof a==`function`)o||Np(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[et]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Np(n)}}}function Fp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Ip(e){this._internalRoot=e}Lp.prototype.render=Ip.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var n=t.current;rp(n,pu(),e,t,null,null)},Lp.prototype.unmount=Ip.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),bu(),t[tt]=null}};function Lp(e){this._internalRoot=e}Lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Rp=r.version;if(Rp!==`19.2.7`)throw Error(a(527,Rp,`19.2.7`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(a(188)):(e=Object.keys(e).join(`,`),Error(a(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var zp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.7`};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bp.isDisabled&&Bp.supportsFiber)try{Ae=Bp.inject(zp),je=Bp}catch{}}e.createRoot=function(e,t){if(!o(e))throw Error(a(299));var n=!1,r=``,i=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,i,s,c,Fp),e[tt]=t.current,Sd(e),new Ip(t)}})),Ni=i(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Mi()})),Pi=Ni(),Fi;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(Fi||={});var Ii=function(e){return e},Li=`beforeunload`,Ri=`popstate`;function zi(e){e===void 0&&(e={});var t=e.window,n=t===void 0?document.defaultView:t,r=n.history;function i(){var e=n.location,t=e.pathname,i=e.search,a=e.hash,o=r.state||{};return[o.idx,Ii({pathname:t,search:i,hash:a,state:o.usr||null,key:o.key||`default`})]}var a=null;function s(){if(a)p.call(a),a=null;else{var e=Fi.Pop,t=i(),n=t[0],r=t[1];if(p.length){if(n!=null){var o=u-n;o&&(a={action:e,location:r,retry:function(){x(o*-1)}},x(o))}}else v(e)}}n.addEventListener(Ri,s);var c=Fi.Pop,l=i(),u=l[0],d=l[1],f=Ui(),p=Ui();u??(u=0,r.replaceState(o({},r.state,{idx:u}),``));function m(e){return typeof e==`string`?e:Gi(e)}function h(e,t){return t===void 0&&(t=null),Ii(o({pathname:d.pathname,hash:``,search:``},typeof e==`string`?Ki(e):e,{state:t,key:Wi()}))}function g(e,t){return[{usr:e.state,key:e.key,idx:t},m(e)]}function _(e,t,n){return!p.length||(p.call({action:e,location:t,retry:n}),!1)}function v(e){c=e;var t=i();u=t[0],d=t[1],f.call({action:c,location:d})}function y(e,t){var i=Fi.Push,a=h(e,t);function o(){y(e,t)}if(_(i,a,o)){var s=g(a,u+1),c=s[0],l=s[1];try{r.pushState(c,``,l)}catch{n.location.assign(l)}v(i)}}function b(e,t){var n=Fi.Replace,i=h(e,t);function a(){b(e,t)}if(_(n,i,a)){var o=g(i,u),s=o[0],c=o[1];r.replaceState(s,``,c),v(n)}}function x(e){r.go(e)}return{get action(){return c},get location(){return d},createHref:m,push:y,replace:b,go:x,back:function(){x(-1)},forward:function(){x(1)},listen:function(e){return f.push(e)},block:function(e){var t=p.push(e);return p.length===1&&n.addEventListener(Li,Hi),function(){t(),p.length||n.removeEventListener(Li,Hi)}}}}function Bi(e){e===void 0&&(e={});var t=e,n=t.initialEntries,r=n===void 0?[`/`]:n,i=t.initialIndex,a=r.map(function(e){return Ii(o({pathname:`/`,search:``,hash:``,state:null,key:Wi()},typeof e==`string`?Ki(e):e))}),s=Vi(i??a.length-1,0,a.length-1),c=Fi.Pop,l=a[s],u=Ui(),d=Ui();function f(e){return typeof e==`string`?e:Gi(e)}function p(e,t){return t===void 0&&(t=null),Ii(o({pathname:l.pathname,search:``,hash:``},typeof e==`string`?Ki(e):e,{state:t,key:Wi()}))}function m(e,t,n){return!d.length||(d.call({action:e,location:t,retry:n}),!1)}function h(e,t){c=e,l=t,u.call({action:c,location:l})}function g(e,t){var n=Fi.Push,r=p(e,t);function i(){g(e,t)}m(n,r,i)&&(s+=1,a.splice(s,a.length,r),h(n,r))}function _(e,t){var n=Fi.Replace,r=p(e,t);function i(){_(e,t)}m(n,r,i)&&(a[s]=r,h(n,r))}function v(e){var t=Vi(s+e,0,a.length-1),n=Fi.Pop,r=a[t];function i(){v(e)}m(n,r,i)&&(s=t,h(n,r))}return{get index(){return s},get action(){return c},get location(){return l},createHref:f,push:g,replace:_,go:v,back:function(){v(-1)},forward:function(){v(1)},listen:function(e){return u.push(e)},block:function(e){return d.push(e)}}}function Vi(e,t,n){return Math.min(Math.max(e,t),n)}function Hi(e){e.preventDefault(),e.returnValue=``}function Ui(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},call:function(t){e.forEach(function(e){return e&&e(t)})}}}function Wi(){return Math.random().toString(36).substr(2,8)}function Gi(e){var t=e.pathname,n=t===void 0?`/`:t,r=e.search,i=r===void 0?``:r,a=e.hash,o=a===void 0?``:a;return i&&i!==`?`&&(n+=i.charAt(0)===`?`?i:`?`+i),o&&o!==`#`&&(n+=o.charAt(0)===`#`?o:`#`+o),n}function Ki(e){var t={};if(e){var n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var J=r(t()),Y={LETTERS_SET_LETTER_NUMBER:`4e199f1a-bce2-4386-a9df-60f3f1a2047f`,UPDATE_NUMBERED_LETTER:`a52a1434-4a9d-558e-b89d-e60b457a6bac`,LETTERS_ADD_RECEIPT:`2b6626c5-11b6-4581-9343-0f3461754869`,LETTERS_EDIT_RECEIPT:`65403b8e-6c2a-4c93-9679-a1f358ba5162`,LETTERS_EXPORT_ECE:`93a9ef34-250d-46de-8915-d2165386066f`,LETTERS_PARSE_ECE:`f1b70f95-8fdc-46d0-84cf-fc6b159ba9a2`,LETTERS_PRINT_LETTER:`458ade37-80e0-47ad-ad2d-44e79b25c001`,LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR:`23720757-fc3a-4a45-a773-25607af1b7ef`,LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR:`efc83ae2-c4fc-477f-adaf-41f8fac74c30`,CORRESPONDENCE_AUTHZ_ADD_USER_TO_ROLE:`2482bf6c-6601-41ac-b2e1-bcb8fef2bb16`,CORRESPONDENCE_AUTHZ_REMOVE_USER_FROM_ROLE:`a8004994-2a61-476f-a7b5-7e326d7d7301`,CARTABLES_GRANT_SOLUTION:`2fc4f555-0e90-4899-88e5-faf5c186b89d`,CARTABLES_REVOKE_SOLUTION_ACCESS:`be14d4e1-198a-46ab-9cd3-0466a3328444`,CARTABLES_GET_GRANTED_USERS_IDS:`56d3779a-d18d-47b6-bdae-9fb50dd4fae7`,SECRETARIATS_CREATE_SECRETARIAT:`9f2b6708-cd3b-4b70-b214-259fb23a1919`,SECRETARIATS_UPDATE_SECRETARIAT:`905a9736-e78d-41d9-bb96-322b68eab92e`,INDICATORS_GET_INDICATOR:`4ad19413-fe16-4100-85b4-b8c40fc568a9`,INDICATORS_CREATE_INDICATOR:`7847785d-d401-44ce-94e2-f381a0a4d237`,INDICATORS_UPDATE_INDICATOR:`0e5135b9-0d33-44b1-9cf6-86986d80e97a`,INDICATORS_UPDATE_INDICATOR_STATUS:`9ca3513f-1bec-43f0-bd03-9993381c2d1b`,SECRETARIATS_CREATE_LETTER_LAYOUT:`589b6b
1016-ea55-474e-8fe6-de2761262fcb`,SECRETARIATS_UPDATE_LETTER_LAYOUT:`eee42a54-bf47-4425-a5eb-becb079a7145`,MANAGEMENT_CENTER_AUTHZ_ADD_SUPER_ADMIN:`536931b8-b5eb-4d97-8f53-eac8185222c5`,MANAGEMENT_CENTER_AUTHZ_REMOVE_SUPER_ADMIN:`81f4f5c0-5732-45f3-a047-4b31a6467eb2`,MANAGEMENT_CENTER_AUTHZ_ADD_MANAGEMENT_CENTER_ADMIN:`e43ae132-2d05-4353-96ec-793264948700`,MANAGEMENT_CENTER_AUTHZ_REMOVE_MANAGEMENT_CENTER_ADMIN:`ceb1863d-aa05-473f-8f7f-f9f30600bb2f`,ORGANIZATION_GET_ORGANIZATION:`abb57b8d-3640-4abe-b443-8a0ec29ad65d`,ORGANIZATION_UPDATE_ORGANIZATION_PROFILE:`84197828-474b-4324-8ad6-545dd0951d7a`,ORGANIZATION_ADD_EMPLOYEE_BY_USERNAME:`1967ed63-9dc0-439e-81ac-8b44aeb55fea`,ORGANIZATION_ADD_EMPLOYEE_BY_MOBILE:`c887db1a-cf9f-4961-8f1b-bf3544849802`,ORGANIZATION_INVITE_EMPLOYEE_BY_USERNAME:`80f998a2-e582-4f64-bb3b-fc1272a4b531`,ORGANIZATION_INVITE_EMPLOYEE_BY_MOBILE:`b33b862d-e973-4ab9-8f9f-5a5fcbba5655`,ORGANIZATION_UPDATE_EMPLOYEE_STATUS:`6c4b072c-2eb0-48a5-88cb-2d41e3d92f94`,ORGANIZATION_UPDATE_EMPLOYEE_CODE:`25dfc297-9656-4f53-bd5b-7509816fa225`,ORGANIZATION_UPDATE_EMPLOYEE_PROFILE:`b089d02b-bbd9-4b3b-a1b5-976582c33ab3`,ORGANIZATION_CREATE_POSITION:`d764ab9a-ea65-4e87-bd0d-6d0092b2b5eb`,ORGANIZATION_ASSIGN_POSITION:`3eedd37a-00c4-4920-8904-33ab92781ec6`,ORGANIZATION_UPDATE_POSITION:`5556fc31-c05f-4403-8281-5fb94cd59a05`,ORGANIZATION_UPDATE_POSITION_CODE:`f0322d0f-642c-42e8-975e-f2c77e23bec4`,ORGANIZATION_UPDATE_POSITION_STATUS:`bc65965f-1c96-4baf-bb96-91b3b3c95bbe`,ORGANIZATION_UPDATE_POSITION_PARENT:`3668071c-be15-457d-b7d9-5c6dfa4ebe8e`,ORGANIZATION_REVOKE_POSITION:`4c62e00c-1346-4538-890e-b992d641db1c`,ORGANIZATION_SET_PRIMARY_POSITION:`78e39278-cbd1-4d4c-afd0-d70028239a71`,ORGANIZATION_VERIFY_RELEASE_SLOT:`9aea2e79-41c8-4d23-8619-8c0589fadf94`,MARKET_CREATE_ORDER:`f565851e-a51e-4ecf-91a4-5f0cbf8a4b0d`,LETTERS:{GET_LETTERS_FORWARDS:`e85891aa-7698-40eb-b9be-4e86aad69cd3`,UPDATE_EXCHANGE_REGISTRY:`8fcae078-60c1-4658-b240-6a3e617f788a`},MANAGEMENT_CENTER:{ORGANIZATION_DOCUMENTS_LIST:`8810032a-0e39-4c7a-9c3d-24d35375c80f`},CORRESPONDENCE:{REPORTS:{GET_REFERENCE_USAGE_REPORT:`11db8265-1c0a-451b-af73-de520377fafa`},ECE:{EXPORT_ECE:`93a9ef34-250d-46de-8915-d2165386066f`,PARSE_ECE:`f1b70f95-8fdc-46d0-84cf-fc6b159ba9a2`,SET_ECE_MAIL_CONFIG:`f94d11f9-d871-4a98-9a3f-873804812c2f`,GET_ECE_MAIL_CONFIG:`33c4164f-d669-47fc-a46c-8e161f6e7739`,GET_SECRETARIAT_ECE_MAILS:`19b83b32-59fe-4dad-b15e-0c745bd557ad`,GET_ECE_MAIL:`e671468f-9943-48f3-99ca-1e35fbe0882e`,CONVERT_ECE_TO_LETTER:`4a59ab0f-7d81-4448-800e-558f83bcc2b1`,FORCE_FETCH_ECEMAILS:`dae885b8-b3a9-410b-b945-9231a36e71bc`},LETTERS:{VOID_LETTER:`3468aec6-98bd-44e5-92f4-ecafe62b604d`,GET_REFERENCED_LETTERS:`c52a1234-4e9d-448e-b89d-e60b457a7bbb`,GET_REFERENCING_LETTERS:`c52a1234-4a9d-558e-b89d-e60b457a7bbc`},SAMPLES:{CREATE_CORRESPONDENCE_SAMPLE:`5c65654a-8f47-4ad3-97e8-643867993a3f`,DELETE_CORRESPONDENCE_SAMPLE:`5c65654a-8f47-4ad3-97e8-643867993a3f`,DELETE_FORWARD_NOTE:`e8b49c2e-7333-483d-97d7-0a26c0eecabe`,CREATE_FORWARD_NOTE:`e8b49c2e-7333-483d-97d7-0a26c0eecabe`}},MEETINGS:{MEETINGS_AUTHZ_ADD_MEETINGS_ADMIN:`e7a6a066-6755-4210-9208-f0817de81db6`,MEETINGS_AUTHZ_REMOVE_MEETINGS_ADMIN:`4cce3208-aebe-49a1-9e8c-38c53ad754f5`,MEETING_CARTABLE_GRANT_SOLUTION:`15aac1c2-f030-4513-8f5e-c6932f7a737b`,MEETING_CARTABLE_REVOKE_SOLUTION_ACCESS:`01f52760-200c-4d39-b40a-fbbc61d0fece`,MEETING_LOCATIONS_CREATE_MEETING_LOCATION:`5e75adad-05c3-4260-bc17-d586268cedad`,MEETING_LOCATIONS_GET_MEETING_LOCATIONS:`a8d5adad-f342-46fe-b959-0188f04199b0`,MEETING_LOCATIONS_ENABLE_MEETING_LOCATION:`22f48143-bd42-4758-aae6-1491325716a7`,MEETING_LOCATIONS_DISABLE_MEETING_LOCATION:`239f4510-4a33-4c64-968f-489342c1caae`,MEETING_LOCATIONS_UPDATE_MEETING_LOCATION:`7657c5e3-4a7e-439b-9aa5-2085bde3567f`},AUTHZ:{ADD_SECRETARIAT_ADMIN:`ab4b4b1d-f08e-44ea-bce7-cb5912de7f78`,REMOVE_SECRETARIAT_ADMIN:`edc35f73-33f1-4753-bf3d-567b21e1b748`,GET_SECRETARIAT_ADMINS:`9112db65-1029-4fb1-a656-a37173c5ee66`,ADMINISTRATION:{ADMINISTRATION_AUTHZ_ADD_AWAT_ADMIN:`88b9f9c9-0b80-4a13-9e11-663e221bc000`,ADMINISTRATION_AUTHZ_REMOVE_AWAT_ADMIN:`aa667cc6-b784-4a1f-912d-21c72de88db3`,ADMINISTRATION_AUTHZ_ASSIGN_TARIFF:`bfaa45eb-b6bc-4093-b1f8-46b66b3e09a0`}}
10,GROUPS:{GET_ORGANIZATION_ACCESS_GROUPS:`199ec15e-d1be-424f-ae5b-270345d37971`,GET_ACCESS_GROUP_MEMBERS:`91820f0e-7699-4e21-91c3-3260012c8fba`,ADD_ACCESS_GROUP_MEMBERS:`03a10965-83ee-4b0e-a87a-12cd583b30d3`,REMOVE_ACCESS_GROUP_MEMBERS:`80946ca1-8cf0-4c33-9c54-a6019c512870`},CONTACTS:{DELETE_CONTACT:`ec7918c0-f98c-4710-a69c-32e95020ba70`},TASKS:{TASKS_AUTHZ_ADD_TASKS_ADMIN:`add38b9c-4a3a-4039-ad64-5263fb5d44e7`,TASKS_AUTHZ_REMOVE_TASKS_ADMIN:`a178d448-9f2d-404c-8faf-bc2364541db9`,TASK_CARTABLE_GRANT_SOLUTION:`9f8e4417-cec7-4830-a119-4c61dc58f993`,TASK_CARTABLE_REVOKE_SOLUTION_ACCESS:`b1f7ad85-6de8-4b81-888d-d8955cd03eee`,TASKS_USAGES_GET_TASKS_USAGES:`982c0883-b5d7-4847-8ae1-ef5b71623418`},TAGS:{DELETE_TAG:`3b6c2b9a-7d4e-4a8f-a1c3-2e9f5d6a0b1a`,UPDATE_TAG:`44bb26c3-5e87-4eea-931d-50bca22f8d58`},CHATS:{GRANT_SOLUTION:`78bcda4d-341f-4bfa-a3ed-9195c94aa220`,REVOKE_SOLUTION_ACCESS:`11b2b08c-618b-4fb2-b5b6-ddda90a1ab71`,GET_CHAT_USAGES:`ade7d295-6a6e-44ea-bdfb-7317494236df`}},qi=r(i(((e,t)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}}))()),Ji=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function Yi(e){var t={type:`tag`,name:``,voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(qi.default[n[1]]||e.charAt(e.length-2)===`/`)&&(t.voidElement=!0),t.name.startsWith(`!--`))){var r=e.indexOf(`-->`);return{type:`comment`,comment:r===-1?``:e.slice(4,r)}}for(var i=new RegExp(Ji),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var o=a[1].trim(),s=[o,``];o.indexOf(`=`)>-1&&(s=o.split(`=`)),t.attrs[s[0]]=s[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var Xi=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Zi=/^\s*$/,Qi=Object.create(null);function $i(e,t){switch(t.type){case`text`:return e+t.content;case`tag`:return e+=`<`+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+`="`+e[n]+`"`);return t.length?` `+t.join(` `):``}(t.attrs):``)+(t.voidElement?`/>`:`>`),t.voidElement?e:e+t.children.reduce($i,``)+`</`+t.name+`>`;case`comment`:return e+`<!--`+t.comment+`-->`}}var ea={parse:function(e,t){t||={},t.components||=Qi;var n,r=[],i=[],a=-1,o=!1;if(e.indexOf(`<`)!==0){var s=e.indexOf(`<`);r.push({type:`text`,content:s===-1?e:e.substring(0,s)})}for(var c,l=[];c=Xi.exec(e);)l.push(c);return l.forEach(function(e,t){var n=e[0];if(n&&!n.startsWith(`<!--`)){for(var r=0,i=0,a=-1,o=null,s=0;s<n.length;s++){var c=n.charAt(s);o?c===o&&(o=null):c===`"`||c===`'`?o=c:c===`<`?++r==2&&(a=s):c===`>`&&i++}var u=a>-1&&/[a-zA-Z0-9\-!/]/.test(n.charAt(a+1));if(r>i&&u){var d=n.substring(0,a),f=n.substring(d.length);l[t][0]=f,l[t].index+=d.length}}}),l.forEach(function(s,c){var u=s[0];if(u){var d=s.index;if(o){if(u!==`</`+n.name+`>`)return;o=!1}var f,p,m=u.charAt(1)!==`/`,h=u.startsWith(`<!--`),g=d+u.length,_=e.charAt(g),v=l[c+1];if(_===`<`&&v){var y=e.substring(g,v.index);f=y.split(`<`).length>y.split(`>`).length}if(h){var b=Yi(u);if(a<0)return r.push(b),r;(p=i[a]).children.push(b);var x=e.slice(g,v?v.index:void 0);return x.length>0&&p.children.push({type:`text`,content:x}),r}if(m&&(a++,(n=Yi(u)).type===`tag`&&t.components[n.name]&&(n.type=`component`,o=!0),n.voidElement||o||!_||_===`<`||n.children.push({type:`text`,content:e.slice(g,v?v.index:void 0)}),a===0&&r.push(n),(p=i[a-1])&&p.children.push(n),i[a]=n),(!m||n.voidElement)&&(a>-1&&(n.voidElement||n.name===u.slice(2,-1))&&(a--,n=a===-1?r:i[a]),!o&&(_!==`<`||f)&&_)){p=a===-1?r:i[a].children;var S=v?v.index:-1,C=e.slice(g,S===-1?void 0:S);Zi.test(C)&&(C=` `),(S>-1&&a+p.length>=0||C!==` `)&&p.push({type:`text`,content:C})}}}),r},stringify:function(e){return e.reduce(function(e,t){return e+$i(``,t)},``)}},ta=(e,t)=>{if(!e)return!1;let n=e.props?.children??e.children;return t?n.length>0:!!n},na=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?ia(t):t},ra=e=>Array.isArray(e)&&e.every(J.isValidElement),ia=e=>Array.isArray(e)?e:[e],aa=(e,t)=>{let n={...t};return n.props={...t.props,...e.props},n},oa=e=>{let t={};if(!e)return t;let n=e=>
10{ia(e).forEach(e=>{Ge(e)||(ta(e)?n(na(e)):Je(e)&&!(0,J.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t},sa=(e,t,n,r)=>{if(!e)return``;let i=``,a=ia(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(Ge(e)){i+=`${e}`;return}if((0,J.isValidElement)(e)){let{props:s,type:c}=e,l=Object.keys(s).length,u=o.indexOf(c)>-1,d=s.children;if(!d&&u&&!l){i+=`<${c}/>`;return}if(!d&&(!u||l)||s.i18nIsDynamicList){i+=`<${a}></${a}>`;return}if(u&&l<=1){let e=Ge(d)?d:sa(d,t,n,r);i+=`<${c}>${e}</${c}>`;return}let f=sa(d,t,n,r);i+=`<${a}>${f}</${a}>`;return}if(e===null){We(n,`TRANS_NULL_VALUE`,`Passed in a null value as child`,{i18nKey:r});return}if(Je(e)){let{format:t,...a}=e,o=Object.keys(a);if(o.length===1){let e=t?`${o[0]}, ${t}`:o[0];i+=`{{${e}}}`;return}We(n,`TRANS_INVALID_OBJ`,`Invalid child - Object should only have keys {{ value, format }} (format is optional).`,{i18nKey:r,child:e});return}We(n,`TRANS_INVALID_VAR`,`Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`,{i18nKey:r,child:e})}),i},ca=(e,t=[],n={})=>{if(!e)return e;let r=Object.keys(n),i=[...t,...r],a=``,o=0;for(;o<e.length;)if(e[o]===`<`){let t=!1,n=e.slice(o).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(n){let e=n[1];(/^\d+$/.test(e)||i.includes(e))&&(t=!0,a+=n[0],o+=n[0].length)}if(!t){let n=e.slice(o).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(n){let e=n[1];(/^\d+$/.test(e)||i.includes(e))&&(t=!0,a+=n[0],o+=n[0].length)}}t||(a+=`&lt;`,o+=1)}else a+=e[o],o+=1;return a},la=(t,n,r,i,a,o,s)=>{if(r===``)return[];let c=a.transKeepBasicHtmlNodesFor||[],l=r&&new RegExp(c.map(e=>`<${e}`).join(`|`)).test(r);if(!t&&!n&&!l&&!s)return[r];let u=n??{},d=e=>{ia(e).forEach(e=>{Ge(e)||(ta(e)?d(na(e)):Je(e)&&!(0,J.isValidElement)(e)&&Object.assign(u,e))})};d(t);let f=ca(r,c,u),p=ea.parse(`<0>${f}</0>`),h={...u,...o},g=(e,t,n)=>{let r=na(e),i=v(r,t.children,n);return ra(r)&&i.length===0||e.props?.i18nIsDynamicList?r:i},_=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,J.cloneElement)(e,{key:r},i?void 0:t))):n.push(...J.Children.map([e],e=>{if(e.type===J.Fragment||e.props?.i18nIsDynamicList!==void 0){let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`children`||t===`i18nIsDynamicList`||(n[t]=e.props[t])}),(0,J.createElement)(e.type,n,i?null:t)}let n={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{t===`ref`||t===`children`||(n[t]=e.props[t])}),(0,J.cloneElement)(e,n,i?null:t)}))},v=(t,r,o)=>{let u=ia(t),d=ia(r),f={};return d.reduce((t,r,d)=>{let p=r.children?.[0]?.content&&i.services.interpolator.interpolate(r.children[0].content,h,i.language);if(r.type===`tag`){let e=u[parseInt(r.name,10)];!e&&n&&(e=n[r.name]),o.length===1&&!e&&(e=o[0][r.name]),e||={};let y={...r.attrs};s&&Object.keys(y).forEach(e=>{let t=y[e];Ge(t)&&(y[e]=m(t))});let b=Object.keys(y).length===0?e:aa({props:y},e),x=(0,J.isValidElement)(b),S=x&&ta(r,!0)&&!r.voidElement,C=l&&Je(b)&&b.dummy&&!x,w=Je(n)&&Object.hasOwnProperty.call(n,r.name);if(Ge(b)){let e=i.services.interpolator.interpolate(b,h,i.language);t.push(e)}else if(ta(b)||S)_(b,g(b,r,o),t,d);else if(C)_(b,v(u,r.children,o),t,d);else if(Number.isNaN(parseFloat(r.name)))if(w)_(b,g(b,r,o),t,d,r.voidElement);else if(a.transSupportBasicHtmlNodes&&c.indexOf(r.name)>-1)if(r.voidElement)t.push((0,J.createElement)(r.name,{key:`${r.name}-${d}`}));else{let e=f[r.name]||0;f[r.name]=e+1;let n,i=0;for(let t=0;t<u.length;t+=1){let a=u[t];if((0,J.isValidElement)(a)&&a.type===r.name){if(i===e){n=a;break}i+=1}}let a=v(n?ia(na(n)):u,r.children,o);t.push((0,J.createElement)(r.name,{key:`${r.name}-${d}`},a))}else if(r.voidElement)t.push(`<${r.name} />`);else{let e=v(u,r.children,o);t.push(`<${r.name}>${e}</${r.name}>`)}else if(Je(b)&&!x){let e=r.children[0]?p:null;e&&t.push(e)}else _(b,p,t,d,r.children.length!==1||!p)}else if(r.type===`text`){let n=a.transWrapTextNodes,o=typeof a.unescape==`function`?a.unescape:e().unescape,c=s?o(i.services.interpolator.interpolate(r.content,h,i.language)):i.services.interpolator.interpolate(r.content,h,i.language);n?t.push((0,J.createElement)(n,{key:`${r.name}-${d}`},c)):t.push(c)}return t},[])};return na(v([{dummy:!0,children:t||[]}],p,ia(t||[]))[0])},ua=(e,t,n)=>{let r=e.key||t,i=(0,J.cloneElement)(e,{key:r});if(!i.props||!i.props.children||n.indexOf(`${t}/>`)<0&&n.indexOf(`${t} />`)<0)return i;function a(){return(0,J.createElement)(J.Fragment,null,i)}return(0,J.createElement)(a,{key:r})},da=(e,t)=>e.map((e,n)=>ua(e,n,t)),fa=(e,t)=>{let n={};return Object.keys(e).forEach(r=>{Object.assign(n,{[r]:ua(e[r],r,t)})}),n},pa=(e,t,n,r)=>e?Array.isArray(e)?da(e,t):Je(e)?fa(e,t):(qe(n,`TRANS_INVALID_COMPONENTS`,`
10<Trans /> "components" prop expects an object or array`,{i18nKey:r}),null):null,ma=e=>!Je(e)||Array.isArray(e)?!1:Object.keys(e).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0);function ha({children:t,count:n,parent:r,i18nKey:i,context:o,tOptions:s={},values:c,defaults:l,components:u,ns:d,i18n:f,t:p,shouldUnescape:m,...h}){let g=f||a();if(!g)return qe(g,`NO_I18NEXT_INSTANCE`,`Trans: You need to pass in an i18next instance using i18nextReactModule`,{i18nKey:i}),t;let _=p||g.t.bind(g)||(e=>e),v={...e(),...g.options?.react},y=d||_.ns||g.options?.defaultNS;y=Ge(y)?[y]:y||[`translation`];let{transDefaultProps:b}=v,x=b?.tOptions?{...b.tOptions,...s}:s,S=m??b?.shouldUnescape,C=b?.values?{...b.values,...c}:c,w=b?.components?{...b.components,...u}:u,T=sa(t,v,g,i),E=l||x?.defaultValue||T||v.transEmptyNodeValue||(typeof i==`function`?Ue(i):i),{hashTransKey:D}=v,O=i||(D?D(T||E):T||E);c=g.options?.interpolation?.defaultVariables?C&&Object.keys(C).length>0?{...C,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables}:C;let k=oa(t);k&&typeof k.count==`number`&&n===void 0&&(n=k.count);let A=c||n!==void 0&&!g.options?.interpolation?.alwaysFormat||!t?x.interpolation:{interpolation:{...x.interpolation,prefix:`#$?`,suffix:`?$#`}},j={...x,context:o||x.context,count:n,...c,...A,defaultValue:E,ns:y},M=O?_(O,j):E;M===O&&E&&(M=E);let N=pa(w,M,g,i),P=N||t,F=null;ma(N)&&(F=N,P=t);let I=la(P,F,M,g,v,j,S),ee=r??v.defaultTransParent;return ee?(0,J.createElement)(ee,h,I):I}function ga({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:o={},values:s,defaults:c,components:l,ns:u,i18n:d,t:f,shouldUnescape:p,...m}){let{i18n:h,defaultNS:g}=(0,J.useContext)(Ke)||{},_=d||h||a(),v=f||_?.t.bind(_);return ha({children:e,count:t,parent:n,i18nKey:r,context:i,tOptions:o,values:s,defaults:c,components:l,ns:u||v?.ns||g||_?.options?.defaultNS,i18n:_,t:f,shouldUnescape:p,...m})}function _a(e,t,n,r){let i=`/api/v1/`,a={roleUsers:{status:`idle`,data:null},addRole:{status:`idle`,data:null},removeRole:{status:`idle`,data:null},rolePermissions:{status:`idle`,data:null},userPermissions:{status:`idle`,data:null,lastRequest:null},solutionOrganizationRoles:{status:`idle`,data:null,lastRequestCondition:{userId:null,organizationId:null}},registryPermissions:{status:`idle`,data:null}},o=H(`roles/${e}/roleUsers`,async n=>{let{organizationId:r,queryObject:a}=n;return await V({options:{apiVersion:i,domainRoot:t,method:`roleUsers`,path:`organizations/${r}/roles/${e}/users`,queryObject:a}})}),s=H(`roles/${e}/userPermissions`,async({userId:e,organizationId:n,queryObject:r})=>{let{data:a}=await V({options:{apiVersion:i,domainRoot:t,method:`roleUsers`,path:`users/${e}/permissions`,queryObject:r}});return a}),c=H(`roles/${e}/addRole`,async n=>{let{organizationId:r,userId:a,rest:o,queryObject:s}=n,c={role:{id:e},organization:{id:r},user:{id:a},...o};return(await V({options:{apiVersion:i,domainRoot:t,method:`addRole`,path:`organizations/${r}/roles/${e}/users`,queryObject:s},data:c})).data}),l=H(`roles/${e}/removeRole`,async n=>{let{organizationId:r,userId:a,queryObject:o}=n;return(await V({options:{apiVersion:i,domainRoot:t,method:`removeRole`,path:`organizations/${r}/roles/${e}/users/${a}`,queryObject:o}})).data}),u=H(`roles/${e}/rolePermissions`,async()=>(await V({options:{apiVersion:i,domainRoot:t,method:`rolePermissions`,path:`roles/${e}`}})).data,{condition:(e,t)=>{let{rolePermissions:r}=t.getState()[n];return!((r.status===`loading`||r.data?.permissions)&&r?.data?.permissions?.length)}}),d=H(`roles/organization`,async e=>{let{organizationId:n,userId:a}=e;return(await V({options:{apiVersion:i,domainRoot:t,method:`rolePermissions`,path:`organizations/${n}/users/${a}/${r}-roles`}})).data},{condition:(e,t)=>{let{solutionOrganizationRoles:r}=t.getState()[n];return!(r?.lastRequestCondition?.userId===e?.userId&&r?.lastRequestCondition?.organizationId===e?.organizationId)}}),f=H(`roles/${e}/registriesPermissions`,async e=>{let{groupId:n,organizationId:r,queryObject:a}=e;return(await V({options:{apiVersion:i,domainRoot:t,method:`getRegistryPermissions`,path:`organizations/${r}/registries/${n}/access_group/permissions`,queryObject:a}})).data},{condition:(e,t)=>!(t.getState()[n].registryPermissions.status===`loading`||t.getState()[n].registryPermissions.data)}),p=Ie({name:`roles/${e}`,initialState:a,reducers:{roleUsersReset:e=>{let t=e;t.roleUsers=a.roleUsers},userPermissionsReset:e=>{let t=e;t.userPermissions=a.userPermissions},addRoleReset:e=>{let t=e;t.addRole=a.addRole},removeRoleReset:e=>{let t=e;t.removeRole=a.removeRole},rolePermissionsReset:e=>{let t=e;t.rolePermissions=a.rolePermissions},solutionOrganizationRolesReset:e=>{let t=e;t.solutionOrganizationRoles=a.solutionOrganizationRoles},registryPermissionsReset:e=>{let t=e;t.registryPermissions=a.registryPermissions}},extraReducers:e=>{e.addCase(s.pending,e=>{let t=e;t.userPermissions.status=`loading`}).addCase(s.fulfilled,(e,t)=>{let n=e;n.userPermissions.status=`idle`,n.userPermissions.data=t.payload??[],n.userPermissions.lastRequest=t.meta.arg?.organizationId}).addCase(s.rejected,e=>{let t=e;t.userPermissions.status=`idle`,t.userPermissions.data={success:!1}}).addCase(o.pending,e=>{let t=e;t.roleUsers.status=`loading`}).addCase(o.fulfilled,(e,t)=>{let n=e;n.roleUsers.status=`idle`,t.payload.success?n.roleUsers.data=t.payload.data:n.roleUsers.data=null}).addCase(o.rejected,e=>{let t=e;t.roleUsers.status=`idle`,t.roleUsers.data=null}).addCase(c.pending,e=>{let t=e;t.addRole.status=`loading`}).addCase(c.fulfilled,(e,t)=>{let n=e;n.addRole.status=`idle`,n.addRole.data=t.payload}).addCase(c.rejected,e=>{let t=e;t.addRole.status=`idle`,t.addRole.data={success:!1}}).addCase(l.pending,e=>{let t=e;t.removeRole.status=`loading`}).addCase(l.fulfilled,(e,t)=>{let n=e;n.removeRole.status=`idle`,n.removeRole.data=t.payload}).addCase(l.rejected,e=>{let t=e;t.removeRole.status=`idle`,t.removeRole.data={success:!1}}).addCase(u.fulfilled,(e,t)=>{let n=e;n.rolePermissions.status=`idle`,n.rolePermissions.data=t.payload}).addCase(u.rejected,e=>{let t=e;t.rolePermissions.status=`idle`,t.rolePermissions.data={success:!1}}).addCase(d.pending,(e,t)=>{let n=e;n.solutionOrganizationRoles.status=`loading`}).addCase(d.fulfilled,(e,t)=>{let n=e;n.solutionOrganizationRoles.status=`idle`,n.solutionOrganizationRoles.data=t.payload,n.solutionOrganizationRoles.lastRequestCondition.userId=t?.meta?.arg?.userId,n.solutionOrganizationRoles.lastRequestCondition.organizationId=t?.meta?.arg?.organizationId}).addCase(d.rejected,e=>{let t=e;t.solutionOrganizationRoles.status=`idle`,t.solutionOrganizationRoles.data={success:!1}}
10).addCase(f.pending,(e,t)=>{let n=e;n.registryPermissions.status=`loading`}).addCase(f.fulfilled,(e,t)=>{let n=e;n.registryPermissions.status=`idle`,n.registryPermissions.data=t.payload})}}),{roleUsersReset:m,addRoleReset:h,removeRoleReset:g,rolePermissionsReset:_,solutionOrganizationRolesReset:v,registryPermissionsReset:y,userPermissionsReset:b}=p.actions;return{slice:p,reducer:p.reducer,userPermissionsReset:b,roleUsersReset:m,addRoleReset:h,removeRoleReset:g,rolePermissionsReset:_,roleUsersAsync:o,userPermissionsAsync:s,addRoleAsync:c,removeRoleAsync:l,getRolePermissions:u,getSolutionOrganizationRoles:d,solutionOrganizationRolesReset:v,registryPermissionsReset:y,registryPermissionsAsync:f}}var va={correspondence_admin:`c80c7fb7-e288-4fb3-adec-d984eee89d2f`,super_admin:`ca41ae18-778d-4662-b35c-04a8b53124e2`,correspondence_users:`correspondence_users`,market_admin:`market_admin`,meetings_users:`meetings_users`,meetings_admin:`4f4b94a2-3508-4d22-a815-0b32960bd33c`,secretariat_admin:`77951a9c-8ddf-44f2-b3f0-8ab04414089c`,awat_admin:`da83bea1-adfe-479d-820e-5343e6465290`,tasks_admin:`1c3da197-1f3a-4825-9eda-2e291bb6dea3`,chat_admin:`chatAdmin`},ya=`awatAdmins`,{userPermissionsAsync:ba,addRoleAsync:xa,removeRoleAsync:Sa,roleUsersAsync:Ca,addRoleReset:wa,removeRoleReset:Ta,roleUsersReset:Ea,getRolePermissions:Da,rolePermissionsReset:Oa,reducer:ka}=_a(va.awat_admin,`administration-authz`,ya),Aa=`marketAdmins`,{userPermissionsAsync:ja,addRoleAsync:Ma,removeRoleAsync:Na,roleUsersAsync:Pa,addRoleReset:Fa,removeRoleReset:Ia,roleUsersReset:La,getRolePermissions:Ra,rolePermissionsReset:za,registryPermissionsAsync:Ba,registryPermissionsReset:Va,reducer:Ha}=_a(va.market_admin,`market-authz`,Aa),Ua=`secretariatsAuthz`,{userPermissionsAsync:Wa,userPermissionsReset:Ga,addRoleAsync:Ka,removeRoleAsync:qa,roleUsersAsync:Ja,addRoleReset:Ya,removeRoleReset:Xa,roleUsersReset:Za,getRolePermissions:Qa,rolePermissionsReset:$a,reducer:eo}=_a(va.secretariat_admin,`correspondence-authz`,Ua),to=`chatAuthz`,{userPermissionsAsync:no,addRoleAsync:ro,removeRoleAsync:io,roleUsersAsync:ao,addRoleReset:oo,removeRoleReset:so,roleUsersReset:co,getRolePermissions:lo,rolePermissionsReset:uo,registryPermissionsAsync:fo,registryPermissionsReset:po,reducer:mo}=_a(va.chat_admin,`chat-authz`,to),ho=`tasksAuthz`,{userPermissionsAsync:go,addRoleAsync:_o,removeRoleAsync:vo,roleUsersAsync:yo,addRoleReset:bo,removeRoleReset:xo,roleUsersReset:So,getRolePermissions:Co,rolePermissionsReset:wo,registryPermissionsAsync:To,registryPermissionsReset:Eo,reducer:Do}=_a(va.tasks_admin,`tasks-authz`,ho),Oo=`correspondenceAuthz`,{userPermissionsAsync:ko,userPermissionsReset:Ao,addRoleAsync:jo,removeRoleAsync:Mo,roleUsersAsync:No,addRoleReset:Po,removeRoleReset:Fo,roleUsersReset:Io,getRolePermissions:Lo,rolePermissionsReset:Ro,getSolutionOrganizationRoles:zo,solutionOrganizationRolesReset:Bo,registryPermissionsAsync:Vo,registryPermissionsReset:Ho,reducer:Uo}=_a(va.correspondence_admin,`correspondence-authz`,Oo,`correspondence`),Wo=e=>({...e,stamps:Array.isArray(e?.stamps)?e.stamps:[]}),Go=`/api/v1/`,Ko={secretariatsList:{status:`idle`,data:null},createSecretariat:{status:`idle`,data:null,success:null},editSecretariat:{status:`idle`,data:null,success:null},indicatorsList:{status:`idle`,data:null,success:null},indicator:{status:`idle`,data:null,success:null},lastSerialNumberIndicator:{status:`idle`,data:null},letterLayoutsList:{status:`idle`,data:null},createIndicator:{status:`idle`,data:null,success:null},editIndicator:{status:`idle`,data:null,success:null},disableIndicator:{status:`idle`,data:null},enableIndicator:{status:`idle`,data:null},createLetterLayout:{status:`idle`,data:null,success:null},editLetterLayout:{status:`idle`,data:null,success:null},deleteLetterLayout:{status:`idle`,data:null,success:null},eceMailConfig:{status:`idle`,data:null,success:null},editEceMailConfig:{status:`idle`,data:null,success:null},testEceMailConfig:{status:`idle`,data:null,errors:null,success:null},eceLettersRefresh:{status:`idle`,data:null,timeRefresh:null}},qo=H(`secretariats/eceLettersRefresh`,async e=>{let{secretariatId:t}=e;return(await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`eceRefresh`,path:`${t}/ece-mail-config/force-fetch`},data:t})).data}),Jo=H(`secretariats/testEceMailConfig`,async e=>{let{secretariatId:t,data:n}=e;return await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`testEceMailConfig`,path:`${t}/ece-mail-config/validate`},data:n})}),Yo=H(`secretariats/editEceMailConfig`,async e=>{let{secretariatId:t,data:n}=e;return await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`editEceMailConfig`,path:`${t}/ece-mail-config`},data:n})}),Xo=H(`secretariats/eceMailConfig`,async e=>await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`eceMailConfig`,path:`${e}/ece-mail-config`}}),{condition:(e,t)=>t.getState().secretariats.eceMailConfig.status!==`loading`}),Zo=H(`secretariats/createSecretariat`,async e=>await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`secretariats`,path:``},data:e.data})),Qo=H(`secretariats/secretariatsList`,async e=>await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`organization`,path:e.path}}),{condition:(e,t)=>!(t.getState().secretariats.secretariatsList.status===`loading`||t.getState().secretariats.secretariatsList.data)}),$o=H(`secretariats/editSecretariat`,async e=>await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`editSecretariats`},data:e.data})),es=H(`secretariats/indicatorsList`,async e=>await V({options:{apiVersion:Go,domainRoot:`indicators`,method:`secretariat`,path:e.path},data:e.data}),{condition:(e,t)=>!(t.getState().secretariats.indicatorsList.status===`loading`||t.getState().secretariats.indicatorsList.data)}),ts=H(`secretariats/indicator`,async e=>await V({options:{apiVersion:Go,domainRoot:`indicators`,method:`indicator`,path:e.path},data:e.data}),{condition:(e,t)=>!(t.getState().secretariats.indicator.status===`loading`||t.getState().secretariats.indicator.data)}),ns=H(`secretariats/lastSerialNumberIndicator`,async e=>{let{secretariatId:t,indicatorId:n}=e;return await V({options:{apiVersion:Go,domainRoot:`indicators`,method:`lastSerialNumberIndicator`,path:`${n}/lastSerialNumber?secretariatId=${t}`}})}),rs=H(`secretariats/letterLayoutsList`,async e=>{let{secretariatId:t}=e;return await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`letterLayouts`,path:`${t}/letter-layouts`}})},{condition:(e,t)=>!(t.getState().secretariats.letterLayoutsList.status===`loading`||t.getState().secretariats.letterLayoutsList.data)}),is=H(`secretariats/createIndicator`,async e=>await V({options:{apiVersion:Go,domainRoot:`indicators`,method:`indicators`},data:e.data})),as=H(`secretariats/editIndicator`,async e=>await V({options:{apiVersion:Go,domainRoot:`indicators`,method:`indicatorEdit`},data:e.data})),os=H(`secretariats/disableIndicator`,async e=>{let{id:t,isDisabled:n,...r}=e;return await V({options:{apiVersion:Go,domainRoot:`indicators`,method:`indicatorStatusEdit`,path:`disable`},data:{id:t,isDisabled:n,...r}})}),ss=H(`secretariats/enableIndicator`,async e=>{let{id:t,isDisabled:n,...r}=e;return await V({options:{apiVersion:Go,domainRoot:`indicators`,method:`indicatorStatusEdit`,path:`enable`},data:{id:t,isDisabled:n,...r}})}),cs=H(`secretariats/createLetterLayout`,async e=>await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`createLetterLayout`},data:e.data})),ls=H(`secretariats/editLetterLayout`,async e=>await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`editLetterLayout`},data:e.data})),us=H(`secretariats/deleteLetterLayout`,async e=>{let{secretariatId:t,layoutId:n}=e;return await V({options:{apiVersion:Go,domainRoot:`secretariats`,method:`deleteLetterLayout`,path:`${t}/letter-layouts/${n}`}})}),ds=Ie({name:`secretariats`,initialState:Ko,reducers:{eceLettersRefreshReset:e=>{let t=e;t.eceLettersRefresh.timeRefresh=Ko.eceLettersRefresh.timeRefresh,localStorage.removeItem(`ece-letters-refresh`)},createSecretariatReset:e=>{let t=e;t.createSecretariat=Ko.createSecretariat},getSecretariatsReset:e=>{let t=e;t.secretariatsList=Ko.secretariatsList},eceMailConfigReset:e=>{let t=e;t.secretariatsList=Ko.eceMailConfig},editEceMailConfigReset:e=>{let t=e;t.secretariatsList=Ko.editEceMailConfig},testEceMailConfigReset:e=>{let t=e;t.secretariatsList=Ko.testEceMailConfig},getIndicatorsReset:e=>{let t=e;t.indicatorsList=Ko.indicatorsList},getLetterLayoutsReset:e=>{let t=e;t.letterLayoutsList=Ko.letterLayoutsList},createLetterLayoutsReset:e=>{let t=e;t.createLetterLayout=Ko.createLetterLayout}
10,createIndicatorReset:e=>{let t=e;t.createIndicator=Ko.createIndicator},getIndicatorReset:e=>{let t=e;t.indicator=Ko.indicator},getLastSerialNumberIndicatorReset:e=>{let t=e;t.lastSerialNumberIndicator=Ko.lastSerialNumberIndicator},editLetterLayoutReset:e=>{let t=e;t.editLetterLayout=Ko.editLetterLayout},deleteLetterLayoutAsync:e=>{let t=e;t.deleteLetterLayout=Ko.deleteLetterLayout}},extraReducers:e=>{e.addCase(qo.pending,e=>{let t=e;t.eceLettersRefresh.status=`pending`;let n=Date.now();t.eceLettersRefresh.timeRefresh=n,localStorage.setItem(`ece-letters-refresh`,String(n))}).addCase(qo.fulfilled,(e,t)=>{let n=e;n.eceLettersRefresh.status=`success`,n.eceLettersRefresh.data=t.payload.data,n.eceLettersRefresh.timeRefresh=Date.now()}).addCase(qo.rejected,(e,t)=>{let n=e;n.eceLettersRefresh.status=`idle`,n.eceLettersRefresh.data={success:!1}}).addCase(Zo.pending,e=>{let t=e;t.createSecretariat.status=`loading`}).addCase(Zo.fulfilled,(e,t)=>{let n=e;n.createSecretariat.status=`idle`,n.createSecretariat.data=t.payload.data,n.createSecretariat.success=t.payload.success}).addCase(Qo.pending,e=>{let t=e;t.secretariatsList.status=`loading`}).addCase(Qo.fulfilled,(e,t)=>{let n=e;n.secretariatsList.status=`idle`,n.secretariatsList.data=Array.isArray(t.payload.data)?t.payload.data.map(Wo):t.payload.data}).addCase(Qo.rejected,e=>{let t=e;t.secretariatsList=Ko.secretariatsList}).addCase($o.pending,e=>{let t=e;t.editSecretariat.status=`loading`}).addCase($o.fulfilled,(e,t)=>{let n=e;n.editSecretariat.status=`idle`,n.editSecretariat.data=t.payload.data,n.editSecretariat.success=t.payload.success}).addCase(es.pending,e=>{let t=e;t.indicatorsList.status=`loading`}).addCase(es.fulfilled,(e,t)=>{let n=e;n.indicatorsList.status=`idle`,n.indicatorsList.data=t.payload.data,n.indicatorsList.success=t.payload.success}).addCase(ts.pending,e=>{let t=e;t.indicator.status=`loading`}).addCase(ts.fulfilled,(e,t)=>{let n=e;n.indicator.status=`idle`,n.indicator.data=t.payload.data,n.indicator.success=t.payload.success}).addCase(ns.pending,e=>{let t=e;t.lastSerialNumberIndicator.status=`loading`}).addCase(ns.fulfilled,(e,t)=>{let n=e;n.lastSerialNumberIndicator.status=`idle`,n.lastSerialNumberIndicator.data=t.payload.data}).addCase(rs.pending,e=>{let t=e;t.letterLayoutsList.status=`loading`}).addCase(rs.fulfilled,(e,t)=>{let n=e;n.letterLayoutsList.status=`idle`,n.letterLayoutsList.data=t.payload.data,n.letterLayoutsList.success=t.payload.success}).addCase(rs.rejected,(e,t)=>{let n=e;n.letterLayoutsList.status=`reject`,n.letterLayoutsList.data=t.payload?.data??null,n.letterLayoutsList.success=t.payload?.success??!1}).addCase(is.pending,e=>{let t=e;t.createIndicator.status=`loading`}).addCase(is.fulfilled,(e,t)=>{let n=e;n.createIndicator.status=`idle`,n.createIndicator.data=t.payload.data,n.createIndicator.meta=t.payload.meta,n.createIndicator.success=t.payload.success}).addCase(as.pending,e=>{let t=e;t.editIndicator.status=`loading`}).addCase(as.fulfilled,(e,t)=>{let n=e;n.editIndicator.status=`idle`,n.editIndicator.data=t.payload.data,n.editIndicator.success=t.payload.success}).addCase(ss.pending,e=>{let t=e;t.enableIndicator.status=`loading`}).addCase(ss.fulfilled,(e,t)=>{let n=e;n.enableIndicator.status=`idle`,n.enableIndicator.data=t.payload.data}).addCase(ss.rejected,(e,t)=>{let n=e;n.enableIndicator.status=`idle`,n.enableIndicator.data={success:!1}}).addCase(os.pending,e=>{let t=e;t.disableIndicator.status=`loading`}).addCase(os.fulfilled,(e,t)=>{let n=e;n.disableIndicator.status=`idle`,n.disableIndicator.data=t.payload.data}).addCase(os.rejected,(e,t)=>{let n=e;n.disableIndicator.status=`idle`,n.disableIndicator.data={success:!1}}).addCase(Xo.pending,e=>{let t=e;t.eceMailConfig.status=`loading`}).addCase(Xo.fulfilled,(e,t)=>{let n=e;n.eceMailConfig.status=`idle`,n.eceMailConfig.data=t.payload.data,n.eceMailConfig.success=t.payload.success}).addCase(Xo.rejected,e=>{let t=e;t.eceMailConfig.status=`idle`,t.eceMailConfig.data=null}).addCase(Yo.pending,e=>{let t=e;t.editEceMailConfig.status=`loading`}).addCase(Yo.fulfilled,(e,t)=>{let n=e;n.editEceMailConfig.status=`idle`,n.editEceMailConfig.data=t.payload.data,n.editEceMailConfig.success=t.payload.success}).addCase(Yo.rejected,e=>{let t=e;t.editEceMailConfig.status=`idle`,t.editEceMailConfig.data=null}).addCase(Jo.pending,e=>{let t=e;t.testEceMailConfig.status=`loading`}).addCase(Jo.fulfilled,(e,t)=>{let n=e;n.testEceMailConfig.status=`idle`,n.testEceMailConfig.data=t.payload,n.testEceMailConfig.success=t.payload.success}).addCase(Jo.rejected,e=>{let t=e;t.testEceMailConfig.status=`idle`,t.testEceMailConfig.data=null}).addCase(cs.pending,e=>{let t=e;t.createLetterLayout.status=`loading`}).addCase(cs.fulfilled,(e,t)=>{let n=e;n.createLetterLayout.status=`idle`,n.createLetterLayout.data=t.payload.data,n.createLetterLayout.success=t.payload.success}).addCase(ls.pending,e=>{let t=e;t.editLetterLayout.status=`loading`}).addCase(ls.fulfilled,(e,t)=>{let n=e;n.editLetterLayout.status=`idle`,n.editLetterLayout.data=t.payload.data,n.editLetterLayout.success=t.payload.success}).addCase(ls.rejected,(e,t)=>{let n=e;n.editLetterLayout.status=`idle`,n.editLetterLayout.data={success:!1}}).addCase(us.pending,e=>{let t=e;t.deleteLetterLayout.status=`loading`}).addCase(us.fulfilled,(e,t)=>{let n=e;n.deleteLetterLayout.status=`idle`,n.deleteLetterLayout.data=t.payload.data,n.deleteLetterLayout.success=t.payload.success}).addCase(us.rejected,(e,t)=>{let n=e;n.deleteLetterLayout.status=`idle`,n.deleteLetterLayout.data={success:!1}})}}),{createSecretariatReset:fs,createLetterLayoutsReset:ps,getSecretariatsReset:ms,getLetterLayoutsReset:hs,getIndicatorsReset:gs,createIndicatorReset:_s,getIndicatorReset:vs,getLastSerialNumberIndicatorReset:ys,editLetterLayoutReset:bs,editEceMailConfigReset:xs,eceMailConfigReset:Ss,testEceMailConfigReset:Cs,eceLettersRefreshReset:ws}=ds.actions,Ts=ds.reducer,Es=`organizationSuperAdmins`,{userPermissionsAsync:Ds,addRoleAsync:Os,removeRoleAsync:ks,roleUsersAsync:As,addRoleReset:js,removeRoleReset:Ms,roleUsersReset:Ns,getRolePermissions:Ps,rolePermissionsReset:Fs,registryPermissionsAsync:Is,registryPermissionsReset:Ls,reducer:Rs}=_a(va.super_admin,`management-center-authz`,Es),zs=`meetingsAuthz`,{userPermissionsAsync:Bs,addRoleAsync:Vs,removeRoleAsync:Hs,roleUsersAsync:Us,addRoleReset:Ws,removeRoleReset:Gs,roleUsersReset:Ks,getRolePermissions:qs,rolePermissionsReset:Js,registryPermissionsAsync:Ys,registryPermissionsReset:Xs,reducer:Zs}=_a(va.meetings_admin,`meetings-authz`,zs),Qs=`/api/v1/`,$s={organizationSolutions:{status:`idle`,data:null},activeSolutions:{status:`idle`,data:null},createOrder:{status:`idle`,data:null},cancelOrder:{status:`idle`,data:null},availableSolutions:{status:`idle`,data:null},newOrderAllowance:{status:`idle`,data:null},defaultItemQuantity:{status:`idle`,data:null,error:null}},ec=H(`orders/activeSolutions`,async e=>await V({options:{apiVersion:Qs,domainRoot:`orders`,method:`activeSolutions`,path:`organizations/${e.organizationId}/active-solutions`}}),{condition:(e,t)=>{let n=t.getState();
10return!(n.orders.activeSolutions.status===`pending`||(n.orders.activeSolutions.data?.length??0)!==0)}}),tc=H(`orders/organizationSolutions`,async e=>await V({options:{apiVersion:Qs,domainRoot:`orders`,method:`organizationSolutions`,path:`organizations/${e.organizationId}/organization-solutions`}}),{condition:(e,t)=>{let n=t.getState();return!(n.orders.organizationSolutions.status===`pending`||(n.orders.organizationSolutions.data?.length??0)!==0)}}),nc=H(`orders/createOrder`,async e=>({data:await V({options:{apiVersion:Qs,domainRoot:`orders`,method:`createOrder`},data:e})})),rc=H(`orders/cancelOrder`,async e=>{let{orderId:t}=e;return{data:await V({options:{apiVersion:Qs,domainRoot:`orders`,method:`cancelOrder`,path:`${t}/cancel`},data:{id:t}})}}),ic=H(`orders/availableSolutions`,async e=>{let{organizationId:t,userId:n}=e;return await V({options:{apiVersion:Qs,domainRoot:`orders`,method:`availableSolutions`,path:`organizations/${t}/users/${n}/available-solutions`}})},{condition:(e,t)=>{let n=t.getState();return!(n.orders.availableSolutions.status===`pending`||(n.orders.availableSolutions.data?.length??0)!==0)}}),ac=H(`orders/newOrderAllowance`,async e=>{let{organizationId:t,solution:n}=e;return await V({options:{apiVersion:Qs,domainRoot:`orders`,method:`newOrderAllowance`,path:`organizations/${t}/solutions/${n}/new-order-allowance`}})}),oc=H(`orders/defaultItemQuantity`,async e=>{let{organizationId:t,solution:n}=e;return await V({options:{apiVersion:Qs,domainRoot:`orders`,method:`newOrderAllowance`,path:`organizations/${t}/solutions/${n}/default-item-quantities`}})}),sc=Ie({name:`orders`,initialState:$s,reducers:{createOrderReset:e=>{let t=e;t.createOrder=$s.createOrder},cancelOrderReset:e=>{let t=e;t.cancelOrder=$s.cancelOrder},organizationSolutionsListReset:e=>{let t=e;t.organizationSolutions=$s.organizationSolutions},activeSolutionsListReset:e=>{let t=e;t.activeSolutions=$s.activeSolutions},availableSolutionsReset:e=>{let t=e;t.availableSolutions=$s.availableSolutions},newOrderAllowanceReset:e=>{let t=e;t.newOrderAllowance=$s.newOrderAllowance},defaultItemQuantityReset:e=>{let t=e;t.defaultItemQuantity=$s.defaultItemQuantity}},extraReducers:e=>{e.addCase(nc.pending,e=>{let t=e;t.createOrder.status=`pending`,t.createOrder.data=null}).addCase(nc.fulfilled,(e,t)=>{let n=e;n.createOrder.status=`idle`,n.createOrder.data=t.payload.data}).addCase(nc.rejected,e=>{let t=e;t.createOrder.status=`idle`,t.createOrder.data={success:!1}}).addCase(rc.pending,e=>{let t=e;t.cancelOrder.status=`pending`,t.cancelOrder.data=null}).addCase(rc.fulfilled,(e,t)=>{let n=e;n.cancelOrder.status=`idle`,n.cancelOrder.data=t.payload.data}).addCase(rc.rejected,e=>{let t=e;t.cancelOrder.status=`idle`,t.cancelOrder.data={success:!1}}).addCase(ec.pending,e=>{let t=e;t.activeSolutions.status=`pending`,t.activeSolutions.data=null}).addCase(ec.fulfilled,(e,t)=>{let n=e;n.activeSolutions.status=`idle`,t.payload?.success?n.activeSolutions.data=t.payload.data:n.activeSolutions.data=null}).addCase(ec.rejected,e=>{let t=e;t.activeSolutions.status=`idle`,t.activeSolutions.success=!1}).addCase(tc.pending,e=>{let t=e;t.organizationSolutions.status=`pending`,t.organizationSolutions.data=null}).addCase(tc.fulfilled,(e,t)=>{let n=e;t.payload?.success?(n.organizationSolutions.data=t.payload.data,n.organizationSolutions.status=`idle`):(n.organizationSolutions.data=null,n.organizationSolutions.status=`failed`)}).addCase(tc.rejected,e=>{let t=e;t.organizationSolutions.status=`idle`}).addCase(ic.pending,e=>{let t=e;t.availableSolutions.status=`pending`,t.availableSolutions.data=null}).addCase(ic.fulfilled,(e,t)=>{let n=e;n.availableSolutions.status=`idle`,n.availableSolutions.data=t.payload.data}).addCase(ic.rejected,e=>{let t=e;t.availableSolutions.status=`idle`,t.availableSolutions.success=!1}).addCase(ac.pending,(e,t)=>{let n=e;n.newOrderAllowance.status=`pending`}).addCase(ac.fulfilled,(e,t)=>{let n=e,r=t.meta.arg.solution;n.newOrderAllowance.status=`idle`,t.payload.success&&(n.newOrderAllowance.data={...n.newOrderAllowance.data,[r]:t.payload.data})}).addCase(ac.rejected,e=>{let t=e;t.newOrderAllowance.status=`idle`,t.newOrderAllowance.success=!1}).addCase(oc.pending,e=>{let t=e;t.defaultItemQuantity.status=`pending`,t.defaultItemQuantity.data=null}).addCase(oc.fulfilled,(e,t)=>{let n=e;if(n.defaultItemQuantity.status=`idle`,t.payload.success){let e=t.payload.data;n.defaultItemQuantity.data=e}}).addCase(oc.rejected,e=>{let t=e;t.defaultItemQuantity.status=`idle`,t.defaultItemQuantity.success=!1})}}
10),{createOrderReset:cc,cancelOrderReset:lc,activeSolutionsListReset:uc,availableSolutionsReset:dc,organizationSolutionsListReset:fc,newOrderAllowanceReset:pc,defaultItemQuantityReset:mc}=sc.actions,hc=sc.reducer,gc=Ze(e=>({orders:e.orders,marketAdmins:e.marketAdmins,correspondenceAuthz:e.correspondenceAuthz,organizationSuperAdmins:e.organizationSuperAdmins,organization:e.organization,meetingsAuthz:e.meetingsAuthz,secretariatsAuthz:e.secretariatsAuthz,awatAdmins:e.awatAdmins,tasksAuthz:e.tasksAuthz,chatAuthz:e.chatAuthz}),{marketAdminPermissionsAsync:ja,marketAdminsPermissionsReset:za,availableSolutionsReset:dc,activeSolutionsListReset:uc,correspondenceAdminsPermissionsReset:Ro,organizationSuperAdminsPermissionsReset:Fs,activeSolutionsAsync:ec,availableSolutionsAsync:ic,correspondenceAdminsReset:Io,correspondenceAdminPermissionsAsync:ko,superAdminPermissonsAsync:Ds,meetingsAdminPermissionsAsync:Bs,meetingsAdminsPermissionsReset:Js,secretariatAdminPermissionsAsync:Wa,secretariatAdminsPermissionsReset:$a,awatAdminPermissionsAsync:ba,awatAdminsPermissionsReset:Oa,secretariatAdminPermissionsReset:Ga,getSecretariatsAsync:Qo,correspondenceRolesAsync:zo,tasksAdminPermissionsAsync:go,tasksAdminsPermissionsReset:wo,chatAdminPermissionsAsync:no,chatAdminsPermissionsReset:uo}),_c=(0,J.createContext)({hasAccess:(e,t)=>!0,isAwatAdmin:()=>!1,securityLoading:{owner:!1,marketAdmin:!1,correspondenceAdmin:!1,superAdmin:!1,activeSolutions:!1,availableSolutions:!1,meetingsAuthz:!1,secretariatsAuthz:!1,awatAdmins:!1,tasksAuthz:!1,chatAuthz:!1},accessibility:[],getMarketAdminPermissions:async(e,t)=>{},getCorrespondenceAdminPermissions:async(e,t)=>{},getSuperAdminPermissions:async(e,t)=>{},getMeetingsAdminPermissions:async e=>{},getTasksAdminPermissions:async e=>{},getChatAdminPermissions:async e=>{},getSecretariatAdminPermissions:async({organizationId:e,userId:t,secretariatId:n})=>{},getAvalaibleSolutions:async(e,t)=>{},getActiveSolutions:async e=>{},getAwatAdminsPermissions:e=>{},getOrganizationSecretariats:async e=>{},getOrganizationCorrespondenceRoles:async({organizationId:e,signedInUser:t})=>{},availableSolutionsReset:async()=>{},activeSolutionsListReset:async()=>{},correspondenceAdminsPermissionsReset:async()=>{},organizationSuperAdminsPermissionsReset:async()=>{},marketAdminsPermissionsReset:async()=>{},meetingsAdminsPermissionsReset:async()=>{},tasksAdminsPermissionsReset:async()=>{},chatAdminsPermissionsReset:async()=>{},awatAdminsPermissionsReset:()=>{}}),vc=gc(e=>{let{marketAdminPermissionsAsync:t,marketAdminsPermissionsReset:n,marketAdmins:r,activeSolutionsAsync:i,availableSolutionsAsync:a,correspondenceAuthz:o,organizationSuperAdmins:s,organization:c,correspondenceAdminPermissionsAsync:u,superAdminPermissonsAsync:d,orders:f,availableSolutionsReset:p,activeSolutionsListReset:m,correspondenceAdminsPermissionsReset:g,organizationSuperAdminsPermissionsReset:_,meetingsAdminPermissionsAsync:v,meetingsAdminsPermissionsReset:y,meetingsAuthz:b,tasksAdminPermissionsAsync:x,tasksAdminsPermissionsReset:S,chatAdminPermissionsAsync:C,chatAdminsPermissionsReset:w,tasksAuthz:T,chatAuthz:E,secretariatAdminPermissionsAsync:D,secretariatAdminPermissionsReset:O,secretariatAdminsPermissionsReset:k,awatAdminPermissionsAsync:A,awatAdminsPermissionsReset:j,secretariatsAuthz:M,awatAdmins:N,getSecretariatsAsync:P,correspondenceRolesAsync:F}=e,{organizationId:I}=h(),ee=c.selectedOrganization?.owner?.id,L=(0,J.useCallback)((e=[])=>{if(e&&Array.isArray(e)&&e?.length>0)return e.reduce((e,t)=>!t?.organization?.id||t?.organization?.id===I?{...e,[t.id]:!!t.rule.allow}:e,{})},[I]),R=(0,J.useMemo)(()=>({...L(o.userPermissions.data)??{},...L(s.userPermissions.data)??{},...L(r.userPermissions.data)??{},...L(b.userPermissions.data)??{},...L(T.userPermissions.data)??{},...L(E.userPermissions.data)??{},...L(M.userPermissions.data)??{},...L(N.userPermissions.data)??{}}),[I,o.userPermissions.data,s.userPermissions.data,r.userPermissions.data,b.userPermissions.data,T.userPermissions.data,E.userPermissions.data,M.userPermissions.data,N.userPermissions.data]),z=(0,J.useMemo)(()=>({owner:c.selectedOrganization?.owner?.id===void 0,marketAdmin:r.userPermissions.data===null,correspondenceAdmin:o.userPermissions.data===null,superAdmin:s.userPermissions.data===null,activeSolutions:f.activeSolutions.data===null,availableSolutions:f.availableSolutions.data===null,meetingsAuthz:b.userPermissions.data===null,tasksAuthz:T.userPermissions.data===null,chatAuthz:E.userPermissions.data===null,secretariatsAuthz:M.userPermissions.data===null,awatAdmins:N.userPermissions.data===null}),[c.selectedOrganization?.owner?.id,r.userPermissions.data,o.userPermissions.data,s.userPermissions.data,f.activeSolutions.data,f.availableSolutions.data,b.userPermissions.data,T.userPermissions.data,E.userPermissions.data,M.userPermissions.data,N.userPermissions.data]);(0,J.useEffect)(()=>()=>{p(),m(),g(),_(),n(),y(),S(),w(),k(),O()},[I]);let te=(0,J.useCallback)(({userId:e})=>{A({userId:e})},[A]),ne=(0,J.useCallback)(({organizationId:e})=>{P({path:e})},[P]),re=(0,J.useCallback)(({userId:e,organizationId:t})=>{F({organizationId:t,userId:e})},[F]),ie=(0,J.useCallback)(({organizationId:e,userId:n})=>{t({userId:n,organizationId:e})},[t]),ae=(0,J.useCallback)(({organizationId:e,userId:t})=>{a({userId:t,organizationId:e})},[a]),oe=(0,J.useCallback)(({organizationId:e})=>{i({organizationId:e})},[i]),se=(0,J.useCallback)(({organizationId:e,userId:t})=>{u({userId:t,organizationId:e})},[u]),ce=(0,J.useCallback)(({organizationId:e,userId:t})=>{d({userId:t,organizationId:e})},[d]),le=(0,J.useCallback)(({organizationId:e,userId:t})=>{v({userId:t,organizationId:e})},[v]),B=(0,J.useCallback)(({organizationId:e,userId:t})=>{x({userId:t,organizationId:e})},[x]),ue=(0,J.useCallback)(({organizationId:e,userId:t})=>{C({userId:t,organizationId:e})},[x]),de=(0,J.useCallback)(({organizationId:e,userId:t,secretariatId:n}
10)=>{O(),D({userId:t,organizationId:e,queryObject:{secretariatId:n}})},[D]),fe=()=>R[Y.AUTHZ.ADMINISTRATION.ADMINISTRATION_AUTHZ_ADD_AWAT_ADMIN];return l(_c.Provider,{value:{securityLoading:z,accessibility:R,hasAccess:(e,t)=>{if(t){if(f.availableSolutions.data&&f.availableSolutions.data?.find(e=>e===t))return!0;if(f.availableSolutions.data&&!f.availableSolutions.data?.find(e=>e===t))return!1}return fe&&ze(ee)||!e?!0:e(R)},isAwatAdmin:fe,getAvalaibleSolutions:ae,availableSolutionsReset:p,getActiveSolutions:oe,activeSolutionsListReset:m,getCorrespondenceAdminPermissions:se,correspondenceAdminsPermissionsReset:g,getSuperAdminPermissions:ce,organizationSuperAdminsPermissionsReset:_,getMarketAdminPermissions:ie,marketAdminsPermissionsReset:n,getMeetingsAdminPermissions:le,getTasksAdminPermissions:B,getChatAdminPermissions:ue,getSecretariatAdminPermissions:de,meetingsAdminsPermissionsReset:y,tasksAdminsPermissionsReset:S,chatAdminsPermissionsReset:w,getAwatAdminsPermissions:te,awatAdminsPermissionsReset:j,getSecretariatsAsync:P,getOrganizationSecretariats:ne,getOrganizationCorrespondenceRoles:re},children:e.children})}),yc=()=>(0,J.useContext)(_c),bc=J.createContext();function xc(){return(0,J.useContext)(bc)}var Sc=e=>({security:t,...n})=>{let{signedInUser:r}=xc(),{getAwatAdminsPermissions:i,awatAdminsPermissionsReset:a}=yc();return(0,J.useEffect)(()=>(i({userId:r.id}),()=>{a()}),[]),l(e,{...n})},Cc=(0,J.createContext)(),wc=()=>(0,J.useContext)(Cc);function Tc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ec=Tc();function Dc(e){Ec=e}var Oc={exec:()=>null};function kc(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function Ac(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(Mc.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var jc=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),Mc={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:kc(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:kc(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:kc(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:kc(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:kc(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:kc(e=>RegExp(`^ {0,${e}}>`))},Nc=/^(?:[ \t]*(?:\n|$))+/,Pc=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Fc=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ic=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Lc=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Rc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,zc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bc=Ac(zc).replace(/bull/g,Rc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Vc=Ac(zc).replace(/bull/g,Rc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Hc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Uc=/^[^\n]+/,Wc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Gc=Ac(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Wc).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Kc=Ac(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Rc).getRegex(),qc=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Jc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Yc=Ac(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
10)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))`,`i`).replace(`comment`,Jc).replace(`tag`,qc).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xc=Ac(Hc).replace(`hr`,Ic).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,qc).getRegex(),Zc={blockquote:Ac(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Xc).getRegex(),code:Pc,def:Gc,fences:Fc,heading:Lc,hr:Ic,html:Yc,lheading:Bc,list:Kc,newline:Nc,paragraph:Xc,table:Oc,text:Uc},Qc=Ac(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ic).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3}	)[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,qc).getRegex(),$c={...Zc,lheading:Vc,table:Qc,paragraph:Ac(Hc).replace(`hr`,Ic).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Qc).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,qc).getRegex()},el={...Zc,html:Ac(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Jc).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Oc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ac(Hc).replace(`hr`,Ic).replace(`heading`,` *#{1,6} *[^
11]`).replace(`lheading`,Bc).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},tl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nl=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rl=/^( {2,}|\\)\n(?!\s*$)/,il=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,al=/[\p{P}\p{S}]/u,ol=/[\s\p{P}\p{S}]/u,sl=/[^\s\p{P}\p{S}]/u,cl=Ac(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ol).getRegex(),ll=/(?!~)[\p{P}\p{S}]/u,ul=/(?!~)[\s\p{P}\p{S}]/u,dl=/(?:[^\s\p{P}\p{S}]|~)/u,fl=Ac(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,jc?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),pl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,ml=Ac(pl,`u`).replace(/punct/g,al).getRegex(),hl=Ac(pl,`u`).replace(/punct/g,ll).getRegex(),gl=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,_l=Ac(gl,`gu`).replace(/notPunctSpace/g,sl).replace(/punctSpace/g,ol).replace(/punct/g,al).getRegex(),vl=Ac(gl,`gu`).replace(/notPunctSpace/g,dl).replace(/punctSpace/g,ul).replace(/punct/g,ll).getRegex(),yl=Ac(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,sl).replace(/punctSpace/g,ol).replace(/punct/g,al).getRegex(),bl=Ac(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,al).getRegex(),xl=Ac(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,sl).replace(/punctSpace/g,ol).replace(/punct/g,al).getRegex(),Sl=Ac(/\\(punct)/,`gu`).replace(/punct/g,al).getRegex(),Cl=Ac(/^<(scheme:[^\s\x00-\x1f<>]*|email)>
11/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),wl=Ac(Jc).replace(`(?:-->|$)`,`-->`).getRegex(),Tl=Ac(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,wl).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),El=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Dl=Ac(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,El).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ol=Ac(/^!?\[(label)\]\[(ref)\]/).replace(`label`,El).replace(`ref`,Wc).getRegex(),kl=Ac(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Wc).getRegex(),Al=Ac(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,Ol).replace(`nolink`,kl).getRegex(),jl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ml={_backpedal:Oc,anyPunctuation:Sl,autolink:Cl,blockSkip:fl,br:rl,code:nl,del:Oc,delLDelim:Oc,delRDelim:Oc,emStrongLDelim:ml,emStrongRDelimAst:_l,emStrongRDelimUnd:yl,escape:tl,link:Dl,nolink:kl,punctuation:cl,reflink:Ol,reflinkSearch:Al,tag:Tl,text:il,url:Oc},Nl={...Ml,link:Ac(/^!?\[(label)\]\((.*?)\)/).replace(`label`,El).getRegex(),reflink:Ac(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,El).getRegex()},Pl={...Ml,emStrongRDelimAst:vl,emStrongLDelim:hl,delLDelim:bl,delRDelim:xl,url:Ac(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,jl).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ac(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,jl).getRegex()},Fl={...Pl,br:Ac(rl).replace(`{2,}`,`*`).getRegex(),text:Ac(Pl.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Il={normal:Zc,gfm:$c,pedantic:el},Ll={normal:Ml,gfm:Pl,breaks:Fl,pedantic:Nl},Rl={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},zl=e=>Rl[e];function Bl(e,t){if(t){if(Mc.escapeTest.test(e))return e.replace(Mc.escapeReplace,zl)}else if(Mc.escapeTestNoEncode.test(e))return e.replace(Mc.escapeReplaceNoEncode,zl);return e}function Vl(e){try{e=encodeURI(e).replace(Mc.percentDecode,`%`)}catch{return null}return e}function Hl(e,t){let n=e.replace(Mc.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(Mc.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(Mc.slashPipe,`|`);return n}function Ul(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Wl(e){let t=e.split(`
12`),n=t.length-1;for(;n>=0&&Mc.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
13`)}function Gl(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Kl(e,t=0){let n=t,r=``;for(let t of e)if(t===`	`){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function ql(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Jl(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
14`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
15`)}var Yl=class{options;rules;lexer;constructor(e){this.options=e||Ec}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:Wl(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);
vendor: 19,856 bytes, lines 15-72
15if(t){let e=t[0],n=Jl(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Ul(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Ul(t[0],`
16`),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Ul(t[0],`
17`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Ul(t[0],`
18`).split(`
19`),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
20`),c=s.replace(this.rules.other.blockquoteSetextReplace,`
21    $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
22${s}`:s,r=r?`${r}
23${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
24`+e.join(`
25`),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
26`+e.join(`
27`),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
28`);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Kl(t[2].split(`
29`,1)[0],t[1].length),l=e.split(`
30`,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
31`,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
32`,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,`  `),m=l):m=l.replace(this.rules.other.tabCharGlobal,`    `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
33`+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,`    `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
34`+l}u=!l.trim(),r+=p+`
35`,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1;if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=Wl(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Ul(t[0],`
36`),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Hl(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
37`):[],a={type:`table`,raw:Ul(t[0],`
38`),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Hl(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Ul(t[0],`
39`),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
40`?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=Ul(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Gl(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ql(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return ql(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},Xl=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ec,this.options.tokenizer=this.options.tokenizer||new Yl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:Mc,block:Il.normal,inline:Ll.normal};this.options.pedantic?(t.block=Il.pedantic,t.inline=Ll.pedantic):this.options.gfm&&(t.block=Il.gfm,this.options.breaks?t.inline=Ll.breaks:t.inline=Ll.gfm),this.tokenizer.rules=t}static get rules(){return{block:Il,inline:Ll}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(Mc.carriageReturn,`
41`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Mc.tabCharGlobal,`    `).replace(Mc.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
42`:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
43`)?``:`
44`)+i.raw,n.text+=`
45`+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
46`)?``:`
47`)+i.raw,n.text+=`
48`+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
49`)?``:`
50`)+i.raw,r.text+=`
51`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
52`)?``:`
53`)+i.raw,n.text+=`
54`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``,s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},Zl=class{options;parser;constructor(e){this.options=e||Ec}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(Mc.notSpaceStart)?.[0],i=e.replace(Mc.endingNewline,``)+`
55`;return r?`<pre><code class="language-`+Bl(r)+`">`+(n?i:Bl(i,!0))+`</code></pre>
56`:`<pre><code>`+(n?i:Bl(i,!0))+`</code></pre>
57`}blockquote({tokens:e}){return`<blockquote>
58${this.parser.parse(e)}</blockquote>
59`}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
60`}hr(e){return`<hr>
61`}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
62`+r+`</`+i+`>
63`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
64`}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
65`}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
66<thead>
67`+t+`</thead>
68`+r+`</table>
69`}tablerow({text:e}){return`<tr>
70${e}</tr>
71`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
72`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Bl(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Vl(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+Bl(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Vl(e);if(i===null)return Bl(n);e=i;let a=`<img src="${e}" alt="${Bl(n)}"`;return t&&(a+=` title="${Bl(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Bl(e.text)}},Ql=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},$l=class e{options;renderer;textRenderer;constructor(e){this.options=e||Ec,this.options.renderer=this.options.renderer||new Zl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ql}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);
vendor: 9,230 bytes, lines 72-101
72if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},eu=class{options;block;constructor(e){this.options=e||Ec}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Xl.lex:Xl.lexInline}provideParser(e=this.block){return e?$l.parse:$l.parseInline}},tu=new class{defaults=Tc();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=$l;Renderer=Zl;TextRenderer=Ql;Lexer=Xl;Tokenizer=Yl;Hooks=eu;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Zl(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Yl(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eu;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];eu.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&eu.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Xl.lex(e,t??this.defaults)}parser(e,t){return $l.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Xl.lex:Xl.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?$l.parse:$l.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Xl.lex:Xl.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?$l.parse:$l.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
73Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Bl(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function nu(e,t){return tu.parse(e,t)}nu.options=nu.setOptions=function(e){return tu.setOptions(e),nu.defaults=tu.defaults,Dc(nu.defaults),nu},nu.getDefaults=Tc,nu.defaults=Ec,nu.use=function(...e){return tu.use(...e),nu.defaults=tu.defaults,Dc(nu.defaults),nu},nu.walkTokens=function(e,t){return tu.walkTokens(e,t)},nu.parseInline=tu.parseInline,nu.Parser=$l,nu.parser=$l.parse,nu.Renderer=Zl,nu.TextRenderer=Ql,nu.Lexer=Xl,nu.lexer=Xl.lex,nu.Tokenizer=Yl,nu.Hooks=eu,nu.parse=nu,nu.options,nu.setOptions,nu.use,nu.walkTokens,nu.parseInline,$l.parse,Xl.lex;var ru=`##### 1405/04/22
74
75### امکانات جدید
76
77- ایجاد و مدیریت گروه در چت سازمانی
78
79امکان ایجاد گروه‌های گفتگو و مدیریت اعضای آن‌ها فراهم شده است تا بتوانید هماهنگی‌ها و گفتگوهای تیمی
80را در یک فضای مشترک و متمرکز انجام دهید.
81
82- ارسال و دریافت فایل در چت
83
84اکنون می‌توانید فایل‌های موردنیاز خود را مستقیماً در گفتگوها ارسال، دریافت و دانلود کنید تا تبادل
85اطلاعات و مستندات سریع‌تر و ساده‌تر انجام شود.
86
87- امکان ارسال اعلان‌های مهم از طریق پیامک
88
89امکان ارسال اعلان‌های مهم از طریق پیامک فراهم شده است تا کاربران حتی در زمان عدم حضور در سامانه نیز
90از رویدادهای مهم مطلع شوند و هیچ اطلاع‌رسانی مهمی را از دست ندهند.
91
92- افزودن تصویر به متن نامه
93
94از این پس می‌توانید تصاویر را مستقیماً در متن نامه‌ها قرار دهید تا مستندات کامل‌تر، خواناتر و
95قابل‌فهم‌تری ایجاد کنید.
96
97- امکان انتخاب فرمت نمایش تاریخ در قالب‌های چاپی
98
99از این پس می‌توانید فرمت نمایش روز، ماه و سال را در هر قالب چاپی به‌دلخواه تنظیم کنید تا ظاهر
100تاریخ‌ها با استانداردها و شیوه نگارش موردنظر سازمان شما هماهنگ باشد.
101
102- تعیین قالب چاپی پیشنهادی برای هر نامه
103
104از این پس می‌توانید برای هر نامه، یک قالب چاپی پیشنهادی انتخاب کنید تا هنگام مشاهده یا چاپ، قالب
105مناسب به‌صورت پیش‌فرض نمایش داده شود و کاربران سریع‌تر به خروجی موردنظر دسترسی داشته باشند.
106
107### بهبودها
108
109- تنظیمات سازمان در یک منوی مجزا و متمرکز قرار گرفته است تا دسترسی به بخش‌های پرکاربرد ساده‌تر و
110  سریع‌تر انجام شود.
111
112- از این پس با اضافه شدن به یک گروه در چت سازمانی، اعلان مربوطه برای شما ارسال می‌شود تا سریع‌تر از
113  عضویت خود و گفتگوهای جدید مطلع شوید.
114
115### رفع مشکلات
116
117- برخی اختلالات مرتبط با ارتباطات بین نامه‌ها برطرف شده است.
118
119- رفع برخی مشکلات گزارش‌شده.
120
121##### 1405/01/29
122
123### امکانات جدید
124
125- راهکار چت سازمانی اضافه شد.
126
127از این به بعد با فعال‌سازی این راهکار، کارمندان می‌توانند به‌صورت مستقیم با یکدیگر در ارتباط باشند و
128برای هماهنگی‌های سریع و روزمره، بدون نیاز به ابزارهای خارج از سازمان گفتگو کنند.
129
130- امکان ارسال پیام متنی به سایر کارمندان سازمان.
131
132از این به بعد می‌توانید به‌صورت مستقیم برای دیگر کارمندان سازمان پیام متنی ارسال کنید تا ارتباطات
133داخلی سریع‌تر انجام شود و هماهنگی‌ها بدون نیاز به ابزارهای جانبی پیش برود.
134
135- امکان ساخت و استفاده از تگ‌ها برای نامه‌ها، جلسات و کارها.
136
137از این به بعد می‌توانید با تگ گذاری موجودیت‌ها، آن‌ها را بر اساس موضوع، اولویت یا هر معیار دلخواه
138دسته‌بندی کنید، سریع‌تر به موارد مرتبط برسید و مدیریت و پیگیری نامه‌ها، جلسات و کارها را ساده‌تر و
139دقیق‌تر انجام دهید.
140
141- گزارش‌گیری از نامه‌های ارجاعی و کارهای تخصیص‌یافته اضافه شد.
142
143از این به بعد مدیران می‌توانند وضعیت نامه‌های ارجاعی و کارهای تخصیص‌یافته به کارمندان را مشاهده کنند
144و هر کارمند نیز به اطلاعات مربوط به خود دسترسی دارد تا دید بهتری از وضعیت پیگیری‌ها و عملکرد داشته
145باشند.
146
147- امکان تعریف قالب چاپی افقی (Landscape) اضافه شد.
148
149از این به بعد می‌توانید قالب‌های چاپی را به‌صورت افقی طراحی و استفاده کنید تا نمایش محتواهای
150گسترده‌تر منظم‌تر شده و خروجی چاپی متناسب‌تری داشته باشید.
151
152- امکان تعریف زمان شروع و پایان برای کارها.
153
154از این به بعد می‌توانید برای هر کار، علاوه بر زمان شروع، زمان پایان هم مشخص کنید تا بازه‌ی واقعی
155انجام کارها دقیق‌تر تعریف شود، کارهای چندروزه به‌درستی مدیریت شوند و در تقویم دید شفاف‌تری از حجم،
156ترتیب و تداخل کارها داشته باشید.
157
158- دایرکتوری ایمیل‌های ECE سازمان‌ها.
159
160از این به بعد هنگام ارسال ECE، به یک دایرکتوری متمرکز از ایمیل‌های ECE سازمان‌ها دسترسی دارید و
161می‌توانید بدون نیاز به دریافت ایمیل از منابع مختلف، مقصد موردنظر را سریع و دقیق انتخاب کرده و مکاتبه
162را انجام دهید.
163
164- ایجاد سریع نامه مرتبط از داخل نامه
165
166از این به بعد می‌توانید مستقیماً از داخل یک نامه، نامه‌ای جدید و مرتبط با آن ایجاد کنید و بدون طی
167مراحل اضافی، پاسخ یا ارتباط موردنظر را ثبت کنید. نوع ارتباط (مثل پاسخ، پیرو، عطف به و…) به‌صورت شفاف
168مشخص است و در صورت نیاز امکان تغییر آن هم وجود دارد.
169
170- نمایش یکپارچه نامه‌های مرتبط
171
172امکان مشاهده همه نامه‌هایی که با یک نامه در ارتباط هستند، شامل نامه‌های دارای مرجع و نامه‌های
173مرجع‌شده، در یک بخش یکپارچه اضافه شد تا روابط کامل نامه‌ها واضح‌تر دیده شود و پیگیری آن‌ها ساده‌تر
174انجام شود.
175
176- امکان برداشتن امضا از نامه توسط امضاکننده و ویرایش نامه در صورت نیاز
177
178اگر بعد از امضا نیاز به ویرایش نامه داشتید، امضاکننده می‌تواند امضای خود را بردارد تا نامه دوباره
179قابل ویرایش شود. فقط کافی است نامه را به کارتابل امضاکننده ارجاع بزنید.
180
181- امکان اضافه شدن پیوست به کارها
182
183از این به بعد کاربرانی که عضو راهکار مدیریت پروژه باشند می‌توانند هنگام ایجاد یا ویرایش کار،
184فایل‌های مرتبط را به آن پیوست کنند تا تمام اØ
184·Ù„اعات و مستندات موردنیاز هر کار در همان‌جا متمرکز باشد
185و پیگیری و انجام کارها سریع‌تر و دقیق‌تر انجام شود.
186
187- اضافه شدن تقویم آوات با نمای هفتگی
188
189از این به بعد می‌توانید برنامه‌ی یک هفته‌ی کامل خود را در تقویم مشاهده کنید، بین هفته‌های قبل و بعد
190جابه‌جا شوید و کارها و جلسات را دقیقاً در زمان‌بندی مربوط به خودشان ببینید.
191
192- انتخاب ترکیبی رونوشت از کارمندان و مخاطبان
193
194از این به بعد هنگام ایجاد یا ویرایش نامه‌های وارده، ارسالی و داخلی می‌توانید گیرنده‌های رونوشت و
195رونوشت مخفی را به‌صورت ترکیبی از میان کارمندان سازمان و مخاطبان بیرونی انتخاب کنید. این امکان باعث
196می‌شود ارسال نامه‌ها دقیق‌تر و هماهنگ‌تر با سناریوهای واقعی کاری انجام شود.
197
198- راه‌اندازی سریع سازمان با راهنمای مرحله‌به‌مرحله
199
200کاربران می‌توانند هنگام اولین ورود یا در زمان ایجاد یک سازمان جدید، از یک ویزارد ساده و گام‌به‌گام
201استفاده کنند تا چه در شروع کار و چه هنگام اضافه کردن سازمان جدید، فرآیند ایجاد یا پیوستن به سازمان
202به‌صورت سریع، شفاف و بدون سردرگمی انجام شود.
203
204- افزودن متن ثابت قابل تنظیم داخل توکن‌های قالب چاپی
205
206امکان اضافه‌کردن کلمات ثابت بین نام‌ها در توکن‌های گیرنده، فرستنده و امضاکننده فراهم شده تا هر
207سازمان بتواند قالب چاپی را متناسب با فرمت و ادبیات رسمی خودش شخصی‌سازی کند و ترکیب نام‌ها را دقیقاً
208به شکل دلخواه بچیند.
209
210### بهبودها
211
212- از این پس پس از ارجاع نامه، کاربر مستقیماً به صفحه «نامه‌های جاری» بازگردانده می‌شود تا بتواند
213  بلافاصله مکاتبات در انتظار بررسی خود را ادامه دهد و بدون بازگشت به کارتابل، فرآیند رسیدگی به
214  نامه‌ها را پیگیری کند.
215
216- کاربرانی که فقط عضو یک سازمان باشند، دیگر نیازی به انتخاب سازمان ندارند و پس از ورود مستقیماً وارد
217  میزکار خود می‌شوند.
218
219### رفع مشکلات
220
221- رفع مشکل نمایش جدول های چند صفحه ای در نسخه چاپی
222
223- رفع مشکل دریافت خطا هنگام ابطال نامه
224
225- رفع مشکل نمایش دستور رونوشت در خط دوم
226
227- رفع مشکل ارجاعات گروهی
228
229- رفع مشکل عدم امکان ادامه فرایند روی برخی نامه‌ها
230
231##### 1404/07/19
232
233### امکانات جدید
234
235- صفحه اختصاصی برای هر پروژه
236
237اکنون برای هر پروژه یک صفحه اختصاصی در دسترس است که می‌توانید تمامی کارهای مرتبط با آن را در یک‌جا
238مشاهده و مدیریت کنید.
239
240- نمای کانبان برای کارهای پروژه
241
242امکان ایجاد نمای کانبان با تعداد ستون‌های دلخواه فراهم شده است تا بتوانید کارهای پروژه را به‌صورت
243تصویری و منعطف مدیریت کنید.
244
245- امکان ایجاد چند کانبان برای هر پروژه
246
247می‌توانید برای هر پروژه چند کانبان با اهداف و ساختارهای متفاوت ایجاد کنید تا نظم و شفافیت بیشتری در
248مدیریت پروژه‌ها داشته باشید.
249
250- ویرایش و حذف کانبان
251
252قابلیت ویرایش و حذف کانبان‌ها اضافه شده تا بتوانید ساختار مدیریت پروژه‌های خود را هر زمان که خواستید
253تغییر دهید.
254
255- فعال‌سازی راهکار مدیریت پروژه
256
257از این پس می‌توانید راهکار مدیریت پروژه را با مجموعه‌ای از قابلیت‌های جدید فعال کنید و پروژه‌ها،
258اعضا و کارهای مرتبط را در یک محیط یکپارچه سازمان‌دهی نمایید.
259
260- نمایش اطلاع‌رسانی‌های اختصاصی در میزکار
261
262از این پس پیام‌ها و اطلاع‌رسانی‌های ویژه آوات مستقیماً در صفحه میزکار سازمان شما نمایش داده می‌شود
263تا بدون نیاز به پیگیری جداگانه، همیشه در جریان آخرین موارد قرار بگیرید.
264
265### رفع مشکلات
266
267- رفع برخی مشکلات گزارش شده.
268
269##### 1404/06/15
270
271### امکانات جدید
272
273- پیش‌نمایش نسخه چاپی نامه در فرم ثبت نامه
274
275از این پس هنگام ثبت یا مشاهده نامه، می‌توانید نسخه چاپی آن را به‌صورت پیش‌نمایش و در لحظه مشاهده
276کنید تا هم‌زمان با اعمال تغییرات، از درستی قالب و محتوای نامه پیش از چاپ نهایی اطمینان حاصل نمایید.
277
278- امکان انتخاب فونت مجزا برای هر توکن در قالب چاپی
279
280اکنون می‌توانید برای هر بخش (توکن) از قالب چاپی نامه‌ها، فونت دلخواه خود را انتخاب کنید تا کنترل
281دقیق‌تری بر ظاهر نهایی نامه‌ها داشته باشید.
282
283- امکان تغییر اندازه و فونت متن نامه از داخل فرم نامه
284
285از این پس می‌توانید مستقیماً هنگام نوشتن نامه، اندازه و فونت متن را تغییر دهید تا نگارش نامه‌ها با
286سلیقه و استانداردهای سازمانی شما هماهنگ‌‌‌تر شود.
287
288- امکان چاپ سوابق نامه، جلسه و کار
289
290اکنون می‌توانید سوابق مربوط به نامه‌ها، جلسات و کارها را در قالبی منظم و با فرمت جدول چاپ کنید.
291
292- افزودن فیلتر ارجاعات در سوابق نامه‌ها
293
294قابلیت جدیدی اضافه شده که به شما امکان می‌دهد سوابق نامه‌ها را براساس ارجاعات فیلتر کرده و سریع‌تر
295به اطلاعات مورد نظر دسترسی پیدا کنید.
296
297- اضافه شدن فونت ایران به فونت‌های قالب چاپی
298
299فونت ایران به گزینه‌های قالب چاپی اضافه شده‌ و می‌توانید نامه‌های خود را با این فونت‌ چاپ کنید.
300
301- امکان اضافه شدن دستور ارجاع توسط کاربر در لیست دستورات ارجاع و استفاده مجدد
302
303کاربران می‌توانند دستور ارجاع دلخواه خود را به لیست دستورات اضافه کنند و در موارد بعدی به راحتی
304دوباره از آن استفاده نمایند.
305
306### بهبودها
307
308- امکان توقف عملیات درخواست شده از هوش مصنوعی اضافه شده تا در صورت نیاز بتوانید فرایند پاسخ‌گویی را
309  متوقف کرده و کنترل بیشتری بر تعامل خود با سیستم داشته باشید.
310
311- از این پس به‌محض وقوع رویداد، اعلان مربوطه بلافاصله نمایش داده می‌شود. این تغییر باعث اطلاع‌رسانی
312  سریع‌تر و دقیق‌تر خواهد شد.
313
314- امکان خواندن همزمان همه اعلان‌ها با مکانیزم جدید بهینه‌سازی شده، که باعث افزایش سرعت عملکرد و
315  جلوگیری از بروز مشکل هنگام وجود تعداد زیاد اعلان‌های خوانده نشده می‌شود.
316
317- کاربران می‌توانند جایگیری جدول را در ادیتور مشخص کنند و در چاپ به صورت وسط‌چین، راست‌چین یا چپ‌چین
318  نمایش دهند.
319
320- در صورتی که برای سمت‌ها کد تعریف شده باشد، ترتیب نمایش آن‌ها در فیلدهای انتخاب کارمند به‌صورت
321  خودکار بر اساس کد سمت تنظیم می‌شود.
322
323- نمایش نام دبیرخانه و اندیکاتور پیش از شماره‌گذاری برای جلوگیری از شماره شدن در دبیرخانه یا
324  اندیکاتور اشتباه
325
326### رفع مشکلات
327
328- مشکل عدم انجام جستجوی تاریخ با زدن دکمه Enter برطرف شده
329
330- رفع مشکل نمایش ندادن دبیرخانه غیرفعال در نامه‌هایی که قبلاً با آن دبیرخانه شماره‌گذاری شده‌اند.
331
332- لیست پیشنهادی در فیلد گیرندگان و فرستندگان نامه اصلاح شده.
333
334- مشکل عدم دسترسی به نسخه چاپی در لیست اندیس های اندیکاتور حل شده
335
336- مشکل به هم ریختن چاپ در شرایط خاص زمانی که اندازه هدر یا فوتر را تغییر می‌دهیم برطرف شده.
337
338##### 1404/02/14
339
340### امکانات جدید
341
342- ایجاد پروژه و افزودن اعضای مرتبط
343
344از این پس می‌توانید پروژه‌های جدید ایجاد کرده و افراد مرتبط با هر پروژه را به آن اضافه کنید تا
345همکاری و پیگیری امور پروژه به‌صورت هدفمند و سازمان‌یافته انجام شود.
346
347- اضافه کردن کار به یک پروژه مشخص
348
349در زمان ایجاد یا ویرایش یک کار، می‌توانید آن را به یک پروژه مشخص اختصاص دهید تا تمامی کارهای مرتبط
350با پروژه به‌صورت یکپارچه قابل مدیریت و پیگیری باشند.
351
352- مدیریت و ویرایش پروژه توسط مالک پروژه
353
354مالک هر پروژه می‌تواند جزئیات پروژه را مدیریت و ویرایش کند؛ از جمله تغییر عنوان، توضیحات، اعضا و
355کارهای مرتبط، تا پروژه‌ها دقیق‌تر و متناسب با نیازها پیش بروند.
356
357- مشاهده لیست پروژه‌های من
358
359از بخش پروژه‌ها می‌توانید لیست تمامی پروژه‌هایی که در آن‌ها عضو هستید را (چه به‌عنوان مالک و چه
360به‌عنوان عضو عادی) به‌صورت یکجا مشاهده کنید تا دسترسی سریع‌تری به پروژه‌های خود داشته باشید.
361
362- اعلان اضافه شدن به پروژه
363
364هرگاه کارمندی به یک پروژه جدید اضافه شود، یک اعلان خودکار برای او ارسال می‌شود تا از عضویت خود در
365پروژه و جزئیات مربوط به آن مطلع گردد.
366
367- انتخاب تعداد آیتم‌های نمایشی در جدول‌ها
368
369حالا می‌توانید تعداد آیتم‌های نمایش داده‌شده در جدول‌ها را به دلخواه خود انتخاب کنید تا مرور و
370مدیریت اطلاعات متناسب با نیازتان ساده‌تر شود.
371
372- امکان نمایش تاریخ نامه در ستون‌های کارتابل
373
374از این پس، ستون تاریخ نامه به کارتابل‌ها اضافه شده است تا در صورت نیاز بتوانید تاریخ یک نامه را
375به‌راحتی در کنار اطلاعات دیگر نامه مشاهده و در تصمیم‌گیری‌ها و پیگیری‌ها دقیق‌تر عمل کنید.
376
377- اضافه شدن فونت ساحل و PRO MYRID به فونت‌های قالب چاپی
378
379فونت ساحل و PRO MYRID به گزینه‌های قالب چاپی اضافه شده‌ و می‌توانید نامه‌های خود را با این فونت‌ چاپ
380کنید.
381
382### بهبودها
383
384- از این پس هنگام جستجوی یک ارجاع در بخش نامه‌ها، آخرین ارجاع مربوط به آن نامه نمایش داده می‌شود.
385
386### رفع مشکلات
387
388- مشکل مربوط به نمایش و استایل بخش عملیات‌های نامه در نسخه موبایل برطرف شده است.
389
390##### 1404/01/23
391
392### امکانات جدید
393
394- نوشتن نامه با کمک هوش مصنوعی ✨
395
396کاربران می‌توانند تنها با وارد کردن یک پرامپت ساده، متن نامه خود را با کمک هوش مصنوعی با لحن رسمی یا
397دوستانه تولید کرده و در زمان تهیه و نگارش نامه‌ها صرفه‌جویی Ú©Ù
397†Ù†Ø¯.
398
399- ارسال رسید دریافت ECE (اتوماتیک و دستی)
400
401پس از دریافت یک نامه ECE، رسید دریافت می‌تواند به‌صورت اتوماتیک (در صورت فعال بودن گزینه‌ی مربوط در
402تنظیمات) یا به‌صورت دستی توسط کاربر ارسال شود. این رسید شامل شماره و تاریخ ثبت نامه در سازمان گیرنده
403است و به فرستنده اطمینان می‌دهد که نامه با موفقیت دریافت و در سیستم ثبت شده است.
404
405- دریافت رسید دلیوری ECE از سازمان گیرنده
406
407از این پس می‌توانید رسیدهای دلیوری نامه‌های ECE را که از سمت سازمان گیرنده ارسال شده‌اند، مشاهده و
408بررسی کنید تا از تحویل موفق نامه‌های ارسالی خود مطمئن شوید. این رسیدها شامل شماره و تاریخ ثبت نامه
409در سازمان گیرنده نیز هستند که برای پیگیری دقیق‌تر، قابل مشاهده خواهند بود.
410
411- هشدار تکراری بودن نامه وارده
412
413هنگام ثبت نامه وارده، در صورتی که شماره نامه، تاریخ نامه و فرستنده آن با نامه‌ای که قبلاً ثبت شده
414یکسان باشد، سیستم هشدار تکراری بودن را نمایش می‌دهد تا کاربر از احتمال ثبت تکراری مطلع شود و در صورت
415لزوم، تصمیم به ادامه ثبت یا توقف آن بگیرد.
416
417### بهبودها
418
419- از این پس، دبیرخانه‌هایی که تمام اندیکاتورهای آن‌ها غیرفعال است، در فرم ثبت نامه نمایش داده
420  نمی‌شوند و قابل انتخاب نخواهند بود. این تغییر باعث کاهش خطا و ساده‌سازی انتخاب دبیرخانه می‌شود.
421
422### رفع مشکلات
423
424- مشکلات گزارش شده در بخش ECE برطرف شده.
425
426##### 1403/11/20
427
428### امکانات جدید
429
430- ادیتور جدید متن نامه با امکانات جدید و بهبود امکانات قبلی
431
432ادیتور متن نامه با امکانات پیشرفته‌تر معرفی شده است که علاوه بر ارائه قابلیت‌های جدید، امکانات قبلی
433مانند مدیریت جداول نیز بهبود یافته است تا تجربه کاربری بهتری فراهم شود.
434
435- اضافه شدن امکان مشاهده سوابق یک کار
436
437کاربران اکنون می‌توانند تمامی سوابق و تغییرات مرتبط با یک کار را مشاهده کنند تا دید کاملی از روند
438انجام وظایف داشته باشند.
439
440- امکان شخصی‌سازی نمایش پیش‌فرض بخش‌های نامه
441
442کاربران می‌توانند نمایش پیش‌فرض بخش‌های مختلف نامه را مطابق با نیاز خود تنظیم کنند تا سرعت و کارایی
443در تهیه و مدیریت نامه‌ها مطابق با نیاز هر کاربر افزایش یابد.
444
445- اضافه شدن فونت بی‌زر به فونت‌های قالب چاپی
446
447فونت بی‌زر به گزینه‌های قالب چاپی اضافه شده‌ و می‌توانید نامه‌های خود را با این فونت‌ چاپ کنید.
448
449### بهبودها
450
451- برخی از قایلیت‌های ادیتور متن نامه بهبود یافته است
452
453### رفع مشکلات
454
455- برخی مشکلات شناسایی‌شده در بخش کارها برطرف شده است.
456
457##### 1403/10/02
458
459### امکانات جدید
460
461- تخصیص کار به کارمند
462
463از این پس مدیران و کارمندان می‌توانند وظایف ایجاد شده را به کارمندان موردنظر تخصیص دهند، تا هر فرد
464مسئولیت‌های خود را به‌وضوح بشناسد و فرآیند انجام کارها با تمرکز و سرعت بیشتری پیش برود. این قابلیت
465به بهبود عملکرد تیم‌ها و افزایش بهره‌وری کمک خواهد کرد.
466
467- اعلان برای کار تخصیص داده شده به کارمند
468
469به محض تخصیص یک کار جدید، اعلان خودکار برای کارمند مربوطه ارسال می‌شود تا به‌سرعت از کار جدید خود
470مطلع شود و بتواند به موقع آن را آغاز کرده و در زمان تعیین‌شده به اتمام برساند.
471
472- مشاهده لیست کارهای تخصیص داده شده به کارمند
473
474کارمندان اکنون می‌توانند به لیست کامل کارهای تخصیص داده شده به خودشان دسترسی داشته باشند و
475برنامه‌ریزی بهتری برای انجام آن‌ها داشته باشند.
476
477- مشاهده کارهای تخصیص داده شده به کارمند در تقویم روزانه
478
479کاربران اکنون می‌توانند وظایف تخصیص داده شده به خود را در تقویم روزانه مشاهده کنند تا هر روز دیدی
480شفاف‌ از کارهای آن روزشان داشته باشند.
481
482- اضافه شدن امکان تعریف مهر سازمان و استفاده از آن در قالب‌های چاپی نامه
483
484کاربران اکنون می‌توانند مهر سازمان را تعریف کرده و از آن در قالب‌های چاپی نامه‌ها استفاده کنند تا
485اسناد چاپی رسمیت و اعتبار بیشتری داشته باشند.
486
487### بهبودها
488
489- بارگذاری فرم‌ها در بخش‌های مختلف سیستم بهینه‌سازی شده است تا کاربران تجربه سریع‌تر و روان‌تری در
490  استفاده از فرم‌ها داشته باشند.
491
492### رفع مشکلات
493
494- برخی مشکلات شناسایی‌شده در بخش جلسات برطرف شده است تا کاربران بتوانند بدون هیچ اختلالی از امکانات
495  این بخش استفاده کنند.
496
497##### 1403/09/05
498
499### امکانات جدید
500
501- امکان سفارشی‌سازی چیدمان اطلاعات در قالب چاپی
502
503از این به بعد کاربران می‌توانند چیدمان نمایش اطلاعات فرستنده، گیرنده و نام امضاکننده را در قالب چاپی
504به‌صورت سفارشی تنظیم کنند.
505
506- ایجاد و تنظیم قالب چاپی برای نامه‌های انگلیسی
507
508امکان ایجاد و استفاده از قالب چاپی مناسب برای نامه‌های انگلیسی به محصول اضافه شده است.
509
510- مشاهده فایل‌های آپلود شده در کل سازمان
511
512قابلیت جدیدی اضافه شده است که کاربران دارای دسترسی می‌توانند تمامی فایل‌های آپلود شده در سطح سازمان
513را مشاهده کنند.
514
515- اعلان برای کارهایی که زمانشان فرارسیده
516
517از این به بعد برای کارهایی که زمان انجام آن‌ها فرارسیده است، اعلان‌هایی به صورت خودکار ارسال می‌شود
518تا کاربران به موقع از کارهای خود مطلع شوند و از فراموشی یا تأخیر در انجام آن‌ها جلوگیری شود.
519
520- اضافه شدن لقب‌های جدید برای مخاطب و کارمند
521
522کاربران اکنون می‌توانند برای کارمندان یا مخاطبان خود از القاب دکتر و مهندس استفاده کنند و ارتباطات
523خود را حرفه‌ای‌تر تنظیم کنند.
524
525- تمایز کارت‌های کار انجام شده در تقویم‌ها
526
527کارت‌های مربوط به کارهای انجام شده در تقویم‌ها با طراحی متمایز نمایش داده می‌شوند تا کاربران بتوانند
528به‌سرعت وضعیت کارهایشان را شناسایی Ú©Ù
528†Ù†Ø¯.
529
530### بهبودها
531
532- مشکلات موجود در مدیریت و تنظیم جلسات تکرارپذیر برطرف شده است تا کاربران تجربه‌ای کارآمدتر و بدون
533  خطا در استفاده از این قابلیت داشته باشند.
534
535- بخش "راهکارهای درحال توسعه" با اضافه شدن راهکارهای جدید برای ارائه پیشنهادات مؤثرتر به‌روز شده
536  است.
537
538### رفع مشکلات
539
540- برخی مشکلات در نمایش نتایج جستجوی نامه برطرف شده.
541
542- مشکل جستجوی نامه باطل شده در دبیرخانه برطرف شده.
543
544- برخی مشکلات گزارش شده در ece برطرف شده.
545
546##### 1403/07/25
547
548### امکانات جدید
549
550- ایجاد کار از همه جای محصول
551
552امکان ایجاد کار از هر بخش محصول فراهم شده است تا کاربران بتوانند در هر لحظه و بدون محدودیت کارهای
553خود را ثبت و مدیریت کنند.
554
555- تغییر وضعیت کار (انجام شده / انجام نشده)
556
557امکان تغییر وضعیت کارها از "انجام شده" به "انجام نشده" و برعکس اضافه شده است، تا کاربران بتوانند به
558راحتی وضعیت پیشرفت کارهای خود را مدیریت کنند.
559
560- مشاهده لیست کارها بر اساس وضعیت (انجام شده / انجام نشده) از همه جای محصول
561
562امکان مشاهده جداگانه لیست کارهای انجام شده و انجام نشده از هر بخش محصول اضافه شده است، به این ترتیب
563کاربران می‌توانند در هر لحظه و از هر جای محصول به سرعت به لیست کارهای خود دسترسی پیدا کرده و وضعیت
564آن‌ها را بررسی کنند.
565
566- ویرایش کار
567
568با این قابلیت می‌توانید به راحتی تغییرات لازم را در کارهای خود اعمال کرده و اطلاعات مربوط به هر کار
569را به‌روزرسانی کنید.
570
571- حذف کار
572
573قابلیت حذف کار‌ها اضافه شده است و کاربران اکنون می‌توانند کار‌هایی که به اشتباه وارد کرده‌اند یا
574تکمیل‌ شده را به راحتی از لیست خود حذف کنند.
575
576- تقویم روز در صفحه میزکار
577
578نمایش تقویم روزانه در صفحه میزکار اضافه شده است تا کاربران بتوانند کار‌ها و جلسات هر روز خود را به
579راحتی مشاهده و مدیریت کنند.
580
581- گزارش‌ نامه‌ها بر اساس مرجع بودن
582
583قابلیت جدیدی برای مشاهده گزارشی از نامه‌ها بر اساس مرجع بودن یا نبودن آنها در سایر نامه‌ها اضافه شده
584است.
585
586- تغییر سمت از همه جای محصول
587
588کاربران اکنون می‌توانند از هر بخش محصول سمت خود را تغییر دهند و اطلاعات مربوط به سمت دیگرشان را
589ببینند.
590
591### بهبودها
592
593- گزینه پست به لیست روش‌های ارسال نامه اضافه شده است تا در صورتی که نامه‌های خود را به صورت فیزیکی و
594  از طریق خدمات پستی ارسال کردید، امکان انتخاب گزینه‌ مرتبط با آن را در نحوه ارسال داشته باشید.
595
596### رفع مشکلات
597
598- برخی مشکلات در بخش پروفایل کاربری برطرف شده.
599
600- مشکل فیلد رونوشت در شرایط خاص برطرف شده.
601
602##### 1403/07/08
603
604### امکانات جدید
605
606- امکان جستجو و انتخاب نامه مرجع هنگام اضافه کردن مراجع
607
608از این به بعد، هنگام افزودن مرجع به یک نامه، می‌توانید با جستجوی شماره نامه، به‌راحتی نامه موردنظر
609خود را پیدا کرده و آن را به ‌عنوان مرجع اضافه کنید. با این کار، نامه‌های مرجع به‌طور خودکار به نامه
610اصلی لینک می‌شوند و می‌توانید با یک کلیک بر روی هر مرجع، مستقیماً نامه را مشاهده کنید. این قابلیت به
611شما کمک می‌کند تا پیگیری نامه‌های مرتبط را سریع‌تر و کارآمدتر انجام دهید.
612
613- امکان جستجوی نامه بدون نیاز به انتخاب نوع نامه
614
615از این به بعد نیازی به انتخاب نوع نامه برای جستجوی نامه نیست و می‌توانید بدون محدودیت و با جستجو در
616تمامی دسته‌بندی‌های نوع نامه، نامه‌های مورد نظر خود را جستجو و پیدا کنند.
617
618- اضافه شدن فونت بی‌تیتر و بی‌ترافیک به فونت‌های قالب چاپی
619
620فونت‌های بی‌تیتر و بی‌ترافیک به گزینه‌های قالب چاپی اضافه شده‌اند و می‌توانید نامه‌های خود را با این
621فونت‌ها چاپ کنید.
622
623### رفع مشکلات
624
625- مشکل نمایش برخی فایل‌های پیوست برطرف شد.
626
627- مشکل ذخیره نامه ارسالی در شرایطی که گیرندگان رو نوشت مخفی انتخاب شده باشند برطرف شد.
628
629- مشکل ارجاع نامه زمانی که ارجاع دارای پیوست باشد برطرف شد.
630
631- مشکل عدم امکان ایجاد نامه ای سی ای توسط راهبر ارشد برطرف شد.
632
633##### 1403/05/28
634
635### امکانات جدید
636
637- اضافه کردن نمونه متن نامه
638
639امکان اضافه کردن نمونه‌های متن نامه اضافه شد تا فرآیند نگارش نامه را ساده‌تر کرده و نمونه‌های
640استاندارد را برای فرایندهای مشخص سازمان فراهم کند.
641
642- پیش‌نمایش پیوست‌ها و حجم آن‌ها
643
644امکان مشاهده پیش‌نمایش پیوست‌ها به همراه نمایش حجم فایل‌ها اضافه شد که مدیریت و انتخاب فایل‌ها را
645بهبود می‌بخشد.
646
647- امکان ثبت مخاطب بدون نیاز به وارد کردن نام خانوادگی
648
649امکان ثبت مخاطب بدون نیاز به وارد کردن نام خانوادگی فراهم شد که انعطاف‌پذیری بیشتری در مدیریت
650مخاطبین ارائه می‌دهد.
651
652- نمایش نام کامل مخاطب در جدول‌ها
653
654از این به بعد در جدول ها نام کامل مخاطبین نمایش داده می‌شود، تا اطلاعات دقیق‌تر و شفاف‌تری در دسترس
655باشد.
656
657- سمت محور شدن لیست ثبت رسید ارسال برای نامه‌ها
658
659لیست نامه‌هایی که رسید ارسال برای آن‌ها ثبت شده است، به صورت سمت‌محور نمایش داده می‌شود تا مدیریت و
660پیگیری نامه‌ها با توجه به سمت‌های مربوطه، سریع‌تر و کارآمدتر باشد.
661
662- اضافه شدن دسترسی‌ها در سطح اندیکاتور
663
664امکان تنظیم دسترسی‌های مشخصی در سطح یک اندیکاتور افزوده شد، که باعث مدیریت بهتر و دقیق‌تر سطوح
665دسترسی کاربران در سازمان می‌شود.
666
667### بهبودها
668
669- لیست دسترسی‌های مربوط به گروه‌های دسترسی به‌روزرسانی شد تا دبیرخانه یا اندیکاتورهای مربوطه به‌طور
670  دقیق‌ مشخص شوند و مدیریت دسترسی‌ها با دقت بیشتری انجام گیرد.
671
672### رفع مشکلات
673
674- مشکل در عملکرد درخت سمت‌ها برطرف شد.
675
676- مشکل خالی نشدن کارتابل پس از آزاد کردن جایگاه برطرف شد.
677
678##### 1403/05/02
679
680### امکانات جدید
681
682- امکان جستجوی نامه در دبیرخانه
683
684امکان جستجوی نامه‌ها در دبیرخانه اضافه شد. کاربران می‌توانند بر اساس موضوع، متن، شماره نامه، تاریخ و
685دیگر فیلدها نامه‌ها را در دبیرخانه موردنظر جستجو کنند.
686
687- جستجو نامه بر اساس بازه تاریخ
688
689قابلیت جستجوی نامه‌ها بر اساس بازه تاریخی مشخص شده به محصول اضافه شد. از این به بعد هنگام جستجوی
690نامه به جای وارد کردن یک تاریخ، می‌توانید نامه‌ها را در یک بازه تاریخ جستجو کنید.
691
692- نمایش نام سازمان و سمت مخاطب در فیلدهای انتخاب مخاطب
693
694در فیلدهای انتخاب مخاطب، مانند انتخاب فرستنده یا گیرنده یک نامه، علاوه بر نام مخاطب، نام سازمان و
695سمت مخاطب به صورت کامل نمایش داده می‌شود تا کاربران بتوانند به راحتی مخاطب مورد نظر خود را انتخاب
696کنند.
697
698### بهبودها
699
700- جایگذاری متن از محیط بیرون در ادیتور متن نامه با حفظ استایل، بهبود پیدا کرده.
701
702### رفع مشکلات
703
704- مشکل کارت ابطال نامه در بخش سوابق نامه برطرف شده.
705
706- مشکل مربوط به ثبت نامه ECE با استفاده از فایل‌ XML برطرف شده.
707
708- مشکل نمایش پیام مربوط به نتیجه تست اتصال ECE برطرف شده و کاربران می‌توانند از وضعیت اتصال تنظیمات
709  مربوط به ECE مطلع شوند.
710
711##### 1403/03/22
712
713### امکانات جدید
714
715- تعریف سطوح دسترسی در ارجاعات مطابق با نیاز سازمان
716
717از این به بعد می‌توانید دسترسی ارجاع نامه بین افراد سازمان را مطابق با نیاز سازمان تعیین کنید.
718
719- امکان باطل کردن نامه شماره شده
720
721در صورتی که نامه شماره شده‌ای داشتید که به هر دلیلی از سندیت افتاده، می‌توانید با ثبت دلیل، آن نامه
722را باطل کنید.
723
724### رفع مشکلات
725
726- مشکل ذخیره شدن نامه برای برخی از انواع مرجع، هنگام ثبت ECE برطرف شده.
727
728- مشکل کپی کردن متن از ادیتور نامه و جایگذاری مجدد آن داخل ادیتور برطرف شده.
729
730- مشکل تنظیم چینش جدول در ادیتور نامه برطرف شده.
731
732- رفع مشکل حذف مخاطب.
733
734- رفع مشکل آزاد کردن جایگاه.
735
736- رفع برخی مشکلات گزارش شده.
737
738##### 1403/02/26
739
740### امکانات جدید
741
742- امکان جایگذاری متن از محیط بیرون در ادیتور متن نامه با حفظ استایل
743
744در صورتی که متن نامه‌ای از قبل آماده دارید می‌توانید آن را کپی و با حفظ استایل‌ در ادیتور متن نامه
745جایگذاری و استفاده کنید.
746
747- افزایش حجم آپلود فایل در مکاتبات
748
749از این به بعد می‌توانید فایل‌هایی تا حجم 30 مگابایت را در مکاتبات آپلود کنید.
750
751### بهبودها
752
753- افزایش سرعت عملیات‌هایی مانند ارجاع نامه
754
755سرعت ارجاع همزمان نامه به چندین نفر بهبود پیدا کرده.
756
757### رفع مشکلات
758
759- برطرف شدن مشکل محدودیت فرمت فایل در بخش آپلود ضمائم تکمیلی.
760
761- حل برخی مشکلات گزارش شده در ادیتور متن نامه.
762
763- حل مشکل باز نشدن نامه از صفحه میزکار.
764
765- رفع برخی مشکلات گزارش شده.
766
767##### 1403/01/26
768
769### امکانات جدید
770
771- بازگرداندن نامه ارجاع شده به کارتابل کاربر ارجاع دهنده
772
773از این به بعد می‌توانید در صورتی که نامه‌ای که ارجاع داده‌اید توسط گیرنده باز نشده بود آن نامه را به
774کارتابل خود بازگردانید.
775
776- اضافه کردن فایل به نامه حتی بعد از امضا و شماره
777
778امکان اضافه شدن فایل به نامه حتی بعد از امضا یا شماره شدن نامه در بخش اطلاعات تکمیلی اضافه شد.
779
780- حذف مخاطب
781
782امکان حذف مخاطب‌هایی که استفاده‌ای از آن ندارید اضافه شده است.
783
784- گروه دسترسی با دسترسی‌ها و کاربران مشخص
785
786می توانید گروه‌هایی با دسترسی‌های انتخابی داشته باشید و با اضافه کردن کاربران موردنظر به آن گروه‌ها
787دسترسی‌های انتخابی خودتان را به آن کاربران بدهید.
788
789- دریافت نوتیفیکیشن‌ها در موبایل
790
791با نصب نسخه PWA آوات از این به بعد نوتیفیکیشن‌های آوات را به صورت مستقیم در موبایل خود دریافت کنید.
792
793### رفع مشکلات
794
795- مشکل پیامک های اطلاع رسانی سازمان برطرف شده
796
797- مشکل فعال سازی راهکار توسط راهبر ارشد حل شده
798
799##### 1402/12/01
800
801### امکانات جدید
802
803- ثبت صورت جلسه در جلسات تکرارپذیر
804
805امکان ثبت صورت جلسه در جلسات تکرارپذیر اضافه شد تا بتوانید به این نوع جلسات هم صورت جلسه را اضافه
806کنید.
807
808- اضافه کردن فایل ضمیمه در کنار دستور ارجاع
809
810از این به بعد می‌توانید هنگام ارجاع یک نامه علاوه بر دستور ارجاع فایل یا فایل‌هایی را به آن ارجاع
811ضمیمه کنید تا در صورت لزوم اطلاعات بیشتری را به گیرنده ارجاع برسانید.
812
813- اضافه کردن امکان ریسایز کردن اندازه سطر و ستون‌های جدول
814
815امکان تغییر اندازه سطر و ستون‌های جدول را در ادیتورهای متنی اضافه کردیم تا جدول‌ها را مطابق با
816داده‌های آن بسازید.
817
818- اضافه شدن اطلاعات مورد نیاز در صفحه پرداخت
819
820در صفحه پرداخت اطلاعات لازم برای پرداخت را اضافه کردیم تا فرایند ثبت سفارش راحت‌تر و سریع‌تر شود.
821
822### بهبودها
823
824- نمایش اطلاعات کامل‌تر نامه ECE ارسال شده
825
826در بخش نامه‌های ECE ارسال شده، با انتخاب هر نامه اطلاعات کامل‌تری از آن نامه را می‌توانید ببینید.
827
828### رفع مشکلات
829
830- حل برخی مشکلات و بهبود عملکرد جدول‌ها در ادیتورهای متنی
831
832##### 1402/10/03
833
834### امکانات جدید
835
836- اطلاع از باز شدن نامه توسط گیرنده ارجاع
837
838پس از ارجاع یک نامه، می‌توانید به لیست «ارجاع شده» بروید و ببینید که نامه در چه زمانی توسط گیرنده
839باز شده.
840
841- اختتام جلسه
842
843از این پس، می‌توانید با استفاده از امکان «اختتام» یک جلسه، از ویرایش اطلاعات آن جلوگیری کنید.
844
845- قرار دادن شماره نامه انگلیسی در نسخه چاپی
846
847می‌توانید در قالب چاپی مشخص کنید که شماره نامه‌ها در آن قالب با اعداد انگلیسی چاپ شوند.
848
849- پیشنهاد خودکار گیرنده ارجاع
850
851برای اینکه نامه‌های داخلی جدید را راحت‌تر و سریع‌تر به گردش درآورید، گیرنده ارجاع به صورت خودکار از
852روی گیرنده‌های نامه به شما پیشنهاد داده می‌شود.
853
854- جلسات تکرارپذیر در روزهای خاص
855
856از این پس می‌توانید برای جلساتی که الگوی مشخصی در تکرار شدن ندارند، روزهای مورد نظرتان را تعیین کنید
857تا جلسه در آن روزها تکرار شود.
858
859- انتخابی بودن تصویر امضای نامه در نسخه چاپی
860
861اگر بخواهید فقط نام امضا کننده در نسخه چاپی نمایش داده شود تا آن را به صورت گرم امضا کنید، این ویژگی
862برای شما مفید خواهد بود.
863
864- لیست نامه‌های ece ارسالی
865
866از این پس علاوه بر لیست نامه‌های ece دریافتی می‌توانید لیست نامه‌های ece که ارسال کرده‌اید را هم
867ببینید.
868
869### بهبودها
870
871- پشتیبانی از مرورگرهای بیشتر در بخش قالب چاپی
872
873قالب چاپی حالا در مرورگرهای بیشتری بدون مشکل قابل استفاده است.
874
875- رسیدهای ارسال نامه‌ها در موبایل
876
877از این پس رسیدهای ارسال نامه ها در موبایل هم در دسترس است.
878
879- بهبود فرم نامه در موبایل
880
881برای اینکه بتوانید نامه‌های خود را راحت‌تر در موبایل ایجاد یا ویرایش کنید تغییراتی در فرم نامه
882موبایل ایجاد کرده‌ایم.
883
884- بهبود سرعت جستجوی نامه
885
886سرعت جستجوی نامه‌ها را در حالتی که همه فیلدها را خالی بگذارید، بهتر کردیم.
887
888- امکان حذف تصویر امضا
889
890از این پس، می‌توانید در صورت نیاز امضایی که از قبل تعریف کرده اید را حذف کنید.
891
892### رفع مشکلات
893
894- حل برخی مشکلات و بهبود عملکرد ارسال و دریافت ایمیل‌های ece
895
896##### 1402/08/08
897
898### امکانات جدید
899
900- جابه‌جایی سریع بین صفحات در لیست نامه‌ها
901
902از این پس، می‌توانید با وارد کردن شماره صفحۀ مورد نظر، در لیست نامه‌ها به سرعت جابه‌جا شوید.
903
904- ویرایش اندیکاتور
905
906از این پس، می‌توانید علاوه بر نام و توضیحات اندیکاتور، سایر اطلاعات اندیکاتور را هم ویرایش کنید. در
907نظر داشته باشید، شماره‌هایی که قبلا در اندیکاتور تولید شده‌اند، با ویرایش اندیکاتور تغییر نخواهند
908کرد.
909
910- امکان تغییر فایل متن نامه، بعد از شماره شدن
911
912از این پس، می‌توانید پس از شماره شدن نامه و در قسمت پیوست‌ها، فایل جدید به عنوان متن نامه آپلود
913کنید. در این صورت، فایل قبلی که به عنوان متن نامه انتخاب کرده بودید، به صورت خودکار حذف خواهد شد.
914این ویژگی در افزودن نسخه‌های دارای مهر و امضای گرم به نامه، مفید خواهد بود.
915
916- تعیین چیدمان تصویر امضا و نام امضاکننده در قالب چاپی
917
918از این پس، می‌توانید ترتیب محل قرار گرفتن تصویر امضا و نام امضا کننده را نسبت به یکدیگر مشخص کنید؛
919اینکه کدام یک رو باشد و این دو چه فاصله‌ای و در چه جهتی با هم داشته باشند. با این ویژگی، می‌توانید
920هر نوع چیدمانی را برای امضای نامه، در نسخۀ چاپی داشته باشید.
921
922- گزارش ارجاعات نامه‌ها در سازمان
923
924از این پس، مالک سازمان/ راهبر ارشد سازمان و راهبر مکاتبات، می‌توانند لیست تمام ارجاعات نامه در
925سازمان را ببینند. همچنین، این امکان وجود دارد تا این بتوان این لیست را بر اساس بازه زمانی و یا
926فرستنده و گیرنده ارجاع هم فیلتر کرد.
927
928- میز کار جدید سازمان
929
930در میز کار جدید، دسترسی به بخش‌های پر کاربرد سیستم، راحت‌تر شده است. همچنین اطلاعات و گزارش‌های
931جدیدی که به شما نمایش داده می‌شود، شما را در مدیریت هرچه بهتر امور، کمک می‌کند.
932
933- اضافه شدن امکانات جدید به راه‌کار جلسات
934
935نمایش جلسات به دو صورت تقویمی و لیستی و امکان سوئیچ بین آن‌ها، ایجاد/ویرایش/لغو جلسات تکرارپذیر،
936امکان مشاهده لیست تمامی جلسات سازمان توسط مالک سازمان/راهبر ارشد سازمان و راهبر جلسات، به راه‌کار
937جلسات اضافه شدند.
938
939### بهبودها
940
941- بیشتر کردن فاصله پیشفرض خطوط در چاپ نامه
942
943بر اساس بیشترین استفاده تا امروز، فاصلۀ پیشفرض بین خطوط در متن نامه را بیشتر کردیم. همچنان این امکان
944وجود دارد تا فاصلۀ بین خطوط را بر اساس مقدار دلخواه‌تان تنظیم کنید.
945
946- تنظیم فاصله بین خطوط متن نامه با عدد دلخواه
947
948از این پس، می‌توانید علاوه بر اعداد پیش‌فرض، عدد مورد نظر خود را هم برای فاصله بین خطوط در متن نامه،
949تا یک رقم اعشار وارد کنید.
950
951- تراز شدن خودکار فوتر صفحه آخر با متن نامه
952
953از این پس، فوتر صفحه آخر، فاصلۀ خودش تا خط آخر متن نامه را به صورت خودکار تنظیم می‌کند، تا فاصله‌ای
954بین این دو بخش در چاپ نباشد. فوتر صفحه آخر عموما برای قرار گرفتن امضای نامه و گیرندگان رونوشت
955استفاده می‌شود.
956
957- انتخابی شدن چاپ لقب در کنار نام امضاکننده
958
959در تنظیمات قالب چاپی، می‌توانید تعیین کنید که نام امضا کننده به همراه لقبش در چاپ نمایش داده شود یا
960خیر.
961
962- باز شدن ویرایش یادداشت نامه پس از شماره شدن
963
964به دلیل استفاده‌های متنوعی که می‌توان از فیلد یادداشت نامه کرد، امکان ویرایش آن را حتی پس از شماره
965شدن نامه فراهم کردیم.
966
967- اضافه شدن تگ «جهت پیگیری» به تگ‌های ارجاع
968
969تگ «جهت پیگیری» به مجموعۀ تگ‌های قابل استفاده در هنگام ارجاع نامه اضافه شد.
970
971### رفع مشکلات
972
973- اضافه شدن توضیحات لغو و اختتام به سوابق
974
975توضیحات لغو و اختتام نامه که قبلا فقط در وضعیت نامه نمایش داده می‌شد، از این به بعد در کارت‌های
976مربوطه در بخش سوابق نامه هم نمایش داده می‌شود.
977
978##### 1402/05/28
979
980### امکانات جدید
981
982- درج توضیح برای گیرنده رونوشت
983
984امکان نوشتن توضیح برای هر کدام از گیرنده‌های رونوشت نامه را اضافه کردیم؛ که در نسخۀ چاپی نامه هم
985نمایش داده می‌شود.
986
987- نمایش توضیحات لغو و اختتام در سوابق نامه
988
989توضیحات لغو و اختتام، علاوه بر پنجره وضعیت نامه، در کارت‌های مربوطه در سوابق نامه هم نمایش داده
990خواهد شد.‌
991
992##### 1402/05/15
993
994### امکانات جدید
995
996- ورود با شماره موبایل
997
998از این پس می‌توانید برای ورود به سیستم، به جای نام کاربری از شماره موبایل‌تان هم استفاده کنید.
999
1000- ثبت سفارش ارتقا
1001
1002از این پس می‌توانید تعداد کاربر و فضای در اختیار سفارشی که دوره زمانی آن به پایان نرسیده را ارتقا
1003بدهید.
1004
1005- افزودن مخاطب به صورت مستقیم در فرم نامه
1006
1007در هنگام ایجاد یا ویرایش نامه، امکان افزودن مخاطب برای شما فراهم شده است تا بتوانید بدون اینکه از
1008فرم نامه خارج شوید،‌ مخاطب جدیدی ثبت و به عنوان فرستنده یا گیرنده نامه انتخاب کنید.
1009
1010- اعلان نتیجۀ یک عملیات طولانی
1011
1012در شرایطی که زمان انجام یک عملیات از حد معمول آن بیشتر شود، نتیجۀ آن را از طریق یک اعلان دریافت
1013خواهید کرد؛ بنابراین می‌توانید به صورت موازی عملیات‌های دیگری را هم انجام بدهید.
1014
1015- مشاهده نامه ثبت شده در اندیکاتور
1016
1017می‌توانید در هر دفتر اندیکاتوری که به آن دسترسی دارید،‌ علاوه بر مشاهده لیست نامه‌های آن دفتر
1018اندیکاتور،‌ هر نامه‌ای را از لیست اندیس‌های آن دفتر انتخاب و آن را مشاهده کنید؛ بدون توجه به اینکه
1019آن نامه از کارتابل شما گذشته است یا خیر.
1020
1021- رفرش دستی لیست نامه‌های ای‌سی‌ای
1022
1023می‌توانید هر زمان که بخواهید لیست نامه‌های ای‌سی‌ای یک دبیرخانه را رفرش کنید؛ تا مجبور نباشید تا
1024رفرش بعدی سیستم منتظر بمانید.
1025
1026- انتقال مالکیت سازمان
1027
1028اگر خواستید مالکیت سازمان را بگیرید و به کاربر دیگری بدهید (یعنی مالک سازمان را عوض کنید)، ‌کافیست
1029درخواست خود را به پشتیبانی آوات اعلام کنید تا این کار برای شما انجام شود.
1030
1031### بهبودها
1032
1033- بهبود نمایش صفحه ورود در آیفون سری 13 و بالاتر
1034
1035نحوه نمایش آیتم‌های صفحه ورود در آیفون‌های سری 13 و بالاتر بهبود پیدا کرده است.
1036
1037- همگام‌سازی لحظه‌ای تغییر دبیرخانه و قالب‌های چاپی مربوطه در فرم نامه
1038
1039در هنگام ثبت نامه، اگر دبیرخانه را تغییر بدهید، لیست قالب‌های چاپی قابل استفاده در لحظه به روز
1040می‌شود.
1041
1042- اختیاری شدن توکن گیرنده در قالب چاپی
1043
1044می‌توانید توکن گیرنده را از قالب چاپی حذف کنید.
1045
1046### رفع مشکلات
1047
1048- امکان حذف لقب از مخاطب
1049
1050می‌توانید لقبی که برای مخاطب خود تعیین کرده بودید را حذف کنید.
1051
1052- اصلاح نمایش وضعیت لغو
1053
1054وضعیت لغو نامه،‌ که در سوابق نامه فقط برای لغوکننده نمایش داده می‌شد، برای همه کارمندانی که نامه از
1055کارتابل آن‌ها گذشته باشد نمایش داده می‌شود.
1056
1057- فراهم شدن امکان آزاد کردن جایگاه در صفحه اختصاص سمت
1058
1059مشکل آزاد کردن جایگاه در صفحه اختصاص سمت به کارمند برطرف شد.
1060
1061- بهبودها و رفع برخی مشکلات در نسخه موبایل
1062
1063بهبود نمایش تقویم و انتخاب تاریخ در فرم نامه
1064
1065رفع مشکل گزینه‌های لغو و اختتام نامه
1066
1067رفع مشکل نمایش وضعیت اندیکاتورها
1068
1069رفع مشکل نمایش تکراری کارمندان، راهبران و کاربران در لیست‌ها
1070
1071##### 1402/04/04
1072
1073### امکانات جدید
1074
1075- نسخه اول راهکار جلسات منتشر شد
1076
1077از این پس می توانید راهکار جلسات را برای سازمان خود فعال کنید و جلسات سازمانی خود را مدیریت کنید.
1078
1079- اضافه شدن نقش «راهبر دبیرخانه» به مکاتبات
1080
1081از این پس می‌توانید به کارمندان دلخواه خود، نقش «راهبر دبیرخانه» را اختصاص دهید و از این طریق،
1082دسترسی‌های مدیریتی تفکیک شده روی دبیرخانه‌های مختلف ایجاد کنید.
1083
1084- مرتب‌سازی فولدرهای Export نامه
1085
1086ساختار خروجی نامه‌ها را در فولدرهای جداگانه بازتعریف کردیم تا فایل خروجی (Export) سازماندهی بهتری
1087داشته باشد.
1088
1089- نمایش اعلان به انتها رسیدن شمارنده یک اندیکاتور
1090
1091زمانی که شمارنده اندیکاتور شما به پایان رسید، از طریق بخش اعلانات به شما اطلاع رسانی می‌شود.
1092
1093- نمایش اعلان 10 شماره باقی‌مانده به آخرین شمارنده یک اندیکاتور
1094
1095زمانی که شمارنده اندیکاتور شما تنها 10 شماره باقی مانده تا پایان داشته باشد، از طریق بخش اعلانات به
1096شما اطلاع رسانی می‌شود.
1097
1098### بهبودها
1099
1100- بهبود عملیات‌های مرتبط با ارجاع نامه
1101
1102عملیات ارجاع نامه را طوری بهبود دادیم تا در شرایطی که تعداد گیرندگان ارجاع زیاد بود، سرعت این عملیات
1103افت نکند.
1104
1105- بهبود سرعت در جستجوی نامه
1106
1107عملیات جستجوی نامه را با بهبودهای زیرساختی، چندین برابر سریعتر کردیم.
1108
1109- برداشتن حساسیت نام کاربری به حروف کوچک و بزرگ
1110
1111حساسیت فیلد «نام کاربری» به حروف کوچک و بزرگ را برداشتیم تا در هنگام ثبت نام، ورود و دعوت کارمندان
1112به سازمان، راحت‌تر کار کنید.
1113
1114### رفع مشکلات
1115
1116- رفع مشکل چاپ نامه با گیرنده‌های زیاد
1117
1118مشکل چیدمان در نسخه چاپ نامه‌هایی که تعداد گیرنده‌های زیادی داشتند را برطرف کردیم.
1119
1120- رفع مشکل ایجاد حساب کاربری با مرورگر فایرفاکس
1121
1122مشکلی که در مرورگر موزیلا فایرفاکس برای ثبت نام در سیستم وجود داشت را برطرف کردیم.
1123
1124##### 1402/02/16
1125
1126### امکانات جدید
1127
1128- راهنمای شروع به کار
1129
1130این راهنما، تمام اطلاعاتی که برای انجام تنظیمات پایه‌ای و استفاده درست از امکانات سیستم نیاز دارید
1131را به صورت قدم به قدم در اختیار شما می‌گذارد. با استفاده از «راهنمای شروع به کار» می‌توانید به سادگی
1132و در سریعترین زمان ممکن کار با «آوات» را شروع کنید.
1133
1134### بهبودها
1135
1136- بهبود محتوای «راهنمای کاربری»
1137
1138محتوای بخش «راهنمای کاربری» را کامل کردیم و قسمت‌هایی از آن را ویرایش کردیم تا همچنان به عنوان یک
1139مرجع کامل آموزشی در دسترس شما باشد.
1140
1141- بهبود عملیات‌های مرتبط با کارتابل نامه برای ارتقا سرعت سیستم
1142
1143کارتابل نامه، مهم‌ترین و پر ترافیک‌ترین عملیات‌های راه‌کار مکاتبات را در بر می‌گیرد. عملکرد این بخش
1144را بهبود دادیم تا در هنگام کار با مکاتبات، سرعت بیشتری را تجربه کنید.
1145
1146- نمایش مبلغ کل بدون تخفیف در صورت‌حساب خرید راهکار
1147
1148در نمایش صورت‌حساب، مبلغ کل بدون تخفیف را هم قرار دادیم تا دید دقیق‌تری نسبت به مبلغ صورت‌حساب و
1149تخفیف‌های دریافتی داشته باشید.
1150
1151### رفع مشکلات
1152
1153- اصلاحات در رابط کاربری نسخه‌های دسکتاپ و موبایل
1154
1155ایرادات و نواقص جزئی در رابط کاربری را برطرف کردیم تا رابط کاربری محصول، یک‌دست و استاندارد باقی
1156بماند.
1157
1158- رفع مشکل نمایش توکن‌های بدون محتوا در نسخه چاپی نامه
1159
1160تنظیمات سیستمی توکن‌هایی مانند «گیرندگان رونوشت» را اصلاح کردیم؛ تا در صورتی که به عنوان مثال
1161نامه‌ای گیرندۀ رونوشت نداشت، عنوان «رونوشت» هم در نسخه چاپی نمایش داده نشود.
1162
1163- رفع مشکل نمایش نسخه موبایل در آیفون سری 13 و 14
1164
1165مشکل نمایش نادرست برخی از صفحه‌های محصول در موبایل‌های آیفون سری 13 و 14 را برطرف کردیم.
1166
1167##### 1401/12/24
1168
1169### امکانات جدید
1170
1171- تایپ، جستجو و نمایش درست شماره نامه‌هایی که حروف فارسی دارند
1172
1173با استفاده از این امکان که در مجموعه آفیس شرکت مایکروسافت هم وجود ندارد، می‌توانید شماره نامه‌های
1174دارای حروف فارسی، اعداد و کاراکترهای جداکننده مانند / را از چپ به راست وارد کنید و به همان شکل هم
1175مشاهده کنید.
1176
1177- جستجوی نامه وارده بر اساس شماره نامه وارده
1178
1179با استفاده از این امکان می‌توانید نامه‌های وارده را بر اساس شماره‌ای که از طرف فرستنده روی آن‌ها درج
1180می‌شود، جستجو کنید.
1181
1182- مشاهده اطلاعات آخرین ارجاع در فرم نامه
1183
1184از این به بعد، علاوه بر دستور آخرین ارجاع، اطلاعات بیشتری شامل فرستنده، نوع، دستور، و تگ‌ ارجاع هم
1185در همان فرم نامه نمایش داده می‌شود. همچنان می‌توانید تمام اطلاعات ارجاعات هر نامه را در بخش سوابق
1186نامه ببینید.
1187
1188### بهبودها
1189
1190- بهبود بخش ارجاعات
1191
1192ارجاع چندباره نامه‌های شماره شده بهبود داده شد.
1193
1194- آپدیت تگ های پیش فرض ارجاع نامه
1195
1196تگ «جهت استحضار» به تگ‌های پیش فرض ارجاع اضافه شد. همچنین تگ «درخواست اقدام» به «جهت بررسی و اقدام»
1197تغییر کرد.
1198
1199- بهبود بخش قالب چاپی نامه
1200
1201تجربه کاربری در بخش تنظیمات نمایش نام‌ها (فرستنده، گیرنده و امضاکننده) بهبود داده شد.
1202
1203### رفع مشکلات
1204
1205- برطرف شدن یک‌سری مشکلات خروجی اکسل اندیکاتور
1206
1207مشکل عدم نمایش برخی اطلاعات نامه در خروجی اکسل اندیکاتور را برطرف کردیم.
1208
1209- رفع برخی مشکلات خروجی چاپی نامه
1210
1211مشکل نمایش خط تیره اضافی در حالت تک خطی، بین نام و سمت را برای «گیرنده» و «فرستنده» برطرف کردیم.
1212
1213- برطرف شدن برخی مشکلات گزارش شده در بخش جستجوی نامه
1214
1215مشکل مربوط به جستجوی نامه وارده براساس فرستنده نامه رفع شد.
1216
1217##### 1401/11/24
1218
1219### امکانات جدید
1220
1221- مشاهده تعرفه مکاتبات اداری
1222
1223از این پس امکان مشاهده تعرفۀ به روز مکاتبات اداری آوات را خواهید داشت؛ جزییات کامل هزینه قابل
1224پرداخت، بر اساس «تعداد کاربر» و «فضای در اختیار» مورد نظرتان، در دوره‌های زمانی 30 روزه و 365 روزه
1225به شما نمایش داده می‌شود.
1226
1227- ثبت سفارش سرویس مکاتبات اداری
1228
1229می‌توانید با وارد کردن مقادیر دلخواه خود برای تعداد کاربر و فضای در اختیار و انتخاب دوره زمانی،‌
1230سفارش مکاتبات اداری خود را ثبت کنید. پس از تماس کارشناس آوات با شما و نهایی شدن سفارش‌تان، راهکار
1231خریداری شده برای شما فعال خواهد شد.
1232
1233- مقادیر پیشنهادی «کاربر» و «فضای در اختیار»
1234
1235در هنگام ثبت سفارش جدید، تعداد کاربر و فضای در اختیاری که قبلا خریده بودید، به صورت پیش‌فرض به شما
1236پیشنهاد داده می‌شود. اگر قبلا خریدی انجام نداده باشید، اعداد پیش‌فرض «کاربر» و «فضای در اختیار» 3 و
12373 خواهند بود.
1238
1239- تعریف اکانت ایمیل برای ارسال و دریافت خودکار نامه‌های ECE
1240
1241از این پس می‌توانید علاوه بر ارسال و دریافت نامه‌های ECE به صورت دستی، از امکان ارسال و دریافت
1242خودکار این نامه‌ها هم استفاده کنید. برای این منظور، امکان تعریف مشخصات اکانت ایمیل هم برای هر
1243دبیرخانه اضافه شده است. همچنین می‌توانید وضعیت اتصال به سرورهای ارسال و دریافت ایمیل را ببینید تا از
1244درستی تنظیمات وارد شده مطمئن باشید.
1245
1246- مشاهده ایمیل‌های وارد شده به ایمیل ECE دبیرخانه
1247
1248می‌توانید لیست ایمیل‌های وارد شده به ایمیل ECE دبیرخانه را ببینید؛ با انتخاب هر کدام، محتوای آن هم
1249به شما نمایش داده خواهد شد.
1250
1251- تبدیل نامه ECE دریافت شده به نامه وارده
1252
1253در صورتی که یک ایمیل وارد شده به میل باکس ECE دبیرخانه حاوی نامه ECE باشد، می‌توانید با یک کلیک آن
1254را به یک نامه وارده تبدیل کنید.
1255
1256- تغییر وضعیت اندیکاتور
1257
1258امکان تغییر وضعیت یک اندیکاتور اضافه شد تا بتوانید اندیکاتورهایی که نمی‌خواهید قابل استفاده باشند را
1259غیرفعال کنید. اندیکاتورهای غیرفعال، برای شماره کردن نامه‌ها قابل انتخاب نخواهند بود. همچنین،
1260اندیکاتورها را می‌توانید بدون محدودیت فعال و غیرفعال کنید.
1261
1262### رفع مشکلات
1263
1264- برطرف شدن برخی مشکلات گزارش شده در بخش راهکارها
1265
1266مشکلات مربوط به تنظیمات راهکار و فعالسازی دوره یک ماهه رایگان را برطرف کردیم.
1267
1268- بهبود برخی موارد در بخش مکاتبات
1269
1270شماره‌دهی اندیکاتور برای سازگاری Ù
1270‡Ø±Ú†Ù‡ بیشتر با ساختار راست به چپ در زبان فارسی، بهبود داده شد تا هر
1271گونه ترکیبی از حروف فارسی و سایر کاراکترها در کنار هم را پشتیبانی کند.
1272
1273سرعت جابه‌جایی بین صفحه‌ها در بخش نتایج جستجوی نامه، بهبود داده شد تا در رفت و برگشت سریع بین
1274صفحه‌ها، خطایی رخ ندهد.
1275
1276##### 1401/10/07
1277
1278### امکانات جدید
1279
1280- امکان انتخاب قالب دلخواه قبل از چاپ نامه
1281
1282از این پس، نامه فقط با قالب پیش‌فرض دبیرخانه چاپ نمی‌شود و می‌توانید قبل از دریافت نسخه چاپی، قالب
1283دلخواه خود را انتخاب کنید.
1284
1285- اضافه شدن فیلد ثابت متنی در اندیکاتور
1286
1287از این پس، می‌توانید فیلد «متن ثابت» را هم در ساختار شماره نامه در اندیکاتور تعریف کنید تا
1288کاراکترهای ثابت مورد نظرتان در شماره نامه قرار بگیرند.
1289
1290- اضافه شدن قابلیت های جدید در قالب چاپی
1291
1292از این پس می‌توانید:
1293
1294بیشینه اندازه عکس‌های لوگوی سازمان و امضا را در نسخه چاپی نامه تعیین کنید.
1295
1296نام و محتوای یک فیلد را برجسته (Bold) کنید.
1297
1298چیدمان لقب، نام، سمت و نام سازمان شخص «امضاکننده» را در نسخه چاپی مشخص کنید.
1299
1300اندازه فونت متن نامه را تعیین کنید.
1301
1302همچنین فونت‌های جدیدی به مجموعه فونت‌های قابل انتخاب برای چاپ نامه اضافه شده است.
1303
1304- تنظیم فاصله بین خطوط در ویرایشگر
1305
1306می توانید فاصله بین خطوط را در ویرایشگر متن نامه تنظیم کنید.
1307
1308- حذف قالب چاپی از دبیرخانه
1309
1310اگر نیازی به یک قالب چاپی نداشتید می‌توانید آن را از لیست قالب‌های چاپی دبیرخانه حذف کنید.
1311
1312- ویرایش دبیرخانه و اندیکاتور قبل از شماره شدن نامه
1313
1314از این پس، امکان تغییر دبیرخانه و اندیکاتور برای نامه‌های امضا شده هم فراهم شده است.
1315
1316- ارسال خودکار نامه‌های ECE از طریق ایمیل
1317
1318از این پس، می‌توانید بدون نیاز به دانلود فایل XML نامه‌های ECE، آن‌ها را به صورت مستقیم و با استفاده
1319از ایمیل دبیرخانه به آدرس ایمیل مورد نظرتان بفرستید.
1320
1321- تبدیل نامه به ECE با قالب چاپی دلخواه
1322
1323امکان انتخاب قالب چاپی دلخواه را هنگام تبدیل نامه به ECE اضافه کردیم.
1324
1325- مشاهده و ویرایش اطلاعات حقوقی سازمان
1326
1327می‌توانید اطلاعات حقوقی سازمان را هم به اطلاعات پروفایل سازمان اضافه کنید تا در مراودات مالی و حقوقی
1328با «آوات» مورد استفاده قرار بگیرند.
1329
1330### بهبودها
1331
1332- بهبود طراحی رابط کاربری
1333
1334برای تجربه کاربری بهتر، طراحی صفحات محصول را بهبود دادیم.
1335
1336- بهبود سرعت بارگذاری لیست نامه‌ها
1337
1338سرعت نمایش لیست نامه‌ها را در کارتابل بهبود دادیم.
1339
1340- افزایش حجم پیوست نامه به 15 مگابایت
1341
1342بیشینه حجم هر فایل پیوست را به 15 مگابایت افزایش دادیم.
1343
1344##### 1401/08/23
1345
1346### امکانات جدید
1347
1348- اضافه شدن امکان اختصاص نقش به کارمندان
1349
1350از این پس می‌توانید به کارمندان دلخواه خود، نقش‌های «راهبر ارشد» و «راهبر مکاتبات» را اختصاص دهید.
1351«راهبر ارشد» می تواند عملیات‌های مربوط به سازمان که از این قبل انحصارا در دست مالک سازمان بود را
1352انجام دهد. «راهبر مکاتبات» نیز می تواند عملیات‌های مربوط به راهکار مکاتبات را انجام دهد. لیست
1353دسترسی‌های این دو نقش را می توانید در صفحه اختصاص هر نقش مشاهده کنید.
1354
1355- امکان فعال کردن دوره یک ماهه رایگان راهکار مکاتبات
1356
1357می توانید با فعال کردن این دوره، از امکانات راهکار مکاتبات به مدت ی
1357ک ماه به صورت رایگان استفاده کنید
1358تا بتوانید با اطمینان بیشتری خرید خود را انجام دهید.
1359
1360### بهبودها
1361
1362- بهبود طراحی رابط کاربری
1363
1364برای تجربه بهتر، طراحی صفحات محصول را بهبود دادیم.
1365
1366### رفع مشکلات
1367
1368- رفع برخی مشکلات بخش مکاتبات
1369
1370مشکلات گزارش شده توسط کاربران در بخش چاپ و جستجوی نامه را حل کردیم.
1371
1372- برطرف شدن یک‌سری مشکلات در بخش ساختار سازمانی
1373
1374مشکلات مربوط به ویرایش سمت ها و جایگاه ها را برطرف کردیم.
1375
1376##### 1401/06/13
1377
1378### امکانات جدید
1379
1380- اضافه شدن قابلیت‌های جدید در بخش قالب چاپی
1381
1382صفحه قالب چاپی را بازطراحی کردیم و بخش «پیش نمایش» را اضافه کردیم تا هنگام ویرایش قالب چاپی بتوانید
1383نمونه خروجی نامه در چاپ را ببینید.
1384
1385در قالب چاپی فیلد ثابت متنی را اضافه کردیم تا بتوانید متن دلخواه‌تان را در هدر و یا فوتر موردنظر
1386قرار بدهید.
1387
1388امکان تغییر فونت و اندازه فونت را در قالب چاپی اضافه کردیم.
1389
1390در بخش قالب چاپی این امکان برای شما فراهم شده است تا علاوه بر نام و نام خانوادگیِ گیرنده، فرستنده و
1391امضا کننده، بتوانید مشخصاتی مثل لقب، عنوان شغلی/ سمت و نام تجاری/ سازمان را در نسخه‌ی چاپی نامه
1392داشته باشید.
1393
1394برای چاپ نام و سایر اطلاعات گیرنده، فرستنده و امضاکننده می‌توانید از امکان چاپ دو خطی استفاده کنید.
1395با این ویژگی می‌توانید ترتیب قرار گرفتن این اطلاعات در کنار یکدیگر را هم مشخص کنید.
1396
1397امکان بزرگنمایی (zoom) را به قالب چاپی اضافه کردیم تا بتوانید تمام جزئیات را با دقت مدیریت کنید.
1398
1399- بهبود امکانات استایلی ویرایشگر متن نامه
1400
1401امکانات جدیدی به ویرایشگر متن نامه اضافه کردیم تا بتوانید متن نامه‌ها را بهتر قالب بندی کنید.
1402
1403- دسترسی به تاریخچه تغییرات آوات
1404
1405امکان مشاهده تاریخچه تغییرات آوات را اضافه کردیم تا از امکانات جدید، بهبودها و مشکلات رفع شده مطلع
1406شوید.
1407
1408- نمایش اطلاعات آخرین ورود
1409
1410برای بهبود امنیت حساب کاربری، امکان مشاهده تاریخ و ساعت آخرین ورود را اضافه کردیم.
1411
1412- پیگیری خطا از طریق ارسال جزئیات آن به پشتیبانی آوات
1413
1414از این پس، اگر در طول کار با محصول به خطا برخوردید، می‌توانید جزئیات خطا را کپی کنید و به پشتیبانی
1415آوات اطلاع بدهید.
1416
1417### بهبودها
1418
1419- سرعت بیشتر هنگام بارگذاری آوات
1420
1421فرایند بارگذاری صفحات وب را پویا کردیم تا بتوانید هنگام کار با آوات سرعت بیشتری را تجربه کنید.
1422
1423- بهبود بخش سمت های سازمانی
1424
1425برای بهتر شدن تجربه کاربری، بهبودهای زیادی در بخش سمت های سازمانی انجام دادیم.
1426
1427### رفع مشکلات
1428
1429- رفع برخی مشکلات بخش مکاتبات و نامه
1430
1431رابط کاربری بخش مکاتبات و فرم نامه را بهبود دادیم و مشکلات گزارش شده توسط کاربران در این بخش را حل
1432کردیم.
1433
1434یک‌سری مشکلات در قسمت شماره و چاپ نامه را برطرف کردیم.
1435
1436- برطرف شدن یک‌سری مشکلات در بخش اعلانات
1437
1438یک‌سری بهبود در بخش اعلانات انجام دادیم و مشکلات گزارش شده مربوط به اعلانات را برطرف کردیم.
1439`,iu=J.createContext(null);function au(){return J.useContext(iu)}var ou=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`,X=r(s());function su(e,t){return typeof t==`function`?t(e):{...e,...t}}function cu(e){let{children:t,theme:n}=e,r=au(),i=J.useMemo(()=>{let e=r===null?{...n}:su(r,n);return e!=null&&(e[ou]=r!==null),e},[n,r]);return(0,X.jsx)(iu.Provider,{value:i,children:t})}function lu(e){let t=F(),n=tr()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,rt(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,X.jsx)(it,{styles:i}):null}var uu={};function du(e,t,n,r=!1){return J.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function fu(e){let{children:t,theme:n,themeId:r}=e,i=F(uu),a=au()||uu,o=du(r,i,n),s=du(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=lu(o);return(0,X.jsx)(cu,{theme:s,children:(0,X.jsx)(u.Provider,{value:o,children:(0,X.jsx)(Kn,{value:c,children:(0,X.jsxs)(wt,{value:r?o[r].components:o.components,children:[l,t]})})})})}var pu=`mode`,mu=`color-scheme`,hu=`data-color-scheme`;function gu(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDar
vendor: 5,955 bytes, lines 1439-1466
1439kColorScheme:r=`dark`,modeStorageKey:i=pu,colorSchemeStorageKey:a=mu,attribute:o=hu,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
1440      ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
1441      ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
1442      ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else l+=`${s}.setAttribute('${u}', colorScheme);`;return(0,X.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
1443try {
1444  let colorScheme = '';
1445  const mode = localStorage.getItem('${i}') || '${t}';
1446  const dark = localStorage.getItem('${a}-dark') || '${r}';
1447  const light = localStorage.getItem('${a}-light') || '${n}';
1448  if (mode === 'system') {
1449    // handle system mode
1450    const mql = window.matchMedia('(prefers-color-scheme: dark)');
1451    if (mql.matches) {
1452      colorScheme = dark
1453    } else {
1454      colorScheme = light
1455    }
1456  }
1457  if (mode === 'light') {
1458    colorScheme = light;
1459  }
1460  if (mode === 'dark') {
1461    colorScheme = dark;
1462  }
1463  if (colorScheme) {
1464    ${l}
1465  }
1466} catch(e){}})();`}},`mui-color-scheme-init`)}function _u(){}var vu=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return _u;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function yu(){}function bu(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function xu(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Su(e){return xu(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Cu(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=pu,colorSchemeStorageKey:o=mu,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=vu,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=J.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=J.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=J.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=J.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:bu(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=J.useState(l||!d);J.useEffect(()=>{v(!0)},[]);let y=Su(h),b=J.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:bu(r)}})},[f,t]),x=J.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return xu(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=J.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=J.useRef(S);return C.current=S,J.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),J.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||yu,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||yu,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||yu;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var wu=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Tu(e){let{themeId:t,theme:n={},modeStorageKey:r=pu,colorSchemeStorageKey:i=mu,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=J.createContext(void 0),u=()=>J.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,noSsr:C}=e,w=J.useRef(!1),T=au(),E=J.useContext(l),D=!!E&&!b,O=J.useMemo(()=>u||(typeof n==`function`?n():n),[u]),k=O[t],A=k||O,{colorSchemes:j=d,components:M=f,cssVarPrefix:N}=A,P=Object.keys(j).filter(e=>!!j[e]).join(`,`),F=J.useMemo(()=>P.split(`,`),[P]),I=typeof o==`string`?o:o.light,ee=typeof o==`string`?o:o.dark,{mode:L,setMode:R,systemMode:z,lightColorScheme:te,darkColorScheme:ne,colorScheme:re,setColorScheme:ie}=Cu({supportedColorSchemes:F,defaultLightColorScheme:I,defaultDar
1466kColorScheme:ee,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:j[I]&&j[ee]?S:j[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:C}),ae=L,oe=re;D&&(ae=E.mode,oe=E.colorScheme);let se=J.useMemo(()=>{let e=oe||A.defaultColorScheme,t=A.generateThemeVars?.()||A.vars,n={...A,components:M,colorSchemes:j,cssVarPrefix:N,vars:t};if(typeof n.generateSpacing==`function`&&(n.spacing=n.generateSpacing()),e){let t=j[e];t&&typeof t==`object`&&Object.keys(t).forEach(e=>{t[e]&&typeof t[e]==`object`?n[e]={...n[e],...t[e]}:n[e]=t[e]})}return s?s(n):n},[A,oe,M,j,N]),ce=A.colorSchemeSelector;rt(()=>{if(oe&&y&&ce&&ce!==`media`){let e=ce,t=ce;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...F.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,oe));else{let e=t.replace(`%s`,oe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||F.forEach(e=>{y.removeAttribute(t.replace(oe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,oe)}}},[oe,ce,y,F]),J.useEffect(()=>{let e;if(h&&w.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(wu)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[oe,h,v]),J.useEffect(()=>(w.current=!0,()=>{w.current=!1}),[]);let le=J.useMemo(()=>({allColorSchemes:F,colorScheme:oe,darkColorScheme:ne,lightColorScheme:te,mode:ae,setColorScheme:ie,setMode:R,systemMode:z}),[F,oe,ne,te,ae,ie,R,z,se.colorSchemeSelector]),B=!0;(x||A.cssVariables===!1||D&&T?.cssVarPrefix===N)&&(B=!1);let ue=(0,X.jsxs)(J.Fragment,{children:[(0,X.jsx)(fu,{themeId:k?t:void 0,theme:se,children:c}),B&&(0,X.jsx)(at,{styles:se.generateStyleSheets?.()||[]})]});return D?ue:(0,X.jsx)(l.Provider,{value:le,children:ue})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>gu({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}var Eu=y(),Du=kt(`div`,{name:`MuiStack`,slot:`Root`,overridesResolver:(e,t)=>t.root});function Ou(e){return Ot({props:e,name:`MuiStack`,defaultTheme:Eu})}function ku(e,t){let n=J.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(J.cloneElement(t,{key:`separator-${i}`})),e),[])}var Au=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],ju=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...T({theme:t},b({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=ne(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=b({values:e.direction,base:i}),o=b({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{a[e]||(a[e]=t>0?a[n[t-1]]:`column`)}),n=O(n,T({theme:t},o,(t,n)=>e.useFlexGap?{gap:g(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Au(n?a[n]:e.direction)}`]:g(r,t)}}))}return n=E(t.breakpoints,n),n};function Mu(e={}){let{createStyledComponent:t=Du,useThemeProps:n=Ou,componentName:r=`MuiStack`}=e,i=()=>Et({root:[`root`]},e=>ot(r,e),{}),a=t(ju);return J.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=mt(n(e));return(0,X.jsx)(a,{as:r,ownerState:{direction:o,spacing:s,useFlexGap:d},ref:t,className:ht(i().root,u),...f,children:c?ku(l,c):l})})}function Nu({theme:e,...t}){let n=`$$material`in e?e[R]:void 0;return(0,X.jsx)(fu,{...t,themeId:n?R:void 0,theme:n||e})}var Pu={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Fu,useColorScheme:Iu,getInitColorSchemeScript:Lu}=Tu({themeId:R,theme:()=>
1466oe({cssVariables:!0}),colorSchemeStorageKey:Pu.colorSchemeStorageKey,modeStorageKey:Pu.modeStorageKey,defaultColorScheme:{light:Pu.defaultLightColorScheme,dark:Pu.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:re(e.palette,e.typography)};return t.unstable_sx=function(e){return v({sx:e,theme:this})},t}}),Ru=Fu;function zu({theme:e,...t}){return typeof e==`function`||!(`colorSchemes`in(`$$material`in e?e.$$material:e))?(0,X.jsx)(Nu,{theme:e,...t}):(0,X.jsx)(Ru,{theme:e,...t})}var Bu=K((0,X.jsx)(`path`,{d:`m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`}),`ArrowForward`);function Vu(e){return ot(`MuiAppBar`,e)}tt(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var Hu=e=>{let{color:t,position:n,classes:r}=e;return Et({root:[`root`,`color${_t(t)}`,`position${_t(n)}`]},Vu,r)},Uu=(e,t)=>e?`${e?.replace(`)`,``)}, ${t})`:t,Wu=ft(Rn,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${_t(n.position)}`],t[`color${_t(n.color)}`]]}})(ut(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(ct([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?Uu(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?Uu(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),Gu=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,c={...n,color:i,position:o,enableColorOnDark:a};return(0,X.jsx)(Wu,{square:!0,component:`header`,ownerState:c,elevation:4,className:ht(Hu(c).root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})});function Ku(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function qu(e,t){e.classList?e.classList.add(t):Ku(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Ju(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Yu(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Ju(e.className,t):e.setAttribute(`class`,Ju(e.className&&e.className.baseVal||``,t))}var Xu=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return qu(e,t)})},Zu=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Yu(e,t)})},Qu=function(e){vt(t,e);function t(){var t,n=[...arguments];
vendor: 1,239 bytes, line 1466
1466return t=e.call.apply(e,[this].concat(n))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];
1466return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Zn(e),r&&(this.appliedClasses[t][n]=r,Xu(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Zu(e,r),i&&Zu(e,i),a&&Zu(e,a)},n.render=function(){var e=this.props;e.classNames;var t=xt(e,[`classNames`]);return J.createElement(Yn,o({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(J.Component);Qu.defaultProps={classNames:``},Qu.propTypes={};function $u(e){return ot(`MuiToolbar`,e)}tt(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var ed=e=>{let{classes:t,disableGutters:n,variant:r}=e;return Et({root:[`root`,!n&&`gutters`,r]},$u,t)},td=ft(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(ut(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),nd=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,c={...n,component:i,disableGutters:a,variant:o};return(0,X.jsx)(td,{as:i,className:ht(ed(c).root,r),ref:t,ownerState:c,...s})}),rd=`/Logo.svg`,id=`/Logo-icon.svg`,Z=r(C()),ad=B()(e=>({appBarMobile:{padding:`0 16px`,height:64,display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`,backgroundColor:`#fff`},titleHeader:{color:e.palette.text.secondary,fontWeight:500},backButton:{position:`absolute`,right:e.spacing(1),color:e.palette.text.gray,alignItems:`center`},appBarDesktop:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create([`width`,`margin`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),backgroundColor:`#fff`,boxShadow:`0 4px 16px 0 rgba(0, 0, 0, 0.06)`},toolBar:{display:`flex`,justifyContent:`center`,width:`100%`},logo:{width:90},chargoonLogo:{position:`absolute`,right:e.spacing(5),display:`flex`,justifyContent:`start`,alignItems:`center`},title:{fontWeight:`bold`,color:e.palette.text.gray,margin:e.spacing(1,1.5,0,0)},headerText:{width:`100%`,"& p":{fontSize:17.5,textAlign:`center`,color:`#000`}}})),od=({title:e,isMobile:t=!1,goBack:n=!1,showGoBack:r=()=>{}})=>{let{classes:i,cx:a}=ad();return l(f,{children:t?d(Gu,{position:`fixed`,className:i.appBarMobile,children:[r&&l(Gn,{className:i.backButton,onClick:n,children:l(Bu,{})}),l(St,{classes:{root:i.titleHeader},children:e})]}):l(Gu,{position:`fixed`,className:a(i.appBarDesktop),children:d(nd,{className:i.toolBar,children:[l(`div`,{className:i.chargoonLogo,children:l(`img`,{src:rd,alt:`Logo`,className:i.logo})}),l(`div`,{className:i.headerText,children:l(St,{variant:`subtitle2`,children:e})})]})})})};od.propTypes={title:Z.default.string.isRequired,isMobile:Z.default.bool,showGoBack:Z.default.bool,goBack:Z.default.func};var sd=`data:image/svg+xml,%3Csvg%20width%3D%2256%22%20height%3D%2256%22%20viewBox%3D%220%200%2056%2056%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Crect%20width%3D%2256%22%20height%3D%2256%22%20rx%3D%2228%22%20fill%3D%22%2300ABAB%22%2F%3E%3Cpath%20d%3D%22M36.4504%2034.8058C40.2091%2034.8058%2043.2562%2031.7588%2043.2562%2028C43.2562%2024.2412%2040.2091%2021.1942%2036.4504%2021.1942C32.6916%2021.1942%2029.6445%2024.2412%2029.6445%2028C29.6445%2031.7588%2032.6916%2034.8058%2036.4504%2034.8058Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M17.9205%2024.5878C19.8053%2024.5878%2021.3328%2026.1157%2021.3328%2028C21.3328%2029.8843%2019.8049%2031.4122%2017.9205%2031.4122C16.0358%2031.4122%2014.5083%2029.8843%2014.5083%2028C14.5083%2026.1153%2016.0362%2024.5878%2017.9205%2024.5878ZM17.9205%2022.8255C15.0673%2022.8255%2012.74
146661%2025.1468%2012.7461%2028C12.7461%2030.8532%2015.0673%2033.1744%2017.9205%2033.1744C20.7738%2033.1744%2023.095%2030.8532%2023.095%2028C23.095%2025.1468%2020.7738%2022.8255%2017.9205%2022.8255Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E`,cd=B()(e=>({rootPage:{[e.breakpoints.down(`md`)]:{marginTop:e.spacing(4),padding:e.spacing(7,4)},marginTop:e.spacing(8),padding:e.spacing(7,15,7,20),height:`100%`,lineBreak:`anywhere`,overflowY:`scroll`},logs:{"& #logs":{position:`relative`,padding:e.spacing(0,4,6,0),borderRight:`1px dashed ${e.palette.text.lightGray}`,lineBreak:`initial`,"&:first-child":{"&:before":{background:`transparent`,transform:`rotate(0)`,backgroundImage:`url('${sd}')`,backgroundSize:`cover`,backgroundRepeat:`no-repeat`,width:40,height:40,borderRadius:`50%`,content:`''`,position:`absolute`,top:-5,right:-20.5}},"&:before":{content:`''`,width:10,height:10,background:e.palette.primary.main,position:`absolute`,top:5,right:-5,transform:`rotate(45deg)`}},"& #logs:first-child":{"& h5":{border:`1.5px solid ${e.palette.background.lightPurple}`,color:e.palette.background.lightPurple}},"& h5":{fontSize:`16px`,fontWeight:`bold`,border:`1px solid ${e.palette.text.lightGray}`,borderRadius:e.spacing(1),padding:e.spacing(0,1),marginBottom:e.spacing(2),display:`block`,width:`fit-content`,marginTop:e.spacing(5)},"& h3":{fontSize:`18px`,fontWeight:`bold`,width:`fit-content`,margin:e.spacing(2,0,0)},"& li":{[e.breakpoints.down(`md`)]:{fontSize:`14px`},color:`black`,fontSize:`16px`,fontWeight:`bold`,listStyle:`disc`,display:`list-item`,margin:e.spacing(2,2,.7,0)},"& p":{[e.breakpoints.down(`md`)]:{fontSize:`14px`},fontSize:`16px`,lineHeight:`1.7`,fontWeight:`normal`}}})),ld=()=>{let{mobile:e,markdown:t,goBack:n}=wc(),{classes:r}=cd();return d(f,{children:[l(od,{title:W(`terms.labels.historyChange`),isMobile:e,goBack:n}),l(G,{className:r.rootPage,children:l(G,{className:r.logs,dangerouslySetInnerHTML:{__html:t}})})]})},ud=()=>{let e=D(),t=Dt(e=>e.breakpoints.down(`sm`)),[n,r]=(0,J.useState)(null);return(0,J.useEffect)(()=>{let e=ru;r(nu.parse(e).split(/<hr>/g).reduce((e,t)=>{if(t.trim()){let n=document.createElement(`div`);return n.setAttribute(`id`,`logs`),n.innerHTML=t,`${e}${n.outerHTML}`}return e},``))},[]),d(Cc.Provider,{value:{mobile:t,markdown:n,goBack:()=>{e(-1)}},children:[l(ld,{}),`;`]})},dd=(0,J.createContext)(),fd=()=>(0,J.useContext)(dd),pd=B()(e=>({description:{fontSize:e.spacing(2),color:`#111111`,lineHeight:2,margin:e.spacing(3,0),textAlign:`justify`,lineBreak:`auto`}})),Q=({children:e})=>{let{classes:t}=pd();return l(St,{variant:`subtitle1`,className:t.description,children:e})};Q.propTypes={children:Z.default.node.isRequired};var md=J.createContext({});function hd(e){return ot(`MuiAccordion`,e)}var gd=tt(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),_d=e=>{let{classes:t,square:n,expanded:r,disabled:i,disableGutters:a}=e;return Et({root:[`root`,!n&&`rounded`,r&&`expanded`,i&&`disabled`,!a&&`gutters`],heading:[`heading`],region:[`region`]},hd,t)},vd=ft(Rn,{name:`MuiAccordion`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${gd.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(ut(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:`relative`,transition:e.transitions.create([`margin`],t),overflowAnchor:`none`,"&::before":{position:`absolute`,left:0,top:-1,right:0,height:1,content:`""`,opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create([`opacity`,`background-color`],t)},"&:first-of-type":{"&::before":{display:`none`}},[`&.${gd.expanded}`]:{"&::before":{opacity:0}
vendor: 11,060 bytes, line 1466
1466,"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:`none`}}},[`&.${gd.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),ut(({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${gd.expanded}`]:{margin:`16px 0`}}}]}))),yd=ft(`h3`,{name:`MuiAccordion`,slot:`Heading`,overridesResolver:(e,t)=>t.heading})({all:`unset`}),bd=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiAccordion`}),{children:r,className:i,defaultExpanded:a=!1,disabled:o=!1,disableGutters:s=!1,expanded:c,onChange:l,square:u=!1,slots:d={},slotProps:f={},TransitionComponent:p,TransitionProps:m,...h}=n,[g,_]=ir({controlled:c,default:a,name:`Accordion`,state:`expanded`}),v=J.useCallback(e=>{_(!g),l&&l(e,!g)},[g,l,_]),[y,...b]=J.Children.toArray(r),x=J.useMemo(()=>({expanded:g,disabled:o,disableGutters:s,toggle:v}),[g,o,s,v]),S={...n,square:u,disabled:o,disableGutters:s,expanded:g},C=_d(S),w={slots:{transition:p,...d},slotProps:{transition:m,...f}},[T,E]=lr(`heading`,{elementType:yd,externalForwardedProps:w,className:C.heading,ownerState:S}),[D,O]=lr(`transition`,{elementType:gr,externalForwardedProps:w,ownerState:S});return(0,X.jsxs)(vd,{className:ht(C.root,i),ref:t,ownerState:S,square:u,...h,children:[(0,X.jsx)(T,{...E,children:(0,X.jsx)(md.Provider,{value:x,children:y})}),(0,X.jsx)(D,{in:g,timeout:`auto`,...O,children:(0,X.jsx)(`div`,{"aria-labelledby":y.props.id,id:y.props[`aria-controls`],role:`region`,className:C.region,children:b})})]})});function xd(e){return ot(`MuiAccordionDetails`,e)}tt(`MuiAccordionDetails`,[`root`]);var Sd=e=>{let{classes:t}=e;return Et({root:[`root`]},xd,t)},Cd=ft(`div`,{name:`MuiAccordionDetails`,slot:`Root`,overridesResolver:(e,t)=>t.root})(ut(({theme:e})=>({padding:e.spacing(1,2,2)}))),wd=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiAccordionDetails`}),{className:r,...i}=n,a=n;return(0,X.jsx)(Cd,{className:ht(Sd(a).root,r),ref:t,ownerState:a,...i})});function Td(e){return ot(`MuiAccordionSummary`,e)}var Ed=tt(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`contentGutters`,`content`,`expandIconWrapper`]),Dd=e=>{let{classes:t,expanded:n,disabled:r,disableGutters:i}=e;return Et({root:[`root`,n&&`expanded`,r&&`disabled`,!i&&`gutters`],focusVisible:[`focusVisible`],content:[`content`,n&&`expanded`,!i&&`contentGutters`],expandIconWrapper:[`expandIconWrapper`,n&&`expanded`]},Td,t)},Od=ft(bt,{name:`MuiAccordionSummary`,slot:`Root`,overridesResolver:(e,t)=>t.root})(ut(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{display:`flex`,width:`100%`,minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create([`min-height`,`background-color`],t),[`&.${Ed.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ed.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Ed.disabled})`]:{cursor:`pointer`},variants:[{props:e=>!e.disableGutters,style:{[`&.${Ed.expanded}`]:{minHeight:64}}}]}})),kd=ft(`span`,{name:`MuiAccordionSummary`,slot:`Content`,overridesResolver:(e,t)=>t.content})(ut(({theme:e})=>({display:`flex`,textAlign:`start`,flexGrow:1,margin:`12px 0`,variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create([`margin`],{duration:e.transitions.duration.shortest}),[`&.${Ed.expanded}`]:{margin:`20px 0`}}}]}))),Ad=ft(`span`,{name:`MuiAccordionSummary`,slot:`ExpandIconWrapper`,overridesResolver:(e,t)=>t.expandIconWrapper})(ut(({theme:e})=>({display:`flex`,color:(e.vars||e).palette.action.active,transform:`rotate(0deg)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shortest}),[`&.${Ed.expanded}`]:{transform:`rotate(180deg)`}}))),jd=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiAccordionSummary`}),{children:r,className:i,expandIcon:a,focusVisibleClassName:o,onClick:s,...c}=n,{disabled:l=!1,disableGutters:u,expanded:d,toggle:f}=J.useContext(md),p=e=>{f&&f(e),s&&s(e)},m={...n,expanded:d,disabled:l,disableGutters:u},h=Dd(m);return(0,X.jsxs)(Od,{focusRipple:!1,disableRipple:!0,disabled:l,"aria-expanded":d,className:ht(h.root,i),focusVisibleClassName:ht(h.focusVisible,o),onClick:p,ref:t,ownerState:m,...c,children:[(0,X.jsx)(kd,{className:h.content,ownerState:m,children:r}),a&&(0,X.jsx)(Ad,{className:h.expandIconWrapper,ownerState:m,children:a})]})});function Md(e){return ot(`MuiAlert`,e)}var Nd=tt(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`filledSuccess`,`filledInfo`,`filledWarning`,`filledError`,`outlined`,`outlinedSuccess`,`outlinedInfo`,`outlinedWarning`,`outlinedError`,`standard`,`standardSuccess`,`standardInfo`,`standardWarning`,`standardError`]),Pd=K((0,X.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),Fd=K((0,X.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),Id=K((0,X.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),Ld=K((0,X.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),Rd=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return Et({root:[`root`,`color${_t(n||r)}`,`${t}${_t(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},Md,i)},zd=ft(Rn,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${_t(n.color||n.severity)}`]]}})(ut(({theme:e})=>{let t=e.palette.mode===`light`?L:ie,n=e.palette.mode===`light`?ie:L;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(ct([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Nd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(ct([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${Nd.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(ct([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Bd=ft(`div`,{name:`MuiAlert`,slot:`Icon`,overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Vd=ft(`div`,{name:`MuiAlert`,slot:`Message`,overridesResolver:(e,t)=>t.message})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Hd=ft(`div`,{name:`MuiAlert`,slot:`Action`,overridesResolver:(e,t)=>t.action})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),Ud={success:(0,X.jsx)(Pd,{fontSize:`inherit`}),warning:(0,X.jsx)(Fd,{fontSize:`inherit`}),error:(0,X.jsx)(Id,{fontSize:`inherit`}),info:(0,X.jsx)(Ld,{fontSize:`inherit`})},Wd=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,components:c={},componentsProps:l={},icon:u,iconMapping:d=Ud,onClose:f,role:p=`alert`,severity:m=`success`,slotProps:h={},slots:g={},variant:_=`standard`,...v}=n,y={...n,color:s,severity:m,variant:_,colorSeverity:s||m},b=Rd(y),x={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...g},slotProps:{...l,...h}},[S,C]=lr(`root`,{ref:t,shouldForwardComponentProp:!0,className:ht(b.root,a),elementType:zd,externalForwardedProps:{...x,...v},ownerState:y,additionalProps:{role:p,elevation:0}}),[w,T]=lr(`icon`,{className:b.icon,elementType:Bd,externalForwardedProps:x,ownerState:y}),[E,D]=lr(`message`,{className:b.message,elementType:Vd,externalForwardedProps:x,ownerState:y}),[O,k]=lr(`action`,{className:b.action,elementType:Hd,externalForwardedProps:x,ownerState:y}),[A,j]=lr(`closeButton`,{elementType:Gn,externalForwardedProps:x,ownerState:y}),[M,N]=lr(`closeIcon`,{elementType:vr,externalForwardedProps:x,ownerState:y});return(0,X.jsxs)(S,{...C,children:[u===!1?null:(0,X.jsx)(w,{...T,children:u||d[m]||Ud[m]}),(0,X.jsx)(E,{...D,children:i}),r==null?null:(0,X.jsx)(O,{...k,children:r}),r==null&&f?(0,X.jsx)(O,{...k,children:(0,X.jsx)(A,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:f,...j,children:(0,X.jsx)(M,{fontSize:`small`,...N})})}):null]})});function Gd(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=ar({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function Kd(e){return ot(`MuiBadge`,e)}var qd=tt(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),Jd=10,Yd=4,Xd=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return Et({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${_t(n.vertical)}${_t(n.horizontal)}`,`anchorOrigin${_t(n.vertical)}${_t(n.horizontal)}${_t(i)}`,`overlap${_t(i)}`,t!=="default"&&`color${_t(t)}`]},Kd,o)},Zd=ft(`span`,{name:`MuiBadge`,slot:`Root`,overridesResolver:(e,t)=>t.root})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),Qd=ft(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;
1466return[t.badge,t[n.variant],t[`anchorOrigin${_t(n.anchorOrigin.vertical)}${_t(n.anchorOrigin.horizontal)}${_t(n.overlap)}`],n.color!=="default"&&t[`color${_t(n.color)}`],n.invisible&&t.invisible]}})(ut(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Jd*2,lineHeight:1,padding:`0 6px`,height:Jd*2,borderRadius:Jd,zIndex:1,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(ct([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:Yd,height:Yd*2,minWidth:Yd*2,padding:0}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`rectangular`,style:{to
1466p:0,right:0,transform:`scale(1) translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`rectangular`,style:{bottom:0,right:0,transform:`scale(1) translate(50%, 50%)`,transformOrigin:`100% 100%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`rectangular`,style:{top:0,left:0,transform:`scale(1) translate(-50%, -50%)`,transformOrigin:`0% 0%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(-50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`rectangular`,style:{bottom:0,left:0,transform:`scale(1) translate(-50%, 50%)`,transformOrigin:`0% 100%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(-50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`circular`,style:{to
1466p:`14%`,right:`14%`,transform:`scale(1) translate(50%, -50%)`,transformOrigin:`100% 0%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`right`&&e.overlap===`circular`,style:{bottom:`14%`,right:`14%`,transform:`scale(1) translate(50%, 50%)`,transformOrigin:`100% 100%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(50%, 50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`circular`,style:{top:`14%`,left:`14%`,transform:`scale(1) translate(-50%, -50%)`,transformOrigin:`0% 0%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(-50%, -50%)`}}},{props:({ownerState:e})=>e.anchorOrigin.vertical===`bottom`&&e.anchorOrigin.horizontal===`left`&&e.overlap===`circular`,style:{bottom:`14%`,left:`14%`,transform:`scale(1) translate(-50%, 50%)`,transformOrigin:`0% 100%`,[`&.${qd.invisible}`]:{transform:`scale(0) translate(-50%, 50%)`}}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function $d(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var ef=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,components:s={},componentsProps:c={},children:l,overlap:u=`rectangular`,color:d=`default`,invisible:f=!1,max:p=99,badgeContent:m,slots:h,slotProps:g,showZero:_=!1,variant:v=`standard`,...y}
1466=n,{badgeContent:b,invisible:x,max:S,displayValue:C}=Gd({max:p,invisible:f,badgeContent:m,showZero:_}),w=ar({anchorOrigin:$d(r),color:d,overlap:u,variant:v,badgeContent:m}),T=x||b==null&&v!==`dot`,{color:E=d,overlap:D=u,anchorOrigin:O,variant:k=v}=T?w:n,A=$d(O),j=k===`dot`?void 0:C,M={...n,badgeContent:b,invisible:T,max:S,displayValue:j,showZero:_,anchorOrigin:A,color:E,overlap:D,variant:k},N=Xd(M),P=h?.root??s.Root??Zd,F=h?.badge??s.Badge??Qd,I=g?.root??c.root,ee=g?.badge??c.badge,L=qn({elementType:P,externalSlotProps:I,externalForwardedProps:y,additionalProps:{ref:t,as:o},ownerState:M,className:ht(I?.className,N.root,i)}),R=qn({elementType:F,externalSlotProps:ee,ownerState:M,className:ht(N.badge,ee?.className)});return(0,X.jsxs)(P,{...L,children:[l,(0,X.jsx)(F,{...R,children:j})]})});function tf(e){return ot(`MuiBottomNavigation`,e)}tt(`MuiBottomNavigation`,[`root`]);var nf=e=>{let{classes:t}=e;return Et({root:[`root`]},tf,t)},rf=ft(`div`,{name:`MuiBottomNavigation`,slot:`Root`,overridesResolver:(e,t)=>t.root})(ut(({theme:e})=>({display:`flex`,justifyContent:`center`,height:56,backgroundColor:(e.vars||e).palette.background.paper}))),af=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiBottomNavigation`}),{children:r,className:i,component:a=`div`,onChange:o,showLabels:s=!1,value:c,...l}=n,u={...n,component:a,showLabels:s};return(0,X.jsx)(rf,{as:a,className:ht(nf(u).root,i),ref:t,ownerState:u,...l,children:J.Children.map(r,(e,t)=>{if(!J.isValidElement(e))return null;let n=e.props.value===void 0?t:e.props.value;return J.cloneElement(e,{selected:n===c,showLabel:e.props.showLabel===void 0?s:e.props.showLabel,value:n,onChange:o})})})});function of(e){return ot(`MuiBottomNavigationAction`,e)}var sf=tt(`MuiBottomNavigationAction`,[`root`,`iconOnly`,`selected`,`label`]),cf=e=>{let{classes:t,showLabel:n,selected:r}=e;return Et({root:[`root`,!n&&!r&&`iconOnly`,r&&`selected`],label:[`label`,!n&&!r&&`iconOnly`,r&&`selected`]},of,t)},lf=ft(bt,{name:`MuiBottomNavigationAction`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.showLabel&&!n.selected&&t.iconOnly]}})(ut(({theme:e})=>({transition:e.transitions.create([`color`,`padding-top`],{duration:e.transitions.duration.short}),padding:`0px 12px`,minWidth:80,maxWidth:168,color:(e.vars||e).palette.text.secondary,flexDirection:`column`,flex:`1`,[`&.${sf.selected}`]:{color:(e.vars||e).palette.primary.main},variants:[{props:({showLabel:e,selected:t})=>!e&&!t,style:{paddingTop:14}},{props:({showLabel:e,selected:t,label:n})=>!e&&!t&&!n,style:{paddingTop:0}}]}))),uf=ft(`span`,{name:`MuiBottomNavigationAction`,slot:`Label`,overridesResolver:(e,t)=>t.label})(ut(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:`font-size 0.2s, opacity 0.2s`,transitionDelay:`0.1s`,[`&.${sf.selected}`]:{fontSize:e.typography.pxToRem(14)},variants:[{props:({showLabel:e,selected:t})=>!e&&!t,style:{opacity:0,transitionDelay:`0s`}}]}))),df=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiBottomNavigationAction`}),{className:r,icon:i,label:a,onChange:o,onClick:s,selected:c,showLabel:l,value:u,...d}=n,f=n,p=cf(f);return(0,X.jsxs)(lf,{ref:t,className:ht(p.root,r),focusRipple:!0,onClick:e=>{o&&o(e,u),s&&s(e)},ownerState:f,...d,children:[i,(0,X.jsx)(uf,{className:p.label,ownerState:f,children:a})]})}),ff=K((0,X.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z`}),`MoreHoriz`),pf=ft(bt)(ut(({theme:e})=>({display:`flex`,marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode===`light`?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode===`light`?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode===`light`?{backgroundColor:se(e.palette.grey[200],.12)}:{backgroundColor:se(e.palette.grey[600],.12)}}}))),mf=ft(ff)({width:24,height:16});function hf(e){let{slots:t={},slotProps:n={},...r}=e,i=e;return(0,X.jsx)(`li`,{children:(0,X.jsx)(pf,{focusRipple:!0,...r,ownerState:i,children:(0,X.jsx)(mf,{as:t.CollapsedIcon,ownerState:i,...n.collapsedIcon})})})}function gf(e){return ot(`MuiBreadcrumbs`,e)}var _f=tt(`MuiBreadcrumbs`,[`root`,`ol`,`li`,`separator`]),vf=e=>{let{classes:t}=e;return Et({root:[`root`],li:[`li`],ol:[`ol`],separator:[`separator`]},gf,t)},yf=ft(St,{name:`MuiBreadcrumbs`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${_f.li}`]:t.li},t.root]})({}),bf=ft(`ol`,{name:`MuiBreadcrumbs`,slot:`Ol`,overridesResolver:(e,t)=>t.ol})({display:`flex`,flexWrap:`wrap`,alignItems:`center`,padding:0,margin:0,listStyle:`none`}),xf=ft(`li`,{name:`MuiBreadcrumbs`,slot:`Separator`,overridesResolver:(e,t)=>t.separator})({display:`flex`,userSelect:`none`,marginLeft:8,marginRight:8});function Sf(e,t,n,r){return e.reduce((i,a,o)=>
1466(o<e.length-1?i=i.concat(a,(0,X.jsx)(xf,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${o}`)):i.push(a),i),[])}var Cf=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiBreadcrumbs`}),{children:r,className:i,component:a=`nav`,slots:o={},slotProps:s={},expandText:c=`Show path`,itemsAfterCollapse:l=1,itemsBeforeCollapse:u=1,maxItems:d=8,separator:f=`/`,...p}=n,[m,h]=J.useState(!1),g={...n,component:a,expanded:m,expandText:c,itemsAfterCollapse:l,itemsBeforeCollapse:u,maxItems:d,separator:f},_=vf(g),v=qn({elementType:o.CollapsedIcon,externalSlotProps:s.collapsedIcon,ownerState:g}),y=J.useRef(null),b=e=>{let t=()=>{h(!0);let e=y.current.querySelector(`a[href],button,[tabindex]`);e&&e.focus()};return u+l>=e.length?e:[...e.slice(0,u),(0,X.jsx)(hf,{"aria-label":c,slots:{CollapsedIcon:o.CollapsedIcon},slotProps:{collapsedIcon:v},onClick:t},`ellipsis`),...e.slice(e.length-l,e.length)]},x=J.Children.toArray(r).filter(e=>J.isValidElement(e)).map((e,t)=>(0,X.jsx)(`li`,{className:_.li,children:e},`child-${t}`));return(0,X.jsx)(yf,{ref:t,component:a,color:`textSecondary`,className:ht(_.root,i),ownerState:g,...p,children:(0,X.jsx)(bf,{className:_.ol,ref:y,ownerState:g,children:Sf(m||d&&x.length<=d?x:b(x),_.separator,f,g)})})});function wf(e){return ot(`MuiCard`,e)}tt(`MuiCard`,[`root`]);var Tf=e=>{let{classes:t}=e;return Et({root:[`root`]},wf,t)},Ef=ft(Rn,{name:`MuiCard`,slot:`Root`,overridesResolver:(e,t)=>t.root})({overflow:`hidden`}),Df=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i};return(0,X.jsx)(Ef,{className:ht(Tf(o).root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function Of(e){return ot(`MuiCardActions`,e)}tt(`MuiCardActions`,[`root`,`spacing`]);var kf=e=>{let{classes:t,disableSpacing:n}=e;return Et({root:[`root`,!n&&`spacing`]},Of,t)},Af=ft(`div`,{name:`MuiCardActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),jf=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiCardActions`}),{disableSpacing:r=!1,className:i,...a}=n,o={...n,disableSpacing:r};return(0,X.jsx)(Af,{className:ht(kf(o).root,i),ownerState:o,ref:t,...a})});function Mf(e){return ot(`MuiCardContent`,e)}tt(`MuiCardContent`,[`root`]);var Nf=e=>{let{classes:t}=e;return Et({root:[`root`]},Mf,t)},Pf=ft(`div`,{name:`MuiCardContent`,slot:`Root`,overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),Ff=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i};return(0,X.jsx)(Pf,{as:i,className:ht(Nf(o).root,r),ownerState:o,ref:t,...a})}),If=typeof yt({})==`function`,Lf=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),Rf=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),zf=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:Lf(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Rf(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},Bf=`mui-ecs`,Vf=e=>{let t=zf(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Bf})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${Bf}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${Bf}))`]:{colorScheme:r.palette?.mode}}}),t},Hf=yt(If?({theme:e,enableColorScheme:t})=>zf(e,t):({theme:e})=>Vf(e));function Uf(e){let{children:t,enableColorScheme:n=!1}=lt({props:e,name:`MuiCssBaseline`});return(0,X.jsxs)(J.Fragment,{children:[If&&(0,X.jsx)(Hf,{enableColorScheme:n}),!If&&!n&&(0,X.jsx)(`span`,{className:Bf,style:{display:`none`}}),t]})}function Wf(e){return ot(`MuiFormGroup`,e)}tt(`MuiFormGroup`,[`root`,`row`,`error`]);var Gf=e=>{let{classes:t,row:n,error:r}=e;
1466return Et({root:[`root`,n&&`row`,r&&`error`]},Wf,t)},Kf=ft(`div`,{name:`MuiFormGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,variants:[{props:{row:!0},style:{flexDirection:`row`}}]}),qf=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiFormGroup`}),{className:r,row:i=!1,...a}=n,o=Tr({props:n,muiFormControl:Er(),states:[`error`]}),s={...n,row:i,error:o.error};return(0,X.jsx)(Kf,{className:ht(Gf(s).root,r),ownerState:s,ref:t,...a})});function Jf(e){return ot(`MuiLink`,e)}var Yf=tt(`MuiLink`,[`root`,`underlineNone`,`underlineHover`,`underlineAlways`,`button`,`focusVisible`]),Xf=({theme:e,ownerState:t})=>{let n=t.color,r=te(e,`palette.${n}.main`,!1)||te(e,`palette.${n}`,!1)||t.color,i=te(e,`palette.${n}.mainChannel`)||te(e,`palette.${n}Channel`);return`vars`in e&&i?`rgba(${i} / 0.4)`:I(r,.4)},Zf={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Qf=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return Et({root:[`root`,`underline${_t(i)}`,n===`button`&&`button`,r&&`focusVisible`]},Jf,t)},$f=ft(St,{name:`MuiLink`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${_t(n.underline)}`],n.component===`button`&&t.button]}})(ut(({theme:e})=>({variants:[{props:{underline:`none`},style:{textDecoration:`none`}},{props:{underline:`hover`},style:{textDecoration:`none`,"&:hover":{textDecoration:`underline`}}},{props:{underline:`always`},style:{textDecoration:`underline`,"&:hover":{textDecorationColor:`inherit`}}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color!==`inherit`,style:{textDecorationColor:`var(--Link-underlineColor)`}},...Object.entries(e.palette).filter(ct()).map(([t])=>({props:{underline:`always`,color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:I(e.palette[t].main,.4)}})),{props:{underline:`always`,color:`textPrimary`},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:I(e.palette.text.primary,.4)}},{props:{underline:`always`,color:`textSecondary`},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:I(e.palette.text.secondary,.4)}},{props:{underline:`always`,color:`textDisabled`},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:`button`},style:{position:`relative`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${Yf.focusVisible}`]:{outline:`auto`}}}]}))),ep=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiLink`}),r=z(),{className:i,color:a=`primary`,component:o=`a`,onBlur:s,onFocus:c,TypographyClasses:l,underline:u=`always`,variant:d=`inherit`,sx:f,...p}=n,[m,h]=J.useState(!1),g=e=>{st(e.target)||h(!1),s&&s(e)},_=e=>{st(e.target)&&h(!0),c&&c(e)},v={...n,color:a,component:o,focusVisible:m,underline:u,variant:d};return(0,X.jsx)($f,{color:a,className:ht(Qf(v).root,i),classes:l,component:o,onBlur:g,onFocus:_,ref:t,ownerState:v,variant:d,...p,sx:[...Zf[a]===void 0?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...p.style,...u===`always`&&a!==`inherit`&&!Zf[a]&&{"--Link-underlineColor":Xf({theme:r,ownerState:v})}}})}),tp=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},np=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=Et({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},Jr,n);return{...n,...c}},rp=ft(bt,{shouldForwardProp:e=>dt(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:tp}
1466)(ut(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${qr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:I(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:I(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qr.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:I(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:I(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),ip=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:i=!1,component:a=`div`,children:o,dense:s=!1,disableGutters:c=!1,divider:l=!1,focusVisibleClassName:u,selected:d=!1,className:f,...p}=n,m=J.useContext(Wr),h=J.useMemo(()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:c}),[r,m.dense,s,c]),g=J.useRef(null);hr(()=>{i&&g.current&&g.current.focus()},[i]);let _={...n,alignItems:r,dense:h.dense,disableGutters:c,divider:l,selected:d},v=np(_),y=gt(g,t);return(0,X.jsx)(Wr.Provider,{value:h,children:(0,X.jsx)(rp,{ref:y,href:p.href||p.to,component:(p.href||p.to)&&a===`div`?`button`:a,focusVisibleClassName:ht(v.focusVisible,u),ownerState:_,className:ht(v.root,f),...p,classes:v,children:o})})}),ap=e=>{let{alignItems:t,classes:n}=e;return Et({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},Yr,n)},op=ft(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(ut(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),sp=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=J.useContext(Wr),o={...n,alignItems:a.alignItems};return(0,X.jsx)(op,{className:ht(ap(o).root,r),ownerState:o,ref:t,...i})});function cp(e){return ot(`MuiRadioGroup`,e)}tt(`MuiRadioGroup`,[`root`,`row`,`error`]);var lp=e=>{let{classes:t,row:n,error:r}=e;return Et({root:[`root`,n&&`row`,r&&`error`]},cp,t)},up=J.forwardRef(function(e,t){let{actions:n,children:r,className:i,defaultValue:a,name:o,onChange:s,value:c,...l}=e,u=J.useRef(null),d=lp(e),[f,p]=ir({controlled:c,default:a,name:`RadioGroup`});J.useImperativeHandle(n,()=>({focus:()=>{let e=u.current.querySelector(`input:not(:disabled):checked`);e||=u.current.querySelector(`input:not(:disabled)`),e&&e.focus()}}),[]);let m=gt(t,u),h=$n(o),g=J.useMemo(()=>({name:h,onChange(e){p(e.target.value),s&&s(e,e.target.value)},value:f}),[h,s,p,f]);return(0,X.jsx)(pr.Provider,{value:g,children:(0,X.jsx)(qf,{role:`radiogroup`,ref:m,className:ht(d.root,i),...l,children:r})})}),dp=Mu({createStyledComponent:ft(`div`,{name:`MuiStack`,slot:`Root`,overridesResolver:(e,t)=>t.root}),useThemeProps:e=>lt({props:e,name:`MuiStack`})});function fp(e){return ot(`MuiSwitch`,e)}var pp=tt(`MuiSwitch`,[`root`,`edgeStart`,`edgeEnd`,`switchBase`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`,`checked`,`disabled`,`input`,`thumb`,`track`]),mp=e=>{let{classes:t,edge:n,size:r,color:i,checked:a,disabled:o}
1466=e,s=Et({root:[`root`,n&&`edge${_t(n)}`,`size${_t(r)}`],switchBase:[`switchBase`,`color${_t(i)}`,a&&`checked`,o&&`disabled`],thumb:[`thumb`],track:[`track`],input:[`input`]},fp,t);return{...t,...s}},hp=ft(`span`,{name:`MuiSwitch`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.edge&&t[`edge${_t(n.edge)}`],t[`size${_t(n.size)}`]]}})({display:`inline-flex`,width:58,height:38,overflow:`hidden`,padding:12,boxSizing:`border-box`,position:`relative`,flexShrink:0,zIndex:0,verticalAlign:`middle`,"@media print":{colorAdjust:`exact`},variants:[{props:{edge:`start`},style:{marginLeft:-8}},{props:{edge:`end`},style:{marginRight:-8}},{props:{size:`small`},style:{width:40,height:24,padding:7,[`& .${pp.thumb}`]:{width:16,height:16},[`& .${pp.switchBase}`]:{padding:4,[`&.${pp.checked}`]:{transform:`translateX(16px)`}}}}]}),gp=ft(Or,{name:`MuiSwitch`,slot:`SwitchBase`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.switchBase,{[`& .${pp.input}`]:t.input},n.color!=="default"&&t[`color${_t(n.color)}`]]}})(ut(({theme:e})=>({position:`absolute`,top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode===`light`?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create([`left`,`transform`],{duration:e.transitions.duration.shortest}),[`&.${pp.checked}`]:{transform:`translateX(20px)`},[`&.${pp.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode===`light`?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${pp.checked} + .${pp.track}`]:{opacity:.5},[`&.${pp.disabled} + .${pp.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode===`light`?.12:.2}`},[`& .${pp.input}`]:{left:`-100%`,width:`300%`}})),ut(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[...Object.entries(e.palette).filter(ct([`light`])).map(([t])=>({props:{color:t},style:{[`&.${pp.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${pp.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode===`light`?ie(e.palette[t].main,.62):L(e.palette[t].main,.55)}`}},[`&.${pp.checked} + .${pp.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),_p=ft(`span`,{name:`MuiSwitch`,slot:`Track`,overridesResolver:(e,t)=>t.track})(ut(({theme:e})=>({height:`100%`,width:`100%`,borderRadius:14/2,zIndex:-1,transition:e.transitions.create([`opacity`,`background-color`],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode===`light`?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode===`light`?.38:.3}`}))),vp=ft(`span`,{name:`MuiSwitch`,slot:`Thumb`,overridesResolver:(e,t)=>t.thumb})(ut(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:`currentColor`,width:20,height:20,borderRadius:`50%`}))),yp=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiSwitch`}),{className:r,color:i=`primary`,edge:a=!1,size:o=`medium`,sx:s,...c}=n,l={...n,color:i,edge:a,size:o},u=mp(l),d=(0,X.jsx)(vp,{className:u.thumb,ownerState:l});return(0,X.jsxs)(hp,{className:ht(u.root,r),sx:s,ownerState:l,children:[(0,X.jsx)(gp,{type:`checkbox`,icon:d,checkedIcon:d,ref:t,ownerState:l,...c,classes:{...u,root:u.switchBase}}),(0,X.jsx)(_p,{className:u.track,ownerState:l})]})});function bp(e){return ot(`MuiTab`,e)}var xp=tt(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`iconWrapper`,`icon`]),Sp=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return Et({root:[`root`,a&&o&&`labelIcon`,`textColor${_t(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`iconWrapper`,`icon`]},bp,t)},Cp=ft(bt,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${_t(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${xp.iconWrapper}`]:t.iconWrapper},{[`& .${xp.icon}`]:t.icon}]}})(ut(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition===`top`||e.iconPosition===`bottom`),style:{flexDirection:`column`}},{props:({ownerState:e})=>e.label&&e.iconPosition!==`top`&&e.iconPosition!==`bottom`,style:{flexDirection:`row`}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${xp.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${xp.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${xp.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${xp.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${xp.selected}`]:{opacity:1},[`&.${xp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${xp.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${xp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${xp.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${xp.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),wp=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},x=Sp(b),S=s&&u&&J.isValidElement(s)?J.cloneElement(s,{className:ht(x.icon,s.props.className)}):s;return(0,X.jsxs)(Cp,{focusRipple:!a,className:ht(x.root,r),ref:t,role:`tab`,"aria-selected":m,disabled:i,onClick:e=>{!m&&d&&d(e,_),f&&f(e)},onFocus:e=>{h&&!m&&d&&d(e,_),p&&p(e)},ownerState:b,tabIndex:m?0:-1,...y,children:[c===`top`||c===`start`?(0,X.jsxs)(J.Fragment,{children:[S,u]}
vendor: 4,109 bytes, line 1466
1466):(0,X.jsxs)(J.Fragment,{children:[u,S]}),l]})}),Tp=K((0,X.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),Ep=K((0,X.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function Dp(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Op(e,t,n,r={},i=()=>{}){let{ease:a=Dp,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);if(t[e]=a(u)*(n-c)+c,u>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var kp={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`};function Ap(e){let{onChange:t,...n}=e,r=J.useRef(),i=J.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return hr(()=>{let e=Un(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=Wn(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),J.useEffect(()=>{a(),t(r.current)},[t]),(0,X.jsx)(`div`,{style:kp,...n,ref:i})}function jp(e){return ot(`MuiTabScrollButton`,e)}var Mp=tt(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),Np=e=>{let{classes:t,orientation:n,disabled:r}=e;return Et({root:[`root`,n,r&&`disabled`]},jp,t)},Pp=ft(bt,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Mp.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),Fp=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,u=Jn(),d={isRtl:u,...n},f=Np(d),p=i.StartScrollButtonIcon??Tp,m=i.EndScrollButtonIcon??Ep,h=qn({elementType:p,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:d}),g=qn({elementType:m,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:d});return(0,X.jsx)(Pp,{component:`div`,className:ht(f.root,r),ref:t,role:null,ownerState:d,tabIndex:null,...l,style:{...l.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${u?-90:90}deg)`}},children:o===`left`?(0,X.jsx)(p,{...h}):(0,X.jsx)(m,{...g})})});function Ip(e){return ot(`MuiTabs`,e)}var Lp=tt(`MuiTabs`,[`root`,`vertical`,`list`,`flexContainer`,`flexContainerVertical`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),Rp=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,zp=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Bp=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}let t=i.disabled||i.getAttribute(`aria-disabled`)===`true`;if(!i.hasAttribute(`tabindex`)||t)i=n(e,i);else{i.focus();return}}},Vp=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return Et({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,`flexContainer`,t&&`flexContainerVertical`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},Ip,c)},Hp=ft(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Lp.scrollButtons}`]:t.scrollButtons},{[`& .${Lp.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(ut(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Lp.scrollButtons}
1466`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),Up=ft(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),Wp=ft(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),Gp=ft(`span`,{name:`MuiTabs`,slot:`Indicator`,overridesResolver:(e,t)=>t.indicator})(ut(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,transition:e.transitions.create(),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),Kp=ft(Ap)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),qp={},Jp=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiTabs`}),r=z(),i=Jn(),{"aria-label":a,"aria-labelledby":o,action:s,centered:c=!1,children:l,className:u,component:d=`div`,allowScrollButtonsMobile:f=!1,indicatorColor:p=`primary`,onChange:m,orientation:h=`horizontal`,ScrollButtonComponent:g,scrollButtons:_=`auto`,selectionFollowsFocus:v,slots:y={},slotProps:b={},TabIndicatorProps:x={},TabScrollButtonProps:S={},textColor:C=`primary`,value:w,variant:T=`standard`,visibleScrollbar:E=!1,...D}=n,O=T===`scrollable`,k=h===`vertical`,A=k?`scrollTop`:`scrollLeft`,j=k?`top`:`left`,M=k?`bottom`:`right`,N=k?`clientHeight`:`clientWidth`,P=k?`height`:`width`,F={...n,component:d,allowScrollButtonsMobile:f,indicatorColor:p,orientation:h,vertical:k,scrollButtons:_,textColor:C,variant:T,visibleScrollbar:E,fixed:!O,hideScrollbar:O&&!E,scrollableX:O&&!k,scrollableY:O&&k,centered:c&&!O,scrollButtonsHideMobile:!f},I=Vp(F),ee=qn({elementType:y.StartScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:F}),L=qn({elementType:y.EndScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:F}),[R,te]=J.useState(!1),[ne,re]=J.useState(qp),[ie,ae]=J.useState(!1),[oe,se]=J.useState(!1),[ce,le]=J.useState(!1),[B,ue]=J.useState({overflow:`hidden`,scrollbarWidth:0}),de=new Map,fe=J.useRef(null),pe=J.useRef(null),me={slots:y,slotProps:{indicator:x,scrollButton:S,...b}},he=()=>{let e=fe.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&w!==!1){let e=pe.current.children;if(e.length>0){let t=e[de.get(w)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ge=Ct(()=>{let{tabsMeta:e,tabMeta:t}=he(),n=0,r;k?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[P]:t?t[P]:0};if(typeof ne[r]!=`number`||typeof ne[P]!=`number`)re(a);else{let e=Math.abs(ne[r]-a[r]),t=Math.abs(ne[P]-a[P]);(e>=1||t>=1)&&re(a)}}),_e=(e,{animation:t=!0}={})=>{t?Op(A,fe.current,e,{duration:r.transitions.duration.standard}):fe.current[A]=e},ve=e=>{let t=fe.current[A];k?t+=e:t+=e*(i?-1:1),_e(t)},ye=()=>{let e=fe.current[N],t=0,n=Array.from(pe.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[N]>e){r===0&&(t=e);break}t+=i[N]}return t},be=()=>{ve(-1*ye())},xe=()=>{ve(ye())},[Se,{onChange:Ce,...V}]=lr(`scrollbar`,{className:ht(I.scrollableX,I.hideScrollbar),elementType:Kp,shouldForwardComponentProp:!0,externalForwardedProps:me,ownerState:F}),we=J.useCallback(e=>{Ce?.(e),ue({overflow:null,scrollbarWidth:e})},[Ce]),[Te,Ee]=lr(`scrollButtons`,{className:ht(I.scrollButtons,S.className),elementType:Fp,externalForwardedProps:me,ownerState:F,additionalProps:{orientation:h,slots:{StartScrollButtonIcon:y.startScrollButtonIcon||y.StartScrollButtonIcon,EndScrollButtonIcon:y.endScrollButtonIcon||y.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ee,endScrollButtonIcon:L}}}),De=()=>{let e={};e.scrollbarSizeListener=O?(0,X.jsx)(Se,{...V,onChange:we}):null;let t=O&&(_===`auto`&&(ie||oe)||_===!0);return e.scrollButtonStart=t?(0,X.jsx)(Te,{direction:i?`right`:`left`,onClick:be,disabled:!ie,...Ee}):null,e.scrollButtonEnd=t?(0,X.jsx)(Te,{direction:i?`left`:`right`,onClick:xe,disabled:!oe,...Ee}):null,e},Oe=Ct(e=>{let{tabsMeta:t,tabMeta:n}=he();!n||!t||(n[j]<t[j]?_e(t[A]+(n[j]-t[j]),{animation:e}):n[M]>t[M]&&_e(t[A]+(n[M]-t[M]),{animation:e}))}),ke=Ct(()=>{O&&_!==!1&&le(!ce)});J.useEffect(()=>{let e=Un(()=>{fe.current&&ge()}),t,n=n=>
1466{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ke()},r=Wn(fe.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(pe.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(pe.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[ge,ke]),J.useEffect(()=>{let e=Array.from(pe.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&O&&_!==!1){let n=e[0],r=e[t-1],i={root:fe.current,threshold:.99},a=new IntersectionObserver(e=>{ae(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{se(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[O,_,ce,l?.length]),J.useEffect(()=>{te(!0)},[]),J.useEffect(()=>{ge()}),J.useEffect(()=>{Oe(qp!==ne)},[Oe,ne]),J.useImperativeHandle(s,()=>({updateIndicator:ge,updateScrollButtons:ke}),[ge,ke]);let[Ae,je]=lr(`indicator`,{className:ht(I.indicator,x.className),elementType:Gp,externalForwardedProps:me,ownerState:F,additionalProps:{style:ne}}),Me=(0,X.jsx)(Ae,{...je}),Ne=0,Pe=J.Children.map(l,e=>{if(!J.isValidElement(e))return null;let t=e.props.value===void 0?Ne:e.props.value;de.set(t,Ne);let n=t===w;return Ne+=1,J.cloneElement(e,{fullWidth:T===`fullWidth`,indicator:n&&!R&&Me,selected:n,selectionFollowsFocus:v,onChange:m,textColor:C,value:t,...Ne===1&&w===!1&&!e.props.tabIndex?{tabIndex:0}:{}})}),H=e=>{let t=pe.current,n=Hn(t).activeElement;if(n.getAttribute(`role`)!==`tab`)return;let r=h===`horizontal`?`ArrowLeft`:`ArrowUp`,a=h===`horizontal`?`ArrowRight`:`ArrowDown`;switch(h===`horizontal`&&i&&(r=`ArrowRight`,a=`ArrowLeft`),e.key){case r:e.preventDefault(),Bp(t,n,zp);break;case a:e.preventDefault(),Bp(t,n,Rp);break;case`Home`:e.preventDefault(),Bp(t,null,Rp);break;case`End`:e.preventDefault(),Bp(t,null,zp);break;default:break}},U=De(),[Fe,Ie]=lr(`root`,{ref:t,className:ht(I.root,u),elementType:Hp,externalForwardedProps:{...me,...D,component:d},ownerState:F}),[Le,Re]=lr(`scroller`,{ref:fe,className:I.scroller,elementType:Up,externalForwardedProps:me,ownerState:F,additionalProps:{style:{overflow:B.overflow,[k?`margin${i?`Left`:`Right`}`:`marginBottom`]:E?void 0:-B.scrollbarWidth}}}),[ze,Be]=lr(`list`,{ref:pe,className:ht(I.list,I.flexContainer),elementType:Wp,externalForwardedProps:me,ownerState:F,getSlotProps:e=>({...e,onKeyDown:t=>{H(t),e.onKeyDown?.(t)}})});return(0,X.jsxs)(Fe,{...Ie,children:[U.scrollButtonStart,U.scrollbarSizeListener,(0,X.jsxs)(Le,{...Re,children:[(0,X.jsx)(ze,{"aria-label":a,"aria-labelledby":o,"aria-orientation":h===`vertical`?`vertical`:null,role:`tablist`,...Be,children:Pe}),R&&Me]}),U.scrollButtonEnd]})});function Yp(e){return ot(`MuiToggleButtonGroup`,e)}var Xp=tt(`MuiToggleButtonGroup`,[`root`,`selected`,`horizontal`,`vertical`,`disabled`,`grouped`,`groupedHorizontal`,`groupedVertical`,`fullWidth`,`firstButton`,`lastButton`,`middleButton`]),Zp=e=>{let{classes:t,orientation:n,fullWidth:r,disabled:i}=e;return Et({root:[`root`,n,r&&`fullWidth`],grouped:[`grouped`,`grouped${_t(n)}`,i&&`disabled`],firstButton:[`firstButton`],lastButton:[`lastButton`],middleButton:[`middleButton`]},Yp,t)},Qp=ft(`div`,{name:`MuiToggleButtonGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Xp.grouped}`]:t.grouped},{[`& .${Xp.grouped}`]:t[`grouped${_t(n.orientation)}`]},{[`& .${Xp.firstButton}`]:t.firstButton},{[`& .${Xp.lastButton}`]:t.lastButton},{[`& .${Xp.middleButton}`]:t.middleButton},t.root,n.orientation===`vertical`&&t.vertical,n.fullWidth&&t.fullWidth]}})(ut(({theme:e})=>({display:`inline-flex`,borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:`vertical`},style:{flexDirection:`column`,[`& .${Xp.grouped}`]:{[`&.${Xp.selected} + .${Xp.grouped}.${Xp.selected}`]:{borderTop:0,marginTop:0}},[`& .${Xp.firstButton},& .${Xp.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Xp.lastButton},& .${Xp.middleButton}`]:{marginTop:-1,borderTop:`1px solid transparent`,borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${Xp.lastButton}.${ni.disabled},& .${Xp.middleButton}.${ni.disabled}`]:{borderTop:`1px solid transparent`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{orientation:`horizontal`},style:{[`& .${Xp.grouped}`]:{[`&.${Xp.selected} + .${Xp.grouped}.${Xp.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${Xp.firstButton},& .${Xp.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Xp.lastButton},& .${Xp.middleButton}`]:{marginLeft:-1,borderLeft:`1px solid transparent`,borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${Xp.lastButton}.${ni.disabled},& .${Xp.middleButton}.${ni.disabled}`]:{borderLeft:`1px solid transparent`}}}]}))),$p=J.forwardRef(function(e,t){let n=lt({props:e,name:`MuiToggleButtonGroup`}),{children:r,className:i,color:a=`standard`,disabled:o=!1,exclusive:s=!1,fullWidth:c=!1,onChange:l,orientation:u=`horizontal`,size:d=`medium`,value:f,...p}=n,m={...n,disabled:o,fullWidth:c,orientation:u,size:d},h=Zp(m),g=J.useCallback((e,t)=>{if(!l)return;let n=f&&f.indexOf(t),r;f&&n>=0?(r=f.slice(),r.splice(n,1)):r=f?f.concat(t):[t],l(e,r)},[l,f]),_=J.useCallback((e,t)=>{l&&l(e,f===t?null:t)},[l,f]),v=J.useMemo(()=>({className:h.grouped,onChange:s?_:g,value:f,size:d,fullWidth:c,color:a,disabled:o}),[h.grouped,s,_,g,f,d,c,a,o]),y=or(r),b=y.length,x=e=>{let t=e===0,n=e===b-1;return t&&n?``:t?h.firstButton:n?h.lastButton:h.middleButton};return(0,X.jsx)(Qp,{role:`group`,className:ht(h.root,i),ref:t,ownerState:m,...p,children:(0,X.jsx)(ii.Provider,{value:v,children:y.map((e,t)=>(0,X.jsx)(ri.Provider,{value:x(t),children:e},t))})})}),em=B()(e=>({flex:{display:`flex`,justifyContent:`center`,alignItems:`center`,margin:e.spacing(3,0,8),width:`100%`},imageBox:{},image:{boxShadow:`0 3px 8px 0 rgba(0, 0, 0, 0.16)`,userDrag:`none`,width:`80%`}})),$=({img:e})=>{let{classes:t}=em();return l(Hr,{columns:12,children:l(`div`,{className:t.flex,children:l(`img`,{src:e,alt:e,className:t.image})})})};$.propTypes={img:Z.default.string.isRequired};var tm=B()(e=>({title:{fontWeight:`bold`,color:e.palette.text.dark,lineBreak:`auto`}})),nm=({title:e})=>{let{classes:t}=tm();return l(St,{variant:`h5`,className:t.title,children:e})};
1466nm.propTypes={title:Z.default.string.isRequired};var rm=()=>d(`div`,{children:[l(nm,{title:`گروه دسترسی`}),l(Q,{children:`ممکن است در سازمان خود نیاز داشته باشید که به تعدادی از کارمندان خود، دسترسی‌های خاصی بدهید. ابتدا باید گروه‌های دسترسی موردنظر شما ایجاد شود و بعد از آن مشخص کنید که این گروه شامل چه کارمندانی باشد و چه مجوزهایی داشته باشد. پس از ایجاد گروه دسترسی، در میز کار سازمان، از ستون سمت راست روی گزینه دسترسی‌ها کلیک کنید. تب دوم به گروه دسترسی‌ها اختصاص دارد. کافیست روی گزینه ویرایش مقابل هر گروه دسترسی کلیک کنید.`}),l($,{img:`./guide-images/access-groups/access_groups_1.jpg`}),l(Q,{children:`در این صفحه، روی فیلد افزودن کارمند کلیک کنید تا لیست کارمندان باز شود. برای هر کارمندی که مدنظرتان هست به این لیست اضافه شود، روی گزینه افزودن مقابل آن کلیک کنید.`}),l($,{img:`./guide-images/access-groups/access_groups_2.jpg`})]}),im=()=>d(`div`,{children:[l(nm,{title:`افزودن پیوست`}),l(Q,{children:`هنگام ارجاع یک نامه علاوه بر دستور ارجاع، می‌توانید فایل یا فایل‌هایی را به آن ارجاع ضمیمه کنید تا در صورت لزوم اطلاعات بیشتری را به گیرنده ارجاع برسانید.`}),l(Q,{children:`برای این کار کافیست پس از ثبت نامه، روی دکمه‌ی ارجاع کلیک کنید. در پنجره‌ی جدیدی که باز می‌شود، پس از انتخاب گیرنده نامه، در کنار دستور ارجاع، روی دکمه‌ی انتخاب فایل ضمیمه کلیک و فایل موردنظرتان را آپلود کنید و در آخر روی گزینه‌ی اضافه کردن گیرندگان کلیک کنید.`}),l($,{img:`./guide-images/add-attachment/add_attachment.jpg`})]}),am=()=>d(`div`,{children:[l(nm,{title:`افزودن کارمند`}),l(Q,{children:`بعد از ایجاد سازمان، گام بعدی این است که به عنوان مالک، افراد دیگر را با نقش کارمند به سازمان اضافه کنید. برای این کار بعد از ورود به سیستم ابری آوات، روی نام سازمان کلیک کنید تا وارد میز کار شوید`}),l($,{img:`./guide-images/add-employees/addEmployees_1.jpg`}),l(Q,{children:`در صفحه میز کار، از ستون سمت راست، روی گزینه کارمندان کلیک کنید.`}),l($,{img:`./guide-images/add-employees/addEmployees_2.jpg`}),l(Q,{children:`در این صفحه می‌توانید با کلیک کردن روی گزینه افزودن کارمند، نام و مشخصات کارمندان سازمان را وارد و ثبت کنید.`}),l($,{img:`./guide-images/add-employees/addEmployees_3.jpg`}),l(Q,{children:`هر کارمند را می‌توانید با داشتن نام کاربری یا شماره موبایل به سازمان اضافه کنید. تب اول به نام کاربری اختصاص دارد. لازم به ذکر است که برای افزودن کارمند با نام کاربری، لازم است از نام کاربری که کاربر موردنظر با آن در سیستم ثبت‌نام کرده است، اطلاع داشته باشید.`}),l($,{img:`./guide-images/add-employees/addEmployees_4.jpg`}),l(Q,{children:`اگر نام کاربری کارمندان را در اختیار ندارید، می‌توانید به جای نام کاربری، افزودن کارمند را با شماره موبایل انجام دهید. برای این کار، تب دوم را در حالت فعال قرار دهید و شماره موبایل کاربر را در فیلد مربوطه وارد کنید. سپس دکمه ثبت را بزنید.`}),l($,{img:`./guide-images/add-employees/addEmployees_5.jpg`}),l(Q,{children:`با زدن دکمه ثبت، مشخصات کاربر موردنظر در لیست کارمندان سازمان شما نمایش داده می‌شود. مقدار ستون وضعیت، در انتظار پذیرش است و با یک Ø¢Û
1466ŒÚ©ÙˆÙ† نارنجی رنگ مشخص شده است. پس از پذیرش کاربر، مقدار این فیلد به فعال تغییر می‌کند و آیکون آن به رنگ سبز درمی‌آید. تا قبل از پذیرش کارمند، فقط نام کاربری یا شماره موبایل او برای مالک سازمان قابل مشاهده است.`}),l($,{img:`./guide-images/add-employees/addEmployees_6.jpg`})]}),om=B()(e=>({link:{fontWeight:`bold`,color:e.palette.text.link}})),sm=()=>{let{classes:e}=om();return d(`div`,{children:[l(nm,{title:`مدیریت تصویر امضا`}),l(Q,{children:`همانطور که گفتیم، بعد از ثبت‌نام لازم است اطلاعات کاربری را کامل کنید. یکی از مواردی که در این مرحله باید ثبت شود، تصویر امضای شما است؛ یک فایل تصویری با فرمت png که در ادامه روش تهیه آن را با هم مرور می‌کنیم.`}),l($,{img:`./guide-images/add-signature/addSignature_1.jpg`}
1466),d(Q,{children:[`یک کاغذ سفید تهیه کنید و آن را با روان‌نویس یا خودکار مشکی یا آبی امضا کنید. سپس آن را اسکن کنید یا از آن عکس بگیرید. در این مرحله لازم است پس‌زمینه عکس امضا را حذف کنید. برای این کار می‌توانید از سایت‌هایی استفاده کنید که برای این کار طراحی شده‌اند. به این`,` `,l(`a`,{href:`https://www.slazzer.com/`,target:`_blank`,rel:`noreferrer`,className:e.link,children:`سایت`}),` `,`بروید و با کلیک کردن روی گزینه Upload Image، عکس امضا را آپلود کنید.`]}),l($,{img:`./guide-images/add-signature/addSignature_2.jpg`}),l(Q,{children:`بعد از آپلود شدن عکس، پس‌زمینه آن به‌صورت خودکار حذف می‌شود و نسخه png نمایش داده می‌شود. دو گزینه در سمت چپ تصویر برای دانلود کردن عکس وجود دارد که دو نسخه با کیفیت‌های معمولی و HD را در اختیار شما قرار می‌‌دهد.`}),l($,{img:`./guide-images/add-signature/addSignature_3.jpg`}),l(Q,{children:`پس از ذخیره فایل png تصویر امضا، به صفحه اطلاعات کاربری در سیستم ابری آوات بروید و تب مدیریت امضا را فعال کنید. سپس «اضافه کردن امضا» را بزنید.`}),l($,{img:`./guide-images/add-signature/addSignature_4.jpg`}),l(Q,{children:`به این ترتیب فایل امضای شما در سیستم بارگذاری می‌شود و به‌صورت خودکار، در نامه‌هایی که شما امضاکننده آنها هستید، درج می‌شود.`}),l($,{img:`./guide-images/add-signature/addSignature_5.jpg`})]})},cm=()=>d(`div`,{children:[l(nm,{title:`اطلاعات تکمیلی`}),l(Q,{children:`ممکن است بعد از امضا و شماره کردن نامه، نیاز داشته باشید اطلاعات و مدارکی که مرتبط با آن نامه هست را ثبت کنید.`}),l(Q,{children:`برای این کار در کارتابل جاری، نامه‌ی شماره شده‌ی مدنظرتان را انتخاب کنید. در بالای صفحه، چک‌ مارک اطلاعات تکمیلی را فعال تا بخش مرتبط با آن به شما نمایش داده شود. در بخش اطلاعات تکمیلی، با کلیک کردن روی دکمه انتخاب فایل ضمیمه، می‌توانید فایل موردنظر را انتخاب و آپلود کنید.`}),l($,{img:`./guide-images/additional-attachments/additional_attachments.jpg`})]}),lm=()=>d(`div`,{children:[l(nm,{title:`اختصاص دادن سمت به کارمندان سازمان`}),l(Q,{children:`بعد از این که کاربر پیغام افزوده شدن به سازمان شما را دریافت و تایید کند، می‌توانید به او سمت اختصاص بدهید. برای این کار وارد سیستم ابری آوات شوید و روی نام سازمان کلیک کنید.`}),l($,{img:`./guide-images/assign-position/assignPosition_1.jpg`}),l(Q,{children:`در صفحه میز کار سازمان، از ستون سمت راست، روی گزینه کارمندان کلیک کنید.`}),l($,{img:`./guide-images/assign-position/assignPosition_2.jpg`}),l(Q,{children:`همانطور که در تصویر مشاهده می‌کنید، با پذیرش کاربر، مقدار ستون وضعیت به فعال تغییر کرده و آیکون آن به رنگ سبز درآمده است، اما ستون سمت خالی است. برای اختصاص سمت به کارمند، روی نام او کلیک کنید تا وارد صفحه ویرایش کارمند شوید.`}),l($,{img:`./guide-images/assign-position/assignPosition_3.jpg`}),l(Q,{children:`در صفحه ویرایش کارمند، روی دکمه اختصاص سمت در پایین و سمت راست کلیک کنید.`}),l($,{img:`./guide-images/assign-position/assignPosition_4.jpg`}),l(Q,{children:`با این کار پنجره سمت‌ها باز می‌شود و می‌توانید سمت موردنظر را انتخاب کنید. با کلیک کردن روی سمت، رنگ آن به آبی تغییر می‌کند. حالا روی دکمه ثبت کلیک کنید.`}),l($,{img:`./guide-images/assign-position/assignPosition_5.jpg`}),l(Q,{children:`با ذخیره تغییرات، به صفحه ویرایش کارمند بازمی‌گردید. سمتی که برای کارمند موردنظر انتخاب کرده‌اید، در پایین و سمت چپ نمایش داده می‌شود. لازم به ذکر است که می‌توانید به یک کارمند، بیش از یک سمت اختصاص بدهید و یکی از سمت‌ها را به عنوان سمت اصلی انتخاب کنید. پس از پایان مراحل، گزینه ثبت تغییرات را بزنید.`}),l($,{img:`./guide-images/assign-position/assignPosition_6.jpg`}),l(Q,{children:`مراحل اختصاص سمت به کارمند با موفقیت انجام شده و مقدار ستون سمت به کارشناس تغییر کرده است.`}),l($,{img:`./guide-images/assign-position/assignPosition_7.jpg`})]}),um=()=>d(`div`,{children:[l(nm,{title:`اختصاص سمت به مالک سازمان`}),l(Q,{children:`یکی از مراحل تکمیل اطلاعات کاربری به‌عنوان مالک سازمان، افزودن خودتان به سازمان و اختصاص سمت به خودتان است. برای این کار وارد سیستم ابری آوات شوید و روی نام سازمان کلیک کنید.`}),l($,{img:`./guide-images/AssignPositionManagerOrganaze/AssignPositionManagerOrganaze_1.jpg`}),l(Q,{children:`در صفحه میز کار سازمان، از ستون سمت راست، روی گزینه کارمندان کلیک کنید.`}),l($,{img:`./guide-images/AssignPositionManagerOrganaze/AssignPositionManagerOrganaze_2.jpg`}),l(Q,{children:`ابتدا دکمه «افزودن کارمند» را بزنید و خودتان را با نام کاربری به سازمان اضافه کنید. سپس برای اختصاص سمت، در لیست کارمندان روی نام خودتان کلیک کنید تا به صفحه ویرایش کارمند بروید.`}),l($,{img:`./guide-images/AssignPositionManagerOrganaze/AssignPositionManagerOrganaze_3.jpg`}),l(Q,{children:`در صفحه ویرایش کارمند، روی دکمه اختصاص سمت در پایین و سمت راست کلیک کنید.`}),l($,{img:`./guide-images/AssignPositionManagerOrganaze/AssignPositionManagerOrganaze_4.jpg`}),l(Q,{children:`با این کار پنجره سمت‌ها باز می‌شود و می‌توانید سمت موردنظر را انتخاب کنید. با کلیک کردن روی سمت، رنگ آن به آبی تغییر می‌کند. حالا روی دکمه ثبت کلیک کنید.`}),l($,{img:`./guide-images/AssignPositionManagerOrganaze/AssignPositionManagerOrganaze_5.jpg`}),l(Q,{children:`با ذخیره تغییرات، به صفحه ویرایش کارمند بازمی‌گردید. سمتی که برای خودتان به عنوان مالک سازمان انتخاب کرده‌اید، در پایین و سمت چپ نمایش داده می‌شود. لازم به ذکر است که می‌توانید به خودتان بیش از یک سمت اختصاص بدهید و یکی از سمت‌ها را به عنوان سمت اصلی انتخاب کنید. پس از پایان مراحل، گزینه ثبت تغییرات را بزنید.`}),l($,{img:`./guide-images/AssignPositionManagerOrganaze/AssignPositionManagerOrganaze_6.jpg`}),l(Q,{children:`مراحل اختصاص سمت با موفقیت انجام شده و مقدار ستون سمت به کارشناس تغییر کرده است.`}),l($,{img:`./guide-images/AssignPositionManagerOrganaze/AssignPositionManagerOrganaze_7.jpg`})]}),dm=()=>d(`div`,{children:[l(nm,{title:`لغو نامه`}),l(Q,{children:`هر کارمند دارای اعتبار مکاتبات، می‌تواند نامه‌های شماره نشده‌ای را که در کارتابل خود مشاهده می‌کند، لغو کند. فقط نامه‌ای را می‌شود لغو کرد که شماره نشده باشد و پس از لغو شدن، نمی‌توان آن نامه را مجدداً به جریان انداخت. در صورتی که نامه امضا شده باشد، فقط کسانی که در لیست امضاکنندگان آن هستند، می‌توانند لغوش کنند.`}),l(Q,{children:`برای لغو کردن یک نامه، وارد کارتابل خود شوید و روی نامه‌ای که می‌خواهید آن را لغو کنید، کلیک کنید.`}),l($,{img:`./guide-images/cancel-letter/cancel-_letter_1.jpg`}),l(Q,{children:`در صفحه ویرایش نامه، روی گزینه «لغو» در پایین صفحه کلیک کنید.`}),l($,{img:`./guide-images/cancel-letter/cancel-_letter_2.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، می‌توانید در مورد دلیل لغو نامه توضیحات لازم را تایپ کنید. این توضیحات در وضعیت و سوابق نامه مشاهده می‌شود و کارمندان دیگری که این نامه را در کارتابل خود دارند، می‌توانند دلیل لغو آن را مشاهده کنند. پس از درج توضیحات، دکمه «لغو نامه» را بزنید.`}),l($,{img:`./guide-images/cancel-letter/cancel-_letter_3.jpg`}),l(Q,{children:`با این کار یک پیام دریافت می‌کنید که لغو شدن نامه را اعلام می‌کند.`}),l($,{img:`./guide-images/cancel-letter/cancel-_letter_4.jpg`}),l(Q,{children:`همانطور که در تصویر زیر مشاهده می‌کنید، وضعیت نامه به لغو شده تغییر کرده و توضیحات لغو هم در این پنجره و هم در سوابق نامه قابل مشاده است.`}),l($,{img:`./guide-images/cancel-letter/cancel-_letter_5.jpg`})]}),fm=()=>d(`div`,{children:[l(nm,{title:`لغو جلسه`}
1466),l(Q,{children:`اگر بعد از ثبت یک جلسه از برگزار کردن آن منصرف شدید، می‌توانید جلسه را لغو کنید تا سایر کارمندان سازمان بدانند این جلسه دیگر برگزار نمی‌شود. برای لغو جلسه، در لیست جلسات یا در تقویم روی جلسه موردنظرتان کلیک کنید تا پنجره ویرایش آن باز شود. در پایین و سمت راست پنجره روی دکمه لغو جلسه کلیک کنید.`}),l($,{img:`./guide-images/cancel-meeting/cancelMeeting2.png`}),l(Q,{children:`در پنجره لغو جلسه، دکمه لغو را بزنید. می‌توانید قبل از زدن دکمه لغو، توضیحات لازم را هم وارد کنید تا سایر کارمندان از دلیل لغو جلسه مطلع شوند.`}),l($,{img:`./guide-images/cancel-meeting/cancelMeeting4.png`}),l(Q,{children:`اگر جلسه‌ای که لغو می‌کنید تکرارپذیر باشد، می‌توانید انتخاب کنید که فقط همین جلسه لغو شود یا جلسات بعد از آن هم لغو شوند.`}),l($,{img:`./guide-images/cancel-meeting/cancelMeeting5.png`}),l(Q,{children:`پس از لغو جلسه، امکان ویرایش مشخصات آن وجود ندارد.`}),l($,{img:`./guide-images/cancel-meeting/cancelMeeting7.png`}),l(Q,{children:`اطلاعات لغو جلسه شامل کسی که جلسه را لغو کرده، زمان لغو جلسه و توضیحات، در سوابق جلسه نمایش داده می‌شود.`}),l($,{img:`./guide-images/cancel-meeting/cancelMeeting9.png`}),l(Q,{children:`هر جلسه‌ای که لغو می‌شود، دیگر در لیست یا تقویم جلسات نمایش داده نمی‌شود. برای مشاهده جلسه‌های لغو شده، مطابق تصویر زیر، روی آیکون فیلتر کلیک کنید و سپس تیک کنار گزینه نمایش لغو شده‌ها را بزنید. با این کار، جلسه‌های لغو شده با رنگ قرمز نمایش داده می‌شوند.`}),l($,{img:`./guide-images/cancel-meeting/cancelMeeting10.png`})]}),pm=()=>d(`div`,{children:[l(nm,{title:`کارتابل`}),l(Q,{children:`برای ارسال و دریافت نامه‌ها و سایر مکاتبات سازمانی، لازم است وارد کارتابل سازمان شوید. برای وارد شدن به کارتابل، در میز کار سارزمان روی گزینه مکاتبات کلیک کنید.`}),l($,{img:`./guide-images/cartable/cartable_1.jpg`}),l(Q,{children:`در کارتابل، به‌صورت پیش‌فرض هفت ستون برای نمایش مشخصات نامه‌ها (شامل موضوع، فرستنده، گیرندگان، نوع نامه، زمان ثبت و وضعیت امضاها) در نظر گرفته شده است. با کلیک کردن روی آیکون چرخ‌دنده در بالا و سمت چپ، می‌توانید ترتیب این ستون‌ها را عوض کنید و چند ستون دیگر را هم فعال کنید.`}),l($,{img:`./guide-images/cartable/cartable_2.jpg`}),l(Q,{children:`همانطور که در تصویر مقابل می‌بینید، سایر ستون‌ها به‌صورت پیش‌فرض غیرفعال هستند که با زدن چک‌مارک، می‌توانید آنها را فعال کنید. پس از ثبت تغییرات و برگشتن به کارتابل، ستون‌های جدید هم نمایش داده می‌شوند.`}),l($,{img:`./guide-images/cartable/cartable_3.jpg`}),l(Q,{children:`همچنین می‌توانید ترتیب این ستون‌ها را به دلخواه خود تغییر بدهید. برای این کار، روی ردیف موردنظر کلیک کنید و نگه دارید و با تکان دادن موس (drag and drop) جای ردیف را تغییر بدهید. سپس دکمه ثبت تغییرات را بزنید تا به کارتابل برگردید.`}),l($,{img:`./guide-images/cartable/cartable_4.jpg`}),l(Q,{children:`از آنجا که به هر کارمند می‌توان بیش از یک سمت اختصاص داد، صفحه کارتابل هم به صورت چند سمتی طراحی شده است تا با انتخاب هر سمت بتوان نامه‌های متناظر آن سمت را مشاهده کرد. اگر بیش از یک سمت سازمانی دارید، برای مشاهده نامه‌های هر سمت، در بالا و سمت راست صفحه، روی فیلد سمت کلیک کنید تا همه سمت‌ها نمایش داده شود. سپس سمت موردنظر را انتخاب کنید.`}),l($,{img:`./guide-images/cartable/cartable_5.jpg`}),l(Q,{children:`در سیستم ابری آوات نامه‌ها در سه دسته اصلی در آوات دسته‌بندی می‌شوند:`}),l(Q,{children:`کارتابل: شامل نامه‌هایی که خود کاربر ایجاد کرده و یا به او ارجاع شده‌اند و خود شامل دو دسته است:`}),l(Q,{children:`جاری: شامل لیست نامه‌های به گردش در نیامده و ارجاع شده به کاربر`}),l(Q,{children:`بسته شده: شامل لیست نامه‌های «مختومه» و «لغو» شده`}),l(Q,{children:`ارجاع شده: لیستی از نامه‌هایی که کاربر به دیگران ارجاع داده است`}),l(Q,{children:`رسیده شده:‌ لیستی از نامه‌هایی که حداقل یک بار از کارتابل کاربر رد شده‌اند و برای آن‌ها رسید ارسال ثبت کرده است`})]}),mm=()=>d(`div`,{children:[l(nm,{title:`چت سازمانی`}),d(Q,{children:[`راهکار `,l(`span`,{style:{fontWeight:`bold`},children:` «چت سازمانی» `}),` در آوات، بستری امن و یکپارچه برای ارتباطات کاری سریع و قابل‌پیگیری است. با استفاده از این ابزار، تمام گفتگوهای تیمی و سازمانی در فضایی متمرکز انجام می‌شود؛ فضایی که در آن می‌توانید پیام بفرستید، فایل و تصویر به اشتراک بگذارید، از وضعیت آنلاین بودن همکاران مطلع شوید و از رسیدن پیام‌های مهم خود اطمینان حاصل کنید.`]}),l(Q,{children:`به کمک چت سازمانی آوات، گفتگوها از حالت پراکنده خارج شده و تمامی هماهنگی‌ها و تصمیمات در یک مسیر واضح و قابل‌ردیابی قرار می‌گیرند. تاریخچه کامل مکالمات همیشه در دسترس شماست تا هر زمان که نیاز داشتید، به تصمیم‌ها و سوابق گفتگوها بازگردید.`}),l(Q,{children:`تمام کاربران ثبت‌نام‌شده در آوات که عضو یک سازمان هستند، می‌توانند از راهکار «چت سازمانی» استفاده کنند. این ویژگی برای تمامی اعضای سازمان، از مدیران تا کارکنان، فعال است و به افزایش سرعت هماهنگی و کیفیت همکاری در سطح مجموعه کمک می‌کند.`}),l(Q,{children:`برای شروع استفاده از این راهکار، ابتدا وارد «میز کار» شوید.`}),l($,{img:`./guide-images/chat/chat-1.jpg`}),l(Q,{children:`دسترسی به چت سازمانی از دو مسیر امکان‌پذیر است:`}),l(Q,{children:`• آیکون «چت» در نوار بالای صفحه (در کنار گزینه چک‌لیست).`}),l(Q,{children:`• منوی راهکارها در سمت راست صفحه.`}),l($,{img:`./guide-images/chat/chat-2.png`}),l(Q,{children:`با کلیک روی هر یک از این گزینه‌ها، وارد فضای چت سازمانی می‌شوید. نمای این صفحه به‌گونه‌ای طراحی شده است که لیست مخاطبینی که با آن‌ها گفتگو کرده‌اید در سمت راست به‌صورت ستونی نمایش داده شده و محتوای هر گفتگو در بخش مستطیلی سمت چپ قابل مشاهده است.`}),l($,{img:`./guide-images/chat/chat-3.png`}),l(Q,{children:`ایجاد چت جدید`}),l(Q,{children:`برای آغاز یک گفتگوی جدید، کافی است روی گزینه بنفش‌رنگ «+» که در پایین صفحه، سمت راست قرار دارد کلیک کنید:`}),l($,{img:`./guide-images/chat/chat-4.png`}),l(Q,{children:`پس از کلیک، صفحه‌ای برای شما باز می‌شود که می‌توانید از طریق آن، نام همکار موردنظر خود را در لیست کارمندان جستجو کنید. با انتخاب نام فرد از لیست، صفحه گفتگو با آن کاربر، برای شما فعال می‌شود. (توجه داشته باشید که برای برقراری ارتباط، هر عضو سازمان باید دسترسی لازم به راهکار چت سازمانی را داشته باشد).`}),l($,{img:`./guide-images/chat/chat-5.png`}),l(Q,{children:`با کلیک بر روی هر کارمند، شما امکان گفتگو با او را پیدا می‌کنید.`}),l($,{img:`./guide-images/chat/chat-6.png`}),l(Q,{children:`پس از نوشتن و ارسال اولین پیام، این گفتگو به لیست چت‌های شما در ستون سمت راست اضافه می‌شود. لازم به ذکر است که آخرین گفتگوها همیشه در ابتدای لیست قرار می‌گیرند تا دسترسی به آن‌ها سریع‌تر و آسان‌تر باشد.`}),l($,{img:`./guide-images/chat/chat-7.png`}),l($,{img:`./guide-images/chat/chat-8.png`}),d(Q,{children:[`مشابه الگوی پیام‌رسان‌های معمول، علامت یک تیک، بیانگر ارسال موفق(`,l(`span`,{style:{fontWeight:`bold`},children:`ارسال‌شده`}),`)، دو تیک عادی بیانگر آنلاین‌بودن کاربر(`,l(`span`,{style:{fontWeight:`bold`},children:`تحویل‌داده‌شده`}),`) و علامت دو تیک سبز، بیانگر دیده‌شدن پیام توسط مخاطب شماست(`,l(`span`,{style:{fontWeight:`bold`},children:`خوانده‌شده`}),`).`]})]}),hm=()=>d(`div`,{children:[l(nm,{title:`تبدیل نامه صادره به فایل xml`}),l(Q,{children:`در سیستم ابری آوات، نامه صادره به نامه‌ای گفته می‌شود که فرستنده و امضاکننده آن، کارمندان سازمان شما و گیرنده آن مخاطبان سازمان شما هستند. برای این که سازمان مخاطب، نامه صادره شما را در سیستم خود به عنوان یک نامه وارده ثبت کند، می‌توانید نامه را در قالب فایل xml برای مخاطب ارسال کنید. برای تبدیل نامه صادره به فایل xml، در کارتابل روی ردیف نامه‌ای که به ثبت رسیده و امضا و شماره شده، کلیک کنید تا وارد صفحه ویرایش نامه شوید.`}),l($,{img:`./guide-images/convert-to-xml/convertToXML_1.jpg`}),d(Q,{children:[`در صفحه ویرایش نامه، روی گزینه «بیشتر» در پایین و سمت راست صفحه کلیک کنید.`,` `]}),l($,{img:`./guide-images/convert-to-xml/convertToXML_2.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، روی گزینه «دریافت فرمت ECE» کلیک کنید. پس از چند ثانیه یک فایل xml حاوی مشخصات Ù
1466†Ø§Ù…Ù‡ به صورت خودکار دانلود و روی سیستم شما ذخیره می‌شود.`}),l($,{img:`./guide-images/convert-to-xml/convertToXML_3.jpg`}),l(Q,{children:`این فایل را برای سازمان گیرنده نامه ارسال کنید تا بتواند از طریق گزینه ثبت نامه ECE، آن را به یک نامه وارده تبدیل کند.`}),l($,{img:`./guide-images/convert-to-xml/convertToXML_4.jpg`}),l(Q,{children:`گیرنده نامه که مخاطب سازمان شما است، باید در سیستم سازمان مخاطب، با همان اسم و سمت، به عنوان کارمند ثبت شده باشد. همچنین سازمان مخاطب باید یک مخاطب با اسم و مشخصات فرستنده نامه (کارمند سازمان شما) در سیستم خود ثبت کرده باشد.`}),l(Q,{children:`در غیر این صورت فرایند تبدیل فایل xml به نامه وارده در سازمان مخاطب با موفقیت انجام نخواهد شد.`})]}),gm=()=>d(`div`,{children:[l(nm,{title:`راهبران مکاتبات`}),l(Q,{children:`یکی از نقش‌هایی که به عنوان مالک سازمان می‌توانید به کاربران دیگر اختصاص بدهید، راهبر مکاتبات است. راهبران مکاتبات از بین کاربران مکاتبات انتخاب می‌شوند و سطح دسترسی آنها بالاتر است. برای اختصاص سمت راهبر مکاتبات به کارمندان سازمان، وارد سازمان موردنظر شوید.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_1.jpg`}),l(Q,{children:`در میز کار سازمان، روی گزینه «راهکارهای آوات» کلیک کنید.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_2.jpg`}),l(Q,{children:`در بخش سرویس‌های فعال، روی دکمه تنظیمات راهکارها کلیک کنید. صرف‌نظر از این که از طرح رایگان یک ماهه استفاده می‌کنید یا سرویس آوات را خریداری کرده‌اید، این گزینه در دسترس شما خواهد بود.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_3.jpg`}),l(Q,{children:`در صفحه کاربران، از ستون سمت راست روی گزینه «راهبران مکاتبات» کلیک کنید.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_4.jpg`}),l(Q,{children:`در صفحه راهبران مکاتبات، روی فیلد یا آیکون فلش در سمت چپ آن کلیک کنید تا لیست کاربران مکاتبات باز شود.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_5.jpg`}),l(Q,{children:`برای این که یک کارمند را به لیست راهبران مکاتبات اضافه کنید، روی گزینه «افزودن» در مقابل نام او کلیک کنید.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_6.jpg`}),l(Q,{children:`بعد از ایجاد دسترسی، گزینه «افزودن» به «حذف» تغییر می‌کند و نام کارمند به لیست کارمندان دارای دسترسی اضافه می‌شود. برای گرفتن دسترسی راهبری مکاتبات از کارمند، می‌توانید در همین مرحله گزینه حذف را بزنید.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_7.jpg`}),l(Q,{children:`برای گرفتن دسترسی به مکاتبات، همچنین می‌توانید در لیست کارمندان دارای دسترسی به مکاتبات، در مقابل نام هر کارمند روی گزینه حذف کلیک کنید. برای مشاهده دسترسی‌های راهبران مکاتبات، در همین صفحه روی گزینه «مشاهده دسترسی‌ها» کلیک کنید.`}),l($,{img:`./guide-images/Correspondence-admin/Correspondence_admin_8.jpg`})]}),eee=()=>d(`div`,{children:[l(nm,{title:`افزودن کاربر به مکاتبات`}),l(Q,{children:`بعد از این که کاربران دیگر آوات را به عنوان کارمند، به سازمان اضافه کردید، در گام بعدی لازم است تعیین کنید که کدام کارمندان به مکاتبات دسترسی داشته باشند. برای این کار وارد سازمان موردنظر شوید.`}),l($,{img:`./guide-images/correspondence-users/correspondence_users_1.jpg`}),l(Q,{children:`در میز کار سازمان، از ستون سمت راست روی گزینه مکاتبات کلیک کنید.`}),l($,{img:`./guide-images/correspondence-users/correspondence_users_2.jpg`}),l(Q,{children:`در بخش سرویس‌های فعال، روی دکمه تنظیمات راهکارها کلیک کنید. صرف‌نظر از این که از طرح رایگان یک ماهه استفاده می‌کنید یا سرویس آوات را خریداری کرده‌اید، این گزینه در دسترس شما خواهد بود.`}),l($,{img:`./guide-images/correspondence-users/correspondence_users_3.jpg`}),l(Q,{children:`در این صفحه، روی فیلد افزودن کاربر به مکاتبات کلیک کنید تا لیست کارمندان باز شود. دقت کنید که حتماً باید برای کارمندانی که قصد دارید به مکاتبات اضافه کنید، سمت تعریف کرده باشید. در غیر این صورت با پیغام خطا مواجه خواهید شد.`}),l($,{img:`./guide-images/correspondence-users/correspondence_users_4.jpg`}),l(Q,{children:`در مقابل نام هر کارمند، گزینه افزودن را بزنید. با این کار کارمند موردنظر به مکاتبات سازمان دسترسی خواهد داشت.`}),l($,{img:`./guide-images/correspondence-users/correspondence_users_5.jpg`}),l(Q,{children:`بعد از ایجاد دسترسی، گزینه «افزودن» به «حذف» تغییر می‌کند و نام کارمند به لیست کارمندان دارای دسترسی اضافه می‌شود. برای گرفتن دسترسی مکاتبات از کارمند، می‌توانید در همین مرحله گزینه حذف را بزنید.`}),l($,{img:`./guide-images/correspondence-users/correspondence_users_6.jpg`}),l(Q,{children:`برای گرفتن دسترسی به مکاتبات، همچنین می‌توانید در لیست کارمندان دارای دسترسی به مکاتبات، در مقابل نام هر کارمند روی گزینه حذف کلیک کنید.`}),l($,{img:`./guide-images/correspondence-users/correspondence_users_7.jpg`})]}),tee=()=>d(`div`,{children:[l(nm,{title:`ایجاد مخاطبان`}),l(Q,{children:`در سیستم ابری آوات، مخاطب به کسی گفته می‌شود که در سازمان دیگری که با شما مکاتبه دارد، مشغول به کار است. برای ارسال نامه به سازمان دیگر یا دریافت نامه از آن، لازم است کارمندان آن سازمان را به عنوان مخاطب در سازمان خود ایجاد کنید. برای این کار، پس از ورود به سیستم، روی نام سازمان خود کلیک کنید تا وارد میز کار شوید.`}),l($,{img:`./guide-images/create-contacts/createContacts_1.jpg`}),l(Q,{children:`پس از ورود به میز کار، از ستون سمت راست، روی گزینه مدیریت مخاطبان کلیک کنید.`}),l($,{img:`./guide-images/create-contacts/createContacts_2.jpg`}),l(Q,{children:`در این صفحه می‌توانید با کلیک کردن روی گزینه ایجاد مخاطب، اطلاعات مخاطب را وارد و ثبت کنید.`}),l($,{img:`./guide-images/create-contacts/createContacts_3.jpg`}),l(Q,{children:`در صفحه ایجاد مخاطب، اطلاعات موردنیاز را وارد کنید و سپس گزینه ایجاد مخاطب را بزنید. فیلد نام تجاری، نام شرکت دریافت‌کننده نامه است و فیلد توضیحات می‌تواند شامل شرح وظایف مخاطب باشد.`}),l($,{img:`./guide-images/create-contacts/createContacts_4.jpg`}),l(Q,{children:`با کلیک کردن روی گزینه ایجاد مخاطب، به صفحه قبلی بازمی‌گردید و می‌توانید برای ایجاد مخاطبان بیشتر، همین فرایند را تکرار کنید. برای ویرایش اطلاعات هر مخاطب هم کافی است روی نام آن کلیک کنید.`}),l($,{img:`./guide-images/create-contacts/createContacts_5.jpg`})]}),nee=()=>d(`div`,{children:[l(nm,{title:`ثبت نامه ECE`}),l(Q,{children:`در سیستم آوات، نامه وارده به نامه‌ای گفته می‌شود که فرستنده و امضاکننده آن مخاطبان سازمان شما و گیرنده آن کارمندان سازمان شما هستند. نامه‌های وارده را می‌توانید از طریق دریافت و ایمپورت فایل xml در کارتابل سازمان ثبت کنید. یعنی سازمان فرستنده نامه را به فایل xml تبدیل می‌کند و برای شما ارسال می‌کند تا از طریق گزینه «ثبت نامه ECE»، آن را به یک نامه وارده تبدیل کنید. برای این کار در کارتابل، روی گزینه ایجاد نامه جدید کلیک کنید.`}),l($,{img:`./guide-images/create-ece-letter/createEceLetter_1.jpg`}),l(Q,{children:`از منویی که باز می‌شود، روی گزینه چهارم (ثبت نامه ECE) کلیک کنید.`}),l($,{img:`./guide-images/create-ece-letter/createEceLetter_2.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، روی دکمه انتخاب فایل XML کلیک کنید و فایل XML را که از سازمان مخاطب دریافت کرده‌اید، انتخاب کنید تا آپلود شود.`}),l($,{img:`./guide-images/create-ece-letter/createEceLetter_3.jpg`}),l(Q,{children:`همانطور که در تصویر مشاهده می‌کنید، فایل آپلود شده و نام آن در پنجره نمایش داده می‌شود. حالا دکمه «ایجاد نامه» را بزنید. با آپلود شدن فایل xml، یک صفحه ایجاد نامه وارده باز می‌شود که اطلاعات نامه در فیلدهای آن وارد شده است. روی گزینه «ذخیره» کلیک کنید.`}),l($,{img:`./guide-images/create-ece-letter/createEceLetter_4.jpg`}),l(Q,{children:`با ذخیره نامه وارده، به کارتابل برمی‌گردید و نامه در کارتابل نامه‌های جاری قابل مشاهده خواهد بود.`}),l($,{img:`./guide-images/create-ece-letter/createEceLetter_5.jpg`})]}),ree=()=>d(`div`,{children:[l(nm,{title:`ایجاد اندیکاتور`}),l(Q,{children:`اگر از دبیرخانه پیش‌فرض استفاده کنید، به صورت خودکار یک اندیکاتور پیش‌فرض در آن وجود دارد. اما امکان ایجاد اندیکاتور و شخصی‌سازی آن بر اساس نیاز سازمان هم وجود دارد.`}),l($,{img:`./guide-images/create-indicator/createIndicator_1.jpg`}),l(Q,{children:`پس از ورود به کارتابل، در پایین و سمت راست صفحه، روی دبیرخانه‌ها کلیک کنید.`}),l($,{img:`./guide-images/create-indicator/createIndicator_2.jpg`}),l(Q,{children:`روی نام دبیرخانه‌ای که می‌خواهید برای آن اندیکاتور بسازید، کلیک کنید.`}),l($,{img:`./guide-images/create-indicator/createIndicator_3.jpg`}),l(Q,{children:`در این مرحله به صورت پیش‌فرض وارد تب اطلاعات دبیرخانه می‌شوید. روی تب اندیکاتور کلیک کنید تا در حالت فعال قرار بگیرد.`}),l($,{img:`./guide-images/create-indicator/createIndicator_4.jpg`}),l(Q,{children:`در این صفحه یک اندیکاتور پیش‌فرض وجود دارد. اما همانطور که گفتیم، ما قصد داریم یک اندیکاتور خصوصی‌سازی شده برای سازمان ایجاد کنیم. برای این کار روی گزینه ایجاد اندیکاتور کلیک کنید.`}),l($,{img:`./guide-images/create-indicator/createIndicator_5.jpg`}),l(Q,{children:`در این صفحه برخلاف اندیکاتور پیش‌فرض، می‌توانید همه مشخصات اندیکاتور را ویرایش کنید. نام و کد اندیکاتور را وارد کنید و اولین و آخرین شماره مسلسل را انتخاب کنید. اولین شماره مسلسل به سیاست سازمان و آخرین شماره مسلسل به حجم مکاتبات شما بستگی دارد. مثلا ممکن است بخواهید اولین شماره مسلسل یک‌رقمی یا سه‌رقمی باشد.`}),l($,{img:`./guide-images/create-indicator/createIndicator_6.jpg`}),l(Q,{children:`یکی دیگر از مشخصات اندیکاتور، دوره تکرار شدن شمارنده مسلسل است. این دوره را بر اساس سیاست سازمان، می‌توانید ماهانه یا سالانه در نظر بگیرید. در این صورت بعد از به پایان رسیدن ماه یا سال، شماره مسلسل صفر می‌شود و مجدداً از اولین شماره مسلسل شروع می‌شود. اگر گزینه بدون ریست را انتخاب کنید، لازم است آخرین شماره مسلسل را عدد بزرگ‌تری در نظر بگیرید.`}),l($,{img:`./guide-images/create-indicator/createIndicator_7.jpg`}),l(Q,{children:`در پایین صفحه، می‌توانید قالب شماره نامه را به دلخواه خود ایجاد کنید. با کلیک کردن روی آیکون‌های به علاوه در سمت راست یا چپ شماره مسلسل، می‌توانید از سیلاب‌های دیگری از جمله جداکننده، سال (چهاررقمی یا دورقمی)، ماه (یک رقمی یا دورقمی) و کد دبیرخانه یا اندیکاتور استفاده کنید. توجه کنید که شماره نامه از چپ به راست خوانده می‌شود. برای پاک کردن هر سیلاب هم روی آیکون سطل زباله در کنار آن کلیک کنید.`}),l($,{img:`./guide-images/create-indicator/createIndicator_8.jpg`}),l(Q,{children:`یکی از سیلاب‌هایی که می‌توانید به قالب شماره نامه اضافه کنید، متن ثابت نام دارد. روی این سیلاب کلیک کنید و سپس کلمه موردنظر خود را در فیلد متن آن تایپ کنید. اگر علامت ضربدر را بزنید، این سیلاب خذف می‌شود و اگر روی چک‌مارک کلیک کنید، سیلاب متنی به قالب شماره نامه اضافه می‌شود.`}),l($,{img:`./guide-images/create-indicator/createIndicator_10.jpg`}),l(Q,{children:`پس از انتخاب سیلاب‌های قالب شماره نامه، خروجی نهایی آن به این شکل نمایش داده می‌شود. پس از اطمینان یافتن از قالب شماره نامه، روی دکمه ایجاد اندیکاتور کلیک کنید.`}),l($,{img:`./guide-images/create-indicator/createIndicator_12.jpg`}),l(Q,{children:`همانطور که در تصویر مقابل می‌بینید، اندیکاتور جدید ایجاد شده و از این پس در لیست اندیکاتورهای دبیرخانه مورد نظر نمایش داده می‌شود.`}),l($,{img:`./guide-images/create-indicator/createIndicator_13.jpg`}),l(Q,{children:`با کلیک کردن روی نام اندیکاتوری که ایجاد کرده‌اید، قالب نهایی شماره نامه را که به 
1466صورت خودکار روی همه‌ نامه‌های این دبیرخانه چاپ می‌شوند، خواهید دید.`}),l($,{img:`./guide-images/create-indicator/createIndicator_14.jpg`})]}),iee=()=>d(`div`,{children:[l(nm,{title:`ایجاد قالب چاپی نامه`}),l(Q,{children:`بعد از ایجاد دبیرخانه و اندیکاتور، در گام بعدی لازم است برای نامه‌ها حداقل یک قالب چاپی ایجاد کنید. برای این کار در میز کار سازمان، روی گزینه مکاتبات کلیک کنید تا وارد کارتابل شوید.`}),l($,{img:`./guide-images/create-layout-editor/createLayoutEditor_1.jpg`}),l(Q,{children:`در کارتابل سازمان، از پایین و سمت راست صفحه، روی گزینه دبیرخانه‌ها کلیک کنید.`}),l($,{img:`./guide-images/create-layout-editor/createLayoutEditor_2.jpg`}),l(Q,{children:`روی دبیرخانه‌ای که قصد دارید برای آن قالب چاپی بسازید، کلیک کنید.`}),l($,{img:`./guide-images/create-layout-editor/createLayoutEditor_3.jpg`}),l(Q,{children:`در صفحه جدید، تب سوم (قالب‌های چاپی) را فعال کنید و برای ساختن قالب، روی گزینه قالب چاپی جدید کلیک کنید.`}),l($,{img:`./guide-images/create-layout-editor/createLayoutEditor_5.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، می‌توانید نام قالب و اندازه صفحه را مشخص کنید. اگر تمایل دارید که این قالب به عنوان قالب پیش‌فرض برای همه مکاتبات شما شناخته شود، زبانه مقابل قالب پیش‌فرض را در حالت فعال قرار دهید و سپس روی دکمه ایجاد قالب کلیک کنید.`}),l($,{img:`./guide-images/create-layout-editor/createLayoutEditor_7.jpg`}),l(Q,{children:`در این مرحله قالب ایجاد می‌شود و در تب قالب‌های چاپی نمایش داده می‌شود. در مقابل نام قالب، دو آیکون قرار دارد. با کلیک کردن روی آیکون ویرایش اطلاعات قالب نامه، می‌توانید نام، اندازه صفحه و توضیحات قالب را ویرایش و ثبت کنید.`}),l($,{img:`./guide-images/create-layout-editor/createLayoutEditor_8.jpg`}),l(Q,{children:`آیکون دوم به ویرایش قالب نامه اختصاص دارد. با کلیک کردن روی این آیکون، شِمایی از یک نامه نمایش داده می‌شود که می‌توانید همه جزئیات آن را مطابق میل خود ویرایش کنید.`}),l($,{img:`./guide-images/create-layout-editor/createLayoutEditor_9.jpg`})]}),aee=()=>d(`div`,{children:[l(nm,{title:`نگارش نامه با هوش مصنوعی آوات`}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`هوش مصنوعی آوات`}),`، دستیار هوشمند شما در بخش «مکاتبات و نامه‌نگاری» است که تجربه‌ای سریع‌تر، دقیق‌تر و حرفه‌ای‌تر را برای شما فراهم می‌کند. با استفاده از این ابزار، می‌توانید در زمانی کوتاه و با صرف کمترین انرژی، نامه‌هایی متناسب با لحن موردنظر خود تنظیم و ارسال کنید.`]}),l(Q,{children:` برای بهره‌گیری از این قابلیت:`}),d(Q,{children:[`1-‌ وارد بخش `,l(`span`,{style:{fontWeight:`bold`},children:`«مکاتبات»`}),` شوید.`]}),d(Q,{children:[`2-‌ بر روی گزینه `,l(`span`,{style:{fontWeight:`bold`},children:`«ایجاد نامه جدید»`}),` کلیک کنید.`]}),d(Q,{children:[`3- بسته به نوع نامه، یکی از گزینه‌های`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«نامه داخلی»، «نامه ارسالی»`}),` یا`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«نامه وارده»`}),` را انتخاب کنید.`]}),l($,{img:`./guide-images/ai/ai-1.png`}),l(Q,{children:`به‌عنوان مثال، اگر قصد دارید یک نامه داخلی تنظیم کنید: `}),l(Q,{children:`پس از باز شدن صفحه ایجاد نامه، در قسمت باکس نگارش متن، روی آیکون هوش مصنوعی که در کنار فلش سبز قرار دارد، کلیک کنید.`}),l($,{img:`./guide-images/ai/ai-2.png`}),l(Q,{children:`با کلیک بر روی این آیکون، پنجره‌ای برای تنظیمات متن باز می‌شود.`}
1466),d(Q,{children:[`در این مرحله، یکی از دو لحن `,l(`span`,{style:{fontWeight:`bold`},children:`«رسمی»`}),` یا`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«دوستانه»`}),` را مطابق با نیاز خود انتخاب نمایید. سپس، درخواست خود را به‌صورت یک دستور (پرامپت) در کادر وارد کنید:`]}),l($,{img:`./guide-images/ai/ai-3.png`}),l(Q,{children:`برای مثال، اگر هدف شما نگارش نامه‌ای جهت درخواست تنخواه از معاونت مالی و اداری است، می‌توانید درخواست خود را به این شکل بنویسید:`}),l(Q,{children:`«برام یک نامه درخواست تنخواه از معاونت مالی و اداری بنویس»`}),d(Q,{children:[`و بعد بر روی گزینه `,l(`span`,{style:{fontWeight:`bold`},children:`«ایجاد متن نامه»`}),` کلیک کنید:`]}),l($,{img:`./guide-images/ai/ai-4.png`}),l(Q,{children:`پس از چند لحظه پردازش، هوش مصنوعی آوات متن پیشنهادی زیر را تولید کرده و در اختیار شما قرار می‌دهد:`}),l($,{img:`./guide-images/ai/ai-5.png`}),l(Q,{children:`در نهایت، شما می‌توانید متن تولید‌شده را بررسی کرده و در صورت نیاز، ویرایش‌های لازم را اعمال کنید و جاهای خالی متن را با اطلاعات مدنظر خود تکمیل کنید.`}),l(Q,{children:` `})]}),oee=()=>d(`div`,{children:[l(nm,{title:`ایجاد جلسه جدید`}),l(Q,{children:`برای ایجاد جلسه جدید، وارد کارتابل جلسات خود شوید و از بالا و سمت راست، روی «ایجاد جلسه جدید» کلیک کنید.`}),l($,{img:`./guide-images/create-meeting/createMeeting1.png`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، مشخصات جلسه را وارد کنید و دکمه ذخیره را بزنید. فیلدهای عنوان، تاریخ، محل و ساعت جلسه اجباری و بقیه فیلدها اختیاری هستند.`}),l($,{img:`./guide-images/create-meeting/createMeeting2.png`}),l(Q,{children:`تاریخ جلسه را می‌توانید از تقویم انتخاب کنید. با کلیک کردن روی فلش‌های سمت راست و چپ، می‌توانید ماه‌های قبل و بعد را ببینید. همچنین می‌توانید روی عدد سال یا نام ماه کلیک کنید و از لیستی که باز می‌شود، سال و ماه موردنظرتان را انتخاب کنید.`}),l($,{img:`./guide-images/create-meeting/createMeeting3.png`}),l(Q,{children:`مقدار فیلد محل جلسه را از بین مکان‌هایی که در مدیریت راهکار جلسات ثبت کرده‌اید، انتخاب کنید. دقت کنید که امکان وارد کردن محل جلسه به صورت دستی در این مرحله وجود ندارد.`}),l($,{img:`./guide-images/create-meeting/createMeeting4.png`}),l(Q,{children:`بعد از انتخاب محل برگزاری جلسه، با کلیک کردن روی آیکون مقابل آن یک پنجره باز می‌شود که اطلاعات بیشتری در مورد محل برگزاری جلسه به شما می‌دهد.`}),l($,{img:`./guide-images/create-meeting/createMeeting5.png`}),l(Q,{children:`در این پنجره با انتخاب یک تاریخ، می‌توانید وضعیت محل جلسه و ساعت‌های پر شده آن را مشاهده کنید. آدرس، لینک موقعیت و توضیحات هم اطلاعات دیگری هستند که در این پنجره نمایش داده می‌شوند.`}),l($,{img:`./guide-images/create-meeting/createMeeting6.png`}),l(Q,{children:`فیلد بعدی مربوط به تکرارپذیری جلسه است. هر جلسه را می‌توانید به صورت بدون تکرار تنظیم کنید. در این صورت جلسه فقط یک بار در تاریخی که خودتان تعیین کرده‌اید، ثبت می‌شود. اما برای تکرارپذیر کردن جلسه دو حالت وجود دارد.`}),l($,{img:`./guide-images/create-meeting/createMeeting7.png`}),l(Q,{children:`حالت اول برای تکرارپذیری جلسه، این است که زمان تکرار جلسه را بر اساس روزهای هفته تعیین کنید. در این حالت، جلسه هر هفته و در روزهایی از هفته که شما انتخاب می‌کنید، تکرار می‌شود. تاریخ پایان تکرار جلسه را هم می‌توانید از تقویم انتخاب کنید. در صورتی که فیلد تاریخ پایان تکرار را خالی بگذارید، جلسه به صورت نامحدود تکرار می‌شود.`}),l($,{img:`./guide-images/create-meeting/createMeeting8.png`}),l(Q,{children:`حالت دوم تکرارپذیری جلسه، این است که زمان تکرار جلسه را نه بر اساس روزهای هفته، بلکه بر اساس تاریخ انتخاب کنید. در این صورت جلسه در تاریخ‌هایی که انتخاب کرده‌اید، تکرار می‌شود.`}),l($,{img:`./guide-images/create-meeting/createMeeting9.png`}),l(Q,{children:`برای تعیین زمان برگزاری جلسه، روی دکمه «تعیین ساعت جلسه» کلیک کنید. در پنجره‌ای که باز می‌شود، می‌توانید زبانه «تمام روز» را در حالت فعال قرار دهید. همچنین می‌توانید ساعت شروع و پایان جلسه را به صورت دستی انتخاب کنید.`}),l($,{img:`./guide-images/create-meeting/createMeeting10.png`}),l(Q,{children:`روی فیلد ساعت شروع کلیک کنید تا پنجره تعیین زمان باز شود. در این پنجره می‌توانید زمان شروع جلسه را هر ساعتی از 24 ساعت شبانه روز تعیین کنید. بعد از انتخاب زمان شروع جلسه، دکمه تایید را بزنید تا پنجره بسته شود.`}),l($,{img:`./guide-images/create-meeting/createMeeting12.png`}),l(Q,{children:`زمان پایان جلسه را هم به همین صورت انتخاب کنید و دکمه تایید را بزنید.`}),l($,{img:`./guide-images/create-meeting/createMeeting11.png`}),l(Q,{children:`برای ساده‌تر شدن کار شما، می‌توانید بعد از تعیین کردن زمان شروع جلسه، یکی از مقدارهای پیش‌فرض مدت زمان را انتخاب کنید. یعنی اگر جلسه شما ساعت 15 شروع می‌شود و ساعت 17 به پایان می‌رسد، می‌توانید بعد از انتخاب ساعت شروع، مدت زمان جلسه را 2 ساعت تعیین کنید. در این صورت ساعت پایان جلسه به‌صورت خودکار روی 17 قرار می‌گیرد.`}),l($,{img:`./guide-images/create-meeting/createMeeting13.png`}),l(Q,{children:`فیلد بعدی که باید پر کنید، مدعوین جلسه است. مدعوین جلسه را می‌توانید از میان کارمندان سازمان یا از میان مخاطبان انتخاب کنید. برای این کار ابتدا «لیست کارمندان» را انتخاب کنید و بعد روی فیلد جستجو کلیک کنید تا لیست کارمندان باز شود. روی اسم هر کارمند که کلیک کنید، آن کارمند به لیست مدعوین اضافه می‌شود. برای انتخاب مدعوین جلسه از میان مخاطبان، ابتدا روی گزینه «لیست مخاطبان» کلیک کنید و سپس مخاطبان موردنظر را انتخاب کنید.`}),l($,{img:`./guide-images/create-meeting/createMeeting15.png`}),l(Q,{children:`نام کارمندان دعوت شده به جلسه با رنگ سبز، و نام مخاطبان دعوت شده با رنگ آبی نمایش داده می‌شود. برای حذف هر کارمند یا مخاطب هم روی آیکون ضربدر در مقابل آن کلیک کنید.`}),l($,{img:`./guide-images/create-meeting/createMeeting17.png`}),l(Q,{children:`یکی دیگر از امکانات راهکار جلسات آوات، امکان ضمیمه کردن پیوست در جلسات است. با ضمیمه کردن اسناد پیوست، مدعوین می‌توانند در هر لحظه به جدیدترین اسناد و مدارک پیوست شده دسترسی داشته باشند. برای Ù
1466‡Ø± جلسه می‌توانید بینهایت فایل ضمیمه کنید، اما حجم هر فایل باید کمتر از 15 مگابایت باشد.`}),l($,{img:`./guide-images/create-meeting/createMeeting18.png`}),l(Q,{children:`معمولاً برای اطلاع کسانی که به جلسه دعوت شده‌اند، یک دستورجلسه هم تنظیم می‌شود. دستورجلسه توضیح می‌دهد که چه کسانی در جلسه حضور دارند و چه موضوعاتی در جلسه مطرح می‌شود. در راهکار جلسات آوات، یک فیلد برای صورتجلسه در نظر گرفته شده است. متن دستورجلسه را می‌توانید در این فیلد متنی تایپ کنید. فیلد دستورجلسه به یک ویرایشگر حرفه‌ای مجهز است که همه امکانات ویرایش متن را دارد.`}),l($,{img:`./guide-images/create-meeting/createMeeting19.png`}),l(Q,{children:`آخرین فیلد اختیاری این پنجره، فیلد یادداشت است. هر موضوع دیگری که مدعوین قبل از حضور در جلسه لازم است از آن اطلاع داشته باشند، می‌توانید در این فیلد وارد کنید.`}),l($,{img:`./guide-images/create-meeting/createMeeting20.png`}),l(Q,{children:`بعد از این که از درستی اطلاعاتی که وارد کرده‌اید مطمئن شدید، دکمه ذخیره بزنید. با این کار جلسه ثبت می‌شود و در کارتابل شما و همچنین جلسات سازمان قابل مشاهده است.`}),l($,{img:`./guide-images/create-meeting/createMeeting21.png`})]}),see=()=>d(`div`,{children:[l(nm,{title:`ایجاد محل جلسه`}),l(Q,{children:`برای ایجاد محل جلسه، وارد کارتابل جلسات شوید و در پایین و سمت راست صفحه، «مدیریت راهکار جلسات» را بزنید.`}),l($,{img:`./guide-images/create-meeting-location/createMeetingLocation1.png`}),l(Q,{children:`در صفحه مدیریت راهکار جلسات، روی دکمه «ایجاد محل جلسه» کلیک کنید.`}),l($,{img:`./guide-images/create-meeting-location/createMeetingLocation2.png`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، اطلاعات محل جلسه را وارد کنید و سپس دکمه ذخیره بزنید. فیلد نام محل اجباری و بقیه فیلدها اختیاری هستند.`}),l($,{img:`./guide-images/create-meeting-location/createMeetingLocation4.png`}),l(Q,{children:`با زدن دکمه ذخیره، محل جلسه ثبت می‌شود و به لیست اضافه می‌شود.`}),l($,{img:`./guide-images/create-meeting-location/createMeetingLocation5.png`}),l(Q,{children:`بعد از ثبت محل جلسه، هنگام ایجاد یک جلسه جدید می‌توانید روی فیلد محل جلسه کلیک کنید تا لیست محل‌هایی که ثبت کرده‌اید باز شود و مکان موردنظر را از این لیست انتخاب کنید.`}),l($,{img:`./guide-images/create-meeting-location/createMeetingLocation6.png`}),l(Q,{children:`محل جلسه به صورت پیش‌فرض در حالت فعال قرار دارد. اما می‌توانید وضعیت آن را به غیرفعال تغییر بدهید. برای این کار روی محل جلسه موردنظرتان کلیک کنید و زبانه وضعیت را در حالت غیرفعال قرار دهید. با غیرفعال شدن محل جلسه، مقدار آن در فیلد محل جلسه نمایش داده نمی‌شود.`}),l($,{img:`./guide-images/create-meeting-location/createMeetingLocation7.png`})]}),cee=()=>d(`div`,{children:[l(nm,{title:`ایجاد سازمان`}),l(Q,{children:`همه مکاتبات شما در بستر سازمان انجام می‌شوند. بنابراین گام اول برای استفاده از سامانه مکاتبات آوات، ایجاد سازمان است. کسی که سازمان را ایجاد می‌کند، مالک آن سازمان خواهد بود. برای این کار پس از ورود به سیستم، مطابق تصویر روی گزینه ایجاد سازمان کلیک کنید.`}),l($,{img:`./guide-images/create-organization/createOrganization_1.jpg`}),l(Q,{children:`با انتخاب گزینه ایجاد سازمان، به صفحه جدیدی هدایت می‌شوید. در این صفحه می‌توانید عکس و مشخصات سازمان خود را وارد و ذخیره کنید.`}),l($,{img:`./guide-images/create-organization/createOrganization_2.jpg`}),l(Q,{children:`مطابق تصویر زیر، عکس پروفایل (لوگوی سازمان)، نام و شناسه سازمان، آدرس، شماره تلفن و شماره فکس را وارد کنید و ثبت سازمان را بزنید. هنگام وارد کردن اطلاعات، به قواعد هر فیلد توجه کنید.`}),l($,{img:`./guide-images/create-organization/createOrganization_3.jpg`}),l(Q,{children:`با کلیک کردن روی نام سازمان، می‌توانید کار با سیستم ابری آوات را شروع کنید. سازمانی که توسط شما ایجاد شده زیر عنوان سازمان‌های من نمایش داده می‌شود و شما مالک آن هستید. اگر مالک سازمان دیگری شما را به عنوان کارمند به سازمانش اضافه کند، نام آن سازمان در همین صفحه و زیرعنوان سازمان‌های عضو نمایش داده می‌شود.`}),l($,{img:`./guide-images/create-organization/createOrganization_4.jpg`})]}),lee=()=>d(`div`,{children:[l(nm,{title:`حذف مخاطب`}),l(Q,{children:`اگر مخاطبی دارید که هنوز نامه و یا جلسه‌ای را با آن ثبت نکرده باشید، می‌توانید آن را از لیست مخاطبان سازمان خود حذف کنید. برای حذف مخاطب، وارد صفحه مدیریت مخاطبان شوید. هر مخاطبی را که مدنظر دارید حذف کنید، روی آیکون سطل زباله مقابل آن کلیک کنید.`}),l($,{img:`./guide-images/delete-contact/delete_contact.jpg`})]}),uee=()=>d(`div`,{children:[l(nm,{title:`ویرایش قالب چاپی نامه`}),l(Q,{children:`بعد از ایجاد قالب چاپی در بخش مدیریت دبیرخانه‌ها، می‌توانید قالب نامه را ویرایش کنید. برای این کار:`}),d(Q,{children:[`1-‌ به صفحه `,l(`span`,{style:{fontWeight:`bold`},children:`«مدیریت دبیرخانه‌ها»`}),` بروید و دبیرخانه موردنظر را انتخاب کنید.`]}),d(Q,{children:[`2-‌ تب سوم (`,l(`span`,{style:{fontWeight:`bold`},children:`«قالب‌های چاپی»`}),`) را باز کنید.`]}),d(Q,{children:[`3-‌ در مقابل قالبی که می‌خواهید ویرایش کنید، روی آیکون`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«ویرایش قالب نامه»`}),` کلیک کنید.`]}
1466),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_1.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`نمای کلی ویرایشگر`})}),l(Q,{children:`صفحه ویرایش سه ستون دارد: فهرست توکن‌ها در چپ، بوم کاغذ در وسط، و پیش‌نمایش زنده همراه با تنظیمات توکن در راست. هر ستون را می‌توانید با فلش کناری جمع یا باز کنید تا فضای بیشتری برای بوم داشته باشید. نوار بالای صفحه ابزارهای ذخیره، پیشنهاد، زوم و حالت نشانگر را نشان می‌دهد.`}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_2.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`نوار ابزار بالا`})}),d(Q,{children:[`در سمت چپ نوار، دکمه `,l(`span`,{style:{fontWeight:`bold`},children:`«ذخیره»`}),`، آیکون لامپ`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«پیشنهادهای قالب»`}),` و آیکون راهنما قرار دارند. در وسط نوار، واگرد و ازنو، درصد بزرگ‌نمایی، زوم بیشتر و کمتر،`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«جا دادن در پنجره»`}),` و دکمه‌های`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«حالت عادی»`}),` و`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«حالت انتخاب»`}),` را می‌بینید. در سمت راست، عنوان صفحه و دکمه بازگشت قرار دارد.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_3.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`بخش‌های کاغذ`})}),l(Q,{children:`روی بوم، بخش‌های مختلف نامه با رنگ‌های ملایم از هم جدا شده‌اند: هدری که در همه صفحات چاپ می‌شود، هدری که در صفحه اول چاپ می‌شود، متن نامه، فوتری که در صفحه آخر چاپ می‌شود و فوتری که در همه صفحات چاپ می‌شود. با کلیک روی نقاط سفید وسط خطوط و حرکت دادن موس، می‌توانید ارتفاع بخش‌ها و فاصله متن از لبه‌های کاغذ را کم یا زیاد کنید.`}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_4.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`حالت عادی`})}),d(Q,{children:[`در `,l(`span`,{style:{fontWeight:`bold`},children:`«حالت عادی»`}),` (آیکون نشانگر یا کلید`,` `,l(`span`,{style:{fontWeight:`bold`},children:`V`}),`)، با کلیک و کشیدن می‌توانید یک توکن را جابه‌جا کنید. وقتی نشانگر روی قالب است، با اسکرول موس زوم را بیشتر یا کمتر کنید. برای جابه‌جا کردن بوم بدون جابه‌جا کردن توکن‌ها، کلید Space را نگه دارید یا از دکمه وسط موس استفاده کنید.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_5.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`قرار دادن توکن‌ها`})}),l(Q,{children:`فیلدهایی که به‌صورت پیش‌فرض برای نامه در نظر گرفته شده‌اند شامل تاریخ، شماره نامه، پیوست، فرستنده، گیرنده، موضوع و امضا هستند. برای جابه‌جا کردن آن‌ها، روی هر فیلد کلیک کنید و با Drag & Drop آن را در جای جدید بگذارید، یا توکن را از فهرست سمت چپ روی بوم بکشید.`}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_6.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`حذف توکن از کاغذ`})}),d(Q,{children:[`اگر توکنی را روی کاغذ نمی‌خواهید، آن را به بیرون از کاغذ بکشید تا از قالب چاپ حذف شود. در`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«حالت انتخاب»`}),` هم می‌توانید توکن‌ها را انتخاب کنید و روی `,l(`span`,{style:{fontWeight:`bold`},children:`«حذف»`}),` در پنل تنظیمات انتخاب کلیک کنید. توکن خارج‌شده در فهرست سمت چپ می‌ماند و دوباره قابل کشیدن به بوم است. برچسب`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«قرار گرفته»`}),` یعنی آن توکن هم‌اکنون روی کاغذ است و کنار آن نام بخشی که توکن در آن قرار دارد هم نمایش داده می‌شود.`]}
1466),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_7.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`ناحیه ممنوع`})}),l(Q,{children:`اگر توکن را به ناحیه‌ای ببرید که به آن تعلق ندارد، با رنگ قرمز به شما هشدار می‌دهد. مثلاً توکن گیرنده مربوط به هدر نامه است و نمی‌توانید آن را در متن نامه قرار دهید.`}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_8.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`توکن‌های اختیاری`})}),l(Q,{children:`برای لوگو، اولویت، محرمانگی، شماره صفحه و گیرندگان رونوشت به‌صورت پیش‌فرض جایی در قالب در نظر گرفته نشده است. در صورت نیاز، این گزینه‌ها را از فهرست توکن‌ها با Drag and Drop به داخل قالب بکشید و در جای مناسب قرار دهید.`}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_9.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`تنظیمات توکن`})}),l(Q,{children:`با کلیک روی هر فیلد، آن فیلد فعال می‌شود و در ستون راست می‌توانید ویژگی‌هایش را تغییر دهید؛ مثلاً اسم فیلد، اندازه فونت و شروع چاپ از چپ یا راست. پیش‌نمایش زنده همان ستون بلافاصله نتیجه را با داده نمونه نشان می‌دهد.`}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_10.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`نمایش اطلاعات فرستنده، گیرنده، امضا و رونوشت`})}),d(Q,{children:[`برای فیلدهای فرستنده، گیرنده، امضا و گیرندگان رونوشت، گزینه‌های بیشتری در اختیار دارید. اگر می‌خواهید نام و نام خانوادگی همراه با سمت نمایش داده شود، گزینه`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«نمایش کامل اطلاعات در کنار نام و نام خانوادگی»`}),` `,`را فعال کنید. با فعال کردن`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«نمایش اطلاعات به صورت دو خطی»`}),`، نام و نام خانوادگی در یک خط و سمت سازمانی در خط دوم چاپ می‌شوند؛ در غیر این صورت همه مشخصات در یک خط چاپ می‌شوند. برای امضا می‌توانید محل قرار گرفتن نام امضاکننده نسبت به تصویر امضا را هم تنظیم کنید.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_11.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`سربرگ (پس‌زمینه کاغذ)`})}),d(Q,{children:[`اگر در سازمان از سربرگ استفاده می‌کنید، در تب`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«تنظیمات بخش»`}),` روی انتخاب پس‌زمینه کلیک کنید و فایل تصویر سربرگ را آپلود کنید. حجم فایل حداکثر`,` `,l(`span`,{style:{fontWeight:`bold`},children:`۵۱۲ کیلوبایت`}),` است. بعد از آپلود، ممکن است لازم باشد محل قرار گرفتن برچسب‌ها را دوباره تنظیم کنید.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_12.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`توکن سفارشی`})}),d(Q,{children:[`اگر به فیلد متنی دیگری نیاز دارید که به‌صورت پیش‌فرض وجود ندارد، می‌توانید حداکثر ۳ فیلد متنی اضافه کنید. روی `,l(`span`,{style:{fontWeight:`bold`},children:`«افزودن توکن سفارشی»`}),` کلیک کنید تا یک فیلد با عنوان متن ثابت به فهرست توکن‌ها اضافه شود. سپس متن و اندازه فونت آن را از تنظیمات توکن تعیین کنید و در جایگاه موردنظر روی بوم قرار دهید.`]}
1466),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_13.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`فونت چاپ نامه`})}),d(Q,{children:[`در تب `,l(`span`,{style:{fontWeight:`bold`},children:`«تنظیمات بخش»`}),`، روی`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«انتخاب فونت برای چاپ نامه»`}),` کلیک کنید و فونت موردنظر را انتخاب کنید. با تغییر فونت، همه متن‌های موجود در قالب با فونت جدید چاپ می‌شوند. برای دیدن نتیجه، به پیش‌نمایش زنده ستون راست نگاه کنید؛ با نگه داشتن نشانگر روی پیش‌نمایش، آیکون بزرگ‌نمایی ظاهر می‌شود و با کلیک روی آن پیش‌نمایش در اندازه بزرگ‌تر باز می‌شود.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_14.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`حالت انتخاب`})}),d(Q,{children:[`برای کار هم‌زمان روی چند توکن، به `,l(`span`,{style:{fontWeight:`bold`},children:`«حالت انتخاب»`}),` `,`بروید (آیکون انتخاب یا کلید `,l(`span`,{style:{fontWeight:`bold`},children:`M`}),`). با کشیدن روی فضای خالی کاغذ، یک کادر انتخاب می‌کشید. با`,` `,l(`span`,{style:{fontWeight:`bold`},children:`Shift + کلیک`}),` می‌توانید توکنی را به انتخاب اضافه یا از آن کم کنید. توکن‌هایی که در یک بخش هستند، با هم جابه‌جا می‌شوند. برای بازگشت به حالت عادی از کلید `,l(`span`,{style:{fontWeight:`bold`},children:`V`}),` یا`,` `,l(`span`,{style:{fontWeight:`bold`},children:`Esc`}),` استفاده کنید.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_15.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`پنل تنظیمات انتخاب`})}),d(Q,{children:[`وقتی چند توکن انتخاب شده‌اند، پنل`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«تنظیمات انتخاب»`}),` باز می‌شود. از بخش تراز می‌توانید توکن‌ها را افقی یا عمودی هم‌تراز کنید، با`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«چیدمان»`}),` شروع چاپ را از چپ یا راست تنظیم کنید، و با`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«توزیع»`}),` فاصله افقی یا عمودی بین حداقل سه توکن را یکنواخت کنید. در بخش عملیات، فونت انتخاب‌ها را یکسان کنید یا آن‌ها را از کاغذ حذف کنید. تراز عمودی و توزیع عمودی فقط وقتی همه انتخاب‌ها در یک بخش باشند فعال هستند.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_16.jpg`}),l(Q,{children:l(`span`,{style:{fontWeight:`bold`},children:`پیشنهادهای قالب`})}),d(Q,{children:[`اگر موردی در قالب باشد که ممکن است چاپ نامه را خراب کند، آیکون لامپ`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«پیشنهادهای قالب»`}),` فعال می‌شود. با کلیک روی آن، مودالی باز می‌شود که مشکل را توضیح می‌دهد؛ مثلاً اختلاف چیدمان چپ و راست، فونت خیلی بزرگ‌تر از میانگین قالب، یا هم‌تراز نبودن ستون. با تأیید، اصلاح خودکار اعمال می‌شود. اگر پیشنهادی نمی‌خواهید، می‌توانید آن را از لیست حذف کنید.`]}),l($,{img:`./guide-images/edit-layout-editor/editLayoutEditor_17.jpg`})]}),dee=()=>d(`div`,{children:[l(nm,{title:`ارجاع نامه`}),l(Q,{children:`ممکن است بخواهید نامه را به کارمند دیگری ارجاع بدهید تا نامه در کارتابل او قرار بگیرد و از محتوای نامه اطلاع داشته باشد یا اقدامی انجام دهد. برای این کار در کارتابل موردنظر، روی ردیف نامه‌ای که می‌خواهید ارجاع بدهید، کلیک کنید تا وارد صفحه ویرایش نامه شوید. در صفحه ویرایش نامه، روی دکمه ارجاع در پایین و سمت چپ کلیک کنید.`}),l($,{img:`./guide-images/forward-letter/forwardLetter_1.jpg`}),l(Q,{children:`در پنجره ارجاع، لازم است ابتدا فیلد گیرندگان را پر کنید. برای این کار روی فیلد کلیک کنید تا لیست سمت‌های سازمانی باز شود و کارمند موردنظر برای ارجاع نامه را انتخاب کنید. لیست گیرندگان ارجاع را می‌توانید با کلیک کردن روی علامت ‌به‌علاوه در مقابل فیلد هم مشاهده کنید.`}),l($,{img:`./guide-images/forward-letter/forwardLetter_2.jpg`}),l(Q,{children:`فیلد بعدی، نوع ارجاع است که ممکن است معمولی یا مخفی باشد. برای انتخاب هر گزینه، باکس کنار آن را در حالت فعال قرار بدهید. برای انتخاب متن دستور یا پاراف، می‌توانید در باکس مربوط به آن تایپ کنید. اما برای راحتی کار شما، تعدادی متن آماده هم در نظر گرفته شده که می‌توانید پاراف را از بین آنها انتخاب کنید. برای این کار روی علامت به علاوه در مقابل فیلد پاراف کلیک کنید.`}),l($,{img:`./guide-images/forward-letter/forwardLetter_3.jpg`}),l(Q,{children:`در پنجره متن دستور دو تب درخواست و پاسخ وجود دارد که هر کدام، شامل متن‌های آماده برای ارجاع نامه هستند. متن آماده موردنظر خود را انتخاب کنید و باکس کنار آن را در حالت فعال قرار دهید. سپس دکمه ثبت را بزنید.`}),l($,{img:`./guide-images/forward-letter/forwardLetter_4.jpg`}),l(Q,{children:`با زدن دکمه ثبت، متن آماده در فیلد متن دستور نمایش داده می‌شود.`}),l($,{img:`./guide-images/forward-letter/forwardLetter_5.jpg`}),l(Q,{children:`در این مرحله با توجه به نوع دستور، یکی از تگ‌های ارجاع را انتخاب کنید و روی آن کلیک کنید. مثلاً اگر نامه را جهت استحضار به کارمندی ارجاع داده‌اید، بهتر است از تگ جهت اطلاع استفاده کنید. پس از پر کردن همه فیلدها، دکمه ارجاع را بزنید.`}),l($,{img:`./guide-images/forward-letter/forwardLetter_6.jpg`}),l(Q,{children:`با کلیک کردن روی دکمه ارجاع، نامه به کارمند موردنظر ارجاع داده می‌شود و وارد کارتابل او می‌شود.`}),l($,{img:`./guide-images/forward-letter/forwardLetter_7.jpg`})]}),fee=()=>d(`div`,{children:[l(nm,{title:`گروه مخاطبین`}),l(Q,{children:`برای نظم دادن به لیست مخاطبان سازمان و امکان جستجو در آن، قابلیتی به نام گروه مخاطب در نظر گرفته شده است. گروه مخاطب در واقع یکی از فیلدهایی است که در صفحه ایجاد مخاطب باید تکمیل شود. مقدار پیش‍فرض این فیلد، گروه مخاطب پیش‌فرض است. اما می‌توانید گروه مخاطب جدید بسازید و به مخاطبان اختصاص بدهید. برای این کار در صفحه مخاطبان، روی گزینه «گروه جدید» کلیک کنید.`}),l($,{img:`./guide-images/group-contacts/group_contacts_1.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، نام گروه را وارد کنید و دکمه ذخیره را بزنید. نام گروه می‌تواند نام شرکتی باشد که مخاطب به آن تعلق دارد.`}),l($,{img:`./guide-images/group-contacts/group_contacts_2.jpg`}),l(Q,{children:`با این کار به صفحه مدیریت مخاطبان بازمی‌گردید. همانطور که می‌بینید، گروه موردنظر به لیست گروه‌ها اضافه شده است. از این پس می‌توانید برای فیلتر کردن مخاطبان بر اساس گروه، از همین فیلد استفاده کنید.`}),l($,{img:`./guide-images/group-contacts/group_contacts_3.jpg`}),l(Q,{children:`برای اختصاص گروه به یک مخاطب، در صفحه مدیریت مخاطبان روی آن کلیک کنید تا صفحه ویرایش مخاطب باز شود. روی فیلد گروه مخاطب کلیک کنید تا لیست گروه‌ها باز شود. حالا گروه موردنظر را انتخاب کنید و سپس دکمه ویرایش مخاطب را بزنید.`}),l($,{img:`./guide-images/group-contacts/group_contacts_4.jpg`}),l(Q,{children:`همانطور که می‌بینید، در صفحه مدیریت مخاطبان، مقدار گروه مخاطب از «گروه مخاطب پیش‌فرض» به گروه جدید تغییر کرده است.`}),l($,{img:`./guide-images/group-contacts/group_contacts_5.jpg`})]}),pee=()=>d(`div`,{children:[l(nm,{title:`سوابق نامه`}),l(Q,{children:`در آوات، هر لحظه که بخواهید، می‌توانید از سوابق نامه و اقداماتی که تا آن لحظه بر روی آن انجام شده، مطلع شوید. برای این کار در میز کار سازمان روی راهکار مکاتبات کلیک کنید تا وارد کارتابل شوید.`}),l($,{img:`./guide-images/history-letter/history_letter_1.jpg`}),l(Q,{children:`در کارتابل، روی ردیف نامه‌ای که می‌خواهید سوابق آن را ببینید، کلیک کنید تا وارد صفحه ویرایش نامه شوید.`}),l($,{img:`./guide-images/history-letter/history_letter_2.jpg`}),l(Q,{children:`در بالا و سمت چپ صفحه ویرایش نامه، روی آیکون سه نقطه کلیک کنید.`}),l($,{img:`./guide-images/history-letter/history_letter_3.jpg`}),l(Q,{children:`از منویی که باز می‌شود، روی گزینه سوابق نامه کلیک کنید. `}),l($,{img:`./guide-images/history-letter/history_letter_4.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، سوابق همه عملیاتی که تا این لحظه روی نامه انجام شده، به تفکیک تاریخ نمایش داده می‌شود و نوع عملیات (ایجاد، ارجاع، امضا، شماره و...) و همچنین کاربری که عملیات را انجام داده، قابل مشاهده است. دستور ارجاع و توضیحات لغو و اختتام نامه هم در این بخش نمایش داده می‌شود.`}),l($,{img:`./guide-images/history-letter/history_letter_5.jpg`})]}),mee=()=>d(`div`,{children:[l(nm,{title:`نامه وارده`}),l(Q,{children:`در سیستم ابری آوات نامه وارده به نامه‌ای گفته می‌شود که فرستنده و امضاکننده آن مخاطبان سازمان شما، و دریافت‌کنندگان آن، کارمندان سازمان شما هستند. یعنی نامه از سازمان دیگری برای سازمان شما ارسال شده، اما مسئولیت ثبت نامه در کارتابل، به عهده شما است. برای این کار، در میز کار روی مکاتبات کلیک کنید تا وارد کارتابل شوید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_1.jpg`}),l(Q,{children:`در کارتابل سازمان، از ستون سمت راست، روی گزینه «ایجاد نامه جدید» کلیک کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_2.jpg`}),l(Q,{children:`از منویی که باز می‌شود، روی گزینه سوم (نامه وارده) کلیک کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_3.jpg`}),l(Q,{children:`در این صفحه می‌توانید فرستنده، گیرنده، موضوع، متن و سایر مشخصات Ù
1466†Ø§Ù…Ù‡ شامل پیوست‌ها و اطلاعات ثبت نامه را تنظیم و ذخیره کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_4.jpg`}),l(Q,{children:`برای انتخاب فرستنده نامه، روی فیلد فرستنده کلیک کنید. لیست همه مخاطبانی که توسط مالک سازمان در قسمت مخاطبان تعریف شده‌اند، نمایش داده می‌شود و می‌توانید از بین آنها فرستنده را انتخاب کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_5.jpg`}),l(Q,{children:`در مرحله بعد باید گیرنده نامه را مشخص کنید. گیرنده نامه کسی است که نامه خطاب به او نوشته شده و از میان کارمندان سازمان انتخاب می‌شود. با کلیک کردن روی فیلد گیرندگان، لیست کارمندان سازمان را مشاهده می‌کنید و می‌توانید از بین آنها، نام گیرنده نامه را انتخاب کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_6.jpg`}),l(Q,{children:`همچنین با کلیک کردن روی علامت به‌علاوه در مقابل فیلد فرستنده، لیست همه سمت‌های سازمانی نمایش داده می‌شود. با این تفاوت که در این قسمت، روابط و سلسله‌مراتب بین سمت‌ها هم نمایش داده می‌شود و انتخاب فرستنده از این لیست راحت‌تر است. نام گیرنده را انتخاب کنید و ثبت را بزنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_7.jpg`}),l(Q,{children:`اگر می‌خواهید کارمندان دیگر سازمان (غیر از گیرندگان اصلی) هم یک نسخه از نامه را دریافت کنند، روی دکمه رونوشت کلیک کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_8.jpg`}),l(Q,{children:`با کلیک کردن روی دکمه رونوشت، دو فیلد گیرندگان رونوشت و گیرندگان رونوشت مخفی فعال می‌شوند. نام دریافت‌کننده رونوشت عادی را گیرندگان عادی نامه هم می‌توانند ببینند. اما نام دریافت‌کننده رونوشت مخفی توسط گیرندگان عادی قابل مشاهده نیست.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_9.jpg`}),l(Q,{children:`در این مرحله موضوع و متن نامه را هم در فیلدهای مربوطه تایپ کنید. برای فیلد متن نامه، یک نوار ابزار در نظر گرفته شده که با استفاده از آن می‌توانید تنظیمات متن را تغییر بدهید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_10.jpg`}),l(Q,{children:`سایر مشخصات نامه شامل پیوست، اطلاعات ثبت، مراجع و یادداشت، به صورت پیش‌فرض فعال نیستند و برای فعال کردن فیلدها و وارد کردن اطلاعات، لازم است در بالای صفحه، چک‌مارک ‌آنها را در حالت فعال قرار دهید. سپس برای وارد کردن اطلاعات، به پایین صفحه اسکرول کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_11.jpg`}),l(Q,{children:`از گزینه پیوست‌ها زمانی استفاده می‌کنید که غیر از خود نامه، مدارک و مستندات دیگری هم ارسال شده‌اند که لازم است گیرنده نامه ملاحظه کند. با کلیک کردن روی دکمه انتخاب فایل ضمیمه، می‌توانید فایل موردنظر را انتخاب و آپلود کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_12.jpg`}),l(Q,{children:`همانطور که در تصویر مشاهده می‌کنید، فایل پیوست بارگزاری شده و نمایش داده می‌شود. برای حذف کردن فایل پیوست، روی علامت ضربدر کنار فایل کلیک کنید. همچنین می‌توانید مجدداً روی دکمه انتخاب فایل ضمیمه کلیک کنید و تعداد بیشتری فایل را آپلود کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_13.jpg`}),l(Q,{children:`در این مرحله لازم است اطلاعات ثبتی نامه را وارد کنید. اولین گزینه تاریخ است که به صورت پیش‌فرض، تاریخ روز را نمایش می‌دهد. برای تغییر دادن تاریخ نامه، روی فیلد کلیک کنید و از تقویمی که باز می‌شود، تاریخ موردنظر را انتخاب کنید. دقت کنید که فیلد اول، تاریخ ثبت نامه در سیستم را نشان می‌دهد.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_14.jpg`}),l(Q,{children:`فیلد بعدی به تاریخ نامه وارده اختصاص دارد، یعنی تاریخی که در نامه وارده درج شده است. برای تغییر دادن تاریخ نامه، روی فیلد کلیک کنید و از تقویمی که باز می‌شود، تاریخ موردنظر را انتخاب کنید. شماره نامه وارده را هم در فیلد مربوطه وارد کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_15.jpg`}),l(Q,{children:`در این مرحله لازم است دبیرخانه‌ای را که می‌خواهید نامه در آن به ثبت برسد، انتخاب کنید. روی فیلد دبیرخانه ثبت‌کننده کلیک کنید و یکی از دبیرخانه‌ها را انتخاب کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_16.jpg`}),l(Q,{children:`پس از انتخاب دبیرخانه، لازم است از لیست اندیکاتورهای آن دبیرخانه، یک اندیکاتور را انتخاب کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_17.jpg`}),l(Q,{children:`فیلد بعدی محرمانگی است که سه گزینه عادی، محرمانه و سری را شامل می‌شود. بسته به اطلاعاتی که در متن و یا پیوست‌های نامه ارائه می‌شود، ممکن است بخواهید گیرنده نامه از سطح محرمانگی آن مطلع شود. در این صورت گزینه محرمانه یا سری را انتخاب کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_18.jpg`}),l(Q,{children:`فیلد بعدی مربوط به اولویت نامه است که ممکن است عادی، فوری یا آنی باشد. با مشاهده هر کدام از این گزینه‌ها، گیرندگان خواهند دانست که اولویت رسیدگی و پاسخگویی به این نامه در چه سطحی است.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_19.jpg`}),l(Q,{children:`در بخش نامه وارده، مراجع یک فیلد اختیاری است و به نامه‌ای اشاره می‌کند که نامه وارده، در پاسخ به آن صادر و ارسال شده است. نوع مرجع را با کلیک کردن روی فیلد مربوطه، از لیست انتخاب کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_20.jpg`}),l(Q,{children:`شماره نامه مرجع و تاریخ آن را هم در فیلدهای مربوطه وارد کنید. همچنین در صورت نیاز، اطلاعات تکمیلی را در فیلد یادداشت تایپ کنید. برای یک نامه، می‌توانید بیش از یک مرجع تعریف کنید. در این مرحله، اطلاعات نامه کامل شده و می‌توانید با کلیک کردن روی دکمه ذخیره، یک نسخه از آن را در کارتابل خود ذخیره کنید.`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_21.jpg`}),l($,{img:`./guide-images/incoming-letter/incomingLetter_22.jpg`})]}),hee=()=>d(`div`,{children:[l(nm,{title:`نامه داخلی`}),l(Q,{children:`در سیستم ابری آوات نامه داخلی به نامه‌ای گفته می‌شود که فرستنده، گیرنده و امضاکننده آن، کارکنان سازمان شما هستند. چه مالک سازمان باشید و چه کارمند سازمان، می‌توانید نسبت به ایجاد نامه داخلی اقدام کنید. برای این کار، در میز کار سازمان روی گزینه مکاتبات کلیک کنید تا وارد کارتابل سازمان شوید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_1.jpg`}),l(Q,{children:`از ستون سمت راست، روی گزینه ایجاد نامه جدید کلیک کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_2.jpg`}),l(Q,{children:`از منویی که باز می‌شود، روی گزینه اول (نامه داخلی) کلیک کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_3.jpg`}),l(Q,{children:`در این صفحه می‌توانید فرستنده، گیرنده، موضوع، متن و سایر مشخصات Ù
1466†Ø§Ù…Ù‡ شامل پیوست‌ها و اطلاعات ثبت نامه را تنظیم و ذخیره کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_4.jpg`}),l(Q,{children:`برای انتخاب فرستنده نامه، روی فیلد فرستنده کلیک کنید. لیست همه سمت‌هایی که توسط مالک سازمان در قسمت سمت‌های سازمانی تعریف شده‌اند، نمایش داده می‌شود و می‌توانید از بین آنها فرستنده را انتخاب کنید. فرستنده ممکن است خود شما و یا کارمندان دیگر سازمان باشند.`}),l($,{img:`./guide-images/internal-letter/internalLetter_5.jpg`}),l(Q,{children:`همچنین با کلیک کردن روی علامت به‌علاوه در مقابل فیلد فرستنده، لیست همه سمت‌های سازمانی نمایش داده می‌شود. با این تفاوت که در این قسمت، روابط و سلسله‌مراتب بین سمت‌ها هم نمایش داده می‌شود و انتخاب فرستنده از این لیست راحت‌تر است.`}),l($,{img:`./guide-images/internal-letter/internalLetter_6.jpg`}),l(Q,{children:`در مرحله بعد باید گیرنده نامه را مشخص کنید. با کلیک کردن روی فیلد گیرندگان، لیست سمت‌های سازمانی را مشاهده می‌کنید و می‌توانید گیرنده را از بین آنها انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_7.jpg`}),l(Q,{children:`همچنین می‌توانید با کلیک کردن روی علامت به‌علاوه در مقابل فیلد گیرندگان، گیرنده نامه را انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_8.jpg`}),l(Q,{children:`اگر می‌خواهید کارمندان دیگر سازمان (غیر از گیرندگان اصلی) هم یک نسخه از نامه را دریافت کنند، روی دکمه رونوشت کلیک کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_9.jpg`}),l(Q,{children:`با کلیک کردن روی دکمه رونوشت، دو فیلد گیرندگان رونوشت و گیرندگان رونوشت مخفی فعال می‌شوند. نام دریافت‌کننده رونوشت عادی را گیرندگان عادی نامه هم می‌توانند ببینند. اما نام دریافت‌کننده رونوشت مخفی توسط گیرندگان عادی قابل مشاهده نیست. گیرندگان رونوشت و رونوشت مخفی را هم مانند مراحل قبل، با کلیک کردن روی فیلد و یا علامت به‌علاوه در مقابل آن انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_10.jpg`}),l(Q,{children:`در این مرحله موضوع و متن نامه را هم در فیلدهای مربوطه تایپ کنید. برای فیلد متن نامه، یک نوار ابزار در نظر گرفته شده که با استفاده از آن می‌توانید تنظیمات متن را تغییر بدهید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_11.jpg`}),l(Q,{children:`سایر مشخصات نامه شامل پیوست، اطلاعات ثبت، مراجع و یادداشت، به صورت پیش‌فرض فعال نیستند و برای فعال کردن فیلدها و وارد کردن اطلاعات، لازم است در بالای صفحه، چک‌مارک ‌آنها را در حالت فعال قرار دهید. سپس برای وارد کردن اطلاعات، به پایین صفحه اسکرول کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_12.jpg`}),l(Q,{children:`از گزینه پیوست‌ها زمانی استفاده می‌کنید که غیر از خود نامه، مدارک و مستندات دیگری هم وجود دارند که لازم است گیرنده نامه ملاحظه کند. با کلیک کردن روی دکمه انتخاب فایل ضمیمه، می‌توانید فایل موردنظر را انتخاب و آپلود کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_13.jpg`}),l(Q,{children:`همانطور که در تصویر مشاهده می‌کنید، فایل پیوست بارگزاری شده و نمایش داده می‌شود. برای حذف کردن فایل پیوست، روی علامت ضربدر کنار فایل کلیک کنید. همچنین می‌توانید مجدداً روی دکمه انتخاب فایل ضمیمه کلیک کنید و تعداد بیشتری فایل را آپلود کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_14.jpg`}),l(Q,{children:`در این مرحله لازم است اطلاعات ثبتی نامه را وارد کنید. اولین گزینه تاریخ است که به صورت پیش‌فرض، تاریخ روز را نمایش می‌دهد. برای تغییر دادن تاریخ نامه، روی فیلد کلیک کنید و از تقویمی که باز می‌شود، تاریخ موردنظر را انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_15.jpg`}),l(Q,{children:`برای انتخاب امضاکنندگان نامه، روی فیلد امضاکنندگان یا علامت به‌علاوه در مقابل آن کلیک کنید و از لیستی که باز می‌شود، کارمند موردنظرتان را انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_16.jpg`}),l(Q,{children:`در این مرحله لازم است دبیرخانه‌ای را که می‌خواهید نامه در آن به ثبت برسد، انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_17.jpg`}),l(Q,{children:`پس از انتخاب دبیرخانه، لازم است از لیست اندیکاتورهای آن دبیرخانه، یک اندیکاتور را انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_18.jpg`}),l(Q,{children:`فیلد بعدی محرمانگی است که سه گزینه عادی، محرمانه و سری را شامل می‌شود. بسته به اطلاعاتی که در متن و یا پیوست‌های نامه ارائه می‌شود، ممکن است بخواهید گیرنده نامه از سطح محرمانگی آن مطلع شود. در این صورت گزینه محرمانه یا سری را انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_19.jpg`}),l(Q,{children:`فیلد بعدی مربوط به اولویت نامه است که ممکن است عادی، فوری یا آنی باشد. با مشاهده هر کدام از این گزینه‌ها، گیرندگان خواهند دانست که اولویت رسیدگی و پاسخگویی به این نامه در چه سطحی است.`}),l($,{img:`./guide-images/internal-letter/internalLetter_20.jpg`}),l(Q,{children:`در سیستم ابری آوات، مراجع یک فیلد اختیاری است و به نامه‌ای اشاره می‌کند که نامه جدید، در پاسخ یا به پیوست آن ارسال می‌شود. نوع مرجع را با کلیک کردن روی فیلد مربوطه، از لیست انتخاب کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_21.jpg`}),l(Q,{children:`شماره نامه مرجع و تاریخ آن را هم در فیلدهای مربوطه وارد کنید. همچنین در صورت نیاز، اطلاعات تکمیلی را در فیلد یادداشت تایپ کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_22.jpg`}),l(Q,{children:`در این مرحله، اطلاعات نامه کامل شده و می‌توانید با کلیک کردن روی دکمه ذخیره، یک نسخه از آن را در کارتابل خود ذخیره کنید.`}),l($,{img:`./guide-images/internal-letter/internalLetter_23.jpg`}),l($,{img:`./guide-images/internal-letter/internalLetter_24.jpg`})]}),gee=()=>d(`div`,{children:[l(nm,{title:`نمای کانبان `}),l(Q,{children:`کانبان(kanban)، یک چارچوب نظام‌مند برای مدیریت و بررسی جریان کار است که با تکیه بر نمایش بصری وظایف، به برنامه‌ریزی، اولویت‌بندی و کنترل پیشرفت فعالیت‌ها کمک می‌کند. در این روش، فعالیت‌ها در قالب کارت‌هایی روی Û
1466ŒÚ© بُرد شامل ستون‌هایی مانند «در انتظار»، «در حال انجام» و «انجام‌شده» سازمان‌دهی می‌شوند و هر کارت متناسب با مرحله پیشرفت جابه‌جا می‌گردد.`}),l(Q,{children:`در آوات، امکان ایجاد نمای کانبان با تعداد ستون‌های دلخواه در مدیریت پروژه‌ها فراهم شده است تا بتوانید کارهای پروژه را به‌صورت تصویری و منعطف و متناسب با سلیقه خود، مدیریت کنید.`}),d(Q,{children:[`برای ایجاد کانبان، روی گزینه `,l(`span`,{style:{fontWeight:`bold`},children:` «مشاهده پروژه» `}),` کلیک می‌کنیم. نمای زیر باز می‌شود. در یک گزینه، لیست کارهای پروژه و در گزینه بعدی، «کانبان کارهای پروژه» قابل مشاهده است. روی این بخش کلیک می‌کنیم تا وارد تنظیمات کانبان شویم:`]}),l($,{img:`./guide-images/kanban/kanban-1.jpg`}),l(Q,{children:`از منوی آبشاری «انتخاب کانبان»، بر روی «ایجاد کانبان» کلیک می‌کنیم.`}),l($,{img:`./guide-images/kanban/kanban-2.jpg`}),l(Q,{children:`صفحه زیر باز می‌شود.`}),l($,{img:`./guide-images/kanban/kanban-3.jpg`}),l(Q,{children:`بعد از انتخاب عنوان و توضیحات، وارد بخش «ایجاد ستون» از هر کانبان می‌شویم. در این بخش متناسب با الگوهای مدنظرمان، ستون‌ها که نشانگر تقسیم وضعیت کارها هستند را تعریف می‌کنیم:`}),l($,{img:`./guide-images/kanban/kanban-4.jpg`}),l(Q,{children:`بعد از انتخاب عنوان، روی گزینه تیک کلیک می‌کنیم. به این طریق، یک ستون ایجاد می‌شود و وارد تعریف ستون بعدی خواهیم شد.`}),l($,{img:`./guide-images/kanban/kanban-5.png`}),l(Q,{children:`بعد از تعریف، ستون‌های مدنظر (مثلا با الگوی «در حال انجام»، «برای انجام» و «انجام‌شده»)، تعریف کانبان به بخش پایانی می‌رسد.`}),l($,{img:`./guide-images/kanban/kanban-6.jpg`}),l(Q,{children:`شما می‌توانید برای هر پروژه چند کانبان با اهداف و ساختارهای متفاوت ایجاد کنید تا نظم و شفافیت بیشتری در مدیریت پروژه‌ها داشته باشید.`}),l(Q,{children:`خروجی کانبان‌ها به شکل زیر، روند هر پروژه را به شکل بصری در اختیار شما قرار می‌دهد. هر کارت از هر ستون، به سادگی با Drag & drop قابل جابه‌جایی به دیگر ستون‌ها هستند. مثلا شما می‌توانید کارت «بایگانی اسناد» را از ستون «اولویت بالا» به «در انتظار بررسی» منتقل کنید.`}),l($,{img:`./guide-images/kanban/kanban-7.jpg`}),l(Q,{children:`ویرایش و حذف کانبان:`}),l(Q,{children:`با کلیک بر روی سه‌نقطه، در سمت چپ هر ستون، می‌توانید کانبان را ویرایش یا حذف کنید.`}),l(Q,{children:`قابلیت ویرایش و حذف کانبان‌ها به شما کمک می‌کند تا بتوانید ساختار مدیریت پروژه‌های خود را هر زمان که خواستید، تغییر دهید.`}),l($,{img:`./guide-images/kanban/kanban-8.jpg`})]}),_ee=()=>d(`div`,{children:[l(nm,{title:`دبیرخانه‌ها`}),l(Q,{children:`هر سازمان باید حداقل یک دبیرخانه داشته باشد و مدیریت دبیرخانه توسط مالک سازمان و راهبر مکاتبات انجام می‌شود. برای ساده شدن کار، با ایجاد هر سازمان، به طور خودکار یک دبیرخانه پیش‌فرض برای آن ایجاد می‌شود. اگر مالک سازمان یا راهبر مکاتبات هستید، برای مدیریت دبیرخانه‌ها، در میز کار سازمان روی گزینه مکاتبات کلیک کنید تا وارد کارتابل شوید.`}),l($,{img:`./guide-images/manage-secretariats/manageSecretariats_1.jpg`}),l(Q,{children:`پس از ورود به کارتابل، روی گزینه دبیرخانه‌ها در پایین و سمت راست صفحه کلیک کنید.`}),l($,{img:`./guide-images/manage-secretariats/manageSecretariats_2.jpg`}),l(Q,{children:`در این صفحه یک دبیرخانه به صورت پیش‌فرض وجود دارد که می‌توانید با کلیک کردن روی آن، نام و کد دبیرخانه را به دلخواه خود تغییر بدهید و همچنین نسبت به ایجاد کارتابل و قالب چاپی برای این دبیرخانه اقدام نمایید.`}),l($,{img:`./guide-images/manage-secretariats/manageSecretariats_3.jpg`}),l(Q,{children:`در صفحه جدید تب اول به اطلاعات دبیرخانه اختصاص داده شده است. در این تب می‌توانید نام دبیرخانه و کد موردنظر خود را به آن اختصاص بدهید و سپس روی گزینه ثبت تغییرات کلیک کنید.`}),l($,{img:`./guide-images/manage-secretariats/manageSecretariats_4.jpg`}),l(Q,{children:`تب دوم به اندیکاتور اختصاص دارد. مشخصات و نحوه نمایش شماره نامه در اندیکاتور تعیین می‌شود. در هر دبیرخانه پیش‌فرض، یک اندیکاتور هم به صورت پیش‌فرض وجود دارد و که فقط نام آن قابل ویرایش است. چنانچه بخواهید دبیرخانه مشخصات دیگری داشته باشد، لازم است دبیرخانه جدیدی ایجاد کنید.`}),l($,{img:`./guide-images/manage-secretariats/manageSecretariats_5.jpg`}),l(Q,{children:`در تب سوم می توانید برای نامه‌های این دبیرخانه، قالب چاپی ایجاد کنید. آوات به یک ویرایشگر گرافیکی مجهز است که تهیه قالب چاپی با آن ساده است و به مهارت طراحی نیاز ندارد. برای Ù
1466‡Ø± دبیرخانه می توانید بینهایت قالب ایجاد کنید.`}),l($,{img:`./guide-images/manage-secretariats/manageSecretariats_6.jpg`}),l(Q,{children:`تب چهارم به تنظیمات ECE اختصاص دارد. ECE یا پروتکل تبادل الکترونیکی مکاتبات، امکان ارتباط بین اتوماسیون‌های اداری را فراهم می‌کند. با وارد کردن تنظیمات این بخش، می‌توانید بدون هیچ محدودیتی با سازمان‌هایی که از سایر نرم‌افزارهای اتوماسیون اداری استفاده می‌کنند، مکاتبه داشته باشید.`}),l($,{img:`./guide-images/manage-secretariats/manageSecretariats_7.jpg`})]}),vee=()=>d(`div`,{children:[l(nm,{title:`راهبران جلسات`}),l(Q,{children:`یکی از نقش‌هایی که به عنوان مالک سازمان می‌توانید به کاربران دیگر اختصاص بدهید، راهبر جلسات است. راهبران جلسات از بین کاربران جلسات انتخاب می‌شوند و سطح دسترسی آنها بالاتر است. برای اختصاص سمت راهبر جلسات به کارمندان سازمان، در میز کار روی گزینه راهکارها کلیک کنید.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins1.png`}),l(Q,{children:`در بخش سرویس‌های فعال، روی دکمه تنظیمات راهکار جلسات کلیک کنید. صرف‌نظر از این که از طرح رایگان یک ماهه استفاده می‌کنید یا سرویس آوات را خریداری کرده‌اید، این گزینه در دسترس شما خواهد بود.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins2.png`}),l(Q,{children:`در صفحه کاربران جلسات، از ستون سمت راست روی گزینه «راهبران جلسات» کلیک کنید.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins3.png`}),l(Q,{children:`در صفحه راهبران جلسات، روی فیلد یا آیکون فلش در سمت چپ آن کلیک کنید تا لیست کاربران باز شود.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins4.png`}),l(Q,{children:`برای این که یک کارمند را به لیست راهبران جلسات اضافه کنید، روی گزینه «افزودن» در مقابل نام او کلیک کنید.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins5.png`}),l(Q,{children:`بعد از ایجاد دسترسی، گزینه «افزودن» به «حذف» تغییر می‌کند و نام کارمند به لیست کارمندان دارای دسترسی اضافه می‌شود. برای گرفتن دسترسی راهبری جلسات از کارمند، می‌توانید در همین مرحله گزینه حذف را بزنید.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins6.png`}),l(Q,{children:`برای گرفتن دسترسی به جلسات، همچنین می‌توانید در لیست کارمندان دارای دسترسی به جلسات، در مقابل نام هر کارمند روی گزینه حذف کلیک کنید.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins7.png`}),l(Q,{children:`برای مشاهده دسترسی‌های راهبران جلسات، در همین صفحه روی گزینه «مشاهده دسترسی‌ها» کلیک کنید.`}),l($,{img:`./guide-images/meetings-admins/meetingsAdmins8.png`})]}),yee=()=>d(`div`,{children:[l(nm,{title:`کارتابل جلسات`}),l(Q,{children:`برای ایجاد و مشاهده جلسات، لازم است وارد کارتابل جلسات شوید. برای وارد شدن به کارتابل جلسات، در میز کار سازمان روی گزینه جلسات کلیک کنید. همچنین می‌توانید از ستون سمت راست روی تب راهکارها کلیک کنید و راهکار جلسات را انتخاب کنید.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable1.png`}),l(Q,{children:`در کارتایل جلسات می‌توانید همه جلساتی که خودتان ایجاد کرده‌اید یا به آن دعوت شده‌اید، مشاهده کنید`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable2.png`}),l(Q,{children:`در بالا و سمت چپ صفحه کارتابل، یک زبانه وجود دارد. با قرار دادن این زبانه روی «نمایش تقویم»، جلسات شما (که خودتان ایجاد کرده‌اید یا به آن دعوت شده‌اید)، در هفته جاری نمایش داده می‌شود.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable3.png`}),l(Q,{children:`اما اگر زبانه را روی «نمایش لیست» قرار دهید، لیستی از همه جلسات شما نمایش داده می‌شود.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable4.png`}),l(Q,{children:`در صفحه کارتابل جلسات، یک فیلتر تعبیه شده تا بتوانید جلسه موردنظرتان را راحت‌تر پیدا کنید. با این فیلتر می‌توانید جلسات را بر اساس این که خودتان آن را ایجاد کرده یا به آن دعوت شده‌اید فیلتر کنید. همچنین می‌توانید جلسات لغو شده را از حالت نمایش خارج کنید و فقط جلسات فعال را ببینید. این فیلتر هم در تقویم جلسات و هم در لیست جلسات قابل استفاده است.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable5.png`}),l(Q,{children:`برای مرور کردن در تقویم کارتابل جلسات، چند گزینه در اختیار شما است. سایدبار سمت راست صفحه، یک شمای کلی از ماه جاری را نمایش می‌دهد. با کلیک کردن روی نام ماه یا سال و آیکون‌های فلش، می‌توانید جلسات سال یا ماه دیگری را ببینید.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable6.png`}),l(Q,{children:`با دکمه‌های تعبیه شده در بالای صفحه کارتابل هم می‌توانید به هفته‌های بعد یا هفته قبل یا روز جاری بروید.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable7.png`}),l(Q,{children:`گزینه «همه جلسات سازمان» در پایین و سمت راست صفحه، شما را به صفحه‌ای هدایت می‌کند که در آن همه جلسات سازمان (اعم از این که شما به آن جلسه دعوت شده‌اید یا نه) در قالب یک لیست نمایش داده می‌شود. در این صفحه هم می‌توانید از فیلتر استفاده کنید یا در تقویم جلسات مرور کنید.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable9.png`}),l(Q,{children:`گزینه دیگری که در کارتابل در اختیار شما قرار دارد، «مدیریت راهکار جلسات» است. با کلیک کردن روی این گزینه، می‌توانید یک مکان را به عنوان محل برگزاری جلسه ثبت کنید و تنظیمات دیگر راهکار جلسات را انجام دهید.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable8.png`}),l(Q,{children:`از آنجا که به هر کارمند می‌توان بیش از یک سمت اختصاص داد، صفحه کارتابل جلسات هم به صورت چندسمتی طراحی شده تا با انتخاب هر سمت، بتوانید فقط جلسات متناظر با همان سمت را مشاهده کنید. اگر بیش از یک سمت سازمانی دارید، برای مشاهده جلسات هر سمت، در بالا و سمت راست صفحه، روی فیلد «سِمَت» کلیک کنید و سمت موردنظر را انتخاب کنید.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable10.png`}),l(Q,{children:`در صفحه کارتابل جلسات، با کلیک کردن روی «ایجاد جلسه جدید» می‌توانید یک جلسه ایجاد کنید.`}),l($,{img:`./guide-images/meetings-cartable/meetingsCartable11.png`})]}),bee=()=>d(`div`,{children:[l(nm,{title:`افزودن کاربر به جلسات`}),l(Q,{children:`از این که کاربران دیگر آوات را به عنوان کارمند، به سازمان اضافه کردید، در گام بعدی لازم است تعیین کنید که کدام کارمندان به جلسات دسترسی داشته باشند. برای این کار وارد سازمان موردنظر شوید. در میز کار سازمان، از ستون سمت راست روی گزینه راهکارها کلیک کنید.`}),l($,{img:`./guide-images/meetings-users/meetingsUsers1.png`}),l(Q,{children:`در بخش سرویس‌های فعال، روی دکمه تنظیمات راهکار جلسات کلیک کنید. صرف‌نظر از این که از طرح رایگان استفاده می‌کنید یا سرویس آوات را خریداری کرده‌اید، این گزینه در دسترس شما خواهد بود.`}),l($,{img:`./guide-images/meetings-users/meetingsUsers2.png`}),l(Q,{children:`در این صفحه، روی فیلد افزودن کاربر به مکاتبات کلیک کنید تا لیست کارمندان باز شود. دقت کنید که حتماً باید برای کارمندانی که قصد دارید به راهکار جلسات اضافه کنید، سمت تعریف کرده باشید. در غیر این صورت با پیغام خطا مواجه خواهید شد.`}),l($,{img:`./guide-images/meetings-users/meetingsUsers3.png`}),l(Q,{children:`در مقابل نام هر کارمندی که می‌خواهید به راهکار جلسات اضافه کنید، گزینه افزودن را بزنید. با این کار کارمند موردنظر اعتبار استفاده از راهکار جلسات سازمان را خواهد داشت.`}),l($,{img:`./guide-images/meetings-users/meetingsUsers4.png`}),l(Q,{children:`بعد از ایجاد دسترسی، گزینه «افزودن» به «حذف» تغییر می‌کند و نام کارمند به لیست کارمندان دارای دسترسی اضافه می‌شود. برای گرفتن دسترسی جلسات از کارمند، می‌توانید در همین مرحله گزینه حذف را بزنید.`}),l($,{img:`./guide-images/meetings-users/meetingsUsers5.png`}),l(Q,{children:`برای گرفتن دسترسی به جلسات، همچنین می‌توانید در لیست کارمندان دارای دسترسی به جلسات، در مقابل نام هر کارمند روی گزینه حذف کلیک کنید.`}),l($,{img:`./guide-images/meetings-users/meetingsUsers6.png`})]}),xee=()=>d(`div`,{children:[l(nm,{title:`ثبت صورتجلسه`}),l(Q,{children:`صورتجلسه به نوشته‌ای گفته می‌شود که حاوی مذاکرات و مصوبات جلسه‌های رسمی است و تاریخ و محل برگزاری جلسه، حاضران و غایبان و مصوبات و مذاکرات جلسه در آن ذکر می‌شود. در راهکار جلسات آوات، اگر ایجادکننده یا مدعو یک جلسه باشید یا سمت شما مالک یا راهبر ارشد سازمان یا راهبر مکاتبات باشد، می‌توانید نسبت به ثبت صورتجلسه اقدام کنید. برای ثبت صورتجلسه، در لیست جلسات یا در تقویم، روی جلسه موردنظرتان کلیک کنید تا وارد پنجره ویرایش آن شوید و در پایین پنجره، دکمه ثبت صورتجلسه را بزنید.`}),l($,{img:`./guide-images/minutes-meeting/minutesMeeting1.png`}),l(Q,{children:`با زدن دکمه ثبت صورتجلسه، یک پنجره باز می‌شود که در آن می‌توانید متن صورتجلسه را با استفاده از یک ویرایشگر حرفه‌ای وارد کنید. این ویرایشگر به همه امکانات نرم‌افزارهای ویرایش متن مانند word مجهز است. پس از وارد کردن متن صورتجلسه، دکمه ذخیره را بزنید.`}),l($,{img:`./guide-images/minutes-meeting/minutesMeeting2.png`}),l(Q,{children:`با زدن دکمه ذخیره، صورتجلسه ثبت می‌شود. ایجادکننده و مدعوین جلسه، مالک و راهبر ارشد سازمان و راهبر جلسات، می‌توانند صورتجلسه را ایجاد، مشاهده و ویرایش کنند.`}),l($,{img:`./guide-images/minutes-meeting/minutesMeeting3.png`}),l(Q,{children:`بعد از ثبت صورتجلسه، با کلیک کردن روی دکمه مشاهده صورتجلسه می‌توانید آن را مشاهده و ویرایش کنید.`}),l($,{img:`./guide-images/minutes-meeting/minutesMeeting4.png`})]}),_m=()=>d(`div`,{children:[l(nm,{title:`مدیریت اعلان ها `}),l(Q,{children:`سیستم آوات به ازای هر تغییری که در سیستم اعمال می‌کنید، یک اعلان به شما نمایش می‌دهد. این اعلان در پایین و سمت صفحه نمایش داده می‌شود. لیست این اعلان‌ها را هم با کلیک کردن روی علامت زنگوله در بالا و سمت چپ صفحه، مشاهده و مدیریت کنید.`}),l($,{img:`./guide-images/notification-guides/notification_1.jpg`}),l(Q,{children:`برای تغییر وضعیت یک اعلان از «خوانده نشده» به «خوانده شده»، روی آیکون چک‌مارک در سمت چپ آن کلیک کنید. با کلیک مجدد روی این آیکون، می‌توانید اعلان مربوطه را به حالت «خوانده نشده» برگردانید.`}),l($,{img:`./guide-images/notification-guides/notification_2.jpg`}),l(Q,{children:`اگر می‌خواهید وضعیت همه اعلان‌ها را به «خوانده شده» تغییر بدهید، روی آیکون چک‌مارک کلیک کنید.`}),l($,{img:`./guide-images/notification-guides/notification_3.jpg`}),l(Q,{children:`برای به روزرسانی اعلان‌ها و دریافت جدیدترین اعلان‌ها، روی آیکون دوم کلیک کنید.`}),l($,{img:`./guide-images/notification-guides/notification_4.jpg`}),l(Q,{children:`با قرار دادن این زبانه در حال فعال، فقط اعلان‌هایی را مشاهده می‌کنید که خوانده نشده‌اند و اعلان‌های خوانده شده، در لیست اعلان‌ها نمایش داده نمی‌شوند.`}),l($,{img:`./guide-images/notification-guides/notification_5.jpg`})]}),vm=()=>d(`div`,{children:[l(nm,{titlw:`پذیرش عضویت در سازمان`}),l(Q,{children:`اگر مالک یا راهبر ارشد یک سازمان، شما را به عنوان کارمند به آن سازمان اضافه کند، شما برای دعوت به هر سازمان، Û
1466ŒÚ© پیغام دریافت می‌کنید. با وارد شدن به حساب کاربری، پیغام دعوت به سازمان را مشاهده می‌کنید. همانطور که در تصویر زیر مشاهده می‌کنید، در مقابل هر دعوت به عضویت در سازمان، یک دکمه برای پذیرش آن وجود دارد.`}),l($,{img:`./guide-images/organization-membership-Acceptance/MembershipAcceptance_1.png`}),l(Q,{children:`اگر روی دکمه پذیرش دعوت به سازمان کلیک کنید، یک پنجره باز می‌شود، که برای پذیرش دعوت باید روی دکمه پذیرش کلیک کنید.`}),l($,{img:`./guide-images/organization-membership-Acceptance/MembershipAcceptance_2.png`}),l(Q,{children:`با کلیک کردن روی دکمه پذیرش، سازمان موردنظر به لیست سازمان‌های عضو (سازمان‌هایی که شما در آنها عضو هستید و نقش شما در آنها کارمند است) اضافه می‌شود.`}),l($,{img:`./guide-images/organization-membership-Acceptance/MembershipAcceptance_3.png`})]}),ym=()=>d(`div`,{children:[l(nm,{title:`ساختار سازمانی `}),l(Q,{children:`بعد از ایجاد سازمان، گام بعدی این است که ساختار سازمانی خود را در آوات ایجاد کنید. برای این کار در میز کار سازمان روی «ساختار سازمانی» کلیک کنید.`}),l($,{img:`./guide-images/organization-position/organization_position_1.jpg`}),l(Q,{children:`همانطور که گفتیم، دو سمت مدیر و کارشناس به صورت پیش‌فرض در سیستم تعریف شده است. در این ساختار، هر تورفتگی نشان‌دهنده یک سطح از سلسله‌مراتب است. برای ایجاد یک سمت جدید، ابتدا سطح آن را مشخص کنید و سپس علامت به‌علاوه مقابل سمت بالادستی آن سمت را بزنید.`}),l($,{img:`./guide-images/organization-position/organization_position_2.jpg`}),l(Q,{children:`با زدن علامت به‌علاوه، پنجره‌ای باز می‌شود که باید در آن مشخصات مربوط به سمت جدید را وارد کنید. فیلدهای مربوط به سمت جدید شامل نام سمت، کد سمت، ظرفیت و توضیحات را پر کنید و سپس دکمه ثبت را بزنید. کد سمت به صورت قراردادی در سازمان شما تعریف می‌شود و ظرفیت نیز به تعداد افرادی اشاره می‌کند که در این سطح مشغول به کار هستند.`}),l($,{img:`./guide-images/organization-position/organization_position_3.jpg`}),l(Q,{children:`با زدن دکمه ثبت، سمت سازمانی جدید ایجاد می‌شود و در صفحه سمت‌های سازمانی نمایش داده می‌شود. لازم به ذکر است که از این پس در صفحه ایجاد کارمند هم این سمت جدید نمایش داده می‌شود و امکان تغییر سمت کارمندان جدید و قبلی وجود دارد.`}),l($,{img:`./guide-images/organization-position/organization_position_4.jpg`}),l(Q,{children:`برای ایجاد ساختار سازمانی خود در صفحه سمت‌های سازمانی، می‌توانید علاوه بر ایجاد سمت‌های جدید، سمت‌های پیش‌فرض را هم ویرایش کنید. برای این کار روی آیکون قلم در مقابل سمت موردنظر کلیک کنید تا پنجره جدیدی باز شود.`}),l($,{img:`./guide-images/organization-position/organization_position_5.jpg`}),l(Q,{children:`در این پنجره می‌توانید علاوه بر ویرایش نام سمت، به آن کد یا ظرفیت اختصاص بدهید. همچنین می‌توانید سمت بالادستی آن را تغییر بدهید و یا سمت را در حال فعال یا غیرفعال قرار بدهید.`}),l($,{img:`./guide-images/organization-position/organization_position_6.jpg`})]}),bm=()=>d(`div`,{children:[l(nm,{title:`چارت سازمانی`}),l(Q,{children:`هنگامی که کارمندان سازمان خود را تعریف می‌کنید، یکی از فیلدهایی که باید اطلاعات آن را ویرایش کنید، به سمت سازمانی اختصاص دارد. به صورت پیش‌فرض دو سمت مدیر و کارشناس در سیستم ابری آوات تعریف شده است. اما چنانچه در ساختار سازمانی شما سمت‌های دیگری هم تعریف شده، می‌توانید از طریق «سمت‌های سازمانی» این ساختار را ایجاد کنید. برای این کار روی نام سازمان کلیک کنید.`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_1.jpg`}),l(Q,{children:`در صفحه جدیدی که باز می‌شود، از ستون سمت راست، روی گزینه ساختار سازمانی کلیک کنید`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_2.jpg`}),l(Q,{children:`همانطور که گفتیم، دو سمت مدیر و کارشناس به صورت پیش‌فرض در سیستم تعریف شده است که در این صفحه مشاهده می‌کنید. در این ساختار، هر زیرشاخه نشان‌دهنده یک سطح از سلسله مراتب اØ
1466³Øª. برای ایجاد یک سمت جدید، ابتدا سطح آن را مشخص کنید و سپس عالمت به علاوه مقابل سطح مربوط به آن سمت را بزنید.`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_3.jpg`}),l(Q,{children:`به عنوان مثال، مسئول دفتر از لحاظ سلسله مراتب سازمانی زیر سمت مدیریت قرار می‌گیرد. با زدن علامت به علاوه، پنجره‌ای باز می‌شود که باید در آن مشخصات مربوط به سمت جدید را وارد کنید.`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_4.jpg`}),l(Q,{children:`فیلدهای مربوط به سمت جدید شامل نام سمت، کد سمت، ظرفیت و توضیحات را پر کنید و سپس دکمه ثبت را بزنید. کد سمت به صورت قراردادی در سازمان شما تعریف می‌شود و ظرفیت نیز به تعداد افرادی اشاره می‌کند که در این سطح مشغول به کار هستند.`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_5.jpg`}),l(Q,{children:`با زدن دکمه ثبت، سمت سازمانی جدید ایجاد می‌شود و در صفحه سمت‌های سازمانی نمایش داده می‌شود. لازم به ذکر است که از این پس در صفحه ایجاد کارمند هم این سمت جدید نمایش داده می‌شود و امکان تغییر سمت کارمندان جدید و قبلی وجود دارد.`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_6.jpg`}),l(Q,{children:`برای ایجاد ساختار سازمانی خود در صفحه سمت‌های سازمانی، میتوانید علاوه بر ایجاد سمت‌های جدید، سمت‌های پیش‌فرض را هم ویرایش کنید. برای این کار روی آیکون قلم در مقابل سمت موردنظر کلیک کنید تا پنجره جدیدی باز شود.`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_7.jpg`}),l(Q,{children:`در این پنجره می‌توانید علاوه بر ویرایش نام سمت، به آن کد یا ظرفیت اختصاص بدهید. همچنین می‌توانید سمت بالا دستی آن را تغییر بدهید و یا سمت را در حال فعال یا غیرفعال قرار بدهید.`}),l($,{img:`./guide-images/organizational-chart/organizationalChart_8.jpg`})]}),xm=()=>d(`div`,{children:[l(nm,{title:`نامه ارسالی`}),l(Q,{children:`در سیستم ابری آوات نامه ارسالی به نامه‌ای گفته می‌شود که فرستنده و امضاکننده آن کارمندان سازمان، و دریافت‌کنندگان آن مخاطبان سازمان شما هستند. برای این کار، در میز کار سازمان روی گزینه مکاتبات کلیک کنید تا وارد کارتابل سازمان شوید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_1.jpg`}),l(Q,{children:`در کارتابل سازمان، از ستون سمت راست، روی گزینه ایجاد نامه جدید کلیک کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_2.jpg`}),l(Q,{children:`از منویی که باز می‌شود، روی گزینه دوم (نامه ارسالی) کلیک کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_3.jpg`}),l(Q,{children:`در این صفحه می‌توانید فرستنده، گیرنده، موضوع، متن و سایر مشخصات نامه شامل پیوست‌ها و اطلاعات ثبت نامه را تنظیم و ذخیره کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_4.jpg`}),l(Q,{children:`برای انتخاب فرستنده نامه، روی فیلد فرستنده کلیک کنید. لیست همه سمت‌هایی که توسط مالک سازمان در قسمت سمت‌های سازمانی تعریف شده‌اند، نمایش داده می‌شود و می‌توانید از بین آنها فرستنده را انتخاب کنید. فرستنده ممکن است خود شما و یا کارمندان دیگر سازمان باشند.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_5.jpg`}),l(Q,{children:`همچنین با کلیک کردن روی علامت به‌علاوه در مقابل فیلد فرستنده، لیست همه سمت‌های سازمانی نمایش داده می‌شود. با این تفاوت که در این قسمت، روابط و سلسله‌مراتب بین سمت‌ها هم نمایش داده می‌شود و انتخاب فرستنده از این لیست راحت‌تر است.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_6.jpg`}),l(Q,{children:`در مرحله بعد باید گیرنده نامه را مشخص کنید. با کلیک کردن روی فیلد گیرندگان، لیست مخاطبان سازمان را مشاهده می‌کنید و می‌توانید از بین آنها، نام گیرنده نامه را انتخاب کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_7.jpg`}),l(Q,{children:`اگر بخواهید مخاطبان دیگر سازمان (غیر از Ú¯Û
1466ŒØ±Ù†Ø¯Ú¯Ø§Ù† اصلی) هم یک نسخه از نامه را دریافت کنند، روی دکمه رونوشت کلیک کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_8.jpg`}),l(Q,{children:`با کلیک کردن روی دکمه رونوشت، دو فیلد گیرندگان رونوشت و گیرندگان رونوشت مخفی فعال می‌شوند. نام دریافت‌کننده رونوشت عادی را گیرندگان عادی نامه هم می‌توانند ببینند. اما نام دریافت‌کننده رونوشت مخفی توسط گیرندگان عادی قابل مشاهده نیست.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_9.jpg`}),l(Q,{children:`در این مرحله موضوع و متن نامه را هم در فیلدهای مربوطه تایپ کنید. برای فیلد متن نامه، یک نوار ابزار در نظر گرفته شده که با استفاده از آن می‌توانید تنظیمات متن را تغییر بدهید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_10.jpg`}),l(Q,{children:`سایر مشخصات نامه شامل پیوست، اطلاعات ثبت، مراجع و یادداشت، به صورت پیش‌فرض فعال نیستند و برای فعال کردن فیلدها و وارد کردن اطلاعات، لازم است در بالای صفحه، چک‌مارک ‌آنها را در حالت فعال قرار دهید. سپس برای وارد کردن اطلاعات، به پایین صفحه اسکرول کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_11.jpg`}),l(Q,{children:`از گزینه پیوست‌ها زمانی استفاده می‌کنید که غیر از خود نامه، مدارک و مستندات دیگری هم وجود دارند که لازم است گیرنده نامه ملاحظه کند. با کلیک کردن روی دکمه انتخاب فایل ضمیمه، می‌توانید فایل موردنظر را انتخاب و آپلود کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_12.jpg`}),l(Q,{children:`همانطور که در تصویر مشاهده می‌کنید، فایل پیوست بارگزاری شده و نمایش داده می‌شود. برای حذف کردن فایل پیوست، روی علامت ضربدر کنار فایل کلیک کنید. همچنین می‌توانید مجدداً روی دکمه انتخاب فایل ضمیمه کلیک کنید و تعداد بیشتری فایل را آپلود کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_13.jpg`}),l(Q,{children:`در این مرحله لازم است اطلاعات ثبتی نامه را وارد کنید. اولین گزینه تاریخ است که به صورت پیش‌فرض، تاریخ روز را نمایش می‌دهد. برای تغییر دادن تاریخ نامه، روی فیلد کلیک کنید و از تقویمی که باز می‌شود، تاریخ موردنظر را انتخاب کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_14.jpg`}),l(Q,{children:`برای انتخاب امضاکنندگان نامه، روی فیلد امضاکنندگان یا علامت به‌علاوه در مقابل آن کلیک کنید و از لیستی که باز می‌شود، کارمند یا سمت موردنظرتان را انتخاب کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_15.jpg`}),l(Q,{children:`این مرحله لازم است دبیرخانه‌ای را که می‌خواهید نامه در آن به ثبت برسد، انتخاب کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_16.jpg`}),l(Q,{children:`پس از انتخاب دبیرخانه، لازم است از لیست اندیکاتورهای آن دبیرخانه، یک اندیکاتور را انتخاب کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_17.jpg`}),l(Q,{children:`فیلد بعدی محرمانگی است که سه گزینه عادی، محرمانه و سری را شامل می‌شود. بسته به اطلاعاتی که در متن و یا پیوست‌های نامه ارائه می‌شود، ممکن است بخواهید گیرنده نامه از سطح محرمانگی آن مطلع شود. در این صورت گزینه محرمانه یا سری را انتخاب کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_18.jpg`}),l(Q,{children:`فیلد بعدی مربوط به اولویت نامه است که ممکن است عادی، فوری یا آنی باشد. با مشاهده هر کدام از این گزینه‌ها، گیرندگان خواهند دانست که اولویت رسیدگی و پاسخگویی به این نامه در چه سطحی است.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_19.jpg`}),l(Q,{children:`در سیستم ابری آوات، مراجع یک فیلد اختیاری است و به نامه‌ای اشاره می‌کند که شما در پاسخ به آن، نامه جدیدی تنظیم می‌کنید. نوع مرجع را با کلیک کردن روی فیلد مربوطه، از لیست انتخاب کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_20.jpg`}),l(Q,{children:`شماره نامه مرجع و تاریخ آن را هم در فیلدهای مربوطه وارد کنید. برای یک نامه، می‌توانید بیش از یک مرجع تعریف کنید.همچنین در صورت نیاز، اطلاعات تکمیلی را در فیلد یادداشت تایپ کنید. حالا اطلاعات نامه کامل شده و می‌توانید با کلیک کردن روی دکمه ذخیره، یک نسخه از آن را در کارتابل خود ذخیره کنید.`}),l($,{img:`./guide-images/outgoing-letter/outgoingLetter_21.jpg`})]}),Sm=()=>d(`div`,{children:[l(nm,{title:`چارت پرسنلی`}),l(Q,{children:`چارت پرسنلی بر اساس چارت سازمانی و سمت‌هایی که به کارمندان اختصاص داده شده شکل می‌گیرد. برای مشاهده چارت پرسنلی وارد سیستم ابری آوات شوید و روی نام سازمان موردنظر کلیک کنید.در میز کار سازمان، از ستون سمت راست روی گزینه ساختار سازمانی کلیک کنید.`}),l($,{img:`./guide-images/personnel-chart/personnelChart_1.jpg`}),l(Q,{children:`در صفحه سمت‌های سازمانی، تب دوم (چارت پرسنلی) را در حالت فعال قرار دهید. درختی که در تب چارت پرسنلی مشاهده می‌کنید، درختی است که جایگاه‌های موجود در سازمان را نمایش می‌دهد. در چارت پرسنلی سه نوع جایگاه وجود دارد:`}),l($,{img:`./guide-images/personnel-chart/personnelChart_2.jpg`}),l(Q,{children:`جایگاه آزاد: به جایگاهی گفته می‌شود که سمت متناظر آن به هیچ کارمندی اختصاص داده نشده است و زیرمجموعه هم ندارد (برای سمت متناظر آن جایگاه، سمت زیرمجموعه ایجاد نشده است). در آوات جایگاه آزاد با خط نقطه‌چین نمایش داده می‌شود. در تصویر زیر، کارآموز یک جایگاه آزاد است.`}),l(Q,{children:`جایگاه رزرو شده: جایگاهی است که کارمند ندارد، اما زیرمجموعه تصدی‌شده دارد. یعنی در چارت سازمانی برای سمت متناظر آن، حداقل یک سمت زیرمجموعه ایجاد شده و به یک کارمند اختصاص داده شده است. همچنین جایگاهی که قبلاً کارمند داشته، اما بعداً از آن کارمند گرفته شده هم رزرو شده به شمار می‌رود. در تصویر زیر، مدیر مالی یک جایگاه رزرو شده است.`}),l(Q,{children:`جایگاه‌های دارای کارمند: به جایگاه‌هایی گفته می‌شود که سمت متناظر با آنها حداقل به یک کارمند اختصاص داده شده باشد. در تصویر زیر کارشناس مالی یک جایگاه دارای کارمند است.`}),l($,{img:`./guide-images/personnel-chart/personnelChart_3.jpg`}),l(Q,{children:`اگر نمی‌خواهید جایگاه‌های آزاد در درخت پرسنلی نمایش داده شوند، چک‌باکس کنار «عدم نمایش جایگاه‌های آزاد» را فعال کنید. با این کار فقط جایگاه‌های رزرو شده و جایگاه‌هایی که کارمند دارند، نمایش داده می‌شوند.`}),l($,{img:`./guide-images/personnel-chart/personnelChart_4.jpg`}),l(Q,{children:`لازم به ذکر است که به محض این که یک سمت به یک کارمند اختصاص داده می‌شود، یک کارتابل به صورت خودکار برای آن جایگاه ایجاد می‌شود. فلوچارت زیر نحوه تشخیص نوع یک جایگاه را بر اساس سمت‌های متناظر آن نمایش می‌دهد.`})]}),Cm=()=>d(`div`,{children:[l(nm,{title:`پروژه‌ها`}),d(Q,{children:[`راهکار `,l(`span`,{style:{fontWeight:`bold`},children:` «پروژه‌ها» `}),` در آوات، ابزاری کاربردی برای مدیریت متمرکز و تیمی پروژه‌هاست. با استفاده از این ابزار، می‌توانید مراحل مختلف یک پروژه را تعریف، پیگیری و تا رسیدن به نتیجه نهایی مدیریت کنید. به کمک این ابزار، از برنامه‌ریزی و تقسیم کار گرفته تا بررسی پیشرفت و تحویل نهایی، همه چیز در یک مسیر شفاف و قابل‌ردیابی قرار می‌گیرد.`]}),l(Q,{children:`تمام کاربران ثبت‌نام‌شده در آوات که در یک سازمان عضو هستند، می‌توانند از راهکار «پروژه‌ها» بهره‌مند شوند. هر عضوی از سازمان که در اجرای پروژه‌ها نقش دارد، می‌تواند به این ابزار دسترسی داشته و نقش خود را در تحقق اهداف سازمان ایفا کند.`}),l(Q,{children:`ایجاد پروژه:`}),l(Q,{children:`برای ایجاد پروژه، از دو طریق می‌توانید گزینه «پروژه‌ها» را انتخاب کنید:`}),l(Q,{children:`• منوی راهکار سمت راست صفحه میز کار`}),l(Q,{children:`• دسترسی سریع پایین صفحه`}),l($,{img:`./guide-images/projects/projects-1.jpg`}),l($,{img:`./guide-images/projects/projects-2.jpg`}),l(Q,{children:`صفحه‌ای به شکل پایین ظاهر می‌شود که نمایی کلی از وضعیت پروژه‌های فعال، مالک و اعضای پروژه‌ها را به تفکیک نشان می‌دهد. مالک هر پروژه می‌تواند جزئیات پروژه را مدیریت و ویرایش کند؛ از جمله تغییر عنوان، توضیحات، اعضا و کارهای مرتبط، تا پروژه‌ها دقیق‌تر و متناسب با نیازها پیش بروند.`}),l($,{img:`./guide-images/projects/projects-3.jpg`}),d(Q,{children:[`حالا برای ساخت یک پروژه جدید بر روی دکمه بنفش`,` `,l(`span`,{style:{fontWeight:`bold`},children:` «ایجاد پروژه جدید» `}),` در سمت چپ صفحه کلیک کنید. صفحه‌ای به شکل زیر ظاهر می‌شود:`]}),l($,{img:`./guide-images/projects/projects-4.jpg`}),l(Q,{children:`بعد از پرکردن عنوان پروژه(وارد کردن آن الزامی است) و توضیحات(وارد کردن آن اختیاری است) می‌توانید با کلیک روی دکمه + در بخش «اعضای پروژه»، افراد مدنظر خود از بین اعضای سازمان را به پروژه اضافه کنید. در انتها، دکمه «ایجاد پروژه» را در پایین کادر بزنید.`}),l($,{img:`./guide-images/projects/projects-5.jpg`}),l(Q,{children:`تخصیص کار به پروژه:`}),l(Q,{children:`در زمان ایجاد یا ویرایش یک کار، می‌توانید آن را به یک پروژه مشخص اختصاص دهید تا تمامی کارهای مرتبط با پروژه به‌صورت یکپارچه قابل مدیریت و پیگیری باشند.`}),l(Q,{children:`برای این موضوع، در هنگام «ایجاد کار جدید»، از بین پروژه‌هایی که قبلا تعریف کرده‌اید، پروژه مدنظر را انتخاب کنید تا کار ایجاد‌شده به آن پروژه مشخص تخصیص پیدا کند.`}),l($,{img:`./guide-images/projects/projects-6.jpg`}),l(Q,{children:`مشاهده لیست پروژه‌های من:`}),l(Q,{children:`از بخش پروژه‌ها در سمت راست منوی اصلی داشبورد می‌توانید لیست تمامی پروژه‌هایی که در آن‌ها عضو هستید را (چه به‌عنوان مالک و چه به‌عنوان عضو عادی) به‌صورت یکجا مشاهده کنید تا دسترسی سریع‌تری به پروژه‌های خود داشته باشید.`}),l(Q,{children:`هرگاه کارمندی به یک پروژه جدید اضافه شود، یک اعلان خودکار برای او ارسال می‌شود تا از عضویت خود در پروژه و جزئیات مربوط به آن مطلع گردد.`}
1466),l(Q,{children:`صفحه اختصاصی برای هر پروژه:`}),l(Q,{children:`برای هر پروژه یک صفحه اختصاصی در دسترس است که می‌توانید تمامی کارهای مرتبط با آن را در یک‌جا مشاهده و مدیریت کنید. برای دسترسی به این بخش، بعد از کلیک روی آیکون «پروژه‌ها»، از طریق گزینه‌های «مشاهده پروژه»(آیکون چشم) و «ویرایش پروژه»(آیکون قلم) در سمت چپ کادر(کنار فلش سبز)، می‌توانید جزئیات هر پروژه را بررسی کنید.`}),l($,{img:`./guide-images/projects/projects-7.jpg`}),l(Q,{children:`با کلیک بر روی گزینه ویرایش، جزئیات هر پروژه به تفکیک زیر قابل مشاهده است:`}),l(Q,{children:`• کارهای پروژه`}),l(Q,{children:`• اعضای پروژه`}),l(Q,{children:`• اطلاعات پروژه`}),l($,{img:`./guide-images/projects/projects-8.jpg`})]}),wm=()=>d(`div`,{children:[l(nm,{title:`اطلاع از زمان باز شدن نامه`}),l(Q,{children:`پس از ارجاع نامه، نامه از کارتابل جاری شما خارج شده ودر تب ارجاع شده‌ها به شما نمایش داده می‌شود. در صورت باز شدن نامه توسط گیرنده، تیک کنار اسم گیرنده ارجاع به صورت سبز رنگ به شما نمایش داده می‌شود و با نگه داشتن موس بر روی آن، زمان باز شدن نامه به شما نمایش داده می‌شود.`}),l($,{img:`./guide-images/read-letter-notice/read_Letter_notice.png`})]}),Tm=()=>d(`div`,{children:[l(nm,{title:`فراموشی رمز عبور`}),l(Q,{children:`اگر بعد از ثبت‌نام در سیستم ابری آوات، رمز عبور خود را فراموش کرده‌اید و نمی‌توانید وارد شوید، از قابلیت فراموشی رمز عبور استفاده کنید. برای این کار روی «رمز عبور خود را فراموش کرده‌اید؟» کلیک کنید.`}),l($,{img:`./guide-images/recover-password/recoverPassword_1.jpg`}),l(Q,{children:`با این کار وارد صفحه بازیابی رمز عبور می‌شوید. در این صفحه لازم است دو فیلد شماره موبایل و رمز عبور جدید را وارد کنید و سپس روی دکمه ادامه کلیک کنید.`}),l($,{img:`./guide-images/recover-password/recoverPassword_2.jpg`}),l(Q,{children:`در این مرحله یک کد تایید چهار رقمی برای شماره موبایل شما ارسال می‌شود. این کد را در فیلد مربوطه وارد کنید و روی دکمه تایید کلیک کنید.`}),l($,{img:`./guide-images/recover-password/recoverPassword_3.jpg`}),l(Q,{children:`با تایید کد چهار رقمی، رمز عبور شما تغییر می‌کند. با کلیک کردن روی دکمه بازگشت به صفحه ورود، می‌توانید با همان نام کاربری و رمز عبور جدید، وارد سیستم ابری آوات شوید.`}),l($,{img:`./guide-images/recover-password/recoverPassword_4.jpg`})]}),Em=()=>d(`div`,{children:[l(nm,{title:`ثبت رسید نامه ارسالی `}),l(Q,{children:`پس از این که نامه ارسالی را ثبت و امضا کردید و به دست گیرنده رساندید، می‌توانید در سیستم ابری آوات برای آن یک رسید ثبت کنید. این رسید نشان می‌دهد که نامه چه زمانی و به چه کسی تحویل داده شده و برای پیگیری‌های آتی کار شما را ساده می‌کند. برای ثبت رسید نامه ارسالی به کارتابل سازمان موردنظر بروید و نامه ارسالی را باز کنید.`}),l($,{img:`./guide-images/regist-outgoing-letter/regist_outgoing_letter_1.jpg`}),l(Q,{children:`در صفحه ویرایش نامه، روی گزینه «بیشتر» در پایین صفحه کلیک کنید.`}),l($,{img:`./guide-images/regist-outgoing-letter/regist_outgoing_letter_2.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، روی گزینه «رسید ارسال» کلیک کنید.`}),l($,{img:`./guide-images/regist-outgoing-letter/regist_outgoing_letter_3.jpg`}),l(Q,{children:`در صفحه رسیدهای ارسال، روی گزینه «ثبت رسید ارسال» کلیک کنید.`}),l($,{img:`./guide-images/regist-outgoing-letter/regist_outgoing_letter_4.jpg`}),l(Q,{children:`با این کار یک صفحه باز می‌شود که باید در آن مشخصات رسید دریافت شده هنگام تحویل نامه ارسالی را وارد کنید و دکمه ثبت را بزنید.`}),l($,{img:`./guide-images/regist-outgoing-letter/regist_outgoing_letter_5.jpg`}),l(Q,{children:`با زدن دکمه ثبت، به صفحه رسیدهای ارسال بازمی‌گردید و رسید ثبت شده را مشاهده می‌کنید. برای Ù
1466‡Ø± نامه ارسالی می‌توانید بیشتر از یک رسید ارسال ثبت کنید.`}),l($,{img:`./guide-images/regist-outgoing-letter/regist_outgoing_letter_5.jpg`})]}),Dm=()=>d(`div`,{children:[l(nm,{title:`ثبت‌نام`}),l(Q,{children:`برای استفاده از سیستم آوات، لازم است یک اکانت کاربری در آن داشته باشید. این اکانت در اولین مراجعه از طریق صفحه ثبت‌نام ساخته می‌شود و در مراجعه‌های بعدی، می‌توانید با نام کاربری و رمز عبور، وارد سیستم شوید. برای ثبت‌نام در سیستم آوات، صفحه ورود سیستم را باز کنید و در پایین صفحه، گزینه «ثبت‌نام کنید» را بزنید.`}),l($,{img:`./guide-images/register/register_1.jpg`}),l(Q,{children:`در صفحه بعدی، لازم است اطلاعات حساب کاربری شامل شماره تلفن همراه، نام کاربری و رمز عبور را وارد کنید. هنگام انتخاب نام کاربری و رمز عبور، به راهنمای هر فیلد توجه کنید. بعد از ایجاد حساب کاربری امکان تغییر نام کاربری و شماره موبایل وجود ندارد، پس در انتخاب آنها دقت کنید.`}),l($,{img:`./guide-images/register/register_2.jpg`}),l(Q,{children:`پس از وارد کردن شماره تلفن همراه، نام کاربری و رمز عبور، قوانین و مقررات استفاده از سیستم ابری آوات را مطالعه کنید و دکمه ثبت‌نام را بزنید.`}),l($,{img:`./guide-images/register/register_3.jpg`}),l(Q,{children:`با زدن دکمه ثبت‌نام، یک کد تایید چهار رقمی برای شماره موبایلی که در مرحله قبل وارد کردید، ارسال می‌شود. این کد تایید را در باکس خالی وارد کنید و دکمه تایید را بزنید.`}),l($,{img:`./guide-images/register/register_4.jpg`}),l(Q,{children:`با زدن دکمه تایید، حساب کاربری شما در آوات ایجاد شده و پیغام زیر در یک صفحه جدید نمایش داده می‌شود. از این پس می‌توانید با همین مشخصات، وارد سیستم ابری آوات شوید.`}),l($,{img:`./guide-images/register/register_5.jpg`})]}),Om=()=>d(`div`,{children:[l(nm,{title:`آزاد کردن جایگاه`}),l(Q,{children:`به عنوان مالک یا راهبر ارشد سازمان، می‌توانید یک جایگاه رزرو شده را در چارت پرسنلی آزاد کنید تا از ظرفیت سمت متناظر آن در جایگاه دیگری استفاده کنید یا کلا سمت آن جایگاه را غیرفعال کنید. برای آزاد کردن یک جایگاه، روی آیکون سه‌نقطه در مقابل آن کلیک کنید و «آزاد کردن جایگاه» را بزنید. اما آزاد کردن جایگاه‌ها قواعدی دارد که در ادامه شرح می‌دهیم:`}),l($,{img:`./guide-images/release-slot/release-slot_2.jpg`}),l(Q,{children:`جایگاهی را می‌توانید از این طریق آزاد کنید که کارمند نداشته باشد و جایگاه رزرو شده‌ای هم زیر مجموعه‌ آن نباشد. بنابراین بدیهی است که گزینه آزاد کردن جایگاه در مورد جایگاه‌های دارای کارمند و جایگاه‌های آزاد کاربردی ندارد. همانطور که در تصویر می‌بینید، گزینه آزاد کردن جایگاه مدیر مالی غیرفعال است.`}),l($,{img:`./guide-images/release-slot/release-slot_3.jpg`}),l(Q,{children:`هر جایگاه رزرو شده به یک کارتابل متصل است. اگر بخواهید یک جایگاه رزرو شده را آزاد کنید، لازم است در مورد کارتابل متصل به آن تصمیم‌گیری کنید، چون دسترسی شما به آن قطع خواهد شد. این موضوع در قالب یک پیام که شما اعلام می‌شود و طبق دستورالعمل می‌توانید نسبت به ادامه فرایند یا انصراف از آن اقدام کنید.`}),l($,{img:`./guide-images/release-slot/release-slot_4.jpg`})]}),km=()=>d(`div`,{children:[l(nm,{title:`درخواست امضا`}),l(Q,{children:`بعد از این که نامه را ثبت و ذخیره می‌کنید، نامه بدون امضا در کارتابل جاری سازمان قرار می‌گیرد. برای این که بتوانید نامه را شماره کنید و به گردش دربیاورید، لازم است ابتدا آن را امضا کنید یا به کسی که باید نامه را امضا کند، ارجاع بدهید. برای این کار وارد کارتابل شوید. در ستون وضعیت امضاها، یک Ø¢Û
1466ŒÚ©ÙˆÙ† نارنجی رنگ مشاهده می‌شود که نشان می‌دهد نامه امضا نشده است. برای درخواست امضا، روی ردیف نامه کلیک کنید.`}),l($,{img:`./guide-images/request-to-sign/requestToSign_1.jpg`}),l(Q,{children:`در صفحه ویرایش نامه، روی دکمه ارجاع در پایین و سمت چپ کلیک کنید.`}),l($,{img:`./guide-images/request-to-sign/requestToSign_2.jpg`}),l(Q,{children:`در پنجره ارجاع، لازم است فیلد گیرندگان را پر کنید. برای این کار روی فیلد کلیک کنید تا لیست سمت‌های سازمانی باز شود. دقت کنید که برای درخواست امضای نامه، گیرنده باید همان کارمندی باشد که در مرحله ثبت نامه و در بخش اطلاعات ثبتی، به عنوان امضاکننده انتخاب کرده‌اید.`}),l($,{img:`./guide-images/request-to-sign/requestToSign_3.jpg`}),l(Q,{children:`پس از انتخاب کارمند امضاکننده نامه، در پایین پنجره ارجاع، روی تگ درخواست امضا کلیک کنید. گیرنده نامه با مشاهده این تگ‌، خواهد دانست که نامه برای چه کاری به او ارجاع شده است.`}),l($,{img:`./guide-images/request-to-sign/requestToSign_4.jpg`}),l(Q,{children:`پس از انتخاب تگ درخواست امضا، روی دکمه ارجاع کلیک کنید.`}),l($,{img:`./guide-images/request-to-sign/requestToSign_5.jpg`}),l(Q,{children:`با این کار درخواست امضای نامه ثبت می‌شود. همچنین نامه از کارتابل جاری خارج شده و در بخش نامه‌های ارجاع شده قابل پیگیری خواهد بود. برای پیگیری وضعیت امضای نامه، به ستون وضعیت امضاها توجه کنید. بعد از امضای نامه، آیکون وضعیت امضا به رنگ سبز درمی‌آید.`}),l($,{img:`./guide-images/request-to-sign/requestToSign_6.jpg`})]}),Am=()=>d(`div`,{children:[l(nm,{title:`بازگشت ارجاع`}),l(Q,{children:`پس از ارجاع نامه، تا زمانی که گیرنده ارجاع نامه را باز نکرده باشد، می‌توانید آن نامه را به کارتابل خود برگردانید. کافیست وارد لیست نامه‌های ارجاع شده شوید و بر روی آیکونی که در تصویر زیر مشاهده می‌کنید، کلیک کنید تا نامه را به کارتابل خود بازگشت دهید.`}),l($,{img:`./guide-images/revert-forward/revert_forward.jpg`})]}),jm=()=>d(`div`,{children:[l(nm,{title:`راهبران دبیرخانه‌ها`}),l(Q,{children:`برای دادن دسترسی راهبر دبیرخانه به کارمندان سازمان، وارد کارتابل سازمان شوید و از پایین و سمت راست صفحه، دبیرخانه‌ها را بزنید.`}),l($,{img:`./guide-images/secretariat-admin/secretariat_admin_1.jpg`}),l(Q,{children:`در صفحه مدیریت دبیرخانه‌ها، دبیرخانه‌ای را که می‌خواهید برای آن راهبر ایجاد کنید، انتخاب کنید و روی آیکون مقابل آن کلیک کنید.`}),l($,{img:`./guide-images/secretariat-admin/secretariat_admin_2.jpg`}),l(Q,{children:`در این صفحه می‌توانید راهبران دبیرخانه موردنظر را از بین کارمندانی که قبلاً به آنها اعتبار دسترسی به راهکار مکاتبات را داده‌‌اید (کاربران مکاتبات) انتخاب کنید. برای این کار روی فیلد بالای صفحه کلیک کنید تا لیست کاربران مکاتبات باز شود و گزینه «افزودن» را بزنید.`}),l($,{img:`./guide-images/secretariat-admin/secretariat_admin_3.jpg`}),l(Q,{children:`بعد از ایجاد دسترسی، گزینه «افزودن» به «حذف» تغییر می‌کند و نام کارمند به لیست راهبران مکاتبات آن دبیرخانه اضافه می‌شود. برای گرفتن دسترسی راهبری مکاتبات از کارمند، می‌توانید در همین مرحله گزینه حذف را بزنید.`}),l($,{img:`./guide-images/secretariat-admin/secretariat_admin_4.jpg`}),l(Q,{children:`همچنین می‌توانید در لیست راهبران دبیرخانه، در مقابل نام هر کارمند روی گزینه حذف کلیک کنید تا از لیست راهبران آن دبیرخانه حذف شود.`}),l($,{img:`./guide-images/secretariat-admin/secretariat_admin_5.jpg`})]}),Mm=()=>d(`div`,{children:[l(nm,{title:`تعیین راهبران ارشد`}),l(Q,{children:`یکی از نقش‌هایی که به عنوان مالک سازمان می‌توانید به کاربران دیگر بدهید، راهبر ارشد است. راهبر ارشد تمام دسترسی‌های مالک سازمان را دارد، با این تفاوت که نقش مالک سازمان را نمی‌توان از او گرفت، اما نقش راهبر ارشد را می‌توان از کارمندان سازمان گرفت. راهبران ارشد را می‌توانید از میان کارمندان فعال سازمان انتخاب کنید، حتی اگر به آنها سمت اختصاص نداده باشید. برای این کار وارد سازمان موردنظر شوید.`}),l($,{img:`./guide-images/select-super-admin/select_super_admin_1.jpg`}),l(Q,{children:`در میز کار سازمان، از ستون سمت راست روی گزینه راهبران کلیک کنید.`}),l($,{img:`./guide-images/select-super-admin/select_super_admin_2.jpg`}),l(Q,{children:`در این صفحه، روی فیلد افزودن کارمند به راهبران ارشد سازمان کلیک کنید تا لیست کارمندان باز شود.`}),l($,{img:`./guide-images/select-super-admin/select_super_admin_3.jpg`}),l(Q,{children:`در مقابل نام هر کارمند، گزینه افزودن را بزنید. با این کار کارمند موردنظر به لیست راهبران ارشد سازمان اضافه خواهد شد.`}),l($,{img:`./guide-images/select-super-admin/select_super_admin_4.jpg`}),l(Q,{children:`بعد از افزودن کارمند به راهبران ارشد سازمان، گزینه «افزودن» به «حذف» تغییر می‌کند و نام کارمند به لیست راهبران ارشد اضافه می‌شود. برای حذف کارمند از لیست راهبران ارشد، می‌توانید در همین مرحله گزینه حذف را بزنید.`}),l($,{img:`./guide-images/select-super-admin/select_super_admin_5.jpg`}),l(Q,{children:`همچنین می‌توانید در مقابل نام هر کارمند روی گزینه حذف کلیک کنید. برای تعداد راهبران ارشد سازمان محدودیتی وجود ندارد و به تعداد کارمندان می‌توانید راهبر ارشد داشته باشید.`}),l($,{img:`./guide-images/select-super-admin/select_super_admin_5.jpg`}),l(Q,{children:`برای مشاهده لیست دسترسی‌های راهبران ارشد، روی گزینه «مشاهده دسترسی‌ها» در همین صفحه کلیک کنید.`}),l($,{img:`./guide-images/select-super-admin/select_super_admin_6.jpg`})]}),Nm=()=>d(`div`,{children:[l(nm,{title:`ارسال نامه با فرمت ECE`}),l(Q,{children:`در مبحث «تبدیل نامه ارسالی به فایل xml» گفتیم که می‌توانید فایل xml نامه ارسالی را از طریق ایمیل یا شبکه‌های اجتماعی یا... به دست گیرنده نامه (مخاطب سازمان) در سازمان مقصد برسانید تا آن را در سیستم اتوماسیون آن سازمان، به عنوان یک نامه وارده ثبت کند. اما این فرایند را می‌توانید به صورت خودکار هم انجام بدهید. برای این کار لازم است ابتدا تنظیمات ece را دبیرخانه موردنظر را مطابق راهنما اعمال کنید.`}),l(Q,{children:`بعد از اعمال تنظیمات ece در دبیرخانه موردنظر، وارد کارتابل خود شوید و نامه‌ای را که می‌خواهید با فرمت ece ارسال کنید، باز کنید.`}),l($,{img:`./guide-images/send-with-format-ece/send_with_ece_format_1.jpg`}),l(Q,{children:`در صفحه ویرایش نامه، روی گزینه «بیشتر» در پایین و سمت راست صفحه کلیک کنید.`}),l($,{img:`./guide-images/send-with-format-ece/send_with_ece_format_2.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، روی گزینه «ارسال با فرمت ECE» کلیک کنید.`}),l($,{img:`./guide-images/send-with-format-ece/send_with_ece_format_3.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، آدرس ایمیل گیرنده نامه را وارد کنید. در مرحله بعد، قالبی را که می‌خواهید نامه با آن ارسال شود، انتخاب کنید و سپس دکمه ارسال را بزنید.`}),l($,{img:`./guide-images/send-with-format-ece/send_with_ece_format_4.jpg`}),l(Q,{children:`پس از چند ثانیه پیامی مطابق تصویر مقابل دریافت می‌کنید که نشان می‌دهد ایمیل با موفقیت ارسال شده است. ایمیلی که گیرنده نامه دریافت می‌کند، شامل یک فایل xml حاوی مشخصات Ù
1466†Ø§Ù…Ù‡ ارسالی است.`}),l($,{img:`./guide-images/send-with-format-ece/send_with_ece_format_5.jpg`})]}),Pm=()=>d(`div`,{children:[l(nm,{title:` تنظیمات ECE`}),l(Q,{children:`پس از ثبت یک نامه ارسالی در اتوماسیون اداری آوات، قدم بعدی این است که نامه را به دست گیرنده (مخاطب سازمان) برسانید. این کار را می‌توانید به صورت حضوری انجام دهید، یعنی فیزیک نامه را به دست گیرنده برسانید و رسید ارسال نامه را در آوات ثبت کنید.`}),l(Q,{children:`پس از ثبت یک نامه ارسالی در اتوماسیون اداری آوات، قدم بعدی این است که نامه را به دست گیرنده (مخاطب سازمان شما) برسانید. این کار را می‌توانید به صورت حضوری انجام دهید، یعنی فیزیک نامه را به دست گیرنده برسانید و رسید ارسال نامه را در آوات ثبت کنید.`}),l(Q,{children:`راه دیگر ارسال نامه استفاده از امکانات آوات برای ECE است که شما را از مراجعه حضوری به سازمان مقصد بی نیاز می‌کند ECE .یا پروتکل تبادل الکترونیک مکاتبات، از طریق انتقال نامه در قالب فایل‌های XML کار می‌کند و امکان ارتباط نرم افزارهای اتوماسیون اداری را با یکدیگر فراهم می‌کند.`}),l(Q,{children:`مکاتبات اداری آوات از این پروتکل پشتیانی می‌کند؛ به این معنی که سازمان‌هایی که از آوات استفاده می‌کنند، می‌توانند بدون هیچ محدودیتی با سازمان‌هایی که از سایر نرم افزارهای اتوماسیون اداری استفاده می‌کنند، مکاتبه داشته باشند. برای استفاده از ECE لازم است در یکی از سرویس‌های ایمیل، اکانت ایجاد کنید و تنظیمات smtp ایمیل را در دبیرخانه سازمان وارد کنید.`}),l(Q,{children:`برای وارد کردن تنظیمات ece، وارد کارتابل سازمان شوید و از پایین و سمت راست، دبیرخانه‌ها را بزنید.`}),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_1.png`}),l(Q,{children:`دبیرخانه موردنظر را که می‌خواهید تنظیمات ece را در آن اعمال کنید، انتخاب کنید. با اعمال تنظیمات ece در هر دبیرخانه، فقط ارسال نامه‌های همان دبیرخانه از طریق ece امکانپذیر خواهد شد. بنابراین لازم است این تنظیمات را برای همه دبیرخانه‌هایی که از آنها نامه ارسالی صادر می‌شود، اعمال کنید. نکته دیگر این که از هر اکانت ایمیل، فقط برای اعمال تنظیمات یکی از دبیرخانه‌های سازمان می‌توانید استفاده کنید.`}),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_2.png`}),l(Q,{children:`با کلیک کردن روی نام دبیرخانه، وارد صفحه ویرایش آن می‌شوید. در این صفحه، روی تب چهارم (تنظیمات ece) کلیک کنید.`}),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_3.png`}),l(Q,{children:`در تب تنظیمات ece دو پنجره وجود دارد که یکی مربوط به تنظیمات ارسال ece و دیگری مربوط به تنظیمات دریافت ece هستند. اطلاعاتی را که باید در این فیلدها وارد کنید، از تنظیمات اکانت ایمیلی که ساخته‌اید، دریافت کنید.`}),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_4.png`}),l(Q,{children:`پس از وارد کردن اطلاعات مربوط به ارسال و دریافت ece، روی دکمه ذخیره کلیک کنید.`}
1466),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_5.png`}),l(Q,{children:`با کلیک کردن روی دکمه ذخیره، پیغامی مشابه تصویر روبه‌رو دریافت می‌کنید. اما می‌توانید برای اطمینان از این که همه اطلاعات به درستی وارد شده و اتصال آوات به سرویس ایمیل برقرار شده است، از «تست اتصال» هم استفاده کنید.`}),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_6.png`}),l(Q,{children:`اگر اتصال آوات به سرویس ارسال ایمیل به درستی انجام شده باشد، با کلیک کردن روی دکمه تست اتصال، پیغامی مشابه تصویر روبه‌رو دریافت خواهید کرد. در غیر این صورت، پیغام خطا نشان می‌دهد که لازم است تنظیمات ece را اصلاح کنید.`}),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_7.png`}),l(Q,{children:`در غیر این صورت، پیغام خطا نشان می‌دهد که لازم است تنظیمات ece را اصلاح کنید.`}),l($,{img:`./guide-images/setting-ece-letter/setting-ece-letter_8.png`})]}),Fm=()=>d(`div`,{children:[l(nm,{title:`امضا کردن نامه`}),l(Q,{children:`همانطور که در تصویر مشاهده می‌کنید، نامه‌ای که برای امضا به شما ارجاع شده، در کارتابل جاری شما قرار گرفته و با آیکون نارنجی رنگ در ستون وضعیت امضاها مشخص شده است. روی ردیف نامه کلیک کنید تا وارد صفحه ویرایش نامه شوید.`}),l($,{img:`./guide-images/sign-letter/signLetter_1.jpg`}),l(Q,{children:`در صفحه ویرایش نامه، روی گزینه امضا در پایین صفحه کلیک کنید.`}),l($,{img:`./guide-images/sign-letter/signLetter_2.jpg`}),l(Q,{children:`همانطور که در تصویر زیر مشاهده می‌کنید، در کارتابل آیکون نارنجی رنگ در انتظار امضا، به آیکون سبز رنگ امضا شده تغییر کرده است. اگر امضاکننده نامه تصویر امضای خود را در بخش اطلاعات کاربری آپلود کرده باشد، امضای او در نسخه چاپی نامه هم نمایش داده می‌شود.`}),l($,{img:`./guide-images/sign-letter/signLetter_3.jpg`})]}),Im=()=>d(`div`,{children:[l(nm,{title:`کارها`}),d(Q,{children:[`راهکار `,l(`span`,{style:{fontWeight:`bold`},children:` «کارها» `}),`در آوات، ابزاری ساده و کارآمد برای مدیریت وظایف شخصی و کاری شماست. با این ابزار، می‌توانید تمام مسئولیت‌ها و وظایف و تسک‌های خود را به‌صورت یکپارچه و همیشه در دسترس داشته باشید.`]}),l(Q,{children:`تمام کاربران ثبت‌نام‌شده در آوات که به یک سازمان متصل هستند، می‌توانند از قابلیت‌های «کارها» استفاده کنند. این ویژگی به‌صورت پیش‌فرض برای همه کاربران فعال است و نیازی به خرید یا فعال‌سازی ندارد. هر کاربری که در یک سازمان عضو شده و سمتی دریافت کرده باشد، به این راهکار دسترسی خواهد داشت.`}),l(Q,{children:`ایجاد کار جدید`}),l(Q,{children:`برای ایجاد یک کار جدید، کافی است روی گزینه «+» در بالای صفحه کلیک کنید.`}),l($,{img:`./guide-images/tasks/tasks-1.jpg`}),d(Q,{children:[`پس از کلیک روی گزینه «+»، صفحه‌ای با عنوان`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«ایجاد کار جدید»`}),` برای شما باز می‌شود. مشخصات زیر را برای تکمیل این بخش باید پر کرد:`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• عنوان کار`}),`: وارد کردن عنوان، اولین و ضروری‌ترین گام در ایجاد یک کار جدید است.`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• توضیحات`}),`: پس از تعیین عنوان، می‌توانید جزئیات و اطلاعات تکمیلی را در بخش «توضیحات» اضافه کنید.`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• تاریخ و ساعت`}),`: در این مرحله، می‌توانید برای کار موردنظر تاریخ شروع و پایان تعیین کنید.`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• تخصیص کار`}),`: از طریق گزینه`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«اختصاص کار به»`}),` می‌توانید این کار را به خودتان یا یکی از همکاران سازمانتان واگذار کنید.`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• انتخاب پروژه`}),`: هر کار را می‌توانید به پروژه‌هایی که از پیش تعریف شده‌اند، تخصیص دهید.`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• پیوست‌ها `}),`: فایل‌های ضمیمه مدنظر هر کار را تا حجم 15 مگابایت از طریق این بخش، بارگذاری کنید.`]}),l(Q,{children:`از طریق آیکون بالا، سمت چپ می‌توانید برای Ù
1466‡Ø± کار، یک برچسب هم تعیین کنید تا مسیر جستجوی کارها برای شما ساده‌تر شود.`}),l($,{img:`./guide-images/tasks/tasks-2.png`}),l(Q,{children:`پس از تکمیل فرم «ایجاد کار جدید»، الگوی نمایش آن به شکل زیر خواهد بود.`}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`•`}),` اگر می‌خواهید کاری را به پایان برسانید، کافی است روی گزینه `,l(`span`,{style:{fontWeight:`bold`},children:`«کار انجام شد»`}),` در پایین این بخش کلیک کنید.`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`•`}),` همچنین، در صورتی که نیاز به تغییر اطلاعات کار داشته باشید، می‌توانید از گزینه `,l(`span`,{style:{fontWeight:`bold`},children:`«ویرایش»`}),` در پایین، سمت چپ استفاده کنید.`]}),d(Q,{children:[`با این قابلیت‌ها، مدیریت و به‌روزرسانی کارها همیشه در دسترس شما خواهد بود. با کلیک روی گزینه`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«ثبت»`}),`، کار ایجادشده به لیست کارهای شما اضافه می‌شود.`]}),l($,{img:`./guide-images/tasks/tasks-3.jpg`}),d(Q,{children:[`حالا می‌توانید این کار را در`,` `,l(`span`,{style:{fontWeight:`bold`},children:`نمودار تایم‌لاین (جدول زمانی)`}),` میز کار مشاهده کرده و روند انجام آن را مدیریت کنید. در این بخش همه کارها و جلسات شما همیشه به شکل روزانه قابل‌رؤیت هستند.`]}),l($,{img:`./guide-images/tasks/tasks-4.jpg`}),d(Q,{children:[`از طرفی، با کلیک بر روی گزینه `,l(`span`,{style:{fontWeight:`bold`},children:`«تقویم آوات»`}),` در منوی سمت راست میز کار، این کار در بخش برنامه هفتگی شما هم قابل مشاهده است:`]}),l($,{img:`./guide-images/tasks/tasks-5.jpg`}),l(Q,{children:`مشاهده چک‌لیست`}),d(Q,{children:[`علاوه بر این، با کلیک روی گزینه `,l(`span`,{style:{fontWeight:`bold`},children:`«چک‌لیست»`}),` (کنار گزینه «+»)، می‌توانید لیست تمامی کارهای خود را مشاهده و مدیریت کنید.`]}),l(Q,{children:`در این بخش، کارها به دو دسته تقسیم می‌شوند:`}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• «اختصاص داده شده به من»`}),`: شامل کارهایی که دیگران به شما محول کرده‌اند.`]}),d(Q,{children:[l(`span`,{style:{fontWeight:`bold`},children:`• «ایجاد شده توسط من»`}),`: شامل کارهایی که خودتان ایجاد کرده‌اید.`]}),d(Q,{children:[`با کلیک روی هر بخش، می‌توانید کارهای مربوطه را به تفکیک مشاهده کنید. همچنین،`,` `,l(`span`,{style:{fontWeight:`bold`},children:` کارهای انجام‌شده`}),` در پایین همین منو نمایش داده می‌شوند و همچنان قابل مدیریت هستند.`]}),l($,{img:`./guide-images/tasks/tasks-6.jpg`}),l(Q,{children:`با کلیک بر روی اسم هر کار از بخش چک‌لیست، پنجره زیر باز می‌شود.`}),l($,{img:`./guide-images/tasks/tasks-7.jpg`}),l(Q,{children:`از طریق گزینه تاریخچه در بالا سمت چپ، که با فلش سبزرنگ مشخص شده است، تاریخچه هر کار، از زمان ایجاد تا اکنون نمایش داده می‌شود.`}),l($,{img:`./guide-images/tasks/tasks-8.jpg`}),l(Q,{children:`به کمک گزینه قرمز رنگ «حذف کار» در پایین این پنجره، این کار به شکل کامل قابل حذف است.`})]}),Lm=()=>d(`div`,{children:[l(nm,{title:`اختتام نامه`}),l(Q,{children:`هر کارمند دارای اعتبار مکاتبات، می‌تواند نامه‌ای را که به او ارجاع شده، مختومه کند تا مشخص شود که نامه دیگر از طرف او پیگیری نمی‌شود. فقط نامه‌ای را می‌شود مختومه کرد که امضا شده باشد و پس از مختومه شدن، نامه قابل ویرایش، امضا و لغو نیست. اما عملیاتی مانند ارجاع و چاپ را می‌توان روی آن نامه انجام داد.`}),l(Q,{children:`برای اختتام یک نامه، وارد کارتابل خود شوید و روی نامه‌ای که می‌خواهید آن را مختومه کنید، کلیک کنید.`}),l($,{img:`./guide-images/terminate-letter/terminate_letter_1.jpg`}),l(Q,{children:`در صفحه ویرایش نامه، روی گزینه «بیشتر» در پایین صفحه کلیک کنید.`}),l($,{img:`./guide-images/terminate-letter/terminate_letter_2.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، روی گزینه «اختتام نامه» کلیک کنید.`}),l($,{img:`./guide-images/terminate-letter/terminate_letter_3.jpg`}),l(Q,{children:`در پنجره‌ای که باز می‌شود، می‌توانید در مورد دلیل اختتام نامه توضیحات لازم را تایپ کنید. این توضیحات در سوابق نامه مشاهده می‌شود و کارمندان دیگری که این نامه را در کارتابل خود دارند، می‌توانند دلیل اختتام آن را مشاهده کنند. پس از درج توضیحات، دکمه «اختتام نامه» را بزنید.`}),l($,{img:`./guide-images/terminate-letter/terminate_letter_4.jpg`}),l(Q,{children:`با این کار یک پیام دریافت می‌کنید که مختومه شدن نامه را اعلام می‌کند. نامه‌های مختومه شده از کارتابل جاری خارج و به کارتابل نامه‌های بسته شده منتقل می‌شوند.`}),l($,{img:`./guide-images/terminate-letter/terminate_letter_5.jpg`})]}),Rm=()=>d(`div`,{children:[l(nm,{title:`اکانت رایگان 14 روزه`}),l(Q,{children:`قبل از این که برای خرید خدمات سیستم ابری آوات اقدام کنید، می‌توانید طرح رایگان 14 روزه را فعال و در این بازه، کار با نرم‌افزار را با 3 کاربر و تا حجم 1 گیگابایت شروع کنید. برای این کار در صفحه اصلی آوات، وارد سازمان موردنظر شوید.`}),l($,{img:`./guide-images/trial-account/trial-account_1.jpg`}),l(Q,{children:`در میز کار سازمان، روی دکمه راهکارهای آوات کلیک کنید.`}),l($,{img:`./guide-images/trial-account/trial-account_2.png`}),d(Q,{children:[`در قسمت راهکار مکاتبات، روی کلید «استفاده رایگان» کلیک کنید. این طرح رایگان برای مدت 14 روز از زمان فعال‌سازی، با 3 کاربر و تا حجم 1 گیگابایت قابل استفاده است. برای فعال کردن طرح رایگان 14 روزه روی دکمه `,l(`span`,{style:{fontWeight:`bold`},children:`«فعالش کن»`}),` کلیک کنید.`]}),d(Q,{children:[`با فعال کردن این طرح، به صفحه راهکارها بازمی‌گردید. در این صفحه حجم، زمان و تعداد کاربر باقیمانده را مشاهده خواهید کرد. هر زمان که مایل باشید، می‌توانید روی دکمه`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«خرید سرویس»`}),` کلیک کنید و نسبت به خرید اتوماسیون اداری ابری آوات اقدام کنید.`]})]}),zm=()=>d(`div`,{children:[l(nm,{title:`مشاهده و ویرایش اطلاعات کاربری`}),l(Q,{children:`بعد از ساختن حساب کاربری و ورود به سیستم ابری آوات، لازم است اطلاعات کاربری خود را کامل کنید. برای این کار، وارد سیستم شوید و روی آیکون پروفایل در بالا و سمت چپ صفحه کلیک کنید. از منویی که باز می‌شود، اطلاعات کاربری را انتخاب کنید.`}),l($,{img:`./guide-images/user-profile/userProfile_2.jpg`}),l(Q,{children:`در صفحه اطلاعات کاربری، سه تب وجود دارد. در تب اول که به اطلاعات هویتی اختصاص دارد، می‌توانید نام و نام خانوادگی، جنسیت، شماره تماس و آدرس را وارد کنید و سپس روی دکمه ثبت تغییرات کلیک کنید.`}),l($,{img:`./guide-images/user-profile/userProfile_3.jpg`}),l(Q,{children:`تب دوم به تغییر رمز عبور اختصاص دارد. برای تغییر رمز عبور، اطلاع از رمز عبور فعلی ضرورت دارد. رمز عبور فعلی و رمز عبور جدید را در فیلدهای مربوطه وارد کنید و روی دکمه تغییر رمز عبور کلیک کنید.`}),l($,{img:`./guide-images/user-profile/userProfile_5.jpg`}),l(Q,{children:`در تب سوم می‌توانید تصویر امضای خود را آپلود کنید. برای این کار روی علامت به‌علاوه (اضافه کردن امضا) کلیک کنید و فایل تصویر امضا را انتخاب کنید. فایل امضا باید بدون پس‌زمینه و فرمت آن png باشد.`}),l($,{img:`./guide-images/user-profile/userProfile_6.jpg`}),l(Q,{children:`پس از این که فایل تصویر امضا آپلود شد، روی دکمه ثبت تغییرات کلیک کنید.`}),l($,{img:`./guide-images/user-profile/userProfile_7.jpg`}),l(Q,{children:`با این کار امضای شما با موفقیت ثبت می‌شود و به صورت خودکار در نسخه چاپی اسنادی که شما امضاکننده آن هستید، درج خواهد شد. از این پس می‌توانید فایل تصویر امضا را با استفاده از گزینه ویرایش امضا عوض کنید.`}),l($,{img:`./guide-images/user-profile/userProfile_8.jpg`})]}),Bm=()=>d(`div`,{children:[l(nm,{title:`مشاهده تعرفه و ثبت سفارش `}),l(Q,{children:`پس از این که به‌عنوان مالک سازمان، اکانت رایگان 14 روزه را فعال کردید، در هر لحظه می‌توانید اقدام به ثبت سفارش خرید کنید تا کارشناسان فروش آوات با شما تماس بگÛ
1466ŒØ±Ù†Ø¯. برای این کار وارد میز کار سازمانی شوید که می‌خواهید برای آن راهکار مکاتبات را خریداری کنید.`}),l($,{img:`./guide-images/view-tariff/view-tariff-1.png`}),l(Q,{children:`در میز کار سازمان، از ستون سمت راست، روی راهکارها کلیک کنید.`}),l($,{img:`./guide-images/view-tariff/view-tariff-2.png`}),d(Q,{children:[`در صفحه راهکارها، روی دکمه «مشاهده تعرفه و خرید» کلیک کنید. در صورتی که مشتری فعلی آوات هستید برای تغییر وضعیت، از گزینه `,l(`span`,{style:{fontWeight:`bold`},children:`«ارتقای سرویس»`}),` استفاده کنید و تعداد کاربر و حجم مورد نیاز خود را افزایش دهید. شما می‌توانید این درخواست را با`,` `,l(`span`,{style:{fontWeight:`bold`},children:`«خرید برای بازه زمانی جدید»`}),` برای یک دوره جدید ثبت کنید`]}),l(Q,{children:`در این صفحه می‌توانید موارد زیر را تغییر دهید:`}),l(Q,{children:`1: تعداد کاربر`}),l(Q,{children:`2: فضای ذخیره‌سازی`}),l(Q,{children:`3 و 4 : دوره زمانی`}),l(Q,{children:`پس از انتخاب این چهار متغیر، دکمه ثبت سفارش را بزنید.`}),l($,{img:`./guide-images/view-tariff/view-tariff-3.png`}),l(Q,{children:`پس از ثبت سفارش، کارشناسان فروش آوات در اولین زمان با شما تماس می‌گیرند. هر سازمان می‌تواند تنها یک سفارش فعال داشته باشد، بنابراین اگر سازمان شما، سفارش فعال داشته باشد، قبل از ثبت سفارش لازم است سفارش قبلی را غیرفعال کنید. برای اطلاع از قوانین و مقررات تمدید سرویس مکاتبات اداری آوات، «اطلاعات بیشتر» را مطالعه کنید.`}),l($,{img:`./guide-images/view-tariff/view-tariff-4.png`})]}),Vm=K((0,X.jsx)(`path`,{d:`M19 13H5v-2h14z`}),`Remove`),Hm=[{label:W(`guides.labels.register`),value:`register`,children:[]},{label:W(`guides.labels.recoverPassword`),value:`recoverPassword`,children:[]},{label:W(`guides.labels.userInfo`),value:`userlInfo`,children:[{label:W(`guides.labels.editUserInfo`),value:`userProfile`}]},{label:W(`guides.labels.notification`),value:`notification`,children:[]},{label:W(`guides.labels.organizationConfiguration`),value:`organizationConfiguration`,children:[{label:W(`guides.labels.createOrganization`),value:`createOrganization`},{label:W(`guides.labels.organizationPosition`),value:`organizationPosition`},{label:W(`guides.labels.personnelChart`),value:`personnelChart`},{label:W(`guides.labels.addEmployees`),value:`addEmployees`},{label:W(`guides.labels.organizationMembershipAcceptance`),value:`organizationMembershipAcceptance`},{label:W(`guides.labels.assignPosition`),value:`assignPosition`},{label:W(`guides.labels.AssignPositionManagerOrganization`),value:`AssignPositionManagerOrganaze`},{label:W(`guides.labels.releaseSlot`),value:`releaseSlot`},{label:W(`guides.labels.createContacts`),value:`createContacts`},{label:W(`guides.labels.deleteContact`),value:`deleteContact`},{label:W(`guides.labels.groupContacts`),value:`groupContacts`},{label:W(`guides.labels.accessGroups`),value:`accessGroups`},{label:W(`guides.labels.selectSuperAdmin`),value:`selectSuperAdmin`}]},{label:W(`guides.labels.tariffAndTrial`),value:`tarifAndTrial`,children:[{label:W(`guides.labels.trialAccount`),value:`trialAccount`},{label:W(`guides.labels.tariffView`),value:`tarifView`}]},{label:W(`guides.labels.secretariat`),value:`secretariat`,children:[{label:W(`guides.labels.manageSecretariats`),value:`manageSecretariats`},{label:W(`guides.labels.createIndicator`),value:`createIndicator`},{label:W(`guides.labels.createLayoutEditor`),value:`createLayoutEditor`}
1466,{label:W(`guides.labels.editLayoutEditor`),value:`editLayoutEditor`},{label:W(`guides.labels.settingEceLetterGuide`),value:`settingEceLetterGuide`},{label:W(`guides.labels.secretariatAdmin`),value:`secretariatAdmin`}]},{label:W(`guides.labels.accessibilitySecretariat`),value:`secretariat`,children:[{label:W(`guides.labels.correspondenceUsers`),value:`correspondenceUsers`},{label:W(`guides.labels.correspondenceAdmin`),value:`correspondenceAdmin`}]},{label:W(`guides.labels.letters`),value:`letters`,children:[{label:W(`guides.labels.cartable`),value:`cartable`},{label:W(`guides.labels.internalLetter`),value:`internalLetter`},{label:W(`guides.labels.outgoingLetter`),value:`outgoingLetter`},{label:W(`guides.labels.incomingLetter`),value:`incomingLetter`},{label:W(`guides.labels.additionalAttachments`),value:`additionalAttachments`},{label:W(`guides.labels.createEceLetterGuide`),value:`createEceLetterGuide`},{label:W(`guides.labels.forwardLetter`),value:`forwardLetter`},{label:W(`guides.labels.addAttachment`),value:`addAttachment`},{label:W(`guides.labels.readLetterNotice`),value:`readLetterNotice`},{label:W(`guides.labels.revertFroward`),value:`revertFroward`},{label:W(`guides.labels.requestToSign`),value:`requestToSign`},{label:W(`guides.labels.signLetter`),value:`signLetter`},{label:W(`guides.labels.cancelLetter`),value:`cancelLetter`},{label:W(`guides.labels.registrationOutgoingLetter`),value:`registrationOutgoingLetter`},{label:W(`guides.labels.convertToXML`),value:`convertToXML`},{label:W(`guides.labels.sendWithEceFormat`),value:`sendWithEceFormat`},{label:W(`guides.labels.historyLetter`),value:`historyLetter`},{label:W(`guides.labels.terminateLetter`),value:`terminateLetter`}]},{label:W(`guides.labels.meetingsAccesses`),value:`meetingsAccesses`,children:[{label:W(`guides.labels.meetingsUsers`),value:`meetingsUsers`},{label:W(`guides.labels.meetingsAdmins`),value:`meetingsAdmins`}]},{label:W(`guides.labels.meetings`),value:`meetings`,children:[{label:W(`guides.labels.meetingsCartable`),value:`meetingsCartable`},{label:W(`guides.labels.createMeetingLocation`),value:`createMeetingLocation`},{label:W(`guides.labels.createMeeting`),value:`createMeeting`},{label:W(`guides.labels.minutesMeeting`),value:`minutesMeeting`},{label:W(`guides.labels.cancelMeeting`),value:`cancelMeeting`}]},{label:W(`guides.labels.tasks`),value:`tasks`,children:[]},{label:W(`guides.labels.AI`),value:`AI`,children:[{label:W(`guides.labels.create-letter-with-AI`),value:`CreateLetterWithAI`}]},{label:W(`guides.labels.projects`),value:`projects`,children:[{label:W(`guides.labels.projects`),value:`Projects`},{label:W(`guides.labels.kanban`),value:`Kanban`}]},{label:W(`guides.labels.chat`),value:`chat`,children:[]}],Um=B()(e=>({root:{border:`1px solid #e5e5e5`,borderRadius:e.spacing(1),width:`calc(320px - 16px)`,height:`calc(100vh - 96px)`,overflowY:`scroll`,overflowX:`hidden`,position:`fixed`,boxShadow:`2px 2px 6px gainsboro`,backgroundColor:`#fff`},accordion:{backgroundColor:`transparent`,margin:`0px !important`,direction:`ltr`,boxShadow:`unset`,border:`unset !important`,borderRadius:`unset !important`,"&:before":{height:0},"& .MuiAccordionSummary-root":{margin:e.spacing(0,0,-2)}},accordionSummary:{"& .MuiAccordionSummary-content":{margin:e.spacing(1.2,0),direction:`rtl`}},accordionTitle:{textAlign:`right`,width:`100%`,fontWeight:600,marginRight:e.spacing(.5),color:`#000`},disabledAccordionButton:{cursor:`crosshair !important`},selectedAccordionTitle:{fontWeight:800,color:[e.palette.primary.main,`!important`]},selectedSvg:{color:[e.palette.primary.main,`!important`]},accordionDetails:{textAlign:`right`,direction:`rtl`,padding:0,margin:0,"& button":{margin:e.spacing(0,4,-.5,0)}},childrenButton:{display:`flex`,color:`#444444`,fontWeight:400},selectedChildrenButton:{display:`flex`,fontWeight:700,color:[e.palette.primary.main,`!important`],"& svg":{color:[e.palette.primary.main,`!important`]}}})),Wm=[],Gm=()=>{let{selectedGuidePage:e,handleChangeGuidePage:t}=fd(),{classes:n,cx:r}=Um(),[i,a]=(0,J.useState)([]);(0,J.useEffect)(()=>{Hm.map((e,t)=>{e.children.length>0?Wm[t]=t:Wm[t]=void 0}),a([...Wm])},[]);let o=e=>
1466{Wm[e]===e?(Wm[e]=void 0,a(()=>[...Wm])):(Wm[e]=e,a([]),a(()=>[...Wm]))};return l(`div`,{className:n.root,children:Hm.map((a,s)=>d(bd,{expanded:a.children.length>0&&i.length===0?!0:i[s]===s,className:n.accordion,onChange:()=>a.children.length>0&&o(s),children:[l(jd,{expandIcon:a.children.length===0||i[s]===s?l(Vm,{className:e===a.value&&n.selectedSvg}):l(oi,{className:e===a.value&&n.selectedSvg}),"aria-controls":`panel1a-content`,id:`panel1a-header`,className:n.accordionSummary,children:l(nr,{disabled:a.children.length>0,children:l(St,{className:r(n.accordionTitle,{[n.selectedAccordionTitle]:e===a.value,[n.disabledAccordionButton]:a.children.length>0}),onClick:e=>{t(e,a.value)},children:a.label})})}),l(wd,{className:n.accordionDetails,children:a.children.length>0&&a.children.map(r=>l(nr,{className:e===r.value?n.selectedChildrenButton:n.childrenButton,startIcon:l(Vm,{}),onClick:e=>{t(e,r.value)},children:r.label}))})]}))})},Km=B()(e=>({container:{display:`flex`,[e.breakpoints.down(`md`)]:{marginTop:e.spacing(4)},marginTop:e.spacing(8),height:`100%`,lineBreak:`anywhere`,overflowY:`scroll`},sideBar:{height:`calc(100vh - 64px)`,width:`310px`,padding:e.spacing(2,1),position:`relative`},main:{background:`#fff`,maxWidth:`calc(100vw - 330px)`,padding:e.spacing(4),marginTop:e.spacing(6)}})),qm=()=>{let{classes:e}=Km(),{mobile:t,handleRenderGuidePage:n}=fd();return d(f,{children:[l(od,{title:`راهنمای سیستم`,isMobile:t}),d(Hr,{container:!0,columns:12,className:e.container,children:[l(Hr,{item:!0,className:e.sideBar,children:l(Gm,{})}),l(Hr,{item:!0,className:e.main,id:`main`,children:n()})]})]})},Jm=()=>l(`h1`,{children:`Mobile`}),Ym=()=>l(qm,{}),Xm=()=>{let{search:e}=P(),t=new URLSearchParams(e).get(`selectedGuidePage`),n=Dt(e=>e.breakpoints.down(`sm`)),r=Dt(e=>e.breakpoints.between(`sm`,`lg`)),i=Dt(e=>e.breakpoints.up(`lg`)),[a,o]=ee(),[s,c]=(0,J.useState)(a.get(`topic`)||`register`);return(0,J.useEffect)(()=>{t&&c(t)},[]),(0,J.useLayoutEffect)(()=>{window.scrollTo({top:0})},[s]),l(dd.Provider,{value:{mobile:n,selectedGuidePage:s,handleChangeGuidePage:(e,t)=>{let n=document.getElementById(`main`);e.preventDefault(),e.stopPropagation(),c(t),o({topic:t}),n.scrollIntoView()},handleRenderGuidePage:()=>{switch(s){case`register`:return l(Dm,{});case`manageSignatureImage`:return l(sm,{});case`createContacts`:return l(tee,{});case`deleteContact`:return l(lee,{});case`addEmployees`:return l(am,{});case`assignPosition`:return l(lm,{});case`personnelChart`:return l(Sm,{});case`cartable`:return l(pm,{});case`userProfile`:return l(zm,{});case`createOrganization`:return l(cee,{});case`createLayoutEditor`:return l(iee,{});case`editLayoutEditor`:return l(uee,{});case`organizationalChart`:return l(bm,{});case`recoverPassword`:return l(Tm,{});case`internalLetter`:return l(hee,{});case`incomingLetter`:return l(mee,{});case`additionalAttachments`:return l(cm,{});case`createEceLetterGuide`:return l(nee,{});case`signLetter`:return l(Fm,{});case`createIndicator`:return l(ree,{});case`requestToSign`:return l(km,{});case`convertToXML`:return l(hm,{});case`forwardLetter`:return l(dee,{});case`addAttachment`:return l(im,{});case`readLetterNotice`:return l(wm,{});case`revertFroward`:return l(Am,{});case`outgoingLetter`:return l(xm,{});case`manageSecretariats`:return l(_ee,{});case`notification`:return l(_m,{});case`organizationPosition`:return l(ym,{});case`settingEceLetterGuide`:return l(Pm,{});case`organizationMembershipAcceptance`:return l(vm,{});case`AssignPositionManagerOrganaze`:return l(um,{});case`releaseSlot`:return l(Om,{});case`trialAccount`:return l(Rm,{});case`tarifView`:return l(Bm,{});case`groupContacts`:return l(fee,{});case`accessGroups`:return l(rm,{});case`selectSuperAdmin`:return l(Mm,{});case`correspondenceUsers`:return l(eee,{});case`correspondenceAdmin`:return l(gm,{});case`registrationOutgoingLetter`:return l(Em,{});case`historyLetter`:return l(pee,{});case`terminateLetter`:return l(Lm,{});case`sendWithEceFormat`:return l(Nm,{});case`secretariatAdmin`:return l(jm,{});case`cancelLetter`:return l(dm,{});case`meetingsUsers`:return l(bee,{});case`meetingsAdmins`:return l(vee,{});case`meetingsCartable`:return l(yee,{});case`createMeetingLocation`:return l(see,{});case`createMeeting`:return l(oee,{});case`minutesMeeting`:return l(xee,{});case`cancelMeeting`:return l(fm,{});case`tasks`:return l(Im,{});case`CreateLetterWithAI`:return l(aee,{});case`chat`:return l(mm,{});case`Projects`:return l(Cm,{});case`Kanban`:return l(gee,{});default:return l(f,{})}}},children:l(n?Jm:r?Ym:i?qm:f,{})})},Zm={create_account:[`با هر شماره موبایل، تنها می‌توان یک حساب کاربری ایجاد کرد.`,`نام کاربری یک مقدار یکه (واحد) است و نمی‌توان یک نام کاربری را برای چند حساب کاربری استفاده کرد.`,`پس از ایجاد حساب کاربری، امکان تغییر نام کاربری و شماره موبایل وجود ندارد.`,`هر حساب کاربری، باید تنها توسط صاحب همان حساب اØ
1466³ØªÙØ§Ø¯Ù‡ شود.`,`هر کاربر مسئول نگهداری از نام کاربری و رمز عبور خود است و نباید این اطلاعات را در اختیار دیگران قرار دهد. همچنین هر کاربر موظف است تا این اطلاعات را به صورتی امن، تعریف و نگهداری کند تا در دسترس دیگران نباشد.`],create_organization:[`مالک سازمان، کاربری است که سازمان خود را در«آوات» ایجاد می‌کند و مسئولیت تمام فعالیت‌های انجام شده در سازمان را بر عهده می‌گیرد.`,`استفاده از نام سازمان‌های خصوصی و غیر خصوصی و برندهای تجاری ثبت شده و رسمی کشور به عنوان «نام سازمان» و «شناسه سازمان» فقط برای مالکین یا نماینده قانونی آن‌ها مجاز است. `],free_trial:[`در «طرح رایگان» می‌توان بدون پرداخت هزینه از امکانات یک راهکار استفاده کرد.`,`«طرح رایگان» شامل یک دوره زمانی محدود(به عنوان مثال 30 روز) و تعداد کاربران و فضای در اختیار ثابت است.`,`در هر سازمان و برای هر راهکار، فقط یک بار می‌توان «طرح رایگان» را فعال کرد.`,`«طرح رایگان» را نمی‌توان تمدید کرد و یا ارتقا داد.`,{title:`طرح رایگان» یک راهکار در شرایط زیر منقضی می‌شود:`,subRules:[`  1- به پایان رسیدن دوره زمانی آن `,`2- خرید اشتراک برای همان راهکار`]},`در صورت به پایان رسیدن دوره زمانی «طرح رایگان» دسترسی سازمان به آن راهکار و اطلاعات ایجاد شده در آن غیرفعال خواهد شد؛ این دسترسی، با «خرید اشتراک» مجددا قابل فعال شدن است.`],buy_service:[`در  حال حاضر، خرید اشتراک تنها شیوۀ خرید راهکار در «آوات» است. خریدار بر اساس طرح انتخابی، مبلغ آن را به صورت کامل پرداخت می‌کند و پس از آن، راهکار مربوطه در سازمان فعال می‌شود.`,`پس از فعال شدن راهکار برای سازمان، تمامی امکانات آن راهکار، بر اساس طرح انتخابی، برای خریدار فعال می‌شود. `,`پس از نهایی شدن خرید، اشتراک مربوطه در سازمان فعال می‌شود و امکان اعمال تغییر در خرید، انصراف از خرید، حذف یا تغییر در طرح وجود ندارد.`,`اشتراک خریداری شده، پس از پایان دوره زمانی آن منقضی می‌شود.`,`پس از منقضی شدن اشتراک، دسترسی خریدار به راهکار مربوطه و اطلاعات ایجاد شده در آن غیرفعال خواهد شد.`,`در صورتیکه خریدار در طول مدت اعتبار اشتراک، درخواست اضافه کردن تعداد کاربر یا فضای در اختیار را داشت، از «طرح ارتقاء سرویس» بر اساس نرخ روز استفاده خواهد کرد.`,`در «طرح ارتقاء سرویس» امکان تغییر مدت زمان طرح اولیه که ارتقاء روی آن انجام گرفته، وجود ندارد.`,`محاسبه هزینه در «طرح ارتقاء سرویس» بر اساس تعداد کاربر یا فضای در اختیار انتخابی خریدار و تعداد روزهای باقیمانده از طرح اولیه، انجام می‌شود.`],awat_responsibility:[`«آوات» کلیه اطلاعات و داده‌های مشتریان را محرمانه تلقی می‌کند و از افشای آن‌ها بدون موافقت خریدار و به هر شکلی خودداری خواهد کرد.`,`«آوات» تمام تلاش خود را می‌کند که خدمات خود را به صورت بی‌وقفه، به موقع و بدون خطا ارائه کند و از روش‌های حفاظتی و امنیتی کارا برای ایجاد امنیت در سامانه‌های سخت‌افزاری و نرم‌افزاری و روش‌های ارتباطی خود استفاده کند.`,`امکانات «آوات» به صورت مداوم به روزرسانی می‌شود و امکان سفارشی‌سازی را ندارد.`,`«آوات» تابع کلیه قوانین جاری کشور است؛ تمام کاربران موظف به رعایت این قوانین هستند و انتشار هر نوع داده مغایر با عرف جامعه ممنوع بوده و در صورت مشاهده «آوات» مجاز به حذف اطلاعات و در موارد خاص و در صورت درخواست سازمان‌های بالادستی مجاز به قطع خدمات ارائه شده می‌باشد و مسئولیت‌های حقوقی و کیفری ناشی از آن به عهده خریدار است.`,`در صورت نیاز به توقف موقت خدمات به منظور نگه‌داری و یا بروزرسانی زیرساخت‌های سخت‌افزاری یا نرم‌افزاری «آوات» متعهد می‌شود برای انجام این امر، مراتب را از یک روز قبل به خریداران اطلاع‌رسانی Ú©Ù
1466†Ø¯.`,`راهکارهای «آوات» به صورت کاربردی آماده شده است و استفاده از آن سهل و راحت است. همچنین دارای بخش راهنمای کاربری است و تیم پشتیبانی «آوات» از طریق ارتباط متنی درون برنامه‌ای به کاربران خدمات رسانی دارد.`,`از آن‌جایی که ممکن است مفاد این توافقنامه در هر زمان از سوی «آوات» مورد بازبینی و به‌روز‌رسانی قرار گیرد، کاربر باید همواره با مراجعه به این توافقنامه از به‌روز‌رسانی و تغییرات احتمالی آن آگاه شود. اگر چه عدم مراجعه کاربر به این سند، مانع از اجرای مفاد آن نخواهد بود و این سند بلافاصله پس از هرگونه تغییر، به اجرا گذاشته خواهد شد. لازم به ذکر است بازبینی، اصلاح یا به روزرسانی جزئی یا کلی مفاد توافقنامه به اطلاع کاربران خواهد رسید. این اطلاع‌رسانی می‌تواند از طریق ارسال ایمیل یا به شکل اعلان در وبسایت یا هنگام ورود به سیستم باشد.`,{title:`در شرایط زیر، مسئولیتی بر عهده «آوات» نخواهد بود:`,subRules:[`اشكالات ناشی از شبكه و سیستم‌های كامپيوتری و نرم‌افزاری دیگری که خریدار از آن‌ها استفاده می‌کند.`,`تبعات ناشی از استفاده اشتباه از امکانات عرضه شده در این محصول، توسط خریدار.`,`اشکالات ناشی از زیرساخت‌های ارتباطی کشور یا شرایط فورس ماژور.`]}],ownership:[`مالکیت معنوی تمامی اطلاعات ایجاد شده و فایل‌های بارگذاری شده در سازمان و راهکارها، متعلق به سازمان است.`,`مالکیت انحصاری و تمام حقوق مادی و معنوی «آوات» تحت هر عنوان و به هر شکل برای شرکت چارگون محفوظ است و بهره برداری از آن خارج از این توافقنامه، به هر صورت و با هر قصد و نیتی، ممنوع است. در صورت هر گونه بهره‌برداری غیر مجاز، حق چارگون بر اقامۀ دعاوی قانونی مرتبط و پیگیری حقوق خود از مجازی قانونی محفوظ خواهد بود.`]},Qm=J.createContext(null);function $m(){let[e,t]=J.useState(null);return J.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function eh(e){let{children:t,value:n}=e,r=$m(),i=J.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return(0,X.jsx)(Qm.Provider,{value:i,children:t})}function th(){return J.useContext(Qm)}function nh(e,t){let{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function rh(e,t){let{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}var ih=J.forwardRef(function(e,t){let{children:n,...r}=e,i=th();if(i===null)throw TypeError(`No TabContext provided`);let a=J.Children.map(n,e=>J.isValidElement(e)?J.cloneElement(e,{"aria-controls":nh(i,e.props.value),id:rh(i,e.props.value)}):null);return(0,X.jsx)(Jp,{...r,ref:t,value:i.value,children:a})});function ah(e){return ot(`MuiTabPanel`,e)}tt(`MuiTabPanel`,[`root`,`hidden`]);var oh=e=>{let{classes:t,hidden:n}=e;return Et({root:[`root`,n&&`hidden`]},ah,t)},sh=ft(`div`,{name:`MuiTabPanel`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),ch=J.forwardRef(function(e,t){let n=fr({props:e,name:`MuiTabPanel`}),{children:r,className:i,value:a,keepMounted:o=!1,...s}=n,c={...n},l=oh(c),u=th();if(u===null)throw TypeError(`No TabContext provided`);let d=nh(u,a);return(0,X.jsx)(sh,{"aria-labelledby":rh(u,a),className:ht(l.root,i),hidden:a!==u.value,id:d,ref:t,role:`tabpanel`,ownerState:c,...s,children:(o||a===u.value)&&r})}),lh=B()(e=>({ulMobile:{padding:0,"& li":{listStyle:`initial`,padding:0,marginRight:e.spacing(2.5)},"& h4":{fontSize:20,textAlign:`right`,fontWeight:500,color:e.palette.primary.main,marginRight:e.spacing(0),marginBottom:e.spacing(1)}},ulDesktop:{padding:0,"& li":{listStyle:`initial`,padding:0},"& h4":{fontSize:24,textAlign:`right`,fontWeight:500,color:e.palette.primary.main,marginRight:e.spacing(-3),marginBottom:e.spacing(1)}},typography:{fontSize:14.5,lineHeight:2.1,textAlign:`justify`,lineBreak:`unset`}})),uh=({label:e,terms:t,isMobile:n})=>{let{classes:r}=lh();return d(`ul`,{className:n?r.ulMobile:r.ulDesktop,children:[e&&l(si,{variant:`h4`,children:e}),t.map(e=>
1466typeof e==`string`?l(`li`,{children:l(si,{variant:`subtitle2`,className:r.typography,children:e})},e):typeof e==`object`?d(f,{children:[l(`li`,{children:l(si,{variant:`subtitle2`,className:r.typography,children:e.title})}),e.subRules.map(e=>l(si,{variant:`subtitle2`,className:r.typography,children:e},e))]}):l(f,{}))]})},dh=B()(e=>({rootPage:{height:`100vh`,marginTop:e.spacing(2),width:`100%`,alignItems:`center`,paddingLeft:`65px`,top:21,paddingBottom:21,borderRadius:12,overflow:`auto`,[e.breakpoints.down(`md`)]:{top:10,overflowY:`auto`}},messageMobile:{width:`100%`,textAlign:`justify`,padding:e.spacing(8,2.5,1),backgroundColor:e.palette.background.innerPage,"& p":{color:`#000`,fontSize:14,lineHeight:2,fontWeight:400}},messageDesktop:{width:`100%`,textAlign:`justify`,padding:e.spacing(9,2.5,2.5),backgroundColor:e.palette.background.innerPage,"& p":{color:`#000`,fontSize:16,lineHeight:2,fontWeight:400}},link:{color:e.palette.text.link,fontWeight:500,borderBottom:`1.5px solid ${e.palette.text.link}`},backBtn:{margin:e.spacing(0,3,0,6),backgroundColor:`#f3f3f3`,height:`fit-content`},tabArea:{marginTop:e.spacing(2)},tablist:{paddingRight:e.spacing(1),alignItems:`center`,"& button":{fontWeight:500}},tabPanelMobile:{padding:e.spacing(3,2.5,2,4)},tabPanelDesktop:{padding:e.spacing(3,18,2,4)},scroll:{overflowX:`scroll !important`}})),fh=({tabValue:e,handleChangeTabValue:t,termsTabs:n,isMobile:r=!1})=>{let{classes:i}=dh();return d(f,{children:[l(od,{title:`قوانین استفاده از سرویس ابری «آوات»`,isMobile:r}),d(G,{className:i.rootPage,children:[d(Hr,{xs:12,className:r?i.messageMobile:i.messageDesktop,children:[l(St,{variant:`body1`,children:`«آوات» نام تجاری محصول ابری اتوماسیون اداری شرکت «چارگون» است و امکاناتش را بر اساس شرایط و قوانین زیر ارائه می‌کند. این شرایط و قوانین، به عنوان یک توافقنامه الزام‌آور بین «آوات» و کاربرانش خواهد بود و ممکن است مفاد آن در طول زمان تغییر کند.`}),l(St,{variant:`body1`,children:`کاربر گرامی؛ ضمن سپاس از انتخاب «آوات» لازم است تا پیش از استفاده از امکانات این محصول، متن توافقنامه را مطالعه کنید.`})]}),l(Hr,{xs:12,className:i.tabArea,children:d(eh,{value:e,children:[l(G,{sx:{borderBottom:1,borderColor:`divider`},children:l(ih,{onChange:t,classes:{root:i.tablist,scroller:i.scroll},children:n.map(e=>l(wp,{label:e.label,value:e.value},e.value))})}),l(f,{children:n.map(e=>l(ch,{value:e.value,className:r?i.tabPanelMobile:i.tabPanelDesktop,children:l(uh,{label:e.label,isMobile:r,terms:e.terms})},e.value))})]})})]})]})};fh.propTypes={tabValue:Z.default.string.isRequired,handleChangeTabValue:Z.default.func.isRequired,isMobile:Z.default.bool};var ph=({tabValue:e,handleChangeTabValue:t,termsTabs:n})=>l(fh,{tabValue:e,handleChangeTabValue:t,termsTabs:n});ph.propTypes={tabValue:Z.default.string.isRequired,handleChangeTabValue:Z.default.func.isRequired};var mh=({tabValue:e,handleChangeTabValue:t,termsTabs:n})=>l(fh,{tabValue:e,handleChangeTabValue:t,termsTabs:n,isMobile:!0});mh.propTypes={tabValue:Z.default.string.isRequired,handleChangeTabValue:Z.default.func.isRequired};var hh=({tabValue:e,handleChangeTabValue:t,termsTabs:n})=>l(fh,{tabValue:e,handleChangeTabValue:t,termsTabs:n});hh.propTypes={tabValue:Z.default.string.isRequired,handleChangeTabValue:Z.default.func.isRequired};var gh=()=>{let[e,t]=(0,J.useState)(`create_account`),n=Dt(e=>e.breakpoints.down(`sm`)),r=Dt(e=>e.breakpoints.between(`sm`,`lg`)),i=Dt(e=>e.breakpoints.up(`lg`)),a=(e,n)=>{t(n)},o=[{label:`قوانین ایجاد حساب کاربری`,value:`create_account`,terms:Zm.create_account},{label:`قوانین ایجاد سازمان`,value:`create_organization`,terms:Zm.create_organization},{label:`فعال‌سازی طرح رایگان`,value:`free_trial`,terms:Zm.free_trial},{label:`خرید اشتراک`,value:`buyServiceTerms`,terms:Zm.buy_service},{label:`تعهدات آوات`,value:`awat_responsibility`,terms:Zm.awat_responsibility},{label:`مالکیت معنوی و مالکیت محتوا`,value:`ownership`,terms:Zm.ownership}];return n?l(mh,{tabValue:e,handleChangeTabValue:a,termsTabs:o}):r?l(hh,{tabValue:e,handleChangeTabValue:a,termsTabs:o}):i?l(ph,{tabValue:e,handleChangeTabValue:a,termsTabs:o}):l(f,{})}
vendor: 4,954 bytes, line 1466
1466,_h=e=>typeof e==`number`&&!isNaN(e),vh=e=>typeof e==`string`,yh=e=>typeof e==`function`,bh=e=>vh(e)||_h(e),xh=e=>vh(e)||yh(e)?e:null,Sh=(e,t)=>e===!1||_h(e)&&e>0?e:t,Ch=e=>(0,J.isValidElement)(e)||vh(e)||yh(e)||_h(e);function wh(e,t,n=300){let{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight=`initial`,i.height=r+`px`,i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height=`0`,i.padding=`0`,i.margin=`0`,setTimeout(t,n)})})}function Th({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:i=300}){return function({children:a,position:o,preventExitTransition:s,done:c,nodeRef:l,isIn:u,playToast:d}){let f=n?`${e}--${o}`:e,p=n?`${t}--${o}`:t,m=(0,J.useRef)(0);return(0,J.useLayoutEffect)(()=>{let e=l.current,t=f.split(` `),n=r=>{r.target===l.current&&(d(),e.removeEventListener(`animationend`,n),e.removeEventListener(`animationcancel`,n),m.current===0&&r.type!==`animationcancel`&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener(`animationend`,n),e.addEventListener(`animationcancel`,n)},[]),(0,J.useEffect)(()=>{let e=l.current,t=()=>{e.removeEventListener(`animationend`,t),r?wh(e,c,i):c()};u||(s?t():(m.current=1,e.className+=` ${p}`,e.addEventListener(`animationend`,t)))},[u]),J.createElement(J.Fragment,null,a)}}function Eh(e,t){return{content:Dh(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function Dh(e,t,n=!1){return(0,J.isValidElement)(e)&&!vh(e.type)?(0,J.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):yh(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function Oh({closeToast:e,theme:t,ariaLabel:n=`close`}){return J.createElement(`button`,{className:`Toastify__close-button Toastify__close-button--${t}`,type:`button`,onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":n},J.createElement(`svg`,{"aria-hidden":`true`,viewBox:`0 0 14 16`},J.createElement(`path`,{fillRule:`evenodd`,d:`M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z`})))}function kh({delay:e,isRunning:t,closeToast:n,type:r=`default`,hide:i,className:a,controlledProgress:o,progress:s,rtl:c,isIn:l,theme:u}){let d=i||o&&s===0,f={animationDuration:`${e}ms`,animationPlayState:t?`running`:`paused`};o&&(f.transform=`scaleX(${s})`);let p=ht(`Toastify__progress-bar`,o?`Toastify__progress-bar--controlled`:`Toastify__progress-bar--animated`,`Toastify__progress-bar-theme--${u}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),m=yh(a)?a({rtl:c,type:r,defaultClassName:p}):ht(p,a),h={[o&&s>=1?`onTransitionEnd`:`onAnimationEnd`]:o&&s<1?null:()=>{l&&n()}};return J.createElement(`div`,{className:`Toastify__progress-bar--wrp`,"data-hidden":d},J.createElement(`div`,{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${u} Toastify__progress-bar--${r}`}),J.createElement(`div`,{role:`progressbar`,"aria-hidden":d?`true`:`false`,"aria-label":`notification timer`,"aria-valuenow":o?Math.round(s*100):void 0,"aria-valuemin":0,"aria-valuemax":100,className:m,style:f,...h}))}var Ah=1,jh=()=>`${Ah++}`;function Mh(e,t,n){let r=1,i=0,a=[],o=[],s=t,c=new Map,l=new Set,u=e=>(l.add(e),()=>l.delete(e)),d=()=>{o=Array.from(c.values()),l.forEach(e=>e())},f=({containerId:t,toastId:n,updateId:r})=>{let i=t?t!==e:e!==1,a=c.has(n)&&r==null;return i||a},p=(e,t)=>{c.forEach(n=>{var r;(t==null||t===n.props.toastId)&&((r=n.toggle)==null||r.call(n,e))})},m=e=>{var t,r;e.isActive&&((r=(t=e.props)?.onClose)==null||r.call(t,e.removalReason),e.isActive=!1,n(Eh(e,`removed`)))},h=e=>{if(e==null)c.forEach(m);else{let t=c.get(e);t&&m(t)}d()},g=()=>{i-=a.length,a=[]},_=e=>{var t,r;let{toastId:i,updateId:a}=e.props,o=a==null;e.staleId&&c.delete(e.staleId),e.isActive=!0,c.set(i,e),d(),n(Eh(e,o?`added`:`updated`)),o&&((r=(t=e.props).onOpen)==null||r.call(t))};return{id:e,props:s,observe:u,toggle:p,removeToast:h,toasts:c,clearQueue:g,buildToast:(e,t)=>{if(f(t))return;let{toastId:n,updateId:o,data:l,staleId:u,delay:p}=t,m=o==null;m&&i++;let g={...s,style:s.toastStyle,key:r++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>t!=null)),toastId:n,updateId:o,data:l,isIn:!1,className:xh(t.className||s.toastClassName),progressClassName:xh(t.progressClassName||s.progressClassName),autoClose:t.isLoading?!1:Sh(t.autoClose,s.autoClose),closeToast(e){let t=c.get(n);t&&(t.removalReason=e,h(n))},deleteToast(){if(c.get(n)!=null){if(c.delete(n),i--,i<0&&(i=0),a.length>0){_(a.shift());return}d()}}};g.closeButton=s.closeButton,t.closeButton===!1||Ch(t.closeButton)?g.closeButton=t.closeButton:t.closeButton===!0&&(g.closeButton=Ch(s.closeButton)?s.closeButton:!0);let v={content:e,props:g,staleId:u};s.limit&&s.limit>0&&i>s.limit&&m?a.push(v):_h(p)?setTimeout(()=>{_(v)},p):_(v)},setProps(e){s=e},setToggle:(e,t)=>
1466{let n=c.get(e);n&&(n.toggle=t)},isToastActive:e=>c.get(e)?.isActive,getSnapshot:()=>o}}var Nh=new Map,Ph=[],Fh=new Set,Ih=e=>Fh.forEach(t=>t(e)),Lh=()=>Nh.size>0;function See(){Ph.forEach(e=>zh(e.content,e.options)),Ph=[]}var Cee=(e,{containerId:t})=>Nh.get(t||1)?.toasts.get(e);function Rh(e,t){var n;if(t)return!!((n=Nh.get(t))!=null&&n.isToastActive(e));let r=!1;return Nh.forEach(t=>{t.isToastActive(e)&&(r=!0)}),r}function wee(e){if(!Lh()){Ph=Ph.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||bh(e))Nh.forEach(t=>{t.removeToast(e)});else if(e&&(`containerId`in e||`id`in e)){let t=Nh.get(e.containerId);t?t.removeToast(e.id):Nh.forEach(t=>{t.removeToast(e.id)})}}var Tee=(e={})=>{Nh.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function zh(e,t){Ch(e)&&(Lh()||Ph.push({content:e,options:t}),Nh.forEach(n=>{n.buildToast(e,t)}))}function Eee(e){var t;(t=Nh.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function Bh(e,t){Nh.forEach(n=>{(t==null||!(t!=null&&t.containerId)||t?.containerId===n.id)&&n.toggle(e,t?.id)})}function Dee(e){let t=e.containerId||1;return{subscribe(n){let r=Mh(t,e,Ih);Nh.set(t,r);let i=r.observe(n);return See(),()=>{i(),Nh.delete(t)}},setProps(e){var n;(n=Nh.get(t))==null||n.setProps(e)},getSnapshot(){return Nh.get(t)?.getSnapshot()}}}function Oee(e){return Fh.add(e),()=>{Fh.delete(e)}}function kee(e){return e&&(vh(e.toastId)||_h(e.toastId))?e.toastId:jh()}function Vh(e,t){return zh(e,t),t.toastId}function Hh(e,t){return{...t,type:t&&t.type||e,toastId:kee(t)}}function Uh(e){return(t,n)=>Vh(t,Hh(e,n))}function Wh(e,t){return Vh(e,Hh(`default`,t))}Wh.loading=(e,t)=>
1466Vh(e,Hh(`default`,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function Aee(e,{pending:t,error:n,success:r},i){let a;t&&(a=vh(t)?Wh.loading(t,i):Wh.loading(t.render,{...i,...t}));let o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(e,t,n)=>{if(t==null){Wh.dismiss(a);return}let r={type:e,...o,...i,data:n},s=vh(t)?{render:t}:t;return a?Wh.update(a,{...r,...s}):Wh(s.render,{...r,...s}),n},c=yh(e)?e():e;return c.then(e=>s(`success`,r,e)).catch(e=>s(`error`,n,e)),c}Wh.promise=Aee,Wh.success=Uh(`success`),Wh.info=Uh(`info`),Wh.error=Uh(`error`),Wh.warning=Uh(`warning`),Wh.warn=Wh.warning,Wh.dark=(e,t)=>Vh(e,Hh(`default`,{theme:`dark`,...t}));function jee(e){wee(e)}Wh.dismiss=jee,Wh.clearWaitingQueue=Tee,Wh.isActive=Rh,Wh.update=(e,t={})=>{let n=Cee(e,t);if(n){let{props:r,content:i}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:jh()};a.toastId!==e&&(a.staleId=e);let o=a.render||i;delete a.render,Vh(o,a)}},Wh.done=e=>{Wh.update(e,{progress:1})},Wh.onChange=Oee,Wh.play=e=>Bh(!0,e),Wh.pause=e=>Bh(!1,e);function Mee(e){let{subscribe:t,getSnapshot:n,setProps:r}=(0,J.useRef)(Dee(e)).current;r(e);let i=(0,J.useSyncExternalStore)(t,n,n)?.slice();function a(t){if(!i)return[];let n=new Map;
1466return e.newestOnTop&&i.reverse(),i.forEach(e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)}),Array.from(n,e=>t(e[0],e[1]))}return{getToastToRender:a,isToastActive:Rh,count:i?.length}}function Nee(e){let[t,n]=(0,J.useState)(!1),[r,i]=(0,J.useState)(!1),a=(0,J.useRef)(null),o=(0,J.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:l,onClick:u,closeOnClick:d}=e;Eee({id:e.toastId,containerId:e.containerId,fn:n}),(0,J.useEffect)(()=>{if(e.pauseOnFocusLoss)return f(),()=>{p()}},[e.pauseOnFocusLoss]);function f(){document.hasFocus()||_(),window.addEventListener(`focus`,g),window.addEventListener(`blur`,_)}function p(){window.removeEventListener(`focus`,g),window.removeEventListener(`blur`,_)}function m(t){if(e.draggable===!0||e.draggable===t.pointerType){v();let n=a.current;o.canCloseOnClick=!0,o.canDrag=!0,n.style.transition=`none`,e.draggableDirection===`x`?(o.start=t.clientX,o.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(o.start=t.clientY,o.removalDistance=n.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function h(t){let{top:n,bottom:r,left:i,right:o}=a.current.getBoundingClientRect();t.pointerType===`mouse`&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=o&&t.clientY>=n&&t.clientY<=r?_():g()}function g(){n(!0)}function _(){n(!1)}function v(){o.didMove=!1,document.addEventListener(`pointermove`,b),document.addEventListener(`pointerup`,x)}function y(){document.removeEventListener(`pointermove`,b),document.removeEventListener(`pointerup`,x)}function b(n){let r=a.current;if(o.canDrag&&r){o.didMove=!0,t&&_(),e.draggableDirection===`x`?o.delta=n.clientX-o.start:o.delta=n.clientY-o.start,o.start!==n.clientX&&(o.canCloseOnClick=!1);let i=e.draggableDirection===`x`?`${o.delta}px, var(--y)`:`0, calc(${o.delta}px + var(--y))`;r.style.transform=`translate3d(${i},0)`,r.style.opacity=`${1-Math.abs(o.delta/o.removalDistance)}`}}function x(){y();let t=a.current;if(o.canDrag&&o.didMove&&t){if(o.canDrag=!1,Math.abs(o.delta)>o.removalDistance){i(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition=`transform 0.2s, opacity 0.2s`,t.style.removeProperty(`transform`),t.style.removeProperty(`opacity`)}}let S={onPointerDown:m,onPointerUp:h};return s&&c&&(S.onMouseEnter=_,e.stacked||(S.onMouseLeave=g)),d&&(S.onClick=e=>{u&&u(e),o.canCloseOnClick&&l(!0)}),{playToast:g,pauseToast:_,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:S}}var Gh=typeof window<`u`?J.useLayoutEffect:J.useEffect,Kh=({theme:e,type:t,isLoading:n,...r})=>J.createElement(`svg`,{viewBox:`0 0 24 24`,width:`100%`,height:`100%`,fill:e===`colored`?`currentColor`:`var(--toastify-icon-color-${t})`,...r});function Pee(e){return J.createElement(Kh,{...e},J.createElement(`path`,{d:`M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z`}))}function Fee(e){return J.createElement(Kh,{...e},J.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z`}))}function Iee(e){return J.createElement(Kh,{...e},J.createElement(`path`,{d:`M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z`}))}function Lee(e){return J.createElement(Kh,{...e},J.createElement(`path`,{d:`M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z`}))}function Ree(){return J.createElement(`div`,{className:`Toastify__spinner`})}var qh={info:Fee,warning:Pee,success:Iee,error:Lee,spinner:Ree},zee=e=>e in qh;function Bee({theme:e,type:t,isLoading:n,icon:r}){let i=null,a={theme:e,type:t};return r===!1||(yh(r)?i=r({...a,isLoading:n}):(0,J.isValidElement)(r)?i=(0,J.cloneElement)(r,a):n?i=qh.spinner():zee(t)&&(i=qh[t](a))),i}var Vee=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:a}=Nee(e),{closeButton:o,children:s,autoClose:c,onClick:l,type:u,hideProgressBar:d,closeToast:f,transition:p,position:m,className:h,style:g,progressClassName:_,updateId:v,role:y,progress:b,rtl:x,toastId:S,deleteToast:C,isIn:w,isLoading:T,closeOnClick:E,theme:D,ariaLabel:O}=e,k=ht(`Toastify__toast`,`Toastify__toast-theme--${D}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":E}),A=yh(h)?h({rtl:x,position:m,type:u,defaultClassName:k}):ht(k,h),j=Bee(e),M=!!b||!c,N={closeToast:f,type:u,theme:D},P=null;return o===!1||(P=yh(o)?o(N):(0,J.isValidElement)(o)?(0,J.cloneElement)(o,N):Oh(N)),J.createElement(p,{isIn:w,done:C,position:m,preventExitTransition:n,nodeRef:r,playToast:a},J.createElement(`div`,{id:S,tabIndex:0,onClick:l,"data-in":w,className:A,...i,style:g,ref:r,...w&&{role:y,"aria-label":O}},j!=null&&J.createElement(`div`,{className:ht(`Toastify__toast-icon`,{"Toastify--animate-icon Toastify__zoom-enter"
1466:!T})},j),Dh(s,e,!t),P,!e.customProgressBar&&J.createElement(kh,{...v&&!M?{key:`p-${v}`}:{},rtl:x,theme:D,delay:c,isRunning:t,isIn:w,closeToast:f,hide:d,type:u,className:_,controlledProgress:M,progress:b||0})))},Jh=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),Hee=Th(Jh(`bounce`,!0));Th(Jh(`slide`,!0)),Th(Jh(`zoom`));var Uee=Th(Jh(`flip`)),Wee={position:`top-right`,transition:Hee,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:`touch`,draggablePercent:80,draggableDirection:`x`,role:`alert`,theme:`light`,"aria-label":`Notifications Alt+T`,hotKeys:e=>e.altKey&&e.code===`KeyT`};function Gee(e){let t={...Wee,...e},n=e.stacked,[r,i]=(0,J.useState)(!0),a=(0,J.useRef)(null),{getToastToRender:o,isToastActive:s,count:c}=Mee(t),{className:l,style:u,rtl:d,containerId:f,hotKeys:p}=t;function m(e){let t=ht(`Toastify__toast-container`,`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return yh(l)?l({position:e,rtl:d,defaultClassName:t}):ht(t,xh(l))}function h(){n&&(i(!0),Wh.play())}return Gh(()=>{if(n){let e=a.current.querySelectorAll(`[data-in="true"]`),n=t.position?.includes(`top`),i=0,o=0;Array.from(e).reverse().forEach((e,t)=>{let a=e;a.classList.add(`Toastify__toast--stacked`),t>0&&(a.dataset.collapsed=`${r}`),a.dataset.pos||(a.dataset.pos=n?`top`:`bot`);let s=i*(r?.2:1)+(r?0:12*t),c=Math.max(.5,1-(r?o:0));a.style.setProperty(`--y`,`${n?s:s*-1}px`),a.style.setProperty(`--g`,`12`),a.style.setProperty(`--s`,`${c}`),i+=a.offsetHeight,o+=.025})}},[r,c,n]),(0,J.useEffect)(()=>{function e(e){var t;let n=a.current;p(e)&&((t=n?.querySelector(`[tabIndex="0"]`))==null||t.focus(),i(!1),Wh.pause()),e.key===`Escape`&&(document.activeElement===n||n!=null&&n.contains(document.activeElement))&&(i(!0),Wh.play())}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[p]),J.createElement(`section`,{ref:a,className:`Toastify`,id:f,onMouseEnter:()=>{n&&(i(!1),Wh.pause())},onMouseLeave:h,"aria-live":`polite`,"aria-atomic":`false`,"aria-relevant":`additions text`,"aria-label":t[`aria-label`]},o((e,t)=>{let r=t.length?{...u}:{...u,pointerEvents:`none`};return J.createElement(`div`,{tabIndex:-1,className:m(e),"data-stacked":n,style:r,key:`c-${e}`},t.map(({content:e,props:t})=>J.createElement(Vee,{...t,stacked:n,collapseAll:h,isIn:s(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}var Kee
vendor: 17,403 bytes, lines 1466-2272
1466=`:root {
1467  --toastify-color-light: #fff;
1468  --toastify-color-dark: #121212;
1469  --toastify-color-info: #3498db;
1470  --toastify-color-success: #07bc0c;
1471  --toastify-color-warning: #f1c40f;
1472  --toastify-color-error: hsl(6, 78%, 57%);
1473  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
1474
1475  --toastify-icon-color-info: var(--toastify-color-info);
1476  --toastify-icon-color-success: var(--toastify-color-success);
1477  --toastify-icon-color-warning: var(--toastify-color-warning);
1478  --toastify-icon-color-error: var(--toastify-color-error);
1479
1480  --toastify-container-width: fit-content;
1481  --toastify-toast-width: 320px;
1482  --toastify-toast-offset: 16px;
1483  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
1484  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
1485  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
1486  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
1487  --toastify-toast-background: #fff;
1488  --toastify-toast-padding: 14px;
1489  --toastify-toast-min-height: 64px;
1490  --toastify-toast-max-height: 800px;
1491  --toastify-toast-bd-radius: 6px;
1492  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
1493  --toastify-font-family: sans-serif;
1494  --toastify-z-index: 9999;
1495  --toastify-text-color-light: #757575;
1496  --toastify-text-color-dark: #fff;
1497
1498  /* Used only for colored theme */
1499  --toastify-text-color-info: #fff;
1500  --toastify-text-color-success: #fff;
1501  --toastify-text-color-warning: #fff;
1502  --toastify-text-color-error: #fff;
1503
1504  --toastify-spinner-color: #616161;
1505  --toastify-spinner-color-empty-area: #e0e0e0;
1506  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
1507  --toastify-color-progress-dark: #bb86fc;
1508  --toastify-color-progress-info: var(--toastify-color-info);
1509  --toastify-color-progress-success: var(--toastify-color-success);
1510  --toastify-color-progress-warning: var(--toastify-color-warning);
1511  --toastify-color-progress-error: var(--toastify-color-error);
1512  /* used to control the opacity of the progress trail */
1513  --toastify-color-progress-bgo: 0.2;
1514}
1515
1516.Toastify__toast-container {
1517  z-index: var(--toastify-z-index);
1518  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
1519  position: fixed;
1520  width: var(--toastify-container-width);
1521  box-sizing: border-box;
1522  color: #fff;
1523  display: flex;
1524  flex-direction: column;
1525}
1526
1527.Toastify__toast-container--top-left {
1528  top: var(--toastify-toast-top);
1529  left: var(--toastify-toast-left);
1530}
1531.Toastify__toast-container--top-center {
1532  top: var(--toastify-toast-top);
1533  left: 50%;
1534  transform: translateX(-50%);
1535  align-items: center;
1536}
1537.Toastify__toast-container--top-right {
1538  top: var(--toastify-toast-top);
1539  right: var(--toastify-toast-right);
1540  align-items: end;
1541}
1542.Toastify__toast-container--bottom-left {
1543  bottom: var(--toastify-toast-bottom);
1544  left: var(--toastify-toast-left);
1545}
1546.Toastify__toast-container--bottom-center {
1547  bottom: var(--toastify-toast-bottom);
1548  left: 50%;
1549  transform: translateX(-50%);
1550  align-items: center;
1551}
1552.Toastify__toast-container--bottom-right {
1553  bottom: var(--toastify-toast-bottom);
1554  right: var(--toastify-toast-right);
1555  align-items: end;
1556}
1557
1558.Toastify__toast {
1559  --y: 0px;
1560  position: relative;
1561  touch-action: none;
1562  width: var(--toastify-toast-width);
1563  min-height: var(--toastify-toast-min-height);
1564  box-sizing: border-box;
1565  margin-bottom: 1rem;
1566  padding: var(--toastify-toast-padding);
1567  border-radius: var(--toastify-toast-bd-radius);
1568  box-shadow: var(--toastify-toast-shadow);
1569  max-height: var(--toastify-toast-max-height);
1570  font-family: var(--toastify-font-family);
1571  /* webkit only issue #791 */
1572  z-index: 0;
1573  /* inner swag */
1574  display: flex;
1575  flex: 1 auto;
1576  align-items: center;
1577  word-break: break-word;
1578}
1579
1580@media only screen and (max-width: 480px) {
1581  .Toastify__toast-container {
1582    width: 100vw;
1583    left: env(safe-area-inset-left);
1584    margin: 0;
1585  }
1586  .Toastify__toast-container--top-left,
1587  .Toastify__toast-container--top-center,
1588  .Toastify__toast-container--top-right {
1589    top: env(safe-area-inset-top);
1590    transform: translateX(0);
1591  }
1592  .Toastify__toast-container--bottom-left,
1593  .Toastify__toast-container--bottom-center,
1594  .Toastify__toast-container--bottom-right {
1595    bottom: env(safe-area-inset-bottom);
1596    transform: translateX(0);
1597  }
1598  .Toastify__toast-container--rtl {
1599    right: env(safe-area-inset-right);
1600    left: initial;
1601  }
1602  .Toastify__toast {
1603    --toastify-toast-width: 100%;
1604    margin-bottom: 0;
1605    border-radius: 0;
1606  }
1607}
1608
1609.Toastify__toast-container[data-stacked='true'] {
1610  width: var(--toastify-toast-width);
1611}
1612
1613@media only screen and (max-width: 480px) {
1614  .Toastify__toast-container[data-stacked='true'] {
1615    width: 100vw;
1616  }
1617}
1618
1619.Toastify__toast--stacked {
1620  position: absolute;
1621  width: 100%;
1622  transform: translate3d(0, var(--y), 0) scale(var(--s));
1623  transition: transform 0.3s;
1624}
1625
1626.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
1627.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
1628  transition: opacity 0.1s;
1629}
1630
1631.Toastify__toast--stacked[data-collapsed='false'] {
1632  overflow: visible;
1633}
1634
1635.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
1636  opacity: 0;
1637}
1638
1639.Toastify__toast--stacked:after {
1640  content: '';
1641  position: absolute;
1642  left: 0;
1643  right: 0;
1644  height: calc(var(--g) * 1px);
1645  bottom: 100%;
1646}
1647
1648.Toastify__toast--stacked[data-pos='top'] {
1649  top: 0;
1650}
1651
1652.Toastify__toast--stacked[data-pos='bot'] {
1653  bottom: 0;
1654}
1655
1656.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
1657  transform-origin: top;
1658}
1659
1660.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
1661  transform-origin: bottom;
1662}
1663
1664.Toastify__toast--stacked:before {
1665  content: '';
1666  position: absolute;
1667  left: 0;
1668  right: 0;
1669  bottom: 0;
1670  height: 100%;
1671  transform: scaleY(3);
1672  z-index: -1;
1673}
1674
1675.Toastify__toast--rtl {
1676  direction: rtl;
1677}
1678
1679.Toastify__toast--close-on-click {
1680  cursor: pointer;
1681}
1682
1683.Toastify__toast-icon {
1684  margin-inline-end: 10px;
1685  width: 22px;
1686  flex-shrink: 0;
1687  display: flex;
1688}
1689
1690.Toastify--animate {
1691  animation-fill-mode: both;
1692  animation-duration: 0.5s;
1693}
1694
1695.Toastify--animate-icon {
1696  animation-fill-mode: both;
1697  animation-duration: 0.3s;
1698}
1699
1700.Toastify__toast-theme--dark {
1701  background: var(--toastify-color-dark);
1702  color: var(--toastify-text-color-dark);
1703}
1704
1705.Toastify__toast-theme--light {
1706  background: var(--toastify-color-light);
1707  color: var(--toastify-text-color-light);
1708}
1709
1710.Toastify__toast-theme--colored.Toastify__toast--default {
1711  background: var(--toastify-color-light);
1712  color: var(--toastify-text-color-light);
1713}
1714
1715.Toastify__toast-theme--colored.Toastify__toast--info {
1716  color: var(--toastify-text-color-info);
1717  background: var(--toastify-color-info);
1718}
1719
1720.Toastify__toast-theme--colored.Toastify__toast--success {
1721  color: var(--toastify-text-color-success);
1722  background: var(--toastify-color-success);
1723}
1724
1725.Toastify__toast-theme--colored.Toastify__toast--warning {
1726  color: var(--toastify-text-color-warning);
1727  background: var(--toastify-color-warning);
1728}
1729
1730.Toastify__toast-theme--colored.Toastify__toast--error {
1731  color: var(--toastify-text-color-error);
1732  background: var(--toastify-color-error);
1733}
1734
1735.Toastify__progress-bar-theme--light {
1736  background: var(--toastify-color-progress-light);
1737}
1738
1739.Toastify__progress-bar-theme--dark {
1740  background: var(--toastify-color-progress-dark);
1741}
1742
1743.Toastify__progress-bar--info {
1744  background: var(--toastify-color-progress-info);
1745}
1746
1747.Toastify__progress-bar--success {
1748  background: var(--toastify-color-progress-success);
1749}
1750
1751.Toastify__progress-bar--warning {
1752  background: var(--toastify-color-progress-warning);
1753}
1754
1755.Toastify__progress-bar--error {
1756  background: var(--toastify-color-progress-error);
1757}
1758
1759.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
1760.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
1761.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
1762.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
1763  background: var(--toastify-color-transparent);
1764}
1765
1766.Toastify__close-button {
1767  color: #fff;
1768  position: absolute;
1769  top: 6px;
1770  right: 6px;
1771  background: transparent;
1772  outline: none;
1773  border: none;
1774  padding: 0;
1775  cursor: pointer;
1776  opacity: 0.7;
1777  transition: 0.3s ease;
1778  z-index: 1;
1779}
1780
1781.Toastify__toast--rtl .Toastify__close-button {
1782  left: 6px;
1783  right: unset;
1784}
1785
1786.Toastify__close-button--light {
1787  color: #000;
1788  opacity: 0.3;
1789}
1790
1791.Toastify__close-button > svg {
1792  fill: currentColor;
1793  height: 16px;
1794  width: 14px;
1795}
1796
1797.Toastify__close-button:hover,
1798.Toastify__close-button:focus {
1799  opacity: 1;
1800}
1801
1802@keyframes Toastify__trackProgress {
1803  0% {
1804    transform: scaleX(1);
1805  }
1806  100% {
1807    transform: scaleX(0);
1808  }
1809}
1810
1811.Toastify__progress-bar {
1812  position: absolute;
1813  bottom: 0;
1814  left: 0;
1815  width: 100%;
1816  height: 100%;
1817  z-index: 1;
1818  opacity: 0.7;
1819  transform-origin: left;
1820}
1821
1822.Toastify__progress-bar--animated {
1823  animation: Toastify__trackProgress linear 1 forwards;
1824}
1825
1826.Toastify__progress-bar--controlled {
1827  transition: transform 0.2s;
1828}
1829
1830.Toastify__progress-bar--rtl {
1831  right: 0;
1832  left: initial;
1833  transform-origin: right;
1834  border-bottom-left-radius: initial;
1835}
1836
1837.Toastify__progress-bar--wrp {
1838  position: absolute;
1839  overflow: hidden;
1840  bottom: 0;
1841  left: 0;
1842  width: 100%;
1843  height: 5px;
1844  border-bottom-left-radius: var(--toastify-toast-bd-radius);
1845  border-bottom-right-radius: var(--toastify-toast-bd-radius);
1846}
1847
1848.Toastify__progress-bar--wrp[data-hidden='true'] {
1849  opacity: 0;
1850}
1851
1852.Toastify__progress-bar--bg {
1853  opacity: var(--toastify-color-progress-bgo);
1854  width: 100%;
1855  height: 100%;
1856}
1857
1858.Toastify__spinner {
1859  width: 20px;
1860  height: 20px;
1861  box-sizing: border-box;
1862  border: 2px solid;
1863  border-radius: 100%;
1864  border-color: var(--toastify-spinner-color-empty-area);
1865  border-right-color: var(--toastify-spinner-color);
1866  animation: Toastify__spin 0.65s linear infinite;
1867}
1868
1869@keyframes Toastify__bounceInRight {
1870  from,
1871  60%,
1872  75%,
1873  90%,
1874  to {
1875    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
1876  }
1877  from {
1878    opacity: 0;
1879    transform: translate3d(3000px, 0, 0);
1880  }
1881  60% {
1882    opacity: 1;
1883    transform: translate3d(-25px, 0, 0);
1884  }
1885  75% {
1886    transform: translate3d(10px, 0, 0);
1887  }
1888  90% {
1889    transform: translate3d(-5px, 0, 0);
1890  }
1891  to {
1892    transform: none;
1893  }
1894}
1895
1896@keyframes Toastify__bounceOutRight {
1897  20% {
1898    opacity: 1;
1899    transform: translate3d(-20px, var(--y), 0);
1900  }
1901  to {
1902    opacity: 0;
1903    transform: translate3d(2000px, var(--y), 0);
1904  }
1905}
1906
1907@keyframes Toastify__bounceInLeft {
1908  from,
1909  60%,
1910  75%,
1911  90%,
1912  to {
1913    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
1914  }
1915  0% {
1916    opacity: 0;
1917    transform: translate3d(-3000px, 0, 0);
1918  }
1919  60% {
1920    opacity: 1;
1921    transform: translate3d(25px, 0, 0);
1922  }
1923  75% {
1924    transform: translate3d(-10px, 0, 0);
1925  }
1926  90% {
1927    transform: translate3d(5px, 0, 0);
1928  }
1929  to {
1930    transform: none;
1931  }
1932}
1933
1934@keyframes Toastify__bounceOutLeft {
1935  20% {
1936    opacity: 1;
1937    transform: translate3d(20px, var(--y), 0);
1938  }
1939  to {
1940    opacity: 0;
1941    transform: translate3d(-2000px, var(--y), 0);
1942  }
1943}
1944
1945@keyframes Toastify__bounceInUp {
1946  from,
1947  60%,
1948  75%,
1949  90%,
1950  to {
1951    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
1952  }
1953  from {
1954    opacity: 0;
1955    transform: translate3d(0, 3000px, 0);
1956  }
1957  60% {
1958    opacity: 1;
1959    transform: translate3d(0, -20px, 0);
1960  }
1961  75% {
1962    transform: translate3d(0, 10px, 0);
1963  }
1964  90% {
1965    transform: translate3d(0, -5px, 0);
1966  }
1967  to {
1968    transform: translate3d(0, 0, 0);
1969  }
1970}
1971
1972@keyframes Toastify__bounceOutUp {
1973  20% {
1974    transform: translate3d(0, calc(var(--y) - 10px), 0);
1975  }
1976  40%,
1977  45% {
1978    opacity: 1;
1979    transform: translate3d(0, calc(var(--y) + 20px), 0);
1980  }
1981  to {
1982    opacity: 0;
1983    transform: translate3d(0, -2000px, 0);
1984  }
1985}
1986
1987@keyframes Toastify__bounceInDown {
1988  from,
1989  60%,
1990  75%,
1991  90%,
1992  to {
1993    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
1994  }
1995  0% {
1996    opacity: 0;
1997    transform: translate3d(0, -3000px, 0);
1998  }
1999  60% {
2000    opacity: 1;
2001    transform: translate3d(0, 25px, 0);
2002  }
2003  75% {
2004    transform: translate3d(0, -10px, 0);
2005  }
2006  90% {
2007    transform: translate3d(0, 5px, 0);
2008  }
2009  to {
2010    transform: none;
2011  }
2012}
2013
2014@keyframes Toastify__bounceOutDown {
2015  20% {
2016    transform: translate3d(0, calc(var(--y) - 10px), 0);
2017  }
2018  40%,
2019  45% {
2020    opacity: 1;
2021    transform: translate3d(0, calc(var(--y) + 20px), 0);
2022  }
2023  to {
2024    opacity: 0;
2025    transform: translate3d(0, 2000px, 0);
2026  }
2027}
2028
2029.Toastify__bounce-enter--top-left,
2030.Toastify__bounce-enter--bottom-left {
2031  animation-name: Toastify__bounceInLeft;
2032}
2033
2034.Toastify__bounce-enter--top-right,
2035.Toastify__bounce-enter--bottom-right {
2036  animation-name: Toastify__bounceInRight;
2037}
2038
2039.Toastify__bounce-enter--top-center {
2040  animation-name: Toastify__bounceInDown;
2041}
2042
2043.Toastify__bounce-enter--bottom-center {
2044  animation-name: Toastify__bounceInUp;
2045}
2046
2047.Toastify__bounce-exit--top-left,
2048.Toastify__bounce-exit--bottom-left {
2049  animation-name: Toastify__bounceOutLeft;
2050}
2051
2052.Toastify__bounce-exit--top-right,
2053.Toastify__bounce-exit--bottom-right {
2054  animation-name: Toastify__bounceOutRight;
2055}
2056
2057.Toastify__bounce-exit--top-center {
2058  animation-name: Toastify__bounceOutUp;
2059}
2060
2061.Toastify__bounce-exit--bottom-center {
2062  animation-name: Toastify__bounceOutDown;
2063}
2064
2065@keyframes Toastify__zoomIn {
2066  from {
2067    opacity: 0;
2068    transform: scale3d(0.3, 0.3, 0.3);
2069  }
2070  50% {
2071    opacity: 1;
2072  }
2073}
2074
2075@keyframes Toastify__zoomOut {
2076  from {
2077    opacity: 1;
2078  }
2079  50% {
2080    opacity: 0;
2081    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
2082  }
2083  to {
2084    opacity: 0;
2085  }
2086}
2087
2088.Toastify__zoom-enter {
2089  animation-name: Toastify__zoomIn;
2090}
2091
2092.Toastify__zoom-exit {
2093  animation-name: Toastify__zoomOut;
2094}
2095
2096@keyframes Toastify__flipIn {
2097  from {
2098    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
2099    animation-timing-function: ease-in;
2100    opacity: 0;
2101  }
2102  40% {
2103    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
2104    animation-timing-function: ease-in;
2105  }
2106  60% {
2107    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
2108    opacity: 1;
2109  }
2110  80% {
2111    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
2112  }
2113  to {
2114    transform: perspective(400px);
2115  }
2116}
2117
2118@keyframes Toastify__flipOut {
2119  from {
2120    transform: translate3d(0, var(--y), 0) perspective(400px);
2121  }
2122  30% {
2123    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
2124    opacity: 1;
2125  }
2126  to {
2127    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
2128    opacity: 0;
2129  }
2130}
2131
2132.Toastify__flip-enter {
2133  animation-name: Toastify__flipIn;
2134}
2135
2136.Toastify__flip-exit {
2137  animation-name: Toastify__flipOut;
2138}
2139
2140@keyframes Toastify__slideInRight {
2141  from {
2142    transform: translate3d(110%, 0, 0);
2143    visibility: visible;
2144  }
2145  to {
2146    transform: translate3d(0, var(--y), 0);
2147  }
2148}
2149
2150@keyframes Toastify__slideInLeft {
2151  from {
2152    transform: translate3d(-110%, 0, 0);
2153    visibility: visible;
2154  }
2155  to {
2156    transform: translate3d(0, var(--y), 0);
2157  }
2158}
2159
2160@keyframes Toastify__slideInUp {
2161  from {
2162    transform: translate3d(0, 110%, 0);
2163    visibility: visible;
2164  }
2165  to {
2166    transform: translate3d(0, var(--y), 0);
2167  }
2168}
2169
2170@keyframes Toastify__slideInDown {
2171  from {
2172    transform: translate3d(0, -110%, 0);
2173    visibility: visible;
2174  }
2175  to {
2176    transform: translate3d(0, var(--y), 0);
2177  }
2178}
2179
2180@keyframes Toastify__slideOutRight {
2181  from {
2182    transform: translate3d(0, var(--y), 0);
2183  }
2184  to {
2185    visibility: hidden;
2186    transform: translate3d(110%, var(--y), 0);
2187  }
2188}
2189
2190@keyframes Toastify__slideOutLeft {
2191  from {
2192    transform: translate3d(0, var(--y), 0);
2193  }
2194  to {
2195    visibility: hidden;
2196    transform: translate3d(-110%, var(--y), 0);
2197  }
2198}
2199
2200@keyframes Toastify__slideOutDown {
2201  from {
2202    transform: translate3d(0, var(--y), 0);
2203  }
2204  to {
2205    visibility: hidden;
2206    transform: translate3d(0, 500px, 0);
2207  }
2208}
2209
2210@keyframes Toastify__slideOutUp {
2211  from {
2212    transform: translate3d(0, var(--y), 0);
2213  }
2214  to {
2215    visibility: hidden;
2216    transform: translate3d(0, -500px, 0);
2217  }
2218}
2219
2220.Toastify__slide-enter--top-left,
2221.Toastify__slide-enter--bottom-left {
2222  animation-name: Toastify__slideInLeft;
2223}
2224
2225.Toastify__slide-enter--top-right,
2226.Toastify__slide-enter--bottom-right {
2227  animation-name: Toastify__slideInRight;
2228}
2229
2230.Toastify__slide-enter--top-center {
2231  animation-name: Toastify__slideInDown;
2232}
2233
2234.Toastify__slide-enter--bottom-center {
2235  animation-name: Toastify__slideInUp;
2236}
2237
2238.Toastify__slide-exit--top-left,
2239.Toastify__slide-exit--bottom-left {
2240  animation-name: Toastify__slideOutLeft;
2241  animation-timing-function: ease-in;
2242  animation-duration: 0.3s;
2243}
2244
2245.Toastify__slide-exit--top-right,
2246.Toastify__slide-exit--bottom-right {
2247  animation-name: Toastify__slideOutRight;
2248  animation-timing-function: ease-in;
2249  animation-duration: 0.3s;
2250}
2251
2252.Toastify__slide-exit--top-center {
2253  animation-name: Toastify__slideOutUp;
2254  animation-timing-function: ease-in;
2255  animation-duration: 0.3s;
2256}
2257
2258.Toastify__slide-exit--bottom-center {
2259  animation-name: Toastify__slideOutDown;
2260  animation-timing-function: ease-in;
2261  animation-duration: 0.3s;
2262}
2263
2264@keyframes Toastify__spin {
2265  from {
2266    transform: rotate(0deg);
2267  }
2268  to {
2269    transform: rotate(360deg);
2270  }
2271}
2272`
2272,Yh=new Map,qee=(e,t)=>{Gh(()=>{if(!e||typeof document>`u`)return;let n=document,r=Yh.get(n);if(r){t&&r.setAttribute(`nonce`,t);return}let i=n.createElement(`style`);i.textContent=e,t&&i.setAttribute(`nonce`,t),n.head.appendChild(i),Yh.set(n,i)},[t])};function Jee(e){return qee(Kee,e.nonce),J.createElement(Gee,{...e})}var Xh=(0,J.createContext)(),Zh=()=>(0,J.useContext)(Xh),Qh=`/api/v1/`,$h={notifications:{unReadCount:0,status:`idle`,data:[],meta:null},newNotifications:{state:`idle`,data:[],recievedIds:[],count:0,lastRequest:Date.now()},readNotification:{state:`idle`,data:[]},unReadNotification:{state:`idle`,data:null},readAllNotifications:{state:`idle`,data:null,unReadCount:0}},eg=(e,t)=>{let n=e;if(!t?.payload?.data?.newNotifications?.length)return;let r=t.payload.data.newNotifications?.filter(e=>!n.newNotifications.recievedIds.includes(e.id));r?.length&&(n.newNotifications.status=`idle`,n.notifications.unReadCount=t?.payload?.data?.unreadNotificationsCount??n.notifications?.unReadCount+1,n.newNotifications.recievedIds=n.newNotifications.recievedIds?.concat(r.map(e=>e?.id)),n.newNotifications.data=n.newNotifications?.data?.concat(r),n.newNotifications.count+=r.length,n.newNotifications.lastRequest+=1e3*30)},tg=H(`notification/notifications`,async e=>{let{path:t,queryObject:n}=e;return await V({options:{apiVersion:Qh,domainRoot:`notifications`,method:`notifications`,path:t,queryObject:{limit:n.limit,offset:n.offset}}})},{condition:(e,t)=>!((t.getState().notification.notifications.status===`loading`||t.getState().notification.notifications.data)&&t.getState().notification.notifications?.data?.length&&e.offset1<t.getState().notification.notifications?.data?.length)}),ng=H(`notification/unReadNotifications`,async e=>{let{path:t,queryObject:n}=e;return await V({options:{apiVersion:Qh,domainRoot:`notifications`,method:`unReadNotifications`,path:t,queryObject:n}})},{condition:(e,t)=>!((t.getState().notification.notifications.status===`loading`||t.getState().notification.notifications.data)&&t.getState().notification.notifications?.data?.length&&e.offset1<t.getState().notification.notifications?.data?.length)}),rg=H(`notification/getUnReadNotificationsCount`,async e=>{let{path:t,queryObject:n}=e;return await V({options:{apiVersion:Qh,domainRoot:`notifications`,method:`unReadNotifications`,path:t,queryObject:n}})}),ig=H(`notification/newNotifications`,async(e,t)=>{let n=t.getState().notification?.newNotifications?.lastRequest,r=new Date(n).toISOString();return await V({options:{apiVersion:Qh,domainRoot:`notifications`,method:`newNotifications`,path:`${e?.path}&createdAfter=${r}`}})}),ag=H(`notification/readNotification`,async e=>{let{path:t,data:n,id:r}=e;return{response:await V({options:{apiVersion:Qh,domainRoot:`notifications`,method:`read`,path:t},data:n}),id:r}}),og=H(`notification/unReadNotification`,async e=>{let{path:t,data:n,id:r}=e;return{response:await V({options:{apiVersion:Qh,domainRoot:`notifications`,method:`unRead`,path:t},data:n}),id:r}}),sg=H(`notification/readAllNotifications`,async({data:e,checkStatusOveredFunction:t})=>({response:await V({options:{apiVersion:Qh,domainRoot:`notifications`,method:`readAll`,path:`read-all`,checkStatusOveredFunction:t},data:e})})),cg=Ie({name:`notification`,initialState:$h,reducers:{shiftOldestNotification:e=>{e.newNotifications.data.shift(),--e.newNotifications.count},notificationsReset:e=>{let t=e,{status:n,data:r,meta:i}=$h.notifications;t.notifications={unReadCount:t.notifications.unReadCount,status:n,data:r,meta:i}},filterNotificationToUnread:e=>{let t=e;t.notifications.data=e?.notifications.data.map(e=>({...e,display:!e.currentlyRead}))},getNewNotifications:eg},extraReducers:e=>{e.addCase(tg.pending,(e,t)=>{let n=e;n.notifications.status=`loading`}).addCase(tg.fulfilled,(e,t)=>{let n=e;n.notifications.status=`idle`,n.notifications.meta=t.payload?.meta??n.notifications.meta,t?.payload?.data?.notifications?.length&&(n.notifications.data=e.notifications?.data?e.notifications?.data?.concat(t?.payload?.data?.notifications):t.payload.data?.notifications),n.notifications.unReadCount=t.payload?.data?.unreadNotificationsCount??n.notifications.unReadCount}).addCase(tg.rejected,(e,t)=>{let n=e;n.notifications.status=`failed`}).addCase(ng.fulfilled,(e,t)=>{let n=e;n.notifications.status=`idle`,n.notifications.meta=t.payload?.meta??n.notifications.meta,t?.payload?.data?.notifications?.length&&(n.notifications.data=e.notifications?.data?e.notifications?.data?.concat(t?.payload?.data?.notifications):t.payload.data?.notifications),n.notifications.unReadCount=t.payload?.data?.unreadNotificationsCount??n.notifications.unReadCount}).addCase(ng.pending,(e,t)=>{let n=e;n.notifications.status=`loading`}).addCase(ng.rejected,(e,t)=>{let n=e;n.notifications.status=`failed`}).addCase(rg.fulfilled,(e,t)=>{let n=e;n.notifications.unReadCount=t.payload.data?.unreadNotificationsCount??n.notifications.unReadCount}).addCase(ig.fulfilled,eg).addCase(ig.pending,(e,t)=>{let n=e;n.newNotifications.status=`loading`}).addCase(ig.rejected,(e,t)=>{let n=e;n.newNotifications.status=`failed`}).addCase(ag.fulfilled,(e,t)=>{let n=e;n.readNotification.status=`idle`,n.notifications.data=n.notifications?.data?.map(e=>e?.id===t?.payload?.data?.data?.id?{...e,currentlyRead:!0}:e),n.readNotification.data=t.payload}).addCase(ag.pending,(e,t)=>{let n=e;n.readNotification.status=`loading`,n.notifications.data=n.notifications?.data?.map(e=>e?.id===t?.meta?.arg?.id?{...e,currentlyRead:!0}:e),--n.notifications.unReadCount}).addCase(ag.rejected,(e,t)=>{let n=e;n.readNotification.status=`failed`,n.notifications.data=n.notifications?.data?.map(e=>e?.id===t?.meta?.arg?.id?{...e,currentlyRead:!1}:e),n.notifications.unReadCount+=1}).addCase(og.fulfilled,(e,t)=>{let n=e;n.unReadNotification.status=`idle`,n.notifications.data=n.notifications?.data?.map(e=>e?.id===t?.payload?.data?.data?.id?{...e,currentlyRead:!1}:e),n.unReadNotification.data=t.payload}).addCase(og.pending,(e,t)=>{let n=e;n.unReadNotification.status=`loading`,n.notifications.data=n.notifications?.data?.map(e=>e?.id===t?.meta?.arg?.id?{...e,currentlyRead:!1}:e),n.notifications.unReadCount+=1}).addCase(og.rejected,(e,t)=>{let n=e;n.unReadNotification.status=`failed`,n.notifications.data=n.notifications?.data?.map(e=>e?.id===t?.meta?.arg?.id?{...e,currentlyRead:!0}:e),--n.notifications.unReadCount}).addCase(sg.fulfilled,(e,t)=>{let n=e;n.readAllNotifications.status=`idle`}).addCase(sg.pending,(e,t)=>{let n=e;n.readAllNotifications.status=`loading`,n.readAllNotifications.data=n.notifications.data,n.readAllNotifications.unReadCount=n.notifications.unReadCount,n.notifications.unReadCount=0,n.notifications.data=[]}).addCase(sg.rejected,(e,t)=>{let n=e;n.readAllNotifications.status=`failed`,n.notifications.data=n.readAllNotifications.data,n.notifications.unReadCount+=n.readAllNotifications.unReadCount})}}),{shiftOldestNotification:lg,notificationsReset:ug,filterNotificationToUnread:dg,getNewNotifications:fg}=cg.actions,pg=cg.reducer,mg=J.createContext();function hg(){return(0,J.useContext)(mg)}var gg=i((e=>{var n=t(),r=Te();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var a=Symbol.for(`react.transitional.element`),o=Symbol.for(`react.portal`),s=Symbol.for(`react.fragment`),c=Symbol.for(`react.strict_mode`),l=Symbol.for(`react.profiler`),u=Symbol.for(`react.consumer`),d=Symbol.for(`react.context`),f=Symbol.for(`react.forward_ref`),p=Symbol.for(`react.suspense`),m=Symbol.for(`react.suspense_list`),h=Symbol.for(`react.memo`),g=Symbol.for(`react.lazy`),_=Symbol.for(`react.scope`),v=Symbol.for(`react.activity`),y=Symbol.for(`react.legacy_hidden`),b=Symbol.for(`react.memo_cache_sentinel`),x=Symbol.for(`react.view_transition`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}var w=Array.isArray;function T(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var E=Object.assign,D=Object.prototype.hasOwnProperty,O=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
2272037D\\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]*$`),k={},A={};function j(e){return D.call(A,e)?!0:D.call(k,e)?!1:O.test(e)?A[e]=!0:(k[e]=!0,!1)}var M=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(` `)),N=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-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`]]),P=/["'&<>]/;function F(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=P.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`&quot;`;break;case 38:t=`&amp;`;break;case 39:t=`&#x27;`;break;case 60:t=`&lt;`;break;case 62:t=`&gt;`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var I=/([A-Z])/g,ee=/^ms-/,L=/^[\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 R(e){return L.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pen
vendor: 4,601 bytes, line 2272
2272ding:!1,data:null,method:null,action:null},re=te.d;te.d={f:re.f,r:re.r,D:st,C:ct,L:lt,m:ut,X:ft,S:dt,M:pt};var ie=[],ae=null,oe=/(<\/|<)(s)(cript)/gi;function se(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}function ce(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function le(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function B(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return le(2,null,r|1,null);case`select`:return le(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return le(4,null,r,null);case`picture`:return le(2,null,r|2,null);case`math`:return le(5,null,r,null);case`foreignObject`:return le(2,null,r,null);case`table`:return le(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return le(7,null,r,null);case`colgroup`:return le(9,null,r,null);case`tr`:return le(8,null,r,null);case`head`:if(2>e.insertionMode)return le(3,null,r,null);break;case`html`:if(e.insertionMode===0)return le(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?le(2,null,r,null):e.tagScope===r?e:le(e.insertionMode,e.selectedValue,r,null)}function ue(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function de(e,t){return t.tagScope&32&&(e.instructions|=128),le(t.insertionMode,t.selectedValue,t.tagScope|12,ue(t.viewTransition))}function fe(e,t){e=ue(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),le(t.insertionMode,t.selectedValue,n,e)}var pe=new Map;function me(e,t){if(typeof t!=`object`)throw Error(i(62));var n=!0,r;for(r in t)if(D.call(t,r)){var a=t[r];if(a!=null&&typeof a!=`boolean`&&a!==``){if(r.indexOf(`--`)===0){var o=F(r);a=F((``+a).trim())}else o=pe.get(r),o===void 0&&(o=F(r.replace(I,`-$1`).toLowerCase().replace(ee,`-ms-`)),pe.set(r,o)),a=typeof a==`number`?a===0||M.has(r)?``+a:a+`px`:F((``+a).trim());n?(n=!1,e.push(` style="`,o,`:`,a)):e.push(`;`,o,`:`,a)}}n||e.push(`"`)}function he(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`)}function ge(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(` `,t,`="`,F(n),`"`)}var _e=F(`javascript:throw new Error('React form unexpectedly submitted.')`);function ve(e,t){this.push(`<input type="hidden"`),ye(e),ge(this,`name`,t),ge(this,`value`,e),this.push(`/>`)}function ye(e){if(typeof e!=`string`)throw Error(i(480))}function be(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(ye),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function xe(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=be(t,r);l===null?(e.push(` `,`formAction`,`="`,_e,`"`),o=a=i=r=s=null,we(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&Se(e,`name`,s),r!=null&&Se(e,`formAction`,r),i!=null&&Se(e,`formEncType`,i),a!=null&&Se(e,`formMethod`,a),o!=null&&Se(e,`formTarget`,o),c}function Se(e,t,n){switch(t){case`className`:ge(e,`class`,n);break;case`tabIndex`:ge(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:ge(e,t,n);break;case`style`:me(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=R(``+n),e.push(` `,t,`="`,F(n),`"`);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:he(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=R(``+n),e.push(` `,`xlink:href`,`="`,F(n),`"`);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);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
2272ine`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`=""`);break;case`capture`:case`download`:!0===n?e.push(` `,t,`=""`):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(` `,t,`="`,F(n),`"`);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(` `,t,`="`,F(n),`"`);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(` `,t,`="`,F(n),`"`);break;case`xlinkActuate`:ge(e,`xlink:actuate`,n);break;case`xlinkArcrole`:ge(e,`xlink:arcrole`,n);break;case`xlinkRole`:ge(e,`xlink:role`,n);break;case`xlinkShow`:ge(e,`xlink:show`,n);break;case`xlinkTitle`:ge(e,`xlink:title`,n);break;case`xlinkType`:ge(e,`xlink:type`,n);break;case`xmlBase`:ge(e,`xml:base`,n);break;case`xmlLang`:ge(e,`xml:lang`,n);break;case`xmlSpace`:ge(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=N.get(t)||t,j(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(` `,t,`="`,F(n),`"`)}}}function Ce(e,t,n){if(t!=null){if(n!=null)throw Error(i(60));if(typeof t!=`object`||!(`__html`in t))throw Error(i(61));t=t.__html,t!=null&&e.push(``+t)}}function V(e){var t=``;return n.Children.forEach(e,function(e){e!=null&&(t+=e)}),t}function we(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),rt(r,e),r.push(`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)):r.unshift(t.startInlineScript,`>`,`addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`,`<\/script>`)}}function Ee(e,t){for(var n in e.push(U(`link`)),t)if(D.call(t,n)){var r=t[n];if(r!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,`link`));default:Se(e,n,r)}}return e.push(`/>`),null}var De=/(<\/|<)(s)(tyle)/gi;function Oe(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function ke(e,t,n){for(var r in e.push(U(n)),t)if(D.call(t,r)){var a=t[r];if(a!=null)switch(r){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,n));default:Se(e,r,a)}}return e.push(`/>`),null}function Ae(e,t){e.push(U(`title`));var n=null,r=null,i;for(i in t)if(D.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Se(e,i,a)}}return e.push(`>`),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(F(``+t)),Ce(e,r,n),e.push(Le(`title`)),null}function je(e,t){e.push(U(`script`));var n=null,r=null,i;for(i in t)if(D.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Se(e,i,a)}}return e.push(`>`),Ce(e,r,n),typeof n==`string`&&e.push((``+n).replace(oe,se)),e.push(Le(`script`)),null}function Me(e,t,n){e.push(U(n));var r=n=null,i;for(i in t)if(D.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Se(e,i,a)}}return e.push(`>`),Ce(e,r,n),n}function Ne(e,t,n){e.push(U(n));var r=n=null,i;for(i in t)if(D.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:Se(e,i,a)}}return e.push(`>`),Ce(e,r,n),typeof n==`string`?(e.push(F(n)),null):n}var Pe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,H=new Map;function U(e){var t=H.get(e);if(t===void 0){if(!Pe.test(e))throw Error(i(65,e));t=`<`+e,H.set(e,t)}return t}function Fe(e,t,n,r,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(U(`a`));var u=null,d=null,f;for(f in n)if(D.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?ge(e,`href`,``):Se(e,f,p);break;default:Se(e,f,p)}}if(e.push(`>`),Ce(e,d,u),typeof u==`string`){e.push(F(u));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(U(`select`));var h=null,g=null,_;for(_ in n)if(D.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:Se(e,_,v)}}return e.push(`>`),Ce(e,g,h),h;case`option`:var y=c.selectedValue;e.push(U(`option`));var b=null,x=null,S=null,C=null,T;for(T in n)if(D.call(n,T)){var O=n[T];if(O!=null)switch(T){case`children`:b=O;break;case`selected`:S=O;break;case`dangerouslySetInnerHTML`:C=O;break;case`value`:x=O;default:Se(e,T,O)}}if(y!=null){var k=x===null?V(b):``+x;if(w(y)){for(var A=0;A<y.length;A++)if(``+y[A]===k){e.push(` selected=""`);break}}else ``+y===k&&e.push(` selected=""`)}else S&&e.push(` selected=""`);return e.push(`>`),Ce(e,C,b),b;case`textarea`:e.push(U(`textarea`));var M=null,N=null,P=null,I;for(I in n)if(D.call(n,I)){var ee=n[I];if(ee!=null)switch(I){case`children`:P=ee;break;case`value`:M=ee;break;case`defaultValue`:N=ee;break;case`dangerouslySetInnerHTML`:throw Error(i(91));default:Se(e,I,ee)}}if(M===null&&N!==null&&(M=N),e.push(`>`),P!=null){if(M!=null)throw Error(i(92));if(w(P)){if(1<P.length)throw Error(i(93));M=``+P[0]}M=``+P}return typeof M==`string`&&M[0]===`
2273`&&e.push(`
2274`),M!==null&&e.push(F(``+M)),null;
2274case`input`:e.push(U(`input`));var L=null,z=null,te=null,ne=null,re=null,ae=null,oe=null,se=null,ce=null,le;for(le in n)if(D.call(n,le)){var B=n[le];if(B!=null)switch(le){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,`input`));case`name`:L=B;break;case`formAction`:z=B;break;case`formEncType`:te=B;break;case`formMethod`:ne=B;break;case`formTarget`:re=B;break;case`defaultChecked`:ce=B;break;case`defaultValue`:oe=B;break;case`checked`:se=B;break;case`value`:ae=B;break;default:Se(e,le,B)}}var ue=xe(e,r,a,z,te,ne,re,L);return se===null?ce!==null&&he(e,`checked`,ce):he(e,`checked`,se),ae===null?oe!==null&&Se(e,`value`,oe):Se(e,`value`,ae),e.push(`/>`),ue?.forEach(ve,e),null;case`button`:e.push(U(`button`));var de=null,fe=null,pe=null,ye=null,Te=null,Pe=null,H=null,Fe;for(Fe in n)if(D.call(n,Fe)){var Ie=n[Fe];if(Ie!=null)switch(Fe){case`children`:de=Ie;break;case`dangerouslySetInnerHTML`:fe=Ie;break;case`name`:pe=Ie;break;case`formAction`:ye=Ie;break;case`formEncType`:Te=Ie;break;case`formMethod`:Pe=Ie;break;case`formTarget`:H=Ie;break;default:Se(e,Fe,Ie)}}var Re=xe(e,r,a,ye,Te,Pe,H,pe);if(e.push(`>`),Re?.forEach(ve,e),Ce(e,fe,de),typeof de==`string`){e.push(F(de));var ze=null}else ze=de;return ze;case`form`:e.push(U(`form`));var Be=null,Ve=null,He=null,Ue=null,W=null,We=null,Ge;for(Ge in n)if(D.call(n,Ge)){var Ke=n[Ge];if(Ke!=null)switch(Ge){case`children`:Be=Ke;break;case`dangerouslySetInnerHTML`:Ve=Ke;break;case`action`:He=Ke;break;case`encType`:Ue=Ke;break;case`method`:W=Ke;break;case`target`:We=Ke;break;default:Se(e,Ge,Ke)}}var qe=null,Je=null;if(typeof He==`function`){var Ye=be(r,He);Ye===null?(e.push(` `,`action`,`="`,_e,`"`),We=W=Ue=He=null,we(r,a)):(He=Ye.action||``,Ue=Ye.encType,W=Ye.method,We=Ye.target,qe=Ye.data,Je=Ye.name)}if(He!=null&&Se(e,`action`,He),Ue!=null&&Se(e,`encType`,Ue),W!=null&&Se(e,`method`,W),We!=null&&Se(e,`target`,We),e.push(`>`),Je!==null&&(e.push(`<input type="hidden"`),ge(e,`name`,Je),e.push(`/>`),qe?.forEach(ve,e)),Ce(e,Ve,Be),typeof Be==`string`){e.push(F(Be));var Xe=null}else Xe=Be;return Xe;case`menuitem`:for(var Ze in e.push(U(`menuitem`)),n)if(D.call(n,Ze)){var Qe=n[Ze];if(Qe!=null)switch(Ze){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(400));default:Se(e,Ze,Qe)}}return e.push(`>`),null;case`object`:e.push(U(`object`));var $e=null,et=null,tt;for(tt in n)if(D.call(n,tt)){var nt=n[tt];if(nt!=null)switch(tt){case`children`:$e=nt;break;case`dangerouslySetInnerHTML`:et=nt;break;case`data`:var rt=R(``+nt);if(rt===``)break;e.push(` `,`data`,`="`,F(rt),`"`);break;default:Se(e,tt,nt)}}if(e.push(`>`),Ce(e,et,$e),typeof $e==`string`){e.push(F($e));var it=null}else it=$e;return it;case`title`:var at=c.tagScope&1,ot=c.tagScope&4;if(c.insertionMode===4||at||n.itemProp!=null)var st=Ae(e,n);else ot?st=null:(Ae(a.hoistableChunks,n),st=void 0);return st;case`link`:var ct=c.tagScope&1,lt=c.tagScope&4,ut=n.rel,dt=n.href,ft=n.precedence;if(c.insertionMode===4||ct||n.itemProp!=null||typeof ut!=`string`||typeof dt!=`string`||dt===``){Ee(e,n);var pt=null}else if(n.rel===`stylesheet`)if(typeof ft!=`string`||n.disabled!=null||n.onLoad||n.onError)pt=Ee(e,n);else{var gt=a.styles.get(ft),_t=r.styleResources.hasOwnProperty(dt)?r.styleResources[dt]:void 0;if(_t!==null){r.styleResources[dt]=null,gt||(gt={precedence:F(ft),rules:[],hrefs:[],sheets:new Map},a.styles.set(ft,gt));var vt={state:0,props:E({},n,{"data-precedence":n.precedence,precedence:null})};if(_t){_t.length===2&&mt(vt.props,_t);var yt=a.preloads.stylesheets.get(dt);yt&&0<yt.length?yt.length=0:vt.state=1}gt.sheets.set(dt,vt),s&&s.stylesheets.add(vt)}else if(gt){var bt=gt.sheets.get(dt);bt&&s&&s.stylesheets.add(bt)}l&&e.push(`<!-- -->`),pt=null}else n.onLoad||n.onError?pt=Ee(e,n):(l&&e.push(`<!-- -->`),pt=lt?null:Ee(a.hoistableChunks,n));return pt;case`script`:var xt=c.tagScope&1,St=n.async;if(typeof n.src!=`string`||!n.src||!St||typeof St==`function`||typeof St==`symbol`||n.onLoad||n.onError||c.insertionMode===4||xt||n.itemProp!=null)var Ct=je(e,n);else{var wt=n.src;if(n.type===`module`)var Tt=r.moduleScriptResources,Et=a.preloads.moduleScripts;else Tt=r.scriptResources,Et=a.preloads.scripts;var Dt=Tt.hasOwnProperty(wt)?Tt[wt]:void 0;if(Dt!==null){Tt[wt]=null;var Ot=n;if(Dt){Dt.length===2&&(Ot=E({},n),mt(Ot,Dt));var G=Et.get(wt);G&&(G.length=0)}var kt=[];a.scripts.add(kt),je(kt,Ot)}l&&e.push(`<!-- -->`),Ct=null}return Ct;case`style`:var At=c.tagScope&1,jt=n.precedence,Mt=n.href,Nt=n.nonce;if(c.insertionMode===4||At||n.itemProp!=null||typeof jt!=`string`||typeof Mt!=`string`||Mt===``){e.push(U(`style`));var Pt=null,Ft=null,It;for(It in n)if(D.call(n,It)){var Lt=n[It];if(Lt!=null)switch(It){case`children`:Pt=Lt;break;case`dangerouslySetInnerHTML`:Ft=Lt;break;default:Se(e,It,Lt)}}e.push(`>`);var Rt=Array.isArray(Pt)?2>Pt.length?Pt[0]:null:Pt;typeof Rt!=`function`&&typeof Rt!=`symbol`&&Rt!=null&&e.push((``+Rt).replace(De,Oe)),Ce(e,Ft,Pt),e.push(Le(`style`));var zt=null}else{var Bt=a.styles.get(jt);
vendor: 20,842 bytes, lines 2274-2282
2274if((r.styleResources.hasOwnProperty(Mt)?r.styleResources[Mt]:void 0)!==null){r.styleResources[Mt]=null,Bt||(Bt={precedence:F(jt),rules:[],hrefs:[],sheets:new Map},a.styles.set(jt,Bt));var Vt=a.nonce.style;if(!Vt||Vt===Nt){Bt.hrefs.push(F(Mt));var Ht=Bt.rules,Ut=null,Wt=null,Gt;for(Gt in n)if(D.call(n,Gt)){var Kt=n[Gt];if(Kt!=null)switch(Gt){case`children`:Ut=Kt;break;case`dangerouslySetInnerHTML`:Wt=Kt}}var qt=Array.isArray(Ut)?2>Ut.length?Ut[0]:null:Ut;typeof qt!=`function`&&typeof qt!=`symbol`&&qt!=null&&Ht.push((``+qt).replace(De,Oe)),Ce(Ht,Wt,Ut)}}Bt&&s&&s.styles.add(Bt),l&&e.push(`<!-- -->`),zt=void 0}return zt;case`meta`:var Jt=c.tagScope&1,Yt=c.tagScope&4;if(c.insertionMode===4||Jt||n.itemProp!=null)var Xt=ke(e,n,`meta`);else l&&e.push(`<!-- -->`),Xt=Yt?null:typeof n.charSet==`string`?ke(a.charsetChunks,n,`meta`):n.name===`viewport`?ke(a.viewportChunks,n,`meta`):ke(a.hoistableChunks,n,`meta`);return Xt;case`listing`:case`pre`:e.push(U(t));var Zt=null,Qt=null,$t;for($t in n)if(D.call(n,$t)){var en=n[$t];if(en!=null)switch($t){case`children`:Zt=en;break;case`dangerouslySetInnerHTML`:Qt=en;break;default:Se(e,$t,en)}}if(e.push(`>`),Qt!=null){if(Zt!=null)throw Error(i(60));if(typeof Qt!=`object`||!(`__html`in Qt))throw Error(i(61));var tn=Qt.__html;tn!=null&&(typeof tn==`string`&&0<tn.length&&tn[0]===`
2275`?e.push(`
2276`,tn):e.push(``+tn))}return typeof Zt==`string`&&Zt[0]===`
2277`&&e.push(`
2278`),Zt;case`img`:var nn=c.tagScope&3,rn=n.src,an=n.srcSet;if(!(n.loading===`lazy`||!rn&&!an||typeof rn!=`string`&&rn!=null||typeof an!=`string`&&an!=null||n.fetchPriority===`low`||nn)&&(typeof rn!=`string`||rn[4]!==`:`||rn[0]!==`d`&&rn[0]!==`D`||rn[1]!==`a`&&rn[1]!==`A`||rn[2]!==`t`&&rn[2]!==`T`||rn[3]!==`a`&&rn[3]!==`A`)&&(typeof an!=`string`||an[4]!==`:`||an[0]!==`d`&&an[0]!==`D`||an[1]!==`a`&&an[1]!==`A`||an[2]!==`t`&&an[2]!==`T`||an[3]!==`a`&&an[3]!==`A`)){s!==null&&c.tagScope&64&&(s.suspenseyImages=!0);var on=typeof n.sizes==`string`?n.sizes:void 0,sn=an?an+`
2279`+(on||``):rn,cn=a.preloads.images,ln=cn.get(sn);if(ln)(n.fetchPriority===`high`||10>a.highImagePreloads.size)&&(cn.delete(sn),a.highImagePreloads.add(ln));else if(!r.imageResources.hasOwnProperty(sn)){r.imageResources[sn]=ie;var un=n.crossOrigin,dn=typeof un==`string`?un===`use-credentials`?un:``:void 0,fn=a.headers,pn;fn&&0<fn.remainingCapacity&&typeof n.srcSet!=`string`&&(n.fetchPriority===`high`||500>fn.highImagePreloads.length)&&(pn=ht(rn,`image`,{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:dn,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(fn.remainingCapacity-=pn.length+2))?(a.resets.image[sn]=ie,fn.highImagePreloads&&(fn.highImagePreloads+=`, `),fn.highImagePreloads+=pn):(ln=[],Ee(ln,{rel:`preload`,as:`image`,href:an?void 0:rn,imageSrcSet:an,imageSizes:on,crossOrigin:dn,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),n.fetchPriority===`high`||10>a.highImagePreloads.size?a.highImagePreloads.add(ln):(a.bulkPreloads.add(ln),cn.set(sn,ln)))}}return ke(e,n,`img`);case`base`:case`area`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`param`:case`source`:case`track`:case`wbr`:return ke(e,n,t);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`:break;case`head`:if(2>c.insertionMode){var mn=o||a.preamble;if(mn.headChunks)throw Error(i(545,"`<head>`"));o!==null&&e.push(`<!--head-->`),mn.headChunks=[];var hn=Me(mn.headChunks,n,`head`)}else hn=Ne(e,n,`head`);return hn;case`body`:if(2>c.insertionMode){var gn=o||a.preamble;if(gn.bodyChunks)throw Error(i(545,"`<body>`"));o!==null&&e.push(`<!--body-->`),gn.bodyChunks=[];var _n=Me(gn.bodyChunks,n,`body`)}else _n=Ne(e,n,`body`);return _n;case`html`:if(c.insertionMode===0){var vn=o||a.preamble;if(vn.htmlChunks)throw Error(i(545,"`<html>`"));o!==null&&e.push(`<!--html-->`),vn.htmlChunks=[``];var yn=Me(vn.htmlChunks,n,`html`)}else yn=Ne(e,n,`html`);return yn;default:if(t.indexOf(`-`)!==-1){e.push(U(t));var bn=null,xn=null,Sn;for(Sn in n)if(D.call(n,Sn)){var Cn=n[Sn];if(Cn!=null){var wn=Sn;switch(Sn){case`children`:bn=Cn;break;case`dangerouslySetInnerHTML`:xn=Cn;break;case`style`:me(e,Cn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`className`:wn=`class`;default:if(j(Sn)&&typeof Cn!=`function`&&typeof Cn!=`symbol`&&!1!==Cn){if(!0===Cn)Cn=``;else if(typeof Cn==`object`)continue;e.push(` `,wn,`="`,F(Cn),`"`)}}}}return e.push(`>`),Ce(e,xn,bn),bn}}return Ne(e,n,t)}var Ie=new Map;function Le(e){var t=Ie.get(e);return t===void 0&&(t=`</`+e+`>`,Ie.set(e,t)),t}function Re(e,t){e=e.preamble,e.htmlChunks===null&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),e.headChunks===null&&t.headChunks&&(e.headChunks=t.headChunks),e.bodyChunks===null&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function ze(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)e.push(t[n]);return n<t.length?(n=t[n],t.length=0,e.push(n)):!0}function Be(e,t,n){if(e.push(`<!--$?--><template id="`),n===null)throw Error(i(395));return e.push(t.boundaryPrefix),t=n.toString(16),e.push(t),e.push(`"></template>`)}function Ve(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 3:case 2:return e.push(`<div hidden id="`),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push(`">`);case 4:return e.push(`<svg aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push(`">`);case 5:return e.push(`<math aria-hidden="true" style="display:none" id="`),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push(`">`);case 6:return e.push(`<table hidden id="`),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push(`">`);case 7:return e.push(`<table hidden><tbody id="`),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push(`">`);case 8:return e.push(`<table hidden><tr id="`),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push(`">`);case 9:return e.push(`<table hidden><colgroup id="`),e.push(t.segmentPrefix),t=r.toString(16),e.push(t),e.push(`">`);default:throw Error(i(397))}}function He(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return e.push(`</div>`);case 4:return e.push(`</svg>`);case 5:return e.push(`</math>`);case 6:return e.push(`</table>`);case 7:return e.push(`</tbody></table>`);case 8:return e.push(`</tr></table>`);case 9:return e.push(`</colgroup></table>`);default:throw Error(i(397))}}var Ue=/[<\u2028\u2029]/g;function W(e){return JSON.stringify(e).replace(Ue,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var We=/[&><\u2028\u2029]/g;function Ge(e){return JSON.stringify(e).replace(We,function(e){switch(e){case`&`:return`\\u0026`;case`>`:return`\\u003e`;case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Ke=!1,qe=!0;function Je(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(this.push(ae.startInlineStyle),this.push(` media="not all" data-precedence="`),this.push(e.precedence),this.push(`" data-href="`);r<n.length-1;r++)this.push(n[r]),this.push(` `);for(this.push(n[r]),this.push(`">`),r=0;r<t.length;r++)this.push(t[r]);qe=this.push(`</style>`),Ke=!0,t.length=0,n.length=0}}function Ye(e){return e.state===2?!1:Ke=!0}function Xe(e,t,n){return Ke=!1,qe=!0,ae=n,t.styles.forEach(Je,e),ae=null,t.stylesheets.forEach(Ye),Ke&&(n.stylesToHoist=!0),qe}function Ze(e){for(var t=0;t<e.length;t++)this.push(e[t]);e.length=0}var Qe=[];function $e(e){Ee(Qe,e.props);for(var t=0;t<Qe.length;t++)this.push(Qe[t]);Qe.length=0,e.state=2}function et(e){var t=0<e.sheets.size;e.sheets.forEach($e,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(this.push(ae.startInlineStyle),this.push(` data-precedence="`),this.push(e.precedence),e=0,r.length){for(this.push(`" data-href="`);e<r.length-1;e++)this.push(r[e]),this.push(` `);this.push(r[e])}for(this.push(`">`),e=0;e<n.length;e++)this.push(n[e]);this.push(`</style>`),n.length=0,r.length=0}}function tt(e){if(e.state===0){e.state=1;var t=e.props;for(Ee(Qe,{rel:`preload`,as:`style`,href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<Qe.length;e++)this.push(Qe[e]);Qe.length=0}}function nt(e){e.sheets.forEach(tt,this),e.sheets.clear()}function rt(e,t){!(t.instructions&32)&&(t.instructions|=32,e.push(` id="`,F(`_`+t.idPrefix+`R_`),`"`))}function it(e,t){e.push(`[`);var n=`[`;t.stylesheets.forEach(function(t){if(t.state!==2)if(t.state===3)e.push(n),t=Ge(``+t.props.href),e.push(t),e.push(`]`),n=`,[`;else{e.push(n);var r=t.props[`data-precedence`],a=t.props,o=R(``+t.props.href);for(var s in o=Ge(o),e.push(o),r=``+r,e.push(`,`),r=Ge(r),e.push(r),a)if(D.call(a,s)&&(r=a[s],r!=null))switch(s){case`href`:case`rel`:case`precedence`:case`data-precedence`:break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,`link`));default:at(e,s,r)}e.push(`]`),n=`,[`,t.state=3}}),e.push(`]`)}function at(e,t,n){var r=t.toLowerCase();switch(typeof n){case`function`:case`symbol`:return}switch(t){case`innerHTML`:case`dangerouslySetInnerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`style`:case`ref`:return;case`className`:r=`class`,t=``+n;break;case`hidden`:if(!1===n)return;t=``;break;case`src`:case`href`:n=R(n),t=``+n;break;default:if(2<t.length&&(t[0]===`o`||t[0]===`O`)&&(t[1]===`n`||t[1]===`N`)||!j(t))return;t=``+n}e.push(`,`),r=Ge(r),e.push(r),e.push(`,`),r=Ge(t),e.push(r)}function ot(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function st(e){var t=Bn||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=null,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+(``+e).replace(gt,_t)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],Ee(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}Pr(t)}}else re.D(e)}function ct(e,t){var n=Bn||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=null,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+(``+e).replace(gt,_t)+`>; rel=preconnect`,typeof t==`string`){var c=(``+t).replace(vt,yt);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=null,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],Ee(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}Pr(n)}}else re.C(e,t)}function lt(e,t,n){var r=Bn||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
2280`+(s||``):e;if(i.imageResources.hasOwnProperty(l))return;i.imageResources[l]=ie,i=a.headers;var u;i&&0<i.remainingCapacity&&typeof o!=`string`&&c===`high`&&(u=ht(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(a.resets.image[l]=ie,i.highImagePreloads&&(i.highImagePreloads+=`, `),i.highImagePreloads+=u):(i=[],Ee(i,E({rel:`preload`,href:o?void 0:e,as:t},n)),c===`high`?a.highImagePreloads.add(i):(a.bulkPreloads.add(i),a.preloads.images.set(l,i)));break;case`style`:if(i.styleResources.hasOwnProperty(e))return;o=[],Ee(o,E({rel:`preload`,href:e,as:t},n)),i.styleResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ie:[n.crossOrigin,n.integrity],a.preloads.stylesheets.set(e,o),a.bulkPreloads.add(o);break;case`script`:if(i.scriptResources.hasOwnProperty(e))return;o=[],a.preloads.scripts.set(e,o),a.bulkPreloads.add(o),Ee(o,E({rel:`preload`,href:e,as:t},n)),i.scriptResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ie:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if(o=i.unknownResources[t],o.hasOwnProperty(e))return}else o={},i.unknownResources[t]=o;if(o[e]=ie,(i=a.headers)&&0<i.remainingCapacity&&t===`font`&&(l=ht(e,t,n),0<=(i.remainingCapacity-=l.length+2)))a.resets.font[e]=ie,i.fontPreloads&&(i.fontPreloads+=`, `),i.fontPreloads+=l;else switch(i=[],e=E({rel:`preload`,href:e,as:t},n),Ee(i,e),t){case`font`:a.fontPreloads.add(i);break;default:a.bulkPreloads.add(i)}}Pr(r)}}else re.L(e,t,n)}function ut(e,t){var n=Bn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=t&&typeof t.as==`string`?t.as:`script`;switch(a){case`script`:if(r.moduleScriptResources.hasOwnProperty(e))return;a=[],r.moduleScriptResources[e]=!t||typeof t.crossOrigin!=`string`&&typeof t.integrity!=`string`?ie:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,a);break;default:if(r.moduleUnknownResources.hasOwnProperty(a)){var o=r.unknownResources[a];if(o.hasOwnProperty(e))return}else o={},r.moduleUnknownResources[a]=o;a=[],o[e]=ie}Ee(a,E({rel:`modulepreload`,href:e},t)),i.bulkPreloads.add(a),Pr(n)}}else re.m(e,t)}function dt(e,t,n){var r=Bn||null;if(r){var i=r.resumableState,a=r.renderState;if(e){t||=`default`;var o=a.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;s!==null&&(i.styleResources[e]=null,o||(o={precedence:F(t),rules:[],hrefs:[],sheets:new Map},a.styles.set(t,o)),t={state:0,props:E({rel:`stylesheet`,href:e,"data-precedence":t},n)},s&&(s.length===2&&mt(t.props,s),(a=a.preloads.stylesheets.get(e))&&0<a.length?a.length=0:t.state=1),o.sheets.set(e,t),Pr(r))}}else re.S(e,t,n)}function ft(e,t){var n=Bn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;a!==null&&(r.scriptResources[e]=null,t=E({src:e,async:!0},t),a&&(a.length===2&&mt(t,a),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),je(e,t),Pr(n))}}else re.X(e,t)}function pt(e,t){var n=Bn||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;a!==null&&(r.moduleScriptResources[e]=null,t=E({src:e,type:`module`,async:!0},t),a&&(a.length===2&&mt(t,a),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),je(e,t),Pr(n))}}else re.M(e,t)}function mt(e,t){e.crossOrigin??=t[0],e.integrity??=t[1]}function ht(e,t,n){for(var r in e=(``+e).replace(gt,_t),t=(``+t).replace(vt,yt),t=`<`+e+`>; rel=preload; as="`+t+`"`,n)D.call(n,r)&&(e=n[r],typeof e==`string`&&(t+=`; `+r.toLowerCase()+`="`+(``+e).replace(vt,yt)+`"`));return t}var gt=/[<>\r\n]/g;function _t(e){switch(e){case`<`:return`%3C`;case`>`:return`%3E`;case`
2281`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}var vt=/["';,\r\n]/g;function yt(e){switch(e){case`"`:return`%22`;case`'`:return`%27`;case`;`:return`%3B`;case`,`:return`%2C`;case`
2282`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}function bt(e){this.styles.add(e)}function xt(e){this.stylesheets.add(e)}function St(e,t){t.styles.forEach(bt,e),t.stylesheets.forEach(xt,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function Ct(e,t){var n=e.idPrefix,r=[],i=e.bootstrapScriptContent,a=e.bootstrapScripts,o=e.bootstrapModules;i!==void 0&&(r.push(`<script`),rt(r,e),r.push(`>`,(``+i).replace(oe,se),`<\/script>`)),i=n+`P:`;var s=n+`S:`;n+=`B:`;var c=new Set,l=new Set,u=new Set,d=new Map,f=new Set,p=new Set,m=new Set,h={images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map};if(a!==void 0)for(var g=0;g<a.length;g++){var _=a[g],v,y=void 0,b=void 0,x={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:void 0};typeof _==`string`?x.href=v=_:(x.href=v=_.src,x.integrity=b=typeof _.integrity==`string`?_.integrity:void 0,x.crossOrigin=y=typeof _==`string`||_.crossOrigin==null?void 0:_.crossOrigin===`use-credentials`?`use-credentials`:``),_=e;var S=v;_.scriptResources[S]=null,_.moduleScriptResources[S]=null,_=[],Ee(_,x),f.add(_),r.push(`<script src="`,F(v),`"`),typeof b==`string`&&r.push(` integrity="`,F(b),`"`),typeof y==`string`&&r.push(` crossorigin="`,F(y),`"`),rt(r,e),r.push(` async=""><\/script>`)}if(o!==void 0)for(a=0;a<o.length;a++)x=o[a],y=v=void 0,b={rel:`modulepreload`,fetchPriority:`low`,nonce:void 0},typeof x==`string`?b.href=g=x:(b.href=g=x.src,b.integrity=y=typeof x.integrity==`string`?x.integrity:void 0,b.crossOrigin=v=typeof x==`string`||x.crossOrigin==null?void 0:x.crossOrigin===`use-credentials`?`use-credentials`:``),x=e,_=g,x.scriptResources[_]=null,x.moduleScriptResources[_]=null,x=[],Ee(x,b),f.add(x),r.push(`<script type="module" src="`,F(g),`"`),typeof y==`string`&&r.push(` integrity="`,F(y),`"`),typeof v==`string`&&r.push(` crossorigin="`,F(v),`"`),rt(r,e),r.push(` async=""><\/script>`);return{placeholderPrefix:i,segmentPrefix:s,boundaryPrefix:n,startInlineScript:`<script`,startInlineStyle:`<style`,preamble:{htmlChunks:null,headChunks:null,bodyChunks:null},externalRuntimeScript:null,bootstrapChunks:r,importMapChunks:[],onHeaders:void 0,headers:null,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:c,fontPreloads:l,highImagePreloads:u,styles:d,bootstrapScripts:f,scripts:p,bulkPreloads:m,preloads:h,nonce:{script:void 0,style:void 0},stylesToHoist:!1,generateStaticMarkup:t}}function wt(e,t,n,r){return n.generateStaticMarkup?(e.push(F(t)),!1):(t===``?e=r:(r&&e.push(`<!-- -->`),e.push(F(t)),e=!0),e)}function Tt(e,t,n,r){t.generateStaticMarkup||n&&r&&e.push(`<!-- -->`)}var Et=Function.prototype.bind,Dt=Symbol.for(`react.client.reference`);function Ot(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Dt?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case s:return`Fragment`;case l:return`Profiler`;case c:return`StrictMode`;case p:return`Suspense`;case m:return`SuspenseList`;case v:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case o:return`Portal`;case d:return e.displayName||`Context`;case u:return(e._context.displayName||`Context`)+`.Consumer`;case f:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case h:return t=e.displayName||null,t===null?Ot(e.type)||`Memo`:t;case g:t=e._payload,e=e._init;try{return Ot(e(t))}catch{}}return null}var G={},kt=null;function At(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(i(401))}else{if(n===null)throw Error(i(401));At(e,n)}t.context._currentValue2=t.value}}function jt(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&jt(e)}function Mt(e){var t=e.parent;t!==null&&Mt(t),e.context._currentValue2=e.value}function Nt(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(i(402));e.depth===t.depth?At(e,t):Nt(e,t)}function Pt(e,t){var n=t.parent;if(n===null)throw Error(i(402));e.depth===n.depth?At(e,n):Pt(e,n),t.context._currentValue2=t.value}function Ft(e){var t=kt;t!==e&&(t===null?Mt(e):e===null?jt(t):t.depth===e.depth?At(t,e):t.depth>e.depth?Nt(t,e):Pt(t,e),kt=e)}var It={enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},Lt={id:1,overflow:``};function Rt(e,t,n){var r=e.id;e=e.overflow;var i=32-zt(r)-1;r&=~(1<<i),n+=1;var a=32-zt(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-zt(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var zt=Math.clz32?Math.clz32:Ht,Bt=Math.log,Vt=Math.LN2;function Ht(e){return e>>>=0,e===0?32:31-(Bt(e)/Vt|0)|0}function Ut(){}var Wt=Error(i(460));function Gt(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ut,Ut),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason;default:switch(typeof t.status==`string`?t.then(Ut,Ut):(e=t,e.status=`pending`,e.then(function(e){if(t.status===`pen
2282ding`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason}throw Kt=t,Wt}}var Kt=null;function qt(){if(Kt===null)throw Error(i(459));var e=Kt;return Kt=null,e}function Jt(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Yt=typeof Object.is==`function`?Object.is:Jt,Xt=null,Zt=null,Qt=null,$t=null,en=null,tn=null,nn=!1,rn=!1,an=0,on=0,sn=-1,cn=0,ln=null,un=null,dn=0;function fn(){if(Xt===null)throw Error(i(321));return Xt}function pn(){if(0<dn)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function mn(){return tn===null?en===null?(nn=!1,en=tn=pn()):(nn=!0,tn=en):tn.next===null?(nn=!1,tn=tn.next=pn()):(nn=!0,tn=tn.next),tn}function hn(){var e=ln;return ln=null,e}function gn(){$t=Qt=Zt=Xt=null,rn=!1,en=null,dn=0,tn=un=null}function _n(e,t){return typeof t==`function`?t(e):t}function vn(e,t,n){if(Xt=fn(),tn=mn(),nn){var r=tn.queue;if(t=r.dispatch,un!==null&&(n=un.get(r),n!==void 0)){un.delete(r),r=tn.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return tn.memoizedState=r,[r,t]}return[tn.memoizedState,t]}return e=e===_n?typeof t==`function`?t():t:n===void 0?t:n(t),tn.memoizedState=e,e=tn.queue={last:null,dispatch:null},e=e.dispatch=bn.bind(null,Xt,e),[tn.memoizedState,e]}function yn(e,t){if(Xt=fn(),tn=mn(),t=t===void 0?null:t,tn!==null){var n=tn.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!Yt(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),tn.memoizedState=[e,t],e}function bn(e,t,n){if(25<=dn)throw Error(i(301));if(e===Xt)if(rn=!0,e={action:n,next:null},un===null&&(un=new Map),n=un.get(t),n===void 0)un.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}function xn(){throw Error(i(440))}function Sn(){throw Error(i(394))}function Cn(){throw Error(i(479))}function wn(e,t,n){fn();var r=on++,i=Qt;if(typeof e.$$FORM_ACTION==`function`){var a=null,o=$t;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(i!==null&&typeof s==`function`){var c=i[1];s.call(e,i[2],i[3])&&(a=n===void 0?`k`+T(JSON.stringify([o,null,r]),0):`p`+n,c===a&&(sn=r,t=i[0]))}var l=e.bind(null,t);return e=function(e){l(e)},typeof l.$$FORM_ACTION==`function`&&(e.$$FORM_ACTION=function(e){e=l.$$FORM_ACTION(e),n!==void 0&&(n+=``,e.action=n);var t=e.data;return t&&(a===null&&(a=n===void 0?`k`+T(JSON.stringify([o,null,r]),0):`p`+n),t.append(`$ACTION_KEY`,a)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function Tn(e){var t=cn;return cn+=1,ln===null&&(ln=[]),Gt(ln,e,t)}function En(){throw Error(i(393))}var Dn={readContext:function(e){return e._currentValue2},use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Tn(e);if(e.$$typeof===d)return e._currentValue2}throw Error(i(438,String(e)))},useContext:function(e){return fn(),e._currentValue2},useMemo:yn,useReducer:vn,useRef:function(e){Xt=fn(),tn=mn();var t=tn.memoizedState;return t===null?(e={current:e},tn.memoizedState=e):t},useState:function(e){return vn(_n,e)},useInsertionEffect:Ut,useLayoutEffect:Ut,useCallback:function(e,t){return yn(function(){return e},t)},useImperativeHandle:Ut,useEffect:Ut,useDebugValue:Ut,useDeferredValue:function(e,t){return fn(),t===void 0?e:t},useTransition:function(){return fn(),[!1,Sn]},useId:function(){var e=Zt.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-zt(e)-1)).toString(32)+t;var n=On;if(n===null)throw Error(i(404));return t=an++,e=`_`+n.idPrefix+`R_`+e,0<t&&(e+=`H`+t.toString(32)),e+`_`},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(i(407));return n()},useOptimistic:function(e){return fn(),[e,Cn]},useActionState:wn,useFormState:wn,useHostTransitionStatus:function(){return fn(),ne},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=b;return t},useCacheRefresh:function(){return En},useEffectEvent:function(){return xn}},On=null,kn={getCacheForType:function(){throw Error(i(248))},cacheSignal:function(){throw Error(i(248))}},An,jn;function Mn(e){if(An===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);An=t&&t[1]||``,jn=-1<e.stack.indexOf(`
2283    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
2284`+An+e+jn}var Nn=!1;function Pn(e,t){if(!e||Nn)return``;Nn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 33,378 bytes, lines 2284-2296
2284else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
2285`),l=s.split(`
2286`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
2287`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Nn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Mn(n):``}function Fn(e){if(typeof e==`string`)return Mn(e);if(typeof e==`function`)return e.prototype&&e.prototype.isReactComponent?Pn(e,!0):Pn(e,!1);if(typeof e==`object`&&e){switch(e.$$typeof){case f:return Pn(e.render,!1);case h:return Pn(e.type,!1);case g:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch{return Mn(`Lazy`)}return Fn(e)}if(typeof e.name==`string`){a:{n=e.name,t=e.env;var r=e.debugLocation;if(r!=null&&(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith(`Error: react-stack-top-frame
2288`)&&(r=r.slice(29)),e=r.indexOf(`
2289`),e!==-1&&(r=r.slice(e+1)),e=r.indexOf(`react_stack_bottom_frame`),e!==-1&&(e=r.lastIndexOf(`
2290`,e)),e=e===-1?``:r=r.slice(0,e),r=e.lastIndexOf(`
2291`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
2292`+e;break a}n=Mn(n+(t?` [`+t+`]`:``))}return n}}switch(e){case m:return Mn(`SuspenseList`);case p:return Mn(`Suspense`)}return``}function In(e,t){return(500<t.byteSize||!1)&&t.contentPreamble===null}function Ln(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`[%s] `+e[0],` `+t+` `):e.splice(0,0,`[%s]`,` `+t+` `),e.unshift(console),t=Et.apply(console.error,e),t()}else console.error(e);return null}function Rn(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=i===void 0?Ln:i,this.onPostpone=l===void 0?Ut:l,this.onAllReady=a===void 0?Ut:a,this.onShellReady=o===void 0?Ut:o,this.onShellError=s===void 0?Ut:s,this.onFatalError=c===void 0?Ut:c,this.formState=u===void 0?null:u}function zn(e,t,n,r,i,a,o,s,c,l,u,d){return t=new Rn(t,n,r,i,a,o,s,c,l,u,d),n=Gn(t,0,null,r,!1,!1),n.parentFlushed=!0,e=Un(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Lt,null,null),Kn(e),t.pingedTasks.push(e),t}var Bn=null;function Vn(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,Sr(e))}function Hn(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null,contentState:ot(),fallbackState:ot(),contentPreamble:r,fallbackPreamble:i,trackedContentKeyPath:null,trackedFallbackNode:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&St(n.contentState,e)),n}function Un(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:function(){return Vn(e,h)},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function Wn(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:function(){return Vn(e,m)},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function Gn(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function Kn(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case a:e.componentStack={parent:e.componentStack,type:t.type}}}function qn(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function Jn(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=Fn(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
2293Error generating stack: `+e.message+`
2294`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function Yn(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function Xn(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,e.destination.destroy(t))}function Zn(e,t){Qn(e,t.next,t.hoistables)}function Qn(e,t,n){for(;t!==null;){n!==null&&(St(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&St(a.contentState,n),xr(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function $n(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||In(e,a)){r=!1;break}}r&&Qn(e,t,t.hoistables)}}function er(e){var t={pendingTasks:1,boundaries:null,hoistables:ot(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function tr(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=er(c),t.treeContext=Rt(o,n,d);var p=l[d];typeof p==`number`?(ar(e,t,p,f,d),delete l[d]):mr(e,t,f,d),--c.pendingTasks===0&&Zn(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=er(c),t.treeContext=Rt(o,n,u),mr(e,t,d,u),--c.pendingTasks===0&&Zn(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=er(c),t.treeContext=Rt(o,n,i),mr(e,t,l,i),--c.pendingTasks===0&&Zn(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=er(c),t.treeContext=Rt(o,n,d),p=Gn(e,u,null,t.formatContext,d===0?i.lastPushedText:!0,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{mr(e,t,f,d),Tt(p.chunks,e.renderState,p.lastPushedText,p.textEmbedded),p.status=1,--c.pendingTasks===0&&Zn(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function nr(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,Xt={},Zt=t,Qt=e,$t=n,on=an=0,sn=-1,cn=0,ln=o,e=r(i,a);rn;)rn=!1,on=an=0,sn=-1,cn=0,dn+=1,tn=null,e=r(i,a);return gn(),e}function rr(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(`<!--F!-->`):c.push(`<!--F-->`)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Rt(n,1,0),mr(e,t,r,-1),t.treeContext=n):s?mr(e,t,r,-1):or(e,t,r,-1),t.keyPath=a}function ir(e,t,n,r,a,o){if(typeof r==`function`)if(r.prototype&&r.prototype.isReactComponent){var b=a;if(`ref`in a)for(var S in b={},a)S!==`ref`&&(b[S]=a[S]);var T=r.defaultProps;if(T)for(var D in b===a&&(b=E({},b,a)),T)b[D]===void 0&&(b[D]=T[D]);a=b,b=G,T=r.contextType,typeof T==`object`&&T&&(b=T._currentValue2),b=new r(a,b);var O=b.state===void 0?null:b.state;if(b.updater=It,b.props=a,b.state=O,T={queue:[],replace:!1},b._reactInternals=T,o=r.contextType,b.context=typeof o==`object`&&o?o._currentValue2:G,o=r.getDerivedStateFromProps,typeof o==`function`&&(o=o(a,O),O=o==null?O:E({},O,o),b.state=O),typeof r.getDerivedStateFromProps!=`function`&&typeof b.getSnapshotBeforeUpdate!=`function`&&(typeof b.UNSAFE_componentWillMount==`function`||typeof b.componentWillMount==`function`))if(r=b.state,typeof b.componentWillMount==`function`&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount==`function`&&b.UNSAFE_componentWillMount(),r!==b.state&&It.enqueueReplaceState(b,b.state,null),T.queue!==null&&0<T.queue.length)if(r=T.queue,o=T.replace,T.queue=null,T.replace=!1,o&&r.length===1)b.state=r[0];else{for(T=o?r[0]:b.state,O=!0,o=+!!o;o<r.length;o++)D=r[o],D=typeof D==`function`?D.call(b,T,a,void 0):D,D!=null&&(O?(O=!1,T=E({},T,D)):E(T,D));b.state=T}else T.queue=null;if(r=b.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,or(e,t,r,-1),t.keyPath=a}else{if(r=nr(e,t,n,r,a,void 0),e.status===12)throw null;rr(e,t,n,r,an!==0,on,sn)}else if(typeof r==`string`)if(b=t.blockedSegment,b===null)b=a.children,T=t.formatContext,O=t.keyPath,t.formatContext=B(T,r,a),t.keyPath=n,mr(e,t,b,-1),t.formatContext=T,t.keyPath=O;else{if(O=Fe(b.chunks,r,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,b.lastPushedText),b.lastPushedText=!1,T=t.formatContext,o=t.keyPath,t.keyPath=n,(t.formatContext=B(T,r,a)).insertionMode===3){n=Gn(e,0,null,t.formatContext,!1,!1),b.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,mr(e,t,O,-1),Tt(n.chunks,e.renderState,n.lastPushedText,n.textEmbedded),n.status=1}finally{t.blockedSegment=b}}else mr(e,t,O,-1);t.formatContext=T,t.keyPath=o;a:{switch(t=b.chunks,e=e.resumableState,r){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=T.insertionMode){e.hasBody=!0;break a}break;case`html`:if(T.insertionMode===0){e.hasHtml=!0;break a}break;case`head`:if(1>=T.insertionMode)break a}t.push(Le(r))}b.lastPushedText=!1}else{switch(r){case y:case c:case l:case s:r=t.keyPath,t.keyPath=n,or(e,t,a.children,-1),t.keyPath=r;return;case v:r=t.blockedSegment,r===null?a.mode!==`hidden`&&(r=t.keyPath,t.keyPath=n,mr(e,t,a.children,-1),t.keyPath=r):a.mode!==`hidden`&&(e.renderState.generateStaticMarkup||r.chunks.push(`<!--&-->`),r.lastPushedText=!1,b=t.keyPath,t.keyPath=n,mr(e,t,a.children,-1),t.keyPath=b,e.renderState.generateStaticMarkup||r.chunks.push(`<!--/&-->`),r.lastPushedText=!1);return;case m:a:{if(r=a.children,a=a.revealOrder,a===`forwards`||a===`backwards`||a===`unstable_legacy-backwards`){if(w(r)){tr(e,t,n,r,a);break a}if((b=C(r))&&(b=b.call(r))){if(T=b.next(),!T.done){do T=b.next();while(!T.done);tr(e,t,n,r,a)}break a}}a===`together`?(a=t.keyPath,b=t.row,T=t.row=er(null),T.boundaries=[],T.together=!0,t.keyPath=n,or(e,t,r,-1),--T.pendingTasks===0&&Zn(e,T),t.keyPath=a,t.row=b,b!==null&&0<T.pendingTasks&&(b.pendingTasks++,T.next=b)):(a=t.keyPath,t.keyPath=n,or(e,t,r,-1),t.keyPath=a)}return;case x:case _:throw Error(i(343));case p:a:if(t.replay!==null){r=t.keyPath,b=t.formatContext,T=t.row,t.keyPath=n,t.formatContext=fe(e.resumableState,b),t.row=null,n=a.children;try{mr(e,t,n,-1)}finally{t.keyPath=r,t.formatContext=b,t.row=T}}else{r=t.keyPath,o=t.formatContext;var k=t.row,A=t.blockedBoundary;D=t.blockedPreamble;var j=t.hoistableState;S=t.blockedSegment;var M=a.fallback;a=a.children;var N=new Set,P=Hn(e,t.row,N,null,null);e.trackedPostpones!==null&&(P.trackedContentKeyPath=n);var F=Gn(e,S.chunks.length,P,t.formatContext,!1,!1);S.children.push(F),S.lastPushedText=!1;var I=Gn(e,0,null,t.formatContext,!1,!1);if(I.parentFlushed=!0,e.trackedPostpones!==null){b=t.componentStack,T=[n[0],`Suspense Fallback`,n[2]],O=[T[1],T[2],[],null],e.trackedPostpones.workingMap.set(T,O),P.trackedFallbackNode=O,t.blockedSegment=F,t.blockedPreamble=P.fallbackPreamble,t.keyPath=T,t.formatContext=de(e.resumableState,o),t.componentStack=qn(b),F.status=6;try{mr(e,t,M,-1),Tt(F.chunks,e.renderState,F.lastPushedText,F.textEmbedded),F.status=1}catch(t){throw F.status=e.status===12?3:4,t}finally{t.blockedSegment=S,t.blockedPreamble=D,t.keyPath=r,t.formatContext=o}t=Un(e,null,a,-1,P,I,P.contentPreamble,P.contentState,t.abortSet,n,fe(e.resumableState,t.formatContext),t.context,t.treeContext,null,b),Kn(t),e.pingedTasks.push(t)}else{t.blockedBoundary=P,t.blockedPreamble=P.contentPreamble,t.hoistableState=P.contentState,t.blockedSegment=I,t.keyPath=n,t.formatContext=fe(e.resumableState,o),t.row=null,I.status=6;try{if(mr(e,t,a,-1),Tt(I.chunks,e.renderState,I.lastPushedText,I.textEmbedded),I.status=1,br(P,I),P.pendingTasks===0&&P.status===0){if(P.status=1,!In(e,P)){k!==null&&--k.pendingTasks===0&&Zn(e,k),e.pendingRootTasks===0&&t.blockedPreamble&&Tr(e);break a}}else k!==null&&k.together&&$n(e,k)}catch(n){P.status=4,e.status===12?(I.status=3,b=e.fatalError):(I.status=4,b=n),T=Jn(t.componentStack),O=Yn(e,b,T),P.errorDigest=O,dr(e,P)}finally{t.blockedBoundary=A,t.blockedPreamble=D,t.hoistableState=j,t.blockedSegment=S,t.keyPath=r,t.formatContext=o,t.row=k}t=Un(e,null,M,-1,A,F,P.fallbackPreamble,P.fallbackState,N,[n[0],`Suspense Fallback`,n[2]],de(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,qn(t.componentStack)),Kn(t),e.pingedTasks.push(t)}}return}if(typeof r==`object`&&r)switch(r.$$typeof){case f:if(`ref`in a)for(M in b={},a)M!==`ref`&&(b[M]=a[M]);else b=a;r=nr(e,t,n,r.render,b,o),rr(e,t,n,r,an!==0,on,sn);return;case h:ir(e,t,n,r.type,a,o);return;case d:if(T=a.children,b=t.keyPath,a=a.value,O=r._currentValue2,r._currentValue2=a,o=kt,kt=r={parent:o,depth:o===null?0:o.depth+1,context:r,parentValue:O,value:a},t.context=r,t.keyPath=n,or(e,t,T,-1),e=kt,e===null)throw Error(i(403));e.context._currentValue2=e.parentValue,e=kt=e.parent,t.context=e,t.keyPath=b;return;case u:a=a.children,r=a(r._context._currentValue2),a=t.keyPath,t.keyPath=n,or(e,t,r,-1),t.keyPath=a;return;case g:if(b=r._init,r=b(r._payload),e.status===12)throw null;ir(e,t,n,r,a,o);return}throw Error(i(130,r==null?r:typeof r,``))}}function ar(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Gn(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,mr(e,t,r,i),s.status=1,o===null?e.completedRootSegment=s:(br(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function or(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?ar(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,Kn(t),sr(e,t),t.componentStack=n)}function sr(e,t){var n=t.node,r=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case a:var s=n.type,c=n.key,l=n.props;n=l.ref;var u=n===void 0?null:n,f=Ot(s),m=c??(r===-1?0:r);if(c=[t.keyPath,f,m],t.replay!==null)a:{var h=t.replay;for(r=h.nodes,n=0;n<r.length;n++){var _=r[n];if(m===_[1]){if(_.length===4){if(f!==null&&f!==_[0])throw Error(i(490,_[0],f));var v=_[2];f=_[3],m=t.node,t.replay={nodes:v,slots:f,pendingTasks:1};try{if(ir(e,t,c,s,l,u),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(i(488));t.replay.pendingTasks--}catch(i){if(typeof i==`object`&&i&&(i===Wt||typeof i.then==`function`))throw t.node===m?t.replay=h:r.splice(n,1),i;t.replay.pendingTasks--,l=Jn(t.componentStack),c=e,e=t.blockedBoundary,s=i,l=Yn(c,s,l),hr(c,e,v,f,s,l)}t.replay=h}else{if(s!==p)throw Error(i(490,`Suspense`,Ot(s)||`Unknown`));b:{h=void 0,s=_[5],u=_[2],f=_[3],m=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3];var y=t.keyPath,b=t.formatContext,x=t.row,S=t.replay,T=t.blockedBoundary,E=t.hoistableState,D=l.children,O=l.fallback,k=new Set;l=Hn(e,t.row,k,null,null),l.parentFlushed=!0,l.rootSegmentID=s,t.blockedBoundary=l,t.hoistableState=l.contentState,t.keyPath=c,t.formatContext=fe(e.resumableState,b),t.row=null,t.replay={nodes:u,slots:f,pendingTasks:1};try{if(mr(e,t,D,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(i(488));if(t.replay.pendingTasks--,l.pendingTasks===0&&l.status===0){l.status=1,e.completedBoundaries.push(l);break b}}catch(n){l.status=4,v=Jn(t.componentStack),h=Yn(e,n,v),l.errorDigest=h,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(l)}finally{t.blockedBoundary=T,t.hoistableState=E,t.replay=S,t.keyPath=y,t.formatContext=b,t.row=x}v=Wn(e,null,{nodes:m,slots:_,pendingTasks:0},O,-1,T,l.fallbackState,k,[c[0],`Suspense Fallback`,c[2]],de(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,qn(t.componentStack)),Kn(v),e.pingedTasks.push(v)}}r.splice(n,1);break a}}}else ir(e,t,c,s,l,u);return;case o:throw Error(i(257));case g:if(v=n._init,n=v(n._payload),e.status===12)throw null;or(e,t,n,r);return}if(w(n)){cr(e,t,n,r);return}if((v=C(n))&&(v=v.call(n))){if(n=v.next(),!n.done){l=[];do l.push(n.value),n=v.next();while(!n.done);cr(e,t,l,r)}return}if(typeof n.then==`function`)return t.thenableState=null,or(e,t,Tn(n),r);if(n.$$typeof===d)return or(e,t,n._currentValue2,r);throw r=Object.prototype.toString.call(n),Error(i(31,r===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:r))}typeof n==`string`?(r=t.blockedSegment,r!==null&&(r.lastPushedText=wt(r.chunks,n,e.renderState,r.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(r=t.blockedSegment,r!==null&&(r.lastPushedText=wt(r.chunks,``+n,e.renderState,r.lastPushedText)))}}function cr(e,t,n,r){var a=t.keyPath;if(r!==-1&&(t.keyPath=[t.keyPath,`Fragment`,r],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(cr(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(i(488));t.replay.pendingTasks--}catch(i){if(typeof i==`object`&&i&&(i===Wt||typeof i.then==`function`))throw i;t.replay.pendingTasks--,n=Jn(t.componentStack);var u=t.blockedBoundary,d=i;n=Yn(e,d,n),hr(e,u,r,l,d,n)}t.replay=o,s.splice(c,1);break}}t.keyPath=a;return}if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(r=0;r<s;r++)l=n[r],t.treeContext=Rt(o,s,r),u=c[r],typeof u==`number`?(ar(e,t,u,l,r),delete c[r]):mr(e,t,l,r);t.treeContext=o,t.keyPath=a;return}for(c=0;c<s;c++)r=n[c],t.treeContext=Rt(o,s,c),mr(e,t,r,c);t.treeContext=o,t.keyPath=a}function lr(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(i(486));var r=n.trackedFallbackNode,a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,r,n.rootSegmentID],t.workingMap.set(e,n),Lr(n,e[0],t),n):(o[4]=r,o[5]=n.rootSegmentID,o)}function ur(e,t,n,r){r.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)r.id=e.nextSegmentId++,t.rootSlots=r.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=lr(e,t,o);if(o.trackedContentKeyPath===a&&n.childIndex===-1){r.id===-1&&(r.id=r.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=r.id;return}}if(r.id===-1&&(r.id=r.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=r.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],r.id],Lr(n,a[0],t)):n[3]=r.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(i(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),Lr(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(i(491));e[n.childIndex]=r.id}}}function dr(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function fr(e,t,n){return Wn(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function pr(e,t,n){var r=t.blockedSegment,i=Gn(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Un(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function mr(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return or(e,t,n,r)}catch(u){if(gn(),n=u===Wt?qt():u,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===Wt?hn():null,e=fr(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ft(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===Wt?hn():null,n=fr(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ft(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return or(e,t,n,r)}catch(r){if(gn(),l.children.length=u,l.chunks.length=d,n=r===Wt?qt():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===Wt?hn():null,e=pr(e,t,n).ping,l.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ft(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===Wt?hn():null,l=pr(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ft(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Ft(a),n}function K(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,xr(this,t,e.row,n))}function hr(e,t,n,r,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)hr(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=Hn(l,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,r!==null){if(t===null)throw Error(i(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof r==`object`)for(var f in r)delete r[f]}}function gr(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=3}var a=Jn(e.componentStack);if(r===null){if(t.status!==13&&t.status!==14){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,Yn(t,n,a),ur(t,r,e,i),xr(t,null,e.row,i)):(Yn(t,n,a),Xn(t,n));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=Yn(t,n,a),hr(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,t.pendingRootTasks===0&&vr(t)}}else{var o=t.trackedPostpones;if(r.status!==4){if(o!==null&&i!==null)return Yn(t,n,a),ur(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return gr(e,t,n)}),r.fallbackAbortableTasks.clear(),xr(t,r,e.row,i);r.status=4,i=Yn(t,n,a),r.status=4,r.errorDigest=i,dr(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,i=r.row,i!==null&&--i.pendingTasks===0&&Zn(t,i),r.fallbackAbortableTasks.forEach(function(e){return gr(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&Zn(t,e),t.allPendingTasks--,t.allPendingTasks===0&&yr(t)}function _r(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=ht(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=ie,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:ie;else break b}}r(a?{Link:a}:{})}}}catch(t){Yn(e,t,{})}}function vr(e){e.trackedPostpones===null&&_r(e,!0),e.trackedPostpones===null&&Tr(e),e.onShellError=Ut,e=e.onShellReady,e()}function yr(e){_r(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==5),Tr(e),e=e.onAllReady,e()}function br(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||br(e,n)}else e.completedSegments.push(t)}function xr(e,t,n,r){if(n!==null&&(--n.pendingTasks===0?Zn(e,n):n.together&&$n(e,n)),e.allPendingTasks--,t===null){if(r!==null&&r.parentFlushed){if(e.completedRootSegment!==null)throw Error(i(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&vr(e)}else if(t.pendingTasks--,t.status!==4)if(t.pendingTasks===0){if(t.status===0&&(t.status=1),r!==null&&r.parentFlushed&&(r.status===1||r.status===3)&&br(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&St(n.hoistables,t.contentState),In(e,t)||(t.fallbackAbortableTasks.forEach(K,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&Zn(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&Tr(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(r=a.boundaries,r!==null))for(a.boundaries=null,a=0;a<r.length;a++){var o=r[a];lr(e,n,o),xr(e,o,null,null)}}--t.pendingTasks===0&&Zn(e,t)}}else r===null||!r.parentFlushed||r.status!==1&&r.status!==3||(br(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&$n(e,t);e.allPendingTasks===0&&yr(e)}function Sr(e){if(e.status!==14&&e.status!==13){var t=kt,n=z.H;z.H=Dn;var r=z.A;z.A=kn;var a=Bn;Bn=e;var o=On;On=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){var f=u;if(l.replay.pendingTasks!==0){Ft(l.context);try{if(typeof l.replay.slots==`number`?ar(f,l,l.replay.slots,l.node,l.childIndex):sr(f,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(i(488));l.replay.pendingTasks--,l.abortSet.delete(l),xr(f,l.blockedBoundary,l.row,null)}catch(e){gn();var p=e===Wt?qt():e;if(typeof p==`object`&&p&&typeof p.then==`function`){var m=l.ping;p.then(m,m),l.thenableState=e===Wt?hn():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=Jn(l.componentStack);u=void 0;var g=f,_=l.blockedBoundary,v=f.status===12?f.fatalError:p,y=l.replay.nodes,b=l.replay.slots;u=Yn(g,v,h),hr(g,_,y,b,v,u),f.pendingRootTasks--,f.pendingRootTasks===0&&vr(f),f.allPendingTasks--,f.allPendingTasks===0&&yr(f)}}}}else if(f=void 0,g=d,g.status===0){g.status=6,Ft(l.context);var x=g.children.length,S=g.chunks.length;try{sr(u,l),Tt(g.chunks,u.renderState,g.lastPushedText,g.textEmbedded),l.abortSet.delete(l),g.status=1,xr(u,l.blockedBoundary,l.row,g)}catch(e){gn(),g.children.length=x,g.chunks.length=S;var C=e===Wt?qt():u.status===12?u.fatalError:e;if(u.status===12&&u.trackedPostpones!==null){var w=u.trackedPostpones,T=Jn(l.componentStack);l.abortSet.delete(l),Yn(u,C,T),ur(u,w,l,g),xr(u,l.blockedBoundary,l.row,g)}else if(typeof C==`object`&&C&&typeof C.then==`function`){g.status=0,l.thenableState=e===Wt?hn():null;var E=l.ping;C.then(E,E)}else{var D=Jn(l.componentStack);l.abortSet.delete(l),g.status=4;var O=l.blockedBoundary,k=l.row;if(k!==null&&--k.pendingTasks===0&&Zn(u,k),u.allPendingTasks--,f=Yn(u,C,D),O===null)Xn(u,C);else if(O.pendingTasks--,O.status!==4){O.status=4,O.errorDigest=f,dr(u,O);var A=O.row;A!==null&&--A.pendingTasks===0&&Zn(u,A),O.parentFlushed&&u.clientRenderedBoundaries.push(O),u.pendingRootTasks===0&&u.trackedPostpones===null&&O.contentPreamble!==null&&Tr(u)}u.allPendingTasks===0&&yr(u)}}}}s.splice(0,c),e.destination!==null&&Nr(e,e.destination)}catch(t){Yn(e,t,{}),Xn(e,t)}finally{On=o,z.H=n,z.A=r,n===Dn&&Ft(t),Bn=a}}}function Cr(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=wr(e,t.children[i],n)||r;return r}function wr(e,t,n){var r=t.boundary;if(r===null)return Cr(e,t,n);var a=r.contentPreamble,o=r.fallbackPreamble;if(a===null||o===null)return!1;switch(r.status){case 1:if(Re(e.renderState,a),e.byteSize+=r.byteSize,t=r.completedSegments[0],!t)throw Error(i(391));return Cr(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return Re(e.renderState,o),Cr(e,t,n);default:return!0}}function Tr(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=wr(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function Er(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,t.push(`<template id="`),t.push(e.placeholderPrefix),e=r.toString(16),t.push(e),t.push(`"></template>`);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)t.push(o[s]);a=Or(e,t,a,r)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(a=t.push(o[s])),a;case 3:return!0;default:throw Error(i(390))}}var Dr=0;function Or(e,t,n,r){var a=n.boundary;if(a===null)return Er(e,t,n,r);if(a.parentFlushed=!0,a.status===4){var o=a.row;return o!==null&&--o.pendingTasks===0&&Zn(e,o),e.renderState.generateStaticMarkup||(a=a.errorDigest,t.push(`<!--$!-->`),t.push(`<template`),a&&(t.push(` data-dgst="`),a=F(a),t.push(a),t.push(`"`)),t.push(`></template>`)),Er(e,t,n,r),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}if(a.status!==1)return a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Be(t,e.renderState,a.rootSegmentID),r&&St(r,a.fallbackState),Er(e,t,n,r),t.push(`<!--/$-->`);if(!Mr&&In(e,a)&&Dr+a.byteSize>e.progressiveChunkSize)return a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Be(t,e.renderState,a.rootSegmentID),Er(e,t,n,r),t.push(`<!--/$-->`);if(Dr+=a.byteSize,r&&St(r,a.contentState),n=a.row,n!==null&&In(e,a)&&--n.pendingTasks===0&&Zn(e,n),e.renderState.generateStaticMarkup||t.push(`<!--$-->`),n=a.completedSegments,n.length!==1)throw Error(i(391));return Or(e,t,n[0],r),e=e.renderState.generateStaticMarkup?!0:t.push(`<!--/$-->`),e}function kr(e,t,n,r){return Ve(t,e.renderState,n.parentFormatContext,n.id),Or(e,t,n,r),He(t,n.parentFormatContext)}function Ar(e,t,n){Dr=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)jr(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&In(e,n)&&--r.pendingTasks===0&&Zn(e,r),Xe(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,t.push(e.startInlineScript),t.push(`>`),a?(!(r.instructions&4)&&(r.instructions|=4,t.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`)),!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2295$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),r.instructions&8?t.push(`$RR("`):(r.instructions|=8,t.push(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
2296"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);
2296if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
2297"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`))):(!(r.instructions&2)&&(r.instructions|=2,t.push(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2298$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`)),t.push(`$RC("`)),r=i.toString(16),t.push(e.boundaryPrefix),t.push(r),t.push(`","`),t.push(e.segmentPrefix),t.push(r),a?(t.push(`",`),it(t,n)):t.push(`"`),n=t.push(`)<\/script>`),ze(t,e)&&n}function jr(e,t,n,r){if(r.status===2)return!0;var a=n.contentState,o=r.id;if(o===-1){if((r.id=n.rootSegmentID)===-1)throw Error(i(392));return kr(e,t,r,a)}return o===n.rootSegmentID?kr(e,t,r,a):(kr(e,t,r,a),n=e.resumableState,e=e.renderState,t.push(e.startInlineScript),t.push(`>`),n.instructions&1?t.push(`$RS("`):(n.instructions|=1,t.push(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`)),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push(`","`),t.push(e.placeholderPrefix),t.push(o),t=t.push(`")<\/script>`),t)}var Mr=!1;function Nr(e,t){try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Dr=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)t.push(c[u]);if(l)for(u=0;u<l.length;u++)t.push(l[u]);else{var d=U(`head`);t.push(d),t.push(`>`)}}else if(l)for(u=0;u<l.length;u++)t.push(l[u]);var f=o.charsetChunks;for(u=0;u<f.length;u++)t.push(f[u]);f.length=0,o.preconnects.forEach(Ze,t),o.preconnects.clear();var p=o.viewportChunks;for(u=0;u<p.length;u++)t.push(p[u]);p.length=0,o.fontPreloads.forEach(Ze,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(Ze,t),o.highImagePreloads.clear(),ae=o,o.styles.forEach(et,t),ae=null;var m=o.importMapChunks;for(u=0;u<m.length;u++)t.push(m[u]);m.length=0,o.bootstrapScripts.forEach(Ze,t),o.scripts.forEach(Ze,t),o.scripts.clear(),o.bulkPreloads.forEach(Ze,t),o.bulkPreloads.clear(),a.instructions|=32;var h=o.hoistableChunks;for(u=0;u<h.length;u++)t.push(h[u]);for(a=h.length=0;a<i.length;a++){var g=i[a];for(o=0;o<g.length;o++)Or(e,t,g[o],null)}var _=e.renderState.preamble,v=_.headChunks;if(_.htmlChunks||v){var y=Le(`head`);t.push(y)}var b=_.bodyChunks;if(b)for(i=0;i<b.length;i++)t.push(b[i]);Or(e,t,r,null),e.completedRootSegment=null;var x=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var S=e.resumableState;if(!(S.instructions&64)){if(S.instructions|=64,t.push(x.startInlineScript),!(S.instructions&32)){S.instructions|=32;var C=`_`+S.idPrefix+`R_`;t.push(` id="`);var w=F(C);t.push(w),t.push(`"`)}t.push(`>`),t.push(`requestAnimationFrame(function(){$RT=performance.now()});`),t.push(`<\/script>`)}}ze(t,x)}var T=e.renderState;r=0;var E=T.viewportChunks;for(r=0;r<E.length;r++)t.push(E[r]);
vendor: 21,211 bytes, line 2298
2298E.length=0,T.preconnects.forEach(Ze,t),T.preconnects.clear(),T.fontPreloads.forEach(Ze,t),T.fontPreloads.clear(),T.highImagePreloads.forEach(Ze,t),T.highImagePreloads.clear(),T.styles.forEach(nt,t),T.scripts.forEach(Ze,t),T.scripts.clear(),T.bulkPreloads.forEach(Ze,t),T.bulkPreloads.clear();var D=T.hoistableChunks;for(r=0;r<D.length;r++)t.push(D[r]);D.length=0;var O=e.clientRenderedBoundaries;for(n=0;n<O.length;n++){var k=O[n];T=t;var A=e.resumableState,j=e.renderState,M=k.rootSegmentID,N=k.errorDigest;T.push(j.startInlineScript),T.push(`>`),A.instructions&4?T.push(`$RX("`):(A.instructions|=4,T.push(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`)),T.push(j.boundaryPrefix);var P=M.toString(16);if(T.push(P),T.push(`"`),N){T.push(`,`);var I=W(N||``);T.push(I)}var ee=T.push(`)<\/script>`);if(!ee){e.destination=null,n++,O.splice(0,n);return}}O.splice(0,n);var L=e.completedBoundaries;for(n=0;n<L.length;n++)if(!Ar(e,t,L[n])){e.destination=null,n++,L.splice(0,n);return}L.splice(0,n),Mr=!0;var R=e.partialBoundaries;for(n=0;n<R.length;n++){var z=R[n];a:{O=e,k=t,Dr=z.byteSize;var te=z.completedSegments;for(ee=0;ee<te.length;ee++)if(!jr(O,k,z,te[ee])){ee++,te.splice(0,ee);var ne=!1;break a}te.splice(0,ee);var re=z.row;re!==null&&re.together&&z.pendingTasks===1&&(re.pendingTasks===1?Qn(O,re,re.hoistables):re.pendingTasks--),ne=Xe(k,z.contentState,O.renderState)}if(!ne){e.destination=null,n++,R.splice(0,n);return}}R.splice(0,n),Mr=!1;var ie=e.completedBoundaries;for(n=0;n<ie.length;n++)if(!Ar(e,t,ie[n])){e.destination=null,n++,ie.splice(0,n);return}ie.splice(0,n)}}finally{Mr=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&(R=Le(`body`),t.push(R)),n.hasHtml&&(n=Le(`html`),t.push(n)),e.status=14,t.push(null),e.destination=null)}}function Pr(e){if(!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null){e.flushScheduled=!0;var t=e.destination;t?Nr(e,t):e.flushScheduled=!1}}function Fr(e,t){if(e.status===13)e.status=14,t.destroy(e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{Nr(e,t)}catch(t){Yn(e,t,{}),Xn(e,t)}}}function Ir(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=t===void 0?Error(i(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(i(530)):t;e.fatalError=r,n.forEach(function(t){return gr(t,e,r)}),n.clear()}e.destination!==null&&Nr(e,e.destination)}catch(t){Yn(e,t,{}),Xn(e,t)}}function Lr(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),Lr(i,t[0],n)),i[2].push(e)}}function Rr(){}function zr(e,t,n,r){var a=!1,o=null,s=``,c=!1;if(t=ce(t?t.identifierPrefix:void 0),e=zn(e,t,Ct(t,n),le(0,null,0,null),1/0,Rr,void 0,function(){c=!0},void 0,void 0,void 0),e.flushScheduled=e.destination!==null,Sr(e),e.status===10&&(e.status=11),e.trackedPostpones===null&&_r(e,e.pendingRootTasks===0),Ir(e,r),Fr(e,{push:function(e){return e!==null&&(s+=e),!0},destroy:function(e){a=!0,o=e}}),a&&o!==r)throw o;if(!c)throw Error(i(426));return s}e.renderToStaticMarkup=function(e,t){return zr(e,t,!0,`The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.renderToString=function(e,t){return zr(e,t,!1,`The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server`)},e.version=`19.2.7`})),_g=i((e=>{var n=t(),r=Te();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var a=Symbol.for(`react.transitional.element`),o=Symbol.for(`react.portal`),s=Symbol.for(`react.fragment`),c=Symbol.for(`react.strict_mode`),l=Symbol.for(`react.profiler`),u=Symbol.for(`react.consumer`),d=Symbol.for(`react.context`),f=Symbol.for(`react.forward_ref`),p=Symbol.for(`react.suspense`),m=Symbol.for(`react.suspense_list`),h=Symbol.for(`react.memo`),g=Symbol.for(`react.lazy`),_=Symbol.for(`react.scope`),v=Symbol.for(`react.activity`),y=Symbol.for(`react.legacy_hidden`),b=Symbol.for(`react.memo_cache_sentinel`),x=Symbol.for(`react.view_transition`),S=Symbol.iterator;function C(e){return typeof e!=`object`||!e?null:(e=S&&e[S]||e[`@@iterator`],typeof e==`function`?e:null)}var w=Array.isArray;function T(e,t){var n=e.length&3,r=e.length-n,i=t;for(t=0;t<r;){var a=e.charCodeAt(t)&255|(e.charCodeAt(++t)&255)<<8|(e.charCodeAt(++t)&255)<<16|(e.charCodeAt(++t)&255)<<24;++t,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,a=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295,i^=a,i=i<<13|i>>>19,i=5*(i&65535)+((5*(i>>>16)&65535)<<16)&4294967295,i=(i&65535)+27492+(((i>>>16)+58964&65535)<<16)}switch(a=0,n){case 3:a^=(e.charCodeAt(t+2)&255)<<16;case 2:a^=(e.charCodeAt(t+1)&255)<<8;case 1:a^=e.charCodeAt(t)&255,a=3432918353*(a&65535)+((3432918353*(a>>>16)&65535)<<16)&4294967295,a=a<<15|a>>>17,i^=461845907*(a&65535)+((461845907*(a>>>16)&65535)<<16)&4294967295}return i^=e.length,i^=i>>>16,i=2246822507*(i&65535)+((2246822507*(i>>>16)&65535)<<16)&4294967295,i^=i>>>13,i=3266489909*(i&65535)+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^i>>>16)>>>0}var E=new MessageChannel,D=[];E.port1.onmessage=function(){var e=D.shift();e&&e()};function O(e){D.push(e),E.port2.postMessage(null)}function k(e){setTimeout(function(){throw e})}var A=Promise,j=typeof queueMicrotask==`function`?queueMicrotask:function(e){A.resolve(null).then(e).catch(k)},M=null,N=0;function P(e,t){if(t.byteLength!==0)if(2048<t.byteLength)0<N&&(e.enqueue(new Uint8Array(M.buffer,0,N)),M=new Uint8Array(2048),N=0),e.enqueue(t);else{var n=M.length-N;n<t.byteLength&&(n===0?e.enqueue(M):(M.set(t.subarray(0,n),N),e.enqueue(M),t=t.subarray(n)),M=new Uint8Array(2048),N=0),M.set(t,N),N+=t.byteLength}}function F(e,t){return P(e,t),!0}function I(e){M&&0<N&&(e.enqueue(new Uint8Array(M.buffer,0,N)),M=null,N=0)}var ee=new TextEncoder;function L(e){return ee.encode(e)}function R(e){return ee.encode(e)}function z(e){return e.byteLength}function te(e,t){typeof e.error==`function`?e.error(t):e.close()}var ne=Object.assign,re=Object.prototype.hasOwnProperty,ie=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]*$`),ae={},oe={};function se(e){return re.call(oe,e)?!0:re.call(ae,e)?!1:ie.test(e)?oe[e]=!0:(ae[e]=!0,!1)}var ce=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(` `)),le=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-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`]]),B=/["'&<>]/;function ue(e){if(typeof e==`boolean`||typeof e==`number`||typeof e==`bigint`)return``+e;e=``+e;var t=B.exec(e);if(t){var n=``,r,i=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=`&quot;`;break;case 38:t=`&amp;`;break;case 39:t=`&#x27;`;break;case 60:t=`&lt;`;break;case 62:t=`&gt;`;break;default:continue}i!==r&&(n+=e.slice(i,r)),i=r+1,n+=t}e=i===r?n:n+e.slice(i,r)}return e}var de=/([A-Z])/g,fe=/^ms-/,pe=/^[\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 me(e){return pe.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}var he=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e={pending:!1,data:null,method:null,action:null},ve=ge.d;ge.d={f:ve.f,r:ve.r,D:gr,C:_r,L:vr,m:yr,X:xr,S:br,M:Sr};var ye=[],be=null;R(`"></template>`);var xe=R(`<script`),Se=R(`<\/script>`),Ce=R(`<script src="`),V=R(`<script type="module" src="`),we=R(` nonce="`),Ee=R(` integrity="`),De=R(` crossorigin="`),Oe=R(` async=""><\/script>`),ke=R(`<style`),Ae=/(<\/|<)(s)(cript)/gi;function je(e,t,n,r){return``+t+(n===`s`?`\\u0073`:`\\u0053`)+r}var Me=R(`<script type="importmap">`),Ne=R(`<\/script>`);function Pe(e,t,n,r,i,a){n=typeof t==`string`?t:t&&t.script;var o=n===void 0?xe:R(`<script nonce="`+ue(n)+`"`),s=typeof t==`string`?void 0:t&&t.style,c=s===void 0?ke:R(`<style nonce="`+ue(s)+`"`),l=e.idPrefix,u=[],d=e.bootstrapScriptContent,f=e.bootstrapScripts,p=e.bootstrapModules;if(d!==void 0&&(u.push(o),lr(u,e),u.push(ot,L((``+d).replace(Ae,je)),Se)),d=[],r!==void 0&&(d.push(Me),d.push(L((``+JSON.stringify(r)).replace(Ae,je))),d.push(Ne)),r=i?{preconnects:``,fontPreloads:``,highImagePreloads:``,remainingCapacity:2+(typeof a==`number`?a:2e3)}:null,i={placeholderPrefix:R(l+`P:`),segmentPrefix:R(l+`S:`),boundaryPrefix:R(l+`B:`),startInlineScript:o,startInlineStyle:c,preamble:U(),externalRuntimeScript:null,bootstrapChunks:u,importMapChunks:d,onHeaders:i,headers:r,resets:{font:{},dns:{},connect:{default:{},anonymous:{},credentials:{}},image:{},style:{}},charsetChunks:[],viewportChunks:[],hoistableChunks:[],preconnects:new Set,fontPreloads:new Set,highImagePreloads:new Set,styles:new Map,bootstrapScripts:new Set,scripts:new Set,bulkPreloads:new Set,preloads:{images:new Map,stylesheets:new Map,scripts:new Map,moduleScripts:new Map},nonce:{script:n,style:s},hoistableState:null,stylesToHoist:!1},f!==void 0)for(r=0;r<f.length;r++)l=f[r],s=o=void 0,c={rel:`preload`,as:`script`,fetchPriority:`low`,nonce:t},typeof l==`string`?c.href=a=l:(c.href=a=l.src,c.integrity=s=typeof l.integrity==`string`?l.integrity:void 0,c.crossOrigin=o=typeof l==`string`||l.crossOrigin==null?void 0:l.crossOrigin===`use-credentials`?`use-credentials`:``),l=e,d=a,l.scriptResources[d]=null,l.moduleScriptResources[d]=null,l=[],ht(l,c),i.bootstrapScripts.add(l),u.push(Ce,L(ue(a)),Ye),n&&u.push(we,L(ue(n)),Ye),typeof s==`string`&&u.push(Ee,L(ue(s)),Ye),typeof o==`string`&&u.push(De,L(ue(o)),Ye),lr(u,e),u.push(Oe);if(p!==void 0)for(t=0;t<p.length;t++)s=p[t],a=r=void 0,o={rel:`modulepreload`,fetchPriority:`low`,nonce:n},typeof s==`string`?o.href=f=s:(o.href=f=s.src,o.integrity=a=typeof s.integrity==`string`?s.integrity:void 0,o.crossOrigin=r=typeof s==`string`||s.crossOrigin==null?void 0:s.crossOrigin===`use-credentials`?`use-credentials`:``),s=e,c=f,s.scriptResources[c]=null,s.moduleScriptResources[c]=null,s=[],ht(s,o),i.bootstrapScripts.add(s),u.push(V,L(ue(f)),Ye),n&&u.push(we,L(ue(n)),Ye),typeof a==`string`&&u.push(Ee,L(ue(a)),Ye),typeof r==`string`&&u.push(De,L(ue(r)),Ye),lr(u,e),u.push(Oe);return i}function H(e,t,n,r,i){return{idPrefix:e===void 0?``:e,nextFormID:0,streamingFormat:0,bootstrapScriptContent:n,bootstrapScripts:r,bootstrapModules:i,instructions:0,hasBody:!1,hasHtml:!1,unknownResources:{},dnsResources:{},connectResources:{default:{},anonymous:{},credentials:{}},imageResources:{},styleResources:{},scriptResources:{},moduleUnknownResources:{},moduleScriptResources:{}}}function U(){return{htmlChunks:null,headChunks:null,bodyChunks:null}}function Fe(e,t,n,r){return{insertionMode:e,selectedValue:t,tagScope:n,viewTransition:r}}function Ie(e){return Fe(e===`http://www.w3.org/2000/svg`?4:e===`http://www.w3.org/1998/Math/MathML`?5:0,null,0,null)}function Le(e,t,n){var r=e.tagScope&-25;switch(t){case`noscript`:return Fe(2,null,r|1,null);case`select`:return Fe(2,n.value==null?n.defaultValue:n.value,r,null);case`svg`:return Fe(4,null,r,null);case`picture`:return Fe(2,null,r|2,null);case`math`:return Fe(5,null,r,null);case`foreignObject`:return Fe(2,null,r,null);case`table`:return Fe(6,null,r,null);case`thead`:case`tbody`:case`tfoot`:return Fe(7,null,r,null);case`colgroup`:return Fe(9,null,r,null);case`tr`:return Fe(8,null,r,null);case`head`:if(2>e.insertionMode)return Fe(3,null,r,null);break;case`html`:if(e.insertionMode===0)return Fe(1,null,r,null)}return 6<=e.insertionMode||2>e.insertionMode?Fe(2,null,r,null):e.tagScope===r?e:Fe(e.insertionMode,e.selectedValue,r,null)}function Re(e){return e===null?null:{update:e.update,enter:`none`,exit:`none`,share:e.update,name:e.autoName,autoName:e.autoName,nameIdx:0}}function ze(e,t){return t.tagScope&32&&(e.instructions|=128),Fe(t.insertionMode,t.selectedValue,t.tagScope|12,Re(t.viewTransition))}function Be(e,t){e=Re(t.viewTransition);var n=t.tagScope|16;return e!==null&&e.share!==`none`&&(n|=64),Fe(t.insertionMode,t.selectedValue,n,e)}var Ve=R(`<!-- -->`);function He(e,t,n,r){return t===``?r:(r&&e.push(Ve),e.push(L(ue(t))),!0)}var Ue=new Map,W=R(` style="`),We=R(`:`),Ge=R(`;`);function Ke(e,t){if(typeof t!=`object`)throw Error(i(62));var n=!0,r;for(r in t)if(re.call(t,r)){var a=t[r];if(a!=null&&typeof a!=`boolean`&&a!==``){if(r.indexOf(`--`)===0){var o=L(ue(r));a=L(ue((``+a).trim()))}else o=Ue.get(r),o===void 0&&(o=R(ue(r.replace(de,`-$1`).toLowerCase().replace(fe,`-ms-`))),Ue.set(r,o)),a=typeof a==`number`?a===0||ce.has(r)?L(``+a):L(a+`px`):L(ue((``+a).trim()));n?(n=!1,e.push(W,o,We,a)):e.push(Ge,o,We,a)}}n||e.push(Ye)}var qe=R(` `),Je=R(`="`),Ye=R(`"`),Xe=R(`=""`);function Ze(e,t,n){n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(qe,L(t),Xe)}function Qe(e,t,n){typeof n!=`function`&&typeof n!=`symbol`&&typeof n!=`boolean`&&e.push(qe,L(t),Je,L(ue(n)),Ye)}var $e=R(ue(`javascript:throw new Error('React form unexpectedly submitted.')`)),et=R(`<input type="hidden"`);function tt(e,t){this.push(et),nt(e),Qe(this,`name`,t),Qe(this,`value`,e),this.push(st)}function nt(e){if(typeof e!=`string`)throw Error(i(480))}function rt(e,t){if(typeof t.$$FORM_ACTION==`function`){var n=e.nextFormID++;e=e.idPrefix+n;try{var r=t.$$FORM_ACTION(e);return r&&r.data?.forEach(nt),r}catch(e){if(typeof e==`object`&&e&&typeof e.then==`function`)throw e}}return null}function it(e,t,n,r,i,a,o,s){var c=null;if(typeof r==`function`){var l=rt(t,r);l===null?(e.push(qe,L(`formAction`),Je,$e,Ye),o=a=i=r=s=null,ft(t,n)):(s=l.name,r=l.action||``,i=l.encType,a=l.method,o=l.target,c=l.data)}return s!=null&&at(e,`name`,s),r!=null&&at(e,`formAction`,r),i!=null&&at(e,`formEncType`,i),a!=null&&at(e,`formMethod`,a),o!=null&&at(e,`formTarget`,o),c}function at(e,t,n){switch(t){case`className`:Qe(e,`class`,n);break;case`tabIndex`:Qe(e,`tabindex`,n);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Qe(e,t,n);break;case`style`:Ke(e,n);break;case`src`:case`href`:if(n===``)break;case`action`:case`formAction`:if(n==null||typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=me(``+n),e.push(qe,L(t),Je,L(ue(n)),Ye);break;case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`autoFocus`:case`multiple`:case`muted`:Ze(e,t.toLowerCase(),n);break;case`xlinkHref`:if(typeof n==`function`||typeof n==`symbol`||typeof n==`boolean`)break;n=me(``+n),e.push(qe,L(`xlink:href`),Je,L(ue(n)),Ye);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:typeof n!=`function`&&typeof n!=`symbol`&&e.push(qe,L(t),Je,L(ue(n)),Ye);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`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(qe,L(t),Xe);break;case`capture`:case`download`:!0===n?e.push(qe,L(t),Xe):!1!==n&&typeof n!=`function`&&typeof n!=`symbol`&&e.push(qe,L(t),Je,L(ue(n)),Ye);break;case`cols`:case`rows`:case`size`:case`span`:typeof n!=`function`&&typeof n!=`symbol`&&!isNaN(n)&&1<=n&&e.push(qe,L(t),Je,L(ue(n)),Ye);break;case`rowSpan`:case`start`:typeof n==`function`||typeof n==`symbol`||isNaN(n)||e.push(qe,L(t),Je,L(ue(n)),Ye);break;case`xlinkActuate`:Qe(e,`xlink:actuate`,n);break;case`xlinkArcrole`:Qe(e,`xlink:arcrole`,n);break;case`xlinkRole`:Qe(e,`xlink:role`,n);break;case`xlinkShow`:Qe(e,`xlink:show`,n);break;case`xlinkTitle`:Qe(e,`xlink:title`,n);break;case`xlinkType`:Qe(e,`xlink:type`,n);break;case`xmlBase`:Qe(e,`xml:base`,n);break;case`xmlLang`:Qe(e,`xml:lang`,n);break;case`xmlSpace`:Qe(e,`xml:space`,n);break;default:if((!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`)&&(t=le.get(t)||t,se(t))){switch(typeof n){case`function`:case`symbol`:return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`)return}e.push(qe,L(t),Je,L(ue(n)),Ye)}}}var ot=R(`>`),st=R(`/>`);function ct(e,t,n){if(t!=null){if(n!=null)throw Error(i(60));if(typeof t!=`object`||!(`__html`in t))throw Error(i(61));t=t.__html,t!=null&&e.push(L(``+t))}}function lt(e){var t=``;return n.Children.forEach(e,function(e){e!=null&&(t+=e)}),t}var ut=R(` selected=""`),dt=R(`addEventListener("submit",function(a){if
2298(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error('React form unexpectedly submitted.')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});`);function ft(e,t){if(!(e.instructions&16)){e.instructions|=16;var n=t.preamble,r=t.bootstrapChunks;(n.htmlChunks||n.headChunks)&&r.length===0?(r.push(t.startInlineScript),lr(r,e),r.push(ot,dt,Se)):r.unshift(t.startInlineScript,ot,dt,Se)}}var pt=R(`<!--F!-->`),mt=R(`<!--F-->`);function ht(e,t){for(var n in e.push(G(`link`)),t)if(re.call(t,n)){var r=t[n];if(r!=null)switch(n){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,`link`));default:at(e,n,r)}}return e.push(st),null}var gt=/(<\/|<)(s)(tyle)/gi;function _t(e,t,n,r){return``+t+(n===`s`?`\\73 `:`\\53 `)+r}function vt(e,t,n){for(var r in e.push(G(n)),t)if(re.call(t,r)){var a=t[r];if(a!=null)switch(r){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,n));default:at(e,r,a)}}return e.push(st),null}function yt(e,t){e.push(G(`title`));var n=null,r=null,i;for(i in t)if(re.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:at(e,i,a)}}return e.push(ot),t=Array.isArray(n)?2>n.length?n[0]:null:n,typeof t!=`function`&&typeof t!=`symbol`&&t!=null&&e.push(L(ue(``+t))),ct(e,r,n),e.push(Mt(`title`)),null}var bt=R(`<!--head-->`),xt=R(`<!--body-->`),St=R(`<!--html-->`);function Ct(e,t){e.push(G(`script`));var n=null,r=null,i;for(i in t)if(re.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:at(e,i,a)}}return e.push(ot),ct(e,r,n),typeof n==`string`&&e.push(L((``+n).replace(Ae,je))),e.push(Mt(`script`)),null}function wt(e,t,n){e.push(G(n));var r=n=null,i;for(i in t)if(re.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:at(e,i,a)}}return e.push(ot),ct(e,r,n),n}function Tt(e,t,n){e.push(G(n));var r=n=null,i;for(i in t)if(re.call(t,i)){var a=t[i];if(a!=null)switch(i){case`children`:n=a;break;case`dangerouslySetInnerHTML`:r=a;break;default:at(e,i,a)}}return e.push(ot),ct(e,r,n),typeof n==`string`?(e.push(L(ue(n))),null):n}var Et=R(`
2299`),Dt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ot=new Map;function G(e){var t=Ot.get(e);if(t===void 0){if(!Dt.test(e))throw Error(i(65,e));t=R(`<`+e),Ot.set(e,t)}return t}var kt=R(`<!DOCTYPE html>`);function At(e,t,n,r,a,o,s,c,l){switch(t){case`div`:case`span`:case`svg`:case`path`:break;case`a`:e.push(G(`a`));var u=null,d=null,f;for(f in n)if(re.call(n,f)){var p=n[f];if(p!=null)switch(f){case`children`:u=p;break;case`dangerouslySetInnerHTML`:d=p;break;case`href`:p===``?Qe(e,`href`,``):at(e,f,p);break;default:at(e,f,p)}}if(e.push(ot),ct(e,d,u),typeof u==`string`){e.push(L(ue(u)));var m=null}else m=u;return m;case`g`:case`p`:case`li`:break;case`select`:e.push(G(`select`));var h=null,g=null,_;for(_ in n)if(re.call(n,_)){var v=n[_];if(v!=null)switch(_){case`children`:h=v;break;case`dangerouslySetInnerHTML`:g=v;break;case`defaultValue`:case`value`:break;default:at(e,_,v)}}return e.push(ot),ct(e,g,h),h;case`option`:var y=c.selectedValue;e.push(G(`option`));var b=null,x=null,S=null,C=null,T;for(T in n)if(re.call(n,T)){var E=n[T];if(E!=null)switch(T){case`children`:b=E;break;case`selected`:S=E;break;case`dangerouslySetInnerHTML`:C=E;break;case`value`:x=E;default:at(e,T,E)}}if(y!=null){var D=x===null?lt(b):``+x;if(w(y)){for(var O=0;O<y.length;O++)if(``+y[O]===D){e.push(ut);break}}else ``+y===D&&e.push(ut)}else S&&e.push(ut);return e.push(ot),ct(e,C,b),b;case`textarea`:e.push(G(`textarea`));var k=null,A=null,j=null,M;for(M in n)if(re.call(n,M)){var N=n[M];if(N!=null)switch(M){case`children`:j=N;break;case`value`:k=N;break;case`defaultValue`:A=N;break;case`dangerouslySetInnerHTML`:throw Error(i(91));default:at(e,M,N)}}if(k===null&&A!==null&&(k=A),e.push(ot),j!=null){if(k!=null)throw Error(i(92));if(w(j)){if(1<j.length)throw Error(i(93));k=``+j[0]}k=``+j}
2299return typeof k==`string`&&k[0]===`
2300`&&e.push(Et),k!==null&&e.push(L(ue(``+k))),null;case`input`:e.push(G(`input`));var P=null,F=null,I=null,ee=null,R=null,z=null,te=null,ie=null,ae=null,oe;for(oe in n)if(re.call(n,oe)){var ce=n[oe];if(ce!=null)switch(oe){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,`input`));case`name`:P=ce;break;case`formAction`:F=ce;break;case`formEncType`:I=ce;break;case`formMethod`:ee=ce;break;case`formTarget`:R=ce;break;case`defaultChecked`:ae=ce;break;case`defaultValue`:te=ce;break;case`checked`:ie=ce;break;case`value`:z=ce;break;default:at(e,oe,ce)}}var le=it(e,r,a,F,I,ee,R,P);return ie===null?ae!==null&&Ze(e,`checked`,ae):Ze(e,`checked`,ie),z===null?te!==null&&at(e,`value`,te):at(e,`value`,z),e.push(st),le?.forEach(tt,e),null;case`button`:e.push(G(`button`));var B=null,de=null,fe=null,pe=null,he=null,ge=null,_e=null,ve;for(ve in n)if(re.call(n,ve)){var be=n[ve];if(be!=null)switch(ve){case`children`:B=be;break;case`dangerouslySetInnerHTML`:de=be;break;case`name`:fe=be;break;case`formAction`:pe=be;break;case`formEncType`:he=be;break;case`formMethod`:ge=be;break;case`formTarget`:_e=be;break;default:at(e,ve,be)}}var xe=it(e,r,a,pe,he,ge,_e,fe);if(e.push(ot),xe?.forEach(tt,e),ct(e,de,B),typeof B==`string`){e.push(L(ue(B)));var Se=null}else Se=B;return Se;case`form`:e.push(G(`form`));var Ce=null,V=null,we=null,Te=null,Ee=null,De=null,Oe;for(Oe in n)if(re.call(n,Oe)){var ke=n[Oe];if(ke!=null)switch(Oe){case`children`:Ce=ke;break;case`dangerouslySetInnerHTML`:V=ke;break;case`action`:we=ke;break;case`encType`:Te=ke;break;case`method`:Ee=ke;break;case`target`:De=ke;break;default:at(e,Oe,ke)}}var Ae=null,je=null;if(typeof we==`function`){var Me=rt(r,we);Me===null?(e.push(qe,L(`action`),Je,$e,Ye),De=Ee=Te=we=null,ft(r,a)):(we=Me.action||``,Te=Me.encType,Ee=Me.method,De=Me.target,Ae=Me.data,je=Me.name)}if(we!=null&&at(e,`action`,we),Te!=null&&at(e,`encType`,Te),Ee!=null&&at(e,`method`,Ee),De!=null&&at(e,`target`,De),e.push(ot),je!==null&&(e.push(et),Qe(e,`name`,je),e.push(st),Ae?.forEach(tt,e)),ct(e,V,Ce),typeof Ce==`string`){e.push(L(ue(Ce)));var Ne=null}else Ne=Ce;return Ne;case`menuitem`:for(var Pe in e.push(G(`menuitem`)),n)if(re.call(n,Pe)){var H=n[Pe];if(H!=null)switch(Pe){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(400));default:at(e,Pe,H)}}return e.push(ot),null;case`object`:e.push(G(`object`));var U=null,Fe=null,Ie;for(Ie in n)if(re.call(n,Ie)){var Le=n[Ie];if(Le!=null)switch(Ie){case`children`:U=Le;break;case`dangerouslySetInnerHTML`:Fe=Le;break;case`data`:var Re=me(``+Le);if(Re===``)break;e.push(qe,L(`data`),Je,L(ue(Re)),Ye);break;default:at(e,Ie,Le)}}if(e.push(ot),ct(e,Fe,U),typeof U==`string`){e.push(L(ue(U)));var ze=null}else ze=U;return ze;case`title`:var Be=c.tagScope&1,He=c.tagScope&4;if(c.insertionMode===4||Be||n.itemProp!=null)var Ue=yt(e,n);else He?Ue=null:(yt(a.hoistableChunks,n),Ue=void 0);return Ue;case`link`:var W=c.tagScope&1,We=c.tagScope&4,Ge=n.rel,Xe=n.href,nt=n.precedence;if(c.insertionMode===4||W||n.itemProp!=null||typeof Ge!=`string`||typeof Xe!=`string`||Xe===``){ht(e,n);var dt=null}else if(n.rel===`stylesheet`)if(typeof nt!=`string`||n.disabled!=null||n.onLoad||n.onError)dt=ht(e,n);else{var pt=a.styles.get(nt),mt=r.styleResources.hasOwnProperty(Xe)?r.styleResources[Xe]:void 0;if(mt!==null){r.styleResources[Xe]=null,pt||(pt={precedence:L(ue(nt)),rules:[],hrefs:[],sheets:new Map},a.styles.set(nt,pt));var Dt={state:0,props:ne({},n,{"data-precedence":n.precedence,precedence:null})};if(mt){mt.length===2&&Cr(Dt.props,mt);var Ot=a.preloads.stylesheets.get(Xe);Ot&&0<Ot.length?Ot.length=0:Dt.state=1}pt.sheets.set(Xe,Dt),s&&s.stylesheets.add(Dt)}else if(pt){var At=pt.sheets.get(Xe);At&&s&&s.stylesheets.add(At)}l&&e.push(Ve),dt=null}else n.onLoad||n.onError?dt=ht(e,n):(l&&e.push(Ve),dt=We?null:ht(a.hoistableChunks,n));return dt;case`script`:var jt=c.tagScope&1,Nt=n.async;if(typeof n.src!=`string`||!n.src||!Nt||typeof Nt==`function`||typeof Nt==`symbol`||n.onLoad||n.onError||c.insertionMode===4||jt||n.itemProp!=null)var Pt=Ct(e,n);else{var Ft=n.src;if(n.type===`module`)var It=r.moduleScriptResources,Lt=a.preloads.moduleScripts;else It=r.scriptResources,Lt=a.preloads.scripts;var Rt=It.hasOwnProperty(Ft)?It[Ft]:void 0;if(Rt!==null){It[Ft]=null;var zt=n;if(Rt){Rt.length===2&&(zt=ne({},n),Cr(zt,Rt));var Bt=Lt.get(Ft);Bt&&(Bt.length=0)}var Vt=[];a.scripts.add(Vt),Ct(Vt,zt)}
vendor: 11,087 bytes, lines 2300-2307
2300l&&e.push(Ve),Pt=null}return Pt;case`style`:var Ht=c.tagScope&1,Ut=n.precedence,Wt=n.href,Gt=n.nonce;if(c.insertionMode===4||Ht||n.itemProp!=null||typeof Ut!=`string`||typeof Wt!=`string`||Wt===``){e.push(G(`style`));var Kt=null,qt=null,Jt;for(Jt in n)if(re.call(n,Jt)){var Yt=n[Jt];if(Yt!=null)switch(Jt){case`children`:Kt=Yt;break;case`dangerouslySetInnerHTML`:qt=Yt;break;default:at(e,Jt,Yt)}}e.push(ot);var Xt=Array.isArray(Kt)?2>Kt.length?Kt[0]:null:Kt;typeof Xt!=`function`&&typeof Xt!=`symbol`&&Xt!=null&&e.push(L((``+Xt).replace(gt,_t))),ct(e,qt,Kt),e.push(Mt(`style`));var Zt=null}else{var Qt=a.styles.get(Ut);if((r.styleResources.hasOwnProperty(Wt)?r.styleResources[Wt]:void 0)!==null){r.styleResources[Wt]=null,Qt||(Qt={precedence:L(ue(Ut)),rules:[],hrefs:[],sheets:new Map},a.styles.set(Ut,Qt));var $t=a.nonce.style;if(!$t||$t===Gt){Qt.hrefs.push(L(ue(Wt)));var en=Qt.rules,tn=null,nn=null,rn;for(rn in n)if(re.call(n,rn)){var an=n[rn];if(an!=null)switch(rn){case`children`:tn=an;break;case`dangerouslySetInnerHTML`:nn=an}}var on=Array.isArray(tn)?2>tn.length?tn[0]:null:tn;typeof on!=`function`&&typeof on!=`symbol`&&on!=null&&en.push(L((``+on).replace(gt,_t))),ct(en,nn,tn)}}Qt&&s&&s.styles.add(Qt),l&&e.push(Ve),Zt=void 0}return Zt;case`meta`:var sn=c.tagScope&1,cn=c.tagScope&4;if(c.insertionMode===4||sn||n.itemProp!=null)var ln=vt(e,n,`meta`);else l&&e.push(Ve),ln=cn?null:typeof n.charSet==`string`?vt(a.charsetChunks,n,`meta`):n.name===`viewport`?vt(a.viewportChunks,n,`meta`):vt(a.hoistableChunks,n,`meta`);return ln;case`listing`:case`pre`:e.push(G(t));var un=null,dn=null,fn;for(fn in n)if(re.call(n,fn)){var pn=n[fn];if(pn!=null)switch(fn){case`children`:un=pn;break;case`dangerouslySetInnerHTML`:dn=pn;break;default:at(e,fn,pn)}}if(e.push(ot),dn!=null){if(un!=null)throw Error(i(60));if(typeof dn!=`object`||!(`__html`in dn))throw Error(i(61));var mn=dn.__html;mn!=null&&(typeof mn==`string`&&0<mn.length&&mn[0]===`
2301`?e.push(Et,L(mn)):e.push(L(``+mn)))}return typeof un==`string`&&un[0]===`
2302`&&e.push(Et),un;case`img`:var hn=c.tagScope&3,gn=n.src,_n=n.srcSet;if(!(n.loading===`lazy`||!gn&&!_n||typeof gn!=`string`&&gn!=null||typeof _n!=`string`&&_n!=null||n.fetchPriority===`low`||hn)&&(typeof gn!=`string`||gn[4]!==`:`||gn[0]!==`d`&&gn[0]!==`D`||gn[1]!==`a`&&gn[1]!==`A`||gn[2]!==`t`&&gn[2]!==`T`||gn[3]!==`a`&&gn[3]!==`A`)&&(typeof _n!=`string`||_n[4]!==`:`||_n[0]!==`d`&&_n[0]!==`D`||_n[1]!==`a`&&_n[1]!==`A`||_n[2]!==`t`&&_n[2]!==`T`||_n[3]!==`a`&&_n[3]!==`A`)){s!==null&&c.tagScope&64&&(s.suspenseyImages=!0);var vn=typeof n.sizes==`string`?n.sizes:void 0,yn=_n?_n+`
2303`+(vn||``):gn,bn=a.preloads.images,xn=bn.get(yn);if(xn)(n.fetchPriority===`high`||10>a.highImagePreloads.size)&&(bn.delete(yn),a.highImagePreloads.add(xn));else if(!r.imageResources.hasOwnProperty(yn)){r.imageResources[yn]=ye;var Sn=n.crossOrigin,Cn=typeof Sn==`string`?Sn===`use-credentials`?Sn:``:void 0,wn=a.headers,Tn;wn&&0<wn.remainingCapacity&&typeof n.srcSet!=`string`&&(n.fetchPriority===`high`||500>wn.highImagePreloads.length)&&(Tn=wr(gn,`image`,{imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:Cn,integrity:n.integrity,nonce:n.nonce,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.refererPolicy}),0<=(wn.remainingCapacity-=Tn.length+2))?(a.resets.image[yn]=ye,wn.highImagePreloads&&(wn.highImagePreloads+=`, `),wn.highImagePreloads+=Tn):(xn=[],ht(xn,{rel:`preload`,as:`image`,href:_n?void 0:gn,imageSrcSet:_n,imageSizes:vn,crossOrigin:Cn,integrity:n.integrity,type:n.type,fetchPriority:n.fetchPriority,referrerPolicy:n.referrerPolicy}),n.fetchPriority===`high`||10>a.highImagePreloads.size?a.highImagePreloads.add(xn):(a.bulkPreloads.add(xn),bn.set(yn,xn)))}}return vt(e,n,`img`);case`base`:case`area`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`param`:case`source`:case`track`:case`wbr`:return vt(e,n,t);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`:break;case`head`:if(2>c.insertionMode){var En=o||a.preamble;if(En.headChunks)throw Error(i(545,"`<head>`"));o!==null&&e.push(bt),En.headChunks=[];var Dn=wt(En.headChunks,n,`head`)}else Dn=Tt(e,n,`head`);return Dn;case`body`:if(2>c.insertionMode){var On=o||a.preamble;if(On.bodyChunks)throw Error(i(545,"`<body>`"));o!==null&&e.push(xt),On.bodyChunks=[];var kn=wt(On.bodyChunks,n,`body`)}else kn=Tt(e,n,`body`);return kn;case`html`:if(c.insertionMode===0){var An=o||a.preamble;if(An.htmlChunks)throw Error(i(545,"`<html>`"));o!==null&&e.push(St),An.htmlChunks=[kt];var jn=wt(An.htmlChunks,n,`html`)}else jn=Tt(e,n,`html`);return jn;default:if(t.indexOf(`-`)!==-1){e.push(G(t));var Mn=null,Nn=null,Pn;for(Pn in n)if(re.call(n,Pn)){var Fn=n[Pn];if(Fn!=null){var In=Pn;switch(Pn){case`children`:Mn=Fn;break;case`dangerouslySetInnerHTML`:Nn=Fn;break;case`style`:Ke(e,Fn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`ref`:break;case`className`:In=`class`;default:if(se(Pn)&&typeof Fn!=`function`&&typeof Fn!=`symbol`&&!1!==Fn){if(!0===Fn)Fn=``;else if(typeof Fn==`object`)continue;e.push(qe,L(In),Je,L(ue(Fn)),Ye)}}}}return e.push(ot),ct(e,Nn,Mn),Mn}}return Tt(e,n,t)}var jt=new Map;function Mt(e){var t=jt.get(e);return t===void 0&&(t=R(`</`+e+`>`),jt.set(e,t)),t}function Nt(e,t){e=e.preamble,e.htmlChunks===null&&t.htmlChunks&&(e.htmlChunks=t.htmlChunks),e.headChunks===null&&t.headChunks&&(e.headChunks=t.headChunks),e.bodyChunks===null&&t.bodyChunks&&(e.bodyChunks=t.bodyChunks)}function Pt(e,t){t=t.bootstrapChunks;for(var n=0;n<t.length-1;n++)P(e,t[n]);return n<t.length?(n=t[n],t.length=0,F(e,n)):!0}var Ft=R(`requestAnimationFrame(function(){$RT=performance.now()});`),It=R(`<template id="`),Lt=R(`"></template>`),Rt=R(`<!--&-->`),zt=R(`<!--/&-->`),Bt=R(`<!--$-->`),Vt=R(`<!--$?--><template id="`),Ht=R(`"></template>`),Ut=R(`<!--$!-->`),Wt=R(`<!--/$-->`),Gt=R(`<template`),Kt=R(`"`),qt=R(` data-dgst="`);R(` data-msg="`),R(` data-stck="`),R(` data-cstck="`);var Jt=R(`></template>`);function Yt(e,t,n){if(P(e,Vt),n===null)throw Error(i(395));return P(e,t.boundaryPrefix),P(e,L(n.toString(16))),F(e,Ht)}var Xt=R(`<div hidden id="`),Zt=R(`">`),Qt=R(`</div>`),$t=R(`<svg aria-hidden="true" style="display:none" id="`),en=R(`">`),tn=R(`</svg>`),nn=R(`<math aria-hidden="true" style="display:none" id="`),rn=R(`">`),an=R(`</math>`),on=R(`<table hidden id="`),sn=R(`">`),cn=R(`</table>`),ln=R(`<table hidden><tbody id="`),un=R(`">`),dn=R(`</tbody></table>`),fn=R(`<table hidden><tr id="`),pn=R(`">`),mn=R(`</tr></table>`),hn=R(`<table hidden><colgroup id="`),gn=R(`">`),_n=R(`</colgroup></table>`);function vn(e,t,n,r){switch(n.insertionMode){case 0:case 1:case 3:case 2:return P(e,Xt),P(e,t.segmentPrefix),P(e,L(r.toString(16))),F(e,Zt);case 4:return P(e,$t),P(e,t.segmentPrefix),P(e,L(r.toString(16))),F(e,en);case 5:return P(e,nn),P(e,t.segmentPrefix),P(e,L(r.toString(16))),F(e,rn);case 6:return P(e,on),P(e,t.segmentPrefix),P(e,L(r.toString(16))),F(e,sn);case 7:return P(e,ln),P(e,t.segmentPrefix),P(e,L(r.toString(16))),F(e,un);case 8:return P(e,fn),P(e,t.segmentPrefix),P(e,L(r.toString(16))),F(e,pn);case 9:return P(e,hn),P(e,t.segmentPrefix),P(e,L(r.toString(16))),F(e,gn);default:throw Error(i(397))}}function yn(e,t){switch(t.insertionMode){case 0:case 1:case 3:case 2:return F(e,Qt);case 4:return F(e,tn);case 5:return F(e,an);case 6:return F(e,cn);case 7:return F(e,dn);case 8:return F(e,mn);case 9:return F(e,_n);default:throw Error(i(397))}}var bn=R(`$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("`),xn=R(`$RS("`),Sn=R(`","`),Cn=R(`")<\/script>`);R(`<template data-rsi="" data-sid="`),R(`" data-pid="`);var wn=R(`$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2304$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};`);L(`$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),
2305H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll('img[src]:not([loading="lazy"])'))}}}if(B){var z=
2306document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
2307performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}
2307.bind(null,$RV);`);var Tn=R(`$RC("`),En=R(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
2308"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
2309"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),Dn=R(`$RR("`),On=R(`","`),kn=R(`",`),An=R(`"`),jn=R(`)<\/script>`);R(`<template data-rci="" data-bid="`),R(`<template data-rri="" data-bid="`),R(`" data-sid="`),R(`" data-sty="`);var Mn=R(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};`),Nn=R(`$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("`),Pn=R(`$RX("`),Fn=R(`"`),In=R(`,`),Ln=R(`)<\/script>`);R(`<template data-rxi="" data-bid="`),R(`" data-dgst="`),R(`" data-msg="`),R(`" data-stck="`),R(`" data-cstck="`);var Rn=/[<\u2028\u2029]/g;function zn(e){return JSON.stringify(e).replace(Rn,function(e){switch(e){case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Bn=/[&><\u2028\u2029]/g;function Vn(e){return JSON.stringify(e).replace(Bn,function(e){switch(e){case`&`:return`\\u0026`;case`>`:return`\\u003e`;case`<`:return`\\u003c`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:throw Error(`escapeJSObjectForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}})}var Hn=R(` media="not all" data-precedence="`),Un=R(`" data-href="`),Wn=R(`">`),Gn=R(`</style>`),Kn=!1,qn=!0;function Jn(e){var t=e.rules,n=e.hrefs,r=0;if(n.length){for(P(this,be.startInlineStyle),P(this,Hn),P(this,e.precedence),P(this,Un);r<n.length-1;r++)P(this,n[r]),P(this,nr);for(P(this,n[r]),P(this,Wn),r=0;r<t.length;r++)P(this,t[r]);qn=F(this,Gn),Kn=!0,t.length=0,n.length=0}}function Yn(e){return e.state===2?!1:Kn=!0}function Xn(e,t,n){return Kn=!1,qn=!0,be=n,t.styles.forEach(Jn,e),be=null,t.stylesheets.forEach(Yn),Kn&&(n.stylesToHoist=!0),qn}function Zn(e){for(var t=0;t<e.length;t++)P(this,e[t]);e.length=0}var Qn=[];function $n(e){ht(Qn,e.props);for(var t=0;t<Qn.length;t++)P(this,Qn[t]);Qn.length=0,e.state=2}var er=R(` data-precedence="`),tr=R(`" data-href="`),nr=R(` `),rr=R(`">`),ir=R(`</style>`);function ar(e){var t=0<e.sheets.size;e.sheets.forEach($n,this),e.sheets.clear();var n=e.rules,r=e.hrefs;if(!t||r.length){if(P(this,be.startInlineStyle),P(this,er),P(this,e.precedence),e=0,r.length){for(P(this,tr);e<r.length-1;e++)P(this,r[e]),P(this,nr);P(this,r[e])}for(P(this,rr),e=0;e<n.length;e++)P(this,n[e]);P(this,ir),n.length=0,r.length=0}}function or(e){if(e.state===0){e.state=1;var t=e.props;for(ht(Qn,{rel:`preload`,as:`style`,href:e.props.href,crossOrigin:t.crossOrigin,fetchPriority:t.fetchPriority,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),e=0;e<Qn.length;e++)P(this,Qn[e]);Qn.length=0}}
vendor: 9,758 bytes, lines 2309-2312
2309function sr(e){e.sheets.forEach(or,this),e.sheets.clear()}R(`<link rel="expect" href="#`),R(`" blocking="render"/>`);var cr=R(` id="`);function lr(e,t){!(t.instructions&32)&&(t.instructions|=32,e.push(cr,L(ue(`_`+t.idPrefix+`R_`)),Ye))}var ur=R(`[`),dr=R(`,[`),fr=R(`,`),pr=R(`]`);function mr(e,t){P(e,ur);var n=ur;t.stylesheets.forEach(function(t){if(t.state!==2)if(t.state===3)P(e,n),P(e,L(Vn(``+t.props.href))),P(e,pr),n=dr;else{P(e,n);var r=t.props[`data-precedence`],a=t.props;for(var o in P(e,L(Vn(me(``+t.props.href)))),r=``+r,P(e,fr),P(e,L(Vn(r))),a)if(re.call(a,o)&&(r=a[o],r!=null))switch(o){case`href`:case`rel`:case`precedence`:case`data-precedence`:break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(399,`link`));default:K(e,o,r)}P(e,pr),n=dr,t.state=3}}),P(e,pr)}function K(e,t,n){var r=t.toLowerCase();switch(typeof n){case`function`:case`symbol`:return}switch(t){case`innerHTML`:case`dangerouslySetInnerHTML`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`style`:case`ref`:return;case`className`:r=`class`,t=``+n;break;case`hidden`:if(!1===n)return;t=``;break;case`src`:case`href`:n=me(n),t=``+n;break;default:if(2<t.length&&(t[0]===`o`||t[0]===`O`)&&(t[1]===`n`||t[1]===`N`)||!se(t))return;t=``+n}P(e,fr),P(e,L(Vn(r))),P(e,fr),P(e,L(Vn(t)))}function hr(){return{styles:new Set,stylesheets:new Set,suspenseyImages:!1}}function gr(e){var t=qi||null;if(t){var n=t.resumableState,r=t.renderState;if(typeof e==`string`&&e){if(!n.dnsResources.hasOwnProperty(e)){n.dnsResources[e]=null,n=r.headers;var i,a;(a=n&&0<n.remainingCapacity)&&(a=(i=`<`+(``+e).replace(Tr,Er)+`>; rel=dns-prefetch`,0<=(n.remainingCapacity-=i.length+2))),a?(r.resets.dns[e]=null,n.preconnects&&(n.preconnects+=`, `),n.preconnects+=i):(i=[],ht(i,{href:e,rel:`dns-prefetch`}),r.preconnects.add(i))}Wa(t)}}else ve.D(e)}function _r(e,t){var n=qi||null;if(n){var r=n.resumableState,i=n.renderState;if(typeof e==`string`&&e){var a=t===`use-credentials`?`credentials`:typeof t==`string`?`anonymous`:`default`;if(!r.connectResources[a].hasOwnProperty(e)){r.connectResources[a][e]=null,r=i.headers;var o,s;if(s=r&&0<r.remainingCapacity){if(s=`<`+(``+e).replace(Tr,Er)+`>; rel=preconnect`,typeof t==`string`){var c=(``+t).replace(Dr,Or);s+=`; crossorigin="`+c+`"`}s=(o=s,0<=(r.remainingCapacity-=o.length+2))}s?(i.resets.connect[a][e]=null,r.preconnects&&(r.preconnects+=`, `),r.preconnects+=o):(a=[],ht(a,{rel:`preconnect`,href:e,crossOrigin:t}),i.preconnects.add(a))}Wa(n)}}else ve.C(e,t)}function vr(e,t,n){var r=qi||null;if(r){var i=r.resumableState,a=r.renderState;if(t&&e){switch(t){case`image`:if(n)var o=n.imageSrcSet,s=n.imageSizes,c=n.fetchPriority;var l=o?o+`
2310`+(s||``):e;if(i.imageResources.hasOwnProperty(l))return;i.imageResources[l]=ye,i=a.headers;var u;i&&0<i.remainingCapacity&&typeof o!=`string`&&c===`high`&&(u=wr(e,t,n),0<=(i.remainingCapacity-=u.length+2))?(a.resets.image[l]=ye,i.highImagePreloads&&(i.highImagePreloads+=`, `),i.highImagePreloads+=u):(i=[],ht(i,ne({rel:`preload`,href:o?void 0:e,as:t},n)),c===`high`?a.highImagePreloads.add(i):(a.bulkPreloads.add(i),a.preloads.images.set(l,i)));break;case`style`:if(i.styleResources.hasOwnProperty(e))return;o=[],ht(o,ne({rel:`preload`,href:e,as:t},n)),i.styleResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ye:[n.crossOrigin,n.integrity],a.preloads.stylesheets.set(e,o),a.bulkPreloads.add(o);break;case`script`:if(i.scriptResources.hasOwnProperty(e))return;o=[],a.preloads.scripts.set(e,o),a.bulkPreloads.add(o),ht(o,ne({rel:`preload`,href:e,as:t},n)),i.scriptResources[e]=!n||typeof n.crossOrigin!=`string`&&typeof n.integrity!=`string`?ye:[n.crossOrigin,n.integrity];break;default:if(i.unknownResources.hasOwnProperty(t)){if(o=i.unknownResources[t],o.hasOwnProperty(e))return}else o={},i.unknownResources[t]=o;if(o[e]=ye,(i=a.headers)&&0<i.remainingCapacity&&t===`font`&&(l=wr(e,t,n),0<=(i.remainingCapacity-=l.length+2)))a.resets.font[e]=ye,i.fontPreloads&&(i.fontPreloads+=`, `),i.fontPreloads+=l;else switch(i=[],e=ne({rel:`preload`,href:e,as:t},n),ht(i,e),t){case`font`:a.fontPreloads.add(i);break;default:a.bulkPreloads.add(i)}}Wa(r)}}else ve.L(e,t,n)}function yr(e,t){var n=qi||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=t&&typeof t.as==`string`?t.as:`script`;switch(a){case`script`:if(r.moduleScriptResources.hasOwnProperty(e))return;a=[],r.moduleScriptResources[e]=!t||typeof t.crossOrigin!=`string`&&typeof t.integrity!=`string`?ye:[t.crossOrigin,t.integrity],i.preloads.moduleScripts.set(e,a);break;default:if(r.moduleUnknownResources.hasOwnProperty(a)){var o=r.unknownResources[a];if(o.hasOwnProperty(e))return}else o={},r.moduleUnknownResources[a]=o;a=[],o[e]=ye}ht(a,ne({rel:`modulepreload`,href:e},t)),i.bulkPreloads.add(a),Wa(n)}}else ve.m(e,t)}function br(e,t,n){var r=qi||null;if(r){var i=r.resumableState,a=r.renderState;if(e){t||=`default`;var o=a.styles.get(t),s=i.styleResources.hasOwnProperty(e)?i.styleResources[e]:void 0;s!==null&&(i.styleResources[e]=null,o||(o={precedence:L(ue(t)),rules:[],hrefs:[],sheets:new Map},a.styles.set(t,o)),t={state:0,props:ne({rel:`stylesheet`,href:e,"data-precedence":t},n)},s&&(s.length===2&&Cr(t.props,s),(a=a.preloads.stylesheets.get(e))&&0<a.length?a.length=0:t.state=1),o.sheets.set(e,t),Wa(r))}}else ve.S(e,t,n)}function xr(e,t){var n=qi||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.scriptResources.hasOwnProperty(e)?r.scriptResources[e]:void 0;a!==null&&(r.scriptResources[e]=null,t=ne({src:e,async:!0},t),a&&(a.length===2&&Cr(t,a),e=i.preloads.scripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),Ct(e,t),Wa(n))}}else ve.X(e,t)}function Sr(e,t){var n=qi||null;if(n){var r=n.resumableState,i=n.renderState;if(e){var a=r.moduleScriptResources.hasOwnProperty(e)?r.moduleScriptResources[e]:void 0;a!==null&&(r.moduleScriptResources[e]=null,t=ne({src:e,type:`module`,async:!0},t),a&&(a.length===2&&Cr(t,a),e=i.preloads.moduleScripts.get(e))&&(e.length=0),e=[],i.scripts.add(e),Ct(e,t),Wa(n))}}else ve.M(e,t)}function Cr(e,t){e.crossOrigin??=t[0],e.integrity??=t[1]}function wr(e,t,n){for(var r in e=(``+e).replace(Tr,Er),t=(``+t).replace(Dr,Or),t=`<`+e+`>; rel=preload; as="`+t+`"`,n)re.call(n,r)&&(e=n[r],typeof e==`string`&&(t+=`; `+r.toLowerCase()+`="`+(``+e).replace(Dr,Or)+`"`));return t}var Tr=/[<>\r\n]/g;function Er(e){switch(e){case`<`:return`%3C`;case`>`:return`%3E`;case`
2311`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeLinkHrefForHeaderContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}var Dr=/["';,\r\n]/g;function Or(e){switch(e){case`"`:return`%22`;case`'`:return`%27`;case`;`:return`%3B`;case`,`:return`%2C`;case`
2312`:return`%0A`;case`\r`:return`%0D`;default:throw Error(`escapeStringForLinkHeaderQuotedParamValueContextReplacer encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React`)}}function kr(e){this.styles.add(e)}function Ar(e){this.stylesheets.add(e)}function jr(e,t){t.styles.forEach(kr,e),t.stylesheets.forEach(Ar,e),t.suspenseyImages&&(e.suspenseyImages=!0)}function Mr(e){return 0<e.stylesheets.size||e.suspenseyImages}var Nr=Function.prototype.bind,Pr=Symbol.for(`react.client.reference`);function Fr(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Pr?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case s:return`Fragment`;case l:return`Profiler`;case c:return`StrictMode`;case p:return`Suspense`;case m:return`SuspenseList`;case v:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case o:return`Portal`;case d:return e.displayName||`Context`;case u:return(e._context.displayName||`Context`)+`.Consumer`;case f:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case h:return t=e.displayName||null,t===null?Fr(e.type)||`Memo`:t;case g:t=e._payload,e=e._init;try{return Fr(e(t))}catch{}}return null}var Ir={},Lr=null;function Rr(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(e===null){if(n!==null)throw Error(i(401))}else{if(n===null)throw Error(i(401));Rr(e,n)}t.context._currentValue=t.value}}function zr(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&zr(e)}function Br(e){var t=e.parent;t!==null&&Br(t),e.context._currentValue=e.value}function Vr(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(i(402));e.depth===t.depth?Rr(e,t):Vr(e,t)}function Hr(e,t){var n=t.parent;if(n===null)throw Error(i(402));e.depth===n.depth?Rr(e,n):Hr(e,n),t.context._currentValue=t.value}function Ur(e){var t=Lr;t!==e&&(t===null?Br(e):e===null?zr(t):t.depth===e.depth?Rr(t,e):t.depth>e.depth?Vr(t,e):Hr(t,e),Lr=e)}var Wr={enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}},Gr={id:1,overflow:``};function Kr(e,t,n){var r=e.id;e=e.overflow;var i=32-qr(r)-1;r&=~(1<<i),n+=1;var a=32-qr(t)+i;if(30<a){var o=i-i%5;return a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,{id:1<<32-qr(t)+i|n<<i|r,overflow:a+e}}return{id:1<<a|n<<i|r,overflow:e}}var qr=Math.clz32?Math.clz32:Xr,Jr=Math.log,Yr=Math.LN2;function Xr(e){return e>>>=0,e===0?32:31-(Jr(e)/Yr|0)|0}function Zr(){}var Qr=Error(i(460));function $r(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Zr,Zr),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason;default:switch(typeof t.status==`string`?t.then(Zr,Zr):(e=t,e.status=`pending`,e.then(function(e){if(t.status===`pen
2312ding`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})),t.status){case`fulfilled`:return t.value;case`rejected`:throw t.reason}throw ei=t,Qr}}var ei=null;function ti(){if(ei===null)throw Error(i(459));var e=ei;return ei=null,e}function ni(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var ri=typeof Object.is==`function`?Object.is:ni,ii=null,ai=null,oi=null,si=null,ci=null,li=null,ui=!1,di=!1,q=0,fi=0,pi=-1,mi=0,hi=null,gi=null,_i=0;function vi(){if(ii===null)throw Error(i(321));return ii}function yi(){if(0<_i)throw Error(i(312));return{memoizedState:null,queue:null,next:null}}function bi(){return li===null?ci===null?(ui=!1,ci=li=yi()):(ui=!0,li=ci):li.next===null?(ui=!1,li=li.next=yi()):(ui=!0,li=li.next),li}function xi(){var e=hi;return hi=null,e}function Si(){si=oi=ai=ii=null,di=!1,ci=null,_i=0,li=gi=null}function Ci(e,t){return typeof t==`function`?t(e):t}function wi(e,t,n){if(ii=vi(),li=bi(),ui){var r=li.queue;if(t=r.dispatch,gi!==null&&(n=gi.get(r),n!==void 0)){gi.delete(r),r=li.memoizedState;do r=e(r,n.action),n=n.next;while(n!==null);return li.memoizedState=r,[r,t]}return[li.memoizedState,t]}return e=e===Ci?typeof t==`function`?t():t:n===void 0?t:n(t),li.memoizedState=e,e=li.queue={last:null,dispatch:null},e=e.dispatch=Ei.bind(null,ii,e),[li.memoizedState,e]}function Ti(e,t){if(ii=vi(),li=bi(),t=t===void 0?null:t,li!==null){var n=li.memoizedState;if(n!==null&&t!==null){var r=n[1];a:if(r===null)r=!1;else{for(var i=0;i<r.length&&i<t.length;i++)if(!ri(t[i],r[i])){r=!1;break a}r=!0}if(r)return n[0]}}return e=e(),li.memoizedState=[e,t],e}function Ei(e,t,n){if(25<=_i)throw Error(i(301));if(e===ii)if(di=!0,e={action:n,next:null},gi===null&&(gi=new Map),n=gi.get(t),n===void 0)gi.set(t,e);else{for(t=n;t.next!==null;)t=t.next;t.next=e}}function Di(){throw Error(i(440))}function Oi(){throw Error(i(394))}function ki(){throw Error(i(479))}function Ai(e,t,n){vi();var r=fi++,i=oi;if(typeof e.$$FORM_ACTION==`function`){var a=null,o=si;i=i.formState;var s=e.$$IS_SIGNATURE_EQUAL;if(i!==null&&typeof s==`function`){var c=i[1];s.call(e,i[2],i[3])&&(a=n===void 0?`k`+T(JSON.stringify([o,null,r]),0):`p`+n,c===a&&(pi=r,t=i[0]))}var l=e.bind(null,t);return e=function(e){l(e)},typeof l.$$FORM_ACTION==`function`&&(e.$$FORM_ACTION=function(e){e=l.$$FORM_ACTION(e),n!==void 0&&(n+=``,e.action=n);var t=e.data;return t&&(a===null&&(a=n===void 0?`k`+T(JSON.stringify([o,null,r]),0):`p`+n),t.append(`$ACTION_KEY`,a)),e}),[t,e,!1]}var u=e.bind(null,t);return[t,function(e){u(e)},!1]}function ji(e){var t=mi;return mi+=1,hi===null&&(hi=[]),$r(hi,e,t)}function Mi(){throw Error(i(393))}var Ni={readContext:function(e){return e._currentValue},use:function(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ji(e);if(e.$$typeof===d)return e._currentValue}throw Error(i(438,String(e)))},useContext:function(e){return vi(),e._currentValue},useMemo:Ti,useReducer:wi,useRef:function(e){ii=vi(),li=bi();var t=li.memoizedState;return t===null?(e={current:e},li.memoizedState=e):t},useState:function(e){return wi(Ci,e)},useInsertionEffect:Zr,useLayoutEffect:Zr,useCallback:function(e,t){return Ti(function(){return e},t)},useImperativeHandle:Zr,useEffect:Zr,useDebugValue:Zr,useDeferredValue:function(e,t){return vi(),t===void 0?e:t},useTransition:function(){return vi(),[!1,Oi]},useId:function(){var e=ai.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-qr(e)-1)).toString(32)+t;var n=Pi;if(n===null)throw Error(i(404));return t=q++,e=`_`+n.idPrefix+`R_`+e,0<t&&(e+=`H`+t.toString(32)),e+`_`},useSyncExternalStore:function(e,t,n){if(n===void 0)throw Error(i(407));return n()},useOptimistic:function(e){return vi(),[e,ki]},useActionState:Ai,useFormState:Ai,useHostTransitionStatus:function(){return vi(),_e},useMemoCache:function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=b;return t},useCacheRefresh:function(){return Mi},useEffectEvent:function(){return Di}},Pi=null,Fi={getCacheForType:function(){throw Error(i(248))},cacheSignal:function(){throw Error(i(248))}},Ii,Li;function Ri(e){if(Ii===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ii=t&&t[1]||``,Li=-1<e.stack.indexOf(`
2313    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
2314`+Ii+e+Li}var zi=!1;function Bi(e,t){if(!e||zi)return``;zi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}
vendor: 41,951 bytes, lines 2314-2324
2314else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
2315`),l=s.split(`
2316`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
2317`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{zi=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ri(n):``}function Vi(e){if(typeof e==`string`)return Ri(e);if(typeof e==`function`)return e.prototype&&e.prototype.isReactComponent?Bi(e,!0):Bi(e,!1);if(typeof e==`object`&&e){switch(e.$$typeof){case f:return Bi(e.render,!1);case h:return Bi(e.type,!1);case g:var t=e,n=t._payload;t=t._init;try{e=t(n)}catch{return Ri(`Lazy`)}return Vi(e)}if(typeof e.name==`string`){a:{n=e.name,t=e.env;var r=e.debugLocation;if(r!=null&&(e=Error.prepareStackTrace,Error.prepareStackTrace=void 0,r=r.stack,Error.prepareStackTrace=e,r.startsWith(`Error: react-stack-top-frame
2318`)&&(r=r.slice(29)),e=r.indexOf(`
2319`),e!==-1&&(r=r.slice(e+1)),e=r.indexOf(`react_stack_bottom_frame`),e!==-1&&(e=r.lastIndexOf(`
2320`,e)),e=e===-1?``:r=r.slice(0,e),r=e.lastIndexOf(`
2321`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
2322`+e;break a}n=Ri(n+(t?` [`+t+`]`:``))}return n}}switch(e){case m:return Ri(`SuspenseList`);case p:return Ri(`Suspense`)}return``}function Hi(e,t){return(500<t.byteSize||Mr(t.contentState))&&t.contentPreamble===null}function Ui(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`%c%s%c `+e[0],`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``):e.splice(0,0,`%c%s%c`,`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``),e.unshift(console),t=Nr.apply(console.error,e),t()}else console.error(e);return null}function Wi(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=i===void 0?Ui:i,this.onPostpone=l===void 0?Zr:l,this.onAllReady=a===void 0?Zr:a,this.onShellReady=o===void 0?Zr:o,this.onShellError=s===void 0?Zr:s,this.onFatalError=c===void 0?Zr:c,this.formState=u===void 0?null:u}function Gi(e,t,n,r,i,a,o,s,c,l,u,d){return t=new Wi(t,n,r,i,a,o,s,c,l,u,d),n=Qi(t,0,null,r,!1,!1),n.parentFlushed=!0,e=Xi(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Gr,null,null),$i(e),t.pingedTasks.push(e),t}function Ki(e,t,n,r,i,a,o,s,c,l,u){return e=Gi(e,t,n,r,i,a,o,s,c,l,u,void 0),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}function J(e,t,n,r,i,a,o,s,c){return n=new Wi(t.resumableState,n,t.rootFormatContext,t.progressiveChunkSize,r,i,a,o,s,c,null),n.nextSegmentId=t.nextSegmentId,typeof t.replaySlots==`number`?(r=Qi(n,0,null,t.rootFormatContext,!1,!1),r.parentFlushed=!0,e=Xi(n,null,e,-1,null,r,null,null,n.abortableTasks,null,t.rootFormatContext,null,Gr,null,null),$i(e),n.pingedTasks.push(e),n):(e=Zi(n,null,{nodes:t.replayNodes,slots:t.replaySlots,pendingTasks:0},e,-1,null,null,n.abortableTasks,null,t.rootFormatContext,null,Gr,null,null),$i(e),n.pingedTasks.push(e),n)}function Y(e,t,n,r,i,a,o,s,c){return e=J(e,t,n,r,i,a,o,s,c),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}var qi=null;function Ji(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,e.trackedPostpones!==null||e.status===10?j(function(){return ja(e)}):O(function(){return ja(e)}))}function Yi(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null,contentState:hr(),fallbackState:hr(),contentPreamble:r,fallbackPreamble:i,trackedContentKeyPath:null,trackedFallbackNode:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&jr(n.contentState,e)),n}function Xi(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:function(){return Ji(e,h)},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function Zi(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:function(){return Ji(e,m)},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function Qi(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function $i(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case a:e.componentStack={parent:e.componentStack,type:t.type}}}function ea(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function ta(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=Vi(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
2323Error generating stack: `+e.message+`
2324`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function na(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function ra(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,te(e.destination,t))}function ia(e,t){aa(e,t.next,t.hoistables)}function aa(e,t,n){for(;t!==null;){n!==null&&(jr(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&jr(a.contentState,n),Aa(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function oa(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Hi(e,a)){r=!1;break}}r&&aa(e,t,t.hoistables)}}function sa(e){var t={pendingTasks:1,boundaries:null,hoistables:hr(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function ca(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=sa(c),t.treeContext=Kr(o,n,d);var p=l[d];typeof p==`number`?(fa(e,t,p,f,d),delete l[d]):xa(e,t,f,d),--c.pendingTasks===0&&ia(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=sa(c),t.treeContext=Kr(o,n,u),xa(e,t,d,u),--c.pendingTasks===0&&ia(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=sa(c),t.treeContext=Kr(o,n,i),xa(e,t,l,i),--c.pendingTasks===0&&ia(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=sa(c),t.treeContext=Kr(o,n,d),p=Qi(e,u,null,t.formatContext,d===0?i.lastPushedText:!0,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{xa(e,t,f,d),p.lastPushedText&&p.textEmbedded&&p.chunks.push(Ve),p.status=1,ka(e,t.blockedBoundary,p),--c.pendingTasks===0&&ia(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function la(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,ii={},ai=t,oi=e,si=n,fi=q=0,pi=-1,mi=0,hi=o,e=r(i,a);di;)di=!1,fi=q=0,pi=-1,mi=0,_i+=1,li=null,e=r(i,a);return Si(),e}function ua(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(pt):c.push(mt)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Kr(n,1,0),xa(e,t,r,-1),t.treeContext=n):s?xa(e,t,r,-1):pa(e,t,r,-1),t.keyPath=a}function da(e,t,n,r,a,o){if(typeof r==`function`)if(r.prototype&&r.prototype.isReactComponent){var b=a;if(`ref`in a)for(var S in b={},a)S!==`ref`&&(b[S]=a[S]);var T=r.defaultProps;if(T)for(var E in b===a&&(b=ne({},b,a)),T)b[E]===void 0&&(b[E]=T[E]);a=b,b=Ir,T=r.contextType,typeof T==`object`&&T&&(b=T._currentValue),b=new r(a,b);var D=b.state===void 0?null:b.state;if(b.updater=Wr,b.props=a,b.state=D,T={queue:[],replace:!1},b._reactInternals=T,o=r.contextType,b.context=typeof o==`object`&&o?o._currentValue:Ir,o=r.getDerivedStateFromProps,typeof o==`function`&&(o=o(a,D),D=o==null?D:ne({},D,o),b.state=D),typeof r.getDerivedStateFromProps!=`function`&&typeof b.getSnapshotBeforeUpdate!=`function`&&(typeof b.UNSAFE_componentWillMount==`function`||typeof b.componentWillMount==`function`))if(r=b.state,typeof b.componentWillMount==`function`&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount==`function`&&b.UNSAFE_componentWillMount(),r!==b.state&&Wr.enqueueReplaceState(b,b.state,null),T.queue!==null&&0<T.queue.length)if(r=T.queue,o=T.replace,T.queue=null,T.replace=!1,o&&r.length===1)b.state=r[0];else{for(T=o?r[0]:b.state,D=!0,o=+!!o;o<r.length;o++)E=r[o],E=typeof E==`function`?E.call(b,T,a,void 0):E,E!=null&&(D?(D=!1,T=ne({},T,E)):ne(T,E));b.state=T}else T.queue=null;if(r=b.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,pa(e,t,r,-1),t.keyPath=a}else{if(r=la(e,t,n,r,a,void 0),e.status===12)throw null;ua(e,t,n,r,q!==0,fi,pi)}else if(typeof r==`string`)if(b=t.blockedSegment,b===null)b=a.children,T=t.formatContext,D=t.keyPath,t.formatContext=Le(T,r,a),t.keyPath=n,xa(e,t,b,-1),t.formatContext=T,t.keyPath=D;else{if(D=At(b.chunks,r,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,b.lastPushedText),b.lastPushedText=!1,T=t.formatContext,o=t.keyPath,t.keyPath=n,(t.formatContext=Le(T,r,a)).insertionMode===3){n=Qi(e,0,null,t.formatContext,!1,!1),b.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,xa(e,t,D,-1),n.lastPushedText&&n.textEmbedded&&n.chunks.push(Ve),n.status=1,ka(e,t.blockedBoundary,n)}finally{t.blockedSegment=b}}else xa(e,t,D,-1);t.formatContext=T,t.keyPath=o;a:{switch(t=b.chunks,e=e.resumableState,r){case`title`:case`style`:case`script`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`img`:case`input`:case`keygen`:case`link`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:break a;case`body`:if(1>=T.insertionMode){e.hasBody=!0;break a}break;case`html`:if(T.insertionMode===0){e.hasHtml=!0;break a}break;case`head`:if(1>=T.insertionMode)break a}t.push(Mt(r))}b.lastPushedText=!1}else{switch(r){case y:case c:case l:case s:r=t.keyPath,t.keyPath=n,pa(e,t,a.children,-1),t.keyPath=r;return;case v:r=t.blockedSegment,r===null?a.mode!==`hidden`&&(r=t.keyPath,t.keyPath=n,xa(e,t,a.children,-1),t.keyPath=r):a.mode!==`hidden`&&(r.chunks.push(Rt),r.lastPushedText=!1,b=t.keyPath,t.keyPath=n,xa(e,t,a.children,-1),t.keyPath=b,r.chunks.push(zt),r.lastPushedText=!1);return;case m:a:{if(r=a.children,a=a.revealOrder,a===`forwards`||a===`backwards`||a===`unstable_legacy-backwards`){if(w(r)){ca(e,t,n,r,a);break a}if((b=C(r))&&(b=b.call(r))){if(T=b.next(),!T.done){do T=b.next();while(!T.done);ca(e,t,n,r,a)}break a}}a===`together`?(a=t.keyPath,b=t.row,T=t.row=sa(null),T.boundaries=[],T.together=!0,t.keyPath=n,pa(e,t,r,-1),--T.pendingTasks===0&&ia(e,T),t.keyPath=a,t.row=b,b!==null&&0<T.pendingTasks&&(b.pendingTasks++,T.next=b)):(a=t.keyPath,t.keyPath=n,pa(e,t,r,-1),t.keyPath=a)}return;case x:case _:throw Error(i(343));case p:a:if(t.replay!==null){r=t.keyPath,b=t.formatContext,T=t.row,t.keyPath=n,t.formatContext=Be(e.resumableState,b),t.row=null,n=a.children;try{xa(e,t,n,-1)}finally{t.keyPath=r,t.formatContext=b,t.row=T}}else{r=t.keyPath,o=t.formatContext;var O=t.row;E=t.blockedBoundary,S=t.blockedPreamble;var k=t.hoistableState,A=t.blockedSegment,j=a.fallback;a=a.children;var M=new Set,N=2>t.formatContext.insertionMode?Yi(e,t.row,M,U(),U()):Yi(e,t.row,M,null,null);e.trackedPostpones!==null&&(N.trackedContentKeyPath=n);var P=Qi(e,A.chunks.length,N,t.formatContext,!1,!1);A.children.push(P),A.lastPushedText=!1;var F=Qi(e,0,null,t.formatContext,!1,!1);if(F.parentFlushed=!0,e.trackedPostpones!==null){b=t.componentStack,T=[n[0],`Suspense Fallback`,n[2]],D=[T[1],T[2],[],null],e.trackedPostpones.workingMap.set(T,D),N.trackedFallbackNode=D,t.blockedSegment=P,t.blockedPreamble=N.fallbackPreamble,t.keyPath=T,t.formatContext=ze(e.resumableState,o),t.componentStack=ea(b),P.status=6;try{xa(e,t,j,-1),P.lastPushedText&&P.textEmbedded&&P.chunks.push(Ve),P.status=1,ka(e,E,P)}catch(t){throw P.status=e.status===12?3:4,t}finally{t.blockedSegment=A,t.blockedPreamble=S,t.keyPath=r,t.formatContext=o}t=Xi(e,null,a,-1,N,F,N.contentPreamble,N.contentState,t.abortSet,n,Be(e.resumableState,t.formatContext),t.context,t.treeContext,null,b),$i(t),e.pingedTasks.push(t)}else{t.blockedBoundary=N,t.blockedPreamble=N.contentPreamble,t.hoistableState=N.contentState,t.blockedSegment=F,t.keyPath=n,t.formatContext=Be(e.resumableState,o),t.row=null,F.status=6;try{if(xa(e,t,a,-1),F.lastPushedText&&F.textEmbedded&&F.chunks.push(Ve),F.status=1,ka(e,N,F),Oa(N,F),N.pendingTasks===0&&N.status===0){if(N.status=1,!Hi(e,N)){O!==null&&--O.pendingTasks===0&&ia(e,O),e.pendingRootTasks===0&&t.blockedPreamble&&Pa(e);break a}}else O!==null&&O.together&&oa(e,O)}catch(n){N.status=4,e.status===12?(F.status=3,b=e.fatalError):(F.status=4,b=n),T=ta(t.componentStack),D=na(e,b,T),N.errorDigest=D,va(e,N)}finally{t.blockedBoundary=E,t.blockedPreamble=S,t.hoistableState=k,t.blockedSegment=A,t.keyPath=r,t.formatContext=o,t.row=O}t=Xi(e,null,j,-1,E,P,N.fallbackPreamble,N.fallbackState,M,[n[0],`Suspense Fallback`,n[2]],ze(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,ea(t.componentStack)),$i(t),e.pingedTasks.push(t)}}return}if(typeof r==`object`&&r)switch(r.$$typeof){case f:if(`ref`in a)for(A in b={},a)A!==`ref`&&(b[A]=a[A]);else b=a;r=la(e,t,n,r.render,b,o),ua(e,t,n,r,q!==0,fi,pi);return;case h:da(e,t,n,r.type,a,o);return;case d:if(T=a.children,b=t.keyPath,a=a.value,D=r._currentValue,r._currentValue=a,o=Lr,Lr=r={parent:o,depth:o===null?0:o.depth+1,context:r,parentValue:D,value:a},t.context=r,t.keyPath=n,pa(e,t,T,-1),e=Lr,e===null)throw Error(i(403));e.context._currentValue=e.parentValue,e=Lr=e.parent,t.context=e,t.keyPath=b;return;case u:a=a.children,r=a(r._context._currentValue),a=t.keyPath,t.keyPath=n,pa(e,t,r,-1),t.keyPath=a;return;case g:if(b=r._init,r=b(r._payload),e.status===12)throw null;da(e,t,n,r,a,o);return}throw Error(i(130,r==null?r:typeof r,``))}}function fa(e,t,n,r,i){var a=t.replay,o=t.blockedBoundary,s=Qi(e,0,null,t.formatContext,!1,!1);s.id=n,s.parentFlushed=!0;try{t.replay=null,t.blockedSegment=s,xa(e,t,r,i),s.status=1,ka(e,o,s),o===null?e.completedRootSegment=s:(Oa(o,s),o.parentFlushed&&e.partialBoundaries.push(o))}finally{t.replay=a,t.blockedSegment=null}}function pa(e,t,n,r){t.replay!==null&&typeof t.replay.slots==`number`?fa(e,t,t.replay.slots,n,r):(t.node=n,t.childIndex=r,n=t.componentStack,$i(t),ma(e,t),t.componentStack=n)}function ma(e,t){var n=t.node,r=t.childIndex;if(n!==null){if(typeof n==`object`){switch(n.$$typeof){case a:var s=n.type,c=n.key,l=n.props;n=l.ref;var u=n===void 0?null:n,f=Fr(s),m=c??(r===-1?0:r);if(c=[t.keyPath,f,m],t.replay!==null)a:{var h=t.replay;for(r=h.nodes,n=0;n<r.length;n++){var _=r[n];if(m===_[1]){if(_.length===4){if(f!==null&&f!==_[0])throw Error(i(490,_[0],f));var v=_[2];f=_[3],m=t.node,t.replay={nodes:v,slots:f,pendingTasks:1};try{if(da(e,t,c,s,l,u),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(i(488));t.replay.pendingTasks--}catch(i){if(typeof i==`object`&&i&&(i===Qr||typeof i.then==`function`))throw t.node===m?t.replay=h:r.splice(n,1),i;t.replay.pendingTasks--,l=ta(t.componentStack),c=e,e=t.blockedBoundary,s=i,l=na(c,s,l),Ca(c,e,v,f,s,l)}t.replay=h}else{if(s!==p)throw Error(i(490,`Suspense`,Fr(s)||`Unknown`));b:{h=void 0,s=_[5],u=_[2],f=_[3],m=_[4]===null?[]:_[4][2],_=_[4]===null?null:_[4][3];var y=t.keyPath,b=t.formatContext,x=t.row,S=t.replay,T=t.blockedBoundary,E=t.hoistableState,D=l.children,O=l.fallback,k=new Set;l=2>t.formatContext.insertionMode?Yi(e,t.row,k,U(),U()):Yi(e,t.row,k,null,null),l.parentFlushed=!0,l.rootSegmentID=s,t.blockedBoundary=l,t.hoistableState=l.contentState,t.keyPath=c,t.formatContext=Be(e.resumableState,b),t.row=null,t.replay={nodes:u,slots:f,pendingTasks:1};try{if(xa(e,t,D,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(i(488));if(t.replay.pendingTasks--,l.pendingTasks===0&&l.status===0){l.status=1,e.completedBoundaries.push(l);break b}}catch(n){l.status=4,v=ta(t.componentStack),h=na(e,n,v),l.errorDigest=h,t.replay.pendingTasks--,e.clientRenderedBoundaries.push(l)}finally{t.blockedBoundary=T,t.hoistableState=E,t.replay=S,t.keyPath=y,t.formatContext=b,t.row=x}v=Zi(e,null,{nodes:m,slots:_,pendingTasks:0},O,-1,T,l.fallbackState,k,[c[0],`Suspense Fallback`,c[2]],ze(e.resumableState,t.formatContext),t.context,t.treeContext,t.row,ea(t.componentStack)),$i(v),e.pingedTasks.push(v)}}r.splice(n,1);break a}}}else da(e,t,c,s,l,u);return;case o:throw Error(i(257));case g:if(v=n._init,n=v(n._payload),e.status===12)throw null;pa(e,t,n,r);return}if(w(n)){ha(e,t,n,r);return}if((v=C(n))&&(v=v.call(n))){if(n=v.next(),!n.done){l=[];do l.push(n.value),n=v.next();while(!n.done);ha(e,t,l,r)}return}if(typeof n.then==`function`)return t.thenableState=null,pa(e,t,ji(n),r);if(n.$$typeof===d)return pa(e,t,n._currentValue,r);throw r=Object.prototype.toString.call(n),Error(i(31,r===`[object Object]`?`object with keys {`+Object.keys(n).join(`, `)+`}`:r))}typeof n==`string`?(r=t.blockedSegment,r!==null&&(r.lastPushedText=He(r.chunks,n,e.renderState,r.lastPushedText))):(typeof n==`number`||typeof n==`bigint`)&&(r=t.blockedSegment,r!==null&&(r.lastPushedText=He(r.chunks,``+n,e.renderState,r.lastPushedText)))}}function ha(e,t,n,r){var a=t.keyPath;if(r!==-1&&(t.keyPath=[t.keyPath,`Fragment`,r],t.replay!==null)){for(var o=t.replay,s=o.nodes,c=0;c<s.length;c++){var l=s[c];if(l[1]===r){r=l[2],l=l[3],t.replay={nodes:r,slots:l,pendingTasks:1};try{if(ha(e,t,n,-1),t.replay.pendingTasks===1&&0<t.replay.nodes.length)throw Error(i(488));t.replay.pendingTasks--}catch(i){if(typeof i==`object`&&i&&(i===Qr||typeof i.then==`function`))throw i;t.replay.pendingTasks--,n=ta(t.componentStack);var u=t.blockedBoundary,d=i;n=na(e,d,n),Ca(e,u,r,l,d,n)}t.replay=o,s.splice(c,1);break}}t.keyPath=a;return}if(o=t.treeContext,s=n.length,t.replay!==null&&(c=t.replay.slots,typeof c==`object`&&c)){for(r=0;r<s;r++)l=n[r],t.treeContext=Kr(o,s,r),u=c[r],typeof u==`number`?(fa(e,t,u,l,r),delete c[r]):xa(e,t,l,r);t.treeContext=o,t.keyPath=a;return}for(c=0;c<s;c++)r=n[c],t.treeContext=Kr(o,s,c),xa(e,t,r,c);t.treeContext=o,t.keyPath=a}function ga(e,t,n){if(n.status=5,n.rootSegmentID=e.nextSegmentId++,e=n.trackedContentKeyPath,e===null)throw Error(i(486));var r=n.trackedFallbackNode,a=[],o=t.workingMap.get(e);return o===void 0?(n=[e[1],e[2],a,null,r,n.rootSegmentID],t.workingMap.set(e,n),qa(n,e[0],t),n):(o[4]=r,o[5]=n.rootSegmentID,o)}function _a(e,t,n,r){r.status=5;var a=n.keyPath,o=n.blockedBoundary;if(o===null)r.id=e.nextSegmentId++,t.rootSlots=r.id,e.completedRootSegment!==null&&(e.completedRootSegment.status=5);else{if(o!==null&&o.status===0){var s=ga(e,t,o);if(o.trackedContentKeyPath===a&&n.childIndex===-1){r.id===-1&&(r.id=r.parentFlushed?o.rootSegmentID:e.nextSegmentId++),s[3]=r.id;return}}if(r.id===-1&&(r.id=r.parentFlushed&&o!==null?o.rootSegmentID:e.nextSegmentId++),n.childIndex===-1)a===null?t.rootSlots=r.id:(n=t.workingMap.get(a),n===void 0?(n=[a[1],a[2],[],r.id],qa(n,a[0],t)):n[3]=r.id);else{if(a===null){if(e=t.rootSlots,e===null)e=t.rootSlots={};else if(typeof e==`number`)throw Error(i(491))}else if(o=t.workingMap,s=o.get(a),s===void 0)e={},s=[a[1],a[2],[],e],o.set(a,s),qa(s,a[0],t);else if(e=s[3],e===null)e=s[3]={};else if(typeof e==`number`)throw Error(i(491));e[n.childIndex]=r.id}}}function va(e,t){e=e.trackedPostpones,e!==null&&(t=t.trackedContentKeyPath,t!==null&&(t=e.workingMap.get(t),t!==void 0&&(t.length=4,t[2]=[],t[3]=null)))}function ya(e,t,n){return Zi(e,n,t.replay,t.node,t.childIndex,t.blockedBoundary,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function ba(e,t,n){var r=t.blockedSegment,i=Qi(e,r.chunks.length,null,t.formatContext,r.lastPushedText,!0);return r.children.push(i),r.lastPushedText=!1,Xi(e,n,t.node,t.childIndex,t.blockedBoundary,i,t.blockedPreamble,t.hoistableState,t.abortSet,t.keyPath,t.formatContext,t.context,t.treeContext,t.row,t.componentStack)}function xa(e,t,n,r){var i=t.formatContext,a=t.context,o=t.keyPath,s=t.treeContext,c=t.componentStack,l=t.blockedSegment;if(l===null){l=t.replay;try{return pa(e,t,n,r)}catch(u){if(Si(),n=u===Qr?ti():u,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){r=u===Qr?xi():null,e=ya(e,t,r).ping,n.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ur(a);return}if(n.message===`Maximum call stack size exceeded`){n=u===Qr?xi():null,n=ya(e,t,n),e.pingedTasks.push(n),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,t.replay=l,Ur(a);return}}}}else{var u=l.children.length,d=l.chunks.length;try{return pa(e,t,n,r)}catch(r){if(Si(),l.children.length=u,l.chunks.length=d,n=r===Qr?ti():r,e.status!==12&&typeof n==`object`&&n){if(typeof n.then==`function`){l=n,n=r===Qr?xi():null,e=ba(e,t,n).ping,l.then(e,e),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ur(a);return}if(n.message===`Maximum call stack size exceeded`){l=r===Qr?xi():null,l=ba(e,t,l),e.pingedTasks.push(l),t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,t.componentStack=c,Ur(a);return}}}}throw t.formatContext=i,t.context=a,t.keyPath=o,t.treeContext=s,Ur(a),n}function Sa(e){var t=e.blockedBoundary,n=e.blockedSegment;n!==null&&(n.status=3,Aa(this,t,e.row,n))}function Ca(e,t,n,r,a,o){for(var s=0;s<n.length;s++){var c=n[s];if(c.length===4)Ca(e,t,c[2],c[3],a,o);else{c=c[5];var l=e,u=o,d=Yi(l,null,new Set,null,null);d.parentFlushed=!0,d.rootSegmentID=c,d.status=4,d.errorDigest=u,d.parentFlushed&&l.clientRenderedBoundaries.push(d)}}if(n.length=0,r!==null){if(t===null)throw Error(i(487));if(t.status!==4&&(t.status=4,t.errorDigest=o,t.parentFlushed&&e.clientRenderedBoundaries.push(t)),typeof r==`object`)for(var f in r)delete r[f]}}function wa(e,t,n){var r=e.blockedBoundary,i=e.blockedSegment;if(i!==null){if(i.status===6)return;i.status=3}var a=ta(e.componentStack);if(r===null){if(t.status!==13&&t.status!==14){if(r=e.replay,r===null){t.trackedPostpones!==null&&i!==null?(r=t.trackedPostpones,na(t,n,a),_a(t,r,e,i),Aa(t,null,e.row,i)):(na(t,n,a),ra(t,n));return}r.pendingTasks--,r.pendingTasks===0&&0<r.nodes.length&&(i=na(t,n,a),Ca(t,null,r.nodes,r.slots,n,i)),t.pendingRootTasks--,t.pendingRootTasks===0&&Ea(t)}}else{var o=t.trackedPostpones;if(r.status!==4){if(o!==null&&i!==null)return na(t,n,a),_a(t,o,e,i),r.fallbackAbortableTasks.forEach(function(e){return wa(e,t,n)}),r.fallbackAbortableTasks.clear(),Aa(t,r,e.row,i);r.status=4,i=na(t,n,a),r.status=4,r.errorDigest=i,va(t,r),r.parentFlushed&&t.clientRenderedBoundaries.push(r)}r.pendingTasks--,i=r.row,i!==null&&--i.pendingTasks===0&&ia(t,i),r.fallbackAbortableTasks.forEach(function(e){return wa(e,t,n)}),r.fallbackAbortableTasks.clear()}e=e.row,e!==null&&--e.pendingTasks===0&&ia(t,e),t.allPendingTasks--,t.allPendingTasks===0&&Da(t)}function Ta(e,t){try{var n=e.renderState,r=n.onHeaders;if(r){var i=n.headers;if(i){n.headers=null;var a=i.preconnects;if(i.fontPreloads&&(a&&(a+=`, `),a+=i.fontPreloads),i.highImagePreloads&&(a&&(a+=`, `),a+=i.highImagePreloads),!t){var o=n.styles.values(),s=o.next();b:for(;0<i.remainingCapacity&&!s.done;s=o.next())for(var c=s.value.sheets.values(),l=c.next();0<i.remainingCapacity&&!l.done;l=c.next()){var u=l.value,d=u.props,f=d.href,p=u.props,m=wr(p.href,`style`,{crossOrigin:p.crossOrigin,integrity:p.integrity,nonce:p.nonce,type:p.type,fetchPriority:p.fetchPriority,referrerPolicy:p.referrerPolicy,media:p.media});if(0<=(i.remainingCapacity-=m.length+2))n.resets.style[f]=ye,a&&(a+=`, `),a+=m,n.resets.style[f]=typeof d.crossOrigin==`string`||typeof d.integrity==`string`?[d.crossOrigin,d.integrity]:ye;else break b}}r(a?{Link:a}:{})}}}catch(t){na(e,t,{})}}function Ea(e){e.trackedPostpones===null&&Ta(e,!0),e.trackedPostpones===null&&Pa(e),e.onShellError=Zr,e=e.onShellReady,e()}function Da(e){Ta(e,e.trackedPostpones===null?!0:e.completedRootSegment===null||e.completedRootSegment.status!==5),Pa(e),e=e.onAllReady,e()}function Oa(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null&&t.children[0].id===-1){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,n.status!==1&&n.status!==3&&n.status!==4||Oa(e,n)}else e.completedSegments.push(t)}function ka(e,t,n){if(z!==null){n=n.chunks;for(var r=0,i=0;i<n.length;i++)r+=n[i].byteLength;t===null?e.byteSize+=r:t.byteSize+=r}}function Aa(e,t,n,r){if(n!==null&&(--n.pendingTasks===0?ia(e,n):n.together&&oa(e,n)),e.allPendingTasks--,t===null){if(r!==null&&r.parentFlushed){if(e.completedRootSegment!==null)throw Error(i(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&Ea(e)}else if(t.pendingTasks--,t.status!==4)if(t.pendingTasks===0){if(t.status===0&&(t.status=1),r!==null&&r.parentFlushed&&(r.status===1||r.status===3)&&Oa(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.status===1)n=t.row,n!==null&&jr(n.hoistables,t.contentState),Hi(e,t)||(t.fallbackAbortableTasks.forEach(Sa,e),t.fallbackAbortableTasks.clear(),n!==null&&--n.pendingTasks===0&&ia(e,n)),e.pendingRootTasks===0&&e.trackedPostpones===null&&t.contentPreamble!==null&&Pa(e);else if(t.status===5&&(t=t.row,t!==null)){if(e.trackedPostpones!==null){n=e.trackedPostpones;var a=t.next;if(a!==null&&(r=a.boundaries,r!==null))for(a.boundaries=null,a=0;a<r.length;a++){var o=r[a];ga(e,n,o),Aa(e,o,null,null)}}--t.pendingTasks===0&&ia(e,t)}}else r===null||!r.parentFlushed||r.status!==1&&r.status!==3||(Oa(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)),t=t.row,t!==null&&t.together&&oa(e,t);e.allPendingTasks===0&&Da(e)}function ja(e){if(e.status!==14&&e.status!==13){var t=Lr,n=he.H;he.H=Ni;var r=he.A;he.A=Fi;var a=qi;qi=e;var o=Pi;Pi=e.resumableState;try{var s=e.pingedTasks,c;for(c=0;c<s.length;c++){var l=s[c],u=e,d=l.blockedSegment;if(d===null){var f=u;if(l.replay.pendingTasks!==0){Ur(l.context);try{if(typeof l.replay.slots==`number`?fa(f,l,l.replay.slots,l.node,l.childIndex):ma(f,l),l.replay.pendingTasks===1&&0<l.replay.nodes.length)throw Error(i(488));l.replay.pendingTasks--,l.abortSet.delete(l),Aa(f,l.blockedBoundary,l.row,null)}catch(e){Si();var p=e===Qr?ti():e;if(typeof p==`object`&&p&&typeof p.then==`function`){var m=l.ping;p.then(m,m),l.thenableState=e===Qr?xi():null}else{l.replay.pendingTasks--,l.abortSet.delete(l);var h=ta(l.componentStack);u=void 0;var g=f,_=l.blockedBoundary,v=f.status===12?f.fatalError:p,y=l.replay.nodes,b=l.replay.slots;u=na(g,v,h),Ca(g,_,y,b,v,u),f.pendingRootTasks--,f.pendingRootTasks===0&&Ea(f),f.allPendingTasks--,f.allPendingTasks===0&&Da(f)}}}}else if(f=void 0,g=d,g.status===0){g.status=6,Ur(l.context);var x=g.children.length,S=g.chunks.length;try{ma(u,l),g.lastPushedText&&g.textEmbedded&&g.chunks.push(Ve),l.abortSet.delete(l),g.status=1,ka(u,l.blockedBoundary,g),Aa(u,l.blockedBoundary,l.row,g)}catch(e){Si(),g.children.length=x,g.chunks.length=S;var C=e===Qr?ti():u.status===12?u.fatalError:e;if(u.status===12&&u.trackedPostpones!==null){var w=u.trackedPostpones,T=ta(l.componentStack);l.abortSet.delete(l),na(u,C,T),_a(u,w,l,g),Aa(u,l.blockedBoundary,l.row,g)}else if(typeof C==`object`&&C&&typeof C.then==`function`){g.status=0,l.thenableState=e===Qr?xi():null;var E=l.ping;C.then(E,E)}else{var D=ta(l.componentStack);l.abortSet.delete(l),g.status=4;var O=l.blockedBoundary,k=l.row;if(k!==null&&--k.pendingTasks===0&&ia(u,k),u.allPendingTasks--,f=na(u,C,D),O===null)ra(u,C);else if(O.pendingTasks--,O.status!==4){O.status=4,O.errorDigest=f,va(u,O);var A=O.row;A!==null&&--A.pendingTasks===0&&ia(u,A),O.parentFlushed&&u.clientRenderedBoundaries.push(O),u.pendingRootTasks===0&&u.trackedPostpones===null&&O.contentPreamble!==null&&Pa(u)}u.allPendingTasks===0&&Da(u)}}}}s.splice(0,c),e.destination!==null&&Ha(e,e.destination)}catch(t){na(e,t,{}),ra(e,t)}finally{Pi=o,he.H=n,he.A=r,n===Ni&&Ur(t),qi=a}}}function Ma(e,t,n){t.preambleChildren.length&&n.push(t.preambleChildren);for(var r=!1,i=0;i<t.children.length;i++)r=Na(e,t.children[i],n)||r;return r}function Na(e,t,n){var r=t.boundary;if(r===null)return Ma(e,t,n);var a=r.contentPreamble,o=r.fallbackPreamble;if(a===null||o===null)return!1;switch(r.status){case 1:if(Nt(e.renderState,a),e.byteSize+=r.byteSize,t=r.completedSegments[0],!t)throw Error(i(391));return Ma(e,t,n);case 5:if(e.trackedPostpones!==null)return!0;case 4:if(t.status===1)return Nt(e.renderState,o),Ma(e,t,n);default:return!0}}function Pa(e){if(e.completedRootSegment&&e.completedPreambleSegments===null){var t=[],n=e.byteSize,r=Na(e,e.completedRootSegment,t),i=e.renderState.preamble;!1===r||i.headChunks&&i.bodyChunks?e.completedPreambleSegments=t:e.byteSize=n}}function Fa(e,t,n,r){switch(n.parentFlushed=!0,n.status){case 0:n.id=e.nextSegmentId++;case 5:return r=n.id,n.lastPushedText=!1,n.textEmbedded=!1,e=e.renderState,P(t,It),P(t,e.placeholderPrefix),e=L(r.toString(16)),P(t,e),F(t,Lt);case 1:n.status=2;var a=!0,o=n.chunks,s=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];s<a.index;s++)P(t,o[s]);a=La(e,t,a,r)}for(;s<o.length-1;s++)P(t,o[s]);return s<o.length&&(a=F(t,o[s])),a;case 3:return!0;default:throw Error(i(390))}}var Ia=0;function La(e,t,n,r){var a=n.boundary;if(a===null)return Fa(e,t,n,r);if(a.parentFlushed=!0,a.status===4){var o=a.row;o!==null&&--o.pendingTasks===0&&ia(e,o),a=a.errorDigest,F(t,Ut),P(t,Gt),a&&(P(t,qt),P(t,L(ue(a))),P(t,Kt)),F(t,Jt),Fa(e,t,n,r)}else if(a.status!==1)a.status===0&&(a.rootSegmentID=e.nextSegmentId++),0<a.completedSegments.length&&e.partialBoundaries.push(a),Yt(t,e.renderState,a.rootSegmentID),r&&jr(r,a.fallbackState),Fa(e,t,n,r);else if(!Va&&Hi(e,a)&&(Ia+a.byteSize>e.progressiveChunkSize||Mr(a.contentState)))a.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(a),Yt(t,e.renderState,a.rootSegmentID),Fa(e,t,n,r);else{if(Ia+=a.byteSize,r&&jr(r,a.contentState),n=a.row,n!==null&&Hi(e,a)&&--n.pendingTasks===0&&ia(e,n),F(t,Bt),n=a.completedSegments,n.length!==1)throw Error(i(391));La(e,t,n[0],r)}return F(t,Wt)}function Ra(e,t,n,r){return vn(t,e.renderState,n.parentFormatContext,n.id),La(e,t,n,r),yn(t,n.parentFormatContext)}function za(e,t,n){Ia=n.byteSize;for(var r=n.completedSegments,i=0;i<r.length;i++)Ba(e,t,n,r[i]);r.length=0,r=n.row,r!==null&&Hi(e,n)&&--r.pendingTasks===0&&ia(e,r),Xn(t,n.contentState,e.renderState),r=e.resumableState,e=e.renderState,i=n.rootSegmentID,n=n.contentState;var a=e.stylesToHoist;return e.stylesToHoist=!1,P(t,e.startInlineScript),P(t,ot),a?(!(r.instructions&4)&&(r.instructions|=4,P(t,Mn)),!(r.instructions&2)&&(r.instructions|=2,P(t,wn)),r.instructions&8?P(t,Dn):(r.instructions|=8,P(t,En))):(!(r.instructions&2)&&(r.instructions|=2,P(t,wn)),P(t,Tn)),r=L(i.toString(16)),P(t,e.boundaryPrefix),P(t,r),P(t,On),P(t,e.segmentPrefix),P(t,r),a?(P(t,kn),mr(t,n)):P(t,An),n=F(t,jn),Pt(t,e)&&n}function Ba(e,t,n,r){if(r.status===2)return!0;var a=n.contentState,o=r.id;if(o===-1){if((r.id=n.rootSegmentID)===-1)throw Error(i(392));return Ra(e,t,r,a)}return o===n.rootSegmentID?Ra(e,t,r,a):(Ra(e,t,r,a),n=e.resumableState,e=e.renderState,P(t,e.startInlineScript),P(t,ot),n.instructions&1?P(t,xn):(n.instructions|=1,P(t,bn)),P(t,e.segmentPrefix),o=L(o.toString(16)),P(t,o),P(t,Sn),P(t,e.placeholderPrefix),P(t,o),t=F(t,Cn),t)}var Va=!1;function Ha(e,t){M=new Uint8Array(2048),N=0;try{if(!(0<e.pendingRootTasks)){var n,r=e.completedRootSegment;if(r!==null){if(r.status===5)return;var i=e.completedPreambleSegments;if(i===null)return;Ia=e.byteSize;var a=e.resumableState,o=e.renderState,s=o.preamble,c=s.htmlChunks,l=s.headChunks,u;if(c){for(u=0;u<c.length;u++)P(t,c[u]);if(l)for(u=0;u<l.length;u++)P(t,l[u]);else P(t,G(`head`)),P(t,ot)}else if(l)for(u=0;u<l.length;u++)P(t,l[u]);var d=o.charsetChunks;for(u=0;u<d.length;u++)P(t,d[u]);d.length=0,o.preconnects.forEach(Zn,t),o.preconnects.clear();var f=o.viewportChunks;for(u=0;u<f.length;u++)P(t,f[u]);f.length=0,o.fontPreloads.forEach(Zn,t),o.fontPreloads.clear(),o.highImagePreloads.forEach(Zn,t),o.highImagePreloads.clear(),be=o,o.styles.forEach(ar,t),be=null;var p=o.importMapChunks;for(u=0;u<p.length;u++)P(t,p[u]);p.length=0,o.bootstrapScripts.forEach(Zn,t),o.scripts.forEach(Zn,t),o.scripts.clear(),o.bulkPreloads.forEach(Zn,t),o.bulkPreloads.clear(),c||l||(a.instructions|=32);var m=o.hoistableChunks;for(u=0;u<m.length;u++)P(t,m[u]);for(a=m.length=0;a<i.length;a++){var h=i[a];for(o=0;o<h.length;o++)La(e,t,h[o],null)}var g=e.renderState.preamble,_=g.headChunks;(g.htmlChunks||_)&&P(t,Mt(`head`));var v=g.bodyChunks;if(v)for(i=0;i<v.length;i++)P(t,v[i]);La(e,t,r,null),e.completedRootSegment=null;var y=e.renderState;if(e.allPendingTasks!==0||e.clientRenderedBoundaries.length!==0||e.completedBoundaries.length!==0||e.trackedPostpones!==null&&(e.trackedPostpones.rootNodes.length!==0||e.trackedPostpones.rootSlots!==null)){var b=e.resumableState;if(!(b.instructions&64)){if(b.instructions|=64,P(t,y.startInlineScript),!(b.instructions&32)){b.instructions|=32;var x=`_`+b.idPrefix+`R_`;P(t,cr),P(t,L(ue(x))),P(t,Ye)}P(t,ot),P(t,Ft),F(t,Se)}}Pt(t,y)}var S=e.renderState;r=0;var C=S.viewportChunks;for(r=0;r<C.length;r++)P(t,C[r]);C.length=0,S.preconnects.forEach(Zn,t),S.preconnects.clear(),S.fontPreloads.forEach(Zn,t),S.fontPreloads.clear(),S.highImagePreloads.forEach(Zn,t),S.highImagePreloads.clear(),S.styles.forEach(sr,t),S.scripts.forEach(Zn,t),S.scripts.clear(),S.bulkPreloads.forEach(Zn,t),S.bulkPreloads.clear();var w=S.hoistableChunks;for(r=0;r<w.length;r++)P(t,w[r]);w.length=0;var T=e.clientRenderedBoundaries;for(n=0;n<T.length;n++){var E=T[n];S=t;var D=e.resumableState,O=e.renderState,k=E.rootSegmentID,A=E.errorDigest;P(S,O.startInlineScript),P(S,ot),D.instructions&4?P(S,Pn):(D.instructions|=4,P(S,Nn)),P(S,O.boundaryPrefix),P(S,L(k.toString(16))),P(S,Fn),A&&(P(S,In),P(S,L(zn(A||``))));var j=F(S,Ln);if(!j){e.destination=null,n++,T.splice(0,n);return}}T.splice(0,n);var ee=e.completedBoundaries;for(n=0;n<ee.length;n++)if(!za(e,t,ee[n])){e.destination=null,n++,ee.splice(0,n);return}ee.splice(0,n),I(t),M=new Uint8Array(2048),N=0,Va=!0;var R=e.partialBoundaries;for(n=0;n<R.length;n++){var z=R[n];a:{T=e,E=t,Ia=z.byteSize;var te=z.completedSegments;for(j=0;j<te.length;j++)if(!Ba(T,E,z,te[j])){j++,te.splice(0,j);var ne=!1;break a}te.splice(0,j);var re=z.row;re!==null&&re.together&&z.pendingTasks===1&&(re.pendingTasks===1?aa(T,re,re.hoistables):re.pendingTasks--),ne=Xn(E,z.contentState,T.renderState)}if(!ne){e.destination=null,n++,R.splice(0,n);return}}R.splice(0,n),Va=!1;var ie=e.completedBoundaries;for(n=0;n<ie.length;n++)if(!za(e,t,ie[n])){e.destination=null,n++,ie.splice(0,n);return}ie.splice(0,n)}}finally{Va=!1,e.allPendingTasks===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0?(e.flushScheduled=!1,n=e.resumableState,n.hasBody&&P(t,Mt(`body`)),n.hasHtml&&P(t,Mt(`html`)),I(t),e.status=14,t.close(),e.destination=null):I(t)}}function Ua(e){e.flushScheduled=e.destination!==null,j(function(){return ja(e)}),O(function(){e.status===10&&(e.status=11),e.trackedPostpones===null&&Ta(e,e.pendingRootTasks===0)})}function Wa(e){!1===e.flushScheduled&&e.pingedTasks.length===0&&e.destination!==null&&(e.flushScheduled=!0,O(function(){var t=e.destination;t?Ha(e,t):e.flushScheduled=!1}))}function Ga(e,t){if(e.status===13)e.status=14,te(t,e.fatalError);else if(e.status!==14&&e.destination===null){e.destination=t;try{Ha(e,t)}catch(t){na(e,t,{}),ra(e,t)}}}function Ka(e,t){(e.status===11||e.status===10)&&(e.status=12);try{var n=e.abortableTasks;if(0<n.size){var r=t===void 0?Error(i(432)):typeof t==`object`&&t&&typeof t.then==`function`?Error(i(530)):t;e.fatalError=r,n.forEach(function(t){return wa(t,e,r)}),n.clear()}e.destination!==null&&Ha(e,e.destination)}catch(t){na(e,t,{}),ra(e,t)}}function qa(e,t,n){if(t===null)n.rootNodes.push(e);else{var r=n.workingMap,i=r.get(t);i===void 0&&(i=[t[1],t[2],[],null],r.set(t,i),qa(i,t[0],n)),i[2].push(e)}}function Ja(e){var t=e.trackedPostpones;if(t===null||t.rootNodes.length===0&&t.rootSlots===null)return e.trackedPostpones=null;if(e.completedRootSegment===null||e.completedRootSegment.status!==5&&e.completedPreambleSegments!==null){var n=e.nextSegmentId,r=t.rootSlots,i=e.resumableState;i.bootstrapScriptContent=void 0,i.bootstrapScripts=void 0,i.bootstrapModules=void 0}else{n=0,r=-1,i=e.resumableState;var a=e.renderState;i.nextFormID=0,i.hasBody=!1,i.hasHtml=!1,i.unknownResources={font:a.resets.font},i.dnsResources=a.resets.dns,i.connectResources=a.resets.connect,i.imageResources=a.resets.image,i.styleResources=a.resets.style,i.scriptResources={},i.moduleUnknownResources={},i.moduleScriptResources={},i.instructions=0}return{nextSegmentId:n,rootFormatContext:e.rootFormatContext,progressiveChunkSize:e.progressiveChunkSize,resumableState:e.resumableState,replayNodes:t.rootNodes,replaySlots:r}}function Ya(){var e=n.version;if(e!==`19.2.7`)throw Error(i(527,e,`19.2.7`))}Ya(),Ya(),e.prerender=function(e,t){return new Promise(function(n,r){var i=t?t.onHeaders:void 0,a;i&&(a=function(e){i(new Headers(e))});var o=H(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),s=Ki(e,o,Pe(o,void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,a,t?t.maxHeadersLength:void 0),Ie(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Ga(s,e)},cancel:function(e){s.destination=null,Ka(s,e)}},{highWaterMark:0});e={postponed:Ja(s),prelude:e},n(e)},void 0,void 0,r,t?t.onPostpone:void 0);if(t&&t.signal){var c=t.signal;if(c.aborted)Ka(s,c.reason);else{var l=function(){Ka(s,c.reason),c.removeEventListener(`abort`,l)};c.addEventListener(`abort`,l)}}Ua(s)})},e.renderToReadableStream=function(e,t){return new Promise(function(n,r){var i,a,o=new Promise(function(e,t){a=e,i=t}),s=t?t.onHeaders:void 0,c;s&&(c=function(e){s(new Headers(e))});var l=H(t?t.identifierPrefix:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),u=Gi(e,l,Pe(l,t?t.nonce:void 0,t?t.unstable_externalRuntimeSrc:void 0,t?t.importMap:void 0,c,t?t.maxHeadersLength:void 0),Ie(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Ga(u,e)},cancel:function(e){u.destination=null,Ka(u,e)}},{highWaterMark:0});e.allReady=o,n(e)},function(e){o.catch(function(){}),r(e)},i,t?t.onPostpone:void 0,t?t.formState:void 0);if(t&&t.signal){var d=t.signal;if(d.aborted)Ka(u,d.reason);else{var f=function(){Ka(u,d.reason),d.removeEventListener(`abort`,f)};d.addEventListener(`abort`,f)}}Ua(u)})},e.resume=function(e,t,n){return new Promise(function(r,i){var a,o,s=new Promise(function(e,t){o=e,a=t}),c=J(e,t,Pe(t.resumableState,n?n.nonce:void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,o,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Ga(c,e)},cancel:function(e){c.destination=null,Ka(c,e)}},{highWaterMark:0});e.allReady=s,r(e)},function(e){s.catch(function(){}),i(e)},a,n?n.onPostpone:void 0);if(n&&n.signal){var l=n.signal;if(l.aborted)Ka(c,l.reason);else{var u=function(){Ka(c,l.reason),l.removeEventListener(`abort`,u)};l.addEventListener(`abort`,u)}}Ua(c)})},e.resumeAndPrerender=function(e,t,n){return new Promise(function(r,i){var a=Y(e,t,Pe(t.resumableState,void 0,void 0,void 0,void 0,void 0),n?n.onError:void 0,function(){var e=new ReadableStream({type:`bytes`,pull:function(e){Ga(a,e)},cancel:function(e){a.destination=null,Ka(a,e)}},{highWaterMark:0});e={postponed:Ja(a),prelude:e},r(e)},void 0,void 0,i,n?n.onPostpone:void 0);if(n&&n.signal){var o=n.signal;if(o.aborted)Ka(a,o.reason);else{var s=function(){Ka(a,o.reason),o.removeEventListener(`abort`,s)};o.addEventListener(`abort`,s)}}Ua(a)})}
2324,e.version=`19.2.7`})),vg=i((e=>{var t=gg(),n=_g();e.version=t.version,e.renderToString=t.renderToString,e.renderToStaticMarkup=t.renderToStaticMarkup,e.renderToReadableStream=n.renderToReadableStream,e.resume=n.resume})),yg=r(vg()),bg=({to:e,property:t,...n})=>l(ep,{to:e,component:S,...n,children:t?.label??t?.name}),xg=({type:e,property:t={id:null,name:null,label:null,organizationId:null}})=>{switch(e){case`date`:return l(`span`,{children:Ve(t)??``});case`time`:return l(`span`,{children:ke(t)??``});case`profileLink`:return l(bg,{to:`/profile/?tab=edit`,property:t});case`employeeLink`:return l(bg,{to:`organizations/${t?.organizationId}/organization-settings/employees/${t?.id}`,property:t});case`employeesLink`:return l(bg,{to:`organizations/${t?.organizationId}/organization-settings/employees`,property:t});case`organizationProfile`:return l(bg,{to:`/organizations/${t?.id}/organization-settings/profile`,property:t});case`organizationLink`:return l(bg,{to:`/organizations/${t?.id}`,property:t});case`organizationsLink`:return l(bg,{to:`/organizations`,property:t});case`organizationDashboard`:case`dashboardLink`:return l(bg,{to:`/organizations/${t?.id}`,property:t});case`guide`:return l(bg,{to:`/guide`,target:`_blank`,rel:`noopener noreferrer`,property:t});case`correspondence`:return l(bg,{to:`/organizations/${t?.id}/correspondence/active?tab=correspondence-in-progress`,property:t});case`indicatorLink`:return l(bg,{to:`/organizations/${t?.organizationId}/correspondence/correspondence-management/secretariats/${t?.secretariatId}/${t?.id}`,property:t});case`meetingLink`:return l(bg,{to:`/organizations/${t?.organizationId}/meetings?meetingId=${t?.id}`,property:t});case`meetingLocationLink`:return l(bg,{to:`/organizations/${t?.organizationId}/meetings/meetings-management`,property:t});case`taskLink`:return l(bg,{to:`/organizations/${t?.organizationId}?taskId=${t?.id}${t?.commentPreview?`&commentPreview=true`:``}`,property:t});case`projectLink`:return l(bg,{to:`/organizations/${t?.organizationId}/projects?projectId=${t?.id}`,property:t});case`conversationLink`:return l(bg,{to:`/organizations/${t?.organizationId}/chat?cId=${t?.id}`,property:t});default:return``}};xg.propTypes={type:Z.default.string.isRequired,property:Z.default.shape({id:Z.default.string,name:Z.default.string,label:Z.default.string,organizationId:Z.default.string})};var Sg=e=>{let t=Bi(),{template:n,properties:r}=e,i=/{{(.*?)}}/g,a=/___(.*?)___/g,o=(e,t,n=[])=>{let r=e.exec(t);return r?.length&&n.push(r[1])&&o(e,t,n),n},s=o(i,n.title),c=o(a,n.title),u=o(i,n.description),d=o(a,n.description),f=e=>{try{return e.split(`.`).reduce((e,t)=>t===`tag`?e[t]?de.t(`forwardLetter.labels.${e[t]}`):``:e[t],r)}catch{return``}},p=e=>{let[n,i]=e.split(`#`),a=r[i];return yg.renderToStaticMarkup(l(_,{location:t.location,navigator:t,children:l(xg,{type:n,property:a})}))},m=s.reduce((e,t)=>e.replace(`{{${t}}}`,`"${f(t)}"`),n.title),h=u.reduce((e,t)=>e.replace(`{{${t}}}`,`"${f(t)}"`),n.description);return m=c.reduce((e,t)=>e.replace(`___${t}___`,p(t)),m),h=d.reduce((e,t)=>e.replace(`___${t}___`,p(t)),h),{title:m,description:h}},Cg=(e,t)=>{let{title:n}=Sg(e[0]),r=document.createElement(`div`);r.innerHTML=n;let i=r.textContent||r.innerText||``;`serviceWorker`in navigator&&`Notification`in window&&(navigator.serviceWorker.controller?navigator.serviceWorker.register(`/service-worker.js`).then(e=>{wg(e,i,t)}):navigator.serviceWorker.getRegistration().then(e=>{wg(e,i,t)}))},wg=(e,t,n)=>{Notification.permission===`granted`?e?.showNotification(t).then(()=>{e?.getNotifications().then(()=>Tg(n))}):Notification.permission!==`denied`&&Notification.requestPermission().then(r=>{r===`granted`&&e?.showNotification(t).then(()=>Tg(n))})},Tg=e=>{e()}
2324,Eg=K((0,X.jsx)(`path`,{d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`}),`Done`),Dg=K((0,X.jsx)(`path`,{d:`M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z`}),`KeyboardArrowDown`),Og=K((0,X.jsx)(`path`,{d:`M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z`}),`KeyboardArrowUp`),kg=K((0,X.jsx)(`path`,{d:`M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z`}),`Notifications`),Ag=B()(e=>({notificationCounter:{fontSize:`12px`,background:`#1f67d3`,color:`#fff`,width:`fit-content`,padding:e.spacing(.5,1.5),borderRadius:e.spacing(.5,.5,0)},card:{minWidth:`450px`,maxWidth:`450px`,padding:e.spacing(0,1.5),boxShadow:`0 1px 10px 0 rgb(0 0 0 / 10%), 0 2px 15px 0 rgb(0 0 0 / 5%)`},typography:{fontWeight:`bold`},actionRoot:{padding:e.spacing(1,0,1),display:`flex`,alignItems:`center`,justifyContent:`space-between`},title:{display:`flex`,alignItems:`center`,"& p":{fontSize:`14px`},"& svg":{color:`#1f67d3`,marginLeft:e.spacing(.5)}},toastDescription:{marginBottom:e.spacing(1.25)},description:{fontSize:`14px`,"& p":{lineHeight:`25px !important`,width:`100%`,"& a":{color:e.palette.text.link,fontWeight:`bold`}}},wrapDescription:{display:`-webkit-box`,WebkitLineClamp:2,WebkitBoxOrient:`vertical`,overflow:`hidden`},icons:{display:`flex`,alignItems:`center`,zIndex:15e3,"& button:nth-child(1)":{zIndex:15e3,color:`#f29423`,padding:e.spacing(.5),"& svg":{borderRadius:50,border:`2px solid #f29423`}},"& button:nth-child(2)":{zIndex:15e3,color:`#3fc063`,padding:e.spacing(.5),"& svg":{borderRadius:50,border:`2px solid #3fc063`}}},expand:{padding:`8px 8px`,transform:`rotate(0deg)`,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shortest})},expandOpen:{transform:`rotate(180deg)`},collapse:{padding:16},button:{float:`left`}})),jg=e=>{let{classes:t,cx:n}=Ag(),[r,i]=(0,J.useState)(!1),[a,o]=(0,J.useState)(!1),[s,c]=(0,J.useState)({title:``,description:``}),{t:u}=Ye(),{data:p,newNotifsNum:m,readNotification:h,toastProps:g}=e,_=(0,J.useCallback)(()=>{i(e=>!e)},[]);return(0,J.useEffect)(()=>{p?.template&&c(Sg(p))},[p]),(0,J.useLayoutEffect)(()=>{o(document.getElementById(`toast-description`)?.clientHeight>50)},[document.getElementById(`toast-description`)]),d(f,{children:[m?d(St,{variant:`subtitle2`,className:t.notificationCounter,children:[`+ `,m,` اعلان جدید`]}):``,d(Df,{className:t.card,id:`toast-notification`,onClick:e=>e.stopPropagation(),children:[d(jf,{classes:{root:t.actionRoot},children:[d(`div`,{className:t.title,children:[l(kg,{}),s.title!==``&&l(St,{variant:`subtitle2`,className:t.typography,dangerouslySetInnerHTML:{__html:s?.title}})]}),d(`div`,{className:t.icons,children:[l(li,{title:u(`tooltip.notification.close`),children:l(Gn,{id:`close-notification`,onClick:e=>g?.closeToast(),children:l(ci,{})})}),l(li,{title:u(`tooltip.notification.read`),children:l(Gn,{id:`read-notification`,onClick:()=>{try{let e=p&&p?.id,t={path:`${e}/read`};e&&h&&h(t)}catch{}g?.closeToast()},children:l(Eg,{})})})]})]}),l(`div`,{id:`toast-description`,className:t.toastDescription,children:s.description!==``&&l(St,{variant:`subtitle2`,className:n(t.description,a&&!r?t.wrapDescription:``),dangerouslySetInnerHTML:{__html:s?.description}})}),a&&l(`div`,{className:t.button,children:r?l(nr,{onClick:_,endIcon:l(Og,{}),children:u(`common.labels.less`)}):l(nr,{onClick:_,endIcon:l(Dg,{}),children:u(`common.labels.more`)})})]})]})},Mg=Ze(e=>{let{notification:t}=e;return{notification:t}},{newNotificationsAsync:ig,shiftOldestNotification:lg,readNotificationAsync:ag,getUnReadNotificationsCountAsync:rg,getNewNotifications:fg})(({newNotificationsAsync:e,shiftOldestNotification:t,notification:n,readNotificationAsync:r,getUnReadNotificationsCountAsync:i,getNewNotifications:a})=>{let o=(0,J.useRef)({}),s=(0,J.useRef)(null),c=(0,J.useRef)(null),u=e=>e.reduce((e,t)=>{let n={...e};return n[t.id]||(n[t.id]=!1),n},o.current),d=Dt(e=>e.breakpoints.down(`sm`)),{signedInUser:p}=xc(),{auth:m}=Zh(),{awSocket:h,resetWorker:g}=hg(),_=(0,J.useCallback)(()=>{let t=async({data:t})=>{if(t.socketStatus===`connected`&&c.current&&(clearInterval(c.current),c.current=null),t.isIntervalEnabled){if((await e({path:`?userId=${p?.id}`}))?.payload?.status===401){setTimeout(()=>{g()},3e3);return}c.current&&clearInterval(c.current),c.current=setInterval(()=>{e({path:`?userId=${p?.id}`})},3e4)}else t?.data?.newNotifications?.length&&a(t)};return h.addEventListener(`message`,t),()=>{c.current&&=(clearInterval(c.current),null),h.removeEventListener(`message`,t)}},[h,p?.id,m,c.current]);(0,J.useEffect)(()=>
2324{if(!h||!p?.id||!m)return;let e=_();return()=>e()},[h,p?.id,m]),(0,J.useEffect)(()=>{m&&i({path:`${p?.id}`,queryObject:{limit:10,offset:0,unread:!0}})},[p?.id,m]);let v=()=>{if(n.newNotifications?.data?.length){if(!document.hidden){let e=u(n.newNotifications?.data),i=n.newNotifications.data[0];e[i?.id]?Wh.update(s.current,{render:e=>l(jg,{newNotifsNum:n.newNotifications.count-1,...e})}):s.current=Wh(l(jg,{readNotification:r,newNotifsNum:n.newNotifications.count-1}),{data:i,onClose:()=>t()}),o.current[i.id]=!0}(d||document.hidden)&&Cg(n.newNotifications.data,t)}};return(0,J.useEffect)(()=>{v()},[n.newNotifications.data]),l(f,{})}),Ng=(0,J.createContext)({changeLog:{openChangeLog:!1,setOpenChangeLog:e=>{}},getStarted:{openGetStarted:!1,setOpenGetStarted:e=>{}},goftino:{open:()=>{},close:()=>{}},changeLogMostBeOpen:!1,iAmHereGetStartedPopover:{open:!1,closePopover:()=>{}}}),Pg=()=>(0,J.useContext)(Ng),Fg=B()(e=>({titleRoot:{margin:0,padding:e.spacing(2)+4,"& p":{textAlign:`center`,fontSize:`16px`,color:e.palette.text.dark,fontWeight:500}},closeButton:{position:`absolute`,right:e.spacing(1),top:4,color:e.palette.text.gray},dialogContentRoot:{position:`relative`}})),Ig=e=>{let{title:t,open:n,handleClose:r,maxWidth:i=`sm`,fullWidth:a=!0,fullScreen:o=!1,isTitleShow:s=!0,children:c,dialogClasses:u,contentDialogClasses:f=``,id:p}=e,{classes:m,cx:h}=Fg();return d(Mr,{fullScreen:o,open:n,onClose:r,maxWidth:i,fullWidth:a,"aria-labelledby":`form-dialog-title`,classes:u,children:[s&&d(Ir,{className:m.titleRoot,children:[l(St,{variant:`body1`,children:t}),l(Gn,{"aria-label":`close`,className:m.closeButton,onClick:r,children:l(ci,{})})]}),l(Pr,{id:p||`dialog-content`,classes:{root:h(m.dialogContentRoot,f)},children:c})]})},Lg=B()(e=>({logs:{padding:e.spacing(0,2),"& #logs":{position:`relative`,"& p":{display:`inline`}},"& h5":{fontSize:`16px`,fontWeight:`bold`,border:`1.5px solid ${e.palette.background.lightPurple}`,color:e.palette.background.lightPurple,borderRadius:e.spacing(1),padding:e.spacing(0,1),display:`block`,width:`fit-content`,marginBottom:e.spacing(2)},"& li":{fontWeight:500,fontSize:`15px`,margin:e.spacing(1,0)}},link:{zIndex:`111`,position:`absolute`,color:e.palette.text.link,fontSize:`14px`,background:`white`,fontWeight:`bold`,left:e.spacing(6),top:0,[e.breakpoints.down(`md`)]:{left:e.spacing(3)}}})),Rg=({open:e,lastChangeLogs:t,handleCloseDialog:n})=>{let{classes:r}=Lg();return d(Ig,{open:e,handleClose:n,title:W(`terms.labels.latestChanges`),maxWidth:`md`,children:[l(ep,{href:`/logs`,target:`_blank`,rel:`noopener noreferrer`,underline:`none`,onClick:n,children:l(nr,{variant:`text`,className:r.link,children:W(`terms.labels.showLatestChanges`)})}),l(G,{className:r.logs,dangerouslySetInnerHTML:{__html:t}})]})},zg=()=>{let{changeLog:{openChangeLog:e,setOpenChangeLog:t},changeLogMostBeOpen:n}=Pg(),[r,i]=(0,J.useState)(),a=/<h5>(.*?)<\/h5>/g;(0,J.useEffect)(()=>{let e=ru,t=De(nu.parse(e).split(/<hr>/g)[0]).querySelector(`h5`),n=document.createElement(`div`);n.setAttribute(`id`,`logs`);let r=nu.parse(e).split(a)[2].split(/<hr>/g)[0];n.innerHTML=De(Array.from(De(r).querySelectorAll(`li`)).reduce((e,t)=>`${e}${t.outerHTML}`,`${t.outerHTML}`)).innerHTML,i(n.outerHTML)},[]),(0,J.useEffect)(()=>{o(!0)},[r]),di(()=>{o()},[n]);let o=(e=!1)=>{if(r){let n=a.exec(r)?.[1],i=localStorage.getItem(`last-logs`);n!==void 0&&n!==i&&t(!0,e)}};return l(f,{children:e&&l(Rg,{open:e,lastChangeLogs:r,handleCloseDialog:()=>{if(r){let e=a.exec(r)?.[1];localStorage.setItem(`last-logs`,e),t(!1)}}})})},Bg=B()({root:{},paper:{border:`1px solid #D1D1D1`,borderRadius:8,fontStyle:`normal`,fontWeight:400,fontSize:`14px`,lineHeight:`18px`,display:`flex`,alignItems:`center`,textAlign:`center`,color:`#49454F`},btnClose:{color:`#0099DB`}}),Vg=({open:e,onClose:t,confirm:n,anchorEl:r})=>{let{classes:i}=Bg(),[a,o]=(0,J.useState)(!1);return l(Zr,{open:e,onClose:t,className:i.root,classes:{paper:i.paper,root:i.root},anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{horizontal:`center`,vertical:`top`},children:d(q,{style:{padding:8},children:[l(Br,{label:W(`common.messages.startGuide`),control:l(kr,{color:`success`,checked:a,onChange:e=>o(e.target.checked)})}),l(q,{style:{textAlign:`left`},children:l(fi,{className:i.btnClose,variant:`text`,onClick:()=>n(a),children:W(`tooltip.close`)})})]})})},Hg=B()(e=>({dialogRoot:{borderRadius:e.spacing(2),boxShadow:`0px 1px 8px rgba(0, 0, 0, 0.12)`},titleRoot:{backgroundColor:e.palette.primary.main,margin:0,padding:e.spacing(2),"& p":{textAlign:`center`,fontSize:`16px`,color:e.palette.text.paper,fontWeight:500}},closeButton:{position:`absolute`,right:e.spacing(1),top:4,color:e.palette.text.paper},dialogContentRoot:{position:`relative`,padding:`0 !important`}})),Ug=e=>{let{title:t,onClose:n,dialogClasses:r,contentDialogClasses:i,id:a,children:o,openConfirm:s,onCloseConfirm:c,confirm:u,width:f,isTitleShow:p=!1,...m}=e,{classes:h,cx:g}=Hg(),[_,v]=(0,J.useState)(null),y=e=>{v(e.target),n&&n()};return d(Mr,{...m,"aria-labelledby":`form-dialog-title`,classes:{paper:g(h.dialogRoot,r)},PaperProps:{style:{width:f??`inherit`}},children:[d(Ir,{className:h.titleRoot,children:[l(St,{variant:`body1`,children:t}),l(Gn,{"aria-label":`close`,className:h.closeButton,onClick:y,children:l(ci,{})}),l(Vg,{anchorEl:_,open:s,onClose:c,confirm:u})]}),l(Pr,{id:a||`dialog-content`,classes:{root:g(h.dialogContentRoot,i)},children:o})]})},Wg=B()(e=>({container:{},dialogClasses:{margin:e.spacing(1)},contentDialogClasses:{padding:e.spacing(1.7,4)}})),Gg=e=>{let{children:t,title:n,onClose:r,open:i,openConfirm:a,onCloseConfirm:o,c
2324onfirm:s,width:c}=e,{classes:u}=Wg();return l(Ug,{open:i,onClose:r,isTitleShow:!0,title:n,maxWidth:`lg`,dialogClasses:u.dialogClasses,contentDialogClasses:u.contentDialogClasses,openConfirm:a,onCloseConfirm:o,confirm:s,width:c,children:t})},Kg=B()(e=>({root:{display:`flex`,flexDirection:`column`,gap:16},title:{display:`flex`,alignItems:`center`,gap:8,padding:`4px 8px`},description:{fontSize:16,fontWeight:700,textAlign:`center`,padding:`${e.spacing(2)} ${e.spacing(4)}`},imgContainer:{textAlign:`center`},action:{textAlign:`right`,borderTop:`1px solid #D1D1D1`,padding:e.spacing(1)},rowsContainer:{display:`grid`,gridTemplateColumns:`repeat(3, 1fr)`,gap:36},group:{display:`flex`,flexDirection:`column`,gap:16},btnBack:{color:`#0099DB`},item:{"&:hover":{backgroundColor:`#EFEFEF`},padding:`${e.spacing(2)} ${e.spacing(1)}`,borderRadius:e.spacing(2)}})),qg=({step:e,changeStep:t})=>{let{classes:n}=Kg(),r=p_[e]?.data,i=p_[e]?.backUrl,a=r?.reduce((e,t,n)=>{let r=Math.floor(n/3);return Array.isArray(e[r])||(e[r]=[]),e[r].push(t),e},[]);return l(f,{children:d(q,{className:n.root,children:[l(q,{className:n.description,children:l(q,{className:n.group,children:a?.map?.((e,r)=>d(f,{children:[l(q,{className:n.rowsContainer,children:e?.map((e,i)=>d(q,{className:n.item,onClick:()=>t(e.href),children:[l(`img`,{src:e.imgUrl,alt:e.title,width:`225px`,height:`134px`}),d(q,{className:n.title,children:[l(Dr,{sx:{width:35,height:35,backgroundColor:`#F1EFFF`,color:`#7E6BF1`},children:i+1+r*3}),e.title]})]},e.title))}),r+1<a?.length&&l(Lr,{})]}))})}),l(q,{className:n.action,children:l(nr,{className:n.btnBack,startIcon:l(Bu,{}),onClick:()=>t(i),children:W(`tooltip.back`)})})]})})},Jg=B()(e=>({root:{display:`flex`,flexDirection:`column`,gap:16},title:{fontSize:24,fontWeight:700,color:e.palette.primary.main,textAlign:`center`},description:{fontSize:16,fontWeight:700,textAlign:`center`,padding:32},action:{textAlign:`right`,borderTop:`1px solid #D1D1D1`,padding:e.spacing(1)},btnBack:{color:`#0099DB`}})),Yg=({step:e,changeStep:t})=>{let{classes:n}=Jg(),r=p_[e]?.backUrl;return l(f,{children:d(q,{className:n.root,children:[d(q,{className:n.description,children:[l(q,{children:W(`organization.messages.employeeAddedByOwner`)}),l(q,{children:W(`organization.messages.showInviteInorganizations`)})]}),l(q,{className:n.action,children:l(nr,{className:n.btnBack,startIcon:l(Bu,{}),onClick:()=>t(r),children:W(`tooltip.back`)})})]})})},Xg=B()(e=>({root:{display:`flex`,flexDirection:`column`,gap:16,padding:`${e.spacing(4)} ${e.spacing(2)}`},title:{fontSize:24,fontWeight:700,color:e.palette.primary.main,textAlign:`center`},description:{fontSize:16,fontWeight:700,textAlign:`center`},imgContainer:{textAlign:`center`},action:{textAlign:`center`},btnOk:{width:`159px`}})),Zg=({step:e,changeStep:t})=>{let{classes:n}=Xg();return p_[e]?.title,l(f,{children:d(q,{className:n.root,children:[l(q,{className:n.title,children:W(`organization.labels.welcomeToAwat`)}),l(q,{className:n.imgContainer,children:l(`img`,{src:`/get-started/social-media-cuate.svg`,alt:`get started`,width:`281.35px`,height:`180px`})}),l(q,{className:n.description,children:W(`organization.labels.helpWorkAwat`)}),l(q,{className:n.action,children:l(nr,{className:n.btnOk,variant:`contained`,onClick:()=>t(`second`),children:W(`organization.labels.letsGo`)})})]})})},Qg=K((0,X.jsx)(`path`,{d:`M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z`}),`ArrowOutward`),$g=K((0,X.jsx)(`path`,{d:`M9 16h2V8H9zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m1-4h2V8h-2z`}),`PauseCircleOutlineOutlined`),e_=K((0,X.jsx)(`path`,{d:`m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8`}),`PlayCircleOutlineOutlined`),t_=`data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.95%200L20%201.05L12.55%208.5L17.5%208.5V10L10%2010V2.5H11.5V7.45L18.95%200ZM10%2010L10%2017.5H8.5L8.5%2012.55L1.05%2020L0%2018.95L7.45%2011.5H2.5V10H10Z'%20fill='%237E6BF1'/%3e%3c/svg%3e`,n_=B()({root:{pointerEvents:`none`},paper:{pointerEvents:`auto`,border:`2px solid #7E6BF1`,filter:`drop-shadow(0px 1px 8px rgba(0, 0, 0, 0.12))`,borderRadius:8},container:{position:`relative`},btnClose:{position:`absolute`}}),r_=({open:e,onClose:t,src:n,anchorEl:r})=>{let{classes:i}=n_(),a=r?.getBoundingClientRect?.();return l(Zr,{classes:{root:i.root,paper:i.paper},open:e,onClose:t,anchorEl:r,anchorOrigin:{vertical:`top`,horizontal:a?.x>400?`left`:`right`},transformOrigin:{horizontal:a?.x>400?`right`:`left`,vertical:`top`},children:d(q,{style:{position:`relative`},children:[l(ui,{style:{position:`absolute`},onClick:t,children:l(ci,{})}),l(`img`,{src:n,alt:``,width:`320px`,height:`180px`})]})})};function i_(e,t,n){let r=e,i=t,a=0,o=0,s=0,c=0;r.style.top=`${document.body.clientHeight-r.offsetHeight-15}px`,r.style.left=`15px`,t&&(i.onmousedown=l);function l(e){let t=e||window.event;t.preventDefault(),s=t.clientX,c=t.clientY,document.onmouseup=d,document.onmousemove=u}function u(e){let t=e||window.event;t.preventDefault(),a=s-t.clientX,o=c-t.clientY,s=t.clientX,c=t.clientY,r.offsetTop-o>0&&r.offsetTop+r.offsetHeight-o-0<=document.body.clientHeight&&(r.style.top=`${r.offsetTop-o}px`),r.offsetLeft-a>0&&r.offsetLeft+r.offsetWidth-a-0<document.body.clientWidth&&(r.style.left=`${r.offsetLeft-a}px`)}function d(){document.onmouseup=null,document.onmousemove=null}}var a_=B()((e,{minimize:t})=>({draggable:{position:`absolute`,minWidth:`max-content`,zIndex:1300},border:{border:`2px solid ${e.palette.primary.main}`,boxShadow:`0px 1px 8px rgba(0, 0, 0, 0.12)`,borderRadius:`8px`,overflow:`hidden`},root:{display:`flex`,flexDirection:`column`,gap:16,width:272,maxWidth:272,padding:18,boxShadow:`0px 1px 8px rgb(0 0 0 / 12%)`,backgroundColor:t?e.palette.primary.main:`#fff`,borderRadius:8},minimize:{display:`flex`,flexDirection:`column`,gap:16,width:272,maxWidth:272,padding:14,boxShadow:`0px 1px 8px rgb(0 0 0 / 12%)`,backgroundColor:t?e.palette.primary.main:`#fff`,borderRadius:8},titleContainer_Minimize:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`,color:`#fff`,maxHeight:56},titleContainer:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`},title:{flex:1,fontSize:14,fontWeight:700,textAlign:`right`},actions:{display:`flex`,justifyContent:`space-between`}})),o_=e=>{let{children:t,data:n,minimize:r,show:i,defaultPosition:a}=e,{classes:o,cx:s}=a_({minimize:r}),c=(0,J.useRef)(null),u=(0,J.useRef)(null);return(0,J.useEffect)(()=>{i_(c.current,u.current,a)},[a,r]),l(`div`,{className:s(o.draggable,{[o.border]:!r}),ref:c,children:d(Rn,{className:s({[o.minimize]:r,[o.root]:!r}),children:[r&&d(q,{className:o.titleContainer_Minimize,children:[l(ui,{size:`small`,onClick:()=>i(),children:l(`img`,{src:`data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%200L18%207.5H16.5L16.5%202.55L2.55%2016.5L7.5%2016.5V18L0%2018V10.5H1.5V15.45L15.45%201.5H10.5V0H18Z'%2
23240fill='white'/%3e%3c/svg%3e`,alt:``})}),l(si,{className:o.title,children:n?.title})]}),!r&&d(f,{children:[d(q,{className:o.titleContainer,children:[l(si,{className:o.title,children:n?.title}),l(`img`,{src:`data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%200L14.075%204.075L12.975%205.175L10.75%202.95V7.675H9.25V2.95L7.025%205.175L5.925%204.075L10%200ZM16.05%206.05L20%2010L16.025%2013.975L14.925%2012.875L17.05%2010.75L12.325%2010.75V9.25L17.05%209.25L14.95%207.15L16.05%206.05ZM3.95%206.05L5.05%207.15L2.95%209.25H7.65V10.75H2.95L5.05%2012.85L3.95%2013.95L0%2010L3.95%206.05ZM10.75%2012.35L10.75%2017.05L12.85%2014.95L13.95%2016.05L10%2020L6.05%2016.05L7.15%2014.95L9.25%2017.05L9.25%2012.35H10.75Z'%20fill='%2349454F'/%3e%3c/svg%3e`,alt:``,ref:u,draggable:!0})]}),l(Lr,{}),t]})]})})},s_=B()({root:{display:`flex`,flexDirection:`column`,gap:16,maxWidth:272},title:{fontSize:14,fontWeight:700,textAlign:`right`},description:{display:`flex`,flexDirection:`column`,gap:12,fontSize:14,fontWeight:400,textAlign:`right`,maxHeight:`calc(100vh - 200px - 100vh * 10 / 100)`,overflow:`scroll`},imgContainer:{textAlign:`right`},action:{textAlign:`center`},rowsContainer:{display:`flex`,flexDirection:`row`,gap:10,"&:hover":{color:`#49454F`,backgroundColor:`#F3F3F3`},padding:4,cursor:`pointer`},rowsContainerSelected:{color:`#7E6BF1 !important`,backgroundColor:`#F1EFFF !important`},contentColumn:{flex:1},actions:{display:`flex`,justifyContent:`space-between`}}),c_=({step:e,changeStep:t})=>{let{classes:n,cx:r}=s_(),[i,a]=(0,J.useState)(!1),[o,s]=(0,J.useState)(null),[c,u]=(0,J.useState)(null),p=(0,J.useMemo)(()=>p_[e]?.data?.map?.((e,t)=>({value:{...e},key:t})),[e]);return(0,J.useEffect)(()=>{let e=p?.[0];e&&c&&s({key:e.key,anchorEl:c,open:!0,src:e.value?.gif})},[p,c]),l(f,{children:l(Vn,{open:!0,onClose:()=>t(`owner`),hideBackdrop:!0,sx:{width:0,position:`inherit`},"aria-labelledby":`modal-modal-title`,"aria-describedby":`modal-modal-description`,children:l(o_,{data:p_[e],show:()=>a(()=>!1),minimize:i,children:d(q,{className:n.root,children:[d(q,{className:n.description,children:[p?.map?.((e,t)=>d(f,{children:[d(G,{ref:e=>t===0?u(e):null,className:r(n.rowsContainer,{[n.rowsContainerSelected]:o?.key===e?.key}),onClick:t=>s({key:e?.key,src:e?.value?.gif??``,open:!0,anchorEl:t.currentTarget}),children:[d(q,{className:n.contentColumn,children:[t+1,`. `,e?.value?.content]}),o?.key===e?.key?l($g,{}):l(e_,{})]}),l(Lr,{})]})),l(r_,{open:o?.open??!1,onClose:()=>{s({open:!1,anchorEl:null,src:``,key:null})},anchorEl:o?.anchorEl??null,src:o?.src??``})]}),d(q,{className:n.actions,children:[l(fi,{startIcon:l(Qg,{}),variant:`text`,onClick:()=>t(`owner`),children:W(`tooltip.back`)}),l(fi,{startIcon:l(`img`,{src:t_,alt:``}),variant:`text`,onClick:()=>a(()=>!0),children:W(`tooltip.minimize`)})]})]})})})})},l_=`/assets/DgFEY3SU.svg`,u_=`/assets/BWo4U_Gp.svg`,d_=`/assets/CXvk9O6T.svg`,f_=B()(e=>({root:{display:`flex`,flexDirection:`column`,gap:16,padding:`${e.spacing(4)} ${e.spacing(2)}`},header:{display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,gap:16},title:{fontSize:14,fontWeight:700},description:{fontSize:`14px`,fontWeight:400,lineHeight:`18px`,letterSpacing:`0em`,textAlign:`center`,color:`#111111`},body:{padding:16},title2:{fontSize:14,fontWeight:700},btnOther:{fontSize:`14px`,fontWeight:700,lineHeight:`18px`,letterSpacing:`0em`,textAlign:`right`},moreInformation:{display:`flex`,justifyContent:`center`},btnInformation:{fontSize:12,textAlign:`center`}})),p_={start:{name:`start`,title:W(`awat.getStart.start`)||``,isUsedProvider:!0,component:Zg,backUrl:`start`,containerWidth:`513px`},second:{name:`second`,title:W(`awat.getStart.start`)||``,isUsedProvider:!0,component:({step:e,changeStep:t})=>{let{goftino:n}=Pg(),{classes:r}=f_();return p_[e]?.title,l(f,{children:d(q,{className:r.root,children:[d(q,{className:r.header,children:[l(q,{children:l(`img`,{src:d_,alt:`get started`,width:`98.49px`,height:`78px`})}),l(q,{className:r.title,children:W(`awat.labels.startOrganizations`)}),d(q,{children:[l(q,{className:r.description,children:W(`awat.labels.organizationInAwat`)}),l(q,{className:r.description,children:W(`awat.labels.createOrganizationAndAddUsers`)})]})]}),d(Df,{variant:`outlined`,color:`#111`,className:r.body,children:[l(q,{className:r.title2,children:W(`awat.labels.selectOption`)}),d(q,{style:{display:`flex`,flexDirection:`row`,gap:16,padding:`16px 0px`},children:[l(fi,{style:{flex:1},variant:`outlined`,startIcon:l(`img`,{src:u_,alt:``}),onClick:()=>t(`owner`),className:r.btnOther,children:W(`awat.labels.createOrganization`)}),l(fi,{style:{flex:1},variant:`outlined`,startIcon:l(`img`,{src:l_,alt:``}),onClick:()=>
2324t(`employee`),className:r.btnOther,children:W(`awat.labels.someoneCreateOrganization`)})]}),l(q,{className:r.moreInformation,children:l(fi,{onClick:()=>{n.open()},className:r.btnInformation,children:W(`awat.labels.moreInformation`)})})]})]})})},backUrl:`start`,containerWidth:`621px`},employee:{name:`employee`,title:W(`awat.getStart.employee`)||``,isUsedProvider:!0,component:Yg,backUrl:`second`},owner:{name:`owner`,title:W(`awat.getStart.settingUpTheOrganization`)||``,isUsedProvider:!0,component:qg,backUrl:`second`,containerWidth:`875px`,data:[{title:W(`awat.getStart.createOrganizationInAwat`)||``,imgUrl:`/get-started/actions/create-org.svg`,href:`createOrganization`},{title:W(`awat.getStart.inviteEmployee`)||``,imgUrl:`/get-started/actions/add-employee.svg`,href:`addEmployee`},{title:W(`awat.getStart.positionChart`)||``,imgUrl:`/get-started/actions/position-chart.svg`,href:`structure`},{title:W(`awat.getStart.positionToEmployee`)||``,imgUrl:`/get-started/actions/position-to-employee.svg`,href:`assignPosition`},{title:W(`awat.getStart.activeCorrespondence`)||``,imgUrl:`/get-started/actions/active-mokatebat.svg`,href:`activationCorrespondence`},{title:W(`awat.getStart.addEmployeeToCorrespondence`)||``,imgUrl:`/get-started/actions/add-employee-to-mokatebat.svg`,href:`setCorrespondenceEmployee`}]},createOrganization:{name:`createOrganization`,title:`1.${W(`commands.organizations.OrganizationCreated`)} `,component:c_,backUrl:`owner`,data:[{content:W(`awat.message.createOrganization`),gif:`/get-started/1-createOrganization/Step1-Export-1.gif`,img:``},{content:W(`awat.message.idAndCreateOrganization`),gif:`/get-started/1-createOrganization/Step1-Export-2.gif`,img:``},{content:W(`awat.message.myOrganizationList`),gif:`/get-started/1-createOrganization/Step1-Export-3.gif`,img:``}]},addEmployee:{name:`addEmployee`,title:`2.${W(`awat.getStart.inviteEmployee`)}`,component:c_,backUrl:`owner`,data:[{content:W(`awat.message.viewOrganizationInList`),gif:`/get-started/2-addEmployee/Step2-Export-1.gif`,img:``},{content:W(`awat.message.employeeOption`),gif:`/get-started/2-addEmployee/Step2-Export-2.gif`,img:``},{content:W(`awat.message.addEmployee`),gif:`/get-started/2-addEmployee/Step2-Export-3.gif`,img:``},{content:W(`awat.message.addEmployeeWithMobileOrUserName`),gif:`/get-started/2-addEmployee/Step2-Export-4.gif`,img:``},{content:W(`awat.message.pendingOrActiveEmployee`),gif:`/get-started/2-addEmployee/Step2-Export-5.gif`,img:``}]},structure:{name:`structure`,title:`3. ${W(`awat.labels.structure`)} `,component:c_,backUrl:`owner`,data:[{content:W(`awat.message.viewOrganizationInList`),gif:`/get-started/3-structure/Step3-Export-1.gif`,img:``},{content:W(`awat.message.structureOptions`),gif:`/get-started/3-structure/Step3-Export-2.gif`,img:``},{content:W(`awat.message.chartOrganizationDefault`),gif:`/get-started/3-structure/Step3-Export-3.gif`,img:``},{content:W(`awat.message.editPosition`),gif:`/get-started/3-structure/Step3-Export-4.gif`,img:``},{content:W(`awat.message.addPosition`),gif:`/get-started/3-structure/Step3-Export-5.gif`,img:``}]},assignPosition:{name:`assignPosition`,title:`4. ${W(`awat.labels.assignPosition`)}`,component:c_,backUrl:`owner`,data:[{content:W(`awat.message.choiceEmployee`),gif:`/get-started/4-assignPosition/Step4-Export-1.gif`,img:``},{content:W(`awat.message.addPositionToEmployee`),gif:`/get-started/4-assignPosition/Step4-Export-2.gif`,img:``},{content:W(`awat.message.treePositions`),gif:`/get-started/4-assignPosition/Step4-Export-3.gif`,img:``},{content:W(`awat.message.recordChangesForAddPositionToEmployee`),gif:`/get-started/4-assignPosition/Step4-Export-4.gif`,img:``}]},activationCorrespondence:{name:`activationCorrespondence`,title:`5. ${W(`awat.getStart.activeCorrespondence`)}`,component:c_,backUrl:`owner`,data:[{content:W(`awat.message.solutions`),gif:`/get-started/5-activationCorrespondence/Step5-Export-1.gif`,img:``},{content:W(`awat.message.freeTrial`),gif:`/get-started/5-activationCorrespondence/Step5-Export-2.gif`,img:``},{content:W(`awat.message.invoice`),gif:`/get-started/5-activationCorrespondence/Step5-Export-3.gif`,img:``},{content:W(`awat.message.tariff`),gif:`/get-started/5-activationCorrespondence/Step5-Export-4.gif`,img:``}]},setCorrespondenceEmployee:{name:`setCorrespondenceEmployee`,title:`6. ${W(`awat.getStart.addEmployeeToCorrespondence`)}`,component:c_,backUrl:`owner`,data:[{content:W(`awat.message.solutions`),gif:`/get-started/6-setCorrespondenceEmployee/Step6-Export
2324-1.gif`,img:``},{content:W(`awat.message.settingSolutions`),gif:`/get-started/6-setCorrespondenceEmployee/Step6-Export-2.gif`,img:``},{content:W(`awat.message.settingUsers`),gif:`/get-started/6-setCorrespondenceEmployee/Step6-Export-3.gif`,img:``}]}},m_=({open:e,onClose:t,step:n,changeStep:r,openConfirm:i,onCloseConfirm:a,confirm:o})=>{let s=p_[n].component,c=p_[n]?.title,u=p_[n]?.containerWidth;return p_[n].isUsedProvider?l(f,{children:l(Gg,{onClose:t,open:e,title:c??``,openConfirm:i,onCloseConfirm:a,confirm:o,width:u,children:l(s,{step:n,changeStep:r})})}):l(s,{step:n,changeStep:r})},h_=`get-started`,g_={showAgain:!1},__=({userId:e})=>{let[t,n]=(0,J.useState)(g_);(0,J.useEffect)(()=>{n(r())},[]);let r=(0,J.useCallback)(()=>{let t=localStorage.getItem(h_);if(t){let n=JSON.parse(t)?.[e];if(n)return n}return{...g_,showAgain:!1}},[e]);return{config:t,changeConfig:(0,J.useCallback)(t=>{let r=localStorage.getItem(h_),i=r?JSON.parse(r):{};i[e]=t;let a=JSON.stringify(i);localStorage.setItem(h_,a),n(t)},[e])}},v_=()=>{let{signedInUser:e}=xc(),[t,n]=(0,J.useState)(`start`),{getStarted:{openGetStarted:r,setOpenGetStarted:i}}=Pg(),[a,o]=(0,J.useState)(!1),{config:s,changeConfig:c}=__({userId:e?.id??``});return l(f,{children:r&&l(m_,{open:!0,onClose:()=>{s.showAgain?o(!0):(i(!1),n(`start`))},step:t,changeStep:e=>n(()=>e),openConfirm:a,onCloseConfirm:()=>{o(!1)},confirm:e=>{(0,J.startTransition)(()=>{e&&c({showAgain:!e}),o(!1),i(!1,!e),n(`start`)})}})})},y_=e=>{let{children:t}=e,[n,r]=(0,J.useState)(!1),[i,a]=(0,J.useState)(!1),[o,s]=(0,J.useState)(!1),[c,u]=(0,J.useState)(!1),{signedInUser:p}=xc(),{config:m}=__({userId:p?.id??``}),h=Dt(e=>e.breakpoints.up(`sm`));di(()=>{i||u(!0)},[i]);let g=(e,t=!1)=>{(e===!1||t===!1||!h||m?.showAgain===!1)&&r(e)},_=(e,t=!0)=>{(h||!e)&&(a(e),h&&!t&&s(!0))},[v,y]=(0,J.useState)(typeof window<`u`?window.Goftino:void 0);return(0,J.useEffect)(()=>{function e(){y(window.Goftino)}return window.Goftino&&y(window.Goftino),window.addEventListener(`goftino_ready`,e),()=>{window.removeEventListener(`goftino_ready`,e)}},[]),d(Ng.Provider,{value:{changeLog:{openChangeLog:n,setOpenChangeLog:g},changeLogMostBeOpen:c,getStarted:{openGetStarted:i,setOpenGetStarted:_},iAmHereGetStartedPopover:{open:o,closePopover:()=>s(!1)},goftino:v},children:[p?.id&&d(f,{children:[l(v_,{}),l(zg,{})]}),t]})},b_=r(Oe()),x_=K([(0,X.jsx)(`path`,{d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`},`0`),(0,X.jsx)(`path`,{d:`M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z`},`1`)],`AccessTime`),S_=K((0,X.jsx)(`path`,{d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z`}),`AccessTimeOutlined`),C_=K([(0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5m10.79-1.38C16.45 15.8 14.32 15 12 15s-4.45.8-6.14 2.12C4.7 15.73 4 13.95 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12`},`0`),(0,X.jsx)(`path`,{d:`M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6m0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11`},`1`)],`AccountCircleOutlined`),w_=K((0,X.jsx)(`path`,{d:`M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3zM7 9H4V5h3zm10 6h3v4h-3zm0-10h3v4h-3z`}),`AccountTreeOutlined`),T_=K((0,X.jsxs)(`g`,{fillRule:`evenodd`,children:[(0,X.jsx)(`circle`,{cx:`17`,cy:`15.5`,r:`1.12`}),(0,X.jsx)(`path`,{d:`M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08`}),(0,X.jsx)(`path`,{d:`M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55C13.18 21.99 14.97 23 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91M11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.91m6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4`})]}),`AdminPanelSettingsOutlined`),E_=K((0,X.jsx)(`path`,{d:`M17 11V3H7v4H3v14h8v-4h2v4h8V11zM7 19H5v-2h2zm0-4H5v-2h2zm0-4H5V9h2zm4 4H9v-2h2zm0-4H9V9h2zm0-4H9V5h2zm4 8h-2v-2h2zm0-4h-2V9h2zm0-4h-2V5h2zm4 12h-2v-2h2zm0-4h-2v-2h2z`}),`Apartment`),D_=K((0,X.jsx)(`path`,{d:`M17 11V3H7v4H3v14h8v-4h2v4h8V11zM7 19H5v-2h2zm0-4H5v-2h2zm0-4H5V9h2zm4 4H9v-2h2zm0-4H9V9h2zm0-4H9V5h2zm4 8h-2v-2h2zm0-4h-2V9h2zm0-4h-2V5h2zm4 12h-2v-2h2zm0-4h-2v-2h2z`}
2324),`ApartmentOutlined`),O_=K((0,X.jsx)(`path`,{d:`M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76`}),`ArrowBackIosRounded`),k_=K((0,X.jsx)(`path`,{d:`m7 10 5 5 5-5z`}),`ArrowDropDown`),A_=K((0,X.jsx)(`path`,{d:`m7 14 5-5 5 5z`}),`ArrowDropUp`),j_=K((0,X.jsx)(`path`,{d:`M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31c.39-.39.39-1.02 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76`}),`ArrowForwardIosRounded`),M_=K((0,X.jsx)(`path`,{d:`m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`}),`ArrowForwardOutlined`),N_=K((0,X.jsx)(`path`,{d:`M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1`}),`ArrowForwardRounded`),P_=K((0,X.jsx)(`path`,{d:`m14 7-5 5 5 5z`}),`ArrowLeft`),F_=K((0,X.jsx)(`path`,{d:`m10 17 5-5-5-5z`}),`ArrowRight`),I_=K((0,X.jsx)(`path`,{d:`M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z`}),`AttachFile`),L_=K((0,X.jsx)(`path`,{d:`M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z`}),`AttachFileOutlined`),R_=K([(0,X.jsx)(`path`,{d:`M14 12h4v1.5h-4zm0 3h4v1.5h-4z`},`0`),(0,X.jsx)(`path`,{d:`M20 7h-5V4c0-1.1-.9-2-2-2h-2c-1.1 0-2 .9-2 2v3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m-9 0V4h2v5h-2zm9 13H4V9h5c0 1.1.9 2 2 2h2c1.1 0 2-.9 2-2h5z`},`1`),(0,X.jsx)(`circle`,{cx:`9`,cy:`13.5`,r:`1.5`},`2`),(0,X.jsx)(`path`,{d:`M11.08 16.18c-.64-.28-1.34-.43-2.08-.43s-1.44.15-2.08.43c-.56.24-.92.78-.92 1.39V18h6v-.43c0-.61-.36-1.15-.92-1.39`},`3`)],`BadgeOutlined`),z_=K((0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8`}),`Block`),B_=K((0,X.jsx)(`path`,{d:`M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z`}),`BusinessOutlined`),V_=K((0,X.jsx)(`path`,{d:`M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zm0-12H5V6h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z`}),`CalendarMonthOutlined`),H_=K([(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3.2`},`0`),(0,X.jsx)(`path`,{d:`M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5`},`1`)],`CameraAlt`),U_=K((0,X.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z`}),`Cancel`),W_=K((0,X.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z`}),`CancelOutlined`),G_=K((0,X.jsx)(`path`,{d:`M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H3V5h18zM9.41 15.95 12 13.36l2.59 2.59L16 14.54l-2.59-2.59L16 9.36l-1.41-1.41L12 10.54 9.41 7.95 8 9.36l2.59 2.59L8 14.54z`}),`CancelPresentationOutlined`),K_=K((0,X.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),q_=K((0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),J_=K((0,X.jsx)(`path`,{d:`M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),`CheckCircleOutline`),Y_=K((0,X.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`CheckOutlined`),X_=K((0,X.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`CloseOutlined`),Z_=K((0,X.jsx)(`path`,{d:`M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM20 4v13.17L18.83 16H4V4zM6 12h12v2H6zm0-3h12v2H6zm0-3h12v2H6z`}),`CommentOutlined`),Q_=K((0,X.jsx)(`path`,{d:`M19 5v2h-4V5zM9 5v6H5V5zm10 8v6h-4v-6zM9 17v2H5v-2zM21 3h-8v6h8zM11 3H3v10h8zm10 8h-8v10h8zm-10 4H3v6h8z`}
2324),`DashboardOutlined`),$_=K((0,X.jsx)(`path`,{d:`M7 11h2v2H7zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2M5 8h14V6H5zm14 12V10H5v10zm-4-7h2v-2h-2zm-4 0h2v-2h-2z`}),`DateRangeOutlined`),ev=K((0,X.jsx)(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z`}),`DeleteOutline`),tv=K((0,X.jsx)(`path`,{d:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z`}),`Description`),nv=K((0,X.jsx)(`path`,{d:`M19 19H5V5h14zM3 3v18h18V3zm14 12.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z`}),`DisabledByDefaultOutlined`),rv=K((0,X.jsx)(`path`,{d:`m18 7-1.41-1.41-6.34 6.34 1.41 1.41zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12zM.41 13.41 6 19l1.41-1.41L1.83 12z`}),`DoneAllOutlined`),iv=K((0,X.jsx)(`path`,{d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`}),`DoneOutlined`),av=K((0,X.jsx)(`path`,{d:`M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z`}),`Download`),ov=K((0,X.jsx)(`path`,{d:`m15 5-1.41 1.41L18.17 11H2v2h16.17l-4.59 4.59L15 19l7-7z`}),`EastOutlined`),sv=K((0,X.jsx)(`path`,{d:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z`}),`Edit`),cv=K((0,X.jsx)(`path`,{d:`m17.58 6.25 1.77 1.77L14.37 13H12.6v-1.77zm3.27-.44-1.06-1.06c-.2-.2-.51-.2-.71 0l-.85.85L20 7.37l.85-.85c.2-.2.2-.52 0-.71M18 12.2V17h2v2H4v-2h2v-7c0-2.79 1.91-5.14 4.5-5.8v-.7c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v.7c.82.21 1.57.59 2.21 1.09l-1.43 1.43C13.64 6.26 12.85 6 12 6c-2.21 0-4 1.79-4 4v7h8v-2.8zM10 20h4c0 1.1-.9 2-2 2s-2-.9-2-2`}),`EditNotificationsOutlined`),lv=K((0,X.jsx)(`path`,{d:`m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z`}),`EditOutlined`),uv=K([(0,X.jsx)(`path`,{d:`M3 2h8v2H3zm3 9h2V7h3V5H3v2h3zm6.4036 9.1819 7.7782-7.7782 1.4142 1.4142-7.7782 7.7782z`},`0`),(0,X.jsx)(`circle`,{cx:`14.5`,cy:`14.5`,r:`1.5`},`1`),(0,X.jsx)(`circle`,{cx:`19.5`,cy:`19.5`,r:`1.5`},`2`),(0,X.jsx)(`path`,{d:`M15.5 11c1.38 0 2.5-1.12 2.5-2.5V4h3V2h-4v4.51c-.42-.32-.93-.51-1.5-.51C14.12 6 13 7.
232412 13 8.5s1.12 2.5 2.5 2.5m-5.76 4.96-1.41 1.41-.71-.71.35-.35c.98-.98.98-2.56 0-3.54-.49-.49-1.13-.73-1.77-.73s-1.28.24-1.77.73c-.98.98-.98 2.56 0 3.54l.35.35-1.06 1.06c-.98.98-.98 2.56 0 3.54.5.5 1.14.74 1.78.74s1.28-.24 1.77-.73l1.06-1.06 1.41 1.41 1.41-1.41-1.41-1.41 1.41-1.41zM5.85 14.2c.12-.12.26-.15.35-.15s.23.03.35.15c.19.2.19.51 0 .71l-.35.35-.35-.36c-.19-.19-.19-.51 0-.7m0 5.65c-.12.12-.26.15-.35.15s-.23-.03-.35-.15c-.19-.19-.19-.51 0-.71l1.06-1.06.71.71z`},`3`)],`EmojiSymbols`),dv=K((0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`Error`),fv=K((0,X.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),`ErrorOutline`),pv=K((0,X.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),`ErrorOutlineOutlined`),mv=K((0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`ErrorOutlined`),hv=K((0,X.jsx)(`path`,{d:`M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`}),`ExitToApp`),gv=K((0,X.jsx)(`path`,{d:`m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z`}),`ExpandLess`),_v=K((0,X.jsx)(`path`,{d:`M16 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8zm3 16H5V5h10v4h4zM7 17h10v-2H7zm5-10H7v2h5zm-5 6h10v-2H7z`}),`FeedOutlined`),vv=K((0,X.jsx)(`path`,{d:`M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z`}),`FolderOpen`),yv=K((0,X.jsx)(`path`,{d:`M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z`}),`FormatAlignCenter`),bv=K((0,X.jsx)(`path`,{d:`M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z`}),`FormatAlignJustify`),xv=K((0,X.jsx)(`path`,{d:`M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z`}),`FormatAlignLeft`),Sv=K((0,X.jsx)(`path`,{d:`M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z`}),`FormatAlignRight`),Cv=K((0,X.jsx)(`path`,{d:`M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5`}),`FormatBold`),wv=K((0,X.jsx)(`path`,{d:`M11 17h10v-2H11zm-8-5 4 4V8zm0 9h18v-2H3zM3 3v2h18V3zm8 6h10V7H11zm0 4h10v-2H11z`}),`FormatIndentDecrease`),Tv=K((0,X.jsx)(`path`,{d:`M3 21h18v-2H3zM3 8v8l4-4zm8 9h10v-2H11zM3 3v2h18V3zm8 6h10V7H11zm0 4h10v-2H11z`}),`FormatIndentIncrease`),Ev=K((0,X.jsx)(`path`,{d:`M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z`}),`FormatItalic`),Dv=K((0,X.jsx)(`path`,{d:`M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6zm4-2v2h12V5zm0 14h12v-2H10zm0-6h12v-2H10z`}),`FormatLineSpacing`),Ov=K((0,X.jsx)(`path`,{d:`M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z`}),`FormatListBulleted`),kv=K((0,X.jsx)(`path`,{d:`M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z`}),`FormatListBulletedOutlined`),Av=K((0,X.jsx)(`path`,{d:`M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z`}),`FormatListNumbered`),jv=K((0,X.jsx)(`path`,{d:`M10 19h4v-3h-4zM5 4v3h5v3h4V7h5V4zM3 14h18v-2H3z`}),`FormatStrikethrough`),Mv=K((0,X.jsx)(`path`,{d:`M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4m12 8-4-4v3H5v2h12v3z`}),`FormatTextdirectionLToR`),Yee=K((0,X.jsx)(`path`,{d:`M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4m-2 7v-3l-4 4 4 4v-3h12v-2z`}
2324),`FormatTextdirectionRToL`),Xee=K((0,X.jsx)(`path`,{d:`M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z`}),`FormatUnderlined`),Nv=K((0,X.jsx)(`path`,{d:`M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9v-2H4V8l8 5 8-5v5h2V6c0-1.1-.9-2-2-2m-8 7L4 6h16zm7 4 4 4-4 4v-3h-4v-2h4z`}),`ForwardToInboxOutlined`),Pv=K((0,X.jsx)(`path`,{d:`M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z`}),`GetApp`),Fv=K((0,X.jsx)(`path`,{fillRule:`evenodd`,d:`M3 3v8h8V3zm6 6H5V5h4zm-6 4v8h8v-8zm6 6H5v-4h4zm4-16v8h8V3zm6 6h-4V5h4zm-6 4v8h8v-8zm6 6h-4v-4h4z`}),`GridView`),Iv=K((0,X.jsx)(`path`,{d:`M3 3v8h8V3zm6 6H5V5h4zm-6 4v8h8v-8zm6 6H5v-4h4zm4-16v8h8V3zm6 6h-4V5h4zm-6 4v8h8v-8zm6 6h-4v-4h4z`}),`GridViewOutlined`),Zee=K([(0,X.jsx)(`path`,{d:`M5 5h4v4H5zm0 10h4v4H5zm10 0h4v4h-4zm0-10h4v4h-4z`,opacity:`.3`},`0`),(0,X.jsx)(`path`,{d:`M3 21h8v-8H3zm2-6h4v4H5zm-2-4h8V3H3zm2-6h4v4H5zm8 16h8v-8h-8zm2-6h4v4h-4zM13 3v8h8V3zm6 6h-4V5h4z`},`1`)],`GridViewTwoTone`),Lv=K((0,X.jsx)(`path`,{d:`M22 9V7h-2v2h-2v2h2v2h2v-2h2V9zM8 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m6 5H2v-.99C2.2 16.29 5.3 15 8 15s5.8 1.29 6 2zM12.51 4.05C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17`}),`GroupAddOutlined`),Qee=K((0,X.jsx)(`path`,{d:`M16.24 13.65c-1.17-.52-2.61-.9-4.24-.9s-3.07.39-4.24.9C6.68 14.13 6 15.21 6 16.39V18h12v-1.61c0-1.18-.68-2.26-1.76-2.74M8.07 16c.09-.23.27-.42.49-.52 1.1-.49 2.26-.73 3.43-.73 1.18 0 2.33.25 3.43.73.23.1.4.29.49.52zm-6.85-1.42C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58m21.56 0c-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24v-1.57c0-.81-.48-1.53-1.22-1.85M12 12c1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3 1.34 3 3 3m0-4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1M1.4968 11l2.5031-2.503L6.5031 11l-2.5032 2.5032zM20 9l-2.5 4h5z`}),`Groups3Outlined`),Rv=K((0,X.jsx)(`path`,{d:`M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4`}),`HelpOutline`),$ee=K((0,X.jsx)(`path`,{d:`M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4`}),`HelpOutlineOutlined`),zv=K((0,X.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5v-3h3.56c.69 1.19 1.97 2 3.45 2s2.75-.81 3.45-2H19zm0-5h-4.99c0 1.1-.9 2-2 2s-2-.9-2-2H5V5h14z`}),`InboxOutlined`),Bv=K((0,X.jsx)(`path`,{d:`M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8`}),`InfoOutlined`),Vv=K((0,X.jsx)(`path`,{d:`M8 17c-.55 0-1-.45-1-1v-5c0-.55.45-1 1-1s1 .45 1 1v5c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m2 2H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`}),`InsertChartOutlinedRounded`),Hv=K((0,X.jsx)(`path`,{d:`M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z`}),`KeyboardArrowLeft`),Uv=K((0,X.jsx)(`path`,{d:`M20 4v12H8V4zm0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7.53 12L9 10.5l1.4-1.41 2.07 2.08L17.6 6 19 7.41zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4z`}),`LibraryAddCheckOutlined`),Wv=K([(0,X.jsx)(`path`,{d:`M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3M8 5h8v3H8zm8 14H8v-4h8zm2-4v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4z`},`0`),(0,X.jsx)(`circle`,{cx:`18`,cy:`11.5`,r:`1`}
2324,`1`)],`LocalPrintshopOutlined`),ete=K((0,X.jsx)(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z`}),`Lock`),Gv=K((0,X.jsx)(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2`}),`LockOutlined`),Kv=K((0,X.jsx)(`path`,{d:`M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-1 14H5c-.55 0-1-.45-1-1V8l6.94 4.34c.65.41 1.47.41 2.12 0L20 8v9c0 .55-.45 1-1 1m-7-7L4 6h16z`}),`MailOutlineRounded`),tte=K((0,X.jsx)(`path`,{d:`M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z`}),`MenuOutlined`),nte=K((0,X.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`MoreHoriz`),qv=K((0,X.jsx)(`path`,{d:`M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`MoreVert`),Jv=K((0,X.jsx)(`path`,{d:`M16 9h-2.55V6h-2.9v3H8l4 4zm3-6H4.99C3.88 3 3 3.9 3 5v14c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5v-3h3.56c.69 1.19 1.97 2 3.45 2s2.75-.81 3.45-2H19zm0-5h-4.99c0 1.1-.9 2-2 2s-2-.9-2-2H5l-.01-9H19z`}),`MoveToInboxOutlined`),Yv=K((0,X.jsx)(`path`,{d:`M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z`}),`NavigateBefore`),Xv=K((0,X.jsx)(`path`,{d:`M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z`}),`NotificationsNoneOutlined`),Zv=K((0,X.jsx)(`path`,{d:`M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24m-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2z`}),`PeopleAltOutlined`),Qv=K((0,X.jsx)(`path`,{d:`M7.5 4C5.57 4 4 5.57 4 7.5S5.57 11 7.5 11 11 9.43 11 7.5 9.43 4 7.5 4m0 5C6.67 9 6 8.33 6 7.5S6.67 6 7.5 6 9 6.67 9 7.5 8.33 9 7.5 9m9 4c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5 3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5m0 5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M5.41 20 4 18.59 18.59 4 20 5.41z`}),`PercentOutlined`),$v=K((0,X.jsx)(`path`,{d:`M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H6v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1z`}),`PermContactCalendar`),ey=K((0,X.jsx)(`path`,{d:`M20.84 4.22c-.05-.12-.11-.23-.18-.34-.14-.21-.33-.4-.54-.54-.11-.07-.22-.13-.34-.18-.24-.1-.5-.16-.78-.16h-1V1h-2v2H8V1H6v2H5c-.42 0-.8.13-1.12.34-.21.14-.4.33-.54.54-.07.11-.13.22-.18.34-.1.24-.16.5-.16.78v14c0 1.1.89 2 2 2h14c.28 0 .54-.06.78-.16.12-.05.23-.11.34-.18.21-.14.4-.33.54-.54.21-.32.34-.71.34-1.12V5c0-.28-.06-.54-.16-.78M5 19V5h14v14zm7-6.12c-2.03 0-6 1.08-6 3.58V18h12v-1.53c0-2.51-3.97-3.59-6-3.59M8.31 16c.69-.56 2.38-1.12 3.69-1.12s3.01.56 3.69 1.12zM12 12c1.65 0 3-1.35 3-3s-1.35-3-3-3-3 1.35-3 3 1.35 3 3 3m0-4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1`}),`PermContactCalendarOutlined`),ty=K((0,X.jsx)(`path`,{d:`M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4`}),`PersonOutlineRounded`),ny=K((0,X.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v1c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-1c0-2.66-5.33-4-8-4`}),`PersonRounded`),ry=K((0,X.jsx)(`path`,{d:`M3 10h11v2H3zm0-4h11v2H3zm0 8h7v2H3zm17.59-2.07-4.25 4.24-2.12-2.12-1.41 1.41L16.34 19 22 13.34z`}
2324),`PlaylistAddCheck`),rte=K((0,X.jsx)(`path`,{d:`M3 10h11v2H3zm0-4h11v2H3zm0 8h7v2H3zm17.59-2.07-4.25 4.24-2.12-2.12-1.41 1.41L16.34 19 22 13.34z`}),`PlaylistAddCheckOutlined`),iy=K([(0,X.jsx)(`path`,{d:`M17 19.22H5V7h7V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-7h-2z`},`0`),(0,X.jsx)(`path`,{d:`M19 2h-2v3h-3c.01.01 0 2 0 2h3v2.99c.01.01 2 0 2 0V7h3V5h-3zM7 9h8v2H7zm0 3v2h8v-2h-3zm0 3h8v2H7z`},`1`)],`PostAdd`),ay=K([(0,X.jsx)(`path`,{d:`M17 19.22H5V7h7V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-7h-2z`},`0`),(0,X.jsx)(`path`,{d:`M19 2h-2v3h-3c.01.01 0 2 0 2h3v2.99c.01.01 2 0 2 0V7h3V5h-3zM7 9h8v2H7zm0 3v2h8v-2h-3zm0 3h8v2H7z`},`1`)],`PostAddOutlined`),oy=K((0,X.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.89-2-2-2m0 16H5V7h14zm-5.5-6c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5M12 9c-2.73 0-5.06 1.66-6 4 .94 2.34 3.27 4 6 4s5.06-1.66 6-4c-.94-2.34-3.27-4-6-4m0 6.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5`}),`Preview`),sy=K((0,X.jsx)(`path`,{d:`M15 4v7H5.17l-.59.59-.58.58V4zm1-2H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m5 4h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1`}),`QuestionAnswerOutlined`),ite=K((0,X.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8`}),`RadioButtonUnchecked`),cy=K([(0,X.jsx)(`path`,{d:`M19.5 3.5 18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2v14H3v3c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V2zM15 20H6c-.55 0-1-.45-1-1v-1h10zm4-1c0 .55-.45 1-1 1s-1-.45-1-1v-3H8V5h11z`},`0`),(0,X.jsx)(`path`,{d:`M9 7h6v2H9zm7 0h2v2h-2zm-7 3h6v2H9zm7 0h2v2h-2z`},`1`)],`ReceiptLongOutlined`),ly=K((0,X.jsx)(`path`,{d:`M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z`}),`Redo`),ate=K((0,X.jsx)(`path`,{d:`M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z`}),`RefreshOutlined`),ote=K((0,X.jsx)(`path`,{d:`M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8`}),`Replay`),ste=K((0,X.jsx)(`path`,{d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z`}),`ScheduleOutlined`),uy=K([(0,X.jsx)(`path`,{d:`m21.41 11.41-8.83-8.83c-.37-.37-.88-.58-1.41-.58H4c-1.1 0-2 .9-2 2v7.17c0 .53.21 1.04.59 1.41l8.83 8.83c.78.78 2.05.78 2.83 0l7.17-7.17c.78-.78.78-2.04-.01-2.83M12.83 20 4 11.17V4h7.17L20 12.83z`},`0`),(0,X.jsx)(`circle`,{cx:`6.5`,cy:`6.5`,r:`1.5`},`1`)],`SellOutlined`),dy=K((0,X.jsx)(`path`,{d:`M2.01 21 23 12 2.01 3 2 10l15 2-15 2z`}),`Send`),fy=K((0,X.jsx)(`path`,{d:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6`}),`Settings`),py=K((0,X.jsx)(`path`,{d:`M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2`}),`SettingsOutlined`),my=K((0,X.jsx)(`path`,{d:`M4 9h4v11H4zm0-5h4v4H4zm6 3h4v4h-4zm6 3h4v4h-4zm0 5h4v5h-4zm-6-3h4v8h-4z`}),`StackedBarChart`),hy=K((0,X.jsx)(`path`,{d:`m21.9 8.89-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89m-2.99-3.9 1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31zM8.49 9.52 9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41-.25-.29-.37-.68-.33-1.07m-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17M5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19z`}),`StorefrontOutlined`),gy=K((0,X.jsx)(`path`,{d:`M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z`}),`SyncOutlined`),cte=K((0,X.jsx)(`path`,{d:`M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v3H5V5zm-5 14h-5v-9h5zM5 10h3v9H5zm12 9v-9h3v9z`}),`TableChartOutlined`),_y=K((0,X.jsx)(`path`,{d:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zm-9.18-6.95L7.4 14.46 10.94 18l5.66-5.66-1.41-1.41-4.24 4.24z`}),`TaskOutlined`),vy=K((0,X.jsx)(`path`,{d:`M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z`}),`TextSnippetOutlined`),yy=K((0,X.jsx)(`path`,{d:`M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2`}),`Timeline`),by=K((0,X.jsx)(`path`,{d:`M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16.77c.68 0 1.23-.56 1.23-1.23V8c0-1.1-.9-2-2-2m0 12H4V6h5.17l2 2H20zm-2-6H6v-2h12zm-4 4H6v-2h8z`}),`TopicOutlined`),xy=K((0,X.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),lte=B()((e,t)=>({paper:{backgroundColor:`unset`,boxShadow:`unset`,padding:11,overflow:`hidden`,marginX:20},polygon:{color:e.palette.primary.main,stroke:e.palette.primary.main,fontSize:`2.5rem !important`,zIndex:100,position:`absolute`,top:t.isBottom?-12:`auto`,bottom:t.isTop?-12:`auto`,left:t.isLeft?`calc(100% - 28px)`:`50%`,right:t.isRight?-12:`auto`,transform:t.isBottom||t.isTop?`translateX(-50%)`:`translateY(calc(50% + 12px));`},closeIcon:{color:`white`,padding:`unset`},nextButton:{background:`white`,color:e.palette.primary.main,"&:hover":{color:e.palette.primary.main,backgroundColor:`white`}},steps:{color:`white`},targetEl:{outline:`1px solid ${e.palette.primary.main} !important`,borderRadius:e.spacing(.5),outlineOffset:e.spacing(.3),boxShadow:`0px 0px 9px 0px #5200FFBF`}})),ute=()=>{let{currentStep:e,tourSteps:t,isTourOpen:n,nextStep:r,endTour:i}=Cy(),[a,o]=(0,J.useState)(null),{t:s}=Ye();(0,J.useEffect)(()=>
2324{if(n){let n=document.getElementById(t[e].target);n&&(a?.classList.contains(v.targetEl)&&a.classList.remove(v.targetEl),n.classList.add(v.targetEl),o(n))}else a?.classList.contains(v.targetEl)&&a?.classList.remove(v.targetEl),o(null)},[n,e,t]);let{anchorOrigin:c,transformOrigin:u}=t[e].position||{anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`}},p,m=c.vertical===`top`,h=c.vertical===`bottom`,g=c.horizontal===`left`,_=c.horizontal===`right`,{classes:v}=lte({isTop:m,isBottom:h,isLeft:g,isRight:_});return h?p=A_:m?p=k_:_?p=P_:g&&(p=F_),!n||!a?null:l(f,{children:d(Zr,{open:n&&!!a,disableEnforceFocus:!1,anchorEl:a,onClose:i,anchorOrigin:c,transformOrigin:u,disableRestoreFocus:!0,classes:{paper:v.paper},hideBackdrop:!0,children:[p&&l(p,{className:v.polygon}),d(q,{p:2,bgcolor:`primary.main`,borderRadius:2,position:`relative`,children:[l(ui,{onClick:i,className:v.closeIcon,children:l(ci,{})}),t[e]?.title&&l(q,{children:t[e].title}),l(q,{color:`white`,children:t[e].content}),d(Hr,{item:!0,container:!0,justifyContent:`space-between`,alignItems:`center`,mt:2,children:[l(si,{className:v.steps,children:t.length>1?`${e+1} / ${t.length}`:``}),(t[e].showNextButton??!0)&&l(fi,{className:v.nextButton,onClick:r,children:e===t.length-1?s(`common.labels.understand`):s(`common.labels.next`)})]})]})]})})},Sy=(0,J.createContext)({currentStep:0,tourSteps:[],isTourOpen:!1,startTour:()=>{},nextStep:()=>{},endTour:()=>{}}),dte=({children:e})=>{let{signedInUser:t}=xc(),[n,r]=(0,J.useState)(0),[i,a]=(0,J.useState)(!1),[o,s]=(0,J.useState)(()=>[]),c=`tourGuid`,u=(0,J.useCallback)(e=>{try{let n=localStorage.getItem(c);if(n){let r=JSON.parse(n)?.[`${e}_${t.id}`];if(r)return r}}catch{return null}return null},[t?.id]),f=(0,J.useCallback)((e,n)=>{let r=localStorage.getItem(c),i=r?JSON.parse(r):{};i[`${e}_${t.id}`]=n;let a=JSON.stringify(i);localStorage.setItem(c,a)},[t?.id]),p=(0,J.useCallback)((e,n)=>{if(!(!e||e?.length===0)){if(n&&t.id){let e=u(n.key);if(e&&e.showAgain===!1)return;f(n.key,{showAgain:n.showAgain})}r(0),a(!0),e&&s(()=>e),g(e[0].target)}},[]),m=()=>{n<o.length-1?(r(e=>e+1),g(o[n+1].target)):h()},h=()=>{a(!1),r(0)},g=e=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:`smooth`,block:`center`})};return d(Sy.Provider,{value:{currentStep:n,tourSteps:o,isTourOpen:i,startTour:p,nextStep:m,endTour:h},children:[e,o.length>0&&l(ute,{})]})},Cy=()=>(0,J.useContext)(Sy),wy=`/api/v1/`,Ty={recoverPasswordByMobile:{status:`idle`,data:null,success:null},loginByPassword:{status:`idle`,data:null,success:null},otp:{status:`idle`,data:null},registerUser:{status:`idle`,data:null},username:{status:`idle`,data:null},userInfo:{},lastLoginData:{data:null,status:`idle`},userExist:{data:null,status:`idle`}},Ey=H(`auth/lastLoginData`,async e=>await V({options:{apiVersion:wy,domainRoot:`users`,method:`lastLoginData`,path:`${e}/last-login`}})),Dy=H(`auth/recoverPasswordByMobile`,async e=>await V({options:{apiVersion:wy,domainRoot:`users`,method:`recoverPasswordByMobile`},data:e.data,headers:e.headers})),Oy=H(`auth/loginByPassword`,async e=>await V({options:{apiVersion:wy,domainRoot:`auth`,method:`login`},data:e.data})),ky=H(`auth/otp`,async e=>await V({options:{apiVersion:wy,domainRoot:`auth`,method:`otp`},data:e.data})),Ay=H(`auth/registerUser`,async e=>await V({options:{apiVersion:wy,domainRoot:`users`},data:e.data,headers:e.headers})),jy=H(`auth/username`,async e=>await V({options:{apiVersion:wy,domainRoot:`users`,method:`username`,path:`${e.path}`},data:e.data})),My=H(`auth/userExist`,async e=>{let{username:t}=e;return await V({options:{apiVersion:wy,domainRoot:`users`,method:`userExist`,path:t}})}),Ny=Ie({name:`auth`,initialState:Ty,reducers:{otpReset:e=>{let t=e;t.otp=Ty.otp},registerUserAsyncReset:e=>{let t=e;t.registerUser=Ty.registerUser},loginByPasswordReset:e=>{let t=e;t.loginByPassword=Ty.loginByPassword},recoverPasswordByMobileReset:e=>{let t=e;t.recoverPasswordByMobile=Ty.recoverPasswordByMobile},userInfoSet:(e,t)=>{let n=e;n.userInfo=t.payload},userExistAsyncReset:e=>{let t=e;t.userExist=Ty.userExist}},extraReducers:e=>{e.addCase(Dy.pending,e=>{let t=e;t.recoverPasswordByMobile.status=`loading`,t.recoverPasswordByMobile.success=null}).addCase(Dy.fulfilled,(e,t)=>{let n=e;n.recoverPasswordByMobile.status=`idle`,t.payload.success?(n.recoverPasswordByMobile.data=t.payload.data,n.recoverPasswordByMobile.success=t.payload?.success??!1):n.recoverPasswordByMobile.success=!1}).addCase(Dy.rejected,e=>{let t=e;t.recoverPasswordByMobile.status=`idle`,t.recoverPasswordByMobile.data={},t.recoverPasswordByMobile.success=!1}).addCase(Oy.pending,e=>{let t=e;t.loginByPassword.status=`loading`}).addCase(Oy.fulfilled,(e,t)=>{let n=e;n.loginByPassword.status=`idle`,n.loginByPassword.data=t.payload.data,n.loginByPassword.success=t.payload.success}).addCase(Oy.rejected,e=>{let t=e;t.loginByPassword.status=`idle`,t.loginByPassword.data={}}).addCase(ky.pending,e=>{let t=e;t.otp.status=`loading`}).addCase(ky.fulfilled,(e,t)=>{let n=e;n.otp.status=`idle`,n.otp.data=t.payload.data}).addCase(ky.rejected,(e,t)=>{let n=e;n.otp.status=`idle`,n.otp.data={success:!1}}).addCase(Ay.pending,e=>{let t=e;t.registerUser.status=`loading`}).addCase(Ay.fulfilled,(e,t)=>{let n=e;n.registerUser.status=`idle`,n.registerUser.data=t.payload}).addCase(Ay.rejected,(e,t)=>{let n=e;n.registerUser.status=`idle`,n.registerUser.data={success:!1}}).addCase(jy.pending,e=>{let t=e;t.username.status=`loading`}).addCase(jy.fulfilled,(e,t)=>{let n=e;n.username.status=`idle`,n.username.data=t.payload.data}).addCase(Ey.pending,e=>{let t=e;t.lastLoginData.status=`loading`}).addCase(Ey.fulfilled,(e,t)=>{let n=e;n.lastLoginData.status=`idle`,typeof t?.payload?.data==`string`?n.lastLoginData.data=Ee(new Date(t.payload.data)):n.lastLoginData.data=void 0}).addCase(My.pending,e=>{let t=e;t.userExist.status=`loading`}).addCase(My.fulfilled,(e,t)=>{let n=e;n.userExist.status=`idle`,n.userExist.data=t.payload.data}).addCase(My.rejected,e=>{let t=e;t.userExist.status=`idle`,t.userExist.data={success:!1}})}}),{otpReset:Py,loginByPasswordReset:Fy,registerUserAsyncReset:Iy,recoverPasswordByMobileReset:Ly,userInfoSet:Ry,userExistAsyncReset:fte}=Ny.actions,zy=Ny.reducer,By=({children:e})=>{let t=Qe(),[n,r]=(0,J.useState)(()=>{try{let e=localStorage.getItem(`tokens`);return e?JSON.parse(e):null}catch{return null}}),i=(0,J.useCallback)(e=>{e?localStorage.setItem(`tokens`,JSON.stringify(e)):t(Fy()),xe(),r(e)},[t]);return(0,J.useEffect)(()=>{xe()},[]),l(Xh.Provider,{value:{auth:n,setAuth:i},children:e})},Vy=null,Hy=()=>(Vy||=new Worker(new URL(`/assets/socket.worker-9bqfjayA.js`,``+import.meta.url),{type:`module`}),Vy),Uy=e=>
2324{let[t,n]=(0,J.useState)(Hy()),r=(0,J.useRef)(e),i=(0,J.useCallback)(()=>{Vy&&=(Vy.terminate(),null);let t=Hy();n(t),t?.postMessage({command:`init`,query:{userId:e}})},[e]);return(0,J.useEffect)(()=>{e&&(r.current=e,t?.postMessage({command:`init`,query:{userId:e}}))},[e,t]),(0,J.useEffect)(()=>{let e=()=>{document.hidden||t?.postMessage({command:`reconnectIfNeeded`})};return document.addEventListener(`visibilitychange`,e),()=>{document.removeEventListener(`visibilitychange`,e)}},[t]),{worker:t,resetWorker:i}},Wy=({children:e})=>{let t=Qe(),n=Xe(e=>e.auth),[r,i]=(0,J.useState)(()=>{try{let e=localStorage.getItem(`user`);return e?JSON.parse(e):null}catch{return null}}),a=(0,J.useCallback)(e=>{e?localStorage.setItem(`user`,JSON.stringify(e)):t(Fy()),i(e)},[t]);return l(bc.Provider,{value:{signedInUser:r,setSignedInUser:a,auth:n},children:e})},Gy=({children:e})=>{let[t,n]=(0,J.useState)(``),[r,i]=(0,J.useState)(``),[a,o]=(0,J.useState)(!1),[s,c]=(0,J.useState)(!1),[u,d]=(0,J.useState)(!1),[f,p]=(0,J.useState)(!1),[m,h]=(0,J.useState)(!1),[g,_]=(0,J.useState)(!1),[v,y]=(0,J.useState)(null),[b,x]=(0,J.useState)(null),[S,C]=(0,J.useState)([]),[w,T]=(0,J.useState)([]),[E,D]=(0,J.useState)(``),[O,k]=(0,J.useState)(!1),[A,j]=(0,J.useState)(!1),[M,N]=(0,J.useState)(null),[P,F]=(0,J.useState)(null),[I,ee]=(0,J.useState)(!1),[L,R]=(0,J.useState)(!1),[z,te]=(0,J.useState)(!1),{signedInUser:ne}=xc(),{worker:re,resetWorker:ie}=Uy(ne?.id),ae={showSideBar:a,setShowSideBar:o,showAppBar:s,setShowAppBar:c,title:t,setTitle:n,iconTopBar:r,setIconTopBar:i,showBottomBar:u,setShowBottomBar:d,isReadOnlyPositionSelection:m,setIsReadOnlyPositionSelection:h,showPositionSelection:f,setShowPositionSelection:p,showBreadcrumbs:g,setShowBreadcrumbs:_,ignoreBreadcrumb:v,setIgnoreBreadcrumb:y,breadcrumbsInfo:b,setBreadcrumbsInfo:x,sideMenus:w,setSideMenus:T,backURL:E,setBackURL:D,bottomBarMenus:S,setBottomBarMenus:C,isGuidePage:O,setIsGuidePage:k,showBackButton:A,setShowBackButton:j,selectedPosition:M,setSelectedPosition:N,commandName:P,openCheckStatusOveredDialog:I,handleOpenCheckStatusOveredDialog:(0,J.useCallback)(e=>{F(e),ee(!0)},[]),handleCloseCheckStatusOveredDialog:(0,J.useCallback)(()=>{F(null),ee(!1)},[]),openTaskDialog:L,setOpenTaskDialog:R,openMeetingDialog:z,setOpenMeetingDialog:te,awSocket:re,resetWorker:ie};return l(mg.Provider,{value:ae,children:e})},Ky=`/api/v1/`,qy={allGrantedEmployees:{status:`idle`,data:null,error:null},addUserAccess:{status:`idle`,data:null,dataPending:[],error:null},removeUserAccess:{status:`idle`,data:null,dataPending:[],error:null}},Jy=H(`cartables/allGrantedEmployees`,async({organizationId:e,queryObject:t},n)=>await V({options:{apiVersion:Ky,domainRoot:`cartables`,method:`grantedUsers`,path:`organizations/${e}`,queryObject:t}})),Yy=H(`cartables/addUserAccess`,async({userId:e,organizationId:t},n)=>await V({options:{apiVersion:Ky,domainRoot:`cartables`,method:`grant`},data:{user:{id:e},organization:{id:t}}})),Xy=H(`cartables/removeUserAccess`,async({userId:e,organizationId:t},n)=>await V({options:{apiVersion:Ky,domainRoot:`cartables`,method:`revoke-access`},data:{user:{id:e},organization:{id:t}}})),Zy=Ie({name:`cartables`,initialState:qy,reducers:{allGrantedEmployeesReset:e=>{let t=e;t.allGrantedEmployees=qy.allGrantedEmployees},addUserAccessReset:e=>{let t=e;t.addUserAccess=qy.addUserAccess},removeUserAccessReset:e=>{let t=e;t.removeUserAccess=qy.removeUserAccess}},extraReducers:e=>{e.addCase(Jy.pending,(e,t)=>{let n=e;n.allGrantedEmployees.status=`loading`}).addCase(Jy.fulfilled,(e,t)=>{let n=e;n.allGrantedEmployees.status=`idle`,t.payload.success?n.allGrantedEmployees.data=t.payload.data:n.allGrantedEmployees.data=null}).addCase(Jy.rejected,e=>{let t=e;t.allGrantedEmployees.status=`idle`,t.allGrantedEmployees.data=null}).addCase(Yy.pending,e=>{let t=e;t.addUserAccess.status=`loading`}).addCase(Yy.fulfilled,(e,t)=>{let n=e;n.addUserAccess.status=`idle`,n.addUserAccess.data=t.payload.data}).addCase(Yy.rejected,e=>{let t=e;t.addUserAccess.status=`idle`,t.addUserAccess.data={success:!1}}).addCase(Xy.pending,e=>{let t=e;t.removeUserAccess.status=`loading`}).addCase(Xy.fulfilled,(e,t)=>{let n=e;n.removeUserAccess.status=`idle`,n.removeUserAccess.data=t.payload.data}).addCase(Xy.rejected,e=>{let t=e;t.removeUserAccess.status=`idle`,t.removeUserAccess.data={success:!1}})}}),{allGrantedEmployeesReset:Qy,addUserAccessReset:pte,removeUserAccessReset:mte}=Zy.actions,$y=Zy.reducer,eb=e=>{let t=`/api/v1/`,n={allGrantedEmployees:{status:`idle`,data:null,error:null},addUserAccess:{status:`idle`,data:null,dataPending:[],error:null},removeUserAccess:{status:`idle`,data:null,dataPending:[],error:null}},r=H(`cartables/allGrantedEmployees`,async({organizationId:n,queryObject:r})=>await V({options:{apiVersion:t,domainRoot:e,method:`grantedUsers`,path:`organizations/${n}`,queryObject:r}})),i=H(`cartables/addUserAccess`,async({userId:n,organizationId:r})=>await V({options:{apiVersion:t,domainRoot:e,method:`grant`},data:{user:{id:n},organization:{id:r}}})),a=H(`cartables/removeUserAccess`,async({userId:n,organizationId:r})=>await V({options:{apiVersion:t,domainRoot:e,method:`revoke-access`},data:{user:{id:n},organization:{id:r}}})),o=Ie({name:`cartables`,initialState:n,reducers:{allGrantedEmployeesReset:e=>{let t=e;t.allGrantedEmployees=n.allGrantedEmployees},addUserAccessReset:e=>{let t=e;t.addUserAccess=n.addUserAccess},revokeUserAccessReset:e=>{let t=e;t.removeUserAccess=n.removeUserAccess}},extraReducers:e=>{e.addCase(r.pending,(e,t)=>{let n=e;n.allGrantedEmployees.status=`loading`}).addCase(r.fulfilled,(e,t)=>{let n=e;n.allGrantedEmployees.status=`idle`,t.payload.success?n.allGrantedEmployees.data=t.payload.data:n.allGrantedEmployees.data=null}).addCase(r.rejected,e=>{let t=e;t.allGrantedEmployees.status=`idle`,t.allGrantedEmployees.data=null}).addCase(i.pending,e=>{let t=e;t.addUserAccess.status=`loading`}).addCase(i.fulfilled,(e,t)=>{let n=e;n.addUserAccess.status=`idle`,n.addUserAccess.data=t.payload.data}).addCase(i.rejected,e=>{let t=e;t.addUserAccess.status=`idle`,t.addUserAccess.data={success:!1}}).addCase(a.pending,e=>{let t=e;t.removeUserAccess.status=`loading`}).addCase(a.fulfilled,(e,t)=>{let n=e;n.removeUserAccess.status=`idle`,n.removeUserAccess.data=t.payload.data}).addCase(a.rejected,e=>{let t=e;t.removeUserAccess.status=`idle`,t.removeUserAccess.data={success:!1}})}}),{allGrantedEmployeesReset:s,addUserAccessReset:c,revokeUserAccessReset:l}=o.actions;return{slice:o,reducer:o.reducer,allGrantedEmployeesAsync:r,allGrantedEmployeesReset:s,addUserAccessAsync:i,addUserAccessReset:c,revokeUserAccessAsync:a,revokeUserAccessReset:l}},tb=`correspondenceCartablesUsers`,{addUserAccessAsync:nb,addUserAccessReset:rb,allGrantedEmployeesAsync:ib,allGrantedEmployeesReset:ab,revokeUserAccessAsync:ob,revokeUserAccessReset:sb,reducer:cb}=eb(`cartables`),lb=`meetingCartablesUsers`,{addUserAccessAsync:ub,addUserAccessReset:db,allGrantedEmployeesAsync:fb,allGrantedEmployeesReset:pb,revokeUserAccessAsync:mb,revokeUserAccessReset:hb,reducer:gb}=eb(`meeting-cartables`),_b=`taskCartablesUsers`,{addUserAccessAsync:vb,addUserAccessReset:yb,allGrantedEmployeesAsync:bb,allGrantedEmployeesReset:xb,revokeUserAccessAsync:Sb,revokeUserAccessReset:Cb,reducer:wb}=eb(`task-cartables`),Tb=(e,t,n)=>{let r=t.trim().toLowerCase();return{organizationId:n.trim(),id:``,preferences:(e??[]).map(e=>{let t=(e.channels??[]).find(e=>e.name?.trim().toLowerCase()===`sms`);return{solution:r,context:e.name?.trim()??``,channels:(e.channels??[]).map(e=>
2324e.name?.trim()??``).filter(Boolean),isReadonly:t?.isReadOnly===!0}})}},Eb=e=>({...Tb(e.contexts??[],e.solution??``,e.organizationId??``),id:e.id??``}),Db={smsPreference:{status:`idle`,data:null,error:null},smsPreferenceSave:{status:`idle`,error:null}},Ob=`smsPreference`,kb=H(`settings/sms-solution-config`,async({solution:e,organizationId:t})=>{if(!e?.trim())throw Error(`Missing solution for SMS notification config`);let n=e.trim(),r=t?.trim();return await V({options:{apiVersion:`/api/v1/`,domainRoot:`notifications`,method:`solutionNotificationConfig`,path:r?`organizations/${r}/solutions/${encodeURIComponent(n)}/preferences-list`:`solutions/${encodeURIComponent(n)}/preferences-list`}})}),Ab=H(`settings/sms-preference`,async({organizationId:e,solution:t})=>{if(!e?.trim()||!t?.trim())throw Error(`Missing organizationId or solution for SMS preference`);let n=e.trim(),r=t.trim();return await V({options:{apiVersion:`/api/v1/`,domainRoot:`notifications`,method:`organizationPreference`,path:`organizations/${n}/solutions/${encodeURIComponent(r)}/preferences`}})}),jb=H(`settings/sms-preference-update`,async({organizationId:e,solution:t,contexts:n},{dispatch:r})=>{if(!e?.trim()||!t?.trim())throw Error(`Missing organizationId or solution for SMS preference update`);let i=e.trim(),a=t.trim(),o=await V({options:{apiVersion:`/api/v1/`,domainRoot:`notifications`,method:`organizationPreferencePatch`,path:`organizations/${i}/preferences`},data:{organizationId:i,contexts:n}});return o?.success&&await r(Ab({organizationId:i,solution:a})),o}),Mb=Ie({name:Ob,initialState:Db,reducers:{smsPreferenceReset:e=>{e.smsPreference=Db.smsPreference,e.smsPreferenceSave=Db.smsPreferenceSave}},extraReducers:e=>{e.addCase(Ab.pending,e=>{e.smsPreference.status=`loading`,e.smsPreference.error=null}).addCase(Ab.fulfilled,(e,t)=>{if(e.smsPreference.status=`idle`,t.payload?.success){let n=t.payload.data,{organizationId:r,solution:i}=t.meta.arg;Array.isArray(n)&&r?.trim()&&i?.trim()?e.smsPreference.data=Tb(n,i,r):n&&!Array.isArray(n)?e.smsPreference.data=n:e.smsPreference.data={organizationId:t.meta.arg.organizationId?.trim()??``,id:``,preferences:[]},e.smsPreference.error=null;return}e.smsPreference.data=null,e.smsPreference.error=t.payload}).addCase(Ab.rejected,(e,t)=>{e.smsPreference.status=`idle`,e.smsPreference.data=null,e.smsPreference.error=t.error}).addCase(kb.pending,e=>{e.smsPreference.status=`loading`,e.smsPreference.error=null}).addCase(kb.fulfilled,(e,t)=>{if(e.smsPreference.status=`idle`,t.payload?.success){let n=t.payload.data;e.smsPreference.data=n?Eb(n):null,e.smsPreference.error=null;return}e.smsPreference.data=null,e.smsPreference.error=t.payload}).addCase(kb.rejected,(e,t)=>{e.smsPreference.status=`idle`,e.smsPreference.data=null,e.smsPreference.error=t.error}).addCase(jb.pending,e=>{e.smsPreferenceSave.status=`loading`,e.smsPreferenceSave.error=null}).addCase(jb.fulfilled,(e,t)=>{e.smsPreferenceSave.status=`idle`,t.payload?.success?e.smsPreferenceSave.error=null:e.smsPreferenceSave.error=t.payload}).addCase(jb.rejected,(e,t)=>{e.smsPreferenceSave.status=`idle`,e.smsPreferenceSave.error=t.error})}}),{smsPreferenceReset:Nb}=Mb.actions,Pb=Mb.reducer;function Fb(e){return!!(e?.content?.trim()||e?.attachments?.[0]?.name)}
2324var Ib=e=>typeof e==`string`&&e?e:``;function Lb(e){if(!e||typeof e!=`object`)return;let t=e,n=Ib(t.messageId)||Ib(t.message_id),r=Ib(t.conversationId)||Ib(t.conversation_id),i=Ib(t.originalSenderId)||Ib(t.original_sender_id);if(!(!n&&!r&&!i))return{messageId:n,conversationId:r,originalSenderId:i}}function Rb(e){if(e)return Lb(e.forwardedFrom??e.forwarded_from)}var zb=(e,t)=>!e||!t?!1:e.id&&t.id?e.id===t.id:!!e.content&&e.content===t.content&&(!e.senderId||!t.senderId||e.senderId===t.senderId);function Bb(e,t){if(!t&&!e)return;if(!t)return e??void 0;if(!e)return{...t,forwardedFrom:Rb(t)};if(Fb(e)&&!Fb(t))return{...e,forwardedFrom:Rb(e)||Rb(t)};let n=t.sequenceNumber||0,r=e.sequenceNumber||0,i=Date.parse(t.createdAt||``)||0,a=Date.parse(e.createdAt||``)||0,o=n>r||i>a,s=o?t:e,c=o?e:t;if(!zb(s,c))return{...s,content:s.content||``,attachments:s.attachments||[],forwardedFrom:Rb(s)};let l=!!(s.id&&c.id&&s.id===c.id);return{...s,id:s.id||c.id,senderId:s.senderId||c.senderId,content:s.content||c.content||``,attachments:s.attachments?.length?s.attachments:c.attachments,forwardedFrom:Rb(s)||(l?Rb(c):void 0)}}var Vb=`/api/v1/`,Hb={byConversation:{}},Ub=H(`messages/createMessage`,async e=>await V({options:{apiVersion:Vb,domainRoot:`chat`,method:`createMessage`,path:`/messages`},data:e})),Wb=e=>{if(!e)return[];let t=[];if(Array.isArray(e))t=e;else{let n=e;t=Array.isArray(n.messages)?n.messages:n.message&&typeof n.message==`object`?[n.message]:[e]}return t.map(e=>({...e,forwardedFrom:Rb(e)??e.forwardedFrom}))},Gb=H(`messages/forwardMessages`,async e=>await V({options:{apiVersion:Vb,domainRoot:`chat`,method:`forwardMessages`,path:`/messages/forwards`},data:e})),Kb=H(`messages/deliveredMessage`,async e=>{let{messageId:t,conversationId:n,participantId:r}=e;return await V({options:{apiVersion:Vb,domainRoot:`chat`,method:`deliveredMessage`,path:`/messages/${t}/conversations/${n}/participants/${r}/delivered`},data:{}})}),qb=H(`messages/readMessage`,async e=>{let{messageId:t,conversationId:n,participantId:r}=e;return await V({options:{apiVersion:Vb,domainRoot:`chat`,method:`readMessage`,path:`/messages/${t}/conversations/${n}/participants/${r}/read`},data:{}})}),Jb=H(`messages/bulkDeliveredMessage`,async e=>{let{conversationId:t,participantId:n}=e;return await V({options:{apiVersion:Vb,domainRoot:`chat`,method:`bulkDeliveredMessage`,path:`/messages/conversations/${t}/participants/${n}/delivered/bulk`},data:{conversationId:t,participantId:n}})}),Yb=H(`messages/bulkReadMessage`,async e=>{let{conversationId:t,participantId:n}=e;return await V({options:{apiVersion:Vb,domainRoot:`chat`,method:`bulkReadMessage`,path:`/messages/conversations/${t}/participants/${n}/read/bulk`},data:{conversationId:t,participantId:n}})}),Xb=H(`messages/fetchMessages`,async e=>{let{conversationId:t,cursor:n,direction:r,limit:i}=e;return await V({options:{apiVersion:Vb,domainRoot:`chat`,method:`fetchMessages`,path:`/messages/conversations/${t}`,queryObject:{cursor:n,direction:r,limit:i}}})}),Zb=Ie({name:`messages`,initialState:Hb,reducers:{addLocalMessage(e,t){let{conversationId:n,message:r}=t.payload,i=Rb(r),a=i?{...r,forwardedFrom:i}:r;e.byConversation[n]||(e.byConversation[n]={items:[],hasMore:!1,loading:!1,nextCursor:null});let o=e.byConversation[n].items,s=o.findIndex(e=>a.id&&e.id===a.id||a.clientMessageId&&e.clientMessageId===a.clientMessageId);s>=0?o[s]={...o[s],...a}:o.push(a)},removeLocalMessage(e,t){let{conversationId:n,clientMessageId:r}=t.payload,i=e.byConversation[n];i&&(i.items=i.items.filter(e=>e.clientMessageId!==r))},updateMessageState(e,t){let{conversationId:n,messageId:r,patch:i}=t.payload,a=e.byConversation[n];if(!a)return;let o=a.items.findIndex(e=>e.id===r||e.clientMessageId===r);o>=0&&(a.items[o]={...a.items[o],...i})},updateBulkMessageState(e,t){let{conversationId:n,fromSequenceNumber:r,toSequenceNumber:i,patch:a}=t.payload,o=e.byConversation[n];if(o)for(let e=0;e<o.items.length;e++){let t=o.items[e];t.sequenceNumber&&t.sequenceNumber>=r&&t.sequenceNumber<=i&&(o.items[e]={...t,...a})}},conversationMessagesReset(e,t){let{conversationId:n}=t.payload;e.byConversation[n]={items:[],hasMore:!1,loading:!1,nextCursor:null}}},extraReducers(e){e.addCase(Ub.fulfilled,(e,t)=>{if(!t.payload.success)return;let n=t.payload.data,r=n.conversationId;e.byConversation[r]||(e.byConversation[r]={items:[],hasMore:!1,loading:!1,nextCursor:null});let i=e.byConversation[r].items.findIndex(e=>e.clientMessageId&&e.clientMessageId===n.clientMessageId),a={id:n.id,sequenceNumber:n.sequenceNumber,status:t.payload.success?`sent`:`failed`,createdAt:new Date().toISOString()},o=e.byConversation[r];i>=0?o.items[i]={...o.items[i],...a}:o.items.push(n)}),e.addCase(Kb.fulfilled,(e,t)=>{if(!t.payload.success)return;let n=t.payload.data,r=n.conversationId;e.byConversation[r]||(e.byConversation[r]={items:[],hasMore:!1,loading:!1,nextCursor:null});let i=e.byConversation[r].items.findIndex(e=>e.id&&e.id===n.messageId),a=e.byConversation[r];i>=0&&(a.items[i].status=`delivered`)}),e.addCase(qb.fulfilled,(e,t)=>{if(!t.payload.success)return;let n=t.payload.data,r=n.conversationId;e.byConversation[r]||(e.byConversation[r]={items:[],hasMore:!1,loading:!1,nextCursor:null});let i=e.byConversation[r].items.findIndex(e=>e.id&&e.id===n.messageId),a=e.byConversation[r];i>=0&&(a.items[i].status=`read`)}),e.addCase(Xb.pending,(e,t)=>{let{conversationId:n}=t.meta.arg;e.byConversation[n]||(e.byConversation[n]={items:[],hasMore:!1,loading:!1,nextCursor:null}),e.byConversation[n].loading=!0}),e.addCase(Xb.fulfilled,(e,t)=>{let{conversationId:n}=t.meta.arg,{cursor:r,hasMore:i}=t.payload.meta.pagination;if(!e.byConversation[n])return;let a=e.byConversation[n];a.loading=!1,a.hasMore=i,a.nextCursor=r||null;let o=new Set(a.items.map(e=>
2324e.id).filter(Boolean)),s=new Set(a.items.map(e=>e.clientMessageId).filter(Boolean)),c=t.payload.data.sort((e,t)=>(e.sequenceNumber||0)-(t.sequenceNumber||0)).filter(e=>e.id&&o.has(e.id)||e.clientMessageId&&s.has(e.clientMessageId)?!1:!!e.id);c=c.map(e=>({...e,forwardedFrom:Rb(e),status:e?.state?.readAt?`read`:e?.state?.deliveredAt?`delivered`:`sent`})),a.items.push(...c)}),e.addCase(Jb.fulfilled,(e,t)=>{if(!t.payload.success)return;let n=t.meta.arg.conversationId,r=t.meta.arg.participantId;e.byConversation[n]&&e.byConversation[n].items.forEach(e=>{e.status===`sent`&&e.senderId!==r&&(e.status=`delivered`)})}),e.addCase(Yb.fulfilled,(e,t)=>{if(!t.payload.success)return;let n=t.meta.arg.conversationId,r=t.meta.arg.participantId;e.byConversation[n]&&e.byConversation[n].items.forEach(e=>{e.status===`delivered`&&e.senderId!==r&&(e.status=`read`)})})}}),{addLocalMessage:Qb,updateMessageState:$b,removeLocalMessage:ex,updateBulkMessageState:tx,conversationMessagesReset:nx}=Zb.actions,rx=Zb.reducer,ix=`/api/v1/`,ax={conversations:{data:[],error:null,status:`idle`,success:!1,meta:null,lastMessageHints:{}},activeConversation:{data:null,error:null,status:`idle`},selectedParticipantPresence:{data:null,error:null,status:`idle`},unreadCount:{data:0,status:`idle`},addGroupParticipantsStatus:`idle`},ox=e=>{if(!e)return null;let t=e.pagination;if(t)return{nextCursor:t.cursor??null,hasMore:t.hasMore??!1};let n=e;return`nextCursor`in n||`hasMore`in n?{nextCursor:n.nextCursor??null,hasMore:n.hasMore??!1}:null},sx=H(`conversations/getConversations`,async e=>{let{organizationId:t,participantId:n,limit:r,cursor:i,direction:a}=e;return await V({options:{apiVersion:ix,domainRoot:`chat`,method:`getConversations`,path:`/conversations/organizations/${t}/participant/${n}`,queryObject:{limit:r,cursor:i,direction:a}}})}),cx=H(`conversations/getByParticipants`,async e=>{let{organizationId:t,participantId:n}=e;return await V({options:{apiVersion:ix,domainRoot:`chat`,method:`getByParticipants`,path:`/conversations/organizations/${t}/participants/${n}`}})}),lx=H(`conversations/createConversation`,async e=>{let{silent:t,...n}=e;return await V({options:{apiVersion:ix,domainRoot:`chat`,method:`createConversation`,path:`/conversations`},data:n})}),ux=H(`conversations/getGroupConversation`,async({conversationId:e,organizationId:t,participantId:n})=>await V({options:{apiVersion:ix,domainRoot:`chat`,method:`getGroupConversation`,path:`/conversations/${e}/organization/${t}/participant/${n}/group`}})),dx=H(`conversations/updateGroupTitle`,async({conversationId:e,name:t})=>await V({options:{apiVersion:ix,domainRoot:`chat`,method:`updateGroupTitle`,path:`/conversations/${e}`},data:{id:e,name:t}})),fx=H(`conversations/addGroupParticipants`,async({conversationId:e,participantIds:t})=>await V({options:{apiVersion:ix,domainRoot:`chat`,method:`addGroupParticipants`,path:`/conversations/${e}/group/participants/add`},data:{id:e,participantIds:t}})),px=H(`conversations/removeGroupParticipants`,async({conversationId:e,participantIds:t})=>await V({options:{apiVersion:ix,domainRoot:`chat`,method:`removeGroupParticipants`,path:`/conversations/${e}/group/participants/remove`},data:{id:e,participantIds:t}})),mx=H(`conversations/leaveGroup`,async({conversationId:e,participantId:t})=>await V({options:{apiVersion:ix,domainRoot:`chat`,method:`leaveGroup`,path:`/conversations/${e}/group/participants/leave`},data:{id:e,participantId:t}})),hx=H(`conversations/getUserPresence`,async e=>await V({options:{apiVersion:ix,domainRoot:`presence`,method:`getUserPresence`,path:`/users/${e}`}})),gx=H(`messages/getUnreadMessagesCount`,async({organizationId:e,participantId:t})=>await V({options:{apiVersion:ix,domainRoot:`chat`,method:`getUnreadMessagesCount`,path:`/messages/organization/${e}/participant/${t}/unread-count`},headers:{"X-Organization":e}})),_x=(e,t,n)=>{!t||!Fb(n)||!n||(e.conversations.lastMessageHints||(e.conversations.lastMessageHints={}),e.conversations.lastMessageHints[t]=n)},vx=(e,t)=>{e.conversations.lastMessageHints||(e.conversations.lastMessageHints={});let n=e.conversations.data,r=new Map(n.map((e,t)=>[e.id,t]));t.forEach(t=>{let i=t.id==null?void 0:r.get(t.id),a=i==null?void 0:n[i],o=Bb(Bb(t.id?e.conversations.lastMessageHints[t.id]:void 0,a?.lastMessage),t.lastMessage),s={...a,...t,lastMessage:o};
2324_x(e,t.id,o),i==null?(n.push(s),t.id&&r.set(t.id,n.length-1)):n[i]=s})},yx=Ie({name:`conversations`,initialState:ax,reducers:{fetchConversationsReset(e){let t=e.conversations.lastMessageHints??{};e.conversations={...ax.conversations,lastMessageHints:t}},getConversationByParticipantIdReset(e){e.activeConversation=ax.activeConversation},getAllUnreadMessagesReset(e){e.unreadCount=ax.unreadCount}},extraReducers(e){e.addCase(sx.pending,(e,t)=>{e.conversations.error=null,t.meta.arg.cursor??(e.conversations.meta=null),e.conversations.status=`pending`}),e.addCase(sx.fulfilled,(e,t)=>{let n=t.payload;e.conversations.success=n.success,n.success&&Array.isArray(n.data)&&vx(e,n.data),e.conversations.error=n.success?null:n.error,e.conversations.meta=ox(n.meta),e.conversations.status=`idle`}),e.addCase(sx.rejected,(e,t)=>{let n=t.payload;e.conversations.error=t.error?.message??`Failed to load`,e.conversations.meta=ox(n?.meta),e.conversations.status=`failed`,e.conversations.success=!1}),e.addCase(cx.pending,(e,t)=>{t.meta.arg.silent||(e.activeConversation.error=null,e.activeConversation.data=null,e.activeConversation.status=`pending`)}),e.addCase(cx.fulfilled,(e,t)=>{if(t.meta.arg.silent)return;let n=t.payload;e.activeConversation.data=n.data,e.activeConversation.status=`idle`}),e.addCase(cx.rejected,(e,t)=>{if(t.meta.arg.silent)return;let n=t.payload;e.activeConversation.error=n.error?.message??`Failed to find conversation`,e.activeConversation.status=`failed`}),e.addCase(lx.pending,(e,t)=>{t.meta.arg.silent||(e.activeConversation.error=null,e.activeConversation.data=null,e.activeConversation.status=`pending`)}),e.addCase(lx.fulfilled,(e,t)=>{let n=t.payload;t.meta.arg.silent||(e.activeConversation.data=n.data,e.activeConversation.status=`idle`),n.success&&n.data&&(e.conversations.data=[n.data,...e.conversations.data])}),e.addCase(lx.rejected,(e,t)=>{t.meta.arg.silent||(e.activeConversation.error=t.error?.message??`Failed to create conversation`,e.activeConversation.status=`failed`)});let t=(e,t,n,r)=>{let i=e=>{n.name!==void 0&&(e.name=n.name),n.participantIds!==void 0&&(e.participantIds=n.participantIds)},a=e.conversations.data.find(e=>e.id===t);a&&i(a),e.activeConversation.data?.id===t&&i(e.activeConversation.data),r?.id===t&&(a&&Object.assign(a,r),e.activeConversation.data?.id===t&&(e.activeConversation.data={...e.activeConversation.data,...r}))};e.addCase(dx.fulfilled,(e,n)=>{if(!n.payload.success)return;let{conversationId:r,name:i}=n.meta.arg,a=n.payload.data;t(e,r,{name:i},a)}),e.addCase(fx.pending,e=>{e.addGroupParticipantsStatus=`pending`}),e.addCase(fx.fulfilled,(e,n)=>{if(e.addGroupParticipantsStatus=`idle`,!n.payload.success)return;let{conversationId:r,participantIds:i}=n.meta.arg,a=e=>{let t=e.participantIds??[];e.participantIds=[...new Set([...t,...i])]},o=e.conversations.data.find(e=>e.id===r);o&&a(o),e.activeConversation.data?.id===r&&a(e.activeConversation.data);let s=n.payload.data;t(e,r,{},s)}),e.addCase(fx.rejected,e=>{e.addGroupParticipantsStatus=`idle`}),e.addCase(px.fulfilled,(e,n)=>{if(!n.payload.success)return;let{conversationId:r,participantIds:i}=n.meta.arg,a=new Set(i),o=e=>{e.participantIds=(e.participantIds??[]).filter(e=>!a.has(e))},s=e.conversations.data.find(e=>e.id===r);s&&o(s),e.activeConversation.data?.id===r&&o(e.activeConversation.data);let c=n.payload.data;t(e,r,{},c)}),e.addCase(mx.fulfilled,(e,t)=>{if(!t.payload.success)return;let{conversationId:n}=t.meta.arg;e.conversations.data=e.conversations.data.filter(e=>e.id!==n),e.activeConversation.data?.id===n&&(e.activeConversation.data=null)}),e.addCase(hx.pending,e=>{e.selectedParticipantPresence.error=null,e.selectedParticipantPresence.status=`pending`}),e.addCase(hx.fulfilled,(e,t)=>{let n=t.payload;e.selectedParticipantPresence.data=n.data,e.selectedParticipantPresence.status=`idle`}),e.addCase(hx.rejected,(e,t)=>{e.selectedParticipantPresence.error=t.error?.message??`Failed to fetch presence`,e.selectedParticipantPresence.status=`failed`}),e.addCase(Qb,(e,t)=>{e.conversations.meta=null;let{conversationId:n,message:r}=t.payload,i=e.conversations.data,a=i.findIndex(e=>e.id===n);if(a>=0){let t=i[a],o=Bb(t.lastMessage,{id:r.id||r.clientMessageId||``,senderId:r.senderId||``,content:r.content||``,sequenceNumber:r.sequenceNumber||0,createdAt:r.createdAt||new Date().toISOString(),status:r.status,attachments:r.attachments||[],forwardedFrom:Rb(r)});if(t.lastMessage=o,t.updatedAt=r.createdAt||new Date().toISOString(),_x(e,n,o),a!==0){let[e]=i.splice(a,1);i.unshift(e)}}}),e.addCase($b,(e,t)=>{e.conversations.meta=null;let{conversationId:n,messageId:r,patch:i}=t.payload,a=e.conversations.data.find(e=>e.id===n);a?.lastMessage&&a.lastMessage.id===r&&i.status&&(a.lastMessage.status=i.status)}),e.addCase(Ub.fulfilled,(e,t)=>{if(!t.payload.success)return;e.conversations.meta=null;let n=t.payload.data,r=e.conversations.data.find(e=>e.id===n.conversationId);r?.lastMessage&&(r.lastMessage.id===n.clientMessageId||r.lastMessage.id===n.id)&&(r.lastMessage.id=n.id||r.lastMessage.id,r.lastMessage.status=`sent`,n.sequenceNumber&&(r.lastMessage.sequenceNumber=n.sequenceNumber))}),e.addCase(Kb.fulfilled,(e,t)=>{if(!t.payload.success)return;e.conversations.meta=null;let{messageId:n,conversationId:r}=t.meta.arg,i=e.conversations.data.find(e=>e.id===r);i?.lastMessage&&(i.lastMessage.id===n&&(i.lastMessage.status=`delivered`,i.unreadCount=(i.unreadCount||0)+1),e.unreadCount.data=(e.unreadCount.data||0)+1)}),e.addCase(qb.fulfilled,(e,t)=>{if(!t.payload.success)return;e.conversations.meta=null;let{messageId:n,conversationId:r}=t.meta.arg,i=e.conversations.data.find(e=>e.id===r);i?.lastMessage&&(i.lastMessage.id===n&&(i.lastMessage.status=`read`,i.unreadCount=Math.max((i.unreadCount||0)-1,0)),e.unreadCount.data=Math.max((e.unreadCount.data||0)-1,0))}),e.addCase(tx,(e,t)=>{e.conversations.meta=null;let{conversationId:n,fromSequenceNumber:r,toSequenceNumber:i,patch:a}=t.payload,o=e.conversations.data.find(e=>e.id===n);if(o?.lastMessage){let e=o.lastMessage.sequenceNumber;e&&e>=r&&e<=i&&(o.lastMessage.status=a.status)}}),e.addCase(Yb.fulfilled,(e,t)=>{if(!t.payload.success)return;e.conversations.meta=null;let{conversationId:n,count:r}=t.meta.arg,i=e.conversations.data.find(e=>e.id===n);i?.lastMessage&&(i.unreadCount=Math.max(r?(i.unreadCount||0)-r:i.unreadCount||0,0),i.lastMessage.status=`read`),e.unreadCount.data=Math.max(r?(e.unreadCount.data||0)-r:e.unreadCount.data||0,0)}),e.addCase(gx.fulfilled,(e,t)=>{e.unreadCount.status=`success`,e.unreadCount.data=t.payload.data?.unreadCount||0}),e.addCase(gx.pending,e=>{e.unreadCount.status=`pending`})}}),{fetchConversationsReset:bx,getConversationByParticipantIdReset:xx,getAllUnreadMessagesReset:Sx}=yx.actions,Cx=yx.reducer,wx=U({conversations:Cx,messages:rx}),Tx=`/api/v1/`,Ex=`corr-samples`,Dx={createCorrespondenceSample:{status:`idle`,data:null},correspondenceSamplesList:{status:`idle`,data:null},correspondenceSample:{status:`idle`,data:null},deleteCorrespondenceSample:{status:`idle`,data:null},createForwardNoteSample:{status:`idle`,data:null,success:!1},forwardNoteSamples:{status:`idle`,data:null,success:!1},deleteForwardNoteSample:{status:`idle`,data:null,success:!1}},Ox=H(`corr-samples/correspondenceSamplesList`,async e=>{let{organizationId:t,queryObject:n}=e;return await V({options:{apiVersion:Tx,domainRoot:Ex,method:`correspondenceSamplesList`,path:`organization/${t}`,queryObject:n}})},{condition:(e,t)=>!(t.getState().correspondenceSamples.correspondenceSamplesList.status===`pen
2324ding`||t.getState().correspondenceSamples.correspondenceSamplesList.data)}),kx=H(`corr-samples/createCorrespondenceSample`,async e=>{let{data:t}=e;return await V({options:{apiVersion:Tx,domainRoot:Ex,method:`createCorrespondenceSample`},data:t})}),Ax=H(`corr-samples/deleteCorrespondenceSample`,async e=>{let{id:t}=e;return await V({options:{apiVersion:Tx,domainRoot:Ex,method:`deleteCorrespondenceSample`,path:t},data:{id:t}})}),jx=H(`corr-samples/correspondenceSample`,async e=>{let{organizationId:t,id:n}=e;return await V({options:{apiVersion:Tx,domainRoot:Ex,method:`correspondenceSample`,path:`organization/${t}/${n}`}})}),Mx=H(`corr-samples/createForwardNoteSample`,async e=>{let{requester:t,...n}=e;return await V({options:{apiVersion:Tx,domainRoot:Ex,method:`createForwardNoteSample`,path:`forward-notes`,queryObject:{requester:`${t.position.id}_${t.position.slot?.join(`-`)}`}},data:n})}),Nx=H(`corr-samples/forwardNoteSamples`,async({queryObject:e})=>{let{requester:t,...n}=e;return await V({options:{apiVersion:Tx,domainRoot:Ex,method:`forwardNoteSamples`,path:`forward-notes`,queryObject:{requester:`${t.position.id}_${t.position.slot?.join(`-`)}`,limit:n.limit??null,offset:n.offset??null}}})}),Px=H(`corr-samples/deleteForwardNoteSample`,async e=>{let{id:t,requester:n}=e,r=`${n.position.id}_${n.position.slot?.join(`-`)}`;return await V({options:{apiVersion:Tx,domainRoot:Ex,method:`deleteForwardNoteSample`,path:`forward-notes/${t}`,queryObject:{requester:r}}})}),Fx=Ie({name:`corr-samples`,initialState:Dx,reducers:{correspondenceSamplesListReset:e=>{let t=e;t.correspondenceSamplesList=Dx.correspondenceSamplesList},createCorrespondenceSampleReset:e=>{let t=e;t.createCorrespondenceSample=Dx.createCorrespondenceSample},deleteCorrespondenceSampleReset:e=>{let t=e;t.deleteCorrespondenceSample=Dx.deleteCorrespondenceSample},correspondenceSampleReset:e=>{let t=e;t.correspondenceSample=Dx.correspondenceSample},forwardNoteSamplesReset:e=>{let t=e;t.forwardNoteSamples=Dx.forwardNoteSamples}},extraReducers:e=>{e.addCase(Ox.pending,e=>{let t=e;t.correspondenceSamplesList.status=`pending`}).addCase(Ox.fulfilled,(e,t)=>{let n=e;n.correspondenceSamplesList.status=`success`,n.correspondenceSamplesList.data=t.payload.data??[]}).addCase(Ox.rejected,e=>{let t=e;t.correspondenceSamplesList.status=`failed`,t.correspondenceSamplesList.data=null}).addCase(jx.pending,e=>{let t=e;t.correspondenceSample.status=`pending`}).addCase(jx.fulfilled,(e,t)=>{let n=e;n.correspondenceSample.status=`success`,n.correspondenceSample.data=t.payload.data}).addCase(jx.rejected,e=>{let t=e;t.correspondenceSample.status=`failed`,t.correspondenceSample.data=null}).addCase(kx.pending,e=>{let t=e;t.createCorrespondenceSample.status=`pending`}).addCase(kx.fulfilled,(e,t)=>{let n=e;t.payload?.success?(n.createCorrespondenceSample.status=`success`,n.createCorrespondenceSample.data=t.payload?.data):(n.createCorrespondenceSample.status=`failed`,n.createCorrespondenceSample.data=null)}).addCase(kx.rejected,e=>{let t=e;t.createCorrespondenceSample.status=`failed`,t.createCorrespondenceSample.data=null}).addCase(Ax.pending,e=>{let t=e;t.deleteCorrespondenceSample.status=`pending`}).addCase(Ax.fulfilled,(e,t)=>{let n=e;n.deleteCorrespondenceSample.status=`success`,n.deleteCorrespondenceSample.data=t.payload.data}).addCase(Ax.rejected,e=>{let t=e;t.deleteCorrespondenceSample.status=`failed`,t.deleteCorrespondenceSample.data=null}).addCase(Nx.pending,e=>{let t=e;t.forwardNoteSamples.status=`pending`}).addCase(Nx.fulfilled,(e,t)=>{let n=e;n.forwardNoteSamples.status=`idle`,n.forwardNoteSamples.data=t.payload.data,n.forwardNoteSamples.success=t.payload.success}).addCase(Mx.pending,e=>{let t=e;t.createForwardNoteSample.status=`pending`}).addCase(Mx.fulfilled,(e,t)=>{let n=e;n.createForwardNoteSample.status=`idle`,n.createForwardNoteSample.data=t.payload.data,n.createForwardNoteSample.success=t.payload.success}).addCase(Px.pending,e=>{let t=e;t.deleteForwardNoteSample.status=`pending`}).addCase(Px.fulfilled,(e,t)=>{let n=e;n.deleteForwardNoteSample.status=`idle`,n.deleteForwardNoteSample.data=t.payload.data,n.deleteForwardNoteSample.
2324success=t.payload.success})}}),{createCorrespondenceSampleReset:Ix,deleteCorrespondenceSampleReset:hte,correspondenceSampleReset:gte,correspondenceSamplesListReset:Lx,forwardNoteSamplesReset:Rx}=Fx.actions,zx=Fx.reducer,Bx=({domainRoot:e,reducerName:t})=>{let n=`/api/v1/`,r={exchangeRegistry:{status:`idle`,data:null},changeExchangeRegistry:{status:`idle`,data:null},exchangeRegistryPermissions:{status:`idle`,data:null}},i=H(`${t}/changeExchangeRegistry`,async t=>{let{positionId:r,data:i}=t;return await V({options:{apiVersion:n,domainRoot:e,method:`changeExchangeRegistry`,path:`${r}`},data:i})}),a=H(`${t}/exchangeRegistry`,async t=>{let{organizationId:r,positionId:i,slot:a}=t;return await V({options:{apiVersion:n,domainRoot:e,method:`exchangeRegistry`,path:`organization/${r}/position-slot/${`${i}_${a?.join?.(`-`)}`}`}})}),o=H(`${t}/exchangeRegistryPermissions`,async t=>{let{type:r,organizationId:i,positionId:a,slot:o}=t;return await V({options:{apiVersion:n,domainRoot:e,method:`exchangeRegistryPermissions`,path:`${r}-permissions/organization/${i}/position-slot/${`${a}_${o?.join?.(`-`)}`}`}})}),s=Ie({name:t,initialState:r,reducers:{changeExchangeRegistryReset:e=>{let t=e;t.changeExchangeRegistry=r.changeExchangeRegistry},exchangeRegistryReset:e=>{let t=e;t.exchangeRegistry=r.exchangeRegistry},exchangeRegistryPermissionsReset:e=>{let t=e;t.exchangeRegistryPermissions=r.exchangeRegistryPermissions}},extraReducers:e=>e.addCase(i.pending,e=>{e.changeExchangeRegistry.status=`pending`}).addCase(i.fulfilled,(e,t)=>{let n=e;t?.payload?.success?n.changeExchangeRegistry.status=`success`:n.changeExchangeRegistry.status=`failed`}).addCase(i.rejected,e=>{e.changeExchangeRegistry.status=`failed`}).addCase(a.pending,e=>{e.exchangeRegistry.status=`pending`}).addCase(a.fulfilled,(e,t)=>{let n=e;t.payload.success?t.payload.data.id?(n.exchangeRegistry.data=t.payload.data,n.exchangeRegistry.status=`success`):(n.exchangeRegistry.data=null,n.exchangeRegistry.status=`success`):(n.exchangeRegistry.data=null,n.exchangeRegistry.status=`failed`)}).addCase(a.rejected,(e,t)=>{}).addCase(o.pending,e=>{let t=e;t.exchangeRegistryPermissions.status=`pending`}).addCase(o.fulfilled,(e,t)=>{let n=e;n.exchangeRegistryPermissions.status=`idle`,n.exchangeRegistryPermissions.data=t.payload.data})}),{changeExchangeRegistryReset:c,exchangeRegistryPermissionsReset:l}=s.actions;return{slice:s,reducer:s.reducer,changeExchangeRegistryAsync:i,changeExchangeRegistryReset:c,exchangeRegistryAsync:a,exchangeRegistryPermissionsAsync:o,exchangeRegistryPermissionsReset:l}},Vx=`corr-exchange-registries`,{changeExchangeRegistryAsync:Hx,changeExchangeRegistryReset:_te,exchangeRegistryAsync:Ux,exchangeRegistryPermissionsAsync:Wx,exchangeRegistryPermissionsReset:Gx,reducer:Kx}=Bx({domainRoot:Vx,reducerName:Vx});function qx(e){return btoa(new TextEncoder().encode(e).reduce((e,t)=>e+String.fromCharCode(t),``))}function Jx(e){return qx(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}async function Yx(e){let t=await(await fetch(e)).blob();return new Promise((e,n)=>{let r=new FileReader;r.onloadend=()=>
2324e(r.result),r.onerror=n,r.readAsDataURL(t)})}var Xx=`/api/v1/`,Zx={contactsOrganization:{status:`idle`,data:null},createLetter:{status:`idle`,data:null},updateLetter:{status:`idle`,data:null},updateLetterTags:{data:null,status:`idle`,success:!1},letterNumber:{status:`idle`,data:null},selectedLetter:{status:`idle`,data:null},signLetter:{status:`idle`,data:null},ecsDialog:{data:null,open:!1},parseEce:{status:`idle`,data:null,meta:null},lettersNotExchangedList:{status:`idle`,data:null,meta:null},forwardedLetterToMeList:{status:`idle`,data:null,meta:null},forwardedLetterByMeList:{status:`idle`,data:null,meta:null},receiptedLetters:{status:`idle`,data:null,meta:null},forwardLetter:{status:`idle`,data:null,success:!1},terminateLetter:{status:`idle`,data:null},discardLetter:{status:`idle`,data:null},myCartableLettersList:{status:`idle`,data:null},endedLettersList:{status:`idle`,data:null},inProgressLettersList:{status:`idle`,data:null},terminatedLettersList:{status:`idle`,data:null},discardedLettersList:{status:`idle`,data:null},numberedLettersByIndicatorList:{status:`idle`,data:null},addLetterReceipt:{status:`idle`,data:null},editLetterReceipt:{status:`idle`,data:null},letterReceiptsList:{status:`idle`,data:null},resultsSearchList:{status:`idle`,data:null},letterHistory:{status:`idle`,data:null},sendECE:{status:`idle`,data:null},eceLettersList:{status:`idle`,data:null},allForwardedLetters:{status:`idle`,data:null,meta:null},lettersOrganizationDashboard:{status:`idle`,data:null},revertForwardLetter:{status:`idle`,data:null},voidLetter:{status:`idle`,data:null,meta:null},searchReferencesLetters:{status:`idle`,data:null,success:!1},referenceUsagesReports:{status:`idle`,data:null,meta:null,success:!1},checkingIncomingNumberRepetitive:{status:`idle`,data:null,meta:null,success:!1},removeSignature:{status:`idle`,data:null,success:!1},updateNumberedLetter:{status:`idle`,data:null,meta:null,success:!1},referencedLetters:{status:`idle`,data:null,success:!1},referencingLetters:{status:`idle`,data:null,success:!1}},Qx=H(`letters/contactsOrganization`,async e=>await V({options:{apiVersion:Xx,domainRoot:`contacts`,method:`organization`,path:e.path,queryObject:e.queryObject}})),$x=H(`letters/createLetter`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`createLetter`,checkStatusOveredFunction:n,commandName:`letters.LetterComposed`},data:t})}),eS=H(`letters/getLetter`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`selectedLetter`,path:e.path,queryObject:e.queryObject}})),tS=H(`letters/updateLetter`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`updateLetter`,checkStatusOveredFunction:n,commandName:`letters.LetterUpdated`},data:t})}),nS=H(`letters/updateLetterTags`,async e=>{let{letterId:t,tags:n,checkStatusOveredFunction:r}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`updateLetterTags`,path:`${t}/tags`,checkStatusOveredFunction:r,commandName:`letters.LetterTagsUpdated`},data:{id:t,tags:n}})}),rS=H(`letters/letterNumber`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`setLetterNumber`,checkStatusOveredFunction:n,commandName:`letters.LetterNumberSet`},data:t})}),iS=H(`letters/signLetter`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`signLetter`,checkStatusOveredFunction:n,commandName:`letters.LetterSigned`},data:t})}),aS=H(`letters/parseEce`,async e=>{let{data:t}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`parseEce`},data:t})}),oS=H(`letters/lettersNotExchangedList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`new`,path:e.path,queryObject:e.queryObject}})),sS=H(`letters/forwardedLetterToMeList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`forwardedTo`,path:e.path,queryObject:e.queryObject}})),cS=H(`letters/forwardedLetterByMeList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`forwardedBy`,path:e.path,queryObject:e.queryObject}})),lS=H(`letters/revertForwardLetter`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`revertForwardLetter`},data:e})),uS=H(`letters/voidLetter`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`voidLetter`},data:e})),dS=H(`letters/receiptedLetters`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`receipted`,path:e.path,queryObject:e.queryObject}})),fS=H(`letters/forwardLetter`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`forward`,triesForCheckStatus:((t?.recipients?.length??0)>1?t?.recipients?.length:2)*5,checkStatusOveredFunction:n,commandName:`letters.LetterForwarded`},data:t})}),pS=H(`letters/allForwardedLetters`,async e=>{let t=Object.keys(e.queryObject).reduce((t,n)=>e.queryObject[n]!==null&&e.queryObject[n]!==void 0?{...t,[n]:e.queryObject[n]}:t,{});return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`allForwardedLetters`,path:`forwards/organization/${e.path}`,queryObject:t}})}),mS=H(`letters/terminateLetter`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`terminate`,checkStatusOveredFunction:n,commandName:`letters.LetterTerminated`},data:t})}),hS=H(`letters/discardLetter`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`discard`,checkStatusOveredFunction:n,commandName:`letters.LetterDiscarded`},data:t})}),gS=H(`letters/myCartableLettersList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`myCartableLetters`,path:e.path,queryObject:e.queryObject}})),_S=H(`letters/endedLettersList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`endedLetters`,path:e.path,queryObject:e.queryObject}})),vS=H(`letters/inProgressLettersList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`inProgressLetters`,path:e.path,queryObject:e.queryObject}}
2324)),yS=H(`letters/discardedLettersList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`discardedLetters`,path:e.path,queryObject:e.queryObject}})),bS=H(`letters/terminatedLettersList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`terminatedLetters`,path:e.path,queryObject:e.queryObject}})),xS=H(`letters/numberedLettersByIndicatorList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`numberedLettersByIndicatorLetters`,path:e.path}}),{condition:(e,t)=>!((t.getState().letters.numberedLettersByIndicatorList.status===`loading`||t.getState().letters.numberedLettersByIndicatorList.data)&&t.getState().letters.numberedLettersByIndicatorList?.data?.length&&e.offset1<t.getState().letters.numberedLettersByIndicatorList?.data?.length)}),SS=H(`letter/addLetterReceipt`,async e=>{let{checkStatusOveredFunction:t,data:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`addLetterReceipt`,path:e.path,checkStatusOveredFunction:t,commandName:`letters.ReceiptAdded`},data:n})}),CS=H(`letter/editLetterReceipt`,async e=>{let{checkStatusOveredFunction:t,data:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`editLetterReceipt`,path:e.path,checkStatusOveredFunction:t,commandName:`letters.ReceiptEdited`},data:n})}),wS=H(`letters/letterReceiptsList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`letterReceipts`,path:e.path,queryObject:e.queryObject}}),{condition:(e,t)=>!((t.getState().letters.letterReceiptsList.status===`loading`||t.getState().letters.letterReceiptsList.data)&&t.getState().letters.letterReceiptsList?.data?.length&&e.offset1<t.getState().letters.letterReceiptsList?.data?.length)}),TS=H(`letters/resultsSearchList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`resultSearch`},data:e.data}),{condition:(e,t)=>t.getState().letters.resultsSearchList.status!==`loading`}),ES=H(`letters/letterHistory`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`letterHistory`,path:e.path}}),{condition:(e,t)=>!(t.getState().letters.letterHistory.status===`loading`||t.getState().letters.letterHistory.data)}),DS=H(`eceMails/sendECE`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`ecemails`,method:`sendECE`,checkStatusOveredFunction:n,commandName:`ecemails.EceConvertedToLetter`,path:e.path},data:t})}),OS=H(`letters/eceLettersList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`eceLettersList`,path:e.path}})),kS=H(`letters/lettersOrganizationDashboard`,async e=>{let{organizationId:t}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`lettersOrganizationDashboard`,path:`organizations/${t}/dashboard`}})}),AS=H(`letters/searchReferencesLetters`,async e=>{let{referenceLetterNumber:t,positionSlotId:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`searchReferencesLetters`,queryObject:{positionSlotId:n,referenceLetterNumber:t},path:`search-reference`}})}),jS=H(`letters/referenceUsagesReports`,async e=>{let{organizationId:t,queryObject:n}=e,{limit:r,offset:i,isReferenced:a,type:o}=n;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`referenceUsagesReports`,path:`${t}/reports/reference-usages`,queryObject:{limit:r,offset:i,isReferenced:a,type:o}}})}),MS=H(`letters/checkingIncomingNumberRepetitive`,async e=>{let{organizationId:t,incomingNumber:n,incomingDate:r,senderId:i}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`checkingIncomingNumberRepetitive`,path:`${t}/incoming-letter/senderId/${i}/incomingDate/${new Date(r).toISOString()}/incomingNumber/${Jx(n)}`}})}),NS=H(`letters/removeLetterSignature`,async e=>{let{id:t,signer:n}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`removeSignature`,path:`${t}/signature`},data:{id:t,signer:n}})}),PS=H(`letters/updateNumberedLetter`,async e=>{let{data:t,id:n,checkStatusOveredFunction:r}=e;return await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`updateNumberedLetter`,path:`/${n}/numbered`,checkStatusOveredFunction:r},data:t})}),FS=H(`letters/getReferencedList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`referencedList`,path:`${e}/referenced`}})),IS=H(`letters/getReferencingList`,async e=>await V({options:{apiVersion:Xx,domainRoot:`letters`,method:`referencingList`,path:`${e}/referencing`}}
2324)),LS=Ie({name:`letters`,initialState:Zx,reducers:{ownedLettersUpdate:(e,t)=>{},contactsOrganizationReset:e=>{let t=e;t.contactsOrganization=Zx.contactsOrganization},getLetterReset:e=>{let t=e;t.selectedLetter=Zx.selectedLetter},updateLetterReset:e=>{let t=e;t.updateLetter=Zx.updateLetter},createLetterReset:e=>{let t=e;t.createLetter=Zx.createLetter},composeEce:(e,t)=>{let n=e;n.ecsDialog=t.payload},parseEceReset:e=>{let t=e;t.parseEce=Zx.parseEce},setLetterNumberReset:e=>{let t=e;t.letterNumber=Zx.letterNumber},lettersNotExchangedReset:e=>{let t=e;t.lettersNotExchangedList=Zx.lettersNotExchangedList},forwardedLetterToMeReset:e=>{let t=e;t.forwardedLetterToMeList=Zx.forwardedLetterToMeList},forwardedLetterByMeReset:e=>{let t=e;t.forwardedLetterByMeList=Zx.forwardedLetterByMeList},receiptedLettersReset:e=>{let t=e;t.receiptedLetters=Zx.receiptedLetters},myCartableLettersReset:e=>{let t=e;t.myCartableLettersList=Zx.myCartableLettersList},endedLettersReset:e=>{let t=e;t.endedLettersList=Zx.endedLettersList},inProgressLettersReset:e=>{let t=e;t.inProgressLettersList=Zx.inProgressLettersList},discardLetterReset:e=>{let t=e;t.discardLetter=Zx.discardLetter},terminateLetterReset:e=>{let t=e;t.terminateLetter=Zx.terminateLetter},discardedLettersListReset:e=>{let t=e;t.discardedLettersList=Zx.discardedLettersList},allForwardedLettersReset:e=>{let t=e;t.allForwardedLetters=Zx.allForwardedLetters},terminatedLettersListReset:e=>{let t=e;t.terminatedLettersList=Zx.terminatedLettersList},numberedLettersByIndicatorReset:e=>{let t=e;t.numberedLettersByIndicatorList=Zx.numberedLettersByIndicatorList},letterReceiptsReset:e=>{let t=e;t.letterReceiptsList=Zx.letterReceiptsList},resultsSearchReset:e=>{let t=e;t.resultsSearchList=Zx.resultsSearchList},addLetterReceiptReset:e=>{let t=e;t.addLetterReceipt=Zx.addLetterReceipt},editLetterReceiptReset:e=>{let t=e;t.editLetterReceipt=Zx.editLetterReceipt},signLetterReset:e=>{let t=e;t.signLetter=Zx.signLetter},forwardLetterReset:e=>{let t=e;t.forwardLetter=Zx.forwardLetter},letterHistoryReset:e=>{let t=e;t.letterHistory=Zx.letterHistory},sendECEReset:e=>{let t=e;t.sendECE=Zx.sendECE},lettersOrganizationDashboardReset:e=>{let t=e;t.lettersOrganizationDashboard=Zx.lettersOrganizationDashboard},revertForwardLetterReset:e=>{let t=e;t.revertForwardLetter=Zx.revertForwardLetter},voidLetterReset:e=>{let t=e;t.voidLetter=Zx.voidLetter},referenceUsagesReportReset:e=>{let t=e;t.referenceUsagesReports=Zx.referenceUsagesReports},checkingIncomingNumberRepetitiveReset:e=>{let t=e;t.checkingIncomingNumberRepetitive=Zx.checkingIncomingNumberRepetitive},removeLetterSignatureReset:e=>{let t=e;t.removeSignature=Zx.removeSignature},updateNumberedLetterReset:e=>{let t=e;t.updateNumberedLetter=Zx.updateNumberedLetter},referencedLettersReset:e=>{let t=e;t.referencedLetters=Zx.referencedLetters},referencingLettersReset:e=>{let t=e;t.referencingLetters=Zx.referencingLetters},updateLetterTagsReset:e=>{let t=e;t.updateLetterTags=Zx.updateLetterTags}},extraReducers:e=>{e.addCase(Qx.pending,e=>{let t=e;t.contactsOrganization.status=`loading`}).addCase(Qx.fulfilled,(e,t)=>{let n=e;n.contactsOrganization.status=`idle`,n.contactsOrganization.meta=t.payload.meta,n.contactsOrganization.data=t.payload.data}).addCase($x.pending,e=>{let t=e;t.createLetter.status=`loading`}).addCase($x.fulfilled,(e,t)=>{let n=e;n.createLetter.status=`idle`,n.createLetter.data=t.payload}).addCase($x.rejected,e=>{let t=e;t.createLetter.status=`idle`,t.createLetter.data={success:!1}}).addCase(eS.pending,e=>{let t=e;t.selectedLetter.status=`loading`}).addCase(eS.fulfilled,(e,t)=>{let n=e;n.selectedLetter.status=`idle`,n.selectedLetter.data=t.payload.data}).addCase(tS.pending,e=>{let t=e;t.updateLetter.status=`loading`}).addCase(tS.fulfilled,(e,t)=>{let n=e;n.updateLetter.status=`idle`,n.updateLetter.data=t.payload}).addCase(tS.rejected,e=>{let t=e;t.updateLetter.status=`idle`,t.updateLetter.data={success:!1}}).addCase(nS.pending,e=>{let t=e;t.updateLetterTags.status=`loading`}).addCase(nS.fulfilled,(e,t)=>{let n=e;n.updateLetterTags.status=`idle`,n.updateLetterTags.data=t.payload,n.updateLetterTags.success=t.payload?.success??!1}).addCase(nS.rejected,e=>{let t=e;t.updateLetterTags.status=`idle`,t.updateLetterTags.data={success:!1},t.updateLetterTags.success=!1}).addCase(rS.pending,e=>{let t=e;t.letterNumber.status=`loading`}).addCase(rS.fulfilled,(e,t)=>{let n=e;n.letterNumber.status=`idle`,n.letterNumber.data=t.payload}).addCase(rS.rejected,e=>{let t=e;t.letterNumber.status=`idle`,t.letterNumber.data={success:!1}}).addCase(iS.pending,e=>{let t=e;t.signLetter.status=`loading`}).addCase(iS.fulfilled,(e,t)=>{let n=e;n.signLetter.status=`idle`,n.signLetter.data=t.payload}).addCase(iS.rejected,e=>{let t=e;t.signLetter.status=`idle`,t.signLetter.data={success:!1}}).addCase(aS.pending,e=>{let t=e;t.parseEce.status=`loading`}).addCase(aS.fulfilled,(e,t)=>{let n=e;n.parseEce.status=`idle`,n.parseEce.data=t.payload?.data,n.parseEce.meta=t.payload?.meta}).addCase(aS.rejected,(e,t)=>{let n=e;n.parseEce.status=`idle`,n.parseEce.data=null,n.parseEce.meta=t?.payload?.meta}).addCase(oS.pending,e=>{let t=e;t.lettersNotExchangedList.status=`loading`}).addCase(oS.fulfilled,(e,t)=>{let n=e;n.lettersNotExchangedList.status=`idle`,n.lettersNotExchangedList.meta=t.payload.meta,n.lettersNotExchangedList.data=t.payload.data}).addCase(sS.pending,e=>{let t=e;t.forwardedLetterToMeList.status=`loading`}).addCase(sS.fulfilled,(e,t)=>{let n=e;n.forwardedLetterToMeList.status=`idle`,n.forwardedLetterToMeList.meta=t.payload.meta,n.forwardedLetterToMeList.data=t.payload.data}).addCase(cS.pending,e=>{let t=e;t.forwardedLetterByMeList.status=`loading`}).addCase(cS.fulfilled,(e,t)=>{let n=e;n.forwardedLetterByMeList.status=`idle`,n.forwardedLetterByMeList.meta=t.payload.meta,n.forwardedLetterByMeList.data=t.payload.data}).addCase(lS.pending,e=>{let t=e;t.revertForwardLetter.status=`loading`}).addCase(lS.fulfilled,(e,t)=>{let n=e;n.revertForwardLetter.status=`idle`,n.revertForwardLetter.data=t.payload}).addCase(lS.rejected,e=>{let t=e;t.revertForwardLetter.status=`idle`,t.revertForwardLetter.data={success:!1}}).addCase(uS.pending,e=>{let t=e;t.voidLetter.status=`pending`}).addCase(uS.fulfilled,(e,t)=>{let n=e;n.voidLetter.status=`idle`,n.voidLetter.data=t.payload,n.voidLetter.meta=t.payload.meta}).addCase(uS.rejected,(e,t)=>{let n=e;n.voidLetter.data={success:!1}}).addCase(dS.pending,e=>{let t=e;t.receiptedLetters.status=`loading`}).addCase(dS.fulfilled,(e,t)=>{let n=e;n.receiptedLetters.status=`idle`,n.receiptedLetters.meta=t.payload.meta,n.receiptedLetters.data=t.payload.data}).addCase(gS.pending,e=>{let t=e;t.myCartableLettersList.status=`loading`}).addCase(gS.fulfilled,(e,t)=>{let n=e;n.myCartableLettersList.status=`idle`,n.myCartableLettersList.meta=t.payload.meta,n.myCartableLettersList.data=t.payload.data}).addCase(_S.pending,e=>{let t=e;t.endedLettersList.status=`loading`}).addCase(_S.fulfilled,(e,t)=>{let n=e;n.endedLettersList.status=`idle`,n.endedLettersList.meta=t.payload.meta,n.endedLettersList.data=t.payload.data}).addCase(vS.pending,e=>{let t=e;t.inProgressLettersList.status=`loading`}).addCase(vS.fulfilled,(e,t)=>{let n=e;n.inProgressLettersList.status=`idle`,n.inProgressLettersList.meta=t.payload.meta,n.inProgressLettersList.data=t.payload.data}).addCase(yS.pending,e=>{let t=e;t.discardedLettersList.status=`loading`}).addCase(yS.fulfilled,(e,t)=>{let n=e;n.discardedLettersList.status=`idle`,n.discardedLettersList.meta=t.payload.meta,n.discardedLettersList.data=t.payload.data}).addCase(pS.pending,e=>{let t=e;t.allForwardedLetters.status=`loading`}).addCase(pS.fulfilled,(e,t)=>{let n=e;n.allForwardedLetters.status=`idle`,n.allForwardedLetters.data=t.payload.data,n.allForwardedLetters.meta=t.payload.meta}).addCase(bS.pending,e=>{let t=e;t.terminatedLettersList.status=`loading`}).addCase(bS.fulfilled,(e,t)=>{let n=e;n.terminatedLettersList.status=`idle`,n.terminatedLettersList.meta=t.payload.meta,n.terminatedLettersList.data=t.payload.data}).addCase(xS.pending,e=>{let t=e;t.numberedLettersByIndicatorList.status=`loading`}).addCase(xS.fulfilled,(e,t)=>{let n=e;n.numberedLettersByIndicatorList.status=`idle`,n.numberedLettersByIndicatorList.meta=t.payload.meta,n.numberedLettersByIndicatorList.data=t.payload.data}).addCase(fS.pending,e=>{let t=e;t.forwardLetter.status=`loading`}).addCase(fS.fulfilled,(e,t)=>{let n=e;n.forwardLetter.status=`idle`,n.forwardLetter.data=t.payload.data,n.forwardLetter.success=t.payload.success}).addCase(fS.rejected,e=>{let t=e;t.forwardLetter.status=`idle`,t.forwardLetter.data={success:!1}}).addCase(mS.pending,e=>{let t=e;t.terminateLetter.status=`loading`}).addCase(mS.fulfilled,(e,t)=>{let n=e;n.terminateLetter.status=`idle`,n.terminateLetter.data=t.payload}).addCase(mS.rejected,e=>{let t=e;t.terminateLetter.status=`idle`,t.terminateLetter.data={success:!1}}).addCase(hS.pending,e=>{let t=e;t.discardLetter.status=`loading`}).addCase(hS.fulfilled,(e,t)=>{let n=e;n.discardLetter.status=`idle`,n.discardLetter.data=t.payload}).addCase(hS.rejected,e=>{let t=e;t.discardLetter.status=`idle`,t.discardLetter.data={success:!1}}).addCase(SS.pending,e=>{let t=e;t.addLetterReceipt.status=`loading`}).addCase(SS.fulfilled,(e,t)=>{let n=e;n.addLetterReceipt.status=`idle`,n.addLetterReceipt.data=t.payload.data}).addCase(SS.rejected,e=>{let t=e;t.addLetterReceipt.status=`idle`,t.addLetterReceipt.data={success:!1}}).addCase(CS.pending,e=>{let t=e;t.editLetterReceipt.status=`loading`}).addCase(CS.fulfilled,(e,t)=>{let n=e;n.editLetterReceipt.status=`idle`,n.editLetterReceipt.data=t.payload.data}).addCase(CS.rejected,e=>{let t=e;t.editLetterReceipt.status=`idle`,t.editLetterReceipt.data={success:!1}}).addCase(wS.pending,e=>{let t=e;t.letterReceiptsList.status=`loading`}).addCase(wS.fulfilled,(e,t)=>{let n=e;n.letterReceiptsList.status=`idle`,n.letterReceiptsList.meta=t.payload.meta,n.letterReceiptsList.data=t.payload.data}).addCase(TS.pending,e=>{let t=e;t.resultsSearchList.status=`loading`}).addCase(TS.fulfilled,(e,t)=>{let n=e;n.resultsSearchList.status=`idle`,t.payload?.status?(n.resultsSearchList.meta=t.payload.meta,n.resultsSearchList.data=t.payload.data):n.resultsSearchList.data=[]}).addCase(ES.pending,e=>{let t=e;t.letterHistory.status=`loading`}).addCase(ES.fulfilled,(e,t)=>{let n=e;n.letterHistory.status=`idle`,n.letterHistory.data=t.payload.data}).addCase(DS.pending,e=>{let t=e;t.sendECE.status=`loading`}).addCase(DS.fulfilled,(e,t)=>{let n=e;n.sendECE.status=`idle`,n.sendECE.data=t.payload}).addCase(DS.rejected,(e,t)=>{let n=e;n.sendECE.status=`idle`,n.sendECE.data={success:!1}}).addCase(OS.pending,e=>{let t=e;t.eceLettersList.status=`loading`}).addCase(OS.fulfilled,(e,t)=>{let n=e;n.eceLettersList.status=`idle`,n.eceLettersList.data=t.payload.data}).addCase(kS.pending,e=>{let t=e;t.lettersOrganizationDashboard.status=`loading`}).addCase(kS.fulfilled,(e,t)=>{let n=e;n.lettersOrganizationDashboard.status=`idle`,n.lettersOrganizationDashboard.data=t.payload.data}).addCase(kS.rejected,e=>{let t=e;t.lettersOrganizationDashboard.status=`idle`,t.lettersOrganizationDashboard.data={success:!1}}).addCase(AS.pending,e=>{let t=e;t.searchReferencesLetters.status=`loading`}).addCase(AS.fulfilled,(e,t)=>{let n=e;t.payload.success?(n.searchReferencesLetters.status=`idle`,n.searchReferencesLetters.data=t.payload.data,n.searchReferencesLetters.success=t.payload.success):(n.searchReferencesLetters.status=`idle`,n.searchReferencesLetters.data=null,n.searchReferencesLetters.success=t.payload.success)}).addCase(jS.pending,e=>{let t=e;t.referenceUsagesReports.status=`pending`}).addCase(jS.fulfilled,(e,t)=>{let n=e;n.referenceUsagesReports.status=`idle`,n.referenceUsagesReports.data=t.payload.data,n.referenceUsagesReports.success=t.payload.success,n.referenceUsagesReports.meta=t.payload.meta}).addCase(MS.pending,e=>{let t=e;t.checkingIncomingNumberRepetitive.status=`pending`}).addCase(MS.fulfilled,(e,t)=>{let n=e;n.checkingIncomingNumberRepetitive.status=`success`,n.checkingIncomingNumberRepetitive.data=t.payload.data}).addCase(NS.pending,e=>{let t=e;t.removeSignature.status=`pending`}).addCase(NS.fulfilled,(e,t)=>{let n=e;n.removeSignature.status=`idle`,n.removeSignature.data=t.payload.data,n.removeSignature.success=t.payload.success}).addCase(NS.rejected,(e,t)=>{let n=e;n.removeSignature.status=`reject`,n.removeSignature.data=t.payload?.data??null,n.removeSignature.success=t.payload?.success??!1}
2324).addCase(PS.pending,e=>{let t=e;t.updateNumberedLetter.status=`pending`,t.updateNumberedLetter.data=null,t.updateNumberedLetter.meta=null}).addCase(PS.fulfilled,(e,t)=>{let n=e,{data:r,meta:i,success:a}=t.payload;n.updateNumberedLetter.status=`idle`,n.updateNumberedLetter.data=r,n.updateNumberedLetter.meta=i,n.updateNumberedLetter.success=a}).addCase(PS.rejected,(e,t)=>{let n=e,{data:r,meta:i}=t.payload;n.updateNumberedLetter.status=`reject`,n.updateNumberedLetter.data=r,n.updateNumberedLetter.meta=i,n.updateNumberedLetter.success=!1}).addCase(FS.pending,(e,t)=>{let n=e;n.referencedLetters.status=`pending`}).addCase(FS.fulfilled,(e,t)=>{let n=e;t.payload.success?(n.referencedLetters.status=`success`,n.referencedLetters.data=t.payload.data?.map(e=>({...e,referenceNumber:e.number})),n.referencedLetters.success=!0):(n.referencedLetters.status=`failed`,n.referencedLetters.data=null,n.referencedLetters.success=!1)}).addCase(FS.rejected,e=>{let t=e;t.referencedLetters.status=`failed`,t.referencedLetters.success=!1,t.referencedLetters.data=null}).addCase(IS.pending,(e,t)=>{let n=e;n.referencingLetters.status=`pending`}).addCase(IS.fulfilled,(e,t)=>{let n=e;t.payload.success?(n.referencingLetters.status=`success`,n.referencingLetters.data=t.payload.data?.map((e,t)=>({...e,key:t})),n.referencingLetters.success=!0):(n.referencingLetters.status=`failed`,n.referencingLetters.data=null,n.referencingLetters.success=!1)}).addCase(IS.rejected,e=>{let t=e;t.referencingLetters.status=`failed`,t.referencingLetters.success=!1,t.referencingLetters.data=null})}}),{ownedLettersUpdate:vte,contactsOrganizationReset:RS,getLetterReset:zS,updateLetterReset:BS,createLetterReset:VS,composeEce:HS,parseEceReset:US,setLetterNumberReset:WS,lettersNotExchangedReset:GS,forwardedLetterToMeReset:KS,forwardedLetterByMeReset:qS,receiptedLettersReset:JS,myCartableLettersReset:yte,endedLettersReset:bte,inProgressLettersReset:xte,discardLetterReset:YS,terminateLetterReset:XS,terminatedLettersListReset:Ste,allForwardedLettersReset:Cte,discardedLettersListReset:wte,numberedLettersByIndicatorReset:ZS,letterReceiptsReset:QS,resultsSearchReset:$S,addLetterReceiptReset:eC,editLetterReceiptReset:tC,signLetterReset:nC,forwardLetterReset:rC,letterHistoryReset:iC,sendECEReset:Tte,lettersOrganizationDashboardReset:aC,revertForwardLetterReset:Ete,voidLetterReset:oC,referenceUsagesReportReset:sC,checkingIncomingNumberRepetitiveReset:cC,removeLetterSignatureReset:lC,updateNumberedLetterReset:uC,referencedLettersReset:dC,referencingLettersReset:fC,updateLetterTagsReset:pC}=LS.actions,mC=LS.reducer,hC=`/api/v1/`,gC={sendECE:{status:`idle`,data:null},incomingEceMailsList:{data:null,status:`idle`,meta:null},outgoingEceMailsList:{data:null,status:`idle`,meta:null},eceMail:{status:`idle`,data:null},convertMailToLetter:{status:`idle`,data:null},eceReceipt:{status:`idle`,data:null,success:!1},eceReceiptMailsList:{status:`idle`,data:null,meta:null,success:!1},eceReceiptMail:{status:`idle`,data:null,success:!1},parsedEceReceipt:{status:`idle`,data:null,success:!1},retryEceReceipt:{status:`idle`,data:null,success:!1},publicEceDirectory:{status:`idle`,data:null,success:!1}},_C=H(`eceMails/sendECE`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`sendECE`,checkStatusOveredFunction:n,commandName:`ecemails.EceConvertedToLetter`,path:e.path},data:t})}),vC=H(`eceMails/incomingEceMailsList`,async e=>{let{secretariatId:t,limit:n,offset:r}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`incomingEceMailsList`,path:`secretariat/${t}`,queryObject:{limit:n,offset:r,type:`incoming`}}})}),yC=H(`eceMails/outgoingEceMailsList`,async e=>{let{secretariatId:t,limit:n,offset:r}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`outgoingEceMailsList`,path:`secretariat/${t}`,queryObject:{limit:n,offset:r,type:`outgoing`}}})}),bC=H(`eceMails/eceMail`,async e=>{let{mailId:t,secretariatId:n}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`eceMail`,path:`${t}`,queryObject:{secretariatId:n}}})}),xC=H(`eceMails/convertMailToLetter`,async e=>{let{mailId:t,showSnackBar:n}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`convertMailToLetter`,showSnackBar:n??!0,path:`${t}/convert-to-letter`}})}),SC=H(`eceMails/eceReceipt`,async e=>{let{letterId:t,requester:n}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`receipts`},data:{id:t,requester:n}})}),CC=H(`eceMails/getPublicEceDirectory`,async()=>await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`publicEceDirectory`,path:`public-ece-directory-items`}})),wC=H(`eceMails/eceReceiptMails`,async e=>{let{secretariatId:t,limit:n,offset:r,type:i}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`eceReceiptMails`,path:`receipts/secretariat/${t}`,queryObject:{limit:n,offset:r,type:i}}})}),TC=H(`eceMails/eceReceiptMail`,async e=>{let{receiptId:t}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`eceReceiptMail`,path:`receipts/${t}`}})}),EC=H(`eceMails/retryEceReceipt`,async e=>{let{receipt:t}=e;return await V({options:{apiVersion:hC,domainRoot:`ecemails`,method:`retryEceReceipt`,path:`receipts/${t.id}/retry`},data:e})}),DC=Ie({name:`eceMails`,initialState:gC,reducers:{sendECEReset:e=>{let t=e;t.sendECE=gC.sendECE},incomingEceMailsReset:e=>{let t=e;t.incomingEceMailsList=gC.incomingEceMailsList},outgoingEceMailsReset:e=>{let t=e;t.outgoingEceMailsList=gC.outgoingEceMailsList},eceMailReset:e=>{let t=e;t.eceMail=gC.eceMail},convertMailToLetterReset:e=>{let t=e;t.eceMail=gC.convertMailToLetter},getEceReceiptMailsListReset:e=>{let t=e;t.eceReceiptMailsList=gC.eceReceiptMailsList},sentEceReceiptMailReset:e=>{let t=e;t.eceReceiptMail=gC.eceReceiptMail},getPublicEceDirectoryReset:e=>{let t=e;t.publicEceDirectory=gC.publicEceDirectory}},extraReducers:e=>{e.addCase(_C.pending,e=>{let t=e;t.sendECE.status=`loading`}).addCase(_C.fulfilled,(e,t)=>{let n=e;n.sendECE.status=`idle`,n.sendECE.data=t.payload}).addCase(_C.rejected,(e,t)=>{let n=e;n.sendECE.status=`idle`,n.sendECE.data={success:!1}}).addCase(vC.pending,e=>{let t=e;t.incomingEceMailsList.status=`loading`}).addCase(vC.fulfilled,(e,t)=>{let n=e;n.incomingEceMailsList.status=`idle`,t.payload?.status?n.incomingEceMailsList.data=t.payload.data:n.incomingEceMailsList.data=null,n.incomingEceMailsList.meta=t.payload.meta}).addCase(vC.rejected,e=>{let t=e;t.incomingEceMailsList.status=`idle`,t.incomingEceMailsList={...gC.incomingEceMailsList,success:!1}}).addCase(yC.pending,e=>{let t=e;t.outgoingEceMailsList.status=`loading`}).addCase(yC.fulfilled,(e,t)=>{let n=e;n.outgoingEceMailsList.status=`idle`,t.payload?.status?n.outgoingEceMailsList.data=t.payload.data:n.outgoingEceMailsList.data=null,n.outgoingEceMailsList.meta=t.payload.meta}).addCase(yC.rejected,e=>{let t=e;t.outgoingEceMailsList.status=`idle`,t.outgoingEceMailsList={...gC.outgoingEceMailsList,success:!1}}).addCase(bC.pending,e=>{let t=e;t.eceMail.status=`loading`}).addCase(bC.fulfilled,(e,t)=>{let n=e;n.eceMail.status=`idle`,n.eceMail.data=t.payload.data,n.eceMail.meta=t.payload.meta}).addCase(bC.rejected,e=>{let t=e;t.eceMail.status=`idle`,t.eceMail={success:!1}}).addCase(xC.pending,e=>{let t=e;t.convertMailToLetter.status=`loading`}).addCase(xC.fulfilled,(e,t)=>{let n=e;n.convertMailToLetter.status=`idle`,n.convertMailToLetter.data=t.payload.data,n.convertMailToLetter.meta=t.payload.meta}).addCase(xC.rejected,e=>{let t=e;t.convertMailToLetter.status=`idle`,t.convertMailToLetter={success:!1}}).addCase(SC.pending,e=>{let t=e;t.eceReceipt.status=`pending`}).addCase(SC.fulfilled,(e,t)=>{let n=e;n.eceReceipt.status=`idle`,n.eceReceipt.data=t.payload.data}).addCase(wC.pending,e=>{let t=e;t.eceReceiptMailsList.status=`pending`}).addCase(wC.fulfilled,(e,t)=>{let n=e;n.eceReceiptMailsList.status=`idle`,n.eceReceiptMailsList.data=t.payload.data,n.eceReceiptMailsList.meta=t.payload.meta,n.eceReceiptMailsList.success=t.payload.success}).addCase(TC.pending,e=>{let t=e;t.eceReceiptMail.status=`pending`}).addCase(TC.fulfilled,(e,t)=>{let n=e;n.eceReceiptMail.status=`idle`,n.eceReceiptMail.data=t.payload.data,n.eceReceiptMail.meta=t.payload.meta,n.eceReceiptMail.success=t.payload.success}).addCase(EC.pending,e=>{let t=e;t.retryEceReceipt.status=`pending`}).addCase(EC.fulfilled,(e,t)=>{let n=e;n.retryEceReceipt.status=`idle`,n.retryEceReceipt.data=t.payload.data,n.retryEceReceipt.success=t.payload.success}).addCase(CC.pending,e=>{let t=e;t.publicEceDirectory.status=`pending`}).addCase(CC.fulfilled,(e,t)=>{let n=e;n.publicEceDirectory.status=`idle`,n.publicEceDirectory.data=t.payload.data,n.publicEceDirectory.success=t.payload.success})}}),{sendECEReset:OC,incomingEceMailsReset:kC,outgoingEceMailsReset:AC,eceMailReset:jC,convertMailToLetterReset:Dte,getEceReceiptMailsListReset:Ote,sentEceReceiptMailReset:kte,getPublicEceDirectoryReset:MC}=DC.actions,NC=DC.reducer,PC=`/api/v1/`,FC={documents:{fetched:{},inserting:{}},multiDocuments:{data:null,status:`idle`},documentsList:{data:null,status:`idle`,success:!1,meta:null}},IC={domain:`X-Domain`,organization:`X-Organization-ID`,position:`X-Position-ID`,entityType:`X-Extended-Type`,entity:`X-Entity-ID`}
2324,LC=e=>{if(!e)return{};let t={};for(let[n,r]of Object.entries(e))t[IC[n]??n]=r;return t},RC=H(`documents/documents`,async(e,{rejectWithValue:t})=>{let n=await V({options:{apiVersion:PC,domainRoot:`documents`,method:`documents`,path:e.path,responseType:e.responseType,methodType:`PATCH`},data:e.data,headers:LC(e?.headers)});return!(`success`in n)||!n.success||n.data==null?t({path:e.path,statusCode:`statusCode`in n?n.statusCode:void 0}):`data:;base64,${btoa(new Uint8Array(n.data).reduce((e,t)=>e+String.fromCharCode(t),``))}`}),zC=H(`documents/multiDocuments`,async e=>{let{imageIds:t}=e;return(await V({options:{apiVersion:PC,domainRoot:`documents`,path:`multi/${t}`,method:`multi`}})).data}),BC=H(`documents/organizations`,async e=>{let{organizationId:t,...n}=e;return await V({options:{apiVersion:PC,domainRoot:`documents`,method:`documentsList`,path:`/organizations/${t}`,queryObject:{...n}}})}),VC=H(`documents/uploadDocuments`,async e=>{let t={apiVersion:PC,domainRoot:`documents`,method:`uploadDocuments`};if(Array.isArray(e)){let n=[];for(let r of e){let e={};Object.assign(e,LC(r.headers));let i=await V({options:t,data:r.data,headers:{"X-Correlation-ID":r.correlationId,...e}});n.push(i)}return n}let n={};return Object.assign(n,LC(e?.headers)),await V({options:t,data:e.data,headers:{"X-Correlation-ID":e.correlationId,...n}})}),HC=Ie({name:`documents`,initialState:FC,reducers:{deleteImageById:e=>{}},extraReducers:e=>{e.addCase(RC.pending,(e,t)=>{let n=e,r=t.meta.arg.path;n.documents.fetched[r]?.data||(n.documents.fetched[r]={status:`loading`})}).addCase(RC.fulfilled,(e,t)=>{let n=e;n.documents.fetched[t.meta.arg.path]={data:t.payload,status:`idle`}}).addCase(RC.rejected,(e,t)=>{let n=e;n.documents.fetched[t.meta.arg.path]={data:void 0,status:`failed`}}).addCase(VC.pending,(e,t)=>{}).addCase(VC.fulfilled,(e,t)=>{let n=e;Array.isArray(t?.payload)?Array.isArray(t.meta.arg)&&t.meta.arg.forEach((e,r)=>{n.documents.inserting[e.correlationId]={data:t.payload?.[r]?.data?.[0],correlationId:e.correlationId,status:`idle`}}):n.documents.inserting[t.meta.arg.correlationId]={data:t.payload?.data,status:`idle`}}).addCase(zC.pending,e=>{let t=e;t.multiDocuments.status=`loading`}).addCase(zC.fulfilled,(e,t)=>{let n=e;n.multiDocuments.status=`idle`,n.multiDocuments.data=t.payload}),e.addCase(BC.pending,e=>{let t=e;t.documentsList.status=`pending`}).addCase(BC.fulfilled,(e,t)=>{let n=e;n.documentsList.status=`idle`,n.documentsList.data=t.payload.data,n.documentsList.success=t.payload.success,n.documentsList.meta=t.payload.meta})}}),{deleteImageById:Ate}=HC.actions,UC=HC.reducer,WC=`/api/v1/`,GC={letterContentByTopic:{data:null,status:`idle`,success:!1},cancelLetterContentByTopic:{data:null,status:`idle`,success:!1}},KC=H(`genai/createLetterContentByTopic`,async e=>{let{correlationId:t,...n}=e;return await V({options:{apiVersion:WC,domainRoot:`genai`,method:`createLetterContentByTopic`,path:`organization/${n.organizationId}/letter/content`},data:n,headers:{"X-Correlation-ID":t},id:t})}),qC=H(`genai/cancelLetterContentByTopic`,async({id:e})=>{let t=be.get(e);return t&&(t.source.cancel(`Request manually cancelled by user`),be.delete(e)),await V({options:{apiVersion:WC,domainRoot:`genai`,method:`cancelLetterContentByTopic`,path:`letter/content/cancel`},data:{id:e}})}),JC=Ie({name:`genai`,initialState:GC,reducers:{createLetterContentByTopicReset:e=>{let t=e;t.letterContentByTopic=GC.letterContentByTopic}},extraReducers:e=>e.addCase(KC.pending,e=>{let t=e;t.letterContentByTopic.status=`pending`}).addCase(KC.fulfilled,(e,t)=>{let n=e;n.letterContentByTopic.status=`idle`,n.letterContentByTopic.data=t.payload.data,n.letterContentByTopic.success=t.payload.success}).addCase(qC.pending,e=>{let t=e;t.cancelLetterContentByTopic.status=`pending`}).addCase(qC.fulfilled,(e,t)=>{let n=e;n.cancelLetterContentByTopic.status=`idle`,n.cancelLetterContentByTopic.data=t.payload.data,n.cancelLetterContentByTopic.success=t.payload.success})}),YC=JC.reducer,{createLetterContentByTopicReset:XC}=JC.actions,ZC=`/api/v1/`,QC=e=>Object.prototype.hasOwnProperty.call(e,`data`),$C=e=>QC(e)?e.data:null,ew=e=>{if(!QC(e)||!e.meta?.pagination)return null;let{limit:t,offset:n,total:r}=e.meta.pagination;return{pagination:{limit:t,offset:n,total:r}}},tw={groupList:{status:`idle`,data:null,meta:null},groupData:{status:`idle`,data:null},groupMembers:{status:`idle`,data:{members:[]},meta:null},removeGroupMembers:{status:`idle`,data:null},addGroupMembers:{status:`idle`,data:null},createGroup:{status:`idle`,data:null},updateGroup:{status:`idle`,data:null}},nw=H(`groups/group-list`,async({organizationId:e,offset:t,limit:n,type:r})=>{let i=await V({options:{apiVersion:ZC,domainRoot:`groups`,method:`getGroupList`,path:`organization/${e}`,queryObject:{offset:t,limit:n,type:r}}});return{data:$C(i),meta:ew(i)}}),rw=H(`groups/members`,async e=>{let t=await V({options:{apiVersion:ZC,domainRoot:`groups`,method:`groupMembers`,path:`${e.groupId}/members`,queryObject:{offset:e.offset,limit:e.limit,type:e.type}}});return{data:$C(t),meta:ew(t)}}),iw=H(`groups/removeMember`,async e=>({data:$C(await V({options:{apiVersion:ZC,domainRoot:`groups`,method:`removeGroupMembers`,path:`${e.id}/members/remove`},data:{id:e.id,members:e.members,type:`access`}}))})),aw=H(`groups/addMember`,async e=>({data:$C(await V({options:{apiVersion:ZC,domainRoot:`groups`,method:`addGroupMembers`,path:`${e.id}/members/add`},data:{...e,type:`access`}}))})),ow=H(`groups/createGroup`,async(e,{rejectWithValue:t})=>{let n=await V({options:{apiVersion:ZC,domainRoot:`groups`,method:`createGroup`},data:e});return`success`in n&&n.success===!1?t(n):{data:$C(n)}}),sw=H(`groups/updateGroup`,async(e,{rejectWithValue:t})=>{let n=await V({options:{apiVersion:ZC,domainRoot:`groups`,method:`updateGroup`,path:`${e.id}`},data:e});return`success`in n&&n.success===!1?t(n):{data:$C(n)}}),cw=H(`groups/getGroup`,async({id:e})=>{let t=await V({options:{apiVersion:ZC,domainRoot:`groups`,method:`getGroup`,path:`${e}`}});return{data:$C(t),meta:ew(t)}}),lw=Ie({name:`groups`,initialState:tw,reducers:{groupMembersReset:e=>{let t=e;t.groupMembers=tw.groupMembers},removeGroupMembersReset:e=>{let t=e;t.removeGroupMembers=tw.removeGroupMembers},addGroupMembersReset:e=>{let t=e;t.addGroupMembers=tw.addGroupMembers},createGroupReset:e=>{let t=e;t.createGroup=tw.createGroup},updateGroupReset:e=>{let t=e;t.updateGroup=tw.updateGroup},groupDataReset:e=>{let t=e;t.groupData=tw.groupData}},extraReducers:e=>
2324{e.addCase(rw.pending,e=>{let t=e;t.groupMembers.status=`loading`}).addCase(rw.fulfilled,(e,t)=>{let n=e;n.groupMembers.status=`success`;let{data:r}=t.payload;r&&(n.groupMembers.data=r),n.groupMembers.meta=t.payload.meta}).addCase(iw.pending,e=>{let t=e;t.removeGroupMembers.status=`loading`}).addCase(iw.fulfilled,(e,t)=>{let n=e;n.removeGroupMembers.status=`success`,n.removeGroupMembers.data=t.payload.data}).addCase(aw.pending,e=>{let t=e;t.addGroupMembers.status=`loading`}).addCase(aw.fulfilled,(e,t)=>{let n=e;n.addGroupMembers.status=`success`,n.addGroupMembers.data=t.payload.data}).addCase(nw.pending,e=>{let t=e;t.groupList.status=`pending`}).addCase(nw.fulfilled,(e,t)=>{let n=e;n.groupList.status=`success`;let{data:r}=t.payload;n.groupList.data=Array.isArray(r)?r:null,n.groupList.meta=t.payload.meta}).addCase(nw.rejected,()=>{}).addCase(ow.pending,e=>{let t=e;t.createGroup.status=`pending`}).addCase(ow.fulfilled,(e,t)=>{let n=e;n.createGroup.status=`success`,n.createGroup.data=t.payload.data}).addCase(ow.rejected,e=>{let t=e;t.createGroup=tw.createGroup}).addCase(sw.pending,e=>{let t=e;t.updateGroup.status=`pending`}).addCase(sw.fulfilled,(e,t)=>{let n=e;n.updateGroup.status=`success`,n.updateGroup.data=t.payload.data;let r=t.meta.arg;n.groupData.data?.id===r.id&&(n.groupData.data={...n.groupData.data,...t.payload.data&&typeof t.payload.data==`object`?t.payload.data:{},...r.title===void 0?{}:{title:r.title},...r.description===void 0?{}:{description:r.description}})}).addCase(sw.rejected,e=>{let t=e;t.updateGroup=tw.updateGroup}).addCase(cw.pending,e=>{let t=e;t.groupData.status=`pending`,t.groupData.data=null}).addCase(cw.fulfilled,(e,t)=>{let n=e;n.groupData.status=`success`,n.groupData.data=t.payload.data}).addCase(cw.rejected,e=>{let t=e;t.groupData=tw.groupData})}}),jte=lw.reducer,{addGroupMembersReset:Mte,groupMembersReset:Nte,removeGroupMembersReset:Pte,createGroupReset:Fte,updateGroupReset:Ite,groupDataReset:Lte}=lw.actions,uw=`/api/v1/`,dw={createContactGroup:{status:`idle`,data:null,success:!1},organizationContactGroups:{status:`idle`,data:null},createContact:{status:`idle`,data:null,success:!1},editContactGroup:{status:`idle`,data:null,success:!1},contactGroupContacts:{status:`idle`,data:null,meta:null},searchContacts:{status:`idle`,data:null},contactByContactId:{status:`idle`,data:null},editContact:{status:`idle`,data:null,success:!1},updateContactGroup:{status:`idle`,data:null},deleteContact:{status:`idle`,data:null,meta:null,success:!1}},fw=H(`contacts/createContactGroup`,async e=>await V({options:{apiVersion:uw,domainRoot:`contact-groups`,method:`contactGroups`},data:e.data})),pw=H(`contacts/editContactGroup`,async e=>await V({options:{apiVersion:uw,domainRoot:`contact-groups`,method:`editContactGroup`},data:e.data})),mw=H(`contacts/contactGroupContacts`,async e=>{let{path:t,queryObject:n}=e;return await V({options:{apiVersion:uw,domainRoot:`contacts`,method:`getContactGroupContacts`,path:t,queryObject:n}})}),hw=H(`contacts/organizationContactGroups`,async e=>await V({options:{apiVersion:uw,domainRoot:`contact-groups`,method:`organizationContactGroups`,path:e.path}}),{condition:(e,t)=>!(t.getState().contacts.organizationContactGroups.status===`loading`||t.getState().contacts.organizationContactGroups.data)}),gw=H(`contacts/createContact`,async e=>await V({options:{apiVersion:uw,domainRoot:`contacts`,method:`contacts`},data:e.data})),_w=H(`contacts/searchContacts`,async e=>{let{path:t,queryObject:n}=e;return await V({options:{apiVersion:uw,domainRoot:`contacts`,method:`searchContacts`,path:t,queryObject:n},data:e.data})}),vw=H(`contacts/contactByContactId`,async e=>await V({options:{apiVersion:uw,domainRoot:`contacts`,method:`getContactByContactId`,path:e.path}})),yw=H(`contacts/editContact`,async e=>await V({options:{apiVersion:uw,domainRoot:`contacts`,method:`editContact`},data:e.data})),bw=H(`contacts/updateContactGroup`,async e=>await V({options:{apiVersion:uw,domainRoot:`contacts`,method:`updateContactGroup`},data:e.data})),xw=H(`contacts/deleteContact`,async e=>await V({options:{apiVersion:uw,domainRoot:`contacts`,method:`deleteContact`,path:e.id}})),Sw=Ie({name:`contacts`,initialState:dw,reducers:{organizationContactGroupsReset:e=>{let t=e;t.organizationContactGroups=dw.organizationContactGroups},getContactByContactIdReset:e=>{let t=e;t.contactByContactId=dw.contactByContactId},createContactGroupReset:e=>{let t=e;t.createContactGroup=dw.createContactGroup},editContactGroupReset:e=>{let t=e;t.editContactGroup=dw.editContactGroup},createContactReset:e=>{let t=e;t.createContact=dw.createContact},contactGroupContactsReset:e=>{let t=e;t.contactGroupContacts=dw.contactGroupContacts},searchContactsReset:e=>{let t=e;t.searchContacts=dw.searchContacts},updateContactGroupReset:e=>{let t=e;t.updateContactGroup=dw.updateContactGroup},editContactReset:e=>{let t=e;t.editContact=dw.editContact},deleteContactReset:e=>{let t=e;t.deleteContact=dw.deleteContact}},extraReducers:e=>{e.addCase(fw.pending,e=>{let t=e;t.createContactGroup.status=`loading`}).addCase(fw.fulfilled,(e,t)=>{let n=e;n.createContactGroup.status=`idle`,n.createContactGroup.data=t.payload.data,n.createContactGroup.success=t.payload.success}).addCase(pw.pending,e=>{let t=e;t.editContactGroup.status=`loading`}).addCase(pw.fulfilled,(e,t)=>{let n=e;n.editContactGroup.status=`idle`,n.editContactGroup.data=t.payload.data,n.editContactGroup.success=t.payload.success}).addCase(hw.pending,e=>{let t=e;t.organizationContactGroups.status=`loading`}).addCase(hw.fulfilled,(e,t)=>{let n=e;n.organizationContactGroups.status=`idle`,n.organizationContactGroups.data=t.payload.data}).addCase(gw.pending,e=>{let t=e;t.createContact.status=`loading`}).addCase(gw.fulfilled,(e,t)=>{let n=e;n.createContact.status=`idle`,n.createContact.data=t.payload.data,n.createContact.success=t.payload.success}).addCase(mw.pending,e=>{let t=e;t.contactGroupContacts.status=`loading`}).addCase(mw.fulfilled,(e,t)=>{let n=e;n.contactGroupContacts.status=`idle`,n.contactGroupContacts.meta=t.payload.meta,n.contactGroupContacts.data=t.payload.data}).addCase(_w.pending,e=>{let t=e;t.searchContacts.status=`loading`}).addCase(_w.fulfilled,(e,t)=>{let n=e;n.searchContacts.status=`idle`,n.searchContacts.meta=t.payload.meta,n.searchContacts.data=t.payload.data}).addCase(vw.pending,e=>{let t=e;t.contactByContactId.status=`loading`}).addCase(vw.fulfilled,(e,t)=>{let n=e;n.contactByContactId.status=`idle`,n.contactByContactId.data=t.payload.data}).addCase(yw.pending,e=>{let t=e;t.editContact.status=`loading`}).addCase(yw.fulfilled,(e,t)=>{let n=e;n.editContact.status=`idle`,n.editContact.data=t.payload.data,n.editContact.success=t.payload.success}).addCase(bw.pending,e=>{let t=e;t.updateContactGroup.status=`loading`}).addCase(bw.fulfilled,(e,t)=>{let n=e;n.updateContactGroup.status=`idle`,n.updateContactGroup.data=t.payload.data}).addCase(xw.pending,e=>{let t=e;t.deleteContact.status=`loading`}).addCase(xw.fulfilled,(e,t)=>{let n=e;n.deleteContact.status=`idle`,n.deleteContact.data=t.payload.data,n.deleteContact.success=t.payload.success,n.deleteContact.meta=t.payload.meta})}}),{organizationContactGroupsReset:Cw,getContactByContactIdReset:Rte,createContactGroupReset:ww,editContactGroupReset:zte,createContactReset:Bte,contactGroupContactsReset:Tw,searchContactsReset:Ew,editContactReset:Vte,updateContactGroupReset:Hte,deleteContactReset:Ute}=Sw.actions,Wte=Sw.reducer,Dw=`/api/v1/`,Ow={userOrganizations:{status:`idle`,data:null},organizationLegalInfo:{status:`idle`,data:null},ownedOrganizations:{status:`idle`,data:null},createOrganization:{status:`idle`,data:null},editOrganization:{status:`idle`,data:null},editOrganizationLegalInfo:{status:`idle`,data:null},selectedOrganization:{data:null},organizationInfo:{status:`idle`,data:null},acceptInvitation:{status:`idle`,data:null},declineInvitation:{status:`idle`,data:null},allOrganizations:{status:`idle`,data:null}}
2324,kw=H(`organization/allOrganizations`,async e=>(await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`allOrganizations`,queryObject:e.queryObject}})).data),Gte=H(`organization/checkExistOrganization`,async e=>(await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`checkExistOrganization`,path:`name/${e}`}})).data),Aw=H(`organization/organizationInfo`,async e=>{let{organizationId:t}=e;return(await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`organizationInfo`,path:`${t}`}})).data},{condition:(e,t)=>!(t.getState().organization.organizationInfo.status===`loading`||t.getState().organization.organizationInfo.data)}),jw=H(`organization/userOrganizations`,async e=>(await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`user`,path:`${e.signedInUserId}`}})).data,{condition:(e,t)=>!(t.getState().organization.userOrganizations.status===`loading`||t.getState().organization.userOrganizations.data)}),Mw=H(`organization/ownedOrganizations`,async e=>(await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`owned`,path:`${e.signedInUserId}`}})).data,{condition:(e,t)=>!(t.getState().organization.ownedOrganizations.status===`loading`||t.getState().organization.ownedOrganizations.data)}),Nw=H(`organization/organizationLegalInfo`,async({organizationId:e})=>(await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`legalInfo`,path:`${e}/legal-info`}})).data,{condition:(e,t)=>!(t.getState().organization.organizationLegalInfo.status===`loading`||t.getState().organization.organizationLegalInfo.data)}),Pw=H(`organization/createOrganization`,async e=>await V({options:{apiVersion:Dw,domainRoot:`organizations`},data:e.data})),Fw=H(`organization/editOrganization`,async e=>await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`profile`},data:e.data})),Iw=H(`organization/acceptInvitation`,async e=>await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`acceptInvitation`},data:e.data})),Lw=H(`organization/editOrganizationLegalInfo`,async e=>await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`editLegalInfo`},data:e})),Rw=H(`organization/declineInvitation`,async e=>(await V({options:{apiVersion:Dw,domainRoot:`organizations`,method:`declineInvitation`},data:e.data})).data),zw=Ie({name:`organization`,initialState:Ow,reducers:{organizationInfoReset:e=>{let t=e;t.organizationInfo=Ow.organizationInfo},organizationLegalInfoReset:e=>{let t=e;t.organizationLegalInfo=Ow.organizationLegalInfo},userOrganizationsReset:e=>{let t=e;t.userOrganizations=Ow.userOrganizations},ownedOrganizationsReset:e=>{let t=e;t.ownedOrganizations=Ow.ownedOrganizations},createOrganizationReset:e=>{let t=e;t.createOrganization=Ow.createOrganization},editOrganizationReset:e=>{let t=e;t.editOrganization=Ow.editOrganization},organizationSelect:(e,t)=>{let n=e;n.selectedOrganization=t.payload},declineInvitationReset:e=>{let t=e;t.declineInvitation=Ow.declineInvitation},acceptInvitationReset:e=>{let t=e;t.acceptInvitation=Ow.acceptInvitation},allOrganizationsReset:e=>{let t=e;t.allOrganization=Ow.allOrganization}},extraReducers:e=>{e.addCase(Aw.pending,e=>{let t=e;t.organizationInfo.status=`loading`}).addCase(Aw.fulfilled,(e,t)=>{let n=e;n.organizationInfo.status=`idle`,n.organizationInfo.data=t.payload}).addCase(Nw.pending,e=>{let t=e;t.organizationLegalInfo.status=`loading`}).addCase(Nw.fulfilled,(e,t)=>{let n=e;n.organizationLegalInfo.status=`idle`,t.payload?.success||(n.organizationLegalInfo.data=t.payload)}).addCase(jw.pending,e=>{let t=e;t.userOrganizations.status=`loading`}).addCase(jw.fulfilled,(e,t)=>{let n=e;n.userOrganizations.status=`idle`,n.userOrganizations.data=t.payload}).addCase(Mw.pending,e=>{let t=e;t.ownedOrganizations.status=`loading`}).addCase(Mw.fulfilled,(e,t)=>{let n=e;n.ownedOrganizations.status=`idle`,n.ownedOrganizations.data=t.payload}).addCase(Pw.pending,e=>{let t=e;t.createOrganization.status=`loading`}).addCase(Pw.fulfilled,(e,t)=>{let n=e;n.createOrganization.status=`idle`,n.createOrganization.data=t.payload}).addCase(Fw.pending,e=>{let t=e;t.editOrganization.status=`loading`}).addCase(Fw.fulfilled,(e,t)=>{let n=e;n.editOrganization.status=`idle`,n.editOrganization.data=t.payload}).addCase(Lw.pending,e=>{let t=e;t.editOrganizationLegalInfo.status=`loading`}).addCase(Lw.fulfilled,(e,t)=>{let n=e;n.editOrganizationLegalInfo.status=`idle`,n.editOrganizationLegalInfo.data=t.payload}).addCase(Iw.pending,e=>{let t=e;t.acceptInvitation.status=`loading`}).addCase(Iw.fulfilled,(e,t)=>{let n=e;n.acceptInvitation.status=`idle`,n.acceptInvitation.data=t.payload}).addCase(Iw.rejected,e=>{let t=e;t.acceptInvitation.status=`idle`,t.acceptInvitation.data={success:!1}}).addCase(Rw.pending,e=>{let t=e;t.declineInvitation.status=`loading`}).addCase(Rw.fulfilled,(e,t)=>{let n=e;n.declineInvitation.status=`idle`,n.declineInvitation.data=t.payload}).addCase(Rw.rejected,e=>{let t=e;t.declineInvitation.status=`idle`,t.declineInvitation.data={success:!1}}).addCase(kw.pending,e=>{let t=e;t.allOrganizations.status=`loading`}).addCase(kw.fulfilled,(e,t)=>{let n=e;n.allOrganizations.status=`success`,n.allOrganizations.data=t.payload})}}),{userOrganizationsReset:Kte,ownedOrganizationsReset:qte,createOrganizationReset:Jte,editOrganizationReset:Yte,organizationSelect:Bw,organizationInfoReset:Xte,organizationLegalInfoReset:Zte,acceptInvitationReset:Qte,declineInvitationReset:$te}=zw.actions,ene=zw.reducer,Vw=[{background:`#EBE8FD`,text:`#4B38BE`},{background:`#FFFBEB`,text:`#EBBC00`},{background:`#FFE5D2`,text:`#F18B0E`},{background:`#F8D3D3`,text:`#851416`},{background:`#E7F0FD`,text:`#0F55BD`},{background:`#D8F3E0`,text:`#25743C`}],Hw=Vw[0],Uw=e=>{let t=e.toUpperCase();return Vw.find(e=>e.background.toUpperCase()===t)||Hw},Ww=e=>({bgcolor:e}),Gw=e=>t=>{let n=Vw.find(t=>t.background===e)?.text??t.palette.text.primary;return{bgcolor:e,color:n,"& .MuiChip-deleteIcon":{margin:`0 5px 0 0`,color:n}}},tne=(e,t)=>({backgroundColor:e}),nne=(e,t)=>e.length>t?`${e.substring(0,t)}...`:e,Kw=`/api/v1/`,qw={list:{data:null,status:`idle`,success:!1,meta:null},create:{data:null,status:`idle`,success:!1},update:{data:null,status:`idle`,success:!1},delete:{status:`idle`,data:null,success:!1},usedCount:{data:null,status:`idle`,success:!1}},Jw=H(`tags/fetchOrganizationTags`,async({organizationId:e,offset:t=0,limit:n=100})=>await V({options:{apiVersion:Kw,domainRoot:`tags`,method:`getOrganizationTags`,path:`organization/${e}`,queryObject:{offset:t,limit:n}}}
2324),{condition:(e,t)=>{let n=t.getState();return!n||!n.tags||!n.tags.list?!0:n.tags.list.status!==`pending`}}),Yw=H(`tags/createTag`,async e=>{let{checkStatusOveredFunction:t,...n}=e;return await V({options:{apiVersion:Kw,domainRoot:`tags`,method:`createTag`,checkStatusOveredFunction:t},data:n})}),Xw=H(`tags/updateTag`,async e=>{let{id:t,checkStatusOveredFunction:n,...r}=e;return{...await V({options:{apiVersion:Kw,domainRoot:`tags`,method:`updateTag`,path:t,methodType:`PATCH`,checkStatusOveredFunction:n,commandName:`tags.UpdateTag`},data:{id:t,...r}}),tagId:t,updates:{title:r.title,color:r.color}}}),Zw=H(`tags/fetchTagUsedCount`,async({tagId:e})=>({...await V({options:{apiVersion:Kw,domainRoot:`tags`,method:`usedCount`,path:`${e}/used-count`}}),tagId:e})),Qw=H(`tags/deleteTag`,async({tagId:e,checkStatusOveredFunction:t})=>({...await V({options:{apiVersion:Kw,domainRoot:`tags`,method:`deleteTag`,path:e,checkStatusOveredFunction:t,commandName:`tags.DeleteTag`}}),tagId:e})),$w=Ie({name:`tags`,initialState:qw,reducers:{resetTags:e=>{let t=e;t.list=qw.list},updateTagReset:e=>{let t=e;t.update=qw.update},deleteTagReset:e=>{let t=e;t.update=qw.update}},extraReducers:e=>e.addCase(Jw.pending,e=>{let t=e;t.list.status=`pending`}).addCase(Jw.fulfilled,(e,t)=>{let n=e;if(n.list.status=`idle`,n.list.success=t.payload&&t.payload.success||!1,t.payload&&t.payload.success&&t.payload.data){let e=Array.isArray(t.payload.data)?t.payload.data.map(e=>{let t=Uw(e.color||Hw.background);return{id:e.id,title:e.title,color:t.background,textColor:e.textColor||t.text}}):[];n.list.data=e}t.payload&&t.payload.meta&&(n.list.meta=t.payload.meta)}).addCase(Jw.rejected,e=>{let t=e;t.list.status=`idle`,t.list.success=!1}).addCase(Yw.pending,e=>{let t=e;t.create.status=`pending`}).addCase(Yw.fulfilled,(e,t)=>{let n=e;if(n.create.status=`idle`,n.create.success=t.payload&&t.payload.success||!1,t.payload&&t.payload.success&&t.payload.data){let e=Uw(t.payload.data.color||t.meta.arg.color),r={id:t.payload.data.id||t.meta.arg.id,title:t.payload.data.title||t.meta.arg.title,color:e.background,textColor:t.payload.data.textColor||e.text};n.create.data=r,n.list.data&&!n.list.data.find(e=>e.id===r.id)&&n.list.data.push(r)}}).addCase(Yw.rejected,e=>{let t=e;t.create.status=`idle`,t.create.success=!1}).addCase(Xw.pending,e=>{let t=e;t.update.status=`pending`}).addCase(Xw.fulfilled,(e,t)=>{let n=e;if(n.update.status=`idle`,n.update.success=t.payload&&t.payload.success||!1,t.payload&&t.payload.success){let{tagId:e,updates:r}=t.payload;if(n.list.data){let t=n.list.data.findIndex(t=>t.id===e);if(t!==-1){let e=n.list.data[t],i=r.color?Uw(r.color):Uw(e.color);n.list.data[t]={...e,title:r.title??e.title,color:i.background,textColor:i.text},n.update.data=n.list.data[t]}}}}).addCase(Xw.rejected,e=>{let t=e;t.update.status=`idle`,t.update.success=!1}).addCase(Qw.pending,e=>{let t=e;t.delete.status=`pending`}).addCase(Qw.fulfilled,(e,t)=>{let n=e;if(n.delete.status=`idle`,n.delete.data=t.payload.data,n.delete.success=t.payload&&t.payload.success||!1,t.payload&&t.payload.success){let{tagId:e}=t.payload;n.list.data&&(n.list.data=n.list.data.filter(t=>t.id!==e))}}).addCase(Qw.rejected,e=>{let t=e;t.delete.status=`idle`,t.delete.success=!1}).addCase(Zw.pending,e=>{let t=e;t.usedCount.status=`pending`}).addCase(Zw.fulfilled,(e,t)=>{let n=e;n.usedCount.status=`idle`,n.usedCount.success=t.payload&&t.payload.success||!1,t.payload&&t.payload.success&&t.payload.data&&(n.usedCount.data=t.payload.data)}).addCase(Zw.rejected,e=>{let t=e;t.usedCount.status=`idle`,t.usedCount.success=!1})}),{updateTagReset:rne,deleteTagReset:ine}=$w.actions,ane=$w.reducer,eT=e=>new Promise(t=>{setTimeout(t,e)}),one=e=>{if(!e||typeof e!=`object`)return null;let t=e,n=t.data??t;return Array.isArray(n.metas)?n:null};async function sne(e,t){return one((await fe.get(`/api/v1/${e}/subsequent-metas/${t}`)).data)}async function cne(e,t,n=0,r={}){let i=r.tries??10,a=r.delay??1500;for(let r=0;r<i;r+=1){try{let r=await sne(e,t);if(!r?.metas?.length){await eT(a);continue}if(n<=0||r.metas.length>=n||typeof r.count==`number`&&r.count>=n)return r}catch{}await eT(a)}return null}async function lne({domainRoot:e,requestId:t,expectedCount:n=0,tries:r=10,delay:i=1500,checkStatusOveredFunction:a,commandName:o,unsuccessfulMessage:s,showSnackbar:c=!0}){let l=await cne(e,t,n,{tries:r,delay:i});if(!l?.metas?.length)return a?a(o):c&&he.error(s||de.t(`common.errors.500ErrorMessage`)),{success:!1};let u=new Map;return(await Promise.all(l.metas.map(t=>ve({url:`/api/v1/${e}/status/${t.correlationId}`,params:{tries:r,delay:i},checkStatusOveredFunction:a,commandName:o,unsuccessfulMessage:s,apiCallId:t.correlationId,apiCallQueue:u}).catch(()=>({success:!1}))))).every(e=>e&&e.success!==!1)?(c&&he.success(de.t(`common.messages.successfulMessage`)),{success:!0,meta:{requestId:t}}):{success:!1,meta:{requestId:t}}}var tT=`/api/v1/`,nT={meetingsDetails:{status:`idle`,data:null},meetingsDetailsEdit:{status:`idle`,data:null},updateMeetingTags:{status:`idle`,data:null},meetingCancel:{status:`idle`,data:null},meetingFinish:{status:`idle`,data:null},createMeetingLocation:{status:`idle`,data:null},editMeetingLocation:{status:`idle`,data:null},createMeeting:{status:`idle`,data:null},meetingLocations:{status:`idle`,data:null},meetings:{status:`idle`,data:null},changeMeetingLocationStatus:{status:`idle`,data:null},meetingLocation:{status:`idle`,data:null},addEmployeeParticipates:{status:`idle`,data:null},removeEmployeeParticipates:{status:`idle`,data:null},addContactParticipates:{status:`idle`,data:null},removeContactParticipates:{status:`idle`,data:null},meetingsReservations:{status:`idle`,data:null},meetingMinutes:{status:`idle`,data:null},createMeetingResolution:{status:`idle`,data:null},createMeetingResolutionsBatch:{status:`idle`,data:null},updateMeetingResolution:{status:`idle`,data:null},deleteMeetingResolution:{status:`idle`,data:null},assignMeetingResolutionTask:{status:`idle`,data:null},unassignMeetingResolutionTask:{status:`idle`,data:null},meetingMinutesEdit:{status:`idle`,data:null},meetingHistory:{status:`idle`,data:null},organizationAllMeetings:{status:`idle`,data:null},meetingLocationAvailability:{status:`idle`,success:void 0,data:null}},rT=H(`meeting/meetingsReservations`,async({id:e,fromDate:t,toDate:n})=>await V({options:{apiVersion:tT,domainRoot:`meeting-locations`,method:`getMeetingsReservations`,path:`${e}/reservations/${t}/${n}`}})),iT=H(`meetings/meetingsDetails;`,async({meetingId:e,recurrenceIndex:t})=>await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`meetingsDetails`,path:`${e}${t==null?``:`?recurrenceIndex=${t}`}`}})),aT=H(`meeting/meetingCancel`,async({id:e,data:t,checkStatusOveredFunction:n})=>await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`meetingCancel`,path:`${e}/cancel`,checkStatusOveredFunction:n,commandName:`meetings.MeetingCanceled`},data:t})),oT=H(`meeting/meetingFinish`,async({id:e,data:t,checkStatusOveredFunction:n})=>await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`meetingFinish`,path:`${e}/finish`,checkStatusOveredFunction:n,commandName:`meetings.MeetingFinished`},data:t})),sT=H(`meeting/meetingsDetailsEdit`,async({meetingId:e,data:t,checkStatusOveredFunction:n})=>await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`meetingEdit`,path:`${e}`,checkStatusOveredFunction:n,commandName:`meetings.MeetingUpdated`},data:t})),cT=H(`meeting/updateMeetingTags`,async({meetingId:e,data:t,checkStatusOveredFunction:n})=>await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`updateMeetingTags`,path:`${e}/tags`,checkStatusOveredFunction:n,commandName:`meetings.MeetingTagsUpdated`},data:t})),lT=H(`meetings/createMeeting`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`createMeeting`,checkStatusOveredFunction:n,commandName:`meetings.MeetingCreated`},data:t})}),uT=H(`meetings/createMeetingLocation`,async e=>{let{data:t,checkStatusOveredFunction:n}=e;return await V({options:{apiVersion:tT,domainRoot:`meeting-locations`,method:`createMeetingLocation`,checkStatusOveredFunction:n,commandName:`meetingLocations.CreateMeetingLocationFailed`},data:t})}
2324),dT=H(`meetings/createMeetingMinutes`,async e=>{let{id:t,data:n,checkStatusOveredFunction:r}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`createMeetingMinutes`,path:`${t}/minutes`,checkStatusOveredFunction:r,commandName:`meetings.MeetingMinutesCreated`},data:n})}),fT=H(`meetings/createMeetingResolution`,async e=>{let{id:t,data:n,checkStatusOveredFunction:r}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`createMeetingResolution`,path:`${t}/resolution`,checkStatusOveredFunction:r,commandName:`meetings.MeetingResolutionCreated`},data:n})}),pT=H(`meetings/createMeetingResolutionsBatch`,async e=>{let{id:t,data:n,checkStatusOveredFunction:r}=e,i=await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`createMeetingResolutionsBatch`,path:`${t}/resolution/batch`,checkStatusOveredFunction:r,commandName:`meetings.MeetingResolutionsCreated`},data:n});if(!i?.success)return i;let a=i.meta?.requestId;if(!a)return{...i,success:!1};let o=await lne({domainRoot:`meetings`,requestId:a,expectedCount:Array.isArray(n?.resolutions)?n.resolutions.length:0,checkStatusOveredFunction:r,commandName:`meetings.MeetingResolutionsCreated`});return o.success?{...i,success:!0,meta:o.meta??i.meta}:{...i,success:!1,meta:o.meta??i.meta}}),mT=H(`meetings/updateMeetingResolution`,async e=>{let{id:t,resolutionId:n,data:r,checkStatusOveredFunction:i}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`updateMeetingResolution`,path:`${t}/resolution/${n}`,checkStatusOveredFunction:i,commandName:`meetings.MeetingResolutionUpdated`},data:r})}),hT=H(`meetings/deleteMeetingResolution`,async e=>{let{id:t,resolutionId:n,data:r,checkStatusOveredFunction:i}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`deleteMeetingResolution`,path:`${t}/resolution/${n}`,checkStatusOveredFunction:i,commandName:`meetings.MeetingResolutionDeleted`},data:r})}),gT=({id:e,resolutionId:t,taskId:n,data:r})=>r??{id:e,taskId:n,resolutionId:t},_T=H(`meetings/assignMeetingResolutionTask`,async e=>{let{id:t,resolutionId:n,taskId:r,data:i,checkStatusOveredFunction:a}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`assignMeetingResolutionTask`,path:`${t}/resolution/${n}/task/${r}/assign`,checkStatusOveredFunction:a,commandName:`meetings.MeetingResolutionTaskAssigned`},data:gT({id:t,resolutionId:n,taskId:r,data:i})})}),vT=H(`meetings/unassignMeetingResolutionTask`,async e=>{let{id:t,resolutionId:n,taskId:r,data:i,checkStatusOveredFunction:a}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`unassignMeetingResolutionTask`,path:`${t}/resolution/${n}/task/${r}/unassign`,checkStatusOveredFunction:a,commandName:`meetings.MeetingResolutionTaskUnassigned`},data:gT({id:t,resolutionId:n,taskId:r,data:i})})}),yT=H(`meetings/meetingMinutesEdit`,async e=>{let{id:t,data:n,checkStatusOveredFunction:r}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`meetingMinutesEdit`,path:`${t}/minutes`,checkStatusOveredFunction:r,commandName:`meetings.MeetingMinutesUpdated`},data:n})}),bT=H(`meetings/editMeetingLocation`,async e=>{let{meetingLocationId:t,data:n,checkStatusOveredFunction:r}=e;return await V({options:{apiVersion:tT,domainRoot:`meeting-locations`,method:`editMeetingLocation`,path:`${t}`,checkStatusOveredFunction:r,commandName:`meetingLocations.MeetingLocationUpdated`},data:n})}),xT=H(`meetings/addEmployeesParticipates`,async e=>{let{data:t,checkStatusOveredFunction:n}=e,{id:r,recurrenceIndex:i}=t;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`addEmployeesParticipates`,path:`${r}/employee/add${i==null?``:`?recurrenceIndex=${i}`}`,checkStatusOveredFunction:n,commandName:`meetings.EmployeeParticipantsAdded`},data:t})}),ST=H(`meetings/removeEmployeesParticipates`,async e=>{let{data:t,checkStatusOveredFunction:n}=e,{id:r,recurrenceIndex:i}=t;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`addEmployeesParticipates`,path:`${r}/employee/remove${i==null?``:`?recurrenceIndex=${i}`}`,checkStatusOveredFunction:n,commandName:`meetings.EmployeeParticipantsRemoved`},data:t})}),CT=H(`meetings/addContactsParticipates`,async e=>{let{data:t,checkStatusOveredFunction:n}=e,{id:r,recurrenceIndex:i}=t;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`addContactsParticipates`,path:`${r}/contact/add${i==null?``:`?recurrenceIndex=${i}`}`,checkStatusOveredFunction:n,commandName:`meetings.ContactParticipantsAdded`},data:t})}
2324),wT=H(`meetings/removeContactsParticipates`,async e=>{let{data:t,checkStatusOveredFunction:n}=e,{id:r,recurrenceIndex:i}=t;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`removeContactsParticipates`,path:`${r}/contact/remove${i==null?``:`?recurrenceIndex=${i}`}`,checkStatusOveredFunction:n,commandName:`meetings.ContactParticipantsRemoved`},data:t})}),TT=H(`meetings/changeMeetingLocationStatus`,async e=>{let{isDisabled:t,meetingLocationId:n,checkStatusOveredFunction:r}=e;return(await V({options:{apiVersion:tT,domainRoot:`meeting-locations`,method:`changeMeetingLocationStatus`,path:`${n}/${t?`disable`:`enable`}`,checkStatusOveredFunction:r,commandName:`meetingLocations.${t?`MeetingLocationDisabled`:`MeetingLocationEnabled`}`},data:{id:n}})).data}),ET=H(`meetings/meetingLocations`,async e=>{let{organizationId:t}=e;return await V({options:{apiVersion:tT,domainRoot:`meeting-locations`,method:`meetingLocations`,path:`organizations/${t}`,queryObject:e.queryObject}})}),DT=H(`meetings/getMeetings`,async({userId:e,positionId:t,limit:n,offset:r,organizationId:i,creator:a,invited:o,canceled:s,correlationId:c,from:l,to:u,includeTags:d,excludeTags:f})=>{let p=[i,e].join(`/`),m={from:l,to:u,positionId:t,creator:a,invited:o,canceled:s,limit:n,offset:r,includeTags:d,excludeTags:f};return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`getMeetings`,path:`organization/${p}`,queryObject:m},headers:c?{"X-Correlation-ID":c}:{}})}),OT=H(`meetings/getMeetingLocation`,async e=>{let{meetingLocationId:t}=e;return await V({options:{apiVersion:tT,domainRoot:`meeting-locations`,method:`getMeetingLocation`,path:`${t}`}})}),kT=H(`meetings/meetingHistory`,async e=>{let{meetingId:t}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`meetingHistory`,path:`${t}/history`}})}),AT=H(`meetings/organizationAllMeetings`,async e=>{let{organizationId:t}=e;return await V({options:{apiVersion:tT,domainRoot:`meetings`,method:`organizationAllMeetings`,path:`organization/${t}`,queryObject:e.queryObject}})}),jT=H(`meetings/meetingLocationAvailability`,async e=>{let{meetingLocationId:t,from:n,to:r,recurrencePattern:i,recurrenceStart:a,recurrenceEnd:o,ignoreList:s}=e;return await V({options:{apiVersion:tT,domainRoot:`meeting-locations`,method:`meetingLocationAvailability`,path:`${t}/check-availability`,queryObject:{from:n,to:r,recurrencePattern:i,recurrenceStart:a,recurrenceEnd:o,ignoreList:s}}})}),MT=Ie({name:`meetings`,initialState:nT,reducers:{meetingsReservationsReset:e=>{let t=e;t.meetingsReservations=nT.meetingsReservations},meetingsDetailsReset:e=>{let t=e;t.meetingsDetails=nT.meetingsDetails},meetingsDetailsEditReset:e=>{let t=e;t.meetingsDetailsEdit=nT.meetingsDetailsEdit},meetingCancelReset:e=>{let t=e;t.meetingCancel=nT.meetingCancel},meetingFinishReset:e=>{let t=e;t.meetingFinish=nT.meetingFinish},createMeetingLocationReset:e=>{let t=e;t.createMeetingLocation=nT.createMeetingLocation},createMeetingMinutesReset:e=>{let t=e;t.meetingMinutes=nT.meetingMinutes},createMeetingResolutionReset:e=>{let t=e;t.createMeetingResolution=nT.createMeetingResolution},createMeetingResolutionsBatchReset:e=>{let t=e;t.createMeetingResolutionsBatch=nT.createMeetingResolutionsBatch},updateMeetingResolutionReset:e=>{let t=e;t.updateMeetingResolution=nT.updateMeetingResolution},deleteMeetingResolutionReset:e=>{let t=e;t.deleteMeetingResolution=nT.deleteMeetingResolution},assignMeetingResolutionTaskReset:e=>{let t=e;t.assignMeetingResolutionTask=nT.assignMeetingResolutionTask},unassignMeetingResolutionTaskReset:e=>{let t=e;t.unassignMeetingResolutionTask=nT.unassignMeetingResolutionTask},meetingMinutesEditReset:e=>{let t=e;t.meetingMinutesEdit=nT.meetingMinutesEdit},editMeetingLocationReset:e=>{let t=e;t.editMeetingLocation=nT.editMeetingLocation},meetingLocationsReset:e=>{let t=e;t.meetingLocations=nT.meetingLocations},changeMeetingLocationStatusReset:e=>{let t=e;t.changeMeetingLocationStatus=nT.changeMeetingLocationStatus},getMeetingLocationReset:e=>{let t=e;t.meetingLocation=nT.meetingLocation},getMeetingsReset:e=>{let t=e;t.meetings=nT.meetings},meetingHistoryReset:e=>{let t=e;t.meetingHistory=nT.meetingHistory},meetingLocationAvailabilityReset:e=>{let t=e;t.meetingLocationAvailability=nT.meetingLocationAvailability}},extraReducers:e=>{e.addCase(rT.pending,e=>{let t=e;t.meetingsReservations.status=`pending`}).addCase(rT.fulfilled,(e,t)=>{let n=e;n.meetingsReservations.status=`success`,n.meetingsReservations.data=t.payload.data}).addCase(iT.pending,e=>{let t=e;t.meetingsDetails.status=`pending`}).addCase(iT.fulfilled,(e,t)=>{let n=e;t.payload.status?(n.meetingsDetails.status=`success`,n.meetingsDetails.data=t.payload.data):(n.meetingsDetails.status=`failed`,n.meetingsDetails.data=null)}).addCase(sT.pending,e=>{let t=e;t.meetingsDetailsEdit.status=`pending`}).addCase(sT.fulfilled,(e,t)=>{let n=e;n.meetingsDetailsEdit.status=`success`,n.meetingsDetailsEdit.data=t.payload.data}).addCase(cT.pending,e=>{let t=e;t.updateMeetingTags.status=`pending`}).addCase(cT.fulfilled,(e,t)=>{let n=e;n.updateMeetingTags.status=`success`,n.updateMeetingTags.data=t.payload.data}).addCase(aT.pending,e=>{let t=e;t.meetingCancel.status=`pending`}).addCase(aT.fulfilled,(e,t)=>{let n=e;n.meetingCancel.status=`success`,n.meetingCancel.data=t.payload.data}).addCase(oT.pending,e=>{let t=e;t.meetingFinish.status=`pending`}).addCase(oT.fulfilled,(e,t)=>{let n=e;n.meetingFinish.status=`success`,n.meetingFinish.data=t.payload.data}).addCase(uT.pending,e=>{let t=e;t.createMeetingLocation.status=`pending`}).addCase(dT.pending,e=>{let t=e;t.meetingMinutes.status=`pending`}).addCase(dT.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.meetingMinutes.status=`success`,n.meetingMinutes.data=t.payload.data):(n.meetingMinutes.status=`failed`,n.meetingMinutes.data=null)}).addCase(dT.rejected,e=>{let t=e;t.meetingMinutes.status=`failed`,t.meetingMinutes.data=null}).addCase(fT.pending,e=>{let t=e;t.createMeetingResolution.status=`pending`}).addCase(fT.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.createMeetingResolution.status=`success`,n.createMeetingResolution.data=t.payload.data):(n.createMeetingResolution.status=`failed`,n.createMeetingResolution.data=null)}).addCase(fT.rejected,e=>{let t=e;t.createMeetingResolution.status=`failed`,t.createMeetingResolution.data=null}).addCase(pT.pending,e=>{let t=e;t.createMeetingResolutionsBatch.status=`pending`}).addCase(pT.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.createMeetingResolutionsBatch.status=`success`,n.createMeetingResolutionsBatch.data=t.payload.data):(n.createMeetingResolutionsBatch.status=`failed`,n.createMeetingResolutionsBatch.data=null)}).addCase(pT.rejected,e=>{let t=e;t.createMeetingResolutionsBatch.status=`failed`,t.createMeetingResolutionsBatch.data=null}).addCase(mT.pending,e=>{let t=e;t.updateMeetingResolution.status=`pending`}).addCase(mT.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.updateMeetingResolution.status=`success`,n.updateMeetingResolution.data=t.payload.data):(n.updateMeetingResolution.status=`failed`,n.updateMeetingResolution.data=null)}).addCase(mT.rejected,e=>{let t=e;t.updateMeetingResolution.status=`failed`,t.updateMeetingResolution.data=null}).addCase(hT.pending,e=>{let t=e;t.deleteMeetingResolution.status=`pending`}).addCase(hT.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.deleteMeetingResolution.status=`success`,n.deleteMeetingResolution.data=t.payload.data):(n.deleteMeetingResolution.status=`failed`,n.deleteMeetingResolution.data=null)}).addCase(hT.rejected,e=>{let t=e;t.deleteMeetingResolution.status=`failed`,t.deleteMeetingResolution.data=null}).addCase(_T.pending,e=>{let t=e;t.assignMeetingResolutionTask.status=`pending`}).addCase(_T.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.assignMeetingResolutionTask.status=`success`,n.assignMeetingResolutionTask.data=t.payload.data):(n.assignMeetingResolutionTask.status=`failed`,n.assignMeetingResolutionTask.data=null)}).addCase(_T.rejected,e=>{let t=e;t.assignMeetingResolutionTask.status=`failed`,t.assignMeetingResolutionTask.data=null}).addCase(vT.pending,e=>{let t=e;t.unassignMeetingResolutionTask.status=`pending`}).addCase(vT.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.unassignMeetingResolutionTask.status=`success`,n.unassignMeetingResolutionTask.data=t.payload.data):(n.unassignMeetingResolutionTask.status=`failed`,n.unassignMeetingResolutionTask.data=null)}).addCase(vT.rejected,e=>{let t=e;t.unassignMeetingResolutionTask.status=`failed`,t.unassignMeetingResolutionTask.data=null}).addCase(yT.pending,e=>{let t=e;t.meetingMinutesEdit.status=`pending`}).addCase(yT.fulfilled,(e,t)=>{let n=e;t?.payload?.success?(n.meetingMinutesEdit.status=`success`,n.meetingMinutesEdit.data=t.payload.data):(n.meetingMinutesEdit.status=`failed`,n.meetingMinutesEdit.data=null)}).addCase(yT.rejected,e=>{let t=e;t.meetingMinutesEdit.status=`failed`,t.meetingMinutesEdit.data=null}).addCase(uT.fulfilled,(e,t)=>{let n=e;n.createMeetingLocation.status=`idle`,n.createMeetingLocation.data=t.payload}).addCase(bT.pending,e=>{let t=e;t.editMeetingLocation.status=`pending`}).addCase(bT.fulfilled,(e,t)=>{let n=e;n.editMeetingLocation.status=`idle`,n.editMeetingLocation.data=t.payload}).addCase(TT.pending,e=>{let t=e;t.changeMeetingLocationStatus.status=`pending`}).addCase(TT.fulfilled,(e,t)=>{let n=e;n.changeMeetingLocationStatus.status=`idle`,n.changeMeetingLocationStatus.data=t.payload}).addCase(ET.pending,e=>{let t=e;t.meetingLocations.status=`pending`,t.meetingLocations.data=nT.meetingLocations.data}).addCase(ET.fulfilled,(e,t)=>{let n=e;n.meetingLocations.status=`idle`,n.meetingLocations.meta=t.payload.data.meta,n.meetingLocations.data=t.payload.data.data}).addCase(OT.pending,e=>{let t=e;t.meetingLocation.status=`pending`}).addCase(OT.fulfilled,(e,t)=>{let n=e;n.meetingLocation.status=`idle`,n.meetingLocation.data=t.payload.data}).addCase(lT.pending,(e,t)=>{let n=e;n.createMeeting.status=`pending`}).addCase(lT.fulfilled,(e,t)=>{let n=e;n.createMeeting.status=`success`,n.createMeeting.data=t.payload.data}).addCase(lT.rejected,(e,t)=>{let n=e;n.createMeeting.status=`idle`,n.createMeeting.data=nT.createMeeting.data}).addCase(DT.pending,e=>{let t=e;t.meetings.status=`pending`}).addCase(DT.fulfilled,(e,t)=>{let n=e;n.meetings.status=`idle`,t.meta.arg.correlationId!==t.payload?.meta?.correlationId&&(n.meetings.data=t.payload.data,n.meetings.meta=t.payload.meta)}).addCase(xT.pending,e=>{let t=e;t.addEmployeeParticipates.status=`pending`}).addCase(xT.fulfilled,(e,t)=>{let n=e;n.addEmployeeParticipates.status=`idle`,n.addEmployeeParticipates.data=t.payload.data}).addCase(ST.pending,e=>{let t=e;t.removeEmployeeParticipates.status=`pending`}).addCase(ST.fulfilled,(e,t)=>{let n=e;n.removeEmployeeParticipates.status=`idle`,n.removeEmployeeParticipates.data=t.payload.data}).addCase(CT.pending,(e,t)=>{let n=e;n.addContactParticipates.status=`pending`}).addCase(CT.fulfilled,(e,t)=>{let n=e;n.addContactParticipates.status=`idle`,n.addContactParticipates.data=t.payload.data}).addCase(wT.pending,(e,t)=>{let n=e;n.removeContactParticipates.status=`pending`}).addCase(wT.fulfilled,(e,t)=>{let n=e;n.removeContactParticipates.status=`idle`,n.removeContactParticipates.data=t.payload.data}).addCase(kT.pending,e=>{let t=e;t.meetingHistory.status=`pending`}).addCase(kT.fulfilled,(e,t)=>{let n=e;n.meetingHistory.status=`success`,n.meetingHistory.data=t.payload.data}).addCase(kT.rejected,(e,t)=>{let n=e;n.meetingHistory.status=`idle`,n.meetingHistory.data={success:!1}}).addCase(AT.fulfilled,(e,t)=>{let n=e;n.organizationAllMeetings.status=`idle`,n.organizationAllMeetings.data=t.payload.data,n.organizationAllMeetings.meta=t.payload.meta}).addCase(AT.pending,(e,t)=>{let n=e;n.organizationAllMeetings.status=`pending`}).addCase(jT.pending,e=>{let t=e;t.meetingLocationAvailability.status=`pending`,t.meetingLocationAvailability.success=void 0}).addCase(jT.fulfilled,(e,t)=>{let n=e;n.meetingLocationAvailability.status=`idle`,n.meetingLocationAvailability.success=t.payload.success,n.meetingLocationAvailability.data=t.payload.data}).addCase(jT.rejected,e=>{let t=e;t.meetingLocationAvailability.status=`idle`,t.meetingLocationAvailability.data=null,t.meetingLocationAvailability.success=!1})}}),{meetingsDetailsReset:NT,createMeetingLocationReset:PT,editMeetingLocationReset:FT,meetingLocationsReset:IT,changeMeetingLocationStatusReset:LT,getMeetingLocationReset:RT,meetingsDetailsEditReset:une,meetingsDetailsCanceledReset:dne,getMeetingsReset:zT,meetingsReservationsReset:fne,meetingCancelReset:pne,meetingFinishReset:mne,createMeetingMinutesReset:BT,createMeetingResolutionReset:hne,createMeetingResolutionsBatchReset:gne,updateMeetingResolutionReset:_ne,deleteMeetingResolutionReset:vne,assignMeetingResolutionTaskReset:VT,unassignMeetingResolutionTaskReset:yne,meetingMinutesEditReset:HT,meetingHistoryReset:UT,meetingLocationAvailabilityReset:WT}=MT.actions,GT=MT.reducer,KT=`/api/v1/`,qT={userProfile:{status:`idle`,data:null},editUserProfile:{status:`idle`,data:null},userPasswordChange:{status:`idle`,data:null},changeSignature:{status:`idle`,data:null},previewImage:``},JT=H(`profile/userProfile`,async({signedInUserId:e})=>await V({options:{apiVersion:KT,domainRoot:`users`,method:`profile`,path:e}}),{condition:(e,t)=>!(t.getState().profile.userProfile.status===`loading`||t.getState().profile.userProfile.data)}),YT=H(`profile/editUserProfile`,async e=>await V({options:{apiVersion:KT,domainRoot:`users`,method:`editProfile`},data:e.data,headers:e.headers})),XT=H(`profile/changeSignature`,async e=>await V({options:{apiVersion:KT,domainRoot:`users`,method:`signature`},data:e.data,headers:e.headers})),ZT=H(`profile/userPasswordChange`,async e=>await V({options:{apiVersion:KT,domainRoot:`users`,method:`changePassword`},data:e.data})),QT=Ie({name:`profile`,initialState:qT,reducers:{userProfileReset:e=>{let t=e;t.userProfile=qT.userProfile},changeSignatureReset:e=>{let t=e;t.changeSignature=qT.changeSignature},editUserProfileReset:e=>{let t=e;t.editUserProfile.data=qT.editUserProfile.data},previewImageChange:(e,t)=>
2324{let n=e;n.previewImage=t.payload},onUserProfileChange:e=>{Object.keys(e.userProfile.data).filter(t=>t in e.editUserProfile.data).forEach(t=>e.userProfile.data[t]=e.editUserProfile.data[t])},onSignatureChange:e=>{Object.keys(e.userProfile.data).filter(t=>t in e.changeSignature.data).forEach(t=>e.userProfile.data[t]=e.changeSignature.data[t])}},extraReducers:e=>{e.addCase(JT.pending,e=>{let t=e;t.userProfile.status=`loading`}).addCase(JT.fulfilled,(e,t)=>{let n=e;n.userProfile.status=`idle`,n.userProfile.data=t.payload.data}).addCase(YT.pending,e=>{let t=e;t.editUserProfile.status=`loading`}).addCase(YT.fulfilled,(e,t)=>{let n=e;n.editUserProfile.status=`idle`,n.editUserProfile.data=t.payload}).addCase(XT.pending,e=>{let t=e;t.changeSignature.status=`loading`}).addCase(XT.fulfilled,(e,t)=>{let n=e;n.changeSignature.status=`idle`,n.changeSignature.data=t.payload}).addCase(ZT.pending,e=>{let t=e;t.userPasswordChange.status=`loading`}).addCase(ZT.fulfilled,(e,t)=>{let n=e;n.userPasswordChange.status=`idle`,n.userPasswordChange.data=t.payload})}}),{userProfileReset:$T,editUserProfileReset:eE,onUserProfileChange:tE,onSignatureChange:nE,changeSignatureReset:rE,previewImageChange:iE}=QT.actions,aE=QT.reducer,oE=`chatCartableUsers`,{addUserAccessAsync:sE,addUserAccessReset:cE,allGrantedEmployeesAsync:lE,allGrantedEmployeesReset:uE,revokeUserAccessAsync:dE,revokeUserAccessReset:fE,reducer:pE}=eb(`chat-employees`),mE=`/api/v1/`,hE={finalizeInvoice:{status:`idle`,data:null,success:!1},clearableInvoice:{status:`idle`,data:null,success:!1}},gE=H(`invoices/clearableInvoice`,async({orderId:e})=>await V({options:{apiVersion:mE,domainRoot:`invoices`,method:`clearableInvoice`,path:`clearable/orders/${e}`}}),{condition:(e,t)=>t.getState().invoices.clearableInvoice.status!==`pending`}),_E=H(`invoices/finalizeInvoice`,async({id:e})=>await V({options:{apiVersion:mE,domainRoot:`invoices`,method:`finalizeInvoice`,path:`${e}/finalize`},data:{id:e}})),vE=Ie({name:`invoices`,initialState:hE,reducers:{finalizeInvoiceReset:e=>{let t=e;t.finalizeInvoice.data=hE.finalizeInvoice.data},clearableInvoiceReset:e=>{let t=e;t.clearableInvoice=hE.clearableInvoice}},extraReducers:e=>{e.addCase(gE.pending,e=>{let t=e;t.clearableInvoice.status=`pending`}).addCase(gE.fulfilled,(e,t)=>{let n=e;n.clearableInvoice.status=`idle`,n.clearableInvoice.data=t.payload.data,n.clearableInvoice.success=t.payload.success}).addCase(gE.rejected,e=>{let t=e;t.clearableInvoice.status=`idle`,t.clearableInvoice.success=!1}).addCase(_E.pending,e=>{let t=e;t.finalizeInvoice.status=`pending`}).addCase(_E.fulfilled,(e,t)=>{let n=e;n.finalizeInvoice.status=`idle`,n.finalizeInvoice.data=t.payload.data,n.finalizeInvoice.success=t.payload.success})}}),yE=vE.reducer,{finalizeInvoiceReset:bne,clearableInvoiceReset:bE}=vE.actions,xE=`/api/v1/`,SE={allProducts:{status:`idle`,data:null},solutionRequest:{status:`idle`,data:null,meta:null,success:!1}},CE=H(`products/allProducts`,async()=>await V({options:{apiVersion:xE,domainRoot:`products`,method:`allProducts`}})),wE=H(`products/solutionRequest`,async e=>await V({options:{apiVersion:xE,domainRoot:`products`,method:`solutionRequest`,path:`/solutions/${e.solution}/requests`},data:e})),TE=Ie({name:`products`,initialState:SE,reducers:{allProductsReset:e=>{let t=e;t.allProducts=SE.allProducts},solutionRequestReset:e=>{let t=e;t.solutionRequest=SE.solutionRequest}},extraReducers:e=>e.addCase(CE.pending,e=>{let t=e;t.allProducts.status=`pending`}).addCase(CE.fulfilled,(e,t)=>{let n=e;t.payload?.success?(n.allProducts.status=`success`,n.allProducts.data=t.payload?.data??null):(n.allProducts.status=`failed`,n.allProducts.data=null)}).addCase(wE.pending,e=>{let t=e;t.solutionRequest.status=`pending`}).addCase(wE.fulfilled,(e,t)=>{let n=e;t.payload.success||t.payload?.extraData?.meta?.messages[0]?.exception===`DuplicateSolutionRequestException`?n.solutionRequest.status=`success`:n.solutionRequest.status=`failed`,n.solutionRequest.data={solution:t?.meta?.arg?.solution}})}),EE=TE.reducer,{allProductsReset:DE,solutionRequestReset:xne}=TE.actions,OE=`/api/v1/`,kE={paymentsList:{data:null,mata:null,status:`idle`},addPaymentDocument:{status:`idle`,data:null},processPayment:{status:`idle`,data:null}},AE=H(`payments/paymentsList`,async e=>{let{queryObject:t}=e;return await V({options:{apiVersion:OE,domainRoot:`payments`,method:`paymentsList`,queryObject:t}})}),jE=H(`payments/addPaymentDocument`,async e=>await V({options:{apiVersion:OE,domainRoot:`payments`,method:`addPaymentDocument`},data:e})),ME=H(`payments/processPayment`,async e=>await V({options:{apiVersion:OE,domainRoot:`payments`,path:`/${e.id}/status`,method:`processPayment`},data:e})),NE=Ie({name:`payments`,initialState:kE,reducers:{paymentsListReset:e=>{let t=e;t.paymentsList=kE.paymentsList},addPaymentDocumentReset:e=>{let t=e;t.addPaymentDocument.data=kE.addPaymentDocument.data},processPaymentReset:e=>{let t=e;t.processPayment.data=kE.processPayment.data}},extraReducers:e=>{e.addCase(AE.pending,e=>{let t=e;t.paymentsList.status=`pending`}).addCase(AE.fulfilled,(e,t)=>{let n=e;n.paymentsList.status=`success`,n.paymentsList.data=t.payload.data,n.paymentsList.meta=t.payload.meta}).addCase(AE.rejected,e=>{let t=e;t.paymentsList.status=`rejected`,t.paymentsList.data={success:!1}}).addCase(jE.pending,e=>{let t=e;t.addPaymentDocument.status=`loading`}).addCase(jE.fulfilled,(e,t)=>{let n=e;n.addPaymentDocument.status=`idle`,n.addPaymentDocument.data=t.payload.data}).addCase(ME.pending,e=>{let t=e;t.processPayment.status=`loading`}).addCase(ME.fulfilled,(e,t)=>{let n=e;n.processPayment.status=`idle`,n.processPayment.data=t.payload.data})}}),{addPaymentDocumentReset:Sne,paymentsListReset:Cne,processPaymentReset:PE}=NE.actions,FE=NE.reducer,IE=`/api/v1/`,LE={billboard:`billboard-messages`,boardLists:`board-lists`,boards:`boards`,comments:`comments`,organizations:`organizations`,projects:`projects`,tasks:`tasks`,tariffs:`tariffs`},RE={billboard:{status:`idle`,data:null,success:!1}},zE=H(`billboards/billboard`,async({organizationId:e})=>V({options:{apiVersion:IE,domainRoot:LE.billboard,method:`billboard`,path:`organization/${e}`}})),BE=Ie({name:`billboard`,initialState:RE,reducers:{},extraReducers:e=>{e.addCase(zE.pending,e=>{e.billboard.status=`pending`}).addCase(zE.fulfilled,(e,t)=>{e.billboard.status=`idle`,t.payload.success?e.billboard.data=t.payload.data:e.billboard.data=null,e.billboard.success=t.payload.success})}}).reducer,VE={createBoard:{data:null,status:`idle`,success:!1},projectBoards:{data:null,status:`idle`,success:!1},updateBoard:{data:null,status:`idle`,success:!1},deleteBoard:{data:null,status:`idle`,success:!1},projectBoard:{data:null,status:`idle`,success:!1},subsequentMetas:{data:null,status:`idle`,success:!1}},HE=H(`boards/subsequentMetas`,async({id:e})=>await V({options:{apiVersion:IE,domainRoot:LE.boards,method:`subsequentMetas`,path:`/subsequent-metas/${e}`}})),UE=H(`boards/projectBoards`,async e=>{let{projectId:t,...n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.boards,method:`projectBoards`,path:`project/${t}`,queryObject:n}})}),WE=H(`boards/projectBoard`,async({boardId:e})=>await V({options:{apiVersion:IE,domainRoot:LE.boards,method:`projectBoard`,path:`${e}`}})),GE=H(`boards/createBoard`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.boards,method:`createBoard`},data:e})),KE=H(`boards/updateBoard`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.boards,method:`updateBoard`,path:`${e.id}`},data:e})),qE=H(`boards/deleteBoard`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.boards,method:`deleteBoard`,path:`${e.id}`,checkStatusOveredFunction:e.checkStatusOveredFunction},data:e})),JE=Ie({name:`boardsProject`,initialState:VE,reducers:{createBoardReset:e=>{e.createBoard=VE.createBoard},projectBoardsReset:e=>{e.projectBoards=VE.projectBoards},updateBoardReset:e=>{e.updateBoard=VE.updateBoard},deleteBoardReset:e=>{e.deleteBoard=VE.deleteBoard},projectBoardReset:e=>{e.projectBoard=VE.projectBoard},subsequentMetasReset:e=>{e.subsequentMetas=VE.subsequentMetas}},extraReducers:e=>e.addCase(GE.pending,e=>{e.createBoard.status=`pending`,e.createBoard.data=null}).addCase(GE.fulfilled,(e,t)=>{let n=t.payload;e.createBoard.status=`idle`,e.createBoard.success=t.payload.success,e.createBoard.data=n.data}).addCase(UE.pending,e=>{e.projectBoards.status=`pending`,e.projectBoards.data=null}).addCase(UE.fulfilled,(e,t)=>{let n=t.payload;e.projectBoards.status=`idle`,e.projectBoards.success=t.payload.success,e.projectBoards.data=n.data}).addCase(KE.pending,e=>{e.updateBoard.status=`pending`,e.updateBoard.data=null}).addCase(KE.fulfilled,(e,t)=>{let n=t.payload;e.updateBoard.status=`idle`,e.updateBoard.success=t.payload.success,e.updateBoard.data=n.data}).addCase(qE.pending,e=>{e.deleteBoard.status=`pending`,e.deleteBoard.data=null}).addCase(qE.fulfilled,(e,t)=>{let n=t.payload;e.deleteBoard.status=`idle`,e.deleteBoard.success=t.payload.success,e.deleteBoard.data=n.data}).addCase(WE.pending,e=>{e.projectBoard.status=`pending`,e.projectBoard.data=null}).addCase(WE.fulfilled,(e,t)=>{let n=t.payload;e.projectBoard.status=`idle`,e.projectBoard.success=t.payload.success,e.projectBoard.data=n.data}).addCase(HE.pending,e=>{e.subsequentMetas.status=`pending`,e.subsequentMetas.data=null}).addCase(HE.fulfilled,(e,t)=>{let n=t.payload;e.subsequentMetas.status=`idle`,e.subsequentMetas.success=!0,e.subsequentMetas.data=n})}),YE=JE.reducer,{createBoardReset:XE,projectBoardsReset:ZE,updateBoardReset:QE,deleteBoardReset:$E,projectBoardReset:eD}=JE.actions,tD=5,nD={comments:{data:null,status:`idle`,success:!1},createComment:{data:null,status:`idle`,success:!1}},rD=H(`comments/getComments`,async({organizationId:e,entity:t,entityId:n,offset:r,limit:i})=>await V({options:{apiVersion:IE,domainRoot:LE.comments,method:`getComments`,path:`organization/${e}/entity/${t}/id/${n}`,queryObject:{offset:r,limit:i??tD}}})),iD=H(`comments/createComment`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.comments,method:`createComment`,commandName:`comments.createComment`},data:e})),aD=Ie({name:`comments`,initialState:nD,reducers:{commentsReset:e=>{e.comments=nD.comments},createCommentReset:e=>{e.createComment=nD.createComment}},extraReducers:e=>e.addCase(rD.pending,e=>{e.comments.status=`pending`}).addCase(rD.fulfilled,(e,t)=>{let n=e,r=t.payload;n.comments.status=`idle`,n.comments.success=t.payload.success;let i=n.comments.data??[],a=r.meta?.pagination?.offset??t.meta.arg?.offset??0;
2324if(!t.payload.success||!Array.isArray(r.data)){if(a>0&&i.length>0)return;n.comments.data=null,n.comments.meta=null;return}let o=r.data??[],s=a>0&&i.length>0?[...i,...o]:o;n.comments.data=s,n.comments.meta={...n.comments.meta??{},...r.meta??{}}}).addCase(rD.rejected,e=>{e.comments.status=`failed`}).addCase(iD.pending,e=>{e.createComment.status=`pending`}).addCase(iD.fulfilled,(e,t)=>{let n=e,r=t.payload;n.createComment.status=t.payload.success?`idle`:`failed`,n.createComment.data=t.payload.success?r.data:null,n.createComment.success=t.payload.success}).addCase(iD.rejected,e=>{e.createComment.status=`failed`,e.createComment.data=null})}),{commentsReset:oD,createCommentReset:sD}=aD.actions,cD=aD.reducer,lD={createProject:{data:null,status:`idle`,success:!1},updateProject:{data:null,status:`idle`,success:!1},projectMembers:{data:null,status:`idle`,success:!1},updateMembers:{data:null,status:`idle`,success:!1},allProjects:{data:null,meta:null,status:`idle`,success:!1},project:{data:null,status:`idle`,success:!1}},uD=H(`projects/createProject`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.projects,method:`createProject`},data:e})),dD=H(`projects/updateProject`,async e=>{let{data:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.projects,method:`updateProject`,path:`${t.id}`},data:t})}),fD=H(`projects/projectsList`,async e=>{let{organizationId:t,positionSlotId:n,...r}=e;return await V({options:{apiVersion:IE,domainRoot:LE.projects,method:`projectsList`,path:`/organization/${t}/positionSlotId/${n}`,queryObject:r}})}),pD=H(`projects/getProject`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.projects,method:`getProject`,path:`${t}`}})}),mD=H(`projects/getProjectMembers`,async e=>{let{projectId:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.projects,method:`getProjectMembers`,path:`${t}/members`}})}),hD=H(`projects/updateMembers`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.projects,method:`updateMembers`,path:`${t}/members`},data:e})}),gD=Ie({name:`projects`,initialState:lD,reducers:{createProjectReset:e=>{e.createProject=lD.createProject},updateMembersReset:e=>{e.updateMembers=lD.updateMembers},getProjectReset:e=>{e.project=lD.project},getProjectMembersReset:e=>{e.projectMembers=lD.projectMembers},allProjectsReset:e=>{e.allProjects=lD.allProjects}},extraReducers:e=>e.addCase(uD.pending,e=>{e.createProject.status=`pending`,e.createProject.data=null}).addCase(uD.fulfilled,(e,t)=>{let n=t.payload;e.createProject.status=`idle`,e.createProject.success=t.payload.success,e.createProject.data=n.data}).addCase(hD.pending,e=>{e.updateMembers.status=`pending`,e.updateMembers.data=null,e.updateMembers.success=!1}).addCase(hD.fulfilled,(e,t)=>{let n=t.payload;e.updateMembers.status=`idle`,e.updateMembers.success=t.payload.success,e.updateMembers.data=n.data}).addCase(mD.pending,e=>{e.projectMembers.status=`pending`,e.projectMembers.data=null}).addCase(mD.fulfilled,(e,t)=>{let n=t.payload;e.projectMembers.status=t.payload.success?`idle`:`failed`,e.projectMembers.success=t.payload.success,e.projectMembers.data=t.payload.success?n.data:lD.projectMembers.data}).addCase(mD.rejected,e=>{e.projectMembers.status=`failed`,e.projectMembers.data=null}).addCase(pD.pending,e=>{e.project.status=`pending`}).addCase(pD.fulfilled,(e,t)=>{let n=t.payload;e.project.status=`idle`,e.project.success=t.payload.success,e.project.data=t.payload.success?n.data:null}).addCase(dD.pending,e=>{e.updateProject.status=`pending`}).addCase(dD.fulfilled,(e,t)=>{let n=t.payload;e.updateProject.status=`idle`,e.updateProject.success=t.payload.success,e.updateProject.data=n.data}).addCase(fD.pending,e=>{e.allProjects.status=`pending`}).addCase(fD.fulfilled,(e,t)=>{let n=t.payload;e.allProjects.status=`idle`,e.allProjects.success=t.payload.success,e.allProjects.data=n.data||null,e.allProjects.meta=n?.meta}).addCase(fD.rejected,e=>{e.allProjects.status=`failed`,e.allProjects.data=null})}),_D=gD.reducer,{createProjectReset:wne,getProjectReset:vD,allProjectsReset:Tne,updateMembersReset:Ene,getProjectMembers
2324Reset:yD}=gD.actions,bD={allTariffs:{status:`idle`,data:null},discountCodeAvailability:{status:`idle`,data:null,meta:null},tariffAssignments:{status:`idle`,data:null,meta:null},allTariffsCodes:{status:`idle`,data:null},assignTariff:{status:`idle`,data:null}},xD=H(`tariffs/allTariffs`,async e=>{let{limit:t,offset:n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tariffs,method:`allTariffs`,queryObject:{limit:t,offset:n}}})}),SD=H(`tariffs/discountCodeAvailability`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.tariffs,method:`discountCodeAvailability`,path:`/${e.code}/availability`},data:e})),CD=H(`tariffs/assignTariff`,async e=>{let{data:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tariffs,method:`assignTariff`,commandName:`tariffs.tariffAssigned`,path:`${t.id}/assign`},data:t})}),wD=H(`tariffs/allTariffsCodes`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.tariffs,method:`allTariffsCodes`,path:`code/all`,queryObject:{limit:e.limit,offset:e.offset}}})),TD=H(`tariffs/tariffAssignments`,async e=>{let{limit:t,offset:n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tariffs,method:`tariffAssignments`,queryObject:{limit:t,offset:n}}})}),ED=Ie({name:`tariffs`,initialState:bD,reducers:{allTariffsReset:e=>{e.allTariffs=bD.allTariffs},discountCodeAvailabilityReset:e=>{e.allTariffs=bD.allTariffs},assignTariffReset:e=>{e.assignTariff=bD.assignTariff}},extraReducers:e=>{e.addCase(xD.pending,e=>{e.allTariffs.status=`pending`}).addCase(xD.fulfilled,(e,t)=>{if(e.allTariffs.status=`idle`,t.payload.status){let n=t.payload.data?.reduce((e,t)=>t.items?.every?.(e=>e.product)?[...e,t]:e,[]);e.allTariffs.data=n}}).addCase(SD.pending,e=>{e.discountCodeAvailability.status=`pending`}).addCase(SD.fulfilled,(e,t)=>{e.discountCodeAvailability.status=`success`,t.payload?.success&&(e.discountCodeAvailability.data=t.payload?.data)}).addCase(SD.rejected,e=>{e.discountCodeAvailability.status=`failed`,e.discountCodeAvailability.data=null}).addCase(TD.pending,e=>{e.tariffAssignments.status=`pending`}).addCase(TD.fulfilled,(e,t)=>{e.tariffAssignments.status=`idle`,t.payload?.success&&(e.tariffAssignments.data=t.payload.data),e.tariffAssignments.meta=t.payload?.meta}).addCase(wD.pending,e=>{e.allTariffsCodes.status=`pending`}).addCase(wD.fulfilled,(e,t)=>{e.allTariffsCodes.status=`success`,t.payload?.success&&(e.allTariffsCodes.data=t.payload.data)}).addCase(wD.rejected,e=>{e.allTariffsCodes.status=`idle`,e.allTariffsCodes.data=null}).addCase(CD.pending,e=>{e.assignTariff.status=`pending`}).addCase(CD.fulfilled,(e,t)=>{e.assignTariff.status=`success`,t.payload?.success&&(e.assignTariff.data=t.payload.data)}).addCase(CD.rejected,e=>{e.assignTariff.status=`idle`,e.assignTariff.data={success:!1}})}}),DD=ED.reducer,{allTariffsReset:OD,discountCodeAvailabilityReset:kD,assignTariffReset:AD}=ED.actions,jD={task:{data:null,status:`idle`,success:!1},commentCount:0,createTask:{data:null,status:`idle`,success:!1},updateTask:{data:null,status:`idle`,success:!1},changeTaskStatus:{data:null,status:`idle`,success:!1},undoneTasksList:{meta:null,data:null,status:`idle`},doneTasksList:{data:null,meta:null,status:`idle`},undoneAssignedTasksList:{meta:null,data:null,status:`idle`},doneAssignedTasksList:{data:null,meta:null,status:`idle`},deleteTask:{data:null,status:`idle`,success:!1,meta:null},taskHistory:{data:null,status:`idle`,success:!1},assign:{data:null,status:`idle`,success:!1},assignTaskProjects:{data:null,status:`idle`,success:!1,meta:null},allTasksAssignedInRange:{data:null,meta:null,status:`idle`,success:!1},projectTasks:{data:null,meta:null,status:`idle`,success:!1},projectTasksList:{data:null,meta:null,status:`idle`,success:!1},updateTaskTags:{data:null,status:`idle`,success:!1},taskAttachments:{data:null,status:`idle`,success:!1},addTaskAttachments:{data:null,status:`idle`,success:!1},removeTaskAttachments:{data:null,status:`idle`,success:!1}},MD=H(`tasks/getTask`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`getTask`,path:`${t}`}})}),ND=H(`tasks/createTask`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`createTask`,checkStatusOveredFunction:e.checkStatusOveredFunction,commandName:`tasks.createTask`},data:e.data})),PD=H(`tasks/updateTask`,async e=>{let{id:t}=e.data;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`updateTask`,path:`${t}`,checkStatusOveredFunction:e.checkStatusOveredFunction,commandName:`tasks.updateTask`},data:e.data})}),FD=H(`tasks/deleteTask`,async e=>{let{id:t,positionSlotId:n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`deleteTask`,path:`${t}/positionSlotId/${n}`}})}),ID=H(`tasks/historyTask`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`taskHistory`,path:`${t}/history`}})}),LD=H(`tasks/getUndoneTasksList`,async e=>{let{organizationId:t,offset:n,limit:r,positionId:i}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`getUndoneTasksList`,path:`organization/${t}/position/${i}`,queryObject:{offset:n,limit:r,status:`undone`}}})}),RD=H(`tasks/updateTaskTags`,async e=>{let{id:t,data:n,checkStatusOveredFunction:r}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`updateTaskTags`,path:`${t}/tags`,checkStatusOveredFunction:r,commandName:`tasks.TaskTagsUpdated`},data:n})}),zD=H(`tasks/getUndoneAssignedTasksList`,async e=>{let{organizationId:t,offset:n,limit:r,positionSlotId:i}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`getUndoneTasksList`,path:`assigned/organization/${t}/positionSlotId/${i}`,queryObject:{offset:n,limit:r,status:`undone`}}})}),BD=H(`tasks/getDoneTasksList`,async e=>{let{organizationId:t,offset:n,limit:r,positionId:i}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`getDoneTasksList`,path:`organization/${t}/position/${i}`,queryObject:{offset:n,limit:r,status:`done`}}})}),VD=H(`tasks/assignees`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`assignees`,path:`${t}/assign`},data:e})}),HD=H(`tasks/changeTaskStatus`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`changeTaskStatus`,path:`${t}/status`},data:e})}),UD=H(`tasks/projectTasksList`,async({projectId:e,organizationId:t,offset:n,limit:r,status:i,from:a,to:o,positionSlotId:s,includeTags:c,excludeTags:l})=>{let u={offset:n,limit:r};return i&&(u.status=i),a&&(u.from=a),o&&(u.to=o),s&&(u.positionSlotId=s),c&&c.length>0&&(u.includeTags=c),l&&l.length>0&&(u.excludeTags=l),await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`projectTasksList`,path:`project/${e}/organization/${t}`,queryObject:u}}
2324)}),WD=H(`tasks/exportProjectTasks`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`exportProjectTasks`,responseType:`blob`},data:e})),GD=H(`tasks/getProjectTasks`,async e=>{let{projectId:t,organizationId:n,limit:r,offset:i,status:a}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`getProjectTasks`,path:`project/${t}/organization/${n}`,queryObject:{offset:i,limit:r,status:a??null}}})}),KD=H(`tasks/updateTaskAttachments`,async e=>{let{attachments:t,id:n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`updateTaskAttachments`,path:`${n}/attachments`},data:{attachments:t,id:n}})}),qD=H(`tasks/deleteTaskAttachments`,async e=>{let{id:t,attachmentIds:n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`removeTaskAttachments`,path:`${t}/attachments/${n}`}})}),JD=H(`tasks/taskAttachments`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`taskAttachments`,path:`${t}/attachments`}})}),YD=H(`tasks/projects`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`projects`,path:`${t}/projects`},data:e})}),XD=H(`tasks/updateTaskProjects`,async e=>{let{id:t}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`updateTaskProjects`,path:`/${t}/projects`},data:e})}),ZD=H(`tasks/getDoneAssignedTasksList`,async e=>{let{organizationId:t,offset:n,limit:r,positionSlotId:i}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`getDoneTasksList`,path:`assigned/organization/${t}/positionSlotId/${i}`,queryObject:{offset:n,limit:r,status:`done`}}})}),QD=H(`tasks/allTasksAssignedInRange`,async e=>{let{organizationId:t,from:n,to:r,positionSlotId:i,limit:a,offset:o}=e;return await V({options:{apiVersion:IE,domainRoot:LE.tasks,method:`allTasksAssignedInRange`,path:`assigned/organization/${t}/positionSlotId/${i}`,queryObject:{from:n,to:r,limit:a,offset:o}}})}),$D=Ie({name:`tasks`,initialState:jD,reducers:{setTaskCommentCount:(e,t)=>{e.commentCount=t.payload},createTaskReset:e=>{e.createTask=jD.createTask},getTaskReset:e=>{e.task=jD.task},updateTaskReset:e=>{e.updateTask=jD.updateTask},changeTaskStatusReset:e=>{e.changeTaskStatus=jD.changeTaskStatus},allTasksAssignedInRangeReset:e=>{e.allTasksAssignedInRange=jD.allTasksAssignedInRange},getProjectTasksReset:e=>{e.projectTasks=jD.projectTasks},getTaskAttachmentsReset:e=>{e.taskAttachments=jD.taskAttachments},addTaskAttachmentsReset:e=>{e.addTaskAttachments=jD.addTaskAttachments},removeTaskAttachmentsReset:e=>{e.removeTaskAttachments=jD.removeTaskAttachments},doneTasksListReset:e=>{e.doneTasksList=jD.doneTasksList},undoneTasksListReset:e=>{e.undoneTasksList=jD.undoneTasksList},taskHistoryReset:e=>{e.taskHistory=jD.taskHistory},doneAssignedTasksListReset:e=>{e.doneAssignedTasksList=jD.doneAssignedTasksList},undoneAssignedTasksListReset:e=>{e.undoneAssignedTasksList=jD.undoneAssignedTasksList},assignReset:e=>{e.assign=jD.assign},updateTaskTagsReset:e=>{let t=e;t.updateTaskTags=jD.updateTaskTags}},extraReducers:e=>e.addCase(MD.pending,e=>{e.task.status=`pending`}).addCase(MD.fulfilled,(e,t)=>{let n=e,r=t.payload;n.task.status=`idle`,t.payload.success?n.task.data=r.data:n.task.data=null,n.task.success=t.payload.success}).addCase(ND.pending,e=>{e.createTask.status=`pending`}).addCase(ND.fulfilled,(e,t)=>{let n=e,r=t.payload;n.createTask.status=t.payload.success?`idle`:`failed`,t.payload.success?n.createTask.data=r.data:n.createTask.data=null,n.createTask.success=t.payload.success}).addCase(PD.pending,e=>{let t=e;t.updateTask.status=`pending`,t.updateTask.data=null}).addCase(PD.fulfilled,(e,t)=>{let n=e,r=t.payload;n.updateTask.status=t.payload.success?`idle`:`failed`,t.payload.success?n.updateTask.data=r.data:n.updateTask.data=null,n.updateTask.success=t.payload.success}).addCase(PD.rejected,e=>{let t=e;t.updateTask.status=`failed`,t.updateTask.data=null}).addCase(HD.pending,(e,t)=>{let n=e;n.changeTaskStatus.status=`pending`,n.changeTaskStatus.data={...n.changeTaskStatus.data??{},[t.meta.arg.id]:{loading:!0}}}).addCase(HD.fulfilled,(e,t)=>{let n=e;n.changeTaskStatus.status=t.payload.success?`idle`:`failed`;let r=t.payload;t.payload.success&&(n.changeTaskStatus.data={...n.changeTaskStatus.data??{},[t.meta.arg.id]:{...r.data,loading:!1}}),n.changeTaskStatus.success=t.payload.success}).addCase(HD.rejected,(e,t)=>{let n=e;n.changeTaskStatus.status=`failed`,n.changeTaskStatus.data={...n.changeTaskStatus.data??{},[t.meta.arg.id]:{...n.changeTaskStatus.data?n.changeTaskStatus.data?.[t.meta.arg.id]:{},loading:!1}}}).addCase(LD.pending,e=>{e.undoneTasksList.status=`pending`}).addCase(LD.fulfilled,(e,t)=>{let n=e;n.undoneTasksList.status=`idle`;let r=t.payload;t.payload.success?n.undoneTasksList.data=r.data:n.undoneTasksList.data=null,n.undoneTasksList.meta=r.meta}
2324).addCase(LD.rejected,e=>{let t=e;t.undoneTasksList.status=`failed`,t.undoneTasksList.data=null}).addCase(BD.pending,e=>{e.doneTasksList.status=`pending`}).addCase(BD.fulfilled,(e,t)=>{let n=e;n.doneTasksList.status=`idle`;let r=t.payload;t.payload.success?n.doneTasksList.data=r.data:n.doneTasksList.data=null,n.doneTasksList.meta=r.meta}).addCase(BD.rejected,e=>{let t=e;t.doneTasksList.status=`failed`,t.doneTasksList.data=null}).addCase(zD.pending,e=>{e.undoneAssignedTasksList.status=`pending`}).addCase(zD.fulfilled,(e,t)=>{let n=e;n.undoneAssignedTasksList.status=`idle`;let r=t.payload;t.payload.success?n.undoneAssignedTasksList.data=r.data:n.undoneAssignedTasksList.data=null,n.undoneAssignedTasksList.meta=r.meta}).addCase(zD.rejected,e=>{let t=e;t.undoneAssignedTasksList.status=`failed`,t.undoneAssignedTasksList.data=null}).addCase(ZD.pending,e=>{e.doneAssignedTasksList.status=`pending`}).addCase(ZD.fulfilled,(e,t)=>{let n=e;n.doneAssignedTasksList.status=`idle`;let r=t.payload;t.payload.success?n.doneAssignedTasksList.data=r.data:n.doneAssignedTasksList.data=null,n.doneAssignedTasksList.meta=r.meta}).addCase(ZD.rejected,e=>{let t=e;t.doneAssignedTasksList.status=`failed`,t.doneAssignedTasksList.data=null}).addCase(FD.pending,e=>{e.deleteTask.status=`pending`}).addCase(FD.fulfilled,(e,t)=>{let n=e,r=t.payload;n.deleteTask.status=`idle`,t.payload.success?n.deleteTask.data=r.data:n.deleteTask.data=null,n.deleteTask.success=t.payload.success,n.deleteTask.meta=r.meta}).addCase(ID.pending,e=>{e.taskHistory.status=`pending`}).addCase(ID.fulfilled,(e,t)=>{let n=e;n.taskHistory.status=`idle`;let r=t.payload;t.payload.success?n.taskHistory.data=r.data:n.taskHistory.data=null,n.taskHistory.success=t.payload.success}).addCase(VD.pending,e=>{e.assign.status=`pending`}).addCase(VD.fulfilled,(e,t)=>{let n=e;n.assign.status=`idle`;let r=t.payload;t.payload.success?n.assign.data=r.data:n.assign.data=null,n.assign.success=t.payload.success}).addCase(QD.pending,e=>{e.allTasksAssignedInRange.status=`pending`}).addCase(QD.fulfilled,(e,t)=>{let n=e;n.allTasksAssignedInRange.status=`idle`;let r=t.payload;t.payload.success?n.allTasksAssignedInRange.data=r.data:n.allTasksAssignedInRange.data=null,n.allTasksAssignedInRange.meta=r.meta,n.allTasksAssignedInRange.success=r.success}).addCase(GD.pending,e=>{e.projectTasks.status=`pending`}).addCase(GD.fulfilled,(e,t)=>{let n=e,r=t.payload;n.projectTasks.status=t.payload.success?`idle`:`failed`,n.projectTasks.data=r.data,n.projectTasks.meta=r.meta,n.projectTasks.success=t.payload.success}).addCase(XD.pending,e=>{let t=e;t.updateTask.status=`pending`,t.updateTask.data=null}).addCase(XD.fulfilled,(e,t)=>{let n=e;n.updateTask.status=t.payload.success?`idle`:`failed`;let r=t.payload;t.payload.success?n.updateTask.data=r.data:n.updateTask.data=null,n.updateTask.success=t.payload.success}).addCase(XD.rejected,e=>{let t=e;t.updateTask.status=`failed`,t.updateTask.data=null}).addCase(YD.pending,e=>{e.assignTaskProjects.status=`pending`}).addCase(YD.fulfilled,(e,t)=>{let n=e;n.assignTaskProjects.status=`idle`;let r=t.payload;t.payload.success?n.assignTaskProjects.data=r.data:n.assignTaskProjects.data=null,n.assignTaskProjects.success=t.payload.success,n.assignTaskProjects.meta=r.meta}).addCase(UD.pending,e=>{e.projectTasksList.status=`pending`}).addCase(UD.fulfilled,(e,t)=>{let n=e;n.projectTasksList.status=`idle`;let r=t.payload;t.payload.success?n.projectTasksList.data=r.data:n.projectTasksList.data=null,n.projectTasksList.meta=r.meta,n.projectTasksList.success=t.payload.success}).addCase(JD.pending,e=>{e.taskAttachments.status=`pending`}).addCase(JD.fulfilled,(e,t)=>{let n=e;n.taskAttachments.status=`idle`;let r=t.payload;t.payload.success?n.taskAttachments.data=r.data:n.taskAttachments.data=null,n.taskAttachments.success=t.payload.success}).addCase(KD.pending,e=>{e.addTaskAttachments.status=`pending`}).addCase(KD.fulfilled,(e,t)=>{let n=e;n.addTaskAttachments.status=`idle`;let r=t.payload;t.payload.success?n.addTaskAttachments.data=r.data:n.addTaskAttachments.data=null,n.addTaskAttachments.success=t.payload.success}).addCase(qD.pending,e=>{e.removeTaskAttachments.status=`pending`}).addCase(qD.fulfilled,(e,t)=>{let n=e;n.removeTaskAttachments.status=`idle`;let r=t.payload;t.payload.success?n.removeTaskAttachments.data=r.data:n.removeTaskAttachments.data=null,n.removeTaskAttachments.success=t.payload.success}).addCase(RD.pending,e=>{let t=e;t.updateTaskTags.status=`pending`}).addCase(RD.fulfilled,(e,t)=>{let n=e;n.updateTaskTags.status=`idle`,t.payload.success?n.updateTaskTags.data=t.payload.data:n.updateTaskTags.data=null,n.updateTaskTags.success=t.payload.success}).addCase(RD.rejected,e=>{let t=e;t.updateTaskTags.status=`failed`,t.updateTaskTags.data=null})}),eO=$D.reducer,{setTaskCommentCount:tO,getTaskReset:nO,createTaskReset:rO,updateTaskReset:iO,changeTaskStatusReset:aO,allTasksAssignedInRangeReset:oO,getProjectTasksReset:sO,getTaskAttachmentsReset:cO,addTaskAttachmentsReset:lO,removeTaskAttachmentsReset:uO,doneTasksListReset:Dne,undoneTasksListReset:One,taskHistoryReset:kne,assignReset:Ane,undoneAssignedTasksListReset:jne,doneAssignedTasksListReset:Mne,updateTaskTagsReset:dO}=$D.actions,fO={marketingInquiries:{data:null,status:`idle`,success:!1},createResponse:{data:null,status:`idle`,success:!1}},pO=H(`organizations/createMarketingResponse`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.organizations,method:`createMarketingResponse`,path:`/marketing-response`},data:e})),mO=H(`organizations/getMarketingInquiries`,async()=>await V({options:{apiVersion:IE,domainRoot:LE.organizations,method:`getMarketingInquiries`,path:`/marketing-inquiries`}})),hO=Ie({name:`wizard`,initialState:fO,reducers:{getMarketingInquiriesReset:e=>{e.marketingInquiries=fO.marketingInquiries},createMarketingResponseReset:e=>{e.createResponse=fO.createResponse}},extraReducers:e=>e.addCase(mO.fulfilled,(e,t)=>{let n=t.payload;e.marketingInquiries.status=`idle`,e.marketingInquiries.success=t.payload.success,e.marketingInquiries.data=n.data}).addCase(mO.pending,e=>{let t=e;t.marketingInquiries.status=`pending`,t.marketingInquiries.data=null}).addCase(pO.fulfilled,(e,t)=>{let n=t.payload;e.createResponse.status=`idle`,e.createResponse.success=t.payload.success,e.createResponse.data=n.data}).addCase(pO.pending,e=>{e.createResponse.status=`pending`,e.createResponse.data=null}).addCase(pO.rejected,e=>{e.createResponse.status=`failed`,e.createResponse.data=null})}),gO=hO.reducer,{getMarketingInquiriesReset:_O,createMarketingResponseReset:Nne}=hO.actions;function vO(e,t,n=`id`){let r=new Map;for(let t of e)r.set(t[n],t);for(let e of t)r.set(e[n],e);return Array.from(r.values())}var yO={columnCards:{data:null,meta:null,status:`idle`,success:!1},columnsList:{data:null,meta:null,status:`idle`,success:!1},boardColumn:{data:null,status:`idle`,success:!1},updateList:{data:null,status:`idle`,success:!1},deleteList:{data:null,status:`idle`,success:!1},moveCard:{data:null,status:`idle`,success:!1}},bO=H(`boards/boardColumn`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.boardLists,method:`boardColumn`,checkStatusOveredFunction:e.checkStatusOveredFunction},data:e})),xO=H(`boards/updateList`,async e=>{let{listId:t,...n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.boardLists,method:`updateList`,path:`${t}`},data:n})}),SO=H(`boards/deleteList`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.boardLists,method:`deleteList`,path:`${e.listId}`,checkStatusOveredFunction:e.checkStatusOveredFunction},data:e})),CO=H(`boards/columnCards`,async e=>{let{listId:t,...n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.boardLists,method:`columnCards`,path:`${t}/cards`,queryObject:n}})}),wO=H(`boards/columnsList`,async e=>{let{boardId:t,...n}=e;return await V({options:{apiVersion:IE,domainRoot:LE.boardLists,method:`columnsList`,path:`board/${t}`,queryObject:n}})}),TO=H(`boards/moveCard`,async e=>await V({options:{apiVersion:IE,domainRoot:LE.boardLists,method:`moveCard`,path:`${e.id}/cards/${e.cardId}`},data:e})),EO=Ie({name:`boardsProject`,initialState:yO,reducers:{boardColumnReset:e=>{e.boardColumn=yO.boardColumn},updateListReset:e=>{e.updateList=yO.updateList},columnCardsReset:e=>{e.columnCards=yO.columnCards},deleteListReset:e=>{e.deleteList=yO.deleteList},moveCardReset:e=>{e.moveCard=yO.moveCard},columnsListReset:e=>{e.columnsList=yO.columnsList}},extraReducers:e=>e.addCase(bO.pending,e=>{e.boardColumn.status=`pending`,e.boardColumn.data=null}).addCase(bO.fulfilled,(e,t)=>{let n=t.payload;e.boardColumn.status=`idle`,e.boardColumn.success=t.payload.success,e.boardColumn.data=n.data}).addCase(xO.pending,e=>{e.updateList.status=`pending`,e.updateList.data=null}).addCase(xO.fulfilled,(e,t)=>{let n=t.payload;e.updateList.status=`idle`,e.updateList.success=t.payload.success,e.updateList.data=n.data}).addCase(SO.pending,e=>{e.deleteList.status=`pending`,e.deleteList.data=null}).addCase(SO.fulfilled,(e,t)=>{let n=t.payload;e.deleteList.status=`idle`,e.deleteList.success=t.payload.success,e.deleteList.data=n.data}).addCase(CO.pending,e=>{e.columnCards.status=`pending`}).addCase(CO.fulfilled,(e,t)=>{let n=t.payload,r=e.columnCards.data??[],i=n.success?n.data:[];e.columnCards.status=`idle`,e.columnCards.success=t.payload.success,e.columnCards.meta=n.meta,e.columnCards.data=vO(r,i??[])}
vendor: 9,640 bytes, line 2324
2324).addCase(wO.pending,e=>{e.columnsList.status=`pending`,e.columnsList.success=!1}).addCase(wO.fulfilled,(e,t)=>{let n=t.payload;e.columnsList.status=`idle`,e.columnsList.success=t.payload.success,e.columnsList.meta=n.meta,e.columnsList.data=n.data}).addCase(wO.rejected,e=>{e.columnsList.status=`idle`,e.columnsList.data=null,e.columnsList.meta=null,e.columnsList.success=!1}).addCase(TO.pending,e=>{e.moveCard.status=`pending`}).addCase(TO.fulfilled,(e,t)=>{let n=t.payload;e.moveCard.status=`idle`,e.moveCard.success=t.payload.success,e.moveCard.data=n.data})}),DO=EO.reducer,{boardColumnReset:OO,updateListReset:kO,columnCardsReset:AO,deleteListReset:jO,moveCardReset:MO,columnsListReset:NO}=EO.actions,PO=U({auth:zy,organization:ene,profile:aE,documents:UC,employees:vi,contacts:Wte,secretariats:Ts,[Aa]:Ha,[Oo]:Uo,[tb]:cb,[Es]:Rs,[lb]:gb,[zs]:Zs,[Ua]:eo,[ya]:ka,[Vx]:Kx,[_b]:wb,[Ob]:Pb,[ho]:Do,[oE]:pE,[to]:mo,letters:mC,positions:Si,notification:pg,correspondenceUsers:$y,tariffs:DD,orders:hc,eceMails:NC,meetings:GT,payments:FE,invoices:yE,products:EE,groups:jte,correspondenceSamples:zx,genai:YC,comments:cD,tasks:eO,projects:_D,projectBoards:YE,projectBoardLists:DO,billboards:BE,wizard:gO,tags:ane,chat:wx});function FO(e){return Re({reducer:PO,preloadedState:e})}function IO({children:e,store:t}){return l($e,{store:t??FO(),children:e})}var LO=i(((e,t)=>{var n;function r(e,t){var n=[],r=0;function i(e){return n.push(e),t}function a(){return n[r++]}return{tokenize:function(t){return t.replace(e,i)},detokenize:function(e){return e.replace(RegExp(`(`+t+`)`,`g`),a)}}}function i(){var e="`TMP`",t="`TMPLTR`",n="`TMPRTL`",i="`NOFLIP_SINGLE`",a="`NOFLIP_CLASS`",o="`COMMENT`",s=`[^\\u0020-\\u007e]`,c=`(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)`,l=`(?:[0-9]*\\.[0-9]+|[0-9]+)`,u=`(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)`,d=`direction\\s*:\\s*`,f=`[!#$%&*-~]`,p=`['"]?\\s*`,m=`(^|[^a-zA-Z])`,h=`[^\\}]*?`,g=`\\/\\*\\!?\\s*@noflip\\s*\\*\\/`,_=`\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/`,v=`(?:`+c+`|\\\\[^\\r\\n\\f0-9a-f])`,y=`(?:[_a-z]|`+s+`|`+v+`)`,b=`(?:[_a-z0-9-]|`+s+`|`+v+`)`,x=`-?`+y+b+`*`,S=l+`(?:\\s*`+u+`|`+x+`)?`,C=`((?:-?`+S+`)|(?:inherit|auto))`,w=`(?:calc\\((?:`+(`(?:(?:\\(|\\)|\\t| )|`+(`(?:-?`+l+`(?:\\s*`+u+`)?)`)+`|(?:\\+|\\-|\\*|\\/)){3,}`)+`)\\))`,T=`((?:-?`+S+`)|(?:inherit|auto)|`+w+`)`,E=`((?:margin|padding|border-width)\\s*:\\s*)`,D=`((?:-color|border-style)\\s*:\\s*)`,O=`(#?`+b+`+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))`,k=`(?:`+f+`|`+s+`|`+v+`)*?`,A=`(?![a-zA-Z])`,j=`(?!(`+b+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+o+`)*?{)`,M=`(?!`+k+p+`\\))`,N=`(?=`+k+p+`\\))`,P=`(\\s*(?:!important\\s*)?[;}])`,F=/`TMP`/g,I=/`TMPLTR`/g,ee=/`TMPRTL`/g,L=new RegExp(_,`gi`),R=RegExp(`(`+g+j+`[^;}]+;?)`,`gi`),z=RegExp(`(`+g+h+`})`,`gi`),te=RegExp(`(`+d+`)ltr`,`gi`),ne=RegExp(`(`+d+`)rtl`,`gi`),re=RegExp(m+`(left)`+A+M+j,`gi`),ie=RegExp(m+`(right)`+A+M+j,`gi`),ae=RegExp(m+`(left)`+N,`gi`),oe=RegExp(m+`(right)`+N,`gi`),se=/(:dir\( *)ltr( *\))/g,ce=/(:dir\( *)rtl( *\))/g,le=RegExp(m+`(ltr)`+N,`gi`),B=RegExp(m+`(rtl)`+N,`gi`),ue=RegExp(m+`([ns]?)e-resize`,`gi`),de=RegExp(m+`([ns]?)w-resize`,`gi`),fe=RegExp(E+T+`(\\s+)`+T+`(\\s+)`+T+`(\\s+)`+T+P,`gi`),pe=RegExp(D+O+`(\\s+)`+O+`(\\s+)`+O+`(\\s+)`+O+P,`gi`),me=RegExp(`(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)(`+S+`)`,`gi`),he=RegExp(`(background-position-x\\s*:\\s*)(-?`+l+`%)`,`gi`),ge=RegExp(`(border-radius\\s*:\\s*)`+C+`(?:(?:\\s+`+C+`)(?:\\s+`+C+`)?(?:\\s+`+C+`)?)?(?:(?:(?:\\s*\\/\\s*)`+C+`)(?:\\s+`+C+`)?(?:\\s+`+C+`)?(?:\\s+`+C+`)?)?`+P,`gi`),_e=RegExp(`(box-shadow\\s*:\\s*(?:inset\\s*)?)`+C,`gi`),ve=RegExp(`(text-shadow\\s*:\\s*)`+C+`(\\s*)`+O,`gi`),ye=RegExp(`(text-shadow\\s*:\\s*)`+O+`(\\s*)`+C,`gi`),be=RegExp(`(text-shadow\\s*:\\s*)`+C,`gi`),xe=RegExp(`(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)`+C+`(\\s*\\))`,`gi`),Se=RegExp(`(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)`+C+`((?:\\s*,\\s*`+C+`){0,2}\\s*\\))`,`gi`);function Ce(e,t,n){var r,i;return t.split(`(`).length>t.split(`)`).length?e:(n.slice(-1)===`%`&&(r=n.indexOf(`.`),r===-1?n=100-parseFloat(n)+`%`:(i=n.length-r-2,n=100-parseFloat(n),n=n.toFixed(i)+`%`)),t+n)}function V(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]];break}return e.join(` `)}function we(e,t){var n,r=[].slice.call(arguments),i=r.slice(2,6).filter(function(e){return e}),a=r.slice(6,10).filter(function(e){return e}),o=r[10]||``;return n=a.length?V(i)+` / `+V(a):V(i),t+n+o}function Te(e){return parseFloat(e)===0?e:e[0]===`-`?e.slice(1):`-`+e}function Ee(e,t,n){return t+Te(n)}function De(e,t,n,r,i){return t+n+Te(r)+i}function Oe(e,t,n,r,i){return t+n+r+Te(i)}return{transform:function(s,c){var l=new r(R,i),u=new r(z,a),d=new r(L,o);return s=d.tokenize(u.tokenize(l.tokenize(s.replace("`",`%60`)))),c.transformDirInUrl&&(s=s.replace(se,`$1`+t+`$2`).replace(ce,`$1`+n+`$2`).replace(le,`$1`+e).replace(B,`$1ltr`).replace(F,`rtl`).replace(I,`ltr`).replace(ee,`rtl`)),c.transformEdgeInUrl&&(s=s.replace(ae,`$1`+e).replace(oe,`$1left`).replace(F,`right`)),s=s.replace(te,`$1`+e).replace(ne,`$1ltr`).replace(F,`rtl`).replace(re,`$1`+e).replace(ie,`$1left`).replace(F,`right`).replace(ue,`$1$2`+e).replace(de,`$1$2e-resize`).replace(F,`w-resize`).replace(ge,we).replace(_e,Ee).replace(ve,Oe).replace(ye,Oe).replace(be,Ee).replace(xe,De).replace(Se,De).replace(fe,`$1$2$3$8$5$6$7$4$9`).replace(pe,`$1$2$3$8$5$6$7$4$9`).replace(me,Ce).replace(he,Ce),s=l.detokenize(u.detokenize(d.detokenize(s))),s}}}n=new i,t!==void 0&&t.exports?e.transform=function(e,t,r){var i;return typeof t==`object`?i=t:(i={},typeof t==`boolean`&&(i.transformDirInUrl=t),typeof r==`boolean`&&(i.transformEdgeInUrl=r)),n.transform(e,i)}:typeof window<`u`&&(window.cssjanus=n)})),RO=`comm`,zO=`rule`,BO=`decl`,VO=`@import`,HO=Math.abs,UO=String.fromCharCode;function WO(e){return e.trim()}function GO(e,t,n){return e.replace(t,n)}function KO(e,t){return e.charCodeAt(t)|0}function qO(e,t,n){return e.slice(t,n)}function JO(e){return e.length}function YO(e){return e.length}function XO(e,t){return t.push(e),e}var ZO=1,QO=1,$O=0,ek=0,tk=0,nk=``;function rk(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ZO,column:QO,length:o,return:``,siblings:s}}function ik(){return tk}function ak(){return tk=ek>0?KO(nk,--ek):0,QO--,tk===10&&(QO=1,ZO--),tk}function ok(){return tk=ek<$O?KO(nk,ek++):0,QO++,tk===10&&(QO=1,ZO++),tk}function sk(){return KO(nk,ek)}function ck(){return ek}function lk(e,t){return qO(nk,e,t)}function uk(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dk(e){return ZO=QO=1,$O=JO(nk=e),ek=0,[]}function fk(e){return nk=``,e}function pk(e){return WO(lk(ek-1,gk(e===91?e+2:e===40?e+1:e)))}function mk(e){for(;(tk=sk())&&tk<33;)ok();return uk(e)>2||uk(tk)>3?``:` `}function hk(e,t){for(;--t&&ok()&&!(tk<48||tk>102||tk>57&&tk<65||tk>70&&tk<97););return lk(e,ck()+(t<6&&sk()==32&&ok()==32))}function gk(e){for(;ok();)switch(tk){case e:return ek;case 34:case 39:e!==34&&e!==39&&gk(tk);break;case 40:e===41&&gk(e);break;case 92:ok();break}return ek}function _k(e,t){for(;ok()&&e+tk!==57&&!(e+tk===84&&sk()===47););return`/*`+lk(t,ek-1)+`*`+UO(e===47?e:ok())}function vk(e){for(;!uk(sk());)ok();return lk(e,ek)}function yk(e){return fk(bk(``,null,null,null,[``],e=dk(e),0,[0],e))}function bk(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=ok()){case 40:m!=108&&KO(w,d-1)==58?(v++,w+=`(`):w+=pk(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=pk(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=UO(y);break}w+=mk(m);break;case 92:w+=hk(ck()-1,7);continue;case 47:switch(sk()){case 42:case 47:XO(Sk(_k(ok(),ck()),t,n,c),c),(uk(m||1)==5||uk(sk()||1)==5)&&JO(w)&&qO(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=JO(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=UO(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=GO(w,/\f/g,``)),p>0&&(JO(w)-d||h===0)&&XO(p>32?Ck(w+`;`,r,n,d-1,c):Ck(GO(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(XO(C=xk(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)bk(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(KO(w,3)===110)break;case 108:if(KO(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?bk(e,C,C,r&&XO(xk(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):bk(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+JO(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&ak()==125)continue}switch(w+=UO(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(JO(w)-1)*_,_=1;break;case 64:sk()===45&&(w+=pk(ok())),f=sk(),u=d=JO(b=w+=vk(ck())),y++;break;case 45:m===45&&JO(w)==2&&(h=0)}}return a}function xk(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=YO(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=qO(e,f+1,f=HO(g=o[h])),b=e;v<m;++v)(b=WO(g>0?p[v]+` `+y:GO(y,/&\f/g,p[v])))&&(c[_++]=b);return rk(e,t,n,i===0?zO:s,c,l,u,d)}function Sk(e,t,n,r){return rk(e,t,n,RO,UO(ik()),qO(e,2,-2),0,r)}function Ck(e,t,n,r,i){return rk(e,t,n,BO,qO(e,0,r),qO(e,r+1,-1),r,i)}function wk(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}var Tk=r(LO());function Ek(e,t,n){switch(e.type){case VO:case BO:case RO:return e.return=e.return||e.value;case zO:e.value=Array.isArray(e.props)?e.props.join(`,`):e.props,Array.isArray(e.children)&&e.children.forEac
2324h(function(e){e.type===`comm`&&(e.children=e.value)})}var r=wk(Array.prototype.concat(e.children),Ek);return JO(r)?e.return=e.value+`{`+r+`}`:``}function Dk(e,t,n,r){if(e.type===`@keyframes`||e.type===`@supports`||e.type===`rule`&&(!e.parent||e.parent.type===`@media`||e.parent.type===`rule`)){var i=Tk.transform(Ek(e,t,n));e.children=i?yk(i)[0].children:[],e.return=``}}Object.defineProperty(Dk,"name",{value:`stylisRTLPlugin`});var Ok={components:{MuiBreadcrumbs:{defaultProps:{expandText:`نمایش مسیر`}},MuiTablePagination:{defaultProps:{getItemAriaLabel:e=>e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`,labelRowsPerPage:`تعداد سطرهای هر صفحه:`,labelDisplayedRows:({from:e,to:t,count:n})=>`${e}–${t} از ${n===-1?`بیشتر از ${t}`:n}`}},MuiRating:{defaultProps:{getLabelText:e=>`${e} ستاره`,emptyLabelText:`خالی`}},MuiAutocomplete:{defaultProps:{clearText:`پاک‌کردن`,closeText:`بستن`,loadingText:`در حال بارگذاری…`,noOptionsText:`بی‌نتیجه`,openText:`بازکردن`}},MuiAlert:{defaultProps:{closeText:`بستن`}},MuiPagination:{defaultProps:{"aria-label":`ناوبری صفحه`,getItemAriaLabel:(e,t,n)=>e===`page`?`${n?``:`رفتن به `}صفحهٔ ${t}`:e===`first`?`رفتن به اولین صفحه`:e===`last`?`رفتن به آخرین صفحه`:e===`next`?`رفتن به صفحه‌ی بعدی`:`رفتن به صفحه‌ی قبلی`}}}},kk=oe({direction:`rtl`,palette:{primary:{main:`#7E6BF1`},secondary:{main:`#347EEE`,100:`#F4F8FB`,200:`#D0E1FB`},info:{main:`#3B82F6`},success:{main:`#3FC063`},warning:{main:`#F18B0E`},visual:{green1:`#79DE83`,green2:`#50C46C`,pink1:`#DE79AF`,purple1:`#6B6397`,purple2:`#7F7C83`,darkBg1:`#19162D`,red1:`#FF4C30`,red2:`#E45858`,softBlue1:`#F3FDFF`,softBlue2:`#4DC3DB`,softYellow1:`#FFFEBB`,softYellow2:`#EBBC00`,softOrange1:`#FEF3E7`,softOrange2:`#F18B0E`},text:{secondary:`#111111`,gray:`#808080`,lightGray:`#d1d1d1`,third:`#312f34`,paper:`#fff`,link:`#0099db`,error:`#d31f22`,darkError:`#c62828`,success:`#00c89c`,dark:`#000`,lightBlack:`#444444`,white:`#fff`,twilightVelvet:`#49454F`,flameScarlet:`#FF4C30`,disablesText:`#c4b7b7`,noPosition:`#E45858`,onSuccessContainer:`#25743C`,onErrorContainer:`#851416`,onSurface:`#1C1B1F`},background:{dark:{500:`#49454F`},secondary:`#347EEE`,shadow:`#F8F8F8`,default:`#ffffff`,innerPage:`#f4f8fb`,previewImage:`#d1d1d1`,green:`#00c89c`,lightGreen:`#3fc063`,secondColor:`#7E6BF1`,organizationColor:`#4fc3f7`,appColor:`#ffb74d`,light:`#efefef`,icon:`#49454F`,lightPurple:`#7E6BF1`,lightPrimary:`#F1EFFF`,lightGray:`#F3F3F3`,cream:`#FFF9F9`,white:`#fff`,lightRed:`#F9DEDC`,successContainer:`#D8F3E0`,secondaryContainer:`#DEEBFF`,lightLilac:`#F5E8FD`,borderOutline:`#808080`},letterHistoryCard:{compose:`#4ddb94`,forward:`#7E6BF1`,hoverForward:`#7E6BF1D1`,sign:`#db7d4d`,"remove-signature":`#C16F0B`,terminate:`#db4d8f`,hoverTerminate:`#ed6ca8`,discard:`#db574d`,hoverDiscard:`#e9837b`,number:`#8a4ddb`,receipt:`#4dc3db`,update:`#347EEE`,hoverUpdate:`#629bf1`,forwardRevert:`#847FA4`,hoverForwardRevert:`#9a95ba`,void:`#7F7C83`,hoverVoid:`#9b979f`,leaveConversation:`#6E2819`,updateTags:`#082A5E`},meetingHistoryCard:{create:`#4D6EDB`,inviteEmployee:`#8A4DDB`,inviteContact:`#8A4DDB`,removeContact:`#8A4DDB`,removeEmployee:`#8A4DDB`,createMinutes:`#4DC3DB`,updateMinutes:`#4DC3DB`,createResolution:`#007A7A`,updateResolution:`#007A7A`,deleteResolution:`#007A7A`,assignMeetingResolutionTask:`#194D28`,unassignMeetingResolutionTask:`#194D28`,update:`#4DDB94`,cancel:`#DB7D4D`,finish:`#db4d8f`,updateTags:`#082A5E`},taskHistoryCard:{create:`#3FC063`,update:`#4D6EDB`,assign:`#8A4DDB`,clearAssign:`#8A4DDB`,updateStatus:`#F29423`,updateTags:`#082A5E`,assignMeetingResolution:`#194D28`,unassignMeetingResolution:`#194D28`},grey:{200:`#D3CFD7`}},breakpoints:{values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},typography:{fontFamily:[`Vazir`,`Roboto`,`Helvetica`,`Arial`,`sans-serif`].join(`,`),body2:{fontSize:`0.625rem`},subtitle2:{fontSize:`0.75rem`},subtitle1:{fontSize:`0.875rem`}},components:{MuiSvgIcon:{styleOverrides:{root:{stroke:`#ffffff`,strokeWidth:.5}}},MuiChip:{styleOverrides:{deleteIcon:{margin:`0 0 0 5px`}}},MuiDialog:{styleOverrides:{paper:{borderRadius:16}}},MuiDialogContent:{styleOverrides:{root:{padding:16}}},MuiAutocomplete:{styleOverrides:{tag:{color:`#7E6BF1`,direction:`rtl`,background:`#faf6ff`,borderRadius:4}}},MuiIcon:{styleOverrides:{root:{color:`#808080`}}},MuiTypography:{defaultProps:{variantMapping:{h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`p`,subtitle2:`p`,body1:`p`,body2:`span`}},styleOverrides:{root:{}}},MuiInputBase:{styleOverrides:{root:{height:`42px`}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:`8px`,"&.Mui-focused":{borderColor:`#655aaf`}}}},MuiInputLabel:{styleOverrides:{root:{lineHeight:`1.04375em`,background:`#fff`,color:`#808080`}}},MuiIconButton:{styleOverrides:{root:{"&:disabled":{"&.disabledSecurity":{color:`#ababab`}}}}},MuiButton:{styleOverrides:{root:{borderRadius:6,height:40,fontWeight:`normal`},outlined:{},contained:{color:`#fff`,backgroundColor:`#7E6BF1`,"&:hover":{backgroundColor:`#7E6BF1`},"&:disabled":{opacity:.5,color:`#fff`,backgroundColor:`#C0B5FF`,"&.disabledSecurity":{backgroundColor:`#ababab`}}}}},MuiMenuItem:{styleOverrides:{root:{direction:`ltr`}}},MuiCheckbox:{styleOverrides:{root:{color:`#9a9a9a`}}},MuiFormHelperText:{styleOverrides:{root:{color:`#808080`,marginRight:8,marginLeft:8}}},MuiTab:{styleOverrides:{root:{color:`#444`}}}}},Ok),Ak=({children:e})=>l(c,{value:(0,J.useMemo)(()=>p({key:`muirtl`,stylisPlugins:[Dk],prepend:!0}),[]),children:l(le,{value:(0,J.useMemo)(()=>p({key:`tss`}),[]),children:d(zu,{theme:kk,children:[l(Uf,{}),e]})})});function jk({children:e}){return l(vc,{children:e})}function Mk({children:e}){return l(IO,{children:l(By,{children:l(Wy,{children:l(Ak,{children:d(Gy,{children:[l(Mg,{}),l(dte,{children:l(y_,{children:e})})]})})})})})}var Nk={SIDEBAR:{SOLUTIONS:e=>
2324e[Y.MARKET_CREATE_ORDER],EMPLOYEES:e=>e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_MOBILE]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_MOBILE]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_STATUS]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_CODE]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_PROFILE]&&e[Y.ORGANIZATION_ASSIGN_POSITION]&&e[Y.ORGANIZATION_REVOKE_POSITION]&&e[Y.ORGANIZATION_SET_PRIMARY_POSITION]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_STATUS]&&e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT],ORGANIZATION_PROFILE:e=>e[Y.ORGANIZATION_GET_ORGANIZATION]&&e[Y.ORGANIZATION_UPDATE_ORGANIZATION_PROFILE],MANAGEMENT_CENTER_ADMINS:e=>e[Y.CARTABLES_GRANT_SOLUTION]||e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_SUPER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_SUPER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_MANAGEMENT_CENTER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_MANAGEMENT_CENTER_ADMIN],CORRESPONDENCE_ADMINS:e=>e[Y.CARTABLES_GRANT_SOLUTION]&&e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS],MEETINGS_ADMINS:e=>e[Y.MEETINGS.MEETING_CARTABLE_GRANT_SOLUTION]&&e[Y.MEETINGS.MEETING_CARTABLE_REVOKE_SOLUTION_ACCESS],TASKS_ADMINS:e=>e[Y.TASKS.TASK_CARTABLE_GRANT_SOLUTION]&&e[Y.TASKS.TASK_CARTABLE_REVOKE_SOLUTION_ACCESS],CHATS_ADMINS:e=>e[Y.CHATS.GRANT_SOLUTION]&&e[Y.CHATS.REVOKE_SOLUTION_ACCESS],ORGANIZATION_STRUCTURE:e=>e[Y.ORGANIZATION_CREATE_POSITION]&&e[Y.ORGANIZATION_UPDATE_POSITION]&&e[Y.ORGANIZATION_UPDATE_POSITION_CODE]&&e[Y.ORGANIZATION_UPDATE_POSITION_PARENT]&&e[Y.ORGANIZATION_UPDATE_POSITION_STATUS]&&e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT],MANAGE_SECRETARIATS:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT]||e[Y.SECRETARIATS_UPDATE_SECRETARIAT]||e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]||e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]||e[Y.INDICATORS_GET_INDICATOR]||e[Y.INDICATORS_CREATE_INDICATOR]||e[Y.INDICATORS_UPDATE_INDICATOR]||e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],MANAGE_FORWARD_ACCESS:e=>e[Y.LETTERS.UPDATE_EXCHANGE_REGISTRY],MANAGE_CORRESPONDENCE:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT]||e[Y.SECRETARIATS_UPDATE_SECRETARIAT]||e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]||e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]||e[Y.INDICATORS_GET_INDICATOR]||e[Y.INDICATORS_CREATE_INDICATOR]||e[Y.INDICATORS_UPDATE_INDICATOR]||e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.CARTABLES_GRANT_SOLUTION]||e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]||e[Y.LETTERS.GET_LETTERS_FORWARDS]||e[Y.LETTERS.UPDATE_EXCHANGE_REGISTRY]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],MANAGE_ALL_FORWARDED_LETTERS:e=>e[Y.LETTERS.GET_LETTERS_FORWARDS]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],CORRESPONDENCE_REFERENCE_USAGES_REPORTS:e=>e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],CORRESPONDENCE_REPORTS:e=>e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT]||e[Y.LETTERS.GET_LETTERS_FORWARDS],MANAGEMENT_CENTER_DOCUMENTS_LIST:e=>e[Y.MANAGEMENT_CENTER.ORGANIZATION_DOCUMENTS_LIST],CARTABLE:e=>!0,ACTIVE:e=>!0,ENDED:e=>!0,FORWARDED:e=>!0,RECEIPTED:e=>!0,COMPOSE_ECE:e=>!0},PAGE:{SOLUTIONS:e=>e[Y.MARKET_CREATE_ORDER],CARTABLE:e=>!0,EMPLOYEES:e=>e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_MOBILE]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_MOBILE]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_STATUS]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_CODE]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_PROFILE]&&e[Y.ORGANIZATION_ASSIGN_POSITION]&&e[Y.ORGANIZATION_REVOKE_POSITION]&&e[Y.ORGANIZATION_SET_PRIMARY_POSITION]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_STATUS]&&e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT],ORGANIZATION_PROFILE:e=>e[Y.ORGANIZATION_GET_ORGANIZATION]&&e[Y.ORGANIZATION_UPDATE_ORGANIZATION_PROFILE],MANAGEMENT_CENTER_ADMINS:e=>e[Y.CARTABLES_GRANT_SOLUTION]||e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_SUPER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_SUPER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_MANAGEMENT_CENTER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_MANAGEMENT_CENTER_ADMIN],ORGANIZATION_ACCESS_GROUPS:e=>e[Y.CARTABLES_GRANT_SOLUTION]&&e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_SUPER_ADMIN]&&e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_SUPER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_MANAGEMENT_CENTER_ADMIN]&&e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_MANAGEMENT_CENTER_ADMIN],CORRESPONDENCE_ADMINS:e
2324=>e[Y.CARTABLES_GRANT_SOLUTION]&&e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS],ORGANIZATION_STRUCTURE:e=>e[Y.ORGANIZATION_CREATE_POSITION]&&e[Y.ORGANIZATION_UPDATE_POSITION]&&e[Y.ORGANIZATION_UPDATE_POSITION_CODE]&&e[Y.ORGANIZATION_UPDATE_POSITION_PARENT]&&e[Y.ORGANIZATION_UPDATE_POSITION_STATUS]&&e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT],SECRETARIATS_LIST:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT]&&e[Y.SECRETARIATS_UPDATE_SECRETARIAT]&&e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]&&e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]&&e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]&&e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR],MANAGEMENT_SECRETARIATS:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT]||e[Y.SECRETARIATS_UPDATE_SECRETARIAT]||e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]||e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]||e[Y.INDICATORS_GET_INDICATOR]||e[Y.INDICATORS_CREATE_INDICATOR]||e[Y.INDICATORS_UPDATE_INDICATOR]||e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],MANAGEMENT_CORRESPONDENCE:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT]||e[Y.SECRETARIATS_UPDATE_SECRETARIAT]||e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]||e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]||e[Y.INDICATORS_GET_INDICATOR]||e[Y.INDICATORS_CREATE_INDICATOR]||e[Y.INDICATORS_UPDATE_INDICATOR]||e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.CARTABLES_GRANT_SOLUTION]||e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]||e[Y.LETTERS.GET_LETTERS_FORWARDS]||e[Y.LETTERS.UPDATE_EXCHANGE_REGISTRY]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],ALL_FORWARDED_LETTERS:e=>e[Y.LETTERS.GET_LETTERS_FORWARDS],SECRETARIAT_INFORMATION:e=>e[Y.INDICATORS_GET_INDICATOR]&&e[Y.INDICATORS_CREATE_INDICATOR]&&e[Y.INDICATORS_UPDATE_INDICATOR]&&e[Y.SECRETARIATS_UPDATE_SECRETARIAT]&&e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]&&e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]&&e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]&&e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR],GET_NUMBERED_LETTERS_BY_INDICATOR:e=>e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR],INDICATOR_INFORMATION:e=>e[Y.INDICATORS_GET_INDICATOR]&&e[Y.INDICATORS_UPDATE_INDICATOR]&&e[Y.INDICATORS_UPDATE_INDICATOR_STATUS],MEETING_CARTABLE:e=>e[Y.MEETINGS.MEETING_LOCATIONS_CREATE_MEETING_LOCATION],MEETINGS_ADMINS:e=>e[Y.MEETINGS.MEETING_CARTABLE_GRANT_SOLUTION]&&e[Y.MEETINGS.MEETING_CARTABLE_REVOKE_SOLUTION_ACCESS],METTING_USERS:e=>e[Y.MEETINGS.MEETING_CARTABLE_GRANT_SOLUTION]&&e[Y.MEETINGS.MEETING_CARTABLE_REVOKE_SOLUTION_ACCESS],MEETINGS_LOCATIONS:e=>e[Y.MEETINGS.MEETING_LOCATIONS_GET_MEETING_LOCATIONS]&&e[Y.MEETINGS.MEETING_LOCATIONS_CREATE_MEETING_LOCATION]&&e[Y.MEETINGS.MEETING_LOCATIONS_ENABLE_MEETING_LOCATION]&&e[Y.MEETINGS.MEETING_LOCATIONS_DISABLE_MEETING_LOCATION]&&e[Y.MEETINGS.MEETING_LOCATIONS_UPDATE_MEETING_LOCATION],ADMINISTRATION_DASHBOARD:e=>e[Y.AUTHZ.ADMINISTRATION.ADMINISTRATION_AUTHZ_ADD_AWAT_ADMIN],ORGANIZATION_ACCESS_GROUP_MEMBERS:e=>e[Y.GROUPS.ADD_ACCESS_GROUP_MEMBERS]&&e[Y.GROUPS.GET_ACCESS_GROUP_MEMBERS]&&e[Y.GROUPS.GET_ORGANIZATION_ACCESS_GROUPS]&&e[Y.GROUPS.REMOVE_ACCESS_GROUP_MEMBERS],FORWARD_ACCESS_REGISTRY:e=>e[Y.LETTERS.UPDATE_EXCHANGE_REGISTRY],MANAGEMENT_CENTER_DOCUMENTS_LIST:e=>e[Y.MANAGEMENT_CENTER.ORGANIZATION_DOCUMENTS_LIST],CORRESPONDENCE_REPORTS_REFERENCES:e=>e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],TASKS_ADMINS:e=>e[Y.TASKS.TASK_CARTABLE_GRANT_SOLUTION]&&e[Y.TASKS.TASK_CARTABLE_REVOKE_SOLUTION_ACCESS],TASK_USERS:e=>e[Y.TASKS.TASK_CARTABLE_GRANT_SOLUTION]&&e[Y.TASKS.TASK_CARTABLE_REVOKE_SOLUTION_ACCESS]},CQ:{ORGANIZATION:{UPDATE_PROFILE:e=>e[Y.organization_UPDATE_ORGANIZATION_PROFILE],GET_PROFILE:e=>e[Y.organization_GET_ORGANIZATION]},EMPLOYEE:{GET_EMPLOYEE:e=>e[Y.get_employee_receipted_letters],GET_EMPLOYEES_LIST:e=>e[Y.get_employee_receipted_letters],ADD_EMPLOYEE:e=>e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_MOBILE]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_MOBILE],ADD_EMPLOYEE_BY_USERNAME:e=>e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_USERNAME],ADD_EMPLOYEE_BY_MOBILE:e=>e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_MOBILE],INVITE_EMPLOYEE_BY_USERNAME:e
2324=>e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_USERNAME],INVITE_EMPLOYEE_BY_MOBILE:e=>e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_MOBILE],UPDATE_EMPLOYEE_STATUS:e=>e[Y.ORGANIZATION_UPDATE_EMPLOYEE_STATUS],UPDATE_EMPLOYEE_CODE:e=>e[Y.ORGANIZATION_UPDATE_EMPLOYEE_CODE],UPDATE_EMPLOYEE_PROFILE:e=>e[Y.ORGANIZATION_UPDATE_EMPLOYEE_PROFILE],CREATE_POSITION:e=>e[Y.ORGANIZATION_CREATE_POSITION],ASSIGN_POSITION:e=>e[Y.ORGANIZATION_ASSIGN_POSITION],UPDATE_POSITION:e=>e[Y.ORGANIZATION_UPDATE_POSITION],UPDATE_POSITION_CODE:e=>e[Y.ORGANIZATION_UPDATE_POSITION_CODE],UPDATE_POSITION_STATUS:e=>e[Y.ORGANIZATION_UPDATE_POSITION_STATUS],UPDATE_POSITION_PARENT:e=>e[Y.ORGANIZATION_UPDATE_POSITION_PARENT],REVOKE_POSITION:e=>e[Y.ORGANIZATION_REVOKE_POSITION],SET_PRIMARY_POSITION:e=>e[Y.ORGANIZATION_SET_PRIMARY_POSITION],VERIFY_RELEASE_SLOT:e=>e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT]},CONTACT:{GET_CONTACT:e=>!0,UPDATE_CONTACT:e=>!0,ADD_CONTACT:e=>!0,GET_CONTACT_GROUP:e=>!0,ADD_CONTACT_GROUP:e=>!0,UPDATE_CONTACT_GROUP:e=>!0,DELETE_CONTACT:e=>e[Y.CONTACTS.DELETE_CONTACT]},LETTER:{ADD_RECEIPT:e=>e[Y.LETTERS_ADD_RECEIPT],UPDATE_RECEIPT:e=>e[Y.LETTERS_EDIT_RECEIPT],EXPORT_ECE:e=>e[Y.LETTERS_EXPORT_ECE],PARSE_ECE:e=>e[Y.LETTERS_PARSE_ECE],NUMBER:e=>e[Y.LETTERS_SET_LETTER_NUMBER],EDIT_NUMBERED_LETTER:e=>e[Y.UPDATE_NUMBERED_LETTER],PRINT:e=>e[Y.LETTERS_PRINT_LETTER],TERMINATE:e=>!0,DISCARD:e=>!0,FORWARD:e=>!0,COMPOSE:{INTERNAL:e=>!0,OUTGOING:e=>!0,INCOMING:e=>!0},UPDATE:{INTERNAL:e=>!0,OUTGOING:e=>!0,INCOMING:e=>!0},GET_LETTERS_FORWARDS:e=>e[Y.LETTERS.GET_LETTERS_FORWARDS],VOID_LETTER:e=>e[Y.CORRESPONDENCE.LETTERS.VOID_LETTER],EXPORT_NUMBERED_LETTERS_BY_INDICATOR:e=>e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR],GET_NUMBERED_LETTERS_BY_INDICATOR:e=>e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR],CREATE_CORRESPONDENCE_SAMPLE:e=>e[Y.CORRESPONDENCE.SAMPLES.CREATE_CORRESPONDENCE_SAMPLE],DELETE_CORRESPONDENCE_SAMPLE:e=>e[Y.CORRESPONDENCE.SAMPLES.DELETE_CORRESPONDENCE_SAMPLE],DELETE_FORWARD_NOTE:e=>e[Y.CORRESPONDENCE.SAMPLES.DELETE_FORWARD_NOTE],CREATE_FORWARD_NOTE:e=>e[Y.CORRESPONDENCE.SAMPLES.CREATE_FORWARD_NOTE],TAGS:{DELETE:e=>e[Y.TAGS.DELETE_TAG],UPDATE:e=>e[Y.TAGS.UPDATE_TAG]}},CARTABLE:{GET_CARTABLE:e=>!0,GET_NOT_EXCHANGED:e=>!0,GET_INPROGRESS:e=>!0,GET_FORWARDED:e=>!0,GET_FORWARDED_TO_ME:e=>!0,GET_ACTIVE:e=>!0,GET_ENDED:e=>!0},SECRETARIATS:{SECRETARIATS:e=>!0,CREATE_SECRETARIATS:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT],CREATE_INDICATORE:e=>e[Y.INDICATORS_CREATE_INDICATOR],EDIT_AND_CANCEL_SECRETARIATS:e=>e[Y.SECRETARIATS_UPDATE_SECRETARIAT]},ADMIN:{SUPER_ADMIN:{ADD_AND_REMOVE_SUPER_ADMIN:e=>e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_SUPER_ADMIN]&&e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_SUPER_ADMIN],SUPER_ADMIN:e=>e[Y.GROUPS.ADD_ACCESS_GROUP_MEMBERS]&&e[Y.GROUPS.GET_ACCESS_GROUP_MEMBERS]&&e[Y.GROUPS.GET_ORGANIZATION_ACCESS_GROUPS]&&e[Y.GROUPS.REMOVE_ACCESS_GROUP_MEMBERS],ADD_SUPER_ADMIN:e=>e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_SUPER_ADMIN],REMOVE_SUPER_ADMIN:e=>e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_SUPER_ADMIN]},MANAGEMENT_CENTER_ADMIN:{ADD_MANAGEMENT_CENTER_ADMIN:e=>e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_MANAGEMENT_CENTER_ADMIN],REMOVE_MANAGEMENT_CENTER_ADMIN:e=>e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_MANAGEMENT_CENTER_ADMIN]},CORRESPONDENCE_ADMINS:{CORRESPONDENCE_ADMINS:e=>e[Y.CORRESPONDENCE_AUTHZ_ADD_USER_TO_ROLE]&&e[Y.CORRESPONDENCE_AUTHZ_REMOVE_USER_FROM_ROLE],ADD_CORRESPONDENCE_ADMINS:e=>e[Y.CORRESPONDENCE_AUTHZ_ADD_USER_TO_ROLE],REMOVE_CORRESPONDENCE_ADMINS:e=>e[Y.CORRESPONDENCE_AUTHZ_REMOVE_USER_FROM_ROLE]},CORRESPONDENCE_USERS:{CORRESPONDENCE_USERS:e=>e[Y.CARTABLES_GRANT_SOLUTION]&&e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS],ADD_CORRESPONDENCE_USERS:e=>e[Y.CARTABLES_GRANT_SOLUTION],REMOVE_CORRESPONDENCE_USERS:e=>e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]},MEETINGS_USERS:{MEETINGS_USERS:e=>e[Y.MEETINGS.MEETING_CARTABLE_GRANT_SOLUTION]&&e[Y.MEETINGS.MEETING_CARTABLE_REVOKE_SOLUTION_ACCESS],ADD_MEETINGS_USERS:e=>e[Y.MEETINGS.MEETING_CARTABLE_GRANT_SOLUTION],REMOVE_MEETINGS_USERS:e=>e[Y.MEETINGS.MEETING_CARTABLE_REVOKE_SOLUTION_ACCESS]},MEETINGS_ADMINS:{MEETINGS_ADMINS:e=>e[Y.MEETINGS.MEETINGS_AUTHZ_ADD_MEETINGS_ADMIN]&&e[Y.MEETINGS.MEETINGS_AUTHZ_REMOVE_MEETINGS_ADMIN],TASKS_ADMINS:e
2324=>e[Y.MEETINGS.MEETINGS_AUTHZ_ADD_MEETINGS_ADMIN]&&e[Y.MEETINGS.MEETINGS_AUTHZ_REMOVE_MEETINGS_ADMIN],ADD_MEETINGS_ADMINS:e=>e[Y.MEETINGS.MEETINGS_AUTHZ_ADD_MEETINGS_ADMIN],REMOVE_MEETINGS_ADMINS:e=>e[Y.MEETINGS.MEETINGS_AUTHZ_REMOVE_MEETINGS_ADMIN]},SECRETARIAT_ADMINS:{SECRETARIAT_ADMINS:e=>e[Y.AUTHZ.ADD_SECRETARIAT_ADMIN]&&e[Y.AUTHZ.REMOVE_SECRETARIAT_ADMIN],ADD_SECRETARIAT_ADMINS:e=>e[Y.AUTHZ.ADD_SECRETARIAT_ADMIN],REMOVE_SECRETARIAT_ADMINS:e=>e[Y.AUTHZ.REMOVE_SECRETARIAT_ADMIN]},AWAT_ADMINS:{AWAT_ADMIN:e=>e[Y.AUTHZ.ADMINISTRATION.ADMINISTRATION_AUTHZ_ADD_AWAT_ADMIN]},TASKS_USERS:{TASKS_USERS:e=>e[Y.TASKS.TASK_CARTABLE_GRANT_SOLUTION]&&e[Y.TASKS.TASK_CARTABLE_REVOKE_SOLUTION_ACCESS],ADD_TASKS_USERS:e=>e[Y.TASKS.TASK_CARTABLE_GRANT_SOLUTION],REMOVE_TASKS_USERS:e=>e[Y.TASKS.TASK_CARTABLE_REVOKE_SOLUTION_ACCESS]},TASKS_ADMINS:{TASKS_ADMINS:e=>e[Y.TASKS.TASKS_AUTHZ_ADD_TASKS_ADMIN]&&e[Y.TASKS.TASKS_AUTHZ_REMOVE_TASKS_ADMIN],ADD_TASKS_ADMINS:e=>e[Y.TASKS.TASKS_AUTHZ_ADD_TASKS_ADMIN],REMOVE_TASKS_ADMINS:e=>e[Y.TASKS.TASKS_AUTHZ_REMOVE_TASKS_ADMIN]},CHAT_USERS:{CHAT_USERS:e=>e[Y.TASKS.TASK_CARTABLE_GRANT_SOLUTION]&&e[Y.TASKS.TASK_CARTABLE_REVOKE_SOLUTION_ACCESS],ADD_CHAT_USERS:e=>e[Y.TASKS.TASK_CARTABLE_GRANT_SOLUTION],REMOVE_CHAT_USERS:e=>e[Y.TASKS.TASK_CARTABLE_REVOKE_SOLUTION_ACCESS]},CHAT_ADMINS:{CHAT_ADMINS:e=>e[Y.TASKS.TASKS_AUTHZ_ADD_TASKS_ADMIN]&&e[Y.TASKS.TASKS_AUTHZ_REMOVE_TASKS_ADMIN],ADD_CHAT_ADMINS:e=>e[Y.TASKS.TASKS_AUTHZ_ADD_TASKS_ADMIN],REMOVE_CHAT_ADMINS:e=>e[Y.TASKS.TASKS_AUTHZ_REMOVE_TASKS_ADMIN]}},POSITION:{CREATE_POSITION:e=>e[Y.ORGANIZATION_CREATE_POSITION],UPDATE_POSITION:e=>e[Y.ORGANIZATION_UPDATE_POSITION],UPDATE_POSITION_CODE:e=>e[Y.ORGANIZATION_UPDATE_POSITION_CODE],UPDATE_POSITION_STATUS:e=>e[Y.ORGANIZATION_UPDATE_POSITION_STATUS],UPDATE_POSITION_PARENT:e=>e[Y.ORGANIZATION_UPDATE_POSITION_PARENT],VERIFY_RELEASE_SLOT:e=>e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT]},MEETINGS:{CREATE_MEETING_LOCATION:e=>e[Y.MEETINGS.MEETING_LOCATIONS_CREATE_MEETING_LOCATION]&&e[Y.MEETINGS.MEETING_LOCATIONS_ENABLE_MEETING_LOCATION]&&e[Y.MEETINGS.MEETING_LOCATIONS_DISABLE_MEETING_LOCATION],UPDATE_MEETING_LOCATION:e=>e[Y.MEETINGS.MEETING_LOCATIONS_ENABLE_MEETING_LOCATION]&&e[Y.MEETINGS.MEETING_LOCATIONS_DISABLE_MEETING_LOCATION]&&e[Y.MEETINGS.MEETING_LOCATIONS_UPDATE_MEETING_LOCATION],ADD_MEETINGS_USERS:e=>e[Y.MEETINGS.MEETING_CARTABLE_GRANT_SOLUTION],REMOVE_MEETINGS_USERS:e=>e[Y.MEETINGS.MEETING_CARTABLE_REVOKE_SOLUTION_ACCESS],ADD_MEETINGS_ADMINS:e=>e[Y.MEETINGS.MEETINGS_AUTHZ_ADD_MEETINGS_ADMIN],REMOVE_MEETINGS_ADMINS:e=>e[Y.MEETINGS.MEETINGS_AUTHZ_REMOVE_MEETINGS_ADMIN],TAGS:{DELETE:e=>e[Y.TAGS.DELETE_TAG],UPDATE:e=>e[Y.TAGS.UPDATE_TAG]}},TASKS:{SOLUTIONS:e=>e[Y.MARKET_CREATE_ORDER],TAGS:{DELETE:e=>e[Y.TAGS.DELETE_TAG],UPDATE:e=>e[Y.TAGS.UPDATE_TAG]}},CHAT:{SOLUTIONS:e=>e[Y.MARKET_CREATE_ORDER]},GROUPS:{ADD_ACCESS_GROUP_MEMBERS:e=>e[Y.GROUPS.ADD_ACCESS_GROUP_MEMBERS],REMOVE_ACCESS_GROUP_MEMBERS:e=>e[Y.GROUPS.REMOVE_ACCESS_GROUP_MEMBERS]}},MENU:{SOLUTIONS:e=>e[Y.MARKET_CREATE_ORDER],EMPLOYEES:e=>e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_ADD_EMPLOYEE_BY_MOBILE]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_USERNAME]&&e[Y.ORGANIZATION_INVITE_EMPLOYEE_BY_MOBILE]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_STATUS]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_CODE]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_PROFILE]&&e[Y.ORGANIZATION_ASSIGN_POSITION]&&e[Y.ORGANIZATION_REVOKE_POSITION]&&e[Y.ORGANIZATION_SET_PRIMARY_POSITION]&&e[Y.ORGANIZATION_UPDATE_EMPLOYEE_STATUS]&&e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT],ORGANIZATION_PROFILE:e=>e[Y.ORGANIZATION_GET_ORGANIZATION]&&e[Y.ORGANIZATION_UPDATE_ORGANIZATION_PROFILE],MANAGEMENT_CENTER_ADMINS:e=>e[Y.CARTABLES_GRANT_SOLUTION]&&e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_SUPER_ADMIN]&&e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_SUPER_ADMIN]||e[Y.MANAGEMENT_CENTER_AUTHZ_ADD_MANAGEMENT_CENTER_ADMIN]&&e[Y.MANAGEMENT_CENTER_AUTHZ_REMOVE_MANAGEMENT_CENTER_ADMIN],CORRESPONDENCE_ADMINS:e=>e[Y.CARTABLES_GRANT_SOLUTION]&&e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS],ORGANIZATION_STRUCTURE:e=>e[Y.ORGANIZATION_CREATE_POSITION]&&e[Y.ORGANIZATION_UPDATE_POSITION]&&e[Y.ORGANIZATION_UPDATE_POSITION_CODE]&&e[Y.ORGANIZATION_UPDATE_POSITION_PARENT]&&e[Y.ORGANIZATION_UPDATE_POSITION_STATUS]&&e[Y.ORGANIZATION_VERIFY_RELEASE_SLOT],MANAGE_SECRETARIATS:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT]||e[Y.SECRETARIATS_UPDATE_SECRETARIAT]||e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]||e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]||e[Y.INDICATORS_GET_INDICATOR]||e[Y.INDICATORS_CREATE_INDICATOR]||e[Y.INDICATORS_UPDATE_INDICATOR]||e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],MANAGE_CORRESPONDENCE:e=>e[Y.SECRETARIATS_CREATE_SECRETARIAT]||e[Y.SECRETARIATS_UPDATE_SECRETARIAT]||e[Y.SECRETARIATS_CREATE_LETTER_LAYOUT]||e[Y.SECRETARIATS_UPDATE_LETTER_LAYOUT]||e[Y.INDICATORS_GET_INDICATOR]||e[Y.INDICATORS_CREATE_INDICATOR]||e[Y.INDICATORS_UPDATE_INDICATOR]||e[Y.LETTERS_GET_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.LETTERS_EXPORT_NUMBERED_LETTERS_BY_INDICATOR]||e[Y.CARTABLES_GRANT_SOLUTION]||e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS]||e[Y.LETTERS.GET_LETTERS_FORWARDS]||e[Y.LETTERS.UPDATE_EXCHANGE_REGISTRY]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],MANAGE_FORWARD_ACCESS:e=>e[Y.LETTERS.UPDATE_EXCHANGE_REGISTRY],MANAGE_ALL_FORWARDED_LETTERS:e=>e[Y.LETTERS.GET_LETTERS_FORWARDS]||e[Y.CORRESPONDENCE.REPORTS.GET_REFERENCE_USAGE_REPORT],CARTABLE:e=>!0,ACTIVE:e=>!0,ENDED:e=>!0,FORWARDED:e=>!0,RECEIPTED:e=>!0,COMPOSE_ECE:e=>!0},APPBAR:{SOLUTIONS:e=>e[Y.MARKET_CREATE_ORDER],CORRESPONDENCE_SETTING:e=>e[Y.CORRESPONDENCE_AUTHZ_ADD_USER_TO_ROLE]&&e[Y.CORRESPONDENCE_AUTHZ_REMOVE_USER_FROM_ROLE]||e[Y.CARTABLES_GRANT_SOLUTION]&&e[Y.CARTABLES_REVOKE_SOLUTION_ACCESS],ADMINISTRATION_DASHBOARD:e=>e[Y.AUTHZ.ADMINISTRATION.ADMINISTRATION_AUTHZ_ADD_AWAT_ADMIN]}},Pk=J.createContext();function Fk(){return(0,J.useContext)(Pk)}var Ik=()=>{let e=P(),t=h();return Object.values(t).reduce((e,t)=>
2324e.replace(`/${t}`,``),e.pathname)},Lk=({hidden:e,security:t,disabled:n,...r})=>{let i=t?.disabled?`disabledSecurity`:``;return l(f,{children:!e&&!t?.hidden&&l(ei,{disabled:n||t?.disabled,className:i,...r,children:r.children})})},Rk=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a}=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,component:S,to:`/organizations/${a}/organization-settings/sms`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/organization-settings/sms`?r.selectedSidebarItem:``),security:t.solutions,children:[!e&&l(cv,{}),e&&d(f,{children:[l(sp,{children:l(cv,{})}),l(Xr,{primary:s(`organization.labels.organization-sms`)})]})]})},zk={disabled:`disabled`,hidden:`hidden`},Bk={editNumberedLetter:!0},Vk=({schema:e,securityLevelDictionary:t={}})=>n=>r=>{let{hasAccess:i,accessibility:a}=yc(),o={};if(e)for(let t of Object.keys(e)){let n=e[t],r;Bk[t]&&(r=!!n?.strategy(a)),r??i(n?.strategy,n?.solution)?o[t]={disabled:!1,hidden:!1,allow:!0}:o[t]={disabled:n.behavior===zk.disabled,hidden:n.behavior===zk.hidden,allow:!1}}return l(n,{...r,security:{...o},accessibility:a,securityLevelDictionary:t})},Hk={solutions:{strategy:Nk.SIDEBAR.SOLUTIONS,behavior:zk.hidden},employee:{strategy:Nk.SIDEBAR.EMPLOYEES,behavior:zk.hidden},organizationProfile:{strategy:Nk.SIDEBAR.ORGANIZATION_PROFILE,behavior:zk.hidden},organiztions:{strategy:Nk.SIDEBAR.ORGANIZATION_PROFILE,behavior:zk.hidden},managementCenterAdmins:{strategy:Nk.SIDEBAR.MANAGEMENT_CENTER_ADMINS,behavior:zk.hidden},chatAdmin:{strategy:Nk.SIDEBAR.CHATS_ADMINS,behavior:zk.hidden},correspondenceAdmin:{strategy:Nk.SIDEBAR.CORRESPONDENCE_ADMINS,behavior:zk.hidden},meetingsAdmin:{strategy:Nk.SIDEBAR.MEETINGS_ADMINS,behavior:zk.hidden},tasksAdmin:{strategy:Nk.SIDEBAR.TASKS_ADMINS,behavior:zk.hidden},allMeetingsOrganization:{strategy:Nk.SIDEBAR.MEETINGS_ADMINS,behavior:zk.hidden},manageSecretariats:{strategy:Nk.SIDEBAR.MANAGE_SECRETARIATS,behavior:zk.hidden},manageCorrespondence:{strategy:Nk.SIDEBAR.MANAGE_CORRESPONDENCE,behavior:zk.hidden},manageForwardAccess:{strategy:Nk.SIDEBAR.MANAGE_FORWARD_ACCESS,behavior:zk.hidden},manageAllForwardedLetters:{strategy:Nk.SIDEBAR.MANAGE_ALL_FORWARDED_LETTERS,behavior:zk.hidden},sidebarCorrespondenceReferenceUsagesReports:{strategy:Nk.SIDEBAR.CORRESPONDENCE_REFERENCE_USAGES_REPORTS,behavior:zk.hidden},sidebarCorrespondenceReports:{strategy:Nk.SIDEBAR.CORRESPONDENCE_REPORTS,behavior:zk.hidden},cartable:{strategy:Nk.SIDEBAR.CARTABLE,behavior:zk.disabled},active:{strategy:Nk.SIDEBAR.ACTIVE,behavior:zk.disabled},ended:{strategy:Nk.SIDEBAR.ENDED,behavior:zk.disabled},forwarded:{strategy:Nk.SIDEBAR.FORWARDED,behavior:zk.disabled},receipted:{strategy:Nk.SIDEBAR.RECEIPTED,behavior:zk.disabled},eceLetters:{strategy:Nk.SIDEBAR.CARTABLE,behavior:zk.disabled},composeECE:{strategy:Nk.SIDEBAR.COMPOSE_ECE,behavior:zk.disabled},organizationDocumentsList:{strategy:Nk.SIDEBAR.MANAGEMENT_CENTER_DOCUMENTS_LIST,behavior:zk.hidden}},Uk=e=>Vk({schema:Hk})(e),Wk=Z.default.shape({disabled:Z.default.bool.isRequired,hidden:Z.default.bool.isRequired,allow:Z.default.bool.isRequired}),Gk=Z.default.shape({solutions:Wk.isRequired,employee:Wk.isRequired,organizationProfile:Wk.isRequired,organiztions:Wk.isRequired,managementCenterAdmins:Wk.isRequired,correspondenceAdmin:Wk.isRequired,manageSecretariats:Wk.isRequired,cartable:Wk.isRequired,active:Wk.isRequired,ended:Wk.isRequired,forwarded:Wk.isRequired,receipted:Wk.isRequired,composeECE:Wk.isRequired}),Kk=B()(e=>({listItem:{padding:e.spacing(.5,1.25),height:`40px`,"& img":{width:`24px`,height:`24px`,marginLeft:e.spacing(1)},"& button":{"& svg":{fontSize:`0.80em`}}},collapseWrapper:{borderRight:`1px dashed ${e.palette.text.lightGray} `},collapseBox:{margin:e.spacing(0,1.5),background:`#f5f5f5`,borderRadius:e.spacing(1),"& div":{"&:hover":{borderRadius:e.spacing(1)}}},noActiveSolution:{margin:e.spacing(.5),borderRadius:e.spacing(1),width:`unset`,padding:e.spacing(.5,2,0,0)},typography:{fontSize:`12px`,color:e.palette.text.gray,whiteSpace:`pre-wrap`,marginRight:e.spacing(.5),textAlign:`center`,background:`#f5f5f5`,padding:e.spacing(.2),borderRadius:e.spacing(.8)}})),qk=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=h(),a=Ik(),{cx:o}=Kk(),{t:s}=Ye();return d(Lk,{button:!0,component:S,to:`/organizations/${i.organizationId}/organization-settings/shop`,className:o({[r.ListItem]:e,[r.miniListItem]:!e},a===`/organizations/organization-settings/shop`?r.selectedSidebarItem:``),security:t.solutions,children:[!e&&l(G,{component:S,to:`/organizations/${i.organizationId}/organization-settings/shop`,className:r.miniSidebarItem,children:l(a===`/organizations/organization-settings/shop`?Zee:hy,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(hy,{className:`itemIcon`})}),l(Xr,{primary:s(`organization.labels.shop`)})]})]})},Jk=e=>{let{organization:t,orders:n}=e;return{organization:t,orders:n}};qk.propTypes={open:Z.default.bool.isRequired,organization:Z.default.shape({selectedOrganization:Z.default.shape({owner:Z.default.shape({id:Z.default.string})})}).isRequired,security:Gk.isRequired};var Yk=Ze(Jk,{})(qk),Xk=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`16`,cy:`16`,r:`16`,fill:`url(#paint0_linear_10052_812530)`}),l(`path`,{d:`M20.6667 10H11.3333C10.6 10 10 10.6 10 11.3333V20.6667C10 21.4 10.6 22 11.3333 22H20.6667C21.4 22 22 21.4 22 20.6667V11.3333C22 10.6 21.4 10 20.6667 10ZM20.6667 20.6667H11.3333V11.3333H20.6667V20.6667ZM12.6667 14.6667H14V19.3334H12.6667V14.6667ZM15.3333 12.6667H16.6667V19.3334H15.3333V12.6667ZM18 16.6667H19.3333V19.3334H18V16.6667Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10052_812530`,x1:`29.3333`,y1:`25`,x2:`-17.3333`,y2:`-5.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#FFBF00`}),l(`stop`,{offset:`1`,stopColor:`#FEE392`,stopOpacity:`0.7`})]})})]})}),Zk=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`16`,cy:`16`,r:`16`,fill:`url(#paint0_linear_10055_812593)`}),l(`path`,{d:`M20.6667 10.6668H17.88C17.6 9.8935 16.8667 9.3335 16 9.3335C15.1333 9.3335 14.4 9.8935 14.12 10.6668H11.3333C10.6 10.6668 10 11.2668 10 12.0002V21.3335C10 22.0669 10.6 22.6669 11.3333 22.6669H20.6667C21.4 22.6669 22 22.0669 22 21.3335V12.0002C22 11.2668 21.4 10.6668 20.6667 10.6668ZM16 10.5002C16.1467 10.5002 16.2733 10.5668 16.3667 10.6668C16.4467 10.7535 16.5 10.8735 16.5 11.0002C16.5 11.2735 16.2733 11.5002 16 11.5002C15.7267 11.5002 15.5 11.2735 15.5 11.0002C15.5 10.8735 15.5533 10.7535 15.6333 10.6668C15.7267 10.5668 15.8533 10.5002 16 10.5002ZM20.6667 21.3335H11.3333V12.0002H20.6667V21.3335ZM16 12.6668C14.9 12.6668 14 13.5668 14 14.6668C14 15.7669 14.9 16.6669 16 16.6669C17.1 16.6669 18 15.7669 18 14.6668C18 13.5668 17.1 12.6668 16 12.6668ZM16 15.3335C15.6333 15.3335 15.3333 15.0335 15.3333 14.6668C15.3333 14.3002 15.6333 14.0002 16 14.0002C16.3667 14.0002 16.6667 14.3002 16.6667 14.6668C16.6667 15.0335 16.3667 15.3335 16 15.3335ZM12 19.6469V20.6669H20V19.6469C20 17.9802 17.3533 17.2602 16 17.2602C14.6467 17.2602 12 17.9735 12 19.6469ZM13.54 19.3335C14 18.9602 15.1267 18.5869 16 18.5869C16.8733 18.5869 18.0067 18.9602 18.46 19.3335H13.54Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10055_812593`,x1:`29.3333`,y1:`25`,x2:`-17.3333`,y2:`-5.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#7757EA`}),l(`stop`,{offset:`1`,stopColor:`#DFDDFE`})]})})]})}),Qk=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`16`,cy:`16`,r:`16`,fill:`url(#paint0_linear_10052_812547)`}),l(`path`,{d:`M12.0007 18.6665H17.334V17.3332H12.0007V18.6665ZM12.0007 15.9999H20.0007V14.6665H12.0007V15.9999ZM10.6673 21.3332C10.3007 21.3332 9.98676 21.2027 9.72565 20.9415C9.46454 20.6804 9.33398 20.3665 9.33398 19.9999V11.9998C9.33398 11.6332 9.46454 11.3193 9.72565 11.0582C9.98676 10.7971 10.3007 10.6665 10.6673 10.6665H14.6673L16.0007 11.9998H21.334C21.7007 11.9998 22.0145 12.1304 22.2757 12.3915C22.5368 12.6526 22.6673 12.9665 22.6673 13.3332V19.9999C22.6673 20.3665 22.5368 20.6804 22.2757 20.9415C22.0145 21.2027 21.7007 21.3332 21.334 21.3332H10.6673ZM10.
23246673 19.9999H21.334V13.3332H15.4507L14.1173 11.9998H10.6673V19.9999Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10052_812547`,x1:`29.3333`,y1:`25`,x2:`-17.3333`,y2:`-5.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#5BD17C`}),l(`stop`,{offset:`1`,stopColor:`#C8FCC3`,stopOpacity:`0.6`})]})})]})}),$k=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`16`,cy:`16`,r:`16`,fill:`url(#paint0_linear_10052_812468)`}),l(`path`,{d:`M10.6673 22C10.3007 22 9.98676 21.8695 9.72565 21.6084C9.46454 21.3473 9.33398 21.0334 9.33398 20.6667V11.3333C9.33398 10.9667 9.46454 10.6528 9.72565 10.3917C9.98676 10.1306 10.3007 10 10.6673 10H21.334C21.7007 10 22.0145 10.1306 22.2757 10.3917C22.5368 10.6528 22.6673 10.9667 22.6673 11.3333V20.6667C22.6673 21.0334 22.5368 21.3473 22.2757 21.6084C22.0145 21.8695 21.7007 22 21.334 22H10.6673ZM10.6673 20.6667H21.334V11.3333H10.6673V20.6667ZM11.334 19.3334H14.6673V18H11.334V19.3334ZM17.7007 18L21.0007 14.7L20.0507 13.75L17.7007 16.1167L16.7507 15.1667L15.8173 16.1167L17.7007 18ZM11.334 16.6667H14.6673V15.3334H11.334V16.6667ZM11.334 14H14.6673V12.6667H11.334V14Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10052_812468`,x1:`29.3333`,y1:`25`,x2:`-17.3333`,y2:`-5.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#D15B86`}),l(`stop`,{offset:`1`,stopColor:`#F9B7CF`,stopOpacity:`0.6`})]})})]})}),eA=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`12`,cy:`12`,r:`12`,fill:`url(#paint0_linear_10148_3777)`}),l(`path`,{d:`M11 9.88751H15.0125V9.13751H11V9.88751ZM11 11.3875H15.0125V10.6375H11V11.3875ZM11 12.8875H13.5V12.1375H11V12.8875ZM9.5125 10.0125C9.65417 10.0125 9.77292 9.96459 9.86875 9.86876C9.96458 9.77293 10.0125 9.65418 10.0125 9.51251C10.0125 9.37084 9.96458 9.25209 9.86875 9.15626C9.77292 9.06042 9.65417 9.01251 9.5125 9.01251C9.37083 9.01251 9.25208 9.06042 9.15625 9.15626C9.06042 9.25209 9.0125 9.37084 9.0125 9.51251C9.0125 9.65418 9.06042 9.77293 9.15625 9.86876C9.25208 9.96459 9.37083 10.0125 9.5125 10.0125ZM9.5125 11.5125C9.65417 11.5125 9.77292 11.4646 9.86875 11.3688C9.96458 11.2729 10.0125 11.1542 10.0125 11.0125C10.0125 10.8708 9.96458 10.7521 9.86875 10.6563C9.77292 10.5604 9.65417 10.5125 9.5125 10.5125C9.37083 10.5125 9.25208 10.5604 9.15625 10.6563C9.06042 10.7521 9.0125 10.8708 9.0125 11.0125C9.0125 11.1542 9.06042 11.2729 9.15625 11.3688C9.25208 11.4646 9.37083 11.5125 9.5125 11.5125ZM9.5125 13.0125C9.65417 13.0125 9.77292 12.9646 9.86875 12.8688C9.96458 12.7729 10.0125 12.6542 10.0125 12.5125C10.0125 12.3709 9.96458 12.2521 9.86875 12.1563C9.77292 12.0604 9.65417 12.0125 9.5125 12.0125C9.37083 12.0125 9.25208 12.0604 9.15625 12.1563C9.06042 12.2521 9.0125 12.3709 9.0125 12.5125C9.0125 12.6542 9.06042 12.7729 9.15625 12.8688C9.25208 12.9646 9.37083 13.0125 9.5125 13.0125ZM7 17V7.75C7 7.55834 7.075 7.38542 7.225 7.23125C7.375 7.07708 7.55 7 7.75 7H16.25C16.4417 7 16.6146 7.07708 16.7688 7.23125C16.9229 7.38542 17 7.55834 17 7.75V14.25C17 14.4417 16.9229 14.6146 16.7688 14.7688C16.6146 14.9229 16.4417 15 16.25 15H9L7 17ZM7.75 15.1875L8.6875 14.25H16.25V7.75H7.75V15.1875ZM7.75 7.75V15.1875V7.75Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10148_3777`,x1:`22`,y1:`18.75`,x2:`-13`,y2:`-4`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#5DD4FF`}),l(`stop`,{offset:`1`,stopColor:`#0932FF`})]})})]})}),tA=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`16`,cy:`16`,r:`16`,fill:`url(#paint0_linear_10055_812604)`}),l(`path`,{d:`M10.8333 12.0002H12.1667V14.0002H18.8333V12.0002H20.1667V15.3335H21.5V12.0002C21.5 11.2668 20.9 10.6668 20.1667 10.6668H17.38C17.1 9.8935 16.3667 9.3335 15.5 9.3335C14.6333 9.3335 13.9 9.8935 13.62 10.6668H10.8333C10.1 10.6668 9.5 11.2668 9.5 12.0002V21.3335C9.5 22.0669 10.1 22.6669 10.8333 22.6669H14.8333V21.3335H10.8333V12.0002ZM15.5 10.6668C15.8667 10.6668 16.1667 10.9668 16.1667 11.3335C16.1667 11.7002 15.8667 12.0002 15.5 12.0002C15.1333 12.0002 14.8333 11.7002 14.8333 11.3335C14.8333 10.9668 15.1333 10.6668 15.5 10.6668Z`,fill:`white`}),l(`path`,{d:`M21.5 16.3335L17.84 20.0002L15.8333 18.0002L14.8333 19.0002L17.84 22.0002L22.5 17.3335L21.5 16.3335Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10055_812604`,x1:`29.3333`,y1:`25`,x2:`-17.3333`,y2:`-5.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#B654EE`}),l(`stop`,{offset:`1`,stopColor:`#F5E8FD`})]})})]})}),nA=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`16`,cy:`16`,r:`16`,fill:`url(#paint0_linear_10052_812490)`}),l(`path`,{d:`M16.9993 16.9999C16.4438 16.9999 15.9716 16.8054 15.5827 16.4165C15.1938 16.0276 14.9993 15.5554 14.9993 14.9999C14.9993 14.4443 15.1938 13.9721 15.5827 13.5832C15.9716 13.1943 16.4438 12.9998 16.9993 12.9998C17.5549 12.9998 18.0271 13.1943 18.416 13.5832C18.8049 13.9721 18.9993 14.4443 18.9993 14.9999C18.9993 15.5554 18.8049 16.0276 18.416 16.4165C18.0271 16.8054 17.5549 16.9999 16.9993 16.9999ZM11.
2324666 19.3332C11.391 19.3332 11.1556 19.2353 10.9598 19.0394C10.7639 18.8436 10.666 18.6082 10.666 18.3332V11.6665C10.666 11.3915 10.7639 11.1561 10.9598 10.9603C11.1556 10.7644 11.391 10.6665 11.666 10.6665H22.3327C22.6077 10.6665 22.8431 10.7644 23.0389 10.9603C23.2348 11.1561 23.3327 11.3915 23.3327 11.6665V18.3332C23.3327 18.6082 23.2348 18.8436 23.0389 19.0394C22.8431 19.2353 22.6077 19.3332 22.3327 19.3332H11.666ZM13.3327 18.3332H20.666C20.666 17.8665 20.8271 17.4721 21.1493 17.1499C21.4716 16.8276 21.866 16.6665 22.3327 16.6665V13.3332C21.866 13.3332 21.4716 13.1721 21.1493 12.8498C20.8271 12.5276 20.666 12.1332 20.666 11.6665H13.3327C13.3327 12.1332 13.1716 12.5276 12.8493 12.8498C12.5271 13.1721 12.1327 13.3332 11.666 13.3332V16.6665C12.1327 16.6665 12.5271 16.8276 12.8493 17.1499C13.1716 17.4721 13.3327 17.8665 13.3327 18.3332ZM21.3327 21.3332H9.66602C9.39102 21.3332 9.1556 21.2353 8.95977 21.0395C8.76393 20.8436 8.66602 20.6082 8.66602 20.3332V12.6665H9.66602V20.3332H21.3327V21.3332Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10052_812490`,x1:`29.3333`,y1:`25`,x2:`-17.3333`,y2:`-5.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#00FFA6`}),l(`stop`,{offset:`0.595`,stopColor:`#81FFD3`,stopOpacity:`0.439216`})]})})]})}),rA=()=>l(f,{children:d(`svg`,{width:`40`,height:`40`,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`rect`,{width:`40`,height:`40`,rx:`6`,fill:`url(#paint0_linear_14761_884315)`}),l(`path`,{d:`M10 16.5C10 13 12 11.5 15 11.5H25C28 11.5 30 13 30 16.5V23.5C30 27 28 28.5 25 28.5H15`,stroke:`white`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),l(`path`,{d:`M25 17L21.87 19.5C20.84 20.32 19.15 20.32 18.12 19.5L15 17`,stroke:`white`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),l(`path`,{d:`M10 24.5H16`,stroke:`white`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),l(`path`,{d:`M10 20.5H13`,stroke:`white`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_14761_884315`,x1:`28.5`,y1:`28.5`,x2:`-8.5`,y2:`-7`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{"stop-color":`#00C700`}),l(`stop`,{offset:`1`,"stop-color":`#DAE7FF`})]})})]})}),iA=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 32 32`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`16`,cy:`16`,r:`16`,fill:`url(#paint0_linear_10052_812513)`}),l(`path`,{d:`M15.3327 21.3332V16.2665L11.9993 12.9332V14.6665H10.666V10.6665H14.666V11.9998H12.9327L16.666 15.7332V21.3332H15.3327ZM17.8993 15.0665L16.9327 14.0998L19.066 11.9998H17.3327V10.6665H21.3327V14.6665H19.9993V12.9332L17.8993 15.0665Z`,fill:`white`}),l(`defs`,{children:d(`linearGradient`,{id:`paint0_linear_10052_812513`,x1:`29.3333`,y1:`25`,x2:`-17.3333`,y2:`-5.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#43D8E9`}),l(`stop`,{offset:`0.945`,stopColor:`#D0F5FD`,stopOpacity:`0.6`})]})})]})}),aA=`ManagementCenter`,oA=`ManagementCenterSms`,sA=`managementcenter`,cA=e=>e.toLowerCase()===aA.toLowerCase(),lA=`SmsBasic365`,uA=`SmsBasic`,dA=e=>e===`yearly`?lA:uA,fA=(e,t)=>cA(e)?dA(t):t===`yearly`?`${e}Basic365`:`${e}Basic`,pA=e=>e===oA,mA=(e,t)=>
2324{let n=e.split(`-`)[1]===`upgrade`;return cA(t)?!1:n},hA=()=>l(f,{children:d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 56 56`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`28`,cy:`28`,r:`28`,fill:`url(#paint0_linear_420_6897)`}),l(`g`,{filter:`url(#filter0_d_420_6897)`,children:l(`path`,{d:`M28 36.8102C27.1042 36.8102 26.2019 36.586 25.4362 35.9834L14 27.7212V39.3751C14 40.8243 15.1758 42.0001 16.625 42.0001H39.375C40.8242 42.0001 42 40.8243 42 39.4243V27.7212L30.5648 35.9845C29.7992 36.5313 28.8969 36.8102 28 36.8102ZM40.9937 22.9142C40.5125 22.5313 40.0531 22.1759 39.375 21.6618V19.249C39.375 17.7998 38.1992 16.624 36.75 16.624L32.5117 16.6241C32.3408 16.501 32.1904 16.3917 32.0127 16.2686C31.0953 15.5931 29.2742 13.9797 28 14.0002C26.7312 13.9797 24.9047 15.5931 23.9859 16.2696C23.8082 16.3927 23.6578 16.502 23.4869 16.6251H19.25C17.8008 16.6251 16.625 17.8009 16.625 19.2501V21.6629C15.9485 22.1759 15.4902 22.5313 15.0052 22.9142C14.3691 23.4063 14 24.172 14 24.9813V25.5621L19.25 29.3558V19.2501H36.75V29.3509L42 25.5572V24.9813C42 24.172 41.6336 23.4063 40.9937 22.9142ZM23.625 27.9509H32.375C32.8582 27.9509 33.25 27.5591 33.25 27.1251C33.25 26.6418 32.8582 26.2501 32.375 26.2501H23.625C23.1418 26.2501 22.75 26.6418 22.75 27.1251C22.75 27.6063 23.1438 27.9509 23.625 27.9509ZM23.625 24.4509H32.375C32.8582 24.4509 33.25 24.0591 33.25 23.5759C33.25 23.0925 32.8582 22.7501 32.375 22.7501H23.625C23.1418 22.7501 22.75 23.1418 22.75 23.5759C22.75 24.1063 23.1438 24.4509 23.625 24.4509Z`,fill:`white`})}),d(`defs`,{children:[d(`filter`,{id:`filter0_d_420_6897`,x:`10`,y:`14`,width:`36`,height:`36`,filterUnits:`userSpaceOnUse`,colorInterpolationFilters:`sRGB`,children:[l(`feFlood`,{floodOpacity:`0`,result:`BackgroundImageFix`}),l(`feColorMatrix`,{in:`SourceAlpha`,type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0`,result:`hardAlpha`}),l(`feOffset`,{dy:`4`}),l(`feGaussianBlur`,{stdDeviation:`2`}),l(`feComposite`,{in2:`hardAlpha`,operator:`out`}),l(`feColorMatrix`,{type:`matrix`,values:`0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0`}),l(`feBlend`,{mode:`normal`,in2:`BackgroundImageFix`,result:`effect1_dropShadow_420_6897`}),l(`feBlend`,{mode:`normal`,in:`SourceGraphic`,in2:`effect1_dropShadow_420_6897`,result:`shape`})]}),d(`linearGradient`,{id:`paint0_linear_420_6897`,x1:`51.3333`,y1:`43.75`,x2:`-30.3333`,y2:`-9.33333`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#FF835D`}),l(`stop`,{offset:`1`,stopColor:`#FFD709`})]})]})]})}),gA=()=>d(`svg`,{width:`44`,height:`44`,viewBox:`0 0 41 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`circle`,{cx:`20.5`,cy:`20`,r:`20`,fill:`url(#paint0_linear_503_28570)`}),l(`g`,{clipPath:`url(#clip0_503_28570)`,children:l(`path`,{d:`M20.5 20.625C21.8583 20.625 23.0583 20.95 24.0333 21.375C24.9333 21.775 25.5 22.675 25.5 23.65V25H15.5V23.6584C15.5 22.675 16.0667 21.775 16.9667 21.3834C17.9417 20.95 19.1417 20.625 20.5 20.625ZM13.8333 20.8334C14.75 20.8334 15.5 20.0834 15.5 19.1667C15.5 18.25 14.75 17.5 13.8333 17.5C12.9167 17.5 12.1667 18.25 12.1667 19.1667C12.1667 20.0834 12.9167 20.8334 13.8333 20.8334ZM14.775 21.75C14.4667 21.7 14.1583 21.6667 13.8333 21.6667C13.0083 21.6667 12.225 21.8417 11.5167 22.15C10.9 22.4167 10.5 23.0167 10.5 23.6917V25H14.25V23.6584C14.25 22.9667 14.4417 22.3167 14.775 21.75ZM27.1667 20.8334C28.0833 20.8334 28.8333 20.0834 28.8333 19.1667C28.8333 18.25 28.0833 17.5 27.1667 17.5C26.25 17.5 25.5 18.25 25.5 19.1667C25.5 20.0834 26.25 20.8334 27.1667 20.8334ZM30.5 23.6917C30.5 23.0167 30.1 22.4167 29.4833 22.15C28.775 21.8417 27.9917 21.6667 27.1667 21.6667C26.8417 21.6667 26.5333 21.7 26.225 21.75C26.5583 22.3167 26.75 22.9667 26.75 23.6584V25H30.5V23.6917ZM20.5 15C21.8833 15 23 16.1167 23 17.5C23 18.8833 21.8833 20 20.5 20C19.1167 20 18 18.8833 18 17.5C18 16.1167 19.1167 15 20.5 15Z`,fill:`white`})}),d(`defs`,{children:[d(`linearGradient`,{id:`paint0_linear_503_28570`,x1:`37.1667`,y1:`31.25`,x2:`-21.1667`,y2:`-6.66667`,gradientUnits:`userSpaceOnUse`,children:[l(`stop`,{stopColor:`#5D6DFF`}),l(`stop`,{offset:`1`,stopColor:`#09D3FF`})]}),l(`clipPath`,{id:`clip0_503_28570`,children:l(`rect`,{width:`20`,he
2324ight:`20.0001`,fill:`white`,transform:`translate(10.5 10)`})})]})]}),_A=function(e){return e.SOLUTION=`solution`,e.ADDON=`addon`,e}({}),vA=[{solutionName:`Correspondence`,imgSrc:hA,isAddOn:!1,soon:!1,descriptionKey:`solutions.solutions-list-description.correspondence`},{solutionName:`Meetings`,imgSrc:gA,isAddOn:!1,soon:!1,descriptionKey:`solutions.solutions-list-description.meetings`},{solutionName:`Tasks`,imgSrc:tA,isAddOn:!1,soon:!1,descriptionKey:`solutions.solutions-list-description.tasks`},{solutionName:`Forms`,imgSrc:$k,isAddOn:!1,soon:!0,descriptionKey:`solutions.solutions-list-description.forms`},{solutionName:`Workflow`,imgSrc:iA,isAddOn:!1,soon:!0,descriptionKey:`solutions.solutions-list-description.workflow`},{solutionName:`Chat`,imgSrc:eA,isAddOn:!1,soon:!1,withoutTrial:!0,descriptionKey:`solutions.solutions-list-description.chat`},{solutionName:`Salary`,imgSrc:nA,isAddOn:!1,soon:!0,descriptionKey:`solutions.solutions-list-description.salary`},{solutionName:`Attendance`,imgSrc:Zk,isAddOn:!1,soon:!0,descriptionKey:`solutions.solutions-list-description.attendance`},{solutionName:`Accounting`,imgSrc:Xk,isAddOn:!1,soon:!0,descriptionKey:`solutions.solutions-list-description.accounting`},{solutionName:`DocumentManagement`,imgSrc:Qk,isAddOn:!1,soon:!0,descriptionKey:`solutions.solutions-list-description.document-management`},{solutionName:aA,routeSlug:sA,imgSrc:rA,isAddOn:!0,soon:!1,withoutTrial:!0,descriptionKey:`solutions.solutions-list-description.ManagementCenter`}],yA=e=>vA.map(t=>({solutionName:t.solutionName,imgSrc:t.imgSrc,isAddOn:t.isAddOn,orderAllowance:!1,soon:t.soon,withoutTrial:t.withoutTrial,description:e(t.descriptionKey),loading:!1})),bA=e=>vA.find(t=>t.solutionName.toLowerCase()===e.toLowerCase()),xA=e=>bA(e)?.routeSlug??e.toLowerCase(),SA=e=>{let t=vA.find(t=>(t.routeSlug??t.solutionName.toLowerCase())===e.toLowerCase());return t?t.solutionName:e.charAt(0).toUpperCase()+e.slice(1)},CA=e=>bA(e)?.isAddOn??!1,wA=(e,t)=>e.filter(e=>{let n=CA(e);return t===`solution`?!n:n}),TA=`data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='24'%20cy='24'%20r='24'%20fill='url(%23paint0_linear_747_42009)'/%3e%3cg%20filter='url(%23filter0_d_747_42009)'%3e%3cpath%20d='M24%2031.5516C23.2322%2031.5516%2022.4587%2031.3595%2021.8025%2030.8429L12%2023.761V33.7501C12%2034.9923%2013.0078%2036.0001%2014.25%2036.0001H33.75C34.9922%2036.0001%2036%2034.9923%2036%2033.7923V23.761L26.1984%2030.8438C25.5422%2031.3126%2024.7688%2031.5516%2024%2031.5516ZM35.1375%2019.6407C34.725%2019.3126%2034.3312%2019.0079%2033.75%2018.5673V16.4991C33.75%2015.257%2032.7422%2014.2491%2031.5%2014.2491L27.8672%2014.2492C27.7207%2014.1438%2027.5918%2014.05%2027.4395%2013.9445C26.6531%2013.3656%2025.0922%2011.9826%2024%2012.0002C22.9125%2011.9826%2021.3469%2013.3656%2020.5594%2013.9454C20.407%2014.0509%2020.2781%2014.1446%2020.1316%2014.2501H16.5C15.2578%2014.2501%2014.25%2015.2579%2014.25%2016.5001V18.5682C13.6702%2019.0079%2013.2773%2019.3126%2012.8616%2019.6407C12.3164%2020.0626%2012%2020.7188%2012%2021.4126V21.9104L16.5%2025.1621V16.5001H31.5V25.1579L36%2021.9062V21.4126C36%2020.7188%2035.6859%2020.0626%2035.1375%2019.6407ZM20.25%2023.9579H27.75C28.1642%2023.9579%2028.5%2023.6221%2028.5%2023.2501C28.5%2022.8358%2028.1642%2022.5001%2027.75%2022.5001H20.25C19.8358%2022.5001%2019.5%2022.8358%2019.5%2023.2501C19.5%2023.6626%2019.8375%2023.9579%2020.25%2023.9579ZM20.25%2020.9579H27.75C28.1642%2020.9579%2028.5%2020.6221%2028.5%2020.2079C28.5%2019.7936%2028.1642%2019.5001%2027.75%2019.5001H20.25C19.8358%2019.5001%2019.5%2019.8358%2019.5%2020.2079C19.5%2020.6626%2019.8375%2020.9579%2020.25%2020.9579Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_747_42009'%20x='8'%20y='12'%20width='32'%20height='32'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='Backgroun
2324dImageFix'%20result='effect1_dropShadow_747_42009'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_747_42009'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_747_42009'%20x1='44'%20y1='37.5'%20x2='-26'%20y2='-8'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C1C1C1'/%3e%3cstop%20offset='0.905069'%20stop-color='%23EDEDED'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,EA=`data:image/svg+xml,%3csvg%20width='56'%20height='56'%20viewBox='0%200%2056%2056'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='28'%20cy='28'%20r='28'%20fill='url(%23paint0_linear_420_6897)'/%3e%3cg%20filter='url(%23filter0_d_420_6897)'%3e%3cpath%20d='M28%2036.8102C27.1042%2036.8102%2026.2019%2036.586%2025.4362%2035.9834L14%2027.7212V39.3751C14%2040.8243%2015.1758%2042.0001%2016.625%2042.0001H39.375C40.8242%2042.0001%2042%2040.8243%2042%2039.4243V27.7212L30.5648%2035.9845C29.7992%2036.5313%2028.8969%2036.8102%2028%2036.8102ZM40.9937%2022.9142C40.5125%2022.5313%2040.0531%2022.1759%2039.375%2021.6618V19.249C39.375%2017.7998%2038.1992%2016.624%2036.75%2016.624L32.5117%2016.6241C32.3408%2016.501%2032.1904%2016.3917%2032.0127%2016.2686C31.0953%2015.5931%2029.2742%2013.9797%2028%2014.0002C26.7312%2013.9797%2024.9047%2015.5931%2023.9859%2016.2696C23.8082%2016.3927%2023.6578%2016.502%2023.4869%2016.6251H19.25C17.8008%2016.6251%2016.625%2017.8009%2016.625%2019.2501V21.6629C15.9485%2022.1759%2015.4902%2022.5313%2015.0052%2022.9142C14.3691%2023.4063%2014%2024.172%2014%2024.9813V25.5621L19.25%2029.3558V19.2501H36.75V29.3509L42%2025.5572V24.9813C42%2024.172%2041.6336%2023.4063%2040.9937%2022.9142ZM23.625%2027.9509H32.375C32.8582%2027.9509%2033.25%2027.5591%2033.25%2027.1251C33.25%2026.6418%2032.8582%2026.2501%2032.375%2026.2501H23.625C23.1418%2026.2501%2022.75%2026.6418%2022.75%2027.1251C22.75%2027.6063%2023.1438%2027.9509%2023.625%2027.9509ZM23.625%2024.4509H32.375C32.8582%2024.4509%2033.25%2024.0591%2033.25%2023.5759C33.25%2023.0925%2032.8582%2022.7501%2032.375%2022.7501H23.625C23.1418%2022.7501%2022.75%2023.1418%2022.75%2023.5759C22.75%2024.1063%2023.1438%2024.4509%2023.625%2024.4509Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_420_6897'%20x='10'%20y='14'%20width='36'%20height='36'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_420_6897'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_420_6897'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_420_6897'%20x1='51.3333'%20y1='43.75'%20x2='-30.3333'%20y2='-9.33333'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF835D'/%3e%3cstop%20offset='1'%20stop-color='%23FFD709'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,DA=`data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='24'%20cy='24'%20r='24'%20fill='url(%23paint0_linear_682_30959)'/%3e%3cg%20clip-path='url(%23clip0_682_30959)'%3e%3cpath%20d='M24%2024.75C25.63%2024.75%2027.07%2025.14%2028.24%2025.65C29.32%2026.13%2030%2027.21%2030%2028.38V30H18V28.39C18%2027.21%2018.68%2026.13%2019.76%2025.66C20.93%2025.14%2022.37%2024.75%2024%2024.75ZM16%2025C17.1%2025%2018%2024.1%2018%2023C18%2021.9%2017.1%2021%2016%2021C14.9%2021%2014%2021.9%2014%2023C14%2024.1%2014.9%2025%2016%2025ZM17.13%2026.1C16.76%2026.04%2016.39%2026%2016%2026C15.01%2026%2014.07%2026.21%2013.22%2026.58C12.48%2026.9%2012%2027.62%2012%2028.43V30H16.5V28.39C16.5%2027.56%2016.73%2026.78%2017.13%2026.1ZM32%2025C33.1%2025%2034%2024.1%2034%2023C34%2021.9%2033.1%2021%2032%2021C30.9%2021%2030%2021.9%2030%2023C30%2024.1%2030.9%2025%2032%2025ZM36%2028.43C36%2027.62%2035.52%2026.9%2034.78%2026.58C33.93%2026.21%2032.99%2026%2032%2026C31.61%2026%2031.24%2026.04%2
2324030.87%2026.1C31.27%2026.78%2031.5%2027.56%2031.5%2028.39V30H36V28.43ZM24%2018C25.66%2018%2027%2019.34%2027%2021C27%2022.66%2025.66%2024%2024%2024C22.34%2024%2021%2022.66%2021%2021C21%2019.34%2022.34%2018%2024%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_682_30959'%20x1='44'%20y1='37.5'%20x2='-26'%20y2='-8'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C1C1C1'/%3e%3cstop%20offset='0.905069'%20stop-color='%23EDEDED'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_682_30959'%3e%3crect%20width='24'%20height='24.0001'%20fill='white'%20transform='translate(12%2012)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,OA=`data:image/svg+xml,%3csvg%20width='41'%20height='40'%20viewBox='0%200%2041%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='20.5'%20cy='20'%20r='20'%20fill='url(%23paint0_linear_503_28570)'/%3e%3cg%20clip-path='url(%23clip0_503_28570)'%3e%3cpath%20d='M20.5%2020.625C21.8583%2020.625%2023.0583%2020.95%2024.0333%2021.375C24.9333%2021.775%2025.5%2022.675%2025.5%2023.65V25H15.5V23.6584C15.5%2022.675%2016.0667%2021.775%2016.9667%2021.3834C17.9417%2020.95%2019.1417%2020.625%2020.5%2020.625ZM13.8333%2020.8334C14.75%2020.8334%2015.5%2020.0834%2015.5%2019.1667C15.5%2018.25%2014.75%2017.5%2013.8333%2017.5C12.9167%2017.5%2012.1667%2018.25%2012.1667%2019.1667C12.1667%2020.0834%2012.9167%2020.8334%2013.8333%2020.8334ZM14.775%2021.75C14.4667%2021.7%2014.1583%2021.6667%2013.8333%2021.6667C13.0083%2021.6667%2012.225%2021.8417%2011.5167%2022.15C10.9%2022.4167%2010.5%2023.0167%2010.5%2023.6917V25H14.25V23.6584C14.25%2022.9667%2014.4417%2022.3167%2014.775%2021.75ZM27.1667%2020.8334C28.0833%2020.8334%2028.8333%2020.0834%2028.8333%2019.1667C28.8333%2018.25%2028.0833%2017.5%2027.1667%2017.5C26.25%2017.5%2025.5%2018.25%2025.5%2019.1667C25.5%2020.0834%2026.25%2020.8334%2027.1667%2020.8334ZM30.5%2023.6917C30.5%2023.0167%2030.1%2022.4167%2029.4833%2022.15C28.775%2021.8417%2027.9917%2021.6667%2027.1667%2021.6667C26.8417%2021.6667%2026.5333%2021.7%2026.225%2021.75C26.5583%2022.3167%2026.75%2022.9667%2026.75%2023.6584V25H30.5V23.6917ZM20.5%2015C21.8833%2015%2023%2016.1167%2023%2017.5C23%2018.8833%2021.8833%2020%2020.5%2020C19.1167%2020%2018%2018.8833%2018%2017.5C18%2016.1167%2019.1167%2015%2020.5%2015Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_503_28570'%20x1='37.1667'%20y1='31.25'%20x2='-21.1667'%20y2='-6.66667'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235D6DFF'/%3e%3cstop%20offset='1'%20stop-color='%2309D3FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_503_28570'%3e%3crect%20width='20'%20height='20.0001'%20fill='white'%20transform='translate(10.5%2010)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,kA=`data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='url(%23paint0_linear_10055_812604)'/%3e%3cpath%20d='M10.8333%2012.0002H12.1667V14.0002H18.8333V12.0002H20.1667V15.3335H21.5V12.0002C21.5%2011.2668%2020.9%2010.6668%2020.1667%2010.6668H17.38C17.1%209.8935%2016.3667%209.3335%2015.5%209.3335C14.6333%209.3335%2013.9%209.8935%2013.62%2010.6668H10.8333C10.1%2010.6668%209.5%2011.2668%209.5%2012.0002V21.3335C9.5%2022.0669%2010.1%2022.6669%2010.8333%2022.6669H14.8333V21.3335H10.8333V12.0002ZM15.5%2010.6668C15.8667%2010.6668%2016.1667%2010.9668%2016.1667%2011.3335C16.1667%2011.7002%2015.8667%2012.0002%2015.5%2012.0002C15.1333%2012.0002%2014.8333%2011.7002%2014.8333%2011.3335C14.8333%2010.9668%2015.1333%2010.6668%2015.5%2010.6668Z'%20fill='white'/%3e%3cpath%20d='M21.5%2016.3335L17.84%2020.0002L15.8333%2018.0002L14.8333%2019.0002L17.84%2022.0002L22.5%2017.3335L21.5%2016.3335Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_10055_812604'%20x1='29.3333'%20y1='25'%20x2='-17.3333'%20y2='-5.33333'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23B654EE'/%3e%3cstop%20offset='1'%20stop-color='%23F5E8FD'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,AA=`data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='24'%20cy='24'%20r='24'%20fill='url(%23paint0_linear_682_30952)'/%3e%3cpath%20d='M19.5511%2015.0661C19.9571%2015.4312%2019.9899%2016.0505%2019.6249%2016.4566L16.6718%2019.7378C16.4913%2019.9388%2016.237%2020.0577%2015.9663%2020.0618C15.6956%2020.0659%2015.4372%2019.9634%2015.2444%2019.7747L13.5997%2018.1341C13.2142%2017.7485%2013.2142%2017.1251%2013.5997%2016.7437C13.9853%2016.3622%2014.6087%2016.3581%2014.9901%2016.7437L15.8966%2017.6501L18.1565%2015.14C18.5216%2014.7339%2019.1409%2014.7011%2019.547%2015.0661H19.5511ZM19.5511%2021.6286C19.9571%2021.9937%2019.9899%2022.613%2019.6249%2023.0191L16.6718%2026.3003C16.4913%2026.5013%2016.237%2026.6202%2015.9663%2026.6243C15.6956%2026.6284%2015.4372%2026.5259%2015.2444%2026.3372L13.5997%2024.6966C13.2142%2024.311%2013.2142%2023.6876%2013.5997%2023.3062C13.9853%2022.9247%2014.6087%2022.9206%2014.9901%2023.3062L15.8966%2024.2126L18.1565%2021.7025C18.5216%2021.2964%2019.1409%2021.2636%2019.547%2021.6286H19.5511ZM22.5001%2017.4368C22.5001%2016.7109%2023.0866%2016.1243%2023.8126%2016.1243H33.0001C33.7261%2016.1243%2034.3
2324126%2016.7109%2034.3126%2017.4368C34.3126%2018.1628%2033.7261%2018.7493%2033.0001%2018.7493H23.8126C23.0866%2018.7493%2022.5001%2018.1628%2022.5001%2017.4368ZM22.5001%2023.9993C22.5001%2023.2734%2023.0866%2022.6868%2023.8126%2022.6868H33.0001C33.7261%2022.6868%2034.3126%2023.2734%2034.3126%2023.9993C34.3126%2024.7253%2033.7261%2025.3118%2033.0001%2025.3118H23.8126C23.0866%2025.3118%2022.5001%2024.7253%2022.5001%2023.9993ZM19.8751%2030.5618C19.8751%2029.8359%2020.4616%2029.2493%2021.1876%2029.2493H33.0001C33.7261%2029.2493%2034.3126%2029.8359%2034.3126%2030.5618C34.3126%2031.2878%2033.7261%2031.8743%2033.0001%2031.8743H21.1876C20.4616%2031.8743%2019.8751%2031.2878%2019.8751%2030.5618ZM15.2813%2032.5306C14.1944%2032.5306%2013.3126%2031.6487%2013.3126%2030.5618C13.3126%2029.4749%2014.1944%2028.5931%2015.2813%2028.5931C16.3683%2028.5931%2017.2501%2029.4749%2017.2501%2030.5618C17.2501%2031.6487%2016.3683%2032.5306%2015.2813%2032.5306Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_682_30952'%20x1='44'%20y1='37.5'%20x2='-26'%20y2='-8'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C1C1C1'/%3e%3cstop%20offset='0.905069'%20stop-color='%23EDEDED'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,jA=`data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='12'%20fill='url(%23paint0_linear_10148_3777)'/%3e%3cpath%20d='M11%209.88751H15.0125V9.13751H11V9.88751ZM11%2011.3875H15.0125V10.6375H11V11.3875ZM11%2012.8875H13.5V12.1375H11V12.8875ZM9.5125%2010.0125C9.65417%2010.0125%209.77292%209.96459%209.86875%209.86876C9.96458%209.77293%2010.0125%209.65418%2010.0125%209.51251C10.0125%209.37084%209.96458%209.25209%209.86875%209.15626C9.77292%209.06042%209.65417%209.01251%209.5125%209.01251C9.37083%209.01251%209.25208%209.06042%209.15625%209.15626C9.06042%209.25209%209.0125%209.37084%209.0125%209.51251C9.0125%209.65418%209.06042%209.77293%209.15625%209.86876C9.25208%209.96459%209.37083%2010.0125%209.5125%2010.0125ZM9.5125%2011.5125C9.65417%2011.5125%209.77292%2011.4646%209.86875%2011.3688C9.96458%2011.2729%2010.0125%2011.1542%2010.0125%2011.0125C10.0125%2010.8708%209.96458%2010.7521%209.86875%2010.6563C9.77292%2010.5604%209.65417%2010.5125%209.5125%2010.5125C9.37083%2010.5125%209.25208%2010.5604%209.15625%2010.6563C9.06042%2010.7521%209.0125%2010.8708%209.0125%2011.0125C9.0125%2011.1542%209.06042%2011.2729%209.15625%2011.3688C9.25208%2011.4646%209.37083%2011.5125%209.5125%2011.5125ZM9.5125%2013.0125C9.65417%2013.0125%209.77292%2012.9646%209.86875%2012.8688C9.96458%2012.7729%2010.0125%2012.6542%2010.0125%2012.5125C10.0125%2012.3709%209.96458%2012.2521%209.86875%2012.1563C9.77292%2012.0604%209.65417%2012.0125%209.5125%2012.0125C9.37083%2012.0125%209.25208%2012.0604%209.15625%2012.1563C9.06042%2012.2521%209.0125%2012.3709%209.0125%2012.5125C9.0125%2012.6542%209.06042%2012.7729%209.15625%2012.8688C9.25208%2012.9646%209.37083%2013.0125%209.5125%2013.0125ZM7%2017V7.75C7%207.55834%207.075%207.38542%207.225%207.23125C7.375%207.07708%207.55%207%207.75%207H16.25C16.4417%207%2016.6146%207.07708%2016.7688%207.23125C16.9229%207.38542%2017%207.55834%2017%207.75V14.25C17%2014.4417%2016.9229%2014.6146%2016.7688%2014.7688C16.6146%2014.9229%2016.4417%2015%2016.25%2015H9L7%2017ZM7.75%2015.1875L8.6875%2014.25H16.25V7.75H7.75V15.1875ZM7.75%207.75V15.1875V7.75Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_10148_3777'%20x1='22'%20y1='18.75'%20x2='-13'%20y2='-4'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235DD4FF'/%3e%3cstop%20offset='1'%20stop-color='%230932FF'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,MA=[{id:`Correspondence`,label:`مکاتبات`,imgSrc:{enabled:EA,disabled:TA},imgAlt:`correspondence`},{id:`Meetings`,label:`جلسات`,imgSrc:{enabled:OA,disabled:DA},imgAlt:`meeting`},{id:`Tasks`,label:`مدیریت پروژه`,imgSrc:{enabled:kA,disabled:AA},imgAlt:`tasks`},{id:`Chat`,label:`چت سازمانی`,imgSrc:{enabled:jA,disabled:`data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='12'%20cy='12'%20r='12'%20fill='url(%23paint0_linear_chat_disabled)'/%3e%3cpath%20d='M11%209.88751H15.0125V9.13751H11V9.88751ZM11%2011.3875H15.0125V10.6375H11V11.3875ZM11%2012.8875H13.5V12.137
23245H11V12.8875ZM9.5125%2010.0125C9.65417%2010.0125%209.77292%209.96459%209.86875%209.86876C9.96458%209.77293%2010.0125%209.65418%2010.0125%209.51251C10.0125%209.37084%209.96458%209.25209%209.86875%209.15626C9.77292%209.06042%209.65417%209.01251%209.5125%209.01251C9.37083%209.01251%209.25208%209.06042%209.15625%209.15626C9.06042%209.25209%209.0125%209.37084%209.0125%209.51251C9.0125%209.65418%209.06042%209.77293%209.15625%209.86876C9.25208%209.96459%209.37083%2010.0125%209.5125%2010.0125ZM9.5125%2011.5125C9.65417%2011.5125%209.77292%2011.4646%209.86875%2011.3688C9.96458%2011.2729%2010.0125%2011.1542%2010.0125%2011.0125C10.0125%2010.8708%209.96458%2010.7521%209.86875%2010.6563C9.77292%2010.5604%209.65417%2010.5125%209.5125%2010.5125C9.37083%2010.5125%209.25208%2010.5604%209.15625%2010.6563C9.06042%2010.7521%209.0125%2010.8708%209.0125%2011.0125C9.0125%2011.1542%209.06042%2011.2729%209.15625%2011.3688C9.25208%2011.4646%209.37083%2011.5125%209.5125%2011.5125ZM9.5125%2013.0125C9.65417%2013.0125%209.77292%2012.9646%209.86875%2012.8688C9.96458%2012.7729%2010.0125%2012.6542%2010.0125%2012.5125C10.0125%2012.3709%209.96458%2012.2521%209.86875%2012.1563C9.77292%2012.0604%209.65417%2012.0125%209.5125%2012.0125C9.37083%2012.0125%209.25208%2012.0604%209.15625%2012.1563C9.06042%2012.2521%209.0125%2012.3709%209.0125%2012.5125C9.0125%2012.6542%209.06042%2012.7729%209.15625%2012.8688C9.25208%2012.9646%209.37083%2013.0125%209.5125%2013.0125ZM7%2017V7.75C7%207.55834%207.075%207.38542%207.225%207.23125C7.375%207.07708%207.55%207%207.75%207H16.25C16.4417%207%2016.6146%207.07708%2016.7688%207.23125C16.9229%207.38542%2017%207.55834%2017%207.75V14.25C17%2014.4417%2016.9229%2014.6146%2016.7688%2014.7688C16.6146%2014.9229%2016.4417%2015%2016.25%2015H9L7%2017ZM7.75%2015.1875L8.6875%2014.25H16.25V7.75H7.75V15.1875ZM7.75%207.75V15.1875V7.75Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_chat_disabled'%20x1='22'%20y1='18.75'%20x2='-13'%20y2='-4'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C1C1C1'/%3e%3cstop%20offset='0.905069'%20stop-color='%23EDEDED'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`},imgAlt:`chat`}],NA=B()(e=>({listItem:{padding:e.spacing(.5,1.25),height:`40px`,"& img":{width:`24px`,height:`24px`,marginLeft:e.spacing(1)},"& button":{"& svg":{fontSize:`0.80em`}}},collapseWrapper:{borderRight:`1px dashed ${e.palette.text.lightGray} `},collapseBox:{margin:e.spacing(0,1.5),background:`#f5f5f5`,borderRadius:e.spacing(1),"& div":{"&:hover":{borderRadius:e.spacing(1)}}},noActiveSolution:{margin:e.spacing(.5),borderRadius:e.spacing(1),width:`unset`,padding:e.spacing(.5,2,0,0)},typography:{fontSize:`12px`,color:e.palette.text.gray,whiteSpace:`pre-wrap`,marginRight:e.spacing(.5),textAlign:`center`,background:`#f5f5f5`,padding:e.spacing(.2),borderRadius:e.spacing(.8)}})),PA=({open:e,orders:t,security:n})=>{let{stylesGenerator:r}=Fk(),{classes:i}=B()(r)(),{t:a}=Ye(),o=h(),{availableSolutions:s}=t,c=D(),[u,p]=J.useState(!0),m=()=>{p(!u)},{classes:g,cx:_}=NA(),v=(e,t)=>{switch(e.preventDefault(),e.stopPropagation(),t){case`Correspondence`:return c(`/organizations/${o.organizationId}/correspondence/active?tab=correspondence-in-progress`);case`Meetings`:return c(`/organizations/${o.organizationId}/meetings`);case`Tasks`:return c(`/organizations/${o.organizationId}/projects`);case`Chat`:return c(`/organizations/${o.organizationId}/chat`);default:break}},y=(e,t)=>{switch(e.preventDefault(),e.stopPropagation(),t){case`Correspondence`:c(`/organizations/${o.organizationId}/settings/correspondence`);break;case`Meetings`:c(`/organizations/${o.organizationId}/settings/meetings`);break;case`Tasks`:c(`/organizations/${o.organizationId}/settings/tasks`);break;case`Chat`:c(`/organizations/${o.organizationId}/settings/chat`);break;default:break}},b=e=>{switch(e){case`Correspondence`:return n?.correspondenceAdmin;case`Meetings`:return n?.meetingsAdmin;case`Tasks`:return n?.tasksAdmin;case`Chat`:return n.solutions;default:break}};return d(f,{children:[d(Lk,{style:{width:`unset`,borderRadius:`8px`,margin:`4px 10px`},onClick:m,className:_({[i.ListItem]:e,[i.miniListItem]:!e}),children:[!e&&l(G,{className:i.miniSidebarItem,children:l(Iv,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(Iv,{className:`itemIcon`})}),l(Xr,{primary:a(`solutions.labels.solutions`)}),l(u?gv:hi,{onClick:m,className:`arrowIcon`})]})]}),d(gr,{in:e&&u,timeout:`auto`,unmountOnExit:!0,className:_(i.CollapseItem,g.noActiveSolution),classes:{wrapper:g.collapseWrapper},children:[s.data?.length>0&&l(Gr,{component:`div`,disablePadding:!0,className:g.collapseBo
2324x,children:s.data.map(e=>{let t=MA.find(t=>t.id===e);return t?d(Lk,{button:!0,id:t.id,onClick:e=>v(e,t.id),className:g.listItem,children:[l(`img`,{src:t.imgSrc.enabled,alt:t.imgAlt}),l(Xr,{primary:a(`solutions.labels.${t.id}`),className:i.ListItemText2}),l(ui,{security:b(t.id),onClick:e=>y(e,t.id),children:l(fy,{})})]},t.id):null})}),s.status===`loading`&&!s.data?.length&&l(St,{className:g.typography,children:a(`solutions.labels.loading`)}),s.status!==`loading`&&!wA(s.data??[],_A.SOLUTION)?.length&&l(St,{className:g.typography,children:a(`solutions.labels.no-solutions`)})]})]})},FA=e=>{let{organization:t,orders:n}=e;return{organization:t,orders:n}};PA.propTypes={open:Z.default.bool.isRequired,organization:Z.default.shape({selectedOrganization:Z.default.shape({owner:Z.default.shape({id:Z.default.string})})}).isRequired,security:Gk.isRequired};var IA=Ze(FA,{})(PA),LA=({hidden:e,security:t,disabled:n,...r})=>{let i=t?.disabled?`disabledSecurity`:``;return l(f,{children:!e&&!t?.hidden&&l(ip,{disabled:n||t?.disabled,className:i,...r,children:r.children})})},RA=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=Ik(),o=()=>{e(!1),i(`/administration`)},{t:s}=Ye();return d(LA,{onClick:o,className:a===`/administration`?r.selectedSidebarItem:``,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Q_,{})}),l(Xr,{primary:s(`administration.labels.administration-dashboard`)})]})},zA=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=Ik(),o=()=>{e(!1),i(`/administration/orders`)},{t:s}=Ye();return d(LA,{onClick:o,className:a===`/administration/orders`?r.selectedSidebarItem:``,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(cy,{})}),l(Xr,{primary:s(`administration.labels.orders`)})]})},BA=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=Ik(),o=()=>{e(!1),i(`/administration/assignment-of-discounts-management`)},{t:s}=Ye();return d(LA,{onClick:o,className:a===`/administration/assignment-of-discounts-management`?r.selectedSidebarItem:``,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Qv,{})}),l(Xr,{primary:s(`administration.labels.discount-codes-management`)})]})},VA=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h();return d(LA,{onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/meetings/all-meetings-organization`)},className:Ik()===`/organizations/meetings/all-meetings-organization`?r.selectedSidebarItem:``,security:t?.allMeetingsOrganization,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Ov,{className:`itemIcon`})}),l(Xr,{primary:`همه جلسات سازمان`})]})},HA=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h();return d(LA,{onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/meetings/meetings-management`)},className:Ik()===`/organizations/meetings/meetings-management`?r.selectedSidebarItem:``,security:t?.meetingsAdmin,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(py,{className:`itemIcon`})}),l(Xr,{primary:`مدیریت راهکار جلسات`})]})},UA=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h();return d(LA,{onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/meetings`)},className:Ik()===`/organizations/meetings`?r.selectedSidebarItem:``,security:t?.meetingsAdmin,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Qee,{className:`itemIcon`})}),l(Xr,{sx:{marginLeft:`8px`},primary:`جلسات من`})]})},WA=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/correspondence/correspondence-management/all-forwarded-letter`)},className:o===`/organizations/correspondence/correspondence-management/all-forwarded-letter`?r.selectedSidebarItem:``,security:t?.manageAllForwardedLetters,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Jv,{className:`itemIcon`})}),l(Xr,{primary:s(`correspondence.management.all-forwarded-letter`)})]})}),GA=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h(),o=Ik();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/correspondence/active?tab=correspondence-in-progress`)},className:o===`/organizations/correspondence`||o===`/organizations/correspondence/active`||o===`/organizations/correspondence/ended`?r.selectedSidebarItem:``,security:t?.cartable,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Kv,{className:`itemIcon`})}),l(Xr,{primary:`کارتابل`})]})},KA=e=>{let{organization:t}=e;return{organization:t}};GA.propTypes={toggleDrawerMenu:Z.default.func.isRequired};var qA=Ze(KA,{})(GA),JA=({toggleDrawerMenu:e})=>{let{stylesGenerator:t}=Fk(),{classes:n}=B()(t)(),r=D(),i=h(),a=Ik(P());return d(Kr,{button:!0,onClick:()=>{e(!1),r(`/organizations/${i.organizationId}/contacts`)},className:a===`/organizations/contacts`?n.selectedSidebarItem:``,children:[l(sp,{classes:{root:n.menuListItemIcon},children:l(a===`/organizations/contacts`?$v:ey,{className:`itemIcon`})}),l(Xr,{primary:`مدیریت مخاطبان`})]})},YA=e=>{let{organization:t}=e;return{organization:t}};JA.propTypes={toggleDrawerMenu:Z.default.func.isRequired};var XA=Ze(YA,{})(JA),ZA=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/correspondence/correspondence-management`)},className:o===`/organizations/correspondence/correspondence-management`?r.selectedSidebarItem:``,security:t?.manageCorrespondence,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(fy,{className:`itemIcon`})}),l(Xr,{primary:s(`correspondence.management.correspondence-management`)})]})}),QA=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/correspondence/ece-letters`)},className:Ik()===`/organizations/correspondence/ece-letters`?r.selectedSidebarItem:``,security:t?.eceLetters,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Jv,{className:`itemIcon`})}),l(Xr,{primary:`نامه‌های ECE`})]})}),$A={solutions:{strategy:Nk.SIDEBAR.SOLUTIONS,behavior:zk.hidden},employee:{strategy:Nk.SIDEBAR.EMPLOYEES,behavior:zk.hidden},organizationProfile:{strategy:Nk.SIDEBAR.ORGANIZATION_PROFILE,behavior:zk.hidden},organiztions:{strategy:Nk.SIDEBAR.ORGANIZATION_PROFILE,behavior:zk.hidden},managementCenterAdmins:{strategy:Nk.SIDEBAR.MANAGEMENT_CENTER_ADMINS,behavior:zk.hidden},correspondenceAdmin:{strategy:Nk.SIDEBAR.CORRESPONDENCE_ADMINS,behavior:zk.hidden},meetingsAdmin:{strategy:Nk.SIDEBAR.MEETINGS_ADMINS,behavior:zk.hidden},allMeetingsOrganization:{strategy:Nk.SIDEBAR.MEETINGS_ADMINS,behavior:zk.hidden},cartable:{strategy:Nk.SIDEBAR.CARTABLE,behavior:zk.disabled},active:{strategy:Nk.SIDEBAR.ACTIVE,behavior:zk.disabled},ended:{strategy:Nk.SIDEBAR.ENDED,behavior:zk.disabled},forwarded:{strategy:Nk.SIDEBAR.FORWARDED,behavior:zk.disabled},receipted:{strategy:Nk.SIDEBAR.RECEIPTED,behavior:zk.disabled},composeECE:{strategy:Nk.SIDEBAR.COMPOSE_ECE,behavior:zk.disabled},manageSecretariats:{strategy:Nk.SIDEBAR.MANAGE_SECRETARIATS,behavior:zk.hidden},manageCorrespondence:{strategy:Nk.SIDEBAR.MANAGE_CORRESPONDENCE,behavior:zk.hidden},manageForwardAccess:{strategy:Nk.SIDEBAR.MANAGE_FORWARD_ACCESS,behavior:zk.hidden},manageAllForwardedLetters:{strategy:Nk.SIDEBAR.MANAGE_ALL_FORWARDED_LETTERS,behavior:zk.hidden},organizationDocumentsList:{strategy:Nk.SIDEBAR.MANAGEMENT_CENTER_DOCUMENTS_LIST,behavior:zk.hidden},chatAdmin:{strategy:Nk.SIDEBAR.CHATS_ADMINS,behavior:zk.hidden},tasksAdmin:{strategy:Nk.SIDEBAR.TASKS_ADMINS,behavior:zk.hidden}},ej=e=>Vk({schema:$A})(e),tj=Z.default.shape({disabled:Z.default.bool.isRequired,hidden:Z.default.bool.isRequired,allow:Z.default.bool.isRequired}),nj=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/correspondence/forwardedBy`)},className:Ik()===`/organizations/correspondence/forwardedBy`?r.selectedSidebarItem:``,security:t?.forwarded,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Nv,{className:`itemIcon`})}),l(Xr,{primary:`ارجاع شده`})]})},rj=e=>{let{organization:t}=e;return{organization:t}};nj.propTypes={toggleDrawerMenu:Z.default.func.isRequired,security:tj.isRequired};var ij=Ze(rj,{})(nj),aj=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/correspondence/correspondence-management/forward-access`)},className:o===`/organizations/correspondence/correspondence-management/forward-access`?r.selectedSidebarItem:``,security:t?.manageForwardAccess,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Jv,{className:`itemIcon`})}),l(Xr,{primary:s(`correspondence.management.forward-access`)})]})}),oj=({toggleDrawerMenu:e,organization:t,security:n,correspondenceAuthz:r})=>{let{stylesGenerator:i}=Fk(),{classes:a}=B()(i)(),o=h(),s=P(),c=D(),u=Ik(s.pathname),{t:p}=Ye();return l(f,{children:d(Lk,{button:!0,onClick:()=>{e(!1),c(`/organizations/${o.organizationId}/correspondence/correspondence-management/secretariats`)},className:u===`/organizations/correspondence/correspondence-management/secretariats`?a.selectedSidebarItem:``,security:n?.manageSecretariats,children:[l(sp,{classes:{root:a.menuListItemIcon},children:l(Wv,{className:`itemIcon`})}),l(Xr,{primary:p(`correspondence.management.secretariats-management`)})]})})},sj=e=>{let{organization:t}=e;return{organization:t}};oj.propTypes={toggleDrawerMenu:Z.default.func.isRequired,organization:Z.default.shape({selectedOrganization:Z.default.shape({owner:Z.default.shape({id:Z.default.string})})}).isRequired,security:tj.isRequired};var cj=Ze(sj,{})(oj),lj=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e})=>{let{stylesGenerator:t}=Fk(),{classes:n}=B()(t)(),r=h(),i=D(),a=Ik(),{t:o}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${r.organizationId}/calendar`)},className:a===`/organizations/calendar`?n.selectedSidebarItem:``,children:[l(sp,{classes:{root:n.menuListItemIcon},children:l(V_,{className:`itemIcon`})}),l(Xr,{primary:o(`organization-dashboard.labels.organization-calendar`)})]})}),uj=({toggleDrawerMenu:e})=>{let{stylesGenerator:t}=Fk(),{classes:n}=B()(t)(),r=h(),i=D(),a=Ik(),{t:o}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${r.organizationId}`)},className:a===`/organizations`?n.selectedSidebarItem:``,children:[l(sp,{classes:{root:n.menuListItemIcon},children:l(my,{className:`itemIcon`})}),l(Xr,{primary:o(`organization-dashboard.labels.organization-dashboard`)})]})},Pne=e=>{let{organization:t}=e;return{organization:t}};uj.propTypes={toggleDrawerMenu:Z.default.func.isRequired};var dj=Ze(Pne,{})(uj),fj=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e})=>{let{stylesGenerator:t}=Fk(),{classes:n}=B()(t)(),r=h(),i=D(),a=Ik(),{t:o}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${r.organizationId}/dashboard`)},className:a===`/organizations/dashboard`?n.selectedSidebarItem:``,children:[l(sp,{classes:{root:n.menuListItemIcon},children:l(Q_,{className:`itemIcon`})}),l(Xr,{primary:o(`organization-dashboard.labels.dashboard`)})]})}),pj=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e})=>{let{stylesGenerator:t}=Fk(),{classes:n}=B()(t)(),r=D(),i=h(),a=Ik(),{t:o}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),r(`/organizations/${i.organizationId}/organization-settings`)},className:a===`/organizations/organization-settings`?n.selectedSidebarItem:``,children:[l(sp,{classes:{root:n.menuListItemIcon},children:l(py,{className:`itemIcon`})}),l(Xr,{primary:o(`organization.labels.settings`)})]})}),mj=({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/correspondence/receipted`)},className:Ik()===`/organizations/correspondence/receipted`?r.selectedSidebarItem:``,security:t?.forwarded,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(rte,{className:`itemIcon`})}),l(Xr,{primary:`رسید شده`})]})},hj=e=>{let{organization:t}=e;return{organization:t}};mj.propTypes={toggleDrawerMenu:Z.default.func.isRequired,security:tj.isRequired};var gj=Ze(hj,{})(mj),_j=({open:e})=>{let{stylesGenerator:t}=Fk(),{classes:n,cx:r}=B()(t)(),i=Ik(),{t:a}=Ye();return d(Lk,{button:!0,component:S,to:`/administration`,className:r({[n.ListItem]:e,[n.miniListItem]:!e},i===`/administration`?n.selectedSidebarItem:``),children:[!e&&l(Q_,{}),e&&d(f,{children:[l(sp,{children:l(Q_,{})}),l(Xr,{primary:a(`administration.labels.administration-dashboard`)})]})]})},vj=({open:e})=>{let{stylesGenerator:t}=Fk(),{classes:n,cx:r}=B()(t)(),i=Ik(),{t:a}=Ye();return d(Lk,{button:!0,component:S,to:`/administration/orders`,className:r({[n.ListItem]:e,[n.miniListItem]:!e},i===`/administration/orders`?n.selectedSidebarItem:``),children:[!e&&l(cy,{}),e&&d(f,{children:[l(sp,{children:l(cy,{})}),l(Xr,{primary:a(`administration.labels.orders`)})]})]})},yj=({open:e})=>{let{stylesGenerator:t}=Fk(),{classes:n,cx:r}=B()(t)(),i=Ik(),{t:a}=Ye();return d(Lk,{button:!0,component:S,to:`/administration/assignment-of-discounts-management`,className:r({[n.ListItem]:e,[n.miniListItem]:!e},i===`/administration/assignment-of-discounts-management`?n.selectedSidebarItem:``),children:[!e&&l(Qv,{}),e&&d(f,{children:[l(sp,{children:l(Qv,{})}),l(Xr,{primary:a(`administration.labels.discount-codes-management`)})]})]})},bj=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({open:e,security:t})=>{let{t:n}=Ye(),{stylesGenerator:r}=Fk(),{classes:i,cx:a}=B()(r)(),o=h(),s=Ik();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/forward-access`,className:a({[i.ListItem]:e,[i.miniListItem]:!e},s===`/organizations/correspondence/correspondence-management/forward-access`?i.selectedSidebarItem:``),security:t?.manageForwardAccess,children:[!e&&l(G,{component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/forward-access`,className:i.miniSidebarItem,children:l(fy,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(py,{className:`itemIcon`})}),l(Xr,{primary:n(`sidebar.correspondence.forward-access-registry`)})]})]})})}),xj=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({open:e,security:t})=>{let{stylesGenerator:n}
2324=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a}=h(),o=Ik(),{t:s}=Ye();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${a}/correspondence/correspondence-management/secretariats`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/correspondence/correspondence-management/secretariats`?r.selectedSidebarItem:``),security:t?.manageCorrespondence,children:[!e&&l(G,{component:S,to:`/organizations/${a}/correspondence/correspondence-management/secretariats`,className:r.miniSidebarItem,children:l(py,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(py,{className:`itemIcon`})}),l(Xr,{primary:s(`correspondence.management.correspondence-management`)})]})]})})}),Sj=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({open:e,security:t})=>{let{t:n}=Ye(),{stylesGenerator:r}=Fk(),{classes:i,cx:a}=B()(r)(),o=h(),s=Ik();return d(f,{children:[d(Lk,{button:!0,component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/reports/all-forwarded-letter`,security:t?.sidebarCorrespondenceReports,className:a({[i.ListItem]:e,[i.miniListItem]:!e},s===`/organizations/correspondence/correspondence-management/reports`?i.selectedSidebarItem:``),children:[!e&&l(G,{component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/reports/all-forwarded-letter`,className:i.miniSidebarItem,children:l(Vv,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(Vv,{className:`itemIcon`})}),l(Xr,{primary:n(`sidebar.correspondence.reports`)})]})]}),e&&d(q,{sx:{borderLeft:`1px dashed`,marginLeft:2,borderColor:e=>e.palette.text.lightGray},children:[l(Lk,{button:!0,component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/reports/all-forwarded-letter`,className:a(i.SubListItem,i.ListItem,s===`/organizations/correspondence/correspondence-management/reports/all-forwarded-letter`?i.selectedSidebarItem:``),security:t?.manageAllForwardedLetters,children:l(Xr,{primary:n(`sidebar.correspondence.forwarded-letter`)})}),l(Lk,{button:!0,component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/reports/references-reports`,className:a(i.SubListItem,i.ListItem,s===`/organizations/correspondence/correspondence-management/reports/references-reports`?i.selectedSidebarItem:``),security:t?.sidebarCorrespondenceReferenceUsagesReports,children:l(Xr,{primary:n(`sidebar.correspondence.organization-reference`)})})]})]})}),Cj=B()(e=>({bottom:{bottom:e.spacing(1.5)},divider:{margin:e.spacing(1,0,3)}})),wj=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),{classes:i,cx:a}=Cj(),{organizationId:o}=h(),s=Ik();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${o}/meetings/all-meetings-organization`,className:a({[r.ListItem]:e,[r.miniListItem]:!e,[i.bottom]:e},s===`/organizations/meetings/all-meetings-organization`?r.selectedSidebarItem:``),security:t?.allMeetingsOrganization,children:[!e&&l(G,{component:S,to:`/organizations/${o}/meetings/all-meetings-organization`,className:r.miniSidebarItem,children:l(Ov,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(Ov,{className:`itemIcon`})}),l(Xr,{primary:`  همه جلسات سازمان`})]})]})})},Tj=()=>{let{t:e}=Ye(),t=h(),n=D(),{organizationId:r}=t;return l(fi,{variant:`outlined`,startIcon:l(Bu,{}),onClick:()=>{n(`organizations/${r}/meetings`)},children:e(`meetings.labels.back_to_meetings_cartable`)})},Ej=e=>{let[t,n]=(0,J.useState)([]),[r,i]=(0,J.useState)([]);return(0,J.useEffect)(()=>{if(e.delete?.status===`idle`&&e.delete?.success){let t=e.delete.data;n(e=>e.filter(e=>e.id!==t?.id)),i(e=>e.filter(e=>e.id!==t?.id))}},[e.delete]),(0,J.useEffect)(()=>{if(e.update?.status===`idle`&&e.update?.success&&e.update?.data){let t=e.update.data;n(e=>e.map(e=>e.id===t.id?t:e)),i(e=>e.map(e=>e.id===t.id?t:e))}},[e.update]),{selectedTags:t,originalTags:r,setSelectedTags:n,setOriginalTags:i}},Dj=r(Di()),Oj=Dj.default.object({title:Dj.default.string().required().min(1).max(100).messages({"string.empty":`عنوان برچسب الزامی است`,"string.min":`عنوان برچسب باید حداقل 1 کاراکتر باشد`,"string.max":`عنوان برچسب نباید بیشتر از 100 کاراکتر باشد`,"any.required":`عنوان برچسب الزامی است`}),color:Dj.default.string().pattern(/^#[0-9A-Fa-f]{6}$/).required().messages({"string.pattern.base":`رنگ پس‌زمینه باید فرمت hex معتبر باشد (مثال: #FF0000)`,"any.required":`رنگ پس‌زمینه الزامی است`}),textColor:Dj.default.string().pattern(/^#[0-9A-Fa-f]{6}$/).required().messages({"string.pattern.base":`رنگ متن باید فرمت hex معتبر باشد (مثال: #000000)`,"any.required":`رنگ متن الزامی است`}),organizationId:Dj.default.string().uuid().required().messages({"string.guid":`شناسه سازمان باید یک UUID معتبر باشد`,"any.required":`شناسه سازمان الزامی است`})}),kj=Dj.default.object({letterId:Dj.default.string().uuid().required().messages({"string.guid":`شناسه نامه باید یک UUID معتبر باشد`,"any.required":`شناسه نامه الزامی است`}),tags:Dj.default.array().items(Dj.default.object({id:Dj.default.string().uuid().required().messages({"string.guid":`شناسه برچسب باید یک UUID معتبر باشد`,"any.required":`شناسه برچسب الزامی است`}),action:Dj.default.string().valid(`add`,`remove`).required().messages({"any.only":`عملیات برچسب باید یکی از مقادیر add یا remove باشد`,"any.required":`عملیات برچسب الزامی است`})})).required().messages({"any.required":`لیست برچسب‌ها الزامی است`})}),Aj=`/api/v1/`,jj=()=>({progress:{loaded:0,total:0,percent:0},status:`idle`,error:null,data:null,abortController:new AbortController}),Mj=()=>({progress:{loaded:0,total:0,percent:0},status:`idle`,error:null,data:null,abortController:new AbortController}),Nj=e=>`data`in e,Pj=e=>{if(`message`in e&&e.message)return e.message;if(e.meta&&`message`in e.meta&&e.meta.message)return e.meta.message;if(Nj(e)&&e.data?.meta?.message)return e.data.meta.message;let t=e.meta?.messages??(Nj(e)?e.data?.meta?.messages:void 0);if(Array.isArray(t)&&t.length>0){let e=t[0];return e.exception??e.message??JSON.stringify(e)}return null}
2324,Fj=e=>{if(e instanceof Error){let t=e.name===`CanceledError`||e.message===`canceled`||e.code===`ERR_CANCELED`;return{isCancel:t,message:t?null:e.message}}return typeof e==`string`?{isCancel:e===`canceled`,message:e}:{isCancel:!1,message:null}},Ij=()=>{let[e,t]=(0,J.useState)({}),[n,r]=(0,J.useState)({}),i=(0,J.useRef)({}),a=(0,J.useRef)({}),o=(0,J.useCallback)(async({key:e,fileData:n,headers:r={}})=>{i.current[e]&&(i.current[e].abort(),delete i.current[e]);let a=new AbortController;i.current[e]=a,t(t=>({...t,[e]:{...jj(),status:`uploading`,abortController:a}}));try{let o=await V({options:{apiVersion:Aj,domainRoot:`documents`,method:`uploadDocuments`,onUploadProgress:n=>{let r=Math.round(n.loaded*100/(n.total??1));t(t=>{let i=t[e];return!i||i.status!==`uploading`?t:{...t,[e]:{...i,progress:{loaded:n.loaded,total:n.total??0,percent:r}}}})},abortController:a},data:n,headers:{"Content-Type":`multipart/form-data`,...r}}),s=Pj(o),c=Nj(o)?o.data?.meta??o.meta?.messages??null:o.meta?.messages??null,l=Nj(o)?o.data:null,u=Nj(o)&&o.success===!0;return t(t=>({...t,[e]:{...t[e],status:u?`completed`:`error`,data:u?l??null:null,error:u?null:s}})),delete i.current[e],{success:u,message:s,data:l??null,meta:c}}catch(n){let r=Fj(n);return t(t=>({...t,[e]:{...t[e],status:r.isCancel?`canceled`:`error`,error:r.message}})),delete i.current[e],{success:!1,meta:{messages:r.isCancel?[]:[{exception:r.message??`Unknown error`}]},data:null}}},[]),s=(0,J.useCallback)(e=>{let n=i.current[e];n&&(n.abort(),delete i.current[e]),t(t=>{let n=t[e];return n?{...t,[e]:{...n,status:`canceled`,error:null}}:t})},[]);return{upload:o,cancelUpload:s,cancelAllUploads:(0,J.useCallback)(()=>{Object.keys(i.current).forEach(e=>{s(e)})},[s]),resetUpload:(0,J.useCallback)(e=>{delete i.current[e],t(t=>{let{[e]:n,...r}=t;return r})},[]),getUploadState:(0,J.useCallback)(t=>e[t],[e]),uploads:e,download:(0,J.useCallback)(async({key:e,fileId:t,headers:n={},responseType:i=`blob`})=>{a.current[e]&&(a.current[e].abort(),delete a.current[e]);let o=new AbortController;a.current[e]=o,r(t=>({...t,[e]:{...Mj(),status:`downloading`,abortController:o}}));try{let s=await V({options:{apiVersion:Aj,domainRoot:`documents`,method:`documents`,path:`${t}`,responseType:i,onDownloadProgress:t=>{let n=Math.round(t.loaded*100/(t.total??1));r(r=>{let i=r[e];return!i||i.status!==`downloading`?r:{...r,[e]:{...i,progress:{loaded:t.loaded,total:t.total??0,percent:n}}}})},abortController:o},headers:n}),c=Pj(s);if(!(Nj(s)&&s.success===!0)){let t=c??`Download failed`;throw r(n=>({...n,[e]:{...n[e],status:`error`,error:t,data:null}})),delete a.current[e],Error(t)}let l=s.data;return r(t=>({...t,[e]:{...t[e],status:`completed`,data:l,error:null}})),delete a.current[e],s}catch(t){let n=Fj(t);throw r(t=>({...t,[e]:{...t[e],status:n.isCancel?`canceled`:`error`,error:n.message,data:null}})),delete a.current[e],t}},[]),cancelDownload:(0,J.useCallback)(e=>{let t=a.current[e];t&&(t.abort(),delete a.current[e]),r(t=>{let n=t[e];return n?{...t,[e]:{...n,status:`canceled`,error:null}}:t})},[]),resetDownload:(0,J.useCallback)(e=>{delete a.current[e],r(t=>{let{[e]:n,...r}=t;return r})},[]),getDownloadState:(0,J.useCallback)(e=>n[e],[n]),downloads:n}};function Lj(e){return e?.flatMap(e=>e?.meta?.messages??[])?.find(e=>e?.exception===`SolutionQuotaException`)}var Rj={entityId:`X-Entity-ID`,extendedType:`X-Extended-Type`,domain:`X-Domain`,organizationId:`X-Organization-ID`,position:`X-Position-ID`},zj=e=>{let t=h(),{selectedPosition:n}=hg(),{upload:r,uploads:i,cancelUpload:a,cancelAllUploads:o}=Ij();return{uploadDocument:async(i=[],a,o)=>{let s={},c={};try{i.forEach(e=>{let r=ge();if(c[r]=e,e&&!(`id`in e)){let i=new FormData;i.append(`file`,e),t?.organizationId&&i.append(`organization`,JSON.stringify({id:t?.organizationId})),n?.position?.id&&i.append(`position`,JSON.stringify({id:n?.position?.id})),s[r]={correlationId:r,data:i,fileName:e.name}}});let l={},u=Bj({domain:e.domain,organizationId:t?.organizationId,position:n?.position?.id,extendedType:a,entityId:o}),d=[];for(let e of Object.values(s)){let t=await r({key:e.correlationId,fileData:e.data,headers:Vj(u,Rj)});l[e.correlationId]=t,d.push(t)}let f=[],p=!0;
2324Object.entries(c).forEach(([e,t])=>{let n=l[e];if(!n)f.push({data:t,correlationId:e});else{let r={};if(!n?.success)p=!1,r=t;else{let e=n?.data&&n.data[0]||{},i=t,a=i?.name??e?.name,o=i?.key??e?.key;r={...i,...e,name:a,key:o}}f.push({data:r,correlationId:e,success:n?.success,error:n?.meta?.messages??[]})}});let m=Lj(d);return{success:p,uploadedList:f,solutionQuotaException:m}}catch{return{success:!1,uploadedList:[],solutionQuotaException:void 0}}},uploads:i,cancelUpload:a,cancelAllUploads:o}},Bj=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!=null&&t!==``));function Vj(e,t){let n={};for(let[r,i]of Object.entries(t)){let t=e[r];t!=null&&t!==``&&(n[i]=t)}return n}var Hj=`/api/v1/`,Uj=async(e,t,n)=>{let r=new AbortController,i=!1,a=0,o=0,s={pause:()=>{i=!0},resume:()=>{i=!1},abort:()=>{r.abort()},get isPaused(){return i}},c=(await Wj(e,r,e=>{if(i)return;a=e.loaded,o=e.total||0;let t={loaded:a,total:o,percentage:o>0?Math.round(a/o*100):0};n?.(t)})).data,l=document.createElement(`a`);document.body.appendChild(l),l.style.display=`none`;let u=window.URL.createObjectURL(c);return l.href=u,l.download=t,l.click(),window.URL.revokeObjectURL(u),document.body.removeChild(l),{controller:s,finalProgress:{loaded:a,total:o,percentage:100}}},Wj=async(e,t,n)=>await V({options:{apiVersion:Hj,domainRoot:`documents`,method:`documents`,path:e,responseType:`blob`,onDownloadProgress:n,abortController:t}}),Gj=(e,t)=>{let n=new URLSearchParams(e.search),r={};n.forEach((e,t)=>{r[t]=e});let i=t(r),a=new URLSearchParams;
2324return Object.keys(i).forEach(e=>{a.set(e,i[e])}),`${e.pathname}?${a.toString()}`},Kj=e=>({security:t,...n})=>{let[r,i]=(0,J.useState)(!0),{organizationId:a}=h(),{signedInUser:o}=xc(),{hasAccess:s,securityLoading:c,getMeetingsAdminPermissions:u,getActiveSolutions:d,getAvalaibleSolutions:p}=yc(),m=D();(0,J.useEffect)(()=>{g()},[]);let g=async()=>{i(()=>!0),await u({userId:o.id,organizationId:a}),await p({userId:o.id,organizationId:a}),await d({organizationId:a}),i(()=>!1)};return c.activeSolutions||c.availableSolutions||c.meetingsAuthz||c.owner||r?l(Oi,{}):s(t?.strategy,`Meetings`)?l(e,{...n}):(m(`/organizations/forbidden`),l(f,{}))},qj=()=>e=>t=>l(e,{__oldProps:t}),Jj=(e,t,n,r)=>i=>qj()(Ze(t,n)(t=>{let{__oldProps:n,...a}=t;return l(i,{...n,[e]:r(a)})})),Yj=Jj(`dataProvider`,e=>({meetings:e.meetings,positions:e.positions,profile:e.profile,employees:e.employees,contacts:e.letters.contactsOrganization}),{meetingLocationsAsync:ET,createMeetingAsync:lT,getOrganizationContactGroupsAsync:hw,organizationEmployeesListAsync:bi,contactsOrganizationAsync:Qx,addEmployeeParticipatesAsync:xT,removeEmployeeParticipatesAsync:ST,addContactParticipatesAsync:CT,removeContactParticipatesAsync:wT,getOrganizationPositionsReset:Ci,getOrganizationPositionsAsync:Ti,organizationEmployeeContactsAsync:yi,organizationEmployeeContactsReset:xi,organizationEmployeeListReset:_i,contactsOrganizationReset:RS,meetingLocationsReset:IT},e=>{let{addEmployeeParticipatesAsync:t,removeEmployeeParticipatesAsync:n,addContactParticipatesAsync:r,removeContactParticipatesAsync:i,getOrganizationPositionsReset:a,getOrganizationPositionsAsync:o,organizationEmployeeContactsReset:s,organizationEmployeeContactsAsync:c,organizationEmployeeListReset:l,organizationEmployeesListAsync:u,contactsOrganizationReset:d,contactsOrganizationAsync:f,meetingLocationsReset:p,meetingLocationsAsync:m,meetings:h,createMeetingAsync:g,positions:_,profile:v,employees:y,contacts:b}=e;return{meetingsLocations:{data:h.meetingLocations.data??[],loading:h.meetingLocations.status===`pending`,get:m,reset:p},meeting:{data:h.createMeeting?.data,loading:h.createMeeting?.status===`pending`,status:h.createMeeting?.status,insert:g},positions:{data:_?.positionsUser?.data,loading:_?.positionsUser?.status===`pending`},userProfile:{data:v?.userProfile?.data,loading:v?.userProfile?.status===`pending`},contacts:{data:b?.data,status:b?.status,get:f,reset:d},employees:{data:y?.organizationEmployeesList?.data,status:y?.organizationEmployeesList?.status,get:u,reset:l},employeeContacts:{data:y?.organizationEmployeeContacts?.data,status:y?.organizationEmployeeContacts?.status,get:c,reset:s},organizationPositions:{data:_?.organizationPositions.data,status:_?.organizationPositions?.status,get:o,reset:a},addingEmployeeParticipatesThunk:{data:h.addEmployeeParticipates.data,status:h.addEmployeeParticipates.status,add:t},removingEmployeeParticipatesThunk:{data:h.removeEmployeeParticipates.data,status:h.removeEmployeeParticipates.status,remove:n},addingContactParticipatesThunk:{data:h.addContactParticipates.data,status:h.addContactParticipates.status,add:r},removingContactParticipatesThunk:{data:h.removeContactParticipates.data,status:h.removeContactParticipates.status,remove:i}}}),Xj=e=>{let[t,n]=(0,J.useState)([]),[r,i]=(0,J.useState)(e);return{checkTouchedItem:(e,i,a)=>{n(n=>{if(a){if(a(r[e]))return[...n.filter(t=>t!==e)]}else if(typeof i==`object`){if(JSON.stringify(r[e])===JSON.stringify(i))return[...n.filter(t=>t!==e)]}else if(r[e]===i)return[...n.filter(t=>t!==e)];return t.find(t=>t===e)?n:[...n,e]})},setInitData:i,isTouched:()=>t.length>0,reset:()=>{n(()=>[])}}},Zj=e=>{let t=Xj({attachment:e?.attachments});(0,J.useEffect)(()=>{t.setInitData({attachment:e?.attachments})},[e]);let{checkTouchedItem:n,...r}=t,i=e=>{n(`attachment`,e)};return{...r,changeAttachments:i}},Qj=e=>{let t=Xj({contactParticipants:e?.contactParticipants?.map(e=>e?.id)??[],employeeParticipants:e?.employeeParticipants?.map(e=>`${e?.position?.id}-${e?.position?.slot?.join(`,`)}`)??[]});(0,J.useEffect)(()=>{e&&t.setInitData({contactParticipants:e?.contactParticipants?.map(e=>e?.id)??[],employeeParticipants:e?.employeeParticipants?.map(e=>`${e?.position?.id}-${e?.position?.slot?.join(`,`)}`)??[]})},[e]);let{checkTouchedItem:n,...r}=t,i=e=>{n(`contactParticipants`,e)},a=e=>{n(`employeeParticipants`,e)};return{...r,changeContact:i,changeEmployee:a}},$j=(e,t,n,r)=>{let{organizationId:i}=h(),{signedInUser:a}=xc(),{selectedPosition:o}=hg(),s=o?.position,[c,l]=(0,J.useState)(null),u=(0,J.useMemo)(()=>e?.filter(e=>e.organization.id===i),[i,e]),d=(0,J.useMemo)(()=>t?.requester?.user?.id===a?.id?t?.requester?.position:null,[t?.requester,a?.id]),f=(0,J.useMemo)(()=>t?.employeeParticipants?.find(e=>e?.user?.id===a?.id)?.position,[t?.employeeParticipants,a?.id]),p=(0,J.useMemo)(()=>r?u?.find(e=>e?.isPrimary):``,[u,r]),m=(0,J.useMemo)(()=>u?.length===1?u?.[0]:c??u?.find(e=>e.id===s?.id),[u,c,s?.id]),g=(0,J.useMemo)(()=>d??p,[p,d]),_=n?m:g,v=(0,J.useMemo)(()=>d??f??p,[p,f,d]),y=(0,J.useMemo)(()=>d??p,[p,d]),b=(0,J.useMemo)(()=>d??p,[p,d]);return{setPosition:l,position:c,creatingOrUpdatingMeetingPosition:_,minutesMeetingPosition:v,currentOrganizationPositions:u,cancelMeetingPosition:b,finishMeetingPosition:y,allowCreateOrEditMeeting:n?!!m:!!g,allowEditDescription:f,allowCancelMeeting:!!b,allowMinutes:!!v,allowFinishMeeting:!!y}},eM=()=>[{value:{index:6,name:`saturday`},label:de.t(`common.daysOfWeek.saturday`)},{value:{index:0,name:`sunday`},label:de.t(`common.daysOfWeek.sunday`)},{value:{index:1,name:`monday`},label:de.t(`common.daysOfWeek.monday`)},{value:{index:2,name:`tuesday`},label:de.t(`common.daysOfWeek.tuesday`)},{value:{index:3,name:`wednesday`},label:de.t(`common.daysOfWeek.wednesday`)},{value:{index:4,name:`thursday`},label:de.t(`common.daysOfWeek.thursday`)},{value:{index:5,name:`friday`},label:de.t(`common.daysOfWeek.friday`)}],tM=eM(),nM={1:`فروردین`,2:`اردیبهشت`,3:`خرداد`,4:`تیر`,5:`مرداد`,6:`شهریور`,7:`مهر`,8:`آبان`,9:`آذر`,10:`دی`,11:`بهمن`,12:`اسفند`},rM=e=>{switch(e){case`hour`:return`hour`;case`day`:return`days`;case`week`:return`weeks`;
2324case`month`:return`jMonth`;case`year`:return`jYear`;default:return`weeks`}},iM=(e,t)=>{let n;switch(t){case`hour`:return(0,b_.default)(e).startOf(`hour`);case`day`:return(0,b_.default)(e).startOf(`day`);case`week`:return n=(0,b_.default)(e).day()===6?(0,b_.default)(e).add(`days`,2):e,(0,b_.default)(n).startOf(`week`).add(-1,`days`);case`month`:return(0,b_.default)(e).startOf(`jMonth`);case`year`:return(0,b_.default)(e).startOf(`jYear`);default:return(0,b_.default)(e).startOf(`day`)}},aM=e=>{let t=b_.default.utc().toISOString();switch(e){case`hour`:return iM(t,`hour`);case`day`:return iM(t,`day`);case`week`:return iM(t,`week`);case`month`:return iM(t,`month`);case`year`:return iM(t,`year`);default:return iM(t,`week`)}},oM=(e,t)=>e.clone().add(1,rM(t)),sM=(e,t)=>e.clone().add(-1,rM(t)),cM=(e,t)=>new Date(t).getTime()-new Date(e).getTime()>=1e3*60*60*24-1e3*60,lM=e=>{if(e){let t=(0,b_.default)(e).day(),n=eM().find(e=>e.value.index===t);if(n)return n}return{label:``,value:{index:-1,name:``}}},uM={startOfTimeRangeFrowNow:aM,startOfTimeRangeFromSelectedDate:iM,nextTimeRange:oM,prevTimeRange:sM,isAllDayCalculator:cM,get daysOfWeek(){return eM()}},dM=(e,t)=>{let n=(0,b_.default)(e).jYear(),r=(0,b_.default)(e).jMonth()+1,i=(0,b_.default)(e).jDate(),a=(0,b_.default)(t).jYear(),o=(0,b_.default)(t).jMonth()+1,s=(0,b_.default)(t).jDate();return n===a?r===o?`${i} - ${s} ${nM[String(r)]} ${n}`:`${i} ${nM[String(r)]} - ${s} ${nM[String(o)]} ${n}`:`${i} ${nM[String(r)]} ${n} - ${s} ${nM[String(o)]} ${a}`},fM=(e,t)=>{let n=(0,b_.default)(e).jYear(),r=(0,b_.default)(e).jMonth()+1,i=(0,b_.default)(e).jDate(),{label:a}=lM(e?.toISOString());return t?.showYear?`${a} - ${i} ${nM[String(r)]} ${n}`:`${a} - ${i} ${nM[String(r)]}`},pM=e=>{let t=e?(0,b_.default)(e):(0,b_.default)(),n=e?new Date(String(e)):new Date;return{jalaali:{day:eM().find(e=>e.value.index===t.day())?.label||``,dayNumber:t.format(`jDD`),month:nM[String(t.jMonth()+1)],monthNumber:t.jMonth()+1},gregorian:{day:tM.find(e=>e.value.index===t.day())?.value.name||``,dayNumber:n.toLocaleDateString(`default`,{day:`2-digit`}),month:{short:n.toLocaleString(`default`,{month:`short`}),long:n.toLocaleString(`default`,{month:`long`})},monthNumber:n.getMonth()+1}}};function mM(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}var hM=e=>{if(e?.length)return`0 0 * * ${e?.reduce((e,t)=>(e.push(JSON.parse(t).index),e),[]).join(`,`)}`},gM=(e,t)=>{let n=new Date(t),r=n.getTimezoneOffset()*60*1e3,i=new Date(new Date(t).setHours(0,0,0,0)),a=n.getTime()-i.getTime();return Math.sign(r)===-1&&a<Math.abs(r)?e.map(e=>{let t=Number(e);return t===6?`0`:`${t+1}`}):Math.sign(r)===1&&a>Math.abs(r)?e.map(e=>{let t=Number(e);return t===0?`6`:`${t-1}`}):e},_M=(e,t)=>{let n=e.split(` `).slice(-1)[0].split(`,`);return t&&n.length&&(n=gM(n,t)),n.reduce((e,t)=>{let n=uM.daysOfWeek.find(e=>e.value.index===parseInt(t,10));return e.push(JSON.stringify(n?.value)),e},[])},vM=(e,t)=>{let n=``,r=[],i=[];return e?.recurrencePattern?(r=_M(e.recurrencePattern,t),n=e.recurrenceEnd??``):e?.recurrenceDates&&(i=e.recurrenceDates.reduce((e,t)=>(e.push(t.date),e),[])),{weeklyRecurrentInCertainDays:{recurrenceStart:e?.recurrenceStart,recurrenceEndDate:n,selectedRecurrentDays:r},selectedRecurrentSpecificDays:i}},yM=e=>{let t=Object.prototype.toString.call(e).toLowerCase(),n=/\[object (.*)]/g.exec(t);return n?n[1]:``},bM=(e,t)=>yM(e)===yM(t)?yM(e)===`array`?e.length===t.length?e.every((e,n)=>bM(e,t[n])):!1:yM(e)===`object`?Object.keys(e).length===Object.keys(t).length?Object.keys(e).every(n=>bM(e[n],t[n])):!1:yM(e)===`date`?e.getTime()===t.getTime():e===t:!1,xM=e=>{let t=e.map(e=>JSON.parse(e));return t.sort((e,t)=>e.index-t.index),t.map(e=>e)},SM=(e,t)=>{let n=Xj(vM(e,t));(0,J.useEffect)(()=>{e&&n.setInitData(vM(e,t))},[e,t]);let{checkTouchedItem:r,...i}=n,a=e=>{r(`weeklyRecurrentInCertainDays`,e,t=>{let n=bM(xM(e.selectedRecurrentDays),xM(t.selectedRecurrentDays)),r=e.recurrenceEndDate===t.recurrenceEndDate;return n&&r})},o=e=>{r(`selectedRecurrentSpecificDays`,e)};
2324return{...i,changeWeeklyRecurrentInCertainDaysTouch:a,changeSelectedRecurrentSpecificDaysTouch:o}},CM=({task:e,organizationId:t,requester:n,operationId:r})=>({id:e.id,organization:{id:t},title:e.title,description:``,tags:[],requester:{user:{id:n.userId},position:{id:n.positionId,slot:n.positionSlot}},operation:{id:r}}),wM=({task:e,organizationId:t,requester:n})=>({id:e.id,organization:{id:t},title:e.title,description:``,requester:{user:{id:n.userId},position:{id:n.positionId,slot:n.positionSlot}}}),TM=e=>{if(e===`done`||e===`undone`||e===`pending`||e===`created`)return e},EM=e=>({id:e.id,title:e.title,status:TM(e.status),assignee:e.assignee??e.assignees?.[0]??null,isDraft:!1}),DM=e=>(e??[]).map(e=>{let t=(e.tasks??[]).map(EM),n=e.tasksCount??t.length+(e.hiddenTasksCount??0),r=Math.max(0,n-t.length);return{id:e.id,title:e.title,description:e.description??``,tasks:t,tasksCount:n,...r>0?{hiddenTasksCount:r}:{},isDraft:!1}}),OM=e=>{let t=e?.payload?.data;return t?DM(t.resolutions):null},kM=e=>e.isDraft===!0||e.isPendingUpdate===!0||e.tasks.some(e=>e.isDraft===!0||e.isPendingUpdate===!0),AM=(e,t)=>{let n=new Set(e.map(e=>e.id));return t.filter(e=>!n.has(e.id)&&(e.isDraft===!0||e.isPendingUpdate===!0))},jM=(e,t)=>t.isPendingUpdate===!0?{...e,title:t.title,assignee:t.assignee??null,isPendingUpdate:!0,submitError:t.submitError}:e,MM=(e,t)=>{if(!kM(t))return e;let n=new Map(t.tasks.map(e=>[e.id,e])),r=AM(e.tasks,t.tasks),i=[...e.tasks.map(e=>{let t=n.get(e.id);return t?jM(e,t):e}),...r],a=r.filter(e=>e.isDraft===!0).length,o=(e.tasksCount??e.tasks.length)+a,s=Math.max(0,o-i.length),c=t.isPendingUpdate===!0?{title:t.title,description:t.description,isPendingUpdate:!0,submitError:t.submitError}:{},l={...e,...c,tasks:i,tasksCount:o};return s>0?l.hiddenTasksCount=s:delete l.hiddenTasksCount,l},NM=(e,t)=>{if(!t.some(kM))return e;let n=new Map(t.map(e=>[e.id,e])),r=new Set(e.map(e=>e.id)),i=e.map(e=>{let t=n.get(e.id);return t?MM(e,t):e}),a=t.filter(e=>!r.has(e.id)&&kM(e));return[...i,...a]},PM=(e,t)=>e?NM(DM(e.resolutions),t):t,FM=e=>e?.operations?.find(e=>e?.type===`createResolution`)?.id??null,IM=e=>e?.operations?.find(e=>e?.type===`create`)?.id??null,LM=e=>{let t=e?.operations;if(!t)return null;let n=t.filter(e=>e?.type===`updateMinutes`);return n[n.length-1]?.id||(t.find(e=>e?.type===`createMinutes`)?.id??t.find(e=>e?.type===`create`)?.id??null)},RM=({overedDialogWasOpened:e,overedDialogIsOpen:t,minutesOpen:n})=>e&&!t&&!n,zM=e=>e.resolutions.some(e=>e.ok)||e.tasks.some(e=>e.ok),BM=e=>e?.success===!0||e?.status===`success`,VM=(e,t)=>!e||!t?!1:[t.updateTask,t.deleteTask,t.changeTaskStatus,t.assign].some(BM),HM=async e=>{try{return!!(await e)?.payload?.success}catch{return!1}},UM=e=>e.some(e=>!e.ok),WM=e=>e.some(e=>e.isDraft===!0||e.tasks.some(e=>e.isDraft===!0)),GM=e=>e.filter(e=>e.isPendingUpdate===!0&&e.isDraft!==!0),KM=e=>GM(e).length>0,qM=e=>e.flatMap(e=>e.tasks.filter(e=>e.isPendingUpdate===!0&&e.isDraft!==!0).map(t=>({resolution:e,task:t}))),JM=e=>qM(e).length>0,YM=e=>WM(e)||KM(e)||JM(e);async function XM(e){let t=[];for(let n of GM(e.resolutions)){let r=await HM(e.updateMeetingResolution({id:e.meetingId,resolutionId:n.id,data:e.buildResolutionDto(n),checkStatusOveredFunction:e.checkStatusOveredFunction}));t.push({id:n.id,ok:r})}return t}async function ZM(e){let t=[];for(let{task:n}of qM(e.resolutions)){if(!await HM(e.updateTask({data:e.buildUpdateTaskDto(n),checkStatusOveredFunction:e.checkStatusOveredFunction}))){t.push({id:n.id,ok:!1});continue}let r=e.buildTaskAssignDto(n.id,n.assignee);if(r&&e.assignTask){let i=await HM(e.assignTask(r));t.push({id:n.id,ok:i});continue}t.push({id:n.id,ok:!0})}return t}var QM=async(e,t)=>{let n=t.tasks.filter(e=>e.isDraft===!0),r=[];for(let i of n){if(!(i.createdUnlinked===!0||i.assigneeAssignFailed===!0||await HM(e.createTask({data:e.buildTaskDto(i,t),checkStatusOveredFunction:e.checkStatusOveredFunction})))){r.push({id:i.id,ok:!1});continue}if(!(i.assigneeAssignFailed===!0||await HM(e.assignMeetingResolutionTask({id:e.meetingId,resolutionId:t.id,taskId:i.id,checkStatusOveredFunction:e.checkStatusOveredFunction})))){r.push({id:i.id,ok:!1,createdUnlinked:!0});continue}let n=e.buildTaskAssignDto(i.id,i.assignee);if(n&&e.assignTask){if(!await HM(e.assignTask(n))){r.push({id:i.id,ok:!1,assigneeAssignFailed:!0});continue}r.push({id:i.id,ok:!0});continue}r.push({id:i.id,ok:!0})}return r};async function $M(e){let t=[],n=[];if(!WM(e.resolutions))return{resolutions:t,tasks:n,hasFailures:!1};let r=e.initialParentId,i=0,a=!!e.initialParentId;for(let o of e.resolutions){let s=o.tasks.filter(e=>e.isDraft===!0),c=o.isDraft===!0;if(!(!c&&s.length===0)){if(c){if(i>0&&!a&&e.refreshResolutionParentId){a=!0;let t=await e.refreshResolutionParentId();t&&(r=t)}let c=await HM(e.createMeetingResolution({id:e.meetingId,data:e.buildRes
2324olutionDto(o,r),checkStatusOveredFunction:e.checkStatusOveredFunction}));if(t.push({id:o.id,ok:c}),!c){for(let e of s)n.push({id:e.id,ok:!1});continue}i+=1}if(s.length>0){let t=await QM(e,o);n.push(...t)}}}return{resolutions:t,tasks:n,hasFailures:UM(t)||UM(n)}}var eN=(e,t)=>{let n=new Map(t.resolutions.map(e=>[e.id,e.ok])),r=new Map(t.tasks.map(e=>[e.id,e]));return e.map(e=>{let t=n.get(e.id),i=e.isDraft,a=e.isPendingUpdate,o=e.submitError;return t===!0?(i=!1,a=!1,o=!1):t===!1&&(o=!0),{...e,isDraft:i,isPendingUpdate:a,submitError:o,tasks:e.tasks.map(e=>{let t=r.get(e.id),n=e.isDraft,i=e.isPendingUpdate,a=e.submitError,o=e.createdUnlinked,s=e.assigneeAssignFailed;return t?.ok===!0?(n=!1,i=!1,a=!1,o=!1,s=!1):t?.createdUnlinked===!0?(a=!1,o=!0):t?.assigneeAssignFailed===!0?(a=!1,s=!0):t?.ok===!1&&(a=!0),{...e,isDraft:n,isPendingUpdate:i,submitError:a,createdUnlinked:o,assigneeAssignFailed:s}})}})},tN=e=>e.some(e=>e.createdUnlinked===!0),nN=e=>e.some(e=>e.assigneeAssignFailed===!0),rN=e=>e.some(e=>e.submitError===!0||e.tasks.some(e=>e.submitError===!0)),iN=({saveMinutes:e,nextResolutions:t})=>e?t==null?!0:!rN(t):!1,aN=e=>e==null||!rN(e),oN=({initialState:e,schema:t,comparers:n})=>r=>i=>{let a=ki({initialState:i.initialState??e,schema:t,comparers:n});return l(r,{...i,...a})},sN=Dj.default.extend(e=>({type:`passwordComplexity`,base:e.string(),messages:{"passwordComplexity.tooShort":`{{#label}} should be at least 8 characters long`,"passwordComplexity.tooLong":`{{#label}} should not be longer than 32 characters`,"passwordComplexity.lowercase":`{{#label}} should contain at least 1 lower-cased letter`,"passwordComplexity.uppercase":`{{#label}} should contain at least 1 upper-cased letter`,"passwordComplexity.numeric":`{{#label}} should contain at least 1 number`,"passwordComplexity.symbol":`{{#label}} should contain at least 1 symbol`},validate(e,t){let n=[];if(typeof e==`string`){let r=e.match(/[a-z]/g)?.length??0,i=e.match(/[A-Z]/g)?.length??0,a=e.match(/[\d]/g)?.length??0,o=e.match(/[ !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~]/g)?.length??0;e.length<8&&n.push(t.error(`passwordComplexity.tooShort`,{value:e})),e.length>32&&n.push(t.error(`passwordComplexity.tooLong`,{value:e})),r<1&&n.push(t.error(`passwordComplexity.lowercase`,{value:e})),i<1&&n.push(t.error(`passwordComplexity.uppercase`,{value:e})),a<1&&n.push(t.error(`passwordComplexity.numeric`,{value:e})),o<1&&n.push(t.error(`passwordComplexity.symbol`,{value:e}))}return{value:e,errors:n.length?n:null}}})),cN=(e,t)=>n=>oN({initialState:t.initialState,schema:t.schema,comparers:t.comparers})(t=>{let{touched:r,setTouched:i,validationOnChange:a,validationOnChanges:o,validationOnSubmit:s,isInvalid:c,getValidationError:u,getValidationErrorEx:d,...f}=t,p={touched:r,setTouched:i,validationOnChange:a,validationOnChanges:o,validationOnSubmit:s,isInvalid:c,getValidationError:u,getValidationErrorEx:d};return l(n,{...f,[e]:p})}),lN=e=>{let{hidden:t,security:n,disabled:r,skeletonLoading:i,skeletonProps:a,...o}=e,s=n?.disabled?`disabledSecurity`:``;return l(f,{children:i?l(dr,{...a,height:a?.height||42}):!t&&!n?.hidden&&l(yr,{disabled:r||n?.disabled,className:s,...o})})},uN=B()((e,{dir:t})=>({root:{display:`flex`,flexDirection:t,gap:e.spacing(1),alignItems:t===`column`?``:`center`},divider:{flex:1},text:{fontSize:`14px`,fontWeight:`700`}})),dN=({title:e,extraClasses:t,security:n,dir:r=`row`,...i})=>{let{classes:a,cx:o}=uN({dir:r});return l(f,{children:!n?.hidden&&d(q,{className:a.root,children:[e&&l(si,{className:a.text,children:e}),l(Lr,{className:o(t,a.divider),...i})]})})},fN=B()({multiline:{height:`unset`}}),pN=({hidden:e,security:t,disabled:n,skeletonLoading:r,skeletonProps:i,readOnly:a,...o})=>{let s=t?.disabled?`disabledSecurity`:``,{classes:c,cx:u}=fN();return l(f,{children:!e&&!t?.hidden&&l(f,{children:r?l(dr,{...i,height:i?.height||42}):l(wr,{disabled:n||t?.disabled,className:s,...o,focused:a&&!a,InputProps:{readOnly:a,classes:{root:u({[c.multiline]:o.multiline})},...o.InputProps},children:o.children})})})},mN=r(i((e=>{Object.defineProperty(e,"__esModule",{value:!0});var n,r=t(),i=(n=r)&&typeof n==`object`&&`default`in n?n.default:n;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
2324t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)===`[object Arguments]`){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||s.return==null||s.return()}finally{if(i)throw a}}return n}}(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance`)}()}function d(e){return function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)===`[object Arguments]`)return Array.from(e)}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance`)}()}var f=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],p=function(e,t){return Array.from(Array(e).keys()).map((function(e){return{value:e+1,id:`${t}-${e}`}}))},m=function(e,t){return!(!e||!t)&&e.day===t.day&&e.month===t.month&&e.year===t.year},h=function(e){return e.toString().length===1?`0${e}`:e},g=function(e){return c({},e)},_=function(e,t){var n=t===`NEXT`?1:-1,r=e.month+n,i=e.year;return r<1&&(r=12,--i),r>12&&(r=1,i+=1),{year:i,month:r,day:1}},v=function(e,t){return Object.prototype.hasOwnProperty.call(e||{},t)},y=function(e){if(Array.isArray(e))return`MUTLI_DATE`;if(v(e,`from`)&&v(e,`to`))return`RANGE`;if(!e||v(e,`year`)&&v(e,`month`)&&v(e,`day`))return`SINGLE_DATE`;throw TypeError(`The passed value is malformed! Please make sure you're using one of the valid value types for date picker.`)},b={toJalaali:function(e,t,n){return Object.prototype.toString.call(e)===`[object Date]`&&(n=e.getDate(),t=e.getMonth()+1,e=e.getFullYear()),T(E(e,t,n))},toGregorian:function(e,t,n){return D(w(e,t,n))},isValidJalaaliDate:function(e,t,n){return e>=-61&&e<=3177&&t>=1&&t<=12&&n>=1&&n<=S(e,t)},isLeapJalaaliYear:x,jalaaliMonthLength:S,jalCal:C,j2d:w,d2j:T,g2d:E,d2g:D};function x(e){return C(e).leap===0}function S(e,t){return t<=6?31:t<=11||x(e)?30:29}function C(e){var t,n,r,i,a,o,s=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178],c=s.length,l=e+621,u=-14,d=s[0];if(e<d||e>=s[c-1])throw Error(`Invalid Jalaali year `+e);for(o=1;o<c&&(n=(t=s[o])-d,!(e<t));o+=1)u=u+8*O(n,33)+O(k(n,33),4),d=t;return u=u+8*O(a=e-d,33)+O(k(a,33)+3,4),k(n,33)===4&&n-a==4&&(u+=1),i=20+u-(O(l,4)-O(3*(O(l,100)+1),4)-150),n-a<6&&(a=a-n+33*O(n+4,33)),(r=k(k(a+1,33)-1,4))===-1&&(r=4),{leap:r,gy:l,march:i}}function w(e,t,n){var r=C(e);return E(r.gy,3,r.march)+31*(t-1)-O(t,7)*(t-7)+n-1}function T(e){var t,n=D(e).gy,r=n-621,i=C(r);if((t=e-E(n,3,i.march))>=0){if(t<=185)return{jy:r,jm:1+O(t,31),jd:k(t,31)+1};t-=186}else --r,t+=179,i.leap===1&&(t+=1);return{jy:r,jm:7+O(t,30),jd:k(t,30)+1}}function E(e,t,n){var r=O(1461*(e+O(t-8,6)+100100),4)+O(153*k(t+9,12)+2,5)+n-34840408;return r=r-O(3*O(e+100100+O(t-8,6),100),4)+752}function D(e){var t,n,r,i;return t=(t=4*e+139361631)+4*O(3*O(4*e+183187720,146097),4)-3908,n=5*O(k(t,1461),4)+308,r=O(k(n,153),5)+1,i=k(O(n,153),12)+1,{gy:O(t,1461)-100100+O(8-i,6),gm:i,gd:r}}function O(e,t){return~~(e/t)}function k(e,t){return e-~~(e/t)*t}var A={en:{months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],weekDays:[{name:`Sunday`,short:`S`,isWeekend:!0},{name:`Monday`,short:`M`},{name:`Tuesday`,short:`T`},{name:`Wednesday`,short:`W`},{name:`Thursday`,short:`T`},{name:`Friday`,short:`F`},{name:`Saturday`,short:`S`,isWeekend:!0}],weekStartingIndex:0,getToday:function(e){return e},toNativeDate:function(e){return new Date(e.year,e.month-1,e.day)},getMonthLength:function(e){return new Date(e.year,e.month,0).getDate()},transformDigit:function(e){return e},nextMonth:`Next Month`,previousMonth:`Previous Month`,openMonthSelector:`Open Month Selector`,openYearSelector:`Open Year Selector`,closeMonthSelector:`Close Month Selector`,closeYearSelector:`Close Year Selector`,from:`from`,to:`to`,defaultPlaceholder:`Select...`,digitSeparator:`,`,yearLetterSkip:0,isRtl:!1},fa:{months:[`فروردین`,`اردیبهشت`,`خرداد`,`تیر`,`مرداد`,`شهریور`,`مهر`,`آبان`,`آذر`,`دی`,`بهمن`,`اسفند`],weekDays:[{name:`شنبه`,short:`ش`},{name:`یکشنبه`,short:`ی`},{name:`دوشنبه`,short:`د`},{name:`سه شنبه`,short:`س`},{name:`چهارشنبه`,short:`چ`},{name:`پنجشنبه`,short:`پ`},{name:`جمعه`,short:`ج`,isWeekend:!0}],weekStartingIndex:1,getToday:function(e){var t=e.year,n=e.month,r=e.day,i=b.toJalaali(t,n,r);return{year:i.jy,month:i.jm,day:i.jd}},toNativeDate:function(e){var t=b.toGregorian.apply(b,d(function(e){return[e.year,e.month,e.day]}(e)));return new Date(t.gy,t.gm-1,t.gd)},getMonthLength:function(e){return b.jalaaliMonthLength(e.year,e.month)},transformDigit:function(e){return e.toString().split(``).map((function(e){return f[Number(e)]})).join(``)},nextMonth:`ماه بعد`,previousMonth:`ماه قبل`,openMonthSelector:`نمایش انتخابگر ماه`,openYearSelector:`نمایش انتخابگر سال`,closeMonthSelector:`بستن انتخابگر ماه`,closeYearSelector:`بستن انتخابگر ماه`,from:`از`,to:`تا`,defaultPlaceholder:`انتخاب...`,digitSeparator:`،`,yearLetterSkip:-2,isRtl:!0}},j=function(e){return typeof e==`string`?A[e]:e},M=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`en`,t=typeof e==`string`?j(e):e,n=t.months,r=t.getToday,i=t.toNativeDate,a=t.getMonthLength,o=t.weekStartingIndex;return{getToday:function(){var e=new Date;return r({year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()})},getMonthName:function(e){return n[e-1]},getMonthNumber:function(e){return n.indexOf(e)+1},getMonthLength:a,getMonthFirstWeekday:function(e){return(i(c({},e,{day:1})).getDay()+o)%7},isBeforeDate:function(e,t){return!(!e||!t)&&i(e)<i(t)},checkDayInDayRange:function(e){var t=e.day,n=e.from,r=e.to;if(!t||!n||!r)return!1;var a=i(t),o=i(n),s=i(r);return a>o&&a<s},getLanguageDigits:t.transformDigit}},N=function(e){return r.useMemo((function(){return M(e)}),[e])},P=function(e){return r.useMemo((function(){return j(e)}),[e])},F=function(e){var t=e.parent,n=e.isInitialActiveChild,r=e.activeDate,i=e.monthChangeDirection;if(!t)return n?r:_(r,`NEXT`);var a=t.children[+!n];return a.classList.contains(`-shown`)||a.classList.contains(`-shownAnimated`)?r:_(r,i)},I=function(e){var t=e.parent,n=e.direction,r=Array.from(t.children),i=r.find((function(e){return e.classList.contains(`-shown`)})),a=r.find((function(e){return e!==i})),o=i.classList[0],s=n===`NEXT`,c=function(e){return e?`-hiddenNext`:`-hiddenPrevious`};a.style.transition=`none`,i.style.transition=``,i.className=`${o} ${c(!s)}
2324`,a.className=`${o} ${c(s)}`,a.classList.add(`-shownAnimated`)},ee=function(e){var t=e.target;t.classList.remove(`-hiddenNext`),t.classList.remove(`-hiddenPrevious`),t.classList.replace(`-shownAnimated`,`-shown`)},L=function(e){var t=e.maximumDate,n=e.minimumDate,a=e.onMonthChange,s=e.activeDate,l=e.monthChangeDirection,u=e.onMonthSelect,f=e.onYearSelect,p=e.isMonthSelectorOpen,h=e.isYearSelectorOpen,g=e.locale,_=r.useRef(null),v=r.useRef(null),y=N(g),b=y.getMonthName,x=y.isBeforeDate,S=y.getLanguageDigits,C=P(g),w=C.isRtl,T=C.nextMonth,E=C.previousMonth,D=C.openMonthSelector,O=C.closeMonthSelector,k=C.openYearSelector,A=C.closeYearSelector;r.useEffect((function(){l&&I({direction:l,parent:v.current})}),[l]),r.useEffect((function(){var e=p||h,t=_.current.querySelector(`.Calendar__monthYear.-shown .Calendar__monthText`),n=t.nextSibling,r=function(e){return e.classList.contains(`-activeBackground`)};if(!(!e&&!r(t)&&!r(n))){var i=d(_.current.querySelectorAll(`.Calendar__monthArrowWrapper`)),a=p||r(t),o=a?t:n,s=a?n:t,c=a?1:-1;w&&(c*=-1);var l=e?1:.95,u=e?`${c*s.offsetWidth/2}`:0;e?s.setAttribute(`aria-hidden`,!0):s.removeAttribute(`aria-hidden`),s.setAttribute(`tabindex`,e?`-1`:`0`),s.style.transform=``,o.style.transform=`scale(${l}) ${u?`translateX(${u}px)`:``}`,o.classList.toggle(`-activeBackground`),s.classList.toggle(`-hidden`),i.forEach((function(e){var t=e.classList.contains(`-hidden`);e.classList.toggle(`-hidden`),t?(e.removeAttribute(`aria-hidden`),e.setAttribute(`tabindex`,`0`)):(e.setAttribute(`aria-hidden`,!0),e.setAttribute(`tabindex`,`-1`))}))}}),[p,h]);var j=t&&x(t,c({},s,{month:s.month+1,day:1})),M=n&&(x(c({},s,{day:1}),n)||m(n,c({},s,{day:1}))),L=function(e){Array.from(v.current.children).some((function(e){return e.classList.contains(`-shownAnimated`)}))||a(e)},R=[!0,!1].map((function(e){var t=function(e){var t=F({isInitialActiveChild:e,monthChangeDirection:l,activeDate:s,parent:v.current}),n=S(t.year);return{month:b(t.month),year:n}}(e),n=t.month,r=t.year,a=n===b(s.month),d=c({},a?{}:{"aria-hidden":!0});return i.createElement(`div`,o({onAnimationEnd:ee,className:`Calendar__monthYear ${e?`-shown`:`-hiddenNext`}`,role:`presentation`,key:String(e)},d),i.createElement(`button`,o({onClick:u,type:`button`,className:`Calendar__monthText`,"aria-label":p?O:D,tabIndex:a?`0`:`-1`},d),n),i.createElement(`button`,o({onClick:f,type:`button`,className:`Calendar__yearText`,"aria-label":h?A:k,tabIndex:a?`0`:`-1`},d),r))}));return i.createElement(`div`,{ref:_,className:`Calendar__header`},i.createElement(`button`,{className:`Calendar__monthArrowWrapper -right`,onClick:function(){L(`PREVIOUS`)},"aria-label":E,type:`button`,disabled:M},i.createElement(`span`,{className:`Calendar__monthArrow`})),i.createElement(`div`,{className:`Calendar__monthYearContainer`,ref:v,"data-testid":`month-year-container`},`\xA0`,R),i.createElement(`button`,{className:`Calendar__monthArrowWrapper -left`,onClick:function(){L(`NEXT`)},"aria-label":T,type:`button`,disabled:j},i.createElement(`span`,{className:`Calendar__monthArrow`})))},R=function(e,t){var n=t.allowVerticalArrows,r=document.activeElement,i=function(e,t){return e?e.children[t]:null},a=function(e){return e&&(e.hasAttribute(`aria-hidden`)?null:e)},o=r.parentElement,s=o.nextSibling,c=o.previousSibling,l=a(r.nextSibling||i(s,0)),u=c?c.children.length-1:0,d=a(r.previousSibling||i(c,u)),f=function(e){return i(e,Array.from(r.parentElement.children).indexOf(r))},p=a(f(s)),m=a(f(c));r.dataset.isDefaultSelectable===`true`||(r.tabIndex=`-1`);var h=function(t){e.preventDefault(),t&&(t.setAttribute(`tabindex`,`0`),t.focus())};switch(e.key){case`ArrowRight`:h(l);break;case`ArrowLeft`:h(d);break;case`ArrowDown`:n&&h(p);break;case`ArrowUp`:n&&h(m)}},z=function(e){var t=e.activeDate,n=e.maximumDate,a=e.minimumDate,s=e.onMonthSelect,l=e.isOpen,u=e.locale,d=r.useRef(null);r.useEffect((function(){var e=l?`add`:`remove`;d.current.classList[e](`-open`)}),[l]);var f=N(u),p=f.getMonthNumber,h=f.isBeforeDate,g=P(u).months;return i.createElement(`div`,o({role:`presentation`,className:`Calendar__monthSelectorAnimationWrapper`},l?{}:{"aria-hidden":!0}),i.createElement(`div`,{role:`presentation`,"data-testid":`month-selector-wrapper`,className:`Calendar__monthSelectorWrapper`,onKeyDown:function(e){R(e,{allowVerticalArrows:!1})}},i.createElement(`ul`,{ref:d,className:`Calendar__monthSelector`,"data-testid":`month-selector`},g.map((function(e){var r=p(e),o={day:1,month:r,year:t.year},u=n&&h(n,c({},o,{month:r})),d=a&&(h(c({},o,{month:r+1}),a)||m(c({},o,{month:r+1}),a)),f=r===t.month;return i.createElement(`li`,{key:e,className:`Calendar__monthSelectorItem ${f?`-active`:``}`},i.createElement(`button`,{tabIndex:f&&l?`0`:`-1`,onClick:function(){s(r)},className:`Calendar__monthSelectorItemText`,type:`button`,disabled:u||d,"aria-pressed":f,"data-is-default-selectable":f},e))})))))},te=function(e){for(var t=e.isOpen,n=e.activeDate,a=e.onYearSelect,s=e.selectorStartingYear,c=e.selectorEndingYear,l=e.maximumDate,u=e.minimumDate,d=e.locale,f=r.useRef(null),p=r.useRef(null),m=N(d),h=m.getLanguageDigits,g=m.getToday,_=s||g().year-100,v=c||g().year+50,y=[],b=_;b<=v;b+=1)y.push(b);return r.useEffect((function(){var e=t?`add`:`remove`,n=f.current.querySelector(`.Calendar__yearSelectorItem.-active`);if(!n)throw RangeError(`Provided value for year is out of selectable year range. You're probably using a wrong locale prop value or your provided value's locale is different from the date picker locale. Try changing the 'locale' prop or the value you've provided.`);f.current.classList[e](`-faded`),p.current.scrollTop=n.offsetTop-5*n.offsetHeight,p.current.classList[e](`-open`)}),[t]),i.createElement(`div`,o({className:`Calendar__yearSelectorAnimationWrapper`,role:`presentation`},t?{}:{"aria-hidden":!0}),i.createElement(`div`,{ref:f,className:`Calendar__yearSelectorWrapper`,role:`presentation`,"data-testid":`year-selector-wrapper`,onKeyDown:function(e){R(e,{allowVerticalArrows:!1})}},i.createElement(`ul`,{ref:p,className:`Calendar__yearSelector`,"data-testid":`year-selector`},y.map((function(e){var r=l&&e>l.year,o=u&&e<u.year,s=n.year===e;return i.createElement(`li`,{key:e,className:`Calendar__yearSelectorItem ${s?`-active`:``}`},i.createElement(`button`,{tabIndex:s&&t?`0`:`-1`,className:`Calendar__yearSelectorText`,type:`button`,onClick:function(){a(e)},disabled:r||o,"aria-pressed":s,"data-is-default-selectable":s},h(e)))})))))};te.defaultProps={selectorStartingYear:0,selectorEndingYear:0};var ne=function(e){var t=e.activeDate,n=e.value,a=e.monthChangeDirection,s=e.onSlideChange,u=e.disabledDays,f=e.onDisabledDayError,h=e.minimumDate,g=e.maximumDate,_=e.onChange,v=e.locale,b=e.calendarTodayClassName,x=e.calendarSelectedDayClassName,S=e.calendarRangeStartClassName,C=e.calendarRangeEndClassName,w=e.calendarRangeBet
2324weenClassName,T=e.shouldHighlightWeekends,E=e.isQuickSelectorOpen,D=e.customDaysClassName,O=r.useRef(null),k=P(v),A=k.isRtl,j=k.weekDays,M=N(v),L=M.getToday,z=M.isBeforeDate,te=M.checkDayInDayRange,ne=M.getMonthFirstWeekday,re=M.getMonthLength,ie=M.getLanguageDigits,ae=M.getMonthName,oe=L();r.useEffect((function(){a&&I({direction:a,parent:O.current})}),[a]);var se=function(e){var t,r=(t=n,JSON.parse(JSON.stringify(t,(function(e,t){return t===void 0?null:t})))),i=r.from&&r.to?{from:null,to:null}:r,a=i.from?`to`:`from`;i[a]=e;var o=i.from,s=i.to;z(i.to,i.from)&&(i.from=s,i.to=o);var c=u.find((function(e){return te({day:e,from:i.from,to:i.to})}));return c?(f(c),n):i},ce=function(e){_(function(){switch(y(n)){case`SINGLE_DATE`:return e;case`RANGE`:return se(e);case`MUTLI_DATE`:return function(e){var t=n.some((function(t){return m(t,e)})),r=[].concat(d(n),[e]),i=n.filter((function(t){return!m(t,e)}));return t?i:r}(e)}}())},le=function(e){var t,r,i=m(e,oe),a=(t=e,(r=y(n))===`SINGLE_DATE`?m(t,n):r===`MUTLI_DATE`?n.some((function(e){return m(e,t)})):void 0),o=n||{},s=o.from,c=o.to;return{isToday:i,isSelected:a,isStartingDayRange:m(e,s),isEndingDayRange:m(e,c),isWithinRange:te({day:e,from:s,to:c})}},B=function(e){var t=e.isDisabled,n=l(e,[`isDisabled`]);t?f(n):ce(n)},ue=function(e,n){var r=e.id,a=e.value,s=e.month,l=e.year,d=e.isStandard,f={day:a,month:s,year:l},p=u.some((function(e){return m(f,e)})),_=z(f,h),v=z(g,f),y=p||d&&(_||v),O=function(e){var t=le(e),n=t.isToday,r=t.isSelected,i=t.isStartingDayRange,a=t.isEndingDayRange,o=t.isWithinRange,s=D.find((function(t){return m(e,t)}));return``.concat(n&&!r?` -today ${b}`:``,e.isStandard?``:` -blank`,e.isWeekend&&T?` -weekend`:``,s?` ${s.className}`:``,r?` -selected ${x}`:``,i?` -selectedStart ${S}`:``,a?` -selectedEnd ${C}`:``,o?` -selectedBetween ${w}`:``,e.isDisabled?` -disabled`:``)}(c({},f,{isWeekend:j.some((function(e,t){return e.isWeekend&&t===n})),isStandard:d,isDisabled:y})),k=`${j[n].name}, ${a} ${ae(s)} ${l}`,M=s===t.month,N=le(f),P=N.isSelected,F=N.isStartingDayRange,I=N.isEndingDayRange,ee=N.isWithinRange,L=function(e){var t=e.isOnActiveSlide,n=e.isStandard,r=e.isSelected,i=e.isStartingDayRange,a=e.isToday,o=e.day;return!(E||!t||!n)&&(!!(r||i||a||o===1)||void 0)}(c({},f,{},N,{isOnActiveSlide:M,isStandard:d}));return i.createElement(`div`,o({tabIndex:L?`0`:`-1`,key:r,className:`Calendar__day -${A?`rtl`:`ltr`} ${O}`,onClick:function(){B(c({},f,{isDisabled:y}))},onKeyDown:function(e){e.key===`Enter`&&B(c({},f,{isDisabled:y}))},"aria-disabled":y,"aria-label":k,"aria-selected":P||F||I||ee},d&&M&&!E?{}:{"aria-hidden":!0},{role:`gridcell`,"data-is-default-selectable":L}),d?ie(a):``)},de=function(e){var n=function(e){var t=p(ne(e),`starting-blank`),n=p(re(e)).map((function(t){return c({},t,{isStandard:!0,month:e.month,year:e.year})}));return[].concat(d(t),d(n))}(F({activeDate:t,isInitialActiveChild:e,monthChangeDirection:a,parent:O.current}));return Array.from([,,,,,,].keys()).map((function(e){var t=n.slice(7*e,7*e+7).map(ue);return i.createElement(`div`,{key:String(e),className:`Calendar__weekRow`,role:`row`},t)}))};return i.createElement(`div`,{ref:O,className:`Calendar__sectionWrapper`,role:`presentation`,"data-testid":`days-section-wrapper`,onKeyDown:function(e){R(e,{allowVerticalArrows:!0})}},i.createElement(`div`,{onAnimationEnd:function(e){ee(e),s()},className:`Calendar__section -shown`,role:`rowgroup`},de(!0)),i.createElement(`div`,{onAnimationEnd:function(e){ee(e),s()},className:`Calendar__section -hiddenNext`,role:`rowgroup`},de(!1)))};ne.defaultProps={onChange:function(){},onDisabledDayError:function(){},disabledDays:[],calendarTodayClassName:``,calendarSelectedDayClassName:``,calendarRangeStartClassName:``,calendarRangeBetweenClassName:``,calendarRangeEndClassName:``,shouldHighlightWeekends:!1};var re=function(e){var t=e.value,n=e.onChange,o=e.onDisabledDayError,s=e.calendarClassName,l=e.calendarTodayClassName,d=e.calendarSelectedDayClassName,f=e.calendarRangeStartClassName,p=e.calendarRangeBetweenClassName,m=e.calendarRangeEndClassName,h=e.disabledDays,v=e.colorPrimary,b=e.colorPrimaryLight,x=e.slideAnimationDuration,S=e.minimumDate,C=e.maximumDate,w=e.selectorStartingYear,T=e.selectorEndingYear,E=e.locale,D=e.shouldHighlightWeekends,O=e.renderFooter,k=e.customDaysClassName,A=r.useRef(null),j=u(r.useState({activeDate:null,monthChangeDirection:``,isMonthSelectorOpen:!1,isYearSelectorOpen:!1}),2),M=j[0],F=j[1];r.useEffect((function(){var e=function(e){e.key===`Tab`&&A.current.classList.remove(`-noFocusOutline`)};
2324return A.current!==null&&A.current.addEventListener(`keyup`,e,!1),function(){A.current!==null&&A.current.removeEventListener(`keyup`,e,!1)}}),[A]);var I,ee=N(E).getToday,R=P(E),re=R.weekDays,ie=R.isRtl,ae=ee(),oe=function(e){return function(){F(c({},M,a({},e,!M[e])))}},se=oe(`isMonthSelectorOpen`),ce=oe(`isYearSelectorOpen`),le=M.activeDate?g(M.activeDate):(I=y(t))===`MUTLI_DATE`&&t.length?g(t[0]):I===`SINGLE_DATE`&&t?g(t):I===`RANGE`&&t.from?g(t.from):g(ae),B=re.map((function(e){return i.createElement(`abbr`,{key:e.name,title:e.name,className:`Calendar__weekDay`},e.short)}));return i.createElement(`div`,{className:`Calendar -noFocusOutline ${s} -${ie?`rtl`:`ltr`}`,role:`grid`,style:{"--cl-color-primary":v,"--cl-color-primary-light":b,"--animation-duration":x},ref:A},i.createElement(L,{maximumDate:C,minimumDate:S,activeDate:le,onMonthChange:function(e){F(c({},M,{monthChangeDirection:e}))},onMonthSelect:se,onYearSelect:ce,monthChangeDirection:M.monthChangeDirection,isMonthSelectorOpen:M.isMonthSelectorOpen,isYearSelectorOpen:M.isYearSelectorOpen,locale:E}),i.createElement(z,{isOpen:M.isMonthSelectorOpen,activeDate:le,onMonthSelect:function(e){F(c({},M,{activeDate:c({},le,{month:e}),isMonthSelectorOpen:!1}))},maximumDate:C,minimumDate:S,locale:E}),i.createElement(te,{isOpen:M.isYearSelectorOpen,activeDate:le,onYearSelect:function(e){F(c({},M,{activeDate:c({},le,{year:e}),isYearSelectorOpen:!1}))},selectorStartingYear:w,selectorEndingYear:T,maximumDate:C,minimumDate:S,locale:E}),i.createElement(`div`,{className:`Calendar__weekDays`},B),i.createElement(ne,{activeDate:le,value:t,monthChangeDirection:M.monthChangeDirection,onSlideChange:function(){F(c({},M,{activeDate:_(le,M.monthChangeDirection),monthChangeDirection:``}))},disabledDays:h,onDisabledDayError:o,minimumDate:S,maximumDate:C,onChange:n,calendarTodayClassName:l,calendarSelectedDayClassName:d,calendarRangeStartClassName:f,calendarRangeEndClassName:m,calendarRangeBetweenClassName:p,locale:E,shouldHighlightWeekends:D,customDaysClassName:k,isQuickSelectorOpen:M.isYearSelectorOpen||M.isMonthSelectorOpen}),i.createElement(`div`,{className:`Calendar__footer`},O()))};re.defaultProps={minimumDate:null,maximumDate:null,colorPrimary:`#0eca2d`,colorPrimaryLight:`#cff4d5`,slideAnimationDuration:`0.4s`,calendarClassName:``,locale:`en`,value:null,renderFooter:function(){return null},customDaysClassName:[]};var ie=i.forwardRef((function(e,t){var n=e.value,r=e.inputPlaceholder,a=e.inputClassName,o=e.inputName,s=e.formatInputText,c=e.renderInput,l=e.locale,u=N(l).getLanguageDigits,d=P(l),f=d.from,p=d.to,m=d.yearLetterSkip,g=d.digitSeparator,_=d.defaultPlaceholder,v=d.isRtl,b=function(){if(s())return s();switch(y(n)){case`SINGLE_DATE`:return function(){return n?`${u(n.year)}/${u(h(n.month))}/${u(h(n.day))}`:``}();case`RANGE`:return function(){if(!n.from||!n.to)return``;var e=n.from,t=n.to;return`${f} ${`${u(h(e.year)).toString().slice(m)}/${u(h(e.month))}/${u(h(e.day))}`} ${p} ${`${u(h(t.year)).toString().slice(m)}/${u(h(t.month))}/${u(h(t.day))}`}`}();case`MUTLI_DATE`:return n.map((function(e){return u(e.day)})).join(`${g} `)}},x=r||_;return c({ref:t})||i.createElement(`input`,{"data-testid":`datepicker-input`,readOnly:!0,ref:t,value:b(),name:o,placeholder:x,className:`DatePicker__input -${v?`rtl`:`ltr`} ${a}`,"aria-label":x})}));ie.defaultProps={formatInputText:function(){return``},renderInput:function(){return null},inputPlaceholder:``,inputClassName:``,inputName:``};var ae=function(e){var t=e.value,n=e.onChange,a=e.formatInputText,o=e.inputPlaceholder,s=e.inputClassName,c=e.inputName,l=e.renderInput,d=e.wrapperClassName,f=e.calendarClassName,p=e.calendarTodayClassName,m=e.calendarSelectedDayClassName,h=e.calendarRangeStartClassName,g=e.calendarRangeBetweenClassName,_=e.calendarRangeEndClassName,v=e.calendarPopperPosition,b=e.disabledDays,x=e.onDisabledDayError,S=e.colorPrimary,C=e.colorPrimaryLight,w=e.slideAnimationDuration,T=e.minimumDate,E=e.maximumDate,D=e.selectorStartingYear,O=e.selectorEndingYear,k=e.locale,A=e.shouldHighlightWeekends,j=e.renderFooter,M=e.customDaysClassName,N=r.useRef(null),P=r.useRef(null),F=r.useRef(!1),I=u(r.useState(!1),2),ee=I[0],L=I[1];return r.useEffect((function(){var e=function(){L(!1)};return window.addEventListener(`blur`,e,!1),function(){window.removeEventListener(`blur`,e,!1)}}),[]),r.useEffect((function(){var e=y(t);e!==`MUTLI_DATE`&&(e===`SINGLE_DATE`?!ee:!ee&&t.from&&t.to)&&P.current.blur()}),[t,ee]),r.useLayoutEffect((function(){if(ee){var e=N.current.getBoundingClientRect(),t=e.left,n=e.width,r=e.height,i=e.top,a=document.documentElement,o=a.clientWidth,s=a.clientHeight,c=t+n>o,l=t<0,u=i+r>s;N.current.style.left=function(){var e=t+n-o;if(c||l)return c?`calc(50% - ${e}px)`:`calc(50% + ${l?Math.abs(t):0}px)`}(),(v===`auto`&&u||v===`top`)&&N.current.classList.add(`-top`)}}),[ee]),r.useEffect((function(){!ee&&F.current&&(P.current.focus(),F.current=!1)}),[F,ee]),i.createElement(`div`,{onFocus:function(){F.current||L(!0)},onBlur:function(e){if(e.persist(),ee){var t=N.current.contains(e.relatedTarget);F.current?(F.current=!1,P.current.focus()):t&&e.relatedTarget?e.relatedTarget.focu
2324s():L(!1)}},onKeyUp:function(e){switch(e.key){case`Enter`:L(!0);break;case`Escape`:L(!1),F.current=!0}},className:`DatePicker ${d}`,role:`presentation`},i.createElement(ie,{ref:P,formatInputText:a,value:t,inputPlaceholder:o,inputClassName:s,renderInput:l,inputName:c,locale:k}),ee&&i.createElement(i.Fragment,null,i.createElement(`div`,{ref:N,className:`DatePicker__calendarContainer`,"data-testid":`calendar-container`,role:`presentation`,onMouseDown:function(){F.current=!0}},i.createElement(re,{value:t,onChange:function(e){var r=y(t);n(e),(r===`SINGLE_DATE`||r===`RANGE`&&e.from&&e.to)&&L(!1)},calendarClassName:f,calendarTodayClassName:p,calendarSelectedDayClassName:m,calendarRangeStartClassName:h,calendarRangeBetweenClassName:g,calendarRangeEndClassName:_,disabledDays:b,colorPrimary:S,colorPrimaryLight:C,slideAnimationDuration:w,onDisabledDayError:x,minimumDate:T,maximumDate:E,selectorStartingYear:D,selectorEndingYear:O,locale:k,shouldHighlightWeekends:A,renderFooter:j,customDaysClassName:M})),i.createElement(`div`,{className:`DatePicker__calendarArrow`})))};ae.defaultProps={wrapperClassName:``,locale:`en`,calendarPopperPosition:`auto`},e.Calendar=re,e.default=ae,e.utils=M}))()),Fne=B()({celender:{"& .DatePicker__calendarContainer":{top:`100%`,zIndex:1e3}},center:{"& .DatePicker__calendarContainer":{position:`fixed !important`,zIndex:1e3,top:`calc(50vh - 140px)`}}}),hN=({ref:e},t,n)=>{let{label:r,error:i,helperText:a,hideClose:o,onChange:s=()=>{},disabled:c=!1}=n;return l(`div`,{style:{display:`flex`,alignItems:`center`},children:l(wr,{onKeyDown:e=>e.preventDefault(),autoComplete:`off`,ref:e,label:r,value:Be(t),variant:`outlined`,error:i,helperText:a,fullWidth:!0,disabled:c,InputProps:{style:{padding:4},slotProps:{style:{padding:0}},endAdornment:t&&!o?d(f,{children:[l($_,{disabled:!!t,fontSize:`small`,sx:{stroke:`#ffffff`,strokeWidth:.5}}),l(Gn,{disabled:c,onMouseDown:e=>{s(``)},children:l(ci,{fontSize:`small`,sx:{stroke:`#ffffff`,strokeWidth:.5}})})]}):l(Gn,{disabled:c,children:l($_,{fontSize:`small`,sx:{stroke:`#ffffff`,strokeWidth:.5}})})}})})},gN=({label:e,name:t,id:n,value:r,onChange:i,isInvalid:a,getValidationError:o,disabled:s=!1,type:c,hideClose:u,error:d,helperText:f,minimumDate:p=``,skeletonLoading:m=!1,skeletonProps:h={}})=>{let{classes:g,cx:_}=Fne();return m?l(dr,{...h,height:h?.height||42}):l(mN.default,{name:t,id:n,minimumDate:He(p),wrapperClassName:_(g.celender,c===`center`&&g.center),value:He(r),onChange:e=>i(je(e)),shouldHighlightWeekends:!0,renderInput:t=>hN(t,He(r),{label:e,isInvalid:a,getValidationError:o,disabled:s,onChange:i,hideClose:u,error:d,helperText:f}),locale:`fa`})};gN.propTypes={label:Z.default.string.isRequired,value:Z.default.string.isRequired,name:Z.default.string.isRequired,id:Z.default.string,onChange:Z.default.func.isRequired,isInvalid:Z.default.func,getValidationError:Z.default.func,disabled:Z.default.bool,wrapperClassName:Z.default.shape({}),type:Z.default.string,error:Z.default.bool,helperText:Z.default.string},hN.propTypes={label:Z.default.string.isRequired,isInvalid:Z.default.func,getValidationError:Z.default.func,disabled:Z.default.bool,onChange:Z.default.func};var _N=(0,J.createContext)({open:!1,onClose:()=>{},historyRecords:[],loading:!1,historyType:`letter`,handleChangeTouchStartX:()=>{},handleChangeTouchEndX:()=>{},toggleCollapseCard:()=>{},mobileHistorySegments:[],collapseCardId:null,handlePrivousHistory:()=>{},handleNextHistory:()=>{},className:``,subject:``}),vN=()=>(0,J.useContext)(_N),Ine=e=>e?[...e].sort((e,t)=>new Date(e.at)-new Date(t.at)).reduce((e,t)=>{let n=t.at.split(`T`)[0],r=e.find(e=>Object.keys(e)[0]===n),i=t.type===`forward`?{...t,id:`${n}-${t.at}`}:t;return r?r[n].push(i):e.push({[n]:[i]}),e},[]):[],yN=(...e)=>e.find(e=>typeof e==`string`&&e.trim().length>0)?.trim()??``,bN=e=>({taskTitle:yN(e.task?.title,e.taskTitle),resolutionTitle:yN(e.resolution?.title,e.resolutionTitle)}),xN=(e,t,n,r)=>{let i=[n,r].filter(Boolean).join(` `);return i&&=`(${i})`,[e,t,i].filter(Boolean).join(` `)},SN=e=>e?xN(e?.firstName,e?.lastName,e?.jobTitle,e.business)||xN(e?.firstName_en,e?.lastName_en,e?.jobTitle_en,e?.business_en):``,Lne=`group`,CN=e=>e?e.isContact?!0:e.isEmployee||e.user||e.position||e.isOrganizationGroup||e.type===`group`||e.group?!1:!!(e.firstName||e.lastName||e.firstName_en||e.lastName_en||e.business||e.jobTitle||e.business_en||e.jobTitle_en):!1,wN=e=>{if(!e||CN(e))return!1;if(e.isOrganizationGroup||e.type===`group`||e.group&&(e.group.title||e.group.name||e.group.id))return!0;let t=!!(e.title||e.name),n=!!(e.user||e.position||e.isContact||e.isEmployee);return t&&!n},TN=e=>e&&(e.group?.title||e.group?.name||e.title||e.name)||``,Rne=e=>({...e,id:e.id,title:e.title,type:Lne,isOrganizationGroup:!0}),EN=(e,{isOutgoingContact:t=!1}={})=>e?wN(e)?TN(e):t||CN(e)?SN(e)||``:Me(e.user,e.position)||``:``,DN=e=>{let t=Array.isArray(e.groups)?e.groups:[],n=e.grouping,r=Array.isArray(n?.memberships)?n.memberships:[];return[...t,...r].reduce((e,t)=>
2324t?.id?(e.some(e=>e.id===t.id)||e.push({id:t.id,title:typeof t.title==`string`?t.title:void 0}),e):(typeof t?.title==`string`&&t.title.trim()&&e.push({title:t.title}),e),[])},ON=(e,t)=>{let n=DN(e);return n.length?n.map(e=>{if(typeof e.title==`string`&&e.title.trim())return e.title;if(!e.id)return``;let n=t.find(t=>wN(t)&&t.id===e.id);return n?TN(n):``}).filter(Boolean):[]},kN=(e=[],t={})=>{let{includeRelatedGroups:n=!1,memberLabel:r=``,groupLookup:i=[],nestRelatedGroupsUnderPeople:a=!1}=t,o=e.filter(Boolean),s=[...o,...i],c=new Set;a&&o.forEach(e=>{wN(e)||e.grouping?.isPositionAssignmentToo!==!0&&ON(e,s).length&&DN(e).forEach(e=>{e?.id&&c.add(e.id)})});let l=o.filter(e=>!(a&&wN(e)&&e.id&&c.has(e.id))).map(e=>{let t=EN(e);if(!t)return``;if(!n||wN(e))return t;let i=ON(e,s);return!i.length||e.grouping?.isPositionAssignmentToo===!0?t:`${t} ${r?`${r} ${i.join(`، `)}`:i.join(`، `)}`}).filter(Boolean);return l.length?l.join(`، `):`-`},zne=()=>{let e=navigator.userAgent.toLowerCase(),t=`ontouchstart`in window||navigator.maxTouchPoints>0;return{isRealMobile:/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(e)&&t,isIOS:/ipad|iphone|ipod/.test(e)&&t,isAndroid:/android/.test(e)&&t,isDesktop:!t||window.innerWidth>1024,isChrome:e.includes(`chrome`),isFirefox:e.includes(`firefox`),isEdge:e.includes(`edge`)||e.includes(`edg/`),isSafari:e.includes(`safari`)&&!e.includes(`chrome`)}},AN=async()=>{let e=document.getElementById(`printableDiv`);if(!e)return;let t=zne();return t.isRealMobile?await Bne(e,t):await Vne(e)},Bne=async(e,t)=>{try{let n=e.cloneNode(!0),r=``;try{let e=await fetch(`/fonts/font.css`);e.ok&&(r=await e.text(),t.isAndroid&&(r=r.replace(/@font-face\s*{/g,`@font-face {
2325  font-display: swap;`)))}catch(e){console.warn(`Mobile: Font CSS loading error, fonts may not display correctly:`,e)}let i=window.open(``,`_blank`,`width=800,height=600`);if(!i)return await jN(e);let a=`
2326    <!DOCTYPE html>
2327    <html lang="fa" dir="rtl">
2328    <head>
2329      <meta charset="UTF-8">
2330      <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
2331      <title>Print Table History</title>
2332      ${r?`<style>${r}</style>`:``}
2333      <style>
2334        @page {
2335            margin: 0;
2336            size: auto;
2337        }
2338
2339        * {
2340            box-sizing: border-box;
2341            -webkit-print-color-adjust: exact;
2342            print-color-adjust: exact;
2343        }
2344
2345        body {
2346          font-family: 'Vazir' !important;
2347          margin: 0;
2348          padding: 24px;
2349          direction: rtl;
2350            color: #000;
2351            font-size: 14px;
2352            line-height: 1.5;
2353          background: white;
2354        }
2355
2356        .topBox {
2357            border: 1px solid #1C1B1F;
2358            border-radius: 8px !important;
2359            padding: 12px 16px;
2360            margin-bottom: 20px;
2361            font-size: 16px;
2362            font-weight: bold;
2363            text-align: right;
2364            font-family: 'Vazir' !important;
2365        }
2366
2367        table {
2368            width: 100%;
2369            border-collapse: separate;
2370            border-spacing: 0;
2371            font-size: 12px;
2372            border: 1px solid #1C1B1F;
2373            border-radius: 8px;
2374            margin: 0;
2375            page-break-inside: auto;
2376            overflow: hidden;
2377            font-family: 'Vazir' !important;
2378        }
2379
2380        thead th {
2381            background-color: #EFEFEF !important;
2382            color: white !important;
2383            padding: 16px 8px;
2384            font-size: 11px;
2385            white-space: nowrap;
2386            font-weight: bold;
2387            border-bottom: 1px solid #1C1B1F;
2388            border-right: none;
2389            border-left: none;
2390            text-align: center;
2391            font-family: 'Vazir' !important;
2392        }
2393
2394        thead th:first-child {
2395            border-right: none;
2396        }
2397
2398        thead th:last-child {
2399            border-left: none;
2400        }
2401
2402        tbody tr {
2403            page-break-inside: avoid;
2404        }
2405
2406        th, td {
2407            padding: 16px 8px;
2408            text-align: right;
2409            vertical-align: top;
2410            word-break: break-word;
2411            border-right: none;
2412            border-left: none;
2413            border-top: none;
2414            border-bottom: 1px solid #E0E0E0;
2415            font-family: 'Vazir' !important;
2416        }
2417
2418        tbody tr:last-child td {
2419            border-bottom: none;
2420        }
2421
2422        tbody tr:nth-of-type(even) {
2423            background-color: #F8F8F8 !important;
2424        }
2425
2426        tbody tr:nth-of-type(odd) {
2427            background-color: #fff !important;
2428        }
2429
2430        .bold {
2431            font-weight: bold;
2432        }
2433
2434        /* Mobile-specific adjustments while keeping desktop structure */
2435        @media screen and (max-width: 768px) {
2436            body {
2437                padding: 16px;
2438                font-size: 12px;
2439            }
2440            table {
2441                font-size: 10px;
2442            }
2443            th, td {
2444                padding: 8px 4px;
2445                font-size: 10px;
2446            }
2447            .topBox {
2448                padding: 8px 12px;
2449                font-size: 14px;
2450            }
2451        }
2452
2453        @media print {
2454            body {
2455                font-family: 'Vazir' !important;
2456                -webkit-print-color-adjust: exact;
2457                print-color-adjust: exact;
2458                padding: 16px;
2459            }
2460
2461            * {
2462                font-family: 'Vazir' !important;
2463            }
2464
2465            thead th {
2466                background-color: #EFEFEF !important;
2467                color: #1C1B1F !important;
2468                padding: 12px 6px;
2469                font-family: 'Vazir' !important;
2470                font-size: 10px;
2471                border-right: none;
2472                border-left: none;
2473                border-bottom: 1px solid #1C1B1F;
2474            }
2475
2476            tbody tr:nth-of-type(even) {
2477                background-color: #F8F8F8 !important;
2478            }
2479
2480            tbody tr:nth-of-type(odd) {
2481                background-color: #fff !important;
2482            }
2483
2484            th, td {
2485                padding: 12px 6px;
2486                font-size: 10px;
2487                border-right: none;
2488                border-left: none;
2489                border-top: none;
2490                border-bottom: 1px solid #E0E0E0;
2491                font-family: 'Vazir' !important;
2492            }
2493
2494            tbody tr:last-child td {
2495                border-bottom: none;
2496            }
2497
2498            table {
2499                border: 1px solid #1C1B1F;
2500                font-size: 10px;
2501                font-family: 'Vazir' !important;
2502            }
2503
2504            .topBox {
2505                border: 1px solid #1C1B1F;
2506                padding: 8px 12px;
2507                font-size: 12px;
2508                font-family: 'Vazir' !important;
2509            }
2510        }
2511      </style>
2512    </head>
2513    <body>
2514      <div id="print-content"></div>
2515      <script>
2516        function startPrintProcess() {
2517          setTimeout(() => {
2518            window.print();
2519            setTimeout(() => {
2520              window.opener?.postMessage('print-done', '*');
2521              window.close();
2522            }, 1000);
2523          }, 500);
2524        }
2525        
2526        // FIX: Font loading logic for Android
2527        function waitForFonts() {
2528          if (!document.fonts || !document.fonts.ready) return startPrintProcess();
2529          
2530          let resolved = false;
2531          
2532          // Timeout fallback for font loading
2533          const fontTimeout = setTimeout(() => {
2534            if (!resolved) startPrintProcess();
2535          }, 3000);
2536          
2537          document.fonts.ready.then(() => {
2538            resolved = true;
2539            clearTimeout(fontTimeout);
2540            startPrintProcess();
2541          }).catch(() => {
2542            resolved = true;
2543            clearTimeout(fontTimeout);
2544            startPrintProcess();
2545          });
2546        }
2547        
2548        window.onload = function() {
2549          document.getElementById('print-content').appendChild(${t.isAndroid?`document.createRange().createContextualFragment(\`${n.outerHTML}\`)`:`cloneNode`});
2550          waitForFonts();
2551        };
2552      <\/script>
2553    </body>
2554    </html>`;return i.document.write(a),i.document.close(),await new Promise(e=>{let t=t=>{t.data===`print-done`&&(r(),e())},n=setTimeout(()=>{r(),console.warn(`Print completion timeout reached`),e()},15e3),r=()=>{window.removeEventListener(`message`,t),clearTimeout(n)};window.addEventListener(`message`,t)})}catch{return await jN(e)}},jN=async e=>{let{body:t}=document,n=t.innerHTML,r=t.style.cssText;try{t.innerHTML=`
2555      <style>
2556        @media print {
2557          body {
2558            font-family: 'Vazir' !important;
2559            font-size: 12px;
2560            direction: rtl;
2561            margin: 0;
2562            padding: 10px;
2563          }
2564          table {
2565            width: 100%;
2566            border-collapse: collapse;
2567            font-size: 11px;
2568          }
2569          th, td {
2570            border-right: none;
2571            border-left: none;
2572            border-top: none;
2573            border-bottom: 1px solid #E0E0E0;
2574            padding: 6px;
2575            text-align: right;
2576          }
2577          th {
2578            background-color: #f5f5f5;
2579            border-bottom: 1px solid #1C1B1F;
2580          }
2581          tbody tr:last-child td {
2582            border-bottom: none;
2583          }
2584        }
2585        @media screen {
2586          body { display: none; }
2587        }
2588      </style>
2589      ${e.outerHTML}
2590    `,t.style.cssText=``,window.print(),setTimeout(()=>{t.innerHTML=n,t.style.cssText=r},1e3)}catch{t.innerHTML=n,t.style.cssText=r}},Vne=async e=>{let t=document.getElementById(`print-table-iframe`);t&&t.remove();let n=``;try{let e=await fetch(`/fonts/font.css`);e.ok&&(n=await e.text(),n.replace(/url\(['"]?([^'")]+)['"]?\)/g,`url("/fonts/$1")`))}catch(e){console.warn(`Font CSS loading error, using system fonts:`,e)}let r=e.cloneNode(!0),i=document.createElement(`iframe`);i.id=`print-table-iframe`,i.style.position=`fixed`,i.style.width=`0`,i.style.height=`0`,i.style.border=`0`,i.style.visibility=`hidden`,i.style.top=`-10000px`,i.style.left=`-10000px`,i.style.zIndex=`-9999`,i.style.visibility=`visible`,document.body.appendChild(i);let a=i.contentWindow,o=i.contentDocument||a.document;o.open(),o.write(`
2591    <!DOCTYPE html>
2592    <html lang="fa" dir="rtl">
2593      <head>
2594        <meta charset="UTF-8" />
2595        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
2596        <title>Print Table History</title>
2597        <link rel="stylesheet" href="/fonts/font.css">
2598        <style>
2599          
2600    @page {
2601      margin: 0;
2602      size: auto;
2603    }
2604
2605    * {
2606      box-sizing: border-box;
2607      -webkit-print-color-adjust: exact;
2608      print-color-adjust: exact;
2609    }
2610
2611    body {
2612      font-family: 'Vazir' !important;
2613      margin: 0;
2614      padding: 24px;
2615      direction: rtl;
2616      color: #000;
2617      font-size: 14px;
2618      line-height: 1.5;
2619    }
2620
2621    .topBox {
2622      border: 1px solid #1C1B1F;
2623      border-radius: 8px !important;
2624      padding: 12px 16px;
2625      margin-bottom: 20px;
2626      font-size: 16px;
2627      font-weight: bold;
2628      text-align: right;
2629      font-family: 'Vazir' !important;
2630    }
2631
2632    table {
2633      width: 100%;
2634      border-collapse: separate;
2635      border-spacing: 0;
2636      font-size: 12px;
2637      border: 1px solid #1C1B1F;
2638      border-radius: 8px;
2639      margin: 0;
2640      page-break-inside: auto;
2641      overflow: hidden;
2642      font-family: 'Vazir' !important;
2643    }
2644
2645    thead th {
2646      background-color: #EFEFEF !important;
2647      color: white !important;
2648      padding: 16px 8px;
2649      font-size: 11px;
2650      white-space: nowrap;
2651      font-weight: bold;
2652      border-bottom: 1px solid #1C1B1F;
2653      text-align: center;
2654      font-family: 'Vazir' !important;
2655    }
2656
2657    tbody tr {
2658      page-break-inside: avoid;
2659    }
2660
2661    th, td {
2662      padding: 16px 8px;
2663      text-align: right;
2664      vertical-align: top;
2665      word-break: break-word;
2666      font-family: 'Vazir' !important;
2667    }
2668
2669    tbody tr:nth-of-type(even) {
2670      background-color: #F8F8F8 !important;
2671    }
2672
2673    tbody tr:nth-of-type(odd) {
2674      background-color: #fff !important;
2675    }
2676
2677    .bold {
2678      font-weight: bold;
2679    }
2680
2681    @media print {
2682      body {
2683        font-family: 'Vazir' !important;
2684        -webkit-print-color-adjust: exact;
2685        print-color-adjust: exact;
2686      }
2687
2688      * {
2689        font-family: 'Vazir' !important;
2690      }
2691
2692      thead th {
2693        background-color: #EFEFEF !important;
2694        color: #1C1B1F !important;
2695        padding: 16px 8px;
2696        font-family: 'Vazir' !important;
2697      }
2698
2699      tbody tr:nth-of-type(even) {
2700        background-color: #F8F8F8 !important;
2701      }
2702
2703      tbody tr:nth-of-type(odd) {
2704        background-color: #fff !important;
2705      }
2706    }
2707  
2708        </style>
2709      </head>
2710      <body></body>
2711    </html>
2712  `),o.close(),(i.contentDocument?.readyState===`complete`||i.contentDocument?.readyState===`interactive`)&&await(async()=>{try{o.body.appendChild(r);let e=[o.fonts?.ready||await Promise.resolve(),new Promise(async e=>
2712{let t=o.createElement(`div`);t.style.fontFamily=`Vazir`,t.style.fontSize=`16px`,t.style.position=`absolute`,t.style.visibility=`hidden`,t.style.top=`-9999px`,o.body.appendChild(t);let n=0,r=()=>{if(n>=10){t.parentNode&&t.remove(),e(void 0);return}let i=a.getComputedStyle(t).fontFamily.toLowerCase();i.includes(`vazir`)||i.includes(`tahoma`)?(t.parentNode&&t.remove(),e(void 0)):(n++,setTimeout(r,100))};setTimeout(r,50)})];await Promise.all(e),await new Promise(e=>{requestAnimationFrame(()=>{a.focus(),a.print(),i.remove(),e(void 0)})})}catch{i&&i.parentNode&&i.remove()}})()};typeof window<`u`&&(window.printTableHistory=AN);var Hne=e=>{let t=new Map;return e.forEach(e=>{(e[Object.keys(e)[0]]??[]).forEach(e=>{[...e.to??[],...e.from??[]].forEach(e=>{!wN(e)||!e.id||t.has(e.id)||t.set(e.id,e)})})}),[...t.values()]},MN=({subject:e,number:t,data:n,historyType:r=`letter`})=>{let{t:i}=Ye(),a=Hne(n);(0,J.useEffect)(()=>{let e=e=>{(e.ctrlKey||e.metaKey)&&e.code===`KeyP`&&document.getElementById(`printableDiv`)&&(e.preventDefault(),e.stopPropagation(),AN())};return window.addEventListener(`keydown`,e,!0),()=>{window.removeEventListener(`keydown`,e,!0)}},[]);let o=e=>{let{type:t,to:n=[],from:o=[],status:s,fields:c=[],description:l,tags:u=[],addedTags:d,removedTags:f}=e,p=u.map(e=>i(`forwardLetter.labels.${e}`)).join(`، `),m=p?` - ${p}`:``,h=kN(n,{includeRelatedGroups:t===`forward`,memberLabel:t===`forward`?i(`letterHistory.labels.member`):``,groupLookup:a}),g=kN(o,{includeRelatedGroups:t===`forward-reverse`,nestRelatedGroupsUnderPeople:t===`forward-reverse`,memberLabel:i(`letterHistory.labels.member`),groupLookup:a}),_=()=>{switch(t){case`assign`:return`${i(`solutionHistory.labels.task.card-collapse.assign`)}: ${n.length?n.map(e=>Me(e.user,e.position)).join(`، `):`-`}`;case`created`:return i(`solutionHistory.labels.task.card-collapse.created`);case`updateTags`:return`${d?.count>0?i(`solutionHistory.labels.task.tags.added`):`-`} ${f?.count>0?i(`solutionHistory.labels.task.tags.removed`):``}`;default:return s?i(`solutionHistory.labels.task.card-collapse.${s}`):c.length>0?c.filter(e=>e!==`organization`).map(e=>i(`solutionHistory.labels.task.fields.${e}`)).join(`، `):l||`-`}},v=e=>e===`inviteEmployee`||e===`inviteContact`?`به جلسه`:e===`removeEmployee`||e===`removeContact`?`از جلسه`:``,y=()=>{switch(t){case`inviteEmployee`:case`removeEmployee`:return`${n.map(e=>Me(e.user,e.position)).join(`، `)} ${v(t)} ${i(`solutionHistory.labels.meeting.card-collaspe.${t}`)}`;case`inviteContact`:case`removeContact`:return`${n.map(e=>SN(e)).join(`، `)} ${v(t)} ${i(`solutionHistory.labels.meeting.card-collaspe.${t}`)}`;case`cancel`:return`${i(`solutionHistory.labels.meeting.cancel-description`)}: ${l||`-`}`;case`createResolution`:case`updateResolution`:case`deleteResolution`:{let n=e.resolution?.title||e.resolutionTitle||e.title;return n?i(`solutionHistory.labels.meeting.card-collaspe.${t}`,{title:n}):i(`solutionHistory.labels.meeting.${t}`)}case`assignMeetingResolutionTask`:case`unassignMeetingResolutionTask`:{let{taskTitle:n,resolutionTitle:r}=bN(e);return n&&r?i(`solutionHistory.labels.meeting.card-collaspe.${t}`,{taskTitle:n,resolutionTitle:r}):i(`solutionHistory.labels.meeting.${t}`)}case`updateTags`:return`${d?.count>0?i(`solutionHistory.labels.meeting.tags.added`):`-`} ${f?.count>0?i(`solutionHistory.labels.meeting.tags.removed`):``}`;default:return l||`-`}};switch(t){case`forward`:return`${i(`letterHistory.labels.forward-to`)}: ${h}${m}${l?` - ${i(`correspondence.letters.labels.forwardDescription`)} ${l}`:``}`;case`forward-reverse`:return`${i(`letterHistory.labels.revertForwardFrom`)} ${g}${m}${l?` - ${i(`correspondence.letters.labels.forwardDescription`)} ${l}`:``}`;case`terminate`:case`void`:return l||`-`;case`updateTags`:if(r===`letter`)return`${d?.count>0?i(`letterHistory.tags.added`):`-`} ${f?.count>0?i(`letterHistory.tags.removed`):``}`;break;default:break}return r===`task`?_():r===`meeting`?y():c.length>0?c.map(e=>i(`letterHistory.fields.${e}`)).join(`، `):l||`-`},s=(e=>e.flatMap(e=>e[Object.keys(e)[0]].map(e=>({date:Ve(e.at),time:ke(e.at),by:Me(e.by?.user??``,e.by?.position??``),type:i(r===`letter`?`letterHistory.labels.${e.type}`:`solutionHistory.labels.${r}.${e.type}`),details:o(e)}))))(n),c=(e,t,n)=>{let r=e=>l(`span`,{dir:`ltr`,children:e||`-`});switch(e){case`letter`:return d(f,{children:[`سوابق نامه با شماره `,r(n),` و موضوع `,r(t)]});case`task`:return d(f,{children:[`سوابق کار با عنوان `,r(t)]});case`meeting`:return d(f,{children:[`سوابق جلسه با عنوان `,r(t)]});default:return null}},u={fontFamily:`Vazir, sans-serif`,direction:`rtl`,fontSize:`14px`,lineHeight:`1.5`},p={border:`1px solid #1C1B1F`,borderRadius:`8px`,padding:`12px 16px`,marginBottom:`20px`,fontSize:`16px`,fontWeight:`bold`,textAlign:`right`,fontFamily:`Vazir, sans-serif`},m={width:`100%`,borderCollapse:`separate`,borderSpacing:`0`,fontSize:`12px`,border:`1px solid #1C1B1F`,borderRadius:`8px`,margin:`0`,fontFamily:`Vazir, sans-serif`},h={backgroundColor:`#7D7986`,color:`white`,padding:`16px 8px`,fontSize:`11px`,whiteSpace:`nowrap`,fontWeight:`bold`,borderBottom:`1px solid #1C1B1F`,textAlign:`center`,fontFamily:`Vazir, sans-serif`}
2712,g={padding:`16px 8px`,verticalAlign:`top`,wordBreak:`break-word`,fontFamily:`Vazir, sans-serif`};return d(`div`,{style:u,children:[l(`div`,{className:`topBox`,style:p,children:c(r,e,t)}),d(`table`,{style:m,children:[l(`thead`,{children:d(`tr`,{children:[l(`th`,{style:{...h,width:`44px`},children:`ردیف`}),l(`th`,{style:{...h,width:`70px`},children:`تاریخ`}),l(`th`,{style:{...h,width:`45px`},children:`ساعت`}),l(`th`,{style:{...h,width:`135px`},children:`توسط`}),l(`th`,{style:{...h,width:`92px`},children:`عملیات`}),l(`th`,{style:{...h,width:`157px`},children:`جزئیات`})]})}),l(`tbody`,{children:s.map((e,t)=>d(`tr`,{style:{backgroundColor:t%2==0?`#fff`:`#F8F8F8`},children:[l(`td`,{style:{...g,width:`44px`,textAlign:`center`},children:t+1}),l(`td`,{style:{...g,width:`70px`,textAlign:`center`},children:e.date}),l(`td`,{style:{...g,width:`45px`,textAlign:`center`},children:e.time}),l(`td`,{style:{...g,width:`135px`,textAlign:`right`},children:e.by}),l(`td`,{style:{...g,width:`92px`,textAlign:`right`},children:e.type}),l(`td`,{style:{...g,width:`157px`,textAlign:`right`,whiteSpace:`pre-wrap`},children:e.details})]},t))})]})]})},Une=B()((e,{maxWidthSize:t,fullscreen:n})=>({dialogRoot:{borderRadius:n?e.spacing(0):e.spacing(2),boxShadow:`0px 1px 8px rgba(0, 0, 0, 0.12)`},titleRoot:{borderBottom:`1px solid #d1d1d1`,margin:e.spacing(0,0,1),"& p":{textAlign:`center`,fontSize:`16px`,color:e.palette.text.dark,fontWeight:500}},closeButton:{position:`absolute`,right:e.spacing(1),top:4,color:e.palette.text.gray},dialogContentRoot:{position:`relative`,paddingTop:`${e.spacing(1)} !important`},dialogActionRoot:{borderTop:`1px solid #d1d1d1`,padding:e.spacing(1,2)},backButton:{top:`10px`,position:`absolute`,right:`24px`,color:`#49454F`,fontSize:16,fontWeight:400},textBack:{paddingRight:8},maxWidth:{maxWidth:t??``},headerActionsContainer:{position:`absolute`,left:16,top:8,display:`flex`,gap:8}})),NN=e=>{let{title:t,onClose:n,isTitleShow:r=!1,dialogClasses:i,contentDialogClasses:a,id:o,children:s,closeButtonType:c,backButtonLabel:u,maxWidthSize:f,dialogActionChildren:p,dialogActionClasses:m,showTopBorderInActions:h,titleDialogClasses:g,dialogHeaderActions:_,backButtonProps:v={disabled:!1},closeButtonProps:y={disabled:!1},dialogHeaderActionsContainerProps:b,dialogHeaderActionButtonClassName:x,...S}=e,{classes:C,cx:w}=Une({maxWidthSize:f,fullscreen:e?.fullScreen}),{t:T}=Ye(),{className:E,...D}=b||{};return d(Mr,{...S,onClose:n,"aria-labelledby":`form-dialog-title`,title:void 0,classes:{paper:w(C.dialogRoot,i?.paper,{[C.maxWidth]:!!f})},children:[r&&d(Ir,{component:`div`,className:w(C.titleRoot,g),children:[l(St,{variant:`body1`,children:t}),c===`back`?l(fi,{className:C.backButton,onClick:n,startIcon:l(ov,{}),disabled:v.disabled,children:u||``}):l(ui,{"aria-label":`close`,tooltip:T(`tooltip.close`)||``,className:C.closeButton,onClick:n,disabled:y.disabled,children:l(ci,{})}),l(`div`,{className:w(C.headerActionsContainer,E),...D,children:_&&_?.map((e,t)=>l(ui,{"aria-label":`action-${t}`,tooltip:e.tooltip||``,onClick:e.onClick,disabled:e.disabled||!1,className:w(x,e.className??``),placementTooltip:e.placementTooltip,children:e.icon},e.icon?.toString()))})]}),l(Pr,{id:o||`dialog-content`,classes:{root:w(C.dialogContentRoot,a)},children:s}),p&&l(Nr,{classes:{root:w(h&&C.dialogActionRoot,m)},children:p})]})},Wne=B()(e=>({text:{margin:10,textAlign:`center`,fontWeight:`bold`,color:`#111111`},deleteDialog:{padding:e.spacing(3),alignItems:`center`},normalFont:{fontWeight:`normal`},marginRight:{marginLeft:15}}));function Gne(e){let{classes:t,cx:n}=Wne();return d(Mr,{open:e.opened,onClose:e.onCloseDialog,"aria-labelledby":`alert-dialog-title`,"aria-describedby":`alert-dialog-description`,classes:{paper:t.deleteDialog},children:[l(Pr,{children:l(Fr,{id:`alert-dialog-description`,children:l(St,{variant:`body1`,className:t.text,children:`آیا از حذف تصویر مطمئن هستید؟`})})}),d(Nr,{disableSpacing:!0,children:[l(nr,{variant:`contained`,onClick:e.onSubmit,id:`submit-delete-image`,className:n(t.normalFont,t.marginRight),children:`بله، حذف شود`}),l(nr,{id:`cancel-delete-image`,variant:`outlined`,onClick:e.onCloseDialog,children:`خیر`})]})]})}var Kne=B()(e=>({root:{display:`flex`,alignItems:`flex-end`,flexFlow:`row wrap`},rootMobile:{display:`flex`,alignItems:`center`,justifyContent:`center`},imagePreview:{},noImage:{width:100,height:100,borderRadius:`50%`,background:`linear-gradient(to bottom, #a083f1, #9ce1dc 130%)`,display:`flex`,alignItems:`center`,flexDirection:`column`,justifyContent:`center`,color:e.palette.background.default,"& svg":{fontSize:`2.5rem`,marginBottom:5}}
2712,image:{width:96,height:96,borderRadius:`50%`,display:`flex`,position:`relative`,overflow:`hidden`,border:`1px solid #d1d1d1`,alignItems:`center`,justifyContent:`center`,"& img":{color:`transparent`,width:`100%`,height:`100%`,objectFit:`cover`,textAlign:`center`,textIndent:1e4}},rootPreview:{position:`relative`},chooseImage:{marginRight:e.spacing(2),marginLeft:e.spacing(2)},previewImageMobile:{width:100,height:100,borderRadius:`50%`,border:`1px solid #d1d1d1`,position:`relative`,display:`flex`,justifyContent:`center`,alignItems:`center`,flexFlow:`column`,color:e.palette.background.previewImage,overflow:`hidden`,"& svg":{fontSize:`2.5rem`},"& img":{position:`absolute`,width:`100%`}},descriptionTextBtn:{height:40},descriptionText:{display:`block`,marginTop:e.spacing(1),color:e.palette.text.gray,"& p":{fontWeight:`normal`}},changeImage:{width:34,height:34,borderRadius:`50%`,position:`absolute`,bottom:0,left:0,background:e.palette.primary.main,display:`flex`,alignItems:`center`,justifyContent:`center`,"& svg":{fontSize:`1.5rem`,color:e.palette.background.default,padding:2,margin:0,lineHeight:2}},text:{margin:10,textAlign:`center`,fontWeight:`bold`,color:`#111111`},uploadSignature:{backgroundImage:`linear-gradient(to right, #d1d1d1 60%, transparent 50%), linear-gradient(to right, #d1d1d1 60%, transparent 60%), linear-gradient(to bottom, #d1d1d1 60%, transparent 60%), linear-gradient(to bottom, #d1d1d1 60%, transparent 60%)`,backgroundPosition:`left top, left bottom, left top, right top`,backgroundRepeat:` repeat-x, repeat-x, repeat-y, repeat-y`,backgroundSize:`20px 1px, 20px 1px, 1px 20px, 1px 20px`,textAlign:`center`,borderRadius:8,margin:`0 auto`,position:`relative`,"& .labelUpload":{display:`flex`,flexFlow:`column`,justifyContent:`center`,alignItems:`center`,flexWrap:`nowrap`,flexDirection:`column`,padding:15,height:`100%`,width:e=>e.previewImage?`100%`:`unset`,objectFit:e=>e.previewImage?`contain`:`unset`,"& > div":{width:e=>e.previewImage?`100%`:`unset`,height:e=>e.previewImage?`100%`:`unset`,objectFit:e=>e.previewImage?`contain`:`unset`,"& >img":{width:e=>e.previewImage?`100%`:`unset`,height:e=>e.previewImage?`100%`:`unset`,objectFit:e=>e.previewImage?`contain`:`unset`}}},"& .add":{color:e.palette.primary.main,fontWeight:`bold`},"& .addSvg":{width:32,height:32},"& button":{height:40},"& svg":{color:e.palette.primary.main,width:`1.1rem`,margin:`0 8px 0 0`},"& .description":{color:e.palette.text.gray,textAlign:`right`,marginTop:e.spacing(1)},"& p":{margin:0,lineHeight:2,fontWeight:`normal`}},uploadSignatureFirst:{width:375,height:233,display:`flex`,alignItems:`center`,justifyContent:`center`,"& .description p":{fontSize:`0.875rem !important`},[e.breakpoints.down(`lg`)]:{width:`100%`}},signature:{display:`flex`,justifyContent:`center`,"& .signatureBox":{width:170,height:170,border:`solid 1px #d1d1d1`,padding:7,borderRadius:8,backgroundColor:`#ffffff`,display:`flex`,alignItems:`center`},"& img":{width:`80%`,flexGrow:2}},signatureMobile:{margin:`auto`,width:230,height:230,border:`solid 1px #d1d1d1`,padding:7,borderRadius:8,backgroundColor:`#ffffff`,display:`flex`,alignItems:`center`,position:`relative`,"& .signatureBox":{width:`100%`},"& .PreviewSignatureMobile":{position:`absolute`,top:5,right:5,maxHeight:220,"& svg":{fill:e.palette.primary.main,background:`#f5ecff`,borderRadius:`50%`,padding:5,fontSize:30}},"& img":{width:`100%`,flexGrow:2}},containerUpload:{margin:`0 16px 0 0`,maxHeight:170,maxWidth:212},buttonFile:{maxHeight:`100%;`},d_flex:{display:`flex`},deleteImageDesktop:{width:`100%`,textAlign:`right`,"& button":{color:e.palette.text.link,borderBottom:`1px solid ${e.palette.text.link}`,borderRadius:0,padding:0,marginRight:17,height:28,fontWeight:100,marginTop:3},"& button:hover":{background:`unset`}},editBtn:{border:`1px solid ${e.palette.primary.main}`,borderRadius:4,display:`flex`,alignItems:`center`,fontSize:14,color:e.palette.primary.main,height:40,cursor:`pointer`,padding:`6px 16px`},previewImageSignature:{display:`flex`,flexDirection:`column`,alignItems:`center`,"& h6":{height:30,color:e.palette.text.gray}},deleteDialog:{padding:e.spacing(3),alignItems:`center`},normalFont:{fontWeight:`normal`},marginRight:{marginLeft:15},hideImage:{display:`none`},paperAnchorBottom:{borderTopRightRadius:e.spacing(1),borderTopLeftRadius:e.spacing(1),color:e.palette.text.gray},redText:{color:e.palette.text.error},paddingList:{padding:e.spacing(3)},avatarImg:{},rootPreviewSignature:{cursor:`pointer`,width:e=>e.previewImage?`100%`:`unset`,height:e=>e.previewImage?`100%`:`unset`,objectFit:e=>e.previewImage?`contain`:`unset`,"& > div":{width:e=>e.previewImage?`100%`:`unset`,height:e=>e.previewImage?`100%`:`unset`,objectFit:e=>e.previewImage?`contain`:`unset`,"& >img":{width:e=>e.previewImage?`100%`:`unset`,height:e=>e.previewImage?`100%`:`unset`,objectFit:e=>e.previewImage?`contain`:`unset`}}}})),PN=({imageProps:e,profile:t,documents:n,documentsAsync:r,previewImageChange:i,onDelete:a})=>{let{typeOfPage:o,typeOfImage:s,imageId:c,setFile:u,desktopTextBtn:p,description:m,mobileText:h,data:g,style:_,imageStyle:v,setIsImageValid:y,hideImageSignature:b,size:x}=e,{classes:S,cx:C}=Kne(),w=Dt(e=>e.breakpoints.down(`sm`)),[T,E]=(0,J.useState)(!1),[D,O]=(0,J.useState)(!1),k=()=>{O(!1)};(0,J.useEffect)(()=>{i(``),u&&u(null)},[]);let A=e=>{e.preventDefault();let t=e.target.files[0];if(t){u(t);let e=new FileReader;e.onloadend=()=>
2712{if(t.size<(x?x*10**6:10**6)){if(y(!1),s===`signature`&&t.type!==`image/png`){y(!0),he.error(`فرمت فایل امضا باید png باشد`);return}i(e.result),E(!1)}else y(!0),he.error(`حجم هر فایل باید کمتر از ${x} مگابایت باشد.`)},e.readAsDataURL(t)}},j=e=>{e.preventDefault(),w?(E(!1),i(``),u(`delete`),y(!1)):(O(!0),y(!1))},M=()=>{O(),i(``),u(`delete`),a?.()};(0,J.useEffect)(()=>{c&&(n.documents?.fetched[c]||r({path:c,responseType:`arraybuffer`}))},[c]);let N=e=>t=>{t&&t.type===`keydown`&&(t.key===`Tab`||t.key===`Shift`)||E(e)};return d(f,{children:[s===`profile`?w?l(G,{component:`div`,className:S.rootMobile,children:d(G,{className:S.rootPreview,children:[t.previewImage?l(G,{className:S.image,children:l(`img`,{src:t.previewImage,alt:t.previewImage})}):c?l(G,{className:S.image,children:l(`img`,{src:n.documents?.fetched[c]?.data,alt:n.documents?.fetched[c]?.data})}):l(`label`,{onClick:N(!0),className:S.d_flex,children:d(G,{className:S.noImage,id:`no-image`,children:[l(`img`,{src:`/assets/images/Profile-Picture.svg`,alt:`profile-picture`}),l(St,{variant:`body2`,children:h})]})}),c&&l(G,{className:S.changeImage,id:`change-image`,children:l(`label`,{onClick:N(!0),className:S.d_flex,children:l(H_,{})})}),l(zr,{anchor:`bottom`,disableSwipeToOpen:!0,open:T,onClose:N(!1),onOpen:N(!0),classes:{paperAnchorBottom:S.paperAnchorBottom},children:d(Gr,{classes:{padding:S.paddingList},children:[l(Kr,{className:S.descriptionText,children:m.map(e=>l(G,{children:d(St,{variant:`subtitle2`,children:[`- `,e]})}))}),l(Lr,{}),l(Kr,{children:d(Xr,{children:[l(`input`,{accept:`image/*`,style:{display:`none`},id:`button-file`,type:`file`,onChange:A}),l(`label`,{htmlFor:`button-file`,children:`انتخاب از گالری`})]})}),c&&l(Kr,{button:!0,children:l(Xr,{classes:{root:S.redText},primary:`حذف تصویر`,onClick:j})})]})})]})}):d(G,{component:`div`,className:S.root,children:[l(G,{className:S.imagePreview,children:t.previewImage?l(G,{className:S.image,children:l(`img`,{src:t.previewImage,alt:t.previewImage})}):c?l(G,{className:S.image,children:l(`img`,{id:`image`,src:n.documents?.fetched[c]?.data,alt:n.documents?.fetched[c]?.data})}):d(G,{className:S.noImage,id:`no-image`,children:[l(`img`,{src:`/assets/images/Profile-Picture.svg`,alt:`profile-picture`}),l(St,{variant:`body2`,children:h})]})}),d(G,{className:S.chooseImage,children:[l(`input`,{accept:`image/*`,style:{display:`none`},id:`button-file`,type:`file`,onChange:A}),l(`label`,{htmlFor:`button-file`,className:S.buttonFile,children:l(nr,{id:`choose-new-image-button`,component:`span`,variant:`outlined`,className:C(S.descriptionTextBtn),children:p})}),l(G,{className:S.descriptionText,children:m.map(e=>l(St,{variant:`subtitle2`,children:e},m.indexOf(e)))})]}),o!==`create`&&c&&l(G,{className:S.deleteImageDesktop,children:l(nr,{id:`delete-image-button`,onClick:j,children:`حذف تصویر`})})]}):s===`signature`?w?c?d(G,{className:S.signatureMobile,children:[l(G,{className:`signatureBox`,children:l(`img`,{id:`signature-imge`,src:n.documents.fetched[c]?.data,alt:n.documents.fetched[c]?.data,className:b?S.hideImage:``})}),d(G,{id:`upload-signature`,className:C(S.uploadSignatureMobile),children:[l(`input`,{accept:`image/*`,style:{display:`none`},id:`button-file`,type:`file`,onChange:chooseImageSignatureMobile}),d(`label`,{htmlFor:`button-file`,className:`PreviewSignatureMobile`,children:[l(sv,{}),t.previewImage&&l(G,{className:S.previewImageSignature,children:l(`img`,{src:t.previewImage,alt:t.previewImage})})]})]})]}):d(f,{children:[l(St,{variant:`body1`,id:`no-signature-text`,className:S.text,children:`شما در حال حاضر امضا تعریف نکرده اید`}),d(G,{id:`upload-signature`,className:C(S.uploadSignature,c?``:S.uploadSignatureFirst),children:[l(`input`,{accept:`image/*`,style:{display:`none`},id:`button-file`,type:`file`,onChange:A}),l(`label`,{htmlFor:`button-file`,className:C(S.rootPreviewSignature,`labelUpload`),children:t.previewImage?l(G,{children:l(`img`,{src:t.previewImage,alt:t.previewImage,id:`preview-image`})}):d(f,{children:[l(St,{variant:`body1`,className:`add`,children:`اضافه کردن امضا`}),l(pi,{className:`addSvg`}),l(G,{className:`description`,children:m.map(e=>
2712l(St,{variant:`subtitle1`,children:e},m.indexOf(e)))})]})})]})]}):c?d(G,{className:S.signature,children:[l(G,{className:`signatureBox`,children:l(`img`,{src:n.documents.fetched[c]?.data,alt:n.documents.fetched[c]?.data})}),d(G,{className:C(S.uploadSignature,S.containerUpload),children:[l(`input`,{accept:`image/*`,style:{display:`none`},id:`button-file`,type:`file`,onChange:A}),l(`label`,{htmlFor:`button-file`,className:`labelUpload`,children:t.previewImage?d(f,{children:[l(St,{variant:`subtitle1`,children:`پیش نمایش`}),l(G,{className:S.previewImageSignature,children:l(`img`,{src:t.previewImage,alt:t.previewImage})})]}):d(f,{children:[d(St,{className:S.editBtn,children:[l(sv,{}),` ویرایش امضا`]}),l(G,{className:`description`,children:m.map(e=>l(St,{variant:`body2`,children:e},m.indexOf(e)))})]})})]})]}):d(f,{children:[l(St,{variant:`body1`,id:`no-signature-text`,className:S.text,children:`شما در حال حاضر امضا تعریف نکرده اید`}),d(G,{className:C(S.uploadSignature,c?``:S.uploadSignatureFirst),id:`upload-signature`,children:[l(`input`,{accept:`image/*`,style:{display:`none`},id:`button-file`,type:`file`,onChange:A}),l(`label`,{htmlFor:`button-file`,className:S.rootPreviewSignature,children:t.previewImage?l(f,{children:l(G,{children:l(`img`,{src:t.previewImage,alt:t.previewImage,id:`preview-image`})})}):d(f,{children:[l(St,{variant:`body1`,id:`add-signature`,children:`اضافه کردن امضا`}),l(pi,{className:`addSvg`}),l(G,{className:`description`,id:`signature-description`,children:m.map(e=>l(St,{variant:`subtitle1`,children:e},m.indexOf(e)))})]})})]})]}):s===`showProfile`?l(G,{style:_,children:l(Dr,{alt:`${g?.firstName} ${g?.lastName}`,src:n.documents?.fetched[c]?.data,style:v,classes:{img:S.avatarImg}})}):l(f,{}),l(Gne,{opened:D,onSubmit:M,onCloseDialog:k})]})},qne=e=>{let{documents:t,profile:n}=e;return{documents:t,profile:n}};PN.propTypes={onDelete:Z.default.func,imageProps:Z.default.shape({imageId:Z.default.string,typeOfImage:Z.default.string,typeOfPage:Z.default.string,data:Z.default.shape({firstName:Z.default.string.isRequired,lastName:Z.default.string.isRequired}),style:Z.default.shape({}),description:Z.default.string,desktopTextBtn:Z.default.string,mobileText:Z.default.string,setFile:Z.default.func,imageStyle:Z.default.shape({}),setIsImageValid:Z.default.func,hideImageSignature:Z.default.bool}).isRequired,profile:Z.default.shape({previewImage:Z.default.string}),documents:Z.default.shape({documents:Z.default.shape({fetched:Z.default.shape({data:Z.default.arrayOf(Z.default.shape({id:Z.default.string})),state:Z.default.string})})}).isRequired,documentsAsync:Z.default.func,previewImageChange:Z.default.func};var FN=Ze(qne,{documentsAsync:RC,previewImageChange:iE})(PN),Jne=B()({typography:{fontSize:12}}),Yne=({data:e,type:t})=>{let{t:n}=Ye(),{classes:r}=Jne(),{taskTitle:i,resolutionTitle:a}=bN(e);return l(q,{children:l(si,{variant:`body1`,className:r.typography,children:i&&a?n(`solutionHistory.labels.meeting.card-collaspe.${t}`,{taskTitle:i,resolutionTitle:a}):n(`solutionHistory.labels.meeting.${t}`)})})},Xne=B()(e=>({tile:{fontSize:12,display:`flex`,alignItems:`center`,"& svg":{width:`16px`,marginLeft:e.spacing(.5)}},description:{fontSize:12}})),Zne=({data:e})=>{let{description:t}=e,{t:n}=Ye(),{classes:r}=Xne();return d(q,{children:[d(si,{className:r.tile,children:[l(_v,{}),n(`solutionHistory.labels.meeting.cancel-description`),`:`]}),l(si,{className:r.description,children:t})]})},Qne=B()({typography:{fontSize:12}}),$ne=({data:e})=>{let{to:t,type:n}=e,r=t.map(e=>SN(e)),{t:i}=Ye(),{classes:a}=Qne();return l(q,{children:d(si,{variant:`body1`,className:a.typography,children:[r.join(`، `),` `,i(`solutionHistory.labels.meeting.card-collaspe.${n}`)]})})},ere=e=>[e.resolution?.title,e.resolutionTitle,e.title].find(e=>typeof e==`string`&&e.trim().length>0)?.trim()??``,tre=B()({typography:{fontSize:12}}),nre=({data:e,type:t})=>{let{t:n}=Ye(),{classes:r}=tre(),i=ere(e);return l(q,{children:l(si,{variant:`body1`,className:r.typography,children:i?n(`solutionHistory.labels.meeting.card-collaspe.${t}`,{title:i}):n(`solutionHistory.labels.meeting.${t}`)})})},rre=B()({typography:{fontSize:12}}),ire=({data:e})=>{let{to:t,type:n}=e,r=t.map(e=>Me(e.user,e.position)),{t:i}=Ye(),{classes:a}=rre();return l(q,{children:d(si,{variant:`body1`,className:a.typography,children:[r.join(`، `),` `,i(`solutionHistory.labels.meeting.card-collaspe.${n}`)]})})},are=B()(e=>({title:{fontSize:12,display:`flex`,alignItems:`center`,"& svg":{width:`16px`,marginLeft:e.spacing(.5)}},description:{fontSize:12}})),IN=({data:e})=>{let{addedTags:t,removedTags:n,solutionType:r}=e,{t:i}=Ye(),{classes:a}=are();return d(`ul`,{children:[t?.count>0&&l(`li`,{children:l(si,{className:a.title,children:i(`solutionHistory.labels.${r}.tags.added`)})}),n?.count>0&&l(`li`,{children:l(si,{className:a.title,children:i(`solutionHistory.labels.${r}.tags.removed`)})})]})},ore=B()(e=>({collapseComponent:{textAlign:`right`,margin:e.spacing(.5,0)},alignCenter:{textAlign:`center`}})),sre=({collapseCondition:e,data:t})=>{let{type:n}=t,{classes:r}=ore();return d(f,{children:[l(q,{className:r.alignCenter,children:!e&&l(hi,{})}),l(q,{children:d(gr,{in:e,children:[l(q,{className:r.collapseComponent,children:(()=>{switch(n){case`inviteEmployee`:case`removeEmployee`:return l(ire,{data:t});case`inviteContact`:case`removeContact`:return l($ne,{data:t});case`cancel`:return l(Zne,{data:t});case`createResolution`:case`updateResolution`:case`deleteResolution`:return l(nre,{data:t,type:n});case`assignMeetingResolutionTask`:case`unassignMeetingResolutionTask`:return l(Yne,{data:t,type:n});case`updateTags`:return l(IN,{data:{...t,solutionType:`meeting`}})}return l(f,{})})()}),l(q,{className:r.alignCenter,children:l(gv,{})})]})})]})},cre=B()({typography:{fontSize:12}}),lre=({data:e})=>{let{to:t,type:n}=e,{t:r}=Ye(),{classes:i}=cre();return d(q,{children:[l(si,{variant:`body1`,className:i.typography,children:r(`solutionHistory.labels.task.card-collapse.${n}`)}),t.map((e,t)=>l(si,{children:Me(e.user,e.position)},t))]})},ure=B()(e=>({typography:{fontSize:12},updateTextInfo:{marginBottom:e.spacing(.5),textAlign:`start`,"& svg":{width:e.spacing(2),height:e.spacing(2)},"& p":{fontSize:`12px`,marginRight:e.spacing(.5)}},alignCenter:{alignItems:`center`},forwardTextInfo:{display:`flex`,marginBottom:e.spacing(.5),textAlign:`start`,"& svg":{width:e.spacing(2),height:e.spacing(2)},"& p":{fontSize:`12px`,marginRight:e.spacing(.5)}}})),dre=({data:e})=>{let{fields:t}=e,{t:n}
2712=Ye(),{classes:r,cx:i}=ure();return l(q,{children:l(si,{variant:`body1`,className:r.typography,children:l(`ul`,{className:r.updateTextInfo,children:t?.filter(e=>e!==`organization`)?.map?.(e=>l(`li`,{className:i(r.alignCenter,r.forwardTextInfo),children:l(si,{children:n(`solutionHistory.labels.task.fields.${e}`)})},e))})})})},fre=B()({typography:{fontSize:12}}),pre=({data:e})=>{let{status:t}=e,{t:n}=Ye(),{classes:r}=fre();return l(q,{children:l(si,{variant:`body1`,className:r.typography,children:n(`solutionHistory.labels.task.card-collapse.${t}`)})})},mre=B()(e=>({collapseComponent:{textAlign:`right`,margin:e.spacing(.5,0)},alignCenter:{textAlign:`center`}})),hre=({collapseCondition:e,data:t})=>{let{type:n}=t,{classes:r}=mre();return d(f,{children:[l(q,{className:r.alignCenter,children:!e&&l(hi,{})}),l(q,{children:d(gr,{in:e,children:[l(q,{className:r.collapseComponent,children:(()=>{switch(n){case`create`:case`update`:case`addTaskAttachments`:case`removeTaskAttachments`:return l(dre,{data:t});case`assign`:case`clearAssign`:return l(lre,{data:t});case`updateStatus`:return l(pre,{data:t});case`updateTags`:return l(IN,{data:{...t,solutionType:`task`}})}return l(f,{})})()}),l(q,{className:r.alignCenter,children:l(gv,{})})]})})]})},gre={letter:B()(e=>({forward:{background:e.palette.letterHistoryCard.forward,cursor:`pointer`,transition:`background 0.1s ease-in-out`,"& #card-type":{color:e.palette.letterHistoryCard.forward},"& #forward-tag":{color:e.palette.letterHistoryCard.forward},"&:hover":{background:`rgba(77, 110, 219, 0.82)`}},compose:{background:e.palette.letterHistoryCard.compose,"& #card-type":{color:e.palette.letterHistoryCard.compose}},receipt:{background:e.palette.letterHistoryCard.receipt,"& #card-type":{color:e.palette.letterHistoryCard.receipt}},terminate:{background:e.palette.letterHistoryCard.terminate,"& #card-type":{color:e.palette.letterHistoryCard.terminate}},discard:{background:e.palette.letterHistoryCard.discard,"& #card-type":{color:e.palette.letterHistoryCard.discard}},sign:{background:e.palette.letterHistoryCard.sign,"& #card-type":{color:e.palette.letterHistoryCard.sign}},number:{background:e.palette.letterHistoryCard.number,"& #card-type":{color:e.palette.letterHistoryCard.number}}})),meeting:B()(e=>({hover:{"&:hover":{opacity:.85,transition:`0.1s ease-in`}},create:{background:e.palette.meetingHistoryCard.create,"& #card-type":{color:e.palette.meetingHistoryCard.create}},inviteEmployee:{cursor:`pointer`,background:e.palette.meetingHistoryCard.inviteEmployee,"& #card-type":{color:e.palette.meetingHistoryCard.inviteEmployee}},inviteContact:{cursor:`pointer`,background:e.palette.meetingHistoryCard.inviteEmployee,"& #card-type":{color:e.palette.meetingHistoryCard.inviteEmployee}},removeEmployee:{cursor:`pointer`,background:e.palette.meetingHistoryCard.inviteEmployee,"& #card-type":{color:e.palette.meetingHistoryCard.inviteEmployee}},removeContact:{cursor:`pointer`,background:e.palette.meetingHistoryCard.inviteEmployee,"& #card-type":{color:e.palette.meetingHistoryCard.inviteEmployee}},createMinutes:{background:e.palette.meetingHistoryCard.createMinutes,"& #card-type":{color:e.palette.meetingHistoryCard.createMinutes}},createResolution:{cursor:`pointer`,background:e.palette.meetingHistoryCard.createResolution,"& #card-type":{color:e.palette.meetingHistoryCard.createResolution}},updateResolution:{cursor:`pointer`,background:e.palette.meetingHistoryCard.updateResolution,"& #card-type":{color:e.palette.meetingHistoryCard.updateResolution}},deleteResolution:{cursor:`pointer`,background:e.palette.meetingHistoryCard.deleteResolution,"& #card-type":{color:e.palette.meetingHistoryCard.deleteResolution}},assignMeetingResolutionTask:{cursor:`pointer`,background:e.palette.meetingHistoryCard.assignMeetingResolutionTask,"& #card-type":{color:e.palette.meetingHistoryCard.assignMeetingResolutionTask}},unassignMeetingResolutionTask:{cursor:`pointer`,background:e.palette.meetingHistoryCard.unassignMeetingResolutionTask,"& #card-type":{color:e.palette.meetingHistoryCard.unassignMeetingResolutionTask}},updateMinutes:{background:e.palette.meetingHistoryCard.updateMinutes,"& #card-type":{color:e.palette.meetingHistoryCard.updateMinutes}},update:{background:e.palette.meetingHistoryCard.update,"& #card-type":{color:e.palette.meetingHistoryCard.update}},cancel:{cursor:`pointer`,background:e.palette.meetingHistoryCard.cancel,"& #card-type":{color:e.palette.meetingHistoryCard.cancel}},finish:{cursor:`pointer`,background:e.palette.meetingHistoryCard.finish,"& #card-type":{color:e.palette.meetingHistoryCard.finish}},updateTags:{background:e.palette.letterHistoryCard.updateTags,"& #card-type":{color:e.palette.letterHistoryCard.updateTags},"& ul":{listStyle:`disc`},cursor:`pointer`}})),task:B()(e=>({hover:{"&:hover":{opacity:.85,transition:`0.1s ease-in`}},create:{background:e.palette.taskHistoryCard.create,"& #card-type":{color:e.palette.taskHistoryCard.create}},update:{cursor:`pointer`,background:e.palette.taskHistoryCard.update,"& #card-type":{color:e.palette.taskHistoryCard.update}},assign:{cursor:`pointer`,background:e.palette.taskHistoryCard.assign,"& #card-type":{color:e.palette.taskHistoryCard.assign}},clearAssign:{cursor:`pointer`,background:e.palette.taskHistoryCard.assign,"& #card-type":{color:e.palette.taskHistoryCard.assign}},updateStatus:{cursor:`pointer`,background:e.palette.taskHistoryCard.updateStatus,"& #card-type":{color:e.palette.taskHistoryCard.updateStatus}},addTaskAttachments:{cursor:`pointer`,background:e.palette.taskHistoryCard.update,"& #card-type":{color:e.palette.taskHistoryCard.update}},removeTaskAttachments:{cursor:`pointer`,background:e.palette.taskHistoryCard.update,"& #card-type":{color:e.palette.taskHistoryCard.update}},updateTags:{background:e.palette.letterHistoryCard.updateTags,"& #card-type":{color:e.palette.letterHistoryCard.updateTags},"& ul":{listStyle:`disc`},cursor:`pointer`},assignMeetingResolution:{background:e.palette.taskHistoryCard.assignMeetingResolution,"& #card-type":{color:e.palette.taskHistoryCard.assignMeetingResolution}},unassignMeetingResolution:{background:e.palette.taskHistoryCard.unassignMeetingResolution,"& #card-type":{color:e.palette.taskHistoryCard.unassignMeetingResolution}}}))},_re=B()(e=>({cardRoot:{direction:`rtl`,borderRadius:8,padding:e.spacing(0,1),margin:e.spacing(2.5,0,0),color:`#fff`,[e.breakpoints.down(`sm`)]:{minWidth:`calc(50vw - 16px)`,margin:e.spacing(0,1)}},cardContent:{display:`flex`,alignItems:`center`,padding:e.spacing(1,0),"& p":{marginRight:e.spacing(1),fontSize:`14px`}},cardActions:{padding:e.spacing(1,0)}
2712,cardInfo:{width:`100%`,display:`flex`,alignItems:`self-end`,justifyContent:`space-between`},type:{background:`#fff`,fontWeight:`bold`,borderRadius:e.spacing(.5),fontSize:`12px`,padding:e.spacing(.33),minWidth:`30px`,[e.breakpoints.down(`sm`)]:{fontSize:`10px`}},time:{fontSize:`12px`}})),LN=({data:e,date:t})=>{let{type:n,by:r,at:i,cid:a}=e,{t:o}=Ye(),{historyType:s,collapseCardId:c,toggleCollapseCard:u}=vN(),{classes:p,cx:m}=_re(),h=c===a,{classes:g}=gre[s](),_={typeOfImage:`showProfile`,imageId:r?.user?.imageId??``};return d(Df,{onClick:()=>u(a),classes:{root:m(p.cardRoot,g[n],g.hover)},children:[d(Ff,{className:p.cardContent,children:[r?.user?.imageId?l(FN,{imageProps:_}):l(Dr,{alt:Me(r),src:``,children:Me(r?.user,null,!0).split(``)[0]}),l(St,{variant:`body1`,children:Me(r?.user,r?.position)||`-`})]}),l(jf,{className:p.cardActions,children:d(q,{className:p.cardInfo,children:[l(St,{variant:`body1`,id:`card-type`,className:p.type,children:o(`solutionHistory.labels.${s}.${n}`)}),l(St,{className:p.time,children:ke(i)})]})}),l(f,{children:s===`meeting`&&[`inviteContact`,`inviteEmployee`,`removeContact`,`removeEmployee`,`cancel`,`updateTags`,`createResolution`,`updateResolution`,`deleteResolution`,`assignMeetingResolutionTask`,`unassignMeetingResolutionTask`].includes(e.type)?l(sre,{collapseCondition:h,data:{...e,type:e.type}}):s===`task`&&[`update`,`assign`,`updateStatus`,`updateTags`].includes(e.type)?l(hre,{collapseCondition:h,data:{...e,type:e.type}}):l(f,{})})]})},vre=B()(e=>({dialogContainer:{[e.breakpoints.down(`sm`)]:{position:`relative`,top:0}},dialogPaper:{minHeight:600,height:600,overflow:`auto`,[e.breakpoints.down(`sm`)]:{minWidth:`unset`,minHeight:`unset`,height:`unset`}},dialogContentRoot:{direction:`ltr`,position:`relative`},dialogContentBox:{overflowX:`auto`,width:`max-content`,overflowY:`hidden`,direction:`rtl`,display:`flex`,flexDirection:`row-reverse`,"& #days-box":{"&:first-child":{"& #date-border":{"&:first-child":{borderBottom:`3px solid`,borderImage:`linear-gradient(90deg, #D1D1D1, #C0B5FF) 1`}}},"&:last-child":{"& #date-border":{"&:after":{background:e.palette.primary.main},"&:first-child":{borderBottom:`3px solid`,borderImage:`linear-gradient(90deg,#C0B5FF ,${e.palette.primary.main}) 1`}},"& .date-typography":{color:e.palette.primary.main,background:e.palette.background.lightPrimary}}}},daysBox:{minWidth:250,maxWidth:250,textAlign:`center`},date:{borderBottom:`3px solid #C0B5FF`,position:`relative`,display:`flex`,justifyContent:`center`,"&:after":{content:`""`,width:12,height:12,background:`#C0B5FF`,borderRadius:50,position:`absolute`,margin:`auto`,left:0,right:0,bottom:-7}},dateTypography:{fontWeight:700,fontSize:16,color:`#808080`,background:`#E5E5E5`,borderRadius:6,padding:e.spacing(.5,2),marginBottom:e.spacing(1)},cardBox:{padding:e.spacing(1,2)},line:{height:3,background:e.palette.primary.main,display:`block`,position:`absolute`,top:54,width:`calc(100% - 48px)`},actionsContainer:{color:e.palette.primary.main},printableTable:{display:`none`,"@media print":{display:`block`}}})),yre=()=>{let{classes:e,cx:t}=vre(),{t:n}=Ye(),{historyRecords:r,loading:i,open:a,onClose:o,historyType:s,subject:c,className:u}=vN();return d(f,{children:[l(NN,{open:a,onClose:o,isTitleShow:!0,className:u,dialogClasses:{container:e.dialogContainer,paper:e.dialogPaper},contentDialogClasses:e.dialogContentRoot,fullWidth:!0,maxWidth:`lg`,title:n(`solutionHistory.labels.${s}.history`),closeButtonType:s===`meeting`?`back`:`closeIcon`,backButtonLabel:n(`solutionHistory.labels.${s}.backLabel`)||``,dialogHeaderActionButtonClassName:e.actionsContainer,dialogHeaderActions:[{icon:l(Wv,{}),tooltip:n(`tooltip.letter-history-print`),placementTooltip:`bottom-end`,onClick:AN,disabled:i}],children:l(q,{className:e.dialogContentBox,children:i?l(Oi,{}):r.map((n,r)=>d(q,{className:e.daysBox,id:`days-box`,children:[l(q,{className:t(e.date,`date-border`),id:`date-border`,children:l(si,{classes:{root:e.dateTypography},className:`date-typography`,children:Ve(Object.keys(n)[0])},Ve(Object.keys(n)[0]))}),l(q,{className:e.cardBox,children:n[Object.keys(n)[0]]?.map(e=>l(LN,{data:e,date:Object.keys(n)[0]}))})]}))})}),a&&l(`div`,{id:`printableDiv`,className:e.printableTable,children:l(MN,{data:r,historyType:s,subject:c||``})})]})},bre=B()((e,{isFullHeight:t,isScrollableX:n,isScrollableY:r,hideTopBar:i})=>({paperAnchorBottom:{margin:i?0:`64px 0 0px`,padding:e.spacing(1,0),color:e.palette.text.gray},root:{height:t?`calc(100vh)`:`calc(100vh - 64px)`,overflowY:r?`scroll`:`hidden`,overflowX:n?`scroll`:`hidden`},topBar:{padding:`0 !important`,display:`flex`,alignItems:`center`,background:e.palette.background.innerPage,height:64,textAlign:`center`,position:`relative`,"& svg":{height:64,width:64,position:`absolute`,padding:16,color:e.palette.text.gray,top:0},"& h6":{margin:` 0 auto`,height:64,display:`flex`,alignItems:`center`,fontSize:`1rem`}},fixed:{position:`fixed`,zIndex:10,width:`100%`},drawerPaperAnchorBottom:{borderTopRightRadius:e.spacing(1),borderTopLeftRadius:e.spacing(1),color:e.palette.text.gray},arrowButtonAllGroups:{display:`flex`,justifyContent:`center`,padding:0,margin:0,"& svg":{width:`2rem`,height:`2rem`}}})),RN=e=>{let{anchor:t,disableSwipeToOpen:n,type:r,title:i,isFullHeight:a,isScrollableX:o,isScrollableY:s,children:c,onClose:u,containerClassName:p,height:m,closeIcon:h,hideTopBar:g}=e,{classes:_,cx:v}=bre({isFullHeight:a,isScrollableX:o,isScrollableY:s,hideTopBar:g});return d(f,{children:[r===`titled`&&l(zr,{...e,onOpen:()=>{},anchor:t||`bottom`,disableSwipeToOpen:n||!0,PaperProps:{sx:{height:a?`calc(100vh)`:m??`calc(100vh - 64px)`,overflow:`hidden`}},children:d(q,{sx:{height:`100%`,overflowY:s?`scroll !important`:`hidden`,overflowX:o?`scroll !important`:`hidden`}
2712,children:[!g&&d(q,{className:v(_.fixed,_.topBar),children:[h?l(q,{onClick:u,children:h}):l(ci,{className:`close`,onClick:u}),l(St,{variant:`h6`,children:i})]}),l(q,{className:v(_.paperAnchorBottom,p),children:c})]})}),r===`arrowDown`&&d(zr,{...e,onOpen:()=>{},anchor:t||`bottom`,disableSwipeToOpen:n||!0,classes:{paperAnchorBottom:_.drawerPaperAnchorBottom},children:[l(q,{className:_.arrowButtonAllGroups,children:l(Gn,{onClick:u,children:l(Dg,{})})}),c]})]})},xre=B()(e=>({fixed:{position:`fixed`,width:`100%`,top:`64px`,zIndex:`10`,background:`#fff`,padding:`18px 0 0`,borderBottom:`3px solid transparent`,borderImage:`
2713    linear-gradient(to right, rgba(101, 90, 175, 0.5) 0%, rgba(101, 90, 175, 1) 33% 66%, rgba(101, 90, 175, 0.5) 100%)
2714    `,borderImageSlice:`1`,"&:after":{content:`""`,width:12,height:12,background:e.palette.primary.main,borderRadius:50,position:`absolute`,margin:`auto`,bottom:-7,left:0,right:0,zIndex:999}},topContainer:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,padding:e.spacing(0,1.5),marginBottom:e.spacing(1.5)},arrowButton:{border:`1px solid ${e.palette.background.light}`,color:e.palette.primary.main,padding:e.spacing(.5)},root:{minWidth:`100vw`,marginTop:`32px`,flex:1,display:`flex`,flexDirection:`column`},container:{display:`flex`,width:`100%`,overflow:`hidden`,flex:1,paddingBottom:e.spacing(8)},currentDate:{fontSize:`17px`,color:e.palette.primary.main,fontWeight:`bold`},current:{marginTop:e.spacing(1),position:`relative`,width:`50%`},previous:{marginTop:e.spacing(1),width:`25%`,opacity:`.5`},next:{direction:`ltr`,marginTop:e.spacing(1),width:`25%`,opacity:`.5`},historyCard:{margin:e.spacing(3,0)},printButton:{direction:`ltr`,padding:e.spacing(1,2),position:`fixed`,bottom:`0px`,width:`100%`,background:`white`,borderTop:`1px solid`,borderColor:e.palette.background.previewImage},printableTable:{display:`none`,"@media print":{display:`block`}}})),Sre=()=>{let{classes:e}=xre(),{t}=Ye(),{loading:n,open:r,onClose:i,historyType:a,mobileHistorySegments:o,handleChangeTouchStartX:s,handleChangeTouchEndX:c,handleNextHistory:u,handlePrivousHistory:p,className:m,historyRecords:h,subject:g}=vN(),_=Object.keys(o[0]).length>0?o[0][Object.keys(o[0])[0]]:!1,v=Object.keys(o[1]).length>0?o[1][Object.keys(o[1])[0]]:!1,y=Object.keys(o[2]).length?o[2][Object.keys(o[2])[0]]:!1;return d(f,{children:[d(RN,{open:r,onClose:i,title:t(`solutionHistory.labels.${a}.history`)||``,isFullHeight:!0,isScrollableX:!1,isScrollableY:!0,className:m,type:`titled`,id:`mobile-${a}-history-dialog`,onTouchStart:s,onTouchEnd:e=>c(e,o[1]),onTouchMove:e=>{e.target.closest(`input, button, [role="checkbox"], .MuiCheckbox-root, .MuiFormControlLabel-root`)||(e.preventDefault(),e.stopPropagation())},children:[l(q,{className:e.fixed,children:d(q,{className:e.topContainer,children:[l(Gn,{id:`next-button`,onClick:()=>u(o[1]),classes:{root:e.arrowButton},disabled:!y,children:l(j_,{})}),l(St,{id:`current-date`,className:e.currentDate,children:Object.keys(o[1]).length>0&&!n?Ve(Object.keys(o[1])[0]):``}),l(Gn,{id:`previous-button`,onClick:()=>p(o[1]),classes:{root:e.arrowButton},disabled:!_,children:l(O_,{})})]})}),l(q,{className:e.root,children:l(q,{className:e.container,children:n?l(Oi,{}):d(f,{children:[l(q,{className:e.next,children:y&&y.map(t=>l(q,{className:e.historyCard,children:l(LN,{data:t},t.id)}))}),l(q,{className:e.current,children:v&&v.map(t=>l(q,{className:e.historyCard,children:l(LN,{data:t,date:Object.keys(o[1])[0]},t.id)}))}),l(q,{className:e.previous,children:_&&_.map(t=>l(q,{className:e.historyCard,children:l(LN,{data:t},t.id)}))})]})})}),!n&&d(f,{children:[l(dN,{}),l(q,{className:e.printButton,children:l(fi,{variant:`contained`,onClick:AN,children:t(`solutionHistory.labels.letter.history-print`)})})]})]}),r&&l(`div`,{id:`printableDiv`,className:e.printableTable,children:l(MN,{data:h,historyType:a,subject:g||``})})]})},zN=({open:e,onClose:t,historyData:n,loading:r,historyType:i,className:a,subject:o})=>{let s=Dt(e=>e.breakpoints.down(`sm`)),c=Dt(e=>e.breakpoints.between(`sm`,`lg`)),u=Dt(e=>e.breakpoints.up(`lg`)),d=()=>l(s?Sre:c||u?yre:f,{}),[p,m]=(0,J.useState)([]),[h,g]=(0,J.useState)([{},{},{}]),[_,v]=(0,J.useState)(null),[y,b]=(0,J.useState)(0),[x,S]=(0,J.useState)(0),[C,w]=(0,J.useState)(0),[T,E]=(0,J.useState)(0),[D,O]=(0,J.useState)(null),k=e=>e.length===0?[]:e.length===1?[{},e[0],{}]:e.length>1?[e[e.length-2],e[e.length-1],{}]:[];(0,J.useEffect)(()=>
2714{if(n.length){let e=Ine(n);m(e),s&&g(k(e))}},[n]),(0,J.useEffect)(()=>{let e=p.findIndex(e=>JSON.stringify(e)===JSON.stringify(D));T>C+50||T<C-50||(x<y&&e!==p.length-1&&F(D),x>y&&e!==0&&P(D))},[x]);let A=e=>{b(e.changedTouches[0].screenX),w(e.changedTouches[0].screenY)},j=(e,t)=>{S(e.changedTouches[0].screenX),E(e.changedTouches[0].screenY),O(t)},M=e=>{v(t=>t===e?null:e)},N=(e,t)=>{let n=p.findIndex(t=>JSON.stringify(t)===JSON.stringify(e));return t===`left`?[p[n-2]||{},p[n-1],p[n]||{}]:[p[n]||{},p[n+1],p[n+2]||{}]},P=e=>{g(N(e,`left`))},F=e=>{g(N(e,`right`))};return l(_N.Provider,{value:{open:e,onClose:t,historyRecords:p,loading:r,historyType:i,handleChangeTouchStartX:A,handleChangeTouchEndX:j,toggleCollapseCard:M,mobileHistorySegments:h,collapseCardId:_,handlePrivousHistory:P,handleNextHistory:F,className:a,subject:o},children:d()})},Cre=B()(e=>({container:{display:`flex`,flexDirection:`column`,gap:e.spacing(1)},row:{cursor:`pointer`,textAlign:`left`,backgroundColor:`#EFEFEF`,padding:`${e.spacing(.5)} ${e.spacing(1)}`,display:`flex`,flexDirection:`row`,justifyContent:`space-between`,alignItems:`center`,borderRadius:e.spacing(.5),fontWeight:`400`,gap:e.spacing(1)},contentType:{backgroundColor:e.palette.background.lightGreen,color:`white`},fileName:{wordBreak:`break-word`}})),wre=({attachments:e,handleDeleteAttachment:t,handleDownloadAttachment:n,disabled:r,isFinished:i})=>{let{classes:a,cx:o}=Cre();return l(q,{className:a.container,children:e?.map((e,s)=>d(q,{className:o(a.row),children:[d(q,{style:{marginInlineEnd:`auto`},children:[!r&&(!i||!e?.id)&&l(Gn,{"aria-label":`delete`,size:`small`,onClick:n=>{t(e,s),n.stopPropagation()},children:l(U_,{fontSize:`inherit`})}),e?.id&&l(ui,{size:`small`,onClick:t=>{n(e),t.stopPropagation()},children:l(av,{fontSize:`small`})})]}),l(q,{className:a.fileName,children:e?.name})]},e?.id))})},Tre=B()(e=>({content:{paddingTop:`24px !important`},dialog:{width:470},contentMobile:{paddingTop:`24px !important`},details:{height:`unset`},timeContainer:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`,flexWrap:`wrap`},dialogTitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`},close:{position:`absolute`,right:`16px`,top:`8px`},closeMobile:{position:`absolute`,right:`8px`,top:`5px`},attachmentContainer:{padding:`${e.spacing(1)} 0px`},timeValidation:{fontSize:14,color:`#D31F22`,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:8},actionContainer:{borderTop:`1px solid #D1D1D1`,padding:`12px 24px`},actionContainerMobile:{borderTop:`1px solid #D1D1D1`,padding:`16px 24px`,display:`block`,textAlign:`left`},submitButtonMobile:{borderRadius:0},dialogTitleMobile:{height:`48px`},paperMobile:{width:`100%`,margin:12},dialogContentMobile:{padding:24}})),Ere=({children:e,open:t,onClose:n,title:r,actions:i,maxWidth:a,fullWidth:o,fullScreen:s})=>{let{classes:c,cx:u}=Tre(),f=Dt(e=>e.breakpoints.down(`sm`));return d(Mr,{open:t,fullScreen:s,fullWidth:o,maxWidth:a,classes:{paper:u(c.dialog,{[c.paperMobile]:f})},children:[d(Ir,{borderBottom:`1px solid #D1D1D1`,classes:{root:u({[c.dialogTitleMobile]:f})},children:[l(q,{className:c.dialogTitle,children:r}),l(ui,{className:u({[c.close]:!f,[c.closeMobile]:f}),onClick:()=>n(),children:l(ci,{})})]}),l(Pr,{classes:{root:u({[c.dialogContentMobile]:f})},children:l(q,{className:u({[c.content]:!f,[c.contentMobile]:f}),children:e})}),l(Nr,{className:u({[c.actionContainer]:!f,[c.actionContainerMobile]:f}),children:l(q,{children:i})})]})},Dre=B()({root:{display:`flex`,flexDirection:`column`,gap:16},content:{fontSize:`14px`,fontWeight:400,lineHeight:`21px`,textAlign:`center`,color:`#49454F`},select:{maxWidth:`100%`,width:`100%`,background:`#efefef`,fontSize:12}}),Ore=({onSubmit:e,open:t,onClose:n,positions:r,userProfile:i})=>{let{classes:a}=Dre(),o=Dt(e=>e.breakpoints.down(`sm`)),[s,c]=(0,J.useState)(``),u=()=>{e(s)},p=e=>{c(e.target.value)};return l(Ere,{open:t,title:W(`meetings.labels.create-meeting`)??``,onClose:n,actions:l(f,{children:l(fi,{variant:`contained`,size:`small`,style:{width:52,height:34},onClick:u,children:W(`common.labels.continue`)})}),children:d(q,{className:a.root,children:[l(si,{className:a.content,children:W(`meetings.messages.createMeetingWithPosition`)}),l(Sr,{value:s,onChange:(e,t)=>
2714p(e),fullWidth:o,className:a.select,children:r?.map?.(e=>d(ei,{value:e.id,children:[Me(i,e),` `]},e.id))})]})})},BN=B()({parentExtraBtn:{display:`flex`,flexDirection:`column`,alignItems:`center`},extraButtons:{display:`flex`,justifyContent:`center`,alignItems:`center`,margin:8,padding:16},extraButtonsMobile:{width:`90%`,padding:0},extraIconBox:{paddingLeft:`8px`},parentMoreBtnMobile:{display:`flex`,flexDirection:`column`,alignItems:`center`,color:`#7E6BF1`},moreBtnMobile:{display:`inline-flex`,border:`1px solid #7E6BF1 `,borderRadius:`50%`,boxSizing:`border-box`,padding:8},textMenuItemMobile:{"& svg":{marginLeft:`8px`,width:`18px`}}}),kre=({onClick:e})=>{let{classes:t}=BN();return d(fi,{onClick:()=>e(),variant:`outlined`,className:t.extraButtons,children:[l(nv,{className:t.extraIconBox}),W(`commands.meetings.MeetingCanceled`)]})},Are=({open:e,handleToggle:t,handleCancel:n,handleMinutes:r,handleFinish:i,isFinished:a,isEdit:o,isCanceled:s,allowCancelMeeting:c,allowFinishMeeting:u,allowMinutes:p,handleMeetingHistory:m,disabled:h})=>{let g=(0,J.useRef)(null),{classes:_}=BN(),{t:v}=Ye();return d(f,{children:[d(q,{className:_.parentMoreBtnMobile,children:[l(Gn,{ref:g,onClick:t,disabled:h,children:d(q,{className:_.moreBtnMobile,children:[e&&l(gv,{}),!e&&l(hi,{})]})}),l(St,{variant:`caption`,children:v(`common.labels.more`)})]}),d($r,{open:e,onClose:t,anchorEl:g.current,anchorOrigin:{vertical:`top`,horizontal:`right`},transformOrigin:{vertical:`bottom`,horizontal:`center`},children:[c&&d(Lk,{className:_.textMenuItemMobile,onClick:n,children:[l(G_,{}),v(`commands.meetings.MeetingCanceled`)]}),!a&&u&&d(Lk,{className:_.textMenuItemMobile,onClick:i,children:[l(J_,{}),v(`meetings.labels.finish-meeting`)]}),d(Lk,{className:_.textMenuItemMobile,onClick:r,children:[l(ay,{}),!o&&!s&&v(`meetings.labels.minutesMeeting`),s&&v(`meetings.labels.viewMinutesMeeting`),o&&!s&&v(`meetings.labels.viewMinutesMeeting`)]})]})]})},jre=({onClick:e})=>{let{classes:t}=BN();return d(fi,{onClick:()=>e(),variant:`outlined`,className:t.extraButtons,children:[l(J_,{className:t.extraIconBox}),W(`meetings.labels.finish-meeting`)]})},Mre=({onClick:e,isEdit:t,isCanceled:n,disabled:r})=>{let{classes:i,cx:a}=BN(),o=Dt(e=>e.breakpoints.down(`sm`));return d(fi,{onClick:e,variant:`outlined`,className:a({[i.extraButtons]:!0,[i.extraButtonsMobile]:o}),disabled:r,children:[l(iy,{className:i.extraIconBox}),!t&&!n&&W(`meetings.labels.minutesMeeting`),n&&W(`meetings.labels.viewMinutesMeeting`),t&&!n&&W(`meetings.labels.viewMinutesMeeting`)]})},Nre=e=>{let{open:t,onClose:n,onConfirm:r,loading:i}=e,{t:a}=Ye();return l(NN,{open:t,onClose:i?()=>{}:n,maxWidthSize:`312px`,isTitleShow:!1,dialogActionChildren:l(fi,{variant:`text`,onClick:r,disabled:i,children:i?l(Oi,{}):a(`common.labels.confirm-finalize`)}),children:d(q,{children:[l(q,{sx:{textAlign:`center`,marginTop:`8px`},children:l(gi,{color:`warning`})}),l(q,{sx:{display:`flex`,justifyContent:`center`,alignItems:`center`},children:l(si,{component:`div`,variant:`body1`,color:`black`,fontWeight:`700`,fontSize:16,marginTop:.5,marginBottom:1.5,children:a(`meetings.labels.finish-meeting`)})}),l(si,{variant:`caption`,fontSize:14,children:a(`meetings.labels.finish-meeting-description`)})]})})},Pre=B()(e=>({container:{marginTop:16},content:{paddingTop:`16px !important`},details:{height:`unset`},timeContainer:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`},dialogTitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`},close:{position:`absolute`,right:`16px`,top:`8px`},attachmentContainer:{padding:`${e.spacing(1)} 0px`},timeValidation:{fontSize:14,color:`#D31F22`,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:8},values:{fontSize:`14px`,fontWeight:`700`},valueReservation:{maxHeight:`155px`,overflow:`auto`},title:{fontSize:`14px`,fontWeight:`400`},parentTitleReservation:{display:`flex`,alignItems:`start`},titleTimeReservation:{padding:`24px 8px;`},showTime:{display:`flex`,margin:`24px 0px`},Time:{background:`#F4F8FB`,color:`#347EEE`,padding:8},paper:{width:`100%`,margin:8}})),Fre=({data:e,open:t,onClose:n,onChangeDate:r,valueDate:i,reservationDate:a,loadingReservation:o})=>{let{classes:s,cx:c}=Pre();return l(f,{children:d(Mr,{open:t,onClose:n,classes:{paper:s.paper},fullWidth:!0,maxWidth:`md`,children:[d(Ir,{borderBottom:`1px solid #D1D1D1`,children:[l(q,{className:s.dialogTitle,children:W(`meetings.labels.meetingLocationInformation`)}),l(ui,{className:s.close,onClick:()=>n(),children:l(ci,{})})]}),l(Pr,{children:l(q,{className:s.content,children:d(Hr,{container:!0,spacing:1.5,children:[l(Hr,{item:!0,xs:3,md:3,children:d(q,{className:s.title,children:[W(`common.labels.location-name`),`:`]})}),l(Hr,{item:!0,xs:9,md:9,children:l(q,{className:s.values,children:e?.title})}),l(Hr,{item:!0,xs:12,children:l(Lr,{})}),l(Hr,{item:!0,xs:12,md:12,children:l(q,{children:l(gN,{label:`${W(`meetings.labels.statusMeetingLocation`)} *`,hideClose:()=>{},onChange:r,value:i,name:`dateTime`})})}),d(Hr,{container:!0,spacing:1.5,className:s.container,children:[l(Hr,{item:!0,xs:12,md:3,className:s.parentTitleReservation,children:d(q,{className:c(s.title,s.titleTimeReservation),children:[W(`meetings.labels.hoursFull`),` :`]})}),l(Hr,{item:!0,xs:12,md:9,className:s.valueReservation,children:o?l(Oi,{color:`Primary`}):a.map(e=>d(q,{className:s.showTime,children:[d(q,{className:s.values,children:[W(`meetings.labels.fromHours`),l(`span`,{className:s.Time,children:ke(e.startDate)})]}),d(q,{className:s.values,children:[W(`meetings.labels.to`),l(`span`,{className:s.Time,children:ke(e.endDate)})]})]},e.id))})]}),l(Hr,{item:!0,xs:12,children:l(Lr,{})}),l(Hr,{item:!0,xs:3,md:3,children:d(q,{className:s.title,children:[W(`common.labels.address`),`:`]})}),l(Hr,{item:!0,xs:9,md:9,children:l(q,{className:s.values,children:e?.address})}),l(Hr,{item:!0,xs:12,children:l(Lr,{})}),l(Hr,{item:!0,xs:3,md:3,children:d(q,{className:s.title,children:[W(`common.labels.link`),`:`]})}),l(Hr,{item:!0,xs:9,md:9,children:l(q,{className:s.values,children:l(`a`,{target:`_blank`,href:`${e?.link}`,rel:`noreferrer`,children:e?.link})})}),l(Hr,{item:!0,xs:12,children:l(Lr,{})}),l(Hr,{item:!0,xs:3,md:3,children:d(q,{className:s.title,children:[W(`common.labels.description`),`:`]})}),l(Hr,{item:!0,xs:9,md:9,children:l(q,{className:s.values,children:e?.description??`-`})})]})})})]})})},Ire=B()(e=>({container:{borderRadius:e.spacing(.75),padding:e.spacing(1,2)},title:{fontSize:e.spacing(1.75),fontWeight:700},details:{fontSize:e.spacing(1.75),color:e.palette.text.twilightVelvet,marginTop:e.spacing(1),whiteSpace:`nowrap`,display:`flex`,flexWrap:`wrap`},time:{color:e.palette.text.twilightVelvet,padding:e.spacing(.5),borderRadius:e.spacing(.5),margin:e.spacing(0,.5),backgroundColor:e.palette.background.lightGray}})),Lre=({open:e,anchorRef:t,onClose:n,conflict:r})=>{let{classes:i,cx:a}=Ire(),{t:o}=Ye();return d(Zr,{open:e,onClose:n,anchorEl:t.current,anchorOrigin:{vertical:`bottom`,horizontal:`left`},children:[l(q,{className:i.container,children:l(ui,{onClick:n,children:l(ci,{})})}),l(dN,{}),d(q,{className:i.container,p:2,children:[l(si,{className:i.title,children:o(`meetings.location.notice.title`)}),l(si,{className:i.details,children:l(ga,{i18nKey:`meetings.location.notice.location-detail
2714s`,values:{startDate:new Date(r?.startDate??``).toLocaleTimeString(`fa-IR`,{hour12:!1,hour:`2-digit`,minute:`2-digit`}),endDate:new Date(r?.endDate??``).toLocaleTimeString(`fa-IR`,{hour12:!1,hour:`2-digit`,minute:`2-digit`}),day:new Date(r?.conflictDay??``).toLocaleDateString(`fa-IR`,{day:`2-digit`,month:`2-digit`,year:`numeric`})},components:{time:l(si,{className:a(i.time,i.title),component:`span`})}})}),l(si,{className:i.details,children:o(`meetings.location.notice.change-location`)})]})]})},Rre=B()(e=>({errorText:{fontSize:e.spacing(1.5),color:e.palette.error.main},flex:{display:`flex`,alignItems:`center`},between:{justifyContent:`space-between`},showConflicts:{color:e.palette.secondary.main,minWidth:`max-content`,height:`28px`,textDecoration:`underline`,whiteSpace:`nowrap`}})),zre=({anchorRef:e,openPopover:t,renderPopover:n})=>{let{classes:r,cx:i}=Rre(),{t:a}=Ye();return d(q,{className:i(r.flex,r.between),children:[l(si,{className:r.errorText,children:a(`meetings.location.notice.error-text`)}),l(nr,{size:`small`,variant:`text`,ref:e,onClick:t,className:r.showConflicts,children:a(`meetings.location.notice.show-conflicts`)}),n]})},Bre=B()(()=>({loading:{width:45,"& img":{width:`100%`}}})),Vre=({loading:e,isAvailable:t,conflictingMeeting:n,defaultText:r=``})=>{let{classes:i}=Bre(),[a,o]=(0,J.useState)(!1),s=(0,J.useRef)(null);return e?l(Oi,{inline:!0,className:i.loading}):!e&&t===!1?l(zre,{anchorRef:s,openPopover:()=>o(!0),renderPopover:l(Lre,{open:a,onClose:()=>o(!1),anchorRef:s,conflict:n})}):r},Hre=B()(e=>({root:{zIndex:e.zIndex.modal+10},dialogAction:{justifyContent:`space-evenly`,"& button":{fontWeight:`normal`,fontSize:14,marginRight:`unset`},"& button:first-child":{marginLeft:8}},dialogPaper:{padding:30,[e.breakpoints.down(`sm`)]:{margin:16,padding:`30px 10px`},"& p":{fontSize:16}}})),VN=({open:e,onStay:t,onDiscard:n})=>{let{classes:r}=Hre();return d(Mr,{open:e,onClose:t,classes:{root:r.root,paper:r.dialogPaper},children:[l(Pr,{children:l(Fr,{children:W(`common.messages.unsavedFormChanges`)})}),d(Nr,{classes:{root:r.dialogAction},children:[l(nr,{variant:`contained`,onClick:t,children:W(`common.labels.backToForm`)}),l(nr,{variant:`outlined`,onClick:n,children:W(`common.labels.discardChanges`)})]})]})};function Ure(e,t=!0){let{navigator:n}=J.useContext(j);J.useEffect(()=>{if(!t)return;let r=n.block(t=>{e({...t,retry(){r(),t.retry()}})});return r},[n,e,t])}function HN({isBlocking:e}){function t(e){let t=D(),n=P(),[r,i]=(0,J.useState)(!1),[a,o]=(0,J.useState)(null),[s,c]=(0,J.useState)(!1),l=(0,J.useCallback)(()=>{i(!1)},[]),u=(0,J.useCallback)(e=>!s&&e.location.pathname!==n.pathname?(i(!0),o(e),!1):!0,[s]),d=(0,J.useCallback)(()=>{i(!1),c(!0)},[]);return(0,J.useEffect)(()=>{s&&a&&t(a.location.pathname)},[s,a]),Ure(u,e),[r,d,l]}let[n,r,i]=t(e);return l(VN,{open:n,onStay:i,onDiscard:r})}HN.propTypes={isBlocking:Z.default.bool.isRequired};var Wre=B()(e=>({content:{display:`flex`,flexDirection:`column`,alignItems:`center`,textAlign:`center`,gap:e.spacing(1),paddingTop:e.spacing(1)},icon:{fontSize:40,color:e.palette.error.main},title:{fontWeight:700,fontSize:16,color:`#1C1B1F`},description:{fontSize:14,lineHeight:1.7,color:`#49454F`},actions:{justifyContent:`flex-end`}})),Gre=({open:e,onClose:t})=>{let{classes:n}=Wre();return l(NN,{open:e,onClose:t,maxWidthSize:`340px`,isTitleShow:!1,dialogActionClasses:n.actions,dialogActionChildren:l(fi,{variant:`text`,onClick:t,children:W(`common.labels.confirm`)}),children:d(q,{className:n.content,children:[l(dv,{className:n.icon}),l(si,{className:n.title,children:W(`meetings.labels.delete-resolution`)}),l(si,{className:n.description,children:W(`meetings.labels.delete-resolution-with-tasks-description`)})]})})},Kre=B()(e=>({content:{display:`flex`,flexDirection:`column`,gap:e.spacing(1.5),paddingTop:e.spacing(.5),minWidth:0,maxWidth:`100%`},header:{display:`flex`,alignItems:`center`,gap:e.spacing(1)},icon:{fontSize:24,color:e.palette.warning.main,flexShrink:0},title:{fontWeight:700,fontSize:16,color:`#1C1B1F`},description:{fontSize:14,lineHeight:1.7,color:`#49454F`},actions:{justifyContent:`flex-end`,gap:e.spacing(1)}})),qre={deleteResolution:{titleKey:`meetings.labels.delete-resolution`,descriptionKey:`meetings.labels.delete-resolution-confirm`,confirmKey:`common.labels.remove`},detachTask:{titleKey:`meetings.labels.detach-task-from-resolution`,descriptionKey:`meetings.labels.detach-task-from-resolution-confirm`,confirmKey:`common.labels.confirm`}},UN=({open:e,subjectTitle:t,contextTitle:n,variant:r=`deleteResolution`,onClose:i,onConfirm:a})=>{let{classes:o}=Kre(),s=qre[r],[c,u]=(0,J.useState)(!1),[p,m]=(0,J.useState)(e);p!==e&&(m(e),e||u(!1));let h=r===`detachTask`?W(s.descriptionKey,{taskTitle:t,resolutionTitle:n??``}):W(s.descriptionKey,{title:t}),g=()=>{c||i()},_=async()=>
2714{if(!c){u(!0);try{await a()}finally{u(!1)}}};return l(NN,{open:e,onClose:g,maxWidthSize:`400px`,isTitleShow:!1,dialogActionClasses:o.actions,dialogActionChildren:d(f,{children:[l(fi,{variant:`text`,disabled:c,onClick:g,children:W(`common.labels.cancel`)}),l(fi,{variant:`contained`,disabled:c,onClick:()=>void _(),children:c?l(Oi,{color:`white`}):W(s.confirmKey)})]}),children:d(q,{className:o.content,children:[d(q,{className:o.header,children:[l(dv,{className:o.icon}),l(si,{className:o.title,children:W(s.titleKey)})]}),l(si,{className:o.description,sx:{display:`block`,overflowWrap:`anywhere`,wordBreak:`break-word`},children:h})]})})},WN=(0,J.createContext)(null),Jre=({children:e,onChange:t})=>{let[n,r]=(0,J.useState)(0);(0,J.useEffect)(()=>{t?.(n>0)},[t,n]);let i=(0,J.useCallback)(e=>{r(t=>Math.max(0,t+e))},[]);return l(WN.Provider,{value:i,children:e})},GN=e=>{let t=(0,J.useContext)(WN);(0,J.useEffect)(()=>{if(!(!t||!e))return t(1),()=>t(-1)},[t,e])},KN=256,qN=512,Yre=B()(e=>({panel:{borderRadius:e.spacing(.75),opacity:1,padding:e.spacing(1),gap:e.spacing(1),border:`1px solid #0F55BD`,background:`#E7F0FD`,boxSizing:`border-box`,display:`flex`,flexDirection:`column`,boxShadow:`none`},wrapper:{borderRadius:e.spacing(1),opacity:1,padding:e.spacing(1),gap:e.spacing(1),background:`var(--Schemes-Surface, #FFFFFF)`,display:`flex`,flexDirection:`column`,boxSizing:`border-box`},fieldsRow:{display:`flex`,alignItems:`flex-start`,gap:e.spacing(2),flexWrap:`wrap`,[e.breakpoints.down(`sm`)]:{flexDirection:`column`,flexWrap:`nowrap`,gap:e.spacing(2)}},field:{flex:1},actions:{justifyContent:`flex-end`,padding:0},actionButton:{color:`#4B4950`},content:{padding:0,paddingTop:e.spacing(1)},cancelButton:{color:e.palette.primary.main,border:`1px solid ${e.palette.primary.main}`,borderRadius:8,padding:e.spacing(.75)},saveButton:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,borderRadius:8,padding:e.spacing(.75),"&:hover":{backgroundColor:e.palette.primary.dark},"&.Mui-disabled":{color:e.palette.action.disabled,backgroundColor:e.palette.action.disabledBackground}}})),JN=({initialValues:e,onSave:t,onCancel:n})=>{let{classes:r}=Yre(),i=(0,J.useRef)(null),a=e?.title??``,o=e?.description??``,[s,c]=(0,J.useState)(a),[u,f]=(0,J.useState)(o),p=s!==a||u!==o,m=s.length>=KN,h=u.length>=qN,g=p&&s.trim().length>0&&!m&&!h;GN(g),(0,J.useEffect)(()=>{i.current?.focus()},[]);let _=()=>{g&&t({title:s.trim(),description:u.trim()})};return l(Df,{className:r.panel,variant:`outlined`,children:d(q,{component:`form`,className:r.wrapper,noValidate:!0,onSubmit:e=>{e.preventDefault(),_()},children:[l(Ff,{className:r.content,children:d(q,{className:r.fieldsRow,children:[l(pN,{className:r.field,id:`resolution-title`,name:`title`,label:`${W(`common.labels.title`)} *`,value:s,onChange:e=>c(e.target.value.slice(0,KN)),inputRef:i,inputProps:{maxLength:KN},error:m,helperText:m?W(`meetings.labels.resolution-title-max-length`):void 0,fullWidth:!0}),l(pN,{className:r.field,id:`resolution-description`,name:`description`,label:W(`common.labels.description`)??``,value:u,onChange:e=>f(e.target.value.slice(0,qN)),inputProps:{maxLength:qN},error:h,helperText:h?W(`meetings.labels.resolution-description-max-length`):void 0,fullWidth:!0})]})}),d(jf,{className:r.actions,children:[l(Gn,{type:`button`,className:r.cancelButton,"aria-label":W(`common.labels.cancel`),onClick:n,children:l(ci,{sx:e=>({width:e.spacing(2),height:e.spacing(2)})})}),l(Gn,{type:`submit`,className:r.saveButton,"aria-label":W(`common.labels.save`),disabled:!g,children:l(K_,{sx:e=>({width:e.spacing(2),height:e.spacing(2)})})})]})]})})},YN=e=>e.tasksCount??e.tasks.length+(e.hiddenTasksCount??0),XN=e=>Math.max(0,YN(e)-e.tasks.length),ZN=e=>YN(e)>0,Xre=B()(e=>({menuButton:{color:`#0F55BD`,padding:e.spacing(.5)},menu:{minWidth:256},menuItemIcon:{minWidth:36,color:`#49454F`}})),Zre=({resolution:e,onEdit:t,onCreateTask:n,onDelete:r,disabled:i=!1})=>{let{classes:a}=Xre(),[o,s]=(0,J.useState)(null),[c,u]=(0,J.useState)(!1),[p,m]=(0,J.useState)(!1),h=ZN(e),g=()=>s(null);return d(f,{children:[l(Gn,{className:a.menuButton,"aria-label":`resolution-actions`,size:`small`,disabled:i,onClick:e=>s(e.currentTarget),children:l(qv,{})}
2714),d($r,{anchorEl:o,open:!!o,onClose:g,slotProps:{paper:{className:a.menu}},children:[d(ei,{onClick:()=>{t(),g()},children:[l(sp,{className:a.menuItemIcon,children:l(lv,{fontSize:`small`})}),l(Xr,{children:W(`common.labels.edit`)})]}),d(ei,{onClick:()=>{n(),g()},children:[l(sp,{className:a.menuItemIcon,children:l(oi,{fontSize:`small`})}),l(Xr,{children:W(`tasks.labels.create-task`)})]}),d(ei,{onClick:()=>{if(g(),h){u(!0);return}m(!0)},children:[l(sp,{className:a.menuItemIcon,children:l(ev,{fontSize:`small`})}),l(Xr,{children:W(`common.labels.remove`)})]})]}),l(Gre,{open:c,onClose:()=>u(!1)}),l(UN,{open:p,subjectTitle:e.title,variant:`deleteResolution`,onClose:()=>m(!1),onConfirm:async()=>{await r(),m(!1)}})]})},QN=1.7,Qre=2,$re=(e,t)=>{if(typeof window>`u`)return t*QN;let{lineHeight:n}=window.getComputedStyle(e);if(n===`normal`)return t*QN;let r=Number.parseFloat(n);return Number.isNaN(r)?t*QN:n.endsWith(`px`)?r:r*t},eie=(e,t=1,n=13,r=QN)=>{if(!e)return!1;let i=$re(e,typeof window<`u`&&Number.parseFloat(window.getComputedStyle(e).fontSize)||n)*t;return e.scrollHeight>i+Qre},tie=B()(e=>({root:{width:`100%`,fontSize:13,lineHeight:QN,color:`#49454F`},collapsed:{overflow:`hidden`},content:{display:`block`,width:`100%`,fontSize:13,lineHeight:QN,color:`#49454F`},control:{color:`#0F55BD`,cursor:`pointer`,fontSize:13,fontWeight:500,lineHeight:QN,whiteSpace:`nowrap`,userSelect:`none`},controlCollapsed:{float:`inline-end`,marginInlineStart:e.spacing(.5)},controlExpanded:{display:`inline`,marginInlineStart:e.spacing(.5)}})),nie=({children:e,maxLines:t=1,className:n,contentClassName:r})=>{let{classes:i,cx:a}=tie(),o=(0,J.useRef)(null),s=(0,J.useRef)(null),[c,u]=(0,J.useState)(!1),[f,p]=(0,J.useState)(!1);(0,J.useLayoutEffect)(()=>{if(c){p(!1);return}let e=()=>{p(eie(s.current,t))};e();let n=requestAnimationFrame(e),r=o.current;if(!r)return()=>cancelAnimationFrame(n);let i=new ResizeObserver(e);return i.observe(r),()=>{cancelAnimationFrame(n),i.disconnect()}},[e,c,t]);let m=e=>{e.stopPropagation(),u(e=>!e)},h=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),m(e))},g=c||f,_=W(c?`common.labels.ViewLess`:`common.labels.more`),v=g?l(St,{component:`span`,role:`button`,tabIndex:0,className:a(i.control,c?i.controlExpanded:i.controlCollapsed),"aria-label":_,"aria-expanded":c,onClick:m,onKeyDown:h,children:_}):null;return d(q,{ref:o,className:a(i.root,!c&&i.collapsed,n),style:c?void 0:{maxHeight:`calc(13px * ${QN} * ${t})`},children:[!c&&v,l(St,{ref:s,component:`span`,className:a(i.content,r),children:e}),c&&v]})},$N=(0,J.createContext)(null),rie=({children:e})=>{let[t,n]=(0,J.useState)(null),r=(0,J.useCallback)(e=>{n({type:`create`,resolutionId:e})},[]),i=(0,J.useCallback)(e=>{n(t=>t?.type===`create`&&t.resolutionId===e?null:t)},[]),a=(0,J.useCallback)((e,t)=>{n({type:`edit`,resolutionId:e,taskId:t})},[]),o=(0,J.useCallback)((e,t)=>{n(n=>n?.type===`edit`&&n.resolutionId===e&&n.taskId===t?null:n)},[]),s=(0,J.useCallback)(()=>{n(null)},[]),c=(0,J.useCallback)(e=>{n(t=>t?.resolutionId===e?null:t)},[]),u=(0,J.useCallback)(e=>{n(t=>t?.resolutionId===e?t:null)},[]),d=(0,J.useMemo)(()=>({draft:t,openCreate:r,closeCreate:i,openEdit:a,closeEdit:o,closeDraft:s,closeForResolution:c,keepOnlyForResolution:u}),[t,r,i,a,o,s,c,u]);return l($N.Provider,{value:d,children:e})},eP=()=>{let e=(0,J.useContext)($N);if(!e)throw Error(`useTaskDraftPanel must be used within TaskDraftPanelProvider`);return e},tP=e=>`${e?.id}_${e?.slot?.join(`-`)}`,nP=e=>`${e?.id}_${e?.slot?.join?.(`-`)}`,rP=(e,t)=>tP(e)===tP(t);function iP(e){return fr}function iie(e){return ot(`MuiSimpleTreeView`,e)}tt(`MuiSimpleTreeView`,[`root`]);var aie=(e,t)=>{let n=J.useRef({}),[r,i]=J.useState(()=>{let r={};return e.forEach(e=>{e.models&&Object.entries(e.models).forEach(([e,i])=>{n.current[e]={isControlled:t[e]!==void 0,getDefaultValue:i.getDefaultValue},r[e]=i.getDefaultValue(t)})}),r});return Object.fromEntries(Object.entries(n.current).map(([e,n])=>[e,{value:t[e]??r[e],setControlledValue:t=>{n.isControlled||i(n=>o({},n,{[e]:t}))}}]))},oie=class{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(e,t,n={}){let r=this.events[e];r||(r={highPriority:new Map,regular:new Map},this.events[e]=r),n.isFirst?r.highPriority.set(t,!0):r.regular.set(t,!0)}removeListener(e,t){this.events[e]&&(this.events[e].regular.delete(t),this.events[e].highPriority.delete(t))}removeAllListeners(){this.events={}}emit(e,...t){let n=this.events[e];if(!n)return;let r=Array.from(n.highPriority.keys()),i=Array.from(n.regular.keys());for(let e=r.length-1;e>=0;--e){let i=r[e];n.highPriority.has(i)&&i.apply(this,t)}for(let e=0;e<i.length;e+=1){let r=i[e];n.regular.has(r)&&r.apply(this,t)}}once(e,t){let n=this;this.on(e,function r(...i){n.removeListener(e,r),t.apply(n,i)})}},sie=e=>e.isPropagationStopped!==void 0,aP=()=>{let[e]=J.useState(()=>new oie);return{instance:{$$publishEvent:J.useCallback((...t)=>
vendor: 16,793 bytes, lines 2714-2718
2714{let[n,r,i={}]=t;i.defaultMuiPrevented=!1,!(sie(i)&&i.isPropagationStopped())&&e.emit(n,r,i)},[e]),$$subscribeEvent:J.useCallback((t,n)=>(e.on(t,n),()=>{e.removeListener(t,n)}),[e])}}};aP.params={};var oP=({plugins:e})=>{let t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};oP.params={};var sP=0,cie=()=>(sP+=1,`mui-tree-view-${sP}`),cP=({id:e,treeId:t=``,itemId:n})=>e??`${t}-${n}`,lP=({params:e,state:t,setState:n})=>{J.useEffect(()=>{n(t=>t.id.treeId===e.id&&t.id.treeId!==void 0?t:o({},t,{id:o({},t.id,{treeId:e.id??cie()})}))},[n,e.id]);let r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};lP.params={id:!0},lP.getInitialState=({id:e})=>({id:{treeId:e??void 0}});var lie=[aP,oP,lP],uie=[`slots`,`slotProps`,`apiRef`,`experimentalFeatures`],die=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:i},plugins:a}=e,o=xt(e.props,uie),s={};a.forEach(e=>{Object.assign(s,e.params)});let c={},l={};Object.keys(o).forEach(e=>{let t=o[e];s[e]?c[e]=t:l[e]=t});let u=i??{};return{apiRef:r,forwardedProps:l,pluginParams:a.reduce((e,t)=>t.getDefaultizedParams?t.getDefaultizedParams({params:e,experimentalFeatures:u}):e,c),slots:t??{},slotProps:n??{},experimentalFeatures:u}},fie=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:t=>{let n=null,r=null,i=[],a={};e.forEach(e=>{if(!e.itemPlugin)return;let o=e.itemPlugin({props:t,rootRef:n,contentRef:r});o?.rootRef&&(n=o.rootRef),o?.contentRef&&(r=o.contentRef),o?.propsEnhancers&&(i.push(o.propsEnhancers),Object.keys(o.propsEnhancers).forEach(e=>{a[e]=!0}))});let o=e=>t=>{let n={};return i.forEach(r=>{let i=r[e];i!=null&&Object.assign(n,i(t))}),n},s=Object.fromEntries(Object.keys(a).map(e=>[e,o(e)]));return{contentRef:r,rootRef:n,propsEnhancers:s}},wrapItem:({itemId:n,children:r})=>{let i=r;for(let r=e.length-1;r>=0;--r){let a=e[r];a.wrapItem&&(i=a.wrapItem({itemId:n,children:i,instance:t}))}return i},wrapRoot:({children:n})=>{let r=n;for(let n=e.length-1;n>=0;--n){let i=e[n];i.wrapRoot&&(r=i.wrapRoot({children:r,instance:t}))}return r},instance:t,rootRef:r,publicAPI:n});function pie(e){let t=J.useRef({});return e?(e.current??={},e.current):t.current}var mie=({plugins:e,rootRef:t,props:n})=>{let r=[...lie,...e],{pluginParams:i,forwardedProps:a,apiRef:s,experimentalFeatures:c,slots:l,slotProps:u}=die({plugins:r,props:n}),d=aie(r,i),f=J.useRef({}).current,p=pie(s),m=J.useRef(null),h=et(m,t),g=fie({plugins:r,instance:f,publicAPI:p,rootRef:m}),[_,v]=J.useState(()=>{let e={};return r.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(i))}),e}),y=[];return r.forEach(e=>{let t=e({instance:f,params:i,slots:l,slotProps:u,experimentalFeatures:c,state:_,setState:v,rootRef:m,models:d,plugins:r});t.getRootProps&&y.push(t.getRootProps),t.publicAPI&&Object.assign(p,t.publicAPI),t.instance&&Object.assign(f,t.instance),t.contextValue&&Object.assign(g,t.contextValue)}),{getRootProps:(e={})=>{let t=o({role:`tree`},a,e,{ref:h});return y.forEach(n=>{Object.assign(t,n(e))}),t},rootRef:h,contextValue:g,instance:f}},uP=J.createContext(null);function hie(e){let{value:t,children:n}=e;return(0,X.jsx)(uP.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}var dP=()=>{let e=J.useContext(uP);if(e==null)throw Error([`MUI X: Could not find the Tree View context.`,`It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.`,`This can also happen if you are bundling multiple versions of the Tree View.`].join(`
2715`));return e},fP=(e,t,n)=>{e.$$publishEvent(t,n)},pP=`__TREE_VIEW_ROOT_PARENT_ID__`,mP=e=>{let t={};return e.forEach((e,n)=>{t[e]=n}),t},hP=J.createContext(()=>-1),gie=[`children`],gP=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{let i={},a={},o={[pP]:[]},s=(e,c,l)=>{let u=r?r(e):e.id;if(u==null)throw Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(e)].join(`
2716`));if(i[u]!=null)throw Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${u}"`].join(`
2717`));let d=n?n(e):e.label;if(d==null)throw Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(e)].join(`
2718`));i[u]={id:u,label:d,parentId:l,idAttribute:void 0,expandable:!!e.children?.length,disabled:t?t(e):!1,depth:c},a[u]=e;let f=l??`__TREE_VIEW_ROOT_PARENT_ID__`;o[f]||(o[f]=[]),o[f].push(u),e.children?.forEach(e=>s(e,c+1,u))};e.forEach(e=>s(e,0,null));let c={};return Object.keys(o).forEach(e=>{c[e]=mP(o[e])}),{itemMetaMap:i,itemMap:a,itemOrderedChildrenIds:o,itemChildrenIndexes:c}},_P=({instance:e,params:t,state:n,setState:r,experimentalFeatures:i})=>{let a=J.useCallback(e=>n.items.itemMetaMap[e],[n.items.itemMetaMap]),s=J.useCallback(e=>n.items.itemMap[e],[n.items.itemMap]),c=J.useCallback(()=>{let e=t=>{let r=n.items.itemMap[t],i=xt(r,gie),a=n.items.itemOrderedChildrenIds[t];return a&&(i.children=a.map(e)),i};return n.items.itemOrderedChildrenIds[pP].map(e)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),l=J.useCallback(t=>{if(t==null)return!1;let n=e.getItemMeta(t);if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;)if(n=e.getItemMeta(n.parentId),n.disabled)return!0;return!1},[e]),u=J.useCallback(t=>{let r=e.getItemMeta(t).parentId??`__TREE_VIEW_ROOT_PARENT_ID__`;return n.items.itemChildrenIndexes[r][t]},[e,n.items.itemChildrenIndexes]),d=J.useCallback(e=>n.items.itemOrderedChildrenIds[e??`__TREE_VIEW_ROOT_PARENT_ID__`]??[],[n.items.itemOrderedChildrenIds]),f=t=>{let r=e.getItemMeta(t);return r==null?null:document.getElementById(cP({treeId:n.id.treeId,itemId:t,id:r.idAttribute}))},p=n=>t.disabledItemsFocusable?!0:!e.isItemDisabled(n),m=J.useRef(!1),h=J.useCallback(()=>{m.current=!0},[]),g=J.useCallback(()=>m.current,[]);return J.useEffect(()=>{e.areItemUpdatesPrevented()||r(n=>{let r=gP({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(n.items.itemMetaMap).forEach(t=>{r.itemMetaMap[t.id]||fP(e,`removeItem`,{id:t.id})}),o({},n,{items:r})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation==`number`?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:f,getItemTree:c,getItemOrderedChildrenIds:d},instance:{getItemMeta:a,getItem:s,getItemTree:c,getItemsToRender:()=>{let e=t=>{let r=n.items.itemMetaMap[t];return{label:r.label,itemId:r.id,id:r.idAttribute,children:n.items.itemOrderedChildrenIds[t]?.map(e)}};return n.items.itemOrderedChildrenIds[pP].map(e)},getItemIndex:u,getItemDOMElement:f,getItemOrderedChildrenIds:d,isItemDisabled:l,isItemNavigable:p,preventItemUpdates:h,areItemUpdatesPrevented:g},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:i.indentationAtItemLevel??!1}}}};_P.getInitialState=e=>({items:gP({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})}),_P.getDefaultizedParams=({params:e})=>o({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??`12px`}),_P.wrapRoot=({children:e,instance:t})=>(0,X.jsx)(hP.Provider,{value:e=>t.getItemMeta(e)?.depth??0,children:e}),_P.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};var vP=({instance:e,params:t,models:n})=>{let r=J.useMemo(()=>{let e=new Map;return n.expandedItems.value.forEach(t=>{e.set(t,!0)}),e},[n.expandedItems.value]),i=(e,r)=>{t.onExpandedItemsChange?.(e,r),n.expandedItems.setControlledValue(r)},a=J.useCallback(e=>r.has(e),[r]),o=J.useCallback(t=>!!e.getItemMeta(t)?.expandable,[e]),s=Tt((t,n)=>{let r=e.isItemExpanded(n);e.setItemExpansion(t,n,!r)}),c=Tt((r,a,o)=>{if(e.isItemExpanded(a)===o)return;let s;s=o?[a].concat(n.expandedItems.value):n.expandedItems.value.filter(e=>e!==a),t.onItemExpansionToggle&&t.onItemExpansionToggle(r,a,o),i(r,s)}),l=(r,a)=>{let o=e.getItemMeta(a),s=e.getItemOrderedChildrenIds(o.parentId).filter(t=>e.isItemExpandable(t)&&!e.isItemExpanded(t)),c=n.expandedItems.value.concat(s);s.length>0&&(t.onItemExpansionToggle&&s.forEach(e=>{t.onItemExpansionToggle(r,e,!0)}),i(r,c))},u=J.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?`iconContainer`:`content`,[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:c},instance:{isItemExpanded:a,isItemExpandable:o,setItemExpansion:c,toggleItemExpansion:s,expandAllSiblings:l},contextValue:{expansion:{expansionTrigger:u}}}};vP.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};var _ie=[];vP.getDefaultizedParams=({params:e})=>o({},e,{defaultExpandedItems:e.defaultExpandedItems??_ie}),vP.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};var yP=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)--n;if(n!==-1)return t[n]},bP=(e,t)=>{let n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(t);if(i===0)return n.parentId;let a=i-1;for(;!e.isItemNavigable(r[a])&&a>=0;)--a;if(a===-1)return n.parentId==null?null:bP(e,n.parentId);let o=r[a],s=yP(e,e.getItemOrderedChildrenIds(o));for(;e.isItemExpanded(o)&&s!=null;)o=s,s=e.getItemOrderedChildrenIds(o).find(e.isItemNavigable);return o},xP=(e,t)=>{if(e.isItemExpanded(t)){let n=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(n!=null)return n}let n=e.getItemMeta(t);for(;n!=null;){let t=e.getItemOrderedChildrenIds(n.parentId),r=e.getItemIndex(n.id);if(r<t.length-1){let n=r+1;for(;!e.isItemNavigable(t[n])&&n<t.length-1;)n+=1;if(e.isItemNavigable(t[n]))return t[n]}n=e.getItemMeta(n.parentId)}return null},SP=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){let n=yP(e,e.getItemOrderedChildrenIds(t));if(n==null)return t;t=n}return t},CP=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),wP=(e,t,n)=>{if(t===n)return[t,n];let r=e.getItemMeta(t),i=e.getItemMeta(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];let a=[r.id],o=[i.id],s=r.parentId,c=i.parentId,l=o.indexOf(s)!==-1,u=a.indexOf(c)!==-1,d=!0,f=!0;for(;!u&&!l;)d&&(a.push(s),l=o.indexOf(s)!==-1,d=s!==null,!l&&d&&(s=e.getItemMeta(s).parentId)),f&&!l&&(o.push(c),u=a.indexOf(c)!==-1,f=c!==null,!u&&f&&(c=e.getItemMeta(c).parentId));let p=l?s:c,m=e.getItemOrderedChildrenIds(p),h=a[a.indexOf(p)-1],g=o[o.indexOf(p)-1];return m.indexOf(h)<m.indexOf(g)?[t,n]:[n,t]},vie=(e,t,n)=>{let r=t=>{if(e.isItemExpandable(t)&&e.isItemExpanded(t))return e.getItemOrderedChildrenIds(t)[0];let n=e.getItemMeta(t);for(;n!=null;){let t=e.getItemOrderedChildrenIds(n.parentId),r=e.getItemIndex(n.id);if(r<t.length-1)return t[r+1];n=e.getItemMeta(n.parentId)}throw Error(`Invalid range`)},[i,a]=wP(e,t,n),o=[i],s=i;for(;s!==a;)s=r(s),e.isItemDisabled(s)||o.push(s);return o},yie=e=>{let t=CP(e),n=[];for(;t!=null;)n.push(t),t=xP(e,t);return n},TP=(e,t)=>t!==e.closest(`*[role="treeitem"]`),EP=e=>Array.isArray(e)?e:e==null?[]:[e],DP=e=>{let t={};return e.forEach(e=>{t[e]=!0}),t},OP=({instance:e,params:t,models:n})=>{let r=J.useRef(null),i=J.useRef({}),a=J.useMemo(()=>{let e=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(t=>{e.set(t,!0)}):n.selectedItems.value!=null&&e.set(n.selectedItems.value,!0),e},[n.selectedItems.value]),o=(r,i)=>{if(t.onItemSelectionToggle)if(t.multiSelect){let a=i.filter(t=>!e.isItemSelected(t)),o=n.selectedItems.value.filter(e=>!i.includes(e));a.forEach(e=>{t.onItemSelectionToggle(r,e,!0)}),o.forEach(e=>{t.onItemSelectionToggle(r,e,!1)})}else i!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(r,n.selectedItems.value,!1),i!=null&&t.onItemSelectionToggle(r,i,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(r,i),n.selectedItems.setControlledValue(i)},s=e=>a.has(e),c=({event:a,itemId:s,keepExistingSelection:c=!1,shouldBeSelected:l})=>{if(t.disableSelection)return;let u;if(c){let t=EP(n.selectedItems.value),r=e.isItemSelected(s);u=r&&(l===!1||l==null)?t.filter(e=>e!==s):!r&&(l===!0||l==null)?[s].concat(t):t}else u=l===!1||l==null&&e.isItemSelected(s)?t.multiSelect?[]:null:t.multiSelect?[s]:s;o(a,u),r.current=s,i.current={}},l=(r,[a,s])=>{if(t.disableSelection||!t.multiSelect)return;let c=EP(n.selectedItems.value).slice();Object.keys(i.current).length>0&&(c=c.filter(e=>!i.current[e]));let l=DP(c),u=vie(e,a,s),d=u.filter(e=>!l[e]);c=c.concat(d),o(r,c),i.current=DP(u)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:c},instance:{isItemSelected:s,selectItem:c,selectAllNavigableItems:n=>{if(t.disableSelection||!t.multiSelect)return;let r=yie(e);o(n,r),i.current=DP(r)},expandSelectionRange:(t,n)=>{if(r.current!=null){let[i,a]=wP(e,n,r.current);l(t,[i,a])}},selectRangeFromStartToItem:(t,n)=>{l(t,[CP(e),n])},selectRangeFromItemToEnd:(t,n)=>{l(t,[n,SP(e)])},selectItemFromArrowNavigation:(e,r,a)=>{if(t.disableSelection||!t.multiSelect)return;let s=EP(n.selectedItems.value).slice();Object.keys(i.current).length===0?(s.push(a),i.current={[r]:!0,[a]:!0}):(i.current[r]||(i.current={}),i.current[a]?(s=s.filter(e=>e!==r),delete i.current[r]):(s.push(a),i.current[a]=!0)),o(e,s)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};OP.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};var bie=[];OP.getDefaultizedParams=({params:e})=>o({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?bie:null)}),OP.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};var kP=1e3,xie=class{constructor(e=kP){this.timeouts=new Map,this.cleanupTimeout=kP,this.cleanupTimeout=e}register(e,t,n){this.timeouts||=new Map;let r=setTimeout(()=>{typeof t==`function`&&t(),this.timeouts.delete(n.cleanupToken)},this.cleanupTimeout);this.timeouts.set(n.cleanupToken,r)}unregister(e){let t=this.timeouts.get(e.cleanupToken);t&&(this.timeouts.delete(e.cleanupToken),clearTimeout(t))}reset(){this.timeouts&&=(this.timeouts.forEach((e,t)=>{this.unregister({cleanupToken:t})}),void 0)}},Sie=class{constructor(){this.registry=new FinalizationRegistry(e=>{typeof e==`function`&&e()})}register(e,t,n){this.registry.register(e,t,n)}unregister(e){this.registry.unregister(e)}reset(){}},Cie=class{};function wie(e){let t=0;return function(n,r,i){e.registry===null&&(e.registry=typeof FinalizationRegistry<`u`?new Sie:new xie);let[a]=J.useState(new Cie),o=J.useRef(null),s=J.useRef(void 0);s.current=i;let c=J.useRef(null);!o.current&&s.current?(o.current=n.$$subscribeEvent(r,(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)}),t+=1,c.current={cleanupToken:t},e.registry.register(a,()=>{o.current?.(),o.current=null,c.current=null},c.current)):!s.current&&o.current&&(o.current(),o.current=null,c.current&&=(e.registry.unregister(c.current),null)),J.useEffect(()=>(!o.current&&s.current&&(o.current=n.$$subscribeEvent(r,(e,t)=>{t.defaultMuiPrevented||s.current?.(e,t)})),c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{o.current?.(),o.current=null}),[n,r])}}var Tie=wie({registry:null}),AP=(e=document)=>{let t=e.activeElement;return t?t.shadowRoot?AP(t.shadowRoot):t:null};function Eie(e){return e.replace(/["\\]/g,`\\$&`)}var Die=(e,t)=>{let n=EP(t).find(t=>{if(!e.isItemNavigable(t))return!1;let n=e.getItemMeta(t);return n&&(n.parentId==null||e.isItemExpanded(n.parentId))});return n??=CP(e),n},jP=({instance:e,params:t,state:n,setState:r,models:i,rootRef:a})=>{let s=Die(e,i.selectedItems.value),c=Tt(e=>{let t=typeof e==`function`?e(n.focusedItemId):e;n.focusedItemId!==t&&r(e=>o({},e,{focusedItemId:t}))}),l=J.useCallback(()=>!!a.current&&a.current.contains(AP(Xn(a.current))),[a]),u=J.useCallback(e=>n.focusedItemId===e&&l(),[n.focusedItemId,l]),d=t=>{let n=e.getItemMeta(t);return n&&(n.parentId==null||e.isItemExpanded(n.parentId))},f=(n,r)=>{let i=e.getItemDOMElement(r);i&&i.focus(),c(r),t.onItemFocus&&t.onItemFocus(n,r)},p=Tt((e,t)=>
2718{d(t)&&f(e,t)}),m=Tt(()=>{if(n.focusedItemId!=null){if(e.getItemMeta(n.focusedItemId)){let t=e.getItemDOMElement(n.focusedItemId);t&&t.blur()}c(null)}}),h=e=>e===s;Tie(e,`removeItem`,({id:e})=>{n.focusedItemId===e&&f(null,s)});let g=e=>t=>{e.onFocus?.(t),!t.defaultMuiPrevented&&t.target===t.currentTarget&&f(t,s)};return{getRootProps:e=>({onFocus:g(e)}),publicAPI:{focusItem:p},instance:{isItemFocused:u,canItemBeTabbed:h,focusItem:p,removeFocusedItem:m}}};jP.getInitialState=()=>({focusedItemId:null}),jP.params={onItemFocus:!0};var MP=(e,t)=>e.getAvailablePlugins().has(t),Oie=({props:e})=>{let{instance:t}=dP(),{label:n,itemId:r}=e,[i,a]=J.useState(n),o=t.isItemBeingEdited(r);return J.useEffect(()=>{o||a(n)},[o,n]),{propsEnhancers:{labelInput:({externalEventHandlers:e,interactions:n})=>t.isItemEditable(r)?{value:i??``,"data-element":`labelInput`,onChange:t=>{e.onChange?.(t),a(t.target.value)},onKeyDown:t=>{if(e.onKeyDown?.(t),t.defaultMuiPrevented)return;let r=t.target;t.key===`Enter`&&r.value?n.handleSaveItemLabel(t,r.value):t.key===`Escape`&&n.handleCancelItemLabelEditing(t)},onBlur:t=>{e.onBlur?.(t),!t.defaultMuiPrevented&&t.target.value&&n.handleSaveItemLabel(t,t.target.value)}
vendor: 8,342 bytes, lines 2718-2721
2718,autoFocus:!0,type:`text`}:{}}}},NP=({instance:e,state:t,setState:n,params:r})=>{let i=J.useRef(t.editedItemId),a=e=>i.current===e,s=e=>{n(t=>o({},t,{editedItemId:e})),i.current=e},c=e=>e===t.editedItemId,l=!!r.isItemEditable,u=t=>{if(t==null||!l)return!1;let n=e.getItem(t);return n?typeof r.isItemEditable==`function`?r.isItemEditable(n):!!r.isItemEditable:!1},d=(e,t)=>{if(!t)throw Error(["MUI X: The Tree View component requires all items to have a `label` property.",`The label of an item cannot be empty.`,e].join(`
2719`));n(n=>{let r=n.items.itemMetaMap[e];return r.label===t?n:o({},n,{items:o({},n.items,{itemMetaMap:o({},n.items.itemMetaMap,{[e]:o({},r,{label:t})})})})}),r.onItemLabelChange&&r.onItemLabelChange(e,t)};return{instance:{setEditedItemId:s,isItemBeingEdited:c,updateItemLabel:d,isItemEditable:u,isTreeViewEditable:l,isItemBeingEditedRef:a},publicAPI:{updateItemLabel:d}}};NP.itemPlugin=Oie,NP.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{let n=t?.labelEditing;return o({},e,{isItemEditable:n?e.isItemEditable??!1:!1})},NP.getInitialState=()=>({editedItemId:null}),NP.params={onItemLabelChange:!0,isItemEditable:!0};function kie(e){return!!e&&e.length===1&&!!e.match(/\S/)}var PP=({instance:e,params:t,state:n})=>{let r=Jn(),i=J.useRef({}),a=Tt(e=>{i.current=e(i.current)});J.useEffect(()=>{if(e.areItemUpdatesPrevented())return;let t={};Object.values(n.items.itemMetaMap).forEach(e=>{t[e.id]=e.label.substring(0,1).toLowerCase()}),i.current=t},[n.items.itemMetaMap,t.getItemId,e]);let o=(t,n)=>{let r=n.toLowerCase(),a=t=>{let n=xP(e,t);return n===null?CP(e):n},o=null,s=a(t),c={};for(;o==null&&!c[s];)i.current[s]===r?o=s:(c[s]=!0,s=a(s));return o},s=n=>!t.disableSelection&&!e.isItemDisabled(n),c=t=>!e.isItemDisabled(t)&&e.isItemExpandable(t);return{instance:{updateFirstCharMap:a,handleItemKeyDown:(n,i)=>{if(n.defaultMuiPrevented||n.altKey||TP(n.target,n.currentTarget))return;let a=n.ctrlKey||n.metaKey,l=n.key;switch(!0){case l===` `&&s(i):n.preventDefault(),t.multiSelect&&n.shiftKey?e.expandSelectionRange(n,i):e.selectItem({event:n,itemId:i,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break;case l===`Enter`:MP(e,NP)&&e.isItemEditable(i)&&!e.isItemBeingEdited(i)?e.setEditedItemId(i):c(i)?(e.toggleItemExpansion(n,i),n.preventDefault()):s(i)&&(t.multiSelect?(n.preventDefault(),e.selectItem({event:n,itemId:i,keepExistingSelection:!0})):e.isItemSelected(i)||(e.selectItem({event:n,itemId:i}),n.preventDefault()));break;case l===`ArrowDown`:{let r=xP(e,i);r&&(n.preventDefault(),e.focusItem(n,r),t.multiSelect&&n.shiftKey&&s(r)&&e.selectItemFromArrowNavigation(n,i,r));break}case l===`ArrowUp`:{let r=bP(e,i);r&&(n.preventDefault(),e.focusItem(n,r),t.multiSelect&&n.shiftKey&&s(r)&&e.selectItemFromArrowNavigation(n,i,r));break}case l===`ArrowRight`&&!r||l===`ArrowLeft`&&r:if(a)return;if(e.isItemExpanded(i)){let t=xP(e,i);t&&(e.focusItem(n,t),n.preventDefault())}else c(i)&&(e.toggleItemExpansion(n,i),n.preventDefault());break;case l===`ArrowLeft`&&!r||l===`ArrowRight`&&r:if(a)return;if(c(i)&&e.isItemExpanded(i))e.toggleItemExpansion(n,i),n.preventDefault();else{let t=e.getItemMeta(i).parentId;t&&(e.focusItem(n,t),n.preventDefault())}break;case l===`Home`:s(i)&&t.multiSelect&&a&&n.shiftKey?e.selectRangeFromStartToItem(n,i):e.focusItem(n,CP(e)),n.preventDefault();break;case l===`End`:s(i)&&t.multiSelect&&a&&n.shiftKey?e.selectRangeFromItemToEnd(n,i):e.focusItem(n,SP(e)),n.preventDefault();break;case l===`*`:e.expandAllSiblings(n,i),n.preventDefault();break;case String.fromCharCode(n.keyCode)===`A`&&a&&t.multiSelect&&!t.disableSelection:e.selectAllNavigableItems(n),n.preventDefault();break;case!a&&!n.shiftKey&&kie(l):{let t=o(i,l);t!=null&&(e.focusItem(n,t),n.preventDefault());break}}}}}};PP.params={};var FP=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});FP.params={};var IP=J.createContext(null);function LP(e){let{children:t,itemId:n=null}=e,{instance:r,treeId:i,rootRef:a}=dP(),o=J.useRef(new Map);J.useEffect(()=>{if(!a.current)return;let e=null;if(n==null)e=a.current.id;else{let t=r.getItemMeta(n);t!==void 0&&(e=cP({itemId:n,treeId:i,id:t.idAttribute}))}if(e==null)return;let t=r.getItemOrderedChildrenIds(n??null)??[],s=Eie(e),c=a.current.querySelectorAll(`${n==null?``:`*[id="${s}"] `}[role="treeitem"]:not(*[id="${s}"] [role="treeitem"] [role="treeitem"])`),l=Array.from(c).map(e=>o.current.get(e.id));(l.length!==t.length||l.some((e,n)=>e!==t[n]))&&r.setJSXItemsOrderedChildrenIds(n??null,l)});let s=J.useMemo(()=>({registerChild:(e,t)=>o.current.set(e,t),unregisterChild:e=>o.current.delete(e),parentId:n}),[n]);return(0,X.jsx)(IP.Provider,{value:s,children:t})}var RP=({instance:e,setState:t})=>(e.preventItemUpdates(),{instance:{insertJSXItem:Tt(n=>(t(e=>{if(e.items.itemMetaMap[n.id]!=null)throw Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${n.id}"`].join(`
2720`));return o({},e,{items:o({},e.items,{itemMetaMap:o({},e.items.itemMetaMap,{[n.id]:n}),itemMap:o({},e.items.itemMap,{[n.id]:{id:n.id,label:n.label}})})})}),()=>{t(e=>{let t=o({},e.items.itemMetaMap),r=o({},e.items.itemMap);return delete t[n.id],delete r[n.id],o({},e,{items:o({},e.items,{itemMetaMap:t,itemMap:r})})}),fP(e,`removeItem`,{id:n.id})})),setJSXItemsOrderedChildrenIds:(e,n)=>{let r=e??`__TREE_VIEW_ROOT_PARENT_ID__`;t(e=>o({},e,{items:o({},e.items,{itemOrderedChildrenIds:o({},e.items.itemOrderedChildrenIds,{[r]:n}),itemChildrenIndexes:o({},e.items.itemChildrenIndexes,{[r]:mP(n)})})}))},mapFirstCharFromJSX:Tt((t,n)=>(e.updateFirstCharMap(e=>(e[t]=n,e)),()=>{e.updateFirstCharMap(e=>{let n=o({},e);return delete n[t],n})}))}}),zP=e=>Array.isArray(e)?e.length>0&&e.some(zP):!!e;RP.itemPlugin=({props:e,rootRef:t,contentRef:n})=>{let{instance:r,treeId:i}=dP(),{children:a,disabled:o=!1,label:s,itemId:c,id:l}=e,u=J.useContext(IP);if(u==null)throw Error([`MUI X: Could not find the Tree View Children Item context.`,`It looks like you rendered your component outside of a SimpleTreeView parent component.`,`This can also happen if you are bundling multiple versions of the Tree View.`].join(`
2721`));let{registerChild:d,unregisterChild:f,parentId:p}=u,m=zP(a),h=J.useRef(null),g=et(h,n);return rt(()=>{let e=cP({itemId:c,treeId:i,id:l});return d(e,c),()=>{f(e)}},[d,f,c,l,i]),J.useEffect(()=>r.insertJSXItem({id:c,idAttribute:l,parentId:p,expandable:m,disabled:o}),[r,p,c,m,o,l]),J.useEffect(()=>{if(s)return r.mapFirstCharFromJSX(c,(h.current?.textContent??``).substring(0,1).toLowerCase())},[r,c,s]),{contentRef:g,rootRef:t}},RP.wrapItem=({children:e,itemId:t})=>{let n=J.useContext(hP);return(0,X.jsx)(LP,{itemId:t,children:(0,X.jsx)(hP.Provider,{value:n+1,children:e})})},RP.wrapRoot=({children:e})=>(0,X.jsx)(LP,{children:(0,X.jsx)(hP.Provider,{value:0,children:e})}),RP.params={};var Aie=[_P,vP,OP,jP,PP,FP,RP],jie=iP(`MuiSimpleTreeView`),Mie=e=>{let{classes:t}=e;return Et({root:[`root`]},iie,t)},Nie=ft(`ul`,{name:`MuiSimpleTreeView`,slot:`Root`,overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:`none`,outline:0,position:`relative`}),Pie=[],BP=J.forwardRef(function(e,t){let n=jie({props:e,name:`MuiSimpleTreeView`}),r=n,{getRootProps:i,contextValue:a}=mie({plugins:Aie,rootRef:t,props:o({},n,{items:Pie})}),{slots:s,slotProps:c}=n,l=Mie(n),u=s?.root??Nie;return(0,X.jsx)(hie,{value:a,children:(0,X.jsx)(u,o({},qn({elementType:u,externalSlotProps:c?.root,className:l.root,getSlotProps:i,ownerState:r})))})});function VP(e){let{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:i,disableSelection:a},expansion:{expansionTrigger:o}}=dP(),s=t.isItemExpandable(e),c=t.isItemExpanded(e),l=t.isItemFocused(e),u=t.isItemSelected(e),d=t.isItemDisabled(e),f=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,p=t.isItemEditable?t.isItemEditable(e):!1,m=n=>{if(!d){l||t.focusItem(n,e);let i=r&&(n.shiftKey||n.ctrlKey||n.metaKey);s&&!(i&&t.isItemExpanded(e))&&t.toggleItemExpansion(n,e)}},h=n=>{d||(l||t.focusItem(n,e),r&&(n.shiftKey||n.ctrlKey||n.metaKey)?n.shift
2721Key?t.expandSelectionRange(n,e):t.selectItem({event:n,itemId:e,keepExistingSelection:!0}):t.selectItem({event:n,itemId:e,shouldBeSelected:!0}))},g=n=>{if(a||d)return;let i=n.nativeEvent.shiftKey;r&&i?t.expandSelectionRange(n,e):t.selectItem({event:n,itemId:e,keepExistingSelection:r,shouldBeSelected:n.target.checked})},_=e=>{(e.shiftKey||e.ctrlKey||e.metaKey||d)&&e.preventDefault()},v=()=>{MP(t,NP)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:d,expanded:c,selected:u,focused:l,editable:p,editing:f,disableSelection:a,checkboxSelection:i,handleExpansion:m,handleSelection:h,handleCheckboxSelection:g,handleContentClick:n,preventSelection:_,expansionTrigger:o,toggleItemEditing:v,handleSaveItemLabel:(n,r)=>{MP(t,NP)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,r),v(),t.focusItem(n,e))},handleCancelItemLabelEditing:n=>{MP(t,NP)&&t.isItemBeingEditedRef(e)&&(v(),t.focusItem(n,e))}}}var Fie=ft(`div`,{name:`MuiTreeItem2DragAndDropOverlay`,slot:`Root`,overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>nt(e)&&e!==`action`})(({theme:e})=>({position:`absolute`,left:0,display:`flex`,top:0,bottom:0,right:0,pointerEvents:`none`,variants:[{props:{action:`make-child`},style:{marginLeft:`calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:I(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:`reorder-above`},style:{marginLeft:`calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))`,borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:`reorder-below`},style:{marginLeft:`calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))`,borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:`move-to-parent`},style:{marginLeft:`calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))`,borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function Iie(e){return e.action==null?null:(0,X.jsx)(Fie,o({},e))}var Lie=ft(`input`,{name:`MuiTreeItem2`,slot:`LabelInput`,overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>o({},e.typography.body1,{width:`100%`,backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:`none`,padding:`0 2px`,boxSizing:`border-box`,"&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),Rie=[`classes`,`className`,`displayIcon`,`expansionIcon`,`icon`,`label`,`itemId`,`onClick`,`onMouseDown`,`dragAndDropOverlayProps`,`labelInputProps`],HP=J.forwardRef(function(e,t){let{classes:n,className:r,displayIcon:i,expansionIcon:a,icon:s,label:c,itemId:l,onClick:u,onMouseDown:d,dragAndDropOverlayProps:f,labelInputProps:p}=e,m=xt(e,Rie),{disabled:h,expanded:g,selected:_,focused:v,editing:y,editable:b,disableSelection:x,checkboxSelection:S,handleExpansion:C,handleSelection:w,handleCheckboxSelection:T,handleContentClick:E,preventSelection:D,expansionTrigger:O,toggleItemEditing:k}=VP(l),A=s||a||i,j=J.useRef(null);return(0,X.jsxs)(`div`,o({},m,{className:ht(n.root,r,g&&n.expanded,_&&n.selected,v&&n.focused,h&&n.disabled,y&&n.editing,b&&n.editable),onClick:e=>{E?.(e,l),!j.current?.contains(e.target)&&(O===`content`&&C(e),S||w(e),u&&u(e))},onMouseDown:e=>{D(e),d&&d(e)},ref:t,children:[(0,X.jsx)(`div`,{className:n.iconContainer,children:A}),S&&(0,X.jsx)(kr,{className:n.checkbox,checked:_,onChange:T,disabled:h||x,ref:j,tabIndex:-1}),y?(0,X.jsx)(Lie,o({},p,{className:n.labelInput})):(0,X.jsx)(`div`,o({className:n.label},b&&{onDoubleClick:e=>{e.defaultMuiPrevented||k()}},{children:c})),f&&(0,X.jsx)(Iie,o({},f))]}))});function zie(e){return ot(`MuiTreeItem`,e)}var UP=tt(`MuiTreeItem`,[`root`,`groupTransition`,`content`,`expanded`,`selected`,`focused`,`disabled`,`iconContainer`,`label`,`checkbox`,`labelInput`,`editable`,`editing`,`dragAndDropOverlay`]),Bie=K((0,X.jsx)(`path`,{d:`M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`}),`TreeViewExpandIcon`),Vie=K((0,X.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`TreeViewCollapseIcon`);function WP(e){let{children:t,itemId:n}=e,{wrapItem:r,instance:i}=dP();return r({children:t,itemId:n,instance:i})}
vendor: 5,650 bytes, line 2721
2721WP.propTypes={children:Z.default.node,itemId:Z.default.string.isRequired};var Hie=[`children`,`className`,`slots`,`slotProps`,`ContentComponent`,`ContentProps`,`itemId`,`id`,`label`,`onClick`,`onMouseDown`,`onFocus`,`onBlur`,`onKeyDown`],Uie=[`ownerState`],Wie=[`ownerState`],Gie=[`ownerState`],Kie=iP(`MuiTreeItem`),qie=e=>{let{classes:t}=e;return Et({root:[`root`],content:[`content`],expanded:[`expanded`],selected:[`selected`],focused:[`focused`],disabled:[`disabled`],iconContainer:[`iconContainer`],checkbox:[`checkbox`],label:[`label`],labelInput:[`labelInput`],editing:[`editing`],editable:[`editable`],groupTransition:[`groupTransition`]},zie,t)},Jie=ft(`li`,{name:`MuiTreeItem`,slot:`Root`,overridesResolver:(e,t)=>t.root})({listStyle:`none`,margin:0,padding:0,outline:0}),Yie=ft(HP,{name:`MuiTreeItem`,slot:`Content`,overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${UP.iconContainer}`]:t.iconContainer},t.label&&{[`& .${UP.label}`]:t.label}],shouldForwardProp:e=>nt(e)&&e!==`indentationAtItemLevel`})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:`100%`,boxSizing:`border-box`,position:`relative`,display:`flex`,alignItems:`center`,gap:e.spacing(1),cursor:`pointer`,WebkitTapHighlightColor:`transparent`,"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${UP.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:`transparent`},[`&.${UP.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${UP.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:I(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:I(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:I(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${UP.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:I(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${UP.iconContainer}`]:{width:16,display:`flex`,flexShrink:0,justifyContent:`center`,"& svg":{fontSize:18}},[`& .${UP.label}`]:o({width:`100%`,boxSizing:`border-box`,minWidth:0,position:`relative`},e.typography.body1),[`& .${UP.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),Xie=ft(gr,{name:`MuiTreeItem`,slot:`GroupTransition`,overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>nt(e)&&e!==`indentationAtItemLevel`})({margin:0,padding:0,paddingLeft:`var(--TreeView-itemChildrenIndentation)`,variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),GP=J.forwardRef(function(e,t){let{icons:n,runItemPlugins:r,items:{disabledItemsFocusable:i,indentationAtItemLevel:a},selection:{disableSelection:s},expansion:{expansionTrigger:c},treeId:l,instance:u}=dP(),d=J.useContext(hP),f=Kie({props:e,name:`MuiTreeItem`}),{children:p,className:m,slots:h,slotProps:g,ContentComponent:_=HP,ContentProps:v,itemId:y,id:b,label:x,onClick:S,onMouseDown:C,onBlur:w,onKeyDown:T}=f,E=xt(f,Hie),{expanded:D,focused:O,selected:k,disabled:A,editing:j,handleExpansion:M,handleCancelItemLabelEditing:N,handleSaveItemLabel:P}=VP(y),{contentRef:F,rootRef:I,propsEnhancers:ee}=r(f),L=J.useRef(null),R=J.useRef(null),z=et(t,I,L),te=et(v?.ref,F,R),ne={expandIcon:h?.expandIcon??n.slots.expandIcon??Bie,collapseIcon:h?.collapseIcon??n.slots.collapseIcon??Vie,endIcon:h?.endIcon??n.slots.endIcon,icon:h?.icon,groupTransition:h?.groupTransition},re=e=>Array.isArray(e)?e.length>0&&e.some(re):!!e,ie=re(p),ae=o({},f,{expanded:D,focused:O,selected:k,disabled:A,indentationAtItemLevel:a}),oe=qie(ae),se=ne.groupTransition??void 0,ce=qn({elementType:se,ownerState:{},externalSlotProps:g?.groupTransition,additionalProps:o({unmountOnExit:!0,in:D,component:`ul`,role:`group`},a?{indentationAtItemLevel:!0}:{}),className:oe.groupTransition}),le=e=>{c===`iconContainer`&&M(e)},B=D?ne.collapseIcon:ne.expandIcon,ue=xt(qn({elementType:B,ownerState:{},externalSlotProps:e=>D?o({},cr(n.slotProps.collapseIcon,e),cr(g?.collapseIcon,e)):o({},cr(n.slotProps.expandIcon,e),cr(g?.expandIcon,e)),additionalProps:{onClick:le}}),Uie),de=ie&&B?(0,X.jsx)(B,o({},ue)):null,fe=ie?void 0:ne.endIcon,pe=xt(qn({elementType:fe,ownerState:{},externalSlotProps:e=>ie?{}:o({},cr(n.slotProps.endIcon,e),cr(g?.endIcon,e))}),Wie),me=fe?(0,X.jsx)(fe,o({},pe)):null,he=ne.icon,ge=xt(qn({elementType:he,ownerState:{},externalSlotProps:g?.icon}),Gie),_e=he?(0,X.jsx)(he,o({},ge)):null,ve;ve=k?!0:s||A?void 0:!1;function ye(e){!O&&(!A||i)&&e.currentTarget===e.target&&u.focusItem(e,y)}function be(e){w?.(e),!(j||e.relatedTarget&&TP(e.relatedTarget,L.current)&&(e.target&&e.target?.dataset?.element===`labelInput`&&TP(e.target,L.current)||e.relatedTarget?.dataset?.element===`labelInput`))&&u.removeFocusedItem()}let xe=e=>{T?.(e),e.target?.dataset?.element!==`labelInput`&&u.handleItemKeyDown(e,y)},Se=cP({itemId:y,treeId:l,id:b}),Ce=u.canItemBeTabbed(y)?0:-1,V={rootRefObject:L,contentRefObject:R,interactions:{handleSaveItemLabel:P,handleCancelItemLabelEditing:N}},we=ee.root?.(o({}
2721,V,{externalEventHandlers:sr(E)}))??{},Te=ee.content?.(o({},V,{externalEventHandlers:sr(v)}))??{},Ee=ee.dragAndDropOverlay?.(o({},V,{externalEventHandlers:{}}))??{},De=ee.labelInput?.(o({},V,{externalEventHandlers:{}}))??{};return(0,X.jsx)(WP,{itemId:y,children:(0,X.jsxs)(Jie,o({className:ht(oe.root,m),role:`treeitem`,"aria-expanded":ie?D:void 0,"aria-selected":ve,"aria-disabled":A||void 0,id:Se,tabIndex:Ce},E,{ownerState:ae,onFocus:ye,onBlur:be,onKeyDown:xe,ref:z,style:a?o({},E.style,{"--TreeView-itemDepth":typeof d==`function`?d(y):d}):E.style},we,{children:[(0,X.jsx)(Yie,o({as:_,classes:{root:oe.content,expanded:oe.expanded,selected:oe.selected,focused:oe.focused,disabled:oe.disabled,editable:oe.editable,editing:oe.editing,iconContainer:oe.iconContainer,label:oe.label,labelInput:oe.labelInput,checkbox:oe.checkbox},label:x,itemId:y,onClick:S,onMouseDown:C,icon:_e,expansionIcon:de,displayIcon:me,ownerState:ae},v,Te,Ee.action==null?{}:{dragAndDropOverlayProps:Ee},De.value==null?{}:{labelInputProps:De},{ref:te})),p&&(0,X.jsx)(Xie,o({as:se},ce,{children:p}))]}))})}),Zie=B()(e=>({dialogTitle:{"& svg":{height:64,width:64,position:`absolute`,padding:16,color:e.palette.text.gray,top:0}},typography:{color:e.palette.text.gray,fontSize:`17px`,textAlign:`center`,fontWeight:`bold`},cursor:{cursor:`pointer`},buttonArea:{padding:e.spacing(1,2.5)},treeContent:{height:`calc(100vh - 64px)`,overflowY:`scroll`},topBar:{padding:`0 !important`,display:`flex`,alignItems:`center`,background:e.palette.background.innerPage,height:64,textAlign:`center`,position:`relative`,"& svg":{height:64,width:64,position:`absolute`,padding:16,color:e.palette.text.gray,top:0},"& h6":{margin:` 0 auto`,height:64,display:`flex`,alignItems:`center`,fontSize:`1rem`}},fixed:{position:`fixed`,zIndex:10,width:`100%`},paperAnchorBottom:{margin:`45px 0 25px`,color:e.palette.text.gray,padding:e.spacing(3,2)},submitButtonMobile:{position:`fixed`,bottom:0,zIndex:10,borderTopRightRadius:e.spacing(1),borderTopLeftRadius:e.spacing(1),borderBottomLeftRadius:0,borderBottomRightRadius:0}})),KP=({open:e,handelClose:t,isMobile:n=!1,handleSubmitButton:r,children:i,submitLoading:a=!1})=>{let{t:o}=Ye(),{classes:s,cx:c}=Zie();return l(f,{children:n?l(zr,{anchor:`bottom`,open:e,onClose:t,disableSwipeToOpen:!0,children:d(Hr,{container:!0,columns:12,className:s.treeContent,children:[d(`div`,{className:c(s.topBar,s.fixed),children:[l(ci,{className:`close`,onClick:t}),l(St,{variant:`h6`,children:o(`position.labels.treePositionsTitle`)})]}),l(Hr,{xs:12,item:!0,className:s.paperAnchorBottom,children:i}),l(Hr,{xs:12,item:!0,children:l(nr,{fullWidth:!0,variant:`contained`,onClick:r,className:s.submitButtonMobile,children:o(`common.labels.submit`)})})]})}):l(`div`,{children:d(Mr,{open:e,fullWidth:!0,onClose:t,scroll:`paper`,"aria-labelledby":`scroll-dialog-title`,"aria-describedby":`scroll-dialog-description`,children:[d(Ir,{id:`scroll-dialog-title`,className:s.dialogTitle,children:[l(ci,{className:s.cursor,onClick:t}),l(St,{variant:`subtitle2`,className:s.typography,children:o(`position.labels.treePositionsTitle`)})]}),l(Pr,{dividers:!0,children:l(Fr,{id:`scroll-dialog-description`,tabIndex:-1,children:i})}),l(Nr,{children:d(Hr,{container:!0,className:s.buttonArea,children:[l(Hr,{item:!0,sm:8}),l(Hr,{item:!0,sm:4,children:d(fi,{variant:`contained`,fullWidth:!0,onClick:r,disabled:a,children:[a&&l(Oi,{color:`white`}),!a&&o(`common.labels.submit`)]})})]})})]})})})};KP.propTypes={open:Z.default.bool.isRequired,handelClose:Z.default.func.isRequired,isMobile:Z.default.bool,handleSubmitButton:Z.default.func.isRequired,children:Z.default.shape({}).isRequired};var Qie=B()(e=>({treeDesktop:{maxWidth:`100%`,padding:8,borderRadius:8,backgroundColor:e.palette.background.innerPage},treeMobile:{padding:8,borderRadius:8},treeItemContent:{padding:e.spacing(0,1)},treeItemGroup:{padding:0,marginRight:e.spacing(2)}})),$ie=({slotedPositionEmployeeData:e,slotedPositionEmloyeeLoading:t,isSingleSelection:n,isMobile:r,radioButtonValue:i,checkboxValue:a,handleChangeRadioButton:o,handleOnChangeCheckbox:s,isForwardLetter:c,showFreePosition:u,enablesList:d})=>{let{classes:p}=Qie(),[m,h]=(0,J.useState)([]);(0,J.useEffect)(()=>{Object.keys(e).length&&g(e)},[e]);let g=e=>Object.keys(e)?.map(t=>Object.keys(e[t]).map(n=>{h(r=>[...r,`${t}_${e[t][n].slot.join(`-`)}`]),g(e[t][n].children||{})})),_=(e,t)=>
2721{h(t)},v=(e,t)=>d?!d[`${t}_${e.slot.join(`-`)}`]:!!(c&&(e.isTemporary||e.status===`disabled`||!e.allowed)),y=e=>!(!u&&e),b=e=>Object.keys(e).map(t=>Object.keys(e[t]).map(r=>l(f,{children:y(e[t][r].isTemporary)&&l(GP,{classes:{content:p.treeItemContent,groupTransition:p.treeItemGroup},itemId:`${t}_${e[t][r].slot.join(`-`)}`,label:n?l(Br,{value:{position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username,firstName:e[t][r].user?.firstName,lastName:e[t][r].user?.lastName}},onChange:e=>o(e),onClick:e=>e.stopPropagation(),control:l(mr,{size:`small`,value:JSON.stringify({position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username||null,firstName:e[t][r].user?.firstName||null,lastName:e[t][r].user?.lastName||null}}),disabled:v(e[t][r],t),checked:JSON.stringify(i)===JSON.stringify({position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username||null,firstName:e[t][r].user?.firstName||null,lastName:e[t][r].user?.lastName||null}}),onChange:o,onClick:e=>e.stopPropagation()}),label:l(f,{children:`${e[t][r].title} (${Me(e[t][r].user,null,!0)})`})}):l(Br,{control:l(kr,{size:`small`,value:JSON.stringify({position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username||null,firstName:e[t][r].user?.firstName||null,lastName:e[t][r].user?.lastName||null}}),checked:a.some(n=>rP(n?.position,{id:t,slot:e[t][r].slot})),disabled:v(e[t][r],t),onChange:s,onClick:e=>e.stopPropagation()}),label:l(f,{children:`${e[t][r].title} (${Me(e[t][r].user,null,!0)})`})}),children:b(e[t][r].children||{})})})));return l(BP,{"aria-label":`file system navigator`,slots:{expandIcon:mi,collapseIcon:hi},expandedItems:m,onExpandedItemsChange:_,sx:{height:r?`auto`:440,flexGrow:1,maxWidth:400,overflowY:r?`none`:`auto`,overflowX:`auto`},className:r?p.treeMobile:p.treeDesktop,children:t?l(Oi,{}):b(e)})},qP=({slotedPositionEmployeeData:e,slotedPositionEmloyeeLoading:t=!1,open:n,handelClose:r,isSingleSelection:i,isMobile:a,selectedPositionEmployee:o,onSubmitPositionEmployee:s,isForwardLetter:c,showFreePosition:u,maxTouch:d,submitLoading:f=!1})=>{let[p,m]=(0,J.useState)(o),[h,g]=(0,J.useState)(Array.isArray(o)?o:[]),_=(0,J.useRef)({});(0,J.useEffect)(()=>{i?m(o):Array.isArray(o)&&g(o)},[o,r]);let v=e=>{m(JSON.parse(e.target.value))},y=e=>{_.current[`${e.position.id}_${e.position.slot.join(`-`)}`]=e},b=e=>{let t=`${e.position.id}_${e.position.slot.join(`-`)}`;_.current[t]?delete _.current[t]:y(e)};return l(KP,{open:!!n,handelClose:r,isMobile:a,handleSubmitButton:async()=>{i?await s(``,p):await s(``,h),r()},submitLoading:f,children:l($ie,{slotedPositionEmployeeData:e||{},isSingleSelection:i,handleChangeRadioButton:v,handleOnChangeCheckbox:e=>{let{checked:t,value:n}=e.target,r=JSON.parse(n);return b(r),g(t?e=>[...e,r]:e=>[...e.filter(e=>!rP(e.position,r.position))])},isMobile:a,radioButtonValue:p,checkboxValue:h,isForwardLetter:c,slotedPositionEmloyeeLoading:t,showFreePosition:u,enablesList:(()=>{if(d)return Object.values(_.current).length>=d?_.current:void 0})()})})},JP=(e,t)=>{let n={},r=(n,i,a)=>{let o=e.filter(e=>e.parent?.id===a);for(let e of o){let a=()=>({title:e.title,capacity:e.capacity,user:null,isTemporary:!0,slot:[...i,0],status:e.status,code:e.code,children:{}});if(n[e.id]={},e.employees!==null&&JSON.stringify(e.employees)!==JSON.stringify([]))for(let o of e.employees)if(JSON.stringify(o.slot.slice(0,i.length))===JSON.stringify(i)){let i=t.find(e=>e.id===o?.user?.id&&e.positions.filter(e=>JSON.stringify(e?.slot)===JSON.stringify(o?.slot)).length>0),a={title:e.title,capacity:e.capacity,user:i?{id:i.id,username:i.username,firstName:i.firstName,lastName:i.lastName}:null,allowed:!!(o?.allowed??!1),isTemporary:!1,slot:o.slot,status:e.status,code:e.code,children:{}};n[e.id][o.slot.slice(-1)[0]]=a,r(n[e.id][o.slot.slice(-1)[0]].children,o.slot,e.i
2721d)}else n[e.id][0]||(n[e.id][0]=a(),r(n[e.id][0].children,[...i,0],e.id));else n[e.id][0]=a(),r(n[e.id][0].children,[...i,0],e.id)}};for(let i of e)if(i.parent===null){let e=t.find(e=>e.positions.filter(e=>e.id===i.id).length>0),{id:a,title:o,capacity:s,status:c,employees:l,code:u}=i,d=a,f=l?.length?i.employees[0].slot:[0],p=!!(l?.length&&i?.employees?.[0]?.allowed),m=!l?.length,h=e?{id:e.id,username:e.username,firstName:e?.firstName,lastName:e?.lastName}:null,g={};n[d]={},n[d][f.slice(-1)[0]]={title:o,capacity:s,user:h,isTemporary:m,allowed:p,slot:f,status:c,code:u,children:g},r(n[d][f.slice(-1)[0]].children,f,d)}return n},YP=Le(Ze(e=>{let{employees:t,positions:n}=e;return{employees:t,positions:n}},{getOrganizationPositionsAsync:Ti,getOrganizationPositionsReset:Ci,organizationEmployeeContactsAsync:yi}),e=>t=>{let{positions:n,employees:r,sortPositions:i}=t,[a,o]=(0,J.useState)([]),[s,c]=(0,J.useState)({}),u=(0,J.useRef)([]),d=e=>Object.keys(e).map(t=>Object.keys(e[t]).map(n=>(u.current=[...u.current,{position:{id:t,slot:e[t][n].slot,title:e[t][n].title,status:e[t][n].status,isTemporary:e[t][n].isTemporary,code:e[t][n].code},...e[t][n].user?.id&&{user:{id:e[t][n].user.id||null,username:e[t][n].user?.username||null,firstName:e[t][n].user?.firstName||null,lastName:e[t][n].user?.lastName||null}}}],d(e[t][n].children||{}))));return(0,J.useEffect)(()=>{if(n.organizationPositions.data?.length>0&&r.organizationEmployeeContacts.data?.length>=0){let e=JP(n.organizationPositions.data,r.organizationEmployeeContacts.data);u.current=[],c(e),d(e),o(()=>i?i(u.current):u.current)}},[n.organizationPositions.data,r.organizationEmployeeContacts.data]),l(e,{positionEmployeeOptions:a,slotedPositionEmployeeData:s,...t})}),XP=[],ZP=e=>!!(e&&(`isOrganizationGroup`in e&&e.isOrganizationGroup||`type`in e&&e.type===`group`)),QP=(e,t)=>!e||!t?!1:ZP(e)||ZP(t)?ZP(e)&&ZP(t)&&e.id===t.id:e?.user?.id&&t?.user?.id?tP(e?.position)===tP(t?.position)&&e.user.id===t?.user?.id:tP(e?.position)===tP(t?.position),eae=e=>ZP(e)?`group_${e.id}`:`employee_${tP(e.position)}_${e.user?.id??``}`,tae=e=>ZP(e)||e.position.status!==`disabled`&&!e.position.isTemporary,nae=B()(e=>({autoComplete:{width:`100%`,maxWidth:`100%`,minWidth:0,display:`block`,"& .MuiFormControl-root":{width:`100%`,maxWidth:`100%`},"& .MuiInputBase-root":{height:`unset`,minHeight:`42px!important`,width:`100%`,maxWidth:`100%`,boxSizing:`border-box`,overflow:`hidden`,paddingLeft:`64px !important`},"& .MuiAutocomplete-tag":{maxWidth:`100%`,minWidth:0}},endAdornment:{left:`0 !important`},hidden:{display:`none`},chip:{paddingInline:e.spacing(.5),borderRadius:e.spacing(.5),marginRight:e.spacing(1),fontSize:e.spacing(1.75),"& .MuiChip-deleteIcon":{color:e.palette.primary.main},"& .MuiChip-icon":{color:e.palette.primary.main}},chipTruncated:{maxWidth:`100%`,minWidth:0,boxSizing:`border-box`,overflow:`hidden`,"& .MuiChip-label":{display:`block`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},chipEmployee:{color:e.palette.primary.main,backgroundColor:e.palette.background.lightPrimary},optionWithIcon:{display:`flex`,alignItems:`center`,gap:e.spacing(1)},groupIcon:{fontSize:e.spacing(2.5)},root:{width:`100%`,maxWidth:`100%`,minWidth:0}})),$P=YP(({slotedPositionEmployeeData:e,positionEmployeeOptions:t,slotedPositionEmloyeeLoading:n,label:r=``,placeholder:i,name:a,selectedPositionEmployee:o,selectedPositionEmployeeForTree:s,handleChangeAutocomplete:c,openPositionEmployeeViewerDialog:u,handleOpenPositionEmployeeViewerDialog:p,handleClosePositionEmployeeViewerDialog:m,onSubmitPositionEmployee:h,isSingleSelection:g=!1,isMobile:_,isLetterEditable:v=()=>!1,isForwardLetter:y=!1,isInvalid:b,getValidationError:x,hasTree:S=!0,forwardLetterLoading:C,showFreePosition:w,hiddenSelectedItem:T=!1,disabled:E=!1,filter:D,isNumberedLetterEditable:O=()=>!1,PaperComponent:k,showingMode:A,organizationGroupOptions:j=XP})=>{let{classes:M,cx:N}=nae(),P=(0,J.useMemo)(()=>{let e=w?t:t?.filter?.(e=>!e?.position?.isTemporary);return D&&(e=e.filter(e=>D(e.position))),e},[w,t,D]),F=(0,J.useMemo)(()=>{let e=j??XP;switch(A){case`organizationGroup`:return e;case`employee`:return P??XP;default:return e.length?[...P??[],...e]:P??XP}},[A,P,j]),I=(0,J.useMemo)(()=>{let e=y?F.filter(tae):F;return y?g&&!Array.isArray(o)?e.filter(e=>JSON.stringify(e)!==JSON.stringify(o)):Array.isArray(o)?e.filter(e=>!o.find(t=>JSON.stringify(e)===JSON.stringify(t))):e:g&&!Array.isArray(o)?e.filter(e=>!QP(o,e)):Array.isArray(o)?e.filter(e=>!o.find(t=>
2721QP(e,t))):e},[F,y,g,o]),ee=e=>ZP(e)?e.title:Me(e.user,e.position);return d(f,{children:[l(Hr,{xs:12,className:M.root,children:l(lN,{noOptionsText:W(`common.messages.noOptions`),multiple:!g,id:a,options:I,getOptionLabel:ee,getOptionKey:eae,ListboxProps:{key:A??`all`},value:o,onChange:c,filterSelectedOptions:!0,className:M.autoComplete,PaperComponent:k,isOptionEqualToValue:QP,disabled:O()?!O():v()||C||E,classes:{endAdornment:M.endAdornment,tag:N({[M.hidden]:!!T})},popupIcon:S&&l(Gn,{id:`position-employee-tree-button`,onClick:p,disabled:O()?!O():v()||C||E,children:l(pi,{})}),renderInput:e=>l(wr,{...e,variant:`outlined`,label:r,placeholder:i,error:b&&b(a),helperText:x&&x(a)||``,disabled:C||E}),renderOption:(e,t)=>{let{key:n,...r}=e;return l(`li`,{...r,children:ZP(t)?d(q,{className:M.optionWithIcon,children:[l(Zv,{className:M.groupIcon}),t.title]}):ee(t)},n)},renderTags:(e,t)=>e.map((e,n)=>{let{key:r,...i}=t({index:n});return l(xr,{label:ee(e),title:ee(e),variant:`filled`,icon:ZP(e)?l(Zv,{fontSize:`small`}):void 0,...i,className:N(M.chip,M.chipEmployee,{[M.chipTruncated]:_})},r)}),slotProps:{popper:{sx:{zIndex:e=>e.zIndex.modal+15}}}})}),u&&l(qP,{slotedPositionEmployeeData:e,open:u,handelClose:m,isSingleSelection:g,isMobile:_,selectedPositionEmployee:s??o,onSubmitPositionEmployee:h,isForwardLetter:y,slotedPositionEmloyeeLoading:n,showFreePosition:w})]})}),eF=e=>e.sort((e,t)=>!e.position.code&&!t.position.code?0:e.position.code?t.position.code?e.position.code.localeCompare(t.position.code):-1:1),tF=250,rae=B()(e=>({root:{display:`flex`,flexDirection:`column`,gap:e.spacing(1)},fieldsRow:{display:`flex`,gap:e.spacing(2),flexWrap:`wrap`,paddingTop:e.spacing(1)},field:{flex:1,minWidth:180},actions:{display:`flex`,justifyContent:`flex-end`,gap:e.spacing(1)},cancelButton:{color:e.palette.primary.main,border:`1px solid ${e.palette.primary.main}`,borderRadius:8,padding:e.spacing(.75)},saveButton:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,borderRadius:8,padding:e.spacing(.75),"&:hover":{backgroundColor:e.palette.primary.dark},"&.Mui-disabled":{color:e.palette.action.disabled,backgroundColor:e.palette.action.disabledBackground}}})),iae=(e,t)=>!e&&!t?!0:!e||!t?!1:tP(e.position)===tP(t.position)&&e.position?.title===t.position?.title&&(e.user?.id??null)===(t.user?.id??null)&&(e.user?.username??null)===(t.user?.username??null)&&(e.user?.firstName??null)===(t.user?.firstName??null)&&(e.user?.lastName??null)===(t.user?.lastName??null),nF=({initialValues:e,onSave:t,onCancel:n})=>{let{classes:r}=rae(),{organizationId:i}=h(),a=(0,J.useRef)(null),o=`task-title-${(0,J.useId)()}`,s=e?.title??``,c=e?.assignee??null,[u,f]=(0,J.useState)(s),[p,m]=(0,J.useState)(c),[g,_]=(0,J.useState)(!1),v=u!==s||!iae(p,c),y=u.length>=tF,b=v&&u.trim().length>0&&!y;GN(b),(0,J.useEffect)(()=>{a.current?.focus()},[]);let x=(e,t)=>{m(t??null)},S=()=>{b&&t({title:u.trim(),assignee:p})};return d(`form`,{className:r.root,noValidate:!0,onSubmit:e=>{e.preventDefault(),S()},children:[d(q,{className:r.fieldsRow,children:[l(pN,{className:r.field,id:o,name:`title`,label:`${W(`common.labels.title`)} *`,value:u,onChange:e=>f(e.target.value.slice(0,tF)),inputRef:a,inputProps:{maxLength:tF},error:y,helperText:y?W(`meetings.labels.task-title-max-length`):void 0,fullWidth:!0}),l(q,{className:r.field,children:l($P,{organizationId:i,label:W(`tasks.labels.assigned-task-to`),selectedPositionEmployee:p??[],selectedPositionEmployeeForTree:p??[],handleChangeAutocomplete:x,isSingleSelection:!0,openPositionEmployeeViewerDialog:g,handleOpenPositionEmployeeViewerDialog:()=>_(!0),handleClosePositionEmployeeViewerDialog:()=>_(!1),onSubmitPositionEmployee:x,isMobile:!1,sortPositions:eF})})]}),d(q,{className:r.actions,children:[l(Gn,{type:`button`,className:r.cancelButton,"aria-label":W(`common.labels.cancel`),onClick:n,children:l(ci,{sx:e=>({width:e.spacing(2),height:e.spacing(2)})})}),l(Gn,{type:`submit`,className:r.saveButton,"aria-label":W(`common.labels.save`),disabled:!b,children:l(K_,{sx:e=>({width:e.spacing(2),height:e.spacing(2)})})})]})]})},rF=e=>{e.stopPropagation()},aae=e=>{let t=`target`in e?e.target:null;return t instanceof Element&&!!t.closest(`.task-count-popover-surface, [data-task-count-badge]`)},oae=(e,t)=>t===`backdropClick`&&aae(e),sae=(e,t,n)=>{oae(e,t)||n()},cae=B()(e=>({paper:{borderRadius:8,border:`1px solid #E0E0E0`,boxShadow:`0px 4px 16px rgba(0, 0, 0, 0.12)`,width:360,maxWidth:484,overflow:`hidden`},header:{position:`relative`,minHeight:40,borderBottom:`1px solid #E0E0E0`},closeButton:{position:`absolute`,top:e.spacing(.5),right:e.spacing(1),color:`#49454F`},body:{display:`flex`,flexDirection:`column`,gap:e.spacing(1.5),padding:e.spacing(2)},summary:{fontSize:14,fontWeight:500,color:`#1C1B1F`,lineHeight:1.7,textAlign:`start`},notice:{padding:e.spacing(1,1.25),borderRadius:8,backgroundColor:`#F3E8FD`,border:`1px solid #E8DEF8`,color:`#49454F`,alignItems:`flex-start`,gap:e.spacing(1),"& .MuiAlert-icon":{margin:0,padding:0,color:`#6750A4`,fontSize:18},"& .MuiAlert-message":{padding:0,fontSize:12,lineHeight:1.7,textAlign:`start`}}})),iF=({open:e,anchorEl:t,taskCount:n,hiddenTasksCount:r=0,onClose:i})=>{let{classes:a,cx:o}=cae();return d(Zr,{open:e,anchorEl:t,onClose:(e,t)=>{sae(e,t,i)},anchorOrigin:{vertical:`top`,horizontal:`center`},transformOrigin:{vertical:`bottom`,horizontal:`center`},disableEnforceFocus:!0,disableRestoreFocus:!0,disableScrollLock:!0,slotProps:{root:{onClick:rF,onMouseDown:rF},paper:{className:o(a.paper,`task-count-popover-surface`),onClick:rF,onMouseDown:rF},backdrop:{onClick:rF,onMouseDown:rF}},children:[l(q,{className:a.header,children:l(Gn,{className:a.closeButton,size:`small`,"aria-label":W(`tooltip.close`),onClick:e=>{e.stopPropagation(),i()},onMouseDown:rF,children:l(ci,{fontSize:`small`})})}),d(q,{className:a.body,children:[l(si,{className:a.summary,children:W(`meetings.labels.resolution-tasks-created`,{count:n})}),r>0&&l(Wd,{className:a.notice,severity:`info`,icon:l(ete,{fontSize:`inherit`}
2721),children:W(`meetings.labels.resolution-hidden-tasks-notice`,{count:r})})]})]})},lae=e=>String(e).replace(/\d/g,e=>`Û°Û±Û²Û³Û´ÛµÛ¶Û·Û¸Û¹`[Number(e)]),uae=B()(e=>({badge:{display:`inline-flex`,alignItems:`center`,gap:4,flexShrink:0,cursor:`pointer`,borderRadius:e.spacing(.5),padding:`2px 8px`,marginInlineStart:0,background:`#FFFFFF`,color:`#49454F`,fontSize:12,fontWeight:500,lineHeight:1.5,fontFamily:`inherit`,border:`none`,"& .MuiSvgIcon-root":{fontSize:16}}})),dae=({taskCount:e,hiddenTasksCount:t=0,anchorEl:n,onOpen:r})=>{let{classes:i}=uae(),[a,o]=(0,J.useState)(null),s=r!=null,c=s?n??null:a,u=e=>{if(s){r(e);return}o(e)};return d(f,{children:[d(`span`,{role:`button`,tabIndex:0,className:i.badge,"data-task-count-badge":``,"aria-label":W(`tasks.labels.tasks`),"aria-expanded":!!c,"aria-haspopup":`true`,onClick:e=>{e.stopPropagation(),u(e.currentTarget)},onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),u(e.currentTarget))},children:[l(kv,{"aria-hidden":!0}),l(`span`,{children:lae(e)})]}),!s&&l(iF,{open:!!c,anchorEl:c,taskCount:e,hiddenTasksCount:t,onClose:()=>{o(null)}})]})},fae=B()((e,{visual:t})=>({badge:{width:24,height:24,borderRadius:`50%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,...t===`done`?{backgroundColor:e.palette.background.successContainer??`#E7F5EC`,color:e.palette.success.main??`#1E8E3E`}:{backgroundColor:e.palette.background.lightGray??`#EFEFEF`,color:`#79747E`},"& svg":{fontSize:16}}})),pae=e=>e===`done`?`done`:`pending`,mae=({status:e})=>{let t=pae(e),{classes:n}=fae({visual:t}),r=W(t===`done`?`tasks.labels.task-done`:`tasks.labels.task-undone`);return l(li,{title:r,placement:`top`,children:l(`span`,{className:n.badge,"aria-label":r,children:l(t===`done`?iv:S_,{fontSize:`inherit`})})})},hae=B()(e=>({avatar:{borderRadius:`50%`,width:e.spacing(4),height:e.spacing(4),objectFit:`cover`}})),gae=(e,t=``,n=`avatar`)=>{let{classes:r}=hae();return e?l(`img`,{src:e,className:r[n],alt:t}):l(`img`,{src:`/assets/images/Profile-Picture.svg`,className:r[n],alt:t})},aF=Ze(e=>({documentsFetched:e.documents.documents.fetched}),{documentsAsync:RC})(J.memo(({callbackEl:e,id:t,alt:n,variant:r,documentHeaders:i,documentsFetched:a,documentsAsync:o})=>{let[s,c]=(0,J.useState)(``),l=(0,J.useRef)(null),u=(0,J.useRef)(!1),d=(0,J.useRef)(o);d.current=o;let f=t?a?.[t]:void 0;return(0,J.useEffect)(()=>{if(!t){c(``),l.current=null,u.current=!1;return}if(l.current!==t&&(l.current=null,u.current=!1),f?.data){c(f.data);return}if(f?.status!==`loading`){if(f?.status===`failed`){if(!i||u.current)return;l.current=null,u.current=!0}l.current!==t&&(l.current=t,d.current({path:t,responseType:`arraybuffer`,...i?{headers:i}:{}}))}},[t,f,i]),e?e(s):gae(s,n,r)})),_ae=B()(e=>({root:{display:`flex`,alignItems:`center`,gap:e.spacing(1),minWidth:0},image:{borderRadius:`50%`,width:28,height:28,objectFit:`cover`,flexShrink:0},name:{fontSize:12,lineHeight:1.4,color:`#49454F`,minWidth:0}})),vae=({assignee:e})=>{let{classes:t}=_ae(),n=e?Me(e.user,e.position):``,r=(0,J.useCallback)(e=>e?l(`img`,{src:e,alt:n,className:t.image}):l(`img`,{src:`/assets/images/Profile-Picture.svg`,alt:n,className:t.image}),[n,t.image]);return e?d(q,{className:t.root,children:[l(si,{className:t.name,noWrap:!0,title:n,children:n}),l(aF,{id:e.user?.imageId||void 0,callbackEl:r})]}):l(si,{className:t.name,children:`-`})},yae=B()(e=>({row:{display:`flex`,alignItems:`center`,gap:e.spacing(1.5),width:`100%`,minHeight:48,padding:e.spacing(1,.5),boxSizing:`border-box`,borderRadius:4},rowClickable:{cursor:`pointer`,"&:hover":{backgroundColor:`rgba(15, 85, 189, 0.04)`}},titleGroup:{display:`flex`,alignItems:`center`,gap:e.spacing(1),flex:1,minWidth:0},title:{flex:1,minWidth:0,fontSize:13,lineHeight:1.6,color:`#1C1B1F`,textAlign:`start`},assignee:{flexShrink:0,maxWidth:220},actions:{display:`flex`,alignItems:`center`,flexShrink:0,gap:e.spacing(.25)},actionButton:{color:`#79747E`,padding:e.spacing(.5)},submitErrorBadge:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24,borderRadius:`50%`,backgroundColor:`rgba(179, 38, 30, 0.12)`,flexShrink:0},submitErrorIcon:{color:e.palette.error.main,fontSize:18},divider:{borderColor:`#E6E0E9`},editPanel:{width:`100%`,padding:e.spacing(1,.5),boxSizing:`border-box`}})),bae=({task:e,resolution:t,taskActions:n,showDivider:r=!1,readOnly:i=!1})=>{let{classes:a,cx:o}=yae(),{draft:s,openEdit:c,closeEdit:u}=eP(),p=s?.type===`edit`&&s.resolutionId===t.id&&s.taskId===e.id,[m,h]=(0,J.useState)(!1),g=!e.isDraft&&!!n.onOpen,_=r=>{n.onEdit({...e,title:r.title,assignee:r.assignee},t),u(t.id,e.id)},v=()=>{!g||!n.onOpen||n.onOpen(e,t)};return p?d(f,{children:[l(q,{className:a.editPanel,children:l(nF,{initialValues:{title:e.title,assignee:e.assignee??null},onSave:_,onCancel:()=>u(t.id,e.id)})}),r&&l(Lr,{className:a.divider})]}):d(f,{children:[d(q,{className:o(a.row,g&&a.rowClickable),role:g?`button`:void 0,tabIndex:g?0:void 0,onClick:g?v:void 0,onKeyDown:g?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),v())}:void 0,children:[d(q,{className:a.titleGroup,children:[e?.status&&l(mae,{status:e.isDraft?`undone`:e.status}),l(St,{className:a.title,noWrap:!0,title:e.title,children:e.title})]}),l(q,{className:a.assignee,children:l(vae,{assignee:e.assignee})}),!i&&d(q,{className:a.actions,onClick:e=>e.stopPropagation(),children:[e.submitError?l(q,{className:a.submitErrorBadge,"aria-label":W(`meetings.labels.minutes-partial-save-failed`),children:l(fv,{className:a.submitErrorIcon,"aria-hidden":!0})}):null,e.isDraft&&l(li,{title:W(`common.labels.edit`),placement:`top`,children:l(Gn,{className:a.actionButton,"aria-label":W(`common.labels.edit`),size:`small`,onClick:()=>c(t.id,e.id),children:l(lv,{fontSize:`small`})})}),l(li,{title:W(`meetings.labels.detach-task-from-resolution`),placement:`bottom`,children:l(Gn,{className:a.actionButton,"aria-label":W(`meetings.labels.detach-task-from-resolution`),size:`small`,onClick:()=>h(!0),children:l(ci,{fontSize:`small`})})})]})]}),l(UN,{open:m,subjectTitle:e.title,contextTitle:t.title,variant:`detachTask`,onClose:()=>h(!1),onConfirm:async()=>{await n.onDelete(e,t),h(!1)}}),r&&l(Lr,{className:a.divider})]})},xae=B()({list:{display:`flex`,flexDirection:`column`,width:`100%`}}),Sae=({tasks:e,resolution:t,taskActions:n,readOnly:r=!1})=>{let{classes:i}=xae();return l(q,{className:i.list,children:e.map((i,a)=>l(bae,{task:i,resolution:t,taskActions:n,showDivider:a<e.length-1,readOnly:r},i.id))})},Cae=e=>{let t=e.target,n=e.currentTarget;return!(t instanceof Node)||!(n instanceof Node)||!n.contains(t)},oF=e=>String(e).replace(/\d/g,e=>`Û°Û±Û²Û³Û´ÛµÛ¶Û·Û¸Û¹`[Number(e)]),sF=B()(e=>({root:{position:`relative`,borderRadius:8,border:`1px solid #0F55BD`,background:`#E7F0FD`,boxSizing:`border-box`,overflow:`hidden`},accordion:{background:`transparent`,boxShadow:`none`,"&:before":{display:`none`}},summary:{minHeight:48,padding:e.spacing(1.5,1.5,.5),paddingLeft:e.spacing(5),"& .MuiAccordionSummary-content":{margin:0,alignItems:`flex-start`,gap:e.spacing(1),width:`100%`}},summaryReadOnly:{paddingLeft:e.spacing(1.5)},summaryMain:{display:`flex`,flexDirection:`column`,gap:e.spacing(1),flex:1,minWidth:0},titleRow:{display:`flex`,alignItems:`center`,gap:e.spacing(1),width:`100%`},expandIcon:{color:`#0F55BD`,flexShrink:0,fontSize:24,transition:e.transitions.create(`transform`,{duration:e.transitions.duration.shortest})},expandIconOpen:{transform:`rotate(180deg)`},titleText:{display:`flex`,alignItems:`center`,gap:e.spacing(1),flex:1,minWidth:0,fontWeight:700,fontSize:14,lineHeight:1.5,color:`#1C1B1F`},index:{fontWeight:700,color:`#1C1B1F`},bullet:{width:6,height:6,borderRadius:`50%`,background:`#0F55BD`,flexShrink:0},titleWithBadge:{display:`inline-flex`,alignItems:`center`,gap:e.spacing(.5),flex:1,minWidth:0},titleLabel:{fontWeight:700,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,minWidth:0},details:{padding:e.spacing(1,1.5,1.5)},surface:{borderRadius:8,padding:e.spacing(.5,1),background:`#FFFFFF`,border:`1px solid #C5D7F2`,display:`flex`,flexDirection:`column`,gap:e.spacing(1)},createTaskButton:{alignSelf:`flex-start`,color:`#0F55BD`,textTransform:`none`,fontWeight:500,padding:e.spacing(.5,1)},headerActions:{position:`absolute`,top:e.spacing(1.25),left:e.spacing(1),zIndex:1,display:`flex`,alignItems:`center`,gap:e.spacing(.25),direction:`ltr`},submitErrorBadge:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:28,height:28,borderRadius:`50%`,backgroundColor:`rgba(179, 38, 30, 0.12)`,flexShrink:0},submitErrorIcon:{color:e.palette.error.main,fontSize:20},disabled:{"&::after":{content:`""`,position:`absolute`,inset:0,backgroundColor:`rgba(255, 255, 255, 0.5)`,zIndex:2,pointerEvents:`none`}}})),cF=({resolution:e,index:t,resolutionActions:n,taskActions:r,disabled:i=!1,readOnly:a=!1,expandResolutionId:o=null})=>{let{classes:s,cx:c}=sF(),[u,f]=(0,J.useState)(!1),[p,m]=(0,J.useState)(!1),[h,g]=(0,J.useState)(null),{draft:_,openCreate:v,closeCreate:y,closeDraft:b,closeForResolution:x,keepOnlyForResolution:S}=eP(),C=_?.type===`create`&&_.resolutionId===e.id,[w,T]=(0,J.useState)(null);w!==o&&(T(o),o===e.id&&f(!0));let E=()=>{f(!0),v(e.id)};
2721return p?l(JN,{initialValues:{title:e.title,description:e.description},onSave:t=>{n.onEdit({...e,title:t.title,description:t.description}),m(!1)},onCancel:()=>m(!1)}):d(q,{className:c(s.root,i&&s.disabled),"aria-disabled":i||void 0,children:[!a&&d(q,{className:s.headerActions,children:[e.submitError?l(q,{className:s.submitErrorBadge,"aria-label":W(`meetings.labels.minutes-partial-save-failed`),children:l(fv,{className:s.submitErrorIcon,"aria-hidden":!0})}):null,l(Zre,{resolution:e,onEdit:()=>{b(),m(!0)},onCreateTask:E,onDelete:()=>n.onDelete(e),disabled:i})]}),d(bd,{className:s.accordion,disableGutters:!0,expanded:u,onChange:(t,n)=>{i||Cae(t)||(f(n),n?S(e.id):x(e.id))},children:[l(jd,{className:c(s.summary,a&&s.summaryReadOnly),children:d(q,{className:s.summaryMain,children:[d(q,{className:s.titleRow,children:[l(hi,{className:c(s.expandIcon,u&&s.expandIconOpen)}),d(St,{component:`div`,className:s.titleText,children:[l(`span`,{className:s.index,children:oF(t)}),l(`span`,{className:s.bullet,"aria-hidden":!0}),d(`span`,{className:s.titleWithBadge,children:[l(`span`,{className:s.titleLabel,children:e.title}),ZN(e)&&l(dae,{taskCount:YN(e),hiddenTasksCount:XN(e),anchorEl:h,onOpen:g})]})]})]}),e.description?l(nie,{children:e.description}):null]})}),(e.tasks.length>0||!a)&&l(wd,{className:s.details,children:d(q,{className:s.surface,children:[e.tasks.length>0&&l(Sae,{tasks:e.tasks,resolution:e,taskActions:r,readOnly:a}),!a&&(C?l(nF,{onSave:t=>{n.onCreateTask(e,t),y(e.id)},onCancel:()=>y(e.id)}):l(fi,{className:s.createTaskButton,startIcon:l(oi,{}),onClick:E,disabled:i,children:W(`tasks.labels.create-task`)}))]})})]}),l(iF,{open:!!h,anchorEl:h,taskCount:YN(e),hiddenTasksCount:XN(e),onClose:()=>g(null)})]})},lF=B()(e=>({list:{display:`flex`,flexDirection:`column`,gap:e.spacing(1.5)}})),uF=({resolutions:e,resolutionActions:t,taskActions:n,disabled:r=!1,readOnly:i=!1,expandResolutionId:a=null})=>{let{classes:o}=lF();return l(q,{className:o.list,children:e.map((e,o)=>l(cF,{index:o+1,resolution:e,resolutionActions:t,taskActions:n,disabled:r,readOnly:i,expandResolutionId:a},e.id))})},dF=B()(e=>({root:{display:`flex`,flexDirection:`column`,gap:e.spacing(1.5)}})),fF=({resolutions:e,onAddResolution:t,resolutionActions:n,taskActions:r,disabled:i=!1,readOnly:a=!1})=>{let{classes:o}=dF(),{draft:s,closeDraft:c}=eP(),[u,f]=(0,J.useState)(!1),[p,m]=(0,J.useState)(null),h=(0,J.useRef)(null),g=(0,J.useRef)(!1);(0,J.useEffect)(()=>{!u||e.length===0||h.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})},[u,e.length]);let[_,v]=(0,J.useState)(s);return _!==s&&(v(s),s&&f(!1)),(0,J.useEffect)(()=>{!g.current||e.length===0||(m(e[e.length-1].id),g.current=!1)},[e]),d(q,{className:o.root,children:[l(dN,{title:W(`meetings.labels.resolutions`)??``}),!a&&l(q,{children:l(fi,{variant:`outlined`,startIcon:l(oi,{}),onClick:()=>{c(),f(!0)},disabled:i||u,children:W(`meetings.labels.create-resolution`)})}),e.length>0&&l(uF,{resolutions:e,resolutionActions:n,taskActions:r,disabled:i,readOnly:a,expandResolutionId:p}),!a&&u&&l(q,{ref:h,children:l(JN,{onSave:e=>{g.current=!0,t(e),f(!1)},onCancel:()=>f(!1)})})]})},pF=e=>l(Jre,{onChange:e.onInlineDraftCanSaveChange,children:l(rie,{children:l(fF,{...e})})}),mF=`/assets/CI8UpSFX.svg`,hF=i(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Immutable=r()})(e,function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:se(e)}t(r,n);function r(e){return s(e)?e:ce(e)}t(i,n);function i(e){return c(e)?e:le(e)}t(a,n);function a(e){return o(e)&&!l(e)?e:B(e)}function o(e){return!!(e&&e[d])}function s(e){return!!(e&&e[f])}function c(e){return!!(e&&e[p])}function l(e){return s(e)||c(e)}function u(e){return!!(e&&e[m])}n.isIterable=o,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=r,n.Indexed=i,n.Set=a;var d=`@@__IMMUTABLE_ITERABLE__@@`,f=`@@__IMMUTABLE_KEYED__@@`,p=`@@__IMMUTABLE_INDEXED__@@`,m=`@@__IMMUTABLE_ORDERED__@@`,h=`delete`,g=5,_=1<<g,v=_-1,y={},b={value:!1},x={value:!1};function S(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function w(){}function T(e,t){t||=0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function E(e){return e.size===void 0&&(e.size=e.__iterate(O)),e.size}function D(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?E(e)+t:t}function O(){return!0}
vendor: 53,619 bytes, line 2721
2721function k(e,t,n){return(e===0||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function A(e,t){return M(e,t,0)}function j(e,t){return M(e,t,t)}function M(e,t,n){return e===void 0?n:e<0?Math.max(0,t+e):t===void 0?e:Math.min(t,e)}var N=0,P=1,F=2,I=typeof Symbol==`function`&&Symbol.iterator,ee=`@@iterator`,L=I||ee;function R(e){this.next=e}R.prototype.toString=function(){return`[Iterator]`},R.KEYS=N,R.VALUES=P,R.ENTRIES=F,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[L]=function(){return this};function z(e,t,n,r){var i=e===0?t:e===1?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function te(){return{value:void 0,done:!0}}function ne(e){return!!ae(e)}function re(e){return e&&typeof e.next==`function`}function ie(e){var t=ae(e);return t&&t.call(e)}function ae(e){var t=e&&(I&&e[I]||e[ee]);if(typeof t==`function`)return t}function oe(e){return e&&typeof e.length==`number`}t(se,n);function se(e){return e==null?_e():o(e)?e.toSeq():be(e)}se.of=function(){return se(arguments)},se.prototype.toSeq=function(){return this},se.prototype.toString=function(){return this.__toString(`Seq {`,`}`)},se.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},se.prototype.__iterate=function(e,t){return Se(this,e,t,!0)},se.prototype.__iterator=function(e,t){return Ce(this,e,t,!0)},t(ce,se);function ce(e){return e==null?_e().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():ve(e)}ce.prototype.toKeyedSeq=function(){return this},t(le,se);function le(e){return e==null?_e():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():ye(e)}le.of=function(){return le(arguments)},le.prototype.toIndexedSeq=function(){return this},le.prototype.toString=function(){return this.__toString(`Seq [`,`]`)},le.prototype.__iterate=function(e,t){return Se(this,e,t,!1)},le.prototype.__iterator=function(e,t){return Ce(this,e,t,!1)},t(B,se);function B(e){return(e==null?_e():o(e)?s(e)?e.entrySeq():e:ye(e)).toSetSeq()}B.of=function(){return B(arguments)},B.prototype.toSetSeq=function(){return this},se.isSeq=he,se.Keyed=ce,se.Set=B,se.Indexed=le;var ue=`@@__IMMUTABLE_SEQ__@@`;se.prototype[ue]=!0,t(de,le);function de(e){this._array=e,this.size=e.length}de.prototype.get=function(e,t){return this.has(e)?this._array[D(this,e)]:t},de.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(e(n[t?r-i:i],i,this)===!1)return i+1;return i},de.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new R(function(){return i>r?te():z(e,i,n[t?r-i++:i++])})},t(fe,ce);function fe(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}fe.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},fe.prototype.has=function(e){return this._object.hasOwnProperty(e)},fe.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,a=0;a<=i;a++){var o=r[t?i-a:a];if(e(n[o],o,this)===!1)return a+1}return a},fe.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,a=0;return new R(function(){var o=r[t?i-a:a];return a++>i?te():z(e,o,n[o])})},fe.prototype[m]=!0,t(pe,le);function pe(e){this._iterable=e,this.size=e.length||e.size}pe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=ie(n),i=0;if(re(r))for(var a;!(a=r.next()).done&&e(a.value,i++,this)!==!1;);return i},pe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=ie(n);if(!re(r))return new R(te);var i=0;return new R(function(){var t=r.next();return t.done?t:z(e,i++,t.value)})},t(me,le);function me(e){this._iterator=e,this._iteratorCache=[]}me.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(e(r[i],i++,this)===!1)return i;for(var a;!(a=n.next()).done;){var o=a.value;if(r[i]=o,e(o,i++,this)===!1)break}return i},me.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new R(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return z(e,i,r[i++])})};function he(e){return!!(e&&e[ue])}var ge;function _e(){return ge||=new de([])}function ve(e){var t=Array.isArray(e)?new de(e).fromEntrySeq():re(e)?new me(e).fromEntrySeq():ne(e)?new pe(e).fromEntrySeq():typeof e==`object`?new fe(e):void 0;if(!t)throw TypeError(`Expected Array or iterable object of [k, v] entries, or keyed object: `+e);return t}function ye(e){var t=xe(e);if(!t)throw TypeError(`Expected Array or iterable object of values: `+e);return t}function be(e){var t=xe(e)||typeof e==`object`&&new fe(e);if(!t)throw TypeError(`Expected Array or iterable object of values, or keyed object: `+e);return t}function xe(e){return oe(e)?new de(e):re(e)?new me(e):ne(e)?new pe(e):void 0}function Se(e,t,n,r){var i=e._cache;if(i){for(var a=i.length-1,o=0;o<=a;o++){var s=i[n?a-o:o];if(t(s[1],r?s[0]:o,e)===!1)return o+1}return o}return e.__iterateUncached(t,n)}function Ce(e,t,n,r){var i=e._cache;if(i){var a=i.length-1,o=0;return new R(function(){var e=i[n?a-o:o];return o++>a?te():z(t,r?e[0]:o-1,e[1])})}return e.__iteratorUncached(t,n)}function V(e,t){return t?we(t,e,``,{"":e}):Te(e)}function we(e,t,n,r){return Array.isArray(t)?e.call(r,n,le(t).map(function(n,r){return we(e,n,r,t)})):Ee(t)?e.call(r,n,ce(t).map(function(n,r){return we(e,n,r,t)})):t}function Te(e){return Array.isArray(e)?le(e).map(Te).toList():Ee(e)?ce(e).map(Te).toMap():e}function Ee(e){return e&&(e.constructor===Object||e.constructor===void 0)}function De(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf==`function`&&typeof t.valueOf==`function`){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(typeof e.equals==`function`&&typeof t.equals==`function`&&e.equals(t))}function Oe(e,t){if(e===t)return!0;if(!o(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&De(i[1],e)&&(n||De(i[0],t))})&&r.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult==`function`&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):i?!De(t,e.get(r,y)):!De(e.get(r,y),t))return d=!1,!1});return d&&e.size===f}t(ke,le);function ke(e,t){if(!(this instanceof ke))return new ke(e,t);if(this._value=e,this.size=t===void 0?1/0:Math.max(0,t),this.size===0){if(Ae)return Ae;Ae=this}}ke.prototype.toString=function(){return this.size===0?`Repeat []`:`Repeat [ `+this._value+` `+this.size+` times ]`},ke.prototype.get=function(e,t){return this.has(e)?this._value:t},ke.prototype.includes=function(e){return De(this._value,e)},ke.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:new ke(this._value,j(t,n)-A(e,n))},ke.prototype.reverse=function(){return this},ke.prototype.indexOf=function(e){return De(this._value,e)?0:-1},ke.prototype.lastIndexOf=function(e){return De(this._value,e)?this.size:-1},ke.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(e(this._value,n,this)===!1)return n+1;return n},ke.prototype.__iterator=function(e,t){var n=this,r=0;return new R(function(){return r<n.size?z(e,r++,n._value):te()})},ke.prototype.equals=function(e){return e instanceof ke?De(this._value,e._value):Oe(e)};var Ae;function je(e,t){if(!e)throw Error(t)}t(Me,le);function Me(e,t,n){if(!(this instanceof Me))return new Me(e,t,n);if(je(n!==0,`Cannot step a Range by 0`),e||=0,t===void 0&&(t=1/0),n=n===void 0?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),this.size===0){if(Ne)return Ne;Ne=this}}Me.prototype.toString=function(){return this.size===0?`Range []`:`Range [ `+this._start+`...`+this._end+(this._step===1?``:` by `+this._step)+` ]`},Me.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},Me.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Me.prototype.slice=function(e,t){return k(e,t,this.size)?this:(e=A(e,this.size),t=j(t,this.size),t<=e?new Me(0,0):new Me(this.get(e,this._end),this.get(t,this._end),this._step))},Me.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Me.prototype.lastIndexOf=function(e){return this.indexOf(e)},Me.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;a<=n;a++){if(e(i,a,this)===!1)return a+1;i+=t?-r:r}return a},Me.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;return new R(function(){var o=i;return i+=t?-r:r,a>n?te():z(e,a++,o)})},Me.prototype.equals=function(e){return e instanceof Me?this._start===e._start&&this._end===e._end&&this._step===e._step:Oe(this,e)};var Ne;t(Pe,n);function Pe(){throw TypeError(`Abstract`)}t(H,Pe);function H(){}t(U,Pe);function U(){}t(Fe,Pe);function Fe(){}Pe.Keyed=H,Pe.Indexed=U,Pe.Set=Fe;var Ie=typeof Math.imul==`function`?Math.imul:function(e,t){e|=0,t|=0;var n=e&65535,r=t&65535;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Le(e){return e>>>1&1073741824|e&3221225471}function Re(e){if(e===!1||e==null||typeof e.valueOf==`function`&&(e=e.valueOf(),e===!1||e==null))return 0;if(e===!0)return 1;var t=typeof e;if(t===`number`){if(e!==e||e===1/0)return 0;var n=e|0;for(n!==e&&(n^=e*4294967295);e>4294967295;)e/=4294967295,n^=e;return Le(n)}if(t===`string`)return e.length>Je?ze(e):Be(e);if(typeof e.hashCode==`function`)return e.hashCode();if(t===`object`)return Ve(e);if(typeof e.toString==`function`)return Be(e.toString());throw Error(`Value type `+t+` cannot be hashed.`)}function ze(e){var t=Ze[e];return t===void 0&&(t=Be(e),Xe===Ye&&(Xe=0,Ze={}),Xe++,Ze[e]=t),t}function Be(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Le(t)}function Ve(e){var t;if(We&&(t=Ge.get(e),t!==void 0)||(t=e[qe],t!==void 0)||!Ue&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[qe],t!==void 0||(t=W(e),t!==void 0)))return t;if(t=++Ke,Ke&1073741824&&(Ke=0),We)Ge.set(e,t);else if(He!==void 0&&He(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(Ue)Object.defineProperty(e,qe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[qe]=t;else if(e.nodeType!==void 0)e[qe]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}var He=Object.isExtensible,Ue=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function W(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var We=typeof WeakMap==`function`,Ge;We&&(Ge=new WeakMap);var Ke=0,qe=`__immutablehash__`;typeof Symbol==`function`&&(qe=Symbol(qe));var Je=16,Ye=255,Xe=0,Ze={};function Qe(e){je(e!==1/0,`Cannot perform this action with an infinite size.`)}t($e,H);function $e(e){return e==null?pt():et(e)&&!u(e)?e:pt().withMutations(function(t){var n=r(e);Qe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}$e.of=function(){var t=e.call(arguments,0);return pt().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw Error(`Missing value for key: `+t[n]);e.set(t[n],t[n+1])}})},$e.prototype.toString=function(){return this.__toString(`Map {`,`}`)},$e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},$e.prototype.set=function(e,t){return mt(this,e,t)},$e.prototype.setIn=function(e,t){return this.updateIn(e,y,function(){return t})},$e.prototype.remove=function(e){return mt(this,e,y)},$e.prototype.deleteIn=function(e){return this.updateIn(e,function(){return y})},$e.prototype.update=function(e,t,n){return arguments.length===1?e(this):this.updateIn([e],t,n)},$e.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Tt(this,An(e),t,n);return r===y?void 0:r},$e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):pt()},$e.prototype.merge=function(){return xt(this,void 0,arguments)},$e.prototype.mergeWith=function(t){var n=e.call(arguments,1);return xt(this,t,n)},$e.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,pt(),function(e){return typeof e.merge==`function`?e.merge.apply(e,n):n[n.length-1]})},$e.prototype.mergeDeep=function(){return xt(this,St,arguments)},$e.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return xt(this,Ct(t),n)},$e.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,pt(),function(e){return typeof e.mergeDeep==`function`?e.mergeDeep.apply(e,n):n[n.length-1]})},$e.prototype.sort=function(e){return Yt(yn(this,e))},$e.prototype.sortBy=function(e,t){return Yt(yn(this,t,e))},$e.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},$e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},$e.prototype.asImmutable=function(){return this.__ensureOwner()},$e.prototype.wasAltered=function(){return this.__altered},$e.prototype.__iterator=function(e,t){return new ct(this,e,t)},$e.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},$e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)};function et(e){return!!(e&&e[tt])}$e.isMap=et;var tt=`@@__IMMUTABLE_MAP__@@`,nt=$e.prototype;nt[tt]=!0,nt[h]=nt.remove,nt.removeIn=nt.deleteIn;function rt(e,t){this.ownerID=e,this.entries=t}rt.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(De(n,i[a][0]))return i[a][1];return r},rt.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===y,c=this.entries,l=0,u=c.length;l<u&&!De(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(C(o),(s||!d)&&C(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=kt)return vt(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:T(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new rt(e,p)}};function it(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}it.prototype.get=function(e,t,n,r){t===void 0&&(t=Re(n));var i=1<<((e===0?t:t>>>e)&v),a=this.bitmap;return(a&i)===0?r:this.nodes[Et(a&i-1)].get(e+g,t,n,r)},it.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Re(r));var s=(t===0?n:n>>>t)&v,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===y)return this;var d=Et(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=ht(p,e,t+g,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=At)return bt(e,f,l,s,m);if(u&&!m&&f.length===2&&gt(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&gt(m))return m;var h=e&&e===this.ownerID,_=u?m?l:l^c:l|c,b=u?m?Dt(f,d,m,h):G(f,d,h):Ot(f,d,m,h);return h?(this.bitmap=_,this.nodes=b,this):new it(e,_,b)};function at(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}at.prototype.get=function(e,t,n,r){t===void 0&&(t=Re(n));var i=(e===0?t:t>>>e)&v,a=this.nodes[i];return a?a.get(e+g,t,n,r):r},at.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Re(r));var s=(t===0?n:n>>>t)&v,c=i===y,l=this.nodes,u=l[s];if(c&&!u)return this;var d=ht(u,e,t+g,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<jt))return yt(e,l,f,s);var p=e&&e===this.ownerID,m=Dt(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new at(e,f,m)};function ot(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}ot.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(De(n,i[a][0]))return i[a][1];return r},ot.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Re(r));var s=i===y;if(n!==this.keyHash)return s?this:(C(o),C(a),_t(this,e,t,n,[r,i]));for(var c=this.entries,l=0,u=c.length;l<u&&!De(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(C(o),(s||!d)&&C(a),s&&u===2)return new st(e,this.keyHash,c[l^1]);var f=e&&e===this.ownerID,p=f?c:T(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new ot(e,this.keyHash,p)};function st(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}st.prototype.get=function(e,t,n,r){return De(n,this.entry[0])?this.entry[1]:r},st.prototype.update=function(e,t,n,r,i,a,o){var s=i===y,c=De(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(C(o),s){C(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new st(e,this.keyHash,[r,i]):(C(a),_t(this,e,t,Re(r),[r,i]))},rt.prototype.iterate=ot.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},it.prototype.iterate=at.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&a.iterate(e,t)===!1)return!1}},st.prototype.iterate=function(e,t){return e(this.entry)},t(ct,R);function ct(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&ut(e._root)}ct.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i;if(n.entry){if(r===0)return lt(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return lt(e,n.entries[this._reverse?i-r:r])}else if(i=n.nodes.length-1,r<=i){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return lt(e,a.entry);t=this._stack=ut(a,t)}continue}t=this._stack=this._stack.__prev}return te()};function lt(e,t){return z(e,t[0],t[1])}function ut(e,t){return{node:e,index:0,__prev:t}}function dt(e,t,n,r){var i=Object.create(nt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var ft;function pt(){return ft||=dt(0)}function mt(e,t,n){var r,i;if(e._root){var a=S(b),o=S(x);if(r=ht(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===y?-1:1:0)}else{if(n===y)return e;i=1,r=new rt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?dt(i,r):pt()}function ht(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===y?e:(C(s),C(o),new st(t,r,[i,a]))}function gt(e){return e.constructor===st||e.constructor===ot}function _t(e,t,n,r,i){if(e.keyHash===r)return new ot(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&v,o=(n===0?r:r>>>n)&v,s,c=a===o?[_t(e,t,n+g,r,i)]:(s=new st(t,r,i),a<o?[e,s]:[s,e]);return new it(t,1<<a|1<<o,c)}function vt(e,t,n,r){e||=new w;for(var i=new st(e,Re(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function yt(e,t,n,r){for(var i=0,a=0,o=Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];u!==void 0&&s!==r&&(i|=c,o[a++]=u)}return new it(e,i,o)}function bt(e,t,n,r,i){for(var a=0,o=Array(_),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new at(e,a+1,o)}function xt(e,t,n){for(var i=[],a=0;a<n.length;a++){var s=n[a],c=r(s);o(s)||(c=c.map(function(e){return V(e)})),i.push(c)}return wt(e,t,i)}function St(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):De(e,t)?e:t}function Ct(e){return function(t,n,r){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return De(t,i)?t:i}}function wt(e,t,n){return n=n.filter(function(e){return e.size!==0}),n.length===0?e:e.size===0&&!e.__ownerID&&n.length===1?e.constructor(n[0]):e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,y,function(e){return e===y?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)})}function Tt(e,t,n,r){var i=e===y,a=t.next();if(a.done){var o=i?n:e,s=r(o);return s===o?e:s}je(i||e&&e.set,`invalid keyPath`);var c=a.value,l=i?y:e.get(c,y),u=Tt(l,t,n,r);return u===l?e:u===y?e.remove(c):(i?pt():e).set(c,u)}function Et(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Dt(e,t,n,r){var i=r?e:T(e);return i[t]=n,i}function Ot(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function G(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}var kt=_/4,At=_/2,jt=_/4;t(Mt,U);function Mt(e){var t=Vt();if(e==null)return t;if(Nt(e))return e;var n=i(e),r=n.size;return r===0?t:(Qe(r),r>0&&r<_?zt(0,r,g,null,new It(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString(`List [`,`]`)},Mt.prototype.get=function(e,t){if(e=D(this,e),e>=0&&e<this.size){e+=this._origin;var n=Gt(this,e);return n&&n.array[e&v]}return t},Mt.prototype.set=function(e,t){return Ht(this,e,t)},Mt.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Mt.prototype.insert=function(e,t){return this.splice(e,0,t)},Mt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Vt()},Mt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Kt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Mt.prototype.pop=function(){return Kt(this,0,-1)},Mt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Kt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Mt.prototype.shift=function(){return Kt(this,1)},Mt.prototype.merge=function(){return qt(this,void 0,arguments)},Mt.prototype.mergeWith=function(t){var n=e.call(arguments,1);return qt(this,t,n)},Mt.prototype.mergeDeep=function(){return qt(this,St,arguments)},Mt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return qt(this,Ct(t),n)},Mt.prototype.setSize=function(e){return Kt(this,0,e)},Mt.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:Kt(this,A(e,n),j(t,n))},Mt.prototype.__iterator=function(e,t){var n=0,r=Rt(this,t);return new R(function(){var t=r();return t===Lt?te():z(e,n++,t)})},Mt.prototype.__iterate=function(e,t){for(var n=0,r=Rt(this,t),i;(i=r())!==Lt&&e(i,n++,this)!==!1;);return n},Mt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?zt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)};function Nt(e){return!!(e&&e[Pt])}Mt.isList=Nt;var Pt=`@@__IMMUTABLE_LIST__@@`,Ft=Mt.prototype;Ft[Pt]=!0,Ft[h]=Ft.remove,Ft.setIn=nt.setIn,Ft.deleteIn=Ft.removeIn=nt.removeIn,Ft.update=nt.update,Ft.updateIn=nt.updateIn,Ft.mergeIn=nt.mergeIn,Ft.mergeDeepIn=nt.mergeDeepIn,Ft.withMutations=nt.withMutations,Ft.asMutable=nt.asMutable,Ft.asImmutable=nt.asImmutable,Ft.wasAltered=nt.wasAltered;function It(e,t){this.array=e,this.ownerID=t}It.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:this.array.length===0)return this;var r=n>>>t&v;if(r>=this.array.length)return new It([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-g,n),a===o&&i)return this}if(i&&!a)return this;var s=Wt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},It.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||this.array.length===0)return this;var r=n-1>>>t&v;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-g,n),i===a&&r===this.array.length-1)return this}var o=Wt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var Lt={};function Rt(e,t){var n=e._origin,r=e._capacity,i=Jt(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return t===0?s(e,n):c(e,t,n)}function s(e,o){var s=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,l=r-o;return l>_&&(l=_),function(){if(c===l)return Lt;var e=t?--l:c++;return s&&s[e]}}function c(e,i,a){var s,c=e&&e.array,l=a>n?0:n-a>>i,u=(r-a>>i)+1;return u>_&&(u=_),function(){do{if(s){var e=s();if(e!==Lt)return e;s=null}if(l===u)return Lt;var n=t?--u:l++;s=o(c&&c[n],i-g,a+(n<<i))}while(!0)}}}function zt(e,t,n,r,i,a,o){var s=Object.create(Ft);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}var Bt;function Vt(){return Bt||=zt(0,0,g)}function Ht(e,t,n){if(t=D(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Kt(e,t).set(0,n):Kt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=S(x);return t>=Jt(e._capacity)?r=Ut(r,e.__ownerID,0,t,n,a):i=Ut(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):zt(e._origin,e._capacity,e._level,i,r):e}function Ut(e,t,n,r,i,a){var o=r>>>n&v,s=e&&o<e.array.length;if(!s&&i===void 0)return e;var c;if(n>0){var l=e&&e.array[o],u=Ut(l,t,n-g,r,i,a);return u===l?e:(c=Wt(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(C(a),c=Wt(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function Wt(e,t){return t&&e&&t===e.ownerID?e:new It(e?e.array.slice():[],t)}function Gt(e,t){if(t>=Jt(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=g;return n}}function Kt(e,t,n){t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new w,i=e._origin,a=e._capacity,o=i+t,s=n===void 0?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var c=e._level,l=e._root,u=0;o+u<0;)l=new It(l&&l.array.length?[void 0,l]:[],r),c+=g,u+=1<<c;u&&(o+=u,i+=u,s+=u,a+=u);for(var d=Jt(a),f=Jt(s);f>=1<<c+g;)l=new It(l&&l.array.length?[l]:[],r),c+=g;var p=e._tail,m=f<d?Gt(e,s-1):f>d?new It([],r):p;if(p&&f>d&&o<a&&p.array.length){l=Wt(l,r);for(var h=l,_=c;_>g;_-=g){var y=d>>>_&v;h=h.array[y]=Wt(h.array[y],r)}h.array[d>>>g&v]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=g,l=null,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var b=o>>>c&v;if(b!==f>>>c&v)break;b&&(u+=(1<<c)*b),c-=g,l=l.array[b]}l&&o>i&&(l=l.removeBefore(r,c,o-u)),l&&f<d&&(l=l.removeAfter(r,c,f-u)),u&&(o-=u,s-=u)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):zt(o,s,c,l,m)}function qt(e,t,n){for(var r=[],a=0,s=0;s<n.length;s++){var c=n[s],l=i(c);l.size>a&&(a=l.size),o(c)||(l=l.map(function(e){return V(e)})),r.push(l)}return a>e.size&&(e=e.setSize(a)),wt(e,t,r)}function Jt(e){return e<_?0:e-1>>>g<<g}t(Yt,$e);function Yt(e){return e==null?$t():Xt(e)?e:$t().withMutations(function(t){var n=r(e);Qe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString(`OrderedMap {`,`}`)},Yt.prototype.get=function(e,t){var n=this._map.get(e);return n===void 0?t:this._list.get(n)[1]},Yt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Yt.prototype.set=function(e,t){return en(this,e,t)},Yt.prototype.remove=function(e){return en(this,e,y)},Yt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Yt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Yt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Yt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Zt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)};function Xt(e){return et(e)&&u(e)}Yt.isOrderedMap=Xt,Yt.prototype[m]=!0,Yt.prototype[h]=Yt.prototype.remove;function Zt(e,t,n,r){var i=Object.create(Yt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}var Qt;function $t(){return Qt||=Zt(pt(),Vt())}function en(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===y){if(!o)return e;i.size>=_&&i.size>=r.size*2?(c=i.filter(function(e,t){return e!==void 0&&a!==t}),s=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=c.__ownerID=e.__ownerID)):(s=r.remove(t),c=a===i.size-1?i.pop():i.set(a,void 0))}else if(o){if(n===i.get(a)[1])return e;s=r,c=i.set(a,[t,n])}else s=r.set(t,i.size),c=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=c,e.__hash=void 0,e):Zt(s,c)}t(tn,ce);function tn(e,t){this._iter=e,this._useKeys=t,this.size=e.size}tn.prototype.get=function(e,t){return this._iter.get(e,t)},tn.prototype.has=function(e){return this._iter.has(e)},tn.prototype.valueSeq=function(){return this._iter.valueSeq()},tn.prototype.reverse=function(){var e=this,t=cn(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},tn.prototype.map=function(e,t){var n=this,r=sn(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},tn.prototype.__iterate=function(e,t){var n=this,r;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?Tn(this):0,function(i){return e(i,t?--r:r++,n)}),t)},tn.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(P,t),r=t?Tn(this):0;return new R(function(){var i=n.next();return i.done?i:z(e,t?--r:r++,i.value,i)})},tn.prototype[m]=!0,t(nn,le);function nn(e){this._iter=e,this.size=e.size}nn.prototype.includes=function(e){return this._iter.includes(e)},nn.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},nn.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t),r=0;return new R(function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)})},t(rn,B);function rn(e){this._iter=e,this.size=e.size}rn.prototype.has=function(e){return this._iter.includes(e)},rn.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},rn.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new R(function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)})},t(an,ce);function an(e){this._iter=e,this.size=e.size}an.prototype.entrySeq=function(){return this._iter.toSeq()},an.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){wn(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},an.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new R(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){wn(r);var i=o(r);return z(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},nn.prototype.cacheResult=tn.prototype.cacheResult=rn.prototype.cacheResult=an.prototype.cacheResult=On;function on(e){var t=Dn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=On,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===F){var r=e.__iterator(t,n);return new R(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===P?N:P,n)},t}function sn(e,t,n){var r=Dn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,y);return a===y?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return r(t.call(n,e,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(F,i);return new R(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return z(r,s,t.call(n,o[1],s,e),i)})},r}function cn(e,t){var n=Dn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=on(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=On,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ln(e,t,n,r){var i=Dn(e);return r&&(i.has=function(r){var i=e.get(r,y);return i!==y&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,y);return a!==y&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return s++,i(e,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(F,a),s=0;return new R(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return z(i,r?l:s++,u,a)}})},i}function un(e,t,n){var r=$e().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function dn(e,t,n){var r=s(e),i=(u(e)?Yt():$e()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return e||=[],e.push(r?[o,a]:a),e})});var a=En(e);return i.map(function(t){return Cn(e,a(t))})}function fn(e,t,n,r){var i=e.size;if(t!==void 0&&(t|=0),n!==void 0&&(n===1/0?n=i:n|=0),k(t,n,i))return e;var a=A(t,i),o=j(n,i);if(a!==a||o!==o)return fn(e.toSeq().cacheResult(),t,n,r);var s=o-a,c;s===s&&(c=s<0?0:s);var l=Dn(e);return l.size=c===0?c:e.size&&c||void 0,!r&&he(e)&&c>=0&&(l.get=function(t,n){return t=D(this,t),t>=0&&t<c?e.get(t+a,n):n}),l.__iterateUncached=function(t,n){var i=this;if(c===0)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,s=!0,l=0;return e.__iterate(function(e,n){if(!(s&&=o++<a))return l++,t(e,r?n:l-1,i)!==!1&&l!==c}),l},l.__iteratorUncached=function(t,n){if(c!==0&&n)return this.cacheResult().__iterator(t,n);var i=c!==0&&e.__iterator(t,n),o=0,s=0;return new R(function(){for(;o++<a;)i.next();if(++s>c)return te();var e=i.next();return r||t===P?e:t===N?z(t,s-1,void 0,e):z(t,s-1,e.value[1],e)})},l}function pn(e,t,n){var r=Dn(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(F,i),s=!0;return new R(function(){if(!s)return te();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],l=i[1];return t.call(n,l,c,a)?r===F?e:z(r,c,l,e):(s=!1,te())})},r}function mn(e,t,n,r){var i=Dn(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,c=0;return e.__iterate(function(e,a,l){if(!(s&&=t.call(n,e,a,l)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(F,a),c=!0,l=0;return new R(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===P?e:i===N?z(i,l++,void 0,e):z(i,l++,e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&=t.call(n,u,a,o)}while(c);return i===F?e:z(i,a,u,e)})},i}function hn(e,t){var n=s(e),i=[e].concat(t).map(function(e){return o(e)?n&&(e=r(e)):e=n?ve(e):ye(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(i.length===0)return e;if(i.length===1){var a=i[0];if(a===e||n&&s(a)||c(e)&&c(a))return a}var l=new de(i);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),l}function gn(e,t,n){var r=Dn(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;function c(e,l){var u=this;e.__iterate(function(e,i){return(!t||l<t)&&o(e)?c(e,l+1):r(e,n?i:a++,u)===!1&&(s=!0),!s},i)}return c(e,0),a},r.__iteratorUncached=function(r,i){var a=e.__iterator(r,i),s=[],c=0;return new R(function(){for(;a;){var e=a.next();if(e.done!==!1){a=s.pop();continue}var l=e.value;if(r===F&&(l=l[1]),(!t||s.length<t)&&o(l))s.push(a),a=l.__iterator(r,i);else return n?e:z(r,c++,l,e)}return te()})},r}function _n(e,t,n){var r=En(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function vn(e,t){var n=Dn(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e,r){return(!a||n(t,a++,i)!==!1)&&n(e,a++,i)!==!1},r),a},n.__iteratorUncached=function(n,r){var i=e.__iterator(P,r),a=0,o;return new R(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?z(n,a++,t):z(n,a++,o.value,o)})},n}function yn(e,t,n){t||=kn;var r=s(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?ce(a):c(e)?le(a):B(a)}function bn(e,t,n){if(t||=kn,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return xn(t,e[1],n[1])?n:e});return r&&r[0]}else return e.reduce(function(e,n){return xn(t,e,n)?n:e})}function xn(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function Sn(e,t,r){var i=Dn(e);return i.size=new de(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n=this.__iterator(P,t),r,i=0;!(r=n.next()).done&&e(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var a=r.map(function(e){return e=n(e),ie(i?e.reverse():e)}),o=0,s=!1;return new R(function(){var n;return s||=(n=a.map(function(e){return e.next()}),n.some(function(e){return e.done})),s?te():z(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function Cn(e,t){return he(e)?t:e.constructor(t)}function wn(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function Tn(e){return Qe(e.size),E(e)}function En(e){return s(e)?r:c(e)?i:a}function Dn(e){return Object.create((s(e)?ce:c(e)?le:B).prototype)}function On(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):se.prototype.cacheResult.call(this)}function kn(e,t){return e>t?1:e<t?-1:0}function An(e){var t=ie(e);if(!t){if(!oe(e))throw TypeError(`Expected iterable or array-like: `+e);t=ie(n(e))}return t}t(jn,H);function jn(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var o=Object.keys(e);Fn(i,o),i.size=o.length,i._name=t,i._keys=o,i._defaultValues=e}this._map=$e(a)},i=r.prototype=Object.create(Mn);return i.constructor=r,r}jn.prototype.toString=function(){return this.__toString(Pn(this)+` {`,`}`)},jn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},jn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},jn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||=Nn(this,pt())},jn.prototype.set=function(e,t){if(!this.has(e))throw Error(`Cannot set unknown key "`+e+`" on `+Pn(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Nn(this,n)},jn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Nn(this,t)},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},jn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Nn(this,t,e):(this.__ownerID=e,this._map=t,this)};var Mn=jn.prototype;Mn[h]=Mn.remove,Mn.deleteIn=Mn.removeIn=nt.removeIn,Mn.merge=nt.merge,Mn.mergeWith=nt.mergeWith,Mn.mergeIn=nt.mergeIn,Mn.mergeDeep=nt.mergeDeep,Mn.mergeDeepWith=nt.mergeDeepWith,Mn.mergeDeepIn=nt.mergeDeepIn,Mn.setIn=nt.setIn,Mn.update=nt.update,Mn.updateIn=nt.updateIn,Mn.withMutations=nt.withMutations,Mn.asMutable=nt.asMutable,Mn.asImmutable=nt.asImmutable;function Nn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Pn(e){return e._name||e.constructor.name||`Record`}function Fn(e,t){try{t.forEach(In.bind(void 0,e))}catch{}}function In(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){je(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}t(Ln,Fe);function Ln(e){return e==null?Wn():Rn(e)&&!u(e)?e:Wn().withMutations(function(t){var n=a(e);Qe(n.size),n.forEach(function(e){return t.add(e)})})}Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString(`Set {`,`}`)},Ln.prototype.has=function(e){return this._map.has(e)},Ln.prototype.add=function(e){return Vn(this,this._map.set(e,!0))},Ln.prototype.remove=function(e){return Vn(this,this._map.remove(e))},Ln.prototype.clear=function(){return Vn(this,this._map.clear())},Ln.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach(function(t){return e.add(t)})})},Ln.prototype.intersect=function(){var t=e.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},Ln.prototype.subtract=function(){var t=e.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},Ln.prototype.merge=function(){return this.union.apply(this,arguments)},Ln.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Ln.prototype.sort=function(e){return Gn(yn(this,e))},Ln.prototype.sortBy=function(e,t){return Gn(yn(this,t,e))},Ln.prototype.wasAltered=function(){return this._map.wasAltered()},Ln.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Ln.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Ln.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)};function Rn(e){return!!(e&&e[zn])}Ln.isSet=Rn;var zn=`@@__IMMUTABLE_SET__@@`,Bn=Ln.prototype;Bn[zn]=!0,Bn[h]=Bn.remove,Bn.mergeDeep=Bn.merge,Bn.mergeDeepWith=Bn.mergeWith,Bn.withMutations=nt.withMutations,Bn.asMutable=nt.asMutable,Bn.asImmutable=nt.asImmutable,Bn.__empty=Wn,Bn.__make=Hn;function Vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function Hn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var Un;function Wn(){return Un||=Hn(pt())}t(Gn,Ln);function Gn(e){return e==null?Xn():Kn(e)?e:Xn().withMutations(function(t){var n=a(e);Qe(n.size),n.forEach(function(e){return t.add(e)})})}Gn.of=function(){return this(arguments)},Gn.fromKeys=function(e){return this(r(e).keySeq())},Gn.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)};function Kn(e){return Rn(e)&&u(e)}Gn.isOrderedSet=Kn;var qn=Gn.prototype;qn[m]=!0,qn.__empty=Xn,qn.__make=Jn;function Jn(e,t){var n=Object.create(qn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var Yn;function Xn(){return Yn||=Jn($t())}t(Zn,U);function Zn(e){return e==null?rr():Qn(e)?e:rr().unshiftAll(e)}Zn.of=function(){return this(arguments)},Zn.prototype.toString=function(){return this.__toString(`Stack [`,`]`)},Zn.prototype.get=function(e,t){var n=this._head;for(e=D(this,e);n&&e--;)n=n.next;return n?n.value:t},Zn.prototype.peek=function(){return this._head&&this._head.value},Zn.prototype.push=function(){if(arguments.length===0)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):tr(e,t)},Zn.prototype.pushAll=function(e){if(e=i(e),e.size===0)return this;Qe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):tr(t,n)},Zn.prototype.pop=function(){return this.slice(1)},Zn.prototype.unshift=function(){return this.push.apply(this,arguments)},Zn.prototype.unshiftAll=function(e){return this.pushAll(e)},Zn.prototype.shift=function(){return this.pop.apply(this,arguments)},Zn.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):rr()},Zn.prototype.slice=function(e,t){if(k(e,t,this.size))return this;var n=A(e,this.size);if(j(t,this.size)!==this.size)return U.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):tr(r,i)},Zn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?tr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Zn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Zn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new R(function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return te()})};function Qn(e){return!!(e&&e[$n])}Zn.isStack=Qn;var $n=`@@__IMMUTABLE_STACK__@@`,er=Zn.prototype;er[$n]=!0,er.withMutations=nt.withMutations,er.asMutable=nt.asMutable,er.asImmutable=nt.asImmutable,er.wasAltered=nt.wasAltered;function tr(e,t,n,r){var i=Object.create(er);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var nr;function rr(){return nr||=tr(0)}function ir(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function ar(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}n.Iterator=R,ir(n,{toArray:function(){Qe(this.size);var e=Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new nn(this)},toJS:function(){return this.toSeq().map(function(e){return e&&typeof e.toJS==`function`?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&typeof e.toJSON==`function`?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new tn(this,!0)},toMap:function(){return $e(this.toKeyedSeq())},toObject:function(){Qe(this.size);var e={};return this.__iterate(function(t,n){ar(n)||(e[n]=t)}),e},toOrderedMap:function(){return Yt(this.toKeyedSeq())},toOrderedSet:function(){return Gn(s(this)?this.valueSeq():this)},toSet:function(){return Ln(s(this)?this.valueSeq():this)},toSetSeq:function(){return new rn(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Zn(s(this)?this.valueSeq():this)},toList:function(){return Mt(s(this)?this.valueSeq():this)},toString:function(){return`[Iterable]`},__toString:function(e,t){return this.size===0?e+t:e+` `+this.toSeq().map(this.__toStringMapper).join(`, `)+` `+t},concat:function(){var t=e.call(arguments,0);return Cn(this,hn(this,t))},includes:function(e){return this.some(function(t){return De(t,e)})},entries:function(){return this.__iterator(F)},every:function(e,t){Qe(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return Cn(this,ln(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Qe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Qe(this.size),e=e===void 0?`,`:``+e;var t=``,n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=r==null?``:r.toString()}),t},keys:function(){return this.__iterator(N)},map:function(e,t){return Cn(this,sn(this,e,t))},reduce:function(e,t,n){Qe(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,a,o){i?(i=!1,r=t):r=e.call(n,r,t,a,o)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Cn(this,cn(this,!0))},slice:function(e,t){return Cn(this,fn(this,e,t,!0))},some:function(e,t){return!this.every(ur(e),t)},sort:function(e){return Cn(this,yn(this,e))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size===void 0?!this.some(function(){return!0}):this.size===0},count:function(e,t){return E(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return un(this,e,t)},equals:function(e){return Oe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new de(e._cache);var t=e.toSeq().map(lr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ur(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(O)},flatMap:function(e,t){return Cn(this,_n(this,e,t))},flatten:function(e){return Cn(this,gn(this,e,!0))},fromEntrySeq:function(){return new an(this)},get:function(e,t){return this.find(function(t,n){return De(n,e)},void 0,t)},getIn:function(e,t){for(var n=this,r=An(e),i;!(i=r.next()).done;){var a=i.value;if(n=n&&n.get?n.get(a,y):y,n===y)return t}return n},groupBy:function(e,t){return dn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e=typeof e.includes==`function`?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:n(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return De(t,e)})},keySeq:function(){return this.toSeq().map(cr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return bn(this,e)},maxBy:function(e,t){return bn(this,t,e)},min:function(e){return bn(this,e?dr(e):mr)},minBy:function(e,t){return bn(this,t?dr(t):mr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Cn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Cn(this,mn(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ur(e),t)},sortBy:function(e,t){return Cn(this,yn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Cn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Cn(this,pn(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ur(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=K(this)}});var or=n.prototype;or[d]=!0,or[L]=or.values,or.__toJS=or.toArray,or.__toStringMapper=fr,or.inspect=or.toSource=function(){return this.toString()},or.chain=or.flatMap,or.contains=or.includes,ir(r,{flip:function(){return Cn(this,on(this))},mapEntries:function(e,t){var n=this,r=0;return Cn(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Cn(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var sr=r.prototype;sr[f]=!0,sr[L]=or.entries,sr.__toJS=or.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+`: `+fr(e)},ir(i,{toKeyedSeq:function(){return new tn(this,!1)},filter:function(e,t){return Cn(this,ln(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return t===void 0?-1:t},reverse:function(){return Cn(this,cn(this,!1))},slice:function(e,t){return Cn(this,fn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t|0,0),n===0||n===2&&!t)return this;e=A(e,e<0?this.count():this.size);var r=this.slice(0,e);return Cn(this,n===1?r:r.concat(T(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Cn(this,gn(this,e,!1))},get:function(e,t){return e=D(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=D(this,e),e>=0&&(this.size===void 0?this.indexOf(e)!==-1:this.size===1/0||e<this.size)},interpose:function(e){return Cn(this,vn(this,e))},interleave:function(){var e=[this].concat(T(arguments)),t=Sn(this.toSeq(),le.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Cn(this,n)}
2721,keySeq:function(){return Me(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Cn(this,mn(this,e,t,!1))},zip:function(){var e=[this].concat(T(arguments));return Cn(this,Sn(this,pr,e))},zipWith:function(e){var t=T(arguments);return t[0]=this,Cn(this,Sn(this,e,t))}}),i.prototype[p]=!0,i.prototype[m]=!0,ir(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=or.includes,a.prototype.contains=a.prototype.includes,ir(ce,r.prototype),ir(le,i.prototype),ir(B,a.prototype),ir(H,r.prototype),ir(U,i.prototype),ir(Fe,a.prototype);function cr(e,t){return t}function lr(e,t){return[t,e]}function ur(e){return function(){return!e.apply(this,arguments)}}function dr(e){return function(){return-e.apply(this,arguments)}}function fr(e){return typeof e==`string`?JSON.stringify(e):String(e)}function pr(){return T(arguments)}function mr(e,t){return e<t?1:e>t?-1:0}function K(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=+!!t;return hr(e.__iterate(n?t?function(e,t){r=31*r+gr(Re(e),Re(t))|0}:function(e,t){r=r+gr(Re(e),Re(t))|0}:t?function(e){r=31*r+Re(e)|0}:function(e){r=r+Re(e)|0}),r)}function hr(e,t){return t=Ie(t,3432918353),t=Ie(t<<15|t>>>-15,461845907),t=Ie(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Ie(t^t>>>16,2246822507),t=Ie(t^t>>>13,3266489909),t=Le(t^t>>>16),t}function gr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return{Iterable:n,Seq:se,Collection:Pe,Map:$e,OrderedMap:Yt,List:Mt,Stack:Zn,Set:Ln,OrderedSet:Gn,Record:jn,Range:Me,Repeat:ke,is:De,fromJS:V}})})),gF=i(((e,t)=>{var n=hF().OrderedMap;t.exports={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}}})),_F=i(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=hF(),i=r.Map,a=r.OrderedSet,o=r.Record,s=a(),c={style:s,entity:null},l=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getStyle=function(){return this.get(`style`)},r.getEntity=function(){return this.get(`entity`)},r.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set(`style`,e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set(`style`,e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set(`entity`,n);return t.create(r)},t.create=function(e){if(!e)return u;var n=i({style:s,entity:null}).merge(e),r=d.get(n);if(r)return r;var a=new t(n);return d=d.set(n,a),a},t.fromJS=function(e){var n=e.style,r=e.entity;return new t({style:Array.isArray(n)?a(n):n,entity:Array.isArray(r)?a(r):r})},t}(o(c)),u=new l,d=i([[i(c),u]]);l.EMPTY=u,t.exports=l})),vF=i(((e,t)=>{function n(e,t,n,r){if(e.size){var i=0;e.reduce(function(e,a,o){return t(e,a)||(n(e)&&r(i,o),i=o),a}),n(e.last())&&r(i,e.count())}}t.exports=n})),yF=i(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=_F(),i=vF(),a=hF(),o=a.List,s=a.Map,c=a.OrderedSet,l=a.Record,u=a.Repeat,d=c(),f=l({key:``,type:`unstyled`,text:``,characterList:o(),depth:0,data:s()}),p=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=o(u(r.EMPTY,n.length))),e},m=function(e){n(t,e);function t(t){return e.call(this,p(t))||this}var r=t.prototype;return r.getKey=function(){return this.get(`key`)},r.getType=function(){return this.get(`type`)},r.getText=function(){return this.get(`text`)},r.getCharacterList=function(){return this.get(`characterList`)},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get(`depth`)},r.getData=function(){return this.get(`data`)},r.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},r.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},r.findStyleRanges=function(e,t){i(this.getCharacterList(),h,e,t)},r.findEntityRanges=function(e,t){i(this.getCharacterList(),g,e,t)},t}(f);function h(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}t.exports=m})),bF=i(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=_F(),i=vF(),a=hF(),o=a.List,s=a.Map,c=a.OrderedSet,l=a.Record,u=a.Repeat,d=c(),f={parent:null,characterList:o(),data:s(),depth:0,key:``,text:``,type:`unstyled`,children:o(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},m=function(e,t){return e.getEntity()===t.getEntity()},h=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=o(u(r.EMPTY,n.length))),e};t.exports=function(e){n(t,e);function t(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f;return e.call(this,h(t))||this}var r=t.prototype;return r.getKey=function(){return this.get(`key`)},r.getType=function(){return this.get(`type`)},r.getText=function(){return this.get(`text`)},r.getCharacterList=function(){return this.get(`characterList`)},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get(`depth`)},r.getData=function(){return this.get(`data`)},r.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},r.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},r.getChildKeys=function(){return this.get(`children`)},r.getParentKey=function(){return this.get(`parent`)},r.getPrevSiblingKey=function(){return this.get(`prevSibling`)},r.getNextSiblingKey=function(){return this.get(`nextSibling`)},r.findStyleRanges=function(e,t){i(this.getCharacterList(),p,e,t)},r.findEntityRanges=function(e,t){i(this.getCharacterList(),m,e,t)},t}(l(f))})),xF=i(((e,t)=>{var n=_F(),r=hF().Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,i,a){var o=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),d=o.skipUntil(function(e,t){return t===s}).takeUntil(function(e,t){return t===l}).concat(r([[l,o.get(l)]])).map(function(e,t){var r,o;s===l?(r=c,o=u):(r=t===s?c:0,o=t===l?u:e.getLength());for(var d=e.getCharacterList(),f;r<o;
2721)f=d.get(r),d=d.set(r,a?n.applyStyle(f,i):n.removeStyle(f,i)),r++;return e.set(`characterList`,d)});return e.merge({blockMap:o.merge(d),selectionBefore:t,selectionAfter:t})}t.exports=i})),SF=i(((e,t)=>{var n=_F();function r(e,t,r,i){for(var a=t,o=e.getCharacterList();a<r;)o=o.set(a,n.applyEntity(o.get(a),i)),a++;return e.set(`characterList`,o)}t.exports=r})),CF=i(((e,t)=>{var n=SF(),r=hF();function i(e,t,i){var a=e.getBlockMap(),o=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),l=t.getEndOffset(),u=a.skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===c}).toOrderedMap().merge(r.OrderedMap([[c,a.get(c)]])).map(function(e,t){return n(e,t===o?s:0,t===c?l:e.getLength(),i)});return e.merge({blockMap:a.merge(u),selectionBefore:t,selectionAfter:t})}t.exports=i})),wF=i(((e,t)=>{t.exports={getRemovalRange:function(e,t,n,r,i){var a=n.split(` `);a=a.map(function(e,t){if(i===`forward`){if(t>0)return` `+e}else if(t<a.length-1)return e+` `;return e});for(var o=r,s,c,l=null,u=null,d=0;d<a.length;d++){if(c=a[d],s=o+c.length,e<s&&o<t)l===null&&(l=o),u=s;else if(l!==null)break;o=s}var f=r+n.length,p=l===r,m=u===f;return(!p&&m||p&&!m)&&(i===`forward`?u!==f&&u++:l!==r&&l--),{start:l,end:u}}}})),TF=i(((e,t)=>{function n(e,t){var n=[...arguments].slice(2);if(!e){var r;if(t===void 0)r=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var i=0;r=Error(t.replace(/%s/g,function(){return String(n[i++])})),r.name=`Invariant Violation`}throw r.framesToPop=1,r}}t.exports=n})),EF=i(((e,t)=>{var n=TF();function r(e,t){var r=[];return e.findEntityRanges(function(e){return e.getEntity()===t},function(e,t){r.push({start:e,end:t})}),!r.length&&n(!1),r}t.exports=r})),DF=i(((e,t)=>{var n=wF(),r=EF(),i=TF();function a(e,t,n,r,i){var a=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(a),l=n.getEntityAt(s-1);if(!c&&!l)return r;var u=r;if(c&&c===l)u=o(e,t,u,i,c,!0,!0);else if(c&&l){var d=o(e,t,u,i,c,!1,!0),f=o(e,n,u,i,l,!1,!1);u=u.merge({anchorOffset:d.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(c){var p=o(e,t,u,i,c,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(l){var m=o(e,n,u,i,l,!1,!1);u=u.merge({focusOffset:m.getEndOffset(),isBackward:!1})}return u}function o(e,t,a,o,s,c,l){var u=a.getStartOffset(),d=a.getEndOffset(),f=e.__get(s).getMutability(),p=l?u:d;if(f===`MUTABLE`)return a;var m=r(t,s).filter(function(e){return p<=e.end&&p>=e.start});m.length!=1&&i(!1);var h=m[0];if(f===`IMMUTABLE`)return a.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1});c||(l?d=h.end:u=h.start);var g=n.getRemovalRange(u,d,t.getText().slice(h.start,h.end),h.start,o);return a.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1})}t.exports=a})),OF=i(((e,t)=>{var n={},r=2**24;function i(){for(var e;e===void 0||n.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return n[e]=!0,e}t.exports=i})),kF=i(((e,t)=>{var n=bF(),r=OF(),i=hF().OrderedMap,a=function(e){var t={},n;return i(e.withMutations(function(e){e.forEach(function(i,a){var o=i.getKey(),s=i.getNextSiblingKey(),c=i.getPrevSiblingKey(),l=i.getChildKeys(),u=i.getParentKey(),d=r();if(t[o]=d,s&&(e.get(s)?e.setIn([s,`prevSibling`],d):e.setIn([o,`nextSibling`],null)),c&&(e.get(c)?e.setIn([c,`nextSibling`],d):e.setIn([o,`prevSibling`],null)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,`children`],f.set(f.indexOf(i.getKey()),d))}else e.setIn([o,`parent`],null),n&&(e.setIn([n.getKey(),`nextSibling`],d),e.setIn([o,`prevSibling`],t[n.getKey()])),n=e.get(o);l.forEach(function(t){e.get(t)?e.setIn([t,`parent`],d):e.setIn([o,`children`],i.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[t[e.getKey()],e.set(`key`,t[e.getKey()])]}))},o=function(e){return i(e.toArray().map(function(e){var t=r();return[t,e.set(`key`,t)]}))};t.exports=function(e){return e.first()instanceof n?a(e):o(e)}})),AF=i(((e,t)=>{var n=_F(),r=vF(),i=TF();function a(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},a=t.getStartKey(),o=t.getStartOffset(),c=n.get(a),l=s(r,c,o);l!==c&&(i[a]=l);var u=t.getEndKey(),d=t.getEndOffset(),f=n.get(u);a===u&&(f=l);var p=s(r,f,d);return p!==f&&(i[u]=p),Object.keys(i).length?e.merge({blockMap:n.merge
vendor: 7,202 bytes, line 2721
2721(i),selectionAfter:t}):e.set(`selectionAfter`,t)}function o(e,t,n){var a;return r(e,function(e,t){return e.getEntity()===t.getEntity()},function(e){return e.getEntity()===t},function(e,t){e<=n&&t>=n&&(a={start:e,end:t})}),typeof a!=`object`&&i(!1),a}function s(e,t,r){var i=t.getCharacterList(),a=r>0?i.get(r-1):void 0,s=r<i.count()?i.get(r):void 0,c=a?a.getEntity():void 0,l=s?s.getEntity():void 0;if(l&&l===c&&e.__get(l).getMutability()!==`MUTABLE`){for(var u=o(i,l,r),d=u.start,f=u.end,p;d<f;)p=i.get(d),i=i.set(d,n.applyEntity(p,null)),d++;return t.set(`characterList`,i)}return t}t.exports=a})),jF=i(((e,t)=>{var n=kF(),r=AF();t.exports=function(e,t){var i=t.getStartKey(),a=t.getStartOffset(),o=t.getEndKey(),s=t.getEndOffset(),c=r(e,t).getBlockMap(),l=c.keySeq(),u=l.indexOf(i),d=l.indexOf(o)+1;return n(c.slice(u,d).map(function(e,t){var n=e.getText(),r=e.getCharacterList();return i===o?e.merge({text:n.slice(a,s),characterList:r.slice(a,s)}):t===i?e.merge({text:n.slice(a),characterList:r.slice(a)}):t===o?e.merge({text:n.slice(0,s),characterList:r.slice(0,s)}):e}))}})),MF=i(((e,t)=>{function n(e,t,n){var r=e;if(n===r.count())t.forEach(function(e){r=r.push(e)});else if(n===0)t.reverse().forEach(function(e){r=r.unshift(e)});else{var i=r.slice(0,n),a=r.slice(n);r=i.concat(t,a).toList()}return r}t.exports=n})),NF=i(((e,t)=>{var n=gF(),r=bF(),i=hF(),a=MF(),o=TF(),s=kF(),c=i.List,l=function(e,t,n,r,i,o){var s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:`REPLACE_WITH_NEW_DATA`,c=n.get(i),l=c.getText(),u=c.getCharacterList(),d=i,f=o+r.getText().length,p=null;switch(s){case`MERGE_OLD_DATA_TO_NEW_DATA`:p=r.getData().merge(c.getData());break;case`REPLACE_WITH_NEW_DATA`:p=r.getData();break}var m=c.getType();l&&m===`unstyled`&&(m=r.getType());var h=c.merge({text:l.slice(0,o)+r.getText()+l.slice(o),characterList:a(u,r.getCharacterList(),o),type:m,data:p});return e.merge({blockMap:n.set(i,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:f,focusKey:d,focusOffset:f,isBackward:!1})})},u=function(e,t,n){var r=e.getText(),i=e.getCharacterList(),a=r.slice(0,t),o=i.slice(0,t),s=n.first();return e.merge({text:a+s.getText(),characterList:o.concat(s.getCharacterList()),type:a?e.getType():s.getType(),data:s.getData()})},d=function(e,t,n){var r=e.getText(),i=e.getCharacterList(),a=r.length,o=r.slice(t,a),s=i.slice(t,a),c=n.last();return c.merge({text:c.getText()+o,characterList:c.getCharacterList().concat(s),data:c.getData()})},f=function(e,t){var n=e.getKey(),r=e,i=[];for(t.get(n)&&i.push(n);r&&r.getNextSiblingKey();){var a=r.getNextSiblingKey();if(!a)break;i.push(a),r=t.get(a)}return i},p=function(e,t,n,r){return e.withMutations(function(t){var i=n.getKey(),a=r.getKey(),o=n.getNextSiblingKey(),s=n.getParentKey(),l=f(r,e),u=l[l.length-1];if(t.get(a)?(t.setIn([i,`nextSibling`],a),t.setIn([a,`prevSibling`],i)):(t.setIn([i,`nextSibling`],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),`prevSibling`],i)),t.setIn([u,`nextSibling`],o),o&&t.setIn([o,`prevSibling`],u),l.forEach(function(e){return t.setIn([e,`parent`],s)}),s){var d=e.get(s).getChildKeys(),p=d.indexOf(i)+1,m=d.toArray();m.splice.apply(m,[p,0].concat(l)),t.setIn([s,`children`],c(m))}})},m=function(e,t,i,a,o,s){var c=i.first()instanceof r,l=[],f=a.size,m=i.get(o),h=a.first(),g=a.last(),_=g.getLength(),v=g.getKey(),y=c&&(!m.getChildKeys().isEmpty()||!h.getChildKeys().isEmpty());i.forEach(function(e,t){if(t!==o){l.push(e);return}y?l.push(e):l.push(u(e,s,a)),a.slice(+!y,f-1).forEach(function(e){return l.push(e)}),l.push(d(e,s,a))});var b=n.createFromArray(l);return c&&(b=p(b,i,m,h)),e.merge({blockMap:b,selectionBefore:t,selectionAfter:t.merge({anchorKey:v,anchorOffset:_,focusKey:v,focusOffset:_,isBackward:!1})})};t.exports=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`REPLACE_WITH_NEW_DATA`;!t.isCollapsed()&&o(!1);var a=e.getBlockMap(),c=s(n),u=t.getStartKey(),d=t.getStartOffset(),f=a.get(u);return f instanceof r&&!f.getChildKeys().isEmpty()&&o(!1),c.size===1?l(e,t,a,c.first(),u,d,i):m(e,t,a,c,u,d)}})),PF=i(((e,t)=>{var n=hF(),r=MF(),i=TF(),a=n.Repeat;function o(e,t,n,o){!t.isCollapsed()&&i(!1);var s=null;if(n!=null&&(s=n.length),s==null||s===0)return e;var c=e.getBlockMap(),l=t.getStartKey(),u=t.getStartOffset(),d=c.get(l),f=d.getText(),p=d.merge({text:f.slice(0,u)+n+f.slice(u,d.getLength()),characterList:r(d.getCharacterList(),a(o,s).toList(),u)}),m=u+s;return e.merge({blockMap:c.set(l,p),selectionAfter:t.merge({anchorOffset:m,focusOffset:m})})}t.exports=o})),FF=i(((e,t)=>{var n=hF().Map;function r(e,t,r){var i=t.getStartKey(),a=t.getEndKey(),o=e.getBlockMap(),s=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===a}).concat(n([[a,o.get(a)]])).map(r);return e.merge({blockMap:o.merge(s),selectionBefore:t,selectionAfter:t})}t.exports=r})),IF=i(((e,t)=>{var n=bF();t.exports=function(e,t){if(!(e instanceof n))return null;var r=e.getNextSiblingKey();if(r)return r;var i=e.getParentKey();if(!i)return null;for(var a=t.get(i);a&&!a.getNextSiblingKey();){var o=a.getParentKey();a=o?t.get(o):null}return a?a.getNextSiblingKey():null}})),LF=i(((e,t)=>{var n=bF(),r=IF(),i=hF();i.List;var a=i.Map,o=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},s=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var i=r.getParentKey();i&&n.push(i),r=i?t.get(i):null}return n},c=function(e,t){var n=[];if(!e)return n;for(var i=r(e,t);i&&t.get(i);){var a=t.get(i);n.push(i),i=a.getParentKey()?r(a,t):null}return n},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},d=function(e,t,n,r){return e.withMutations(function(i){if(o(t.getKey(),i,function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}),o(n.getKey(),i,function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})}),s(t.getKey(),r).forEach(function(e){return o(e,i,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return i.get(e)}),nextSibling:l(e,i,r),prevSibling:u(e,i,r)})})}),o(t.getNextSiblingKey(),i,function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})}),o(t.getPrevSiblingKey(),i,function(e){return e.merge({nextSibling:l(e,i,r)})}),o(n.getNextSiblingKey(),i,function(e){return e.merge({prevSibling:u(e,i,r)})}),o(n.getPrevSiblingKey(),i,function(e){return e.merge({nextSibling:n.getNextSiblingKey()})}),s(n.getKey(),r).forEach(function(e){o(e,i,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return i.get(e)}),nextSibling:l(e,i,r),prevSibling:u(e,i,r)})})}),c(n,r).forEach(function(e){return o(e,i,function(e){return e.merge({nextSibling:l(e,i,r),prevSibling:u(e,i,r)})})}),e.get(t.getKey())==null&&e.get(n.getKey())!=null&&n.getParentKey()===t.getKey()&&n.getPrevSiblingKey()==null){var a=t.getPrevSiblingKey();o(n.getKey(),i,function(e){return e.merge({prevSibling:a})}),o(a,i,function(e){return e.merge({nextSibling:n.getKey()})});var d=a?e.get(a):null,f=d?d.getParentKey():null;
2721if(t.getChildKeys().forEach(function(e){o(e,i,function(e){return e.merge({parent:f})})}),f!=null){var p=e.get(f);o(f,i,function(e){return e.merge({children:p.getChildKeys().concat(t.getChildKeys())})})}o(t.getChildKeys().find(function(t){return e.get(t).getNextSiblingKey()===null}),i,function(e){return e.merge({nextSibling:t.getNextSiblingKey()})})}})},f=function(e,t){if(t.isCollapsed())return e;var i=e.getBlockMap(),o=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),f=i.get(o),m=i.get(l),h=f instanceof n,g=[];if(h){var _=m.getChildKeys(),v=s(l,i);m.getNextSiblingKey()&&(g=g.concat(v)),_.isEmpty()||(g=g.concat(v.concat([l]))),g=g.concat(s(r(m,i),i))}var y=f===m?p(f.getCharacterList(),c,u):f.getCharacterList().slice(0,c).concat(m.getCharacterList().slice(u)),b=f.merge({text:f.getText().slice(0,c)+m.getText().slice(u),characterList:y}),x=h&&c===0&&u===0&&m.getParentKey()===o&&m.getPrevSiblingKey()==null?a([[o,null]]):i.toSeq().skipUntil(function(e,t){return t===o}).takeUntil(function(e,t){return t===l}).filter(function(e,t){return g.indexOf(t)===-1}).concat(a([[l,null]])).map(function(e,t){return t===o?b:null}),S=i.merge(x).filter(function(e){return!!e});return h&&f!==m&&(S=d(S,f,m,i)),e.merge({blockMap:S,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:c,focusKey:o,focusOffset:c,isBackward:!1})})},p=function(e,t,n){if(t===0)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),i=e.slice(n);e=r.concat(i).toList()}return e};t.exports=f})),RF=i(((e,t)=>{var n=bF(),r=OF(),i=hF(),a=TF(),o=FF(),s=i.List,c=i.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n){return e.withMutations(function(e){var r=t.getKey(),i=n.getKey();l(t.getParentKey(),e,function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,a=t.toArray();return a.splice(n,0,i),e.merge({children:s(a)})}),l(t.getNextSiblingKey(),e,function(e){return e.merge({prevSibling:i})}),l(r,e,function(e){return e.merge({nextSibling:i})}),l(i,e,function(e){return e.merge({prevSibling:r})})})};t.exports=function(e,t){!t.isCollapsed()&&a(!1);var i=t.getAnchorKey(),s=e.getBlockMap(),l=s.get(i),d=l.getText();if(!d){var f=l.getType();if(f===`unordered-list-item`||f===`ordered-list-item`)return o(e,t,function(e){return e.merge({type:`unstyled`,depth:0})})}var p=t.getAnchorOffset(),m=l.getCharacterList(),h=r(),g=l instanceof n,_=l.merge({text:d.slice(0,p),characterList:m.slice(0,p)}),v=_.merge({key:h,text:d.slice(p),characterList:m.slice(p),data:c()}),y=s.toSeq().takeUntil(function(e){return e===l}),b=s.toSeq().skipUntil(function(e){return e===l}).rest(),x=y.concat([[i,_],[h,v]],b).toOrderedMap();return g&&(!l.getChildKeys().isEmpty()&&a(!1),x=u(x,_,v)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})}})),zF=i(((e,t)=>{var n=_F(),r=xF(),i=CF(),a=DF(),o=jF(),s=hF(),c=NF(),l=PF(),u=TF(),d=FF(),f=AF(),p=LF(),m=RF(),h=s.OrderedSet,g={replaceText:function(e,t,r,i,a){var o=p(f(e,t),t),s=n.create({style:i||h(),entity:a||null});return l(o,o.getSelectionAfter(),r,s)},insertText:function(e,t,n,r,i){return!t.isCollapsed()&&u(!1),g.replaceText(e,t,n,r,i)},moveText:function(e,t,n){var r=o(e,t),i=g.removeRange(e,t,`backward`);return g.replaceWithFragment(i,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`REPLACE_WITH_NEW_DATA`,i=p(f(e,t),t);return c(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,i,o,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),i=t.getFocusKey(),o=e.getBlockForKey(r),s=e.getBlockForKey(i);var c=t.getStartOffset(),l=t.getEndOffset(),u=o.getEntityAt(c),d=s.getEntityAt(l-1);return r===i&&u&&u===d?p(e,a(e.getEntityMap(),o,s,t,n)):p(f(e,t),t)},splitBlock:function(e,t){var n=p(f(e,t),t);return m(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,n){return r.add(e,t,n)},removeInlineStyle:function(e,t,n){return r.remove(e,t,n)},setBlockType:function(e,t,n){return d(e,t,function(e){return e.merge({type:n,depth:0})})},setBlockData:function(e,t,n){return d(e,t,function(e){return e.merge({data:n})})},mergeBlockData:function(e,t,n){return d(e,t,function(e){return e.merge({data:e.getData().merge(n)})})},applyEntity:function(e,t,n){return i(f(e,t),t,n)}};t.exports=g})),BF=i(((e,t)=>{function n(e){return Object.keys(e).map(function(t){return e[t]})}t.exports=n})),VF=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}
2721))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var a=vF(),o=BF(),s=hF(),c=s.List,l=s.Repeat,u=s.Record,d=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),m={generate:function(e,t,n){var r=t.getLength();if(!r)return c.of(new p({start:0,end:0,decoratorKey:null,leaves:c.of(new f({start:0,end:0}))}));var i=[],o=n?n.getDecorations(t,e):c(l(null,r)),s=t.getCharacterList();return a(o,g,d,function(e,t){i.push(new p({start:e,end:t,decoratorKey:o.get(e),leaves:h(s.slice(e,t).toList(),e)}))}),c(i)},fromJS:function(e){var t=e.leaves;return new p(n({},i(e,[`leaves`]),{leaves:t==null?null:c(Array.isArray(t)?t:o(t)).map(function(e){return f(e)})}))}};function h(e,t){var n=[];return a(e.map(function(e){return e.getStyle()}).toList(),g,d,function(e,r){n.push(new f({start:e+t,end:r+t}))}),c(n)}function g(e,t){return e===t}t.exports=m})),HF=i(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=hF().Record;t.exports=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getType=function(){return this.get(`type`)},r.getMutability=function(){return this.get(`mutability`)},r.getData=function(){return this.get(`data`)},t}(r({type:`TOKEN`,mutability:`IMMUTABLE`,data:Object}))})),UF=i(((e,t)=>{function n(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){var t=Math.random()*16|0;return(e==`x`?t:t&3|8).toString(16)})}t.exports=n})),WF=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=HF(),a=hF(),o=TF(),s=UF(),c=a.Map,l=c(),u=s();function d(e,t){console.warn(`WARNING: `+e+` will be deprecated soon!
2722Please use "`+t+`" instead.`)}var f={getLastCreatedEntityKey:function(){return d(`DraftEntity.getLastCreatedEntityKey`,`contentState.getLastCreatedEntityKey`),f.__getLastCreatedEntityKey()},create:function(e,t,n){return d(`DraftEntity.create`,`contentState.createEntity`),f.__create(e,t,n)},add:function(e){return d(`DraftEntity.add`,`contentState.addEntity`),f.__add(e)},get:function(e){return d(`DraftEntity.get`,`contentState.getEntity`),f.__get(e)},__getAll:function(){return l},__loadWithEntities:function(e){l=e,u=s()},mergeData:function(e,t){return d(`DraftEntity.mergeData`,`contentState.mergeEntityData`),f.__mergeData(e,t)},replaceData:function(e,t){return d(`DraftEntity.replaceData`,`contentState.replaceEntityData`),f.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return u},__create:function(e,t,n){return f.__add(new i({type:e,mutability:t,data:n||{}}))},__add:function(e){return u=s(),l=l.set(u,e),u},__get:function(e){var t=l.get(e);return!t&&o(!1),t},__mergeData:function(e,t){var r=f.__get(e),i=n({},r.getData(),t),a=r.set(`data`,i);return l=l.set(e,a),a},__replaceData:function(e,t){var n=f.__get(e).set(`data`,t);return l=l.set(e,n),n}};t.exports=f})),GF=i(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r=hF().Record;t.exports=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.serialize=function(){return`Anchor: `+this.getAnchorKey()+`:`+this.getAnchorOffset()+`, Focus: `+this.getFocusKey()+`:`+this.getFocusOffset()+`, Is Backward: `+String(this.getIsBackward())+`, Has Focus: `+String(this.getHasFocus())},r.getAnchorKey=function(){return this.get(`anchorKey`)},r.getAnchorOffset=function(){return this.get(`anchorOffset`)},r.getFocusKey=function(){return this.get(`focusKey`)},r.getFocusOffset=function(){return this.get(`focusOffset`)},r.getIsBackward=function(){return this.get(`isBackward`)},r.getHasFocus=function(){return this.get(`hasFocus`)},r.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),i=this.getFocusKey();if(r===i&&r===e){var a=this.getStartOffset(),o=this.getEndOffset();return t<=a&&a<=n||t<=o&&o<=n}if(e!==r&&e!==i)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},r.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},r.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},r.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},r.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},r.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(r({anchorKey:``,anchorOffset:0,focusKey:``,focusOffset:0,isBackward:!1,hasFocus:!1}))}
2722)),KF=i(((e,t)=>{t.exports=function(e){return typeof window<`u`&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1}})),qF=i(((e,t)=>{var n=RegExp(`\r`,`g`);function r(e){return e.replace(n,``)}t.exports=r})),JF=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=gF(),o=_F(),s=yF(),c=bF(),l=WF(),u=GF(),d=OF(),f=BF(),p=KF(),m=hF(),h=qF(),g=m.List,_=m.Record,v=m.Repeat,y=m.Map,b=m.OrderedMap,x=_({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),S=p(`draft_tree_data_support`)?c:s;t.exports=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.getEntityMap=function(){return l},r.getBlockMap=function(){return this.get(`blockMap`)},r.getSelectionBefore=function(){return this.get(`selectionBefore`)},r.getSelectionAfter=function(){return this.get(`selectionAfter`)},r.getBlockForKey=function(e){return this.getBlockMap().get(e)},r.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},r.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil(function(t){return t===e}).skip(1).first()},r.getBlockAfter=function(e){return this.getBlockMap().skipUntil(function(t,n){return n===e}).skip(1).first()},r.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).first()},r.getBlocksAsArray=function(){return this.getBlockMap().toArray()},r.getFirstBlock=function(){return this.getBlockMap().first()},r.getLastBlock=function(){return this.getBlockMap().last()},r.getPlainText=function(e){return this.getBlockMap().map(function(e){return e?e.getText():``}).join(e||`
2723`)},r.getLastCreatedEntityKey=function(){return l.__getLastCreatedEntityKey()},r.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,``).length>0},r.createEntity=function(e,t,n){return l.__create(e,t,n),this},r.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},r.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},r.addEntity=function(e){return l.__add(e),this},r.getEntity=function(e){return l.__get(e)},r.getAllEntities=function(){return l.__getAll()},r.loadWithEntities=function(e){return l.__loadWithEntities(e)},t.createFromBlockArray=function(e,n){var r=Array.isArray(e)?e:e.contentBlocks,i=a.createFromArray(r),o=i.isEmpty()?new u:u.createEmpty(i.first().getKey());return new t({blockMap:i,entityMap:n||l,selectionBefore:o,selectionAfter:o})},t.createFromText=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,r=e.split(n).map(function(e){return e=h(e),new S({key:d(),text:e,type:`unstyled`,characterList:g(v(o.EMPTY,e.length))})});return t.createFromBlockArray(r)},t.fromJS=function(e){return new t(n({},e,{blockMap:b(e.blockMap).map(t.createContentBlockFromJS),selectionBefore:new u(e.selectionBefore),selectionAfter:new u(e.selectionAfter)}))},t.createContentBlockFromJS=function(e){var t=e.characterList;return new S(n({},e,{data:y(e.data),characterList:t==null?void 0:g((Array.isArray(t)?t:f(t)).map(function(e){return o.fromJS(e)}))}))},t}(x)})),YF=i(((e,t)=>{var n=TF(),r=`NEUTRAL`,i=`LTR`,a=`RTL`,o=null;function s(e){return e===i||e===a}function c(e){return!s(e)&&n(!1),e===i?`ltr`:`rtl`}function l(e,t){return!s(e)&&n(!1),!s(t)&&n(!1),e===t?null:c(e)}function u(e){o=e}function d(){u(i)}function f(){return o||this.initGlobalDir(),!o&&n(!1),o}t.exports={NEUTRAL:r,LTR:i,RTL:a,isStrong:s,getHTMLDir:c,getHTMLDirIfDifferent:l,setGlobalDir:u,initGlobalDir:d,getGlobalDir:f}})),XF=i(((e,t)=>{var n=YF(),r=TF(),i={L:`A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०
2723-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,R:`֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ`,AL:`؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾`},a=RegExp(`[`+i.L+i.R+i.AL+`]`),o=RegExp(`[`+i.R+i.AL+`]`);function s(e){var t=a.exec(e);return t==null?null:t[0]}function c(e){var t=s(e);return t==null?n.NEUTRAL:o.exec(t)?n.RTL:n.LTR}function l(e,t){if(t||=n.NEUTRAL,!e.length)return t;var r=c(e);return r===n.NEUTRAL?t:r}function u(e,t){return t||=n.getGlobalDir(),!n.isStrong(t)&&r(!1),l(e,t)}function d(e,t){return u(e,t)===n.LTR}function f(e,t){return u(e,t)===n.RTL}t.exports={firstStrongChar:s,firstStrongCharDir:c,resolveBlockDir:l,getDirection:u,isDirectionLTR:d,isDirectionRTL:f}})),ZF=i(((e,t)=>{function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=XF(),i=YF(),a=TF();t.exports=function(){function e(e){n(this,`_defaultDir`,void 0),n(this,`_lastDir`,void 0),e?!i.isStrong(e)&&a(!1):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}()})),QF=i(((e,t)=>{t.exports=function(e){if(e!=null)return e;throw Error(`Got unexpected null or undefined`)}})),$F=i(((e,t)=>{var n=ZF(),r=hF(),i=QF(),a=r.OrderedMap,o;t.exports={getDirectionMap:function(e,t){o?o.reset():o=new n;var s=e.getBlockMap(),c=s.valueSeq().map(function(e){return i(o).getDirection(e.getText())}),l=a(s.keySeq().zip(c));return t!=null&&r.is(t,l)?t:l}}})),eI=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}
2723))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=VF(),a=JF(),o=$F(),s=GF(),c=hF(),l=c.OrderedSet,u=c.Record,d=c.Stack,f=c.OrderedMap,p=c.List,m=u({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:d(),selection:null,treeMap:null,undoStack:d()}),h=function(){t.createEmpty=function(e){return this.createWithText(``,e)},t.createWithText=function(e,n){return t.createWithContent(a.createFromText(e),n)},t.createWithContent=function(e,n){if(e.getBlockMap().count()===0)return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:d(),redoStack:d(),decorator:n||null,selection:s.createEmpty(r)})},t.create=function(e){var r=e.currentContent,i=e.decorator;return new t(new m(n({},e,{treeMap:_(r,i),directionMap:o.getDirectionMap(r)})))},t.fromJS=function(e){return new t(new m(n({},e,{directionMap:e.directionMap==null?e.directionMap:f(e.directionMap),inlineStyleOverride:e.inlineStyleOverride==null?e.inlineStyleOverride:l(e.inlineStyleOverride),nativelyRenderedContent:e.nativelyRenderedContent==null?e.nativelyRenderedContent:a.fromJS(e.nativelyRenderedContent),redoStack:e.redoStack==null?e.redoStack:d(e.redoStack.map(function(e){return a.fromJS(e)})),selection:e.selection==null?e.selection:new s(e.selection),treeMap:e.treeMap==null?e.treeMap:f(e.treeMap).map(function(e){return p(e).map(function(e){return i.fromJS(e)})}),undoStack:e.undoStack==null?e.undoStack:d(e.undoStack.map(function(e){return a.fromJS(e)})),currentContent:a.fromJS(e.currentContent)})))},t.set=function(e,n){return new t(e.getImmutable().withMutations(function(t){var r=t.get(`decorator`),i=r;n.decorator===null?i=null:n.decorator&&(i=n.decorator);var a=n.currentContent||e.getCurrentContent();if(i!==r){var o=t.get(`treeMap`),s=i&&r?y(a,a.getBlockMap(),o,i,r):_(a,i);t.merge({decorator:i,treeMap:s,nativelyRenderedContent:null});return}a!==e.getCurrentContent()&&t.set(`treeMap`,v(e,a.getBlockMap(),a.getEntityMap(),i)),t.merge(n)}))};var e=t.prototype;e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get(`allowUndo`)},e.getCurrentContent=function(){return this.getImmutable().get(`currentContent`)},e.getUndoStack=function(){return this.getImmutable().get(`undoStack`)},e.getRedoStack=function(){return this.getImmutable().get(`redoStack`)},e.getSelection=function(){return this.getImmutable().get(`selection`)},e.getDecorator=function(){return this.getImmutable().get(`decorator`)},e.isInCompositionMode=function(){return this.getImmutable().get(`inCompositionMode`)},e.mustForceSelection=function(){return this.getImmutable().get(`forceSelection`)},e.getNativelyRenderedContent=function(){return this.getImmutable().get(`nativelyRenderedContent`)},e.getLastChangeType=function(){return this.getImmutable().get(`lastChangeType`)},e.getInlineStyleOverride=function(){return this.getImmutable().get(`inlineStyleOverride`)},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(e!=null)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?x(t,n):S(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn([`treeMap`,e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get(`directionMap`)},t.acceptSelection=function(e,t){return g(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set(`hasFocus`,!0)),g(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return t.acceptSelection(e,new s({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(e.getCurrentContent()===n)return e;var a=o.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:r,selection:n.get
2723SelectionAfter(),forceSelection:i,inlineStyleOverride:null});var s=e.getSelection(),c=e.getCurrentContent(),l=e.getUndoStack(),u=n;s!==c.getSelectionAfter()||b(e,r)?(l=l.push(c),u=u.set(`selectionBefore`,s)):(r===`insert-characters`||r===`backspace-character`||r===`delete-character`)&&(u=u.set(`selectionBefore`,c.getSelectionBefore()));var f=e.getInlineStyleOverride();[`adjust-depth`,`change-block-type`,`split-block`].indexOf(r)===-1&&(f=null);var p={currentContent:u,directionMap:a,undoStack:l,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:f};return t.set(e,p)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),a=o.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:`undo`,nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),a=o.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:e.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:`redo`,nativelyRenderedContent:null,selection:r.getSelectionAfter()})};function t(e){r(this,`_immutable`,void 0),this._immutable=e}return e.getImmutable=function(){return this._immutable},t}();function g(e,t,n){return h.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function _(e,t){return e.getBlockMap().map(function(n){return i.generate(e,n,t)}).toOrderedMap()}function v(e,t,n,r){var a=e.getCurrentContent().set(`entityMap`,n),o=a.getBlockMap();return e.getImmutable().get(`treeMap`).merge(t.toSeq().filter(function(e,t){return e!==o.get(t)}).map(function(e){return i.generate(a,e,r)}))}function y(e,t,n,r,a){return n.merge(t.toSeq().filter(function(t){return r.getDecorations(t,e)!==a.getDecorations(t,e)}).map(function(t){return i.generate(e,t,r)}))}function b(e,t){return t!==e.getLastChangeType()||t!==`insert-characters`&&t!==`backspace-character`&&t!==`delete-character`}function x(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r>0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):C(e,n)}function S(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r<i.getLength()?i.getInlineStyleAt(r):r>0?i.getInlineStyleAt(r-1):C(e,n)}function C(e,t){var n=e.getBlockMap().reverse().skipUntil(function(e,n){return n===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}t.exports=h})),tI=i(((e,t)=>{var n=bF(),r=IF(),i=hF(),a=TF(),o=i.OrderedMap,s=i.List,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},l=function(e,t,n,r,i){if(!i)return e;var a=r===`after`,o=t.getKey(),l=n.getKey(),u=t.getParentKey(),d=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),p=n.getParentKey(),m=a?n.getNextSiblingKey():l,h=a?l:n.getPrevSiblingKey();return e.withMutations(function(e){c(u,e,function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(o))})}),c(f,e,function(e){return e.merge({nextSibling:d})}),c(d,e,function(e){return e.merge({prevSibling:f})}),c(m,e,function(e){return e.merge({prevSibling:o})}),c(h,e,function(e){return e.merge({nextSibling:o})}),c(p,e,function(e){var t=e.getChildKeys(),n=t.indexOf(l),r=a?n+1:n===0?0:n-1,i=t.toArray();return i.splice(r,0,o),e.merge({children:s(i)})}),c(o,e,function(e){return e.merge({nextSibling:m,prevSibling:h,parent:p})})})};t.exports=function(e,t,i,s){s===`replace`&&a(!1);var c=i.getKey(),u=t.getKey();u===c&&a(!1);var d=e.getBlockMap(),f=t instanceof n,p=[t],m=d.delete(u);f&&(p=[],m=d.withMutations(function(e){var n=t.getNextSiblingKey(),i=r(t,e);e.toSeq().skipUntil(function(e){return e.getKey()===u}).takeWhile(function(e){var t=e.getKey(),r=t===u,a=n&&t!==n,o=!n&&e.getParentKey()&&(!i||t!==i);return!!(r||a||o)}
2723).forEach(function(t){p.push(t),e.delete(t.getKey())})}));var h=m.toSeq().takeUntil(function(e){return e===i}),g=m.toSeq().skipUntil(function(e){return e===i}).skip(1),_=p.map(function(e){return[e.getKey(),e]}),v=o();if(s===`before`){var y=e.getBlockBefore(c);!(!y||y.getKey()!==t.getKey())&&a(!1),v=h.concat([].concat(_,[[c,i]]),g).toOrderedMap()}else if(s===`after`){var b=e.getBlockAfter(c);!(!b||b.getKey()!==u)&&a(!1),v=h.concat([[c,i]].concat(_),g).toOrderedMap()}return e.merge({blockMap:l(v,t,i,s,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})}})),nI=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=gF(),a=_F(),o=yF(),s=bF(),c=zF(),l=eI(),u=OF(),d=KF(),f=hF(),p=tI(),m=d(`draft_tree_data_support`),h=m?s:o,g=f.List,_=f.Repeat;t.exports={insertAtomicBlock:function(e,t,r){var o=e.getCurrentContent(),s=e.getSelection(),d=c.removeRange(o,s,`backward`),f=d.getSelectionAfter(),p=c.splitBlock(d,f),v=p.getSelectionAfter(),y=c.setBlockType(p,v,`atomic`),b=a.create({entity:t}),x={key:u(),type:`atomic`,text:r,characterList:g(_(b,r.length))},S={key:u(),type:`unstyled`};m&&(x=n({},x,{nextSibling:S.key}),S=n({},S,{prevSibling:x.key}));var C=[new h(x),new h(S)],w=i.createFromArray(C),T=c.replaceWithFragment(y,v,w),E=T.merge({selectionBefore:s,selectionAfter:T.getSelectionAfter().set(`hasFocus`,!0)});return l.push(e,E,`insert-fragment`)},moveAtomicBlock:function(e,t,n,r){var i=e.getCurrentContent(),a=e.getSelection(),o;if(r===`before`||r===`after`)o=p(i,t,i.getBlockForKey(r===`before`?n.getStartKey():n.getEndKey()),r);else{var s=c.removeRange(i,n,`backward`),u=s.getSelectionAfter(),d=s.getBlockForKey(u.getFocusKey());if(u.getStartOffset()===0)o=p(s,t,d,`before`);else if(u.getEndOffset()===d.getLength())o=p(s,t,d,`after`);else{var f=c.splitBlock(s,u),m=f.getSelectionAfter();o=p(f,t,f.getBlockForKey(m.getFocusKey()),`before`)}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set(`hasFocus`,!0)});return l.push(e,h,`move-block`)}}})),rI=i(((e,t)=>{function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=hF().List,i=`.`,a=function(){function e(e){n(this,`_decorators`,void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach(function(r,a){var c=0,l=r.strategy;l(e,function(e,t){o(n,e,t)&&(s(n,e,t,a+i+c),c++)},t)}),r(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(i)[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(i)[0],10);return this._decorators[t].props},e}();function o(e,t,n){for(var r=t;r<n;r++)if(e[r]!=null)return!1;return!0}function s(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.exports=a})),iI=i(((e,t)=>{function n(e){return typeof e==`object`?Object.keys(e).filter(function(t){return e[t]}).map(r).join(` `):Array.prototype.map.call(arguments,r).join(` `)}function r(e){return e.replace(/\//g,`-`)}t.exports=n})),aI=i(((e,n)=>{var r=t(),i=iI(),a=hF().Map,o=r.createElement(`ul`,{className:i(`public/DraftStyleDefault/ul`)}),s=r.createElement(`ol`,{className:i(`public/DraftStyleDefault/ol`)}),c=r.createElement(`pre`,{className:i(`public/DraftStyleDefault/pre`)});n.exports=a({"header-one":{element:`h1`},"header-two":{element:`h2`},"header-three":{element:`h3`},"header-four":{element:`h4`},"header-five":{element:`h5`},"header-six":{element:`h6`},section:{element:`section`},article:{element:`article`},"unordered-list-item":{element:`li`,wrapper:o},"ordered-list-item":{element:`li`,wrapper:s},blockquote:{element:`blockquote`},atomic:{element:`figure`},"code-block":{element:`pre`,wrapper:c},unstyled:{element:`div`,aliasedElements:[`p`]}})})),oI=i(((e,t)=>{t.exports={BOLD:{fontWeight:`bold`},CODE:{fontFamily:`monospace`,wordWrap:`break-word`},ITALIC:{fontStyle:`italic`},STRIKETHROUGH:{textDecoration:`line-through`},UNDERLINE:{textDecoration:`underline`}}})),sI=i(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);
2723if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),cI=i(((e,t)=>{(function(n,r){var i=`0.7.41`,a=``,o=`?`,s=`function`,c=`undefined`,l=`object`,u=`string`,d=`major`,f=`model`,p=`name`,m=`type`,h=`vendor`,g=`version`,_=`architecture`,v=`console`,y=`mobile`,b=`tablet`,x=`smarttv`,S=`wearable`,C=`embedded`,w=500,T=`Amazon`,E=`Apple`,D=`ASUS`,O=`BlackBerry`,k=`Browser`,A=`Chrome`,j=`Edge`,M=`Firefox`,N=`Google`,P=`Honor`,F=`Huawei`,I=`Lenovo`,ee=`LG`,L=`Microsoft`,R=`Motorola`,z=`Nvidia`,te=`OnePlus`,ne=`Opera`,re=`OPPO`,ie=`Samsung`,ae=`Sharp`,oe=`Sony`,se=`Xiaomi`,ce=`Zebra`,le=`Facebook`,B=`Chromium OS`,ue=`Mac OS`,de=` Browser`,fe=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},pe=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},me=function(e,t){return typeof e===u?he(t).indexOf(he(e))!==-1:!1},he=function(e){return e.toLowerCase()},ge=function(e){return typeof e===u?e.replace(/[^\d\.]/g,a).split(`.`)[0]:r},_e=function(e,t){if(typeof e===u)return e=e.replace(/^\s\s*/,a),typeof t===c?e:e.substring(0,w)},ve=function(e,t){for(var n=0,i,a,o,c,u,d;n<t.length&&!u;){var f=t[n],p=t[n+1];for(i=a=0;i<f.length&&!u&&f[i];)if(u=f[i++].exec(e),u)for(o=0;o<p.length;o++)d=u[++a],c=p[o],typeof c===l&&c.length>0?c.length===2?typeof c[1]==s?this[c[0]]=c[1].call(this,d):this[c[0]]=c[1]:c.length===3?typeof c[1]===s&&!(c[1].exec&&c[1].test)?this[c[0]]=d?c[1].call(this,d,c[2]):r:this[c[0]]=d?d.replace(c[1],c[2]):r:c.length===4&&(this[c[0]]=d?c[3].call(this,d.replace(c[1],c[2])):r):this[c]=d||r;n+=2}},ye=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(me(t[n][i],e))return n===o?r:n}else if(me(t[n],e))return n===o?r:n;return t.hasOwnProperty(`*`)?t[`*`]:e},be={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},xe={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},Se={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[p,`Chrome`]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[p,`Edge`]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,g],[/opios[\/ ]+([\w\.]+)/i],[g,[p,ne+` Mini`]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[p,ne+` GX`]],[/\bopr\/([\w\.]+)/i],[g,[p,ne]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[p,`Baidu`]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[p,`Maxthon`]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[p,`Quark`]],[/\bddg\/([\w\.]+)/i],[g,[p,`DuckDuckGo`]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[p,`UC`+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[p,`WeChat`]],[/konqueror\/([\w\.]+)/i],[g,[p,`Konqueror`]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[p,`IE`]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[p,`Yandex`]],[/slbrowser\/([\w\.]+)/i],[g,[p,`Smart Lenovo `+k]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,`$1 Secure `+k],g],[/\bfocus\/([\w\.]+)/i],[g,[p,M+` Focus`]],[/\bopt\/([\w\.]+)/i],[g,[p,ne+` Touch`]],[/coc_coc\w+\/([\w\.]+)/i],[g,[p,`Coc Coc`]],[/dolfin\/([\w\.]+)/i],[g,[p,`Dolphin`]],[/coast\/([\w\.]+)/i],[g,[p,ne+` Coast`]],[/miuibrowser\/([\w\.]+)/i],[g,[p,`MIUI`+de]],[/fxios\/([\w\.-]+)/i],[g,[p,M]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[p,`360`]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,`$1Browser`],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,`$1`+de],g],[/samsungbrowser\/([\w\.]+)/i],[g,[p,ie+` Internet`]],[/metasr[\/ ]?([\d\.]+)/i],[g,[p,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,`Sogou Mobile`],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[p,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,le],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[p,`GSA`]],[/musical_ly(?:.
2723+app_?version\/|_)([\w\.]+)/i],[g,[p,`TikTok`]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[p,A+` Headless`]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,A+` WebView`],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[p,`Android `+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[p,`Mobile Safari`]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[g,ye,be]],[/(webkit|khtml)\/([\w\.]+)/i],[p,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,`Netscape`],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[p,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[p,M+` Reality`]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[p,[g,/_/g,`.`]],[/(cobalt)\/([\w\.]+)/i],[p,[g,/master.|lts./,``]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[_,`amd64`]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[_,`ia32`]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[_,`arm64`]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[_,`armhf`]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[_,`arm`]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[_,/ower/,a,he]],[/ sun4\w[;\)]/i],[[_,`sparc`]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[_,he]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[h,ie],[m,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,ie],[m,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[f,[h,E],[m,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,E],[m,b]],[/(macintosh);/i],[f,[h,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,ae],[m,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[f,[h,P],[m,b]],[/honor([-\w ]+)[;\)]/i],[f,[h,P],[m,y]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[f,[h,F],[m,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,F],[m,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[f,/_/g,` `],[h,se],[m,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[f,/_/g,` `],[h,se],[m,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,re],[m,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[f,[h,ye,{OnePlus:[`304`,`403`,`203`],"*":re}],[m,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,`Vivo`],[m,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[f,[h,`Realme`],[m,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[h,R],[m,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,R],[m,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,ee],[m,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,ee],[m,y]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
2723(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[f,[h,I],[m,b]],[/(nokia) (t[12][01])/i],[h,f,[m,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[f,/_/g,` `],[m,y],[h,`Nokia`]],[/(pixel (c|tablet))\b/i],[f,[h,N],[m,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,N],[m,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[h,oe],[m,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,`Xperia Tablet`],[h,oe],[m,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,te],[m,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,T],[m,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,`Fire Phone $1`],[h,T],[m,y]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[m,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,O],[m,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,D],[m,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,D],[m,y]],[/(nexus 9)/i],[f,[h,`HTC`],[m,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g,` `],[m,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[f,[h,`TCL`],[m,b]],[/(itel) ((\w+))/i],[[h,he],f,[m,ye,{tablet:[`p10001l`,`w7001`],"*":`mobile`}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,`Acer`],[m,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,`Meizu`],[m,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[f,[h,`Ulefone`],[m,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[f,[h,`Energizer`],[m,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[f,[h,`Cat`],[m,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[f,[h,`Smartfren`],[m,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[f,[h,`Nothing`],[m,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[f,[h,`Archos`],[m,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[f,[h,`Archos`],[m,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,f,[m,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[m,y]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,f,[m,b]],[/(surface duo)/i],[f,[h,L],[m,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,`Fairphone`],[m,y]],[/(u304aa)/i],[f,[h,`AT&T`],[m,y]],[/\bsie-(\w*)/i],[f,[h,`Siemens`],[m,y]],[/\b(rct\w+) b/i],[f,[h,`RCA`],[m,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,`Dell`],[m,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,`Verizon`],[m,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,`Barnes & Noble`],[m,b]],[/\b(tm\d{3}\w+) b/i],[f,[h,`NuVision`],[m,b]],[/\b(k88) b/i],[f,[h,`ZTE`],[m,b]],[/\b(nx\d{3}j) b/i],[f,[h,`ZTE`],[m,y]],[/\b(gen\d{3}) b.+49h/i],[f,[h,`Swiss`],[m,y]],[/\b(zur\d{3}) b/i],[f,[h,`Swiss`],[m,b]],[/\b((zeki)?tb.*\b) b/i],[f,[h,`Zeki`],[m,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,`Dragon Touch`],f,[m,b]],[/\b(ns-?\w{0,9}) b/i],[f,[h,`Insignia`],[m,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,`NextBook`],[m,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,`Voice`],f,[m,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,`LvTel`],f,[m,y]],[/\b(ph-1) /i],[f,[h,`Essential`],[m,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,`Envizen`],[m,b]],[/\b(trio[-\w\. ]+) b/i],[f,[h,`MachSpeed`],[m,b]],[/\btu_(1491) b/i],[f,[h,`Rotor`],[m,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[f,[h,z],[m,b]],[/(sprint) (\w+)/i],[h,f,[m,y]],[/(kin\.[onetw]{3})/i],[[f,/\./g,` `],[h,L],[m,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,ce],[m,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,ce],[m,y]],[/smart-tv.+(samsung)/i],[h,[m,x]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,`SmartTV`],[h,ie],[m,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,ee],[m,x]],[/(apple) ?tv/i],[h,[f,E+` TV`],[m,x]],[/crkey/i],[[f,A+`cast`],[h,N],[m,x]],[/droid.+aft(\w+)( bui|\))/i],[f,[h,T],[m,x]],[/(shield \w+ tv)/i],[f,[h,z],[m,x]],[/\(dtv[\);
vendor: 5,683 bytes, line 2723
2723].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,ae],[m,x]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,oe],[m,x]],[/(mi(tv|box)-?\w+) bui/i],[f,[h,se],[m,x]],[/Hbbtv.*(technisat) (.*);/i],[h,f,[m,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,_e],[f,_e],[m,x]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[f,[m,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[m,v]],[/droid.+; (shield)( bui|\))/i],[f,[h,z],[m,v]],[/(playstation \w+)/i],[f,[h,oe],[m,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,L],[m,v]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[f,[h,ie],[m,S]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,f,[m,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[f,[h,re],[m,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[f,[h,E],[m,S]],[/(opwwe\d{3})/i],[f,[h,te],[m,S]],[/(moto 360)/i],[f,[h,R],[m,S]],[/(smartwatch 3)/i],[f,[h,oe],[m,S]],[/(g watch r)/i],[f,[h,ee],[m,S]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,ce],[m,S]],[/droid.+; (glass) \d/i],[f,[h,N],[m,S]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,f,[m,S]],[/; (quest( \d| pro)?)/i],[f,[h,le],[m,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[m,C]],[/(aeobc)\b/i],[f,[h,T],[m,C]],[/(homepod).+mac os/i],[f,[h,E],[m,C]],[/windows iot/i],[[m,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[f,[m,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[m,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[f,[h,`Generic`]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[p,j+`HTML`]],[/(arkweb)\/([\w\.]+)/i],[p,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[p,`Blink`]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,g],[/ladybird\//i],[[p,`LibWeb`]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[p,[g,ye,xe]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,ye,xe],[p,`Windows`]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,`.`],[p,`iOS`]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,ue],[g,/_/g,`.`]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,p],[/(ubuntu) ([\w\.]+) like android/i],[[p,/(.+)/,`$1 Touch`],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[p,g],[/\(bb(10);/i],[g,[p,O]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[g,[p,`Symbian`]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[p,M+` OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[p,`webOS`]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[p,`watchOS`]],[/crkey\/([\d\.]+)/i],[g,[p,A+`cast`]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,B],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,g],[/(sunos) ?([\w\.\d]*)/i],[[p,`Solaris`],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,g]]},Ce=function(e,t){if(typeof e===l&&(t=e,e=r),!(this instanceof Ce))return new Ce(e,t).getResult();var i=typeof n!==c&&n.navigator?n.navigator:r,o=e||(i&&i.userAgent?i.userAgent:a),v=i&&i.userAgentData?i.userAgentData:r,x=t?fe(Se,t):Se,S=i&&i.userAgent==o;return this.getBrowser=function(){var e={};return e[p]=r,e[g]=r,ve.call(e,o,x.browser),e[d]=ge(e[g]),S&&i&&i.brave&&typeof i.brave.isBrave==s&&(e[p]=`Brave`),e},this.getCPU=function(){var e={};return e[_]=r,ve.call(e,o,x.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[f]=r,e[m]=r,ve.call(e,o,x.device),S&&!e[m]&&v&&v.mobile&&(e[m]=y),S&&e[f]==`Macintosh`&&i&&typeof i.standalone!==c&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[f]=`iPad`,e[m]=b),e},this.getEngine=function(){var e={};return e[p]=r,e[g]=r,ve.call(e,o,x.engine),e},this.getOS=function(){var e={};return e[p]=r,e[g]=r,ve.call(e,o,x.os),S&&!e[p]&&v&&v.platform&&v.platform!=`Unknown`&&(e[p]=v.platform.replace(/chrome os/i,B).replace(/macos/i,ue)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===u&&e.length>w?_e(e,w):e,this},this.setUA(o),this};Ce.VERSION=i,Ce.BROWSER=pe([p,g,d]),Ce.CPU=pe([_]),Ce.DEVICE=pe([f,h,m,v,y,x,b,S,C]),Ce.ENGINE=Ce.OS=pe([p,g]),typeof e===c?typeof define===s&&define.amd?define(function(){return Ce}
2723):typeof n!==c&&(n.UAParser=Ce):(typeof t!==c&&t.exports&&(e=t.exports=Ce),e.UAParser=Ce);var V=typeof n!==c&&(n.jQuery||n.Zepto);if(V&&!V.ua){var we=new Ce;V.ua=we.getResult(),V.ua.get=function(){return we.getUA()},V.ua.set=function(e){we.setUA(e);var t=we.getResult();for(var n in t)V.ua[n]=t[n]}}})(typeof window==`object`?window:e)})),lI=i(((e,t)=>{var n=cI(),r=`Unknown`,i={"Mac OS":`Mac OS X`};function a(e){return i[e]||e}function o(e){if(!e)return{major:``,minor:``};var t=e.split(`.`);return{major:t[0],minor:t[1]}}var s=new n().getResult(),c=o(s.browser.version);t.exports={browserArchitecture:s.cpu.architecture||r,browserFullVersion:s.browser.version||r,browserMinorVersion:c.minor||r,browserName:s.browser.name||r,browserVersion:s.browser.major||r,deviceName:s.device.model||r,engineName:s.engine.name||r,engineVersion:s.engine.version||r,platformArchitecture:s.cpu.architecture||r,platformName:a(s.os.name)||r,platformVersion:s.os.version||r,platformFullVersion:s.os.version||r}})),uI=i(((e,t)=>{var n=TF(),r=/\./,i=/\|\|/,a=/\s+\-\s+/,o=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function c(e,t){var n=e.split(i);return n.length>1?n.some(function(e){return T.contains(e,t)}):(e=n[0].trim(),l(e,t))}function l(e,t){var r=e.split(a);if(!(r.length>0&&r.length<=2)&&n(!1),r.length===1)return u(r[0],t);var i=r[0],o=r[1];return!(y(i)&&y(o))&&n(!1),u(`>=`+i,t)&&u(`<=`+o,t)}function u(e,t){if(e=e.trim(),e===``)return!0;var n=t.split(r),i=_(e),a=i.modifier,o=i.rangeComponents;switch(a){case`<`:return d(n,o);case`<=`:return f(n,o);case`>=`:return m(n,o);case`>`:return h(n,o);case`~`:case`~>`:return g(n,o);default:return p(n,o)}}function d(e,t){return w(e,t)===-1}function f(e,t){var n=w(e,t);return n===-1||n===0}function p(e,t){return w(e,t)===0}function m(e,t){var n=w(e,t);return n===1||n===0}function h(e,t){return w(e,t)===1}function g(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,a=parseInt(r[i],10);return v(a)&&(r[i]=a+1+``),m(e,n)&&d(e,r)}function _(e){var t=e.split(r),i=t[0].match(o);return!i&&n(!1),{modifier:i[1],rangeComponents:[i[2]].concat(t.slice(1))}}function v(e){return!isNaN(e)&&isFinite(e)}function y(e){return!_(e).modifier}function b(e,t){for(var n=e.length;n<t;n++)e[n]=`0`}function x(e,t){e=e.slice(),t=t.slice(),b(e,t.length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]=`0`,r[0]===`*`&&n===t.length-1))for(var i=n;i<e.length;i++)e[i]=`0`}return b(t,e.length),[e,t]}function S(e,t){var n=e.match(s)[1],r=t.match(s)[1],i=parseInt(n,10),a=parseInt(r,10);return v(i)&&v(a)&&i!==a?C(i,a):C(e,t)}function C(e,t){return typeof e!=typeof t&&n(!1),e>t?1:e<t?-1:0}function w(e,t){for(var n=x(e,t),r=n[0],i=n[1],a=0;a<i.length;a++){var o=S(r[a],i[a]);if(o)return o}return 0}var T={contains:function(e,t){return c(e.trim(),t.trim())}};t.exports=T})),dI=i(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t,r){if(!e)return null;var i={};for(var a in e)n.call(e,a)&&(i[a]=t.call(r,e[a],a,e));return i}t.exports=r})),fI=i(((e,t)=>{function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=n})),pI=i(((e,t)=>{var n=lI(),r=uI(),i=dI(),a=fI();function o(e,t,n,i){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return t?(a=i?i(a):a,r.contains(a,t)):!1}function s(e){return n.platformName===`Windows`?e.replace(/^\s*NT/,``):e}t.exports=i({isBrowser:function(e){return o(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return o(n.browserArchitecture,null,e)},isDevice:function(e){return o(n.deviceName,null,e)},isEngine:function(e){return o(n.engineName,n.engineVersion,e)},isPlatform:function(e){return o(n.platformName,n.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return o(n.platformArchitecture,null,e)}},a)})),mI=i(((e,t)=>{function n(e){return!e||!e.ownerDocument?document:e.ownerDocument}t.exports=n})),hI=i(((e,t)=>{function n(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}t.exports=n})),gI=i(((e,t)=>{var n=hI();function r(e){if(n(e)){var t=e,i=t.getAttribute(`data-offset-key`);
2723if(i)return i;for(var a=0;a<t.childNodes.length;a++){var o=r(t.childNodes[a]);if(o)return o}}return null}t.exports=r})),_I=i(((e,t)=>{var n=mI(),r=gI();function i(e){for(var t=e;t&&t!==n(e).documentElement;){var i=r(t);if(i!=null)return i;t=t.parentNode}return null}t.exports=i})),vI=i(((e,t)=>{function n(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}t.exports=n})),yI=i(((e,t)=>{function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=pI(),i=_I(),a=vI(),o=hF(),s=TF(),c=QF(),l=o.Map,u={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},d=r.isBrowser(`IE <= 11`);t.exports=function(){function e(e){var t=this;n(this,`observer`,void 0),n(this,`container`,void 0),n(this,`mutations`,void 0),n(this,`onCharData`,void 0),this.container=e,this.mutations=l();var r=a(e);r.MutationObserver&&!d?this.observer=new r.MutationObserver(function(e){return t.registerMutations(e)}):this.onCharData=function(e){!(e.target instanceof Node)&&s(!1),t.registerMutation({type:`characterData`,target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,u):this.container.addEventListener(`DOMCharacterDataModified`,this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener(`DOMCharacterDataModified`,this.onCharData);var t=this.mutations;return this.mutations=l(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if(t===`characterData`){if(n.textContent!==``)return d?n.textContent.replace(`
2724`,``):n.textContent}else if(t===`childList`){if(r&&r.length)return``;if(n.textContent!==``)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(t!=null){var n=c(i(e.target));this.mutations=this.mutations.set(n,t)}},e}()})),bI=i(((e,t)=>{var n=`-`;t.exports={encode:function(e,t,r){return e+n+t+n+r},decode:function(e){var t=e.split(n).reverse(),r=t[0],i=t[1];return{blockKey:t.slice(2).reverse().join(n),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}}})),xI=i(((e,t)=>{t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}})),SI=i(((e,t)=>{t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}})),CI=i(((e,t)=>{function n(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}t.exports=n})),wI=i(((e,t)=>{var n=TF(),r=CI();function i(e){var t=e.editorContainer;return!t&&n(!1),!r(t.firstChild)&&n(!1),t.firstChild}t.exports=i})),TI=i(((e,t)=>{var n=bI(),r=QF();function i(e,t,i,a,o){var s=r(e.getSelection());if(!t||!a)return s;var c=n.decode(t),l=c.blockKey,u=e.getBlockTree(l),d=u&&u.getIn([c.decoratorKey,`leaves`,c.leafKey]),f=n.decode(a),p=f.blockKey,m=e.getBlockTree(p),h=m&&m.getIn([f.decoratorKey,`leaves`,f.leafKey]);if(!d||!h)return s;var g=d.get(`start`),_=h.get(`start`),v=d?g+i:null,y=h?_+o:null;if(s.getAnchorKey()===l&&s.getAnchorOffset()===v&&s.getFocusKey()===p&&s.getFocusOffset()===y)return s;var b=!1;if(l===p){var x=d.get(`end`),S=h.get(`end`);b=_===g&&S===x?o<i:_<g}else b=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(e){return e===l||e===p}).first()===p;return s.merge({anchorKey:l,anchorOffset:v,focusKey:p,focusOffset:y,isBackward:b})}t.exports=i})),EI=i(((e,t)=>{var n=_I(),r=gI(),i=TI(),a=TF(),o=hI(),s=QF();function c(e,t,r,a,o,c){var l=r.nodeType===Node.TEXT_NODE,u=o.nodeType===Node.TEXT_NODE;if(l&&u)return{selectionState:i(e,s(n(r)),a,s(n(o)),c),needsRecovery:!1};var f=null,p=null,m=!0;return l?(f={key:s(n(r)),offset:a},p=d(t,o,c)):u?(p={key:s(n(o)),offset:c},f=d(t,r,a)):(f=d(t,r,a),p=d(t,o,c),r===o&&a===c&&(m=!!r.firstChild&&r.f
2724irstChild.nodeName!==`BR`)),{selectionState:i(e,f.key,f.offset,p.key,p.offset),needsRecovery:m}}function l(e){for(;e.firstChild&&(o(e.firstChild)&&e.firstChild.getAttribute(`data-blocks`)===`true`||r(e.firstChild));)e=e.firstChild;return e}function u(e){for(;e.lastChild&&(o(e.lastChild)&&e.lastChild.getAttribute(`data-blocks`)===`true`||r(e.lastChild));)e=e.lastChild;return e}function d(e,t,i){var c=t,d=n(c);if(!(d!=null||e&&(e===c||e.firstChild===c))&&a(!1),e===c&&(c=c.firstChild,!o(c)&&a(!1),c=c,c.getAttribute(`data-contents`)!==`true`&&a(!1),i>0&&(i=c.childNodes.length)),i===0){var p=null;return p=d??s(r(l(c))),{key:p,offset:0}}var m=c.childNodes[i-1],h=null,g=null;if(!r(m))h=s(d),g=f(m);else{var _=u(m);h=s(r(_)),g=f(_)}return{key:h,offset:g}}function f(e){var t=e.textContent;return t===`
2725`?0:t.length}t.exports=c})),DI=i(((e,t)=>{var n=EI();function r(e,t){var r=t.ownerDocument.defaultView.getSelection(),i=r.anchorNode,a=r.anchorOffset,o=r.focusNode,s=r.focusOffset;return r.rangeCount===0||i==null||o==null?{selectionState:e.getSelection().set(`hasFocus`,!1),needsRecovery:!1}:n(e,t,i,a,o,s)}t.exports=r})),OI=i(((e,t)=>{var n=SI(),r=eI(),i=wI(),a=DI();function o(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:`N/A`,extraParams:JSON.stringify({stacktrace:Error().stack}),selectionState:JSON.stringify(t.toJS())})}return}var o=e.props.editorState,s=a(o,i(e)),c=s.selectionState;c!==o.getSelection()&&(o=s.needsRecovery?r.forceSelection(o,c):r.acceptSelection(o,c),e.update(o))}t.exports=o})),kI=i(((e,t)=>{function n(e){return e!=null&&e!=``}t.exports={notEmptyKey:n}})),AI=i(((e,t)=>{var n=kI().notEmptyKey;function r(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(r).getEntityAt(a-1),n===e.getBlockForKey(r).getEntityAt(a)?i(e.getEntityMap(),n):null):null}var o=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(o);return n=s===c.getLength()?null:c.getEntityAt(s),i(e.getEntityMap(),n)}function i(e,t){return n(t)&&e.__get(t).getMutability()===`MUTABLE`?t:null}t.exports=r})),jI=i(((e,t)=>{var n=yI(),r=zF(),i=bI(),a=eI(),o=xI(),s=pI(),c=OI(),l=wI(),u=DI(),d=AI(),f=QF(),p=s.isBrowser(`IE`),m=20,h=!1,g=!1,_=null;function v(e){_||(_=new n(l(e)),_.start())}var y={onCompositionStart:function(e){g=!0,v(e)},onCompositionEnd:function(e){h=!1,g=!1,setTimeout(function(){h||y.resolveComposition(e)},m)},onSelect:c,onKeyDown:function(e,t){if(!g){y.resolveComposition(e),e._onKeyDown(t);return}(t.which===o.RIGHT||t.which===o.LEFT)&&t.preventDefault()},onKeyPress:function(e,t){t.which===o.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!g){var t=f(_).stopAndFlushMutations();_=null,h=!0;var n=a.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),!t.size){e.update(n);return}var o=n.getCurrentContent();t.forEach(function(e,t){var s=i.decode(t),c=s.blockKey,l=s.decoratorKey,u=s.leafKey,f=n.getBlockTree(c).getIn([l,`leaves`,u]),p=f.start,m=f.end,h=n.getSelection().merge({anchorKey:c,focusKey:c,anchorOffset:p,focusOffset:m,isBackward:!1}),g=d(o,h),_=o.getBlockForKey(c).getInlineStyleAt(p);o=r.replaceText(o,h,e,_,g),n=a.set(n,{currentContent:o})});var s=u(n,l(e)).selectionState;e.restoreEditorDOM();var c=p?a.forceSelection(n,s):a.acceptSelection(n,s);e.update(a.push(c,o,`insert-characters`))}}};t.exports=y})),MI=i(((e,n)=>{var r=sI();function i(){return i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o=bI(),s=t(),c=XF(),l=YF();n.exports=function(e){a(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,a=e.decorator,u=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,m=t.getKey(),h=f.get(`leaves`),g=a.getComponentForKey(u),_=a.getPropsForKey(u),v=o.encode(m,parseInt(u,10),0),y=p.slice(h.first().get(`start`),h.last().get(`end`)),b=l.getHTMLDirIfDifferent(c.getDirection(y),d);return s.createElement(g,i({},_,{contentState:r,decoratedText:y,dir:b,key:v,entityKey:t.getEntityAt(f.get(`start`)),offsetKey:v}),n)},t}(s.Component)})),NI=i(((e,n)=>{function r(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=t(),s=pI(),c=TF(),l=hI(),u=s.isBrowser(`IE <= 11`);function d(e){return u?e.textContent===`
2726`:e.tagName===`BR`}var f=function(e){return u?o.createElement(`span`,{key:`A`,"data-text":`true`,ref:e},`
2727`):o.createElement(`br`,{key:`A`,"data-text":`true`,ref:e})},p=function(e){return u?o.createElement(`span`,{key:`B`,"data-text":`true`,ref:e},`
2728`):o.createElement(`br`,{key:`B`,"data-text":`true`,ref:e})};n.exports=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return a(r(n),`_forceFlag`,void 0),a(r(n),`_node`,void 0),n._forceFlag=!1,n}var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this._node,n=e.children===``;!l(t)&&c(!1);var r=t;return n?!d(r):r.textContent!==e.children},n.componentDidMount=function(){this._forceFlag=!this._forceFlag},n.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},n.render=function(){var e=this;return this.props.children===``?this._forceFlag?f(function(t){return e._node=t}):p(function(t){return e._node=t}):o.createElement(`span`,{key:this._forceFlag?`A`:`B`,"data-text":`true`,ref:function(t){return e._node=t}},this.props.children)},t}(o.Component)})),PI=i(((e,t)=>{var n=hI();function r(e){return!e||!e.ownerDocument?!1:n(e)&&e.nodeName===`BR`}t.exports=r})),FI=i(((e,t)=>{t.exports={initODS:function(){},handleExtensionCausedError:function(){}}})),II=i(((e,t)=>{function n(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!!(e&&(typeof t.Node==`function`?e instanceof t.Node:typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.nodeName==`string`))}t.exports=n})),LI=i(((e,t)=>{var n=II();function r(e){return n(e)&&e.nodeType==3}t.exports=r})),RI=i(((e,t)=>{var n=LI();
2728function r(e,t){return!e||!t?!1:e===t?!0:n(e)?!1:n(t)?r(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}t.exports=r})),zI=i(((e,t)=>{function n(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}t.exports=n})),BI=i(((e,t)=>{var n=FI(),r=SI(),i=pI(),a=RI(),o=zI(),s=mI(),c=TF(),l=hI(),u=i.isBrowser(`IE`);function d(e,t){if(!e)return`[empty]`;var n=f(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(!l(n)&&c(!1),n.outerHTML)}function f(e,t){var n=t===void 0?[]:t(e);if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return s(e).createTextNode(`[text `+r+(n.length?` | `+n.join(`, `):``)+`]`)}var i=e.cloneNode();i.nodeType===1&&n.length&&i.setAttribute(`data-labels`,n.join(`, `));for(var a=e.childNodes,o=0;o<a.length;o++)i.appendChild(f(a[o],t));return i}function p(e,t){for(var n=e,r=n;n;)if(l(n)&&r.hasAttribute(`contenteditable`))return d(n,t);else n=n.parentNode,r=n;return`Could not find contentEditable parent of node`}function m(e){return e.nodeValue===null?e.childNodes.length:e.nodeValue.length}function h(e,t,n,r,i){var o=s(t);if(a(o.documentElement,t)){var c=o.defaultView.getSelection(),l=e.getAnchorKey(),u=e.getAnchorOffset(),d=e.getFocusKey(),f=e.getFocusOffset(),p=e.getIsBackward();if(!c.extend&&p){var m=l,h=u;l=d,u=f,d=m,f=h,p=!1}var v=l===n&&r<=u&&i>=u,y=d===n&&r<=f&&i>=f;if(v&&y){c.removeAllRanges(),_(c,t,u-r,e),g(c,t,f-r,e);return}if(!p)v&&(c.removeAllRanges(),_(c,t,u-r,e)),y&&g(c,t,f-r,e);else if(y&&(c.removeAllRanges(),_(c,t,f-r,e)),v){var b=c.focusNode,x=c.focusOffset;c.removeAllRanges(),_(c,t,u-r,e),g(c,b,x,e)}}}function g(e,t,n,i){var s=o();if(e.extend&&t!=null&&a(s,t)){n>m(t)&&r.logSelectionStateFailure({anonymizedDom:p(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())});var c=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw r.logSelectionStateFailure({anonymizedDom:p(t,function(t){var n=[];return t===s&&n.push(`active element`),t===e.anchorNode&&n.push(`selection anchor node`),t===e.focusNode&&n.push(`selection focus node`),n}),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:c,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?``+a:null,offset:n},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var l=e.getRangeAt(0);l.setEnd(t,n),e.addRange(l.cloneRange())}}function _(e,t,i,a){var o=s(t).createRange();if(i>m(t)&&(r.logSelectionStateFailure({anonymizedDom:p(t),extraParams:JSON.stringify({offset:i}),selectionState:JSON.stringify(a.toJS())}),n.handleExtensionCausedError()),o.setStart(t,i),u)try{e.addRange(o)}catch{}else e.addRange(o)}t.exports={setDraftEditorSelection:h,addFocusToSelection:g}})),VI=i(((e,n)=>{var r=sI();function i(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=NI(),c=t(),l=TF(),u=PI(),d=BI().setDraftEditorSelection;n.exports=function(e){a(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,o(i(t),`leaf`,void 0),t}var n=t.prototype;return n._setSelection=function(){var e=this.props.selection;if(!(e==null||!e.getHasFocus())){var t=this.props,n=t.block,r=t.start,i=t.text,a=n.getKey(),o=r+i.length;if(e.hasEdgeWithin(a,r,o)){var s=this.leaf;!s&&l(!1);var c=s.firstChild;!c&&l(!1);var f;c.nodeType===Node.TEXT_NODE?f=c:u(c)?f=s:(f=c.firstChild,!f&&l(!1)),d(e,f,a,r,o)}}},n.shouldComponentUpdate=function(e){var t=this.leaf;return!t&&l(!1),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},n.componentDidUpdate=function(){this._setSelection()},n.componentDidMount=function(){this._setSelection()},n.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith(`
2729`)&&this.props.isLast&&(n+=`
2730`);var i=this.props,a=i.customStyleMap,o=i.customStyleFn,l=i.offsetKey,u=i.styleSet,d=u.reduce(function(e,t){var n={},i=a[t];return i!==void 0&&e.textDecoration!==i.textDecoration&&(n.textDecoration=[e.textDecoration,i.textDecoration].join(` `).trim()),r(e,i,n)},{});if(o){var f=o(u,t);d=r(d,f)}return c.createElement(`span`,{"data-offset-key":l,ref:function(t){return e.leaf=t},style:d}
2730,c.createElement(s,null,n))},t}(c.Component)})),HI=i(((e,n)=>{function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=MI(),a=VI(),o=bI(),s=hF(),c=t(),l=iI();s.List,n.exports=function(e){r(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var e=this.props,t=e.block,n=e.contentState,r=e.customStyleFn,s=e.customStyleMap,u=e.decorator,d=e.direction,f=e.forceSelection,p=e.hasSelection,m=e.selection,h=e.tree,g=t.getKey(),_=t.getText(),v=h.size-1,y=this.props.children||h.map(function(e,l){var h=e.get(`decoratorKey`),y=e.get(`leaves`),b=y.size-1,x=y.map(function(e,n){var i=o.encode(g,l,n),u=e.get(`start`),d=e.get(`end`);return c.createElement(a,{key:i,offsetKey:i,block:t,start:u,selection:p?m:null,forceSelection:f,text:_.slice(u,d),styleSet:t.getInlineStyleAt(u),customStyleMap:s,customStyleFn:r,isLast:h===v&&n===b})}).toArray();return!h||!u?x:c.createElement(i,{block:t,children:x,contentState:n,decorator:u,decoratorKey:h,direction:d,leafSet:e,text:_,key:l})}).toArray();return c.createElement(`div`,{"data-offset-key":o.encode(g,0,0),className:l({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":d===`LTR`,"public/DraftStyleDefault/rtl":d===`RTL`})},y)},t}(c.Component)})),UI=i(((e,t)=>{function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}t.exports={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}}})),WI=i(((e,t)=>{var n=/-(.)/g;function r(e){return e.replace(n,function(e,t){return t.toUpperCase()})}t.exports=r})),GI=i(((e,t)=>{var n=/([A-Z])/g;function r(e){return e.replace(n,`-$1`).toLowerCase()}t.exports=r})),KI=i(((e,t)=>{var n=WI(),r=GI();function i(e){return e==null?e:String(e)}function a(e,t){var a;if(window.getComputedStyle&&(a=window.getComputedStyle(e,null),a))return i(a.getPropertyValue(r(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(a=document.defaultView.getComputedStyle(e,null),a)return i(a.getPropertyValue(r(t)));if(t===`display`)return`none`}return e.currentStyle?i(t===`float`?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[n(t)]):i(e.style&&e.style[n(t)])}t.exports=a})),qI=i(((e,t)=>{var n=KI();function r(e,t){var n=i.get(e,t);return n===`auto`||n===`scroll`}var i={get:n,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,`overflow`)||r(e,`overflowY`)||r(e,`overflowX`))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};t.exports=i})),JI=i(((e,t)=>{var n=RI();function r(e){var t=e.ownerDocument.documentElement;if(!(`getBoundingClientRect`in e)||!n(t,e))return{left:0,right:0,top:0,bottom:0};var r=e.getBoundingClientRect();return{left:Math.round(r.left)-t.clientLeft,right:Math.round(r.right)-t.clientLeft,top:Math.round(r.top)-t.clientTop,bottom:Math.round(r.bottom)-t.clientTop}}t.exports=r})),YI=i(((e,t)=>{var n=JI();function r(e){var t=n(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}t.exports=r})),XI=i(((e,t)=>{var n=typeof navigator<`u`&&navigator.userAgent.indexOf(`AppleWebKit`)>-1;function r(e){return e||=document,e.scrollingElement?e.scrollingElement:!n&&e.compatMode===`CSS1Compat`?e.documentElement:e.body}t.exports=r})),ZI=i(((e,t)=>{function n(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=n})),QI=i(((e,t)=>{var n=XI(),r=ZI();function i(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var i=r(e),a=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-a.clientWidth,s=e.scrollHeight-a.clientHeight;return i.x=Math.max(0,Math.min(i.x,o)),i.y=Math.max(0,Math.min(i.y,s)),i}t.exports=i})),$I=i(((e,t)=>{function n(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},t.exports=i})),eL=i(((e,n)=>{var r=sI();function i(){return i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){c(e,t,n[t])})}return e}
2730function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=HI(),u=bI(),d=t(),f=UI(),p=qI(),m=YI(),h=QI(),g=$I(),_=hF(),v=TF(),y=CI(),b=10;_.List;var x=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},S=function(e,t){var n=e.getNextSiblingKey();return n?t.getBlockForKey(n).getType()===e.getType():!1},C=function(e,t,n){var r=[],i=!0,a=!1,o=void 0;try{for(var s=n.reverse()[Symbol.iterator](),c;!(i=(c=s.next()).done);i=!0){var l=c.value;if(l.type!==t)break;r.push(l)}}catch(e){a=!0,o=e}finally{try{!i&&s.return!=null&&s.return()}finally{if(a)throw o}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),p=f[0].key;return n.push(d.cloneElement(e,{key:`${p}-wrap`,"data-offset-key":u.encode(p,0,0)},f)),n},w=function(e,t){var n=t.get(e.getType())||t.get(`unstyled`),r=n.wrapper;return{Element:n.element||t.get(`unstyled`).element,wrapperTemplate:r}},T=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},E=function(e,t,n,r,i,a){var o={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=r(e);return c&&(o.className=c),i.customEditable!==void 0&&(o=s({},o,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),o};n.exports=function(e){o(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,c(a(t),`wrapperRef`,d.createRef()),t}var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,i=t.tree,a=!n.getChildKeys().isEmpty(),o=n!==e.block||i!==e.tree||r!==e.direction||x(e.selection,e.block.getKey())&&e.forceSelection;return a||o},n.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(!(!e.getHasFocus()||t!==this.props.block.getKey())){var n=this.wrapperRef.current;if(n){var r=p.getScrollParent(n),i=h(r),a;if(r===window){var o=m(n);a=o.y+o.height-g().height,a>0&&window.scrollTo(i.x,i.y+a+b)}else{!y(n)&&v(!1);var s=n;a=s.offsetHeight+s.offsetTop-(r.offsetHeight+i.y),a>0&&f.setTop(r,f.getTop(r)+a+b)}}}},n.render=function(){var e=this,n=this.props,r=n.block,a=n.blockRenderMap,o=n.blockRendererFn,c=n.blockStyleFn,f=n.contentState,p=n.decorator,m=n.editorKey,h=n.editorState,g=n.customStyleFn,_=n.customStyleMap,v=n.direction,y=n.forceSelection,b=n.selection,D=n.tree,O=null;r.children.size&&(O=r.children.reduce(function(n,r){var i=u.encode(r,0,0),l=f.getBlockForKey(r),p=T(l,o),g=p.CustomComponent||t,_=w(l,a),v=_.Element,y=_.wrapperTemplate,b=E(l,m,i,c,p,null),x=s({},e.props,{tree:h.getBlockTree(r),blockProps:p.customProps,offsetKey:i,block:l});return n.push(d.createElement(v,b,d.createElement(g,x))),!y||S(l,f)||C(y,v,n),n},[]));var k=r.getKey(),A=u.encode(k,0,0),j=T(r,o),M=j.CustomComponent,N=M==null?d.createElement(l,{block:r,children:O,contentState:f,customStyleFn:g,customStyleMap:_,decorator:p,direction:v,forceSelection:y,hasSelection:x(b,k),selection:b,tree:D}):d.createElement(M,i({},this.props,{tree:h.getBlockTree(k),blockProps:j.customProps,offsetKey:A,block:r}));if(r.getParentKey())return N;var P=w(r,a).Element,F=E(r,m,A,c,j,this.wrapperRef);return d.createElement(P,F,N)},t}(d.Component)})),tL=i(((e,n)=>{var r=sI();function i(){return i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o=eL(),s=bI(),c=t(),l=QF();n.exports=function(e){a(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap()||t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||r!==null&&n.getCurrentContent()===r||i&&a)return!1;var o=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return i!==a||o!==s||c!==l||n.mustForceSelection()},n.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,a=e.customStyleMap,u=e.customStyleFn,d=e.editorState,f=e.editorKey,p=e.textDirectionality,m=d.getCurrentContent(),h=d.getSelection(),g=d.mustForceSelection(),_=d.getDecorator(),v=l(d.getDirectionMap()),y=m.getBlocksAsArray()[0],b=[],x=y;x;){var S=x.getKey(),C={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:m,customStyleFn:u,customStyleMap:a,decorator:_,editorKey:f,editorState:d,forceSelection:g,selection:h,block:x,direction:p||v.get(S),tree:d.getBlockTree(S)},w=(t.get(x.getType())||t.get(`unstyled`)).wrapper;b.push({block:c.createElement(o,i({key:S},C)),wrapperTemplate:w,key:S,offsetKey:s.encode(S,0,0)});var T=x.getNextSiblingKey();x=T?m.getBlockForKey(T):null}for(var E=[],D=0;D<b.length;){var O=b[D];if(O.wrapperTemplate){var k=[];do k.push(b[D].block),D++;while(D<b.length&&b[D].wrapperTemplate===O.wrapperTemplate);
2730var A=c.cloneElement(O.wrapperTemplate,{key:O.key+`-wrap`,"data-offset-key":O.offsetKey},k);E.push(A)}else E.push(O.block),D++}return c.createElement(`div`,{"data-contents":`true`},E)},t}(c.Component)})),nL=i(((e,n)=>{var r=sI();function i(){return i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=VI(),l=bI(),u=t(),d=UI(),f=qI(),p=XF(),m=YF(),h=iI(),g=YI(),_=QI(),v=$I(),y=TF(),b=CI(),x=QF(),S=10,C=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t};n.exports=function(e){o(t,e);function t(){var t,n=[...arguments];return t=e.call.apply(e,[this].concat(n))||this,s(a(t),`_node`,void 0),t}var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||C(e.selection,e.block.getKey())&&e.forceSelection},n.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(!(!e.getHasFocus()||t!==this.props.block.getKey())){var n=this._node;if(n!=null){var r=f.getScrollParent(n),i=_(r),a;if(r===window){var o=g(n);a=o.y+o.height-v().height,a>0&&window.scrollTo(i.x,i.y+a+S)}else !b(n)&&y(!1),a=n.offsetHeight+n.offsetTop-(r.offsetTop+r.offsetHeight+i.y),a>0&&d.setTop(r,d.getTop(r)+a+S)}}}},n._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),a=this.props.tree.size-1,o=C(this.props.selection,n);return this.props.tree.map(function(s,d){var f=s.get(`leaves`);if(f.size===0)return null;var h=f.size-1,g=f.map(function(i,s){var f=l.encode(n,d,s),p=i.get(`start`),m=i.get(`end`);return u.createElement(c,{key:f,offsetKey:f,block:t,start:p,selection:o?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(p,m),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===a&&s===h})}).toArray(),_=s.get(`decoratorKey`);if(_==null||!e.props.decorator)return g;var v=x(e.props.decorator),y=v.getComponentForKey(_);if(!y)return g;var b=v.getPropsForKey(_),S=l.encode(n,d,0),C=f.first().get(`start`),w=f.last().get(`end`),T=r.slice(C,w),E=t.getEntityAt(s.get(`start`)),D=m.getHTMLDirIfDifferent(p.getDirection(T),e.props.direction),O={contentState:e.props.contentState,decoratedText:T,dir:D,start:C,end:w,blockKey:n,entityKey:E,offsetKey:S};return u.createElement(y,i({},b,O,{key:S}),g)}).toArray()},n.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,i=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":n===`LTR`,"public/DraftStyleDefault/rtl":n===`RTL`});return u.createElement(`div`,{"data-offset-key":r,className:i,ref:function(t){return e._node=t}},this._renderChildren())},t}(u.Component)})),rL=i(((e,t)=>{function n(e){var t=e||``,n=arguments.length;if(n>1)for(var r=1;r<n;r++){var i=arguments[r];i&&(t=(t?t+` `:``)+i)}return t}t.exports=n})),iL=i(((e,n)=>{var r=sI();function i(){return i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var c=nL(),l=bI(),u=t(),d=iI(),f=rL(),p=QF(),m=function(e,t,n,r){return d({"public/DraftStyleDefault/unorderedListItem":e===`unordered-list-item`,"public/DraftStyleDefault/orderedListItem":e===`ordered-list-item`,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":t===0,"public/DraftStyleDefault/depth1":t===1,"public/DraftStyleDefault/depth2":t===2,"public/DraftStyleDefault/depth3":t===3,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":r===`LTR`,"public/DraftStyleDefault/listRTL":r===`RTL`})};n.exports=function(e){s(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap()||t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),i=t.isInCompositionMode(),a=n.isInCompositionMode();if(t===n||r!==null&&n.getCurrentContent()===r||i&&a)return!1;var o=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return i!==a||o!==s||c!==l||n.mustForceSelection()},n.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleMap,s=e.customStyleFn,d=e.editorState,h=e.editorKey,g=e.preventScroll,_=e.textDirectionality,v=d.getCurrentContent(),y=d.getSelection(),b=d.mustForceSelection(),x=d.getDecorator(),S=p(d.getDirectionMap()),C=v.getBlocksAsArray(),w=[],T=null,E=null,D=0;D<C.length;D++){var O=C[D],k=O.getKey(),A=O.getType(),j=n(O),M=void 0,N=void 0,P=void 0;j&&(M=j.component,N=j.props,P=j.editable);var F=_||S.get(k),I=l.encode(k,0,0),ee={contentState:v,block:O,blockProps:N,blockStyleFn:r,customStyleMap:o,customStyleFn:s,decorator:x,direction:F,forceSelection:b,offsetKey:I,preventScroll:g,selection:y,tree:d.getBlockTree(k)},L=t.get(A)||t.get(`unstyled`),R=L.wrapper,z=L.element||t.get(`unstyled`).element,te=O.getDepth(),ne=``;r&&(ne=r(O)),z===`li`&&(ne=f(ne,m(A,te,E!==R||T===null||te>T,F)));var re=M||c,ie={className:ne,"data-block":!0,"data-editor":h,"data-offset-key":I,key:k};P!==void 0&&(ie=a({},ie,{contentEditable:P,suppressContentEditableWarning:!0}));var ae=u.createElement(z,ie,u.createElement(re,i({},ee,{key:k})));w.push({block:ae,wrapperTemplate:R,key:k,offsetKey:I}),T=R?O.getDepth():null,E=R}for(var oe=[],se=0;se<w.length;){var ce=w[se];if(ce.wrapperTemplate){var le=[];do le.push(w[se].block),se++;while(se<w.length&&w[se].wrapperTemplate===ce.wrapperTemplate);var B=u.cloneElement(ce.wrapperTemplate,{key:ce.key+`-wrap`,"data-offset-key":ce.offsetKey},le);oe.push(B)}else oe.push(ce.block),se++}return u.createElement(`div`,{"data-contents":`true`},oe)},t}(u.Component)})),aL=i(((e,t)=>{t.exports=KF()(`draft_tree_data_support`)?tL():iL()})),oL=i(((e,t)=>{var n={isImage:function(e){return r(e)[0]===`image`},isJpeg:function(e){var t=r(e);return n.isImage(e)&&(t[1]===`jpeg`||t[1]===`pjpeg`)}};function r(e){return e.split(`/`)}t.exports=n})),sL=i(((e,t)=>{var n=TF();function r(e){var t=e.length;if(!(!Array.isArray(e)&&(typeof e==`object`||typeof e==`function`))&&n(!1),typeof t!=`number`&&n(!1),!(t===0||t-1 in e)&&n(!1),typeof e.callee==`function`&&n(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch{}for(var r=Array(t),i=0;i<t;i++)r[i]=e[i];return r}function i(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&`length`in e&&!(`setInterval`in e)&&typeof e.nodeType!=`number`&&(Array.isArray(e)||`callee`in e||`item`in e)}function a(e){return i(e)?Array.isArray(e)?e.slice():r(e):[e]}t.exports=a})),cL=i(((e,t)=>{function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},t.exports=r})),lL=i(((e,t)=>{var n=oL(),r=sL(),i=cL(),a=RegExp(`\r
2731`,`g`),o=`
2732`,s={"text/rtf":1,"text/html":1};function c(e){if(e.kind==`file`)return e.getAsFile()}t.exports=function(){function e(e){this.data=e,this.types=e.types?r(e.types):[]}var t=e.prototype;return t.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(e){return s[e]})},t.getText=function(){var e;
2732return this.data.getData&&(this.types.length?this.types.indexOf(`text/plain`)!=-1&&(e=this.data.getData(`text/plain`)):e=this.data.getData(`Text`)),e?e.replace(a,o):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData(`Text`);if(this.types.indexOf(`text/html`)!=-1)return this.data.getData(`text/html`)}},t.isLink=function(){return this.types.some(function(e){return e.indexOf(`Url`)!=-1||e.indexOf(`text/uri-list`)!=-1||e.indexOf(`text/x-moz-url`)})},t.getLink=function(){return this.data.getData?this.types.indexOf(`text/x-moz-url`)==-1?this.types.indexOf(`text/uri-list`)==-1?this.data.getData(`url`):this.data.getData(`text/uri-list`):this.data.getData(`text/x-moz-url`).split(`
2733`)[0]:null},t.isImage=function(){if(this.types.some(function(e){return e.indexOf(`application/x-moz-file`)!=-1}))return!0;for(var e=this.getFiles(),t=0;t<e.length;t++){var r=e[t].type;if(!n.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty(`items`)?this.data.items.length:this.data.hasOwnProperty(`mozItemCount`)?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}()})),uL=i(((e,t)=>{var n=TF(),r=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0},a=5e3;function o(e,t){var n=0,r=[];e.forEach(function(i){s(i,function(i){n++,i&&r.push(i.slice(0,a)),n==e.length&&t(r.join(`\r`))})})}function s(e,t){if(!global.FileReader||e.type&&!(e.type in i)){t(``);return}if(e.type===``){var a=``;r.test(e.name)&&(a=e.name.replace(r,``)),t(a);return}var o=new FileReader;o.onload=function(){var e=o.result;typeof e!=`string`&&n(!1),t(e)},o.onerror=function(){t(``)},o.readAsText(e)}t.exports=o})),dL=i(((e,t)=>{function n(e){return e===`handled`||e===!0}t.exports=n})),fL=i(((e,t)=>{var n=lL(),r=zF(),i=eI(),a=_I(),o=mI(),s=uL(),c=TI(),l=vI(),u=dL(),d=QF();function f(e,t){var n=null,r=null,i=o(e.currentTarget);if(typeof i.caretRangeFromPoint==`function`){var s=i.caretRangeFromPoint(e.x,e.y);n=s.startContainer,r=s.startOffset}else if(e.rangeParent)n=e.rangeParent,r=e.rangeOffset;else return null;n=d(n),r=d(r);var l=d(a(n));return c(t,l,r,l,r)}var p={onDragEnd:function(e){e.exitCurrentMode(),m(e)},onDrop:function(e,t){var r=new n(t.nativeEvent.dataTransfer),i=e._latestEditorState,a=f(t.nativeEvent,i);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),a!=null){var o=r.getFiles();if(o.length>0){if(e.props.handleDroppedFiles&&u(e.props.handleDroppedFiles(a,o)))return;s(o,function(t){t&&e.update(g(i,a,t))});return}var c=e._internalDrag?`internal`:`external`;e.props.handleDrop&&u(e.props.handleDrop(a,r,c))||(e._internalDrag?e.update(h(i,a)):e.update(g(i,a,r.getText()))),m(e)}}};function m(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent(`mouseup`,{view:l(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function h(e,t){var n=r.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,`insert-fragment`)}function g(e,t,n){var a=r.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,a,`insert-fragment`)}t.exports=p})),pL=i(((e,t)=>{function n(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),a=!1;return r.some(function(e){return i===e.get(`start`)?(a=!0,!0):i<e.get(`end`)?e.get(`leaves`).some(function(e){return i===e.get(`start`)?(a=!0,!0):!1}):!1}),a}t.exports=n})),mL=i((()=>{(function(e,t){if(e.setImmediate)return;var n=1,r={},i=!1,a=e.document,o;function s(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];return r[n]={callback:e,args:t},o(n),n++}function c(e){delete r[e]}function l(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r);break}}function u(e){if(i)setTimeout(u,0,e);else{var t=r[e];if(t){i=!0;try{l(t)}finally{c(e),i=!1}}}}function d(){o=function(e){process.nextTick(function(){u(e)})}}function f(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}function p(){var t=`setImmediate$`+Math.random()+`$`,n=function(n){n.source===e&&typeof n.data==`string`&&n.data.indexOf(t)===0&&u(+n.data.slice(t.length))};e.addEventListener?e.addEventListener(`message`,n,!1):e.attachEvent(`onmessage`,n),o=function(n){e.postMessage(t+n,`*`)}}function m(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;u(t)},o=function(t){e.port2.postMessage(t)}}function h(){var e=a.documentElement;o=function(t){var n=a.createElement(`script`);n.onreadystatechange=function(){u(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function g(){o=function(e){setTimeout(u,0,e)}}var _=Object.getPrototypeOf&&Object.getPrototypeOf(e);_=_&&_.setTimeout?_:e,{}
2733.toString.call(e.process)===`[object process]`?d():f()?p():e.MessageChannel?m():a&&`onreadystatechange`in a.createElement(`script`)?h():g(),_.setImmediate=s,_.clearImmediate=c})(typeof self>`u`?typeof global>`u`?void 0:global:self)})),hL=i(((e,t)=>{mL(),t.exports=global.setImmediate})),gL=i(((e,t)=>{var n=zF(),r=eI(),i=pI(),a=AI(),o=dL(),s=pL(),c=QF(),l=hL(),u=`'`,d=`/`,f=i.isBrowser(`Firefox`);function p(e){return f&&(e==u||e==d)}function m(e,t,i,a,o){var s=n.replaceText(e.getCurrentContent(),e.getSelection(),t,i,a);return r.push(e,s,`insert-characters`,o)}function h(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,i=t.data;if(i){if(e.props.handleBeforeInput&&o(e.props.handleBeforeInput(i,n,t.timeStamp))){t.preventDefault();return}var u=n.getSelection(),d=u.getStartOffset(),f=u.getAnchorKey();if(!u.isCollapsed()){t.preventDefault(),e.update(m(n,i,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));return}var h=m(n,i,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),g=!1;if(g||=s(e._latestCommittedEditorState),!g){var _=n.getBlockTree(f),v=h.getBlockTree(f);g=_.size!==v.size||_.zip(v).some(function(e){var t=e[0],n=e[1],r=t.get(`start`),a=r+(r>=d?i.length:0),o=t.get(`end`),s=o+(o>=d?i.length:0),c=n.get(`start`),l=n.get(`end`),u=n.get(`decoratorKey`);return t.get(`decoratorKey`)!==u||t.get(`leaves`).size!==n.get(`leaves`).size||a!==c||s!==l||u!=null&&l-c!==o-r})}if(g||=p(i),g||=c(h.getDirectionMap()).get(f)!==c(n.getDirectionMap()).get(f),g){t.preventDefault(),h=r.set(h,{forceSelection:!0}
vendor: 10,086 bytes, lines 2733-2735
2733),e.update(h);return}h=r.set(h,{nativelyRenderedContent:h.getCurrentContent()}),e._pendingStateFromBeforeInput=h,l(function(){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}t.exports=h})),_L=i(((e,t)=>{var n=eI(),r=RI(),i=zI();function a(e,t){var a=t.currentTarget.ownerDocument;if(!e.props.preserveSelectionOnBlur&&i(a)===a.body){var o=a.defaultView.getSelection(),s=e.editor;o.rangeCount===1&&r(s,o.anchorNode)&&r(s,o.focusNode)&&o.removeAllRanges()}var c=e._latestEditorState,l=c.getSelection();if(l.getHasFocus()){var u=l.set(`hasFocus`,!1);e.props.onBlur&&e.props.onBlur(t),e.update(n.acceptSelection(c,u))}}t.exports=a})),vL=i(((e,t)=>{var n=eI();function r(e,t){e.setMode(`composite`),e.update(n.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}t.exports=r})),yL=i(((e,t)=>{var n=jF();function r(e){var t=e.getSelection();return t.isCollapsed()?null:n(e.getCurrentContent(),t)}t.exports=r})),bL=i(((e,t)=>{var n=yL();function r(e,t){if(e._latestEditorState.getSelection().isCollapsed()){t.preventDefault();return}e.setClipboard(n(e._latestEditorState))}t.exports=r})),xL=i(((e,t)=>{function n(e){if(!e||!(`ownerDocument`in e))return!1;if(`ownerDocument`in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}t.exports=n})),SL=i(((e,t)=>{var n=zF(),r=eI(),i=qI(),a=yL(),o=QI(),s=xL();function c(e,t){var n=e._latestEditorState,r=n.getSelection(),c=t.target,u;if(r.isCollapsed()){t.preventDefault();return}if(s(c)){var d=c;u=o(i.getScrollParent(d))}var f=a(n);e.setClipboard(f),e.setMode(`cut`),setTimeout(function(){e.restoreEditorDOM(u),e.exitCurrentMode(),e.update(l(n))},0)}function l(e){var t=n.removeRange(e.getCurrentContent(),e.getSelection(),`forward`);return r.push(e,t,`remove-range`)}t.exports=c})),CL=i(((e,t)=>{function n(e,t){e.setMode(`drag`),t.preventDefault()}t.exports=n})),wL=i(((e,t)=>{function n(e){e._internalDrag=!0,e.setMode(`drag`)}t.exports=n})),TL=i(((e,t)=>{var n=eI(),r=pI();function i(e,t){var i=e._latestEditorState,a=i.getSelection();if(!a.getHasFocus()){var o=a.set(`hasFocus`,!0);e.props.onFocus&&e.props.onFocus(t),r.isBrowser(`Chrome < 60.0.3081.0`)?e.update(n.forceSelection(i,o)):e.update(n.acceptSelection(i,o))}}t.exports=i})),EL=i(((e,t)=>{var n=TF(),r=55296,i=56319,a=56320,o=57343,s=/[\uD800-\uDFFF]/;function c(e){return r<=e&&e<=o}function l(e,t){if(!(0<=t&&t<e.length)&&n(!1),t+1===e.length)return!1;var s=e.charCodeAt(t),c=e.charCodeAt(t+1);return r<=s&&s<=i&&a<=c&&c<=o}function u(e){return s.test(e)}function d(e,t){return 1+c(e.charCodeAt(t))}function f(e){if(!u(e))return e.length;for(var t=0,n=0;n<e.length;n+=d(e,n))t++;return t}function p(e,t,n){if(t||=0,n=n===void 0?1/0:n||0,!u(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return``;var i=0;if(t>0){for(;t>0&&i<r;t--)i+=d(e,i);if(i>=r)return``}else if(t<0){for(i=r;t<0&&0<i;t++)i-=d(e,i-1);i<0&&(i=0)}var a=r;if(n<r)for(a=i;n>0&&a<r;n--)a+=d(e,a);return e.substring(i,a)}function m(e,t,n){t||=0,n=n===void 0?1/0:n||0,t<0&&(t=0),n<0&&(n=0);var r=Math.abs(n-t);return t=t<n?t:n,p(e,t,r)}function h(e){for(var t=[],n=0;n<e.length;n+=d(e,n))t.push(e.codePointAt(n));return t}t.exports={getCodePoints:h,getUTF16Length:d,hasSurrogateUnit:u,isCodeUnitInSurrogateRange:c,isSurrogatePair:l,strlen:f,substring:m,substr:p}})),DL=i(((e,t)=>{t.exports=cL()})),OL=i(((e,t)=>{DL();function n(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),a=n.getStartOffset(),o=i,s=0;if(t>a){var c=r.getKeyBefore(i);c==null?o=i:(o=c,s=r.getBlockForKey(c).getText().length)}else s=a-t;return n.merge({focusKey:o,focusOffset:s,isBackward:!0})}t.exports=n})),kL=i(((e,t)=>{var n=zF(),r=KF()(`draft_tree_data_support`);function i(e,t,i){var a=e.getSelection(),o=e.getCurrentContent(),s=a,c=a.getAnchorKey(),l=a.getFocusKey(),u=o.getBlockForKey(c);if(r&&i===`forward`&&c!==l)return o;if(a.isCollapsed()){if(i===`forward`){if(e.isSelectionAtEndOfContent())return o;if(r&&a.getAnchorOffset()===o.getBlockForKey(c).getLength()){var d=o.getBlockForKey(u.nextSibling);if(!d||d.getLength()===0)return o}}else if(e.isSelectionAtStartOfContent())return o;if(s=t(e),s===a)return o}return n.removeRange(o,s,i)}t.exports=i})),AL=i(((e,t)=>{var n=eI(),r=EL(),i=OL(),a=kL();function o(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),a=t.getAnchorKey(),o=t.getAnchorOffset(),s=n.getBlockForKey(a).getText()[o-1];return i(e,s?r.getUTF16Length(s,0):1)},`backward`);if(t===e.getCurrentContent())return e;var o=e.getSelection();return n.push(e,t.set(`selectionBefore`,o),o.isCollapsed()?`backspace-character`:`remove-range`)}t.exports=o})),jL=i(((e,t)=>{var n=zF(),r=bI(),i=eI(),a=pI(),o=kI().notEmptyKey,s=_I(),c=AL(),l=QF(),u=a.isEngine(`Gecko`),d=`
2734
2735`;function f(e,t){switch(e){case`deleteContentBackward`:return c(t)}return t}function p(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var a=e.editor.ownerDocument.defaultView.getSelection(),c=a.anchorNode,p=a.isCollapsed,m=c?.nodeType!==Node.TEXT_NODE&&c?.nodeType!==Node.ELEMENT_NODE;if(!(c==null||m)){if(c.nodeType===Node.TEXT_NODE&&(c.previousSibling!==null||c.nextSibling!==null)){var h=c.parentNode;if(h==null)return;c.nodeValue=h.textContent;for(var g=h.firstChild;g!=null;g=g.nextSibling)g!==c&&h.removeChild(g)}var _=c.textContent,v=e._latestEditorState,y=l(s(c)),b=r.decode(y),x=b.blockKey,S=b.decoratorKey,C=b.leafKey,w=v.getBlockTree(x).getIn([S,`leaves`,C]),T=w.start,E=w.end,D=v.getCurrentContent(),O=D.getBlockForKey(x),k=O.getText().slice(T,E);if(_.endsWith(d)&&(_=_.slice(0,-1)),_===k){var A=t.nativeEvent.inputType;if(A){var j=f(A,v);if(j!==v){e.restoreEditorDOM(),e.update(j);return}}return}var M=v.getSelection(),N=M.merge({anchorOffset:T,focusOffset:E,isBackward:!1}),P=O.getEntityAt(T),F=o(P)?D.getEntity(P):null,I=(F==null?null:F.getMutability())===`MUTABLE`,ee=I?`spellcheck-change`:`apply-entity`,L=n.replaceText(D,N,_,O.getInlineStyleAt(T),I?O.getEntityAt(T):null),R,z,te,ne;if(u)R=a.anchorOffset,z=a.focusOffset,te=T+Math.min(R,z),ne=te+Math.abs(R-z),R=te,z=ne;else{var re=_.length-k.length;te=M.getStartOffset(),ne=M.getEndOffset(),R=p?ne+re:te,z=ne+re}var ie=L.merge({selectionBefore:D.getSelectionAfter(),selectionAfter:M.merge({anchorOffset:R,focusOffset:z})});e.update(i.push(v,ie,ee))}}t.exports=p})),ML=i(((e,t)=>{var n=xI();function r(e){return e.which===n.RETURN&&(e.getModifierState(`Shift`)||e.getModifierState(`Alt`)||e.getModifierState(`Control`))}t.exports=r})),NL=i(((e,t)=>{var n=pI(),r=ML(),i=n.isPlatform(`Mac OS X`),a={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return i&&e.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(e){return i?!!e.metaKey&&!e.altKey:a.isCtrlKeyCommand(e)},isSoftNewlineEvent:r};t.exports=a})),PL=i(((e,t)=>{var n=zF(),r=eI(),i=jF(),a=QF(),o=null;t.exports={cut:function(e){var t=e.getCurrentContent(),s=e.getSelection(),c=null;if(s.isCollapsed()){var l=s.getAnchorKey(),u=t.getBlockForKey(l).getLength();if(u===s.getAnchorOffset()){var d=t.getKeyAfter(l);if(d==null)return e;c=s.set(`focusKey`,d).set(`focusOffset`,0)}else c=s.set(`focusOffset`,u)}else c=s;c=a(c),o=i(t,c);var f=n.removeRange(t,c,`forward`);return f===t?e:r.push(e,f,`remove-range`)},paste:function(e){if(!o)return e;var t=n.replaceWithFragment(e.getCurrentContent(),e.getSelection(),o);return r.push(e,t,`insert-fragment`)}}})),FL=i(((e,t)=>{var n=pI(),r=TF(),i=n.isBrowser(`Chrome`);function a(e){for(var t=e.cloneRange(),n=[],i=e.endContainer;i!=null;i=i.parentNode){var a=i===e.commonAncestorContainer;a?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o=Array.from(t.getClientRects());if(n.push(o),a){var s;return n.reverse(),(s=[]).concat.apply(s,n)}t.setEndBefore(i)}r(!1)}t.exports=i?a:function(e){return Array.from(e.getClientRects())}})),IL=i(((e,t)=>{var n=EL(),r=mI(),i=FL(),a=TF();function o(e){var t=getComputedStyle(e),n=r(e),i=n.createElement(`div`);i.style.fontFamily=t.fontFamily,i.style.fontSize=t.fontSize,i.style.fontStyle=t.fontStyle,i.style.fontWeight=t.fontWeight,i.style.lineHeight=t.lineHeight,i.style.position=`absolute`,i.textContent=`M`;var o=n.body;!o&&a(!1),o.appendChild(i);var s=i.getBoundingClientRect();return o.removeChild(i),s.height}function s(e,t){for(var n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<e.length;o++){var s=e[o];s.width===0||s.width===1||(n=Math.min(n,s.top),r=Math.min(r,s.bottom),i=Math.max(i,s.top),a=Math.max(a,s.bottom))}return i<=r&&i-n<t&&a-r<t}function c(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}function l(e){!e.collapsed&&a(!1),e=e.cloneRange();var t=e.startContainer;t.nodeType!==1&&(t=t.parentNode);var r=o(t),l=e.endContainer,u=e.endOffset;for(e.setStart(e.startContainer,0);s(i(e),r)&&(l=e.startContainer,u=e.startOffset,!l.parentNode&&a(!1),e.setStartBefore(l),!(l.nodeType===1&&getComputedStyle(l).display!==`inline`)););var d=l,f=u-1;do{for(var p=d.nodeValue,m=f;m>=0;m--)if(!(p!=null&&m>0&&n.isSurrogatePair(p,m-1)))if(e.setStart(d,m),s(i(e),r))l=d,u=m;else break;if(m===-1||d.childNodes.length===0)break;d=d.childNodes[m],f=c(d)}while(!0);return e.setStart(l,u),e}t.exports=l})),LL=i(((e,t)=>{var n=eI(),r=IL(),i=EI(),a=OL(),o=kL();function s(e,t){var s=o(e,function(e){var n=e.getSelection();if(n.isCollapsed()&&n.getAnchorOffset()===0)return a(e,1);var o=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return o=r(o),i(e,null,o.endContainer,o.endOffset,o.startContainer,o.startOffset).selectionState},`backward`);return s===e.getCurrentContent()?e:n.push(e,s,`remove-range`)}t.exports=s})),RL=i(((e,t)=>{var n=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]`;
2735t.exports={getPunctuation:function(){return n}}})),zL=i(((e,t)=>{var n=RL().getPunctuation(),r=`['‘’]`,i=`\\s|(?![_])`+n,a=`^(?:`+i+`)*(?:`+r+`|(?!`+i+`).)*(?:(?!`+i+`).)`,o=new RegExp(a),s=`(?:(?!`+i+`).)(?:`+r+`|(?!`+i+`).)*(?:`+i+`)*$`,c=new RegExp(s);function l(e,t){var n=t?c.exec(e):o.exec(e);return n?n[0]:e}t.exports={getBackward:function(e){return l(e,!0)},getForward:function(e){return l(e,!1)}}})),BL=i(((e,t)=>{var n=zL(),r=eI(),i=OL(),a=kL();function o(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset();if(r===0)return i(e,1);var a=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(a).getText().slice(0,r);return i(e,n.getBackward(o).length||1)},`backward`);return t===e.getCurrentContent()?e:r.push(e,t,`remove-range`)}t.exports=o})),VL=i(((e,t)=>{DL();function n(e,t){var n=e.getSelection(),r=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),o=r,s;return t>a.getBlockForKey(r).getText().length-i?(o=a.getKeyAfter(r),s=0):s=i+t,n.merge({focusKey:o,focusOffset:s})}t.exports=n})),HL=i(((e,t)=>{var n=zL(),r=eI(),i=VL(),a=kL();function o(e){var t=a(e,function(e){var t=e.getSelection(),r=t.getStartOffset(),a=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(a).getText().slice(r);return i(e,n.getForward(o).length||1)},`forward`);return t===e.getCurrentContent()?e:r.push(e,t,`remove-range`)}t.exports=o})),UL=i(((e,t)=>{var n=zF(),r=eI();function i(e){var t=n.splitBlock(e.getCurrentContent(),e.getSelection());return r.push(e,t,`split-block`)}t.exports=i})),WL=i(((e,t)=>{var n=eI();function r(e){var t=e.getSelection(),r=t.getEndKey(),i=e.getCurrentContent().getBlockForKey(r).getLength();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}),forceSelection:!0}
2735)}t.exports=r})),GL=i(((e,t)=>{var n=eI();function r(e){var t=e.getSelection(),r=t.getStartKey();return n.set(e,{selection:t.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}t.exports=r})),KL=i(((e,t)=>{var n=eI(),r=EL(),i=VL(),a=kL();function o(e){var t=a(e,function(e){var t=e.getSelection(),n=e.getCurrentContent(),a=t.getAnchorKey(),o=t.getAnchorOffset(),s=n.getBlockForKey(a).getText()[o];return i(e,s?r.getUTF16Length(s,0):1)},`forward`);if(t===e.getCurrentContent())return e;var o=e.getSelection();return n.push(e,t.set(`selectionBefore`,o),o.isCollapsed()?`delete-character`:`remove-range`)}t.exports=o})),qL=i(((e,t)=>{var n=zF(),r=eI(),i=jF();function a(e){var t=e.getSelection();if(!t.isCollapsed())return e;var a=t.getAnchorOffset();if(a===0)return e;var o=t.getAnchorKey(),s=e.getCurrentContent(),c=s.getBlockForKey(o).getLength();if(c<=1)return e;var l,u;a===c?(l=t.set(`anchorOffset`,a-1),u=t):(l=t.set(`focusOffset`,a+1),u=l.set(`anchorOffset`,a+1));var d=i(s,l),f=n.removeRange(s,l,`backward`),p=f.getSelectionAfter(),m=p.getAnchorOffset()-1,h=p.merge({anchorOffset:m,focusOffset:m}),g=n.replaceWithFragment(f,h,d),_=r.push(e,g,`insert-fragment`);return r.acceptSelection(_,u)}t.exports=a})),JL=i(((e,t)=>{var n=eI();function r(e,t,r){var i=n.undo(t);if(t.getLastChangeType()===`spellcheck-change`){var a=i.getCurrentContent();r(n.set(i,{nativelyRenderedContent:a}));return}if(e.preventDefault(),!t.getNativelyRenderedContent()){r(i);return}r(n.set(t,{nativelyRenderedContent:null})),setTimeout(function(){r(i)},0)}t.exports=r})),YL=i(((e,t)=>{var n=zF(),r=eI(),i=NL(),a=xI(),o=PL(),s=pI(),c=dL(),l=LL(),u=BL(),d=HL(),f=UL(),p=WL(),m=GL(),h=AL(),g=KL(),_=qL(),v=JL(),y=i.isOptionKeyCommand,b=s.isBrowser(`Chrome`);function x(e,t,n){switch(e){case`redo`:return r.redo(t);case`delete`:return g(t);case`delete-word`:return d(t);case`backspace`:return h(t);case`backspace-word`:return u(t);case`backspace-to-start-of-line`:return l(t,n);case`split-block`:return f(t);case`transpose-characters`:return _(t);case`move-selection-to-start-of-block`:return m(t);case`move-selection-to-end-of-block`:return p(t);case`secondary-cut`:return o.cut(t);case`secondary-paste`:return o.paste(t);default:return t}}function S(e,t){var i=t.which,o=e._latestEditorState;function s(n){var r=e.props[n];return r?(r(t),!0):!1}switch(i){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&c(e.props.handleReturn(t,o)))return;break;case a.ESC:if(t.preventDefault(),s(`onEscape`))return;break;case a.TAB:if(s(`onTab`))return;break;case a.UP:if(s(`onUpArrow`))return;break;case a.RIGHT:if(s(`onRightArrow`))return;break;case a.DOWN:if(s(`onDownArrow`))return;break;case a.LEFT:if(s(`onLeftArrow`))return;break;case a.SPACE:b&&y(t)&&t.preventDefault()}var l=e.props.keyBindingFn(t);if(l==null||l===``){if(i===a.SPACE&&b&&y(t)){var u=n.replaceText(o.getCurrentContent(),o.getSelection(),`\xA0`);e.update(r.push(o,u,`insert-characters`))}return}if(l===`undo`){v(t,o,e.update);return}if(t.preventDefault(),!(e.props.handleKeyCommand&&c(e.props.handleKeyCommand(l,o,t.timeStamp)))){var d=x(l,o,t);d!==o&&e.update(d)}}t.exports=S})),XL=i(((e,t)=>{function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.exports=function(){function e(e){n(this,`_uri`,void 0),this._uri=e}var t=e.prototype;return t.toString=function(){return this._uri},e}()})),ZL=i(((e,t)=>{var n=pI(),r=TF(),i=n.isBrowser(`IE <= 9`);function a(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument(`foo`),!t.documentElement&&r(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName(`body`)[0]),n}t.exports=a})),QL=i(((e,t)=>{var n=hI();function r(e){return!e||!e.ownerDocument?!1:n(e)&&e.nodeName===`A`}t.exports=r})),$L=i(((e,t)=>{var n=hI();function r(e){return!e||!e.ownerDocument?!1:n(e)&&e.nodeName===`IMG`}t.exports=r})),eR=i(((e,t)=>{var n;function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){i(e,t,n[t])})}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=_F(),o=yF(),s=bF(),c=aI(),l=WF(),u=XL(),d=iI(),f=OF(),p=ZL(),m=KF(),h=hF(),g=h.List,_=h.Map,v=h.OrderedSet,y=QL(),b=PI(),x=CI(),S=$L(),C=m(`draft_tree_data_support`),w=`&nbsp;`,T=` `,E=RegExp(`\r`,`g`),D=RegExp(`
2736`,`g`),O=RegExp(`^
2737`,`g`),k=new RegExp(w,`g`),A=RegExp(`&#13;?`,`g`),j=RegExp(`&#8203;?`,`g`),M=[`bold`,`bolder`,`500`,`600`,`700`,`800`,`900`],N=[`light`,`lighter`,`normal`,`100`,`200`,`300`,`400`],P=[`className`,`href`,`rel`,`target`,`title`],F=[`alt`,`className`,`height`,`src`,`width`],I=(n={},i(n,d(`public/DraftStyleDefault/depth0`),0),i(n,d(`public/DraftStyleDefault/depth1`),1),i(n,d(`public/DraftStyleDefault/depth2`),2),i(n,d(`public/DraftStyleDefault/depth3`),3),i(n,d(`public/DraftStyleDefault/depth4`),4),n),ee=_({b:`BOLD`,code:`CODE`,del:`STRIKETHROUGH`,em:`ITALIC`,i:`ITALIC`,s:`STRIKETHROUGH`,strike:`STRIKETHROUGH`,strong:`BOLD`,u:`UNDERLINE`,mark:`HIGHLIGHT`}),L=function(e){var t={};return e.mapKeys(function(e,n){var r=[n.element];n.aliasedElements!==void 0&&r.push.apply(r,n.aliasedElements),r.forEach(function(n){t[n]===void 0?t[n]=e:typeof t[n]==`string`?t[n]=[t[n],e]:t[n].push(e)})}),_(t)}
vendor: 5,551 bytes, lines 2737-2738
2737,R=function(e){return x(e)&&e.style.fontFamily.includes(`monospace`)?`CODE`:null},z=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(I).some(function(n){e.classList.contains(n)&&(t=I[n])}),t},te=function(e){if(!y(e))return!1;var t=e;if(!t.href||t.protocol!==`http:`&&t.protocol!==`https:`&&t.protocol!==`mailto:`&&t.protocol!==`tel:`)return!1;try{return new u(t.href),!0}catch{return!1}},ne=function(e){if(!S(e))return!1;var t=e;return!!(t.attributes.getNamedItem(`src`)&&t.attributes.getNamedItem(`src`).value)},re=function(e,t){if(!x(e))return t;var n=e,r=n.style.fontWeight,i=n.style.fontStyle,a=n.style.textDecoration;return t.withMutations(function(e){M.indexOf(r)>=0?e.add(`BOLD`):N.indexOf(r)>=0&&e.remove(`BOLD`),i===`italic`?e.add(`ITALIC`):i===`normal`&&e.remove(`ITALIC`),a===`underline`&&e.add(`UNDERLINE`),a===`line-through`&&e.add(`STRIKETHROUGH`),a===`none`&&(e.remove(`UNDERLINE`),e.remove(`STRIKETHROUGH`))})},ie=function(e){return e===`ul`||e===`ol`},ae=function(){function e(e,t){i(this,`characterList`,g()),i(this,`currentBlockType`,`unstyled`),i(this,`currentDepth`,0),i(this,`currentEntity`,null),i(this,`currentText`,``),i(this,`wrapper`,null),i(this,`blockConfigs`,[]),i(this,`contentBlocks`,[]),i(this,`entityMap`,l),i(this,`blockTypeMap`,void 0),i(this,`disambiguate`,void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=g(),this.blockConfigs=[],this.currentBlockType=`unstyled`,this.currentDepth=0,this.currentEntity=null,this.currentText=``,this.entityMap=l,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],v())),this._trimCurrentText(),this.currentText!==``&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return this.contentBlocks.length===0&&(C?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r({key:e.key||f(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:g(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=g(),this.currentBlockType=`unstyled`,this.currentText=``,t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=i.nodeName.toLowerCase();if(a===`body`||ie(a)){this._trimCurrentText(),this.currentText!==``&&n.push(this._makeBlockConfig());var o=this.currentDepth,s=this.wrapper;ie(a)&&(this.wrapper=a,ie(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),t)),this.currentDepth=o,this.wrapper=s;continue}var c=this.blockTypeMap.get(a);if(c!==void 0){this._trimCurrentText(),this.currentText!==``&&n.push(this._makeBlockConfig());var l=this.currentDepth,u=this.wrapper;if(this.wrapper=a===`pre`?`pre`:this.wrapper,typeof c!=`string`&&(c=this.disambiguate(a,this.wrapper)||c[0]||`unstyled`),!C&&x(i)&&(c===`unordered-list-item`||c===`ordered-list-item`)){var d=i;this.currentDepth=z(d,this.currentDepth)}var p=f(),m=this._toBlockConfigs(Array.from(i.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:p,childConfigs:m,type:c})),this.currentDepth=l,this.wrapper=u;continue}if(a===`#text`){this._addTextNode(i,t);continue}if(a===`br`){this._addBreakNode(i,t);continue}if(ne(i)){this._addImgNode(i,t);continue}if(te(i)){this._addAnchorNode(i,n,t);continue}var h=t;ee.has(a)&&(h=h.add(ee.get(a))),h=re(i,h);var g=R(i);g!=null&&(h=h.add(g)),n.push.apply(n,this._toBlockConfigs(Array.from(i.childNodes),h))}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=a.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry(function(e){return e.getEntity()!==null});t=r===void 0?t:Math.min(t,r[0]),r=this.characterList.reverse().findEntry(function(e){return e.getEntity()!==null}),n=r===void 0?n:Math.max(n,e-r[0]),t>n?(this.currentText=``,this.characterList=g()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;n.trim()===``&&this.wrapper!==`pre`&&(n=` `),this.wrapper!==`pre`&&(n=n.replace(O,``),n=n.replace(D,T)),this._appendText(n,t)},t._addBreakNode=function(e,t){b(e)&&this._appendText(`
2738`,t)},t._addImgNode=function(e,t){if(S(e)){var n=e,r={};F.forEach(function(e){var t=n.getAttribute(e);t&&(r[e]=t)}),this.currentEntity=this.entityMap.__create(`IMAGE`,`IMMUTABLE`,r),m(`draftjs_fix_paste_for_img`)?n.getAttribute(`role`)!==`presentation`&&this._appendText(`📷`,t):this._appendText(`📷`,t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(y(e)){var r=e,i={};P.forEach(function(e){var t=r.getAttribute(e);t&&(i[e]=t)}),i.url=new u(r.href).toString(),this.currentEntity=this.entityMap.__create(`LINK`,`MUTABLE`,i||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=e.length-1,i=0;i<=n;i++){var a=e[i];a.parent=t,a.prevSibling=i>
27380?e[i-1].key:null,a.nextSibling=i<n?e[i+1].key:null,a.children=g(a.childConfigs.map(function(e){return e.key})),this.contentBlocks.push(new s(r({},a))),this._toContentBlocks(a.childConfigs,a.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return g(e).flatMap(function(e){return e.type!==`unstyled`||e.text!==``?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)})},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach(function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),i=n.text,a=n.characterList;t.contentBlocks.push(new o(r({},e,{text:e.text+i,characterList:e.characterList.concat(a)})))})},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n=``,r=g(),i=0;i<=t;i++){var a=e[i];n+=a.text,r=r.concat(a.characterList),n!==``&&a.type!==`unstyled`&&(n+=`
2739`,r=r.push(r.last()));var o=this._extractTextFromBlockConfigs(a.childConfigs);n+=o.text,r=r.concat(o.characterList)}return{text:n,characterList:r}},e}();t.exports=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c;e=e.trim().replace(E,``).replace(k,T).replace(A,``).replace(j,``);var r=t(e);return r?new ae(L(n),function(e,t){return e===`li`?t===`ol`?`ordered-list-item`:`unordered-list-item`:null}).addDOMNode(r).getContentBlocks():null}})),tR=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=yF(),a=bF(),o=eR(),s=OF(),c=ZL(),l=KF(),u=hF(),d=qF(),f=u.List,p=u.Repeat,m=l(`draft_tree_data_support`),h=m?a:i;t.exports={processHTML:function(e,t){return o(e,c,t)},processText:function(e,t,r){return e.reduce(function(e,i,a){i=d(i);var o=s(),c={key:o,type:r,text:i,characterList:f(p(t,i.length))};if(m&&a!==0){var l=a-1,u=e[l]=e[l].merge({nextSibling:o});c=n({},c,{prevSibling:u.getKey()})}return e.push(new h(c)),e},[])}}})),nR=i(((e,t)=>{function n(e,t,n,r){var i=t.getStartKey(),a=t.getEndKey(),o=e.getBlockMap(),s=o.toSeq().skipUntil(function(e,t){return t===i}).takeUntil(function(e,t){return t===a}).concat([[a,o.get(a)]]).map(function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set(`depth`,t)});return o=o.merge(s),e.merge({blockMap:o,selectionBefore:t,selectionAfter:t})}t.exports=n})),rR=i(((e,t)=>{var n=zF(),r=eI(),i=nR(),a=QF(),o={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&r.__get(t).getType()===`LINK`})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case`bold`:return o.toggleInlineStyle(e,`BOLD`);case`italic`:return o.toggleInlineStyle(e,`ITALIC`);case`underline`:return o.toggleInlineStyle(e,`UNDERLINE`);case`code`:return o.toggleCode(e);case`backspace`:case`backspace-word`:case`backspace-to-start-of-line`:return o.onBackspace(e);case`delete`:case`delete-word`:case`delete-to-end-of-block`:return o.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),`
2740`,e.getCurrentInlineStyle(),null),i=r.push(e,t,`insert-characters`);return r.forceSelection(i,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockBefore(i);if(a&&a.getType()===`atomic`){var s=n.getBlockMap().delete(a.getKey()),c=n.merge({blockMap:s,selectionAfter:t});if(c!==n)return r.push(e,c,`remove-range`)}var l=o.tryToRemoveBlockStyle(e);return l?r.push(e,l,`change-block-type`):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var i=e.getCurrentContent(),a=t.getStartKey(),o=i.getBlockForKey(a).getLength();if(t.getStartOffset()<o)return null;var s=i.getBlockAfter(a);if(!s||s.getType()!==`atomic`)return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),l=n.removeRange(i,c,`forward`);return l===i?null:r.push(e,l,`remove-range`)},onTab:function(e,t,n){var a=t.getSelection(),o=a.getAnchorKey();if(o!==a.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(o),l=c.getType();if(l!==`unordered-list-item`&&l!==`ordered-list-item`)return t;e.preventDefault();var u=c.getDepth();if(!e.shiftKey&&u===n)return t;var d=i(s,a,e.shiftKey?-1:1,n);return r.push(t,d,`adjust-depth`)},toggleBlockType:function(e,t){var i=e.getSelection(),o=i.getStartKey(),s=i.getEndKey(),c=e.getCurrentContent(),l=i;
2740if(o!==s&&i.getEndOffset()===0){var u=a(c.getBlockBefore(s));s=u.getKey(),l=l.merge({anchorKey:o,anchorOffset:i.getStartOffset(),focusKey:s,focusOffset:u.getLength(),isBackward:!1})}if(c.getBlockMap().skipWhile(function(e,t){return t!==o}).reverse().skipWhile(function(e,t){return t!==s}).some(function(e){return e.getType()===`atomic`}))return e;var d=c.getBlockForKey(o).getType()===t?`unstyled`:t;return r.push(e,n.setBlockType(c,l,d),`change-block-type`)},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?o.toggleBlockType(e,`code-block`):o.toggleInlineStyle(e,`CODE`)},toggleInlineStyle:function(e,t){var i=e.getSelection(),a=e.getCurrentInlineStyle();if(i.isCollapsed())return r.setInlineStyleOverride(e,a.has(t)?a.remove(t):a.add(t));var o=e.getCurrentContent(),s=a.has(t)?n.removeInlineStyle(o,i,t):n.applyInlineStyle(o,i,t);return r.push(e,s,`change-inline-style`)},toggleLink:function(e,t,i){var a=n.applyEntity(e.getCurrentContent(),t,i);return r.push(e,a,`apply-entity`)},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),r=t.getAnchorOffset();if(t.isCollapsed()&&r===0){var i=t.getAnchorKey(),a=e.getCurrentContent(),o=a.getBlockForKey(i).getType(),s=a.getBlockBefore(i);if(o===`code-block`&&s&&s.getType()===`code-block`&&s.getLength()!==0)return null;if(o!==`unstyled`)return n.setBlockType(a,t,`unstyled`)}return null}};t.exports=o})),iR=i(((e,t)=>{var n=/\r\n?|\n/g;function r(e){return e.split(n)}t.exports=r})),aR=i(((e,t)=>{var n=gF(),r=_F(),i=lL(),a=zF(),o=tR(),s=eI(),c=rR(),l=AI(),u=uL(),d=dL(),f=iR();function p(e,t){t.preventDefault();var p=new i(t.clipboardData);if(!p.isRichText()){var g=p.getFiles(),_=p.getText();if(g.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(g)))return;u(g,function(t){if(t||=_,t){var i=e._latestEditorState,u=f(t),d=r.create({style:i.getCurrentInlineStyle(),entity:l(i.getCurrentContent(),i.getSelection())}),p=c.getCurrentBlockType(i),m=o.processText(u,d,p),h=n.createFromArray(m),g=a.replaceWithFragment(i.getCurrentContent(),i.getSelection(),h);e.update(s.push(i,g,`insert-fragment`))}});return}}var v=[],y=p.getText(),b=p.getHTML(),x=e._latestEditorState;if(e.props.formatPastedText){var S=e.props.formatPastedText(y,b),C=S.text,w=S.html;y=C,b=w}if(!(e.props.handlePastedText&&d(e.props.handlePastedText(y,b,x)))){if(y&&(v=f(y)),!e.props.stripPastedStyles){var T=e.getClipboard();if(!e.props.formatPastedText&&p.isRichText()&&T){if(b?.indexOf(e.getEditorKey())!==-1||v.length===1&&T.size===1&&T.first().getText()===y){e.update(m(e._latestEditorState,T));return}}else if(T&&p.types.includes(`com.apple.webarchive`)&&!p.types.includes(`text/html`)&&h(v,T)){e.update(m(e._latestEditorState,T));return}if(b){var E=o.processHTML(b,e.props.blockRenderMap);if(E){var D=E.contentBlocks,O=E.entityMap;if(D){var k=n.createFromArray(D);e.update(m(e._latestEditorState,k,O));return}}}e.setClipboard(null)}if(v.length){var A=r.create({style:x.getCurrentInlineStyle(),entity:l(x.getCurrentContent(),x.getSelection())}),j=c.getCurrentBlockType(x),M=o.processText(v,A,j),N=n.createFromArray(M);e.update(m(e._latestEditorState,N))}}}function m(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s.push(e,r.set(`entityMap`,n),`insert-fragment`)}function h(e,t){return e.length===t.size&&t.valueSeq().every(function(t,n){return t.getText()===e[n]})}t.exports=p})),oR=i(((e,t)=>{var n=pI(),r=gL(),i=_L(),a=vL(),o=bL(),s=SL(),c=CL(),l=wL(),u=TL(),d=jL(),f=YL(),p=aR(),m=OI(),h=n.isBrowser(`Chrome`),g=n.isBrowser(`Firefox`),_=h||g?m:function(e){};t.exports={onBeforeInput:r,onBlur:i,onCompositionStart:a,onCopy:o,onCut:s,onDragOver:c,onDragStart:l,onFocus:u,onInput:d,onKeyDown:f,onPaste:p,onSelect:m,onMouseUp:_,onKeyUp:_}})),sR=i(((e,t)=>{t.exports=Te().unstable_flushControlled})),cR=i(((e,n)=>{function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=t(),a=iI();n.exports=function(e){r(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},n.render=function(){var e=a({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/has
2740Focus":this.props.editorState.getSelection().getHasFocus()});return i.createElement(`div`,{className:e},i.createElement(`div`,{className:a(`public/DraftEditorPlaceholder/inner`),id:this.props.accessibilityID,style:{whiteSpace:`pre-wrap`}},this.props.text))},t}(i.Component)})),lR=i(((e,t)=>{var n=NL(),r=xI(),i=pI(),a=i.isPlatform(`Mac OS X`),o=a&&i.isBrowser(`Firefox < 29`),s=n.hasCommandModifier,c=n.isCtrlKeyCommand;function l(e){return a&&e.altKey||c(e)}function u(e){return s(e)?e.shiftKey?`redo`:`undo`:null}function d(e){return!a&&e.shiftKey?null:l(e)?`delete-word`:`delete`}function f(e){return s(e)&&a?`backspace-to-start-of-line`:l(e)?`backspace-word`:`backspace`}function p(e){switch(e.keyCode){case 66:return s(e)?`bold`:null;case 68:return c(e)?`delete`:null;case 72:return c(e)?`backspace`:null;case 73:return s(e)?`italic`:null;case 74:return s(e)?`code`:null;case 75:return a&&c(e)?`secondary-cut`:null;case 77:return c(e)?`split-block`:null;case 79:return c(e)?`split-block`:null;case 84:return a&&c(e)?`transpose-characters`:null;case 85:return s(e)?`underline`:null;case 87:return a&&c(e)?`backspace-word`:null;case 89:return c(e)?a?`secondary-paste`:`redo`:null;case 90:return u(e)||null;case r.RETURN:return`split-block`;case r.DELETE:return d(e);case r.BACKSPACE:return f(e);case r.LEFT:return o&&s(e)?`move-selection-to-start-of-block`:null;case r.RIGHT:return o&&s(e)?`move-selection-to-end-of-block`:null;default:return null}}t.exports=p})),uR=i(((e,n)=>{var r=sI();function i(){return i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){s(e,t,n[t])})}return e}function o(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l=aI(),u=oI(),d=jI(),f=aL(),p=fL(),m=oR(),h=sR(),g=cR(),_=FI(),v=eI(),y=t(),b=UI(),x=qI(),S=pI(),C=iI(),w=OF(),T=lR(),E=QI(),D=KF(),O=TF(),k=CI(),A=QF(),j=S.isBrowser(`IE`),M=!j,N={edit:m,composite:d,drag:p,cut:null,render:null},P=!1,F=function(e){c(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(y.Component),I=function(e){c(t,e);function t(t){var n=e.call(this,t)||this;return s(o(n),`_blockSelectEvents`,void 0),s(o(n),`_clipboard`,void 0),s(o(n),`_handler`,void 0),s(o(n),`_dragCount`,void 0),s(o(n),`_internalDrag`,void 0),s(o(n),`_editorKey`,void 0),s(o(n),`_placeholderAccessibilityID`,void 0),s(o(n),`_latestEditorState`,void 0),s(o(n),`_latestCommittedEditorState`,void 0),s(o(n),`_pendingStateFromBeforeInput`,void 0),s(o(n),`_onBeforeInput`,void 0),s(o(n),`_onBlur`,void 0),s(o(n),`_onCharacterData`,void 0),s(o(n),`_onCompositionEnd`,void 0),s(o(n),`_onCompositionStart`,void 0),s(o(n),`_onCopy`,void 0),s(o(n),`_onCut`,void 0),s(o(n),`_onDragEnd`,void 0),s(o(n),`_onDragOver`,void 0),s(o(n),`_onDragStart`,void 0),s(o(n),`_onDrop`,void 0),s(o(n),`_onInput`,void 0),s(o(n),`_onFocus`,void 0),s(o(n),`_onKeyDown`,void 0),s(o(n),`_onKeyPress`,void 0),s(o(n),`_onKeyUp`,void 0),s(o(n),`_onMouseDown`,void 0),s(o(n),`_onMouseUp`,void 0),s(o(n),`_onPaste`,void 0),s(o(n),`_onSelect`,void 0),s(o(n),`editor`,void 0),s(o(n),`editorContainer`,void 0),s(o(n),`focus`,void 0),s(o(n),`blur`,void 0),s(o(n),`setMode`,void 0),s(o(n),`exitCurrentMode`,void 0),s(o(n),`restoreEditorDOM`,void 0),s(o(n),`setClipboard`,void 0),s(o(n),`getClipboard`,void 0),s(o(n),`getEditorKey`,void 0),s(o(n),`update`,void 0),s(o(n),`onDragEnter`,void 0),s(o(n),`onDragLeave`,void 0),s(o(n),`_handleEditorContainerRef`,function(e){n.editorContainer=e,n.editor=e===null?null:e.firstChild}),s(o(n),`focus`,function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),i=n.editor;if(i){var a=x.getScrollParent(i),o=e||E(a),s=o.x,c=o.y;!k(i)&&O(!1),i.focus(),a===window?window.scrollTo(s,c):b.setTop(a,c),r||n.update(v.forceSelection(t,t.getSelection()))}}),s(o(n),`blur`,function(){var e=n.editor;e&&(!k(e)&&O(!1),e.blur())}),s(o(n),`setMode`,function(e){var t=n.props,r=t.onPaste,i=t.onCut,o=t.onCopy,s=a({},N.edit);r&&(s.onPaste=r),i&&(s.onCut=i),o&&(s.onCopy=o),n._handler=a({},N,{edit:s})[e]}),s(o(n),`exitCurrentMode`,function(){n.setMode(`edit`)}),s(o(n),`restoreEditorDOM`,function(e){n.setState({contentsKey:n.state.contentsKey+1},function(){n.focus(e)})}),s(o(n),`setClipboard`,function(e){n._clipboard=e}),s(o(n),`getClipboard`,function(){return n._clipboard}),s(o(n),`update`,function(e){n._latestEditorState=e,n.props.onChange(e)}
2740),s(o(n),`onDragEnter`,function(){n._dragCount++}),s(o(n),`onDragLeave`,function(){n._dragCount--,n._dragCount===0&&n.exitCurrentMode()}),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||w(),n._placeholderAccessibilityID=`placeholder-`+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler(`onBeforeInput`),n._onBlur=n._buildHandler(`onBlur`),n._onCharacterData=n._buildHandler(`onCharacterData`),n._onCompositionEnd=n._buildHandler(`onCompositionEnd`),n._onCompositionStart=n._buildHandler(`onCompositionStart`),n._onCopy=n._buildHandler(`onCopy`),n._onCut=n._buildHandler(`onCut`),n._onDragEnd=n._buildHandler(`onDragEnd`),n._onDragOver=n._buildHandler(`onDragOver`),n._onDragStart=n._buildHandler(`onDragStart`),n._onDrop=n._buildHandler(`onDrop`),n._onInput=n._buildHandler(`onInput`),n._onFocus=n._buildHandler(`onFocus`),n._onKeyDown=n._buildHandler(`onKeyDown`),n._onKeyPress=n._buildHandler(`onKeyPress`),n._onKeyUp=n._buildHandler(`onKeyUp`),n._onMouseDown=n._buildHandler(`onMouseDown`),n._onMouseUp=n._buildHandler(`onMouseUp`),n._onPaste=n._buildHandler(`onPaste`),n._onSelect=n._buildHandler(`onSelect`),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(h?h(function(){return r(t,n)}):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:A(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return y.createElement(g,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||``,t=this._showPlaceholder()?this._placeholderAccessibilityID:``;return e.replace(`{{editor_id_placeholder}}`,t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,s=e.customStyleMap,c=e.editorState,l=e.preventScroll,d=e.readOnly,p=e.textAlignment,m=e.textDirectionality,h=C({"DraftEditor/root":!0,"DraftEditor/alignLeft":p===`left`,"DraftEditor/alignRight":p===`right`,"DraftEditor/alignCenter":p===`center`}),g={outline:`none`,userSelect:`text`,WebkitUserSelect:`text`,whiteSpace:`pre-wrap`,wordWrap:`break-word`},_=this.props.role||`textbox`,v=_===`combobox`?!!this.props.ariaExpanded:null,b={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:a({},u,s),customStyleFn:o,editorKey:this._editorKey,editorState:c,preventScroll:l,textDirectionality:m};return y.createElement(`div`,{className:h},this._renderPlaceholder(),y.createElement(`div`,{className:C(`DraftEditor/editorContainer`),ref:this._handleEditorContainerRef},y.createElement(`div`,{"aria-activedescendant":d?null:this.props.ariaActiveDescendantID,"aria-autocomplete":d?null:this.props.ariaAutoComplete,"aria-controls":d?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":d?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":d?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:C({notranslate:!d,"public/DraftEditor/content":!0}),contentEditable:!d,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:d?null:_,spellCheck:M&&this.props.spellCheck,style:g,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},y.createElement(F,{editor:this,editorState:c}),y.createElement(f,i({},b,{key:`contents`+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!P&&D(`draft_ods_enabled`)&&(P=!0,_.initODS()),this.setMode(`edit`),j&&(this.editor?this.editor.ownerDocument.execCommand(`AutoUrlDetect`,!1,!1):global.execCommand(`AutoUrlDetect`,!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(y.Component);s(I,`defaultProps`,{ariaDescribedBy:`{{editor_id_placeholder}}`,blockRenderMap:l,blockRendererFn:function(){return null},blockStyleFn:function(){return``},keyBindingFn:T,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),n.exports=I})),dR=i((()=>{})),fR=i(((e,t)=>{t.exports={stringify:function(e){return`_`+String(e)},unstringify:function(e){return e.slice(1)}}})),pR=i(((e,t)=>{var n=fR(),r=EL().strlen;function i(e,t){var i=[];return e.findEntityRanges(function(e){return!!e.getEntity()},function(a,o){var s=e.getText(),c=e.getEntityAt(a);i.push({offset:r(s.slice(0,a)),length:r(s.slice(a,o)),key:Number(t[n.stringify(c)])})}),i}t.exports=i})),mR=i(((e,t)=>{var n=EL(),r=vF(),i=function(e,t){return e===t},a=function(e){return!!e},o=[];function s(e,t,o){var s=[];return r(t.map(function(e){return e.has(o)}).toList(),i,a,function(t,r){var i=e.getText();s.push({offset:n.strlen(i.slice(0,t)),length:n.strlen(i.slice(t,r)),style:o})}),s}function c(e){var t=e.getCharacterList().map(function(e){return e.getStyle()}).toList(),n=t.flatten().toSet().map(function(n){return s(e,t,n)});return Array.prototype.concat.apply(o,n.toJS())}t.exports=c})),hR=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}
2740))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=yF(),a=bF(),o=fR(),s=pR(),c=mR(),l=TF(),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}},d=function(e,t,r,o){if(e instanceof i){r.push(u(e,t));return}!(e instanceof a)&&l(!1);var s=e.getParentKey(),c=o[e.getKey()]=n({},u(e,t),{children:[]});if(s){o[s].children.push(c);return}r.push(c)},f=function(e,t){var n=t.entityMap,r=[],i={},a={},s=0;return e.getBlockMap().forEach(function(e){e.findEntityRanges(function(e){return e.getEntity()!==null},function(t){var r=e.getEntityAt(t),i=o.stringify(r);a[i]||(a[i]=r,n[i]=`${s}`,s++)}),d(e,n,r,i)}),{blocks:r,entityMap:n}},p=function(e,t){var n=t.blocks,r=t.entityMap,i={};return Object.keys(r).forEach(function(t,n){var r=e.getEntity(o.unstringify(t));i[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}}),{blocks:n,entityMap:i}};t.exports=function(e){var t={entityMap:{},blocks:[]};return t=f(e,t),t=p(e,t),t}})),gR=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=OF(),a=TF(),o=function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;!Array.isArray(i)&&a(!1),n=n.concat([].concat(i.reverse()))}},s=function(e){if(!(e&&e.type))return!1;var t=e.type;return t===`unordered-list-item`||t===`ordered-list-item`},c=function(e){Array.isArray(e.children)&&(e.children=e.children.map(function(t){return t.type===e.type?n({},t,{depth:(e.depth||0)+1}):t}))};t.exports={fromRawTreeStateToRawState:function(e){var t=e.blocks,r=[];return!Array.isArray(t)&&a(!1),!Array.isArray(t)||!t.length?e:(o(t,function(e){var t=n({},e);s(e)&&(t.depth=t.depth||0,c(e),e.children!=null&&e.children.length>0)||(delete t.children,r.push(t))}),e.blocks=r,n({},e,{blocks:r}))},fromRawStateToRawTreeState:function(e){var t=[],r=[];return e.blocks.forEach(function(e){var a=s(e),o=e.depth||0,c=n({},e,{children:[]});if(!a){t.push(c);return}var l=r[0];if(l==null&&o===0)t.push(c);else if(l==null||l.depth<o-1){var u={key:i(),text:``,depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(u),o===1?t.push(u):l?.children.push(u),u.children.push(c)}else if(l.depth===o-1)l.children.push(c);else{for(;l!=null&&l.depth>=o;)r.shift(),l=r[0];o>0?l.children.push(c):t.push(c)}}),n({},e,{blocks:t})}}})),_R=i(((e,t)=>{DL(),t.exports={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(r!=null&&!t.get(r).getChildKeys().includes(n)||!e.getChildKeys().map(function(e){return t.get(e)}).every(function(e){return e.getParentKey()===n}))return!1;var i=e.getPrevSiblingKey();if(i!=null&&t.get(i).getNextSiblingKey()!==n)return!1;var a=e.getNextSiblingKey();return!(a!=null&&t.get(a).getPrevSiblingKey()!==n||a!==null&&i!==null&&i===a||e.text!=``&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter(function(e){return e.getParentKey()==null&&e.getPrevSiblingKey()==null});if(t.length!==1)return!1;for(var n=t.shift(),r=0,i=n.getKey(),a=[];i!=null;){var o=e.get(i),s=o.getChildKeys(),c=o.getNextSiblingKey();if(s.size>0){c!=null&&a.unshift(c);var l=s.map(function(t){return e.get(t)}).find(function(e){return e.getPrevSiblingKey()==null});if(l==null)return!1;i=l.getKey()}else i=o.getNextSiblingKey()==null?a.shift():o.getNextSiblingKey();r++}return r===e.size},isValidTree:function(e){var t=this;return e.toArray().every(function(n){return t.isValidBlock(n,e)})?this.isConnectedTree(e):!1}}})),vR=i(((e,t)=>{var n=_F(),r=hF().List;function i(e,t){return r(e.map(function(e,r){var i=t[r];return n.create({style:e,entity:i})}))}t.exports=i})),yR=i(((e,t)=>{var n=EL().substr;function r(e,t){var r=Array(e.length).fill(null);return t&&t.forEach(function(t){for(var i=n(e,0,t.offset).length,a=i+n(e,t.offset,t.length).length,o=i;o<a;o++)r[o]=t.key}),r}t.exports=r})),bR=i(((e,t)=>{var n=EL(),r=hF().OrderedSet,i=n.substr,a=r();function o(e,t){var n=Array(e.length).fill(a);return t&&t.forEach(function(t){for(var r=i(e,0,t.offset).length,a=r+i(e,t.offset,t.length).length;r<a;)n[r]=n[r].add(t.style),r++}),n}t.exports=o})),xR=i(((e,t)=>{function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],i=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}
2740))),i.forEach(function(t){r(e,t,n[t])})}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=yF(),a=bF(),o=JF(),s=WF(),c=gR();_R();var l=GF(),u=vR(),d=yR(),f=bR(),p=OF(),m=KF(),h=hF(),g=TF(),_=m(`draft_tree_data_support`),v=h.List,y=h.Map,b=h.OrderedMap,x=function(e,t){var n=e.key,r=e.type,i=e.data;return{text:e.text,depth:e.depth||0,type:r||`unstyled`,key:n||p(),data:y(i),characterList:S(e,t)}},S=function(e,t){var r=e.text,i=e.entityRanges,a=e.inlineStyleRanges,o=i||[];return u(f(r,a||[]),d(r,o.filter(function(e){return t.hasOwnProperty(e.key)}).map(function(e){return n({},e,{key:t[e.key]})})))},C=function(e){return n({},e,{key:e.key||p()})},w=function(e,t,r){var i=t.map(function(e){return n({},e,{parentRef:r})});return e.concat(i.reverse())},T=function(e,t){return e.map(C).reduce(function(r,i,o){!Array.isArray(i.children)&&g(!1);var s=i.children.map(C),c=new a(n({},x(i,t),{prevSibling:o===0?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:v(s.map(function(e){return e.key}))}));r=r.set(c.getKey(),c);for(var l=w([],s,c);l.length>0;){var u=l.pop(),d=u.parentRef,f=d.getChildKeys(),p=f.indexOf(u.key),m=Array.isArray(u.children);if(!m){!m&&g(!1);break}var h=u.children.map(C),_=new a(n({},x(u,t),{parent:d.getKey(),children:v(h.map(function(e){return e.key})),prevSibling:p===0?null:f.get(p-1),nextSibling:p===f.size-1?null:f.get(p+1)}));r=r.set(_.getKey(),_),l=w(l,h,_)}return r},b())},E=function(e,t){return b(e.map(function(e){var n=new i(x(e,t));return[n.getKey(),n]}))},D=function(e,t){var n=e.blocks.find(function(e){return Array.isArray(e.children)&&e.children.length>0}),r=_&&!n?c.fromRawStateToRawTreeState(e).blocks:e.blocks;return _?T(r,t):E(n?c.fromRawTreeStateToRawState(e).blocks:r,t)},O=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach(function(e){var r=t[e],i=r.type,a=r.mutability,o=r.data;n[e]=s.__create(i,a,o||{})}),n};t.exports=function(e){!Array.isArray(e.blocks)&&g(!1);var t=O(e),n=D(e,t),r=n.isEmpty()?new l:l.createEmpty(n.first().getKey());return new o({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}})),SR=i(((e,t)=>{var n=FL();function r(e){var t=n(e),r=0,i=0,a=0,o=0;if(t.length){if(t.length>1&&t[0].width===0){var s=t[1];r=s.top,i=s.right,a=s.bottom,o=s.left}else{var c=t[0];r=c.top,i=c.right,a=c.bottom,o=c.left}for(var l=1;l<t.length;l++){var u=t[l];u.height!==0&&u.width!==0&&(r=Math.min(r,u.top),i=Math.max(i,u.right),a=Math.max(a,u.bottom),o=Math.min(o,u.left))}}return{top:r,right:i,bottom:a,left:o,width:i-o,height:a-r}}t.exports=r})),CR=i(((e,t)=>{var n=SR();function r(e){var t=e.getSelection();if(!t.rangeCount)return null;var r=n(t.getRangeAt(0)),i=r.top,a=r.right,o=r.bottom,s=r.left;return i===0&&a===0&&o===0&&s===0?null:r}t.exports=r})),wR=i(((e,t)=>{var n=nI(),r=gF(),i=_F(),a=rI(),o=yF(),s=JF(),c=aI(),l=oI(),u=uR(),d=nL(),f=WF(),p=zF(),m=HF(),h=eI(),g=NL(),_=dR(),v=rR(),y=GF(),b=hR(),x=xR(),S=OF(),C=lR(),w=CR();t.exports={Editor:u,EditorBlock:d,EditorState:h,CompositeDecorator:a,Entity:f,EntityInstance:m,BlockMapBuilder:r,CharacterMetadata:i,ContentBlock:o,ContentState:s,RawDraftContentState:_,SelectionState:y,AtomicBlockUtils:n,KeyBindingUtil:g,Modifier:p,RichUtils:v,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:eR(),convertFromRaw:x,convertToRaw:b,genKey:S,getDefaultKeyBinding:C,getVisibleSelectionRect:w}})),TR=i(((e,n)=>{(function(){typeof global>`u`&&(window.global=window)})(),(function(r,i){typeof e==`object`&&typeof n<`u`?i(e,t(),wR()):typeof define==`function`&&define.amd?define([`exports`,`react`,`draft-js`],i):(r=typeof globalThis<`u`?globalThis:r||self,i(r.ComChargoonCloudFrontEditor={},r.React,r.Draft))})(e,function(e,t,n){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,t)=>
2740{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:r(s(e)),d(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e));t=f(t);var p=(e,t)=>{let r=(0,n.convertToRaw)(e.getCurrentContent()),i=(0,n.convertToRaw)(t.getCurrentContent());return JSON.stringify(r)!==JSON.stringify(i)},m=(e,t,r,i)=>{let a=(0,n.convertToRaw)(t.getCurrentContent()),o=(0,n.convertToRaw)(r.getCurrentContent());return JSON.stringify(a)===JSON.stringify(o)||e.getCurrentContent().hasText()||r.getCurrentContent().hasText()?o:i},h=e=>{try{return JSON.parse(e)}catch{return{}}},g={toggleWrapper:(e,t,r)=>{let i=e.getSelection(),a=e.getSelection().getStartKey(),o=e.getCurrentContent(),s=o.getBlockForKey(a),c=g.ConvertBlockDataToObject(s),l=c?.wrappers??{},u={},{[t]:d,...f}=l;u=d&&d===r?{...f}:{...f,[t]:r};let p={...c,wrappers:u},m=g.convertBlockDataObjectToString(p),h=n.Modifier.setBlockData(o,e.getSelection(),m),_=n.EditorState.push(e,h,`change-block-data`);return _=n.EditorState.forceSelection(_,i),_},ConvertBlockDataToObject:(e=new n.ContentBlock)=>{let t=e.getData().toObject();return{classes:h(t?.classes??`{}`),wrappers:h(t?.wrappers??`{}`)}},convertBlockDataObjectToString:e=>({classes:JSON.stringify(e?.classes??{}),wrappers:JSON.stringify(e?.wrappers??{})}),toggleBlockClass:(e,t,r)=>{let i=e.getSelection(),a=e.getSelection().getStartKey(),o=e.getCurrentContent(),s=o.getBlockForKey(a),c=g.ConvertBlockDataToObject(s),l=c?.classes??{},u={},{[t]:d,...f}=l;u=d&&d===r?{...f}:{...f,[t]:r};let p={...c,classes:u},m=g.convertBlockDataObjectToString(p),h=n.Modifier.setBlockData(o,e.getSelection(),m),_=n.EditorState.push(e,h,`change-block-data`);return _=n.EditorState.forceSelection(_,i),_},toggleUnorderedListItem:e=>{let t=e.getSelection(),r=n.RichUtils.toggleBlockType(e,`unordered-list-item`);return r=n.EditorState.forceSelection(r,t),r},toggleOrderedListItem:e=>{let t=e.getSelection(),r=n.RichUtils.toggleBlockType(e,`ordered-list-item`);return r=n.EditorState.forceSelection(r,t),r},createNewLine:e=>{let t=e.getCurrentContent(),r=e.getSelection(),i=r.getStartKey(),a=n.Modifier.splitBlock(t,r),o=t.getBlockForKey(i).getData(),s=n.Modifier.setBlockData(a,a.getSelectionAfter(),o);return n.EditorState.push(e,s,`split-block`)},getWrapperData:(e,t)=>{let n=e.getSelection().getStartKey(),r=e.getCurrentContent().getBlockForKey(n),{wrappers:i}=g.ConvertBlockDataToObject(r),{[t]:a}=i;return a},setWrapperData:(e,t,r,i=!0)=>{let a=e.getSelection(),o=e.getSelection().getStartKey(),s=e.getCurrentContent(),c=s.getBlockForKey(o),l=g.ConvertBlockDataToObject(c),{wrappers:u}=l,{[t]:d,...f}=u,p={...l,wrappers:{...f,[t]:r}},m=g.convertBlockDataObjectToString(p),h=n.Modifier.setBlockData(s,e.getSelection(),m),_=n.EditorState.push(e,h,`change-block-data`);return i&&(_=n.EditorState.forceSelection(_,a)),_},getCurrentBlockWrappers:e=>{let t=e.getSelection().getStartKey(),{wrappers:n}=e.getCurrentContent().getBlockForKey(t).getData();return n},getCurrentBlockClasses:e=>{let t=e.getSelection().getStartKey(),{classes:n}=e.getCurrentContent().getBlockForKey(t).getData();return n}},_={toggleInlineClass:(e,t)=>{let r=e.getSelection(),i=n.RichUtils.toggleInlineStyle(e,t);return i=n.EditorState.forceSelection(i,r),i}},v={undo:e=>n.EditorState.undo(e),redo:e=>n.EditorState.redo(e),mergeEditorStates:(e,t)=>{let r=e.getCurrentContent(),i=t.getCurrentContent(),a=(0,n.convertToRaw)(i).entityMap;Object.keys(a).forEach(e=>{let t=a[e];r=r.createEntity(t.type,t.mutability,t.data);let o=r.getLastCreatedEntityKey();i.getBlockMap().forEach(t=>{t.findEntityRanges(t=>t.getEntity()===e,(e,i)=>{let a=n.SelectionState.createEmpty(t.getKey()).set(`anchorOffset`,e).set(`focusOffset`,i);r=n.Modifier.applyEntity(r,a,o)})})});let o=i.getBlockMap(),s=e.getSelection(),c=n.Modifier.replaceWithFragment(r,s,o);return n.EditorState.push(e,c,`insert-fragment`)},stringToEditorState:e=>
vendor: 55,520 bytes, line 2740
2740{try{let t=(0,n.convertFromRaw)(JSON.parse(e));return n.EditorState.createWithContent(t)}catch{return n.EditorState.createEmpty()}}},y={toggleBold:e=>_.toggleInlineClass(e,`BOLD`),toggleItalic:e=>_.toggleInlineClass(e,`ITALIC`),toggleUnderline:e=>_.toggleInlineClass(e,`UNDERLINE`),toggleStrikeThrough:e=>_.toggleInlineClass(e,`STRIKETHROUGH`),addCharacter:(e,t)=>{let r=e.getSelection(),i=e.getCurrentContent(),a=n.Modifier.insertText(i,r,t,null),o=n.EditorState.push(e,a,`insert-characters`),s=n.EditorState.moveSelectionToEnd(o,a.getSelectionAfter()),c=s.getCurrentContent().getSelectionAfter();return s=n.EditorState.forceSelection(s,c),s}},b=l(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Immutable=r()})(e,function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:se(e)}t(r,n);function r(e){return s(e)?e:ce(e)}t(i,n);function i(e){return c(e)?e:le(e)}t(a,n);function a(e){return o(e)&&!l(e)?e:B(e)}function o(e){return!!(e&&e[d])}function s(e){return!!(e&&e[f])}function c(e){return!!(e&&e[p])}function l(e){return s(e)||c(e)}function u(e){return!!(e&&e[m])}n.isIterable=o,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=r,n.Indexed=i,n.Set=a;var d=`@@__IMMUTABLE_ITERABLE__@@`,f=`@@__IMMUTABLE_KEYED__@@`,p=`@@__IMMUTABLE_INDEXED__@@`,m=`@@__IMMUTABLE_ORDERED__@@`,h=`delete`,g=5,_=1<<g,v=_-1,y={},b={value:!1},x={value:!1};function S(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function w(){}function T(e,t){t||=0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function E(e){return e.size===void 0&&(e.size=e.__iterate(O)),e.size}function D(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?E(e)+t:t}function O(){return!0}function k(e,t,n){return(e===0||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function A(e,t){return M(e,t,0)}function j(e,t){return M(e,t,t)}function M(e,t,n){return e===void 0?n:e<0?Math.max(0,t+e):t===void 0?e:Math.min(t,e)}var N=0,P=1,F=2,I=typeof Symbol==`function`&&Symbol.iterator,ee=`@@iterator`,L=I||ee;function R(e){this.next=e}R.prototype.toString=function(){return`[Iterator]`},R.KEYS=N,R.VALUES=P,R.ENTRIES=F,R.prototype.inspect=R.prototype.toSource=function(){return this.toString()},R.prototype[L]=function(){return this};function z(e,t,n,r){var i=e===0?t:e===1?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function te(){return{value:void 0,done:!0}}function ne(e){return!!ae(e)}function re(e){return e&&typeof e.next==`function`}function ie(e){var t=ae(e);return t&&t.call(e)}function ae(e){var t=e&&(I&&e[I]||e[ee]);if(typeof t==`function`)return t}function oe(e){return e&&typeof e.length==`number`}t(se,n);function se(e){return e==null?_e():o(e)?e.toSeq():be(e)}se.of=function(){return se(arguments)},se.prototype.toSeq=function(){return this},se.prototype.toString=function(){return this.__toString(`Seq {`,`}`)},se.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},se.prototype.__iterate=function(e,t){return Se(this,e,t,!0)},se.prototype.__iterator=function(e,t){return Ce(this,e,t,!0)},t(ce,se);function ce(e){return e==null?_e().toKeyedSeq():o(e)?s(e)?e.toSeq():e.fromEntrySeq():ve(e)}ce.prototype.toKeyedSeq=function(){return this},t(le,se);function le(e){return e==null?_e():o(e)?s(e)?e.entrySeq():e.toIndexedSeq():ye(e)}le.of=function(){return le(arguments)},le.prototype.toIndexedSeq=function(){return this},le.prototype.toString=function(){return this.__toString(`Seq [`,`]`)},le.prototype.__iterate=function(e,t){return Se(this,e,t,!1)},le.prototype.__iterator=function(e,t){return Ce(this,e,t,!1)},t(B,se);function B(e){return(e==null?_e():o(e)?s(e)?e.entrySeq():e:ye(e)).toSetSeq()}B.of=function(){return B(arguments)},B.prototype.toSetSeq=function(){return this},se.isSeq=he,se.Keyed=ce,se.Set=B,se.Indexed=le;var ue=`@@__IMMUTABLE_SEQ__@@`;se.prototype[ue]=!0,t(de,le);function de(e){this._array=e,this.size=e.length}de.prototype.get=function(e,t){return this.has(e)?this._array[D(this,e)]:t},de.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(e(n[t?r-i:i],i,this)===!1)return i+1;return i},de.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new R(function(){return i>r?te():z(e,i,n[t?r-i++:i++])})},t(fe,ce);function fe(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}fe.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},fe.prototype.has=function(e){return this._object.hasOwnProperty(e)},fe.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,a=0;a<=i;a++){var o=r[t?i-a:a];if(e(n[o],o,this)===!1)return a+1}return a},fe.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,a=0;return new R(function(){var o=r[t?i-a:a];return a++>i?te():z(e,o,n[o])})},fe.prototype[m]=!0,t(pe,le);function pe(e){this._iterable=e,this.size=e.length||e.size}pe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=ie(n),i=0;if(re(r))for(var a;!(a=r.next()).done&&e(a.value,i++,this)!==!1;);return i},pe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=ie(n);if(!re(r))return new R(te);var i=0;return new R(function(){var t=r.next();return t.done?t:z(e,i++,t.value)})},t(me,le);function me(e){this._iterator=e,this._iteratorCache=[]}me.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(e(r[i],i++,this)===!1)return i;for(var a;!(a=n.next()).done;){var o=a.value;if(r[i]=o,e(o,i++,this)===!1)break}return i},me.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new R(function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return z(e,i,r[i++])})};function he(e){return!!(e&&e[ue])}var ge;function _e(){return ge||=new de([])}function ve(e){var t=Array.isArray(e)?new de(e).fromEntrySeq():re(e)?new me(e).fromEntrySeq():ne(e)?new pe(e).fromEntrySeq():typeof e==`object`?new fe(e):void 0;if(!t)throw TypeError(`Expected Array or iterable object of [k, v] entries, or keyed object: `+e);return t}function ye(e){var t=xe(e);if(!t)throw TypeError(`Expected Array or iterable object of values: `+e);return t}function be(e){var t=xe(e)||typeof e==`object`&&new fe(e);if(!t)throw TypeError(`Expected Array or iterable object of values, or keyed object: `+e);return t}function xe(e){return oe(e)?new de(e):re(e)?new me(e):ne(e)?new pe(e):void 0}function Se(e,t,n,r){var i=e._cache;if(i){for(var a=i.length-1,o=0;o<=a;o++){var s=i[n?a-o:o];if(t(s[1],r?s[0]:o,e)===!1)return o+1}return o}return e.__iterateUncached(t,n)}function Ce(e,t,n,r){var i=e._cache;if(i){var a=i.length-1,o=0;return new R(function(){var e=i[n?a-o:o];return o++>a?te():z(t,r?e[0]:o-1,e[1])})}return e.__iteratorUncached(t,n)}function V(e,t){return t?we(t,e,``,{"":e}):Te(e)}function we(e,t,n,r){return Array.isArray(t)?e.call(r,n,le(t).map(function(n,r){return we(e,n,r,t)})):Ee(t)?e.call(r,n,ce(t).map(function(n,r){return we(e,n,r,t)})):t}function Te(e){return Array.isArray(e)?le(e).map(Te).toList():Ee(e)?ce(e).map(Te).toMap():e}function Ee(e){return e&&(e.constructor===Object||e.constructor===void 0)}function De(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf==`function`&&typeof t.valueOf==`function`){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(typeof e.equals==`function`&&typeof t.equals==`function`&&e.equals(t))}function Oe(e,t){if(e===t)return!0;if(!o(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&De(i[1],e)&&(n||De(i[0],t))})&&r.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult==`function`&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate(function(t,r){if(n?!e.has(t):i?!De(t,e.get(r,y)):!De(e.get(r,y),t))return d=!1,!1});return d&&e.size===f}t(ke,le);function ke(e,t){if(!(this instanceof ke))return new ke(e,t);if(this._value=e,this.size=t===void 0?1/0:Math.max(0,t),this.size===0){if(Ae)return Ae;Ae=this}}ke.prototype.toString=function(){return this.size===0?`Repeat []`:`Repeat [ `+this._value+` `+this.size+` times ]`},ke.prototype.get=function(e,t){return this.has(e)?this._value:t},ke.prototype.includes=function(e){return De(this._value,e)},ke.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:new ke(this._value,j(t,n)-A(e,n))},ke.prototype.reverse=function(){return this},ke.prototype.indexOf=function(e){return De(this._value,e)?0:-1},ke.prototype.lastIndexOf=function(e){return De(this._value,e)?this.size:-1},ke.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(e(this._value,n,this)===!1)return n+1;return n},ke.prototype.__iterator=function(e,t){var n=this,r=0;return new R(function(){return r<n.size?z(e,r++,n._value):te()})},ke.prototype.equals=function(e){return e instanceof ke?De(this._value,e._value):Oe(e)};var Ae;function je(e,t){if(!e)throw Error(t)}t(Me,le);function Me(e,t,n){if(!(this instanceof Me))return new Me(e,t,n);if(je(n!==0,`Cannot step a Range by 0`),e||=0,t===void 0&&(t=1/0),n=n===void 0?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),this.size===0){if(Ne)return Ne;Ne=this}}Me.prototype.toString=function(){return this.size===0?`Range []`:`Range [ `+this._start+`...`+this._end+(this._step===1?``:` by `+this._step)+` ]`},Me.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},Me.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Me.prototype.slice=function(e,t){return k(e,t,this.size)?this:(e=A(e,this.size),t=j(t,this.size),t<=e?new Me(0,0):new Me(this.get(e,this._end),this.get(t,this._end),this._step))},Me.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Me.prototype.lastIndexOf=function(e){return this.indexOf(e)},Me.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;a<=n;a++){if(e(i,a,this)===!1)return a+1;i+=t?-r:r}return a},Me.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;return new R(function(){var o=i;return i+=t?-r:r,a>n?te():z(e,a++,o)})},Me.prototype.equals=function(e){return e instanceof Me?this._start===e._start&&this._end===e._end&&this._step===e._step:Oe(this,e)};var Ne;t(Pe,n);function Pe(){throw TypeError(`Abstract`)}t(H,Pe);function H(){}t(U,Pe);function U(){}t(Fe,Pe);function Fe(){}Pe.Keyed=H,Pe.Indexed=U,Pe.Set=Fe;var Ie=typeof Math.imul==`function`?Math.imul:function(e,t){e|=0,t|=0;var n=e&65535,r=t&65535;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Le(e){return e>>>1&1073741824|e&3221225471}function Re(e){if(e===!1||e==null||typeof e.valueOf==`function`&&(e=e.valueOf(),e===!1||e==null))return 0;if(e===!0)return 1;var t=typeof e;if(t===`number`){if(e!==e||e===1/0)return 0;var n=e|0;for(n!==e&&(n^=e*4294967295);e>4294967295;)e/=4294967295,n^=e;return Le(n)}if(t===`string`)return e.length>Je?ze(e):Be(e);if(typeof e.hashCode==`function`)return e.hashCode();if(t===`object`)return Ve(e);if(typeof e.toString==`function`)return Be(e.toString());throw Error(`Value type `+t+` cannot be hashed.`)}function ze(e){var t=Ze[e];return t===void 0&&(t=Be(e),Xe===Ye&&(Xe=0,Ze={}),Xe++,Ze[e]=t),t}function Be(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Le(t)}function Ve(e){var t;if(We&&(t=Ge.get(e),t!==void 0)||(t=e[qe],t!==void 0)||!Ue&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[qe],t!==void 0||(t=W(e),t!==void 0)))return t;if(t=++Ke,Ke&1073741824&&(Ke=0),We)Ge.set(e,t);else if(He!==void 0&&He(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(Ue)Object.defineProperty(e,qe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[qe]=t;else if(e.nodeType!==void 0)e[qe]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}var He=Object.isExtensible,Ue=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function W(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var We=typeof WeakMap==`function`,Ge;We&&(Ge=new WeakMap);var Ke=0,qe=`__immutablehash__`;typeof Symbol==`function`&&(qe=Symbol(qe));var Je=16,Ye=255,Xe=0,Ze={};function Qe(e){je(e!==1/0,`Cannot perform this action with an infinite size.`)}t($e,H);function $e(e){return e==null?pt():et(e)&&!u(e)?e:pt().withMutations(function(t){var n=r(e);Qe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}$e.of=function(){var t=e.call(arguments,0);return pt().withMutations(function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw Error(`Missing value for key: `+t[n]);e.set(t[n],t[n+1])}})},$e.prototype.toString=function(){return this.__toString(`Map {`,`}`)},$e.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},$e.prototype.set=function(e,t){return mt(this,e,t)},$e.prototype.setIn=function(e,t){return this.updateIn(e,y,function(){return t})},$e.prototype.remove=function(e){return mt(this,e,y)},$e.prototype.deleteIn=function(e){return this.updateIn(e,function(){return y})},$e.prototype.update=function(e,t,n){return arguments.length===1?e(this):this.updateIn([e],t,n)},$e.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=Tt(this,An(e),t,n);return r===y?void 0:r},$e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):pt()},$e.prototype.merge=function(){return xt(this,void 0,arguments)},$e.prototype.mergeWith=function(t){var n=e.call(arguments,1);return xt(this,t,n)},$e.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,pt(),function(e){return typeof e.merge==`function`?e.merge.apply(e,n):n[n.length-1]})},$e.prototype.mergeDeep=function(){return xt(this,St,arguments)},$e.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return xt(this,Ct(t),n)},$e.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,pt(),function(e){return typeof e.mergeDeep==`function`?e.mergeDeep.apply(e,n):n[n.length-1]})},$e.prototype.sort=function(e){return Yt(yn(this,e))},$e.prototype.sortBy=function(e,t){return Yt(yn(this,t,e))},$e.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},$e.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new w)},$e.prototype.asImmutable=function(){return this.__ensureOwner()},$e.prototype.wasAltered=function(){return this.__altered},$e.prototype.__iterator=function(e,t){return new ct(this,e,t)},$e.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},$e.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?dt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)};function et(e){return!!(e&&e[tt])}$e.isMap=et;var tt=`@@__IMMUTABLE_MAP__@@`,nt=$e.prototype;nt[tt]=!0,nt[h]=nt.remove,nt.removeIn=nt.deleteIn;function rt(e,t){this.ownerID=e,this.entries=t}rt.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(De(n,i[a][0]))return i[a][1];return r},rt.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===y,c=this.entries,l=0,u=c.length;l<u&&!De(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(C(o),(s||!d)&&C(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=kt)return vt(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:T(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new rt(e,p)}};function it(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}it.prototype.get=function(e,t,n,r){t===void 0&&(t=Re(n));var i=1<<((e===0?t:t>>>e)&v),a=this.bitmap;return(a&i)===0?r:this.nodes[Et(a&i-1)].get(e+g,t,n,r)},it.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Re(r));var s=(t===0?n:n>>>t)&v,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===y)return this;var d=Et(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=ht(p,e,t+g,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=At)return bt(e,f,l,s,m);if(u&&!m&&f.length===2&&gt(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&gt(m))return m;var h=e&&e===this.ownerID,_=u?m?l:l^c:l|c,b=u?m?Dt(f,d,m,h):G(f,d,h):Ot(f,d,m,h);return h?(this.bitmap=_,this.nodes=b,this):new it(e,_,b)};function at(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}at.prototype.get=function(e,t,n,r){t===void 0&&(t=Re(n));var i=(e===0?t:t>>>e)&v,a=this.nodes[i];return a?a.get(e+g,t,n,r):r},at.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Re(r));var s=(t===0?n:n>>>t)&v,c=i===y,l=this.nodes,u=l[s];if(c&&!u)return this;var d=ht(u,e,t+g,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<jt))return yt(e,l,f,s);var p=e&&e===this.ownerID,m=Dt(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new at(e,f,m)};function ot(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}ot.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(De(n,i[a][0]))return i[a][1];return r},ot.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Re(r));var s=i===y;if(n!==this.keyHash)return s?this:(C(o),C(a),_t(this,e,t,n,[r,i]));for(var c=this.entries,l=0,u=c.length;l<u&&!De(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(C(o),(s||!d)&&C(a),s&&u===2)return new st(e,this.keyHash,c[l^1]);var f=e&&e===this.ownerID,p=f?c:T(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new ot(e,this.keyHash,p)};function st(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}st.prototype.get=function(e,t,n,r){return De(n,this.entry[0])?this.entry[1]:r},st.prototype.update=function(e,t,n,r,i,a,o){var s=i===y,c=De(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(C(o),s){C(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new st(e,this.keyHash,[r,i]):(C(a),_t(this,e,t,Re(r),[r,i]))},rt.prototype.iterate=ot.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},it.prototype.iterate=at.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&a.iterate(e,t)===!1)return!1}},st.prototype.iterate=function(e,t){return e(this.entry)},t(ct,R);function ct(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&ut(e._root)}ct.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i;if(n.entry){if(r===0)return lt(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return lt(e,n.entries[this._reverse?i-r:r])}else if(i=n.nodes.length-1,r<=i){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return lt(e,a.entry);t=this._stack=ut(a,t)}continue}t=this._stack=this._stack.__prev}return te()};function lt(e,t){return z(e,t[0],t[1])}function ut(e,t){return{node:e,index:0,__prev:t}}function dt(e,t,n,r){var i=Object.create(nt);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var ft;function pt(){return ft||=dt(0)}function mt(e,t,n){var r,i;if(e._root){var a=S(b),o=S(x);if(r=ht(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===y?-1:1:0)}else{if(n===y)return e;i=1,r=new rt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?dt(i,r):pt()}function ht(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===y?e:(C(s),C(o),new st(t,r,[i,a]))}function gt(e){return e.constructor===st||e.constructor===ot}function _t(e,t,n,r,i){if(e.keyHash===r)return new ot(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&v,o=(n===0?r:r>>>n)&v,s,c=a===o?[_t(e,t,n+g,r,i)]:(s=new st(t,r,i),a<o?[e,s]:[s,e]);return new it(t,1<<a|1<<o,c)}function vt(e,t,n,r){e||=new w;for(var i=new st(e,Re(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function yt(e,t,n,r){for(var i=0,a=0,o=Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];u!==void 0&&s!==r&&(i|=c,o[a++]=u)}return new it(e,i,o)}function bt(e,t,n,r,i){for(var a=0,o=Array(_),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new at(e,a+1,o)}function xt(e,t,n){for(var i=[],a=0;a<n.length;a++){var s=n[a],c=r(s);o(s)||(c=c.map(function(e){return V(e)})),i.push(c)}return wt(e,t,i)}function St(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):De(e,t)?e:t}function Ct(e){return function(t,n,r){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return De(t,i)?t:i}}function wt(e,t,n){return n=n.filter(function(e){return e.size!==0}),n.length===0?e:e.size===0&&!e.__ownerID&&n.length===1?e.constructor(n[0]):e.withMutations(function(e){for(var r=t?function(n,r){e.update(r,y,function(e){return e===y?n:t(e,n,r)})}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)})}function Tt(e,t,n,r){var i=e===y,a=t.next();if(a.done){var o=i?n:e,s=r(o);return s===o?e:s}je(i||e&&e.set,`invalid keyPath`);var c=a.value,l=i?y:e.get(c,y),u=Tt(l,t,n,r);return u===l?e:u===y?e.remove(c):(i?pt():e).set(c,u)}function Et(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function Dt(e,t,n,r){var i=r?e:T(e);return i[t]=n,i}function Ot(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function G(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}var kt=_/4,At=_/2,jt=_/4;t(Mt,U);function Mt(e){var t=Vt();if(e==null)return t;if(Nt(e))return e;var n=i(e),r=n.size;return r===0?t:(Qe(r),r>0&&r<_?zt(0,r,g,null,new It(n.toArray())):t.withMutations(function(e){e.setSize(r),n.forEach(function(t,n){return e.set(n,t)})}))}Mt.of=function(){return this(arguments)},Mt.prototype.toString=function(){return this.__toString(`List [`,`]`)},Mt.prototype.get=function(e,t){if(e=D(this,e),e>=0&&e<this.size){e+=this._origin;var n=Gt(this,e);return n&&n.array[e&v]}return t},Mt.prototype.set=function(e,t){return Ht(this,e,t)},Mt.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Mt.prototype.insert=function(e,t){return this.splice(e,0,t)},Mt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Vt()},Mt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){Kt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},Mt.prototype.pop=function(){return Kt(this,0,-1)},Mt.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){Kt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},Mt.prototype.shift=function(){return Kt(this,1)},Mt.prototype.merge=function(){return qt(this,void 0,arguments)},Mt.prototype.mergeWith=function(t){var n=e.call(arguments,1);return qt(this,t,n)},Mt.prototype.mergeDeep=function(){return qt(this,St,arguments)},Mt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return qt(this,Ct(t),n)},Mt.prototype.setSize=function(e){return Kt(this,0,e)},Mt.prototype.slice=function(e,t){var n=this.size;return k(e,t,n)?this:Kt(this,A(e,n),j(t,n))},Mt.prototype.__iterator=function(e,t){var n=0,r=Rt(this,t);return new R(function(){var t=r();return t===Lt?te():z(e,n++,t)})},Mt.prototype.__iterate=function(e,t){for(var n=0,r=Rt(this,t),i;(i=r())!==Lt&&e(i,n++,this)!==!1;);return n},Mt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?zt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)};function Nt(e){return!!(e&&e[Pt])}Mt.isList=Nt;var Pt=`@@__IMMUTABLE_LIST__@@`,Ft=Mt.prototype;Ft[Pt]=!0,Ft[h]=Ft.remove,Ft.setIn=nt.setIn,Ft.deleteIn=Ft.removeIn=nt.removeIn,Ft.update=nt.update,Ft.updateIn=nt.updateIn,Ft.mergeIn=nt.mergeIn,Ft.mergeDeepIn=nt.mergeDeepIn,Ft.withMutations=nt.withMutations,Ft.asMutable=nt.asMutable,Ft.asImmutable=nt.asImmutable,Ft.wasAltered=nt.wasAltered;function It(e,t){this.array=e,this.ownerID=t}It.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:this.array.length===0)return this;var r=n>>>t&v;if(r>=this.array.length)return new It([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-g,n),a===o&&i)return this}if(i&&!a)return this;var s=Wt(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},It.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||this.array.length===0)return this;var r=n-1>>>t&v;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-g,n),i===a&&r===this.array.length-1)return this}var o=Wt(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o};var Lt={};function Rt(e,t){var n=e._origin,r=e._capacity,i=Jt(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return t===0?s(e,n):c(e,t,n)}function s(e,o){var s=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,l=r-o;return l>_&&(l=_),function(){if(c===l)return Lt;var e=t?--l:c++;return s&&s[e]}}function c(e,i,a){var s,c=e&&e.array,l=a>n?0:n-a>>i,u=(r-a>>i)+1;return u>_&&(u=_),function(){do{if(s){var e=s();if(e!==Lt)return e;s=null}if(l===u)return Lt;var n=t?--u:l++;s=o(c&&c[n],i-g,a+(n<<i))}while(!0)}}}function zt(e,t,n,r,i,a,o){var s=Object.create(Ft);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}var Bt;function Vt(){return Bt||=zt(0,0,g)}function Ht(e,t,n){if(t=D(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?Kt(e,t).set(0,n):Kt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=S(x);return t>=Jt(e._capacity)?r=Ut(r,e.__ownerID,0,t,n,a):i=Ut(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):zt(e._origin,e._capacity,e._level,i,r):e}function Ut(e,t,n,r,i,a){var o=r>>>n&v,s=e&&o<e.array.length;if(!s&&i===void 0)return e;var c;if(n>0){var l=e&&e.array[o],u=Ut(l,t,n-g,r,i,a);return u===l?e:(c=Wt(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(C(a),c=Wt(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function Wt(e,t){return t&&e&&t===e.ownerID?e:new It(e?e.array.slice():[],t)}function Gt(e,t){if(t>=Jt(e._capacity))return e._tail;if(t<1<<e._level+g){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=g;return n}}function Kt(e,t,n){t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new w,i=e._origin,a=e._capacity,o=i+t,s=n===void 0?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var c=e._level,l=e._root,u=0;o+u<0;)l=new It(l&&l.array.length?[void 0,l]:[],r),c+=g,u+=1<<c;u&&(o+=u,i+=u,s+=u,a+=u);for(var d=Jt(a),f=Jt(s);f>=1<<c+g;)l=new It(l&&l.array.length?[l]:[],r),c+=g;var p=e._tail,m=f<d?Gt(e,s-1):f>d?new It([],r):p;if(p&&f>d&&o<a&&p.array.length){l=Wt(l,r);for(var h=l,_=c;_>g;_-=g){var y=d>>>_&v;h=h.array[y]=Wt(h.array[y],r)}h.array[d>>>g&v]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=g,l=null,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var b=o>>>c&v;if(b!==f>>>c&v)break;b&&(u+=(1<<c)*b),c-=g,l=l.array[b]}l&&o>i&&(l=l.removeBefore(r,c,o-u)),l&&f<d&&(l=l.removeAfter(r,c,f-u)),u&&(o-=u,s-=u)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):zt(o,s,c,l,m)}function qt(e,t,n){for(var r=[],a=0,s=0;s<n.length;s++){var c=n[s],l=i(c);l.size>a&&(a=l.size),o(c)||(l=l.map(function(e){return V(e)})),r.push(l)}return a>e.size&&(e=e.setSize(a)),wt(e,t,r)}function Jt(e){return e<_?0:e-1>>>g<<g}t(Yt,$e);function Yt(e){return e==null?$t():Xt(e)?e:$t().withMutations(function(t){var n=r(e);Qe(n.size),n.forEach(function(e,n){return t.set(n,e)})})}Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString(`OrderedMap {`,`}`)},Yt.prototype.get=function(e,t){var n=this._map.get(e);return n===void 0?t:this._list.get(n)[1]},Yt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Yt.prototype.set=function(e,t){return en(this,e,t)},Yt.prototype.remove=function(e){return en(this,e,y)},Yt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Yt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},Yt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Yt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Zt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)};function Xt(e){return et(e)&&u(e)}Yt.isOrderedMap=Xt,Yt.prototype[m]=!0,Yt.prototype[h]=Yt.prototype.remove;function Zt(e,t,n,r){var i=Object.create(Yt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}var Qt;function $t(){return Qt||=Zt(pt(),Vt())}function en(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===y){if(!o)return e;i.size>=_&&i.size>=r.size*2?(c=i.filter(function(e,t){return e!==void 0&&a!==t}),s=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=c.__ownerID=e.__ownerID)):(s=r.remove(t),c=a===i.size-1?i.pop():i.set(a,void 0))}else if(o){if(n===i.get(a)[1])return e;s=r,c=i.set(a,[t,n])}else s=r.set(t,i.size),c=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=c,e.__hash=void 0,e):Zt(s,c)}t(tn,ce);function tn(e,t){this._iter=e,this._useKeys=t,this.size=e.size}tn.prototype.get=function(e,t){return this._iter.get(e,t)},tn.prototype.has=function(e){return this._iter.has(e)},tn.prototype.valueSeq=function(){return this._iter.valueSeq()},tn.prototype.reverse=function(){var e=this,t=cn(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},tn.prototype.map=function(e,t){var n=this,r=sn(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},tn.prototype.__iterate=function(e,t){var n=this,r;return this._iter.__iterate(this._useKeys?function(t,r){return e(t,r,n)}:(r=t?Tn(this):0,function(i){return e(i,t?--r:r++,n)}),t)},tn.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(P,t),r=t?Tn(this):0;return new R(function(){var i=n.next();return i.done?i:z(e,t?--r:r++,i.value,i)})},tn.prototype[m]=!0,t(nn,le);function nn(e){this._iter=e,this.size=e.size}nn.prototype.includes=function(e){return this._iter.includes(e)},nn.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},nn.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t),r=0;return new R(function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)})},t(rn,B);function rn(e){this._iter=e,this.size=e.size}rn.prototype.has=function(e){return this._iter.includes(e)},rn.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},rn.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new R(function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)})},t(an,ce);function an(e){this._iter=e,this.size=e.size}an.prototype.entrySeq=function(){return this._iter.toSeq()},an.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){wn(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},an.prototype.__iterator=function(e,t){var n=this._iter.__iterator(P,t);return new R(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){wn(r);var i=o(r);return z(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},nn.prototype.cacheResult=tn.prototype.cacheResult=rn.prototype.cacheResult=an.prototype.cacheResult=On;function on(e){var t=Dn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=On,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===F){var r=e.__iterator(t,n);return new R(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===P?N:P,n)},t}function sn(e,t,n){var r=Dn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,y);return a===y?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return r(t.call(n,e,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(F,i);return new R(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return z(r,s,t.call(n,o[1],s,e),i)})},r}function cn(e,t){var n=Dn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=on(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=On,n.__iterate=function(t,n){var r=this;return e.__iterate(function(e,n){return t(e,n,r)},!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function ln(e,t,n,r){var i=Dn(e);return r&&(i.has=function(r){var i=e.get(r,y);return i!==y&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,y);return a!==y&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return s++,i(e,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(F,a),s=0;return new R(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return z(i,r?l:s++,u,a)}})},i}function un(e,t,n){var r=$e().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function dn(e,t,n){var r=s(e),i=(u(e)?Yt():$e()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return e||=[],e.push(r?[o,a]:a),e})});var a=En(e);return i.map(function(t){return Cn(e,a(t))})}function fn(e,t,n,r){var i=e.size;if(t!==void 0&&(t|=0),n!==void 0&&(n===1/0?n=i:n|=0),k(t,n,i))return e;var a=A(t,i),o=j(n,i);if(a!==a||o!==o)return fn(e.toSeq().cacheResult(),t,n,r);var s=o-a,c;s===s&&(c=s<0?0:s);var l=Dn(e);return l.size=c===0?c:e.size&&c||void 0,!r&&he(e)&&c>=0&&(l.get=function(t,n){return t=D(this,t),t>=0&&t<c?e.get(t+a,n):n}),l.__iterateUncached=function(t,n){var i=this;if(c===0)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,s=!0,l=0;return e.__iterate(function(e,n){if(!(s&&=o++<a))return l++,t(e,r?n:l-1,i)!==!1&&l!==c}),l},l.__iteratorUncached=function(t,n){if(c!==0&&n)return this.cacheResult().__iterator(t,n);var i=c!==0&&e.__iterator(t,n),o=0,s=0;return new R(function(){for(;o++<a;)i.next();if(++s>c)return te();var e=i.next();return r||t===P?e:t===N?z(t,s-1,void 0,e):z(t,s-1,e.value[1],e)})},l}function pn(e,t,n){var r=Dn(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(F,i),s=!0;return new R(function(){if(!s)return te();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],l=i[1];return t.call(n,l,c,a)?r===F?e:z(r,c,l,e):(s=!1,te())})},r}function mn(e,t,n,r){var i=Dn(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,c=0;return e.__iterate(function(e,a,l){if(!(s&&=t.call(n,e,a,l)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(F,a),c=!0,l=0;return new R(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===P?e:i===N?z(i,l++,void 0,e):z(i,l++,e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&=t.call(n,u,a,o)}while(c);return i===F?e:z(i,a,u,e)})},i}function hn(e,t){var n=s(e),i=[e].concat(t).map(function(e){return o(e)?n&&(e=r(e)):e=n?ve(e):ye(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(i.length===0)return e;if(i.length===1){var a=i[0];if(a===e||n&&s(a)||c(e)&&c(a))return a}var l=new de(i);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),l=l.flatten(!0),l.size=i.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),l}function gn(e,t,n){var r=Dn(e);return r.__iterateUncached=function(r,i){var a=0,s=!1;function c(e,l){var u=this;e.__iterate(function(e,i){return(!t||l<t)&&o(e)?c(e,l+1):r(e,n?i:a++,u)===!1&&(s=!0),!s},i)}return c(e,0),a},r.__iteratorUncached=function(r,i){var a=e.__iterator(r,i),s=[],c=0;return new R(function(){for(;a;){var e=a.next();if(e.done!==!1){a=s.pop();continue}var l=e.value;if(r===F&&(l=l[1]),(!t||s.length<t)&&o(l))s.push(a),a=l.__iterator(r,i);else return n?e:z(r,c++,l,e)}return te()})},r}function _n(e,t,n){var r=En(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function vn(e,t){var n=Dn(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e,r){return(!a||n(t,a++,i)!==!1)&&n(e,a++,i)!==!1},r),a},n.__iteratorUncached=function(n,r){var i=e.__iterator(P,r),a=0,o;return new R(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?z(n,a++,t):z(n,a++,o.value,o)})},n}function yn(e,t,n){t||=kn;var r=s(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?ce(a):c(e)?le(a):B(a)}function bn(e,t,n){if(t||=kn,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return xn(t,e[1],n[1])?n:e});return r&&r[0]}else return e.reduce(function(e,n){return xn(t,e,n)?n:e})}function xn(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function Sn(e,t,r){var i=Dn(e);return i.size=new de(r).map(function(e){return e.size}).min(),i.__iterate=function(e,t){for(var n=this.__iterator(P,t),r,i=0;!(r=n.next()).done&&e(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var a=r.map(function(e){return e=n(e),ie(i?e.reverse():e)}),o=0,s=!1;return new R(function(){var n;return s||=(n=a.map(function(e){return e.next()}),n.some(function(e){return e.done})),s?te():z(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function Cn(e,t){return he(e)?t:e.constructor(t)}function wn(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function Tn(e){return Qe(e.size),E(e)}function En(e){return s(e)?r:c(e)?i:a}function Dn(e){return Object.create((s(e)?ce:c(e)?le:B).prototype)}function On(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):se.prototype.cacheResult.call(this)}function kn(e,t){return e>t?1:e<t?-1:0}function An(e){var t=ie(e);if(!t){if(!oe(e))throw TypeError(`Expected iterable or array-like: `+e);t=ie(n(e))}return t}t(jn,H);function jn(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var o=Object.keys(e);Fn(i,o),i.size=o.length,i._name=t,i._keys=o,i._defaultValues=e}this._map=$e(a)},i=r.prototype=Object.create(Mn);return i.constructor=r,r}jn.prototype.toString=function(){return this.__toString(Pn(this)+` {`,`}`)},jn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},jn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},jn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||=Nn(this,pt())},jn.prototype.set=function(e,t){if(!this.has(e))throw Error(`Cannot set unknown key "`+e+`" on `+Pn(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Nn(this,n)},jn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Nn(this,t)},jn.prototype.wasAltered=function(){return this._map.wasAltered()},jn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterator(e,t)},jn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map(function(e,t){return n.get(t)}).__iterate(e,t)},jn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Nn(this,t,e):(this.__ownerID=e,this._map=t,this)};var Mn=jn.prototype;Mn[h]=Mn.remove,Mn.deleteIn=Mn.removeIn=nt.removeIn,Mn.merge=nt.merge,Mn.mergeWith=nt.mergeWith,Mn.mergeIn=nt.mergeIn,Mn.mergeDeep=nt.mergeDeep,Mn.mergeDeepWith=nt.mergeDeepWith,Mn.mergeDeepIn=nt.mergeDeepIn,Mn.setIn=nt.setIn,Mn.update=nt.update,Mn.updateIn=nt.updateIn,Mn.withMutations=nt.withMutations,Mn.asMutable=nt.asMutable,Mn.asImmutable=nt.asImmutable;function Nn(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Pn(e){return e._name||e.constructor.name||`Record`}function Fn(e,t){try{t.forEach(In.bind(void 0,e))}catch{}}function In(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){je(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}t(Ln,Fe);function Ln(e){return e==null?Wn():Rn(e)&&!u(e)?e:Wn().withMutations(function(t){var n=a(e);Qe(n.size),n.forEach(function(e){return t.add(e)})})}Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString(`Set {`,`}`)},Ln.prototype.has=function(e){return this._map.has(e)},Ln.prototype.add=function(e){return Vn(this,this._map.set(e,!0))},Ln.prototype.remove=function(e){return Vn(this,this._map.remove(e))},Ln.prototype.clear=function(){return Vn(this,this._map.clear())},Ln.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach(function(t){return e.add(t)})})},Ln.prototype.intersect=function(){var t=e.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.every(function(e){return e.includes(n)})||e.remove(n)})})},Ln.prototype.subtract=function(){var t=e.call(arguments,0);if(t.length===0)return this;t=t.map(function(e){return a(e)});var n=this;return this.withMutations(function(e){n.forEach(function(n){t.some(function(e){return e.includes(n)})&&e.remove(n)})})},Ln.prototype.merge=function(){return this.union.apply(this,arguments)},Ln.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Ln.prototype.sort=function(e){return Gn(yn(this,e))},Ln.prototype.sortBy=function(e,t){return Gn(yn(this,t,e))},Ln.prototype.wasAltered=function(){return this._map.wasAltered()},Ln.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t,r){return e(r,r,n)},t)},Ln.prototype.__iterator=function(e,t){return this._map.map(function(e,t){return t}).__iterator(e,t)},Ln.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)};function Rn(e){return!!(e&&e[zn])}Ln.isSet=Rn;var zn=`@@__IMMUTABLE_SET__@@`,Bn=Ln.prototype;Bn[zn]=!0,Bn[h]=Bn.remove,Bn.mergeDeep=Bn.merge,Bn.mergeDeepWith=Bn.mergeWith,Bn.withMutations=nt.withMutations,Bn.asMutable=nt.asMutable,Bn.asImmutable=nt.asImmutable,Bn.__empty=Wn,Bn.__make=Hn;function Vn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function Hn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var Un;function Wn(){return Un||=Hn(pt())}t(Gn,Ln);function Gn(e){return e==null?Xn():Kn(e)?e:Xn().withMutations(function(t){var n=a(e);Qe(n.size),n.forEach(function(e){return t.add(e)})})}Gn.of=function(){return this(arguments)},Gn.fromKeys=function(e){return this(r(e).keySeq())},Gn.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)};function Kn(e){return Rn(e)&&u(e)}Gn.isOrderedSet=Kn;var qn=Gn.prototype;qn[m]=!0,qn.__empty=Xn,qn.__make=Jn;function Jn(e,t){var n=Object.create(qn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var Yn;function Xn(){return Yn||=Jn($t())}t(Zn,U);function Zn(e){return e==null?rr():Qn(e)?e:rr().unshiftAll(e)}Zn.of=function(){return this(arguments)},Zn.prototype.toString=function(){return this.__toString(`Stack [`,`]`)},Zn.prototype.get=function(e,t){var n=this._head;for(e=D(this,e);n&&e--;)n=n.next;return n?n.value:t},Zn.prototype.peek=function(){return this._head&&this._head.value},Zn.prototype.push=function(){if(arguments.length===0)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):tr(e,t)},Zn.prototype.pushAll=function(e){if(e=i(e),e.size===0)return this;Qe(e.size);var t=this.size,n=this._head;return e.reverse().forEach(function(e){t++,n={value:e,next:n}}),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):tr(t,n)},Zn.prototype.pop=function(){return this.slice(1)},Zn.prototype.unshift=function(){return this.push.apply(this,arguments)},Zn.prototype.unshiftAll=function(e){return this.pushAll(e)},Zn.prototype.shift=function(){return this.pop.apply(this,arguments)},Zn.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):rr()},Zn.prototype.slice=function(e,t){if(k(e,t,this.size))return this;var n=A(e,this.size);if(j(t,this.size)!==this.size)return U.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):tr(r,i)},Zn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?tr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Zn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&e(r.value,n++,this)!==!1;)r=r.next;return n},Zn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new R(function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return te()})};function Qn(e){return!!(e&&e[$n])}Zn.isStack=Qn;var $n=`@@__IMMUTABLE_STACK__@@`,er=Zn.prototype;er[$n]=!0,er.withMutations=nt.withMutations,er.asMutable=nt.asMutable,er.asImmutable=nt.asImmutable,er.wasAltered=nt.wasAltered;function tr(e,t,n,r){var i=Object.create(er);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var nr;function rr(){return nr||=tr(0)}function ir(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function ar(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}n.Iterator=R,ir(n,{toArray:function(){Qe(this.size);var e=Array(this.size||0);return this.valueSeq().__iterate(function(t,n){e[n]=t}),e},toIndexedSeq:function(){return new nn(this)},toJS:function(){return this.toSeq().map(function(e){return e&&typeof e.toJS==`function`?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&typeof e.toJSON==`function`?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new tn(this,!0)},toMap:function(){return $e(this.toKeyedSeq())},toObject:function(){Qe(this.size);var e={};return this.__iterate(function(t,n){ar(n)||(e[n]=t)}),e},toOrderedMap:function(){return Yt(this.toKeyedSeq())},toOrderedSet:function(){return Gn(s(this)?this.valueSeq():this)},toSet:function(){return Ln(s(this)?this.valueSeq():this)},toSetSeq:function(){return new rn(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Zn(s(this)?this.valueSeq():this)},toList:function(){return Mt(s(this)?this.valueSeq():this)},toString:function(){return`[Iterable]`},__toString:function(e,t){return this.size===0?e+t:e+` `+this.toSeq().map(this.__toStringMapper).join(`, `)+` `+t},concat:function(){var t=e.call(arguments,0);return Cn(this,hn(this,t))},includes:function(e){return this.some(function(t){return De(t,e)})},entries:function(){return this.__iterator(F)},every:function(e,t){Qe(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return Cn(this,ln(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Qe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Qe(this.size),e=e===void 0?`,`:``+e;var t=``,n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=r==null?``:r.toString()}),t},keys:function(){return this.__iterator(N)},map:function(e,t){return Cn(this,sn(this,e,t))},reduce:function(e,t,n){Qe(this.size);var r,i;return arguments.length<2?i=!0:r=t,this.__iterate(function(t,a,o){i?(i=!1,r=t):r=e.call(n,r,t,a,o)}),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Cn(this,cn(this,!0))},slice:function(e,t){return Cn(this,fn(this,e,t,!0))},some:function(e,t){return!this.every(ur(e),t)},sort:function(e){return Cn(this,yn(this,e))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size===void 0?!this.some(function(){return!0}):this.size===0},count:function(e,t){return E(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return un(this,e,t)},equals:function(e){return Oe(this,e)},entrySeq:function(){var e=this;if(e._cache)return new de(e._cache);var t=e.toSeq().map(lr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(ur(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(O)},flatMap:function(e,t){return Cn(this,_n(this,e,t))},flatten:function(e){return Cn(this,gn(this,e,!0))},fromEntrySeq:function(){return new an(this)},get:function(e,t){return this.find(function(t,n){return De(n,e)},void 0,t)},getIn:function(e,t){for(var n=this,r=An(e),i;!(i=r.next()).done;){var a=i.value;if(n=n&&n.get?n.get(a,y):y,n===y)return t}return n},groupBy:function(e,t){return dn(this,e,t)},has:function(e){return this.get(e,y)!==y},hasIn:function(e){return this.getIn(e,y)!==y},isSubset:function(e){return e=typeof e.includes==`function`?e:n(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:n(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return De(t,e)})},keySeq:function(){return this.toSeq().map(cr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return bn(this,e)},maxBy:function(e,t){return bn(this,t,e)},min:function(e){return bn(this,e?dr(e):mr)},minBy:function(e,t){return bn(this,t?dr(t):mr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Cn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Cn(this,mn(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ur(e),t)},sortBy:function(e,t){return Cn(this,yn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Cn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Cn(this,pn(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ur(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=K(this)}});var or=n.prototype;or[d]=!0,or[L]=or.values,or.__toJS=or.toArray,or.__toStringMapper=fr,or.inspect=or.toSource=function(){return this.toString()},or.chain=or.flatMap,or.contains=or.includes,ir(r,{flip:function(){return Cn(this,on(this))},mapEntries:function(e,t){var n=this,r=0;return Cn(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Cn(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}});var sr=r.prototype;sr[f]=!0,sr[L]=or.entries,sr.__toJS=or.toObject,sr.__toStringMapper=function(e,t){return JSON.stringify(t)+`: `+fr(e)},ir(i,{toKeyedSeq:function(){return new tn(this,!1)},filter:function(e,t){return Cn(this,ln(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return t===void 0?-1:t},reverse:function(){return Cn(this,cn(this,!1))},slice:function(e,t){return Cn(this,fn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t|0,0),n===0||n===2&&!t)return this;e=A(e,e<0?this.count():this.size);var r=this.slice(0,e);return Cn(this,n===1?r:r.concat(T(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Cn(this,gn(this,e,!1))},get:function(e,t){return e=D(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=D(this,e),e>=0&&(this.size===void 0?this.indexOf(e)!==-1:this.size===1/0||e<this.size)},interpose:function(e){return Cn(this,vn(this,e))},interleave:function(){var e=[this].concat(T(arguments)),t=Sn(this.toSeq(),le.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Cn(this,n)}
2740,keySeq:function(){return Me(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Cn(this,mn(this,e,t,!1))},zip:function(){var e=[this].concat(T(arguments));return Cn(this,Sn(this,pr,e))},zipWith:function(e){var t=T(arguments);return t[0]=this,Cn(this,Sn(this,e,t))}}),i.prototype[p]=!0,i.prototype[m]=!0,ir(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=or.includes,a.prototype.contains=a.prototype.includes,ir(ce,r.prototype),ir(le,i.prototype),ir(B,a.prototype),ir(H,r.prototype),ir(U,i.prototype),ir(Fe,a.prototype);function cr(e,t){return t}function lr(e,t){return[t,e]}function ur(e){return function(){return!e.apply(this,arguments)}}function dr(e){return function(){return-e.apply(this,arguments)}}function fr(e){return typeof e==`string`?JSON.stringify(e):String(e)}function pr(){return T(arguments)}function mr(e,t){return e<t?1:e>t?-1:0}function K(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=+!!t;return hr(e.__iterate(n?t?function(e,t){r=31*r+gr(Re(e),Re(t))|0}:function(e,t){r=r+gr(Re(e),Re(t))|0}:t?function(e){r=31*r+Re(e)|0}:function(e){r=r+Re(e)|0}),r)}function hr(e,t){return t=Ie(t,3432918353),t=Ie(t<<15|t>>>-15,461845907),t=Ie(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Ie(t^t>>>16,2246822507),t=Ie(t^t>>>13,3266489909),t=Le(t^t>>>16),t}function gr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return{Iterable:n,Seq:se,Collection:Pe,Map:$e,OrderedMap:Yt,List:Mt,Stack:Zn,Set:Ln,OrderedSet:Gn,Record:jn,Range:Me,Repeat:ke,is:De,fromJS:V}})})),x=l(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),S=l(((e,t)=>{var n=x();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),C=l(((e,t)=>{t.exports=S()()})),w=f(b()),T=f(C());function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function D(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,O(e,t)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function k(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function A(e){return(0,n.getDefaultKeyBinding)(e)}function j(e,t,r,i){var a=i.setEditorState,o;switch(e){case`backspace`:case`backspace-word`:case`backspace-to-start-of-line`:o=n.RichUtils.onBackspace(t);break;case`delete`:case`delete-word`:case`delete-to-end-of-block`:o=n.RichUtils.onDelete(t);break;default:return`not-handled`}return o==null?`not-handled`:(a(o),`handled`)}var M=[`props`],N=[`props`];function P(e){return e.startsWith(`handle`)}function F(e){return e.startsWith(`on`)}function I(e){return e.endsWith(`Fn`)}function ee(e,t){return function(n){var r={props:{}};return e.forEach(function(e){if(typeof e.blockRendererFn==`function`){var i=e.blockRendererFn(n,t);if(i!=null){var a=i.props,o=k(i,M),s=r,c=s.props,l=k(s,N);r=E({},l,o,{props:E({},c,a)})}}}),r.component?r:!1}}function L(e,t){return function(n){var r=[];return e.forEach(function(e){if(typeof e.blockStyleFn==`function`){var i=e.blockStyleFn(n,t);i!=null&&r.push(i)}}),r.join(` `)}}function R(e,t){return function(n,r){var i;return e.some(function(e){return typeof e.customStyleFn==`function`?(i=e.customStyleFn(n,r,t),i!==void 0):!1})&&i?i:{}}}function z(e,t){return function(n){var r=null;return e.some(function(e){return typeof e.keyBindingFn==`function`?(r=e.keyBindingFn(n,t),r!==void 0):!1})?r:null}}function te(e,t,n){return function(){var r=[...arguments];return t.some(function(t){var i=t[e];return typeof i==`function`&&i.apply(void 0,r.concat([n]))===`handled`})?`handled`:`not-handled`}}function ne(e,t,n){return function(){var r=[...arguments];return t.some(function(t){var i=t[e];return typeof i==`function`&&i.apply(void 0,r.concat([n]))===!0})}}function re(e,t){var n={},r=new Set([`onChange`]);
2740return e.forEach(function(i){Object.keys(i).forEach(function(i){r.has(i)||(r.add(i),F(i)?n[i]=ne(i,e,t):P(i)?n[i]=te(i,e,t):I(i)&&(i===`blockRendererFn`?n.blockRendererFn=ee(e,t):i===`blockStyleFn`?n.blockStyleFn=L(e,t):i===`customStyleFn`?n.customStyleFn=R(e,t):i===`keyBindingFn`&&(n.keyBindingFn=z(e,t))))})}),n}function ie(e,r,i){return new n.CompositeDecorator((0,w.List)(e).map(function(e){var n=e.component;return E({},e,{component:function(e){return t.default.createElement(n,E({},e,{getEditorState:r,setEditorState:i}))}})}).toJS())}var ae=`-`,oe=function(){function e(e){this.decorators=w.default.List(e)}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this.decorators.forEach(function(r,i){r.getDecorations(e,t).forEach(function(e,t){e&&(n[t]=i+ae+e)})}),w.default.List(n)},t.getComponentForKey=function(t){return this.getDecoratorForKey(t).getComponentForKey(e.getInnerKey(t))},t.getPropsForKey=function(t){return this.getDecoratorForKey(t).getPropsForKey(e.getInnerKey(t))},t.getDecoratorForKey=function(e){var t=e.split(ae),n=Number(t[0]);return this.decorators.get(n)},e.getInnerKey=function(e){return e.split(ae).slice(1).join(ae)},e}(),se=function(e){return typeof e.getDecorations==`function`&&typeof e.getComponentForKey==`function`&&typeof e.getPropsForKey==`function`},ce=function(e){var t=e.decorators,n=e.plugins,r=n===void 0?[]:n;return(0,w.List)([{decorators:t}].concat(r)).filter(function(e){return e?.decorators!==void 0}).flatMap(function(e){return e?.decorators})};function le(e,t,n){var r=ce(e),i=ie(r.filter(function(e){return!se(e)}),t,n);return new oe(r.filter(function(e){return se(e)}).push(i))}var B=[`keyBindingFn`],ue=function(e){if(e?.decorators!=null)return e.decorators?.size;if(e?._decorators!=null)return e._decorators?.length},de=function(e){D(r,e);function r(t){var r=e.call(this,t)||this;return r.editor=null,r.state={readOnly:!1},r.onChange=function(e){var t=e;r.resolvePlugins().forEach(function(e){e.onChange&&(t=e.onChange(t,r.getPluginMethods()))}),r.props.onChange&&r.props.onChange(t)},r.getPlugins=function(){return[].concat(r.props.plugins)},r.getProps=function(){return E({},r.props)},r.getReadOnly=function(){return r.props.readOnly||r.state.readOnly},r.setReadOnly=function(e){e!==r.state.readOnly&&r.setState({readOnly:e})},r.getEditorRef=function(){return r.editor},r.getEditorState=function(){return r.props.editorState},r.getPluginMethods=function(){return{getPlugins:r.getPlugins,getProps:r.getProps,setEditorState:r.onChange,getEditorState:r.getEditorState,getReadOnly:r.getReadOnly,setReadOnly:r.setReadOnly,getEditorRef:r.getEditorRef}},r.createPluginHooks=function(){return re([r.props].concat(r.resolvePlugins()),r.getPluginMethods())},r.resolvePlugins=function(){var e=r.getPlugins();return r.props.defaultKeyBindings===!0&&e.push({keyBindingFn:A}),r.props.defaultKeyCommands===!0&&e.push({handleKeyCommand:j}),e},r.resolveCustomStyleMap=function(){return r.props.plugins.filter(function(e){return e.customStyleMap!==void 0}).map(function(e){return e.customStyleMap}).concat([r.props.customStyleMap]).reduce(function(e,t){return E({},e,t)},{})},r.resolveblockRenderMap=function(){var e=r.props.plugins.filter(function(e){return e.blockRenderMap!==void 0}).reduce(function(e,t){return e.merge(t.blockRenderMap)},(0,w.Map)({}));return r.props.defaultBlockRenderMap&&(e=n.DefaultDraftBlockRenderMap.merge(e)),r.props.blockRenderMap&&(e=e.merge(r.props.blockRenderMap)),e},r.resolveAccessibilityProps=function(){var e={};return r.resolvePlugins().forEach(function(t){if(typeof t.getAccessibilityProps==`function`){var n=t.getAccessibilityProps(),r={};e.ariaHasPopup===void 0?r.ariaHasPopup=n.ariaHasPopup:n.ariaHasPopup===`true`&&(r.ariaHasPopup=`true`),e.ariaExpanded===void 0?r.ariaExpanded=n.ariaExpanded:n.ariaExpanded===!0&&(r.ariaExpanded=!0),e=E({},e,n,r)}}),e},[r.props].concat(r.resolvePlugins()).forEach(function(e){e&&typeof e.initialize==`function`&&e.initialize(r.getPluginMethods())}),r}var i=r.prototype;return i.focus=function(){this.editor&&this.editor.focus()},i.blur=function(){this.editor&&this.editor.blur()},i.componentDidMount=function(){var e=le(this.props,this.getEditorState,this.onChange),t=n.EditorState.set(this.props.editorState,{decorator:e});this.onChange(n.EditorState.moveSelectionToEnd(t))},i.componentDidUpdate=function(e){var t=this.props,r=e.editorState.getDecorator(),i=t.editorState.getDecorator();if(r&&r!==i&&!(r&&i&&ue(r)===ue(i))){var a=n.EditorState.set(t.editorState,{decorator:r});this.onChange(n.EditorState.moveSelectionToEnd(a))}},i.componentWillUnmount=function(){var e=this;
2740this.resolvePlugins().forEach(function(t){t.willUnmount&&t.willUnmount({getEditorState:e.getEditorState,setEditorState:e.onChange})})},i.render=function(){var e=this,r=this.createPluginHooks(),i=this.resolveCustomStyleMap(),a=this.resolveAccessibilityProps(),o=this.resolveblockRenderMap(),s=this.props;s.keyBindingFn;var c=k(s,B);return t.default.createElement(n.Editor,E({},c,a,r,{readOnly:this.props.readOnly||this.state.readOnly,customStyleMap:i,blockRenderMap:o,onChange:this.onChange,editorState:this.props.editorState,ref:function(t){e.editor=t}}))},r}(t.Component);de.propTypes={editorState:T.default.object.isRequired,onChange:T.default.func.isRequired,plugins:T.default.array,defaultKeyBindings:T.default.bool,defaultKeyCommands:T.default.bool,defaultBlockRenderMap:T.default.bool,customStyleMap:T.default.object,decorators:T.default.array},de.defaultProps={defaultBlockRenderMap:!0,defaultKeyBindings:!0,defaultKeyCommands:!0,customStyleMap:{},plugins:[],decorators:[]};var fe=de,pe=u({ATOMIC:()=>he,TABLETYPE:()=>me}),me=`draft-js-table-plugin`,he=`atomic`;function ge(e,{columns:t,rows:r=[]}){if(n.RichUtils.getCurrentBlockType(e)===`atomic`)return e;let i=e.getCurrentContent(),a=Array.from({length:t}).map((e,t)=>({key:`Column${t}`,value:``})),o=Array.from({length:r}).map((e,r)=>({key:`Row${r}`,value:Array.from({length:t}).map((e,t)=>({key:`Row${r}Cell${t}`,value:JSON.stringify((0,n.convertToRaw)(n.EditorState.createEmpty().getCurrentContent()))}))})),s=i.createEntity(me,`IMMUTABLE`,{columns:a,rows:o}).getLastCreatedEntityKey();return n.AtomicBlockUtils.insertAtomicBlock(e,s,` `)}function _e(e,{columnsCount:t,rows:r}){if(n.RichUtils.getCurrentBlockType(e)===`atomic`)return e;let i=e.getCurrentContent(),a=Array.from({length:t}).map((e,t)=>({key:`Column${t}`,value:``})),o=r.map((e,t)=>({key:`Row${t}`,value:e.columns.map((e,n)=>({key:`Row${t}Cell${n}`,value:e.value}))})),s=i.createEntity(me,`IMMUTABLE`,{columns:a,rows:o}).getLastCreatedEntityKey();return n.AtomicBlockUtils.insertAtomicBlock(e,s,` `)}var ve=l((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ye=l(((e,t)=>{t.exports=ve()}))();function be(e,t){return function(n){return(0,ye.jsx)(e,{...t,...n})}}var xe={setLineHeight:(e,t,n)=>{let r=g.getWrapperData(e,`lineHeight`)??{lineHeight:0};return r.lineHeight=t,g.setWrapperData(e,`lineHeight`,r,n?.withFocusAgain??!0)},getLineHeight:e=>g.getWrapperData(e,`lineHeight`)??{lineHeight:0}},Se=e=>e*2.54/72,Ce=e=>e*72/2.54,V={lineHeight:(e,t,n)=>xe.setLineHeight(e,t,n),unordered:e=>g.toggleUnorderedListItem(e),ordered:e=>g.toggleOrderedListItem(e),undo:e=>v.undo(e),redo:e=>v.redo(e),bold:e=>y.toggleBold(e),italic:e=>y.toggleItalic(e),underLine:e=>y.toggleUnderline(e),strikethrough:e=>y.toggleStrikeThrough(e),rtl:e=>g.toggleBlockClass(e,`direction`,`rtl`),ltr:e=>g.toggleBlockClass(e,`direction`,`ltr`),alignJustify:e=>g.toggleBlockClass(e,`align`,`alignJustify`),alignLeft:e=>g.toggleBlockClass(e,`align`,`alignLeft`),alignCenter:e=>g.toggleBlockClass(e,`align`,`alignCenter`),alignRight:e=>g.toggleBlockClass(e,`align`,`alignRight`),indentIncrease:e=>{let t=g.getWrapperData(e,`indent`)??{depth:0};return t.depth+=1,g.setWrapperData(e,`indent`,t)},indentDecrease:e=>{let t=g.getWrapperData(e,`indent`)??{depth:0};return t?.depth>1?--t.depth:t.depth=0,g.setWrapperData(e,`indent`,t)},table:(e,{columns:t,rows:n})=>ge(e,{columns:t,rows:n}),symbol:(e,t)=>y.addCharacter(e,t),addContent:(e,t)=>v.mergeEditorStates(e,v.stringToEditorState(t)),addPlainText:(e,t)=>y.addCharacter(e,t)},we=class{constructor(e,t){this.emit=(e,t,n)=>{let r={commandName:e,data:t,options:n},i=new CustomEvent(this.eventName,{detail:r,bubbles:!0});this.element?.dispatchEvent?.(i)},this.eventName=e,this.callback=t}addEventListener(e){this.element=e,this.element?.addEventListener(this.eventName,this.callback)}removeEventListener(){this.element?.removeEventListener(this.eventName,this.callback)}};function Te(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,function(e){var t=Math.random()*16|0;return(e==`x`?t:t&3|8).toString(16)})}var Ee=class extends t.default.Component{constructor(e){super(e);let{value:t}=e;try{this.state={editorState:n.EditorState.createWithContent((0,n.c
2740onvertFromRaw)(JSON.parse(t)))}}catch{this.state={editorState:n.EditorState.createEmpty()}}this.handleChange=this.handleChange.bind(this),this.handleChangeState=this.handleChangeState.bind(this),this.handleChangeByToolbar=this.handleChangeByToolbar.bind(this),this.onClick=this.onClick.bind(this),this.onBlur=this.onBlur.bind(this),this.handleSelection=this.handleSelection.bind(this),this.eventListener=new we(`command`,this.listener),this.editorId=Te(),this.isSelected=!1}componentDidMount(){let{eventElement:e}=this.props;this.eventListener.addEventListener(e)}componentWillUnmount(){this.eventListener.removeEventListener()}handleChangeState=e=>{let{onToggleReadOnly:t}=this.props;this.setState(t=>({...t,editorState:e})),this.handleChange(e)};handleChange=e=>{let{onToggleReadOnly:t,onChange:n}=this.props;p(this.state.editorState,e)&&n?.(e)};handleChangeByToolbar=e=>{let{onToggleReadOnly:t,onChange:n}=this.props;if(this.isSelected){let{emit:t}=this?.eventListener??{};this.setState(t=>({...t,editorState:e}),()=>{n?.(this.state.editorState,!0),n?.(this.state.editorState,!1),t(`changedByToolbar`,{editorId:this.editorId,editorState:this.state.editorState})})}};listener=e=>{let{editorState:t}=this.state;(e?.detail?.commandName===`changedByToolbar`||e?.detail?.commandName===`select`)&&this.setState(t=>({...t,currentEditorState:e?.detail?.data?.editorState})),e?.detail?.commandName===`select`&&e?.detail?.data?.editorId!==this.editorId&&(this.isSelected=!1);let n=V?.[e?.detail?.commandName]?.(t,e?.detail?.data,e?.detail?.options);n&&this.handleChangeByToolbar(n)};onClick=e=>{let{onToggleReadOnly:t}=this.props;t(!0)};onBlur=e=>{let{onToggleReadOnly:t,onChange:n}=this.props;e.stopPropagation(),t(!1),n?.(this.state.editorState,!0)};handleSelection=e=>{e.stopPropagation(),this.isSelected=!0,this.eventListener.emit(`select`,{editorId:this.editorId,editorState:this.state.editorState})};render(){let{editorState:e}=this.state,{eventElement:t,disabled:n}=this.props;return(0,ye.jsx)(`div`,{onClick:this.handleSelection,role:`presentation`,style:{display:`flex`,flexDirection:`column`,flex:1},children:(0,ye.jsx)(`div`,{contentEditable:!1,onFocus:this.onClick,role:`presentation`,style:{display:`flex`,flexDirection:`column`,flex:1},children:(0,ye.jsx)(Ye,{eventElement:t,onChange:this.handleChange,onChangeState:this.handleChangeState,onBlur:this.onBlur,editorState:e,disabled:n})})})}},De=({onClick:e=()=>{}})=>(0,ye.jsx)(`span`,{onClick:e,style:{cursor:`pointer`,innerWidth:`15px`,innerHeight:`15px`},children:(0,ye.jsx)(`svg`,{id:`Plus`,x:0,y:0,viewBox:`0 0 52 52`,style:{enableBackground:`new 0 0 52 52`},children:(0,ye.jsxs)(`g`,{children:[(0,ye.jsx)(`path`,{d:`M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26
2741        S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z`}),(0,ye.jsx)(`path`,{d:`M38.5,25H27V14c0-0.553-0.448-1-1-1s-1,0.447-1,1v11H13.5c-0.552,0-1,0.447-1,1s0.448,1,1,1H25v12c0,0.553,0.448,1,1,1
2742        s1-0.447,1-1V27h11.5c0.552,0,1-0.447,1-1S39.052,25,38.5,25z`})]})})}),Oe=({onClick:e=()=>{}})=>(0,ye.jsx)(`span`,{onClick:e,style:{cursor:`pointer`,innerWidth:`15px`,innerHeight:`15px`},children:(0,ye.jsx)(`svg`,{id:`Minus`,x:0,y:0,viewBox:`0 0 52 52`,style:{enableBackground:`new 0 0 52 52`},children:(0,ye.jsxs)(`g`,{children:[(0,ye.jsx)(`path`,{d:`M26,0C11.664,0,0,11.663,0,26s11.664,26,26,26s26-11.663,26-26S40.336,0,26,0z M26,50C12.767,50,2,39.233,2,26
2743      S12.767,2,26,2s24,10.767,24,24S39.233,50,26,50z`}),(0,ye.jsx)(`path`,{d:`M39,25H13c-0.552,0-1,0.447-1,1s0.448,1,1,1h26c0.552,0,1-0.447,1-1S39.552,25,39,25z`})]})})}),ke=({style:e,onDelete:t,onAddAfter:n,onAddBefore:r,horizontal:i})=>(0,ye.jsx)(`div`,{"data-no-copy":!0,style:e,children:(0,ye.jsxs)(`div`,{style:{display:`flex`,flexDirection:`${i?`row`:`column`}`,height:`100%`,width:`100%`,gap:2,justifyContent:`end`},children:[t&&(0,ye.jsx)(`div`,{style:{flex:1,maxHeight:20,maxWidth:20},children:(0,ye.jsx)(Oe,{onClick:t})}),(0,ye.jsx)(`div`,{style:{flex:1,maxHeight:20,maxWidth:20},children:(0,ye.jsx)(De,{onClick:n})})]})}),Ae=class extends t.default.Component{constructor(e){super(e),this.state={isMouseDown:!1,x:0,y:0,w:0},this.handleMouseUp=this.handleMouseUp.bind(this),this.mouseDownHandler=this.mouseDownHandler.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleChange=this.handleChange.bind(this)}handleChange=e=>{let{onChange:t}=this.props;t(e)};
2743mouseDownHandler(e){let{colRef:t}=this.props,n=e.clientX,r=parseInt(t?.clientWidth,10);this.textRef.style.top=e.clientY-20+`px`,this.textRef.style.left=e.clientX+`px`,this.textRef.innerText=Se(r).toFixed(2),this.textRef.style.display=`block`,this.setState({x:n,w:r,isMouseDown:!0})}handleMouseMove(e){if(!this.state.isMouseDown)return;let t=this.state.x-e.clientX;this.textRef.style.top=e.clientY-20+`px`,this.textRef.style.left=e.clientX+`px`,this.textRef.innerText=Se(this.state.w+t).toFixed(2),this.handleChange(Se(this.state.w+t).toFixed(2))}handleMouseUp(e){if(!this.state.isMouseDown)return;this.state.isMouseDown=!1;let t=this.state.x-e.clientX;this.handleChange(Se(this.state.w+t).toFixed(2)),this.textRef.style.display=`none`}componentDidMount(){document.addEventListener(`mousemove`,this.handleMouseMove),document.addEventListener(`mouseup`,this.handleMouseUp)}componentWillUnmount(){document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp)}render(){return(0,ye.jsx)(`div`,{"data-no-copy":!0,ref:e=>this.ref=e,onMouseDown:this.mouseDownHandler,style:{position:`absolute`,top:0,left:0,bottom:0,width:`5px`,cursor:`col-resize`,userSelect:`none`},children:(0,ye.jsx)(`div`,{style:{position:`relative`},children:(0,ye.jsx)(`div`,{ref:e=>this.textRef=e,style:{display:`none`,position:`fixed`,backgroundColor:`black`,color:`white`,padding:`5px`,borderRadius:`5px`}})})})}},je=class extends t.default.Component{constructor(e){super(e),this.state={isMouseDown:!1,y:0,h:0},this.handleMouseUp=this.handleMouseUp.bind(this),this.mouseDownHandler=this.mouseDownHandler.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleChange=this.handleChange.bind(this)}handleChange=e=>{let{onChange:t}=this.props;t(e)};mouseDownHandler(e){let{colRef:t}=this.props,n=e.clientY,r=parseInt(t?.clientHeight,10);this.textRef.style.top=e.clientY-20+`px`,this.textRef.style.left=e.clientX+`px`,this.textRef.innerText=Se(r).toFixed(2),this.textRef.style.display=`inline-block`,this.setState({y:n,h:r,isMouseDown:!0})}handleMouseMove(e){if(!this.state.isMouseDown)return;let t=e.clientY-this.state.y;this.textRef.style.top=e.clientY-20+`px`,this.textRef.style.left=e.clientX+`px`,this.textRef.innerText=Se(this.state.h+t).toFixed(2),this.handleChange(Se(this.state.h+t).toFixed(2))}handleMouseUp(e){if(!this.state.isMouseDown)return;this.state.isMouseDown=!1;let t=e.clientY-this.state.y;this.handleChange(Se(this.state.h+t).toFixed(2)),this.textRef.style.display=`none`}componentDidMount(){document.addEventListener(`mousemove`,this.handleMouseMove),document.addEventListener(`mouseup`,this.handleMouseUp)}componentWillUnmount(){document.removeEventListener(`mousemove`,this.handleMouseMove),document.removeEventListener(`mouseup`,this.handleMouseUp)}render(){return(0,ye.jsx)(`div`,{"data-no-copy":!0,ref:e=>this.ref=e,onMouseDown:this.mouseDownHandler,style:{position:`absolute`,height:`5px`,left:0,bottom:0,right:0,cursor:`row-resize`,userSelect:`none`},children:(0,ye.jsx)(`div`,{style:{position:`relative`},children:(0,ye.jsx)(`div`,{ref:e=>this.textRef=e,style:{display:`none`,position:`fixed`,backgroundColor:`black`,color:`white`,padding:`5px`,borderRadius:`5px`}})})})}},Me=class extends t.default.Component{constructor(e){super(e),this.state={celRef:null}}render(){let{value:e,label:t,blockProps:n,onChange:r,onToggleReadOnly:i,disabled:a,theme:o,eventElement:s,hasEditOptions:c,onRowAddBefore:l,onRowDelete:u,onRowAddAfter:d,onAddColumnLeft:f,onAddColumnRight:p,onRemoveColumn:m,onChangeColSize:h,onChangeRowSize:g,columns:_,column:v,row:y,rowIndex:b,colIndex:x,hasLastCell:S}=this.props;return(0,ye.jsxs)(`td`,{"data-value":e.trim(),"data-label":t.trim(),style:{minWidth:`36px`,minHeight:`24px`,width:v.columnSize?Ce(v.columnSize):`34px`,height:y.rowSize?Ce(y.rowSize):`24px`,border:`1px solid #1f1f1f`,position:`relative`,verticalAlign:`top`,fontSize:`inherit`,wordBreak:`break-word`,overflowWrap:`break-word`},ref:e=>{this.state.celRef||this.setState(t=>({...t,celRef:e}))},contentEditable:!1,children:[(0,ye.jsx)(Ae,{colIndex:x,colRef:this.state.celRef,onChange:e=>h(e),children:v.columnSize}
2743),(0,ye.jsx)(je,{colIndex:x,colRef:this.state.celRef,onChange:e=>g(e),children:y.rowSize}),!a&&b===0&&c&&(0,ye.jsx)(ke,{style:{position:`absolute`,top:-21,left:0,width:40,height:20},ignoreOncopy:!0,horizontal:!0,onAddBefore:f,onDelete:m,onAddAfter:p}),(0,ye.jsx)(Ee,{eventElement:s,onToggleReadOnly:i,disabled:a,onChange:r,blockProps:n,value:e}),!a&&S&&(0,ye.jsx)(ke,{style:{position:`absolute`,bottom:0,left:-21,width:20,height:40},onAddBefore:l,onDelete:u,onAddAfter:d})]})}},Ne=class extends t.default.Component{onChangeCell=({row:e,cell:t})=>(r,i=!1)=>{let{blockProps:{editCell:a,getEditorState:o,setEditorState:s},onChange:c}=this.props,l=JSON.stringify((0,n.convertToRaw)(r.getCurrentContent())),u=a({row:e,cell:{...t,value:l},editorState:o(),block:this.props.block});i?s(u):c?.(u)};removeRow=({index:e})=>()=>{let{blockProps:{removeRow:t,rows:n,columns:r,getEditorState:i,setEditorState:a},onChange:o}=this.props,s=t({index:e,rows:n,columns:r,editorState:i(),block:this.props.block});a(s),o(s)};addRow=({index:e})=>()=>{let{blockProps:{addRow:t,rows:n,columns:r,getEditorState:i,setEditorState:a},onChange:o}=this.props,s=t({index:e,rows:n,columns:r,editorState:i(),block:this.props.block});a(s),o(s)};render(){return(0,ye.jsx)(`tr`,{style:{padding:`0.35em`,fontSize:`inherit`},children:this.props.row.value.map((e,t)=>(0,ye.jsx)(Me,{hasEditOptions:t===this.props.columns?.length-1,hasLastCell:t===this.props.columns?.length-1&&this.props.rowIndex===this.props.rows?.length-1,value:e.value,label:this.props.columns[t].value,theme:this.props.theme,onToggleReadOnly:this.props.onToggleReadOnly,eventElement:this.props.eventElement,disabled:this.props.disabled,onChange:this.onChangeCell({row:this.props.row,cell:e}),onChangeColSize:this.props.onChangeColSize(this.props.columns[t]),onChangeRowSize:this.props.onChangeRowSize({row:this.props.row,cell:e}),onRowAddBefore:this.addRow({index:this.props.rowIndex}),onRowDelete:this.props.isOnlyRow?null:this.removeRow({index:this.props.rowIndex}),onRowAddAfter:this.addRow({index:this.props.rowIndex+1}),onAddColumnLeft:this.props.onAddColumnLeft({index:t}),onAddColumnRight:this.props.onAddColumnRight({index:t+1}),onRemoveColumn:this.props.onRemoveColumn?.({index:t}),blockProps:this.props.blockProps,columns:this.props.columns,rowIndex:this.props.rowIndex,colIndex:t,column:this.props.columns[t],row:this.props.row},e.key))})}},Pe=class extends t.default.Component{state={showEditOptions:!1};onChangeRowSize=({row:e,cell:t})=>t=>{let{blockProps:{rows:n,editRow:r,getEditorState:i,setEditorState:a},block:o,onChange:s}=this.props,c=r({editorState:i(),row:{...e,rowSize:t},block:o});a(c),s(c)};onChangeColSize=e=>t=>{let{blockProps:{columns:n,editColumn:r,getEditorState:i,setEditorState:a},block:o,onChange:s}=this.props,c=r({editorState:i(),columns:n,column:{...e,columnSize:t},block:o});a(c),s(c)};addColumn=({index:e})=>()=>{let{blockProps:{addColumn:t,columns:n,rows:r,getEditorState:i,setEditorState:a},block:o,onChange:s}=this.props,c=t({columns:n,rows:r,index:e,editorState:i(),block:o});a(c),s(c)};onRemoveColumn=({index:e})=>()=>{let{blockProps:{removeColumn:t,columns:n,rows:r,getEditorState:i,setEditorState:a},block:o,onChange:s}=this.props,c=t({columns:n,rows:r,index:e,editorState:i(),block:o});a(c),s(c)};render(){let{blockProps:e,block:t,theme:n,onToggleReadOnly:r,onChange:i,eventElement:a,disabled:o}=this.props,{columns:s,rows:c}=e;return(0,ye.jsx)(`table`,{style:{borderCollapse:`collapse`,margin:1,padding:1,tableLayout:`fixed`,borderSpacing:0,fontSize:`inherit`},children:(0,ye.jsx)(`tbody`,{style:{fontSize:`inherit`},children:c.map((l,u)=>(0,ye.jsx)(Ne,{row:l,isOnlyRow:c.length===1,rows:c,theme:n,block:t,blockProps:e,rowIndex:u,columns:s,onToggleReadOnly:r,onChange:i,onChangeColSize:this.onChangeColSize,onChangeRowSize:this.onChangeRowSize,eventElement:a,disabled:o,onAddColumnLeft:this.addColumn,onAddColumnRight:this.addColumn,onRemoveColumn:s.length>1?this.onRemoveColumn:null},l.key))})})}},H=({editorState:e,row:t,block:r})=>{let i=t,a=e.getCurrentContent(),o=r.getEntityAt(0),s=a.getEntity(o);if(!s)return e;let{columns:c,rows:l}=s.getData(),u=l.map(e=>e.key===t.key?{key:t.key,...i}:e),d=a.replaceEntityData(o,{columns:c,rows:u}),f=n.EditorState.push(e,d,`insert-fragment`);return n.EditorState.forceSelection(f,f.getSelection())},U=({editorState:e,columns:t,column:r,block:i})=>{let a=t.map(e=>e.key===r.key?{...e,...r}:e),o=e.getCurrentContent(),s=i.getEntityAt(0),{rows:c}=o.getEntity(s).getData();if(!s)return e;let l=o.replaceEntityData(s,{columns:a,rows:c}),u=n.EditorState.push(e,l,`insert-fragment`);return n.EditorState.forceSelection(u,u.getSelection())},Fe=({editorState:e,cell:t,row:r,block:i})=>{let a=r.value.map(e=>({...e,value:e.key===t.key?t.value:e.value})),o=e.getCurrentContent(),s=i.getEntityAt(0),c=o.getEntity(s);if(!c)return e;let{columns:l,rows:u}=c.getData(),d=u.map(e=>e.key===r.key?{...r,value:a}:e),f=o.replaceEntityData(s,{columns:l,rows:d}),p=n.EditorState.push(e,f,`insert-fragment`);
2743return n.EditorState.forceSelection(p,p.getSelection())},Ie=({columns:e,rows:t,index:r,block:i,editorState:a})=>{let o=a.getCurrentContent(),s=i.getEntityAt(0);if(!s)return a;let c={key:`Column${r}Inserted${e.length}`,value:``},l=[...e.slice(0,r),c,...e.slice(r)],u=t.map(e=>{let t={key:`Row${r}Inserted${e.value.length}`,value:``};return{key:e.key,...e,value:[...e.value.slice(0,r),t,...e.value.slice(r)]}}),d=o.replaceEntityData(s,{columns:l,rows:u}),f=n.EditorState.push(a,d,`insert-fragment`);return n.EditorState.forceSelection(f,f.getSelection())},Le=({columns:e,rows:t,index:r,block:i,editorState:a})=>{let o=a.getCurrentContent(),s=i.getEntityAt(0);if(!s)return a;let c=r>0?[...e.slice(0,r),...e.slice(r+1)]:e.slice(1),l=t.map(e=>({key:e.key,...e,value:r>0?[...e.value.slice(0,r),...e.value.slice(r+1)]:e.value.slice(1)})),u=o.replaceEntityData(s,{columns:c,rows:l}),d=n.EditorState.push(a,u,`insert-fragment`);return n.EditorState.forceSelection(d,d.getSelection())},Re=({columns:e,rows:t,index:r,block:i,editorState:a})=>{let o=a.getCurrentContent(),s=i.getEntityAt(0);if(!s)return a;let c={key:`InsertedRow${r}${t.length}`,value:Array.from({length:e.length}).map((e,t)=>({key:`InsertedRow${t}`,value:``}))},l=[...t.slice(0,r),c,...t.slice(r)],u=o.replaceEntityData(s,{columns:e,rows:l}),d=n.EditorState.push(a,u,`insert-fragment`);return n.EditorState.forceSelection(d,d.getSelection())},ze=({columns:e,rows:t,index:r,block:i,editorState:a})=>{let o=a.getCurrentContent(),s=i.getEntityAt(0);if(!s)return a;let c=t.filter((e,t)=>t!==r),l=o.replaceEntityData(s,{columns:e,rows:c}),u=n.EditorState.push(a,l,`insert-fragment`);return n.EditorState.forceSelection(u,u.getSelection())},Be=({tableComponent:e,onToggleReadOnly:t,eventElement:n,onChange:r,disabled:i,theme:a,decorator:o,render:s}={})=>{let c=e||Pe;o&&(c=o(c));let l=be(c,{onToggleReadOnly:t,eventElement:n,disabled:i,onChange:r});return s&&(l=()=>s),{blockRendererFn:(e,{getEditorState:t,setEditorState:n})=>{if(e.getType()===`atomic`)try{let r=t().getCurrentContent().getEntity(e.getEntityAt(0));if(!r)return null;let i=r.getType(),{columns:a,rows:o}=r.getData();if(i===`draft-js-table-plugin`)return{component:l,editable:!0,props:{columns:a,rows:o,getEditorState:t,setEditorState:n,editRow:H,editColumn:U,editCell:Fe,addColumn:Ie,removeColumn:Le,removeRow:ze,addRow:Re}}}catch{return null}return null},types:pe}},Ve={alignLeft:`alignment-DraftStyleDefault-alignLeft`,alignRight:`alignment-DraftStyleDefault-alignRight`,alignCenter:`alignment-DraftStyleDefault-alignCenter`,alignJustify:`alignment-DraftStyleDefault-alignJustify`,rtl:`alignment-DraftStyleDefault-rtl`,ltr:`alignment-DraftStyleDefault-ltr`},He=()=>({blockStyleFn:e=>{let{classes:t}=g.ConvertBlockDataToObject(e);return Object.values(t).map(e=>Ve[e]).join(` `)}}),Ue=({children:e,data:t,classes:n})=>(0,ye.jsx)(`div`,{style:{"padding-inline-start":t.depth*32},children:e});Ue.propTypes={children:T.default.oneOfType([T.default.arrayOf(T.default.node),T.default.node]).isRequired,data:T.default.shape({depth:T.default.number.isRequired})},Ue.defaultProps={data:{depth:1}};var W=({children:e,data:t,classes:n})=>(0,ye.jsx)(`div`,{style:{"line-height":t.lineHeight},children:e});W.propTypes={children:T.default.oneOfType([T.default.arrayOf(T.default.node),T.default.node]).isRequired,data:T.default.shape({lineHeight:T.default.number.isRequired}),classes:T.default.shape()},W.defaultProps={data:{lineHeight:1}};var We={indent:{props:{},component:Ue,priority:1},lineHeight:{props:{},component:W,priority:1}},Ge=()=>({blockRendererFn:e=>({component:Ke,props:{}})}),Ke=e=>{let{block:t,contentState:n,blockProps:r}=e,{wrappers:i}=g.ConvertBlockDataToObject(t);return(0,ye.jsx)(qe,{wrappers:Object.keys(i).reduce((e,t)=>[...e,{comp:We[t]||null,data:i[t]}],[]),props:e})},qe=({wrappers:e,props:t})=>{let[r,...i]=e;if(!r)return(0,ye.jsx)(n.EditorBlock,{...t});let{comp:{component:a},data:o}=r;return(0,ye.jsx)(a,{data:o,children:(0,ye.jsx)(qe,{wrappers:i,props:t})})},Je=({onToggleReadOnly:e,eventElement:t,disabled:n,onChange:r})=>[He(),Ge(),Be({onToggleReadOnly:e,eventElement:t,disabled:n,onChange:r})],Ye=class extends t.Component{constructor(e){super(e);let{eventElement:t,disabled:n}=e;this.state={readOnly:!1,plugins:Je({onToggleReadOnly:this.onToggleReadOnly,eventElement:t,disabled:n,onChange:this.handleChange})},this.handleChange=this.handleChange.bind(this),this.handleChangeState=this.handleChangeState.bind(this),this.onToggleReadOnly=this.onToggleReadOnly.bind(this),this.handleFocus=this.handleFocus.bind(this)}shouldComponentUpdate(e,t){let{eventElement:n,disabled:r}=this.props;return e?.eventElement&&e?.eventElement!==n||e.disabled!==r?(this.setState(t=>({...t,plugins:Je({onToggleReadOnly:this.onToggleReadOnly,eventElement:e?.eventElement,disabled:e.disabled,onChange:this.handleChange})})),!1):!0}handleChange=e=>{let{onChange:t}=this.props;t(e)};handleChangeState=e=>{let{onChangeState:t}=this.props;t(e)};onToggleReadOnly=e=>{this.setState(t=>({...t,readOnly:e}))};handleFocus=e=>{this.ref.focus()};render(){let{readOnly:e,plugins:t}=this.state,{editorState:n,onBlur:r,onFocus:i,disabled:a,keyBindingFn:o,handleKeyCommand:s,onChange:c,onChangeState:l}=this.props;return(0,ye.jsx)(`div`,{ref:this.currentEditorRef,style:{display:`flex`,flexDirection:`column`,flex:1},children:(0,ye.jsx)(`div`,{ref:e=>{this.editorRef=e},role:`presentation`,onClick:this.handleFocus,style:{display:`flex`,flexDirection:`column`,flex:1,"& figure":{display:`block`,border:0,margin:0,padding:0}},children:(0,ye.jsx)(fe,{editorState:n,onChange:l,plugins:t,readOnly:a||e,ref:e=>this.ref=e,onBlur:r,onFocus:i,keyBindingFn:o,handleKeyCommand:s,handlePastedText:(e,t,n
2743)=>{if(!t)return!1;let r=n,i=new DOMParser().parseFromString(t,`text/html`);return r=Qe(r,i.body.childNodes),this.handleChangeState(r),`handled`}})})})}};function Xe(e,t){let r=e,i=(0,n.convertFromHTML)(t.innerHTML),a=n.ContentState.createFromBlockArray(i.contentBlocks,i.entityMap),o;return t.previousElementSibling&&(o=n.Modifier.splitBlock(r.getCurrentContent(),r.getSelection())),o=n.Modifier.replaceWithFragment(o??r.getCurrentContent(),o?.getSelectionAfter()??r.getSelection(),a.getBlockMap()),n.EditorState.push(r,o,`insert-fragment`)}function Ze(e,t){let r=e,i=e.querySelector(`tr:first-child`).querySelectorAll(`td`).length,a=e.querySelectorAll(`tr`),o=[];return a.forEach((e,t)=>{e.nodeName===`TR`&&(o.push({columns:[]}),e.childNodes.forEach(e=>{if(e.nodeName===`TD`){let r=n.EditorState.createEmpty();r=Qe(r,e.childNodes),o[t].columns.push({value:JSON.stringify((0,n.convertToRaw)(r.getCurrentContent()))})}}),r.getAttribute(`dir`)!==`rtl`&&(o[t].columns=o[t].columns.reverse()))}),_e(t,{columnsCount:i,rows:o})}function Qe(e,t){let n=e;return t.forEach(e=>{try{if(e.getAttribute(`data-no-copy`)||(e.nodeName===`TABLE`?n=Ze(e,n):e.nodeName===`P`||e.nodeName===`SPAN`?n=Xe(n,e):(e.nodeName===`DIV`||e.nodeName===`FIGURE`||e.nodeName===`B`)&&(e.previousElementSibling&&!e.previousElementSibling.getAttribute(`data-no-copy`)&&e.nodeName===`DIV`&&(n=g.createNewLine(n)),n=Qe(n,e.childNodes))),e.style?.cssText.indexOf(!1)){let t=e.style.cssText.match(/text\-align\s?\:\s?(\w+)/i)[1];n=g.toggleBlockClass(n,`align`,`align${t.charAt(0).toUpperCase()}${t.slice(1)}`)}e.style?.cssText.indexOf(!1)&&(n=g.toggleBlockClass(n,`direction`,e.style.cssText.match(/direction\s?\:\s?(\w+)/i)[1]))}catch{}}),n}var $e=e=>e.keyCode===9?`tab`:e.keyCode===13?`enter`:(0,n.getDefaultKeyBinding)(e),et=class extends t.default.Component{constructor(e){super(e);let{defaultValue:t}=e;this.initValue=t;try{this.editorState=t?n.EditorState.createWithContent((0,n.convertFromRaw)(t)):n.EditorState.createEmpty(),this.state={editorState:this.editorState,initState:this.editorState,currentEditorState:null}}catch{this.editorState=n.EditorState.createEmpty(),this.state={editorState:this.editorState,initState:this.editorState,currentEditorState:null}}this.handleKeyCommand=this.handleKeyCommand.bind(this),this.handleChangeState=this.handleChangeState.bind(this),this.handleChange=this.handleChange.bind(this),this.handleKeyCommand=this.handleKeyCommand.bind(this),this.createNewLine=this.createNewLine.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleChangeByToolbar=this.handleChangeByToolbar.bind(this),this.eventListener=new we(`command`,this.listener),this.editorId=Te(),this.isSelected=!0}componentDidMount(){this.eventElement&&this.eventListener.addEventListener(this.eventElement)}componentWillUnmount(){this?.eventListener?.removeEventListener?.()}getCurrentBlock=e=>{let t=e.getSelection().getStartKey();return e.getCurrentContent().getBlockForKey(t)};handleChangeState=e=>{this.setState(t=>({...t,editorState:e})),p(this.state.editorState,e)&&this.handleChange(e)};handleChange=e=>{let{onChange:t}=this.props;this.editorState=e;let n=m(this.state.initState,this.state.editorState,e,this.initValue);t&&t?.(n)};handleChangeByToolbar=e=>{let{onChange:t}=this.props;if(this.isSelected){let{emit:r}=this?.eventListener??{};this.setState(t=>({...t,editorState:e}),()=>{r(`changedByToolbar`,{editorId:this.editorId,editorState:this.state.editorState})});let i=(0,n.convertToRaw)(e.getCurrentContent());t&&t?.(i)}};listener=e=>{let{editorState:t}=this.state;(e?.detail?.commandName===`changedByToolbar`||e?.detail?.commandName===`select`)&&this.setState(t=>({...t,currentEditorState:e?.detail?.data?.editorState})),e?.detail?.commandName===`select`&&e?.detail?.data?.editorId!==this.editorId&&(this.isSelected=!1);let n=V?.[e?.detail?.commandName]?.(t,e?.detail?.data,e?.detail?.options);n&&this.handleChangeByToolbar(n)};handleKeyCommand=e=>{let{editorState:t}=this.state;if(e===`tab`){let e=y.addCharacter(t,`    `);return this.handleChangeState(e),`handled`}return e===`enter`?(this.createNewLine(),`handled`):`not-handled`};createNewLine=()=>{let{editorState:e}=this.state,t=g.createNewLine(e);this.handleChangeState(t)};handleFocus=e=>{e.stopPropagation();let{emit:t}=this?.eventListener??{};this.isSelected=!0,t(`select`,{editorId:this.editorId,editorState:this.state.editorState})};render(){let{disabled:e=!1,onBlur:t,onFocus:n,children:r}=this.props,{emit:i}=this?.eventListener??{},{editorState:a,currentEditorState:o}=this.state;return r?.((0,ye.jsx)(`div`,{onClick:this.handleFocus,ref:e=>{this.eventElement=e},role:`presentation`,style:{display:`flex`,flexDirection:`column`,flex:1},children:(0,ye.jsx)(Ye,{eventElement:this.eventElement,editorState:a,disabled:e,onChange:this.handleChange,onChangeState:this.handleChangeState,keyBindingFn:$e,handleKeyCommand:this.handleKeyCommand,onBlur:t,onFocus:n})}),i,this.state.currentEditorState||a)??(0,ye.jsx)(`div`,{onFocus:this.handleFocus,ref:e=>{this.eventElement=e},style:{display:`flex`,flexDirection:`column`,flex:1},children:(0,ye.jsx)(Ye,{ref:this.editorRef,eventElement:this.eventElement,editorState:a,disabled:e,onChange:this.handleChange,onChangeState:this.handleChangeState,keyBindingFn:$e,handleKeyCommand:this.handleKeyCommand,onBlur:t,onFocus:n})})}},tt={createWithContent:e=>{n.EditorState.createWithContent(n.ContentState.createFromText(e))}};typeof globalThis>`u`&&(window.global=window);var nt=et;e.BlockUtils=g,e.CustomizedBlockUtils=xe,e.DraftUtils=v,e.InlineUtils=_,e.TextUtils=y,e.convertUtils=tt,e.default=nt})})),ER=r(TR()),DR=e=>{let{customTools:t,mobileTools:n,tools:r,defaultValue:i,ToolbarCreator:a,disabled:o=!1,isShowingTools:s=!1,onChange:c,onBlur:u,onFocus:f,maxHeight:p=null,extraComponent:m=null}=e,h=e=>n=>{let r=t?.[n]?.group,i=n,a=t?.[n]?.type;return e(r,i,a)},g=e=>(t,n,r)=>{if(e){let i=e.getSelection().getStartKey(),a=e.getCurrentContent().getBlockForKey(i),o=ER.BlockUtils.ConvertBlockDataToObject(a)?.classes[t],s=e.getCurrentInlineStyle().toObject(),c=a.getType();return n===`bold`?!!s[n.toLocaleUpperCase()]:o===n||s[n.toLocaleUpperCase()]||c===r}return!1};return l(ER.default,{disabled:o,onChange:c,defaultValue:i,onBlur:u,onFocus:f,children:(e,i,u)=>{let f=h(g(u));return d(G,{style:{display:`flex`,flexDirection:`column`,gap:4,minHeight:`inherit`,height:`100%`},children:[s&&!o&&l(a,{handleChange:c,editorState:u,tools:r,mobileTools:n,customTools:t,isSelected:f,publishEvent:i}),l(G,{style:{flex:1,display:`flex`,flexDirection:`column`,padding:8,maxHeight:p,overflow:p?`auto`:`unset`},children:e}),l(q,{children:m?.(i,{addContent:e=>i(`addContent`,e),addPlainText:e=>i(`addPlainText`,e)})})]})}})},OR=B()((e,t)=>({editorToolbar:{display:`flex`,flexWrap:`nowrap`,alignItems:`center`,gap:4,padding:4,borderTopLeftRadius:8,borderTopRightRadius:8,background:`#f3f3f3`,borderBottom:`1px solid ${e.palette.text.lightGray}`,"& .MuiIconButton-root":{fontSize:`1rem`,padding:8,"& .MuiSvgIcon-root":{width:`0.8em`,height:`0.8em`}}},itemsContainer:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,"& .MuiIconButton-root":{fontSize:`1rem`,"& .MuiSvgIcon-root":{width:`0.8em`,height:`0.8em`}}},itemsContainerMenu:{display:`flex`,flexDirection:`column`},button:{backgroundColor:t?.isSelected?.(t?.toolName)?e.palette.text.lightGray:``}}
2743)),kR=(e,t,n,r,i)=>{i(e)},AR=e=>{let{classes:t}=OR(e);return d(G,{className:t.editorToolbar,children:[l(NR,{...e}),l(q,{sx:{flex:1}}),l(jR,{...e})]})},jR=e=>{let[t,n]=J.useState(null),r=!!t;return d(f,{children:[l(fi,{onClick:e=>{n(e.currentTarget)},size:`small`,sx:{margin:0,padding:0,minWidth:`24px`,height:`24px`},"aria-controls":r?`account-menu`:void 0,"aria-haspopup":`true`,"aria-expanded":r?`true`:void 0,children:l(nte,{fontSize:`small`,sx:{color:`#808080`}})}),l($r,{anchorEl:t,id:`account-menu`,open:r,onClose:()=>{n(null)},PaperProps:{elevation:0,sx:{overflow:`visible`,filter:`drop-shadow(0px 2px 8px rgba(0,0,0,0.32))`,mt:1.5,"& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:`""`,display:`block`,position:`absolute`,top:0,right:14,width:10,height:10,bgcolor:`background.paper`,transform:`translateY(-50%) rotate(45deg)`,zIndex:0}}},transformOrigin:{horizontal:`right`,vertical:`top`},anchorOrigin:{horizontal:`right`,vertical:`bottom`},children:l(MR,{...e})})]})},MR=e=>{let{mobileTools:t,customTools:n,isSelected:r,editorState:i,publishEvent:a}=e;return l(q,{className:OR(e).itemsContainerMenu,children:t?.collapseItems?.map?.((e,t)=>l(f,{children:l(q,{dir:`ltr`,children:e?.map((e,t)=>l(PR,{toolName:e,tool:n?.[e],customTools:n,isSelected:r,editorState:i,publishEvent:a},e))})}))})},NR=e=>{let{tools:t,mobileTools:n,customTools:r,isSelected:i,editorState:a,publishEvent:o}=e;return l(G,{className:OR(e).itemsContainer,children:n?.inlineItems?.map?.((e,n)=>d(f,{children:[e?.map((e,t)=>l(PR,{toolName:e,tool:r?.[e],customTools:r,isSelected:i,editorState:a,publishEvent:o},e)),t?.length!==n+1&&l(G,{style:{borderLeft:`1px solid`,height:`100%`}})]}))})},PR=e=>{let{editorState:t,onChange:n,customTools:r,toolName:i,tool:a,publishEvent:o}=e,{customComponent:s}=a,c=OR(e);return d(f,{children:[a?.customComponent&&l(s,{...e}),!a?.customComponent&&l(Gn,{name:i,onClick:e=>kR(e.currentTarget.name,r,t,n,o),size:`small`,className:c.button,children:a?.icon})]})},FR=B()((e,t)=>({editorToolbar:{display:`flex`,flexWrap:`nowrap`,overflow:`auto`,overflowY:`hidden`,gap:8,padding:4,borderTopLeftRadius:8,borderTopRightRadius:8,background:`#f3f3f3`,borderBottom:`1px solid ${e.palette.text.lightGray}`,"& .MuiIconButton-root":{fontSize:`1rem`,padding:8,"& .MuiSvgIcon-root":{width:`0.8em`,height:`0.8em`}},[e.breakpoints.down(`md`)]:{flexWrap:`nowrap`,overflowX:`auto`,overflowY:`hidden`}},button:{backgroundColor:t?.isSelected?.(t?.toolName)?e.palette.text.lightGray:``}})),IR=(e,t,n,r,i)=>{i(e)},LR=e=>{let{tools:t,customTools:n,isSelected:r,editorState:i,publishEvent:a}=e,{classes:o}=FR(e);return l(G,{ref:(0,J.useRef)(null),className:o.editorToolbar,children:t?.map?.((e,o)=>d(f,{children:[e?.map((e,t)=>l(RR,{toolName:e,tool:n?.[e],customTools:n,isSelected:r,editorState:i,publishEvent:a},e)),t?.length!==o+1&&l(G,{style:{borderLeft:`1px solid`,height:`100%`}})]}))})},RR=e=>{let{editorState:t,onChange:n,customTools:r,toolName:i,tool:a,publishEvent:o}=e,{customComponent:s}=a,c=FR(e);return d(f,{children:[a?.customComponent&&l(s,{...e}),!a?.customComponent&&l(Gn,{name:i,onClick:e=>IR(e.currentTarget.name,r,t,n,o),size:`small`,className:c.button,children:a?.icon})]})},zR=e=>Dt(e=>e.breakpoints.down(`sm`))?l(AR,{...e}):l(LR,{...e}),BR=B()(e=>({dialogPaper:{height:`80%`},root:{width:`100%`,display:`flex`,justifyContent:`center`,flexWrap:`wrap`,gap:`10px`},char:{border:`1px solid lightgray`,width:`40px`,height:`40px`,textAlign:`center`,borderRadius:e.spacing(1),fontSize:`19px`,fontWeight:`400`,background:`#e0e0e0`,boxShadow:`inset 5px 5px 10px #cecece, inset -5px -5px 10px #f2f2f2`,[e.breakpoints.down(`sm`)]:{width:`30px`,height:`30px`,fontSize:`18px`}}})),VR=e=>{let{publishEvent:t,toolName:n}=e,[r,i]=(0,J.useState)(!1),{classes:a}=BR(),o=()=>{i(!0)},s=e=>{t(n,e),i(!1)};function c(e,t){return Array(t-e+1).fill().map((t,n)=>e+n)}let u=[...c(33,126),...c(161,225)].map(e=>`${String.fromCharCode(e)}`);return d(f,{children:[l(Gn,{id:`composition-button`,"aria-controls":r?`composition-menu`:void 0,"aria-expanded":r?`true`:void 0,"aria-haspopup":`true`,onClick:o,name:n,size:`small`,children:l(uv,{fontSize:`small`})}),l(Ig,{title:`لیست کاراکترهای خاص`,open:r,maxWidth:`md`,handleClose:()=>i(!1),isTitleShow:!0,fullWidth:!1,dialogClasses:{paper:a.dialogPaper},children:l(G,{className:a.root,children:u.map(e=>l(Gn,{className:a.char,onClick:()=>s(e),children:e},e))})})]})},HR=B()(e=>({root:{[e.breakpoints.down(`sm`)]:{width:`80px`,minWidth:`80px`},[e.breakpoints.up(`md`)]:{width:`120px`,minWidth:`120px`}}
2743,input:{[e.breakpoints.down(`sm`)]:{padding:0},[e.breakpoints.up(`md`)]:{padding:4}}})),UR=e=>{let{editorState:t,publishEvent:n,toolName:r}=e,[i,a]=J.useState(!1),o=J.useRef(null),{classes:s}=HR(),c=()=>{a(e=>!e)},u=()=>{a(!1)},p=e=>{n(r,Pe(e),{withFocusAgain:!1}),u()},m=e=>t?Pe(e)===ER.CustomizedBlockUtils?.getLineHeight(t)?.lineHeight:!1,h=[.5,1,1.15,1.5,2,2.5],g=t?Math.round(Ae(ER.CustomizedBlockUtils?.getLineHeight(t)?.lineHeight)*100)/100:1;return d(q,{className:s.root,children:[l(pN,{fullWidth:!0,type:`number`,inputMode:`decimal`,onChange:e=>p(+e.target.value),value:g,sx:{padding:0},InputProps:{inputProps:{className:s.input},sx:{padding:`0px`},startAdornment:l(Ur,{position:`start`,sx:{padding:0,marginLeft:`4px`},children:l(f,{children:d(Gn,{ref:o,id:`composition-button`,"aria-controls":i?`composition-menu`:void 0,"aria-expanded":i?`true`:void 0,"aria-haspopup":`true`,name:r,size:`small`,onClick:c,style:{padding:0},children:[l(k_,{style:{width:`0.6em`}}),l(Dv,{})]})})})}}),l(br,{open:i,anchorEl:o.current,role:void 0,placement:`bottom-start`,transition:!0,disablePortal:!0,style:{zIndex:12300},children:({TransitionProps:e,placement:t})=>l(Qn,{...e,style:{transformOrigin:t===`bottom-start`?`left top`:`left bottom`},children:l(Rn,{children:l(Ar,{onClickAway:u,children:l(Qr,{autoFocusItem:i,id:`composition-menu`,"aria-labelledby":`composition-button`,children:h.map(e=>d(Lk,{onClick:()=>p(e),children:[e,m(e)&&l(K_,{})]},e))})})})})})]})},WR=B()({rowItem:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,padding:4}}),GR=e=>{let{publishEvent:t,toolName:n}=e,[r,i]=J.useState(!1),[a,o]=(0,J.useState)({columns:0,rows:0}),s=J.useRef(null),{classes:c}=WR(),u=()=>{i(e=>!e)},f=()=>{i(!1)},p=(e,t)=>{o(n=>({...n,[e]:t}))},m=()=>{t(n,{columns:a?.columns,rows:a?.rows}),f()};return d(q,{children:[l(Gn,{ref:s,id:`composition-button`,"aria-controls":r?`composition-menu`:void 0,"aria-expanded":r?`true`:void 0,"aria-haspopup":`true`,onClick:u,name:n,size:`small`,children:l(cte,{})}),l(br,{open:r,anchorEl:s.current,role:void 0,placement:`bottom-start`,style:{zIndex:1e3},transition:!0,disablePortal:!0,children:({TransitionProps:e,placement:t})=>l(Qn,{...e,style:{transformOrigin:t===`bottom-start`?`left top`:`left bottom`},children:l(Rn,{style:{width:103},children:l(Ar,{onClickAway:f,children:d(q,{children:[d(q,{className:c.rowItem,children:[l(q,{style:{fontSize:10},children:`تعداد سطر:`}),l(wr,{onChange:e=>p(`rows`,e?.target?.value),style:{width:`34px`,fontSize:12},inputProps:{style:{padding:`4px`}}})]}),d(q,{className:c.rowItem,children:[l(q,{style:{fontSize:10},children:`تعداد ستون:`}),l(wr,{onChange:e=>p(`columns`,e?.target?.value),style:{width:`34px`,fontSize:12},inputProps:{style:{padding:`4px`}}})]}),l(q,{children:l(Gn,{onClick:m,children:l(q_,{})})})]})})})})})]})},KR=B()({root:{flex:1,border:`1px solid rgba(0, 0, 0, 0.23)`,borderRadius:8,height:`100%`,display:`flex`,flexDirection:`column`,minHeight:`inherit`,"& ol,ul":{listStylePosition:`inside`},"& ol":{listStyle:`number`},"& ul":{listStyle:`disc`},"& li > *":{display:`inline`}}}),qR={inlineItems:[[`bold`,`italic`,`underLine`,`strikethrough`,`lineHeight`]],collapseItems:[[`unordered`,`ordered`],[`indentIncrease`,`indentDecrease`],[`alignRight`,`alignCenter`,`alignLeft`,`alignJustify`],[`table`],[`rtl`,`ltr`],[`symbol`],[`undo`,`redo`]]},JR=[[`bold`,`italic`,`underLine`,`strikethrough`],[`lineHeight`],[`unordered`,`ordered`],[`indentIncrease`,`indentDecrease`],[`alignRight`,`alignCenter`,`alignLeft`,`alignJustify`],[`table`],[`rtl`,`ltr`],[`symbol`],[`undo`,`redo`]],YR=({value:e,onChange:t=()=>{},disabled:n=!1,maxHeight:r=null,onBlur:i=null,onBlurContainer:a=void 0,onFocus:o=void 0,tools:s=JR,isShowingTools:c=!0,classRoot:u=null,extraComponent:d=null,ref:f})=>{let{classes:p}=KR(),m=(0,J.useMemo)(()=>{if(!e)return null;try{return JSON.parse(e)}catch{return e}},[e]);return l(q,{onBlur:a,className:u??p.root,children:l(DR,{maxHeight:r,isShowingTools:c,disabled:n,mobileTools:qR,tools:s,ToolbarCreator:zR,customTools:{unordered:{type:`unordered-list-item`,icon:l(Ov,{fontSize:`small`})},ordered:{type:`ordered-list-item`,icon:l(Av,{fontSize:`small`})},undo:{icon:l(xy,{fontSize:`small`})},redo:{icon:l(ly,{fontSize:`small`})},bold:{icon:l(Cv,{fontSize:`small`})},italic:{icon:l(Ev,{fontSize:`small`})},underLine:{icon:l(Xee,{fontSize:`small`})}
2743,strikethrough:{icon:l(jv,{fontSize:`small`})},rtl:{group:`direction`,icon:l(Yee,{fontSize:`small`})},ltr:{group:`direction`,icon:l(Mv,{fontSize:`small`})},alignJustify:{group:`align`,icon:l(bv,{fontSize:`small`})},alignLeft:{group:`align`,icon:l(xv,{fontSize:`small`})},alignCenter:{group:`align`,icon:l(yv,{fontSize:`small`})},alignRight:{group:`align`,icon:l(Sv,{fontSize:`small`})},indentIncrease:{group:`indent`,icon:l(Tv,{style:{transform:`scaleX(-1)`},fontSize:`small`})},indentDecrease:{group:`indent`,icon:l(wv,{style:{transform:`scaleX(-1)`},fontSize:`small`})},symbol:{customComponent:VR},lineHeight:{customComponent:UR},table:{customComponent:GR}},defaultValue:m,onChange:e=>{t(e)},onBlur:i,onFocus:o,extraComponent:d,ref:f})})},XR=[[`bold`,`italic`,`underLine`,`strikethrough`,`unordered`,`ordered`,`lineHeight`,`alignJustify`,`alignLeft`,`alignCenter`,`alignRight`,`indentDecrease`,`indentDecrease`]],ZR=({disabled:e,value:t,onChange:n,...r})=>l(YR,{...r,disabled:e,value:t,onChange:e=>n(e&&JSON.stringify(e)),maxHeight:`100%`,tools:XR}),QR=B()(e=>({dialogtitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`,display:`flex`,justifyContent:`center`,alignItems:`center`},discription:{margin:`8px`,"& .MuiInputBase-root":{height:`unset`}},parentEditor:{height:`540px`,overflow:`auto`,display:`flex`,flexDirection:`column`,gap:16},editorArea:{minHeight:280,maxHeight:300,flexShrink:0,position:`relative`},minutesErrorBadge:{position:`absolute`,bottom:e.spacing(1),left:e.spacing(1),zIndex:1,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24,borderRadius:`50%`,backgroundColor:`white`},minutesErrorBadgeIcon:{color:e.palette.error.main,fontSize:18},actionsRow:{display:`flex`,flexDirection:`row`,direction:`ltr`,alignItems:`center`,justifyContent:`space-between`,gap:e.spacing(2),width:`100%`,paddingInline:e.spacing(1)},save:{marginLeft:16,flexShrink:0},submitError:{display:`flex`,flexDirection:`row`,direction:`rtl`,alignItems:`center`,gap:e.spacing(.75),color:e.palette.error.main,fontSize:13,lineHeight:1.5,textAlign:`right`},submitErrorIcon:{fontSize:18,flexShrink:0},back:{position:`absolute`,right:`24px`,color:`#49454F`},textBack:{paddingRight:8},noEntityBox:{height:`500px`,display:`flex`,flexFlow:`column`,flexGrow:1,justifyContent:`center`,alignItems:`center`,"& img":{width:160}},noEntityText:{marginTop:8}})),$R=({open:e,onClose:t,meetingMinutesData:n,minutesSubmitError:r=!1,meetingMinutesLoading:i,onChangeMinutes:a,value:o,canceled:s,finished:c,isEdit:u,canSave:f,resolutions:p,onAddResolution:m,resolutionActions:h,taskActions:g})=>{let{classes:_}=QR(),[v,y]=(0,J.useState)(!1),b=rN(p),x=u,S=p.length>0,C=s||c,w=C&&!x&&!S;return d(Mr,{open:e,fullWidth:!0,maxWidth:`lg`,transitionDuration:0,children:[d(Ir,{className:_.dialogtitle,children:[d(fi,{className:_.back,onClick:t,children:[l(ov,{}),l(St,{className:_.textBack,children:W(`meetings.labels.backToMeeting`)})]}),!c&&!s&&l(q,{children:W(`meetings.labels.minutesMeeting`)}),(c||s)&&l(q,{children:W(`meetings.labels.viewMinutesMeeting`)})]}),l(Lr,{}),l(Pr,{children:w?d(q,{className:_.noEntityBox,children:[l(`img`,{src:mF,alt:`no entity`}),l(St,{variant:`subtitle1`,classes:{root:_.noEntityText},children:W(`meetings.messages.noMinutesMeeting`)})]}):d(q,{className:_.parentEditor,inert:i||void 0,"aria-busy":i||void 0,children:[d(q,{className:_.editorArea,children:[l(ZR,{disabled:C||i,value:o,onChange:e=>{a(e)}}),r?l(q,{className:_.minutesErrorBadge,role:`alert`,"aria-label":W(`meetings.labels.minutes-partial-save-failed`),children:l(fv,{className:_.minutesErrorBadgeIcon,"aria-hidden":!0})}):null]}),l(pF,{resolutions:p,onAddResolution:m,resolutionActions:h,taskActions:g,disabled:i,readOnly:C,onInlineDraftCanSaveChange:y})]})}),l(Lr,{}),l(Nr,{children:!c&&!s&&d(q,{className:_.actionsRow,children:[l(q,{className:_.save,children:l(fi,{disabled:i||!f||v,onClick:n,variant:`contained`,children:i?l(Oi,{color:`white`}):W(`common.labels.save`)})}),b||r?d(St,{className:_.submitError,role:`alert`,children:[l(fv,{className:_.submitErrorIcon,"aria-hidden":!0}),W(`meetings.labels.minutes-partial-save-failed`)]}):null]})})]})},ez=B()(e=>({dialogtitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`,display:`flex`,justifyContent:`center`,alignItems:`center`},dialogContent:{minHeight:`580px`,paddingTop:16},discription:{margin:`8px`,"& .MuiInputBase-root":{height:`unset`}},parentEditor:{minHeight:`540px`,overflow:`auto`,display:`flex`,flexDirection:`column`,gap:16},editorArea:{height:300,flexShrink:0,position:`relative`},minutesErrorBadge:{position:`absolute`,bottom:e.spacing(1),left:e.spacing(1),zIndex:1,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24,borderRadius:`50%`,backgroundColor:`white`},minutesErrorBadgeIcon:{color:e.palette.error.main,fontSize:18},actionsRow:{display:`flex`,flexDirection:`row`,direction:`ltr`,alignItems:`center`,justifyContent:`space-between`,gap:e.spacing(2),width:`100%`,paddingInline:e.spacing(1)},save:{marginLeft:16,flexShrink:0},submitError:{display:`flex`,flexDirection:`row`,direction:`rtl`,alignItems:`center`,gap:e.spacing(.75),color:e.palette.error.main,fontSize:12,lineHeight:1.5,textAlign:`right`},submitErrorIcon:{fontSize:18,flexShrink:0},closeButton:{position:`absolute`,right:16,top:4},noEntityBox:{height:`500px`,display:`flex`,flexFlow:`column`,flexGrow:1,justifyContent:`center`,alignItems:`center`,"& img":{width:160}},noEntityText:{marginTop:8}})),tz=({open:e,onClose:t,meetingMinutesData:n,minutesSubmitError:r=!1,meetingMinutesLoading:i,onChangeMinutes:a,value:o,canceled:s,finished:c,isEdit:u,canSave:f,resolutions:p,onAddResolution:m,resolutionActions:h,taskActions:g})=>{let{classes:_}=ez(),[v,y]=(0,J.useState)(!1),b=rN(p),x=u,S=p.length>0,C=s||c,w=C&&!x&&!S;
2743return d(Mr,{open:e,fullScreen:!0,transitionDuration:0,children:[d(Ir,{className:_.dialogtitle,children:[l(Gn,{"aria-label":`close`,className:_.closeButton,onClick:t,children:l(ci,{})}),!c&&!s&&l(q,{children:W(`meetings.labels.minutesMeeting`)}),(c||s)&&l(q,{children:W(`meetings.labels.viewMinutesMeeting`)})]}),l(Lr,{}),l(Pr,{className:_.dialogContent,children:w?d(q,{className:_.noEntityBox,children:[l(`img`,{src:mF,alt:`no entity`}),l(St,{variant:`subtitle1`,classes:{root:_.noEntityText},children:W(`meetings.messages.noMinutesMeeting`)})]}):d(q,{className:_.parentEditor,inert:i||void 0,"aria-busy":i||void 0,children:[d(q,{className:_.editorArea,children:[l(ZR,{disabled:C||i,value:o,onChange:e=>{a(e)}}),r?l(q,{className:_.minutesErrorBadge,role:`alert`,"aria-label":W(`meetings.labels.minutes-partial-save-failed`),children:l(fv,{className:_.minutesErrorBadgeIcon,"aria-hidden":!0})}):null]}),l(pF,{resolutions:p,onAddResolution:m,resolutionActions:h,taskActions:g,disabled:i,readOnly:C,onInlineDraftCanSaveChange:y})]})}),l(Lr,{}),l(Nr,{children:!c&&!s&&d(q,{className:_.actionsRow,children:[l(q,{className:_.save,children:l(fi,{disabled:i||!f||v,onClick:n,variant:`contained`,children:i?l(Oi,{color:`white`}):W(`common.labels.save`)})}),b||r?d(St,{className:_.submitError,role:`alert`,children:[l(fv,{className:_.submitErrorIcon,"aria-hidden":!0}),W(`meetings.labels.minutes-partial-save-failed`)]}):null]})})]})},nz=({open:e,onClose:t,meetingMinutesData:n,minutesSubmitError:r=!1,meetingMinutesLoading:i,canSave:a,onChangeMinutes:o,value:s,canceled:c,finished:u,isEdit:p,resolutions:m,onAddResolution:h,resolutionActions:g,taskActions:_})=>{let v=Dt(e=>e.breakpoints.down(`sm`)),y=Dt(e=>e.breakpoints.up(`md`)),[b,x]=(0,J.useState)(!1),S=()=>{if(a){x(!0);return}t()},C=l(VN,{open:b,onStay:()=>{x(!1)},onDiscard:()=>{x(!1),t()}});return y?d(f,{children:[l(HN,{isBlocking:a}),C,l($R,{open:e,onClose:S,meetingMinutesData:n,minutesSubmitError:r,meetingMinutesLoading:i,canSave:a,onChangeMinutes:o,value:s,canceled:c,finished:u,isEdit:p,resolutions:m,onAddResolution:h,resolutionActions:g,taskActions:_})]}):v?d(f,{children:[C,l(tz,{open:e,onClose:S,meetingMinutesData:n,minutesSubmitError:r,meetingMinutesLoading:i,canSave:a,onChangeMinutes:o,value:s,canceled:c,finished:u,isEdit:p,resolutions:m,onAddResolution:h,resolutionActions:g,taskActions:_})]}):l(f,{})},rz=cN(`minutesValidation`,{comparers:null,initialState:{},schema:{minutes:Dj.default.string().required()}})(({open:e,initialState:t,onClose:n,meetingMinutesData:r,minutesSubmitError:i,meetingMinutesLoading:a,resolutionsHaveUnsavedChanges:o,minutesValidation:s,onChangeMinutes:c,value:u,canceled:d,finished:f,isEdit:p,resolutions:m,onAddResolution:h,resolutionActions:g,taskActions:_})=>{let v=e=>{s.validationOnChange({target:{name:`minutes`,value:e}}),c(e)},y=!!s.touched?.length;return l(nz,{open:e,onClose:n,meetingMinutesData:()=>{let e=y&&s.validationOnSubmit({minutes:u});!e&&!o||r({saveMinutes:e})},minutesSubmitError:i,meetingMinutesLoading:a,canSave:y||o,onChangeMinutes:v,value:u,canceled:d,finished:f,isEdit:p,resolutions:m,onAddResolution:h,resolutionActions:g,taskActions:_})}),iz=({open:e,onClose:t,meetingMinutesData:n,minutesSubmitError:r,meetingMinutesLoading:i,resolutionsHaveUnsavedChanges:a,onChangeMinutes:o,value:s,canceled:c,finished:u,isEdit:d,initialState:f,resolutions:p,onAddResolution:m,resolutionActions:h,taskActions:g})=>l(rz,{initialState:{minutes:f},open:e,onClose:t,meetingMinutesData:n,minutesSubmitError:r,meetingMinutesLoading:i,resolutionsHaveUnsavedChanges:a,onChangeMinutes:o,value:s,canceled:c,finished:u,isEdit:d,resolutions:p,onAddResolution:m,resolutionActions:h,taskActions:g}),az=B()((e,{variant:t,selected:n,hasLeadingContent:r,color:i})=>{let a={inherit:{contained:{color:e.palette.text.onSurface,background:e.palette.background.default,border:n?`1px solid ${e.palette.text.onSurface}`:`1px solid transparent`},outlined:{color:e.palette.text.onSurface,background:e.palette.background.default,border:`1px solid ${e.palette.text.onSurface}`},text:{color:e.palette.text.onSurface,background:`transparent`,border:`1px solid transparent`}},primary:{contained:{color:e.palette.primary.main,background:e.palette.background.primaryContainer,border:n?`1px solid ${e.palette.primary.main}`:`1px solid transparent`},outlined:{color:e.palette.primary.main,background:`transparent`,border:`1px solid ${e.palette.primary.main}`},text:{color:e.palette.primary.main,background:`transparent`,border:`1px solid transparent`}},secondary:{contained:{color:e.palette.secondary.main,background:e.palette.background.secondaryContainer,border:n?`1px solid ${e.palette.secondary.main}`:`1px solid transparent`},outlined:{color:e.palette.secondary.main,background:e.palette.background.secondaryContainer,border:`1px solid ${e.palette.secondary.main}`},text:{color:e.palette.secondary.main,background:`transparent`,border:`1px solid transparent`}},success:{contained:{color:e.palette.success.main,background:e.palette.background.successContainer,border:n?`1px solid ${e.palette.success.main}`:`1px solid transparent`},outlined:{color:e.palette.success.main,background:e.palette.background.successContainer,border:`1px solid ${e.palette.success.main}`},text:{color:e.palette.success.main,background:`transparent`,border:`1px solid transparent`}},error:{contained:{color:e.palette.error.main,background:e.palette.background.primaryContainer,border:n?`1px solid ${e.palette.error.main}`:`1px solid transparent`},outlined:{color:e.palette.error.main,background:`transparent`,border:`1px solid ${e.palette.error.main}`},text:{color:e.palette.error.main,background:`transparent`,border:`1px solid transparent`}}
2743,warning:{contained:{color:e.palette.visual.softOrange2,background:e.palette.visual.softOrange1,border:n?`1px solid ${e.palette.visual.softOrange2}`:`1px solid transparent`},outlined:{color:e.palette.visual.softOrange2,background:e.palette.visual.softOrange1,border:`1px solid ${e.palette.visual.softOrange2}`},text:{color:e.palette.visual.softOrange2,background:`transparent`,border:`1px solid transparent`}},info:{contained:{color:e.palette.visual.softBlue2,background:e.palette.visual.softBlue1,border:n?`1px solid ${e.palette.visual.softBlue2}`:`1px solid transparent`},outlined:{color:e.palette.visual.softBlue2,background:e.palette.visual.softBlue1,border:`1px solid ${e.palette.visual.softBlue2}`},text:{color:e.palette.visual.softBlue2,background:`transparent`,border:`1px solid transparent`}}};return{root:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:e.spacing(.5),minWidth:r?e.spacing(4):void 0,padding:e.spacing(1),borderRadius:e.spacing(1),boxSizing:`border-box`,height:e.spacing(5),...a[i][t]},mobile:{width:e.spacing(4),height:e.spacing(4)}}}),oz=({variant:e=`contained`,color:t=`inherit`,selected:n=!1,mobile:r=!1,hasLeadingContent:i=!1,className:a,...o})=>{let{classes:s,cx:c}=az({variant:e,color:t,selected:n,hasLeadingContent:i});return l(ui,{...o,className:c(s.root,{[s.mobile]:r},a)})},sz=B()(e=>({chip:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,"& .MuiChip-label":{maxWidth:112,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},icon:{width:e.spacing(3),height:e.spacing(3)}})),cz=({selectedTags:e,icon:t,classes:n,onClick:r,isOpen:i})=>{let{classes:a}=sz(),o=z(),{t:s}=Ye(),c=Dt(o.breakpoints.down(`sm`)),u=e.length>0,p=u?e.slice(0,2):[],m=u?e.length-p.length:0,h=m>0;return l(li,{placement:u?`top`:`bottom`,title:s(`tags.tooltip.select`),children:l(`div`,{children:l(oz,{color:`inherit`,onClick:r,"aria-label":`Open tag selector`,selected:i,children:d(q,{className:`${n.buttonContent} ${u?n.buttonContentWithTags:``}`,children:[c&&u&&d(f,{children:[d(q,{className:n.counterText,children:[`+`,e.length]}),t||l(uy,{className:a.icon})]}),c&&!u&&(t||l(uy,{className:a.icon})),!c&&d(f,{children:[u&&l(q,{className:n.chipContainer,children:p.map(e=>l(li,{title:e.title,children:l(xr,{label:e.title,size:`small`,className:a.chip,sx:Gw(e.color)},e.id)}))}),h&&d(si,{className:n.counterText,children:[`+`,m]}),t||l(uy,{className:a.icon})]})]})})})})},lz=({open:e,anchorPosition:t,selectedColor:n,onClose:r,onSelectColor:i,classes:a,ariaLabel:o})=>l(Zr,{open:e&&!!t,onClose:r,anchorReference:`anchorPosition`,anchorPosition:t||void 0,transformOrigin:{vertical:`top`,horizontal:`left`},disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,children:l(q,{className:a.colorPickerWrapper,children:Vw.map(e=>{let t=n.background===e.background;return l(q,{component:`button`,onClick:t=>{t.stopPropagation(),i(e)},"aria-label":o,className:`${a.colorCircle} ${t?a.colorCircleSelected:a.colorCircleUnselected}`,sx:tne(e.background,t)},e.background)})})}),uz=({liProps:e,title:t,classes:n,newTagColor:r,onOpenColorPicker:i,selectColorLabel:a,createLabel:o,isCreatingTag:s})=>{let c=e=>{if(s){e.stopPropagation();return}i(e)},u=s?{...Ww(r.background),opacity:.5,cursor:`not-allowed`,pointerEvents:`none`}:Ww(r.background),p=s?{opacity:.6,cursor:`not-allowed`}:void 0,m=nne(t,20);return l(`li`,{...e,className:`createOptionListItem`,style:{width:`100%`,listStyle:`none`},children:d(q,{onClick:e=>{e.stopPropagation()},className:n.optionRoot,sx:{width:`100%`},children:[d(q,{onClick:e=>{e.stopPropagation()},className:n.createOptionRoot,children:[l(q,{className:n.colorSwatch,sx:u,onClick:c,component:`button`,"aria-label":a,"aria-disabled":s}),l(`span`,{className:n.createOptionTitle,children:m})]}),l(q,{className:n.createAction,sx:p,children:l(nr,{loading:s,size:`small`,variant:`contained`,onClick:n=>{if(n.stopPropagation(),s)return;let r={inputValue:t,title:t,isCreate:!0};e?.onCreateOption?.(r)},children:!s&&d(f,{children:[l(oi,{}),l(`span`,{children:o})]})})})]})})},dz=B()(e=>({paper:{padding:e.spacing(2),borderRadius:e.spacing(2)}})),fz=e=>{let{content:t,confirmationText:n,onConfirm:r,cancelText:i,onCancel:a,confirmationLoading:o=!1,hasCloseIcon:s=!1,...c}=e,{classes:u}=dz();return d(Mr,{...c,classes:{paper:u.paper},children:[s&&l(Ir,{children:l(ui,{onClick:a,children:l(ci,{})})}),l(Pr,{children:t??c?.children}),d(Nr,{children:[l(fi,{onClick:a,disabled:o,children:i}),d(fi,{onClick:r,variant:`contained`,disabled:o,children:[o&&l(Oi,{color:`white`}),!o&&n]})]})]})},pz=B()(e=>({content:{display:`flex`,flexDirection:`column`,gap:e.spacing(1)},titleRow:{display:`flex`,alignItems:`center`,lineHeight:`normal`,gap:e.spacing(1)},icon:{fontSize:24,color:e.palette.warning.main},title:{fontSize:14,fontWeight:700,color:e.palette.text.primary,textAlign:`right`},message:{fontSize:14,color:e.palette.text.secondary,textAlign:`right`,lineHeight:1.5},usageTitle:{fontSize:14,color:e.palette.text.primary,textAlign:`right`,marginBottom:e.spacing(1)},usageTitleNoMargin:{fontSize:14,color:e.palette.text.primary,textAlign:`right`,marginBottom:0},usageList:{display:`flex`,flexDirection:`column`,gap:e.spacing(.5),marginBottom:e.spacing(1),paddingRight:e.spacing(2)},usageItem:{fontSize:14,color:e.palette.text.secondary,textAlign:`right`},warningText:{fontSize:14,textAlign:`right`,color:e.palette.text.secondary},dialog:{"& .MuiPaper-root":{maxWidth:`max-content`}}})),mz=({open:e,tag:t,usedCountData:n,onClose:r,onConfirm:i,loading:a=!1,type:o})=>{let{classes:s}=pz(),{t:c}=Ye();if(!t)return null;let u=()=>{i(t.id)},p=n&&n.domains&&n.domains.length>0,m=`tags.confirmDialog.${o}`,h=e=>({letters:c(`tags.confirmDialog.domains.letters`),meetings:c(`tags.confirmDialog.domains.meetings`),projects:c(`tags.confirmDialog.domains.projects`),tasks:c(`tags.confirmDialog.domains.tasks`)})[e]||e;return l(fz,{open:e,onClose:r,onCancel:r,onConfirm:u,confirmationText:c(`tags.confirmDialog.confirm`),cancelText:c(`tags.confirmDialog.cancel`),confirmationLoading:a,className:s.dialog,content:d(G,{className:s.content,children:[d(G,{className:s.titleRow,children:[l(dv,{className:s.icon}),l(St,{className:s.title,children:c(`${m}.title`)})]}),p?d(f,{children:[l(St,{className:s.usageTitleNoMargin,children:c(`${m}.description`)}),l(St,{className:s.usageTitle,children:c(`tags.confirmDialog.usageDescription`,{title:t.title})}),l(G,{className:s.usageList,children:n?.domains.map(e=>l(St,{className:s.usageItem,children:c(`tags.confirmDialog.usageItem`,{domain:h(e.name),count:e.count,unit:c(`tags.confirmDialog.units.times`)})},e.name))}),l(St,{className:s.warningText,children:c(`${m}.confirmWarning`)})]}):l(St,{className:s.message,children:c(`${m}.noUsage`,{title:t.title})})]})})},hz=B()(e=>({popover:{"& .MuiPopover-paper":{maxWidth:214,borderRadius:e.spacing(1),boxShadow:e.shadows[8]}},section:{marginBottom:e.spacing(1)},header:{borderBottom:`1px solid ${e.palette.divider}`,paddingRight:e.spacing(1.5),paddingLeft:e.spacing(1.5),marginBottom:e.spacing(.5),paddingBottom:e.spacing(.5)},colorGridSection:{marginBottom:e.spacing(1)},textField:{marginTop:e.spacing(1.5),paddingRight:e.spacing(1.5),paddingLeft:e.spacing(1.5)},colorGrid:{display:`flex`,flexDirection:`row`,flexWrap:`nowrap`,overflowX:`auto`,justifyContent:`space-between`,width:`100%`,overflowY:`hidden`,padding:e.spacing(.5,1.5)},colorSwatch:{width:25,height:25,minWidth:25,flexShrink:0,borderRadius:e.spacing(1),border:`1px solid transparent`,cursor:`pointer`,transition:`all 0.2s`,"&:hover":{transform:`scale(1.05)`},"&.selected":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 1px ${e.palette.primary.main}`}},footer:{display:`flex`,justifyContent:`space-between`,borderTop:`1px solid ${e.palette.divider}`,padding:e.spacing(1,1.5)},deleteButton:{height:e.spacing(4),minWidth:`auto`,color:e.palette.error.main,"& .MuiButton-icon":{marginLeft:e.spacing(.25)}},saveButton:{color:e.palette.primary.main,height:e.spacing(4),minWidth:`auto`}
2743,closeButton:{padding:e.spacing(.5),marginTop:e.spacing(1),marginBottom:e.spacing(.5),position:`relative`,left:e.spacing(.5),color:`black`}})),gz=`fa-IR`,_z=({open:e,anchorEl:t,tag:n,allTags:r=[],onClose:i,onUpdate:a,onDelete:o,onFetchUsedCount:s,isDeleting:c=!1,isEditing:u=!1,editPopoverOrigins:f})=>{let{classes:p,cx:m}=hz(),{t:h}=Ye(),[g,_]=(0,J.useState)(n.title),[v,y]=(0,J.useState)(n.color),[b,x]=(0,J.useState)(!1),[S,C]=(0,J.useState)(!1),[w,T]=(0,J.useState)(null),[E,D]=(0,J.useState)(null),[O,k]=(0,J.useState)(!1),[A,j]=(0,J.useState)(`edit`),M=(0,J.useMemo)(()=>{let e=g.trim().toLocaleLowerCase(gz);return g.trim()!==n.title.trim()&&e!==``&&r.some(t=>t.id!==n.id&&t.title.trim().toLocaleLowerCase(gz)===e)},[r,n.id,n.title,g]);(0,J.useEffect)(()=>{_(n.title),y(n.color),x(!1),j(`edit`)},[n]),(0,J.useEffect)(()=>{k(u||c)},[u,c]),(0,J.useEffect)(()=>{S&&!O&&!E&&(L(),setTimeout(()=>{i()},200))},[O]);let N=e=>{let t=e.target.value;t.length>56||(_(t),x(t.trim()!==n.title||v!==n.color))},P=e=>{y(e.background),x(g.trim()!==n.title||e.background!==n.color)},F=async e=>{if(!(e===`edit`&&M)){if(s){D({type:e,value:!0});try{T(await s(n.id)),j(e)}catch(e){console.error(`Error fetching used count:`,e),T(null)}finally{D(null)}}C(!0)}},I=()=>{D({type:`delete`,value:!0});try{o(n.id)}finally{D(null)}},ee=()=>{if(M)return;let e={};g.trim()!==n.title&&g.trim()!==``&&(e.title=g.trim()),v!==n.color&&(e.color=v),Object.keys(e).length>0&&(a(n.id,e),x(!1))},L=()=>{C(!1),D(null)};return d(Zr,{open:e,anchorEl:t,onClose:i,className:p.popover,anchorOrigin:{vertical:`bottom`,horizontal:`left`,...f?.anchorOrigin},transformOrigin:{vertical:`top`,horizontal:`left`,...f?.transformOrigin},children:[d(G,{children:[d(G,{className:p.section,children:[l(G,{className:p.header,children:l(Gn,{className:p.closeButton,size:`small`,onClick:i,edge:`end`,children:l(X_,{fontSize:`small`})})}),l(G,{className:p.textField,children:l(wr,{fullWidth:!0,size:`small`,value:g,onChange:N,error:M,helperText:M?h(`tags.input.duplicateTitle`):void 0,placeholder:h(`tags.input.placeholder`),slotProps:{input:{style:{fontWeight:400,fontSize:14,lineHeight:`100%`,letterSpacing:`0%`,textAlign:`right`,verticalAlign:`middle`}}}})})]}),l(G,{className:p.colorGridSection,children:l(G,{className:p.colorGrid,children:Vw.map(e=>l(G,{className:m(p.colorSwatch,{selected:v===e.background}),sx:{backgroundColor:e.background},onClick:()=>P(e)},e.background))})}),d(G,{className:p.footer,children:[l(G,{}),l(nr,{className:p.saveButton,loading:E?.type===`edit`&&E?.value,size:`small`,onClick:()=>void F(`edit`),color:`primary`,disabled:!b||M,children:h(`tags.confirmDialog.saveButton`)})]})]}),l(mz,{open:S,loading:O,type:A,tag:n,onClose:L,onConfirm:A===`edit`?ee:I,usedCountData:w})]})},vz=B()(e=>({chipContainer:{display:`inline-flex`,alignItems:`center`,gap:e.spacing(.5)},chipLabel:{height:`100%`,display:`inline-flex`,alignItems:`center`},moreButton:{paddingRight:0,paddingLeft:0},closeButton:{padding:e.spacing(.25)},moreIcon:{fontSize:16,marginRight:e.spacing(.5)},chip:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,"& .MuiChip-label":{paddingLeft:0,maxWidth:112,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,lineHeight:`normal`}},chipOption:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,"& .MuiChip-label":{maxWidth:112,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}}})),yz=({liProps:e,tag:t})=>{let{classes:n}=vz();return l(`li`,{...e,style:{width:`auto`,...e.style},children:l(xr,{className:n.chipOption,label:t.title,sx:Gw(t.color)})})},bz=({liProps:e,tag:t,onDelete:n})=>ue(`li`,{...e,key:t.id,style:{display:`inline-block`,...e.style}},l(li,{title:t.title,children:l(xr,{label:t.title,size:`small`,sx:Gw(t.color),onDelete:e=>{e.stopPropagation(),n(t.id,e)},deleteIcon:l(ci,{})})})),xz=({tags:e,allTags:t=[],onDelete:n,onUpdate:r,onDeleteTag:i,onFetchUsedCount:a,isDeletingTag:o=!1,isEditingTag:s=!1,editPopoverOrigins:c,option:u})=>{let{classes:p}=vz(),{t:m}=Ye(),[h,g]=(0,J.useState)(null),[_,v]=(0,J.useState)(null),y=(e,t)=>{e.stopPropagation(),v(t),g(e.currentTarget)};return d(f,{children:[e.map(e=>{let t=Vw.find(t=>t.background===e.color)?.text;return{...e,textColor:t}}).map(e=>l(xr,{label:l(li,{title:e.title,children:l(`span`,{children:e.title})}),sx:Gw(e.color),className:p.chip,onDelete:()=>n(e.id),deleteIcon:d(G,{className:p.chipLabel,children:[l(ui,{sx:{color:e.textColor},size:`small`,className:p.moreButton,onClick:t=>y(t,e),security:{hidden:u.hidden,disabled:!1},children:l(li,{title:m(`tags.tooltip.edit`),children:l(qv,{className:p.moreIcon})})}),l(ui,{sx:{color:e.textColor},className:p.closeButton,children:l(li,{title:m(`tags.tooltip.delete`),children:l(ci,{fontSize:`small`})})})]})},e.id)),_&&i&&l(_z,{open:!!h,anchorEl:h,tag:_,allTags:t,onClose:()=>{g(null),v(null)},onUpdate:(e,t)=>
2743{r&&r(e,t)},onDelete:i,onFetchUsedCount:a,isDeleting:o,isEditing:s,editPopoverOrigins:c})]})},Sz=_r({limit:100,trim:!0,matchFrom:`any`,stringify:e=>`inputValue`in e&&e.isCreate?e.inputValue:e.title}),Cz=({value:e,onChange:t,initialTags:n=[],multiple:r=!0,inPopover:i=!1,allTags:a,onCreateTag:o,isCreatingTag:s=!1})=>{let c=a??n,[l,u]=(0,J.useState)(e??[]),[d,f]=(0,J.useState)(``),[p,m]=(0,J.useState)(Hw),[h,g]=(0,J.useState)(!1),[_,v]=(0,J.useState)(null),[y,b]=(0,J.useState)(!1),x=(0,J.useRef)(null);(0,J.useEffect)(()=>{e!==void 0&&u(e)},[e]);let S=c,C=e=>{e.stopPropagation();let{clientX:t,clientY:n}=e;v({top:n+window.scrollY,left:t+window.scrollX}),g(!0)},w=()=>{g(!1)},T=e=>{m(e),w()},E=()=>{b(!0)},D=(0,J.useCallback)((e,t)=>{h&&t===`blur`||s||b(!1)},[h,s]),O=(e,t)=>e.find(e=>e.id===t),k=(e,t)=>e.find(e=>e.title.toLocaleLowerCase()===t.toLocaleLowerCase()),A=(0,J.useCallback)((e,n,a)=>{if(h)return;if(i&&a===`removeOption`&&x.current===`createOption`){x.current=a;return}x.current=a;let s=[];r?s=n||[]:n&&(s=[n]);let d=[],f=i?new Set(l.map(e=>e.id)):new Set;i&&d.push(...l),s.forEach(e=>{if(!(i&&f.has(e.id)))if(`inputValue`in e&&e.isCreate){let t=e.inputValue.trim(),n=ge();if(!t)return;let r=k(c,t);if(r){O(d,r.id)||d.push(r);return}let i={id:n,title:t,color:p.background,textColor:p.text};d.push(i),o&&o({id:n,title:t,color:p.background,textColor:p.text})}else{let t=e;O(d,t.id)||d.push(t)}}),u(d),t&&t(d)},[c,h,O,k,i,r,p,t,o,l]),j=(0,J.useCallback)((e,t,n)=>{h||(n===`blur`||n===`reset`)&&t===``&&d!==``||t.length>56||(f(t),b(t.trim()!==``))},[h,d]),M=(0,J.useCallback)((e,t)=>{let n=Sz(e,t),{inputValue:r}=t,i=new Set(l.map(e=>e.id)),a=[...n.filter(e=>`inputValue`in e&&e.isCreate?!0:!i.has(e.id))];return r!==``&&(c.some(e=>e.title.toLocaleLowerCase()===r.toLocaleLowerCase())||a.push({inputValue:r,title:r,isCreate:!0})),a},[c,l]),N=e=>`inputValue`in e&&e.isCreate?e.inputValue:e.title,P=(0,J.useCallback)(e=>{let n=l.filter(t=>t.id!==e);u(n),t&&t(n)},[t,l]);return{allTags:c,selectedTags:l,inputValue:d,newTagColor:p,colorPickerOpen:h,anchorPosition:_,dropdownOpen:y,options:S,selectedOptions:(0,J.useMemo)(()=>r?l:l[0]||null,[r,l]),isCreatingTag:s,handleOpenColorPicker:C,handleCloseColorPicker:w,handleSelectColor:T,handleDropdownOpen:E,handleDropdownClose:D,handleChangeInternal:A,handleInputChange:j,handleDeleteTag:P,filterOptions:M,getOptionLabel:N,isOptionEqualToValue:(e,t)=>`inputValue`in e&&e.isCreate||`inputValue`in t&&t.isCreate?!1:e.id===t.id}},wz=B()(e=>({root:{width:`100%`,paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},headerContainer:{display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,borderBottom:`1px solid ${e.palette.divider}`,marginBottom:e.spacing(1.5),paddingBottom:e.spacing(1.5),paddingTop:e.spacing(1.5),paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},titleContainer:{textAlign:`center`},titleText:{fontWeight:500,fontSize:14,textAlign:`center`,verticalAlign:`middle`,margin:0},closeButton:{flexShrink:0,position:`absolute`,right:e.spacing(1),color:e.palette.text.onSurface},chipsContainer:{display:`flex`,flexWrap:`wrap`,gap:e.spacing(1),marginTop:e.spacing(1)},chipDeleteIcon:{margin:`0 0 0 5px`},optionRoot:{display:`flex`,alignItems:`center`,width:`auto`,justifyContent:`space-between`,direction:`rtl`,gap:e.spacing(1),paddingTop:e.spacing(1.5)},tagOption:{display:`inline-flex`,alignItems:`center`,padding:`6px 12px`,borderRadius:8,gap:e.spacing(.5),cursor:`pointer`,minHeight:30,backgroundColor:`transparent`},optionLabel:{textAlign:`right`,fontWeight:400,fontSize:14,lineHeight:`100%`,letterSpacing:0,verticalAlign:`middle`},listbox:{display:`flex`,flexWrap:`wrap`,paddingBottom:`0px`,"& li":{padding:`0 !important`,backgroundColor:`inherit !important`,minHeight:`unset !important`,margin:e.spacing(.75)},"& li.createOptionListItem":{width:`100%`,margin:0}},listboxPopover:{display:`flex`,flexWrap:`wrap`,maxHeight:`300px`,overflowY:`auto`,"& li":{padding:`0px`,width:`auto`},"& li.createOptionListItem":{width:`100%`,borderTop:`1px solid ${e.palette.divider}`,paddingBottom:`12px !important`,position:`sticky`,bottom:`0px`,background:`white !important`}},createOptionRoot:{display:`flex`,alignItems:`center`,height:30,borderRadius:e.shape.borderRadius,paddingTop:e.spacing(.75),paddingRight:e.spacing(1.5),paddingBottom:e.spacing(.75),paddingLeft:e.spacing(1.5),marginRight:e.spacing(1.5),gap:e.spacing(1),direction:`rtl`,backgroundColor:e.palette.action.hover,width:`100%`},createOptionTitle:{fontWeight:400,fontSize:14,lineHeight:`100%`,letterSpacing:0,verticalAlign:`middle`},createAction:{display:`flex`,alignItems:`center`,color:e.palette.primary.main,marginLeft:e.spacing(1.5),cursor:`pointer`,"& svg":{color:`white`,fontSize:16},"& button":{height:`32px`,fontSize:12},"& span":{fontWeight:400,lineHeight:`100%`,letterSpacing:0,textAlign:`center`}},colorSwatch:{width:e.spacing(2),height:e.spacing(2),borderRadius:5,cursor:`pointer`,border:`1px solid #4B38BE`},colorPickerWrapper:{display:`flex`,flexWrap:`wrap`,justifyContent:`space-between`,padding:e.spacing(1.5),gap:e.spacing(.75)},colorCircle:{width:`25px`,aspectRatio:`1 / 1`,flexShrink:0,borderRadius:e.shape.borderRadius,cursor:`pointer`},colorCircleSelected:{border:`2px solid ${e.palette.text.primary}`},colorCircleUnselected:{border:`1px solid ${e.palette.divider}`}})),Tz=({label:e,disabled:t,multiple:n=!0,inPopover:r=!1,editPopoverOrigins:i,onClose:a,showTitle:o=!0,...s})=>{let{classes:c}=wz(),{t:u}=Ye(),p=Dt(z().breakpoints.down(`sm`)),{value:m,onChange:h,initialTags:g,allTags:_,onCreateTag:v,isCreatingTag:y,isDeletingTag:b,isEditingTag:x,onUpdateTag:S,onDeleteTag:C,onFetchUsedCount:w,tagOption:T,...E}=s,{allTags:D,selectedTags:O,inputValue:k,newTagColor:A,colorPickerOpen:j,anchorPosition:M,dropdownOpen:N,options:P,selectedOptions:F,isCreatingTag:I,handleOpenColorPicker:ee,handleCloseColorPicker:L,handleSelectColor:R,handleDropdownOpen:te,handleDropdownClose:ne,handleChangeInternal:re,handleInputChange:ie,handleDeleteTag:ae,filterOptions:oe,getOptionLabel:se,isOptionEqualToValue:ce}=Cz({value:m,onChange:h,initialTags:g,multiple:n,inPopover:r,allTags:_,onCreateTag:v,isCreatingTag:y}),le=(e,t)=>
2743l(uz,{liProps:{...e,onCreateOption:e=>{re({},n?[...O,e]:e,`createOption`),ie({},``,`input`)}},title:t.title,classes:c,newTagColor:A,onOpenColorPicker:ee,selectColorLabel:u(`common.labels.selectTagColor`),createLabel:u(`common.labels.create`),isCreatingTag:I}),B=(e,t)=>l(yz,{liProps:e,tag:t,inPopover:r}),ue=(e,t)=>l(bz,{liProps:e,tag:t,onDelete:(e,t)=>{t.stopPropagation(),ae(e)}}),de=(e,t)=>{if(`inputValue`in t&&t.isCreate)return le(e,t);let n=t;return r&&O.some(e=>e.id===n.id)?ue(e,n):B(e,n)},fe=E;return d(f,{children:[o&&!p&&d(q,{className:c.headerContainer,children:[l(q,{className:c.titleContainer,children:l(`p`,{className:c.titleText,children:e??u(`tags.input.label`,`tag title`)})}),l(ui,{onClick:a,className:c.closeButton,size:`small`,children:l(ci,{})})]}),d(q,{className:c.root,children:[l(lN,{open:N&&k.trim()!==``,onOpen:te,onClose:ne,disableClearable:!0,forcePopupIcon:!r,multiple:n,options:P,value:F,onChange:re,filterOptions:oe,getOptionLabel:se,isOptionEqualToValue:ce,renderTags:n?()=>null:void 0,renderOption:de,selectOnFocus:!0,clearOnBlur:!1,handleHomeEndKeys:!0,renderInput:t=>{let r=k.trim()!==``&&!D.some(e=>e.title.toLocaleLowerCase()===k.trim().toLocaleLowerCase());return l(wr,{...t,label:p?e??u(`tags.input.label`,`tag title`):e,placeholder:void 0,size:`small`,sx:{"& .MuiInputBase-input":{paddingTop:`10px`,paddingBottom:`10px`}},onKeyDown:e=>{if(e.key===`Enter`&&r){e.preventDefault();let t={inputValue:k.trim(),title:k.trim(),isCreate:!0};re(e,n?[...O,t]:t,`createOption`),ie(e,``,`input`)}else t.inputProps&&t.inputProps.onKeyDown&&t.inputProps.onKeyDown(e)}})},disabled:t,inputValue:k,onInputChange:ie,slotProps:{popper:{placement:r||p?`bottom`:`top`},listbox:{className:r||p?`${c.listbox} ${c.listboxPopover}`:c.listbox}},...fe}),y&&l(uz,{title:O[O.length-1].title,classes:c,newTagColor:A,onOpenColorPicker:ee,selectColorLabel:u(`common.labels.selectTagColor`),createLabel:u(`common.labels.create`),isCreatingTag:I}),!y&&n&&O.length>0&&l(q,{className:c.chipsContainer,children:O.map(e=>l(xz,{tags:[e],allTags:D,onDelete:ae,onUpdate:S,onDeleteTag:C,onFetchUsedCount:w,isDeletingTag:b,isEditingTag:x,editPopoverOrigins:i,option:T},e.id))})]}),l(lz,{open:j,anchorPosition:M,selectedColor:A,onClose:L,onSelectColor:R,classes:c,ariaLabel:u(`common.labels.selectTagColor`)})]})},Ez=B()(e=>({popoverContent:{paddingBottom:e.spacing(1.5),minWidth:e.spacing(37.5)},mobileContent:{padding:e.spacing(2)},tagIconButton:{borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper,border:`1px solid ${e.palette.background.borderOutline}`,minWidth:e.spacing(4),height:e.spacing(4),padding:e.spacing(0),"&:hover":{backgroundColor:e.palette.action.hover,borderColor:e.palette.grey[400]},"& svg":{color:e.palette.text.primary,fontSize:20},[e.breakpoints.down(`sm`)]:{minWidth:e.spacing(4),height:e.spacing(4),padding:e.spacing(.5),"& svg":{fontSize:18}}},buttonContent:{display:`flex`,alignItems:`center`,gap:e.spacing(.5),flexWrap:`nowrap`,maxWidth:250,justifyContent:`center`,overflow:`hidden`},buttonContentWithTags:{maxWidth:250},chipContainer:{display:`flex`,alignItems:`center`,gap:e.spacing(.5),flexWrap:`nowrap`,overflow:`hidden`,flex:1,minWidth:0},counterText:{fontSize:12,fontWeight:500,color:e.palette.text.primary,whiteSpace:`nowrap`,background:e.palette.action.selected,width:e.spacing(2.5),height:e.spacing(2.5),borderRadius:e.shape.borderRadius,padding:e.spacing(.25),display:`inline-flex`,alignItems:`center`,justifyContent:`center`},iconOnly:{width:e.spacing(4),height:e.spacing(4)},headerContainer:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,flex:1,backgroundColor:e.palette.background.light,padding:e.spacing(1),marginBottom:e.spacing(1)},headerSpacer:{width:e.spacing(5),height:e.spacing(5)},icon:{fontWeight:700,fontSize:e.spacing(3),color:e.palette.text.twilightVelvet,rotate:`180deg`},title:{fontWeight:700,fontSize:e.spacing(2),color:e.palette.text.twilightVelvet},contentDialogClasses:{padding:`0px !important`,margin:`0px !important`,borderRadius:`0px !important`},footer:{padding:e.spacing(2),borderTop:`1px solid ${e.palette.divider}`}})),Dz=({icon:e,value:t,onChange:n,anchorOrigin:r={vertical:`bottom`,horizontal:`left`},transformOrigin:i={vertical:`top`,horizontal:`left`},showPopover:a=!0,...o})=>{let{classes:s}=Ez(),c=Dt(z().breakpoints.down(`sm`)),{t:u}=Ye(),[p,m]=(0,J.useState)(null),[h,g]=(0,J.useState)(t??[]);(0,J.useEffect)(()=>{t!==void 0&&g(t)},[t]);let _=e=>{m(e.currentTarget)},v=()=>{m(null)},y=(0,J.useCallback)(e=>{g(e),n?.(e)},[n]),b=!!p;return d(f,{children:[l(cz,{selectedTags:h,icon:e,classes:s,onClick:a?_:void 0,isOpen:b}),a&&(c?d(NN,{fullScreen:!0,open:b,onClose:v,dialogClasses:{paper:s.contentDialogClasses}
2743,contentDialogClasses:s.contentDialogClasses,dialogActionChildren:l(fi,{variant:`contained`,color:`primary`,onClick:v,size:`small`,children:u(`tags.confirm`)}),dialogActionClasses:s.footer,children:[d(q,{className:s.headerContainer,children:[l(ui,{onClick:e=>{e.stopPropagation(),v()},children:l(jr,{fontSize:`small`,className:s.icon})}),l(si,{className:s.title,children:u(`tags.input.label`,`tag title`)}),l(q,{className:s.headerSpacer})]}),l(q,{className:s.mobileContent,children:l(Tz,{...o,value:h,onChange:y,noOptionsText:u(`tags.input.noOptionFound`)})})]}):l(Zr,{open:b,anchorEl:p,onClose:v,anchorOrigin:r,transformOrigin:i,PaperProps:{style:{maxHeight:`80vh`,overflow:`auto`,borderRadius:`8px`,width:`364px`}},children:l(q,{className:s.popoverContent,children:l(Tz,{...o,value:h,onChange:y,inPopover:!0,onClose:v,noOptionsText:u(`tags.input.noOptionFound`)})})}))]})},Oz=B()(e=>({container:{width:`100%`,height:e.spacing(6),padding:e.spacing(1,1.5),backgroundColor:e.palette.background.shadow,borderRadius:e.spacing(1),display:`flex`,alignItems:`center`,justifyContent:`flex-end`,gap:e.spacing(1)},mobileContainer:{backgroundColor:`transparent`,borderBottom:`1px solid ${e.palette.divider}`,borderRadius:0},detailsButton:{width:e.spacing(4),height:e.spacing(4),border:`1px solid`,borderRadius:e.spacing(.5),borderColor:e.palette.warning.main,boxSizing:`border-box`},openHistory:{backgroundColor:e.palette.background.lightRed},mobile:{width:e.spacing(4),height:e.spacing(4)}})),kz=({isMobile:e,tags:t,history:n})=>{let{t:r}=Ye(),{classes:i,cx:a}=Oz(),{allTags:o,selectedTags:s,isDeletingTag:c,isEditingTag:u,isCreatingTag:f,handleChangeTags:p,handleCreateTag:m,handleUpdateTag:h,handleDeleteTag:g,handleFetchUsedCount:_,tagOption:v}=t;return d(q,{className:a(i.container,{[i.mobileContainer]:e}),children:[n&&l(ui,{onClick:n.onClick,className:a(i.detailsButton,{[i.openHistory]:n.isVisibleHistoryDialog,[i.mobile]:e}),color:`warning`,disabled:n.disabled,tooltip:r(`meetings.labels.meeting-history`),children:l(yy,{color:`warning`})}),l(Dz,{value:s,allTags:o,onChange:p,onCreateTag:m,onUpdateTag:h,onDeleteTag:g,onFetchUsedCount:_,isDeletingTag:c,isEditingTag:u,isCreatingTag:f,label:r(`tags.input.label`),placeholder:r(`tags.input.placeholder`),tagOption:v})]})},Az=(e,t)=>{(0,J.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t?.()}return document.addEventListener(`mousedown`,n),()=>{document.removeEventListener(`mousedown`,n)}},[t,e])},jz=[[`bold`,`italic`,`underLine`,`strikethrough`,`unordered`,`ordered`,`lineHeight`,`alignJustify`,`alignRight`,`alignCenter`,`alignLeft`,`indentIncrease`,`indentDecrease`]],Mz=({ref:e,...t})=>l(YR,{...t,tools:jz,ref:e}),Nz=({disabled:e,onChange:t,value:n})=>{let[r,i]=(0,J.useState)(!1),a=(0,J.useRef)(null),o=(0,J.useRef)(null);return(0,J.useLayoutEffect)(()=>{r&&a.current?.editorRef?.focus()},[r]),Az(o,()=>{i(!1)}),r||n?l(G,{ref:o,children:l(Mz,{disabled:e,onFocus:()=>{i(!0)},isShowingTools:r,value:n,onChange:e=>{t(`meetingOrder`,e&&JSON.stringify(e))},ref:a})}):l(wr,{name:`meetingOrder`,placeholder:W(`meetings.labels.meetingOrder`)??``,onFocus:()=>{i(!0)},disabled:e,fullWidth:!0})},Pz=ae(pN,{root:{"& label.Mui-focused":{color:`#808080`},"& .MuiInput-underline:after":{borderBottomColor:`#3FC063`},"& .MuiOutlinedInput-root":{"& fieldset":{},"&:hover fieldset":{borderColor:`#347EEE`},"&.Mui-focused fieldset":{borderColor:`#347EEE`},"&.Mui-disabled fieldset":{borderColor:`#808080`}}}}),Fz=({value:e,contacts:t,onChange:n,disabled:r})=>{let i=(0,J.useMemo)(()=>{let n=e?.reduce?.((e,t)=>
2743({...e,[t?.id]:t}),{});return t?.filter?.(e=>!n[e?.id])??[]},[e,t]);return l(yr,{noOptionsText:W(`common.messages.noOptions`),options:i,disabled:r,multiple:!0,value:[],onChange:n,isOptionEqualToValue:(e,t)=>e.id===t.id,getOptionLabel:e=>SN(e),filterSelectedOptions:!0,popupIcon:l(hi,{}),renderInput:e=>l(Pz,{...e,disabled:r,label:W(`common.labels.searchContent`)}),renderTags:(e,t)=>e.map((e,n)=>l(xr,{label:SN(e),...t({index:n})}))})},Iz=B()(e=>({treeDesktop:{maxWidth:`100%`,padding:8,borderRadius:8,backgroundColor:e.palette.background.innerPage},treeMobile:{padding:8,borderRadius:8},treeItemContent:{padding:e.spacing(0,1)},treeItemGroup:{padding:0,marginRight:e.spacing(2)}})),Lz=({slotedPositionEmployeeData:e,slotedPositionEmloyeeLoading:t,isSingleSelection:n,isMobile:r,radioButtonValue:i,checkboxValue:a,handleChangeRadioButton:o,handleOnChangeCheckbox:s,isForwardLetter:c})=>{let{classes:u}=Iz(),[d,p]=(0,J.useState)([]);(0,J.useEffect)(()=>{Object.keys(e).length&&m(e)},[]);let m=e=>Object.keys(e)?.map(t=>Object.keys(e[t]).map(n=>{p(r=>[...r,`${t}_${e[t][n].slot.join(`-`)}`]),m(e[t][n].children||{})})),h=(e,t)=>{p(t)},g=e=>!!e?.user?.id,_=e=>!!(c&&(e.isTemporary||e.status===`disabled`)),v=e=>Object.keys(e).map(t=>Object.keys(e[t]).map(r=>l(f,{children:l(GP,{itemId:`${t}_${e[t][r].slot.join(`-`)}`,classes:{content:u.treeItemContent,groupTransition:u.treeItemGroup},label:n?l(Br,{value:{position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username,firstName:e[t][r].user?.firstName,lastName:e[t][r].user?.lastName}},onChange:o,onClick:e=>e.stopPropagation(),control:l(mr,{size:`small`,value:JSON.stringify({position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username||null,firstName:e[t][r].user?.firstName||null,lastName:e[t][r].user?.lastName||null}}),disabled:_(e[t][r])||!g(e[t][r]),checked:JSON.stringify(i)===JSON.stringify({position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username||null,firstName:e[t][r].user?.firstName||null,lastName:e[t][r].user?.lastName||null}}),onChange:o,onClick:e=>e.stopPropagation()}),label:l(f,{children:`${e[t][r].title} (${Me(e[t][r].user,null,!0)})`})}):l(Br,{control:l(kr,{size:`small`,value:JSON.stringify({position:{id:t,slot:e[t][r].slot,title:e[t][r].title,status:e[t][r].status,isTemporary:e[t][r].isTemporary},user:{id:e[t][r].user?.id||null,username:e[t][r].user?.username||null,firstName:e[t][r].user?.firstName||null,lastName:e[t][r].user?.lastName||null}}),checked:a.filter(n=>JSON.stringify({position:{id:n?.position?.id,slot:n?.position?.slot},user:{id:n?.user?.id||null}})===JSON.stringify({position:{id:t,slot:e[t][r].slot},user:{id:e[t][r].user?.id||null}})).length>0,disabled:_(e[t][r])||!g(e[t][r]),onChange:s,onClick:e=>e.stopPropagation()}),label:l(f,{children:`${e[t][r].title} (${Me(e[t][r].user,null,!0)})`})}),children:v(e[t][r].children||{})})})));return l(BP,{"aria-label":`file system navigator`,slots:{expandIcon:mi,collapseIcon:hi},expandedItems:d,onExpandedItemsChange:h,sx:{height:r?`auto`:440,flexGrow:1,maxWidth:400,overflowY:r?`none`:`auto`,overflowX:`auto`},className:r?u.treeMobile:u.treeDesktop,children:t?l(Oi,{}):v(e)})},Rz=({slotedPositionEmployeeData:e,slotedPositionEmloyeeLoading:t,open:n,handelClose:r,isSingleSelection:i,isMobile:a,selectedPositionEmployee:o,onSubmitPositionEmployee:s,isForwardLetter:c})=>{let[u,d]=(0,J.useState)(o),[f,p]=(0,J.useState)(o);(0,J.useEffect)(()=>{i?d(o):p(o)},[o,r]);let m=e=>{d(JSON.parse(e.target.value))}
2743,h=e=>{e.target.checked?p(t=>[...t,JSON.parse(e.target.value)]):e.target.checked||(o.includes(JSON.parse(e.target.value))?p(t=>[...t.filter(t=>g(t)!==g(JSON.parse(e.target.value)))]):p(f.filter(t=>g(t)!==g(JSON.parse(e.target.value)))))},g=e=>JSON.stringify({position:{id:e.position.id,slot:e.position.slot},user:{id:e.user?.id||null}});return l(KP,{open:n,handelClose:r,isMobile:a,handleSubmitButton:()=>{i?s(``,u):s(``,f),r()},children:l(Lz,{slotedPositionEmployeeData:e||{},isSingleSelection:i,handleChangeRadioButton:m,handleOnChangeCheckbox:h,isMobile:a,selectedPositionEmployee:o,radioButtonValue:u,checkboxValue:f,isForwardLetter:c,slotedPositionEmloyeeLoading:t})})},zz=B()({autoComplete:{"& .MuiInputBase-root":{height:`unset`,minHeight:`42px!important`}},endAdornment:{left:`0!important`},textFieldRoot:{"& > div.MuiAutocomplete-inputRoot[class*='MuiOutlinedInput-root']":{paddingRight:`8px`,"& > div.MuiAutocomplete-endAdornment":{position:`relative`,order:2}}}}),Bz=ae(pN,{root:{"& label.Mui-focused":{color:`#808080`},"& .MuiInput-underline:after":{borderBottomColor:`#3FC063`},"& .MuiOutlinedInput-root":{"& fieldset":{},"&:hover fieldset":{borderColor:`#3FC063`},"&.Mui-focused fieldset":{borderColor:`#3FC063`}}}}),Vz=YP(({slotedPositionEmployeeData:e,positionEmployeeOptions:t,slotedPositionEmloyeeLoading:n,label:r,name:i,selectedPositionEmployee:a,selectedPositionEmployeeForTree:o,handleChangeAutocomplete:s,openPositionEmployeeViewerDialog:c,handleOpenPositionEmployeeViewerDialog:u,handleClosePositionEmployeeViewerDialog:p,onSubmitPositionEmployee:m,isSingleSelection:h=!1,isMobile:g})=>{let{classes:_}=zz(),[v,y]=(0,J.useState)(t?.filter?.(e=>e?.user?.id));(0,J.useEffect)(()=>{y(t?.filter?.(e=>e?.user?.id))},[t]),(0,J.useEffect)(()=>{y(t.filter(e=>e?.user?.id&&!a.find(t=>JSON.stringify(e)===JSON.stringify(t))))},[a]);let b=(0,J.useMemo)(()=>{let e=o?.reduce?.((e,t)=>
2743({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{})??{};return v?.filter?.(t=>!e[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`])??[]},[o,v]);return d(f,{children:[l(Hr,{xs:12,children:l(yr,{noOptionsText:W(`common.messages.noOptions`),multiple:!h,id:i,options:b,getOptionLabel:e=>Me(e.user,e.position),value:a,onChange:s,filterSelectedOptions:!0,classes:{endAdornment:_.endAdornment},popupIcon:l(hi,{}),renderInput:e=>l(Bz,{...e,variant:`outlined`,label:r,classes:{root:_.textFieldRoot},InputProps:{...e.InputProps,endAdornment:d(f,{children:[e.InputProps.endAdornment,l(Gn,{id:`position-employee-tree-button`,onClick:u,size:`small`,children:l(pi,{})})]})}})})}),c&&l(Rz,{slotedPositionEmployeeData:e,open:c,handelClose:p,isSingleSelection:h,isMobile:g,selectedPositionEmployee:o??a,onSubmitPositionEmployee:m,slotedPositionEmloyeeLoading:n})]})}),Hz=B()({root:{display:`flex`,flexDirection:`row`,gap:24,alignItems:`center`,flexWrap:`wrap`},selectorContainer:{flex:1,minWidth:170},toggleContainer:{display:`flex`,flexDirection:`row`,gap:12,alignItems:`center`,flexWrap:`wrap`},toggleButtonGroup:{height:40,"& button":{border:`1px solid #79747E`,borderRadius:`100px`,padding:`0px 12px`},"& button:not(:first-of-type)":{border:`1px solid #79747E !important`},display:`flex`,flexDirection:`row`},buttonContainer:{display:`flex`,gap:4},activatedBox:{color:`#7E6BF1 !important`,background:`#F1EFFF !important`},item:{flex:1,color:`#1C1B1F`,minWidth:`135.5px`,padding:`0px !important`},font:{fontSize:14,weight:400}}),Uz=e=>{let{type:t,onChangeType:n,selectedContacts:r,selectedEmployees:i,contacts:a,onChangeContact:o,onChangeEmployee:s,onAddEmployee:c,organizationId:u,disabled:f}=e,{classes:p,cx:m}=Hz(),[h,g]=(0,J.useState)(!1);return d(q,{className:p.root,children:[d(q,{className:p.toggleContainer,children:[d(q,{className:p.font,children:[W(`common.labels.chooseFrom`),`:`]}),d($p,{disabled:f,value:t,className:p.toggleButtonGroup,children:[l(ai,{classes:{selected:p.activatedBox,root:p.item},onClick:()=>n(`employee`),value:`employee`,children:d(q,{className:m(p.buttonContainer,{}),children:[t===`employee`&&l(K_,{}),l(q,{children:W(`employee.labels.listOfEmployees`)})]})}),l(ai,{classes:{selected:p.activatedBox,root:p.item},onClick:()=>n(`contact`),value:`contact`,children:d(q,{className:m(p.buttonContainer,{}),children:[t===`contact`&&l(K_,{}),l(q,{children:W(`common.labels.contactsList`)})]})})]})]}),l(q,{className:p.selectorContainer,children:t===`contact`?l(Fz,{value:r,contacts:a,onChange:o,disabled:f}):l(Vz,{organizationId:u,label:W(`common.labels.searchEmployees`),disabled:f,selectedPositionEmployee:[],selectedPositionEmployeeForTree:i??[],handleChangeAutocomplete:c,openPositionEmployeeViewerDialog:h,handleOpenPositionEmployeeViewerDialog:()=>g(!0),handleClosePositionEmployeeViewerDialog:()=>g(!1),onSubmitPositionEmployee:s,isMobile:!1,sortPositions:eF})})]})},Wz=B()(e=>({root:{display:`flex`,flexDirection:`row`,gap:4,alignItems:`flex-start`,justifyContent:`space-between`,[e.breakpoints.down(`sm`)]:{flexWrap:`wrap`}},selectedItemContainer:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`,flexWrap:`wrap`},box:{padding:4,borderRadius:4,display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`,justifyContent:`center`,height:26,cursor:`default`},green:{color:`#3FC063`,backgroundColor:`#F3FFF7`},blue:{color:`#1F67D3`,backgroundColor:`#F4F8FB`},btnClose:{width:13,height:13},link:{color:`#0099DB`,minWidth:`max-content`,height:`28px`}})),Gz=e=>{let{selectedContacts:t,selectedEmployees:n,onRemoveEmployee:r,onRemoveContact:i,disabled:a,expanded:o,changeExpanded:s}=e,{classes:c}=Wz(),u=(0,J.useRef)(null),[f,p]=(0,J.useState)(0);return(0,J.useLayoutEffect)(()=>{p(u.current?.clientHeight??0)},[n,t]),d(q,{className:c.root,children:[l(q,{style:{maxHeight:o?``:34,overflow:o?`unset`:`hidden`},children:d(G,{ref:u,className:c.selectedItemContainer,children:[n?.map(e=>l(Kz,{disabled:a,type:`employee`,tooltip:W(`organization.labels.employeesOrganization`),onRemove:()=>r(e),children:l(q,{children:Me(e?.user,e?.position)})},`${e?.position?.id}-${e?.user?.id}`)),t?.map(e=>l(Kz,{disabled:a,type:`contact`,tooltip:W(`organization.labels.organizationAudience`),onRemove:()=>i(e),children:l(si,{children:SN(e).trim()})},e.id))]})}),(!!n?.length||!!t?.length)&&f>
274330&&d(q,{children:[!o&&l(fi,{size:`small`,className:c.link,endIcon:l(hi,{}),onClick:()=>s(!0),children:W(`common.labels.viewAll`)}),o&&l(fi,{size:`small`,className:c.link,endIcon:l(gv,{}),onClick:()=>s(!1),children:W(`common.labels.ViewLess`)})]})]})},Kz=e=>{let{onRemove:t,children:n,type:r,disabled:i,tooltip:a}=e,{classes:o,cx:s}=Wz();return l(li,{title:a,children:d(G,{className:s(o.box,{[o.green]:r===`employee`,[o.blue]:r===`contact`}),children:[l(q,{children:n}),!i&&l(ui,{onClick:()=>t(),className:s(o.btnClose,{[o.green]:r===`employee`,[o.blue]:r===`contact`}),children:l(U_,{fontSize:`small`})})]})})},qz=e=>{let{open:t,onClose:n,onClickEditMeeting:r,loading:i}=e,{t:a}=Ye();return l(NN,{open:t,onClose:i?()=>{}:n,title:a(`meetings.labels.edit-recurrent-meeting`),maxWidth:`xs`,isTitleShow:!0,dialogActionChildren:l(fi,{variant:`text`,onClick:r,disabled:i,children:i?l(Oi,{}):a(`common.labels.submit-and-edit`)}),children:d(q,{children:[l(q,{sx:{textAlign:`center`},children:l(gi,{color:`warning`})}),l(si,{variant:`body1`,color:`black`,fontWeight:`700`,fontSize:16,marginTop:.5,marginBottom:1.5,children:a(`meetings.labels.delete-meeting-recurrence`)}),l(si,{variant:`caption`,fontSize:14,children:a(`meetings.labels.delete-meeting-recurrence-description`)})]})})},Jz=e=>{let{open:t,onClose:n,onClickEditMeeting:r,loading:i}=e,{t:a}=Ye();return l(NN,{open:t,onClose:i?()=>{}:n,title:a(`meetings.labels.edit-recurrent-meeting`),maxWidth:`xs`,isTitleShow:!0,dialogActionChildren:l(fi,{variant:`text`,onClick:r,disabled:i,children:i?l(Oi,{}):a(`common.labels.submit-and-edit`)}),children:d(q,{children:[l(q,{sx:{textAlign:`center`},children:l(gi,{color:`warning`})}),l(si,{variant:`body1`,color:`black`,fontWeight:`700`,fontSize:16,marginTop:.5,marginBottom:1.5,children:a(`meetings.labels.edit-recurrence-item-meeting`)}),l(si,{variant:`caption`,fontSize:14,children:a(`meetings.labels.edit-recurrence-item-meeting-description`)})]})})},Yz=e=>{let{open:t,onClose:n,onClickEditMeeting:r,recurrenceInstanceChangeType:i,selectedRecurrentMeetingEditType:a,onChangeRecurrentMeetingEditType:o,loading:s,meetingInstanceMode:c,disabled:u=!1,errors:f}=e,{t:p}=Ye();return l(NN,{open:t,onClose:s?()=>{}:n,title:p(`meetings.labels.${c}-recurrent-meeting`),fullWidth:!0,maxWidth:`xs`,isTitleShow:!0,dialogActionChildren:l(fi,{variant:`contained`,onClick:r,disabled:s||u,children:s?l(Oi,{color:`white`}):p(`common.labels.save`)}),children:l(q,{children:d(Cr,{children:[l(up,{"aria-labelledby":`radio-buttons-group-label`,name:`radio-buttons-group`,value:a,onChange:o,children:i.map(e=>d(J.Fragment,{children:[l(Br,{value:e,control:l(mr,{}),label:p(`meetings.labels.${e}`)}),f?.[e]&&l(si,{variant:`subtitle1`,startIcon:l(fv,{fontSize:`small`}),sx:{textAlign:`justify`,color:`error.main`},children:f?.[e]})]},e))}),a===`${c}-recurrent-meetings-series-from-here-on`&&l(si,{variant:`subtitle1`,startIcon:l(Bv,{}),sx:{textAlign:`justify`},children:p(`meetings.labels.edit-recurrent-meetings-series-description`)})]})})})},Xz=B()(e=>({root:{display:`flex`,width:`fit-content`,flexDirection:`column`,justifyContent:`center`},dateBox:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,margin:e.spacing(.5,0),"& p":{borderRadius:e.spacing(.5),padding:e.spacing(.5),fontWeight:700,background:e.palette.background.innerPage,color:e.palette.background.secondary,"&:first-child":{marginLeft:e.spacing(1)},"&:last-child":{marginRight:e.spacing(1)}}}})),Zz=({open:e,onClose:t,selectedDays:n})=>{let{t:r}=Ye(),{classes:i}=Xz();return l(NN,{open:e,onClose:t,title:r(`meetings.labels.recurrent-meeting`),fullWidth:!0,maxWidth:`xs`,isTitleShow:!0,children:l(q,{sx:{display:`flex`,justifyContent:`center`},children:l(q,{className:i.root,children:n.sort().map(e=>d(q,{className:i.dateBox,children:[l(si,{variant:`body1`,children:lM(e).label}),l(si,{variant:`body1`,children:Ve(e)})]}))})})})},Qz=({hidden:e,security:t,...n})=>l(f,{children:!e&&!t?.hidden&&l(gr,{...n,children:n.children})});function $z(e){return ot(`MuiTimeClock`,e)}tt(`MuiTimeClock`,[`root`,`arrowSwitcher`]);var eB={x:220/2,y:220/2},tB={x:eB.x,y:0},nB=tB.x-eB.x,rB=tB.y-eB.y,iB=e=>180/Math.PI*e,aB=(e,t,n)=>{let r=t-eB.x,i=n-eB.y,a=iB(Math.atan2(nB,rB)-Math.atan2(r,i));a=Math.round(a/e)*e,a%=360;let o=Math.floor(a/e)||0,s=r**2+i**2;return{value:o,distance:Math.sqrt(s)}},oB=(e,t,n=1)=>{let{value:r}=aB(n*6,e,t);return r=r*n%60,r},sB=(e,t,n)=>{let{value:r,distance:i}=aB(30,e,t),a=r||12;return n?a%=12:i<220/2-36&&(a+=12,a%=24),a};function cB(e){return ot(`MuiClockPointer`,e)}tt(`MuiClockPointer`,[`root`,`thumb`]);var lB=[`className`,`hasSelected`,`isInner`,`type`,`viewValue`],uB=e=>{let{classes:t}=e;return Et({root:[`root`],thumb:[`thumb`]},cB,t)},dB=ft(`div`,{name:`MuiClockPointer`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:`absolute`,left:`calc(50% - 1px)`,bottom:`50%`,transformOrigin:`center bottom 0px`,variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create([`transform`,`height`])}}]})),fB=ft(`div`,{name:`MuiClockPointer`,slot:`Thumb`,overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:`50%`,position:`absolute`,top:-21,left:`calc(50% - ${36/2}px)`,border:`${32/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:`content-box`,variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function pB(e){let t=fr({props:e,name:`MuiClockPointer`}),{className:n,isInner:r,type:i,viewValue:a}=t,s=xt(t,lB),c=J.useRef(i);J.useEffect(()=>{c.current=i},[i]);let l=o({},t,{shouldAnimate:c.current!==i}),u=uB(l);return(0,X.jsx)(dB,o({style:(()=>{let e=360/(i===`hours`?12:60)*a;return i===`hours`&&a>12&&(e-=360),{height:Math.round((r?.26:.4)*220),transform:`rotateZ(${e}deg)`}})(),className:ht(u.root,n),ownerState:l},s,{children:(0,X.jsx)(fB,{ownerState:l,className:u.thumb})}))}function mB(e){return ot(`MuiClock`,e)}tt(`MuiClock`,[`root`,`clock`,`wrapper`,`squareMask`,`pin`,`amButton`,`pmButton`,`meridiemText`,`selected`]);var hB=e=>{let{classes:t,meridiemMode:n}=e;return Et({root:[`root`],clock:[`clock`],wrapper:[`wrapper`],squareMask:[`squareMask`],pin:[`pin`],amButton:[`amButton`,n===`am`&&`selected`],pmButton:[`pmButton`,n===`pm`&&`selected`],meridiemText:[`meridiemText`]},mB,t)},gB=ft(`div`,{name:`MuiClock`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:`flex`,justifyContent:`center`,alignItems:`center`,margin:e.spacing(2)})),_B=ft(`div`,{name:`MuiClock`,slot:`Clock`,overridesResolver:(e,t)=>t.clock})({backgroundColor:`rgba(0,0,0,.07)`,borderRadius:`50%`,height:220,width:220,flexShrink:0,position:`relative`,pointerEvents:`none`}),vB=ft(`div`,{name:`MuiClock`,slot:`Wrapper`,overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:`none`}}),yB=ft(`div`,{name:`MuiClock`,slot:`SquareMask`,overridesResolver:(e,t)=>t.squareMask})({width:`100%`,height:`100%`,position:`absolute`,pointerEvents:`auto`,outline:0,touchAction:`none`,userSelect:`none`,variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:`pointer`,borderRadius:`50%`},"&:active":{cursor:`move`}}}]}),bB=ft(`div`,{name:`MuiClock`,slot:`Pin`,overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:`50%`,backgroundColor:(e.vars||e).palette.primary.main,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`})),xB=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:36,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),SB=ft(Gn,{name:`MuiClock`,slot:`AmButton`,overridesResolver:(e,t)=>t.amButton})(({theme:e})=>o({},xB(e,`am`),{position:`absolute`,left:8})),CB=ft(Gn,{name:`MuiClock`,slot:`PmButton`,overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>o({},xB(e,`pm`),{position:`absolute`,right:8})),wB=ft(St,{name:`MuiClock`,slot:`meridiemText`,overridesResolver:(e,t)=>t.meridiemText})({overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`});function TB(e){let t=fr({props:e,name:`MuiClock`}
2743),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:o,handleMeridiemChange:s,isTimeDisabled:c,meridiemMode:l,minutesStep:u=1,onChange:d,selectedId:f,type:p,viewValue:m,viewRange:[h,g],disabled:_=!1,readOnly:v,className:y}=t,b=t,x=on(),S=jn(),C=J.useRef(!1),w=hB(b),T=c(m,p),E=!n&&p===`hours`&&(m<1||m>12),D=(e,t)=>{_||v||c(e,p)||d(e,t)},O=(e,t)=>{let{offsetX:r,offsetY:i}=e;if(r===void 0){let t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,i=e.changedTouches[0].clientY-t.top}D(p===`seconds`||p===`minutes`?oB(r,i,u):sB(r,i,!!n),t)},k=e=>{C.current=!0,O(e,`shallow`)},A=e=>{C.current&&=(O(e,`finish`),!1),e.preventDefault()},j=e=>{e.buttons>0&&O(e.nativeEvent,`shallow`)},M=e=>{C.current&&=!1,O(e.nativeEvent,`finish`)},N=J.useMemo(()=>p===`hours`?!0:m%5==0,[p,m]),P=p===`minutes`?u:1,F=J.useRef(null);rt(()=>{i&&F.current.focus()},[i]);let I=e=>Math.max(h,Math.min(g,e)),ee=e=>(e+(g+1))%(g+1);return(0,X.jsxs)(gB,{className:ht(w.root,y),children:[(0,X.jsxs)(_B,{className:w.clock,children:[(0,X.jsx)(yB,{onTouchMove:k,onTouchStart:k,onTouchEnd:A,onMouseUp:M,onMouseMove:j,ownerState:{disabled:_},className:w.squareMask}),!T&&(0,X.jsxs)(J.Fragment,{children:[(0,X.jsx)(bB,{className:w.pin}),o!=null&&(0,X.jsx)(pB,{type:p,viewValue:m,isInner:E,hasSelected:N})]}),(0,X.jsx)(vB,{"aria-activedescendant":f,"aria-label":S.clockLabelText(p,o,x,o==null?null:x.format(o,`fullTime`)),ref:F,role:`listbox`,onKeyDown:e=>{if(!C.current)switch(e.key){case`Home`:D(h,`partial`),e.preventDefault();break;case`End`:D(g,`partial`),e.preventDefault();break;case`ArrowUp`:D(ee(m+P),`partial`),e.preventDefault();break;case`ArrowDown`:D(ee(m-P),`partial`),e.preventDefault();break;case`PageUp`:D(I(m+5),`partial`),e.preventDefault();break;case`PageDown`:D(I(m-5),`partial`),e.preventDefault();break;case`Enter`:case` `:D(m,`finish`),e.preventDefault();break;default:}},tabIndex:0,className:w.wrapper,children:a})]}),n&&r&&(0,X.jsxs)(J.Fragment,{children:[(0,X.jsx)(SB,{onClick:v?void 0:()=>s(`am`),disabled:_||l===null,ownerState:b,className:w.amButton,title:Ut(x,`am`),children:(0,X.jsx)(wB,{variant:`caption`,className:w.meridiemText,children:Ut(x,`am`)})}),(0,X.jsx)(CB,{disabled:_||l===null,onClick:v?void 0:()=>s(`pm`),ownerState:b,className:w.pmButton,title:Ut(x,`pm`),children:(0,X.jsx)(wB,{variant:`caption`,className:w.meridiemText,children:Ut(x,`pm`)})})]})]})}function EB(e){return ot(`MuiClockNumber`,e)}var DB=tt(`MuiClockNumber`,[`root`,`selected`,`disabled`]),OB=[`className`,`disabled`,`index`,`inner`,`label`,`selected`],kB=e=>{let{classes:t,selected:n,disabled:r}=e;return Et({root:[`root`,n&&`selected`,r&&`disabled`]},EB,t)},AB=ft(`span`,{name:`MuiClockNumber`,slot:`Root`,overridesResolver:(e,t)=>[t.root,{[`&.${DB.disabled}`]:t.disabled},{[`&.${DB.selected}`]:t.selected}]})(({theme:e})=>({height:36,width:36,position:`absolute`,left:`calc((100% - 36px) / 2)`,display:`inline-flex`,justifyContent:`center`,alignItems:`center`,borderRadius:`50%`,color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${DB.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${DB.disabled}`]:{pointerEvents:`none`,color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:o({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function jB(e){let t=fr({props:e,name:`MuiClockNumber`}),{className:n,disabled:r,index:i,inner:a,label:s,selected:c}=t,l=xt(t,OB),u=t,d=kB(u),f=i%12/12*Math.PI*2-Math.PI/2,p=182/2*(a?.65:1),m=Math.round(Math.cos(f)*p),h=Math.round(Math.sin(f)*p);return(0,X.jsx)(AB,o({className:ht(d.root,n),"aria-disabled":r?!0:void 0,"aria-selected":c?!0:void 0,role:`option`,style:{transform:`translate(${m}px, ${h+184/2}px`},ownerState:u},l,{children:s}))}var MB=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:a})=>{let o=t?a.getHours(t):null,s=[],c=+!!e,l=e?12:23,u=t=>o===null?!1:e?t===12?o===12||o===0:o===t||o-12===t:o===t;for(let t=c;t<=l;t+=1){let o=t.toString();t===0&&(o=`00`);let c=!e&&(t===0||t>12);o=a.formatNumber(o);let l=u(t);s.push((0,X.jsx)(jB,{id:l?i:void 0,index:t,inner:c,selected:l,disabled:r(t),label:o,"aria-label":n(o)},t))}return s},NB=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{let a=e.formatNumber;return[[5,a(`05`)],[10,a(`10`)],[15,a(`15`)],[20,a(`20`)],[25,a(`25`)],[30,a(`30`)],[35,a(`35`)],[40,a(`40`)],[45,a(`45`)],[50,a(`50`)],[55,a(`55`)],[0,a(`00`)]].map(([e,a],o)=>{let s=e===t;return(0,X.jsx)(jB,{label:a,id:s?i:void 0,index:o+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(a)},e)})},PB=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{let a=J.useMemo(()=>Pt.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:Gt.day,timezone:i,getTodayDate:()=>Kt(n,i,`date`)}),[]);return e??a},FB=`ampm.ampmInClock.autoFocus.slots.slotProps.value.defaultValue.referenceDate.disableIgnoringDatePartForTimeValidation.maxTime.minTime.disableFuture.disablePast.minutesStep.shouldDisableTime.showViewSwitcher.onChange.view.views.openTo.onViewChange.focusedView.onFocusedViewChange.className.disabled.readOnly.timezone`.
2743split(`.`),IB=e=>{let{classes:t}=e;return Et({root:[`root`],arrowSwitcher:[`arrowSwitcher`]},$z,t)},LB=ft(Ln,{name:`MuiTimeClock`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`flex`,flexDirection:`column`,position:`relative`}),RB=ft(en,{name:`MuiTimeClock`,slot:`ArrowSwitcher`,overridesResolver:(e,t)=>t.arrowSwitcher})({position:`absolute`,right:12,top:15}),zB=[`hours`,`minutes`],BB=J.forwardRef(function(e,t){let n=on(),r=fr({props:e,name:`MuiTimeClock`}),{ampm:i=n.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:s,slots:c,slotProps:l,value:u,defaultValue:d,referenceDate:f,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:m,minTime:h,disableFuture:g,disablePast:_,minutesStep:v=1,shouldDisableTime:y,showViewSwitcher:b,onChange:x,view:S,views:C=zB,openTo:w,onViewChange:T,focusedView:E,onFocusedViewChange:D,className:O,disabled:k,readOnly:A,timezone:j}=r,M=xt(r,FB),{value:N,handleValueChange:P,timezone:F}=vn({name:`TimeClock`,timezone:j,value:u,defaultValue:d,referenceDate:f,onChange:x,valueManager:Pt}),I=PB({value:N,referenceDate:f,utils:n,props:r,timezone:F}),ee=jn(),L=gn(F),{view:R,setView:z,previousView:te,nextView:ne,setValueAndGoToNextView:re}=Zt({view:S,views:C,openTo:w,onViewChange:T,onChange:P,focusedView:E,onFocusedViewChange:D}),{meridiemMode:ie,handleMeridiemChange:ae}=Mt(I,i,re),oe=J.useCallback((e,t)=>{let r=Lt(p,n),a=t===`hours`||t===`minutes`&&C.includes(`seconds`),o=({start:e,end:t})=>!(h&&r(h,t)||m&&r(e,m)||g&&r(e,L)||_&&r(L,a?t:e)),s=(e,r=1)=>{if(e%r!==0)return!1;if(y)switch(t){case`hours`:return!y(n.setHours(I,e),`hours`);case`minutes`:return!y(n.setMinutes(I,e),`minutes`);case`seconds`:return!y(n.setSeconds(I,e),`seconds`);default:return!1}return!0};switch(t){case`hours`:{let t=$t(e,ie,i),r=n.setHours(I,t);return n.getHours(r)===t?!o({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t):!0}case`minutes`:{let t=n.setMinutes(I,e);return!o({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,v)}case`seconds`:{let t=n.setSeconds(I,e);return!o({start:t,end:t})||!s(e)}default:throw Error(`not supported`)}},[i,I,p,m,ie,h,v,y,n,g,_,L,C]),se=tr(),ce=J.useMemo(()=>{switch(R){case`hours`:{let e=(e,t)=>{let r=$t(e,ie,i);re(n.setHours(I,r),t,`hours`)},t=n.getHours(I),r;return r=i?t>12?[12,23]:[0,11]:[0,23],{onChange:e,viewValue:t,children:MB({value:N,utils:n,ampm:i,onChange:e,getClockNumberText:ee.hoursClockNumberText,isDisabled:e=>k||oe(e,`hours`),selectedId:se}),viewRange:r}}case`minutes`:{let e=n.getMinutes(I),t=(e,t)=>{re(n.setMinutes(I,e),t,`minutes`)};return{viewValue:e,onChange:t,children:NB({utils:n,value:e,onChange:t,getClockNumberText:ee.minutesClockNumberText,isDisabled:e=>k||oe(e,`minutes`),selectedId:se}),viewRange:[0,59]}}case`seconds`:{let e=n.getSeconds(I),t=(e,t)=>{re(n.setSeconds(I,e),t,`seconds`)};return{viewValue:e,onChange:t,children:NB({utils:n,value:e,onChange:t,getClockNumberText:ee.secondsClockNumberText,isDisabled:e=>k||oe(e,`seconds`),selectedId:se}),viewRange:[0,59]}}default:throw Error(`You must provide the type for ClockView`)}},[R,n,N,i,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,ie,re,I,oe,se,k]),le=r,B=IB(le);return(0,X.jsxs)(LB,o({ref:t,className:ht(B.root,O),ownerState:le},M,{children:[(0,X.jsx)(TB,o({autoFocus:s??!!E,ampmInClock:a&&C.includes(`hours`),value:N,type:R,ampm:i,minutesStep:v,isTimeDisabled:oe,meridiemMode:ie,handleMeridiemChange:ae,selectedId:se,disabled:k,readOnly:A},ce)),b&&(0,X.jsx)(RB,{className:B.arrowSwitcher,slots:c,slotProps:l,onGoToPrevious:()=>z(te),isPreviousDisabled:!te,previousLabel:ee.openPreviousView,onGoToNext:()=>z(ne),isNextDisabled:!ne,nextLabel:ee.openNextView,ownerState:le})]}))});function VB(e){return ot(`MuiDigitalClock`,e)}var HB=tt(`MuiDigitalClock`,[`root`,`list`,`item`]),UB=`ampm.timeStep.autoFocus.slots.slotProps.value.defaultValue.referenceDate.disableIgnoringDatePartForTimeValidation.maxTime.minTime.disableFuture.disablePast.minutesStep.shouldDisableTime.onChange.view.openTo.onViewChange.focusedView.onFocusedViewChange.className.disabled.readOnly.views.skipDisabled.timezone`.
2743split(`.`),WB=e=>{let{classes:t}=e;return Et({root:[`root`],list:[`list`],item:[`item`]},VB,t)},GB=ft(Ln,{name:`MuiDigitalClock`,slot:`Root`,overridesResolver:(e,t)=>t.root})({overflowY:`auto`,width:`100%`,"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`auto`},maxHeight:232,variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`smooth`}}}]}),KB=ft(Qr,{name:`MuiDigitalClock`,slot:`List`,overridesResolver:(e,t)=>t.list})({padding:0}),qB=ft(ei,{name:`MuiDigitalClock`,slot:`Item`,overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:`8px 16px`,margin:`2px 4px`,"&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:I(e.palette.primary.main,e.palette.action.focusOpacity)}})),JB=J.forwardRef(function(e,t){let n=on(),r=J.useRef(null),i=et(t,r),a=J.useRef(null),s=fr({props:e,name:`MuiDigitalClock`}),{ampm:c=n.is12HourCycleInCurrentLocale(),timeStep:l=30,autoFocus:u,slots:d,slotProps:f,value:p,defaultValue:m,referenceDate:h,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:_,minTime:v,disableFuture:y,disablePast:b,minutesStep:x=1,shouldDisableTime:S,onChange:C,view:w,openTo:T,onViewChange:E,focusedView:D,onFocusedViewChange:O,className:k,disabled:A,readOnly:j,views:M=[`hours`],skipDisabled:N=!1,timezone:P}=s,F=xt(s,UB),{value:I,handleValueChange:ee,timezone:L}=vn({name:`DigitalClock`,timezone:P,value:p,defaultValue:m,referenceDate:h,onChange:C,valueManager:Pt}),R=jn(),z=gn(L),te=J.useMemo(()=>o({},s,{alreadyRendered:!!r.current}),[s]),ne=WB(te),re=d?.digitalClockItem??qB,ie=qn({elementType:re,externalSlotProps:f?.digitalClockItem,ownerState:{},className:ne.item}),ae=PB({value:I,referenceDate:h,utils:n,props:s,timezone:L}),{setValueAndGoToNextView:oe}=Zt({view:w,views:M,openTo:T,onViewChange:E,onChange:Tt(e=>ee(e,`finish`,`hours`)),focusedView:D,onFocusedViewChange:O}),se=Tt(e=>{oe(e,`finish`)});J.useEffect(()=>{if(r.current===null)return;let e=r.current.querySelector(`[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]`);if(!e)return;let t=e.offsetTop;(u||D)&&e.focus(),r.current.scrollTop=t-4});let ce=J.useCallback(e=>{let t=Lt(g,n);return!!(v&&t(v,e)||_&&t(e,_)||y&&t(e,z)||b&&t(z,e))||!(n.getMinutes(e)%x===0&&(!S||!S(e,`hours`)))},[g,n,v,_,y,z,b,x,S]),le=J.useMemo(()=>{let e=[],t=n.startOfDay(ae);for(;n.isSameDay(ae,t);)e.push(t),t=n.addMinutes(t,l);return e},[ae,l,n]),B=le.findIndex(e=>n.isEqual(e,ae));return(0,X.jsx)(GB,o({ref:i,className:ht(ne.root,k),ownerState:te},F,{children:(0,X.jsx)(KB,{ref:a,role:`listbox`,"aria-label":R.timePickerToolbarTitle,className:ne.list,onKeyDown:e=>{switch(e.key){case`PageUp`:{let t=Xt(a.current)-5,n=a.current.children[Math.max(0,t)];n&&n.focus(),e.preventDefault();break}case`PageDown`:{let t=Xt(a.current)+5,n=a.current.children,r=n[Math.min(n.length-1,t)];r&&r.focus(),e.preventDefault();break}default:}},children:le.map((e,t)=>{if(N&&ce(e))return null;let r=n.isEqual(e,I),i=n.format(e,c?`fullTime12h`:`fullTime24h`),a=B===t||B===-1&&t===0?0:-1;return(0,X.jsx)(re,o({onClick:()=>!j&&se(e),selected:r,disabled:A||ce(e),disableRipple:j,role:`option`,"aria-disabled":j,"aria-selected":r,tabIndex:a},ie,{children:i}),`${e.valueOf()}-${i}`)})})}))});function YB(e){return ot(`MuiMultiSectionDigitalClock`,e)}var XB=tt(`MuiMultiSectionDigitalClock`,[`root`]);function ZB(e){return ot(`MuiMultiSectionDigitalClockSection`,e)}var QB=tt(`MuiMultiSectionDigitalClockSection`,[`root`,`item`]),$B=[`autoFocus`,`onChange`,`className`,`disabled`,`readOnly`,`items`,`active`,`slots`,`slotProps`,`skipDisabled`],eV=e=>{let{classes:t}=e;return Et({root:[`root`],item:[`item`]},ZB,t)},tV=ft(Qr,{name:`MuiMultiSectionDigitalClockSection`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({maxHeight:232,width:56,padding:0,overflow:`hidden`,"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`auto`},"@media (pointer: fine)":{"&:hover":{overflowY:`auto`}},"@media (pointer: none), (pointer: coarse)":{overflowY:`auto`},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"&::after":{display:`block`,content:`""`,height:`calc(100% - 40px - 6px)`},variants:[{props:{alreadyRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:`smooth`}}}]})),nV=ft(ei,{name:`MuiMultiSectionDigitalClockSection`,slot:`Item`,overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:`2px 4px`,width:48,justifyContent:`center`,"&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette.primary.main,e.palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:I(e.palette.primary.main,e.palette.action.focusOpacity)}})),rV=J.forwardRef(function(e,t){let n=J.useRef(null),r=et(t,n),i=J.useRef(null),a=fr({props:e,name:`MuiMultiSectionDigitalClockSection`}),{autoFocus:s,onChange:c,className:l,disabled:u,readOnly:d,items:f,active:p,slots:m,slotProps:h,skipDisabled:g}=a,_=xt(a,$B),v=J.useMemo(()=>o({},a,{alreadyRendered:!!n.current}),[a]),y=eV(v),b=m?.digitalClockSectionItem??nV;J.useEffect(()=>{if(n.current===null)return;let e=n.current.querySelector(`[role="option"][tabindex="0"], [role="option"][aria-selected="true"]`);if(p&&s&&e&&e.focus(),!e||i.current===e)return;i.current=e;let t=e.offsetTop;n.current.scrollTop=t-4});let x=f.findIndex(e=>e.isFocused(e.value));return(0,X.jsx)(tV,o({ref:r,className:ht(y.root,l),ownerState:v,autoFocusItem:s&&p,role:`listbox`,onKeyDown:e=>{switch(e.key){case`PageUp`:{let t=Xt(n.current)-5,r=n.current.children[Math.max(0,t)];r&&r.focus(),e.preventDefault();break}case`PageDown`:{let t=Xt(n.current)+5,r=n.current.children,i=r[Math.min(r.length-1,t)];i&&i.focus(),e.preventDefault();break}default:}}},_,{children:f.map((e,t)=>{let n=e.isDisabled?.(e.value),r=u||n;if(g&&r)return null;let i=e.isSelected(e.value),a=x===t||x===-1&&t===0?0:-1;return(0,X.jsx)(b,o({onClick:()=>!d&&c(e.value),selected:i,disabled:r,disableRipple:d,role:`option`,"aria-disabled":d||r||void 0,"aria-label":e.ariaLabel,"aria-selected":i,tabIndex:a,className:y.item},h?.digitalClockSectionItem,{children:e.label}),e.label)})}))}),iV=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:o,valueOrReferenceDate:s})=>{let c=t?n.getHours(t):null,l=[],u=(e,t)=>
2743{let n=t??c;return n===null?!1:r?e===12?n===12||n===0:n===e||n-12===e:n===e},d=e=>u(e,n.getHours(s)),f=r?11:23;for(let t=0;t<=f;t+=o){let o=n.format(n.setHours(e,t),r?`hours12h`:`hours24h`),s=a(parseInt(o,10).toString());o=n.formatNumber(o),l.push({value:t,label:o,isSelected:u,isDisabled:i,isFocused:d,ariaLabel:s})}return l},aV=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:o=!0})=>{let s=t=>e===null?!1:o&&e===t,c=t=>e===t;return[...Array.from({length:Math.ceil(60/r)},(e,o)=>{let l=r*o;return{value:l,label:t.formatNumber(i(l)),isDisabled:n,isSelected:s,isFocused:c,ariaLabel:a(l.toString())}})]},oV=`ampm.timeSteps.autoFocus.slots.slotProps.value.defaultValue.referenceDate.disableIgnoringDatePartForTimeValidation.maxTime.minTime.disableFuture.disablePast.minutesStep.shouldDisableTime.onChange.view.views.openTo.onViewChange.focusedView.onFocusedViewChange.className.disabled.readOnly.skipDisabled.timezone`.split(`.`),sV=e=>{let{classes:t}=e;return Et({root:[`root`]},YB,t)},cV=ft(Ln,{name:`MuiMultiSectionDigitalClock`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:`flex`,flexDirection:`row`,width:`100%`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),lV=J.forwardRef(function(e,t){let n=on(),r=Jn(),i=fr({props:e,name:`MuiMultiSectionDigitalClock`}),{ampm:a=n.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:c,slots:l,slotProps:u,value:d,defaultValue:f,referenceDate:p,disableIgnoringDatePartForTimeValidation:m=!1,maxTime:h,minTime:g,disableFuture:_,disablePast:v,minutesStep:y=1,shouldDisableTime:b,onChange:x,view:S,views:C=[`hours`,`minutes`],openTo:w,onViewChange:T,focusedView:E,onFocusedViewChange:D,className:O,disabled:k,readOnly:A,skipDisabled:j=!1,timezone:M}=i,N=xt(i,oV),{value:P,handleValueChange:F,timezone:I}=vn({name:`MultiSectionDigitalClock`,timezone:M,value:d,defaultValue:f,referenceDate:p,onChange:x,valueManager:Pt}),ee=jn(),L=gn(I),R=J.useMemo(()=>o({hours:1,minutes:5,seconds:5},s),[s]),z=PB({value:P,referenceDate:p,utils:n,props:i,timezone:I}),te=Tt((e,t,n)=>F(e,t,n)),ne=J.useMemo(()=>!a||!C.includes(`hours`)||C.includes(`meridiem`)?C:[...C,`meridiem`],[a,C]),{view:re,setValueAndGoToNextView:ie,focusedView:ae}=Zt({view:S,views:ne,openTo:w,onViewChange:T,onChange:te,focusedView:E,onFocusedViewChange:D}),{meridiemMode:oe,handleMeridiemChange:se}=Mt(z,a,Tt(e=>{ie(e,`finish`,`meridiem`)}),`finish`),ce=J.useCallback((e,t)=>{let r=Lt(m,n),i=t===`hours`||t===`minutes`&&ne.includes(`seconds`),o=({start:e,end:t})=>!(g&&r(g,t)||h&&r(e,h)||_&&r(e,L)||v&&r(L,i?t:e)),s=(e,r=1)=>{if(e%r!==0)return!1;if(b)switch(t){case`hours`:return!b(n.setHours(z,e),`hours`);case`minutes`:return!b(n.setMinutes(z,e),`minutes`);case`seconds`:return!b(n.setSeconds(z,e),`seconds`);default:return!1}return!0};switch(t){case`hours`:{let t=$t(e,oe,a),r=n.setHours(z,t);return n.getHours(r)===t?!o({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t):!0}case`minutes`:{let t=n.setMinutes(z,e);return!o({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,y)}case`seconds`:{let t=n.setSeconds(z,e);return!o({start:t,end:t})||!s(e)}default:throw Error(`not supported`)}},[a,z,m,h,oe,g,y,b,n,_,v,L,ne]),le=J.useCallback(e=>{switch(e){case`hours`:return{onChange:e=>{let t=$t(e,oe,a);ie(n.setHours(z,t),`finish`,`hours`)},items:iV({now:L,value:P,ampm:a,utils:n,isDisabled:e=>ce(e,`hours`),timeStep:R.hours,resolveAriaLabel:ee.hoursClockNumberText,valueOrReferenceDate:z})};case`minutes`:return{onChange:e=>{ie(n.setMinutes(z,e),`finish`,`minutes`)},items:aV({value:n.getMinutes(z),utils:n,isDisabled:e=>ce(e,`minutes`),resolveLabel:e=>n.format(n.setMinutes(L,e),`minutes`),timeStep:R.minutes,hasValue:!!P,resolveAriaLabel:ee.minutesClockNumberText})};case`seconds`:return{onChange:e=>{ie(n.setSeconds(z,e),`finish`,`seconds`)},items:aV({value:n.getSeconds(z),utils:n,isDisabled:e=>ce(e,`seconds`),resolveLabel:e=>n.format(n.setSeconds(L,e),`seconds`),timeStep:R.seconds,hasValue:!!P,resolveAriaLabel:ee.secondsClockNumberText})};case`meridiem`:{let e=Ut(n,`am`),t=Ut(n,`pm`);return{onChange:se,items:[{value:`am`,label:e,isSelected:()=>!!P&&oe===`am`,isFocused:()=>!!z&&oe===`am`,ariaLabel:e},{value:`pm`,label:t,isSelected:()=>!!P&&oe===`pm`,isFocused:()=>!!z&&oe===`pm`,ariaLabel:t}]}}default:throw Error(`Unknown view: ${e}
2743 found.`)}},[L,P,a,n,R.hours,R.minutes,R.seconds,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,oe,ie,z,ce,se]),B=J.useMemo(()=>{if(!r)return ne;let e=ne.filter(e=>e!==`meridiem`);return e.reverse(),ne.includes(`meridiem`)&&e.push(`meridiem`),e},[r,ne]),ue=J.useMemo(()=>ne.reduce((e,t)=>o({},e,{[t]:le(t)}),{}),[ne,le]),de=i;return(0,X.jsx)(cV,o({ref:t,className:ht(sV(de).root,O),ownerState:de,role:`group`},N,{children:B.map(e=>(0,X.jsx)(rV,{items:ue[e].items,onChange:ue[e].onChange,active:re===e,autoFocus:c??ae===e,disabled:k,readOnly:A,slots:l,slotProps:u,skipDisabled:j,"aria-label":ee.selectViewText(e)},e))}))});function uV(e){return ot(`MuiPickersDay`,e)}var dV=tt(`MuiPickersDay`,[`root`,`dayWithMargin`,`dayOutsideMonth`,`hiddenDaySpacingFiller`,`today`,`selected`,`disabled`]),fV=[`autoFocus`,`className`,`day`,`disabled`,`disableHighlightToday`,`disableMargin`,`hidden`,`isAnimating`,`onClick`,`onDaySelect`,`onFocus`,`onBlur`,`onKeyDown`,`onMouseDown`,`onMouseEnter`,`outsideCurrentMonth`,`selected`,`showDaysOutsideCurrentMonth`,`children`,`today`,`isFirstVisibleCell`,`isLastVisibleCell`],pV=e=>{let{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:a,outsideCurrentMonth:o,showDaysOutsideCurrentMonth:s,classes:c}=e,l=o&&!s;return Et({root:[`root`,t&&!l&&`selected`,a&&`disabled`,!n&&`dayWithMargin`,!r&&i&&`today`,o&&s&&`dayOutsideMonth`,l&&`hiddenDaySpacingFiller`],hiddenDaySpacingFiller:[`hiddenDaySpacingFiller`]},uV,c)},mV=({theme:e})=>o({},e.typography.caption,{width:36,height:36,borderRadius:`50%`,padding:0,backgroundColor:`transparent`,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:I(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${dV.selected}`]:{willChange:`background-color`,backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${dV.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:`background-color`,backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${dV.disabled}:not(.${dV.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${dV.disabled}&.${dV.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 2px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${dV.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),hV=(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},gV=ft(bt,{name:`MuiPickersDay`,slot:`Root`,overridesResolver:hV})(mV),_V=ft(`div`,{name:`MuiPickersDay`,slot:`Root`,overridesResolver:hV})(({theme:e})=>o({},mV({theme:e}),{opacity:0,pointerEvents:`none`})),vV=()=>{},yV=J.forwardRef(function(e,t){let n=fr({props:e,name:`MuiPickersDay`}),{autoFocus:r=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:c=!1,disableMargin:l=!1,isAnimating:u,onClick:d,onDaySelect:f,onFocus:p=vV,onBlur:m=vV,onKeyDown:h=vV,onMouseDown:g=vV,onMouseEnter:_=vV,outsideCurrentMonth:v,selected:y=!1,showDaysOutsideCurrentMonth:b=!1,children:x,today:S=!1}=n,C=xt(n,fV),w=o({},n,{autoFocus:r,disabled:s,disableHighlightToday:c,disableMargin:l,selected:y,showDaysOutsideCurrentMonth:b,today:S}),T=pV(w),E=on(),D=J.useRef(null),O=et(D,t);return rt(()=>{r&&!s&&!u&&!v&&D.current.focus()},[r,s,u,v]),v&&!b?(0,X.jsx)(_V,{className:ht(T.root,T.hiddenDaySpacingFiller,i),ownerState:w,role:C.role}):(0,X.jsx)(gV,o({className:ht(T.root,i),ref:O,centerRipple:!0,disabled:s,tabIndex:y?0:-1,onKeyDown:e=>h(e,a),onFocus:e=>p(e,a),onBlur:e=>m(e,a),onMouseEnter:e=>_(e,a),onClick:e=>
2743{s||f(a),v&&e.currentTarget.focus(),d&&d(e)},onMouseDown:e=>{g(e),v&&e.preventDefault()}},C,{ownerState:w,children:x||E.format(a,`dayOfMonth`)}))}),bV=J.memo(yV),xV=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;let{shouldDisableDate:i,shouldDisableMonth:a,shouldDisableYear:o,disablePast:s,disableFuture:c}=e,l=r.utils.date(void 0,n),u=jt(r.utils,e.minDate,r.defaultDates.minDate),d=jt(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return`invalidDate`;case!!(i&&i(t)):return`shouldDisableDate`;case!!(a&&a(t)):return`shouldDisableMonth`;case!!(o&&o(t)):return`shouldDisableYear`;case!!(c&&r.utils.isAfterDay(t,l)):return`disableFuture`;case!!(s&&r.utils.isBeforeDay(t,l)):return`disablePast`;case!!(u&&r.utils.isBeforeDay(t,u)):return`minDate`;case!!(d&&r.utils.isAfterDay(t,d)):return`maxDate`;default:return null}};xV.valueManager=Pt;var SV=({adapter:e,value:t,timezone:n,props:r})=>{if(t===null)return null;let{minTime:i,maxTime:a,minutesStep:o,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:l,disableFuture:u}=r,d=e.utils.date(void 0,n),f=Lt(c,e.utils);switch(!0){case!e.utils.isValid(t):return`invalidDate`;case!!(i&&f(i,t)):return`minTime`;case!!(a&&f(t,a)):return`maxTime`;case!!(u&&e.utils.isAfter(t,d)):return`disableFuture`;case!!(l&&e.utils.isBefore(t,d)):return`disablePast`;case!!(s&&s(t,`hours`)):return`shouldDisableTime-hours`;case!!(s&&s(t,`minutes`)):return`shouldDisableTime-minutes`;case!!(s&&s(t,`seconds`)):return`shouldDisableTime-seconds`;case!!(o&&e.utils.getMinutes(t)%o!==0):return`minutesStep`;default:return null}};SV.valueManager=Pt;var CV=({adapter:e,value:t,timezone:n,props:r})=>{let i=xV({adapter:e,value:t,timezone:n,props:r});return i===null?SV({adapter:e,value:t,timezone:n,props:r}):i};CV.valueManager=Pt;var wV=e=>{let{forwardedProps:t,internalProps:n}=Nn(pn(e),`time`);return sn({forwardedProps:t,internalProps:n,valueManager:Pt,fieldValueManager:Ft,validator:SV,valueType:`time`})},TV=[`slots`,`slotProps`,`InputProps`,`inputProps`],EV=J.forwardRef(function(e,t){let n=fr({props:e,name:`MuiTimeField`}),{slots:r,slotProps:i,InputProps:a,inputProps:s}=n,c=xt(n,TV),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?wn:wr),d=qn({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:c,ownerState:l,additionalProps:{ref:t}});return d.inputProps=o({},s,d.inputProps),d.InputProps=o({},a,d.InputProps),(0,X.jsx)(u,o({},In(o({},fn(wV(d)),{slots:r,slotProps:i}))))}),DV=e=>{let{forwardedProps:t,internalProps:n}=Nn(mn(e),`date-time`);return sn({forwardedProps:t,internalProps:n,valueManager:Pt,fieldValueManager:Ft,validator:CV,valueType:`date-time`})},OV=[`slots`,`slotProps`,`InputProps`,`inputProps`],kV=J.forwardRef(function(e,t){let n=fr({props:e,name:`MuiDateTimeField`}),{slots:r,slotProps:i,InputProps:a,inputProps:s}=n,c=xt(n,OV),l=n,u=r?.textField??(e.enableAccessibleFieldDOMStructure?wn:wr),d=qn({elementType:u,externalSlotProps:i?.textField,externalForwardedProps:c,ownerState:l,additionalProps:{ref:t}});return d.inputProps=o({},s,d.inputProps),d.InputProps=o({},a,d.InputProps),(0,X.jsx)(u,o({},In(o({},fn(DV(d)),{slots:r,slotProps:i}))))}),AV=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:o,timezone:s})=>{let c=Dn();return J.useCallback(l=>xV({adapter:c,value:l,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:o}})!==null,[c,e,t,n,r,i,a,o,s])},jV=(e,t,n)=>(r,i)=>{switch(i.type){case`changeMonth`:return o({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case`changeMonthTimezone`:{let e=i.newTimezone;if(n.getTimezone(r.currentMonth)===e)return r;let t=n.setTimezone(r.currentMonth,e);return n.getMonth(t)!==n.getMonth(r.currentMonth)&&(t=n.setMonth(t,n.getMonth(r.currentMonth))),o({},r,{currentMonth:t})}case`finishMonthSwitchingAnimation`:return o({},r,{isMonthSwitchingAnimating:!1});case`changeFocusedDay`:{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;let a=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return o({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?`left`:`right`})}default:throw Error(`missing support`)}},MV=e=>{let{value:t,referenceDate:n,disableFuture:r,disablePast:i,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:c,onMonthChange:l,reduceAnimations:u,shouldDisableDate:d,timezone:f}=e,p=on(),m=J.useRef(jV(!!u,a,p)).current,h=J.useMemo(()=>Pt.getInitialReferenceValue({value:t,utils:p,timezone:f,props:e,referenceDate:n,granularity:Gt.day}),[n,f]),[g,_]=J.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:h,currentMonth:p.startOfMonth(h),slideDirection:`left`});J.useEffect(()=>{_({type:`changeMonthTimezone`,newTimezone:p.getTimezone(h)})},[h,p]);let v=J.useCallback(e=>{_(o({type:`changeMonth`},e)),l&&l(e.newMonth)},[l]),y=J.useCallback(e=>{let t=e;p.isSameMonth(t,g.currentMonth)||v({newMonth:p.startOfMonth(t),direction:p.isAfterDay(t,g.currentMonth)?`left`:`right`})},[g.currentMonth,v,p]),b=AV({shouldDisableDate:d,minDate:c,maxDate:s,disableFuture:r,disablePast:i,timezone:f}),x=J.useCallback(()=>{_({type:`finishMonthSwitchingAnimation`})},[]);return{referenceDate:h,calendarState:g,changeMonth:y,changeFocusedDay:Tt((e,t)=>
2743{b(e)||_({type:`changeFocusedDay`,focusedDay:e,withoutMonthSwitchingAnimation:t})}),isDateDisabled:b,onMonthSwitchingAnimationEnd:x,handleChangeMonth:v}},NV=e=>ot(`MuiPickersFadeTransitionGroup`,e);tt(`MuiPickersFadeTransitionGroup`,[`root`]);var PV=e=>{let{classes:t}=e;return Et({root:[`root`]},NV,t)},FV=ft(pt,{name:`MuiPickersFadeTransitionGroup`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`block`,position:`relative`});function IV(e){let t=fr({props:e,name:`MuiPickersFadeTransitionGroup`}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,o=PV(t),s=z();return i?n:(0,X.jsx)(FV,{className:ht(o.root,r),children:(0,X.jsx)(zn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},a)})}var LV=e=>ot(`MuiPickersSlideTransition`,e),RV=tt(`MuiPickersSlideTransition`,[`root`,`slideEnter-left`,`slideEnter-right`,`slideEnterActive`,`slideExit`,`slideExitActiveLeft-left`,`slideExitActiveLeft-right`]),zV=[`children`,`className`,`reduceAnimations`,`slideDirection`,`transKey`,`classes`],BV=e=>{let{classes:t,slideDirection:n}=e;return Et({root:[`root`],exit:[`slideExit`],enterActive:[`slideEnterActive`],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]},LV,t)},VV=ft(pt,{name:`MuiPickersSlideTransition`,slot:`Root`,overridesResolver:(e,t)=>[t.root,{[`.${RV[`slideEnter-left`]}`]:t[`slideEnter-left`]},{[`.${RV[`slideEnter-right`]}`]:t[`slideEnter-right`]},{[`.${RV.slideEnterActive}`]:t.slideEnterActive},{[`.${RV.slideExit}`]:t.slideExit},{[`.${RV[`slideExitActiveLeft-left`]}`]:t[`slideExitActiveLeft-left`]},{[`.${RV[`slideExitActiveLeft-right`]}`]:t[`slideExitActiveLeft-right`]}]})(({theme:e})=>{let t=e.transitions.create(`transform`,{duration:e.transitions.duration.complex,easing:`cubic-bezier(0.35, 0.8, 0.4, 1)`});return{display:`block`,position:`relative`,overflowX:`hidden`,"& > *":{position:`absolute`,top:0,right:0,left:0},[`& .${RV[`slideEnter-left`]}`]:{willChange:`transform`,transform:`translate(100%)`,zIndex:1},[`& .${RV[`slideEnter-right`]}`]:{willChange:`transform`,transform:`translate(-100%)`,zIndex:1},[`& .${RV.slideEnterActive}`]:{transform:`translate(0%)`,transition:t},[`& .${RV.slideExit}`]:{transform:`translate(0%)`},[`& .${RV[`slideExitActiveLeft-left`]}`]:{willChange:`transform`,transform:`translate(-100%)`,transition:t,zIndex:0},[`& .${RV[`slideExitActiveLeft-right`]}`]:{willChange:`transform`,transform:`translate(100%)`,transition:t,zIndex:0}}});function HV(e){let t=fr({props:e,name:`MuiPickersSlideTransition`}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=xt(t,zV),c=BV(t),l=z();if(i)return(0,X.jsx)(`div`,{className:ht(c.root,r),children:n});let u={exit:c.exit,enterActive:c.enterActive,enter:c.enter,exitActive:c.exitActive};return(0,X.jsx)(VV,{className:ht(c.root,r),childFactory:e=>J.cloneElement(e,{classNames:u}),role:`presentation`,children:(0,X.jsx)(Qu,o({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),a)})}var UV=e=>ot(`MuiDayCalendar`,e);tt(`MuiDayCalendar`,[`root`,`header`,`weekDayLabel`,`loadingContainer`,`slideTransition`,`monthContainer`,`weekContainer`,`weekNumberLabel`,`weekNumber`]);var WV=[`parentProps`,`day`,`focusableDay`,`selectedDays`,`isDateDisabled`,`currentMonthNumber`,`isViewFocused`],GV=[`ownerState`],KV=e=>{let{classes:t}=e;return Et({root:[`root`],header:[`header`],weekDayLabel:[`weekDayLabel`],loadingContainer:[`loadingContainer`],slideTransition:[`slideTransition`],monthContainer:[`monthContainer`],weekContainer:[`weekContainer`],weekNumberLabel:[`weekNumberLabel`],weekNumber:[`weekNumber`]},UV,t)},qV=240,JV=ft(`div`,{name:`MuiDayCalendar`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),YV=ft(`div`,{name:`MuiDayCalendar`,slot:`Header`,overridesResolver:(e,t)=>t.header})({display:`flex`,justifyContent:`center`,alignItems:`center`}),XV=ft(St,{name:`MuiDayCalendar`,slot:`WeekDayLabel`,overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:`0 2px`,textAlign:`center`,display:`flex`,justifyContent:`center`,alignItems:`center`,color:(e.vars||e).palette.text.secondary})),ZV=ft(St,{name:`MuiDayCalendar`,slot:`WeekNumberLabel`,overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:`0 2px`,textAlign:`center`,display:`flex`,justifyContent:`center`,alignItems:`center`,color:e.palette.text.disabled})),QV=ft(St,{name:`MuiDayCalendar`,slot:`WeekNumber`,overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>o({},e.typography.caption,{width:36,height:36,padding:0,margin:`0 2px`,color:e.palette.text.disabled,fontSize:`0.75rem`,alignItems:`center`,justifyContent:`center`,display:`inline-flex`})),$V=ft(`div`,{name:`MuiDayCalendar`,slot:`LoadingContainer`,overridesResolver:(e,t)=>t.loadingContainer})({display:`flex`,justifyContent:`center`,alignItems:`center`,minHeight:qV}),eH=ft(HV,{name:`MuiDayCalendar`,slot:`SlideTransition`,overridesResolver:(e,t)=>t.slideTransition})({minHeight:qV}),tH=ft(`div`,{name:`MuiDayCalendar`,slot:`MonthContainer`,overridesResolver:(e,t)=>t.monthContainer})({overflow:`hidden`}),nH=ft(`div`,{name:`MuiDayCalendar`,slot:`WeekContainer`,overridesResolver:(e,t)=>t.weekContainer})({margin:`2px 0`,display:`flex`,justifyContent:`center`});function rH(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:i,isDateDisabled:a,currentMonthNumber:s,isViewFocused:c}=e,l=xt(e,WV),{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:m,slotProps:h,timezone:g}=t,_=on(),v=gn(g),y=r!==null&&_.isSameDay(n,r),b=i.some(e=>_.isSameDay(e,n)),x=_.isSameDay(n,v),S=m?.day??bV,C=xt(qn({elementType:S,externalSlotProps:h?.day,additionalProps:o({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:`gridcell`,isAnimating:f,"data-timestamp":_.toJsDate(n).valueOf()},l),ownerState:o({},t,{day:n,selected:b})}),GV),w=J.useMemo(()=>u||a(n),[u,a,n]),T=J.useMemo(()=>_.getMonth(n)!==s,[_,n,s]),E=J.useMemo(()=>{let e=_.startOfMonth(_.setMonth(n,s));return p?_.isSameDay(n,_.startOfWeek(e)):_.isSameDay(n,e)},[s,n,p,_]),D=J.useMemo(()=>{let e=_.endOfMonth(_.setMonth(n,s));return p?_.isSameDay(n,_.endOfWeek(e)):_.isSameDay(n,e)},[s,n,p,_]);return(0,X.jsx)(S,o({},C,{day:n,disabled:w,autoFocus:c&&y,today:x,outsideCurrentMonth:T,isFirstVisibleCell:E,isLastVisibleCell:D,selected:b,tabIndex:y?0:-1,"aria-selected":b,"aria-current":x?`date`:void 0}))}function iH(e){let t=fr({props:e,name:`MuiDayCalendar`}),n=on(),{onFocusedDayChange:r,className:i,currentMonth:a,selectedDays:s,focusedDay:c,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:f,reduceAnimations:p,renderLoading:m=()=>(0,X.jsx)(`span`,{children:`...`}),slideDirection:h,TransitionProps:g,disablePast:_,disableFuture:v,minDate:y,maxDate:b,shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,dayOfWeekFormatter:w=e=>n.format(e,`weekdayShort`).charAt(0).toUpperCase(),hasFocus:T,onFocusedViewChange:E,gridLabelId:D,displayWeekNumber:O,fixedWeekNumber:k,autoFocus:A,timezone:j}=t,M=gn(j),N=KV(t),P=Jn(),F=AV({shouldDisableDate:x,shouldDisableMonth:S,shouldDisableYear:C,minDate:y,maxDate:b,disablePast:_,disableFuture:v,timezone:j}),I=jn(),[ee,L]=rr({name:`DayCalendar`,state:`hasFocus`,controlled:T,default:A??!1}),[R,z]=J.useState(()=>c||M),te=Tt(e=>{f||u(e)}),ne=e=>{F(e)||(r(e),z(e),E?.(!0),L(!0))},re=Tt((e,t)=>
2743{switch(e.key){case`ArrowUp`:ne(n.addDays(t,-7)),e.preventDefault();break;case`ArrowDown`:ne(n.addDays(t,7)),e.preventDefault();break;case`ArrowLeft`:{let r=n.addDays(t,P?1:-1),i=n.addMonths(t,P?1:-1);ne(_n({utils:n,date:r,minDate:P?r:n.startOfMonth(i),maxDate:P?n.endOfMonth(i):r,isDateDisabled:F,timezone:j})||r),e.preventDefault();break}case`ArrowRight`:{let r=n.addDays(t,P?-1:1),i=n.addMonths(t,P?-1:1);ne(_n({utils:n,date:r,minDate:P?n.startOfMonth(i):r,maxDate:P?r:n.endOfMonth(i),isDateDisabled:F,timezone:j})||r),e.preventDefault();break}case`Home`:ne(n.startOfWeek(t)),e.preventDefault();break;case`End`:ne(n.endOfWeek(t)),e.preventDefault();break;case`PageUp`:ne(n.addMonths(t,1)),e.preventDefault();break;case`PageDown`:ne(n.addMonths(t,-1)),e.preventDefault();break;default:break}}),ie=Tt((e,t)=>ne(t)),ae=Tt((e,t)=>{ee&&n.isSameDay(R,t)&&E?.(!1)}),oe=n.getMonth(a),se=n.getYear(a),ce=J.useMemo(()=>s.filter(e=>!!e).map(e=>n.startOfDay(e)),[n,s]),le=`${se}-${oe}`,B=J.useMemo(()=>J.createRef(),[le]),ue=J.useMemo(()=>{let e=n.startOfMonth(a),t=n.endOfMonth(a);return F(R)||n.isAfterDay(R,t)||n.isBeforeDay(R,e)?_n({utils:n,date:R,minDate:e,maxDate:t,disablePast:_,disableFuture:v,isDateDisabled:F,timezone:j}):R},[a,v,_,R,F,n,j]),de=J.useMemo(()=>{let e=n.getWeekArray(a),t=n.addMonths(a,1);for(;k&&e.length<k;){let r=n.getWeekArray(t),i=n.isSameDay(e[e.length-1][0],r[0][0]);
2743r.slice(+!!i).forEach(t=>{e.length<k&&e.push(t)}),t=n.addMonths(t,1)}return e},[a,k,n]);return(0,X.jsxs)(JV,{role:`grid`,"aria-labelledby":D,className:N.root,children:[(0,X.jsxs)(YV,{role:`row`,className:N.header,children:[O&&(0,X.jsx)(ZV,{variant:`caption`,role:`columnheader`,"aria-label":I.calendarWeekNumberHeaderLabel,className:N.weekNumberLabel,children:I.calendarWeekNumberHeaderText}),It(n,M).map((e,t)=>(0,X.jsx)(XV,{variant:`caption`,role:`columnheader`,"aria-label":n.format(e,`weekday`),className:N.weekDayLabel,children:w(e)},t.toString()))]}),l?(0,X.jsx)($V,{className:N.loadingContainer,children:m()}):(0,X.jsx)(eH,o({transKey:le,onExited:d,reduceAnimations:p,slideDirection:h,className:ht(i,N.slideTransition)},g,{nodeRef:B,children:(0,X.jsx)(tH,{ref:B,role:`rowgroup`,className:N.monthContainer,children:de.map((e,r)=>(0,X.jsxs)(nH,{role:`row`,className:N.weekContainer,"aria-rowindex":r+1,children:[O&&(0,X.jsx)(QV,{className:N.weekNumber,role:`rowheader`,"aria-label":I.calendarWeekNumberAriaLabelText(n.getWeekNumber(e[0])),children:I.calendarWeekNumberText(n.getWeekNumber(e[0]))}),e.map((e,n)=>(0,X.jsx)(rH,{parentProps:t,day:e,selectedDays:ce,focusableDay:ue,onKeyDown:re,onFocus:ie,onBlur:ae,onDaySelect:te,isDateDisabled:F,currentMonthNumber:oe,isViewFocused:ee,"aria-colindex":n+1},e.toString()))]},`week-${e[0]}`))})}))]})}function aH(e){return ot(`MuiPickersMonth`,e)}var oH=tt(`MuiPickersMonth`,[`root`,`monthButton`,`disabled`,`selected`]),sH=[`autoFocus`,`className`,`children`,`disabled`,`selected`,`value`,`tabIndex`,`onClick`,`onKeyDown`,`onFocus`,`onBlur`,`aria-current`,`aria-label`,`monthsPerRow`,`slots`,`slotProps`],cH=e=>{let{disabled:t,selected:n,classes:r}=e;return Et({root:[`root`],monthButton:[`monthButton`,t&&`disabled`,n&&`selected`]},aH,r)},lH=ft(`div`,{name:`MuiPickersMonth`,slot:`Root`,overridesResolver:(e,t)=>[t.root]})({display:`flex`,alignItems:`center`,justifyContent:`center`,flexBasis:`33.3%`,variants:[{props:{monthsPerRow:4},style:{flexBasis:`25%`}}]}),uH=ft(`button`,{name:`MuiPickersMonth`,slot:`MonthButton`,overridesResolver:(e,t)=>[t.monthButton,{[`&.${oH.disabled}`]:t.disabled},{[`&.${oH.selected}`]:t.selected}]})(({theme:e})=>o({color:`unset`,backgroundColor:`transparent`,border:0,outline:0},e.typography.subtitle1,{margin:`8px 0`,height:36,width:72,borderRadius:18,cursor:`pointer`,"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:`auto`,pointerEvents:`none`},[`&.${oH.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${oH.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),dH=J.memo(function(e){let t=fr({props:e,name:`MuiPickersMonth`}),{autoFocus:n,className:r,children:i,disabled:a,selected:s,value:c,tabIndex:l,onClick:u,onKeyDown:d,onFocus:f,onBlur:p,"aria-current":m,"aria-label":h,slots:g,slotProps:_}=t,v=xt(t,sH),y=J.useRef(null),b=cH(t);rt(()=>{n&&y.current?.focus()},[n]);let x=g?.monthButton??uH,S=qn({elementType:x,externalSlotProps:_?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:l,ref:y,type:`button`,role:`radio`,"aria-current":m,"aria-checked":s,"aria-label":h,onClick:e=>u(e,c),onKeyDown:e=>d(e,c),onFocus:e=>f(e,c),onBlur:e=>p(e,c)},ownerState:t,className:b.monthButton});return(0,X.jsx)(lH,o({className:ht(b.root,r),ownerState:t},v,{children:(0,X.jsx)(x,o({},S))}))});function fH(e){return ot(`MuiMonthCalendar`,e)}tt(`MuiMonthCalendar`,[`root`]);var pH=[`className`,`value`,`defaultValue`,`referenceDate`,`disabled`,`disableFuture`,`disablePast`,`maxDate`,`minDate`,`onChange`,`shouldDisableMonth`,`readOnly`,`disableHighlightToday`,`autoFocus`,`onMonthFocus`,`hasFocus`,`onFocusedViewChange`,`monthsPerRow`,`timezone`,`gridLabelId`,`slots`,`slotProps`],mH=e=>{let{classes:t}=e;return Et({root:[`root`]},fH,t)};function hH(e,t){let n=on(),r=xn(),i=fr({props:e,name:t});return o({disableFuture:!1,disablePast:!1},i,{minDate:jt(n,i.minDate,r.minDate),maxDate:jt(n,i.maxDate,r.maxDate)})}var gH=ft(`div`,{name:`MuiMonthCalendar`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`flex`,flexWrap:`wrap`,alignContent:`stretch`,padding:`0 4px`,width:320,boxSizing:`border-box`}),_H=J.forwardRef(function(e,t){let n=hH(e,`MuiMonthCalendar`),{className:r,value:i,defaultValue:a,referenceDate:s,disabled:c,disableFuture:l,disablePast:u,maxDate:d,minDate:f,onChange:p,shouldDisableMonth:m,readOnly:h,autoFocus:g=!1,onMonthFocus:_,hasFocus:v,onFocusedViewChange:y,monthsPerRow:b=3,timezone:x,gridLabelId:S,slots:C,slotProps:w}=n,T=xt(n,pH),{value:E,handleValueChange:D,timezone:O}=vn({name:`MonthCalendar`,timezone:x,value:i,defaultValue:a,referenceDate:s,onChange:p,valueManager:Pt}),k=gn(O),A=Jn(),j=on(),M=J.useMemo(()=>Pt.getInitialReferenceValue({value:E,utils:j,props:n,timezone:O,referenceDate:s,granularity:Gt.month}),[]),N=n,P=mH(N),F=J.useMemo(()=>j.getMonth(k),[j,k]),I=J.useMemo(()=>E==null?null:j.getMonth(E),[E,j]),[ee,L]=J.useState(()=>I||j.getMonth(M)),[R,z]=rr({name:`MonthCalendar`,state:`hasFocus`,controlled:v,default:g??!1}),te=Tt(e=>{z(e),y&&y(e)}),ne=J.useCallback(e=>{let t=j.startOfMonth(u&&j.isAfter(k,f)?k:f),n=j.startOfMonth(l&&j.isBefore(k,d)?k:d),r
2743=j.startOfMonth(e);return j.isBefore(r,t)||j.isAfter(r,n)?!0:m?m(r):!1},[l,u,d,f,k,m,j]),re=Tt((e,t)=>{h||D(j.setMonth(E??M,t))}),ie=Tt(e=>{ne(j.setMonth(E??M,e))||(L(e),te(!0),_&&_(e))});J.useEffect(()=>{L(e=>I!==null&&e!==I?I:e)},[I]);let ae=Tt((e,t)=>{switch(e.key){case`ArrowUp`:ie((12+t-3)%12),e.preventDefault();break;case`ArrowDown`:ie((12+t+3)%12),e.preventDefault();break;case`ArrowLeft`:ie((12+t+(A?1:-1))%12),e.preventDefault();break;case`ArrowRight`:ie((12+t+(A?-1:1))%12),e.preventDefault();break;default:break}}),oe=Tt((e,t)=>{ie(t)}),se=Tt((e,t)=>{ee===t&&te(!1)});return(0,X.jsx)(gH,o({ref:t,className:ht(P.root,r),ownerState:N,role:`radiogroup`,"aria-labelledby":S},T,{children:Wt(j,E??M).map(e=>{let t=j.getMonth(e),n=j.format(e,`monthShort`),r=j.format(e,`month`),i=t===I,a=c||ne(e);return(0,X.jsx)(dH,{selected:i,value:t,onClick:re,onKeyDown:ae,autoFocus:R&&t===ee,disabled:a,tabIndex:t===ee&&!a?0:-1,onFocus:oe,onBlur:se,"aria-current":F===t?`date`:void 0,"aria-label":r,monthsPerRow:b,slots:C,slotProps:w,children:n},n)})}))});function vH(e){return ot(`MuiPickersYear`,e)}var yH=tt(`MuiPickersYear`,[`root`,`yearButton`,`selected`,`disabled`]),bH=[`autoFocus`,`className`,`children`,`disabled`,`selected`,`value`,`tabIndex`,`onClick`,`onKeyDown`,`onFocus`,`onBlur`,`aria-current`,`yearsPerRow`,`slots`,`slotProps`],xH=e=>{let{disabled:t,selected:n,classes:r}=e;return Et({root:[`root`],yearButton:[`yearButton`,t&&`disabled`,n&&`selected`]},vH,r)},SH=ft(`div`,{name:`MuiPickersYear`,slot:`Root`,overridesResolver:(e,t)=>[t.root]})({display:`flex`,alignItems:`center`,justifyContent:`center`,flexBasis:`33.3%`,variants:[{props:{yearsPerRow:4},style:{flexBasis:`25%`}}]}),CH=ft(`button`,{name:`MuiPickersYear`,slot:`YearButton`,overridesResolver:(e,t)=>[t.yearButton,{[`&.${yH.disabled}`]:t.disabled},{[`&.${yH.selected}`]:t.selected}]})(({theme:e})=>o({color:`unset`,backgroundColor:`transparent`,border:0,outline:0},e.typography.subtitle1,{margin:`6px 0`,height:36,width:72,borderRadius:18,cursor:`pointer`,"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:I(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:I(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:`auto`,pointerEvents:`none`},[`&.${yH.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${yH.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),wH=J.memo(function(e){let t=fr({props:e,name:`MuiPickersYear`}),{autoFocus:n,className:r,children:i,disabled:a,selected:s,value:c,tabIndex:l,onClick:u,onKeyDown:d,onFocus:f,onBlur:p,"aria-current":m,slots:h,slotProps:g}=t,_=xt(t,bH),v=J.useRef(null),y=xH(t);rt(()=>{n&&v.current?.focus()},[n]);let b=h?.yearButton??CH,x=qn({elementType:b,externalSlotProps:g?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:l,ref:v,type:`button`,role:`radio`,"aria-current":m,"aria-checked":s,onClick:e=>u(e,c),onKeyDown:e=>d(e,c),onFocus:e=>f(e,c),onBlur:e=>p(e,c)},ownerState:t,className:y.yearButton});return(0,X.jsx)(SH,o({className:ht(y.root,r),ownerState:t},_,{children:(0,X.jsx)(b,o({},x))}))});function TH(e){return ot(`MuiYearCalendar`,e)}tt(`MuiYearCalendar`,[`root`]);var EH=[`autoFocus`,`className`,`value`,`defaultValue`,`referenceDate`,`disabled`,`disableFuture`,`disablePast`,`maxDate`,`minDate`,`onChange`,`readOnly`,`shouldDisableYear`,`disableHighlightToday`,`onYearFocus`,`hasFocus`,`onFocusedViewChange`,`yearsOrder`,`yearsPerRow`,`timezone`,`gridLabelId`,`slots`,`slotProps`],DH=e=>{let{classes:t}=e;return Et({root:[`root`]},TH,t)};function OH(e,t){let n=on(),r=xn(),i=fr({props:e,name:t});return o({disablePast:!1,disableFuture:!1},i,{yearsPerRow:i.yearsPerRow??3,minDate:jt(n,i.minDate,r.minDate),maxDate:jt(n,i.maxDate,r.maxDate)})}var kH=ft(`div`,{name:`MuiYearCalendar`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,overflowY:`auto`,height:`100%`,padding:`0 4px`,width:320,maxHeight:280,boxSizing:`border-box`,position:`relative`}),AH=J.forwardRef(function(e,t){let n=OH(e,`MuiYearCalendar`),{autoFocus:r,className:i,value:a,defaultValue:s,referenceDate:c,disabled:l,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onChange:m,readOnly:h,shouldDisableYear:g,onYearFocus:_,hasFocus:v,onFocusedViewChange:y,yearsOrder:b=`asc`,yearsPerRow:x,timezone:S,gridLabelId:C,slots:w,slotProps:T}=n,E=xt(n,EH),{value:D,handleValueChange:O,timezone:k}=vn({name:`YearCalendar`,timezone:S,value:a,defaultValue:s,referenceDate:c,onChange:m,valueManager:Pt}),A=gn(k),j=Jn(),M=on(),N=J.useMemo(()=>Pt.getInitialReferenceValue({value:D,utils:M,props:n,timezone:k,referenceDate:c,granularity:Gt.year}),[]),P=n,F=DH(P),I=J.useMemo(()=>M.getYear(A),[M,A]),ee=J.useMemo(()=>D==null?null:M.getYear(D),[D,M]),[L,R]=J.useState(()=>ee||M.getYear(N)),[z,te]=rr({name:`YearCalendar`,state:`hasFocus`,controlled:v,default:r??!1}),ne=Tt(e=>{te(e),y&&y(e)}),re=J.useCallback(e=>d&&M.isBeforeYear(e,A)||u&&M.isAfterYear(e,A)||p&&M.isBeforeYear(e,p)||f&&M.isAfterYear(e,f)?!0:g?g(M.startOfYear(e)):!1,[u,d,f,p,A,g,M]),ie=Tt((e,t)=>
2743{h||O(M.setYear(D??N,t))}),ae=Tt(e=>{re(M.setYear(D??N,e))||(R(e),ne(!0),_?.(e))});J.useEffect(()=>{R(e=>ee!==null&&e!==ee?ee:e)},[ee]);let oe=b===`desc`?x*-1:x*1,se=j&&b===`asc`||!j&&b===`desc`?-1:1,ce=Tt((e,t)=>{switch(e.key){case`ArrowUp`:ae(t-oe),e.preventDefault();break;case`ArrowDown`:ae(t+oe),e.preventDefault();break;case`ArrowLeft`:ae(t-se),e.preventDefault();break;case`ArrowRight`:ae(t+se),e.preventDefault();break;default:break}}),le=Tt((e,t)=>{ae(t)}),B=Tt((e,t)=>{L===t&&ne(!1)}),ue=J.useRef(null),de=et(t,ue);J.useEffect(()=>{if(r||ue.current===null)return;let e=ue.current.querySelector(`[tabindex="0"]`);if(!e)return;let t=e.offsetHeight,n=e.offsetTop,i=ue.current.clientHeight,a=ue.current.scrollTop,o=n+t;t>i||n<a||(ue.current.scrollTop=o-i/2-t/2)},[r]);let fe=M.getYearRange([p,f]);return b===`desc`&&fe.reverse(),(0,X.jsx)(kH,o({ref:de,className:ht(F.root,i),ownerState:P,role:`radiogroup`,"aria-labelledby":C},E,{children:fe.map(e=>{let t=M.getYear(e),n=t===ee,r=l||re(e);return(0,X.jsx)(wH,{selected:n,value:t,onClick:ie,onKeyDown:ce,autoFocus:z&&t===L,disabled:r,tabIndex:t===L&&!r?0:-1,onFocus:le,onBlur:B,"aria-current":I===t?`date`:void 0,yearsPerRow:x,slots:w,slotProps:T,children:M.format(e,`year`)},M.format(e,`year`))})}))}),jH=e=>ot(`MuiPickersCalendarHeader`,e),MH=tt(`MuiPickersCalendarHeader`,[`root`,`labelContainer`,`label`,`switchViewButton`,`switchViewIcon`]),NH=[`slots`,`slotProps`,`currentMonth`,`disabled`,`disableFuture`,`disablePast`,`maxDate`,`minDate`,`onMonthChange`,`onViewChange`,`view`,`reduceAnimations`,`views`,`labelId`,`className`,`timezone`,`format`],PH=[`ownerState`],FH=e=>{let{classes:t}=e;return Et({root:[`root`],labelContainer:[`labelContainer`],label:[`label`],switchViewButton:[`switchViewButton`],switchViewIcon:[`switchViewIcon`]},jH,t)},IH=ft(`div`,{name:`MuiPickersCalendarHeader`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`flex`,alignItems:`center`,marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),LH=ft(`div`,{name:`MuiPickersCalendarHeader`,slot:`LabelContainer`,overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>o({display:`flex`,overflow:`hidden`,alignItems:`center`,cursor:`pointer`,marginRight:`auto`},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),RH=ft(`div`,{name:`MuiPickersCalendarHeader`,slot:`Label`,overridesResolver:(e,t)=>t.label})({marginRight:6}),zH=ft(Gn,{name:`MuiPickersCalendarHeader`,slot:`SwitchViewButton`,overridesResolver:(e,t)=>t.switchViewButton})({marginRight:`auto`,variants:[{props:{view:`year`},style:{[`.${MH.switchViewIcon}`]:{transform:`rotate(180deg)`}}}]}),BH=ft(nn,{name:`MuiPickersCalendarHeader`,slot:`SwitchViewIcon`,overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:`transform`,transition:e.transitions.create(`transform`),transform:`rotate(0deg)`})),VH=J.forwardRef(function(e,t){let n=jn(),r=on(),i=fr({props:e,name:`MuiPickersCalendarHeader`}),{slots:a,slotProps:s,currentMonth:c,disabled:l,disableFuture:u,disablePast:d,maxDate:f,minDate:p,onMonthChange:m,onViewChange:h,view:g,reduceAnimations:_,views:v,labelId:y,className:b,timezone:x,format:S=`${r.formats.month} ${r.formats.year}`}=i,C=xt(i,NH),w=i,T=FH(i),E=a?.switchViewButton??zH,D=qn({elementType:E,externalSlotProps:s?.switchViewButton,additionalProps:{size:`small`,"aria-label":n.calendarViewSwitchingButtonAriaLabel(g)},ownerState:w,className:T.switchViewButton}),O=a?.switchViewIcon??BH,k=xt(qn({elementType:O,externalSlotProps:s?.switchViewIcon,ownerState:w,className:T.switchViewIcon}),PH),A=()=>m(r.addMonths(c,1),`left`),j=()=>m(r.addMonths(c,-1),`right`),M=Qt(c,{disableFuture:u,maxDate:f,timezone:x}),N=Rt(c,{disablePast:d,minDate:p,timezone:x}),P=()=>{v.length===1||!h||l||(v.length===2?h(v.find(e=>e!==g)||v[0]):h(v[+(v.indexOf(g)===0)]))};if(v.length===1&&v[0]===`year`)return null;let F=r.formatByString(c,S);return(0,X.jsxs)(IH,o({},C,{ownerState:w,className:ht(T.root,b),ref:t,children:[(0,X.jsxs)(LH,{role:`presentation`,onClick:P,ownerState:w,"aria-live":`polite`,className:T.labelContainer,children:[(0,X.jsx)(IV,{reduceAnimations:_,transKey:F,children:(0,X.jsx)(RH,{id:y,ownerState:w,className:T.label,children:F})}),v.length>1&&!l&&(0,X.jsx)(E,o({},D,{children:(0,X.jsx)(O,o({},k))}))]}),(0,X.jsx)(zn,{in:g===`day`,appear:!_,enter:!_,children:(0,X.jsx)(en,{slots:a,slotProps:s,onGoToPrevious:j,isPreviousDisabled:N,previousLabel:n.previousMonth,onGoToNext:A,isNextDisabled:M,nextLabel:n.nextMonth})})]}))}),HH=`@media (prefers-reduced-motion: reduce)`,UH=typeof navigator<`u`&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),WH=UH&&UH[1]?parseInt(UH[1],10):null,GH=UH&&UH[2]?parseInt(UH[2],10):null,KH=WH&&WH<10||GH&&GH<13||!1,qH=()=>Dt(HH,{defaultMatches:!1})||KH,JH=e=>
2743ot(`MuiDateCalendar`,e);tt(`MuiDateCalendar`,[`root`,`viewTransitionContainer`]);var YH=`autoFocus.onViewChange.value.defaultValue.referenceDate.disableFuture.disablePast.onChange.onYearChange.onMonthChange.reduceAnimations.shouldDisableDate.shouldDisableMonth.shouldDisableYear.view.views.openTo.className.disabled.readOnly.minDate.maxDate.disableHighlightToday.focusedView.onFocusedViewChange.showDaysOutsideCurrentMonth.fixedWeekNumber.dayOfWeekFormatter.slots.slotProps.loading.renderLoading.displayWeekNumber.yearsOrder.yearsPerRow.monthsPerRow.timezone`.split(`.`),XH=e=>{let{classes:t}=e;return Et({root:[`root`],viewTransitionContainer:[`viewTransitionContainer`]},JH,t)};function ZH(e,t){let n=on(),r=xn(),i=qH(),a=fr({props:e,name:t});return o({},a,{loading:a.loading??!1,disablePast:a.disablePast??!1,disableFuture:a.disableFuture??!1,openTo:a.openTo??`day`,views:a.views??[`year`,`day`],reduceAnimations:a.reduceAnimations??i,renderLoading:a.renderLoading??(()=>(0,X.jsx)(`span`,{children:`...`})),minDate:jt(n,a.minDate,r.minDate),maxDate:jt(n,a.maxDate,r.maxDate)})}var QH=ft(Ln,{name:`MuiDateCalendar`,slot:`Root`,overridesResolver:(e,t)=>t.root})({display:`flex`,flexDirection:`column`,height:336}),$H=ft(IV,{name:`MuiDateCalendar`,slot:`ViewTransitionContainer`,overridesResolver:(e,t)=>t.viewTransitionContainer})({}),eU=J.forwardRef(function(e,t){let n=on(),r=tr(),i=ZH(e,`MuiDateCalendar`),{autoFocus:a,onViewChange:s,value:c,defaultValue:l,referenceDate:u,disableFuture:d,disablePast:f,onChange:p,onYearChange:m,onMonthChange:h,reduceAnimations:g,shouldDisableDate:_,shouldDisableMonth:v,shouldDisableYear:y,view:b,views:x,openTo:S,className:C,disabled:w,readOnly:T,minDate:E,maxDate:D,disableHighlightToday:O,focusedView:k,onFocusedViewChange:A,showDaysOutsideCurrentMonth:j,fixedWeekNumber:M,dayOfWeekFormatter:N,slots:P,slotProps:F,loading:I,renderLoading:ee,displayWeekNumber:L,yearsOrder:R,yearsPerRow:z,monthsPerRow:te,timezone:ne}=i,re=xt(i,YH),{value:ie,handleValueChange:ae,timezone:oe}=vn({name:`DateCalendar`,timezone:ne,value:c,defaultValue:l,referenceDate:u,onChange:p,valueManager:Pt}),{view:se,setView:ce,focusedView:le,setFocusedView:B,goToNextView:ue,setValueAndGoToNextView:de}=Zt({view:b,views:x,openTo:S,onChange:ae,onViewChange:s,autoFocus:a,focusedView:k,onFocusedViewChange:A}),{referenceDate:fe,calendarState:pe,changeFocusedDay:me,changeMonth:he,handleChangeMonth:ge,isDateDisabled:_e,onMonthSwitchingAnimationEnd:ve}=MV({value:ie,referenceDate:u,reduceAnimations:g,onMonthChange:h,minDate:E,maxDate:D,shouldDisableDate:_,disablePast:f,disableFuture:d,timezone:oe}),ye=w&&ie||E,be=w&&ie||D,xe=`${r}-grid-label`,Se=le!==null,Ce=P?.calendarHeader??VH,V=qn({elementType:Ce,externalSlotProps:F?.calendarHeader,additionalProps:{views:x,view:se,currentMonth:pe.currentMonth,onViewChange:ce,onMonthChange:(e,t)=>
2743ge({newMonth:e,direction:t}),minDate:ye,maxDate:be,disabled:w,disablePast:f,disableFuture:d,reduceAnimations:g,timezone:oe,labelId:xe},ownerState:i}),we=Tt(e=>{let t=n.startOfMonth(e),r=n.endOfMonth(e),i=_e(e)?_n({utils:n,date:e,minDate:n.isBefore(E,t)?t:E,maxDate:n.isAfter(D,r)?r:D,disablePast:f,disableFuture:d,isDateDisabled:_e,timezone:oe}):e;i?(de(i,`finish`),h?.(t)):(ue(),he(t)),me(i,!0)}),Te=Tt(e=>{let t=n.startOfYear(e),r=n.endOfYear(e),i=_e(e)?_n({utils:n,date:e,minDate:n.isBefore(E,t)?t:E,maxDate:n.isAfter(D,r)?r:D,disablePast:f,disableFuture:d,isDateDisabled:_e,timezone:oe}):e;i?(de(i,`finish`),m?.(i)):(ue(),he(t)),me(i,!0)}),Ee=Tt(e=>ae(e&&Ht(n,e,ie??fe),`finish`,se));J.useEffect(()=>{ie!=null&&n.isValid(ie)&&he(ie)},[ie]);let De=i,Oe=XH(De),ke={disablePast:f,disableFuture:d,maxDate:D,minDate:E},Ae={disableHighlightToday:O,readOnly:T,disabled:w,timezone:oe,gridLabelId:xe,slots:P,slotProps:F},je=J.useRef(se);J.useEffect(()=>{je.current!==se&&(le===je.current&&B(se,!0),je.current=se)},[le,B,se]);let Me=J.useMemo(()=>[ie],[ie]);return(0,X.jsxs)(QH,o({ref:t,className:ht(Oe.root,C),ownerState:De},re,{children:[(0,X.jsx)(Ce,o({},V,{slots:P,slotProps:F})),(0,X.jsx)($H,{reduceAnimations:g,className:Oe.viewTransitionContainer,transKey:se,ownerState:De,children:(0,X.jsxs)(`div`,{children:[se===`year`&&(0,X.jsx)(AH,o({},ke,Ae,{value:ie,onChange:Te,shouldDisableYear:y,hasFocus:Se,onFocusedViewChange:e=>B(`year`,e),yearsOrder:R,yearsPerRow:z,referenceDate:fe})),se===`month`&&(0,X.jsx)(_H,o({},ke,Ae,{hasFocus:Se,className:C,value:ie,onChange:we,shouldDisableMonth:v,onFocusedViewChange:e=>B(`month`,e),monthsPerRow:te,referenceDate:fe})),se===`day`&&(0,X.jsx)(iH,o({},pe,ke,Ae,{onMonthSwitchingAnimationEnd:ve,onFocusedDayChange:me,reduceAnimations:g,selectedDays:Me,onSelectedDaysChange:Ee,shouldDisableDate:_,shouldDisableMonth:v,shouldDisableYear:y,hasFocus:Se,onFocusedViewChange:e=>B(`day`,e),showDaysOutsideCurrentMonth:j,fixedWeekNumber:M,dayOfWeekFormatter:N,displayWeekNumber:L,loading:I,renderLoading:ee}))]})})]}))});function tU(e){return ot(`MuiPickersPopper`,e)}tt(`MuiPickersPopper`,[`root`,`paper`]);var nU=[`PaperComponent`,`popperPlacement`,`ownerState`,`children`,`paperSlotProps`,`paperClasses`,`onPaperClick`,`onPaperTouchStart`],rU=e=>{let{classes:t}=e;return Et({root:[`root`],paper:[`paper`]},tU,t)},iU=ft(br,{name:`MuiPickersPopper`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),aU=ft(Rn,{name:`MuiPickersPopper`,slot:`Paper`,overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:`top center`,variants:[{props:({placement:e})=>[`top`,`top-start`,`top-end`].includes(e),style:{transformOrigin:`bottom center`}}]});function oU(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function sU(e,t){let n=J.useRef(!1),r=J.useRef(!1),i=J.useRef(null),a=J.useRef(!1);J.useEffect(()=>{if(!e)return;function t(){a.current=!0}return document.addEventListener(`mousedown`,t,!0),document.addEventListener(`touchstart`,t,!0),()=>{document.removeEventListener(`mousedown`,t,!0),document.removeEventListener(`touchstart`,t,!0),a.current=!1}},[e]);let o=Tt(e=>{if(!a.current)return;let o=r.current;r.current=!1;let s=Xn(i.current);if(!i.current||`clientX`in e&&oU(e,s))return;if(n.current){n.current=!1;return}let c;c=e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target),!c&&!o&&t(e)}),s=()=>{r.current=!0};return J.useEffect(()=>{if(e){let e=Xn(i.current),t=()=>{n.current=!0};return e.addEventListener(`touchstart`,o),e.addEventListener(`touchmove`,t),()=>{e.removeEventListener(`touchstart`,o),e.removeEventListener(`touchmove`,t)}}},[e,o]),J.useEffect(()=>{if(e){let e=Xn(i.current);return e.addEventListener(`click`,o),()=>{e.removeEventListener(`click`,o),r.current=!1}}},[e,o]),[i,s,s]}var cU=J.forwardRef((e,t)=>{let{PaperComponent:n,popperPlacement:r,ownerState:i,children:a,paperSlotProps:s,paperClasses:c,onPaperClick:l,onPaperTouchStart:u}=e,d=xt(e,nU),f=o({},i,{placement:r}),p=qn({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:c,ownerState:f});return(0,X.jsx)(n,o({},d,p,{onClick:e=>{l(e),p.onClick?.(e)},onTouchStart:e=>{u(e),p.onTouchStart?.(e)},ownerState:f,children:a}))});function lU(e){let t=fr({props:e,name:`MuiPickersPopper`}),{anchorEl:n,children:r,containerRef:i=null,shouldRestoreFocus:a,onBlur:s,onDismiss:c,open:l,role:u,placement:d,slots:f,slotProps:p,reduceAnimations:m}=t;J.useEffect(()=>{function e(e){l&&e.key===`Escape`&&c()}
2743return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[c,l]);let h=J.useRef(null);J.useEffect(()=>{u===`tooltip`||a&&!a()||(l?h.current=Pn(document):h.current&&h.current instanceof HTMLElement&&setTimeout(()=>{h.current instanceof HTMLElement&&h.current.focus()}))},[l,u,a]);let[g,_,v]=sU(l,s??c),y=et(et(J.useRef(null),i),g),b=t,x=rU(b),S=qH(),C=m??S,w=e=>{e.key===`Escape`&&(e.stopPropagation(),c())},T=f?.desktopTransition??C?zn:Qn,E=f?.desktopTrapFocus??Bn,D=f?.desktopPaper??aU,O=f?.popper??iU;return(0,X.jsx)(O,o({},qn({elementType:O,externalSlotProps:p?.popper,additionalProps:{transition:!0,role:u,open:l,anchorEl:n,placement:d,onKeyDown:w},className:x.root,ownerState:t}),{children:({TransitionProps:e,placement:t})=>(0,X.jsx)(E,o({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u===`tooltip`,isEnabled:()=>!0},p?.desktopTrapFocus,{children:(0,X.jsx)(T,o({},e,p?.desktopTransition,{children:(0,X.jsx)(cU,{PaperComponent:D,ownerState:b,popperPlacement:t,ref:y,onPaperClick:_,onPaperTouchStart:v,paperClasses:x.paper,paperSlotProps:p?.desktopPaper,children:r})}))}))}))}var uU=[`props`,`getOpenDialogAriaText`],dU=[`ownerState`],fU=[`ownerState`],pU=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=xt(e,uU),{slots:i,slotProps:a,className:s,sx:c,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:p,timezone:m,name:h,label:g,inputRef:_,readOnly:v,disabled:y,autoFocus:b,localeText:x,reduceAnimations:S}=t,C=J.useRef(null),w=J.useRef(null),T=tr(),E=a?.toolbar?.hidden??!1,{open:D,actions:O,hasUIView:k,layoutProps:A,renderCurrentView:j,shouldRestoreFocus:M,fieldProps:N,contextValue:P,ownerState:F}=cn(o({},r,{props:t,fieldRef:w,autoFocusView:!0,additionalViewProps:{},wrapperVariant:`desktop`})),I=i.inputAdornment??Ur,ee=xt(qn({elementType:I,externalSlotProps:a?.inputAdornment,additionalProps:{position:`end`},ownerState:t}),dU),L=i.openPickerButton??Gn,R=xt(qn({elementType:L,externalSlotProps:a?.openPickerButton,additionalProps:{disabled:y||v,onClick:D?O.onClose:O.onOpen,"aria-label":n(N.value),edge:ee.position},ownerState:t}),fU),z=i.openPickerIcon,te=qn({elementType:z,externalSlotProps:a?.openPickerIcon,ownerState:F}),ne=i.field,re=qn({elementType:ne,externalSlotProps:a?.field,additionalProps:o({},N,E&&{id:T},{readOnly:v,disabled:y,className:s,sx:c,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:d,selectedSections:f,onSelectedSectionsChange:p,timezone:m,label:g,name:h,autoFocus:b&&!t.open,focused:D?!0:void 0},_?{inputRef:_}:{}),ownerState:t});k&&(re.InputProps=o({},re.InputProps,{ref:C},!t.disableOpenPicker&&{[`${ee.position}Adornment`]:(0,X.jsx)(I,o({},ee,{children:(0,X.jsx)(L,o({},R,{children:(0,X.jsx)(z,o({},te))}))}))}));let ie=o({textField:i.textField,clearIcon:i.clearIcon,clearButton:i.clearButton},re.slots),ae=i.layout??En,oe=T;E&&(oe=g?`${T}-label`:void 0);let se=o({},a,{toolbar:o({},a?.toolbar,{titleId:T}),popper:o({"aria-labelledby":oe},a?.popper)}),ce=et(w,re.unstableFieldRef);return{renderPicker:()=>(0,X.jsxs)(rn,{contextValue:P,localeText:x,children:[(0,X.jsx)(ne,o({},re,{slots:ie,slotProps:se,unstableFieldRef:ce})),(0,X.jsx)(lU,o({role:`dialog`,placement:`bottom-start`,anchorEl:C.current},O,{open:D,slots:i,slotProps:se,shouldRestoreFocus:M,reduceAnimations:S,children:(0,X.jsx)(ae,o({},A,se?.layout,{slots:i,slotProps:se,children:j()}))}))]})}},mU=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:_,reduceAnimations:v,onMonthChange:y,monthsPerRow:b,onYearChange:x,yearsOrder:S,yearsPerRow:C,slots:w,slotProps:T,loading:E,renderLoading:D,disableHighlightToday:O,readOnly:k,disabled:A,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:M,sx:N,autoFocus:P,fixedWeekNumber:F,displayWeekNumber:I,timezone:ee})=>(0,X.jsx)(eU,{view:e,onViewChange:t,views:n.filter(zt),focusedView:r&&zt(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minDate:p,maxDate:m,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:_,reduceAnimations:v,onMonthChange:y,monthsPerRow:b,onYearChange:x,yearsOrder:S,yearsPerRow:C,slots:w,slotProps:T,loading:E,renderLoading:D,disableHighlightToday:O,readOnly:k,disabled:A,showDaysOutsideCurrentMonth:j,dayOfWeekFormatter:M,sx:N,autoFocus:P,fixedWeekNumber:F,displayWeekNumber:I,timezone:ee});function hU(e){return ot(`MuiPickersToolbarText`,e)}var gU=tt(`MuiPickersToolbarText`,[`root`,`selected`]),_U=[`className`,`selected`,`value`],vU=e=>{let{classes:t,selected:n}=e;
2743return Et({root:[`root`,n&&`selected`]},hU,t)},yU=ft(St,{name:`MuiPickersToolbarText`,slot:`Root`,overridesResolver:(e,t)=>[t.root,{[`&.${gU.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create(`color`),color:(e.vars||e).palette.text.secondary,[`&.${gU.selected}`]:{color:(e.vars||e).palette.text.primary}})),bU=J.forwardRef(function(e,t){let n=fr({props:e,name:`MuiPickersToolbarText`}),{className:r,value:i}=n,a=xt(n,_U);return(0,X.jsx)(yU,o({ref:t,className:ht(vU(n).root,r),component:`span`},a,{children:i}))}),xU=[`align`,`className`,`selected`,`typographyClassName`,`value`,`variant`,`width`],SU=e=>{let{classes:t}=e;return Et({root:[`root`]},Mn,t)},CU=ft(nr,{name:`MuiPickersToolbarButton`,slot:`Root`,overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:`none`}),wU=J.forwardRef(function(e,t){let n=fr({props:e,name:`MuiPickersToolbarButton`}),{align:r,className:i,selected:a,typographyClassName:s,value:c,variant:l,width:u}=n,d=xt(n,xU);return(0,X.jsx)(CU,o({variant:`text`,ref:t,className:ht(SU(n).root,i)},u?{sx:{width:u}}:{},d,{children:(0,X.jsx)(bU,{align:r,className:s,variant:l,value:c,selected:a})}))});function TU(e){return ot(`MuiTimePickerToolbar`,e)}var EU=tt(`MuiTimePickerToolbar`,[`root`,`separator`,`hourMinuteLabel`,`hourMinuteLabelLandscape`,`hourMinuteLabelReverse`,`ampmSelection`,`ampmLandscape`,`ampmLabel`]),DU=[`ampm`,`ampmInClock`,`value`,`isLandscape`,`onChange`,`view`,`onViewChange`,`views`,`disabled`,`readOnly`,`className`],OU=e=>{let{isLandscape:t,classes:n,isRtl:r}=e;return Et({root:[`root`],separator:[`separator`],hourMinuteLabel:[`hourMinuteLabel`,t&&`hourMinuteLabelLandscape`,r&&`hourMinuteLabelReverse`],ampmSelection:[`ampmSelection`,t&&`ampmLandscape`],ampmLabel:[`ampmLabel`]},TU,n)},kU=ft(yn,{name:`MuiTimePickerToolbar`,slot:`Root`,overridesResolver:(e,t)=>t.root})({}),AU=ft(bU,{name:`MuiTimePickerToolbar`,slot:`Separator`,overridesResolver:(e,t)=>t.separator})({outline:0,margin:`0 4px 0 2px`,cursor:`default`}),jU=ft(`div`,{name:`MuiTimePickerToolbar`,slot:`HourMinuteLabel`,overridesResolver:(e,t)=>[{[`&.${EU.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${EU.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:`flex`,justifyContent:`flex-end`,alignItems:`flex-end`,variants:[{props:{isRtl:!0},style:{flexDirection:`row-reverse`}},{props:{isLandscape:!0},style:{marginTop:`auto`}}]}),MU=ft(`div`,{name:`MuiTimePickerToolbar`,slot:`AmPmSelection`,overridesResolver:(e,t)=>[{[`.${EU.ampmLabel}`]:t.ampmLabel},{[`&.${EU.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:`flex`,flexDirection:`column`,marginRight:`auto`,marginLeft:12,[`& .${EU.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:`4px 0 auto`,flexDirection:`row`,justifyContent:`space-around`,flexBasis:`100%`}}]});function NU(e){let t=fr({props:e,name:`MuiTimePickerToolbar`}),{ampm:n,ampmInClock:r,value:i,isLandscape:a,onChange:s,view:c,onViewChange:l,views:u,disabled:d,readOnly:f,className:p}=t,m=xt(t,DU),h=on(),g=jn(),_=Jn(),v=!!(n&&!r&&u.includes(`hours`)),{meridiemMode:y,handleMeridiemChange:b}=Mt(i,n,s),x=e=>n?h.format(e,`hours12h`):h.format(e,`hours24h`),S=o({},t,{isRtl:_}),C=OU(S),w=(0,X.jsx)(AU,{tabIndex:-1,value:`:`,variant:`h3`,selected:!1,className:C.separator});return(0,X.jsxs)(kU,o({landscapeDirection:`row`,toolbarTitle:g.timePickerToolbarTitle,isLandscape:a,ownerState:S,className:ht(C.root,p)},m,{children:[(0,X.jsxs)(jU,{className:C.hourMinuteLabel,ownerState:S,children:[Nt(u,`hours`)&&(0,X.jsx)(wU,{tabIndex:-1,variant:`h3`,onClick:()=>l(`hours`),selected:c===`hours`,value:i?x(i):`--`}),Nt(u,[`hours`,`minutes`])&&w,Nt(u,`minutes`)&&(0,X.jsx)(wU,{tabIndex:-1,variant:`h3`,onClick:()=>l(`minutes`),selected:c===`minutes`,value:i?h.format(i,`minutes`):`--`}),Nt(u,[`minutes`,`seconds`])&&w,Nt(u,`seconds`)&&(0,X.jsx)(wU,{variant:`h3`,onClick:()=>l(`seconds`),selected:c===`seconds`,value:i?h.format(i,`seconds`):`--`})]}),v&&(0,X.jsxs)(MU,{className:C.ampmSelection,ownerState:S,children:[(0,X.jsx)(wU,{disableRipple:!0,variant:`subt
2743itle2`,selected:y===`am`,typographyClassName:C.ampmLabel,value:Ut(h,`am`),onClick:f?void 0:()=>b(`am`),disabled:d}),(0,X.jsx)(wU,{disableRipple:!0,variant:`subtitle2`,selected:y===`pm`,typographyClassName:C.ampmLabel,value:Ut(h,`pm`),onClick:f?void 0:()=>b(`pm`),disabled:d})]})]}))}function PU(e,t){let n=on(),r=fr({props:e,name:t}),i=r.ampm??n.is12HourCycleInCurrentLocale();return o({},r,{ampm:i,localeText:J.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:o({},r.localeText,{timePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText])},tn({views:r.views,openTo:r.openTo,defaultViews:[`hours`,`minutes`],defaultOpenTo:`hours`}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,slots:o({toolbar:NU},r.slots),slotProps:o({},r.slotProps,{toolbar:o({ampm:i,ampmInClock:r.ampmInClock},r.slotProps?.toolbar)})})}var FU=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,ampmInClock:v,slots:y,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:w,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:E,timezone:D})=>(0,X.jsx)(BB,{view:e,onViewChange:t,focusedView:n&&Tn(n)?n:null,onFocusedViewChange:r,views:i.filter(Tn),value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,ampmInClock:v,slots:y,slotProps:b,readOnly:x,disabled:S,sx:C,autoFocus:w,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:E,timezone:D}),IU=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeSteps:T,skipDisabled:E,timezone:D})=>(0,X.jsx)(JB,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Tn),value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeStep:T?.minutes,skipDisabled:E,timezone:D}),LU=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeSteps:T,skipDisabled:E,timezone:D})=>(0,X.jsx)(lV,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(Tn),value:a,defaultValue:o,referenceDate:s,onChange:c,className:l,classes:u,disableFuture:d,disablePast:f,minTime:p,maxTime:m,shouldDisableTime:h,minutesStep:g,ampm:_,slots:v,slotProps:y,readOnly:b,disabled:x,sx:S,autoFocus:C,disableIgnoringDatePartForTimeValidation:w,timeSteps:T,skipDisabled:E,timezone:D}),RU=[`views`,`format`],zU=(e,t,n)=>{let{views:r,format:i}=t,a=xt(t,RU);if(i)return i;let s=[],c=[];if(r.forEach(e=>{Tn(e)?c.push(e):zt(e)&&s.push(e)}),c.length===0)return Jt(e,o({views:s},a),!1);if(s.length===0)return Bt(e,o({views:c},a));let l=Bt(e,o({views:c},a));return`${n?e.formats.keyboardDate:Jt(e,o({views:s},a),!1)} ${l}`},BU=(e,t,n)=>n?t.filter(e=>!Vt(e)||e===`hours`):e?[...t,`meridiem`]:t,VU=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function HU({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){let i=e??24,a=o({hours:1,minutes:5,seconds:5},n),s=VU(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:BU(t,r,s)}}var UU=J.forwardRef(function(e,t){let n=jn(),r=on(),i=PU(e,`MuiMobileTimePicker`),a=o({hours:FU,minutes:FU,seconds:FU},i.viewRenderers),s=i.ampmInClock??!1,c=o({},i,{ampmInClock:s,viewRenderers:a,format:Bt(r,i),slots:o({field:EV},i.slots),slotProps:o({},i.slotProps,{field:e=>o({},cr(i.slotProps?.field,e),Fn(i),{ref:t}),toolbar:o({hidden:!1,ampmInClock:s},i.slotProps?.toolbar)})}),{renderPicker:l}=bn({props:c,valueManager:Pt,valueType:`time`,getOpenDialogAriaText:Cn({utils:r,formatKey:`fullTime`,contextTranslation:n.openTimePickerDialogue,propsTranslation:c.localeText?.openTimePickerDialogue}),validator:SV});return l()});UU.propTypes={ampm:Z.default.bool,ampmInClock:Z.default.bool,autoFocus:Z.default.bool,className:Z.default.string,closeOnSelect:Z.default.bool,defaultValue:Z.default.object,disabled:Z.default.bool,disableFuture:Z.default.bool,disableIgnoringDatePartForTimeValidation:Z.default.bool,disableOpenPicker:Z.default.bool,disablePast:Z.default.bool,enableAccessibleFieldDOMStructure:Z.default.any,format:Z.default.string,formatDensity:Z.default.oneOf([`dense`,`spacious`]),inputRef:ln,label:Z.default.node,localeText:Z.default.object,maxTime:Z.default.object,minTime:Z.default.object,minutesStep:Z.default.number,name:Z.default.string,onAccept:Z.default.func,onChange:Z.default.func,onClose:Z.default.func,onError:Z.default.func,onOpen:Z.default.func,onSelectedSectionsChange:Z.default.func,onViewChange:Z.default.func,open:Z.default.bool,openTo:Z.default.oneOf([`hours`,`minutes`,`seconds`]),orientation:Z.default.oneOf([`landscape`,`portrait`]),readOnly:Z.default.bool,reduceAnimations:Z.default.bool,referenceDate:Z.default.object,selectedSections:Z.default.oneOfType([Z.default.oneOf([`all`,`day`,`empty`,`hours`,`meridiem`,`minutes`,`month`,`seconds`,`weekDay`,`year`]),Z.default.number]),shouldDisableTime:Z.default.func,slotProps:Z.default.object,slots:Z.default.object,sx:Z.default.oneOfType([Z.default.arrayOf(Z.default.oneOfType([Z.default.func,Z.default.object,Z.default.bool])),Z.default.func,Z.default.object]),timezone:Z.default.string,value:Z.default.object,view:Z.default.oneOf([`hours`,`minutes`,`seconds`]),viewRenderers:Z.default.shape({hours:Z.default.func,minutes:Z.default.func,seconds:Z.default.func}),views:Z.default.arrayOf(Z.default.oneOf([`hours`,`minutes`,`seconds`]).isRequired)};function WU(e){return ot(`MuiDateTimePickerTabs`,e)}tt(`MuiDateTimePickerTabs`,[`root`]);var GU=e=>zt(e)?`date`:`time`,KU=e=>e===`date`?`day`:`hours`,qU=e=>{let{classes:t}=e;return Et({root:[`root`]},WU,t)},JU=ft(Jp,{name:`MuiDateTimePickerTabs`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${Lp.indicator}`]:{bottom:`auto`,top:0}}})),YU=function(e){let t=fr({props:e,name:`MuiDateTimePickerTabs`}),{dateIcon:n=(0,X.jsx)(At,{}),onViewChange:r,timeIcon:i=(0,X.jsx)(dn,{}),view:a,hidden:o=typeof window>`u`||window.innerHeight<667,className:s,sx:c}=t,l=jn(),u=qU(t);return o?null:(0,X.jsxs)(JU,{ownerState:t,variant:`fullWidth`,value:GU(a),onChange:(e,t)=>
2743{r(KU(t))},className:ht(s,u.root),sx:c,children:[(0,X.jsx)(wp,{value:`date`,"aria-label":l.dateTableLabel,icon:(0,X.jsx)(J.Fragment,{children:n})}),(0,X.jsx)(wp,{value:`time`,"aria-label":l.timeTableLabel,icon:(0,X.jsx)(J.Fragment,{children:i})})]})};function XU(e){return ot(`MuiDateTimePickerToolbar`,e)}var ZU=tt(`MuiDateTimePickerToolbar`,[`root`,`dateContainer`,`timeContainer`,`timeDigitsContainer`,`separator`,`timeLabelReverse`,`ampmSelection`,`ampmLandscape`,`ampmLabel`]),QU=[`ampm`,`ampmInClock`,`value`,`onChange`,`view`,`isLandscape`,`onViewChange`,`toolbarFormat`,`toolbarPlaceholder`,`views`,`disabled`,`readOnly`,`toolbarVariant`,`toolbarTitle`,`className`],$U=e=>{let{classes:t,isLandscape:n,isRtl:r}=e;return Et({root:[`root`],dateContainer:[`dateContainer`],timeContainer:[`timeContainer`,r&&`timeLabelReverse`],timeDigitsContainer:[`timeDigitsContainer`,r&&`timeLabelReverse`],separator:[`separator`],ampmSelection:[`ampmSelection`,n&&`ampmLandscape`],ampmLabel:[`ampmLabel`]},XU,t)},eW=ft(yn,{name:`MuiDateTimePickerToolbar`,slot:`Root`,overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:`space-around`,position:`relative`,variants:[{props:{toolbarVariant:`desktop`},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${un.content} .${gU.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:`desktop`,isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:`desktop`,isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),tW=ft(`div`,{name:`MuiDateTimePickerToolbar`,slot:`DateContainer`,overridesResolver:(e,t)=>t.dateContainer})({display:`flex`,flexDirection:`column`,alignItems:`flex-start`}),nW=ft(`div`,{name:`MuiDateTimePickerToolbar`,slot:`TimeContainer`,overridesResolver:(e,t)=>t.timeContainer})({display:`flex`,flexDirection:`row`,variants:[{props:{isRtl:!0},style:{flexDirection:`row-reverse`}},{props:{toolbarVariant:`desktop`,isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:`flex-end`}},{props:({isLandscape:e,toolbarVariant:t})=>e&&t!==`desktop`,style:{flexDirection:`column`}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&t!==`desktop`&&n,style:{flexDirection:`column-reverse`}}]}),rW=ft(`div`,{name:`MuiDateTimePickerToolbar`,slot:`TimeDigitsContainer`,overridesResolver:(e,t)=>t.timeDigitsContainer})({display:`flex`,variants:[{props:{isRtl:!0},style:{flexDirection:`row-reverse`}},{props:{toolbarVariant:`desktop`},style:{gap:1.5}}]}),iW=ft(bU,{name:`MuiDateTimePickerToolbar`,slot:`Separator`,overridesResolver:(e,t)=>t.separator})({margin:`0 4px 0 2px`,cursor:`default`,variants:[{props:{toolbarVariant:`desktop`},style:{margin:0}}]}),aW=ft(`div`,{name:`MuiDateTimePickerToolbar`,slot:`AmPmSelection`,overridesResolver:(e,t)=>[{[`.${ZU.ampmLabel}`]:t.ampmLabel},{[`&.${ZU.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:`flex`,flexDirection:`column`,marginRight:`auto`,marginLeft:12,[`& .${ZU.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:`4px 0 auto`,flexDirection:`row`,justifyContent:`space-around`,width:`100%`}}]});function oW(e){let t=fr({props:e,name:`MuiDateTimePickerToolbar`}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:s,isLandscape:c,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:d=`––`,views:f,disabled:p,readOnly:m,toolbarVariant:h=`mobile`,toolbarTitle:g,className:_}=t,v=xt(t,QU),y=o({},t,{isRtl:Jn()}),b=on(),{meridiemMode:x,handleMeridiemChange:S}=Mt(i,n,a),C=!!(n&&!r),w=h===`desktop`,T=jn(),E=$U(y),D=g??T.dateTimePickerToolbarTitle,O=e=>n?b.format(e,`hours12h`):b.format(e,`hours24h`),k=J.useMemo(()=>i?u?b.formatByString(i,u):b.format(i,`shortDate`):d,[i,u,d,b]);return(0,X.jsxs)(eW,o({isLandscape:c,className:ht(E.root,_),toolbarTitle:D},v,{ownerState:y,children:[(0,X.jsxs)(tW,{className:E.dateContainer,ownerState:y,children:[f.includes(`year`)&&(0,X.jsx)(wU,{tabIndex:-1,variant:`subtitle1`,onClick:()=>l(`year`),selected:s===`year`,value:i?b.format(i,`year`):`–`}),f.includes(`day`)&&(0,X.jsx)(wU,{tabIndex:-1,variant:w?`h5`:`h4`,onClick:()=>l(`day`),selected:s===`day`,value:k})]}),(0,X.jsxs)(nW,{className:E.timeContainer,ownerState:y,children:[(0,X.jsxs)(rW,{className:E.timeDigitsContainer,ownerState:y,children:[f.includes(`hours`)&&(0,X.jsxs)(J.Fragment,{children:[(0,X.jsx)(wU,{variant:w?`h5`:`h3`,width:w&&!c?48:void 0,onClick:()=>l(`hours`),selected:s===`hours`,value:i?O(i):`--`}),(0,X.jsx)(iW,{variant:w?`h5`:`h3`,value:`:`,className:E.separator,ownerState:y}),(0,X.jsx)(wU,{variant:w?`h5`:`h3`,width:w&&!c?48:void 0,onClick:()=>l(`minutes`),selected:s===`minutes`||!f.includes(`minutes`)&&s===`hours`,value:i?b.format(i,`minutes`):`--`,disabled:!f.includes(`minutes`)})]}),f.includes(`seconds`)&&(0,X.jsxs)(J.Fragment,{children:[(0,X.jsx)(iW,{variant:w?`h5`:`h3`,value:`:`,className:E.separator,ownerState:y}),(0,X.jsx)(wU,{variant:w?`h5`:`h3`,width:w&&!c?48:void 0,onClick:()=>l(`seconds`),selected:s===`seconds`,value:i?b.format(i,`seconds`):`--`})]})]}),C&&!w&&(0,X.jsxs)(aW,{className:E.ampmSelection,ownerState:y,children:[(0,X.jsx)(wU,{variant:`subt
2743itle2`,selected:x===`am`,typographyClassName:E.ampmLabel,value:Ut(b,`am`),onClick:m?void 0:()=>S(`am`),disabled:p}),(0,X.jsx)(wU,{variant:`subtitle2`,selected:x===`pm`,typographyClassName:E.ampmLabel,value:Ut(b,`pm`),onClick:m?void 0:()=>S(`pm`),disabled:p})]}),n&&w&&(0,X.jsx)(wU,{variant:`h5`,onClick:()=>l(`meridiem`),selected:s===`meridiem`,value:i&&x?Ut(b,x):`--`,width:48})]})]}))}function sW(e,t){let n=on(),r=xn(),i=fr({props:e,name:t}),a=i.ampm??n.is12HourCycleInCurrentLocale(),s=J.useMemo(()=>i.localeText?.toolbarTitle==null?i.localeText:o({},i.localeText,{dateTimePickerToolbarTitle:i.localeText.toolbarTitle}),[i.localeText]);return o({},i,tn({views:i.views,openTo:i.openTo,defaultViews:[`year`,`day`,`hours`,`minutes`],defaultOpenTo:`day`}),{ampm:a,localeText:s,orientation:i.orientation??`portrait`,disableIgnoringDatePartForTimeValidation:i.disableIgnoringDatePartForTimeValidation??!!(i.minDateTime||i.maxDateTime||i.disablePast||i.disableFuture),disableFuture:i.disableFuture??!1,disablePast:i.disablePast??!1,minDate:jt(n,i.minDateTime??i.minDate,r.minDate),maxDate:jt(n,i.maxDateTime??i.maxDate,r.maxDate),minTime:i.minDateTime??i.minTime,maxTime:i.maxDateTime??i.maxTime,slots:o({toolbar:oW,tabs:YU},i.slots),slotProps:o({},i.slotProps,{toolbar:o({ampm:a},i.slotProps?.toolbar)})})}var cW=J.forwardRef(function(e,t){let n=Jn(),{toolbar:r,tabs:i,content:a,actionBar:s,shortcuts:c}=Sn(e),{sx:l,className:u,isLandscape:d,classes:f}=e,p=s&&(s.props.actions?.length??0)>0,m=o({},e,{isRtl:n});return(0,X.jsxs)(an,{ref:t,className:ht(On.root,f?.root,u),sx:[{[`& .${On.tabs}`]:{gridRow:4,gridColumn:`1 / 4`},[`& .${On.actionBar}`]:{gridRow:5}},...Array.isArray(l)?l:[l]],ownerState:m,children:[d?c:r,d?r:c,(0,X.jsxs)(hn,{className:ht(On.contentWrapper,f?.contentWrapper),sx:{display:`grid`},children:[a,i,p&&(0,X.jsx)(Lr,{sx:{gridRow:3,gridColumn:`1 / 4`}})]}),s]})}),lW=[`openTo`,`focusedView`,`timeViewsCount`],uW=function(e,t,n){let{openTo:r,focusedView:i,timeViewsCount:a}=n,s=o({},xt(n,lW),{focusedView:null,sx:[{[`&.${XB.root}`]:{borderBottom:0},[`&.${XB.root}, .${QB.root}, &.${HB.root}`]:{maxHeight:336}}]}),c=Vt(t);return(0,X.jsxs)(J.Fragment,{children:[e[c?`day`:t]?.(o({},n,{view:c?`day`:t,focusedView:i&&zt(i)?i:null,views:n.views.filter(zt),sx:[{gridColumn:1},...s.sx]})),a>0&&(0,X.jsxs)(J.Fragment,{children:[(0,X.jsx)(Lr,{orientation:`vertical`,sx:{gridColumn:2}}),e[c?t:`hours`]?.(o({},s,{view:c?t:`hours`,focusedView:i&&Vt(i)?i:null,openTo:Vt(r)?r:`hours`,views:n.views.filter(Vt),sx:[{gridColumn:3},...s.sx]}))]})]})},dW=J.forwardRef(function(e,t){let n=jn(),r=on(),i=sW(e,`MuiDesktopDateTimePicker`),{shouldRenderTimeInASingleColumn:a,thresholdToRenderTimeInASingleColumn:s,views:c,timeSteps:l}=HU(i),u=a?IU:LU,d=o({day:mU,month:mU,year:mU,hours:u,minutes:u,seconds:u,meridiem:u},i.viewRenderers),f=i.ampmInClock??!0,p=d.hours?.name===LU.name?c:c.filter(e=>e!==`meridiem`),m=a?[]:[`accept`],h=o({},i,{viewRenderers:d,format:zU(r,i),views:p,yearsPerRow:i.yearsPerRow??4,ampmInClock:f,timeSteps:l,thresholdToRenderTimeInASingleColumn:s,shouldRenderTimeInASingleColumn:a,slots:o({field:kV,layout:cW,openPickerIcon:qt},i.slots),slotProps:o({},i.slotProps,{field:e=>o({},cr(i.slotProps?.field,e),Fn(i),{ref:t}),toolbar:o({hidden:!0,ampmInClock:f,toolbarVariant:`desktop`},i.slotProps?.toolbar),tabs:o({hidden:!0},i.slotProps?.tabs),actionBar:e=>o({actions:m},cr(i.slotProps?.actionBar,e))})}),{renderPicker:g}=pU({props:h,valueManager:Pt,valueType:`date-time`,getOpenDialogAriaText:Cn({utils:r,formatKey:`fullDate`,contextTranslation:n.openDatePickerDialogue,propsTranslation:h.localeText?.openDatePickerDialogue}),validator:CV,rendererInterceptor:uW});return g()});dW.propTypes={ampm:Z.default.bool,ampmInClock:Z.default.bool,autoFocus:Z.default.bool,className:Z.default.string,closeOnSelect:Z.default.bool,dayOfWeekFormatter:Z.default.func,defaultValue:Z.default.object,disabled:Z.default.bool,disableFuture:Z.default.bool,disableHighlightToday:Z.default.bool,disableIgnoringDatePartForTimeValidation:Z.default.bool,disableOpenPicker:Z.default.bool,disablePast:Z.default.bool,displayWeekNumber:Z.default.bool,enableAccessibleFieldDOMStructure:Z.default.any,fixedWeekNumber:Z.default.number,format:Z.default.string,formatDensity:Z.default.oneOf([`dense`,`spacious`]),inputRef:ln,label:Z.default.node,loading:Z.default.bool,localeText:Z.default.object,maxDate:Z.default.object,maxDateTime:Z.default.object,maxTime:Z.default.object,minDate:Z.default.object,minDateTime:Z.default.object,minTime:Z.default.object,minutesStep:Z.default.number,monthsPerRow:Z.default.oneOf([3,4]),name:Z.default.string,onAccept:Z.default.func,onChange:Z.default.func,onClose:Z.default.func,onError:Z.default.func,onMonthChange:Z.default.func,onOpen:Z.default.func,onSelectedSectionsChange:Z.default.func,onViewChange:Z.default.func,onYearChange:Z.default.func,open:Z.default.bool,openTo:Z.default.oneOf([`day`,`hours`,`meridiem`,`minutes`,`month`,`seconds`,`year`]),orientation:Z.default.oneOf([`landscape`,`portrait`]),readOnly:Z.default.bool,reduceAnimations:Z.default.bool,referenceDate:Z.default.object,renderLoading:Z.default.func,selectedSections:Z.default.oneOfType([Z.default.oneOf([`all`,`day`,`empty`,`hours`,`meridiem`,`minutes`,`month`,`seconds`,`weekDay`,`year`]),Z.default.number]),shouldDisableDate:Z.default.func,shouldDisableMonth:Z.default.func,shouldDisableTime:Z.default.func,shouldDisableYear:Z.default.func,showDaysOutsideCurrentMonth:Z.default.bool,ski
2743pDisabled:Z.default.bool,slotProps:Z.default.object,slots:Z.default.object,sx:Z.default.oneOfType([Z.default.arrayOf(Z.default.oneOfType([Z.default.func,Z.default.object,Z.default.bool])),Z.default.func,Z.default.object]),thresholdToRenderTimeInASingleColumn:Z.default.number,timeSteps:Z.default.shape({hours:Z.default.number,minutes:Z.default.number,seconds:Z.default.number}),timezone:Z.default.string,value:Z.default.object,view:Z.default.oneOf([`day`,`hours`,`meridiem`,`minutes`,`month`,`seconds`,`year`]),viewRenderers:Z.default.shape({day:Z.default.func,hours:Z.default.func,meridiem:Z.default.func,minutes:Z.default.func,month:Z.default.func,seconds:Z.default.func,year:Z.default.func}),views:Z.default.arrayOf(Z.default.oneOf([`day`,`hours`,`minutes`,`month`,`seconds`,`year`]).isRequired),yearsOrder:Z.default.oneOf([`asc`,`desc`]),yearsPerRow:Z.default.oneOf([3,4])};var fW=J.forwardRef(function(e,t){let n=jn(),r=on(),i=sW(e,`MuiMobileDateTimePicker`),a=o({day:mU,month:mU,year:mU,hours:FU,minutes:FU,seconds:FU},i.viewRenderers),s=i.ampmInClock??!1,c=o({},i,{viewRenderers:a,format:zU(r,i),ampmInClock:s,slots:o({field:kV},i.slots),slotProps:o({},i.slotProps,{field:e=>o({},cr(i.slotProps?.field,e),Fn(i),{ref:t}),toolbar:o({hidden:!1,ampmInClock:s},i.slotProps?.toolbar),tabs:o({hidden:!1},i.slotProps?.tabs)})}),{renderPicker:l}=bn({props:c,valueManager:Pt,valueType:`date-time`,getOpenDialogAriaText:Cn({utils:r,formatKey:`fullDate`,contextTranslation:n.openDatePickerDialogue,propsTranslation:c.localeText?.openDatePickerDialogue}),validator:CV});return l()});fW.propTypes={ampm:Z.default.bool,ampmInClock:Z.default.bool,autoFocus:Z.default.bool,className:Z.default.string,closeOnSelect:Z.default.bool,dayOfWeekFormatter:Z.default.func,defaultValue:Z.default.object,disabled:Z.default.bool,disableFuture:Z.default.bool,disableHighlightToday:Z.default.bool,disableIgnoringDatePartForTimeValidation:Z.default.bool,disableOpenPicker:Z.default.bool,disablePast:Z.default.bool,displayWeekNumber:Z.default.bool,enableAccessibleFieldDOMStructure:Z.default.any,fixedWeekNumber:Z.default.number,format:Z.default.string,formatDensity:Z.default.oneOf([`dense`,`spacious`]),inputRef:ln,label:Z.default.node,loading:Z.default.bool,localeText:Z.default.object,maxDate:Z.default.object,maxDateTime:Z.default.object,maxTime:Z.default.object,minDate:Z.default.object,minDateTime:Z.default.object,minTime:Z.default.object,minutesStep:Z.default.number,monthsPerRow:Z.default.oneOf([3,4]),name:Z.default.string,onAccept:Z.default.func,onChange:Z.default.func,onClose:Z.default.func,onError:Z.default.func,onMonthChange:Z.default.func,onOpen:Z.default.func,onSelectedSectionsChange:Z.default.func,onViewChange:Z.default.func,onYearChange:Z.default.func,open:Z.default.bool,openTo:Z.default.oneOf([`day`,`hours`,`minutes`,`month`,`seconds`,`year`]),orientation:Z.default.oneOf([`landscape`,`portrait`]),readOnly:Z.default.bool,reduceAnimations:Z.default.bool,referenceDate:Z.default.object,renderLoading:Z.default.func,selectedSections:Z.default.oneOfType([Z.default.oneOf([`all`,`day`,`empty`,`hours`,`meridiem`,`minutes`,`month`,`seconds`,`weekDay`,`year`]),Z.default.number]),shouldDisableDate:Z.default.func,shouldDisableMonth:Z.default.func,shouldDisableTime:Z.default.func,shouldDisableYear:Z.default.func,showDaysOutsideCurrentMonth:Z.default.bool,slotProps:Z.default.object,slots:Z.default.object,sx:Z.default.oneOfType([Z.default.arrayOf(Z.default.oneOfType([Z.default.func,Z.default.object,Z.default.bool])),Z.default.func,Z.default.object]),timezone:Z.default.string,value:Z.default.object,view:Z.default.oneOf([`day`,`hours`,`minutes`,`month`,`seconds`,`year`]),viewRenderers:Z.default.shape({day:Z.default.func,hours:Z.default.func,minutes:Z.default.func,month:Z.default.func,seconds:Z.default.func,year:Z.default.func}),views:Z.default.arrayOf(Z.default.oneOf([`day`,`hours`,`minutes`,`month`,`seconds`,`year`]).isRequired),yearsOrder:Z.default.oneOf([`asc`,`desc`]),yearsPerRow:Z.default.oneOf([3,4])};var pW=[`desktopModeMediaQuery`],mW=J.forwardRef(function(e,t){let n=fr({props:e,name:`MuiDateTimePicker`}),{desktopModeMediaQuery:r=Yt}=n,i=xt(n,pW);return Dt(r,{defaultMatches:!0})?(0,X.jsx)(dW,o({ref:t}
2743,i)):(0,X.jsx)(fW,o({ref:t},i))}),hW=365.2425,gW=6048e5,_W=864e5,vW=6e4,yW=36e5,bW=1e3,xW=3600*24;xW*7,xW*hW/12*3;var SW=Symbol.for(`constructDateFrom`),CW=1948320,wW=[0,31,62,93,124,155,186,216,246,276,306,336];function TW(e,t,n){return kW(AW(e,t,n))}function EW(e,t,n){return jW(OW(e,t,n))}function DW(e){if(e===-3)return!1;let t=PW(25*e+11,33);return t<8&&t>=-1||t<=-27}function OW(e,t,n){let[r,i]=MW(e,t);e=r,t=i;let a=t-1,o=e,s=n,c=CW-1+365*(o-1)+NW(8*o+21,33);return a!=0&&(c+=wW[a]),c+s}function kW(e){if(isNaN(e))return{jy:NaN,jm:NaN,jd:NaN};let t,n,r=e-CW,i=1+NW(33*r+3,12053);n=r-(365*(i-1)+NW(8*i+21,33)),n<0&&(i--,n=r-(365*(i-1)+NW(8*i+21,33))),t=n<216?NW(n,31):NW(n-6,30);let a=n-wW[t]+1;return n++,{jy:i,jm:t+1,jd:a}}function AW(e,t,n){let[r,i]=MW(e,t);return e=r,t=i,NW(1461*(e+4800+NW(t-14,12)),4)+NW(367*(t-2-12*NW(t-14,12)),12)-NW(3*NW(e+4900+NW(t-14,12),100),4)+n-32075}function jW(e){if(isNaN(e))return{gy:NaN,gm:NaN,gd:NaN};let t=e+68569,n=NW(4*t,146097);t-=NW(146097*n+3,4);let r=NW(4e3*(t+1),1461001);t=t-NW(1461*r,4)+31;let i=NW(80*t,2447),a=t-NW(2447*i,80);t=NW(i,11);let o=i+2-12*t;return{gy:100*(n-49)+r+t,gm:o,gd:a}}function MW(e,t){if(--t,t<0){let n=t;t=FW(t,12),e-=NW(t-n,12)}return t>11&&(e+=NW(t,12),t=PW(t,12)),[e,t+1]}function NW(e,t){return~~(e/t)}function PW(e,t){return e-~~(e/t)*t}function FW(e,t){return PW(PW(e,t)+t,t)}function IW(...e){if(e.length>1){let[t,n,r=1,...i]=e,a=EW(t,n+1,r);return new Date(a.gy,a.gm-1,a.gd,...i)}return new Date(...e)}function LW(e,t){return typeof e==`function`?e(t):typeof e==`object`&&SW in e?e[SW](t):e instanceof Date?new e.constructor(t):IW(t)}function RW(e,t){if(t)return t(e);let n=Object.prototype.toString.call(e);return typeof e==`object`&&SW in e?e[SW](e):e instanceof Date||typeof e==`object`&&n===`[object Date]`?new e.constructor(+e):IW(typeof e==`number`||n===`[object Number]`||typeof e==`string`||n===`[object String]`?e:NaN)}function zW(e,t,n){return LW(n?.in||e,+RW(e)+t)}function BW(e,t,n){return zW(e,t*1e3,n)}function VW(e,t,n){let r=RW(e,n?.in);return r.setTime(r.getTime()+t*vW),r}function HW(e,t,n){return zW(e,t*yW,n)}function UW(e){let t=e.getDate(),n=e.getMonth()+1;return TW(e.getFullYear(),n,t).jd}function WW(e,...t){let n=e.getDate(),r=e.getMonth()+1,i=TW(e.getFullYear(),r,n),[a]=t,o=EW(i.jy,i.jm,a);return e.setFullYear(o.gy,o.gm-1,o.gd)}function GW(e,t,n){let r=RW(e,n?.in);return isNaN(t)?LW(n?.in||e,NaN):(t&&WW(r,UW(r)+t),r)}function KW(e,t,n){return GW(e,t*7,n)}function qW(e){let t=e.getDate(),n=e.getMonth()+1;return TW(e.getFullYear(),n,t).jm-1}function JW(e,...t){let n=e.getDate(),r=e.getMonth()+1,i=TW(e.getFullYear(),r,n),[a,o=i.jd]=t,s=EW(i.jy,a+1,o);return e.setFullYear(s.gy,s.gm-1,s.gd)}function YW(e){let t=e.getDate(),n=e.getMonth()+1;return TW(e.getFullYear(),n,t).jy}function XW(e,...t){let n=e.getDate(),r=e.getMonth()+1,i=TW(e.getFullYear(),r,n),[a,o=i.jm-1,s=i.jd]=t,c=EW(a,o+1,s);return e.setFullYear(c.gy,c.gm-1,c.gd)}function ZW(e,t,n){let r=RW(e,n?.in);if(isNaN(t))return LW(n?.in||e,NaN);if(!t)return r;let i=UW(r),a=LW(n?.in||e,r.getTime());return JW(a,qW(r)+t+1,0),i>=UW(a)?a:(XW(r,YW(a),qW(a),i),r)}function QW(e,t,n){return ZW(e,t*12,n)}function $W(e,t){let n=RW(e,t?.in);return n.setHours(23,59,59,999),n}var eG={};function tG(){return eG}function nG(e,t){let n=tG(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??6,i=RW(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return WW(i,UW(i)+o),i.setHours(23,59,59,999),i}function rG(e,t){let n=RW(e,t?.in);return XW(n,YW(n)+1,0,0),n.setHours(23,59,59,999),n}var iG={lessThanXSeconds:{one:`کمتر از یک ثانیه`,other:`کمتر از {{count}} ثانیه`},xSeconds:{one:`1 ثانیه`,other:`{{count}} ثانیه`},halfAMinute:`نیم دقیقه`,lessThanXMinutes:{one:`کمتر از یک دقیقه`,other:`کمتر از {{count}} دقیقه`},xMinutes:{one:`1 دقیقه`,other:`{{count}} دقیقه`},aboutXHours:{one:`حدود 1 ساعت`,other:`حدود {{count}} ساعت`},xHours:{one:`1 ساعت`,other:`{{count}} ساعت`},xDays:{one:`1 روز`,other:`{{count}} روز`},aboutXWeeks:{one:`حدود 1 هفته`,other:`حدود {{count}} هفته`},xWeeks:{one:`1 هفته`,other:`{{count}} هفته`},aboutXMonths:{one:`حدود 1 ماه`,other:`حدود {{count}} ماه`},xMonths:{one:`1 ماه`,other:`{{count}} ماه`},aboutXYears:{one:`حدود 1 سال`,other:`حدود {{count}} سال`},xYears:{one:`1 سال`,other:`{{count}} سال`},overXYears:{one:`بیشتر از 1 سال`,other:`بیشتر از {{count}} سال`},almostXYears:{one:`نزدیک 1 سال`,other:`نزدیک {{count}} سال`}}
vendor: 6,788 bytes, line 2743
2743,aG=(e,t,n)=>{let r,i=iG[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`در `+r:r+` قبل`:r};function oG(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var sG={date:oG({formats:{full:`EEEE do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`yyyy/MM/dd`},defaultWidth:`full`}),time:oG({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:oG({formats:{full:`{{date}} 'در' {{time}}`,long:`{{date}} 'در' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},cG={lastWeek:`eeee 'گذشته در' p`,yesterday:`'دیروز در' p`,today:`'امروز در' p`,tomorrow:`'فردا در' p`,nextWeek:`eeee 'در' p`,other:`P`},lG=(e,t,n,r)=>cG[e];function uG(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var dG={ordinalNumber:(e,t)=>Number(e)+`-ام`,era:uG({values:{narrow:[`ق`,`ب`],abbreviated:[`ق.ه.`,`ب.ه.`],wide:[`قبل از هجرت`,`بعد از هجرت`]},defaultWidth:`wide`}),quarter:uG({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`س‌م1`,`س‌م2`,`س‌م3`,`س‌م4`],wide:[`سه‌ماهه 1`,`سه‌ماهه 2`,`سه‌ماهه 3`,`سه‌ماهه 4`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:uG({values:{narrow:[`فر`,`ار`,`خر`,`تی`,`مر`,`شه`,`مه`,`آب`,`آذ`,`دی`,`به`,`اس`],abbreviated:[`فرو`,`ارد`,`خرد`,`تیر`,`مرد`,`شهر`,`مهر`,`آبا`,`آذر`,`دی`,`بهم`,`اسف`],wide:[`فروردین`,`اردیبهشت`,`خرداد`,`تیر`,`مرداد`,`شهریور`,`مهر`,`آبان`,`آذر`,`دی`,`بهمن`,`اسفند`]},defaultWidth:`wide`}),day:uG({values:{narrow:[`ی`,`د`,`س`,`چ`,`پ`,`ج`,`ش`],short:[`1ش`,`2ش`,`3ش`,`4ش`,`5ش`,`ج`,`ش`],abbreviated:[`یک‌شنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنج‌شنبه`,`جمعه`,`شنبه`],wide:[`یک‌شنبه`,`دوشنبه`,`سه‌شنبه`,`چهارشنبه`,`پنج‌شنبه`,`جمعه`,`شنبه`]},defaultWidth:`wide`}),dayPeriod:uG({values:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ق`,pm:`ب`,midnight:`ن`,noon:`ظ`,morning:`ص`,afternoon:`ب.ظ.`,evening:`ع`,night:`ش`},abbreviated:{am:`ق.ظ.`,pm:`ب.ظ.`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`},wide:{am:`قبل‌ازظهر`,pm:`بعدازظهر`,midnight:`نیمه‌شب`,noon:`ظهر`,morning:`صبح`,afternoon:`بعدازظهر`,evening:`عصر`,night:`شب`}},defaultFormattingWidth:`wide`})};function fG(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?mG(s,e=>e.test(o)):pG(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function pG(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function mG(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function hG(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var gG={code:`fa-IR`,formatDistance:aG,formatLong:sG,formatRelative:lG,localize:dG,match:{ordinalNumber:hG({matchPattern:/^(\d+)(-?ام)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:fG({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?ه\.?|ب\.?\s?ه\.?|ه\.?)/i,wide:/^(قبل از هجرت|هجری شمسی|بعد از هجرت)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:fG({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^(ف|Q|س‌م)[1234]/i,wide:/^(فصل|quarter|سه‌ماهه) [1234](-ام|ام)?/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:fG({matchPatterns:{narrow:/^(فر|ار|خر|تی|مر|شه|مه|آب|آذ|دی|به|اس)/i,abbreviated:/^(فرو|ارد|خرد|تیر|مرد|شهر|مهر|آبا|آذر|دی|بهم|اسف)/i,wide:/^(فروردین|اردیبهشت|خرداد|تیر|مرداد|شهریور|مهر|آبان|آذر|دی|بهمن|اسفند)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^فر/i,/^ار/i,/^خر/i,/^تی/i,/^مر/i,/^شه/i,/^مه/i,/^آب/i,/^آذ/i,/^دی/i,/^به/i,/^اس/i],any:[/^فر/i,/^ار/i,/^خر/i,/^تی/i,/^مر/i,/^شه/i,/^مه/i,/^آب/i,/^آذ/i,/^دی/i,/^به/i,/^اس/i]},defaultParseWidth:`any`}),day:fG({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:`any`}),dayPeriod:fG({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,any:/^(ق.ظ.|ب.ظ.|قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/^(ص|صبح)/i,afternoon:/^(ب|ب.ظ.|بعدازظهر)/i,evening:/^(ع|عصر)/i,night:/^(ش|شب)/i}},defaultParseWidth:`any`})},options:{weekStartsOn:6,firstWeekContainsDate:1}};
2743function _G(e){let t=RW(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function vG(e,...t){let n=e||LW.bind(null,t.find(e=>typeof e==`object`));return t.map(n)}function yG(e,t){let n=RW(e,t?.in);return n.setHours(0,0,0,0),n}function bG(e,t,n){let[r,i]=vG(n?.in,e,t),a=yG(r),o=yG(i),s=+a-_G(a),c=+o-_G(o);return Math.round((s-c)/_W)}function xG(e,t){let n=RW(e,t?.in);return XW(n,YW(n),0,1),n.setHours(0,0,0,0),n}function SG(e,t){let n=RW(e,t?.in);return bG(n,xG(n))+1}function CG(e,t){let n=tG(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??6,i=RW(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return WW(i,UW(i)-o),i.setHours(0,0,0,0),i}function wG(e,t){return CG(e,{...t,weekStartsOn:1})}function TG(e,t){let n=RW(e,t?.in),r=n.getFullYear(),i=LW(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=wG(i),o=LW(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=wG(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function EG(e,t){let n=TG(e,t),r=LW(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),wG(r)}function DG(e,t){let n=RW(e,t?.in),r=wG(n)-+EG(n);return Math.round(r/gW)+1}function OG(e,t){let n=RW(e,t?.in),r=YW(n),i=tG(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=LW(t?.in||e,0);XW(o,r+1,0,a),o.setHours(0,0,0,0);let s=CG(o,t),c=LW(t?.in||e,0);XW(c,r,0,a),c.setHours(0,0,0,0);let l=CG(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function kG(e,t){let n=tG(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=OG(e,t),a=LW(t?.in||e,0);return XW(a,i,0,r),a.setHours(0,0,0,0),CG(a,t)}function AG(e,t){let n=RW(e,t?.in),r=CG(n,t)-+kG(n,t);return Math.round(r/gW)+1}function jG(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var MG={y(e,t){let n=YW(e),r=n>0?n:1-n;return jG(t===`yy`?r%100:r,t.length)},M(e,t){let n=qW(e);return t===`M`?String(n+1):jG(n+1,2)},d(e,t){return jG(UW(e),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return jG(e.getHours()%12||12,t.length)},H(e,t){return jG(e.getHours(),t.length)},m(e,t){return jG(e.getMinutes(),t.length)},s(e,t){return jG(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return jG(Math.trunc(r*10**(n-3)),t.length)}},NG={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},PG={G:function(e,t,n){let r=+(YW(e)>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=YW(e),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return MG.y(e,t)},Y:function(e,t,n,r){let i=OG(e,r),a=i>0?i:1-i;return t===`YY`?jG(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):jG(a,t.length)},R:function(e,t){return jG(TG(e),t.length)},u:function(e,t){return jG(YW(e),t.length)},Q:function(e,t,n){let r=Math.ceil((qW(e)+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return jG(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((qW(e)+1)/3);switch(t){case`q`:return String(r);case`qq`:return jG(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=qW(e);switch(t){case`M`:case`MM`:return MG.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=qW(e);switch(t){case`L`:return String(r+1);case`LL`:return jG(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=AG(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):jG(i,t.length)},I:function(e,t,n){let r=DG(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):jG(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(UW(e),{unit:`date`}):MG.d(e,t)},D:function(e,t,n){let r=SG(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):jG(r,t.length)},E:function(e,t,n){let r=e.getDay();
vendor: 4,382 bytes, line 2743
2743switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return jG(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return jG(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return jG(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?NG.noon:r===0?NG.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?NG.evening:r>=12?NG.afternoon:r>=4?NG.morning:NG.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return MG.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):MG.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):jG(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):jG(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):MG.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):MG.s(e,t)},S:function(e,t){return MG.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return IG(r);case`XXXX`:case`XX`:return LG(r);default:return LG(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return IG(r);case`xxxx`:case`xx`:return LG(r);default:return LG(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+FG(r,`:`);default:return`GMT`+LG(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+FG(r,`:`);default:return`GMT`+LG(r,`:`)}},t:function(e,t,n){return jG(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return jG(e.getTime(),t.length)}};function FG(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+jG(a,2)}function IG(e,t){return e%60==0?(e>0?`-`:`+`)+jG(Math.abs(e)/60,2):LG(e,t)}function LG(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=jG(Math.trunc(r/60),2),a=jG(r%60,2);return n+i+t+a}var RG=(e,t)=>
2743{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},zG=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},BG={p:zG,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return RG(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,RG(r,t)).replace(`{{time}}`,zG(i,t))}},VG=/^D+$/,HG=/^Y+$/,UG=[`D`,`DD`,`YY`,`YYYY`];function WG(e){return VG.test(e)}function GG(e){return HG.test(e)}function KG(e,t,n){let r=qG(e,t,n);if(console.warn(r),UG.includes(e))throw RangeError(r)}function qG(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function JG(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function YG(e){return!(!JG(e)&&typeof e!=`number`||isNaN(+RW(e)))}var XG=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZG=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,QG=/^'([^]*?)'?$/,$G=/''/g,eK=/[a-zA-Z]/;function tK(e,t,n){let r=tG(),i=n?.locale??r.locale??gG,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??6,s=RW(e);if(!YG(s))throw RangeError(`Invalid time value`);let c=t.match(ZG).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=BG[t];return n(e,i.formatLong)}return e}).join(``).match(XG).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:nK(e)};if(PG[t])return{isToken:!0,value:e};if(t.match(eK))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&GG(a)||!n?.useAdditionalDayOfYearTokens&&WG(a))&&KG(a,t,String(e));let o=PG[a[0]];return o(s,a,i.localize,l)}).join(``)}function nK(e){let t=e.match(QG);return t?t[1].replace($G,`'`):e}function rK(e,t){return RW(e,t?.in).getHours()}function iK(e){return RW(e).getSeconds()}function aK(e){return RW(e).getMilliseconds()}function oK(e,t){return YW(RW(e,t?.in))}function sK(e,t){return qW(RW(e,t?.in))}function cK(e,t){return UW(RW(e,t?.in))}function lK(e,t){let n=RW(e,t?.in),r=YW(n),i=qW(n),a=LW(n,0);return XW(a,r,i+1,0),a.setHours(0,0,0,0),UW(a)}function uK(e,t){return RW(e,t?.in).getMinutes()}function dK(e,t){return+RW(e)>+RW(t)}function fK(e,t){return+RW(e)<+RW(t)}function pK(e,t){return+RW(e)==+RW(t)}function mK(e,t,n){let[r,i]=vG(n?.in,e,t);return+yG(r)==+yG(i)}function hK(e,t,n){let[r,i]=vG(n?.in,e,t);return YW(r)===YW(i)}function gK(e,t,n){let[r,i]=vG(n?.in,e,t);return YW(r)===YW(i)&&qW(r)===qW(i)}function _K(e,t){let n=RW(e,t?.in);return n.setMinutes(0,0,0),n}function vK(e,t,n){let[r,i]=vG(n?.in,e,t);return+_K(r)==+_K(i)}function yK(){return Object.assign({},tG())}function bK(e,t){let n=xK(t)?new t(0):LW(t,0);return XW(n,YW(e),qW(e),UW(e)),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function xK(e){return typeof e==`function`&&e.prototype?.constructor===e}var SK=10,CK=class{subPriority=0;validate(e,t){return!0}},wK=class extends CK{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},TK=class extends CK{priority=SK;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>LW(t,e))}set(e,t){return t.timestampIsSet?e:LW(e,bK(e,this.context))}},EK=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new wK(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}
2743,DK=class extends EK{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,XW(e,n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},OK={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},kK={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function AK(e){return DW(e)}function jK(e,t){return AK(YW(RW(e,t?.in)))}function MK(e,t){return e&&{value:t(e.value),rest:e.rest}}function NK(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function PK(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*yW+a*vW+o*bW),rest:t.slice(n[0].length)}}function FK(e){return NK(OK.anyDigitsSigned,e)}function IK(e,t){switch(e){case 1:return NK(OK.singleDigit,t);case 2:return NK(OK.twoDigits,t);case 3:return NK(OK.threeDigits,t);case 4:return NK(OK.fourDigits,t);default:return NK(RegExp(`^\\d{1,`+e+`}`),t)}}function LK(e,t){switch(e){case 1:return NK(OK.singleDigitSigned,t);case 2:return NK(OK.twoDigitsSigned,t);case 3:return NK(OK.threeDigitsSigned,t);case 4:return NK(OK.fourDigitsSigned,t);default:return NK(RegExp(`^-?\\d{1,`+e+`}`),t)}}function RK(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function zK(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function BK(e){return jK(IW(e,0))}var VK=class extends EK{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return MK(IK(4,e),r);case`yo`:return MK(n.ordinalNumber(e,{unit:`year`}),r);default:return MK(IK(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=YW(e);return n.isTwoDigitYear?(XW(e,zK(n.year,r),0,1),e.setHours(0,0,0,0),e):(XW(e,!(`era`in t)||t.era===1?n.year:1-n.year,0,1),e.setHours(0,0,0,0),e)}},HK=class extends EK{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return MK(IK(4,e),r);case`Yo`:return MK(n.ordinalNumber(e,{unit:`year`}),r);default:return MK(IK(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=OG(e,r);return n.isTwoDigitYear?(XW(e,zK(n.year,i),0,r.firstWeekContainsDate),e.setHours(0,0,0,0),CG(e,r)):(XW(e,!(`era`in t)||t.era===1?n.year:1-n.year,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),CG(e,r))}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},UK=class extends EK{priority=130;parse(e,t){return LK(t===`R`?4:t.length,e)}set(e,t,n){let r=LW(e,0);return XW(r,n,0,4),r.setHours(0,0,0,0),wG(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},WK=class extends EK{priority=130;parse(e,t){return LK(t===`u`?4:t.length,e)}set(e,t,n){return XW(e,n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},GK=class extends EK{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return IK(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return JW(e,(n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]}
vendor: 2,094 bytes, line 2743
2743,KK=class extends EK{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return IK(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return JW(e,(n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},qK=class extends EK{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return MK(NK(OK.month,e),r);case`MM`:return MK(IK(2,e),r);case`Mo`:return MK(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return JW(e,n,1),e.setHours(0,0,0,0),e}},JK=class extends EK{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return MK(NK(OK.month,e),r);case`LL`:return MK(IK(2,e),r);case`Lo`:return MK(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return JW(e,n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};
vendor: 8,729 bytes, line 2743
2743function YK(e,t,n){let r=RW(e,n?.in),i=AG(r,n)-t;return WW(r,UW(r)-i*7),RW(r,n?.in)}var XK=class extends EK{priority=100;parse(e,t,n){switch(t){case`w`:return NK(OK.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return IK(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return CG(YK(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function ZK(e,t,n){let r=RW(e,n?.in),i=DG(r,n)-t;return r.setDate(r.getDate()-i*7),r}var QK=class extends EK{priority=100;parse(e,t,n){switch(t){case`I`:return NK(OK.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return IK(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return wG(ZK(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},$K=[31,31,31,31,31,31,30,30,30,30,30,29],eq=[31,31,31,31,31,31,30,30,30,30,30,30],tq=class extends EK{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return NK(OK.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return IK(t.length,e)}}validate(e,t){let n=BK(YW(e)),r=qW(e);return n?t>=1&&t<=eq[r]:t>=1&&t<=$K[r]}set(e,t,n){return WW(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},nq=class extends EK{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return NK(OK.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return IK(t.length,e)}}validate(e,t){return BK(YW(e))?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return JW(e,0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function rq(e,t,n){let r=tG(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??6,a=RW(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return GW(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var iq=class extends EK{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=rq(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},aq=class extends EK{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6+1)%7+t};switch(t){case`e`:case`ee`:return MK(IK(t.length,e),i);case`eo`:return MK(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=rq(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},oq=class extends EK{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6+1)%7+t};switch(t){case`c`:case`cc`:return MK(IK(t.length,e),i);case`co`:return MK(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=rq(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function sq(e,t){let n=RW(e,t?.in).getDay();return n===0?7:n}function cq(e,t,n){let r=RW(e,n?.in);return GW(r,t-sq(r,n),n)}var lq=class extends EK{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return IK(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return MK(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return MK(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return MK(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return MK(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=cq(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},uq=class extends EK{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(RK(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},dq=class extends EK{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(RK(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},fq=class extends EK{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(RK(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},pq=class extends EK{priority=70;parse(e,t,n){switch(t){case`h`:return NK(OK.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return IK(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},mq=class extends EK{priority=70;parse(e,t,n){switch(t){case`H`:return NK(OK.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return IK(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},hq=class extends EK{priority=70;parse(e,t,n){switch(t){case`K`:return NK(OK.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return IK(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},gq=class extends EK{priority=70;parse(e,t,n){switch(t){case`k`:return NK(OK.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return IK(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},_q=class extends EK{priority=60;parse(e,t,n){switch(t){case`m`:return NK(OK.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return IK(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]}
vendor: 4,328 bytes, line 2743
2743,vq=class extends EK{priority=50;parse(e,t,n){switch(t){case`s`:return NK(OK.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return IK(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},yq=class extends EK{priority=30;parse(e,t){return MK(IK(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},bq=class extends EK{priority=10;parse(e,t){switch(t){case`X`:return PK(kK.basicOptionalMinutes,e);case`XX`:return PK(kK.basic,e);case`XXXX`:return PK(kK.basicOptionalSeconds,e);case`XXXXX`:return PK(kK.extendedOptionalSeconds,e);default:return PK(kK.extended,e)}}set(e,t,n){return t.timestampIsSet?e:LW(e,e.getTime()-_G(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},xq=class extends EK{priority=10;parse(e,t){switch(t){case`x`:return PK(kK.basicOptionalMinutes,e);case`xx`:return PK(kK.basic,e);case`xxxx`:return PK(kK.basicOptionalSeconds,e);case`xxxxx`:return PK(kK.extendedOptionalSeconds,e);default:return PK(kK.extended,e)}}set(e,t,n){return t.timestampIsSet?e:LW(e,e.getTime()-_G(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},Sq=class extends EK{priority=40;parse(e){return FK(e)}set(e,t,n){return[LW(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},Cq=class extends EK{priority=20;parse(e){return FK(e)}set(e,t,n){return[LW(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},wq={G:new DK,y:new VK,Y:new HK,R:new UK,u:new WK,Q:new GK,q:new KK,M:new qK,L:new JK,w:new XK,I:new QK,d:new tq,D:new nq,E:new iq,e:new aq,c:new oq,i:new lq,a:new uq,b:new dq,B:new fq,h:new pq,H:new mq,K:new hq,k:new gq,m:new _q,s:new vq,S:new yq,X:new bq,x:new xq,t:new Sq,T:new Cq},Tq=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Eq=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dq=/^'([^]*?)'?$/,Oq=/''/g,kq=/\S/,Aq=/[a-zA-Z]/;function jq(e,t,n,r){let i=()=>LW(r?.in||n,NaN),a=yK(),o=r?.locale??a.locale??gG,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??6;if(!t)return e?i():RW(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new TK(r?.in,n)],d=t.match(Eq).map(e=>{let t=e[0];if(t in BG){let n=BG[t];return n(e,o.formatLong)}return e}).join(``).match(Tq),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&GG(n)&&KG(n,t,e),!r?.useAdditionalDayOfYearTokens&&WG(n)&&KG(n,t,e);let a=n[0],s=wq[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(Aq))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=Mq(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&kq.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=RW(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function Mq(e){return e.match(Dq)[1].replace(Oq,`'`)}function Nq(e,t,n){let r=RW(e,n?.in);return WW(r,t),r}function Pq(e,t,n){let r=RW(e,n?.in);return r.setHours(t),r}function Fq(e,t,n){let r=RW(e,n?.in);return r.setMinutes(t),r}function Iq(e,t,n){let r=RW(e,n?.in),i=YW(r),a=UW(r),o=LW(n?.in||e,0);XW(o,i,t,15),o.setHours(0,0,0,0);let s=lK(o);return JW(r,t,Math.min(a,s)),r}function Lq(e,t,n){let r=RW(e,n?.in);return r.setSeconds(t),r}function Rq(e,t,n){let r=RW(e,n?.in);return r.setMilliseconds(t),r}function zq(e,t,n){let r=RW(e,n?.in);return isNaN(+r)?LW(n?.in||e,NaN):(XW(r,t),r)}function Bq(e,t){let n=RW(e,t?.in);return WW(n,1),n.setHours(0,0,0,0),n}function Vq(e,t){let n=RW(e,t?.in),r=qW(n);return XW(n,YW(n),r+1,0),n.setHours(23,59,59,999),n}
2743function Hq(e,t,n){let r=+RW(e,n?.in),[i,a]=[+RW(t.start,n?.in),+RW(t.end,n?.in)].sort((e,t)=>e-t);return r>=i&&r<=a}var Uq={year:`yyyy`,month:`LLLL`,monthShort:`MMM`,dayOfMonth:`d`,dayOfMonthFull:`do`,weekday:`EEEE`,weekdayShort:`EEEEEE`,hours24h:`HH`,hours12h:`hh`,meridiem:`aa`,minutes:`mm`,seconds:`ss`,fullDate:`PPP`,keyboardDate:`P`,shortDate:`d MMM`,normalDate:`d MMMM`,normalDateWithWeekday:`EEE, d MMMM`,fullTime:`p`,fullTime12h:`hh:mm aaa`,fullTime24h:`HH:mm`,keyboardDateTime:`P p`,keyboardDateTime12h:`P hh:mm aa`,keyboardDateTime24h:`P HH:mm`},Wq={1:`۱`,2:`۲`,3:`۳`,4:`۴`,5:`۵`,6:`۶`,7:`۷`,8:`۸`,9:`۹`,0:`۰`},Gq=class extends An{constructor({locale:e,formats:t}={}){super({locale:e??gG,formats:o({},Uq,t),longFormatters:BG,lib:`date-fns-jalali`}),this.parse=(e,t)=>e===``?null:jq(e,t,new Date,{locale:this.locale}),this.isValid=e=>e==null?!1:YG(e),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>tK(e,t,{locale:this.locale}),this.formatNumber=e=>e.replace(/\d/g,e=>Wq[e]).replace(/,/g,`،`),this.isEqual=(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:pK(e,t),this.isSameYear=(e,t)=>hK(e,t),this.isSameMonth=(e,t)=>gK(e,t),this.isSameDay=(e,t)=>mK(e,t),this.isSameHour=(e,t)=>vK(e,t),this.isAfter=(e,t)=>dK(e,t),this.isAfterYear=(e,t)=>dK(e,this.endOfYear(t)),this.isAfterDay=(e,t)=>dK(e,this.endOfDay(t)),this.isBefore=(e,t)=>fK(e,t),this.isBeforeYear=(e,t)=>fK(e,this.startOfYear(t)),this.isBeforeDay=(e,t)=>fK(e,this.startOfDay(t)),this.isWithinRange=(e,[t,n])=>Hq(e,{start:t,end:n}),this.startOfYear=e=>xG(e),this.startOfMonth=e=>Bq(e),this.startOfWeek=e=>CG(e,{locale:this.locale}),this.startOfDay=e=>yG(e),this.endOfYear=e=>rG(e),this.endOfMonth=e=>Vq(e),this.endOfWeek=e=>nG(e,{locale:this.locale}),this.endOfDay=e=>$W(e),this.addYears=(e,t)=>QW(e,t),this.addMonths=(e,t)=>ZW(e,t),this.addWeeks=(e,t)=>KW(e,t),this.addDays=(e,t)=>GW(e,t),this.addHours=(e,t)=>HW(e,t),this.addMinutes=(e,t)=>VW(e,t),this.addSeconds=(e,t)=>BW(e,t),this.getYear=e=>oK(e),this.getMonth=e=>sK(e),this.getDate=e=>cK(e),this.getHours=e=>rK(e),this.getMinutes=e=>uK(e),this.getSeconds=e=>iK(e),this.getMilliseconds=e=>aK(e),this.setYear=(e,t)=>zq(e,t),this.setMonth=(e,t)=>Iq(e,t),this.setDate=(e,t)=>Nq(e,t),this.setHours=(e,t)=>Pq(e,t),this.setMinutes=(e,t)=>Fq(e,t),this.setSeconds=(e,t)=>Lq(e,t),this.setMilliseconds=(e,t)=>Rq(e,t),this.getDaysInMonth=e=>lK(e),this.getWeekArray=e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;this.isBefore(i,n);){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a},this.getWeekNumber=e=>AG(e,{locale:this.locale}),this.getYearRange=([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}},Kq=B()(e=>({fullWidth:{width:`unset`,"& .MuiDayCalendar-header":{justifyContent:`space-around`},"& .MuiDayCalendar-weekContainer":{justifyContent:`space-around`},"& .MuiYearCalendar-root":{minWidth:`fit-content`},"& .MuiMonthCalendar-root":{minWidth:`fit-content`}},pickerDay:{"& .MuiPickersDay-root":{fontSize:`14px`}},currentDay:{'& .MuiDayCalendar-weekContainer >.MuiButtonBase-root[aria-current="date"]':{color:`${e.palette.info.main}`,border:`unset`,fontWeight:700}}})),qq=e=>{let{day:t,selectedDates:n,...r}=e,i=()=>typeof n==`string`?t.toISOString()===n:n?.includes(t.toISOString())??!1;return l(Jq,{...r,day:t,selected:i()})},Jq=ae(bV,(e,{selected:t})=>({root:t?{backgroundColor:`${e.palette.info.main} !important`,color:`white !important`,borderRadius:`6px !important`,fontWeight:700}:{}})),Yq=({value:e,fullWidth:t,onChange:n,multipleSelect:r})=>{let{classes:i,cx:a}=Kq();return l(kn,{dateAdapter:Gq,dateFormats:{monthShort:`MMMM`},children:l(eU,{onChange:t=>{if(r&&typeof e!=`string`){let r=e.findIndex(e=>e===t.toISOString());return r===-1?n([...e,t.toISOString()]):(e.splice(r,1),n([...e]))}return n(t.toISOString())},views:[`year`,`month`,`day`],slots:{day:qq},slotProps:{day:{selectedDates:e}},classes:{root:a(i.currentDay,i.pickerDay,{[i.fullWidth]:t})}})})},Xq=B()(e=>({root:{display:`flex`,justifyContent:`end`,padding:e.spacing(2,0,0)}})),Zq=({onClick:e,disabled:t})=>{let{t:n}=Ye(),{classes:r}=Xq();return l(q,{className:r.root,children:l(fi,{variant:`contained`,id:`confirm-recurrence-time`,disabled:t,onClick:e,sx:{float:`left`},children:n(`common.labels.confirm`)})})},Qq=B()(e=>({root:{borderTop:`1.5px solid ${e.palette.text.lightGray}`}})),$q=({selectedRecurrenceType:e,selectedRecurrentSpecificDays:t,onChangeRecurrentInSpecificDate:n,onConfirm:r})=>{let{classes:i}=Qq();return l(Qz,{in:e===`recurrent-in-specific-date`,children:d(q,{className:i.root,onClick:e=>e.stopPropagation(),children:[l(Yq,{value:t,onChange:e=>n(e),multipleSelect:!0,fullWidth:!0}),l(Zq,{onClick:r,disabled:t.length===0})]})})},eJ=B()(e=>({container:{marginTop:e.spacing(3)},titleBox:{display:`flex`,alignItems:`cenetr`,"& p":{display:`flex`,alignItems:`center`,fontSize:15,color:e.palette.text.secondary},color:e.palette.text.secondary,"& .infoIcon":{fontSize:17,margin:e.spacing(0,.5,0,.5)}},toggleButtonGroupRoot:{margin:`8px 0px`,flexWrap:`wrap`},toggleButtonRoot:{margin:`5px 0px 5px 8px`,lineHeight:1,borderRadius:50,borderTopLeftRadius:`50px!important`,borderBottomLeftRadius:`50px!important`,borderTopRightRadius:`50px!important`,borderBottomRightRadius:`50px!important`,border:`1px solid #d1d1d1`,borderRight:`1px solid #d1d1d1!important`,color:`#808080`,padding:`4px 8px`,"& svg":{width:16,height:16,marginLeft:3}},toggleButtonSelected:{background:`unset !important`,borderColor:`${e.palette.primary.main}!important`,color:`${e.palette.primary.main}!important`}})),tJ=e=>{let{classes:t,cx:n}=eJ(),{value:r,onChange:i,toggleItems:a,exclusive:o,classes:s,showTickIcon:c,iconSize:u=`inherit`,...f}=e,p=e=>o?typeof e.value==`object`?JSON.stringify(JSON.parse(r))===JSON.stringify(e.value):r===e.value:typeof e.value==`object`?!!r?.find(t=>JSON.stringify(JSON.parse(t))===JSON.stringify(e.value)):r?.includes(e.value);return l($p,{classes:{root:s?.toggleButtonGroupRoot??t.toggleButtonGroupRoot},value:r,exclusive:o||!1,onChange:i,...f,children:a.map(e=>d(ai,{classes:{...s,root:n(t?.toggleButtonRoot,s?.toggleButtonRoot),selected:n(t.toggleButtonSelected,s?.toggleButtonSelected)},value:typeof e.value==`object`?JSON.stringify(e.value):e.value,children:[c!==!1&&p(e)&&l(K_,{fontSize:u}),e.label]}))})},nJ=e=>{let{t}=Ye();return l(tJ,{toggleItems:uM.daysOfWeek,...e})},rJ=B()(e=>({root:{borderTop:`1.5px solid ${e.palette.text.lightGray}`}}
2743)),iJ=({selectedRecurrenceType:e,onChangeWeeklyRecurrentInCertainDays:t,selectedRecurrentDays:n,onChangeRecurrenceEndDate:r,recurrenceEndDate:i,onConfirm:a})=>{let{classes:o}=rJ();return l(Qz,{in:e===`weekly-recurrent-in-certain-days`,onClick:e=>{e.stopPropagation()},children:d(q,{className:o.root,children:[l(nJ,{onChange:(e,n)=>t(n),value:n}),l(q,{children:l(gN,{label:W(`meetings.labels.recurrenceEndDate`),type:`center`,hideClose:!1,onChange:e=>r(e),value:i,name:`recurrenceEndDate`})}),l(Zq,{onClick:a,disabled:n?.length===0})]})})},aJ={select:{"& fieldset":{borderColor:`#347EEE`},"&.MuiOutlinedInput-root":{color:`#347EEE`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:`#347EEE`},"&.MuiSvgIcon-root":{fill:`#347EEE`,color:`#347EEE`},"&.MuiIconButton-root":{color:`#347EEE`}},focused:{"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:`#347EEE`},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:`#347EEE`},"&.Mui-focused .MuiSvgIcon-root":{fill:`#347EEE`}}},oJ=B()(e=>({root:{margin:e.spacing(1)},menuItem:{padding:e.spacing(1),borderRadius:e.spacing(.5)},selectedItem:{backgroundColor:e.palette.background.lightPrimary,color:e.palette.primary.main},icon:{color:`#347EEE`},hidden:{display:`none`}})),sJ=({actions:e,data:t})=>{let{classes:n,cx:r}=oJ(),{t:i}=Ye(),{recurrenceType:a,handelClickRecurrenceType:o,selectedRecurrenceType:s,openRecurrentSelectComponent:c,onCloseRecurrenceSelect:u,handleConfirmRecurrentTime:p,selectedRecurrentSpecificDays:m,setSelectedRecurrentSpecificDays:h,selectedRecurrentDays:g,setSelectedRecurrentDays:_,recurrenceEndDate:v,setRecurrenceEndDate:y,openRecurrentSelectedDaysDialog:b,setOpenRecurrentSelectedDaysDialog:x,openMobileRecurrenceDialog:S,handleOpenRecurrentSelect:C,openEditRecurrentMeetingTypeDialog:w,selectedRecurrentMeetingEditType:T,onCloseMeetingEditDialog:E,recurrentMeetingEditTypes:D,recurrentMeetingCancelTypes:O,handleChangeEditRecurrentMeetingType:k,openDeleteMeetingsRecurrenceDialog:A,setOpenDeleteMeetingsRecurrenceDialog:j,handleCreateOrEditMeeting:M,openEditRecurrenceItemMeetingTypeDialog:N,setOpenEditRecurrenceItemMeetingTypeDialog:P,saveLoading:F,disabledEditTypeOfMeeting:I}=e,ee=()=>s===`recurrent-in-specific-date`&&t?.selectedRecurrentSpecificDays?.length&&t?.selectedRecurrentSpecificDays?.length>0?l(ui,{onClick:()=>x(!0),disabled:e?.disabledMeeting,children:l(gi,{})}):l(f,{}),L=e=>{if(e===`weekly-recurrent-in-certain-days`){let t=v?Ve(v):i(`meetings.labels.without-recurrence-end`);return`${i(`meetings.labels.${e}`)} (${t})`}return i(`meetings.labels.${e}`)};return d(f,{children:[d(Sr,{variant:`outlined`,onOpen:C,onClose:u,startAdornment:l(gy,{}),endAdornment:ee(),fullWidth:!0,disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,value:s,autoWidth:!0,open:c,inputProps:{classes:{icon:r(n.icon,{[n.hidden]:s===`recurrent-in-specific-date`})}},sx:[aJ.select,aJ.focused],MenuProps:{anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{vertical:`top`,horizontal:`right`}},children:[a.map(e=>l(Lk,{onClick:t=>o(t,e.id),className:r(n.menuItem,n.root,{[n.selectedItem]:s===e.id}),value:e.id,children:L(e.id)},e.id)),d(q,{className:n.root,children:[l(iJ,{selectedRecurrentDays:g,onChangeWeeklyRecurrentInCertainDays:_,selectedRecurrenceType:s,recurrenceEndDate:v,onChangeRecurrenceEndDate:y,onConfirm:p}),l($q,{selectedRecurrentSpecificDays:m,selectedRecurrenceType:s,onChangeRecurrentInSpecificDate:h,onConfirm:p})]})]}),l(Zz,{selectedDays:m,open:b,onClose:()=>x(!1)}),l(Yz,{open:w,onClose:E,onChangeRecurrentMeetingEditType:k,recurrenceInstanceChangeType:e.meetingInstanceMode===`edit`?D:O,selectedRecurrentMeetingEditType:T,onClickEditMeeting:M,loading:F,meetingInstanceMode:e.meetingInstanceMode,disabled:e.checkAvailability.isAvailable===!1,errors:e.checkAvailability.isAvailable===!1&&!F?{[T]:i(`meetings.errors.${T}`)}:void 0}),l(Jz,{open:N,onClose:()=>P(!1),onClickEditMeeting:M,loading:F}),l(qz,{open:A,onClose:()=>j(!1),onClickEditMeeting:M,loading:F}),d(NN,{open:S,onClose:u,title:i(`meetings.labels.meetings-recurrence`),fullWidth:!0,maxWidth:`xs`,isTitleShow:!0,children:[l(Cr,{children:l(up,{"aria-labelledby":`radio-buttons-group-label`,name:`radio-buttons-group`,value:s,onChange:e=>o(e,e.target.value),children:a.map(e=>l(Br,{value:e.id,control:l(mr,{}
2743),label:i(`meetings.labels.${e.id}`)}))})}),d(q,{children:[l(iJ,{selectedRecurrentDays:g,onChangeWeeklyRecurrentInCertainDays:_,selectedRecurrenceType:s,recurrenceEndDate:v,onChangeRecurrenceEndDate:y,onConfirm:p}),l($q,{selectedRecurrentSpecificDays:m,selectedRecurrenceType:s,onChangeRecurrentInSpecificDate:h,onConfirm:p})]})]})]})},cJ=B()({root:{},box:{padding:8,borderRadius:6},green:{color:`#3FC063`,backgroundColor:`#F3FFF7`},blue:{color:`#0099DB`,backgroundColor:`#F4F8FB`},flex:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`},time:{gap:16},time2:{gap:8},font:{fontSize:`14px`,fontWeight:`700`,lineHeight:`18px`},flexDuration:{display:`flex`,gap:8}}),lJ=({time:e,isFullTime:t=!1,fullTimeDate:n=``,onlyRemaining:r=!1})=>{let{classes:i,cx:a}=cJ(),o=(0,J.useMemo)(()=>{if(!e)return{hour:``,minute:``};let[t,n]=e.duration.split(`:`);return{hour:t,minute:n}},[e]);return d(q,{className:i.root,children:[!t&&e?.duration&&e?.end&&e?.start&&d(q,{className:a(i.flex,i.time),children:[!r&&d(q,{className:a(i.flex,i.time2),children:[l(q,{className:i.font,children:W(`meetings.labels.fromHours`)}),l(si,{className:a(i.box,i.green,i.font),children:e.start}),l(q,{className:i.font,children:W(`meetings.labels.to`)}),l(si,{className:a(i.box,i.green,i.font),children:e.end})]}),d(si,{className:a(i.box,i.flexDuration,i.blue,i.font),children:[o.hour&&o.hour!==`0`&&l(q,{children:`${o.hour} ساعت`}),o.minute&&o.minute!==`0`&&o.hour&&o.hour!==`0`&&l(q,{children:`و`}),o.minute&&o.minute!==`0`&&l(q,{children:`${o.minute} ${W(`common.labels.minute`)}`})]})]}),t&&l(q,{children:l(si,{className:a(i.box,i.blue),children:W(`meetings.labels.fullTime`)})}),n&&l(si,{className:a(i.box,i.blue,i.font),children:n})]})},uJ=({startDate:e,endDate:t,isFullTime:n})=>{let[r,i]=(0,J.useState)({startDate:e,endDate:t,isFullTime:n});return di(()=>{i(()=>({startDate:e,endDate:t,isFullTime:n}))},[e,t,n]),{data:r,setAllDay:e=>{let t=new Date;t.setHours(0,0,0,0);let n=new Date;n.setHours(23,59,0,0),i(r=>({...r,isFullTime:e,endDate:n,startDate:t}))},setStartTime:e=>{i(t=>({...t,startDate:e}))},setEndTime:e=>{i(t=>({...t,endDate:e}))},selectTime:e=>{let[t,n]=e.split(`:`);if(r.startDate){let e=new Date(r.startDate);e.setHours(e.getHours()+ +t),e.setMinutes(e.getMinutes()+ +n),i(r=>({...r,endDate:e,durationMinute:n,durationHour:t}))}}}},dJ={difTime:(e,t)=>{if(e&&t){let n=e.getTime()-t.getTime();n=Math.ceil(n/1e3)*1e3;let r=new Date;r.setHours(0,0,0,0);let i=new Date(r.getTime()+n);return`${i.getHours()}:${i.getMinutes()}`}return`0:0`}},fJ=365.2425,pJ=6048e5,mJ=864e5,hJ=6e4,gJ=36e5,_J=1e3,vJ=3600*24;vJ*7,vJ*fJ/12*3;var yJ=Symbol.for(`constructDateFrom`);function bJ(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&yJ in e?e[yJ](t):e instanceof Date?new e.constructor(t):new Date(t)}function xJ(e,t){return bJ(t||e,e)}function SJ(e,t,n){let r=xJ(e,n?.in);return isNaN(t)?bJ(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function CJ(e,t,n){return bJ(n?.in||e,+xJ(e)+t)}function wJ(e,t,n){return CJ(e,t*1e3,n)}function TJ(e,t,n){let r=xJ(e,n?.in);return r.setTime(r.getTime()+t*hJ),r}function EJ(e,t,n){return CJ(e,t*gJ,n)}function DJ(e,t,n){return SJ(e,t*7,n)}function OJ(e,t,n){let r=xJ(e,n?.in);if(isNaN(t))return bJ(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=bJ(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function kJ(e,t,n){return OJ(e,t*12,n)}function AJ(e,t){let n=xJ(e,t?.in);return n.setHours(23,59,59,999),n}var jJ={};function MJ(){return jJ}function NJ(e,t){let n=MJ(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=xJ(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function PJ(e,t){let n=xJ(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}var FJ={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},IJ=(e,t,n)=>{let r,i=FJ[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function LJ(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var RJ={date:LJ({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:LJ({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:LJ({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},zJ={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},BJ=(e,t,n,r)=>zJ[e];function VJ(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var HJ={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:VJ({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:VJ({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:VJ({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:VJ({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:VJ({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function UJ(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?GJ(s,e=>e.test(o)):WJ(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}
vendor: 7,634 bytes, line 2743
2743}function WJ(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function GJ(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function KJ(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var qJ={code:`en-US`,formatDistance:IJ,formatLong:RJ,formatRelative:BJ,localize:HJ,match:{ordinalNumber:KJ({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:UJ({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:UJ({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:UJ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:UJ({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:UJ({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function JJ(e){let t=xJ(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function YJ(e,...t){let n=bJ.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function XJ(e,t){let n=xJ(e,t?.in);return n.setHours(0,0,0,0),n}function ZJ(e,t,n){let[r,i]=YJ(n?.in,e,t),a=XJ(r),o=XJ(i),s=+a-JJ(a),c=+o-JJ(o);return Math.round((s-c)/mJ)}function QJ(e,t){let n=xJ(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function $J(e,t){let n=xJ(e,t?.in);return ZJ(n,QJ(n))+1}function eY(e,t){let n=MJ(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=xJ(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function tY(e,t){return eY(e,{...t,weekStartsOn:1})}function nY(e,t){let n=xJ(e,t?.in),r=n.getFullYear(),i=bJ(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=tY(i),o=bJ(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=tY(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function rY(e,t){let n=nY(e,t),r=bJ(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),tY(r)}function iY(e,t){let n=xJ(e,t?.in),r=tY(n)-+rY(n);return Math.round(r/pJ)+1}function aY(e,t){let n=xJ(e,t?.in),r=n.getFullYear(),i=MJ(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=bJ(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=eY(o,t),c=bJ(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=eY(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function oY(e,t){let n=MJ(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=aY(e,t),a=bJ(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),eY(a,t)}function sY(e,t){let n=xJ(e,t?.in),r=eY(n,t)-+oY(n,t);return Math.round(r/pJ)+1}function cY(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var lY={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return cY(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):cY(n+1,2)},d(e,t){return cY(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return cY(e.getHours()%12||12,t.length)},H(e,t){return cY(e.getHours(),t.length)},m(e,t){return cY(e.getMinutes(),t.length)},s(e,t){return cY(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return cY(Math.trunc(r*10**(n-3)),t.length)}},uY={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},dY={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return lY.y(e,t)},Y:function(e,t,n,r){let i=aY(e,r),a=i>0?i:1-i;return t===`YY`?cY(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):cY(a,t.length)},R:function(e,t){return cY(nY(e),t.length)},u:function(e,t){return cY(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return cY(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return cY(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return lY.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return cY(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=sY(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):cY(i,t.length)},I:function(e,t,n){let r=iY(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):cY(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):lY.d(e,t)},D:function(e,t,n){let r=$J(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):cY(r,t.length)},E:function(e,t,n){let r=e.getDay();
vendor: 4,544 bytes, line 2743
2743switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return cY(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return cY(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return cY(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?uY.noon:r===0?uY.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?uY.evening:r>=12?uY.afternoon:r>=4?uY.morning:uY.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return lY.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):lY.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):cY(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):cY(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):lY.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):lY.s(e,t)},S:function(e,t){return lY.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return pY(r);case`XXXX`:case`XX`:return mY(r);default:return mY(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return pY(r);case`xxxx`:case`xx`:return mY(r);default:return mY(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+fY(r,`:`);default:return`GMT`+mY(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+fY(r,`:`);default:return`GMT`+mY(r,`:`)}},t:function(e,t,n){return cY(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return cY(+e,t.length)}};function fY(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+cY(a,2)}function pY(e,t){return e%60==0?(e>0?`-`:`+`)+cY(Math.abs(e)/60,2):mY(e,t)}function mY(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=cY(Math.trunc(r/60),2),a=cY(r%60,2);return n+i+t+a}var hY=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},gY=(e,t)=>
vendor: 5,253 bytes, line 2743
2743{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},_Y={p:gY,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return hY(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,hY(r,t)).replace(`{{time}}`,gY(i,t))}},vY=/^D+$/,yY=/^Y+$/,bY=[`D`,`DD`,`YY`,`YYYY`];function xY(e){return vY.test(e)}function SY(e){return yY.test(e)}function CY(e,t,n){let r=wY(e,t,n);if(console.warn(r),bY.includes(e))throw RangeError(r)}function wY(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function TY(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function EY(e){return!(!TY(e)&&typeof e!=`number`||isNaN(+xJ(e)))}var DY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kY=/^'([^]*?)'?$/,AY=/''/g,jY=/[a-zA-Z]/;function MY(e,t,n){let r=MJ(),i=n?.locale??r.locale??qJ,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=xJ(e,n?.in);if(!EY(s))throw RangeError(`Invalid time value`);let c=t.match(OY).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=_Y[t];return n(e,i.formatLong)}return e}).join(``).match(DY).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:NY(e)};if(dY[t])return{isToken:!0,value:e};if(t.match(jY))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&SY(a)||!n?.useAdditionalDayOfYearTokens&&xY(a))&&CY(a,t,String(e));let o=dY[a[0]];return o(s,a,i.localize,l)}).join(``)}function NY(e){let t=e.match(kY);return t?t[1].replace(AY,`'`):e}function PY(e,t){return xJ(e,t?.in).getDate()}function FY(e,t){let n=xJ(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=bJ(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function IY(e,t){return xJ(e,t?.in).getHours()}function LY(e,t){return xJ(e,t?.in).getMinutes()}function RY(e,t){return xJ(e,t?.in).getMonth()}function zY(e){return xJ(e).getSeconds()}function BY(e){return xJ(e).getMilliseconds()}function VY(e,t){return xJ(e,t?.in).getFullYear()}function HY(e,t){return+xJ(e)>+xJ(t)}function UY(e,t){return+xJ(e)<+xJ(t)}function WY(e,t){return+xJ(e)==+xJ(t)}function GY(e,t,n){let[r,i]=YJ(n?.in,e,t);return+XJ(r)==+XJ(i)}function KY(e,t,n){let[r,i]=YJ(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function qY(e,t,n){let[r,i]=YJ(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function JY(e,t){let n=xJ(e,t?.in);return n.setMinutes(0,0,0),n}function YY(e,t,n){let[r,i]=YJ(n?.in,e,t);return+JY(r)==+JY(i)}function XY(){return Object.assign({},MJ())}function ZY(e,t){let n=QY(t)?new t(0):bJ(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function QY(e){return typeof e==`function`&&e.prototype?.constructor===e}var $Y=10,eX=class{subPriority=0;validate(e,t){return!0}},tX=class extends eX{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},nX=class extends eX{priority=$Y;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>bJ(t,e))}set(e,t){return t.timestampIsSet?e:bJ(e,ZY(e,this.context))}},rX=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new tX(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},iX=class extends rX{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},aX={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/}
vendor: 16,537 bytes, line 2743
2743,oX={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function sX(e,t){return e&&{value:t(e.value),rest:e.rest}}function cX(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function lX(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*gJ+a*hJ+o*_J),rest:t.slice(n[0].length)}}function uX(e){return cX(aX.anyDigitsSigned,e)}function dX(e,t){switch(e){case 1:return cX(aX.singleDigit,t);case 2:return cX(aX.twoDigits,t);case 3:return cX(aX.threeDigits,t);case 4:return cX(aX.fourDigits,t);default:return cX(RegExp(`^\\d{1,`+e+`}`),t)}}function fX(e,t){switch(e){case 1:return cX(aX.singleDigitSigned,t);case 2:return cX(aX.twoDigitsSigned,t);case 3:return cX(aX.threeDigitsSigned,t);case 4:return cX(aX.fourDigitsSigned,t);default:return cX(RegExp(`^-?\\d{1,`+e+`}`),t)}}function pX(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function mX(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function hX(e){return e%400==0||e%4==0&&e%100!=0}var gX=class extends rX{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return sX(dX(4,e),r);case`yo`:return sX(n.ordinalNumber(e,{unit:`year`}),r);default:return sX(dX(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=mX(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},_X=class extends rX{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return sX(dX(4,e),r);case`Yo`:return sX(n.ordinalNumber(e,{unit:`year`}),r);default:return sX(dX(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=aY(e,r);if(n.isTwoDigitYear){let t=mX(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),eY(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),eY(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},vX=class extends rX{priority=130;parse(e,t){return fX(t===`R`?4:t.length,e)}set(e,t,n){let r=bJ(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),tY(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},yX=class extends rX{priority=130;parse(e,t){return fX(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},bX=class extends rX{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return dX(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},xX=class extends rX{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return dX(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},SX=class extends rX{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return sX(cX(aX.month,e),r);case`MM`:return sX(dX(2,e),r);case`Mo`:return sX(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},CX=class extends rX{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return sX(cX(aX.month,e),r);case`LL`:return sX(dX(2,e),r);case`Lo`:return sX(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function wX(e,t,n){let r=xJ(e,n?.in),i=sY(r,n)-t;return r.setDate(r.getDate()-i*7),xJ(r,n?.in)}var TX=class extends rX{priority=100;parse(e,t,n){switch(t){case`w`:return cX(aX.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return dX(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return eY(wX(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function EX(e,t,n){let r=xJ(e,n?.in),i=iY(r,n)-t;return r.setDate(r.getDate()-i*7),r}var DX=class extends rX{priority=100;parse(e,t,n){switch(t){case`I`:return cX(aX.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return dX(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return tY(EX(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},OX=[31,28,31,30,31,30,31,31,30,31,30,31],kX=[31,29,31,30,31,30,31,31,30,31,30,31],AX=class extends rX{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return cX(aX.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return dX(t.length,e)}}validate(e,t){let n=hX(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=kX[r]:t>=1&&t<=OX[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},jX=class extends rX{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return cX(aX.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return dX(t.length,e)}}validate(e,t){return hX(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function MX(e,t,n){let r=MJ(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=xJ(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return SJ(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var NX=class extends rX{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=MX(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},PX=class extends rX{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return sX(dX(t.length,e),i);case`eo`:return sX(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=MX(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},FX=class extends rX{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return sX(dX(t.length,e),i);case`co`:return sX(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=MX(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function IX(e,t){let n=xJ(e,t?.in).getDay();return n===0?7:n}function LX(e,t,n){let r=xJ(e,n?.in);return SJ(r,t-IX(r,n),n)}var RX=class extends rX{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return dX(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return sX(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return sX(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return sX(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return sX(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=LX(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},zX=class extends rX{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(pX(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},BX=class extends rX{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(pX(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},VX=class extends rX{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(pX(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},HX=class extends rX{priority=70;parse(e,t,n){switch(t){case`h`:return cX(aX.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return dX(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},UX=class extends rX{priority=70;parse(e,t,n){switch(t){case`H`:return cX(aX.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return dX(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},WX=class extends rX{priority=70;parse(e,t,n){switch(t){case`K`:return cX(aX.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return dX(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},GX=class extends rX{priority=70;parse(e,t,n){switch(t){case`k`:return cX(aX.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return dX(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},KX=class extends rX{priority=60;parse(e,t,n){switch(t){case`m`:return cX(aX.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return dX(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},qX=class extends rX{priority=50;parse(e,t,n){switch(t){case`s`:return cX(aX.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return dX(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},JX=class extends rX{priority=30;parse(e,t){return sX(dX(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},YX=class extends rX{priority=10;parse(e,t){switch(t){case`X`:return lX(oX.basicOptionalMinutes,e);case`XX`:return lX(oX.basic,e);case`XXXX`:return lX(oX.basicOptionalSeconds,e);case`XXXXX`:return lX(oX.extendedOptionalSeconds,e);default:return lX(oX.extended,e)}}set(e,t,n){return t.timestampIsSet?e:bJ(e,e.getTime()-JJ(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},XX=class extends rX{priority=10;parse(e,t){switch(t){case`x`:return lX(oX.basicOptionalMinutes,e);case`xx`:return lX(oX.basic,e);case`xxxx`:return lX(oX.basicOptionalSeconds,e);case`xxxxx`:return lX(oX.extendedOptionalSeconds,e);default:return lX(oX.extended,e)}}set(e,t,n){return t.timestampIsSet?e:bJ(e,e.getTime()-JJ(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},ZX=class extends rX{priority=40;parse(e){return uX(e)}set(e,t,n){return[bJ(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},QX=class extends rX{priority=20;parse(e){return uX(e)}set(e,t,n){return[bJ(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},$X={G:new iX,y:new gX,Y:new _X,R:new vX,u:new yX,Q:new bX,q:new xX,M:new SX,L:new CX,w:new TX,I:new DX,d:new AX,D:new jX,E:new NX,e:new PX,c:new FX,i:new RX,a:new zX,b:new BX,B:new VX,h:new HX,H:new UX,K:new WX,k:new GX,m:new KX,s:new qX,S:new JX,X:new YX,x:new XX,t:new ZX,T:new QX},eZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,tZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nZ=/^'([^]*?)'?$/,rZ=/''/g,iZ=/\S/,aZ=/[a-zA-Z]/;function oZ(e,t,n,r){let i=()=>
vendor: 2,523 bytes, line 2743
2743bJ(r?.in||n,NaN),a=XY(),o=r?.locale??a.locale??qJ,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():xJ(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new nX(r?.in,n)],d=t.match(tZ).map(e=>{let t=e[0];if(t in _Y){let n=_Y[t];return n(e,o.formatLong)}return e}).join(``).match(eZ),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&SY(n)&&CY(n,t,e),!r?.useAdditionalDayOfYearTokens&&xY(n)&&CY(n,t,e);let a=n[0],s=$X[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(aZ))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=sZ(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&iZ.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=xJ(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function sZ(e){return e.match(nZ)[1].replace(rZ,`'`)}function cZ(e,t,n){let r=xJ(e,n?.in);return r.setDate(t),r}function lZ(e,t,n){let r=xJ(e,n?.in);return r.setHours(t),r}function uZ(e,t,n){let r=xJ(e,n?.in);return r.setMinutes(t),r}function dZ(e,t,n){let r=xJ(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=bJ(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=FY(o);return r.setMonth(t,Math.min(a,s)),r}function fZ(e,t,n){let r=xJ(e,n?.in);return r.setSeconds(t),r}function pZ(e,t,n){let r=xJ(e,n?.in);return r.setMilliseconds(t),r}function mZ(e,t,n){let r=xJ(e,n?.in);return isNaN(+r)?bJ(n?.in||e,NaN):(r.setFullYear(t),r)}function hZ(e,t){let n=xJ(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function gZ(e,t){let n=xJ(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}
2743function _Z(e,t,n){let r=+xJ(e,n?.in),[i,a]=[+xJ(t.start,n?.in),+xJ(t.end,n?.in)].sort((e,t)=>e-t);return r>=i&&r<=a}var vZ=class extends An{constructor({locale:e,formats:t}={}){super({locale:e??qJ,formats:t,longFormatters:_Y}),this.parse=(e,t)=>e===``?null:oZ(e,t,new Date,{locale:this.locale}),this.isValid=e=>e==null?!1:EY(e),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>MY(e,t,{locale:this.locale}),this.isEqual=(e,t)=>e===null&&t===null?!0:e===null||t===null?!1:WY(e,t),this.isSameYear=(e,t)=>KY(e,t),this.isSameMonth=(e,t)=>qY(e,t),this.isSameDay=(e,t)=>GY(e,t),this.isSameHour=(e,t)=>YY(e,t),this.isAfter=(e,t)=>HY(e,t),this.isAfterYear=(e,t)=>HY(e,PJ(t)),this.isAfterDay=(e,t)=>HY(e,AJ(t)),this.isBefore=(e,t)=>UY(e,t),this.isBeforeYear=(e,t)=>UY(e,this.startOfYear(t)),this.isBeforeDay=(e,t)=>UY(e,this.startOfDay(t)),this.isWithinRange=(e,[t,n])=>_Z(e,{start:t,end:n}),this.startOfYear=e=>QJ(e),this.startOfMonth=e=>hZ(e),this.startOfWeek=e=>eY(e,{locale:this.locale}),this.startOfDay=e=>XJ(e),this.endOfYear=e=>PJ(e),this.endOfMonth=e=>gZ(e),this.endOfWeek=e=>NJ(e,{locale:this.locale}),this.endOfDay=e=>AJ(e),this.addYears=(e,t)=>kJ(e,t),this.addMonths=(e,t)=>OJ(e,t),this.addWeeks=(e,t)=>DJ(e,t),this.addDays=(e,t)=>SJ(e,t),this.addHours=(e,t)=>EJ(e,t),this.addMinutes=(e,t)=>TJ(e,t),this.addSeconds=(e,t)=>wJ(e,t),this.getYear=e=>VY(e),this.getMonth=e=>RY(e),this.getDate=e=>PY(e),this.getHours=e=>IY(e),this.getMinutes=e=>LY(e),this.getSeconds=e=>zY(e),this.getMilliseconds=e=>BY(e),this.setYear=(e,t)=>mZ(e,t),this.setMonth=(e,t)=>dZ(e,t),this.setDate=(e,t)=>cZ(e,t),this.setHours=(e,t)=>lZ(e,t),this.setMinutes=(e,t)=>uZ(e,t),this.setSeconds=(e,t)=>fZ(e,t),this.setMilliseconds=(e,t)=>pZ(e,t),this.getDaysInMonth=e=>FY(e),this.getWeekArray=e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,i=t,a=[];for(;this.isBefore(i,n);){let e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(i),i=this.addDays(i,1),r+=1}return a},this.getWeekNumber=e=>sY(e,{locale:this.locale}),this.getYearRange=([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),i=[],a=n;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}},yZ=({security:e,disabled:t=!1,error:n=!1,helperText:r,hidden:i=!1,skeletonLoading:a=!1,skeletonProps:o,...s})=>{let c=e?.disabled?`disabledSecurity`:``,{onChange:u,value:p,defaultValue:m}=s,h=isNaN(Number(p))?null:p;return l(f,{children:!i&&!e?.hidden&&l(f,{children:a?l(dr,{...o,height:o?.height||42}):l(kn,{dateAdapter:vZ,children:l(UU,{...s,disabled:t||e?.disabled,className:c,ampm:s.ampm??!1,value:h,localeText:{okButtonLabel:`تایید`,cancelButtonLabel:`انصراف`,clearButtonLabel:`پاک کردن`,toolbarTitle:`تعیین زمان`},slotProps:{textField:{...s.slotProps?.textField,fullWidth:!0,InputProps:{style:{padding:4}},error:n,helperText:r},field:{InputProps:{endAdornment:d(f,{children:[(!!h||!!m)&&l(ui,{size:`small`,disabled:t,onClick:e=>{e.stopPropagation(),u&&u(``)},children:l(W_,{fontSize:`small`,sx:{stroke:`#ffffff`,strokeWidth:.5}})}),l(ui,{size:`small`,disabled:t,children:l(x_,{fontSize:`small`,sx:{stroke:`#ffffff`,strokeWidth:.5}})})]})}}}})})})})},bZ=B()(e=>({dialogTitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`},content:{padding:`16px 0px !important`,display:`flex`,flexDirection:`column`,gap:16},details:{height:`unset`},timeContainer:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`,flexWrap:`wrap`},box:{padding:`${e.spacing(.75)} ${e.spacing(1.5)}`,fontSize:`14px`,borderRadius:`60px`,border:`1px solid #D1D1D1`,minWidth:`fit-content`,color:`#808080`,lineHeight:`18px`,height:`30px`},boxActivated:{border:`1px solid #7E6BF1`,color:`#7E6BF1`}
2743,formSwitch:{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:`300ms`,"&.Mui-checked":{transform:`translateX(-16px)`,color:`#fff`,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode===`dark`?`#2ECA45`:e.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:`#33cf4d`,border:`6px solid #fff`},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode===`light`?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode===`light`?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:`border-box`,width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode===`light`?`#E9E9EA`:`#39393D`,opacity:1,transition:e.transitions.create([`background-color`],{duration:500})}},dashed:{border:`1px dashed #ABABAB`,borderRadius:`8px`,padding:16},timeLong:{display:`flex`,alignItems:`center`,fontWeight:`700`,color:`#49454F`,fontSize:`14px`,lineHeight:`18px`,height:`100%`},startEndTimeContainer:{display:`flex`,gap:8},actionContainer:{borderTop:`1px solid #D1D1D1`,padding:`12px 24px`},inputRoot:{paddingLeft:`0px !important`},close:{position:`absolute`,right:`16px`,top:`8px`},paper:{maxWidth:920}})),xZ=({actions:e,onSubmit:t,data:n,datetime:r,timesOptions:i,setAllDay:a,setEndTime:o,setStartTime:s,handleChooseItem:c,validation:u})=>{let{classes:f}=bZ(),p=(0,J.useMemo)(()=>dJ.difTime(n.endDate,n.startDate),[n.endDate,n.startDate]);return d(Mr,{open:e.showTimeDialog,classes:{paper:f.paper},onClose:()=>e.setShowTimeDialog(!1),fullWidth:!0,dir:`rtl`,children:[l(Ir,{borderBottom:`1px solid #D1D1D1`,children:d(q,{className:f.dialogTitle,children:[l(q,{children:W(`meetings.labels.timeMeeting`)}),l(ui,{className:f.close,onClick:()=>e.setShowTimeDialog(!1),children:l(ci,{})})]})}),l(Pr,{children:l(q,{className:f.content,children:d(Hr,{container:!0,spacing:2,children:[l(Hr,{item:!0,xs:12,children:!n.isFullTime&&l(q,{children:d(Hr,{container:!0,columnSpacing:2,children:[l(Hr,{item:!0,xs:6,children:l(q,{children:l(yZ,{value:n.startDate,label:W(`meetings.labels.startDate`),maxTime:n?.endDate??void 0,onChange:e=>s(e??n.startDate),error:u.isInvalid(`startDate`),helperText:u.getValidationError(`startDate`)||``})})}),l(Hr,{item:!0,xs:6,children:l(q,{children:l(yZ,{value:n.endDate,label:W(`meetings.labels.endDate`),minTime:n?.startDate??void 0,onChange:e=>o(e??n.endDate),error:u.isInvalid(`endDate`),helperText:u.getValidationError(`endDate`)||``})})})]})})}),l(Hr,{item:!0,xs:12,children:d(q,{style:{display:`flex`,gap:8,alignItems:`center`},children:[l(q,{children:W(`meetings.labels.periodTime`)}),l(q,{style:{flex:1},children:n.startDate&&!n.isFullTime&&l(SZ,{classes:f,handleChooseItem:c,activatedItem:p,timesOptions:i,endDate:n.endDate,startDate:n.startDate})}),l(q,{children:d(q,{style:{display:`flex`,gap:8,alignItems:`center`,justifyContent:`space-between`},children:[n.isFullTime&&l(lJ,{fullTimeDate:Ve(r)??``}),l(si,{fontSize:14,children:W(`meetings.labels.fullTime`)}),l(yp,{focusVisibleClassName:`.Mui-focusVisible`,disableRipple:!0,className:f.formSwitch,id:`signer-name-checkbox`,checked:n.isFullTime??!1,onChange:e=>a(e.target.checked)})]})})]})})]})})}),l(Nr,{className:f.actionContainer,children:l(q,{children:l(fi,{size:`small`,variant:`contained`,onClick:t,children:W(`common.labels.submit`)})})})]})},SZ=({timesOptions:e,activatedItem:t,handleChooseItem:n,endDate:r,startDate:i})=>{let a=e.find(e=>e.value===t),{classes:o,cx:s}=bZ();return d(q,{className:o.timeContainer,children:[(!r||a)&&e.map(e=>l(fi,{className:s({[o.box]:!0,[o.boxActivated]:t===e.value}),onClick:()=>n(e.value),startIcon:t===e.value?l(Eg,{}):``,children:e.label},e.value)),!a&&r&&l(lJ,{onlyRemaining:!0,time:{start:`${i?.getHours()??0}:${i?.getMinutes()??0}`,end:`${r?.getHours()??0}:${r?.getMinutes()??0}`,duration:dJ.difTime(r,i)}})]})},CZ=B()(e=>({dialogTitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`},content:{padding:`32px 0px !important`,display:`flex`,flexDirection:`column`,gap:16},details:{height:`unset`},timeContainer:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`,flexWrap:`wrap`},box:{padding:`${e.spacing(.75)} ${e.spacing(1.5)}`,fontSize:`14px`,borderRadius:`60px`,border:`1px solid #D1D1D1`,minWidth:`fit-content`,color:`#808080`,lineHeight:`18px`,he
2743ight:`30px`},boxActivated:{border:`1px solid #7E6BF1`,color:`#7E6BF1`},formSwitch:{width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:`300ms`,"&.Mui-checked":{transform:`translateX(-16px)`,color:`#fff`,"& + .MuiSwitch-track":{backgroundColor:e.palette.mode===`dark`?`#2ECA45`:e.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:`#33cf4d`,border:`6px solid #fff`},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.mode===`light`?e.palette.grey[100]:e.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:e.palette.mode===`light`?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:`border-box`,width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.mode===`light`?`#E9E9EA`:`#39393D`,opacity:1,transition:e.transitions.create([`background-color`],{duration:500})}},dashed:{border:`1px dashed #ABABAB`,borderRadius:`8px`,padding:16},timeLong:{display:`flex`,alignItems:`center`,fontWeight:`700`,color:`#49454F`,fontSize:`14px`,lineHeight:`18px`,height:`100%`},startEndTimeContainer:{display:`flex`,gap:8},actionContainer:{borderTop:`1px solid #D1D1D1`,padding:`12px 24px`},inputRoot:{paddingLeft:`0px !important`},close:{position:`absolute`,right:`16px`,top:`8px`},paper:{width:`100%`,margin:8},dialogContent:{padding:`${e.spacing(0)} ${e.spacing(1)}`}})),wZ=({actions:e,onSubmit:t,data:n,datetime:r,timesOptions:i,setAllDay:a,setEndTime:o,setStartTime:s,handleChooseItem:c,validation:u})=>{let{classes:f}=CZ(),p=(0,J.useMemo)(()=>dJ.difTime(n.endDate,n.startDate),[n.endDate,n.startDate]);return d(Mr,{open:e.showTimeDialog,classes:{paper:f.paper},onClose:()=>e.setShowTimeDialog(!1),fullWidth:!0,dir:`rtl`,children:[l(Ir,{borderBottom:`1px solid #D1D1D1`,children:d(q,{className:f.dialogTitle,children:[l(q,{children:`ساعت جلسه`}),l(ui,{className:f.close,onClick:()=>e.setShowTimeDialog(!1),children:l(ci,{})})]})}),l(Pr,{classes:{root:f.dialogContent},children:l(q,{className:f.content,children:d(Hr,{container:!0,rowSpacing:2,children:[!n.isFullTime&&l(Hr,{item:!0,xs:12,children:l(q,{children:d(Hr,{container:!0,spacing:2,children:[l(Hr,{item:!0,xs:12,md:6,children:l(q,{children:l(yZ,{value:n.startDate,label:W(`meetings.labels.startDate`),maxTime:n?.endDate??void 0,onAccept:e=>s(e??n.startDate),error:u.isInvalid(`startDate`),helperText:u.getValidationError(`startDate`)||``})})}),l(Hr,{item:!0,xs:12,md:6,children:l(q,{children:l(yZ,{value:n.endDate,label:W(`meetings.labels.endDate`),minTime:n?.startDate??void 0,onChange:e=>o(e??n.endDate),error:u.isInvalid(`endDate`),helperText:u.getValidationError(`endDate`)||``})})})]})})}),l(Hr,{item:!0,xs:12,children:d(q,{style:{display:`flex`,gap:8,alignItems:`center`},children:[l(q,{children:W(`meetings.labels.periodTime`)}),l(q,{style:{flex:1}}),l(q,{children:d(q,{style:{display:`flex`,gap:8,alignItems:`center`,justifyContent:`space-between`},children:[l(si,{fontSize:14,children:W(`meetings.labels.fullTime`)}),l(yp,{focusVisibleClassName:`.Mui-focusVisible`,disableRipple:!0,className:f.formSwitch,id:`signer-name-checkbox`,checked:n.isFullTime??!1,onChange:e=>a(e.target.checked)})]})})]})}),n.startDate&&!n.isFullTime&&l(Hr,{item:!0,xs:12,children:l(q,{style:{flex:1},children:n.startDate&&!n.isFullTime&&l(TZ,{classes:f,handleChooseItem:c,activatedItem:p,timesOptions:i,endDate:n.endDate,startDate:n.startDate})})})]})})}),l(Nr,{className:f.actionContainer,children:l(q,{children:l(fi,{size:`small`,variant:`contained`,onClick:t,children:W(`common.labels.submit`)})})})]})},TZ=({timesOptions:e,activatedItem:t,handleChooseItem:n,endDate:r,startDate:i})=>{let a=e.find(e=>e.value===t),{classes:o,cx:s}=CZ();return d(q,{className:o.timeContainer,children:[(!r||a)&&e.map(e=>l(fi,{className:s({[o.box]:!0,[o.boxActivated]:t===e.value}),onClick:()=>n(e.value),startIcon:t===e.value?l(Eg,{}):``,children:e.label},e.value)),!a&&r&&l(lJ,{onlyRemaining:!0,time:{start:`${i?.getHours()??0}:${i?.getMinutes()??0}`,end:`${r?.getHours()??0}:${r?.getMinutes()??0}`,duration:dJ.difTime(r,i)}})]})},EZ=({actions:e,onSubmit:t,data:n,open:r,validation:i,onChange:a,datetime:o})=>{let s=Dt(e=>e.breakpoints.down(`sm`)),c=Dt(e=>e.breakpoints.between(`sm`,`lg`)),u=Dt(e=>e.breakpoints.up(`lg`)),{data:d,setAllDay:p,setEndTime:m,setStartTime:h,selectTime:g}
2743=uJ({startDate:n.start,endDate:n.end,isFullTime:n.isFullTime}),_=[{label:`1 ساعت`,value:`1:0`},{label:`1 ساعت و 30 دقیقه`,value:`1:30`},{label:`2 ساعت`,value:`2:0`},{label:`2 ساعت و 30 دقیقه`,value:`2:30`},{label:`3 ساعت`,value:`3:0`},{label:`4 ساعت`,value:`4:0`}];di(()=>{a(d)},[d]);let v=e=>{g(e)},y=()=>{t(d.startDate,d.endDate,dJ.difTime(d.endDate,d.startDate),d.isFullTime??!1)};return s?l(wZ,{validation:i,data:d,setAllDay:p,setEndTime:m,setStartTime:h,actions:e,onSubmit:y,timesOptions:_,handleChooseItem:v,datetime:o}):u||c?l(xZ,{validation:i,data:d,setAllDay:p,setEndTime:m,setStartTime:h,actions:e,onSubmit:y,timesOptions:_,handleChooseItem:v,datetime:o}):l(f,{})},DZ=B()({dialogTitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`,display:`flex`,justifyContent:`center`,alignItems:`center`},close:{position:`absolute`,right:`24px`},description:{margin:`8px`,"& .MuiInputBase-root":{height:`unset`}},textCancelMeeting:{color:`#fff`},cancelButton:{marginLeft:`8px`,height:`40px`,borderRadius:`6px`}}),OZ=({open:e,onClose:t,cancelationConfirm:n,discardMeetingLoading:r,value:i,onChange:a})=>{let{classes:o}=DZ();return d(Mr,{open:e,fullWidth:!0,maxWidth:Dt(e=>e.breakpoints.down(`sm`))?`xs`:`sm`,children:[d(Ir,{className:o.dialogTitle,children:[l(ui,{className:o.close,onClick:t,children:l(ci,{})}),l(q,{children:W(`commands.meetings.MeetingCanceled`)})]}),l(Lr,{}),l(Pr,{children:l(q,{children:l(wr,{name:`note`,className:o.description,fullWidth:!0,multiline:!0,onChange:e=>a(e.target.value),value:i,rows:4,maxRows:4,label:W(`common.labels.description`)})})}),l(Lr,{}),l(Nr,{children:l(fi,{disabled:r,onClick:n,className:o.cancelButton,variant:`contained`,children:r?l(Oi,{color:`white`}):W(`commands.meetings.MeetingCanceled`)})})]})},kZ=B()(e=>({content:{paddingTop:`32px !important`},contentMobile:{paddingTop:`16px !important`},details:{height:`unset`},timeContainer:{display:`flex`,flexDirection:`row`,gap:8,alignItems:`center`,flexWrap:`wrap`},dialogTitle:{textAlign:`center`,fontSize:`16px`,lineHeight:`20.7px`},close:{position:`absolute`,right:`16px`,top:`8px`},closeMobile:{position:`absolute`,right:`8px`,top:`5px`},attachmentContainer:{padding:`${e.spacing(1)} 0px`},timeValidation:{fontSize:14,color:`#D31F22`,display:`flex`,flexDirection:`row`,alignItems:`center`,gap:8},actionContainer:{display:`flex`,justifyContent:`space-around`,borderTop:`1px solid #D1D1D1`,padding:`12px 24px`,alignItems:`center`},actionContainerMobile:{borderTop:`1px solid #D1D1D1`,padding:0,display:`block`,[e.breakpoints.down(`sm`)]:{padding:e.spacing(1,2)}},parentButton:{display:`flex`,justifyContent:`space-between`},submitButtonMobile:{borderRadius:0},dialogTitleMobile:{backgroundColor:`#EFEFEF`,height:`48px`},paperMobile:{borderRadius:0},dialogContentMobile:{padding:e.spacing(1)},participatesList:{},titleCanceledMeeting:{display:`flex`,alignItems:`center`,textAlign:`right`,color:`#D96D56`,fontWeight:`700`,fontSize:`14px`,gap:4},titleCanceledMeetingMobile:{fontSize:`12px`},titleFinishedMeeting:{display:`flex`,alignItems:`center`,textAlign:`right`,color:e.palette.success.main,fontWeight:`700`,fontSize:`14px`,gap:4},titleFinishedMeetingMobile:{fontSize:`12px`},groupBtn:{display:`flex`,justifyContent:`space-around`},loadingContainer:{minHeight:400},infoSizeOfFile:{fontSize:`12px`,fontWeight:400,lineHeight:`16px`,letterSpacing:`0em`,textAlign:`right`,color:`#808080`},fileInputContainer:{display:`flex`,flexDirection:`row`,flexWrap:`wrap`,gap:8,alignItems:`center`},section:{gap:8,display:`flex`,flexDirection:`column`},description:{width:`100%`,borderRadius:`40px`,background:`#fff`},textArea:{height:`unset`}})),AZ=({actions:e,data:t,initialState:n,open:r,onClose:i,timeValidation:a,validation:o,pageLoading:s})=>{let{classes:c,cx:u}=kZ(),{isInvalid:p,getValidationError:m}=o,h=Dt(e=>e.breakpoints.down(`sm`)),[g]=ee(),_=g.get(`taskId`),v=e.saveLoading||!e.touched||e?.disabledMeeting||e.checkAvailability.isAvailable===!1;return d(f,{children:[!e.showMeetingMinutes&&!e.openMeetingHistoryDialog?d(Mr,{open:r,fullScreen:h,fullWidth:!0,maxWidth:h?!1:`lg`,classes:{paper:u({[c.paperMobile]:h})},children:[d(Ir,{borderBottom:`1px solid #D1D1D1`,classes:{root:u({[c.dialogTitleMobile]:h})},children:[l(q,{className:c.dialogTitle,children:e.pageMode===`create`?W(`meetings.labels.create-meeting`):W(`meetings.labels.viewMeeting`)}),l(ui,{className:u({[c.close]:!h,[c.closeMobile]:h}),onClick:()=>i(),children:l(ci,{})})]}),d(Pr,{classes:{root:u({[c.dialogContentMobile]:h})},children:[s&&l(q,{className:c.loadingContainer,children:l(Oi,{})}),!s&&l(q,{className:u({[c.content]:!h,[c.contentMobile]:h}),children:d(Hr,{container:!0,spacing:2,children:[l(Hr,{item:!0,xs:12,children:l(kz,{isMobile:h,tags:{allTags:e.allTags??[],selectedTags:e.selectedTags??[],isDeletingTag:e.isDeletingTag,isEditingTag:e.isEditingTag,isCreatingTag:e.isCreatingTag,handleChangeTags:e.handleChangeTags,handleCreateTag:e.handleCreateTag,handleUpdateTag:e.handleUpdateTag,handleDeleteTag:e.handleDeleteTag,handleFetchUsedCount:e.handleFetchUsedCount,tagOption:e.tagOption},history:e.pageMode===`edit`?{onClick:e.getMeetingHistory,disabled:e.meetingHistoryLoading||e?.disabledMeeting,isVisibleHistoryDialog:e.openMeetingHistoryDialog}:void 0})}),l(Hr,{item:!0,xs:12,md:6,children:l(q,{children:l(pN,{name:`title`,label:`${W(`meetings.labels.titleMeeting`)} *`,fullWidth:!0,disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,value:t.title??``,onChange:t=>e.onChangeData(t.target.name,t.target.value),error:p(`title`),helperText:m(`title`)||``})})}),l(Hr,{item:!0,xs:12,md:6,children:l(q,{children:l(gN,{label:`${W(`meetings.labels.dateMeeting`)} *`,minimumDate:t.weeklyRecurrentInCertainDays?.recurrenceStart,hideClose:e.isFinished,disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,onChange:t=>{e.onChangeData(`dateTime`,t)},value:t.dateTime,name:`dateTime`,error:p(`dateTime`)||!!e.errorValidation,helperText:m(`dateTime`)||e.errorValidation||``})})}),l(Hr,{item:!0,xs:12,md:6,children:l(q,{children:l(lN,{noOptionsText:W(`common.messages.noOptions`),value:t?.meetingLocation,onChange:(t,n)=>{e.onChangeData(`meetingLocation`,n)},onOpen:()=>!e.getStatusDisable()&&!e.isFinished&&e.setOpenAutocomplete(!0),onClose:()=>e.setOpenAutocomplete(!1),disabled:e.getStatusDisable()||e?.disabledMeeting,open:e.openAutocomplete,options:e.meetingsLocationsData,isOptionEqualToValue:(e,t)=>
2743e.id===t.id,getOptionLabel:e=>`${e?.title}`,filterSelectedOptions:!0,renderInput:n=>l(pN,{...n,name:`meetingLocation`,variant:`outlined`,label:`${W(`meetings.labels.select-meeting-location`)} *`,disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,error:e.checkAvailability.isAvailable===!1||p(`meetingLocation`),helperText:l(Vre,{...e.checkAvailability,defaultText:m(`meetingLocation`)}),InputProps:{...n.InputProps,endAdornment:d(f,{children:[t?.meetingLocation?.id&&l(ui,{disabled:e.isFinished||e?.disabledMeeting,size:`small`,onClick:()=>e.openLocationInfoDialog(t?.meetingLocation),children:l(Bv,{fontSize:`small`,sx:{stroke:`#ffffff`,strokeWidth:.5}})}),!e.getStatusDisable()&&l(ui,{disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,size:`small`,onClick:()=>!e.getStatusDisable()&&e.setOpenAutocomplete(e=>!e),children:l(hi,{fontSize:`small`,sx:{stroke:`#ffffff`,strokeWidth:.5}})})]})}})})})}),l(Hr,{item:!0,xs:12,md:6,children:l(sJ,{actions:e,data:t})}),d(Hr,{item:!0,xs:12,md:12,children:[l(dN,{title:`${W(`meetings.labels.timeMeeting`)} *`}),d(q,{className:c.timeContainer,children:[!e.getStatusDisable()&&l(fi,{disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,variant:`outlined`,onClick:()=>e.setShowTimeDialog(!0),startIcon:l(ste,{}),children:W(`meetings.labels.setTimeMeeting`)}),l(lJ,{time:{start:`${(t.startDate?.getHours()??0).toString().padStart(2,`0`)}:${(t.startDate?.getMinutes()??0).toString().padStart(2,`0`)}`,end:`${(t.endDate?.getHours()??0).toString().padStart(2,`0`)}:${(t.endDate?.getMinutes()??0).toString().padStart(2,`0`)}`,duration:t.duration},isFullTime:t.isFullTime}),o.isInvalid(`startDate`)&&o.isInvalid(`endDate`)&&d(si,{className:c.timeValidation,children:[l(dv,{fontSize:`small`}),l(q,{children:W(`meetings.labels.setTimeMeeting`)})]}),e.errorValidation&&d(si,{className:c.timeValidation,children:[l(dv,{fontSize:`small`}),l(q,{children:e.errorValidation})]})]})]}),l(Hr,{item:!0,xs:12,md:12,children:d(q,{className:c.section,children:[l(dN,{title:W(`meetings.labels.participants`)??``}),!e.getStatusDisable()&&l(Uz,{disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,contacts:e.contacts,onChangeContact:(t,n)=>e.addContactParticipates(n),onChangeEmployee:(t,n)=>e.handleChangeEmployeesParticipants(n),onAddEmployee:(t,n)=>e.addEmployeeParticipates(n),organizationId:e.organizationId,selectedContacts:t.contactParticipants,selectedEmployees:t.employeeParticipants,type:e.participatesMode,onChangeType:e.onChangeType}),l(q,{className:c.participatesList,children:l(Gz,{expanded:e.expanded,changeExpanded:e.setExpanded,disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,selectedContacts:t.contactParticipants,selectedEmployees:t.employeeParticipants,onRemoveContact:e.removeContactParticipates,onRemoveEmployee:e.removeEmployeeParticipates})})]})}),l(Hr,{item:!0,xs:12,md:12,children:d(q,{className:c.section,children:[l(dN,{title:W(`meetings.labels.attachments`)??``}),!e.getStatusDisable()&&d(q,{className:c.fileInputContainer,children:[d(nr,{variant:`outlined`,disabled:e.getStatusDisable()||e?.disabledMeeting,component:`label`,startIcon:l(I_,{}),children:[W(`secretariats.labels.chooseAttachment`),l(`input`,{type:`file`,hidden:!0,value:[],onChange:t=>e.addAttachment(t.target.files?.[0])})]}),l(si,{className:c.infoSizeOfFile,children:W(`meetings.messages.sizeFile`)})]}),l(q,{className:c.attachmentContainer,children:l(wre,{isFinished:e.isFinished,disabled:e.getStatusDisable()||e?.disabledMeeting,attachments:t.attachments,handleDeleteAttachment:(t,n)=>{e.removeAttachment(t.id,n)},handleDownloadAttachment:e.handleDownloadAttachment})})]})}),l(Hr,{item:!0,xs:12,md:12,children:d(q,{className:c.section,children:[l(dN,{title:W(`meetings.labels.addMeetingOrder`)??``}),l(Nz,{disabled:e.getStatusDisable()||e.isFinished||e?.disabledMeeting,onChange:(t,n)=>e.onChangeData(t,n),value:t?.meetingOrder},t.id)]})}),l(Hr,{item:!0,xs:12,md:12,children:l(q,{children:l(pN,{InputProps:{classes:{root:c.textArea}},name:`description`,variant:`outlined`,label:W(`secretariats.labels.note`),multiline:!0,onChange:t=>e.onChangeData(t.target.name,t.target.value),value:t.description??``,classes:{root:c.description},disabled:e?.disabledMeeting})})})]})})]}),!s&&l(Nr,{className:u({[c.actionContainer]:!h,[c.actionContainerMobile]:h,[c.parentButton]:!0}),children:d(f,{children:[e.pageMode===`edit`&&d(q,{className:c.groupBtn,children:[e.isMobile&&l(Are,{open:e.openMoreActionButton,handleToggle:()=>{e.setOpenMoreActionButton(e=>!e)},handleCancel:()=>{e.setShowCanceledDialog(!0),e.setOpenMoreActionButton(e=>!e)},handleMinutes:()=>{e.setShowMeetingMinutes(!0),e.setOpenMoreActionButton(e=>!e)},handleFinish:()=>{e.setOpenFinishingDialog(!0),e.setOpenMoreActionButton(e=>!e)},isFinished:e.isFinished,isCanceled:e.getStatusDisable(),isEdit:e.lengthHandlerMeetingMinutes(),allowCancelMeeting:e.allowCancelMeeting,allowFinishMeeting:e.allowFinishMeeting,allowMinutes:e.allowMinutes,handleMeetingHistory:e.getMeetingHistory,disabled:e?.disabledMeeting}),!e.isMobile&&d(f,{children:[!e.isCanceled&&!e.isFinished&&!e?.disabledMeeting&&e.allowCancelMeeting&&l(kre,{onClick:()=>e.setShowCanceledDialog(!0)}),e.allowMinutes&&l(Mre,{isCanceled:e.isCanceled||e.isFinished,isEdit:e.lengthHandlerMeetingMinutes(),onClick:()=>e.setShowMeetingMinutes(!0),disabled:e?.disabledMeeting})]})]}),e.isFinished&&d(q,{className:u(c.titleFinishedMeeting,{[c.titleFinishedMeetingMobile]:h}),children:[l(gi,{color:`success`}),W(`meetings.labels.finalizedMeeting`)]}),e.isCanceled&&d(q,{className:u(c.titleCanceledMeeting,{[c.titleCanceledMeetingMobile]:h}),children:[l(gi,{color:`error`}),W(`meetings.labels.cancelMeeting`)]}),l(q,{style:{flex:1}}),!e.isMobile&&!e.isFinished&&!e.isCanceled&&!e?.disabledMeeting&&e.pageMode===`edit`&&e.allowCancelMeeting&&l(jre,{onClick:()=>e.setOpenFinishingDialog(!0)}),(e.allowCreateOrEditMeeting||e.allowEditDescription)&&l(q,{children:d(fi,{className:u({[c.submitButtonMobile]:h}),onClick:e.createMeeting,variant:`contained`,fullWidth:h,disabled:v,children:[!e.saveLoading&&W(`common.labels.save`),e.saveLoading&&l(Oi,{color:`white`})]})})]})})]}):l(`div`,{children:l(iz,{initialState:n?.minutes,isEdit:e.lengthHandlerMeetingMinutes(),canceled:e.isCanceled,finished:e.isFinished,value:t.minutes,onChangeMinutes:e.onCh
2743angeMinutes,meetingMinutesLoading:e.meetingMinutesLoading,resolutionsHaveUnsavedChanges:e.resolutionsHaveUnsavedChanges,meetingMinutesData:e.meetingMinutesData,minutesSubmitError:e.minutesSubmitError,open:!!(e.showMeetingMinutes&&!_),onClose:e.handleCloseMeetingMinutes,resolutions:e.resolutions,onAddResolution:e.onAddResolution,resolutionActions:e.resolutionActions,taskActions:e.taskActions})},n?.minutes),l(EZ,{validation:a,open:e.showTimeDialog,actions:e,onSubmit:e.onSubmitTime,onChange:e.onChangeTime,data:{end:t.endDate,start:t.startDate,isFullTime:t.isFullTime},datetime:t.dateTime}),l(Fre,{open:e.meetingsLocationInfoDialog.open,onClose:e.closeLocationInfoDialog,data:e.meetingsLocationInfoDialog.data,onChangeDate:e.handleChangeDateMeetingReservations,valueDate:e.meetingReservationDate,reservationDate:e.meetingsReservationsData,loadingReservation:e.loadingReservation}),l(Ore,{open:e.openPositionsDialog,onClose:()=>{e.setOpenPositionsDialog(!1),i()},onSubmit:e.handleSelectPosition,positions:e.positions,userProfile:e.userProfile.data}),l(OZ,{open:e.showCanceledDialog,onClose:()=>{e.setShowCanceledDialog(!1)},onChange:e.handleChangeNote,value:e.note,cancelationConfirm:e.cancelConfirm,discardMeetingLoading:e.discardMeetingLoading}),l(Yz,{open:e.openCancelRecurringMeetingDialog,onClose:()=>{e.setOpenCancelRecurringMeetingDialog(!1)},recurrenceInstanceChangeType:e.meetingInstanceMode===`edit`?e.recurrentMeetingEditTypes:e.recurrentMeetingCancelTypes,onChangeRecurrentMeetingEditType:e.handleChangeCancelRecurrentMeetingType,selectedRecurrentMeetingEditType:e.selectedRecurrentMeetingCancelType,onClickEditMeeting:e.cancleConfirmRecurringMeeting,loading:e.discardMeetingLoading,meetingInstanceMode:e.meetingInstanceMode}),l(zN,{open:e.openMeetingHistoryDialog,onClose:e.handleCloseMeetingHistoryDialog,historyData:e.meetingHistoryData,loading:e.meetingHistoryLoading,historyType:`meeting`,subject:t.title}),l(Nre,{open:e.openFinishingDialog,loading:e.finishMeetingLoading,onClose:()=>e.setOpenFinishingDialog(!1),onConfirm:e.finishConfirm})]})},jZ=({actions:e,data:t,initialState:n,onClose:r,open:i,timeValidation:a,validation:o,pageLoading:s,discardMeetingLoading:c})=>l(AZ,{actions:e,data:t,initialState:n,onClose:r,open:i,timeValidation:a,validation:o,pageLoading:s,discardMeetingLoading:c}),MZ=({actions:e,data:t,initialState:n,open:r,onClose:i,timeValidation:a,validation:o,pageLoading:s,discardMeetingLoading:c})=>l(AZ,{actions:e,data:t,initialState:n,open:r,onClose:i,timeValidation:a,validation:o,pageLoading:s,discardMeetingLoading:c}),NZ=({open:e,onClose:t,data:n,initialState:r,actions:i,timeValidation:a,validation:o,pageLoading:s,discardMeetingLoading:c})=>{let u=Dt(e=>e.breakpoints.down(`sm`)),d=Dt(e=>e.breakpoints.between(`sm`,`lg`)),p=Dt(e=>e.breakpoints.up(`lg`));return u?l(jZ,{pageLoading:s,timeValidation:a,validation:o,onClose:t,open:e,actions:i,data:n,initialState:r,discardMeetingLoading:c}):d?l(MZ,{pageLoading:s,timeValidation:a,validation:o,onClose:t,open:e,actions:i,data:n,initialState:r,discardMeetingLoading:c}):p?l(AZ,{pageLoading:s,timeValidation:a,validation:o,onClose:t,open:e,actions:i,data:n,initialState:r,discardMeetingLoading:c}):l(f,{})},PZ={attachments:Dj.default.array().optional(),title:Dj.default.string().required(),meetingOrder:Dj.default.optional().allow(``),dateTime:Dj.default.string().required(),startDate:Dj.default.date().required(),endDate:Dj.default.date().required(),isFullTime:Dj.default.boolean().required(),meetingLocation:Dj.default.required(),description:Dj.default.optional().allow(``)},FZ={startDate:Dj.default.required(),endDate:Dj.default.required()},IZ=cN(`validation`,{comparers:null,initialState:{},schema:PZ})(cN(`timeValidation`,{comparers:null,initialState:{},schema:FZ})(({validation:e,timeValidation:t,open:n,onClose:r,actions:i,data:a,initialState:o,pageLoading:s,discardMeetingLoading:c})=>{let[u,d]=(0,J.useState)(``),{onChangeData:f,onSubmitTime:p,createMeeting:m,submitOperationsAsync:h,addAttachment:g,removeAttachment:_,handleConfirmRecurrentTime:v,...y}=i,{pageMode:b}=y,x=(t,n,r)=>{e.validationOnChange({target:{name:t,value:n}}),f(t,n),r?.stopPropagation()},S=(n,r,i,a)=>{let o=t.validationOnSubmit({startDate:n,endDate:r});e.validationOnChanges([{target:{name:`startDate`,value:n}},{target:{name:`endDate`,value:r}}]),(o||a)&&p(n,r,i,a)},C=()=>{let{touched:t}=e;return!t.includes(`dateTime`)&&!t.includes(`startDate`)&&!t.includes(`endDate`)?!0:a?.startDate?i.isMeetingStartTimePast(new Date(a.dateTime),a.startDate)?(d(`این فیلد نمی تواند زمان گذشته باشد`),!1):(d(``),!0):!1},w=()=>
2743{if(!a)return;let t=e.validationOnSubmit({...a,isFullTime:`${a.isFullTime}`});C()&&t&&(b===`edit`?i.selectedRecurrenceType===`no-recurrent`?i.recurrenceTouch.isTouched()?i.setOpenDeleteMeetingsRecurrenceDialog(!0):T():y?.meetingDetails?.recurrenceData?(i.setMeetingInstanceMode(`edit`),i.recurrenceTouch.isTouched()?i.setOpenEditRecurrenceItemMeetingTypeDialog(!0):i.setOpenRecurrentMeetingEditTypeDialog(!0)):T():T())},T=()=>{a&&e.validationOnSubmit({...a,isFullTime:`${a.isFullTime}`})&&(e.touched?.length||i.attachmentsTouch.isTouched()||i.recurrenceTouch.isTouched()||i.isTouched?m():h({}))};(0,J.useEffect)(()=>{},[e.touched,a?.attachments,a?.contactParticipants,a?.employeeParticipants]);let E=e=>{t.validationOnChanges([{target:{name:`endDate`,value:e.endDate}},{target:{name:`startDate`,value:e.startDate}}])};return l(NZ,{pageLoading:s,validation:e,timeValidation:t,data:a,initialState:o,open:n,onClose:r,discardMeetingLoading:c,actions:{...y,onChangeData:x,onSubmitTime:S,handleCreateOrEditMeeting:T,createMeeting:w,onChangeTime:E,errorValidation:u,submitOperationsAsync:h,touched:e.touched.length||i.isTouched||i.participantsTouch.isTouched()||i.attachmentsTouch.isTouched()||i.recurrenceTouch.isTouched(),addAttachment:g,removeAttachment:_,handleConfirmRecurrentTime:v}})})),LZ=(e,t)=>{let n=e?.startDate?new Date(e.startDate):null,r=e?.endDate?new Date(e.endDate):null,i=e?.tags??[],a=!1,o=0,s=``,c=e?.recurrenceData,l=!!c,u={};return n&&r&&(o=r.getTime()-n.getTime(),a=o===8634e4,s=dJ.difTime(r,n)),l&&(u=vM(c,e?.startDate)),{id:t??ge(),title:e?.title??``,description:e?.description,meetingOrder:e?.meetingOrder,duration:s??``,startDate:e?.startDate?new Date(e.startDate):null,endDate:e?.endDate?new Date(e.endDate):null,isFullTime:a,dateTime:e?.startDate??``,attachments:e?.attachments??[],meetingLocation:e?.meetingLocation,employeeParticipants:e?.employeeParticipants??[],contactParticipants:e?.contactParticipants??[],operation:e?.operations?.find?.(e=>e.type===`create`)?.id??ge(),status:e?.status??`tentative`,minutes:e?.minutes?JSON.parse(e?.minutes):null,isRecurring:l,tags:i,...u}},RZ={admin:{strategy:Nk?.PAGE.MEETINGS_ADMINS,behavior:zk.hidden},deleteTag:{strategy:Nk.CQ.MEETINGS.TAGS.DELETE,behavior:zk.hidden},updateTag:{strategy:Nk.CQ.MEETINGS.TAGS.UPDATE,behavior:zk.hidden}},zZ=e=>Vk({schema:RZ})(e),BZ={id:``,title:``,duration:``,startDate:null,endDate:null,isFullTime:!1,dateTime:``,attachments:[],meetingLocation:null,employeeParticipants:[],contactParticipants:[],operation:``,status:`tentative`,minutes:null,isRecurring:!0,tags:[]},VZ=Kj(Yj(zZ(Ze(e=>{let t=e.meetings.meetingsDetails,n=e.meetings.meetingsDetailsEdit,{meetingHistory:r,meetingsReservations:i,meetingLocationAvailability:a}=e.meetings;return{meetingDetails:t,meetingDetailsEdit:n,meetingsReservations:i,meetingCancel:e.meetings.meetingCancel,meetingFinish:e.meetings.meetingFinish,meetingMinutes:e.meetings.meetingMinutes,meetingMinutesEdit:e.meetings.meetingMinutesEdit,meetingHistory:r,meetingLocationAvailability:a,tags:e.tags,tasks:e.tasks}},{meetingsDetailsAsync:iT,meetingsDetailsEditAsync:sT,meetingsDetailsReset:NT,getMeetingsReservationsAsync:rT,meetingCancelAsync:aT,createMeetingMinutesAsync:dT,createMeetingMinutesReset:BT,meetingMinutesEditReset:HT,createMeetingResolutionAsync:fT,createMeetingResolutionsBatchAsync:pT,deleteMeetingResolutionAsync:hT,updateMeetingResolutionAsync:mT,assignMeetingResolutionTaskAsync:_T,assignMeetingResolutionTaskReset:VT,unassignMeetingResolutionTaskAsync:vT,createTaskAsync:ND,updateTaskAsync:PD,assignAsync:VD,editMeetingMinutesAsync:yT,meetingHistoryAsync:kT,meetingHistoryReset:UT,meetingFinishAsync:oT,getMeetingsAsync:DT,fetchOrganizationTagsAsync:Jw,createTagAsync:Yw,updateTagAsync:Xw,deleteTagAsync:Qw,fetchTagUsedCountAsync:Zw,updateMeetingTagsAsync:cT,meetingLocationAvailabilityAsync:jT,meetingLocationAvailabilityReset:WT})(({dataProvider:e,getMeetingsAsync:t,meetingDetails:n,meetingsDetailsAsync:r,meetingsDetailsEditAsync:i,meetingDetailsEdit:a,meetingsDetailsReset:o,getMeetingsReservationsAsync:s,meetingsReservations:c,meetingFinishAsync:u,meetingFinish:d,meetingCancelAsync:p,meetingCancel:m,createMeetingMinutesAsync:g,createMeetingResolutionAsync:_,createMeetingResolutionsBatchAsync:v,deleteMeetingResolutionAsync:y,updateMeetingResolutionAsync:b,assignMeetingResolutionTaskAsync:x,assignMeetingResolutionTaskReset:S,unassignMeetingResolutionTaskAsync:C,createTaskAsync:w,updateTaskAsync:T,assignAsync:E,meetingMinutes:O,meetingMinutesEdit:k,createMeetingMinutesReset:A,meetingMinutesEditReset:j,editMeetingMinutesAsync:M,security:N,meetingHistoryAsync:P,meetingHistoryReset:F,meetingHistory:I,updateMeetingTagsAsync:L,fetchOrganizationTagsAsync:R,createTagAsync:z,updateTagAsync:te,deleteTagAsync:ne,fetchTagUsedCountAsync:re,meetingLocationAvailabilityAsync:ie,meetingLocationAvailabilityReset:ae,tasks:oe,meetingLocationAvailability:se,tags:ce})=>{let{meetingsLocations:le,meeting:B,positions:ue,userProfile:de,contacts:fe,employees:pe,organizationPositions:me,employeeContacts:_e,addingContactParticipatesThunk:ve,addingEmployeeParticipatesThunk:ye,removingContactParticipatesThunk:be,removingEmployeeParticipatesThunk:xe}=e,{selectedPosition:Se,openCheckStatusOveredDialog:Ce,handleOpenCheckStatusOveredDialog:V,openMeetingDialog:we,setOpenMeetingDialog:Te,setOpenTaskDialog:Ee}=hg(),{signedInUser:De}=xc(),Oe=D(),{organizationId:ke}=h(),[Ae,je]=ee(),{t:Me}=Ye(),Pe=(0,J.useMemo)(()=>Ae.get(`meetingId`),[Ae]),H=Ae.get(`taskId`),[U,Ie]=(0,J.useState)(LZ(BZ,Pe)),[Le,Re]=(0,J.useState)(LZ(BZ,Pe)),[ze,Be]=(0,J.useState)([]),[Ve,He]=(0,J.useState)(new Date),[Ue,W]=(0,J.useState)(!1),[We,Ge]=(0,J.useState)(!1),[Ke,qe]=(0,J.useState)(!1),[Je,Xe]=(0,J.useState)(!1),[Ze,Qe]=(0,J.useState)(!1),[$e,et]=(0,J.useState)(!1),tt=(0,J.useRef)($e);tt.current=$e;let nt=(0,J.useRef)(!1),[rt,it]=(0,J.useState)([]),[at,ot]=(0,J.useState)(!1),[st,ct]=(0,J.useState)(!1),[lt,ut]=(0,J.useState)(!1),[dt,ft]=(0,J.useState)(``),[pt,mt]=(0,J.useState)({open:!1,data:null}),[ht,gt]=(0,J.useState)(!1),[_t,vt]=(0,J.useState)(!1),[yt,bt]=(0,J.useState)([]),[xt,St]=(0,J.useState)(`contact`),[Ct,wt]=(0,J.useState)(!1),[Tt,Et]=(0,J.useState)([]),[Ot,G]=(0,J.useState)(!1),[kt,At]=(0,J.useState)(null),{selectedTags:jt,originalTags:Mt,setSelectedTags:Nt,setOriginalTags:Pt}=Ej(ce),[Ft,It]=(0,J.useState)({loading:!1,isAvailable:null,conflictingMeeting:null}),Lt=()=>{!ke||!Se?.position?.id||R({organizationId:ke,limit:1e3,offset:0})},Rt=(0,J.useCallback)((e,t=!1)=>
2743{if(Nt(e??[]),t)Pt(e??[]);else{let t=(Mt??[]).map(e=>e.id).sort(),n=(e??[]).map(e=>e.id).sort();G(JSON.stringify(t)!==JSON.stringify(n))}},[Mt]),zt=(0,J.useCallback)(()=>{let e=JSON.stringify(Le)!==JSON.stringify(U),t=(Mt??[]).map(e=>e.id).sort(),n=(jt??[]).map(e=>e.id).sort();return JSON.stringify(t)!==JSON.stringify(n)&&!e},[Le,U,Mt,jt]),Bt=(0,J.useCallback)(()=>{let e=new Set((Mt??[]).map(e=>e.id)),t=new Set((jt??[]).map(e=>e.id)),n=[];return jt.forEach(t=>{e.has(t.id)||n.push({id:t.id,action:`add`})}),Mt.forEach(e=>{t.has(e.id)||n.push({id:e.id,action:`remove`})}),n},[Mt,jt]),Vt=(0,J.useCallback)(e=>{if(!ke||!De||!De.id||!Se||!Se.position){he.error(Me(`tags.error.info-not-found`));return}let{id:t,...n}=e,{error:r,value:i}=Oj.validate({...n,organizationId:ke});if(r){he.error(r.details[0].message);return}z({id:t,title:i.title,color:i.color,organization:{id:i.organizationId},creator:{user:{id:De.id},position:{id:Se.position.id,slot:Se.position.slot}}})},[ke,De,Se]),Ht=(0,J.useCallback)(async(e,t)=>{let n=jt.find(t=>t.id===e);await te({id:e,title:t.title||n?.title||``,color:t.color||n?.color||``,checkStatusOveredFunction:tn})},[te,jt]),Ut=(0,J.useCallback)(async e=>{await ne({tagId:e,checkStatusOveredFunction:tn})},[ne,jt]),Wt=(0,J.useCallback)(async e=>{try{let t=await re({tagId:e});return t.payload?.success&&t.payload?.data?{domains:t.payload.data.domains}:null}catch{return null}},[re]);(0,J.useEffect)(()=>{Pe&&(Te(!0),Fn())},[Pe]),(0,J.useEffect)(()=>{it([])},[Pe]),(0,J.useEffect)(()=>{S(),it(e=>PM(n.data,e))},[n.data]),(0,J.useEffect)(()=>{ke&&Lt()},[ke]),(0,J.useEffect)(()=>{let{data:e}=ce.list;Array.isArray(e)&&Et(e.map(e=>{let t=e.color,n=Uw(t??``);return{id:e.id,title:e.title||e.name||e.label||``,color:n.background,textColor:e.textColor||n.text}}).filter(e=>!!e.id))},[ce.list.data]);let Gt=e=>{St(()=>e)},Kt=Ae.get(`recurrenceIndex`)===null?null:Number(Ae.get(`recurrenceIndex`)),qt=xc(),[Jt,Yt]=(0,J.useState)(!1),Xt=()=>{Oe(Gj(location,e=>{let{meetingId:t,recurrenceIndex:n,...r}=e;return r})),Te(!1)},Zt=(0,J.useMemo)(()=>Ae.get(`meetingId`)?`edit`:`create`,[Ae]),Qt=()=>Pe??U.id??null,[$t,en]=(0,J.useState)(!1),tn=e=>{V(e),en(!0)},nn=V;di(()=>{!Ce&&$t&&kt&&(Nt(jt.filter(e=>e.id!==kt)),At(null))},[Ce,$t,kt,jt]),di(()=>{RM({overedDialogWasOpened:$t,overedDialogIsOpen:Ce,minutesOpen:tt.current})&&Xt()},[Ce]);let[rn,an]=(0,J.useState)(`edit`),{currentOrganizationPositions:on,setPosition:sn,creatingOrUpdatingMeetingPosition:cn,minutesMeetingPosition:ln,cancelMeetingPosition:un,finishMeetingPosition:dn,allowCreateOrEditMeeting:fn,allowEditDescription:pn,allowCancelMeeting:mn,allowMinutes:hn,allowFinishMeeting:gn}=$j(ue?.data,n?.data,Zt===`create`,N?.admin?.allow||!1),_n=e=>{ft(e)},vn=(0,J.useMemo)(()=>le?.data?.filter?.(e=>!e?.isDisabled)??[],[le?.data]),yn=(0,J.useMemo)(()=>m.status===`pending`,[m.status]),bn=Qj(n.data),xn=Zj(n.data),Sn=SM(n?.data?.recurrenceData,n?.data?.startDate),[Cn,wn]=(0,J.useState)(()=>n.status===`pending`&&Zt===`edit`),[Tn,En]=(0,J.useState)(!1),Dn=e=>mt({open:!0,data:e}),On=()=>mt({open:!1,data:null}),kn=e=>{Yt(!0);let t={...e?.reduce?.((e,t)=>
2743({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{})??[]},n=Object.values(t);bn.changeEmployee(n),Ie(e=>({...e,employeeParticipants:n}))},An=e=>{if(e){Yt(!0);let t=U.employeeParticipants.reduce((e,t)=>({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{}),n=e.reduce((e,t)=>({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{}),r={...t,...n},i=Object.values(r);bn.changeEmployee(i),Ie(e=>({...e,employeeParticipants:i}))}},jn=e=>{e&&(bn.changeEmployee(U.employeeParticipants.filter(t=>`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`!=`${e?.position?.id}-${e?.position?.slot?.join(`,`)}`)),Ie(t=>({...t,employeeParticipants:t.employeeParticipants.filter(t=>`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`!=`${e?.position?.id}-${e?.position?.slot?.join(`,`)}`)})))},Mn=e=>{if(e){Yt(!0);let t=U.contactParticipants.reduce((e,t)=>({...e,[`${t?.id}`]:t}),{}),n=e.reduce((e,t)=>({...e,[`${t?.id}`]:t}),{}),r={...t,...n},i=Object.values(r);bn.changeContact(i??[]),Ie(e=>({...e,contactParticipants:i}))}},Nn=e=>{e&&Ie(t=>{let n=t.contactParticipants.filter(t=>t.id!==e.id);return bn.changeContact(n??[]),{...t,contactParticipants:n}})},{uploadDocument:Pn}=zj({domain:`meetings`}),Fn=()=>{Pe&&(wn(!0),r({meetingId:Pe,recurrenceIndex:Kt}))},In=(0,J.useCallback)(async(e=Pe)=>e?(await r({meetingId:e,recurrenceIndex:Kt}))?.payload?.data??null:null,[Pe,Kt,r]),Ln=(0,J.useCallback)(async({mergeDrafts:e=!1,meetingId:t=Pe}={})=>{if(!t)return!1;let n=OM(await r({meetingId:t,recurrenceIndex:Kt}));return n?(it(t=>e?NM(n,t):n),!0):!1},[Pe,Kt,r]);(0,J.useEffect)(()=>{we&&ke&&(Rn(),Fn())},[ke,we]),di(()=>{Cn&&wn(!1);let{tags:e}=n.data||{};if(e){let t=e.map(e=>{let{text:t,background:n}=Uw(e?.color??``);return{...e,color:n,textColor:t}});Nt(t),Pt(t)}if(tt.current)return;let t=LZ(n.data,Pe);Ie(()=>t),Re(()=>t)},[n.data]),(0,J.useEffect)(()=>()=>{let e=BZ;Ie(e),Re(e),o(),F(),ae(),le.reset(),fe.reset(),pe.reset(),me.reset(),_e.reset(),bn.reset()},[ke]),(0,J.useEffect)(()=>{I.data&&I.status===`success`&&(bt(I.data),gt(!1))},[I]);let Rn=(0,J.useCallback)(async()=>{if(ke){let e={organizationId:ke,queryObject:{limit:1e3,offset:0}};le.get(e);let t={path:`${ke}`,queryObject:{limit:1e4,offset:0}};fe.get(t);let n={path:`${ke}/employees`,queryObject:{limit:1e3,offset:0}};pe.get(n),me.get({path:`organization/${ke}`,queryObject:{limit:1e3,offset:0}}),_e.get({path:`${ke}/employee-contacts`,queryObject:{limit:1e3,offset:0}})}},[ke]),zn=e=>{},Bn=(e,t,n,r)=>{Ie(i=>({...i,startDate:e,endDate:t,duration:n,isFullTime:r})),qe(!1)},Vn=(e,t)=>{Ie(n=>({...n,[e]:t}))};(0,J.useEffect)(()=>{c.data&&Be(c.data)},[c.data]);let Hn=e=>{if(U?.meetingLocation?.id){let t=Fe(e),n=Ne(e);s({id:U.meetingLocation.id,fromDate:t,toDate:n})}},Un=e=>{He(e)};(0,J.useEffect)(()=>{U&&He(U.dateTime?new Date(U.dateTime):new Date)},[U?.dateTime]),di(()=>{pt.open&&Hn(Ve.toString())},[Ve,U?.meetingLocation,pt.open]);let Wn=e=>{e&&Ie(t=>{let n={...t,attachments:[...t.attachments,e]};return xn.changeAttachments(n),{...t,attachments:[...t.attachments,e]}})},Gn=(e,t)=>{Ie(n=>{let r=n.attachments.filter((n,r)=>e?n.id!==e:r!==t);return xn.changeAttachments(r),{...n,attachments:r}})},Kn=async e=>{Uj(e.id,e.name)},qn=e=>{sn(ue.data.find(t=>t.id===e)),En(!1)},Jn=()=>({position:{id:cn?.id??``,slot:cn?.slot},user:{id:De?.id??``}}),Yn=(e,t)=>{let n=new Date(e);return n.setHours(t?.getHours()??0,t?.getMinutes()??0,0,0),n},Xn=e=>(e??[]).map(e=>Number(JSON.parse(e)?.index??0)).sort((e,t)=>e-t).join(`,`),Zn=e=>{let t=e??{weeklyRecurrentInCertainDays:U.weeklyRecurrentInCertainDays,dateTime:U.dateTime,startDate:U.startDate},n=t.weeklyRecurrentInCertainDays?.selectedRecurrentDays??[],r=t.startDate??(t.dateTime?Yn(t.dateTime,U.startDate):Yn(U.dateTime,U.startDate)),i=r.getTimezoneOffset()*60*1e3,a=new Date(new Date(r).setHours(0,0,0,0)),o=r.getTime()-a.getTime();return Math.sign(i)===-1&&o<Math.abs(i)?n.map(e=>{let t=Number(JSON.parse(e)?.index??0);return[JSON.stringify({...e,index:t===0?`6`:`${t-1}`})]}):Math.sign(i)===1&&o>Math.abs(i)?n.map(e=>{let t=Number(JSON.parse(e)?.index??0);return[JSON.stringify({...e,index:t===6?`0`:`${t+1}`})]}):n},Qn=(e,t)=>{try{return e&&t?new Date(new Date(e).setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())):void 0}catch{return}},$n=(0,J.useMemo)(()=>{let e={};if(Zt!==`edit`)return e;if(n.data){let{startDate:t,endDate:r,dateTime:i,meetingLocation:a,isRecurring:o,weeklyRecurrentInCertainDays:s}=LZ(n.data,Pe);if(t&&r&&a?.id&&i){let n=Yn(i,t);o&&(e.recurrencePattern=hM(Zn({weeklyRecurrentInCertainDays:s,dateTime:i,startDate:n})),e.recurrenceStart=n?.toISOString(),e.recurrenceEnd=Qn(s?.recurrenceEndDate,r)?.toISOString())}return e}},[Zt,n.data,Pe]),er=(0,J.useCallback)(async e=>{if(se.status!==`pending`&&!(Zt===`edit`&&!$n)&&U.startDate&&U.endDate&&U.meetingLocation?.id&&U.dateTime){let t=Yn(U.dateTime,U.endDate),r=Yn(U.dateTime,U.startDate),i={};U.weeklyRecurrentInCertainDays&&(i.recurrencePattern=hM(Zn()),i.recurrenceStart=r?.toISOString(),i.recurrenceEnd=Qn(U.weeklyRecurrentInCertainDays?.recurrenceEndDate,U.endDate)?.toISOString());let a=LZ(n.data,Pe)?.weeklyRecurrentInCertainDays?.selectedRecurrentDays??[],o=U.weeklyRecurrentInCertainDays?.selectedRecurrentDays??[],s=Xn(a)!==Xn(o),c=(LZ(n.data,Pe)?.weeklyRecurrentInCertainDays?.recurrenceEndDate??``)!==(U.weeklyRecurrentInCertainDays?.recurrenceEndDate??``),l=!!$n?.recurrencePattern&&(s||c),u=e===void 0?l:!e;await ie({meetingLocationId:U.meetingLocation?.id,from:r.toISOString(),to:t.toISOString(),ignoreList:Pe?JSON.stringify([{id:Pe,recurrenceData:u?$n:void 0}]):void 0,...Zt===`create`||u?i:{}})}},[U,Pe,$n,Zt,se.status]);(0,J.useEffect)(()=>{U.startDate&&U.endDate&&U.meetingLocation?.id&&U.dateTime&&(It(e=>({...e,conflictingMeeting:{...e.conflictingMeeting,title:U.meetingLocation?.title}}
2743)),er())},[U.startDate,U.endDate,U.meetingLocation?.id,U.dateTime,U.weeklyRecurrentInCertainDays]),(0,J.useEffect)(()=>{let{status:e,success:t,data:n}=se;e===`pending`?It(e=>({...e,loading:!0})):e===`idle`&&t&&n?It(e=>({...e,loading:!1,isAvailable:n.isAvailable,conflictingMeeting:{...e.conflictingMeeting,startDate:n?.conflictingMeeting?.conflictStart,endDate:n?.conflictingMeeting?.conflictEnd,conflictDay:n?.conflictingMeeting?.conflictStart}})):t===!1&&It(e=>({...e,loading:!1}))},[se]);let tr=e=>{let t=fi===`update-single-instance`,r=!1;(Xr===`no-recurrent`||!n.data?.recurrenceData)&&(t=!1),n.data?.recurrenceData&&Sn.isTouched()&&(t=!1),Xr===`no-recurrent`&&n.data?.recurrenceData&&(r=!0);let i=Zt===`edit`?{recurrenceIndex:Kt,updateSingleInstance:Xr===`no-recurrent`||!U?.isRecurring?!1:t,recurrenceEndDate:Xr===`no-recurrent`?Qn(n.data.recurrenceEndDate,U.endDate):void 0}:void 0;switch(Xr){case`no-recurrent`:return{...i,isRecurring:r};case`weekly-recurrent-in-certain-days`:{let t=hM(Zn());return{isRecurring:!0,...i,recurrenceData:{recurrenceStart:e,recurrenceEnd:Qn(U.weeklyRecurrentInCertainDays?.recurrenceEndDate,U.endDate),recurrencePattern:t}}}case`recurrent-in-specific-date`:{let e=U.selectedRecurrentSpecificDays?.reduce((e,t)=>{let n={date:t,id:ge()};return e.push(n),e},[]);return{...i,isRecurring:!0,recurrenceData:{recurrenceDates:e}}}default:return{}}},nr=()=>{let e=Yn(U.dateTime,U.endDate),t=Yn(U.dateTime,U.startDate),n=jt.map(e=>({id:e.id}));return{id:U.id,attachments:U?.attachments?.map?.(e=>({id:e?.id??``,name:e?.name??``,size:e?.size??``})),description:U?.description??``,meetingOrder:U?.meetingOrder??``,meetingLocation:{id:U.meetingLocation?.id??``},organization:{id:ke},title:U.title,requester:Jn(),endDate:e,startDate:t,tags:Zt===`create`?n:void 0,operation:{id:U.operation},...tr(t)}},rr=()=>fi===`update-single-instance`,ir=({parentId:e=U.operation,defaultUpdateSingleInstance:t})=>{let r=U.id,i={},a=U.contactParticipants?.reduce?.((e,t)=>
2743t?.id?{...e,[t?.id]:t}:e,{})??{},o=n.data?.contactParticipants?.reduce?.((e,t)=>t?.id?{...e,[t?.id]:t}:e,{})??{};return Object.keys(a).forEach(e=>{o[e]||(i[e]=a[e])}),{id:r,contactParticipants:Object.values(i)?.map(e=>({id:e?.id})),note:``,invitationType:`normal`,inviter:[Jn()],requester:Jn(),meeting:{id:r},parentId:e,recurrenceIndex:Kt,updateSingleInstance:t??rr()}},ar=e=>{let t=U.id,r={},i=U.contactParticipants?.reduce?.((e,t)=>({...e,[t?.id]:t}),{})??{},a=(e??n.data)?.contactParticipants?.reduce?.((e,t)=>t?.id?{...e,[t?.id]:t}:e,{})??{},o=(e??n.data)?.operations?.reduce?.((e,t)=>t?.recipient?.id&&t?.id?{...e,[t?.recipient?.id]:t?.id}:e,{})??{};return Object.keys(a).forEach(e=>{i[e]||(r[e]={...a[e],parent:{id:o[e]}})}),{id:t,contactParticipants:Object.values(r)?.map?.(e=>({id:e?.id,parent:{id:e.parent.id}})),note:``,invitationType:`normal`,inviter:[Jn()],requester:Jn(),meeting:{id:t},recurrenceIndex:Kt,updateSingleInstance:rr()}},or=({parentId:e=U.operation,defaultUpdateSingleInstance:t})=>{let r=U.id,i={},a=U.employeeParticipants?.reduce?.((e,t)=>
2743({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{})??{},o=n.data?.employeeParticipants?.reduce?.((e,t)=>({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{})??{};return Object.keys(a).forEach(e=>{o?.[e]||(i[e]=a[e])}),{id:r,employeeParticipants:Object.values(i)?.map(e=>({position:{id:e.position.id,slot:e.position.slot},user:{id:e.user.id}})),note:``,invitationType:`normal`,inviter:[Jn()],requester:Jn(),meeting:{id:r},parentId:e,recurrenceIndex:Kt,updateSingleInstance:t??rr()}},sr=e=>{let t=U.id,r={},i=U.employeeParticipants?.reduce?.((e,t)=>({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{})??{},a=(e??n.data)?.employeeParticipants?.reduce?.((e,t)=>({...e,[`${t?.position?.id}-${t?.position?.slot?.join(`,`)}`]:t}),{})??{},o=(e??n.data)?.operations?.reduce?.((e,t)=>t?.recipient?.id?e:{...e,[`${t?.recipient?.position?.id}-${t?.recipient?.position?.slot?.join(`,`)}`]:t?.id},{})??{};return Object.keys(a).forEach(e=>{i[e]||(r[e]={...a[e],parent:{id:o?.[e]}})}),{id:t,employeeParticipants:Object.values(r)?.map?.(e=>({position:{id:e.position.id,slot:e.position.slot},user:{id:e.user.id},parent:{id:e.parent.id}})),note:``,invitationType:`normal`,inviter:[Jn()],requester:Jn(),meeting:{id:t},recurrenceIndex:Kt,updateSingleInstance:rr()}},{selectedPosition:cr}=hg(),lr=async()=>{let e=U.startDate;return e&&new Date(e.getTime()+60*1e3),await t({organizationId:ke,positionId:cr.position?.id,userId:De.id,from:U.startDate?.toISOString(),to:U.endDate?.toISOString(),correlationId:ge(),limit:10,offset:0})},ur=async()=>{let e=await lr();if(!e?.payload?.data)throw Error(`This is an error message`);let t=e?.payload?.data?.find(e=>e.title===U?.title&&e.status===U?.status)?.id??(Zt===`edit`?Qt():null);if(!t)throw Error(`Meeting id is required for update`);let n=await r({meetingId:t,recurrenceIndex:Kt});if(!n?.payload?.data)throw Error(`This is an error message`);return{parentId:n?.payload?.data?.operations?.find?.(e=>e.type===`create`)?.id??ge(),data:n?.payload?.data}},dr=async e=>{let t=Qt();if(!t)throw Error(`Meeting id is required for update`);let{operation:n,organization:r,requester:a,...o}=e,s=await i({meetingId:t,data:o,checkStatusOveredFunction:tn});if(!s.payload?.success)throw Error(`This is an error message`);return s},fr=async e=>{try{let t=Qt(),{isRecurring:n,recurrenceIndex:r,updateSingleInstance:i}=e,a=Bt();if(a.length){if(!t)throw Error(`Meeting id is required for update`);await L({meetingId:t,checkStatusOveredFunction:tn,data:{id:t,tags:a,isRecurring:n,recurrenceIndex:r,updateSingleInstance:i}})}zt()||await dr(e);let o=await ur();await pr({parentId:o.parentId,defaultData:o.data}),Ge(()=>!1),Xt()}catch{Ge(()=>!1),Xt();return}},pr=async({defaultData:e,parentId:t,defaultUpdateSingleInstance:n})=>{let r=Zt===`edit`?!!t:!0,i=e,a=t;try{W(()=>!0);let e=or({parentId:a,defaultUpdateSingleInstance:n});if(e?.employeeParticipants?.length&&(await ye.add({data:e,checkStatusOveredFunction:tn}),!r)){r=!0;let e=await ur();i=e.data,a=e.parentId}let t=sr(i);if(t?.employeeParticipants?.length&&(await xe.remove({data:t,checkStatusOveredFunction:tn}),!r)){r=!0;let e=await ur();i=e.data,a=e.parentId}let o=ir({parentId:a,defaultUpdateSingleInstance:n});if(o?.contactParticipants?.length&&(await ve.add({data:o,checkStatusOveredFunction:tn}),!r)){r=!0;let e=await ur();i=e.data,a=e.parentId}let s=ar(i);s?.contactParticipants?.length&&await be.remove({data:s,checkStatusOveredFunction:tn}),W(()=>!1),Xt()}catch{W(()=>!1)}},mr=async()=>{try{Ge(()=>!0);let e=await Pn(U.attachments,`meeting-attachment`,U.id);if(!e?.success){Ge(()=>!1);return}Ie(t=>({...t,attachments:e?.uploadedList.map(e=>e?.data)??[]}));let t=nr();if(t.attachments=e?.uploadedList?.map?.(e=>({id:e?.data?.id??``,name:e?.data?.name??``,size:e?.data?.size??``})),n.data&&Zt===`edit`)await fr(t);else{let e={data:t,checkStatusOveredFunction:tn};await B.insert(e)}}finally{Ge(()=>!1)}};di(()=>{(async()=>{B?.status===`success`&&(await pr({defaultUpdateSingleInstance:!1}),Xt())})()},[B.data]);let K=()=>{if(!U?.isRecurring)return{id:Pe??` `,note:dt,parentId:n.data?.operations?.find(e=>e.type===`create`)?.id??``,requester:{user:{id:qt.signedInUser.id},position:{id:n?.data?.requester?.position?.id,slot:n?.data?.requester?.position?.slot}}};let e=mi===`cancel-single-instance`;return{id:Pe??` `,note:dt,parentId:n?.data?.operations?.filter(e=>e.type===`updateMinutes`)[n.data.operations.length-1]?.id??n?.data?.operations?.find(e=>e.type===`createMinutes`)?.id??U.operation,requester:{user:{id:qt.signedInUser.id},position:{id:un?.id,slot:un?.slot}},updateSingleInstance:e,recurrenceIndex:Kt}},hr=()=>U?.isRecurring?{id:Pe??` `,parentId:n?.data?.operations?.filter(e=>e.type===`updateMinutes`)[n.data.operations.length-1]?.id??n?.data?.operations?.find(e=>e.type===`createMinutes`)?.id??U.operation,requester:{user:{id:qt.signedInUser.id},position:{id:dn?.id,slot:dn?.slot}},recurrenceIndex:Kt}:{id:Pe??` `,parentId:n.data?.operations?.find(e=>e.type===`create`)?.id??``,requester:{user:{id:qt.signedInUser.id},position:{id:n?.data?.requester?.position?.id,slot:n?.data?.requester?.position?.slot}}},gr=e=>
2743({id:Pe??``,parentId:e??LM(n?.data)??U.operation,organization:{id:ke??``},meeting:{id:U.id},minutes:JSON.stringify(U.minutes),requester:{user:{id:qt.signedInUser.id},position:{id:ln?.id,slot:ln?.slot}},recurrenceIndex:Kt??void 0}),_r=(e,t)=>{let r=t??FM(n?.data)??IM(n?.data)??U.operation;return{id:Pe??``,parentId:r,organization:{id:ke??``},meeting:{id:U.id},resolutionId:e.id,title:e.title,description:e.description,requester:{user:{id:qt.signedInUser.id},position:{id:ln?.id,slot:ln?.slot}},recurrenceIndex:Kt??void 0}},vr=e=>{let t=n?.data?.operations?.find(e=>e.type===`deleteResolution`)?.id??IM(n?.data)??U.operation;return{id:Pe??``,parentId:t,organization:{id:ke??``},meeting:{id:U.id},resolutionId:e.id,requester:{user:{id:qt.signedInUser.id},position:{id:ln?.id,slot:ln?.slot}},recurrenceIndex:Kt??void 0}},yr=e=>CM({task:e,organizationId:ke??``,requester:{userId:qt.signedInUser.id,positionId:ln?.id,positionSlot:ln?.slot},operationId:ge()}),br=e=>wM({task:e,organizationId:ke??``,requester:{userId:qt.signedInUser.id,positionId:ln?.id,positionSlot:ln?.slot}}),xr=(e,t)=>{if(!t?.position?.id)return null;let n={id:t.position.id,slot:Array.isArray(t.position.slot)?t.position.slot:[]},r=t.user?.id?{id:t.user.id}:null;return{id:e,requester:{user:{id:qt.signedInUser.id},position:{id:ln?.id,slot:ln?.slot}},assignee:r?{user:r,position:n}:{position:n},organization:{id:ke??``}}},Sr=()=>{et(!1);let{minutes:e}=Le;qr(e?JSON.parse(e):null),it(DM(n.data?.resolutions)),S()},Cr=(0,J.useMemo)(()=>U?.status===`canceled`,[U?.status]),wr=()=>U?.status===`canceled`||!fn,Tr=(e,t)=>!1,Er=(0,J.useMemo)(()=>n.data?.status===`finished`,[n.data]),Dr=()=>{U?.isRecurring?(wt(!0),Qe(!1),an(`cancel`)):p({id:Pe,data:K(),checkStatusOveredFunction:tn})},Or=()=>{u({id:Pe,data:hr(),checkStatusOveredFunction:tn})},kr=async()=>{await p({id:Pe??``,data:K(),checkStatusOveredFunction:tn}),wt(!1)};di(()=>{m?.status===`success`&&(Qe(!1),Fn())},[m.data]),di(()=>{d?.status===`success`&&(Xe(!1),Fn())},[d.data]);let Ar=async({parentId:e,meetingId:t=Pe}={})=>{let r={id:t,data:gr(e),checkStatusOveredFunction:nn};try{let e=n?.data?.minutes?.length?await M(r):await g(r),t=!!e?.payload?.success,i=e?.payload?.data?.id;return{ok:t,meetingId:typeof i==`string`?i:void 0}}catch{return{ok:!1}}},jr=async({submitMeetingId:e=Pe??``,initialParentId:t,refreshParentId:n,manageLoading:r=!0})=>{if(!YM(rt))return null;r&&ot(!0);try{let r=[],i=[],a=(t,n)=>{let r=_r(t,n);return e?{...r,id:e,meeting:{...r.meeting,id:e}}:r};if(KM(rt)){let t=await XM({meetingId:e,resolutions:rt,updateMeetingResolution:e=>b(e),buildResolutionDto:a,checkStatusOveredFunction:nn});r.push(...t)}if(WM(rt)){let o=await $M({meetingId:e,resolutions:rt,createMeetingResolution:e=>_(e),createTask:e=>w(e),assignMeetingResolutionTask:e=>x(e),assignTask:e=>E(e),buildResolutionDto:a,initialParentId:t,refreshResolutionParentId:n?async()=>FM(await In(e)):void 0,buildTaskDto:e=>yr(e),buildTaskAssignDto:xr,checkStatusOveredFunction:nn});r.push(...o.resolutions),i.push(...o.tasks)}if(JM(rt)){let e=await ZM({resolutions:rt,updateTask:e=>T(e),assignTask:e=>E(e),buildUpdateTaskDto:br,buildTaskAssignDto:xr,checkStatusOveredFunction:nn});i.push(...e)}let o={resolutions:r,tasks:i},s=eN(rt,o);return it(e=>eN(e,o)),tN(i)&&he.warning(Me(`meetings.labels.task-created-but-not-linked`)),nN(i)&&he.warning(Me(`meetings.labels.task-created-but-assignee-failed`)),zM({resolutions:r,tasks:i})&&await Ln({mergeDrafts:!0,meetingId:e}),s}finally{r&&ot(!1)}},Mr=async({saveMinutes:e})=>{if(U?.isRecurring&&e){nt.current=!0,ot(!0);try{let e=await In(),t=await Ar({parentId:LM(e)??IM(e)??U.operation});if(!t.ok)return;let n=t.meetingId??Pe??``,r=null;if(YM(rt)){let e=await In(n),t=FM(e)??IM(e)??void 0;r=await jr({submitMeetingId:n,initialParentId:t,refreshParentId:!t,manageLoading:!1})}else await Ln({mergeDrafts:!0,meetingId:n});aN(r)&&et(!1),Re(e=>({...e,minutes:U.minutes}))}finally{nt.current=!1,ot(!1)}return}iN({saveMinutes:e,nextResolutions:await jr({refreshParentId:!!U?.isRecurring})})&&await Ar()},Nr=e=>{it(t=>[...t,{id:ge(),title:e.title,description:e.description??``,tasks:[],isDraft:!0}])},Pr=e=>{it(t=>t.map(t=>
2743t.id===e.id?{...e,isPendingUpdate:!e.isDraft,submitError:!1}:t))},Fr=e=>{it(t=>t.filter(t=>t.id!==e))},Ir=(e,t)=>{it(n=>n.map(n=>n.id===e?{...n,tasks:n.tasks.filter(e=>e.id!==t),tasksCount:n.tasksCount==null?n.tasksCount:Math.max(0,n.tasksCount-1)}:n))},Lr=async e=>{if(e.isDraft){Fr(e.id);return}(await y({id:Pe,resolutionId:e.id,data:vr(e),checkStatusOveredFunction:nn}))?.payload?.success&&(Fr(e.id),await Ln({mergeDrafts:!0})||Fr(e.id))},Rr=(e,t)=>{it(n=>n.map(n=>n.id===e.id?{...n,tasks:[...n.tasks,{id:ge(),title:t.title,assignee:t.assignee??null,isDraft:!0}],tasksCount:(n.tasksCount??n.tasks.length)+1}:n))},zr=(e,t)=>{it(n=>n.map(n=>n.id===t.id?{...n,tasks:n.tasks.map(t=>t.id===e.id?{...e,isPendingUpdate:!e.isDraft,submitError:!1}:t)}:n))},Br=async(e,t)=>{if(e.isDraft){Ir(t.id,e.id);return}(await C({id:Pe,resolutionId:t.id,taskId:e.id,checkStatusOveredFunction:nn}))?.payload?.success&&(Ir(t.id,e.id),await Ln({mergeDrafts:!0})||Ir(t.id,e.id))},Vr=(e,t)=>{e.isDraft||(je(t=>{let n=new URLSearchParams(t);return n.set(`taskId`,e.id),n},{replace:!0}),Ee(!0))},Hr={onEdit:Pr,onDelete:Lr,onCreateTask:Rr},Ur={onEdit:zr,onDelete:Br,onOpen:Vr},Wr=()=>!!JSON.stringify(n?.data?.minutes?.length);di(()=>
2743{if(O.status===`success`){if(je(e=>(e.set(`meetingId`,O?.data?.id),e)),Re(e=>({...e,minutes:U.minutes})),nt.current)return;et(()=>!1),Ln({mergeDrafts:!0})}},[O]),di(()=>{if(k.status===`success`){if(je(e=>(e.set(`meetingId`,k?.data?.id),e)),Re(e=>({...e,minutes:U.minutes})),nt.current)return;et(()=>!1),Ln({mergeDrafts:!0})}},[k]),di(()=>{VM(tt.current,{updateTask:oe.updateTask,deleteTask:oe.deleteTask,changeTaskStatus:oe.changeTaskStatus,assign:oe.assign})&&Ln({mergeDrafts:!0})},[oe.updateTask,oe.deleteTask,oe.changeTaskStatus,oe.assign]),di(()=>{m.data&&m?.status===`success`&&(Ie(e=>({...e,status:`canceled`})),Re(e=>({...e,status:`canceled`})),Qe(()=>!1))},[m.data]);let Gr=Dt(e=>e.breakpoints.down(`sm`));Dt(e=>e.breakpoints.between(`sm`,`lg`)),Dt(e=>e.breakpoints.up(`lg`));let Kr=O.status===`failed`||k.status===`failed`,qr=e=>{O.status===`failed`&&A(),k.status===`failed`&&j(),Ie(t=>({...t,minutes:e}))},Jr=()=>{vt(!0),gt(!0),P({meetingId:Pe})},Yr=()=>{F(),vt(!1)},[Xr,Zr]=(0,J.useState)(`no-recurrent`),[Qr,$r]=(0,J.useState)(!1),[ei,ti]=(0,J.useState)([]),[ni,ri]=(0,J.useState)([]),[ii,ai]=(0,J.useState)(``),[oi,si]=(0,J.useState)(!1),[ci,li]=(0,J.useState)(!1),[ui,q]=(0,J.useState)(!1),[fi,pi]=(0,J.useState)(`update-single-instance`),[mi,hi]=(0,J.useState)(`cancel-single-instance`),[gi,_i]=(0,J.useState)(!1),[vi,yi]=(0,J.useState)(!1),bi=(0,J.useMemo)(()=>Xr===`recurrent-in-specific-date`,[Xr]),xi=[{id:`no-recurrent`},{id:`weekly-recurrent-in-certain-days`},{id:`recurrent-in-specific-date`}],Si=[`update-single-instance`,`edit-recurrent-meetings-series-from-here-on`],Ci=[`cancel-single-instance`,`cancel-recurrent-meetings-series-from-here-on`],wi=e=>{pi(e.target.value)},Ti=e=>{hi(e.target.value)};di(()=>
2743{if(!U)return;let{isRecurring:e,weeklyRecurrentInCertainDays:t}=U;e&&(t?.selectedRecurrentDays?.length?(Zr(`weekly-recurrent-in-certain-days`),ri(t.selectedRecurrentDays),ai(t.recurrenceEndDate||``)):U.selectedRecurrentSpecificDays&&(Zr(`recurrent-in-specific-date`),ti(U.selectedRecurrentSpecificDays)))},[U?.isRecurring,U?.weeklyRecurrentInCertainDays?.selectedRecurrentDays,U?.selectedRecurrentSpecificDays]);let Ei=()=>Gr?li(!0):$r(!0),Di=(e,t)=>{Zr(t),t===`no-recurrent`&&(ti([]),ai(``),ri([]),Vn(`isRecurring`,!1),Vn(`selectedRecurrentSpecificDays`,void 0),Vn(`weeklyRecurrentInCertainDays`,void 0),Sn.changeSelectedRecurrentSpecificDaysTouch([]),Sn.changeWeeklyRecurrentInCertainDaysTouch({recurrenceEndDate:``,selectedRecurrentDays:[]}),li(!1))},Oi=()=>{if(Xr===`recurrent-in-specific-date`)Vn(`selectedRecurrentSpecificDays`,ei),Vn(`weeklyRecurrentInCertainDays`,void 0),Sn.changeSelectedRecurrentSpecificDaysTouch(ei),Sn.changeWeeklyRecurrentInCertainDaysTouch({recurrenceEndDate:``,selectedRecurrentDays:[]}),ai(``),ri([]);else if(Xr===`weekly-recurrent-in-certain-days`){let e={selectedRecurrentDays:ni,recurrenceEndDate:ii};Vn(`weeklyRecurrentInCertainDays`,e),Vn(`selectedRecurrentSpecificDays`,void 0),Sn.changeSelectedRecurrentSpecificDaysTouch([]),Sn.changeWeekly
2743RecurrentInCertainDaysTouch(e),ti([])}li(!1),$r(!1)},ki=()=>{ai(``),ri([])},Ai=()=>{ti([])},ji=e=>{let t=e.currentTarget.getAttribute(`data-value`);return t===`no-recurrent`?(Zr(`no-recurrent`),ki(),Ai(),li(!1),$r(!1)):t===null?(!U.weeklyRecurrentInCertainDays?.selectedRecurrentDays&&!U?.selectedRecurrentSpecificDays?(Zr(`no-recurrent`),ki(),Ai()):U.weeklyRecurrentInCertainDays?.selectedRecurrentDays!==void 0&&U.weeklyRecurrentInCertainDays?.selectedRecurrentDays?.length>0?(Zr(`weekly-recurrent-in-certain-days`),Ai()):U?.selectedRecurrentSpecificDays!==void 0&&U?.selectedRecurrentSpecificDays?.length>0?(Zr(`recurrent-in-specific-date`),ki()):(U.weeklyRecurrentInCertainDays?.selectedRecurrentDays?.length===0||U?.selectedRecurrentSpecificDays?.length===0)&&(Zr(`no-recurrent`),ai(U?.weeklyRecurrentInCertainDays?.recurrenceEndDate||``),ri(U.weeklyRecurrentInCertainDays?.selectedRecurrentDays||[]),ti(U?.selectedRecurrentSpecificDays||[])),li(!1),$r(!1)):$r(!0)},Mi=()=>{q(!1),pi(`update-single-instance`)},Ni=(0,J.useMemo)(()=>ce.delete.status===`pending`,[ce.delete.status]),Pi=(0,J.useMemo)(()=>ce.update.status===`pending`,[ce.update.status]),Fi=(0,J.useMemo)(()=>ce.create.status===`pending`,[ce.create.status]),Ii=(0,J.useMemo)(()=>!!n.data?.recurrenceData,[n.data?.recurrenceData]),Li=(0,J.useMemo)(()=>xi.filter(e=>(bi||e.id!==`recurrent-in-specific-date`)&&(e.id===Xr||!Ii)),[Ii,bi,xi,Xr]);return di(()=>{rn===`edit`&&ui&&(fi===`update-single-instance`?er(!0):fi===`edit-recurrent-meetings-series-from-here-on`&&er(!1))},[ui,rn,fi]),l(f,{children:l(IZ,{pageLoading:Cn,data:U,initialState:Le,open:we&&!Tn&&!H,onClose:Xt,actions:{organizationId:ke,openLocationInfoDialog:Dn,closeLocationInfoDialog:On,meetingsLocationInfoDialog:pt,meetingsLocationsData:vn,positions:on,showTimeDialog:Ke,setShowTimeDialog:qe,showCanceledDialog:Ze,setShowCanceledDialog:Qe,showMeetingMinutes:$e,setShowMeetingMinutes:et,onSubmitTime:Bn,onChangeTime:zn,onChangeData:Vn,handleChangeDateMeetingReservations:Un,meetingReservationDate:Ve,addAttachment:Wn,removeAttachment:Gn,createMeeting:mr,saveLoading:We||B.loading||a.status===`pending`||Ue||n.status===`pending`||Ft.loading,handleDownloadAttachment:Kn,openAutocomplete:st,setOpenAutocomplete:ct,openPositionsDialog:Tn,setOpenPositionsDialog:En,handleSelectPosition:qn,userProfile:de,handleChangeEmployeesParticipants:kn,addEmployeeParticipates:An,removeEmployeeParticipates:jn,addContactParticipates:Mn,removeContactParticipates:Nn,contacts:fe.data??[],employees:pe.data??[],organizationPositions:me.data?.filter?.(e=>e.employees?.length)??[],employeeContacts:_e.data??[],participatesMode:xt,onChangeType:Gt,submitOperationsAsync:pr,pageMode:Zt,meetingsReservationsData:ze,loadingReservation:c.status===`pending`,cancelConfirm:Dr,meetingMinutesData:Mr,getStatusDisable:wr,discardMeetingLoading:yn,participantsTouch:bn,recurrenceTouch:Sn,attachmentsTouch:xn,meetingMinutesLoading:O.status===`pending`||k.status===`pending`||at,minutesSubmitError:Kr,resolutionsHaveUnsavedChanges:YM(rt),lengthHandlerMeetingMinutes:Wr,isMobile:Gr,openMoreActionButton:lt,setOpenMoreActionButton:ut,meetingDetails:n.data,onChangeMinutes:qr,currentOrganizationPositions:on,setPosition:sn,creatingOrUpdatingMeetingPosition:cn,minutesMeetingPosition:ln,allowCreateOrEditMeeting:fn,allowEditDescription:pn,allowCancelMeeting:mn,allowFinishMeeting:gn,allowMinutes:hn,expanded:Jt,setExpanded:Yt,isCanceled:Cr,note:dt,handleChangeNote:_n,openMeetingHistoryDialog:_t,meetingHistoryLoading:ht,getMeetingHistory:Jr,meetingHistoryData:yt,handleCloseMeetingHistoryDialog:Yr,handelClickRecurrenceType:Di,selectedRecurrenceType:Xr,recurrenceType:Li,openRecurrentSelectComponent:Qr,setOpenRecurrentSelectComponent:$r,onCloseRecurrenceSelect:ji,selectedRecurrentSpecificDays:ei,setSelectedRecurrentSpecificDays:ti,selectedRecurrentDays:ni,setSelectedRecurrentDays:ri,recurrenceEndDate:ii,setRecurrenceEndDate:ai,openRecurrentSelectedDaysDialog:oi,setOpenRecurrentSelectedDaysDialog:si,openMobileRecurrenceDialog:ci,handleOpenRecurrentSelect:Ei,setOpenMobileRecurrenceDialog:li,openEditRecurrentMeetingTypeDialog:ui,setOpenRecurrentMeetingEditTypeDialog:q,selectedRecurrentMeetingEditType:fi,selectedRecurrentMeetingCancelType:mi,recurrentMeetingEditTypes:Si,recurrentMeetingCancelTypes:Ci,handleChangeEditRecurrentMeetingType:wi,handleChangeCancelRecurrentMeetingType:Ti,handleConfirmRecurrentTime:Oi,onCloseMeetingEditDialog:Mi,openDeleteMeetingsRecurrenceDialog:gi,setOpenDeleteMeetingsRecurrenceDialog:_i,openEditRecurrenceItemMeetingTypeDialog:vi,setOpenEditRecurrenceItemMeetingTypeDialog:yi,isMeetingStartTimePast:Tr,openCancelRecurringMeetingDialog:Ct,setOpenCancelRecurringMeetingDialog:wt,cancleConfirmRecurringMeeting:kr,meetingInstanceMode:rn,setMeetingInstanceMode:an,disabledEditTypeOfMeeting:Ii,isFinished:Er,openFinishingDialog:Je,setOpenFinishingDialog:Xe,finishConfirm:Or,finishMeetingLoading:d.status===`pen
2743ding`,handleCloseMeetingMinutes:Sr,disabledMeeting:bi,allTags:Tt,selectedTags:jt,isTouched:Ot,handleChangeTags:Rt,areOnlyTagsChanged:zt,calculateTagChanges:Bt,handleCreateTag:Vt,handleUpdateTag:Ht,handleDeleteTag:Ut,handleFetchUsedCount:Wt,tagOption:{hidden:N?.updateTag.hidden||N?.deleteTag.hidden},isDeletingTag:Ni,isEditingTag:Pi,isCreatingTag:Fi,checkAvailability:Ft,resolutions:rt,onAddResolution:Nr,resolutionActions:Hr,taskActions:Ur}})})})))),HZ=()=>{let{openMeetingDialog:e,setOpenMeetingDialog:t}=hg(),[n,r]=ee(),i=n.get(`meetingId`);return(0,J.useEffect)(()=>{i&&t(!0)},[i]),l(f,{children:e&&l(VZ,{})})},UZ=({open:e})=>{let{stylesGenerator:t}=Fk(),{setOpenMeetingDialog:n}=hg(),{classes:r,cx:i}=B()(t)(),a=()=>{n(!0)};return d(f,{children:[d(Lk,{button:!0,"aria-controls":`menu`,"aria-haspopup":`true`,id:`sidebar-create-new-meeting`,className:i({[r.ListItem]:e,[r.miniListItem]:!e}),onClick:a,children:[!e&&d(G,{className:r.miniSidebarItem,children:[l(Lv,{className:`itemIcon`}),l(St,{variant:`body2`,children:`ایجاد جلسه`})]}),e&&d(f,{children:[l(sp,{children:l(Lv,{className:`itemIcon`})}),l(Xr,{primary:`ایجاد جلسه جدید`})]})]}),l(Lr,{}),l(HZ,{})]})},WZ=B()(e=>({bottom:{bottom:e.spacing(1.5)},divider:{margin:e.spacing(1,0,3)}})),GZ=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),{classes:i,cx:a}=WZ(),{organizationId:o}=h(),s=Ik();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${o}/meetings/meetings-management`,className:a({[r.ListItem]:e,[r.miniListItem]:!e,[i.bottom]:e},s===`/organizations/meetings/meetings-management`?r.selectedSidebarItem:``),security:t?.meetingsAdmin,children:[!e&&l(G,{component:S,to:`/organizations/${o}/meetings/meetings-management`,className:r.miniSidebarItem,children:l(py,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(py,{className:`itemIcon`})}),l(Xr,{primary:`مدیریت راهکار جلسات`})]})]})})},KZ=B()(e=>({divider:{margin:e.spacing(1,0,1)}})),qZ=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),{classes:a}=KZ(),{organizationId:o}=h(),s=Ik(),{t:c}=Ye();return d(f,{children:[l(dN,{extraClasses:a.divider}),d(Lk,{button:!0,component:S,to:`/organizations/${o}/organization-settings/${t?.organizationProfile?.allow?`profile`:`structure`}`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},s===`/organizations/organization-settings/${t?.organizationProfile?.allow?`profile`:`structure`}`?r.selectedSidebarItem:``),children:[!e&&l(G,{component:S,to:`/organizations/${o}/organization-settings/${t?.organizationProfile?.allow?`profile`:`structure`}`,className:r.miniSidebarItem,children:l(py,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(py,{className:`itemIcon`})}),l(Xr,{primary:c(`organization.labels.settings`)})]})]})]})}),JZ=e=>{switch(e){case`correspondence`:return`مکاتبات`;case`meetings`:return`جلسات`;case`tasks`:return`مدیریت پروژه`;case`chat`:return`چت سازمانی`}},YZ=({open:e})=>{let{stylesGenerator:t}=Fk(),{classes:n,cx:r}=B()(t)(),{organizationId:i,solution:a}=h(),o=Ik(),{t:s}=Ye();return a===`chat`?l(f,{}):d(Lk,{button:!0,component:S,to:`/organizations/${i}/settings/${a}/admins`,className:r({[n.ListItem]:e,[n.miniListItem]:!e},o===`/organizations/settings/admins`?n.selectedSidebarItem:``),children:[!e&&l(T_,{}),e&&d(f,{children:[l(sp,{children:l(T_,{})}),l(Xr,{primary:s(`admins.labels.solutionAdmins`,{solution:JZ(a)})})]})]})},XZ=[`tasks`],ZZ=e=>{let t=(e??``).trim().toLowerCase();switch(t){case`projectmanagement`:return`tasks`;default:return t}},QZ=e=>XZ.includes(ZZ(e)),$Z=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a,solution:o}=h(),s=Ik(),{t:c}=Ye();return QZ(o)?null:d(Lk,{button:!0,component:S,to:`/organizations/${a}/settings/${o}/sms`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},s===`/organizations/settings/sms`?r.selectedSidebarItem:``),security:t.solutions,children:[!e&&l(cv,{}),e&&d(f,{children:[l(sp,{children:l(cv,{})}),l(Xr,{primary:c(`admins.labels.solutionSms`,{solution:JZ(o)})})]})]})},eQ=({open:e})=>{let{stylesGenerator:t}=Fk(),{classes:n,cx:r}=B()(t)(),{organizationId:i,solution:a}=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,component:S,to:`/organizations/${i}/settings/${a}/users`,className:r({[n.ListItem]:e,[n.miniListItem]:!e},o===`/organizations/settings/users`?n.selectedSidebarItem:``),children:[!e&&l(R_,{}),e&&d(f,{children:[l(sp,{children:l(R_,{})}),l(Xr,{primary:s(`admins.labels.solutionUsers`,{solution:JZ(a)})})]})]})},tQ=({open:e,backURL:t})=>{let{stylesGenerator:n}
2743=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a}=h();return d(Lk,{button:!0,component:S,to:t.replace(`:organizationId`,a),className:i({[r.ListItem]:e,[r.miniListItem]:!e}),children:[!e&&l(M_,{}),e&&d(f,{children:[l(sp,{children:l(M_,{className:r.goBack})}),l(Xr,{primary:`بازگشت`})]})]})},nQ=e=>{let{organization:t}=e;return{organization:t}};tQ.propTypes={open:Z.default.bool.isRequired,backURL:Z.default.string.isRequired};var rQ=Ze(nQ,{})(tQ),iQ=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),a=h(),{organizationId:o}=a,s=Ik();return d(f,{children:[d(Lk,{button:!0,component:S,to:`/organizations/${o}/correspondence`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},s===`/organizations/correspondence`?r.selectedSidebarItem:``),security:t?.cartable,children:[!e&&l(G,{component:S,to:`/organizations/${o}/correspondence`,className:r.miniSidebarItem,children:l(Kv,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(Kv,{className:`itemIcon`})}),l(Xr,{primary:`کارتابل`})]})]}),e&&d(f,{children:[d(Lk,{button:!0,component:S,to:`/organizations/${a.organizationId}/correspondence/active?tab=correspondence-in-progress`,className:i(r.ListItem,r.SubListItem,s===`/organizations/correspondence/active`?r.selectedSidebarItem:``),security:t?.active,children:[l(sp,{children:l(zv,{className:`itemIcon`})}),l(Xr,{primary:`جاری`})]}),d(Lk,{button:!0,component:S,to:`/organizations/${a.organizationId}/correspondence/ended?tab=correspondence-ended`,className:i(r.ListItem,r.SubListItem,s===`/organizations/correspondence/ended`?r.selectedSidebarItem:``),security:t?.ended,children:[l(sp,{children:l(Uv,{className:`itemIcon`})}),l(Xr,{primary:`بسته شده`})]})]})]})},aQ=e=>{let{organization:t}=e;return{organization:t}};iQ.propTypes={open:Z.default.bool.isRequired,security:Gk.isRequired};var oQ=Ze(aQ,{})(iQ),sQ=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),a=h(),o=Ik();return d(Lk,{button:!0,component:S,to:`/organizations/${a.organizationId}/contacts`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/contacts`?r.selectedSidebarItem:``),children:[!e&&l(G,{component:S,to:`/organizations/${a.organizationId}/contacts`,className:r.miniSidebarItem,children:l(o===`/organizations/contacts`?$v:ey,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(o===`/organizations/contacts`?$v:ey,{className:`itemIcon`})}),l(Xr,{primary:`مدیریت مخاطبان`})]})]})},cQ=e=>{let{organization:t}=e;return{organization:t}};sQ.propTypes={open:Z.default.bool.isRequired,security:Gk.isRequired};var lQ=Ze(cQ,{})(sQ),uQ=B()(e=>({divider:{margin:e.spacing(1,0,1)}})),dQ=({security:e})=>{let{classes:t}=uQ();return l(f,{children:l(dN,{extraClasses:t.divider,security:e?.allMeetingsOrganization})})},fQ=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a}=h(),o=Ik();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${a}/correspondence/ece-letters`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/correspondence/ece-letters`?r.selectedSidebarItem:``),security:t?.eceLetters,children:[!e&&l(G,{component:S,to:`/organizations/${a}/correspondence/ece-letters`,className:r.miniSidebarItem,children:l(vy,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(vy,{className:`itemIcon`})}),l(Xr,{primary:`نامه‌های ECE`})]})]})})}),pQ=({open:e,organization:t,security:n})=>{let{stylesGenerator:r}=Fk(),{classes:i,cx:a}=B()(r)(),o=h(),s=Ik();return d(Lk,{button:!0,component:S,to:`/organizations/${o.organizationId}/organization-settings/employees`,className:a({[i.ListItem]:e,[i.miniListItem]:!e},s===`/organizations/organization-settings/employees`?i.selectedSidebarItem:``),security:n.employee,children:[!e&&l(G,{component:S,to:`/organizations/${o.organizationId}/organization-settings/employees`,className:i.miniSidebarItem,children:l(s===`/organizations/organization-settings/employees`?ny:ty,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(s===`/organizations/organization-settings/employees`?ny:ty,{className:`itemIcon`})}),l(Xr,{primary:`کارمندان`})]})]})},mQ=e=>{let{organization:t}=e;return{organization:t}};pQ.propTypes={open:Z.default.bool.isRequired,organization:Z.default.shape({selectedOrganization:Z.default.shape({owner:Z.default.shape({id:Z.default.string})})}).isRequired,security:Gk.isRequired};var hQ=Ze(mQ,{})(pQ),gQ=({open:e,security:t})=>{let{stylesGenerator:n}
2743=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a}=h(),o=Ik();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${a}/correspondence/forwardedBy`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/correspondence/forwardedBy`?r.selectedSidebarItem:``),security:t?.forwarded,children:[!e&&l(G,{component:S,to:`/organizations/${a}/correspondence/forwardedBy`,className:r.miniSidebarItem,children:l(Nv,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(Nv,{className:`itemIcon`})}),l(Xr,{primary:`ارجاع شده`})]})]})})},_Q=e=>{let{organization:t}=e;return{organization:t}};gQ.propTypes={open:Z.default.bool.isRequired,security:Gk.isRequired};var vQ=Ze(_Q,{})(gQ),yQ=B()({iconContainer:{textAlign:`center`,display:`flex`,alignItems:`center`,justifyContent:`center`},container:{display:`flex`,flexDirection:`column`,gap:8},title:{fontSize:14,fontWeight:700,letterSpacing:0,textAlign:`right`,lineHeight:3},content:{fontSize:14,fontWeight:400,letterSpacing:0,textAlign:`right`}}),bQ={NoLetterNumber:(e,t)=>e(`${t.level}.${t.service}.${t.domain}.${t.context}.${t.exception}`),ParseXmlException:(e,t)=>e(`${t.level}.${t.service}.${t.domain}.${t.context}.${t.exception}`),NoXmlAttached:(e,t)=>e(`${t.level}.${t.service}.${t.domain}.${t.context}.${t.exception}`),BadEceStructureException:(e,t)=>e(`${t.level}.${t.service}.${t.domain}.${t.context}.${t.exception}`),ProcessFilesAndDocumentsServiceException:(e,t)=>e(`${t.level}.${t.service}.${t.domain}.${t.context}.${t.exception}`),RecipientNotFound:(e,t)=>`«${t.message}» ${e(`${t.level}.${t.service}.${t.domain}.${t.context}.${t.exception}`)}`,SenderNotFound:(e,t)=>`«${t.message}» ${e(`${t.level}.${t.service}.${t.domain}.${t.context}.${t.exception}`)}`},xQ=({errors:e,open:t,onClose:n,onConvert:r})=>{let{classes:i}=yQ(),{t:a}=Ye();return d(Mr,{open:t,onClose:n,children:[l(Ir,{children:l(G,{className:i.iconContainer,children:l(gi,{color:`error`})})}),l(Pr,{children:d(G,{className:i.container,children:[l(si,{className:i.title,children:a(`correspondence.letters.ece.labels.transformXmlToReceipt`)}),e?.map?.(e=>l(G,{className:i.content,children:bQ[e.exception]?.(a,e)},e.exception))]})}),l(Nr,{children:l(fi,{onClick:r,children:a(`correspondence.letters.ece.labels.transformToLetter`)})})]})},SQ=B()(e=>({dialogPaper:{minWidth:370,padding:e.spacing(2),[e.breakpoints.down(`sm`)]:{minWidth:`unset`,padding:e.spacing(2)}},appBar:{color:`#6c6c6c`,display:`flex`,position:`relative`,textAlign:`center`,alignItems:`center`,justifyContent:`center`,boxShadow:`unset`,marginBottom:e.spacing(2),"& button":{position:`absolute`,right:0}},button:{marginTop:e.spacing(3)},eceName:{textAlign:`center`,marginTop:e.spacing(1)},eceDescription:{textAlign:`center`,marginTop:e.spacing(1),color:e.palette.text.gray,"& p":{fontWeight:`normal`}}})),CQ=[`NoLetterNumber`,`ProcessFilesAndDocumentsServiceException`,`RecipientNotFound`,`SenderNotFound`];function wQ({parseEceAsync:e,composeEce:t,letters:n,positions:r,organizationId:i,correspondenceAuthz:a}){let{classes:o}=SQ(),s=D(),[c,u]=(0,J.useState)(null),[p,m]=(0,J.useState)(!1),[h,g]=(0,J.useState)(!1),{t:_}=Ye(),v=n.parseEce?.meta?.messages,y=v?.filter?.(e=>!CQ.includes(e.exception)),b=v?.filter?.(e=>CQ.includes(e.exception)),{selectedPosition:x}=hg(),S=()=>{t({open:!1,data:null})},C=e=>{e.target?.files[0]&&e.target?.files[0].size<30*1024**2?u(e.target.files[0]):he.error(_(`common.labels.sizeFile30`))},w=()=>{let e=n.parseEce.data?.sender?.map?.(e=>({...e,id:null})),t=n.parseEce.data?.recipient?.map?.(e=>({...e,user:{...e?.user,id:null}})),r={...n.parseEce.data,sender:e,recipient:t};s(`/organizations/${i}/correspondence/new/?type=incoming`,{state:{defaultProps:{...r,ece:{id:null,manualEce:!0}}}})},T=()=>{y?.forEach?.(e=>{he.error(_(`${e.level}.${e.service}.${e.domain}.${e.context}.${e.exception}`))})};return di(()=>{T(),b?.length?g(!0):g(!1),n.parseEce.data&&!(v?.length>0)&&w(),m(!1)},[n.parseEce.data,n.parseEce.meta]),d(f,{children:[d(Mr,{onClose:S,open:n.ecsDialog?.open,classes:{paper:o.dialogPaper},children:[d(`div`,{className:o.appBar,children:[l(Gn,{onClick:S,"aria-label":`close`,children:l(ci,{})}),l(St,{children:_(`correspondence.letters.ece.labels.createEceLetter`)})]}),d(Pr,{children:[l(`input`,{type:`file`,id:`xmlFile`,accept:`text/xml`,style:{display:`none`},onChange:e=>C(e)}),l(nr,{htmlFor:`xmlFile`,fullWidth:!0,component:`label`,variant:`outlined`,children:_(`correspondence.letters.ece.labels.choiceEceLetter`)}
2743),c&&l(St,{variant:`subtitle1`,classes:{root:o.eceName},children:c.name}),d(G,{className:o.eceDescription,children:[l(St,{variant:`subtitle2`,children:_(`correspondence.letters.ece.labels.allowFormatXml`)}),d(St,{variant:`subtitle2`,children:[_(`correspondence.letters.ece.labels.sizeFile`),`.`]})]}),l(nr,{disabled:!c||p,id:`dialog-btn-compose-ece`,classes:{root:o.button},fullWidth:!0,variant:`contained`,onClick:async()=>{let t=new FormData;t.append(`file`,c),t.append(`organizationId`,i),t.append(`position`,JSON.stringify({id:x.position.id,slot:x.position.slot}));let n=a.solutionOrganizationRoles.data?.find?.(e=>e.id===va.secretariat_admin);if(n?.secretariats?.length){let e=n?.secretariats?.[0]?.id;t.append(`secretariatId`,e)}let r={data:t};m(!0),e(r)},children:p?l(Oi,{color:`white`}):_(`commands.letters.LetterComposed`)})]})]}),l(xQ,{errors:b??[],open:h,onClose:()=>g(!1),onConvert:w})]})}var TQ=e=>{let{letters:t,positions:n}=e;return{letters:t,positions:n}};wQ.propTypes={parseEceAsync:Z.default.func.isRequired,composeEce:Z.default.func.isRequired,letters:Z.default.shape({parseEce:Z.default.shape({data:Z.default.arrayOf(Z.default.shape({}))}),ecsDialog:Z.default.shape({open:Z.default.bool.isRequired})}).isRequired,positions:Z.default.shape({}).isRequired,organizationId:Z.default.string.isRequired};var EQ=Ze(TQ,{parseEceAsync:aS,composeEce:HS})(wQ),DQ=B()({composeLetterBtn:{display:`flex`,justifyContent:`space-between`,width:`100%`},menuPaper:{margin:`0px -5px`,minWidth:`140px`}}),OQ=e=>{let{open:t,composeEce:n,letters:r,positions:i,correspondenceAuthz:a,security:o}=e,{stylesGenerator:s}=Fk(),{classes:c}=B()(s)(),{classes:u,cx:p}=DQ(),m=h(),g=D(),_=Ik(),[v,y]=J.useState(null),b=e=>{y(e.currentTarget)},x=()=>{y(null)},S=e=>{g(`/organizations/${m.organizationId}/correspondence/new?type=${e}`)};return d(f,{children:[d(Lk,{button:!0,"aria-controls":`menu`,"aria-haspopup":`true`,id:`sidebar-compose-letter`,className:p({[c.ListItem]:t,[c.miniListItem]:!t},_===`/organizations/correspondence/new`?c.selectedSidebarItem:``),onClick:b,disabled:!i.positionsUser.data?.some(e=>e.organization.id===m.organizationId),children:[!t&&d(G,{className:c.miniSidebarItem,children:[l(oi,{className:`itemIcon`}),l(St,{variant:`body2`,children:` ایجاد نامه `})]}),t&&d(f,{children:[l(sp,{children:l(oi,{className:`itemIcon`})}),l(Xr,{primary:`ایجاد نامه جدید`})]})]}),l(Lr,{style:{margin:`auto`,width:`100%`}}),d($r,{id:`sidebar-compose-letter-menu`,anchorEl:v,keepMounted:!0,open:!!v,onClose:x,anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`right`},classes:{paper:u.menuPaper},children:[l(Lk,{onClick:()=>S(`internal`),children:`نامه داخلی`}),l(Lk,{onClick:()=>S(`outgoing`),children:`نامه ارسالی`}),l(Lk,{onClick:()=>S(`incoming`),children:`نامه وارده`}),l(Lk,{onClick:()=>n({open:!0,data:null}),security:o?.composeECE,children:`ثبت نامه ECE`})]}),l(EQ,{letters:r,composeEce:n,organizationId:m.organizationId,correspondenceAuthz:a})]})},kQ=e=>{let{organization:t,positions:n,correspondenceAuthz:r}=e;return{organization:t,positions:n,correspondenceAuthz:r}};OQ.propTypes={open:Z.default.bool.isRequired,composeEce:Z.default.func.isRequired,letters:Z.default.shape({}).isRequired,positions:Z.default.shape({}).isRequired,security:Gk.isRequired};var AQ=Ze(kQ,{})(OQ),jQ=({open:e,organization:t,security:n})=>{let{stylesGenerator:r}=Fk(),{classes:i,cx:a}=B()(r)(),o=h(),s=Ik();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/secretariats`,className:a({[i.ListItem]:e,[i.miniListItem]:!e},s===`/organizations/correspondence/correspondence-management/secretariats`?i.selectedSidebarItem:``),security:n?.manageSecretariats,children:[!e&&l(G,{component:S,to:`/organizations/${o.organizationId}/correspondence/correspondence-management/secretariats`,className:i.miniSidebarItem,children:l(by,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(by,{className:`itemIcon`})}),l(Xr,{primary:`مدیریت دبیرخانه‌ها`})]})]})})},MQ=e=>{let{organization:t}=e;return{organization:t}};jQ.propTypes={open:Z.default.bool.isRequired,organization:Z.default.shape({selectedOrganization:Z.default.shape({owner:Z.default.shape({id:Z.default.string})})}).isRequired,security:Gk.isRequired};var NQ=Ze(MQ,{})(jQ),PQ=B()({root:{minWidth:`-webkit-fill-available`,maxWidth:`-webkit-fill-available`},calendar:{width:`unset`,borderRadius:` 8px`,"& .MuiPickersDay-dayWithMargin":{borderRadius:` 8px`,width:`40px`},"& .MuiMonthCalendar-root":{width:`100% !important`},"& .MuiYearCalendar-root":{width:`100% !important`},"& .MuiPickersYear-yearButton":{width:`100%`},"& .MuiPickersMonth-monthButton":{width:`100%`}}}),FQ=({onChange:e,value:t,classesProp:n})=>
2743{let{classes:r,cx:i}=PQ();return l(q,{className:r.root,children:l(kn,{dateAdapter:Gq,dateFormats:{monthShort:`MMMM`},children:l(eU,{onChange:e,value:t,views:[`year`,`month`,`day`],dayOfWeekFormatter:e=>{let t=e.getDay()+1;return t===7&&(t=0),uM.daysOfWeek[t].label.split(``)[0]},classes:{root:i(r.calendar,n?.root)}})})})},IQ=B()({calendar:{'& .MuiDayCalendar-weekContainer >.MuiButtonBase-root[aria-selected="true"] ':{borderRadius:` 8px`,width:`40px`,backgroundColor:`#e9f2fb`,color:`#555555db`},'& .MuiDayCalendar-weekContainer:has(>.MuiButtonBase-root[aria-selected="true"])':{backgroundColor:`#3788d81c`,borderRadius:`16px`}}}),LQ=({paramName:e})=>{let t=D(),n=P(),[r]=ee(),i=r.get(e),[a,o]=(0,J.useState)((0,b_.default)(new Date(i||Date.now())).toDate()),{classes:s}=IQ();return(0,J.useEffect)(()=>{i&&o((0,b_.default)(new Date(i)).toDate())},[i]),l(FQ,{value:a,onChange:r=>{if(r){let i=uM.startOfTimeRangeFromSelectedDate((0,b_.default)(new Date(r.toLocaleString())),`week`);t({pathname:n.pathname,search:`?${e}=${i.toISOStr
2743ing()}`})}},classesProp:{root:s.calendar}})},RQ=()=>l(LQ,{paramName:`from`}),zQ=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),a=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,component:S,to:`/organizations/${a.organizationId}/organization-settings/permission-settings/organization-admins`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/organization-settings/permission-settings/organization-admins`||o===`/organizations/organization-settings/permission-settings/organization-groups`?r.selectedSidebarItem:``),children:[!e&&l(T_,{}),e&&d(f,{children:[l(sp,{children:l(T_,{})}),l(Xr,{primary:s(`organization.labels.access`)})]})]})},BQ=e=>{let{organization:t}=e;return{organization:t}};zQ.propTypes={open:Z.default.bool.isRequired,security:Gk.isRequired};var VQ=Ze(BQ,{})(zQ),HQ=({open:e})=>{let{stylesGenerator:t}=Fk(),{classes:n,cx:r}=B()(t)(),{organizationId:i}=h(),a=Ik(),{t:o}=Ye();return d(Lk,{button:!0,component:S,to:`/organizations/${i}/calendar`,className:r({[n.ListItem]:e,[n.miniListItem]:!e},a===`/organizations/calendar`?n.selectedSidebarItem:``),children:[!e&&l(G,{component:S,to:`/organizations/${i}/calendar`,className:n.miniSidebarItem,children:l(Ov,{className:`itemIcon`})}),e&&d(f,{children:[l(V_,{className:`itemIcon`}),l(Xr,{primary:o(`organization-dashboard.labels.organization-calendar`)})]})]})},UQ=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a}=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,component:S,to:`/organizations/${a}`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations`?r.selectedSidebarItem:``),children:[!e&&l(G,{component:S,to:`/organizations/${a}`,className:r.miniSidebarItem,children:l(Ov,{className:`itemIcon`})}),e&&d(f,{children:[l(my,{children:l(my,{className:`itemIcon`})}),l(Xr,{primary:s(`organization-dashboard.labels.organization-dashboard`)})]})]})},WQ=({open:e})=>{let{stylesGenerator:t}=Fk(),{classes:n,cx:r}=B()(t)(),{organizationId:i}=h(),a=Ik(),{t:o}=Ye();return d(Lk,{button:!0,component:S,to:`/organizations/${i}/dashboard`,className:r({[n.ListItem]:e,[n.miniListItem]:!e},a===`/organizations/dashboard`?n.selectedSidebarItem:``),children:[!e&&l(G,{component:S,to:`/organizations/${i}/dashboard`,className:n.miniSidebarItem,children:l(Q_,{className:`itemIcon`})}),e&&d(f,{children:[l(Q_,{className:`itemIcon`}),l(Xr,{primary:o(`organization-dashboard.labels.dashboard`)})]})]})},GQ=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),a=h(),o=Ik();return d(Lk,{button:!0,component:S,to:`/organizations/${a.organizationId}/organization-documents-list`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/organization-documents-list`?r.selectedSidebarItem:``),security:t.organizationDocumentsList,children:[!e&&l(G,{component:S,to:`/organizations/organization-documents-list`,className:r.miniSidebarItem,children:l(vv,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(vv,{className:`itemIcon`})}),l(Xr,{primary:de.t(`organization.labels.documentsList`)})]})]})}),KQ=({open:e,organization:t,security:n})=>{let{stylesGenerator:r}=Fk(),{classes:i,cx:a}=B()(r)(),o=h(),s=Ik();return d(Lk,{button:!0,component:S,to:`/organizations/${o.organizationId}/organization-settings/profile`,className:a({[i.ListItem]:e,[i.miniListItem]:!e},s===`/organizations/organization-settings/profile`?i.selectedSidebarItem:``),security:n.organizationProfile,children:[!e&&l(G,{component:S,to:`/organizations/${o.organizationId}/organization-settings/profile`,className:i.miniSidebarItem,children:l(B_,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(B_,{className:`itemIcon`})}),l(Xr,{primary:`پروفایل سازمان`})]})]})},qQ=e=>{let{organization:t}=e;return{organization:t}};KQ.propTypes={open:Z.default.bool.isRequired,organization:Z.default.shape({selectedOrganization:Z.default.shape({owner:Z.default.shape({id:Z.default.string})})}).isRequired,security:Gk.isRequired};var JQ=Ze(qQ,{})(KQ),YQ=({open:e,security:t})=>{let{stylesGenerator:n}
2743=Fk(),{classes:r,cx:i}=B()(n)(),{organizationId:a}=h(),o=Ik();return d(Lk,{button:!0,component:S,to:`/organizations/${a}/correspondence/receipted`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/correspondence/receipted`?r.selectedSidebarItem:``),security:t?.receipted,children:[!e&&l(G,{component:S,to:`/organizations/${a}/correspondence/receipted`,className:r.miniSidebarItem,children:l(_y,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(_y,{className:`itemIcon`})}),l(Xr,{primary:`رسید شده‌`})]})]})},XQ=e=>{let{organization:t}=e;return{organization:t}};YQ.propTypes={open:Z.default.bool.isRequired,security:Gk.isRequired};var ZQ=Ze(XQ,{})(YQ),QQ=B()({root:{flex:1}}),$Q=()=>{let{classes:e}=QQ();return l(f,{children:l(q,{className:e.root})})},e$=({open:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r,cx:i}=B()(n)(),a=h(),o=Ik();return l(f,{children:d(Lk,{button:!0,component:S,to:`/organizations/${a.organizationId}/organization-settings/structure`,className:i({[r.ListItem]:e,[r.miniListItem]:!e},o===`/organizations/organization-settings/structure`?r.selectedSidebarItem:``),children:[!e&&l(G,{component:S,to:`/organizations/${a.organizationId}/organization-settings/structure`,className:r.miniSidebarItem,children:l(w_,{className:`itemIcon`})}),e&&d(f,{children:[l(sp,{children:l(w_,{className:`itemIcon`})}),l(Xr,{primary:`ساختار سازمانی`})]})]})})},t$=e=>{let{organization:t}=e;return{organization:t}};e$.propTypes={open:Z.default.bool.isRequired,security:Gk.isRequired};var n$=Ze(t$,{})(e$),r$=(e,t)=>new Promise((n,r)=>{let i=JSON.parse(window.sessionStorage.getItem(`retry-lazy-${t}`)||`false`);e().then(e=>{window.sessionStorage.setItem(`retry-lazy-${t}`,`false`),n(e)}).catch(e=>{if(!i)return window.sessionStorage.setItem(`retry-lazy-${t}`,`true`),window.location.reload();r(e)})}),i$=(e,t)=>(0,J.lazy)(()=>r$(e,t)),a$=Ze(e=>{let{organization:t}=e;return{organization:t}},{})(({toggleDrawerMenu:e,security:t})=>{let{stylesGenerator:n}=Fk(),{classes:r}=B()(n)(),i=D(),a=h(),o=Ik(),{t:s}=Ye();return d(Lk,{button:!0,onClick:()=>{e(!1),i(`/organizations/${a.organizationId}/organization-documents-list`)},className:o===`/organizations/organization-documents-list`?r.selectedSidebarItem:``,security:t?.organizationDocumentsList,children:[l(sp,{classes:{root:r.menuListItemIcon},children:l(Jv,{className:`itemIcon`})}),l(Xr,{primary:s(`organization.labels.documentsList`)})]})}),o$=({to:e})=>{let t=h(),n=P();return l(k,{to:`${N(e,t)}${n.search}${n.hash}`,replace:!0})},s$=i$(()=>n(()=>import(`./ynRYv2Vk.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42])),`Login`),c$=i$(()=>n(()=>import(`./BJY6wd8d.js`),__vite__mapDeps([43,1,2,3,4,44,6,7,45,9,46,47,29,32,48,49,15,16,17,18,50,51,19,27,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,12,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75])),`CorrespondenceReports`),l$=i$(()=>n(()=>import(`./CZijL2Wf.js`),__vite__mapDeps([76,1,2,3,7,4,77,6,5,8,9,10,11,12,78,13,17,50,51,19,27,18,24,79,15,16,80,81,14,20,21,22,23,25,26,52,28,82,29,30,31,83,32,33,34,35,36,41,84,85,42])),`Register`),u$=i$(()=>n(()=>import(`./j1Knp4Yz.js`),__vite__mapDeps([86,1,2,3,7,4,5,6,8,9,10,11,12,78,13,17,14,15,16,18,19,20,21,22,23,24,25,26,27,28,82,29,30,31,83,32,33,41,36,42])),`RecoverPassword`),d$=i$(()=>n(()=>import(`./DL6in6WC2.js`),__vite__mapDeps([87,1,2,3,4,77,6,7,88,79,15,16,17,18,81,89,56,52,19,9,70,51,27,32,33,34,35,36,37,38,39,40,31,41,90,29])),`InvoicePayment`),f$=i$(()=>n(()=>import(`./CuELywyl2.js`),__vite__mapDeps([91,1,4,6,7,3,32,34,35,36,37,17,41])),`PaymentResult`),p$=i$(()=>n(()=>import(`./P1GdbdBc.js`),__vite__mapDeps([92,1,7,4,93,6,35,17,94,95,96,9,20,15,16,2,3,18,21,22,23,24,25,55,56,57,58,12,29,31,32,33,34,36,37])),`Organizations`),m$=i$(()=>n(()=>import(`./Zpbh0nIj2.js`),__vite__mapDeps([97,1,2,3,4,98,6,7,99,100,101,18,15,16,17,35,50,51,19,27,24,85,22,25,14,20,21,23,26,52,55,56,57,58,39,40,12,30,31,32,33,102,34,36,37,38,103,70,41,104,29,90,105])),`Wizard`),h$=i$(()=>n(()=>import(`./DKxGBfn5.js`),__vite__mapDeps([106,1,2,3,4,107,35,7,9,82,16,17,18,36,6,12,29,108,3
27431,32,109,110,34,37,38,39,40,27,41,74,111,112])),`OrganizationDashboard`),g$=i$(()=>n(()=>import(`./CqfpJFt1.js`),__vite__mapDeps([113,1,2,3,7,4,114,6,68,115,16,17,18,15,35,50,51,19,27,24,72,89,56,14,20,21,22,23,25,26,55,57,58,40,12,31,32,112,102,110,34,36,37,38,39,41,116,104,29,90])),`DashboardPage`),_$=i$(()=>n(()=>import(`./DycItJGY2.js`),__vite__mapDeps([117,1,7,4,118,6,12,29,2,3,108,31,32,109,34,35,36,37,17,38,16,18,39,40,27,119,41,73,74,120])),`TasksList`),v$=i$(()=>n(()=>import(`./DT6eAGUR.js`),__vite__mapDeps([121,1,2,3,7,4,77,6,122,123,17,9,31,34,35,36,37,41,79,15,16,18,81,14,19,20,21,22,23,24,25,26,27,12,29,30,32,33,124,38,39,40,119])),`Organization2`),y$=i$(()=>n(()=>import(`./ldxvfzcm.js`),__vite__mapDeps([125,1,7,4,35,3,33,126,114,6,17,50,51,19,27,18,24,46,47,2,29,32,48,49,15,16,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,34,37,38,39,40,41,12,127])),`OrganizationSms`),b$=i$(()=>n(()=>import(`./DVwekNPJ.js`),__vite__mapDeps([128,1,4,107,2,3,68,6,7,49,129,130,35,82,16,17,18,20,15,21,22,23,24,25,12,108,31,32,34,36,37,38,39,40,27,41,73,74,131,120])),`OrganizationCalendar`),x$=i$(()=>n(()=>import(`./vqlwalys.js`),__vite__mapDeps([132,1,2,3,7,4,77,6,68,99,133,100,101,18,35,17,50,51,19,27,24,72,134,16,89,56,96,9,28,21,53,54,23,26,69,58,20,15,22,25,55,57,70,36,135,39,40,12,29,31,32,33,34,37,38,41,74,111,112,110,104])),`Chat`),S$=i$(()=>n(()=>import(`./Ca_cUhO92.js`),__vite__mapDeps([136,1,7,4,13,6,101,18,35,17,89,56,14,15,16,2,3,19,20,21,22,23,24,25,26,27,9,28,53,54,69,58,12,29,30,31,32,33,124,34,36,37,137,123,138,139,140,38,39,40,41,42])),`UserProfile`),C$=i$(()=>n(()=>import(`./DQSOhVVf.js`),__vite__mapDeps([141,1,2,3,7,4,93,6,142,143,35,79,15,16,17,18,96,14,19,20,21,22,23,24,25,26,27,9,46,47,29,32,48,49,50,51,52,53,54,55,56,57,58,36,59,31,33,34,37,38,39,40,41,12,30,144,145,68,70,84,77,85,73,74,104,90])),`Employees`),w$=i$(()=>n(()=>import(`./6Dyr1PNt.js`),__vite__mapDeps([146,1,7,4,93,6,147,145,77,123,68,88,35,17,79,15,16,2,3,18,80,81,14,19,20,21,22,23,24,25,26,27,9,55,56,57,58,29,31,32,33,37,36,38,39,40,104,90,52,12,30,148,74,149])),`EmployeeProfile`),T$=i$(()=>n(()=>import(`./B8RF6UuZ.js`),__vite__mapDeps([150,1,2,3,7,4,93,6,151,143,77,123,152,153,15,16,17,18,72,14,19,20,21,22,23,24,25,26,27,40,154,134,79,81,85,96,9,53,54,69,58,55,56,57,46,47,29,32,48,49,50,51,52,36,59,31,33,34,35,37,38,39,41,12,30,124,155,73,74,156])),`ManageContacts`),E$=i$(()=>n(()=>import(`./_XOc5uuK.js`),__vite__mapDeps([157,1,2,3,7,4,35,14,15,16,17,18,19,20,21,22,23,24,25,6,26,27,9,55,56,57,58,12,29,30,31,32,33,124,34,36,37,158,74,156])),`Contacts`),D$=i$(()=>n(()=>import(`./DaoJA2h02.js`),__vite__mapDeps([159,1,4,35,7])),`Notifications`),O$=i$(()=>n(()=>import(`./BHi-cUiS2.js`),__vite__mapDeps([160,1,2,3,7,4,44,6,93,142,118,77,123,68,88,5,138,115,16,17,18,161,61,78,162,15,152,130,153,72,14,19,20,21,22,23,24,25,26,27,40,154,101,35,94,95,50,51,134,79,81,89,56,85,96,52,9,28,82,53,54,69,58,55,57,70,36,135,12,163,164,11,165,31,38,39,29,166,30,32,109,33,167,34,37,137,139,140,41,168,74,62,103,169,158,170,171,172,173,75,156,104,90,105,42,174])),`Letter`),k$=i$(()=>n(()=>import(`./C7Bqb1YY2.js`),__vite__mapDeps([175,1,2,3,7,4,93,6,77,122,123,17,9,31,34,35,36,37,41,79,15,16,18,81,85,22,24,25,96,14,19,20,21,23,26,27,46,47,29,32,48,49,50,51,52,53,54,55,56,57,58,59,33,38,39,40,12,30,168,74,62,171,176,177,75])),`SecretariatsList`),A$=i$(()=>n(()=>import(`./ITXdNQIg2.js`),__vite__mapDeps([178,1,2,3,7,4,179,93,6,5,180,152,153,15,16,17,18,72,14,19,20,21,22,23,24,25,26,27,40,154,35,28,29,31,33,34,36,37,38,39,41,46,47,32,48,49,50,51,52,53,54,55,56,57,58,59,12,181])),`SecretariatAdmins`),j$=i$(()=>n(()=>import(`./Bz6DjgDX2.js`),__vite__mapDeps([182,1,2,3,7,4,93,6,151,77,183,88,184,122,123,17,9,31,34,35,36,37,41,138,153,15,16,18,72,14,19,20,21,22,23,24,25,26,27,40,154,50,51,79,81,85,96,52,46,47,29,32,48,49,53,54,55,56,57,58,59,33,38,39,12,166,30,168,74,62,155,170,171,176,177,75])),`SecretariatDetails`),M$=i$(()=>n(()=>import(`./C-QkR3XA2.js`),__vite__mapDeps([185,1,2,3,7,4,142,6,77,35,17,14,15,16,18,19,20,21,22,23,24,25,26,27,52,9,55,56,57,58,12,30,31,32,33,38,39,40,168,74,62,75,29,149])),`Indicator`),N$=i$(()=>n(()=>import(`./oG36jhDF2.js`),__vite__mapDeps([186,1,2,3,4,184,6,7,35,17,9,46,47,29,32,48,49,15,16,18,50,51,19,27,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,37,38,39,40,41,12,166,60,61,62,63,187,44,66,67,68,69,70,71,72,73,74,188,93,89,85,96,75])),`NumberedLettersByIndicator`),P$=i$(()=>n(()=>import(`./BCel6whI.js`),__vite__mapDeps([189,1,2,3,7,4,93,6,151,145,77,68,138,147,123,88,35,17,79,15,16,18,80,81,14,19,20,21,22,23,24,25,26,27,9,55,56,57,58,29,31,32,33,37,36,38,39,40,104,90,50,51,52,12,30,34,119,41,144,70,148,169,109,190,191,46,47,48,49,53,54,59,116,74,192,193,180,194,142,153,72,154])),`Structure`),F$=i$(()=>n(()=>import(`./HCLzNOtC.js`),__vite__mapDeps([195,1,4,196,2,3,44,6,7,197,198,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,152,153,154,134,9,28,70,163,164,11,12,165,79,53,54,38,32,168,74,62,84,77,85,60,61,29,199,67,41,63,64,187,65,170,171,172,93,135,37,104,90,46,47,48,49,52,55,56,57,58,59,33,66,68,69,71,73,200,88,173,201,138,188,89,96,202,203,75])),`CartableAllLetters`),I$=i$(()=>n(()=>import(`./Byz5ZW692.js`),__vite__mapDeps([204,1,4,44,6,7,196,2,3,197,198,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,152,153,154,134,9,28,70,163,164,11,12,165,79,53,54,38,32,168,74,62,84,77,85,60,61,29,199,67,41,63,64,187,65,170,171,172,93,135,37,104,90,46,47,48,49,52,55,56,57,58,59,33,66,68,69,71,73,200,88,173,201,138,205,206,188,89,96,202,203,75])),`InProgressLetters`),L$=i$(()=>n(()=>import(`./CmvyLbKq.js`),__vite__mapDeps([207,1,4,196,2,3,44,6,7,197,198,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,152,153,154,134,9,28,70,163,164,11,12,165,79,53,54,38,32,168,74,62,84,77,85,60,61,29,199,67,41,63,64,187,65,170,171,172,93,135,37,104,90,46,47,48,49,52,55,56,57,58,59,33,66,68,69,71,73,200,88,173,201,138,205,206,188,89,96,202,203,75])),`EndedLetters`),R$=i$(()=>n(()=>import(`./DYSJfSpW2.js`),__vite__mapDeps([208,1,2,3,4,44,6,7,196,197,198,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,152,153,154,134,9,28,70,163,164,11,12,165,79,53,54,38,32,168,74,62,84,77,85,60,61,29,199,67,41,63,64,187,65,170,171,172,93,135,37,104,90,46,47,48,49,52,55,56,57,58,59,33,66,68,69,71,73,200,88,173,201,138,205,206,188,89,96,203,75])),`ForwardedLetters`),z$=i$(()=>n(()=>import(`./C86IU6842.js`),__vite__mapDeps([209,1,7,4,45,6,196,2,3,44,197,198,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,152,153,154,134,9,28,70,163,164,11,12,165,79,53,54,38,32,168,74,62,84,77,85,60,61,29,199,67,41,63,64,187,65,170,171,172,93,135,37,104,90,46,47,48,49,52,55,56,57,58,59,33,66,68,69,71,73,201,138,205,206,188,89,96,203,75])),`ReceiptedLetters`),B$=i$(()=>n(()=>import(`./Bf_wM1pW.js`),__vite__mapDeps([210,1,7,4,67,6,18,78,35,17,79,15,16,2,3,81,89,56,14,19,20,21,22,23,24,25,26,27,9,53,54,69,58,55,57,46,47,29,32,48,49,50,51,52,36,59,31,33,34,37,38,39,40,41,12,167,73,74,203,75])),`ECELetters`),V$=i$(()=>n(()=>
2743import(`./Dg3VVZop2.js`),__vite__mapDeps([211,1,7,4,145,6,114,68,50,51,19,27,18,24,52,20,15,16,2,3,17,21,22,23,25,70,36,12,29,30,32,33,34,35,37,38,39,40,31,41,74,75,104,90])),`ManageForwardAccess`),H$=i$(()=>n(()=>import(`./-q7WaU8R2.js`),__vite__mapDeps([212,1,7,4,44,6,67,18,68,196,2,3,197,198,143,15,16,17,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,152,153,154,134,9,28,70,163,164,11,12,165,79,53,54,38,32,168,74,62,84,77,85,60,61,29,199,41,63,64,187,65,170,171,172,93,135,37,104,90,69,58,46,47,48,49,52,55,56,57,59,33,71,73,206,75])),`ResultsSearch`),U$=i$(()=>n(()=>import(`./iVvD7v752.js`),__vite__mapDeps([213,1,7,4,47,2,3,6,29,32,44,93,77,48,49,15,16,17,18,35,50,51,19,27,24,72,79,81,96,14,20,21,22,23,25,26,52,9,53,54,69,58,55,56,57,59,39,40,12,30,31,33,34,36,84,85,75,62,214])),`LetterReceipts`),W$=i$(()=>n(()=>import(`./C0ADkNZU2.js`),__vite__mapDeps([215,1,2,3,7,4,93,6,145,77,123,183,48,161,216,162,15,16,17,18,140,35,50,51,19,27,24,72,134,79,81,89,56,14,20,21,22,23,25,26,52,9,28,53,54,69,58,55,57,70,
2743135,39,40,12,29,30,31,32,33,217,34,36,37,38,41,74,75])),`LayoutEditorPage`),G$=i$(()=>n(()=>import(`./CGNjiAdC2.js`),__vite__mapDeps([218,1,2,3,7,4,68,6,138,15,16,17,18,35,79,80,9,12,29,31,32,33,34,36,37,38,39,40,27,119,41,74,219])),`SolutionsList`),K$=i$(()=>n(()=>import(`./C0JcbNf72.js`),__vite__mapDeps([220,1,2,3,7,4,198,6,68,138,133,35,17,134,16,18,14,15,19,20,21,22,23,24,25,26,27,9,28,135,12,221,30,31,32,33,34,36,37,41,74,219])),`Tariff`),q$=i$(()=>n(()=>import(`./BooOoyFs2.js`),__vite__mapDeps([222,1,2,3,7,4,179,93,6,5,180,152,153,15,16,17,18,72,14,19,20,21,22,23,24,25,26,27,40,154,35,28,29,31,33,34,36,37,38,39,41,46,47,32,48,49,50,51,52,53,54,55,56,57,58,59,12,181,223,224,225,127,104])),`OrganizationAdmins`),J$=i$(()=>n(()=>import(`./CIoeERLa2.js`),__vite__mapDeps([226,1,4,227,6,7,35,89,56,21,69,58,18,12,3,224,127,33])),`PermissionSettings`),Y$=i$(()=>n(()=>import(`./DJbBfxLn.js`),__vite__mapDeps([228,1,4,227,6,7,100,35,89,56,21,69,58,18,12,3,34,36])),`OrganizationSettings`),X$=i$(()=>n(()=>import(`./b4VlYulz.js`),__vite__mapDeps([229,1,4,191,6,7,9,46,47,2,3,29,32,48,49,15,16,17,18,50,51,19,27,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,12,73,74,181,225,127,230])),`OrganizationAccessGroups`),Z$=i$(()=>n(()=>import(`./Fk5X6EaR.js`),__vite__mapDeps([231,1,2,3,4,179,7,93,6,5,180,152,153,15,16,17,18,72,14,19,20,21,22,23,24,25,26,27,40,154,35,28,29,31,33,34,36,37,38,39,41,46,47,32,48,49,50,51,52,53,54,55,56,57,58,59,12,73,74,181,193,223,127,230,104]))),Q$=i$(()=>n(()=>import(`./Cq2dem5j.js`),__vite__mapDeps([232,1,2,3,4,180,6,7,9,36,12,29,31,32,33,34,35,37,17,119,41,233,77,79,15,16,18,81,38,39,40,27,148,104,90,190,191,46,47,48,49,50,51,19,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,59,30,169,109,116,74,192,193,194,142,153,72,154,73]))),$$=i$(()=>n(()=>import(`./CM6PCz6S2.js`),__vite__mapDeps([234,1,4,227,6,7,89,56,21,69,58,18,12,3,34,35,36])),`SettingsAdmins`),e1=i$(()=>n(()=>import(`./CgNLHryS2.js`),__vite__mapDeps([235,1,2,3,7,4,179,93,6,5,180,152,153,15,16,17,18,72,14,19,20,21,22,23,24,25,26,27,40,154,35,28,29,31,33,34,36,37,38,39,41,46,47,32,48,49,50,51,52,53,54,55,56,57,58,59,12,193,236,237,127,104])),`Settings`),t1=i$(()=>n(()=>import(`./CBy5Erjy2.js`),__vite__mapDeps([238,1,2,3,7,4,179,93,6,5,180,152,153,15,16,17,18,72,14,19,20,21,22,23,24,25,26,27,40,154,35,28,29,31,33,34,36,37,38,39,41,46,47,32,48,49,50,51,52,53,54,55,56,57,58,59,12,181,193,236,237,127,104])),`ManageAdmins`),n1=i$(()=>n(()=>import(`./D8U5si1S2.js`),__vite__mapDeps([239,1,7,4,35,3,33,126,114,6,17,50,51,19,27,18,24,46,47,2,29,32,48,49,15,16,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,34,37,38,39,40,41,12,237,127])),`SettingsSms`),r1=i$(()=>n(()=>import(`./CtWQ0kzx.js`),__vite__mapDeps([240,1,4,227,6,7,241,35,89,56,21,53,54,23,26,69,58,18,12,31])),`CorrespondenceManagement`),i1=i$(()=>n(()=>import(`./CLSFVh5-.js`),__vite__mapDeps([242,1,4,227,6,7,241,35,89,56,21,69,58,18,12,31,75,29,2,3,32,33])),`CorrespondenceReportsManagement`),a1=i$(()=>n(()=>import(`./wS2pi3-7.js`),__vite__mapDeps([243,1,7,4,17,9,12,31])),`CorrespondenceAdmins`),o1=i$(()=>n(()=>import(`./DbDIyvwv.js`),__vite__mapDeps([244,1,2,3,4,93,6,7,15,16,17,18,96,52,19,9,46,47,29,32,48,49,50,51,27,24,14,20,21,22,23,25,26,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,12,30,155,73,74,245])),`MeetingsManagement`),s1=i$(()=>n(()=>import(`./jxEXOEq9.js`),__vite__mapDeps([246,1,2,3,4,197,7,198,6,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,46,47,29,32,48,49,52,53,54,55,56,57,58,59,33,37,38,41,247,118,77,68,45,129,89,12,71,69,73,74,245])),`OrganizationMeetingsList`),c1=i$(()=>n(()=>import(`./DV8offjc.js`),__vite__mapDeps([248,1,2,3,4,107,197,7,198,6,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,82,46,47,29,32,48,49,52,53,54,55,56,57,58,59,33,37,38,41,247,118,77,68,45,129,89,12,71,69,73,74,131,245])),`MeetingsCartable`),l1=i$(()=>n(()=>import(`./DNDqjByO2.js`),__vite__mapDeps([249,1,250,4,33])),`AdministrationDashboard`),u1=i$(()=>n(()=>import(`./BC6BN5oZ2.js`),__vite__mapDeps([251,1,2,3,4,184,6,7,9,46,47,29,32,48,49,15,16,17,18,50,51,19,27,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,12,73,74,250])),`AdministrationDashboard`),d1=i$(()=>n(()=>import(`./owZ-XGW72.js`),__vite__mapDeps([252,1,4,93,6,7,98,9,28,19,46,47,2,3,29,32,48,49,15,16,17,18,50,51,27,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,163,164,11,12,165,72,79,30,73,74,250])),`AdministrationDashboard`),f1=i$(()=>n(()=>import(`./CQ_Ux4If2.js`),__vite__mapDeps([253,1,4,77,6,7,45,79,15,16,2,3,17,18,81,9,46,47,29,32,48,49,50,51,19,27,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,12,60,61,
274362,199,67,65,66,44,68,69,70,71,72,73,74,177,75,104,90])),`AllForwardedLetter`),p1=i$(()=>n(()=>import(`./BvZommPt2.js`),__vite__mapDeps([254,1,2,3,7,4,50,6,51,19,27,18,24,89,56,52,59,12,29,221,31,32,33,34,35,36,37,17,74])),`Invoice`),m1=i$(()=>n(()=>import(`./BvhDXklB.js`),__vite__mapDeps([255,1,2,3,7,4,9,16,17,18,21,46,47,6,29,32,48,49,15,50,51,19,27,24,14,20,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,12,110,73,74]))),h1=i$(()=>n(()=>import(`./Dc9R9g5y.js`),__vite__mapDeps([256,1,2,3,4,93,6,7,138,15,16,17,18,96,9,46,47,29,32,48,49,50,51,19,27,24,14,20,21,22,23,25,26,52,53,54,55,56,57,58,36,59,31,33,34,35,37,38,39,40,41,135,12,30,217,233,77,79,81,73,74,111,112,110,104,90,194,142,153,72,154,257]))),g1=i$(()=>n(()=>import(`./DayCJs21.js`),__vite__mapDeps([258,1,2,3,4,93,6,7,118,197,198,143,15,16,17,18,35,50,51,19,27,24,72,14,20,21,22,23,25,26,39,40,31,34,36,77,123,184,45,161,216,139,89,56,85,9,55,57,58,46,47,29,32,48,49,52,53,54,59,33,37,38,41,12,163,28,164,11,165,79,30,108,233,81,71,68,69,73,74,111,112,110,257,105,120])),`ProjectTasksListTab`),{t:_1}=de,v1=[{path:`/`,component:s$,isPublicRoute:!0},{path:`/login`,component:s$,isPublicRoute:!0},{path:`/register`,component:l$,isPublicRoute:!0},{path:`/recover-password`,component:u$,isPublicRoute:!0},{path:`/notifications`,component:D$,title:`اعلان‌ها`,showSideBar:!1,showAppBar:!0,showBottomBar:!0,showBreadcrumbs:!1,sideMenus:[]},{path:`/profile`,component:S$,title:`پروفایل کاربر`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBackButton:!0,breadcrumbsInfo:{name:`profile`,label:`پروفایل`}},{path:`/organizations`,component:p$,title:`سازمان‌ها`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0},{path:`/wizard`,component:m$,title:_1(`breadcrumbs.segments.wizard`),showSideBar:!1,showAppBar:!1,showBreadcrumbs:!1},{path:`/organizations/:organizationId`,component:h$,title:_1(`organization-dashboard.labels.organization-dashboard`),iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ],bottomBarMenus:[dj,fj,lj,XA,a$,pj]},{path:`/organizations/:organizationId/organization-settings/profile`,component:v$,security:{strategy:Nk.PAGE.ORGANIZATION_PROFILE},title:`پروفایل سازمان`,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId`,sideMenus:[rQ,JQ,hQ,n$,VQ,Yk,Rk]},{path:`/organizations/:organizationId/organization-settings/sms`,component:y$,security:{strategy:Nk.PAGE.SOLUTIONS},title:`اعلان‌های سازمان`,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId`,sideMenus:[rQ,JQ,hQ,n$,VQ,Yk,Rk]},{path:`/organizations/:organizationId/calendar`,component:b$,title:`تقویم آوات`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ],bottomBarMenus:[dj,fj,lj,XA,a$,pj]},{path:`/organizations/:organizationId/chat`,component:x$,title:`چت سازمانی`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0},{path:`organizations/create-organization`,component:v$,title:`ایجاد سازمان جدید`,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBackButton:!0},{path:`/organizations/:organizationId/organization-settings/employees`,component:C$,title:`کارمندان`,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,security:{strategy:Nk.PAGE.EMPLOYEES},backURL:`/organizations/:organizationId`,sideMenus:[rQ,JQ,hQ,n$,VQ,Yk,Rk]},{path:`/organizations/:organizationId/organization-settings/employees/:employeeId`,component:w$,security:{strategy:Nk.PAGE.EMPLOYEES},title:`پروفایل کارمند`,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBackButton:!0},{path:`/organizations/:organizationId/contacts`,component:T$,title:`مخاطبان`,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ]},{path:`/organizations/:organizationId/contacts/new-contact`,component:E$,title:`ایجاد مخاطب`,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBackButton:!0},{path:`/organizations/:organizationId/contacts/:contactId`,component:E$,title:`پروفایل مخاطب`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBackButton:!0},{path:`/organizations/:organizationId/organization-settings/structure`,component:P$,title:`ساختار سازمانی`,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId`,sideMenus:[rQ,JQ,hQ,n$,VQ,Yk,Rk]},{path:`/organizations/:organizationId/organization-settings/structure/:groupId`,component:Q$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBackButton:!0,showBreadcrumbs:!0,showBottomBar:!1,backURL:`/organizations/:organizationId/organization-settings/structure`},{path:`/organizations/:organizationId/organization-documents-list`,component:m1,title:_1(`organization.labels.documentsList`),iconTopBar:`back`,backURL:`/organizations/:organizationId`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ],security:{strategy:Nk.PAGE.MANAGEMENT_CENTER_DOCUMENTS_LIST}},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats`,component:k$,title:_1(`breadcrumbs.segments.secretariats`),iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId/correspondence`,sideMenus:[rQ,NQ,bj,Sj],bottomBarMenus:[cj,WA,aj],security:{strategy:Nk.PAGE.MANAGEMENT_SECRETARIATS}},{path:`/organizations/:organizationId/correspondence/correspondence-management/reports/all-forwarded-letter`,component:f1,title:_1(`correspondence.management.all-forwarded-letter`),iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId/correspondence`,sideMenus:[rQ,NQ,bj,Sj],bottomBarMenus:[cj,WA,aj],security:{strategy:Nk.PAGE.ALL_FORWARDED_LETTERS}},{path:`/organizations/:organizationId/correspondence/correspondence-management/forward-access`,component:V$,title:_1(`correspondence.management.forward-access`),iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId/correspondence`,sideMenus:[rQ,NQ,bj,Sj],bottomBarMenus:[cj,WA,aj],security:{strategy:Nk.PAGE.FORWARD_ACCESS_REGISTRY}},{path:`/organizations/:organizationId/correspondence/correspondence-management/reports/references-reports`,component:c$,title:de.t(`correspondence.management.reports`),iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId/correspondence`,sideMenus:[rQ,NQ,bj,Sj],bottomBarMenus:[cj,WA,aj],security:{strategy:Nk.PAGE.CORRESPONDENCE_REPORTS_REFERENCES}},{path:`/organizations/:organizationId/correspondence/correspondence-management`,component:r1,title:_1(`correspondence.management.correspondence-management`),iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,sideMenus:[rQ,NQ,bj,Sj],backURL:`/organizations/:organizationId/correspondence`,security:{strategy:Nk.PAGE.MANAGEMENT_CORRESPONDENCE}},{path:`/organizations/:organizationId/correspondence/correspondence-management/reports`,component:i1,title:de.t(`correspondence.management.reports`),iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,sideMenus:[rQ,NQ,bj,Sj],backURL:`/organizations/:organizationId/correspondence`,security:{strategy:Nk.PAGE.MANAGEMENT_CORRESPONDENCE}},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId`,component:j$,title:``,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,isReadOnlyPositionSelection:!0,security:{strategy:Nk.PAGE.SECRETARIAT_INFORMATION}},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId/secretariat-admins`,component:A$,title:`راهبران دبیرخانه`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,isReadOnlyPositionSelection:!0}
2743,{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId/letter-layout/:layoutId`,component:W$,title:``,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`letter-layout`}},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId/new-indicator`,component:M$,title:`ایجاد اندیکاتور`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId/:indicatorId`,component:M$,title:``,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,isReadOnlyPositionSelection:!0,security:{strategy:Nk.PAGE.INDICATOR_INFORMATION}},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId/:indicatorId/numberedLetters`,component:N$,title:``,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`numbered-letters`},security:{strategy:Nk.PAGE.GET_NUMBERED_LETTERS_BY_INDICATOR}},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId/:indicatorId/numberedLetters/:letterId`,component:O$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`edit-letter`}},{path:`/organizations/:organizationId/correspondence/correspondence-management/secretariats/:secretariatId/:indicatorId/numberedLetters/:letterId/receipts`,component:U$,title:`رسیدهای ارسال`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`letter-receipts`}},{path:`/organizations/:organizationId/correspondence/new`,component:O$,title:``,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`new-letter`}},{path:`/organizations/:organizationId/correspondence`,component:F$,title:`کارتابل`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[AQ,oQ,vQ,ZQ,fQ,$Q,dQ,xj],bottomBarMenus:[qA,ij,gj,QA,ZA]},{path:`/organizations/:organizationId/correspondence/correspondence-search-results`,component:H$,title:`نتایج جستجو`,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,showBackButton:!0},{path:`/organizations/:organizationId/correspondence/active`,component:I$,title:`کارتابل`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[AQ,oQ,vQ,ZQ,fQ,$Q,dQ,xj],bottomBarMenus:[qA,ij,gj,QA,ZA]},{path:`/organizations/:organizationId/correspondence/ended`,component:L$,title:`کارتابل`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[AQ,oQ,vQ,ZQ,fQ,$Q,dQ,xj],bottomBarMenus:[qA,ij,gj,QA,ZA]},{path:`/organizations/:organizationId/correspondence/forwardedBy`,component:R$,title:`کارتابل`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[AQ,oQ,vQ,ZQ,fQ,$Q,dQ,xj],bottomBarMenus:[qA,ij,gj,QA,ZA]},{path:`/organizations/:organizationId/correspondence/receipted`,component:z$,title:`کارتابل`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[AQ,oQ,vQ,ZQ,fQ,$Q,dQ,xj],bottomBarMenus:[qA,ij,gj,QA,ZA]},{path:`/organizations/:organizationId/correspondence/ece-letters`,component:B$,title:`لیست نامه‌های ECE`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[AQ,oQ,vQ,ZQ,fQ,$Q,dQ,xj],bottomBarMenus:[qA,ij,gj,QA,ZA],security:{strategy:Nk.PAGE.FORWARD_ACCESS_REGISTRY}},{path:`/organizations/:organizationId/correspondence/:letterId`,component:O$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`edit-letter`}},{path:`/organizations/:organizationId/correspondence/active/:letterId`,component:O$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`edit-letter`}},{path:`/organizations/:organizationId/correspondence/ended/:letterId`,component:O$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`edit-letter`}},{path:`/organizations/:organizationId/correspondence/forwardedBy/:letterId`,component:O$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`edit-letter`}},{path:`/organizations/:organizationId/correspondence/receipted/:letterId`,component:O$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,isReadOnlyPositionSelection:!0,breadcrumbsInfo:{name:`edit-letter`}},{path:`/organizations/:organizationId/correspondence/ece-letters/:letterId`,component:O$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,breadcrumbsInfo:{name:`edit-letter`}},{path:`/organizations/:organizationId/correspondence/:letterId/receipts`,component:U$,title:`رسیدهای ارسال`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,breadcrumbsInfo:{name:`letter-receipts`}},{path:`/organizations/:organizationId/correspondence/active/:letterId/receipts`,component:U$,title:`رسیدهای ارسال`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,breadcrumbsInfo:{name:`letter-receipts`}},{path:`/organizations/:organizationId/correspondence/ended/:letterId/receipts`,component:U$,title:`رسیدهای ارسال`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,breadcrumbsInfo:{name:`letter-receipts`}},{path:`/organizations/:organizationId/correspondence/forwardedBy/:letterId/receipts`,component:U$,title:`رسیدهای ارسال`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,breadcrumbsInfo:{name:`letter-receipts`}},{path:`/organizations/:organizationId/correspondence/receipted/:letterId/receipts`,component:U$,title:`رسیدهای ارسال`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,breadcrumbsInfo:{name:`letter-receipts`}},{path:`/organizations/:organizationId/correspondence/ece-letters/:letterId/receipts`,component:U$,title:`رسیدهای ارسال`,iconTopBar:`back`,showAppBar:!0,showSideBar:!1,showBreadcrumbs:!0,showBottomBar:!1,showBackButton:!0,breadcrumbsInfo:{name:`letter-receipts`}},{path:`/organizations/:organizationId/settings/:solution`,component:$$,security:{strategy:Nk.PAGE},title:`تنظیمات راهکار`,iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,sideMenus:[rQ,eQ,YZ,$Z],backURL:`/organizations/:organizationId/organization-settings/shop`},{path:`/organizations/:organizationId/settings/:solution/admins`,component:t1,security:{strategy:Nk.PAGE},title:`راهبران راهکار`,iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,ignoreBreadcrumb:[1],sideMenus:[rQ,eQ,YZ,$Z],backURL:`/organizations/:organizationId/organization-settings/shop`},{path:`/organizations/:organizationId/settings/:solution/users`,security:{strategy:Nk.PAGE},component:e1,title:`کاربران راهکار`,iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,ignoreBreadcrumb:[1],sideMenus:[rQ,eQ,YZ,$Z],backURL:`/organizations/:organizationId/organization-settings/shop`,bottomBarMenus:[]},{path:`/organizations/:organizationId/settings/:solution/sms`,security:{strategy:Nk.PAGE.SOLUTIONS},component:n1,title:`پیامک راهکار`,iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,ignoreBreadcrumb:[1],sideMenus:[rQ,eQ,YZ,$Z],backURL:`/organizations/:organizationId/organization-settings/shop`,bottomBarMenus:[]},{path:`/organizations/:organizationId/organization-settings`,title:_1(`organization.labels.settings`),component:Y$,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,backURL:`/organizations/:organizationId`},{path:`/organizations/:organizationId/organization-settings/permission-settings`,component:J$,title:_1(`organization.labels.access`),iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[JQ,hQ,n$,lQ,VQ,Yk,Rk],backURL:`/organizations/:organizationId`},{path:`/organizations/:organizationId/organization-settings/permission-settings/organization-groups`,component:X$,title:_1(`organization.labels.organizationAccess`),iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[rQ,JQ,hQ,n$,VQ,Yk,Rk],backURL:`/organizations/:organizationId`},{path:`/organizations/:organizationId/organization-settings/permission-settings/organization-admins`,component:q$,title:`راهبران`,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[rQ,JQ,hQ,n$,VQ,Yk,Rk],backURL:`/organizations/:organizationId`},{path:`/organizations/:organizationId/organization-settings/permission-settings/organization-groups/:groupId`,component:Z$,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBackButton:!0,showBreadcrumbs:!0,showBottomBar:!1,backURL:`/organizations/:organizationId/organization-settings/permission-settings/organization-groups`,security:{strategy:Nk.PAGE.ORGANIZATION_ACCESS_GROUP_MEMBERS}},{path:`/organizations/forbidden`,component:a1,title:``,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0},{path:`/organizations/:organizationId/organization-settings/solutions`,redirectTo:`/organizations/:organizationId/organization-settings/shop`},{path:`/organizations/:organizationId/organization-settings/solutions/:itemTariff`,redirectTo:`/organizations/:organizationId/organization-settings/shop/:itemTariff`},{path:`/organizations/:organizationId/organization-settings/solutions/:itemTariff/:orderId`,redirectTo:`/organizations/:organizationId/organization-settings/shop/:itemTariff/:orderId`},{path:`/organizations/:organizationId/organization-settings/solutions/:itemTariff/:invoiceId/payment`,redirectTo:`/organizations/:organizationId/organization-settings/shop/:itemTariff/:invoiceId/payment`},{path:`/organizations/:organizationId/organization-settings/solutions/:itemTariff/:invoiceId/payment/payment-result`,redirectTo:`/organizations/:organizationId/organization-settings/shop/:itemTariff/:invoiceId/payment/payment-result`},{path:`/organizations/:organizationId/organization-settings/shop`,component:G$,security:{strategy:Nk.PAGE.SOLUTIONS},title:_1(`breadcrumbs.segments.shop`),iconTopBar:`back`,showAppBar:!0,showSideBar:!0,showBreadcrumbs:!0,sideMenus:[rQ,JQ,hQ,n$,VQ,Yk,Rk],backURL:`/organizations/:organizationId`,bottomBarMenus:[]},{path:`/organizations/:organizationId/organization-settings/shop/:itemTariff`,component:K$,title:`تعرفه`,iconTopBar:`back`,showSideBar:!1,showAppBar:!0,showBackButton:!0,showBreadcrumbs:!0,showBottomBar:!1},{path:`/organizations/:organizationId/organization-settings/shop/:itemTariff/:orderId`,component:p1,title:`پیش فاکتور`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,security:{strategy:Nk.PAGE.SOLUTIONS}},{path:`/organizations/:organizationId/organization-settings/shop/:itemTariff/:invoiceId/payment`,component:d$,title:`پیش فاکتور`,showSideBar:!1,showAppBar:!0,showBackButton:!0,showBreadcrumbs:!0,showBottomBar:!1,security:{strategy:Nk.PAGE.SOLUTIONS}},{path:`/organizations/:organizationId/organization-settings/shop/:itemTariff/:invoiceId/payment/payment-result`,component:f$,title:`پیش فاکتور`,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,security:{strategy:Nk.PAGE.SOLUTIONS},breadcrumbsInfo:{name:`payment-result`}},{path:`/organizations/:organizationId/meetings`,component:c1,title:`جلسات`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,security:{strategy:Nk.PAGE.MEETING_CARTABLE},sideMenus:[UZ,RQ,$Q,dQ,wj,GZ],bottomBarMenus:[UA,VA,HA],breadcrumbsInfo:{name:`meetings-cartable`}},{path:`/organizations/:organizationId`,component:h$,title:de.t(`organization-dashboard.labels.organization-dashboard`)||``,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ],bottomBarMenus:[dj,fj,lj,XA,pj]},{path:`/organizations/:organizationId/tasksList`,component:_$,title:_1(`tasks.labels.tasks`),iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ],bottomBarMenus:[dj,fj,lj,XA,pj],breadcrumbsInfo:{name:`task-cartable`}},{path:`/organizations/:organizationId/dashboard`,component:g$,title:_1(`breadcrumbs.segments.dashboard`),iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ],bottomBarMenus:[dj,fj,lj,XA,a$,pj],breadcrumbsInfo:{name:`dashboard`,label:_1(`breadcrumbs.segments.dashboard`)}},{path:`/organizations/:organizationId/meetings/meetings-management`,component:o1,title:`محل جلسات`,iconTopBar:`back`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!1,security:{strategy:Nk.PAGE.MEETINGS_LOCATIONS},sideMenus:[UZ,Tj,$Q,dQ,wj,GZ],breadcrumbsInfo:{name:`meetings-management`}},{path:`/organizations/:organizationId/meetings/all-meetings-organization`,component:s1,title:`همه جلسات سازمان`,iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,showBottomBar:!0,security:{strategy:Nk.PAGE.MEETINGS_LOCATIONS},sideMenus:[UZ,Tj,RQ,$Q,dQ,wj,GZ],bottomBarMenus:[UA,VA,HA],breadcrumbsInfo:{name:`all-meetings-organization`}},{path:`/administration`,component:l1,title:_1(`administration.labels.administration-dashboard`)??``,security:{strategy:Nk.PAGE.ADMINISTRATION_DASHBOARD},iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[_j,vj,yj],bottomBarMenus:[RA,zA,BA],breadcrumbsInfo:{name:`administration-panel`}},{path:`/administration/orders`,component:u1,title:_1(`administration.labels.orders`)??``,security:{strategy:Nk.PAGE.ADMINISTRATION_DASHBOARD},iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[_j,vj,yj],bottomBarMenus:[RA,zA,BA],breadcrumbsInfo:{name:`administration-orders`}},{path:`/administration/assignment-of-discounts-management`,component:d1,title:_1(`administration.labels.discount-codes-management`)??``,security:{strategy:Nk.PAGE.ADMINISTRATION_DASHBOARD},iconTopBar:`more`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,sideMenus:[_j,vj,yj],bottomBarMenus:[RA,zA,BA],breadcrumbsInfo:{name:`assignment-of-discounts-management`}},{path:`/organizations/:organizationId/projects`,component:h1,title:`پروژه ها`,showSideBar:!0,showAppBar:!0,showBreadcrumbs:!0,iconTopBar:`back`,sideMenus:[UQ,WQ,HQ,lQ,IA,GQ,$Q,qZ],bottomBarMenus:[dj,fj,lj,XA,a$,pj],breadcrumbsInfo:{name:`list`}},{path:`/organizations/:organizationId/projects/:projectId`,component:g1,showSideBar:!1,showAppBar:!0,showBreadcrumbs:!0,iconTopBar:`back`,showBackButton:!0,backURL:`/organizations/:organizationId/projects`}],y1=v1,b1=({organization:e,secretariats:t,letters:n,groups:r,projects:i,positions:a})=>{let o=P(),s=h(),[c]=ee(),{search:l}=o,{t:u}=Ye(),d=Ik(),{organizationId:f,secretariatId:p,indicatorId:m,letterId:g,layoutId:_,itemTariff:v,orderId:y,invoiceId:b,groupId:x,projectId:S,solution:C}=s,w=Object.keys(s),T=[];
2743c.forEach((e,t)=>{T.push(t)});let E=new URLSearchParams(l).get(`type`),D=(()=>{let e=M(v1,o.pathname);return e&&e[0].route})(),O=D?.path.split(`/`).filter(e=>e).map(e=>e.startsWith(`:`)?e.substring(1):e).join(`_`)||``;if(D?.breadcrumbsInfo){let{breadcrumbsInfo:e}=D,{name:t}=e;if(t===`new-letter`)O+=`-${E}`;else if(t===`edit-letter`||t===`letter-receipts`){let e=O.split(`_`),t=e.findIndex(e=>e===`letterId`);e.splice(t,1,E??`letterId`),O=e.join(`_`)}else if(t===`payment-result`){let e=O.split(`_`);O=e.slice(e.length-2).join(`_`)}else t===`letter-layout`&&(O=O.split(`_`).filter(e=>e!==`letter-layout`).join(`_`))}let k=o=>{switch(o){case`organizationId`:return e?.selectedOrganization?.displayName;case`secretariatId`:return t?.secretariatsList?.data?.find(e=>e.id===p)?.name;case`indicatorId`:return t?.indicatorsList?.data?.find(e=>e.id===m||c.get(o))?.name;case`layoutId`:return t?.letterLayoutsList?.data?.find(e=>e.layoutId===_)?.name;case`letterId`:return n?.selectedLetter?.data?.subject;case`itemTariff`:return u(`breadcrumbs.segments.solution-order`);case`solution`:return u(`breadcrumbs.segments.${C===`tasks`?`projectManagement-settings`:`${C}-settings`}`);case`orderId`:return u(`breadcrumbs.segments.orderId`);case`invoiceId`:return u(`breadcrumbs.segments.invoiceId`);case`employeeId`:return u(`breadcrumbs.segments.employeeId`);case`contactId`:return u(`breadcrumbs.segments.contactId`);case`projectId`:return i?.project?.data?.title;case`groupId`:return O.includes(`_structure_`)?a?.groups?.data?.f
2743ind?.(e=>e.id===x)?.title||(a?.groupData?.data?.id===x?a.groupData.data.title??``:``):r?.groupList?.data?.find?.(e=>e.id===x)?.title??``;default:return o}},A=e=>{switch(e){case`organizationId`:return f;case`secretariatId`:return p;case`indicatorId`:return m;case`letterId`:case E:return g;case`layoutId`:return _;case`itemTariff`:return v;case`solution`:return C;case`orderId`:return y;case`invoiceId`:return d===`/organizations/shop/payment`?o.state?.orderId??b:b;default:return e}};return{urlPathSegments:(e=>{let t=e.split(`_`),n=t.map((e,n)=>t.slice(0,n+1).map(e=>A(e)).join(`/`));return f?n.slice(1,t.length):n})(O),translatedPathSegments:(e=>e.map(e=>{let t=e;return[...w,...T].forEach(e=>{let n=new RegExp(e,`g`);t=t?.replace(n,k(e)??``)}),t}))((()=>{let e=O.split(`_`);return f&&(e=e?.slice(1,e?.length)),e?.map(e=>w.includes(e)?k(e):u(`breadcrumbs.segments.${e}`))})())}},x1=Le(Ze(e=>{let{organization:t,secretariats:n,letters:r,groups:i,projects:a,positions:o}=e;return{organization:t,secretariats:n,letters:r,groups:i,projects:a,positions:o}},{}),e=>t=>{let{t:n}=Ye(),{organization:r,secretariats:i,letters:a,groups:o,projects:s,positions:c,...u}=t,{translatedPathSegments:d,urlPathSegments:f}=b1({organization:r,secretariats:i,letters:a,groups:o,projects:s,positions:c});return document.title=`${n(`common.labels.awat`)} | ${d.join(` - `)}`,l(e,{...u,translatedPathSegments:d,urlPathSegments:f})}),S1=(e,t)=>!!e.find(e=>e.id===t.id&&JSON.stringify(e.slot)===JSON.stringify(t.slot)),C1=(e,t)=>{if(e.length===0)return null;let n=e.filter(e=>e.slot?.includes(t));return n.length>0?{id:n[0].id,slot:n[0].slot}:null},w1=(e,t)=>{let n=`position-${e}-${t}`,r=localStorage.getItem(n);if(!r)return null;try{return JSON.parse(r)}catch(e){return console.error(`getStoredPosition: Error parsing stored position`,e),null}},T1=(e,t,n)=>{let r=w1(e,t);return r&&S1(n,r)?r:C1(n,e)},E1=Le(Ze(()=>({}),{getPositionsAsync:wi,positionsReset:Ei}),e=>t=>{let[n,r]=(0,J.useState)(!0),i=h(),[a]=ee(),{organizationId:o}=i,{signedInUser:s}=xc(),{selectedPosition:c,setSelectedPosition:u}=hg(),{getPositionsAsync:d}=t,f=(0,J.useRef)([]),p=(0,J.useCallback)(async()=>{if(r(!0),u(null),pe(null),!s?.id){r(!1);return}let e=await d({userId:s.id}),t=e.payload.data;if(f.current=t,e?.payload?.status&&t?.length&&o){let e=T1(o,s.id,t);e&&(u({position:e}),pe(nP(e)))}r(!1)},[s?.id,o]);return(0,J.useEffect)(()=>(Ce(o||a.get(`organizationId`)||null),()=>{Ce(null)}),[o,a]),(0,J.useEffect)(()=>{p()},[]),di(()=>{pe(null),o&&c?.position?.id&&pe(nP(c?.position))},[c]),di(()=>{if(u(null),pe(null),o&&s?.id){let e=T1(o,s.id,f.current);e?.id&&(u({position:e}),pe(nP(e)))}return()=>{u(null),pe(null)}},[o,s?.id]),l(e,{...t,InitializerLoading:n})}),D1=({open:e=!1,documents:t=[],currentIndex:n=0})=>{let[r,i]=(0,J.useState)({open:e,documents:t,currentIndex:n});return{open:r?.open??!1,documents:r?.documents??[],currentIndex:r?.currentIndex??0,handleOpenDocumentPreviewer:(e,t)=>{i(n=>({open:!0,documents:e??n?.documents??[],currentIndex:t??n?.currentIndex??0}))},handleCloseDocumentPreviewer:()=>{i(e=>({...e,open:!1}))}}},O1=(e,t)=>({user:e?.user?.id?{id:e?.user?.id}:null,position:{id:e?.position?.id,slot:e?.position?.slot},action:t}),k1=(e,t)=>e?.reduce((e,n)=>({...e,[t(n)]:n}),{}),A1=({initList:e,currentList:t,keyMaker:n,formatItem:r=O1})=>{let i=k1(e??[],n),a=k1(t??[],n),o=[],s=[];return Object.keys(a).forEach(e=>{if(!i[e]){let t=a[e];o.push(r(t,`add`))}}
2743),Object.keys(i).forEach(e=>{if(!a[e]){let t=i[e];s.push(r(t,`remove`))}}),{itemsToAdd:o,itemsToRemove:s}},j1={creator:{isInfoEditable:(e,t)=>!e&&!t,isProjectEditable:(e,t)=>!t,isStatusEditable:(e,t)=>!e&&!t,isAssigneeEditable:(e,t)=>!t,isTaskDeletable:(e,t)=>!t},assignee:{isInfoEditable:(e,t)=>!0,isProjectEditable:(e,t)=>!t,isStatusEditable:(e,t)=>!0,isAssigneeEditable:(e,t)=>!0,isTaskDeletable:(e,t)=>!t},projectOwner:{isInfoEditable:(e,t)=>!0,isProjectEditable:(e,t)=>!0,isStatusEditable:(e,t)=>!0,isAssigneeEditable:(e,t)=>!0,isTaskDeletable:(e,t)=>!0}},M1=(e,{hasResolution:t,isSignedInCreator:n})=>({...e,isTaskDeletable:t?n:e.isTaskDeletable}),N1=(e,t,n)=>e.reduce((e,r)=>{let i=j1[r].isAssigneeEditable(t,n),a=j1[r].isInfoEditable(t,n),o=j1[r].isStatusEditable(t,n),s=j1[r].isProjectEditable(t,n),c=j1[r].isTaskDeletable(t,n);return{isInfoEditable:e.isInfoEditable||a,isProjectEditable:e.isProjectEditable||s,isStatusEditable:e.isStatusEditable||o,isAssigneeEditable:e.isAssigneeEditable||i,isTaskDeletable:e.isTaskDeletable||c}},{isInfoEditable:!1,isProjectEditable:!1,isStatusEditable:!1,isAssigneeEditable:!1,isTaskDeletable:!1}),P1=(e,t)=>{if(!e)return!1;let{id:n,slot:r}=t.position,i=`${n}_${r?.join?.(`-`)}`,{position:a}=e;return a?i!==`${a.id}_${a.slot?.join?.(`-`)}`:!1},F1=(e,t)=>{let n=Math.max(e.length,t.length);return Array.from({length:n},(n,r)=>({...e[r]||{},...t[r]||{}}))},I1=(e,t,n=[])=>{if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length?e.every((e,r)=>I1(e,t[r],n)):!1;if(typeof e==`object`&&typeof t==`object`){let r=Object.keys(e).filter(e=>!n.includes(e)),i=Object.keys(t).filter(e=>!n.includes(e));return r.length===i.length?r.every(r=>I1(e[r],t[r],n)):!1}return e===t},L1=(e,t,n=[])=>t.filter(t=>{let r=e.find(e=>I1(e,t,n));return r?!I1(r,t,n):!0});function R1(e,t){if(e.length!==t.length)return!0;let n=new Map(e.map(e=>[e.id,e]));for(let e of t)if(!n.get(e.id))return!0;return!1}var z1=(0,J.createContext)({organizationId:``,taskState:{id:``,title:``,description:``,startDate:``,endDate:``,assignees:[],requester:null},setTaskState:()=>{},onChangeTaskState:()=>{},onChangeStartDate:()=>{},onChangeEndDate:()=>{},openTaskDialog:!1,setOpenTaskDialog:()=>{},submitAndValidation:()=>{},isInvalid:e=>!1,getValidationError:e=>[],handleCloseTaskDialog:()=>{},taskDataLoading:!1,isEditMode:!1,touched:[],deleteTaskDialog:!1,openDeleteTaskConfirmationDialog:()=>!1,closeDeleteTaskConfirmationDialog:()=>!1,hasTaskPosition:!1,deleteTaskSubmit:()=>{},deleteTaskLoading:!1,historyTaskLoading:!1,submitLoading:!1,openTreePosition:!1,setOpenTreePosition:()=>!1,disabledTaskStatus:()=>!1,openDialogTaskHistory:!1,handleOpenDialogTaskHistory:()=>{},handleCloseDialogTaskHistory:()=>{},taskHistoryData:[],disabledDelete:()=>!1,projectsList:[],positionEmployeeOptionsList:[],roleAccessibility:{isInfoEditable:!1,isProjectEditable:!1,isStatusEditable:!1,isAssigneeEditable:!1,isTaskDeletable:!1},isAssigneeNotInProjectMembers:!1,hasAccess:!1,attachments:[],filteredAttachments:[],handleAddAttachmentWithValidation:()=>{},handleRemoveAttachment:()=>{},documentPreviewerDialog:{open:!1,currentIndex:0,documents:[],handleCloseDocumentPreviewer:()=>{},handleOpenDocumentPreviewer:()=>{}},taskAttachmentActions:[],tags:{allTags:[],selectedTags:[],handleChangeTags:()=>{},handleCreateTag:()=>{},handleUpdateTag:()=>{},handleDeleteTag:()=>{},handleFetchUsedCount:async()=>null,isDeletingTag:!1,isEditingTag:!1,isCreatingTag:!1,organizationId:``,editPopoverOrigins:void 0,tagOption:{hidden:!0}}}),B1=()=>(0,J.useContext)(z1);function V1(){return{mobile:Dt(e=>e.breakpoints.down(`sm`)),tablet:Dt(e=>e.breakpoints.between(`sm`,`lg`)),desktop:Dt(e=>e.breakpoints.up(`lg`))}}var H1=e=>`/api/v1/documents/${e}`,U1=(0,J.createContext)({currentIndex:0,documents:[],currentDocument:null,open:!1,handleClose:()=>{},handleDownloadAttachment:e=>{},onSlideChange:e=>{}}),W1=()=>(0,J.useContext)(U1);function G1(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function K1(e={},t={}){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>
vendor: 6,139 bytes, line 2743
2743n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:G1(t[n])&&G1(e[n])&&Object.keys(t[n]).length>0&&K1(e[n],t[n])})}var q1={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:``},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``}};function J1(){let e=typeof document<`u`?document:{};return K1(e,q1),e}var Y1={document:q1,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return``}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>`u`||clearTimeout(e)}};function X1(){let e=typeof window<`u`?window:{};return K1(e,Y1),e}function Z1(e=``){return e.trim().split(` `).filter(e=>!!e.trim())}function Q1(e){let t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function $1(e,t=0){return setTimeout(e,t)}function e0(){return Date.now()}function t0(e){let t=X1(),n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||=e.style,n}function n0(e,t=`x`){let n=X1(),r,i,a,o=t0(e);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(`,`).length>6&&(i=i.split(`, `).map(e=>e.replace(`,`,`.`)).join(`, `)),a=new n.WebKitCSSMatrix(i===`none`?``:i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue(`transform`).replace(`translate(`,`matrix(1, 0, 0, 1,`),r=a.toString().split(`,`)),t===`x`&&(i=n.WebKitCSSMatrix?a.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),t===`y`&&(i=n.WebKitCSSMatrix?a.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5])),i||0}function r0(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function i0(e){return typeof window<`u`&&window.HTMLElement!==void 0?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function a0(...e){let t=Object(e[0]);for(let n=1;n<e.length;n+=1){let r=e[n];if(r!=null&&!i0(r)){let e=Object.keys(Object(r)).filter(e=>e!==`__proto__`&&e!==`constructor`&&e!==`prototype`);for(let n=0,i=e.length;n<i;n+=1){let i=e[n],a=Object.getOwnPropertyDescriptor(r,i);a!==void 0&&a.enumerable&&(r0(t[i])&&r0(r[i])?r[i].__swiper__?t[i]=r[i]:a0(t[i],r[i]):!r0(t[i])&&r0(r[i])?(t[i]={},r[i].__swiper__?t[i]=r[i]:a0(t[i],r[i])):t[i]=r[i])}}}return t}function o0(e,t,n){e.style.setProperty(t,n)}function s0({swiper:e,targetPosition:t,side:n}){let r=X1(),i=-e.translate,a=null,o,s=e.params.speed;e.wrapperEl.style.scrollSnapType=`none`,r.cancelAnimationFrame(e.cssModeFrameID);let c=t>i?`next`:`prev`,l=(e,t)=>c===`next`&&e>=t||c===`prev`&&e<=t,u=()=>{o=new Date().getTime(),a===null&&(a=o);let c=Math.max(Math.min((o-a)/s,1),0),d=i+(.5-Math.cos(c*Math.PI)/2)*(t-i);if(l(d,t)&&(d=t),e.wrapperEl.scrollTo({[n]:d}),l(d,t)){e.wrapperEl.style.overflow=`hidden`,e.wrapperEl.style.scrollSnapType=``,setTimeout(()=>{e.wrapperEl.style.overflow=``,e.wrapperEl.scrollTo({[n]:d})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function c0(e,t=``){let n=X1(),r=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&r.push(...e.assignedElements()),t?r.filter(e=>e.matches(t)):r}function l0(e,t){let n=[t];for(;n.length>0;){let t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}function u0(e,t){let n=X1(),r=t.contains(e);return!r&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(r=[...t.assignedElements()].includes(e),r||=l0(e,t)),r}function d0(e){try{console.warn(e);return}catch{}}function f0(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Z1(t)),n}function p0(e){let t=X1(),n=J1(),r=e.getBoundingClientRect(),i=n.body,a=e.clientTop||i.clientTop||0,o=e.clientLeft||i.clientLeft||0,s=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}function m0(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function h0(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function g0(e,t){return X1().getComputedStyle(e,null).getPropertyValue(t)}function _0(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function v0(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function y0(e,t,n){let r=X1();return n?e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-left`:`margin-bottom`)):e.offsetWidth}function b0(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function x0(e,t=``){typeof trustedTypes<`u`?e.innerHTML=trustedTypes.createPolicy(`html`,{createHTML:e=>e}).createHTML(t):e.innerHTML=t}function S0({swiper:e,extendParams:t,on:n,emit:r}){let i=J1(),a=X1();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}});function o(t){if(!e.enabled)return;let{rtlTranslate:n}=e,o=t;o.originalEvent&&(o=o.originalEvent);let s=o.keyCode||o.charCode,c=e.params.keyboard.pageUpDown,l=c&&s===33,u=c&&s===34,d=s===37,f=s===39,p=s===38,m=s===40;if(!e.allowSlideNext&&(e.isHorizontal()&&f||e.isVertical()&&m||u)||!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&p||l))return!1;
vendor: 9,267 bytes, line 2743
2743if(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey||i.activeElement&&(i.activeElement.isContentEditable||i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()===`input`||i.activeElement.nodeName.toLowerCase()===`textarea`)))return;if(e.params.keyboard.onlyInViewport&&(l||u||d||f||p||m)){let t=!1;if(v0(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&v0(e.el,`.${e.params.slideActiveClass}`).length===0)return;let r=e.el,i=r.clientWidth,o=r.clientHeight,s=a.innerWidth,c=a.innerHeight,l=p0(r);n&&(l.left-=r.scrollLeft);let u=[[l.left,l.top],[l.left+i,l.top],[l.left,l.top+o],[l.left+i,l.top+o]];for(let e=0;e<u.length;e+=1){let n=u[e];if(n[0]>=0&&n[0]<=s&&n[1]>=0&&n[1]<=c){if(n[0]===0&&n[1]===0)continue;t=!0}}if(!t)return}let h=e.params.keyboard.speed;e.isHorizontal()?((l||u||d||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((u||f)&&!n||(l||d)&&n)&&e.slideNext(h),((l||d)&&!n||(u||f)&&n)&&e.slidePrev(h)):((l||u||p||m)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(u||m)&&e.slideNext(h),(l||p)&&e.slidePrev(h)),r(`keyPress`,s)}function s(){e.keyboard.enabled||(i.addEventListener(`keydown`,o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(i.removeEventListener(`keydown`,o),e.keyboard.enabled=!1)}n(`init`,()=>{e.params.keyboard.enabled&&s()}),n(`destroy`,()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:s,disable:c})}function C0(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let a=c0(e.el,`.${r[i]}`)[0];a||(a=f0(`div`,r[i]),a.className=r[i],e.el.append(a)),n[i]=a,t[i]=a}}),n}var w0=`<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>`;function T0({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:w0};function i(t){let n;return t&&typeof t==`string`&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&(typeof t==`string`&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t==`string`&&n&&n.length>1&&e.el.querySelectorAll(t).length===1?n=e.el.querySelector(t):n&&n.length===1&&(n=n[0])),t&&!n?t:n)}function a(t,n){let r=e.params.navigation;t=b0(t),t.forEach(t=>{t&&(t.classList[n?`add`:`remove`](...r.disabledClass.split(` `)),t.tagName===`BUTTON`&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](r.lockClass))})}function o(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){a(n,!1),a(t,!1);return}a(n,e.isBeginning&&!e.params.rewind),a(t,e.isEnd&&!e.params.rewind)}function s(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r(`navigationPrev`))}function c(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r(`navigationNext`))}function l(){let t=e.params.navigation;if(e.params.navigation=C0(e,e.originalParams.navigation,e.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`}),!(t.nextEl||t.prevEl))return;let n=i(t.nextEl),r=i(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=b0(n),r=b0(r);let a=(n,r)=>{if(n){if(t.addIcons&&n.matches(`.swiper-button-next,.swiper-button-prev`)&&!n.querySelector(`svg`)){let e=document.createElement(`div`);x0(e,w0),n.appendChild(e.querySelector(`svg`)),e.remove()}n.addEventListener(`click`,r===`next`?c:s)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(` `))};n.forEach(e=>a(e,`next`)),r.forEach(e=>a(e,`prev`))}function u(){let{nextEl:t,prevEl:n}=e.navigation;t=b0(t),n=b0(n);let r=(t,n)=>{t.removeEventListener(`click`,n===`next`?c:s),t.classList.remove(...e.params.navigation.disabledClass.split(` `))};t.forEach(e=>r(e,`next`)),n.forEach(e=>r(e,`prev`))}n(`init`,()=>{e.params.navigation.enabled===!1?f():(l(),o())}),n(`toEdge fromEdge lock unlock`,()=>{o()}),n(`destroy`,()=>{u()}),n(`enable disable`,()=>{let{nextEl:t,prevEl:n}=e.navigation;if(t=b0(t),n=b0(n),e.enabled){o();return}[...t,...n].filter(e=>!!e).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),n(`click`,(t,n)=>{let{nextEl:i,prevEl:a}=e.navigation;i=b0(i),a=b0(a);let o=n.target,s=a.includes(o)||i.includes(o);if(e.isElement&&!s){let e=n.path||n.composedPath&&n.composedPath();e&&(s=e.find(e=>i.includes(e)||a.includes(e)))}if(e.params.navigation.hideOnClick&&!s){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;let t;i.length?t=i[0].classList.contains(e.params.navigation.hiddenClass):a.length&&(t=a[0].classList.contains(e.params.navigation.hiddenClass)),r(t===!0?`navigationShow`:`navigationHide`),[...i,...a].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(` `)),l(),o()},f=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(` `)),u()};Object.assign(e.navigation,{enable:d,disable:f,update:o,init:l,destroy:u})}function E0(e=``){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,`\\$1`).replace(/ /g,`.`)}`}function D0({swiper:e,extendParams:t,on:n,emit:r}){let i=`swiper-pagination`;t({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function s(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(t,n){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&(t.classList.add(`${r}-${n}`),t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&t.classList.add(`${r}-${n}-${n}`)))}function l(e,t,n){if(e%=n,t%=n,t===e+1)return`next`;if(t===e-1)return`previous`}function u(t){let n=t.target.closest(E0(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();let r=_0(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===r)return;let t=l(e.realIndex,r,e.slides.length);t===`next`?e.slideNext():t===`previous`?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r)}function d(){let t=e.rtl,n=e.params.pagination;if(s())return;let i=e.pagination.el;i=b0(i);let l,u,d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,f=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(u=e.previousRealIndex||0,l=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):e.snapIndex===void 0?(u=e.previousIndex||0,l=e.activeIndex||0):(l=e.snapIndex,u=e.previousSnapIndex),n.type===`bullets`&&e.pagination.bullets&&e.pagination.bullets.length>0){let r=e.pagination.bullets,s,d,f;if(n.dynamicBullets&&(a=y0(r[0],e.isHorizontal()?`width`:`height`,!0),i.forEach(t=>{t.style[e.isHorizontal()?`width`:`height`]=`${a*(n.dynamicMainBullets+4)}px`}),n.dynamicMainBullets>1&&u!==void 0&&(o+=l-(u||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(l-o,0),d=s+(Math.min(r.length,n.dynamicMainBullets)-1),f=(d+s)/2),r.forEach(e=>{let t=[...[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):e).flat();e.classList.remove(...t)}),i.length>1)r.forEach(t=>{let r=_0(t);r===l?t.classList.add(...n.bulletActiveClass.split(` `)):e.isElement&&t.setAttribute(`part`,`bullet`),n.dynamicBullets&&(r>=s&&r<=d&&t.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),r===s&&c(t,`prev`),r===d&&c(t,`next`))});else{let t=r[l];if(t&&t.classList.add(...n.bulletActiveClass.split(` `)),e.isElement&&r.forEach((e,t)=>{e.setAttribute(`part`,t===l?`bullet-active`:`bullet`)}),n.dynamicBullets){let e=r[s],t=r[d];for(let e=s;e<=d;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));c(e,`prev`),c(t,`next`)}}if(n.dynamicBullets){let i=Math.min(r.length,n.dynamicMainBullets+4),o=(a*i-a)/2-f*a,s=t?`right`:`left`;r.forEach(t=>{t.style[e.isHorizontal()?s:`top`]=`${o}px`})}}i.forEach((t,i)=>{if(n.type===`fraction`&&(t.querySelectorAll(E0(n.currentClass)).forEac
2743h(e=>{e.textContent=n.formatFractionCurrent(l+1)}),t.querySelectorAll(E0(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(f)})),n.type===`progressbar`){let r;r=n.progressbarOpposite?e.isHorizontal()?`vertical`:`horizontal`:e.isHorizontal()?`horizontal`:`vertical`;let i=(l+1)/f,a=1,o=1;r===`horizontal`?a=i:o=i,t.querySelectorAll(E0(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}n.type===`custom`&&n.renderCustom?(x0(t,n.renderCustom(e,l+1,f)),i===0&&r(`paginationRender`,t)):(i===0&&r(`paginationRender`,t),r(`paginationUpdate`,t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](n.lockClass)})}function f(){let t=e.params.pagination;if(s())return;let n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length,i=e.pagination.el;i=b0(i);let a=``;if(t.type===`bullets`){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?a+=t.renderBullet.call(e,n,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?`part="bullet"`:``} class="${t.bulletClass}"></${t.bulletElement}>`}t.type===`fraction`&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type===`progressbar`&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{t.type!==`custom`&&x0(n,a||``),t.type===`bullets`&&e.pagination.bullets.push(...n.querySelectorAll(E0(t.bulletClass)))}),t.type!==`custom`&&r(`paginationRender`,i[0])}function p(){e.params.pagination=C0(e,e.originalParams.pagination,e.params.pagination,{el:`swiper-pagination`});let t=e.params.pagination;if(!t.el)return;let n;typeof t.el==`string`&&e.isElement&&(n=e.el.querySelector(t.el)),!n&&typeof t.el==`string`&&(n=[...document.querySelectorAll(t.el)]),n||=t.el,!(!n||n.length===0)&&(e.params.uniqueNavElements&&typeof t.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.find(t=>v0(t,`.swiper`)[0]===e.el))),Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(e.pagination,{el:n}
vendor: 1,123 bytes, line 2743
2743),n=b0(n),n.forEach(n=>{t.type===`bullets`&&t.clickable&&n.classList.add(...(t.clickableClass||``).split(` `)),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type===`bullets`&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type===`progressbar`&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener(`click`,u),e.enabled||n.classList.add(t.lockClass)}))}function m(){let t=e.params.pagination;if(s())return;let n=e.pagination.el;n&&(n=b0(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||``).split(` `)),n.removeEventListener(`click`,u))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(` `)))}n(`changeDirection`,()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:n}=e.pagination;
2743n=b0(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n(`init`,()=>{e.params.pagination.enabled===!1?g():(p(),f(),d())}),n(`activeIndexChange`,()=>{e.snapIndex===void 0&&d()}),n(`snapIndexChange`,()=>{d()}),n(`snapGridLengthChange`,()=>{f(),d()}),n(`destroy`,()=>{m()}),n(`enable disable`,()=>{let{el:t}=e.pagination;t&&(t=b0(t),t.forEach(t=>t.classList[e.enabled?`remove`:`add`](e.params.pagination.lockClass)))}),n(`lock unlock`,()=>{d()}),n(`click`,(t,n)=>{let i=n.target,a=b0(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&a&&a.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;a[0].classList.contains(e.params.pagination.hiddenClass)===!0?r(`paginationShow`):r(`paginationHide`),a.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=b0(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),d()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=b0(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:h,disable:g,render:f,update:d,init:p,destroy:m})}var O0;function k0(){let e=X1(),t=J1();return{smoothScroll:t.documentElement&&t.documentElement.style&&`scrollBehavior`in t.documentElement.style,touch:!!(`ontouchstart`in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function A0(){return O0||=k0(),O0}var j0;function M0({userAgent:e}={}){let t=A0(),n=X1(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/),l=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!l&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r===`Win32`,p=r===`MacIntel`;return!l&&p&&t.touch&&[`1024x1366`,`1366x1024`,`834x1194`,`1194x834`,`834x1112`,`1112x834`,`768x1024`,`1024x768`,`820x1180`,`1180x820`,`810x1080`,`1080x810`].indexOf(`${o}x${s}`)>=0&&(l=i.match(/(Version)\/([\d.]+)/),l||=[0,1,`13_0_0`],p=!1),c&&!f&&(a.os=`android`,a.android=!0),(l||d||u)&&(a.os=`ios`,a.ios=!0),a}function N0(e={}){return j0||=M0(e),j0}var P0;function F0(){let e=X1(),t=N0(),n=!1;function r(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf(`safari`)>=0&&t.indexOf(`chrome`)<0&&t.indexOf(`android`)<0}if(r()){let t=String(e.navigator.userAgent);if(t.includes(`Version/`)){let[e,r]=t.split(`Version/`)[1].split(` `)[0].split(`.`).map(e=>Number(e));n=e<16||e===16&&r<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),a=r(),o=a||i&&t.ios;return{isSafari:n||a,needPerspectiveFix:n,need3dFix:o,isWebView:i}}function I0(){return P0||=F0(),P0}function L0({swiper:e,on:t,emit:n}){let r=X1(),i=null,a=null,o=()=>{!e||e.destroyed||!e.initialized||(n(`beforeResize`),n(`resize`))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(t=>{a=r.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,a=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,a=n?n.height:(t[0]||t).blockSize)}),(i!==n||a!==r)&&o()})}),i.observe(e.el))},c=()=>{a&&r.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},l=()=>{!e||e.destroyed||!e.initialized||n(`orientationchange`)};t(`init`,()=>{if(e.params.resizeObserver&&r.ResizeObserver!==void 0){s();return}r.addEventListener(`resize`,o),r.addEventListener(`orientationchange`,l)}),t(`destroy`,()=>{c(),r.removeEventListener(`resize`,o),r.removeEventListener(`orientationchange`,l)})}function R0({swiper:e,extendParams:t,on:n,emit:r}){let i=[],a=X1(),o=(t,n={})=>{let o=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(t.length===1){r(`observerUpdate`,t[0]);return}let n=function(){r(`observerUpdate`,t[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});o.observe(t,{attributes:n.attributes===void 0?!0:n.attributes,childList:e.isElement||(n.childList===void 0?!0:n).childList,characterData:n.characterData===void 0?!0:n.characterData}),i.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n(`init`,()=>{if(e.params.observer){if(e.params.observeParents){let t=v0(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n(`destroy`,()=>
vendor: 10,851 bytes, line 2743
2743{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}var z0={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;return e.split(` `).forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(` `).forEach(e=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]==`string`||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(` `)).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function B0(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(g0(r,`padding-left`)||0,10)-parseInt(g0(r,`padding-right`)||0,10),n=n-parseInt(g0(r,`padding-top`)||0,10)-parseInt(g0(r,`padding-bottom`)||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function V0(){let e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}let n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:a,wrongRTL:o}=e,s=e.virtual&&n.virtual.enabled,c=s?e.virtual.slides.length:e.slides.length,l=c0(i,`.${e.params.slideClass}, swiper-slide`),u=s?e.virtual.slides.length:l.length,d=[],f=[],p=[],m=n.slidesOffsetBefore;typeof m==`function`&&(m=n.slidesOffsetBefore.call(e));let h=n.slidesOffsetAfter;typeof h==`function`&&(h=n.slidesOffsetAfter.call(e));let g=e.snapGrid.length,_=e.slidesGrid.length,v=e.size-m-h,y=n.spaceBetween,b=-m,x=0,S=0;if(v===void 0)return;typeof y==`string`&&y.indexOf(`%`)>=0?y=parseFloat(y.replace(`%`,``))/100*v:typeof y==`string`&&(y=parseFloat(y)),e.virtualSize=-y-m-h,l.forEach(e=>{a?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),n.centeredSlides&&n.cssMode&&(o0(r,`--swiper-centered-offset-before`,``),o0(r,`--swiper-centered-offset-after`,``)),n.cssMode&&(o0(r,`--swiper-slides-offset-before`,`${m}px`),o0(r,`--swiper-slides-offset-after`,`${h}px`));let C=n.grid&&n.grid.rows>1&&e.grid;C?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let w,T=n.slidesPerView===`auto`&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>n.breakpoints[e].slidesPerView!==void 0).length>0;for(let r=0;r<u;r+=1){w=0;let i=l[r];if(!(i&&(C&&e.grid.updateSlide(r,i,l),g0(i,`display`)===`none`))){if(s&&n.slidesPerView===`auto`)n.virtual.slidesPerViewAutoSlideSize&&(w=n.virtual.slidesPerViewAutoSlideSize),w&&i&&(n.roundLengths&&(w=Math.floor(w)),i.style[e.getDirectionLabel(`width`)]=`${w}px`);else if(n.slidesPerView===`auto`){T&&(i.style[e.getDirectionLabel(`width`)]=``);let r=getComputedStyle(i),a=i.style.transform,o=i.style.webkitTransform;if(a&&(i.style.transform=`none`),o&&(i.style.webkitTransform=`none`),n.roundLengths)w=e.isHorizontal()?y0(i,`width`,!0):y0(i,`height`,!0);else{let e=t(r,`width`),n=t(r,`padding-left`),a=t(r,`padding-right`),o=t(r,`margin-left`),s=t(r,`margin-right`),c=r.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)w=e+o+s;else{let{clientWidth:t,offsetWidth:r}=i;w=e+n+a+o+s+(r-t)}}a&&(i.style.transform=a),o&&(i.style.webkitTransform=o),n.roundLengths&&(w=Math.floor(w))}else w=(v-(n.slidesPerView-1)*y)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),i&&(i.style[e.getDirectionLabel(`width`)]=`${w}px`);i&&(i.swiperSlideSize=w),p.push(w),n.centeredSlides?(b=b+w/2+x/2+y,x===0&&r!==0&&(b=b-v/2-y),r===0&&(b=b-v/2-y),Math.abs(b)<1/1e3&&(b=0),n.roundLengths&&(b=Math.floor(b)),S%n.slidesPerGroup===0&&d.push(b),f.push(b)):(n.roundLengths&&(b=Math.floor(b)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&d.push(b),f.push(b),b=b+w+y),e.virtualSize+=w+y,x=w,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,v)+h,a&&o&&(n.effect===`slide`||n.effect===`coverflow`)&&(r.style.width=`${e.virtualSize+y}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel(`width`)]=`${e.virtualSize+y}px`),C&&e.grid.updateWrapperSize(w,d),!n.centeredSlides){let t=n.slidesPerView!==`auto`&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView===`auto`||t),i=d.length;if(r){let e;if(n.slidesPerView===`auto`){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?y:0),t<=v);--n)e=p.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(u-e,0)}let a=[];for(let t=0;t<d.length;t+=1){let o=d[t];n.roundLengths&&(o=Math.floor(o)),r?t<=i&&a.push(o):d[t]<=e.virtualSize-v&&a.push(o)}d=a,Math.floor(e.virtualSize-v)-Math.floor(d[d.length-1])>1&&(r||d.push(e.virtualSize-v))}if(s&&n.loop){let t=p[0]+y;if(n.slidesPerGroup>1){let r=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let e=0;e<r;e+=1)d.push(d[d.length-1]+i)}for(let r=0;r<e.virtual.slidesBefore+e.virtual.slidesAfter;r+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(d.length===0&&(d=[0]),y!==0){let t=e.isHorizontal()&&a?`marginLeft`:e.getDirectionLabel(`marginRight`);l.filter((e,t)=>!n.cssMode||n.loop?!0:t!==l.length-1).forEach(e=>{e.style[t]=`${y}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(y||0)}),e-=y;let t=e>v?e-v:0;d=d.map(e=>e<=0?-m:e>t?t+h:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(y||0)}),e-=y,e<v){let t=(v-e)/2;d.forEach((e,n)=>{d[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:l,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){o0(r,`--swiper-centered-offset-before`,`${-d[0]}px`),o0(r,`--swiper-centered-offset-after`,`${e.size/2-p[p.length-1]/2}px`);let t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit(`slidesLengthChange`),d.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),f.length!==_&&e.emit(`slidesGridLengthChange`),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit(`slidesUpdated`),!s&&!n.cssMode&&(n.effect===`slide`||n.effect===`fade`)){let t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}}function H0(e){let t=this,n=[],r=t.virtual&&t.params.virtual.enabled,i=0,a;typeof e==`number`?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);let o=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){let e=t.activeIndex+a;if(e>t.slides.length&&!r)break;n.push(o(e))}else n.push(o(t.activeIndex));for(a=0;a<n.length;a+=1)if(n[a]!==void 0){let e=n[a].offsetHeight;i=e>i?e:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function U0(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}var W0=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function G0(e=this&&this.translate||0){let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);let u=(o+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),d=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),f=-(o-l),p=f+t.slidesSizesGrid[e],m=f>=0&&f<=t.size-t.slidesSizesGrid[e],h=f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size;h&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e)),W0(c,h,n.slideVisibleClass),W0(c,m,n.slideFullyVisibleClass),c.progress=i?-u:u,c.originalProgress=i?-d:d}}function K0(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o,progressLoop:s}=t,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)}var q0=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function J0(){let e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,s=e=>c0(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0],c,l,u;if(a)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),c=s(`[data-swiper-slide-index="${t}"]`)}else c=s(`[data-swiper-slide-index="${i}"]`);else o?(c=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),l=t.find(e=>e.column===i-1)):c=t[i];c&&(o||(u=h0(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),l=m0(c,`.${n.slideClass}
2743, swiper-slide`)[0],n.loop)),t.forEach(e=>{q0(e,e===c,n.slideActiveClass),q0(e,e===u,n.slideNextClass),q0(e,e===l,n.slidePrevClass)}),e.emitSlidesClasses()}var Y0=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&!t.lazyPreloaderManaged&&t.remove())})),t&&!t.lazyPreloaderManaged&&t.remove()}},X0=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},Z0=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,n)=>{a.includes(t.column)&&X0(e,n)});return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&X0(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&X0(e,r)};function Q0(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}function $0(e){let t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t,c=e,l,u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(c===void 0&&(c=Q0(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{let e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a&&!t.params.loop){l!==s&&(t.snapIndex=l,t.emit(`snapIndexChange`));return}if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(c);return}let d=t.grid&&i.grid&&i.grid.rows>1,f;if(t.virtual&&i.virtual.enabled)f=i.loop?u(c):c;else if(d){let e=t.slides.find(e=>e.column===c),n=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){let e=t.slides[c].getAttribute(`data-swiper-slide-index`);f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:c}),t.initialized&&Z0(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit(`realIndexChange`),t.emit(`slideChange`))}function e2(e,t){let n=this,r=n.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>
vendor: 55,201 bytes, line 2743
27431&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let a=!1,o;if(i){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}}if(i&&a)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute(`data-swiper-slide-index`),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var t2={updateSize:B0,updateSlides:V0,updateAutoHeight:H0,updateSlidesOffset:U0,updateSlidesProgress:G0,updateProgress:K0,updateSlidesClasses:J0,updateActiveIndex:$0,updateClickedSlide:e2};function n2(e=this.isHorizontal()?`x`:`y`){let t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=n0(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function r2(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);let l,u=n.maxTranslate()-n.minTranslate();l=u===0?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)}function i2(){return-this.snapGrid[0]}function a2(){return-this.snapGrid[this.snapGrid.length-1]}function o2(e=0,t=this.params.speed,n=!0,r=!0,i){let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();if(t===0)s[e?`scrollLeft`:`scrollTop`]=-u;else{if(!a.support.smoothScroll)return s0({swiper:a,targetPosition:-u,side:e?`left`:`top`}),!0;s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`})}return!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit(`transitionEnd`))},a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}var s2={getTranslate:n2,setTranslate:r2,minTranslate:i2,maxTranslate:a2,translateTo:o2};function c2(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?`0ms`:``),n.emit(`setTransition`,e,t)}function l2({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:a}=e,o=n;o||=i>a?`next`:i<a?`prev`:`reset`,e.emit(`transition${r}`),t&&o===`reset`?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),o===`next`?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function u2(e=!0,t){let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),l2({swiper:n,runCallbacks:e,direction:t,step:`Start`}))}function d2(e=!0,t){let n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),l2({swiper:n,runCallbacks:e,direction:t,step:`End`}))}var f2={setTransition:c2,transitionStart:u2,transitionEnd:d2};function p2(e=0,t,n=!0,r,i){typeof e==`string`&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:l,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:m}=a;if(!m&&!r&&!i||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;t===void 0&&(t=a.params.speed);let h=Math.min(a.params.slidesPerGroupSkip,o),g=h+Math.floor((o-h)/a.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let _=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<l.length;e+=1){let t=-Math.floor(_*100),n=Math.floor(l[e]*100),r=Math.floor(l[e+1]*100);l[e+1]===void 0?t>=n&&(o=e):t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?_>a.translate&&_>a.minTranslate():_<a.translate&&_<a.minTranslate())||!a.allowSlidePrev&&_>a.translate&&_>a.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&a.emit(`beforeSlideChangeStart`),a.updateProgress(_);let v;v=o>d?`next`:o<d?`prev`:`reset`;let y=a.virtual&&a.params.virtual.enabled;if(!(y&&i)&&(f&&-_===a.translate||!f&&_===a.translate))return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!==`slide`&&a.setTranslate(_),v!==`reset`&&(a.transitionStart(n,v),a.transitionEnd(n,v)),!1;if(s.cssMode){let e=a.isHorizontal(),n=f?_:-_;if(t===0)y&&(a.wrapperEl.style.scrollSnapType=`none`,a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?`scrollLeft`:`scrollTop`]=n})):p[e?`scrollLeft`:`scrollTop`]=n,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType=``,a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return s0({swiper:a,targetPosition:n,side:e?`left`:`top`}),!0;p.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`})}return!0}let b=I0().isSafari;return y&&!i&&b&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(_),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit(`beforeTransitionStart`,t,r),a.transitionStart(n,v),t===0?a.transitionEnd(n,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,v))},a.wrapperEl.addEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd)),!0}function m2(e=0,t,n=!0,r){typeof e==`string`&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;t===void 0&&(t=i.params.speed);let a=i.grid&&i.params.grid&&i.params.grid.rows>1,o=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)o+=i.virtual.slidesBefore;else{let e;if(a){let t=o*i.params.grid.rows;e=i.slides.find(e=>e.getAttribute(`data-swiper-slide-index`)*1===t).column}else e=i.getSlideIndexByData(o);let t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:c}=i.params,l=n||!!s||!!c,u=i.params.slidesPerView;u===`auto`?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(i.params.slidesPerView,10)),l&&u%2==0&&(u+=1));let d=t-e<u;if(l&&(d||=e<Math.ceil(u/2)),r&&l&&i.params.slidesPerView!==`auto`&&!a&&(d=!1),d){let n=l?e<i.activeIndex?`prev`:`next`:e-i.activeIndex-1<i.params.slidesPerView?`next`:`prev`;i.loopFix({direction:n,slideTo:!0,activeSlideIndex:n===`next`?e+1:e-t+1,slideRealIndex:n===`next`?i.realIndex:void 0})}if(a){let e=o*i.params.grid.rows;o=i.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e).column}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}function h2(e,t=!0,n){let r=this,{enabled:i,params:a,animating:o}=r;if(!i||r.destroyed)return r;e===void 0&&(e=r.params.speed);let s=a.slidesPerGroup;a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic(`current`,!0),1));let c=r.activeIndex<a.slidesPerGroupSkip?1:s,l=r.virtual&&a.virtual.enabled;if(a.loop){if(o&&!l&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:`next`}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+c,e,t,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function g2(e,t=!0,n){let r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:c,animating:l}=r;if(!c||r.destroyed)return r;e===void 0&&(e=r.params.speed);let u=r.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:`prev`}),r._clientLeft=r.wrapperEl.clientLeft}let d=s?r.translate:-r.translate;function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=f(d),m=a.map(e=>f(e)),h=i.freeMode&&i.freeMode.enabled,g=a[m.indexOf(p)-1];if(g===void 0&&(i.cssMode||h)){let e;a.forEach((t,n)=>{p>=t&&(e=n)}),e!==void 0&&(g=h?a[e]:a[e>0?e-1:e])}let _=0;if(g!==void 0&&(_=o.indexOf(g),_<0&&(_=r.activeIndex-1),i.slidesPerView===`auto`&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic(`previous`,!0)+1,_=Math.max(_,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(_,e,t,n)}),!0;return r.slideTo(_,e,t,n)}function _2(e,t=!0,n){let r=this;if(!r.destroyed)return e===void 0&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function v2(e,t=!0,n,r=.5){let i=this;if(i.destroyed)return;e===void 0&&(e=i.params.speed);let a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s],t=i.snapGrid[s+1];c-e>(t-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1],t=i.snapGrid[s];c-e<=(t-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function y2(){let e=this;if(e.destroyed)return;let{params:t,slidesEl:n}=e,r=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,i=e.getSlideIndexWhenGrid(e.clickedIndex),a,o=e.isElement?`swiper-slide`:`.${t.slideClass}`,s=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?e.slideToLoop(a):i>(s?(e.slides.length-r)/2-(e.params.grid.rows-1):e.slides.length-r)?(e.loopFix(),i=e.getSlideIndex(c0(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),$1(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var b2={slideTo:p2,slideToLoop:m2,slideNext:h2,slidePrev:g2,slideReset:_2,slideToClosest:v2,slideToClickedSlide:y2};function x2(e,t){let n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual.enabled)return;let a=()=>{c0(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t)})},o=()=>{let e=c0(i,`.${r.slideBlankClass}`);e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())},s=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&o();let c=r.slidesPerGroup*(s?r.grid.rows:1),l=n.slides.length%c!==0,u=s&&n.slides.length%r.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){let e=n.isElement?f0(`swiper-slide`,[r.slideBlankClass]):f0(`div`,[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(d(c-n.slides.length%c),n.recalcSlides(),n.updateSlides()):d0(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`),a()):(u&&(r.loopAddBlankSlides?(d(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):d0(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),a());let f=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:f?void 0:`next`,initial:t})}function S2({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,initial:a,byController:o,byMousewheel:s}={}){let c=this;if(!c.params.loop)return;c.emit(`beforeLoopFix`);let{slides:l,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=c,{centeredSlides:m,slidesOffsetBefore:h,slidesOffsetAfter:g,initialSlide:_}=p,v=m||!!h||!!g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled){t&&(!v&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=d,c.emit(`loopFix`);return}let y=p.slidesPerView;y===`auto`?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(p.slidesPerView,10)),v&&y%2==0&&(y+=1));let b=p.slidesPerGroupAuto?y:p.slidesPerGroup,x=v?Math.max(b,Math.ceil(y/2)):b;x%b!==0&&(x+=b-x%b),x+=p.loopAdditionalSlides,c.loopedSlides=x;let S=c.grid&&p.grid&&p.grid.rows>1;l.length<y+x||c.params.effect===`cards`&&l.length<y+x*2?d0(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):S&&p.grid.fill===`row`&&d0("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let C=[],w=[],T=S?Math.ceil(l.length/p.grid.rows):l.length,E=a&&T-_<y&&!v,D=E?_:c.activeIndex;i===void 0?i=c.getSlideIndex(l.find(e=>e.classList.contains(p.slideActiveClass))):D=i;let O=n===`next`||!n,k=n===`prev`||!n,A=0,j=0,M=(S?l[i].column:i)+(v&&r===void 0?-y/2+.5:0);if(M<x){A=Math.max(x-M,b);for(let e=0;e<x-M;e+=1){let t=e-Math.floor(e/T)*T;if(S){let e=T-t-1;for(let t=l.length-1;t>=0;--t)l[t].column===e&&C.push(t)}else C.push(T-t-1)}}else if(M+y>T-x){j=Math.max(M-(T-x*2),b),E&&(j=Math.max(j,y-T+_+1));for(let e=0;e<j;e+=1){let t=e-Math.floor(e/T)*T;S?l.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect===`cards`&&l.length<y+x*2&&(w.includes(i)&&w.splice(w.indexOf(i),1),C.includes(i)&&C.splice(C.indexOf(i),1)),k&&C.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.prepend(l[e]),l[e].swiperLoopMoveDOM=!1}),O&&w.forEach(e=>{l[e].swiperLoopMoveDOM=!0,f.append(l[e]),l[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),p.slidesPerView===`auto`?c.updateSlides():S&&(C.length>0&&k||w.length>0&&O)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),t){if(C.length>0&&k){if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D+A]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D+Math.ceil(A),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(r){let e=S?C.length/p.grid.rows:C.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(w.length>0&&O)if(e===void 0){let e=c.slidesGrid[D],t=c.slidesGrid[D-j]-e;s?c.setTranslate(c.translate-t):(c.slideTo(D-j,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{let e=S?w.length/p.grid.rows:w.length;c.slideTo(c.activeIndex-e,0,!1,!0)}}if(c.allowSlidePrev=u,c.allowSlideNext=d,c.controller&&c.controller.control&&!o){let a={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...a,slideTo:e.params.slidesPerView===p.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...a,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView?t:!1})}c.emit(`loopFix`)}function C2(){let e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let r=[];e.slides.forEach(e=>{let t=e.swiperSlideIndex===void 0?e.getAttribute(`data-swiper-slide-index`)*1:e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var w2={loopCreate:x2,loopFix:S2,loopDestroy:C2};function T2(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function E2(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var D2={setGrabCursor:T2,unsetGrabCursor:E2};function O2(e,t=this){function n(t){if(!t||t===J1()||t===X1())return null;t.assignedSlot&&(t=t.assignedSlot);let r=t.closest(e);return!r&&!t.getRootNode?null:r||n(t.getRootNode().host)}return n(t)}function k2(e,t,n){let r=X1(),{params:i}=e,a=i.edgeSwipeDetection,o=i.edgeSwipeThreshold;return a&&(n<=o||n>=r.innerWidth-o)?a===`prevent`?(t.preventDefault(),!0):!1:!0}function A2(e){let t=this,n=J1(),r=e;r.originalEvent&&(r=r.originalEvent);let i=t.touchEventsData;if(r.type===`pointerdown`){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type===`touchstart`&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type===`touchstart`){k2(t,r,r.targetTouches[0].pageX);return}let{params:a,touches:o,enabled:s}=t;if(!s||!a.simulateTouch&&r.pointerType===`mouse`||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let c=r.target;if(a.touchEventsTarget===`wrapper`&&!u0(c,t.wrapperEl)||`which`in r&&r.which===3||`button`in r&&r.button>0||i.isTouched&&i.isMoved)return;let l=!!a.noSwipingClass&&a.noSwipingClass!==``,u=r.composedPath?r.composedPath():r.path;l&&r.target&&r.target.shadowRoot&&u&&(c=u[0]);let d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(a.noSwiping&&(f?O2(d,c):c.closest(d))){t.allowClick=!0;return}if(a.swipeHandler&&!c.closest(a.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;let p=o.currentX,m=o.currentY;if(!k2(t,r,p))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,i.touchStartTime=e0(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let h=!0;c.matches(i.focusableElements)&&(h=!1,c.nodeName===`SELECT`&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&(r.pointerType===`mouse`||r.pointerType!==`mouse`&&!c.matches(i.focusableElements))&&n.activeElement.blur();let g=h&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||g)&&!c.isContentEditable&&r.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,r)}function j2(e){let t=J1(),n=this,r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType===`mouse`)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),c.type===`pointermove`&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let l;if(c.type===`touchmove`){if(l=[...c.changedTouches].find(e=>e.identifier===r.touchId),!l||l.identifier!==r.touchId)return}else l=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit(`touchMoveOpposite`,c);return}let u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper){a.startX=u,a.startY=d;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=e0());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(d<a.startY&&n.translate<=n.maxTranslate()||d>a.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(o&&(u>a.startX&&-n.translate<=n.maxTranslate()||u<a.startX&&-n.translate>=n.minTranslate()))return;else if(!o&&(u<a.startX&&n.translate<=n.maxTranslate()||u>a.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c.target&&c.pointerType!==`mouse`&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit(`touchMove`,c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=d;let f=a.currentX-a.startX,p=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(r.isScrolling===void 0){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:f*f+p*p>=25&&(e=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit(`touchMoveOpposite`,c),r.startMoving===void 0&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||c.type===`touchmove`&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let m=n.isHorizontal()?f:p,h=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),h=Math.abs(h)*(o?1:-1)),a.diff=m,m*=i.touchRatio,o&&(m=-m,h=-h);let g=n.touchesDirection;n.swipeDirection=m>0?`prev`:`next`,n.touchesDirection=h>0?`prev`:`next`;let _=n.params.loop&&!i.cssMode,v=n.touchesDirection===`next`&&n.allowSlideNext||n.touchesDirection===`prev`&&n.allowSlidePrev;if(!r.isMoved){if(_&&v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit(`sliderFirstMove`,c)}if(new Date().getTime(),i._loopSwapReset!==!1&&r.isMoved&&r.allowThresholdMove&&g!==n.touchesDirection&&_&&v&&Math.abs(m)>=1){Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit(`sliderMove`,c),r.isMoved=!0,r.currentTranslate=m+r.startTranslate;let y=!0,b=i.resistanceRatio;if(i.touchReleaseOnEdges&&(b=0),m>0?(_&&v&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+m)**b))):m<0&&(_&&v&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+(i.slidesPerView!==`auto`&&n.slides.length-i.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView===`auto`?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-m)**b))),y&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection===`next`&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection===`prev`&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(m)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function M2(e){let t=this,n=t.touchEventsData,r=e;r.originalEvent&&(r=r.originalEvent);let i;if(!(r.type===`touchend`||r.type===`touchcancel`)){if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}else if(i=[...r.changedTouches].find(e=>e.identifier===n.touchId),!i||i.identifier!==n.touchId)return;if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(r.type)&&!([`pointercancel`,`contextmenu`].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:a,touches:o,rtlTranslate:s,slidesGrid:c,enabled:l}=t;if(!l||!a.simulateTouch&&r.pointerType===`mouse`)return;if(n.allowTouchCallbacks&&t.emit(`touchEnd`,r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let u=e0(),d=u-n.touchStartTime;if(t.allowClick){let e=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(e&&e[0]||r.target,e),t.emit(`tap click`,r),d<300&&u-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,r)}if(n.lastClickTime=e0(),$1(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(f=a.followFinger?s?t.translate:-t.translate:-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=f>=-t.maxTranslate()&&!t.params.loop,m=0,h=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;c[e+t]===void 0?(p||f>=c[e])&&(m=e,h=c[c.length-1]-c[c.length-2]):(p||f>=c[e]&&f<c[e+t])&&(m=e,h=c[e+t]-c[e])}let g=null,_=null;a.rewind&&(t.isBeginning?_=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));let v=(f-c[m])/h,y=m<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(v>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:m+y):t.slideTo(m)),t.swipeDirection===`prev`&&(v>1-a.longSwipesRatio?t.slideTo(m+y):_!==null&&v<0&&Math.abs(v)>a.longSwipesRatio?t.slideTo(_):t.slideTo(m))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(m+y):t.slideTo(m):(t.swipeDirection===`next`&&t.slideTo(g===null?m+y:g),t.swipeDirection===`prev`&&t.slideTo(_===null?m:_))}}function N2(){let e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;if((t.slidesPerView===`auto`||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){let t=o?e.virtual.slides:e.slides;e.slideTo(t.length-1,0,!1,!0)}else e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function P2(e){let t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function F2(){let e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i,a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function I2(e){let t=this;Y0(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update()}function L2(){let e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}var R2=(e,t)=>{let n=J1(),{params:r,el:i,wrapperEl:a,device:o}=e,s=!!r.nested,c=t===`on`?`addEventListener`:`removeEventListener`,l=t;!i||typeof i==`string`||(n[c](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:s}),i[c](`touchstart`,e.onTouchStart,{passive:!1}),i[c](`pointerdown`,e.onTouchStart,{passive:!1}),n[c](`touchmove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`pointermove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`touchend`,e.onTouchEnd,{passive:!0}),n[c](`pointerup`,e.onTouchEnd,{passive:!0}),n[c](`pointercancel`,e.onTouchEnd,{passive:!0}),n[c](`touchcancel`,e.onTouchEnd,{passive:!0}),n[c](`pointerout`,e.onTouchEnd,{passive:!0}),n[c](`pointerleave`,e.onTouchEnd,{passive:!0}),n[c](`contextmenu`,e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c](`click`,e.onClick,!0),r.cssMode&&a[c](`scroll`,e.onScroll),r.updateOnWindowResize?e[l](o.ios||o.android?`resize orientationchange observerUpdate`:`resize observerUpdate`,N2,!0):e[l](`observerUpdate`,N2,!0),i[c](`load`,e.onLoad,{capture:!0}))};function z2(){let e=this,{params:t}=e;e.onTouchStart=A2.bind(e),e.onTouchMove=j2.bind(e),e.onTouchEnd=M2.bind(e),e.onDocumentTouchStart=L2.bind(e),t.cssMode&&(e.onScroll=F2.bind(e)),e.onClick=P2.bind(e),e.onLoad=I2.bind(e),R2(e,`on`)}function B2(){R2(this,`off`)}var V2={attachEvents:z2,detachEvents:B2},H2=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function U2(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=J1(),s=r.breakpointsBase===`window`||!r.breakpointsBase?r.breakpointsBase:`container`,c=[`window`,`container`].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:o.querySelector(r.breakpointsBase),l=e.getBreakpoint(a,s,c);if(!l||e.currentBreakpoint===l)return;let u=(l in a?a[l]:void 0)||e.originalParams,d=H2(e,r),f=H2(e,u),p=e.params.grabCursor,m=u.grabCursor,h=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill===`column`||!u.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!m?e.unsetGrabCursor():!p&&m&&e.setGrabCursor(),[`navigation`,`pagination`,`scrollbar`].forEach(t=>{if(u[t]===void 0)return;let n=r[t]&&r[t].enabled,i=u[t]&&u[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});let g=u.direction&&u.direction!==r.direction,_=r.loop&&(u.slidesPerView!==r.slidesPerView||g),v=r.loop;g&&n&&e.changeDirection(),a0(e.params,u);let y=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!y?e.disable():!h&&y&&e.enable(),e.currentBreakpoint=l,e.emit(`_beforeBreakpoint`,u),n&&(_?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&b?(e.loopCreate(t),e.updateSlides()):v&&!b&&e.loopDestroy()),e.emit(`breakpoint`,u)}function W2(e,t=`window`,n){if(!e||t===`container`&&!n)return;let r=!1,i=X1(),a=t===`window`?i.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>typeof e==`string`&&e.indexOf(`@`)===0?{value:a*parseFloat(e.substr(1)),point:e}:{value:e,point:e});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){let{point:a,value:s}=o[e];t===`window`?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=a):s<=n.clientWidth&&(r=a)}return r||`max`}var G2={setBreakpoint:U2,getBreakpoint:W2};function K2(e,t){let n=[];return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):typeof e==`string`&&n.push(t+e)}),n}function q2(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=K2([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function J2(){let e=this,{el:t,classNames:n}=e;!t||typeof t==`string`||(t.classList.remove(...n),e.emitContainerClasses())}var Y2={addClasses:q2,removeClasses:J2};function X2(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+r*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var Z2={checkOverflow:X2},Q2={init:!0,direction:`horizontal`,oneWayMovement:!1,swiperElementNodeName:`SWIPER-CONTAINER`,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,enabled:!0,focusableElements:`input, select, option, textarea, button, video, label`,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:`slide`,breakpoints:void 0,breakpointsBase:`window`,spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:`swiper-no-swiping`,noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:`swiper-`,slideClass:`swiper-slide`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function $2(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];if(typeof i!=`object`||!i){a0(t,n);return}if(e[r]===!0&&(e[r]={enabled:!0}),r===`navigation`&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),[`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&`enabled`in i)){a0(t,n);return}typeof e[r]==`object`&&!(`enabled`in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),a0(t,n)}}var e4={eventsEmitter:z0,update:t2,translate:s2,transition:f2,slide:b2,loop:w2,grabCursor:D2,events:V2,breakpoints:G2,checkOverflow:Z2,classes:Y2},t4={},n4=class e{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)===`Object`?r=t[0]:[n,r]=t,r||={},r=a0({},r),n&&!r.el&&(r.el=n);let i=J1();if(r.el&&typeof r.el==`string`&&i.querySelectorAll(r.el).length>1){let t=[];return i.querySelectorAll(r.el).forEach(n=>{let i=a0({},r,{el:n});t.push(new e(i))}),t}let a=this;a.__swiper__=!0,a.support=A0(),a.device=N0({userAgent:r.userAgent}),a.browser=I0(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&r.modules.forEach(e=>{typeof e==`function`&&a.modules.indexOf(e)<0&&a.modules.push(e)});let o={};return a.modules.forEach(e=>{e({params:r,swiper:a,extendParams:$2(r,o),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}),a.params=a0({},a0({},Q2,o),t4,r),a.originalParams=a0({},a.params),a.passedParams=a0({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction===`horizontal`},isVertical(){return a.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit(`_swiper`),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:`height`,"margin-top":`margin-left`,"margin-bottom ":`margin-right`,"margin-left":`margin-top`,"margin-right":`margin-bottom`,"padding-left":`padding-top`,"padding-right":`padding-bottom`,marginRight:`marginBottom`}[e]}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=_0(c0(t,`.${n.slideClass}, swiper-slide`)[0]);return _0(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute(`data-swiper-slide-index`)*1===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill===`column`?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill===`row`&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:t,params:n}=e;e.slides=c0(t,`.${n.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit(`enable`))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit(`disable`))}setProgress(e,t){let n=this;e=Math.min(Math.max(e,0),1);let r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,t===void 0?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(` `).filter(t=>t.indexOf(`swiper`)===0||t.indexOf(e.params.containerModifierClass)===0);e.emit(`_containerClasses`,t.join(` `))}getSlideClasses(e){let t=this;return t.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(t.params.slideClass)===0).join(` `)}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit(`_slideClass`,n,r)}),e.emit(`_slideClasses`,t)}slidesPerViewDynamic(e=`current`,t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(typeof n.slidesPerView==`number`)return n.slidesPerView;if(n.centeredSlides){let e=r[s]?Math.ceil(r[s].swiperSlideSize):0,t;for(let n=s+1;n<r.length;n+=1)r[n]&&!t&&(e+=Math.ceil(r[n].swiperSlideSize),c+=1,e>o&&(t=!0));for(let n=s-1;n>=0;--n)r[n]&&!t&&(e+=r[n].swiperSlideSize,c+=1,e>o&&(t=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEach(t=>{t.complete&&Y0(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){let t=e.rtlTranslate?e.translate*-1:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView===`auto`||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t=!0){let n=this,r=n.params.direction;return e||=r===`horizontal`?`vertical`:`horizontal`,e===r||e!==`horizontal`&&e!==`vertical`?n:(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),n.emit(`changeDirection`),t&&n.update(),n)}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir=`rtl`):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir=`ltr`),t.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if(typeof n==`string`&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):c0(n,r())[0];return!i&&t.params.createElements&&(i=f0(`div`,t.params.wrapperClass),n.append(i),c0(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:i,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()===`rtl`||g0(n,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(n.dir.toLowerCase()===`rtl`||g0(n,`direction`)===`rtl`),wrongRTL:g0(i,`display`)===`-webkit-box`}),!0}init(e){let t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit(`beforeInit`),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let n=[...t.el.querySelectorAll(`[loading="lazy"]`)];return t.isElement&&n.push(...t.hostEl.querySelectorAll(`[loading="lazy"]`)),n.forEach(e=>{e.complete?Y0(t,e):e.addEventListener(`load`,e=>{Y0(t,e.target)})}),Z0(t),t.initialized=!0,Z0(t),t.emit(`init`),t.emit(`afterInit`),t}destroy(e=!0,t=!0){let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed?null:(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&typeof i!=`string`&&i.removeAttribute(`style`),a&&a.removeAttribute(`style`),o&&o.length&&o.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),e!==!1&&(n.el&&typeof n.el!=`string`&&(n.el.swiper=null),Q1(n)),n.destroyed=!0,null)}static extendDefaults(e){a0(t4,e)}static get extendedDefaults(){return t4}static get defaults(){return Q2}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let n=e.prototype.__modules__;typeof t==`function`&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Object.keys(e4).forEach(e=>{Object.keys(e4[e]).forEach(t=>{n4.prototype[t]=e4[e][t]})}),n4.use([L0,R0]);var r4=`eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.swiperElementNodeName.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._snapToSlideEdge._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control`.split(`.`);function i4(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`&&!e.__swiper__}function a4(e,t){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:i4(t[n])&&i4(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:a4(e[n],t[n]):e[n]=t[n]})}function o4(e={}){return e.navigation&&e.navigation.nextEl===void 0&&e.navigation.prevEl===void 0}function s4(e={}){return e.pagination&&e.pagination.el===void 0}function c4(e={}){return e.scrollbar&&e.scrollbar.el===void 0}function l4(e=``){let t=e.split(` `).map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(` `)}function u4(e=``){return e?e.includes(`swiper-wrapper`)?e:`swiper-wrapper ${e}`:`swiper-wrapper`}function d4({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:a,scrollbarEl:o,paginationEl:s}){let c=r.filter(e=>e!==`children`&&e!==`direction`&&e!==`wrapperClass`),{params:l,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:m}=e,h,g,_,v,y,b,x,S;r.includes(`thumbs`)&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(h=!0),r.includes(`controller`)&&n.controller&&n.controller.control&&l.controller&&!l.controller.control&&(g=!0),r.includes(`pagination`)&&n.pagination&&(n.pagination.el||s)&&(l.pagination||l.pagination===!1)&&u&&!u.el&&(_=!0),r.includes(`scrollbar`)&&n.scrollbar&&(n.scrollbar.el||o)&&(l.scrollbar||l.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes(`navigation`)&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(l.navigation||l.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);let C=t=>{e[t]&&(e[t].destroy(),t===`navigation`?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),l[t].prevEl=void 0,l[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),l[t].el=void 0,e[t].el=void 0))};r.includes(`loop`)&&e.isElement&&(l.loop&&!n.loop?b=!0:!l.loop&&n.loop?x=!0:S=!0),c.forEach(e=>{if(i4(l[e])&&i4(n[e]))Object.assign(l[e],n[e]),(e===`navigation`||e===`pagination`||e===`scrollbar`)&&`enabled`in n[e]&&!n[e].enabled&&C(e);else{let t=n[e];(t===!0||t===!1)&&(e===`navigation`||e===`pagination`||e===`scrollbar`)?t===!1&&C(e):l[e]=n[e]}}),c.includes(`controller`)&&!g&&e.controller&&e.controller.control&&l.controller&&l.controller.control&&(e.controller.control=l.controller.control),r.includes(`children`)&&t&&p&&l.virtual.enabled?(p.slides=t,p.update(!0)):r.includes(`virtual`)&&p&&l.virtual.enabled&&(t&&(p.slides=t),p.update(!0)),r.includes(`children`)&&t&&l.loop&&(S=!0),h&&m.init()&&m.update(!0),g&&(e.controller.control=l.controller.control),_&&(e.isElement&&(!s||typeof s==`string`)&&(s=document.createElement(`div`),s.classList.add(`swiper-pagination`),s.part.add(`pagination`),e.el.appendChild(s)),s&&(l.pagination.el=s),u.init(),u.render(),u.update()),v&&(e.isElement&&(!o||typeof o==`string`)&&(o=document.createElement(`div`),o.classList.add(`swiper-scrollbar`),o.part.add(`scrollbar`),e.el.appendChild(o)),o&&(l.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),y&&(e.isElement&&((!i||typeof i==`string`)&&(i=document.createElement(`div`),i.classList.add(`swiper-button-next`),x0(i,e.navigation.arrowSvg),i.part.add(`button-next`),e.el.appendChild(i)),(!a||typeof a==`string`)&&(a=document.createElement(`div`),a.classList.add(`swiper-button-prev`),x0(a,e.navigation.arrowSvg),a.part.add(`button-prev`),e.el.appendChild(a))),i&&(l.navigation.nextEl=i),a&&(l.navigation.prevEl=a),d.init(),d.update()),r.includes(`allowSlideNext`)&&(e.allowSlideNext=n.allowSlideNext),r.includes(`allowSlidePrev`)&&(e.allowSlidePrev=n.allowSlidePrev),r.includes(`direction`)&&e.changeDirection(n.direction,!1),(b||S)&&e.loopDestroy(),(x||S)&&e.loopCreate(),e.update()}function f4(e={},t=!0){let n={on:{}},r={},i={};a4(n,Q2),n._emitClasses=!0,n.init=!1;let a={},o=r4.map(e=>e.replace(/_/,``)),s=Object.assign({},e);return Object.keys(s).forEach(s=>{e[s]!==void 0&&(o.indexOf(s)>=0?i4(e[s])?(n[s]={},i[s]={},a4(n[s],e[s]),a4(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]==`function`?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a[s]=e[s])}),[`navigation`,`pagination`,`scrollbar`].forEach(e=>{n[e]===!0&&(n[e]={}),n[e]===!1&&delete n[e]}),{params:n,passedParams:i,rest:a,events:r}}function p4({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:a},o){o4(o)&&t&&n&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),s4(o)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),c4(o)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(e)}function m4(e,t,n,r,i){let a=[];if(!t)return a;let o=e=>{a.indexOf(e)<0&&a.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join(``)!==t.join(``)&&o(`children`),r.length!==n.length&&o(`children`)}return r4.filter(e=>e[0]===`_`).map(e=>e.replace(/_/,``)).forEach(n=>{if(n in e&&n in t)if(i4(e[n])&&i4(t[n])){let r=Object.keys(e[n]),i=Object.keys(t[n]);r.length===i.length?(r.forEach(r=>{e[n][r]!==t[n][r]&&o(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&o(n)})):o(n)}else e[n]!==t[n]&&o(n)}),a}var h4=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit(`_virtualUpdated`),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function g4(){return g4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g4.apply(this,arguments)}function _4(e){return e.type&&e.type.displayName&&e.type.displayName.includes(`SwiperSlide`)}function v4(e){let t=[];return J.Children.toArray(e).forEach(e=>{_4(e)?t.push(e):e.props&&e.props.children&&v4(e.props.children).forEach(e=>t.push(e))}),t}function y4(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return J.Children.toArray(e).forEach(e=>{if(_4(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let r=v4(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n[`container-end`].push(e)}else n[`container-end`].push(e)}),{slides:t,slots:n}}function b4(e,t,n){if(!n)return null;let r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?`right`:`left`]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:o}=n,s=e.params.loop?-t.length:0,c=e.params.loop?t.length*2:t.length,l=[];for(let e=s;e<c;e+=1)e>=a&&e<=o&&l.push(t[r(e)]);return l.map((t,n)=>J.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${n}`}))}function x4(e,t){return typeof window>`u`?(0,J.useEffect)(e,t):(0,J.useLayoutEffect)(e,t)}var S4=(0,J.createContext)(null),C4=(0,J.createContext)(null),w4=(0,J.forwardRef)(({className:e,tag:t=`div`,wrapperTag:n=`div`,children:r,onSwiper:i,...a}={},o)=>{let s=!1,[c,l]=(0,J.useState)(`swiper`),[u,d]=(0,J.useState)(null),[f,p]=(0,J.useState)(!1),m=(0,J.useRef)(!1),h=(0,J.useRef)(null),g=(0,J.useRef)(null),_=(0,J.useRef)(null),v=(0,J.useRef)(null),y=(0,J.useRef)(null),b=(0,J.useRef)(null),x=(0,J.useRef)(null),S=(0,J.useRef)(null),{params:C,passedParams:w,rest:T,events:E}=f4(a),{slides:D,slots:O}=y4(r),k=()=>{p(!f)};Object.assign(C.on,{_containerClasses(e,t){l(t)}});let A=()=>{Object.assign(C.on,E),s=!0;let e={...C};if(delete e.wrapperClass,g.current=new n4(e),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=D;let e={cache:!1,slides:D,renderExternal:d,renderExternalUpdate:!1};a4(g.current.params.virtual,e),a4(g.current.originalParams.virtual,e)}};h.current||A(),g.current&&g.current.on(`_beforeBreakpoint`,k);let j=()=>
2743{s||!E||!g.current||Object.keys(E).forEach(e=>{g.current.on(e,E[e])})},M=()=>{!E||!g.current||Object.keys(E).forEach(e=>{g.current.off(e,E[e])})};(0,J.useEffect)(()=>()=>{g.current&&g.current.off(`_beforeBreakpoint`,k)}),(0,J.useEffect)(()=>{!m.current&&g.current&&(g.current.emitSlidesClasses(),m.current=!0)}),x4(()=>{if(o&&(o.current=h.current),h.current)return g.current.destroyed&&A(),p4({el:h.current,nextEl:y.current,prevEl:b.current,paginationEl:x.current,scrollbarEl:S.current,swiper:g.current},C),i&&!g.current.destroyed&&i(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),x4(()=>{j();let e=m4(w,_.current,D,v.current,e=>e.key);return _.current=w,v.current=D,e.length&&g.current&&!g.current.destroyed&&d4({swiper:g.current,slides:D,passedParams:w,changedParams:e,nextEl:y.current,prevEl:b.current,scrollbarEl:S.current,paginationEl:x.current}),()=>{M()}}),x4(()=>{h4(g.current)},[u]);function N(){return C.virtual?b4(g.current,D,u):D.map((e,t)=>J.cloneElement(e,{swiper:g.current,swiperSlideIndex:t}))}return J.createElement(t,g4({ref:h,className:l4(`${c}${e?` ${e}`:``}`)},T),J.createElement(C4.Provider,{value:g.current},O[`container-start`],J.createElement(n,{className:u4(C.wrapperClass)},O[`wrapper-start`],N(),O[`wrapper-end`]),o4(C)&&J.createElement(J.Fragment,null,J.createElement(`div`,{ref:b,className:`swiper-button-prev`}),J.createElement(`div`,{ref:y,className:`swiper-button-next`})),c4(C)&&J.createElement(`div`,{ref:S,className:`swiper-scrollbar`}),s4(C)&&J.createElement(`div`,{ref:x,className:`swiper-pagination`}),O[`container-end`]))});w4.displayName=`Swiper`;var T4=(0,J.forwardRef)(({tag:e=`div`,children:t,className:n=``,swiper:r,zoom:i,lazy:a,virtualIndex:o,swiperSlideIndex:s,...c}={},l)=>{let u=(0,J.useRef)(null),[d,f]=(0,J.useState)(`swiper-slide`),[p,m]=(0,J.useState)(!1);function h(e,t,n){t===u.current&&f(n)}x4(()=>{if(s!==void 0&&(u.current.swiperSlideIndex=s),l&&(l.current=u.current),!(!u.current||!r)){if(r.destroyed){d!==`swiper-slide`&&f(`swiper-slide`);return}return r.on(`_slideClass`,h),()=>{r&&r.off(`_slideClass`,h)}}}),x4(()=>{r&&u.current&&!r.destroyed&&f(r.getSlideClasses(u.current))},[r]);let g={isActive:d.indexOf(`swiper-slide-active`)>=0,isVisible:d.indexOf(`swiper-slide-visible`)>=0,isFullyVisible:d.indexOf(`swiper-slide-fully-visible`)>=0,isPrev:d.indexOf(`swiper-slide-prev`)>=0,isNext:d.indexOf(`swiper-slide-next`)>=0},_=()=>typeof t==`function`?t(g):t;return J.createElement(e,g4({ref:u,className:l4(`${d}${n?` ${n}`:``}`),"data-swiper-slide-index":o,onLoad:()=>{m(!0)}},c),i&&J.createElement(S4.Provider,{value:g},J.createElement(`div`,{className:`swiper-zoom-container`,"data-swiper-zoom":typeof i==`number`?i:void 0},_(),a&&!p&&J.createElement(`div`,{className:`swiper-lazy-preloader`,ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!i&&J.createElement(S4.Provider,{value:g},_(),a&&!p&&J.createElement(`div`,{className:`swiper-lazy-preloader`,ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});T4.displayName=`SwiperSlide`;var E4={spaceBetween:50,slidesPerView:1,navigation:!0,pagination:{clickable:!0},keyboard:{enabled:!0},modules:[T0,D0,S0]},D4={},O4=({slides:e,swiperProps:t=E4,swiperSlideProps:n=D4})=>l(w4,{...t,style:{height:`100%`,width:`100%`},children:e.map(({Node:e})=>l(T4,{...n,children:e}))}),k4=({url:e})=>l(q,{style:{width:`100%`,height:`100%`,padding:10,boxSizing:`border-box`},children:l(q,{style:{backgroundImage:`url('${e}')`,backgroundRepeat:`no-repeat`,backgroundPosition:`center`,backgroundSize:`contain`,width:`100%`,height:`100%`}})}),A4=({url:e})=>l(q,{style:{width:`100%`,height:`100%`,padding:10,boxSizing:`border-box`},children:l(`object`,{data:e,type:`application/pdf`,width:`100%`,height:`100%`})});function j4(e){let t=1024*1024;return e>=t?`${(e/t).toFixed(2)} MB`:`${(e/1024).toFixed(2)} KB`}var M4=({document:e,handleDownloadAttachment:t})=>{let{t:n}=Ye();return d(q,{style:{width:`100%`,height:`100%`,padding:10,boxSizing:`border-box`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`},children:[l(tv,{style:{color:`white`,width:`170px`,height:`170px`}}),d(si,{color:`white`,fontSize:16,fontWeight:500,marginTop:2,children:[e?.name,` `,j4(e?.size)]}),e?.id&&l(fi,{sx:e=>({marginTop:e.spacing(2)}),variant:`contained`,startIcon:l(Pv,{}),onClick:()=>t(e),children:n(`common.labels.download`)})]})},N4=/(?:\.([^.]+))?$/,P4={png:k4,webp:k4,jpg:k4,jpeg:k4,bmp:k4,pdf:A4},F4=e=>{let{name:t=``}=e,n=N4.exec(t);return n&&n?.length?n[1]:``},I4=()=>{let{documents:e,onSlideChange:t,currentIndex:n,handleDownloadAttachment:r}=W1(),i=(0,J.useMemo)(()=>e.map(e=>({Node:l(P4[F4(e)?.toLocaleLowerCase()]??M4,{url:e?.url??``,document:e,handleDownloadAttachment:r},e?.id)})),[e]);return l(O4,{swiperProps:{...E4,initialSlide:n,onSlideChange:t,onInit:t},slides:i})},L4=B()(e=>
2743({root:{height:`100%`,with:`100%`,display:`flex`,flexDirection:`column`},header:{backgroundColor:e.palette.background.dark[500],height:48,padding:e.spacing(2),display:`flex`,flexDirection:`row`,justifyContent:`space-between`,alignItems:`center`,gap:e.spacing(2),color:e.palette.text.white},content:{flex:1},contentDialogClasses:{backgroundColor:`transparent !important`,padding:`0px !important`,margin:`0px !important`,borderRadius:`0px !important`},iconBtn:{color:e.palette.common.white}})),R4=()=>{let{open:e,documents:t,currentIndex:n,currentDocument:r,handleClose:i,handleDownloadAttachment:a,className:o}=W1(),{classes:s}=L4();return l(NN,{open:e,onClose:i,fullScreen:!0,className:o,dialogClasses:{paper:s.contentDialogClasses},contentDialogClasses:s.contentDialogClasses,children:d(q,{className:s.root,children:[d(q,{className:s.header,children:[l(ui,{className:s.iconBtn,onClick:i,children:l(ci,{})}),d(q,{children:[r?.name,` `,j4(r?.size??0)]}),l(q,{children:r?.id&&l(ui,{className:s.iconBtn,onClick:()=>a(r),children:l(av,{color:`inherit`})})})]}),l(q,{className:s.content,children:l(I4,{})})]})})},z4=B()(e=>({root:{height:`100%`,with:`100%`,display:`flex`,flexDirection:`column`},header:{backgroundColor:e.palette.background.dark[500],height:48,padding:e.spacing(2),display:`flex`,flexDirection:`row`,justifyContent:`space-between`,alignItems:`center`,gap:e.spacing(2),color:e.palette.text.white},footer:{backgroundColor:e.palette.background.dark[500],height:48,padding:e.spacing(2),display:`flex`,flexDirection:`row`,justifyContent:`space-between`,alignItems:`center`,gap:e.spacing(2),color:e.palette.text.white},content:{flex:1},contentDialogClasses:{backgroundColor:`transparent !important`,padding:`0px !important`,margin:`0px !important`,borderRadius:`0px !important`},iconBtn:{color:e.palette.common.white}})),B4=()=>{let{open:e,documents:t,currentIndex:n,currentDocument:r,handleClose:i,handleDownloadAttachment:a,className:o}=W1(),{classes:s}=z4(),c=t[n];return l(NN,{open:e,onClose:i,fullScreen:!0,className:o,dialogClasses:{paper:s.contentDialogClasses},contentDialogClasses:s.contentDialogClasses,children:d(q,{className:s.root,children:[d(q,{className:s.header,children:[l(ui,{className:s.iconBtn,onClick:i,children:l(ci,{})}),l(q,{children:r?.id&&l(ui,{className:s.iconBtn,onClick:()=>a(r),children:l(av,{})})})]}),l(q,{className:s.content,children:l(I4,{})}),d(q,{className:s.footer,children:[c?.name,` `,j4(c?.size)]})]})})},V4=()=>{let e=Dt(e=>e.breakpoints.down(`sm`)),t=Dt(e=>e.breakpoints.between(`sm`,`lg`)),n=Dt(e=>e.breakpoints.up(`lg`));return l(e?B4:n||t?R4:f,{})},H4=({open:e,documents:t,currentIndex:n,onClose:r,className:i})=>{let[a,o]=(0,J.useState)(t),[s,c]=(0,J.useState)(t[0]);di(()=>{o(()=>t)},[t]);let u=async e=>{e.id&&Uj(e.id,e.name)},d=e=>e instanceof File?URL.createObjectURL(e):H1(e?.id??``),f=async e=>{let t=a[e];if(!t)return;let n=``;t?.url||(n=t.id?await m(d(t))??``:d(t),o(a.map((t,r)=>{let{name:i,size:a,url:o,id:s}=t;return r===e?{name:i,size:a,url:o,id:s,url:n}:t}
2743)))},p=async e=>{let{activeIndex:t}=e;c(a[t]),f(t)},m=async e=>{try{let t=await we.get(e,{responseType:`blob`}),n=new Blob([t.data],{type:`application/pdf`});return URL.createObjectURL(n)}catch{return}};return l(U1.Provider,{value:{open:e,documents:a,currentDocument:s,currentIndex:n,handleClose:r,handleDownloadAttachment:u,onSlideChange:p,className:i},children:l(V4,{})})},U4=B()(e=>({root:{zIndex:e.zIndex.modal+20},eventHandler:{margin:e.spacing(.5)},deleteIcon:{color:e.palette.warning.main},delete:{fontWeight:700,marginRight:e.spacing(1)},deleteConfirm:{padding:e.spacing(1),fontSize:`14px`,fontWeight:400}})),W4=({open:e,onClickConfirm:t,onClose:n,loading:r})=>{let{t:i}=Ye(),{classes:a}=U4();return d(NN,{open:e,onClose:n,fullWidth:!0,maxWidth:`sm`,isTitleShow:!1,className:a.root,sx:{zIndex:e=>e.zIndex.modal+20},dialogActionChildren:d(f,{children:[l(fi,{disabled:r,onClick:n,variant:`text`,className:a.eventHandler,children:i(`common.labels.cancel`)}),l(fi,{disabled:r,onClick:t,variant:`contained`,className:a.eventHandler,children:r?l(Oi,{color:`white`}):i(`common.labels.remove`)})]}),children:[l(si,{className:a.delete,startIcon:l(mv,{className:a.deleteIcon}),children:i(`tasks.labels.delete-task`)}),l(si,{className:a.deleteConfirm,children:i(`tasks.massages.delete-confirm`)})]})},G4=B()(e=>({parentIcon:{display:`flex`,padding:e.spacing(1,0)},createTask:{marginRight:e.spacing(1),fontWeight:`700`}})),K4=({open:e,onClose:t})=>{let{t:n}=Ye(),{classes:r}=G4();return l(NN,{fullWidth:!0,maxWidth:`sm`,open:e,onClose:t,isTitleShow:!1,dialogActionChildren:l(fi,{variant:`text`,onClick:t,children:n(`common.labels.understand`)}),children:d(q,{children:[d(q,{className:r.parentIcon,children:[l(gi,{color:`info`}),l(si,{className:r.createTask,children:n(`tasks.labels.create-task`)})]}),l(si,{children:n(`tasks.massages.add-position-for-create-task`)})]})})},q4=10,J4=B()((e,{hasComments:t,open:n})=>({mobile:{width:e.spacing(4),height:e.spacing(4)},detailsCommentButton:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`,gap:e.spacing(.5),minWidth:t?e.spacing(4):void 0,padding:e.spacing(1),color:e.palette.visual.softBlue2,borderRadius:e.spacing(1),background:`#E3FAFF`,boxSizing:`border-box`,height:e.spacing(5),border:n?`1px solid ${e.palette.visual.softBlue2}`:`1px solid transparent`},countBadge:{direction:`ltr`,borderRadius:2,backgroundColor:` #E5E5E5`,color:e.palette.text.onSurface,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:e.spacing(.25),minWidth:20},countBadgeSkeleton:{borderRadius:2,flexShrink:0}})),Y4=({open:e,onToggleCommentPanel:t,disabled:n,count:r})=>{let{classes:i}=J4({hasComments:!!r?.value||!!r?.loading,open:e}),{t:a}=Ye();return d(oz,{color:`info`,onClick:t,disabled:n,tooltip:a(`tasks.labels.comments`),selected:e,children:[r?.loading?l(dr,{variant:`rounded`,width:20,height:20,className:i.countBadgeSkeleton}):!!r?.value&&l(St,{variant:`caption`,className:i.countBadge,children:r.value>10?`+${q4}`:r.value}),l(Z_,{sx:{width:20,height:20}})]})},X4={primary:{main:`#7E6BF1`,on:`#FFFFFF`,container:`#EBE8FD`,onContainer:`#4B38BE`,fixedDim:`#BEB5F8`},secondary:{main:`#347EEE`,on:`#FFFFFF`,container:`#E7F0FD`,onContainer:`#0F55BD`},tertiary:{main:`#D96D56`,on:`#FFFFFF`,container:`#F6DBD5`,onContainer:`#89321F`},surface:{base:`#FFFFFF`,lowest:`#FFFFFF`,low:`#F6F6F7`,main:`#F0F0F2`,high:`#ECECEF`,highest:`#E5E5E6`,on:`#1C1B1F`,onVariant:`#4B4950`},outline:{main:`#7D7986`,variant:`#D3CFD7`},error:{main:`#D31F22`,on:`#FFFFFF`,container:`#FCE9E9`,onContainer:`#852221`},warning:{main:`#F29423`,on:`#FFFFFF`,container:`#FCE8CF`,onContainer:`#915308`},success:{main:`#3FC063`,on:`#FFFFFF`,container:`#D8F3E0`,onContainer:`#25743C`}},Z4={softBlue2:`#4DC3DB`,purple2:`#7F7C83`},Q4={compose:X4.success.main,forward:X4.primary.main,hoverForward:`${X4.primary.main}D1`,sign:`#DB7D4D`,"remove-signature":X4.warning.onContainer,terminate:`#DB4D8F`,hoverTerminate:`#ED6CA8`,discard:`#DB574D`,hoverDiscard:`#E9837B`,number:`#8A4DDB`,receipt:Z4.softBlue2,update:X4.secondary.main,hoverUpdate:`#629BF1`,forwardRevert:`#847
2743FA4`,hoverForwardRevert:`#9A95BA`,void:Z4.purple2,hoverVoid:`#9B979F`,leaveConversation:X4.error.onContainer,updateTags:`#082A5E`},$4={thin:100,light:300,regular:400,medium:500,bold:700,black:900},e3=oe({direction:`rtl`,palette:{primary:{main:X4.primary.main,contrastText:X4.primary.on},secondary:{main:X4.secondary.main,contrastText:X4.secondary.on},error:{main:X4.error.main,contrastText:X4.error.on},warning:{main:X4.warning.main,contrastText:X4.warning.on},success:{main:X4.success.main,contrastText:X4.success.on},background:{default:X4.surface.base,paper:X4.surface.base,primaryContainer:X4.primary.container,secondaryContainer:X4.secondary.container,surfaceContainerLow:X4.surface.low,shadow:`#F8F8F8`,dark:{500:`#49454F`}},text:{primary:X4.surface.on,secondary:X4.surface.onVariant,primaryOnContainer:X4.primary.onContainer,secondaryOnContainer:X4.secondary.onContainer,white:X4.surface.base,onSurface:X4.surface.onVariant},divider:X4.outline.main,border:{main:X4.outline.main,onContainer:X4.outline.variant},letterHistoryCard:Q4},tokens:{colors:X4,weight:$4},breakpoints:{values:{xs:0,sm:433,md:800,lg:1280,xl:1920}},typography:{fontFamily:[`Vazir`,`Roboto`,`Helvetica`,`Arial`,`sans-serif`].join(`,`),displayLarge:{fontSize:`48px`,lineHeight:`64px`,fontWeight:$4.black},displayMedium:{fontSize:`40px`,lineHeight:`56px`,fontWeight:$4.bold},displaySmall:{fontSize:`32px`,lineHeight:`48px`,fontWeight:$4.bold},headlineLarge:{fontSize:`16px`,lineHeight:`24px`,fontWeight:$4.bold},headlineMedium:{fontSize:`16px`,lineHeight:`24px`,fontWeight:$4.medium},headlineSmall:{fontSize:`14px`,lineHeight:`20px`,fontWeight:$4.medium},titleLarge:{fontSize:`14px`,lineHeight:`20px`,fontWeight:$4.medium},titleMedium:{fontSize:`12px`,lineHeight:`16px`,fontWeight:$4.medium},titleSmall:{fontSize:`12px`,lineHeight:`16px`,fontWeight:$4.regular},labelLarge:{fontSize:`14px`,lineHeight:`16px`,fontWeight:$4.medium},labelMedium:{fontSize:`12px`,lineHeight:`14px`,fontWeight:$4.medium},labelSmall:{fontSize:`10px`,lineHeight:`14px`,fontWeight:$4.regular},bodyLarge:{fontSize:`14px`,lineHeight:`20px`,fontWeight:$4.regular},bodyMedium:{fontSize:`12px`,lineHeight:`16px`,fontWeight:$4.regular},bodySmall:{fontSize:`10px`,lineHeight:`14px`,fontWeight:$4.regular}},components:{MuiSvgIcon:{styleOverrides:{root:{stroke:`#ffffff`,strokeWidth:.5}}},MuiChip:{styleOverrides:{deleteIcon:{margin:`0 0 0 5px`}}},MuiDialog:{styleOverrides:{paper:{borderRadius:16}}},MuiDialogContent:{styleOverrides:{root:{padding:16}}},MuiAutocomplete:{styleOverrides:{tag:{color:`#7E6BF1`,direction:`rtl`,background:`#faf6ff`,borderRadius:4}}},MuiIcon:{styleOverrides:{root:{color:`#808080`}}},MuiTypography:{defaultProps:{variantMapping:{displayLarge:`h1`,displayMedium:`h1`,displaySmall:`h2`,headlineLarge:`h2`,headlineMedium:`h3`,headlineSmall:`h4`,titleLarge:`h4`,titleMedium:`h5`,titleSmall:`h6`,labelLarge:`span`,labelMedium:`span`,labelSmall:`span`,bodyLarge:`p`,bodyMedium:`p`,bodySmall:`p`}},styleOverrides:{root:{}}},MuiInputBase:{styleOverrides:{root:{height:`42px`}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:`8px`,"&.Mui-focused":{borderColor:`#655aaf`}}}},MuiInputLabel:{styleOverrides:{root:{lineHeight:`1.04375em`,background:`#fff`,color:`#808080`}}},MuiIconButton:{styleOverrides:{root:{"&:disabled":{"&.disabledSecurity":{color:`#ababab`}}}}},MuiButton:{styleOverrides:{root:{borderRadius:6,height:40,fontWeight:`normal`},outlined:{},contained:{color:`#fff`,backgroundColor:`#7E6BF1`,"&:hover":{backgroundColor:`#7E6BF1`},"&:disabled":{opacity:.5,color:`#fff`,backgroundColor:`#C0B5FF`,"&.disabledSecurity":{backgroundColor:`#ababab`}}}}},MuiMenuItem:{styleOverrides:{root:{direction:`ltr`}}},MuiCheckbox:{styleOverrides:{root:{color:`#9a9a9a`}}},MuiFormHelperText:{styleOverrides:{root:{color:`#808080`,marginRight:8,marginLeft:8}}},MuiTab:{styleOverrides:{root:{color:`#444`}}}}},Ok),t3=Ze(e=>{let{comments:t}=e;return{comments:t}},{getCommentsAsync:rD,createCommentAsync:iD,createCommentReset:sD,commentsReset:oD,setTaskCommentCount:tO}),n3=(0,J.createContext)({taskId:``,comments:[],commentsLoading:!1,fetchMoreComments:()=>{},hasMoreComments:!1,inputState:{content:``,parentId:null},setInputState:()=>{},submitLoading:!1,uploads:{},attachmentUploadError:null,handleChangeInput:()=>{},handleChangeFile:()=>{},handleSubmitComment:async()=>{},attachmentActions:{onDownload:()=>{},onPreview:()=>{}}}),r3=()=>(0,J.useContext)(n3),i3=`/document-format-icons/other.svg`,a3=({src:e,fallbackSrc:t=i3,onError:n,alt:r,...i})=>l(`img`,{src:e,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=t,n?.(e)},alt:r,...i}),o3=(e,t=1)=>{if(!e)return`0 Bytes`;let n=1024,r=t<0?0:t,i=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`],a=Math.floor(Math.log(e)/Math.log(n));return`${parseFloat((e/n**a).toFixed(r))} ${i[a]}`},s3=B()(e=>({rootWrapper:{display:`flex`,flexDirection:`column`,gap:e.spacing(.5),backgroundColor:`#EFEFEF`,padding:e.spacing(1)}
2743,root:{direction:`ltr`,width:`100%`,display:`flex`,flexDirection:`row`,justifyContent:`space-between`,gap:e.spacing(1),alignItems:`center`,borderRadius:e.spacing(.25)},details:{flex:1,overflow:`hidden`,display:`flex`,alignItems:`center`,gap:e.spacing(1)},actions:{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.spacing(.5)},name:{fontSize:14,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},size:{fontSize:14,whiteSpace:`nowrap`},actionIcon:{padding:e.spacing(.25)},uploadMessage:{display:`flex`,alignItems:`center`,gap:e.spacing(.5),fontSize:12,whiteSpace:`nowrap`},uploadError:{color:e.palette.error.main},uploadInfo:{color:e.palette.text.primaryOnContainer},uploadMessageIcon:{fontSize:16},progressButton:{position:`relative`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:28,height:28,padding:0},progressCloseIcon:{position:`absolute`,inset:0,display:`flex`,alignItems:`center`,justifyContent:`center`,pointerEvents:`none`},progressCloseSvg:{width:12,height:12}})),c3=e=>{let t=e.split(`.`).pop()?.toLowerCase();return t&&t!==e.toLowerCase()?`/document-format-icons/${t}.svg`:void 0},l3=({attachment:e,iconSrc:t,uploadInteractions:n,actions:r})=>{let{classes:i,cx:a}=s3(),[o,s]=(0,J.useState)(!1),c=(0,J.useCallback)(async()=>{if(!(!r.onDownload||o)){s(!0);try{let t=r.onDownload(e);t instanceof Promise&&await t}finally{s(!1)}}},[r,e,o]);return d(G,{className:i.rootWrapper,children:[d(G,{className:i.root,children:[d(G,{className:i.details,children:[l(a3,{src:t??c3(e.name)}),l(St,{className:i.name,noWrap:!0,children:e.name}),l(St,{className:i.size,children:o3(e.size)})]}),l(G,{className:i.actions,children:n?.isUploading?d(ui,{color:`inherit`,onClick:()=>r?.onCancelUpload?.(n?.uploadKey),className:i.progressButton,"aria-label":n?.cancelUploadAriaLabel,children:[l(er,{size:16,thickness:4,color:`primary`,variant:`determinate`,value:n?.uploadProgress}),l(G,{className:i.progressCloseIcon,"aria-hidden":!0,children:l(ci,{className:i.progressCloseSvg})})]}):d(f,{children:[r?.onCancelUpload&&l(ui,{color:`inherit`,onClick:()=>r.onCancelUpload?.(),className:i.actionIcon,children:l(U_,{sx:{width:16,height:16}})}),r?.onPreview&&l(ui,{color:`inherit`,onClick:()=>r.onPreview?.(e),className:i.actionIcon,children:l(oy,{sx:{width:16,height:16}})}),r?.onDownload&&l(ui,{color:`inherit`,onClick:c,disabled:o,className:i.actionIcon,children:l(Pv,{sx:{width:16,height:16}})})]})})]}),n?.isUploading&&n?.uploadMessage&&d(St,{className:a(i.uploadMessage,i.uploadInfo),children:[l(Bv,{className:i.uploadMessageIcon}),n?.uploadMessage]}),n?.errorMessage&&d(St,{className:a(i.uploadMessage,i.uploadError),children:[l(Bv,{className:i.uploadMessageIcon}),n?.errorMessage]})]})},u3=({attachment:e,actions:t})=>{let{t:n}=Ye(),{uploads:r,attachmentUploadError:i}=r3(),a=e.file?Object.entries(r).find(([,e])=>e.status===`uploading`):void 0,o=a?.[0],s=a?.[1],c=!!s,u=s?.progress.percent??0,d=!!(e.file&&i&&!c);return l(l3,{attachment:e,actions:{onCancelUpload:t.onCancelUpload,onPreview:t.onPreview,onDownload:t.onDownload},uploadInteractions:{isUploading:c,uploadProgress:u,uploadKey:o,uploadMessage:c?n(`tasks.labels.stay-until-upload-complete`):void 0,errorMessage:d?i??void 0:void 0,cancelUploadAriaLabel:n(`common.actions.cancel`)}})},d3=15*1024*1024,f3=B()(e=>({root:{width:`100%`,borderRadius:e.spacing(2),border:`1px solid ${e.palette.border.onContainer}`,backgroundColor:e.palette.background.default,overflow:`hidden`,display:`flex`,flexDirection:`column`,gap:e.spacing(1),transition:`border-color 120ms ease-in-out, box-shadow 120ms ease-in-out`,"&:focus-within":{borderColor:e.palette.primary.main,boxShadow:`0 0 0 1px ${e.palette.primary.main}20`}}
2743,attachmentsWrapper:{width:`100%`,display:`flex`,flexDirection:`column`,gap:e.spacing(1),padding:e.spacing(1,1,0,1)},textField:{width:`100%`},input:{backgroundColor:e.palette.background.default,borderRadius:e.spacing(2),padding:e.spacing(1,2.5,1,1.5),height:`unset`,fontSize:`14px`,lineHeight:`20px`,fontWeight:e.tokens.weight.regular},sendBtn:{backgroundColor:`${e.palette.background.primaryContainer} !important`,width:32,height:32},sendIcon:{color:e.palette.primary.main,fontSize:18},attachBtn:{width:32,height:32,paddingLeft:0},attachIcon:{color:e.palette.text.primary,fontSize:18},disabledIcon:{color:e.palette.primary.contrastText},inputAdornment:{alignSelf:`flex-end`},hidden:{display:`none`}}));function p3({value:e,onChange:t,onSend:n,disabled:r,actionsDisabled:i=!1,textFieldInputRef:a,hasAttachment:o=!0,onChangeFile:s=()=>{},placeholder:c,attachments:u,onPreviewAttachment:f,onCancelUpload:p}){let{classes:m,cx:h}=f3(),{t:g}=Ye();return d(G,{className:m.root,children:[u?.length?l(G,{className:m.attachmentsWrapper,children:u.map(e=>l(u3,{attachment:e,actions:{onPreview:f,onCancelUpload:p}},e.id))}):null,l(pN,{multiline:!0,maxRows:5,autoFocus:!0,inputRef:a,value:e,onChange:e=>t(e.target.value),"data-testid":`aw-msg-text-field`,placeholder:c??g(`chat.conversation.message-text-field.input-label`),disabled:r,className:m.textField,variant:`standard`,slotProps:{htmlInput:{"data-testid":`msg-text-field-input`,onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),!r&&!i&&n(e))}},input:{className:m.input,disableUnderline:!0,startAdornment:l(Ur,{position:`start`,className:m.inputAdornment,children:l(ui,{"data-testid":`msg-send-btn`,edge:`start`,disabled:r||i,onClick:()=>n(e),className:m.sendBtn,children:l(dy,{className:h(m.sendIcon,{[m.disabledIcon]:r||i})})})}),endAdornment:l(Ur,{position:`end`,className:h(m.inputAdornment,{[m.hidden]:!o}),children:d(ui,{component:`label`,"data-testid":`aw-attach-file-button`,disabled:r||i,className:m.attachBtn,children:[l(L_,{className:h(m.attachIcon,{[m.disabledIcon]:r||i})}),l(`input`,{hidden:!0,type:`file`,"data-testid":`aw-file-input`,onChange:e=>{let t=e.target.files?.[0]??null;if(t){if(t.size>d3){he.error(`${g(`common.labels.sizeFile15MBLimit`)}`),e.target.value=``;return}s(t),e.target.value=``}}})]})})}}})]})}var m3=B()(e=>({root:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.spacing(.5),borderTop:`1px solid #C9C4D6`,backgroundColor:e.palette.common.white,padding:e.spacing(1)},typeBoxWrapper:{width:`100%`,borderWidth:1,opacity:1,padding:e.spacing(1.5),gap:e.spacing(1),borderRadius:e.spacing(2),borderStyle:`solid`,borderColor:e.palette.border.onContainer}})),h3=()=>{let{t:e}=Ye(),{classes:t}=m3(),{inputState:n,handleChangeInput:r,handleChangeFile:i,handleSubmitComment:a,hasProjectManagementAccess:o,isVisibleInput:s,textFieldInputRef:c,attachmentActions:u,submitLoading:d,uploads:p}=r3(),m=(0,J.useRef)(null),h=()=>{m.current&&=(URL.revokeObjectURL(m.current),null)};if((0,J.useEffect)(()=>{n.attachments?.length||h()},[n.attachments]),(0,J.useEffect)(()=>()=>h(),[]),!o)return null;let g=Object.values(p).some(e=>e.status===`uploading`),_=d||g||n.content.length>4e3;return l(G,{className:t.root,children:s?l(f,{children:l(p3,{hasAttachment:!0,value:n.content,onChange:r,onSend:()=>{a()},textFieldInputRef:c,disabled:d||g,actionsDisabled:_,onChangeFile:i,attachments:n.attachments,onPreviewAttachment:e=>{if(h(),e.file){let t=URL.createObjectURL(e.file);m.current=t,u.onPreview?.({...e,url:t});return}u.onPreview?.(e)},onCancelUpload:()=>{h(),u.onCancelUpload?.()}})}):l(St,{textAlign:`center`,variant:`bodyMedium`,color:`textOnSurface`,className:t.typeBoxWrapper,children:e(`tasks.labels.project-member-required`)})})};function g3(e){return e+.5|0}var _3=(e,t,n)=>Math.max(Math.min(e,n),t);function v3(e){return _3(g3(e*2.55),0,255)}function y3(e){return _3(g3(e*255),0,255)}function b3(e){return _3(g3(e/2.55)/100,0,1)}function x3(e){return _3(g3(e*100),0,100)}var S3={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},C3=[...`0123456789ABCDEF`],w3=e=>C3[e&15],T3=e=>C3[(e&240)>>4]+C3[e&15],E3=e=>(e&240)>>4==(e&15),D3=e=>E3(e.r)&&E3(e.g)&&E3(e.b)&&E3(e.a);function O3(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&S3[e[1]]*17,g:255&S3[e[2]]*17,b:255&S3[e[3]]*17,a:t===5?S3[e[4]]*17:255}:(t===7||t===9)&&(n={r:S3[e[1]]<<4|S3[e[2]],g:S3[e[3]]<<4|S3[e[4]],b:S3[e[5]]<<4|S3[e[6]],a:t===9?S3[e[7]]<<4|S3[e[8]]:255})),n}var k3=(e,t)=>e<255?t(e):``;function A3(e){var t=D3(e)?w3:T3;return e?`#`+t(e.r)+t(e.g)+t(e.b)+k3(e.a,t):void 0}var j3=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function M3(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function N3(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function P3(e,t,n){let r=M3(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function F3(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function I3(e){let t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2,s,c,l;return i!==a&&(l=i-a,c=o>.5?l/(2-i-a):l/(i+a),s=F3(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function L3(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(y3)}function R3(e,t,n){return L3(M3,e,t,n)}function z3(e,t,n){return L3(P3,e,t,n)}function B3(e,t,n){return L3(N3,e,t,n)}function V3(e){return(e%360+360)%360}function H3(e){let t=j3.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?v3(+t[5]):y3(+t[5]));let i=V3(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?z3(i,a,o):t[1]===`hsv`?B3(i,a,o):R3(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function U3(e,t){var n=I3(e);n[0]=V3(n[0]+t),n=R3(n),e.r=n[0],e.g=n[1],e.b=n[2]}function W3(e){if(!e)return;let t=I3(e),n=t[0],r=x3(t[1]),i=x3(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${b3(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var G3={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},K3={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function q3(){let e={},t=Object.keys(K3),n=Object.keys(G3),r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,G3[a]);a=parseInt(K3[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}var J3;function Y3(e){J3||(J3=q3(),J3.transparent=[0,0,0,0]);let t=J3[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var X3=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Z3(e){let t=X3.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?v3(e):_3(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?v3(r):_3(r,0,255)),i=255&(t[4]?v3(i):_3(i,0,255)),a=255&(t[6]?v3(a):_3(a,0,255)),{r,g:i,b:a,a:n}}}function Q3(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${b3(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var $3=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,e6=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;
vendor: 4,250 bytes, line 2743
2743function t6(e,t,n){let r=e6(b3(e.r)),i=e6(b3(e.g)),a=e6(b3(e.b));return{r:y3($3(r+n*(e6(b3(t.r))-r))),g:y3($3(i+n*(e6(b3(t.g))-i))),b:y3($3(a+n*(e6(b3(t.b))-a))),a:e.a+n*(t.a-e.a)}}function n6(e,t,n){if(e){let r=I3(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=R3(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function r6(e,t){return e&&Object.assign(t||{},e)}function i6(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=y3(e[3]))):(t=r6(e,{r:0,g:0,b:0,a:1}),t.a=y3(t.a)),t}function a6(e){return e.charAt(0)===`r`?Z3(e):H3(e)}var o6=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=i6(t):n===`string`&&(r=O3(t)||Y3(t)||a6(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=r6(this._rgb);return e&&(e.a=b3(e.a)),e}set rgb(e){this._rgb=i6(e)}rgbString(){return this._valid?Q3(this._rgb):void 0}hexString(){return this._valid?A3(this._rgb):void 0}hslString(){return this._valid?W3(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=t6(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=y3(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=g3(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return n6(this._rgb,2,e),this}darken(e){return n6(this._rgb,2,-e),this}saturate(e){return n6(this._rgb,1,e),this}desaturate(e){return n6(this._rgb,1,-e),this}rotate(e){return U3(this._rgb,e),this}};function s6(){}var c6=(()=>{let e=0;return()=>e++})();function l6(e){return e==null}function u6(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function d6(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function f6(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function p6(e,t){return f6(e)?e:t}function m6(e,t){return e===void 0?t:e}var h6=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100:+e/t,g6=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function _6(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function v6(e,t,n,r){let i,a,o;if(u6(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(d6(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function y6(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function b6(e){if(u6(e))return e.map(b6);if(d6(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=b6(e[n[i]]);return t}return e}function x6(e){return[`__proto__`,`prototype`,`constructor`].indexOf(e)===-1}function wae(e,t,n,r){if(!x6(e))return;let i=t[e],a=n[e];d6(i)&&d6(a)?S6(i,a,r):t[e]=b6(a)}function S6(e,t,n){let r=u6(t)?t:[t],i=r.length;if(!d6(e))return e;n||={};let a=n.merger||wae,o;for(let t=0;t<i;++t){if(o=r[t],!d6(o))continue;let i=Object.keys(o);for(let t=0,r=i.length;t<r;++t)a(i[t],e,o,n)}return e}function C6(e,t){return S6(e,t,{merger:Tae})}function Tae(e,t,n){if(!x6(e))return;let r=t[e],i=n[e];d6(r)&&d6(i)?C6(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=b6(i))}var w6={"":e=>e,x:e=>e.x,y:e=>e.y};function Eae(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function Dae(e){let t=Eae(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function T6(e,t){return(w6[t]||(w6[t]=Dae(t)))(e)}function E6(e){return e.charAt(0).toUpperCase()+e.slice(1)}var D6=e=>e!==void 0,O6=e=>typeof e==`function`,k6=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function Oae(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var A6=Math.PI,j6=2*A6;j6+A6;
vendor: 18,548 bytes, line 2743
2743var M6=1/0,kae=A6/180,N6=A6/2,P6=A6/4,F6=A6*2/3,I6=Math.log10,L6=Math.sign;function R6(e,t,n){return Math.abs(e-t)<n}function z6(e){let t=Math.round(e);e=R6(e,t,e/1e3)?t:e;let n=10**Math.floor(I6(e)),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Aae(e){let t=[],n=Math.sqrt(e),r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((e,t)=>e-t).pop(),t}function jae(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function B6(e){return!jae(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function Mae(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function V6(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function H6(e){return A6/180*e}function U6(e){return 180/A6*e}function W6(e){if(!f6(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function G6(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*A6&&(a+=j6),{angle:a,distance:i}}function Nae(e,t){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function K6(e){return(e%j6+j6)%j6}function q6(e,t,n,r){let i=K6(e),a=K6(t),o=K6(n),s=K6(a-i),c=K6(o-i),l=K6(i-a),u=K6(i-o);return i===a||i===o||r&&a===o||s>c&&l<u}function J6(e,t,n){return Math.max(t,Math.min(n,e))}function Pae(e){return J6(e,-32768,32767)}function Y6(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function X6(e,t,n){n||=(n=>e[n]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var Z6=(e,t,n,r)=>X6(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),Fae=(e,t,n)=>X6(e,n,r=>e[r][t]>=n);function Iae(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}var Q6=[`push`,`pop`,`shift`,`splice`,`unshift`];function Lae(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Q6.forEach(t=>{let n=`_onData`+E6(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})})}function $6(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(Q6.forEach(t=>{delete e[t]}),delete e._chartjs)}function Rae(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var e8=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function t8(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,e8.call(window,()=>{r=!1,e.apply(t,n)}))}}function zae(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var n8=e=>e===`start`?`left`:e===`end`?`right`:`center`,r8=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,Bae=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t,i8=e=>e===0||e===1,a8=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*j6/n)),o8=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*j6/n)+1,s8={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*N6)+1,easeOutSine:e=>Math.sin(e*N6),easeInOutSine:e=>-.5*(Math.cos(A6*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>i8(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>i8(e)?e:a8(e,.075,.3),easeOutElastic:e=>i8(e)?e:o8(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return i8(e)?e:e<.5?.5*a8(e*2,t,n):.5+.5*o8(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-s8.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?s8.easeInBounce(e*2)*.5:s8.easeOutBounce(e*2-1)*.5+.5};function c8(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function l8(e){return c8(e)?e:new o6(e)}function u8(e){return c8(e)?e:new o6(e).saturate(.5).darken(.1).hexString()}var Vae=[`x`,`y`,`borderWidth`,`radius`,`tension`],Hae=[`color`,`borderColor`,`backgroundColor`];function Uae(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:Hae},numbers:{type:`number`,properties:Vae}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function Wae(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var d8=new Map;function Gae(e,t){t||={};let n=e+JSON.stringify(t),r=d8.get(n);return r||(r=new Intl.NumberFormat(e,t),d8.set(n,r)),r}function f8(e,t,n){return Gae(t,n).format(e)}var p8={values(e){return u6(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=Kae(e,n)}let o=I6(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),f8(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(I6(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?p8.numeric.call(this,e,t,n):``}};function Kae(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var m8={formatters:p8};function qae(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:m8.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var h8=Object.create(null),g8=Object.create(null);function _8(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function v8(e,t,n){return typeof t==`string`?S6(_8(e,t),n):S6(_8(e,``),t)}var y8=new class{constructor(e,t){this.animation=void 0,this.backgroundColor=`rgba(0,0,0,0.1)`,this.borderColor=`rgba(0,0,0,0.1)`,this.color=`#666`,this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>u8(t.backgroundColor),this.hoverBorderColor=(e,t)=>u8(t.borderColor),this.hoverColor=(e,t)=>u8(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return v8(this,e,t)}get(e){return _8(this,e)}describe(e,t){return v8(g8,e,t)}override(e,t){return v8(h8,e,t)}route(e,t,n,r){let i=_8(this,e),a=_8(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return d6(e)?Object.assign({},t,e):m6(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[Uae,Wae,qae]);function Jae(e){return!e||l6(e.size)||l6(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function b8(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Yae(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;c<s;c++)if(d=n[c],d!=null&&!u6(d))o=b8(e,i,a,o,d);else if(u6(d))for(l=0,u=d.length;l<u;l++)f=d[l],f!=null&&!u6(f)&&(o=b8(e,i,a,o,f));e.restore();let p=a.length/2;if(p>n.length){for(c=0;c<p;c++)delete i[a[c]];a.splice(0,p)}return o}function x8(e,t,n){let r=e.currentDevicePixelRatio,i=n===0?0:Math.max(n/2,.5);return Math.round((t-i)*r)/r+i}function S8(e,t){!t&&!e||(t||=e.getContext(`2d`),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function C8(e,t,n,r){w8(e,t,n,r,null)}function w8(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=t.pointStyle,m=t.rotation,h=t.radius,g=(m||0)*kae;if(p&&typeof p==`object`&&(a=p.toString(),a===`[object HTMLImageElement]`||a===`[object HTMLCanvasElement]`)){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(h)||h<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,h,0,0,j6):e.arc(n,r,h,0,j6),e.closePath();break;case`triangle`:u=i?i/2:h,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=F6,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=F6,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),e.closePath();break;case`rectRounded`:l=h*.516,c=h-l,o=Math.cos(g+P6)*c,d=Math.cos(g+P6)*(i?i/2-l:c),s=Math.sin(g+P6)*c,f=Math.sin(g+P6)*(i?i/2-l:c),e.arc(n-d,r-s,l,g-A6,g-N6),e.arc(n+f,r-o,l,g-N6,g),e.arc(n+d,r+s,l,g,g+N6),e.arc(n-f,r+o,l,g+N6,g+A6),e.closePath();break;case`rect`:if(!m){c=Math.SQRT1_2*h,u=i?i/2:c,e.rect(n-u,r-c,2*u,2*c);break}g+=P6;case`rectRot`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+f,r-o),e.lineTo(n+d,r+s),e.lineTo(n-f,r+o),e.closePath();break;case`crossRot`:g+=P6;case`cross`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`star`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),g+=P6,d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`line`:o=i?i/2:Math.cos(g)*h,s=Math.sin(g)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case`dash`:e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:h),r+Math.sin(g)*h);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function T8(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function E8(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function D8(e){e.restore()}function Xae(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),l6(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Zae(e,t,n,r,i){if(i.strikethrough||i.underline){let a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,c=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,u=i.strikethrough?(c+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function Qae(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function O8(e,t,n,r,i,a={}){let o=u6(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,Xae(e,a),c=0;c<o.length;++c)l=o[c],a.backdrop&&Qae(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),l6(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(l,n,r,a.maxWidth)),e.fillText(l,n,r,a.maxWidth),Zae(e,n,r,l,a),r+=Number(i.lineHeight);e.restore()}function k8(e,t){let{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*A6,A6,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,A6,N6,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,N6,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-N6,!0),e.lineTo(n+o.topLeft,r)}var $ae=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,eoe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function toe(e,t){let n=(``+e).match($ae);if(!n||n[1]===`normal`)return t*1.2;switch(e=+n[2],n[3]){case`px`:return e;case`%`:e/=100;break}return t*e}var noe=e=>+e||0;function A8(e,t){let n={},r=d6(t),i=r?Object.keys(t):t,a=d6(e)?r?n=>m6(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=noe(a(e));return n}function roe(e){return A8(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function j8(e){return A8(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function M8(e){let t=roe(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function N8(e,t){e||={},t||=y8.font;let n=m6(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=m6(e.style,t.style);r&&!(``+r).match(eoe)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:m6(e.family,t.family),lineHeight:toe(m6(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:m6(e.weight,t.weight),string:``};return i.string=Jae(i),i}function P8(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;a<o;++a)if(s=e[a],s!==void 0&&(t!==void 0&&typeof s==`function`&&(s=s(t),i=!1),n!==void 0&&u6(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function ioe(e,t,n){let{min:r,max:i}=e,a=g6(t,(i-r)/2),o=(e,t)=>n&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function F8(e,t){return Object.assign(Object.create(e),t)}function I8(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=W8(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>I8([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return B8(n,r,()=>foe(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return G8(e).includes(t)},ownKeys(e){return G8(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function L8(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:R8(e,r),setContext:t=>L8(e,t,n,r),override:i=>L8(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return B8(e,t,()=>ooe(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function R8(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:O6(n)?n:()=>n,isIndexable:O6(r)?r:()=>r}}var aoe=(e,t)=>e?e+E6(t):t,z8=(e,t)=>d6(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function B8(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function ooe(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return O6(s)&&o.isScriptable(t)&&(s=soe(t,s,e,n)),u6(s)&&s.length&&(s=coe(t,s,e,o.isIndexable)),z8(t,s)&&(s=L8(s,i,a&&a[t],o)),s}function soe(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),z8(e,c)&&(c=H8(i._scopes,i,e,c)),c}function coe(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(d6(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=H8(r,i,e,c);t.push(L8(n,a,o&&o[e],s))}}return t}function V8(e,t,n){return O6(e)?e(t,n):e}var loe=(e,t)=>e===!0?t:typeof e==`string`?T6(t,e):void 0;function uoe(e,t,n,r,i){for(let a of t){let t=loe(n,a);if(t){e.add(t);let a=V8(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function H8(e,t,n,r){let i=t._rootScopes,a=V8(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=U8(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=U8(s,o,a,c,r),c===null)?!1:I8(Array.from(s),[``],i,a,()=>doe(t,n,r))}function U8(e,t,n,r,i){for(;n;)n=uoe(e,t,n,r,i);return n}function doe(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return u6(i)&&d6(n)?n:i||{}}function foe(e,t,n,r){let i;
vendor: 4,107 bytes, line 2743
2743for(let a of t)if(i=W8(aoe(a,e),n),i!==void 0)return z8(e,i)?H8(n,r,e,i):i}function W8(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function G8(e){let t=e._keys;return t||=e._keys=poe(e._scopes),t}function poe(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function K8(){return typeof window<`u`&&typeof document<`u`}function q8(e){let t=e.parentNode;return t&&t.toString()===`[object ShadowRoot]`&&(t=t.host),t}function J8(e,t,n){let r;return typeof e==`string`?(r=parseInt(e,10),e.indexOf(`%`)!==-1&&(r=r/100*t.parentNode[n])):r=e,r}var Y8=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function moe(e,t){return Y8(e).getPropertyValue(t)}var hoe=[`top`,`right`,`bottom`,`left`];function X8(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=hoe[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var goe=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function _oe(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(goe(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function Z8(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=Y8(n),a=i.boxSizing===`border-box`,o=X8(i,`padding`),s=X8(i,`border`,`width`),{x:c,y:l,box:u}=_oe(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function voe(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&q8(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=Y8(a),s=X8(o,`border`,`width`),c=X8(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=J8(o.maxWidth,a,`clientWidth`),i=J8(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||M6,maxHeight:i||M6}}var Q8=e=>Math.round(e*10)/10;function yoe(e,t,n,r){let i=Y8(e),a=X8(i,`margin`),o=J8(i.maxWidth,e,`clientWidth`)||M6,s=J8(i.maxHeight,e,`clientHeight`)||M6,c=voe(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=X8(i,`border`,`width`),t=X8(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=Q8(Math.min(l,o,c.maxWidth)),u=Q8(Math.min(u,s,c.maxHeight)),l&&!u&&(u=Q8(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=Q8(Math.floor(u*r))),{width:l,height:u}}function $8(e,t,n){let r=t||1,i=Q8(e.height*r),a=Q8(e.width*r);e.height=Q8(e.height),e.width=Q8(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var boe=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};K8()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function e5(e,t){let n=moe(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}var xoe=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},Soe=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function t5(e,t,n){return e?xoe(t,n):Soe()}function n5(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function r5(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function i5(e,t,n){return e.options.clip?e[n]:t[n]}function Coe(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:i5(n,t,`left`),right:i5(n,t,`right`),top:i5(r,t,`top`),bottom:i5(r,t,`bottom`)}:t}function woe(e,t){let n=t._clip;if(n.disabled)return!1;let r=Coe(t,e.chartArea);
vendor: 10,867 bytes, line 2743
2743return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}var a5=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){let i=t.listeners[r],a=t.duration;i.forEach(r=>r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,e8.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},o5=`transparent`,Toe={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=l8(e||o5),i=r.valid&&l8(t||o5);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},Eoe=class{constructor(e,t,n,r){let i=t[n];r=P8([e.to,r,i,e.from]);let a=P8([e.from,i,r]);this._active=!0,this._fn=e.fn||Toe[e.type||typeof a],this._easing=s8[e.easing]||s8.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=P8([e.to,t,r,e.from]),this._from=P8([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;if(this._active=i!==o&&(a||t<n),!this._active){this._target[r]=o,this._notify(!0);return}if(t<0){this._target[r]=i;return}s=t/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}},s5=class{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!d6(e))return;let t=Object.keys(y8.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{let i=e[r];if(!d6(i))return;let a={};for(let e of t)a[e]=i[e];(u6(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=Ooe(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&Doe(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u)if(d&&u.active()){u.update(d,l,o);continue}else u.cancel();if(!d||!d.duration){e[c]=l;continue}i[c]=u=new Eoe(d,e,c,l),r.push(u)}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return a5.add(this._chart,n),!0}};function Doe(e,t){let n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){let i=e[r[t]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function Ooe(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function c5(e,t){let n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function koe(e,t,n){if(n===!1)return!1;let r=c5(e,n),i=c5(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Aoe(e){let t,n,r,i;return d6(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function l5(e,t){let n=[],r=e._getSortedDatasetMetas(t),i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function u5(e,t,n,r={}){let i=e.keys,a=r.mode===`single`,o,s,c,l;if(t===null)return;let u=!1;for(o=0,s=i.length;o<s;++o){if(c=+i[o],c===n){if(u=!0,r.all)continue;break}l=e.values[c],f6(l)&&(a||t===0||L6(t)===L6(l))&&(t+=l)}return!u&&!r.all?0:t}function joe(e,t){let{iScale:n,vScale:r}=t,i=n.axis===`x`?`x`:`y`,a=r.axis===`x`?`x`:`y`,o=Object.keys(e),s=Array(o.length),c,l,u;for(c=0,l=o.length;c<l;++c)u=o[c],s[c]={[i]:u,[a]:e[u]};return s}function d5(e,t){let n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Moe(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Noe(e){let{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:-1/0,max:i?n:1/0}}function Poe(e,t,n){let r=e[t]||(e[t]={});return r[n]||(r[n]={})}function f5(e,t,n,r){for(let i of t.getMatchingVisibleMetas(r).reverse()){let t=e[i.index];if(n&&t>0||!n&&t<0)return i.index}return null}function p5(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=Moe(a,o,r),d=t.length,f;for(let e=0;e<d;++e){let n=t[e],{[c]:a,[l]:d}=n,p=n._stacks||={};f=p[l]=Poe(i,u,a),f[s]=d,f._top=f5(f,o,!0,r.type),f._bottom=f5(f,o,!1,r.type);let m=f._visualValues||={};m[s]=d}}function m5(e,t){let n=e.scales;return Object.keys(n).filter(e=>n[e].axis===t).shift()}function Foe(e,t){return F8(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function Ioe(e,t,n){return F8(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function h5(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var g5=e=>e===`reset`||e===`none`,_5=(e,t)=>t?e:Object.assign({},e),Loe=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:l5(n,!0),values:null},v5=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=d5(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&h5(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=m6(n.xAxisID,m5(e,`x`)),a=t.yAxisID=m6(n.yAxisID,m5(e,`y`)),o=t.rAxisID=m6(n.rAxisID,m5(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&$6(this._data,this),e._stacked&&h5(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(d6(t)){let e=this._cachedMeta;this._data=joe(t,e)}else if(n!==t){if(n){$6(n,this);let e=this._cachedMeta;h5(e),e._parsed=[]}t&&Object.isExtensible(t)&&Lae(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=d5(t.vScale,t),t.stack!==n.stack&&(r=!0,h5(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(p5(this,t._parsed),t._stacked=d5(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length?!0:n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=u6(r[e])?this.parseArrayData(n,r,e,t):d6(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]<c[o];for(l=0;l<t;++l)n._parsed[l+e]=u=d[l],s&&(i()&&(s=!1),c=u);n._sorted=s}a&&p5(this,d)}parsePrimitiveData(e,t,n,r){let{iScale:i,vScale:a}=e,o=i.axis,s=a.axis,c=i.getLabels(),l=i===a,u=Array(r),d,f,p;for(d=0,f=r;d<f;++d)p=d+n,u[d]={[o]:l||i.parse(c[p],p),[s]:a.parse(t[p],p)};return u}parseArrayData(e,t,n,r){let{xScale:i,yScale:a}=e,o=Array(r),s,c,l,u;for(s=0,c=r;s<c;++s)l=s+n,u=t[l],o[s]={x:i.parse(u[0],l),y:a.parse(u[1],l)};return o}parseObjectData(e,t,n,r){let{xScale:i,yScale:a}=e,{xAxisKey:o=`x`,yAxisKey:s=`y`}=this._parsing,c=Array(r),l,u,d,f;for(l=0,u=r;l<u;++l)d=l+n,f=t[d],c[l]={x:i.parse(T6(f,o),d),y:a.parse(T6(f,s),d)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){let r=this.chart,i=this._cachedMeta,a=t[e.axis
vendor: 10,768 bytes, line 2743
2743];return u5({keys:l5(r,!0),values:t._stacks[e.axis]._visualValues},a,i.index,{mode:n})}updateRangeFromParsed(e,t,n,r){let i=n[t.axis],a=i===null?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,a=u5(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,t){let n=this._cachedMeta,r=n._parsed,i=n._sorted&&e===n.iScale,a=r.length,o=this._getOtherScale(e),s=Loe(t,n,this.chart),c={min:1/0,max:-1/0},{min:l,max:u}=Noe(o),d,f;function p(){f=r[d];let t=f[o.axis];return!f6(f[e.axis])||l>t||u<t}for(d=0;d<a&&!(!p()&&(this.updateRangeFromParsed(c,e,f,s),i));++d);if(i){for(d=a-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r<i;++r)a=t[r][e.axis],f6(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(e){let t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?``+n.getLabelForValue(i[n.axis]):``,value:r?``+r.getLabelForValue(i[r.axis]):``}}_update(e){let t=this._cachedMeta;this.update(e||`default`),t._clip=Aoe(m6(this.options.clip,koe(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){let e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],i=t.chartArea,a=[],o=this._drawStart||0,s=this._drawCount||r.length-o,c=this.options.drawActiveElementsOnTop,l;for(n.dataset&&n.dataset.draw(e,i,o,s),l=o;l<o+s;++l){let t=r[l];t.hidden||(t.active&&c?a.push(t):t.draw(e,i))}for(l=0;l<a.length;++l)a[l].draw(e,i)}getStyle(e,t){let n=t?`active`:`default`;return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){let r=this.getDataset(),i;if(e>=0&&e<this._cachedMeta.data.length){let t=this._cachedMeta.data[e];i=t.$context||=Ioe(this.getContext(),e,t),i.parsed=this.getParsed(e),i.raw=r.data[e],i.index=i.dataIndex=e}else i=this.$context||=Foe(this.chart.getContext(),this.index),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!t,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t=`default`,n){let r=t===`active`,i=this._cachedDataOpts,a=e+`-`+t,o=i[a],s=this.enableOptionSharing&&D6(n);if(o)return _5(o,s);let c=this.chart.config,l=c.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,`hover`,e,``]:[e,``],d=c.getOptionScopes(this.getDataset(),l),f=Object.keys(y8.elements[e]),p=c.resolveNamedOptions(d,f,()=>this.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(_5(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new s5(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||g5(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){g5(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!g5(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,t,n=!0){let r=this._cachedMeta,i=r.data,a=e+t,o,s=e=>{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;o<a;++o)i[o]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(i,e,t,`reset`)}updateElements(e,t,n,r){}_removeElements(e,t){let n=this._cachedMeta;if(this._parsing){let r=n._parsed.splice(e,t);n._stacked&&h5(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){let e=arguments.length;this._sync([`_insertElements`,this.getDataset().data.length-e,e])}_onDataPop(){this._sync([`_removeElements`,this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync([`_removeElements`,0,1])}_onDataSplice(e,t){t&&this._sync([`_removeElements`,e,t]);let n=arguments.length-2;n&&this._sync([`_insertElements`,e,n])}_onDataUnshift(){this._sync([`_insertElements`,0,arguments.length])}};function Roe(e,t,n){let r=1,i=1,a=0,o=0;if(t<j6){let s=e,c=s+t,l=Math.cos(s),u=Math.sin(s),d=Math.cos(c),f=Math.sin(c),p=(e,t,r)=>q6(e,s,c,!0)?1:Math.max(t,t*n,r,r*n),m=(e,t,r)=>q6(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n),h=p(0,l,d),g=p(N6,u,f),_=m(A6,l,d),v=m(A6+N6,u,f);r=(h-_)/2,i=(g-v)/2,a=-(h+_)/2,o=-(g+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}var zoe=class extends v5{static id=`doughnut`;static defaults={datasetElementType:!1,dataElementType:`arc`,animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:`number`,properties:[`circumference`,`endAngle`,`innerRadius`,`outerRadius`,`startAngle`,`x`,`y`,`offset`,`borderWidth`,`spacing`]}},cutout:`50%`,rotation:0,circumference:360,radius:`100%`,spacing:0,indexAxis:`r`};static descriptors={_scriptable:e=>e!==`spacing`,_indexable:e=>e!==`spacing`&&!e.startsWith(`borderDash`)&&!e.startsWith(`hoverBorderDash`)};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){let t=e.data,{labels:{pointStyle:n,textAlign:r,color:i,useBorderRadius:a,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{let c=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:c.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(s),lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:c.borderWidth,strokeStyle:c.borderColor,textAlign:r,pointStyle:n,borderRadius:a&&(o||c.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let i=e=>+n[e];if(d6(n[e])){let{key:e=`value`}=this._parsing;i=t=>+T6(n[t],e)}let a,o;for(a=e,o=e+t;a<o;++a)r._parsed[a]=i(a)}}_getRotation(){return H6(this.options.rotation-90)}_getCircumference(){return H6(this.options.circumference)}_getRotationExtents(){let e=j6,t=-j6;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){let r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+a)}return{rotation:e,circumference:t-e}}update(e){let{chartArea:t}=this.chart,n=this._cachedMeta,r=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(t.width,t.height)-i)/2,0),o=Math.min(h6(this.options.cutout,a),1),s=this._getRingWeight(this.index),{circumference:c,rotation:l}=this._getRotationExtents(),{ratioX:u,ratioY:d,offsetX:f,offsetY:p}=Roe(l,c,o),m=(t.width-i)/u,h=(t.height-i)/d,g=Math.max(Math.min(m,h)/2,0),_=g6(this.options.radius,g),v=(_-Math.max(_*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*_,this.offsetY=p*_,n.total=this.calculateTotal(),this.outerRadius=_-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*s,0),this.updateElements(r,0,r.length,e)}_circumference(e,t){let n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||r._parsed[e]===null||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/j6)}updateElements(e,t,n,r){let i=r===`reset`,a=this.chart,o=a.chartArea,s=a.options.animation,c=(o.left+o.right)/2,l=(o.top+o.bottom)/2,u=i&&s.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:p,includeOptions:m}=this._getSharedOptions(t,r),h=this._getRotation(),g;for(g=0;g<t;++g)h+=this._circumference(g,i);for(g=t;g<t+n;++g){let t=this._circumference(g,i),n=e[g],a={x:c+this.offsetX,y:l+this.offsetY,startAngle:h,endAngle:h+t,circumference:t,outerRadius:f,innerRadius:d};m&&(a.options=p||this.resolveDataElementOptions(g,n.active?`active`:r)),h+=t,this.updateElement(n,g,a,r)}}calculateTotal(){let e=this._cachedMeta,t=e.data,n=0,r;for(r=0;r<t.length;r++){let i=e._parsed[r];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(r)&&!t[r].hidden&&(n+=Math.abs(i))}return n}calculateCircumference(e){let t=this._cachedMeta.total;return t>0&&!isNaN(e)?Math.abs(e)/t*j6:0}getLabelAndValue(e){let t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=f8(t._parsed[e],n.options.locale);return{label:r[e]||``,value:i}}getMaxBorderWidth(e){let t=0,n=this.chart,r,i,a,o,s;if(!e){for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){a=n.getDatasetMeta(r),e=a.data,o=a.controller;break}}if(!e)return 0;for(r=0,i=e.length;r<i;++r)s=o.resolveDataElementOptions(r),s.borderAlign!==`inner`&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,r=e.length;n<r;++n){let e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(m6(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};function y5(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var Boe={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return y5()}parse(){return y5()}format(){return y5()}add(){return y5()}diff(){return y5()}startOf(){return y5()}endOf(){return y5()}}};
vendor: 4,188 bytes, line 2743
2743function Voe(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?Fae:Z6;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!l6(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!l6(e[t.axis]));r.hi+=Math.max(0,o)}return r}else if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function b5(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e<n;++e){let{index:n,data:s}=a[e],{lo:c,hi:l}=Voe(a[e],t,o,i);for(let e=c;e<=l;++e){let t=s[e];t.skip||r(t,n,e)}}}function Hoe(e){let t=e.indexOf(`x`)!==-1,n=e.indexOf(`y`)!==-1;return function(e,r){let i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(i**2+a**2)}}function x5(e,t,n,r,i){let a=[];return!i&&!e.isPointInArea(t)||b5(e,n,t,function(n,o,s){!i&&!T8(n,e.chartArea,0)||n.inRange(t.x,t.y,r)&&a.push({element:n,datasetIndex:o,index:s})},!0),a}function Uoe(e,t,n,r){let i=[];function a(e,n,a){let{startAngle:o,endAngle:s}=e.getProps([`startAngle`,`endAngle`],r),{angle:c}=G6(e,{x:t.x,y:t.y});q6(c,o,s)&&i.push({element:e,datasetIndex:n,index:a})}return b5(e,n,t,a),i}function Woe(e,t,n,r,i,a){let o=[],s=Hoe(n),c=1/0;function l(n,l,u){let d=n.inRange(t.x,t.y,i);if(r&&!d)return;let f=n.getCenterPoint(i);if(!(a||e.isPointInArea(f))&&!d)return;let p=s(t,f);p<c?(o=[{element:n,datasetIndex:l,index:u}],c=p):p===c&&o.push({element:n,datasetIndex:l,index:u})}return b5(e,n,t,l),o}function S5(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n===`r`&&!r?Uoe(e,t,n,i):Woe(e,t,n,r,i,a)}function C5(e,t,n,r,i){let a=[],o=n===`x`?`inXRange`:`inYRange`,s=!1;return b5(e,n,t,(e,r,c)=>{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Goe={evaluateInteractionItems:b5,modes:{index(e,t,n,r){let i=Z8(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?x5(e,i,a,r,o):S5(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=Z8(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?x5(e,i,a,r,o):S5(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point(e,t,n,r){return x5(e,Z8(t,e),n.axis||`xy`,r,n.includeInvisible||!1)},nearest(e,t,n,r){let i=Z8(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1;return S5(e,i,a,n.intersect,r,o)},x(e,t,n,r){return C5(e,Z8(t,e),`x`,n.intersect,r)},y(e,t,n,r){return C5(e,Z8(t,e),`y`,n.intersect,r)}}},w5=[`left`,`top`,`right`,`bottom`];function T5(e,t){return e.filter(e=>e.pos===t)}function E5(e,t){return e.filter(e=>w5.indexOf(e.pos)===-1&&e.box.axis===t)}function D5(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function Koe(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function qoe(e){let t={};for(let n of e){let{stack:e,pos:r,stackWeight:i}=n;if(!e||!w5.includes(r))continue;let a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return t}function Joe(e,t){let n=qoe(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t,a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];let{fullSize:o}=s.box,c=n[s.stack],l=c&&s.stackWeight/c.weight;s.horizontal?(s.width=l?l*r:o&&t.availableWidth,s.height=i):(s.width=r,s.height=l?l*i:o&&t.availableHeight)}return n}function Yoe(e){let t=Koe(e),n=D5(t.filter(e=>e.box.fullSize),!0),r=D5(T5(t,`left`),!0),i=D5(T5(t,`right`)),a=D5(T5(t,`top`),!0),o=D5(T5(t,`bottom`)),s=E5(t,`x`),c=E5(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:T5(t,`chartArea`),vertical:r.concat(i).c
vendor: 5,867 bytes, line 2743
2743oncat(c),horizontal:a.concat(o).concat(s)}}function O5(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function k5(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Xoe(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!d6(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&k5(o,a.getPadding());let s=Math.max(0,t.outerWidth-O5(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-O5(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function Zoe(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function Qoe(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function A5(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a<o;++a){s=e[a],c=s.box,c.update(s.width||t.w,s.height||t.h,Qoe(s.horizontal,t));let{same:o,other:d}=Xoe(t,n,s,r);l|=o&&i.length,u||=d,c.fullSize||i.push(s)}return l&&A5(i,t,n,r)||u}function j5(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function M5(e,t,n,r){let i=n.padding,{x:a,y:o}=t;for(let s of e){let e=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},l=s.stackWeight/c.weight||1;if(s.horizontal){let r=t.w*l,a=c.size||e.height;D6(c.start)&&(o=c.start),e.fullSize?j5(e,i.left,o,n.outerWidth-i.right-i.left,a):j5(e,t.left+c.placed,o,r,a),c.start=o,c.placed+=r,o=e.bottom}else{let r=t.h*l,o=c.size||e.width;D6(c.start)&&(a=c.start),e.fullSize?j5(e,a,i.top,o,n.outerHeight-i.bottom-i.top):j5(e,a,t.top+c.placed,o,r),c.start=a,c.placed+=r,a=e.right}}t.x=a,t.y=o}var N5={addBox(e,t){e.boxes||=[],t.fullSize=t.fullSize||!1,t.position=t.position||`top`,t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){let n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;let i=M8(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=Yoe(e.boxes),c=s.vertical,l=s.horizontal;v6(e.boxes,e=>{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);k5(f,M8(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=Joe(c.concat(l),d);A5(s.fullSize,p,d,m),A5(c,p,d,m),A5(l,p,d,m)&&A5(c,p,d,m),Zoe(p),M5(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,M5(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},v6(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},P5=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},$oe=class extends P5{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},F5=`$chartjs`,ese={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},I5=e=>e===null||e===``;function tse(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[F5]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,I5(i)){let t=e5(e,`width`);t!==void 0&&(e.width=t)}if(I5(r))if(e.style.height===``)e.height=e.width/(t||2);else{let t=e5(e,`height`);t!==void 0&&(e.height=t)}return e}var L5=boe?{passive:!0}:!1;function nse(e,t,n){e&&e.addEventListener(t,n,L5)}function rse(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,L5)}function ise(e,t){let n=ese[e.type]||e.type,{x:r,y:i}=Z8(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function R5(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function ase(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=R5(n.addedNodes,r),t&&=!R5(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function ose(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=R5(n.removedNodes,r),t&&=!R5(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var z5=new Map,B5=0;function V5(){let e=window.devicePixelRatio;e!==B5&&(B5=e,z5.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function sse(e,t){z5.size||window.addEventListener(`resize`,V5),z5.set(e,t)}function cse(e){z5.delete(e),z5.size||window.removeEventListener(`resize`,V5)}function lse(e,t,n){let r=e.canvas,i=r&&q8(r);if(!i)return;let a=t8((e,t)=>{let r=i.clientWidth;n(e,t),r<i.clientWidth&&n()},window),o=new ResizeObserver(e=>{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;n===0&&r===0||a(n,r)});return o.observe(i),sse(e,a),o}function H5(e,t,n){n&&n.disconnect(),t===`resize`&&cse(e)}function use(e,t,n){let r=e.canvas,i=t8(t=>{e.ctx!==null&&n(ise(t,e))},e);return nse(r,t,i),i}var dse=class extends P5{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(tse(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[F5])return!1;let n=t[F5].initial;
vendor: 39,193 bytes, line 2743
2743[`height`,`width`].forEach(e=>{let r=n[e];l6(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[F5],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:ase,detach:ose,resize:lse}[t]||use)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:H5,detach:H5,resize:H5}[t]||rse)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return yoe(e,t,n,r)}isAttached(e){let t=e&&q8(e);return!!(t&&t.isConnected)}};function fse(e){return!K8()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?$oe:dse}var U5=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return B6(this.x)&&B6(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function pse(e,t){let n=e.options.ticks,r=mse(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?gse(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return _se(t,l,a,o/i),l;let u=hse(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(W5(t,l,u,l6(r)?0:s-r,s),e=0,n=o-1;e<n;e++)W5(t,l,u,a[e],a[e+1]);return W5(t,l,u,c,l6(r)?t.length:c+r),l}return W5(t,l,u),l}function mse(e){let t=e.options.offset,n=e._tickSize(),r=e._length/n+ +!t,i=e._maxLength/n;return Math.floor(Math.min(r,i))}function hse(e,t,n){let r=vse(e),i=t.length/n;if(!r)return Math.max(i,1);let a=Aae(r);for(let e=0,t=a.length-1;e<t;e++){let t=a[e];if(t>i)return t}return Math.max(i,1)}function gse(e){let t=[],n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function _se(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function W5(e,t,n,r,i){let a=m6(r,0),o=Math.min(m6(i,e.length),e.length),s=0,c,l,u;for(n=Math.ceil(n),i&&(c=i-r,n=c/Math.floor(c/n)),u=a;u<0;)s++,u=Math.round(a+s*n);for(l=Math.max(a,0);l<o;l++)l===u&&(t.push(e[l]),s++,u=Math.round(a+s*n))}function vse(e){let t=e.length,n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}var yse=e=>e===`left`?`right`:e===`right`?`left`:e,G5=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,K5=(e,t)=>Math.min(t||e,e);function q5(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function bse(e,t,n){let r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6,c=e.getPixelForTick(i),l;if(!(n&&(l=r===1?Math.max(c-a,o-c):t===0?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(i-1))/2,c+=i<t?l:-l,c<a-s||c>o+s)))return c}function xse(e,t){v6(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}})}function J5(e){return e.drawTicks?e.tickLength:0}function Y5(e,t){if(!e.display)return 0;let n=N8(e.font,t),r=M8(e.padding);return(u6(e.text)?e.text.length:1)*n.lineHeight+r.height}function Sse(e,t){return F8(e,{scale:t,type:`scale`})}function Cse(e,t,n){return F8(e,{tick:n,index:t,type:`tick`})}function wse(e,t,n){let r=n8(e);return(n&&t!==`right`||!n&&t===`right`)&&(r=yse(r)),r}function Tse(e,t,n,r){let{top:i,left:a,bottom:o,right:s,chart:c}=e,{chartArea:l,scales:u}=c,d=0,f,p,m,h=o-i,g=s-a;if(e.isHorizontal()){if(p=r8(r,a,s),d6(n)){let e=Object.keys(n)[0],r=n[e];m=u[e].getPixelForValue(r)+h-t}else m=n===`center`?(l.bottom+l.top)/2+h-t:G5(e,n,t);f=s-a}else{if(d6(n)){let e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p=n===`center`?(l.left+l.right)/2-g+t:G5(e,n,t);m=r8(r,o,i),d=n===`left`?-N6:N6}return{titleX:p,titleY:m,maxWidth:f,rotation:d}}var X5=class e extends U5{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=p6(e,1/0),t=p6(t,-1/0),n=p6(n,1/0),r=p6(r,-1/0),{min:p6(e,n),max:p6(t,r),minDefined:f6(e),maxDefined:f6(t)}}getMinMax(e){let{min:t,max:n,minDefined:r,maxDefined:i}=this.getUserBounds(),a;if(r&&i)return{min:t,max:n};let o=this.getMatchingVisibleMetas();for(let s=0,c=o.length;s<c;++s)a=o[s].controller.getMinMax(this,e),r||(t=Math.min(t,a.min)),i||(n=Math.max(n,a.max));return t=i&&t>n?n:t,n=r&&t>n?t:n,{min:p6(t,p6(n,t)),max:p6(n,p6(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){_6(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ioe(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o<this.ticks.length;this._convertTicksToLabels(s?q5(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source===`auto`)&&(this.ticks=pse(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,t,n;this.isHorizontal()?(t=this.left,n=this.right):(t=this.top,n=this.bottom,e=!e),this._startPixel=t,this._endPixel=n,this._reversePixels=e,this._length=n-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){_6(this.options.afterUpdate,[this])}beforeSetDimensions(){_6(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){_6(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),_6(this.options[e],[this])}beforeDataLimits(){this._callHooks(`beforeDataLimits`)}determineDataLimits(){}afterDataLimits(){this._callHooks(`afterDataLimits`)}beforeBuildTicks(){this._callHooks(`beforeBuildTicks`)}buildTicks(){return[]}afterBuildTicks(){this._callHooks(`afterBuildTicks`)}beforeTickToLabelConversion(){_6(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){let t=this.options.ticks,n,r,i;for(n=0,r=e.length;n<r;n++)i=e[n],i.label=_6(t.callback,[i.value,n,e],this)}afterTickToLabelConversion(){_6(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){_6(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let e=this.options,t=e.ticks,n=K5(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,i=t.maxRotation,a=r,o,s,c;if(!this._isVisible()||!t.display||r>=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=J6(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-J5(e.grid)-t.padding-Y5(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=U6(Math.min(Math.asin(J6((l.highest.height+6)/o,-1,1)),Math.asin(J6(s/c,-1,1))-Math.asin(J6(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){_6(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){_6(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=Y5(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=J5(i)+a):(e.height=this.maxHeight,e.width=J5(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=H6(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){_6(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t<n;t++)l6(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){let t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=q5(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){let{ctx:r,_longestTextCache:i}=this,a=[],o=[],s=Math.floor(t/K5(t,n)),c=0,l=0,u,d,f,p,m,h,g,_,v,y,b;for(u=0;u<t;u+=s){if(p=e[u].label,m=this._resolveTickFontOptions(u),r.font=h=m.string,g=i[h]=i[h]||{data:{},gc:[]},_=m.lineHeight,v=y=0,!l6(p)&&!u6(p))v=b8(r,g.data,g.gc,v,p),y=_;else if(u6(p))for(d=0,f=p.length;d<f;++d)b=p[d],!l6(b)&&!u6(b)&&(v=b8(r,g.data,g.gc,v,b),y+=_);a.push(v),o.push(y),c=Math.max(v,c),l=Math.max(y,l)}xse(i,t);let x=a.indexOf(c),S=o.indexOf(l),C=e=>({width:a[e]||0,height:o[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return Pae(this._alignToPixels?x8(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&e<t.length){let n=t[e];return n.$context||=Cse(this.getContext(),e,n)}return this.$context||=Sse(this.chart.getContext(),this)}_tickSize(){let e=this.options.ticks,t=H6(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}_isVisible(){let e=this.options.display;return e===`auto`?this.getMatchingVisibleMetas().length>0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=J5(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return x8(n,e,p)},g,_,v,y,b,x,S,C,w,T,E,D;if(a===`top`)g=h(this.bottom),x=this.bottom-u,C=g-m,T=h(e.top)+m,D=e.bottom;else if(a===`bottom`)g=h(this.top),T=e.top,D=h(e.bottom)-m,x=g+m,C=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,w=h(e.left)+m,E=e.right;else if(a===`right`)g=h(this.left),w=e.left,E=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(d6(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}T=e.top,D=e.bottom,x=g+m,C=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(d6(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,w=e.left,E=e.right}let O=m6(r.ticks.maxTicksLimit,l),k=Math.max(1,Math.ceil(l/O));for(_=0;_<l;_+=k){let e=this.getContext(_),t=i.setContext(e),r=o.setContext(e),a=t.lineWidth,l=t.color,u=r.dash||[],f=r.dashOffset,p=t.tickWidth,m=t.tickColor,h=t.tickBorderDash||[],g=t.tickBorderDashOffset;v=bse(this,_,s),v!==void 0&&(y=x8(n,v,a),c?b=S=w=E=y:x=C=T=D=y,d.push({tx1:b,ty1:x,tx2:S,ty2:C,x1:w,y1:T,x2:E,y2:D,width:a,color:l,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:m,tickBorderDash:h,tickBorderDashOffset:g}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(e){let t=this.axis,n=this.options,{position:r,ticks:i}=n,a=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:c,padding:l,mirror:u}=i,d=J5(n.grid),f=d+l,p=u?-l:f,m=-H6(this.labelRotation),h=[],g,_,v,y,b,x,S,C,w,T,E,D,O=`middle`;if(r===`top`)x=this.bottom-p,S=this._getXAxisLabelAlignment();else if(r===`bottom`)x=this.top+p,S=this._getXAxisLabelAlignment();else if(r===`left`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(r===`right`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(t===`x`){if(r===`center`)x=(e.top+e.bottom)/2+f;else if(d6(r)){let e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)+f}S=this._getXAxisLabelAlignment()}else if(t===`y`){if(r===`center`)b=(e.left+e.right)/2-f;else if(d6(r)){let e=Object.keys(r)[0],t=r[e];b=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(d).textAlign}t===`y`&&(s===`start`?O=`top`:s===`end`&&(O=`bottom`));let k=this._getLabelSizes();for(g=0,_=o.length;g<_;++g){v=o[g],y=v.label;let e=i.setContext(this.getContext(g));C=this.getPixelForTick(g)+i.labelOffset,w=this._resolveTickFontOptions(g),T=w.lineHeight,E=u6(y)?y.length:1;let t=E/2,n=e.color,s=e.textStrokeColor,l=e.textStrokeWidth,d=S;a?(b=C,S===`inner`&&(d=g===_-1?this.options.reverse?`left`:`right`:g===0?this.options.reverse?`right`:`left`:`center`),D=r===`top`?c===`near`||m!==0?-E*T+T/2:c===`center`?-k.highest.height/2-t*T+T:-k.highest.height+T/2:c===`near`||m!==0?T/2:c===`center`?k.highest.height/2-t*T:k.highest.height-E*T,u&&(D*=-1),m!==0&&!e.showLabelBackdrop&&(b+=T/2*Math.sin(m))):(x=C,D=(1-E)*T/2);let f;if(e.showLabelBackdrop){let t=M8(e.backdropPadding),n=k.heights[g],r=k.widths[g],i=D-t.top,a=0-t.left;switch(O){case`middle`:i-=n/2;break;case`bottom`:i-=n;break}switch(S){case`center`:a-=r/2;break;case`right`:a-=r;break;case`inner`:g===_-1?a-=r:g>0&&(a-=r/2);break}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:w,textOffset:D,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:O,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-H6(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{!r.width||!r.color||(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i<a;++i){let e=r[i];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){let{chart:e,ctx:t,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),a=n.display?i.width:0;if(!a)return;let o=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue,c,l,u,d;this.isHorizontal()?(c=x8(e,this.left,a)-a/2,l=x8(e,this.right,o)+o/2,u=d=s):(u=x8(e,this.top,a)-a/2,d=x8(e,this.bottom,o)+o/2,c=l=s),t.save(),t.lineWidth=i.width,t.strokeStyle=i.color,t.beginPath(),t.moveTo(c,u),t.lineTo(l,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;let t=this.ctx,n=this._computeLabelArea();n&&E8(t,n);let r=this.getLabelItems(e);for(let e of r){let n=e.options,r=e.font,i=e.label,a=e.textOffset;O8(t,i,0,a,r,n)}n&&D8(t)}drawTitle(){let{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;let i=N8(n.font),a=M8(n.padding),o=n.align,s=i.lineHeight/2;t===`bottom`||t===`center`||d6(t)?(s+=a.bottom,u6(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=a.top;let{titleX:c,titleY:l,maxWidth:u,rotation:d}=Tse(this,s,t,o);O8(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:d,textAlign:wse(o,t,r),textBaseline:`middle`,translation:[c,l]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){let t=this.options,n=t.ticks&&t.ticks.z||0,r=m6(t.grid&&t.grid.z,-1),i=m6(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==e.prototype.draw?[{z:n,draw:e=>{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i<a;++i){let a=t[i];a[n]===this.id&&(!e||a.type===e)&&r.push(a)}return r}_resolveTickFontOptions(e){return N8(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){let e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}},Z5=class{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){let t=Object.getPrototypeOf(e),n;Ose(t)&&(n=this.register(t));let r=this.items,i=e.id,a=this.scope+`.`+i;if(!i)throw Error(`class does not have id: `+e);return i in r?a:(r[i]=e,Ese(e,a,n),this.override&&y8.override(e.id,e.overrides),a)}get(e){return this.items[e]}unregister(e){let t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in y8[r]&&(delete y8[r][n],this.override&&delete h8[n])}};function Ese(e,t,n){let r=S6(Object.create(null),[n?y8.get(n):{},y8.get(t),e.defaults]);y8.set(t,r),e.defaultRoutes&&Dse(t,e.defaultRoutes),e.descriptors&&y8.describe(t,e.descriptors)}function Dse(e,t){Object.keys(t).forEach(n=>{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);y8.route(a,i,c,s)})}function Ose(e){return`id`in e&&`defaults`in e}var Q5=new class{constructor(){this.controllers=new Z5(v5,`datasets`,!0),this.elements=new Z5(U5,`elements`),this.plugins=new Z5(Object,`plugins`),this.scales=new Z5(X5,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):v6(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=E6(e);_6(n[`before`+r],[],n),t[e](n),_6(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){let n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){let r=t.get(e);if(r===void 0)throw Error(`"`+e+`" is not a registered `+n+`.`);return r}},kse=class{constructor(){this._init=void 0}notify(e,t,n,r){if(t===`beforeInit`&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,`install`)),this._init===void 0)return;let i=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(i,e,t,n);return t===`afterDestroy`&&(this._notify(i,e,`stop`),this._notify(this._init,e,`uninstall`),this._init=void 0),a}_notify(e,t,n,r){r||={};for(let i of e){let e=i.plugin,a=e[n];if(_6(a,[t,r,i.options],e)===!1&&r.cancelable)return!1}return!0}invalidate(){l6(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;let t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){let n=e&&e.config,r=m6(n.options&&n.options.plugins,{}),i=Ase(n);return r===!1&&!t?[]:Mse(e,i,r,t)}_notifyStateChanges(e){let t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function Ase(e){let t={},n=[],r=Object.keys(Q5.plugins.items);for(let e=0;e<r.length;e++)n.push(Q5.getPlugin(r[e]));let i=e.plugins||[];for(let e=0;e<i.length;e++){let r=i[e];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function jse(e,t){return!t&&e===!1?null:e===!0?{}:e}function Mse(e,{plugins:t,localIds:n},r,i){let a=[],o=e.getContext();for(let s of t){let t=s.id,c=jse(r[t],i);c!==null&&a.push({plugin:s,options:Nse(e.config,{plugin:s,local:n[t]},c,o)})}return a}function Nse(e,{plugin:t,local:n},r,i){let a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[``],{scriptable:!1,indexable:!1,allKeys:!0})}function $5(e,t){let n=y8.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||`x`}function Pse(e,t){let n=e;return e===`_index_`?n=t:e===`_value_`&&(n=t===`x`?`y`:`x`),n}function Fse(e,t){return e===t?`_index_`:`_value_`}function e7(e){if(e===`x`||e===`y`||e===`r`)return e}function Ise(e){if(e===`top`||e===`bottom`)return`x`;if(e===`left`||e===`right`)return`y`}function t7(e,...t){if(e7(e))return e;for(let n of t){let t=n.axis||Ise(n.position)||e.length>1&&e7(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function n7(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function Lse(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return n7(e,`x`,n[0])||n7(e,`y`,n[0])}return{}}function Rse(e,t){let n=h8[e.type]||{scales:{}},r=t.scales||{},i=$5(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!d6(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=t7(t,o,Lse(t,e),y8.scales[o.type]),c=Fse(s,i),l=n.scales||{};a[t]=C6(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||$5(i,t),s=(h8[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=Pse(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),C6(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];C6(t,[y8.scales[t.type],y8.scale])}),a}function r7(e){let t=e.options||={};t.plugins=m6(t.plugins,{}),t.scales=Rse(e,t)}function i7(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function zse(e){return e||={},e.data=i7(e.data),r7(e),e}var a7=new Map,o7=new Set;function s7(e,t){let n=a7.get(e);return n||(n=t(),a7.set(e,n),o7.add(n)),n}var c7=(e,t,n)=>{let r=T6(t,n);r!==void 0&&e.add(r)},Bse=class{constructor(e){this._config=zse(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=i7(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),r7(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return s7(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return s7(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return s7(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return s7(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>c7(s,e,t))),t.forEach(e=>c7(s,r,e)),t.forEach(e=>c7(s,h8[i]||{},e)),t.forEach(e=>c7(s,y8,e)),t.forEach(e=>c7(s,g8,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),o7.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,h8[t]||{},y8.datasets[t]||{},{type:t},y8,g8]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=l7(this._resolverCache,e,r),s=a;if(Hse(a,t)){i.$shared=!1,n=O6(n)?n():n;let t=this.createResolver(e,n,o);s=L8(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=l7(this._resolverCache,e,n);return d6(t)?L8(i,t,void 0,r):i}};function l7(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:I8(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var Vse=e=>d6(e)&&Object.getOwnPropertyNames(e).some(t=>O6(e[t]));function Hse(e,t){let{isScriptable:n,isIndexable:r}=R8(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(O6(o)||Vse(o))||a&&u6(o))return!0}return!1}var Use=`4.5.1`,Wse=[`top`,`bottom`,`left`,`right`,`chartArea`];function u7(e,t){return e===`top`||e===`bottom`||Wse.indexOf(e)===-1&&t===`x`}function d7(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function f7(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),_6(n&&n.onComplete,[e],t)}function Gse(e){let t=e.chart,n=t.options.animation;_6(n&&n.onProgress,[e],t)}function p7(e){return K8()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var m7={},h7=e=>{let t=p7(e);return Object.values(m7).filter(e=>e.canvas===t).pop()};function Kse(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function qse(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var g7=class{static defaults=y8;static instances=m7;static overrides=h8;static registry=Q5;static version=Use;static getChart=h7;static register(...e){Q5.add(...e),_7()}static unregister(...e){Q5.remove(...e),_7()}constructor(e,t){let n=this.config=new Bse(t),r=p7(e),i=h7(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(fse(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;if(this.id=c6(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new kse,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zae(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],m7[this.id]=this,!o||!s){console.error(`Failed to create chart: can't acquire context from the given item`);return}a5.listen(this,`complete`,f7),a5.listen(this,`progress`,Gse),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return l6(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Q5}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():$8(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return S8(this.canvas,this.ctx),this}stop(){return a5.stop(this),this}resize(e,t){a5.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,$8(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),_6(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){v6(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=t7(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),v6(i,t=>{let i=t.options,a=i.id,o=t7(a,i),s=m6(i.type,t.dtype);(i.position===void 0||u7(i.position,o)!==u7(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(Q5.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),v6(r,(e,t)=>{e||delete n[t]}),v6(n,e=>{N5.configure(this,e,e.options),N5.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(d7(`order`,`index`))}_removeUnreferencedMetasets(){let{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){let r=t[n],i=this.getDatasetMeta(n),a=r.type||this.config.type;if(i.type&&i.type!==a&&(this._destroyDatasetMeta(n),i=this.getDatasetMeta(n)),i.type=a,i.indexAxis=r.indexAxis||$5(a,this.options),i.order=r.order||0,i.index=n,i.label=``+r.label,i.visible=this.isDatasetVisible(n),i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{let t=Q5.getController(a),{datasetElementType:r,dataElementType:o}=y8.datasets[a];Object.assign(t,{dataElementType:Q5.getElement(o),datasetElementType:r&&Q5.getElement(r)}),i.controller=new t(this,n),e.push(i.controller)}}return this._updateMetasets(),e}_resetElements(){v6(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e<t;e++){let{controller:t}=this.getDatasetMeta(e),n=!r&&i.indexOf(t)===-1;t.buildOrUpdateElements(n),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||v6(i,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(d7(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){v6(this.scales,e=>{N5.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!k6(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)Kse(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;e<t;e++)if(!k6(r,n(e)))return;return Array.from(r).map(e=>e.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;N5.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],v6(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,O6(e)?e({datasetIndex:t}):e);this.notifyPlugins(`afterDatasetsUpdate`,{mode:e})}}_updateDataset(e,t){let n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};this.notifyPlugins(`beforeDatasetUpdate`,r)!==!1&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins(`afterDatasetUpdate`,r))}render(){this.notifyPlugins(`beforeRender`,{cancelable:!0})!==!1&&(a5.has(this)?this.attached&&!a5.running(this)&&a5.start(this):(this.draw(),f7({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){let{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins(`beforeDraw`,{cancelable:!0})===!1)return;let t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins(`afterDraw`)}_getSortedDatasetMetas(e){let t=this._sortedMetasets,n=[],r,i;for(r=0,i=t.length;r<i;++r){let i=t[r];(!e||i.visible)&&n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins(`beforeDatasetsDraw`,{cancelable:!0})===!1)return;let e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=woe(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&E8(t,r),e.controller.draw(),r&&D8(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return T8(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Goe.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=F8(null,{chart:this,type:`chart`})}
vendor: 7,960 bytes, line 2743
2743getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);D6(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),a5.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins(`beforeDestroy`);let{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),S8(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete m7[this.id],this.notifyPlugins(`afterDestroy`)}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};v6(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){v6(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},v6(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o<s;++o){a=e[o];let t=a&&this.getDatasetMeta(a.datasetIndex).controller;t&&t[r+`HoverStyle`](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let t=this._active||[],n=e.map(({datasetIndex:e,index:t})=>{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});y6(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=Oae(e),c=qse(e,this._lastEvent,n,s);n&&(this._lastEvent=null,_6(i.onHover,[e,o,this],this),s&&_6(i.onClick,[e,o,this],this));let l=!y6(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function _7(){return v6(g7.instances,e=>e._plugins.invalidate())}function Jse(e,t,n){let{startAngle:r,x:i,y:a,outerRadius:o,innerRadius:s,options:c}=t,{borderWidth:l,borderJoinStyle:u}=c,d=Math.min(l/o,K6(r-n));if(e.beginPath(),e.arc(i,a,o-l/2,r+d/2,n-d/2),s>0){let t=Math.min(l/s,K6(r-n));e.arc(i,a,s+l/2,n-t/2,r+t/2,!0)}else{let t=Math.min(l/2,o*K6(r-n));if(u===`round`)e.arc(i,a,t,n-A6/2,r+A6/2,!0);else if(u===`bevel`){let o=2*t*t,s=-o*Math.cos(n+A6/2)+i,c=-o*Math.sin(n+A6/2)+a,l=o*Math.cos(r+A6/2)+i,u=o*Math.sin(r+A6/2)+a;e.lineTo(s,c),e.lineTo(l,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip(`evenodd`)}function Yse(e,t,n){let{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:c}=t,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+N6,r-N6),e.closePath(),e.clip()}function Xse(e){return A8(e,[`outerStart`,`outerEnd`,`innerStart`,`innerEnd`])}function Zse(e,t,n,r){let i=Xse(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=e=>{let t=(n-Math.min(a,e))*r/2;return J6(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:J6(i.innerStart,0,o),innerEnd:J6(i.innerEnd,0,o)}}function v7(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function y7(e,t,n,r,i,a){let{x:o,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-l,0),f=u>0?u+r+n+l:0,p=0,m=i-c;if(r){let e=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(m-(e===0?m:m*e/(e+r)))/2}let h=(m-Math.max(.001,m*d-n/A6)/d)/2,g=c+h+p,_=i-h-p,{outerStart:v,outerEnd:y,innerStart:b,innerEnd:x}=Zse(t,f,d,_-g),S=d-v,C=d-y,w=g+v/S,T=_-y/C,E=f+b,D=f+x,O=g+b/E,k=_-x/D;if(e.beginPath(),a){let t=(w+T)/2;if(e.arc(o,s,d,w,t),e.arc(o,s,d,t,T),y>0){let t=v7(C,T,o,s);e.arc(t.x,t.y,y,T,_+N6)}let n=v7(D,_,o,s);if(e.lineTo(n.x,n.y),x>0){let t=v7(D,k,o,s);e.arc(t.x,t.y,x,_+N6,k+Math.PI)}let r=(_-x/f+(g+b/f))/2;if(e.arc(o,s,f,_-x/f,r,!0),e.arc(o,s,f,r,g+b/f,!0),b>0){let t=v7(E,O,o,s);e.arc(t.x,t.y,b,O+Math.PI,g-N6)}let i=v7(S,g,o,s);if(e.lineTo(i.x,i.y),v>0){let t=v7(S,w,o,s);e.arc(t.x,t.y,v,g-N6,w)}}else{e.moveTo(o,s);let t=Math.cos(w)*d+o,n=Math.sin(w)*d+s;e.lineTo(t,n);let r=Math.cos(T)*d+o,i=Math.sin(T)*d+s;e.lineTo(r,i)}e.closePath()}function Qse(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s}=t,c=t.endAngle;if(a){y7(e,t,n,r,c,i);for(let t=0;t<a;++t)e.fill();isNaN(s)||(c=o+(s%j6||j6))}return y7(e,t,n,r,c,i),e.fill(),c}function $se(e,t,n,r,i){let{fullCircles:a,startAngle:o,circumference:s,options:c}=t,{borderWidth:l,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:p}=c,m=c.borderAlign===`inner`;if(!l)return;e.setLineDash(d||[]),e.lineDashOffset=f,m?(e.lineWidth=l*2,e.lineJoin=u||`round`):(e.lineWidth=l,e.lineJoin=u||`bevel`);let h=t.endAngle;if(a){y7(e,t,n,r,h,i);for(let t=0;t<a;++t)e.stroke();isNaN(s)||(h=o+(s%j6||j6))}m&&Yse(e,t,h),c.selfJoin&&h-o>=A6&&p===0&&u!==`miter`&&Jse(e,t,h),a||(y7(e,t,n,r,h,i),e.stroke())}var b7=class extends U5{static id=`arc`;static defaults={borderAlign:`center`,borderColor:`#fff`,borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:`backgroundColor`};static descriptors={_scriptable:!0,_indexable:e=>e!==`borderDash`};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){let{angle:r,distance:i}=G6(this.getProps([`x`,`y`],n),{x:e,y:t}),{startAngle:a,endAngle:o,innerRadius:s,outerRadius:c,circumference:l}=this.getProps([`startAngle`,`endAngle`,`innerRadius`,`outerRadius`,`
2743circumference`],n),u=(this.options.spacing+this.options.borderWidth)/2,d=m6(l,o-a),f=q6(r,a,o)&&a!==o,p=d>=j6||f,m=Y6(i,s+u,c+u);return p&&m}getCenterPoint(e){let{x:t,y:n,startAngle:r,endAngle:i,innerRadius:a,outerRadius:o}=this.getProps([`x`,`y`,`startAngle`,`endAngle`,`innerRadius`,`outerRadius`],e),{offset:s,spacing:c}=this.options,l=(r+i)/2,u=(a+o+c+s)/2;return{x:t+Math.cos(l)*u,y:n+Math.sin(l)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){let{options:t,circumference:n}=this,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin=t.borderAlign===`inner`?.33:0,this.fullCircles=n>j6?Math.floor(n/j6):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();let o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);let s=r*(1-Math.sin(Math.min(A6,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,Qse(e,this,s,i,a),$se(e,this,s,i,a),e.restore()}},x7=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},ece=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,S7=class extends U5{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=_6(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=N8(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=x7(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=tce(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=t5(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=r8(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=r8(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=r8(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=r8(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;E8(e,this),this._draw(),D8(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=y8.color,s=t5(e.rtl,this.left,this.width),c=N8(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=x7(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;
vendor: 5,007 bytes, line 2743
2743r.save();let i=m6(n.lineWidth,1);if(r.fillStyle=m6(n.fillStyle,o),r.lineCap=m6(n.lineCap,`butt`),r.lineDashOffset=m6(n.lineDashOffset,0),r.lineJoin=m6(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=m6(n.strokeStyle,o),r.setLineDash(m6(n.lineDash,[])),a.usePointStyle)w8(r,{radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},s.xPlus(e,p/2),t+d,a.pointStyleWidth&&p);else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=j8(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?k8(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){O8(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:r8(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:r8(i,this.top+y+l,this.bottom-t[0].height),line:0},n5(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,C=f.y;if(s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(C=f.y+=b,f.line++,S=f.x=r8(i,this.left+l,this.right-n[f.line])):u>0&&C+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,C=f.y=r8(i,this.top+y+l,this.bottom-t[f.line].height)),g(s.x(S),C,o),S=Bae(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),C,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=C7(o,e)+l}else f.y+=b}),r5(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=N8(t.font),r=M8(t.padding);if(!t.display)return;let i=t5(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=r8(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+r8(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=r8(o,u,u+d);a.textAlign=i.textAlign(n8(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,O8(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=N8(e.font),n=M8(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(Y6(e,this.left,this.right)&&Y6(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],Y6(e,r.left,r.left+r.width)&&Y6(t,r.top,r.top+r.height))return this.legendItems[n]}return null}handleEvent(e){let t=this.options;if(!ice(e.type,t))return;let n=this._getLegendItemAt(e.x,e.y);if(e.type===`mousemove`||e.type===`mouseout`){let r=this._hoveredItem,i=ece(r,n);r&&!i&&_6(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&_6(t.onHover,[e,n,this],this)}else n&&_6(t.onClick,[e,n,this],this)}};function tce(e,t,n,r,i){return{itemWidth:nce(r,e,t,n),itemHeight:rce(i,r,t.lineHeight)}}function nce(e,t,n,r){let i=e.text;return i&&typeof i!=`string`&&(i=i.reduce((e,t)=>e.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function rce(e,t,n){let r=e;return typeof t.text!=`string`&&(r=C7(t,n)),r}function C7(e,t){return t*(e.text?e.text.length:0)}function ice(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var w7={id:`legend`,_element:S7,start(e,t,n){let r=e.legend=new S7({ctx:e.ctx,options:n,chart:e});N5.configure(e,r,n),N5.addBox(e,r)},stop(e){N5.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;N5.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=M8(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},T7={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){let n=e[t].element;if(n&&n.hasValue()){let e=n.tooltipPosition();r.add(e.x),i+=e.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((e,t)=>
vendor: 35,227 bytes, lines 2743-2745
2743e+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;a<o;++a){let n=e[a].element;if(n&&n.hasValue()){let e=Nae(t,n.getCenterPoint());e<i&&(i=e,s=n)}}if(s){let e=s.tooltipPosition();n=e.x,r=e.y}return{x:n,y:r}}};function E7(e,t){return t&&(u6(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function D7(e){return(typeof e==`string`||e instanceof String)&&e.indexOf(`
2744`)>-1?e.split(`
2745`):e}function ace(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function O7(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=N8(t.bodyFont),l=N8(t.titleFont),u=N8(t.footerFont),d=a.length,f=i.length,p=r.length,m=M8(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,v6(e.title,y),n.font=c.string,v6(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,v6(r,e=>{v6(e.before,y),v6(e.lines,y),v6(e.after,y)}),v=0,n.font=u.string,v6(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function oce(e,t){let{y:n,height:r}=t;return n<r/2?`top`:n>e.height-r/2?`bottom`:`center`}function sce(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function cce(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),sce(l,e,t,n)&&(l=`center`),l}function k7(e,t,n){let r=n.yAlign||t.yAlign||oce(e,n);return{xAlign:n.xAlign||t.xAlign||cce(e,t,n,r),yAlign:r}}function lce(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function uce(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:t===`bottom`?r-=i+n:r-=i/2,r}function A7(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=j8(o),m=lce(t,s),h=uce(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:J6(m,0,r.width-t.width),y:J6(h,0,r.height-t.height)}}function j7(e,t,n){let r=M8(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function M7(e){return E7([],D7(e))}function dce(e,t,n){return F8(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function N7(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var P7={beforeTitle:s6,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return``},afterTitle:s6,beforeBody:s6,beforeLabel:s6,label(e){if(this&&this.options&&this.options.mode===`dataset`)return e.label+`: `+e.formattedValue||e.formattedValue;let t=e.dataset.label||``;t&&(t+=`: `);let n=e.formattedValue;return l6(n)||(t+=n),t},labelColor(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:s6,afterBody:s6,beforeFooter:s6,footer:s6,afterFooter:s6};function F7(e,t,n,r){let i=e[t].call(n,r);return i===void 0?P7[t].call(n,r):i}var I7=class extends U5{static positioners=T7;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new s5(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||=dce(this.chart.getContext(),this,this._tooltipItems)}getTitle(e,t){let{callbacks:n}=t,r=F7(n,`beforeTitle`,this,e),i=F7(n,`title`,this,e),a=F7(n,`afterTitle`,this,e),o=[];return o=E7(o,D7(r)),o=E7(o,D7(i)),o=E7(o,D7(a)),o}getBeforeBody(e,t){return M7(F7(t.callbacks,`beforeBody`,this,e))}getBody(e,t){let{callbacks:n}=t,r=[];return v6(e,e=>{let t={before:[],lines:[],after:[]},i=N7(n,e);E7(t.before,D7(F7(i,`beforeLabel`,this,e))),E7(t.lines,F7(i,`label`,this,e)),E7(t.after,D7(F7(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return M7(F7(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=F7(n,`beforeFooter`,this,e),i=F7(n,`footer`,this,e),a=F7(n,`afterFooter`,this,e),o=[];return o=E7(o,D7(r)),o=E7(o,D7(i)),o=E7(o,D7(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;s<c;++s)o.push(ace(this.chart,t[s]));return e.filter&&(o=o.filter((t,r,i)=>e.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),v6(o,t=>{let n=N7(e.callbacks,t);r.push(F7(n,`labelColor`,this,t)),i.push(F7(n,`labelPointStyle`,this,t)),a.push(F7(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=T7[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=O7(this,n),o=Object.assign({},e,t),s=k7(this.chart,n,o),c=A7(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=j8(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=t5(n.rtl,this.x,this.width);for(e.x=j7(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=N8(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;s<i;++s)t.fillText(r[s],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,s+1===i&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,r,i){let a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:c}=i,l=N8(i.bodyFont),u=j7(this,`left`,i),d=r.x(u),f=s<l.lineHeight?(l.lineHeight-s)/2:0,p=t.y+f;if(i.usePointStyle){let t={radius:Math.min(c,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=r.leftForLtr(d,c)+c/2,l=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,C8(e,t,n,l),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,C8(e,t,n,l)}else{e.lineWidth=d6(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;let t=r.leftForLtr(d,c),n=r.leftForLtr(r.xPlus(d,1),c-2),o=j8(a.borderRadius);Object.values(o).some(e=>e!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,k8(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),k8(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=N8(n.bodyFont),d=u.lineHeight,f=0,p=t5(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=j7(this,h,n),t.fillStyle=n.bodyColor,v6(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y<x;++y){for(g=r[y],_=this.labelTextColors[y],t.fillStyle=_,v6(g.before,m),v=g.lines,o&&v.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,s)),b=0,S=v.length;b<S;++b)m(v[b]),d=u.lineHeight;v6(g.after,m)}f=0,d=u.lineHeight,v6(this.afterBody,m),e.y-=i}drawFooter(e,t,n){let r=this.footer,i=r.length,a,o;if(i){let s=t5(n.rtl,this.x,this.width);for(e.x=j7(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline=`middle`,a=N8(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,o=0;o<i;++o)t.fillText(r[o],s.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){let{xAlign:i,yAlign:a}=this,{x:o,y:s}=e,{width:c,height:l}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=j8(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+u,s),a===`top`&&this.drawCaret(e,t,n,r),t.lineTo(o+c-d,s),t.quadraticCurveTo(o+c,s,o+c,s+d),a===`center`&&i===`right`&&this.drawCaret(e,t,n,r),t.lineTo(o+c,s+l-p),t.quadraticCurveTo(o+c,s+l,o+c-p,s+l),a===`bottom`&&this.drawCaret(e,t,n,r),t.lineTo(o+f,s+l),t.quadraticCurveTo(o,s+l,o,s+l-f),a===`center`&&i===`left`&&this.drawCaret(e,t,n,r),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=T7[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=O7(this,e),o=Object.assign({},n,this._size),s=k7(t,e,o),c=A7(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=M8(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),n5(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),r5(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!y6(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!y6(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=T7[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},L7={id:`tooltip`,_element:I7,positioners:T7,afterInit(e,t,n){n&&(e.tooltip=new I7({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:P7},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]};function fce(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!l6(a),_=!l6(o),v=!l6(c),y=(h-m)/(u+1),b=z6((h-m)/p/f)*f,x,S,C,w;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];w=Math.ceil(h/b)-Math.floor(m/b),w>p&&(b=z6(w*b/p/f)*f),l6(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,C=Math.ceil(h/b)*b):(S=m,C=h),g&&_&&i&&Mae((o-a)/i,b/1e3)?(w=Math.round(Math.min((o-a)/b,l)),b=(o-a)/w,S=a,C=o):v?(S=g?a:S,C=_?o:C,w=c-1,b=(C-S)/w):(w=(C-S)/b,w=R6(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w));let T=Math.max(W6(b),W6(S));x=10**(l6(s)?T:s),S=Math.round(S*x)/x,C=Math.round(C*x)/x;let E=0;for(g&&(d&&S!==a?(n.push({value:a}),S<a&&E++,R6(Math.round((S+E*b)*x)/x,a,R7(a,y,e))&&E++):S<a&&E++);E<w;++E){let e=Math.round((S+E*b)*x)/x;if(_&&e>o)break;n.push({value:e})}return _&&d&&C!==o?n.length&&R6(n[n.length-1].value,o,R7(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||C===o)&&n.push({value:C}),n}function R7(e,t,{horizontal:n,minRotation:r}){let i=H6(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var z7=class extends X5{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return l6(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=L6(r),t=L6(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=fce({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&V6(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return f8(e,this.chart.options.locale,this.options.ticks.format)}};(class extends z7{static id=`linear`;static defaults={ticks:{callback:m8.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=f6(e)?e:0,this.max=f6(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=H6(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}});var B7=e=>Math.floor(I6(e)),V7=(e,t)=>10**(B7(e)+t);function H7(e){return e/10**B7(e)==1}function U7(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function pce(e,t){let n=B7(t-e);for(;U7(e,t,n)>10;)n++;for(;U7(e,t,n)<10;)n--;return Math.min(n,B7(e))}function mce(e,{min:t,max:n}){t=p6(e.min,t);let r=[],i=B7(t),a=pce(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=p6(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f<n;)r.push({value:f,major:H7(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=p6(e.max,f);return r.push({value:p,major:H7(p),significand:d}),r}(class extends X5{static id=`logarithmic`;static defaults={ticks:{callback:m8.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=z7.prototype.parse.apply(this,[e,t]);if(n===0){this._zero=!0;return}return f6(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=f6(e)?Math.max(0,e):null,this.max=f6(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!f6(this._userMin)&&(this.min=e===V7(this.min,0)?V7(this.min,-1):V7(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(V7(n,-1)),a(V7(r,1)))),n<=0&&i(V7(r,-1)),r<=0&&a(V7(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=mce({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&V6(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:f8(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=I6(e),this._valueRange=I6(this.max)-I6(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(I6(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}});function W7(e){let t=e.ticks;if(t.display&&e.display){let e=M8(t.backdropPadding);return m6(t.font&&t.font.size,y8.font.size)+e.height}return 0}function hce(e,t,n){return n=u6(n)?n:[n],{w:Yae(e,t.string,n),h:n.length*t.lineHeight}}function G7(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function gce(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?A6/a:0;for(let c=0;c<a;c++){let a=o.setContext(e.getPointLabelContext(c));i[c]=a.padding;let l=e.getPointPosition(c,e.drawingArea+i[c],s),u=N8(a.font),d=hce(e.ctx,u,e._pointLabels[c]);r[c]=d;let f=K6(e.getIndexAngle(c)+s),p=Math.round(U6(f));_ce(n,t,f,G7(p,l.x,d.w,0,180),G7(p,l.y,d.h,90,270))}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=bce(e,r,i)}function _ce(e,t,n,r,i){let a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,c=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(c=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function vce(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(U6(K6(c.angle+N6))),u=K7(c.y,s.h,l),d=xce(l),f=Sce(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function yce(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(T8({x:n,y:r},t)||T8({x:n,y:a},t)||T8({x:i,y:r},t)||T8({x:i,y:a},t))}function bce(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:W7(a)/2,additionalAngle:o?A6/i:0},l;for(let a=0;a<i;a++){c.padding=n[a],c.size=t[a];let i=vce(e,a,c);r.push(i),s===`auto`&&(i.visible=yce(i,l),i.visible&&(l=i))}return r}function xce(e){return e===0||e===180?`center`:e<180?`left`:`right`}function Sce(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function K7(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Cce(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!l6(s)){let n=j8(t.borderRadius),c=M8(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),k8(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function wce(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));Cce(n,a,t);let o=N8(a.font),{x:s,y:c,textAlign:l}=t;O8(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function q7(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,j6);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a<r;a++)n=e.getPointPosition(a,t),i.lineTo(n.x,n.y)}}function Tce(e,t,n,r,i){let a=e.ctx,o=t.circular,{color:s,lineWidth:c}=t;!o&&!r||!s||!c||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=c,a.setLineDash(i.dash||[]),a.lineDashOffset=i.dashOffset,a.beginPath(),q7(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function Ece(e,t,n){return F8(e,{label:n,index:t,type:`pointLabel`})}(class extends z7{static id=`radialLinear`;static defaults={display:!0,animate:!0,position:`chartArea`,angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:m8.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":`borderColor`,"pointLabels.color":`color`,"ticks.color":`color`};static descriptors={angleLines:{_fallback:`grid`}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let e=this._padding=M8(W7(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!1);this.min=f6(e)&&!isNaN(e)?e:0,this.max=f6(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/W7(this.options))}generateTickLabels(e){z7.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{let n=_6(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?gce(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=j6/(this._pointLabels.length||1),n=this.options.startAngle||0;return K6(e*t+H6(n))}getDistanceFromCenterForValue(e){if(l6(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(l6(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e<t.length){let n=t[e];return Ece(this.getContext(),e,n)}}getPointPosition(e,t,n=0){let r=this.getIndexAngle(e)-N6+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){let{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){let{backgroundColor:e,grid:{circular:t}}=this.options;if(e){let n=this.ctx;n.save(),n.beginPath(),q7(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){let e=this.ctx,t=this.options,{angleLines:n,grid:r,border:i}=t,a=this._pointLabels.length,o,s,c;if(t.pointLabels.display&&wce(this,a),r.display&&this.ticks.forEach((e,t)=>{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);Tce(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;!a||!i||(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=N8(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=M8(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}O8(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}});var J7={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Y7=Object.keys(J7);function X7(e,t){return e-t}function Z7(e,t){if(l6(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),f6(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(B6(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function Q7(e,t,n,r){let i=Y7.length;for(let a=Y7.indexOf(e);a<i-1;++a){let e=J7[Y7[a]],i=e.steps?e.steps:2**53-1;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return Y7[a]}return Y7[i-1]}function Dce(e,t,n,r,i){for(let a=Y7.length-1;a>=Y7.indexOf(n);a--){let n=Y7[a];if(J7[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return Y7[n?Y7.indexOf(n):0]}function Oce(e){for(let t=Y7.indexOf(e)+1,n=Y7.length;t<n;++t)if(J7[Y7[t]].common)return Y7[t]}function $7(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:r,hi:i}=X6(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function kce(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function e9(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:kce(e,r,i,n)}var t9=class extends X5{static id=`time`;static defaults={bounds:`data`,adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:`millisecond`,displayFormats:{}},ticks:{source:`auto`,callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit=`day`,this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){let n=e.time||={},r=this._adapter=new Boe._date(e.adapters.date);r.init(t),C6(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:Z7(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,t=this._adapter,n=e.time.unit||`day`,{min:r,max:i,minDefined:a,maxDefined:o}=this.getUserBounds();function s(e){!a&&!isNaN(e.min)&&(r=Math.min(r,e.min)),!o&&!isNaN(e.max)&&(i=Math.max(i,e.max))}(!a||!o)&&(s(this._getLabelBounds()),(e.bounds!==`ticks`||e.ticks.source!==`labels`)&&s(this.getMinMax(!1))),r=f6(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),i=f6(i)&&!isNaN(i)?i:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){let e=this.getLabelTimestamps(),t=1/0,n=-1/0;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){let e=this.options,t=e.time,n=e.ticks,r=n.source===`labels`?this.getLabelTimestamps():this._generate();e.bounds===`ticks`&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let i=this.min,a=this.max,o=Iae(r,i,a);return this._unit=t.unit||(n.autoSkip?Q7(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):Dce(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit===`year`?void 0:Oce(this._unit),this.initOffsets(r),e.reverse&&o.reverse(),e9(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=J6(t,0,a),n=J6(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||Q7(i.minUnit,t,n,this._getLabelCapacity(t)),o=m6(r.ticks.stepSize,1),s=a===`week`?i.isoWeekday:!1,c=B6(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d<n;d=+e.add(d,o,a),f++)$7(l,d,p);return(d===n||r.bounds===`ticks`||f===1)&&$7(l,d,p),Object.keys(l).sort(X7).map(e=>+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return _6(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){let t=this.options.ticks,n=this.ctx.measureText(e).width,r=H6(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}_getLabelCapacity(e){let t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,e9(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t<n;++t)e=e.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],t,n;if(e.length)return e;let r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(Z7(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Rae(e.sort(X7))}};function n9(e,t,n){let r=0,i=e.length-1,a,o,s,c;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Z6(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Z6(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}(class extends t9{static id=`timeseries`;static defaults=t9.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=n9(t,this.min),this._tableRange=n9(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;
2745for(a=0,o=e.length;a<o;++a)c=e[a],c>=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;a<o;++a)l=r[a+1],s=r[a-1],c=r[a],Math.round((l+s)/2)!==c&&i.push({time:c,pos:a/(o-1)});return i}_generate(){let e=this.min,t=this.max,n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(t)||n.length===1)&&n.push(t),n.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(n9(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return n9(this._table,n*this._tableRange+this._minPos,!0)}});var r9=`label`;function i9(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function Ace(e,t){let n=e.options;n&&t&&Object.assign(n,t)}function a9(e,t){e.labels=t}function o9(e,t,n=r9){let r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}function jce(e,t=r9){let n={labels:[],datasets:[]};return a9(n,e.labels),o9(n,e.datasets,t),n}function Mce(e,t){let{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:c,plugins:l=[],fallbackContent:u,updateMode:d,...f}=e,p=(0,J.useRef)(null),m=(0,J.useRef)(null),h=()=>{p.current&&(m.current=new g7(p.current,{type:o,data:jce(s,a),options:c&&{...c},plugins:l}),i9(t,m.current))},g=()=>{i9(t,null),m.current&&=(m.current.destroy(),null)};return(0,J.useEffect)(()=>{!i&&m.current&&c&&Ace(m.current,c)},[i,c]),(0,J.useEffect)(()=>{!i&&m.current&&a9(m.current.config.data,s.labels)},[i,s.labels]),(0,J.useEffect)(()=>{!i&&m.current&&s.datasets&&o9(m.current.config.data,s.datasets,a)},[i,s.datasets]),(0,J.useEffect)(()=>
2745{m.current&&(i?(g(),setTimeout(h)):m.current.update(d))},[i,c,s.labels,s.datasets,d]),(0,J.useEffect)(()=>{m.current&&(g(),setTimeout(h))},[o]),(0,J.useEffect)(()=>(h(),()=>g()),[]),(0,X.jsx)(`canvas`,{ref:p,role:`img`,height:n,width:r,...f,children:u})}var Nce=(0,J.forwardRef)(Mce);function Pce(e,t){return g7.register(t),(0,J.forwardRef)((t,n)=>(0,X.jsx)(Nce,{...t,ref:n,type:e}))}var s9=Pce(`doughnut`,zoe);function Fce({size:e=200}){return(0,X.jsx)(ur,{variant:`circular`,width:e,height:e,"data-testid":`doughnut-skeleton`})}var c9=Fce;g7.register(b7,L7,w7);function Ice({loading:e,title:t,centerLabel:n,centerValue:r,options:i,cardProps:a,titleTypographyProps:o,centerLabelTypographyProps:s,centerValueTypographyProps:c,...l}){let u=z();if(e)return(0,X.jsx)(c9,{});let d=t!==void 0||n!==void 0||r!==void 0,f=l.data.labels,p=l.data.datasets[0],m=p?.backgroundColor,h=p?.data,g=d&&Array.isArray(f)&&f.length>0&&Array.isArray(h),_=Array.isArray(h)?h.map(e=>Number(e)).filter(e=>Number.isFinite(e)).reduce((e,t)=>e+t,0):void 0,v=_===0,y=r??_,b=i?.plugins?.tooltip?.callbacks,x=u.direction===`rtl`,S={...i,plugins:{...i?.plugins,tooltip:{...i?.plugins?.tooltip,rtl:x,textDirection:x?`rtl`:`ltr`,titleAlign:x?`right`:`left`,bodyAlign:x?`right`:`left`,footerAlign:x?`right`:`left`,usePointStyle:!0,boxPadding:2,callbacks:{...b,title:b?.title??(()=>``),labelPointStyle:b?.labelPointStyle??(()=>({pointStyle:`circle`,rotation:0})),label:b?.label??(e=>{let t=e.dataset.data.map(e=>Number(e)).filter(e=>Number.isFinite(e)).reduce((e,t)=>e+t,0),n=Number(e.parsed),r=t>0&&Number.isFinite(n)?(n/t*100).toFixed(1).replace(/\.0$/,``):`0`;return`${(e.label??``).replace(/\s*\n\s*/g,` `)}: ${r}%`})},titleFont:{...i?.plugins?.tooltip?.titleFont,family:u.typography.fontFamily},bodyFont:{...i?.plugins?.tooltip?.bodyFont,family:u.typography.fontFamily},footerFont:{...i?.plugins?.tooltip?.footerFont,family:u.typography.fontFamily}}}},C=d?{...S,plugins:{...S?.plugins,legend:{display:!1},tooltip:{...S?.plugins?.tooltip,...v?{enabled:!1}:{}}},cutout:i?.cutout??`68%`}:S,w={labels:[],datasets:[{data:[1],backgroundColor:[u.palette.action.disabledBackground],borderWidth:0,hoverOffset:0}]},T=d?{...v?w:l.data,datasets:(v?w:l.data).datasets.map(e=>({spacing:1,borderRadius:4,borderWidth:0,...e}))}:l.data,E=(0,X.jsx)(G,{component:`span`,display:`block`,"data-testid":`doughnut-chart`,role:`img`,"aria-label":`chart with ${T.datasets?.length??0} dataset(s)`,children:(0,X.jsx)(s9,{options:C,...l,data:T})});if(!d)return E;let{sx:D,...O}=a??{},{sx:k,...A}=o??{},{sx:j,...M}=s??{},{sx:N,...P}=c??{};return(0,X.jsx)(Df,{sx:{minWidth:220,display:`inline-flex`,background:`inherit`,...D},...O,children:(0,X.jsxs)(Ff,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,gap:1.5,width:`100%`,"&:last-child":{pb:2}},children:[t&&(0,X.jsx)(St,{variant:o?.variant??`bodyMedium`,sx:{textAlign:`center`,fontWeight:600,width:`100%`,...k},...A,children:t}),(0,X.jsxs)(G,{sx:{position:`relative`,width:`100%`},children:[E,(n!==void 0||y!==void 0)&&(0,X.jsxs)(G,{sx:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,display:`flex`,flexDirection:`column`,alignItems:`center`,gap:.25,textAlign:`center`,pointerEvents:`none`},children:[n!=null&&(0,X.jsx)(St,{variant:s?.variant??`body1`,color:s?.color??`text.secondary`,sx:j,...M,children:typeof n==`string`?n:String(n)}),y!=null&&(0,X.jsx)(St,{variant:c?.variant??`headlineLarge`,sx:{fontWeight:700,lineHeight:1.2,...N},...P,children:typeof y==`number`||typeof y==`string`?y:String(y)})]})]}),g&&(0,X.jsx)(dp,{spacing:.75,sx:{width:`100%`,mt:.5},children:f.map((e,t)=>(0,X.jsxs)(dp,{direction:`row`,justifyContent:`space-between`,alignItems:`center`,children:[(0,X.jsxs)(dp,{direction:`row`,alignItems:`center`,spacing:.75,children:[(0,X.jsx)(G,{sx:{width:12,height:12,borderRadius:`4px`,bgcolor:Array.isArray(m)?m[t]:`primary.main`,flexShrink:0}}),(0,X.jsx)(St,{variant:`bodyMedium`,children:e})]}),(0,X.jsx)(St,{variant:`bodyMedium`,sx:{fontWeight:600},children:h[t]})]},e))})]})})}var Lce=Ice,Rce=B()({popper:{zIndex:`15000 !important`}}),zce=({title:e,children:t,...n})=>{let{classes:r}=Rce();return e?(0,X.jsx)(ti,{...n,title:e,classes:{popper:r.popper,...n.classes},children:t}):t},Bce=B()({}),Vce=({hidden:e,security:t,disabled:n,tooltip:r,placementTooltip:i,className:a,children:o,...s})=>{let{cx:c}=Bce();if(e||t?.hidden)return null;let l=t?.disabled?`disabledSecurity`:``;return(0,X.jsx)(zce,{title:r,placement:i,children:(0,X.jsx)(Gn,{disabled:n||t?.disabled,className:c(l,a),...s,children:o})})},Hce=({hidden:e,security:t,disabled:n,className:r,children:i,...a})=>{if(e||t?.hidden)return null;let o=t?.disabled?`disabledSecurity`:``;return(0,X.jsx)(ei,{disabled:n||t?.disabled,className:`${o} ${r??``}`.trim(),...a,children:i})},Uce=B()(e=>({menuItem:{display:`flex`,alignItems:`center`},icon:{marginLeft:e.spacing(1),color:e.palette.text.secondary},iconButton:{padding:0},moreIcon:{cursor:`pointer`}}));function Wce({data:e,config:t}){let{classes:n}=Uce(),[r,i]=(0,J.useState)(null),a=r!==null,o=e=>{e.stopPropagation(),i(e.currentTarget)},s=e=>{e?.stopPropagation?.(),i(null)},c=t.getMenuItems(e);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Vce,{security:t.security,disabled:t.disabled,className:n.iconButton,onClick:o,children:(0,X.jsx)(qv,{className:n.moreIcon})}),(0,X.jsx)($r,{PaperProps:{elevation:0,sx:{overflow:`visible`,filter:`drop-shadow(0px 2px 7px rgba(0,0,0,0.06))`,mt:1.5,"&:before":{content:`""`,display:`block`,position:`absolute`,top:0,left:14,width:10,height:10,bgcolor:`background.paper`,transform:`translateY(-50%) rotate(45deg)`,zIndex:0}}},transformOrigin:{horizontal:`right`,vertical:`top`},anchorOrigin:{horizontal:`right`,vertical:`bottom`}
2745,anchorEl:r,open:a,onClose:()=>s(),children:c.map((e,t)=>(0,X.jsxs)(Hce,{security:e.security,className:n.menuItem,disabled:e.disabled,onClick:t=>{t.stopPropagation(),e.onSelect(),s()},children:[e.icon&&(0,X.jsx)(e.icon,{fontSize:`small`,className:n.icon}),(0,X.jsx)(St,{children:e.title})]},`${e.title}-${t}`))})]})}var Gce=Wce,Kce=B()(e=>({item:{margin:`6px 0`,padding:`2px 5px`,borderRadius:e.spacing(1),width:`fit-content`},labelContainer:{display:`flex`,alignItems:`center`,gap:e.spacing(1)},formControlLabel:{"&& .MuiTypography-root":{fontWeight:400,fontStyle:`normal`,fontSize:14,lineHeight:1,letterSpacing:0,textAlign:`right`}},checkbox:{color:e.palette.text.secondary,"&.Mui-checked":{color:e.palette.success.main},"& .MuiSvgIcon-root":{fontSize:21},"& .MuiTypography-root":{fontWeight:400}},groupTransition:{marginRight:0,paddingRight:24,borderRight:`1px dashed ${e.palette.divider}`}}));function l9({node:e,getNodeId:t,renderLabel:n,selectionMode:r,selectedIds:i,disabledIds:a,onToggleSelection:o,getItemClassName:s,optionMenu:c}){let{classes:l,cx:u}=Kce(),d=(0,J.useMemo)(()=>t(e.data),[t,e.data]),f=i.has(d),p=a.has(d),m=s?.(e.data,p),h=(0,X.jsxs)(G,{className:l.labelContainer,children:[r===`single`?(0,X.jsx)(Br,{value:d,onClick:e=>e.stopPropagation(),className:l.formControlLabel,control:(0,X.jsx)(mr,{size:`small`,checked:f,disabled:p,onChange:(t,n)=>o(n,e.data,d),onClick:e=>e.stopPropagation()}),label:n(e.data)}):r===`multiple`?(0,X.jsx)(Br,{onClick:e=>e.stopPropagation(),className:l.formControlLabel,control:(0,X.jsx)(kr,{size:`small`,checked:f,disabled:p,onChange:(t,n)=>o(n,e.data,d),onClick:e=>e.stopPropagation(),className:l.checkbox}),label:n(e.data)}):n(e.data),c&&(0,X.jsx)(Gce,{data:e.data,config:c})]});return(0,X.jsx)(GP,{itemId:d,classes:{content:u(l.item,m),groupTransition:l.groupTransition},label:h,children:e.children?.map(e=>(0,X.jsx)(l9,{node:e,getNodeId:t,renderLabel:n,selectionMode:r,selectedIds:i,disabledIds:a,onToggleSelection:o,getItemClassName:s,optionMenu:c},t(e.data)))},d)}var qce=l9,Jce=B()(()=>({item:{margin:`6px 0`,padding:`2px 5px`,borderRadius:8,width:`fit-content`}})),Yce=({rootCount:e=3,childCount:t=2})=>{let{classes:n}=Jce();return(0,X.jsx)(G,{children:(0,X.jsx)(BP,{disableSelection:!0,disabledItemsFocusable:!0,expandedItems:[`skeleton-1`],children:Array.from({length:e},(e,r)=>{let i=`skeleton-${r+1}`;return r===0?(0,X.jsx)(GP,{classes:{content:n.item},itemId:i,label:(0,X.jsx)(ur,{variant:`rectangular`,height:36,width:250}),children:Array.from({length:t},(e,t)=>(0,X.jsx)(GP,{classes:{content:n.item},itemId:`${i}-child-${t+1}`,label:(0,X.jsx)(ur,{variant:`rectangular`,height:36,width:250})},`${i}-child-${t+1}`))},i):(0,X.jsx)(GP,{classes:{content:n.item},itemId:i,label:(0,X.jsx)(ur,{variant:`rectangular`,height:36,width:250})},i)})})})};function Xce(e,t,n){let r=(0,J.useMemo)(()=>{let n=new Map;for(let r of e)n.set(t(r),r);return n},[e,t]);return{selectedIds:(0,J.useMemo)(()=>new Set(r.keys()),[r]),handleToggle:(0,J.useCallback)((e,t,i,a)=>{if(!n)return;if(a){n(e?[t]:[]);return}let o=new Map(r);e?o.set(i,t):o.delete(i),n(Array.from(o.values()))},[n,r])}}var Zce=B()({treeDesktop:{padding:8},treeMobile:{padding:8}});function Qce({items:e,getNodeId:t,renderLabel:n,selectionMode:r=`none`,loading:i=!1,isMobile:a=!1,expandedItems:o,onExpandedItemsChange:s,selectedItems:c=[],onSelectionChange:l,disabledItemIds:u=[],getItemClassName:d,optionMenu:f}){let{classes:p}=Zce(),[m,h]=(0,J.useState)(o??[]),g=o??m,_=(0,J.useCallback)((e,t)=>{s?s(t):h(t)},[s]),{selectedIds:v,handleToggle:y}=Xce(c,t,l),b=(0,J.useCallback)((e,t,n)=>{y(e,t,n,r===`single`)},[y,r]),x=(0,J.useMemo)(()=>new Set(u),[u]);return i?(0,X.jsx)(Yce,{}):(0,X.jsx)(BP,{"aria-label":`tree view`,slots:{collapseIcon:hi,expandIcon:mi},expandedItems:g,onExpandedItemsChange:_,sx:{flexGrow:1,overflowY:a?`visible`:`auto`,overflowX:`auto`},className:a?p.treeMobile:p.treeDesktop,children:e.map(e=>(0,X.jsx)(qce,{node:e,getNodeId:t,renderLabel:n,selectionMode:r,selectedIds:v,disabledIds:x,onToggleSelection:b,getItemClassName:d,optionMenu:f},t(e.data)))})}var $ce=Qce;function ele({children:e,variant:t=`contained`,...n}){return(0,X.jsx)(nr,{variant:t,disableElevation:!0,...n,children:e})}var tle=ele;function nle({variant:e=`outlined`,fullWidth:t=!0,...n}){return(0,X.jsx)(wr,{variant:e,fullWidth:t,...n})}var rle=nle,u9=e=>{let{variant:t}=e;return(0,X.jsx)(ur,{variant:t||`rounded`,...e})};B()({popper:{zIndex:`15000 !important`}});var ile=B()({multiline:{height:`unset`}}),ale=({hidden:e,security:t,disabled:n,skeletonLoading:r,skeletonProps:i,readOnly:a,...o})=>{let s=t?.disabled?`disabledSecurity`:``,{classes:c,cx:l}
2745=ile();return(0,X.jsx)(X.Fragment,{children:!e&&!t?.hidden&&(0,X.jsx)(X.Fragment,{children:r?(0,X.jsx)(u9,{...i,height:i?.height??42}):(0,X.jsx)(wr,{disabled:n||t?.disabled,className:s,...o,focused:a&&!a,InputProps:{readOnly:a,classes:o.multiline?{root:l(c.multiline)}:void 0,...o.InputProps},children:o.children})})})},ole=B()(e=>({root:{height:`100%`,display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,textAlign:`center`,gap:e.spacing(.5)}}));function sle({title:e,description:t,src:n}){let{classes:r}=ole();return(0,X.jsxs)(G,{className:r.root,children:[(0,X.jsx)(`img`,{src:n||``,alt:`Empty State`}),e&&(0,X.jsx)(St,{variant:`body2`,children:e}),t&&(0,X.jsx)(St,{variant:`caption`,children:t})]})}var cle=B()(e=>({loadingBox:{height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`absolute`,left:0,right:0,top:0,"& img":{width:40,[e.breakpoints.down(`sm`)]:{width:25}}},loadingTable:{display:`flex`,alignItems:`center`,justifyContent:`center`,position:`absolute`,left:0,right:0,"& img":{width:40,[e.breakpoints.down(`sm`)]:{width:30}}},infinitLoading:{textAlign:`center`,"& img":{width:28,[e.breakpoints.down(`sm`)]:{width:40}}},loadingBoxSidebar:{display:`block`,position:`relative`,textAlign:`center`,width:45,"& img":{width:`100%`}}})),d9=`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='16' fill='none' stroke='%23666' stroke-width='3' stroke-dasharray='24 48' stroke-linecap='round'/%3E%3C/svg%3E`;function lle({color:e=``,type:t=``,inline:n=!1,className:r=``,srcPrimary:i,srcLightGray:a,srcWhite:o}){let{classes:s,cx:c}=cle();return(0,X.jsx)(`div`,{className:(e=>e===`loadingBoxSidebar`?c(s.loadingBoxSidebar):e===`infiniteLoading`?c(s.infinitLoading):e===`table`?c(s.loadingTable):n?``:c(s.loadingBox))(t)||r||void 0,"data-testid":`loading-component`,children:(0,X.jsx)(`img`,{src:(e=>e===`lightGray`?a||d9:e===`white`?o||d9:i||d9)(e),alt:`loading`})})}B()((e,{isDeactiveUser:t})=>({root:{display:`flex`,flexDirection:`row`,alignItems:`center`,"& .MuiListItemSecondaryAction-root":{top:e.spacing(1.75),transform:`unset`},cursor:`pointer`},statusElement:{display:`flex`,flexDirection:`column`,alignItems:`flex-end`,justifyContent:`flex-start`,gap:e.spacing(1)},unreadBadge:{position:`absolute`,top:0,left:0,transform:`unset`,backgroundColor:e.palette.action.hover,color:e.palette.text.primary},invisibleBadge:{display:`none`},statusWrapper:{display:`flex`,alignItems:`center`,gap:e.spacing(1)},iconWrapper:{display:`flex`,alignItems:`center`,justifyContent:`center`},active:{backgroundColor:e.palette.action.hover,"&:before":{height:`100%`,width:4,backgroundColor:e.palette.text.primary,content:`""`,position:`absolute`,right:0,top:0,borderTopRightRadius:e.spacing(1),borderBottomRightRadius:e.spacing(1)}},truncate:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,display:`block`},onlineBadge:{backgroundColor:e.palette.success.main,width:10,height:10,borderRadius:`50%`,border:`2px solid ${e.palette.background.paper}`,position:`absolute`,bottom:0,left:0},deactiveBadge:{display:`flex`,alignItems:`center`,justifyContent:`center`,backgroundColor:`transparent`,width:10,height:10,borderRadius:`50%`,border:`1px solid ${e.palette.background.paper}`,position:`absolute`,bottom:0,left:0},deactiveIcon:{width:10,height:10,color:e.palette.background?.lightRed??e.palette.error.main},avatarWrapper:{position:`relative`,display:`inline-flex`,opacity:t?.5:1}})),B()(e=>({root:{display:`flex`,flexDirection:`row`,alignItems:`center`,"& .MuiListItemSecondaryAction-root":{top:e.spacing(1.75),transform:`unset`}},statusElement:{display:`flex`,flexDirection:`column`,alignItems:`flex-end`,justifyContent:`flex-start`,gap:e.spacing(1)},avatarSkeleton:{width:40,height:40}})),B()((e,{isSender:t})=>({container:{display:`flex`,width:`100%`,justifyContent:t?`flex-start`:`flex-end`,alignItems:`flex-end`,flexWrap:`wrap`,columnGap:e.spacing(1)},root:{display:`flex`,flexDirection:`column`,gap:e.spacing(1),padding:e.spacing(1),borderRadius:e.spacing(1,1,+!t,+!!t),maxWidth:`60%`,backgroundColor:t?e.palette.primary.light:e.palette.background.paper},statusWrapper:{display:`flex`,justifyContent:`flex-end`,alignItems:`center`,gap:e.spacing(1)},iconWrapper:{display:`flex`,alignItems:`center`,justifyContent:`center`},contentTxt:{wordWrap:`break-word`,paddingLeft:e.spacing(2),whiteSpace:`pre-line`},retryButton:{textTransform:`none`,fontSize:`0.875rem`}})),B()((e,{isSender:t})=>({container:{display:`flex`,width:`100%`,justifyContent:t?`flex-start`:`flex-end`},root:{display:`flex`,flexDirection:`column`,gap:e.spacing(1),padding:e.spacing(1),borderRadius:e.spacing(1,1,+!t,+!!t),maxWidth:`60%`,backgroundColor:t?e.palette.primary.light:e.palette.background.paper},statusWrapper:{display:`flex`,justifyContent:`flex-end`,alignItems:`center`,gap:e.spacing(1)},contentSkeleton:{paddingLeft:e.spacing(2)}})),B()(e=>
2745({statusBox:{display:`flex`,alignItems:`center`},container:{display:`flex`,alignItems:`center`,gap:e.spacing(1),padding:e.spacing(1,2),borderBottom:`1px solid #e0e0e0`,height:56,boxSizing:`border-box`},loadingBox:{height:7,position:`relative`,width:e.spacing(2.5)},textfield:{flexGrow:1}})),B()(e=>({fab:{position:`absolute`,bottom:e.spacing(2),left:e.spacing(2),borderRadius:e.spacing(1)}})),B()(e=>({root:{padding:e.spacing(1),backgroundColor:`transparent`,width:`100%`},textField:{width:`100%`},input:{backgroundColor:e.palette.background.default,borderRadius:e.spacing(2),padding:e.spacing(1,2.5,1,1.5),height:`unset`},sendBtn:{backgroundColor:`${e.palette.primary.main} !important`,width:32,height:32},sendIcon:{color:e.palette.primary.main,fontSize:18},disabledIcon:{color:e.palette.primary.contrastText},inputAdornment:{alignSelf:`flex-end`}})),B()(e=>({container:{padding:e.spacing(0,2),width:`100%`,backgroundColor:e.palette.background.default}}));var f9=(e,t,n,r,i,a=50,o=150,s=!0)=>{let[c,l]=(0,J.useState)(t),u=(0,J.useRef)(0),d=(0,J.useRef)(0),f=(0,J.useRef)(null),p=(0,J.useRef)(null),m=(0,J.useRef)(!1),h=(0,J.useRef)(),g=(0,J.useRef)(!1),_=(0,J.useCallback)(()=>{if(!e.current)return;let t=e.current;requestAnimationFrame(()=>{t.scrollTop=t.scrollHeight})},[e]),v=(0,J.useCallback)(()=>{if(!e.current||n||m.current)return;m.current=!0;let t=e.current,r=t.scrollHeight-u.current;r>0?requestAnimationFrame(()=>{t.scrollTop+=r,u.current=t.scrollHeight,m.current=!1}):(u.current=t.scrollHeight,m.current=!1)},[e,n]),y=(0,J.useCallback)(()=>{if(!e.current||!r||!i||n)return;let t=e.current,o=t.scrollTop<=a;o&&!g.current?(g.current=!0,u.current=t.scrollHeight,i()):o||(g.current=!1)},[e,r,i,a,n]),b=(0,J.useCallback)(()=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{y()},o)},[y,o]),x=(0,J.useCallback)(()=>{u.current=0,d.current=0,f.current=null,p.current=null,m.current=!1,g.current=!1},[]);return(0,J.useEffect)(()=>
2745{l(t)},[t]),(0,J.useEffect)(()=>{if(!e.current)return;let t=c[0]?.id??null,r=c[c.length-1]?.id??null;if(d.current===0&&c.length>0){_(),u.current=e.current.scrollHeight,d.current=c.length,f.current=t,p.current=r;return}let i=c.length>d.current,a=t!==f.current,o=r!==p.current;s&&o&&!a?_():i&&a&&!n?v():s&&o&&a&&_(),d.current=c.length,f.current=t,p.current=r,g.current=!1},[c,c.length,n,_,v,s,e]),(0,J.useEffect)(()=>{let t=e.current;if(t)return t.addEventListener(`scroll`,b),()=>{t.removeEventListener(`scroll`,b),h.current&&clearTimeout(h.current)}},[b,e]),{scrollToBottom:_,adjustScrollPosition:v,cleanup:x}},ule=B()(e=>({root:{display:`flex`,flexDirection:`column`,gap:e.spacing(.5),padding:e.spacing(1),borderRadius:e.spacing(1),border:`1px solid`,borderColor:e.palette.border.onContainer,marginBottom:e.spacing(1)},header:{display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`},authorSection:{display:`flex`,flexDirection:`row`,alignItems:`center`,gap:e.spacing(.75)},avatar:{width:e.spacing(3.5),height:e.spacing(3.5),fontSize:14},authorName:{fontSize:12,fontWeight:e.typography.fontWeightMedium,color:e.palette.text.primary},date:{fontSize:11,color:e.palette.text.secondary,direction:`ltr`},content:{fontSize:13,color:e.palette.text.secondary,lineHeight:1.6,paddingRight:e.spacing(.5),wordBreak:`break-word`}})),dle=({comment:e,attachmentActions:t})=>{let{classes:n}=ule(),r=Me(e.author?.user,e.author?.position),i=r.trim().slice(0,1),a=e.createdAt?`${b_.default.utc(e.createdAt).format(`jYYYY/jMM/jDD`)} - ${new Date(e.createdAt).toLocaleTimeString([],{hour12:!1,hour:`2-digit`,minute:`2-digit`})}`:``;return d(G,{className:n.root,children:[d(G,{className:n.header,children:[d(G,{className:n.authorSection,children:[l(aF,{id:e.author?.user?.imageId||void 0,alt:r,callbackEl:e=>l(Dr,{className:n.avatar,src:e||void 0,alt:r,children:i})}),l(St,{variant:`bodyMedium`,className:n.authorName,children:r})]}),l(St,{variant:`bodyMedium`,className:n.date,children:a})]}),e.attachments?.map(e=>l(u3,{attachment:e,actions:{onPreview:t.onPreview,onDownload:t.onDownload}},e.id)),l(St,{variant:`bodyLarge`,className:n.content,children:e.body})]})},fle=B()(e=>({root:{flex:1,minHeight:0,overflow:`hidden`,display:`flex`,flexDirection:`column`},container:{flexGrow:1,minHeight:0,overflowY:`auto`,display:`flex`,flexDirection:`column`,overscrollBehavior:`contain`,padding:e.spacing(1)},content:{marginTop:`auto`,display:`flex`,flexDirection:`column`,width:`100%`,gap:e.spacing(1)},contentEmpty:{flex:1,display:`flex`,flexDirection:`column`,justifyContent:`center`,width:`100%`},item:{padding:e.spacing(0,.5)}})),p9=()=>{let{comments:e,commentsLoading:t,fetchMoreComments:n,hasMoreComments:r,attachmentActions:i}=r3(),{classes:a}=fle(),{t:o}=Ye(),s=(0,J.useRef)(null),c=(0,J.useMemo)(()=>[...e].sort((e,t)=>(e.createdAt?new Date(e.createdAt).getTime():0)-(t.createdAt?new Date(t.createdAt).getTime():0)),[e]);return f9(s,c,t,r,n),t&&!e.length?l(G,{className:a.root,children:l(G,{className:a.container,children:l(Oi,{type:`infiniteLoading`})})}):e.length?l(G,{className:a.root,children:d(G,{ref:s,className:a.container,"data-testid":`comment-list-scroll`,children:[t&&l(Oi,{type:`infiniteLoading`}),l(G,{className:a.content,children:c.map(e=>l(G,{className:a.item,children:l(dle,{comment:e,attachmentActions:{onDownload:i.onDownload,onPreview:i.onPreview}})},e.id))})]})}):l(G,{className:a.root,children:l(G,{className:a.contentEmpty,children:l(sle,{description:o(`tasks.labels.no-comment`),src:`/assets/images/no-results.svg`})})})},ple=B()(e=>({root:{borderWidth:`1px`,borderStyle:`solid`,borderColor:e.palette.primary.main,borderRadius:e.spacing(1),overflow:`hidden`,backgroundColor:`#E3E3FD`,display:`flex`,flexDirection:`column`,height:`100%`,minHeight:e.spacing(40),padding:e.spacing(1),rowGap:e.spacing(.5)},header:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:e.spacing(1,1.5),borderRadius:e.spacing(.5),backgroundColor:e.palette.common.white,flexShrink:0},title:{fontSize:14,fontWeight:e.typography.fontWeightMedium,flex:1,textAlign:`center`},body:{flex:1,display:`flex`,flexDirection:`column`,overflow:`hidden`,backgroundColor:e.palette.common.white,borderRadius:e.spacing(.5)}})),mle=()=>{let{t:e}=Ye(),{classes:t}=ple(),{onCloseCommentPanel:n,hasProjectManagementAccess:r}=r3();return d(G,{className:t.root,children:[d(G,{className:t.header,children:[l(Gn,{size:`small`,onClick:n,disabled:!n,children:l(ci,{fontSize:`small`})}),l(St,{className:t.title,children:e(`tasks.labels.comments`)})]}),d(G,{className:t.body,children:[l(p9,{}),!!r&&l(h3,{})]})]})},hle=B()(e=>({root:{padding:`0px !important`,overflow:`hidden`},bodyLayout:{flex:1,display:`flex`,flexDirection:`column`,overflow:`hidden`,maxHeight:`100%`,height:`100%`,borderWidth:`1px`,borderStyle:`solid`,borderColor:e.palette.primary.main,borderRadius:e.spacing(1),backgroundColor:`#E3E3FD`,padding:e.spacing(1.5)},body:{flex:1,display:`flex`,flexDirection:`column`,borderRadius:e.spacing(.5),overflow:`hidden`,maxHeight:`100%`,backgroundColor:`white !important`}
2745,titleRoot:{"&.MuiDialogTitle-root":{marginBottom:0}},dialogContentRoot:{"&.MuiDialogContent-root":{padding:8}}})),gle=()=>{let{t:e}=Ye(),{classes:t}=hle(),{onCloseCommentPanel:n,opened:r,hasProjectManagementAccess:i}=r3();return l(NN,{fullScreen:!0,showTopBorderInActions:!0,isTitleShow:!0,open:!!r,onClose:n,title:e(`tasks.labels.comments`),titleDialogClasses:t.titleRoot,contentDialogClasses:t.dialogContentRoot,children:l(G,{className:t.bodyLayout,children:d(G,{className:t.body,children:[l(p9,{}),!!i&&l(h3,{})]})})})},_le=()=>{let{mobile:e,desktop:t,tablet:n}=V1();return l(e?gle:t||n?mle:f,{})},m9=`task`,h9=12,vle=t3(({opened:e,organizationId:t,taskId:n,hasProjectAccess:r,onClose:i,comments:a,getCommentsAsync:o,createCommentAsync:s,createCommentReset:c,isVisibleInput:u,documentPreviewerDialog:d,author:f,commentCount:p,fetchCommentsOnMount:m=!0,setTaskCommentCount:h})=>{let{t:g}=Ye(),{uploadDocument:_,uploads:v,cancelAllUploads:y,cancelUpload:b}=zj({domain:`tasks`}),x=(0,J.useRef)(null),[S,C]=(0,J.useState)(!1),[w,T]=(0,J.useState)(null),[E,D]=(0,J.useState)({content:``,parentId:null,attachments:[]}),O=a.comments.data??[],k=a.comments.status===`pending`,A=a.comments.meta,j=!!(A?.pagination?.total&&O.length<(A.pagination.total??0)),M=O.length,N=(0,J.useCallback)(async({offset:e,limit:r})=>{!t||!n||h((await o({organizationId:t,entity:m9,entityId:n,offset:e,limit:r}))?.payload?.meta?.pagination?.total??0)},[o,t,h,n]),P=()=>{!t||!n||!j||k||N({offset:M,limit:h9})},F=e=>{D(t=>({...t,content:e}))},I=e=>{e&&(T(null),D(t=>({...t,attachments:[{id:ge(),name:e.name,size:e.size,file:e}]})))},ee=async()=>{if(!r||!t||!n||!f?.user?.id)return;let e=!!E.content.trim(),i=E.attachments?.filter(e=>!!e.file)??[],a=i.length>0;if(!(!e&&!a)){C(!0),T(null);try{let r;if(a){let e=await _(i.map(e=>e.file),`task-comment-attachment`,n);if(!e.success||e.uploadedList.length===0||e.uploadedList.some(e=>!e.success)){T(g(`common.errors.uploadFailedAttachment`));return}r=e.uploadedList.map(e=>{let t=e.data;return{id:t.id??``,name:t.name??``,size:t.size??0}})}if(e||r?.length){let i=await s({organization:{id:t},body:e?E.content:void 0,id:ge(),author:{user:{id:f?.user?.id||``},position:{id:f?.position?.id||``,slot:f?.position?.slot||[]}},target:{id:n,entity:m9},attachments:r?.length?r:void 0});if(!(!i?.error&&i?.payload?.success)){he.error(g(`common.errors.oparationError`));return}D({content:``,parentId:null,attachments:[]}),await N({offset:0,limit:h9})}}finally{C(!1),c()}}},L=(0,J.useCallback)(()=>{i?.(),y(),T(null),D(e=>({...e,attachments:[]}))},[y,i]),R=(0,J.useCallback)((e,t)=>{let n=e.id;if(n)return Uj(n,e.name,e=>{t?.(e.percentage)}).then(()=>void 0)},[]),z=(0,J.useCallback)(e=>{e?b(e):y(),T(null),D(e=>({...e,attachments:[]}))},[y,b]),te=(0,J.useCallback)(e=>{d.handleOpenDocumentPreviewer([e],0)},[d]);return(0,J.useEffect)(()=>{!m||!n||!t||N({offset:0,limit:h9})},[m,N,t,n]),(0,J.useEffect)(()=>{e&&u&&!S&&x.current?.focus()},[e,u,S]),(0,J.useEffect)(()=>()=>{y()},[y]),l(zu,{theme:e3,children:l(n3.Provider,{value:{taskId:n,opened:e,comments:O,commentsLoading:k,fetchMoreComments:P,hasMoreComments:j,textFieldInputRef:x,inputState:E,setInputState:D,submitLoading:S,uploads:v,attachmentUploadError:w,handleChangeInput:F,handleChangeFile:I,handleSubmitComment:ee,onCloseCommentPanel:L,hasProjectManagementAccess:r,isVisibleInput:u,commentCount:p,attachmentActions:{onDownload:R,onPreview:te,onCancelUpload:z}},children:l(_le,{})})})});function yle(e){let{value:t,isLandscape:n,classes:r}=e,i=Dt(e=>e.breakpoints.down(`sm`));return l(f,{children:t&&i&&l(q,{sx:{p:2,display:`flex`,flexDirection:`row`,gap:1,gridColumn:2,gridRow:1,borderBottom:`1px solid #e0e0e0`,justifyContent:`space-between`},className:r?.root,children:d(f,{children:[l(si,{variant:`h6`,children:`${t.toLocaleDateString(`fa`,{dateStyle:`long`})}`}),l(si,{variant:`h5`,children:`${t.toLocaleTimeString(`fa`,{timeStyle:`short`})}`})]})})})}var g9=e=>{let{name:t,error:n=!1,value:r,helperText:i,slotProps:a,skeletonLoading:o,skeletonProps:s,clearable:c,views:u}=e,{t:d}=Ye(),[p,m]=(0,J.useState)(!1),h=isNaN(Number(r))?null:r,g=()=>m(()=>!0),_=()=>m(()=>!1);return l(f,{children:o?l(dr,{...s,height:s?.height||42}):l(kn,{dateAdapter:Gq,dateFormats:{monthShort:`MMMM`},localeText:{cancelButtonLabel:d(`common.labels.cancel`),okButtonLabel:d(`common.labels.select`),datePickerToolbarTitle:``,dateTimePickerToolbarTitle:``},children:l(mW,{...e,open:p,ampm:!1,ampmInClock:!1,name:t,onOpen:g,onClose:_,value:h,views:u,thresholdToRenderTimeInASingleColumn:30,slots:{openPickerIcon:$_,toolbar:yle},slotProps:{textField:{onClick:g,error:n,value:h,helperText:i,fullWidth:!0,inputProps:{readOnly:!1},...a?.textField}
2745,field:{clearable:c,readOnly:!1}}})})})},ble=B()(e=>({root:{transition:`0.1s ease-in-out`,marginRight:0,paddingLeft:e.spacing(1.25)},skeleton:{padding:e.spacing(1)},rootDone:{background:`#F3FFF7`},checkbox:{border:`1px solid #ABABAB`,borderRadius:`50%`,width:e.spacing(2.25),height:e.spacing(2.25),cursor:`pointer`,"& svg":{width:`100%`,height:`100%`}},done:{"& svg":{color:e.palette.success.main}},withLabelSize:{marginRight:e.spacing(1),fontSize:e.spacing(2)},withOutLabelSize:{margin:0,padding:0},doneLabel:{color:e.palette.success.main,fontWeight:700,"&:hover":{background:`unset`}},disabled:{"& svg":{color:e.palette.text.gray}}})),_9=e=>{let{classes:t,cx:n}=ble(),{t:r}=Ye(),{label:i,skeletonLoading:a,skeletonProps:o,checked:s,onChange:c,task:u,showTooltip:d,disabled:p,defaultChecked:m}=e,h=s||m;return l(f,{children:a?l(q,{className:t.skeleton,children:l(dr,{...o,height:o?.height||42,width:o?.width||150})}):l(q,{children:l(Br,{control:l(li,{title:d&&r(h?`tasks.labels.task-done`:`tasks.labels.task-undone`),children:l(kr,{...e,classes:{checked:n({[t.done]:h,[t.disabled]:p})},icon:l(ite,{}),checkedIcon:l(J_,{}),onChange:e=>c(e,u)})}),disabled:p,label:i,classes:{root:n(t.root,{[t.withLabelSize]:!!i,[t.withOutLabelSize]:!i,[t.rootDone]:h&&!!i}),label:n({[t.doneLabel]:h})}})})})},xle=({onChange:e,accept:t,multiple:n=!1,children:r,...i})=>d(f,{children:[l(`input`,{ref:(0,J.useRef)(null),type:`file`,hidden:!0,accept:t,multiple:n,onChange:t=>{!t.target.files||t.target.files.length===0||(e(t),t.target.value=``)},...i}),r]}),Sle=B()(e=>({container:{display:`flex`,flexDirection:`column`,gap:e.spacing(1)},row:{textAlign:`left`,backgroundColor:e.palette.background.light,padding:`${e.spacing(.5)} ${e.spacing(1)}`,display:`flex`,flexDirection:`row`,justifyItems:`center`,justifyContent:`space-between`,alignItems:`center`,borderRadius:e.spacing(.5),fontWeight:`400`,gap:e.spacing(1)}})),Cle=e=>{let{classes:t,cx:n}=Sle(),{data:r,disabled:i=!1,onClick:a,getOptionKey:o,startIcons:s=[],endIcons:c=[],renderContent:u}=e;return l(q,{className:t.container,children:r?.map((e,r)=>d(q,{onClick:()=>a(e),className:n(t.row),children:[Array.isArray(s)?s.map(e=>e):s(e,r).map(e=>e),u(e),Array.isArray(c)?c.map(e=>e):c(e,r).map(e=>e)]},o(e)))})};function v9(e){return d(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[l(`defs`,{children:d(`linearGradient`,{id:`gradient1`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`100%`,children:[l(`stop`,{offset:`0%`,stopColor:`#F5E8FD`}),l(`stop`,{offset:`100%`,stopColor:`#B654EE`})]})}),e]})}var wle=B()(e=>({container:{display:`flex`,flexDirection:`column`,gap:e.spacing(1)},fileName:{wordBreak:`break-word`,flex:1},descriptionText:{marginTop:e.spacing(1),color:e.palette.text.gray,fontWeight:`normal`},actionBox:{display:`flex`,gap:e.spacing(1),marginTop:e.spacing(1)},truncate:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,display:`block`},gradientIcon:{color:`linear-gradient(303.02deg, #B654EE 13.67%, #F5E8FD 139.39%)`},btnFileInput:{textWrap:`nowrap`}})),Tle=e=>{let{data:t,onAttachmentItemClick:n,onDeleteAttachment:r,onPreviewAttachment:i,onDownloadAttachment:a,roleAccessibility:o,submitLoading:s,handleAddAttachment:c,hasProjectAccess:u,taskAttachmentActions:f=[`preview`,`download`,`delete`]}=e,{classes:p,cx:m}=wle(),{t:h}=Ye();return d(q,{className:p.container,children:[l(dN,{title:l(si,{endIcon:!u&&v9(l(Gv,{sx:{fill:`url(#gradient1)`},fontSize:`small`})),children:h(`tasks.labels.attachments`)})}),d(q,{className:p.actionBox,children:[d(fi,{variant:`outlined`,component:`label`,startIcon:l(L_,{}),className:p.btnFileInput,disabled:s||!o.isInfoEditable||!u,children:[h(`tasks.labels.add-attachment`),l(xle,{name:`attachments`,type:`file`,hidden:!0,onChange:c})]}),l(si,{variant:`subtitle2`,className:p.descriptionText,children:h(`tasks.labels.sizeFile`)})]}),l(Cle,{data:t??[],onClick:n,getOptionKey:e=>e.id,startIcons:(e,t)=>[...f.map(n=>{switch(n){case`delete`:return o.isInfoEditable?l(ui,{value:e?.id,onClick:t=>{t.stopPropagation(),t.preventDefault(),r(e)},size:`small`,disabled:s,children:l(U_,{})},`delete-task-attachment-button`):null;case`preview`:return l(ui,{onClick:n=>{n.stopPropagation(),n.preventDefault(),i(e,t)},size:`small`,disabled:s,children:l(oy,{})},`preview-task-attachment-button`);case`download`:return e.isNew?null:l(ui,{onClick:t=>{t.stopPropagation(),t.preventDefault(),a(e)},size:`small`,disabled:s,children:l(av,{})},`download-task-attachment-button`);default:return null}}),l(si,{style:{whiteSpace:`nowrap`,direction:`ltr`},children:j4(e.size)})],renderContent:e=>l(si,{variant:`body1`,dir:`ltr`,className:m(p.fileName,p.truncate),children:e?.name})})]})},Ele=B()(e=>({descriptionBox:{height:`unset`},projectMember:{backgroundColor:e.palette.background.lightRed,borderRadius:e.spacing(1),padding:e.spacing(1)},warning:{color:e.palette.text.error,fontSize:`14px`},alarmLabel:{backgroundColor:e.palette.background.lightLilac,fontSize:`12px`,padding:e.spacing(1),borderRadius:e.spacing(.5)}}
2745)),Dle=({onChangeTaskState:e,onChangeStartDate:t,onChangeEndDate:n,taskState:r,isInvalid:i,getValidationError:a,submitLoading:o,taskDataLoading:s,isEditMode:c,organizationId:u,openTreePosition:p,setOpenTreePosition:m,projectsList:h,positionEmployeeOptionsList:g,roleAccessibility:_,isAssigneeNotInProjectMembers:v,hasProjectAccess:y=!1,filteredAttachments:b,handleAddAttachmentWithValidation:x,handleRemoveAttachment:S,documentPreviewerDialog:C,taskAttachmentActions:w,isMobile:T=!1})=>{let{title:E,description:D,startDate:O,endDate:k,status:A}=r,{classes:j}=Ele(),{t:M}=Ye(),N=(0,J.useMemo)(()=>new Set(g?.map(({position:e})=>`${e.id}_${e.slot.join()}`)),[g]);return d(Vr,{container:!0,spacing:2,children:[l(Vr,{item:!0,xs:12,children:l(pN,{fullWidth:!0,disabled:o||!_.isInfoEditable,label:`${M(`common.labels.title`)}*`,value:E,onChange:t=>e({name:t.currentTarget.name,value:t.currentTarget.value}),id:`title`,name:`title`,error:i(`title`),helperText:a(`title`)||``,skeletonLoading:s})}),l(Vr,{item:!0,xs:12,children:l(pN,{fullWidth:!0,disabled:o||!_.isInfoEditable,multiline:!0,rows:4,label:M(`common.labels.description`),value:D,onChange:t=>{let{name:n,value:r}=t.currentTarget;e({name:n,value:r})},id:`description`,name:`description`,error:i(`description`),helperText:a(`description`)||``,InputProps:{classes:{root:j.descriptionBox}},skeletonLoading:s,skeletonProps:{height:`150px`}})}),l(Vr,{item:!0,xs:12,md:6,gap:3,children:l(q,{children:l(g9,{name:`startDate`,id:`startDate`,label:M(`common.labels.start-date`),clearable:!0,maxDateTime:k?(()=>{let e=new Date(k);return e.setMinutes(e.getMinutes()-1),e})():void 0,closeOnSelect:!1,onChange:e=>t({name:`startDate`,value:e}),value:O?new Date(O):null,disabled:o||!_.isInfoEditable,skeletonLoading:s,slotProps:{textField:{placeholder:``,inputProps:O?{readOnly:!0}:{readOnly:!0,value:``}}}})})}),l(Vr,{item:!0,xs:12,md:6,gap:3,children:l(q,{children:l(g9,{name:`endDate`,id:`endDate`,label:M(`common.labels.end-date`),clearable:!0,minDateTime:O?(()=>{let e=new Date(O);return e.setMinutes(e.getMinutes()+1),e})():void 0,closeOnSelect:!1,onChange:e=>n({name:`endDate`,value:e}),value:k?new Date(k):null,disabled:o||!_.isInfoEditable||!O,disableOpenPicker:o||!_.isInfoEditable||!O,skeletonLoading:s,slotProps:{textField:{placeholder:``,inputProps:k?{readOnly:!0}:{readOnly:!0,value:``}}}})})}),l(Vr,{item:!0,xs:12,children:s?l(dr,{height:42}):d(f,{children:[!g&&l($P,{organizationId:u,label:M(`tasks.labels.assigned-task-to`),selectedPositionEmployee:r.assignees?.[0]??[],selectedPositionEmployeeForTree:r.assignees?.[0]??[],handleChangeAutocomplete:(t,n)=>e({name:`assignees`,value:n?[n]:[]}),disabled:o||!_.isAssigneeEditable,isSingleSelection:!0,openPositionEmployeeViewerDialog:p,handleOpenPositionEmployeeViewerDialog:()=>m(!0),handleClosePositionEmployeeViewerDialog:()=>m(!1),onSubmitPositionEmployee:(t,n)=>{e({name:`assignees`,value:n?[n]:[]})},isMobile:!1,sortPositions:eF}),g&&l($P,{filter:e=>N.has(`${e.id}_${e.slot.join()}`),organizationId:u,label:M(`tasks.labels.assigned-task-to`),selectedPositionEmployee:r.assignees?.[0]??[],selectedPositionEmployeeForTree:r.assignees?.[0]??[],handleChangeAutocomplete:(t,n)=>e({name:`assignees`,value:n?[n]:[]}),disabled:o||!_.isAssigneeEditable,isSingleSelection:!0,openPositionEmployeeViewerDialog:p,handleOpenPositionEmployeeViewerDialog:()=>m(!0),handleClosePositionEmployeeViewerDialog:()=>m(!1),onSubmitPositionEmployee:(t,n)=>{e({name:`assignees`,value:n?[n]:[]})},isMobile:!1,sortPositions:eF})]})}),d(f,{children:[l(Vr,{item:!0,xs:12,children:l(lN,{noOptionsText:M(`common.messages.noOptions`),fullWidth:!0,options:h||[],getOptionLabel:e=>e.title||``,value:r.project??null,onChange:(t,n)=>{e({name:`project`,value:n})},disabled:o||!_.isProjectEditable||!y,slotProps:{popper:{sx:{zIndex:e=>e.zIndex.modal+15}}},renderInput:e=>l(pN,{...e,label:l(si,{variant:`inherit`,endIcon:!y&&v9(l(Gv,{sx:{fill:`url(#gradient1)`},fontSize:`small`})),children:M(`projects.labels.select-project`)}),variant:`outlined`,fullWidth:!0}),skeletonLoading:s})}),l(Vr,{item:!0,xs:12,children:l(Tle,{roleAccessibility:_,data:b??[],onAttachmentItemClick:()=>{},onDeleteAttachment:e=>S(e),onPreviewAttachment:(e,t)=>
2745{C.handleOpenDocumentPreviewer(b,t)},onDownloadAttachment:e=>Uj(e.id,e.name),submitLoading:!1,handleAddAttachment:e=>x(e),hasProjectAccess:y,taskAttachmentActions:w})})]}),v&&l(Vr,{item:!0,xs:12,className:j.projectMember,children:l(si,{className:j.warning,startIcon:l(dv,{color:`error`}),children:M(`projects.massages.not-member`)})}),c&&l(Vr,{container:!0,item:!0,xs:12,justifyContent:`space-between`,alignItems:`center`,children:l(_9,{skeletonLoading:s,onChange:t=>e({name:t.target.name,value:t.target.checked?`done`:`undone`}),checked:A===`done`,disabled:o||!_.isStatusEditable,name:`status`,label:M(`tasks.labels.task-done`)})}),T&&!y&&l(Vr,{item:!0,xs:12,children:l(si,{variant:`body2`,className:j.alarmLabel,startIcon:v9(l(Gv,{sx:{fill:`url(#gradient1)`},fontSize:`small`})),children:M(`tasks.labels.project-access-required`)})})]})},Ole=B()((e,{hasProjectAccess:t})=>({container:{width:`100%`,height:e.spacing(6),padding:e.spacing(1,1.5),backgroundColor:e.palette.background.shadow,borderRadius:e.spacing(1),display:`flex`,alignItems:`center`,justifyContent:t?`flex-end`:`space-between`,gap:e.spacing(1)},mobileContainer:{backgroundColor:`transparent`,borderBottom:`1px solid ${e.palette.divider}`,borderRadius:0},detailsButton:{width:e.spacing(4),height:e.spacing(4),border:`1px solid`,borderRadius:e.spacing(.5),borderColor:e.palette.warning.main,boxSizing:`border-box`},detailsCommentButton:{width:e.spacing(4),height:e.spacing(4),border:`1px solid`,borderRadius:e.spacing(1),borderColor:e.palette.info.light,boxSizing:`border-box`},openHistory:{backgroundColor:e.palette.background.lightRed},openComments:{color:e.palette.info.light},mobile:{width:e.spacing(4),height:e.spacing(4)},alarmLabel:{backgroundColor:e.palette.background.lightLilac,fontSize:`12px`,padding:e.spacing(1),borderRadius:e.spacing(1)}})),kle=({isMobile:e,tags:t,history:n,commentButton:r,hasProjectAccess:i=!1})=>{let{t:a}=Ye(),{classes:o,cx:s}=Ole({hasProjectAccess:i}),{allTags:c,selectedTags:u,handleChangeTags:f,handleCreateTag:p,handleUpdateTag:m,handleDeleteTag:h,handleFetchUsedCount:g,isDeletingTag:_,isEditingTag:v,isCreatingTag:y,editPopoverOrigins:b,tagOption:x}=t;return d(q,{className:s(o.container,{[o.mobileContainer]:e}),children:[!e&&!i&&l(G,{className:o.alarmLabel,children:l(si,{variant:`body2`,startIcon:v9(l(Gv,{sx:{fill:`url(#gradient1)`},fontSize:`small`})),children:a(`tasks.labels.project-access-required`)})}),d(G,{display:`flex`,alignItems:`center`,justifyContent:`flex-start`,gap:1,children:[n&&l(oz,{onClick:()=>n.toggleVisibleHistoryDialog(),selected:n.isVisibleHistoryDialog,mobile:e,color:`warning`,disabled:n.disabled,tooltip:a(`tasks.labels.history-task`),children:l(yy,{})}),l(Dz,{value:u,allTags:c,onChange:f,onCreateTag:p,onUpdateTag:m,onDeleteTag:h,onFetchUsedCount:g,isCreatingTag:y,isDeletingTag:_,isEditingTag:v,editPopoverOrigins:b,label:a(`tags.input.label`),placeholder:a(`tags.input.placeholder`),tagOption:x}),r&&l(Y4,{isMobile:e,open:r.open,onToggleCommentPanel:r.onToggleCommentPanel,disabled:r.disabled,count:r.count})]})]})},Ale=B()((e,{isCommentPanelOpen:t,isMobile:n})=>({root:{display:`flex`,flexDirection:`column`,width:`100%`},content:{display:`flex`,gap:t?e.spacing(2):0,height:n?`100%`:`calc(100vh - 325px)`,paddingTop:e.spacing(1)},formColumn:{flex:1,minWidth:0,maxHeight:`100%`,overflow:`scroll`,overflowX:`hidden`,paddingTop:e.spacing(1)},commentColumn:{flex:1,minWidth:0,maxHeight:`100%`}})),y9=({onChangeTaskState:e,onChangeStartDate:t,onChangeEndDate:n,taskState:r,isInvalid:i,getValidationError:a,submitLoading:o,taskDataLoading:s,isEditMode:c,organizationId:u,openTreePosition:f,setOpenTreePosition:p,projectsList:m,positionEmployeeOptionsList:h,roleAccessibility:g,isAssigneeNotInProjectMembers:_,hasProjectAccess:v=!1,filteredAttachments:y,handleAddAttachmentWithValidation:b,handleRemoveAttachment:x,documentPreviewerDialog:S,taskAttachmentActions:C,tags:w,history:T,comments:E,commentAuthor:D,isMobile:O})=>{let{id:k}=r,{classes:A}=Ale({isCommentPanelOpen:c&&!!E?.commentButton?.open,isMobile:O});return d(G,{className:A.root,children:[l(G,{children:l(kle,{isMobile:!!O,tags:{...w,handleChangeTags:t=>{w.handleChangeTags(t),e({name:`tags`,value:t})}},history:c?T:void 0,commentButton:E?.commentButton,hasProjectAccess:v})}),d(G,{className:A.content,children:[l(G,{className:A.formColumn,children:l(Dle,{organizationId:u,taskState:r,isMobile:!!O,onChangeTaskState:e,onCh
2745angeStartDate:t,onChangeEndDate:n,isInvalid:i,getValidationError:a,submitLoading:o,taskDataLoading:s,isEditMode:c,openTreePosition:f,setOpenTreePosition:p,projectsList:m,positionEmployeeOptionsList:h,roleAccessibility:g,isAssigneeNotInProjectMembers:_,hasProjectAccess:v,filteredAttachments:y,handleAddAttachmentWithValidation:b,handleRemoveAttachment:x,documentPreviewerDialog:S,taskAttachmentActions:C})}),c&&E?.commentButton?.open&&l(G,{className:A.commentColumn,children:l(vle,{opened:E.commentButton.open,taskId:k,organizationId:u,onClose:E.commentButton.onToggleCommentPanel,hasProjectAccess:v,isVisibleInput:E?.isVisibleCommentInput,documentPreviewerDialog:S,author:D,commentCount:E?.commentButton?.count?.value,fetchCommentsOnMount:!1})})]})]})},jle=B()(e=>({root:{},dialogActions:{display:`flex`,justifyContent:`space-between`},parentActionTask:{display:`flex`,justifyContent:`space-between`,flex:1},rightButton:{display:`flex`,flexDirection:`row`,gap:`16px`,flex:1}})),Mle=({onChangeTaskState:e,onChangeStartDate:t,onChangeEndDate:n,openTaskDialog:r,submitAndValidation:i,taskState:a,isInvalid:o,handleCloseTaskDialog:s,getValidationError:c,submitLoading:u,taskDataLoading:p,isEditMode:m,touched:h,openDeleteTaskConfirmationDialog:g,deleteTaskLoading:_,historyTaskLoading:v,organizationId:y,openTreePosition:b,setOpenTreePosition:x,disabledTaskStatus:S,handleOpenDialogTaskHistory:C,projectsList:w,positionEmployeeOptionsList:T,roleAccessibility:E,isAssigneeNotInProjectMembers:D,hasProjectAccess:O=!1,attachments:k,filteredAttachments:A,handleAddAttachmentWithValidation:j,handleRemoveAttachment:M,documentPreviewerDialog:N,taskAttachmentActions:P,tags:F,openDialogTaskHistory:I,isVisibleCommentInput:ee,commentsCount:L,commentAuthor:R,isVisibleCommentsDialog:z=!1,onToggleCommentsDialog:te})=>{let{t:ne}=Ye(),{classes:re}=jle();return l(NN,{open:r,onClose:u?()=>{}:s,isTitleShow:!0,title:ne(m?`tasks.labels.view-task`:`tasks.labels.create-new-task`),fullWidth:!0,maxWidth:`md`,showTopBorderInActions:!0,dialogActionClasses:m&&re.dialogActions,closeButtonProps:{disabled:u},backButtonProps:{disabled:u},dialogActionChildren:d(q,{className:re.parentActionTask,children:[l(q,{className:re.rightButton,children:m&&l(f,{children:l(fi,{"data-testid":`delete-task-button`,startIcon:l(nv,{}),disabled:u||_||!E.isTaskDeletable,variant:`outlined`,color:`error`,onClick:g,skeletonLoading:p,children:ne(`tasks.labels.delete-task`)})})}),l(fi,{disabled:!h.length||u||D,variant:`contained`,onClick:i,skeletonLoading:p,children:u?l(Oi,{color:`white`}):ne(m?`common.labels.edit`:`common.labels.submit`)})]}),className:re.root,children:l(y9,{onChangeTaskState:e,onChangeStartDate:t,onChangeEndDate:n,taskState:a,isInvalid:o,getValidationError:c,submitLoading:u,taskDataLoading:p,isEditMode:m,organizationId:y,openTreePosition:b,setOpenTreePosition:x,disabledTaskStatus:S,projectsList:w,positionEmployeeOptionsList:T,roleAccessibility:E,isAssigneeNotInProjectMembers:D,hasProjectAccess:O,attachments:k,filteredAttachments:A,handleAddAttachmentWithValidation:j,handleRemoveAttachment:M,documentPreviewerDialog:N,taskAttachmentActions:P,tags:F,history:{isVisibleHistoryDialog:I,toggleVisibleHistoryDialog:C,disabled:u||v},comments:{commentButton:m?{open:z,onToggleCommentPanel:te,disabled:u,count:L}:void 0,disabled:u,hasAccess:O,isVisibleCommentInput:ee},commentAuthor:R})})},Nle=B()(e=>({nestedOverlay:{zIndex:e.zIndex.modal+20}})),Ple=()=>{let{classes:e}=Nle(),{onChangeTaskState:t,onChangeStartDate:n,onChangeEndDate:r,openTaskDialog:i,submitAndValidation:a,taskState:o,isInvalid:s,getValidationError:c,submitLoading:u,handleCloseTaskDialog:p,taskDataLoading:m,isEditMode:h,touched:g,deleteTaskDialog:_,closeDeleteTaskConfirmationDialog:v,hasTaskPosition:y,deleteTaskSubmit:b,deleteTaskLoading:x,openDeleteTaskConfirmationDialog:S,organizationId:C,openTreePosition:w,setOpenTreePosition:T,disabledTaskStatus:E,openDialogTaskHistory:D,handleOpenDialogTaskHistory:O,handleCloseDialogTaskHistory:k,historyTaskLoading:A,taskHistoryData:j,projectsList:M,positionEmployeeOptionsList:N,roleAccessibility:P,isAssigneeNotInProjectMembers:
2745F,hasAccess:I,attachments:ee,filteredAttachments:L,handleAddAttachmentWithValidation:R,handleRemoveAttachment:z,documentPreviewerDialog:te,taskAttachmentActions:ne,tags:re,comments:ie,author:ae}=B1();return d(f,{children:[y&&i?l(Mle,{onChangeTaskState:t,onChangeStartDate:n,onChangeEndDate:r,openTaskDialog:i,submitAndValidation:a,taskState:o,isInvalid:s,handleCloseTaskDialog:p,getValidationError:c,submitLoading:u,taskDataLoading:m,isEditMode:h,touched:g,openDeleteTaskConfirmationDialog:S,deleteTaskLoading:x,organizationId:C,openTreePosition:w,setOpenTreePosition:T,disabledTaskStatus:E,historyTaskLoading:A,handleOpenDialogTaskHistory:O,openDialogTaskHistory:D,projectsList:M,positionEmployeeOptionsList:N,roleAccessibility:P,isAssigneeNotInProjectMembers:F,hasProjectAccess:I,attachments:ee,filteredAttachments:L,handleAddAttachmentWithValidation:R,handleRemoveAttachment:z,documentPreviewerDialog:te,taskAttachmentActions:ne,tags:re,isVisibleCommentInput:ie?.isVisibleCommentInput,commentsCount:ie?.count,commentAuthor:ae,isVisibleCommentsDialog:ie?.isVisibleCommentsDialog,onToggleCommentsDialog:ie?.onToggleCommentsDialog}):l(K4,{open:i,onClose:p}),l(W4,{open:_,onClose:v,onClickConfirm:b,loading:x}),l(zN,{historyData:j,historyType:`task`,onClose:k,loading:A,open:D,className:e.nestedOverlay,subject:o.title}),te?.open&&l(H4,{currentIndex:te.currentIndex,documents:te.documents,open:te.open,onClose:te.handleCloseDocumentPreviewer,className:e.nestedOverlay})]})},Fle=B()({extraIconButtons:{display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,margin:0,padding:0,"& svg":{width:16,height:16}},extraIconBox:{display:`inline-flex`,border:`1px solid `,borderRadius:`50%`,boxSizing:`border-box`,padding:8}}),Ile=({onClick:e,open:t,disabled:n})=>{let{stylesGenerator:r}=Fk(),{classes:i}=B()(r)(),{classes:a}=Fle();return d(ui,{id:`more-button`,className:a.extraIconButtons,classes:{root:i.circleButtonRoot},onClick:e,disabled:n,children:[l(q,{className:a.extraIconBox,children:l(t?gv:hi,{})}),l(si,{variant:`caption`,children:W(`common.labels.more`)})]})},Lle=B()(e=>({popper:{zIndex:1400},grow:{marginBottom:e.spacing(1),border:`1px solid ${e.palette.primary.main}`},transformLeftBottom:{transformOrigin:`left bottom`},transformRightBottom:{transformOrigin:`right bottom`},menuListBox:{width:150},menuItem:{display:`flex`,alignItems:`center`,padding:e.spacing(1),cursor:`pointer`,gap:e.spacing(1),fontSize:`14px`},icon:{marginRight:e.spacing(1)}})),Rle=({anchorEl:e,handleClick:t,itemsOnMore:n,open:r})=>{let{classes:i}=Lle();return l(br,{open:r,anchorEl:e,role:void 0,placement:`top-start`,transition:!0,className:i.popper,children:({TransitionProps:e,placement:a})=>l(Qn,{...e,className:`${i.grow} ${a===`top-start`?i.transformLeftBottom:i.transformRightBottom}`,children:l(Rn,{children:l(Ar,{onClickAway:t,children:l(Qr,{autoFocusItem:r,id:`composition-menu`,"aria-labelledby":`composition-button`,children:l(q,{className:i.menuListBox,children:n.map(e=>e.visible&&d(ei,{className:i.menuItem,onClick:e.onClick,id:e.id,disabled:e.disabled,children:[l(e.icon,{className:i.icon}),e.text]},e.id))})})})})})})},zle=()=>{let e=Dt(e=>e.breakpoints.down(`sm`)),{t}=Ye(),{openDeleteTaskConfirmationDialog:n,submitLoading:r,deleteTaskLoading:i,taskDataLoading:a,roleAccessibility:o}=B1(),[s,c]=(0,J.useState)(null),u=()=>c(null),p=[{id:`deleteTask`,onClick:()=>{n(),u()},icon:G_,visible:!0,desktopMoreOption:!1,mobileMoreOption:!0,disabled:r||i||!o.isTaskDeletable,text:t(`tasks.labels.delete-task`)}],m=e=>{c(s?null:e.currentTarget)},h=!!s,g=p.filter(t=>(e?t.mobileMoreOption:t.desktopMoreOption)===!0);return d(f,{children:[l(Ile,{open:h,onClick:m,disabled:r||i||a}),l(Rle,{anchorEl:s,handleClick:u,itemsOnMore:g,open:h})]})},Ble=B()(()=>({dialogActions:{display:`flex`,justifyContent:`space-between`},solutionHistory:{zIndex:1400}})),Vle=()=>{let{onChangeTaskState:e,onChangeStartDate:t,onChangeEndDate:n,openTaskDialog:r,submitAndValidation:i,taskState:a,isInvalid:o,getValidationError:s,submitLoading:c,handleCloseTaskDialog:u,taskDataLoading:p,isEditMode:m,touched:h,deleteTaskLoading:g,hasTaskPosition:_,organizationId:v,openTreePosition:y,setOpenTreePosition:b,disabledTaskStatus:x,deleteTaskDialog:S,closeDeleteTaskConfirmationDialog:C,deleteTaskSubmit:w,taskHistoryData:T,historyTaskLoading:E,openDialogTaskHistory:D,handleOpenDialogTaskHistory:O,handleCloseDialogTaskHistory:k,projectsList:A,positionEmployeeOptionsList:j,roleAccessibility:M,isAssigneeNotInProjectMembers:N,hasAccess:P,attachments:F,filteredAttachments:I,handleAddAttachmentWithValidation:ee,handleRemoveAttachment:L,documentPreviewerDialog:R,taskAttachmentActions:z,tags:te,comments:ne,author:re}=B1(),{t:ie}=Ye(),{classes:ae}=Ble();return d(f,{children:[_?l(NN,{open:r,onClose:c?()=>{}:u,isTitleShow:!0,title:ie(m?`tasks.labels.view-task`:`tasks.labels.create-new-task`),className:ae.root,fullScreen:!0,showTopBorderInActions:!0,closeButtonProps:{disabled:c},backButtonProps:{disabled:c},dialogActionClasses:m&&ae.dialogActions,dialogActionChildren:d(f,{children:[m&&(p?l(dr,{variant:`circular`,width:42,he
2745ight:42}):l(zle,{})),l(fi,{disabled:!h.length||c||N,variant:`contained`,onClick:i,skeletonLoading:p,children:c?l(Oi,{color:`white`}):ie(m?`common.labels.edit`:`common.labels.submit`)})]}),children:l(y9,{onChangeTaskState:e,onChangeStartDate:t,onChangeEndDate:n,taskState:a,isInvalid:o,getValidationError:s,submitLoading:c,taskDataLoading:p,isEditMode:m,organizationId:v,openTreePosition:y,setOpenTreePosition:b,disabledTaskStatus:x,projectsList:A,positionEmployeeOptionsList:j,roleAccessibility:M,isAssigneeNotInProjectMembers:N,hasProjectAccess:P,attachments:F,filteredAttachments:I,handleAddAttachmentWithValidation:ee,handleRemoveAttachment:L,documentPreviewerDialog:R,taskAttachmentActions:z,tags:te,history:{isVisibleHistoryDialog:D,toggleVisibleHistoryDialog:O,disabled:c||E},comments:{commentButton:m?{open:ne?.isVisibleCommentsDialog,onToggleCommentPanel:ne?.onToggleCommentsDialog,disabled:c,count:ne?.count}:void 0,disabled:c,hasAccess:P,isVisibleCommentInput:ne?.isVisibleCommentInput},commentAuthor:re,isMobile:!0})}):l(K4,{open:r,onClose:u}),l(W4,{open:S,onClose:C,onClickConfirm:w,loading:g}),l(zN,{historyData:T,historyType:`task`,onClose:k,loading:E,open:D,className:ae.solutionHistory,subject:a.title}),R?.open&&l(H4,{currentIndex:R.currentIndex,documents:R.documents,open:R.open,onClose:R.handleCloseDocumentPreviewer})]})},Hle=()=>{let{mobile:e,tablet:t,desktop:n}=V1();return l(e?Vle:n||t?Ple:f,{})},Ule=oN({initialState:{title:``,description:``,startDate:null,endDate:null,assignees:[],tags:[],project:null,attachments:[]},schema:{title:Dj.default.string().max(250).required(),description:Dj.default.string().max(4e3).allow(``),startDate:Dj.default.string().allow(``).allow(null).optional(),endDate:Dj.default.string().allow(``).allow(null).optional(),status:Dj.default.string(),assignees:Dj.default.array().optional(),tags:Dj.default.array().optional(),project:Dj.default.object().allow(null),attachments:Dj.default.array().optional()},comparers:{tags:(e,t)=>!R1(e,t)}})(({organizationId:e,taskState:t,setTaskState:n,initialState:r,openTaskDialog:i,setOpenTaskDialog:a,submitCreateTask:o,getValidationError:s,isInvalid:c,validationOnSubmit:u,validationOnChange:d,touched:f,handleCloseTaskDialog:p,taskDataLoading:m,isEditMode:h,submitUpdateTask:g,submitChangeTaskStatus:_,deleteTaskDialog:v,openDeleteTaskConfirmationDialog:y,closeDeleteTaskConfirmationDialog:b,hasTaskPosition:x,deleteTaskSubmit:S,deleteTaskLoading:C,historyTaskLoading:w,resetValidation:T,submitAssignTask:E,getTaskData:D,submitLoading:O,setSubmitLoading:k,navigateToCreatedTask:A,openTreePosition:j,setOpenTreePosition:M,disabledTaskStatus:N,openDialogTaskHistory:P,handleOpenDialogTaskHistory:F,handleCloseDialogTaskHistory:I,taskHistoryData:ee,disabledDelete:L,haveAccessCurrentPosition:R,projectsList:z,getMemberProject:te,positionEmployeeOptionsList:ne,roleAccessibility:re,isAssigneeNotInProjectMembers:ie,updateTaskProject:ae,hasAccess:oe,author:se,attachments:ce,filteredAttachments:le,handleAddAttachment:B,removeTaskAttachment:ue,documentPreviewerDialog:de,uploadAttachments:fe,taskAttachmentActions:pe,updateTaskTags:me,tags:_e,comments:ve})=>{let{t:ye}=Ye(),be=async()=>{if(!ie&&u({...t,attachments:ce})){let e=f.filter(e=>e!==`assignees`&&e!==`status`&&e!==`project`&&e!==`attachments`&&e!==`tags`);try{if(k(!0),h){if(e.length>0&&await g(),f.length>0&&f.includes(`status`)&&await _(),ce.some(e=>e.isNew||e.isDeleted)&&await fe(t.id),f.length>0&&f.includes(`assignees`)&&await E(),f.length>0&&f.includes(`project`)&&await ae(),f.length>0&&f.includes(`tags`)&&await me(),T(),!R()){p();return}A(t.id),D()}else{let e=ge();if((t.assignees?.length??0)>0&&t.project!==null&&(!await te()||ie)||!(await o(e))?.payload?.success)return;ce.some(e=>e.isNew||e.isDeleted)&&await fe(e),f.length>0&&f.includes(`assignees`)&&await E(e),f.length>0&&f.includes(`project`)&&await ae(e),T(),A(e)}}finally{k(!1)}}};(0,J.useEffect)(()=>T(),[i]);let xe=e=>{let{name:t,value:r}=e;d({target:{name:t,value:r}}),n(e=>({...e,[t]:r}))},Se=e=>{let{name:r,value:i}=e,a={target:{name:r,value:i?i.toISOString():null}};i&&t.endDate&&(HY(i,new Date(t.endDate))||WY(i,new Date(t.endDate)))||(d(a),n(e=>({...e,startDate:i?i.toISOString():null})),!i&&t.endDate&&Ce({name:`endDate`,value:null}))},Ce=e=>{let{name:i,value:a}=e;if(a&&t.startDate&&(HY(new Date(t.startDate),a)||WY(new Date(t.startDate),a)))return;let o=a?a.toISOString():null;!a&&!r.endDate&&(o=void 0),d({target:{name:i,value:o}}),n(e=>({...e,[i]:o}))};return l(z1.Provider,{value:{organizationId:e,taskState:t,setTaskState:n,onChangeTaskState:xe,onChangeStartDate:Se,onChangeEndDate:Ce,openTaskDialog:i,setOpenTaskDialog:a,submitAndValidation:be,isInvalid:c,getValidationError:s,handleCloseTaskDialog:p,taskDataLoading:m,isEditMode:h,touched:f,deleteTaskDialog:v,openDeleteTaskConfirmationDialog:y,closeDeleteTaskConfirmationDialog:b,hasTaskPosition:x,deleteTaskSubmit:S,deleteTaskLoading:C,historyTaskLoading:w,submitLoading:O,openTreePosition:j,setOpenTreePosition:M,disabledTaskStatus:N,openDialogTaskHistory:P,handleOpenDialogTaskHistory:F,handleCloseDialogTaskHistory:I,taskHistoryData:ee,disabledDelete:L,projectsList:z,positionEmployeeOptionsList:ne,roleAccessibility:re,isAssigneeNotInProjectMembers:ie,hasAccess:oe,attachments:ce,filteredAttachments:le,handleAddAttachmentWithValidation:e=>{let{files:t}=e.target;if(t&&t.length>0){let n=t[0];if(n.size>15728640){he.error(`${ye(`common.labels.sizeFile15MBLimit`)}`);return}let r={id:ge(),name:n.name,size:n.size};d({target:{name:`attachments`,value:[...ce,r]}}),B(e)}},handleRemoveAttachment:e=>{let t=[];t=e.isNew?ce?.filter(t=>t.id!==e.id):ce?.map(t=>
2745t.id===e.id?{...t,isDeleted:!0}:t),d({target:{name:`attachments`,value:t}}),ue(e)},documentPreviewerDialog:de,taskAttachmentActions:pe,tags:_e,author:se,comments:ve},children:l(Hle,{})})}),Wle=Ze(e=>{let{tasks:t,projects:n,positions:r,employees:i,orders:a,tags:o,comments:s}=e;return{tasks:t,projects:n,positions:r,employees:i,orders:a,tags:o,comments:s}},{createTaskAsync:ND,createTaskReset:rO,updateTaskAsync:PD,updateTaskReset:iO,changeTaskStatusAsync:HD,changeTaskStatusReset:aO,getTaskAsync:MD,getTaskReset:nO,deleteTaskAsync:FD,assignAsync:VD,taskHistoryAsync:ID,assignTaskProjectsAsync:YD,getTaskAttachmentsAsync:JD,addTaskAttachmentsAsync:KD,removeTaskAttachmentsAsync:qD,organizationEmployeeContactsAsync:yi,getProjectMembersAsync:mD,getAllProjectsAsync:fD,getOrganizationPositionsAsync:Ti,getOrganizationPositionsReset:Ci,availableSolutionsAsync:ic,availableSolutionsReset:dc,getTaskAttachmentsReset:cO,addTaskAttachmentsReset:lO,removeTaskAttachmentsReset:uO,fetchOrganizationTagsAsync:Jw,createTagAsync:Yw,updateTagAsync:Xw,deleteTagAsync:Qw,fetchTagUsedCountAsync:Zw,updateTaskTagsAsync:RD,updateTaskTagsReset:dO,getCommentsAsync:rD,commentsReset:oD,setTaskCommentCount:tO}),Gle=e=>Wle(t=>{let{orders:n,availableSolutionsAsync:r}=t,[i,a]=(0,J.useState)(!1),[o,s]=(0,J.useState)(!1),{organizationId:c}=h(),{signedInUser:u}=xc();return(0,J.useEffect)(()=>{!c||!u?.id||r({organizationId:c,userId:u.id})},[c,u]),(0,J.useEffect)(()=>{Array.isArray(n.availableSolutions?.data)?a(n.availableSolutions.data.includes(`Tasks`)):a(!1),n.availableSolutions.status===`pending`&&s(!0),n.availableSolutions.status===`idle`&&s(!1)},[n.availableSolutions?.data,n.availableSolutions?.status]),l(e,{hasAccess:i,loading:o,...t})}),Kle={deleteTag:{strategy:Nk.CQ.MEETINGS.TAGS.DELETE,behavior:zk.hidden},updateTag:{strategy:Nk.CQ.MEETINGS.TAGS.UPDATE,behavior:zk.hidden}},b9=(e=>Vk({schema:Kle})(e))(Gle(({tasks:e,projects:t,positions:n,tags:r,comments:i,getTaskAsync:a,getTaskReset:o,createTaskAsync:s,createTaskReset:c,updateTaskAsync:u,getTaskAttachmentsAsync:d,addTaskAttachmentsAsync:f,removeTaskAttachmentsAsync:p,changeTaskStatusAsync:m,deleteTaskAsync:g,assignAsync:_,organizationEmployeeContactsAsync:v,taskHistoryAsync:y,getOrganizationPositionsAsync:b,getProjectMembersAsync:x,getAllProjectsAsync:S,assignTaskProjectsAsync:C,getTaskAttachmentsReset:w,addTaskAttachmentsReset:T,removeTaskAttachmentsReset:E,fetchOrganizationTagsAsync:D,createTagAsync:O,updateTagAsync:k,deleteTagAsync:A,fetchTagUsedCountAsync:j,updateTaskTagsAsync:M,updateTaskTagsReset:N,getCommentsAsync:P,commentsReset:F,setTaskCommentCount:I,hasAccess:L=!1,loading:R=!1,security:z})=>{let{organizationId:te}=h(),{signedInUser:ne}=xc(),[re,ie]=ee(),{selectedPosition:ae,openTaskDialog:oe,setOpenTaskDialog:se,handleOpenCheckStatusOveredDialog:ce}=hg(),{organizationPositions:le}=n,{t:B}=Ye(),ue={id:re.get(`taskId`)??``,title:``,description:``,startDate:null,endDate:null,status:`undone`,assignees:[],requester:null,project:null,tags:[]},de=re.get(`taskId`),[fe,pe]=(0,J.useState)(ue),[me,_e]=(0,J.useState)(ue),[ve,ye]=(0,J.useState)(),[be,xe]=(0,J.useState)(R),[Se,Ce]=(0,J.useState)(!1),[V,we]=(0,J.useState)(!1),[Te,Ee]=(0,J.useState)(!1),[De,Oe]=(0,J.useState)(!1),[ke,Ae]=(0,J.useState)([]),[je,Me]=(0,J.useState)([]),[Ne,Pe]=(0,J.useState)([]),H=re.get(`commentPreview`)===`true`,[U,Fe]=(0,J.useState)(H),[Ie,Le]=(0,J.useState)([]),{selectedTags:Re,originalTags:ze,setSelectedTags:Be,setOriginalTags:Ve}=Ej(r),He=(0,J.useMemo)(()=>Ne.filter(e=>!e.isDeleted),[Ne]),Ue=D1({currentIndex:0,open:!1}),W=(0,J.useMemo)(()=>fe.assignees?.length===0||!fe.project||!t.allProjects.data?!1:!t.allProjects.data.find(e=>e.id===fe.project.id)?.members?.find(e=>tP(e.position)===tP(fe.assignees?.[0]?.position)),[fe.assignees,fe.project,t.allProjects]),We=()=>{!te||!ae?.position?.id||D({organizationId:te,limit:1e3,offset:0})},Ge=(0,J.useCallback)((e,t=!1)=>{Be(e??[]),t&&Ve(e??[])},[]),Ke=(0,J.useCallback)(()=>{let e=new Set((ze??[]).map(e=>e.id)),t=new Set((Re??[]).map(e=>e.id)),n=[];return Re.forEach(t=>{e.has(t.id)||n.push({id:t.id,action:`add`})}
2745),ze.forEach(e=>{t.has(e.id)||n.push({id:e.id,action:`remove`})}),n},[ze,Re]),qe=(0,J.useCallback)(e=>{if(!te||!ne||!ne.id||!ae||!ae.position){he.error(B(`tags.error.info-not-found`));return}let{id:t,...n}=e,{error:r,value:i}=Oj.validate({...n,organizationId:te});if(r){he.error(r.details[0].message);return}O({id:t,title:i.title,color:i.color,organization:{id:i.organizationId},creator:{user:{id:ne.id},position:{id:ae.position.id,slot:ae.position.slot}}})},[te,ne,ae]),Je=(0,J.useCallback)(async(e,t)=>{if(!te){he.error(`شناسه سازمان یافت نشد`);return}let n=Ie.find(t=>t.id===e)||Re.find(t=>t.id===e);if(!n){he.error(`برچسب یافت نشد`);return}let r=t.title??n.title,i=t.color??n.color,a=Uw(i);(await k({id:e,title:r,color:i,checkStatusOveredFunction:ce}))?.payload?.success&&Le(t=>t.map(t=>t.id===e?{...t,title:r,color:a.background,textColor:a.text}:t))},[Ie,te,Re,k]),Xe=(0,J.useCallback)(async e=>{await A({tagId:e,checkStatusOveredFunction:ce})},[A]),Ze=(0,J.useCallback)(async e=>(await j({tagId:e}))?.payload?.data??null,[j]),Qe=(0,J.useMemo)(()=>({anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`right`}}),[]);(0,J.useEffect)(()=>()=>{Be([]),Ve([]),o(),c(),Pe([]),w(),T(),E(),N()},[]),(0,J.useEffect)(()=>{te&&We()},[te,ae]),(0,J.useEffect)(()=>{let{data:e}=r.list;Array.isArray(e)&&Le(e.map(e=>{let t=e.color,n=Uw(t??``);return{id:e.id,title:e.title||e.name||e.label||``,color:n.background,textColor:e.textColor||n.text}}).filter(e=>!!e.id))},[r]),(0,J.useEffect)(()=>{xe(R)},[R]),(0,J.useEffect)(()=>{oe&&(Dt(),L&&pt(),ft())},[oe,ae,L]),(0,J.useEffect)(()=>{let{data:t,success:n}=e.taskAttachments;t&&n&&Pe(t)},[e.taskAttachments,L]),(0,J.useEffect)(()=>{if(!L)return;let{data:e,success:n}=t.allProjects;e&&n&&Me(e)},[t.allProjects,L]),(0,J.useEffect)(()=>{ae!==null&&de&&(se(!0),Object.keys(ae?.position).length&&(mt(),d({id:re.get(`taskId`)??``})))},[ae?.position,de]),(0,J.useEffect)(()=>{H&&Fe(!0)},[H]),(0,J.useEffect)(()=>{let{data:t}=e.task;if(t&&t.id===re.get(`taskId`)){let{tags:e}=t;ye(t);let n={id:t.id,title:t.title,description:t.description??``,startDate:t.startDate,endDate:t.endD
2745ate,status:t.status,assignees:t.assignees??[],requester:t.requester,project:t.projects?.[0],tags:e??[]},r=e?e.map(e=>{let{text:t,background:n}=Uw(e?.color??``);return{...e,color:n,textColor:t}}):[];pe(n),_e(n),Be(r),Ve(r),xe(!1)}},[e.task]);let $e=(0,J.useMemo)(()=>ae?.position?.id,[ae?.position]),et=(0,J.useMemo)(()=>le.data?.reduce((e,t)=>{let n=t.id,r=t.employees?.reduce((e,t)=>t?.user?.id===ne.id?{...e,[`${n}_${t.slot?.join?.(`-`)}`]:n}:e,{});return{...e,...r}},{})??{},[le.data]),tt=(0,J.useMemo)(()=>{let{status:t}=e.deleteTask;return t===`pending`},[e.deleteTask]),nt=(0,J.useMemo)(()=>r.delete.status===`pending`,[r.delete.status]),rt=(0,J.useMemo)(()=>r.update.status===`pending`,[r.update.status]),it=(0,J.useMemo)(()=>r.create.status===`pending`,[r.create.status]);(0,J.useEffect)(()=>{let{success:t}=e.deleteTask;t&&(Ce(!1),ut())},[e.deleteTask.data]);let at=(0,J.useMemo)(()=>{let{status:t}=e.taskHistory;return t===`pending`},[e.taskHistory]);(0,J.useEffect)(()=>{e.taskHistory.data&&Array.isArray(e.taskHistory.data)&&e.taskHistory.status===`idle`&&Ae(e.taskHistory.data)},[e.taskHistory]);let ot=(0,J.useMemo)(()=>{if(!(!t.allProjects.data||!fe.project?.id))return t.allProjects.data.find(e=>e.id===fe.project.id)?.members??void 0},[fe?.project?.id,t.allProjects.data]),st=(0,J.useMemo)(()=>{if(!de)return[`creator`];let e=[],t=tP(ae?.position);return t===tP(me.project?.owner?.position)&&e.push(`projectOwner`),t===tP(me.requester?.position)&&e.push(`creator`),tP(me.assignees?.[0]?.position)===t&&e.push(`assignee`),e},[de,ae,me]),ct=(0,J.useMemo)(()=>M1(N1(st,!!me?.assignees?.length,!!me.project),{hasResolution:!!ve?.resolution,isSignedInCreator:!!(ne?.id&&me.requester?.user?.id===ne.id)}
2745),[me,st,ve,ne?.id]),lt=(0,J.useMemo)(()=>{let e=[];return L&&(ct.isInfoEditable?e.push(`delete`,`preview`,`download`):e.push(`preview`,`download`)),e},[L,ct]),ut=()=>{ie(e=>(e.delete(`taskId`),e.delete(`commentPreview`),e),{replace:!0}),Be([]),Ve([]),_e(ue),se(!1),pe(ue),xe(!1),o(),we(!1),Pe([]),w(),T(),E(),Fe(!1)},dt=()=>{ie(e=>(e.delete(`commentPreview`),e),{replace:!0}),Fe(e=>!e)},ft=()=>{v({path:`${te}/employee-contacts`,queryObject:{limit:1e3,offset:0}})},pt=()=>{te&&S({organizationId:te,positionSlotId:tP(ae?.position),limit:1e3,offset:0})},mt=(0,J.useCallback)(()=>{xe(!0),de&&a({id:re.get(`taskId`)??``})},[de,a]),ht=async e=>{let{title:t,startDate:n,description:r,endDate:i}=fe,a=Re.map(e=>({id:e.id})),o=ae?.position?.id,c=ae?.position?.slot;return te&&ae?await s({data:{id:e,organization:{id:te??``},title:t,startDate:n,endDate:i,description:r,tags:a,requester:{user:{id:ne.id},position:{id:o,slot:c}},operation:{id:ge()}},checkStatusOveredFunction:ce}):{}},gt=async()=>{let{title:e,startDate:t,description:n,endDate:r}=fe,i=ae?.position?.id,a=ae?.position?.slot;de&&te&&await u({data:{title:e,startDate:t,endDate:r,description:n,id:fe.id,requester:{user:{id:ne.id},position:{id:i,slot:a}},organization:{id:te}},checkStatusOveredFunction:ce})},_t=async()=>{let e=ve?.operations?.slice(-1)[0],{status:t}=fe,n=ae?.position?.id,r=ae?.position?.slot;te&&fe.id&&t&&e?.id&&await m({status:t,id:fe.id,organization:{id:te},requester:{user:{id:ne.id},position:{id:n,slot:r}}})},vt=()=>{Ce(!0)},yt=()=>{Ce(!1)},bt=()=>{de&&g({id:fe.id,positionSlotId:tP(ae?.position)})},xt=()=>({user:{id:ne.id},position:{id:ae?.position.id,slot:ae?.position.slot}}),St=()=>{if(fe?.assignees?.length){let e=fe.assignees[0],t=e?.user?{id:e.user.id}:null,n={id:e.position.id,slot:Array.isArray(e.position.slot)?e.position.slot:[]};return t?.id?{user:t,position:n}:{position:n}}},Ct=async e=>{await _({id:e??fe.id,requester:xt(),assignee:St(),organization:{id:te||``}})},wt=async e=>{let{itemsToAdd:t,itemsToRemove:n}=A1({initList:me.project?[me.project]:[],currentList:fe.project?[fe.project]:[],keyMaker:e=>`${e?.id}`,formatItem:(e,t)=>({id:e.id,action:t})}),r=n.map(async t=>{await C({id:e??fe.id,requester:xt(),projects:[t],organization:{id:te||``}})});await Promise.all(r);let i=t.map(async t=>{await C({id:e??fe.id,requester:xt(),projects:[t],organization:{id:te||``}})});await Promise.all(i)},Tt=async e=>{let t=Ke();t.length!==0&&await M({id:e??fe.id,data:{tags:t},checkStatusOveredFunction:ce})},Et=async()=>fe.project===null?!1:x({projectId:fe.project.id}),Dt=()=>{b({path:`organization/${te}`,queryObject:{limit:1e3,offset:0}})},Ot=e=>{let t={};for(let[e,n]of re)t[e]=n;t.taskId=e,ie(t)},G=()=>{if(fe.requester&&le.data?.length){let e=tP(fe.requester);return!et?.[e]}return!0},kt=()=>{let e=tP(fe.assignees?.[0]?.position),t=tP(fe.requester?.position),n=tP(ae?.position);return t===n||e===n},At=()=>{if(de){let{id:e,slot:t}=ae?.position??{};return P1(me.assignees?.[0]??null,{position:{id:e,slot:t}})}return!1},jt=()=>{let e={id:fe.id};Oe(!0),y(e)},Mt=()=>{Oe(!1)},Nt=e=>{Pe(t=>[...t,e])},Pt=e=>{Pe(t=>e.isNew?t.filter(t=>t.id!==e.id):t.map(t=>t.id===e.id?{...t,isDeleted:!0}:t))},Ft=e=>{let{files:t}=e.target;if(t&&t.length>0){let e=t[0];Nt({id:ge(),name:e.name,size:e.size,url:URL.createObjectURL(e),file:e,isNew:!0,isDeleted:!1})}},{uploadDocument:It}=zj({domain:`tasks`}),Lt=async e=>{let t=Ne.filter(e=>e.isDeleted&&!e.isNew);t.length>0&&await p({attachmentIds:t.map(e=>e.id).join(`_`),id:fe.id});let n=Ne.filter(e=>e.isNew);if(n.length){let t=await It(n.map(e=>e.file),`task-attachment`,e);t.solutionQuotaException&&he.error(B(`error.com-chargoon-cloud-svc-documents.documents.getDocumentPreview.SolutionQuotaException`)),t.uploadedList.length&&await f({attachments:t.uploadedList.filter(e=>e.success).map(e=>({id:e.data.id,name:e.data.filename,size:e.data.size})),id:e})}d({id:e})},Rt=(0,J.useMemo)(()=>{let n=e.task.data?.projects?.[0];if(!n?.id||!ne?.id)return!1;let r=t.allProjects.data?.find(e=>e.id===n.id)??n;return r.owner?.user?.id===ne.id?!0:!!r.members?.some(e=>e.user?.id===ne.id)},[t.allProjects.data,ne?.id,e.task.data?.projects]),zt=(0,J.useMemo)(()=>
2745e.commentCount??0,[e.commentCount]),Bt=i.comments.status===`pending`&&zt===0,Vt=re.get(`taskId`)??``;return(0,J.useEffect)(()=>{if(!(oe&&te&&ne?.id&&ae?.position&&Vt&&fe.id===Vt)){I(0);return}let e=!0;return(async()=>{let t=await P({organizationId:te,entity:`task`,entityId:Vt,offset:0,limit:12});e&&I(t?.payload?.meta?.pagination?.total??0)})(),()=>{e=!1,F(),I(0)}},[F,P,oe,te,Vt,I,fe.id,ae?.position?.id,ne?.id]),l(Ule,{organizationId:te,taskState:fe,setTaskState:pe,openTaskDialog:oe,setOpenTaskDialog:se,submitCreateTask:ht,handleCloseTaskDialog:ut,taskDataLoading:be,isEditMode:de,submitUpdateTask:gt,submitChangeTaskStatus:_t,deleteTaskDialog:Se,openDeleteTaskConfirmationDialog:vt,closeDeleteTaskConfirmationDialog:yt,hasTaskPosition:$e,deleteTaskSubmit:bt,deleteTaskLoading:tt,initialState:{...me,attachments:e.taskAttachments.data},submitAssignTask:Ct,getTaskData:mt,submitLoading:V,setSubmitLoading:we,navigateToCreatedTask:Ot,openTreePosition:Te,setOpenTreePosition:Ee,disabledTaskStatus:At,openDialogTaskHistory:De,handleOpenDialogTaskHistory:jt,handleCloseDialogTaskHistory:Mt,historyTaskLoading:at,taskHistoryData:ke,disabledDelete:G,haveAccessCurrentPosition:kt,projectsList:je,getMemberProject:Et,positionEmployeeOptionsList:ot,roleAccessibility:ct,isAssigneeNotInProjectMembers:W,updateTaskProject:wt,updateTaskTags:Tt,hasAccess:L,attachments:Ne,filteredAttachments:He,addTaskAttachment:Nt,removeTaskAttachment:Pt,handleAddAttachment:Ft,documentPreviewerDialog:Ue,uploadAttachments:Lt,taskAttachmentActions:lt,tags:{allTags:Ie,selectedTags:Re,handleChangeTags:Ge,handleCreateTag:qe,handleUpdateTag:Je,handleDeleteTag:Xe,handleFetchUsedCount:Ze,isDeletingTag:nt,isEditingTag:rt,isCreatingTag:it,organizationId:te??``,editPopoverOrigins:Qe,tagOption:{hidden:z.updateTag.hidden||z.deleteTag.hidden}},author:{user:{id:ne?.id??``},position:{id:ae?.position?.id??``,slot:ae?.position?.slot??[]}},comments:{isVisibleCommentInput:Rt,count:{value:zt,loading:Bt},isVisibleCommentsDialog:U,onToggleCommentsDialog:dt}})})),x9=({title:e,value:t,children:n})=>{let{t:r}=Ye();return l(ti,{title:t??r(`tooltip.${e}`),children:n})},qle=B()(e=>({backBtn:{backgroundColor:`#f3f3f3`,zIndex:99,marginLeft:e.spacing(2)}})),S9=e=>{let{goBack:t}=e,{classes:n}=qle();return l(x9,{title:`back`,children:l(Gn,{"aria-label":`arrowForward`,className:n.backBtn,onClick:t,children:l(Bu,{})})})};S9.propTypes={goBack:Z.default.func.isRequired};var Jle=B()(e=>({hr:{margin:e.spacing(0,1)}})),Yle=({userOrganizationPositions:e,profile:t,handleOnChange:n,selectedPosition:r,otherItems:i,isLoading:a,isReadOnlyPositionSelection:o})=>{let{classes:s}=Jle(),{t:c}=Ye();return l(f,{children:a?l(dr,{variant:`rounded`,height:42,width:`216px`}):t.userProfile.data?e.length===1?l(q,{sx:{backgroundColor:e=>e.palette.background.light,borderRadius:e=>e.spacing(1),color:e=>e.palette.text.secondary,margin:e=>e.spacing(0,1),padding:e=>e.spacing(2.5,0),width:`216px`,maxWidth:`216px`,textAlign:`center`,height:`36px`,display:`flex`,alignItems:`center`},children:e?.map(e=>l(q,{sx:{padding:e=>e.spacing(0,2),textAlign:`start`,fontSize:`14px`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.title}))}):r?.hasOwnProperty(`id`)||r?.hasOwnProperty(`slot`)?d(Sr,{slotProps:{input:{readOnly:o}},id:`position-select`,value:JSON.stringify({id:r.id,slot:r.slot}),sx:{maxWidth:`216px`,width:`216px`,backgroundColor:e=>e.palette.background.light,fontSize:`14px`},children:[e?.map(e=>l(Lk,{value:JSON.stringify({id:e.id,slot:e.slot}),sx:{width:`216px`,maxWidth:`216px`,display:`block`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},onClick:()=>n(JSON.stringify({id:e.id,slot:e.slot})),children:e.title},e.id)),e.length>1&&i?.find(e=>e?.type===`aggregate-positions`)&&l(`hr`,{className:s.hr}),i?.map(t=>e.length>1&&t?.type===`aggregate-positions`&&l(Lk,{value:JSON.stringify({id:t.id}),sx:{color:e=>e.palette.text.link},onClick:()=>n(JSON.stringify({id:t.id})),children:t.title},t.id))]}):l(q,{sx:{backgroundColor:e=>e.palette.background.cream,color:e=>e.palette.text.error,margin:e=>e.spacing(0,1),padding:e=>e.spacing(2.5,2),borderRadius:e=>e.spacing(1),width:`216px`,maxWidth:`216px`,height:`36px`,textAlign:`start`,fontSize:`14px`,display:`flex`,alignItems:`center`},children:c(`common.labels.empty-positions`)}):``})},Xle=B()(e=>({button:{width:`100%`,minWidth:`240px`,color:e.palette.text.gray,display:`flex`,justifyContent:`space-between`,textTransform:`none`},paperAnchorBottom:{borderTopRightRadius:e.spacing(1),borderTopLeftRadius:e.spacing(1)},arrowButtonAllGroups:{display:`flex`,justifyContent:`center`,padding:0,margin:0,"& svg":{width:`2rem`,height:`2rem`}},list:{maxHeight:`220px`,overflow:`scroll`,paddingTop:0,paddingBottom:e.spacing(3)},listItem:{padding:e.spacing(0,2)},listItemText:{display:`flex`,alignItems:`center`,marginRight:e.spacing(2)},tickIcon:{color:e.palette.text.success,marginRight:`calc(-1em - 8px)`,marginLeft:e.spacing(1)},noPositionText:{display:`flex`,justifyContent:`center`,fontSize:`14px`}})),Zle=({userOrganizationPositions:e,profile:t,handleOnChange:n,selectedPosition:r,openDrawer:i,setOpenDrawer:a,otherItems:o,isLoading:s,isReadOnlyPositionSelection:c})=>{let{classes:u}=Xle(),{t:p}=Ye();return l(f,{children:s?l(dr,{variant:`rounded`,height:42,width:`100%`}):t.userProfile.data?e.length===1?l(q,{sx:{padding:e=>e.spacing(1,0),color:e=>
2745e.palette.text.secondary,width:`100%`,maxWidth:`100%`,display:`flex`},children:e?.map(e=>l(q,{sx:{padding:e=>e.spacing(0,1),textAlign:`start`,fontSize:e=>e.spacing(2)},children:e.title}))}):r?.hasOwnProperty(`id`)||r?.hasOwnProperty(`slot`)?d(f,{children:[l(fi,{endIcon:e.length>1&&l(Hv,{}),className:u.button,onClick:c?void 0:()=>a(!0),children:l(q,{sx:{textAlign:`start`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:e.find(e=>e.id===r.id)?.title})}),l(RN,{type:`arrowDown`,open:i,disableSwipeToOpen:!0,onClose:()=>a(!1),classes:{paperAnchorBottom:u.paperAnchorBottom},children:l(q,{children:d(Gr,{className:u.list,children:[e?.map(e=>l(LA,{onClick:()=>n(JSON.stringify({id:e.id,slot:e.slot})),className:u.listItem,children:l(ip,{children:d(q,{className:u.listItemText,children:[r?.id===e.id&&l(Eg,{className:u.tickIcon}),l(Xr,{primary:Me(t.userProfile.data,e)})]})})},e.id)),o?.map(t=>e.length>1&&t?.type===`aggregate-positions`&&l(LA,{onClick:()=>n(JSON.stringify({id:t.id})),className:u.listItem,children:l(ip,{children:d(q,{className:u.listItemText,children:[r?.id===t.id&&l(Eg,{className:u.tickIcon}),l(Xr,{primary:t.title})]})})},t.id))]})})})]}):l(q,{sx:{padding:e=>e.spacing(1,0),color:e=>e.palette.text.error,width:`100%`,maxWidth:`100%`,display:`flex`},children:p(`common.labels.empty-positions`)}):``})},C9=()=>{let{signedInUser:e}=xc(),t=h(),{organizationId:n}=t,{setSelectedPosition:r}=hg(),i=()=>{try{return JSON.parse(localStorage.getItem(`position-${n}-${e.id}`)||`{}`)}catch{return null}};return{getSelectedPosition:()=>i()?.position,updateSelectedPosition:n=>{if(n===null){localStorage.removeItem(`position-${t.organizationId}-${e.id}`),r(null);return}localStorage.setItem(`position-${t.organizationId}-${e.id}`,JSON.stringify({position:{id:n.id,slot:n.slot}})),r(JSON.parse(localStorage.getItem(`position-${t.organizationId}-${e.id}`)||`{}`))}}},w9=Ze(e=>{let{positions:t,profile:n}=e;return{positions:t,profile:n}},{getPositionsAsync:wi})(({profile:e,otherItems:t,getPositionsAsync:n,positions:r,isReadOnlyPositionSelection:i=!1})=>{let{organizationId:a}=h(),{signedInUser:o}=xc(),s=Dt(e=>e.breakpoints.down(`sm`)),c=Dt(e=>e.breakpoints.between(`sm`,`lg`)),u=Dt(e=>e.breakpoints.up(`lg`)),{getSelectedPosition:d,updateSelectedPosition:p}=C9(),[m,g]=(0,J.useState)([]),[_,v]=(0,J.useState)(!0),[y,b]=(0,J.useState)(!1),{selectedPosition:x}=hg();(0,J.useEffect)(()=>{n({userId:o.id})},[]),di(()=>{v(!1)},[m]),(0,J.useEffect)(()=>{let{data:e}=r.positionsUser;if(e!=null)if(e?.length){let t=e.filter(e=>e.organization.id===a);g(t);let n=d();if(n?.id&&n?.slot&&t.find(e=>e.id===n.id&&JSON.stringify(e.slot)===JSON.stringify(n.slot))){p(n);return}p({id:t?.[0]?.id,slot:t?.[0]?.slot})}else g([])},[r.positionsUser.data,a]);let S={userOrganizationPositions:m,profile:e,handleOnChange:e=>{p(JSON.parse(e)),b(!1)},selectedPosition:x?.position,openDrawer:y,setOpenDrawer:b,otherItems:t,isReadOnlyPositionSelection:i,isLoading:_};return l(f,{children:s?l(Zle,{...S}):c||u?l(Yle,{...S}):l(f,{})})}),Qle=B()({disabled:{cursor:`text !important`,color:`rgba(0, 0, 0, 0.87) !important`}}),T9=({hidden:e,security:t,to:n,component:r,tooltip:i,...a})=>{let{classes:o,cx:s}=Qle();return l(f,{children:!e&&!t?.hidden&&l(li,{title:i,children:l(ep,{className:s({[o.disabled]:t?.disabled},a.className),component:r,to:!t?.disabled&&n,...a})})})},$le=B()(e=>({breadCrumbsRoot:{flex:`auto`,marginRight:e.spacing(1)},link:{color:e.palette.text.link}})),eue=({breadcrumbsItems:e,breadcrumbsPaths:t,security:n})=>{let{classes:r}=$le();return l(Cf,{"aria-label":`breadcrumb`,classes:{root:r.breadCrumbsRoot},separator:l(Yv,{fontSize:`small`}),children:e?.length&&e.map((i,a)=>l(q,{children:a===e.length-1?l(si,{color:`text.primary`,children:i}):l(T9,{to:t[a],classes:{root:r.link},security:n[e[a]],tooltip:n[e[a]]?.allow===!1?`شما دسترسی ندارید`:null,component:S,underline:`hover`,children:i})}))})},tue=({urlPathSegments:e,translatedPathSegments:t,security:n})=>l(eue,{breadcrumbsItems:t,breadcrumbsPaths:e,security:n}),nue=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%3e%3cg%20data-name='Rectangle%208640'%20style='stroke:%23655aaf;stroke-width:1.5px;fill:none'%3e%3crect%20width='8'%20height='8'%20rx='2'%20style='stroke:none'/%3e%3crect%20x='.75'%20y='.75'%20width='6.5'%20height='6.5'%20rx='1.25'%2
27450style='fill:none'/%3e%3c/g%3e%3cg%20data-name='Rectangle%208643'%20transform='translate(10)'%20style='stroke:%23655aaf;stroke-width:1.5px;fill:none'%3e%3crect%20width='8'%20height='8'%20rx='2'%20style='stroke:none'/%3e%3crect%20x='.75'%20y='.75'%20width='6.5'%20height='6.5'%20rx='1.25'%20style='fill:none'/%3e%3c/g%3e%3cg%20data-name='Rectangle%208642'%20transform='translate(10%2010)'%20style='stroke:%23655aaf;stroke-width:1.5px;fill:none'%3e%3crect%20width='8'%20height='8'%20rx='4'%20style='stroke:none'/%3e%3crect%20x='.75'%20y='.75'%20width='6.5'%20height='6.5'%20rx='3.25'%20style='fill:none'/%3e%3c/g%3e%3cg%20data-name='Rectangle%208641'%20transform='translate(0%2010)'%20style='stroke:%23655aaf;stroke-width:1.5px;fill:none'%3e%3crect%20width='8'%20height='8'%20rx='2'%20style='stroke:none'/%3e%3crect%20x='.75'%20y='.75'%20width='6.5'%20height='6.5'%20rx='1.25'%20style='fill:none'/%3e%3c/g%3e%3c/svg%3e`,rue=B()((e,{isSelectedApp:t})=>({flex:{display:`flex`,justifyContent:`space-between`,alignItems:`center`},appSwitcherRoot:{display:`flex`,justifyContent:`space-between`,alignItems:`center`,overflow:`hidden`,cursor:`pointer`,borderRadius:4,padding:8,width:t?`36px`:`46px`,border:`1px solid ${e.palette.background.light}`,transition:`width 0.5s`,"& #app-switcher-form-control":{display:`none`},"& p":{display:`none`},"& svg":{display:`none`,color:`#ABABAB`},"&:hover":{direction:`ltr`,display:`flex`,flexDirection:`row-reverse`,background:`unset`,width:`150px`,"& p":{display:`block`},"& svg":{display:`block`}}},label:{color:e.palette.text.dark,fontWeight:700,fontSize:13,margin:e.spacing(0,1),lineHeight:0},maxWidthAppSwitcher:{width:`150px !important`,"& p":{display:`block`,color:e.palette.text.dark},"& svg":{display:`block`,color:`#ABABAB`},"& div:first-child":{flexFlow:`row-reverse`}},solutionIcon:{maxWidth:`28px !important`,maxHeight:`28px !important`,padding:0},selectedSolutionIcon:{width:`28px !important`,height:`28px !important`,padding:0},menu:{width:`150px`,padding:0,marginTop:e.spacing(.5)},menuItem:{display:`flex`,alignItems:`center`,"& img":{marginLeft:e.spacing(1)},"& p":{fontWeight:400,fontSize:`13px`,color:`#49454F`}},menuTypography:{fontSize:`12px`,textAlign:`center`,verticalAlign:`center`,color:e.palette.text.gray},backToOrganization:{display:`flex`,justifyContent:`center`,borderTop:`1px solid ${e.palette.text.lightGray}`,marginTop:e.spacing(.5)},link:{fontSize:12,color:e.palette.text.link,marginTop:e.spacing(1),fontWeight:400}})),iue=Ze(e=>({availableSolutions:e.orders.availableSolutions.data}),{})(({availableSolutions:e})=>{let t=P(),n=D(),r=h(),{t:i}=Ye(),{organizationId:a}=r,[o,s]=(0,J.useState)(``),[c,u]=J.useState(null),p=!!c,[m,g]=(0,J.useState)([]),_=()=>{let{pathname:e}=t;return e.includes(`correspondence`)?`Correspondence`:e.includes(`meetings`)?`Meetings`:e.includes(`chat`)?`Chat`:``};(0,J.useEffect)(()=>{s(_())},[t]),(0,J.useEffect)(()=>{e?.length&&g(e.filter(e=>e!==o)||[])},[o,e]);let{classes:v,cx:y}=rue({isSelectedApp:o===``}),b=e=>{switch(u(null),e){case`Correspondence`:n(`/organizations/${a}/correspondence/active?tab=correspondence-in-progress`);break;case`Meetings`:n(`/organizations/${a}/meetings`);break;case`Tasks`:n(`/organizations/${a}/projects`);break;case`Chat`:n(`/organizations/${a}/chat`);break;default:break}},x=e=>{u(e.currentTarget)},C=()=>{u(null)};return d(f,{children:[d(G,{className:y({[v.appSwitcherRoot]:!0,[v.maxWidthAppSwitcher]:p}),onClick:x,children:[d(G,{className:v.flex,children:[l(St,{variant:`body1`,className:v.label,children:o?MA.find(e=>e.id===o).label:i(`solutions.labels.solutions`)}),l(`img`,{className:o===``?v.solutionIcon:v.selectedSolutionIcon,src:o?MA.find(e=>e.id===o).imgSrc.enabled:nue,alt:`appsImg`})]}),l(Dg,{})]}),l($r,{id:`solutions-menu`,anchorEl:c,open:p,onClose:C,classes:{paper:v.menu},children:d(G,{children:[e?.length===0?l(St,{variant:`body1`,className:v.menuTypography,children:i(`organization.labels.noActiveSolution`)}):l(f,{children:m.length===0?l(St,{variant:`body1`,className:v.menuTypography,children:i(`organization.labels.noOtherAvailableSolutions`)}):m.length&&m.map(e=>{let t=MA.find(t=>
2745t.id===e);return t?d(ei,{className:v.menuItem,onClick:()=>b(t.id),children:[l(`img`,{className:v.selectedSolutionIcon,src:t.imgSrc.enabled,alt:t.imgAlt}),l(St,{variant:`body1`,children:t?.label})]},t.id):null})}),o&&l(G,{className:v.backToOrganization,children:l(ep,{to:`/organizations/${a}`,component:S,className:v.link,variant:`body1`,children:i(`organization.labels.backToOrganization`)})})]})})]})}),aue=B()((e,{mobile:t})=>({badgeRoot:{margin:e.spacing(0,.8,0,0)},badge:{cursor:`pointer`,background:`#ff6060`,color:`#fff`,fontSize:10,padding:2,minWidth:18,minHeight:18,height:18,transform:t?`scale(1) translate(260%, 26%)`:`scale(1) translate(120%, -30%)`,lineHeight:`normal`,top:t?`unset`:0},BottomNavigationActionRoot:{color:e.palette.text.gray,opacity:1}}));function oue({unreadCount:e,navigateToMobileChat:t,organizationId:n,loading:r,availableSolutions:i,selectedOrganizationId:a}){let o=Dt(e=>e.breakpoints.down(`sm`)),{classes:s}=aue({mobile:o}),{t:c}=Ye(),{organizationId:u}=h(),[d]=ee(),f=d.get(`organizationId`),p=(0,J.useMemo)(()=>n||u||f||a,[n,u,f,a]),{signedInUser:m}=xc(),{getAvalaibleSolutions:g}=yc();(0,J.useEffect)(()=>{!p||!m?.id||g({organizationId:p,userId:m.id})},[p,m?.id,g]);let _=!!i?.includes(`Chat`);if(!p)return null;let v=o?l(df,{showLabel:!0,label:c(`chat.title`),icon:l(sy,{}),onClick:t,value:`/organizations/${p}/chat`,classes:{root:s.BottomNavigationActionRoot}}):l(fi,{sx:{minWidth:32,width:32,height:32,boxShadow:`none`},component:S,to:`/organizations/${p}/chat`,id:`create-task-button-on-top-bar-desktop`,variant:`outlined`,disabled:_&&r,children:l(sy,{fontSize:`small`,sx:{stroke:`none`}})});return l(ef,{badgeContent:e,invisible:!_||e===0,classes:{root:s.badgeRoot,badge:s.badge},children:v})}var E9=Ze(e=>{let t=e.chat.conversations.unreadCount;return{unreadCount:t.data,loading:t.status===`pending`,availableSolutions:e.orders.availableSolutions.data,selectedOrganizationId:e.organization.selectedOrganization?.id}},{})(oue),sue=`data:image/svg+xml,%3csvg%20width='22'%20height='18'%20viewBox='0%200%2022%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%2011.4L12.225%208.725L14.9%207.5L12.225%206.275L11%203.6L9.775%206.275L7.1%207.5L9.775%208.725L11%2011.4ZM2.5%2015C2.1%2015%201.75%2014.85%201.45%2014.55C1.15%2014.25%201%2013.9%201%2013.5V1.5C1%201.1%201.15%200.75%201.45%200.45C1.75%200.15%202.1%200%202.5%200H19.5C19.9%200%2020.25%200.15%2020.55%200.45C20.85%200.75%2021%201.1%2021%201.5V13.5C21%2013.9%2020.85%2014.25%2020.55%2014.55C20.25%2014.85%2019.9%2015%2019.5%2015H2.5ZM2.5%2013.5H19.5V1.5H2.5V13.5ZM0.75%2018C0.533333%2018%200.354167%2017.9292%200.2125%2017.7875C0.0708333%2017.6458%200%2017.4667%200%2017.25C0%2017.0333%200.0708333%2016.8542%200.2125%2016.7125C0.354167%2016.5708%200.533333%2016.5%200.75%2016.5H21.25C21.4667%2016.5%2021.6458%2016.5708%2021.7875%2016.7125C21.9292%2016.8542%2022%2017.0333%2022%2017.25C22%2017.4667%2021.9292%2017.6458%2021.7875%2017.7875C21.6458%2017.9292%2021.4667%2018%2021.25%2018H0.75Z'%20fill='%23ABABAB'/%3e%3c/svg%3e`,cue=`data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%2016H7.375V11H10L11%2013H16V7H13L12%205H6V16ZM11.925%2011.625L10.925%209.625H7.375V6.375H11.075L12.075%208.375H14.625V11.625H11.925ZM10%2020C8.63333%2020%207.34167%2019.7375%206.125%2019.2125C4.90833%2018.6875%203.84583%2017.9708%202.9375%2017.0625C2.02917%2016.1542%201.3125%2015.0917%200.7875%2013.875C0.2625%2012.6583%200%2011.3667%200%2010C0%208.61667%200.2625%207.31667%200.7875%206.1C1.3125%204.88333%202.02917%203.825%202.9375%202.925C3.84583%202.025%204.90833%201.3125%206.125%200.7875C7.34167%200.2625%208.63333%200%2010%200C11.3833%200%2012.6833%200.2625%2013.9%200.7875C15.1167%201.3125%2016.175%202.025%2017.075%202.925C17.975%203.825%2018.6875%204.88333%2019.2125%206.1C19.7375%207.31667%2020%208.61667%2020%2010C20%2011.3667%2019.7375%2012.6583%2019.2125%2013.875C18.6875%2015.0917%2017.975%2016.1542%2017.075%2017.0625C16.175%2017.9708%2015.1167%2018.6875%2013.9%2019.2125C12.6833%2019.7375%2011.3833%202
27450%2010%2020ZM10%2018.5C12.3667%2018.5%2014.375%2017.6708%2016.025%2016.0125C17.675%2014.3542%2018.5%2012.35%2018.5%2010C18.5%207.63333%2017.675%205.625%2016.025%203.975C14.375%202.325%2012.3667%201.5%2010%201.5C7.65%201.5%205.64583%202.325%203.9875%203.975C2.32917%205.625%201.5%207.63333%201.5%2010C1.5%2012.35%202.32917%2014.3542%203.9875%2016.0125C5.64583%2017.6708%207.65%2018.5%2010%2018.5Z'%20fill='%23ABABAB'/%3e%3c/svg%3e`,lue=`data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.15%2018.85C4.46667%2018.05%203.9375%2017.1542%203.5625%2016.1625C3.1875%2015.1708%203%2014.1167%203%2013C3%2010.5%203.875%208.37917%205.625%206.6375C7.375%204.89583%209.5%204.025%2012%204.025C12.1667%204.025%2012.3375%204.02917%2012.5125%204.0375C12.6875%204.04583%2012.8417%204.05833%2012.975%204.075L10.95%202.05L12%201L16%205L12%209L10.925%207.925L13.225%205.625C13.0417%205.59167%2012.825%205.56667%2012.575%205.55C12.325%205.53333%2012.1333%205.525%2012%205.525C9.91667%205.525%208.14583%206.25%206.6875%207.7C5.22917%209.15%204.5%2010.9167%204.5%2013C4.5%2013.85%204.64167%2014.7%204.925%2015.55C5.20833%2016.4%205.64167%2017.1417%206.225%2017.775L5.15%2018.85ZM18.85%2018.85L17.8%2017.8C18.3%2017.2%2018.7083%2016.4917%2019.025%2015.675C19.3417%2014.8583%2019.5%2013.9667%2019.5%2013C19.5%2011.9%2019.2708%2010.8542%2018.8125%209.8625C18.3542%208.87083%2017.6667%208%2016.75%207.25L17.85%206.15C18.8167%206.98333%2019.5833%207.9875%2020.15%209.1625C20.7167%2010.3375%2021%2011.6167%2021%2013C21%2014.1167%2020.8125%2015.1708%2020.4375%2016.1625C20.0625%2017.1542%2019.5333%2018.05%2018.85%2018.85Z'%20fill='%23ABABAB'/%3e%3cpath%20d='M14.3212%2021.2048C15.4823%2021.2048%2016.4235%2020.2635%2016.4235%2019.1024C16.4235%2017.9412%2015.4823%2017%2014.3212%2017C13.16%2017%2012.2188%2017.9412%2012.2188%2019.1024C12.2188%2020.2635%2013.16%2021.2048%2014.3212%2021.2048Z'%20fill='%23ABABAB'/%3e%3cpath%20d='M8.59842%2018.0483C9.18065%2018.0483%209.65251%2018.5203%209.65251%2019.1024C9.65251%2019.6844%209.18053%2020.1564%208.59842%2020.1564C8.01622%2020.1564%207.54436%2019.6844%207.54436%2019.1024C7.54436%2018.5202%208.01634%2018.0483%208.59842%2018.0483ZM8.59842%2017.5039C7.71704%2017.5039%207%2018.221%207%2019.1024C7%2019.9837%207.71704%2020.7008%208.59842%2020.7008C9.47983%2020.7008%2010.1969%2019.9837%2010.1969%2019.1024C10.1969%2018.221%209.47983%2017.5039%208.59842%2017.5039Z'%20fill='%23ABABAB'/%3e%3c/svg%3e`,uue=`data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.65%208.925C5.93333%2
274508.925%206.17083%208.82917%206.3625%208.6375C6.55417%208.44583%206.65%208.20833%206.65%207.925C6.65%207.64167%206.55417%207.40417%206.3625%207.2125C6.17083%207.02083%205.93333%206.925%205.65%206.925C5.36667%206.925%205.12917%207.02083%204.9375%207.2125C4.74583%207.40417%204.65%207.64167%204.65%207.925C4.65%208.20833%204.74583%208.44583%204.9375%208.6375C5.12917%208.82917%205.36667%208.925%205.65%208.925ZM10.075%208.925C10.3583%208.925%2010.5958%208.82917%2010.7875%208.6375C10.9792%208.44583%2011.075%208.20833%2011.075%207.925C11.075%207.64167%2010.9792%207.40417%2010.7875%207.2125C10.5958%207.02083%2010.3583%206.925%2010.075%206.925C9.79167%206.925%209.55417%207.02083%209.3625%207.2125C9.17083%207.40417%209.075%207.64167%209.075%207.925C9.075%208.20833%209.17083%208.44583%209.3625%208.6375C9.55417%208.82917%209.79167%208.925%2010.075%208.925ZM14.325%208.925C14.6083%208.925%2014.8458%208.82917%2015.0375%208.6375C15.2292%208.44583%2015.325%208.20833%2015.325%207.925C15.325%207.64167%2015.2292%207.40417%2015.0375%207.2125C14.8458%207.02083%2014.6083%206.925%2014.325%206.925C14.0417%206.925%2013.8042%207.02083%2013.6125%207.2125C13.4208%207.40417%2013.325%207.64167%2013.325%207.925C13.325%208.20833%2013.4208%208.44583%2013.6125%208.6375C13.8042%208.82917%2014.0417%208.925%2014.325%208.925ZM0%2020V1.5C0%201.11667%200.15%200.770833%200.45%200.4625C0.75%200.154167%201.1%200%201.5%200H18.5C18.8833%200%2019.2292%200.154167%2019.5375%200.4625C19.8458%200.770833%2020%201.11667%2020%201.5V14.5C20%2014.8833%2019.8458%2015.2292%2019.5375%2015.5375C19.2292%2015.8458%2018.8833%2016%2018.5%2016H4L0%2020ZM1.5%2016.375L3.375%2014.5H18.5V1.5H1.5V16.375Z'%20fill='%23ABABAB'/%3e%3c/svg%3e`,due=B()(e=>({root:{},paper:{marginTop:24,overflow:`visible`,borderRadius:8,fontStyle:`normal`,fontWeight:400,fontSize:`14px`,lineHeight:`18px`,display:`flex`,gap:e.spacing(1),flexDirection:`column`,color:`#fff`,padding:`${e.spacing(2)} ${e.spacing(3)}`,backgroundColor:e.palette.primary.main}
2745,btnContainer:{display:`flex`,justifyContent:`left`},btnClose:{color:`#fff`,padding:0,height:24},text:{display:`flex`,alignItems:`center`,gap:8,fontStyle:`normal`,fontWeight:400,fontSize:`14px`,lineHeight:`18px`,textAlign:`center`}})),fue=({open:e,onClose:t,anchorEl:n})=>{let{classes:r}=due();return l(f,{children:d(Zr,{open:e,onClose:t,className:r.root,classes:{paper:r.paper,root:r.root},anchorEl:n,anchorOrigin:{vertical:`bottom`,horizontal:`right`},transformOrigin:{horizontal:`center`,vertical:`top`},children:[l(q,{style:{position:`absolute`,top:-15,left:98},children:l(pue,{})}),d(q,{className:r.text,children:[l(q,{children:`در هر زمانی می توانید از طریق `}),l(Rv,{}),l(q,{children:`بخش راهنما دوباره من رو صدا کنید.`})]}),l(q,{className:r.btnContainer,children:l(fi,{className:r.btnClose,variant:`text`,onClick:t,children:W(`tariff.labels.understand`)})})]})})};function pue(){return l(`svg`,{width:`34`,height:`29`,viewBox:`0 0 34 29`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:l(`path`,{d:`M13.5359 2C15.0755 -0.666664 18.9245 -0.666667 20.4641 2L32.5885 23C34.1281 25.6667 32.2036 29 29.1244 29H4.87565C1.79645 29 -0.128058 25.6667 1.41154 23L13.5359 2Z`,fill:`#7E6BF1`})})}var mue=B()(e=>({menuPadding:{padding:e.spacing(0)},avatar:{cursor:`pointer`,padding:0},menuItem:{minHeight:50,"& .MuiAvatar-root":{border:`1px solid  ${e.palette.text.lightGray}`,borderRadius:`50%`,width:30,height:30,display:`flex`,alignItems:`center`,justifyContent:`center`}},paddingMenuItem:{padding:e.spacing(0,2)},selectedOrganization:{background:`#faf6ff`,"&:hover":{background:`#faf6ff`},"&.Mui-focusVisible":{background:`#faf6ff`}},listItemIcon:{minWidth:`25px !important`,color:`#d1d1d1!important`},logoutText:{color:`#ff2a2a`},termsMenuItem:{borderTop:`0.5px solid ${e.palette.text.lightGray}`,display:`flex`,justifyContent:`center`,alignItems:`center`},termsText:{color:e.palette.text.link},helpIcon:{width:32,height:32,padding:8},helpIconBold:{border:`1px solid #7E6BF1`,background:`white`,filter:`drop-shadow(0px 0px 9px rgba(82, 0, 255, 0.75))`}})),hue=()=>{let{goftino:e,changeLog:t,getStarted:n,iAmHereGetStartedPopover:r}=Pg(),{classes:i,cx:a}=mue();D();let o=J.useRef(null),[s,c]=J.useState(null),u=!!s,p=e=>{c(e.currentTarget)},m=()=>{c(null)},h=()=>{e.open(),m()},g=()=>{n.setOpenGetStarted(!0),m()};return d(f,{children:[l(x9,{title:`help`,children:l(Gn,{ref:o,onClick:p,className:a(i.avatar,i.helpIcon,{[i.helpIconBold]:r.open}),id:`avatar`,children:l($ee,{})})}),l(fue,{anchorEl:o.current,open:r.open,onClose:r.closePopover}),d($r,{id:`menu-appbar`,anchorEl:s,anchorOrigin:{vertical:`bottom`,horizontal:`center`},keepMounted:!0,transformOrigin:{vertical:`top`,horizontal:`center`},open:u,onClose:m,MenuListProps:{classes:{padding:i.menuPadding}},children:[l(ep,{color:`inherit`,component:S,to:`/guide`,target:`_blank`,rel:`noopener noreferrer`,children:d(ei,{onClick:m,id:`user-info-menu-item`,classes:{root:i.menuItem,gutters:i.paddingMenuItem},children:[l(sp,{classes:{root:i.listItemIcon},children:l(`img`,{src:lue,alt:``})}),l(St,{noWrap:!0,children:`راهنمایی و آموزش`})]})}),d(ei,{onClick:g,id:`organizations-menu-item`,classes:{root:i.menuItem,gutters:i.paddingMenuItem},children:[l(sp,{classes:{root:i.listItemIcon},children:l(`img`,{src:cue,alt:``})}),l(St,{noWrap:!0,children:`شروع به کار`})]}),d(ei,{onClick:h,id:`logout-menu-item`,classes:{root:i.menuItem,gutters:i.paddingMenuItem},children:[l(sp,{classes:{root:i.listItemIcon},children:l(`img`,{src:uue,alt:``})}),l(St,{noWrap:!0,children:`ارسال پیام به پشتیبانی`})]}),l(ep,{color:`inherit`,component:S,to:`/logs`,target:`_blank`,rel:`noopener noreferrer`,children:d(ei,{id:`logout-menu-item`,onClick:m,classes:{root:i.menuItem,gutters:i.paddingMenuItem},children:[l(sp,{classes:{root:i.listItemIcon},children:l(`img`,{src:sue,alt:``})}),l(St,{noWrap:!0,children:`تاریخچه تغییرات محصول`})]})})]})]})},D9=(0,J.createContext)();function O9(){return(0,J.useContext)(D9)}var k9=(e,t)=>({security:n,...r})=>{let[i]=ee(),a=i.get(`organizationId`),o=h(),s=P(),{organizationId:c}=o,{signedInUser:u}=xc(),{hasAccess:d,securityLoading:p,getMarketAdminPermissions:m,getSuperAdminPermissions:g,getCorrespondenceAdminPermissions:_,getActiveSolutions:v,getAvalaibleSolutions:y,getMeetingsAdminPermissions:b,getTasksAdminPermissions:x}=yc(),S=D();return(0,J.useEffect)(()=>{s.pathname!==`/organizations`&&(b({userId:u.id,organizationId:c||a}),x({userId:u.id,organizationId:c||a}),_({userId:u.id,organizationId:c||a}),g({userId:u.id,organizationId:c||a}),m({userId:u.id,organizationId:c||a}),y({userId:u.id,organizationId:c||a}),v({organizationId:c||a}))},[]),s.pathname!==`/organizations`&&t?.showLoading!==!1&&(p.marketAdmin||p.activeSolutions||p.availableSolutions||p.correspondenceAdmin||p.superAdmin||p.owner)?l(Oi,{}):n?.strategy&&!d(n?.strategy)?(S(`/organizations/forbidden`),l(f,{})):l(e,{...r})},gue=B()({root:{display:`auto`}
2745,noData:{height:`100%`,display:`flex`,justifyContent:`center`,alignItems:`center`},noDataMessage:{fontSize:14}}),A9=e=>{let{next:t,data:n=null,hasMore:r,showLoader:i,children:a=null,height:o=`400px`,noDataMessage:s=null,noDataComponent:c,loadingComponent:u,itemStyles:p={}}=e,m=(0,J.useMemo)(()=>ge(),[]),{classes:h}=gue(),g=(0,J.useRef)(!1),_=(0,J.useRef)(null);(0,J.useEffect)(()=>{g.current=!1},[n]),(0,J.useEffect)(()=>{v()},[]);let v=()=>{if(!g.current){let e=_.current;if(!e)return;if(e.scrollHeight-e.scrollTop<=e.clientHeight+10){if(g.current=!0,!r)return;t()}}};return l(`div`,{className:`section`,id:m,ref:_,onScroll:()=>{v()},style:{height:o,overflowY:n?.length?`auto`:`hidden`,padding:p?.padding??`12px`},children:!i&&!n?.length?l(q,{className:h.noData,children:c||d(q,{children:[l(`img`,{src:`/assets/CI8UpSFX.svg`,alt:`no-entry`}),l(si,{className:h.noDataMessage,children:s??`اطلاعاتی وجود ندارد.`})]})}):d(f,{children:[a,i&&(u||l(Oi,{type:`infiniteLoading`}))]})})};A9.propTypes={next:Z.PropTypes.func.isRequired,data:Z.PropTypes.arrayOf(Z.PropTypes.shape({})),hasMore:Z.PropTypes.bool.isRequired,showLoader:Z.PropTypes.bool.isRequired,children:Z.PropTypes.node,noDataMessage:Z.PropTypes.string,height:Z.PropTypes.oneOfType([Z.PropTypes.string,Z.PropTypes.number]),noDataComponent:Z.PropTypes.node};var _ue=B()(e=>({root:{padding:8,direction:`rtl`,borderBottom:`1px solid #e8e8e8`},rootIsRead:{background:`#f8f8f8`,opacity:.8},containerOperations:{display:`flex`,flexDirection:`row`,justifyContent:`end`,alignItems:`center`},title:{fontSize:e.spacing(1.6),fontWeight:`bold`,fontStretch:`normal`,fontStyle:`normal`,lineHeight:2,letterSpacing:`normal`,textAlign:`right`,color:`#111`},wrapDescription:{display:`-webkit-box`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`,overflow:`hidden`,textOverflow:`ellipsis`},date:{direction:`rtl`,color:`#505050`},checkCircle:{color:`#3ebf62`},display_none:{display:`none !important`,translate:`4s`},button:{float:`left`}})),vue=e=>{let{id:t,createdAt:n,currentlyRead:r}=e,{t:i}=Ye(),{readNotification:a,unReadNotification:o,loadingReadAll:s}=O9(),{classes:c,cx:u}=_ue(),f=(0,J.useRef)(null),[p,m]=(0,J.useState)(!1),[h,g]=(0,J.useState)(!1),_=Sg(e),v=(0,J.useCallback)(e=>{e.stopPropagation(),m(e=>!e)},[]);return(0,J.useLayoutEffect)(()=>{let e=f.current;!e||p||g(e.scrollHeight>e.clientHeight)},[_?.description,p]),d(G,{className:u(c.root,r&&c.rootIsRead),children:[l(`b`,{children:l(St,{className:c.title,dangerouslySetInnerHTML:{__html:_?.title}})}),l(G,{children:l(St,{ref:f,variant:`subtitle1`,className:u(!p&&c.wrapDescription),dangerouslySetInnerHTML:{__html:_?.description}})}),d(G,{className:c.containerOperations,children:[h&&l(`div`,{className:c.button,children:p?l(nr,{onClick:v,endIcon:l(Og,{}),children:i(`common.labels.less`)}):l(nr,{onClick:v,endIcon:l(Dg,{}),children:i(`common.labels.more`)})}),l(St,{variant:`subtitle2`,className:c.date,children:`${Ve(n)} - ${ke(n)}`}),l(G,{children:r?l(Gn,{onClick:()=>o(t),className:c.checkCircle,disabled:s,children:l(q_,{})}):l(Gn,{onClick:()=>a(t),className:c.checkCircle,disabled:s,children:l(J_,{})})})]})]})},yue=B()(e=>({topBar:{display:`flex`,alignItems:`center`,boxShadow:`0 2px 4px 0 rgba(0, 0, 0, 0.09)`,borderBottom:`solid 1px #d1d1d1`,height:56,padding:e.spacing(2.1,1.5),position:`absolute`,width:`100%`,background:`#fff`},title:{flexGrow:1,fontWeight:`bold`},topBarActions:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,[e.breakpoints.down(`sm`)]:{width:`100%`}},FormControlRoot:{direction:`ltr`,margin:0},FormControlLabel:{fontSize:12,color:`#606060`},icon:{background:`#f3f3f3`,color:e.palette.primary.main,margin:4,width:32,height:32,padding:4,borderRadius:4}})),bue=()=>{let{classes:e}=yue(),{mobile:t,readAllNotifications:n,refreshNotifications:r,isAllNotificationMode:i,setIsAllNotificationMode:a,isReadAllDisabled:o}=O9();return d(G,{className:e.topBar,children:[!t&&l(St,{className:e.title,children:`اعلان‌ها`}),d(G,{className:e.topBarActions,children:[l(Br,{control:l(yp,{checked:i,onChange:(e,t)=>
2745a(t)}),label:`فقط خوانده نشده‌ها`,classes:{root:e.FormControlRoot,label:e.FormControlLabel}}),d(G,{children:[l(x9,{title:`notification.update`,children:l(Gn,{classes:{root:e.icon},onClick:r,children:l(ate,{})})}),l(x9,{title:`notification.readAll`,children:l(Gn,{classes:{root:e.icon},onClick:n,disabled:o,children:l(Y_,{})})})]})]})]})},xue=B()(e=>({root:{maxHeight:560,height:560,overflow:`hidden`,padding:0,[e.breakpoints.down(`sm`)]:{maxHeight:`100%`,height:`100%`}},list:{position:`relative`,top:56}})),Sue=()=>{let{notification:e,fetchMoreNotifications:t,hasMoreNotification:n,loadingAllNotifiaction:r}=O9(),{classes:i}=xue();return d(`div`,{className:i.root,children:[l(bue,{}),l(`div`,{className:i.list,children:l(A9,{next:t,height:`calc(100vh - 450px)`,hasMore:n,data:e.notifications?.data??[],showLoader:r,children:e.notifications.data?.map(e=>l(vue,{...e},e?.id))})})]})},j9=({notification:e={},mobile:t=!1,notificationsAsync:n,getUnReadNotificationsAsync:r,readAllNotificationsAsync:i,readNotificationAsync:a,unReadNotificationAsync:o,notificationsReset:s,filterNotificationToUnread:c})=>{let{signedInUser:u}=xc(),[d,f]=(0,J.useState)(!1),[p,m]=(0,J.useState)(!1),[h,g]=(0,J.useState)(!0),_=(0,J.useRef)(0),[v]=(0,J.useState)(10),[y,b]=(0,J.useState)(!1),x=(0,J.useRef)(null),S=(0,J.useMemo)(()=>p||!e.notifications?.data?.some?.(e=>!e.currentlyRead),[p,e.notifications?.data]);(0,J.useEffect)(()=>{E()},[y]);let C=e=>y?r(e):n(e),w=e=>{if(!u?.id)return;let t={path:`${u?.id}`,queryObject:{limit:v,offset:e??_?.current,unread:!0}};f(!0),x.current=C(t),x.current.unwrap()?.then(()=>{_.current+=v})?.finally(()=>{f(!1)})},T=()=>{let{notifications:t}=e;if(!t?.meta?.pagination?.total||t?.data?.length>t?.meta?.pagination?.total){g(!1);return}w()},E=()=>{x?.current?.abort(),_.current=0,g(!0),s(),w(0)};return l(D9.Provider,{value:{mobile:t,notification:e,fetchMoreNotifications:T,hasMoreNotification:h,loadingAllNotifiaction:d,readAllNotifications:()=>{let e={userId:u?.id};m(!0),i({data:e,checkStatusOveredFunction:()=>{m(!1)}}).unwrap()?.then(()=>{E()})?.finally(()=>{m(!1)})},readNotification:e=>{let t={path:`${e}/read`,id:e};m(!0),a(t).unwrap()?.then(()=>{y&&(c(),w())})?.finally(()=>{m(!1)})},unReadNotification:e=>{let t={path:`${e}/unread`,id:e};m(!0),o(t,()=>{m(!1)}).unwrap()?.then(()=>{y&&w()})?.finally(()=>{m(!1)})},refreshNotifications:E,isAllNotificationMode:y,setIsAllNotificationMode:b,loadingReadAll:p,isReadAllDisabled:S},children:l(Sue,{})})};j9.propTypes={mobile:Z.default.bool,notification:Z.default.shape({notifications:Z.default.shape({meta:Z.default.shape({pagination:Z.default.shape({total:Z.default.number})}),data:Z.default.arrayOf(Z.default.shape({}))})}),notificationsAsync:Z.default.func.isRequired,getUnReadNotificationsAsync:Z.default.func.isRequired,readAllNotificationsAsync:Z.default.func.isRequired,readNotificationAsync:Z.default.func.isRequired,unReadNotificationAsync:Z.default.func.isRequired,notificationsReset:Z.default.func.isRequired,filterNotificationToUnread:Z.default.func.isRequired};var M9=k9(Ze(e=>{let{notification:t}=e;return{notification:t}},{notificationsAsync:tg,getUnReadNotificationsAsync:ng,readAllNotificationsAsync:sg,readNotificationAsync:ag,unReadNotificationAsync:og,notificationsReset:ug,filterNotificationToUnread:dg})(j9)),Cue=B()(e=>({menuRoot:{minHeight:560,minWidth:540,maxWidth:540,padding:0},IconButton:{width:32,height:32,padding:8},badgeRoot:{margin:e.spacing(0,.8,0,0)},badge:{cursor:`pointer`,background:`#ff6060`,color:`#fff`,fontSize:10,padding:2,minWidth:18,minHeight:18,height:18,transform:`scale(1) translate(26%, 16%)`,lineHeight:`normal`}})),N9=({notification:e,handleCloseNotificationList:t,handleOpenNotificationList:n,openNotificationList:r,anchorElNotification:i={}})=>{let{classes:a}=Cue();return d(f,{children:[l(x9,{title:`notifications`,children:l(Gn,{onClick:n,classes:{root:a.IconButton},children:l(ef,{badgeContent:e.notifications?.unReadCount,anchorOrigin:{vertical:`bottom`,horizontal:`left`},classes:{badge:a.badge},children:l(Xv,{id:`notification-button`})})})}),r&&l($r,{id:`notifications-list`,anchorOrigin:{vertical:`bottom`,horizontal:`center`}
2745,anchorEl:i,keepMounted:!0,transformOrigin:{vertical:`top`,horizontal:`center`},open:r,onClose:t,MenuListProps:{classes:{root:a.menuRoot}},children:l(M9,{})})]})};N9.propTypes={handleCloseNotificationList:Z.default.func.isRequired,handleOpenNotificationList:Z.default.func.isRequired,openNotificationList:Z.default.bool.isRequired,anchorElNotification:Z.default.shape({})};var wue=Ze(e=>{let{notification:t}=e;return{notification:t}},{})(N9),Tue={solutions:{strategy:Nk.APPBAR.SOLUTIONS,behavior:zk.disabled},"correspondence-settings":{strategy:Nk.APPBAR.CORRESPONDENCE_SETTING,behavior:zk.disabled},awat_admininstartion_dashboard:{strategy:Nk.APPBAR.ADMINISTRATION_DASHBOARD,behavior:zk.hidden}},P9=e=>Vk({schema:Tue})(e),Eue=Z.default.shape({disabled:Z.default.bool.isRequired,hidden:Z.default.bool.isRequired,allow:Z.default.bool.isRequired});Z.default.shape({solutions:Eue.isRequired});var Due=B()(e=>({menuPadding:{padding:e.spacing(0)},avatar:{cursor:`pointer`,padding:0},menuItem:{minHeight:50,"& .MuiAvatar-root":{border:`1px solid  ${e.palette.text.lightGray}`,borderRadius:`50%`,width:30,height:30,display:`flex`,alignItems:`center`,justifyContent:`center`}},paddingMenuItem:{padding:e.spacing(0,2)},selectedOrganization:{background:`#F8F8F8`,"&:hover":{background:`#F8F8F8`},"&.Mui-focusVisible":{background:`#faf6ff`}},listItemIcon:{minWidth:`25px !important`,marginLeft:e.spacing(.5),color:`#ABABAB!important`},logoutText:{color:`#ff2a2a`},termsMenuItem:{borderTop:`0.5px solid ${e.palette.text.lightGray}`,display:`flex`,justifyContent:`center`,alignItems:`center`},termsText:{color:e.palette.text.link}})),F9=e=>{let{classes:t,cx:n}=Due(),{organizationId:r}=h(),{profile:i,organization:a,userProfileAsync:o,organizationSelect:s,mobile:c=!1,userOrganizationsAsync:u,ownedOrganizationsAsync:p,showPositionSelection:m,isReadOnlyPositionSelection:g}=e,_=i.userProfile.data?.firstName,v=i.userProfile.data?.lastName,{signedInUser:y}=xc(),b=D(),x=P(),{t:C}=Ye(),{isAwatAdmin:w}=yc();(0,J.useEffect)(()=>{let e=a.userOrganizations.data?.find?.(e=>e.id===r)||a.ownedOrganizations.data?.find?.(e=>e.id===r);e&&s(e),x.pathname===`/organizations`&&s(null)},[r,a.userOrganizations.data,a.ownedOrganizations.data]),(0,J.useEffect)(()=>{let e={signedInUserId:y?.id};o(e),u(e),p(e)},[]);let[T,E]=J.useState(null),O=!!T,k=e=>{E(e.currentTarget)},A=()=>{E(null)},j={typeOfImage:`showProfile`,imageId:i.userProfile.data?.imageId,data:{firstName:_,lastName:v}},M={typeOfImage:`showProfile`,imageId:a.selectedOrganization?.logoDocumentId};return d(f,{children:[l(x9,{value:Me(i.userProfile.data),children:l(Gn,{onClick:k,className:t.avatar,id:`avatar`,children:i.userProfile.data?.imageId?l(FN,{imageProps:j}):l(Dr,{alt:Me(i.userProfile.data),src:``,children:Me(i.userProfile.data,null,!0).split(``)[0]})})}),d($r,{id:`menu-appbar`,anchorEl:T,anchorOrigin:{vertical:`bottom`,horizontal:`center`},keepMounted:!0,transformOrigin:{vertical:`top`,horizontal:`center`},open:O,onClose:A,MenuListProps:{classes:{padding:t.menuPadding}},children:[a.selectedOrganization&&a.selectedOrganization.displayName&&d(ei,{onClick:()=>{b(`/organizations/${a.selectedOrganization.id}`),A()},classes:{root:t.menuItem,gutters:t.paddingMenuItem},sx:{backgroundColor:e=>e.palette.background.light},children:[l(sp,{classes:{root:t.listItemIcon},children:a.selectedOrganization?.logoDocumentId?l(FN,{imageProps:M}):l(E_,{})}),l(St,{noWrap:!0,children:a.selectedOrganization.displayName})]}),m&&c&&r&&l(ei,{onClick:A,sx:{backgroundColor:e=>e.palette.background.light},children:l(w9,{isReadOnlyPositionSelection:g})}),d(ei,{onClick:()=>{b(c?`/profile`:`/profile/?tab=edit`),A()},id:`user-info-menu-item`,classes:{root:t.menuItem,gutters:t.paddingMenuItem},children:[l(sp,{classes:{root:t.listItemIcon},children:l(C_,{})}),l(St,{noWrap:!0,children:`اطلاعات کاربری`})]}),d(ei,{onClick:()=>{b(`/organizations?auto-nav=false`),A()},id:`organizations-menu-item`,classes:{root:t.menuItem,gutters:t.paddingMenuItem},children:[l(sp,{classes:{root:t.listItemIcon},children:l(D_,{})}),l(St,{noWrap:!0,children:`سازمان ها`})]}),w()&&d(Lk,{id:`Awat-administration`,onClick:()=>{b(`/administration`),A()},classes:{root:t.menuItem,gutters:t.paddingMenuItem},children:[l(sp,{classes:{root:t.listItemIcon},children:l(T_,{})}),l(St,{noWrap:!0,children:C(`administration.labels.administration-panel`)})]}),d(ei,{onClick:()=>{localStorage.removeItem(`user`),localStorage.removeItem(`tokens`),window.location.href=`/login`,A()}
2745,id:`logout-menu-item`,classes:{root:t.menuItem,gutters:t.paddingMenuItem},children:[l(sp,{classes:{root:t.listItemIcon},children:l(hv,{})}),l(St,{noWrap:!0,className:t.logoutText,children:`خروج از حساب کاربری`})]}),l(ei,{id:`trems-menu-item`,classes:{root:n(t.menuItem,t.termsMenuItem),gutters:t.paddingMenuItem},children:l(ep,{component:S,to:`/terms`,target:`_blank`,rel:`noopener noreferrer`,children:l(St,{noWrap:!0,className:t.termsText,children:`شرایط و قوانین آوات`})})})]})]})},Oue=e=>{let{profile:t,documents:n,organization:r}=e;return{profile:t,documents:n,organization:r}};F9.propTypes={profile:Z.default.shape({userProfile:Z.default.shape({data:Z.default.shape({lastName:Z.default.string,firstName:Z.default.string,imageId:Z.default.string})})}).isRequired,organization:Z.default.shape({selectedOrganization:Z.default.shape({logoDocumentId:Z.default.string,displayName:Z.default.string,id:Z.default.string}),userOrganizations:Z.default.shape({data:Z.default.arrayOf(Z.default.shape({}))}),ownedOrganizations:Z.default.shape({data:Z.default.arrayOf(Z.default.shape({}))})}).isRequired,userProfileAsync:Z.default.func.isRequired,organizationSelect:Z.default.func.isRequired,userOrganizationsAsync:Z.default.func.isRequired,ownedOrganizationsAsync:Z.default.func.isRequired,mobile:Z.default.bool};var I9=P9(Ze(Oue,{userProfileAsync:JT,userOrganizationsAsync:jw,ownedOrganizationsAsync:Mw,organizationSelect:Bw})(F9)),kue=(0,J.lazy)(()=>n(()=>import(`./DycItJGY2.js`),__vite__mapDeps([117,1,7,4,118,6,12,29,2,3,108,31,32,109,34,35,36,37,17,38,16,18,39,40,27,119,41,73,74,120]))),Aue=()=>{let[e,t]=(0,J.useState)(null),n=!!e,r=e=>{t(e.currentTarget)},i=()=>{t(null)};return d(f,{children:[l(fi,{sx:{minWidth:32,width:32,height:32,boxShadow:`none`},onClick:r,id:`list-task-button`,variant:`outlined`,children:l(ry,{fontSize:`small`,sx:{stroke:`none`}})}),l($r,{id:`menu-appbar`,anchorEl:e,anchorOrigin:{vertical:`bottom`,horizontal:`left`},keepMounted:!0,transformOrigin:{vertical:`top`,horizontal:`left`},open:n,onClose:i,children:l(q,{sx:{width:`445px`,height:`393px`},children:e&&l(J.Suspense,{fallback:l(lle,{}),children:l(kue,{onSelectedTask:i})})})})]})},L9=240,jue=B()((e,{showSideBar:t})=>({root:{display:`flex`},appBar:{zIndex:e.zIndex.drawer+1,transition:e.transitions.create([`width`,`margin`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),backgroundColor:`#fff`,boxShadow:`0px 2px 4px rgba(0, 0, 0, 0.12)`},appBarShift:{marginLeft:L9,width:`calc(100% - ${L9}px)`,transition:e.transitions.create([`width`,`margin`],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},menuButton:{},hide:{display:`none`},drawer:{width:L9,flexShrink:0,whiteSpace:`nowrap`},drawerOpen:{width:L9,transition:e.transitions.create(`width`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerClose:{transition:e.transitions.create(`width`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:`hidden`,width:e.spacing(1),[e.breakpoints.up(`sm`)]:{width:e.spacing(1)}},toolbar:{display:`flex`,alignItems:`center`,padding:e.spacing(0,1),...e.mixins.toolbar},toolbarRoot:{justifyContent:`space-between`},logo:{width:t?100:88,height:`auto`,display:`block`,margin:t?`0 24px`:0},chargoonLogo:{width:t?215:112,borderLeft:`1px solid #ccc`,display:`flex`,alignItems:`center`,height:48,justifyContent:`center`},infoUser:{display:`flex`,alignItems:`center`},infoUserChoose:{display:`flex`,alignItems:`center`},infoUserProfile:{display:`flex`,alignItems:`center`},icons:{color:`#808080`,display:`flex`,alignItems:`center`,"& button":{cursor:`pointer`}},select:{width:`100%`},breadcrumbsBox:{flexGrow:2},infoUserBox:{display:`flex`,gap:e.spacing(2),alignItems:`center`},helpIcon:{width:32,height:32,padding:8}}));function R9(e){let{security:t,handleDrawerOpen:n,notificationsReset:r,urlPathSegments:i,translatedPathSegments:a,showPositionSelection:o,isReadOnlyPositionSelection:s,positions:c}=e,{showSideBar:u,showBreadcrumbs:p,setOpenTaskDialog:m,ignoreBreadcrumb:g}=hg(),{classes:_,cx:v}=jue({showSideBar:u}),{organizationId:y}=h(),[b,x]=(0,J.useState)(null),S=!!b;return l(Gu,{position:`fixed`,className:v(_.appBar),children:d(nd,{classes:{root:_.toolbarRoot},children:[d(G,{className:_.chargoonLogo,children:[u&&l(Gn,{"aria-label":`open drawer`,onClick:n,edge:`start`,className:v(_.menuButton),size:`large`,children:l(tte,{})}),l(`img`,{src:rd,alt:`Logo`,className:_.logo})]}),p&&l(tue,{security:t,translatedPathSegments:a.filter((e,t)=>
2745!(g||[]).includes(t)),urlPathSegments:i.filter((e,t)=>!(g||[]).includes(t))}),d(G,{className:_.infoUser,children:[l(G,{className:_.breadcrumbsBox}),d(G,{className:_.infoUserBox,children:[y&&d(f,{children:[l(fi,{sx:{minWidth:32,width:32,height:32,boxShadow:`none`},onClick:()=>m(!0),id:`create-task-button-on-top-bar-desktop`,variant:`contained`,disabled:c.positionsUser.status===`loading`,children:l(oi,{fontSize:`small`,sx:{stroke:`none`}})}),l(Aue,{}),l(E9,{})]}),l(G,{className:_.infoUserChoose,children:y&&l(iue,{})}),l(hue,{}),l(wue,{handleCloseNotificationList:()=>{r(),x(null)},handleOpenNotificationList:e=>{x(e.currentTarget)},openNotificationList:S,anchorElNotification:b}),y&&o&&l(q,{sx:{margin:e=>e.spacing(1,1,1,0)},children:l(w9,{isReadOnlyPositionSelection:s})}),l(I9,{})]})]})]})})}R9.propTypes={handleDrawerOpen:Z.default.func.isRequired};var z9=P9(Ze(e=>{let{organization:t,profile:n,secretariats:r,letters:i,positions:a}=e;return{organization:t,profile:n,secretariats:r,letters:i,positions:a}},{notificationsReset:ug})(R9)),Mue=B()(e=>({root:{padding:`0 16px`,height:64,display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,backgroundColor:`#fff`},logo:{width:52},moreIcon:{width:`1.5em`,height:`1.5em`},moreBtn:{padding:0},titleHeader:{color:e.palette.text.secondary,fontWeight:500},paperAnchorBottom:{color:e.palette.text.gray}}));function B9(e){let{title:t,iconTopBar:n,bottomBarMenus:r,setOpenTaskDialog:i}=hg(),{classes:a}=Mue(),{signedInUser:o}=xc(),{organizationId:s}=h(),c=D(),{organization:u,userOrganizationsAsync:p,letters:m,composeEce:g,security:_,correspondenceAuthz:v,showPositionSelection:y,isReadOnlyPositionSelection:b,positions:x}=e,[S,C]=(0,J.useState)(!1);(0,J.useEffect)(()=>{let e=u.userOrganizations.data,t={signedInUserId:o?.id};e||p(t)},[]);let w=()=>{c(-1)},T=e=>{C(e)};return d(f,{children:[d(Gu,{position:`fixed`,className:a.root,children:[(e=>e===`back`?l(Gn,{classes:{root:a.moreBtn},onClick:w,children:l(Bu,{classes:{root:a.moreBtn}})}):e===`more`?l(Gn,{classes:{root:a.moreBtn},onClick:()=>T(!0),children:l(qv,{classes:{root:a.moreIcon}})}):l(`img`,{src:id,alt:`Logo`,className:a.logo}))(n),l(St,{classes:{root:a.titleHeader},children:t}),d(q,{sx:{display:`flex`,alignItems:`center`,gap:e=>e.spacing(2)},children:[s&&l(fi,{sx:{minWidth:32,width:32,height:32,boxShadow:`none`},onClick:()=>i(!0),id:`create-task-button-on-top-bar-mobile`,variant:`contained`,disabled:x.positionsUser.status===`loading`,children:l(oi,{fontSize:`small`,sx:{stroke:`none`}})}),l(I9,{mobile:!0,showPositionSelection:y,isReadOnlyPositionSelection:b})]})]}),l(zr,{anchor:`bottom`,disableSwipeToOpen:!0,open:S,onClose:()=>T(!1),onOpen:()=>T(!0),classes:{paperAnchorBottom:a.paperAnchorBottom},children:l(Gr,{component:`nav`,children:r.map(e=>ue(e,{organization:u,letters:m,composeEce:g,toggleDrawerMenu:T,security:_,correspondenceAuthz:v,key:r.indexOf(e)}))})})]})}B9.propTypes={organization:Z.default.shape({userOrganizations:Z.default.shape({data:Z.default.arrayOf(Z.default.shape({}))})}).isRequired,userOrganizationsAsync:Z.default.func.isRequired,letters:Z.default.shape({}).isRequired,composeEce:Z.default.func.isRequired,security:tj.isRequired};var V9=ej(Ze(e=>{let{organization:t,auth:n,letters:r,correspondenceAuthz:i,positions:a}=e;return{organization:t,auth:n,letters:r,correspondenceAuthz:i,positions:a}},{userOrganizationsAsync:jw,composeEce:HS})(B9)),Nue=B()(e=>({menuRoot:{minHeight:560,minWidth:540,maxWidth:540,padding:0},IconButton:{width:32,height:32,padding:0,"&:hover":{background:`unset`}},badgeRoot:{margin:e.spacing(0,.8,0,0)},badge:{cursor:`pointer`,background:`#ff6060`,color:`#fff`,fontSize:10,padding:2,minWidth:18,minHeight:18,height:18,transform:`scale(1) translate(-70%, 26%)`,lineHeight:`normal`},BottomNavigationActionRoot:{color:e.palette.text.gray}})),H9=({notification:e,navigateToMobileNotification:t})=>{let{classes:n}=Nue(),{t:r}=Ye();return l(f,{children:l(ef,{onClick:t,badgeContent:e.notifications?.unReadCount,anchorOrigin:{vertical:`top`,horizontal:`left`},classes:{root:n.badgeRoot,badge:n.badge},children:l(df,{showLabel:!0,onClick:t,label:r(`common.labels.notification`),icon:l(Xv,{}),value:`/notifications`,classes:{root:n.BottomNavigationActionRoot}})})})};
2745H9.propTypes={notification:Z.default.shape({}).isRequired};var Pue=Ze(e=>{let{notification:t}=e;return{notification:t}},{})(H9),Fue=B()((e,{width:t,height:n})=>({root:{display:`flex`,textAlign:`center`,"& div":{"& img":{width:`${t}px`,height:`${n}px`},"& p":{fontSize:14,fontWeight:400}}}})),U9=({solutionsList:e,activeSolutions:t,availableSolutions:n,showDisabled:r,navigationToSolution:i,width:a,height:o})=>{let{classes:s}=Fue({width:a,height:o}),{t:c}=Ye();return l(G,{className:s.root,children:e.map(e=>d(G,{children:[l(li,{title:n.includes(e.id)?null:c(`organization.labels.no${e.id}Credit`),children:l(`span`,{children:l(ui,{onClick:()=>i(e.id),disabled:!n.includes(e.id),children:r||n.includes(e.id)?l(`img`,{src:e.imgSrc.enabled,alt:e.imgAlt}):l(`img`,{src:e.imgSrc.disabled,alt:e.imgAlt})})})}),l(St,{variant:`body1`,children:e.label})]}))})};U9.propTypes={solutionsList:Z.default.arrayOf(Z.default.shape({})).isRequired,activeSolutions:Z.default.arrayOf(Z.default.shape({})).isRequired,availableSolutions:Z.default.arrayOf(Z.default.string).isRequired,showDisabled:Z.default.bool.isRequired,navigationToSolution:Z.default.func.isRequired,width:Z.default.string.isRequired,height:Z.default.string.isRequired};var Iue=B()((e,{width:t,height:n})=>({list:{display:`inline-block`,paddingBottom:0,[e.breakpoints.down(`md`)]:{width:`100%`}},listItemIcon:{minWidth:`unset`,marginLeft:e.spacing(1),"& img":{width:`${t}px`,height:`${n}px`}},listItemDisable:{webkitFilter:`grayscale(100%)`,filter:`grayscale(100%)`}})),Lue=({security:e,solutionsList:t,activeSolutions:n,availableSolutions:r=[],showDisabled:i,width:a,height:o,navigationToSolution:s,navigateToSolutionSetting:c})=>{let{classes:u,cx:p}=Iue({width:a,height:o}),m=t=>{switch(t){case`Correspondence`:return e.correspondenceAdmin;case`Meetings`:return e.meetingsAdmin;case`Tasks`:return e?.tasksAdmin;case`Chat`:return e.solutions;default:break}};return l(Gr,{classes:{root:u.list},children:t.map(e=>d(f,{children:[d(Kr,{onClick:()=>r.includes(e.id)&&s(e.id),classes:{root:p(r.includes(e.id)?``:u.listItemDisable)},children:[l(sp,{className:u.listItemIcon,children:i||r.includes(e.id)?l(`img`,{src:e.imgSrc.enabled,alt:e.imgAlt}):l(`img`,{src:e.imgSrc.disabled,alt:e.imgAlt})}),l(Xr,{primary:e.label}),l(ui,{security:m(e.id),onClick:t=>c(t,e.id),children:l(fy,{})})]},n.indexOf(e)),l(Lr,{})]}))})},Rue=({security:e={},isMobile:t=!1,showAll:n=!1,showDisabled:r=!1,availableSolutions:i=[],activeSolutions:a=[],width:o=40,height:s=40})=>{let c=h(),[u]=ee(),d=u.get(`organizationId`),{organizationId:p}=c,m=D(),g=(0,J.useMemo)(()=>n?MA:a?.length>0?MA.filter(e=>a.some(t=>t.solution===e.id)):MA.filter(e=>i.includes(e.id)),[n,a,i]);return l(f,{children:l(t?Lue:U9,{solutionsList:g,activeSolutions:a,availableSolutions:i,showDisabled:r,navigationToSolution:e=>{switch(e){case`Correspondence`:m(`/organizations/${p}/correspondence/active?tab=correspondence-in-progress`);break;case`Meetings`:m(`/organizations/${p}/meetings`);break;case`Tasks`:m(`/organizations/${c.organizationId}/projects`);break;case`Chat`:m(`/organizations/${c.organizationId}/chat`);break;default:break}},navigateToSolutionSetting:(e,t)=>{switch(e.preventDefault(),e.stopPropagation(),t){case`Correspondence`:m(`/organizations/${p||d}/settings/correspondence`);break;case`Meetings`:m(`/organizations/${p||d}/settings/meetings`);break;case`Tasks`:m(`/organizations/${c.organizationId}/settings/tasks`);break;case`Chat`:m(`/organizations/${c.organizationId}/settings/chat`);break;default:break}},width:o,height:s,security:e})})},W9=({security:e,showAll:t,availableSolutions:n,activeSolutions:r})=>l(Rue,{showAll:t,availableSolutions:n,activeSolutions:r,security:e,isMobile:!0}),zue=B()({root:{minHeight:150,display:`flex`,alignItems:`center`,justifyContent:`center`}}),Bue=()=>{let{classes:e}=zue();return l(G,{className:e.root,children:l(St,{children:`شما به راهکاری در این سازمان دسترسی ندارید`})})},Vue=B()(e=>({root:{minHeight:150,display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,"& p":{marginBottom:e.spacing(1)}}})),G9=({navigateToSolutionsList:e})=>{let{classes:t}=Vue();return d(G,{className:t.root,children:[l(St,{children:`شما راهکار فعالی در این سازمان ندارید`}),l(nr,{variant:`contained`,onClick:e,startIcon:l(Fv,{}),children:`راهکارهای آوات`})]})};G9.propTypes={navigateToSolutionsList:Z.default.func.isRequired};var K9=({security:e,availableSolutions:t,activeSolutions:n,navigateToSolutionsList:r})=>l(f,{children:e.solutions.allow&&n?.length===0?l(G9,{navigateToSolutionsList:r}):e.solutions.allow&&t?.length===0?l(W9,{showDisabled:!0,security:e,activeSolutions:n}):wA(t??[],_A.SOLUTION)?.length===0?l(Bue,{}):l(W9,{security:e,availableSolutions:t})});K9.propTypes={security:Z.default.shape({}),availableSolutions:Z.default.arrayOf(Z.default.string),activeSolutions:Z.default.arrayOf(Z.default.shape({})),navigateToSolutionsList:Z.default.func.isRequired};var Hue=B()(e=>({root:{flexGrow:1,zIndex:100,overflow:`hidden`,position:`relative`,display:`flex`,boxShadow:`0 4px 16px 0 rgba(0, 0, 0, 0.12)`,"& .MuiToolbar-root":{paddingRight:`15px`,paddingLeft:`15px`}},BottomNavigationActionRoot:{color:e.palette.text.gray},appTitleBox:{display:`flex`,alignItems:`center`,marginBottom:e.spacing(.5),justifyContent:`space-between`,padding:e.spacing(2,2,0)},appTitle:{display:`flex`,alignItems:`center`,"& p":{paddingRight:8,fontWeight:`bold`}},linkBtn:{color:e.palette.text.link}})),q9=({organization:e,security:t,orders:n})=>{let{classes:r}=Hue(),{organizationId:i}=h(),a=D(),o=P(),[s,c]=(0,J.useState)(``),[u,p]=(0,J.useState)(!1),m=()=>{},[g]=ee(),_=g.get(`organizationId`),{t:v}=Ye(),y=(0,J.useMemo)(()=>i||_||e.selectedOrganization?.id,[i,_,e.selectedOrganization?.id]);(0,J.useEffect)(()=>{o.pathname&&(c(o.pathname),p(!1))},[o.pathname]);let b=()=>{p(!1),c(o.pathname)},x=()=>{p(!1),a(`/organizations/${y}/organization-settings/shop`)};return d(f,{children:[d(af,{showLabels:!0,value:s,onChange:(e,t)=>
2745{t===`solutions-drawer`?p(!0):(p(!1),a(t)),c(t)},className:r.root,children:[l(df,{label:v(`solutions.labels.solutions`),onClick:m,icon:l(Iv,{}),value:`solutions-drawer`,classes:{root:r.BottomNavigationActionRoot}}),l(Pue,{navigateToMobileNotification:()=>{a({pathname:`notifications`,search:`?organizationId=${y}`})}}),l(E9,{organizationId:y,navigateToMobileChat:()=>{a({pathname:`/organizations/${y}/chat`})}}),l(df,{label:v(`tasks.labels.tasks`),icon:l(ry,{}),value:`/organizations/${y}/tasksList`,classes:{root:r.BottomNavigationActionRoot}}),l(df,{label:v(`common.labels.organization`),icon:l(B_,{}),value:`/organizations/${y}`,classes:{root:r.BottomNavigationActionRoot}})]}),d(zr,{anchor:`bottom`,open:u,disableSwipeToOpen:!0,onClose:b,onOpen:()=>p(!0),children:[d(G,{className:r.appTitleBox,children:[d(G,{className:r.appTitle,children:[l(Fv,{}),l(St,{variant:`body1`,children:v(`organization.labels.activeSolutions`)})]}),l(fi,{security:t.solutions,variant:`text`,onClick:x,className:r.linkBtn,children:v(`organization.labels.manage-active-solutions`)})]}),l(Lr,{}),n.availableSolutions.data!==null&&n.activeSolutions.data!==null&&l(K9,{security:t,availableSolutions:n.availableSolutions.data,activeSolutions:n.activeSolutions.data,navigateToSolutionsList:x})]})]})};q9.propTypes={organization:Z.default.shape({selectedOrganization:Z.default.shape({id:Z.default.string,owner:Z.default.shape({id:Z.default.string})})}).isRequired,letters:Z.default.shape({}).isRequired};var Uue=ej(Ze(e=>{let{organization:t,profile:n,letters:r,orders:i}=e;return{organization:t,profile:n,letters:r,orders:i}},{composeEce:HS})(q9)),Wue=B()({action:{display:`flex`,flexDirection:`row`,justifyContent:`left`},centerAlign:{textAlign:`center`}}),J9=e=>{let{open:t,onClose:n,commandName:r}=e,{t:i}=Ye(),{classes:a}=Wue(),o=i(`commands.${r}`),s=i(`common.errors.checkstatus-overed`).replace(`command-name`,o);return l(NN,{open:t,onClose:n,fullWidth:!0,children:d(q,{children:[l(q,{className:a.centerAlign,children:l(gi,{color:`info`})}),l(q,{className:a.centerAlign,children:s}),l(q,{className:a.action,children:l(fi,{variant:`text`,onClick:n,children:i(`common.labels.understand`)})})]})})},Gue=B()(e=>({content:{display:`flex`},root:{display:`flex`,flexDirection:`column`,justifyContent:`center`,alignItems:`center`,textAlign:`center`},title:{fontSize:`24px`,fontWeight:`bold`,[e.breakpoints.down(`md`)]:{fontSize:`16px`}},img:{padding:e.spacing(1),margin:e.spacing(5,0),width:`328px`,height:`328px`,background:`white`,borderRadius:`50%`,boxShadow:`inset 1px 2px 1px 3px lightgray`,[e.breakpoints.down(`md`)]:{width:`260px`,height:`260px`}},callSupport:{fontSize:`16px`,fontWeight:`bold`,marginBottom:e.spacing(2),[e.breakpoints.down(`md`)]:{fontSize:`14px`}},awatSupport:{marginBottom:e.spacing(1),display:`flex`,"& h5":{fontSize:`16px`,fontWeight:`normal`,lineHeight:`1.5`,[e.breakpoints.down(`md`)]:{fontSize:`14px`}},alignItems:`center`,justifyContent:`center`,"& img":{width:`26px`,height:`26px`,borderRadius:`50%`,marginLeft:e.spacing(1)}},copyErrorButton:{color:e.palette.text.link,fontWeight:`bold`,fontSize:`14px`}})),Kue=e=>{let{stylesGenerator:t}=Fk(),{classes:n}=B()(t)(),{classes:r,cx:i}=Gue(),{showAppBar:a,mobile:o,error:s,errorInfo:c,...u}=e,{isReadOnlyPositionSelection:f,showPositionSelection:p}=u,m=P();function h(e){let t=document.createElement(`textarea`);t.value=e,t.style.top=`0`,t.style.left=`0`,t.style.position=`fixed`,document.body.appendChild(t),t.focus(),t.select();try{he.success(`متن خطا با موفقیت کپی شد`)}catch(e){console.error(`Fallback: Oops, unable to copy`,e)}document.body.removeChild(t)}function g(e){if(!navigator.clipboard){h(e);return}navigator.clipboard.writeText(e).then(()=>{he.success(`متن خطا با موفقیت کپی شد`)},e=>{console.error(`Async: Could not copy text: `,e)})}let _=()=>{g(JSON.stringify({error:s,errorInfo:c,path:m.pathname}))};return d(Hr,{container:!0,dir:`rtl`,id:`dir`,children:[l(Hr,{item:!0,children:a&&(o?l(V9,{isReadOnlyPositionSelection:f,showPositionSelection:p}):l(z9,{...u}))}),l(G,{className:i(n.content,r.content),children:d(Hr,{container:!0,className:r.root,columns:12,children:[l(Hr,{item:!0,xs:12,children:l(St,{variant:`h3`,className:r.title,children:`متاسفیم! به نظر میرسه یه مشکلی به وجود اومده`})}),l(Hr,{item:!0,xs:12,children:l(`img`,{src:`/error-boundary.svg`,alt:`error-boundary`,className:r.img})}),d(Hr,{item:!0,xs:12,children:[l(St,{variant:`h5`,className:r.callSupport,children:`لطفا با پشتیبانی آوات تماس بگÛ
2745ŒØ±ÛŒØ¯ تا مشکل را برطرف کنیم.`}),d(G,{className:r.awatSupport,children:[!o&&l(`img`,{src:`/awat-support.svg`,alt:`awat-support`}),d(St,{variant:`h5`,children:[`یک راه سریع برای تماس با پشتیبانی آوات، `,l(`b`,{children:`سامانه گفتگوی آنلاین`}),` است`]})]}),l(nr,{variant:`text`,onClick:_,className:r.copyErrorButton,id:`copy-error-button`,children:`کپی کردن جزئیات خطا`})]})]})})]})},que=class extends J.PureComponent{constructor(e){super(e),this.state={hasError:!1,error:``,errorInfo:``}}componentDidUpdate(e){this.props.urlPathSegments.join(``)!==e.urlPathSegments.join(``)&&this.setState({hasError:!1,error:``,errorInfo:``})}componentDidCatch(e,t){this.setState({hasError:!0,error:e,errorInfo:t})}render(){return this.state.hasError?l(Kue,{...this.props,error:this.state.error.toString(),errorInfo:this.state.errorInfo.componentStack.toString()}):this.props.children}},Y9=240,Jue=B()((e,{open:t})=>({logoutMobile:{position:`absolute`,bottom:0,width:`100%`,padding:`10px 20px`,border:0,display:`flex`,justifyContent:`space-between`},root:{flexGrow:1,zIndex:1,overflow:`hidden`,position:`relative`,display:`flex`,"& .MuiToolbar-root":{paddingRight:`15px`,paddingLeft:`15px`}},hide:{display:`none`},drawer:{width:Y9,flexShrink:0,whiteSpace:`nowrap`},drawerOpen:{width:Y9,transition:e.transitions.create(`width`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen})},drawerClose:{transition:e.transitions.create(`width`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),overflowX:`hidden`,width:e.spacing(7),[e.breakpoints.up(`sm`)]:{width:e.spacing(8)}},toolbar:{display:`flex`,alignItems:`center`,justifyContent:`flex-end`,padding:e.spacing(0,1),...e.mixins.toolbar},rootList:{width:`initial`,maxWidth:360,margin:t?e.spacing(0,1.5):0,backgroundColor:e.palette.background.paper,height:`100%`,display:`flex`,flexDirection:`column`,"& a":{width:`unset`,margin:`7px 10px`,borderRadius:8}},smallButton:{height:19,borderRadius:7,lineHeight:1,color:e.palette.background.default,backgroundColor:e.palette.background.green,fontSize:10},button:{display:`block`,marginTop:e.spacing(2)},formControl:{margin:e.spacing(1),minWidth:120},select:{width:`100%`},logout:{border:0,bottom:0,padding:`10px 20px`,position:`fixed`,justifyContent:`space-between`,background:`#888`,width:210,borderRadius:0,margin:0,left:0,"&:hover":{background:`#888`}}})),X9=e=>{let{userOrganizationsAsync:t,ownedOrganizationsAsync:n,open:r}=e,{sideMenus:i}=hg(),{classes:a,cx:o}=Jue({open:r}),{signedInUser:s}=xc();return(0,J.useEffect)(()=>{let e={signedInUserId:s?.id};t(e),n(e)},[]),d(Rr,{variant:`permanent`,className:o(a.drawer,{[a.drawerOpen]:r,[a.drawerClose]:!r}),classes:{paper:o({[a.drawerOpen]:r,[a.drawerClose]:!r})},children:[l(`div`,{className:a.toolbar}),l(Lr,{}),l(Gr,{component:`nav`,"aria-labelledby":`nested-list-subheader`,className:a.rootList,children:i.map(t=>ue(t,{...e,key:i.indexOf(t)}))})]})};X9.propTypes={userOrganizationsAsync:Z.default.func.isRequired,ownedOrganizationsAsync:Z.default.func.isRequired,open:Z.default.bool.isRequired};var Yue=Uk(Ze(e=>{let{organization:t,auth:n,letters:r,positions:i,profile:a,correspondenceAuthz:o}=e;return{organization:t,auth:n,letters:r,positions:i,profile:a,correspondenceAuthz:o}},{userOrganizationsAsync:jw,ownedOrganizationsAsync:Mw,composeEce:HS})(X9)),Z9=e=>({root:{flexGrow:1,zIndex:1,overflow:`hidden`,position:`relative`,display:`flex`,height:`100%`},desktopRootPage:{display:`flex`,alignItems:`start`,width:`100%`,maxWidth:`1280px`,margin:`auto`,height:`100%`},mobileRootPage:{height:`100%`,display:`block`},rootMobile:{height:`100%`,display:`flex`,position:`relative`,flexDirection:`column`,justifyContent:`space-between`,overflow:`hidden`},content2:{flexGrow:1,height:`100%`,display:`flex`,alignItems:`center`,textAlign:`center`,flexDirection:`column`,overflowY:`auto`},content:{flexGrow:1,padding:`0 16px`,transition:e.transitions.create(`margin`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginTop:65,height:`calc(100vh - 64px)`,overflowY:`auto`,alignItems:`center`,position:`relative`}
2745,contentShift:{paddingTop:`21px`,paddingBottom:`21px`,transition:e.transitions.create(`margin`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0},mobileContent:{flexGrow:1,marginTop:64,height:`calc(100vh - 123px)`,background:e.palette.background.default,overflow:`auto`},mobileContentWithTopBar:{marginTop:64,overflow:`auto`,height:`calc(100vh - 64px)`},mobileContentWithOutBottomBarTopBar:{display:`flex`,flexDirection:`column`,overflow:`auto`,flex:1},goBack:{backgroundColor:`#f3f3f3`,padding:e.spacing(.4),borderRadius:`50%`,width:`1.35em`,height:`1.35em`,fontSize:`1.3rem`},breadcrumbs:{width:`100%`,display:`flex`,alignItems:`center`,maxWidth:1080,margin:`0 ${e.spacing(3)}`,"& a":{color:e.palette.text.link,fontSize:`0.875rem`},"& p":{color:e.palette.text.secondary,fontSize:`0.875rem`,fontWeight:`bold`}},breadcrumbsIcon:{color:e.palette.text.gray},bold:{fontWeight:`bold`},middlePaper:{display:`flex`,alignItems:`center`,flexDirection:`column`,padding:`24px 32px`,borderRadius:16,boxShadow:`0 3px 10px 0 rgba(0, 0, 0, 0.1)`,backgroundColor:e.palette.background.default,margin:`auto`,minHeight:545,width:374},mainPaper:{position:`relative`,paddingBottom:40,width:`100%`,maxWidth:1280,alignItems:`center`,top:80},rootPage:{borderRadius:12,height:`100%`,[e.breakpoints.down(`md`)]:{minHeight:`unset`},width:`100%`,alignItems:`center`,margin:`auto`,[e.breakpoints.down(`md`)]:{top:10,overflowY:`auto`,margin:`1px 0px`}},withBack:{width:`calc(100% - 56px)`},paper:{borderRadius:12,minHeight:` calc(100vh - 108px)`,[e.breakpoints.down(`md`)]:{minHeight:`unset`}},textCenter:{textAlign:`center`},marginTop1:{marginTop:e.spacing(1)},marginTop2:{marginTop:e.spacing(2)},marginTop3:{marginTop:e.spacing(3)},marginTop4:{marginTop:e.spacing(4)},marginTop5:{marginTop:e.spacing(5)},marginBottom1:{marginBottom:e.spacing(1)},marginBottom2:{marginBottom:e.spacing(2)},ButtonsForm:{[e.breakpoints.down(`lg`)]:{display:`flex`,flexDirection:`row-reverse`,width:`100%`,margin:0,marginTop:24},[e.breakpoints.up(`md`)]:{display:`flex`,width:`100%`,justifyContent:`flex-start`,marginTop:e.spacing(4),flexFlow:`row-reverse`,"& .MuiButton-text":{marginRight:e.spacing(2)},"& .MuiButton-root":{paddingRight:e.spacing(4),paddingLeft:e.spacing(4),height:40,position:`relative`,minWidth:145}}},validationPassword:{padding:0,listStyle:`none`},itemValidationPassword:{width:`50%`,float:`right`,color:e.palette.text.gray,display:`flex`,alignItems:`center`,"& svg":{fill:`#00c89c`,fontSize:`.9rem`,marginLeft:`2px`},"& svg.dash":{fill:e.palette.text.gray}},contentInnerMobile:{padding:`${e.spacing(4)} ${e.spacing(3)}`},ListItem:{height:40,padding:e.spacing(2),margin:[e.spacing(1,0,0),`!important`],borderRadius:e.spacing(1),width:`-webkit-fill-available`,"& svg":{transition:`transform 0.3s ease-in-out`,color:`#49454F`},"& .arrowIcon":{fill:e.palette.text.lightGray},"& .MuiListItemText-root":{transition:`transform 0.3s ease-in-out`,marginRight:8},"& .MuiTypography-body1":{fontSize:15,fontWeight:`bold`},"& .MuiListItemIcon-root":{minWidth:`unset`},"&:hover":{"& svg":{transform:`translate(${e.spacing(-1.5)} , 0px)`},"& .MuiListItemText-root":{transform:`translate(${e.spacing(-1.5)} , 0px)`}}},CollapseItem:{marginBottom:10,margin:e.spacing(0,3,0,1)},SubListItem:{paddingRight:`40px`},ListItemText2:{"& .MuiListItemText-root":{marginRight:8},"& .MuiTypography-body1":{fontSize:14}},miniSidebarItem:{display:`flex`,alignItems:`center`,flexDirection:`column`,color:e.palette.text.third,"& p":{fontSize:8,marginTop:3},[e.breakpoints.down(`sm`)]:{flexDirection:`row`,"& span":{fontSize:`0.875rem`,marginRight:4,fontWeight:500}}},miniListItem:{display:`flex`,alignItems:`center`,justifyContent:`center`,[e.breakpoints.down(`sm`)]:{justifyContent:`right`,margin:`8px 0`}},listItemSecretariats:{bottom:0},selectedSidebarItem:{color:e.palette.primary.main,"& span":{color:e.palette.primary.main},"& svg":{transform:`unset !important`,fill:e.palette.primary.main},"& .MuiListItemText-root":{transform:`unset !important`},background:`#faf6ff`,borderRadius:8,[e.breakpoints.down(`sm`)]:{width:`unset`}},menuListItemIcon:{minWidth:`unset`,paddingLeft:4},circleButtonLabel:{display:`flex`,flexDirection:`column`,[e.breakpoints.down(`sm`)]:{flexDirection:`row`,justifyContent:`left`,alignItems:`center`}},circleButtonRoot:{color:e.palette.background.secondColor,"&:hover":{background:`unset`}},moreButtonRoot:{color:e.palette.text.twilightVelvet,width:`100%`,justifyContent:`flex-start`},circleButtonDone:{color:e.palette.text.success,"&:hover":{background:`unset`}},circleButtonDisabled:{color:`${e.palette.text.success}!important`,"&:hover":{background:`unset`}},desktopSnackbarContainer:{top:`75px !important`,right:`250px !important`},mobileSnackbarContainer:{zIndex:`9999 !important`},guidePage:{flexGrow:1,padding:`0`,transition:e.transitions.create(`margin`,{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginTop:65,height:`calc(100vh - 64px)`,overflowY:`auto`,alignItems:`center`,position:`relative`},unReadLetter:{fontWeight:`bold`,color:e.palette.text.dark},toastifyTheme:{padding:`0 !important`,display:`flex`,flexDirection:`column`,alignItems:`flex-start !important`,width:`100% !important`,boxShadow:`unset !important`,background:`unset !important`,"&.Toastify__toast-theme--light":{boxShadow:`unset !important`,background:`unset !important`},"&.Toastify__progress-bar--wrap":{position:`relative`}},notification:{minWidth:`450px`,maxWidth:`450px`},notificationBody:{padding:e.spacing(0,1,1)},notificationProgress:{background:`${e.palette.primary.main} !important`,width:`100% !important`,height:e.spacing(.5),borderRadius:e.spacing(.5),zIndex:1}
2745,errorBoundaryBox:{display:`flex`,alignItems:`center`,justifyContent:`center`,flexDirection:`column`,textAlign:`center`,height:`100%`,width:`100%`,"& p":{fontSize:22,fontWeight:`bold`,[e.breakpoints.down(`sm`)]:{fontSize:18}},"& img":{width:380}}}),Q9=ae(Se,{root:{"&.notistack-MuiContent-success":{fontSize:`14px !important`,fontWeight:`500 !important`,borderRadius:`0 !important`,borderRight:`8px solid #3fc063 !important`,background:`#edf7ed !important`,color:`#000000 !important`,justifyContent:`space-between`,gap:32,"& div:last-child":{margin:0,padding:0},"& svg":{"&:first-child":{color:`unset !important`},"&:last-child":{color:`#3fc063 !important`,marginLeft:8}}},"&.notistack-MuiContent-error":{fontSize:`14px !important`,fontWeight:`500 !important`,borderRadius:`0 !important`,borderRight:`8px solid #d31f22 !important`,background:`#fdeded !important`,color:`#000000 !important`,justifyContent:`space-between `,gap:32,"& div:last-child":{margin:0,padding:0},"& svg":{"&:first-child":{color:`unset !important`},"&:last-child":{color:`#d31f22 !important`,marginLeft:8}}},"&.notistack-MuiContent-warning":{fontSize:`14px !important`,fontWeight:`500 !important`,borderRadius:`0 !important`,borderLeft:`8px solid orange !important`,background:`#fff4e5 !important`,justifyContent:`space-between `,color:`#000000 !important`,gap:32,"& div:last-child":{margin:0,padding:0},"& svg":{"&:first-child":{color:`unset !important`},"&:last-child":{color:`orange !important`,marginLeft:8}}},"&.notistack-MuiContent-info":{fontSize:`14px !important`,fontWeight:`500 !important`,borderRadius:`0 !important`,borderRight:`8px solid #1f67d3 !important`,background:`#e5efff !important`,color:`#000000 !important`,justifyContent:`space-between `,gap:32,"& div:last-child":{margin:0,padding:0},"& svg":{"&:first-child":{color:`unset !important`},"&:last-child":{color:`#1f67d3 !important`,marginLeft:8}}}}}),Xue=B()(Z9),Zue=({snackbarKey:e})=>{let{closeSnackbar:t}=_e();return l(ui,{onClick:()=>t(e),children:l(ci,{})})},Que=({translatedPathSegments:e,urlPathSegments:t,InitializerLoading:n})=>{let r=Dt(e=>e.breakpoints.down(`sm`)),i=Dt(e=>e.breakpoints.between(`sm`,`lg`)),a=Dt(e=>e.breakpoints.up(`lg`)),[o,s]=(0,J.useState)(!0),{showAppBar:c,showSideBar:u,isGuidePage:p,showBottomBar:m,isReadOnlyPositionSelection:h,showPositionSelection:g,showBackButton:_,backURL:v,openCheckStatusOveredDialog:y,handleCloseCheckStatusOveredDialog:b,commandName:S}=hg(),[C,w]=(0,J.useState)(),[T,E]=(0,J.useState)({type:``,id:``}),O=D(),{classes:k,cx:A}=Xue(),j=()=>!m&&!c?k.mobileContentWithOutBottomBarTopBar:!m&&c?k.mobileContentWithTopBar:k.mobileContent,M=()=>p?k.guidePage:u&&c||!u&&c?A(k.content,{[k.contentShift]:o}):A(k.content2),N={translatedPathSegments:e,handleDrawerOpen:()=>{s(!o)},urlPathSegments:t,showPositionSelection:g,isReadOnlyPositionSelection:h},P=()=>{O(-1)},F=(0,J.useCallback)(e=>l(Zue,{snackbarKey:e}),[]);return l(ye,{maxSnack:3,anchorOrigin:{vertical:r?`bottom`:`top`,horizontal:`right`},action:F,TransitionComponent:Qn,iconVariant:{success:l(q_,{fontSize:`small`}),error:l(U_,{fontSize:`small`}),info:l(gi,{fontSize:`small`}),warning:l(dv,{fontSize:`small`})},Components:{success:Q9,error:Q9,info:Q9,warning:Q9},classes:{containerRoot:r&&k.mobileSnackbarContainer,containerAnchorOriginTopLeft:u&&k.desktopSnackbarContainer},children:l(que,{...N,showAppBar:c,mobile:r,children:d(G,{dir:`rtl`,id:`dir`,children:[l(me,{}),d(G,{className:r?k.rootMobile:k.root,children:[c&&(r?l(V9,{isReadOnlyPositionSelection:h,showPositionSelection:g}):l(z9,{...N})),!n&&d(f,{children:[!r&&u&&l(Yue,{backURL:v,open:o}),l(`main`,{className:r?j():M(),children:d(G,{className:A({[k.desktopRootPage]:a||i,[k.mobileRootPage]:r}),children:[!r&&_&&l(S9,{goBack:P}),l(J.Suspense,{fallback:l(f,{}),children:d(G,{className:A({[k.rootPage]:a||i,[k.mobileRootPage]:r,[k.withBack]:!r&&_}),children:[l(x,{}),l(J9,{open:y,onClose:b,commandName:S})]})})]})}),r&&m&&l(Uue,{selectedItem:C,setSelectedItem:w,menuInfo:T,setMenuInfo:E})]})]}),!r&&!n&&l(Jee,{position:`bottom-right`,autoClose:1e4,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,pauseOnFocusLoss:!0,pauseOnHover:!0,transition:Uee,limit:1,rtl:!0,
2745closeButton:!1,draggable:!1,className:k.notification,toastClassName:k.toastifyTheme,bodyClassName:k.notificationBody,progressClassName:k.notificationProgress})]})})})},$ue=Ze(null,{organizationEmployeeContactsReset:xi,createContactGroupReset:ww,searchContactsReset:Ew,getOrganizationPositionsReset:Ci,forwardedLetterToMeReset:KS,lettersNotExchangedReset:GS,forwardedLetterByMeReset:qS,contactGroupContactsReset:Tw,contactsOrganizationReset:RS,organizationContactGroupsReset:Cw,getIndicatorsReset:gs,getSecretariatsReset:ms,organizationSolutionsListReset:fc,correspondenceRolesReset:Bo,getUnreadMessagesCountAsync:gx,getAllUnreadMessagesReset:Sx})(E1(x1(e=>{let{organizationId:t}=h(),{signedInUser:n}=xc(),{pathname:r}=P(),[i]=ee(),{awSocket:a}=hg(),o=!!Xe(e=>e.orders.availableSolutions.data)?.includes(`Chat`),s=(0,J.useRef)(),{organizationEmployeeContactsReset:c,createContactGroupReset:u,searchContactsReset:f,getOrganizationPositionsReset:p,lettersNotExchangedReset:m,forwardedLetterToMeReset:g,forwardedLetterByMeReset:_,contactGroupContactsReset:v,contactsOrganizationReset:y,organizationContactGroupsReset:b,getIndicatorsReset:x,getSecretariatsReset:S,organizationSolutionsListReset:C,correspondenceRolesReset:w,translatedPathSegments:T,urlPathSegments:E,InitializerLoading:D,getUnreadMessagesCountAsync:O,getAllUnreadMessagesReset:k}=e;return(0,J.useEffect)(()=>{let e=t??i.get(`organizationId`);if(!(!e||!n?.id)){if(!o){k();return}if(O({organizationId:e,participantId:n.id}),a&&n?.id){let t=({data:{data:t,type:i,socketStatus:a}})=>{s.current!==t?.id&&(i===`new_message`||a===`connected`)&&e&&n?.id&&!r.endsWith(`/chat`)&&(s.current=t?.id,O({organizationId:e,participantId:n.id}))};return a.addEventListener(`message`,t),()=>{a.removeEventListener(`message`,t)}}}},[t,n?.id,a,r,i,o,O,k]),(0,J.useEffect)(()=>()=>{t&&(C(),c(),u(),f(),p(),m(),g(),_(),v(),y(),b(),x(),S(),w())},[t]),d(Pk.Provider,{value:{stylesGenerator:Z9},children:[l(Que,{translatedPathSegments:T,urlPathSegments:E,InitializerLoading:D}),l(b9,{})]})}))),$9=Sc(({children:e})=>{let{auth:t}=Zh(),{setTitle:n,setIconTopBar:r,setShowSideBar:i,setShowAppBar:a,setShowBottomBar:o,setIsReadOnlyPositionSelection:s,setShowPositionSelection:c,setShowBreadcrumbs:u,setIgnoreBreadcrumb:d,setBreadcrumbsInfo:p,setSideMenus:m,setIsGuidePage:h,setShowBackButton:g,setBottomBarMenus:_,setBackURL:v}=hg(),y=P(),{props:b}=e;return(0,J.useEffect)(()=>{b.title&&n(b.title),r(b.iconTopBar||``),i(b.showSideBar||!1),a(b.showAppBar||!1),o(b.showBottomBar||!1),s(b.isReadOnlyPositionSelection||!1),c(b.showPositionSelection||!0),u(b.showBreadcrumbs||!1),d(b.ignoreBreadcrumb||null),p(b.breadcrumbsInfo||null),m(b.sideMenus||[]),h(b.isGuidePage||!1),g(b.showBackButton||!1),_(b.bottomBarMenus||[]),v(b.backURL||`/organizations`)},[y.pathname]),t?l(f,{children:J.Children.map(e,e=>(0,J.isValidElement)(e)?(0,J.cloneElement)(e,{security:b?.security}):e)}):(window.location.href=`/login`,l(f,{}))}),ede=()=>l(jk,{children:l(x,{})});function tde(){let e=D(),t=P();return(0,J.useEffect)(()=>{localStorage.getItem(`user`)&&e(t.pathname===`/`||t.pathname===`/login`?`/organizations`:t.pathname+t.search,{replace:!0})},[]),(0,J.useEffect)(()=>{let{pathname:n}=t,r=JSON.parse(localStorage.getItem(`tokens`)||`null`),i=n===`/register`&&new URLSearchParams(t.search).get(`step`)===`3`;(n===`/`||n===`/login`||i)&&r&&e(`/organizations`)},[t,e]),d(ce,{children:[l(w,{path:`/terms`,element:l(gh,{})}),l(w,{path:`/logs`,element:l(ud,{})}),l(w,{path:`/guide`,element:l(Xm,{})}),l(w,{element:l(ede,{}),children:l(w,{path:`/`,element:l($ue,{}),children:y1.map(e=>l(J.Fragment,{children:e.redirectTo?l(w,{path:e.path,element:l(o$,{to:e.redirectTo})}):e.isPublicRoute?l(w,{path:e.path,element:l(e.component,{})}):l(w,{path:e.path,element:l($9,{children:l(e.component,{showAppBar:e.showAppBar,showSideBar:e.showSideBar,showBottomBar:e.showBottomBar,isReadOnlyPositionSelection:e.isReadOnlyPositionSelection,showPositionSelection:e.showPositionSelection,showBreadcrumbs:e.showBreadcrumbs,ignoreBreadcrumb:e.ignoreBreadcrumb,breadcrumbsInfo:e.breadcrumbsInfo,title:e.title,iconTopBar:e.iconTopBar,sideMenus:e.sideMenus,bottomBarMenus:e.bottomBarMenus,isGuidePage:e.isGuidePage,showBackButton:e.showBackButton,security:e?.security,backURL:e?.backURL},t.pathname)})})},e.path))})})]})}$9.propTypes={children:(0,Z.shape)({props:(0,Z.shape)({}).isRequired}).isRequired},(0,Pi.createRoot)(document.getElementById(`root`)).render(l(A,{history:zi({window}
2745),children:l(Mk,{children:l(tde,{})})})),window.addEventListener(`load`,()=>{`serviceWorker`in navigator&&navigator.serviceWorker.register(`/service-worker.js`)}),(e=>{e&&e instanceof Function&&n(async()=>{let{getCLS:e,getFID:t,getFCP:n,getLCP:r,getTTFB:i}=await import(`./BvRk9kiK2.js`);return{getCLS:e,getFID:t,getFCP:n,getLCP:r,getTTFB:i}},[]).then(({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:a})=>{t(e),n(e),r(e),i(e),a(e)})})();export{aF as $,aC as $a,q_ as $c,KC as $i,jd as $l,hD as $n,cx as $o,Qw as $r,Ry as $s,oA as $t,ss as $u,L1 as A,YS as Aa,Sv as Ac,co as Ad,xw as Ai,Zh as Al,ZD as An,uS as Ao,rE as Ar,ub as As,mM as At,Is as Au,HZ as B,KS as Ba,lv as Bc,$a as Bd,Cw as Bi,Tp as Bl,wD as Bn,kx as Bo,LT as Br,ob as Bs,Ej as Bt,ps as Bu,L7 as C,cC as Ca,Hv as Cc,yo as Cd,jw as Ci,Ig as Cl,mO as Cn,bS as Co,sE as Cr,kb as Cs,lN as Ct,tc as Cu,j4 as D,$x as Da,Lv as Dc,oo as Dd,fw as Di,Eg as Dl,HD as Dn,pC as Do,dE as Dr,Cb as Ds,pM as Dt,Os as Du,H4 as E,RS as Ea,Rv as Ec,ro as Ed,gw as Ei,Dg as El,oO as En,nS as Eo,uE as Er,Sb as Es,oN as Et,Xs as Eu,EQ as F,fS as Fa,gv as Fc,Ya as Fd,Vte as Fi,Zm as Fl,zD as Fn,Wx as Fo,iE as Fr,hb as Fs,Uj as Ft,Ms as Fu,pU as G,IS as Ga,rv as Gc,_a as Gd,aw as Gi,sp as Gl,kD as Gn,Rx as Go,OT as Gr,Oy as Gs,DA as Gt,Xo as Gu,tJ as H,ES as Ha,sv as Hc,Ba as Hd,Ew as Hi,yp as Hl,CD as Hn,Mx as Ho,PT as Hr,Qy as Hs,jA as Ht,us as Hu,xQ as I,rC as Ia,mv as Ic,Qa as Id,vw as Ii,Vm as Il,LD as In,Gx as Io,ZT as Ir,nb as Is,zj as It,Ls as Iu,Dz as J,wS as Ja,$_ as Jc,Ni as Jd,nw as Ji,qf as Jl,fD as Jn,lx as Jo,zT as Jr,Py as Js,yA as Jt,xs as Ju,xV as K,vS as Ka,nv as Kc,ga as Kd,Mte as Ki,ip as Kl,TD as Kn,Nx as Ko,RT as Kr,Fy as Ks,EA as Kt,Ss as Ku,QZ as L,cS as La,pv as Lc,qa as Ld,Rte as Li,$p as Ll,XD as Ln,Vx as Lo,JT as Lr,rb as Ls,Ij as Lt,is as Lu,N1 as M,CS as Ma,bv as Mc,io as Md,yw as Mi,ch as Ml,GD as Mn,Yx as Mo,eE as Mr,fb as Ms,Xj as Mt,Fs as Mu,A1 as N,tC as Na,yv as Nc,so as Nd,pw as Ni,ih as Nl,UD as Nn,Hx as No,nE as Nr,pb as Ns,Jj as Nt,Ns as Nu,V1 as O,VS as Oa,Fv as Oc,ao as Od,ww as Oi,vg as Ol,aO as On,PS as Oo,fE as Or,bb as Os,fM as Ot,js as Ou,LQ as P,_S as Pa,_v as Pc,Ka as Pd,zte as Pi,eh as Pl,sO as Pn,Ux as Po,tE as Pr,mb as Ps,Kj as Pt,ks as Pu,mF as Q,kS as Qa,J_ as Qc,qC as Qi,ef as Ql,vD as Qn,xx as Qo,Yw as Qr,Iy as Qs,SA as Qt,$o as Qu,ZZ as R,qS as Ra,fv as Rc,Xa as Rd,mw as Ri,Jp as Rl,iO as Rn,Ox as Ro,$T as Rr,ib as Rs,Oj as Rt,_s as Ru,w7 as S,MS as Sa,Uv as Sc,xo as Sd,qte as Si,zg as Sl,pO as Sn,XS as So,_E as Sr,jb as Ss,dN as St,pc as Su,e3 as T,Qx as Ta,zv as Tc,So as Td,Tw as Ti,Og as Tl,QD as Tn,BS as To,lE as Tr,yb as Ts,sN as Tt,Ys as Tu,Gq as U,zS as Ua,av as Uc,Va as Ud,bw as Ui,dp as Ul,AD as Un,Ax as Uo,bT as Ur,Jy as Us,kA as Ut,os as Uu,yZ as V,eS as Va,cv as Vc,Za as Vd,_w as Vi,wp as Vl,OD as Vn,Ix as Vo,uT as Vr,sb as Vs,LA as Vt,Zo as Vu,mU as W,FS as Wa,iv as Wc,va as Wd,Hte as Wi,up as Wl,SD as Wn,Px as Wo,FT as Wr,Ey as Ws,OA as Wt,ws as Wu,YR as X,oS as Xa,X_ as Xc,iw as Xi,jf as Xl,mD as Xn,bx as Xo,IT as Xr,Ly as Xs,xA as Xt,ls as Xu,fz as Y,QS as Ya,Z_ as Yc,ji as Yd,Nte as Yi,Ff as Yl,pD as Yn,sx as Yo,ET as Yr,Dy as Ys,bA as Yt,as as Yu,TR as Z,GS as Za,Y_ as Zc,Pte as Zi,Df as Zl,yD as Zn,hx as Zo,AT as Zr,Ay as Zs,CA as Zt,bs as Zu,Lce as _,_C as _a,Zv as _c,Vo as _d,Xte as _i,C_ as _l,wO as _n,rS as _o,CE as _r,$b as _s,wN as _t,nc as _u,T9 as a,bC as aa,vy as ac,ns as ad,Uw as ai,z_ as al,Vk as an,dS as ao,WE as ar,Qb as as,KP as at,Gu as au,b7 as b,eC as ba,Kv as bc,Co as bd,Bw as bi,__ as bl,xO as bn,nC as bo,gE as br,Ab as bs,gN as bt,mc as bu,x9 as c,TC as ca,py as cc,hs as cd,kw as ci,I_ as cl,Fk as cn,sC as co,ZE as cr,nx as cs,nP as ct,nu as cu,f9 as d,MC as da,ote as dc,Jo as dd,Jte as di,j_ as dl,AO as dn,NS as do,QE as dr,Xb as ds,RN as dt,ec as du,XC as ea,jy as ec,qo as ed,ine as ei,K_ as el,pA as en,gS as eo,dD as er,ux as es,eF as et,wd as eu,u9 as f,vC as fa,ly as fc,Cs as fd,Rw as fi,k_ as fl,NO as fn,lC as fo,zE as fr,Gb as fs,FN as ft,uc as fu,c9 as g,EC as ga,iy as gc,Ao as gd,Aw as gi,w_ as gl,CO as gn,AS as go,PE as gr,tx as gs,EN as gt,lc as gu,tle as h,AC as ha,ay as hc,Bo as hd,Lw as hi,T_ as hl,jO as hn,lS as ho,ME as hr,ex as hs,AN as ht,rc as hu,k9 as i,xC as ia,yy as ic,gs as id,rne as ii,B_ as il,Uk as in,US as io,$E as ir,dx as is,qP as it,n
2745d as iu,P1 as j,yS as ja,xv as jc,lo as jd,Ute as ji,uh as jl,BD as jn,oC as jo,YT as jr,db as js,uM as jt,As as ju,F1 as k,hS as ka,kv as kc,uo as kd,Bte as ki,hg as kl,WD as kn,uC as ko,XT as kr,xb as ks,dM as kt,Ps as ku,b9 as l,wC as la,fy as lc,Qo as ld,Gte as li,N_ as ll,Nk as ln,dC as lo,HE as lr,Ub as ls,tP as lt,xc as lu,$ce as m,yC as ma,oy as mc,zo as md,Fw as mi,E_ as ml,SO as mn,$S as mo,AE as mr,qb as ms,MN as mt,dc as mu,M9 as n,BC as na,xy as nc,vs as nd,Zw as ni,W_ as nl,mA as nn,ZS as no,XE as nr,mx as ns,YP as nt,rd as nu,C9 as o,jC as oa,gy as oc,ys as od,Iw as oi,R_ as ol,zk as on,JS as oo,UE as or,Jb as os,GP as ot,Bu as ou,ale as p,kC as pa,cy as pc,Ho as pd,$te as pi,O_ as pl,bO as pn,TS as po,jE as pr,Wb as ps,NN as pt,ic as pu,Qz as q,iC as qa,ev as qc,Y as qd,rw as qi,ep as ql,uD as qn,fx as qo,DT as qr,ky as qs,TA as qt,Yo as qu,A9 as r,VC as ra,by as rc,es as rd,Xw as ri,U_ as rl,fA as rn,aS as ro,qE as rr,px as rs,JP as rt,id as ru,S9 as s,SC as sa,hy as sc,rs as sd,Qte as si,L_ as sl,Lk as sn,jS as so,eD as sr,Yb as ss,BP as st,zu as su,J9 as t,RC as ta,Cy as tc,ts as td,Jw as ti,G_ as tl,cA as tn,xS as to,GE as tr,gx as ts,$P as tt,bd as tu,_9 as u,CC as ua,dy as uc,ms as ud,Pw as ui,M_ as ul,OO as un,fC as uo,KE as ur,Kb as us,HN as ut,yc as uu,rle as v,OC as va,Yv as vc,_o as vd,Nw as vi,S_ as vl,TO as vn,WS as vo,DE as vr,Rb as vs,Rne as vt,cc as vu,o3 as w,HS as wa,Bv as wc,wo as wd,Kte as wi,Pg as wl,_O as wn,tS as wo,cE as wr,vb as ws,cN as wt,fc as wu,g7 as x,pS as xa,Wv as xc,vo as xd,Mw as xi,Qg as xl,kO as xn,mS as xo,bE as xr,Nb as xs,pN as xt,ac as xu,s9 as y,SS as ya,qv as yc,bo as yd,Zte as yi,x_ as yl,MO as yn,iS as yo,wE as yr,Fb as ys,SN as yt,oc as yu,JZ as z,sS as za,dv as zc,Ja as zd,hw as zi,Ep as zl,xD as zn,Lx as zo,TT as zr,ab as zs,kj as zt,cs as zu};

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.