@26lights/orcha 0.42.44 → 0.42.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +2 -229
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +7379 -27319
- package/dist/orcha.umd.js +3 -230
- package/dist/src/components/AoActivityDetails.vue.d.ts +137 -50
- package/dist/src/components/AoActivityDetailsComments.vue.d.ts +47 -43
- package/dist/src/components/AoActivityDetailsFiles.vue.d.ts +23 -25
- package/dist/src/components/AoActivityTasks.vue.d.ts +49 -25
- package/dist/src/components/AoAddTemplateModal.vue.d.ts +26 -20
- package/dist/src/components/AoAvatar.vue.d.ts +45 -37
- package/dist/src/components/AoBadge.vue.d.ts +10 -13
- package/dist/src/components/AoButton.vue.d.ts +82 -57
- package/dist/src/components/AoButtonCard.vue.d.ts +69 -54
- package/dist/src/components/AoButtonCheck.vue.d.ts +23 -21
- package/dist/src/components/AoCard.vue.d.ts +41 -44
- package/dist/src/components/AoCardFeed.vue.d.ts +126 -39
- package/dist/src/components/AoCardHoriz.vue.d.ts +60 -33
- package/dist/src/components/AoCardProjectItemMilestone.vue.d.ts +106 -39
- package/dist/src/components/AoCardProjectItemPhase.vue.d.ts +82 -42
- package/dist/src/components/AoCardTemplate.vue.d.ts +54 -23
- package/dist/src/components/AoCardTemplateItem.vue.d.ts +33 -16
- package/dist/src/components/AoCardTemplateItemActivity.vue.d.ts +17 -19
- package/dist/src/components/AoCardTemplateItemMilestone.vue.d.ts +11 -18
- package/dist/src/components/AoCardTemplateItemPhase.vue.d.ts +25 -20
- package/dist/src/components/AoCheckboxField.vue.d.ts +45 -42
- package/dist/src/components/AoColHeader.vue.d.ts +16 -13
- package/dist/src/components/AoColorPicker.vue.d.ts +16 -22
- package/dist/src/components/AoComment.vue.d.ts +51 -19
- package/dist/src/components/AoCondensedCardProjectItemPhase.vue.d.ts +82 -42
- package/dist/src/components/AoField.vue.d.ts +24 -33
- package/dist/src/components/AoIcon.vue.d.ts +21 -29
- package/dist/src/components/AoInputField.vue.d.ts +61 -50
- package/dist/src/components/AoListKanban.vue.d.ts +116 -23
- package/dist/src/components/AoModal.vue.d.ts +18 -28
- package/dist/src/components/AoMultiselect.vue.d.ts +15 -18
- package/dist/src/components/AoPageHeader.vue.d.ts +14 -15
- package/dist/src/components/AoProgress.vue.d.ts +23 -16
- package/dist/src/components/AoProjectPhase.vue.d.ts +66 -35
- package/dist/src/components/AoProjectPhases.vue.d.ts +68 -37
- package/dist/src/components/AoRuleLine.vue.d.ts +45 -31
- package/dist/src/components/AoSaveTemplateModal.vue.d.ts +14 -17
- package/dist/src/components/AoSearchField.vue.d.ts +32 -34
- package/dist/src/components/AoTabBar.vue.d.ts +6 -6
- package/dist/src/components/AoTag.vue.d.ts +50 -23
- package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +38 -21
- package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +28 -19
- package/dist/src/components/AoTemplateRules.vue.d.ts +43 -18
- package/dist/src/components/AoTitle.vue.d.ts +51 -40
- package/dist/src/components/icons/AccountBoxSharp.vue.d.ts +1 -1
- package/dist/src/components/icons/AccountCircle.vue.d.ts +1 -1
- package/dist/src/components/icons/AccountTreeOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/AccountTreeRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Add.vue.d.ts +1 -1
- package/dist/src/components/icons/AddBoxOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArchiveOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArrowBackRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArrowDropDownRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ArrowForwardRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/AssignmentOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/AttachFileRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/CalendarTodayOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/CancelRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ChatOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckBoxOutlineBlank.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckBoxOutlineBlankSharp.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckBoxOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/CheckSmallRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ChecklistRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ChevronLeft.vue.d.ts +1 -1
- package/dist/src/components/icons/ChevronRight.vue.d.ts +1 -1
- package/dist/src/components/icons/CloseRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ContactsOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ContentCopyOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/DeleteOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/DragIndicator.vue.d.ts +1 -1
- package/dist/src/components/icons/EditDocumentRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/EditOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/ErrorOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/FilterListRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/FlagRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/FlowsheetOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/GifBox.vue.d.ts +1 -1
- package/dist/src/components/icons/GroupsOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/HomeOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ImageRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Info.vue.d.ts +1 -1
- package/dist/src/components/icons/KeyboardArrowDown.vue.d.ts +1 -1
- package/dist/src/components/icons/KeyboardArrowUp.vue.d.ts +1 -1
- package/dist/src/components/icons/Loading.vue.d.ts +1 -1
- package/dist/src/components/icons/Lock.vue.d.ts +1 -1
- package/dist/src/components/icons/LogoutRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Menu.vue.d.ts +1 -1
- package/dist/src/components/icons/MoreHoriz.vue.d.ts +1 -1
- package/dist/src/components/icons/MoreTimeRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/MoreVert.vue.d.ts +1 -1
- package/dist/src/components/icons/MountainFlagOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/PersonAddOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/PictureAsPdfRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/RadioButtonChecked.vue.d.ts +1 -1
- package/dist/src/components/icons/RadioButtonCheckedOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/RadioButtonUnchecked.vue.d.ts +1 -1
- package/dist/src/components/icons/RemoveRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/SearchRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/SelectCheckBox.vue.d.ts +1 -1
- package/dist/src/components/icons/SendRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Settings.vue.d.ts +1 -1
- package/dist/src/components/icons/SlideshowRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/Target.vue.d.ts +1 -1
- package/dist/src/components/icons/TaskOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/TextSnippetRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/TimerOutline.vue.d.ts +1 -1
- package/dist/src/components/icons/ViewComfyAltRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ViewCompactAltRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/ViewTimelineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/WarningOutlineRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/WarningRounded.vue.d.ts +1 -1
- package/dist/src/components/icons/WaterfallChartRounded.vue.d.ts +1 -1
- package/dist/src/composables/useDetachedOptions.d.ts +1 -2
- package/dist/src/composables/useGetDefaultRankAndName.d.ts +1 -2
- package/dist/src/composables/useIsEditing.d.ts +3 -4
- package/dist/src/composables/useSearchField.d.ts +1 -1
- package/dist/src/composables/useSelectAddedElement.d.ts +1 -2
- package/dist/src/helpers.d.ts +6 -13
- package/dist/src/i18n/i18next.d.ts +2 -3
- package/dist/src/main.d.ts +0 -1
- package/dist/src/router/routes.d.ts +1 -2
- package/dist/src/types/components.d.ts +2 -3
- package/dist/src/types/styles.d.ts +1 -1
- package/dist/src/types/utils.d.ts +1 -2
- package/dist/src/views/AoFeed.vue.d.ts +162 -72
- package/dist/src/views/AoMapping.vue.d.ts +118 -49
- package/dist/src/views/AoProjectOverviewActivityDetails.vue.d.ts +125 -43
- package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +71 -31
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +153 -79
- package/dist/src/views/AoTemplateDetails.vue.d.ts +61 -37
- package/dist/src/views/AoTemplates.vue.d.ts +10 -15
- package/dist/src/views/AoTemplatesList.vue.d.ts +12 -17
- package/package.json +1 -2
- package/dist/src/components/AoRichTextContent.vue.d.ts +0 -37
- package/dist/src/components/AoRichTextEditor.vue.d.ts +0 -45
package/dist/orcha.umd.js
CHANGED
|
@@ -1,233 +1,6 @@
|
|
|
1
|
-
var GV=Object.defineProperty;var YV=(ce,a,at)=>a in ce?GV(ce,a,{enumerable:!0,configurable:!0,writable:!0,value:at}):ce[a]=at;var jl=(ce,a,at)=>(YV(ce,typeof a!="symbol"?a+"":a,at),at),f0=(ce,a,at)=>{if(!a.has(ce))throw TypeError("Cannot "+at)};var n=(ce,a,at)=>(f0(ce,a,"read from private field"),at?at.call(ce):a.get(ce)),w=(ce,a,at)=>{if(a.has(ce))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(ce):a.set(ce,at)},x=(ce,a,at,Li)=>(f0(ce,a,"write to private field"),Li?Li.call(ce,at):a.set(ce,at),at);var E=(ce,a,at)=>(f0(ce,a,"access private method"),at);(function(ce,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuedraggable"],a):(ce=typeof globalThis<"u"?globalThis:ce||self,a(ce.Orcha={},ce.Vue,ce.vueRouter,ce.Draggable))})(this,function(ce,a,at,Li){var ds,kc,Ji,_c,qr,xc,_i,hi,eo,hs,Zr,$i,Gr,xi,Yr,Ec,Tc,Kr,Oi,gn,us,to,Mc,Sc,Yt,bn,Ac,ps,Ei,No,Bc,m0,gp,iy,fs,Lo,bp,oy,vn,Xr,yn,vp,sy,yp,ny,wp,ry,Qr,wn,Cn,kn,Cp,ay,kp,ly,Nc,g0,_p,cy,xp,dy,Lc,_n,qh,$e,Ic,$c,io,ms,gs,Io,Oc,Dc,Jr,ea,ta,bs,ia,oo,oa,Vc,Et,ft,Ti,$o,vs,xn,Zh,Rc,b0,Ep,hy,so,Xs,zc,v0,En,Gh,Pc,y0,Tp,uy,Mp,py,sa,Em,na,Tm,Hc,w0,Sp,fy,jc,C0,Ap,my,Fc,k0,Bp,gy,Np,by,Lp,vy,Ip,yy,$p,wy,Op,Cy,Dp,ky,je,Wc,ra,Tn,aa,Mn,ei,la,ys,Uc,_0,ca,Mm,Vp,_y,Rp,xy,qc,x0,Oo,Tr,zp,Ey,Zc,da,ha,Gc,ws,Sn,et,ui,Yc,ua,An,Xe,Di,pa,fa,Sm,Pp,Ty,Kc,E0,Hp,My,jp,Sy,Bn,Oe,At,ma,Nn,Xc,Ge,Do,ga,Qc,Jc,Fp,Ay,ed,T0,td,M0,ba,Am,he,no,Bt,Ln,va,ya,wa,Ca,ka,_a,xa,Cs,Fl,id,S0,be,Vi,ks,Mi,Wp,By,Up,Ny,qp,Ly,Zp,Iy,Ea,Bm,Gp,$y,Yp,Oy,_s,Wl,In,Yh,Fe,od,sd,A0,nd,B0,U,Ri,tt,$n,Tt,rd,ad,ld,cd,Ta,dd,hd,ud,pd,fd,md,gd,On,Ma,Sa,Aa,Ba,bd,vd,Dn,Vn,Kh,yd,N0,Kp,Dy,Xp,Vy,Qp,Ry,Jp,zy,ef,Py,tf,Hy,wd,L0,Cd,I0,Rn,Xh,of,jy,sf,Fy,nf,Wy,rf,Uy,af,qy,lf,Zy,Si,kd,zi,ro,Vo,xs,Na,La,de,Ia,_d,$a,zn,Es,Pn,Oa,Da,Va,Ra,Ts,Hn,Qh,jn,Jh,cf,Gy,df,Yy,Fn,eu,hf,Ky,xd,$0,Ed,O0,Td,D0,uf,Xy,pf,Qy,ff,Jy,mf,ew,gf,tw,Md,V0,oe,Sd,Ad,Bd,Nd,Wn,Un,za,Pa,Ld,Ha,qn,Id,$d,R0,Od,z0,ja,Nm,Dd,P0,bf,iw,Zn,tu,Vd,H0,vf,ow,Rd,j0,zd,F0,yf,sw,wf,nw,Cf,rw,kf,aw,_f,lw,xf,cw,Ef,dw,Tf,hw,Mf,uw,Sf,pw,Af,fw,Bf,mw,Nf,gw,Ro,ae,mt,Gn,Pd,Ms,ti,Dt,Ss,Fa,Wa,Ua,qa,Lf,bw,If,vw,Hd,W0,jd,U0,$f,yw,Of,ww,Df,Cw,Vf,kw,Rf,_w,zf,xw,Pf,Ew,Hf,Tw,jf,Mw,Ff,Sw,Fd,ao,Ft,Wd,Yn,Za,Ga,Ya,Ka,Kt,Kn,Xa,As,Ud,Mt,Xn,qd,lo,Qa,Se,pi,Pe,Ja,ut,el,gt,kt,zo,Qn,tl,Po,co,Pi,ho,Ai,Jn,il,ol,Wf,Aw,er,iu,Bs,Ul,Zd,q0,Uf,Bw,tr,ou,Gd,Z0,ir,su,qf,Nw,Zf,Lw,Gf,Iw,Yd,G0,Kd,Y0,sl,Lm,Yf,$w,Kf,Ow,Xf,Dw,Qf,Vw,Jf,Rw,e1,zw,t1,Pw,i1,Hw,o1,jw,s1,Fw,n1,Ww,r1,Uw,a1,qw,l1,Zw,c1,Gw,Xd,le,nl,Vt,Wt,Ns,rl,al,Ls,Bi,d1,Yw,h1,Kw,u1,Xw,p1,Qw,f1,Jw,m1,e3,g1,t3,it,Qd,ll,cl,ii,Jd,eh,K0,th,xe,Hi,ji,fi,Ye,Nt,Fi,Xt,mi,Is,or,dl,hl,$s,uo,Os,po,Ho,jo,Ds,ih,fo,mo,Fo,b1,i3,v1,o3,oh,X0,y1,s3,w1,n3,C1,r3,ul,Ve,Vs,pl,fl,Qe,pt,lt,sr,sh,ml,Rs,gl,nh,rh,zs,bl,vl,k1,a3,nr,nu,rr,ru,_1,l3,yl,Im,Lt,go,wl,Wo,Ut,bo,ah,ar,Ps,lr,cr,Cl,kl,vo,Uo,yo,qo,dr,_l,hr,au,lh,Q0,ur,lu,x1,c3,pr,cu,Hs,ql,E1,d3,T1,h3,M1,u3,S1,p3,A1,f3,xl,te,Ue,js,ch,dh,gi,qe,we,bt,fr,hh,uh,ph,fh,mh,gh,bh,vh,yh,wh,Ch,kh,Fs,El,_h,xh,mr,Eh,B1,m3,N1,g3,L1,b3,I1,v3,Th,J0,Ae,Zo,It,St,wo,Tl,Mh,Sh,Ah,Bh,Ml,Sl,Al,Bl,Ni,Nh,Ke,ot,bi,$t,gr,Co,br,Ws,Nl,Ll,Us,qs,Lh,$1,y3,Ih,e2,O1,w3,Il,$m,D1,C3,$l,Om,V1,k3,R1,_3,z1,x3,P1,E3,H1,T3,$h,t2,vi,Ui,Ol,Dm,j1,M3,F1,S3,Oh,i2,W1,A3,U1,B3,Dh,o2,q1,N3,Vh,s2,vr,du,Dl,Vm,yr,hu,Vl,Rm,Rh,n2,zh,r2,wr,uu,Z1,L3,Re,Ph,ze,Hh,jh,a2,G1,I3,Ce,ko,oi,Rt,se,nt,rt,zt,qt,Zs,Gs,Ys,Y1,$3,K1,O3,kr,pu,X1,D3,Q1,V3,J1,R3,em,z3,tm,P3,im,H3,om,j3,Fh,l2,sm,F3,nm,W3,rm,U3,am,q3,lm,Z3,cm,G3,dm,Y3,hm,K3,si,ve,um,X3,pm,Q3,fm,J3,mm,e5,gm,t5,ni,Rl,zm,bm,i5,vm,o5,ym,s5,wm,n5,Cm,r5;"use strict";var c2=document.createElement("style");c2.textContent=`*,*:before,*:after{box-sizing:border-box}html,body{margin:0;overflow:hidden;display:flex;flex-direction:column;height:100%;min-height:0}button{color:inherit;font-family:inherit}input,textarea{font-family:inherit}:root{--ao-color-blue-lightest: #ebf1ff;--ao-color-blue-lighter: #aabdff;--ao-color-blue-light: #7183ff;--ao-color-blue-base: #4952ff;--ao-color-blue-dark: #2226e7;--ao-color-blue-darker: #09099c;--ao-color-blue-darkest: #000033;--ao-color-grey-lightest: #e6e6e6;--ao-color-grey-light: #c8c8c8;--ao-color-grey-base: #ababab;--ao-color-grey-dark: #636363;--ao-color-grey-darkest: #1c1c1c;--ao-color-white: #fff;--ao-color-black: #000;--ao-color-sand-base: #d8a55a;--ao-color-red-light: #ff4f4f;--ao-color-teal-light: #64d9bb;--ao-color-primary-lightest: var(--ao-color-blue-lightest);--ao-color-primary-lighter: var(--ao-color-blue-lighter);--ao-color-primary-light: var(--ao-color-blue-light);--ao-color-primary-base: var(--ao-color-blue-base);--ao-color-primary-dark: var(--ao-color-blue-dark);--ao-color-primary-darker: var(--ao-color-blue-darker);--ao-color-primary-darkest: var(--ao-color-blue-darkest);--ao-color-neutral-lightest: var(--ao-color-grey-lightest);--ao-color-neutral-light: var(--ao-color-grey-light);--ao-color-neutral-base: var(--ao-color-grey-base);--ao-color-neutral-dark: var(--ao-color-grey-dark);--ao-color-neutral-darkest: var(--ao-color-grey-darkest);--ao-color-canvas: #f1f1f1;--ao-color-sheet: #f9f9f9;--ao-color-card: #f9f9f9;--ao-color-text: var(--ao-color-grey-darkest);--ao-color-danger: var(--ao-color-red-light);--ao-color-warning: var(--ao-color-sand-base);--ao-color-success: var(--ao-color-teal-light);--ao-color-text-contrast: var(--ao-color-white);--ao-color-group: rgba(255, 255, 255, .2);--ao-color-backdrop: rgba(0, 0, 0, .7);--ao-grid-size: 8px;--ao-space-xs: calc(var(--ao-grid-size) / 4);--ao-space-sm: calc(var(--ao-grid-size) / 2);--ao-space-md: calc(var(--ao-grid-size) * 1);--ao-space-lg: calc(var(--ao-grid-size) * 3 / 2);--ao-space-xl: calc(var(--ao-grid-size) * 2);--ao-space-xxl: calc(var(--ao-grid-size) * 4);--ao-border-width-sm: 1px;--ao-border-width-md: 2px;--ao-border-width-lg: 4px;--ao-border-width-xl: 6px;--ao-border-radius-xs: 2px;--ao-border-radius-sm: 4px;--ao-border-radius-md: 8px;--ao-border-radius-lg: 16px;--ao-border-radius-xl: 24px;--ao-border-radius-round: 100em;font-size:15px;--ao-font-size-base: 1rem;--ao-font-size-text: var(--ao-font-size-base);--ao-font-size-input: var(--ao-font-size-base);--ao-font-size-h5: var(--ao-font-size-base);--ao-font-size-h4: calc(var(--ao-font-size-base) * 1.25);--ao-font-size-h3: calc(var(--ao-font-size-h4) * 1.25);--ao-font-size-h2: calc(var(--ao-font-size-h3) * 1.25);--ao-font-size-h1: calc(var(--ao-font-size-h2) * 1.25);--ao-font-size-label: calc(var(--ao-font-size-base) / 1.25);--ao-font-size-tag: calc(var(--ao-font-size-label) / 1.25);--ao-font-size-button: var(--ao-font-size-base);--ao-font-weight-extra-light: 200;--ao-font-weight-regular: 400;--ao-font-weight-medium: 500;--ao-font-weight-semi-bold: 600;--ao-font-weight-bold: 800;--ao-font-weight-extra-bold: 900;--ao-font-stack-system-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ao-font-stack-sans: "Kumbh Sans", var(--ao-font-stack-system-sans);--ao-icon-size-sm: calc(var(--ao-grid-size) * 9 / 5);--ao-icon-size-md: calc(var(--ao-grid-size) * 3);--ao-icon-size-lg: calc(var(--ao-grid-size) * 4);--ao-icon-size-xl: calc(var(--ao-grid-size) * 5);--ao-transition-ease: cubic-bezier(.215, .61, .355, 1);--ao-shadow-key-umbra-opacity: .2;--ao-shadow-key-penumbra-opacity: .14;--ao-shadow-ambient-shadow-opacity: .12;--ao-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 1px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 5px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 3px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 8px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 10px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 2px 4px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 18px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 3px 5px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 14px 2px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 5px 5px -3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 6px 30px 5px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 8px 10px -5px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-24dp: 0 9px 46px 8px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 11px 15px -7px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 24px 38px 3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity))}html,body{font-family:var(--ao-font-stack-sans)}[class^=ao-]{scrollbar-width:thin}[class^=ao-]::-webkit-scrollbar{background-color:transparent;width:var(--ao-space-md);height:var(--ao-space-md);border-radius:var(--ao-border-radius-round)}[class^=ao-]::-webkit-scrollbar-thumb{background:var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-round);cursor:grab}:root{--ao-input-color: inherit;--ao-input-bg: #fff;--ao-input-border-radius: var(--ao-border-radius-sm);--ao-input-border-width: var(--ao-border-width-sm);--ao-input-border-color: var(--ao-color-neutral-light);--ao-textarea-bg: var(--ao-input-bg)}.ao-fieldset{border-width:0;padding:0;margin:0}.ao-fieldset+.ao-fieldset{margin-block-start:var(--ao-space-xl)}.ao-fieldset__title{display:flex;align-items:center;gap:var(--ao-space-sm);color:var(--ao-color-neutral-dark)}.ao-field__row{display:flex;flex-direction:row;gap:var(--ao-space-lg)}.ao-field__row+.ao-field__row{margin-block-start:var(--ao-space-lg)}.ao-field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ao-space-md)}.ao-field--full{flex:1;width:100%}.ao-field--multiselect{min-width:20ch}.ao-field--inline{flex-direction:row;align-items:center}.ao-field__label{font-size:var(--ao-font-size-label)}.ao-field__input{padding-inline:var(--ao-space-lg);padding-block:var(--ao-space-md);margin:0;border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-input-bg)}.ao-field__input:is(:focus,:active,:hover){--ao-input-border-color: var(--ao-color-primary-base)}.ao-field__textarea{padding:var(--ao-space-lg);border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-textarea-bg);flex:1;width:100%;resize:vertical}.ao-multiselect{--ms-font-size: var(--font-size-text);--ms-line-height: 1.2;--ms-border-color: var(--ao-color-neutral-lightest);--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: var(--ao-input-border-color);--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-md);--ms-py: var(--ao-space-md);--ms-px: var(--ao-space-lg);--ms-ring-color: var(--ao-color-primary-lightest);--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-tag-font-size: var(--ao-font-size-tag);--ms-tag-font-weight: var(--ao-font-weight-regular);--ms-tag-bg: var(--ao-color-primary-base);--ms-tag-radius: var(--ao-border-radius-xl);--ms-tag-py: var(--ao-space-sm);--ms-tag-my: 0;--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}input[readonly]{cursor:default}.is-disabled>.multiselect-wrapper{cursor:default}.ao-field__input::-webkit-outer-spin-button,.ao-field__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ao-field__input[type=number]{-moz-appearance:textfield}.multiselect{align-items:center;background:var(--ms-bg,#fff);border:var(--ms-border-width,1px) solid var(--ms-border-color,#d1d5db);border-radius:var(--ms-radius,4px);box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-font-size,1rem);justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect.is-open{border-radius:var(--ms-radius,4px) var(--ms-radius,4px) 0 0}.multiselect.is-open-top{border-radius:0 0 var(--ms-radius,4px) var(--ms-radius,4px)}.multiselect.is-disabled{background:var(--ms-bg-disabled,#f3f4f6);cursor:default}.multiselect.is-active{border:var(--ms-border-width-active,var(--ms-border-width,1px)) solid var(--ms-border-color-active,var(--ms-border-color,#d1d5db));box-shadow:0 0 0 var(--ms-ring-width,3px) var(--ms-ring-color,rgba(16,185,129,.188))}.multiselect-wrapper{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect-multiple-label,.multiselect-placeholder,.multiselect-single-label{align-items:center;background:transparent;box-sizing:border-box;display:flex;height:100%;left:0;line-height:var(--ms-line-height,1.375);max-width:100%;padding-left:var(--ms-px,.875rem);padding-right:calc(1.25rem + var(--ms-px, .875rem)*3);pointer-events:none;position:absolute;top:0}.multiselect-placeholder{color:var(--ms-placeholder-color,#9ca3af)}.multiselect-single-label-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ms-bg,#fff);border:0;border-radius:var(--ms-radius,4px);bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;height:100%;left:0;outline:none;padding-left:var(--ms-px,.875rem);position:absolute;right:0;top:0;width:100%}.multiselect-search::-webkit-search-cancel-button,.multiselect-search::-webkit-search-decoration,.multiselect-search::-webkit-search-results-button,.multiselect-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-tags{flex-grow:1;flex-shrink:1;flex-wrap:wrap;margin:var(--ms-tag-my,.25rem) 0 0;padding-left:var(--ms-py,.5rem)}.multiselect-tag,.multiselect-tags{align-items:center;display:flex;min-width:0}.multiselect-tag{background:var(--ms-tag-bg,#10b981);border-radius:var(--ms-tag-radius,4px);color:var(--ms-tag-color,#fff);font-size:var(--ms-tag-font-size,.875rem);font-weight:var(--ms-tag-font-weight,600);line-height:var(--ms-tag-line-height,1.25rem);margin-bottom:var(--ms-tag-my,.25rem);margin-right:var(--ms-tag-mx,.25rem);padding:var(--ms-tag-py,.125rem) 0 var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem);white-space:nowrap}.multiselect-tag.is-disabled{background:var(--ms-tag-bg-disabled,#9ca3af);color:var(--ms-tag-color-disabled,#fff);padding-right:var(--ms-tag-px,.5rem)}.multiselect-tag-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-tag-wrapper-break{white-space:normal;word-break:break-all}.multiselect-tag-remove{align-items:center;border-radius:var(--ms-tag-remove-radius,4px);display:flex;justify-content:center;margin:var(--ms-tag-remove-my,0) var(--ms-tag-remove-mx,.125rem);padding:var(--ms-tag-remove-py,.25rem) var(--ms-tag-remove-px,.25rem)}.multiselect-tag-remove:hover{background:rgba(0,0,0,.063)}.multiselect-tag-remove-icon{background-color:currentColor;display:inline-block;height:.75rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;opacity:.8;width:.75rem}.multiselect-tags-search-wrapper{display:inline-block;flex-grow:1;flex-shrink:1;height:100%;margin:0 var(--ms-tag-mx,4px) var(--ms-tag-my,4px);position:relative}.multiselect-tags-search-copy{display:inline-block;height:1px;visibility:hidden;white-space:pre-wrap;width:100%}.multiselect-tags-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;left:0;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.multiselect-tags-search::-webkit-search-cancel-button,.multiselect-tags-search::-webkit-search-decoration,.multiselect-tags-search::-webkit-search-results-button,.multiselect-tags-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-inifite{align-items:center;display:flex;justify-content:center;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);width:100%}.multiselect-inifite-spinner,.multiselect-spinner{animation:multiselect-spin 1s linear infinite;background-color:var(--ms-spinner-color,#10b981);flex-grow:0;flex-shrink:0;height:1rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1rem;z-index:10}.multiselect-spinner{margin:0 var(--ms-px,.875rem) 0 0}.multiselect-clear{display:flex;flex-grow:0;flex-shrink:0;opacity:1;padding:0 var(--ms-px,.875rem) 0 0;position:relative;transition:.3s;z-index:10}.multiselect-clear:hover .multiselect-clear-icon{background-color:var(--ms-clear-color-hover,#000)}.multiselect-clear-icon{background-color:var(--ms-clear-color,#999);display:inline-block;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");transition:.3s}.multiselect-caret,.multiselect-clear-icon{height:1.125rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.625rem}.multiselect-caret{background-color:var(--ms-caret-color,#999);flex-grow:0;flex-shrink:0;margin:0 var(--ms-px,.875rem) 0 0;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");pointer-events:none;position:relative;transform:rotate(0);transition:transform .3s;z-index:10}.multiselect-caret.is-open{pointer-events:auto;transform:rotate(180deg)}.multiselect-dropdown{-webkit-overflow-scrolling:touch;background:var(--ms-dropdown-bg,#fff);border:var(--ms-dropdown-border-width,1px) solid var(--ms-dropdown-border-color,#d1d5db);border-radius:0 0 var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px);bottom:0;display:flex;flex-direction:column;left:calc(var(--ms-border-width, 1px)*-1);margin-top:calc(var(--ms-border-width, 1px)*-1);max-height:var(--ms-max-height,10rem);outline:none;overflow-y:scroll;position:absolute;right:calc(var(--ms-border-width, 1px)*-1);transform:translateY(100%);z-index:100}.multiselect-dropdown.is-top{border-radius:var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px) 0 0;bottom:auto;top:var(--ms-border-width,1px);transform:translateY(-100%)}.multiselect-dropdown.is-hidden{display:none}.multiselect-options{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.multiselect-group{margin:0;padding:0}.multiselect-group-label{align-items:center;background:var(--ms-group-label-bg,#e5e7eb);box-sizing:border-box;color:var(--ms-group-label-color,#374151);cursor:default;display:flex;font-size:.875rem;font-weight:600;justify-content:flex-start;line-height:var(--ms-group-label-line-height,1.375);padding:var(--ms-group-label-py,.3rem) var(--ms-group-label-px,.75rem);text-align:left;text-decoration:none}.multiselect-group-label.is-pointable{cursor:pointer}.multiselect-group-label.is-pointed{background:var(--ms-group-label-bg-pointed,#d1d5db);color:var(--ms-group-label-color-pointed,#374151)}.multiselect-group-label.is-selected{background:var(--ms-group-label-bg-selected,#059669);color:var(--ms-group-label-color-selected,#fff)}.multiselect-group-label.is-disabled{background:var(--ms-group-label-bg-disabled,#f3f4f6);color:var(--ms-group-label-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-group-label.is-selected.is-pointed{background:var(--ms-group-label-bg-selected-pointed,#0c9e70);color:var(--ms-group-label-color-selected-pointed,#fff)}.multiselect-group-label.is-selected.is-disabled{background:var(--ms-group-label-bg-selected-disabled,#75cfb1);color:var(--ms-group-label-color-selected-disabled,#d1fae5)}.multiselect-group-options{margin:0;padding:0}.multiselect-option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-option-font-size,1rem);justify-content:flex-start;line-height:var(--ms-option-line-height,1.375);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem);text-align:left;text-decoration:none}.multiselect-option.is-pointed{background:var(--ms-option-bg-pointed,#f3f4f6);color:var(--ms-option-color-pointed,#1f2937)}.multiselect-option.is-selected{background:var(--ms-option-bg-selected,#10b981);color:var(--ms-option-color-selected,#fff)}.multiselect-option.is-disabled{background:var(--ms-option-bg-disabled,#fff);color:var(--ms-option-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-option.is-selected.is-pointed{background:var(--ms-option-bg-selected-pointed,#26c08e);color:var(--ms-option-color-selected-pointed,#fff)}.multiselect-option.is-selected.is-disabled{background:var(--ms-option-bg-selected-disabled,#87dcc0);color:var(--ms-option-color-selected-disabled,#d1fae5)}.multiselect-no-options,.multiselect-no-results{color:var(--ms-empty-color,#4b5563);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem)}.multiselect-fake-input{background:transparent;border:0;bottom:-1px;font-size:0;height:1px;left:0;outline:none;padding:0;position:absolute;right:0;width:100%}.multiselect-fake-input:active,.multiselect-fake-input:focus{outline:none}.multiselect-assistive-text{clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.multiselect-spacer{display:none}[dir=rtl] .multiselect-multiple-label,[dir=rtl] .multiselect-placeholder,[dir=rtl] .multiselect-single-label{left:auto;padding-left:calc(1.25rem + var(--ms-px, .875rem)*3);padding-right:var(--ms-px,.875rem);right:0}[dir=rtl] .multiselect-search{padding-left:0;padding-right:var(--ms-px,.875rem)}[dir=rtl] .multiselect-tags{padding-left:0;padding-right:var(--ms-py,.5rem)}[dir=rtl] .multiselect-tag{margin-left:var(--ms-tag-mx,.25rem);margin-right:0;padding:var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem) var(--ms-tag-py,.125rem) 0}[dir=rtl] .multiselect-tag.is-disabled{padding-left:var(--ms-tag-px,.5rem)}[dir=rtl] .multiselect-caret,[dir=rtl] .multiselect-spinner{margin:0 0 0 var(--ms-px,.875rem)}[dir=rtl] .multiselect-clear{padding:0 0 0 var(--ms-px,.875rem)}@keyframes multiselect-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes blink-ad6da4a9{0%,to{opacity:1}50%{opacity:0}}.dot[data-v-ad6da4a9]{animation:blink-ad6da4a9 1.5s ease-in-out infinite}.dot--1[data-v-ad6da4a9]{animation-delay:0}.dot--2[data-v-ad6da4a9]{animation-delay:.5s}.dot--3[data-v-ad6da4a9]{animation-delay:1s}.ao-icon{color:inherit;fill:currentColor;width:var(--ao-icon-size);height:var(--ao-icon-size)}.ao-icon *{fill:inherit}.ao-icon--sm{--ao-icon-size: var(--ao-icon-size-sm)}.ao-icon--md{--ao-icon-size: var(--ao-icon-size-md)}.ao-icon--lg{--ao-icon-size: var(--ao-icon-size-lg)}.ao-icon--xl{--ao-icon-size: var(--ao-icon-size-xl)}.ao-button{--ao-button-main-color: initial;--ao-button-secondary-color: initial;--ao-button-color: var(--ao-button-main-color);--ao-button-bg: var(--ao-button-secondary);--ao-button-border-color: transparent;--ao-button-padding: var(--ao-space-sm);--ao-button-label-padding: var(--ao-space-sm);--ao-button-border-radius: var(--ao-border-radius-md);--ao-button-line-height: var(--ao-icon-size-md);--ao-button-font-size: var(--ao-font-size-button);display:flex;padding:var(--ao-button-padding);align-items:center;border-width:var(--ao-border-width-md);border-style:solid;border-radius:var(--ao-button-border-radius);border-color:var(--ao-button-border-color);color:var(--ao-button-color);background-color:var(--ao-button-bg);cursor:pointer;font-size:var(--ao-button-font-size);font-weight:var(--ao-font-weight-semi-bold);line-height:var(--ao-button-line-height)}.ao-button--primary{--ao-button-main-color: var(--ao-color-primary-base)}.ao-button--secondary{--ao-button-main-color: var(--ao-color-success)}.ao-button--neutral{--ao-button-main-color: var(--ao-color-neutral-base)}.ao-button--black{--ao-button-main-color: var(--ao-color-neutral-darkest)}.ao-button--warning{--ao-button-main-color: var(--ao-color-warning)}.ao-button--danger{--ao-button-main-color: var(--ao-color-danger)}.ao-button--success{--ao-button-main-color: var(--ao-color-success)}.ao-button--ghost{--ao-border-color: transparent;--ao-background-color: transparent}.ao-button--outline{--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid{--ao-button-color: var(--ao-button-secondary-color);--ao-button-bg: var(--ao-button-main-color);--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid:is(.ao-button--primary,.ao-button--secondary,.ao-button--neutral,.ao-button--black){--ao-button-color: var(--ao-color-white)}.ao-button--icon-start{flex-direction:row-reverse}.ao-button--icon-end{flex-direction:row}.ao-button__icon{flex-shrink:0}.ao-button__label{padding-inline:var(--ao-button-label-padding);flex:1;width:100%}.ao-button--footer{width:100%}.ao-button--footer .ao-button__label{text-align:center}.ao-button--is-disabled{cursor:default}.ao-button--sm{--ao-button-padding: var(--ao-space-xs);--ao-button-label-padding: var(--ao-space-xs);--ao-button-line-height: var(--ao-icon-size-sm);--ao-button-font-size: var(--ao-font-size-label)}.ao-button--lg{--ao-button-line-height: var(--ao-icon-size-lg);--ao-button-font-size: var(--ao-font-size-h4)}.ao-button--xl{--ao-button-line-height: var(--ao-icon-size-xl);--ao-button-font-size: var(--ao-font-size-h3)}.ao-button--round{--ao-button-border-radius: var(--ao-border-radius-round)}.ao-title{--ao-title-color: inherit;margin:0;font-weight:var(--ao-font-weight-semi-bold);font-family:var(--ao-font-family-title);color:var(--ao-title-color);cursor:default}.ao-title--editable{cursor:text}.ao-title--readonly{padding-block:var(--ao-space-md);border:var(--ao-input-border-width) solid transparent}.ao-title--1{font-size:var(--ao-font-size-h1)}.ao-title--2{font-size:var(--ao-font-size-h2)}.ao-title--3{font-size:var(--ao-font-size-h3)}.ao-title--4{font-size:var(--ao-font-size-h4)}.ao-title--5{font-size:var(--ao-font-size-h5)}.ao-title--primary{--ao-title-color: var(--ao-color-primary-base)}.ao-title--neutral{--ao-title-color: var(--ao-color-neutral-base)}.ao-title--black{--ao-title-color: var(--ao-color-neutral-darkest)}.ao-title--editing{--ao-title-color: var(--ao-color-primary-dark);width:100%}.ao-card-horiz{--ao-card-horiz-bg-color: var(--ao-color-card);--ao-card-horiz-text-color: inherit;--ao-card-horiz-label-color: var(--ao-color-neutral-base);display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;grid-template-areas:"drag header secondary" "drag body body" "drag footer footer";border-radius:var(--ao-border-radius-md);color:var(--ao-card-horiz-text-color);background-color:var(--ao-card-horiz-bg-color);overflow:hidden;cursor:pointer;container:card-horiz / inline-size}.ao-card-horiz:hover{box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz--active{--ao-card-horiz-bg-color: var(--ao-color-primary-base);--ao-card-horiz-text-color: var(--ao-color-white);box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz__header{display:flex;align-items:center;padding-inline:var(--ao-space-md);padding-block-start:var(--ao-space-md);grid-area:header;width:100%}.ao-card-horiz__title-group{display:flex;flex-direction:column;flex-grow:1;overflow:hidden;width:100%}.ao-card-horiz__title{min-width:2ch;min-height:1em}.ao-card-horiz__title,.ao-card-horiz__subtitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:flex-start}.ao-card-horiz__subtitle{margin-top:var(--ao-space-xs);font-size:var(--ao-font-size-base)}.ao-card-horiz__body{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block:var(--ao-space-md);grid-area:body}.ao-card-horiz__footer{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block-end:var(--ao-space-md);grid-area:footer}.ao-card-horiz__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-card-horiz__drag-handle{opacity:0;visibility:hidden}.ao-card-horiz:hover .ao-card-horiz__drag-handle{opacity:1;visibility:visible}.ao-card-horiz__secondary{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);opacity:0;visibility:hidden;grid-area:secondary}.ao-card-horiz:hover .ao-card-horiz__secondary{opacity:1;visibility:visible}@container column (min-width: 480px){.ao-card-horiz{display:flex;flex-direction:row}.ao-card-horiz__header{padding-block:var(--ao-space-md);padding-inline-end:0;flex-shrink:1;min-width:0}.ao-card-horiz__body{padding-inline-end:0;flex-shrink:0}.ao-card-horiz__footer{align-items:flex-end;padding-block:var(--ao-space-md);grid-area:footer;flex-shrink:0}}@container column (min-width: 768px){.ao-card-horiz__header{width:50%}}@container column (min-width: 1024px){.ao-card-horiz__header{width:33%}}@container column (min-width: 1280px){.ao-card-horiz__header{width:25%}}.ao-tag{--ao-tag-color: var(--ao-color-text-contrast);--ao-tag-bg: var(transparent);--ao-tag-border-radius: var(--ao-border-radius-xl);display:flex;flex-direction:row;align-items:stretch;border:var(--ao-border-width-sm) var(--ao-tag-bg) solid;border-radius:var(--ao-tag-border-radius);font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-tag__icon{color:var(--ao-color-white)}.ao-tag--primary{--ao-tag-bg: var(--ao-color-primary-light)}.ao-tag--primary-lighter{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--black{--ao-tag-bg: var(--ao-color-neutral-darkest)}.ao-tag--secondary{--ao-tag-bg: var(--ao-color-success)}.ao-tag--neutral{--ao-tag-bg: var(--ao-color-neutral-light)}.ao-tag--solid.ao-tag--neutral{--ao-tag-color: var(--ao-color-neutral-darkest)}.ao-tag--solid .ao-tag__label{background-color:var(--ao-tag-bg)}.ao-tag--solid_icon .ao-tag__label{background-color:var(--ao-tag-bg);display:flex;gap:var(--ao-space-sm)}.ao-tag--solid .ao-tag__close{background-color:var(--ao-tag-bg)}.ao-tag--clickable .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-lightest)}.ao-tag--clickable.ao-tag--primary .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--clickable.ao-tag--black .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-dark)}.ao-tag--clickable .ao-tag__label{cursor:pointer}.ao-tag__label{padding:var(--ao-space-sm) var(--ao-space-md);color:var(--ao-tag-color);width:100%;border-radius:var(--ao-tag-border-radius);font-size:inherit;font-weight:inherit;text-align:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background-color:transparent;border-width:0}.ao-tag--closable .ao-tag__label{border-top-right-radius:0;border-bottom-right-radius:0}.ao-tag__close{display:flex;border-width:0;border-top-right-radius:var(--ao-tag-border-radius);border-bottom-right-radius:var(--ao-tag-border-radius);color:var(--ao-tag-color);background-color:transparent;cursor:pointer}.ao-tag--close-icon{padding:var(--ao-space-xs) var(--ao-space-md)}.ao-avatar{--ao-avatar-bg: var(--ao-color-primary-base);--ao-avatar-color: var(--ao-color-neutral-lightest);--ao-avatar-font-weight: --ao-font-weight-medium;--ao-avatar-font-size: var(--ao-font-size-base);--ao-avatar-padding: .5em;color:var(--ao-avatar-color);background-color:var(--ao-avatar-bg);position:relative;border-radius:var(--ao-border-radius-round);line-height:1;display:grid;grid-template-areas:"center";align-items:center;justify-content:center;padding:var(--ao-avatar-padding);cursor:default;overflow:hidden;font-weight:var(--ao-avatar-font-weight);font-size:var(--ao-avatar-font-size);flex-shrink:0}.ao-avatar--sm{--ao-avatar-font-weight: var(--ao-font-weight-bold);--ao-avatar-font-size: var(--ao-font-size-tag);--ao-avatar-padding: .8em}.ao-avatar--lg{--ao-avatar-font-weight: var(--ao-font-weight-light);--ao-avatar-font-size: var(--ao-font-size-h3)}.ao-avatar--xl{--ao-avatar-font-weight: var(--ao-font-weight-extra-light);--ao-avatar-font-size: var(--ao-font-size-h1)}.ao-avatar--primary{--ao-avatar-bg: var(--ao-color-primary-base)}.ao-avatar--neutral{--ao-avatar-bg: var(--ao-color-neutral-base)}.ao-avatar--black{--ao-avatar-bg: var(--ao-color-neutral-darkest)}.ao-avatar__initials{display:flex;flex-direction:column;grid-area:center;justify-content:center;align-items:center;width:1em;height:1em;text-align:center;text-transform:uppercase}.ao-avatar__close{grid-area:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);opacity:0;visibility:hidden}.ao-avatar:hover,.ao-avatar-img:hover{z-index:1}.ao-avatar:hover .ao-avatar__close,.ao-avatar-img:hover .ao-avatar__close{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}.ao-avatar-img--sm{width:var(--ao-icon-size-sm);height:var(--ao-icon-size-sm)}.ao-avatar-img--md{width:var(--ao-icon-size-md);height:var(--ao-icon-size-md)}.ao-avatar-img--lg{width:var(--ao-icon-size-lg);height:var(--ao-icon-size-lg)}.ao-avatar-img--xl{width:var(--ao-icon-size-xl);height:var(--ao-icon-size-xl)}.ao-avatar-img{position:relative;border-radius:var(--ao-border-radius-round);display:grid;grid-template-areas:"center";align-items:center;justify-content:center;cursor:default;overflow:hidden;flex-shrink:0}.ao-avatar__image{width:100%;height:100%}.ao-card-template__body{display:flex;flex-direction:row;align-items:center;flex:1}.ao-card-template__footer{display:flex;gap:var(--ao-space-md)}.ao-card-template__col-title{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-card-template__col-label{font-size:var(--ao-font-size-label);font-weight:600}.ao-card-template__col{display:flex;flex-direction:column;gap:var(--ao-space-md);color:var(--ao-color-neutral-dark);font-size:var(--ao-font-size-label)}.ao-card-template__col--phases{flex-grow:1;color:var(--ao-color-neutral-darkest)}.ao-card-template__phases-list{display:flex;gap:var(--ao-space-sm);padding:0;margin:0}.ao-card-template__col-body{display:flex;flex-direction:row;align-items:flex-start;flex:1}.ao-card-template__subitems{display:flex;margin:0;padding:0;gap:var(--ao-space-sm)}.ao-card-template__subitem{display:flex;align-items:center;list-style-type:none;font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-semi-bold)}.ao-page-header{display:flex;container:header / inline-size;z-index:1}.ao-page-header-main{display:flex;gap:var(--ao-space-sm);flex-grow:1}.ao-page-header-secondary{display:flex;gap:var(--ao-space-sm)}@container header (min-width: 720px){.ao-page-header-main{flex-direction:row;align-items:center}.ao-page-header-secondary{margin-inline-start:auto;align-items:center;justify-content:flex-end;flex-grow:1}}.ao-button-card{--ao-button-card-color: inherit;--ao-button-card-bg: transparent;--ao-button-card-border-color: currentColor;--ao-button-card-padding: var(--ao-space-md);--ao-button-card-label-padding: var(--ao-space-sm);--ao-button-card-border-radius: var(--ao-border-radius-md);display:flex;width:100%;flex:1;justify-content:center;padding:var(--ao-button-card-padding);flex-direction:column-reverse;align-items:center;border-width:var(--ao-border-width-sm);border-style:dashed;border-radius:var(--ao-button-card-border-radius);border-color:var(--ao-button-card-border-color);color:var(--ao-button-card-color);background-color:var(--ao-button-card-bg);cursor:pointer;font-size:var(--ao-font-size-button);font-weight:var(--ao-font-weight-semi-bold)}.ao-button-card--primary{--ao-button-card-color: var(--ao-color-primary-base)}.ao-button-card--secondary{--ao-button-card-color: var(--ao-color-success)}.ao-button-card--neutral{--ao-button-card-color: var(--ao-color-neutral-base)}.ao-button-card--black{--ao-button-card-color: var(--ao-color-neutral-darkest)}.ao-button-card__icon{flex-shrink:0}.ao-button-card__label{padding-inline:var(--ao-button-card-label-padding);width:100%}.ao-button-card--footer{width:100%}.ao-button-card--footer .ao-button-card__label{text-align:center}.ao-button-card--is-disabled{cursor:default}.ao-button-card--sm{--ao-button-card-padding: var(--ao-space-xs);--ao-button-card-label-padding: var(--ao-space-xs)}.ao-button-card--round{--ao-button-card-border-radius: var(--ao-border-radius-round)}.ao-card-template-item__footer{display:flex;flex:1;padding:0;margin:0;justify-content:flex-end;gap:var(--ao-space-sm);align-items:center}.ao-card-template-item__subitem{display:flex;align-items:center}.ao-card-template-item__subitem{font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-bold)}.ao-modal__wrapper{--ao-modal-z-index: 100;--ao-modal-padding-x: var(--ao-space-sm);display:grid;grid-template-columns:5% 1fr 5%;grid-template-rows:5vh 1fr 5vh;position:absolute;top:0;left:0;width:100%;height:100%;justify-items:center;align-items:flex-start;z-index:var(--ao-modal-z-index)}.ao-modal__wrapper.ao-modal__wrapper--sm{grid-template-columns:10% 1fr 10%;grid-template-rows:15vh auto 25vh}.ao-modal__backdrop{width:100%;height:100%;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-backdrop)}.ao-modal{display:flex;width:100%;max-width:768px;height:100%;min-height:0;flex-direction:column;overflow-y:auto;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-sheet);container:modal / inline-size}.ao-modal__wrapper--sm .ao-modal{height:auto}.ao-modal__header{display:flex;flex-direction:column;padding-inline:var(--ao-modal-padding-x)}.ao-modal__header-meta{display:flex;justify-content:flex-end}.ao-modal__body{display:flex;height:100%;min-height:0;flex-direction:column;flex-grow:1}.ao-modal__footer{display:flex;flex-direction:column}@media screen and (min-width: 480px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-lg)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow-y:auto}}@media screen and (min-width: 720px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-xl)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow:hidden}}.ao-tasks{display:flex;flex-direction:column}.ao-tasks__list{display:flex;flex-direction:column;padding-inline-start:0;margin-block:0;gap:var(--ao-space-md)}.ao-tasks__list-footer{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-block-start:var(--ao-space-md)}.ao-tasks__list-footer .ao-button{padding-left:0}.ao-subtask{display:flex;list-style-type:none;gap:var(--ao-space-md)}.ao-subtask__check{padding-left:0}.ao-subtask__field{flex-grow:1;border:0;border-bottom:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:0}.ao-subtask__field--checked{text-decoration:line-through}.ao-subtask__field:focus{outline:none;border-bottom:var(--ao-border-width-md) solid var(--ao-input-border-color)}.ao-subtask__assignees{width:30%}.ao-subtask__assignees .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-subtask__assignees .multiselect-wrapper{justify-content:flex-start}.ao-subtask__delete{opacity:0;visibility:hidden}.ao-subtask:is(:hover,:focus-within) .ao-subtask__delete{opacity:1;visibility:visible}.ao-files__wrapper{--ao-input-file-color: var(--ao-color-neutral-darkest);--ao-input-file-border-color: transparent;--ao-input-file-placeholder-color: var(--ao-color-neutral-base);--ao-input-file-bg: transparent;position:relative;display:flex;width:100%;flex-direction:column;flex:1;border:var(--ao-border-width-md) solid var(--ao-input-file-border-color);border-radius:var(--ao-border-radius-md);background-color:var(--ao-input-file-bg);font-family:inherit;font-size:var(--ao-font-size-text);color:var(--ao-input-file-color);overflow-y:auto}.ao-files__wrapper--drop-active{--ao-input-file-border-color: var(--ao-color-primary-base);--ao-input-file-bg: var(--ao-color-primary-lightest);outline:0}.input-field{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ao-files__input{display:flex}.ao-files__placeholder{width:100%;margin-block-start:var(--ao-space-md);text-align:center;color:var(--ao-color-neutral-base)}.ao-files__list{display:flex;padding:0;padding-block-start:var(--ao-space-md);margin:0;gap:var(--ao-space-sm);flex-wrap:wrap}.ao-file{display:flex;position:relative;padding:0;padding-inline-end:var(--ao-space-xl);list-style-type:none;background-color:var(--ao-color-primary-lighter);border-radius:var(--ao-border-radius-md)}.ao-files__delete-button{position:absolute;top:50%;right:0;transform:translateY(-50%) scale(0);transition:50ms var(--ao-transition-ease)}.ao-file:is(:hover,:focus-within) .ao-files__delete-button{transform:translateY(-50%) scale(1)}.ao-file__link{width:100%;display:flex;flex:1;align-items:center;padding-block:var(--ao-space-md);padding-inline-start:var(--ao-space-md);color:var(--ao-color-primary-darker);text-decoration:none}.ao-file__icon{flex:0}.ao-file__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ao-font-size-label)}.ao-files__dropzone{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--ao-color-backdrop)}.ao-files__dropzone-label{font-size:var(--ao-font-size-text);color:var(--ao-color-text-contrast)}.sun-editor{width:auto;height:auto;box-sizing:border-box;font-family:var(--se-main-font-family);border:1px solid var(--se-main-out-color);background-color:var(--se-main-background-color);color:var(--se-main-color);font-size:var(--se-main-font-size)}.sun-editor *{box-sizing:border-box;overflow:visible}.sun-editor-common body,.sun-editor-common div,.sun-editor-common dl,.sun-editor-common dt,.sun-editor-common dd,.sun-editor-common ul,.sun-editor-common ol,.sun-editor-common li,.sun-editor-common h1,.sun-editor-common h2,.sun-editor-common h3,.sun-editor-common h4,.sun-editor-common h5,.sun-editor-common h6,.sun-editor-common pre,.sun-editor-common code,.sun-editor-common form,.sun-editor-common fieldset,.sun-editor-common legend,.sun-editor-common p,.sun-editor-common blockquote,.sun-editor-common th,.sun-editor-common td,.sun-editor-common input,.sun-editor-common select,.sun-editor-common textarea,.sun-editor-common button{margin:0;padding:0;border:0}.sun-editor-common input,.sun-editor-common select,.sun-editor-common textarea{background-color:inherit}.sun-editor-common dl,.sun-editor-common ul,.sun-editor-common ol,.sun-editor-common menu{list-style:none}.sun-editor-common hr{margin:6px 0!important}.sun-editor textarea{resize:none;border:0;padding:0}.sun-editor button{border:0 none;background-color:transparent;touch-action:manipulation;cursor:pointer;outline:none}.sun-editor input,.sun-editor select,.sun-editor textarea,.sun-editor button{vertical-align:middle}.sun-editor button span{display:block;margin:0;padding:0}.sun-editor button .se-txt{display:block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:2;max-height:24px}.sun-editor .se-wrapper.se-type-document{--se-doc-padding: clamp( var(--se-doc-min-padding), var(--se-doc-min-padding) + calc(var(--se-doc-padding-factor) * 1vw), var(--se-doc-max-padding) );padding:var(--se-doc-padding);background-color:var(--se-doc-background);box-shadow:inset 0 4px 4px #0000001a}.sun-editor .se-wrapper.se-type-document>.se-wrapper-inner{box-shadow:0 0 5px #0000001a}.sun-editor .se-wrapper.se-type-document .se-document-lines{width:var(--se-doc-info-width);min-width:var(--se-doc-info-min-width);font-size:var(--se-doc-info-font-size);overflow-y:auto;overflow-x:hidden;background-color:transparent;z-index:1}.sun-editor .se-wrapper.se-type-document .se-document-lines.se-document-responsible{min-width:unset!important}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner{padding:var(--se-doc-info-inner-padding);padding-right:var(--se-doc-info-inner-line-padding)}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-item{color:var(--se-doc-info-font-color);width:100%;padding:var(--se-doc-info-inner-line-padding);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;cursor:pointer}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-item:hover{text-decoration:underline}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-item.active{color:var(--se-doc-info-active-color)}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h1{font-weight:var(--se-doc-info-inner-line-weight-h1);padding-left:var(--se-doc-info-inner-line-indent-h1)}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h2{font-weight:var(--se-doc-info-inner-line-weight-h2);padding-left:var(--se-doc-info-inner-line-indent-h2)}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h3{font-weight:var(--se-doc-info-inner-line-weight-h3);padding-left:var(--se-doc-info-inner-line-indent-h3)}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h4{font-weight:var(--se-doc-info-inner-line-weight-h4);padding-left:var(--se-doc-info-inner-line-indent-h4)}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h5{font-weight:var(--se-doc-info-inner-line-weight-h5);padding-left:var(--se-doc-info-inner-line-indent-h5)}.sun-editor .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h6{font-weight:var(--se-doc-info-inner-line-weight-h6);padding-left:var(--se-doc-info-inner-line-indent-h6)}.sun-editor .se-wrapper.se-type-document .se-document-page{position:relative;text-align:center;pointer-events:none;z-index:1}.sun-editor .se-wrapper.se-type-document .se-document-page>div{position:absolute;width:var(--se-doc-info-page-width);color:var(--se-doc-info-page-font-color);background-color:var(--se-doc-info-page-background-color);font-size:inherit;left:0;padding:1px 0;margin-left:1px}.sun-editor .se-wrapper.se-type-document .se-document-page>div>div.se-document-page-line{position:absolute;display:block;height:0px;border-bottom:1px dashed var(--se-doc-info-page-background-color);top:0;right:100%;z-index:1}.sun-editor .se-wrapper.se-type-document .se-placeholder{top:var(--se-doc-padding);left:var(--se-doc-padding);right:var(--se-doc-padding);padding:var(--se-edit-inner-padding-doc-type);z-index:2}.sun-editor .se-wrapper.se-type-document.se-type-document-header .se-placeholder{margin-left:max(var(--se-doc-info-min-width),var(--se-doc-info-width))}.sun-editor .se-wrapper.se-type-document.se-mode-block .se-placeholder{margin-left:var(--se-block-handle-area-width)}.sun-editor .se-wrapper.se-type-document.se-mode-block.se-type-document-header .se-placeholder{margin-left:calc(var(--se-block-handle-area-width) + max(var(--se-doc-info-min-width),var(--se-doc-info-width)))}.sun-editor .se-wrapper .se-code-viewer-mirror,.sun-editor .se-wrapper .cm-editor,.sun-editor .se-wrapper .CodeMirror{font-size:var(--se-main-font-size)}.sun-editor button *{pointer-events:none;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden}.sun-editor button{color:var(--se-main-color)}.sun-editor .se-btn{float:left;width:var(--se-input-btn-size);height:var(--se-input-btn-size);margin:1px;padding:0;font-size:var(--se-btn-font-size);line-height:1.8;border-width:0;border-style:solid;border-color:var(--se-input-btn-border-color);border-radius:var(--se-border-radius);transition:border-color .13s ease,background-color .13s ease,color .13s ease}.sun-editor .se-form-group button.se-btn{border-width:1px}.sun-editor .se-btn:not(.on):not(.active):enabled:hover,.sun-editor .se-btn:not(.on):not(.active):enabled:focus{color:var(--se-hover-color);background-color:var(--se-hover-light-color);border-color:var(--se-hover-dark-color)}.sun-editor .se-btn:not(.on):not(.active):enabled:active,.sun-editor .se-btn:not(.on):not(.active):enabled.__se__active{background-color:var(--se-hover-light3-color);transition:background-color .08s ease}.sun-editor .se-menu-list li:hover .se-side-btn-a:not(.on):not(.active):enabled,.sun-editor .se-menu-list li:hover .se-side-btn-b:not(.on):not(.active):enabled,.sun-editor .se-menu-list li:hover .se-side-btn-after:not(.on):not(.active):enabled,.sun-editor .se-menu-list li:hover .se-side-btn-before:not(.on):not(.active):enabled,.sun-editor .se-menu-list li:hover .se-btn-input input:enabled{border-width:1px;border-style:solid;border-color:var(--se-hover-dark-color)}.sun-editor .se-menu-list li .se-side-btn-after.on:enabled,.sun-editor .se-menu-list li .se-side-btn-before.on:enabled,.sun-editor .se-menu-list li .se-side-btn-after.active:enabled,.sun-editor .se-menu-list li .se-side-btn-before.active:enabled,.sun-editor .se-menu-list li .se-btn-input.on input:enabled,.sun-editor .se-menu-list li .se-btn-input.active input:enabled{border-color:var(--se-active-dark3-color)}.sun-editor .se-menu-list li .se-side-btn-after.on:enabled,.sun-editor .se-menu-list li .se-side-btn-after.active:enabled{border-right:0;border-left:1px solid}.sun-editor .se-menu-list li .se-side-btn-before.on:enabled,.sun-editor .se-menu-list li .se-side-btn-before.active:enabled{border-left:0;border-right:1px solid}.sun-editor .se-menu-list li .se-btn-input.on input:enabled,.sun-editor .se-menu-list li .se-btn-input.active input:enabled{border-width:1px;border-style:solid}.sun-editor .se-menu-list li:hover .se-side-btn-after.on:enabled,.sun-editor .se-menu-list li:hover .se-side-btn-before.on:enabled,.sun-editor .se-menu-list li:hover .se-side-btn-after.active:enabled,.sun-editor .se-menu-list li:hover .se-side-btn-before.active:enabled,.sun-editor .se-menu-list li:hover .se-btn-input.on input:enabled,.sun-editor .se-menu-list li:hover .se-btn-input.active input:enabled{border-color:var(--se-active-dark4-color)}.sun-editor .se-btn:enabled.on{background-color:var(--se-active-light4-color);color:var(--se-active-dark5-color);border-color:var(--se-active-light5-color)}.sun-editor .se-btn:enabled.on:hover,.sun-editor .se-btn:enabled.on:focus{background-color:var(--se-active-light3-color);color:var(--se-active-hover-color);border-color:var(--se-active-light5-color)}.sun-editor .se-btn:enabled.on:active,.sun-editor .se-btn:enabled.on.__se__active{background-color:var(--se-active-light5-color);color:var(--se-active-hover-color);transition:background-color .08s ease}.sun-editor .se-btn:enabled.active{background-color:var(--se-active-light4-color);color:var(--se-active-dark3-color);border-color:var(--se-active-dark-color)}.sun-editor .se-btn:enabled.active:hover,.sun-editor .se-btn:enabled.active:focus{background-color:var(--se-active-light5-color);color:var(--se-active-hover-color);border-color:var(--se-active-dark4-color)}.sun-editor .se-btn:enabled.active:active,.sun-editor .se-btn:enabled.active.__se__active{background-color:var(--se-active-light6-color);color:var(--se-active-hover-color);transition:background-color .08s ease;z-index:1}.sun-editor .se-btn.se-btn-plain{background-color:transparent;border-color:transparent;box-shadow:none}.sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled:hover,.sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled:focus{background-color:transparent;border-color:transparent;box-shadow:none}.sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled:active,.sun-editor .se-btn.se-btn-plain:not(.on):not(.active):enabled.__se__active{background-color:transparent;border-color:transparent!important;box-shadow:none;outline:none!important}.sun-editor .se-btn-primary{background-color:var(--se-active-dark5-color);border:1px solid var(--se-active-dark5-color);color:#fff;font-weight:500;border-radius:var(--se-border-radius);outline:0 none;transition:border-color .13s ease,background-color .13s ease,color .13s ease}.sun-editor .se-btn-primary:hover,.sun-editor .se-btn-primary:focus{background-color:var(--se-active-hover-color);border-color:var(--se-active-hover-color);color:#fff}.sun-editor .se-btn-primary:active,.sun-editor .se-btn-primary.__se__active{background-color:var(--se-active-hover-color);transition:background-color .08s ease}.sun-editor .se-btn.se-btn-success{color:var(--se-success-color);border-color:var(--se-success-light5-color)}.sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled:hover,.sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled:focus{background-color:var(--se-success-light-color);border-color:var(--se-success-light5-color)}.sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled:active,.sun-editor .se-btn.se-btn-success:not(.on):not(.active):enabled.__se__active{background-color:var(--se-success-light-color);transition:background-color .08s ease}.sun-editor .se-btn.se-btn-success:enabled.on{background-color:var(--se-success-light-color);color:var(--se-success-color);border-color:var(--se-success-light5-color)}.sun-editor .se-btn.se-btn-success:enabled.on:hover,.sun-editor .se-btn.se-btn-success:enabled.on:focus{background-color:var(--se-success-light2-color);color:var(--se-success-color);border-color:var(--se-success-light4-color)}.sun-editor .se-btn.se-btn-success:enabled.on:active,.sun-editor .se-btn.se-btn-success:enabled.on.__se__active{background-color:var(--se-success-light2-color);color:var(--se-success-color);transition:background-color .08s ease}.sun-editor .se-btn.se-btn-success:enabled.active{background-color:var(--se-success-light2-color);color:var(--se-success-color);border-color:var(--se-success-dark2-color)}.sun-editor .se-btn.se-btn-success:enabled.active:hover,.sun-editor .se-btn.se-btn-success:enabled.active:focus{background-color:var(--se-success-light3-color);color:var(--se-success-dark3-color);border-color:var(--se-success-dark2-color)}.sun-editor .se-btn.se-btn-success:enabled.active:active,.sun-editor .se-btn.se-btn-success:enabled.active.__se__active{background-color:var(--se-success-light3-color);color:var(--se-success-dark3-color);transition:background-color .08s ease}.sun-editor .se-btn.se-btn-danger{color:var(--se-error-color);border-color:var(--se-error-dark-color)}.sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled:hover,.sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled:focus{background-color:var(--se-error-light5-color);border-color:var(--se-error-dark-color)}.sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled:active,.sun-editor .se-btn.se-btn-danger:not(.on):not(.active):enabled.__se__active{background-color:var(--se-error-light5-color);transition:background-color .08s ease}.sun-editor .se-btn.se-btn-danger:enabled.on{background-color:var(--se-error-light5-color);color:var(--se-error-color);border-color:var(--se-error-dark-color)}.sun-editor .se-btn.se-btn-danger:enabled.on:hover,.sun-editor .se-btn.se-btn-danger:enabled.on:focus{background-color:var(--se-error-light4-color);color:var(--se-error-color);border-color:var(--se-error-dark-color)}.sun-editor .se-btn.se-btn-danger:enabled.on:active,.sun-editor .se-btn.se-btn-danger:enabled.on.__se__active{background-color:var(--se-error-light-color);color:var(--se-error-color);transition:background-color .08s ease}.sun-editor .se-btn.se-btn-danger:enabled.active{background-color:var(--se-error-light4-color);color:var(--se-error-color);border-color:var(--se-error-dark3-color)}.sun-editor .se-btn.se-btn-danger:enabled.active:hover,.sun-editor .se-btn.se-btn-danger:enabled.active:focus{background-color:var(--se-error-light-color);color:var(--se-error-color);border-color:var(--se-error-dark3-color)}.sun-editor .se-btn.se-btn-danger:enabled.active:active,.sun-editor .se-btn.se-btn-danger:enabled.active.__se__active{background-color:var(--se-error-light-color);color:var(--se-error-color);transition:background-color .08s ease}.sun-editor input,.sun-editor select,.sun-editor textarea{color:var(--se-main-color);border:1px solid var(--se-input-btn-border-color);border-radius:var(--se-border-radius)}.sun-editor .se-btn:disabled,.sun-editor button:disabled,.sun-editor input:disabled{cursor:default;color:var(--se-input-btn-disabled-color)}.sun-editor .se-btn-list{width:100%;height:auto;min-height:32px;padding:0 14px;cursor:pointer;font-size:var(--se-btn-font-size);line-height:normal;text-indent:0;text-decoration:none;text-align:left}.sun-editor .se-btn-list.default_value{border:1px dashed var(--se-main-outline-color)}.sun-editor .se-sub-list:has(:not([style*="display: none"])){font-size:.75rem;letter-spacing:.25px;color:color-mix(in srgb,currentColor 45%,transparent);padding:14px 14px 3px;cursor:auto}.sun-editor .se-sub-list:has(:not([style*="display: none"])){border-bottom:1px dashed var(--se-main-outline-color)}.sun-editor .se-btn.se-btn-tool-pageNavigator>input{width:var(--se-input-btn-size);text-align:center;color:var(--se-main-color-lighter)}.sun-editor .se-btn.se-btn-tool-pageNavigator>input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.sun-editor .se-btn.se-btn-tool-pageNavigator>input[type=number]::-webkit-inner-spin-button,.sun-editor .se-btn.se-btn-tool-pageNavigator>input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.sun-editor .se-btn.se-btn-tool-pageNavigator~span{text-align:center;font-size:var(--se-main-font-size);align-content:center;margin-left:-10px}.sun-editor .se-btn.se-btn-tool-pageNavigator~span:before{content:"/";margin:0 .6em}.sun-editor svg{fill:currentColor;vertical-align:super}.sun-editor button>svg,.sun-editor .se-svg{width:var(--se-icon-size);height:var(--se-icon-size);margin:auto;fill:currentColor;display:block;text-align:center;float:none}.sun-editor button>svg.se-ci{width:15px;height:15px}.sun-editor svg.se-io{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sun-editor svg.se-io-sharp{transform:translateZ(0)}.sun-editor .se-text-prefix-icon{width:var(--se-icon-size);height:var(--se-icon-size);float:left}.sun-editor .se-text-prefix-icon svg{vertical-align:middle}.sun-editor button.se-sub-arrow-btn{width:18px}.sun-editor button.se-sub-arrow-btn svg{width:8px}.sun-editor button.se-sub-btn{width:24px}.sun-editor button.se-sub-btn svg{width:12px}.sun-editor .se-side-btn{border-radius:0;margin-left:0;margin-right:0}.sun-editor .se-side-btn-a{float:left;border-radius:var(--se-border-radius) 0 0 var(--se-border-radius);margin-right:0}.sun-editor .se-side-btn-b{float:left;border-radius:0 var(--se-border-radius) var(--se-border-radius) 0;margin-left:0}.sun-editor .se-side-btn-before{float:left;margin-right:0;border-radius:var(--se-border-radius) 0 0 var(--se-border-radius)}.sun-editor .se-side-btn-after{margin-left:0;border-radius:0 var(--se-border-radius) var(--se-border-radius) 0}.sun-editor .se-menu-list li:has(>button.se-side-btn-before) .se-btn-input input{border-top-left-radius:0;border-bottom-left-radius:0}.sun-editor .se-menu-list li:has(>button.se-side-btn-after) .se-btn-input input{border-top-right-radius:0;border-bottom-right-radius:0}.sun-editor button.se-btn-list>* li:before{content:"";display:inline-block;width:18px;height:13px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5LDEzSDVWMTFIMTlWMTNaIiBmaWxsPSJibGFjayIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxIiAvPjwvc3ZnPg==);background-size:cover;opacity:.5}.sun-editor .se-btn-select>svg{float:right;width:8px!important;height:8px!important}.sun-editor .se-select-item .se-list-icon{display:inline-block;width:16px;height:16px;margin:0 6px 0 0;vertical-align:middle}.sun-editor .se-btn-list>.se-list-icon{display:inline-block;width:16px;height:16px;margin:-1px 10px 0 0;vertical-align:middle}.sun-editor button>i:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;font-size:var(--se-modal-title-font-size);line-height:2}.sun-editor button>[class=se-icon-text]{font-size:20px;line-height:1}.sun-editor .se-arrow,.sun-editor .se-arrow:after{position:absolute;display:block;width:0;height:0;border:12px solid transparent;margin-right:0;margin-left:-12px}.sun-editor .se-controller .se-arrow{left:20px;right:auto;margin-left:-12px;margin-right:0}.sun-editor .se-arrow.se-arrow-up{top:-12px;border-top-width:0;border-bottom-color:var(--se-controller-border-color)}.sun-editor .se-arrow.se-arrow-up:after{top:1px;content:" ";border-top-width:0;border-bottom-color:var(--se-main-background-color)}.sun-editor .se-arrow.se-arrow-down{bottom:-12px;border-bottom-width:0;border-top-color:var(--se-controller-border-color)}.sun-editor .se-arrow.se-arrow-down:after{top:-14px;content:" ";border-bottom-width:0;border-top-color:var(--se-controller-background-color)}.sun-editor .se-container{position:relative;width:auto;height:auto}.sun-editor .se-loading-box{position:fixed;display:none;width:100%;height:100%;top:0;left:0;background-color:transparent;z-index:2147483647}.sun-editor .se-container .se-loading-box{position:absolute}.sun-editor .se-loading-box .se-loading-effect{position:absolute;display:block;top:50%;left:50%;height:44px;width:44px;border:2px solid transparent;border-top:2px solid var(--se-loading-color);border-right:2px solid var(--se-loading-color);border-radius:50%;-webkit-animation:spinner .8s linear infinite;animation:spinner .8s linear infinite;margin:-25px 0 0 -25px}.sun-editor .se-line-breaker-component{position:absolute;display:none;width:24px;height:24px;color:var(--se-drag-over-color);background-color:var(--se-main-background-color);border:1px solid var(--se-drag-over-color);opacity:.95;border-radius:var(--se-border-radius);cursor:pointer;z-index:2147483647;transition:opacity .3s ease,color .3s ease,background-color .3s ease}.sun-editor .se-line-breaker-component.se-on-selected{color:var(--se-active-color);background-color:var(--se-main-background-color);border:1px solid var(--se-active-color)}.sun-editor .se-line-breaker-component:hover{opacity:.9;color:var(--se-main-background-color);background-color:var(--se-active-dark3-color);border-color:var(--se-active-color)}.sun-editor .se-toolbar{display:block;position:sticky;top:0;height:auto;width:100%;overflow:visible;padding:0;margin:0;background-color:var(--se-main-background-color);outline:1px solid var(--se-main-divider-color);z-index:7}.sun-editor .se-toolbar-shadow{display:block!important;position:relative!important;width:100%!important;height:0px!important;overflow:visible!important;visibility:hidden!important;padding:0!important;margin:0!important;background-color:transparent!important;outline:none!important;border:none!important;z-index:0!important}.sun-editor .se-toolbar.se-toolbar-inline{display:none;position:absolute}.sun-editor .se-toolbar.se-toolbar-balloon{display:none;position:absolute;z-index:2147483646;width:auto;box-shadow:var(--se-shadow-layer);-webkit-box-shadow:var(--se-shadow-layer)}.sun-editor .se-toolbar.se-toolbar-relative{position:relative;top:auto}.sun-editor .se-toolbar.se-toolbar-sticky{position:fixed;top:0}.sun-editor .se-toolbar-sticky-dummy{display:none;position:static;z-index:-1}.sun-editor .se-toolbar.se-toolbar-bottom{top:auto;bottom:0}.sun-editor .se-toolbar.se-toolbar-bottom .se-btn-tray{display:flex;flex-wrap:wrap;padding:4px 3px}.sun-editor .se-toolbar.se-toolbar-bottom .se-btn-tray>.se-toolbar-more-layer{order:-1;width:100%;border-top:none}.sun-editor .se-toolbar.se-toolbar-bottom .se-toolbar-more-layer .se-more-layer{border-top:none;border-bottom:1px solid var(--se-main-divider-color);margin-bottom:4px}.sun-editor .se-toolbar.se-toolbar-sticky.se-toolbar-bottom{top:auto;bottom:0}.sun-editor .se-toolbar.se-toolbar-bottom .se-tooltip .se-tooltip-inner{top:auto;bottom:120%}.sun-editor .se-toolbar.se-toolbar-bottom .se-tooltip .se-tooltip-inner .se-tooltip-text:after{top:100%;bottom:auto;border-color:var(--se-main-font-color) transparent transparent transparent}.sun-editor .se-toolbar .se-arrow.se-arrow-up{border-bottom-color:var(--se-main-divider-color)}.sun-editor .se-toolbar .se-arrow.se-arrow-up:after{border-bottom-color:var(--se-main-background-color)}.sun-editor .se-toolbar .se-arrow.se-arrow-down{border-top-color:var(--se-main-divider-color)}.sun-editor .se-toolbar .se-arrow.se-arrow-down:after{border-top-color:var(--se-main-background-color)}.sun-editor .se-wrapper.se-mode-block{display:flex;flex-direction:row}.sun-editor.se-rtl .se-wrapper.se-mode-block{flex-direction:row-reverse}.sun-editor .se-block-handle-area{position:relative;width:var(--se-block-handle-area-width);flex-shrink:0;overflow:visible;z-index:2}.sun-editor .se-wrapper.se-mode-block .se-wrapper-inner{flex:1;min-width:0;position:relative;z-index:1}.sun-editor .se-block-handle{position:absolute;display:none;align-items:center;gap:var(--se-block-handle-gap);color:var(--se-block-handle-color);z-index:10;transition:top .2s cubic-bezier(.25,.46,.45,.94),left .2s cubic-bezier(.25,.46,.45,.94),right .2s cubic-bezier(.25,.46,.45,.94);will-change:top,left,right}.sun-editor .se-block-handle.se-no-transition{transition:none}.sun-editor .se-block-handle-btn{display:flex;align-items:center;justify-content:center;width:var(--se-block-handle-btn-size);height:var(--se-block-handle-btn-size);border-radius:var(--se-border-radius);cursor:pointer;opacity:.55;transition:opacity .15s,background-color .08s ease}.sun-editor .se-block-handle-btn:hover{opacity:1;background-color:var(--se-block-handle-btn-hover-bg)}.sun-editor .se-block-handle-btn:active{opacity:1;background-color:var(--se-block-handle-btn-active-bg)}.sun-editor .se-block-handle-btn svg{width:var(--se-block-handle-btn-icon-size);height:var(--se-block-handle-btn-icon-size)}.sun-editor .se-block-handle-drag{cursor:grab}.sun-editor .se-block-handle-drag:active{cursor:grabbing}.sun-editor .se-block-hover{background-color:var(--se-block-hover-bg);border-radius:var(--se-border-radius);outline:2px solid var(--se-block-hover-outline)}.sun-editor .se-block-drag-indicator{position:absolute;height:var(--se-block-drag-indicator-height);background-color:var(--se-block-drag-indicator-color);border-radius:1px;pointer-events:none;z-index:10}.sun-editor .se-block-drag-indicator:before{content:"";position:absolute;left:-3px;top:-4px;width:0;height:0;border:0 solid transparent;border-width:5px 0 5px 6px;border-color:transparent transparent transparent var(--se-block-drag-indicator-color)}.sun-editor .se-block-drag-indicator:after{content:"";position:absolute;right:-3px;top:-4px;width:0;height:0;border:0 solid transparent;border-width:5px 6px 5px 0;border-color:transparent var(--se-block-drag-indicator-color) transparent transparent}.sun-editor .se-block-dragging{opacity:.4;transition:opacity .1s}.sun-editor .se-block-menu-icon{display:inline-flex;align-items:center;width:var(--se-icon-size-command-menu);height:var(--se-icon-size-command-menu);margin-right:12px;margin-left:4px;vertical-align:middle}.sun-editor .se-block-menu-icon svg{width:100%;height:100%}.sun-editor .se-block-menu-label{vertical-align:middle}.sun-editor .se-block-menu-label-full{padding-left:22px}.sun-editor .se-block-submenu-item{display:flex;align-items:center;padding:2px 8px;gap:6px;line-height:1.4}.sun-editor .se-block-submenu-item .se-list-icon,.sun-editor .se-block-submenu-item svg{display:inline-block;width:var(--se-icon-size-command-menu);height:var(--se-icon-size-command-menu);margin:0 6px 0 0;flex-shrink:0;vertical-align:middle}.sun-editor .se-block-submenu-item .se-list-icon svg{width:100%;height:100%}.sun-editor .se-block-dragging{opacity:.4}.sun-editor .se-btn-module{display:inline-block}.sun-editor .se-btn-module-border{border:1px solid var(--se-main-divider-color);border:none;border-radius:var(--se-border-radius);margin-left:1px;margin-right:1px}.sun-editor .se-toolbar-separator-vertical{display:inline-block;height:var(--se-input-btn-size);width:1px;margin:1px;vertical-align:top;background-color:var(--se-main-divider-color)}.sun-editor .se-btn-module-enter{display:block;width:100%;height:0px;margin:0;padding:0;background-color:transparent}.sun-editor .se-toolbar-more-layer{margin:0 -3px;background-color:var(--se-main-background-color)}.sun-editor .se-toolbar-more-layer .se-more-layer{display:none;border-top:1px solid var(--se-main-divider-color)}.sun-editor .se-toolbar-more-layer .se-more-layer .se-more-form{display:inline-block;width:100%;height:auto;padding:4px 3px 0}.sun-editor .se-btn-module .se-btn-more.se-btn-more-text{width:auto;padding:0 4px}.sun-editor .se-menu-list{float:left;padding:0;margin:0}.sun-editor .se-menu-list li{position:relative;float:left;padding:0;margin:0}.sun-editor .se-menu-list li.se-toolbar-hidden-btn{display:none}.sun-editor .se-menu-list li .se-toolbar-btn:not(input){border-color:transparent}.sun-editor .se-btn-select{width:auto;display:flex;padding:4px 6px}.sun-editor .se-btn-select .se-txt{flex:auto;display:flex;text-align:left;margin-right:4px;align-items:center}.sun-editor .se-btn-select .se-not-arrow-text{flex:auto;text-align:center;margin:0}.sun-editor .se-btn-select.on .se-txt+svg{transform:rotate(-180deg)}.sun-editor .se-btn-select.se-btn-tool-font{width:128px}.sun-editor .se-btn-select.se-btn-tool-format{width:96px}.sun-editor .se-btn-select.se-btn-tool-font-size .se-txt{width:66px;margin:0}.sun-editor .se-btn-select.se-btn-tool-font-size .se-not-arrow-text{width:50px}.sun-editor .se-btn-input{padding:0!important;border:0!important}.sun-editor .se-btn-input input{font-size:var(--se-main-font-size);height:var(--se-input-btn-size);border:0;border-radius:var(--se-border-radius)}.sun-editor .se-btn-input input:hover{border:1px solid var(--se-main-border-color)}.sun-editor .se-btn-input input:focus{border:1px solid var(--se-active-color)!important;outline:0}.sun-editor .se-btn-tray{position:relative;width:100%;height:auto;padding:4px 3px 0;margin:0}.sun-editor .se-menu-tray{position:absolute;top:0;left:0;width:100%;height:0px;z-index:2147483646}.sun-editor .se-controller[popover],.sun-editor .se-block-handle[popover],.sun-editor.sun-editor-carrier-wrapper .se-drag-cursor[popover]{inset:unset;margin:0}.sun-editor .se-modal-area[popover],.sun-editor .se-back-wrapper[popover],.sun-editor .se-loading-box[popover],.sun-editor .se-toast[popover],.sun-editor .se-browser[popover],.sun-editor .se-block-handle[popover],.sun-editor .se-menu-tray[popover]{background:none;border:none;padding:0;overflow:visible;color:inherit}.sun-editor .se-dropdown{overflow-x:hidden;overflow-y:auto}.sun-editor .se-menu-container{overflow-x:unset;overflow-y:unset}.sun-editor .se-list-layer{display:none;position:absolute;top:0;left:0;height:auto;z-index:5;border:1px solid var(--se-main-divider-color);border-radius:var(--se-border-radius-lg);padding:4px;background-color:var(--se-main-background-color);box-shadow:var(--se-shadow-layer);outline:0 none}.sun-editor .se-list-layer .se-list-inner{padding:0;margin:0;overflow:visible}.sun-editor .se-list-layer button{margin:0 0 2px;width:100%}.sun-editor .se-list-inner ul{width:100%;padding:0;margin:auto}.sun-editor .se-list-inner :not(.se-list-horizontal) li>button{min-width:100%;width:-webkit-max-content;width:-moz-max-content;width:max-content}.sun-editor .se-list-inner .se-list-basic li{width:auto;max-width:100%}.sun-editor .se-list-inner input{border-radius:0}.sun-editor .se-list-inner ul.se-list-carrier{width:165px;height:52px}.sun-editor .se-list-inner ul.se-list-carrier li button>ol,.sun-editor .se-list-inner ul.se-list-carrier li button>ul{font-size:10px}.sun-editor .se-list-inner .se-list-checked li .se-svg{float:left;padding:6px 6px 0 0}.sun-editor .se-list-inner .se-list-checked li .se-svg>svg{display:none}.sun-editor .se-list-inner .se-list-checked li.se-checked *{color:var(--se-active-dark3-color)}.sun-editor .se-list-inner .se-list-checked li.se-checked .se-svg>svg{display:block}.sun-editor .se-list-inner .se-list-horizontal{display:flex;padding:2px}.sun-editor .se-list-inner .se-list-horizontal li{padding:0;margin:0 2px}.sun-editor .se-list-layer.se-list-font-size{min-width:140px;max-height:300px}.sun-editor .se-list-layer.se-list-code-block{min-width:140px;max-height:310px}.sun-editor .se-list-layer.se-list-font-family{min-width:156px}.sun-editor .se-list-layer.se-list-font-family .default{border-bottom:1px solid var(--se-input-btn-border-color)}.sun-editor .se-list-layer.se-list-line{width:125px}.sun-editor .se-list-layer.se-list-line hr{border-width:1px 0 0;height:1px;border-color:var(--se-edit-hr-color)}.sun-editor .se-list-layer.se-list-align .se-list-inner{left:9px}.sun-editor .se-list-layer.se-list-format{min-width:156px}.sun-editor .se-list-layer.se-list-format li{padding:0;width:100%}.sun-editor .se-list-layer.se-list-format ul .se-btn-list{line-height:100%}.sun-editor .se-list-layer.se-list-format ul .se-btn-list[data-value=h1]{height:40px}.sun-editor .se-list-layer.se-list-format ul .se-btn-list[data-value=h2]{height:34px}.sun-editor .se-list-layer.se-list-format ul p{font-size:var(--se-main-font-size)}.sun-editor .se-list-layer.se-list-format ul div{font-size:var(--se-main-font-size);padding:4px 2px}.sun-editor .se-list-layer.se-list-format ul h1{font-size:2em;font-weight:700}.sun-editor .se-list-layer.se-list-format ul h2{font-size:1.5em;font-weight:700}.sun-editor .se-list-layer.se-list-format ul h3{font-size:1.17em;font-weight:700}.sun-editor .se-list-layer.se-list-format ul h4{font-size:1em;font-weight:700}.sun-editor .se-list-layer.se-list-format ul h5{font-size:.83em;font-weight:700}.sun-editor .se-list-layer.se-list-format ul h6{font-size:.67em;font-weight:700}.sun-editor .se-list-layer.se-list-format ul blockquote{font-size:var(--se-main-font-size);color:var(--se-edit-font-quote);height:22px;margin:0;background-color:transparent;line-height:1.5;border-style:solid;border-color:var(--se-edit-border-dark);padding:0 0 0 7px;border-width:0;border-left-width:5px}.sun-editor .se-list-layer.se-list-format ul pre{font-size:var(--se-main-font-size);color:var(--se-edit-font-pre);padding:4px 11px;margin:0;background-color:var(--se-edit-background-pre);border:1px solid var(--se-edit-border-light);border-radius:var(--se-border-radius)}.sun-editor-editable[contenteditable=true],.sun-editor-editable[contenteditable=true] *{scroll-margin:var(--se-edit-scroll-margin)}.sun-editor-editable[contenteditable=true].se-copy-format-cursor{cursor:url(data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB3aWR0aD0iMjQiCiAgaGVpZ2h0PSIxNiIKICB2aWV3Qm94PSIwIDAgMjQgMTYiCj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9IndoaXRlLW91dGxpbmUiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICAgIDxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9ImRpbGF0ZWQiIG9wZXJhdG9yPSJkaWxhdGUiIHJhZGl1cz0iMSIvPgogICAgICA8ZmVGbG9vZCBmbG9vZC1jb2xvcj0id2hpdGUiIHJlc3VsdD0id2hpdGUiLz4KICAgICAgPGZlQ29tcG9zaXRlIGluPSJ3aGl0ZSIgaW4yPSJkaWxhdGVkIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0ib3V0bGluZSIvPgogICAgICA8ZmVNZXJnZT4KICAgICAgICA8ZmVNZXJnZU5vZGUgaW49Im91dGxpbmUiLz4KICAgICAgICA8ZmVNZXJnZU5vZGUgaW49IlNvdXJjZUdyYXBoaWMiLz4KICAgICAgPC9mZU1lcmdlPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxnIGZpbHRlcj0idXJsKCN3aGl0ZS1vdXRsaW5lKSI+CiAgICA8cGF0aAogICAgICBkPSJNNC4zMzIgMTIuNjY4CiAgICAgICAgIEM0LjMzMiAxMy4wMzUgNC40ODQgMTMuMzMyIDQuNjY4IDEzLjMzMgogICAgICAgICBMNS4zMzIgMTMuMzMyCiAgICAgICAgIEw1LjMzMiAxNC42NjgKICAgICAgICAgTDQuNSAxNC42NjgKICAgICAgICAgQzQuMzE2IDE0LjY2OCA0IDE0LjM2NyA0IDE0CiAgICAgICAgIEM0IDE0LjM2NyAzLjY4NCAxNC42NjggMy41IDE0LjY2OAogICAgICAgICBMMi42NjggMTQuNjY4CiAgICAgICAgIEwyLjY2OCAxMy4zMzIKICAgICAgICAgTDMuMzMyIDEzLjMzMgogICAgICAgICBDMy41MTYgMTMuMzMyIDMuNjY4IDEzLjAzNSAzLjY2OCAxMi42NjgKICAgICAgICAgTDMuNjY4IDMuMzMyCiAgICAgICAgIEMzLjY2OCAyLjk2NSAzLjUxNiAyLjY2OCAzLjMzMiAyLjY2OAogICAgICAgICBMMi42NjggMi42NjgKICAgICAgICAgTDIuNjY4IDEuMzMyCiAgICAgICAgIEwzLjUgMS4zMzIKICAgICAgICAgQzMuNjg0IDEuMzMyIDQgMS42MzMgNCAyCiAgICAgICAgIEM0IDEuNjMzIDQuMzE2IDEuMzMyIDQuNSAxLjMzMgogICAgICAgICBMNS4zMzIgMS4zMzIKICAgICAgICAgTDUuMzMyIDIuNjY4CiAgICAgICAgIEw0LjY2OCAyLjY2OAogICAgICAgICBDNC40ODQgMi42NjggNC4zMzIgMi45NjUgNC4zMzIgMy4zMzIKICAgICAgICAgWiIKICAgICAgZmlsbD0iYmxhY2siCiAgICAvPgogICAgPHBhdGgKICAgICAgZD0iTTIwIDIuNjY4CiAgICAgICAgIEwyMCAyCiAgICAgICAgIEMyMCAxLjYzMyAxOS43MDMgMS4zMzIgMTkuMzMyIDEuMzMyCiAgICAgICAgIEwxMS4zMzIgMS4zMzIKICAgICAgICAgQzEwLjk2NSAxLjMzMiAxMC42NjggMS42MzMgMTAuNjY4IDIKICAgICAgICAgTDEwLjY2OCA0LjY2OAogICAgICAgICBDMTAuNjY4IDUuMDM1IDEwLjk2NSA1LjMzMiAxMS4zMzIgNS4zMzIKICAgICAgICAgTDE5LjMzMiA1LjMzMgogICAgICAgICBDMTkuNzAzIDUuMzMyIDIwIDUuMDM1IDIwIDQuNjY4CiAgICAgICAgIEwyMCA0CiAgICAgICAgIEwyMC42NjggNAogICAgICAgICBMMjAuNjY4IDYuNjY4CiAgICAgICAgIEwxNCA2LjY2OAogICAgICAgICBMMTQgMTQKICAgICAgICAgQzE0IDE0LjM2NyAxNC4yOTcgMTQuNjY4IDE0LjY2OCAxNC42NjgKICAgICAgICAgTDE2IDE0LjY2OAogICAgICAgICBDMTYuMzY3IDE0LjY2OCAxNi42NjggMTQuMzY3IDE2LjY2OCAxNAogICAgICAgICBMMTYuNjY4IDgKICAgICAgICAgTDIyIDgKICAgICAgICAgTDIyIDIuNjY4CiAgICAgICAgIFoiCiAgICAgIGZpbGw9ImJsYWNrIgogICAgLz4KICA8L2c+Cjwvc3ZnPgo=) 0 8,text}.sun-editor-editable[contenteditable=true] table th:not(.se-selected-table-cell):hover:before,.sun-editor-editable[contenteditable=true] table td:not(.se-selected-table-cell):hover:before{content:"";position:absolute;top:0;left:-2px;width:4px;height:100%;background-color:transparent;cursor:ew-resize}.sun-editor-editable[contenteditable=true] table th:not(.se-selected-table-cell):hover:after,.sun-editor-editable[contenteditable=true] table td:not(.se-selected-table-cell):hover:after{content:"";position:absolute;top:0;right:-2px;width:4px;height:100%;background-color:transparent;cursor:ew-resize}.sun-editor .se-table-resize-line{position:absolute;top:0;width:6px;height:100%;margin-left:-3px;background-color:var(--se-active-dark-color);opacity:.4;pointer-events:none;display:none;z-index:2}.sun-editor .se-table-resize-row{position:absolute;left:0;width:100%;height:6px;margin-top:-3px;background-color:var(--se-active-dark-color);opacity:.4;pointer-events:none;display:none;z-index:2}.sun-editor .se-table-resize-line-prev{position:absolute;top:0;width:4px;height:100%;margin-left:-1px;border-left:1px dashed var(--se-drag-over-color);background-color:transparent;opacity:.8;pointer-events:none;display:none;z-index:2}.sun-editor .se-table-resize-row-prev{position:absolute;left:0;width:100%;height:4px;margin-top:-1px;border-top:1px dashed var(--se-drag-over-color);background-color:transparent;opacity:.8;pointer-events:none;display:none;z-index:2}.sun-editor .se-selector-table{display:none;position:absolute;overflow:hidden;top:var(--se-input-btn-size);left:1px;z-index:5;padding:5px 0;float:left;margin:2px 0 0;font-size:var(--se-main-font-size);text-align:left;list-style:none;background-color:var(--se-main-background-color);-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid var(--se-input-btn-border-color);border-radius:var(--se-border-radius);box-shadow:var(--se-shadow-layer)}.sun-editor .se-selector-table .se-table-size{font-size:18px;padding:0 5px}.sun-editor .se-selector-table .se-table-size-picker{position:absolute!important;z-index:3;font-size:18px;width:10em;height:10em;cursor:pointer}.sun-editor .se-selector-table .se-table-size-highlighted{position:absolute!important;z-index:2;font-size:18px;width:1em;height:1em;background-color:var(--se-table-picker-highlight-color);background-image:linear-gradient(to right,var(--se-table-picker-highlight-border-color) 1px,transparent 1px),linear-gradient(to bottom,var(--se-table-picker-highlight-border-color) 1px,transparent 1px);background-size:1em 1em;border-right:1px solid var(--se-table-picker-highlight-border-color);border-bottom:1px solid var(--se-table-picker-highlight-border-color)}.sun-editor .se-selector-table .se-table-size-unhighlighted{position:relative!important;z-index:1;font-size:18px;width:5em;height:5em;background-color:var(--se-table-picker-color);background-image:linear-gradient(to right,var(--se-table-picker-border-color) 1px,transparent 1px),linear-gradient(to bottom,var(--se-table-picker-border-color) 1px,transparent 1px);background-size:1em 1em;border-right:1px solid var(--se-table-picker-border-color);border-bottom:1px solid var(--se-table-picker-border-color)}.sun-editor .se-selector-table .se-table-size-display{padding-left:5px}.sun-editor .se-list-layer.se-table-split{top:36px}.sun-editor .se-list-layer .se-selector-color{display:block;width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:252px;height:auto;padding:0;margin:auto}.sun-editor .se-list-layer .se-selector-color .se-color-pallet{width:100%;height:100%;padding:0}.sun-editor .se-list-layer .se-selector-color .se-color-pallet li{display:flex;float:left;position:relative;margin:0}.sun-editor .se-list-layer .se-selector-color .se-color-pallet button{display:block;cursor:default;width:28px;height:28px;margin:0;border-radius:0;border:0;text-indent:-9999px;transition:transform .2s,box-shadow .2s}.sun-editor .se-list-layer .se-selector-color .se-color-pallet button.active,.sun-editor .se-list-layer .se-selector-color .se-color-pallet button:hover{box-shadow:0 0 0 1px transparent inset;transform:scale(.8)}.sun-editor .se-list-layer .se-selector-color .se-color-pallet button.active>svg{color:#fff;stroke:#000;stroke-width:2px}.sun-editor .se-list-layer .se-selector-color .se-color-pallet:first-child li:first-child button{border-top-left-radius:var(--se-border-radius)}.sun-editor .se-list-layer .se-selector-color .se-color-pallet:first-child li:last-child button{border-top-right-radius:var(--se-border-radius)}.sun-editor .se-list-layer .se-selector-color .se-color-pallet:last-of-type li:first-child button{border-bottom-left-radius:var(--se-border-radius)}.sun-editor .se-list-layer .se-selector-color .se-color-pallet:last-of-type li:last-child button{border-bottom-right-radius:var(--se-border-radius)}.sun-editor .se-hue-slider{padding:14px}.sun-editor .se-hue-slider-container{position:relative;width:auto;height:auto;border-radius:50%;outline:2px solid #fff}.sun-editor .se-hue-slider-container .se-hue-wheel{cursor:pointer;border-radius:50%}.sun-editor .se-hue-slider-container .se-hue-wheel-pointer{position:absolute;width:10px;height:10px;border:2px solid #fff;outline:2px solid #000;border-radius:50%;background-color:transparent;box-shadow:0 0 2px #000;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.sun-editor .se-hue-gradient-container{position:relative;margin-top:14px;height:28px;outline:2px solid #fff}.sun-editor .se-hue-gradient-container .se-hue-gradient{cursor:pointer;height:28px;background:linear-gradient(to right,#000,#fff);position:relative}.sun-editor .se-hue-gradient-container .se-hue-gradient-pointer{position:absolute;width:14px;height:14px;border:2px solid #fff;outline:2px solid #000;border-radius:50%;background-color:transparent;box-shadow:0 0 2px #000;top:14px;left:calc(100% - 14px);transform:translate(-50%,-50%);pointer-events:none}.sun-editor .se-hue-final-hex{display:flex;margin-top:10px}.sun-editor .se-form-group{display:flex;width:100%;min-height:40px;height:auto;padding:4px}.sun-editor .se-form-group.se-form-w0{padding-left:0;padding-right:0}.sun-editor .se-form-group.se-form-h0{padding-top:0;padding-bottom:0}.sun-editor .se-form-group input,.sun-editor .se-btn-group input{flex:auto;display:inline-block;width:auto;height:var(--se-input-btn-size);font-size:var(--se-btn-font-size);margin:1px 0;padding:0 4px;border:1px solid var(--se-input-btn-border-color)}.sun-editor .se-btn-group input{margin:1px 3px}.sun-editor .se-form-group button,.sun-editor .se-dropdown-form-group button{float:right;width:var(--se-input-btn-size);height:var(--se-input-btn-size);margin:1px}.sun-editor .se-form-group.se-form-flex-btn button{float:none;flex:auto}.sun-editor .se-form-group .se-group-item{position:relative}.sun-editor .se-form-group label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.sun-editor .se-form-group-label{width:100%;height:auto;padding:0 4px}.sun-editor .se-form-group-label label{font-size:var(--se-main-font-size);font-weight:700}.sun-editor .se-dropdown .se-form-group input{height:var(--se-input-btn-size);color:var(--se-dropdown-font-color)}.sun-editor .se-dropdown .se-form-group .se-color-input:focus{border-bottom:3px solid var(--se-main-outline-color)}.sun-editor .se-wrapper{display:flex;position:relative!important;width:100%;height:auto;overflow:hidden;z-index:1}.sun-editor .se-wrapper .se-wrapper-inner{height:100%;min-height:var(--se-min-height)}.sun-editor .se-wrapper .se-wrapper-inner,.sun-editor body.sun-editor-editable{width:100%;max-width:100%;overflow-y:auto;overflow-x:auto;-webkit-overflow-scrolling:touch;user-select:auto;-o-user-select:auto;-moz-user-select:auto;-khtml-user-select:auto;-webkit-user-select:auto;-ms-user-select:auto}.sun-editor .se-wrapper .se-wrapper-inner:focus,.sun-editor body.sun-editor-editable:focus{outline:none}.sun-editor .se-wrapper[style*=--se-editor-inner-width] .se-wrapper-inner{padding-inline:max(var(--se-edit-inner-padding),calc((100% - var(--se-editor-inner-width)) / 2))}.sun-editor .se-wrapper.se-mode-block[style*=--se-editor-inner-width] .se-wrapper-inner{padding-inline-start:max(var(--se-edit-inner-padding),calc((100% - var(--se-editor-inner-width)) / 2 - var(--se-block-handle-area-width)))}.sun-editor .se-wrapper .se-code-wrapper{width:100%;overflow:hidden}.sun-editor .se-wrapper .se-code-wrapper>div{flex:1;min-width:0}.sun-editor .se-wrapper .se-code-wrapper .se-code-view-line{background-color:var(--se-code-view-line-background-color);color:var(--se-code-view-line-color);text-align:right;width:50px;font-size:var(--se-main-font-size);line-height:1.5;padding:4px 6px;overflow:hidden;resize:none!important}.sun-editor .se-wrapper .se-code-viewer{flex:1;min-width:0;background-color:var(--se-code-view-background-color);color:var(--se-code-view-color);font-family:var(--se-codeview-font-family);font-size:var(--se-main-font-size);line-height:1.5;padding:4px;margin:0;-moz-tab-size:4;tab-size:4;resize:none!important;overflow-x:auto;white-space:pre;word-wrap:normal}.sun-editor .se-wrapper .se-markdown-wrapper{width:100%;overflow:hidden}.sun-editor .se-wrapper .se-markdown-wrapper .se-markdown-view-line{background-color:var(--se-markdown-view-line-background-color);color:var(--se-markdown-view-line-color);text-align:right;width:50px;font-size:var(--se-main-font-size);line-height:1.5;padding:4px 6px;overflow:hidden;resize:none!important}.sun-editor .se-wrapper .se-markdown-viewer{flex:1;min-width:0;background-color:var(--se-markdown-view-background-color);color:var(--se-markdown-view-color);font-size:var(--se-main-font-size);font-family:var(--se-markdown-font-family);line-height:1.5;padding:4px;margin:0;-moz-tab-size:4;tab-size:4;resize:none!important;overflow-x:auto;white-space:pre;word-wrap:normal}.sun-editor .se-wrapper .se-wrapper-wysiwyg{display:block;position:relative;caret-color:var(--se-caret-color)}.sun-editor-editable[contenteditable=true] .se-disable-pointer *,.sun-editor-editable[contenteditable=true] .se-math *,.sun-editor-editable[contenteditable=true] .katex *{pointer-events:none}.sun-editor .se-wrapper .se-placeholder{position:absolute;display:none;white-space:nowrap;text-overflow:ellipsis;z-index:1;color:var(--se-main-outline-color);font-size:var(--se-main-font-size);line-height:1.5;top:0;left:0;right:0;overflow:hidden;padding:var(--se-edit-inner-padding);margin:0;pointer-events:none;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden}.sun-editor .se-wrapper .se-placeholder-line:before{content:attr(data-se-placeholder-line);display:inline-block;width:0;overflow:visible;color:var(--se-main-outline-color);pointer-events:none;user-select:none;-webkit-user-select:none;white-space:nowrap}.sun-editor .se-status-bar{display:flex;width:auto;height:auto;min-height:20px;border-top:1px solid var(--se-main-divider-color);padding:0 4px;background-color:var(--se-main-background-color);cursor:ns-resize}.sun-editor .se-status-bar.se-resizing-none{cursor:default}.sun-editor .se-back-wrapper{position:fixed;display:none;cursor:default;top:0;left:0;width:100%;height:100%;user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;z-index:2147483647;background-color:transparent}.sun-editor .se-status-bar .se-navigation{flex:auto;position:relative;width:auto;height:auto;color:var(--se-statusbar-font-color);margin:0;padding:0;font-size:var(--se-statusbar-font-size);line-height:1.5;background:transparent}.sun-editor .se-status-bar .se-word-counter-wrapper{position:relative;width:auto;height:auto;margin:0;padding:0;color:var(--se-statusbar-font-color);font-size:var(--se-statusbar-font-size);background:transparent}.sun-editor .se-status-bar .se-word-counter-wrapper .se-word-label{margin-right:4px}.sun-editor .se-status-bar .se-char-counter-wrapper.se-with-word-counter{margin-left:.6em}.sun-editor .se-status-bar .se-char-counter-wrapper{flex:none;position:relative;display:block;width:auto;height:auto;margin:0;padding:0;color:var(--se-statusbar-font-color);font-size:var(--se-statusbar-font-size);background:transparent}.sun-editor .se-status-bar .se-char-counter-wrapper.se-blink{color:var(--se-error-color);-webkit-animation:blinker .2s linear infinite;animation:blinker .2s linear infinite}.sun-editor .se-status-bar .se-char-counter-wrapper .se-char-label{margin-right:4px}.sun-editor .se-modal-area{position:fixed;display:none;top:0;left:0;width:100%;height:100%;z-index:2147483646}.sun-editor .se-modal-area.se-backdrop-show{display:block}.sun-editor .se-modal-area label,.sun-editor .se-modal-area input,.sun-editor .se-modal-area button{font-size:var(--se-modal-input-font-size);line-height:1.5;color:var(--se-main-color);margin:0}.sun-editor .se-modal-area .se-modal-back{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--se-overlay-background-color);opacity:.5}.sun-editor .se-modal-area .se-modal-inner{position:absolute;width:100%;height:100%;top:0;left:0}.sun-editor .se-modal-area .se-modal-inner .se-modal-content{position:relative;display:none;width:auto;max-width:500px;margin:1.75rem auto;background-color:var(--se-modal-background-color);color:var(--se-modal-color);-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:var(--se-border-radius-lg);outline:0;box-shadow:var(--se-shadow-layer)}.sun-editor .se-modal-area .se-modal-inner .se-modal-content.se-modal-show{display:block}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-w{position:relative;display:block;width:100%;height:10px;cursor:ns-resize;bottom:0;margin:0}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-w:before{content:"";position:relative;display:block;width:100%;height:1px;background-color:var(--se-main-outline-color);margin:1px 0}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-h{position:absolute;display:block;width:10px;top:15px;height:calc(100% - 27px);cursor:ew-resize;right:0}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-h:before{content:"";position:relative;display:block;width:1px;height:100%;background-color:var(--se-main-outline-color);margin:0 1px}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c{position:absolute;display:block;width:9px;height:9px;cursor:nwse-resize;right:4px;bottom:1px}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c:before,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c:after{content:"";position:absolute;display:block;background-color:var(--se-main-outline-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c:before{width:100%;height:2px;top:50%;left:0;transform:translateY(-50%)}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c:after{width:2px;height:100%;left:50%;top:0;transform:translate(-50%)}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-w:hover:before,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-w.active:before,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-h:hover:before,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-h.active:before,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c:hover:before,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c:hover:after,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c.active:before,.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c.active:after{background-color:var(--se-active-dark4-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-content.se-modal-large{max-width:750px;width:100%}.sun-editor .se-modal-area .se-modal-inner .se-modal-content.se-modal-large .se-modal-body{height:50vh}.sun-editor .se-modal-area .se-modal-inner .se-modal-content.se-modal-responsive{width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;max-width:100%;max-height:90vh}@media screen and (max-width: 509px){.sun-editor .se-modal-area .se-modal-inner .se-modal-content{width:100%!important;min-width:100%!important;max-width:100%!important}}.sun-editor .se-modal-area .se-modal-inner .se-modal-content.se-modal-responsive .se-modal-resize-form{max-width:100%}.sun-editor .se-modal-area .se-modal-inner .se-modal-content label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.sun-editor .se-modal-area .se-modal-inner .se-modal-content .se-btn-primary{display:inline-block;padding:5px 11px;margin:0 0 10px!important;font-size:var(--se-modal-input-font-size);font-weight:500;color:#fff;line-height:1.4;text-align:center;white-space:nowrap;vertical-align:middle;touch-action:manipulation;border-radius:var(--se-border-radius)}.sun-editor .se-modal-area .se-modal-inner .se-modal-header{height:50px;padding:6px 15px;border-bottom:1px solid var(--se-modal-border-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-header .se-close-btn{float:right;font-weight:700;text-shadow:0 1px 0 var(--se-main-background-color);filter:alpha(opacity=100);opacity:1}.sun-editor .se-modal-area .se-modal-inner .se-modal-header .se-modal-title{float:left;font-size:var(--se-modal-title-font-size);font-weight:700;margin:0;padding:0;line-height:2.5}.sun-editor .se-modal-area .se-modal-inner .se-modal-body{position:relative;padding:15px 15px 10px}.sun-editor .se-modal-area .se-modal-inner .se-modal-body-top{position:relative;padding:0 15px 5px}.sun-editor .se-modal-area .se-modal-inner .se-modal-body-bottom{position:relative;padding:5px 15px 0}.sun-editor .se-modal-area .se-modal-inner .se-modal-hr{border-bottom:1px dashed var(--se-modal-color);margin-bottom:6px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form{margin-bottom:10px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-modal-flex-form{position:relative;display:flex}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-modal-flex-form .se-modal-flex-group{border:1px dashed var(--se-modal-border-color);padding:4px 0 4px 4px;margin-right:4px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-modal-flex-form .se-btn{margin-right:4px;margin-left:0;border:1px solid var(--se-input-btn-border-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-form-footer{margin-top:10px;margin-bottom:0}.sun-editor .se-modal-area .se-modal-inner input:disabled{background-color:var(--se-modal-input-disabled-background-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-size-text{width:100%}.sun-editor .se-modal-area .se-modal-inner .se-modal-size-text .size-w,.sun-editor .se-modal-area .se-modal-inner .se-modal-size-text .size-h{width:var(--se-modal-input-width);text-align:center}.sun-editor .se-modal-area .se-modal-inner .se-modal-size-x{margin:0 8px;width:25px;text-align:center}.sun-editor .se-modal-area .se-modal-inner .se-modal-footer{height:auto;min-height:55px;padding:10px 15px 0;text-align:right;border-top:1px solid var(--se-modal-border-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-footer .se-btn{float:left}.sun-editor .se-modal-area .se-modal-inner .se-modal-footer>div{float:left;line-height:1.7}.sun-editor .se-modal-area .se-modal-inner .se-modal-footer>div>label{margin:0 5px 0 0}.sun-editor .se-modal-area .se-modal-inner .se-modal-btn-radio{margin-left:12px;margin-right:6px}.sun-editor .se-modal-area .se-modal-inner .se-modal-btn-check{margin-left:12px;margin-right:4px}.sun-editor .se-modal-area .se-modal-inner .se-modal-btn-check:disabled+span{color:var(--se-modal-input-disabled-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-form-footer .se-modal-btn-check{margin-left:0;margin-right:4px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form-footer label:first-child{margin-right:16px;margin-left:0}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-modal-form-files{position:relative;display:flex;align-items:center}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-modal-form-files>input{flex:auto}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-modal-form-files .se-modal-files-edge-button{flex:none;opacity:.8;border:1px solid var(--se-input-btn-border-color);margin-left:1px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-input-select{display:inline-block;width:auto;height:var(--se-input-btn-size);font-size:var(--se-modal-input-font-size);text-align:center;line-height:1.4}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-input-control{display:inline-block;width:var(--se-modal-input-width);height:var(--se-input-btn-size);font-size:var(--se-modal-input-font-size);text-align:center;line-height:1.4}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper{display:block;position:relative;width:100%;height:auto;padding:0}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs{display:block;position:absolute;width:100%;height:100%;padding:0;margin:0;background-color:var(--se-modal-file-input-background-color);border:2px dashed var(--se-input-btn-border-color);pointer-events:none}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs *{pointer-events:none;vertical-align:middle}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs>div{display:block;position:relative;padding-top:3px;width:100%;height:100%;margin:auto}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs>div .se-input-file-w{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;margin:auto;padding:0 4px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs>div .se-input-file-icon-up,.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs>div .se-input-file-icon-files{display:inline-block;width:20px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs>div .se-input-file-icon-files{display:none}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-flex-input-wrapper>.se-input-form-abs>div .se-input-file-cnt{display:inline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-input-form{display:block;width:100%;height:var(--se-input-btn-size);font-size:var(--se-modal-input-font-size);line-height:1.4;padding:0 4px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-input-form.se-input-url{direction:ltr}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-input-form.se-input-url:disabled{text-decoration:line-through;color:var(--se-modal-input-disabled-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-modal-ratio{width:var(--se-modal-input-width);margin-left:4px}.sun-editor .se-modal-area .se-modal-inner .se-modal-form a{color:var(--se-modal-anchor-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-btn-revert{float:right;border:1px solid var(--se-input-btn-border-color)}.sun-editor .se-modal-tabs{width:100%;height:25px;border-bottom:1px solid var(--se-modal-border-color)}.sun-editor .se-modal-tabs button{background-color:var(--se-modal-border-color);border-right:1px solid var(--se-modal-border-color);float:left;outline:none;padding:2px 13px;transition:.3s}.sun-editor .se-modal-tabs button:hover{background-color:var(--se-main-background-color)}.sun-editor .se-modal-tabs button.active{background-color:var(--se-main-background-color);border-bottom:0}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-input-form.se-math-exp{border:1px solid var(--se-active-dark4-color);font-size:var(--se-main-font-size);padding:4px;direction:ltr}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-input-select.se-math-size{width:6em;height:28px;margin-left:1em}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-math-preview{font-size:var(--se-main-font-size)}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-math-preview>span{display:inline-block;box-shadow:0 0 0 .1rem var(--se-active-light3-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-math-preview>span *{direction:ltr}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-math-preview>.se-math-error{color:var(--se-error-color);box-shadow:0 0 0 .1rem var(--se-error-light3-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-math-preview>.se-math-error svg{width:auto;height:30px;color:var(--se-error-color)}.sun-editor .se-modal-area .se-modal-inner .se-modal-form .se-math-preview .MathJax{margin:.5em 0!important}.sun-editor .se-modal-area .se-modal-inner .se-link-preview{display:block;height:auto;padding-top:4px;font-size:var(--se-main-font-size);font-weight:400;font-family:inherit;color:var(--se-modal-preview-color);background-color:transparent;overflow:hidden;text-overflow:ellipsis;word-break:break-all;white-space:pre;max-height:none}.sun-editor .se-modal-area .se-modal-inner .se-anchor-preview-form{width:100%;display:flex;margin-top:4px}.sun-editor .se-modal-area .se-modal-inner .se-anchor-preview-form .se-svg.se-anchor-preview-icon{flex:unset;display:none;line-height:1;margin:2px;color:var(--se-active-dark3-color)}.sun-editor .se-modal-area .se-modal-inner .se-anchor-preview-form .se-link-preview{flex:1;margin:0}.sun-editor .se-modal-area .se-modal-inner .se-anchor-rel{position:relative;height:var(--se-input-btn-size)}.sun-editor .se-modal-area .se-modal-inner .se-anchor-rel-btn{border-width:1px}.sun-editor .se-modal-area .se-modal-inner .se-anchor-rel-wrapper{display:flex;height:var(--se-input-btn-size);line-height:1;padding:0 6px;align-items:center}.sun-editor .se-modal-area .se-modal-inner .se-anchor-rel-preview{word-break:break-word;white-space:pre-wrap;overflow-wrap:break-word;text-align:left}.sun-editor .se-modal-area .se-modal-inner .se-modal-body .se-drawing-canvas{outline:1px solid var(--se-main-outline-color)}.sun-editor .se-controller{position:absolute;display:none;overflow:visible;z-index:2147483646}.sun-editor .se-controller[popover]:popover-open{position:absolute;inset:unset;padding:2px 2px 0;margin:0;border:1px solid var(--se-controller-border-color);text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:var(--se-controller-background-color);color:var(--se-controller-color);-webkit-background-clip:padding-box;background-clip:padding-box;border-radius:var(--se-border-radius);line-break:auto}.sun-editor .se-controller.se-empty-controller{border:none!important;padding:0!important}.sun-editor .se-controller.se-controller-simple-input{padding:4px 3px 0}.sun-editor .se-controller:not(.se-resizing-container){box-shadow:var(--se-shadow-controller)}.sun-editor-editable[contenteditable=true] figure a,.sun-editor-editable[contenteditable=true] figure img,.sun-editor-editable[contenteditable=true] figure iframe,.sun-editor-editable[contenteditable=true] figure video{z-index:0}.sun-editor-editable[contenteditable=true] figure figcaption{display:block;z-index:11}.sun-editor-editable[contenteditable=true]:not(.se-read-only) figure:not(.se-input-component):after{position:absolute;content:"";z-index:10;top:0;left:0;right:0;bottom:0;cursor:default;display:block;background:rgba(0,0,0,0)}.sun-editor-editable[contenteditable=true] .se-component{outline:1px dashed var(--se-main-divider-color)}.sun-editor-editable[contenteditable=true] figure,.sun-editor-editable[contenteditable=true] hr{outline:2px solid transparent}.sun-editor-editable[contenteditable=true] .se-component:not(:has(figure)).se-component-selected,.sun-editor-editable[contenteditable=true] figure.se-component-selected,.sun-editor-editable[contenteditable=true] .se-component.se-component-selected>figure{outline:2px solid var(--se-active-dark-color);transition:outline-color .2s ease-in-out,outline-width .2s ease-in-out}.sun-editor-editable[contenteditable=true] .se-component figure.se-figure-selected:not(.se-figure-over-selected):after{pointer-events:none}.sun-editor-editable[contenteditable=true] .se-copy{background-color:var(--se-main-border-color);opacity:.3;box-shadow:0 0 0 .25rem var(--se-active-dark5-color);transition:box-shadow .15s ease-in-out}.sun-editor-editable[contenteditable=true] .se-component:not(:has(figure)).se-component-selected.se-drag-over,.sun-editor-editable[contenteditable=true] .se-figure-selected.se-drag-over,.sun-editor-editable[contenteditable=true] hr.se-component-selected.se-drag-over{outline:3px solid var(--se-drag-over-color)!important}.sun-editor-editable[contenteditable=true] figure.se-drag-over>iframe{pointer-events:none}.sun-editor .se-controller .se-controller-display{padding:0 10px;margin:4px 0;font-size:var(--se-main-font-size)}.sun-editor .se-controller .se-btn-group{position:relative;display:flex;padding:0 0 2px;margin:0;top:0;left:0}.sun-editor .se-controller .se-btn-group .se-btn-group-sub{left:50%;min-width:auto;width:-webkit-max-content;width:-moz-max-content;width:max-content;display:none}.sun-editor .se-controller .se-btn-group .se-btn-group-sub button{margin:0;min-width:72px}.sun-editor .se-controller .se-btn-group button{position:relative;min-height:var(--se-input-btn-size);height:auto;border:none;border-radius:var(--se-border-radius);margin:1px;font-size:var(--se-btn-font-size);line-height:1.5;display:inline-block;font-weight:400;text-align:center;white-space:nowrap;touch-action:manipulation}.sun-editor .se-controller .se-controller-content{position:relative;padding:0 0 2px;margin:0;top:0;left:0}.sun-editor .se-controller .se-controller-header{width:100%;height:38px;padding:4px;border-bottom:1px solid var(--se-modal-border-color)}.sun-editor .se-controller .se-controller-body{position:relative;font-size:var(--se-main-font-size);width:100%;padding:4px 4px 1px}.sun-editor .se-controller .se-controller-body .se-btn:disabled,.sun-editor .se-controller .se-controller-body button:disabled,.sun-editor .se-controller .se-controller-body input:disabled{background-color:var(--se-main-shadow-color)}.sun-editor .se-controller .se-controller-header .se-close-btn{width:28px;height:28px;min-height:28px;float:right;font-weight:700;text-shadow:0 1px 0 var(--se-main-background-color);filter:alpha(opacity=100);opacity:1}.sun-editor .se-controller .se-controller-header .se-controller-title{float:left;font-size:var(--se-main-font-size);font-weight:700;margin:0;padding:0;line-height:2.2}.sun-editor .se-controller-resizing{font-size:var(--se-controller-font-size);font-style:normal;font-weight:400;line-height:1.4}.sun-editor .se-resizing-container{position:absolute;display:none;outline:none;pointer-events:none;border:0;padding:0;z-index:6;background-color:transparent!important;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden}.sun-editor .se-drag-handle{position:absolute;z-index:2147483646;display:none;pointer-events:auto;cursor:move;width:20px;height:20px;background-color:var(--se-active-dark-color);border:0;padding:1px;color:var(--se-main-background-color);outline:2px solid transparent}.sun-editor .se-drag-handle.se-drag-handle-full{cursor:default}.sun-editor .se-drag-handle>svg{pointer-events:none;max-width:100%;max-height:100%}.sun-editor .se-drag-handle:hover{background-color:var(--se-drag-over-color)}.sun-editor .se-drag-handle.se-dragging{opacity:0}.sun-editor .se-resizing-container .se-resize-dot{position:absolute;display:inline-block;outline:2px solid var(--se-active-dark-color);border:0;padding:0}.sun-editor .se-resizing-container.se-resize-ing .se-resize-dot{outline:2px solid var(--se-active-dark3-color)}.sun-editor .se-resizing-container .se-resize-dot>span{position:absolute;pointer-events:auto;width:7px;height:7px;border-radius:1px;background-color:var(--se-active-dark3-color);border:1px solid var(--se-active-dark3-color)}.sun-editor .se-resizing-container .se-resize-dot>span.tl{top:-6px;left:-6px;border-radius:4px;cursor:nwse-resize}.sun-editor .se-resizing-container .se-resize-dot>span.tr{top:-6px;right:-6px;border-radius:4px;cursor:nesw-resize}.sun-editor .se-resizing-container .se-resize-dot>span.bl{bottom:-6px;left:-6px;border-radius:4px;cursor:nesw-resize}.sun-editor .se-resizing-container .se-resize-dot>span.br{right:-6px;bottom:-6px;border-radius:4px;cursor:nwse-resize}.sun-editor .se-resizing-container .se-resize-dot>span.lw{left:-7px;width:5px;bottom:calc(50% - 4px);cursor:ew-resize}.sun-editor .se-resizing-container .se-resize-dot>span.th{left:calc(50% - 4px);top:-7px;height:5px;cursor:ns-resize}.sun-editor .se-resizing-container .se-resize-dot>span.rw{right:-7px;width:5px;bottom:calc(50% - 4px);cursor:ew-resize}.sun-editor .se-resizing-container .se-resize-dot>span.bh{right:calc(50% - 4px);bottom:-7px;height:5px;cursor:ns-resize}.sun-editor .se-resizing-container .se-resize-display{position:absolute;pointer-events:none;right:0;left:auto;bottom:0;padding:5px;margin:2px;font-size:var(--se-btn-font-size);color:var(--se-main-background-color);background-color:var(--se-main-font-color);border-radius:var(--se-border-radius);opacity:.75}.sun-editor .se-resizing-container.se-resize-ing .se-resize-display{opacity:1}.sun-editor .se-controller-table,.sun-editor .se-controller-table-cell{width:auto;font-size:var(--se-controller-font-size);font-style:normal;font-weight:400;line-height:1.4}.sun-editor .se-controller.se-table-props .se-color-input,.sun-editor .se-controller.se-table-props .se-border-style{width:var(--se-modal-input-width)}.sun-editor .se-controller.se-table-props .__se__border_size{width:52px}.sun-editor .se-controller.se-table-props .se-table-props-align li{margin-right:2px}.sun-editor .se-controller.se-table-props .se-table-props-align .se-form-group div:last-child{flex:auto;margin:0 8px}.sun-editor .se-controller-link{font-size:var(--se-controller-font-size);font-style:normal;font-weight:400;line-height:1.4}.sun-editor .se-controller-link:before,.sun-editor .se-controller-link:after{box-sizing:border-box}.sun-editor .se-controller-link .link-content{padding:0;margin:0}.sun-editor .se-controller-link .link-content a{display:inline-block;color:var(--se-active-dark3-color);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;margin-left:5px}.sun-editor .se-select-menu{position:absolute;min-width:auto;top:0;left:0;z-index:2147483646;display:none;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:auto;overflow-y:visible;overflow-x:visible;overflow:visible;background-color:var(--se-main-background-color);border-radius:var(--se-border-radius-lg);padding:4px 0;margin:0;border:1px solid var(--se-main-divider-color);box-shadow:var(--se-shadow-layer);outline:0 none}.sun-editor .se-select-menu.se-select-menu-scroll{overflow-y:auto}.sun-editor .se-select-menu ul{padding:0;margin:0;word-break:break-all;width:auto;max-width:100%;min-width:-moz-max-content;min-width:-webkit-max-content;min-width:-o-max-content;min-width:-ms-max-content}.sun-editor .se-select-menu .se-select-item{position:relative;list-style:none;line-height:28px;min-height:28px;font-size:var(--se-btn-font-size);padding:0 6px;margin:1px 4px;cursor:pointer;border-radius:var(--se-border-radius);transition:background-color .08s ease}.sun-editor .se-select-menu .se-select-item .se-btn-list{padding:0;margin:0;min-height:28px}.sun-editor .se-select-menu .se-select-item .se-btn-list>span{padding:0;margin:0}.sun-editor .se-select-menu .se-select-item.se-select-on,.sun-editor .se-select-menu .se-select-item *.se-select-on{color:var(--se-active-dark3-color)}.sun-editor .se-select-menu.se-select-menu-mouse-move .se-select-item:hover,.sun-editor .se-select-menu:not(.se-select-menu-mouse-move) .se-select-item.se-select-cursor{background-color:var(--se-select-menu-hover-bg)}.sun-editor .se-select-menu.se-select-menu-mouse-move .se-select-item:active,.sun-editor .se-select-menu.se-select-menu-mouse-move .se-select-item.__se__active{background-color:var(--se-select-menu-active-bg)}.sun-editor .se-select-menu .se-select-item>.se-cmd-row{display:flex;align-items:center;width:100%;min-height:28px;padding:0;margin:0;background:transparent;border:0;color:inherit;font:inherit;line-height:1;text-align:inherit;cursor:pointer}.sun-editor .se-select-menu .se-select-item>.se-cmd-row.active{color:var(--se-active-color)}.sun-editor .se-select-menu .se-select-item>.se-cmd-row:disabled{opacity:.4;cursor:not-allowed}.sun-editor .se-modal-form-files .se-select-menu{width:100%;height:auto}.sun-editor .se-select-menu.se-figure-select-list{width:74px}.sun-editor .se-select-menu .se-has-submenu{position:relative}.sun-editor .se-select-menu .se-select-item:has(>.se-submenu-arrow){padding-right:26px}.sun-editor .se-select-menu.se-block-action-menu .se-select-item:has(>.se-submenu-arrow){padding-right:28px}.sun-editor .se-select-menu .se-submenu-arrow{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:16px;height:16px;display:inline-flex;align-items:center;pointer-events:none;opacity:.8}.sun-editor .se-select-menu .se-submenu-arrow svg{width:100%;height:100%}.sun-editor .se-select-menu>.se-select-submenu{position:absolute;display:none;min-width:100px;background-color:var(--se-main-background-color);border:1px solid var(--se-main-divider-color);border-radius:var(--se-border-radius-lg);padding:4px 0;box-shadow:var(--se-shadow-layer);z-index:1}.sun-editor .se-select-menu>.se-select-submenu[popover]{position:fixed;inset:unset;margin:0;color:inherit}.sun-editor .se-select-menu>.se-select-submenu[popover]:popover-open{display:block}.sun-editor .se-select-menu.se-rtl,.sun-editor .se-select-menu.se-rtl>.se-select-submenu{direction:rtl}.sun-editor .se-select-menu.se-rtl .se-submenu-arrow{right:auto;left:4px}.sun-editor .se-select-menu.se-rtl .se-select-item:has(>.se-submenu-arrow){padding-right:6px;padding-left:26px}.sun-editor .se-select-menu.se-rtl.se-block-action-menu .se-select-item:has(>.se-submenu-arrow){padding-right:10px;padding-left:28px}.sun-editor .se-select-menu.se-rtl .se-block-menu-label-full{padding-left:0;padding-right:22px}.sun-editor .se-browser{position:fixed;display:none;top:0;left:0;width:100%;height:100%;z-index:2147483646}.sun-editor .se-browser label,.sun-editor .se-browser input,.sun-editor .se-browser button{font-size:var(--se-modal-input-font-size);line-height:1.5;color:var(--se-main-color);margin:0}.sun-editor .se-browser .se-browser-back{position:absolute;display:block;width:100%;height:100%;top:0;left:0;background-color:var(--se-overlay-background-color);opacity:.5}.sun-editor .se-browser .se-browser-inner{position:absolute;display:block;width:100%;height:100%;top:0;left:0}.sun-editor .se-browser .se-browser-inner .se-browser-content{position:relative;width:1024px;max-width:100%;margin:20px auto;background-color:var(--se-main-background-color);-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:var(--se-border-radius-lg);outline:0;box-shadow:var(--se-shadow-layer)}.sun-editor .se-browser .se-browser-header{height:auto;min-height:50px;padding:6px 15px;border-bottom:1px solid var(--se-modal-border-color)}.sun-editor .se-browser .se-browser-header .se-browser-close{float:right;font-weight:700;text-shadow:0 1px 0 var(--se-main-background-color);filter:alpha(opacity=100);opacity:1}.sun-editor .se-browser .se-browser-header .se-browser-title{font-size:var(--se-browser-title-font-size);font-weight:700;margin:0;padding:0;line-height:2.2}.sun-editor .se-browser .se-browser-wrapper{display:flex;position:relative}.sun-editor .se-browser .se-browser-main{flex:auto}.sun-editor .se-browser .se-browser-bar{height:auto;padding:0 15px;border-bottom:1px solid var(--se-modal-border-color)}.sun-editor .se-browser .se-browser-side>div{overflow-y:auto}.sun-editor .se-browser .se-browser-side>div:not(.se-side-open-btn){height:100%;padding:4px;border-right:1px solid var(--se-modal-border-color);min-width:220px;flex-direction:row;color:var(--se-edit-font-color);line-height:1.5}.sun-editor .se-browser .se-browser-side .se-menu-icon{display:inline-block;width:16px;height:16px;margin:-1px 10px 0 0;vertical-align:middle}.sun-editor .se-browser .se-browser-search .se-side-open-btn{display:none;margin:8px 0 0 8px;opacity:.8;border:1px solid var(--se-input-btn-border-color);color:var(--se-edit-font-color)}.sun-editor .se-browser .se-browser-side.se-side-show>div{display:block!important}.sun-editor .se-browser .se-browser-side>div .se-menu-hidden{display:none}.sun-editor .se-browser .se-menu-folder{cursor:pointer}.sun-editor .se-browser .se-menu-folder>div:not(.se-menu-child){display:flex;padding:8px 10px 8px 20px}.sun-editor .se-browser .se-menu-folder>div>button{margin-left:-20px}.sun-editor .se-browser .se-menu-folder .se-menu-folder-item{padding:8px 8px 8px 24px}.sun-editor .se-browser .se-menu-folder>div:not(.se-menu-child)>.se-menu-icon>*{padding-top:3px}.sun-editor .se-browser .se-menu-folder .se-menu-folder-item>.se-menu-icon>*{margin-top:-1px}.sun-editor .se-browser .se-menu-folder div:not(.se-menu-child):not(.active):hover{background-color:var(--se-main-divider-color);border-color:var(--se-main-border-color)}.sun-editor .se-browser .se-menu-folder div.active>button{color:var(--se-active-dark5-color)}.sun-editor .se-browser .se-menu-folder div.active,.sun-editor .se-browser .se-browser-search .se-side-open-btn.active{background-color:var(--se-active-light2-color);color:var(--se-active-dark5-color)}.sun-editor .se-browser .se-menu-folder.active{border-left:2px solid var(--se-active-dark4-color);margin-left:-2px}.sun-editor .se-browser .se-browser-tags{display:block;font-size:var(--se-main-font-size);width:100%;padding:0;text-align:left;margin-top:-5px}.sun-editor .se-browser .se-browser-tags a{display:inline-block;background-color:var(--se-main-divider-color);padding:6px 12px;margin:8px 0 8px 8px;color:var(--se-main-font-color);text-decoration:none;border-radius:32px;-moz-border-radius:32px;-webkit-border-radius:32px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;cursor:pointer}.sun-editor .se-browser .se-browser-search{display:flex;font-size:var(--se-main-font-size);width:100%;height:48px;padding:0;text-align:left;margin:0 -15px}.sun-editor .se-browser .se-browser-search .se-browser-search-form{width:400px;max-width:100%;display:flex;flex-direction:row}.sun-editor .se-browser .se-browser-search .se-browser-search-form>*{margin:8px}.sun-editor .se-browser .se-browser-search .se-browser-search-form>.se-btn{margin-left:0;margin-right:0}.sun-editor .se-browser .se-browser-search-input-wrap{position:relative;flex:auto}.sun-editor .se-browser .se-browser-search-input-wrap input{width:100%;padding:3px 24px 3px 6px;background-color:transparent;color:var(--se-main-font-color);text-decoration:none;border-radius:var(--se-border-radius);-moz-border-radius:var(--se-border-radius);-webkit-border-radius:var(--se-border-radius);-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;box-sizing:border-box}.sun-editor .se-browser .se-browser-search-clear{position:absolute;right:2px;top:50%;transform:translateY(-50%);padding:0 2px;opacity:.35}.sun-editor .se-browser .se-browser-search-clear:hover{opacity:.8}.sun-editor .se-browser .se-browser-search button{float:none}.sun-editor .se-browser .se-browser-tags a:hover{background-color:var(--se-main-divider-color);transition:background-color .2s ease-in-out}.sun-editor .se-browser .se-browser-tags a:active{background-color:var(--se-main-border-color)}.sun-editor .se-browser .se-browser-tags a.on{background-color:var(--se-active-light3-color);color:var(--se-active-dark3-color)}.sun-editor .se-browser .se-browser-tags a.on:hover{background-color:var(--se-active-light5-color);transition:background-color .2s ease-in-out}.sun-editor .se-browser .se-browser-tags a.on:active{background-color:var(--se-active-light5-color)}.sun-editor .se-browser .se-browser-body{position:relative;height:auto;min-height:350px;padding:10px;overflow-y:auto}.sun-editor .se-browser .se-browser-body .se-browser-list{position:relative;width:100%}@media screen and (max-width: 992px){.sun-editor .se-browser .se-browser-inner .se-browser-content{width:748px}.sun-editor .se-browser .se-browser-side>div:not(.se-side-open-btn){min-width:180px}}@media screen and (max-width: 768px){.sun-editor .se-browser .se-browser-inner .se-browser-content{width:600px}.sun-editor .se-browser .se-browser-side>div:not(.se-side-open-btn){min-width:150px}}@media screen and (max-width: 552px){.sun-editor .se-browser .se-browser-side>div:not(.se-side-open-btn){display:none}.sun-editor .se-browser .se-browser-search .se-side-open-btn{display:block}.sun-editor .se-browser .se-browser-side{position:absolute;height:calc(100% - 49px);top:49px;z-index:2;background-color:var(--se-main-background-color);opacity:.95}}.sun-editor .se-browser .se-browser-list .se-file-item-column{position:relative;display:block;height:auto;float:left}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-column{width:calc(25% - 20px);margin:0 10px}@media screen and (max-width: 992px){.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-column{width:calc(33% - 20px)}}@media screen and (max-width: 768px){.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-column{width:calc(50% - 20px)}}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img{position:relative;display:block;cursor:pointer;width:100%;height:auto;border-radius:var(--se-border-radius);outline:0;margin:10px 0}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img:hover{opacity:.8;box-shadow:0 0 0 .2rem var(--se-active-color);transition:box-shadow .1s ease-in-out}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img>img{position:relative;display:block;width:100%;border-radius:var(--se-border-radius);outline:0;height:auto}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img>.se-file-name-image{position:absolute;z-index:1;font-size:var(--se-main-font-size);color:var(--se-main-background-color);left:0;bottom:0;padding:5px 10px;background-color:transparent;width:100%;height:30px;border-bottom-right-radius:var(--se-border-radius);border-bottom-left-radius:var(--se-border-radius);pointer-events:none}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img>.se-file-name-image.se-file-name-back{background-color:var(--se-main-font-color);opacity:.6;pointer-events:none}.sun-editor .se-browser .se-file-name-image mark{background-color:var(--se-active-color);color:var(--se-active-font-color);padding:0 1px;border-radius:2px}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img>*{display:flex;justify-content:center;align-items:center}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img>.se-browser-empty-thumbnail{width:100%;height:170px;max-height:100%;background-color:var(--se-active-light-color);border-radius:var(--se-border-radius)}.sun-editor .se-browser .se-browser-list.se-preview-list .se-file-item-img>.se-browser-empty-thumbnail>svg{width:90px;max-width:100%;height:auto;margin-bottom:30px;color:var(--se-active-color)}.sun-editor .se-alert-content{position:relative;z-index:7;max-width:500px;width:auto;height:auto;margin:auto;top:35%;border-radius:var(--se-border-radius);box-shadow:var(--se-shadow-layer);word-break:break-all;background-color:var(--se-main-background-color);padding:15px;border:1px solid rgba(0,0,0,.2);opacity:0;visibility:hidden;transform:scale(.9);transition:opacity .25s ease,transform .25s ease}.sun-editor .se-alert-content.se-modal-show{opacity:1;visibility:visible;transform:scale(1);animation:se-alert-in .25s ease forwards}.sun-editor .se-alert-content button{float:right;padding:0}.sun-editor .se-alert-content.se-alert-success{color:var(--se-success-color);border-color:var(--se-success-light4-color)}.sun-editor .se-alert-content.se-alert-error{color:var(--se-error-color);border-color:var(--se-error-light4-color)}.sun-editor .se-toast{background:transparent;position:fixed;display:none;top:0;left:0;width:100%;height:100%;z-index:2147483646;pointer-events:none}.sun-editor .se-toast .se-toast-container{position:relative;max-width:100%;width:max-content;height:max-content;margin:auto;top:35%;border-radius:var(--se-border-radius);box-shadow:var(--se-shadow-layer);word-break:break-all;background-color:var(--se-main-font-color);color:var(--se-main-background-color);text-align:center;line-height:unset;font-size:.9em;padding:7px;border:1px solid rgba(0,0,0,.2);transform:scale(.9);transition:opacity .25s ease,transform .25s ease;opacity:0;transform:translateY(20px)}.sun-editor .se-toast .se-toast-container.se-toast-show{opacity:1;animation:toast-in .3s ease-out forwards,toast-out .3s ease-in forwards 3s}.sun-editor .se-toast.se-toast-success .se-toast-container{background-color:var(--se-success-color);border-color:var(--se-success-light4-color)}.sun-editor .se-toast.se-toast-error .se-toast-container{background-color:var(--se-error-color);border-color:var(--se-error-light3-color)}.sun-editor input:not(.se-toolbar-btn):focus,.sun-editor select:focus,.sun-editor textarea:focus{border-color:var(--se-active-dark-color);outline:0;box-shadow:0 0 0 .2rem var(--se-active-light3-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.sun-editor .se-tooltip{position:relative;overflow:visible;font-size:var(--se-main-font-size)}.sun-editor .se-tooltip .se-tooltip-inner{visibility:hidden;position:absolute;display:block;width:auto;height:auto;top:120%;left:50%;background:transparent;opacity:0;z-index:1;line-height:1.5;transition:opacity .13s ease;margin:0;padding:0;bottom:auto;float:none;pointer-events:none;backface-visibility:hidden;-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden}.sun-editor .se-tooltip .se-tooltip-inner .se-tooltip-text{position:relative;display:inline-block;width:auto;height:auto;left:-50%;font-size:.9em;margin:0;padding:4px 6px;border-radius:var(--se-border-radius);background-color:var(--se-main-font-color);color:var(--se-main-background-color);text-align:center;line-height:unset;white-space:nowrap;cursor:auto}.sun-editor .se-tooltip .se-tooltip-inner .se-tooltip-text:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent var(--se-main-font-color) transparent}.sun-editor .se-tooltip:hover .se-tooltip-inner{visibility:visible;opacity:1}.sun-editor :not(.se-shortcut-hide) .se-tooltip .se-tooltip-inner .se-tooltip-text .se-shortcut{display:block!important}.sun-editor .se-shortcut-hide .se-tooltip .se-tooltip-inner .se-tooltip-text .se-shortcut{display:none!important}.sun-editor .se-tooltip .se-tooltip-inner .se-tooltip-text .se-shortcut>.se-shortcut-key{display:inline;font-weight:700}.sun-editor input.se-color-input{width:72px;margin:0 2px;border-top:0;border-left:0;border-right:0;border-radius:0;border-bottom:2px solid var(--se-main-outline-color);outline:none;text-transform:uppercase}.sun-editor input.se-color-input::-webkit-input-placeholder{font-size:.9em;text-transform:none}.sun-editor input.se-color-input::-moz-placeholder{font-size:.9em;text-transform:none}.sun-editor input.se-color-input:-ms-input-placeholder{font-size:.9em;text-transform:none}.sun-editor input.se-color-input::-ms-input-placeholder{font-size:.9em;text-transform:none}.sun-editor input.se-color-input::placeholder{font-size:.9em;text-transform:none}.sun-editor input.se-color-input::-webkit-search-cancel-button{-webkit-appearance:none;height:15px;width:15px;background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEzLjQ2LDEyTDE5LDE3LjU0VjE5SDE3LjU0TDEyLDEzLjQ2TDYuNDYsMTlINVYxNy41NEwxMC41NCwxMkw1LDYuNDZWNUg2LjQ2TDEyLDEwLjU0TDE3LjU0LDVIMTlWNi40NkwxMy40NiwxMloiIC8+PC9zdmc+) no-repeat center center;background-size:cover}.sun-editor .se-visible-hidden{visibility:hidden}.sun-editor-editable table td.se-selected-table-cell:after,.sun-editor-editable table th.se-selected-table-cell:after{position:absolute;content:"";background-color:var(--se-active-light3-color);opacity:.3;width:100%;height:100%;bottom:-1px;left:-1px;right:-1px;top:-1px}.sun-editor-editable[contenteditable=true] table td.se-selected-cell-focus,.sun-editor-editable[contenteditable=true] table th.se-selected-cell-focus{outline:2px dashed var(--se-active-dark3-color);z-index:1}.sun-editor-editable pre[data-se-lang]{position:relative}.sun-editor-editable pre[data-se-lang]:before{content:attr(data-se-lang);position:absolute;top:0;right:0;padding:2px 8px;font-size:11px;color:var(--se-secondary-color);opacity:.7;pointer-events:none}.sun-editor-editable[contenteditable=true] pre.se-pre-code-focus{outline:2px solid var(--se-active-color);outline-offset:-2px}.sun-editor-editable pre[data-se-lang].se-pre-code-focus:before{display:none}.sun-editor-editable.se-rtl pre[data-se-lang]:before{right:auto;left:0}.sun-editor .se-code-lang{position:absolute;display:none;padding:0}.sun-editor .se-code-lang-button{display:inline-flex;align-items:center;gap:4px;cursor:pointer;margin:0;padding:4px;font-size:11px;font-family:monospace;line-height:1.4;border-radius:var(--se-border-radius);background-color:var(--se-edit-background-pre, #f9f9f9);border:1px solid var(--se-border-color);color:var(--se-edit-font-pre, #666);opacity:.75;transition:opacity .15s;white-space:nowrap;box-shadow:0}.sun-editor .se-code-lang-button:hover{opacity:1;box-shadow:0 1px 3px #0000001f}.sun-editor .se-code-lang-icon{font-weight:700;font-size:10px;opacity:.5}.sun-editor .se-find-replace{position:sticky;z-index:6;display:none;flex-direction:column;margin-left:auto;width:fit-content;max-width:100%;background-color:var(--se-main-background-color);border:1px solid var(--se-main-border-color);border-top:none;border-right:none;border-radius:0 0 0 var(--se-border-radius);box-shadow:-2px 2px 6px #0000001a;padding:6px 8px;gap:4px}.sun-editor .se-find-replace.se-find-replace-open{display:flex}.sun-editor .se-find-replace-row{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px}.sun-editor .se-find-replace-row-replace{display:flex;justify-content:flex-start}.sun-editor .se-find-replace .se-find-input-wrapper{position:relative;flex:1 1 180px;max-width:420px}.sun-editor .se-find-replace .se-find-replace-input{width:100%;height:26px;padding:2px 100px 2px 6px;border:1px solid var(--se-main-border-color);border-radius:var(--se-border-radius);background-color:var(--se-main-background-color);color:var(--se-main-color);font-size:var(--se-main-font-size);outline:none;box-sizing:border-box}.sun-editor .se-find-replace .se-find-replace-input:focus{border-color:var(--se-active-color);box-shadow:0 0 0 1px var(--se-active-color)}.sun-editor .se-find-replace .se-find-replace-input.se-find-no-match{background-color:var(--se-find-no-match-color, rgba(255, 80, 80, .12))}.sun-editor .se-find-replace .se-find-replace-toggle{position:absolute;right:1px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--se-main-color-lighter);white-space:nowrap;background-color:transparent}.sun-editor .se-find-replace .se-find-replace-toggle>*{display:flex;float:left;align-items:center;justify-content:center;height:24px;margin:0}.sun-editor .se-find-replace .se-find-replace-toggle .se-find-replace-info{padding:0 2px}.sun-editor .se-find-replace .se-find-replace-toggle .se-find-replace-info .se-find-replace-count{color:var(--se-main-color-lighter)}.sun-editor .se-find-replace .se-find-replace-toggle>button.on{border:none}.sun-editor .se-find-replace .se-find-replace-buttons{display:flex;gap:1px;flex-shrink:0}.sun-editor .se-find-replace .se-find-replace-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid transparent;transition:opacity .15s,background-color .15s;font-size:11px}.sun-editor .se-find-replace .se-find-replace-row .se-find-replace-btn{background-color:transparent}.sun-editor .se-find-replace .se-find-replace-btn svg{width:16px;height:16px;fill:currentColor}.sun-editor mark.se-find-mark,.sun-editor-editable mark.se-find-mark{background-color:var(--se-find-match-color, rgba(255, 213, 0, .4));color:inherit;padding:0;margin:0;border-radius:1px}.sun-editor mark.se-find-mark.se-find-current,.sun-editor-editable mark.se-find-mark.se-find-current{background-color:var(--se-find-current-color, rgba(255, 150, 50, .7))}.sun-editor.se-rtl .se-icon-flip-rtl svg,.sun-editor.se-rtl .se-icon-flip-rtl .se-svg{transform:scaleX(-1)}.sun-editor.se-rtl .se-text-prefix-icon{float:right}.sun-editor.se-rtl .se-btn-select svg{margin:auto 1px}.sun-editor.se-rtl .se-find-replace{margin-left:0;margin-right:auto;border-right:1px solid var(--se-main-border-color);border-left:none;border-radius:0 0 var(--se-border-radius) 0;box-shadow:2px 2px 6px #0000001a}.sun-editor.se-rtl .se-find-replace-row{justify-content:flex-start}.sun-editor.se-rtl .se-find-replace-input,.sun-editor.se-rtl .se-input-form,.sun-editor.se-rtl .se-btn-tray,.sun-editor.se-rtl .se-status-bar{direction:rtl}.sun-editor.se-rtl .se-status-bar .se-word-counter-wrapper .se-word-label{margin-right:0;margin-left:4px}.sun-editor.se-rtl .se-status-bar .se-char-counter-wrapper.se-with-word-counter{margin-left:0;margin-right:.6em}.sun-editor.se-rtl .se-btn-select .se-txt{flex:auto;text-align:right;direction:rtl;margin-left:4px}.sun-editor.se-rtl .se-side-btn{float:right}.sun-editor.se-rtl .se-side-btn-b{float:right;margin-right:0;border-radius:var(--se-border-radius) 0 0 var(--se-border-radius)}.sun-editor.se-rtl .se-side-btn-a{float:right;margin-left:0;border-radius:0 var(--se-border-radius) var(--se-border-radius) 0}.sun-editor.se-rtl .se-side-btn-after{margin-right:0;border-radius:var(--se-border-radius) 0 0 var(--se-border-radius)}.sun-editor.se-rtl .se-side-btn-before{float:right;margin-left:0;border-radius:0 var(--se-border-radius) var(--se-border-radius) 0}.sun-editor.se-rtl .se-menu-list li:has(>button.se-side-btn-before) .se-btn-input input{border-top-right-radius:0;border-bottom-right-radius:0}.sun-editor.se-rtl .se-menu-list li:has(>button.se-side-btn-after) .se-btn-input input{border-top-left-radius:0;border-bottom-left-radius:0}.sun-editor.se-rtl .se-menu-list li .se-side-btn-after.on:enabled,.sun-editor.se-rtl .se-menu-list li .se-side-btn-after.active:enabled{border-left:0;border-right:1px solid}.sun-editor.se-rtl .se-menu-list li .se-side-btn-before.on:enabled,.sun-editor.se-rtl .se-menu-list li .se-side-btn-before.active:enabled{border-right:0;border-left:1px solid}.sun-editor.se-rtl .se-btn-list{text-align:right}.sun-editor.se-rtl .se-btn-list>.se-list-icon{margin:-1px 0 0 10px}.sun-editor.se-rtl .se-menu-list:not(.se-menu-dir-fix){float:right}.sun-editor.se-rtl .se-menu-list:not(.se-menu-dir-fix) li{float:right}.sun-editor.se-rtl .se-list-layer *{direction:rtl}.sun-editor.se-rtl .se-list-layer.se-list-format ul blockquote{padding:0 7px 0 0;border-right-width:5px;border-left-width:0;border-top:0;border-bottom:0}.sun-editor.se-rtl .se-select-item .se-list-icon{margin:0 0 0 6px}.sun-editor.se-rtl .se-block-handle{flex-direction:row-reverse}.sun-editor.se-rtl .se-block-menu-icon{margin-right:4px;margin-left:12px}.sun-editor.se-rtl .se-block-submenu-item svg{margin:0 0 0 6px}.sun-editor.se-rtl .se-submenu-arrow svg{transform:scaleX(-1)}.sun-editor.se-rtl .se-list-layer .se-selector-color .se-color-pallet li{float:right}.sun-editor.se-rtl .se-list-layer .se-selector-color .se-color-pallet:first-child li:first-child button{border-top-left-radius:0;border-top-right-radius:var(--se-border-radius)}.sun-editor.se-rtl .se-list-layer .se-selector-color .se-color-pallet:first-child li:last-child button{border-top-right-radius:0;border-top-left-radius:var(--se-border-radius)}.sun-editor.se-rtl .se-list-layer .se-selector-color .se-color-pallet:last-of-type li:first-child button{border-bottom-left-radius:0;border-bottom-right-radius:var(--se-border-radius)}.sun-editor.se-rtl .se-list-layer .se-selector-color .se-color-pallet:last-of-type li:last-child button{border-bottom-right-radius:0;border-bottom-left-radius:var(--se-border-radius)}.sun-editor.se-rtl .se-list-inner .se-list-checked li button>.se-svg{float:right;padding:6px 0 0 6px}.sun-editor.se-rtl .se-wrapper .se-placeholder,.sun-editor.se-rtl .se-tooltip .se-tooltip-inner .se-tooltip-text{direction:rtl}.sun-editor.se-rtl .se-tooltip .se-tooltip-inner .se-tooltip-text .se-shortcut{direction:ltr}.sun-editor.se-rtl .se-modal-area *{direction:rtl}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-form .se-modal-ratio{margin-left:0;margin-right:4px}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-header .se-close-btn{float:left}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-header .se-modal-title{float:right}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-form .se-modal-form-files .se-modal-files-edge-button{margin-left:0;margin-right:1px}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-form .se-modal-flex-form .se-btn{margin-right:0;margin-left:4px}.sun-editor.se-rtl .se-modal-tabs button{float:right}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-size-text{padding-right:var(--se-input-btn-size)}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-form .se-modal-flex-form .se-modal-flex-group{margin-right:0;margin-left:4px;padding-right:4px;padding-left:0}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-footer .se-btn-primary{float:left}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-footer>div{float:right}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-footer>div>label{margin:0 0 0 5px}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-form-footer label:first-child{margin-left:16px;margin-right:0}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-anchor-rel-preview{margin-left:4px;text-align:right}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-btn-revert{float:left}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-anchor-rel-btn{float:right}.sun-editor.se-rtl .se-browser *{direction:rtl}.sun-editor.se-rtl .se-browser .se-browser-tags{text-align:right}.sun-editor.se-rtl .se-browser .se-browser-tags a{margin:8px 8px 0}.sun-editor.se-rtl .se-browser .se-browser-header .se-browser-close{float:left}.sun-editor.se-rtl .se-browser .se-browser-side>div{flex-direction:row-reverse;border-right:none;border-left:1px solid var(--se-modal-border-color)}.sun-editor.se-rtl .se-browser .se-menu-folder>div:not(.se-menu-child){padding:8px 20px 8px 10px}.sun-editor.se-rtl .se-browser .se-menu-folder>div>button{margin-left:0;margin-right:-20px}.sun-editor.se-rtl .se-browser .se-menu-folder.active{border-left:none;margin-left:0;border-right:2px solid var(--se-active-dark4-color);margin-right:-2px}.sun-editor.se-rtl .se-browser .se-browser-search .se-browser-search-form{margin:2px 8px;flex-direction:row-reverse}.sun-editor.se-rtl .se-browser .se-browser-search-input-wrap input{padding:3px 6px 3px 24px}.sun-editor.se-rtl .se-browser .se-browser-search-clear{right:auto;left:2px}.sun-editor.se-rtl .se-browser .se-browser-side .se-menu-icon{margin:0 0 0 10px}.sun-editor.se-rtl .se-browser .se-browser-search .se-side-open-btn{margin:8px 8px 0 0}.sun-editor.se-rtl .se-controller .se-btn-group,.sun-editor.se-rtl .se-controller .se-controller-body{direction:rtl}.sun-editor.se-rtl .se-resizing-container .se-resize-display{direction:rtl;right:auto;left:0}.sun-editor.se-rtl .se-controller .se-controller-header .se-close-btn{float:left}.sun-editor.se-rtl .se-controller .se-controller-header .se-controller-title{float:right}.sun-editor.se-rtl .se-controller.se-table-props .se-table-props-align li{margin-right:0;margin-left:2px}.sun-editor.se-rtl .se-controller .se-arrow{right:20px;left:auto;margin-right:-11px;margin-left:0}.sun-editor-editable.se-rtl[contenteditable=true].se-copy-format-cursor{cursor:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDE2Ij4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9IndoaXRlLW91dGxpbmUiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICAgIDxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9ImRpbGF0ZWQiIG9wZXJhdG9yPSJkaWxhdGUiIHJhZGl1cz0iMSIvPgogICAgICA8ZmVGbG9vZCBmbG9vZC1jb2xvcj0id2hpdGUiIHJlc3VsdD0id2hpdGUiLz4KICAgICAgPGZlQ29tcG9zaXRlIGluPSJ3aGl0ZSIgaW4yPSJkaWxhdGVkIiBvcGVyYXRvcj0iaW4iIHJlc3VsdD0ib3V0bGluZSIvPgogICAgICA8ZmVNZXJnZT4KICAgICAgICA8ZmVNZXJnZU5vZGUgaW49Im91dGxpbmUiLz4KICAgICAgICA8ZmVNZXJnZU5vZGUgaW49IlNvdXJjZUdyYXBoaWMiLz4KICAgICAgPC9mZU1lcmdlPgogICAgPC9maWx0ZXI+CiAgPC9kZWZzPgogIDxnIGZpbHRlcj0idXJsKCN3aGl0ZS1vdXRsaW5lKSIgdHJhbnNmb3JtPSJzY2FsZSgtMSwxKSB0cmFuc2xhdGUoLTI0LDApIj4KICAgIDxwYXRoCiAgICAgIGQ9Ik00LjMzMiAxMi42NjgKICAgICAgICAgQzQuMzMyIDEzLjAzNSA0LjQ4NCAxMy4zMzIgNC42NjggMTMuMzMyCiAgICAgICAgIEw1LjMzMiAxMy4zMzIKICAgICAgICAgTDUuMzMyIDE0LjY2OAogICAgICAgICBMNC41IDE0LjY2OAogICAgICAgICBDNC4zMTYgMTQuNjY4IDQgMTQuMzY3IDQgMTQKICAgICAgICAgQzQgMTQuMzY3IDMuNjg0IDE0LjY2OCAzLjUgMTQuNjY4CiAgICAgICAgIEwyLjY2OCAxNC42NjgKICAgICAgICAgTDIuNjY4IDEzLjMzMgogICAgICAgICBMMy4zMzIgMTMuMzMyCiAgICAgICAgIEMzLjUxNiAxMy4zMzIgMy42NjggMTMuMDM1IDMuNjY4IDEyLjY2OAogICAgICAgICBMMy42NjggMy4zMzIKICAgICAgICAgQzMuNjY4IDIuOTY1IDMuNTE2IDIuNjY4IDMuMzMyIDIuNjY4CiAgICAgICAgIEwyLjY2OCAyLjY2OAogICAgICAgICBMMi42NjggMS4zMzIKICAgICAgICAgTDMuNSAxLjMzMgogICAgICAgICBDMy42ODQgMS4zMzIgNCAxLjYzMyA0IDIKICAgICAgICAgQzQgMS42MzMgNC4zMTYgMS4zMzIgNC41IDEuMzMyCiAgICAgICAgIEw1LjMzMiAxLjMzMgogICAgICAgICBMNS4zMzIgMi42NjgKICAgICAgICAgTDQuNjY4IDIuNjY4CiAgICAgICAgIEM0LjQ4NCAyLjY2OCA0LjMzMiAyLjk2NSA0LjMzMiAzLjMzMgogICAgICAgICBaIgogICAgICBmaWxsPSJibGFjayIKICAgIC8+CiAgICA8cGF0aAogICAgICBkPSJNMjAgMi42NjgKICAgICAgICAgTDIwIDIKICAgICAgICAgQzIwIDEuNjMzIDE5LjcwMyAxLjMzMiAxOS4zMzIgMS4zMzIKICAgICAgICAgTDExLjMzMiAxLjMzMgogICAgICAgICBDMTAuOTY1IDEuMzMyIDEwLjY2OCAxLjYzMyAxMC42NjggMgogICAgICAgICBMMTAuNjY4IDQuNjY4CiAgICAgICAgIEMxMC42NjggNS4wMzUgMTAuOTY1IDUuMzMyIDExLjMzMiA1LjMzMgogICAgICAgICBMMTkuMzMyIDUuMzMyCiAgICAgICAgIEMxOS43MDMgNS4zMzIgMjAgNS4wMzUgMjAgNC42NjgKICAgICAgICAgTDIwIDQKICAgICAgICAgTDIwLjY2OCA0CiAgICAgICAgIEwyMC42NjggNi42NjgKICAgICAgICAgTDE0IDYuNjY4CiAgICAgICAgIEwxNCAxNAogICAgICAgICBDMTQgMTQuMzY3IDE0LjI5NyAxNC42NjggMTQuNjY4IDE0LjY2OAogICAgICAgICBMMTYgMTQuNjY4CiAgICAgICAgIEMxNi4zNjcgMTQuNjY4IDE2LjY2OCAxNC4zNjcgMTYuNjY4IDE0CiAgICAgICAgIEwxNi42NjggOAogICAgICAgICBMMjIgOAogICAgICAgICBMMjIgMi42NjgKICAgICAgICAgWiIKICAgICAgZmlsbD0iYmxhY2siCiAgICAvPgogIDwvZz4KPC9zdmc+Cg==) 24 0,text}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner{padding-left:var(--se-doc-info-inner-line-padding);padding-right:var(--se-doc-info-inner-padding);direction:rtl}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h1{padding-left:var(--se-doc-info-inner-line-padding);padding-right:var(--se-doc-info-inner-line-indent-h1)}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h2{padding-left:var(--se-doc-info-inner-line-padding);padding-right:var(--se-doc-info-inner-line-indent-h2)}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h3{padding-left:var(--se-doc-info-inner-line-padding);padding-right:var(--se-doc-info-inner-line-indent-h3)}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h4{padding-left:var(--se-doc-info-inner-line-padding);padding-right:var(--se-doc-info-inner-line-indent-h4)}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h5{padding-left:var(--se-doc-info-inner-line-padding);padding-right:var(--se-doc-info-inner-line-indent-h5)}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-lines .se-document-lines-inner>div.se-doc-h6{padding-left:var(--se-doc-info-inner-line-padding);padding-right:var(--se-doc-info-inner-line-indent-h6)}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-page{direction:rtl}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-page>div{right:0;left:revert;margin-left:0;margin-right:1px}.sun-editor.se-rtl .se-wrapper.se-type-document .se-document-page>div>div.se-document-page-line{right:unset;left:100%}.sun-editor.se-rtl .se-wrapper.se-type-document.se-type-document-header .se-placeholder{margin-left:0;margin-right:max(var(--se-doc-info-min-width),var(--se-doc-info-width))}.sun-editor.se-rtl .se-wrapper.se-type-document.se-mode-block .se-placeholder{margin-left:0;margin-right:var(--se-block-handle-area-width)}.sun-editor.se-rtl .se-wrapper.se-type-document.se-mode-block.se-type-document-header .se-placeholder{margin-left:0;margin-right:calc(var(--se-block-handle-area-width) + max(var(--se-doc-info-min-width),var(--se-doc-info-width)))}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-footer .se-btn{float:right}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-h{left:0;right:unset}.sun-editor.se-rtl .se-modal-area .se-modal-inner .se-modal-content .se-modal-resize-handle-c{cursor:nesw-resize;left:4px;right:unset}.sun-editor.se-rtl .se-selector-table .se-table-size-picker,.sun-editor.se-rtl .se-selector-table .se-table-size-unhighlighted{right:0}.sun-editor.se-rtl .se-selector-table .se-table-size-highlighted{right:5px}.sun-editor .se-btn-module-border.module-float-left{float:left}.sun-editor .se-btn-module-border.module-float-right{float:right}.sun-editor .se-wrapper.se-type-document.se-source-view-status{padding:0}.sun-editor .se-wrapper.se-type-document.se-source-view-status .se-document-lines,.sun-editor .se-wrapper.se-type-document.se-source-view-status .se-document-pages{display:none}.sun-editor .se-error{color:var(--se-error-color)}.sun-editor input.se-error,.sun-editor select.se-error,.sun-editor textarea.se-error{border:1px solid var(--se-error-dark2-color)!important}.sun-editor input.se-error:focus,.sun-editor select.se-error:focus,.sun-editor textarea.se-error:focus{border:1px solid var(--se-error-color)!important;outline:0;box-shadow:0 0 0 .2rem var(--se-error-light2-color);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.sun-editor hr.__se__solid{border-style:solid none none}.sun-editor hr.__se__dotted{border-style:dotted none none}.sun-editor hr.__se__dashed{border-style:dashed none none}.sun-editor .se-select-menu .se-select-item .se-autocomplete-item span+span{margin:0 4px;opacity:.5}.sun-editor .se-slash-command-menu .se-slash-empty{display:block;padding:6px 10px;opacity:.6;font-size:12px}.sun-editor-editable.se-show-block p,.sun-editor-editable.se-show-block div,.sun-editor-editable.se-show-block h1,.sun-editor-editable.se-show-block h2,.sun-editor-editable.se-show-block h3,.sun-editor-editable.se-show-block h4,.sun-editor-editable.se-show-block h5,.sun-editor-editable.se-show-block h6,.sun-editor-editable.se-show-block li,.sun-editor-editable.se-show-block ol,.sun-editor-editable.se-show-block ul,.sun-editor-editable.se-show-block pre{border:1px dashed var(--se-show-blocks-color)!important;padding:14px 8px 8px!important}.sun-editor-editable.se-show-block ol,.sun-editor-editable.se-show-block ul{border:1px dashed var(--se-show-blocks-li-color)!important}.sun-editor-editable.se-show-block pre{border:1px dashed var(--se-show-blocks-pre-color)!important}.sun-editor-editable.se-show-block div.se-component{border:1px dashed var(--se-show-blocks-component-color)!important;padding:1px!important}.sun-editor-editable.se-show-block p{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPAQMAAAAF7dc0AAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAaSURBVAjXY/j/gwGCPvxg+F4BQiAGDP1HQQByxxw0gqOzIwAAAABJRU5ErkJggg==) no-repeat}.sun-editor-editable.se-show-block div:not(.se-component){background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAPAQMAAAAxlBYoAAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAmSURBVAjXY/j//wcDDH+8XsHwDYi/hwNx1A8w/nYLKH4XoQYJAwCXnSgcl2MOPgAAAABJRU5ErkJggg==) no-repeat}.sun-editor-editable.se-show-block h1{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAPAQMAAAA4f7ZSAAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAfSURBVAjXY/j/v4EBhr+9B+LzEPrDeygfhI8j1CBhAEhmJGY4Rf6uAAAAAElFTkSuQmCC) no-repeat}.sun-editor-editable.se-show-block h2{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAPAQMAAAA4f7ZSAAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAmSURBVAjXY/j/v4EBhr+dB+LtQPy9geEDEH97D8T3gbgdoQYJAwA51iPuD2haEAAAAABJRU5ErkJggg==) no-repeat}.sun-editor-editable.se-show-block h3{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAPAQMAAAA4f7ZSAAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAiSURBVAjXY/j/v4EBhr+dB+LtQPy9geHDeQgN5p9HqEHCADeWI+69VG2MAAAAAElFTkSuQmCC) no-repeat}.sun-editor-editable.se-show-block h4{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAPAQMAAADTSA1RAAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAiSURBVAjXY/j//wADDH97DsTXIfjDdiDdDMTfIRhZHRQDAKJOJ6L+K3y7AAAAAElFTkSuQmCC) no-repeat}.sun-editor-editable.se-show-block h5{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAPAQMAAAA4f7ZSAAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAlSURBVAjXY/j/v4EBhr+1A/F+IO5vYPiwHUh/B2IQfR6hBgkDABlWIy5uM+9GAAAAAElFTkSuQmCC) no-repeat}.sun-editor-editable.se-show-block h6{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAPAQMAAAA4f7ZSAAAABlBMVEWAgID////n1o2sAAAAAnRSTlP/AOW3MEoAAAAiSURBVAjXY/j/v4EBhr+dB+LtQLy/geFDP5S9HSKOrA6KAR9GIza1ptJnAAAAAElFTkSuQmCC) no-repeat}.sun-editor-editable.se-show-block li{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAYAAADkmO9VAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA7SURBVDhPYxgFcNDQ0PAfykQBIHEYhgoRB/BpwCfHBKWpBkaggYxQGgOgBzyQD1aLLA4TGwWDGjAwAACR3RcEU9Ui+wAAAABJRU5ErkJggg==) no-repeat}.sun-editor-editable.se-show-block ol{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAABHSURBVDhPYxgFcNDQ0PAfhKFcFIBLHCdA1oBNM0kGEmMAPgOZoDTVANUNxAqQvURMECADRiiNAWCagDSGGhyW4DRrMAEGBgAu0SX6WpGgjAAAAABJRU5ErkJggg==) no-repeat}.sun-editor-editable.se-show-block ul{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA1SURBVDhPYxgFDA0NDf+hTBSALI5LDQgwQWmqgVEDKQcsUBoF4ItFGEBXA+QzQpmDGjAwAAA8DQ4Lni6gdAAAAABJRU5ErkJggg==) no-repeat}.sun-editor.sun-editor-carrier-wrapper{position:static!important;display:block!important;width:0!important;height:0!important;border:none!important;outline:none!important;margin:0!important;padding:0!important}.sun-editor.sun-editor-carrier-wrapper .se-drag-cursor{position:absolute;display:none;pointer-events:none;width:2px;background-color:var(--se-drag-caret-color);z-index:2147483646}.sun-editor.sun-editor-carrier-wrapper .se-drag-cursor:before{content:"";top:-3px;position:absolute;background-color:transparent;width:0;height:0;border:0px solid transparent;margin-right:0;margin-left:-4px;border-width:6px 5px 0 5px;border-color:var(--se-drag-caret-color) transparent transparent transparent}.sun-editor.sun-editor-carrier-wrapper .se-drag-cursor:after{content:"";bottom:-3px;position:absolute;background-color:transparent;width:0;height:0;border:0px solid transparent;margin-right:0;margin-left:-4px;border-width:0 5px 5px 5px;border-color:transparent transparent var(--se-drag-caret-color) transparent}.sun-editor-editable[contenteditable=true] .se-page-break{display:flex;visibility:visible!important;position:relative;align-items:center;justify-content:center;clear:both;width:100%;height:24px;margin:0;padding:0;z-index:1}.sun-editor-editable[contenteditable=true] .se-page-break:after{content:"⎯⎯⎯⎯⎯⎯";position:absolute;top:0;background:transparent;padding:0 5px;color:var(--se-doc-info-page-background-color);font-size:var(--se-main-font-size)}@-webkit-keyframes blinker{50%{opacity:0}}@keyframes blinker{50%{opacity:0}}@-webkit-keyframes spinner{to{transform:rotate(361deg)}}@keyframes spinner{to{transform:rotate(361deg)}}@keyframes toast-in{to{opacity:1;transform:translateY(0)}}@keyframes toast-out{to{opacity:0;transform:translateY(-10px)}}@keyframes se-alert-in{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes se-alert-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}.sun-editor,.sun-editor-editable{--se-caret-color: #333;--se-drag-caret-color: #4592ff;--se-placeholder-color: #bbb;--se-edit-font-color: #333;--se-edit-font-pre: #666;--se-edit-font-quote: #999;--se-edit-background-color: #fff;--se-edit-background-pre: #f9f9f9;--se-edit-border-light: #e1e1e1;--se-edit-border-dark: #b1b1b1;--se-edit-border-dark-n1: #c1c1c1;--se-edit-border-dark-n2: #d1d1d1;--se-edit-border-table: #cecece;--se-edit-anchor: #0056b3;--se-edit-anchor-on-back: #e8f7ff;--se-edit-anchor-on-font: #0093ff;--se-edit-hr-color: #333;--se-edit-hr-on-back: #c7deff;--se-edit-active: #4592ff;--se-edit-hover: #e0f4ff;--se-edit-outline: #9e9e9e;--se-main-out-color: #dadada;--se-main-color: #18181b;--se-main-color-lighter: #4c4c4d;--se-main-background-color: #fff;--se-code-view-color: #24292f;--se-main-font-color: #333;--se-code-view-background-color: #fff;--se-code-view-line-color: #57606a;--se-code-view-line-background-color: #f6f8fa;--se-markdown-view-color: #24292f;--se-markdown-view-background-color: #fff;--se-markdown-view-line-color: #57606a;--se-markdown-view-line-background-color: #f6f8fa;--se-main-divider-color: #e1e1e1;--se-main-border-color: #d1d1d1;--se-main-outline-color: #b1b1b1;--se-main-shadow-color: #ececec;--se-statusbar-font-color: #666;--se-overlay-background-color: #000;--se-find-match-color: rgba(255, 213, 0, .4);--se-find-current-color: rgba(255, 150, 50, .7);--se-find-no-match-color: rgba(255, 80, 80, .12);--se-hover-color: #000;--se-hover-dark-color: #cccccc;--se-hover-dark2-color: #bfbfbf;--se-hover-dark3-color: #b0b0b0;--se-hover-light-color: #e1e1e1;--se-hover-light2-color: #e6e6e6;--se-hover-light3-color: #d9d9d9;--se-active-color: #5cd2e6;--se-active-hover-color: #2964b7;--se-active-dark-color: #80bdff;--se-active-dark2-color: #407dd1;--se-active-dark3-color: #4592ff;--se-active-dark4-color: #3f9dff;--se-active-dark5-color: #1275ff;--se-active-light-color: #e6f2ff;--se-active-light2-color: #eaf3ff;--se-active-light3-color: #d0e3ff;--se-active-light4-color: #dbeaff;--se-active-light5-color: #c4ddff;--se-active-light6-color: #b7ccf2;--se-shadow-layer-color: rgba(0, 0, 0, .25);--se-shadow-layer: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .12);--se-shadow-controller: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .12);--se-drag-over-color: #f0c20a;--se-block-handle-color: var(--se-main-color-lighter);--se-block-handle-btn-hover-bg: rgba(55, 53, 47, .08);--se-block-handle-btn-active-bg: rgba(55, 53, 47, .14);--se-block-hover-bg: rgba(55, 53, 47, .04);--se-block-hover-outline: rgba(55, 53, 47, .04);--se-block-drag-indicator-color: var(--se-active-dark3-color);--se-select-menu-hover-bg: #eef3f9;--se-select-menu-active-bg: #dde7f3;--se-modal-background-color: #fff;--se-modal-color: #333;--se-modal-border-color: #e5e5e5;--se-modal-anchor-color: #004cff;--se-modal-preview-color: #666;--se-modal-file-input-background-color: #f9f9f9;--se-modal-input-disabled-color: #999;--se-modal-input-disabled-background-color: #f3f3f3;--se-dropdown-font-color: #555;--se-controller-border-color: #999;--se-controller-background-color: #fff;--se-controller-color: #333;--se-shadow-controller-color: rgba(0, 0, 0, .2);--se-input-btn-border-color: #ccc;--se-input-btn-disabled-color: #bdbdbd;--se-table-picker-color: #f5f5f5;--se-table-picker-border-color: #ddd;--se-table-picker-highlight-color: #cce0ff;--se-table-picker-highlight-border-color: #90b5e2;--se-success-color: #008000;--se-success-dark-color: #628562;--se-success-dark2-color: #419c41;--se-success-dark3-color: #006c00;--se-success-light-color: #dff4e6;--se-success-light2-color: #d5f3e0;--se-success-light3-color: #c1f4d3;--se-success-light4-color: #769c76;--se-success-light5-color: #89b589;--se-error-color: #b94a48;--se-error-dark-color: #e1a6a2;--se-error-dark2-color: #db8d8c;--se-error-dark3-color: #d17872;--se-error-light-color: #f5d0c8;--se-error-light2-color: #eed3d7;--se-error-light3-color: #f2dede;--se-error-light4-color: #f7deda;--se-error-light5-color: #f8e3e1;--se-doc-background: #f2f5fa;--se-doc-info-page-font-color: #f5f5f5;--se-doc-info-page-background-color: #b1b1b1;--se-doc-info-font-color: #4c4c4c;--se-doc-info-active-color: #4a32ff;--se-loading-color: #07d;--se-show-blocks-color: #3f9dff;--se-show-blocks-li-color: #d539ff;--se-show-blocks-pre-color: #34c38f;--se-show-blocks-component-color: #f4b124}.sun-editor,.sun-editor-editable{--se-edit-inner-padding: 1.5em;--se-edit-inner-padding-doc-type: 2.5rem;--se-edit-scroll-margin: 3em;--se-border-radius: 6px;--se-border-radius-lg: 8px;--se-min-height: 65px;--se-scroll-padding: 2em;--se-modal-input-width: 70px;--se-input-btn-size: 32px;--se-icon-size: 18px;--se-icon-size-command-menu: 16px;--se-block-handle-area-width: 52px;--se-block-handle-btn-size: 24px;--se-block-handle-btn-icon-size: 18px;--se-block-handle-gap: 1px;--se-block-drag-indicator-height: 2px;--se-doc-min-padding: 1rem;--se-doc-max-padding: 1.5rem;--se-doc-padding-factor: .5;--se-doc-info-width: 18%;--se-doc-info-min-width: 16ch;--se-doc-info-inner-padding: 2ch;--se-doc-info-inner-line-padding: .5ch;--se-doc-info-page-width: 16px;--se-doc-info-inner-line-indent-h1: 0em;--se-doc-info-inner-line-indent-h2: .4em;--se-doc-info-inner-line-indent-h3: .8em;--se-doc-info-inner-line-indent-h4: 1.2em;--se-doc-info-inner-line-indent-h5: 1.6em;--se-doc-info-inner-line-indent-h6: 2em}.sun-editor,.sun-editor-editable{--se-edit-font-size: 16px;--se-edit-line-height: 1.5em;--se-main-font-family: Helvetica Neue;--se-content-font-family: Helvetica Neue;--se-main-font-size: 14px;--se-markdown-font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--se-codeview-font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;--se-btn-font-size: 14px;--se-statusbar-font-size: 12px;--se-modal-title-font-size: 15px;--se-modal-input-font-size: 14px;--se-browser-title-font-size: 16px;--se-controller-font-size: 14px;--se-doc-info-font-size: 14px;--se-doc-info-inner-line-weight-h1: 700;--se-doc-info-inner-line-weight-h2: 500;--se-doc-info-inner-line-weight-h3: 400;--se-doc-info-inner-line-weight-h4: 300;--se-doc-info-inner-line-weight-h5: 300;--se-doc-info-inner-line-weight-h6: 300}.sun-editor-editable{box-sizing:border-box;font-family:var(--se-content-font-family);font-size:var(--se-edit-font-size);color:var(--se-edit-font-color);background-color:var(--se-edit-background-color);word-break:normal;word-wrap:break-word;padding:var(--se-edit-inner-padding);margin:0}.sun-editor-editable *{box-sizing:border-box;font-family:inherit;font-size:inherit;color:inherit;line-height:var(--se-edit-line-height)}.sun-editor-editable.se-type-document-editable-a4,.sun-editor-editable.se-document-page-mirror-a4{width:21cm!important;padding:var(--se-edit-inner-padding-doc-type)}.sun-editor-editable.se-rtl,.sun-editor-editable.se-rtl *{direction:rtl}.sun-editor-editable .se-component>figure{direction:initial}.sun-editor-editable .se-component>figure>*{margin:0}.sun-editor-editable .se-component>figure>blockquote{margin:0;position:relative;min-height:100px}.sun-editor-editable .se-component>figure>blockquote:before{display:block;content:"";position:absolute;top:50%;left:50%;width:30px;height:30px;border:3px solid #f3f3f3;border-top:3px solid #3498db;border-radius:50%;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes spin{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.sun-editor-editable td,.sun-editor-editable th,.sun-editor-editable figure,.sun-editor-editable figcaption,.sun-editor-editable img,.sun-editor-editable iframe,.sun-editor-editable video,.sun-editor-editable audio{position:relative}.sun-editor-editable span{display:inline;vertical-align:baseline;margin:0;padding:0}.sun-editor-editable span.se-math{display:inline-block}.sun-editor-editable span.se-math *{direction:ltr}.sun-editor-editable span>.MathJax{margin:.5em 0!important}.sun-editor-editable a{color:var(--se-edit-anchor);text-decoration:none;white-space:nowrap}.sun-editor-editable span[style~="color:"] a{color:inherit}.sun-editor-editable a:hover,.sun-editor-editable a:focus{cursor:pointer;color:var(--se-edit-anchor-on-font);text-decoration:underline}.sun-editor-editable a.on{color:var(--se-edit-anchor-on-font);background-color:var(--se-edit-anchor-on-back)}.sun-editor-editable a[data-se-anchor]{cursor:default;display:inline-block;height:20px;width:20px;padding:0 10px;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSI+CjxnIGlkPSJzdXJmYWNlMSI+CjxwYXRoIHN0eWxlPSIgc3Ryb2tlOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87ZmlsbDpyZ2IoMCUsMCUsMCUpO2ZpbGwtb3BhY2l0eToxOyIgZD0iTSAxNC4xNjc5NjkgMTUgTCAxMCAxMy4xODM1OTQgTCA1LjgzMjAzMSAxNSBMIDUuODMyMDMxIDQuMTY3OTY5IEwgMTQuMTY3OTY5IDQuMTY3OTY5IE0gMTQuMTY3OTY5IDIuNSBMIDUuODMyMDMxIDIuNSBDIDQuOTE0MDYyIDIuNSA0LjE2Nzk2OSAzLjI0NjA5NCA0LjE2Nzk2OSA0LjE2Nzk2OSBMIDQuMTY3OTY5IDE3LjUgTCAxMCAxNSBMIDE1LjgzMjAzMSAxNy41IEwgMTUuODMyMDMxIDQuMTY3OTY5IEMgMTUuODMyMDMxIDMuMjQyMTg4IDE1LjA4MjAzMSAyLjUgMTQuMTY3OTY5IDIuNSBaIE0gMTQuMTY3OTY5IDIuNSAiLz4KPC9nPgo8L3N2Zz4K) no-repeat;vertical-align:bottom}.sun-editor-editable pre{display:block;padding:8px;margin:0 0 10px;font-family:monospace;color:var(--se-edit-font-pre);line-height:1.45;background-color:var(--se-edit-background-pre);border:1px solid var(--se-edit-border-light);border-radius:2px;white-space:pre-wrap!important;word-wrap:break-word;overflow:visible}.sun-editor-editable ol{list-style-position:inside;display:block;list-style-type:decimal;-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;-webkit-padding-start:40px;padding-inline-start:40px}.sun-editor-editable ul{list-style-position:inside;display:block;list-style-type:disc;-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;-webkit-padding-start:40px;padding-inline-start:40px}.sun-editor-editable li{display:list-item;text-align:-webkit-match-parent;margin-bottom:5px}.sun-editor-editable ol ol,.sun-editor-editable ol ul,.sun-editor-editable ul ol,.sun-editor-editable ul ul{margin:0}.sun-editor-editable ol ol,.sun-editor-editable ul ol{list-style-type:lower-alpha}.sun-editor-editable ol ol ol,.sun-editor-editable ul ol ol,.sun-editor-editable ul ul ol{list-style-type:upper-roman}.sun-editor-editable ul ul,.sun-editor-editable ol ul{list-style-type:circle}.sun-editor-editable ul ul ul,.sun-editor-editable ol ul ul,.sun-editor-editable ol ol ul{list-style-type:square}.sun-editor-editable sub,.sun-editor-editable sup{font-size:75%;line-height:0}.sun-editor-editable sub{vertical-align:sub}.sun-editor-editable sup{vertical-align:super}.sun-editor-editable p{display:block;margin:0 0 10px}.sun-editor-editable div{display:block;margin:0;padding:0}.sun-editor-editable blockquote{display:block;font-family:inherit;font-size:inherit;color:var(--se-edit-font-quote);-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:0;margin-inline-end:0;border-style:solid;border-width:0;border-color:var(--se-edit-border-dark);padding:0 5px 0 20px;border-left-width:5px;border-right-width:0px}.sun-editor-editable blockquote blockquote{border-color:var(--se-edit-border-dark-n1)}.sun-editor-editable blockquote blockquote blockquote{border-color:var(--se-edit-border-dark-n2)}.sun-editor-editable blockquote blockquote blockquote blockquote{border-color:var(--se-edit-border-light)}.sun-editor-editable.se-rtl blockquote{padding-left:5px;padding-right:20px;border-left-width:0px;border-right-width:5px}.sun-editor-editable h1{display:block;font-size:2em;-webkit-margin-before:.67em;margin-block-start:.67em;-webkit-margin-after:.67em;margin-block-end:.67em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;font-weight:700}.sun-editor-editable h2{display:block;font-size:1.5em;-webkit-margin-before:.83em;margin-block-start:.83em;-webkit-margin-after:.83em;margin-block-end:.83em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;font-weight:700}.sun-editor-editable h3{display:block;font-size:1.17em;-webkit-margin-before:1em;margin-block-start:1em;-webkit-margin-after:1em;margin-block-end:1em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;font-weight:700}.sun-editor-editable h4{display:block;font-size:1em;-webkit-margin-before:1.33em;margin-block-start:1.33em;-webkit-margin-after:1.33em;margin-block-end:1.33em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;font-weight:700}.sun-editor-editable h5{display:block;font-size:.83em;-webkit-margin-before:1.67em;margin-block-start:1.67em;-webkit-margin-after:1.67em;margin-block-end:1.67em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;font-weight:700}.sun-editor-editable h6{display:block;font-size:.67em;-webkit-margin-before:2.33em;margin-block-start:2.33em;-webkit-margin-after:2.33em;margin-block-end:2.33em;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;font-weight:700}.sun-editor-editable hr{display:flex;border-width:1px 0 0;border-color:var(--se-edit-hr-color);-o-border-image:initial;border-image:initial;height:20px;margin-top:20px;margin-bottom:0}.sun-editor-editable hr.__se__solid{border-style:solid none none}.sun-editor-editable hr.__se__dotted{border-style:dotted none none}.sun-editor-editable hr.__se__dashed{border-style:dashed none none}.sun-editor-editable hr.on{border-color:var(--se-edit-active);box-shadow:0 0 0 .1rem var(--se-edit-hr-on-back)}.sun-editor-editable table{display:table;table-layout:auto!important;border-width:1px;border-style:solid;border-color:var(--se-edit-border-table);width:100%;max-width:100%;margin:0;background-color:var(--se-edit-background-color);border-spacing:0;border-collapse:collapse}.sun-editor-editable.se-rtl table{margin:0 0 10px auto;background-color:var(--se-edit-background-color)}.sun-editor-editable table caption{caption-side:initial;text-align:unset;padding:.5em;margin:0;background-color:var(--se-edit-background-pre);border:1px solid var(--se-edit-border-table);outline:none}.sun-editor-editable table caption.se-table-caption-top{caption-side:top;border-bottom:0}.sun-editor-editable table caption.se-table-caption-bottom{caption-side:bottom;border-top:0}.sun-editor-editable table thead{border-bottom:2px solid var(--se-edit-font-color)}.sun-editor-editable table tr{position:relative;box-sizing:border-box}.sun-editor-editable table th{background-color:#f3f3f3}.sun-editor-editable table th,.sun-editor-editable table td{position:relative;border-width:1px;border-style:solid;border-color:var(--se-edit-border-table);padding:.4em;background-clip:padding-box;background-color:inherit;vertical-align:middle;min-width:2em}.sun-editor-editable table.se-table-layout-fixed{table-layout:fixed!important}.sun-editor-editable.se-disabled *{user-select:none;-o-user-select:none;-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none}.sun-editor-editable .se-component:not(.se-input-component),.sun-editor-editable hr{-webkit-user-modify:read-only;-moz-user-modify:read-only;-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}.sun-editor-editable figure figcaption{-webkit-user-modify:read-write;-moz-user-modify:read-write;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.sun-editor-editable .se-component{display:flex;padding:1px;margin:0 0 10px;background-color:inherit}.sun-editor-editable .se-component.se-file-figure>figure{padding:1em;outline:1px solid #bbb}.sun-editor-editable .se-component.se-file-figure>figure>a[data-se-file-download]{color:var(--se-edit-font-color);margin:0 4px}.sun-editor-editable .se-component.se-file-figure>figure>a:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTIwLDE4SDRWOEgyME0yMCw2SDEyTDEwLDRINEMyLjg5LDQgMiw0Ljg5IDIsNlYxOEEyLDIgMCAwLDAgNCwyMEgyMEEyLDIgMCAwLDAgMjIsMThWOEMyMiw2Ljg5IDIxLjEsNiAyMCw2WiIgLz48L3N2Zz4=);display:inline-block;width:1.5em;height:auto;vertical-align:middle}.sun-editor-editable .__se__float-left{float:left;margin-right:4px}.sun-editor-editable .__se__float-right{float:right;margin-left:4px}.sun-editor-editable .__se__float-center{float:center}.sun-editor-editable .__se__float-none{float:none}.sun-editor-editable img,.sun-editor-editable iframe,.sun-editor-editable video,.sun-editor-editable audio{display:block;margin:0;padding:0;width:auto;height:auto;max-width:100%;cursor:default}.sun-editor-editable .se-image-container,.sun-editor-editable .se-video-container{width:auto;height:auto;max-width:100%}.sun-editor-editable figure{display:block;outline:none;min-width:20px;padding:0;margin:0}.sun-editor-editable .se-component figure{padding:0}.sun-editor-editable .se-flex-component{width:100%;min-width:auto;max-width:100%;margin:0 0 10px}.sun-editor-editable figure.se-flex-component{width:max-content}.sun-editor-editable .se-inline-component{display:inline-block;width:auto;min-width:-webkit-min-content;min-width:-moz-min-content;min-width:min-content;max-width:100%;margin:0;padding:0}.sun-editor-editable figure.se-scroll-figure-x{overflow-x:auto;padding:0 1px}.sun-editor-editable figure.se-scroll-figure-y{overflow-y:auto;padding:1px 0}.sun-editor-editable figure.se-scroll-figure-xy{overflow-x:auto;overflow-y:auto;padding:1px}.sun-editor-editable .__se__float-left figure,.sun-editor-editable .__se__float-right figure,.sun-editor-editable .__se__float-center figure{margin:auto!important}.sun-editor-editable figure figcaption{padding:1em .5em;margin:0;background-color:var(--se-edit-background-pre);outline:none}.sun-editor-editable figure figcaption p{line-height:2;margin:0}.sun-editor-editable .se-image-container a img{padding:1px;margin:1px;outline:1px solid var(--se-edit-active)}.sun-editor-editable .se-video-container iframe,.sun-editor-editable .se-video-container video{outline:1px solid var(--se-edit-outline);position:absolute;top:0;left:0;border:0;width:100%;height:100%}.sun-editor-editable .se-video-container figure{left:0;width:100%;max-width:100%}.sun-editor-editable audio{width:300px;height:54px}.sun-editor-editable .se-page-break{visibility:hidden;page-break-before:always;margin:0;padding:0}.sun-editor-editable .__se__p-bordered,.sun-editor .__se__p-bordered{border-top:solid 1px #b1b1b1;border-bottom:solid 1px #b1b1b1;padding:4px 0}.sun-editor-editable .__se__p-spaced,.sun-editor .__se__p-spaced{letter-spacing:1px}.sun-editor-editable .__se__p-neon,.sun-editor .__se__p-neon{font-weight:200;font-style:italic;background:#000;color:#fff;padding:6px 4px;border:2px solid #fff;border-radius:6px;text-transform:uppercase;-webkit-animation:neonFlicker 1.5s infinite alternate;animation:neonFlicker 1.5s infinite alternate}@-webkit-keyframes neonFlicker{0%,19%,21%,23%,25%,54%,56%,to{text-shadow:-.2rem -.2rem 1rem #fff,.2rem .2rem 1rem #fff,0 0 2px #f40,0 0 4px #f40,0 0 6px #f40,0 0 8px #f40,0 0 10px #f40;box-shadow:0 0 .5px #fff,inset 0 0 .5px #fff,0 0 2px #08f,inset 0 0 2px #08f,0 0 4px #08f,inset 0 0 4px #08f}20%,24%,55%{text-shadow:none;box-shadow:none}}@keyframes neonFlicker{0%,19%,21%,23%,25%,54%,56%,to{text-shadow:-.2rem -.2rem 1rem #fff,.2rem .2rem 1rem #fff,0 0 2px #f40,0 0 4px #f40,0 0 6px #f40,0 0 8px #f40,0 0 10px #f40;box-shadow:0 0 .5px #fff,inset 0 0 .5px #fff,0 0 2px #08f,inset 0 0 2px #08f,0 0 4px #08f,inset 0 0 4px #08f}20%,24%,55%{text-shadow:none;box-shadow:none}}.sun-editor-editable .__se__t-shadow,.sun-editor .__se__t-shadow{text-shadow:-.2rem -.2rem 1rem #fff,.2rem .2rem 1rem #fff,0 0 .2rem #999,0 0 .4rem #888,0 0 .6rem #777,0 0 .8rem #666,0 0 1rem #555}.sun-editor-editable .__se__t-code,.sun-editor .__se__t-code{font-family:monospace;color:#666;background-color:#1b1f230d;border-radius:6px;padding:.2em .4em}.ao-rich-text-editor{width:100%}.ao-rich-text-editor .sun-editor{width:100%!important;border:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white);overflow:hidden}.ao-rich-text-editor .se-toolbar{outline:0;border:0;border-bottom:var(--ao-border-width-sm) solid var(--ao-color-neutral-light);background-color:var(--ao-color-neutral-lightest);padding:var(--ao-space-xs) var(--ao-space-sm)}.ao-rich-text-editor .se-btn-tray{padding:0}.ao-rich-text-editor .se-btn-module-border{border:0}.ao-rich-text-editor .se-btn{width:28px;height:28px;border-radius:var(--ao-border-radius-sm)}.ao-rich-text-editor .se-btn:hover{background-color:var(--ao-color-neutral-light)}.ao-rich-text-editor .se-btn.se-btn-select,.ao-rich-text-editor .se-btn.active,.ao-rich-text-editor .se-btn:active{color:var(--ao-color-primary-base)}.ao-rich-text-editor .se-wrapper{background-color:var(--ao-color-white)}.ao-rich-text-editor .sun-editor-editable{min-height:100px;padding:var(--ao-space-sm);background-color:var(--ao-color-white);font-family:inherit;font-size:inherit;line-height:1.5}.ao-rich-text-editor .se-placeholder{color:var(--ao-color-neutral);font-style:normal}.ao-rich-text-editor .sun-editor:focus-within{border-color:var(--ao-color-primary-base);box-shadow:0 0 0 2px var(--ao-color-primary-lightest)}.ao-rich-text-editor--readonly .sun-editor{border-color:transparent;background-color:transparent;box-shadow:none}.ao-rich-text-editor--readonly .se-toolbar{display:none}.ao-rich-text-editor--readonly .se-wrapper,.ao-rich-text-editor--readonly .sun-editor-editable{background-color:transparent}.ao-rich-text-editor--readonly .sun-editor-editable{pointer-events:none}.ao-comment{--ao-comment-border-radius: var(--ao-border-radius-md);--ao-comment-bg: var(--ao-color-neutral-lightest);display:grid;gap:var(--ao-space-sm);grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;font-size:var(--ao-font-size-text)}.ao-comment__avatar{grid-row:2;align-self:flex-start}.ao-comment__body{padding:0 var(--ao-space-sm);grid-column:2}.ao-comment__content-wrapper{width:100%}.ao-comment__content{width:100%;margin:0;padding:0;background:transparent}.ao-comment__content p{margin-block:0 var(--ao-space-xs)}.ao-comment__content p:last-child{margin-block-end:0}.ao-comment__content ul,.ao-comment__content ol{margin-block:var(--ao-space-xs);padding-inline-start:var(--ao-space-lg)}.ao-comment__editor{margin-block-start:var(--ao-space-sm)}.ao-comment__created-at{grid-column:2;padding:0 var(--ao-space-sm);font-size:var(--ao-font-size-tag);color:var(--ao-color-neutral-light)}.ao-comment__footer{grid-column:2;display:flex;gap:var(--ao-space-sm)}.ao-comments{flex:3;overflow-y:auto}.ao-comments__list{display:flex;flex-direction:column-reverse;min-height:0;gap:var(--ao-space-lg);padding:0;padding-block-start:var(--ao-space-md);margin:0}.ao-comments__form{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-comments__form-editor{width:100%}.ao-comments__form-submit{display:flex;justify-content:flex-end;padding-block-start:var(--ao-space-sm)}.tabbar-wrapper[data-v-0e91b31f]{display:flex;align-items:center;margin:0;font-size:var(--ao-font-size-h3);padding:var(--ao-space-sm);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-neutral-lightest)}.tab-button[data-v-0e91b31f]{border:none;background-color:transparent;padding:var(--ao-space-sm) var(--ao-space-md);border-radius:var(--ao-border-radius-sm);color:var(--ao-color-black);cursor:pointer;transition:background-color .2s ease;display:flex;align-items:center;gap:var(--ao-space-xs)}.tab-button__label[data-v-0e91b31f]{display:inline-block}.tab-button__badge[data-v-0e91b31f]{display:inline-flex;align-items:center;justify-content:center;height:1rem;min-width:1rem;padding-inline:var(--ao-space-xs);font-size:11px;font-weight:var(--ao-font-weight-regular);color:var(--ao-color-neutral);background-color:var(--ao-color-neutral-lightest);border-radius:var(--ao-border-radius-pill)}.tab-button--active[data-v-0e91b31f]{background-color:var(--ao-color-primary-base);color:var(--ao-color-white)}.tab-button--active .tab-button__badge[data-v-0e91b31f]{background-color:var(--ao-color-neutral-lightest);color:var(--ao-color-neutral-dark)}.tabbar-wrapper--underline[data-v-0e91b31f]{background-color:transparent;padding:0;border-bottom:1px solid var(--ao-color-neutral-light)}.tab-button--underline[data-v-0e91b31f]{padding:var(--ao-space-sm) var(--ao-space-lg);border-radius:0;color:var(--ao-color-neutral-dark);transition:color .2s ease,border-color .2s ease;border-bottom:2px solid transparent;margin-bottom:-1px}.tab-button--underline[data-v-0e91b31f]:hover{color:var(--ao-color-black)}.tab-button--underline.tab-button--active[data-v-0e91b31f]{background-color:transparent;color:var(--ao-color-primary-base);border-bottom-color:var(--ao-color-primary-base)}.tab-button--underline .tab-button__badge[data-v-0e91b31f]{background-color:var(--ao-color-neutral-light)}.ao-rich-text-content{display:block;width:100%;line-height:1.6}.ao-rich-text-content p{margin:0 0 .5em}.ao-rich-text-content p:last-child{margin-bottom:0}.ao-rich-text-content ul,.ao-rich-text-content ol{margin:.5em 0;padding-left:1.5em}.ao-rich-text-content li{margin-bottom:.25em}.ao-rich-text-content strong,.ao-rich-text-content b{font-weight:600}.ao-rich-text-content em,.ao-rich-text-content i{font-style:italic}.ao-rich-text-content u{text-decoration:underline}.ao-rich-text-content s,.ao-rich-text-content strike,.ao-rich-text-content del{text-decoration:line-through}.ao-rich-text-content--empty{color:var(--ao-color-neutral);font-style:italic}.ao-activity-details{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__header{display:flex;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-lg) var(--ao-space-md)}.ao-activity-details__main{flex-grow:1;padding:var(--ao-space-lg)}.ao-activity__category{font-weight:var(--ao-font-weight-regular)}.ao-activity-details__content{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-lg)}.ao-activity-details__aside{border-top:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);margin-block-start:var(--ao-space-lg);padding-block-start:var(--ao-space-lg);display:flex;flex-direction:column}.ao-activity-details__aside-section:not(:empty){padding:var(--ao-space-xl) var(--ao-space-lg)}.ao-activity-details__aside-section+.ao-activity-details__aside-section:not(:empty){border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-light)}.ao-field__input--estim{width:8ch}@container modal (min-width: 480px){.ao-activity-details__content{overflow-y:auto}.ao-activity-details__aside{margin-block-start:0;border-top:0}}@container modal (min-width: 720px){.ao-activity-details{display:flex;flex-direction:column;height:auto;min-height:auto;flex-grow:1;flex-direction:row}.ao-activity-details__main{height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__aside{width:35%;background-color:var(--ao-color-canvas);padding-block-end:var(--ao-space-xl);padding-block-start:var(--ao-space-sm)}.ao-activity-details__aside>:nth-child(2){padding-block-start:var(--ao-space-md)}.ao-activity-details__close-button{display:flex;flex-direction:row;justify-content:end;margin-inline-end:var(--ao-space-sm)}.ao-activity-details__close-button *{cursor:pointer}.ao-activity-details__aside-section--created-by{margin-block-start:auto;border-block-start-width:0}.ao-activity-details__multiselect .multiselect-tags-search{background-color:transparent}.ao-activity-details__multiselect.ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-bg: transparent;--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-field__input:not(.ao-field__input--estim){background-color:transparent;border-color:transparent}}.ao-activity__created-by{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-activity__ao-tag{display:inline-flex;width:auto;border:none;border-radius:var(--ao-tag-border-radius)}.ao-activity__ao-tag .ao-tag__label{width:auto;max-width:100%}.assignee-inline{display:flex;align-items:center;gap:8px}.ao-activity-details__tabs{margin-block:var(--ao-space-md)}.ao-activity-details__tab-content{padding-block:var(--ao-space-md)}.ao-activity-details__description{min-height:60px;padding:var(--ao-space-sm);border-radius:var(--ao-border-radius-sm)}.ao-activity-details__description--editable{cursor:pointer;transition:background-color .2s ease}.ao-activity-details__description--editable:hover{background-color:var(--ao-color-neutral-lightest)}.ao-activity-details__description-placeholder{color:var(--ao-color-neutral);font-style:italic}.ao-activity-details__description-editor{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-activity-details__description-actions{display:flex;justify-content:flex-end;gap:var(--ao-space-sm)}.ao-rule-line{display:flex}.ao-rule-line__remove{visibility:hidden;opacity:0}.ao-rule-line:hover .ao-rule-line__remove{visibility:visible;opacity:1}.ao-template-rules__body{display:flex;flex-direction:column;flex:1;align-items:stretch;gap:var(--ao-space-lg)}.ao-template-rules__list{padding:0;margin:0;display:flex;flex-direction:column;flex:1;gap:var(--ao-space-md)}.ao-template-rule{list-style:none}.ao-template-details__cols{display:flex;list-style-type:none;padding:0;margin:0;container:columns / inline-size;overflow-x:auto}.ao-template-details__col{width:100%;padding-inline:var(--ao-space-md);flex-shrink:0}@container columns (min-width: 480px){.ao-template-details__col{width:50%}}@container columns (min-width: 960px){.ao-template-details__col{width:calc(1 / 3 * 100%)}}.ao-card{--ao-card-bg: var(--ao-color-card);--ao-card-color: inherit;--ao-card-padding: var(--ao-space-md);--ao-card-elevation: var(--ao-elevation-2dp);display:flex;flex-direction:row;border-radius:var(--ao-border-radius-md);background-color:var(--ao-card-bg);color:var(--ao-card-color);box-shadow:var(--ao-card-elevation);transform:translateY(0)}.ao-card__content{display:flex;flex-direction:column;width:100%}.ao-card__left-border{width:var(--ao-space-md);border-top-left-radius:var(--ao-border-radius-md);border-bottom-left-radius:var(--ao-border-radius-md)}:not(.ao-list-kanban__transition)>.ao-card{transition:all .15s var(--ao-transition-ease)}.ao-card--clickable{cursor:pointer}.ao-card--clickable:is(:hover,:focus-within){--ao-card-elevation: var(--ao-elevation-4dp);transform:translateY(-2px)}.ao-card__header{display:flex;flex-direction:column;padding-block-start:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-card__body{display:flex;flex-direction:column;flex:1;padding-inline:var(--ao-card-padding)}.ao-card__footer{display:flex;flex-direction:column;padding-block-end:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-progress{--ao-progress-bg: var(--ao-color-neutral-lightest);--ao-progress-height: var(--ao-grid-size);--ao-progress-border-radius: var(--ao-border-radius-md);height:var(--ao-progress-height);width:100%;display:grid;grid-column:1 / -1;grid-row:2;background-color:var(--ao-progress-bg);border-radius:var(--ao-progress-border-radius)}.ao-progress__progress{grid-column:1;grid-row:1;border-radius:var(--ao-progress-border-radius);background-color:var(--ao-progress-color);opacity:.2}.ao-progress--success{--ao-progress-color: var(--ao-color-success)}.ao-progress--warning{--ao-progress-color: var(--ao-color-warning)}.ao-progress--danger{--ao-progress-color: var(--ao-color-danger)}.ao-progress__progress:nth-child(1){opacity:1;z-index:1}.hu-color-picker{padding:10px;background:#1d2024;border-radius:4px;box-shadow:0 0 16px #00000029;z-index:1}.hu-color-picker.light{background:#f7f8f9}.hu-color-picker.light .color-show .sucker{background:#eceef0}.hu-color-picker.light .color-type .name{background:#e7e8e9}.hu-color-picker.light .color-type .value{color:#666;background:#eceef0}.hu-color-picker.light .colors.history{border-top:1px solid #eee}.hu-color-picker canvas{vertical-align:top}.hu-color-picker .color-set{display:flex}.hu-color-picker .color-show{margin-top:8px;display:flex}.saturation{position:relative;cursor:pointer}.saturation .slide{position:absolute;left:100px;top:0;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 1px 1px #0000004d;pointer-events:none}.color-type{display:flex;margin-top:8px;font-size:12px}.color-type .name{width:60px;height:30px;float:left;display:flex;justify-content:center;align-items:center;color:#999;background:#252930}.color-type .value{flex:1;height:30px;min-width:100px;padding:0 12px;border:0;color:#fff;background:#2e333a;box-sizing:border-box}.color-alpha{position:relative;margin-left:8px;cursor:pointer}.color-alpha .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.sucker{width:30px;fill:#9099a4;background:#2e333a;cursor:pointer;transition:all .3s}.sucker.active,.sucker:hover{fill:#1593ff}.colors{padding:0;margin:0}.colors.history{margin-top:10px;border-top:1px solid #2e333a}.colors .item{position:relative;width:16px;height:16px;margin:10px 0 0 10px;border-radius:3px;box-sizing:border-box;vertical-align:top;display:inline-block;transition:all .1s;cursor:pointer}.colors .item:nth-child(8n+1){margin-left:0}.colors .item:hover{transform:scale(1.4)}.colors .item .alpha{height:100%;border-radius:4px}.colors .item .color{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.hue{position:relative;margin-left:8px;cursor:pointer}.hue .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.color-picker-wrapper{position:relative}.color-picker{box-shadow:var(--ao-elevation-2dp)}.color-picker-box{box-sizing:content-box}.ao-card-project-phase__header{display:flex;justify-content:flex-end}.ao-card-project-phase__footer{display:flex;flex-direction:column}.ao-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-card-project-phase__archive{opacity:0;visibility:hidden}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__archive{opacity:1;visibility:visible}.ao-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-card-project-phase__footer-row.ao-card-project-phase__no_deadline,.ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline{opacity:0;visibility:hidden}.ao-card-project-phase__deadline--readonly,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-phase__progress{flex-grow:1}.aoBadge{display:inline-block;padding:4px;width:8px;height:8px;border-radius:var(--ao-border-radius-round)}.ao-card-project-milestone{--ao-card-project-milestone-border-color: transparent;padding:0;border:var(--ao-border-width-md) solid var(--ao-card-project-milestone-border-color)}.ao-card-project-milestone__default{display:flex;justify-content:space-between}.ao-card-project-milestone__archive{display:none;height:fit-content;padding-block:var(--ao-space-md)}.ao-card-project-milestone:hover .ao-card-project-milestone__archive{display:flex}.ao-card-project-milestone__activities{display:flex;flex-direction:column}.ao-card-project-milestone__activities-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-project-milestone__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-milestone:hover .ao-card-project-milestone__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-milestone__activities-row+.ao-card-project-milestone__activities-row{margin-block-start:var(--ao-space-md)}.ao-card-project-milestone__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-milestone__progress{flex-grow:1}.ao-card-project-milestone__title{max-width:fit-content;display:inline;word-break:normal}.ao-card-project-item-milestone__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h5)}.ao-card-project-milestone__footer{display:flex;align-items:center;padding-block-start:var(--ao-space-sm);gap:var(--ao-space-sm)}.ao-card-project-milestone__assignee{display:flex;justify-content:flex-start;margin-inline-start:auto}.ao-card-project-milestone__deadline{padding-block:var(--ao-space-sm)}.ao-card-project-milestone__important{color:var(--ao-color-danger)}.ao-card-project-milestone__important--selected{color:var(--ao-color-white)}.ao-title-with-badge-wrapper{display:flex;align-items:center;gap:8px}.ao-mapping-card-project-phase__header{display:flex;justify-content:flex-end;opacity:0;visibility:collapse;//transition: collapse .15s}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__header{opacity:1;visibility:visible}.ao-mapping-card-project-phase__footer{display:flex;flex-direction:column}.ao-mapping-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-mapping-card-project-phase__archive{opacity:0;visibility:hidden}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__archive{opacity:1;visibility:visible}.ao-mapping-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-mapping-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-mapping-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-mapping-card-project-phase__footer-row.ao-mapping-card-project-phase__no_deadline,.ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline{opacity:0;visibility:collapse}.ao-mapping-card-project-phase__deadline--readonly,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-mapping-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-item__title-line{display:block;word-break:normal}.ao-card-project-item-phase__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h4)}.ao-mapping-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-mapping-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-mapping-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-mapping-card-project-phase__progress{flex-grow:1}.ao-project-phase__drag-handle{opacity:0;visibility:hidden}.ao-project-phase__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-project-phase:hover .ao-project-phase__drag-handle{opacity:1;visibility:visible}.ao-project-phase{display:flex;flex-direction:column;padding-block:var(--ao-space-md)}.ao-project-phase--selected .ao-project-phase__col-phase{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-xxl);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-mapping-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-lg) var(--ao-space-sm);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-project-phase__col-milestones{display:flex;flex:1;padding:var(--ao-space-md);gap:var(--ao-space-md);overflow-x:auto;scroll-snap-type:x mandatory}.ao-project-phase__milestones,.ao-project-phase__milestones-list{display:contents}.ao-project-phase__milestone{scroll-snap-align:center;width:90%;flex-shrink:0}.ao-project-phase__milestones-list-footer{display:flex;scroll-snap-align:center}@container page (min-width: 480px){.ao-project-phase__milestones-list{grid-auto-columns:45%;overflow-x:auto}.ao-project-phase__milestone{width:45%}}@container page (min-width: 720px){.ao-project-phase{flex-direction:row}.ao-project-phase__col-phase,.ao-mapping-project-phase__col-phase{width:20em}.ao-project-phase+.ao-project-phase{border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-project-phase__col-milestones{flex-direction:column;border-inline-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);overflow:hidden}.ao-project-phase__milestones{display:flex;width:100%;flex-direction:row;align-items:center;height:100%;padding:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet)}.ao-project-phases__draggable-card{margin:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet);display:flex;flex-direction:row}.ao-project-phase--selected .ao-project-phase__milestones{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__milestones-list{display:grid;padding:var(--ao-space-md);flex-shrink:1;max-width:100%;min-width:0;grid-auto-columns:minmax(max(20%,147px),196px);grid-auto-flow:column;align-items:stretch;gap:var(--ao-space-md);scroll-snap-type:x mandatory;scroll-snap-padding:var(--ao-space-md)}.ao-project-phase__milestone{width:100%;scroll-snap-align:start}.ao-project-phase__milestones-list-footer{align-items:center;padding:var(--ao-space-md)}.ao-project-phase__milestone-add{flex-grow:0;flex-shrink:0}}.ao-project__phases{display:flex;flex-direction:column;height:100%;min-height:0;padding-inline-start:0;margin-block:0}.ao-project-phase__add-phase{padding:var(--ao-space-lg)}@container page (min-width: 720px){.ao-project-phase__phases-list-footer{display:flex}.ao-project-phase__empty_drag{width:40px}.ao-project-phase__phases-list-footer .ao-project-phase__col-phase{max-width:20em;padding:var(--ao-space-md)}.ao-project-phase__phases-list-footer .ao-project-phase__col-milestones{border:none}}.ao-add-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md);padding:0 var(--ao-space-xl) var(--ao-space-xl) var(--ao-space-xl)}.ao-add-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-add-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md)}.ao-save-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-save-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{padding:0 var(--ao-space-lg) var(--ao-space-lg) var(--ao-space-lg)}.ao-save-template-modal__phases{margin-top:var(--ao-space-md)}.ao-field__label{padding:var(--ao-space-md) 0;font-size:var(--ao-font-size-base)}.ao-save-template-modal__phases-list{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-field--checkbox{display:flex;flex-direction:row}.ao-project-overview__add-template .ao-project-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:hidden}.ao-project__body{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;min-width:0;flex-grow:1;align-items:flex-start;padding-block:var(--ao-space-md);overflow:hidden}@container page (min-width: 720px){.ao-project{padding-inline:var(--ao-space-lg)}}.ao-card-feed{cursor:pointer}.ao-card-feed__header{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:flex-start}.ao-card-feed__header-secondary{grid-column:2;grid-row:1}.ao-card-feed__header-icons{margin-inline-start:auto}.ao-card-feed__title-group{margin-block:var(--ao-space-md);display:flex;align-items:center}.ao-card-feed__body{display:flex;flex-direction:column;align-items:flex-start}.ao-card-feed__project{max-width:100%}.ao-card-feed__breadcrumbs{font-size:var(--ao-font-size-label)}.ao-card-feed_deadline{color:var(--ao-color-neutral-base);font-size:var(--ao-font-size-label)}.ao-card-feed__important{margin-inline-start:auto;color:var(--ao-color-danger)}.ao-card-feed__warning{color:var(--ao-color-warning)}.ao-card-feed__footer{display:flex;flex-direction:column}.ao-card-feed__footer-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-feed__secondary{display:flex;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-feed:hover .ao-card-feed__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-feed__footer-row+.ao-card-feed__footer-row{margin-block-start:var(--ao-space-md)}.ao-assignees{display:flex;margin:0;padding:0}.ao-assignee{list-style-type:none}.ao-card-feed__subitems{margin:0;margin-inline-start:auto;padding:0;display:flex;gap:var(--ao-space-sm);align-items:center}.ao-card-feed__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-feed__progress-wrapper{display:flex;width:100%;align-items:center;gap:var(--ao-space-md)}.ao-card-feed__progress{flex-grow:1}.ao-card-feed__timer-wrapper{opacity:0;visibility:hidden;margin-inline-start:auto}.ao-card-feed:is(:hover,:focus-within) .ao-card-feed__timer-wrapper{opacity:1;visibility:visible}.ao-card-feed__timer{cursor:pointer;color:var(--ao-color-primary-base)}.ao-card-feed__timer:hover{color:var(--ao-color-primary-dark)}.ao-card-feed__closed{color:var(--ao-color-primary-base)}.ao-card-feed--closed :is(.ao-card-feed__body,.ao-card-feed__footer,.ao-card-feed__project,.ao-card-feed__header-icons>*:not(.ao-card-feed__closed)){opacity:.3}.ao-card-feed__title-line{display:block;word-break:normal}.ao-card-feed__slug{font-weight:var(--ao-font-weight-semi-bold);white-space:nowrap;display:inline}.ao-card-feed__title-inline{display:inline;word-break:normal}.ao-project-milestone{display:flex;flex-direction:column;flex:1;height:100%;min-height:0;width:24em;background-color:var(--ao-color-sheet);padding:var(--ao-space-lg)}.ao-project-milestone__header{display:flex;align-items:flex-start;flex-direction:column}.ao-project-milestone__header_line{display:flex;align-items:flex-start;justify-content:space-between;width:100%}.ao-project-milestone__title{display:flex;padding-inline:var(--ao-space-lg);width:100%}.ao-project-milestone__body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-project-milestone__activities{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-md);margin-block:0;overflow-y:auto}.ao-project-milestone__footer{display:flex;flex-direction:column;padding:var(--ao-space-md)}.ao-milestone__fieldset{width:100%;padding:var(--ao-space-md);border-block-end:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-milestone__field-row{width:100%;align-items:center}.ao-milestone__field-row+.ao-milestone__field-row{margin-block-start:var(--ao-space-sm)}.ao-milestone__field{padding:var(--ao-space-sm);font-size:var(--ao-font-size-label);background-color:transparent;border-width:0}.ao-milestone__field-multiselect{width:14ch;background-color:transparent}.ao-milestone__field-multiselect .multiselect-tags-search{background-color:transparent}.ao-milestone__field-multiselect .ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-milestone__important,.ao-milestone__close{margin-inline-start:auto}.color-button{cursor:pointer;width:125px;height:24px;border-radius:var(--ao-border-radius-sm);border:1px solid #ccc}.ao-col-header{--ao-col-header-bg: var(--ao-color-card);display:flex;background-color:var(--ao-col-header-bg);border-radius:var(--ao-border-radius-md);align-items:center;padding:var(--ao-space-md)}.ao-col-header__title{flex:1}.ao-col-header__items{flex-shrink:0}.ao-list-kanban{display:flex;flex-direction:column;gap:var(--ao-space-lg);height:100%;min-height:0;scroll-snap-align:start end}.ao-list-kanban__list{display:flex;flex-direction:column;gap:var(--ao-space-md);min-height:0;overflow-y:auto;padding-inline:var(--ao-space-md)}.ao-list-kanban__header,.ao-list-kanban__footer{padding-inline:var(--ao-space-md)}.ao-list-kanban__end{display:flex;flex-direction:column;padding:var(--ao-space-md);align-items:center;justify-items:center;flex-shrink:0}.ao-list-kanban__divider{width:50%;height:2px;background-color:var(--ao-color-neutral-lightest)}.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-move,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-enter-active,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-leave-active{transition:all .5s ease}.ao-list-kanban__transition-leave-active{position:absolute}.ao-list-kanban__ghost{opacity:.5;background:var(--ao-color-primary-lightest)}.ao-search-field{--ao-search-field-icon-size: var(--ao-icon-size-md);--ao-search-field-icon-slot-size: calc( var(--ao-search-field-icon-size) + var(--ao-space-xl) );--ao-search-field-placeholder-color: var(--ao-color-black);--ao-input-border-color: var(--ao-color-neutral-lightest);display:grid;grid-template-columns:1fr var(--ao-search-field-icon-slot-size);align-items:center;gap:var(--ao-space-sm);flex:1}.ao-search-field__input{grid-column:1 / -1;grid-row:1;width:100%;padding-inline-end:var(--ao-search-field-icon-slot-size);font-size:var(--ao-font-size-button);border-radius:var(--ao-border-radius-md)}.ao-search-field__input:focus{color:var(--ao-color-primary-base);outline-color:var(--ao-color-primary-lightest)}.ao-search-field__input::placeholder{color:var(--ao-search-field-placeholder-color);opacity:1}.ao-search-field__action{grid-column:2;grid-row:1;justify-self:center;transform:scale(0);transition:transform .15s var(--ao-transition-ease);transform-origin:50%}.ao-search-field__action--visible{transform:scale(1)}.ao-search-field__icon{width:var(--ao-search-field-icon-size);height:var(--ao-search-field-icon-size);color:var(--ao-color-neutral-dark);pointer-events:none}.ao-feed{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;container:page / inline-size}.ao-feed__body{display:grid;grid-auto-flow:column;grid-auto-columns:100%;height:100%;min-height:0;flex-grow:1;overflow-x:auto;align-items:flex-start;padding-block:var(--ao-space-md);scroll-snap-type:x mandatory}.ao-feed__activity-details__header{display:flex;gap:var(--ao-space-md)}.ao-feed__activity-details__project{flex:2}.ao-feed__activity-details__status{flex:1}@container page (min-width: 420px){.ao-feed__body{grid-auto-columns:50cqi}}@container page (min-width: 768px){.ao-feed__body{grid-auto-columns:33cqi}}@container page (min-width: 1024px){.ao-feed__body{grid-auto-columns:minmax(calc(var(--ao-grid-size) * 32),calc(var(--ao-grid-size) * 32))}}.ao-kanban__col{display:flex;flex-direction:column;gap:var(--ao-space-md);max-height:100%;min-height:0;overflow-y:auto;padding:var(--ao-space-lg)}.ao-feed__filters{flex:1;display:flex;gap:1%;align-items:center;flex-direction:column}.ao-feed__filter .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-feed__filter .multiselect-wrapper{justify-content:flex-start}.ao-feed__show-archived{flex:0 auto}@container header (min-width: 720px){.ao-feed__filters{flex-direction:row}.ao-feed__search{padding-inline-end:var(--ao-space-md);border-right:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-feed__search,.ao-feed__filter__projects{max-width:33%}.ao-feed__filter__assignees,.ao-feed__filter__types{max-width:15%}}.ao-project-mapping-overview__add-template,.ao-project-mapping-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-mapping-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project-mapping{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:visible}.ao-project-mapping-mapping__body{display:flex;flex-direction:row;align-items:flex-start;gap:var(--ao-space-md);padding-block:var(--ao-space-md)}.ao-project-mapping-mapping__phases{flex:0 0 auto;min-width:0;max-height:100vh;overflow:scroll}.ao-project-mapping-mapping__image-wrapper{flex:1 1 0;position:relative;min-width:0}.architecture-image{position:sticky;top:var(--ao-space-md);width:100%;height:auto;display:block}@container page (min-width: 720px){.ao-project-mapping{padding-inline:var(--ao-space-lg)}}.ao-templates{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg)}.ao-templates__header{display:flex;padding:var(--ao-space-sm)}.ao-templates__list{display:flex;margin:0;padding:var(--ao-space-sm);list-style-type:none;flex-direction:column;gap:var(--ao-space-md);container:column / inline-size}
|
|
2
|
-
`,document.head.appendChild(c2);const KV="",XV="",QV="",JV="",a5=a.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(i){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(at.RouterView),a.mergeProps({templates:i.templates},e.$attrs),null,16,["templates"]))}}),re=(i,e)=>{const t=i.__vccOpts||i;for(const[o,s]of e)t[o]=s;return t},l5={},c5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d5(i,e){return a.openBlock(),a.createElementBlock("svg",c5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const h5=re(l5,[["render",d5]]),u5={},p5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f5(i,e){return a.openBlock(),a.createElementBlock("svg",p5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const m5=re(u5,[["render",f5]]),g5={},b5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v5(i,e){return a.openBlock(),a.createElementBlock("svg",b5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const y5=re(g5,[["render",v5]]),w5={},C5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k5(i,e){return a.openBlock(),a.createElementBlock("svg",C5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const _5=re(w5,[["render",k5]]),x5={},E5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T5(i,e){return a.openBlock(),a.createElementBlock("svg",E5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const M5=re(x5,[["render",T5]]),S5={},A5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B5(i,e){return a.openBlock(),a.createElementBlock("svg",A5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const N5=re(S5,[["render",B5]]),L5={},I5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $5(i,e){return a.openBlock(),a.createElementBlock("svg",I5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const O5=re(L5,[["render",$5]]),D5={},V5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R5(i,e){return a.openBlock(),a.createElementBlock("svg",V5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const z5=re(D5,[["render",R5]]),P5={},H5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j5(i,e){return a.openBlock(),a.createElementBlock("svg",H5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const F5=re(P5,[["render",j5]]),W5={},U5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q5(i,e){return a.openBlock(),a.createElementBlock("svg",U5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const Z5=re(W5,[["render",q5]]),G5={},Y5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K5(i,e){return a.openBlock(),a.createElementBlock("svg",Y5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const X5=re(G5,[["render",K5]]),Q5={},J5={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function eC(i,e){return a.openBlock(),a.createElementBlock("svg",J5,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const tC=re(Q5,[["render",eC]]),iC={},oC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sC(i,e){return a.openBlock(),a.createElementBlock("svg",oC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const nC=re(iC,[["render",sC]]),rC={},aC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lC(i,e){return a.openBlock(),a.createElementBlock("svg",aC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const cC=re(rC,[["render",lC]]),dC={},hC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uC(i,e){return a.openBlock(),a.createElementBlock("svg",hC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const pC=re(dC,[["render",uC]]),fC={},mC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gC(i,e){return a.openBlock(),a.createElementBlock("svg",mC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const bC=re(fC,[["render",gC]]),vC={},yC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wC(i,e){return a.openBlock(),a.createElementBlock("svg",yC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const CC=re(vC,[["render",wC]]),kC={},_C={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xC(i,e){return a.openBlock(),a.createElementBlock("svg",_C,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const EC=re(kC,[["render",xC]]),TC={},MC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function SC(i,e){return a.openBlock(),a.createElementBlock("svg",MC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const AC=re(TC,[["render",SC]]),BC={},NC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function LC(i,e){return a.openBlock(),a.createElementBlock("svg",NC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const IC=re(BC,[["render",LC]]),$C={},OC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function DC(i,e){return a.openBlock(),a.createElementBlock("svg",OC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const VC=re($C,[["render",DC]]),RC={},zC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function PC(i,e){return a.openBlock(),a.createElementBlock("svg",zC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const HC=re(RC,[["render",PC]]),jC={},FC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function WC(i,e){return a.openBlock(),a.createElementBlock("svg",FC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const UC=re(jC,[["render",WC]]),qC={},ZC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function GC(i,e){return a.openBlock(),a.createElementBlock("svg",ZC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const YC=re(qC,[["render",GC]]),KC={},XC={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function QC(i,e){return a.openBlock(),a.createElementBlock("svg",XC,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const JC=re(KC,[["render",QC]]),e4={},t4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i4(i,e){return a.openBlock(),a.createElementBlock("svg",t4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const o4=re(e4,[["render",i4]]),s4={},n4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r4(i,e){return a.openBlock(),a.createElementBlock("svg",n4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const a4=re(s4,[["render",r4]]),l4={},c4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d4(i,e){return a.openBlock(),a.createElementBlock("svg",c4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const h4=re(l4,[["render",d4]]),u4={},p4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f4(i,e){return a.openBlock(),a.createElementBlock("svg",p4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const m4=re(u4,[["render",f4]]),g4={},b4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v4(i,e){return a.openBlock(),a.createElementBlock("svg",b4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const y4=re(g4,[["render",v4]]),w4={},C4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k4(i,e){return a.openBlock(),a.createElementBlock("svg",C4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const _4=re(w4,[["render",k4]]),x4={},E4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T4(i,e){return a.openBlock(),a.createElementBlock("svg",E4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const M4=re(x4,[["render",T4]]),S4={},A4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B4(i,e){return a.openBlock(),a.createElementBlock("svg",A4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const N4=re(S4,[["render",B4]]),L4={},I4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $4(i,e){return a.openBlock(),a.createElementBlock("svg",I4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const O4=re(L4,[["render",$4]]),D4={},V4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R4(i,e){return a.openBlock(),a.createElementBlock("svg",V4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const z4=re(D4,[["render",R4]]),P4={},H4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j4(i,e){return a.openBlock(),a.createElementBlock("svg",H4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const F4=re(P4,[["render",j4]]),W4={},U4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q4(i,e){return a.openBlock(),a.createElementBlock("svg",U4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const Z4=re(W4,[["render",q4]]),G4={},Y4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K4(i,e){return a.openBlock(),a.createElementBlock("svg",Y4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const X4=re(G4,[["render",K4]]),Q4={},J4={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ek(i,e){return a.openBlock(),a.createElementBlock("svg",J4,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const tk=re(Q4,[["render",ek]]),ik={},ok={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function sk(i,e){return a.openBlock(),a.createElementBlock("svg",ok,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const nk=re(ik,[["render",sk]]),rk=a.defineComponent({name:"LoadingIcon"}),eR="",ak={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lk(i,e,t,o,s,r){return a.openBlock(),a.createElementBlock("svg",ak,[...e[0]||(e[0]=[a.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),a.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const ck=re(rk,[["render",lk],["__scopeId","data-v-ad6da4a9"]]),dk={},hk={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function uk(i,e){return a.openBlock(),a.createElementBlock("svg",hk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const pk=re(dk,[["render",uk]]),fk={},mk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gk(i,e){return a.openBlock(),a.createElementBlock("svg",mk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const bk=re(fk,[["render",gk]]),vk={},yk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wk(i,e){return a.openBlock(),a.createElementBlock("svg",yk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const Ck=re(vk,[["render",wk]]),kk={},_k={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xk(i,e){return a.openBlock(),a.createElementBlock("svg",_k,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const Ek=re(kk,[["render",xk]]),Tk={},Mk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Sk(i,e){return a.openBlock(),a.createElementBlock("svg",Mk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const Ak=re(Tk,[["render",Sk]]),Bk={},Nk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Lk(i,e){return a.openBlock(),a.createElementBlock("svg",Nk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const Ik=re(Bk,[["render",Lk]]),$k={},Ok={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dk(i,e){return a.openBlock(),a.createElementBlock("svg",Ok,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const Vk=re($k,[["render",Dk]]),Rk={},zk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pk(i,e){return a.openBlock(),a.createElementBlock("svg",zk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const Hk=re(Rk,[["render",Pk]]),jk={},Fk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wk(i,e){return a.openBlock(),a.createElementBlock("svg",Fk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const Uk=re(jk,[["render",Wk]]),qk={},Zk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gk(i,e){return a.openBlock(),a.createElementBlock("svg",Zk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const Yk=re(qk,[["render",Gk]]),Kk={},Xk={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qk(i,e){return a.openBlock(),a.createElementBlock("svg",Xk,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const Jk=re(Kk,[["render",Qk]]),e7={},t7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i7(i,e){return a.openBlock(),a.createElementBlock("svg",t7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const o7=re(e7,[["render",i7]]),s7={},n7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function r7(i,e){return a.openBlock(),a.createElementBlock("svg",n7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const a7=re(s7,[["render",r7]]),l7={},c7={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d7(i,e){return a.openBlock(),a.createElementBlock("svg",c7,[...e[0]||(e[0]=[a.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><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"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><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"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const h7=re(l7,[["render",d7]]),u7={},p7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function f7(i,e){return a.openBlock(),a.createElementBlock("svg",p7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const m7=re(u7,[["render",f7]]),g7={},b7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v7(i,e){return a.openBlock(),a.createElementBlock("svg",b7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const y7=re(g7,[["render",v7]]),w7={},C7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function k7(i,e){return a.openBlock(),a.createElementBlock("svg",C7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const _7=re(w7,[["render",k7]]),x7={},E7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function T7(i,e){return a.openBlock(),a.createElementBlock("svg",E7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const M7=re(x7,[["render",T7]]),S7={},A7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function B7(i,e){return a.openBlock(),a.createElementBlock("svg",A7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const N7=re(S7,[["render",B7]]),L7={},I7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $7(i,e){return a.openBlock(),a.createElementBlock("svg",I7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const O7=re(L7,[["render",$7]]),D7={},V7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function R7(i,e){return a.openBlock(),a.createElementBlock("svg",V7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const z7=re(D7,[["render",R7]]),P7={},H7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j7(i,e){return a.openBlock(),a.createElementBlock("svg",H7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const F7=re(P7,[["render",j7]]),W7={},U7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function q7(i,e){return a.openBlock(),a.createElementBlock("svg",U7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const Z7=re(W7,[["render",q7]]),G7={},Y7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function K7(i,e){return a.openBlock(),a.createElementBlock("svg",Y7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const X7=re(G7,[["render",K7]]),Q7={},J7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function e_(i,e){return a.openBlock(),a.createElementBlock("svg",J7,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const t_=re(Q7,[["render",e_]]),i_={},o_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function s_(i,e){return a.openBlock(),a.createElementBlock("svg",o_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const n_=re(i_,[["render",s_]]),r_={},a_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function l_(i,e){return a.openBlock(),a.createElementBlock("svg",a_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const c_=re(r_,[["render",l_]]),d_={},h_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function u_(i,e){return a.openBlock(),a.createElementBlock("svg",h_,[...e[0]||(e[0]=[a.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const p_=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:h5,AccountCircle:m5,AccountTreeOutlineRounded:y5,AccountTreeRounded:_5,Add:M5,AddBoxOutlineRounded:N5,ArchiveOutlineRounded:O5,ArrowBackRounded:z5,ArrowDropDownRounded:F5,ArrowForwardRounded:Z5,AssignmentOutlineRounded:X5,AttachFileRounded:tC,CalendarTodayOutlineRounded:nC,CancelRounded:cC,ChatOutline:pC,CheckBoxOutlineBlank:bC,CheckBoxOutlineBlankSharp:CC,CheckBoxOutlineRounded:EC,CheckSmallRounded:AC,ChecklistRounded:IC,ChevronLeft:VC,ChevronRight:HC,CloseRounded:UC,ContactsOutlineRounded:YC,ContentCopyOutline:JC,DeleteOutlineRounded:o4,DragIndicator:a4,EditDocumentRounded:h4,EditOutline:m4,ErrorOutlineRounded:y4,FilterListRounded:_4,FlagRounded:M4,FlowsheetOutlineRounded:N4,GifBox:O4,GroupsOutline:z4,HomeOutlineRounded:F4,ImageRounded:Z4,Info:X4,KeyboardArrowDown:tk,KeyboardArrowUp:nk,Loading:ck,Lock:pk,LogoutRounded:bk,Menu:Ck,MoreHoriz:Ek,MoreTimeRounded:Ak,MoreVert:Ik,MountainFlagOutlineRounded:Vk,PersonAddOutlineRounded:Hk,PictureAsPdfRounded:Uk,RadioButtonChecked:Yk,RadioButtonCheckedOutline:Jk,RadioButtonUnchecked:o7,RemoveRounded:a7,SearchRounded:h7,SelectCheckBox:m7,SendRounded:y7,Settings:_7,SlideshowRounded:M7,Target:N7,TaskOutlineRounded:O7,TextSnippetRounded:z7,TimerOutline:F7,ViewComfyAltRounded:Z7,ViewCompactAltRounded:X7,ViewTimelineRounded:t_,WarningOutlineRounded:n_,WarningRounded:c_,WaterfallChartRounded:re(d_,[["render",u_]])},Symbol.toStringTag,{value:"Module"})),f_={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},fu={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Pm={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"};({...Pm,...{WARNING:"warning",SUCCESS:"success",DANGER:"danger"}});const d2={ROUND:"round",ROUNDED:"rounded"},m_={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},Ze=a.defineComponent({__name:"AoIcon",props:{name:{},size:{default:fu.MD}},setup(i){const e=i,t=a.computed(()=>p_[e.name]);return(o,s)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.value),{class:a.normalizeClass(["ao-icon",`ao-icon--${i.size}`])},null,8,["class"]))}}),oR="",g_=["type"],b_={key:0,class:"ao-button__label"},Ee=a.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>f_.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>fu.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>d2.ROUNDED}},setup(i){const e=i,t=a.computed(()=>e.size),o=a.computed(()=>e.isLoading?"Loading":e.iconName);return(s,r)=>(a.openBlock(),a.createElementBlock("button",{type:i.type,class:a.normalizeClass(["ao-button",`ao-button--${i.variant}`,i.color?`ao-button--${i.color}`:"",`ao-button--${i.corners}`,i.footer?"ao-button--footer":"",i.size?`ao-button--${i.size}`:"",i.iconName&&i.iconPosition?`ao-button--icon-${i.iconPosition}`:"",s.$attrs.disabled?"ao-button--is-disabled":""])},[a.renderSlot(s.$slots,"default",{},()=>[i.label?(a.openBlock(),a.createElementBlock("span",b_,a.toDisplayString(i.label),1)):a.createCommentVNode("",!0)]),o.value?(a.openBlock(),a.createBlock(Ze,{key:0,name:o.value,class:"ao-button__icon",size:t.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,g_))}}),sR="";function v_(i){const e=a.ref(!1),t=a.ref(""),o=a.computed(()=>"value"in i.value?"value":"innerHTML"),s=()=>{e.value=!e.value},r=d=>{e.value=d},l=d=>async()=>{r(!1),await a.nextTick(()=>{i.value[o.value]=t.value,d==null||d()})},c=d=>async h=>{const p=i.value[o.value];r(!1),await a.nextTick(()=>{d(p,h)})};return a.watch(e,async d=>{await a.nextTick(()=>{setTimeout(()=>{i.value&&d&&(i.value.focus(),t.value=i.value[o.value])},1)})}),{isEditing:e,setIsEditing:r,toggleIsEditing:s,onUpdate:c,onDiscard:l}}const Pt=a.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(i,{emit:e}){const t=a.ref(null),o=i,s=e,{isEditing:r,setIsEditing:l,onUpdate:c,onDiscard:d}=v_(t),h=a.computed(()=>r.value?"input":o.tag||`h${o.level}`),p=a.computed(()=>o.isEditable?r.value?{change:f,click:y=>y.stopPropagation(),blur:g}:{click:b,focus:b}:{}),f=c((y,C)=>{const _=C.target.value;s("update:title",_)}),m=d(),g=async()=>{r.value&&l(!1)},v=()=>{s("toggle-is-editing",!1)},b=y=>{y.stopPropagation(),r.value||l(!0)};return a.watch(()=>o.isEditable,y=>{y||m()}),(y,C)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.value),a.mergeProps({id:i.id,ref_key:"target",ref:t,class:["ao-title",`ao-title--${i.level}`,{[`ao-title--${i.color}`]:!!i.color,"ao-title--editable":i.isEditable,"ao-field__input ao-title--editing":a.unref(r),"ao-title--readonly":!a.unref(r)}],type:a.unref(r)?"text":null,value:a.unref(r)?i.title:null,tabindex:"0",onKeyup:a.withKeys(v,["enter"])},a.toHandlers(p.value),{onKeydown:a.withKeys(a.unref(m),["esc"])}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}}),nR="",y_={key:0,class:"ao-card-horiz__drag ao-card__drag"},w_={class:"ao-card-horiz__header"},C_={key:0,class:"ao-card-horiz__avatar"},k_={class:"ao-card-horiz__title-group"},__={key:0,class:"ao-card-horiz__subtitle"},x_={key:1,class:"ao-card-horiz__header"},E_={key:1,class:"ao-card-horiz__body"},T_={key:2,class:"ao-card-horiz__footer"},M_={key:3,class:"ao-card-horiz__secondary"},h2=a.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(i,{emit:e}){const t=e,o=s=>{t("update:title",s)};return(s,r)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.tagName),{class:a.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":i.isActive}])},{default:a.withCtx(()=>[i.isDraggable?(a.openBlock(),a.createElementBlock("div",y_,[a.createVNode(Ze,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):a.createCommentVNode("",!0),a.createElementVNode("div",w_,[i.icon?(a.openBlock(),a.createElementBlock("div",C_,[a.createVNode(Ze,{class:"ao-card-horiz__icon",name:i.icon,size:"xl"},null,8,["name"])])):a.createCommentVNode("",!0),a.createElementVNode("div",k_,[a.createVNode(Pt,{id:i.id,class:"ao-card-horiz__title",level:4,title:i.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),a.renderSlot(s.$slots,"subtitle",{},()=>[i.subtitle?(a.openBlock(),a.createElementBlock("span",__,a.toDisplayString(i.subtitle),1)):a.createCommentVNode("",!0)])]),s.$slots.header?(a.openBlock(),a.createElementBlock("div",x_,[a.renderSlot(s.$slots,"header")])):a.createCommentVNode("",!0)]),s.$slots.default?(a.openBlock(),a.createElementBlock("div",E_,[a.renderSlot(s.$slots,"default")])):a.createCommentVNode("",!0),s.$slots.footer?(a.openBlock(),a.createElementBlock("div",T_,[a.renderSlot(s.$slots,"footer")])):a.createCommentVNode("",!0),s.$slots.secondary?(a.openBlock(),a.createElementBlock("div",M_,[a.renderSlot(s.$slots,"secondary")])):a.createCommentVNode("",!0)]),_:3},8,["class"]))}}),rR="",Zl=a.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(i){const e=i,t=a.computed(()=>e.clickable?"button":"span"),o=a.computed(()=>t.value==="button"?{type:"button"}:{});return(s,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-tag",i.color?`ao-tag--${i.color}`:"",i.clickable?"ao-tag--clickable":"",i.closable?"ao-tag--closable":"",i.variant?`ao-tag--${i.variant}`:""]),style:a.normalizeStyle(i.rawColor?{"--ao-tag-bg":i.rawColor}:{})},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.value),a.mergeProps({class:"ao-tag__label"},o.value,{onClick:r[0]||(r[0]=l=>s.$emit("click",l))}),{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.label)+" ",1),i.variant===a.unref(m_).SOLID_ICON&&i.iconName?(a.openBlock(),a.createBlock(Ze,{key:0,name:i.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):a.createCommentVNode("",!0)]),_:1},16)),i.closable?(a.openBlock(),a.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:r[1]||(r[1]=l=>s.$emit("close",l))},[a.createVNode(Ze,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):a.createCommentVNode("",!0)],6))}}),aR="",Gl={todo:"todo",done:"done",archived:"archived"},S_={months:"months",weeks:"weeks",days:"days"},A_={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},u2={BEFORE:"before",AFTER:"after"},p2={START:"start",end:"end"},f2={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},dt={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var m2=(i=>(i.PHASES="phases",i.MILESTONES="milestones",i.ACTIVITIES="activities",i))(m2||{});const B_={add:"add",remove:"remove",moved:"moved"};var g2=(i=>(i.HOURS="hours",i.DAYS="days",i))(g2||{});const Qs={project:"projectId",type:"typeId",assignee:"assigneeId"};function mu(i){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mu(i)}function _o(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function wt(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Zt(i){wt(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||mu(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function N_(i,e){wt(2,arguments);var t=Zt(i).getTime(),o=_o(e);return new Date(t+o)}var L_={};function Yl(){return L_}function Kl(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}function b2(i){wt(1,arguments);var e=Zt(i);return e.setHours(0,0,0,0),e}var I_=864e5;function $_(i,e){wt(2,arguments);var t=b2(i),o=b2(e),s=t.getTime()-Kl(t),r=o.getTime()-Kl(o);return Math.round((s-r)/I_)}function O_(i,e){wt(2,arguments);var t=Zt(i),o=Zt(e),s=t.getTime()-o.getTime();return s<0?-1:s>0?1:s}var v2=6e4,y2=36e5;function D_(i){return wt(1,arguments),i instanceof Date||mu(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function w2(i){if(wt(1,arguments),!D_(i)&&typeof i!="number")return!1;var e=Zt(i);return!isNaN(Number(e))}function Hm(i,e){wt(2,arguments);var t=_o(e);return N_(i,-t)}var V_=864e5;function R_(i){wt(1,arguments);var e=Zt(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),s=t-o;return Math.floor(s/V_)+1}function gu(i){wt(1,arguments);var e=1,t=Zt(i),o=t.getUTCDay(),s=(o<e?7:0)+o-e;return t.setUTCDate(t.getUTCDate()-s),t.setUTCHours(0,0,0,0),t}function C2(i){wt(1,arguments);var e=Zt(i),t=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(t+1,0,4),o.setUTCHours(0,0,0,0);var s=gu(o),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var l=gu(r);return e.getTime()>=s.getTime()?t+1:e.getTime()>=l.getTime()?t:t-1}function z_(i){wt(1,arguments);var e=C2(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var o=gu(t);return o}var P_=6048e5;function H_(i){wt(1,arguments);var e=Zt(i),t=gu(e).getTime()-z_(e).getTime();return Math.round(t/P_)+1}function bu(i,e){var t,o,s,r,l,c,d,h;wt(1,arguments);var p=Yl(),f=_o((t=(o=(s=(r=e==null?void 0:e.weekStartsOn)!==null&&r!==void 0?r:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&s!==void 0?s:p.weekStartsOn)!==null&&o!==void 0?o:(d=p.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&t!==void 0?t:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Zt(i),g=m.getUTCDay(),v=(g<f?7:0)+g-f;return m.setUTCDate(m.getUTCDate()-v),m.setUTCHours(0,0,0,0),m}function k2(i,e){var t,o,s,r,l,c,d,h;wt(1,arguments);var p=Zt(i),f=p.getUTCFullYear(),m=Yl(),g=_o((t=(o=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:m.firstWeekContainsDate)!==null&&o!==void 0?o:(d=m.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(f+1,0,g),v.setUTCHours(0,0,0,0);var b=bu(v,e),y=new Date(0);y.setUTCFullYear(f,0,g),y.setUTCHours(0,0,0,0);var C=bu(y,e);return p.getTime()>=b.getTime()?f+1:p.getTime()>=C.getTime()?f:f-1}function j_(i,e){var t,o,s,r,l,c,d,h;wt(1,arguments);var p=Yl(),f=_o((t=(o=(s=(r=e==null?void 0:e.firstWeekContainsDate)!==null&&r!==void 0?r:e==null||(l=e.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:p.firstWeekContainsDate)!==null&&o!==void 0?o:(d=p.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&t!==void 0?t:1),m=k2(i,e),g=new Date(0);g.setUTCFullYear(m,0,f),g.setUTCHours(0,0,0,0);var v=bu(g,e);return v}var F_=6048e5;function W_(i,e){wt(1,arguments);var t=Zt(i),o=bu(t,e).getTime()-j_(t,e).getTime();return Math.round(o/F_)+1}function We(i,e){for(var t=i<0?"-":"",o=Math.abs(i).toString();o.length<e;)o="0"+o;return t+o}var U_={y:function(e,t){var o=e.getUTCFullYear(),s=o>0?o:1-o;return We(t==="yy"?s%100:s,t.length)},M:function(e,t){var o=e.getUTCMonth();return t==="M"?String(o+1):We(o+1,2)},d:function(e,t){return We(e.getUTCDate(),t.length)},a:function(e,t){var o=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(e,t){return We(e.getUTCHours()%12||12,t.length)},H:function(e,t){return We(e.getUTCHours(),t.length)},m:function(e,t){return We(e.getUTCMinutes(),t.length)},s:function(e,t){return We(e.getUTCSeconds(),t.length)},S:function(e,t){var o=t.length,s=e.getUTCMilliseconds(),r=Math.floor(s*Math.pow(10,o-3));return We(r,t.length)}};const Xo=U_;var Mr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},q_={G:function(e,t,o){var s=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return o.era(s,{width:"abbreviated"});case"GGGGG":return o.era(s,{width:"narrow"});case"GGGG":default:return o.era(s,{width:"wide"})}},y:function(e,t,o){if(t==="yo"){var s=e.getUTCFullYear(),r=s>0?s:1-s;return o.ordinalNumber(r,{unit:"year"})}return Xo.y(e,t)},Y:function(e,t,o,s){var r=k2(e,s),l=r>0?r:1-r;if(t==="YY"){var c=l%100;return We(c,2)}return t==="Yo"?o.ordinalNumber(l,{unit:"year"}):We(l,t.length)},R:function(e,t){var o=C2(e);return We(o,t.length)},u:function(e,t){var o=e.getUTCFullYear();return We(o,t.length)},Q:function(e,t,o){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return We(s,2);case"Qo":return o.ordinalNumber(s,{unit:"quarter"});case"QQQ":return o.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,o){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return We(s,2);case"qo":return o.ordinalNumber(s,{unit:"quarter"});case"qqq":return o.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,o){var s=e.getUTCMonth();switch(t){case"M":case"MM":return Xo.M(e,t);case"Mo":return o.ordinalNumber(s+1,{unit:"month"});case"MMM":return o.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,o){var s=e.getUTCMonth();switch(t){case"L":return String(s+1);case"LL":return We(s+1,2);case"Lo":return o.ordinalNumber(s+1,{unit:"month"});case"LLL":return o.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,o,s){var r=W_(e,s);return t==="wo"?o.ordinalNumber(r,{unit:"week"}):We(r,t.length)},I:function(e,t,o){var s=H_(e);return t==="Io"?o.ordinalNumber(s,{unit:"week"}):We(s,t.length)},d:function(e,t,o){return t==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):Xo.d(e,t)},D:function(e,t,o){var s=R_(e);return t==="Do"?o.ordinalNumber(s,{unit:"dayOfYear"}):We(s,t.length)},E:function(e,t,o){var s=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return o.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(s,{width:"short",context:"formatting"});case"EEEE":default:return o.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,o,s){var r=e.getUTCDay(),l=(r-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return We(l,2);case"eo":return o.ordinalNumber(l,{unit:"day"});case"eee":return o.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(r,{width:"short",context:"formatting"});case"eeee":default:return o.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,o,s){var r=e.getUTCDay(),l=(r-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return We(l,t.length);case"co":return o.ordinalNumber(l,{unit:"day"});case"ccc":return o.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(r,{width:"narrow",context:"standalone"});case"cccccc":return o.day(r,{width:"short",context:"standalone"});case"cccc":default:return o.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,o){var s=e.getUTCDay(),r=s===0?7:s;switch(t){case"i":return String(r);case"ii":return We(r,t.length);case"io":return o.ordinalNumber(r,{unit:"day"});case"iii":return o.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(s,{width:"short",context:"formatting"});case"iiii":default:return o.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,o){var s=e.getUTCHours(),r=s/12>=1?"pm":"am";switch(t){case"a":case"aa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,o){var s=e.getUTCHours(),r;switch(s===12?r=Mr.noon:s===0?r=Mr.midnight:r=s/12>=1?"pm":"am",t){case"b":case"bb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,o){var s=e.getUTCHours(),r;switch(s>=17?r=Mr.evening:s>=12?r=Mr.afternoon:s>=4?r=Mr.morning:r=Mr.night,t){case"B":case"BB":case"BBB":return o.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,o){if(t==="ho"){var s=e.getUTCHours()%12;return s===0&&(s=12),o.ordinalNumber(s,{unit:"hour"})}return Xo.h(e,t)},H:function(e,t,o){return t==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Xo.H(e,t)},K:function(e,t,o){var s=e.getUTCHours()%12;return t==="Ko"?o.ordinalNumber(s,{unit:"hour"}):We(s,t.length)},k:function(e,t,o){var s=e.getUTCHours();return s===0&&(s=24),t==="ko"?o.ordinalNumber(s,{unit:"hour"}):We(s,t.length)},m:function(e,t,o){return t==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Xo.m(e,t)},s:function(e,t,o){return t==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Xo.s(e,t)},S:function(e,t){return Xo.S(e,t)},X:function(e,t,o,s){var r=s._originalDate||e,l=r.getTimezoneOffset();if(l===0)return"Z";switch(t){case"X":return x2(l);case"XXXX":case"XX":return Js(l);case"XXXXX":case"XXX":default:return Js(l,":")}},x:function(e,t,o,s){var r=s._originalDate||e,l=r.getTimezoneOffset();switch(t){case"x":return x2(l);case"xxxx":case"xx":return Js(l);case"xxxxx":case"xxx":default:return Js(l,":")}},O:function(e,t,o,s){var r=s._originalDate||e,l=r.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_2(l,":");case"OOOO":default:return"GMT"+Js(l,":")}},z:function(e,t,o,s){var r=s._originalDate||e,l=r.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_2(l,":");case"zzzz":default:return"GMT"+Js(l,":")}},t:function(e,t,o,s){var r=s._originalDate||e,l=Math.floor(r.getTime()/1e3);return We(l,t.length)},T:function(e,t,o,s){var r=s._originalDate||e,l=r.getTime();return We(l,t.length)}};function _2(i,e){var t=i>0?"-":"+",o=Math.abs(i),s=Math.floor(o/60),r=o%60;if(r===0)return t+String(s);var l=e||"";return t+String(s)+l+We(r,2)}function x2(i,e){if(i%60===0){var t=i>0?"-":"+";return t+We(Math.abs(i)/60,2)}return Js(i,e)}function Js(i,e){var t=e||"",o=i>0?"-":"+",s=Math.abs(i),r=We(Math.floor(s/60),2),l=We(s%60,2);return o+r+t+l}const Z_=q_;var E2=function(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"});case"PPPP":default:return t.date({width:"full"})}},T2=function(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"});case"pppp":default:return t.time({width:"full"})}},G_=function(e,t){var o=e.match(/(P+)(p+)?/)||[],s=o[1],r=o[2];if(!r)return E2(e,t);var l;switch(s){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",E2(s,t)).replace("{{time}}",T2(r,t))},Y_={p:T2,P:G_};const K_=Y_;var X_=["D","DD"],Q_=["YY","YYYY"];function J_(i){return X_.indexOf(i)!==-1}function ex(i){return Q_.indexOf(i)!==-1}function M2(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var tx={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"}},ix=function(e,t,o){var s,r=tx[e];return typeof r=="string"?s=r:t===1?s=r.one:s=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+s:s+" ago":s};const ox=ix;function jm(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,o=i.formats[t]||i.formats[i.defaultWidth];return o}}var sx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ax={date:jm({formats:sx,defaultWidth:"full"}),time:jm({formats:nx,defaultWidth:"full"}),dateTime:jm({formats:rx,defaultWidth:"full"})};const lx=ax;var cx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dx=function(e,t,o,s){return cx[e]};const hx=dx;function Xl(i){return function(e,t){var o=t!=null&&t.context?String(t.context):"standalone",s;if(o==="formatting"&&i.formattingValues){var r=i.defaultFormattingWidth||i.defaultWidth,l=t!=null&&t.width?String(t.width):r;s=i.formattingValues[l]||i.formattingValues[r]}else{var c=i.defaultWidth,d=t!=null&&t.width?String(t.width):i.defaultWidth;s=i.values[d]||i.values[c]}var h=i.argumentCallback?i.argumentCallback(e):e;return s[h]}}var ux={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},px={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fx={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"]},mx={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"]},gx={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"}},bx={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"}},vx=function(e,t){var o=Number(e),s=o%100;if(s>20||s<10)switch(s%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},yx={ordinalNumber:vx,era:Xl({values:ux,defaultWidth:"wide"}),quarter:Xl({values:px,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Xl({values:fx,defaultWidth:"wide"}),day:Xl({values:mx,defaultWidth:"wide"}),dayPeriod:Xl({values:gx,defaultWidth:"wide",formattingValues:bx,defaultFormattingWidth:"wide"})};const wx=yx;function Ql(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.width,s=o&&i.matchPatterns[o]||i.matchPatterns[i.defaultMatchWidth],r=e.match(s);if(!r)return null;var l=r[0],c=o&&i.parsePatterns[o]||i.parsePatterns[i.defaultParseWidth],d=Array.isArray(c)?kx(c,function(f){return f.test(l)}):Cx(c,function(f){return f.test(l)}),h;h=i.valueCallback?i.valueCallback(d):d,h=t.valueCallback?t.valueCallback(h):h;var p=e.slice(l.length);return{value:h,rest:p}}}function Cx(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function kx(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function _x(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(i.matchPattern);if(!o)return null;var s=o[0],r=e.match(i.parsePattern);if(!r)return null;var l=i.valueCallback?i.valueCallback(r[0]):r[0];l=t.valueCallback?t.valueCallback(l):l;var c=e.slice(s.length);return{value:l,rest:c}}}var xx=/^(\d+)(th|st|nd|rd)?/i,Ex=/\d+/i,Tx={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},Mx={any:[/^b/i,/^(a|c)/i]},Sx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ax={any:[/1/i,/2/i,/3/i,/4/i]},Bx={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},Nx={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]},Lx={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},Ix={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]},$x={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},Ox={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}},Dx={ordinalNumber:_x({matchPattern:xx,parsePattern:Ex,valueCallback:function(e){return parseInt(e,10)}}),era:Ql({matchPatterns:Tx,defaultMatchWidth:"wide",parsePatterns:Mx,defaultParseWidth:"any"}),quarter:Ql({matchPatterns:Sx,defaultMatchWidth:"wide",parsePatterns:Ax,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ql({matchPatterns:Bx,defaultMatchWidth:"wide",parsePatterns:Nx,defaultParseWidth:"any"}),day:Ql({matchPatterns:Lx,defaultMatchWidth:"wide",parsePatterns:Ix,defaultParseWidth:"any"}),dayPeriod:Ql({matchPatterns:$x,defaultMatchWidth:"any",parsePatterns:Ox,defaultParseWidth:"any"})},Vx={code:"en-US",formatDistance:ox,formatLong:lx,formatRelative:hx,localize:wx,match:Dx,options:{weekStartsOn:0,firstWeekContainsDate:1}};const S2=Vx;var Rx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Px=/^'([^]*?)'?$/,Hx=/''/g,jx=/[a-zA-Z]/;function A2(i,e,t){var o,s,r,l,c,d,h,p,f,m,g,v,b,y,C,k,_,S;wt(2,arguments);var T=String(e),M=Yl(),N=(o=(s=t==null?void 0:t.locale)!==null&&s!==void 0?s:M.locale)!==null&&o!==void 0?o:S2,A=_o((r=(l=(c=(d=t==null?void 0:t.firstWeekContainsDate)!==null&&d!==void 0?d:t==null||(h=t.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&c!==void 0?c:M.firstWeekContainsDate)!==null&&l!==void 0?l:(f=M.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=_o((g=(v=(b=(y=t==null?void 0:t.weekStartsOn)!==null&&y!==void 0?y:t==null||(C=t.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&b!==void 0?b:M.weekStartsOn)!==null&&v!==void 0?v:(_=M.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&g!==void 0?g:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var $=Zt(i);if(!w2($))throw new RangeError("Invalid time value");var L=Kl($),O=Hm($,L),D={firstWeekContainsDate:A,weekStartsOn:B,locale:N,_originalDate:$},I=T.match(zx).map(function(R){var F=R[0];if(F==="p"||F==="P"){var q=K_[F];return q(R,N.formatLong)}return R}).join("").match(Rx).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return Fx(R);var q=Z_[F];if(q)return!(t!=null&&t.useAdditionalWeekYearTokens)&&ex(R)&&M2(R,e,String(i)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&J_(R)&&M2(R,e,String(i)),q(O,R,N.localize,D);if(F.match(jx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return I}function Fx(i){var e=i.match(Px);return e?e[1].replace(Hx,"'"):i}function Wx(i,e,t){var o,s,r,l,c,d,h,p,f,m;wt(2,arguments);var g=Zt(i),v=Zt(e),b=Yl(),y=(o=(s=t==null?void 0:t.locale)!==null&&s!==void 0?s:b.locale)!==null&&o!==void 0?o:S2,C=_o((r=(l=(c=(d=t==null?void 0:t.weekStartsOn)!==null&&d!==void 0?d:t==null||(h=t.locale)===null||h===void 0||(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&c!==void 0?c:b.weekStartsOn)!==null&&l!==void 0?l:(f=b.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&r!==void 0?r:0);if(!y.localize)throw new RangeError("locale must contain localize property");if(!y.formatLong)throw new RangeError("locale must contain formatLong property");if(!y.formatRelative)throw new RangeError("locale must contain formatRelative property");var k=$_(g,v);if(isNaN(k))throw new RangeError("Invalid time value");var _;k<-6?_="other":k<-1?_="lastWeek":k<0?_="yesterday":k<1?_="today":k<2?_="tomorrow":k<7?_="nextWeek":_="other";var S=Hm(g,Kl(g)),T=Hm(v,Kl(v)),M=y.formatRelative(_,S,T,{locale:y,weekStartsOn:C});return A2(g,M,{locale:y,weekStartsOn:C})}function Jl(i,e){var t;wt(1,arguments);var o=_o((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof i=="string"||Object.prototype.toString.call(i)==="[object String]"))return new Date(NaN);var s=Gx(i),r;if(s.date){var l=Yx(s.date,o);r=Kx(l.restDateString,l.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var c=r.getTime(),d=0,h;if(s.time&&(d=Xx(s.time),isNaN(d)))return new Date(NaN);if(s.timezone){if(h=Qx(s.timezone),isNaN(h))return new Date(NaN)}else{var p=new Date(c+d),f=new Date(0);return f.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),f.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),f}return new Date(c+d+h)}var vu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ux=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qx=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zx=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Gx(i){var e={},t=i.split(vu.dateTimeDelimiter),o;if(t.length>2)return e;if(/:/.test(t[0])?o=t[0]:(e.date=t[0],o=t[1],vu.timeZoneDelimiter.test(e.date)&&(e.date=i.split(vu.timeZoneDelimiter)[0],o=i.substr(e.date.length,i.length))),o){var s=vu.timezone.exec(o);s?(e.time=o.replace(s[1],""),e.timezone=s[1]):e.time=o}return e}function Yx(i,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=i.match(t);if(!o)return{year:NaN,restDateString:""};var s=o[1]?parseInt(o[1]):null,r=o[2]?parseInt(o[2]):null;return{year:r===null?s:r*100,restDateString:i.slice((o[1]||o[2]).length)}}function Kx(i,e){if(e===null)return new Date(NaN);var t=i.match(Ux);if(!t)return new Date(NaN);var o=!!t[4],s=ec(t[1]),r=ec(t[2])-1,l=ec(t[3]),c=ec(t[4]),d=ec(t[5])-1;if(o)return o6(e,c,d)?Jx(e,c,d):new Date(NaN);var h=new Date(0);return!t6(e,r,l)||!i6(e,s)?new Date(NaN):(h.setUTCFullYear(e,r,Math.max(s,l)),h)}function ec(i){return i?parseInt(i):1}function Xx(i){var e=i.match(qx);if(!e)return NaN;var t=Fm(e[1]),o=Fm(e[2]),s=Fm(e[3]);return s6(t,o,s)?t*y2+o*v2+s*1e3:NaN}function Fm(i){return i&&parseFloat(i.replace(",","."))||0}function Qx(i){if(i==="Z")return 0;var e=i.match(Zx);if(!e)return 0;var t=e[1]==="+"?-1:1,o=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return n6(o,s)?t*(o*y2+s*v2):NaN}function Jx(i,e,t){var o=new Date(0);o.setUTCFullYear(i,0,4);var s=o.getUTCDay()||7,r=(e-1)*7+t+1-s;return o.setUTCDate(o.getUTCDate()+r),o}var e6=[31,null,31,30,31,30,31,31,30,31,30,31];function B2(i){return i%400===0||i%4===0&&i%100!==0}function t6(i,e,t){return e>=0&&e<=11&&t>=1&&t<=(e6[e]||(B2(i)?29:28))}function i6(i,e){return e>=1&&e<=(B2(i)?366:365)}function o6(i,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function s6(i,e,t){return i===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&i>=0&&i<25}function n6(i,e){return e>=0&&e<=59}var ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r6(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ht={},N2={},tc={},ic={},Sr={},yu={};Object.defineProperty(yu,"__esModule",{value:!0}),yu.lexoHelper=void 0,yu.lexoHelper={arrayCopy:a6};function a6(i,e,t,o,s){let r=o;const l=e+s;for(let c=e;c<l;c++)t[r]=i[c],++r}var oc={};Object.defineProperty(oc,"__esModule",{value:!0});class l6{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,t){return this.str=this.str.substr(0,e)+this.str.substr(e+t),this}insert(e,t){return this.str=this.str.substr(0,e)+t+this.str.substr(e),this}toString(){return this.str}}oc.default=l6,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.LexoInteger=void 0;const wu=yu,c6=oc;class _e{constructor(e,t,o){this.sys=e,this.sign=t,this.mag=o}static parse(e,t){let o=e,s=1;e.indexOf(t.getPositiveChar())===0?o=e.substring(1):e.indexOf(t.getNegativeChar())===0&&(o=e.substring(1),s=-1);const r=new Array(o.length);let l=r.length-1;for(let c=0;l>=0;++c)r[c]=t.toDigit(o.charAt(l)),--l;return _e.make(t,s,r)}static zero(e){return new _e(e,0,_e.ZERO_MAG)}static one(e){return _e.make(e,1,_e.ONE_MAG)}static make(e,t,o){let s;for(s=o.length;s>0&&o[s-1]===0;--s);if(s===0)return _e.zero(e);if(s===o.length)return new _e(e,t,o);const r=new Array(s).fill(0);return wu.lexoHelper.arrayCopy(o,0,r,0,s),new _e(e,t,r)}static add(e,t,o){const s=Math.max(t.length,o.length),r=new Array(s).fill(0);let l=0;for(let c=0;c<s;++c){const d=c<t.length?t[c]:0,h=c<o.length?o[c]:0;let p=d+h+l;for(l=0;p>=e.getBase();p-=e.getBase())++l;r[c]=p}return _e.extendWithCarry(r,l)}static extendWithCarry(e,t){if(t>0){const o=new Array(e.length+1).fill(0);return wu.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=t,o}return e}static subtract(e,t,o){const s=_e.complement(e,o,t.length),r=_e.add(e,t,s);return r[r.length-1]=0,_e.add(e,r,_e.ONE_MAG)}static multiply(e,t,o){const s=new Array(t.length+o.length).fill(0);for(let r=0;r<t.length;++r)for(let l=0;l<o.length;++l){const c=r+l;for(s[c]+=t[r]*o[l];s[c]>=e.getBase();s[c]-=e.getBase())++s[c+1]}return s}static complement(e,t,o){if(o<=0)throw new Error("Expected at least 1 digit");const s=new Array(o).fill(e.getBase()-1);for(let r=0;r<t.length;++r)s[r]=e.getBase()-1-t[r];return s}static compare(e,t){if(e.length<t.length)return-1;if(e.length>t.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<t[o])return-1;if(e[o]>t[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const t=_e.add(this.sys,this.mag,e.mag);return _e.make(this.sys,this.sign,t)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const t=_e.compare(this.mag,e.mag);return t===0?_e.zero(this.sys):t<0?_e.make(this.sys,this.sign===-1?1:-1,_e.subtract(this.sys,e.mag,this.mag)):_e.make(this.sys,this.sign===-1?-1:1,_e.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?_e.make(this.sys,1,e.mag):_e.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?_e.make(this.sys,1,this.mag):_e.make(this.sys,-1,this.mag);const t=_e.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?_e.make(this.sys,1,t):_e.make(this.sys,-1,t)}negate(){return this.isZero()?this:_e.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const t=new Array(this.mag.length+e).fill(0);return wu.lexoHelper.arrayCopy(this.mag,0,t,e,this.mag.length),_e.make(this.sys,this.sign,t)}shiftRight(e=1){if(this.mag.length-e<=0)return _e.zero(this.sys);const t=new Array(this.mag.length-e).fill(0);return wu.lexoHelper.arrayCopy(this.mag,e,t,0,t.length),_e.make(this.sys,this.sign,t)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return _e.make(this.sys,this.sign,_e.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const t=_e.compare(this.mag,e.mag);return t===-1?1:t===1?-1:0}return-1}return this.sign===1?e.sign===1?_e.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new c6.default,t=this.mag,o=t.length;for(let s=0;s<o;++s){const r=t[s];e.insert(0,this.sys.toChar(r))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}Sr.LexoInteger=_e,_e.ZERO_MAG=[0],_e.ONE_MAG=[1],_e.NEGATIVE_SIGN=-1,_e.ZERO_SIGN=0,_e.POSITIVE_SIGN=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.LexoDecimal=void 0;const sc=Sr,d6=oc;class wi{constructor(e,t){this.mag=e,this.sig=t}static half(e){const t=e.getBase()/2|0;return wi.make(sc.LexoInteger.make(e,1,[t]),1)}static parse(e,t){const o=e.indexOf(t.getRadixPointChar());if(e.lastIndexOf(t.getRadixPointChar())!==o)throw new Error("More than one "+t.getRadixPointChar());if(o<0)return wi.make(sc.LexoInteger.parse(e,t),0);const s=e.substring(0,o)+e.substring(o+1);return wi.make(sc.LexoInteger.parse(s,t),e.length-1-o)}static from(e){return wi.make(e,0)}static make(e,t){if(e.isZero())return new wi(e,0);let o=0;for(let l=0;l<t&&e.getMag(l)===0;++l)++o;const s=e.shiftRight(o),r=t-o;return new wi(s,r)}getSystem(){return this.mag.getSystem()}add(e){let t=this.mag,o=this.sig,s=e.mag,r;for(r=e.sig;o<r;++o)t=t.shiftLeft();for(;o>r;)s=s.shiftLeft(),++r;return wi.make(t.add(s),o)}subtract(e){let t=this.mag,o=this.sig,s=e.mag,r;for(r=e.sig;o<r;++o)t=t.shiftLeft();for(;o>r;)s=s.shiftLeft(),++r;return wi.make(t.subtract(s),o)}multiply(e){return wi.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(sc.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,t=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let s=this.mag.shiftRight(o);return t&&(s=s.add(sc.LexoInteger.one(s.getSystem()))),wi.make(s,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let t=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(t=t.shiftLeft(e.sig-this.sig)),t.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const t=new d6.default(e),o=t[0],s=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(s&&t.remove(0,1);t.length<this.sig+1;)t.insert(0,this.mag.getSystem().toChar(0));return t.insert(t.length-this.sig,this.mag.getSystem().getRadixPointChar()),t.length-this.sig===0&&t.insert(0,this.mag.getSystem().toChar(0)),s&&t.insert(0,o),t.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}ic.LexoDecimal=wi;var Cu={},L2;function I2(){if(L2)return Cu;L2=1,Object.defineProperty(Cu,"__esModule",{value:!0});const i=Sr,e=D2();class t{constructor(s){this.value=i.LexoInteger.parse(s,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new t("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new t("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new t("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[t.BUCKET_0,t.BUCKET_1,t.BUCKET_2]),this._VALUES}static max(){return t.VALUES[t.VALUES.length-1]}static from(s){const r=i.LexoInteger.parse(s,e.LexoRank.NUMERAL_SYSTEM),l=t.VALUES,c=l.length;for(let d=0;d<c;++d){const h=l[d];if(h.value.equals(r))return h}throw new Error("Unknown bucket: "+s)}static resolve(s){const r=t.VALUES,l=r.length;for(let c=0;c<l;++c){const d=r[c];if(d.equals(t.from(s.toString())))return d}throw new Error("No bucket found with id "+s)}format(){return this.value.format()}next(){return this.equals(t.BUCKET_0)?t.BUCKET_1:this.equals(t.BUCKET_1)?t.BUCKET_2:this.equals(t.BUCKET_2)?t.BUCKET_0:t.BUCKET_2}prev(){return this.equals(t.BUCKET_0)?t.BUCKET_2:this.equals(t.BUCKET_1)?t.BUCKET_0:this.equals(t.BUCKET_2)?t.BUCKET_1:t.BUCKET_0}equals(s){return this===s?!0:s?this.value.equals(s.value):!1}}return Cu.default=t,Cu}var Wm={},$2={};Object.defineProperty($2,"__esModule",{value:!0});var ku={};Object.defineProperty(ku,"__esModule",{value:!0}),ku.LexoNumeralSystem10=void 0;class h6{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}ku.LexoNumeralSystem10=h6;var _u={};Object.defineProperty(_u,"__esModule",{value:!0}),_u.LexoNumeralSystem36=void 0;class u6{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}_u.LexoNumeralSystem36=u6;var xu={};Object.defineProperty(xu,"__esModule",{value:!0}),xu.LexoNumeralSystem64=void 0;class p6{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}xu.LexoNumeralSystem64=p6,function(i){var e=ai&&ai.__createBinding||(Object.create?function(o,s,r,l){l===void 0&&(l=r);var c=Object.getOwnPropertyDescriptor(s,r);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[r]}}),Object.defineProperty(o,l,c)}:function(o,s,r,l){l===void 0&&(l=r),o[l]=s[r]}),t=ai&&ai.__exportStar||function(o,s){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(s,r)&&e(s,o,r)};Object.defineProperty(i,"__esModule",{value:!0}),t($2,i),t(ku,i),t(_u,i),t(xu,i)}(Wm);var O2;function D2(){if(O2)return tc;O2=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.LexoRank=void 0;const i=ic,e=I2(),t=oc,o=Wm;class s{constructor(l,c){this.value=l.format()+"|"+s.formatDecimal(c),this.bucket=l,this.decimal=c}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=i.LexoDecimal.parse("0",s.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=i.LexoDecimal.parse("1",s.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=i.LexoDecimal.parse("8",s.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=s.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=i.LexoDecimal.parse("1000000",s.NUMERAL_SYSTEM).subtract(s.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=s.between(s.MIN_DECIMAL,s.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=i.LexoDecimal.parse("100000",s.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=i.LexoDecimal.parse(s.NUMERAL_SYSTEM.toChar(s.NUMERAL_SYSTEM.getBase()-2)+"00000",s.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return s.from(e.default.BUCKET_0,s.MIN_DECIMAL)}static middle(){const l=s.min();return l.between(s.max(l.bucket))}static max(l=e.default.BUCKET_0){return s.from(l,s.MAX_DECIMAL)}static initial(l){return l===e.default.BUCKET_0?s.from(l,s.INITIAL_MIN_DECIMAL):s.from(l,s.INITIAL_MAX_DECIMAL)}static between(l,c){if(l.getSystem().getBase()!==c.getSystem().getBase())throw new Error("Expected same system");let d=l,h=c,p;if(l.getScale()<c.getScale()){if(p=c.setScale(l.getScale(),!1),l.compareTo(p)>=0)return s.mid(l,c);h=p}if(l.getScale()>h.getScale()){if(p=l.setScale(h.getScale(),!0),p.compareTo(h)>=0)return s.mid(l,c);d=p}let f;for(let v=d.getScale();v>0;h=f){const b=v-1,y=d.setScale(b,!0);if(f=h.setScale(b,!1),y.compareTo(f)===0)return s.checkMid(l,c,y);if(y.compareTo(f)>0)break;v=b,d=y}let m=s.middleInternal(l,c,d,h),g;for(let v=m.getScale();v>0;v=g){g=v-1;const b=m.setScale(g);if(l.compareTo(b)>=0||b.compareTo(c)>=0)break;m=b}return m}static parse(l){const c=l.split("|"),d=e.default.from(c[0]),h=i.LexoDecimal.parse(c[1],s.NUMERAL_SYSTEM);return new s(d,h)}static from(l,c){if(c.getSystem().getBase()!==s.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new s(l,c)}static middleInternal(l,c,d,h){const p=s.mid(d,h);return s.checkMid(l,c,p)}static checkMid(l,c,d){return l.compareTo(d)>=0||d.compareTo(c)>=0?s.mid(l,c):d}static mid(l,c){const h=l.add(c).multiply(i.LexoDecimal.half(l.getSystem())),p=l.getScale()>c.getScale()?l.getScale():c.getScale();if(h.getScale()>p){const f=h.setScale(p,!1);if(f.compareTo(l)>0)return f;const m=h.setScale(p,!0);if(m.compareTo(c)<0)return m}return h}static formatDecimal(l){const c=l.format(),d=new t.default(c);let h=c.indexOf(s.NUMERAL_SYSTEM.getRadixPointChar());const p=s.NUMERAL_SYSTEM.toChar(0);for(h<0&&(h=c.length,d.append(s.NUMERAL_SYSTEM.getRadixPointChar()));h<6;)d.insert(0,p),++h;for(;d[d.length-1]===p;)d.length=d.length-1;return d.toString()}genPrev(){if(this.isMax())return new s(this.bucket,s.INITIAL_MAX_DECIMAL);const l=this.decimal.floor();let d=i.LexoDecimal.from(l).subtract(s.EIGHT_DECIMAL);return d.compareTo(s.MIN_DECIMAL)<=0&&(d=s.between(s.MIN_DECIMAL,this.decimal)),new s(this.bucket,d)}genNext(){if(this.isMin())return new s(this.bucket,s.INITIAL_MIN_DECIMAL);const l=this.decimal.ceil();let d=i.LexoDecimal.from(l).add(s.EIGHT_DECIMAL);return d.compareTo(s.MAX_DECIMAL)>=0&&(d=s.between(this.decimal,s.MAX_DECIMAL)),new s(this.bucket,d)}between(l){if(!this.bucket.equals(l.bucket))throw new Error("Between works only within the same bucket");const c=this.decimal.compareTo(l.decimal);if(c>0)return new s(this.bucket,s.between(l.decimal,this.decimal));if(c===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+l+" this.decimal="+this.decimal+" other.decimal="+l.decimal);return new s(this.bucket,s.between(this.decimal,l.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return s.from(this.bucket.next(),this.decimal)}inPrevBucket(){return s.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(s.MIN_DECIMAL)}isMax(){return this.decimal.equals(s.MAX_DECIMAL)}format(){return this.value}equals(l){return this===l?!0:l?this.value===l.value:!1}toString(){return this.value}compareTo(l){return this===l?0:l?this.value.localeCompare(l.value):1}}return tc.LexoRank=s,tc}(function(i){var e=ai&&ai.__createBinding||(Object.create?function(o,s,r,l){l===void 0&&(l=r);var c=Object.getOwnPropertyDescriptor(s,r);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[r]}}),Object.defineProperty(o,l,c)}:function(o,s,r,l){l===void 0&&(l=r),o[l]=s[r]}),t=ai&&ai.__exportStar||function(o,s){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(s,r)&&e(s,o,r)};Object.defineProperty(i,"__esModule",{value:!0}),t(D2(),i),t(I2(),i),t(ic,i),t(Sr,i)})(N2),function(i){var e=ai&&ai.__createBinding||(Object.create?function(o,s,r,l){l===void 0&&(l=r);var c=Object.getOwnPropertyDescriptor(s,r);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[r]}}),Object.defineProperty(o,l,c)}:function(o,s,r,l){l===void 0&&(l=r),o[l]=s[r]}),t=ai&&ai.__exportStar||function(o,s){for(var r in o)r!=="default"&&!Object.prototype.hasOwnProperty.call(s,r)&&e(s,o,r)};Object.defineProperty(i,"__esModule",{value:!0}),t(N2,i),t(Wm,i)}(Ht);const nc=60,V2=nc*8;function Eu(i,e){if(!i)return"0m";if(e==="days"){const o=Math.floor(i/V2),s=Math.floor(i%V2/nc);if(o>0&&s>0)return`${o}d ${s}h`;if(o>0)return`${o}d`;{const r=i%nc;return r>0?`${s}h ${r}m`:`${s}h`}}else{const o=Math.floor(i/nc),s=i%nc;return o>0&&s>0?`${o}h ${s}m`:o>0?`${o}h`:`${s}m`}}function R2(i){return(i==null?void 0:i.reduce((e,t)=>{var o;return e+(((o=t.activities)==null?void 0:o.length)??0)},0))??0}function f6(i){return(i==null?void 0:i.reduce((e,t)=>{var o;return e+(((o=t.milestones)==null?void 0:o.length)??0)},0))??0}function m6(i){return(i==null?void 0:i.reduce((e,t)=>{var s;const o=(s=t.milestones)!=null&&s.length?R2(t.milestones):0;return e+o},0))??0}function g6(i){return i.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function rc(i,e){if(i.moved)return Ar(e,i.moved.newIndex)}function Ar(i,e){if(e===0)if(i.length>1){const t=i[e+1];return Ht.LexoRank.parse(t.rank).genPrev().format()}else return Ht.LexoRank.middle().format();else if(e===i.length-1){const t=i[e-1];return Ht.LexoRank.parse(t.rank).genNext().format()}else{const t=i[e-1],o=i[e+1];return Ht.LexoRank.parse(o.rank).between(Ht.LexoRank.parse(t.rank)).format()}}function Tu(i,e="dd/MM/yyyy"){if(!i)return"";const t=Jl(i);return w2(t)?A2(t,e):""}function Um(i,e){return i.status.id===e.id}function b6(i,e){return i.activities.length===0?!1:!i.activities.some(t=>!Um(t,e))}function v6(i,e){return{...i,status:b6(i,e)?Gl.done:Gl.todo}}const z2=i=>{const{firstName:e,lastName:t}=i||{};return`${e??""}${e?" ":""}${t??""}`};function y6(i,e){const t=i.replace("#",""),o=parseInt(t.slice(0,2),16),s=parseInt(t.slice(2,4),16),r=parseInt(t.slice(4,6),16);return`rgba(${o}, ${s}, ${r}, ${e})`}function w6(i,e=.15){var t;if(i.startsWith("#"))return y6(i,e);if(i.startsWith("rgba")){const o=(t=i.match(/rgba?\(([^)]+)\)/))==null?void 0:t[1].split(",").map(s=>s.trim());if(o&&o.length>=3){const[s,r,l]=o;return`rgba(${s}, ${r}, ${l}, ${e})`}}return i}const C6=["title"],k6={key:0,className:"ao-avatar__initials"},_6=["src"],xo=a.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:fu.MD},color:{default:"primary"}},emits:["close"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>[`ao-avatar--${t.color}`,...t.avatarUrl?["ao-avatar-img",`ao-avatar-img--${t.size}`]:["ao-avatar",`ao-avatar--${t.size}`]]),r=g6(t.userName),l=c=>{o("close",c)};return(c,d)=>(a.openBlock(),a.createElementBlock("div",{role:"img",class:a.normalizeClass(s.value),title:i.userName},[i.avatarUrl?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",k6,a.toDisplayString(a.unref(r)),1)),i.avatarUrl?(a.openBlock(),a.createElementBlock("img",{key:1,className:"ao-avatar__image",src:i.avatarUrl},null,8,_6)):a.createCommentVNode("",!0),i.isClosable?(a.openBlock(),a.createBlock(Ee,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:i.color,corners:"round",onClick:a.withModifiers(l,["stop"])},null,8,["color"])):a.createCommentVNode("",!0)],10,C6))}}),dR="",x6={class:"ao-card-template__subitems"},E6={class:"ao-card-template__subitem"},T6={class:"ao-card-template__subitem-number"},M6={class:"ao-card-template__subitem"},S6={class:"ao-card-template__subitem"},A6={class:"ao-card-template__body"},B6={class:"ao-card-template__col ao-card-template__col--phases"},N6={class:"ao-card-template__col-title"},L6={class:"ao-card-template__col-label"},I6={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},$6={class:"ao-card-template__footer"},O6={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},D6={class:"ao-card-template__col-title"},V6={class:"ao-card-template__col-label"},R6={class:"ao-card-template__col-body"},z6={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},P6={class:"ao-card-template__col-title"},H6={class:"ao-card-template__col-label"},j6={class:"ao-card-template__col-body"},F6={class:"ao-card-template-item__secondary"},qm=5,W6=a.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(i,{emit:e}){const t=i,o=e,s=d=>{o("updateTitle",d)},r=(d,h)=>{o("deleteItem",d,h)},l=a.computed(()=>{var d;return((d=t.phases)==null?void 0:d.slice(0,qm))??[]}),c=a.computed(()=>t.phases&&t.phases.length>qm?t.phases.length-qm:0);return(d,h)=>(a.openBlock(),a.createBlock(h2,{id:i.id,title:i.title,"is-draggable":!0,"onUpdate:title":s},a.createSlots({subtitle:a.withCtx(()=>[a.createElementVNode("ul",x6,[a.createElementVNode("li",E6,[a.createVNode(Ze,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",T6,a.toDisplayString(i.milestones),1)]),a.createElementVNode("li",M6,[a.createVNode(Ze,{name:"TaskOutlineRounded",size:"sm"}),a.createElementVNode("span",S6,a.toDisplayString(i.activities),1)])])]),default:a.withCtx(()=>[a.createElementVNode("div",A6,[a.createElementVNode("div",B6,[a.createElementVNode("div",N6,[a.createVNode(Ze,{name:"WaterfallChartRounded",size:"sm"}),a.createElementVNode("span",L6,a.toDisplayString(d.$t("template.phases.title")),1)]),i.phases?(a.openBlock(),a.createElementBlock("ul",I6,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.value,p=>(a.openBlock(),a.createBlock(Zl,{key:p.id,label:p.name||p.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),c.value>0?(a.openBlock(),a.createBlock(Zl,{key:0,label:`+${c.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])]),secondary:a.withCtx(()=>[a.createElementVNode("div",F6,[a.createVNode(Ee,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:h[0]||(h[0]=a.withModifiers(p=>r(i.id,i.title),["stop"]))})])]),_:2},[i.updatedBy||i.updatedAt?{name:"footer",fn:a.withCtx(()=>[a.createElementVNode("div",$6,[i.updatedAt?(a.openBlock(),a.createElementBlock("div",O6,[a.createElementVNode("div",D6,[a.createElementVNode("span",V6,a.toDisplayString(d.$t("template.updatedAt.label")),1)]),a.createElementVNode("div",R6,[a.createElementVNode("span",null,a.toDisplayString(i.updatedAt),1)])])):a.createCommentVNode("",!0),i.updatedBy?(a.openBlock(),a.createElementBlock("div",z6,[a.createElementVNode("div",P6,[a.createElementVNode("span",H6,a.toDisplayString(d.$t("template.updatedBy.label")),1)]),a.createElementVNode("div",j6,[a.createVNode(xo,{"user-name":i.updatedBy},null,8,["user-name"])])])):a.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}}),hR="",U6={class:"ao-page-header"},q6={class:"ao-page-header-main"},Z6={key:0,class:"ao-page-header-secondary"},ac=a.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("header",U6,[a.createElementVNode("div",q6,[i.canGoBack?(a.openBlock(),a.createBlock(Ee,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:t[0]||(t[0]=o=>e.$emit("goBack"))})):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(a.openBlock(),a.createElementBlock("div",Z6,[a.renderSlot(e.$slots,"secondary")])):a.createCommentVNode("",!0)]))}}),uR="",G6=["type"],Y6={key:0,class:"ao-button-card__label"},Qo=a.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Pm.BLACK},size:{default:()=>fu.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>d2.ROUNDED}},setup(i){const e=i,t=a.computed(()=>e.size),o=a.computed(()=>e.isLoading?"Loading":e.iconName);return(s,r)=>(a.openBlock(),a.createElementBlock("button",{type:i.type,class:a.normalizeClass(["ao-button-card",`ao-button-card--${i.color}`,`ao-button-card--${i.corners}`,s.$attrs.disabled?"ao-button-card--is-disabled":""])},[a.renderSlot(s.$slots,"default",{},()=>[i.label?(a.openBlock(),a.createElementBlock("span",Y6,a.toDisplayString(i.label),1)):a.createCommentVNode("",!0)]),o.value?(a.openBlock(),a.createBlock(Ze,{key:0,name:o.value,class:"ao-button-card__icon",size:t.value},null,8,["name","size"])):a.createCommentVNode("",!0)],10,G6))}}),pR="",K6={class:"ao-card-template-item__footer"},X6={key:0,class:"ao-card-template-item__subitem"},Q6={class:"ao-card-template-item__subitem-number"},J6={class:"ao-card-template-item__secondary"},Zm=a.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(i,{emit:e}){const t=e,o=c=>{t("update:title",c)},s=["milestones","activities","rules","tasks"],r={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},l=()=>{t("remove")};return(c,d)=>(a.openBlock(),a.createBlock(h2,{"onUpdate:title":o},{footer:a.withCtx(()=>[a.createElementVNode("ul",K6,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(s,h=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h},[c.$props[h]?(a.openBlock(),a.createElementBlock("li",X6,[a.createVNode(Ze,{name:r[h],size:"sm"},null,8,["name"]),a.createElementVNode("span",Q6,a.toDisplayString(c.$props[h]),1)])):a.createCommentVNode("",!0)],64))),64))])]),secondary:a.withCtx(()=>[a.createElementVNode("div",J6,[a.createVNode(Ee,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:a.withModifiers(l,["stop"])})])]),_:1}))}}),fR="",e8=a.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(i){const e=i,t=a.computed(()=>{var s;return(s=e.milestones)==null?void 0:s.length}),o=a.computed(()=>e.milestones?R2(e.milestones):0);return(s,r)=>(a.openBlock(),a.createBlock(Zm,a.mergeProps({id:i.id,title:i.name,activities:o.value,milestones:t.value},s.$attrs),{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),t8=a.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(i){const e=i,t=a.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,s)=>(a.openBlock(),a.createBlock(Zm,{activities:t.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),i8={class:"ao-list__footer"},o8=a.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(i,{emit:e}){const t=i,o=e,s=()=>{o("addMilestone",{phaseId:t.phase.id})},r=d=>{o("removeMilestone",{phaseId:t.phase.id,id:d})},l=d=>{o("updateMilestone",d)},c=d=>{if(d.moved){const h=rc(d,t.phase.milestones);o("updateMilestone",{id:d.moved.element.id,rank:h})}};return(d,h)=>i.phase?(a.openBlock(),a.createBlock(a.unref(Li),{key:0,"model-value":i.phase.milestones,class:"ao-templates__list",title:d.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:c},{header:a.withCtx(()=>[a.createVNode(Pt,{title:"Milestones",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:p})=>[(a.openBlock(),a.createBlock(t8,{id:p.id,key:p.id,title:p.name,activities:p.activities,"is-active":i.milestoneId===p.id,"is-draggable":!0,"onUpdate:title":f=>l({id:p.id,name:f}),onClick:f=>d.$router.push({params:{milestoneId:p.id}}),onRemove:()=>r(p.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",i8,[a.createVNode(Qo,{"icon-name":"AddBoxOutlineRounded",label:d.$t("template.milestones.add"),onClick:s},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),s8=a.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(i){const e=i,t=a.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,s)=>(a.openBlock(),a.createBlock(Zm,{tasks:t.value},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),n8={class:"ao-list__footer"},r8=a.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(i,{emit:e}){const t=i,o=e,s=()=>{o("addActivity",{milestoneId:t.milestone.id})},r=d=>{o("updateActivity",{...d})},l=d=>{o("removeActivity",{id:d})},c=d=>{if(d.moved){const h=rc(d,t.milestone.activities);o("updateActivity",{id:d.moved.element.id,rank:h})}};return(d,h)=>i.milestone?(a.openBlock(),a.createBlock(a.unref(Li),{key:0,"model-value":i.milestone.activities,title:d.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:c},{header:a.withCtx(()=>[a.createVNode(Pt,{title:"Activities",level:3,class:"ao-list__title"})]),item:a.withCtx(({element:p})=>[(a.openBlock(),a.createBlock(s8,{id:p.id,key:p.id,title:p.name,tasks:p.tasks,"is-active":i.activityId===p.id,"is-draggable":!0,"onUpdate:title":f=>r({id:p.id,name:f}),onClick:f=>d.$router.push({params:{activityId:p.id}}),onRemove:()=>l(p.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:a.withCtx(()=>[a.createElementVNode("div",n8,[a.createVNode(Qo,{"icon-name":"AddBoxOutlineRounded",label:d.$t("template.activities.add"),onClick:s},null,8,["label"])])]),_:1},8,["model-value","title"])):a.createCommentVNode("",!0)}}),a8={class:"ao-modal"},l8={key:0,class:"ao-modal__header"},c8={class:"ao-modal__header-meta"},d8={class:"ao-modal__title-group"},h8={class:"ao-modal__body"},u8={key:1,class:"ao-modal__footer"},Mu=a.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${i.size}`])},[a.createElementVNode("div",{class:"ao-modal__backdrop",onClick:t[0]||(t[0]=o=>e.$emit("close"))}),a.createElementVNode("div",a8,[e.$slots.header?(a.openBlock(),a.createElementBlock("div",l8,[a.createElementVNode("div",c8,[a.createVNode(Ee,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:t[1]||(t[1]=o=>e.$emit("close"))})]),a.createElementVNode("header",d8,[a.renderSlot(e.$slots,"header")])])):a.createCommentVNode("",!0),a.createElementVNode("div",h8,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",u8,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])],2))}}),mR="",lc=Math.min,Jo=Math.max,Su=Math.round,Au=Math.floor,Eo=i=>({x:i,y:i}),p8={left:"right",right:"left",bottom:"top",top:"bottom"};function Gm(i,e){return typeof i=="function"?i(e):i}function Br(i){return i.split("-")[0]}function Bu(i){return i.split("-")[1]}function f8(i){return i==="x"?"y":"x"}function P2(i){return i==="y"?"height":"width"}function en(i){const e=i[0];return e==="t"||e==="b"?"y":"x"}function H2(i){return f8(en(i))}function m8(i,e,t){t===void 0&&(t=!1);const o=Bu(i),s=H2(i),r=P2(s);let l=s==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=Nu(l)),[l,Nu(l)]}function g8(i){const e=Nu(i);return[Ym(i),e,Ym(e)]}function Ym(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}const j2=["left","right"],F2=["right","left"],b8=["top","bottom"],v8=["bottom","top"];function y8(i,e,t){switch(i){case"top":case"bottom":return t?e?F2:j2:e?j2:F2;case"left":case"right":return e?b8:v8;default:return[]}}function w8(i,e,t,o){const s=Bu(i);let r=y8(Br(i),t==="start",o);return s&&(r=r.map(l=>l+"-"+s),e&&(r=r.concat(r.map(Ym)))),r}function Nu(i){const e=Br(i);return p8[e]+i.slice(e.length)}function C8(i){var e,t,o,s;return{top:(e=i.top)!=null?e:0,right:(t=i.right)!=null?t:0,bottom:(o=i.bottom)!=null?o:0,left:(s=i.left)!=null?s:0}}function k8(i){return typeof i!="number"?C8(i):{top:i,right:i,bottom:i,left:i}}function Lu(i){const{x:e,y:t,width:o,height:s}=i;return{width:o,height:s,top:t,left:e,right:e+o,bottom:t+s,x:e,y:t}}function W2(i,e,t){let{reference:o,floating:s}=i;const r=en(e),l=H2(e),c=P2(l),d=Br(e),h=r==="y",p=o.x+o.width/2-s.width/2,f=o.y+o.height/2-s.height/2,m=o[c]/2-s[c]/2;let g;switch(d){case"top":g={x:p,y:o.y-s.height};break;case"bottom":g={x:p,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:f};break;case"left":g={x:o.x-s.width,y:f};break;default:g={x:o.x,y:o.y}}const v=Bu(e);return v&&(g[l]+=m*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function _8(i,e){var t;e===void 0&&(e={});const{x:o,y:s,platform:r,rects:l,elements:c,strategy:d}=i,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=Gm(e,i),v=k8(g),y=c[m?f==="floating"?"reference":"floating":f],C=Lu(await r.getClippingRect({element:(t=await(r.isElement==null?void 0:r.isElement(y)))==null||t?y:y.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:h,rootBoundary:p,strategy:d})),k=f==="floating"?{x:o,y:s,width:l.floating.width,height:l.floating.height}:l.reference,_=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),S=await(r.isElement==null?void 0:r.isElement(_))&&await(r.getScale==null?void 0:r.getScale(_))||{x:1,y:1},T=Lu(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:k,offsetParent:_,strategy:d}):k);return{top:(C.top-T.top+v.top)/S.y,bottom:(T.bottom-C.bottom+v.bottom)/S.y,left:(C.left-T.left+v.left)/S.x,right:(T.right-C.right+v.right)/S.x}}const x8=50,E8=async(i,e,t)=>{const{placement:o="bottom",strategy:s="absolute",middleware:r=[],platform:l}=t,c=l.detectOverflow?l:{...l,detectOverflow:_8},d=await(l.isRTL==null?void 0:l.isRTL(e));let h=await l.getElementRects({reference:i,floating:e,strategy:s}),{x:p,y:f}=W2(h,o,d),m=o,g=0;const v={};for(let b=0;b<r.length;b++){const y=r[b];if(!y)continue;const{name:C,fn:k}=y,{x:_,y:S,data:T,reset:M}=await k({x:p,y:f,initialPlacement:o,placement:m,strategy:s,middlewareData:v,rects:h,platform:c,elements:{reference:i,floating:e}});p=_??p,f=S??f,v[C]={...v[C],...T},M&&g<x8&&(g++,typeof M=="object"&&(M.placement&&(m=M.placement),M.rects&&(h=M.rects===!0?await l.getElementRects({reference:i,floating:e,strategy:s}):M.rects),{x:p,y:f}=W2(h,m,d)),b=-1)}return{x:p,y:f,placement:m,strategy:s,middlewareData:v}},T8=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var t,o;const{placement:s,middlewareData:r,rects:l,initialPlacement:c,platform:d,elements:h}=e,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...y}=Gm(i,e);if((t=r.arrow)!=null&&t.alignmentOffset)return{};const C=Br(s),k=en(c),_=Br(c)===c,S=await(d.isRTL==null?void 0:d.isRTL(h.floating)),T=m||(_||!b?[Nu(c)]:g8(c)),M=v!=="none";!m&&M&&T.push(...w8(c,b,v,S));const N=[c,...T],A=await d.detectOverflow(e,y),B=[];let $=((o=r.flip)==null?void 0:o.overflows)||[];if(p&&B.push(A[C]),f){const I=m8(s,l,S);B.push(A[I[0]],A[I[1]])}if($=[...$,{placement:s,overflows:B}],!B.every(I=>I<=0)){var L,O;const I=(((L=r.flip)==null?void 0:L.index)||0)+1,R=N[I];if(R&&(!(f==="alignment"?k!==en(R):!1)||$.every(H=>en(H.placement)===k?H.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:R}};let F=(O=$.filter(q=>q.overflows[0]<=0).sort((q,H)=>q.overflows[1]-H.overflows[1])[0])==null?void 0:O.placement;if(!F)switch(g){case"bestFit":{var D;const q=(D=$.filter(H=>{if(M){const V=en(H.placement);return V===k||V==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(V=>V>0).reduce((V,Z)=>V+Z,0)]).sort((H,V)=>H[1]-V[1])[0])==null?void 0:D[0];q&&(F=q);break}case"initialPlacement":F=c;break}if(s!==F)return{reset:{placement:F}}}return{}}}},M8=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(e){const{placement:t,rects:o,platform:s,elements:r}=e,{apply:l=()=>{},...c}=Gm(i,e),d=await s.detectOverflow(e,c),h=Br(t),p=Bu(t),f=en(t)==="y",{width:m,height:g}=o.floating;let v,b;h==="top"||h==="bottom"?(v=h,b=p===(await(s.isRTL==null?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(b=h,v=p==="end"?"top":"bottom");const y=g-d.top-d.bottom,C=m-d.left-d.right,k=lc(g-d[v],y),_=lc(m-d[b],C),S=e.middlewareData.shift,T=!S;let M=k,N=_;S!=null&&S.enabled.x&&(N=C),S!=null&&S.enabled.y&&(M=y),T&&!p&&(f?N=m-2*Jo(d.left,d.right):M=g-2*Jo(d.top,d.bottom)),await l({...e,availableWidth:N,availableHeight:M});const A=await s.getDimensions(r.floating);return m!==A.width||g!==A.height?{reset:{rects:!0}}:{}}}};function Iu(){return typeof window<"u"}function Nr(i){return U2(i)?(i.nodeName||"").toLowerCase():"#document"}function Qt(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function To(i){var e;return(e=(U2(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function U2(i){return Iu()?i instanceof Node||i instanceof Qt(i).Node:!1}function qi(i){return Iu()?i instanceof Element||i instanceof Qt(i).Element:!1}function es(i){return Iu()?i instanceof HTMLElement||i instanceof Qt(i).HTMLElement:!1}function q2(i){return!Iu()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof Qt(i).ShadowRoot}function $u(i){const{overflow:e,overflowX:t,overflowY:o,display:s}=Zi(i);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&s!=="inline"&&s!=="contents"}function S8(i){return/^(table|td|th)$/.test(Nr(i))}function Ou(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}const A8=/transform|translate|scale|rotate|perspective|filter/,B8=/paint|layout|strict|content/,tn=i=>!!i&&i!=="none";let Km;function Xm(i){const e=qi(i)?Zi(i):i;return tn(e.transform)||tn(e.translate)||tn(e.scale)||tn(e.rotate)||tn(e.perspective)||!Qm()&&(tn(e.backdropFilter)||tn(e.filter))||A8.test(e.willChange||"")||B8.test(e.contain||"")}function N8(i){let e=on(i);for(;es(e)&&!cc(e);){if(Xm(e))return e;if(Ou(e))return null;e=on(e)}return null}function Qm(){return Km==null&&(Km=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Km}function cc(i){return/^(html|body|#document)$/.test(Nr(i))}function Zi(i){return Qt(i).getComputedStyle(i)}function Du(i){return qi(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function on(i){if(Nr(i)==="html")return i;const e=i.assignedSlot||i.parentNode||q2(i)&&i.host||To(i);return q2(e)?e.host:e}function Z2(i){const e=on(i);return cc(e)?(i.ownerDocument||i).body:es(e)&&$u(e)?e:Z2(e)}function dc(i,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);const s=Z2(i),r=s===((o=i.ownerDocument)==null?void 0:o.body),l=Qt(s);if(r){const c=Jm(l);return e.concat(l,l.visualViewport||[],$u(s)?s:[],c&&t?dc(c):[])}else return e.concat(s,dc(s,[],t))}function Jm(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function G2(i){const e=Zi(i);let t=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const s=es(i),r=s?i.offsetWidth:t,l=s?i.offsetHeight:o,c=Su(t)!==r||Su(o)!==l;return c&&(t=r,o=l),{width:t,height:o,$:c}}function eg(i){return qi(i)?i:i.contextElement}function Lr(i){const e=eg(i);if(!es(e))return Eo(1);const t=e.getBoundingClientRect(),{width:o,height:s,$:r}=G2(e);let l=(r?Su(t.width):t.width)/o,c=(r?Su(t.height):t.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const L8=Eo(0);function Y2(i){const e=Qt(i);return!Qm()||!e.visualViewport?L8:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function I8(i,e,t){return e===void 0&&(e=!1),!!t&&e&&t===Qt(i)}function sn(i,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);const s=i.getBoundingClientRect(),r=eg(i);let l=Eo(1);e&&(o?qi(o)&&(l=Lr(o)):l=Lr(i));const c=I8(r,t,o)?Y2(r):Eo(0);let d=(s.left+c.x)/l.x,h=(s.top+c.y)/l.y,p=s.width/l.x,f=s.height/l.y;if(r&&o){const m=Qt(r),g=qi(o)?Qt(o):o;let v=m,b=Jm(v);for(;b&&g!==v;){const y=Lr(b),C=b.getBoundingClientRect(),k=Zi(b),_=C.left+(b.clientLeft+parseFloat(k.paddingLeft))*y.x,S=C.top+(b.clientTop+parseFloat(k.paddingTop))*y.y;d*=y.x,h*=y.y,p*=y.x,f*=y.y,d+=_,h+=S,v=Qt(b),b=Jm(v)}}return Lu({width:p,height:f,x:d,y:h})}function Vu(i,e){const t=Du(i).scrollLeft;return e?e.left+t:sn(To(i)).left+t}function K2(i,e){const t=i.getBoundingClientRect(),o=t.left+e.scrollLeft-Vu(i,t),s=t.top+e.scrollTop;return{x:o,y:s}}function $8(i){let{elements:e,rect:t,offsetParent:o,strategy:s}=i;const r=s==="fixed",l=To(o),c=e?Ou(e.floating):!1;if(o===l||c&&r)return t;let d={scrollLeft:0,scrollTop:0},h=Eo(1);const p=Eo(0),f=es(o);if((f||!r)&&((Nr(o)!=="body"||$u(l))&&(d=Du(o)),f)){const g=sn(o);h=Lr(o),p.x=g.x+o.clientLeft,p.y=g.y+o.clientTop}const m=l&&!f&&!r?K2(l,d):Eo(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+p.x+m.x,y:t.y*h.y-d.scrollTop*h.y+p.y+m.y}}function O8(i){return i.getClientRects?Array.from(i.getClientRects()):[]}function D8(i){const e=Du(i),t=i.ownerDocument.body,o=Jo(i.scrollWidth,i.clientWidth,t.scrollWidth,t.clientWidth),s=Jo(i.scrollHeight,i.clientHeight,t.scrollHeight,t.clientHeight);let r=-e.scrollLeft+Vu(i);const l=-e.scrollTop;return Zi(t).direction==="rtl"&&(r+=Jo(i.clientWidth,t.clientWidth)-o),{width:o,height:s,x:r,y:l}}const V8=25;function R8(i,e,t){t===void 0&&(t="viewport");const o=t==="layoutViewport",s=Qt(i),r=To(i),l=s.visualViewport;let c=r.clientWidth,d=r.clientHeight,h=0,p=0;if(l){const m=!Qm()||e==="fixed";o?m||(h=-l.offsetLeft,p=-l.offsetTop):(c=l.width,d=l.height,m&&(h=l.offsetLeft,p=l.offsetTop))}if(Vu(r)<=0){const m=r.ownerDocument,g=m.body,v=getComputedStyle(g),b=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,y=Math.abs(r.clientWidth-g.clientWidth-b),C=getComputedStyle(r).scrollbarGutter==="stable both-edges"?y/2:y;C<=V8&&(c-=C)}return{width:c,height:d,x:h,y:p}}function z8(i,e){const t=sn(i,!0,e==="fixed"),o=t.top+i.clientTop,s=t.left+i.clientLeft,r=Lr(i),l=i.clientWidth*r.x,c=i.clientHeight*r.y,d=s*r.x,h=o*r.y;return{width:l,height:c,x:d,y:h}}function X2(i,e,t){let o;if(e==="viewport"||e==="layoutViewport")o=R8(i,t,e);else if(e==="document")o=D8(To(i));else if(qi(e))o=z8(e,t);else{const s=Y2(i);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Lu(o)}function P8(i,e){const t=e.get(i);if(t)return t;let o=dc(i,[],!1).filter(c=>qi(c)&&Nr(c)!=="body"),s=null;const r=Zi(i).position==="fixed";let l=r?on(i):i;for(;qi(l)&&!cc(l);){const c=Zi(l),d=Xm(l),h=s?s.position:r?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&c.position==="static")?o=o.filter(f=>f!==l):s=c,l=on(l)}return e.set(i,o),o}function H8(i){let{element:e,boundary:t,rootBoundary:o,strategy:s}=i;const l=[...t==="clippingAncestors"?Ou(e)?[]:P8(e,this._c):[].concat(t),o],c=X2(e,l[0],s);let d=c.top,h=c.right,p=c.bottom,f=c.left;for(let m=1;m<l.length;m++){const g=X2(e,l[m],s);d=Jo(g.top,d),h=lc(g.right,h),p=lc(g.bottom,p),f=Jo(g.left,f)}return{width:h-f,height:p-d,x:f,y:d}}function j8(i){const{width:e,height:t}=G2(i);return{width:e,height:t}}function F8(i,e,t){const o=es(e),s=To(e),r=t==="fixed",l=sn(i,!0,r,e);let c={scrollLeft:0,scrollTop:0};const d=Eo(0);if((o||!r)&&((Nr(e)!=="body"||$u(s))&&(c=Du(e)),o)){const m=sn(e,!0,r,e);d.x=m.x+e.clientLeft,d.y=m.y+e.clientTop}!o&&s&&(d.x=Vu(s));const h=s&&!o&&!r?K2(s,c):Eo(0),p=l.left+c.scrollLeft-d.x-h.x,f=l.top+c.scrollTop-d.y-h.y;return{x:p,y:f,width:l.width,height:l.height}}function tg(i){return Zi(i).position==="static"}function Q2(i,e){if(!es(i)||Zi(i).position==="fixed")return null;if(e)return e(i);let t=i.offsetParent;return To(i)===t&&(t=t.ownerDocument.body),t}function J2(i,e){const t=Qt(i);if(Ou(i))return t;if(!es(i)){let s=on(i);for(;s&&!cc(s);){if(qi(s)&&!tg(s))return s;s=on(s)}return t}let o=Q2(i,e);for(;o&&S8(o)&&tg(o);)o=Q2(o,e);return o&&cc(o)&&tg(o)&&!Xm(o)?t:o||N8(i)||t}const W8=async function(i){const e=this.getOffsetParent||J2,t=this.getDimensions,o=await t(i.floating);return{reference:F8(i.reference,await e(i.floating),i.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function U8(i){return Zi(i).direction==="rtl"}const q8={convertOffsetParentRelativeRectToViewportRelativeRect:$8,getDocumentElement:To,getClippingRect:H8,getOffsetParent:J2,getElementRects:W8,getClientRects:O8,getDimensions:j8,getScale:Lr,isElement:qi,isRTL:U8};function eb(i,e){return i.x===e.x&&i.y===e.y&&i.width===e.width&&i.height===e.height}function Z8(i,e,t){let o=null,s;const r=To(i);function l(){var p;clearTimeout(s),(p=o)==null||p.disconnect(),o=null}function c(p,f){p===void 0&&(p=!1),f===void 0&&(f=1),l();const m=i.getBoundingClientRect(),{left:g,top:v,width:b,height:y}=m;if(p||e(),!b||!y)return;const C=Au(v),k=Au(r.clientWidth-(g+b)),_=Au(r.clientHeight-(v+y)),S=Au(g),M={rootMargin:-C+"px "+-k+"px "+-_+"px "+-S+"px",threshold:Jo(0,lc(1,f))||1};let N=!0;function A(B){const $=B[0].intersectionRatio;if(!eb(m,i.getBoundingClientRect()))return c();if($!==f){if(!N)return c();$?c(!1,$):s=setTimeout(()=>{c(!1,1e-7)},1e3)}N=!1}try{o=new IntersectionObserver(A,{...M,root:r.ownerDocument})}catch{o=new IntersectionObserver(A,M)}o.observe(i)}const d=Qt(i),h=()=>c(t);return d.addEventListener("resize",h),c(!0),()=>{d.removeEventListener("resize",h),l()}}function G8(i,e,t,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,h=eg(i),p=s||r?[...h?dc(h):[],...e?dc(e):[]]:[];p.forEach(C=>{s&&C.addEventListener("scroll",t),r&&C.addEventListener("resize",t)});const f=h&&c?Z8(h,t,r):null;let m=-1,g=null;l&&(g=new ResizeObserver(C=>{let[k]=C;k&&k.target===h&&g&&e&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(e)})),t()}),h&&!d&&g.observe(h),e&&g.observe(e));let v,b=d?sn(i):null;d&&y();function y(){const C=sn(i);b&&!eb(b,C)&&t(),b=C,v=requestAnimationFrame(y)}return t(),()=>{var C;p.forEach(k=>{s&&k.removeEventListener("scroll",t),r&&k.removeEventListener("resize",t)}),f==null||f(),(C=g)==null||C.disconnect(),g=null,d&&cancelAnimationFrame(v)}}const Y8=T8,K8=M8,X8=(i,e,t)=>{const o=new Map,s=t??{},r={...q8,...s.platform,_c:o};return E8(i,e,{...s,platform:r})},Q8=i=>{const e=a.ref(!1),t=a.ref(),o=a.ref(),s=a.ref(0);function r(){const f=a.unref(i.appendTo);return f?typeof f=="string"?document.getElementById(f)??document.body:f:document.getElementById("floatingElements")??document.body}const l=r(),c=a.ref(()=>{});function d(f){f.relatedTarget&&o.value&&o.value.contains(f.relatedTarget)||i.multiselect.value.deactivate()}function h(){const f=i.multiselect.value.$el,m=f.querySelector(".multiselect-dropdown");if(!m||!f||e.value===!0)return;o.value=m,t.value=f,getComputedStyle(m).getPropertyValue("display")==="none"&&(m.style.display="flex"),s.value=m.offsetHeight,m.style.removeProperty("display"),Object.assign(m.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),l.appendChild(m),i.multiselect.value.handleFocusOut=d;const v=G8(t.value,o.value,p);c.value=()=>{o.value&&l.contains(o.value)&&l.removeChild(o.value),v()}}function p(){!o.value||!t.value||X8(t.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[Y8({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),K8({apply({availableWidth:f,availableHeight:m,elements:g,rects:v}){Object.assign(g.floating.style,{minHeight:`${s.value}px`,width:`${v.reference.width}px`,maxWidth:`${f}px`,maxHeight:`${m}px`})}})]}).then(({x:f,y:m})=>{Object.assign(o.value.style,{left:`${f}px`,top:`${m}px`})})}a.onMounted(()=>{h()}),a.onBeforeUnmount(()=>{c.value()}),a.onUnmounted(()=>{c.value()})};function Gi(i){return i==null}function J8(i,e,t){const{object:o,valueProp:s,mode:r}=a.toRefs(i),l=a.getCurrentInstance().proxy,c=t.iv,d=(f,m=!0)=>{c.value=p(f);const g=h(f);e.emit("change",g,l),m&&(e.emit("input",g),e.emit("update:modelValue",g))},h=f=>o.value||Gi(f)?f:Array.isArray(f)?f.map(m=>m[s.value]):f[s.value],p=f=>Gi(f)?r.value==="single"?{}:[]:f;return{update:d}}function ht(i){return a.customRef(()=>({get:i,set:()=>{}}))}function e9(i,e){const{value:t,modelValue:o,mode:s,valueProp:r}=a.toRefs(i),l=a.ref(s.value!=="single"?[]:{}),c=ht(()=>o.value!==void 0?o.value:t.value),d=a.computed(()=>s.value==="single"?l.value[r.value]:l.value.map(p=>p[r.value])),h=ht(()=>s.value!=="single"?l.value.map(p=>p[r.value]).join(","):l.value[r.value]);return{iv:l,internalValue:l,ev:c,externalValue:c,textValue:h,plainValue:d}}function t9(i,e,t){const{regex:o}=a.toRefs(i),s=a.getCurrentInstance().proxy,r=t.isOpen,l=t.open,c=a.ref(null),d=()=>{c.value=""},h=m=>{c.value=m.target.value},p=m=>{if(o.value){let g=o.value;typeof g=="string"&&(g=new RegExp(g)),m.key.match(g)||m.preventDefault()}},f=m=>{if(o.value){let v=(m.clipboardData||window.clipboardData).getData("Text"),b=o.value;typeof b=="string"&&(b=new RegExp(b)),v.split("").every(y=>!!y.match(b))||m.preventDefault()}e.emit("paste",m,s)};return a.watch(c,m=>{!r.value&&m&&l(),e.emit("search-change",m,s)}),{search:c,clearSearch:d,handleSearchInput:h,handleKeypress:p,handlePaste:f}}function i9(i,e,t){const{groupSelect:o,mode:s,groups:r,disabledProp:l}=a.toRefs(i),c=a.ref(null),d=p=>{p===void 0||p!==null&&p[l.value]||r.value&&p&&p.group&&(s.value==="single"||!o.value)||(c.value=p)};return{pointer:c,setPointer:d,clearPointer:()=>{d(null)}}}function ig(i,e=!0){return e?String(i).toLowerCase().trim():String(i).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(/\p{Diacritic}/gu,"")}function o9(i){return Object.prototype.toString.call(i)==="[object Object]"}function s9(i,e){if(i.length!==e.length)return!1;const t=e.slice().sort();return i.slice().sort().every(function(o,s){return o===t[s]})}const tb=(i,e)=>{if(i===e)return!0;if(typeof i!="object"||i===null||typeof e!="object"||e===null)return!1;const t=Object.keys(i),o=Object.keys(e);if(t.length!==o.length)return!1;for(let s of t)if(!o.includes(s)||!tb(i[s],e[s]))return!1;return!0};function n9(i,e,t){const{options:o,mode:s,trackBy:r,limit:l,hideSelected:c,createTag:d,createOption:h,label:p,appendNewTag:f,appendNewOption:m,multipleLabel:g,object:v,loading:b,delay:y,resolveOnLoad:C,minChars:k,filterResults:_,clearOnSearch:S,clearOnSelect:T,valueProp:M,allowAbsent:N,groupLabel:A,canDeselect:B,max:$,strict:L,closeOnSelect:O,closeOnDeselect:D,groups:I,reverse:R,infinite:F,groupOptions:q,groupHideEmpty:H,groupSelect:V,onCreate:Z,disabledProp:j,searchStart:Y,searchFilter:ne}=a.toRefs(i),K=a.getCurrentInstance().proxy,J=t.iv,W=t.ev,ie=t.search,z=t.clearSearch,X=t.update,me=t.pointer,fe=t.setPointer,He=t.clearPointer,ue=t.focus,Be=t.deactivate,ke=t.close,ct=t.localize,Ne=a.ref([]),st=a.ref([]),Je=a.ref(!1),ri=a.ref(null),Ot=a.ref(F.value&&l.value===-1?10:l.value),yi=a.computed({get:()=>st.value,set:P=>st.value=P}),Go=ht(()=>d.value||h.value||!1),Wh=ht(()=>f.value!==void 0?f.value:m.value!==void 0?m.value:!0),Wi=a.computed(()=>{if(I.value){let P=_r.value||[],ee=[];return P.forEach(Ie=>{u0(Ie[q.value]).forEach(yt=>{ee.push(Object.assign({},yt,Ie[j.value]?{[j.value]:!0}:{}))})}),ee}else{let P=u0(st.value||[]);return Ne.value.length&&(P=P.concat(Ne.value)),P}}),Uh=a.computed(()=>{let P=Wi.value;return R.value&&(P=P.reverse()),zl.value.length&&(P=zl.value.concat(P)),h0(P)}),Ks=a.computed(()=>{let P=Uh.value;return Ot.value>0&&(P=P.slice(0,Ot.value)),P}),_r=a.computed(()=>{if(!I.value)return[];let P=[],ee=st.value||[];return Ne.value.length&&P.push({[A.value]:" ",[q.value]:[...Ne.value],__CREATE__:!0}),P.concat(ee)}),BV=a.computed(()=>{let P=[..._r.value].map(ee=>({...ee}));return zl.value.length&&(P[0]&&P[0].__CREATE__?P[0][q.value]=[...zl.value,...P[0][q.value]]:P=[{[A.value]:" ",[q.value]:[...zl.value],__CREATE__:!0}].concat(P)),P}),r0=a.computed(()=>{if(!I.value)return[];let P=BV.value;return UV((P||[]).map((ee,Ie)=>{const yt=u0(ee[q.value]);return{...ee,index:Ie,group:!0,[q.value]:h0(yt,!1).map(Er=>Object.assign({},Er,ee[j.value]?{[j.value]:!0}:{})),__VISIBLE__:h0(yt).map(Er=>Object.assign({},Er,ee[j.value]?{[j.value]:!0}:{}))}}))}),a0=a.computed(()=>{switch(s.value){case"single":return!Gi(J.value[M.value]);case"multiple":case"tags":return!Gi(J.value)&&J.value.length>0}}),NV=a.computed(()=>g.value!==void 0?g.value(J.value,K):J.value&&J.value.length>1?`${J.value.length} options selected`:"1 option selected"),LV=ht(()=>!Wi.value.length&&!Je.value&&!zl.value.length),IV=ht(()=>Wi.value.length>0&&Ks.value.length==0&&(ie.value&&I.value||!I.value)),zl=a.computed(()=>Go.value===!1||!ie.value?[]:jV(ie.value)!==-1?[]:[{[M.value]:ie.value,[xr.value[0]]:ie.value,[p.value]:ie.value,__CREATE__:!0}]),xr=a.computed(()=>r.value?Array.isArray(r.value)?r.value:[r.value]:[p.value]),$V=ht(()=>{switch(s.value){case"single":return null;case"multiple":case"tags":return[]}}),OV=ht(()=>b.value||Je.value),Pl=P=>{switch(typeof P!="object"&&(P=Ko(P)),s.value){case"single":X(P);break;case"multiple":case"tags":X(J.value.concat(P));break}e.emit("select",Yv(P),P,K)},Hl=P=>{switch(typeof P!="object"&&(P=Ko(P)),s.value){case"single":Xv();break;case"tags":case"multiple":X(Array.isArray(P)?J.value.filter(ee=>P.map(Ie=>Ie[M.value]).indexOf(ee[M.value])===-1):J.value.filter(ee=>ee[M.value]!=P[M.value]));break}e.emit("deselect",Yv(P),P,K)},Yv=P=>v.value?P:P[M.value],Kv=P=>{Hl(P)},DV=(P,ee)=>{if(ee.button!==0){ee.preventDefault();return}Kv(P)},Xv=()=>{X($V.value),e.emit("clear",K)},Yo=P=>{if(P.group!==void 0)return s.value==="single"?!1:HV(P[q.value])&&P[q.value].length;switch(s.value){case"single":return!Gi(J.value)&&(J.value[M.value]==P[M.value]||typeof J.value[M.value]=="object"&&typeof P[M.value]=="object"&&tb(J.value[M.value],P[M.value]));case"tags":case"multiple":return!Gi(J.value)&&J.value.map(ee=>ee[M.value]).indexOf(P[M.value])!==-1}},l0=P=>P[j.value]===!0,c0=()=>$===void 0||$.value===-1||!a0.value&&$.value>0?!1:J.value.length>=$.value,VV=P=>{if(!l0(P)){if(Z.value&&!Yo(P)&&P.__CREATE__&&(P={...P},delete P.__CREATE__,P=Z.value(P,K),P instanceof Promise)){Je.value=!0,P.then(ee=>{Je.value=!1,Qv(ee)});return}Qv(P)}},Qv=P=>{switch(P.__CREATE__&&(P={...P},delete P.__CREATE__),s.value){case"single":if(P&&Yo(P)){B.value&&Hl(P),D.value&&(He(),ke());return}P&&d0(P),T.value&&z(),O.value&&(He(),ke()),P&&Pl(P);break;case"multiple":if(P&&Yo(P)){Hl(P),D.value&&(He(),ke());return}if(c0()){e.emit("max",K);return}P&&(d0(P),Pl(P)),T.value&&z(),c.value&&He(),O.value&&ke();break;case"tags":if(P&&Yo(P)){Hl(P),D.value&&(He(),ke());return}if(c0()){e.emit("max",K);return}P&&d0(P),T.value&&z(),P&&Pl(P),c.value&&He(),O.value&&ke();break}O.value||ue()},RV=P=>{if(!(l0(P)||s.value==="single"||!V.value)){switch(s.value){case"multiple":case"tags":PV(P[q.value])?Hl(P[q.value]):Pl(P[q.value].filter(ee=>J.value.map(Ie=>Ie[M.value]).indexOf(ee[M.value])===-1).filter(ee=>!ee[j.value]).filter((ee,Ie)=>J.value.length+1+Ie<=$.value||$.value===-1)),c.value&&me.value&&fe(r0.value.filter(ee=>!ee[j.value])[me.value.index]);break}O.value&&Be()}},d0=P=>{Ko(P[M.value])===void 0&&Go.value&&(e.emit("tag",P[M.value],K),e.emit("option",P[M.value],K),e.emit("create",P[M.value],K),Wh.value&&WV(P),z())},zV=()=>{s.value!=="single"&&Pl(Ks.value.filter(P=>!P.disabled&&!Yo(P)))},PV=P=>P.find(ee=>!Yo(ee)&&!ee[j.value])===void 0,HV=P=>P.find(ee=>!Yo(ee))===void 0,Ko=P=>Wi.value[Wi.value.map(ee=>String(ee[M.value])).indexOf(String(P))],jV=P=>Wi.value.findIndex(ee=>xr.value.some(Ie=>(parseInt(ee[Ie])==ee[Ie]?parseInt(ee[Ie]):ee[Ie])===(parseInt(P)==P?parseInt(P):P))),FV=P=>["tags","multiple"].indexOf(s.value)!==-1&&c.value&&Yo(P),WV=P=>{Ne.value.push(P)},UV=P=>H.value?P.filter(ee=>ie.value?ee.__VISIBLE__.length:ee[q.value].length):P.filter(ee=>ie.value?ee.__VISIBLE__.length:!0),h0=(P,ee=!0)=>{let Ie=P;if(ie.value&&_.value){let yt=ne.value;yt||(yt=(Er,ey,dz)=>xr.value.some(ZV=>{let ty=ig(ct(Er[ZV]),L.value);return Y.value?ty.startsWith(ig(ey,L.value)):ty.indexOf(ig(ey,L.value))!==-1})),Ie=Ie.filter(Er=>yt(Er,ie.value,K))}return c.value&&ee&&(Ie=Ie.filter(yt=>!FV(yt))),Ie},u0=P=>{let ee=P;return o9(ee)&&(ee=Object.keys(ee).map(Ie=>{let yt=ee[Ie];return{[M.value]:Ie,[xr.value[0]]:yt,[p.value]:yt}})),ee&&Array.isArray(ee)?ee=ee.map(Ie=>typeof Ie=="object"?Ie:{[M.value]:Ie,[xr.value[0]]:Ie,[p.value]:Ie}):ee=[],ee},km=()=>{Gi(W.value)||(J.value=xm(W.value))},_m=P=>(Je.value=!0,new Promise((ee,Ie)=>{o.value(ie.value,K).then(yt=>{st.value=yt||[],typeof P=="function"&&P(yt),Je.value=!1}).catch(yt=>{console.error(yt),st.value=[],Je.value=!1}).finally(()=>{ee()})})),p0=()=>{if(a0.value)if(s.value==="single"){let P=Ko(J.value[M.value]);if(P!==void 0){let ee=P[p.value];J.value[p.value]=ee,v.value&&(W.value[p.value]=ee)}}else J.value.forEach((P,ee)=>{let Ie=Ko(J.value[ee][M.value]);if(Ie!==void 0){let yt=Ie[p.value];J.value[ee][p.value]=yt,v.value&&(W.value[ee][p.value]=yt)}})},qV=P=>{_m(P)},xm=P=>Gi(P)?s.value==="single"?{}:[]:v.value?P:s.value==="single"?Ko(P)||(N.value?{[p.value]:P,[M.value]:P,[xr.value[0]]:P}:{}):P.filter(ee=>!!Ko(ee)||N.value).map(ee=>Ko(ee)||{[p.value]:ee,[M.value]:ee,[xr.value[0]]:ee}),Jv=()=>{ri.value=a.watch(ie,P=>{P.length<k.value||!P&&k.value!==0||(Je.value=!0,S.value&&(st.value=[]),setTimeout(()=>{P==ie.value&&o.value(ie.value,K).then(ee=>{(P==ie.value||!ie.value)&&(st.value=ee,me.value=Ks.value.filter(Ie=>Ie[j.value]!==!0)[0]||null,Je.value=!1)}).catch(ee=>{console.error(ee)})},y.value))},{flush:"sync"})};if(s.value!=="single"&&!Gi(W.value)&&!Array.isArray(W.value))throw new Error(`v-model must be an array when using "${s.value}" mode`);return o&&typeof o.value=="function"?C.value?_m(km):v.value==!0&&km():(st.value=o.value,km()),y.value>-1&&Jv(),a.watch(y,(P,ee)=>{ri.value&&ri.value(),P>=0&&Jv()}),a.watch(W,P=>{if(Gi(P)){X(xm(P),!1);return}switch(s.value){case"single":(v.value?P[M.value]!=J.value[M.value]:P!=J.value[M.value])&&X(xm(P),!1);break;case"multiple":case"tags":s9(v.value?P.map(ee=>ee[M.value]):P,J.value.map(ee=>ee[M.value]))||X(xm(P),!1);break}},{deep:!0}),a.watch(o,(P,ee)=>{typeof i.options=="function"?C.value&&(!ee||P&&P.toString()!==ee.toString())&&_m():(st.value=i.options,Object.keys(J.value).length||km(),p0())}),a.watch(p,p0),a.watch(l,(P,ee)=>{Ot.value=F.value&&P===-1?10:P}),{resolvedOptions:yi,pfo:Uh,fo:Ks,filteredOptions:Ks,hasSelected:a0,multipleLabelText:NV,eo:Wi,extendedOptions:Wi,eg:_r,extendedGroups:_r,fg:r0,filteredGroups:r0,noOptions:LV,noResults:IV,resolving:Je,busy:OV,offset:Ot,select:Pl,deselect:Hl,remove:Kv,selectAll:zV,clear:Xv,isSelected:Yo,isDisabled:l0,isMax:c0,getOption:Ko,handleOptionClick:VV,handleGroupClick:RV,handleTagRemove:DV,refreshOptions:qV,resolveOptions:_m,refreshLabels:p0}}function r9(i,e,t){const{valueProp:o,showOptions:s,searchable:r,groupLabel:l,groups:c,mode:d,groupSelect:h,disabledProp:p,groupOptions:f}=a.toRefs(i),m=t.fo,g=t.fg,v=t.handleOptionClick,b=t.handleGroupClick,y=t.search,C=t.pointer,k=t.setPointer,_=t.clearPointer,S=t.multiselect,T=t.isOpen,M=a.computed(()=>m.value.filter(W=>!W[p.value])),N=a.computed(()=>g.value.filter(W=>!W[p.value])),A=ht(()=>d.value!=="single"&&h.value),B=ht(()=>C.value&&C.value.group),$=a.computed(()=>K(C.value)),L=a.computed(()=>{const W=B.value?C.value:K(C.value),ie=N.value.map(X=>X[l.value]).indexOf(W[l.value]);let z=N.value[ie-1];return z===void 0&&(z=D.value),z}),O=a.computed(()=>{let W=N.value.map(ie=>ie.label).indexOf(B.value?C.value[l.value]:K(C.value)[l.value])+1;return N.value.length<=W&&(W=0),N.value[W]}),D=a.computed(()=>[...N.value].slice(-1)[0]),I=a.computed(()=>C.value.__VISIBLE__.filter(W=>!W[p.value])[0]),R=a.computed(()=>{const W=$.value.__VISIBLE__.filter(ie=>!ie[p.value]);return W[W.map(ie=>ie[o.value]).indexOf(C.value[o.value])-1]}),F=a.computed(()=>{const W=K(C.value).__VISIBLE__.filter(ie=>!ie[p.value]);return W[W.map(ie=>ie[o.value]).indexOf(C.value[o.value])+1]}),q=a.computed(()=>[...L.value.__VISIBLE__.filter(W=>!W[p.value])].slice(-1)[0]),H=a.computed(()=>[...D.value.__VISIBLE__.filter(W=>!W[p.value])].slice(-1)[0]),V=W=>C.value&&(!W.group&&C.value[o.value]===W[o.value]||W.group!==void 0&&C.value[l.value]===W[l.value])?!0:void 0,Z=()=>{k(M.value[0]||null)},j=()=>{!C.value||C.value[p.value]===!0||(B.value?b(C.value):v(C.value))},Y=()=>{if(C.value===null)k((c.value&&A.value?N.value[0].__CREATE__?M.value[0]:N.value[0]:M.value[0])||null);else if(c.value&&A.value){let W=B.value?I.value:F.value;W===void 0&&(W=O.value,W.__CREATE__&&(W=W[f.value][0])),k(W||null)}else{let W=M.value.map(ie=>ie[o.value]).indexOf(C.value[o.value])+1;M.value.length<=W&&(W=0),k(M.value[W]||null)}a.nextTick(()=>{J()})},ne=()=>{if(C.value===null){let W=M.value[M.value.length-1];c.value&&A.value&&(W=H.value,W===void 0&&(W=D.value)),k(W||null)}else if(c.value&&A.value){let W=B.value?q.value:R.value;W===void 0&&(W=B.value?L.value:$.value,W.__CREATE__&&(W=q.value,W===void 0&&(W=L.value))),k(W||null)}else{let W=M.value.map(ie=>ie[o.value]).indexOf(C.value[o.value])-1;W<0&&(W=M.value.length-1),k(M.value[W]||null)}a.nextTick(()=>{J()})},K=W=>N.value.find(ie=>ie.__VISIBLE__.map(z=>z[o.value]).indexOf(W[o.value])!==-1),J=()=>{let W=S.value.querySelector("[data-pointed]");if(!W)return;let ie=W.parentElement.parentElement;c.value&&(ie=B.value?W.parentElement.parentElement.parentElement:W.parentElement.parentElement.parentElement.parentElement),W.offsetTop+W.offsetHeight>ie.clientHeight+ie.scrollTop&&(ie.scrollTop=W.offsetTop+W.offsetHeight-ie.clientHeight),W.offsetTop<ie.scrollTop&&(ie.scrollTop=W.offsetTop)};return a.watch(y,W=>{r.value&&(W.length&&s.value?Z():_())}),a.watch(T,W=>{if(W&&S&&S.value){let ie=S.value.querySelectorAll("[data-selected]")[0];if(!ie)return;let z=ie.parentElement.parentElement;a.nextTick(()=>{z.scrollTop=ie.offsetTop})}}),{pointer:C,canPointGroups:A,isPointed:V,setPointerFirst:Z,selectPointer:j,forwardPointer:Y,backwardPointer:ne}}function li(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function nn(i){var e=li(i).Element;return i instanceof e||i instanceof Element}function Ci(i){var e=li(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function og(i){if(typeof ShadowRoot>"u")return!1;var e=li(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}var rn=Math.max,Ru=Math.min,Ir=Math.round;function sg(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ib(){return!/^((?!chrome|android).)*safari/i.test(sg())}function $r(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var o=i.getBoundingClientRect(),s=1,r=1;e&&Ci(i)&&(s=i.offsetWidth>0&&Ir(o.width)/i.offsetWidth||1,r=i.offsetHeight>0&&Ir(o.height)/i.offsetHeight||1);var l=nn(i)?li(i):window,c=l.visualViewport,d=!ib()&&t,h=(o.left+(d&&c?c.offsetLeft:0))/s,p=(o.top+(d&&c?c.offsetTop:0))/r,f=o.width/s,m=o.height/r;return{width:f,height:m,top:p,right:h+f,bottom:p+m,left:h,x:h,y:p}}function ng(i){var e=li(i),t=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:t,scrollTop:o}}function a9(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function l9(i){return i===li(i)||!Ci(i)?ng(i):a9(i)}function Yi(i){return i?(i.nodeName||"").toLowerCase():null}function ts(i){return((nn(i)?i.ownerDocument:i.document)||window.document).documentElement}function rg(i){return $r(ts(i)).left+ng(i).scrollLeft}function Mo(i){return li(i).getComputedStyle(i)}function ag(i){var e=Mo(i),t=e.overflow,o=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+o)}function c9(i){var e=i.getBoundingClientRect(),t=Ir(e.width)/i.offsetWidth||1,o=Ir(e.height)/i.offsetHeight||1;return t!==1||o!==1}function d9(i,e,t){t===void 0&&(t=!1);var o=Ci(e),s=Ci(e)&&c9(e),r=ts(e),l=$r(i,s,t),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!t)&&((Yi(e)!=="body"||ag(r))&&(c=l9(e)),Ci(e)?(d=$r(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):r&&(d.x=rg(r))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function ob(i){var e=$r(i),t=i.offsetWidth,o=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:o}}function zu(i){return Yi(i)==="html"?i:i.assignedSlot||i.parentNode||(og(i)?i.host:null)||ts(i)}function sb(i){return["html","body","#document"].indexOf(Yi(i))>=0?i.ownerDocument.body:Ci(i)&&ag(i)?i:sb(zu(i))}function hc(i,e){var t;e===void 0&&(e=[]);var o=sb(i),s=o===((t=i.ownerDocument)==null?void 0:t.body),r=li(o),l=s?[r].concat(r.visualViewport||[],ag(o)?o:[]):o,c=e.concat(l);return s?c:c.concat(hc(zu(l)))}function h9(i){return["table","td","th"].indexOf(Yi(i))>=0}function nb(i){return!Ci(i)||Mo(i).position==="fixed"?null:i.offsetParent}function u9(i){var e=/firefox/i.test(sg()),t=/Trident/i.test(sg());if(t&&Ci(i)){var o=Mo(i);if(o.position==="fixed")return null}var s=zu(i);for(og(s)&&(s=s.host);Ci(s)&&["html","body"].indexOf(Yi(s))<0;){var r=Mo(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function Pu(i){for(var e=li(i),t=nb(i);t&&h9(t)&&Mo(t).position==="static";)t=nb(t);return t&&(Yi(t)==="html"||Yi(t)==="body"&&Mo(t).position==="static")?e:t||u9(i)||e}var Ii="top",Ki="bottom",is="right",So="left",lg="auto",Hu=[Ii,Ki,is,So],Or="start",uc="end",p9="clippingParents",rb="viewport",pc="popper",f9="reference",ab=Hu.reduce(function(i,e){return i.concat([e+"-"+Or,e+"-"+uc])},[]),m9=[].concat(Hu,[lg]).reduce(function(i,e){return i.concat([e,e+"-"+Or,e+"-"+uc])},[]),g9="beforeRead",b9="read",v9="afterRead",y9="beforeMain",w9="main",C9="afterMain",k9="beforeWrite",_9="write",x9="afterWrite",E9=[g9,b9,v9,y9,w9,C9,k9,_9,x9];function T9(i){var e=new Map,t=new Set,o=[];i.forEach(function(r){e.set(r.name,r)});function s(r){t.add(r.name);var l=[].concat(r.requires||[],r.requiresIfExists||[]);l.forEach(function(c){if(!t.has(c)){var d=e.get(c);d&&s(d)}}),o.push(r)}return i.forEach(function(r){t.has(r.name)||s(r)}),o}function M9(i){var e=T9(i);return E9.reduce(function(t,o){return t.concat(e.filter(function(s){return s.phase===o}))},[])}function S9(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function A9(i){var e=i.reduce(function(t,o){var s=t[o.name];return t[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,t},{});return Object.keys(e).map(function(t){return e[t]})}function B9(i,e){var t=li(i),o=ts(i),s=t.visualViewport,r=o.clientWidth,l=o.clientHeight,c=0,d=0;if(s){r=s.width,l=s.height;var h=ib();(h||!h&&e==="fixed")&&(c=s.offsetLeft,d=s.offsetTop)}return{width:r,height:l,x:c+rg(i),y:d}}function N9(i){var e,t=ts(i),o=ng(i),s=(e=i.ownerDocument)==null?void 0:e.body,r=rn(t.scrollWidth,t.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=rn(t.scrollHeight,t.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-o.scrollLeft+rg(i),d=-o.scrollTop;return Mo(s||t).direction==="rtl"&&(c+=rn(t.clientWidth,s?s.clientWidth:0)-r),{width:r,height:l,x:c,y:d}}function L9(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&og(t)){var o=e;do{if(o&&i.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function cg(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function I9(i,e){var t=$r(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function lb(i,e,t){return e===rb?cg(B9(i,t)):nn(e)?I9(e,t):cg(N9(ts(i)))}function $9(i){var e=hc(zu(i)),t=["absolute","fixed"].indexOf(Mo(i).position)>=0,o=t&&Ci(i)?Pu(i):i;return nn(o)?e.filter(function(s){return nn(s)&&L9(s,o)&&Yi(s)!=="body"}):[]}function O9(i,e,t,o){var s=e==="clippingParents"?$9(i):[].concat(e),r=[].concat(s,[t]),l=r[0],c=r.reduce(function(d,h){var p=lb(i,h,o);return d.top=rn(p.top,d.top),d.right=Ru(p.right,d.right),d.bottom=Ru(p.bottom,d.bottom),d.left=rn(p.left,d.left),d},lb(i,l,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function os(i){return i.split("-")[0]}function Dr(i){return i.split("-")[1]}function cb(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function db(i){var e=i.reference,t=i.element,o=i.placement,s=o?os(o):null,r=o?Dr(o):null,l=e.x+e.width/2-t.width/2,c=e.y+e.height/2-t.height/2,d;switch(s){case Ii:d={x:l,y:e.y-t.height};break;case Ki:d={x:l,y:e.y+e.height};break;case is:d={x:e.x+e.width,y:c};break;case So:d={x:e.x-t.width,y:c};break;default:d={x:e.x,y:e.y}}var h=s?cb(s):null;if(h!=null){var p=h==="y"?"height":"width";switch(r){case Or:d[h]=d[h]-(e[p]/2-t[p]/2);break;case uc:d[h]=d[h]+(e[p]/2-t[p]/2);break}}return d}function hb(){return{top:0,right:0,bottom:0,left:0}}function D9(i){return Object.assign({},hb(),i)}function V9(i,e){return e.reduce(function(t,o){return t[o]=i,t},{})}function dg(i,e){e===void 0&&(e={});var t=e,o=t.placement,s=o===void 0?i.placement:o,r=t.strategy,l=r===void 0?i.strategy:r,c=t.boundary,d=c===void 0?p9:c,h=t.rootBoundary,p=h===void 0?rb:h,f=t.elementContext,m=f===void 0?pc:f,g=t.altBoundary,v=g===void 0?!1:g,b=t.padding,y=b===void 0?0:b,C=D9(typeof y!="number"?y:V9(y,Hu)),k=m===pc?f9:pc,_=i.rects.popper,S=i.elements[v?k:m],T=O9(nn(S)?S:S.contextElement||ts(i.elements.popper),d,p,l),M=$r(i.elements.reference),N=db({reference:M,element:_,strategy:"absolute",placement:s}),A=cg(Object.assign({},_,N)),B=m===pc?A:M,$={top:T.top-B.top+C.top,bottom:B.bottom-T.bottom+C.bottom,left:T.left-B.left+C.left,right:B.right-T.right+C.right},L=i.modifiersData.offset;if(m===pc&&L){var O=L[s];Object.keys($).forEach(function(D){var I=[is,Ki].indexOf(D)>=0?1:-1,R=[Ii,Ki].indexOf(D)>=0?"y":"x";$[D]+=O[R]*I})}return $}var ub={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function R9(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,o=t===void 0?[]:t,s=e.defaultOptions,r=s===void 0?ub:s;return function(c,d,h){h===void 0&&(h=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ub,r),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},f=[],m=!1,g={state:p,setOptions:function(C){var k=typeof C=="function"?C(p.options):C;b(),p.options=Object.assign({},r,p.options,k),p.scrollParents={reference:nn(c)?hc(c):c.contextElement?hc(c.contextElement):[],popper:hc(d)};var _=M9(A9([].concat(o,p.options.modifiers)));return p.orderedModifiers=_.filter(function(S){return S.enabled}),v(),g.update()},forceUpdate:function(){if(!m){var C=p.elements,k=C.reference,_=C.popper;if(pb(k,_)){p.rects={reference:d9(k,Pu(_),p.options.strategy==="fixed"),popper:ob(_)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function($){return p.modifiersData[$.name]=Object.assign({},$.data)});for(var S=0;S<p.orderedModifiers.length;S++){if(p.reset===!0){p.reset=!1,S=-1;continue}var T=p.orderedModifiers[S],M=T.fn,N=T.options,A=N===void 0?{}:N,B=T.name;typeof M=="function"&&(p=M({state:p,options:A,name:B,instance:g})||p)}}}},update:S9(function(){return new Promise(function(y){g.forceUpdate(),y(p)})}),destroy:function(){b(),m=!0}};if(!pb(c,d))return g;g.setOptions(h).then(function(y){!m&&h.onFirstUpdate&&h.onFirstUpdate(y)});function v(){p.orderedModifiers.forEach(function(y){var C=y.name,k=y.options,_=k===void 0?{}:k,S=y.effect;if(typeof S=="function"){var T=S({state:p,name:C,instance:g,options:_}),M=function(){};f.push(T||M)}})}function b(){f.forEach(function(y){return y()}),f=[]}return g}}var ju={passive:!0};function z9(i){var e=i.state,t=i.instance,o=i.options,s=o.scroll,r=s===void 0?!0:s,l=o.resize,c=l===void 0?!0:l,d=li(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&h.forEach(function(p){p.addEventListener("scroll",t.update,ju)}),c&&d.addEventListener("resize",t.update,ju),function(){r&&h.forEach(function(p){p.removeEventListener("scroll",t.update,ju)}),c&&d.removeEventListener("resize",t.update,ju)}}var P9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:z9,data:{}};function H9(i){var e=i.state,t=i.name;e.modifiersData[t]=db({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var j9={name:"popperOffsets",enabled:!0,phase:"read",fn:H9,data:{}},F9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W9(i,e){var t=i.x,o=i.y,s=e.devicePixelRatio||1;return{x:Ir(t*s)/s||0,y:Ir(o*s)/s||0}}function fb(i){var e,t=i.popper,o=i.popperRect,s=i.placement,r=i.variation,l=i.offsets,c=i.position,d=i.gpuAcceleration,h=i.adaptive,p=i.roundOffsets,f=i.isFixed,m=l.x,g=m===void 0?0:m,v=l.y,b=v===void 0?0:v,y=typeof p=="function"?p({x:g,y:b}):{x:g,y:b};g=y.x,b=y.y;var C=l.hasOwnProperty("x"),k=l.hasOwnProperty("y"),_=So,S=Ii,T=window;if(h){var M=Pu(t),N="clientHeight",A="clientWidth";if(M===li(t)&&(M=ts(t),Mo(M).position!=="static"&&c==="absolute"&&(N="scrollHeight",A="scrollWidth")),M=M,s===Ii||(s===So||s===is)&&r===uc){S=Ki;var B=f&&M===T&&T.visualViewport?T.visualViewport.height:M[N];b-=B-o.height,b*=d?1:-1}if(s===So||(s===Ii||s===Ki)&&r===uc){_=is;var $=f&&M===T&&T.visualViewport?T.visualViewport.width:M[A];g-=$-o.width,g*=d?1:-1}}var L=Object.assign({position:c},h&&F9),O=p===!0?W9({x:g,y:b},li(t)):{x:g,y:b};if(g=O.x,b=O.y,d){var D;return Object.assign({},L,(D={},D[S]=k?"0":"",D[_]=C?"0":"",D.transform=(T.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",D))}return Object.assign({},L,(e={},e[S]=k?b+"px":"",e[_]=C?g+"px":"",e.transform="",e))}function U9(i){var e=i.state,t=i.options,o=t.gpuAcceleration,s=o===void 0?!0:o,r=t.adaptive,l=r===void 0?!0:r,c=t.roundOffsets,d=c===void 0?!0:c,h={placement:os(e.placement),variation:Dr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,fb(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,fb(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var q9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:U9,data:{}};function Z9(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var o=e.styles[t]||{},s=e.attributes[t]||{},r=e.elements[t];!Ci(r)||!Yi(r)||(Object.assign(r.style,o),Object.keys(s).forEach(function(l){var c=s[l];c===!1?r.removeAttribute(l):r.setAttribute(l,c===!0?"":c)}))})}function G9(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(o){var s=e.elements[o],r=e.attributes[o]||{},l=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:t[o]),c=l.reduce(function(d,h){return d[h]="",d},{});!Ci(s)||!Yi(s)||(Object.assign(s.style,c),Object.keys(r).forEach(function(d){s.removeAttribute(d)}))})}}var Y9={name:"applyStyles",enabled:!0,phase:"write",fn:Z9,effect:G9,requires:["computeStyles"]},K9=[P9,j9,q9,Y9],X9=R9({defaultModifiers:K9});function Q9(i){return i==="x"?"y":"x"}function Fu(i,e,t){return rn(i,Ru(e,t))}function J9(i,e,t){var o=Fu(i,e,t);return o>t?t:o}function eE(i){var e=i.state,t=i.options,o=i.name,s=t.mainAxis,r=s===void 0?!0:s,l=t.altAxis,c=l===void 0?!1:l,d=t.boundary,h=t.rootBoundary,p=t.altBoundary,f=t.padding,m=t.tether,g=m===void 0?!0:m,v=t.tetherOffset,b=v===void 0?0:v,y=dg(e,{boundary:d,rootBoundary:h,padding:f,altBoundary:p}),C=os(e.placement),k=Dr(e.placement),_=!k,S=cb(C),T=Q9(S),M=e.modifiersData.popperOffsets,N=e.rects.reference,A=e.rects.popper,B=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,$=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,O={x:0,y:0};if(M){if(r){var D,I=S==="y"?Ii:So,R=S==="y"?Ki:is,F=S==="y"?"height":"width",q=M[S],H=q+y[I],V=q-y[R],Z=g?-A[F]/2:0,j=k===Or?N[F]:A[F],Y=k===Or?-A[F]:-N[F],ne=e.elements.arrow,K=g&&ne?ob(ne):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:hb(),W=J[I],ie=J[R],z=Fu(0,N[F],K[F]),X=_?N[F]/2-Z-z-W-$.mainAxis:j-z-W-$.mainAxis,me=_?-N[F]/2+Z+z+ie+$.mainAxis:Y+z+ie+$.mainAxis,fe=e.elements.arrow&&Pu(e.elements.arrow),He=fe?S==="y"?fe.clientTop||0:fe.clientLeft||0:0,ue=(D=L==null?void 0:L[S])!=null?D:0,Be=q+X-ue-He,ke=q+me-ue,ct=Fu(g?Ru(H,Be):H,q,g?rn(V,ke):V);M[S]=ct,O[S]=ct-q}if(c){var Ne,st=S==="x"?Ii:So,Je=S==="x"?Ki:is,ri=M[T],Ot=T==="y"?"height":"width",yi=ri+y[st],Go=ri-y[Je],Wh=[Ii,So].indexOf(C)!==-1,Wi=(Ne=L==null?void 0:L[T])!=null?Ne:0,Uh=Wh?yi:ri-N[Ot]-A[Ot]-Wi+$.altAxis,Ks=Wh?ri+N[Ot]+A[Ot]-Wi-$.altAxis:Go,_r=g&&Wh?J9(Uh,ri,Ks):Fu(g?Uh:yi,ri,g?Ks:Go);M[T]=_r,O[T]=_r-ri}e.modifiersData[o]=O}}var tE={name:"preventOverflow",enabled:!0,phase:"main",fn:eE,requiresIfExists:["offset"]},iE={left:"right",right:"left",bottom:"top",top:"bottom"};function Wu(i){return i.replace(/left|right|bottom|top/g,function(e){return iE[e]})}var oE={start:"end",end:"start"};function mb(i){return i.replace(/start|end/g,function(e){return oE[e]})}function sE(i,e){e===void 0&&(e={});var t=e,o=t.placement,s=t.boundary,r=t.rootBoundary,l=t.padding,c=t.flipVariations,d=t.allowedAutoPlacements,h=d===void 0?m9:d,p=Dr(o),f=p?c?ab:ab.filter(function(v){return Dr(v)===p}):Hu,m=f.filter(function(v){return h.indexOf(v)>=0});m.length===0&&(m=f);var g=m.reduce(function(v,b){return v[b]=dg(i,{placement:b,boundary:s,rootBoundary:r,padding:l})[os(b)],v},{});return Object.keys(g).sort(function(v,b){return g[v]-g[b]})}function nE(i){if(os(i)===lg)return[];var e=Wu(i);return[mb(i),e,mb(e)]}function rE(i){var e=i.state,t=i.options,o=i.name;if(!e.modifiersData[o]._skip){for(var s=t.mainAxis,r=s===void 0?!0:s,l=t.altAxis,c=l===void 0?!0:l,d=t.fallbackPlacements,h=t.padding,p=t.boundary,f=t.rootBoundary,m=t.altBoundary,g=t.flipVariations,v=g===void 0?!0:g,b=t.allowedAutoPlacements,y=e.options.placement,C=os(y),k=C===y,_=d||(k||!v?[Wu(y)]:nE(y)),S=[y].concat(_).reduce(function(K,J){return K.concat(os(J)===lg?sE(e,{placement:J,boundary:p,rootBoundary:f,padding:h,flipVariations:v,allowedAutoPlacements:b}):J)},[]),T=e.rects.reference,M=e.rects.popper,N=new Map,A=!0,B=S[0],$=0;$<S.length;$++){var L=S[$],O=os(L),D=Dr(L)===Or,I=[Ii,Ki].indexOf(O)>=0,R=I?"width":"height",F=dg(e,{placement:L,boundary:p,rootBoundary:f,altBoundary:m,padding:h}),q=I?D?is:So:D?Ki:Ii;T[R]>M[R]&&(q=Wu(q));var H=Wu(q),V=[];if(r&&V.push(F[O]<=0),c&&V.push(F[q]<=0,F[H]<=0),V.every(function(K){return K})){B=L,A=!1;break}N.set(L,V)}if(A)for(var Z=v?3:1,j=function(J){var W=S.find(function(ie){var z=N.get(ie);if(z)return z.slice(0,J).every(function(X){return X})});if(W)return B=W,"break"},Y=Z;Y>0;Y--){var ne=j(Y);if(ne==="break")break}e.placement!==B&&(e.modifiersData[o]._skip=!0,e.placement=B,e.reset=!0)}}var aE={name:"flip",enabled:!0,phase:"main",fn:rE,requiresIfExists:["offset"],data:{_skip:!1}};function lE(i,e,t){const{disabled:o,appendTo:s,appendToBody:r,openDirection:l}=a.toRefs(i),c=a.getCurrentInstance().proxy,d=t.multiselect,h=t.dropdown,p=a.ref(!1),f=a.ref(null),m=a.ref(null),g=ht(()=>s.value||r.value),v=ht(()=>l.value==="top"&&m.value==="bottom"||l.value==="bottom"&&m.value!=="top"?"bottom":"top"),b=()=>{p.value||o.value||(p.value=!0,e.emit("open",c),g.value&&a.nextTick(()=>{C()}))},y=()=>{p.value&&(p.value=!1,e.emit("close",c))},C=()=>{if(!f.value)return;let _=parseInt(window.getComputedStyle(h.value).borderTopWidth.replace("px","")),S=parseInt(window.getComputedStyle(h.value).borderBottomWidth.replace("px",""));f.value.setOptions(T=>({...T,modifiers:[...T.modifiers,{name:"offset",options:{offset:[0,(v.value==="top"?_:S)*-1]}}]})),f.value.update()},k=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return a.onMounted(()=>{g.value&&(f.value=X9(d.value,h.value,{strategy:k(d.value)?"fixed":void 0,placement:l.value,modifiers:[tE,aE,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){m.value=_.placement}}]}))}),a.onBeforeUnmount(()=>{!g.value||!f.value||(f.value.destroy(),f.value=null)}),{popper:f,isOpen:p,open:b,close:y,placement:v,updatePopper:C}}function cE(i,e,t){const{searchable:o,disabled:s,clearOnBlur:r}=a.toRefs(i),l=t.input,c=t.open,d=t.close,h=t.clearSearch,p=t.isOpen,f=t.wrapper,m=t.tags,g=a.ref(!1),v=a.ref(!1),b=ht(()=>o.value||s.value?-1:0),y=()=>{o.value&&l.value.blur(),f.value.blur()},C=()=>{o.value&&!s.value&&l.value.focus()},k=(A=!0)=>{s.value||(g.value=!0,A&&c())},_=()=>{g.value=!1,setTimeout(()=>{g.value||(d(),r.value&&h())},1)};return{tabindex:b,isActive:g,mouseClicked:v,blur:y,focus:C,activate:k,deactivate:_,handleFocusIn:A=>{A.target.closest("[data-tags]")&&A.target.nodeName!=="INPUT"||A.target.closest("[data-clear]")||k(v.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),y()},handleMousedown:A=>{v.value=!0,p.value&&(A.target.isEqualNode(f.value)||A.target.isEqualNode(m.value))?setTimeout(()=>{_()},0):!p.value&&(document.activeElement.isEqualNode(f.value)||document.activeElement.isEqualNode(l.value))&&k(),setTimeout(()=>{v.value=!1},0)}}}function dE(i,e,t){const{mode:o,addTagOn:s,openDirection:r,searchable:l,showOptions:c,valueProp:d,groups:h,addOptionOn:p,createTag:f,createOption:m,reverse:g}=a.toRefs(i),v=a.getCurrentInstance().proxy,b=t.iv,y=t.update,C=t.deselect,k=t.search,_=t.setPointer,S=t.selectPointer,T=t.backwardPointer,M=t.forwardPointer,N=t.multiselect,A=t.wrapper,B=t.tags,$=t.isOpen,L=t.open,O=t.blur,D=t.fo,I=ht(()=>f.value||m.value||!1),R=ht(()=>s.value!==void 0?s.value:p.value!==void 0?p.value:["enter"]),F=()=>{o.value==="tags"&&!c.value&&I.value&&l.value&&!h.value&&_(D.value[D.value.map(V=>V[d.value]).indexOf(k.value)])};return{handleKeydown:V=>{e.emit("keydown",V,v);let Z,j;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(V.key)!==-1&&o.value==="tags"&&(Z=[...N.value.querySelectorAll("[data-tags] > *")].filter(Y=>Y!==B.value),j=Z.findIndex(Y=>Y===document.activeElement)),V.key){case"Backspace":if(o.value==="single"||l.value&&[null,""].indexOf(k.value)===-1||b.value.length===0)return;let Y=b.value.filter(ne=>!ne.disabled&&ne.remove!==!1);Y.length&&C(Y[Y.length-1]);break;case"Enter":if(V.preventDefault(),V.keyCode===229)return;if(j!==-1&&j!==void 0){y([...b.value].filter((ne,K)=>K!==j)),j===Z.length-1&&(Z.length-1?Z[Z.length-2].focus():l.value?B.value.querySelector("input").focus():A.value.focus());return}if(R.value.indexOf("enter")===-1&&I.value)return;F(),S();break;case" ":if(!I.value&&!l.value){V.preventDefault(),F(),S();return}if(!I.value)return!1;if(R.value.indexOf("space")===-1&&I.value)return;V.preventDefault(),F(),S();break;case"Tab":case";":case",":if(R.value.indexOf(V.key.toLowerCase())===-1||!I.value)return;F(),S(),V.preventDefault();break;case"Escape":O();break;case"ArrowUp":if(V.preventDefault(),!c.value)return;$.value||L(),T();break;case"ArrowDown":if(V.preventDefault(),!c.value)return;$.value||L(),M();break;case"ArrowLeft":if(l.value&&B.value&&B.value.querySelector("input").selectionStart||V.shiftKey||o.value!=="tags"||!b.value||!b.value.length)return;V.preventDefault(),j===-1?Z[Z.length-1].focus():j>0&&Z[j-1].focus();break;case"ArrowRight":if(j===-1||V.shiftKey||o.value!=="tags"||!b.value||!b.value.length)return;V.preventDefault(),Z.length>j+1?Z[j+1].focus():l.value?B.value.querySelector("input").focus():l.value||A.value.focus();break}},handleKeyup:V=>{e.emit("keyup",V,v)},preparePointer:F}}function hE(i,e,t){const{classes:o,disabled:s,showOptions:r,breakTags:l}=a.toRefs(i),c=t.isOpen,d=t.isPointed,h=t.isSelected,p=t.isDisabled,f=t.isActive,m=t.canPointGroups,g=t.resolving,v=t.fo,b=t.placement,y=ht(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),C=ht(()=>!!(c.value&&r.value&&(!g.value||g.value&&v.value.length)));return{classList:a.computed(()=>{const _=y.value;return{container:[_.container].concat(s.value?_.containerDisabled:[]).concat(C.value&&b.value==="top"?_.containerOpenTop:[]).concat(C.value&&b.value!=="top"?_.containerOpen:[]).concat(f.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(s.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,l.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(c.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(b.value==="top"?_.dropdownTop:[]).concat(!c.value||!r.value||!C.value?_.dropdownHidden:[]),options:[_.options].concat(b.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:S=>{let T=[_.groupLabel];return d(S)?T.push(h(S)?_.groupLabelSelectedPointed:_.groupLabelPointed):h(S)&&m.value?T.push(p(S)?_.groupLabelSelectedDisabled:_.groupLabelSelected):p(S)&&T.push(_.groupLabelDisabled),m.value&&T.push(_.groupLabelPointable),T},groupOptions:_.groupOptions,option:(S,T)=>{let M=[_.option];return d(S)?M.push(h(S)?_.optionSelectedPointed:_.optionPointed):h(S)?M.push(p(S)?_.optionSelectedDisabled:_.optionSelected):(p(S)||T&&p(T))&&M.push(_.optionDisabled),M},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:C}}function uE(i,e,t){const{limit:o,infinite:s}=a.toRefs(i),r=t.isOpen,l=t.offset,c=t.search,d=t.pfo,h=t.eo,p=a.ref(null),f=a.shallowRef(null),m=ht(()=>l.value<d.value.length),g=b=>{const{isIntersecting:y,target:C}=b[0];if(y){const k=C.offsetParent,_=k.scrollTop;l.value+=o.value==-1?10:o.value,a.nextTick(()=>{k.scrollTop=_})}},v=()=>{r.value&&l.value<d.value.length?p.value.observe(f.value):!r.value&&p.value&&p.value.disconnect()};return a.watch(r,()=>{s.value&&v()}),a.watch(c,()=>{s.value&&(l.value=o.value,v())},{flush:"post"}),a.watch(h,()=>{s.value&&v()},{immediate:!1,flush:"post"}),a.onMounted(()=>{window&&window.IntersectionObserver&&(p.value=new IntersectionObserver(g))}),{hasMore:m,infiniteLoader:f}}function pE(i,e,t){const{placeholder:o,id:s,valueProp:r,label:l,mode:c,groupLabel:d,aria:h,searchable:p}=a.toRefs(i),f=t.pointer,m=t.iv,g=t.hasSelected,v=t.multipleLabelText,b=a.ref(null),y=ht(()=>`${s.value?s.value+"-":""}assist`),C=ht(()=>`${s.value?s.value+"-":""}multiselect-options`),k=ht(()=>{if(f.value){let O=s.value?`${s.value}-`:"";return O+=`${f.value.group?"multiselect-group":"multiselect-option"}-`,O+=f.value.group?f.value.index:f.value[r.value],O}}),_=ht(()=>o.value),S=ht(()=>c.value!=="single"),T=a.computed(()=>c.value==="single"&&g.value?m.value[l.value]:c.value==="multiple"&&g.value?v.value:c.value==="tags"&&g.value?m.value.map(O=>O[l.value]).join(", "):""),M=a.computed(()=>{let O={...h.value};return p.value&&(O["aria-labelledby"]=O["aria-labelledby"]?`${y.value} ${O["aria-labelledby"]}`:y.value,T.value&&O["aria-label"]&&(O["aria-label"]=`${T.value}, ${O["aria-label"]}`)),O}),N=O=>`${s.value?s.value+"-":""}multiselect-option-${O[r.value]}`,A=O=>`${s.value?s.value+"-":""}multiselect-group-${O.index}`,B=O=>`${O}`,$=O=>`${O}`,L=O=>`${O} ❎`;return a.onMounted(()=>{if(s.value&&document&&document.querySelector){let O=document.querySelector(`[for="${s.value}"]`);b.value=O?O.innerText:null}}),{arias:M,ariaLabel:T,ariaAssist:y,ariaControls:C,ariaPlaceholder:_,ariaMultiselectable:S,ariaActiveDescendant:k,ariaOptionId:N,ariaOptionLabel:B,ariaGroupId:A,ariaGroupLabel:$,ariaTagLabel:L}}function fE(i,e,t){const{locale:o,fallbackLocale:s}=a.toRefs(i);return{localize:l=>!l||typeof l!="object"?l:l&&l[o.value]?l[o.value]:l&&o.value&&l[o.value.toUpperCase()]?l[o.value.toUpperCase()]:l&&l[s.value]?l[s.value]:l&&s.value&&l[s.value.toUpperCase()]?l[s.value.toUpperCase()]:l&&Object.keys(l)[0]?l[Object.keys(l)[0]]:""}}function mE(i,e,t){const o=a.shallowRef(null),s=a.shallowRef(null),r=a.shallowRef(null),l=a.shallowRef(null),c=a.shallowRef(null);return{multiselect:o,wrapper:s,tags:r,input:l,dropdown:c}}function gE(i,e,t,o={}){return t.forEach(s=>{o={...o,...s(i,e,o)}}),o}var ss={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(i,e){return gE(i,e,[mE,fE,e9,i9,lE,t9,J8,cE,n9,uE,r9,dE,hE,pE])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const bE=["id","dir"],vE=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],yE=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],wE=["onKeyup","aria-label"],CE=["onClick"],kE=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],_E=["innerHTML"],xE=["id"],EE=["id"],TE=["id","aria-label","aria-selected"],ME=["data-pointed","onMouseenter","onClick"],SE=["innerHTML"],AE=["aria-label"],BE=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],NE=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],LE=["innerHTML"],IE=["innerHTML"],$E=["value"],OE=["name","value"],DE=["name","value"],VE=["id"];function RE(i,e,t,o,s,r){return a.openBlock(),a.createElementBlock("div",{ref:"multiselect",class:a.normalizeClass(i.classList.container),id:t.searchable?void 0:t.id,dir:t.rtl?"rtl":void 0,onFocusin:e[12]||(e[12]=(...l)=>i.handleFocusIn&&i.handleFocusIn(...l)),onFocusout:e[13]||(e[13]=(...l)=>i.handleFocusOut&&i.handleFocusOut(...l)),onKeyup:e[14]||(e[14]=(...l)=>i.handleKeyup&&i.handleKeyup(...l)),onKeydown:e[15]||(e[15]=(...l)=>i.handleKeydown&&i.handleKeydown(...l))},[a.createElementVNode("div",a.mergeProps({class:i.classList.wrapper,onMousedown:e[9]||(e[9]=(...l)=>i.handleMousedown&&i.handleMousedown(...l)),ref:"wrapper",tabindex:i.tabindex,"aria-controls":t.searchable?void 0:i.ariaControls,"aria-placeholder":t.searchable?void 0:i.ariaPlaceholder,"aria-expanded":t.searchable?void 0:i.isOpen,"aria-activedescendant":t.searchable?void 0:i.ariaActiveDescendant,"aria-multiselectable":t.searchable?void 0:i.ariaMultiselectable,role:t.searchable?void 0:"combobox"},t.searchable?{}:i.arias),[a.createCommentVNode(" Search "),t.mode!=="tags"&&t.searchable&&!t.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:t.inputType,modelValue:i.search,value:i.search,class:i.classList.search,autocomplete:t.autocomplete,id:t.searchable?t.id:void 0,onInput:e[0]||(e[0]=(...l)=>i.handleSearchInput&&i.handleSearchInput(...l)),onKeypress:e[1]||(e[1]=(...l)=>i.handleKeypress&&i.handleKeypress(...l)),onPaste:e[2]||(e[2]=a.withModifiers((...l)=>i.handlePaste&&i.handlePaste(...l),["stop"])),ref:"input","aria-controls":i.ariaControls,"aria-placeholder":i.ariaPlaceholder,"aria-expanded":i.isOpen,"aria-activedescendant":i.ariaActiveDescendant,"aria-multiselectable":i.ariaMultiselectable,role:"combobox"},{...t.attrs,...i.arias}),null,16,yE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Tags (with search) "),t.mode=="tags"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(i.classList.tags),"data-tags":""},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.iv,(l,c,d)=>a.renderSlot(i.$slots,"tag",{option:l,handleTagRemove:i.handleTagRemove,disabled:t.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass([i.classList.tag,l.disabled?i.classList.tagDisabled:null]),tabindex:"-1",onKeyup:a.withKeys(h=>i.handleTagRemove(l,h),["enter"]),key:d,"aria-label":i.ariaTagLabel(i.localize(l[t.label]))},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.tagWrapper)},a.toDisplayString(i.localize(l[t.label])),3),!t.disabled&&!l.disabled?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(i.classList.tagRemove),onClick:a.withModifiers(h=>i.handleTagRemove(l,h),["stop"])},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.tagRemoveIcon)},null,2)],10,CE)):a.createCommentVNode("v-if",!0)],42,wE))])),256)),a.createElementVNode("div",{class:a.normalizeClass(i.classList.tagsSearchWrapper),ref:"tags"},[a.createCommentVNode(" Used for measuring search width "),a.createElementVNode("span",{class:a.normalizeClass(i.classList.tagsSearchCopy)},a.toDisplayString(i.search),3),a.createCommentVNode(" Actual search input "),t.searchable&&!t.disabled?(a.openBlock(),a.createElementBlock("input",a.mergeProps({key:0,type:t.inputType,modelValue:i.search,value:i.search,class:i.classList.tagsSearch,id:t.searchable?t.id:void 0,autocomplete:t.autocomplete,onInput:e[3]||(e[3]=(...l)=>i.handleSearchInput&&i.handleSearchInput(...l)),onKeypress:e[4]||(e[4]=(...l)=>i.handleKeypress&&i.handleKeypress(...l)),onPaste:e[5]||(e[5]=a.withModifiers((...l)=>i.handlePaste&&i.handlePaste(...l),["stop"])),ref:"input","aria-controls":i.ariaControls,"aria-placeholder":i.ariaPlaceholder,"aria-expanded":i.isOpen,"aria-activedescendant":i.ariaActiveDescendant,"aria-multiselectable":i.ariaMultiselectable,role:"combobox"},{...t.attrs,...i.arias}),null,16,kE)):a.createCommentVNode("v-if",!0)],2)],2)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Single label "),t.mode=="single"&&i.hasSelected&&!i.search&&i.iv?a.renderSlot(i.$slots,"singlelabel",{key:2,value:i.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.singleLabel)},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.singleLabelText)},a.toDisplayString(i.localize(i.iv[t.label])),3)],2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Multiple label "),t.mode=="multiple"&&i.hasSelected&&!i.search?a.renderSlot(i.$slots,"multiplelabel",{key:3,values:i.iv},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.multipleLabel),innerHTML:i.multipleLabelText},null,10,_E)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Placeholder "),t.placeholder&&!i.hasSelected&&!i.search?a.renderSlot(i.$slots,"placeholder",{key:4},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.placeholder),"aria-hidden":"true"},a.toDisplayString(t.placeholder),3)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Spinner "),t.loading||i.resolving?a.renderSlot(i.$slots,"spinner",{key:5},()=>[a.createElementVNode("span",{class:a.normalizeClass(i.classList.spinner),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Clear "),i.hasSelected&&!t.disabled&&t.canClear&&!i.busy?a.renderSlot(i.$slots,"clear",{key:6,clear:i.clear},()=>[a.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:a.normalizeClass(i.classList.clear),onClick:e[6]||(e[6]=(...l)=>i.clear&&i.clear(...l)),onKeyup:e[7]||(e[7]=a.withKeys((...l)=>i.clear&&i.clear(...l),["enter"]))},[a.createElementVNode("span",{class:a.normalizeClass(i.classList.clearIcon)},null,2)],34)]):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Caret "),t.caret&&t.showOptions?a.renderSlot(i.$slots,"caret",{key:7,handleCaretClick:i.handleCaretClick,isOpen:i.isOpen},()=>[a.createElementVNode("span",{class:a.normalizeClass(i.classList.caret),onClick:e[8]||(e[8]=(...l)=>i.handleCaretClick&&i.handleCaretClick(...l)),"aria-hidden":"true"},null,2)]):a.createCommentVNode("v-if",!0)],16,vE),a.createCommentVNode(" Options "),(a.openBlock(),a.createBlock(a.Teleport,{to:t.appendTo||"body",disabled:!t.appendToBody&&!t.appendTo},[a.createElementVNode("div",{id:t.id?`${t.id}-dropdown`:void 0,class:a.normalizeClass(i.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:e[10]||(e[10]=(...l)=>i.handleFocusIn&&i.handleFocusIn(...l)),onFocusout:e[11]||(e[11]=(...l)=>i.handleFocusOut&&i.handleFocusOut(...l))},[a.renderSlot(i.$slots,"beforelist",{options:i.fo}),a.createElementVNode("ul",{class:a.normalizeClass(i.classList.options),id:i.ariaControls,role:"listbox"},[t.groups?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(i.fg,(l,c,d)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(i.classList.group),key:d,id:i.ariaGroupId(l),"aria-label":i.ariaGroupLabel(i.localize(l[t.groupLabel])),"aria-selected":i.isSelected(l),role:"option"},[l.__CREATE__?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(i.classList.groupLabel(l)),"data-pointed":i.isPointed(l),onMouseenter:h=>i.setPointer(l,c),onClick:h=>i.handleGroupClick(l)},[a.renderSlot(i.$slots,"grouplabel",{group:l,isSelected:i.isSelected,isPointed:i.isPointed},()=>[a.createElementVNode("span",{innerHTML:i.localize(l[t.groupLabel])},null,8,SE)])],42,ME)),a.createElementVNode("ul",{class:a.normalizeClass(i.classList.groupOptions),"aria-label":i.ariaGroupLabel(i.localize(l[t.groupLabel])),role:"group"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.__VISIBLE__,(h,p,f)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(i.classList.option(h,l)),"data-pointed":i.isPointed(h),"data-selected":i.isSelected(h)||void 0,key:f,onMouseenter:m=>i.setPointer(h),onClick:m=>i.handleOptionClick(h),id:i.ariaOptionId(h),"aria-selected":i.isSelected(h),"aria-label":i.ariaOptionLabel(i.localize(h[t.label])),role:"option"},[a.renderSlot(i.$slots,"option",{option:h,isSelected:i.isSelected,isPointed:i.isPointed,search:i.search},()=>[a.createElementVNode("span",null,a.toDisplayString(i.localize(h[t.label])),1)])],42,BE))),128))],10,AE)],10,TE))),128)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.fo,(l,c,d)=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(i.classList.option(l)),"data-pointed":i.isPointed(l),"data-selected":i.isSelected(l)||void 0,key:d,onMouseenter:h=>i.setPointer(l),onClick:h=>i.handleOptionClick(l),id:i.ariaOptionId(l),"aria-selected":i.isSelected(l),"aria-label":i.ariaOptionLabel(i.localize(l[t.label])),role:"option"},[a.renderSlot(i.$slots,"option",{option:l,isSelected:i.isSelected,isPointed:i.isPointed,search:i.search},()=>[a.createElementVNode("span",null,a.toDisplayString(i.localize(l[t.label])),1)])],42,NE))),128))],10,EE),i.noOptions?a.renderSlot(i.$slots,"nooptions",{key:0},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.noOptions),innerHTML:i.localize(t.noOptionsText)},null,10,LE)]):a.createCommentVNode("v-if",!0),i.noResults?a.renderSlot(i.$slots,"noresults",{key:1},()=>[a.createElementVNode("div",{class:a.normalizeClass(i.classList.noResults),innerHTML:i.localize(t.noResultsText)},null,10,IE)]):a.createCommentVNode("v-if",!0),t.infinite&&i.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(i.classList.inifinite),ref:"infiniteLoader"},[a.renderSlot(i.$slots,"infinite",{},()=>[a.createElementVNode("span",{class:a.normalizeClass(i.classList.inifiniteSpinner)},null,2)])],2)):a.createCommentVNode("v-if",!0),a.renderSlot(i.$slots,"afterlist",{options:i.fo})],42,xE)],8,["to","disabled"])),a.createCommentVNode(" Hacky input element to show HTML5 required warning "),t.required?(a.openBlock(),a.createElementBlock("input",{key:0,class:a.normalizeClass(i.classList.fakeInput),tabindex:"-1",value:i.textValue,required:""},null,10,$E)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Native input support "),t.nativeSupport?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[t.mode=="single"?(a.openBlock(),a.createElementBlock("input",{key:0,type:"hidden",name:t.name,value:i.plainValue!==void 0?i.plainValue:""},null,8,OE)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(i.plainValue,(l,c)=>(a.openBlock(),a.createElementBlock("input",{type:"hidden",name:`${t.name}[]`,value:l,key:c},null,8,DE))),128))],64)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Screen reader assistive text "),t.searchable&&i.hasSelected?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(i.classList.assist),id:i.ariaAssist,"aria-hidden":"true"},a.toDisplayString(i.ariaLabel),11,VE)):a.createCommentVNode("v-if",!0),a.createCommentVNode(" Create height for empty input "),a.createElementVNode("div",{class:a.normalizeClass(i.classList.spacer)},null,2)],42,bE)}ss.render=RE,ss.__file="src/Multiselect.vue";const ci=a.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(i){const e=i,t=a.toRef(()=>e.appendTo),o=a.ref();return e.detached&&Q8({multiselect:o,appendTo:t.value}),(s,r)=>(a.openBlock(),a.createBlock(a.unref(ss),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect"},a.createSlots({_:2},[a.renderList(s.$slots,(l,c)=>({name:c,fn:a.withCtx(d=>[a.renderSlot(s.$slots,c,a.normalizeProps(a.guardReactiveProps(d??{})))])}))]),1536))}});var gb;function Ao(){const i=zE(),e=i.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(i.proxy)}}function zE(){const i=a.getCurrentInstance();if(!i)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return i}a.defineComponent({props:{translation:{type:String,required:!0}},setup(i,{slots:e}){return()=>{const t=i.translation,o=[];let s,r=0;for(;(s=gb.exec(t))!==null;){o.push(t.substring(r,s.index));const l=e[s[1]];l?o.push(...l()):o.push(s[0]),r=gb.lastIndex}return o.push(t.substring(r)),o}}});async function Bo(i,e){if(e&&i&&i.length-e.length===1){const t=new Set(e.map(c=>c.id)),o=i.filter(c=>!t.has(c.id));if(o.length!==1)return;const s=o[0].id;await a.nextTick();const r=document.getElementById(s);r==null||r.focus(),await a.nextTick();const l=document.getElementById(s);l==null||l.select()}}const PE={class:"ao-tasks"},HE={class:"ao-tasks__list"},jE=["id","value","readonly","onChange"],FE={class:"ao-tasks__list-footer"},WE=a.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e;a.watch(()=>o.tasks,(m,g)=>{Bo(m,g)});const r=a.computed(()=>{var m;return((m=o.users)==null?void 0:m.map(g=>({label:`${g.firstName} ${g.lastName}`,value:g.id,avatar:g.avatarUrl})))??[]}),l=()=>{const m=o.tasks.length,g={name:t("task.defaultName",{idx:m+1}),activityId:o.activityId};s("add",g)},c=(m,g)=>{const b=m.target.value;s("update",{id:g,name:b})},d=(m,g)=>{o.isEditable&&s("update",{id:m,isDone:g})},h=m=>{s("delete",{id:m})},p=(m,g)=>{s("update",{id:g,assigneeId:m[0]??null})},f=m=>{const g=m.target;g==null||g.blur()};return(m,g)=>(a.openBlock(),a.createElementBlock("div",PE,[a.createElementVNode("ul",HE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.tasks,v=>{var b,y;return a.openBlock(),a.createElementBlock("li",{key:v.id,class:"ao-subtask"},[((b=i.isCheckable)==null?void 0:b.call(i,v))??!1?(a.openBlock(),a.createBlock(Ee,{key:0,class:"ao-subtask__check","icon-name":v.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!i.isEditable,variant:"ghost",color:"primary",onClick:()=>d(v.id,!v.isDone)},null,8,["icon-name","disabled","onClick"])):a.createCommentVNode("",!0),a.createElementVNode("input",{id:v.id,value:v.name,readonly:!i.isEditable,class:a.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":v.isDone}]),type:"text",onChange:C=>c(C,v.id),onKeyup:a.withKeys(f,["enter"])},null,42,jE),g[0]||(g[0]=a.createTextVNode(". ",-1)),!i.isTemplate&&i.users?(a.openBlock(),a.createBlock(ci,{key:1,value:(y=v.assignee)!=null&&y.id?[v.assignee.id]:[],options:r.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:m.$t("feed.filters.assignee.placeholder"),disabled:!i.isEditable,caret:i.isEditable,onChange:C=>p(C,v.id)},{tag:a.withCtx(({option:C,handleTagRemove:k})=>[a.createVNode(xo,{"user-name":C.label,"avatar-url":C.avatar,"is-closable":!0,onClose:_=>k(C,_)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):a.createCommentVNode("",!0),i.isEditable?(a.openBlock(),a.createBlock(Ee,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>h(v.id)},null,8,["onClick"])):a.createCommentVNode("",!0)])}),128))]),a.createElementVNode("div",FE,[i.isEditable?(a.openBlock(),a.createBlock(Ee,{key:0,label:m.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:l},null,8,["label"])):a.createCommentVNode("",!0)])]))}}),gR="",UE={class:"ao-files__placeholder"},qE={key:0,class:"ao-files__list"},ZE=["href"],GE={class:"ao-file__title"},YE={key:0},KE={class:"ao-files__input"},XE={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},QE={class:"ao-button__label"},JE={class:"ao-files__dropzone"},eT={class:"ao-files__dropzone-label"},tT=a.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(i,{emit:e}){const t=e,o=i,s=f=>{t("remove",f)},r=f=>{const m=f.target,g=Array.from(m.files??[]);t("add",g)},l=["dragenter","dragover","dragleave","drop"];a.onMounted(()=>{l.forEach(f=>{document.body.addEventListener(f,m=>m.preventDefault())})}),a.onUnmounted(()=>{l.forEach(f=>{document.body.removeEventListener(f,m=>m.preventDefault())})});const c=a.ref(!1);function d(){o.isEditable&&(c.value=!0)}function h(){c.value=!1}a.watch(c,f=>{t("toggleIsDropActive",f)});function p(f){var g;h();const m=Array.from(((g=f.dataTransfer)==null?void 0:g.files)||[]);f.dataTransfer&&t("add",m)}return(f,m)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":c.value}]),onDrop:a.withModifiers(p,["prevent"]),onDragenter:a.withModifiers(d,["prevent"]),onDragover:a.withModifiers(d,["prevent"]),onDragleave:a.withModifiers(h,["prevent"])},[a.renderSlot(f.$slots,"default",{},()=>[a.createElementVNode("span",UE,a.toDisplayString(f.$t("activity.attachment.placeholder.resting")),1)]),i.attachments?(a.openBlock(),a.createElementBlock("ul",qE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.attachments,g=>(a.openBlock(),a.createElementBlock("li",{key:g.id,class:"ao-file"},[a.createElementVNode("a",{class:"ao-file__link",href:g.url,target:"_blank",rel:"noopener noreferrer"},[a.createVNode(Ze,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",GE,a.toDisplayString(g.name),1)],8,ZE),i.isEditable?(a.openBlock(),a.createBlock(Ee,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>s(g)},null,8,["onClick"])):a.createCommentVNode("",!0)]))),128)),i.isEditable?(a.openBlock(),a.createElementBlock("li",YE,[a.createElementVNode("label",KE,[a.createElementVNode("div",XE,[a.createVNode(Ze,{name:"Add",size:"sm"}),a.createElementVNode("span",QE,a.toDisplayString(f.$t("activity.attachment.button.resting")),1)]),a.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:r},null,32)])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",JE,[a.createElementVNode("span",eT,a.toDisplayString(f.$t("activity.attachment.placeholder.active")),1)],512),[[a.vShow,c.value]])],34))}}),bR="",pe=window,Le=document,iT=Symbol("noEventHandler"),oT=Symbol("onOverComponent"),an=navigator.userAgent.toLowerCase();function sT(){return new XMLHttpRequest}function nT(i){let e="";const t=(i||Le).styleSheets;for(let o=0,s=t.length,r;o<s;o++){try{r=t[o].cssRules}catch{continue}if(r)for(let l=0,c=r.length;l<c;l++)e+=r[l].cssText}return e}function rT(i,e){let t="";const o=[],s=e==="js"?"script":"link",r=e==="js"?"src":"href";let l="(?:";for(let h=0,p=i.length;h<p;h++)l+=i[h]+(h<p-1?"|":")");const c=new RegExp(`(^|.*[\\/])${l}(\\.[^\\/]+)?.${e}(?:\\?.*|;.*)?$`,"i"),d=new RegExp(`.+\\.${e}(?:\\?.*|;.*)?$`,"i");for(let h=Le.getElementsByTagName(s),p=0;p<h.length;p++)d.test(h[p][r])&&o.push(h[p]);for(let h=0;h<o.length;h++){const p=o[h][r].match(c);if(p){t=p[0];break}}if(!t)throw new Error("[SUNEDITOR.helper.env.getIncludePath.fail] The SUNEDITOR installation path could not be automatically detected. (path: +"+t+", extension: "+e+")");return t===""&&(t=o.length>0?o[0][r]:""),!t.includes(":/")&&t.slice(0,2)!=="//"&&(t=t.includes("/")===!1?location.href.match(/^.*?:\/\/[^/]*/)[0]+t:location.href.match(/^[^?]*\/(?:)/)[0]+t),t}const aT=(()=>typeof ResizeObserver=="function")(),bb=(()=>{var i;return typeof((i=navigator.clipboard)==null?void 0:i.write)=="function"})(),vb=(()=>/Edg/.test(navigator.userAgent))(),hg=(()=>/(Mac|iPhone|iPod|iPad)/.test(navigator.userAgent))(),lT=(()=>an.includes("chrome/")&&!an.includes("edge/"))(),cT=(()=>!!an.match(/gecko\/\d+/))(),dT=(()=>!!pe.chrome)(),hT=(()=>an.includes("applewebkit/")&&!an.includes("chrome"))(),yb=(()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(an))(),uT=(()=>navigator.maxTouchPoints>0&&"ontouchstart"in pe)(),pT=(()=>an.includes("android"))(),fT=hg?"⌘":"CTRL",mT=hg?"⇧":"+SHIFT",gT=pe.devicePixelRatio;let ug=null;function bT(){if(ug!==null)return ug;if(!Le.body||typeof Le.execCommand!="function")return!0;let i=!1;try{const e=Le.createElement("div");e.setAttribute("contenteditable","true"),e.setAttribute("aria-hidden","true"),e.style.cssText="position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none;";const t=Le.activeElement;Le.body.appendChild(e);const o=()=>{i=!0};e.addEventListener("beforeinput",o,!0),e.addEventListener("input",o,!0),e.focus({preventScroll:!0}),Le.execCommand("insertText",!1,""),e.removeEventListener("beforeinput",o,!0),e.removeEventListener("input",o,!0),e.remove(),t&&t!==Le.body&&typeof t.focus=="function"&&t.focus({preventScroll:!0})}catch{i=!0}return ug=i}const vT={_w:pe,_d:Le,NO_EVENT:iT,ON_OVER_COMPONENT:oT,getXMLHttpRequest:sT,getPageStyle:nT,getIncludePath:rT,isResizeObserverSupported:aT,isClipboardSupported:bb,isEdge:vb,isBlink:lT,isGecko:cT,isChromium:dT,isSafari:hT,isOSX_IOS:hg,isAndroid:pT,isMobile:yb,isTouchDevice:uT,canUseBeforeInput:bT,cmdIcon:fT,shiftIcon:mT,DPI:gT,KATEX_WEBSITE:"https://katex.org/docs/supported.html",MATHJAX_WEBSITE:"https://www.mathjax.org/"},pg=8203,wb=String.fromCharCode(pg),fg=new RegExp(String.fromCharCode(pg),"g"),Cb=new RegExp("^"+String.fromCharCode(pg)+"+$");function yT(i){if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wT={zeroWidthSpace:wb,zeroWidthRegExp:fg,onlyZeroWidthRegExp:Cb,escapeStringRegexp:yT};function CT(i){return/^-?\d+(\.\d+)?$/.test(i+"")}function Uu(i,e=0){if(!i)return 0;const t=(i+"").match(/-?\d+(\.\d+)?/);if(!t||!t[0])return 0;const o=Number(t[0]);return e<0?o:e===0?Math.round(o):Number(o.toFixed(e))}function kT(i,e,t,o){if(i<=o?e<t:e>t)return 0;const s=(i>t?i:t)-(e<o?e:o);return(s<0?s*-1:s)+1}function _T(i){return(i&1)===0}function xT(i){return(i&1)===1}const ET={is:CT,get:Uu,getOverlapRangeAtIndex:kT,isEven:_T,isOdd:xT},TT=/&|\u00A0|'|"|<|>/g,MT=/&| |'|"|<|>/g,ST={"&":"&"," ":" ","'":"'",'"':""","<":"<",">":">"},AT={"&":"&"," ":" ","'":"'",""":'"',"<":"<",">":">"},BT=/[A-Z]/g,NT=/-[a-zA-Z]/g,LT={"xx-small":.5625,"x-small":.625,small:.8333,medium:1,large:1.125,"x-large":1.5,"xx-large":2,"xxx-large":2.5};function kb(i){if(i.nodeType===3){const e=i.nodeValue.trim();return e?{type:"text",content:e}:null}if(i.nodeType===1){const e={type:"element",tag:i.tagName.toLowerCase(),attributes:{},children:[]};for(const t of i.attributes)e.attributes[t.name]=t.value;for(const t of i.childNodes){const o=kb(t);o&&e.children.push(o)}return e}return null}function IT(i){const t=new DOMParser().parseFromString(i,"text/html");return kb(t.body)}function _b(i){if(!i)return"";if(i.type==="text")return qu(i.content||"");if(i.type==="element"){const{tag:e,attributes:t={},children:o=[]}=i,s=Object.entries(t).map(([d,h])=>`${d}="${qu(h)}"`).join(" "),r=s?`<${e} ${s}>`:`<${e}>`,l=`</${e}>`,c=o.map(_b).join("");return`${r}${c}${l}`}return""}function qu(i){return i.replace(TT,e=>ST[e]||e)}function $T(i){return i.replace(MT,e=>AT[e]||e)}function OT(i,e){let t;function o(...s){const r=()=>{t=null,i(...s)};pe.clearTimeout(t),t=pe.setTimeout(r,e)}return o.cancel=()=>{pe.clearTimeout(t),t=null},o}function DT(i,e){e.forEach((t,o)=>{i.set(o,t)}),i.forEach((t,o)=>{e.has(o)||i.delete(o)})}function VT(...i){const t=i.filter(o=>o instanceof Map).flatMap(o=>[...o]);return new Map(t)}function RT(i){return i?Object.keys(i).map(function(e){return i[e]}):[]}function xb(i){return typeof i=="string"?i.replace(BT,e=>"-"+e.toLowerCase()):i.map(function(e){return xb(e)})}function Eb(i){return typeof i=="string"?i.replace(NT,e=>e.replace("-","").toUpperCase()):i.map(function(e){return Eb(e)})}function zT(i,e){const t=e.match(/(\d+(?:\.\d+)?)(.+)/),o=t?Number(t[1]):LT[e],s=t?t[2]:"rem";let r=o;switch(/em/.test(s)?r=Math.round(o/.0625):s==="pt"?r=Math.round(o*1.333):s==="%"&&(r=o/100),i){case"em":case"rem":return(r*.0625).toFixed(2)+i;case"%":return Number((r*.0625).toFixed(2))*100+i;case"pt":return Math.round(r/1.333)+i;default:return r+i}}function PT(i){return i?Array.prototype.slice.call(i):[]}function HT(i){const e={},t=Object.prototype.hasOwnProperty;for(const o in i)t.call(i,o)&&(e[i[o]]=o);return e}function jT(i){return new RegExp(`<\\/?\\b(?!\\b${(i||"").replace(/\|/g,"\\b|\\b")}\\b)[^>]*>`,"gi")}function FT(i){return new RegExp(`<\\/?\\b(?:\\b${(i||"^").replace(/\|/g,"\\b|\\b")}\\b)[^>]*>`,"gi")}function Tb(i){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(i)}function WT(i){if(Tb(i)||!i)return i;const e=i.match(/^rgba?[\s+]?\(([\d]+)[\s+]?,[\s+]?([\d]+)[\s+]?,[\s+]?([\d]+)[\s+]?/i);if(e&&e.length>=4){const t=("0"+parseInt(e[1],10).toString(16)).slice(-2),o=("0"+parseInt(e[2],10).toString(16)).slice(-2),s=("0"+parseInt(e[3],10).toString(16)).slice(-2);let r="";if(i.includes("rgba")){const l=i.match(/,\s*([\d]+\.?[\d]*)\s*\)/);l&&(r=("0"+Math.round(parseFloat(l[1])*255).toString(16)).slice(-2))}return`#${t}${o}${s}${r}`}else return i}function UT(i,e){const t=e||i.parentElement,o=pe.getComputedStyle(t),s=Uu(o.paddingLeft,-1),r=Uu(o.paddingRight,-1),l=t.offsetWidth-t.clientWidth,c=t.offsetWidth-s-r-l;return i.offsetWidth/c*100}function qT(i){var t;const e=/https?:\/\/[^\s]+/g;if(i.nodeType===3&&e.test(i.textContent)&&!/^A$/i.test((t=i.parentNode)==null?void 0:t.nodeName)){const o=i.textContent,s=Le.createDocumentFragment();let r=0;return o.replace(e,(l,c)=>{c>r&&s.appendChild(Le.createTextNode(o.slice(r,c)));const d=Le.createElement("a");return d.href=l,d.target="_blank",d.textContent=l,s.appendChild(d),r=c+l.length,l}),r<o.length&&s.appendChild(Le.createTextNode(o.slice(r))),i.parentNode.replaceChild(s,i),!0}return!1}function ZT(i,e){if(e.nodeType===1&&/^SPAN$/i.test(e.nodeName)&&e.hasAttribute("style")){const t=e.getAttribute("style"),o=[];if(Object.keys(i).forEach(s=>{if(i[s].regex.test(t)){const r=Le.createElement(i[s].tag);o.push(r)}}),o.length>0){const s=Le.createElement("span");let r=e.firstChild;o.forEach((c,d)=>{d===0?s.appendChild(c):o[d-1].appendChild(c)});const l=o[o.length-1];for(;r;){const c=r.nextSibling;l.appendChild(r),r=c}e.appendChild(s)}}}function GT(i,e){if(e.length>0)if(/\?/.test(i)){const t=i.split("?");i=t[0]+"?"+e+"&"+t[1]}else i+="?"+e;return i}function YT(i,e){let t="";i.get("height")&&(t+="height:"+i.get("height")+";"),i.get("minHeight")&&(t+="min-height:"+i.get("minHeight")+";"),i.get("maxHeight")&&(t+="max-height:"+i.get("maxHeight")+";"),i.get("width")&&(t+="width:"+i.get("width")+";"),i.get("minWidth")&&(t+="min-width:"+i.get("minWidth")+";"),i.get("maxWidth")&&(t+="max-width:"+i.get("maxWidth")+";");let o="",s="",r="";e=t+e;const l=e.split(";");for(let c=0,d=l.length,h;c<d;c++)if(h=l[c].trim(),!!h){if(/^(min-|max-)?width\s*:/.test(h)||/^(z-index|position|display)\s*:/.test(h)){o+=h+";";continue}if(/^(min-|max-)?height\s*:/.test(h)){/^height/.test(h)&&h.split(":")[1].trim()==="auto"&&i.set("height","auto"),s+=h+";";continue}r+=h+";"}return{top:o,frame:s,editor:r}}function KT(i){let e="";if(i){const t=Le.getElementsByTagName("link");for(let o=0,s=i.length,r;o<s;o++){r=[];const l=i[o];if(l==="*")for(let c=0,d=t.length;c<d;c++)t[c].rel==="stylesheet"&&t[c].href&&r.push(t[c].href);else if(/(^https?:\/\/)|(^data:text\/css,)/.test(l))r.push(l);else{const c=new RegExp(`(^|.*[\\/])${l}(\\..+)?.css((\\??.+?)|\\b)$`,"i");for(let d=0,h=t.length,p;d<h;d++)p=t[d].href.match(c),p&&r.push(p[0])}if(!r||r.length===0)throw new Error('[SUNEDITOR.constructor.iframe.fail] The suneditor CSS files installation path could not be automatically detected. Please set the option property "iframe_cssFileName" before creating editor instances.');for(let c=0,d=r.length;c<d;c++)e+='<link href="'+r[c]+'" rel="stylesheet">'}}return e}function XT(i){return i==="auto"?`<style>
|
|
3
|
-
/** Iframe height auto */
|
|
4
|
-
body{height: min-content; overflow: hidden;}
|
|
5
|
-
</style>`:""}const QT={htmlToJson:IT,jsonToHtml:_b,htmlToEntity:qu,entityToHTML:$T,debounce:OT,syncMaps:DT,mergeMaps:VT,getValues:RT,camelToKebabCase:xb,kebabToCamelCase:Eb,toFontUnit:zT,nodeListToArray:PT,swapKeyValue:HT,createElementWhitelist:jT,createElementBlacklist:FT,isHexColor:Tb,rgb2hex:WT,getWidthInPercentage:UT,textToAnchor:qT,spanToStyleNode:ZT,addUrlQuery:GT,_setDefaultOptionStyle:YT,_setIframeStyleLinks:KT,_setAutoHeightStyle:XT},JT=/(\s|^)(katex|MathJax|se-exclude-format)(\s|$)/;function Mb(i){if(i==null)return!1;if(typeof i!="string"){if(ln(i)){const e=i.children;for(let t=0,o=e.length;t<o;t++){const s=e[t];if(!Bb(s))return!1}}i=i.textContent}return i===""||Cb.test(i)}function eM(i,e,t){return t!=="end"&&e===0||(!t||t!=="front")&&!i.nodeValue&&e<=1||(!t||t==="end")&&i.nodeValue&&e>=i.nodeValue.length}function tM(i){return(i==null?void 0:i.nodeType)===3}function ln(i){return(i==null?void 0:i.nodeType)===1}function iM(i){return ln(i)&&/^(INPUT|TEXTAREA|SELECT|OPTION)$/i.test(i.nodeName)}function oM(i){return ln(i)&&/^(BUTTON)$/i.test(i.nodeName)}function mg(i){return/^(OL|UL)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function sM(i){return/^LI$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function gg(i){return/^TABLE$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function nM(i){return/^(TABLE|THEAD|TBODY|TR|TH|TD|COL)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function Sb(i){return/^(TD|TH)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function rM(i){return/^TR$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function Ab(i){return/^BR$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function aM(i){return/^A$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function lM(i){return/^(IMG|IFRAME|AUDIO|VIDEO|CANVAS)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function cM(i){return/^IFRAME$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function dM(i){return/^FIGURE$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function Bb(i){return/^(BR|COLGROUP|COL|THEAD|TBODY|TFOOT|TR|AREA|BASE|EMBED|HR|IMG|INPUT|KEYGEN|LINK|META|PARAM|SOURCE|TRACK|WBR)$/i.test(typeof i=="string"?i:i==null?void 0:i.nodeName)}function hM(i){if(!(i!=null&&i.parentNode))return!0;const e=i;return!e.querySelector("IMG, IFRAME, AUDIO, VIDEO, CANVAS, TABLE")&&(e.children.length<=1||Ab(e.firstElementChild))&&Mb(e.textContent)}function Nb(i){if((i==null?void 0:i.nodeType)!==1)return!1;const t=i.classList;return t?t.contains("se-component")||t.contains("se-flex-component"):!1}function ns(i){if((i==null?void 0:i.nodeType)!==1)return!1;const t=i.classList;return t?i.nodeName.toUpperCase()==="BODY"||t.contains("se-wrapper-wysiwyg")||t.contains("sun-editor-carrier-wrapper")||t.contains("se-wrapper"):!1}function uM(i){return(i==null?void 0:i.nodeType)===1&&i.getAttribute("contenteditable")==="false"}function pM(i){if((i==null?void 0:i.nodeType)!==1)return!1;const e=i;return/^SPAN$/i.test(e.nodeName)&&!e.className&&e.style.length===0}function fM(i,e){if(i.nodeType===3&&e.nodeType===3)return!0;if(i.nodeType===3||e.nodeType===3)return!1;const t=i,o=e,s=t.style,r=o.style;let l=0;for(let p=0,f=s.length;p<f;p++)s[s[p]]===r[s[p]]&&l++;const c=t.classList,d=o.classList;let h=0;for(let p=0,f=c.length;p<f;p++)d.contains(c[p])&&h++;return l===r.length&&l===s.length&&h===d.length&&h===c.length}function mM(i){return JT.test(i==null?void 0:i.className)}function gM(i){return i==null?void 0:i.classList.contains("__se__uneditable")}function Lb(i){return i==null?void 0:i.hasAttribute("data-important-disabled")}const ki={isZeroWidth:Mb,isEdgePoint:eM,isText:tM,isElement:ln,isInputElement:iM,isButtonElement:oM,isList:mg,isListCell:sM,isTable:gg,isTableElements:nM,isTableCell:Sb,isTableRow:rM,isBreak:Ab,isAnchor:aM,isMedia:lM,isIFrame:cM,isFigure:dM,isContentLess:Bb,isEmptyLine:hM,isComponentContainer:Nb,isWysiwygFrame:ns,isNonEditable:uM,isSpanWithoutAttr:pM,isSameAttributes:fM,isExcludeFormat:mM,isUneditable:gM,isImportantDisabled:Lb};function Ib(i){const e=Object.prototype.toString.call(i);return e==="[object HTMLCollection]"||e==="[object NodeList]"||e==="[object Array]"}function bM(i){return Object.prototype.toString.call(i)==="[object HTMLImageElement]"}function vM(i){const e=Object.prototype.toString.call(i);return e==="[object HTMLVideoElement]"||e==="[object HTMLAudioElement]"}function yM(i){return Object.prototype.toString.call(i)==="[object HTMLIFrameElement]"}function wM(i,e=!1){return i.cloneNode(e)}function $b(i,e,t){const o=Le.createElement(i);if(e)for(const s in e)e[s]!==void 0&&e[s]!==null&&o.setAttribute(s,e[s]);return t&&(typeof t=="string"?o.innerHTML=t:typeof t=="object"&&o.appendChild(t)),o}function Ob(i){return Le.createTextNode(i||"")}function CM(i,e){const t=i.attributes;if(!t)return"";let o="";for(let s=0,r=t.length;s<r;s++)e!=null&&e.includes(t[s].name)||(o+=t[s].name+'="'+qu(t[s].value)+'" ');return o}function kM(i,e){if(!i||i.length===0)return null;e||(e=()=>!0);const t=[];for(let o=0,s=i.length,r;o<s;o++)r=i[o],e(r)&&t.push(r);return t}function _M(i,e){if(!i||i.length===0)return null;e||(e=()=>!0);for(let t=0,o=i.length,s;t<o;t++)if(s=i[t],e(s))return s;return null}function xM(i,e){for(let t=0;t<i.length;t++)if(i[t]===e)return!0;return!1}function bg(i,e){let t=-1;for(let o=0,s=i.length;o<s;o++)if(i[o]===e){t=o;break}return t}function EM(i,e){const t=bg(i,e);return t===-1?-1:t+1}function TM(i,e){const t=bg(i,e);return t===-1?-1:t-1}const MM=/(\s|^)(se-block-hover|se-block-dragging)(?=\s|$)/g;function Db(i,e,t){const o=i,s=e;if(s.style.length>0){const l=s.style;for(let c=0,d=l.length;c<d;c++)o.style[l[c]]=l[l[c]]}const r=s.attributes;for(let l=0,c=r.length,d;l<c;l++)if(d=r[l].name.toLowerCase(),t!=null&&t.includes(d)||!r[l].value)o.removeAttribute(d);else if(d!=="style")if(d==="class"){const h=r[l].value.replace(MM," ").replace(/\s+/g," ").trim();h?o.setAttribute("class",h):o.removeAttribute("class")}else o.setAttribute(r[l].name,r[l].value)}function SM(i,e){const t=e.cloneNode(!1);t.className=t.className.replace(/(\s|^)__se__format__[^\s]+/g,""),Db(i,t)}function AM(i){i&&("remove"in i&&typeof i.remove=="function"?i.remove():i.parentNode&&i.parentNode.removeChild(i))}function BM(i,e){if(i)if(typeof e=="string")if("outerHTML"in i)i.outerHTML=e;else{const t=$b("DIV");t.innerHTML=e,i.parentNode.replaceChild(t.firstChild,i)}else(e==null?void 0:e.nodeType)===1&&i.parentNode.replaceChild(e,i)}function NM(i,e){!i||!e||(i.textContent=e)}function LM(i,e,t){i=Array.isArray(i)?i:[i];for(let o=0,s=i.length,r;o<s;o++)r=i[o],r.style[e]=t,r.style.length===0&&r.removeAttribute("style")}function IM(i,e){if((i==null?void 0:i.nodeType)===1)return i.style[e]}function $M(i,e,t){for(let o=0,s=i.length;o<s;o++){const r=i[o];(t||!Lb(r))&&(r.disabled=e),t&&(e?r.setAttribute("data-important-disabled",""):r.removeAttribute("data-important-disabled"))}}function Zu(i,e){if(!(!i||i.nodeType!==1))return e.split("|").some(t=>i.classList.contains(t))}function cn(i,e){if(!i)return;const t=Ib(i)?i:[i],o=e.split("|");for(let s=0,r=t.length;s<r;s++){const l=t[s];if(!(!l||l.nodeType!==1))for(const c of o)c&&l.classList.add(c)}}function dn(i,e){if(!i)return;const t=Ib(i)?i:[i],o=e.split("|");for(let s=0,r=t.length;s<r;s++){const l=t[s];if(!(!l||l.nodeType!==1))for(const c of o)c&&l.classList.remove(c)}}function OM(i,e,t){if(!i||i.nodeType!==1)return;const o=i;o.classList.toggle(e,t),o.className.trim()||o.removeAttribute("class")}function DM(i,e,t=120){cn(i,e),pe.setTimeout(()=>{dn(i,e)},t)}function rs(i=Le){return{w:i.documentElement.clientWidth,h:i.documentElement.clientHeight}}function VM(){return"visualViewport"in pe?{top:pe.visualViewport.pageTop,left:pe.visualViewport.pageLeft,scale:pe.visualViewport.scale}:{top:0,left:0,scale:1}}function RM(i,e,t){if(!i)return console.warn('"parentTarget" is not exist'),null;let o=i;const s=Le.createElement("DIV");if(s.style.display="none",/body/i.test(o.nodeName)){const c=Le.createElement("DIV"),d=o.attributes;for(let h=0,p=d.length;h<p;h++)c.setAttribute(d[h].name,d[h].value);c.innerHTML=o.innerHTML,o=c}else o=o.cloneNode(!0);s.appendChild(o),Le.body.appendChild(s);const r=Array.from(o.querySelectorAll("*")),l=e?[o].concat(r):r;for(let c=0,d;d=l[c];c++){if(d.nodeType!==1)continue;const h=pe.getComputedStyle(d),p=d.style;for(const f of t)p.setProperty(f,h.getPropertyValue(f)||"")}return Le.body.removeChild(s),o}function zM(i,e=5e3){const t=i||Le;return new Promise(o=>{const r=["img","video","audio","iframe"].flatMap(c=>Array.from(t.querySelectorAll(c)));if(r.length===0){o();return}const l=r.map(c=>{var d;if(bM(c)){if(c.complete)return Promise.resolve()}else if(vM(c)){if(c.readyState>=2)return Promise.resolve()}else if(yM(c))try{if(((d=c.contentDocument)==null?void 0:d.readyState)==="complete")return Promise.resolve()}catch(h){console.warn(["[SUNEDITOR] Iframe load error",h])}return new Promise(h=>{c.addEventListener("load",h,{once:!0}),c.addEventListener("error",h,{once:!0})})});Promise.race([Promise.all(l),new Promise(c=>pe.setTimeout(c,e))]).then(()=>{o()})})}function PM(i){return Le.documentElement.style.getPropertyValue(i)}function HM(i,e){Le.documentElement.style.setProperty(i,e)}function jM(i){return`<span class="se-tooltip-inner"><span class="se-tooltip-text">${i}</span></span>`}const Vr={clone:wM,createElement:$b,createTextNode:Ob,getAttributesToString:CM,arrayFilter:kM,arrayFind:_M,arrayIncludes:xM,getArrayIndex:bg,nextIndex:EM,prevIndex:TM,copyTagAttributes:Db,copyFormatAttributes:SM,removeItem:AM,changeElement:BM,changeTxt:NM,setStyle:LM,getStyle:IM,setDisabled:$M,hasClass:Zu,addClass:cn,removeClass:dn,toggleClass:OM,flashClass:DM,getClientSize:rs,getViewportSize:VM,applyInlineStylesAll:RM,waitForMediaLoad:zM,getRootCssVar:PM,setRootCssVar:HM,createTooltipInner:jM};function Vb(i){let e=0;for(;i=i.previousSibling;)e+=1;return e}function vg(i,e,t){const o=[];let s=!0;return Gu(i,r=>{if(r===e&&(s=!1),s&&!ki.isWysiwygFrame(r)){if(t&&r.nodeType===3){let l=null,c=null;t.s=t.e=0;let d=r.previousSibling;for(;(d==null?void 0:d.nodeType)===3;)c=d.textContent.replace(fg,""),t.s+=c.length,r.textContent=c+r.textContent,l=d,d=d.previousSibling,Vr.removeItem(l);let h=r.nextSibling;for(;(h==null?void 0:h.nodeType)===3;)c=h.textContent.replace(fg,""),t.e+=c.length,r.textContent+=c,l=h,h=h.nextSibling,Vr.removeItem(l)}o.push(r)}return!1}),o.map(Vb).reverse()}function yg(i,e){let t=e,o;for(let s=0,r=i.length;s<r&&(o=t.childNodes,o.length!==0);s++)o.length<=i[s]?t=o[o.length-1]:t=o[i[s]];return t}function FM(i,e){let t=null;if(!i)return t;const o=i;return!o.children||o.children.length===0||(e||(e=()=>!0),function s(r){if(o!==r&&e(r))return t=r,!0;if(r.children)for(let l=0,c=r.children.length;l<c;l++)s(r.children[l])}(o)),t}function WM(i,e,t){const o=[];if(t??(t=1/0),!i||t<=0)return o;const s=i;return!s.children||s.children.length===0||(e||(e=()=>!0),function r(l,c){if(!(c>t)&&(c>0&&s!==l&&e(l)&&o.push(l),c!==t&&l.children))for(let d=0,h=l.children.length;d<h;d++)r(l.children[d],c+1)}(s,0)),o}function Rb(i,e,t){const o=[];return t??(t=1/0),!i||t<=0||i.childNodes.length===0||(e||(e=()=>!0),function s(r,l){if(l>t||(l>0&&e(r)&&o.push(r),l===t))return;const c=r.childNodes;for(let d=0,h=c.length;d<h;d++)s(c[d],l+1)}(i,0)),o}function fc(i){if(!i||ki.isWysiwygFrame(i))return-1;let e=0;for(i=i.parentNode;i&&!ki.isWysiwygFrame(i);)e+=1,i=i.parentNode;return e}function UM(i,e){const t=e?1:-1,o=t*-1;i.sort(function(s,r){if(!ki.isListCell(s)||!ki.isListCell(r))return 0;const l=fc(s),c=fc(r);return l>c?t:l<c?o:0})}function qM(i,e){let t=i,o=e;const s=fc(i),r=fc(e);if(s>r){let h=s-r;for(;h>0&&t;)t=t.parentElement,h--}else if(r>s){let h=r-s;for(;h>0&&o;)o=o.parentElement,h--}for(;t&&o&&t.parentElement!==o.parentElement;)t=t.parentElement,o=o.parentElement;if(!(t!=null&&t.parentNode)||!(o!=null&&o.parentNode))return{ancestor:null,a:i,b:e,result:0};const l=t.parentNode.childNodes,c=Vr.getArrayIndex(l,t),d=Vr.getArrayIndex(l,o);return{ancestor:t.parentElement,a:t,b:o,result:c>d?1:c<d?-1:0}}function Gu(i,e,t){let o;if(typeof e=="function")o=e;else if(typeof e=="object")o=r=>r===e;else{let r;/^\./.test(e)?(r="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(r="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(r="name",e="^"+e.split(":")[1]+"$"):(r="nodeName",e="^"+e+"$");const l=new RegExp(e,"i");o=c=>l.test(c[r])}t||(t=1/0);let s=0;for(;i&&!o(i);){if(s>=t||ki.isWysiwygFrame(i))return null;i=i.parentElement,s++}return i}function ZM(i,e,t){let o;if(typeof e=="function")o=e;else if(typeof e=="object")o=l=>l===e;else{let l;/^\./.test(e)?(l="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(l="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(l="name",e="^"+e.split(":")[1]+"$"):(l="nodeName",e="^"+e+"$");const c=new RegExp(e,"i");o=d=>c.test(d[l])}const s=[];t||(t=1/0);let r=0;for(;r<=t&&i&&!ki.isWysiwygFrame(i);)o(i)&&s.push(i),i=i.parentElement,r++;return s}function GM(i){let e=i;for(;e&&!/^(UL)$/i.test(e.nodeName)&&!Vr.hasClass(e,"sun-editor");){if(e.hasAttribute("data-command"))return e;e=e.parentElement}return null}function YM(i){return i.target}function KM(i,e,t){let o;if(typeof e=="function")o=e;else if(typeof e=="object")o=function(r){return r===e};else{let r;/^\./.test(e)?(r="className",e="(\\s|^)"+e.split(".")[1]+"(\\s|$)"):/^#/.test(e)?(r="id",e="^"+e.split("#")[1]+"$"):/^:/.test(e)?(r="name",e="^"+e.split(":")[1]+"$"):(r="nodeName",e="^"+(e==="text"?"#"+e:e)+"$");const l=new RegExp(e,"i");o=function(c){return l.test(c[r])}}const s=Rb(i,r=>o(r),null);return s[t?s.length-1:0]}function XM(i,e){if(i){for(e||(e=i);i&&i.nodeType===1&&i.childNodes.length>0&&!ki.isBreak(i);)i=i.firstChild;for(;e&&e.nodeType===1&&e.childNodes.length>0&&!ki.isBreak(e);)e=e.lastChild;return{sc:i,ec:e||i}}}function QM(i,e){let t=i.previousSibling;if(!t){for(let o=i.parentNode;o;o=o.parentNode){if(o===e)return null;if(o.previousSibling){t=o.previousSibling;break}}if(!t)return null}if(ki.isNonEditable(t))return t;for(;t.lastChild;)t=t.lastChild;return t}function JM(i,e){let t=i.nextSibling;if(!t){for(let o=i.parentNode;o;o=o.parentNode){if(o===e)return null;if(o.nextSibling){t=o.nextSibling;break}}if(!t)return null}if(ki.isNonEditable(t))return t;for(;t.firstChild;)t=t.firstChild;return t}function eS(i,e,t,o){if(!i)return 0;o||(o=()=>!0);let s=0,r=!1;return function l(c){if(!(r||c.nodeType===8)&&!o(c)){if(c.nodeType===3){if(c===e){s+=t,r=!0;return}s+=c.textContent.length}else if(c.nodeType===1){const d=c.childNodes;for(let h=0,p=d.length;h<p;h++)if(l(d[h]),r)return}}}(i),s}function tS(i,e,t){if(!i)return 0;const o=i.textContent,s=new RegExp(`((\\u00A0|\\s){${t},})`,"g");let r;for(s.lastIndex=e;(r=s.exec(o))!==null;)if(r.index>=e){const l=r.index+r[0].length-1,d=(o.slice(0,l+1).match(/[^\u00A0\s]/g)||[]).length;return l+d+t}return 0}function iS(i){if(!i||i.length===0)return null;const e={};let t=null,o=-1,s=-1;for(const r of i){const c=r.parentElement.rowIndex,d=r.rowSpan||1,h=r.colSpan||1;e[c]||(e[c]=[]);let p=0;const f=e[c];for(;f[p];)p++;for(let v=0;v<h;v++)f[p+v]=!0;for(let v=1;v<d;v++){const b=c+v;e[b]||(e[b]=[]);for(let y=0;y<h;y++)e[b][p+y]=!0}const m=c+d-1,g=p+h-1;(m>o||m===o&&g>s)&&(o=m,s=g,t=r)}return t}function oS(i){const e=[];let t=i==null?void 0:i.parentElement;for(;t&&!/^(body|html)$/i.test(t.nodeName);){const o=pe.getComputedStyle(t),{overflow:s,overflowX:r,overflowY:l}=o;[s,r,l].some(d=>["auto","scroll","overlay"].includes(d))&&e.push(t),t=t.parentElement}return e}function sS(i){var e;return((e=i.contentWindow)==null?void 0:e.document)||i.contentDocument}const nS={query:{getPositionIndex:Vb,getNodePath:vg,getNodeFromPath:yg,getChildNode:FM,getListChildren:WM,getListChildNodes:Rb,getNodeDepth:fc,sortNodeByDepth:UM,compareElements:qM,getParentElement:Gu,getParentElements:ZM,getCommandTarget:GM,getEventTarget:YM,getEdgeChild:KM,getEdgeChildNodes:XM,getPreviousDeepestNode:QM,getNextDeepestNode:JM,findTextIndexOnLine:eS,findTabEndIndex:tS,findVisualLastCell:iS,getScrollParents:oS,getIframeDocument:sS},check:ki,utils:Vr},zb="ArrowLeft|ArrowUp|ArrowRight|ArrowDown",Pb="F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|F12",rS=zb.split("|"),aS="Backspace|Delete".split("|"),lS=`Backspace|Tab|Enter|ShiftLeft|ShiftRight|ControlLeft|ControlRight|AltLeft|AltRight|Pause|CapsLock|Escape|PageUp|PageDown|End|Home|${zb}|Insert|Delete|${Pb}|NumLock|ScrollLock`.split("|"),cS="Backspace|Enter|Delete".split("|"),dS="Backspace|Enter|Delete".split("|"),hS=`ControlLeft|ControlRight|AltLeft|AltRight|Pause|CapsLock|Escape|Insert|${Pb}|NumLock|ScrollLock`.split("|");function uS(i){return i.shiftKey||i.keyCode===16}function pS(i){const e=i.code;return i.ctrlKey||i.metaKey||e==="MetaLeft"||e==="MetaRight"}function fS(i){return i.altKey}function mS(i){return i.isComposing||i.key==="Process"||i.keyCode===229}function gS(i){return i==="Backspace"}function bS(i){return i==="Tab"}function vS(i){return i==="Enter"}function yS(i){return i==="Escape"}function wS(i){return i==="Space"}function CS(i){return rS.includes(i)}function kS(i){return aS.includes(i)}function _S(i){return lS.includes(i)}function xS(i){return cS.includes(i)}function ES(i){return dS.includes(i)}function TS(i){return hS.includes(i)}const MS={isShift:uS,isCtrl:pS,isAlt:fS,isComposing:mS,isBackspace:gS,isTab:bS,isEnter:vS,isEsc:yS,isSpace:wS,isDirectionKey:CS,isRemoveKey:kS,isNonTextKey:_S,isHistoryRelevantKey:xS,isDocumentTypeObserverKey:ES,isNonResponseKey:TS};async function SS(i){if(!bb)return console.error("Clipboard is not supported in this browser."),!1;let e="",t="";typeof i=="string"?(e=i,t=i):ln(i)?(i.querySelectorAll("iframe").forEach(o=>{const s=document.createElement("div"),r={};for(const l of Array.from(o.attributes))r[l.name]=l.value;s.setAttribute("data-se-iframe-holder","1"),s.setAttribute("data-se-iframe-holder-attrs",JSON.stringify(r)),s.innerText=`[iframe: ${o.src}]`,o.replaceWith(s)}),e=i.outerHTML,t=i.textContent):(e=i.textContent,t=i.textContent);try{await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([t],{type:"text/plain"})})])}catch{console.warn("[SUNEDITOR.copy.warn] This browser is not supported Clipboard API");try{await navigator.clipboard.writeText(t||AS(e))}catch(o){console.error("[SUNEDITOR.copy.fail] "+o)}}}function AS(i){const e=document.createElement("div");return e.innerHTML=i,e.textContent||e.innerText||""}const BS={write:SS},Hb=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/i,NS=/^[\u200B\uFEFF]+$/;function Rr(i){const e=i.trim();return e===""||NS.test(e)}const LS={strong:"**",b:"**",em:"*",i:"*",del:"~~",s:"~~",mark:"=="};function di(i){if(!i||i.length===0)return"";const e=[];for(let t=0;t<i.length;t++){const o=Xi(i[t],"",!1);if(o){if(e.length>0){const s=e[e.length-1];s&&!s.endsWith(" ")&&!s.endsWith(`
|
|
6
|
-
`)&&!o.startsWith(" ")&&!o.startsWith(`
|
|
7
|
-
`)&&e.push(" ")}e.push(o)}}return e.join("")}function mc(i){return i?i.type==="text"?i.content||"":i.children?i.children.map(mc).join(""):"":""}function hn(i){if(!i)return"";if(i.type==="text")return i.content||"";const{tag:e,attributes:t={},children:o=[]}=i,s=Object.entries(t).map(([c,d])=>`${c}="${d}"`).join(" "),r=s?`<${e} ${s}>`:`<${e}>`;if(Hb.test(e))return r;const l=o.map(hn).join("");return`${r}${l}</${e}>`}function Yu(i,e){return i?i.split(`
|
|
8
|
-
`).map(t=>t?e+t:"").join(`
|
|
9
|
-
`)+`
|
|
10
|
-
`:""}function wg(i,e,t){var l;const o=i.children||[];let s="",r=1;for(const c of o){if(c.type!=="element"||c.tag!=="li")continue;const d=t?`${r}. `:"- ",h=c.children||[];let p="",f="";const m=e+" ".repeat(d.length);let g="";const v=h[0];v&&v.type==="element"&&v.tag==="input"&&((l=v.attributes)==null?void 0:l.type)==="checkbox"&&(g=v.attributes.checked!==void 0?"[x] ":"[ ] ");for(let b=0;b<h.length;b++){const y=h[b];if(b===0&&g)continue;if(y.type!=="element"){p+=Xi(y,"",!1);continue}const C=y.tag;if(C==="ul"||C==="ol")f+=wg(y,m,C==="ol");else if(C==="table")f+=Yu(Cg(y),m);else if(C==="figure"){const k=(y.children||[]).find(_=>_.type==="element"&&_.tag==="table");k?f+=Yu(Cg(k),m):f+=Yu(Xi(y,"",!0),m)}else C==="blockquote"||C==="pre"?f+=Yu(Xi(y,"",!0),m):p+=Xi(y,"",!1)}s+=`${e}${d}${g}${p.trim()}
|
|
11
|
-
`,f&&(s+=f),r++}return s}function Cg(i){const e=[];let t=!1;function o(f,m){var g,v,b;for(const y of f.children||[])if(y.tag==="thead")o(y,!0);else if(y.tag==="tbody"||y.tag==="tfoot")o(y,!1);else if(y.tag==="tr"){const C=[];for(const _ of y.children||[])if(_.tag==="td"||_.tag==="th"){const S=di(_.children).trim(),T=parseInt((g=_.attributes)==null?void 0:g.colspan,10)||1,M=parseInt((v=_.attributes)==null?void 0:v.rowspan,10)||1;C.push({content:S,colspan:T,rowspan:M})}const k=m||!t&&((b=y.children)==null?void 0:b.some(_=>_.tag==="th"));k&&(t=!0),e.push({cells:C,isHeader:k})}}if(o(i,!1),e.length===0)return"";const s=e.filter(f=>f.isHeader),r=e.filter(f=>!f.isHeader),l=[...s,...r];let c=0;for(const f of l){let m=0;for(const g of f.cells)m+=g.colspan;m>c&&(c=m)}const d=Array.from({length:l.length},()=>new Array(c).fill(null));for(let f=0;f<l.length;f++){let m=0;for(const g of l[f].cells){for(;m<c&&d[f][m]!==null;)m++;if(m>=c)break;for(let v=0;v<g.rowspan&&f+v<l.length;v++)for(let b=0;b<g.colspan&&m+b<c;b++)d[f+v][m+b]=v===0&&b===0?g.content:"";m+=g.colspan}for(let g=0;g<c;g++)d[f][g]===null&&(d[f][g]="")}let h="";if(s.length>0){h+="| "+d[0].join(" | ")+` |
|
|
12
|
-
`,h+="| "+d[0].map(()=>"---").join(" | ")+` |
|
|
13
|
-
`;for(let f=1;f<d.length;f++)h+="| "+d[f].join(" | ")+` |
|
|
14
|
-
`}else{h+="| "+new Array(c).fill(" ").join(" | ")+` |
|
|
15
|
-
`,h+="| "+new Array(c).fill("---").join(" | ")+` |
|
|
16
|
-
`;for(let f=0;f<d.length;f++)h+="| "+d[f].join(" | ")+` |
|
|
17
|
-
`}return h}function Xi(i,e,t){var d,h,p;if(!i)return"";if(i.type==="text")return(i.content||"").replace(/[\u200B\uFEFF]/g,"");if(i.type!=="element")return"";const{tag:o,attributes:s={},children:r=[]}=i;if(o==="body")return r.map(f=>Xi(f,"",!0)).join("");const l=/^h([1-6])$/.exec(o);if(l){const f=di(r).trim();if(!f)return`
|
|
18
|
-
`;const m=parseInt(l[1],10);return`${"#".repeat(m)} ${f}
|
|
19
|
-
|
|
20
|
-
`}if(o==="p"){const f=di(r);return f.trim()?`${f.trim()}
|
|
21
|
-
|
|
22
|
-
`:`
|
|
23
|
-
`}if(o==="br")return`
|
|
24
|
-
`;if(o==="hr")return`---
|
|
25
|
-
|
|
26
|
-
`;const c=LS[o];if(c){const f=di(r);return`${c}${f}${c}`}if(o==="code"){const f=mc({children:r});return f.includes("`")?"`` "+f+" ``":"`"+f+"`"}if(o==="kbd")return`<kbd>${mc({children:r})}</kbd>`;if(o==="sub")return`<sub>${di(r)}</sub>`;if(o==="sup")return`<sup>${di(r)}</sup>`;if(o==="a"){const f=s.href||"",m=di(r),g=s.title;return g?`[${m}](${f} "${g}")`:`[${m}](${f})`}if(o==="img"){const f=s.src||"";return``}if(o==="blockquote")return r.map(g=>Xi(g,"",!0)).join("").replace(/\n$/,"").split(`
|
|
27
|
-
`).map(g=>`> ${g}`).join(`
|
|
28
|
-
`)+`
|
|
29
|
-
|
|
30
|
-
`;if(o==="pre"){let f="",m="";const g=r.find(v=>v.type==="element"&&v.tag==="code");return g?(f=(((d=g.attributes)==null?void 0:d.class)||"").replace(/^language-/,""),m=mc(g)):(f=((p=(((h=i.attributes)==null?void 0:h.class)||"").match(/language-(\S+)/))==null?void 0:p[1])||"",m=mc({children:r})),"```"+f+`
|
|
31
|
-
`+m+"\n```\n\n"}if(o==="details")return hn(i)+`
|
|
32
|
-
|
|
33
|
-
`;if(o==="summary")return hn(i);if(o==="ul")return wg(i,e,!1)+`
|
|
34
|
-
`;if(o==="ol")return wg(i,e,!0)+`
|
|
35
|
-
`;if(o==="table")return Cg(i)+`
|
|
36
|
-
`;if(o==="dl"){let f="";for(const m of r)m.type==="element"&&(m.tag==="dt"?f+=di(m.children).trim()+`
|
|
37
|
-
`:m.tag==="dd"&&(f+=": "+di(m.children).trim()+`
|
|
38
|
-
`));return f+`
|
|
39
|
-
`}if(o==="dt"||o==="dd")return di(r).trim();if(o==="div"){if(s.class&&/se-component/.test(s.class))return r.map(m=>Xi(m,e,!0)).join("");const f=di(r);return t?f+`
|
|
40
|
-
|
|
41
|
-
`:f}if(o==="span")return s.style||s.class?hn(i):di(r);if(o==="figure"){const f=r.map(m=>Xi(m,e,!0)).join("");return/\n$/.test(f)?f:f+`
|
|
42
|
-
|
|
43
|
-
`}if(o==="figcaption"){const f=di(r).trim();return f?f+`
|
|
44
|
-
|
|
45
|
-
`:""}return o==="video"||o==="audio"||o==="iframe"?hn(i)+`
|
|
46
|
-
|
|
47
|
-
`:hn(i)}function IS(i){return i?Xi(i,"",!0).replace(/\n{3,}/g,`
|
|
48
|
-
|
|
49
|
-
`).trim()+`
|
|
50
|
-
`:""}function un(i){if(!i)return"";const e=[];function t(o){return e.push(o),""+(e.length-1)+""}return i=i.replace(/\\([\\*_~`[\]()#!|{}<>+-])/g,(o,s)=>t(s)),i=i.replace(/``\s(.+?)\s``/g,(o,s)=>t("<code>"+s+"</code>")),i=i.replace(/`([^`]+)`/g,(o,s)=>t("<code>"+s+"</code>")),i=i.replace(/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,(o,s,r,l)=>t(l?`<img src="${r}" alt="${s}" title="${l}">`:`<img src="${r}" alt="${s}">`)),i=i.replace(/\[([^\]]+)\]\(([^)\s]+)(?:\s+"([^"]*)")?\)/g,(o,s,r,l)=>t(l?`<a href="${r}" title="${l}">${s}</a>`:`<a href="${r}">${s}</a>`)),i=i.replace(/<(https?:\/\/[^>]+)>/g,(o,s)=>t(`<a href="${s}">${s}</a>`)),i=i.replace(/<([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})>/g,(o,s)=>t(`<a href="mailto:${s}">${s}</a>`)),i=i.replace(new RegExp(`(?<![="'\\w/])(https?:\\/\\/[^\\s<>\\])"]+)`,"g"),(o,s)=>t(`<a href="${s}">${s}</a>`)),i=i.replace(/~~(.+?)~~/g,"<del>$1</del>"),i=i.replace(/\*{3}(.+?)\*{3}/g,"<strong><em>$1</em></strong>"),i=i.replace(/_{3}(.+?)_{3}/g,"<strong><em>$1</em></strong>"),i=i.replace(/\*{2}(.+?)\*{2}/g,"<strong>$1</strong>"),i=i.replace(/_{2}(.+?)_{2}/g,"<strong>$1</strong>"),i=i.replace(/\*(.+?)\*/g,"<em>$1</em>"),i=i.replace(new RegExp("(?<![a-zA-Z0-9])_(.+?)_(?![a-zA-Z0-9])","g"),"<em>$1</em>"),i=i.replace(/==(.+?)==/g,"<mark>$1</mark>"),i=i.replace(/\^([^\s^]+)\^/g,"<sup>$1</sup>"),i=i.replace(new RegExp("(?<!~)~([^\\s~]+)~(?!~)","g"),"<sub>$1</sub>"),i=i.replace(/\uFFFC(\d+)\uFFFC/g,(o,s)=>e[parseInt(s,10)]),i}function jb(i,e){var r;if(!i)return"";e||(e="p");const t=i.split(`
|
|
51
|
-
`),o=[];let s=0;for(;s<t.length;){const l=t[s];if(Rr(l)){s++;continue}const c=/^(`{3,}|~{3,})(\w*)/.exec(l);if(c){const p=c[1].charAt(0),f=c[1].length,m=c[2],g=[];s++;const v=new RegExp("^"+(p==="`"?"`":"~")+"{"+f+",}\\s*$");for(;s<t.length&&!v.test(t[s]);)g.push(t[s]),s++;s++;const b=m?` class="language-${m}"`:"";o.push(`<pre><code${b}>${$S(g.join(`
|
|
52
|
-
`))}</code></pre>`);continue}const d=/^(#{1,6})\s+(.+)/.exec(l);if(d){const p=d[1].length;o.push(`<h${p}>${un(d[2].trim())}</h${p}>`),s++;continue}if(/^(\*{3,}|-{3,}|_{3,})\s*$/.test(l)){o.push("<hr>"),s++;continue}if(/^>\s?/.test(l)){const p=[];for(;s<t.length&&/^>\s?/.test(t[s]);)p.push(t[s].replace(/^>\s?/,"")),s++;const f=jb(p.join(`
|
|
53
|
-
`),e);o.push(`<blockquote>${f}</blockquote>`);continue}if(/^\|.*\|/.test(l)&&s+1<t.length&&/^\|[\s:]*-{3,}[\s:]*/.test(t[s+1])){const p=[];for(;s<t.length&&/^\|.*\|/.test(t[s]);)p.push(t[s]),s++;o.push(Fb(p));continue}if(/^(\s*)([-*+])\s+/.test(l)){const p=kg(t,s,!1);o.push(p.html),s=p.index;continue}if(/^(\s*)\d+\.\s+/.test(l)){const p=kg(t,s,!0);o.push(p.html),s=p.index;continue}if(/^\s*<[a-zA-Z]/.test(l)){let p=l;if(s++,Hb.test(((r=l.match(/<(\w+)/))==null?void 0:r[1])||"")){o.push(p);continue}for(;s<t.length&&!Rr(t[s]);)p+=`
|
|
54
|
-
`+t[s],s++;o.push(p);continue}const h=[];for(;s<t.length&&!Rr(t[s])&&!/^(#{1,6}\s|`{3,}|~{3,}|>|\||(\s*)([-*+]|\d+\.)\s|(\*{3,}|-{3,}|_{3,})\s*$)/.test(t[s]);)h.push(t[s]),s++;if(h.length>0){const p=un(h.join(`
|
|
55
|
-
`));o.push(`<${e}>${p}</${e}>`)}else o.push(`<${e}>${un(t[s])}</${e}>`),s++}return o.join("")}function Fb(i){if(i.length<2)return"";const e=p=>p.replace(/^\|/,"").replace(/\|$/,"").split("|").map(f=>f.trim()),t=e(i[0]),s=e(i[1]).map(p=>{const f=p.trim();return/^:-+:$/.test(f)?"center":/^-+:$/.test(f)?"right":/^:-+$/.test(f)?"left":""}),r=i.slice(2).map(e),l=t.length,c=t.every(p=>p==="");let d="<table>";const h=p=>{const f=s[p];return f?` style="text-align: ${f};"`:""};if(!c){d+="<thead><tr>";for(let p=0;p<l;p++)d+=`<th${h(p)}>${un(t[p])}</th>`;d+="</tr></thead>"}if(r.length>0||c){d+="<tbody>";for(const p of r){d+="<tr>";for(let f=0;f<l;f++)d+=`<td${h(f)}>${un(p[f]||"")}</td>`;d+="</tr>"}d+="</tbody>"}return d+="</table>",d}function kg(i,e,t){const o=t?"ol":"ul",s=t?/^(\s*)\d+\.\s+(.*)/:/^(\s*)([-*+])\s+(.*)/;let r=`<${o}>`,l=e;const c=(i[l].match(/^(\s*)/)[1]||"").length;for(;l<i.length;){const d=i[l];if(Rr(d)){l++;continue}const h=(d.match(/^(\s*)/)[1]||"").length;if(h<c)break;if(h===c){if(!s.exec(d))break;const f=t?d.replace(/^\s*\d+\.\s+/,""):d.replace(/^\s*[-*+]\s+/,"");l++;let m=!1,g=!1,v=f;const b=/^\[([ xX])\]\s*(.*)/.exec(f);b&&(m=!0,g=b[1]!==" ",v=b[2]);let y="";for(;l<i.length;){const C=i[l];if(Rr(C)){l++;continue}if((C.match(/^(\s*)/)[1]||"").length<=c)break;if(/^\s*[-*+]\s+/.test(C)||/^\s*\d+\.\s+/.test(C)){const S=kg(i,l,/^\s*\d+\.\s+/.test(C));y+=S.html,l=S.index;continue}const _=C.trimStart();if(/^\|.*\|/.test(_)&&l+1<i.length&&/^\s*\|[\s:]*-{3,}/.test(i[l+1])){const S=[];for(;l<i.length;){const T=i[l];if(Rr(T)||(T.match(/^(\s*)/)[1]||"").length<=c||!/^\s*\|/.test(T))break;S.push(T.trimStart()),l++}y+=Fb(S);continue}break}m?r+=`<li class="task-list-item">${g?'<input type="checkbox" checked disabled> ':'<input type="checkbox" disabled> '}${un(v)}${y}</li>`:r+=`<li>${un(f)}${y}</li>`}else break}return r+=`</${o}>`,{html:r,index:l}}function $S(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}const OS={jsonToMarkdown:IS,markdownToHtml:jb},DS=/<!--\[if[^>]*>[\s\S]*?<!\[endif\]-->/gi,VS=/<\/?(?:\w+:)\w+[^>]*>/gi,RS=/<xml>[\s\S]*?<\/xml>/gi,zS=/<style[^>]*>[\s\S]*?<\/style>/gi,PS=/\s*mso-[^:]+:[^;"]+;?/gi,HS=/l(\d+)\s+level(\d+)\s+lfo(\d+)/i,Wb=/mso-list:\s*Ignore/i,jS=/\bMso\w+/g,FS=/\bxl\d+/g,WS=/\s*tab-stops:[^;"]+;?/gi,US=/^[\s\u00a0]*[\u2022\u00b7\u00a7\u25cf\u25cb\u25aa\u25a0·o§]\s*/,qS=[/^\s*[0-9]+[.)]\s/,/^\s*[a-z][.)]\s/i,/^\s*[ivxlmcd]+[.)]\s/i],ZS=/<span\s+style\s*=\s*["']?\s*mso-spacerun:\s*yes\s*;?\s*["']?\s*>([\s\u00a0]*)<\/span>/gi,GS=/<span\s+style\s*=\s*["'][^"']*mso-tab-count:\s*\d+[^"']*["']\s*>[^<]*<\/span>/gi,YS=/mso-outline-level:\s*(\d+)/i,KS=/mso-highlight:\s*([^;"]+)/i,XS=/mso-level-number-format:\s*([^;\s]+)/i,QS=/mso-level-start-at:\s*(\d+)/i,JS=/mso-level-text:\s*([^;\s]+)/i,eA={decimal:"decimal","alpha-upper":"upper-alpha","alpha-lower":"lower-alpha","roman-upper":"upper-roman","roman-lower":"lower-roman","arabic-leading-zero":"decimal-leading-zero"},tA=/\s*margin:\s*0[a-z]*\s+0[a-z]*\s+0[a-z]*\s*;?/gi,iA=/\s*text-indent:\s*-?[\d.]+[a-z]*\s*;?/gi,oA=/\s*line-height:\s*normal\s*;?/gi,sA=/MsoHeading(\d)/i,Ub=/^file:\/\/\//i,nA=/^_(Toc|Ref|Hlt|Hlk)\d+$/i,rA=/^#_(Toc|Ref|Hlt|Hlk)\d+$/i,aA=/page-break-before\s*:\s*always/i,lA=/mso-break-type\s*:\s*section-break/i,cA=/mso-column-break-before\s*:\s*always/i,dA=/^(?:Word)?Section\d+$/i;function hA(i){const e=new Map,t=i.match(/<style[^>]*>([\s\S]*?)<\/style>/i);if(!t)return e;const o=t[1],s=/@list\s+l(\d+):level(\d+)\s*\{([^}]*)\}/gi;let r;for(;(r=s.exec(o))!==null;){const l=r[1],c=r[2],d=r[3],h=`l${l}:level${c}`,p=XS.exec(d),f=QS.exec(d),m=JS.exec(d);let g="ol",v="";if(p){const b=p[1].toLowerCase();if(b==="bullet"||b==="image"){if(g="ul",m){const y=m[1].replace(/["%\\]/g,"");y==="·"||y==="·"?v="disc":y==="o"?v="circle":(y==="§"||y==="§")&&(v="square")}}else v=eA[b]||""}e.set(h,{type:g,listStyleType:v,startAt:f?parseInt(f[1],10):1})}return e}function uA(i){const e=i.replace(/[\s\u00a0]+/g," ").trim();if(US.test(e))return"ul";for(const t of qS)if(t.test(e))return"ol";return"ul"}function pA(i){const e=document.createTreeWalker(i,NodeFilter.SHOW_COMMENT,null),t=[];for(;e.nextNode();)t.push(e.currentNode);for(const s of t)s==null||s.remove();const o=i.querySelectorAll("span");for(const s of o){const r=s.getAttribute("style")||"";Wb.test(r)&&s.remove()}i.firstChild&&i.firstChild.nodeType===3&&(i.firstChild.nodeValue=i.firstChild.nodeValue.replace(/^[\s\u00a0]+/,""))}function qb(i){const e=i.getAttribute("style");if(!e)return;let t=e;const o=KS.exec(t);o&&!/background-color/i.test(t)&&!/background\s*:/i.test(t)&&(t+=";background-color:"+o[1].trim()),t=t.replace(PS,"").replace(WS,"").replace(tA,"").replace(iA,"").replace(oA,"").trim(),t=t.replace(/^;+|;+$/g,"").replace(/;{2,}/g,";").trim(),t?i.setAttribute("style",t):i.removeAttribute("style")}function _g(i){const e=i.getAttribute("class");if(!e)return;const t=e.replace(jS,"").replace(FS,"").trim();t?i.setAttribute("class",t):i.removeAttribute("class")}function fA(i){const e=i.querySelectorAll("span");for(let t=e.length-1;t>=0;t--){const o=e[t];if(!o.attributes.length||!o.getAttribute("style")&&!o.getAttribute("class")){const s=o.parentNode;if(s){for(;o.firstChild;)s.insertBefore(o.firstChild,o);s.removeChild(o)}}}}function mA(i,e){const t=i.body,o=[],s=t.querySelectorAll("p, h1, h2, h3, h4, h5, h6");for(const c of s){const d=c.getAttribute("style")||"",h=c.getAttribute("class")||"",p=HS.exec(d);(p||/MsoListParagraph/i.test(h))&&o.push({el:c,listId:p?p[1]:"0",level:p?parseInt(p[2],10):1,lfo:p?p[3]:"1"})}if(o.length===0)return;const r=[];let l=null;for(const c of o){const d=gA(c.el);l&&l.length>0&&d===l[l.length-1].el?l.push(c):(l=[c],r.push(l))}for(const c of r)bA(c,e)}function gA(i){let e=i.previousSibling;for(;e;){if(e.nodeType===1)return e;if(e.nodeType===3&&e.nodeValue.trim())return null;e=e.previousSibling}return null}function bA(i,e){for(const l of i){const c=`l${l.listId}:level${l.level}`,d=e.get(c);if(d)l.type=d.type,l.listStyleType=d.listStyleType,l.startAt=d.startAt;else{const h=vA(l.el);l.type=uA(h),l.listStyleType="",l.startAt=1}}const t=i[0].el.parentNode,o=i[i.length-1].el.nextSibling,s=[];let r=null;for(const l of i){const{el:c,level:d,type:h,listStyleType:p,startAt:f}=l;pA(c),qb(c),_g(c);const m=c.ownerDocument.createElement("li");for(;c.firstChild;)m.appendChild(c.firstChild);if(c.getAttribute("style")&&m.setAttribute("style",c.getAttribute("style")),s.length===0)r=Zb(c.ownerDocument,h,p,f),r.appendChild(m),s.push({listEl:r,level:d});else{const g=s[s.length-1].level;if(d>g){const v=s[s.length-1].listEl.lastElementChild,b=Zb(c.ownerDocument,h,p,f);b.appendChild(m),v?v.appendChild(b):s[s.length-1].listEl.appendChild(b),s.push({listEl:b,level:d})}else if(d<g){for(;s.length>1&&s[s.length-1].level>d;)s.pop();s[s.length-1].listEl.appendChild(m)}else s[s.length-1].listEl.appendChild(m)}c.remove()}r&&t.insertBefore(r,o)}function Zb(i,e,t,o){const s=i.createElement(e);return t&&(s.style.listStyleType=t),e==="ol"&&o>1&&s.setAttribute("start",String(o)),s}function vA(i){var t;const e=i.querySelectorAll("span");for(const o of e){const s=o.getAttribute("style")||"";if(Wb.test(s))return o.textContent||""}return((t=i.textContent)==null?void 0:t.substring(0,10))||""}function yA(i){const e=i.body.querySelectorAll("p");for(const t of e){const o=t.getAttribute("style")||"",s=t.getAttribute("class")||"";let r=0;const l=YS.exec(o);if(l&&(r=parseInt(l[1],10)),!r){const c=sA.exec(s);c&&(r=parseInt(c[1],10))}if(r>=1&&r<=6){const c=i.createElement("h"+r);for(;t.firstChild;)c.appendChild(t.firstChild);o&&c.setAttribute("style",o),t.replaceWith(c)}}}function wA(i){const e=i.body.querySelectorAll("table");for(const s of e){_g(s),s.removeAttribute("cellspacing"),s.removeAttribute("cellpadding");const r=s.querySelectorAll("col");for(const c of r)c.remove();const l=s.querySelectorAll("colgroup");for(const c of l)c.children.length||c.remove()}const t=i.body.querySelectorAll("tr");for(const s of t)s.removeAttribute("height");const o=i.body.querySelectorAll("td, th");for(const s of o){const r=s.getAttribute("valign");if(r){s.removeAttribute("valign");const c=s.getAttribute("style")||"";/vertical-align/i.test(c)||s.setAttribute("style",(c?c+";":"")+"vertical-align:"+r)}const l=s.children;if(l.length===1&&l[0].tagName==="P"){const c=l[0],d=c.getAttribute("class")||"";if(/MsoNormal/i.test(d)||!d){for(;c.firstChild;)s.insertBefore(c.firstChild,c);c.remove()}}}}function CA(i){const e=i.body.querySelectorAll("del, .msoDel");for(const c of e)c.remove();const t=i.body.querySelectorAll("ins, .msoIns");for(let c=t.length-1;c>=0;c--){const d=t[c],h=d.parentNode;if(h){for(;d.firstChild;)h.insertBefore(d.firstChild,d);d.remove()}}const o=i.body.querySelectorAll('.MsoCommentReference, [style*="mso-comment-reference"]');for(const c of o)c.remove();const s=i.body.querySelectorAll(".MsoCommentText");for(const c of s)c.remove();const r=i.body.querySelectorAll('div[style*="mso-element:comment"]');for(const c of r)c.remove();const l=i.body.querySelectorAll('a[name^="_msocom"], a[name^="_msoanchor"]');for(const c of l)c.remove()}function kA(i){const e=i.body.querySelectorAll("a");for(let t=e.length-1;t>=0;t--){const o=e[t],s=o.getAttribute("href")||"",r=o.getAttribute("name")||"";if(Ub.test(s)){const l=o.parentNode;if(l){for(;o.firstChild;)l.insertBefore(o.firstChild,o);o.remove()}continue}if(nA.test(r)){const l=o.parentNode;if(l){if(o.childNodes.length)for(;o.firstChild;)l.insertBefore(o.firstChild,o);o.remove()}continue}if(rA.test(s)){const l=o.parentNode;if(l){for(;o.firstChild;)l.insertBefore(o.firstChild,o);o.remove()}continue}o.removeAttribute("v:shapes")}}function _A(i){const e=i.body.querySelectorAll("img");for(let t=e.length-1;t>=0;t--){const o=e[t],s=o.getAttribute("src")||"";if(Ub.test(s)){o.remove();continue}o.removeAttribute("v:shapes")}}function xA(i){const e=i.body.querySelectorAll("br");for(let o=e.length-1;o>=0;o--){const s=e[o],r=s.getAttribute("style")||"";if(aA.test(r)||lA.test(r)){s.remove();continue}if(cA.test(r)){s.remove();continue}s.removeAttribute("style"),s.removeAttribute("clear")}const t=i.body.querySelectorAll('div[class*="Section"]');for(let o=t.length-1;o>=0;o--){const s=t[o],r=s.getAttribute("class")||"";if(dA.test(r.trim())){const l=s.parentNode;if(l){for(;s.firstChild;)l.insertBefore(s.firstChild,s);s.remove()}}}}function EA(i){if(!i)return"";const e=hA(i);let t=i;t=t.replace(zS,""),t=t.replace(RS,""),t=t.replace(DS,""),t=t.replace(VS,""),t=t.replace(/<!--(?:Start|End)Fragment-->/gi,""),t=t.replace(/<(?:meta|link)[^>]*>/gi,""),t=t.replace(ZS," "),t=t.replace(GS," "),t=t.replace(/( ){2,}/g," "),t=t.replace(/\u00AD/g,"");const o=new DOMParser().parseFromString(t,"text/html");CA(o),mA(o,e),yA(o),wA(o),kA(o),_A(o),xA(o);const s=o.body.querySelectorAll("*");for(const l of s){qb(l),_g(l),l.getAttribute("lang")&&l.removeAttribute("lang"),l.removeAttribute("v:shapes");const c=l.tagName.toLowerCase();c!=="img"&&c!=="video"&&c!=="iframe"&&c!=="table"&&c!=="td"&&c!=="th"&&(l.removeAttribute("width"),l.removeAttribute("height"))}fA(o.body);const r=o.body.querySelectorAll("p");for(const l of r)!l.textContent.trim()&&!l.querySelector("img, video, iframe, br, table")&&l.remove();return o.body.innerHTML}const TA={cleanHTML:EA},ge=vT,De=wT,Te=QT,u=nS,Q=ET,Me=MS,MA=BS,Ku=OS,SA=TA;/*!
|
|
56
|
-
* Toolbar icons are inlined SVGs sourced from:
|
|
57
|
-
* - Lucide — https://lucide.dev (ISC License, © Lucide Contributors)
|
|
58
|
-
* - Tabler — https://tabler.io/icons (MIT License, © Paweł Kuna)
|
|
59
|
-
* Both sets share a 24×24 grid and 2px round stroke, rendered via `.se-io`
|
|
60
|
-
* (fill:none; stroke:currentColor). No runtime dependency — SVGs are inlined.
|
|
61
|
-
*
|
|
62
|
-
* ── `se-io-sharp` (opt-in crispness) ────────────────────────────────────────
|
|
63
|
-
* Add `se-io-sharp` to the `class` (e.g. `class="se-io se-io-sharp"`) ONLY for
|
|
64
|
-
* outline icons dominated by axis-aligned STRAIGHT strokes — e.g. `split_cell`
|
|
65
|
-
* (divider line), `delete` (trash verticals + lid), `copy` (rectangle edges).
|
|
66
|
-
*
|
|
67
|
-
* Why: at the 18px display size a 24-grid / 2px stroke renders as ~1.5px. On
|
|
68
|
-
* fractional-DPR screens (Windows 125% → 1.25, 150% → 1.5) that lands on
|
|
69
|
-
* non-integer physical pixels, so straight strokes look soft — and can flicker
|
|
70
|
-
* sharp↔blurry when a neighbouring control repaints the shared compositor layer
|
|
71
|
-
* (the built-in controllers are popovers = top-layer). Curvy/diagonal icons
|
|
72
|
-
* hide this via anti-aliasing and do NOT need the class.
|
|
73
|
-
*
|
|
74
|
-
* How it works: the CSS rule `.se-io-sharp { transform: translateZ(0) }`
|
|
75
|
-
* (src/assets/suneditor.css) promotes just that icon to its own GPU layer, which
|
|
76
|
-
* is re-rasterised from the vector at device resolution instead of being scaled
|
|
77
|
-
* up from a wrongly-cached low-res bitmap. Promotion only affects the element it
|
|
78
|
-
* is applied to — putting it on a parent/controller does NOT sharpen children.
|
|
79
|
-
*
|
|
80
|
-
* Cost / guardrail: each promoted icon is a tiny static layer (~3–5 KB GPU mem,
|
|
81
|
-
* present only while its controller is open) — negligible. Keep it SCOPED to the
|
|
82
|
-
* few icons that visibly blur; do NOT blanket every icon (needless layers), and
|
|
83
|
-
* prefer `translateZ(0)` over `will-change: transform` (the latter keeps the
|
|
84
|
-
* layer alive permanently).
|
|
85
|
-
*/const Gb={redo:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 14 5-5-5-5" /><path d="M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" /></svg>',undo:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 14 4 9l5-5" /><path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" /></svg>',bold:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8" /></svg>',underline:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 4v6a6 6 0 0 0 12 0V4" /><line x1="4" x2="20" y1="20" y2="20" /></svg>',italic:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><line x1="19" x2="10" y1="4" y2="4" /><line x1="14" x2="5" y1="20" y2="20" /><line x1="15" x2="9" y1="4" y2="20" /></svg>',strike:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 4H9a3 3 0 0 0-2.83 4" /><path d="M14 12a4 4 0 0 1 0 8H6" /><line x1="4" x2="20" y1="12" y2="12" /></svg>',subscript:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m4 5 8 8" /><path d="m12 5-8 8" /><path d="M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07" /></svg>',superscript:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m4 19 8-8" /><path d="m12 19-8-8" /><path d="M20 12h-4c0-1.5.442-2 1.5-2.5S20 8.334 20 7.002c0-.472-.17-.93-.484-1.29a2.105 2.105 0 0 0-2.617-.436c-.42.239-.738.614-.899 1.06" /></svg>',remove_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 2v2" /><path d="M14 2v4" /><path d="M17 2a1 1 0 0 1 1 1v9H6V3a1 1 0 0 1 1-1z" /><path d="M6 12a1 1 0 0 0-1 1v1a2 2 0 0 0 2 2h2a1 1 0 0 1 1 1v2.9a2 2 0 1 0 4 0V17a1 1 0 0 1 1-1h2a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1" /></svg>',remove_format:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 7V4h16v3" /><path d="M5 20h6" /><path d="M13 4 8 20" /><path d="m15 15 5 5" /><path d="m20 15-5 5" /></svg>',indent:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H11" /><path d="M21 12H11" /><path d="M21 19H11" /><path d="m3 8 4 4-4 4" /></svg>',outdent:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H11" /><path d="M21 12H11" /><path d="M21 19H11" /><path d="m7 8-4 4 4 4" /></svg>',expansion:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 3H5a2 2 0 0 0-2 2v3" /><path d="M21 8V5a2 2 0 0 0-2-2h-3" /><path d="M3 16v3a2 2 0 0 0 2 2h3" /><path d="M16 21h3a2 2 0 0 0 2-2v-3" /></svg>',reduction:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 3v3a2 2 0 0 1-2 2H3" /><path d="M21 8h-3a2 2 0 0 1-2-2V3" /><path d="M3 16h3a2 2 0 0 1 2 2v3" /><path d="M16 21v-3a2 2 0 0 1 2-2h3" /></svg>',code_block:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m10 9-3 3 3 3" /><path d="m14 15 3-3-3-3" /><rect x="3" y="3" width="18" height="18" rx="2" /></svg>',code_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 7-5 5 5 5" /><path d="m15 7 5 5-5 5" /></svg>',markdown_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 17V7l4 5 4-5v10" /><path d="M17 7v7" /><path d="M14 14l3 3l3-3" /></svg>',preview:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /><circle cx="12" cy="12" r="3" /></svg>',print:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2" /><path d="M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6" /><rect x="6" y="14" width="12" height="8" rx="1" /></svg>',template:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M8 2v4" /><path d="M12 2v4" /><path d="M16 2v4" /><rect width="16" height="18" x="4" y="4" rx="2" /><path d="M8 10h6" /><path d="M8 14h8" /><path d="M8 18h5" /></svg>',layout:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M3 9h18" /><path d="M9 21V9" /></svg>',ai:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /><path d="M20 2v4" /><path d="M22 4h-4" /><circle cx="4" cy="20" r="2" /></svg>',new_document:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',select_all:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M8 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1l0 -6" /><path d="M12 20v.01" /><path d="M16 20v.01" /><path d="M8 20v.01" /><path d="M4 20v.01" /><path d="M4 16v.01" /><path d="M4 12v.01" /><path d="M4 8v.01" /><path d="M4 4v.01" /><path d="M8 4v.01" /><path d="M12 4v.01" /><path d="M16 4v.01" /><path d="M20 4v.01" /><path d="M20 8v.01" /><path d="M20 12v.01" /><path d="M20 16v.01" /><path d="M20 20v.01" /></svg>',line_height:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 8l3 -3l3 3" /><path d="M3 16l3 3l3 -3" /><path d="M6 5l0 14" /><path d="M13 6l7 0" /><path d="M13 12l7 0" /><path d="M13 18l7 0" /></svg>',paragraph_style:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 4v16" /><path d="M17 4v16" /><path d="M19 4H9.5a4.5 4.5 0 0 0 0 9H13" /></svg>',text_style:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14 16.5a.5.5 0 0 0 .5.5h.5a2 2 0 0 1 0 4H9a2 2 0 0 1 0-4h.5a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5V8a2 2 0 0 1-4 0V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a2 2 0 0 1-4 0v-.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5Z" /></svg>',save:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" /><path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" /><path d="M7 3v4a1 1 0 0 0 1 1h7" /></svg>',blockquote:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" /><path d="M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" /></svg>',arrow_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',align_justify:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h18" /><path d="M3 12h18" /><path d="M3 19h18" /></svg>',align_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M15 12H3" /><path d="M17 19H3" /></svg>',align_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M21 12H9" /><path d="M21 19H7" /></svg>',align_center:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M17 12H7" /><path d="M19 19H5" /></svg>',align_top:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l16 0" /><path d="M9 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',align_middle:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l5 0" /><path d="M15 12l5 0" /><path d="M9 8a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',align_bottom:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 20l16 0" /><path d="M9 6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8" /></svg>',format_float_none:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M14 7l6 0" /><path d="M14 11l6 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 7l6 0" /><path d="M4 11l6 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',format_float_center:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M9 6a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4" /><path d="M4 7l1 0" /><path d="M4 11l1 0" /><path d="M19 7l1 0" /><path d="M19 11l1 0" /><path d="M4 15l16 0" /><path d="M4 19l16 0" /></svg>',font_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 16 6-12 6 12" /><path d="M8 12h8" /><path class="se-svg-color-helper" stroke-width="2.5" d="M4 20h16" /></svg>',background_color:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><g transform="translate(1 -2) scale(0.9)" stroke-width="2.22"><path d="m9 11-6 6v3h9l3-3" /><path d="m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4" /></g><path class="se-svg-color-helper" stroke-width="2.5" d="M4 20h16" /></svg>',list_bulleted:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h.01" /><path d="M3 12h.01" /><path d="M3 19h.01" /><path d="M8 5h13" /><path d="M8 12h13" /><path d="M8 19h13" /></svg>',list_numbered:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11 5h10" /><path d="M11 12h10" /><path d="M11 19h10" /><path d="M4 4h1v5" /><path d="M4 9h2" /><path d="M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02" /></svg>',list_checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 5h8" /><path d="M13 12h8" /><path d="M13 19h8" /><path d="m3 17 2 2 4-4" /><rect x="3" y="4" width="6" height="6" rx="1" /></svg>',table:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3v18" /><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M3 9h18" /><path d="M3 15h18" /></svg>',table_header:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14" /><path d="M9 3l-6 6" /><path d="M14 3l-7 7" /><path d="M19 3l-7 7" /><path d="M21 6l-4 4" /><path d="M3 10h18" /><path d="M10 10v11" /></svg>',table_properties:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M11.035 7.69a1 1 0 0 1 1.909.024l.737 1.452a1 1 0 0 0 .737.535l1.634.256a1 1 0 0 1 .588 1.806l-1.172 1.168a1 1 0 0 0-.282.866l.259 1.613a1 1 0 0 1-1.541 1.134l-1.465-.75a1 1 0 0 0-.912 0l-1.465.75a1 1 0 0 1-1.539-1.133l.258-1.613a1 1 0 0 0-.282-.866l-1.156-1.153a1 1 0 0 1 .572-1.822l1.633-.256a1 1 0 0 0 .737-.535z" /><rect x="3" y="3" width="18" height="18" rx="2" /></svg>',cell_properties:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 21h-7a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M17.001 19a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19.001 15.5v1.5" /><path d="M19.001 21v1.5" /><path d="M22.032 17.25l-1.299 .75" /><path d="M17.27 20l-1.3 .75" /><path d="M15.97 17.25l1.3 .75" /><path d="M20.733 20l1.3 .75" /></svg>',table_column:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /><path d="M15 3v18" /></svg>',table_row:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M21 9H3" /><path d="M21 15H3" /></svg>',color_checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 6 9 17l-5-5" /></svg>',color_palette:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" /><circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /><circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /><circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /><circle cx="8.5" cy="7.5" r=".5" fill="currentColor" /></svg>',border_all:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12" /><path d="M4 12l16 0" /><path d="M12 4l0 16" /></svg>',border_inside:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l16 0" /><path d="M12 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 12l16 0" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M12 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_outside:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12" /><path d="M12 8l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M12 16l0 .01" /></svg>',border_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 20l0 -16" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_top:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l16 0" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',border_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 4l0 16" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /></svg>',border_bottom:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 20l-16 0" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /></svg>',border_none:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 4l0 .01" /><path d="M8 4l0 .01" /><path d="M12 4l0 .01" /><path d="M16 4l0 .01" /><path d="M20 4l0 .01" /><path d="M4 8l0 .01" /><path d="M12 8l0 .01" /><path d="M20 8l0 .01" /><path d="M4 12l0 .01" /><path d="M8 12l0 .01" /><path d="M12 12l0 .01" /><path d="M16 12l0 .01" /><path d="M20 12l0 .01" /><path d="M4 16l0 .01" /><path d="M12 16l0 .01" /><path d="M20 16l0 .01" /><path d="M4 20l0 .01" /><path d="M8 20l0 .01" /><path d="M12 20l0 .01" /><path d="M16 20l0 .01" /><path d="M20 20l0 .01" /></svg>',horizontal_line:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /></svg>',show_blocks:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3a2 2 0 0 0-2 2" /><path d="M19 3a2 2 0 0 1 2 2" /><path d="M21 19a2 2 0 0 1-2 2" /><path d="M5 21a2 2 0 0 1-2-2" /><path d="M9 3h1" /><path d="M9 21h1" /><path d="M14 3h1" /><path d="M14 21h1" /><path d="M3 9v1" /><path d="M21 9v1" /><path d="M3 14v1" /><path d="M21 14v1" /></svg>',cancel:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M18 6 6 18" /><path d="m6 6 12 12" /></svg>',selection_remove:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><path d="m15 9-6 6" /><path d="m9 9 6 6" /></svg>',image:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" ry="2" /><circle cx="9" cy="9" r="2" /><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" /></svg>',image_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M15 8h.01" /><path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12" /><path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5" /><path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3" /></svg>',video:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" /><rect x="2" y="6" width="14" height="12" rx="2" /></svg>',video_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M7 3v18" /><path d="M3 7.5h4" /><path d="M3 12h18" /><path d="M3 16.5h4" /><path d="M17 3v18" /><path d="M17 7.5h4" /><path d="M17 16.5h4" /></svg>',link:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" /><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" /></svg>',link_rel:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 17H7A5 5 0 0 1 7 7h2" /><path d="M15 7h2a5 5 0 1 1 0 10h-2" /><line x1="8" x2="16" y1="12" y2="12" /></svg>',math:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M18 7V5a1 1 0 0 0-1-1H6.5a.5.5 0 0 0-.4.8l4.5 6a2 2 0 0 1 0 2.4l-4.5 6a.5.5 0 0 0 .4.8H17a1 1 0 0 0 1-1v-2" /></svg>',unlink:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" /><path d="m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" /><line x1="8" x2="8" y1="2" y2="5" /><line x1="2" x2="5" y1="8" y2="8" /><line x1="16" x2="16" y1="19" y2="22" /><line x1="19" x2="22" y1="16" y2="16" /></svg>',merge_cell:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M3 7h1.948c1.913 0 3.705 .933 4.802 2.5a5.861 5.861 0 0 0 4.802 2.5h6.448" /><path d="M3 17h1.95a5.854 5.854 0 0 0 4.798 -2.5a5.854 5.854 0 0 1 4.798 -2.5h5.454" /><path d="M18 15l3 -3l-3 -3" /></svg>',split_cell:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3"/><path d="M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3"/><line x1="12" x2="12" y1="4" y2="20"/></svg>',unmerge_cell:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M21 17h-5.397a5 5 0 0 1 -4.096 -2.133l-.514 -.734a5 5 0 0 0 -4.096 -2.133h-3.897" /><path d="M21 7h-5.395a5 5 0 0 0 -4.098 2.135l-.51 .73a5 5 0 0 1 -4.097 2.135h-3.9" /><path d="M18 10l3 -3l-3 -3" /><path d="M18 20l3 -3l-3 -3" /></svg>',caption:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="14" x="3" y="5" rx="2" ry="2" /><path d="M7 15h4M15 15h2M7 11h2M13 11h4" /></svg>',edit:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /><path d="m15 5 4 4" /></svg>',delete:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 11v6"/><path d="M14 11v6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M3 6h18"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>',revert:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /><path d="M3 3v5h5" /><path d="M12 7v5l4 2" /></svg>',auto_size:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" /><path d="M14 15H9v-5" /><path d="M16 3h5v5" /><path d="M21 3 9 15" /></svg>',resize:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 11v8a1 1 0 0 0 1 1h8m-9 -14v-1a1 1 0 0 1 1 -1h1m5 0h2m5 0h1a1 1 0 0 1 1 1v1m0 5v2m0 5v1a1 1 0 0 1 -1 1h-1" /><path d="M4 12h7a1 1 0 0 1 1 1v7" /></svg>',insert_row_below:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1" /><path d="M12 15l0 4" /><path d="M14 17l-4 0" /></svg>',insert_row_above:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M4 18v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1" /><path d="M12 9v-4" /><path d="M10 7l4 0" /></svg>',insert_column_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M5 12l4 0" /><path d="M7 10l0 4" /></svg>',insert_column_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M15 12l4 0" /><path d="M17 10l0 4" /></svg>',delete_row:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M20 6v4a1 1 0 0 1 -1 1h-14a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h14a1 1 0 0 1 1 1" /><path d="M10 16l4 4" /><path d="M10 20l4 -4" /></svg>',delete_column:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-14a1 1 0 0 1 1 -1" /><path d="M16 10l4 4" /><path d="M16 14l4 -4" /></svg>',fixed_column_width:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 12v-6a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v6" /><path d="M10 18h-7" /><path d="M21 18h-7" /><path d="M6 15l-3 3l3 3" /><path d="M18 15l3 3l-3 3" /></svg>',rotate_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /><path d="M3 3v5h5" /></svg>',rotate_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" /><path d="M21 3v5h-5" /></svg>',mirror_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m3 7 5 5-5 5V7" /><path d="m21 7-5 5 5 5V7" /><path d="M12 20v2" /><path d="M12 14v2" /><path d="M12 8v2" /><path d="M12 2v2" /></svg>',mirror_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m17 3-5 5-5-5h10" /><path d="m17 21-5-5-5 5h10" /><path d="M4 12H2" /><path d="M10 12H8" /><path d="M16 12h-2" /><path d="M22 12h-2" /></svg>',checked:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 6 9 17l-5-5" /></svg>',line_break:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 4v7a4 4 0 0 1-4 4H4" /><path d="m9 10-5 5 5 5" /></svg>',audio:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M9 18V5l12-2v13" /><circle cx="6" cy="18" r="3" /><circle cx="18" cy="16" r="3" /></svg>',audio_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0" /></svg>',image_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16" /><path d="M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2" /><circle cx="13" cy="7" r="1" fill="currentColor" /><rect x="8" y="2" width="14" height="14" rx="2" /></svg>',audio_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M16 5H3" /><path d="M11 12H3" /><path d="M11 19H3" /><path d="M21 16V5" /><circle cx="18" cy="16" r="3" /></svg>',video_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m12.296 3.464 3.02 3.956" /><path d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z" /><path d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" /><path d="m6.18 5.276 3.1 3.899" /></svg>',file_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" /><path d="M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z" /><path d="M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" /></svg>',file_browser:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" /></svg>',bookmark:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" /></svg>',bookmark_anchor:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 6v16" /><path d="m19 13 2-1a9 9 0 0 1-18 0l2 1" /><path d="M9 11h6" /><circle cx="12" cy="4" r="2" /></svg>',download:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 15V3" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /><path d="m7 10 5 5 5-5" /></svg>',dir_ltr:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M10 3v11" /><path d="M10 9H7a1 1 0 0 1 0-6h8" /><path d="M14 3v11" /><path d="m18 14 4 4H2" /><path d="m22 18-4 4" /></svg>',dir_rtl:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14 3v11" /><path d="M14 9h-3a3 3 0 0 1 0-6h9" /><path d="M18 3v11" /><path d="M22 18H2l4-4" /><path d="m6 22-4-4" /></svg>',dragHandle:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="9" cy="12" r="1" /><circle cx="9" cy="5" r="1" /><circle cx="9" cy="19" r="1" /><circle cx="15" cy="12" r="1" /><circle cx="15" cy="5" r="1" /><circle cx="15" cy="19" r="1" /></svg>',file_upload:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M12 12v6" /><path d="m15 15-3-3-3 3" /></svg>',file_thumbnail:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',file_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M9 15h6" /><path d="M12 18v-6" /></svg>',upload_tray:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 3v12" /><path d="m17 8-5-5-5 5" /><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /></svg>',folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /><path d="M12 5v14" /></svg>',minus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /></svg>',selection:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3a2 2 0 0 0-2 2" /><path d="M19 3a2 2 0 0 1 2 2" /><path d="M21 19a2 2 0 0 1-2 2" /><path d="M5 21a2 2 0 0 1-2-2" /><path d="M9 3h1" /><path d="M9 21h1" /><path d="M14 3h1" /><path d="M14 21h1" /><path d="M3 9v1" /><path d="M21 9v1" /><path d="M3 14v1" /><path d="M21 14v1" /></svg>',copy:'<svg class="se-io se-io-sharp" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="14" height="14" x="8" y="8" rx="2" ry="2" /><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></svg>',cut:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="6" cy="6" r="3" /><path d="M8.12 8.12 12 12" /><path d="M20 4 8.12 15.88" /><circle cx="6" cy="18" r="3" /><path d="M14.8 14.8 20 20" /></svg>',PDF:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path stroke="none" d="M0 0h24v24H0z" fill="none" /><path d="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" /><path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6" /><path d="M17 18h2" /><path d="M20 15h-3v6" /><path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" /></svg>',format_paint:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m14.622 17.897-10.68-2.913" /><path d="M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z" /><path d="M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15" /></svg>',drawing:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m11 10 3 3" /><path d="M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z" /><path d="M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031" /></svg>',eraser:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21" /><path d="m5.082 11.09 8.828 8.828" /></svg>',search:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21 21-4.34-4.34" /><circle cx="11" cy="11" r="8" /></svg>',selection_search:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 7V5a2 2 0 0 1 2-2h2" /><path d="M17 3h2a2 2 0 0 1 2 2v2" /><path d="M21 17v2a2 2 0 0 1-2 2h-2" /><path d="M7 21H5a2 2 0 0 1-2-2v-2" /><circle cx="12" cy="12" r="3" /><path d="m16 16-1.9-1.9" /></svg>',embed:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 12h.01" /><path d="M16 12h.01" /><path d="m17 7 5 5-5 5" /><path d="m7 7-5 5 5 5" /><path d="M8 12h.01" /></svg>',finder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M21 5H3" /><path d="M10 12H3" /><path d="M10 19H3" /><circle cx="17" cy="15" r="3" /><path d="m21 19-1.9-1.9" /></svg>',regex:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M197-199q-56-57-86.5-130T80-482q0-80 30-153t87-130l57 57q-46 45-70 103.5T160-482q0 64 24.5 122.5T254-256l-57 57Zm140.5-58.5Q320-275 320-300t17.5-42.5Q355-360 380-360t42.5 17.5Q440-325 440-300t-17.5 42.5Q405-240 380-240t-42.5-17.5ZM519-440v-71l-61 36-40-70 61-35-61-35 40-70 61 36v-71h80v71l61-36 40 70-61 35 61 35-40 70-61-36v71h-80Zm244 241-57-57q46-45 70-103.5T800-482q0-64-24.5-122.5T706-708l57-57q56 57 86.5 130T880-482q0 80-30 153t-87 130Z"/></svg>',match_case:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="m131-252 165-440h79l165 440h-76l-39-112H247l-40 112h-76Zm139-176h131l-64-182h-4l-63 182Zm395 186q-51 0-81-27.5T554-342q0-44 34.5-72.5T677-443q23 0 45 4t38 11v-12q0-29-20.5-47T685-505q-23 0-42 9.5T610-468l-47-35q24-29 54.5-43t68.5-14q69 0 103 32.5t34 97.5v178h-63v-37h-4q-14 23-38 35t-53 12Zm12-54q35 0 59.5-24t24.5-56q-14-8-33.5-12.5T689-393q-32 0-50 14t-18 37q0 20 16 33t40 13Z"/></svg>',whole_word:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M40-199v-200h80v120h720v-120h80v200H40Zm342-161v-34h-3q-13 20-35 31.5T294-351q-49 0-77-25.5T189-446q0-42 32.5-68.5T305-541q23 0 42.5 3.5T381-526v-14q0-27-18.5-43T312-599q-21 0-39.5 9T241-564l-43-32q19-27 48-41t67-14q62 0 95 29.5t33 85.5v176h-59Zm-66-134q-32 0-49 12.5T250-446q0 20 15 32.5t39 12.5q32 0 54.5-22.5T381-478q-14-8-32-12t-33-4Zm185 134v-401h62v113l-3 40h3q3-5 24-25.5t66-20.5q64 0 101 46t37 106q0 60-36.5 105.5T653-351q-41 0-62.5-18T563-397h-3v37h-59Zm143-238q-40 0-62 29.5T560-503q0 37 22 66t62 29q40 0 62.5-29t22.5-66q0-37-22.5-66T644-598Z"/></svg>',swap_vert:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21 16-4 4-4-4" /><path d="M17 20V4" /><path d="m3 8 4-4 4 4" /><path d="M7 4v16" /></svg>',arrow_down_small:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',arrow_up_small:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>',replaceText:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" ><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M3.221 3.739l2.261 2.269L7.7 3.784l-.7-.7-1.012 1.007-.008-1.6a.523.523 0 0 1 .5-.526H8V1H6.48A1.482 1.482 0 0 0 5 2.489V4.1L3.927 3.033l-.706.706zm6.67 1.794h.01c.183.311.451.467.806.467.393 0 .706-.168.94-.503.236-.335.353-.78.353-1.333 0-.511-.1-.913-.301-1.207-.201-.295-.488-.442-.86-.442-.405 0-.718.194-.938.581h-.01V1H9v4.919h.89v-.386zm-.015-1.061v-.34c0-.248.058-.448.175-.601a.54.54 0 0 1 .445-.23.49.49 0 0 1 .436.233c.104.154.155.368.155.643 0 .33-.056.587-.169.768a.524.524 0 0 1-.47.27.495.495 0 0 1-.411-.211.853.853 0 0 1-.16-.532zM9 12.769c-.256.154-.625.231-1.108.231-.563 0-1.02-.178-1.369-.533-.349-.355-.523-.813-.523-1.374 0-.648.186-1.158.56-1.53.374-.376.875-.563 1.5-.563.433 0 .746.06.94.179v.998a1.26 1.26 0 0 0-.792-.276c-.325 0-.583.1-.774.298-.19.196-.283.468-.283.816 0 .338.09.603.272.797.182.191.431.287.749.287.282 0 .558-.092.828-.276v.946zM4 7L3 8v6l1 1h7l1-1V8l-1-1H4zm0 1h7v6H4V8z"></path></g></svg>',relaceTextAll:'<svg class="se-ci" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g><path fill-rule="evenodd" clip-rule="evenodd" d="M11.6 2.677c.147-.31.356-.465.626-.465.248 0 .44.118.573.353.134.236.201.557.201.966 0 .443-.078.798-.235 1.067-.156.268-.365.402-.627.402-.237 0-.416-.125-.537-.374h-.008v.31H11V1h.593v1.677h.008zm-.016 1.1a.78.78 0 0 0 .107.426c.071.113.163.169.274.169.136 0 .24-.072.314-.216.075-.145.113-.35.113-.615 0-.22-.035-.39-.104-.514-.067-.124-.164-.187-.29-.187-.12 0-.219.062-.297.185a.886.886 0 0 0-.117.48v.272zM4.12 7.695L2 5.568l.662-.662 1.006 1v-1.51A1.39 1.39 0 0 1 5.055 3H7.4v.905H5.055a.49.49 0 0 0-.468.493l.007 1.5.949-.944.656.656-2.08 2.085zM9.356 4.93H10V3.22C10 2.408 9.685 2 9.056 2c-.135 0-.285.024-.45.073a1.444 1.444 0 0 0-.388.167v.665c.237-.203.487-.304.75-.304.261 0 .392.156.392.469l-.6.103c-.506.086-.76.406-.76.961 0 .263.061.473.183.631A.61.61 0 0 0 8.69 5c.29 0 .509-.16.657-.48h.009v.41zm.004-1.355v.193a.75.75 0 0 1-.12.436.368.368 0 0 1-.313.17.276.276 0 0 1-.22-.095.38.38 0 0 1-.08-.248c0-.222.11-.351.332-.389l.4-.067zM7 12.93h-.644v-.41h-.009c-.148.32-.367.48-.657.48a.61.61 0 0 1-.507-.235c-.122-.158-.183-.368-.183-.63 0-.556.254-.876.76-.962l.6-.103c0-.313-.13-.47-.392-.47-.263 0-.513.102-.75.305v-.665c.095-.063.224-.119.388-.167.165-.049.315-.073.45-.073.63 0 .944.407.944 1.22v1.71zm-.64-1.162v-.193l-.4.068c-.222.037-.333.166-.333.388 0 .1.027.183.08.248a.276.276 0 0 0 .22.095.368.368 0 0 0 .312-.17c.08-.116.12-.26.12-.436zM9.262 13c.321 0 .568-.058.738-.173v-.71a.9.9 0 0 1-.552.207.619.619 0 0 1-.5-.215c-.12-.145-.181-.345-.181-.598 0-.26.063-.464.189-.612a.644.644 0 0 1 .516-.223c.194 0 .37.069.528.207v-.749c-.129-.09-.338-.134-.626-.134-.417 0-.751.14-1.001.422-.249.28-.373.662-.373 1.148 0 .42.116.764.349 1.03.232.267.537.4.913.4zM2 9l1-1h9l1 1v5l-1 1H3l-1-1V9zm1 0v5h9V9H3zm3-2l1-1h7l1 1v5l-1 1V7H6z"></path></g></svg>',menu_arrow_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 9 6 6 6-6" /></svg>',menu_arrow_up:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m18 15-6-6-6 6" /></svg>',menu_arrow_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m9 18 6-6-6-6" /></svg>',menu_arrow_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m15 18-6-6 6-6" /></svg>',side_menu_hamburger:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 5h16" /><path d="M4 12h16" /><path d="M4 19h16" /></svg>',side_menu_folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',side_menu_folder_item:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2" /></svg>',side_menu_item:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',side_menu_folder_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 10v6" /><path d="M9 13h6" /><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',alert_outline:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="10" /><line x1="12" x2="12" y1="8" y2="12" /><line x1="12" x2="12.01" y1="16" y2="16" /></svg>',more_media:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M7 3v18" /><path d="M3 7.5h4" /><path d="M3 12h18" /><path d="M3 16.5h4" /><path d="M17 3v18" /><path d="M17 7.5h4" /><path d="M17 16.5h4" /></svg>',more_gallery:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="7" height="7" x="3" y="3" rx="1" /><rect width="7" height="7" x="14" y="3" rx="1" /><rect width="7" height="7" x="14" y="14" rx="1" /><rect width="7" height="7" x="3" y="14" rx="1" /></svg>',more_folder:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" /></svg>',more_list:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M3 5h.01" /><path d="M3 12h.01" /><path d="M3 19h.01" /><path d="M8 5h13" /><path d="M8 12h13" /><path d="M8 19h13" /></svg>',more_file:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /></svg>',more_view:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /><circle cx="12" cy="12" r="3" /></svg>',more_page:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /><path d="M14 2v5a1 1 0 0 0 1 1h5" /><path d="M10 9H8" /><path d="M16 13H8" /><path d="M16 17H8" /></svg>',more_text:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 4v16" /><path d="M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" /><path d="M9 20h6" /></svg>',more_paragraph:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M13 4v16" /><path d="M17 4v16" /><path d="M19 4H9.5a4.5 4.5 0 0 0 0 9H13" /></svg>',more_plus:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 12h14" /><path d="M12 5v14" /></svg>',more_horizontal:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /><circle cx="5" cy="12" r="1" /></svg>',more_vertical:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><circle cx="12" cy="12" r="1" /><circle cx="12" cy="5" r="1" /><circle cx="12" cy="19" r="1" /></svg>',more_flag:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528" /></svg>',as_inline:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8,7L13,17H3L8,7M3,3H21V5H3V3M21,15V17H14V15H21M3,19H21V21H3V19Z" /></svg>',as_block:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,7L17,17H7L12,7M3,3H21V5H3V3M3,19H21V21H3V19Z" /></svg>',page_break:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m16 16-4 4-4-4" /><path d="M3 12h18" /><path d="m8 8 4-4 4 4" /></svg>',page_down:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M12 17V3" /><path d="m6 11 6 6 6-6" /><path d="M19 21H5" /></svg>',page_up:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M5 3h14" /><path d="m18 13-6-6-6 6" /><path d="M12 7v14" /></svg>',collapse_left:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M9 3v18" /><path d="m16 15-3-3 3-3" /></svg>',collapse_right:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><rect width="18" height="18" x="3" y="3" rx="2" /><path d="M15 3v18" /><path d="m8 9 3 3-3 3" /></svg>',map:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" /><path d="M15 5.764v15" /><path d="M9 3.236v15" /></svg>',magic_stick:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72" /><path d="m14 7 3 3" /><path d="M5 6v4" /><path d="M19 14v4" /><path d="M10 2v2" /><path d="M7 8H3" /><path d="M21 16h-4" /><path d="M11 3H9" /></svg>',open_in_new:'<svg class="se-io" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><path d="M15 3h6v6" /><path d="M10 14 21 3" /><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" /></svg>'};var Yb={exports:{}};(function(i){(function(e,t){i.exports=e.document?t(e,!0):function(o){if(!o.document)throw new Error("SUNEDITOR_LANG a window with a document");return t(o)}})(typeof window<"u"?window:ai,function(e,t){const o={code:"en",align:"Align",alignBottom:"Align bottom",alignCenter:"Align center",alignJustify:"Align justify",alignLeft:"Align left",alignMiddle:"Align middle",alignRight:"Align right",alignTop:"Align top",anchor:"Anchor",asBlock:"As a block",asInline:"As a inline",asLink:"As a link",audio:"Audio",audioGallery:"Audio gallery",audio_modal_file:"Select from files",audio_modal_title:"Insert Audio",audio_modal_url:"Audio URL",autoSize:"Auto size",backgroundColor:"Background color",basic:"Basic",blockStyle:"Block style",bold:"Bold",border:"Border",border_all:"Border all",border_inside:"Border inside",border_horizontal:"Border horizontal",border_vertical:"Border vertical",border_outside:"Border outside",border_left:"Border left",border_top:"Border top",border_right:"Border right",border_bottom:"Border bottom",border_none:"Border none",bulletedList:"Bulleted list",cancel:"Cancel",caption:"Insert description",cellProperties:"Cell properties",center:"Center",close:"Close",codeView:"Code view",color:"Color",colorPicker:"Color picker",column:"Column",comment:"Comments",commentAdd:"Add comment",commentShow:"Show comments",copy:"Copy",copyFormat:"Paint Formatting",cut:"Cut",default:"Default",deleteColumn:"Delete column",deleteRow:"Delete row",dir_ltr:"Left to right",dir_rtl:"Right to left",download:"Download",drag:"Drag",drawing:"Drawing",drawing_modal_title:"Drawing",edit:"Edit",embed:"Embed",embed_modal_title:"Embed",embed_modal_source:"Embed Source / URL",exportPDF:"Export to PDF",exportWord:"Export to Word",find:"Find",decrease:"Decrease",increase:"Increase",fileBrowser:"File browser",fileGallery:"File gallery",fileUpload:"File upload",fixedColumnWidth:"Fixed column width",font:"Font",fontColor:"Font color",fontSize:"Size",formats:"Formats",fullScreen:"Full screen",height:"Height",horizontalLine:"Horizontal line",horizontalSplit:"Horizontal split",hr_dashed:"Dashed",hr_dotted:"Dotted",hr_solid:"Solid",id:"ID",image:"Image",imageGallery:"Image gallery",image_modal_altText:"Alternative text",image_modal_file:"Select from files",image_modal_title:"Insert image",image_modal_url:"Image URL",importWord:"Import from Word",indent:"Indent",inlineStyle:"Inline style",insertColumnAfter:"Insert column after",insertColumnBefore:"Insert column before",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertLine:"Insert line",italic:"Italic",layout:"Layout",left:"Left",lineHeight:"Line height",link:"Link",link_modal_bookmark:"Bookmark",link_modal_downloadLinkCheck:"Download link",link_modal_newWindowCheck:"Open in new window",link_modal_text:"Text to display",link_modal_title:"Insert Link",link_modal_url:"URL to link",link_modal_relAttribute:"Rel attribute",list:"List",markdownView:"Markdown view",math:"Math",math_modal_fontSizeLabel:"Font Size",math_modal_inputLabel:"Mathematical Notation",math_modal_previewLabel:"Preview",math_modal_title:"Math",maxSize:"Max size",mediaGallery:"Media gallery",menu_bordered:"Bordered",menu_code:"Code",menu_neon:"Neon",menu_shadow:"Shadow",menu_spaced:"Spaced",menu_translucent:"Translucent",mergeCells:"Merge cells",minSize:"Min size",mirrorHorizontal:"Mirror, Horizontal",mirrorVertical:"Mirror, Vertical",newDocument:"New document",numberedList:"Numbered list",outdent:"Outdent",pageBreak:"Page break",pageDown:"Page down",pageNumber:"Page number",pageUp:"Page up",paragraphStyle:"Paragraph style",preview:"Preview",print:"print",proportion:"Constrain proportions",ratio:"Ratio",redo:"Redo",remove:"Remove",removeFormat:"Remove Format",replace:"Replace",replaceAll:"Replace all",resize100:"Zoom 100%",resize25:"Zoom 25%",resize50:"Zoom 50%",resize75:"Zoom 75%",resize:"Resize",revert:"Revert",revisionHistory:"Revision History",right:"Right",rotateLeft:"Rotate left",rotateRight:"Rotate right",row:"Row",save:"Save",search:"Search",selectAll:"Select All",showBlocks:"Show blocks",size:"Size",splitCells:"Split cells",strike:"Strike",submitButton:"Submit",subscript:"Subscript",superscript:"Superscript",table:"Table",tableHeader:"Table header",tableProperties:"Table properties",tags:"Tags",tag_blockquote:"Quote",codeBlock:"Code Block",tag_div:"Normal (DIV)",tag_h:"Header",tag_p:"Paragraph",tag_pre:"Code",template:"Template",textStyle:"Text style",title:"Title",underline:"Underline",undo:"Undo",unmergeCells:"Unmerge cells",unlink:"Unlink",verticalSplit:"Vertical split",video:"Video",videoGallery:"Video gallery",video_modal_file:"Select from files",video_modal_title:"Insert Video",video_modal_url:"Media embed URL, YouTube/Vimeo",width:"Width",codeLanguage:"Language",codeLanguage_none:"None",finder_matchCase:"Match Case",finder_wholeWord:"Whole Word",finder_regex:"Regular Expression",finder_prev:"Previous Match",finder_next:"Next Match",message_copy_success:"Copied to clipboard",message_copy_fail:"Copy failed. Please copy manually."};return typeof t>"u"&&(e.SUNEDITOR_LANG||Object.defineProperty(e,"SUNEDITOR_LANG",{enumerable:!0,writable:!1,configurable:!1,value:{}}),Object.defineProperty(e.SUNEDITOR_LANG,"en",{enumerable:!0,writable:!0,configurable:!0,value:o})),o})})(Yb);var AA=Yb.exports;const BA=r6(AA);function NA(i,e,t,o,s){const r=new Map([["menuTray",t],["toolbar_main",i],["toolbar_buttonTray",i.querySelector(".se-btn-tray")],["toolbar_arrow",i.querySelector(".se-arrow")]]);return o&&(r.set("toolbar_sub_main",o),r.set("toolbar_sub_buttonTray",o.querySelector(".se-btn-tray")),r.set("toolbar_sub_arrow",o.querySelector(".se-arrow")),r.set("toolbar_sub_wrapper",o.parentElement.parentElement)),e&&(r.set("toolbar_wrapper",e.querySelector(".sun-editor")),r.set("_stickyDummy",e.querySelector(".se-toolbar-sticky-dummy"))),s&&r.set("statusbar_wrapper",s.querySelector(".sun-editor")),r}function LA(i,e,t,o,s,r,l,c,d,h,p){const f=new Map([["key",p],["options",i.options],["originElement",i.target],["topArea",e],["container",e.querySelector(".se-container")],["wrapper",e.querySelector(".se-wrapper")],["wysiwygFrame",t],["wysiwyg",t],["codeWrapper",o],["code",s],["codeNumbers",o==null?void 0:o.querySelector(".se-code-view-line")],["markdownWrapper",r],["markdown",l],["markdownNumbers",r==null?void 0:r.querySelector(".se-markdown-view-line")],["lineBreaker_t",e.querySelector(".se-line-breaker-component-t")],["lineBreaker_b",e.querySelector(".se-line-breaker-component-b")],["blockHandleArea",h],["blockHandle",(h==null?void 0:h.querySelector(".se-block-handle"))||null],["blockHandlePlus",(h==null?void 0:h.querySelector(".se-block-handle-plus"))||null],["blockHandleDrag",(h==null?void 0:h.querySelector(".se-block-handle-drag"))||null],["_stickyDummy",e.querySelector(".se-toolbar-sticky-dummy")],["_toolbarShadow",e.querySelector(".se-toolbar-shadow")],["_minHeight",Uu(t.style.minHeight||"65",0)],["isCodeView",!1],["isMarkdownView",!1],["isFullScreen",!1],["isReadOnly",!1],["isDisabled",!1],["isChanged",!1],["historyIndex",-1],["savedIndex",-1],["documentTypeInner",d.inner],["documentTypePage",d.page],["documentTypePageMirror",d.pageMirror]]);c&&xg(c,f);const m=e.querySelector(".se-placeholder");m&&f.set("placeholder",m);const g=i.options.get("placeholder_line");return g&&f.set("placeholder_line",g),f}function xg(i,e){i?e.set("statusbar",i):e.delete("statusbar");const t=i?i.querySelector(".se-navigation"):null,o=i?i.querySelector(".se-char-counter-wrapper"):null,s=i?i.querySelector(".se-char-counter-wrapper .se-char-counter"):null;t?e.set("navigation",t):e.delete("navigation"),o?e.set("charWrapper",o):e.delete("charWrapper"),s?e.set("charCounter",s):e.delete("charCounter");const r=i?i.querySelector(".se-word-counter-wrapper"):null,l=i?i.querySelector(".se-word-counter-wrapper .se-word-counter"):null;r?e.set("wordWrapper",r):e.delete("wordWrapper"),l?e.set("wordCounter",l):e.delete("wordCounter")}const vt={BUTTON_LIST:[["undo","redo"],"|",["bold","underline","italic","strike","|","subscript","superscript"],"|",["removeFormat"],"|",["outdent","indent"],"|",["fullScreen","showBlocks","codeView"],"|",["preview","print"]],REQUIRED_FORMAT_LINE:"div",REQUIRED_ELEMENT_WHITELIST:"br|div",ELEMENT_WHITELIST:"p|pre|blockquote|h1|h2|h3|h4|h5|h6|ol|ul|li|hr|figure|figcaption|img|iframe|audio|video|source|table|colgroup|col|thead|tbody|tr|th|td|caption|a|b|strong|var|i|em|u|ins|s|span|strike|del|sub|sup|code|svg|path|details|summary",TEXT_STYLE_TAGS:"strong|span|font|b|var|i|em|u|ins|s|strike|del|sub|sup|mark|a|label|code|summary",SCOPE_SELECTION_TAGS:["td","table","li","ol","ul","pre","figcaption","blockquote","dl","dt","dd"],ATTRIBUTE_WHITELIST:"contenteditable|target|href|title|download|rel|src|alt|class|type|colspan|rowspan|width|height|controls|autoplay|loop|muted|poster|preload|playsinline|volume|crossorigin|disableRemotePlayback|controlsList|allowfullscreen|sandbox|loading|allow|referrerpolicy|frameborder|scrolling",FORMAT_LINE:"P|H[1-6]|LI|TH|TD|DETAILS",FORMAT_BR_LINE:"PRE",FORMAT_CLOSURE_BR_LINE:"",FORMAT_BLOCK:"BLOCKQUOTE|OL|UL|FIGCAPTION|TABLE|THEAD|TBODY|TR|CAPTION|DETAILS",FORMAT_CLOSURE_BLOCK:"TH|TD",ALLOWED_EMPTY_NODE_LIST:".se-component, pre, blockquote, hr, li, table, img, iframe, video, audio, canvas, details",SIZE_UNITS:["px","pt","em","rem"],CLASS_NAME:"^__se__|^se-|^katex|^MathJax|^language-",CLASS_MJX:"mjx-container|mjx-math|mjx-mrow|mjx-mi|mjx-mo|mjx-mn|mjx-msup|mjx-mfrac|mjx-munderover",EXTRA_TAG_MAP:{script:!1,style:!1,meta:!1,link:!1,"[a-z]+:[a-z]+":!1},CONTENT_STYLES:"background|background-clip|background-color|border|border-bottom|border-collapse|border-color|border-image|border-left-width|border-radius|border-right-width|border-spacing|border-style|border-top|border-width|box-shadow|box-sizing|caption-side|color|content|direction|display|position|float|font|font-family|font-size|font-style|font-weight|height|min-height|max-height|width|min-width|max-width|left|letter-spacing|line-height|list-style-position|list-style-type|margin|margin-block-end|margin-block-start|margin-bottom|margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|padding|padding-bottom|padding-inline-start|padding-left|padding-right|padding-top|outline|overflow|page-break-before|page-break-after|page-break-inside|rotate|rotateX|rotateY|table-layout|text-align|text-decoration|text-shadow|text-transform|top|text-indent|text-rendering|vertical-align|visibility|white-space|word-break|word-wrap",TAG_STYLES:{"@text":"font-family|font-size|color|background-color|width|height","@line":"text-align|margin|margin-left|margin-right|line-height","@component":"width|height|min-width","table|th|td":"border|border-[a-z]+|color|background-color|text-align|float|font-weight|text-decoration|font-style|vertical-align","table|td":"width",tr:"height",col:"width",caption:"text-align|caption-side","ol|ul":"list-style-type",figure:"display|width|height|padding|padding-bottom",figcaption:"margin|margin-top|margin-bottom|text-align","img|video|iframe":"transform|transform-origin|width|min-width|max-width|height|min-height|max-height|float|margin|margin-top",hr:""},RETAIN_STYLE_MODE:["repeat","always","none"]},Eg={value:"fixed",placeholder:!0,placeholder_line:!0,editableFrameAttributes:!0,width:!0,minWidth:!0,maxWidth:!0,innerWidth:"fixed",height:!0,minHeight:!0,maxHeight:!0,editorStyle:!0,iframe:"fixed",iframe_fullPage:"fixed",iframe_attributes:!0,iframe_cssFileName:!0,statusbar:!0,statusbar_showPathLabel:!0,statusbar_resizeEnable:"fixed",charCounter:!0,charCounter_max:!0,charCounter_label:!0,charCounter_type:!0,wordCounter:!0,wordCounter_label:!0},IA={plugins:"fixed",excludedPlugins:"fixed",buttonList:"fixed",v2Migration:"fixed",strictMode:"fixed",mode:"fixed",blockHandle:"fixed",type:"fixed",theme:!0,lang:"fixed",fontSizeUnits:"fixed",allowedClassName:"fixed",closeModalOutsideClick:"fixed",copyFormatKeepOn:!0,syncTabIndent:!0,tabDisable:!0,autoLinkify:!0,autoStyleify:!0,retainStyleMode:!0,allowedExtraTags:"fixed",events:!0,__textStyleTags:"fixed",textStyleTags:"fixed",convertTextTags:"fixed",__tagStyles:"fixed",tagStyles:"fixed",textDirection:!0,reverseButtons:"fixed",historyStackDelayTime:!0,historyStackSize:"fixed",lineAttrReset:!0,printClass:!0,defaultLine:"fixed",defaultLineBreakFormat:!0,lineBreakClearStyle:!0,scopeSelectionTags:!0,__defaultElementWhitelist:"fixed",elementWhitelist:"fixed",elementBlacklist:"fixed",__defaultAttributeWhitelist:"fixed",attributeWhitelist:"fixed",attributeBlacklist:"fixed",__defaultFormatLine:"fixed",formatLine:"fixed",__defaultFormatBrLine:"fixed",formatBrLine:"fixed",__defaultFormatClosureBrLine:"fixed",formatClosureBrLine:"fixed",__defaultFormatBlock:"fixed",formatBlock:"fixed",__defaultFormatClosureBlock:"fixed",formatClosureBlock:"fixed",allowedEmptyTags:!0,toolbar_width:!0,toolbar_innerWidth:"fixed",toolbar_container:"fixed",toolbar_sticky:!0,toolbar_hide:!0,subToolbar:"fixed",statusbar_container:"fixed",shortcutsHint:!0,shortcutsDisable:"fixed",shortcuts:"fixed",fullScreenOffset:!0,previewTemplate:!0,printTemplate:!0,componentInsertBehavior:!0,defaultUrlProtocol:!0,allUsedStyles:"fixed",toastMessageTime:!0,icons:"fixed",freeCodeViewMode:!0,finder_panel:"fixed",finder_liveSearch:!0,__lineFormatFilter:!0,__pluginRetainFilter:!0,__listCommonStyle:"fixed",externalLibs:"fixed"},Tg=ge._d;let $A=0;function OA(i,e){typeof e!="object"&&(e={});const t={};if(e.plugins){const I=e.excludedPlugins||[],R=e.plugins,F=(Array.isArray(R)?R:Object.keys(R)).filter(q=>!I.includes(q)).map(q=>R[q]);for(let q=0,H=F.length,V;q<H;q++)V=F[q].default||F[q],t[V.key]=V}const o=Qb(e,i,t),s=o.o,r=o.i,l=o.l,c=u.utils.createElement("DIV",{class:"se-loading-box sun-editor-common"},'<div class="se-loading-effect"></div>'),d="suneditor-"+ ++$A,h=u.utils.createElement("DIV",{class:"sun-editor sun-editor-carrier-wrapper sun-editor-common"+s.get("_themeClass")+(s.get("_rtl")?" se-rtl":"")}),p=u.utils.createElement("DIV",{class:"se-menu-tray",popover:"manual"});h.appendChild(p);const f=u.utils.createElement("INPUT",{type:"text",id:d+"-focus-temp",class:"__se__focus__temp__",autocomplete:"off","aria-hidden":"true",style:"position: fixed !important; top: -10000px !important; left: -10000px !important; display: block !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;"});f.tabIndex=-1,h.appendChild(f);const m=u.utils.createElement("DIV",{class:"se-modal se-modal-area sun-editor-common",popover:"manual"}),g=u.utils.createElement("DIV",{class:"se-modal-back"}),v=u.utils.createElement("DIV",{class:"se-modal-inner"});m.appendChild(g),m.appendChild(v),h.appendChild(m);const b=u.utils.createElement("DIV",{class:"se-alert se-modal-area sun-editor-common",style:"display: none;",popover:"manual"}),y=u.utils.createElement("DIV",{class:"se-modal-back"}),C=u.utils.createElement("DIV",{class:"se-modal-inner"});b.appendChild(y),b.appendChild(C),h.appendChild(b),h.appendChild(u.utils.createElement("DIV",{class:"se-back-wrapper",popover:"manual"}));const k=c.cloneNode(!0);k.setAttribute("popover","manual"),h.appendChild(k);const _=u.utils.createElement("DIV",{class:"se-drag-cursor",popover:"manual"});h.appendChild(_),Tg.body.appendChild(h);let S=null,T=null;const M=Mg(o.buttons,t,s,r,l,!1),N=M.element;N.style.visibility="hidden",/inline/i.test(s.get("mode"))?(N.className+=" se-toolbar-inline",N.style.width=s.get("toolbar_width")):/balloon/i.test(s.get("mode"))&&(N.className+=" se-toolbar-balloon",N.style.width=s.get("toolbar_width"),N.appendChild(u.utils.createElement("DIV",{class:"se-arrow"}))),s.get("_toolbar_bottom")&&(N.className+=" se-toolbar-bottom"),o.subButtons&&(T=Mg(o.subButtons,t,s,r,l,!1),S=T.element,S.style.visibility="hidden",S.className+=" se-toolbar-balloon se-toolbar-sub",S.style.width=s.get("toolbar_sub_width"),S.appendChild(u.utils.createElement("DIV",{class:"se-arrow"})));const A=i[0].key||null,B=[],$=new Map,L=o.statusbarContainer;let O=null;for(let I=0,R=i.length;I<R;I++){const F=i[I],q=o.frameMap.get(F.key),H=u.utils.createElement("DIV",{class:"sun-editor"+s.get("_themeClass")+(s.get("_rtl")?" se-rtl":"")}),V=u.utils.createElement("DIV",{class:"se-container"}),Z=!!s.get("blockHandle"),j=u.utils.createElement("DIV",{class:"se-wrapper"+(Z?" se-mode-block":"")+(s.get("type")==="document"?" se-type-document":"")+(s.get("_type_options").includes("header")?" se-type-document-header":"")}),Y=q.get("innerWidth");Y&&Y!=="auto"&&j.style.setProperty("--se-editor-inner-width",Y),V.appendChild(u.utils.createElement("DIV",{class:"se-toolbar-shadow"}));const ne=RA(F.key,s,H,q,d),J=ne.bottomBar.statusbar,W=ne.wysiwygFrame,ie=ne.placeholder;let z=ne.codeView;const X=u.utils.createElement("DIV",{class:"se-line-breaker-component se-line-breaker-component-t",title:l.insertLine},r.line_break),me=u.utils.createElement("DIV",{class:"se-line-breaker-component se-line-breaker-component-b",title:l.insertLine},r.line_break);j.appendChild(X),j.appendChild(me),ie&&j.appendChild(ie),V.appendChild(u.utils.createElement("DIV",{class:"se-toolbar-sticky-dummy"})),V.appendChild(j),J&&(L?O||(L.appendChild(u.utils.createElement("DIV",{class:"sun-editor"+s.get("_themeClass")},J)),O=J):V.appendChild(J)),V.appendChild(c.cloneNode(!0));const fe=F.key||null;let He=null;if(s.get("buttons").has("codeView")){He=u.utils.createElement("DIV",{class:"se-code-wrapper"},z),He.style.setProperty("display","none","important"),j.appendChild(He);const Ne=zA(s,q,z);if(z===Ne){const st=u.utils.createElement("TEXTAREA",{id:d+"-code-view-line-"+(fe||"default"),class:"se-code-view-line",readonly:"true",autocomplete:"off","aria-hidden":"true",tabindex:"-1"},null);He.insertBefore(st,z)}else z=Ne}let ue=null,Be=null;if(s.get("buttons").has("markdownView")){Be=ne.markdownView;const Ne=u.utils.createElement("TEXTAREA",{id:d+"-markdown-view-line-"+(fe||"default"),class:"se-markdown-view-line",readonly:"true",autocomplete:"off","aria-hidden":"true",tabindex:"-1"},null);ue=u.utils.createElement("DIV",{class:"se-markdown-wrapper"}),ue.appendChild(Ne),ue.appendChild(Be),ue.style.setProperty("display","none","important"),j.appendChild(ue)}const ke={inner:null,page:null,pageMirror:null};s.get("_type_options").includes("header")&&(ke.inner=u.utils.createElement("DIV",{class:"se-document-lines",style:`height: ${q.get("height")};`},'<div class="se-document-lines-inner"></div>')),s.get("_type_options").includes("page")&&(ke.page=u.utils.createElement("DIV",{class:"se-document-page"},null),ke.pageMirror=u.utils.createElement("DIV",{class:"sun-editor-editable se-document-page-mirror-a4",style:"position: absolute; width: 21cm; columns: 21cm; border: 0; overflow: hidden; height: auto; top: -10000px; left: -10000px;"},null));let ct=null;if(Z){ct=u.utils.createElement("DIV",{class:"se-block-handle-area"});const Ne=u.utils.createElement("DIV",{class:"se-block-handle",popover:"manual"}),st=u.utils.createElement("DIV",{class:"se-block-handle-btn se-block-handle-plus"},r.plus),Je=u.utils.createElement("DIV",{class:"se-block-handle-btn se-block-handle-drag"},r.dragHandle);Ne.appendChild(st),Ne.appendChild(Je),ct.appendChild(Ne)}H.appendChild(V),B.push(fe),$.set(fe,LA({target:F.target,key:F.key,options:q},H,W,He,z,ue,Be,O||J,ke,ct,fe))}const D=s.get("toolbar_container");if(D){const I=u.utils.createElement("DIV",{class:"sun-editor"+s.get("_themeClass")+(s.get("_rtl")?" se-rtl":"")}),R=u.utils.createElement("DIV",{class:"se-container"});R.appendChild(N),S&&R.appendChild(S),I.appendChild(R),D.appendChild(I),D.appendChild(u.utils.createElement("DIV",{class:"se-toolbar-sticky-dummy"}))}else{const I=$.get(A).get("container");if(s.get("_toolbar_bottom")){const R=I.querySelector(".se-statusbar");I.insertBefore(N,R),S&&I.insertBefore(S,N)}else I.insertBefore(N,I.firstElementChild),S&&I.insertBefore(S,I.firstElementChild)}return{context:NA(N,D,p,S,L),carrierWrapper:h,options:s,plugins:t,icons:r,lang:l,value:o.v,rootId:A,rootKeys:B,frameRoots:$,pluginCallButtons:M.pluginCallButtons,responsiveButtons:M.responsiveButtons,pluginCallButtons_sub:T?T.pluginCallButtons:[],responsiveButtons_sub:T?T.responsiveButtons:[]}}function Kb(i,e,t,o,s,r){var c,d;if(!t||t.length<2)return;const l=e==null?void 0:e.querySelector(".se-tooltip-text");for(let h=0,p,f,m,g,v,b,y,C,k,_,S,T,M,N;h<t.length;h+=2+N){if(N=0,p=t[h].split("+"),k=null,_=(d=(c=p.at(-1)).trim)==null?void 0:d.call(c),_.startsWith("~"))k=i,_=p.pop().trim().substring(1);else if(_.startsWith("$~")){const A=p.pop().trim().substring(2).split(".");k=A[0],_=A[1]}else _.startsWith("$")?(N=1,_=t[h+2]):_="";m=g=v=b=y=C=f=null;for(const A of p)switch(A.trim()){case"c":m=!0;break;case"!":v=!0;break;case"s":g=!0;break;case"_":b=!0;break;case"=":C=!0;break;case"/":y=!0;break;default:f=A}f=f.split("|");for(let A=0,B=f.length;A<B;A++)T=m?f[A]+(g?"1000":""):f[A],o.has(T)||(M=s.indexOf(i),M=M===-1?"":Q.isOdd(M)?s[M+1]:s[M-1],M&&r.add(T),o.set(T,{c:m,s:g,edge:v,space:b,enter:y,textTrigger:C,plugin:k,command:i,method:_,r:M,type:e==null?void 0:e.getAttribute("data-type"),button:e,key:T}));(S=t[h+1])&&l&&DA(l,g,S)}}function DA(i,e,t){const o=u.utils.createElement("SPAN",{class:"se-shortcut"},ge.cmdIcon+(e?ge.shiftIcon:"")+'+<span class="se-shortcut-key">'+t+"</span>"),s=i.querySelector(".se-shortcut");s?i.replaceChild(o,s):i.appendChild(o)}function Xb(i,e){return[i,e].reduce((t,o)=>{for(const s in o)t[s]=(o[s]||"").toLowerCase();return t},{})}function Qb(i,e,t){var L,O,D;const o=i.buttonList||vt.BUTTON_LIST,s=new Map;if(e.length>1&&!i.toolbar_container&&!/inline|balloon/i.test(i.mode))throw Error('[SUNEDITOR.create.fail] In multi root, The "mode" option cannot be "classic" without using the "toolbar_container" option.');s.set("v2Migration",!!i.v2Migration),s.set("buttons",new Set(o.toString().split(","))),s.set("strictMode",{tagFilter:!0,formatFilter:!0,classFilter:!0,textStyleTagFilter:!0,attrFilter:!0,styleFilter:!0,...typeof i.strictMode=="boolean"?{}:i.strictMode}),s.set("freeCodeViewMode",!!i.freeCodeViewMode),s.set("finder_panel",i.finder_panel!==!1),s.set("finder_liveSearch",i.finder_liveSearch!==!1),s.set("__lineFormatFilter",i.__lineFormatFilter??!0),s.set("__pluginRetainFilter",i.__pluginRetainFilter??!0);const[r,l]=(i.mode||"classic").split(":");s.set("mode",r),s.set("_toolbar_bottom",l==="bottom"&&/^(classic|inline)$/i.test(r)),s.set("blockHandle",i.blockHandle?typeof i.blockHandle=="object"?i.blockHandle:{}:null),s.set("type",((L=i.type)==null?void 0:L.split(":")[0])||""),s.set("theme",i.theme||""),s.set("_themeClass",i.theme?` se-theme-${i.theme}`:""),s.set("_type_options",((O=i.type)==null?void 0:O.split(":")[1])||""),s.set("externalLibs",i.externalLibs||{}),s.set("fontSizeUnits",Array.isArray(i.fontSizeUnits)&&i.fontSizeUnits.length>0?i.fontSizeUnits.map(I=>I.toLowerCase()):vt.SIZE_UNITS),s.set("allowedClassName",new RegExp(`${i.allowedClassName&&typeof i.allowedClassName=="string"?i.allowedClassName+"|":""}${vt.CLASS_NAME}`)),s.set("closeModalOutsideClick",!!i.closeModalOutsideClick),s.set("copyFormatKeepOn",!!i.copyFormatKeepOn),s.set("syncTabIndent",i.syncTabIndent??!0),s.set("autoLinkify",i.autoLinkify??!!t.link),s.set("autoStyleify",Array.isArray(i.autoStyleify)?i.autoStyleify:["bold","underline","italic","strike"]);let c=i.retainStyleMode||"repeat";typeof c=="string"&&!vt.RETAIN_STYLE_MODE.includes(c)&&(console.error(`Invalid retainStyleMode: ${c}. Valid options are ${vt.RETAIN_STYLE_MODE.join(", ")}. Using default 'repeat'.`),c="repeat"),s.set("retainStyleMode",c);const d={...vt.EXTRA_TAG_MAP,...i.allowedExtraTags,"-":!0},h=Object.keys(d),p=h.filter(I=>d[I]).join("|"),f=h.filter(I=>!d[I]).join("|");s.set("_allowedExtraTag",p),s.set("_disallowedExtraTag",f),s.set("events",i.events||{}),s.set("textStyleTags",(typeof i.__textStyleTags=="string"?i.__textStyleTags:vt.TEXT_STYLE_TAGS)+(i.textStyleTags?"|"+i.textStyleTags:""));const m=Xb({bold:"strong",underline:"u",italic:"em",strike:"del",subscript:"sub",superscript:"sup"},i.convertTextTags||{});s.set("convertTextTags",m),s.set("_textStyleTags",Object.values(m).concat(["span","li"])),s.set("tagStyles",[{...vt.TAG_STYLES,...i.__tagStyles||{}},i.tagStyles||{}].reduce((I,R)=>{for(const F in R)I[F]=R[F];return I},{})),s.set("_defaultStyleTagMap",{strong:m.bold,b:m.bold,u:m.underline,ins:m.underline,em:m.italic,i:m.italic,del:m.strike,strike:m.strike,s:m.strike,sub:m.subscript,sup:m.superscript}),s.set("_styleCommandMap",Xb(Te.swapKeyValue(m),{strong:"bold",b:"bold",u:"underline",ins:"underline",em:"italic",i:"italic",del:"strike",strike:"strike",s:"strike",sub:"subscript",sup:"superscript"})),s.set("_defaultTagCommand",{bold:m.bold,underline:m.underline,italic:m.italic,strike:m.strike,subscript:m.sub,superscript:m.sup}),s.set("textDirection",i.textDirection??"ltr"),s.set("_rtl",s.get("textDirection")==="rtl"),s.set("reverseCommands",["indent-outdent"].concat(i.reverseButtons||[])),s.set("_reverseCommandArray",("-"+s.get("reverseCommands").join("-")).split("-")),Q.isEven(s.get("_reverseCommandArray").length)&&console.warn('[SUNEDITOR.create.warning] The "reverseCommands" option is invalid, Shortcuts key may not work properly.'),s.set("historyStackDelayTime",typeof i.historyStackDelayTime=="number"?i.historyStackDelayTime:400),s.set("historyStackSize",typeof i.historyStackSize=="number"&&i.historyStackSize>0?i.historyStackSize:100),s.set("_editableClass","sun-editor-editable"+s.get("_themeClass")+(s.get("_rtl")?" se-rtl":"")+(s.get("type")==="document"?" se-type-document-editable-a4":"")),s.set("lineAttrReset",["id"].concat(i.lineAttrReset&&typeof i.lineAttrReset=="string"?i.lineAttrReset.toLowerCase().split("|"):[])),s.set("printClass",typeof i.printClass=="string"?i.printClass+" "+s.get("_editableClass"):null),s.set("defaultLine",typeof i.defaultLine=="string"&&i.defaultLine.length>0?i.defaultLine:"p"),s.set("defaultLineBreakFormat",i.defaultLineBreakFormat||"line"),s.set("lineBreakClearStyle",!!i.lineBreakClearStyle),s.set("scopeSelectionTags",i.scopeSelectionTags||vt.SCOPE_SELECTION_TAGS);const g=(typeof i.elementWhitelist=="string"?i.elementWhitelist:"").toLowerCase(),v=s.get("externalLibs").mathjax?vt.CLASS_MJX+"|":"";s.set("elementWhitelist",g+(g?"|":"")+v+s.get("_allowedExtraTag"));const b=PA((typeof i.elementBlacklist=="string"?i.elementBlacklist:"").toLowerCase(),s.get("defaultLine"));if(s.set("elementBlacklist",b+(b?"|":"")+s.get("_disallowedExtraTag")),s.set("attributeWhitelist",!i.attributeWhitelist||typeof i.attributeWhitelist!="object"?null:i.attributeWhitelist),s.set("attributeBlacklist",!i.attributeBlacklist||typeof i.attributeBlacklist!="object"?null:i.attributeBlacklist),s.set("formatClosureBrLine",gc(i.formatClosureBrLine,(i.__defaultFormatClosureBrLine=typeof i.__defaultFormatClosureBrLine=="string"?i.__defaultFormatClosureBrLine:vt.FORMAT_CLOSURE_BR_LINE).toLowerCase(),s.get("elementBlacklist"))),s.set("formatBrLine",gc((i.formatBrLine||"")+"|"+s.get("formatClosureBrLine").str,(i.__defaultFormatBrLine=typeof i.__defaultFormatBrLine=="string"?i.__defaultFormatBrLine:vt.FORMAT_BR_LINE).toLowerCase(),s.get("elementBlacklist"))),s.set("formatLine",gc(vt.REQUIRED_FORMAT_LINE+"|"+(i.formatLine||"")+"|"+s.get("formatBrLine").str,(i.__defaultFormatLine=typeof i.__defaultFormatLine=="string"?i.__defaultFormatLine:vt.FORMAT_LINE).toLowerCase(),s.get("elementBlacklist"))),!s.get("formatLine").reg.test(s.get("defaultLine")))throw Error(`[SUNEDITOR.create.fail] The "defaultLine(${s.get("defaultLine")})" option must be included in the "formatLine(${s.get("formatLine").str})" option.`);s.set("formatClosureBlock",gc(i.formatClosureBlock,(i.__defaultFormatClosureBlock=typeof i.__defaultFormatClosureBlock=="string"?i.__defaultFormatClosureBlock:vt.FORMAT_CLOSURE_BLOCK).toLowerCase(),s.get("elementBlacklist"))),s.set("formatBlock",gc((i.formatBlock||"")+"|"+s.get("formatClosureBlock").str,(i.__defaultFormatBlock=typeof i.__defaultFormatBlock=="string"?i.__defaultFormatBlock:vt.FORMAT_BLOCK).toLowerCase(),s.get("elementBlacklist"))),s.set("allowedEmptyTags",vt.ALLOWED_EMPTY_NODE_LIST+(i.allowedEmptyTags?", "+i.allowedEmptyTags:"")),s.set("__defaultElementWhitelist",vt.REQUIRED_ELEMENT_WHITELIST+"|"+(typeof i.__defaultElementWhitelist=="string"?i.__defaultElementWhitelist:vt.ELEMENT_WHITELIST).toLowerCase()),s.set("__defaultAttributeWhitelist",(typeof i.__defaultAttributeWhitelist=="string"?i.__defaultAttributeWhitelist:vt.ATTRIBUTE_WHITELIST).toLowerCase()),s.set("_editorElementWhitelist",s.get("elementWhitelist")==="*"?"*":HA(s)),s.set("toolbar_width",i.toolbar_width?Q.is(i.toolbar_width)?i.toolbar_width+"px":i.toolbar_width:"auto"),s.set("toolbar_innerWidth",i.toolbar_innerWidth?Q.is(i.toolbar_innerWidth)?i.toolbar_innerWidth+"px":i.toolbar_innerWidth:""),s.set("toolbar_container",i.toolbar_container&&!/inline/i.test(s.get("mode"))?typeof i.toolbar_container=="string"?Tg.querySelector(i.toolbar_container):i.toolbar_container:null);const y=i.toolbar_sticky;/balloon/i.test(s.get("mode"))?(s.set("_toolbar_sticky",-1),s.set("_toolbar_sticky_offset",0),s.set("_toolbar_sticky_fixed",!1)):y!==null&&typeof y=="object"?(s.set("_toolbar_sticky",Q.get(y.top,0)),s.set("_toolbar_sticky_offset",Q.get(y.offset,0)),s.set("_toolbar_sticky_fixed",y.position==="fixed")):(s.set("_toolbar_sticky",y===void 0?0:Q.is(y)?y:-1),s.set("_toolbar_sticky_offset",0),s.set("_toolbar_sticky_fixed",!1)),s.set("toolbar_hide",!!i.toolbar_hide);let k=null;const _=i.subToolbar;((D=_==null?void 0:_.buttonList)==null?void 0:D.length)>0&&(/balloon/.test(s.get("mode"))?console.warn('[SUNEDITOR.create.subToolbar.fail] When the "mode" option is "balloon-*", the "subToolbar" option is omitted.'):(s.set("_subMode",_.mode||"balloon"),s.set("toolbar_sub_width",_.width?Q.is(_.width)?_.width+"px":_.width:"auto"),k=s.get("_rtl")?_.buttonList.reverse():_.buttonList,s.set("buttons_sub",new Set(k.toString().split(",")))));const S=new Map;for(let I=0,R=e.length;I<R;I++)S.set(e[I].key,VA(e[I].options||{},i));s.set("tabDisable",!!i.tabDisable),s.set("shortcutsHint",i.shortcutsHint===void 0?!0:!!i.shortcutsHint);const T=i.shortcutsDisable!==void 0&&i.shortcutsDisable?{}:[{selectAll:["c+KeyA","A"],bold:["c+KeyB","B"],strike:["c+s+KeyS","S"],underline:["c+KeyU","U"],italic:["c+KeyI","I"],redo:["c+KeyY","Y","c+s+KeyZ","Z"],undo:["c+KeyZ","Z"],indent:["c+BracketRight","]"],outdent:["c+BracketLeft","["],save:["c+KeyS","S"],...s.get("finder_panel")?{finder:["c+KeyF","F"]}:{},link:["c+KeyK","K"],hr:["!+---+=+~shortcut",""],list_numbered:["!+1.+_+~shortcut",""],list_bulleted:["!+*.+_+~shortcut",""],_h1:["c+s+Digit1|Numpad1+$~blockStyle.applyHeaderByShortcut",""],_h2:["c+s+Digit2|Numpad2+$~blockStyle.applyHeaderByShortcut",""],_h3:["c+s+Digit3|Numpad3+$~blockStyle.applyHeaderByShortcut",""]},i.shortcuts||{}].reduce((I,R)=>{for(const F in R)I[F]=R[F];return I},{});s.set("shortcuts",T),s.set("fullScreenOffset",i.fullScreenOffset===void 0?0:Q.is(i.fullScreenOffset)?Q.get(i.fullScreenOffset,0):0),s.set("previewTemplate",typeof i.previewTemplate=="string"?i.previewTemplate:null),s.set("printTemplate",typeof i.printTemplate=="string"?i.printTemplate:null),s.set("componentInsertBehavior",["auto","select","line","none"].includes(i.componentInsertBehavior)?i.componentInsertBehavior:"auto"),s.set("defaultUrlProtocol",typeof i.defaultUrlProtocol=="string"?i.defaultUrlProtocol:null);const M=s.get("externalLibs").codeMirror;M&&(s.set("codeMirror",M),M.src?s.set("codeMirrorEditor",!0):(console.warn("[SUNEDITOR.options.externalLibs.codeMirror.fail] The codeMirror option is set incorrectly. See: https://github.com/ARA-developer/suneditor/blob/develop/guide/external-libraries.md"),s.set("codeMirror",null))),s.set("__listCommonStyle",i.__listCommonStyle||["fontSize","color","fontFamily","fontWeight","fontStyle"]);const N=!i.icons||typeof i.icons!="object"?Gb:[Gb,i.icons].reduce((I,R)=>{for(const F in R)I[F]=R[F];return I},{});s.set("icons",N);const A=new Set(vt.CONTENT_STYLES.split("|")),B=s.get("__listCommonStyle");for(const I of Object.values(s.get("tagStyles"))){const R=I.split("|");for(let F=0,q=R.length;F<q;F++)A.add(R[F])}for(let I=0,R=B.length;I<R;I++)A.add(B[I]);const $=(typeof i.allUsedStyles=="string"?i.allUsedStyles.split("|"):i.allUsedStyles)||[];for(let I=0,R=$.length;I<R;I++)A.add($[I]);return s.set("allUsedStyles",A),s.set("toastMessageTime",{copy:1500,...i.toastMessageTime}),{o:s,i:N,l:i.lang||BA,v:i.value=typeof i.value=="string"?i.value:null,buttons:s.get("_rtl")?o.reverse():o,subButtons:k,statusbarContainer:typeof i.statusbar_container=="string"?Tg.querySelector(i.statusbar_container):i.statusbar_container,frameMap:S}}function Jb(i,e){let t=null,o=null,s=null,r=null,l=null;if(i.get("statusbar")){if(e||(e=u.utils.createElement("DIV",{class:"se-status-bar sun-editor-common"})),t=e.querySelector(".se-navigation")||u.utils.createElement("DIV",{class:"se-navigation sun-editor-common"}),e.appendChild(t),i.get("wordCounter")){if(r=e.querySelector(".se-word-counter-wrapper")||u.utils.createElement("DIV",{class:"se-word-counter-wrapper"}),i.get("wordCounter_label")){const c=r.querySelector(".se-word-label")||u.utils.createElement("SPAN",{class:"se-word-label"});c.textContent=i.get("wordCounter_label"),r.appendChild(c)}l=r.querySelector(".se-word-counter")||u.utils.createElement("SPAN",{class:"se-word-counter"}),l.textContent="0",r.appendChild(l),e.appendChild(r)}if(i.get("charCounter")){if(o=e.querySelector(".se-char-counter-wrapper")||u.utils.createElement("DIV",{class:"se-char-counter-wrapper"}),i.get("wordCounter")&&o.className.indexOf("se-with-word-counter")===-1&&(o.className+=" se-with-word-counter"),i.get("charCounter_label")){const c=o.querySelector(".se-char-label")||u.utils.createElement("SPAN",{class:"se-char-label"});c.textContent=i.get("charCounter_label"),o.appendChild(c)}if(s=o.querySelector(".se-char-counter")||u.utils.createElement("SPAN",{class:"se-char-counter"}),s.textContent="0",o.appendChild(s),i.get("charCounter_max")>0){const c=o.querySelector(".se-char-max")||u.utils.createElement("SPAN",{class:"se-char-max"});c.textContent=" / "+i.get("charCounter_max"),o.appendChild(c)}e.appendChild(o)}}return{statusbar:e,navigation:t,charWrapper:o,charCounter:s,wordWrapper:r,wordCounter:l}}function VA(i,e){const t=new Map;t.set("_origin",i);const o=e.statusbar_container,s=i.value===void 0?e.value:i.value,r=i.placeholder===void 0?e.placeholder:i.placeholder,l=i.placeholder_line===void 0?e.placeholder_line:i.placeholder_line,c=i.editableFrameAttributes===void 0?e.editableFrameAttributes:i.editableFrameAttributes,d=i.width===void 0?e.width:i.width,h=i.minWidth===void 0?e.minWidth:i.minWidth,p=i.maxWidth===void 0?e.maxWidth:i.maxWidth,f=i.innerWidth===void 0?e.innerWidth:i.innerWidth,m=i.height===void 0?e.height:i.height,g=i.minHeight===void 0?e.minHeight:i.minHeight,v=i.maxHeight===void 0?e.maxHeight:i.maxHeight,b=i.editorStyle===void 0?e.editorStyle:i.editorStyle,y=i.iframe===void 0?e.iframe:i.iframe,C=i.iframe_fullPage===void 0?e.iframe_fullPage:i.iframe_fullPage,k=i.iframe_attributes===void 0?e.iframe_attributes:i.iframe_attributes,_=i.iframe_cssFileName===void 0?e.iframe_cssFileName:i.iframe_cssFileName,S=o||i.statusbar===void 0?e.statusbar:i.statusbar,T=o||i.statusbar_showPathLabel===void 0?e.statusbar_showPathLabel:i.statusbar_showPathLabel,M=o?!1:i.statusbar_resizeEnable===void 0?e.statusbar_resizeEnable:i.statusbar_resizeEnable,N=o||i.charCounter===void 0?e.charCounter:i.charCounter,A=o||i.charCounter_max===void 0?e.charCounter_max:i.charCounter_max,B=o||i.charCounter_label===void 0?e.charCounter_label:i.charCounter_label,$=o||i.charCounter_type===void 0?e.charCounter_type:i.charCounter_type,L=o||i.wordCounter===void 0?e.wordCounter:i.wordCounter,O=o||i.wordCounter_label===void 0?e.wordCounter_label:i.wordCounter_label;t.set("value",s),t.set("placeholder",r),t.set("placeholder_line",l),t.set("editableFrameAttributes",{spellcheck:"false",...c}),t.set("width",d?String(Q.is(d)?d+"px":d):"100%"),t.set("minWidth",h?String(Q.is(h)?h+"px":h):""),t.set("maxWidth",p?String(Q.is(p)?p+"px":p):""),t.set("innerWidth",f?String(Q.is(f)?f+"px":f):""),t.set("height",m?String(Q.is(m)?m+"px":m):"auto"),t.set("minHeight",g?String(Q.is(g)?g+"px":g):""),t.set("maxHeight",v?String(Q.is(v)?v+"px":v):""),t.set("editorStyle",b),t.set("_defaultStyles",Te._setDefaultOptionStyle(t,typeof b=="string"?b:"")),t.set("iframe",!!(C||y)),t.set("iframe_fullPage",!!C),t.set("iframe_attributes",k||{}),t.set("iframe_cssFileName",y?(typeof _=="string"?[_]:_)||["suneditor"]:null);const D=S===void 0?!0:!!S;return t.set("statusbar",D),t.set("statusbar_showPathLabel",D?typeof T=="boolean"?T:!0:!1),t.set("statusbar_resizeEnable",D?M===void 0?!0:!!M:!1),t.set("charCounter",A>0?!0:typeof N=="boolean"?N:!1),t.set("charCounter_max",Q.is(A)&&A>-1?A*1:null),t.set("charCounter_label",typeof B=="string"?B.trim():null),t.set("charCounter_type",typeof $=="string"?$:"char"),t.set("wordCounter",typeof L=="boolean"?L:!1),t.set("wordCounter_label",typeof O=="string"?O.trim():null),t}function RA(i,e,t,o,s){const r=o.get("_defaultStyles");t.style.cssText=r.top;const l=u.utils.createElement(o.get("iframe")?"IFRAME":"DIV",{class:"se-wrapper-inner se-wrapper-wysiwyg"+(e.get("type")==="document"?" se-type-document-iframe-a4":""),"data-root-key":i});if(!o.get("iframe"))l.setAttribute("contenteditable","true"),e.get("_rtl")&&(l.dir="rtl"),l.className+=" "+e.get("_editableClass"),l.style.cssText=r.frame+r.editor;else{const p=l,f=o.get("iframe_attributes");let m=f.sandbox;if(m){const g=["allow-same-origin","allow-scripts"],v=m.split(/\s+/),b=g.filter(y=>!v.includes(y));b.length>0&&(m=v.concat(b).join(" "))}else m="allow-same-origin allow-scripts";p.setAttribute("sandbox",m),p.setAttribute("frameBorder","0");for(const g in f)g!=="sandbox"&&p.setAttribute(g,f[g]);p.allowFullscreen=!0,p.setAttribute("scrolling",o.get("height")==="auto"?"no":"auto"),p.style.cssText=r.frame}const c=u.utils.createElement("TEXTAREA",{id:s+"-code-viewer-"+(i||"default"),class:"se-wrapper-inner se-code-viewer",style:r.frame,autocomplete:"off"}),d=u.utils.createElement("TEXTAREA",{id:s+"-markdown-viewer-"+(i||"default"),class:"se-wrapper-inner se-markdown-viewer",style:r.frame,autocomplete:"off"}),h=u.utils.createElement("SPAN",{class:"se-placeholder"});return o.get("placeholder")&&(h.textContent=o.get("placeholder")),{bottomBar:Jb(o,null),wysiwygFrame:l,codeView:c,markdownView:d,placeholder:h}}function zA(i,e,t){let o=null,s=!1;if(i.get("codeMirrorEditor")){const r=i.get("codeMirror"),l=[{mode:"htmlmixed",htmlMode:!0,lineNumbers:!0,lineWrapping:!1},r.options||{}].reduce((h,p)=>{for(const f in p)h[f]=p[f];return h},{});e.get("height")==="auto"&&(l.viewportMargin=1/0,l.height="auto");const c=t.style.cssText,d=r.src.fromTextArea(t,l);e.set("codeMirrorEditor",d),o=d.display.wrapper,o.style.cssText=c,s=!0}return i.set("hasCodeMirror",s),o?(u.utils.removeItem(t),o.className+=" se-code-viewer-mirror",o):t}function PA(i,e){return e=e.toLowerCase(),i.split("|").filter(function(t){return t!==e?!0:(console.warn(`[SUNEDITOR.constructor.createBlacklist.warn] defaultLine("<${e}>") cannot be included in the blacklist and will be removed.`),!1)}).join("|")}function gc(i,e,t){const o=t.split("|"),s=(e+"|"+(typeof i=="string"?i.toLowerCase():"")).replace(/^\||\|$/g,"").split("|").filter(r=>r&&!o.includes(r)).join("|");return{reg:new RegExp(`^(${s})$`,"i"),str:s}}function HA(i){const e=i.get("elementBlacklist").split("|");return(i.get("__defaultElementWhitelist")+"|"+i.get("elementWhitelist")+"|"+i.get("formatLine").str+"|"+i.get("formatBrLine").str+"|"+i.get("formatClosureBlock").str+"|"+i.get("formatClosureBrLine").str).replace(/(^\||\|$)/g,"").split("|").filter((o,s,r)=>o&&r.indexOf(o)===s&&!e.includes(o)).join("|")}function jA(i,e){!i||!e||(e!=="auto"&&(i.style.maxWidth=e),i.style.width="max-content",i.style.marginLeft="auto",i.style.marginRight="auto")}function FA(i,e,t,o,s){const r=e==null?void 0:e[i];if(r){const d=typeof r=="function"?r:r.constructor;return{className:r.className||d.className||"",title:s[r.title]||r.title||s[d.title]||d.title||i,command:i,type:r.type||d.type||"",icon:o[r.icon]||r.icon||o[d.icon]||d.icon||""}}const c=ev(t.get("_rtl"),o,s)[i];return c?{className:c[0],title:c[1],command:c[2],type:c[3],icon:c[4]}:null}function ev(i,e,t){return{bold:["",t.bold,"bold","",e.bold],underline:["",t.underline,"underline","",e.underline],italic:["",t.italic,"italic","",e.italic],strike:["",t.strike,"strike","",e.strike],subscript:["",t.subscript,"subscript","",e.subscript],superscript:["",t.superscript,"superscript","",e.superscript],removeFormat:["",t.removeFormat,"removeFormat","",e.remove_format],copyFormat:["",t.copyFormat,"copyFormat","",e.format_paint],indent:["se-icon-flip-rtl",t.indent,"indent","",i?e.outdent:e.indent],outdent:["se-icon-flip-rtl",t.outdent,"outdent","",i?e.indent:e.outdent],fullScreen:["se-code-view-enabled se-component-enabled",t.fullScreen,"fullScreen","",e.expansion],showBlocks:["",t.showBlocks,"showBlocks","",e.show_blocks],codeView:["se-code-view-enabled se-component-enabled",t.codeView,"codeView","",e.code_view],markdownView:["se-code-view-enabled se-component-enabled",t.markdownView,"markdownView","",e.markdown_view],undo:["se-component-enabled",t.undo,"undo","",e.undo],redo:["se-component-enabled",t.redo,"redo","",e.redo],preview:["se-component-enabled",t.preview,"preview","",e.preview],print:["se-component-enabled",t.print,"print","",e.print],copy:["",t.copy,"copy","",e.copy],dir:["",t[i?"dir_ltr":"dir_rtl"],"dir","",e[i?"dir_ltr":"dir_rtl"]],dir_ltr:["",t.dir_ltr,"dir_ltr","",e.dir_ltr],dir_rtl:["",t.dir_rtl,"dir_rtl","",e.dir_rtl],finder:["se-component-enabled",t.find,"finder","",e.finder],save:["se-component-enabled",t.save,"save","",e.save],newDocument:["se-component-enabled",t.newDocument,"newDocument","",e.new_document],selectAll:["se-component-enabled",t.selectAll,"selectAll_full","",e.select_all],pageBreak:["se-component-enabled",t.pageBreak,"pageBreak","",e.page_break],pageUp:["se-component-enabled",t.pageUp,"pageUp","",e.page_up],pageDown:["se-component-enabled",t.pageDown,"pageDown","",e.page_down],pageNavigator:["se-component-enabled","","pageNavigator","input",""]}}function WA(){const i=u.utils.createElement("UL",{class:"se-menu-list"});return{div:u.utils.createElement("DIV",{class:"se-btn-module se-btn-module-border"},i),ul:i}}function UA(i,e,t,o,s,r,l){s||(s="");const c=u.utils.createElement("LI"),d=e||"",h=/^INPUT|FIELD$/i.test(o),p=i==="se-toolbar-separator-vertical"?u.utils.createElement("DIV",{class:i,tabindex:"-1"},null):u.utils.createElement(h?"DIV":"BUTTON",{class:"se-toolbar-btn se-btn se-tooltip"+(i?" "+i:""),"data-command":t,"data-type":o,"aria-label":d.replace(/<span .+<\/span>/,""),tabindex:"-1"});return h||p.setAttribute("type","button"),/^default\./i.test(s)&&(s=l[s.replace(/^default\./i,"")]),/^text\./i.test(s)&&(s=s.replace(/^text\./i,""),p.className+=" se-btn-more-text"),r&&(p.disabled=!0),/^FIELD$/i.test(o)&&u.utils.addClass(c,"se-toolbar-hidden-btn"),d&&(s+=u.utils.createTooltipInner(d)),s&&(p.innerHTML=s),c.appendChild(p),{li:c,button:p}}function tv(i,e,t,o){var r;if(!i)return;const s=e.inner===!1;if(((r=e.inner)==null?void 0:r.nodeType)===1?i.appendChild(e.inner):i.innerHTML=s?"":(e.inner||t[e.icon]||e.icon||'<span class="se-icon-text">!</span>')+'<span class="se-tooltip-inner"><span class="se-tooltip-text">'+(o[e.title]||e.title)+"</span></span>",i.setAttribute("aria-label",e.title),e.type&&i.setAttribute("data-type",e.type),e.className&&(i.className+=" "+e.className),e.afterItem&&(u.utils.addClass(e.afterItem,"se-toolbar-btn"),i.parentElement.appendChild(e.afterItem),u.utils.addClass(i,"se-side-btn-a"),u.utils.addClass(e.afterItem,"se-side-btn-after")),e.beforeItem&&(u.utils.addClass(e.beforeItem,"se-toolbar-btn"),i.parentElement.insertBefore(e.beforeItem,i),e.afterItem?(u.utils.addClass(i,"se-side-btn"),u.utils.removeClass(i,"se-side-btn-a")):u.utils.addClass(i,"se-side-btn-b"),u.utils.addClass(e.beforeItem,"se-side-btn-before")),e.replaceButton&&(i.parentElement.appendChild(e.replaceButton),i.style.display="none"),!e.replaceButton&&/^INPUT$/i.test(i.getAttribute("data-type"))){const l=i.querySelector("input");l&&(u.utils.addClass(l,"se-toolbar-btn"),l.setAttribute("data-command",i.getAttribute("data-command")),l.setAttribute("data-type",i.getAttribute("data-type")),i.hasAttribute("disabled")&&(l.disabled=!0))}}function Mg(i,e,t,o,s,r){i=JSON.parse(JSON.stringify(i));const l=ev(t.get("_rtl"),o,s),c={},d=[],h=[];let p=null,f=null,m=null,g=null,v=null;const b=u.utils.createElement("DIV",{class:"se-toolbar-more-layer"}),y=u.utils.createElement("DIV",{class:"se-btn-tray"}),C=u.utils.createElement("DIV",{class:"se-toolbar-separator-vertical"});e:for(let _=0,S,T,M,N,A;_<i.length;_++)if(S=!1,A="",N=i[_],g=WA(),typeof N=="object"){for(let B=0,$;B<N.length;B++){if(f=N[B],$=!1,m=e[f],/^%\d+/.test(f)&&B===0){N[0]=f.replace(/[^\d]/g,""),d.push(N),i.splice(_--,1);continue e}if(typeof m=="function")p=[m.className,m.title,f,m.type,m.innerHTML,m._disabled];else if(typeof m=="object"){const L=m.constructor;p=[m.className||L.className,m.title||L.title,f,m.type||L.type,m.innerHTML||L.innerHTML,m._disabled||L._disabled]}else{if(/^-/.test(f)){A=f.substring(1),g.div.className+=" module-float-"+A;continue}if(/^#/.test(f)){f.substring(1)==="fix"&&(g.ul.className+=" se-menu-dir-fix");continue}if(/^:/.test(f)){$=!0;const L=f.match(/^:([^-]+)-([^-]+)/);M="__se__more_"+_;const O=L[1].trim(),D=L[2].trim();p=["se-btn-more",/^lang\./i.test(O)?s[O.replace(/^lang\./i,"")]:O,M,"MORE",D]}else f==="|"?p=["se-toolbar-separator-vertical","","","separator",""]:(f==="copy"&&!ge.isClipboardSupported&&console.warn("[SUNEDITOR.constructor.warn] Clipboard is not supported in this browser. : [copy] button is not rendered."),p=l[f]);if(!p){if(!m)throw Error(`[SUNEDITOR.create.toolbar.fail] The button name of a plugin that does not exist. [${f}]`);m=typeof m=="object"?m.constructor:m,p=[m.className,m.title,m.key,m.type,m.innerHTML,m._disabled]}}v=UA(p[0],p[1],p[2],p[3],p[4],p[5],o),(S?T:g.ul).appendChild(v.li),m&&(c[f]?c[f].push(v.button):c[f]=[v.button],r&&h.push({button:v.button,plugin:m,key:f})),$&&(S=!0,T=u.utils.createElement("DIV"),T.className="se-more-layer "+M,T.setAttribute("data-ref",M),T.innerHTML='<div class="se-more-form"><ul class="se-menu-list"'+(A?' style="float: '+A+';"':"")+"></ul></div>",b.appendChild(T),T=T.firstElementChild.firstElementChild)}y.appendChild(g.div)}else if(N==="|"){const B=C.cloneNode(!1);y.appendChild(B);continue}else if(/^\/$/.test(N)){const B=u.utils.createElement("DIV",{class:"se-btn-module-enter"});y.appendChild(B)}switch(y.children.length){case 0:y.style.display="none";break;case 1:u.utils.removeClass(y.firstElementChild,"se-btn-module-border");break}b.children.length>0&&y.appendChild(b),d.length>0&&d.unshift(i),jA(y,t.get("toolbar_innerWidth"));const k=u.utils.createElement("DIV",{class:"se-toolbar sun-editor-common"+(t.get("shortcutsHint")?"":" se-shortcut-hide")},y);return t.get("toolbar_hide")&&(k.style.display="none"),{element:k,pluginCallButtons:c,responsiveButtons:d,buttonTray:y,updateButtons:h}}const{_w:as}=ge,qA=2.83465,ZA=96/72,iv=Math.floor(297*qA*ZA);class GA{constructor(e,t){w(this,Bc);w(this,gp);w(this,ds,void 0);w(this,kc,void 0);w(this,Ji,void 0);w(this,_c,void 0);w(this,qr,void 0);w(this,xc,void 0);w(this,_i,void 0);w(this,hi,void 0);w(this,eo,void 0);w(this,hs,void 0);w(this,Zr,void 0);w(this,$i,void 0);w(this,Gr,void 0);w(this,xi,void 0);w(this,Yr,void 0);w(this,Ec,void 0);w(this,Tc,-1);w(this,Kr,-1);w(this,Oi,null);w(this,gn,null);w(this,us,0);w(this,to,0);w(this,Mc,-1);w(this,Sc,0);w(this,Yt,[]);w(this,bn,null);w(this,Ac,0);w(this,ps,0);w(this,Ei,new Map);w(this,No,null);const o=e.$;if(x(this,ds,o.store),x(this,kc,o.context),x(this,Ji,n(this,ds).get("isScrollable")),x(this,_c,o.offset),x(this,qr,o.selection),x(this,xc,o.toolbar),this.useHeader=o.options.get("_type_options").includes("header"),this.usePage=o.options.get("_type_options").includes("page"),x(this,_i,t),x(this,hi,t.get("wysiwyg")),x(this,eo,t.get("wysiwygFrame")),x(this,hs,t.get("documentTypeInner")),x(this,xi,t.get("documentTypePageMirror")),n(this,xi)){const s=as.getComputedStyle(n(this,xi));x(this,Yr,Q.get(s.paddingTop)),x(this,Ec,Q.get(s.paddingBottom))}if(this.useHeader){const s=this._getHeaders(),r=x(this,Zr,n(this,hs).querySelector(".se-document-lines-inner"));let l="";for(let c=0,d=s.length,h;c<d;c++)h=s[c],l+=`<div class="se-doc-item se-doc-h${Q.get(h.nodeName)}" title="${h.textContent}">${h.textContent}</div>`;r.innerHTML=l,x(this,Oi,r.querySelectorAll("div")),o.eventManager.addEvent(r,"click",E(this,gp,iy).bind(this,n(this,hi)))}this.usePage&&(x(this,$i,t.get("documentTypePage")),x(this,Gr,o.plugins.pageNavigator))}reHeader(){if(!this.useHeader)return;const e=this._getHeaders(),t=n(this,Zr),o=n(this,Oi);for(let s=0,r=e.length,l,c,d;s<r;s++)if(l=e[s],c=`se-doc-h${Q.get(l.nodeName)}`,d=o[s],s<o.length)(!d.classList.contains(c)||d.textContent!==l.textContent)&&(d.textContent=d.title=l.textContent,d.className=`se-doc-item ${c}`);else{const h=document.createElement("div");h.className=`se-doc-item ${c}`,h.textContent=h.title=l.textContent,t.appendChild(h)}if(o.length>e.length)for(let s=e.length;s<o.length;s++)t.removeChild(o[s]);x(this,Oi,t.querySelectorAll("div"))}async rePage(e){n(this,$i)&&(n(this,No)&&as.clearTimeout(n(this,No)),x(this,No,as.setTimeout(async()=>{await u.utils.waitForMediaLoad(n(this,xi),1500);const t=n(this,hi).scrollHeight>n(this,xi).scrollHeight?n(this,hi).scrollHeight-n(this,xi).scrollHeight:0,o=n(this,xi).scrollHeight+t,s=n(this,hi).querySelectorAll(".se-page-break");if(!e&&n(this,Mc)===o&&n(this,Sc)===s.length)return;x(this,Mc,o),x(this,Sc,s.length);let r=0;const l=[];if(s.length>0){r=s[0].offsetHeight;for(let v=0;v<s.length;v++)l.push({top:s[v].offsetTop,end:s[v].offsetTop+r/2})}const c=n(this,Ji).call(this,n(this,_i))?this._getWWScrollTop():0,d=[{number:0,top:0}];for(let v=0;v<l.length;v++)d.push({number:0,top:l[v].top+r/2,isBreak:!0});x(this,ps,0);const h=n(this,hi).children,p=n(this,xi).children;this._initializeCache(p);const f=[0,...l.map(v=>v.end)],m=[...l.map(v=>v.top),o];for(let v=0;v<f.length;v++){const b=f[v],y=m[v];let C=b,k=v===0;for(;C+=iv+(k?n(this,Yr)+n(this,Ec):n(this,Yr)),k=!1,!(C>=y);)if(!d.some(_=>Math.abs(_.top-C)<3)){const _=this._calcPageBreakTop(C,h,p,d);if(_===null)break;d.push({number:0,top:_})}}if(d.length===0){x(this,bn,null),x(this,us,1),this._displayCurrentPage();return}d.sort((v,b)=>v.top-b.top),n(this,$i).innerHTML="",x(this,Yt,[]);const g=n(this,eo).offsetWidth+1;for(let v=0,b;v<d.length&&(b=d[v].top,!(o<b));v++){const y=u.utils.createElement("DIV",{style:`top:${b-c}px`,innerHTML:String(v+1)},`<div class="se-document-page-line" style="width: ${g}px;"></div>${v+1}`);n(this,$i).appendChild(y),n(this,Yt).push(y)}x(this,bn,n(this,$i).querySelectorAll(".se-document-page-line")),x(this,us,n(this,Yt).length),E(this,Bc,m0).call(this),this._displayCurrentPage()},400)))}_getDisplayPage(){return n(this,Ji).call(this,n(this,_i))?n(this,_i).get("wysiwyg"):as}_calcPageBreakTop(e,t,o,s){const{ci:r}=this._getElementAtPosition(e,o,s),l=o[r],c=t[r];if(!l||!c)return null;const d=c.offsetTop-l.offsetTop,h=c.offsetHeight-l.offsetHeight,p=e+d+h/2;return Math.round(p)}_initializeCache(e){n(this,Ei).clear();for(let t=0,o=e.length;t<o;t++){const s=e[t],r=s.offsetTop,l=s.offsetHeight,c=r+l;n(this,Ei).set(t,{top:r,height:l,bottom:c})}}_getElementAtPosition(e,t,o){let s=n(this,ps),r=t.length-1;if(s>0){const d=n(this,Ei).get(s);d&&e<d.top&&(s=0)}for(;s<=r;){const d=Math.floor((s+r)/2),{top:h,height:p,bottom:f}=n(this,Ei).get(d);if(e>=h&&e<=f){let m=d;if(o&&u.utils.hasClass(t[m],"se-page-break")){m=m+1<t.length?m+1:Math.max(0,m-1);const g=n(this,Ei).get(m);return x(this,ps,m),{ci:m,cm:e-g.bottom,ch:g.height}}return x(this,ps,m),{ci:m,cm:e-f,ch:p}}e<h?r=d-1:s=d+1}let l=t[s]?s:r;o&&u.utils.hasClass(t[l],"se-page-break")&&(l=l+1<t.length?l+1:Math.max(0,l-1)),x(this,ps,l);const c=n(this,Ei).get(l);return{ci:l,cm:e-c.bottom,ch:c.height}}resizePage(){const e=n(this,eo).offsetWidth+1,t=n(this,eo).offsetHeight+1;let o=!1;if(e===n(this,Tc)&&(o=t===n(this,Kr)))return;e>800?u.utils.removeClass(n(this,hs),"se-document-responsible"):u.utils.addClass(n(this,hs),"se-document-responsible"),x(this,Tc,e),x(this,Kr,t);const s=n(this,bn);for(let r=0,l=s==null?void 0:s.length;r<l;r++)s[r].style.width=`${e}px`;o||this.rePage(!0),this._displayCurrentPage()}scrollPage(){const e=n(this,Ac),t=this._getWWScrollTop();if(e===t)return;const o=n(this,Yt),s=t-e;for(let r=0,l=o.length;r<l;r++)o[r].style.top=`${Q.get(o[r].style.top)-s}px`;E(this,Bc,m0).call(this),x(this,Ac,t),this._displayCurrentPage()}scrollWindow(){n(this,Ji).call(this,n(this,_i))||this._displayCurrentPage()}getCurrentPageNumber(){if(n(this,us)<=1)return 1;let e=0;if(n(this,Ji).call(this,n(this,_i)))e=n(this,Kr)/2;else{const o=this._getGlobalTop();if(e=as.scrollY-o+iv/2,e<=0)return 1}const t=n(this,Yt);for(let o=0,s=t.length;o<s;o++)if(t[o].offsetTop>=e)return x(this,to,o);return x(this,to,n(this,us))}pageUp(){const e=n(this,to)-1<=1?1:n(this,to)-1;this._movePage(e,!1)}pageDown(){const e=n(this,to)+1>n(this,Yt).length?n(this,Yt).length:n(this,to)+1;this._movePage(e,!1)}pageGo(e){e<1?e=1:e>n(this,Yt).length&&(e=n(this,Yt).length),this._movePage(e,!0)}on(e){if(!this.useHeader||(this._is(e)||(e=this._findLinesHeader(e)),!e))return;const t=this._findItem(e);t&&(u.utils.removeClass(n(this,Oi),"active"),u.utils.addClass(t,"active"))}onChangeText(e){if(!this.useHeader||!this._is(e))return;const t=this._findItem(e);t&&(t.textContent=e.textContent)}_displayCurrentPage(){var t;const e=this.getCurrentPageNumber();(t=n(this,Gr))==null||t.display(e,n(this,us))}_getWWScrollTop(){const e=this._getDisplayPage();return e.scrollTop||e.scrollY||0}_movePage(e,t){const o=this._getGlobalTop(),s=n(this,Ji).call(this,n(this,_i)),r=Te.nodeListToArray(n(this,hi).children),l=n(this,$i).offsetTop+Q.get(n(this,Yt)[e-1].style.top)+(s?this._getWWScrollTop():0);for(let c=0,d=r.length,h;c<d;c++)if(h=r[c],h.offsetTop>=l){t||n(this,qr).setRange(h,0,h,0);const p=c===0&&s?0:h.offsetTop-n(this,$i).offsetTop-h.offsetHeight+o;this._applyPageScroll(p,()=>{n(this,xc).isSticky&&!n(this,ds).mode.isBottom&&this._getDisplayPage().scrollTo({top:p-n(this,kc).get("toolbar_main").offsetHeight,behavior:"smooth"})}),x(this,to,e);break}}_applyPageScroll(e,t){const o=this._getDisplayPage();o.scrollTo({top:e,behavior:"smooth"});const s=()=>{Math.abs((o.scrollY??o.scrollTop)-e)<1?t():as.requestAnimationFrame(s)};as.requestAnimationFrame(s)}_getGlobalTop(){return n(this,Ji).call(this,n(this,_i))?0:n(this,_c).getGlobal(n(this,eo)).top}_findItem(e){const t=n(this,gn),o=Array.prototype.indexOf.call(t,e);return o!==-1&&n(this,Oi)[o]?n(this,Oi)[o]:null}_findLinesHeader(e){for(;e&&e!==n(this,hi);){if(this._is(e))return e;e=e.previousElementSibling||e.parentElement}return null}_is(e){return/^h[1-6]$/i.test(e==null?void 0:e.nodeName)}_getHeaders(){return x(this,gn,n(this,hi).querySelectorAll("h1, h2, h3, h4, h5, h6"))}_destroy(){n(this,No)&&(as.clearTimeout(n(this,No)),x(this,No,null)),n(this,Ei)&&(n(this,Ei).clear(),x(this,Ei,null)),x(this,_i,null),x(this,hi,null),x(this,eo,null),x(this,hs,null),x(this,Zr,null),x(this,$i,null),x(this,Yt,null),x(this,bn,null),x(this,Oi,null),x(this,gn,null),x(this,Gr,null),x(this,xi,null)}}ds=new WeakMap,kc=new WeakMap,Ji=new WeakMap,_c=new WeakMap,qr=new WeakMap,xc=new WeakMap,_i=new WeakMap,hi=new WeakMap,eo=new WeakMap,hs=new WeakMap,Zr=new WeakMap,$i=new WeakMap,Gr=new WeakMap,xi=new WeakMap,Yr=new WeakMap,Ec=new WeakMap,Tc=new WeakMap,Kr=new WeakMap,Oi=new WeakMap,gn=new WeakMap,us=new WeakMap,to=new WeakMap,Mc=new WeakMap,Sc=new WeakMap,Yt=new WeakMap,bn=new WeakMap,Ac=new WeakMap,ps=new WeakMap,Ei=new WeakMap,No=new WeakMap,Bc=new WeakSet,m0=function(){const e=n(this,Yt);if(!(e!=null&&e.length))return;const t=n(this,eo).offsetHeight;for(let o=0,s=e.length;o<s;o++){const r=Q.get(e[o].style.top);e[o].style.display=r<0||r>t?"none":""}},gp=new WeakSet,iy=function(e,t){t.preventDefault();try{n(this,ds).set("_preventBlur",!0);const o=u.query.getEventTarget(t);if(u.utils.hasClass(o,"se-doc-item")){const s=Array.prototype.indexOf.call(n(this,Oi),o);if(s===-1)return;const r=n(this,gn)[s];r&&n(this,qr).scrollTo(r)}}finally{n(this,ds).set("_preventBlur",!1)}};const YA=GA;class KA{constructor(e){w(this,bp);w(this,fs,void 0);w(this,Lo,new Map);const t=e.options,o=t.get("mode"),s=t.get("_subMode");this._editorInitFinished=!1,this.mode={isClassic:/classic/i.test(o),isInline:/inline/i.test(o),isBalloon:/balloon/i.test(o),isBalloonAlways:/balloon-always/i.test(o),isSubBalloon:/balloon/i.test(s),isSubBalloonAlways:/balloon-always/i.test(s),isBottom:!!t.get("_toolbar_bottom")},x(this,fs,{rootKey:e.rootId,hasFocus:!1,tabSize:4,indentSize:25,codeIndentSize:2,currentNodes:[],currentNodesMap:[],initViewportHeight:0,currentViewportHeight:0,controlActive:!1,_lastSelectionNode:null,isScrollable:r=>{const l=r.get("options"),c=l.get("height"),d=l.get("maxHeight");return c!=="auto"?!0:d?r.get("wysiwyg").offsetHeight>=Q.get(d):!1},_range:null,_mousedown:!1,_preventBlur:!1,_preventFocus:!1,_canUseBeforeInput:!0})}get(e){return n(this,fs)[e]}set(e,t){const o=n(this,fs)[e];n(this,fs)[e]=t,E(this,bp,oy).call(this,e,t,o)}subscribe(e,t){return n(this,Lo).has(e)||n(this,Lo).set(e,new Set),n(this,Lo).get(e).add(t),()=>n(this,Lo).get(e).delete(t)}_reset(){}_destroy(){n(this,Lo).clear(),x(this,fs,null)}}fs=new WeakMap,Lo=new WeakMap,bp=new WeakSet,oy=function(e,t,o){const s=n(this,Lo).get(e);if(s)for(const r of s)try{r(t,o)}catch(l){console.error(`[Store] Subscriber error for "${e}":`,l)}};const XA=KA,{_w:ov,_d:QA}=ge;class JA{constructor(e){w(this,vp);w(this,yp);w(this,wp);w(this,vn,void 0);w(this,Xr,void 0);w(this,yn,void 0);x(this,vn,e.frameRoots),x(this,Xr,E(this,yp,ny).call(this,e.context)),x(this,yn,E(this,wp,ry).call(this,{value:new Map})),this.rootKeys=e.rootKeys,this.carrierWrapper=e.carrierWrapper,this.icons=e.icons,this.lang=e.lang,this.shadowRoot=null}get frameRoots(){return n(this,vn)}get context(){return n(this,Xr)}get frameContext(){return n(this,yn)}init(){this.applyToRoots(e=>{E(this,vp,sy).call(this,e)})}reset(e){n(this,yn).reset(e)}applyToRoots(e){n(this,vn).forEach(e)}_destroy(){this.applyToRoots(e=>{const t=e.get("documentType");t&&t._destroy(),u.utils.removeItem(e.get("topArea")),e.get("options").clear(),e.clear()}),n(this,Xr).clear(),n(this,yn).clear(),n(this,vn).clear(),u.utils.removeItem(this.carrierWrapper),this.rootKeys=null,this.carrierWrapper=null,this.icons=null,this.lang=null,this.shadowRoot=null}}vn=new WeakMap,Xr=new WeakMap,yn=new WeakMap,vp=new WeakSet,sy=function(e){const t=e.get("options");if(e.set("wwComputedStyle",ov.getComputedStyle(e.get("wysiwyg"))),!t.get("iframe")&&typeof ShadowRoot=="function"){let s=e.get("wysiwygFrame");for(;s;){if(s.shadowRoot){this.shadowRoot=s.shadowRoot;break}else if(s instanceof ShadowRoot){this.shadowRoot=s;break}s=s.parentNode}}t.get("iframe")?(e.set("_ww",e.get("wysiwygFrame").contentWindow),e.set("_wd",e.get("wysiwygFrame").contentDocument),e.set("wysiwyg",e.get("_wd").body),t.get("_defaultStyles").editor&&(e.get("wysiwyg").style.cssText=t.get("_defaultStyles").editor),t.get("height")==="auto"&&e.set("_iframeAuto",e.get("_wd").body)):(e.set("_ww",ov),e.set("_wd",QA));const o=t.get("editableFrameAttributes");for(const s in o)e.get("wysiwyg").setAttribute(s,o[s])},yp=new WeakSet,ny=function(e){const t=e;return{get(o){return t.get(o)},set(o,s){return t.set(o,s)},has(o){return t.has(o)},delete(o){return t.delete(o)},getAll(){return Object.fromEntries(t.entries())},get size(){return t.size},clear(){t.clear()}}},wp=new WeakSet,ry=function(e){let t=e.value;return{get(o){return t.get(o)},set(o,s){return t.set(o,s)},has(o){return t.has(o)},delete(o){return t.delete(o)},getAll(){return Object.fromEntries(t.entries())},reset(o){t=e.value=o},get size(){return t.size},clear(){t.clear()}}};class eB{constructor(e,t,o){w(this,Cp);w(this,kp);w(this,Nc);w(this,_p);w(this,xp);w(this,Qr,void 0);w(this,wn,void 0);w(this,Cn,void 0);w(this,kn,void 0);x(this,Qr,e),x(this,wn,o),x(this,Cn,E(this,_p,cy).call(this,{value:t.options})),x(this,kn,E(this,xp,dy).call(this,{value:new Map}))}get options(){return n(this,Cn)}get frameOptions(){return n(this,kn)}reset(e){const{$:t}=n(this,Qr),o=t.frameRoots,s=t.context,r=t.eventManager,l=t.format,c=t.html,d=t.char,h=t.viewer,p=t.plugins,f=t.history,m=t.ui,g=n(this,Qr)._eventOrchestrator;h.codeView(!1),h.showBlocks(!1);const v=new Map,b=[],y=new Map,C={};for(const B in e)Eg[B]!==void 0&&(C[B]=e[B],delete e[B]);for(const B of o.keys())e[B||""]={...C,...e[B||""]};const k=Object.keys(e);if(E(this,Nc,g0).call(this,k,p,""),k.length===0)return;o.size===1&&k.unshift(null);const _=[n(this,wn),e].reduce((B,$)=>{for(const L in $)o.has(L||null)?E(this,Cp,ay).call(this,L,$,o,v,y,b):B[L]=$[L];return B},{}),S=n(this,Cn),T=Qb(_,b,p),M=T.o,N=T.frameMap;for(let B=0,$=k.length,L;B<$;B++){if(L=k[B]||null,y.has(L)){const O=v.get(L),D=o.get(L),I=D.get("options"),R=N.get(L);for(const[V,Z]of R.entries())I.set(V,Z);if(O.has("statusbar-changed")){if(u.utils.removeItem(D.get("statusbar")),R.get("statusbar")){const V=Jb(R,null).statusbar;D.get("container").appendChild(V),xg(V,D),g.__addStatusbarEvent(D,R)}else r.removeEvent(I.get("__statusbarEvent")),R.set("__statusbarEvent",null),xg(null,D);D.get("statusbar")&&d.display(D)}if(O.has("iframe_attributes")){const V=D.get("wysiwygFrame"),Z=I.get("iframe_attributes"),j=R.get("iframe_attributes");for(const Y in Z)V.removeAttribute(Y);for(const Y in j)V.setAttribute(Y,j[Y])}if(O.has("iframe_cssFileName")){const V=D.get("_wd").head,Z=V.getElementsByTagName("link");for(;Z[0];)V.removeChild(Z[0]);const Y=new DOMParser().parseFromString(Te._setIframeStyleLinks(R.get("iframe_cssFileName")),"text/html").head.children,ne=V.querySelector("style");for(;Y[0];)V.insertBefore(Y[0],ne)}if(O.has("placeholder")&&(D.get("placeholder").textContent=R.get("placeholder")),O.has("placeholder_line")){const V=R.get("placeholder_line");D.set("placeholder_line",V);const Z=D.get("wysiwyg").querySelector(".se-placeholder-line");if(Z){const j=m.resolveLinePlaceholder(Z,V);j?Z.setAttribute("data-se-placeholder-line",j):(Z.classList.remove("se-placeholder-line"),Z.removeAttribute("data-se-placeholder-line"),Z.getAttribute("class")||Z.removeAttribute("class"))}}m.setEditorStyle(R.get("editorStyle"),D);const F=D.get("wysiwyg"),q=I.get("editableFrameAttributes"),H=R.get("editableFrameAttributes");for(const V in q)F.removeAttribute(V);for(const V in H)F.setAttribute(V,H[V]);continue}switch(L){case"theme":{m.setTheme(M.get("theme"));break}case"events":{const O=M.get("events");for(const D in O)r.events[D]=O[D];break}case"autoStyleify":{c.__resetAutoStyleify(M.get("autoStyleify"));break}case"textDirection":{m.setDir(M.get("textDirection")==="rtl"?"rtl":"ltr");break}case"historyStackDelayTime":{f.resetDelayTime(M.get("historyStackDelayTime"));break}case"defaultLineBreakFormat":l.__resetBrLineBreak(M.get("defaultLineBreakFormat"))}}S.setMany(M),x(this,wn,_);const A=s.get("toolbar_main");/inline|balloon/i.test(S.get("mode"))&&k.includes("toolbar_width")&&(A.style.width=S.get("toolbar_width")),S.get("toolbar_hide")?A.style.display="none":A.style.display="",S.get("shortcutsHint")?u.utils.removeClass(A,"se-shortcut-hide"):u.utils.addClass(A,"se-shortcut-hide")}resetFrame(e){n(this,kn).reset(e)}_destroy(){x(this,wn,null),n(this,Cn).clear(),n(this,kn).clear()}}Qr=new WeakMap,wn=new WeakMap,Cn=new WeakMap,kn=new WeakMap,Cp=new WeakSet,ay=function(e,t,o,s,r,l){const c=t[e],d=Object.keys(c);if(E(this,Nc,g0).call(this,d,null,e+"."),d.length===0)return!1;const h=e||null;s.set(h,new Map);const p=o.get(h).get("options").get("_origin"),f={},m=Object.prototype.hasOwnProperty;for(const v in c){if(!m.call(Eg,v))continue;const b=c[v];!d.includes(v)||p[v]===b||(s.get(h).set(E(this,kp,ly).call(this,v),!0),f[v]=b)}const g={...p,...f};r.set(h,new Map(Object.entries(g))),l.push({key:h,options:g})},kp=new WeakSet,ly=function(e){return/^statusbar|^charCounter|^wordCounter/.test(e)?"statusbar-changed":e},Nc=new WeakSet,g0=function(e,t,o){for(let s=0,r=e.length,l;s<r;s++)l=e[s],(IA[l]==="fixed"||Eg[l]==="fixed"||t&&t[l])&&(console.warn(`[SUNEDITOR.warn.resetOptions] The "[${o+l}]" option cannot be changed after the editor is created.`),e.splice(s--,1),r--)},_p=new WeakSet,cy=function(e){let t=e.value;return{get(o){return t.get(o)},set(o,s){return t.set(o,s)},has(o){return t.has(o)},getAll(){return Object.fromEntries(t.entries())},setMany(o){o.forEach((s,r)=>t.set(r,s))},reset(o){t=e.value=o},size(){return t.size},clear(){t.clear()},entries(){return t.entries()},keys(){return t.keys()},values(){return t.values()},forEach(o){t.forEach(o)}}},xp=new WeakSet,dy=function(e){let t=e.value;return{get(o){return t.get(o)},set(o,s){return t.set(o,s)},has(o){return t.has(o)},getAll(){return Object.fromEntries(t.entries())},setMany(o){o.forEach((s,r)=>t.set(r,s))},reset(o){t=e.value=o},size(){return t.size},clear(){t.clear()},entries(){return t.entries()},keys(){return t.keys()},values(){return t.values()},forEach(o){t.forEach(o)}}};class tB{constructor(e){w(this,_n);w(this,Lc,void 0);x(this,Lc,e)}isNode(e){return e&&typeof e.nodeType=="number"||e instanceof E(this,_n,qh).call(this).Node}isElement(e){return e&&e.nodeType===1||e instanceof E(this,_n,qh).call(this).Element}isRange(e){var t;return e&&((t=e.constructor)==null?void 0:t.name)==="Range"||e instanceof E(this,_n,qh).call(this).Range}isSelection(e){var t;return e&&((t=e.constructor)==null?void 0:t.name)==="Selection"||e instanceof E(this,_n,qh).call(this).Selection}}Lc=new WeakMap,_n=new WeakSet,qh=function(){return n(this,Lc).get("_ww")};const iB=tB,Jt=new Map([["__figureInst",null],["__dragInst",null],["__dragHandler",null],["__dragContainer",null],["__dragCover",null],["__dragMove",null],["__overInfo",null]]),ye=Jt,{_w:ls}=ge,Sg=38;class oB{constructor(e,t){w(this,xn);w(this,Rc);w(this,Ep);w(this,so);w(this,zc);w(this,En);w(this,Pc);w(this,Tp);w(this,Mp);w(this,sa);w(this,na);w(this,Hc);w(this,Sp);w(this,jc);w(this,Ap);w(this,Fc);w(this,Bp);w(this,Np);w(this,Lp);w(this,Ip);w(this,$p);w(this,Op);w(this,Dp);w(this,$e,void 0);w(this,Ic,void 0);w(this,$c,void 0);w(this,io,void 0);w(this,ms,void 0);w(this,gs,void 0);w(this,Io,null);w(this,Oc,null);w(this,Dc,null);w(this,Jr,null);w(this,ea,null);w(this,ta,null);w(this,bs,null);w(this,ia,null);w(this,oo,null);w(this,oa,null);w(this,Vc,null);w(this,Et,new Map);w(this,ft,-1);w(this,Ti,-1);w(this,$o,!1);w(this,vs,null);x(this,$e,e);const o=t.position.split("-");this.form=null,this.items=[],this.menus=null,this.menuLen=0,this.index=-1,this.item=null,this.isOpen=!1,this.checkList=!!t.checkList,this.position=o[0],this.subPosition=o[1],this.splitNum=t.splitNum||0,this.horizontal=!!this.splitNum,this.openMethod=t.openMethod,this.closeMethod=t.closeMethod,this.subEscMethod=t.subEscMethod||null,this.maxHeight=t.maxHeight||"",this.minWidth=t.minWidth||"",x(this,Dc,t.keydownTarget||null),x(this,Ic,/^(left|right)$/.test(this.position)?this.position==="left"?"right":"left":this.position),x(this,$c,/^(left|right)$/.test(this.subPosition)?this.subPosition==="left"?"right":"left":this.subPosition),x(this,io,t.dir==="ltr"?!1:t.dir==="rtl"?!0:null),x(this,ms,{mousedown:E(this,Np,by).bind(this),mousemove:E(this,Lp,vy).bind(this),click:E(this,Ip,yy).bind(this),keydown:E(this,Bp,gy).bind(this)}),x(this,gs,{keydown:E(this,$p,wy).bind(this),mousedown:E(this,Op,Cy).bind(this),click:E(this,Dp,ky).bind(this),submenuReposition:E(this,Ep,hy).bind(this)})}create(e,t){var s,r;this.form.firstElementChild.innerHTML="";for(const[,l]of n(this,Et))(s=l.element)==null||s.remove();n(this,Et).clear(),t||(t=e);let o="";for(let l=0,c=t.length;l<c;l++){l>0&&l%this.splitNum===0&&(E(this,Pc,y0).call(this,o),o="");const d=e[l],h=typeof t[l]=="string"?t[l]:t[l].outerHTML,p=d&&typeof d=="object"?d:{};if(((r=p.children)==null?void 0:r.length)>0){let m="";const g=p.childMenus||p.children;for(let b=0;b<g.length;b++)m+=`<li class="se-select-item" data-parent-index="${l}" data-child-index="${b}">${typeof g[b]=="string"?g[b]:g[b].outerHTML}</li>`;o+=`<li class="se-select-item se-has-submenu" data-index="${l}">${h}<span class="se-submenu-arrow">${n(this,$e).icons.menu_arrow_right}</span></li>`;const v=u.utils.createElement("DIV",{class:"se-select-submenu",popover:"manual","data-parent-index":String(l)},`<ul class="se-list-basic se-list-checked">${m}</ul>`);n(this,Et).set(l,{items:p.children,menus:g,element:v})}else o+=`<li class="se-select-item" data-index="${l}">${h}</li>`}E(this,Pc,y0).call(this,o);for(const[,l]of n(this,Et))this.form.appendChild(l.element);this.items=e,this.menus=Array.from(this.form.querySelectorAll("li[data-index]")),this.menuLen=this.menus.length}on(e,t,o={}){x(this,Io,e),x(this,Oc,n(this,Dc)||(u.check.isInputElement(e)?e:n(this,$e).frameContext.get("_ww"))),x(this,Jr,t);let s="";this.maxHeight&&(s+="max-height:"+this.maxHeight+";overflow-y:auto;"),this.minWidth&&(s+="min-width:"+this.minWidth+";"),this.form=u.utils.createElement("DIV",{class:"se-select-menu"+(n(this,io)===!0?" se-rtl":"")+(o.class?" "+o.class:""),style:o.style||""},'<div class="se-list-inner"'+(s?' style="'+s+'"':"")+"></div>"),e.parentNode.insertBefore(this.form,e)}open(e,t){var l;n(this,$e).ui.selectMenuOn=!0,(l=this.openMethod)==null||l.call(this),E(this,Sp,fy).call(this),E(this,Ap,my).call(this);const o=e?e.split("-"):[],s=o[0]||(n(this,io)!==null&&n(this,io)!==n(this,$e).options.get("_rtl")?n(this,Ic):this.position),r=o[1]||(n(this,io)!==null&&n(this,io)!==n(this,$e).options.get("_rtl")?n(this,$c):this.subPosition);x(this,oa,s),x(this,Vc,r),E(this,na,Tm).call(this,s,r,t),this.isOpen=!0}reposition(){!this.isOpen||!n(this,oa)||E(this,na,Tm).call(this,n(this,oa),n(this,Vc))}setHidden(e){this.isOpen&&(e?(E(this,so,Xs).call(this),this.form.style.display="none"):this.reposition())}close(){var e,t;n(this,$e).ui.selectMenuOn=!1,u.utils.removeClass(n(this,Io),"on"),E(this,Tp,uy).call(this),(e=this.form)==null||e.removeAttribute("style"),this.isOpen=!1,(t=this.closeMethod)==null||t.call(this)}getItem(e){return this.items[e]}setItem(e){E(this,sa,Em).call(this,e)}hasOpenSubmenu(){return n(this,ft)>-1}}$e=new WeakMap,Ic=new WeakMap,$c=new WeakMap,io=new WeakMap,ms=new WeakMap,gs=new WeakMap,Io=new WeakMap,Oc=new WeakMap,Dc=new WeakMap,Jr=new WeakMap,ea=new WeakMap,ta=new WeakMap,bs=new WeakMap,ia=new WeakMap,oo=new WeakMap,oa=new WeakMap,Vc=new WeakMap,Et=new WeakMap,ft=new WeakMap,Ti=new WeakMap,$o=new WeakMap,vs=new WeakMap,xn=new WeakSet,Zh=function(e){if(n(this,ft)===e)return;E(this,so,Xs).call(this);const t=this.menus[e];if(!t||!u.utils.hasClass(t,"se-has-submenu"))return;u.utils.addClass(t,"se-submenu-open"),x(this,ft,e),x(this,Ti,-1),x(this,$o,!1);const o=n(this,Et).get(e),s=o==null?void 0:o.element;if(s){const r=typeof s.showPopover=="function";s.style.visibility="hidden",r?s.matches(":popover-open")||s.showPopover():s.style.display="block",E(this,Rc,b0).call(this,t,s,r),s.style.visibility="",x(this,ia,n(this,$e).eventManager.addGlobalEvent("scroll",n(this,gs).submenuReposition,!0))}},Rc=new WeakSet,b0=function(e,t,o){const s=o?{top:0,left:0}:this.form.getBoundingClientRect(),r=e.getBoundingClientRect(),l=t.offsetWidth,c=t.offsetHeight,d=ls.innerWidth,h=ls.innerHeight,p=r.right,f=r.left-l,m=Math.max(0,p+l-d),g=Math.max(0,-f),v=n(this,io)===!0;let b;v?g===0?b=f:m===0?b=p:g<=m?b=f+g:b=p-m:m===0?b=p:g===0?b=f:m<=g?b=p-m:b=f+g,t.style.left=b-s.left+"px",t.style.right="";const y=r.top,C=r.bottom-c,k=Math.max(0,y+c-h),_=Math.max(0,-C);let S;k===0?S=y:_===0?S=C:k<=_?S=y-k:S=C+_,t.style.top=S-s.top+"px"},Ep=new WeakSet,hy=function(){if(n(this,ft)<0)return;const e=n(this,Et).get(n(this,ft)),t=e==null?void 0:e.element,o=this.menus[n(this,ft)];!t||!o||E(this,Rc,b0).call(this,o,t,typeof t.showPopover=="function")},so=new WeakSet,Xs=function(){if(n(this,vs)&&(ls.clearTimeout(n(this,vs)),x(this,vs,null)),n(this,ia)&&x(this,ia,n(this,$e).eventManager.removeGlobalEvent(n(this,ia))),n(this,ft)>-1){const e=this.menus[n(this,ft)];e&&u.utils.removeClass(e,"se-submenu-open");const t=n(this,Et).get(n(this,ft));t!=null&&t.element&&(typeof t.element.hidePopover=="function"?t.element.matches(":popover-open")&&t.element.hidePopover():t.element.style.display="",u.utils.removeClass(t.element.querySelectorAll(".se-select-item"),"se-select-cursor"))}x(this,ft,-1),x(this,Ti,-1),x(this,$o,!1)},zc=new WeakSet,v0=function(e,t){var s;const o=n(this,Et).get(e);if(o){if(this.checkList){const r=(s=o.element)==null?void 0:s.querySelectorAll(".se-select-item")[t];r&&u.utils.toggleClass(r,"se-checked")}n(this,Jr).call(this,o.items[t])}},En=new WeakSet,Gh=function(e){const t=n(this,Et).get(n(this,ft));if(!(t!=null&&t.element))return;const o=t.element.querySelectorAll(".se-select-item"),s=o.length;if(!s)return;e=n(this,Ti)+e;const r=x(this,Ti,e>=s?0:e<0?s-1:e);u.utils.removeClass(this.form,"se-select-menu-mouse-move");for(let l=0;l<s;l++)l===r?u.utils.addClass(o[l],"se-select-cursor"):u.utils.removeClass(o[l],"se-select-cursor")},Pc=new WeakSet,y0=function(e){this.form.firstElementChild.innerHTML+=`<ul class="se-list-basic se-list-checked${this.horizontal?" se-list-horizontal":""}">${e}</ul>`},Tp=new WeakSet,uy=function(){E(this,jc,C0).call(this),E(this,Fc,k0).call(this),E(this,so,Xs).call(this),this.index=-1,this.item=null,this._onItem&&(u.utils.removeClass(this._onItem,"se-select-on"),this._onItem=null)},Mp=new WeakSet,py=function(e){e=this.index+e;const t=this.menuLen,o=this.index=e>=t?0:e<0?t-1:e;E(this,sa,Em).call(this,o)},sa=new WeakSet,Em=function(e){u.utils.removeClass(this.form,"se-select-menu-mouse-move");const t=this.menuLen;for(let o=0;o<t;o++)o===e?u.utils.addClass(this.menus[o],"se-select-cursor"):u.utils.removeClass(this.menus[o],"se-select-cursor");this.index=e,this.item=this.items[e]},na=new WeakSet,Tm=function(e,t,o,s){const r=e,l=this.form,c=n(this,Io);l.style.visibility="hidden",l.style.display="block",u.utils.removeClass(l,"se-select-menu-scroll"),u.utils.addClass(c,"on");const d=l.offsetWidth,h=c.offsetWidth,p=c.offsetLeft;let f=!1,m=0,g=0;e==="left"?(m=p-d-1,e=t,f=!0):e==="right"&&(m=p+h+1,e=t,f=!0);const v=n(this,$e).offset.get(c),b=c.offsetTop,y=v.top,C=c.offsetHeight,k=u.utils.getClientSize().h-(y-ls.scrollY+C),_=f?C:0;let S=1e4;switch(e){case"middle":{let N=l.offsetHeight;const A=C/2;g=b-N/2+A,y<N/2&&(g+=N/2-y-A+4,l.style.top=g+"px");let B=n(this,$e).offset.getGlobal(l).top;const $=N-(y-B)-k-C;$>0&&(g-=$+4,l.style.top=g+"px"),B=n(this,$e).offset.getGlobal(l).top,B<0&&(N+=B-4,g-=B-4),l.style.height=N+"px";break}case"top":if(y<l.offsetHeight-_){if(!s){S=0;break}S=y-4+_,S>=Sg&&(l.style.height=S+"px")}g=b-l.offsetHeight+_;break;case"bottom":if(k<l.offsetHeight+_){if(!s){S=0;break}S=k-4+_,S>=Sg&&(l.style.height=S+"px")}g=b+(f?0:C);break}if(S<Sg&&!s&&e!=="middle"){E(this,na,Tm).call(this,e==="top"?"bottom":"top",t,o,!0);return}if(!f)switch(t){case"center":m=p+h/2-d/2;break;case"left":m=p;break;case"right":m=p-(d-h);break}l.style.left=m+"px";let T=n(this,$e).offset.getGlobal(l).fixedLeft,M=0;switch(f+"-"+(f?r:t)){case"true-left":T<0&&(m=p+h+1);break;case"true-right":T+d>ls.innerWidth&&(m=p-d-1);break;case"false-center":M=ls.innerWidth-(T+d),M<0&&(m+=M-4),l.style.left=m+"px",T=n(this,$e).offset.getGlobal(l).fixedLeft,T<0&&(m-=T-4);break;case"false-left":M=ls.innerWidth-(T+d),M<0&&(m+=M-4);break;case"false-right":T<0&&(m-=T-4);break}if(o){const N=l.firstElementChild.querySelector(o);N&&(this._onItem=N,u.utils.addClass(N,"se-select-on"))}l.style.left=m+"px",l.style.top=g+"px",l.style.visibility=""},Hc=new WeakSet,w0=function(e){this.checkList&&u.utils.toggleClass(this.menus[e],"se-checked"),n(this,Jr).call(this,this.getItem(e))},Sp=new WeakSet,fy=function(){E(this,jc,C0).call(this),x(this,oo,{mousedown:n(this,$e).eventManager.addEvent(this.form,"mousedown",n(this,ms).mousedown),mousemove:n(this,$e).eventManager.addEvent(this.form,"mousemove",n(this,ms).mousemove),click:n(this,$e).eventManager.addEvent(this.form,"click",n(this,ms).click),keydown:n(this,$e).eventManager.addEvent(n(this,Oc),"keydown",n(this,ms).keydown)})},jc=new WeakSet,C0=function(){n(this,oo)&&(n(this,$e).eventManager.removeEvent(n(this,oo).mousedown),n(this,$e).eventManager.removeEvent(n(this,oo).mousemove),n(this,$e).eventManager.removeEvent(n(this,oo).click),n(this,$e).eventManager.removeEvent(n(this,oo).keydown),x(this,oo,null))},Ap=new WeakSet,my=function(){E(this,Fc,k0).call(this),x(this,ea,n(this,$e).eventManager.addGlobalEvent("keydown",n(this,gs).keydown,!0)),x(this,ta,n(this,$e).eventManager.addGlobalEvent("mousedown",n(this,gs).mousedown,!0))},Fc=new WeakSet,k0=function(){n(this,ea)&&x(this,ea,n(this,$e).eventManager.removeGlobalEvent(n(this,ea))),n(this,ta)&&x(this,ta,n(this,$e).eventManager.removeGlobalEvent(n(this,ta))),n(this,bs)&&x(this,bs,n(this,$e).eventManager.removeGlobalEvent(n(this,bs)))},Bp=new WeakSet,gy=function(e){if(n(this,$o))switch(e.code){case"ArrowUp":e.preventDefault(),e.stopPropagation(),E(this,En,Gh).call(this,-1);return;case"ArrowDown":e.preventDefault(),e.stopPropagation(),E(this,En,Gh).call(this,1);return;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),x(this,$o,!1),x(this,Ti,-1);{const o=n(this,Et).get(n(this,ft));o!=null&&o.element&&u.utils.removeClass(o.element.querySelectorAll(".se-select-item"),"se-select-cursor")}return;case"Enter":case"Space":n(this,Ti)>-1&&(e.preventDefault(),e.stopPropagation(),E(this,zc,v0).call(this,n(this,ft),n(this,Ti)));return}let t;switch(e.code){case"ArrowUp":if(e.preventDefault(),e.stopPropagation(),this.horizontal&&this.index>-1){const o=this.splitNum;t=this.index-o<0?o:-o}else t=-1;break;case"ArrowDown":if(e.preventDefault(),e.stopPropagation(),this.horizontal&&this.index>-1){const o=this.splitNum;t=this.index+o>this.menuLen?-o:o}else t=1;break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),t=-1;break;case"ArrowRight":if(e.preventDefault(),e.stopPropagation(),this.index>-1&&n(this,Et).has(this.index)){E(this,xn,Zh).call(this,this.index),x(this,$o,!0),E(this,En,Gh).call(this,1);return}t=1;break;case"Enter":case"Space":this.index>-1&&(e.preventDefault(),e.stopPropagation(),n(this,Et).has(this.index)?(E(this,xn,Zh).call(this,this.index),x(this,$o,!0),E(this,En,Gh).call(this,1)):E(this,Hc,w0).call(this,this.index));break}t&&(E(this,so,Xs).call(this),E(this,Mp,py).call(this,t))},Np=new WeakSet,by=function(e){if(ge.isGecko){const t=u.query.getEventTarget(e),o=u.query.getParentElement(t,".se-select-item");o&&n(this,$e).eventManager._injectActiveEvent(o)}},Lp=new WeakSet,vy=function(e){var d,h,p;const t=u.query.getEventTarget(e);u.utils.addClass(this.form,"se-select-menu-mouse-move");const o=(d=t.closest)==null?void 0:d.call(t,"[data-child-index]"),s=o==null?void 0:o.getAttribute("data-child-index");if(s!=null){x(this,Ti,Number(s));const f=n(this,Et).get(n(this,ft));if(f!=null&&f.element){const m=f.element.querySelectorAll(".se-select-item");u.utils.removeClass(m,"se-select-cursor"),u.utils.addClass(m[n(this,Ti)],"se-select-cursor")}return}const r=(h=t.closest)==null?void 0:h.call(t,"[data-index]"),l=r==null?void 0:r.getAttribute("data-index");if(!l)return;const c=Number(l);if(this.index=c,n(this,Et).has(c))n(this,vs)&&ls.clearTimeout(n(this,vs)),E(this,xn,Zh).call(this,c);else if(n(this,ft)>-1){const f=n(this,Et).get(n(this,ft));(p=f==null?void 0:f.element)!=null&&p.contains(t)||E(this,so,Xs).call(this)}},Ip=new WeakSet,yy=function(e){let t=u.query.getEventTarget(e),o=null,s=null;for(;!o&&!s&&!/UL/i.test(t.tagName)&&!u.utils.hasClass(t,"se-select-menu");)s=t.getAttribute("data-child-index"),s||(o=t.getAttribute("data-index")),t=t.parentElement;if(s!==null){let l=t,c=null;for(;!c&&l;)c=l.getAttribute("data-parent-index")||l.getAttribute("data-index"),l=l.parentElement;c!==null&&E(this,zc,v0).call(this,Number(c),Number(s));return}if(!o)return;const r=Number(o);if(n(this,Et).has(r)){n(this,ft)===r?E(this,so,Xs).call(this):E(this,xn,Zh).call(this,r);return}E(this,Hc,w0).call(this,r)},$p=new WeakSet,wy=function(e){var t;if(Me.isEsc(e.code)){if(n(this,ft)>-1){e.preventDefault(),e.stopPropagation();const o=n(this,ft);E(this,so,Xs).call(this),E(this,sa,Em).call(this,o);return}if((t=this.subEscMethod)!=null&&t.call(this)){e.preventDefault(),e.stopPropagation();return}this.close()}},Op=new WeakSet,Cy=function(e){var o;const t=u.query.getEventTarget(e);this.form.contains(t)||(o=n(this,$e).ui.opendControllers)!=null&&o.some(({form:s})=>{var r;return((r=s==null?void 0:s.contains)==null?void 0:r.call(s,t))&&!s.contains(n(this,Io))})||(n(this,Io).contains(t)?u.check.isInputElement(t)||x(this,bs,n(this,$e).eventManager.addGlobalEvent("click",n(this,gs).click,!0)):this.close())},Dp=new WeakSet,ky=function(e){x(this,bs,n(this,$e).eventManager.removeGlobalEvent(n(this,bs))),e.target===n(this,Io)&&(e.stopPropagation(),this.close())};const Xu=oB,{_w:sv}=ge;function sB(i,e){return!i||typeof i!="string"?"":i.charAt(0)==="<"?i:e[i]||""}function nB(i,e){return`<button type="button" class="se-cmd-row">${e?`<span class="se-block-menu-icon">${e}</span><span class="se-block-menu-label">${i}</span>`:`<span class="se-block-menu-label se-block-menu-label-full">${i}</span>`}</button>`}class rB{constructor(e,t,o){w(this,Uc);w(this,ca);w(this,Vp);w(this,Rp);w(this,qc);w(this,Oo);w(this,zp);w(this,je,void 0);w(this,Wc,void 0);w(this,ra,void 0);w(this,Tn,null);w(this,aa,void 0);w(this,Mn,new Map);w(this,ei,null);w(this,la,[]);w(this,ys,[]);jl(this,"selectMenu");var r;x(this,je,t),x(this,Wc,o.resolveButton),x(this,ra,Array.isArray(o.items)?o.items:[]),x(this,aa,typeof o.renderCustomItem=="function"?o.renderCustomItem:null);const s=(r=o.selectMenuParams)==null?void 0:r.closeMethod;this.selectMenu=new Xu(t,{...o.selectMenuParams,closeMethod:()=>{E(this,Oo,Tr).call(this),E(this,ca,Mm).call(this),s==null||s()},subEscMethod:()=>{if(!n(this,ei))return!1;const l=n(this,ei).anchorLi;E(this,Oo,Tr).call(this);const c=l?Number(l.getAttribute("data-index")):NaN;return Number.isNaN(c)||this.selectMenu.setItem(c),!0}})}attach(e,t,o={}){this.selectMenu.on(e,t,o),n(this,je).eventManager.addEvent(this.selectMenu.form,"mousedown",s=>{ge.isMobile?n(this,je).store.set("_preventBlur",!0):s.preventDefault()}),n(this,je).eventManager.addEvent(this.selectMenu.form,"mousemove",E(this,Rp,xy).bind(this))}setItems(e){x(this,ra,Array.isArray(e)?e:[]),x(this,Tn,null)}getItems(){var t,o;if(n(this,Tn))return n(this,Tn);const e=[];for(const s of n(this,ra))if(typeof s=="string"){const r=n(this,Wc).call(this,s,n(this,je).plugins,n(this,je).options,n(this,je).icons,n(this,je).lang);if(!r)continue;const l=r.type||"";if(/dropdown-free/.test(l)){e.push({kind:"dropdownFree",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+s).toLowerCase(),name:s,type:l});continue}if(/dropdown/.test(l)){const c=((o=(t=n(this,je).menu)==null?void 0:t.itemsMap)==null?void 0:o[s])||[];if(c.length>0){e.push({kind:"submenu",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+s).toLowerCase(),name:s,children:c.map(d=>({pluginName:s,element:d._element})),childMenus:c.map(d=>{var m,g;const h=((m=d._element)==null?void 0:m.querySelector(".se-list-icon"))||((g=d._element)==null?void 0:g.querySelector("svg")),p=h?h.outerHTML:"";return`<span class="se-block-submenu-item">${p?`${p}<span>${d.title}</span>`:d.title}</span>`})});continue}}e.push({kind:"plugin",title:r.title,iconHTML:r.icon||"",search:(r.title+" "+s).toLowerCase(),name:s,type:l,command:r.command})}else if(s&&typeof s=="object"&&typeof s.action=="function"){const r=s.title||s.key||"",l=Array.isArray(s.keywords)?s.keywords.join(" "):"";e.push({kind:"custom",title:r,iconHTML:sB(s.icon,n(this,je).icons),search:(r+" "+l).toLowerCase(),raw:s})}return x(this,Tn,e),e}filter(e,t=1/0){const o=this.getItems(),s=(e||"").toLowerCase().trim(),r=[];for(const l of o)if((!s||l.search.indexOf(s)!==-1)&&r.push(l),r.length>=t)break;return r}renderRows(e){const t={icons:n(this,je).icons},o=`<span class="se-submenu-arrow">${n(this,je).icons.menu_arrow_right}</span>`;return e.map(s=>{if(s.kind==="custom"&&n(this,aa))return n(this,aa).call(this,s.raw,t);const r=nB(s.title,s.iconHTML);return s.kind==="dropdownFree"?r+o:r})}createRows(e){E(this,ca,Mm).call(this);const t=e.map(o=>o.kind==="submenu"?{children:o.children,childMenus:o.childMenus}:o);this.selectMenu.create(t,this.renderRows(e)),n(this,Mn).clear(),n(this,la).length=0,e.forEach((o,s)=>{o.kind==="dropdownFree"&&n(this,Mn).set(s,{name:o.name,plugin:n(this,je).plugins[o.name],li:this.selectMenu.menus[s]}),(o.kind==="plugin"||o.kind==="dropdownFree")&&n(this,la).push({name:o.name,idx:s})}),this.selectMenu.isOpen&&E(this,Uc,_0).call(this)}open(e){this.selectMenu.open(e),n(this,ys).length===0&&E(this,Uc,_0).call(this)}close(){E(this,ca,Mm).call(this),this.selectMenu.close()}hasOpenSubPanel(){return this.selectMenu.hasOpenSubmenu()||!!n(this,ei)}setItem(e){this.selectMenu.setItem(e)}setHidden(e){this.selectMenu.setHidden(e)}get isOpen(){return this.selectMenu.isOpen}dispatch(e,t){var l,c,d,h,p,f;if(!e)return!1;const o=e;if(o.pluginName&&o.element){const m=n(this,je).plugins[o.pluginName];return(l=m==null?void 0:m.action)==null||l.call(m,o.element),n(this,je).history.push(!1),!0}const s=e;if(s.kind==="custom"){try{s.raw.action(n(this,je),t)}catch(m){console.error("[SUNEDITOR.commandMenu.customAction]",m)}return!1}if(s.kind==="dropdownFree"){const m=n(this,je).plugins[s.name];if(!m)return!1;if(((c=n(this,ei))==null?void 0:c.plugin)===m)return E(this,Oo,Tr).call(this),!1;const g=this.selectMenu.items.indexOf(s),v=g>=0?this.selectMenu.menus[g]:null;return v&&E(this,qc,x0).call(this,s.name,m,v),!1}const r=s.name?n(this,je).plugins[s.name]:null;if(r){const m=s.type||"";return/modal/.test(m)?(d=r.open)==null||d.call(r):/browser/.test(m)?(h=r.open)==null||h.call(r,null):/popup/.test(m)?(p=r.show)==null||p.call(r):(f=r.action)==null||f.call(r,u.utils.createElement("BUTTON",{type:"button","data-command":s.name})),n(this,je).history.push(!1),!0}return s.command&&n(this,je).commandDispatcher.run(s.command,null,null),!1}}je=new WeakMap,Wc=new WeakMap,ra=new WeakMap,Tn=new WeakMap,aa=new WeakMap,Mn=new WeakMap,ei=new WeakMap,la=new WeakMap,ys=new WeakMap,Uc=new WeakSet,_0=function(){const e=n(this,je).commandDispatcher;for(const{name:t,idx:o}of n(this,la)){const s=E(this,Vp,_y).call(this,o);s&&(e.registerTargets(t,s),n(this,ys).push({name:t,target:s}))}n(this,je).store.set("_lastSelectionNode",null),n(this,je).eventManager.applyTagEffect()},ca=new WeakSet,Mm=function(){if(n(this,ys).length===0)return;const e=n(this,je).commandDispatcher;for(const{name:t,target:o}of n(this,ys))e.unregisterTargets(t,o);n(this,ys).length=0},Vp=new WeakSet,_y=function(e){const t=this.selectMenu.menus[e];return t?t.querySelector("button.se-cmd-row")||t:null},Rp=new WeakSet,xy=function(e){var l,c,d,h;if(n(this,Mn).size===0)return;const t=e.target;if((c=(l=n(this,ei))==null?void 0:l.dropdown)!=null&&c.contains(t))return;const o=(d=t.closest)==null?void 0:d.call(t,"li[data-index]");if(!o)return;const s=Number(o.getAttribute("data-index")),r=n(this,Mn).get(s);r?((h=n(this,ei))==null?void 0:h.plugin)!==r.plugin&&E(this,qc,x0).call(this,r.name,r.plugin,r.li):n(this,ei)&&E(this,Oo,Tr).call(this)},qc=new WeakSet,x0=function(e,t,o){var c,d,h;n(this,ei)&&E(this,Oo,Tr).call(this);const s=(d=(c=n(this,je).menu)==null?void 0:c.targetMap)==null?void 0:d[e];if(!s||!this.selectMenu.form)return;const r=s.parentNode;this.selectMenu.form.appendChild(s),E(this,zp,Ey).call(this,s,o,this.selectMenu.form),u.utils.addClass(o,"se-submenu-open"),(h=t.on)==null||h.call(t,o);const l=n(this,je).menu.subscribeDropdownOff(()=>{E(this,Oo,Tr).call(this),this.selectMenu.close()});x(this,ei,{dropdown:s,plugin:t,originalParent:r,anchorLi:o,unsub:l})},Oo=new WeakSet,Tr=function(){var t,o,s;const e=n(this,ei);e&&(x(this,ei,null),(t=e.unsub)==null||t.call(e),e.dropdown.style.cssText="",e.dropdown.style.display="none",e.anchorLi&&u.utils.removeClass(e.anchorLi,"se-submenu-open"),e.originalParent&&e.originalParent!==e.dropdown.parentNode&&e.originalParent.appendChild(e.dropdown),(s=(o=e.plugin)==null?void 0:o.off)==null||s.call(o))},zp=new WeakSet,Ey=function(e,t,o){const s=t.getBoundingClientRect(),r=o.getBoundingClientRect(),l=!!n(this,je).options.get("_rtl");e.style.position="absolute",e.style.right="",e.style.visibility="hidden",e.style.display="block";const c=e.offsetWidth,d=e.offsetHeight,h=sv.innerWidth,p=sv.innerHeight,f=4,m=s.right+f,g=s.left-c-f,v=Math.max(0,m+c-h),b=Math.max(0,-g),y=l?"left":"right";let C;y==="right"?v===0?C=m:b===0?C=g:v<=b?C=m-v:C=g+b:b===0?C=g:v===0?C=m:b<=v?C=g+b:C=m-v,e.style.left=C-r.left+"px";const k=s.top,_=s.bottom-d,S=Math.max(0,k+d-p),T=Math.max(0,-_);let M;S===0?M=k:T===0?M=_:S<=T?M=k-S:M=_+T,e.style.top=M-r.top+"px",e.style.visibility=""};const aB=rB,{_w:Qu,_d:nv,NO_EVENT:lB}=ge;class cB{constructor(e,t,o){w(this,Zc,void 0);w(this,da,void 0);w(this,ha,void 0);w(this,Gc,null);w(this,ws,null);w(this,Sn,[]);x(this,Zc,o),x(this,da,e.frameContext),x(this,ha,t.frameOptions),this.events=t.options.get("events")||{},this.triggerEvent=async(s,r)=>{var c;if(u.check.isNonEditable((c=r==null?void 0:r.frameContext)==null?void 0:c.get("wysiwyg")))return!1;const l=this.events[s];if(typeof l=="function")try{return await l({$:n(this,Zc),...r})}catch(d){return console.error(`[SUNEDITOR.triggerEvent.${s}]`,d),!1}return lB}}_bindOrchestrator(e){x(this,Gc,e)}applyTagEffect(e){var t;return(t=n(this,Gc))==null?void 0:t.applyTagEffect(e)}addEvent(e,t,o,s){if(!e||((e===Qu||e===nv||typeof e.length!="number"||e.nodeType||!Array.isArray(e)&&e.length<1)&&(e=[e]),e.length===0))return null;const r=e.length;for(let l=0;l<r;l++)e[l].addEventListener(t,o,s),n(this,Sn).push({target:e[l],type:t,listener:o,useCapture:s});return{target:e,type:t,listener:o,useCapture:s}}removeEvent(e){if(!e)return;let t=e.target;const o=e.type,s=e.listener,r=e.useCapture;if(t&&((t===Qu||t===nv||typeof t.length!="number"||t.nodeType||!Array.isArray(t)&&t.length<1)&&(t=[t]),t.length!==0)){for(let l=0,c=t.length;l<c;l++)t[l].removeEventListener(o,s,r);return null}}addGlobalEvent(e,t,o){return n(this,ha).get("iframe")&&n(this,da).get("_ww").addEventListener(e,t,o),Qu.addEventListener(e,t,o),{type:e,listener:t,useCapture:o}}removeGlobalEvent(e,t,o){if(e)return typeof e=="object"&&(t=e.listener,o=e.useCapture,e=e.type),n(this,ha).get("iframe")&&n(this,da).get("_ww").removeEventListener(e,t,o),Qu.removeEventListener(e,t,o),null}_injectActiveEvent(e){u.utils.addClass(e,"__se__active"),x(this,ws,this.addGlobalEvent("mouseup",()=>{u.utils.removeClass(e,"__se__active"),x(this,ws,this.removeGlobalEvent(n(this,ws)))}))}_init(){for(let e=0,t=n(this,Sn).length,o;e<t;e++)o=n(this,Sn)[e],o.target.removeEventListener(o.type,o.listener,o.useCapture);x(this,Sn,null),n(this,ws)&&x(this,ws,this.removeGlobalEvent(n(this,ws)))}}Zc=new WeakMap,da=new WeakMap,ha=new WeakMap,Gc=new WeakMap,ws=new WeakMap,Sn=new WeakMap;const dB=cB;class hB{constructor(e){w(this,fa);w(this,Pp);w(this,Kc);w(this,Hp);w(this,jp);w(this,et,void 0);w(this,ui,void 0);w(this,Yc,void 0);w(this,ua,void 0);w(this,An,void 0);w(this,Xe,void 0);w(this,Di,void 0);w(this,pa,void 0);x(this,et,e.$),x(this,ui,e.store),x(this,Yc,n(this,et).contextProvider.shadowRoot),x(this,ua,n(this,et).contextProvider.carrierWrapper),x(this,An,n(this,et).context),x(this,Xe,n(this,et).frameContext),x(this,Di,n(this,et).options),x(this,pa,n(this,et).frameOptions)}get(e){const t=n(this,Xe).get("wysiwygFrame"),o=/iframe/i.test(t==null?void 0:t.nodeName),s=this.getLocal(e);return{left:s.left+(o?t.parentElement.offsetLeft:0),top:s.top+(o?t.parentElement.offsetTop:0)}}getLocal(e){const t=e;let o=0,s=0,r=0,l=0,c=0,d=t.nodeType===3?t.parentElement:t;const h=t.offsetWidth,p=Gu(t,ns.bind(this)),f=d;for(;d&&!Zu(d,"se-wrapper")&&d!==p;)o+=d.offsetLeft-(f!==d?d.scrollLeft:0),s+=d.offsetTop+(f!==d?d.scrollTop:0),d=d.offsetParent;const m=n(this,Xe).get("wysiwygFrame");n(this,Xe).get("wysiwyg").contains(t)&&(r=m.offsetLeft,l=m.offsetTop,c=m.parentElement.offsetWidth-(m.offsetLeft+m.offsetWidth));const g=n(this,Xe).get("eventWysiwyg");return o+=r-(p?p.scrollLeft:0),s+=l-(p?p.scrollTop:0),{left:o,top:s,right:d!=null&&d.offsetWidth?d.offsetWidth-(o-r+h)+c:0,scrollX:g.scrollLeft||g.scrollX||0,scrollY:g.scrollTop||g.scrollY||0,scrollH:n(this,Xe).get("wysiwyg").scrollHeight||0}}getGlobal(e){const t=n(this,Xe).get("topArea"),o=n(this,Xe).get("wysiwygFrame");if(e||(e=t),!ln(e))return{top:0,left:0,fixedTop:0,fixedLeft:0,width:0,height:0};const s=e,r=s.getBoundingClientRect();let l=r.top,c=r.left;if(/^iframe$/i.test(o.nodeName)&&o.contentDocument.contains(s)){const f=o.getBoundingClientRect();l+=f.top,c+=f.left}const h=pe.scrollY,p=pe.scrollX;return{top:l+h,left:c+p,fixedTop:l,fixedLeft:c,width:s.offsetWidth,height:s.offsetHeight}}getGlobalScroll(e){var A;const t=n(this,Xe).get("topArea");let o=!1,s=!1;e||(e=t),e===t&&(o=!0),!o&&ln(e)&&(s=pe.getComputedStyle(e).position==="absolute");const r=e;let l=0,c=0,d=0,h=0,p=0,f=0,m=0,g=0,v=null,b=null,y=null,C=null,k=r;for(;k;)l+=k.scrollTop,c+=k.scrollLeft,d+=k.scrollHeight,h+=k.scrollWidth,k.scrollTop>0&&(f+=k.offsetTop),k.scrollHeight>=k.clientHeight&&(m=/^html$/i.test(k.nodeName)?m||k.clientHeight:k.clientHeight+(y?-y.clientTop:0),v=y||v||k,y=k),k.scrollLeft>0&&(p+=k.offsetLeft),k.scrollWidth>=k.clientWidth&&(g=/^html$/i.test(k.nodeName)?g||k.clientWidth:k.clientWidth+(C?-C.clientLeft:0),b=C||b||k,C=k),k=k.parentElement;if(!s&&!o&&/^iframe$/i.test(n(this,Xe).get("wysiwygFrame").nodeName))for(k=n(this,Xe).get("wrapper"),v=b=t;k;)l+=k.scrollTop,c+=k.scrollLeft,d+=k.scrollHeight,h+=k.scrollWidth,k.scrollTop>0&&(f+=k.offsetTop),k.scrollHeight>=k.clientHeight&&(m=/^html$/i.test(k.nodeName)?m||k.clientHeight:k.clientHeight+(y?-y.clientTop:0),y=k),k.scrollLeft>0&&(p+=k.offsetLeft),k.scrollWidth>=k.clientWidth&&(g=/^html$/i.test(k.nodeName)?g||k.clientWidth:k.clientWidth+(C?-C.clientLeft:0),C=k),k=k.parentElement;for(k=(A=n(this,Yc))==null?void 0:A.host,k&&(v=b=t);k;)l+=k.scrollTop,c+=k.scrollLeft,d+=k.scrollHeight,h+=k.scrollWidth,k.scrollTop>0&&(f+=k.offsetTop),k.scrollHeight>=k.clientHeight&&(m=/^html$/i.test(k.nodeName)?m||k.clientHeight:k.clientHeight+(y?-y.clientTop:0),y=k),k.scrollLeft>0&&(p+=k.offsetLeft),k.scrollWidth>=k.clientWidth&&(g=/^html$/i.test(k.nodeName)?g||k.clientWidth:k.clientWidth+(C?-C.clientLeft:0),C=k),k=k.parentElement;const _=t.contains(v),S=t.contains(b);v=_?t:v,b=S?t:b;const T=v?v.getBoundingClientRect().top+(!v.parentElement||/^html$/i.test(v.parentElement.nodeName)?pe.scrollY:0):0,M=b?b.getBoundingClientRect().left+(!b.parentElement||/^html$/i.test(b.parentElement.nodeName)?pe.scrollX:0):0;m=_?t.clientHeight:m,g=S?t.clientWidth:g;const N=rs(n(this,Xe).get("_wd"));return{top:l,left:c,ts:T,ls:M,width:h,height:d,x:p,y:f,ohOffsetEl:s?window:v,owOffsetEl:s?window:b,oh:s?N.h:m,ow:s?N.w:g,heightEditorRefer:_,widthEditorRefer:S}}getWWScroll(){var s,r;const e=n(this,Xe).get("eventWysiwyg"),t=e.scrollTop||e.scrollY||0,o=e.scrollHeight||((s=e.document)==null?void 0:s.documentElement.scrollHeight)||0;return{top:t,left:e.scrollLeft||e.scrollX||0,width:e.scrollWidth||((r=e.document)==null?void 0:r.documentElement.scrollWidth)||0,height:o,bottom:t+o}}setRelPosition(e,t,o,s,{preferUp:r}={}){const l=/^fixed$/i.test(pe.getComputedStyle(s).position),c=this.getGlobal(o);if(l)e.style.position="fixed",r?e.style.top=`${c.fixedTop-e.offsetHeight}px`:e.style.top=`${c.fixedTop+c.height}px`;else{e.style.position="";const m=s.contains(e)?this.getGlobal(t).top:0,g=e.offsetHeight,v=pe.scrollY,b=c.top;if(r){const y=m-v+b;if(y<g){const C=rs(Le).h-(m-v+b+o.offsetHeight);C>=g?e.style.top=`${b+o.offsetHeight}px`:C>y?(e.style.height=`${C}px`,e.style.top=`${b+o.offsetHeight}px`):(e.style.height=`${y}px`,e.style.top=`${-1*(y-b+3)}px`)}else e.style.top=`${b-g}px`}else{const y=rs(Le).h-(m-v+b+o.offsetHeight);if(y<g){let C=-1*(g-b+3);const k=m-v+C,_=g+(k<0?k:0);_>y?(e.style.height=`${_}px`,C=-1*(_-b+3)):(e.style.height=`${y}px`,C=b+o.offsetHeight),e.style.top=`${C}px`}else e.style.top=`${b+o.offsetHeight}px`}}const d=e.offsetWidth,h=c.left,p=this.getGlobal(s).left;if(n(this,Di).get("_rtl")){const f=o.getBoundingClientRect(),m=pe.innerWidth;let g=m-f.right;if(d>0){const v=s.getBoundingClientRect();m-g-d<v.left&&(g=m-v.left-d)}e.style.left="auto",e.style.right=`${Math.max(0,g)}px`}else{const f=s.offsetWidth+p,m=f<=d?0:f-(h+d);e.style.right="",m<0?e.style.left=`${h+m}px`:e.style.left=`${h}px`}}setAbsPosition(e,t,o){var ct,Ne;const s={left:0,right:0,top:0,...o.addOffset},r=o.position||"bottom",l=o.inst,c=!n(this,Di).get("_rtl");c||(s.left*=-1);const d=n(this,pa).get("iframe"),h=n(this,Xe).get("wrapper").contains(t)||o.isWWTarget||(d?n(this,Xe).get("wysiwyg").contains(t):!1),p=!!Gu(t,".se-toolbar"),f=t.nodeType===1,m=h&&!f,g=f&&/inline/.test(pe.getComputedStyle(t).display),v=rs(Le),b=m?this.getWWScroll():E(this,jp,Sy).call(this),y=!h||!d&&f?t.getBoundingClientRect():n(this,et).selection.getRects(t,"start").rects,C=this.getGlobal(t),k=Zu(e.firstElementChild,"se-arrow")?e.firstElementChild:null,_=((ct=o.sibling)==null?void 0:ct.offsetHeight)||0,S=k?k.offsetHeight:0,T=e.offsetHeight,M=t.offsetHeight,N=y.top,A=v.h-y.bottom,B=this.getGlobal(n(this,Xe).get("topArea")).top,$=pe.scrollY,L=n(this,An).get("toolbar_main").offsetHeight,O=n(this,Di).get("toolbar_container"),D=n(this,ui).mode.isBalloon||n(this,ui).mode.isInline||O,I=O&&B-$-L>0||!n(this,et).toolbar.isSticky&&D?0:L+(n(this,et).toolbar.isSticky?n(this,Di).get("_toolbar_sticky"):0),R=((Ne=n(this,Xe).get("statusbar"))==null?void 0:Ne.offsetHeight)||0,{rmt:F,rmb:q,bMargin:H,rt:V}=E(this,Kc,E0).call(this,N,A,I,v,y,m,p);if(h&&(q-R+M<=0||F+V+M-(n(this,et).toolbar.isSticky&&g?I:0)<=0)||F+M<0)return;const Z=n(this,Xe).get("topArea").getBoundingClientRect(),j=n(this,ui).mode.isBottom?Z.bottom>=pe.innerHeight-L:Z.top<=L,Y=n(this,et).toolbar.isSticky&&n(this,An).get("toolbar_main").style.display!=="none"&&(!D||j);let ne=s.top,K=0,J="";r==="bottom"?(J="up",ne+=y.bottom+S+$,K=q-(T+S),K-_<0&&(J="down",ne-=M+T+S*2,K=F-(T+S),K-_<0&&(J="",ne-=K-_-Math.max(1,K+T+S)))):(J="down",ne+=y.top-T-S+$,K=(Y&&!n(this,ui).mode.isBottom?y.top-I:F)-T-S,K-_<0&&(J="up",ne+=M+T+S*2,K=(q>0?H:q)-(T+S)-R,K-_<0&&(J="",ne+=K-2))),E(this,Hp,My).call(this,k,J),e.style.top=`${ne}px`;const W=(e.nodeType===1?Q.get(pe.getComputedStyle(e).borderRadius):0)||0,ie=C.width,z=e.offsetWidth,X=k?k.offsetWidth:0,me=y.left,fe=v.w-y.right;if(h&&(me+ie<=0||fe+ie<=0))return;k&&(k.style.left="",k.style.right="");let He=s.left||(s.right?c?s.right-e.offsetWidth:e.offsetWidth-s.right:0),ue=0,Be=0,ke=0;return c?(He+=y.left+pe.scrollX-(me<0?me:0),ue=ie+me,ue<X&&(ke=X/2-1+(W<=2?0:W-2),Be=ke),ue=ie+fe-z,ue<0&&(He+=ue,ke=z-1-(X/2+(W<=2?0:W-2)),Be=-(ue-X/2),Be=Be>ke?ke:Be),k&&Be>0&&(k.style.left=Be+"px")):(He+=y.right-z+pe.scrollX+(fe<0?fe:0),ue=ie+fe,ue<X&&(ke=X/2-1+(W<=2?0:W-2),Be=ke),ue=ie+me-z,ue<0&&(He-=ue,ke=X/2-1+(W<=2?0:W-2),Be=-(ue-X/2),Be=Be<ke?ke:Be>z-ke?z-ke:Be),k&&Be>0&&(k.style.right=Be+"px")),e.style.left=`${He}px`,l.__offset={left:e.offsetLeft+b.left,top:e.offsetTop+b.top,addOffset:s},{position:J==="up"?"bottom":"top"}}setRangePosition(e,t,{position:o,addTop:s}={}){e.style.top="-10000px",e.style.visibility="hidden",e.style.display="block";let r=o==="top";t||(t=n(this,et).selection.getRange());const l=n(this,et).selection.getRects(t,r?"start":"end");if(r=l.position==="start",l.rects.noText){let L=t.startContainer;L.nodeType===1&&(L=L.childNodes[t.startOffset]||L);const O=L.parentNode;if(O){const D=Ob(wb);O.insertBefore(D,L);const I=Le.createRange();I.setStart(D,1),I.setEnd(D,1);const R=I.getClientRects()[0];R&&(l.rects=R,l.scrollLeft=pe.scrollX,l.scrollTop=pe.scrollY),O.removeChild(D)}}const c=n(this,Xe).get("isFullScreen"),d=n(this,Xe).get("topArea"),h=n(this,ua).contains(e),p=l.rects,f=c?0:l.scrollLeft,m=c?0:l.scrollTop,g=h?rs(Le).w:d.offsetWidth,v=this.getGlobal(d),b=h?0:v.left,y=e.offsetWidth,C=e.offsetHeight;E(this,fa,Sm).call(this,r,p,e,b,g,f,m,s),this.getGlobal(e).top-v.top<0&&(r=!r,E(this,fa,Sm).call(this,r,p,e,b,g,f,m,s)),(y!==e.offsetWidth||C!==e.offsetHeight)&&E(this,fa,Sm).call(this,r,p,e,b,g,f,m,s);const k=!n(this,ua).contains(e),_=rs(Le),S=p.height,T=p.top,M=_.h-p.bottom,N=!n(this,et).toolbar.isSticky&&(n(this,ui).mode.isBalloon||n(this,ui).mode.isInline)?0:n(this,An).get("toolbar_main").offsetHeight,{rmt:A,rmb:B,rt:$}=E(this,Kc,E0).call(this,T,M,N,_,p,k,!1);if(!(B+S<=0||A+$+S<=0))return e.style.visibility="",!0}}et=new WeakMap,ui=new WeakMap,Yc=new WeakMap,ua=new WeakMap,An=new WeakMap,Xe=new WeakMap,Di=new WeakMap,pa=new WeakMap,fa=new WeakSet,Sm=function(e,t,o,s,r,l,c,d=0){const p=o.querySelector(".se-arrow "),f=Math.round(p.offsetWidth/2),m=o.offsetWidth,g=t.noText&&!e?0:o.offsetHeight,v=(e?t.left:t.right)-s-m/2+l,b=v+m-r;let y=(e?t.top-g-f:t.bottom+f)-(t.noText?0:d)+c;const C=v<0?1:b<0?v:v-b-1-1;let k=!1;const _=y+(e?this.getGlobal(n(this,Xe).get("topArea")).top:o.offsetHeight-n(this,Xe).get("wysiwyg").offsetHeight);!e&&_>0&&E(this,Pp,Ty).call(this)<_?(e=!0,k=!0):e&&Le.documentElement.offsetTop>_&&(e=!1,k=!0),k&&(y=(e?t.top-g-f:t.bottom+f)-(t.noText?0:d)+c),o.style.left=Math.floor(C)+"px",o.style.top=Math.floor(y)+"px",e?(dn(p,"se-arrow-up"),cn(p,"se-arrow-down")):(dn(p,"se-arrow-down"),cn(p,"se-arrow-up"));const S=Math.floor(m/2+(v-C));p.style.left=(S+f>o.offsetWidth?o.offsetWidth-f:S<f?f:S)+"px"},Pp=new WeakSet,Ty=function(){const e=n(this,Xe).get("topArea");return Le.documentElement.scrollHeight-(this.getGlobal(e).top+e.offsetHeight)},Kc=new WeakSet,E0=function(e,t,o,s,r,l,c){const d=n(this,et).selection.getRects(n(this,Xe).get("wysiwyg"),"start").rects;let h=0,p=0,f=0,m=0,g=0;const v=n(this,pa).get("iframe");m=r.top,g=s.h-r.bottom;const b=this.getGlobal(),y=n(this,ui).mode.isBottom;if(l){f=!c&&!n(this,et).toolbar.isSticky&&!n(this,Di).get("toolbar_container")?o:0;const C=v?0:b.top-pe.scrollY+f,k=v?0:n(this,ui).get("currentViewportHeight")-(b.top+b.height-pe.scrollY);let _=C,S=k;y?(o>k?n(this,et).toolbar.isSticky?S=o:S=k+o:n(this,Di).get("toolbar_container")&&!n(this,et).toolbar.isSticky?o=0:S=k+o,h=r.top-(d.top-C),p=d.bottom-(r.bottom-S)+o,p=p>0?p:p-o):(o>C?n(this,et).toolbar.isSticky?_=o:_=C+o:n(this,Di).get("toolbar_container")&&!n(this,et).toolbar.isSticky?o=0:_=C+o,h=r.top-(d.top-_)+o,p=d.bottom-(r.bottom-k),h=h>0?h:h-o)}else{const C=b.fixedTop>0?b.fixedTop:0,k=pe.innerHeight-(b.fixedTop+b.height);f=!c&&(n(this,et).toolbar.isSticky||!n(this,et).toolbar.isBalloonMode)?o:0,y?(h=m-(c?0:C),p=g-(k>0?k:0)-f):(h=m-(c?0:C)-f,p=g-(k>0?k:0))}return{rmt:h,rmb:p,rt:f,tMargin:m,bMargin:g}},Hp=new WeakSet,My=function(e,t){t==="up"?(e&&(e.style.visibility=""),cn(e,"se-arrow-up"),dn(e,"se-arrow-down")):t==="down"?(e&&(e.style.visibility=""),cn(e,"se-arrow-down"),dn(e,"se-arrow-up")):e&&(e.style.visibility="hidden")},jp=new WeakSet,Sy=function(){const e=rs(Le);return{top:pe.scrollY,left:pe.scrollX,width:e.w,height:e.h,bottom:pe.scrollY+e.h,rects:{left:0,top:0,right:pe.innerWidth,bottom:n(this,ui).get("currentViewportHeight")||pe.innerHeight,noText:!0}}};const uB=hB,{_w:_t}=ge;class pB{constructor(e){w(this,Fp);w(this,ed);w(this,td);w(this,ba);w(this,Bn,void 0);w(this,Oe,void 0);w(this,At,void 0);w(this,ma,void 0);w(this,Nn,void 0);w(this,Xc,void 0);w(this,Ge,void 0);w(this,Do,void 0);w(this,ga,void 0);w(this,Qc,0);w(this,Jc,!1);x(this,Bn,e),x(this,Oe,e.$),x(this,At,e.store),x(this,ma,n(this,Oe).contextProvider.shadowRoot),x(this,Nn,n(this,Oe).instanceCheck),x(this,Xc,n(this,Oe).context),x(this,Ge,n(this,Oe).frameContext),x(this,Do,n(this,Oe).options),x(this,ga,n(this,Oe).frameOptions),this.range=null,this.selectionNode=null,this.__iframeFocus=!1}get(){var t;let e=null;return typeof((t=n(this,ma))==null?void 0:t.getSelection)=="function"?e=n(this,ma).getSelection():e=n(this,Ge).get("_ww").getSelection(),e?(!n(this,At).get("_range")&&!n(this,Ge).get("wysiwyg").contains(e.focusNode)&&(e.removeAllRanges(),e.addRange(E(this,ba,Am).call(this))),e):null}isRange(e){return n(this,Nn).isRange(e)}getRange(){const e=n(this,At).get("_range")||E(this,ba,Am).call(this),t=this.get();if(e.collapsed===t.isCollapsed||!n(this,Ge).get("wysiwyg").contains(t.focusNode)){if(n(this,Oe).component.is(e.startContainer)){const o=n(this,Oe).component.get(e.startContainer),s=o==null?void 0:o.container;return s?this.setRange(s,0,s,1):e}return e}if(t.rangeCount>0){const o=t.getRangeAt(0);return n(this,At).set("_range",o),o}else{const o=t.anchorNode,s=t.focusNode,r=t.anchorOffset,l=t.focusOffset,c=u.query.compareElements(o,s),d=c.ancestor&&(c.result===0?r<=l:c.result>1);return this.setRange(d?o:s,d?r:l,d?s:o,d?l:r)}}setRange(e,t,o,s){var f,m,g;let r,l,c,d;if(this.isRange(e)){const v=e;r=v.startContainer,l=v.startOffset,c=v.endContainer,d=v.endOffset}else r=e,l=t,c=o,d=s;if(!r||!c)return;(u.check.isBreak(r)||r.nodeType===3)&&l>r.textContent.length&&(l=r.textContent.length),(u.check.isBreak(c)||c.nodeType===3)&&d>c.textContent.length&&(d=c.textContent.length),n(this,Oe).format.isLine(r)&&(r=r.childNodes[l>0?r.childNodes.length-1:0]||r,l=l>0?r.nodeType===1&&!u.check.isBreak(r)?1:r.textContent?r.textContent.length:0:0),n(this,Oe).format.isLine(c)&&(c=c.childNodes[d>0?c.childNodes.length-1:0]||c,d=d>0?c.nodeType===1&&!u.check.isBreak(c)?1:c.textContent?c.textContent.length:0:0);const h=n(this,Ge).get("_wd").createRange();try{l=Math.min(l,((f=r.textContent)==null?void 0:f.length)||0),d=d>0&&(((m=c.textContent)==null?void 0:m.length)||0)===0&&c.nodeType===1?1:Math.min(Math.max(d,0),((g=c.textContent)==null?void 0:g.length)||0),h.setStart(r,l),h.setEnd(c,d),n(this,At).set("hasFocus",!0)}catch(v){console.warn("[SUNEDITOR.selection.focus.warn]",v.message),n(this,Oe).focusManager.nativeFocus();return}const p=this.get();return p.removeAllRanges&&p.removeAllRanges(),p.addRange(h),n(this,At).set("_range",h),E(this,ed,T0).call(this,h,this.get()),n(this,ga).get("iframe")&&this.__focus(),h}removeRange(){n(this,At).set("_range",null),n(this,At).set("_lastSelectionNode",null),this.selectionNode=null,n(this,At).get("hasFocus")&&this.get().removeAllRanges(),n(this,Bn)._eventOrchestrator.selectionState.reset()}getNearRange(e){const t=e.nextSibling,o=e.previousSibling;return t?{container:t,offset:0}:o?{container:o,offset:1}:null}getRangeAndAddLine(e,t){if(E(this,td,M0).call(this,e)){const o=(t==null?void 0:t.parentElement)||n(this,Ge).get("wysiwyg"),s=u.utils.createElement(n(this,Do).get("defaultLine"),null,"<br>");o.insertBefore(s,t&&t!==o?t.previousElementSibling?t.nextElementSibling:t:o.firstElementChild),this.setRange(s.firstElementChild,0,s.firstElementChild,1),e=n(this,At).get("_range")}return e}getNode(){if(n(this,Ge).get("wysiwyg").contains(this.selectionNode)||this.init(),!this.selectionNode){const e=u.query.getEdgeChild(n(this,Ge).get("wysiwyg").firstChild,t=>t.childNodes.length===0||t.nodeType===3,!1);if(!e)this.init();else return this.selectionNode=e,e}return this.selectionNode}getRects(e,t){const o=u.check.isElement(e)?_t.getComputedStyle(e).position==="absolute":!1;e=!e||u.check.isText(e)?this.getRange():e;let s=t==="start",r=_t.scrollX,l=_t.scrollY,c=e.getClientRects();if(c=c[s?0:c.length-1],!c){const h=this.getNode();if(n(this,Oe).format.isLine(h)){const p=u.utils.createTextNode(De.zeroWidthSpace);n(this,Oe).html.insertNode(p,{afterNode:null,skipCharCount:!0}),this.setRange(p,1,p,1),this.init(),c=this.getRange().getClientRects(),c=c[s?0:c.length-1]}if(!c){const p=n(this,Oe).offset.get(h);c={left:p.left,top:p.top,right:p.left+h.offsetWidth,bottom:p.top+h.offsetHeight,noText:!0},r=0,l=0}s=!0}const d=/^iframe$/i.test(n(this,Ge).get("wysiwygFrame").nodeName)?n(this,Ge).get("wysiwygFrame").getClientRects()[0]:null;return!o&&d&&(c={left:c.left+d.left,top:c.top+d.top,right:c.right+d.right-d.width,bottom:c.bottom+d.bottom-d.height}),{rects:c,position:s?"start":"end",scrollLeft:r,scrollTop:l}}getDragEventLocationRange(e){const t=n(this,Ge).get("_wd");let o,s,r,l,c;return t.caretPositionFromPoint?(o=t.caretPositionFromPoint(e.clientX,e.clientY),s=o.offsetNode,r=o.offset,l=o.offsetNode,c=o.offset):t.caretRangeFromPoint&&(o=t.caretRangeFromPoint(e.clientX,e.clientY),s=o.startContainer,r=o.startOffset,l=o.endContainer,c=o.endOffset),{sc:s,so:r,ec:l,eo:c}}scrollTo(e,t){var M,N,A,B;const o=t==null?void 0:t.noFocus;if(n(this,Nn).isSelection(e))e=e.getRangeAt(0);else if(n(this,Nn).isNode(e))if(o){const $=n(this,Ge).get("_wd").createRange();$.selectNodeContents(e),e=$}else e=this.setRange(e,1,e,1);else typeof(e==null?void 0:e.startContainer)>"u"&&console.warn('[SUNEDITOR.html.scrollTo.warn] "selectionRange" must be Selection or Range or Node object.',e);const s=u.query.getParentElement(e==null?void 0:e.startContainer,$=>$.nodeType===1);if(!s)return;t={behavior:"smooth",block:"nearest",inline:"nearest",...t},delete t.noFocus;const r=n(this,Ge).get("_ww"),l=n(this,Ge).get("wysiwygFrame"),c=n(this,ga).get("iframe"),d=!n(this,At).get("isScrollable")(n(this,Ge)),h=n(this,At).get("currentViewportHeight"),p=d?_t.scrollY:c?r.scrollY:l.scrollTop,f=n(this,At).mode.isBottom,m=n(this,Xc).get("toolbar_main").offsetHeight,g=n(this,Oe).toolbar.isSticky?m:0,v=n(this,Oe).toolbar.isSticky?g+n(this,Do).get("_toolbar_sticky"):g,b=((M=n(this,Ge).get("statusbar"))==null?void 0:M.offsetHeight)||0;if(n(this,Jc)){const $=n(this,Oe).format.isBrLine(s)?(N=e==null?void 0:e.getBoundingClientRect)==null?void 0:N.call(e):null;if(($==null?void 0:$.height)>0?E(this,Fp,Ay).call(this,$,t.behavior):s==null||s.scrollIntoView(t),(t==null?void 0:t.behavior)==="auto")if(v&&!f){const L=(A=e==null?void 0:e.getBoundingClientRect)==null?void 0:A.call(e);(L==null?void 0:L.height)>0&&L.top>=0&&L.top<v&&_t.scrollBy(0,-(v-L.top))}else p!==_t.scrollY&&(v?p<_t.scrollY&&_t.scrollBy(0,v):d&&_t.scrollBy(0,b));return}const y=n(this,Qc),C=d?h-(f?v:0):l.offsetHeight,k=(B=e==null?void 0:e.getBoundingClientRect)==null?void 0:B.call(e),_=((k==null?void 0:k.height)>0?k.height:s.offsetHeight)||0,S=t==null?void 0:t.behavior,T=f?0:v;if(d)if(c){const $=this.getRects(e,"end").rects,L=$.top+_-T,O=C-y-($.top+_);if(L>=0&&O>=0)return;const D=p-(L<0?-(L-y):O),I=T>0&&L<0;_t.scrollTo({top:I?D-T:D,behavior:S})}else{const $=(k==null?void 0:k.height)>0?k.top+p:n(this,Oe).offset.getGlobal(s).top,L=C+p-$-_,O=$-p,D=T>0?O>=T:C>L+y;if(L-y>0&&D)return;const I=L<=y?p-L+y+b:p-L+(C-_-y),R=T>0&&!D;_t.scrollTo({top:R?I-T:I,behavior:S})}else{const L=(k==null?void 0:k.height)>0?k.top:s.getBoundingClientRect().top,O=c?L:L-l.getBoundingClientRect().top,I=O>=(f?0:g)&&O+y<=C,R=f?O-y>0?O+y-C+g:O-_:O-y>0?O+y-C:O-(g+_);let F=p+R;const q=_t.scrollY,H=n(this,Oe).offset.getGlobal(),V=f?0:m,Z=f?m:0,j=q-H.top+V,Y=H.top+H.height-(q+h)+Z;if(j>0){const ne=(I?O:O+p-F)-_-y-j;ne<0&&(F+=V,_t.scrollTo({top:q+ne,behavior:"smooth"}))}if(Y>0){const ne=(I?O:O+p-F)+_+y-(H.height-Y);ne>0&&(F+=f?Z:b,_t.scrollTo({top:q+ne,behavior:"smooth"}))}I||(c?r:l).scrollTo({top:F,behavior:S})}}resetRangeToTextNode(){let e=this.getRange();if(E(this,td,M0).call(this,e)){if(!u.check.isWysiwygFrame(e.startContainer)||!u.check.isWysiwygFrame(e.endContainer))return!1;const f=e.commonAncestorContainer,m=f.children[e.startOffset],g=f.children[e.endOffset];if(!(e=this.setRange(m,0,g,m===g?0:1)))return!1}const t=e,o=t.collapsed;let s=t.startContainer,r=t.startOffset,l=t.endContainer,c=t.endOffset,d,h,p;if(n(this,Oe).format.isLine(s))for(s.childNodes[r]?(s=s.childNodes[r]||s,r=0):(s=s.lastChild||s,r=s.textContent.length);(s==null?void 0:s.nodeType)===1&&s.firstChild;)s=s.firstChild||s,r=0;if(n(this,Oe).format.isLine(l)){for(l=l.childNodes[c]||l.lastChild||l;(l==null?void 0:l.nodeType)===1&&l.lastChild;)l=l.lastChild;o?c=0:c>0&&(c=l.textContent.length)}if(d=u.check.isWysiwygFrame(s)?n(this,Ge).get("wysiwyg").firstChild:s,h=r,u.check.isBreak(d)||d.nodeType===1&&d.childNodes.length>0){const f=u.check.isBreak(d);if(!f){const m=d;for(;d&&!u.check.isBreak(d)&&d.nodeType===1&&(p=d.childNodes,p.length!==0);)d=p[h>0?h-1:h]||!/FIGURE/i.test(p[0].nodeName)?p[0]:d.previousElementSibling||d.previousSibling||s,h=h>0?d.textContent.length:h;let g=n(this,Oe).format.getLine(d,null);g===n(this,Oe).format.getBlock(g,null)&&(d||(d=m),g=u.utils.createElement(u.query.getParentElement(d,u.check.isTableCell)?"DIV":n(this,Do).get("defaultLine")),d.parentNode.insertBefore(g,d),d!==m&&g.appendChild(d))}if(u.check.isBreak(d)||n(this,Oe).component.is(d)){const m=u.utils.createTextNode(De.zeroWidthSpace);d.parentNode.insertBefore(m,d),d=m,f&&s===l&&(l=d,c=1)}}if(s=d,r=h,d=u.check.isWysiwygFrame(l)?n(this,Ge).get("wysiwyg").lastChild:l,h=c,u.check.isBreak(d)||d.nodeType===1&&d.childNodes.length>0){const f=u.check.isBreak(d);if(!f){for(;d&&!u.check.isBreak(d)&&d.nodeType===1&&(p=d.childNodes,p.length!==0);)d=p[h>0?h-1:h]||!/FIGURE/i.test(p[0].nodeName)?p[0]:d.previousElementSibling||d.previousSibling||s,h=h>0?d.textContent.length:h;let m=n(this,Oe).format.getLine(d,null);m===n(this,Oe).format.getBlock(m,null)&&(m=u.utils.createElement(u.check.isTableCell(m)?"DIV":n(this,Do).get("defaultLine")),d.parentNode.insertBefore(m,d),m.appendChild(d))}if(u.check.isBreak(d)){const m=u.utils.createTextNode(De.zeroWidthSpace);d.parentNode.insertBefore(m,d),d=m,h=1,f&&!d.previousSibling&&u.utils.removeItem(l)}}return l=d,c=h,this.setRange(s,r,l,c),!0}init(){const e=n(this,Ge).get("_wd").activeElement;if(u.check.isInputElement(e))return this.selectionNode=e,e;const t=this.get();if(!t)return null;let o=null;t.rangeCount>0?o=t.getRangeAt(0):o=E(this,ba,Am).call(this),E(this,ed,T0).call(this,o,t)}__focus(){try{this.__iframeFocus=!0;const e=u.query.getParentElement(this.getNode(),"figcaption");e?e.focus():n(this,Ge).get("wysiwyg").focus()}finally{_t.setTimeout(()=>this.__iframeFocus=!1,0)}}__init(){var e,t;x(this,Jc,((e=n(this,Bn)._eventOrchestrator.scrollparents)==null?void 0:e.length)>0),x(this,Qc,(t=n(this,Ge))!=null&&t.get("wysiwyg")?(Q.get(_t.getComputedStyle(n(this,Ge).get("wysiwyg")).scrollMargin,0)||40)+Q.get(_t.getComputedStyle(n(this,Ge).get("wrapper")).paddingBottom,0):40)}}Bn=new WeakMap,Oe=new WeakMap,At=new WeakMap,ma=new WeakMap,Nn=new WeakMap,Xc=new WeakMap,Ge=new WeakMap,Do=new WeakMap,ga=new WeakMap,Qc=new WeakMap,Jc=new WeakMap,Fp=new WeakSet,Ay=function(e,t){let{top:o,bottom:s}=e;const r=[...n(this,Bn)._eventOrchestrator.scrollparents||[],_t];for(const l of r){const c=l===_t,d=c?0:l.getBoundingClientRect().top,h=c?n(this,At).get("currentViewportHeight"):l.getBoundingClientRect().bottom;let p=0;o<d?p=o-d:s>h&&(p=s-h),p!==0&&(l.scrollBy({top:p,behavior:t}),o-=p,s-=p)}},ed=new WeakSet,T0=function(e,t){let o=null;n(this,At).set("_range",e),e.collapsed?u.check.isWysiwygFrame(e.commonAncestorContainer)?o=e.commonAncestorContainer.children[e.startOffset]||e.commonAncestorContainer:o=e.commonAncestorContainer:o=t.anchorNode,this.selectionNode=o},td=new WeakSet,M0=function(e){var o;const t=e.commonAncestorContainer;return u.check.isWysiwygFrame(e.startContainer)&&u.check.isWysiwygFrame(e.endContainer)||/FIGURE/i.test(t.nodeName)||n(this,Oe).pluginManager.fileInfo.regExp.test(t.nodeName)&&(!n(this,Oe).pluginManager.fileInfo.tagAttrs[t.nodeName]||((o=n(this,Oe).pluginManager.fileInfo.tagAttrs[t.nodeName])==null?void 0:o.every(s=>t.hasAttribute(s))))||n(this,Oe).component.is(t)},ba=new WeakSet,Am=function(){const e=n(this,Ge).get("wysiwyg"),t=n(this,Ge).get("_wd").createRange();let o=e.firstElementChild,s=null;return o?(s=o.firstChild,s||(s=u.utils.createElement("BR"),o.appendChild(s))):(s=u.utils.createElement("BR"),o=u.utils.createElement(n(this,Do).get("defaultLine"),null,s),e.appendChild(o)),t.setStart(s,0),t.setEnd(s,0),t};const fB=pB;class mB{constructor(e){w(this,Cs);w(this,id);w(this,he,void 0);w(this,no,void 0);w(this,Bt,void 0);w(this,Ln,void 0);w(this,va,void 0);w(this,ya,void 0);w(this,wa,void 0);w(this,Ca,void 0);w(this,ka,void 0);w(this,_a,void 0);w(this,xa,null);x(this,he,e.$),x(this,no,e.store),x(this,Bt,n(this,he).options),x(this,Ln,n(this,he).frameContext),x(this,va,n(this,Bt).get("formatLine").reg),x(this,ya,n(this,Bt).get("formatBrLine").reg),x(this,wa,n(this,Bt).get("formatBlock").reg),x(this,Ca,n(this,Bt).get("formatClosureBlock").reg),x(this,ka,n(this,Bt).get("formatClosureBrLine").reg),x(this,_a,new RegExp("^("+n(this,Bt).get("textStyleTags")+")$","i")),this.__resetBrLineBreak(n(this,Bt).get("defaultLineBreakFormat"))}setLine(e){if(!this.isLine(e))throw new Error('[SUNEDITOR.format.setLine.fail] The "element" must satisfy "format.isLine()".');const t=E(this,id,S0).call(this),o=t.lines,s=e.className,r=e.nodeName;let l=t.firstNode,c=t.lastNode;for(let d=0,h=o.length,p,f;d<h;d++)p=o[d],(p.nodeName!==r||(p.className.match(/(\s|^)__se__format__[^\s]+/)||[""])[0].trim()!==s)&&!n(this,he).component.is(p)&&(f=e.cloneNode(!1),u.utils.copyFormatAttributes(f,p),f.innerHTML=p.innerHTML,p.parentNode.replaceChild(f,p)),d===0&&(l=f||p),d===h-1&&(c=f||p),f=null;n(this,he).selection.setRange(u.query.getNodeFromPath(t.firstPath,l),t.startOffset,u.query.getNodeFromPath(t.lastPath,c),t.endOffset),n(this,he).history.push(!1),n(this,Ln).has("documentType_use_header")&&n(this,Ln).get("documentType").reHeader()}getLine(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(u.check.isWysiwygFrame(e))return null;if(this.isBlock(e)){if(this.isLine(e.firstElementChild))return e.firstElementChild;if(this.isLine(e))return e}if(this.isLine(e)&&t(e))return e;e=e.parentNode}return null}setBrLine(e){if(!this.isBrLine(e))throw new Error('[SUNEDITOR.format.setBrLine.fail] The "element" must satisfy "format.isBrLine()".');const t=E(this,id,S0).call(this).lines,o=t.length-1;let s=t[o].parentNode,r=e.cloneNode(!1);const l=r;for(let c=o,d,h,p,f,m,g,v=!0;c>=0;c--)if(d=t[c],d!==(t[c+1]?t[c+1].parentNode:null)){if(g=n(this,he).component.is(d),h=g?"":d.innerHTML.replace(/(?!>)\s+(?=<)|\n/g," "),p=u.query.getParentElement(d,b=>b.parentNode===s),(s!==d.parentNode||g)&&(this.isLine(s)?(s.parentNode.insertBefore(r,s.nextSibling),s=s.parentNode):(s.insertBefore(r,p?p.nextSibling:null),s=d.parentNode),f=r.nextSibling,f&&r.nodeName===f.nodeName&&u.check.isSameAttributes(r,f)&&(r.innerHTML+="<BR>"+f.innerHTML,u.utils.removeItem(f)),r=e.cloneNode(!1),v=!0),m=r.innerHTML,r.innerHTML=(v||!h||!m||/<br>$/i.test(h)?h:h+"<BR>")+m,c===0){s.insertBefore(r,d),f=d.nextSibling,f&&r.nodeName===f.nodeName&&u.check.isSameAttributes(r,f)&&(r.innerHTML+="<BR>"+f.innerHTML,u.utils.removeItem(f));const b=r.previousSibling;b&&r.nodeName===b.nodeName&&u.check.isSameAttributes(r,b)&&(b.innerHTML+="<BR>"+r.innerHTML,u.utils.removeItem(r))}g||u.utils.removeItem(d),h&&(v=!1)}n(this,he).selection.setRange(l,0,l,0),n(this,he).history.push(!1)}getBrLine(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(u.check.isWysiwygFrame(e))return null;if(this.isBrLine(e)&&t(e))return e;e=e.parentNode}return null}addLine(e,t){if(!e||!e.parentNode)return null;const o=this.getLine(n(this,he).selection.getNode(),null);let s=null;if(!this.isBrLine(e)&&this.isBrLine(o||e.parentNode)&&!n(this,he).component.is(e))s=u.utils.createElement("BR");else{const r=t?typeof t=="string"?t:t.nodeName:this.isNormalLine(o)?o.nodeName:n(this,Bt).get("defaultLine");s=u.utils.createElement(r,null,"<br>"),(t&&typeof t!="string"||!t&&this.isLine(o))&&u.utils.copyTagAttributes(s,t||o,["id"])}return u.check.isTableCell(e)?e.insertBefore(s,e.nextElementSibling):e.parentNode.insertBefore(s,e.nextElementSibling),s}addLineAfter(e){if(!e||!e.parentNode)return null;const t=e.nodeName,o=n(this,Bt).get("lineAttrReset");let s;return/^H[1-6]$|^HR$/i.test(t)?s=u.utils.createElement(n(this,Bt).get("defaultLine"),null,"<br>"):this.isBrLine(e)?s=u.utils.createElement(n(this,Bt).get("defaultLine"),null,"<br>"):(s=u.utils.createElement(t,null,"<br>"),u.utils.copyTagAttributes(s,e,o)),u.check.isTableCell(e)?e.insertBefore(s,e.nextElementSibling):e.parentNode.insertBefore(s,e.nextElementSibling),s}getBlock(e,t){if(!e)return null;for(t||(t=()=>!0);e;){if(u.check.isWysiwygFrame(e))return null;if(this.isBlock(e)&&!/^(THEAD|TBODY|TR)$/i.test(e.nodeName)&&t(e))return e;e=e.parentNode}return null}applyBlock(e){n(this,he).selection.getRangeAndAddLine(n(this,he).selection.getRange(),null);const t=this.getLinesAndComponents(!1);if(!t||t.length===0)return;e:for(let g=0,v=t.length,b,y,C,k,_,S;g<v;g++)if(b=t[g],!!u.check.isListCell(b)&&(y=b.lastElementChild,y&&u.check.isListCell(b.nextElementSibling)&&t.includes(b.nextElementSibling)&&(k=y.lastElementChild,t.includes(k)))){let T=null;for(;T=k.lastElementChild;)if(u.check.isList(T))if(t.includes(T.lastElementChild))k=T.lastElementChild;else continue e;C=y.firstElementChild,_=t.indexOf(C),S=t.indexOf(k),t.splice(_,S-_+1),v=t.length;continue}const o=t.at(-1);let s,r,l;this.isBlock(o)||this.isLine(o)?s=o:s=this.getBlock(o,null)||this.getLine(o,null),u.check.isTableCell(s)?(r=null,l=s):(r=s.nextSibling,l=s.parentNode);const c=e.cloneNode(!1);let d=u.query.getNodeDepth(s),h=null;const p=[],f=(g,v,b)=>{let y=null;if(g!==v&&!u.check.isTableElements(v)){if(v&&u.query.getNodeDepth(g)===u.query.getNodeDepth(v))return b;y=n(this,he).nodeTransform.removeAllParents(v,null,g)}return y?y.ec:b};for(let g=0,v=t.length,b,y,C,k,_,S,T;g<v;g++)if(b=t[g],y=b.parentNode,!(!y||c.contains(y)))if(C=u.query.getNodeDepth(b),u.check.isList(y)){if(h===null&&(S?(h=S,T=!0,S=null):h=y.cloneNode(!1)),p.push(b),_=t[g+1],g===v-1||(_==null?void 0:_.parentNode)!==y){b.contains(_==null?void 0:_.parentNode)&&(S=_.parentNode.cloneNode(!1));let M=y.parentNode,N;for(;u.check.isList(M);)N=u.utils.createElement(M.nodeName),N.appendChild(h),h=N,M=M.parentNode;const A=this.removeBlock(y,{selectedFormats:p,newBlockElement:null,shouldDelete:!0,skipHistory:!0});d>=C?(d=C,l=A.cc,r=f(l,y,A.ec),r&&(l=r.parentNode)):l===A.cc&&(r=A.ec),l!==A.cc&&(k=f(l,A.cc,k),k!==void 0?r=k:r=A.cc);for(let B=0,$=A.removeArray.length;B<$;B++)h.appendChild(A.removeArray[B]);T||c.appendChild(h),S&&A.removeArray.at(-1).appendChild(S),h=null,T=!1}}else d>=C&&(d=C,l=y,r=b.nextSibling),c.appendChild(b),l!==y&&(k=f(l,y),k!==void 0&&(r=k));if(n(this,no).set("_lastSelectionNode",null),n(this,he).nodeTransform.mergeSameTags(c,null,!1),n(this,he).nodeTransform.mergeNestedTags(c,g=>u.check.isList(g)),r&&u.query.getNodeDepth(r)>0&&(u.check.isList(r.parentNode)||u.check.isList(r.parentNode.parentNode))){const g=u.query.getParentElement(r,b=>this.isBlock(b)&&!u.check.isList(b)),v=n(this,he).nodeTransform.split(r,null,g?u.query.getNodeDepth(g)+1:0);v.parentNode.insertBefore(c,v)}else l.insertBefore(c,r),f(c,r);const m=u.query.getEdgeChildNodes(c.firstElementChild,c.lastElementChild);t.length>1?n(this,he).selection.setRange(m.sc,0,m.ec,m.ec.textContent.length):n(this,he).selection.setRange(m.ec,m.ec.textContent.length,m.ec,m.ec.textContent.length),n(this,he).history.push(!1)}removeBlock(e,{selectedFormats:t,newBlockElement:o,shouldDelete:s,skipHistory:r}={}){const l=n(this,he).selection.getRange();let c=l.startOffset,d=l.endOffset,h=u.query.getListChildNodes(e,null,1),p=e.parentNode,f=null,m=null,g=e.cloneNode(!1);const v=[],b=u.check.isList(o);let y=!1,C=!1,k=!1;const _=(N,A,B,$)=>{if(A.childNodes.length===1&&u.check.isZeroWidth(A)&&(A.innerHTML=De.zeroWidthSpace,c=d=1),A.nodeType===3)return N.insertBefore(A,B),A;const L=(k?A:$).childNodes;let O=A.cloneNode(!1),D=null,I=null;for(;L[0];)I=L[0],this._isNotTextNode(I)&&!u.check.isBreak(I)&&!u.check.isListCell(O)?(O.childNodes.length>0&&(D||(D=O),N.insertBefore(O,B),O=A.cloneNode(!1)),N.insertBefore(I,B),D||(D=I)):O.appendChild(I);if(O.childNodes.length>0){if(u.check.isListCell(N)&&u.check.isListCell(O)&&u.check.isList(B))if(b){for(D=B;B;)O.appendChild(B),B=B.nextSibling;N.parentNode.insertBefore(O,N.nextElementSibling)}else{const R=$.nextElementSibling,F=n(this,he).listFormat.removeNested($,!1);if(e!==F||R!==$.nextElementSibling){const q=O.childNodes;for(;q[0];)$.appendChild(q[0]);e=F,C=!0}}else N.insertBefore(O,B);D||(D=O)}return D};for(let N=0,A=h.length,B,$,L;N<A;N++)if(B=h[N],!(B.nodeType===3&&u.check.isList(g)))if(k=!1,s&&N===0&&(!t||t.length===A||t[0]===B?f=e.previousSibling:f=g),t&&($=t.indexOf(B)),t&&$===-1)g||(g=e.cloneNode(!1)),g.appendChild(B);else{if(t&&(L=t[$+1]),g&&g.children.length>0&&(p.insertBefore(g,e),g=null),!b&&u.check.isListCell(B))if(L&&u.query.getNodeDepth(B)!==u.query.getNodeDepth(L)&&(u.check.isListCell(p)||u.utils.arrayFind(B.children,u.check.isList))){const O=B.nextElementSibling,D=n(this,he).listFormat.removeNested(B,!1);(e!==D||O!==B.nextElementSibling)&&(e=D,C=!0)}else{const O=B;B=u.utils.createElement(s?O.nodeName:u.check.isList(e.parentNode)||u.check.isListCell(e.parentNode)?"LI":u.check.isTableCell(e.parentNode)?"DIV":n(this,Bt).get("defaultLine"));const D=u.check.isListCell(B),I=O.childNodes;for(;I[0]&&!(u.check.isList(I[0])&&!D);)B.appendChild(I[0]);u.utils.copyFormatAttributes(B,O),k=!0}else B=B.cloneNode(!1);if(!C&&(s?(v.push(B),u.utils.removeItem(h[N])):(o?(y||(p.insertBefore(o,e),y=!0),B=_(o,B,null,h[N])):B=_(p,B,e,h[N]),C||(t?(m=B,f||(f=B)):f||(f=m=B))),C)){C=k=!1,h=u.query.getListChildNodes(e,null,1),g=e.cloneNode(!1),p=e.parentNode,N=-1,A=h.length;continue}}const S=e.parentNode;let T=e.nextSibling;(g==null?void 0:g.children.length)>0&&S.insertBefore(g,T),o?f=o.previousSibling:f||(f=e.previousSibling),T=e.nextSibling!==g?e.nextSibling:g?g.nextSibling:null,e.children.length===0||e.textContent.length===0?u.utils.removeItem(e):n(this,he).nodeTransform.removeEmptyNode(e,null,!1);let M=null;if(n(this,no).set("_lastSelectionNode",null),s)M={cc:S,sc:f,so:c,ec:T,eo:d,removeArray:v};else{f||(f=m),m||(m=f);const N=u.query.getEdgeChildNodes(f,m!=null&&m.parentNode?f:m);N?M={cc:(N.sc||N.ec).parentNode,sc:N.sc,so:c,ec:N.ec,eo:d,removeArray:null}:n(this,he).focusManager.focus()}if(r)return M;!s&&M&&(t?n(this,he).selection.setRange(M.sc,c,M.ec,d):n(this,he).selection.setRange(M.sc,0,M.sc,0)),n(this,he).history.push(!1)}indent(){const e=n(this,he).selection.getRange(),t=e.startContainer,o=e.endContainer,s=e.startOffset,r=e.endOffset,l=this.getLines(null),c=rv(l,n(this,no).get("indentSize"),n(this,Bt).get("_rtl")?"marginRight":"marginLeft");c.length>0&&n(this,he).listFormat.applyNested(c,!1),n(this,no).set("_lastSelectionNode",null),n(this,he).selection.setRange(t,s,o,r),n(this,he).history.push(!1)}outdent(){const e=n(this,he).selection.getRange(),t=e.startContainer,o=e.endContainer,s=e.startOffset,r=e.endOffset,l=this.getLines(null),c=rv(l,n(this,no).get("indentSize")*-1,n(this,Bt).get("_rtl")?"marginRight":"marginLeft");c.length>0&&n(this,he).listFormat.applyNested(c,!0),n(this,no).set("_lastSelectionNode",null),n(this,he).selection.setRange(t,s,o,r),n(this,he).history.push(!1)}isEdgeLine(e,t,o){var l;if(o==="front"){if(t>0)return!1}else if(((l=e==null?void 0:e.textContent)==null?void 0:l.length)>t)return!1;let s=!1;const r=o==="front"?"previousSibling":"nextSibling";for(;e&&!this.isLine(e)&&!u.check.isWysiwygFrame(e);)if(!e[r]||u.check.isBreak(e[r])&&!e[r][r])s=!0,e=e.parentNode;else return!1;return s}isTextStyleNode(e){return typeof e=="string"?n(this,_a).test(e):(e==null?void 0:e.nodeType)===1&&n(this,_a).test(e.nodeName)}isLine(e){return typeof e=="string"?n(this,va).test(e):(e==null?void 0:e.nodeType)===1&&(n(this,va).test(e.nodeName)||u.utils.hasClass(e,"__se__format__line_.+|__se__format__br_line_.+"))&&!E(this,Cs,Fl).call(this,e)}isNormalLine(e){return this.isLine(e)&&(n(this,xa)||!this.isBrLine(e))&&!this.isBlock(e)}isBrLine(e){return n(this,xa)&&this.isLine(e)||(typeof e=="string"?n(this,ya).test(e):(e==null?void 0:e.nodeType)===1&&(n(this,ya).test(e.nodeName)||u.utils.hasClass(e,"__se__format__br_line_.+"))&&!E(this,Cs,Fl).call(this,e))}isBlock(e){return typeof e=="string"?n(this,wa).test(e):(e==null?void 0:e.nodeType)===1&&(n(this,wa).test(e.nodeName)||u.utils.hasClass(e,"__se__format__block_.+"))&&!E(this,Cs,Fl).call(this,e)}isClosureBlock(e){return typeof e=="string"?n(this,Ca).test(e):(e==null?void 0:e.nodeType)===1&&(n(this,Ca).test(e.nodeName)||u.utils.hasClass(e,"__se__format__block_closure_.+"))&&!E(this,Cs,Fl).call(this,e)}isClosureBrLine(e){return typeof e=="string"?n(this,ka).test(e):(e==null?void 0:e.nodeType)===1&&(n(this,ka).test(e.nodeName)||u.utils.hasClass(e,"__se__format__br_line__closure_.+"))&&!E(this,Cs,Fl).call(this,e)}getLines(e){if(!n(this,he).selection.resetRangeToTextNode())return[];let t=n(this,he).selection.getRange();if(u.check.isWysiwygFrame(t.startContainer)){const b=n(this,Ln).get("wysiwyg").children,y=b.length;if(y===0)return[];n(this,he).selection.setRange(b[0],0,b[y-1],b[y-1].textContent.trim().length),t=n(this,he).selection.getRange()}const o=t.startContainer,s=t.endContainer,r=t.commonAncestorContainer;e||(e=this.isLine.bind(this));const l=u.query.getListChildren(r,b=>e(b),null);if((r.nodeType===3||!u.check.isWysiwygFrame(r)&&!this.isBlock(r))&&l.unshift(this.getLine(r,null)),o===s||l.length===1)return l;const c=this.getLine(o,null),d=this.getLine(s,null);let h=null,p=null;const f=function(b){return u.check.isTableElements(b)?/^TABLE$/i.test(b.nodeName):!0};let m=this.getBlock(c,f),g=this.getBlock(d,f);u.check.isTableElements(m)&&u.check.isListCell(m.parentNode)&&(m=m.parentNode),u.check.isTableElements(g)&&u.check.isListCell(g.parentNode)&&(g=g.parentNode);const v=m===g;for(let b=0,y=l.length,C;b<y;b++){if(C=l[b],c===C||!v&&C===m){h=b;continue}if(d===C||!v&&C===g){p=b;break}}return h===null&&(h=0),p===null&&(p=l.length-1),l.slice(h,p+1)}getLinesAndComponents(e){const t=n(this,he).selection.getRange().commonAncestorContainer,o=u.query.getParentElement(t,n(this,he).component.is.bind(n(this,he).component)),s=u.check.isTableElements(t)?this.getLines(null):this.getLines(r=>{const l=u.query.getParentElement(r,n(this,he).component.is.bind(n(this,he).component));return this.isLine(r)&&(!l||l===o)||u.check.isComponentContainer(r)&&!this.getLine(r)});if(e){for(let r=0,l=s.length;r<l;r++)for(let c=r-1;c>=0;c--)if(s[c].contains(s[r])){s.splice(r,1),r--,l--;break}}return s}_isNotTextNode(e){if(!e)return!1;const t=/^(br|input|select|canvas|img|iframe|audio|video)$/i;return typeof e=="string"?t.test(e):e.nodeType===1&&(n(this,he).component.is(e)||t.test(e.nodeName))}_isExcludeSelectionElement(e){return!/FIGCAPTION/i.test(e.nodeName)&&(n(this,he).component.is(e)||/FIGURE/i.test(e.nodeName))}__resetBrLineBreak(e){return x(this,xa,e==="br")}}he=new WeakMap,no=new WeakMap,Bt=new WeakMap,Ln=new WeakMap,va=new WeakMap,ya=new WeakMap,wa=new WeakMap,Ca=new WeakMap,ka=new WeakMap,_a=new WeakMap,xa=new WeakMap,Cs=new WeakSet,Fl=function(e){return u.check.isExcludeFormat(e)||n(this,he).component.is(e)||u.check.isWysiwygFrame(e)},id=new WeakSet,S0=function(){let e=n(this,he).selection.getRange(),t=this.getLinesAndComponents(!1);if(t.length===0&&(e=n(this,he).selection.getRangeAndAddLine(e,null),t=this.getLinesAndComponents(!1),t.length===0))return;const o=e.startOffset,s=e.endOffset;let r=t[0],l=t.at(-1);const c=u.query.getNodePath(e.startContainer,r,null),d=u.query.getNodePath(e.endContainer,l,null),h=n(this,he).listFormat.remove(t,!1);return h.sc&&(r=h.sc),h.ec&&(l=h.ec),n(this,he).selection.setRange(u.query.getNodeFromPath(c,r),o,u.query.getNodeFromPath(d,l),s),{lines:this.getLinesAndComponents(!1),firstNode:r,lastNode:l,firstPath:c,lastPath:d,startOffset:o,endOffset:s}};function rv(i,e,t){const o=[];for(let s=0,r=i.length,l,c;s<r;s++)l=i[s],u.check.isListCell(l)?(e<0||l.previousElementSibling)&&o.push(l):(c=/\d+/.test(l.style[t])?Q.get(l.style[t],0):0,c+=e,u.utils.setStyle(l,t,c<=0?"":c+"px"));return o}const gB=mB;class bB{constructor(e){w(this,Wp);w(this,Up);w(this,qp);w(this,Zp);w(this,Ea);w(this,Gp);w(this,Yp);w(this,_s);w(this,In);w(this,be,void 0);w(this,Vi,void 0);w(this,ks,void 0);w(this,Mi,void 0);x(this,be,e.$),x(this,Vi,n(this,be).options),x(this,ks,n(this,Vi).get("__listCommonStyle")),x(this,Mi,Te.camelToKebabCase(n(this,Vi).get("__listCommonStyle")))}apply(e,{stylesToModify:t,nodesToRemove:o,strictRemove:s}={}){if(u.query.getParentElement(n(this,be).selection.getNode(),u.check.isNonEditable))return;n(this,be).selection.resetRangeToTextNode();let r=n(this,be).selection.getRangeAndAddLine(n(this,be).selection.getRange(),null);t=(t==null?void 0:t.length)>0?t:null,o=(o==null?void 0:o.length)>0?o:null;const l=!e,c=l&&!o&&!t;let d=r.startContainer,h=r.startOffset,p=r.endContainer,f=r.endOffset;if(c&&r.collapsed&&n(this,be).format.isLine(d.parentNode)&&n(this,be).format.isLine(p.parentNode)||d===p&&d.nodeType===1&&u.check.isNonEditable(d)){const D=d.parentNode;if(!u.check.isListCell(D)||!Te.getValues(D.style).some(I=>n(this,Mi).includes(I)))return}if(r.collapsed&&!c&&d.nodeType===1&&!u.check.isBreak(d)&&!n(this,be).component.is(d)){let D=null;const I=d.childNodes[h];I&&(I.nextSibling?D=u.check.isBreak(I)?I:I.nextSibling:D=null);const R=u.utils.createTextNode(De.zeroWidthSpace);d.insertBefore(R,D),n(this,be).selection.setRange(R,1,R,1),r=n(this,be).selection.getRange(),d=r.startContainer,h=r.startOffset,p=r.endContainer,f=r.endOffset}n(this,be).format.isLine(d)&&(d=d.childNodes[h]||d.firstChild,h=0),n(this,be).format.isLine(p)&&(p=p.childNodes[f]||p.lastChild,f=p.textContent.length),l&&(e=u.utils.createElement("DIV"));const m=RegExp,g=e.nodeName;if(!c&&d===p&&!o&&e){let D=d,I=0;const R=[],F=e.style;for(let V=0,Z=F.length;V<Z;V++)R.push(F[V]);const q=e.className,H=e.classList;for(let V=0,Z=H.length;V<Z;V++)R.push("."+H[V]);if(R.length>0){for(;!n(this,be).format.isLine(D)&&!u.check.isWysiwygFrame(D);){for(let V=0;V<R.length;V++)if(D.nodeType===1){const Z=R[V],j=/^\./.test(Z)?new m("\\s*"+Z.replace(/^\./,"")+"(\\s+|$)","ig"):!1,Y=D.style,ne=D.className,K=l?!!Y[Z]:!!Y[Z]&&!!F[Z]&&Y[Z]===F[Z],J=j===!1?!1:l?!!ne.match(j):!!ne.match(j)&&!!q.match(j);(K||J)&&I++}D=D.parentNode}if(I>=R.length)return}}let v,b={},y={},C="",k="",_;if(t){for(let D=0,I=t.length,R;D<I;D++)R=t[D],/^\./.test(R)?k+=(k?"|":"\\s*(?:")+R.replace(/^\./,""):C+=(C?"|":"(?:;|^|\\s)(?:")+R;C&&(C+=")\\s*:[^;]*\\s*(?:;|$)",C=new m(C,"ig")),k&&(k+=")(?=\\s+|$)",k=new m(k,"ig"))}if(o){_="^(?:"+o[0];for(let D=1;D<o.length;D++)_+="|"+o[D];_+=")$",_=new m(_,"i")}const S={v:!1},T=function(D){const I=D.cloneNode(!1);if(I.nodeType===3||u.check.isBreak(I))return I;if(c)return null;const R=!_&&l||(_==null?void 0:_.test(I.nodeName));if(R&&!s)return S.v=!0,null;const F=I.style.cssText;let q="";C&&F.length>0&&(q=F.replace(C,"").trim(),q!==F&&(S.v=!0));const H=I.className;let V="";return k&&H.length>0&&(V=H.replace(k,"").trim(),V!==H&&(S.v=!0)),l&&(k||!H)&&(C||!F)&&!q&&!V&&R?(S.v=!0,null):q||V||I.nodeName!==g||!!C!=!!F||!!k!=!!H?(C&&F.length>0&&(I.style.cssText=q),I.style.cssText||I.removeAttribute("style"),k&&H.length>0&&(I.className=V.trim()),I.className.trim()||I.removeAttribute("class"),!I.style.cssText&&!I.className&&(I.nodeName===g||R)?(S.v=!0,null):I):(S.v=!0,null)},M=n(this,be).format.getLines(null);if(M.length===0){console.warn("[SUNEDITOR.inline.apply.warn] There is no line to apply.");return}r=n(this,be).selection.getRange(),d=r.startContainer,h=r.startOffset,p=r.endContainer,f=r.endOffset,n(this,be).format.getLine(d,null)||(d=u.query.getEdgeChild(M[0],function(D){return D.nodeType===3},!1),h=0),n(this,be).format.getLine(p,null)||(p=u.query.getEdgeChild(M.at(-1),function(D){return D.nodeType===3},!1),f=p.textContent.length);const N=n(this,be).format.getLine(d,null)===n(this,be).format.getLine(p,null),A=M.length-(N?0:1);v=e.cloneNode(!1);const B=c||l&&(D=>{for(let I=0,R=D==null?void 0:D.length;I<R;I++)if(this._isNonSplitNode(D[I]))return!0;return!1})(o),$=l||E(this,Ea,Bm).call(this,v),L=E(this,Gp,$y).bind(this,B,$),O=E(this,Yp,Oy).bind(this,B,$);if(N){E(this,In,Yh).call(this,M[0],t)&&(r=n(this,be).selection.setRange(d,h,p,f));const D=E(this,Wp,By).call(this,M[0],v,T,d,h,p,f,c,l,r.collapsed,S,L,O);b.container=D.startContainer,b.offset=D.startOffset,y.container=D.endContainer,y.offset=D.endOffset,b.container===y.container&&u.check.isZeroWidth(b.container)&&(b.offset=y.offset=1),E(this,_s,Wl).call(this,D.ancestor,null)}else{let D=!1;A>0&&E(this,In,Yh).call(this,M[A],t)&&(D=!0),E(this,In,Yh).call(this,M[0],t)&&(D=!0),D&&n(this,be).selection.setRange(d,h,p,f),A>0&&(v=e.cloneNode(!1),y=E(this,Zp,Iy).call(this,M[A],v,T,p,f,c,l,S,L,O));for(let I=A-1,R;I>0;I--)E(this,In,Yh).call(this,M[I],t),v=e.cloneNode(!1),R=E(this,qp,Ly).call(this,M[I],v,T,c,l,S,y.container),R.endContainer&&R.ancestor.contains(R.endContainer)&&(y.ancestor=null,y.container=R.endContainer),E(this,_s,Wl).call(this,R.ancestor,null);v=e.cloneNode(!1),b=E(this,Up,Ny).call(this,M[0],v,T,d,h,c,l,S,L,O,y.container),b.endContainer&&(y.ancestor=null,y.container=b.endContainer),A<=0?y=b:y.container||(y.ancestor=null,y.container=b.container,y.offset=b.container.textContent.length),E(this,_s,Wl).call(this,b.ancestor,null),E(this,_s,Wl).call(this,y.ancestor||n(this,be).format.getLine(y.container),null)}return n(this,be).ui.offCurrentController(),n(this,be).selection.setRange(b.container,b.offset,y.container,y.offset),n(this,be).history.push(!1),v}remove(){this.apply(null,{stylesToModify:null,nodesToRemove:null,strictRemove:null})}_isNonSplitNode(e){if(!e)return!1;const t=/^(a|label|code|summary)$/i;return typeof e=="string"?t.test(e):e.nodeType===1&&t.test(e.nodeName)}_isIgnoreNodeChange(e){return e&&e.nodeType===1&&(u.check.isNonEditable(e)||!n(this,be).format.isTextStyleNode(e)||n(this,be).component.is(e))}}be=new WeakMap,Vi=new WeakMap,ks=new WeakMap,Mi=new WeakMap,Wp=new WeakSet,By=function(e,t,o,s,r,l,c,d,h,p,f,m,g){let v=s.parentNode;for(;!v.nextSibling&&!v.previousSibling&&!n(this,be).format.isLine(v.parentNode)&&!u.check.isWysiwygFrame(v.parentNode)&&v.nodeName!==t.nodeName;)v=v.parentNode;if(!h&&!d&&v===l.parentNode&&v.nodeName===t.nodeName&&u.check.isZeroWidth(s.textContent.slice(0,r))&&u.check.isZeroWidth(l.textContent.slice(c))){const K=v.childNodes;let J=!0;for(let W=0,ie=K.length,z,X,me,fe;W<ie;W++){if(z=K[W],fe=!u.check.isZeroWidth(z),z===s||z===l){z===s&&(X=!0),z===l&&(me=!0);continue}if(!X&&fe||X&&me&&fe){J=!1;break}}if(J)return u.utils.copyTagAttributes(v,t),{ancestor:e,startContainer:s,startOffset:r,endContainer:l,endOffset:c}}f.v=!1;const b=this,y=e,C=[t],k=e.cloneNode(!1),_=s===l;let S=s,T=r,M=l,N=c,A=!1,B=!1,$,L,O,D,I;const R=RegExp;function F(K){const J=new R("(?:;|^|\\s)(?:"+D+"null)\\s*:[^;]*\\s*(?:;|$)","ig");let W=!1;return J&&K.style.cssText.length>0&&(W=J.test(K.style.cssText)),!W}if(function K(J,W){const ie=J.childNodes;for(let z=0,X=ie.length,me;z<X;z++){const fe=ie[z];if(!fe)continue;let He=W,ue;if(!A&&fe===S){let Be=k;I=m(fe);let ke="",ct="";if(S.nodeType===3){const Ot=S;ke=Ot.substringData(0,T),ct=Ot.substringData(T,_&&N>=T?N-T:Ot.data.length-T)}const Ne=u.utils.createTextNode(ke),st=u.utils.createTextNode(ct);if(I){const Ot=m(W);if(Ot.parentNode!==Be){let yi=Ot,Go=null;for(;yi.parentNode!==Be;){for(W=Go=yi.parentNode.cloneNode(!1);yi.childNodes[0];)Go.appendChild(yi.childNodes[0]);yi.appendChild(Go),yi=yi.parentNode}yi.parentNode.appendChild(Ot)}I=I.cloneNode(!1)}u.check.isZeroWidth(Ne)||W.appendChild(Ne);const Je=m(W);for(Je&&(I=Je),I&&(Be=I),L=fe,$=[],D="";L!==Be&&L!==y&&L!==null;)me=g(L)?null:o(L),me&&L.nodeType===1&&F(L)&&($.push(me),D+=L.style.cssText.substring(0,L.style.cssText.indexOf(":"))+"|"),L=L.parentElement;const ri=$.pop()||st;for(O=L=ri;$.length>0;)L=$.pop(),O.appendChild(L),O=L;if(t.appendChild(ri),Be.appendChild(t),I&&!m(M)&&(t=t.cloneNode(!1),k.appendChild(t),C.push(t)),S=st,T=0,A=!0,L!==st&&L.appendChild(S),!_)continue}if(!B&&fe===M){I=m(fe);let Be="",ke="";if(M.nodeType===3){const Je=M;Be=Je.substringData(N,Je.length-N),ke=_?"":Je.substringData(0,N)}const ct=u.utils.createTextNode(Be),Ne=u.utils.createTextNode(ke);if(I?I=I.cloneNode(!1):g(t.parentNode)&&!I&&(t=t.cloneNode(!1),k.appendChild(t),C.push(t)),!u.check.isZeroWidth(ct)){L=fe,D="",$=[];const Je=[];for(;L!==k&&L!==y&&L!==null;)L.nodeType===1&&F(L)&&(g(L)?Je.push(L.cloneNode(!1)):$.push(L.cloneNode(!1)),D+=L.style.cssText.substring(0,L.style.cssText.indexOf(":"))+"|"),L=L.parentElement;for($=$.concat(Je),ue=O=L=$.pop()||ct;$.length>0;)L=$.pop(),O.appendChild(L),O=L;k.appendChild(ue),L.textContent=ct.data}if(I&&ue){const Je=m(ue);Je&&(I=Je)}for(L=fe,$=[],D="";L!==k&&L!==y&&L!==null;)me=g(L)?null:o(L),me&&L.nodeType===1&&F(L)&&($.push(me),D+=L.style.cssText.substring(0,L.style.cssText.indexOf(":"))+"|"),L=L.parentElement;const st=$.pop()||Ne;for(O=L=st;$.length>0;)L=$.pop(),O.appendChild(L),O=L;I?(t=t.cloneNode(!1),t.appendChild(st),I.insertBefore(t,I.firstChild),k.appendChild(I),C.push(t),I=null):t.appendChild(st),M=Ne,N=Ne.data.length,B=!0,!d&&p&&(t=Ne,Ne.textContent=De.zeroWidthSpace),L!==Ne&&L.appendChild(M);continue}if(A){if(fe.nodeType===1&&!u.check.isBreak(fe)){b._isIgnoreNodeChange(fe)?(k.appendChild(fe.cloneNode(!0)),p||(t=t.cloneNode(!1),k.appendChild(t),C.push(t))):K(fe,fe);continue}L=fe,$=[],D="";const Be=[];for(;L.parentNode!==null&&L!==y&&L!==t;)me=B?L.cloneNode(!1):o(L),L.nodeType===1&&!u.check.isBreak(fe)&&me&&F(L)&&(g(L)?I||Be.push(me):$.push(me),D+=L.style.cssText.substring(0,L.style.cssText.indexOf(":"))+"|"),L=L.parentElement;$=$.concat(Be);const ke=$.pop()||fe;for(O=L=ke;$.length>0;)L=$.pop(),O.appendChild(L),O=L;if(g(t.parentNode)&&!g(ke)&&!u.check.isZeroWidth(t)&&(t=t.cloneNode(!1),k.appendChild(t),C.push(t)),!B&&!I&&g(ke)){t=t.cloneNode(!1);const ct=ke.childNodes;for(let Ne=0,st=ct.length;Ne<st;Ne++)t.appendChild(ct[Ne]);ke.appendChild(t),k.appendChild(ke),C.push(t),t.children.length>0?W=L:W=t}else ke===fe?B?W=k:W=t:B?(k.appendChild(ke),W=L):(t.appendChild(ke),W=L);if(I&&fe.nodeType===3)if(m(fe)){const ct=u.query.getParentElement(W,Ne=>b._isNonSplitNode(Ne.parentNode)||Ne.parentNode===k);I.appendChild(ct),t=ct.cloneNode(!1),C.push(t),k.appendChild(t)}else I=null}ue=fe.cloneNode(!1),W.appendChild(ue),fe.nodeType===1&&!u.check.isBreak(fe)&&(He=ue),K(fe,He)}}(e,k),h&&!d&&!f.v)return{ancestor:e,startContainer:s,startOffset:r,endContainer:l,endOffset:c};if(d&&(d=h),d)for(let K=0;K<C.length;K++){const J=C[K];let W,ie,z;if(p)W=u.utils.createTextNode(De.zeroWidthSpace),k.replaceChild(W,J);else{const X=J.childNodes;for(ie=X[0];X[0];)z=X[0],k.insertBefore(z,J);u.utils.removeItem(J)}K===0&&(p?S=M=W:(S=ie,M=z))}else{if(h)for(let K=0;K<C.length;K++)Ju(C[K]);p&&(S=M=t)}n(this,be).nodeTransform.removeEmptyNode(k,t,!1),p&&(T=S.textContent.length,N=M.textContent.length);const q=d||M.textContent.length===0;!u.check.isBreak(M)&&M.textContent.length===0&&(u.utils.removeItem(M),M=S),N=q?M.textContent.length:N;const H={s:0,e:0},V=u.query.getNodePath(S,k,H),Z=!M.parentNode;Z&&(M=S);const j={s:0,e:0},Y=u.query.getNodePath(M,k,!Z&&!q?j:null);T+=H.s,N=p?T:Z?S.textContent.length:q?N+H.s:N+j.s;const ne=n(this,be).nodeTransform.mergeSameTags(k,[V,Y],!0);return e.parentNode.replaceChild(k,e),S=u.query.getNodeFromPath(V,k),M=u.query.getNodeFromPath(Y,k),{ancestor:k,startContainer:S,startOffset:T+ne[0],endContainer:M,endOffset:N+ne[1]}},Up=new WeakSet,Ny=function(e,t,o,s,r,l,c,d,h,p,f){let m=s.parentNode;for(;!m.nextSibling&&!m.previousSibling&&!n(this,be).format.isLine(m.parentNode)&&!u.check.isWysiwygFrame(m.parentNode)&&m.nodeName!==t.nodeName;)m=m.parentNode;if(!c&&!l&&m.nodeName===t.nodeName&&!n(this,be).format.isLine(m)&&!m.nextSibling&&u.check.isZeroWidth(s.textContent.slice(0,r))){let A=!0,B=s.previousSibling;for(;B;){if(!u.check.isZeroWidth(B)){A=!1;break}B=B.previousSibling}if(A)return u.utils.copyTagAttributes(m,t),{ancestor:e,container:s,offset:r}}d.v=!1;const g=this,v=e,b=[t],y=e.cloneNode(!1);let C=s,k=r,_=!1,S,T,M,N;if(function A(B,$){const L=B.childNodes;for(let O=0,D=L.length,I,R;O<D;O++){const F=L[O];if(!F)continue;let q=$;if(_&&!u.check.isBreak(F)){if(F.nodeType===1){if(g._isIgnoreNodeChange(F)){if(t=t.cloneNode(!1),R=F.cloneNode(!0),y.appendChild(R),y.appendChild(t),b.push(t),f&&F.contains(f)){const j=u.query.getNodePath(f,F);f=u.query.getNodeFromPath(j,R)}}else A(F,F);continue}T=F,S=[];const H=[];for(;T.parentNode!==null&&T!==v&&T!==t;)I=o(T),T.nodeType===1&&I&&(p(T)?N||H.push(I):S.push(I)),T=T.parentNode;S=S.concat(H);const V=S.length>0,Z=S.pop()||F;for(M=T=Z;S.length>0;)T=S.pop(),M.appendChild(T),M=T;if(p(t.parentNode)&&!p(Z)&&(t=t.cloneNode(!1),y.appendChild(t),b.push(t)),!N&&p(Z)){t=t.cloneNode(!1);const j=Z.childNodes;for(let Y=0,ne=j.length;Y<ne;Y++)t.appendChild(j[Y]);Z.appendChild(t),y.appendChild(Z),$=p(T)?t:T,b.push(t)}else V?(t.appendChild(Z),$=T):$=t;if(N&&F.nodeType===3)if(h(F)){const j=u.query.getParentElement($,Y=>g._isNonSplitNode(Y.parentNode)||Y.parentNode===y);N.appendChild(j),t=j.cloneNode(!1),b.push(t),y.appendChild(t)}else N=null}if(!_&&F===C){let H=y;N=h(F);let V="",Z="";if(C.nodeType===3){const J=C;V=J.substringData(0,k),Z=J.substringData(k,J.length-k)}const j=u.utils.createTextNode(V),Y=u.utils.createTextNode(Z);if(N){const J=h($);if(J&&J.parentNode!==H){let W=J,ie=null;for(;W.parentNode!==H;){for($=ie=W.parentNode.cloneNode(!1);W.childNodes[0];)ie.appendChild(W.childNodes[0]);W.appendChild(ie),W=W.parentNode}W.parentNode.appendChild(J)}N=N.cloneNode(!1)}u.check.isZeroWidth(j)||$.appendChild(j);const ne=h($);for(ne&&(N=ne),N&&(H=N),T=$,S=[];T!==H&&T!==null;)I=o(T),T.nodeType===1&&I&&S.push(I),T=T.parentNode;const K=S.pop()||$;for(M=T=K;S.length>0;)T=S.pop(),M.appendChild(T),M=T;K!==$?(t.appendChild(K),$=T):$=t,u.check.isBreak(F)&&t.appendChild(F.cloneNode(!1)),H.appendChild(t),C=Y,k=0,_=!0,$.appendChild(C);continue}I=_?o(F):F.cloneNode(!1),I&&($.appendChild(I),F.nodeType===1&&!u.check.isBreak(F)&&(q=I)),A(F,q)}}(e,y),c&&!l&&!d.v)return{ancestor:e,container:s,offset:r,endContainer:f};if(l&&(l=c),l)for(let A=0;A<b.length;A++){const B=b[A],$=B.childNodes,L=$[0];for(;$[0];)y.insertBefore($[0],B);u.utils.removeItem(B),A===0&&(C=L)}else if(c){t=t.firstChild;for(let A=0;A<b.length;A++)Ju(b[A])}if(!l&&y.childNodes.length===0)e.childNodes?C=e.childNodes[0]:(C=u.utils.createTextNode(De.zeroWidthSpace),e.appendChild(C));else{n(this,be).nodeTransform.removeEmptyNode(y,t,!1),u.check.isZeroWidth(y.textContent)&&(C=y.firstChild,k=0);const A={s:0,e:0},B=u.query.getNodePath(C,y,A);k+=A.s;const $=n(this,be).nodeTransform.mergeSameTags(y,[B],!0);e.parentNode.replaceChild(y,e),C=u.query.getNodeFromPath(B,y),k+=$[0]}return{ancestor:y,container:C,offset:k,endContainer:f}},qp=new WeakSet,Ly=function(e,t,o,s,r,l,c){if(!r){let m=null;c&&e.contains(c)&&(m=u.query.getNodePath(c,e));const g=e.cloneNode(!0),v=t.nodeName,b=t.style.cssText,y=t.className;let C=g.childNodes,k=0,_=C.length;for(let S;k<_&&(S=C[k],S.nodeType!==3);k++)if(S.nodeName===v)S.style.cssText+=b,u.utils.addClass(S,y);else{if(!u.check.isBreak(S)&&this._isIgnoreNodeChange(S))continue;if(_===1){C=S.childNodes,_=C.length,k=-1;continue}else break}if(_>0&&k===_)return e.innerHTML=g.innerHTML,{ancestor:e,endContainer:m?u.query.getNodeFromPath(m,e):null}}l.v=!1;const d=this,h=e.cloneNode(!1),p=[t];let f=!0;if(function m(g,v){const b=g.childNodes;for(let y=0,C=b.length,k,_;y<C;y++){const S=b[y];if(!S)continue;let T=v;if(!u.check.isBreak(S)&&d._isIgnoreNodeChange(S)){if(t.childNodes.length>0&&(h.appendChild(t),t=t.cloneNode(!1)),_=S.cloneNode(!0),h.appendChild(_),h.appendChild(t),p.push(t),v=t,c&&S.contains(c)){const M=u.query.getNodePath(c,S);c=u.query.getNodeFromPath(M,_)}continue}else k=o(S),k&&(f=!1,v.appendChild(k),S.nodeType===1&&(T=k));u.check.isBreak(S)||m(S,T)}}(e,t),f||r&&!s&&!l.v)return{ancestor:e,endContainer:c};if(h.appendChild(t),s&&r)for(let m=0;m<p.length;m++){const g=p[m],v=g.childNodes;for(;v[0];)h.insertBefore(v[0],g);u.utils.removeItem(g)}else if(r){t=t.firstChild;for(let m=0;m<p.length;m++)Ju(p[m])}return n(this,be).nodeTransform.removeEmptyNode(h,t,!1),n(this,be).nodeTransform.mergeSameTags(h,null,!0),e.parentNode.replaceChild(h,e),{ancestor:h,endContainer:c}},Zp=new WeakSet,Iy=function(e,t,o,s,r,l,c,d,h,p){let f=s.parentNode;for(;!f.nextSibling&&!f.previousSibling&&!n(this,be).format.isLine(f.parentNode)&&!u.check.isWysiwygFrame(f.parentNode)&&f.nodeName!==t.nodeName;)f=f.parentNode;if(!c&&!l&&f.nodeName===t.nodeName&&!n(this,be).format.isLine(f)&&!f.previousSibling&&u.check.isZeroWidth(s.textContent.slice(r))){let N=!0,A=s.nextSibling;for(;A;){if(!u.check.isZeroWidth(A)){N=!1;break}A=A.nextSibling}if(N)return u.utils.copyTagAttributes(f,t),{ancestor:e,container:s,offset:r}}d.v=!1;const m=this,g=e,v=[t],b=e.cloneNode(!1);let y=s,C=r,k=!1,_,S,T,M;if(function N(A,B){const $=A.childNodes;for(let L=$.length-1,O;0<=L;L--){const D=$[L];if(!D)continue;let I=B;if(k&&!u.check.isBreak(D)){if(D.nodeType===1){if(m._isIgnoreNodeChange(D)){t=t.cloneNode(!1);const H=D.cloneNode(!0);b.insertBefore(H,B),b.insertBefore(t,H),v.push(t)}else N(D,D);continue}S=D,_=[];const R=[];for(;S.parentNode!==null&&S!==g&&S!==t;)O=o(S),O&&S.nodeType===1&&(p(S)?M||R.push(O):_.push(O)),S=S.parentNode;_=_.concat(R);const F=_.length>0,q=_.pop()||D;for(T=S=q;_.length>0;)S=_.pop(),T.appendChild(S),T=S;if(p(t.parentNode)&&!p(q)&&(t=t.cloneNode(!1),b.insertBefore(t,b.firstChild),v.push(t)),!M&&p(q)){t=t.cloneNode(!1);const H=q.childNodes;for(let V=0,Z=H.length;V<Z;V++)t.appendChild(H[V]);q.appendChild(t),b.insertBefore(q,b.firstChild),v.push(t),t.children.length>0?B=S:B=t}else F?(t.insertBefore(q,t.firstChild),B=S):B=t;if(M&&D.nodeType===3)if(h(D)){const H=u.query.getParentElement(B,V=>m._isNonSplitNode(V.parentNode)||V.parentNode===b);M.appendChild(H),t=H.cloneNode(!1),v.push(t),b.insertBefore(t,b.firstChild)}else M=null}if(!k&&D===y){M=h(D);let R="",F="";if(y.nodeType===3){const Z=y;R=Z.substringData(C,Z.length-C),F=Z.substringData(0,C)}const q=u.utils.createTextNode(R),H=u.utils.createTextNode(F);if(M){M=M.cloneNode(!1);const Z=h(B);if(Z.parentNode!==b){let j=Z,Y=null;for(;j.parentNode!==b;){for(B=Y=j.parentNode.cloneNode(!1);j.childNodes[0];)Y.appendChild(j.childNodes[0]);j.appendChild(Y),j=j.parentNode}j.parentNode.insertBefore(Z,j.parentNode.firstChild)}M=M.cloneNode(!1)}else p(t.parentNode)&&!M&&(t=t.cloneNode(!1),b.appendChild(t),v.push(t));for(u.check.isZeroWidth(q)||B.insertBefore(q,B.firstChild),S=B,_=[];S!==b&&S!==null;)O=p(S)?null:o(S),O&&S.nodeType===1&&_.push(O),S=S.parentNode;const V=_.pop()||B;for(T=S=V;_.length>0;)S=_.pop(),T.appendChild(S),T=S;V!==B?(t.insertBefore(V,t.firstChild),B=S):B=t,u.check.isBreak(D)&&t.appendChild(D.cloneNode(!1)),M?(M.insertBefore(t,M.firstChild),b.insertBefore(M,b.firstChild),M=null):b.insertBefore(t,b.firstChild),y=H,C=H.data.length,k=!0,B.insertBefore(y,B.firstChild);continue}O=k?o(D):D.cloneNode(!1),O&&(B.insertBefore(O,B.firstChild),D.nodeType===1&&!u.check.isBreak(D)&&(I=O)),N(D,I)}}(e,b),c&&!l&&!d.v)return{ancestor:e,container:s,offset:r};if(l&&(l=c),l)for(let N=0;N<v.length;N++){const A=v[N],B=A.childNodes;let $=null;for(;B[0];)$=B[0],b.insertBefore($,A);u.utils.removeItem(A),N===v.length-1&&(y=$,C=$.textContent.length)}else if(c){t=t.firstChild;for(let N=0;N<v.length;N++)Ju(v[N])}if(!l&&b.childNodes.length===0)e.childNodes?y=e.childNodes[0]:(y=u.utils.createTextNode(De.zeroWidthSpace),e.appendChild(y));else{if(!c&&t.textContent.length===0)return n(this,be).nodeTransform.removeEmptyNode(b,null,!1),{ancestor:null,container:null,offset:0};n(this,be).nodeTransform.removeEmptyNode(b,t,!1),u.check.isZeroWidth(b.textContent)?(y=b.firstChild,C=y.textContent.length):u.check.isZeroWidth(y)&&(y=t,C=1);const N={s:0,e:0},A=u.query.getNodePath(y,b,N);C+=N.s;const B=n(this,be).nodeTransform.mergeSameTags(b,[A],!0);e.parentNode.replaceChild(b,e),y=u.query.getNodeFromPath(A,b),C+=B[0]}return{ancestor:b,container:y,offset:y.nodeType===1&&C===1?y.childNodes.length:C}},Ea=new WeakSet,Bm=function(e){return e&&typeof e!="string"&&e.nodeType!==3&&n(this,be).format.isTextStyleNode(e)&&!!e.style.fontSize},Gp=new WeakSet,$y=function(e,t,o){return!o||e?null:u.query.getParentElement(o,this._isNonSplitNode.bind(this))||(t?null:u.query.getParentElement(o,E(this,Ea,Bm).bind(this)))},Yp=new WeakSet,Oy=function(e,t,o){if(!o||e||o.nodeType!==1)return!1;const s=this._isNonSplitNode(o);return u.query.getParentElement(o,this._isNonSplitNode.bind(this))?s:s||(t?!1:E(this,Ea,Bm).call(this,o))},_s=new WeakSet,Wl=function(e,t){if(!u.check.isListCell(e))return;const o=u.utils.arrayFilter((t||e).childNodes,h=>!u.check.isBreak(h));if(t=o[0],!u.check.isElement(t)||o.length>1)return;const s=t.style,r=e.style,l=t.nodeName.toLowerCase();let c=!1;n(this,Vi).get("_defaultStyleTagMap")[l]===n(this,Vi).get("_defaultTagCommand").bold.toLowerCase()&&(r.fontWeight="bold"),n(this,Vi).get("_defaultStyleTagMap")[l]===n(this,Vi).get("_defaultTagCommand").italic.toLowerCase()&&(r.fontStyle="italic");const d=Te.getValues(s);if(d.length>0)for(let h=0,p=n(this,ks).length;h<p;h++)d.includes(n(this,Mi)[h])&&(r[n(this,ks)[h]]=s[n(this,ks)[h]],s.removeProperty(n(this,Mi)[h]),c=!0);if(E(this,_s,Wl).call(this,e,t),!!c&&s.length===0){const h=t.childNodes,p=t.parentNode,f=t.nextSibling;for(;h.length>0;)p.insertBefore(h[0],f);u.utils.removeItem(t)}},In=new WeakSet,Yh=function(e,t){if(!u.check.isListCell(e))return;t||(t=n(this,Mi));const o=u.utils.arrayFilter(e.childNodes,m=>!u.check.isBreak(m)),s=e.style,r=[],l=[],c=Te.getValues(s);for(let m=0,g=n(this,Mi).length;m<g;m++)c.includes(n(this,Mi)[m])&&t.includes(n(this,Mi)[m])&&(r.push(n(this,ks)[m]),l.push(n(this,Mi)[m]));if(r.length===0)return;const d=u.utils.createElement("SPAN");for(let m=0,g=r.length;m<g;m++)d.style[r[m]]=s[l[m]],s.removeProperty(l[m]);let h=d.cloneNode(!1),p=null,f=!1;for(let m=0,g=o.length,v,b;m<g;m++)v=o[m],!n(this,Vi).get("_defaultStyleTagMap")[v.nodeName.toLowerCase()]&&(b=Te.getValues(v.style),b.length===0||r.some(function(y){return!b.includes(y)})&&b.some(function(y){return r.includes(y)})?(p=v.nextSibling,h.appendChild(v)):h.childNodes.length>0&&(e.insertBefore(h,p),h=d.cloneNode(!1),p=null,f=!0));return h.childNodes.length>0&&(e.insertBefore(h,p),f=!0),s.length===0&&e.removeAttribute("style"),f};function Ju(i){const e=i.parentNode;if(!i||i.nodeType===3||!e)return;const t=i.childNodes;for(;t[0];)e.insertBefore(t[0],i);e.removeChild(i)}const vB=bB;class yB{constructor(e){w(this,sd);w(this,nd);w(this,Fe,void 0);w(this,od,void 0);x(this,Fe,e.$),x(this,od,e.store)}apply(e,t,o){const s=(e.split(":")[0]||"ol").toUpperCase(),r=e.split(":")[1]||"";let l=n(this,Fe).selection.getRange(),c=t||n(this,Fe).format.getLinesAndComponents(!1);if(c.length===0&&(t||(l=n(this,Fe).selection.getRangeAndAddLine(l,null),c=n(this,Fe).format.getLinesAndComponents(!1),c.length===0)))return;u.query.sortNodeByDepth(c,!0);const d=c[0],h=c.at(-1);let p=(u.check.isListCell(d)||n(this,Fe).component.is(d))&&!d.previousElementSibling?d.parentElement.previousElementSibling:d.previousElementSibling,f=(u.check.isListCell(h)||n(this,Fe).component.is(h))&&!h.nextElementSibling?h.parentElement.nextElementSibling:h.nextElementSibling;const m=l.collapsed,g={sc:l.startContainer,so:l.startContainer===l.endContainer&&u.check.isZeroWidth(l.startContainer)&&l.startOffset===0&&l.endOffset===1?l.endOffset:l.startOffset,ec:l.endContainer,eo:l.endOffset};let v=null,b=!0;for(let y=0,C=c.length;y<C;y++)if(!u.check.isList(n(this,Fe).format.getBlock(c[y],k=>n(this,Fe).format.getBlock(k)&&k!==c[y]))){b=!1;break}if(b&&(!p||d.tagName!==p.tagName||s!==p.tagName.toUpperCase())&&(!f||h.tagName!==f.tagName||s!==f.tagName.toUpperCase())){if(o){for(let T=0,M=c.length;T<M;T++)for(let N=T-1;N>=0;N--)if(c[N].contains(c[T])){c.splice(T,1),T--,M--;break}}const y=n(this,Fe).format.getBlock(d),C=(y==null?void 0:y.tagName)===s;let k,_;const S=T=>!u.check.isComponentContainer(T);C||(_=u.utils.createElement(s,{style:"list-style-type: "+r}));for(let T=0,M=c.length,N,A;T<M;T++)A=n(this,Fe).format.getBlock(c[T],S),!(!A||!u.check.isList(A))&&(N?N!==A?(o&&u.check.isListCell(A.parentNode)?E(this,nd,B0).call(this,k.f):v=n(this,Fe).format.removeBlock(k.f[0].parentElement,{selectedFormats:k.f,newBlockElement:_,shouldDelete:!1,skipHistory:!0}),A=c[T].parentNode,C||(_=u.utils.createElement(s,{style:"list-style-type: "+r})),N=A,k={r:N,f:[u.query.getParentElement(c[T],"LI")]}):k.f.push(u.query.getParentElement(c[T],"LI")):(N=A,k={r:N,f:[u.query.getParentElement(c[T],"LI")]}),T===M-1&&(o&&u.check.isListCell(A.parentNode)?E(this,nd,B0).call(this,k.f):v=n(this,Fe).format.removeBlock(k.f[0].parentElement,{selectedFormats:k.f,newBlockElement:_,shouldDelete:!1,skipHistory:!0})))}else{const y=p&&p.parentNode,C=f&&f.parentNode;p=y&&!u.check.isWysiwygFrame(y)&&y.nodeName===s?y:p,f=C&&!u.check.isWysiwygFrame(C)&&C.nodeName===s?C:f;const k=(p==null?void 0:p.tagName)===s,_=(f==null?void 0:f.tagName)===s;let S=k?p:u.utils.createElement(s,{style:"list-style-type: "+r}),T=null,M=null;const N=A=>!u.check.isComponentContainer(A)&&!u.check.isList(A);for(let A=0,B=c.length,$,L,O,D,I,R,F,q,H;A<B;A++){if(L=c[A],L.childNodes.length===0&&!n(this,Fe).inline._isIgnoreNodeChange(L)){u.utils.removeItem(L);continue}if(D=c[A+1],I=L.parentNode,R=D?D.parentNode:null,O=u.check.isListCell(L),H=n(this,Fe).format.isBlock(I)?I:null,F=O&&!u.check.isWysiwygFrame(I)?I.parentNode:I,q=O&&!u.check.isWysiwygFrame(I)?!D||u.check.isListCell(F)?I:I.nextSibling:L.nextSibling,$=u.utils.createElement("LI"),n(this,Fe).component.is(L)){const V=/^HR$/i.test(L.nodeName);V||($.innerHTML="<br>"),$.innerHTML+=L.outerHTML,V&&($.innerHTML+="<br>")}else{u.utils.copyFormatAttributes($,L);const V=L.childNodes;for(;V[0];)$.appendChild(V[0])}S.appendChild($),(!D||F!==R||n(this,Fe).format.isBlock(q))&&(T||(T=S),(!k||!D||F!==R)&&!(D&&u.check.isList(R)&&R===I)&&S.parentNode!==F&&F.insertBefore(S,q)),u.utils.removeItem(L),k&&M===null&&(M=S.children.length-1),D&&(n(this,Fe).format.getBlock(R,N)!==n(this,Fe).format.getBlock(I,N)||u.check.isList(R)&&u.check.isList(I)&&u.query.getNodeDepth(R)!==u.query.getNodeDepth(I))&&(S=u.utils.createElement(s,{style:"list-style-type: "+r})),(H==null?void 0:H.children.length)===0&&u.utils.removeItem(H)}M&&(T=T.children[M]),_&&(S.innerHTML+=f.innerHTML,u.utils.removeItem(f))}return n(this,od).set("_lastSelectionNode",null),!b||!m?g:v||g}remove(e,t){let o={},s=!1,r=!1,l=null,c=null;const d=h=>!u.check.isComponentContainer(h);for(let h=0,p=e.length,f,m,g,v;h<p;h++){if(g=h===p-1,m=n(this,Fe).format.getBlock(e[h],d),v=u.check.isList(m),!f&&v)f=m,o={r:f,f:[u.query.getParentElement(e[h],"LI")]},h===0&&(s=!0);else if(f&&v)if(f!==m){const b=n(this,Fe).format.removeBlock(o.f[0].parentNode,{selectedFormats:o.f,newBlockElement:null,shouldDelete:t,skipHistory:!0});m=e[h].parentNode,s&&(l=b.sc,s=!1),g&&(c=b.ec),v?(f=m,o={r:f,f:[u.query.getParentElement(e[h],"LI")]},g&&(r=!0)):f=null}else o.f.push(u.query.getParentElement(e[h],"LI")),g&&(r=!0);if(g&&u.check.isList(f)){const b=n(this,Fe).format.removeBlock(o.f[0].parentNode,{selectedFormats:o.f,newBlockElement:null,shouldDelete:t,skipHistory:!0});(r||p===1)&&(c=b.ec),s&&(l=b.sc||c)}}return{sc:l,ec:c}}applyNested(e,t){var c;e=e||n(this,Fe).format.getLines().filter(function(d){return u.check.isListCell(d)});const o=e.length;if(o===0||!t&&!u.check.isListCell(e[0].previousElementSibling)&&!u.check.isListCell(e.at(-1).nextElementSibling))return{sc:e[0],so:0,ec:e.at(-1),eo:1};let s=e[0].parentElement,r=e.at(-1),l=null;if(t){if(s!==r.parentElement&&u.check.isList((c=r.parentElement)==null?void 0:c.parentElement)&&r.nextElementSibling)for(r=r.nextElementSibling;r;)e.push(r),r=r.nextElementSibling;l=this.apply(s.nodeName+":"+s.style.listStyleType,e,!0)}else{let d=u.utils.createElement(s.nodeName),h=e[0].previousElementSibling,p=r.nextElementSibling;const f={s:null,e:null,sl:s,el:s},{startContainer:m,startOffset:g,endContainer:v,endOffset:b}=n(this,Fe).selection.getRange();for(let y=0,C=o,k;y<C;y++)k=e[y],k.parentElement!==s&&(E(this,sd,A0).call(this,s,d,h,p,f),s=k.parentElement,d=u.utils.createElement(s.nodeName)),h=k.previousElementSibling,p=k.nextElementSibling,d.appendChild(k);if(E(this,sd,A0).call(this,s,d,h,p,f),o>1){const y=u.query.getNodeFromPath(f.s,f.sl),C=u.query.getNodeFromPath(f.e,f.el);l={sc:y,so:0,ec:C,eo:C.textContent.length}}else l={sc:m,so:g,ec:v,eo:b}}return l}removeNested(e,t){const o=av(e);let s,r;if(o){s=o.cloneNode(!1),r=o.childNodes;const c=u.query.getPositionIndex(e);for(;r[c];)s.appendChild(r[c])}else s=e;let l;if(t)l=u.query.getListChildren(s,c=>u.check.isListCell(c)&&!c.previousElementSibling,null);else{const c=u.query.getNodeDepth(e)+2;l=u.query.getListChildren(e,d=>u.check.isListCell(d)&&!d.previousElementSibling&&u.query.getNodeDepth(d)===c,null)}for(let c=0,d=l.length;c<d;c++)av(l[c]);return o&&(o.parentNode.insertBefore(s,o.nextSibling),(r==null?void 0:r.length)===0&&u.utils.removeItem(o)),s===e?s.parentNode:s}}Fe=new WeakMap,od=new WeakMap,sd=new WeakSet,A0=function(e,t,o,s,r){let l=!1;if(t.tagName===(o==null?void 0:o.tagName)){const c=t.children;for(;c[0];)o.appendChild(c[0]);t=o,l=!0}if(t.tagName===(s==null?void 0:s.tagName)){const c=s.children;for(;c[0];)t.appendChild(c[0]);const d=s.nextElementSibling;s.parentNode.removeChild(s),s=d}if(!l){u.check.isListCell(o)&&(e=o,s=null),e.insertBefore(t,s),r.s||(r.s=u.query.getNodePath(t.firstElementChild.firstChild,e,null),r.sl=e);const c=e.contains(r.sl)?u.query.getNodePath(r.sl,e):null;r.e=u.query.getNodePath(t.lastElementChild.firstChild,e,null),r.el=e,n(this,Fe).nodeTransform.mergeSameTags(e,[r.s,r.e,c],!1),n(this,Fe).nodeTransform.mergeNestedTags(e),c&&(r.sl=u.query.getNodeFromPath(c,e))}return t},nd=new WeakSet,B0=function(e){const t=e[0],o=e.at(-1),s=o.nextElementSibling,r=t.parentElement,l=r.parentElement.nextElementSibling,c=r.parentElement.parentElement;for(let h=0,p=e.length;h<p;h++)c.insertBefore(e[h],l);if(s&&r.children.length>0){const h=r.cloneNode(!1),p=r.childNodes,f=u.query.getPositionIndex(s);for(;p[f];)h.appendChild(p[f]);o.appendChild(h)}r.children.length===0&&u.utils.removeItem(r),n(this,Fe).nodeTransform.mergeSameTags(c);const d=u.query.getEdgeChildNodes(t,o);return{cc:t.parentNode,sc:d.sc,ec:d.ec}};function av(i){const e=i.parentNode;let t=e.parentNode,o=e,s,r,l,c,d;for(;u.check.isListCell(t);){for(c=u.query.getPositionIndex(i),s=t.nextElementSibling,r=t.parentNode,l=o;l;){if(o=o.nextSibling,u.check.isList(l)){for(d=l.childNodes;d[c];)r.insertBefore(d[c],s);d.length===0&&u.utils.removeItem(l)}else r.appendChild(l);l=o}t=r.parentNode}return e.children.length===0&&u.utils.removeItem(e),r}const wB=yB,{_d:bc}=ge,CB="data-se-[^\\s]+",kB="|data-index|data-file-size|data-file-name|data-exp|data-font-size",_B=new RegExp(De.zeroWidthSpace+"+","g");class xB{constructor(e){w(this,Vn);w(this,yd);w(this,Kp);w(this,Xp);w(this,Qp);w(this,Jp);w(this,ef);w(this,tf);w(this,wd);w(this,Cd);w(this,Rn);w(this,of);w(this,sf);w(this,nf);w(this,rf);w(this,af);w(this,lf);w(this,U,void 0);w(this,Ri,void 0);w(this,tt,void 0);w(this,$n,void 0);w(this,Tt,void 0);w(this,rd,void 0);w(this,ad,void 0);w(this,ld,void 0);w(this,cd,void 0);w(this,Ta,void 0);w(this,dd,void 0);w(this,hd,void 0);w(this,ud,void 0);w(this,pd,void 0);w(this,fd,void 0);w(this,md,void 0);w(this,gd,void 0);w(this,On,void 0);w(this,Ma,void 0);w(this,Sa,void 0);w(this,Aa,void 0);w(this,Ba,void 0);w(this,bd,void 0);w(this,vd,void 0);w(this,Dn,void 0);x(this,U,e.$),x(this,Ri,e.store);const t=x(this,Tt,n(this,U).options);x(this,$n,n(this,U).frameOptions),x(this,tt,n(this,U).frameContext),x(this,rd,n(this,U).instanceCheck),x(this,ld,(function(y){return this.test(y)?y:""}).bind(t.get("allowedClassName"))),x(this,Ma,t.get("_textStyleTags"));const o=t.get("tagStyles"),s={};for(const y in o){const C=y.split("|");for(let k=0,_=C.length,S;k<_;k++)S=C[k],s[S]?s[S]+="|":s[S]="",s[S]+=o[y]}for(const y in s)s[y]=new RegExp(`\\s*[^-a-zA-Z](${s[y]})\\s*:[^;]+(?!;)*`,"gi");const r=new Map;for(const y in s)r.set(new RegExp(`^(${y})$`),s[y]);x(this,gd,new RegExp(`^(${Object.keys(s).join("|")})$`,"i")),x(this,On,r),x(this,ad,new RegExp("\\d+("+t.get("fontSizeUnits").join("|")+")$","i"));const l=t.get("_allowedExtraTag"),c=t.get("_disallowedExtraTag");x(this,Sa,new RegExp(`<(${c})[^>]*>([\\s\\S]*?)<\\/\\1>|<(${c})[^>]*\\/?>`,"gi")),x(this,Aa,new RegExp(`^(${c})$`,"i")),x(this,Ba,new RegExp(`^(${l})$`,"i"));const d=Object.keys(t.get("_defaultStyleTagMap")),h=t.get("elementWhitelist")?t.get("elementWhitelist").split("|").filter(y=>/b|i|ins|s|strike/i.test(y)):[];for(let y=0;y<h.length;y++)d.splice(d.indexOf(h[y].toLowerCase()),1);x(this,Ta,d.length===0?null:new RegExp("(<\\/?)("+d.join("|")+")\\b\\s*([^>^<]+)?\\s*(?=>)","gi"));const p=t.get("__defaultAttributeWhitelist");x(this,cd,t.get("_editorElementWhitelist").includes("//")||t.get("_editorElementWhitelist")==="*"),x(this,dd,new RegExp("^("+zr(t.get("_editorElementWhitelist").replace("|//",""),"")+")$","i")),x(this,hd,new RegExp("^("+(t.get("elementBlacklist")||"^")+")$","i")),x(this,ud,Te.createElementWhitelist(zr(t.get("_editorElementWhitelist").replace("|//","|<!--|-->"),""))),x(this,pd,Te.createElementBlacklist(t.get("elementBlacklist").replace("|//","|<!--|-->")));const f='\\s*=\\s*(")[^"]*\\1',m=t.get("attributeWhitelist");let g={},v="";if(m)for(const y in m)/^on[a-z]+$/i.test(m[y])||(y==="*"?v=zr(m[y],p):g[y]=new RegExp("\\s(?:"+zr(m[y],p)+")"+f,"ig"));x(this,fd,new RegExp("\\s(?:"+(v||p)+"|"+CB+(t.get("v2Migration")?kB:"")+")"+f,"ig")),x(this,bd,g);const b=t.get("attributeBlacklist");if(g={},v="",b)for(const y in b)y==="*"?v=zr(b[y],""):g[y]=new RegExp("\\s(?:"+zr(b[y],"")+")"+f,"ig");x(this,md,new RegExp("\\s(?:"+(v||"^")+")"+f,"ig")),x(this,vd,g),this.__resetAutoStyleify(t.get("autoStyleify"))}filter(e,{tagWhitelist:t,tagBlacklist:o,validate:s,validateAll:r}){if(t&&(e=e.replace(Te.createElementWhitelist(t),"")),o&&(e=e.replace(Te.createElementBlacklist(o),"")),s){const l=new DOMParser().parseFromString(e,"text/html");l.body.querySelectorAll("*").forEach(c=>{if(r||!c.closest(".se-component")&&!c.closest(".se-flex-component")){const d=s(c);d===null?c.remove():n(this,rd).isNode(d)?c.replaceWith(d):typeof d=="string"&&(c.outerHTML=d)}}),e=l.body.innerHTML}return e}clean(e,{forceFormat:t,whitelist:o,blacklist:s,_freeCodeViewMode:r}={}){const{tagFilter:l,formatFilter:c,classFilter:d,textStyleTagFilter:h,attrFilter:p,styleFilter:f}=n(this,Tt).get("strictMode");let m="";if(e=this.compress(e),l&&(e=e.replace(n(this,Sa),""),e=E(this,of,jy).call(this,e,n(this,ud),n(this,pd)).replace(/<br\/?>$/i,"")),n(this,Dn)){const b=new DOMParser().parseFromString(e,"text/html");u.query.getListChildNodes(b.body,Te.spanToStyleNode.bind(null,n(this,Dn)),null),e=b.body.innerHTML}(p||f)&&(e=e.replace(/(<[a-zA-Z0-9-]+)[^>]*(?=>)/g,E(this,rf,Uy).bind(this,p,f)));const g=bc.createRange().createContextualFragment(e);if(l)try{E(this,Qp,Ry).call(this,g,n(this,dd),n(this,hd),l,c,d,r)}catch(b){console.warn("[SUNEDITOR.html.clean.fail]",b.message)}const v=g.querySelectorAll("[data-se-iframe-holder]");for(let b=0,y=v.length;b<y;b++){const C=u.utils.createElement("iframe"),k=JSON.parse(v[b].getAttribute("data-se-iframe-holder-attrs"));for(const[_,S]of Object.entries(k))/^on/i.test(_)||_==="src"&&!hv(String(S))||C.setAttribute(_,S);v[b].replaceWith(C)}if(n(this,U).pluginManager.applyRetainFormat(g),c){let b=g.childNodes;t||(t=E(this,Cd,I0).call(this,b)),t&&(b=E(this,tf,Hy).call(this,g).childNodes);for(let y=0,C=b.length,k;y<C;y++){if(k=b[y],n(this,Ba).test(k.nodeName)){m+=k.outerHTML;continue}m+=E(this,Kp,Dy).call(this,k,t)}}return m||(m=e),l&&(o&&(m=m.replace(typeof o=="string"?Te.createElementWhitelist(o):o,"")),s&&(m=m.replace(typeof s=="string"?Te.createElementBlacklist(s):s,""))),h&&(m=E(this,ef,Py).call(this,m)),!r&&m.includes(De.zeroWidthSpace)&&(m=m.replace(_B,(b,y,C)=>{const k=y===0||C[y-1]===">",_=y+b.length===C.length||C[y+b.length]==="<";return k&&_?b:""})),m}insert(e,{selectInserted:t,skipCharCount:o,skipCleaning:s}={}){n(this,tt).get("wysiwyg").contains(n(this,U).selection.get().focusNode)||n(this,U).focusManager.focus(),this.remove(),n(this,U).focusManager.focus();let r=null;if(typeof e=="string"){s||(e=this.clean(e,{forceFormat:!1,whitelist:null,blacklist:null}));try{if(u.check.isListCell(n(this,U).format.getLine(n(this,U).selection.getNode(),null))){const b=bc.createRange().createContextualFragment(e).childNodes;E(this,Cd,I0).call(this,b)&&(e=E(this,wd,L0).call(this,b))}const c=bc.createRange().createContextualFragment(e).childNodes;if(!o){const v=n(this,$n).get("charCounter_type")==="byte-html"?"outerHTML":"textContent";let b="";for(let y=0,C=c.length;y<C;y++)b+=c[y][v];if(!n(this,U).char.check(b))return}let d,h,p,f,m;for(;d=c[0];){if((f==null?void 0:f.nodeType)===3&&(h==null?void 0:h.nodeType)===1&&u.check.isBreak(d)){f=d,u.utils.removeItem(d);continue}p=this.insertNode(d,{afterNode:h,skipCharCount:!0}),h=p.container||p,m||(m=p),f=d}(f==null?void 0:f.nodeType)===3&&(h==null?void 0:h.nodeType)===1&&(h=f);const g=h.nodeType===3?p.endOffset||h.textContent.length:h.childNodes.length;r=h,t?n(this,U).selection.setRange(m.container||m,m.startOffset||0,h,g):n(this,U).component.is(h)||n(this,U).selection.setRange(h,g,h,g)}catch(l){if(n(this,tt).get("isReadOnly")||n(this,tt).get("isDisabled"))return;throw Error(`[SUNEDITOR.html.insert.error] ${l.message}`)}}else if(n(this,U).component.is(e))n(this,U).component.insert(e,{skipCharCount:o,insertBehavior:"none"});else{let l=null;(n(this,U).format.isLine(e)||u.check.isMedia(e))&&(l=n(this,U).format.getLine(n(this,U).selection.getNode(),null)),this.insertNode(e,{afterNode:l,skipCharCount:o})}if(n(this,Ri).set("_lastSelectionNode",null),r){const l=u.query.getListChildNodes(r,null,null);if(l.length>0){r=l.at(-1);const c=(r==null?void 0:r.nodeType)===3?r.textContent.length:1;n(this,U).selection.setRange(r,c,r,c)}else n(this,U).focusManager.focus()}else n(this,U).focusManager.focus();n(this,U).history.push(!1)}insertNode(e,{afterNode:t,skipCharCount:o}={}){let s=null;if(n(this,tt).get("isReadOnly")||!o&&!n(this,U).char.check(e))return s;let r=null,l=null;if(t){const T=n(this,U).format.isLine(t)||n(this,U).format.isBlock(t)||n(this,U).component.is(t)?n(this,U).format.addLine(t,null):t;l=n(this,U).selection.setRange(T,1,T,1)}else l=n(this,U).selection.getRange();let c=u.check.isListCell(l.commonAncestorContainer)?l.commonAncestorContainer:n(this,U).format.getLine(n(this,U).selection.getNode(),null),d=u.check.isListCell(c)&&(u.check.isListCell(e)||u.check.isList(e)),h,p,f,m=null;const g=n(this,U).format.isBrLine(c),v=n(this,U).format.isLine(e)||n(this,U).format.isBlock(e)||n(this,U).component.isBasic(e);if(d&&(f=t||u.check.isList(e)?c.lastChild:c.nextElementSibling,m=u.check.isList(e)?c:(f||c).parentNode),!t&&(v||n(this,U).component.isBasic(e)||u.check.isMedia(e))){const T=u.check.isEdgePoint(l.endContainer,l.endOffset,"end"),M=this.remove(),N=M.container,A=N===M.prevContainer&&l.collapsed?null:M.prevContainer;if(d&&A)if(m=A.nodeType===3?A.parentNode:A,m.contains(N)){let B=!0;for(f=N;f.parentNode&&f.parentNode!==m;)f=f.parentNode,B=!1;B&&N===A&&(f=f.nextSibling)}else f=null;else if(d&&u.check.isListCell(N)&&!c.parentElement)c=u.utils.createElement("LI"),m.appendChild(c),N.appendChild(m),f=null;else if(N.nodeType===3||u.check.isBreak(N)||d){const B=u.query.getParentElement(N,$=>n(this,U).format.isBlock($)||u.check.isListCell($));if(t=n(this,U).nodeTransform.split(N,M.offset,B?u.query.getNodeDepth(B)+1:0),!t)u.check.isListCell(c)||(f=t=c);else if(d){if(c.contains(N)){const $=u.check.isList(c.lastElementChild);let L=null;T||(L=c.cloneNode(!1),L.appendChild(t.textContent.trim()?t:u.utils.createTextNode(De.zeroWidthSpace))),$&&(L||(L=c.cloneNode(!1),L.appendChild(u.utils.createTextNode(De.zeroWidthSpace))),L.appendChild(c.lastElementChild)),L&&(c.parentNode.insertBefore(L,c.nextElementSibling),f=t=L)}}else t=t.previousSibling}}l=!t&&!v?n(this,U).selection.getRangeAndAddLine(n(this,U).selection.getRange(),null):n(this,U).selection.getRange();const b=l.commonAncestorContainer,y=l.startOffset,C=l.endOffset,k=l.startContainer===b&&n(this,U).format.isLine(b),_=k&&(b.childNodes[y]||b.childNodes[0])||l.startContainer,S=k&&(b.childNodes[C]||b.childNodes[b.childNodes.length-1])||l.endContainer;if(!d)if(t)h=t.parentNode,t=t.nextSibling,p=!0;else if(h=_,_.nodeType===3&&(h=_.parentNode),l.collapsed)if(b.nodeType===3)b.textContent.length>C?t=b.splitText(C):t=b.nextSibling;else if(u.check.isBreak(h))t=h,h=h.parentNode;else{const T=h.childNodes[y],M=(T==null?void 0:T.nodeType)===3&&u.check.isZeroWidth(T)&&u.check.isBreak(T.nextSibling)?T.nextSibling:T;M?!M.nextSibling&&u.check.isBreak(M)?(h.removeChild(M),t=null):t=u.check.isBreak(M)&&!u.check.isBreak(e)?M:M.nextSibling:t=null}else if(_===S){u.check.isEdgePoint(S,C)?t=S.nextSibling:t=S.splitText(C);let M=_;u.check.isEdgePoint(_,y)||(M=_.splitText(y)),h.removeChild(M),h.childNodes.length===0&&v&&(h.innerHTML="<br>")}else{const M=this.remove(),N=M.container,A=M.prevContainer;if((N==null?void 0:N.childNodes.length)===0&&v&&(n(this,U).format.isLine(N)?N.innerHTML="<br>":n(this,U).format.isBlock(N)&&(N.innerHTML="<"+n(this,Tt).get("defaultLine")+"><br></"+n(this,Tt).get("defaultLine")+">")),u.check.isListCell(N)&&e.nodeType===3)h=N,t=null;else if(!v&&A)if(h=A.nodeType===3?A.parentNode:A,h.contains(N)){let B=!0;for(t=N;t.parentNode&&t.parentNode!==h;)t=t.parentNode,B=!1;B&&N===A&&(t=t.nextSibling)}else t=null;else u.check.isWysiwygFrame(N)&&!n(this,U).format.isLine(e)?(h=N.appendChild(u.utils.createElement(n(this,Tt).get("defaultLine"))),t=null):(t=v?S:N===A?N.nextSibling:N,h=!t||!t.parentNode?b:t.parentNode);for(;t&&!n(this,U).format.isLine(t)&&t.parentNode!==b;)t=t.parentNode}try{const T=n(this,tt).get("wysiwyg");if(!d){if((u.check.isWysiwygFrame(t)||h===T.parentNode)&&(h=T,t=null),n(this,U).format.isLine(e)||n(this,U).format.isBlock(e)||!u.check.isListCell(h)&&n(this,U).component.isBasic(e)){const M=h;if(u.check.isListCell(t))h=t.previousElementSibling||t;else if(!p&&!t){const N=this.remove(),A=N.container.nodeType===3?u.check.isListCell(n(this,U).format.getLine(N.container,null))?N.container:n(this,U).format.getLine(N.container,null)||N.container.parentNode:N.container,B=u.check.isWysiwygFrame(A)||n(this,U).format.isBlock(A);h=B?A:A.parentNode,t=B?null:A.nextSibling}M.childNodes.length===0&&h!==M&&u.utils.removeItem(M)}if(v&&!g&&!n(this,U).format.isBlock(h)&&!u.check.isListCell(h)&&!u.check.isWysiwygFrame(h)&&(t=h.nextElementSibling,h=h.parentNode),u.check.isWysiwygFrame(h)&&(e.nodeType===3||u.check.isBreak(e))){const M=u.utils.createElement(n(this,Tt).get("defaultLine"),null,e);r=e,e=M}}if(d?m.parentNode?(h=m,t=f):(h=T,t=null):t=h===t?h.lastChild:t,u.check.isListCell(e)&&!u.check.isList(h)){if(u.check.isListCell(h))t=h.nextElementSibling,h=h.parentNode;else{const M=u.utils.createElement("ol");h.insertBefore(M,t),h=M,t=null}d=!0}if(E(this,sf,Fy).call(this,e,h),h.insertBefore(e,t),d)if(u.check.isZeroWidth(c.textContent.trim()))u.utils.removeItem(c),e=e.lastChild;else{const M=u.utils.arrayFind(c.children,u.check.isList);M&&(e!==M?(e.appendChild(M),e=M.previousSibling):(h.appendChild(e),e=h),u.check.isZeroWidth(c.textContent.trim())&&u.utils.removeItem(c))}}catch(T){h.appendChild(e),console.warn("[SUNEDITOR.html.insertNode.warn]",T)}finally{r&&(e=r);const T=h.querySelectorAll("[data-duple]");if(T.length>0)for(let M=0,N=T.length,A,B,$,L;M<N;M++){for(A=T[M],$=A.childNodes,L=A.parentNode;$[0];)B=$[0],L.insertBefore(B,A);A===e&&(e=B),u.utils.removeItem(A)}if((n(this,U).format.isLine(e)||n(this,U).component.isBasic(e))&&_===S){const M=n(this,U).format.getLine(b,null);(M==null?void 0:M.nodeType)===1&&u.check.isEmptyLine(M)&&u.utils.removeItem(M)}if(g&&!u.check.isList(e)&&(n(this,U).format.isLine(e)||n(this,U).format.isBlock(e))&&(e=E(this,yd,N0).call(this,e)),!n(this,U).component.isBasic(e)){let M=1;if(e.nodeType===3)M=e.textContent.length,n(this,U).selection.setRange(e,M,e,M);else if(!u.check.isBreak(e)&&!u.check.isListCell(e)&&n(this,U).format.isLine(h)){let N=null;(!e.previousSibling||u.check.isBreak(e.previousSibling))&&(N=u.utils.createTextNode(De.zeroWidthSpace),e.parentNode.insertBefore(N,e)),(!e.nextSibling||u.check.isBreak(e.nextSibling))&&(N=u.utils.createTextNode(De.zeroWidthSpace),e.parentNode.insertBefore(N,e.nextSibling)),n(this,U).inline._isIgnoreNodeChange(e)&&(e=e.nextSibling,M=0),n(this,U).selection.setRange(e,M,e,M)}}s=e}return s}remove(){var B,$,L;n(this,U).selection.resetRangeToTextNode();const e=n(this,U).selection.getRange(),t=e.startOffset===0,o=u.check.isEdgePoint(e.endContainer,e.endOffset,"end");let s=null,r=null,l=null;t&&(r=n(this,U).format.getLine(e.startContainer),s=r?r.previousElementSibling:null,r=r&&s),o&&(l=n(this,U).format.getLine(e.endContainer),l=l&&l.nextElementSibling);let c,d=0,h=e.startContainer,p=e.endContainer,f=e.startOffset,m=e.endOffset;const g=e.commonAncestorContainer.nodeType===3&&e.commonAncestorContainer.parentNode===h.parentNode?h.parentNode:e.commonAncestorContainer;if(u.check.isWysiwygFrame(h)&&u.check.isWysiwygFrame(p))return this.set(""),{container:n(this,U).selection.getNode(),offset:0,commonCon:g};if(g===h&&g===p)if(n(this,U).component.isBasic(g)){const D=n(this,U).component.get(g).container,I=D.parentElement,R=D.nextSibling||D.previousSibling,F=R===D.previousSibling?((B=R==null?void 0:R.textContent)==null?void 0:B.length)||1:0,q=I.nextElementSibling||I.previousElementSibling,H=q===I.previousElementSibling?(($=q==null?void 0:q.textContent)==null?void 0:$.length)||1:0;return u.utils.removeItem(D),n(this,U).format.isLine(I)?I.childNodes.length===0?(u.utils.removeItem(I),{container:q,offset:H,commonCon:g}):{container:R,offset:F,commonCon:g}:{container:q,offset:H,commonCon:g}}else{if(g.nodeType===1&&f===0&&m===1||g.nodeType===3&&f===0&&m===g.textContent.length){const O=u.query.getNextDeepestNode(g,n(this,tt).get("wysiwyg")),D=u.query.getPreviousDeepestNode(g,n(this,tt).get("wysiwyg")),I=n(this,U).format.getLine(g);u.utils.removeItem(g);let R=O||D,F=O?0:(R==null?void 0:R.nodeType)===3?R.textContent.length:1;const q=n(this,U).format.getLine(R)||n(this,U).component.get(R);return I!==q&&(R=q,F=F===0?0:1),u.check.isZeroWidth(I)&&!I.contains(R)&&u.utils.removeItem(I),{container:R,offset:F,commonCon:g}}h=g.children[f],p=g.children[m],f=m=0}if(!h||!p)return{container:g,offset:0,commonCon:g};if(h===p&&e.collapsed&&u.check.isZeroWidth((L=h.textContent)==null?void 0:L.substring(f)))return{container:h,offset:f,prevContainer:h&&h.parentNode?h:null,commonCon:g};let v=null,b=null;const y=u.query.getListChildNodes(g,null,null);let C=u.utils.getArrayIndex(y,h),k=u.utils.getArrayIndex(y,p);if(y.length>0&&C>-1&&k>-1){for(let O=C+1,D=h;O>=0;O--)y[O]===D.parentNode&&y[O].firstChild===D&&f===0&&(C=O,D=D.parentNode);for(let O=k-1,D=p;O>C;O--)y[O]===D.parentNode&&y[O].nodeType===1&&(y.splice(O,1),D=D.parentNode,--k)}else{if(y.length===0){if(n(this,U).format.isLine(g)||n(this,U).format.isBlock(g)||u.check.isWysiwygFrame(g)||u.check.isBreak(g)||u.check.isMedia(g))return{container:g,offset:0,commonCon:g};if(u.check.isText(g))return{container:g,offset:m,commonCon:g};y.push(g),h=p=g}else if(h=p=y[0],u.check.isBreak(h)||u.check.isZeroWidth(h))return{container:u.check.isMedia(g)?g:h,offset:0,commonCon:g};C=k=0}const _=u.check.isText,S=u.check.isElement,T=C===k;let M=null;for(let O=C;O<=k;O++){const D=y[O];if(_(D)&&(D.data===void 0||D.length===0)){M=E(this,Vn,Kh).call(this,D,T);continue}if(D===h){if(S(h)){if(n(this,U).component.is(h))continue;v=u.utils.createTextNode(h.textContent)}else{const I=h,R=p;D===p?(v=u.utils.createTextNode(I.substringData(0,f)+R.substringData(m,R.length-m)),d=f):v=u.utils.createTextNode(I.substringData(0,f))}if(v.length>0?h.data=v.data:M=E(this,Vn,Kh).call(this,h,T),D===p)break;continue}if(D===p){if(_(p))b=u.utils.createTextNode(p.substringData(m,p.length-m));else{if(n(this,U).component.is(p))continue;b=u.utils.createTextNode(p.textContent)}b.length>0?p.data=b.data:M=E(this,Vn,Kh).call(this,p,T);continue}M=E(this,Vn,Kh).call(this,D,T)}const N=u.query.getParentElement(p,"ul"),A=u.query.getParentElement(h,"li");if(N&&A&&A.contains(N)?(c=N.previousSibling,d=c.textContent.length):(c=p&&p.parentNode?p:h&&h.parentNode?h:e.endContainer||e.startContainer,(t||o)&&(o?c.nodeType===1&&c.childNodes.length===0?(c.appendChild(u.utils.createElement("BR")),d=1):d=c.textContent.length:d=0)),!n(this,U).format.getLine(c)&&!(h&&h.parentNode)&&(l?(c=l,d=0):r&&(c=r,d=1)),!u.check.isWysiwygFrame(c)&&c.childNodes.length===0){const O=n(this,U).nodeTransform.removeAllParents(c,null,null);O&&(c=O.sc||O.ec||n(this,tt).get("wysiwyg"))}return(!c||c.nodeType===1&&!n(this,U).format.isLine(c)&&!u.check.isBreak(c))&&(c=(M==null?void 0:M.sc)||(M==null?void 0:M.ec),d=(c==null?void 0:c.nodeType)===3?c.textContent.length:1),n(this,U).selection.setRange(c,d,c,d),{container:c,offset:d,prevContainer:s,commonCon:g!=null&&g.parentElement?g:null}}get({withFrame:e,includeFullPage:t,rootKey:o}={}){o?Array.isArray(o)||(o=[o]):o=[n(this,Ri).get("rootKey")];const s=n(this,Ri).get("rootKey"),r={};for(let l=0,c=o.length,d;l<c;l++){n(this,U).facade.changeFrameContext(o[l]);const h=u.utils.createElement("DIV",null,this._convertToCode(n(this,tt).get("wysiwyg"),!0)),p=h.querySelectorAll(".se-placeholder-line");for(let y=0,C=p.length;y<C;y++)p[y].classList.remove("se-placeholder-line"),p[y].removeAttribute("data-se-placeholder-line"),p[y].getAttribute("class")||p[y].removeAttribute("class");const f=u.check.isTableCell,m=u.check.isEmptyLine,g=[],v=[];u.query.getListChildren(h,y=>{y.hasAttribute("contenteditable")&&g.push(y);const C=y.parentElement;return f(C)&&C.children.length<=1&&m(y)&&v.push(C),!1},null);for(let y=0,C=g.length;y<C;y++)g[y].removeAttribute("contenteditable");for(let y=0,C=v.length;y<C;y++)v[y].innerHTML="<br>";E(this,lf,Zy).call(this,h);const b=h.innerHTML;if(n(this,$n).get("iframe_fullPage"))if(t){const y=u.utils.getAttributesToString(n(this,tt).get("_wd").body,["contenteditable"]);d=`<!DOCTYPE html><html>${n(this,tt).get("_wd").head.outerHTML}<body ${y}>${b}</body></html>`}else d=b;else d=e?`<div class="${n(this,Tt).get("_editableClass")+(n(this,Tt).get("_rtl")?" se-rtl":"")}">${b}</div>`:h.innerHTML;r[o[l]]=d}return n(this,U).facade.changeFrameContext(s),o.length>1?r:r[o[0]]}set(e,{rootKey:t}={}){n(this,U).ui.offCurrentController(),n(this,U).selection.removeRange();const o=e==null?"":this.clean(e,{forceFormat:!0,whitelist:null,blacklist:null});t?Array.isArray(t)||(t=[t]):t=[n(this,Ri).get("rootKey")];for(let s=0;s<t.length;s++)if(n(this,U).facade.changeFrameContext(t[s]),n(this,tt).get("isMarkdownView")){const r=Te.htmlToJson(o);n(this,tt).get("markdown").value=Ku.jsonToMarkdown(r)}else if(!n(this,tt).get("isCodeView"))n(this,tt).get("wysiwyg").innerHTML=o,n(this,U).pluginManager.resetFileInfo(),n(this,U).history.push(!1,t[s]);else{const r=this._convertToCode(o,!1);n(this,U).viewer._setCodeView(r)}}add(e,{rootKey:t}={}){n(this,U).ui.offCurrentController(),t?Array.isArray(t)||(t=[t]):t=[n(this,Ri).get("rootKey")];for(let o=0;o<t.length;o++){n(this,U).facade.changeFrameContext(t[o]);const s=this.clean(e,{forceFormat:!0,whitelist:null,blacklist:null});if(n(this,tt).get("isMarkdownView")){const r=Te.htmlToJson(s);n(this,tt).get("markdown").value+=`
|
|
86
|
-
`+Ku.jsonToMarkdown(r)}else if(n(this,tt).get("isCodeView"))n(this,U).viewer._setCodeView(n(this,U).viewer._getCodeView()+`
|
|
87
|
-
`+this._convertToCode(s,!1));else{const r=u.utils.createElement("DIV",null,s),l=Array.from(r.children);for(let c=0,d=l.length;c<d;c++)n(this,tt).get("wysiwyg").appendChild(l[c]);n(this,U).history.push(!1,t[o]),n(this,U).selection.scrollTo(l.at(-1))}}}getJson({withFrame:e,rootKey:t}={}){return Te.htmlToJson(this.get({withFrame:e,rootKey:t}))}setJson(e,{rootKey:t}={}){this.set(Te.jsonToHtml(e),{rootKey:t})}async copy(e){try{return typeof e!="string"&&!u.check.isElement(e)&&!u.check.isText(e)?!1:await MA.write(e)===!1?(n(this,U).ui.showToast(n(this,U).lang.message_copy_fail,n(this,Tt).get("toastMessageTime").copy,"error"),!1):(n(this,U).ui.showToast(n(this,U).lang.message_copy_success,n(this,Tt).get("toastMessageTime").copy),!0)}catch(t){return console.error("[SUNEDITOR.html.copy.fail] :",t),n(this,U).ui.showToast(n(this,U).lang.message_copy_fail,n(this,Tt).get("toastMessageTime").copy,"error"),!1}}setFullPage(e,{rootKey:t}={}){if(!n(this,$n).get("iframe"))return!1;t?Array.isArray(t)||(t=[t]):t=[n(this,Ri).get("rootKey")];for(let o=0;o<t.length;o++)n(this,U).facade.changeFrameContext(t[o]),e.head&&(n(this,tt).get("_wd").head.innerHTML=e.head.replace(n(this,Sa),"")),e.body&&(n(this,tt).get("_wd").body.innerHTML=this.clean(e.body,{forceFormat:!0,whitelist:null,blacklist:null})),n(this,U).pluginManager.resetFileInfo()}compress(e){return e.replace(/>\s+</g,"> <").replace(/\n/g,"").trim()}_convertToCode(e,t){let o="";const s=RegExp,r=new s("^(BLOCKQUOTE|PRE|TABLE|THEAD|TBODY|TR|TH|TD|OL|UL|IMG|IFRAME|VIDEO|AUDIO|FIGURE|FIGCAPTION|HR|BR|CANVAS|SELECT)$","i"),l=typeof e=="string"?bc.createRange().createContextualFragment(e):e,c=f=>n(this,U).format.isLine(f)||n(this,U).component.is(f),d=t?"":`
|
|
88
|
-
`,h=t?0:n(this,Ri).get("codeIndentSize")*1,p=h>0?new Array(h+1).join(" "):"";return function f(m,g){const v=m==null?void 0:m.childNodes;if(!v)return;const b=r.test(m.nodeName),y=b?g:"";for(let C=0,k=v.length,_,S,T,M,N,A;C<k;C++){if(_=v[C],M=r.test(_.nodeName),S=M?d:"",T=c(_)&&!b&&!/^(TH|TD)$/i.test(m.nodeName)?d:"",_.nodeType===8){o+=`
|
|
89
|
-
<!-- `+_.textContent.trim()+" -->"+S;continue}if(_.nodeType===3){u.check.isList(_.parentElement)||(o+=Te.htmlToEntity(/^\n+$/.test(_.data)?"":_.data));continue}if(_.childNodes.length===0){o+=(/^HR$/i.test(_.nodeName)?d:"")+(/^PRE$/i.test(_.parentElement.nodeName)&&/^BR$/i.test(_.nodeName)?"":y)+_.outerHTML+S;continue}_.outerHTML?(N=_.nodeName.toLowerCase(),A=y||M?g:"",o+=(T||(b?"":S))+A+_.outerHTML.match(s("<"+N+"[^>]*>","i"))[0]+S,f(_,g+p+""),o+=(/\n$/.test(o)?A:"")+"</"+N+">"+(T||S||b||/^(TH|TD)$/i.test(_.nodeName)?d:"")):o+=new XMLSerializer().serializeToString(_)}}(l,""),o.trim()+d}__resetAutoStyleify(e){if(e.length>0){const t=n(this,Tt).get("convertTextTags"),o={};e.forEach(s=>{switch(s){case"bold":o.bold={regex:/font-weight\s*:\s*bold/i,tag:t.bold};break;case"italic":o.italic={regex:/font-style\s*:\s*italic/i,tag:t.italic};break;case"underline":o.underline={regex:/text-decoration\s*:\s*underline/i,tag:t.underline};break;case"strike":o.strike={regex:/text-decoration\s*:\s*line-through/i,tag:t.strike};break}}),x(this,Dn,o)}else x(this,Dn,null)}_destroy(){n(this,On)&&n(this,On).clear()}}U=new WeakMap,Ri=new WeakMap,tt=new WeakMap,$n=new WeakMap,Tt=new WeakMap,rd=new WeakMap,ad=new WeakMap,ld=new WeakMap,cd=new WeakMap,Ta=new WeakMap,dd=new WeakMap,hd=new WeakMap,ud=new WeakMap,pd=new WeakMap,fd=new WeakMap,md=new WeakMap,gd=new WeakMap,On=new WeakMap,Ma=new WeakMap,Sa=new WeakMap,Aa=new WeakMap,Ba=new WeakMap,bd=new WeakMap,vd=new WeakMap,Dn=new WeakMap,Vn=new WeakSet,Kh=function(e,t){const o=n(this,U).format.getLine(e,null);if(u.utils.removeItem(e),!u.check.isListCell(o)||t)return;const s=n(this,U).nodeTransform.removeAllParents(o,null,null);return u.check.isList(o==null?void 0:o.firstChild)&&o.insertBefore(u.utils.createTextNode(De.zeroWidthSpace),o.firstChild),s?{sc:s.sc,ec:s.ec}:null},yd=new WeakSet,N0=function(e){const t=e.parentNode;let o,s;for(;n(this,U).format.isLine(e)||n(this,U).format.isBlock(e);){for(o=e.childNodes,s=null;o[0];){if(s=o[0],n(this,U).format.isLine(s)||n(this,U).format.isBlock(s)){if(E(this,yd,N0).call(this,s),!e.parentNode)break;o=e.childNodes;continue}t.insertBefore(s,e)}e.childNodes.length===0&&u.utils.removeItem(e),e=u.utils.createElement("BR"),t.insertBefore(e,s.nextSibling)}return e},Kp=new WeakSet,Dy=function(e,t){const o=n(this,Tt).get("defaultLine");if(e.nodeType===1){if(n(this,Aa).test(e.nodeName))return"";if(u.check.isExcludeFormat(e))return e.outerHTML;const s=u.query.getListChildNodes(e,r=>u.check.isSpanWithoutAttr(r)&&!u.query.getParentElement(r,u.check.isExcludeFormat),null)||[];for(let r=s.length-1,l;r>=0;r--)l=s[r],l.outerHTML=l.innerHTML;if(!t||n(this,U).format.isLine(e)||n(this,U).format.isBlock(e)||n(this,U).component.is(e)||u.check.isMedia(e)||u.check.isFigure(e)||u.check.isAnchor(e)&&u.check.isMedia(e.firstElementChild)){const r=e;return u.check.isSpanWithoutAttr(e)?r.innerHTML:r.outerHTML}else{const r=e;return"<"+o+">"+(u.check.isSpanWithoutAttr(e)?r.innerHTML:r.outerHTML)+"</"+o+">"}}if(e.nodeType===3){if(!t)return Te.htmlToEntity(e.textContent);const s=e.textContent.split(/\n/g);let r="";for(let l=0,c=s.length,d;l<c;l++)d=s[l].trim(),d.length>0&&(r+="<"+o+">"+Te.htmlToEntity(d)+"</"+o+">");return r}return e.nodeType===8&&n(this,cd)?"<!--"+e.textContent.trim()+"-->":""},Xp=new WeakSet,Vy=function(e){return!e||e.nodeType===11||u.check.isWysiwygFrame(e)||u.check.isList(e)||u.check.isTableElements(e)||n(this,U).format.isBlock(e)},Qp=new WeakSet,Ry=function(e,t,o,s,r,l,c){const d=[],h=[],p=[],f=[],m=u.query.getListChildNodes(e,v=>{if(v.nodeType!==1)return r&&u.check.isList(v.parentElement)&&d.push(v),v.nodeType===3&&(!v.textContent||LB.test(v.textContent)&&(E(this,Xp,Vy).call(this,v.parentNode)||!v.previousSibling!=!v.nextSibling))&&d.push(v),!1;if(s&&(o.test(v.nodeName)||!t.test(v.nodeName)&&v.childNodes.length===0&&u.check.isExcludeFormat(v)))return d.push(v),!1;v.nodeName==="PRE"&&E(this,af,qy).call(this,v);const b=!u.query.getParentElement(v,u.check.isExcludeFormat);if(r){if(!u.check.isTableElements(v)&&!u.check.isListCell(v)&&!u.check.isAnchor(v)&&(n(this,U).format.isLine(v)||n(this,U).format.isBlock(v)||n(this,U).format.isTextStyleNode(v))&&v.childNodes.length===0&&b)return h.push(v),!1;if(u.check.isList(v.parentNode)&&!u.check.isList(v)&&!u.check.isListCell(v))return p.push(v),!1;if(u.check.isTableCell(v)){const C=v.firstElementChild;if(!n(this,U).format.isLine(C)&&!n(this,U).format.isBlock(C)&&!n(this,U).component.is(C))return f.push(v),!1}}if(l&&b&&v.className){const C=Array.from(v.classList).map(n(this,ld)).join(" ").trim();C?v.className=C:v.removeAttribute("class")}return r?!c&&v.parentNode!==e&&b&&(u.check.isListCell(v)&&!u.check.isList(v.parentNode)||(n(this,U).format.isLine(v)||n(this,U).component.is(v))&&!n(this,U).format.isBlock(v.parentNode)&&!u.query.getParentElement(v,n(this,U).component.is.bind(n(this,U).component))):!1},null);for(let v=0,b=d.length;v<b;v++)u.utils.removeItem(d[v]);const g=[];for(let v=0,b=m.length,y,C;v<b;v++)if(y=m[v],C=y.parentNode,!(!C||!C.parentNode))if(u.query.getParentElement(y,u.check.isListCell)){const k=y.childNodes;for(let _=k.length-1;_>=0;_--)C.insertBefore(k[_],y);g.push(y)}else C.parentNode.insertBefore(y,C),g.push(C);for(let v=0,b=g.length,y;v<b;v++)y=g[v],u.check.isZeroWidth(y.textContent.trim())&&u.utils.removeItem(y);for(let v=0,b=h.length;v<b;v++)u.utils.removeItem(h[v]);for(let v=0,b=p.length,y,C,k,_;v<b;v++)if(y=p[v],_=y.parentNode,!!_)if(C=u.utils.createElement("LI"),n(this,U).format.isLine(y)){for(k=y.childNodes;k[0];)C.appendChild(k[0]);_.insertBefore(C,y),u.utils.removeItem(y)}else y=y.nextSibling,C.appendChild(p[v]),_.insertBefore(C,y);for(let v=0,b=f.length,y,C;v<b;v++){if(y=f[v],C=u.utils.createElement("DIV"),C.innerHTML=y.innerHTML,y.textContent.trim().length===0&&E(this,Jp,zy).call(this,y)){let k=C;for(;k.firstElementChild;)k=k.firstElementChild;k.innerHTML="<br>"}y.innerHTML=C.outerHTML}},Jp=new WeakSet,zy=function(e){const t=e.querySelectorAll("*"),o=n(this,U).format;for(let s=0;s<t.length;s++)if(!o.isTextStyleNode(t[s]))return!1;return!0},ef=new WeakSet,Py=function(e){if(!n(this,Ta))return e;const t=n(this,Tt).get("_defaultStyleTagMap");return e.replace(n(this,Ta),(o,s,r,l)=>s+(typeof t[r]=="string"?t[r]:r)+(l?" "+l:""))},tf=new WeakSet,Hy=function(e){let t="",o;const s=e.childNodes;for(let r=0,l=s.length,c;r<l;r++){if(c=s[r],n(this,Ba).test(c.nodeName)){t+=c.outerHTML;continue}c.nodeType===8?t+="<!-- "+c.textContent+" -->":!/meta/i.test(c.nodeName)&&!n(this,U).format.isLine(c)&&!n(this,U).format.isBlock(c)&&!n(this,U).component.is(c)&&!u.check.isExcludeFormat(c)?(o||(o=u.utils.createElement(n(this,Tt).get("defaultLine"))),n(this,U).format.isTextStyleNode(c)&&c.removeAttribute("style"),o.appendChild(c),r--,l--):(o&&(t+=o.outerHTML,o=null),t+=c.outerHTML)}return o&&(t+=o.outerHTML),bc.createRange().createContextualFragment(t)},wd=new WeakSet,L0=function(e){let t="";for(let o=0,s=e.length,r;o<s;o++)r=e[o],r.nodeType===1?u.check.isList(r)?t+=r.innerHTML:u.check.isListCell(r)?t+=r.outerHTML:n(this,U).format.isLine(r)?t+="<li>"+(r.innerHTML.trim()||"<br>")+"</li>":n(this,U).format.isBlock(r)&&!u.check.isTableElements(r)?t+=E(this,wd,L0).call(this,r.children):t+="<li>"+r.outerHTML+"</li>":t+="<li>"+(r.textContent||"<br>")+"</li>";return t},Cd=new WeakSet,I0=function(e){let t=!1;for(let o=0,s=e.length,r;o<s;o++)if(r=e[o],r.nodeType===1&&!n(this,U).format.isTextStyleNode(r)&&!u.check.isBreak(r)&&!n(this,Aa).test(r.nodeName)){t=!0;break}return t},Rn=new WeakSet,Xh=function(e,t,o){var r;let s=(e.match(lv)||[])[0];if(n(this,Ma).includes(o)&&!s&&(e.match(NB)||[])[1]){const l=(e.match(IB)||[])[1],c=(e.match($B)||[])[1],d=(e.match(OB)||[])[1];(l||c||d)&&(s='style="'+(l?"font-size:"+Q.get(Number(l)/3.333,1)+"rem;":"")+(c?"font-family:"+c+";":"")+(d?"color:"+d+";":"")+'"')}if(s){t||(t=[]);let l;for(const[h,p]of n(this,On))if(h.test(o)){l=p;break}if(!l)return t;const c=s.replace(DB,"").match(l);if(!c)return t;const d=[];for(let h=0,p=c.length,f;h<p;h++)if(f=c[h].match(VB),f&&!RB.test(f[3])){const m=Te.kebabToCamelCase(f[1].trim()),g=(r=n(this,tt).get("wwComputedStyle")[m])==null?void 0:r.replace(zB,""),v=f[3].trim();switch(m){case"fontFamily":if(!n(this,U).plugins.font||!n(this,U).plugins.font.fontArray.includes(v))continue;break;case"fontSize":if(!n(this,U).plugins.fontSize)continue;n(this,ad).test(f[0])||(f[0]=f[0].replace((f[0].match(PB)||[])[1],Te.toFontUnit.bind(null,n(this,Tt).get("fontSizeUnits")[0])));break;case"color":if(!n(this,U).plugins.fontColor||cv.test(v))continue;break;case"backgroundColor":if(!n(this,U).plugins.backgroundColor||cv.test(v))continue;break}g!==v&&d.push(f[0])}d.length>0&&t.push('style="'+d.join(";")+'"')}return t},of=new WeakSet,jy=function(e,t,o){return t.test("<font>")&&(e=e.replace(/(<\/?)font(\s?)/gi,"$1span$2")),e.replace(t,"").replace(o,"")},sf=new WeakSet,Fy=function(e,t){const o=s=>{E(this,nf,Wy).call(this,s,t);const r=s.childNodes;for(let l=0,c=r.length;l<c;l++)o(r[l])};o(e)},nf=new WeakSet,Wy=function(e,t){if(!n(this,U).format.isTextStyleNode(e))return;const o=(e.style.cssText.match(dv)||[]).map(function(c){return c.trim()}),s=e.nodeName;if(HB.test(s)&&o.length===0)return e;const r=n(this,U).format;let l=!1;return function c(d){if(!(u.check.isWysiwygFrame(d)||!r.isTextStyleNode(d))){if(d.nodeName===s){l=!0;const h=d.style.cssText.match(dv)||[];for(let p=0,f=h.length,m;p<f;p++)(m=o.indexOf(h[p].trim()))>-1&&o.splice(m,1);for(let p=0,f=d.classList.length;p<f;p++)e.classList.remove(d.classList[p])}c(d.parentElement)}}(t),l&&((e.style.cssText=o.join(" "))||(e.setAttribute("style",""),e.removeAttribute("style")),e.attributes.length===0&&e.setAttribute("data-duple","true")),e},rf=new WeakSet,Uy=function(e,t,o,s){if(EB.test(o))return o;let r=null;const l=s.match(TB)[0].toLowerCase();if(e){const c=n(this,vd)[l];o=o.replace(MB,""),c?o=o.replace(c,""):o=o.replace(n(this,md),"");const d=n(this,bd)[l];d?r=o.match(d):r=o.match(n(this,fd))}if(!t)return o;if(l==="a"){const c=o.match(/(?:(?:id|name)\s*=\s*(?:"|')[^"']*(?:"|'))/g);c&&(r||(r=[]),r.push(c[0]))}else(!r||!SB.test(r.toString()))&&(AB.test(o)?r=E(this,Rn,Xh).call(this,o,r,"@component"):n(this,gd).test(l)?r=E(this,Rn,Xh).call(this,o,r,l):n(this,U).format.isLine(l)?r=E(this,Rn,Xh).call(this,o,r,"@line"):n(this,Ma).includes(l)&&(r=E(this,Rn,Xh).call(this,o,r,"@text")));if(u.check.isMedia(l)||u.check.isFigure(l)){const c=o.match(lv);r||(r=[]),c&&r.push(c[0])}if(r)for(let c=0,d=r.length,h;c<d;c++)h=ZB(r[c].trim())?r[c]:"",s+=(BB.test(h)?"":" ")+h;return s},af=new WeakSet,qy=function(e){var s;if(e.children.length!==1||((s=e.firstElementChild)==null?void 0:s.nodeName)!=="CODE")return;const t=e.firstElementChild,o=(t.className||"").match(/language-(\S+)/);for(o&&(u.utils.addClass(e,"language-"+o[1]),e.setAttribute("data-se-lang",o[1]));t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)},lf=new WeakSet,Zy=function(e){const t=e.querySelectorAll('pre[class*="language-"]');for(let o=0,s=t.length,r,l,c;o<s;o++)if(r=t[o],l=(r.className.match(/language-(\S+)/)||[])[1],!!l){for(c=u.utils.createElement("CODE",{class:"language-"+l});r.firstChild;)c.appendChild(r.firstChild);r.appendChild(c),r.className=r.className.replace(/\s*language-\S+/g,"").trim(),r.removeAttribute("data-se-lang")}};const EB=/^<[a-z0-9]+:[a-z0-9]+/i,TB=/(?!<)[a-zA-Z0-9-]+/,MB=/\s(?:on[a-z]+)\s*=\s*(?:(["'])[^"']*\1|\S+)/gi,SB=/style=/i,lv=/style\s*=\s*(?:"|')[^"']*(?:"|')/,AB=/class\s*=\s*("|')(?:[^"']*\s)?se-component(?=[\s"'])/i,BB=/^\s/,NB=/<[^\s]+\s(.+)/,LB=/^[ \t\n\r\f\v]+$/,IB=/\ssize="([^"]+)"/i,$B=/\sface="([^"]+)"/i,OB=/\scolor="([^"]+)"/i,DB=/"/g,VB=/([a-zA-Z0-9-]+)(:)([^"']+)/,RB=/inherit|initial|revert|unset/i,zB=/"/g,PB=/:\s*([^;]+)/,cv=/rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i,dv=/[^;]+;/g,HB=/^span$/i,jB=/^(?:https?|ftps?|mailto|tel|blob|sms|geo|webcal|callto):|^[#/]|^data:image\//i,FB=/^(?:href|src)\s*=/i,WB=/=\s*(?:"([^"]*)"|'([^']*)'|(\S+))/,UB=/:/i;function qB(i){let e,t=5;do e=i,i=i.replace(/&(#x([0-9a-f]+)|#([0-9]+)|([a-z]+));/gi,(o,s,r,l)=>r?String.fromCharCode(parseInt(r,16)):l?String.fromCharCode(parseInt(l,10)):"");while(i!==e&&--t);try{i=decodeURIComponent(i)}catch{}return i=i.replace(/[\u0000-\u0020]+/g,""),i}function hv(i){const e=qB(i);return jB.test(e)||!UB.test(e)}function ZB(i){if(!FB.test(i))return!0;const e=i.match(WB);if(!e)return!0;const t=e[1]??e[2]??e[3]??"";return hv(t)}function zr(i,e){return i?i==="*"?"[a-z-]+":e?i+"|"+e:i:"^"}const GB=xB;class YB{constructor(e){w(this,Si,void 0);w(this,kd,void 0);x(this,Si,e.$),x(this,kd,n(this,Si).options)}split(e,t,o){var g,v;if(u.check.isWysiwygFrame(e)||n(this,Si).component.is(e)||!e)return e;if(t&&!Q.is(t)){const b=e.childNodes;let y=u.query.getPositionIndex(t);const C=e.cloneNode(!1),k=e.cloneNode(!1);for(let _=0,S=b.length;_<S;_++){if(_<y)C.appendChild(b[_]);else if(_>y)k.appendChild(b[_]);else continue;_--,S--,y--}return C.childNodes.length>0&&e.parentNode.insertBefore(C,e),k.childNodes.length>0&&e.parentNode.insertBefore(k,e.nextElementSibling),e}const s=e.parentNode;let r=0,l=1,c=!0,d,h,p;if((!o||o<0)&&(o=0),u.check.isText(e)){if(r=u.query.getPositionIndex(e),t=Number(t),t>=0&&e.length!==t){e.splitText(t);const b=u.query.getNodeFromPath([r+1],s);u.check.isZeroWidth(b)&&(b.data=De.zeroWidthSpace)}}else if(e.nodeType===1){if(t===0){for(;e.firstChild;)e=e.firstChild;if(e.nodeType===3){const b=u.utils.createTextNode(De.zeroWidthSpace);e.parentNode.insertBefore(b,e),e=b}}e.previousSibling?e=e.previousSibling:u.query.getNodeDepth(e)===o&&(c=!1)}e.nodeType===1&&(l=0);let f=e;for(;u.query.getNodeDepth(f)>o;)for(r=u.query.getPositionIndex(f)+l,f=f.parentNode,p=d,d=f.cloneNode(!1),h=f.childNodes,p&&(u.check.isListCell(d)&&u.check.isList(p)&&p.firstElementChild?(d.innerHTML=p.firstElementChild.innerHTML,u.utils.removeItem(p.firstElementChild),p.children.length>0&&d.appendChild(p)):d.appendChild(p));h[r];)d.appendChild(h[r]);f.nodeType===1&&f.childNodes.length<=1&&!((v=(g=f.firstChild)==null?void 0:g.textContent)!=null&&v.length)&&(f.innerHTML="<br>");const m=f.parentNode;return c&&(f=f.nextSibling),d?(this.mergeSameTags(d,null,!1),this.mergeNestedTags(d,u.check.isList),d.childNodes.length>0?m.insertBefore(d,f):d=f,u.check.isListCell(d)&&d.children&&u.check.isList(d.children[0])&&d.insertBefore(u.utils.createElement("BR"),d.children[0]),s.childNodes.length===0&&u.utils.removeItem(s),d):f}mergeSameTags(e,t,o){const s=t?t.length:0;let r=null;s&&(r=Array.apply(null,new Array(s)).map(Number.prototype.valueOf,0));const l=(c,d,h)=>{var f,m;const p=c.childNodes;for(let g=0,v=p.length,b,y;g<v&&(b=p[g],y=p[g+1],!!b);g++)if(!(u.check.isBreak(b)||u.check.isMedia(b)||u.check.isInputElement(b))){if(o&&n(this,Si).inline._isIgnoreNodeChange(b)||!o&&(u.check.isTableElements(b)||u.check.isListCell(b)||n(this,Si).format.isLine(b)&&!n(this,Si).format.isBrLine(b))){(u.check.isTableElements(b)||u.check.isListCell(b))&&l(b,d+1,g);continue}if(v===1&&c.nodeName===b.nodeName&&c.parentNode){if(s){let C,k,_,S,T;for(let M=0;M<s;M++)if(C=t[M],C&&C[d]===g){for(k=b,_=c,S=d,T=!0;S>=0;){if(u.utils.getArrayIndex(_.childNodes,k)!==C[S]){T=!1;break}k=b.parentNode,_=k.parentNode,S--}T&&(C.splice(d,1),C[d]=g)}}u.utils.copyTagAttributes(b,c),c.parentNode.insertBefore(b,c),u.utils.removeItem(c)}if(!y){b.nodeType===1&&l(b,d+1,g);break}if(b.nodeName===y.nodeName&&u.check.isSameAttributes(b,y)&&((f=b.getAttribute)==null?void 0:f.call(b,"href"))===((m=y.getAttribute)==null?void 0:m.call(y,"href"))){const C=b.childNodes;let k=0;for(let M=0,N=C.length;M<N;M++)C[M].textContent.length>0&&k++;const _=b.lastChild,S=y.firstChild;let T=0;if(_&&S){const M=_.nodeType===3&&S.nodeType===3;T=_.textContent.length;let N=_.previousSibling;for(;N&&N.nodeType===3;)T+=N.textContent.length,N=N.previousSibling;if(k>0&&_.nodeType===3&&S.nodeType===3&&(_.textContent.length>0||S.textContent.length>0)&&k--,s){let A=null;for(let B=0;B<s;B++)if(A=t[B],A&&A[d]>g){if(d>0&&A[d-1]!==h)continue;A[d]-=1,A[d+1]>=0&&A[d]===g&&(A[d+1]+=k,M&&_&&_.nodeType===3&&S&&S.nodeType===3&&(r[B]+=T))}}}if(b.nodeType===3){if(T=b.textContent.length,b.textContent+=y.textContent,s){let M=null;for(let N=0;N<s;N++)if(M=t[N],M&&M[d]>g){if(d>0&&M[d-1]!==h)continue;M[d]-=1,M[d+1]>=0&&M[d]===g&&(M[d+1]+=k,r[N]+=T)}}}else b.innerHTML+=y.innerHTML;u.utils.removeItem(y),g--}else b.nodeType===1&&l(b,d+1,g)}};return l(e,0,0),r}mergeNestedTags(e,t){if(typeof t=="string"){const o=new RegExp(`^(${t||".+"})$`,"i");t=s=>o.test(s.nodeName)}else typeof t!="function"&&(t=()=>!0);(function o(s){let r=s.children;if(r.length===1&&r[0].nodeName===s.nodeName&&t(s)){const l=r[0];for(r=l.children;r[0];)s.appendChild(r[0]);s.removeChild(l)}for(let l=0,c=s.children.length;l<c;l++)o(s.children[l])})(e)}removeAllParents(e,t,o){if(!e)return null;let s=null;return t||(t=r=>{if(r===o||n(this,Si).component.is(r))return!1;const l=r.textContent.trim();return l.length===0||/^(\n|\u200B)+$/.test(l)}),function r(l){if(!u.check.isWysiwygFrame(l)){const c=l.parentNode;c&&t(l)&&(s={sc:l.previousElementSibling,ec:l.nextElementSibling},u.utils.removeItem(l),r(c))}}(e),s}removeEmptyNode(e,t,o){const s=n(this,kd).get("allowedEmptyTags");t&&(t=u.query.getParentElement(t,l=>e===l.parentElement));const r=l=>{if(n(this,Si).format._isNotTextNode(l)||l===t||u.check.isNonEditable(l))return 0;if(l!==e&&u.check.isZeroWidth(l.textContent)&&(!l.firstChild||!u.check.isBreak(l.firstChild))&&!l.querySelector(s)){if(l.parentNode)return l.parentNode.removeChild(l),-1}else{const c=l.children;for(let d=0,h=c.length,p=0;d<h;d++)!c[d+p]||n(this,Si).component.is(c[d+p])||(p+=r(c[d+p]))}return 0};r(e),e.childNodes.length===0&&(o?u.utils.removeItem(e):e.innerHTML="<br>")}createNestedNode(e,t){typeof t!="function"&&(t=()=>!0);const o=e[0].cloneNode(!1);let s=o;for(let r=1,l=e.length,c;r<l;r++)t(e[r])&&(c=e[r].cloneNode(!1),s.appendChild(c),s=c);return s.innerHTML="",{parent:o,inner:s}}}Si=new WeakMap,kd=new WeakMap;const KB=YB;class XB{constructor(e){w(this,zi,void 0);w(this,ro,void 0);w(this,Vo,void 0);x(this,zi,e.$),x(this,ro,n(this,zi).frameContext),x(this,Vo,n(this,zi).frameOptions)}check(e){const t=n(this,Vo).get("charCounter_max");if(t){const o=this.getLength(typeof e=="string"?e:n(this,Vo).get("charCounter_type")==="byte-html"&&e.nodeType===1?e.outerHTML:e.textContent);if(o>0&&o+this.getLength()>t)return uv(n(this,ro).get("charWrapper")),!1}return!0}getLength(e){return typeof e!="string"&&(e=n(this,Vo).get("charCounter_type")==="byte-html"?n(this,ro).get("wysiwyg").innerHTML:n(this,ro).get("wysiwyg").textContent),/byte/.test(n(this,Vo).get("charCounter_type"))?this.getByteLength(e):e.length}getByteLength(e){if(!e||!e.toString)return 0;e=e.toString();let t,o;return vb?(o=decodeURIComponent(encodeURIComponent(e)).length,t=0,encodeURIComponent(e).match(/(%0A|%0D)/gi)!==null&&(t=encodeURIComponent(e).match(/(%0A|%0D)/gi).length),o+t):(o=new TextEncoder().encode(e).length,t=0,encodeURIComponent(e).match(/(%0A|%0D)/gi)!==null&&(t=encodeURIComponent(e).match(/(%0A|%0D)/gi).length),o+t)}getWordCount(e){typeof e!="string"&&(e=n(this,ro).get("wysiwyg").innerText);const t=e.trim();return t?t.split(/\s+/).length:0}display(e){const t=e||n(this,ro),o=t.get("charCounter"),s=t.get("wordCounter");(o||s)&&pe.setTimeout(()=>{o&&(o.textContent=String(this.getLength())),s&&(s.textContent=String(this.getWordCount()))},0)}test(e,t){let o=0;e&&(o=this.getLength(e)),this.display();const s=n(this,Vo).get("charCounter_max");if(s>0){let r=!1;const l=this.getLength();if(l>s){if(r=!0,o>0&&t){n(this,zi).selection.init();const c=n(this,zi).selection.getRange(),d=c.endOffset-1,h=n(this,zi).selection.getNode().textContent,p=c.endOffset-1;n(this,zi).selection.getNode().textContent=h.slice(0,p<0?0:p)+h.slice(c.endOffset,h.length),n(this,zi).selection.setRange(c.endContainer,d,c.endContainer,d)}}else l+o>s&&(r=!0);if(r&&(uv(n(this,ro).get("charWrapper")),o>0))return!1}return!0}}zi=new WeakMap,ro=new WeakMap,Vo=new WeakMap;function uv(i){i&&!Zu(i,"se-blink")&&(cn(i,"se-blink"),pe.setTimeout(()=>{dn(i,"se-blink")},600))}const QB=XB;class JB{constructor(e){w(this,xs,void 0);w(this,Na,void 0);w(this,La,!1);x(this,xs,e.$),x(this,Na,n(this,xs).options),this.keyMap=new Map,this.reverseKeys=new Set}command(e,t,o,s,r,l,c,d){var p,f;if(n(this,La))return!1;let h=null;return t?h=this.keyMap.get(s+(o?"1000":"")):h=this.keyMap.get(r)||this.keyMap.get(r+e.key),!h||!o&&h.s||h.space&&!Me.isSpace(s)||h.enter&&!Me.isEnter(s)||h.textTrigger&&!e.key.trim()||h.edge&&!l?!1:(h.plugin&&typeof h.method=="string"?(f=(p=n(this,xs).plugins[h.plugin])[h.method])==null||f.call(p,{range:d,line:c,info:h,event:e,keyCode:s}):typeof h.method=="function"?h.method({range:d,line:c,info:h,event:e,keyCode:s}):n(this,xs).commandDispatcher.run(h.command,h.type,h.button),!0)}disable(){x(this,La,!0)}enable(){x(this,La,!1)}_registerShortcuts(){const e=n(this,Na).get("shortcuts"),t=n(this,Na).get("_reverseCommandArray"),o=this.keyMap=new Map,s=this.reverseKeys;for(const r of Object.keys(e)){if(n(this,xs).plugins[r])continue;const l=r.startsWith("_")?"":r;Kb(l,null,e[r],o,t,s)}}_destroy(){this.keyMap.clear(),this.reverseKeys.clear()}}xs=new WeakMap,Na=new WeakMap,La=new WeakMap;const eN=JB,{_w:Ag,isMobile:tN,ON_OVER_COMPONENT:iN}=ge,pv="2147483646",ep="2147483645",fv="2147483642",Bg="2147483641",mv={left:0,right:0,top:0};let tp=null;class oN{constructor(e,t,o,s,r){w(this,Hn);w(this,jn);w(this,cf);w(this,df);w(this,Fn);w(this,hf);w(this,xd);w(this,Ed);w(this,Td);w(this,uf);w(this,pf);w(this,ff);w(this,mf);w(this,gf);w(this,Md);w(this,de,void 0);w(this,Ia,void 0);w(this,_d,void 0);w(this,$a,void 0);w(this,zn,mv);w(this,Es,!1);w(this,Pn,!1);w(this,Oa,null);w(this,Da,null);w(this,Va,null);w(this,Ra,[]);w(this,Ts,new Map);x(this,de,t),this.kind=r||e.constructor.key||e.constructor.name,this.host=e,this.form=o,this.isOpen=!1,this.currentTarget=null,this.currentPositionTarget=null,this.isWWTarget=s.isWWTarget??!0,this.position=s.position||"bottom",this.disabled=!!s.disabled,this.parents=s.parents||[],this.parentsForm=[],this.parentsHide=!!s.parentsHide,this.sibling=s.sibling||null,this.siblingMain=!!s.siblingMain,this.isInsideForm=!!s.isInsideForm,this.isOutsideForm=!!s.isOutsideForm,this.toTop=!1,this.__offset={},x(this,Ia,typeof s.initMethod=="function"?s.initMethod:null),x(this,_d,typeof s.escGuard=="function"?s.escGuard:null),x(this,$a,{keydown:E(this,mf,ew).bind(this),mousedown:E(this,gf,tw).bind(this)});for(const l of this.parents){if(u.check.isElement(l)){this.parentsForm.push(l);continue}n(l,Ra).push(this),this.parentsForm.push(l.form)}this.form.setAttribute("popover","manual"),n(this,de).contextProvider.carrierWrapper.appendChild(o),n(this,de).eventManager.addEvent(o,"click",E(this,uf,Xy).bind(this)),n(this,de).eventManager.addEvent(o,"mouseenter",E(this,pf,Qy).bind(this)),n(this,de).eventManager.addEvent(o,"mouseleave",E(this,ff,Jy).bind(this))}open(e,t,{isWWTarget:o,passive:s,initMethod:r,disabled:l,addOffset:c}={}){var h;if(Jt.get("__overInfo")===iN&&(s=!0),!e){console.warn("[SUNEDITOR.Controller.open.fail] The target element is required.");return}if(this.form.removeAttribute("data-se-hidden-by-parent"),this.form.removeAttribute("data-se-hidden-by-children"),n(this,Ts).clear(),s||(n(this,de).store.mode.isBalloon?n(this,de).toolbar.hide():n(this,de).store.mode.isSubBalloon&&n(this,de).subToolbar.hide(),n(this,de).store.get("hasFocus")||(l??this.disabled?n(this,de).ui.setControllerOnDisabledButtons(!0):n(this,de).ui.setControllerOnDisabledButtons(!1))),this.currentPositionTarget=t||e,this.isWWTarget=o??this.isWWTarget,typeof r=="function"&&x(this,Ia,r),s||(n(this,de).ui.currentControllerName=this.kind),x(this,zn,{left:0,right:0,top:0,...c}),!s){const p=this.isOutsideForm?this.parentsForm:[];(h=n(this,de).ui.opendControllers)==null||h.forEach(f=>{p.includes(f.form)||(f.form.style.zIndex=Bg)}),this.parentsHide&&this.parentsForm.forEach(f=>{f.style.display="none",f.setAttribute("data-se-hidden-by-children","1")})}E(this,hf,Ky).call(this),E(this,Fn,eu).call(this,this.form,this.currentPositionTarget,!1);const d=n(this,de).instanceCheck.isRange(e);this.currentTarget=d?null:e,E(this,cf,Gy).call(this,this.form,e,d,s),Ag.setTimeout(()=>Jt.set("__overInfo",!1),0)}close(e){var t,o,s;!e&&(!this.isOpen||n(this,Pn))||(this.form.removeAttribute("data-se-hidden-by-parent"),this.form.removeAttribute("data-se-hidden-by-children"),n(this,Ts).clear(),E(this,Hn,Qh).call(this,"close"),this.toTop=!1,this.isOpen=!1,x(this,Pn,!1),this.__offset={},x(this,zn,mv),E(this,xd,$0).call(this),(t=n(this,Ia))==null||t.call(this),E(this,df,Yy).call(this),this.parentsHide&&!e&&this.parentsForm.forEach(r=>{r.style.display="block",r.removeAttribute("data-se-hidden-by-children")}),(s=(o=this.host).controllerClose)==null||s.call(o),!(this.parentsForm.length>0)&&n(this,de).component.deselect())}hide(){E(this,Hn,Qh).call(this,"hide"),this.form.style.display="none"}show(){E(this,Fn,eu).call(this,this.form,this.currentPositionTarget,!1)}bringToTop(e){this.toTop=e,this.form.style.zIndex=e?pv:ep}resetPosition(e){E(this,Fn,eu).call(this,this.form,e||this.currentPositionTarget,!0)}_scrollReposition(){this.form.hasAttribute("data-se-hidden-by-parent")||this.form.hasAttribute("data-se-hidden-by-children")||E(this,Fn,eu).call(this,this.form,this.currentPositionTarget,!1)&&Ag.setTimeout(()=>{E(this,Hn,Qh).call(this,"show")},0)}}de=new WeakMap,Ia=new WeakMap,_d=new WeakMap,$a=new WeakMap,zn=new WeakMap,Es=new WeakMap,Pn=new WeakMap,Oa=new WeakMap,Da=new WeakMap,Va=new WeakMap,Ra=new WeakMap,Ts=new WeakMap,Hn=new WeakSet,Qh=function(e){var t,o;for(const s of n(this,Ra))if(e==="hide"&&s.form.style.display!=="none"){const r=E(this,jn,Jh).call(this,s);n(s,Ts).set(this,!0);const l=E(this,jn,Jh).call(this,s);!r&&l&&(s.form.setAttribute("data-se-hidden-by-parent","1"),s.hide())}else if(e==="show"){if(s.form.hasAttribute("data-se-hidden-by-children")){E(t=s,Hn,Qh).call(t,"show");continue}const r=E(this,jn,Jh).call(this,s);n(s,Ts).set(this,!1);const l=E(this,jn,Jh).call(this,s);r&&!l&&(s.form.removeAttribute("data-se-hidden-by-parent"),s.show())}else(o=s[e])==null||o.call(s,!0)},jn=new WeakSet,Jh=function(e){for(const t of n(e,Ts).values())if(t===!0)return!0;return!1},cf=new WeakSet,Gy=async function(e,t,o,s){var l,c;const r={position:this.position,inst:this,form:e,target:t,isRangeTarget:o,notInCarrier:!n(this,de).contextProvider.carrierWrapper.contains(e)};await n(this,de).eventManager.triggerEvent("onBeforeShowController",{caller:this.kind,frameContext:n(this,de).frameContext,info:r})!==!1&&(e.style.display="block",n(this,de).contextProvider.shadowRoot&&x(this,Oa,n(this,de).eventManager.addEvent(e,"mousedown",d=>d.stopPropagation())),s||(n(this,de).ui.onControllerContext(),n(this,de).store.set("controlActive",!0),n(this,de).store.set("_preventBlur",!0)),this.isOpen||n(this,de).ui.opendControllers.push(r),this.isOpen=!0,(c=(l=this.host).controllerOn)==null||c.call(l,e,t),n(this,de).eventManager.triggerEvent("onShowController",{caller:this.kind,frameContext:n(this,de).frameContext,info:r}))},df=new WeakSet,Yy=function(){var e,t;tp===this&&(tp=null),(t=(e=this.form).hidePopover)==null||t.call(e),this.form.style.display="none",n(this,de).ui.opendControllers=n(this,de).ui.opendControllers.filter(o=>o.form!==this.form),!(n(this,de).ui.currentControllerName!==this.kind&&n(this,de).ui.opendControllers.length>0)&&(n(this,de).ui.setControllerOnDisabledButtons(!1),n(this,de).ui.offControllerContext(),n(this,de).frameContext.get("lineBreaker_t").style.display=n(this,de).frameContext.get("lineBreaker_b").style.display="none",n(this,de).store.set("_lastSelectionNode",null),n(this,de).ui.currentControllerName="",n(this,de).store.set("_preventBlur",!1),Ag.setTimeout(()=>{n(this,de).store.set("controlActive",!1)},0),n(this,Oa)&&x(this,Oa,n(this,de).eventManager.removeEvent(n(this,Oa))))},Fn=new WeakSet,eu=function(e,t,o){var s;if(!t)return!1;if(e.style.visibility="hidden",e.style.display="block",this.sibling&&this.sibling.style.display!=="block"&&(this.sibling.style.visibility="hidden",this.sibling.style.display="block"),n(this,de).selection.isRange(t)){if(!n(this,de).offset.setRangePosition(this.form,t,{position:"bottom"}))return this.hide(),!1}else{const r=n(this,de).offset.setAbsPosition(e,t,{addOffset:n(this,zn),position:this.position,isWWTarget:this.isWWTarget,inst:this,sibling:this.sibling});if(!r)return this.hide(),!1;if(!o&&this.sibling&&!this.siblingMain){const l=e.offsetTop-n(this,zn).top;r.position==="bottom"?(x(this,Es,!0),e.style.top=l+this.sibling.offsetHeight-1+"px"):(x(this,Es,!1),e.style.top=l-this.sibling.offsetHeight+2+"px")}else x(this,Es,!1)}return e.style.zIndex=this.toTop?ep:n(this,Es)?fv:Bg,e.style.visibility="",(s=e.showPopover)==null||s.call(e),!0},hf=new WeakSet,Ky=function(){E(this,xd,$0).call(this),x(this,Da,n(this,de).eventManager.addGlobalEvent("keydown",n(this,$a).keydown,!0)),x(this,Va,n(this,de).eventManager.addGlobalEvent(tN?"click":"mousedown",n(this,$a).mousedown,!0))},xd=new WeakSet,$0=function(){n(this,de).component.__removeGlobalEvent(),n(this,Da)&&x(this,Da,n(this,de).eventManager.removeGlobalEvent(n(this,Da))),n(this,Va)&&x(this,Va,n(this,de).eventManager.removeGlobalEvent(n(this,Va)))},Ed=new WeakSet,O0=function(){if(n(this,de).ui.selectMenuOn)return!0;const e=n(this,de).ui.opendControllers;for(let t=0;t<e.length;t++)if(e[t].inst===this&&e[t].fixed)return!0;return!1},Td=new WeakSet,D0=function(e){var s;if(u.check.isWysiwygFrame(e)||e.contains(this.form))return!1;if(u.utils.hasClass(e,"se-drag-handle"))return!0;let t=!1;this.isInsideForm&&((s=this.parentsForm)==null?void 0:s.length)>0&&this.parentsForm.some(r=>{if(r.contains(e))return t=!0,!0});const o=this.host._element;return!t&&(!!u.query.getParentElement(e,".se-controller")||(n(this,de).component.isInline(o)?e===o:e==null?void 0:e.contains(o)))},uf=new WeakSet,Xy=function(e){const t=u.query.getEventTarget(e),o=u.query.getCommandTarget(t);if(o){if(e.stopPropagation(),e.preventDefault(),o.getAttribute("data-command")==="close"){this.close();return}this.host.controllerAction(o)}},pf=new WeakSet,Qy=function(e){var o,s;if(n(this,de).ui.currentControllerName=this.kind,this.parentsForm.length>0&&this.isInsideForm)return;const t=u.query.getEventTarget(e);t.style.zIndex=this.toTop?pv:ep,this.sibling&&tp!==this&&((s=(o=this.form).matches)!=null&&s.call(o,":popover-open"))&&(tp=this,this.form.hidePopover(),this.form.showPopover())},ff=new WeakSet,Jy=function(e){if(this.parentsForm.length>0&&this.isInsideForm)return;const t=u.query.getEventTarget(e);t.style.zIndex=this.toTop?ep:n(this,Es)?fv:Bg},mf=new WeakSet,ew=function(e){var r;if(E(this,Ed,O0).call(this))return;const t=e.code;if(Me.isCtrl(e)||!Me.isNonResponseKey(t))return;const s=u.query.getEventTarget(e);if(Me.isEsc(t)){if(n(this,Ra).some(({isOpen:l})=>l)||(r=n(this,_d))!=null&&r.call(this))return}else if(this.form.contains(s)||E(this,Td,D0).call(this,s)||n(this,de).pluginManager.fileInfo.pluginRegExp.test(this.kind))return;E(this,Md,V0).call(this,s),this.close()},gf=new WeakSet,tw=function(e){var o,s;const t=u.query.getEventTarget(e);if((s=(o=this.host)==null?void 0:o._element)!=null&&s.contains(t)){x(this,Pn,!0);return}x(this,Pn,!1),!(t===this.host._element||t===this.currentTarget||E(this,Ed,O0).call(this)||this.form.contains(t)||E(this,Td,D0).call(this,t)||u.query.getParentElement(t,".se-line-breaker-component"))&&(E(this,Md,V0).call(this,t),this.close(!0))},Md=new WeakSet,V0=function(e){n(this,de).frameContext.get("wysiwyg").contains(e)||(n(this,de).component.__prevent=!1)};const sN=oN,{_w:gv,ON_OVER_COMPONENT:Ng}=ge,nN={tl:"nwse-resize",tr:"nesw-resize",bl:"nesw-resize",br:"nwse-resize",lw:"ew-resize",th:"ns-resize",rw:"ew-resize",bh:"ns-resize"},rN="tl|bl|tr|br",aN="lw|rw";let ip=!1,vc=!1,Pr=0,Lg=0;const jt=class jt{constructor(e,t,o,s){w(this,$d);w(this,Od);w(this,ja);w(this,Dd);w(this,bf);w(this,Zn);w(this,Vd);w(this,vf);w(this,Rd);w(this,zd);w(this,yf);w(this,wf);w(this,Cf);w(this,kf);w(this,_f);w(this,xf);w(this,Ef);w(this,Tf);w(this,Mf);w(this,Sf);w(this,Af);w(this,Bf);w(this,Nf);w(this,oe,void 0);w(this,Sd,void 0);w(this,Ad,void 0);w(this,Bd,"");w(this,Nd,"");w(this,Wn,0);w(this,Un,0);w(this,za,0);w(this,Pa,0);w(this,Ld,"__se__float-none|__se__float-left|__se__float-center|__se__float-right");w(this,Ha,!1);w(this,qn,{w:"",h:""});w(this,Id,null);x(this,oe,t),this.kind=e.constructor.key||e.constructor.name,this._alignIcons={none:n(this,oe).icons.format_float_none,left:n(this,oe).icons.format_float_left,right:n(this,oe).icons.format_float_right,center:n(this,oe).icons.format_float_center},this._action={};const r=pN(this,t,o||[]);if(this.controller=r?new sN(this,t,r,{position:"bottom",disabled:!0},this.kind):null,r){this.alignButton=r.querySelector('[data-command="onalign"]');const l=lN(this,t,this.alignButton);l&&(this.selectMenu_align=new Xu(t,{checkList:!1,position:"bottom-center"}),this.selectMenu_align.on(this.alignButton,E(this,Ef,dw).bind(this),{class:"se-figure-select-list"}),this.selectMenu_align.create(l.items,l.html)),this.asButton=r.querySelector('[data-command="onas"]');const c=cN(t,this.asButton);c&&(this.selectMenu_as=new Xu(t,{checkList:!1,position:"bottom-center"}),this.selectMenu_as.on(this.asButton,E(this,Tf,hw).bind(this),{class:"se-figure-select-list"}),this.selectMenu_as.create(c.items,c.html)),this.resizeButton=r.querySelector('[data-command="onresize"]');const d=dN(t,this.resizeButton);d&&(this.selectMenu_resize=new Xu(t,{checkList:!1,position:"bottom-left",dir:"ltr"}),this.selectMenu_resize.on(this.resizeButton,E(this,Mf,uw).bind(this)),this.selectMenu_resize.create(d.items,d.html))}this.inst=e,this.sizeUnit=s.sizeUnit||"px",this.autoRatio=s.autoRatio,this.isVertical=!1,this.percentageButtons=(r==null?void 0:r.querySelectorAll('[data-command="resize_percent"]'))||[],this.captionButton=r==null?void 0:r.querySelector('[data-command="caption"]'),this.align="none",this.as="block",this.__offset={},this._element=null,this._cover=null,this._inlineCover=null,this._container=null,this._caption=null,this._resizeClientX=0,this._resizeClientY=0,this._resize_direction="",this.__containerResizingOff=E(this,_f,lw).bind(this),this.__containerResizing=E(this,kf,aw).bind(this),this.__onContainerEvent=null,this.__offContainerEvent=null,x(this,Sd,E(this,Sf,pw).bind(this)),x(this,Ad,E(this,xf,cw).bind(this)),n(this,oe).eventManager.addEvent(this.alignButton,"click",E(this,Af,fw).bind(this)),n(this,oe).eventManager.addEvent(this.asButton,"click",E(this,Bf,mw).bind(this)),n(this,oe).eventManager.addEvent(this.resizeButton,"click",E(this,Nf,gw).bind(this)),n(this,oe).contextProvider.applyToRoots(l=>{if(!l.get("wrapper").querySelector(".se-controller.se-resizing-container")){const c=hN(),d=c.querySelectorAll(".se-resize-dot > span");l.set("_figure",{main:c,border:c.querySelector(".se-resize-dot"),display:c.querySelector(".se-resize-display"),handles:d}),l.get("wrapper").appendChild(c),n(this,oe).eventManager.addEvent(d,"mousedown",E(this,Cf,rw).bind(this))}})}static CreateContainer(e,t){return u.utils.createElement("DIV",{class:"se-component"+(t?" "+t:"")},u.utils.createElement("FIGURE",null,e)),jt.GetContainer(e)}static CreateInlineContainer(e,t){return u.utils.createElement("SPAN",{class:"se-component se-inline-component"+(t?" "+t:"")},e),jt.GetContainer(e)}static CreateCaption(e,t){const o=u.utils.createElement("FIGCAPTION",null,"<div>"+t+"</div>");return e.appendChild(o),o}static GetContainer(e){const t=u.query.getParentElement(e,"FIGURE",2),o=u.query.getParentElement(e,"SPAN",2),s=t||o;let r=u.query.getParentElement(e,l=>l.parentElement===s,0)||e;if(u.check.isAnchor(r)){const l=r.querySelector(":scope > img");l&&(r=l)}return{target:r,container:u.query.getParentElement(r,jt.is,3)||t,cover:t,inlineCover:u.utils.hasClass(o,"se-inline-component")?o:null,caption:u.query.getEdgeChild(r.parentElement,"FIGCAPTION",!1),isVertical:op(r)}}static GetRatio(e,t,o){let s=0,r=0;if(/\d+/.test(e+"")&&/\d+/.test(t+"")){const l=!Q.is(e)&&String(e).replace(/\d+|\./g,"")||o||"px",c=!Q.is(t)&&String(t).replace(/\d+|\./g,"")||o||"px";if(l===c){const d=Q.get(e,4),h=Q.get(t,4);s=d/h,r=h/d}}return{w:Q.get(s,4),h:Q.get(r,4)}}static CalcRatio(e,t,o,s){if(s!=null&&s.w&&(s!=null&&s.h)&&/\d+/.test(e+"")&&/\d+/.test(t+"")){const r=!Q.is(e)&&String(e).replace(/\d+|\./g,"")||o||"px",l=!Q.is(t)&&String(t).replace(/\d+|\./g,"")||o||"px";if(r===l){const c=r==="%"?2:0,d=e,h=t;t=Q.get(s.h*Q.get(d,c),c)+l,e=Q.get(s.w*Q.get(h,c),c)+r}}return{w:e,h:t}}static is(e){return u.check.isComponentContainer(e)||/^(HR)$/.test(e==null?void 0:e.nodeName)}close(){var e;n(this,oe).store.set("_preventBlur",!1),u.utils.removeClass(this._cover,"se-figure-selected"),n(this,oe).component.__removeDragEvent(),E(this,zd,F0).call(this),(e=this.controller)==null||e.close()}open(e,{nonResizing:t,nonSizeInfo:o,nonBorder:s,figureTarget:r,infoOnly:l}){var A;if(!e){console.warn('[SUNEDITOR.modules.Figure.open] The "targetNode" is null.');return}Jt.get("__overInfo")===Ng&&(s=!0);const c=jt.GetContainer(e),d=c.target;let h=!1;if(!c.container)if(!n(this,oe).options.get("strictMode").formatFilter)c.container=d,c.cover=d,h=!0;else return{container:null,cover:null,width:d.style.width||d.width||"",height:d.style.height||d.height||"",isVertical:this.isVertical};Jt.set("__figureInst",this),E(this,Od,z0).call(this,c);const p=r&&(this._cover||this._container)||d,f=p.offsetWidth||null,m=p.offsetHeight||null,{top:g,left:v,scrollX:b,scrollY:y}=n(this,oe).offset.getLocal(p),C=(d.getAttribute("data-se-size")||"").split(",");let k=Q.get(d.style.width,2)||f,_=Q.get(d.style.height,2)||m;this.isVertical&&([k,_]=[_,k]);const S=jt.GetRatio(k,_,this.sizeUnit),T={container:c.container,cover:c.cover,caption:c.caption,align:this.align,ratio:S,isVertical:this.isVertical,w:f||"",h:m||"",t:g,l:v,width:C[0]||"auto",height:C[1]||"auto",originWidth:d.naturalWidth||d.offsetWidth,originHeight:d.naturalHeight||d.offsetHeight};if(x(this,Bd,T.width),x(this,Nd,T.height),l)return T;const M=n(this,oe).frameContext.get("_figure");n(this,oe).ui.setFigureContainer(M.main),n(this,oe).ui.opendControllers=n(this,oe).ui.opendControllers.filter(B=>B.form!==M.main),M.main.style.top=g+"px",M.main.style.left=v+"px",M.main.style.width=(this.isVertical?m:f)+"px",M.main.style.height=(this.isVertical?f:m)+"px",M.border.style.top="0px",M.border.style.left="0px",M.border.style.width=(this.isVertical?m:f)+"px",M.border.style.height=(this.isVertical?f:m)+"px",this.__offset={left:v+b,top:g+y},n(this,oe).ui.opendControllers.push({position:"none",form:M.main,target:p,inst:this,notInCarrier:!0});const N=/%$/.test(d.style.width)&&/%$/.test(c.container.style.width)?Q.get(c.container.style.width,0)/100+"":"";for(let B=0,$=this.percentageButtons.length;B<$;B++)this.percentageButtons[B].getAttribute("data-value")===N?u.utils.addClass(this.percentageButtons[B],"active"):u.utils.removeClass(this.percentageButtons[B],"active");if(this.captionButton&&(c.caption?u.utils.addClass(this.captionButton,"active"):u.utils.removeClass(this.captionButton,"active")),M.display.style.display=o||this._inlineCover?"none":"",M.border.style.display=s?"none":"",M.main.style.display="block",Jt.get("__overInfo")!==Ng){const B=t?"none":"flex",$=M.handles;for(let L=0,O=$.length;L<O;L++)$[L].style.display=B;if(this.controller){const L=this.getSize(d);u.utils.changeTxt(M.display,n(this,oe).lang[this.align==="none"?"basic":this.align]+" ("+L.dw+", "+L.dh+")"),E(this,Dd,P0).call(this),E(this,bf,iw).call(this),n(this,oe).ui._visibleControllers(!0,!0);const O=this.controller.form.querySelectorAll('[data-command="rotate"][data-value="90"], [data-command="rotate"][data-value="-90"], [data-command="caption"], [data-command="onalign"], [data-command="onresize"]'),D=this._inlineCover||h?"none":"";O==null||O.forEach(R=>{R.style.display=D});const I=this.controller.form.querySelector('[data-command="onas"]');I&&(I.style.display=h?"none":"")}u.utils.removeClass(this._cover,"se-figure-over-selected"),(A=this.controller)==null||A.open(M.main,null,{initMethod:n(this,Sd),isWWTarget:!1,addOffset:null}),gv.setTimeout(()=>Jt.set("__overInfo",!1),0)}else u.utils.addClass(this._cover,"se-figure-over-selected");return u.utils.addClass(this._cover,"se-figure-selected"),x(this,za,x(this,Wn,f)),x(this,Pa,x(this,Un,m)),!this._inlineCover&&(Jt.get("__overInfo")!==Ng||u.utils.hasClass(c.container,"se-input-component"))&&E(this,yf,sw).call(this,M.main),T}controllerHide(){var e;(e=this.controller)==null||e.hide()}controllerShow(){var e;(e=this.controller)==null||e.show()}controllerOpen(e,t){var o;this._element=e,(o=this.controller)==null||o.open(e,null,t)}setFigureSize(e,t){/%$/.test(e+"")?this._setPercentSize(e,t):(!e||e==="auto")&&(!t||t==="auto")?this.autoRatio?this._setPercentSize(100,this.autoRatio.default||this.autoRatio.current):this._setAutoSize():this._applySize(e,t,"")}setSize(e,t){const o=this.isVertical;o&&([e,t]=[t,e]),this.setFigureSize(e,t),o&&this.setTransform(this._element,e,t,0)}getSize(e){var h,p;e||(e=this._element);const t=op(e);let o="",s="",r="",l="";if(!e)return{w:o,h:s,dw:r,dh:l};const c=jt.GetContainer(e),d=c.target;return c.container?(o=/%$/.test(d.style.width)?(c.container&&Q.get(c.container.style.width,2)||100)+"%":d.style.width,s=c.inlineCover?c.inlineCover.style.height||e.style.height||String(e.height||""):Q.get((h=c.cover)==null?void 0:h.style.paddingBottom,0)>0&&!t?(p=c.cover)==null?void 0:p.style.height:!/%$/.test(d.style.height)||!/%$/.test(d.style.width)?d.style.height:(c.container&&Q.get(c.container.style.height,2)||100)+"%",o||(o="auto"),s||(s="auto")):n(this,oe).options.get("strictMode").formatFilter?(o="",s=d.style.height):(o=d.style.width||"auto",s=d.style.height||"auto"),r=t?s:o,l=t?o:s,{w:o,h:s,dw:r,dh:l}}setAlign(e,t){e||(e=this._element),this.align=t||(t="none");const o=jt.GetContainer(e);if(!o.cover)return;const s=o.target,r=o.container,l=o.cover;if(/%$/.test(s.style.width)&&t==="center"&&!n(this,oe).component.isInline(r)?(r.style.minWidth="100%",l.style.width=r.style.width):(r.style.minWidth="",l.style.width=this.isVertical?s.style.height||s.offsetHeight+"px":!s.style.width||s.style.width==="auto"?"":s.style.width||"100%"),u.utils.hasClass(r,"__se__float-"+t)||(u.utils.removeClass(r,n(this,Ld)),u.utils.addClass(r,"__se__float-"+t)),this.autoRatio){const{w:c,h:d}=this.getSize(this._element);this.__setCoverPaddingBottom(c,d)}E(this,Dd,P0).call(this)}convertAsFormat(e,t){e||(e=this._element),this.as=t||"block";const{container:o,inlineCover:s,target:r}=jt.GetContainer(e),{w:l,h:c}=this.getSize(r),d=u.check.isAnchor(r.parentNode)?r.parentNode:null,h=r.cloneNode(!1);h.style.width="",h.style.height="",h.removeAttribute("width"),h.removeAttribute("height");let p=h;if(d){const f=d.cloneNode(!1);f.appendChild(h),p=f}switch(t){case"inline":{if(s)break;n(this,oe).component.deselect();const f=o.nextElementSibling,m=o.parentElement,g=jt.CreateInlineContainer(p);u.utils.addClass(g.container,o.className.split(" ").filter(b=>b!=="se-figure-selected"&&b!=="se-component-selected").join("|")),E(this,$d,R0).call(this,g,l,c);const v=u.utils.createElement(n(this,oe).options.get("defaultLine"),null,g.container);m.insertBefore(v,f),u.utils.removeItem(o);break}case"block":{if(!s)break;n(this,oe).component.deselect(),n(this,oe).selection.setRange(o,0,o,1);const f=n(this,oe).html.remove(),m=n(this,oe).nodeTransform.split(f.container,f.offset,0);m!=null&&m.previousElementSibling&&u.check.isZeroWidth(m.previousElementSibling)&&u.utils.removeItem(m.previousElementSibling);const g=jt.CreateContainer(p);u.utils.addClass(g.container,o.className.split(" ").filter(v=>v!=="se-inline-component"&&v!=="se-figure-selected"&&v!=="se-component-selected").join("|")),E(this,$d,R0).call(this,g,l,c),(m||f.container).parentElement.insertBefore(g.container,m);break}}return h}controllerAction(e){const t=e.getAttribute("data-command"),o=e.getAttribute("data-value"),s=e.getAttribute("data-type"),r=this._element;if(!(/^on.+/.test(t)||s==="selectMenu")){switch(t){case"mirror":{const l=$g(r);let c=l.x,d=l.y;o==="h"&&!this.isVertical||o==="v"&&this.isVertical?d=d?"":"180":c=c?"":"180",this._setRotate(r,l.r,c,d);break}case"rotate":{this.setTransform(r,null,null,Number(o));break}case"caption":{if(this._caption)u.utils.removeItem(this._caption),gv.setTimeout(n(this,oe).component.select.bind(n(this,oe).component,r,this.kind),0),this._caption=null;else{const l=jt.CreateCaption(this._cover,n(this,oe).lang.caption),c=u.query.getEdgeChild(l,d=>d.nodeType===3,!1);c?n(this,oe).selection.setRange(c,0,c,c.textContent.length):l.focus(),this._caption=l,this.controller.close()}(/\d+/.test(r.style.height)||this.isVertical&&this._caption)&&(/%$/.test(r.style.width)||/auto/.test(r.style.height)?this.deleteTransform():this.setTransform(r,r.style.width,r.style.height,0));break}case"revert":{this._setRevert();break}case"edit":{this.inst.componentEdit(r);break}case"copy":{n(this,oe).component.copy(this._container);break}case"remove":{this.inst.componentDestroy(r),this.controller.close();break}}if(/^__c__/.test(t)){this._action[t](r,o,e);return}t!=="edit"&&(n(this,oe).history.push(!1),/^remove|caption$/.test(t)||n(this,oe).component.select(r,this.kind))}}retainFigureFormat(e,t,o,s){var d;const r=n(this,oe).component.isInline(e),l=t.parentNode;let c=n(this,oe).format.isBlock(l)||u.check.isWysiwygFrame(l)||l.nodeType>=9?t:((d=jt.GetContainer(t))==null?void 0:d.container)||l||t;if(u.query.getParentElement(t,u.check.isExcludeFormat))c=o&&o!==t?o:t,c.parentNode.replaceChild(e,c);else if(r&&n(this,oe).format.isLine(c)){const h=r&&/^SPAN$/i.test(t.parentElement.nodeName)?t.parentElement:t;h.parentElement.replaceChild(e,h)}else if(u.check.isListCell(c)){const h=u.query.getParentElement(t,p=>p.parentNode===c);c.insertBefore(e,h),u.utils.removeItem(t),n(this,oe).nodeTransform.removeEmptyNode(h,null,!0)}else if(n(this,oe).format.isLine(c)){const h=u.query.getParentElement(t,p=>p.parentNode===c);c=n(this,oe).nodeTransform.split(c,h),c.parentNode.insertBefore(e,c),u.utils.removeItem(t),n(this,oe).nodeTransform.removeEmptyNode(c,null,!0)}else if(n(this,oe).format.isLine(c.parentNode)){const h=c.parentNode;h.parentNode.insertBefore(e,c.previousSibling?h.nextElementSibling:h),((s==null?void 0:s.__updateTags.map(p=>c.contains(p)).length)===0||u.check.isZeroWidth(c))&&u.utils.removeItem(c)}else c=u.check.isFigure(c.parentNode)?u.query.getParentElement(c.parentNode,jt.is):c,c.parentNode.replaceChild(e,c)}deleteTransform(e){e||(e=this._element);const t=e,o=(t.getAttribute("data-se-size")||"").split(",");this.isVertical=!1,t.style.maxWidth="",t.style.transform="",t.style.transformOrigin="",E(this,vf,ow).call(this,t),this._applySize(o[0]||"auto",o[1]||"","")}setTransform(e,t,o,s){try{x(this,Ha,!0);const r=$g(e),l=r.r+(s||0)*1;s=Math.abs(l)>=360?0:l;const c=this.isVertical=op(s);t=Q.get(t,0),o=Q.get(o,0);const d=e,h=(d.getAttribute("data-se-size")||"auto,auto").split(",");c&&this._setRotate(d,s,r.x,r.y);let p="";if(/auto|%$/.test(h[0])&&!c)h[0]==="auto"&&h[1]==="auto"?this._setAutoSize():this._setPercentSize(h[0],h[1]);else{const f=jt.GetContainer(d),m=f.cover||f.inlineCover,g=t||d.offsetWidth,v=o||d.offsetHeight,b=(c?v:g)+"px",y=(c?g:v)+"px";if(E(this,ja,Nm).call(this),this._applySize(g+"px",v+"px",""),m&&(m.style.width=b,m.style.height=f.caption||f.inlineCover?"":y),c){const C=g/2+"px "+g/2+"px 0",k=v/2+"px "+v/2+"px 0";p=s===90||s===-270?k:C}}d.style.transformOrigin=p,c||this._setRotate(d,s,r.x,r.y),c?d.style.maxWidth="none":d.style.maxWidth="",E(this,Vd,H0).call(this,d)}finally{x(this,Ha,!1)}}_displayResizeHandles(e){const t=e?"flex":"none";this.controller&&(this.controller.form.style.display=t);const o=n(this,oe).frameContext.get("_figure"),s=o.handles;for(let r=0,l=s.length;r<l;r++)s[r].style.display=t;t==="none"?(u.utils.addClass(o.main,"se-resize-ing"),x(this,Id,n(this,oe).eventManager.addGlobalEvent("keydown",n(this,Ad)))):u.utils.removeClass(o.main,"se-resize-ing")}_setRotate(e,t,o,s){let r=(e.offsetWidth-e.offsetHeight)*(/^-/.test(t+"")?1:-1),l="";if(/[1-9]/.test(t+"")&&(o||s))switch(l=o?"Y":"X",t+""){case"90":l=o&&s?"X":s?l:"";break;case"270":r*=-1,l=o&&s?"Y":o?l:"";break;case"-90":l=o&&s?"Y":o?l:"";break;case"-270":r*=-1,l=o&&s?"X":s?l:"";break;default:l=""}t%180===0&&(e.style.maxWidth=""),e.style.transform="rotate("+t+"deg)"+(o?" rotateX("+o+"deg)":"")+(s?" rotateY("+s+"deg)":"")+(l?" translate"+l+"("+r+"px)":"")}_applySize(e,t,o){const s=/^(rw|lw)$/.test(o)&&/\d+/.test(this._element.style.height),r=/^(th|bh)$/.test(o)&&/\d+/.test(this._element.style.width);t=t||(this.autoRatio?this.autoRatio.current||this.autoRatio.default:t),e=Q.is(e)?e+this.sizeUnit:e,!/%$/.test(e)&&!/%$/.test(t)&&!s&&!r&&E(this,ja,Nm).call(this);const l=this._cover||this._element;this.autoRatio&&this._cover&&(this._cover.style.width=e),r||(l.style.width=this._element.style.width=e),s||(t=Q.is(t)?t+this.sizeUnit:t,l.style.height=this._element.style.height=this.autoRatio&&!this.isVertical?"100%":t,this.autoRatio&&this._cover&&(this._cover.style.height=t,this.__setCoverPaddingBottom(e,t))),this.align==="center"&&this.setAlign(this._element,this.align),E(this,Zn,tu).call(this)}__setCoverPaddingBottom(e,t){this._inlineCover!==this._cover&&(this.isVertical&&([e,t]=[t,e]),this._cover.style.height=t,/%$/.test(e)&&this.align==="center"?this._cover.style.paddingBottom=/%$/.test(t)?Q.get(Q.get(t,2)/100*Q.get(e,2),2)+"%":t:this._cover.style.paddingBottom=t)}_setAutoSize(){this._caption&&(this._caption.style.marginTop=""),this.deleteTransform(),E(this,ja,Nm).call(this),this.autoRatio?this._setPercentSize("100%",this.autoRatio.current||this.autoRatio.default):(this._element.style.maxWidth="",this._element.style.width="",this._element.style.height="",this._cover&&(this._cover.style.width="",this._cover.style.height="")),this.setAlign(this._element,this.align),E(this,Zn,tu).call(this)}_setPercentSize(e,t){t||(t=this.autoRatio?/%$/.test(this.autoRatio.current)?this.autoRatio.current:this.autoRatio.default:t),t=t&&!/%$/.test(t+"")&&!Q.get(t,0)?Q.is(t)?t+"%":t:Q.is(t)?t+this.sizeUnit:t||(this.autoRatio?this.autoRatio.default:"");const o=/%$/.test(t+"");if(this._container.style.width=String(Q.is(e)?e+"%":e),this._container.style.height="",this._element===this._cover&&!n(this,oe).options.get("strictMode").formatFilter){E(this,Zn,tu).call(this);return}this._inlineCover!==this._cover&&this._cover&&(this._cover.style.width="100%",this._cover.style.height=String(t)),this._element.style.width="100%",this._element.style.maxWidth="",this._element.style.height=String(this.autoRatio?"100%":o?"":t),this.align==="center"&&this.setAlign(this._element,this.align),this.autoRatio&&this.__setCoverPaddingBottom(String(e),String(t)),E(this,Vd,H0).call(this,this._element),E(this,Zn,tu).call(this)}_setRevert(){this.setFigureSize(n(this,qn).w,n(this,qn).h)}};oe=new WeakMap,Sd=new WeakMap,Ad=new WeakMap,Bd=new WeakMap,Nd=new WeakMap,Wn=new WeakMap,Un=new WeakMap,za=new WeakMap,Pa=new WeakMap,Ld=new WeakMap,Ha=new WeakMap,qn=new WeakMap,Id=new WeakMap,$d=new WeakSet,R0=function(e,t,o){const s=this.kind;e.target.onload=()=>n(this,oe).component.select(e.target,s),E(this,Od,z0).call(this,e),e.inlineCover&&(this.setAlign(e.target,"none"),this.deleteTransform()),this.setFigureSize(t,o)},Od=new WeakSet,z0=function(e){this._inlineCover=e.inlineCover,this._cover=e.cover||this._inlineCover,this._container=e.container,this._caption=e.caption,this._element=e.target,this.align=(this._container.className.match(/(?:^|\s)__se__float-(none|left|center|right)(?:$|\s)/)||[])[1]||e.target.style.float||"none",this.as=this._inlineCover?"inline":"block",this.isVertical=op(e.target)},ja=new WeakSet,Nm=function(){this._cover&&(this._cover.style.width="",this._cover.style.height=""),this._container.style.width="",this._container.style.height="",u.utils.removeClass(this._container,n(this,Ld)),u.utils.addClass(this._container,"__se__float-"+this.align),this.align==="center"&&this.setAlign(this._element,this.align)},Dd=new WeakSet,P0=function(){this.alignButton&&u.utils.changeElement(this.alignButton.firstElementChild,this._alignIcons[this.align])},bf=new WeakSet,iw=function(){this.asButton&&u.utils.changeElement(this.asButton.firstElementChild,n(this,oe).icons[`as_${this.as}`])},Zn=new WeakSet,tu=function(){if(n(this,Ha))return;const e=(this._element.getAttribute("data-se-size")||",").split(",");n(this,qn).w=e[0],n(this,qn).h=e[1];const t=this.getSize(this._element);this._element.setAttribute("width",t.w.replace("px","")),this._element.setAttribute("height",t.h.replace("px","")),this._element.setAttribute("data-se-size",t.w+","+t.h),this.autoRatio&&(this.autoRatio.current=/%$/.test(t.h)?t.h:"")},Vd=new WeakSet,H0=function(e){const t=u.query.getEdgeChild(u.query.getParentElement(e,"FIGURE"),"FIGCAPTION",!1);t&&(t.style.marginTop=(this.isVertical&&!this.autoRatio?e.offsetWidth-e.offsetHeight:0)+"px",this.isVertical&&this.autoRatio?e.style.marginTop=t.offsetHeight+"px":e.style.marginTop="")},vf=new WeakSet,ow=function(e){const t=u.query.getEdgeChild(u.query.getParentElement(e,"FIGURE"),"FIGCAPTION",!1);t&&(t.style.marginTop="")},Rd=new WeakSet,j0=function(){n(this,oe).component.__removeDragEvent(),E(this,zd,F0).call(this),this._displayResizeHandles(!0),n(this,oe).ui.offCurrentController(),n(this,oe).ui.disableBackWrapper()},zd=new WeakSet,F0=function(){n(this,oe).eventManager.removeGlobalEvent(this.__onContainerEvent),n(this,oe).eventManager.removeGlobalEvent(this.__offContainerEvent),n(this,oe).eventManager.removeGlobalEvent(n(this,Id))},yf=new WeakSet,sw=function(e){const t=n(this,oe).frameContext.get("wrapper").querySelector(".se-drag-handle");u.utils.removeClass(t,"se-drag-handle-full"),t.style.opacity="",t.style.width="",t.style.height="",Jt.set("__dragHandler",t),Jt.set("__dragContainer",this._container),Jt.set("__dragCover",this._cover),Jt.set("__dragMove",E(this,wf,nw).bind(this,t,e)),Jt.get("__dragMove")(),t.style.display="block"},wf=new WeakSet,nw=function(e,t){e.style.display="block",e.style.left=t.offsetLeft+(n(this,oe).options.get("_rtl")?e.offsetWidth:t.offsetWidth-e.offsetWidth*1.5)+"px",e.style.top=t.offsetTop-e.offsetHeight+.5+"px"},Cf=new WeakSet,rw=function(e){e.stopPropagation(),e.preventDefault();const t=Jt.get("__figureInst");if(!t)return;const o=u.query.getEventTarget(e),s=t._resize_direction=o.classList[0];t._resizeClientX=e.clientX,t._resizeClientY=e.clientY,n(this,oe).frameContext.get("_figure").main.style.float=/l/.test(s)?"right":/r/.test(s)?"left":"none",n(this,oe).ui.enableBackWrapper(nN[s]);const{w:r,h:l,dw:c,dh:d}=this.getSize(t._element);if(ip=vc=!1,Pr=Lg=0,!this.isVertical){const p=!r||/auto|%$/.test(r),f=!l||/auto|%$/.test(l);if(rN.includes(s)&&p&&f?ip=!0:aN.includes(s)&&p&&(vc=!0),ip||vc){const m=t._cover||t._element;Lg=m.offsetWidth,Pr=Te.getWidthInPercentage(m,n(this,oe).frameContext.get("wysiwygFrame"))/100}}t.__onContainerEvent=n(this,oe).eventManager.addGlobalEvent("mousemove",t.__containerResizing),t.__offContainerEvent=n(this,oe).eventManager.addGlobalEvent("mouseup",t.__containerResizingOff),t._displayResizeHandles(!1);const h=n(this,oe).frameContext.get("_figure").display;h.style.display="block",u.utils.changeTxt(h,c+" * "+d)},kf=new WeakSet,aw=function(e){const t=this._resize_direction,o=e.clientX,s=e.clientY,r=this.isVertical;let l=r?n(this,Pa):n(this,za),c=r?n(this,za):n(this,Pa);const d=l+(/r/.test(t)?o-this._resizeClientX:this._resizeClientX-o),h=c+(/b/.test(t)?s-this._resizeClientY:this._resizeClientY-s),p=c/l*d,f=n(this,oe).frameContext.get("_figure").border;/t/.test(t)&&(f.style.top=c-(/h/.test(t)?h:p)+"px"),/l/.test(t)&&(f.style.left=l-d+"px"),/r|l/.test(t)&&(f.style.width=d+"px",l=d),/^(t|b)[^h]$/.test(t)?(f.style.height=p+"px",c=p):/^(t|b)h$/.test(t)&&(f.style.height=h+"px",c=h);const m=!r&&/h$/.test(t)?n(this,Bd):Math.round(l),g=!r&&/w$/.test(t)?n(this,Nd):Math.round(c),v=Pr?m/Lg*Pr*100:m;u.utils.changeTxt(n(this,oe).frameContext.get("_figure").display,Pr?Q.get(v>100?100:v,2).toFixed(2)+"%":v+" * "+g),x(this,Wn,m),x(this,Un,g)},_f=new WeakSet,lw=function(){E(this,Rd,j0).call(this);let e=this.isVertical?n(this,Un):n(this,Wn),t=this.isVertical?n(this,Wn):n(this,Un);if(e=Math.round(e)||e,t=Math.round(t)||t,!this.isVertical&&!/%$/.test(e+"")){const o=n(this,oe).frameContext.get("wysiwygFrame").clientWidth-Q.get(n(this,oe).frameContext.get("wwComputedStyle").getPropertyValue("padding-left"))+Q.get(n(this,oe).frameContext.get("wwComputedStyle").getPropertyValue("padding-right"))-2;Q.get(e,0)>o&&(t=Math.round(t/e*o),e=o)}if(ip||vc){const o=this._cover||this._element;e=e/o.offsetWidth*Pr*100;const s=Q.get(e>100?100:e,2)+"%";this._setPercentSize(s,vc?this.getSize(this._element).h:"")}else this._applySize(e,t,this._resize_direction),this.isVertical&&this.setTransform(this._element,e,t,0);n(this,oe).history.push(!1),n(this,oe).component.select(this._element,this.kind)},xf=new WeakSet,cw=function(e){Me.isEsc(e.code)&&(E(this,Rd,j0).call(this),n(this,oe).component.select(this._element,this.kind))},Ef=new WeakSet,dw=function(e){this.setAlign(this._element,e),this.selectMenu_align.close(),n(this,oe).component.select(this._element,this.kind),n(this,oe).history.push(!1)},Tf=new WeakSet,hw=function(e){this.convertAsFormat(this._element,e),this.selectMenu_as.close(),n(this,oe).history.push(!1)},Mf=new WeakSet,uw=function(e){if(e==="auto")this.deleteTransform(),this._setAutoSize();else{let t=this.getSize(this._element).h;if(this.isVertical){const o=(this._element.getAttribute("data-se-size")||",").split(",");o[1]&&(t=o[1])}this.deleteTransform(),this._setPercentSize(e*1,Q.get(t,0)===null||!/%$/.test(t)?"":t)}this.selectMenu_resize.close(),n(this,oe).component.select(this._element,this.kind),n(this,oe).history.push(!1)},Sf=new WeakSet,pw=function(){const e=n(this,oe).frameContext.get("_figure");e.main.style.display="none",n(this,oe).ui.setFigureContainer(null),n(this,oe).ui.opendControllers=n(this,oe).ui.opendControllers.filter(t=>t.form!==e.main)},Af=new WeakSet,fw=function(){this.selectMenu_align.open("",'[data-command="'+this.align+'"]')},Bf=new WeakSet,mw=function(){this.selectMenu_as.open("",'[data-command="'+this.as+'"]')},Nf=new WeakSet,gw=function(){const e=this.getSize(this._element),t=e.w,o=e.h;let s="";if(this.autoRatio){if(o===this.autoRatio.default&&/%$/.test(t)){const r=Q.get(t);r===100?s="auto":s="resize_percent"+r}}else o==="auto"&&(t==="auto"?s="auto":/%$/.test(t)&&(s="resize_percent"+Q.get(t)));this.selectMenu_resize.open("",'[data-command="'+s+'"]')};let Ig=jt;function $g(i){const e=i.style.transform;return e?{r:Number((e.match(/rotate\(([-0-9]+)deg\)/)||[])[1]||0),x:(e.match(/rotateX\(([-0-9]+)deg\)/)||[])[1]||"",y:(e.match(/rotateY\(([-0-9]+)deg\)/)||[])[1]||""}:{r:0,x:"",y:""}}function op(i){return/^(90|270)$/.test(Math.abs(Q.is(i)?i:$g(i).r).toString())}function lN(i,e,t){if(!t)return null;const o=[i._alignIcons.none,i._alignIcons.left,i._alignIcons.center,i._alignIcons.right],s=[e.lang.basic,e.lang.left,e.lang.center,e.lang.right],r=["none","left","center","right"],l=[],c=[];for(let d=0;d<r.length;d++)l.push(`
|
|
90
|
-
<button type="button" class="se-btn-list se-tooltip" data-command="${r[d]}" data-type="selectMenu" >
|
|
91
|
-
${o[d]}
|
|
92
|
-
<span class="se-tooltip-inner">
|
|
93
|
-
<span class="se-tooltip-text">${s[d]}</span>
|
|
94
|
-
</span>
|
|
95
|
-
</button>`),c.push(r[d]);return{html:l,items:c}}function cN(i,e){if(!e)return null;const t=[i.icons.as_block,i.icons.as_inline],o=[i.lang.asBlock,i.lang.asInline],s=["block","inline"],r=[],l=[];for(let c=0;c<s.length;c++)r.push(`
|
|
96
|
-
<button type="button" class="se-btn-list se-tooltip" data-command="${s[c]}" data-type="selectMenu" >
|
|
97
|
-
${t[c]}
|
|
98
|
-
<span class="se-tooltip-inner">
|
|
99
|
-
<span class="se-tooltip-text">${o[c]}</span>
|
|
100
|
-
</span>
|
|
101
|
-
</button>`),l.push(s[c]);return{html:r,items:l}}function dN(i,e){if(!e)return null;const t=e.getAttribute("data-value").split(","),o=[];for(let s=0,r,l,c,d;s<t.length;s++)c=t[s],r=Q.is(c),l=r?"resize_percent"+c:"auto",d=r?c+"%":i.lang.autoSize,o.push('<button type="button" class="se-btn-list" data-command="'+l+'" data-value="'+c+'"><span>'+d+"</span></button>");return{html:o,items:t}}function hN(){const i=`
|
|
102
|
-
<div class="se-resize-dot">
|
|
103
|
-
<span class="tl"></span>
|
|
104
|
-
<span class="tr"></span>
|
|
105
|
-
<span class="bl"></span>
|
|
106
|
-
<span class="br"></span>
|
|
107
|
-
<span class="lw"></span>
|
|
108
|
-
<span class="th"></span>
|
|
109
|
-
<span class="rw"></span>
|
|
110
|
-
<span class="bh"></span>
|
|
111
|
-
<div class="se-resize-display"></div>
|
|
112
|
-
</div>`;return u.utils.createElement("DIV",{class:"se-controller se-resizing-container",style:"display: none;"},i)}function uN(i){const e=i.split("_"),t=e[0],o=e[1];let s,r,l,c,d;switch(t){case"resize":s="onresize",r=o,l="resize",d="resize";break;case"auto":s="auto",l="autoSize",d="auto_size";break;case"rotate":s="rotate",r=o==="l"?-90:o==="r"?90:Q.get(o),l=r<0?"rotateLeft":"rotateRight",d=r<0?"rotate_left":"rotate_right";break;case"mirror":s="mirror",r=o,l=o==="h"?"mirrorHorizontal":"mirrorVertical",d=o==="h"?"mirror_horizontal":"mirror_vertical";break;case"align":s="onalign",l="align",d="align_justify";break;case"caption":s="caption",l="caption",d="caption";break;case"revert":s="revert",l="revert",d="revert";break;case"edit":s="edit",l="edit",d="edit";break;case"as":s="onas",l="blockStyle",d="as_block";break;case"copy":s="copy",l="copy",d="copy";break;case"remove":s="remove",l="remove",d="delete";break}return s?{c:s,v:r,l,t:c,i:d}:null}function pN(i,e,t){let o=null;if((t==null?void 0:t.length)>0){const{lang:s,icons:r}=e;o='<div class="se-arrow se-arrow-up"></div>';for(let l=0,c;l<t.length;l++){c=t[l],o+='<div class="se-btn-group">';for(let d=0,h=c.length,p;d<h;d++){if(p=c[d],typeof(p==null?void 0:p.action)=="function"){const f=p;p={c:`__c__${f.command}`,v:f.value||"",l:f.title,i:f.icon},i._action[p.c]=f.action}else if(p=uN(p),!p)continue;o+=`
|
|
113
|
-
<button type="button" data-command="${p.c}" data-value="${p.v}" class="se-btn se-tooltip">
|
|
114
|
-
${r[p.i]||p.i}
|
|
115
|
-
<span class="se-tooltip-inner"><span class="se-tooltip-text">${s[p.l]||p.l}</span></span>
|
|
116
|
-
</button>`}o+="</div>"}}return o?u.utils.createElement("DIV",{class:"se-controller se-controller-resizing"},o):null}const fN=Ig,{_w:Hr,ON_OVER_COMPONENT:jr,isMobile:mN}=ge,bv=/^Arrow(Left|Up|Right|Down)$/,vv=/^Arrow(Left|Up)$/;class gN{constructor(e){w(this,Lf);w(this,If);w(this,Hd);w(this,jd);w(this,$f);w(this,Of);w(this,Df);w(this,Vf);w(this,Rf);w(this,zf);w(this,Pf);w(this,Hf);w(this,jf);w(this,Ff);w(this,Ro,void 0);w(this,ae,void 0);w(this,mt,void 0);w(this,Gn,void 0);w(this,Pd,void 0);w(this,Ms,void 0);w(this,ti,void 0);w(this,Dt,void 0);w(this,Ss,void 0);w(this,Fa,null);w(this,Wa,null);w(this,Ua,null);w(this,qa,null);x(this,Ro,e),x(this,ae,e.$),x(this,mt,e.store),x(this,Gn,n(this,ae).contextProvider),x(this,Pd,n(this,Gn).carrierWrapper),x(this,Ms,n(this,ae).options),x(this,ti,n(this,ae).frameContext),x(this,Dt,n(this,ae).eventManager),this.info=null,this.isSelected=!1,this.currentTarget=null,this.currentPlugin=null,this.currentPluginName="",this.currentInfo=null,x(this,Ss,{copy:E(this,Hf,Tw).bind(this),cut:E(this,jf,Mw).bind(this),keydown:E(this,Ff,Sw).bind(this),mousedown:E(this,Pf,Ew).bind(this)}),this.__selectionSelected=!1,this.__prevent=!1}_init(){n(this,Gn).applyToRoots(e=>{const t=u.utils.createElement("DIV",{class:"se-drag-handle",draggable:"true"},n(this,Gn).icons.selection);e.get("wrapper").appendChild(t),n(this,Dt).addEvent(t,"mouseenter",E(this,Of,ww).bind(this)),n(this,Dt).addEvent(t,"mouseleave",E(this,Df,Cw).bind(this)),n(this,Dt).addEvent(t,"dragstart",E(this,Vf,kw).bind(this)),n(this,Dt).addEvent(t,"dragend",E(this,Rf,_w).bind(this)),n(this,Dt).addEvent(t,"click",E(this,zf,xw).bind(this))})}insert(e,{skipCharCount:t=!1,skipHistory:o=!1,scrollTo:s=!0,insertBehavior:r}={}){var m;if(n(this,ti).get("isReadOnly")||!t&&!n(this,ae).char.check(e))return null;r===void 0&&(r=n(this,Ms).get("componentInsertBehavior"));const l=n(this,ae).html.remove(),c=this.isInline(e);n(this,ae).selection.getRangeAndAddLine(n(this,ae).selection.getRange(),l.container);const d=n(this,ae).selection.getNode();let h=null,p=n(this,ae).format.getLine(d,null);try{if(u.check.isListCell(p))n(this,ae).html.insertNode(e,{afterNode:c?null:u.check.isZeroWidth(d)?(d||l.container||{}).nextSibling:null,skipCharCount:!0}),!c&&!e.nextSibling&&e.parentNode.appendChild(u.utils.createElement("BR"));else{if(!c&&n(this,ae).selection.getRange().collapsed&&(((m=l.container)==null?void 0:m.nodeType)===3||u.check.isBreak(l.container))){const g=u.query.getParentElement(l.container,n(this,ae).format.isBlock.bind(n(this,ae).format));h=n(this,ae).nodeTransform.split(l.container,l.offset,g?u.query.getNodeDepth(g)+1:0),h&&(p=h.previousSibling)}n(this,ae).html.insertNode(e,{afterNode:c||n(this,ae).format.isBlock(p)?null:p,skipCharCount:!0}),!c&&p&&u.check.isZeroWidth(p)&&u.utils.removeItem(p)}if(c){const g=u.utils.createTextNode(De.zeroWidthSpace);e.parentNode.insertBefore(g,e.nextSibling)}}catch(g){console.error("Component insert error:",g)}o||n(this,ae).history.push(!1),n(this,ti).has("documentType_use_header")&&n(this,ti).get("documentType").reHeader();const f=h||e;return s&&n(this,ae).selection.scrollTo(f,{behavior:"auto"}),r!==null&&this.applyInsertBehavior(e,h,r),f}applyInsertBehavior(e,t,o){const s=this.get(e);if(this.isInline(e)){const r=n(this,ae).selection.getNearRange(e);r?n(this,ae).selection.setRange(r.container,r.offset,r.container,r.offset):this.select(s.target,s.pluginName);return}switch(o){case"auto":{E(this,jd,U0).call(this,e)||this.select(s.target,s.pluginName);break}case"select":{n(this,ae).selection.setRange(e,0,e,0),s?this.select(s.target,s.pluginName):t&&(t=u.query.getEdgeChildNodes(t,null).sc||t,n(this,ae).selection.setRange(t,0,t,0));break}case"line":{if(!E(this,jd,U0).call(this,e)){const r=n(this,ae).format.addLine(e,null);r&&n(this,ae).selection.setRange(r,0,r,0)}break}}}get(e){if(!e)return null;let t,o="",s={},r=!1,l=null;if(this.is(e)){if(u.check.isComponentContainer(e)&&!u.utils.hasClass(e,"se-inline-component")&&(e=e.firstElementChild||e),/^FIGURE$/i.test(e.nodeName)&&(e=e.firstElementChild),!e)return null;const h=n(this,ae).pluginManager.findComponentInfo(e);if(!h)return null;t=h.target,o=h.pluginName,s=h.options,l=h.launcher}if(!t&&e.nodeName){E(this,$f,yw).call(this,e)&&(r=!0);const h=n(this,ae).pluginManager.findComponentInfo(e);if(!h)return null;t=h.target,o=h.pluginName,s=h.options,l=h.launcher}if(!t)return null;const c=fN.GetContainer(t),d=c.container||c.cover||t;return this.info={target:c.target,pluginName:o,options:s,container:d,cover:c.cover,inlineCover:c.inlineCover,caption:c.caption,isFile:r,launcher:l,isInputType:u.utils.hasClass(d,"se-input-component")}}select(e,t,{isInput:o=!1}={}){const s=this.get(e);if(!s||u.check.isUneditable(u.query.getParentElement(e,this.is.bind(this)))||u.check.isUneditable(e))return!1;const r=s.launcher||n(this,ae).plugins[t];if(!r)return;const l=ye.get("__overInfo")!==jr;if(!o&&l){if(n(this,mt).get("_mousedown"))return;n(this,mt).set("_preventBlur",!0),this.__selectionSelected=!0,this.isInline(s.container)&&n(this,ae).selection.setRange(s.container,0,s.container,0),n(this,ae).focusManager.blur(),Hr.setTimeout(()=>{this.__selectionSelected=!1})}this.isSelected=!0,this.__prevent=!0;let c;typeof r.componentSelect=="function"&&(c=r.componentSelect(e));const d=u.utils.hasClass(s.target,"se-component-line-break");(d||!c&&!u.utils.hasClass(s.container,"se-inline-component"))&&this._setComponentLineBreaker(s.container||s.cover||e),this.currentTarget=e,this.currentPlugin=r,this.currentPluginName=t,this.currentInfo=s,ye.set("__dragInst",this);const h=ye.get("__overInfo");if(Hr.setTimeout(()=>{ye.set("__overInfo",h===jr?void 0:!1),h!==jr&&E(this,Lf,bw).call(this),s.isFile||E(this,If,vw).call(this),u.utils.addClass(s.container,"se-component-selected")},0),l&&!n(this,mt).get("hasFocus")&&!n(this,mt).get("_preventFocus")&&(n(this,Ro)._eventOrchestrator.__postFocusEvent(n(this,ti),null),n(this,mt).set("_preventFocus",!0)),!d&&h!==jr){if(!this.isInline(s.container))return;const p=s.container;let f=null;(!p.previousSibling||u.check.isBreak(p.previousSibling))&&(f=u.utils.createTextNode(De.zeroWidthSpace),p.parentNode.insertBefore(f,p)),(!p.nextSibling||u.check.isBreak(p.nextSibling))&&(f=u.utils.createTextNode(De.zeroWidthSpace),p.parentNode.insertBefore(f,p.nextSibling)),n(this,mt).set("controlActive",!0)}else if(d||!u.utils.hasClass(s.container,"se-input-component")){const p=n(this,ti).get("wrapper").querySelector(".se-drag-handle");u.utils.addClass(p,"se-drag-handle-full"),n(this,ae).ui._visibleControllers(!1,!1);const f=s.caption?s.target:s.cover||s.container||s.target,m=f.offsetWidth,g=f.offsetHeight,{top:v,left:b}=n(this,ae).offset.getLocal(f);p.style.opacity="0",p.style.width=m+"px",p.style.height=g+"px",p.style.top=v+"px",p.style.left=b+"px",ye.set("__dragHandler",p),ye.set("__dragContainer",s.container),ye.set("__dragCover",s.cover),p.style.display="block"}}deselect(){Hr.setTimeout(()=>{n(this,mt).set("controlActive",!1)},0),this.__deselect(),n(this,ae).ui.setControllerOnDisabledButtons(!1),n(this,mt).get("_preventFocus")&&!n(this,mt).get("hasFocus")&&!this.__prevent&&(n(this,Ro)._eventOrchestrator.__postBlurEvent(n(this,ti),null),n(this,mt).set("_preventFocus",!1))}is(e){return e?!!(/^FIGURE$/i.test(e.nodeName)||u.check.isComponentContainer(e)||n(this,ae).pluginManager.findComponentInfo(e)):!1}isInline(e){return e?(/^FIGURE$/i.test(e.nodeName)&&(e=e.parentElement),!!(u.utils.hasClass(e,"se-inline-component")||n(this,ae).pluginManager.findComponentInfo(e)&&(u.utils.hasClass(e,"se-inline-component")||u.utils.hasClass(e.parentElement,"se-inline-component")))):!1}isBasic(e){return this.is(e)&&!this.isInline(e)}async copy(e){const t=u.utils.clone(e,!0);Og(t),await n(this,ae).html.copy(t)!==!1&&u.utils.flashClass(e,"se-copy")}hoverSelect(e){const t=u.query.getParentElement(e,u.check.isFigure);let o=this.get(e);o||t?(o||(o=this.get(t)),o&&!u.utils.hasClass(o.container,"se-component-selected")&&(n(this,ae).ui.offCurrentController(),ye.set("__overInfo",jr),this.select(o.target,o.pluginName))):ye.get("__overInfo")!==null&&!u.utils.hasClass(e,"se-drag-handle")&&(this.__deselect(),ye.set("__overInfo",null))}__deselect(){var e,t;if(n(this,mt).set("_preventBlur",!1),ye.set("__overInfo",null),this.__removeDragEvent(),this.currentInfo){const o=this.currentInfo.container,s=this.currentInfo.cover;Hr.setTimeout(()=>{Og(o),u.utils.removeClass(s,"se-figure-over-selected")},0)}n(this,ti).get("lineBreaker_t")&&(n(this,ti).get("lineBreaker_t").style.display=n(this,ti).get("lineBreaker_b").style.display="none"),this.currentPlugin&&((t=(e=this.currentPlugin).componentDeselect)==null||t.call(e,this.currentTarget)),this.isSelected=!1,this.currentPlugin=null,this.currentTarget=null,this.currentPluginName="",this.currentInfo=null,this.__removeGlobalEvent(),n(this,ae).ui._offControllers()}_setComponentLineBreaker(e){var A,B,$,L;const t=ye.get("__overInfo")===jr;n(this,Ro)._eventOrchestrator._lineBreakComp=null;const o=this.get(e);if(!o)return;const s=n(this,ti),r=o.container,l=u.utils.hasClass(r,"se-flex-component"),c=s.get("lineBreaker_t"),d=s.get("lineBreaker_b"),h=c.style,p=d.style,f=r.offsetWidth<e.offsetWidth?r:e,m=n(this,ae).ui.getVisibleFigure()||f,g=u.check.isListCell(r.parentNode);let v,b;const y=n(this,Ms).get("_rtl"),C=y?["right","left"]:["left","right"],{top:k,left:_,right:S,scrollX:T,scrollY:M}=n(this,ae).offset.getLocal(f),N=y?S:_;if(g?!u.check.isBreak(r.previousElementSibling)&&!((B=(A=r.previousSibling)==null?void 0:A.textContent)!=null&&B.trim())||this.is(r.previousElementSibling):!n(this,ae).format.isLine(r.previousElementSibling)){const O=Hr.getComputedStyle(c),D=Q.get(O.height,1),I=Q.get(O.width,1);n(this,Ro)._eventOrchestrator._lineBreakComp=r,v=k,b=m.offsetWidth/2/2,h.top=v-D/2+"px",h[C[0]]=(l?N-I/2:N+b)+"px",h[C[1]]="",c.setAttribute("data-offset",M+","+T),t?u.utils.removeClass(c,"se-on-selected"):u.utils.addClass(c,"se-on-selected"),h.display="block",h.visibility=""}else h.display="none";if(g?!u.check.isBreak(r.nextElementSibling)&&!((L=($=r.nextSibling)==null?void 0:$.textContent)!=null&&L.trim())||this.is(r.nextElementSibling):!n(this,ae).format.isLine(r.nextElementSibling)){const O=Hr.getComputedStyle(d),D=Q.get(O.height,1),I=Q.get(O.width,1);v||(n(this,Ro)._eventOrchestrator._lineBreakComp=r,v=k,b=m.offsetWidth/2/2),p.top=v+m.offsetHeight-D/2+"px",p[C[0]]=N+m.offsetWidth-(l?0:b)-(l?I/2:I)+"px",p[C[1]]="",d.setAttribute("data-offset",M+","+C[0]+","+T),t?u.utils.removeClass(d,"se-on-selected"):u.utils.addClass(d,"se-on-selected"),p.display="block",p.visibility=""}else p.display="none"}__removeGlobalEvent(){E(this,Hd,W0).call(this),n(this,Fa)&&x(this,Fa,n(this,Dt).removeGlobalEvent(n(this,Fa))),n(this,Wa)&&x(this,Wa,n(this,Dt).removeGlobalEvent(n(this,Wa))),n(this,Ua)&&x(this,Ua,n(this,Dt).removeGlobalEvent(n(this,Ua)))}__removeDragEvent(){n(this,Pd).querySelector(".se-drag-cursor").style.left="-10000px",ye.get("__dragHandler")&&(ye.get("__dragHandler").style.display="none"),u.utils.removeClass([ye.get("__dragHandler"),ye.get("__dragContainer")],"se-dragging"),u.utils.removeClass([ye.get("__dragCover"),ye.get("__dragContainer")],"se-drag-over"),ye.set("__figureInst",null),ye.set("__dragInst",null),ye.set("__dragHandler",null),ye.set("__dragContainer",null),ye.set("__dragCover",null),ye.set("__dragMove",null),ye.set("__overInfo",null)}_destroy(){this.__removeGlobalEvent(),this.__removeDragEvent()}}Ro=new WeakMap,ae=new WeakMap,mt=new WeakMap,Gn=new WeakMap,Pd=new WeakMap,Ms=new WeakMap,ti=new WeakMap,Dt=new WeakMap,Ss=new WeakMap,Fa=new WeakMap,Wa=new WeakMap,Ua=new WeakMap,qa=new WeakMap,Lf=new WeakSet,bw=function(){this.__removeGlobalEvent(),x(this,Fa,n(this,Dt).addGlobalEvent("copy",n(this,Ss).copy)),x(this,Wa,n(this,Dt).addGlobalEvent("cut",n(this,Ss).cut)),x(this,Ua,n(this,Dt).addGlobalEvent("keydown",n(this,Ss).keydown))},If=new WeakSet,vw=function(){E(this,Hd,W0).call(this),x(this,qa,n(this,Dt).addGlobalEvent(mN?"click":"mousedown",n(this,Ss).mousedown,!0))},Hd=new WeakSet,W0=function(){n(this,qa)&&x(this,qa,n(this,Dt).removeGlobalEvent(n(this,qa)))},jd=new WeakSet,U0=function(e){const t=e.nextElementSibling;if(t){if(n(this,ae).format.isLine(t))return n(this,ae).selection.setRange(t,0,t,0),!0}else{const o=n(this,ae).format.addLine(e,null);return o&&n(this,ae).selection.setRange(o,0,o,0),!0}return!1},$f=new WeakSet,yw=function(e){var o;const t=e.nodeName.toLowerCase();return n(this,ae).pluginManager.fileInfo.regExp.test(t)&&(!n(this,ae).pluginManager.fileInfo.tagAttrs[t]||((o=n(this,ae).pluginManager.fileInfo.tagAttrs[t])==null?void 0:o.every(s=>e.hasAttribute(s))))},Of=new WeakSet,ww=function(){n(this,mt).set("_preventBlur",!0),n(this,ae).ui._visibleControllers(!1,u.utils.hasClass(ye.get("__dragHandler"),"se-drag-handle-full")),u.utils.addClass(ye.get("__dragCover")||ye.get("__dragContainer"),"se-drag-over")},Df=new WeakSet,Cw=function(){n(this,mt).set("_preventBlur",!1),u.utils.hasClass(ye.get("__dragHandler"),"se-drag-handle-full")||n(this,ae).ui._visibleControllers(!0,!0),u.utils.removeClass([ye.get("__dragCover"),ye.get("__dragContainer")],"se-drag-over")},Vf=new WeakSet,kw=function(e){const t=ye.get("__dragCover")||ye.get("__dragContainer");if(!t){e.preventDefault();return}n(this,mt).set("_preventBlur",!1),u.utils.addClass(ye.get("__dragHandler"),"se-dragging"),u.utils.addClass(ye.get("__dragContainer"),"se-dragging"),e.dataTransfer.setDragImage(t,n(this,Ms).get("_rtl")?t.offsetWidth:-5,-5)},Rf=new WeakSet,_w=function(){n(this,mt).set("_preventBlur",!1),u.utils.removeClass([ye.get("__dragHandler"),ye.get("__dragContainer")],"se-dragging"),this.__removeDragEvent()},zf=new WeakSet,xw=function(e){const t=u.query.getEventTarget(e);if(!u.utils.hasClass(t,"se-drag-handle-full"))return;const o=ye.get("__dragInst");o&&(this.__removeDragEvent(),this.select(o.currentTarget,o.currentPluginName))},Pf=new WeakSet,Ew=function(e){var o;const t=u.query.getEventTarget(e);(o=this.currentTarget)!=null&&o.contains(t)||u.query.getParentElement(t,".se-controller")||u.utils.hasClass(t,"se-drag-handle")||this.currentPluginName===n(this,ae).ui.currentControllerName&&n(this,ae).ui.opendControllers.some(({form:s})=>s.contains(t))||this.deselect()},Hf=new WeakSet,Tw=function(e){var r;const t=u.query.getEventTarget(e);if(u.check.isInputElement(t)&&u.query.getParentElement(t,".se-modal"))return;const o=this.info;if(!o)return;const s=o.container.cloneNode(!0);(typeof((r=n(this,ae).plugins[o.pluginName])==null?void 0:r.componentCopy)!="function"||n(this,ae).plugins[o.pluginName].componentCopy({event:e,cloneContainer:s,info:o})===!1)&&yv(e,s,e.clipboardData),u.utils.flashClass(o.container,"se-copy")},jf=new WeakSet,Mw=function(e){const t=this.info;if(!t)return;const o=t.container.cloneNode(!0);u.utils.removeClass(o,"se-component-selected"),yv(e,o,e.clipboardData),this.deselect(),u.utils.removeItem(t.container)},Ff=new WeakSet,Sw=async function(e){var s;if(n(this,ae).ui.selectMenuOn)return;const t=e.code;if(Me.isCtrl(e)){if(t!=="ControlRight"&&t!=="ControlLeft"){const r=n(this,ae).shortcuts.keyMap.get(t+(e.shiftKey?"1000":""));/^(redo|undo)$/.test(r==null?void 0:r.command)&&(e.preventDefault(),e.stopPropagation(),n(this,ae).commandDispatcher.run(r.command,r.type,r.button))}return}if(Me.isRemoveKey(t)&&(e.preventDefault(),e.stopPropagation(),typeof((s=this.currentPlugin)==null?void 0:s.componentDestroy)=="function"&&(!this.info.isInputType||!n(this,mt).get("hasFocus")))){const r=this.info.container.previousSibling;if(await this.currentPlugin.componentDestroy(this.currentTarget),this.deselect(),r){const l=r.nodeType===3?r.textContent.length:1;n(this,ae).selection.setRange(r,l,r,l)}else n(this,ae).focusManager.focus();return}if(Me.isEnter(t)){e.preventDefault();const r=this.currentInfo||this.get(this.currentTarget),l=r.container||r.target,c=l.previousElementSibling||l.nextElementSibling;let d=null;u.check.isListCell(l.parentNode)?d=u.utils.createElement("BR"):d=u.utils.createElement(n(this,ae).format.isLine(c)?c.nodeName:n(this,Ms).get("defaultLine"),null,"<br>");const h=this.currentPluginName;this.deselect(),l.parentNode.insertBefore(d,l),this.select(r.target,h)===!1&&n(this,ae).focusManager.blur(),n(this,ae).history.push(!1);return}if(bv.lastIndex=0,bv.test(t)){const{container:r}=this.get(this.currentTarget),l=this.isInline(r||this.currentTarget);let c=null,d=1;if(l)switch(t){case"ArrowLeft":c=r.previousSibling,d=(c==null?void 0:c.nodeType)===3?c.textContent.length:1;break;case"ArrowRight":c=r.nextSibling,d=0;break;case"ArrowUp":{const p=n(this,ae).format.getLine(r,null);c=p==null?void 0:p.previousElementSibling,d=0;break}case"ArrowDown":{const p=n(this,ae).format.getLine(r,null);c=p==null?void 0:p.nextElementSibling;break}}else vv.lastIndex=0,vv.test(t)?c=r.previousElementSibling:(c=r.nextElementSibling,d=0);if(!c)return;this.deselect();const h=this.get(c);if(h!=null&&h.container)e.stopPropagation(),e.preventDefault(),this.select(h.target,h.pluginName);else try{n(this,mt).set("_preventBlur",!0),e.stopPropagation(),e.preventDefault(),n(this,ae).selection.setRange(c,d,c,d)}finally{n(this,mt).set("_preventBlur",!1)}return}if(Me.isEsc(t)){this.deselect();return}};function yv(i,e,t){i.preventDefault(),i.stopPropagation(),Og(e),t.setData("text/html",e.outerHTML)}function Og(i){u.utils.removeClass(i,"se-component-selected"),u.utils.removeClass(i.querySelectorAll(".se-figure-selected"),"se-figure-selected"),u.utils.removeClass(i.querySelectorAll(".se-selected-table-cell"),"se-selected-table-cell"),u.utils.removeClass(i.querySelector(".se-selected-cell-focus"),"se-selected-cell-focus")}const bN=gN;class vN{constructor(e,t){w(this,Fd,void 0);w(this,ao,void 0);w(this,Ft,void 0);w(this,Wd,void 0);w(this,Yn,void 0);w(this,Za,void 0);w(this,Ga,void 0);w(this,Ya,[]);w(this,Ka,[]);w(this,Kt,{tags:null,regExp:null,pluginRegExp:null,pluginMap:null});w(this,Kn,[]);w(this,Xa,new Map);w(this,As,new Map([["onMouseMove",[]],["onMouseLeave",[]],["onMouseDown",[]],["onMouseUp",[]],["onScroll",[]],["onClick",[]],["onBeforeInput",[]],["onInput",[]],["onKeyDown",[]],["onKeyUp",[]],["onFocus",[]],["onBlur",[]],["onPaste",[]],["onFilePasteAndDrop",[]]]));x(this,Fd,e),x(this,ao,e.$),x(this,Ft,t.plugins||{}),x(this,Wd,n(this,ao).contextProvider),x(this,Yn,n(this,ao).options),x(this,Za,t.pluginCallButtons),x(this,Ga,t.pluginCallButtons_sub)}get plugins(){return n(this,Ft)}get fileInfo(){return n(this,Kt)}findComponentInfo(e){for(const t of n(this,Kn)){const o=t(e);if(o)return o}return null}applyRetainFormat(e){let t;(t=n(this,Yn).get("__pluginRetainFilter"))&&n(this,Xa).forEach((o,s)=>{const r=e.querySelectorAll(s);for(let l=0,c=r.length;l<c;l++)(t===!0||t[o.key]!==!1)&&o.method(r[l])})}emitEvent(e,t){const o=n(this,As).get(e);for(let s=0,r;s<o.length;s++)if(r=o[s](t),typeof r=="boolean")return r}async emitEventAsync(e,t){const o=n(this,As).get(e);for(let s=0,r;s<o.length;s++)if(r=await o[s](t),typeof r=="boolean")return r}checkFileInfo(e){for(let t=0,o=n(this,Ya).length;t<o;t++)n(this,Ya)[t](e)}resetFileInfo(){for(let e=0,t=n(this,Ka).length;e<t;e++)n(this,Ka)[e]()}register(e,t,o){let s=n(this,Ft)[e];if(s)typeof n(this,Ft)[e]=="function"&&(s=n(this,Ft)[e]=new(n(this,Ft))[e](n(this,Fd),o||{}));else throw Error(`[SUNEDITOR.registerPlugin.fail] The called plugin does not exist or is in an invalid format. (pluginName: "${e}")`);if(t){const{icons:r,lang:l}=n(this,Wd);for(let c=0,d=t.length;c<d;c++)tv(t[c],s,r,l);!n(this,ao).commandDispatcher.activeCommands.includes(e)&&typeof n(this,Ft)[e].active=="function"&&n(this,ao).commandDispatcher.activeCommands.push(e)}}init(e){var r;n(this,Kt).tags=[],n(this,Kt).pluginMap={},n(this,Kt).tagAttrs={};const t=n(this,Ft),o=[];let s;for(const l in t){if(this.register(l,n(this,Za)[l],e[l]),this.register(l,n(this,Ga)[l],e[l]),s=n(this,Ft)[l],typeof s.__fileManagement=="object"){const d=s.__fileManagement;if(n(this,Ya).push(d._checkInfo.bind(d)),n(this,Ka).push(d._resetInfo.bind(d)),Array.isArray(d.tagNames)){const h=d.tagNames;n(this,Kt).tags=n(this,Kt).tags.concat(h),o.push(l);for(let p=0,f=h.length,m;p<f;p++)m=h[p].toLowerCase(),n(this,Kt).pluginMap[m]=l,d.tagAttrs&&(n(this,Kt).tagAttrs[m]=d.tagAttrs)}}typeof s.constructor.component=="function"&&n(this,Kn).push((function(d,h){var p;return!h||!(h=(p=d.component)==null?void 0:p.call(d,h))?null:{target:h,pluginName:d.key,options:d.options}}).bind(null,s.constructor));const c=s.constructor.options||{};if(n(this,As).forEach((d,h)=>{if(typeof s[h]=="function"){const p=s[h].bind(s);p.index=c[`eventIndex_${h}`]||c.eventIndex||0,d.push(p)}}),s.retainFormat){const d=s.retainFormat();n(this,Xa).set(d.query,{key:s.constructor.key,method:d.method})}}for(const l of n(this,As).values())l.sort((c,d)=>c.index-d.index);(n(this,Yn).get("buttons").has("pageBreak")||(r=n(this,Yn).get("buttons_sub"))!=null&&r.has("pageBreak"))&&n(this,Kn).push((function(l,c,d){return!d||!u.utils.hasClass(d,"se-page-break")?null:{target:d,launcher:{componentDestroy:p=>{const f=p.previousElementSibling||p.nextElementSibling;u.utils.removeItem(p),l.focusEdge(f),c.push(!1)}}}}).bind(null,n(this,ao).focusManager,n(this,ao).history)),n(this,Kt).regExp=new RegExp(`^(${n(this,Kt).tags.join("|")||"\\^"})$`,"i"),n(this,Kt).pluginRegExp=new RegExp(`^(${o.length===0?"\\^":o.join("|")})$`,"i"),x(this,Za,null),x(this,Ga,null)}get(e){return n(this,Ft)[e]}_destroy(){var e,t,o;for(const s in n(this,Ft)){const r=n(this,Ft)[s];(e=r._destroy)==null||e.call(r),r.editor=null}x(this,Ft,null),x(this,Kt,null),x(this,Kn,null),(t=n(this,As))==null||t.clear(),(o=n(this,Xa))==null||o.clear()}}Fd=new WeakMap,ao=new WeakMap,Ft=new WeakMap,Wd=new WeakMap,Yn=new WeakMap,Za=new WeakMap,Ga=new WeakMap,Ya=new WeakMap,Ka=new WeakMap,Kt=new WeakMap,Kn=new WeakMap,Xa=new WeakMap,As=new WeakMap;const yN=vN;class wN{constructor(e){w(this,Ud,void 0);w(this,Mt,void 0);w(this,Xn,void 0);w(this,qd,void 0);w(this,lo,void 0);w(this,Qa,void 0);x(this,Ud,e),x(this,Mt,e.$),x(this,Xn,e.store),x(this,qd,n(this,Mt).options),x(this,lo,n(this,Mt).frameContext),x(this,Qa,n(this,Mt).frameOptions)}focus(e){if(e&&n(this,Mt).facade.changeFrameContext(e),n(this,lo).get("wysiwygFrame").style.display!=="none"){if(n(this,Xn).set("_preventBlur",!1),n(this,Qa).get("iframe")||!n(this,lo).get("wysiwyg").contains(n(this,Mt).selection.getNode()))this.nativeFocus();else try{const t=n(this,Mt).selection.getRange();if(t.startContainer===t.endContainer&&u.check.isWysiwygFrame(t.startContainer)){const o=t.commonAncestorContainer.children[t.startOffset];if(!n(this,Mt).format.isLine(o)&&!n(this,Mt).component.is(o)){const s=u.utils.createElement("BR"),r=u.utils.createElement(n(this,qd).get("defaultLine"),null,s);n(this,lo).get("wysiwyg").insertBefore(r,o),n(this,Mt).selection.setRange(s,0,s,0);return}}n(this,Mt).selection.setRange(t.startContainer,t.startOffset,t.endContainer,t.endOffset)}catch(t){console.warn("[SUNEDITOR.focus.warn] ",t),this.nativeFocus()}n(this,Xn).mode.isBalloon&&n(this,Ud)._eventOrchestrator._toggleToolbarBalloon()}}focusEdge(e){n(this,Xn).set("_preventBlur",!1),e||(e=n(this,lo).get("wysiwyg").lastElementChild);const t=n(this,Mt).component.get(e);t?n(this,Mt).component.select(t.target,t.pluginName):e?(e.nodeType!==3&&(e=u.query.getEdgeChild(e,function(o){return o.childNodes.length===0||o.nodeType===3},!0)),e?n(this,Mt).selection.setRange(e,e.textContent.length,e,e.textContent.length):this.nativeFocus()):this.focus()}nativeFocus(){n(this,Mt).selection.__focus(),n(this,Mt).selection.init()}blur(){n(this,Qa).get("iframe")?n(this,lo).get("wysiwygFrame").blur():n(this,lo).get("wysiwyg").blur()}}Ud=new WeakMap,Mt=new WeakMap,Xn=new WeakMap,qd=new WeakMap,lo=new WeakMap,Qa=new WeakMap;const CN=/^H[1-6]$/,Dg=/^(UL|OL)$/,sp=/^LI$/,wv=/^(THEAD|TBODY|TR|TD|TH)$/;function kN(i){const e=i.nodeName;return e==="P"||e==="DIV"?"p":CN.test(e)?"heading":e==="LI"?"list-item":Dg.test(e)?"list":e==="BLOCKQUOTE"?"blockquote":e==="PRE"?"pre":e==="FIGURE"?"figure":e==="TABLE"?"table":"p"}function Vg(i){let e=i;for(;e&&!ns(e);){if(e.nodeName==="TABLE")return e;e=e.parentNode}return null}function Cv(i){let e=i;for(;e&&!ns(e);){if(e.nodeType===1&&Nb(e))return!0;e=e.parentNode}return!1}function _N(i,e){let t=0,o=null,s=i.parentNode;for(;s&&!ns(s);)s.nodeType===1&&(e.isBlock(s)||e.isLine(s))&&(o||(o=s),t++),s=s.parentNode;return{depth:t,parent:o}}function xN(i){const e=i.previousElementSibling,t=i.nextElementSibling;return{prev:e,next:t}}function EN(i,e){const t=i.children;let o=null,s=1/0;for(let r=0;r<t.length;r++){const l=t[r];if(!sp.test(l.nodeName))continue;const c=l.getBoundingClientRect();if(e>=c.top&&e<=c.bottom)return Rg(l,e)||l;const d=Math.min(Math.abs(e-c.top),Math.abs(e-c.bottom));d<s&&(s=d,o=l)}return o}function Rg(i,e){const t=i.querySelector(":scope > ul, :scope > ol");if(!t)return null;const o=t.getBoundingClientRect();if(e<o.top)return null;const s=t.children;let r=null,l=1/0;for(let c=0;c<s.length;c++){const d=s[c];if(!sp.test(d.nodeName))continue;const h=d.getBoundingClientRect();if(e>=h.top&&e<=h.bottom)return Rg(d,e)||d;const p=Math.min(Math.abs(e-h.top),Math.abs(e-h.bottom));p<l&&(l=p,r=d)}return r}function TN(i,e,t,o){if(!i||!t||i.nodeType===3&&(i=i.parentNode,!i)||ns(i)||Cv(i))return null;let s=null;if(wv.test(i.nodeName))s=Vg(i);else if(Dg.test(i.nodeName))s=i;else if(sp.test(i.nodeName))s=i;else if(Sb(i.parentNode))s=Vg(i);else{const h=e.getLine(i,null);if(h&&(s=h),!s){const p=e.getBlock(i,null);p&&(wv.test(p.nodeName)?s=Vg(p):s=p)}}if(!s){let h=i;for(;h&&!ns(h);){if(h.nodeType===1&&h.parentNode&&ns(h.parentNode)){s=h;break}h=h.parentNode}}if(!s||Cv(s))return null;if(o!==void 0){if(Dg.test(s.nodeName)){const h=EN(s,o);h&&(s=h)}else if(sp.test(s.nodeName)){const h=Rg(s,o);h&&(s=h)}}const{depth:r,parent:l}=_N(s,e),c=xN(s),d=kN(s);return{element:s,type:d,depth:r,parent:l,siblings:c,rect:s.getBoundingClientRect()}}const{_w:Gt,_d:MN}=ge;function SN(i,e){const t=(i||"").trim(),o=Q.get(t,-1);return o?/rem$/.test(t)?o*(Q.get(Gt.getComputedStyle(MN.documentElement).fontSize,-1)||16):/em$/.test(t)?o*(Q.get(e.fontSize,-1)||16):o:0}class AN{constructor(e,t,o,s,r,l){w(this,Wf);w(this,er);w(this,Bs);w(this,Zd);w(this,Uf);w(this,tr);w(this,Gd);w(this,ir);w(this,qf);w(this,Zf);w(this,Gf);w(this,Yd);w(this,Kd);w(this,sl);w(this,Yf);w(this,Kf);w(this,Xf);w(this,Qf);w(this,Jf);w(this,e1);w(this,t1);w(this,i1);w(this,o1);w(this,s1);w(this,n1);w(this,r1);w(this,a1);w(this,l1);w(this,c1);w(this,Se,void 0);w(this,pi,void 0);w(this,Pe,void 0);w(this,Ja,void 0);w(this,ut,void 0);w(this,el,void 0);w(this,gt,null);w(this,kt,null);w(this,zo,null);w(this,Qn,null);w(this,tl,void 0);w(this,Po,null);w(this,co,[]);w(this,Pi,!1);w(this,ho,null);w(this,Ai,null);w(this,Jn,null);w(this,il,null);w(this,ol,null);var h;x(this,Se,e),x(this,pi,t),x(this,Pe,o),x(this,Ja,s),x(this,ut,r),x(this,el,l||null),n(this,Se).contextProvider.carrierWrapper.appendChild(n(this,Pe));const c=n(this,Se).eventManager;c.addEvent(n(this,Pe),"mousedown",E(this,Jf,Rw).bind(this)),x(this,ho,u.utils.createElement("DIV",{class:"se-block-drag-indicator"})),n(this,ho).style.display="none",(h=n(this,pi).parentElement)==null||h.appendChild(n(this,ho)),c.addEvent(n(this,Ja),"click",E(this,Qf,Vw).bind(this)),n(this,ut).draggable=!0,c.addEvent(n(this,ut),"dragstart",E(this,t1,Pw).bind(this)),c.addEvent(n(this,ut),"dragend",E(this,s1,Fw).bind(this)),c.addEvent(n(this,ut),"click",E(this,a1,qw).bind(this)),c.addEvent(n(this,pi),"mousemove",E(this,qf,Nw).bind(this)),c.addEvent(n(this,pi),"mouseleave",E(this,Zf,Lw).bind(this));const d=n(this,pi).parentElement;d&&(c.addEvent(d,"mouseleave",E(this,Gf,Iw).bind(this)),c.addEvent(d,"dragover",E(this,i1,Hw).bind(this)),c.addEvent(d,"drop",E(this,o1,jw).bind(this))),c.addEvent(n(this,Se).frameContext.get("eventWysiwyg"),"keydown",E(this,e1,zw).bind(this),!0)}positionForTarget(e,t){var o;E(this,ir,su).call(this),!((o=n(this,gt))!=null&&o.isOpen||n(this,Pi))&&(x(this,Qn,e),x(this,tl,t),!n(this,zo)&&x(this,zo,Gt.requestAnimationFrame(()=>{x(this,zo,null),n(this,Qn)&&E(this,Kd,Y0).call(this,n(this,Qn),n(this,tl))})))}hide(e){var o,s;if((o=n(this,gt))!=null&&o.isOpen)return;const t=e==null?void 0:e.relatedTarget;t&&(n(this,pi).contains(t)||(s=n(this,Pe))!=null&&s.contains(t))||E(this,Gd,Z0).call(this)}hideNow(){var e;E(this,ir,su).call(this),E(this,er,iu).call(this),(e=n(this,gt))==null||e.close(),E(this,Bs,Ul).call(this,null)}syncScroll(){var e;n(this,kt)&&(u.utils.addClass(n(this,Pe),"se-no-transition"),E(this,sl,Lm).call(this,n(this,kt)),n(this,Pe).offsetHeight,u.utils.removeClass(n(this,Pe),"se-no-transition"),(e=n(this,gt))!=null&&e.isOpen&&n(this,gt).setHidden(n(this,Pe).style.display==="none"))}destroy(){var e,t,o;n(this,zo)&&(Gt.cancelAnimationFrame(n(this,zo)),x(this,zo,null)),x(this,Pi,!1),E(this,ir,su).call(this),n(this,ut)&&(n(this,ut).draggable=!1),(e=n(this,ho))==null||e.remove(),(t=n(this,Pe))==null||t.remove(),(o=n(this,gt))==null||o.close(),x(this,gt,null),E(this,Bs,Ul).call(this,null),x(this,Qn,null),x(this,tl,void 0),x(this,Se,null),x(this,pi,null),x(this,Pe,null),x(this,Ja,null),x(this,ut,null)}}Se=new WeakMap,pi=new WeakMap,Pe=new WeakMap,Ja=new WeakMap,ut=new WeakMap,el=new WeakMap,gt=new WeakMap,kt=new WeakMap,zo=new WeakMap,Qn=new WeakMap,tl=new WeakMap,Po=new WeakMap,co=new WeakMap,Pi=new WeakMap,ho=new WeakMap,Ai=new WeakMap,Jn=new WeakMap,il=new WeakMap,ol=new WeakMap,Wf=new WeakSet,Aw=function(){var e,t;n(this,Pe).style.display="flex";try{(t=(e=n(this,Pe)).showPopover)==null||t.call(e)}catch{}},er=new WeakSet,iu=function(){var e,t;try{(t=(e=n(this,Pe)).hidePopover)==null||t.call(e)}catch{}n(this,Pe).style.display="none"},Bs=new WeakSet,Ul=function(e){if(E(this,tr,ou).call(this),x(this,kt,e),!e)return;const t=E(this,Zd,q0).call(this,e);if(t){x(this,co,t);for(let o=0;o<t.length;o++)u.utils.addClass(t[o],"se-block-hover")}else u.utils.addClass(e,"se-block-hover")},Zd=new WeakSet,q0=function(e){try{const t=n(this,Se).selection.getRange();if(!t||t.collapsed)return null;const o=n(this,Se).format.getLine(t.startContainer,null),s=n(this,Se).format.getLine(t.endContainer,null);if(!o||!s||o===s)return null;const r=u.query.getListChildren(t.commonAncestorContainer,h=>n(this,Se).format.isLine(h),null),l=r.indexOf(o),c=r.indexOf(s);if(l===-1||c===-1)return null;const d=r.slice(Math.min(l,c),Math.max(l,c)+1);return d.indexOf(e)===-1?null:d}catch{}return null},Uf=new WeakSet,Bw=function(e){E(this,tr,ou).call(this),x(this,co,e||[]);for(let t=0;t<n(this,co).length;t++)u.utils.addClass(n(this,co)[t],"se-block-hover")},tr=new WeakSet,ou=function(){n(this,kt)&&u.utils.removeClass(n(this,kt),"se-block-hover");for(let e=0;e<n(this,co).length;e++)u.utils.removeClass(n(this,co)[e],"se-block-hover");x(this,co,[])},Gd=new WeakSet,Z0=function(){n(this,Po)||x(this,Po,Gt.setTimeout(()=>{var e;x(this,Po,null),E(this,er,iu).call(this),(e=n(this,gt))==null||e.close(),E(this,Bs,Ul).call(this,null)},200))},ir=new WeakSet,su=function(){n(this,Po)&&(Gt.clearTimeout(n(this,Po)),x(this,Po,null))},qf=new WeakSet,Nw=function(e){var l;if(!n(this,Se)||n(this,Pi)||(E(this,ir,su).call(this),(l=n(this,gt))!=null&&l.isOpen))return;const t=n(this,Se).frameContext.get("wysiwyg");if(!t)return;const o=n(this,Se).frameContext.get("wysiwygFrame"),s=o&&o.nodeName==="IFRAME";let r;if(s){const c=o.getBoundingClientRect(),d=o.contentDocument;d&&(r=d.elementFromPoint(c.width/2,e.clientY-c.top))}else{const c=t.getBoundingClientRect();r=document.elementFromPoint(c.left+c.width/2,e.clientY)}r&&t.contains(r)&&E(this,Kd,Y0).call(this,r,e.clientY)},Zf=new WeakSet,Lw=function(e){var t;(t=n(this,gt))!=null&&t.isOpen||E(this,Yd,G0).call(this,e==null?void 0:e.relatedTarget)||this.hideNow()},Gf=new WeakSet,Iw=function(e){var t;(t=n(this,gt))!=null&&t.isOpen||E(this,Yd,G0).call(this,e==null?void 0:e.relatedTarget)||this.hideNow()},Yd=new WeakSet,G0=function(e){var o,s;if(!e)return!1;const t=(o=n(this,pi))==null?void 0:o.parentElement;return!!((s=n(this,Pe))!=null&&s.contains(e)||t!=null&&t.contains(e))},Kd=new WeakSet,Y0=function(e,t){var c;if(!n(this,Se))return;const o=n(this,Se).format,s=n(this,Se).frameContext.get("wysiwyg");if(!s)return;let r=e;if(r===s&&t!==void 0){const d=s.getBoundingClientRect(),h=document.elementFromPoint(d.left+d.width/2,t);h&&s.contains(h)&&h!==s&&(r=h)}const l=TN(r,{getLine:(d,h)=>o.getLine(d,h),getBlock:(d,h)=>o.getBlock(d,h),isLine:d=>o.isLine(d),isBlock:d=>o.isBlock(d)},s,t);if(!l){E(this,Gd,Z0).call(this);return}if(!(l.element===n(this,kt)&&n(this,Pe).style.display==="flex")){if((c=n(this,kt))!=null&&c.isConnected&&n(this,Pe).style.display==="flex"&&t!==void 0&&!n(this,kt).contains(l.element)){const d=n(this,kt).getBoundingClientRect();if(t>=d.top&&t<=d.bottom)return}E(this,Bs,Ul).call(this,l.element),E(this,sl,Lm).call(this,l.element)}},sl=new WeakSet,Lm=function(e){if(!e.isConnected){this.hideNow();return}const t=e.getBoundingClientRect(),o=n(this,pi).getBoundingClientRect(),s=n(this,Se).frameContext.get("wysiwygFrame"),r=/^iframe$/i.test(s.nodeName),l=r?s.getBoundingClientRect():null;if(r){const k=s.clientHeight||0;if(t.bottom<=0||t.top>=k){E(this,er,iu).call(this);return}}else{const k=s.getBoundingClientRect();if(t.bottom<=k.top||t.top>=k.bottom){E(this,er,iu).call(this);return}}const c=Gt.scrollX,d=Gt.scrollY,h=n(this,Pe).style.display!=="flex";h&&(u.utils.addClass(n(this,Pe),"se-no-transition"),n(this,Pe).style.display="flex");const p=n(this,Pe).offsetHeight||0,f=E(this,Yf,$w).call(this,e,t),g=(r?f+l.top:f)+d-p/2,v=!!n(this,Se).options.get("_rtl"),b=E(this,Kf,Ow).call(this,e,v);let y=0;if(n(this,Se).frameOptions.get("innerWidth")){const k=n(this,Se).frameContext.get("wysiwyg");if(k){const _=Gt.getComputedStyle(k),S=Q.get(v?_.paddingRight:_.paddingLeft,-1)||0,T=SN(_.getPropertyValue("--se-edit-inner-padding"),_);y=Math.max(0,S-T)}}const C=b+y;n(this,Pe).style.top=g+"px",v?(n(this,Pe).style.left="",n(this,Pe).style.right=Gt.innerWidth-o.right-c+C+"px"):(n(this,Pe).style.right="",n(this,Pe).style.left=o.left+c+C+"px"),E(this,Wf,Aw).call(this),h&&(n(this,Pe).offsetHeight,u.utils.removeClass(n(this,Pe),"se-no-transition"))},Yf=new WeakSet,$w=function(e,t){var s;try{const r=e.ownerDocument,l=r.createTreeWalker(e,NodeFilter.SHOW_TEXT,null);let c=null;for(;(c=l.nextNode())&&!((s=c.textContent)!=null&&s.trim()););if(c){const d=r.createRange();d.setStart(c,0),d.setEnd(c,Math.min(1,c.length));const h=d.getClientRects();if(h.length)return(h[0].top+h[0].bottom)/2}}catch{}const o=Q.get(Gt.getComputedStyle(e).lineHeight,-1)||t.height;return t.top+Math.min(o,t.height)/2},Kf=new WeakSet,Ow=function(e,t){const o=n(this,Se).frameContext.get("wysiwyg");if(!o)return 0;const s=n(this,Se).format,r=t?"marginRight":"marginLeft",l=t?"paddingRight":"paddingLeft";let c=0;c+=Q.get(Gt.getComputedStyle(e)[r],-1)||0;let d=e.parentElement;for(;d&&d!==o;){if(s.isBlock(d)){const h=Gt.getComputedStyle(d);c+=(Q.get(h[l],-1)||0)+(Q.get(h[r],-1)||0)}d=d.parentElement}return c},Xf=new WeakSet,Dw=function(){if(!n(this,kt))return;const e=n(this,kt),t=E(this,Zd,q0).call(this,e),o=t?t[0]:e,s=t?t[t.length-1]:e;n(this,Se).selection.setRange(o,0,s,s.childNodes.length)},Qf=new WeakSet,Vw=function(e){if(e.preventDefault(),e.stopPropagation(),!n(this,kt))return;const t=n(this,Se).format.addLineAfter(n(this,kt));t&&(n(this,Se).selection.setRange(t,1,t,1),n(this,Se).history.push(!1))},Jf=new WeakSet,Rw=function(e){const t=n(this,ut)&&(e.target===n(this,ut)||n(this,ut).contains(e.target));if(ge.isMobile){n(this,Se).store.set("_preventBlur",!0);return}t||e.preventDefault()},e1=new WeakSet,zw=function(){E(this,tr,ou).call(this)},t1=new WeakSet,Pw=function(e){var r;if(!n(this,kt)){e.preventDefault();return}x(this,Ai,n(this,kt)),x(this,Pi,!0),(r=n(this,gt))==null||r.close(),u.utils.addClass(n(this,Ai),"se-block-dragging");const t=n(this,Se).frameContext.get("wysiwyg");x(this,il,t||null),x(this,ol,t?Array.from(t.children):null);const o=!!n(this,Se).options.get("_rtl"),s=n(this,Ai);e.dataTransfer.setDragImage(s,o?s.offsetWidth:-5,-5),e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("application/x-suneditor-block-drag","1")},i1=new WeakSet,Hw=function(e){n(this,Pi)&&(e.preventDefault(),e.stopPropagation(),e.dataTransfer.dropEffect="move",E(this,n1,Ww).call(this,e.clientY))},o1=new WeakSet,jw=function(e){n(this,Pi)&&(e.preventDefault(),e.stopPropagation(),E(this,r1,Uw).call(this))},s1=new WeakSet,Fw=function(){var e;if(n(this,Ai)&&u.utils.removeClass(n(this,Ai),"se-block-dragging"),n(this,ho).style.display="none",x(this,Pi,!1),x(this,Ai,null),x(this,Jn,null),x(this,il,null),x(this,ol,null),(e=n(this,ut))!=null&&e.parentNode){const t=n(this,ut).parentNode,o=n(this,ut).nextSibling;t.removeChild(n(this,ut)),t.insertBefore(n(this,ut),o)}},n1=new WeakSet,Ww=function(e){if(!n(this,Se)||!n(this,Ai))return;const t=n(this,il),o=n(this,ol);if(!t||!o)return;const s=t.getBoundingClientRect(),r=n(this,pi).parentElement.getBoundingClientRect();let l=null,c="after",d=0,h=1/0;for(let p=0;p<o.length;p++){const f=o[p],m=f.getBoundingClientRect(),g=Math.abs(e-m.top);g<h&&(h=g,l=f,c="before",d=m.top);const v=Math.abs(e-m.bottom);v<h&&(h=v,l=f,c="after",d=m.bottom)}if(l&&l!==n(this,Ai)){x(this,Jn,{element:l,position:c});const p=n(this,ho);p.style.display="block",p.style.top=d-r.top+"px",p.style.left=s.left-r.left+"px",p.style.width=s.width+"px"}else x(this,Jn,null),n(this,ho).style.display="none"},r1=new WeakSet,Uw=function(){const e=n(this,Ai),t=n(this,Jn);!e||!t||t.element===e||!e.parentNode||(t.position==="before"?t.element.parentNode.insertBefore(e,t.element):t.element.parentNode.insertBefore(e,t.element.nextSibling),E(this,Bs,Ul).call(this,e),E(this,sl,Lm).call(this,e),n(this,Se).history.push(!1))},a1=new WeakSet,qw=function(e){if(e.preventDefault(),e.stopPropagation(),!n(this,Pi)&&n(this,el))if(n(this,gt)||x(this,gt,E(this,l1,Zw).call(this)),n(this,gt).isOpen)n(this,gt).close();else{E(this,Xf,Dw).call(this);const t=n(this,Se).format.getLines(null);t.length>0&&E(this,Uf,Bw).call(this,t);const o=n(this,Se).offset.getGlobal(n(this,ut)),s=u.utils.getClientSize().h-(o.top-Gt.scrollY+o.height),r=o.top-Gt.scrollY,c=`${n(this,Se).options.get("_rtl")?"left":"right"}-${s>=r?"bottom":"top"}`;n(this,gt).open(c)}},l1=new WeakSet,Zw=function(){const e=new aB(this,n(this,Se),{items:n(this,el),resolveButton:FA,selectMenuParams:{position:"right-top",dir:n(this,Se).options.get("_rtl")?"rtl":"ltr",minWidth:"200px",keydownTarget:Gt,closeMethod:()=>{u.utils.removeClass(n(this,ut),"on"),E(this,tr,ou).call(this)},openMethod:()=>{u.utils.addClass(n(this,ut),"on")}}});return e.attach(n(this,ut),E(this,c1,Gw).bind(this),{class:"se-block-action-menu"}),e.createRows(e.getItems()),e},c1=new WeakSet,Gw=function(e){var t,o;!n(this,kt)||!n(this,Se)||!e||((t=n(this,gt))==null||t.dispatch(e,{block:n(this,kt)}),e.kind!=="dropdownFree"&&((o=n(this,gt))==null||o.close()))};const BN=AN,{NO_EVENT:NN}=ge,LN={bold:["font-weight"],underline:["text-decoration"],italic:["font-style"],strike:["text-decoration"]};class IN{constructor(e){w(this,d1);w(this,h1);w(this,u1);w(this,p1);w(this,f1);w(this,m1);w(this,g1);w(this,Xd,void 0);w(this,le,void 0);w(this,nl,void 0);w(this,Vt,void 0);w(this,Wt,void 0);w(this,Ns,void 0);w(this,rl,null);w(this,al,null);w(this,Ls,null);w(this,Bi,null);x(this,Xd,e),x(this,le,e.$),x(this,nl,e.store),x(this,Vt,n(this,le).frameContext),x(this,Wt,n(this,le).options),x(this,Ns,n(this,le).eventManager)}async execute(e,t){if(!(n(this,Vt).get("isReadOnly")&&!/copy|cut|selectAll|selectAll_full|codeView|markdownView|fullScreen|print|preview|showBlocks|finder/.test(e)))switch(e){case"selectAll":E(this,d1,Yw).call(this);break;case"selectAll_full":E(this,h1,Kw).call(this);break;case"copy":{const o=n(this,le).selection.getRange();if(o.collapsed)break;const s=u.utils.createElement("div",null,o.cloneContents());await n(this,le).html.copy(s.innerHTML);break}case"newDocument":n(this,le).html.set(`<${n(this,Wt).get("defaultLine")}><br></${n(this,Wt).get("defaultLine")}>`),n(this,le).focusManager.focus(),n(this,le).history.push(!1),n(this,Vt).has("documentType_use_header")&&n(this,Vt).get("documentType").reHeader();break;case"finder":n(this,le).finder.isOpen?n(this,le).finder.close():n(this,le).finder.open(!0);break;case"codeView":n(this,le).viewer.codeView(!n(this,Vt).get("isCodeView"));break;case"markdownView":n(this,le).viewer.markdownView(!n(this,Vt).get("isMarkdownView"));break;case"fullScreen":n(this,le).viewer.fullScreen(!n(this,Vt).get("isFullScreen"));break;case"indent":n(this,le).format.indent();break;case"outdent":n(this,le).format.outdent();break;case"undo":n(this,le).history.undo();break;case"redo":n(this,le).history.redo();break;case"removeFormat":n(this,le).inline.remove(),n(this,le).focusManager.focus();break;case"print":n(this,le).viewer.print();break;case"preview":n(this,le).viewer.preview();break;case"showBlocks":n(this,le).viewer.showBlocks(!n(this,Vt).get("isShowBlocks"));break;case"dir":n(this,le).ui.setDir(n(this,Wt).get("_rtl")?"ltr":"rtl");break;case"dir_ltr":n(this,le).ui.setDir("ltr");break;case"dir_rtl":n(this,le).ui.setDir("rtl");break;case"save":await E(this,u1,Xw).call(this);break;case"copyFormat":E(this,p1,Qw).call(this,t);break;case"pageBreak":E(this,g1,t3).call(this);break;case"pageUp":n(this,Vt).get("documentType").pageUp();break;case"pageDown":n(this,Vt).get("documentType").pageDown();break;default:E(this,m1,e3).call(this,e)}}copyFormat(){var e,t;if((e=n(this,Ls))!=null&&e.length)try{const o=[...n(this,Ls)],s=o.pop();if(n(this,le).inline.remove(),s){const r=n(this,le).inline.apply(s,{stylesToModify:null,nodesToRemove:[s.nodeName],strictRemove:!1}),{parent:l,inner:c}=n(this,le).nodeTransform.createNestedNode(o);r.parentNode.insertBefore(l,r),c.appendChild(r),n(this,le).selection.setRange(r,u.check.isZeroWidth(r)?1:0,r,1)}if(n(this,Wt).get("copyFormatKeepOn"))return;n(this,Bi).call(this)}catch(o){console.warn("[SUNEDITOR.copyFormat.error] ",o),(t=n(this,Bi))!=null&&t.call(this)||(x(this,Ls,null),x(this,Bi,null))}}}Xd=new WeakMap,le=new WeakMap,nl=new WeakMap,Vt=new WeakMap,Wt=new WeakMap,Ns=new WeakMap,rl=new WeakMap,al=new WeakMap,Ls=new WeakMap,Bi=new WeakMap,d1=new WeakSet,Yw=function(){var g,v,b,y,C,k,_,S;n(this,le).ui.offCurrentController(),n(this,le).menu.containerOff();const e=n(this,Vt).get("wysiwyg");let t=null,o="";const s=n(this,Wt).get("scopeSelectionTags"),r=n(this,le).selection.getRange();if(!r.collapsed){let T=t=r.commonAncestorContainer,M=o=(g=T.nodeName)==null?void 0:g.toLowerCase();if(r.startOffset===0&&r.endOffset===((v=r.endContainer.textContent)==null?void 0:v.length)){const N=T.parentElement;(u.check.isList(N)||u.check.isListCell(N))&&((y=(b=N.firstChild).contains)!=null&&y.call(b,r.startContainer))&&((C=N.lastChild)!=null&&C.contains(r.endContainer))&&(t=T=N.parentElement,o=(k=T.nodeName)==null?void 0:k.toLowerCase())}for(M=(_=T.nodeName)==null?void 0:_.toLowerCase();T&&(!T.nextSibling&&!T.previousSibling&&!s.includes(M)||u.check.isContentLess(M))&&T!==e;)T=T.parentElement,M=(S=T.nodeName)==null?void 0:S.toLowerCase();s.includes(M)&&(t=T,o=M)}const l=s.filter(T=>T!==o);let d=u.query.getParentElement(t||n(this,le).selection.getNode(),T=>{var M;return l.includes((M=T.nodeName)==null?void 0:M.toLowerCase())})||e,{first:h,last:p}=zg(d);if(!h||!p)return;const f=u.check.isZeroWidth;for(;f(h)&&f(p)&&d!==e;)d=d.parentElement,{first:h,last:p}=zg(u.query.getParentElement(d,T=>{var M;return l.includes((M=T.nodeName)==null?void 0:M.toLowerCase())})||e);if(!h||!p)return;let m=null;if(u.check.isMedia(h)||(m=n(this,le).component.get(h))||u.check.isTableElements(h)){m||(m=n(this,le).component.get(h));const T=u.utils.createElement("BR"),M=u.utils.createElement(n(this,Wt).get("defaultLine"),null,T);h=m?m.container||m.cover:h,h.parentElement.insertBefore(M,h),h=T}if(u.check.isMedia(p)||(m=n(this,le).component.get(p))||u.check.isTableElements(p)){m||(m=n(this,le).component.get(p));const T=u.utils.createElement("BR"),M=u.utils.createElement(n(this,Wt).get("defaultLine"),null,T);p=m?m.container||m.cover:p,p.parentElement.appendChild(M),p=T}n(this,le).toolbar._showBalloon(n(this,le).selection.setRange(h,0,p,p.textContent.length))},h1=new WeakSet,Kw=function(){n(this,le).ui.offCurrentController(),n(this,le).menu.containerOff();const e=n(this,Vt).get("wysiwyg");let{first:t,last:o}=zg(e);if(!t||!o)return;let s=null;if(u.check.isMedia(t)||(s=n(this,le).component.get(t))||u.check.isTableElements(t)){s||(s=n(this,le).component.get(t));const r=u.utils.createElement("BR"),l=u.utils.createElement(n(this,Wt).get("defaultLine"),null,r);t=s?s.container||s.cover:t,t.parentElement.insertBefore(l,t),t=r}if(u.check.isMedia(o)||(s=n(this,le).component.get(o))||u.check.isTableElements(o)){s||(s=n(this,le).component.get(o));const r=u.utils.createElement("BR"),l=u.utils.createElement(n(this,Wt).get("defaultLine"),null,r);o=s?s.container||s.cover:o,o.parentElement.appendChild(l),o=r}n(this,le).toolbar._showBalloon(n(this,le).selection.setRange(t,0,o,o.textContent.length))},u1=new WeakSet,Xw=async function(){const e=n(this,Vt);if(!e.get("isChanged"))return;const t=n(this,le).html.get(),o=await n(this,Ns).triggerEvent("onSave",{frameContext:e,data:t});if(o===NN){const s=e.get("originElement");/^TEXTAREA$/i.test(s.nodeName)?s.value=t:s.innerHTML=t}else if(o===!1)return;e.set("isChanged",!1),e.set("savedIndex",n(this,le).history.getRootStack()[n(this,nl).get("rootKey")].index),n(this,le).commandDispatcher.applyTargets("save",s=>{s.disabled=!0})},p1=new WeakSet,Qw=function(e){if(typeof n(this,Bi)=="function"){n(this,Bi).call(this);return}const t=n(this,Vt).get("wysiwyg");x(this,Ls,[...n(this,Xd)._eventOrchestrator.__cacheStyleNodes]),x(this,Bi,E(this,f1,Jw).bind(this,n(this,Ns),t,e)),u.utils.addClass(t,"se-copy-format-cursor"),u.utils.addClass(e,"on"),x(this,rl,n(this,Ns).addGlobalEvent("keydown",o=>{var s;Me.isEsc(o.code)&&((s=n(this,Bi))==null||s.call(this))})),x(this,al,n(this,Ns).addGlobalEvent("mousedown",o=>{var s;t.contains(o.target)||o.target===e||(s=n(this,Bi))==null||s.call(this)}))},f1=new WeakSet,Jw=function(e,t,o){return x(this,rl,e.removeGlobalEvent(n(this,rl))),x(this,al,e.removeGlobalEvent(n(this,al))),x(this,Ls,null),x(this,Bi,null),u.utils.removeClass(t,"se-copy-format-cursor"),u.utils.removeClass(o,"on"),!0},m1=new WeakSet,e3=function(e){e=n(this,Wt).get("_defaultTagCommand")[e.toLowerCase()]||e;let t=n(this,Wt).get("convertTextTags")[e]||e;const o=n(this,nl).get("currentNodesMap"),s=o.includes(n(this,Wt).get("_styleCommandMap")[t])?null:u.utils.createElement(t);/^sub$/i.test(t)&&o.includes("superscript")?t="sup":/^sup$/i.test(t)&&o.includes("subscript")&&(t="sub"),n(this,le).inline.apply(s,{stylesToModify:LN[e]||null,nodesToRemove:[t],strictRemove:!1}),n(this,le).focusManager.focus()},g1=new WeakSet,t3=function(){const e=u.utils.createElement("DIV",{class:"se-component se-component-line-break se-page-break"});n(this,le).component.insert(e,{skipCharCount:!0,insertBehavior:"line"});const t=e.nextElementSibling||n(this,le).format.addLine(e);n(this,le).selection.setRange(t,1,t,1),n(this,le).history.push(!1)};const zg=function(i){const e=u.check.isContentLess,t=u.query.getEdgeChild(u.query.getEdgeChild(i,s=>!e(s),!1),s=>s.childNodes.length===0||s.nodeType===3||gg(s)||mg(s),!1)||i.firstChild,o=u.query.getEdgeChild(i.lastChild,s=>s.childNodes.length===0||s.nodeType===3||gg(s)||mg(s),!0)||i.lastChild;return{first:t,last:o}},Pg=".se-menu-list .se-toolbar-btn[data-command]",kv=["bold","underline","italic","strike","subscript","superscript","indent","outdent"],$N=kv.concat(["undo","redo","save","fullScreen","showBlocks","codeView","markdownView","finder","dir","dir_ltr","dir_rtl"]);class ON{constructor(e){w(this,eh);w(this,it,void 0);w(this,Qd,void 0);w(this,ll,void 0);w(this,cl,void 0);w(this,ii,new Map);w(this,Jd,kv);x(this,it,e.$),x(this,Qd,n(this,it).context),x(this,ll,n(this,it).options),x(this,cl,new IN(e)),this.allCommandButtons=new Map,this.subAllCommandButtons=new Map}get targets(){return n(this,ii)}get activeCommands(){return n(this,Jd)}run(e,t,o){if(t){if(/more/i.test(t)){const s=u.query.getParentElement(o,".se-toolbar"),r=u.utils.hasClass(s,"se-toolbar-sub")?n(this,it).subToolbar:n(this,it).toolbar;if(o!==r.currentMoreLayerActiveButton){const l=s.querySelector("."+e);l&&(r._moreLayerOn(o,l),r._showBalloon(),r._showInline()),u.utils.addClass(o,"on")}else r.currentMoreLayerActiveButton&&(r._moreLayerOff(),r._showBalloon(),r._showInline());n(this,it).viewer._resetFullScreenHeight();return}if(/container/.test(t)&&(n(this,it).menu.targetMap[e]===null||o!==n(this,it).menu.currentContainerActiveButton)){n(this,it).menu.containerOn(o);return}if(n(this,it).ui.isButtonDisabled(o))return;if(/dropdown/.test(t)&&(n(this,it).menu.targetMap[e]===null||o!==n(this,it).menu.currentDropdownActiveButton)){n(this,it).menu.dropdownOn(o);return}else if(/modal/.test(t)){n(this,it).plugins[e].open(o);return}else/command/.test(t)?n(this,it).plugins[e].action(o):/browser/.test(t)?n(this,it).plugins[e].open(null):/popup/.test(t)&&n(this,it).plugins[e].show()}else e&&n(this,cl).execute(e,o);/dropdown/.test(t)?n(this,it).menu.dropdownOff():/command/.test(t)||(n(this,it).menu.dropdownOff(),n(this,it).menu.containerOff())}runFromTarget(e){if(u.check.isInputElement(e))return;const t=u.query.getCommandTarget(e);if(!t)return;const o=t.getAttribute("data-command"),s=t.getAttribute("data-type");!o&&!s||t.disabled||this.run(o,s,e)}applyTargets(e,t){n(this,ii).has(e)&&n(this,ii).get(e).forEach(t)}registerTargets(e,t){!e||!t||!$N.includes(e)&&!n(this,it).plugins[e]||(n(this,ii).get(e)?n(this,ii).get(e).includes(t)||n(this,ii).get(e).push(t):n(this,ii).set(e,[t]))}unregisterTargets(e,t){const o=n(this,ii).get(e);if(!o)return;const s=o.indexOf(t);s!==-1&&o.splice(s,1),o.length===0&&n(this,ii).delete(e)}resetTargets(){x(this,ii,new Map),this._initCommandButtons()}_initCommandButtons(){const e=n(this,Qd);E(this,eh,K0).call(this,this.allCommandButtons,e.get("toolbar_buttonTray")),E(this,eh,K0).call(this,this.subAllCommandButtons,e.get("toolbar_sub_buttonTray"))}_copyFormat(){n(this,cl).copyFormat()}_destroy(){n(this,ii).clear(),this.allCommandButtons.clear(),this.subAllCommandButtons.clear(),x(this,Jd,null)}}it=new WeakMap,Qd=new WeakMap,ll=new WeakMap,cl=new WeakMap,ii=new WeakMap,Jd=new WeakMap,eh=new WeakSet,K0=function(e,t){if(!t)return;const o=t.querySelectorAll(Pg),s=n(this,ll).get("shortcuts"),r=n(this,ll).get("_reverseCommandArray"),l=n(this,it).shortcuts.keyMap,c=n(this,it).shortcuts.reverseKeys;for(let d=0,h=o.length,p,f;d<h;d++)p=o[d],f=p.getAttribute("data-command"),e.set(f,p),this.registerTargets(f,p),Kb(f,p,s[f],l,r,c)};const _v=`${Pg}:not([class~="se-code-view-enabled"]):not([data-type="MORE"])`,xv=`${Pg}:not([class~="se-component-enabled"]):not([data-type="MORE"])`,{_w:np}=ge;class DN{constructor(e){w(this,b1);w(this,v1);w(this,oh);w(this,y1);w(this,w1);w(this,C1);w(this,th,void 0);w(this,xe,void 0);w(this,Hi,void 0);w(this,ji,void 0);w(this,fi,void 0);w(this,Ye,void 0);w(this,Nt,void 0);w(this,Fi,void 0);w(this,Xt,void 0);w(this,mi,void 0);w(this,Is,void 0);w(this,or,void 0);w(this,dl,void 0);w(this,hl,void 0);w(this,$s,null);w(this,uo,void 0);w(this,Os,!1);w(this,po,null);w(this,Ho,null);w(this,jo,[]);w(this,Ds,[]);w(this,ih,!1);w(this,fo,null);w(this,mo,null);w(this,Fo,null);jl(this,"setCurrentControllerContext");x(this,th,e),x(this,xe,e.$),x(this,Hi,e.store),x(this,ji,n(this,xe).contextProvider),x(this,fi,n(this,ji).carrierWrapper),x(this,Ye,n(this,xe).options),x(this,Nt,n(this,xe).context),x(this,Fi,n(this,xe).frameRoots),x(this,Xt,n(this,xe).frameContext),x(this,mi,n(this,xe).eventManager);const t=VN(n(this,ji));this.alertModal=t,this.alertMessage=t.querySelector("span");const o=RN();o.setAttribute("popover","manual"),this.toastPopup=o,this.toastContainer=o.querySelector(".se-toast-container"),this.toastMessage=o.querySelector("span"),n(this,fi).appendChild(o),x(this,Is,n(this,fi).querySelector(".se-alert")),x(this,or,n(this,fi).querySelector(".se-alert .se-modal-inner")),n(this,or).appendChild(t),x(this,dl,[E(this,C1,r3).bind(this),E(this,w1,n3).bind(this)]),x(this,hl,!1),x(this,uo,n(this,fi).querySelector(".se-back-wrapper")),this.selectMenuOn=!1,this.opendControllers=[],this.controllerTargetContext=null,this._figureContainer=null}setEditorStyle(e,t){t||(t=n(this,Xt));const o=t.get("options");o.set("editorStyle",e);const s=Te._setDefaultOptionStyle(o,e);o.set("_defaultStyles",s),t.get("topArea").style.cssText=s.top;const r=t.get("code");if(n(this,Ye).get("hasCodeMirror")){const l=o.get("_defaultStyles").frame.split(";");for(let c=0,d=l.length,h;c<d;c++){if(h=l[c].trim(),!h)continue;const[p,f]=h.split(":");r.style.setProperty(p.trim(),f.trim())}}else r.style.cssText=o.get("_defaultStyles").frame;o.get("iframe")?(t.get("wysiwygFrame").style.cssText=s.frame,t.get("wysiwyg").style.cssText=s.editor):t.get("wysiwygFrame").style.cssText=s.frame+s.editor}setTheme(e){if(typeof e!="string")return;const t=n(this,Ye),o=t.get("_themeClass").trim();t.set("theme",e||""),t.set("_themeClass",e?` se-theme-${e}`:""),e=t.get("_themeClass").trim();const s=r=>{r&&(o&&u.utils.removeClass(r,o),e&&u.utils.addClass(r,e))};s(n(this,fi)),n(this,ji).applyToRoots(r=>{s(r.get("topArea")),s(r.get("wysiwyg"))}),s(n(this,Nt).get("statusbar_wrapper")),s(n(this,Nt).get("toolbar_wrapper"))}setDir(e){var l,c;const t=e==="rtl";if(n(this,Ye).get("_rtl")===t)return;const o=n(this,Ye).get("textDirection"),s=n(this,Ye).get("_editableClass"),r=n(this,Ye).get("printClass");try{n(this,Ye).set("_rtl",t),n(this,Ye).set("textDirection",e);const d=t?n(this,Ye).get("_editableClass").replace(/\s*se-rtl/,"")+" se-rtl":n(this,Ye).get("_editableClass").replace(/\s*se-rtl/,"");n(this,Ye).set("_editableClass",d),n(this,Ye).get("printClass")&&n(this,Ye).set("printClass",t?n(this,Ye).get("printClass").replace(/\s*se-rtl/,"")+" se-rtl":n(this,Ye).get("printClass").replace(/\s*se-rtl/,"")),this.offCurrentController();const h=n(this,Xt),p=n(this,xe).pluginManager.plugins;for(const v in p)(c=(l=p[v]).setDir)==null||c.call(l,e);const f=n(this,Nt).get("toolbar_wrapper"),m=n(this,Nt).get("statusbar_wrapper");t?(n(this,ji).applyToRoots(v=>{u.utils.addClass([v.get("topArea"),v.get("wysiwyg"),v.get("documentTypePageMirror")],"se-rtl"),v.get("wysiwyg").dir="rtl"}),u.utils.addClass([n(this,fi),f,m],"se-rtl")):(n(this,ji).applyToRoots(v=>{u.utils.removeClass([v.get("topArea"),v.get("wysiwyg"),v.get("documentTypePageMirror")],"se-rtl"),v.get("wysiwyg").removeAttribute("dir")}),u.utils.removeClass([n(this,fi),f,m],"se-rtl"));const g=u.query.getListChildren(h.get("wysiwyg"),v=>n(this,xe).format.isLine(v)&&!!(v.style.marginRight||v.style.marginLeft||v.style.textAlign),null);for(let v=0,b,y,C;b=g[v];v++)b=g[v],C=b.style.marginRight,y=b.style.marginLeft,(C||y)&&(b.style.marginRight=y,b.style.marginLeft=C),C=b.style.textAlign,C==="left"?b.style.textAlign="right":C==="right"&&(b.style.textAlign="left");E(this,v1,o3).call(this,t),E(this,oh,X0).call(this,n(this,Nt).get("toolbar_buttonTray")),n(this,Nt).has("toolbar_sub_buttonTray")&&E(this,oh,X0).call(this,n(this,Nt).get("toolbar_sub_buttonTray")),n(this,Hi).mode.isBalloon?n(this,xe).toolbar._showBalloon():n(this,Hi).mode.isSubBalloon&&n(this,xe).subToolbar._showBalloon()}catch(d){n(this,Ye).set("_rtl",!t),n(this,Ye).set("textDirection",o),n(this,Ye).set("_editableClass",s),r!==null&&n(this,Ye).set("printClass",r),console.warn(`[SUNEDITOR.ui.setDir.fail] ${d.toString()}`)}n(this,Hi).set("_lastSelectionNode",null),n(this,th)._eventOrchestrator.applyTagEffect()}readOnly(e,t){var s,r,l,c,d,h,p,f;const o=t?n(this,Fi).get(t):n(this,Xt);o.set("isReadOnly",!!e),this._toggleControllerButtons(!!e),e?(this.offCurrentController(),this.offCurrentModal(),(r=(s=n(this,xe).toolbar)==null?void 0:s.currentMoreLayerActiveButton)!=null&&r.disabled&&n(this,xe).toolbar._moreLayerOff(),(c=(l=n(this,xe).subToolbar)==null?void 0:l.currentMoreLayerActiveButton)!=null&&c.disabled&&n(this,xe).subToolbar._moreLayerOff(),(h=(d=n(this,xe).menu)==null?void 0:d.currentDropdownActiveButton)!=null&&h.disabled&&n(this,xe).menu.dropdownOff(),(f=(p=n(this,xe).menu)==null?void 0:p.currentContainerActiveButton)!=null&&f.disabled&&n(this,xe).menu.containerOff(),o.get("code").setAttribute("readOnly","true"),u.utils.addClass(o.get("wysiwyg"),"se-read-only")):(o.get("code").removeAttribute("readOnly"),u.utils.removeClass(o.get("wysiwyg"),"se-read-only")),n(this,Ye).get("hasCodeMirror")&&n(this,xe).viewer._codeMirrorEditor("readonly",!!e,t)}disable(e){const t=e?n(this,Fi).get(e):n(this,Xt);n(this,xe).toolbar.disable(),this.offCurrentController(),this.offCurrentModal(),t.get("wysiwyg").setAttribute("contenteditable","false"),t.set("isDisabled",!0),n(this,Ye).get("hasCodeMirror")?n(this,xe).viewer._codeMirrorEditor("readonly",!0,e):t.get("code").disabled=!0}enable(e){const t=e?n(this,Fi).get(e):n(this,Xt);n(this,xe).toolbar.enable(),t.get("wysiwyg").setAttribute("contenteditable","true"),t.set("isDisabled",!1),n(this,Ye).get("hasCodeMirror")?n(this,xe).viewer._codeMirrorEditor("readonly",!1,e):t.get("code").disabled=!1}show(e){const o=(e?n(this,Fi).get(e):n(this,Xt)).get("topArea").style;o.display==="none"&&(o.display="block")}hide(e){const t=e?n(this,Fi).get(e):n(this,Xt);t.get("topArea").style.display="none"}showLoading(e){var o;const t=(e?n(this,Fi).get(e).get("container"):n(this,fi)).querySelector(".se-loading-box");t.style.display="block",(o=t.showPopover)==null||o.call(t)}hideLoading(e){var o;const t=(e?n(this,Fi).get(e).get("container"):n(this,fi)).querySelector(".se-loading-box");(o=t.hidePopover)==null||o.call(t),t.style.display="none"}alertOpen(e,t){var o,s;this.alertMessage.textContent=e,u.utils.removeClass(this.alertModal,"se-alert-error|se-alert-success"),t&&u.utils.addClass(this.alertModal,`se-alert-${t}`),n(this,hl)&&x(this,$s,n(this,mi).addEvent(n(this,or),"click",n(this,dl)[1])),n(this,po)&&x(this,po,n(this,mi).removeGlobalEvent(n(this,po))),x(this,po,n(this,mi).addGlobalEvent("keydown",n(this,dl)[0])),n(this,Is).style.display="block",(s=(o=n(this,Is)).showPopover)==null||s.call(o),u.utils.addClass(this.alertModal,"se-modal-show")}alertClose(){var e,t;u.utils.removeClass(this.alertModal,"se-modal-show"),u.utils.removeClass(this.alertModal,"se-alert-*"),(t=(e=n(this,Is)).hidePopover)==null||t.call(e),n(this,Is).style.display="none",n(this,$s)&&x(this,$s,n(this,mi).removeEvent(n(this,$s))),n(this,po)&&x(this,po,n(this,mi).removeGlobalEvent(n(this,po)))}showToast(e,t=1e3,o){var s,r;u.utils.hasClass(this.toastContainer,"se-toast-show")&&this.closeToast(),u.utils.removeClass(this.toastPopup,"se-toast-error|se-toast-success"),o&&u.utils.addClass(this.toastPopup,`se-toast-${o}`),this.toastPopup.style.display="block",(r=(s=this.toastPopup).showPopover)==null||r.call(s),this.toastMessage.textContent=e,u.utils.addClass(this.toastContainer,"se-toast-show"),x(this,Ho,np.setTimeout(()=>{this.closeToast()},t))}closeToast(){var e,t;n(this,Ho)&&np.clearTimeout(n(this,Ho)),x(this,Ho,null),u.utils.removeClass(this.toastContainer,"se-toast-show"),(t=(e=this.toastPopup).hidePopover)==null||t.call(e),this.toastPopup.style.display="none"}setControllerOnDisabledButtons(e){return e&&!n(this,Os)?(this._toggleControllerButtons(!0),x(this,Os,!0)):!e&&n(this,Os)&&(this._toggleControllerButtons(!1),x(this,Os,!1)),n(this,Os)}onControllerContext(){this.controllerTargetContext=n(this,Xt).get("topArea")}offControllerContext(){this.controllerTargetContext=null}enableBackWrapper(e){var t,o;n(this,uo).style.cursor=e,n(this,uo).style.display="block",(o=(t=n(this,uo)).showPopover)==null||o.call(t)}disableBackWrapper(){var e,t;(t=(e=n(this,uo)).hidePopover)==null||t.call(e),n(this,uo).style.display="none",n(this,uo).style.cursor="default"}offCurrentController(){n(this,xe).component.__deselect()}offCurrentModal(){var e;(e=this.opendModal)==null||e.close()}getVisibleFigure(){var e;return((e=this._figureContainer)==null?void 0:e.style.display)==="block"?this._figureContainer:null}setFigureContainer(e){this._figureContainer=e}preventToolbarHide(e){x(this,ih,e)}get isPreventToolbarHide(){return n(this,ih)}get blockHandle(){return n(this,Fo)}reset(e){e.set("_editorHeight",e.get("wysiwygFrame").offsetHeight),x(this,fo,e.get("lineBreaker_t")),x(this,mo,e.get("lineBreaker_b"));const t=n(this,Ye).get("blockHandle");t&&e.get("blockHandleArea")&&!n(this,Fo)&&x(this,Fo,new BN(n(this,xe),e.get("blockHandleArea"),e.get("blockHandle"),e.get("blockHandlePlus"),e.get("blockHandleDrag"),t.menu))}_offControllers(){var o,s;const e=this.opendControllers,t=[];for(let r=0,l;r<e.length;r++){if(l=e[r],l.fixed){t.push(l);continue}(s=(o=l.inst).controllerClose)==null||s.call(o),l.form&&(l.form.style.display="none")}this.opendControllers=t,this.currentControllerName="",n(this,Hi).set("_preventBlur",!1)}_syncScrollPosition(e){var s;const t=e.scrollTop||e.scrollY||0,o=e.scrollLeft||e.scrollX||0;n(this,Hi).mode.isBalloon&&n(this,Nt).get("toolbar_main").style.display==="block"?(n(this,Nt).get("toolbar_main").style.top=n(this,xe).toolbar.balloonOffset.top-t+"px",n(this,Nt).get("toolbar_main").style.left=n(this,xe).toolbar.balloonOffset.left-o+"px"):n(this,Hi).mode.isSubBalloon&&n(this,Nt).get("toolbar_sub_main").style.display==="block"&&(n(this,Nt).get("toolbar_sub_main").style.top=n(this,xe).subToolbar.balloonOffset.top-t+"px",n(this,Nt).get("toolbar_sub_main").style.left=n(this,xe).subToolbar.balloonOffset.left-o+"px"),(s=n(this,Fo))==null||s.syncScroll(),this.controllerTargetContext!==n(this,Xt).get("topArea")&&this.offCurrentController(),E(this,b1,i3).call(this,o,t)}_repositionControllers(){var t;const e=this.opendControllers;if(e.length!==0){ye.get("__dragMove")&&ye.get("__dragMove")();for(let o=0;o<e.length;o++)e[o].notInCarrier||(t=e[o].inst)==null||t._scrollReposition()}}_visibleControllers(e,t){const o=e?"":"hidden",s=t??o?"":"hidden",r=this.opendControllers;for(let l=0,c;l<r.length;l++)c=r[l],c.form&&(c.form.style.visibility=o);n(this,fo).style.visibility=s,n(this,mo).style.visibility=s}_initToggleButtons(){const e=n(this,Nt);x(this,Ds,Te.nodeListToArray(e.get("toolbar_buttonTray").querySelectorAll(_v))),x(this,jo,Te.nodeListToArray(e.get("toolbar_buttonTray").querySelectorAll(xv))),n(this,Ye).has("_subMode")&&(x(this,Ds,n(this,Ds).concat(Te.nodeListToArray(e.get("toolbar_sub_buttonTray").querySelectorAll(_v)))),x(this,jo,n(this,jo).concat(Te.nodeListToArray(e.get("toolbar_sub_buttonTray").querySelectorAll(xv)))))}_toggleCodeViewButtons(e){u.utils.setDisabled(n(this,Ds),e)}_toggleControllerButtons(e){u.utils.setDisabled(n(this,jo),e)}isButtonDisabled(e){return!!(n(this,Xt).get("isReadOnly")&&u.utils.arrayIncludes(n(this,jo),e))}_updatePlaceholder(e){e||(e=n(this,Xt));const t=e.get("isMarkdownView")||e.get("isCodeView"),o=!t&&E(this,y1,s3).call(this,e),s=e.get("placeholder");s&&(s.style.display=!t&&!o&&n(this,xe).facade.isEmpty(e)?"block":"none")}resolveLinePlaceholder(e,t){if(!e||!t)return"";if(typeof t!="object")return u.check.isListCell(e)||u.query.getParentElement(e,u.check.isTableCell)?"":t;const o=n(this,xe).format,s=e.nodeName.toLowerCase();if(typeof t[s]=="string")return t[s];if(u.check.isListCell(e)&&typeof t["@list"]=="string")return t["@list"];if(o.isClosureBrLine(e)&&typeof t["@closureBrLine"]=="string")return t["@closureBrLine"];if(o.isBrLine(e)&&typeof t["@brLine"]=="string")return t["@brLine"];const r=o.getBlock(e);if(r&&r!==e){const l=r.nodeName.toLowerCase();if(typeof t[l]=="string")return t[l];if(o.isClosureBlock(r)&&typeof t["@closureBlock"]=="string")return t["@closureBlock"];if(typeof t["@block"]=="string")return t["@block"]}return o.isNormalLine(e)&&typeof t["@normalLine"]=="string"?t["@normalLine"]:typeof t["@line"]=="string"?t["@line"]:""}_syncFrameState(e){e&&(this._iframeAutoHeight(e),this._updatePlaceholder(e),e.has("documentType_use_page")&&(e.get("documentTypePageMirror").innerHTML=e.get("wysiwyg").innerHTML,e.get("documentType").rePage(!0)))}_iframeAutoHeight(e){if(!e)return;const t=e.get("_iframeAuto");if(t)np.setTimeout(()=>{const o=t.offsetHeight,s=e.get("wysiwygFrame");if(!s)return;s.style.height=o+"px";const r=e.get("options");if(r!=null&&r.get("iframe")){const l=r.get("maxHeight");l&&s.setAttribute("scrolling",o>Q.get(l)?"auto":"no")}ge.isResizeObserverSupported||this._emitResizeEvent(e,o,null)},0);else if(!ge.isResizeObserverSupported){const o=e.get("wysiwygFrame");o&&this._emitResizeEvent(e,o.offsetHeight,null)}}_emitResizeEvent(e,t,o){t=t===-1?o!=null&&o.borderBoxSize&&o.borderBoxSize[0]?o.borderBoxSize[0].blockSize:o.contentRect.height+Q.get(e.get("wwComputedStyle").getPropertyValue("padding-left"))+Q.get(e.get("wwComputedStyle").getPropertyValue("padding-right")):t,e.get("_editorHeight")!==t&&(n(this,mi).triggerEvent("onResizeEditor",{height:t,prevHeight:e.get("_editorHeight"),frameContext:e,observerEntry:o}),e.set("_editorHeight",t)),e.has("documentType_use_page")&&e.get("documentType").resizePage()}init(){x(this,hl,!n(this,mi).addEvent(this.alertModal.querySelector('[data-command="close"]'),"click",this.alertClose.bind(this))),this._initToggleButtons()}_destroy(){var e;n(this,Ho)&&np.clearTimeout(n(this,Ho)),n(this,po)&&x(this,po,n(this,mi).removeGlobalEvent(n(this,po))),n(this,$s)&&x(this,$s,n(this,mi).removeEvent(n(this,$s))),this.opendModal=null,this.opendBrowser=null,x(this,fo,null),x(this,mo,null),(e=n(this,Fo))==null||e.destroy(),x(this,Fo,null),x(this,jo,null),x(this,Ds,null)}}th=new WeakMap,xe=new WeakMap,Hi=new WeakMap,ji=new WeakMap,fi=new WeakMap,Ye=new WeakMap,Nt=new WeakMap,Fi=new WeakMap,Xt=new WeakMap,mi=new WeakMap,Is=new WeakMap,or=new WeakMap,dl=new WeakMap,hl=new WeakMap,$s=new WeakMap,uo=new WeakMap,Os=new WeakMap,po=new WeakMap,Ho=new WeakMap,jo=new WeakMap,Ds=new WeakMap,ih=new WeakMap,fo=new WeakMap,mo=new WeakMap,Fo=new WeakMap,b1=new WeakSet,i3=function(e,t){if(n(this,fo)){const s=n(this,fo).style;if(s.display!=="none"){const r=(n(this,fo).getAttribute("data-offset")||",").split(",");s.top=Q.get(s.top,0)-(t-Q.get(r[0],0))+"px",s.left=Q.get(s.left,0)-(e-Q.get(r[1],0))+"px",n(this,fo).setAttribute("data-offset",t+","+e)}}if(n(this,mo)){const s=n(this,mo).style;if(s.display!=="none"){const r=(n(this,mo).getAttribute("data-offset")||",").split(",");s.top=Q.get(s.top,0)-(t-Q.get(r[0],0))+"px",s[r[1]]=Q.get(s[r[1]],0)-(e-Q.get(r[2],0))+"px",n(this,mo).setAttribute("data-offset",t+","+r[1]+","+e)}}const o=this.opendControllers;for(let s=0;s<o.length;s++)o[s].notInCarrier&&(o[s].form.style.top=o[s].inst.__offset.top-t+"px",o[s].form.style.left=o[s].inst.__offset.left-e+"px")},v1=new WeakSet,o3=function(e){var r,l,c,d;const t=n(this,ji).icons,o=(r=n(this,xe).commandDispatcher)==null?void 0:r.targets;if(!o)return;const s=(l=n(this,xe).shortcuts)==null?void 0:l.keyMap;(d=(c=n(this,xe).shortcuts)==null?void 0:c.reverseKeys)==null||d.forEach(h=>{const p=s==null?void 0:s.get(h);p&&([p.command,p.r]=[p.r,p.command])}),n(this,xe).commandDispatcher.applyTargets("dir",h=>{u.utils.changeTxt(h.querySelector(".se-tooltip-text"),n(this,ji).lang[e?"dir_ltr":"dir_rtl"]),u.utils.changeElement(h.firstElementChild,t[e?"dir_ltr":"dir_rtl"])}),e?(u.utils.addClass(o.get("dir_rtl"),"active"),u.utils.removeClass(o.get("dir_ltr"),"active")):(u.utils.addClass(o.get("dir_ltr"),"active"),u.utils.removeClass(o.get("dir_rtl"),"active"))},oh=new WeakSet,X0=function(e){if(!e)return;const t=e.querySelector(".se-toolbar-more-layer"),o=Array.from(e.children).filter(s=>s!==t);for(let s=o.length-1;s>=0;s--)e.appendChild(o[s]);t&&e.appendChild(t)},y1=new WeakSet,s3=function(e){const t=e.get("placeholder_line");if(!t)return!1;const o=e.get("wysiwyg"),s=n(this,Hi).get("hasFocus")?n(this,xe).format.getLine(n(this,xe).selection.selectionNode):null,r=u.check.isEmptyLine(s)?this.resolveLinePlaceholder(s,t):"",l=r?s:null,c=o.querySelectorAll(".se-placeholder-line");for(let d=0;d<c.length;d++){const h=c[d];h!==l&&(h.classList.remove("se-placeholder-line"),h.removeAttribute("data-se-placeholder-line"),h.getAttribute("class")||h.removeAttribute("class"))}return l?(l.classList.add("se-placeholder-line"),l.setAttribute("data-se-placeholder-line",r),!0):!1},w1=new WeakSet,n3=function(e){const t=u.query.getEventTarget(e);(/close/.test(t.getAttribute("data-command"))||t===n(this,or))&&this.alertClose()},C1=new WeakSet,r3=function(e){Me.isEsc(e.code)&&this.alertClose()};function VN({lang:i,icons:e}){const t='<div><button type="button" class="close" data-command="close" title="'+i.close+'">'+e.cancel+"</button></div><div><span></span></div>";return u.utils.createElement("DIV",{class:"se-alert-content"},t)}function RN(){const i='<div class="se-toast-container"><span></span></div>';return u.utils.createElement("DIV",{class:"se-toast"},i)}const zN=DN;function PN(i){const e=i.$,t=i.store,o=e.contextProvider,s=e.eventManager,r=o.frameRoots,l=o.context,c=o.frameContext;let d=e.options.get("historyStackDelayTime");const h=e.options.get("historyStackSize");let p=null,f,m,g,v,b=!1,y=null;function C(A,B,$){$&&t.get("hasFocus")&&i._eventOrchestrator.applyTagEffect(),e.history.resetButtons(A.get("key"),B),s.triggerEvent("onChange",{frameContext:A,data:A.get("wysiwyg").innerHTML}),l.get("toolbar_main").style.display==="block"?e.toolbar._showBalloon():t.mode.isSubBalloon&&l.get("toolbar_sub_main").style.display==="block"&&e.subToolbar._showBalloon()}function k(A){const B=m[f],$=g[B];f+=A;const L=A<0&&B!==m[f]&&$.index>0?B:m[f],O=g[L];O.index+=A;const D=O.value[O.index];if(!D){console.warn("[SunEditor.history.setContent.fail] History state desynchronized. Aborting undo/redo operation."),O.index-=A,f-=A;return}r.get(L).get("wysiwyg").innerHTML=D.content,B!==L&&A<0&&f===1?f=0:B!==L&&A>0&&O.index===1?f++:(A<0&&O.index<1||A>0&&O.index>O.value.length)&&(f+=A);let I=L,R=D;if(A<0&&f>0&&O.index===0){const F=m[f+A];if(F!==L){const q=g[F];I=F,R=q.value[q.index]}}e.facade.changeFrameContext(I),e.selection.setRange(yg(R.s.path,R.frame),R.s.offset,yg(R.e.path,R.frame),R.e.offset),e.focusManager.focus(),f<0?f=0:f>=m.length&&(f=m.length-1),e.ui.offCurrentController(),e.pluginManager.checkFileInfo(!1),e.char.display(),e.ui._syncFrameState(c),c.has("documentType_use_header")&&c.get("documentType").reHeader(),C(c,O.index,!0)}function _(A,B,$,L){let O,D;B?(O={path:vg(B.startContainer,null,null),offset:B.startOffset},D={path:vg(B.endContainer,null,null),offset:B.endOffset}):(O={path:[0,0],offset:[0,0]},D={path:0,offset:0}),f+=L,m[f]=$;const I=g[$];I.index+=L,I.value[I.index]={content:A,s:O,e:D,frame:r.get($).get("wysiwyg")}}function S(A){f++,m[f]=A;const B=g[A];B.index=0,B.value[0]={content:v[A],s:{path:[0,0],offset:[0,0]},e:{path:0,offset:0},frame:r.get(A).get("wysiwyg")}}function T(A){g[A]={value:[],index:-1},v[A]=r.get(A).get("wysiwyg").innerHTML}function M(A){const B=[];for(let $=f+1,L=m.length;$<L;$++)B.includes(m[$])||B.push(m[$]);m=m.slice(0,f+1),A.value.splice(A.index+1),e.commandDispatcher.applyTargets("redo",$=>{$.disabled=!0});for(let $=0,L=B.length;$<L;$++)m.includes(B[$])||T(B[$])}function N(A,B){e.pluginManager.checkFileInfo(!1);const $=r.get(A),L=$.get("wysiwyg").innerHTML,O=g[A];if(!(!L||O.value[O.index]&&L===O.value[O.index].content)){if(m.length>f+1&&M(O),O.value.length===0&&S(A),_(L,B,A,1),O.value.length>h){const D=O.value.length-h;O.value.splice(0,D),O.index-=D;let I=0;for(let R=m.length-1;R>=0&&I<D;R--)if(m[R]===A){for(let F=0;F<m.length;F++)if(m[F]===A){m.splice(F,1),I++;break}}f-=D}f===1&&e.commandDispatcher.applyTargets("undo",D=>{D.disabled=!1}),e.char.display(),C($,O.index,!1)}}return{push(A,B){if(b)return;B=B||B===null?B:t.get("rootKey");const $=t.get("_range");pe.setTimeout(e.ui._syncFrameState.bind(e.ui,r.get(B)),0);const L=typeof A=="number"?A>0?A:0:A?d:0;if((!L||p)&&(pe.clearTimeout(p),!L)){N(B,$);return}p=pe.setTimeout(()=>{pe.clearTimeout(p),p=null,N(B,$)},L)},check(A,B){p&&(pe.clearTimeout(p),p=null,N(A,B))},undo(){f>0&&k(-1)},redo(){m.length-1>f&&k(1)},overwrite(A){_(r.get(A||t.get("rootKey")).get("wysiwyg").innerHTML,null,t.get("rootKey"),0)},pause(){b=!0,y&&(pe.clearTimeout(y),y=null),y=pe.setTimeout(()=>{b=!1},5e3)},resume(){y&&(pe.clearTimeout(y),y=null),b=!1},reset(){e.commandDispatcher.applyTargets("undo",B=>B.disabled=!0),e.commandDispatcher.applyTargets("redo",B=>B.disabled=!0),e.commandDispatcher.applyTargets("save",B=>B.disabled=!0),o.applyToRoots(B=>B.set("historyIndex",-1)),o.applyToRoots(B=>B.set("isChanged",!1)),f=-1,m=[],g={},v={},b=!1;const A=o.rootKeys;for(let B=0,$=A.length;B<$;B++)T(A[B])},resetButtons(A,B){const $=!Q.is(B),L=g[A===void 0?m[f]:A];B=$?L.index:B;const O=r.get(A),D=L.value.length-1;e.commandDispatcher.applyTargets("undo",q=>{B>0&&B<=D?q.disabled=!1:q.disabled=!0}),e.commandDispatcher.applyTargets("redo",q=>{B>-1&&B<D?q.disabled=!1:q.disabled=!0});const I=O.get("savedIndex"),R=O.get("historyIndex"),F=I>-1?I!==B:$?L.index>0:B>0&&R!==B;O.set("historyIndex",B),O.set("isChanged",F),e.commandDispatcher.applyTargets("save",q=>{F?q.disabled=!1:q.disabled=!0}),s.triggerEvent("onResetButtons",{rootKey:A})},getRootStack(){return g},resetDelayTime(A){d=A},_destroy(){p&&pe.clearTimeout(p),y&&pe.clearTimeout(y),f=m=g=v=null}}}const{_w:Qi}=ge;class HN{constructor(e,{keyName:t,balloon:o,inline:s,balloonAlways:r,res:l}){w(this,k1);w(this,nr);w(this,rr);w(this,_1);w(this,yl);w(this,ul,void 0);w(this,Ve,void 0);w(this,Vs,void 0);w(this,pl,void 0);w(this,fl,void 0);w(this,Qe,void 0);w(this,pt,void 0);w(this,lt,void 0);w(this,sr,void 0);w(this,sh,void 0);w(this,ml,void 0);w(this,Rs,void 0);w(this,gl,"default");w(this,nh,null);w(this,rh,null);w(this,zs,!1);w(this,bl,!1);w(this,vl,!1);x(this,ul,e),x(this,Ve,e.$),x(this,Vs,e.store),x(this,pl,n(this,Ve).icons),x(this,fl,n(this,Ve).lang),x(this,Qe,n(this,Ve).context),x(this,pt,n(this,Ve).frameContext),x(this,lt,n(this,Ve).options),x(this,sr,n(this,Ve).eventManager),this.isSub=t==="toolbar_sub",this.keyName={main:this.isSub?"toolbar_sub_main":"toolbar_main",buttonTray:this.isSub?"toolbar_sub_buttonTray":"toolbar_buttonTray",width:this.isSub?"toolbar_sub_width":"toolbar_width"},this.currentMoreLayerActiveButton=null,this.isBalloonMode=o,this.isInlineMode=s,this.isBalloonAlwaysMode=r,this.inlineToolbarAttr={top:"",width:"",isShow:!1},this.balloonOffset={top:0,left:0},x(this,sh,l),x(this,ml,l),x(this,Rs,"visualViewport"in Qi);const c=!this.isSub&&!o&&!s,d=n(this,lt).get("_toolbar_sticky");if(x(this,zs,c&&d>=0&&!n(this,lt).get("toolbar_container")&&!n(this,lt).get("_toolbar_sticky_fixed")&&typeof CSS<"u"&&CSS.supports("position","sticky")),this.isBottomMode=n(this,Vs).mode.isBottom,n(this,zs)){const h=n(this,Qe).get(this.keyName.main);this.isBottomMode?(h.style.bottom=d+"px",h.style.top="auto"):d>0&&(h.style.top=d+"px")}else c&&u.utils.addClass(n(this,Qe).get(this.keyName.main),"se-toolbar-relative");this._setResponsive()}get isSticky(){if(this.isSub)return!1;const e=n(this,lt).get("_toolbar_sticky");if(e<0)return!1;if(n(this,zs)){const t=n(this,Qe).get(this.keyName.main);if(!t||t.offsetWidth===0||t.style.display==="none")return!1;if(this.isBottomMode){const o=n(this,Rs)?Qi.visualViewport.height:Qi.innerHeight;return t.getBoundingClientRect().bottom>=o-e-1}return t.getBoundingClientRect().top<=e+1}return n(this,bl)}get isCSSSticky(){return n(this,zs)}disable(){this._moreLayerOff(),n(this,Ve).menu.dropdownOff(),n(this,Ve).menu.containerOff(),u.utils.setDisabled(n(this,Qe).get(this.keyName.buttonTray).querySelectorAll(".se-menu-list .se-toolbar-btn[data-type]"),!0)}enable(){u.utils.setDisabled(n(this,Qe).get(this.keyName.buttonTray).querySelectorAll(".se-menu-list .se-toolbar-btn[data-type]"),!1)}show(){this.isInlineMode?this._showInline():this.isBalloonMode?this._showBalloon():(n(this,Qe).get(this.keyName.main).style.display="",this.isSub||(n(this,pt).get("_stickyDummy").style.display="")),this.isSub||this.resetResponsiveToolbar()}hide(){this.isInlineMode?(n(this,Qe).get(this.keyName.main).style.display="none",n(this,Qe).get(this.keyName.main).style.top="0px",this.inlineToolbarAttr.isShow=!1):(n(this,Qe).get(this.keyName.main).style.display="none",this.isSub||(n(this,pt).get("_stickyDummy").style.display="none"),this.isBalloonMode&&(this.balloonOffset={top:0,left:0}))}resetResponsiveToolbar(){n(this,Ve).menu.containerOff();const e=n(this,rh);if(e){let t=0;(this.isBalloonMode||this.isInlineMode)&&n(this,lt).get("toolbar_width")==="auto"||n(this,Vs).mode.isSubBalloon&&n(this,lt).get("toolbar_sub_width")==="auto"?t=n(this,pt).get("topArea").offsetWidth:t=n(this,Qe).get(this.keyName.main).offsetWidth;let o="default";for(let s=1,r=e.length;s<r;s++)if(t<e[s]){o=e[s]+"";break}n(this,gl)!==o&&(x(this,gl,o),this.setButtons(n(this,nh)[o]))}}setButtons(e){this._moreLayerOff(),n(this,Ve).menu.dropdownOff(),n(this,Ve).menu.containerOff();const t=Mg(e,n(this,Ve).plugins,n(this,lt),n(this,pl),n(this,fl),!0);t.updateButtons.forEach(o=>tv(o.button,o.plugin,n(this,pl),n(this,fl))),n(this,Qe).get(this.keyName.main).replaceChild(t.buttonTray,n(this,Qe).get(this.keyName.buttonTray)),n(this,Qe).set(this.keyName.buttonTray,t.buttonTray),E(this,k1,a3).call(this),n(this,sr).triggerEvent("onSetToolbarButtons",{buttonTray:t.buttonTray,frameContext:n(this,pt)})}_resetSticky(){if(n(this,zs)){E(this,_1,l3).call(this);return}const e=n(this,pt).get("wrapper");if(!e)return;const t=n(this,Qe).get(this.keyName.main),o=n(this,lt).get("_toolbar_sticky");if(n(this,pt).get("isFullScreen")||t.offsetWidth===0||o<0)return;const s=n(this,Rs)?Qi.visualViewport.pageTop:Qi.scrollY,r=n(this,pt).get("_minHeight"),l=e.offsetHeight,c=n(this,Ve).offset.getGlobal(n(this,pt).get("topArea")),d=1;if(this.isBottomMode){const h=s+Qi.innerHeight,p=c.top+l,f=h-o-(this.isInlineMode?t.offsetHeight:0),m=n(this,lt).get("toolbar_container")?h-o-c.top-r-t.offsetHeight:f-c.top-r;f>p?E(this,yl,Im).call(this):m<0?(this.isSticky||E(this,nr,nu).call(this,d),t.style.bottom=d+m+E(this,rr,ru).call(this)+"px",t.style.top="auto"):E(this,nr,nu).call(this,d)}else{const h=s+o,p=(this.isBalloonMode||this.isInlineMode?c.top:n(this,Ve).offset.getGlobal(n(this,lt).get("toolbar_container")).top)-(this.isInlineMode?t.offsetHeight:0),f=n(this,lt).get("toolbar_container")?c.top-s+l-r-o-t.offsetHeight:l+p+o-h-r;h<p?E(this,yl,Im).call(this):f<0?(this.isSticky||E(this,nr,nu).call(this,d),t.style.top=d+f+E(this,rr,ru).call(this)+"px"):E(this,nr,nu).call(this,d)}}_setResponsive(){var s;if(((s=n(this,ml))==null?void 0:s.length)===0){x(this,ml,null);return}x(this,gl,"default");const e=x(this,rh,[]),t=n(this,sh),o=x(this,nh,{default:t[0]});for(let r=1,l=t.length,c,d;r<l;r++)d=t[r],c=d[0]*1,e.push(c),o[c]=d[1];e.sort((r,l)=>r-l).unshift("default")}_showBalloon(e){if(!this.isBalloonMode)return;this.isSub&&this.resetResponsiveToolbar();const t=e||n(this,Ve).selection.getRange(),o=n(this,Qe).get(this.keyName.main),s=n(this,Ve).selection.get();let r;if(this.isBalloonAlwaysMode&&t.collapsed)r=!0;else if(s.focusNode===s.anchorNode)r=s.focusOffset<s.anchorOffset;else{const l=u.query.getListChildNodes(t.commonAncestorContainer,null,null);r=u.utils.getArrayIndex(l,s.focusNode)<u.utils.getArrayIndex(l,s.anchorNode)}this._setBalloonOffset(r,t),n(this,sr).triggerEvent("onShowToolbar",{toolbar:o,mode:"balloon",frameContext:n(this,pt)})}_setBalloonOffset(e,t){const o=n(this,Qe).get(this.keyName.main),s=n(this,pt).get("topArea"),l=n(this,Ve).offset.getGlobal(s).top;if(!n(this,Ve).offset.setRangePosition(o,t,{position:e?"top":"bottom",addTop:l})){this.hide();return}if(n(this,lt).get("toolbar_container")){const d=s.parentElement;let h=n(this,lt).get("toolbar_container"),p=h.offsetLeft,f=h.offsetTop;for(;!h.parentElement.contains(d)&&!/^(BODY|HTML)$/i.test(h.parentElement.nodeName);)h=h.offsetParent,p+=h.offsetLeft,f+=h.offsetTop;o.style.left=o.offsetLeft-p+s.offsetLeft+"px",o.style.top=o.offsetTop-f+s.offsetTop+"px"}const c=n(this,Ve).offset.getWWScroll();this.balloonOffset={top:o.offsetTop+c.top,left:o.offsetLeft+c.left,position:e?"top":"bottom"}}_showInline(){if(!this.isInlineMode)return;const e=n(this,Qe).get(this.keyName.main);if(e.style.visibility="hidden",e.style.display="block",E(this,yl,Im).call(this),e.style.top="0px",this.inlineToolbarAttr.width=e.style.width=n(this,lt).get(this.keyName.width),this.isBottomMode){const t=n(this,pt).get("topArea");this.inlineToolbarAttr.top=e.style.top=n(this,Ve).offset.getGlobal(t).top+t.offsetHeight-n(this,Ve).offset.getGlobal(e).top+"px"}else this.inlineToolbarAttr.top=e.style.top=-1+(n(this,Ve).offset.getGlobal(n(this,pt).get("topArea")).top-n(this,Ve).offset.getGlobal(e).top-e.offsetHeight)+"px";this._resetSticky(),this.inlineToolbarAttr.isShow=!0,n(this,sr).triggerEvent("onShowToolbar",{toolbar:e,mode:"inline",frameContext:n(this,pt)}),e.style.visibility=""}_moreLayerOn(e,t){this._moreLayerOff(),this.currentMoreLayerActiveButton=e,t.style.display="block"}_moreLayerOff(){if(this.currentMoreLayerActiveButton){const e=n(this,Qe).get(this.keyName.main).querySelector("."+this.currentMoreLayerActiveButton.getAttribute("data-command"));e.style.display="none",u.utils.removeClass(this.currentMoreLayerActiveButton,"on"),this.currentMoreLayerActiveButton=null}}_destroy(){this._moreLayerOff()}}ul=new WeakMap,Ve=new WeakMap,Vs=new WeakMap,pl=new WeakMap,fl=new WeakMap,Qe=new WeakMap,pt=new WeakMap,lt=new WeakMap,sr=new WeakMap,sh=new WeakMap,ml=new WeakMap,Rs=new WeakMap,gl=new WeakMap,nh=new WeakMap,rh=new WeakMap,zs=new WeakMap,bl=new WeakMap,vl=new WeakMap,k1=new WeakSet,a3=function(){n(this,Ve).shortcuts._registerShortcuts(),n(this,Ve).commandDispatcher.resetTargets(),n(this,Ve).ui._initToggleButtons(),n(this,Ve).history.resetButtons(n(this,pt).get("key"),null),this._resetSticky(),n(this,Vs).set("_lastSelectionNode",null),n(this,Ve).viewer._setButtonsActive(),n(this,Vs).get("hasFocus")&&n(this,ul)._eventOrchestrator.applyTagEffect(),n(this,pt).get("isReadOnly")&&n(this,Ve).ui.setControllerOnDisabledButtons(!0)},nr=new WeakSet,nu=function(e){const t=n(this,Qe).get(this.keyName.main);if(!this.isInlineMode){const o=n(this,lt).get("toolbar_container")?n(this,Qe).get("_stickyDummy"):n(this,pt).get("_stickyDummy");o.style.height=t.offsetHeight+"px",o.style.display="block"}if(this.isBottomMode){const o=n(this,lt).get("_toolbar_sticky")+E(this,rr,ru).call(this);t.style.bottom=`${o}px`,t.style.top="auto"}else{const o=n(this,lt).get("_toolbar_sticky")+e+E(this,rr,ru).call(this);t.style.top=`${o}px`}t.style.width=this.isInlineMode?this.inlineToolbarAttr.width:t.offsetWidth+"px",u.utils.addClass(t,"se-toolbar-sticky"),x(this,bl,!0)},rr=new WeakSet,ru=function(){return n(this,Rs)?Qi.visualViewport.offsetTop:0},_1=new WeakSet,l3=function(){if(!n(this,Rs)||n(this,ul)._eventOrchestrator.scrollparents.length>0)return;const e=Math.round(Qi.visualViewport.offsetTop);if(e===0&&!n(this,vl))return;const t=n(this,Qe).get(this.keyName.main),o=n(this,lt).get("_toolbar_sticky_offset");if(e>0)if(x(this,vl,!0),this.isBottomMode){const s=Math.round(Qi.innerHeight-Qi.visualViewport.height-e);t.style.bottom=o+s+"px",t.style.top="auto"}else t.style.top=o+e+"px";else{x(this,vl,!1);const s=n(this,lt).get("_toolbar_sticky");this.isBottomMode?(t.style.bottom=s+"px",t.style.top="auto"):t.style.top=s>0?s+"px":""}},yl=new WeakSet,Im=function(){const e=n(this,lt).get("toolbar_container")?n(this,Qe).get("_stickyDummy"):n(this,pt).get("_stickyDummy");e.style.display="none";const t=n(this,Qe).get(this.keyName.main);this.isBottomMode?(t.style.bottom=this.isInlineMode?`${-t.offsetHeight}px`:"",t.style.top="auto",n(this,pt).get("wrapper").style.marginBottom=""):(t.style.top=this.isInlineMode?this.inlineToolbarAttr.top:"",n(this,pt).get("wrapper").style.marginTop=""),t.style.width=this.isInlineMode?this.inlineToolbarAttr.width:"",u.utils.removeClass(t,"se-toolbar-sticky"),x(this,bl,!1)};const Ev=HN,{isMobile:Tv,_w:rp}=ge;class jN{constructor(e){w(this,hr);w(this,lh);w(this,ur);w(this,x1);w(this,pr);w(this,Hs);w(this,E1);w(this,T1);w(this,M1);w(this,S1);w(this,A1);w(this,Lt,void 0);w(this,go,void 0);w(this,wl,void 0);w(this,Wo,void 0);w(this,Ut,void 0);w(this,bo,void 0);w(this,ah,[]);w(this,ar,null);w(this,Ps,null);w(this,lr,null);w(this,cr,null);w(this,Cl,null);w(this,kl,null);w(this,vo,null);w(this,Uo,null);w(this,yo,null);w(this,qo,null);w(this,dr,null);w(this,_l,new Set);x(this,Lt,e.$),x(this,go,e.store),x(this,wl,n(this,Lt).contextProvider),x(this,Wo,n(this,Lt).context),x(this,Ut,n(this,Lt).eventManager),this.targetMap={},this.itemsMap={},this.index=-1,this.menus=[],this.currentButton=null,this.currentDropdown=null,this.currentDropdownActiveButton=null,this.currentDropdownName="",this.currentDropdownType="",this.currentContainer=null,this.currentContainerActiveButton=null,this.currentContainerName="",this.currentDropdownPlugin=null,x(this,bo,{mousedown:E(this,E1,d3).bind(this),containerDown:this.containerOff.bind(this),keydown:E(this,M1,u3).bind(this),esc:E(this,S1,p3).bind(this),mousemove:E(this,A1,f3).bind(this),mouseout:E(this,T1,h3).bind(this)}),x(this,ar,null),x(this,Ps,null),x(this,lr,null),x(this,cr,null),x(this,vo,null),x(this,Uo,null),x(this,dr,rp.visualViewport||null)}initDropdownTarget({key:e,type:t},o,s){if(!e)throw Error("[SUNEDITOR.init.fail] The plugin's key is not added.");let r;if(Array.isArray(o)){r=FN(o,s);const l=r.querySelectorAll(".se-list-inner li > button"),c=l.length-o.length;for(let d=0;d<o.length;d++)o[d]._element=l[c+d]||null;this.itemsMap[e]=o}else r=o;return Mv(t)||(r.setAttribute("data-key",e),n(this,ah).push(e)),n(this,Wo).get("menuTray").appendChild(r),this.targetMap[e]=r,r}dropdownOn(e){var l,c,d;E(this,Hs,ql).call(this);const t=E(this,x1,c3).call(this,e);if(t){const h=u.query.getParentElement(t,".se-btn-tray").querySelector('[data-command="'+t.getAttribute("data-ref")+'"]');if(h){n(this,Lt).commandDispatcher.runFromTarget(h),this.dropdownOn(e);return}}const o=this.currentButton=e,s=this.currentDropdownName=o.getAttribute("data-command");this.currentDropdownType=o.getAttribute("data-type");const r=this.currentDropdown=this.targetMap[s];this.currentDropdownActiveButton=o,Tv?E(this,lh,Q0).call(this,o,r):E(this,hr,au).call(this,o,r),(c=(l=n(this,Wo).get("menuTray")).showPopover)==null||c.call(l),x(this,ar,n(this,Ut).addGlobalEvent("mousedown",n(this,bo).mousedown,!1)),x(this,lr,n(this,Ut).addGlobalEvent("keydown",n(this,bo).esc,!0)),n(this,ah).includes(s)&&(this.menus=Te.nodeListToArray(r.querySelectorAll("[data-command]")),this.menus.length>0&&(x(this,Ps,n(this,Ut).addGlobalEvent("keydown",n(this,bo).keydown,!1)),x(this,Cl,n(this,Ut).addEvent(r,"mousemove",n(this,bo).mousemove,!1)),x(this,kl,n(this,Ut).addEvent(r,"mouseout",n(this,bo).mouseout,!1)))),this.currentDropdownPlugin=n(this,Lt).plugins[s],(d=this.currentDropdownPlugin)==null||d.on(o),n(this,go).set("_preventBlur",!0)}dropdownOff(){var e,t,o,s;E(this,ur,lu).call(this),E(this,Hs,ql).call(this),Mv(this.currentDropdownType)&&((t=(e=this.currentDropdownPlugin)==null?void 0:e.off)==null||t.call(e)),this.index=-1,this.menus=[],x(this,vo,null),x(this,Uo,null),this.currentButton=null,this.currentDropdown&&(this.currentDropdownName="",this.currentDropdownType="",this.currentDropdown.style.display="none",this.currentDropdown=null,this.currentDropdownActiveButton&&u.utils.removeClass(this.currentDropdownActiveButton.parentElement.children,"on"),this.currentDropdownActiveButton=null,n(this,Lt).ui.preventToolbarHide(!1),(s=(o=n(this,Wo).get("menuTray")).hidePopover)==null||s.call(o)),n(this,go).set("_preventBlur",!1),this.currentDropdownPlugin=null;for(const r of[...n(this,_l)])r()}subscribeDropdownOff(e){return n(this,_l).add(e),()=>n(this,_l).delete(e)}dropdownShow(){this.currentButton&&this.dropdownOn(this.currentButton)}dropdownHide(){this.currentDropdown&&(this.currentDropdown.style.display="none")}containerOn(e){var o,s;E(this,Hs,ql).call(this),this.currentContainerActiveButton=e;const t=this.currentContainerName=this.currentContainerActiveButton.getAttribute("data-command");this.currentContainer=this.targetMap[t],Tv?E(this,lh,Q0).call(this,e,this.currentContainer):E(this,hr,au).call(this,e,this.currentContainer),(s=(o=n(this,Wo).get("menuTray")).showPopover)==null||s.call(o),x(this,cr,n(this,Ut).addGlobalEvent("mousedown",n(this,bo).containerDown,!1)),n(this,Lt).plugins[t].on&&n(this,Lt).plugins[t].on(e),n(this,go).set("_preventBlur",!0)}containerOff(){var e,t;E(this,ur,lu).call(this),E(this,Hs,ql).call(this),this.currentContainer&&(this.currentContainerName="",this.currentContainer.style.display="none",this.currentContainer=null,u.utils.removeClass(this.currentContainerActiveButton,"on"),this.currentContainerActiveButton=null,n(this,Lt).ui.preventToolbarHide(!1),(t=(e=n(this,Wo).get("menuTray")).hidePopover)==null||t.call(e)),n(this,go).set("_preventBlur",!1)}__resetMenuPosition(e,t){n(this,Lt).offset.setRelPosition(t,n(this,wl).carrierWrapper,e.parentElement,u.query.getParentElement(e,".se-toolbar"),{preferUp:n(this,go).mode.isBottom})}__restoreMenuPosition(){!n(this,vo)||!n(this,Uo)||n(this,qo)||n(this,yo)||E(this,hr,au).call(this,n(this,vo),n(this,Uo))}_destroy(){E(this,Hs,ql).call(this)}}Lt=new WeakMap,go=new WeakMap,wl=new WeakMap,Wo=new WeakMap,Ut=new WeakMap,bo=new WeakMap,ah=new WeakMap,ar=new WeakMap,Ps=new WeakMap,lr=new WeakMap,cr=new WeakMap,Cl=new WeakMap,kl=new WeakMap,vo=new WeakMap,Uo=new WeakMap,yo=new WeakMap,qo=new WeakMap,dr=new WeakMap,_l=new WeakMap,hr=new WeakSet,au=function(e,t){t.style.visibility="hidden",t.style.display="block",t.style.height="",u.utils.addClass(e.parentElement.children,"on"),n(this,Lt).offset.setRelPosition(t,n(this,wl).carrierWrapper,e.parentElement,u.query.getParentElement(e,".se-toolbar"),{preferUp:n(this,go).mode.isBottom}),t.style.visibility="",x(this,vo,e),x(this,Uo,t)},lh=new WeakSet,Q0=function(e,t){E(this,ur,lu).call(this),t.style.display="none",u.utils.addClass(e.parentElement.children,"on"),x(this,vo,e),x(this,Uo,t);let o=!1;const s=r=>{o||(o=!0,E(this,ur,lu).call(this),x(this,yo,rp.setTimeout(()=>{x(this,yo,null),n(this,vo)===e&&E(this,hr,au).call(this,e,t)},r)))};n(this,dr)&&(x(this,qo,()=>s(10)),n(this,dr).addEventListener("resize",n(this,qo),{once:!0})),x(this,yo,rp.setTimeout(()=>s(0),50))},ur=new WeakSet,lu=function(){var e;n(this,yo)&&(rp.clearTimeout(n(this,yo)),x(this,yo,null)),n(this,qo)&&((e=n(this,dr))==null||e.removeEventListener("resize",n(this,qo)),x(this,qo,null))},x1=new WeakSet,c3=function(e){const t=u.query.getParentElement(e,".se-more-layer");return t&&t.style.display!=="block"&&t.getAttribute("data-ref")?t:null},pr=new WeakSet,cu=function(e){u.utils.removeClass(this.currentDropdown,"se-select-menu-mouse-move"),u.utils.addClass(this.currentDropdown,"se-select-menu-key-action"),e=this.index+e;const t=this.menus.length,o=this.index=e>=t?0:e<0?t-1:e;for(let s=0;s<t;s++)s===o?u.utils.addClass(this.menus[s],"on"):u.utils.removeClass(this.menus[s],"on")},Hs=new WeakSet,ql=function(){n(this,ar)&&x(this,ar,n(this,Ut).removeGlobalEvent(n(this,ar))),n(this,lr)&&x(this,lr,n(this,Ut).removeGlobalEvent(n(this,lr))),n(this,cr)&&x(this,cr,n(this,Ut).removeGlobalEvent(n(this,cr))),n(this,Ps)&&(x(this,Ps,n(this,Ut).removeGlobalEvent(n(this,Ps))),n(this,Cl)&&x(this,Cl,n(this,Ut).removeEvent(n(this,Cl))),n(this,kl)&&x(this,kl,n(this,Ut).removeEvent(n(this,kl))),u.utils.removeClass(this.menus,"on"),u.utils.removeClass(this.currentDropdown,"se-select-menu-key-action|se-select-menu-mouse-move"))},E1=new WeakSet,d3=function(e){const t=u.query.getEventTarget(e);u.query.getParentElement(t,".se-dropdown")||this.dropdownOff()},T1=new WeakSet,h3=function(){this.index=-1},M1=new WeakSet,u3=function(e){switch(e.code){case"ArrowUp":e.preventDefault(),e.stopPropagation(),E(this,pr,cu).call(this,-1);break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),E(this,pr,cu).call(this,1);break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),E(this,pr,cu).call(this,-1);break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),E(this,pr,cu).call(this,1);break;case"Enter":case"Space":{if(this.index<0)break;const o=this.menus[this.index];if(!o||typeof n(this,Lt).plugins[this.currentDropdownName].action!="function")return;e.preventDefault(),e.stopPropagation(),n(this,Lt).plugins[this.currentDropdownName].action(o),this.dropdownOff();break}}},S1=new WeakSet,p3=function(e){var t;Me.isEsc(e.code)&&((t=n(this,Lt).ui.opendControllers)!=null&&t.some(({form:o})=>o&&u.utils.hasClass(o,"se-dropdown"))||(e.preventDefault(),e.stopPropagation(),this.dropdownOff()))},A1=new WeakSet,f3=function(e){u.utils.addClass(this.currentDropdown,"se-select-menu-mouse-move"),u.utils.removeClass(this.currentDropdown,"se-select-menu-key-action");const t=this.menus.indexOf(e.target);t!==-1&&(this.index=t*1)};function Mv(i){return/free$/.test(i)}function FN(i,e={}){let t="";for(let o=0,s=i.length;o<s;o++){const r=i[o];let l="";if(r.attrs){const c=Object.keys(r.attrs);for(let d=0;d<c.length;d++)l+=` ${c[d]}="${r.attrs[c[d]]}"`}t+=`
|
|
117
|
-
<li>
|
|
118
|
-
<button type="button" class="se-btn se-btn-list${r.className?" "+r.className:""}" data-command="${r.command}"${r.value!==void 0?` data-value="${r.value}"`:""} title="${r.title}" aria-label="${r.title}"${l}>${r.innerHTML}</button>
|
|
119
|
-
</li>`}return u.utils.createElement("DIV",{class:"se-dropdown se-list-layer"+(e.className?" "+e.className:"")},`<div class="se-list-inner"><ul class="se-list-basic">${e.prependHTML||""}${t}</ul></div>`)}const WN=jN,{_w:Fr,_d:cs}=ge;class UN{constructor(e){w(this,B1);w(this,N1);w(this,L1);w(this,I1);w(this,Th);w(this,xl,void 0);w(this,te,void 0);w(this,Ue,void 0);w(this,js,void 0);w(this,ch,void 0);w(this,dh,void 0);w(this,gi,void 0);w(this,qe,void 0);w(this,we,void 0);w(this,bt,void 0);w(this,fr,void 0);w(this,hh,void 0);w(this,uh,"");w(this,ph,"");w(this,fh,"");w(this,mh,"");w(this,gh,"");w(this,bh,"");w(this,vh,"");w(this,yh,"");w(this,wh,"");w(this,Ch,"");w(this,kh,"");w(this,Fs,0);w(this,El,!1);w(this,_h,!1);w(this,xh,!1);w(this,mr,null);w(this,Eh,"");x(this,xl,e),x(this,te,e.$),x(this,Ue,e.store),x(this,js,n(this,te).icons),x(this,ch,n(this,te).lang),x(this,dh,n(this,te).frameRoots),x(this,gi,n(this,te).context),x(this,qe,n(this,te).frameContext),x(this,we,n(this,te).options),x(this,bt,n(this,te).frameOptions),x(this,fr,n(this,te).eventManager),x(this,hh,new RegExp(`^(${n(this,we).get("_disallowedExtraTag")})$`,"i"))}codeView(e){const t=n(this,qe);if(!t.get("codeWrapper")||(e===void 0&&(e=!t.get("isCodeView")),e===t.get("isCodeView")))return;e&&t.get("isMarkdownView")&&this.markdownView(!1),t.set("isCodeView",e),n(this,te).ui.offCurrentController(),n(this,te).ui.offCurrentModal();const o=t.get("codeWrapper"),s=t.get("code"),r=t.get("wysiwygFrame"),l=t.get("wrapper");e?(n(this,te).finder.close(),E(this,N1,g3).call(this),o.style.setProperty("display","flex","important"),r.style.display="none",t.get("isFullScreen")?s.style.height="100%":n(this,bt).get("height")==="auto"&&!n(this,we).get("hasCodeMirror")&&(s.style.height=s.scrollHeight>0?s.scrollHeight+"px":"auto"),n(this,we).get("hasCodeMirror")&&this._codeMirrorEditor("refresh",null,null),t.get("isFullScreen")||(n(this,te).ui.preventToolbarHide(!0),n(this,Ue).mode.isBalloon&&(n(this,gi).get("toolbar_arrow").style.display="none",n(this,gi).get("toolbar_main").style.left="",n(this,Ue).mode.isInline=n(this,te).toolbar.isInlineMode=!0,n(this,Ue).mode.isBalloon=n(this,te).toolbar.isBalloonMode=!1,n(this,te).toolbar._showInline())),n(this,Ue).mode.isBalloon&&n(this,te).subToolbar.hide(),Sv(t),n(this,Ue).set("_range",null),s.focus(),u.utils.addClass(n(this,te).commandDispatcher.targets.get("codeView"),"active"),u.utils.addClass(l,"se-source-view-status")):(u.check.isNonEditable(r)||E(this,B1,m3).call(this),r.scrollTop=0,o.style.setProperty("display","none","important"),r.style.display="block",n(this,bt).get("height")==="auto"&&!n(this,we).get("hasCodeMirror")&&(t.get("code").style.height="0px"),t.get("isFullScreen")||(n(this,te).ui.preventToolbarHide(!1),/balloon/.test(n(this,we).get("mode"))&&(n(this,gi).get("toolbar_arrow").style.display="",n(this,Ue).mode.isInline=n(this,te).toolbar.isInlineMode=!1,n(this,Ue).mode.isBalloon=n(this,te).toolbar.isBalloonMode=!0,n(this,xl)._eventOrchestrator._hideToolbar())),n(this,te).focusManager.nativeFocus(),u.utils.removeClass(n(this,te).commandDispatcher.targets.get("codeView"),"active"),u.check.isNonEditable(r)||(n(this,te).history.push(!1),n(this,te).history.resetButtons(t.get("key"),null)),u.utils.removeClass(l,"se-source-view-status")),n(this,te).ui._updatePlaceholder(t),n(this,te).ui._toggleCodeViewButtons(e),t.has("documentType_use_header")&&(e?t.get("documentTypeInner").style.display="none":(t.get("documentTypeInner").style.display="",t.get("documentType").reHeader())),n(this,fr).triggerEvent("onToggleCodeView",{frameContext:t,is:t.get("isCodeView")})}markdownView(e){const t=n(this,qe);if(!t.get("markdownWrapper")||(e===void 0&&(e=!t.get("isMarkdownView")),e===t.get("isMarkdownView")))return;e&&t.get("isCodeView")&&this.codeView(!1),t.set("isMarkdownView",e),n(this,te).ui.offCurrentController(),n(this,te).ui.offCurrentModal();const o=t.get("markdownWrapper"),s=t.get("markdown"),r=t.get("wysiwygFrame"),l=t.get("wrapper");e?(n(this,te).finder.close(),E(this,L1,b3).call(this),o.style.setProperty("display","flex","important"),r.style.display="none",t.get("isFullScreen")?s.style.height="100%":n(this,bt).get("height")==="auto"&&(s.style.height=s.scrollHeight>0?s.scrollHeight+"px":"auto"),t.get("isFullScreen")||(n(this,te).ui.preventToolbarHide(!0),n(this,Ue).mode.isBalloon&&(n(this,gi).get("toolbar_arrow").style.display="none",n(this,gi).get("toolbar_main").style.left="",n(this,Ue).mode.isInline=n(this,te).toolbar.isInlineMode=!0,n(this,Ue).mode.isBalloon=n(this,te).toolbar.isBalloonMode=!1,n(this,te).toolbar._showInline())),n(this,Ue).mode.isBalloon&&n(this,te).subToolbar.hide(),Sv(t,"markdown"),n(this,Ue).set("_range",null),s.focus(),u.utils.addClass(n(this,te).commandDispatcher.targets.get("markdownView"),"active"),u.utils.addClass(l,"se-source-view-status")):(u.check.isNonEditable(r)||E(this,I1,v3).call(this),r.scrollTop=0,o.style.setProperty("display","none","important"),r.style.display="block",n(this,bt).get("height")==="auto"&&(s.style.height="0px"),t.get("isFullScreen")||(n(this,te).ui.preventToolbarHide(!1),/balloon/.test(n(this,we).get("mode"))&&(n(this,gi).get("toolbar_arrow").style.display="",n(this,Ue).mode.isInline=n(this,te).toolbar.isInlineMode=!1,n(this,Ue).mode.isBalloon=n(this,te).toolbar.isBalloonMode=!0,n(this,xl)._eventOrchestrator._hideToolbar())),n(this,te).focusManager.nativeFocus(),u.utils.removeClass(n(this,te).commandDispatcher.targets.get("markdownView"),"active"),u.check.isNonEditable(r)||(n(this,te).history.push(!1),n(this,te).history.resetButtons(t.get("key"),null)),u.utils.removeClass(l,"se-source-view-status")),n(this,te).ui._updatePlaceholder(t),n(this,te).ui._toggleCodeViewButtons(e),t.has("documentType_use_header")&&(e?t.get("documentTypeInner").style.display="none":(t.get("documentTypeInner").style.display="",t.get("documentType").reHeader())),n(this,fr).triggerEvent("onToggleMarkdownView",{frameContext:t,is:t.get("isMarkdownView")})}fullScreen(e){const t=n(this,qe);if(e===void 0&&(e=!t.get("isFullScreen")),e===t.get("isFullScreen"))return;t.set("isFullScreen",e);const o=t.get("topArea"),s=n(this,gi).get("toolbar_main"),r=t.get("wrapper"),l=t.get("wysiwygFrame"),c=t.get("codeWrapper"),d=t.get("code"),h=t.get("codeNumbers"),p=t.get("markdownWrapper"),f=t.get("markdown"),m=t.get("markdownNumbers"),g=n(this,qe).get("isCodeView"),v=n(this,qe).get("isMarkdownView"),b=n(this,gi).get("toolbar_arrow");n(this,te).ui.offCurrentController();const y=s.style.display==="none"||n(this,Ue).mode.isInline&&!n(this,te).toolbar.inlineToolbarAttr.isShow;if(e){x(this,Eh,o.style.cssText),x(this,ph,r.style.cssText),x(this,fh,l.style.cssText),x(this,mh,c==null?void 0:c.style.cssText),x(this,gh,d.style.cssText),x(this,bh,h==null?void 0:h.style.cssText),x(this,vh,p==null?void 0:p.style.cssText),x(this,yh,f==null?void 0:f.style.cssText),x(this,wh,m==null?void 0:m.style.cssText),x(this,Ch,s.style.cssText),b&&x(this,kh,b.style.cssText),(n(this,Ue).mode.isBalloon||n(this,Ue).mode.isInline)&&(b&&(b.style.display="none"),x(this,xh,n(this,Ue).mode.isInline),x(this,_h,n(this,Ue).mode.isBalloon),n(this,Ue).mode.isInline=n(this,te).toolbar.isInlineMode=!1,n(this,Ue).mode.isBalloon=n(this,te).toolbar.isBalloonMode=!1),n(this,we).get("toolbar_container")&&(x(this,mr,s.parentElement),t.get("container").insertBefore(s,r)),o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.maxWidth="100%",o.style.height="100%",o.style.zIndex="2147483639",t.get("_stickyDummy").style.display!=="none"&&t.get("_stickyDummy").style.display!==""&&(x(this,El,!0),t.get("_stickyDummy").style.display="none",u.utils.removeClass(s,"se-toolbar-sticky")),x(this,uh,cs.body.style.overflow),cs.body.style.overflow="hidden",r.style.cssText=s.style.cssText="",l.style.cssText=(l.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+n(this,bt).get("_defaultStyles").editor+(g||v?"display: none;":""),c&&(c.style.cssText=(c.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+`display: ${g?"flex":"none"} !important;`,c.style.overflow="auto",c.style.height="100%"),p&&(p.style.cssText=(p.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+`display: ${v?"flex":"none"} !important;`,p.style.overflow="auto",p.style.height="100%"),d.style.height="",f&&(f.style.height=""),s.style.width=l.style.height="100%",s.style.position="relative",s.style.display="block",x(this,Fs,Fr.innerHeight-s.offsetHeight),r.style.height=n(this,Fs)-(t.has("statusbar")?t.get("statusbar").offsetHeight:0)-n(this,we).get("fullScreenOffset")+"px",n(this,bt).get("iframe")&&n(this,bt).get("height")==="auto"&&(r.style.overflow="auto",n(this,te).ui._iframeAutoHeight(t)),t.get("topArea").style.marginTop=n(this,we).get("fullScreenOffset")+"px";const C=n(this,js).reduction;n(this,te).commandDispatcher.applyTargets("fullScreen",k=>{u.utils.changeElement(k.firstElementChild,C),u.utils.addClass(k,"active")})}else{l.style.cssText=n(this,fh).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+(g||v?"display: none;":""),c&&(c.style.cssText=n(this,mh).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+`display: ${g?"flex":"none"} !important;`),d.style.cssText=n(this,gh),h&&(h.style.cssText=n(this,bh)),p&&(p.style.cssText=n(this,vh).replace(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/,"")+`display: ${v?"flex":"none"} !important;`),f&&(f.style.cssText=n(this,yh)),m&&(m.style.cssText=n(this,wh)),s.style.cssText=n(this,Ch),r.style.cssText=n(this,ph),o.style.cssText=n(this,Eh),b&&(b.style.cssText=n(this,kh)),cs.body.style.overflow=n(this,uh),n(this,bt).get("height")==="auto"&&!n(this,we).get("hasCodeMirror")&&this._codeViewAutoHeight(t.get("code"),t.get("codeNumbers"),!0),n(this,mr)&&(n(this,mr).appendChild(s),x(this,mr,null)),n(this,we).get("_toolbar_sticky")>-1&&u.utils.removeClass(s,"se-toolbar-sticky"),n(this,El)&&!n(this,we).get("toolbar_container")&&(x(this,El,!1),t.get("_stickyDummy").style.display="block",u.utils.addClass(s,"se-toolbar-sticky")),n(this,Ue).mode.isInline=n(this,te).toolbar.isInlineMode=n(this,xh),n(this,Ue).mode.isBalloon=n(this,te).toolbar.isBalloonMode=n(this,_h),t.get("isCodeView")||(n(this,Ue).mode.isInline?n(this,te).toolbar._showInline():n(this,Ue).mode.isBalloon&&n(this,te).toolbar._showBalloon()),n(this,te).toolbar._resetSticky(),t.get("topArea").style.marginTop="";const C=n(this,js).expansion;n(this,te).commandDispatcher.applyTargets("fullScreen",k=>{u.utils.changeElement(k.firstElementChild,C),u.utils.removeClass(k,"active")})}y&&!t.get("isCodeView")&&!t.get("isMarkdownView")&&n(this,te).toolbar.hide(),n(this,fr).triggerEvent("onToggleFullScreen",{frameContext:t,is:t.get("isFullScreen")})}showBlocks(e){const t=n(this,qe);e===void 0&&(e=!t.get("isShowBlocks")),t.set("isShowBlocks",!!e),e?(u.utils.addClass(t.get("wysiwyg"),"se-show-block"),u.utils.addClass(n(this,te).commandDispatcher.targets.get("showBlocks"),"active")):(u.utils.removeClass(t.get("wysiwyg"),"se-show-block"),u.utils.removeClass(n(this,te).commandDispatcher.targets.get("showBlocks"),"active")),n(this,te).ui._syncFrameState(t)}_setButtonsActive(){const e=n(this,qe);if(e.get("isCodeView")?u.utils.addClass(n(this,te).commandDispatcher.targets.get("codeView"),"active"):u.utils.removeClass(n(this,te).commandDispatcher.targets.get("codeView"),"active"),e.get("isFullScreen")){const t=n(this,js).reduction;n(this,te).commandDispatcher.applyTargets("fullScreen",o=>{u.utils.changeElement(o.firstElementChild,t),u.utils.addClass(o,"active")})}else{const t=n(this,js).expansion;n(this,te).commandDispatcher.applyTargets("fullScreen",o=>{u.utils.changeElement(o.firstElementChild,t),u.utils.removeClass(o,"active")})}e.get("isMarkdownView")?u.utils.addClass(n(this,te).commandDispatcher.targets.get("markdownView"),"active"):u.utils.removeClass(n(this,te).commandDispatcher.targets.get("markdownView"),"active"),e.get("isShowBlocks")?u.utils.addClass(n(this,te).commandDispatcher.targets.get("showBlocks"),"active"):u.utils.removeClass(n(this,te).commandDispatcher.targets.get("showBlocks"),"active")}print(){const e=u.utils.createElement("IFRAME",{style:"display: none;"});cs.body.appendChild(e);const t=Fr.getComputedStyle(n(this,qe).get("wysiwyg")).padding,o=n(this,we).get("printTemplate")?n(this,we).get("printTemplate").replace(/\{\{\s*contents\s*\}\}/i,n(this,te).html.get()):n(this,te).html.get(),s=u.query.getIframeDocument(e),r=n(this,qe).get("_wd"),l=n(this,we).get("_rtl")?" se-rtl":"",c=(n(this,we).get("_themeClass")||"").trim(),d=p=>c?p.replace(c,"").trim():p,h=`
|
|
120
|
-
<style>
|
|
121
|
-
@page {
|
|
122
|
-
size: A4;
|
|
123
|
-
margin: ${t};
|
|
124
|
-
}
|
|
125
|
-
</style>`;if(n(this,bt).get("iframe")){const p=n(this,we).get("printClass")?'class="'+d(n(this,we).get("printClass"))+l+'"':n(this,bt).get("iframe_fullPage")?u.utils.getAttributesToString(r.body,["contenteditable"]).replace(c,""):'class="'+d(n(this,we).get("_editableClass"))+l+'"';s.write(`
|
|
126
|
-
<!DOCTYPE html>
|
|
127
|
-
<html>
|
|
128
|
-
<head>
|
|
129
|
-
${r.head.innerHTML}
|
|
130
|
-
${h}
|
|
131
|
-
</head>
|
|
132
|
-
<body ${p} style="padding: 0; padding-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0;">
|
|
133
|
-
${o}
|
|
134
|
-
</body>
|
|
135
|
-
</html>`)}else{const p=cs.head.getElementsByTagName("link"),f=cs.head.getElementsByTagName("style");let m="";for(let g=0,v=p.length;g<v;g++)m+=p[g].outerHTML;for(let g=0,v=f.length;g<v;g++)m+=f[g].outerHTML;s.write(`
|
|
136
|
-
<!DOCTYPE html>
|
|
137
|
-
<html>
|
|
138
|
-
<head>
|
|
139
|
-
${m}
|
|
140
|
-
${h}
|
|
141
|
-
</head>
|
|
142
|
-
<body class="${d(n(this,we).get("printClass")||n(this,we).get("_editableClass"))+l}" style="padding: 0; padding-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0;">
|
|
143
|
-
${o}
|
|
144
|
-
</body>
|
|
145
|
-
</html>`)}n(this,te).ui.showLoading(),Fr.setTimeout(()=>{try{if(e.focus(),ge.isEdge||ge.isChromium||"StyleMedia"in ge._w)try{e.contentWindow.document.execCommand("print",!1,null)}catch(p){console.warn("[SUNEDITOR.print.warn]",p),e.contentWindow.print()}else e.contentWindow.print()}catch(p){throw Error(`[SUNEDITOR.print.fail] error: ${p.message}`)}finally{n(this,te).ui.hideLoading(),u.utils.removeItem(e)}},1e3)}preview(){n(this,te).menu.dropdownOff(),n(this,te).menu.containerOff(),n(this,te).ui.offCurrentController(),n(this,te).ui.offCurrentModal();const e=n(this,we).get("previewTemplate")?n(this,we).get("previewTemplate").replace(/\{\{\s*contents\s*\}\}/i,n(this,te).html.get({withFrame:!0})):n(this,te).html.get({withFrame:!0}),t=Fr.open("","_blank"),o=n(this,qe).get("_wd"),s=n(this,we).get("_rtl")?" se-rtl":"";if(n(this,bt).get("iframe")){const r=n(this,we).get("printClass")?'class="'+n(this,we).get("printClass")+s+'"':n(this,bt).get("iframe_fullPage")?u.utils.getAttributesToString(o.body,["contenteditable"]):'class="'+n(this,we).get("_editableClass")+s+'"';t.document.write(`<!DOCTYPE html>
|
|
146
|
-
<html>
|
|
147
|
-
<head>
|
|
148
|
-
${o.head.innerHTML}
|
|
149
|
-
<style>
|
|
150
|
-
body {overflow:auto !important; height:auto !important;}
|
|
151
|
-
</style>
|
|
152
|
-
</head>
|
|
153
|
-
<body ${r}>
|
|
154
|
-
${e}
|
|
155
|
-
</body>
|
|
156
|
-
</html>`)}else{const r=cs.head.getElementsByTagName("link"),l=cs.head.getElementsByTagName("style");let c="";for(let d=0,h=r.length;d<h;d++)c+=r[d].outerHTML;for(let d=0,h=l.length;d<h;d++)c+=l[d].outerHTML;t.document.write(`<!DOCTYPE html>
|
|
157
|
-
<html>
|
|
158
|
-
<head>
|
|
159
|
-
<meta charset="utf-8" />
|
|
160
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
161
|
-
<title>${n(this,ch).preview}</title>
|
|
162
|
-
${c}
|
|
163
|
-
</head>
|
|
164
|
-
<body class="${(n(this,we).get("printClass")?n(this,we).get("printClass"):n(this,we).get("_editableClass"))+s}" style="height:auto">
|
|
165
|
-
${e}
|
|
166
|
-
</body>
|
|
167
|
-
</html>`)}}_resetFullScreenHeight(){if(n(this,qe).get("isFullScreen"))return x(this,Fs,n(this,Fs)+(Fr.innerHeight-n(this,gi).get("toolbar_main").offsetHeight-(n(this,qe).has("statusbar")?n(this,qe).get("statusbar").offsetHeight:0)-n(this,Fs))),n(this,qe).get("wrapper").style.height=n(this,Fs)+"px",!0}_codeMirrorEditor(e,t,o){const s=o?n(this,dh).get(o).get("options"):n(this,bt);switch(e){case"set":s.get("codeMirrorEditor").getDoc().setValue(t);break;case"get":return s.get("codeMirrorEditor").getDoc().getValue();case"readonly":s.get("codeMirrorEditor").setOption("readOnly",t);break;case"refresh":s.get("codeMirrorEditor").refresh();break}}_setCodeView(e){n(this,we).get("hasCodeMirror")?this._codeMirrorEditor("set",e,null):n(this,qe).get("code").value=e}_getCodeView(){return n(this,we).get("hasCodeMirror")?this._codeMirrorEditor("get",null,null):n(this,qe).get("code").value}_codeViewAutoHeight(e,t,o){o&&(e.style.height=e.scrollHeight+"px"),E(this,Th,J0).call(this,t,e)}_scrollLineNumbers(e){e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft}_markdownViewAutoHeight(e,t,o){o&&(e.style.height=e.scrollHeight+"px"),E(this,Th,J0).call(this,t,e)}_scrollMarkdownLineNumbers(e){e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft}_destroy(){}}xl=new WeakMap,te=new WeakMap,Ue=new WeakMap,js=new WeakMap,ch=new WeakMap,dh=new WeakMap,gi=new WeakMap,qe=new WeakMap,we=new WeakMap,bt=new WeakMap,fr=new WeakMap,hh=new WeakMap,uh=new WeakMap,ph=new WeakMap,fh=new WeakMap,mh=new WeakMap,gh=new WeakMap,bh=new WeakMap,vh=new WeakMap,yh=new WeakMap,wh=new WeakMap,Ch=new WeakMap,kh=new WeakMap,Fs=new WeakMap,El=new WeakMap,_h=new WeakMap,xh=new WeakMap,mr=new WeakMap,Eh=new WeakMap,B1=new WeakSet,m3=function(){const e=this._getCodeView();if(n(this,bt).get("iframe_fullPage")){const t=n(this,qe).get("_wd"),o=new DOMParser().parseFromString(e,"text/html");if(!n(this,hh).test("script")){const l=o.head.children;for(let c=0,d=l.length;c<d;c++)/^script$/i.test(l[c].tagName)&&(o.head.removeChild(l[c]),c--,d--)}let s=o.head.innerHTML;(!o.head.querySelector('link[rel="stylesheet"]')||n(this,bt).get("height")==="auto"&&!o.head.querySelector("style"))&&(s+=Te._setIframeStyleLinks(n(this,bt).get("iframe_cssFileName"))+Te._setAutoHeightStyle(n(this,bt).get("height"))),t.head.innerHTML=s,t.body.innerHTML=n(this,te).html.clean(o.body.innerHTML,{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:n(this,we).get("freeCodeViewMode")});const r=o.body.attributes;for(let l=0,c=r.length;l<c;l++)r[l].name!=="contenteditable"&&t.body.setAttribute(r[l].name,r[l].value);if(!u.utils.hasClass(t.body,"sun-editor-editable")){const l=n(this,we).get("_editableClass").split(" ");for(let c=0;c<l.length;c++)u.utils.addClass(t.body,l[c])}}else n(this,qe).get("wysiwyg").innerHTML=e.length>0?n(this,te).html.clean(e,{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:n(this,we).get("freeCodeViewMode")}):"<"+n(this,we).get("defaultLine")+"><br></"+n(this,we).get("defaultLine")+">"},N1=new WeakSet,g3=function(){const e=n(this,te).html._convertToCode(n(this,qe).get("wysiwyg"),!1);let t="";if(n(this,bt).get("iframe_fullPage")){const o=u.utils.getAttributesToString(n(this,qe).get("_wd").body,null);t=`<!DOCTYPE html>
|
|
168
|
-
<html>
|
|
169
|
-
`+n(this,qe).get("_wd").head.outerHTML.replace(/>(?!\n)/g,`>
|
|
170
|
-
`)+"<body "+o+`>
|
|
171
|
-
`+e+`</body>
|
|
172
|
-
</html>`}else t=e;this._setCodeView(t)},L1=new WeakSet,b3=function(){const e=Te.htmlToJson(n(this,qe).get("wysiwyg").innerHTML),t=Ku.jsonToMarkdown(e);n(this,qe).get("markdown").value=t},I1=new WeakSet,v3=function(){const e=n(this,qe).get("markdown").value,t=Ku.markdownToHtml(e,n(this,we).get("defaultLine"));n(this,qe).get("wysiwyg").innerHTML=t.length>0?n(this,te).html.clean(t,{forceFormat:!0,whitelist:null,blacklist:null}):"<"+n(this,we).get("defaultLine")+"><br></"+n(this,we).get("defaultLine")+">"},Th=new WeakSet,J0=function(e,t){if(!e)return;const o=(t.value.match(/\n/g)||[]).length+1,s=(e.value.match(/\n/g)||[]).length;if(o!==s){let r="";for(let l=1;l<=o;l++)r+=`${l}
|
|
173
|
-
`;e.value=r}};function Sv(i,e){const t=e==="markdown"?"markdownNumbers":"codeNumbers",o=e==="markdown"?"markdown":"code",s=i.get(t);if(!s)return;const r=i.get(o),l=(r.value.match(/\n/g)||[]).length+1;let c="";for(let h=1;h<=l;h++)c+=`${h}
|
|
174
|
-
`;const d=Fr.getComputedStyle(r);s.style.lineHeight=d.lineHeight,s.style.fontSize=d.fontSize,s.style.fontFamily=d.fontFamily,s.style.paddingTop=d.paddingTop,s.style.paddingBottom=d.paddingBottom,s.value=c}const qN=UN,{_d:Hg,_w:ZN}=ge,Cr=class Cr{constructor(e){w(this,Ih);w(this,O1);w(this,Il);w(this,D1);w(this,$l);w(this,V1);w(this,R1);w(this,z1);w(this,P1);w(this,H1);w(this,$h);w(this,vi);w(this,Ol);w(this,j1);w(this,F1);w(this,Oh);w(this,W1);w(this,U1);w(this,Dh);w(this,q1);w(this,Vh);w(this,vr);w(this,Dl);w(this,yr);w(this,Vl);w(this,Rh);w(this,zh);w(this,wr);w(this,Z1);w(this,Ae,void 0);w(this,Zo,void 0);w(this,It,void 0);w(this,St,void 0);w(this,wo,void 0);w(this,Tl,void 0);w(this,Mh,void 0);w(this,Sh,void 0);w(this,Ah,void 0);w(this,Bh,void 0);w(this,Ml,void 0);w(this,Sl,void 0);w(this,Al,void 0);w(this,Bl,void 0);w(this,Ni,!1);w(this,Nh,!0);w(this,Ke,[]);w(this,ot,-1);w(this,bi,"");w(this,$t,{matchCase:!1,wholeWord:!1,regex:!1});w(this,gr,void 0);w(this,Co,[]);w(this,br,null);w(this,Ws,null);w(this,Nl,null);w(this,Ll,null);w(this,Us,null);w(this,qs,!1);if(x(this,Ae,e.$),x(this,Zo,e.store),x(this,gr,!!ZN.Highlight&&!!(CSS!=null&&CSS.highlights)),n(this,Ae).options.get("finder_panel")){const t=GN(n(this,Ae));x(this,It,t.panel),x(this,St,t.findInput),x(this,wo,t.replaceInput),x(this,Tl,t.countDisplay),x(this,Mh,t.replaceRow),x(this,Sh,t.btnCase),x(this,Ah,t.btnWord),x(this,Bh,t.btnRegex),x(this,Ml,t.btnPrev),x(this,Sl,t.btnNext),x(this,Al,t.btnReplace),x(this,Bl,t.btnReplaceAll),E(this,V1,k3).call(this);const s=n(this,Ae).frameRoots.values().next().value.get("container");if(n(this,Zo).mode.isBottom){const r=n(this,Ae).context.get("toolbar_main");s.insertBefore(n(this,It),r)}else{const r=s.querySelector(".se-wrapper");s.insertBefore(n(this,It),r)}ge.isResizeObserverSupported&&x(this,Nl,new ResizeObserver(()=>E(this,Ih,e2).call(this)).observe(n(this,Ae).context.get("toolbar_main")))}}get isOpen(){return n(this,Ni)}open(e=!0){const t=n(this,Ae).frameContext;if(!(t.get("isCodeView")||t.get("isMarkdownView"))&&(x(this,Ni,!0),u.utils.addClass(n(this,Ae).commandDispatcher.targets.get("finder"),"active"),E(this,D1,C3).call(this),n(this,It))){n(this,Ml).disabled=!0,n(this,Sl).disabled=!0,n(this,Al).disabled=!0,n(this,Bl).disabled=!0,E(this,Ih,e2).call(this);const o=n(this,Ae).selection.get(),s=o&&!o.isCollapsed?o.toString().trim():"";u.utils.addClass(n(this,It),"se-find-replace-open"),n(this,Zo).set("_preventBlur",!0),E(this,O1,w3).call(this),e&&E(this,$h,t2).call(this,e),s&&(n(this,St).value=s),n(this,St).focus(),n(this,St).select(),n(this,St).value&&E(this,vi,Ui).call(this)}}close(){n(this,Ni)&&(x(this,Ni,!1),u.utils.removeClass(n(this,Ae).commandDispatcher.targets.get("finder"),"active"),E(this,vr,du).call(this),x(this,Ke,[]),x(this,ot,-1),E(this,wr,uu).call(this),E(this,$l,Om).call(this),n(this,It)&&(u.utils.removeClass(n(this,It),"se-find-replace-open"),E(this,Il,$m).call(this),n(this,Zo).set("_preventBlur",!1),n(this,Ae).focusManager.nativeFocus()))}findNext(){!n(this,Ni)||n(this,Ke).length===0||(x(this,ot,(n(this,ot)+1)%n(this,Ke).length),E(this,yr,hu).call(this))}findPrev(){!n(this,Ni)||n(this,Ke).length===0||(x(this,ot,(n(this,ot)-1+n(this,Ke).length)%n(this,Ke).length),E(this,yr,hu).call(this))}search(e,{matchCase:t,wholeWord:o,regex:s}={}){return n(this,Ni)||this.open(),t!==void 0&&(n(this,$t).matchCase=t),o!==void 0&&(n(this,$t).wholeWord=o),s!==void 0&&(n(this,$t).regex=s),x(this,bi,e||""),n(this,St)&&(n(this,St).value=n(this,bi)),E(this,vi,Ui).call(this),n(this,Ke).length}replace(e){E(this,Vl,Rm).call(this,e)}replaceAll(e){E(this,Rh,n2).call(this,e)}get matchInfo(){return{current:n(this,ot)+1,total:n(this,Ke).length}}refresh(){!n(this,Ni)||!n(this,bi)||n(this,qs)||(x(this,qs,!0),E(this,Dl,Vm).call(this),x(this,Co,[]),x(this,qs,!1),clearTimeout(n(this,Ws)),x(this,Ws,setTimeout(()=>E(this,vi,Ui).call(this),300)))}_destroy(){E(this,Il,$m).call(this),E(this,$l,Om).call(this),n(this,Nl)&&x(this,Nl,n(this,Nl).disconnect()),clearTimeout(n(this,Ws))}};Ae=new WeakMap,Zo=new WeakMap,It=new WeakMap,St=new WeakMap,wo=new WeakMap,Tl=new WeakMap,Mh=new WeakMap,Sh=new WeakMap,Ah=new WeakMap,Bh=new WeakMap,Ml=new WeakMap,Sl=new WeakMap,Al=new WeakMap,Bl=new WeakMap,Ni=new WeakMap,Nh=new WeakMap,Ke=new WeakMap,ot=new WeakMap,bi=new WeakMap,$t=new WeakMap,gr=new WeakMap,Co=new WeakMap,br=new WeakMap,Ws=new WeakMap,Nl=new WeakMap,Ll=new WeakMap,Us=new WeakMap,qs=new WeakMap,Lh=new WeakMap,$1=new WeakSet,y3=function(){if(n(Cr,Lh))return;x(Cr,Lh,!0);const e=Hg.createElement("style");e.textContent="::highlight(se-find-match){background-color:var(--se-find-match-color,rgba(255,213,0,.4));color:inherit}::highlight(se-find-current){background-color:var(--se-find-current-color,rgba(255,150,50,.7));color:inherit}",Hg.head.appendChild(e)},Ih=new WeakSet,e2=function(){if(!n(this,Ni)||!n(this,It))return;const e=n(this,Ae).options.get("_toolbar_sticky");n(this,Zo).mode.isBottom?(n(this,It).style.top="auto",n(this,It).style.bottom=e>=0?e+n(this,Ae).context.get("toolbar_main").offsetHeight+"px":"0px"):n(this,It).style.top=e>=0?e+n(this,Ae).context.get("toolbar_main").offsetHeight+"px":"0px"},O1=new WeakSet,w3=function(){E(this,Il,$m).call(this),x(this,Ll,n(this,Ae).eventManager.addGlobalEvent("keydown",e=>{e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),this.close())},!0))},Il=new WeakSet,$m=function(){n(this,Ll)&&x(this,Ll,n(this,Ae).eventManager.removeGlobalEvent(n(this,Ll)))},D1=new WeakSet,C3=function(){E(this,$l,Om).call(this);const e=n(this,Ae).frameContext.get("wysiwyg");x(this,Us,new MutationObserver(()=>this.refresh())),n(this,Us).observe(e,{childList:!0,subtree:!0,characterData:!0})},$l=new WeakSet,Om=function(){n(this,Us)&&(n(this,Us).disconnect(),x(this,Us,null))},V1=new WeakSet,k3=function(){const e=n(this,Ae).eventManager;e.addEvent(n(this,St),"input",E(this,R1,_3).bind(this)),e.addEvent(n(this,St),"keydown",E(this,z1,x3).bind(this)),e.addEvent(n(this,wo),"keydown",E(this,P1,E3).bind(this)),e.addEvent(n(this,It),"click",E(this,H1,T3).bind(this)),ge.isGecko&&e.addEvent(n(this,It),"mousedown",t=>{if(t.target.tagName==="BUTTON"){t.preventDefault();const o=u.query.getCommandTarget(t.target);o&&n(this,Ae).eventManager._injectActiveEvent(o)}n(this,Zo).set("_preventBlur",!0)})},R1=new WeakSet,_3=function(){n(this,Ae).options.get("finder_liveSearch")&&(clearTimeout(n(this,Ws)),x(this,Ws,setTimeout(()=>E(this,vi,Ui).call(this),120)))},z1=new WeakSet,x3=function(e){e.key==="Escape"?(e.preventDefault(),this.close()):e.key==="Enter"&&(e.preventDefault(),!n(this,Ae).options.get("finder_liveSearch")&&n(this,St).value!==n(this,bi)?E(this,vi,Ui).call(this):e.shiftKey?this.findPrev():this.findNext())},P1=new WeakSet,E3=function(e){e.key==="Escape"?(e.preventDefault(),this.close()):e.key==="Enter"&&(e.preventDefault(),E(this,Vl,Rm).call(this))},H1=new WeakSet,T3=function(e){const t=u.query.getEventTarget(e),o=u.query.getCommandTarget(t);if(!o)return;switch(e.preventDefault(),o.getAttribute("data-command")){case"prev":this.findPrev();break;case"next":this.findNext();break;case"toggle-replace":E(this,$h,t2).call(this,!n(this,Nh));break;case"close":this.close();break;case"replace":E(this,Vl,Rm).call(this);break;case"replace-all":E(this,Rh,n2).call(this);break;case"opt-case":n(this,$t).matchCase=!n(this,$t).matchCase,u.utils.toggleClass(n(this,Sh),"on",n(this,$t).matchCase),E(this,vi,Ui).call(this);break;case"opt-word":n(this,$t).wholeWord=!n(this,$t).wholeWord,u.utils.toggleClass(n(this,Ah),"on",n(this,$t).wholeWord),E(this,vi,Ui).call(this);break;case"opt-regex":n(this,$t).regex=!n(this,$t).regex,u.utils.toggleClass(n(this,Bh),"on",n(this,$t).regex),E(this,vi,Ui).call(this);break}},$h=new WeakSet,t2=function(e){x(this,Nh,e),n(this,Mh).style.display=e?"":"none",u.utils.toggleClass(n(this,It).querySelector(".se-find-toggle-replace"),"on",e),e&&n(this,wo).focus()},vi=new WeakSet,Ui=function(){const e=n(this,St)?n(this,St).value:n(this,bi);if(x(this,qs,!0),E(this,vr,du).call(this),x(this,Ke,[]),x(this,ot,-1),!e){x(this,bi,""),E(this,wr,uu).call(this),u.utils.removeClass(n(this,St),"se-find-no-match");return}x(this,bi,e);const t=n(this,Ae).frameContext.get("wysiwyg");x(this,br,E(this,Z1,L3).call(this)),x(this,Ke,E(this,Ol,Dm).call(this,e,t)),n(this,Ke).length>0?(x(this,ot,0),E(this,j1,M3).call(this),E(this,yr,hu).call(this),u.utils.removeClass(n(this,St),"se-find-no-match")):n(this,St)&&u.utils.toggleClass(n(this,St),"se-find-no-match",e.length>0),E(this,wr,uu).call(this),x(this,qs,!1)},Ol=new WeakSet,Dm=function(e,t){const o=[];if(!e||!t)return o;const s=n(this,$t).matchCase?"g":"gi";let r;if(n(this,$t).regex)try{r=new RegExp(e,s)}catch{return o}else{const b=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");r=n(this,$t).wholeWord?new RegExp(`\\b${b}\\b`,s):new RegExp(b,s)}const l=n(this,br),c=n(this,Ae).format,d=l.createTreeWalker(t,NodeFilter.SHOW_TEXT,null),h=[];let p="",f=null,m;for(;m=d.nextNode();){const b=c.getLine(m,null)||t;f&&b!==f&&(p+=`
|
|
175
|
-
`),f=b,h.push({node:m,start:p.length}),p+=m.textContent.replace(/\u00A0/g," ")}if(!p)return o;r.lastIndex=0;let g,v=0;for(;(g=r.exec(p))!==null;){if(g[0].length===0){r.lastIndex++;continue}const b=g.index,y=b+g[0].length,C=l.createRange();let k=!1;for(let _=v;_<h.length;_++){const S=h[_],T=S.start+S.node.textContent.length;if(!k&&b>=S.start&&b<T&&(C.setStart(S.node,b-S.start),k=!0,v=_),k&&y>S.start&&y<=T){C.setEnd(S.node,y-S.start);break}}k&&o.push(C)}return o},j1=new WeakSet,M3=function(){if(n(this,Ke).length===0)return;const e=n(this,Ae).frameContext.get("options").get("iframe");n(this,gr)&&!e?E(this,F1,S3).call(this):E(this,W1,A3).call(this)},F1=new WeakSet,S3=function(){var t;E(t=Cr,$1,y3).call(t);const e=new Highlight(...n(this,Ke));CSS.highlights.set("se-find-match",e),E(this,Oh,i2).call(this)},Oh=new WeakSet,i2=function(){if(n(this,ot)>=0&&n(this,ot)<n(this,Ke).length){const e=new Highlight(n(this,Ke)[n(this,ot)]);CSS.highlights.set("se-find-current",e)}else CSS.highlights.delete("se-find-current")},W1=new WeakSet,A3=function(){E(this,Dl,Vm).call(this);const e=n(this,br);for(let t=n(this,Ke).length-1;t>=0;t--){const o=n(this,Ke)[t],s=E(this,U1,B3).call(this,e,o,t);for(let r=0;r<s.length;r++)n(this,Co).push(s[r])}n(this,Co).reverse(),E(this,Vh,s2).call(this)},U1=new WeakSet,B3=function(e,t,o){const s=t.startContainer,r=t.endContainer,l=[];if(s===r)l.push(E(this,Dh,o2).call(this,e,s,t.startOffset,t.endOffset,o));else{const c=[s];let d=s;for(;d&&d!==r;)d=E(this,q1,N3).call(this,d,t.commonAncestorContainer),d&&c.push(d);for(let h=c.length-1;h>=0;h--){const p=c[h],f=p===s?t.startOffset:0,m=p===r?t.endOffset:p.textContent.length;f>=m||l.push(E(this,Dh,o2).call(this,e,p,f,m,o))}}return l},Dh=new WeakSet,o2=function(e,t,o,s,r){const l=o>0?t.splitText(o):t;s-o<l.textContent.length&&l.splitText(s-o);const c=e.createElement("mark");return c.className="se-find-mark",c.setAttribute("data-se-find-idx",String(r)),l.parentNode.insertBefore(c,l),c.appendChild(l),c},q1=new WeakSet,N3=function(e,t){let o=e;for(;o;){if(o.firstChild)o=o.firstChild;else{for(;o&&!o.nextSibling;)if(o=o.parentNode,o===t)return null;if(!o)return null;o=o.nextSibling}if(o.nodeType===3)return o}return null},Vh=new WeakSet,s2=function(){for(const e of n(this,Co))u.utils.removeClass(e,"se-find-current");if(n(this,ot)>=0)for(const e of n(this,Co))e.getAttribute("data-se-find-idx")===String(n(this,ot))&&u.utils.addClass(e,"se-find-current")},vr=new WeakSet,du=function(){const e=n(this,Ae).frameContext.get("options").get("iframe");n(this,gr)&&!e&&(CSS.highlights.delete("se-find-match"),CSS.highlights.delete("se-find-current")),E(this,Dl,Vm).call(this)},Dl=new WeakSet,Vm=function(){const t=n(this,Ae).frameContext.get("wysiwyg").querySelectorAll("mark.se-find-mark");if(t.length!==0){for(const o of t){const s=o.parentNode;if(s){for(;o.firstChild;)s.insertBefore(o.firstChild,o);s.removeChild(o),s.normalize()}}x(this,Co,[])}},yr=new WeakSet,hu=function(){if(n(this,ot)<0||n(this,ot)>=n(this,Ke).length)return;const e=n(this,Ae).frameContext.get("options").get("iframe");if(n(this,gr)&&!e){E(this,Oh,i2).call(this);const t=n(this,Ke)[n(this,ot)];n(this,Ae).selection.scrollTo(t,{behavior:"auto"})}else{E(this,Vh,s2).call(this);const t=n(this,Co).find(o=>o.getAttribute("data-se-find-idx")===String(n(this,ot)));t&&n(this,Ae).selection.scrollTo(t,{behavior:"auto",noFocus:!0})}E(this,wr,uu).call(this)},Vl=new WeakSet,Rm=function(e){if(n(this,ot)<0||n(this,Ke).length===0)return;E(this,vr,du).call(this);const t=n(this,Ae).frameContext.get("wysiwyg"),o=E(this,Ol,Dm).call(this,n(this,bi),t);n(this,ot)>=o.length||(E(this,zh,r2).call(this,o[n(this,ot)],e??(n(this,wo)?n(this,wo).value:"")),n(this,Ae).history.push(!1),E(this,vi,Ui).call(this),n(this,ot)>=n(this,Ke).length&&n(this,Ke).length>0&&(x(this,ot,0),E(this,yr,hu).call(this)))},Rh=new WeakSet,n2=function(e){if(n(this,Ke).length===0)return;E(this,vr,du).call(this);const t=n(this,Ae).frameContext.get("wysiwyg"),o=E(this,Ol,Dm).call(this,n(this,bi),t);if(o.length!==0){e=e??(n(this,wo)?n(this,wo).value:"");for(let s=o.length-1;s>=0;s--)E(this,zh,r2).call(this,o[s],e);t.normalize(),n(this,Ae).history.push(!1),E(this,vi,Ui).call(this)}},zh=new WeakSet,r2=function(e,t){var l,c;const o=e.startContainer,r=n(this,br).createTextNode(t);if(o===e.endContainer){e.deleteContents(),e.insertNode(r),(l=o.parentNode)==null||l.normalize();return}e.deleteContents(),o.nodeType===3?o.parentNode&&(o.parentNode.insertBefore(r,o.nextSibling),o.parentNode.normalize()):(e.insertNode(r),(c=r.parentNode)==null||c.normalize())},wr=new WeakSet,uu=function(){if(!n(this,It))return;const e=n(this,Ke).length>0;e?n(this,Tl).textContent=`${n(this,ot)+1}/${n(this,Ke).length}`:n(this,Tl).textContent=n(this,bi)?"0":"",n(this,Ml).disabled=!e,n(this,Sl).disabled=!e,n(this,Al).disabled=!e,n(this,Bl).disabled=!e},Z1=new WeakSet,L3=function(){const e=n(this,Ae).frameContext;return e.get("options").get("iframe")?e.get("_wd"):Hg},w(Cr,$1),w(Cr,Lh,!1);let jg=Cr;function GN({lang:i,icons:e}){const t=`
|
|
176
|
-
<div class="se-find-replace-row">
|
|
177
|
-
<div class="se-find-input-wrapper">
|
|
178
|
-
<input class="se-find-replace-input" type="text" placeholder="${i.find||"Find"}" spellcheck="false" autocomplete="off" />
|
|
179
|
-
<div class="se-find-replace-toggle">
|
|
180
|
-
<div class="se-find-replace-info">
|
|
181
|
-
<span class="se-find-replace-count"></span>
|
|
182
|
-
</div>
|
|
183
|
-
<button class="se-btn se-find-replace-btn se-find-opt-case" type="button" data-command="opt-case" title="${i.finder_matchCase}">
|
|
184
|
-
${e.match_case}
|
|
185
|
-
</button>
|
|
186
|
-
<button class="se-btn se-find-replace-btn se-find-opt-word" type="button" data-command="opt-word" title="${i.finder_wholeWord}">
|
|
187
|
-
${e.whole_word}
|
|
188
|
-
</button>
|
|
189
|
-
<button class="se-btn se-find-replace-btn se-find-opt-regex" type="button" data-command="opt-regex" title="${i.finder_regex}">
|
|
190
|
-
${e.regex}
|
|
191
|
-
</button>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
<div class="se-find-replace-buttons">
|
|
195
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="prev" title="${i.finder_prev}
|
|
196
|
-
(${ge.shiftIcon} + Enter)">
|
|
197
|
-
${e.arrow_up_small}
|
|
198
|
-
</button>
|
|
199
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="next" title="${i.finder_next}
|
|
200
|
-
(Enter)">
|
|
201
|
-
${e.arrow_down_small}
|
|
202
|
-
</button>
|
|
203
|
-
<button class="se-btn se-find-replace-btn se-find-toggle-replace" type="button" data-command="toggle-replace" title="${i.replace}">
|
|
204
|
-
${e.swap_vert}
|
|
205
|
-
</button>
|
|
206
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="close" title="${i.close}">
|
|
207
|
-
${e.cancel}
|
|
208
|
-
</button>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
<div class="se-find-replace-row se-find-replace-row-replace">
|
|
212
|
-
<div class="se-find-input-wrapper">
|
|
213
|
-
<input class="se-find-replace-input se-replace-input" type="text" placeholder="${i.replace}" spellcheck="false" autocomplete="off" />
|
|
214
|
-
</div>
|
|
215
|
-
<div class="se-find-replace-buttons">
|
|
216
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="replace" title="${i.replace}
|
|
217
|
-
(Enter)">
|
|
218
|
-
${e.replaceText}
|
|
219
|
-
</button>
|
|
220
|
-
<button class="se-btn se-find-replace-btn" type="button" data-command="replace-all" title="${i.replaceAll}">
|
|
221
|
-
${e.relaceTextAll}
|
|
222
|
-
</button>
|
|
223
|
-
</div>
|
|
224
|
-
</div>`,o=u.utils.createElement("DIV",{class:"se-find-replace"},t);return{panel:o,findInput:o.querySelector(".se-find-replace-input"),replaceInput:o.querySelector(".se-replace-input"),countDisplay:o.querySelector(".se-find-replace-count"),replaceRow:o.querySelector(".se-find-replace-row-replace"),btnCase:o.querySelector(".se-find-opt-case"),btnWord:o.querySelector(".se-find-opt-word"),btnRegex:o.querySelector(".se-find-opt-regex"),btnPrev:o.querySelector('[data-command="prev"]'),btnNext:o.querySelector('[data-command="next"]'),btnReplace:o.querySelector('[data-command="replace"]'),btnReplaceAll:o.querySelector('[data-command="replace-all"]')}}const YN=jg;class KN{constructor(e){jl(this,"$");this.$=e.$}}const XN=KN,{isMobile:QN,_w:JN}=ge;function eL(i){var s;const e=u.query.getEventTarget(i);let t=e;this.$.store.mode.isBalloon&&!((s=this.$.context.get("toolbar_sub_main"))!=null&&s.contains(t))&&this._hideToolbar_sub();const o=u.check.isInputElement(t);if(o?this.$.store.set("_preventBlur",!1):this.$.frameContext.get("wysiwyg").contains(this.$.selection.getNode())||this.$.focusManager.focus(),u.query.getParentElement(t,".se-dropdown"))i.stopPropagation(),this.$.ui.preventToolbarHide(!0);else{let r=t.getAttribute("data-command"),l=t.className;for(;t&&!r&&!/(se-menu-list|sun-editor-common|se-menu-tray)/.test(l);)t=t.parentElement,r=t.getAttribute("data-command"),l=t.className;if(o&&/^INPUT$/i.test(t==null?void 0:t.getAttribute("data-type"))){if(this.$.store.set("_preventBlur",!0),this._inputFocus=!0,this.$.store.get("hasFocus")||this.applyTagEffect(),!u.check.isInputElement(e)||e.disabled)return;const c=this.$.plugins[r];if(!c||(this.__inputBlurEvent&&this.__removeInput(),typeof c.toolbarInputChange=="function"&&(this.__inputPlugin={obj:c,target:e,value:e.value}),this.__inputBlurEvent=this.$.eventManager.addEvent(e,"blur",d=>{if(!c.isInputActive)try{const h=e.value.trim();typeof c.toolbarInputChange=="function"&&h!==this.__inputPlugin.value&&c.toolbarInputChange({target:e,value:h,event:d})}finally{JN.setTimeout(()=>this._inputFocus=!1,0),this.__removeInput()}}),!c))return;typeof c.toolbarInputKeyDown=="function"&&(this.__inputKeyEvent=this.$.eventManager.addEvent(e,"keydown",d=>{c.toolbarInputKeyDown({target:e,event:d})}))}else if(this.__inputBlurEvent&&this.__inputPlugin){const c=this.__inputPlugin.target.value.trim();c!==this.__inputPlugin.value&&this.__inputPlugin.obj.toolbarInputChange({target:this.__inputPlugin.target,value:c,event:i}),this.__removeInput();return}else this.$.frameContext.get("isCodeView")||(QN?this.$.store.set("_preventBlur",!0):(i.preventDefault(),ge.isGecko&&r&&this.$.eventManager._injectActiveEvent(t)));(r===this.$.menu.currentDropdownName||r===this.$.menu.currentContainerName)&&i.stopPropagation()}}function tL(i){const e=u.query.getEventTarget(i),t=u.query.getCommandTarget(e);if(!t)return;let o=t,s="";for(;o&&!/se-menu-tray/.test(o.className)&&!s;)o=o.parentElement,s=o==null?void 0:o.getAttribute("data-key");if(!s)return;const r=this.$.plugins[s];!r||typeof r.action!="function"||(i.stopPropagation(),r.action(t))}function iL(i){const e=u.query.getEventTarget(i);this.$.commandDispatcher.runFromTarget(e)}const{_w:ap}=ge,Av=new WeakMap;async function oL(i,e){const t=u.query.getEventTarget(e);if(this.$.store.set("_mousedown",!0),this.__onDownEv&&Bv.call(this),this.__onDownEv=this.$.eventManager.addGlobalEvent("mouseup",Bv.bind(this)),!(i.get("isReadOnly")||u.check.isNonEditable(i.get("wysiwyg")))){if(this.$.format._isExcludeSelectionElement(t)){e.preventDefault();return}this._setSelectionSync(),ap.setTimeout(this.$.selection.init.bind(this.$.selection),0),await this.$.eventManager.triggerEvent("onMouseDown",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onMouseDown",{frameContext:i,event:e})!==!1&&(this.$.store.mode.isBalloon?this._hideToolbar():this.$.store.mode.isSubBalloon&&this._hideToolbar_sub(),/FIGURE/i.test(t==null?void 0:t.nodeName)&&e.preventDefault())}}function Bv(){this.$.store.set("_mousedown",!1),this.__onDownEv=this.$.eventManager.removeGlobalEvent(this.__onDownEv)}async function sL(i,e){await this.$.eventManager.triggerEvent("onMouseUp",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onMouseUp",{frameContext:i,event:e})}async function nL(i,e){const t=u.query.getEventTarget(e);if(i.get("isReadOnly"))return e.preventDefault(),u.check.isAnchor(t)&&ap.open(t.href,t.target),!1;if(u.check.isNonEditable(i.get("wysiwyg"))||await this.$.eventManager.triggerEvent("onClick",{frameContext:i,event:e})===!1||await this._callPluginEventAsync("onClick",{frameContext:i,event:e})===!1)return;const o=this.$.component.get(t);if(o){e.preventDefault(),this.$.component.select(o.target,o.pluginName);return}if(this.$.selection.init(),e.detail===3){const c=this.$.selection.getRange();this.$.format.isLine(c.endContainer)&&c.endOffset===0&&this.$.selection.setRange(c.startContainer,c.startOffset,c.startContainer,c.startContainer.textContent.length)}const s=this.$.selection.getNode(),r=this.$.format.getLine(s,null),l=this.$.format.getBlock(s,null);if(!r&&!u.check.isNonEditable(t)&&!u.check.isList(l)){const c=this.$.selection.getRange();if(this.$.format.getLine(c.startContainer)===this.$.format.getLine(c.endContainer))if(u.check.isList(l)){e.preventDefault();const d=s.nextElementSibling,h=u.utils.createElement("LI",null,s);l.insertBefore(h,d),this.$.focusManager.focus()}else!u.check.isWysiwygFrame(s)&&!this.$.component.is(s)&&(!u.check.isTableElements(s)||u.check.isTableCell(s))&&this._setDefaultLine(this.$.format.isBlock(l)?"DIV":this.$.options.get("defaultLine"))!==null&&(e.preventDefault(),this.$.focusManager.focus())}this.$.commandDispatcher._copyFormat(),(this.$.store.mode.isBalloon||this.$.store.mode.isSubBalloon)&&ap.setTimeout(this._toggleToolbarBalloon.bind(this),0)}function rL(i,e){if(i.get("isReadOnly")||i.get("isDisabled"))return!1;let t=Av.get(i);t||(t={rafId:null,event:null},Av.set(i,t)),t.event=e,t.rafId===null&&(t.rafId=ap.requestAnimationFrame(()=>{var r;const o=t.event;if(t.rafId=null,t.event=null,!o)return;const s=u.query.getEventTarget(o);ye.get("__overInfo")!==!1&&!this.$.ui.selectMenuOn&&this.$.component.hoverSelect(s),(r=this.$.ui.blockHandle)==null||r.positionForTarget(s,o.clientY),this._callPluginEvent("onMouseMove",{frameContext:i,event:o})}))}async function aL(i,e){var t;(t=this.$.ui.blockHandle)==null||t.hide(e),await this.$.eventManager.triggerEvent("onMouseLeave",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onMouseLeave",{frameContext:i,event:e})}const lL={"event.prevent":({ctx:i})=>i.e.preventDefault(),"event.stop":({ctx:i})=>i.e.stopPropagation(),"event.prevent.stop":({ctx:i})=>{i.e.preventDefault(),i.e.stopPropagation()},"cache.styleNode":({ports:i})=>i.styleNodeCache(),"cache.formatAttrsTemp":({ports:i},{attrs:e})=>i.formatAttrsTempCache(e),"focusManager.nativeFocus":({ports:i})=>i.focusManager.nativeFocus(),"history.push":({ports:i},e)=>i.history.push(e),"documentType.refreshHeader":({ctx:i})=>{pe.setTimeout(()=>{i.fc.get("documentType").reHeader()},0)},"component.deselect":({ports:i})=>i.component.deselect(),"selection.setRange":({ports:i},{sc:e,so:t,ec:o,eo:s})=>i.selection.setRange(e,t,o,s),"format.removeBlock":({ports:i},{rangeEl:e,selectedFormats:t,newBlockElement:o,shouldDelete:s,skipHistory:r})=>i.format.removeBlock(e,{selectedFormats:t,newBlockElement:o,shouldDelete:s,skipHistory:r}),"dom.utils.removeItem":(i,{item:e})=>u.utils.removeItem(e),"select.component.fallback":({ports:i},{cmponentInfo:e})=>{i.component.select(e.target,e.pluginName)===!1&&i.focusManager.blur()}},cL={"del.format.removeAndMove":({ports:i},{container:e,formatEl:t})=>{const o=i.html.remove();if(o.commonCon!==o.container&&t.parentElement)if(t.contains(e)){const s=dL(t);i.selection.setRange(s,s.textContent.length,s,s.textContent.length)}else{const{focusNode:s,focusOffset:r}=hL(t);i.selection.setRange(s,r,s,r)}},"backspace.brline.strip":({ctx:i,ports:e},{formatEl:t})=>{const o=i.options.get("defaultLine"),s=t.parentNode,r=u.utils.createElement(o);for(;t.firstChild&&!u.check.isBreak(t.firstChild);)r.appendChild(t.firstChild);t.firstChild&&u.check.isBreak(t.firstChild)&&t.removeChild(t.firstChild),r.firstChild||(r.innerHTML="<br>"),s.insertBefore(r,t),(!t.firstChild||!t.textContent.trim()&&!t.querySelector("br"))&&s.removeChild(t);const l=r.firstChild;e.selection.setRange(l,0,l,0)},"backspace.format.maintain":({ctx:i},{formatEl:e})=>{if(e.nodeName.toUpperCase()===i.options.get("defaultLine").toUpperCase()){e.innerHTML="<br>";const t=e.attributes;for(;t[0];)e.removeAttribute(t[0].name)}else e.parentNode.replaceChild(u.utils.createElement(i.options.get("defaultLine"),null,"<br>"),e)},"backspace.component.select":({ports:i},{selectionNode:e,range:t,fileComponentInfo:o})=>{var r;let s=null;u.check.isBreak(e)?u.utils.removeItem(e):u.check.isBreak(s=(r=t.startContainer.childNodes)==null?void 0:r[t.startOffset])&&u.utils.removeItem(s),i.component.select(o.target,o.pluginName)===!1&&i.focusManager.blur()},"backspace.component.remove":({ports:i},{isList:e,sel:t,formatEl:o,fileComponentInfo:s})=>{e&&u.utils.removeItem(t),o.textContent.length===0&&u.utils.removeItem(o),i.component.select(s.target,s.pluginName)===!1&&i.focusManager.blur()},"backspace.list.mergePrev":({ports:i},{prev:e,formatEl:t,rangeEl:o})=>{let s=e===o.parentNode?o.previousSibling:e.lastChild;s||(s=u.utils.createTextNode(De.zeroWidthSpace),o.parentNode.insertBefore(s,o.parentNode.firstChild));const r=s.nodeType===3?s.textContent.length:1,l=t.childNodes;let c=s,d=l[0];for(;d=l[0];)e.insertBefore(d,c.nextSibling),c=d;u.utils.removeItem(t),o.children.length===0&&u.utils.removeItem(o),i.selection.setRange(s,r,s,r)},"backspace.list.removeNested":({ports:i},{range:e})=>{i.html.remove(),e.startContainer.nodeType===3&&i.selection.setRange(e.startContainer,e.startContainer.textContent.length,e.startContainer,e.startContainer.textContent.length)},"backspace.emptyLine.mergePrev":({ports:i},{formatEl:e,prev:t})=>{u.utils.removeItem(e),Nv(i,t,!0)},"backspace.brline.rowMerge":({ports:i},{rowEndBr:e,rowStartBr:t})=>{const o=t.nextSibling;o!==e&&(o==null?void 0:o.nodeType)===3&&u.check.isZeroWidth(o)&&u.utils.removeItem(o);const s=t.previousSibling;if(u.utils.removeItem(t),s&&s.nodeType===3)i.selection.setRange(s,s.textContent.length,s,s.textContent.length);else if(u.check.isBreak(s))i.selection.setRange(e,0,e,0);else{const r=e.parentNode;i.selection.setRange(r,0,r,0)}},"backspace.softBreak.merge":({ports:i},{zws:e})=>{const t=e.previousSibling,o=e.parentNode,s=t==null?void 0:t.previousSibling;u.utils.removeItem(e),t&&u.utils.removeItem(t),s?Fg(i,s):o&&i.selection.setRange(o,0,o,0)},"delete.component.select":({ports:i},{formatEl:e,fileComponentInfo:t})=>{if(u.check.isListCell(e)){const o=t.container.previousSibling;u.check.isZeroWidth(o)&&u.utils.removeItem(o)}else u.check.isZeroWidth(e)&&u.utils.removeItem(e);i.component.select(t.target,t.pluginName)===!1&&i.focusManager.blur()},"delete.component.selectNext":({ports:i,ctx:e},{formatEl:t,nextEl:o})=>{if(u.check.isZeroWidth(t)&&(u.utils.removeItem(t),u.check.isTable(o))){let r=u.query.getEdgeChild(o,u.check.isTableCell,!1);r=r.firstElementChild||r,i.selection.setRange(r,0,r,0);return}const s=i.component.get(o);s?(e.e.stopPropagation(),i.component.select(s.target,s.pluginName)===!1&&i.focusManager.blur()):i.component.is(o)&&(e.e.stopPropagation(),u.utils.removeItem(o))},"delete.list.removeNested":({ports:i,ctx:e},{range:t,formatEl:o,rangeEl:s})=>{t.startContainer!==t.endContainer&&i.html.remove();const r=u.utils.arrayFind(o.children,u.check.isList)||o.nextElementSibling||s.parentElement.nextElementSibling;if(r&&(u.check.isList(r)||u.utils.arrayFind(r.children,u.check.isList))){e.e.preventDefault();let l,c;if(u.check.isList(r)){const d=r.firstElementChild;for(c=d.childNodes,l=c[0];c[0];)o.insertBefore(c[0],r);u.utils.removeItem(d)}else{for(l=r.firstChild,c=r.childNodes;c[0];)o.appendChild(c[0]);u.utils.removeItem(r)}i.selection.setRange(l,0,l,0),i.history.push(!0)}},"delete.emptyLine.mergeNext":({ports:i},{formatEl:e,next:t})=>{u.utils.removeItem(e),Nv(i,t,!1)},"line.merge":({ports:i},{into:e,from:t})=>{const o=i.format,s=t.parentElement;Lv(e);const r=e.lastChild;for(Lv(t);t.firstChild;)e.appendChild(t.firstChild);u.utils.removeItem(t);let l=s;for(;l&&l!==e.parentElement&&o.isBlock(l)&&!o.isClosureBlock(l)&&u.check.isZeroWidth(l);){const c=l.parentElement;u.utils.removeItem(l),l=c}e.firstChild||e.appendChild(u.utils.createElement("BR")),r?Fg(i,r):i.selection.setRange(e,0,e,0)},"delete.brline.rowMerge":({ports:i},{rowEndBr:e})=>{let t=e.nextSibling;(t==null?void 0:t.nodeType)===3&&u.check.isZeroWidth(t)&&(t=t.nextSibling);const o=e.parentNode;u.utils.removeItem(e),t&&(t.nodeType===3||u.check.isBreak(t))?i.selection.setRange(t,0,t,0):i.selection.setRange(o,o.childNodes.length,o,o.childNodes.length)},"delete.softBreak.merge":({ports:i},{br:e})=>{const t=e.previousSibling,o=e.parentNode,s=e.nextSibling;s&&s.nodeType===3&&u.check.isZeroWidth(s.textContent)&&u.utils.removeItem(s),u.utils.removeItem(e),t?Fg(i,t):o&&i.selection.setRange(o,0,o,0)},"tab.format.indent":({ports:i,ctx:e},{range:t,formatEl:o,shift:s})=>{const r=i.format.getLines(null),l=[],c=[],d=u.check.isListCell(r[0]),h=u.check.isListCell(r.at(-1));let p={sc:t.startContainer,so:t.startOffset,ec:t.endContainer,eo:t.endOffset};for(let f=0,m=r.length,g;f<m;f++)if(g=r[f],u.check.isListCell(g)){if(!g.previousElementSibling&&!s)continue;l.push(g)}else c.push(g);if(l.length>0&&(p=i.listFormat.applyNested(l,s)),c.length>0)if(s){const f=c.length-1;for(let v=0,b;v<=f;v++){b=c[v].childNodes;for(let y=0,C=b.length,k;y<C&&(k=b[y],!!k);y++)if(!u.check.isZeroWidth(k)){/^\s{1,4}$/.test(k.textContent)?u.utils.removeItem(k):/^\s{1,4}/.test(k.textContent)&&(k.textContent=k.textContent.replace(/^\s{1,4}/,""));break}}const m=u.query.getEdgeChild(c[0],"text",!1),g=u.query.getEdgeChild(c[f],"text",!0);!d&&m&&(p.sc=m,p.so=0),!h&&g&&(p.ec=g,p.eo=g.textContent.length)}else if(c.length===1){let f=e.store.get("tabSize")+1;if(e.options.get("syncTabIndent")){const g=u.query.findTextIndexOnLine(o,t.startContainer,t.startOffset,b=>i.component.is(b)),v=i.format.isLine(o.previousElementSibling)?u.query.findTabEndIndex(o.previousElementSibling,g,2):0;v>g&&(f=v-g)}const m=u.utils.createTextNode(new Array(f).join(" "));if(!i.html.insertNode(m,{afterNode:null,skipCharCount:!1}))return!1;d||(p.sc=m,p.so=m.length),h||(p.ec=m,p.eo=m.length)}else{const f=u.utils.createTextNode(new Array(e.store.get("tabSize")+1).join(" ")),m=c.length-1;for(let b=0,y;b<=m;b++)y=c[b].firstChild,y&&(u.check.isBreak(y)?c[b].insertBefore(f.cloneNode(!1),y):y.textContent=f.textContent+y.textContent);const g=u.query.getEdgeChild(c[0],"text",!1),v=u.query.getEdgeChild(c[m],"text",!0);!d&&g&&(p.sc=g,p.so=0),!h&&v&&(p.ec=v,p.eo=v.textContent.length)}i.selection.setRange(p.sc,p.so,p.ec,p.eo)},"caret.scrollTo":({ports:i},{range:e})=>{i.caretScrollTo(e)},"enter.line.addDefault":({ports:i},{formatEl:e})=>{const o=i.format.addLineAfter(e).firstChild;i.selection.setRange(o,0,o,0)},"enter.list.addItem":({ports:i},{formatEl:e,selectionNode:t})=>{const o=u.utils.createElement("BR"),s=u.utils.createElement("LI",null,o);e.parentNode.insertBefore(s,e.nextElementSibling),s.appendChild(t.nextSibling),i.selection.setRange(o,1,o,1)},"enter.format.exitEmpty":({ports:i,ctx:e},{formatEl:t,rangeEl:o})=>{let s=null;if(u.check.isListCell(o.parentElement)){const r=t.parentNode.parentElement;o=r.parentElement;const l=u.utils.createElement("LI");l.innerHTML="<br>",u.utils.copyTagAttributes(l,t,e.options.get("lineAttrReset")),s=l,o.insertBefore(s,r.nextElementSibling)}else{let r;u.check.isTableCell(o.parentElement)?r="DIV":u.check.isList(o.parentElement)?r="LI":i.format.isLine(o.nextElementSibling)?r=o.nextElementSibling.nodeName:i.format.isLine(o.previousElementSibling)?r=o.previousElementSibling.nodeName:r=e.options.get("defaultLine"),s=u.utils.createElement(r);const l=i.format.removeBlock(o,{selectedFormats:[t],newBlockElement:null,shouldDelete:!0,skipHistory:!0});l.cc.insertBefore(s,l.sc?l.sc.nextSibling:l.cc.firstChild)}s.innerHTML="<br>",i.nodeTransform.removeAllParents(t,null,null),i.selection.setRange(s,1,s,1)},"enter.format.cleanBrAndZWS":({ports:i},{selectionNode:e,selectionFormat:t,brBlock:o,children:s,offset:r})=>{t?u.utils.removeItem(s[r-1]):u.utils.removeItem(e);const l=o.nextElementSibling,c=i.format.addLine(o,i.format.isLine(l)?l:null);u.utils.copyFormatAttributes(c,o),i.selection.setRange(c,1,c,1)},"enter.format.insertBrHtml":({ports:i},{brBlock:e,range:t,wSelection:o,offset:s})=>{i.html.insert(t.collapsed&&u.check.isBreak(t.startContainer.childNodes[t.startOffset-1])?"<br>":"<br><br>",{selectInserted:!1,skipCharCount:!0,skipCleaning:!0});let r=o.focusNode;const l=o.focusOffset;e===r&&(r=r.childNodes[l-s>1?l-1:l]),i.selection.setRange(r,1,r,1),i.setOnShortcutKey(!0)},"enter.brline.insert":({ports:i},{range:e})=>{i.selection.setRange(e.startContainer,e.startOffset,e.endContainer,e.endOffset),e.collapsed||i.html.remove();const t=u.utils.createElement("BR");i.html.insertNode(t,{afterNode:null,skipCharCount:!0}),t.nextSibling||t.parentNode.appendChild(u.utils.createElement("BR"));const o=t.nextSibling;i.selection.setRange(o,0,o,0),i.setOnShortcutKey(!0)},"enter.shift.br":({ports:i,ctx:e},{range:t})=>{const o=e.fc.get("_wd"),s=i.selection.get(),l=(s==null?void 0:s.rangeCount)>0&&e.fc.get("wysiwyg").contains(s.focusNode)?s.getRangeAt(0):t,c=o.createRange();if(c.setStart(l.startContainer,l.startOffset),c.setEnd(l.endContainer,l.endOffset),l.collapsed||(c.deleteContents(),c.collapse(!0)),c.startContainer.nodeType===1&&u.check.isBreak(c.startContainer)){const p=c.startContainer;c.setStart(p.parentNode,u.utils.getArrayIndex(p.parentNode.childNodes,p)+c.startOffset),c.collapse(!0)}const d=u.utils.createElement("BR");c.insertNode(d);const h=d.nextSibling;if(h&&h.nodeType===3&&!u.check.isZeroWidth(h.textContent))i.selection.setRange(h,0,h,0);else{const p=u.utils.createTextNode(De.zeroWidthSpace);d.parentNode.insertBefore(p,d.nextSibling),i.selection.setRange(p,1,p,1)}i.history.push(!1)},"enter.brline.exit":({ports:i},{brBlock:e})=>{const t=e.lastChild;t&&(u.check.isBreak(t)||u.check.isZeroWidth(t.textContent))&&u.utils.removeItem(t);const o=e.nextElementSibling,s=i.format.addLine(e,i.format.isLine(o)?o:null);u.utils.copyFormatAttributes(s,e),i.selection.setRange(s,1,s,1)},"enter.format.insertBrNode":({ports:i},{wSelection:e})=>{const t=e.focusNode.nextSibling,o=u.utils.createElement("BR");i.html.insertNode(o,{afterNode:null,skipCharCount:!0});const s=o.previousSibling,r=o.nextSibling;!u.check.isBreak(t)&&!u.check.isBreak(s)&&(!r||u.check.isZeroWidth(r))?(o.parentNode.insertBefore(o.cloneNode(!1),o),i.selection.setRange(o,1,o,1)):i.selection.setRange(r,0,r,0),i.setOnShortcutKey(!0)},"enter.format.breakAtEdge":({ports:i,ctx:e},{formatEl:t,selectionNode:o,formatStartEdge:s,formatEndEdge:r,bidiSwapped:l})=>{const c=u.utils.createElement("BR"),d=u.utils.createElement(t.nodeName,null,c);u.utils.copyTagAttributes(d,t,e.options.get("lineAttrReset"));let h=c;if(!(r&&e.options.get("lineBreakClearStyle"))){let p=o;do{if(!u.check.isBreak(p)&&p.nodeType===1){const f=p.cloneNode(!1);f.appendChild(h),h=f}p=p.parentElement}while(t!==p&&t.contains(p))}if(d.appendChild(h),t.parentNode.insertBefore(d,s&&!r?t:t.nextElementSibling),r)i.selection.setRange(c,1,c,1);else if(l)i.selection.setRange(t,1,t,1);else{const p=t.firstChild||t;i.selection.setRange(p,0,p,0)}},"enter.format.breakWithSelection":({ports:i,ctx:e},{formatEl:t,range:o,formatStartEdge:s,formatEndEdge:r})=>{const l=i.format.getLine(o.startContainer,null)!==i.format.getLine(o.endContainer,null),c=t.cloneNode(!1);c.innerHTML="<br>";const d=o.commonAncestorContainer,h=d===o.startContainer&&d===o.endContainer&&u.check.isZeroWidth(d)?{container:d,offset:o.endOffset,prevContainer:d.previousElementSibling,commonCon:d}:i.html.remove();let p=i.format.getLine(h.container,null),f=0;if(!p){u.check.isWysiwygFrame(h.container)&&(i.enterPrevent(e.e),e.fc.get("wysiwyg").appendChild(c),p=c,u.utils.copyTagAttributes(p,t,e.options.get("lineAttrReset")),i.selection.setRange(p,f,p,f));return}const m=i.format.getBlock(h.container);p=p.contains(m)?u.query.getEdgeChild(m,g=>!!i.format.getLine(g),!1):p,l?r&&!s?(p.parentNode.insertBefore(c,!h.prevContainer||h.container===h.prevContainer?p.nextElementSibling:p),p=c,f=0):(f=h.offset,s&&(p.parentNode.insertBefore(c,p),r&&(f=0))):r&&s?(p.parentNode.insertBefore(c,p),f=0):r?(p=p.parentNode.insertBefore(c,p.nextElementSibling),p=c,f=0):p=i.nodeTransform.split(h.container,h.offset,u.query.getNodeDepth(t)),i.enterPrevent(e.e),u.utils.copyTagAttributes(p,t,e.options.get("lineAttrReset")),i.selection.setRange(p,f,p,f)},"enter.format.breakAtCursor":({ports:i,ctx:e},{formatEl:t,range:o})=>{let s=null;u.check.isZeroWidth(t)?s=i.format.addLine(t,t.cloneNode(!1)):s=i.nodeTransform.split(o.endContainer,o.endOffset,u.query.getNodeDepth(t)),i.enterPrevent(e.e),u.utils.copyTagAttributes(s,t,e.options.get("lineAttrReset")),i.selection.setRange(s,0,s,0)},"enter.figcaption.exitInList":({ports:i},{formatEl:e})=>{const t=i.format.addLine(e,null);i.selection.setRange(t,0,t,0)},"keydown.input.insertNbsp":({ports:i})=>{const e=i.html.insertNode(u.utils.createTextNode(" "),{afterNode:null,skipCharCount:!0});e&&i.selection.setRange(e,e.length,e,e.length)},"keydown.input.insertZWS":({ports:i})=>{const e=u.utils.createTextNode(De.zeroWidthSpace);i.html.insertNode(e,{afterNode:null,skipCharCount:!0}),i.selection.setRange(e,1,e,1)}};function Nv(i,e,t){const o=t?e.childNodes.length:0;i.selection.setRange(e,o,e,o)}function Fg(i,e){const t=e.nodeType===3?e.textContent.length:e.childNodes.length;i.selection.setRange(e,t,e,t)}function Lv(i){let e=i.lastChild;for(;e&&(u.check.isBreak(e)||e.nodeType===3&&u.check.isZeroWidth(e));){const t=e.previousSibling;u.utils.removeItem(e),e=t}}function dL(i){const e=i.lastChild,t=i.nextElementSibling;if(!t)return e;if(u.check.isZeroWidth(t))return u.utils.removeItem(t),e;const o=t.childNodes;for(;o[0];)i.appendChild(o[0]);return u.utils.removeItem(t),e}function hL(i){var r;const e=i.childNodes,t=i.previousElementSibling;let o=e[0],s=0;if(!t)return{focusNode:o,focusOffset:s};if(u.check.isZeroWidth(t))return u.utils.removeItem(t),{focusNode:o,focusOffset:s};if(e.length>1||((r=e[0])==null?void 0:r.textContent.length)>0)for(;e[0];)t.appendChild(e[0]);else o=t.lastChild,s=o.textContent.length;return u.utils.removeItem(i),{focusNode:o,focusOffset:s}}const uL="action.stop";async function Iv(i,e){const t={...lL,...cL};for(const o of i){if(o.t===uL)return!1;const s=t[o.t];if(s&&await s(e,o.p)===!1)return!1}}function $v(i){var p;const e=i.selection.getRange(),t=e.startContainer,o=e.endContainer,s=i.format.getBlock(t),r=i.format.getBlock(o),l=u.check.isTableCell(s),c=u.check.isTableCell(r);if((l&&!s.previousElementSibling&&!s.parentElement.previousElementSibling||c&&!r.nextElementSibling&&!r.parentElement.nextElementSibling)&&s!==r){const f=((p=u.query.getParentElement(e.commonAncestorContainer,u.check.isFigure))==null?void 0:p.parentElement)||e.commonAncestorContainer;if(!l)u.utils.removeItem(u.query.getParentElement(r,m=>f===m.parentNode));else if(!c)u.utils.removeItem(u.query.getParentElement(s,m=>f===m.parentNode));else return u.utils.removeItem(u.query.getParentElement(s,m=>f===m.parentNode)),i.focusManager.nativeFocus(),!0}const d=t.nodeType===1?u.query.getParentElement(t,".se-component"):null,h=o.nodeType===1?u.query.getParentElement(o,".se-component"):null;return d&&u.utils.removeItem(d),h&&u.utils.removeItem(h),!1}function pL(i,e,t){let o=e.parentNode.previousSibling;const s=e.parentNode.nextSibling;o||(s?o=s:(o=u.utils.createElement("BR"),t.appendChild(o)));let r=e;for(;t.contains(r)&&!r.previousSibling;)r=r.parentNode;if(!t.contains(r))return e.textContent="",i.nodeTransform.removeAllParents(e,null,t),!0}function lp(i,e,t){const o=t?e.startContainer:e.endContainer,s=t?e.startOffset:e.endOffset,r=t?"previousSibling":"nextSibling",l=o.nodeType===1;let c;return l?(c=Ov(i,o.childNodes[s],r,o),u.check.isComponentContainer(c)||u.check.isNonEditable(c)?c:null):(c=Ov(i,o,r,o),u.check.isEdgePoint(o,s,t?"front":"end")&&(u.check.isComponentContainer(c)||u.check.isNonEditable(c))?c:null)}function Ov(i,e,t,o){if(!e)return null;let s=e[t];if(!s)if(s=i.format.getLine(o),s=s?s[t]:null,s&&!i.component.is(s))s=t==="previousSibling"?s.firstChild:s.lastChild;else return null;return s}function fL(i,e){return i.setDefaultLine(e)}function yc(i,e,t,o){if(!i.collapsed||!e)return!1;const s=i.getBoundingClientRect();if(s.height<=0)return!1;const r=o.createRange();r.selectNodeContents(e);const l=r.getBoundingClientRect();return l.width<=2?!1:t==="front"?s.left<=l.left+2:s.left>=l.right-2}const G={prevent:()=>({t:"event.prevent"}),stop:()=>({t:"event.stop"}),preventStop:()=>({t:"event.prevent.stop"}),cacheStyleNode:()=>({t:"cache.styleNode"}),cacheFormatAttrsTemp:i=>({t:"cache.formatAttrsTemp",p:{attrs:i}}),componentDeselect:()=>({t:"component.deselect"}),editorNativeFocus:()=>({t:"focusManager.nativeFocus"}),historyPush:i=>({t:"history.push",p:i}),documentTypeRefreshHeader:()=>({t:"documentType.refreshHeader"}),selectionSetRange:(i,e,t,o)=>({t:"selection.setRange",p:{sc:i,so:e,ec:t,eo:o}}),formatRemoveBlock:(i,e,t,o,s)=>({t:"format.removeBlock",p:{rangeEl:i,selectedFormats:e,newBlockElement:t,shouldDelete:o,skipHistory:s}}),domUtilsRemoveItem:i=>({t:"dom.utils.removeItem",p:{item:i}}),selectComponentFallback:i=>({t:"select.component.fallback",p:{cmponentInfo:i}}),delFormatRemoveAndMove:(i,e)=>({t:"del.format.removeAndMove",p:{container:i,formatEl:e}}),backspaceFormatMaintain:i=>({t:"backspace.format.maintain",p:{formatEl:i}}),backspaceBrLineStrip:i=>({t:"backspace.brline.strip",p:{formatEl:i}}),backspaceComponentSelect:(i,e,t)=>({t:"backspace.component.select",p:{selectionNode:i,range:e,fileComponentInfo:t}}),backspaceComponentRemove:(i,e,t,o)=>({t:"backspace.component.remove",p:{isList:i,sel:e,formatEl:t,fileComponentInfo:o}}),backspaceListMergePrev:(i,e,t)=>({t:"backspace.list.mergePrev",p:{prev:i,formatEl:e,rangeEl:t}}),backspaceListRemoveNested:i=>({t:"backspace.list.removeNested",p:{range:i}}),backspaceEmptyLineMergePrev:(i,e)=>({t:"backspace.emptyLine.mergePrev",p:{formatEl:i,prev:e}}),backspaceBrLineRowMerge:(i,e)=>({t:"backspace.brline.rowMerge",p:{rowEndBr:i,rowStartBr:e}}),backspaceSoftBreakMerge:i=>({t:"backspace.softBreak.merge",p:{zws:i}}),deleteComponentSelect:(i,e)=>({t:"delete.component.select",p:{formatEl:i,fileComponentInfo:e}}),deleteComponentSelectNext:(i,e)=>({t:"delete.component.selectNext",p:{formatEl:i,nextEl:e}}),deleteListRemoveNested:(i,e,t)=>({t:"delete.list.removeNested",p:{range:i,formatEl:e,rangeEl:t}}),deleteEmptyLineMergeNext:(i,e)=>({t:"delete.emptyLine.mergeNext",p:{formatEl:i,next:e}}),deleteBrLineRowMerge:i=>({t:"delete.brline.rowMerge",p:{rowEndBr:i}}),deleteSoftBreakMerge:i=>({t:"delete.softBreak.merge",p:{br:i}}),mergeLineInto:(i,e)=>({t:"line.merge",p:{into:i,from:e}}),tabFormatIndent:(i,e,t)=>({t:"tab.format.indent",p:{range:i,formatEl:e,shift:t}}),caretScrollTo:i=>({t:"caret.scrollTo",p:{range:i}}),enterLineAddDefault:i=>({t:"enter.line.addDefault",p:{formatEl:i}}),enterListAddItem:(i,e)=>({t:"enter.list.addItem",p:{formatEl:i,selectionNode:e}}),enterFormatExitEmpty:(i,e)=>({t:"enter.format.exitEmpty",p:{formatEl:i,rangeEl:e}}),enterFormatCleanBrAndZWS:(i,e,t,o,s)=>({t:"enter.format.cleanBrAndZWS",p:{selectionNode:i,selectionFormat:e,brBlock:t,children:o,offset:s}}),enterFormatInsertBrHtml:(i,e,t,o)=>({t:"enter.format.insertBrHtml",p:{brBlock:i,range:e,wSelection:t,offset:o}}),enterFormatInsertBrNode:i=>({t:"enter.format.insertBrNode",p:{wSelection:i}}),enterBrLineInsert:i=>({t:"enter.brline.insert",p:{range:i}}),enterShiftBr:i=>({t:"enter.shift.br",p:{range:i}}),enterBrLineExit:i=>({t:"enter.brline.exit",p:{brBlock:i}}),enterFormatBreakAtEdge:(i,e,t,o,s)=>({t:"enter.format.breakAtEdge",p:{formatEl:i,selectionNode:e,formatStartEdge:t,formatEndEdge:o,bidiSwapped:s}}),enterFormatBreakWithSelection:(i,e,t,o)=>({t:"enter.format.breakWithSelection",p:{formatEl:i,range:e,formatStartEdge:t,formatEndEdge:o}}),enterFormatBreakAtCursor:(i,e)=>({t:"enter.format.breakAtCursor",p:{formatEl:i,range:e}}),enterFigcaptionExitInList:i=>({t:"enter.figcaption.exitInList",p:{formatEl:i}}),keydownInputInsertNbsp:()=>({t:"keydown.input.insertNbsp"}),keydownInputInsertZWS:()=>({t:"keydown.input.insertZWS"})};function mL(i,e,t){const{format:o,component:s}=e,{fc:r,options:l,range:c,selectionNode:d}=t;let{formatEl:h}=t;const p=!c.collapsed||c.startContainer!==c.endContainer,f=l.get("_rtl")&&!p&&c.startOffset===0&&yc(c,h,"front",r.get("_wd"));if(i.push(G.componentDeselect()),i.push(G.cacheStyleNode()),p&&$v(e))return i.push(G.preventStop()),i.push(G.caretScrollTo(c)),!0;if(!o.isNormalLine(h)&&!o.isBrLine(h)&&!r.get("wysiwyg").firstElementChild&&!s.is(d)&&fL(e,l.get("defaultLine"))!==null)return i.push(G.preventStop()),!1;if(o.isLine(h)&&p&&u.check.isEdgePoint(c.startContainer,c.startOffset,"front")&&(!c.startContainer.previousSibling||u.check.isZeroWidth(c.startContainer.previousSibling))&&o.getLine(c.startContainer)!==o.getLine(c.endContainer)&&(o.isLine(h.previousElementSibling)||u.check.isListCell(h)))return i.push(G.preventStop()),i.push(G.delFormatRemoveAndMove(c.startContainer,h)),i.push(G.historyPush(!0)),i.push(G.caretScrollTo(c)),!1;if(!p&&!f&&h&&o.isNormalLine(h)&&!u.check.isListCell(h)&&o.isEdgeLine(c.startContainer,c.startOffset,"front")){const y=gL(o,h);if(y)return i.push(G.preventStop()),i.push(G.mergeLineInto(y,h)),i.push(G.historyPush(!0)),!1}if(!p&&!f&&!h.previousElementSibling&&c.startOffset===0&&!d.previousSibling&&!u.check.isListCell(h)&&o.isLine(h)&&(!o.isBrLine(h)||o.isClosureBrLine(h)||u.check.isWysiwygFrame(h.parentNode)))return o.isClosureBlock(h.parentNode)?(i.push(G.preventStop()),!1):o.isBrLine(h)&&u.check.isWysiwygFrame(h.parentNode)?(i.push(G.preventStop()),i.push(G.backspaceBrLineStrip(h)),i.push(G.historyPush(!0)),!1):(u.check.isWysiwygFrame(h.parentNode)&&h.childNodes.length<=1&&(!h.firstChild||u.check.isZeroWidth(h.textContent))&&(i.push(G.preventStop()),i.push(G.backspaceFormatMaintain(h))),i.push(G.editorNativeFocus()),i.push(G.caretScrollTo(c)),!1);const m=c.startContainer;if(h&&!f&&!h.previousElementSibling&&c.startOffset===0&&m.nodeType===3&&u.check.isZeroWidth(m)&&pL(e,m,h)===!0)return!0;if(!p&&h&&(c.startOffset===0||d===h)){const y=d===h?lp(e,c,!0):u.check.isElement(d.previousSibling)?d.previousSibling:u.check.isEdgePoint(c.startContainer,c.startOffset)?u.query.getPreviousDeepestNode(c.startContainer):null;if(s.is(y)){const C=s.get(y);if(C)return i.push(G.preventStop()),i.push(G.backspaceComponentSelect(d,c,C)),!0}}if(lp(e,c,!0))return i.push(G.preventStop()),!0;!p&&!f&&o.isEdgeLine(c.startContainer,c.startOffset,"front")&&o.isLine(h.previousElementSibling)&&i.push(G.cacheFormatAttrsTemp(h.previousElementSibling.attributes)),h=o.getLine(c.startContainer,null);const g=o.getBlock(h,null),v=c.commonAncestorContainer;if(g&&h&&!u.check.isTableCell(g)&&!/^FIGCAPTION$/i.test(g.nodeName)){if(u.check.isListCell(h)&&u.check.isList(g)&&(u.check.isListCell(g.parentElement)||h.previousElementSibling)&&(d===h||d.nodeType===3&&(!d.previousSibling||u.check.isList(d.previousSibling)))&&(o.getLine(c.startContainer,null)!==o.getLine(c.endContainer,null)?g.contains(c.startContainer):c.startOffset===0&&c.collapsed&&!f)){if(c.startContainer!==c.endContainer)i.push(G.prevent()),i.push(G.backspaceListRemoveNested(c)),i.push(G.historyPush(!0));else{let y=h.previousElementSibling||g.parentElement;if(u.check.isListCell(y)){i.push(G.prevent());let C=y;if(!y.contains(h)&&u.check.isListCell(C)&&u.check.isList(C.lastElementChild)){for(C=C.lastElementChild.lastElementChild;u.check.isListCell(C)&&u.check.isList(C.lastElementChild);)C=C.lastElementChild&&C.lastElementChild.lastElementChild;y=C}i.push(G.backspaceListMergePrev(y,h,g)),i.push(G.historyPush(!0))}}return i.push(G.caretScrollTo(c)),!0}if(!p&&c.startOffset===0&&!f){let y=!0,C=v;for(;C&&C!==g&&!u.check.isWysiwygFrame(C);){if(C.previousSibling&&(C.previousSibling.nodeType===1||!u.check.isZeroWidth(C.previousSibling.textContent.trim()))){y=!1;break}C=C.parentNode}if(y&&g.parentNode)return i.push(G.prevent()),i.push(G.formatRemoveBlock(g,u.check.isListCell(h)?[h]:null,null,!1,!1)),i.push(G.historyPush(!0)),i.push(G.caretScrollTo(c)),!0}}if(!p&&h&&u.check.isEmptyLine(h)&&s.is(h.previousElementSibling)){const y=s.get(h.previousElementSibling);if(y)return i.push(G.preventStop()),i.push(G.backspaceComponentRemove(!1,h.firstChild,h,y)),i.push(G.caretScrollTo(c)),!0}if(!p&&h&&(c.startOffset===0||d===h&&h.childNodes[c.startOffset])){const y=u.check.isListCell(h),C=d===h?h.childNodes[c.startOffset]:d,k=(y?C:h).previousSibling,_=y||(v.nodeType===3||u.check.isBreak(v))&&!v.previousSibling&&c.startOffset===0;if(C&&(y||!C.previousSibling)&&(v&&s.is(v.previousSibling)||_&&s.is(k))){const S=s.get(k);return S?(i.push(G.preventStop()),i.push(G.backspaceComponentRemove(y,C,h,S))):s.is(k)&&(i.push(G.preventStop()),i.push(G.domUtilsRemoveItem(k))),i.push(G.caretScrollTo(c)),!0}if(C&&u.check.isNonEditable(C.previousSibling))return i.push(G.preventStop()),i.push(G.domUtilsRemoveItem(C.previousSibling)),i.push(G.caretScrollTo(c)),!0}if(!p&&o.isBrLine(h)&&u.check.isBreak(c.startContainer)&&c.startOffset===0){let y=c.startContainer.previousSibling;if((y==null?void 0:y.nodeType)===3&&u.check.isZeroWidth(y)&&(y=y.previousSibling),u.check.isBreak(y))return i.push(G.preventStop()),i.push(G.backspaceBrLineRowMerge(c.startContainer,y)),i.push(G.historyPush(!0)),i.push(G.caretScrollTo(c)),!1}if(!p&&c.startContainer.nodeType===3&&u.check.isZeroWidth(c.startContainer)&&c.startOffset<=1&&u.check.isBreak(c.startContainer.previousSibling))return i.push(G.preventStop()),i.push(G.backspaceSoftBreakMerge(c.startContainer)),i.push(G.historyPush(!0)),i.push(G.caretScrollTo(c)),!1;const b=h==null?void 0:h.previousElementSibling;return!p&&h&&o.isNormalLine(h)&&!u.check.isListCell(h)&&u.check.isEmptyLine(h)&&(o.isNormalLine(b)||o.isBrLine(b))?(i.push(G.preventStop()),i.push(G.backspaceEmptyLineMergePrev(h,b)),i.push(G.historyPush(!0)),i.push(G.caretScrollTo(c)),!1):(i.push(G.caretScrollTo(c)),!0)}function gL(i,e){let t=e.previousElementSibling;if(t){if(!i.isBlock(t))return null}else{const s=e.parentElement;if(!i.isBlock(s)||i.isClosureBlock(s)||(t=s.previousElementSibling,!t))return null}let o=t;for(;o&&i.isBlock(o)&&!i.isClosureBlock(o);)o=o.lastElementChild;return!i.isNormalLine(o)||u.check.isListCell(o)||i.isBrLine(o)||i.isClosureBrLine(o)?null:o}function bL(i,e,t){var g,v;const{format:o,component:s}=e,{fc:r,range:l,selectionNode:c}=t;let{formatEl:d}=t;const h=!l.collapsed||l.startContainer!==l.endContainer,p=t.options.get("_rtl")&&!h&&l.endOffset>=(((g=l.endContainer.textContent)==null?void 0:g.length)||0)&&yc(l,d,"end",r.get("_wd"));if(i.push(G.componentDeselect()),i.push(G.cacheStyleNode()),h&&$v(e))return i.push(G.preventStop()),!0;if(!h&&!p&&d&&o.isNormalLine(d)&&!u.check.isListCell(d)&&o.isEdgeLine(l.endContainer,l.endOffset,"end")){const b=vL(o,d);if(b)return i.push(G.preventStop()),i.push(G.mergeLineInto(d,b)),i.push(G.historyPush(!0)),!1}if(!h&&!p&&o.isEdgeLine(l.endContainer,l.endOffset,"end")&&!d.nextSibling)return i.push(G.preventStop()),!1;if(o.isLine(d)&&h&&u.check.isEdgePoint(l.endContainer,l.endOffset,"end")&&(!l.endContainer.nextSibling||u.check.isZeroWidth(l.endContainer.nextSibling))&&o.getLine(l.startContainer)!==o.getLine(l.endContainer)&&(o.isLine(d.nextElementSibling)||u.check.isListCell(d)))return i.push(G.preventStop()),i.push(G.delFormatRemoveAndMove(l.endContainer,d)),i.push(G.historyPush(!0)),!1;if(!h&&d&&(l.endOffset===l.endContainer.textContent.length||c===d)){const b=c===d?lp(e,l,!1):u.check.isElement(c.nextSibling)?c.nextSibling:u.check.isEdgePoint(l.endContainer,l.endOffset)?u.query.getNextDeepestNode(l.endContainer,null):null;if(s.is(b)){const y=s.get(b);if(y)return i.push(G.preventStop()),i.push(G.deleteComponentSelect(d,y)),!0}}if(lp(e,l,!1))return i.push(G.preventStop()),!0;if((o.isLine(c)||c.nextSibling===null||u.check.isZeroWidth(c.nextSibling)&&c.nextSibling.nextSibling===null)&&l.startOffset===c.textContent.length){const b=d.nextElementSibling;if(!b)return!0;if(s.is(b))return i.push(G.prevent()),i.push(G.deleteComponentSelectNext(d,b)),!0}if(!h&&(u.check.isEdgePoint(l.endContainer,l.endOffset)||c===d&&d.childNodes[l.startOffset])){const b=c===d&&d.childNodes[l.startOffset]||c;if(b&&u.check.isNonEditable(b.nextSibling))return i.push(G.preventStop()),i.push(G.domUtilsRemoveItem(b.nextSibling)),!0;if(s.is(b))return i.push(G.preventStop()),i.push(G.domUtilsRemoveItem(b)),!0}!h&&!p&&o.isEdgeLine(l.endContainer,l.endOffset,"end")&&o.isLine(d.nextElementSibling)&&i.push(G.cacheFormatAttrsTemp(d.attributes)),d=o.getLine(l.startContainer,null);const f=o.getBlock(d,null);if(u.check.isListCell(d)&&u.check.isList(f)&&(c===d||c.nodeType===3&&(!c.nextSibling||u.check.isList(c.nextSibling))&&(o.getLine(l.startContainer,null)!==o.getLine(l.endContainer,null)?f.contains(l.endContainer):l.endOffset===c.textContent.length&&l.collapsed&&!p)))return i.push(G.deleteListRemoveNested(l,d,f)),!0;if(!h&&o.isBrLine(d)&&u.check.isBreak(l.startContainer)&&l.startOffset===0){let b=l.startContainer.previousSibling;if((b==null?void 0:b.nodeType)===3&&u.check.isZeroWidth(b)&&(b=b.previousSibling),u.check.isBreak(b))return i.push(G.preventStop()),i.push(G.deleteBrLineRowMerge(l.startContainer)),i.push(G.historyPush(!0)),!1}if(!h){const b=l.startContainer;let y=null;if(b.nodeType===3&&l.startOffset>=b.textContent.length&&u.check.isBreak(b.nextSibling)){const C=b.nextSibling;((v=C.nextSibling)==null?void 0:v.nodeType)===3&&u.check.isZeroWidth(C.nextSibling.textContent)&&(y=C)}else b.nodeType===3&&u.check.isZeroWidth(b)&&l.startOffset===0&&u.check.isBreak(b.previousSibling)&&(y=b.previousSibling);if(y)return i.push(G.preventStop()),i.push(G.deleteSoftBreakMerge(y)),i.push(G.historyPush(!0)),!1}const m=d==null?void 0:d.nextElementSibling;return!h&&d&&o.isNormalLine(d)&&!u.check.isListCell(d)&&u.check.isEmptyLine(d)&&(o.isNormalLine(m)||o.isBrLine(m))?(i.push(G.preventStop()),i.push(G.deleteEmptyLineMergeNext(d,m)),i.push(G.historyPush(!0)),!1):!0}function vL(i,e){let t=e.nextElementSibling;if(t){if(!i.isBlock(t))return null}else{const s=e.parentElement;if(!i.isBlock(s)||i.isClosureBlock(s)||(t=s.nextElementSibling,!t))return null}let o=t;for(;o&&i.isBlock(o)&&!i.isClosureBlock(o);)o=o.firstElementChild;return!i.isNormalLine(o)||u.check.isListCell(o)||i.isBrLine(o)||i.isClosureBrLine(o)?null:o}function yL(i,e){const t=Array.from(i.childNodes),o=[[]];for(const p of t)u.check.isBreak(p)?o.push([]):o[o.length-1].push(p);t.length&&u.check.isBreak(t[t.length-1])&&o.pop();const s=p=>!p||p.every(f=>u.check.isZeroWidth(f.textContent)),r=e.anchorNode;let l=0;if(r===i)for(let p=0;p<e.anchorOffset&&p<t.length;p++)u.check.isBreak(t[p])&&l++;else for(const p of t){if(p===r||p.nodeType===1&&p.contains(r))break;u.check.isBreak(p)&&l++}const c=Math.max(o.length,1),d=Math.min(l,c-1);return{shouldExit:d===c-1&&s(o[d])&&d>=1&&s(o[d-1])}}function Dv(i,e,t){const{format:o,char:s,selection:r}=e,{frameOptions:l,range:c,formatEl:d,selectionNode:h,shift:p,e:f}=t,m=!c.collapsed||c.startContainer!==c.endContainer;i.push(G.componentDeselect());const g=o.getBrLine(h,null),v=o.getBlock(d,null);if(l.get("charCounter_type")==="byte-html"){let b="";if(!p&&g||p?b="<br>":b="<"+d.nodeName+"><br></"+d.nodeName+">",!s.check(b))return i.push(G.prevent()),!1}if(p)return e.enterPrevent(f),i.push(G.enterShiftBr(c)),i.push(G.caretScrollTo(c)),!0;if(!p){let b=o.isEdgeLine(c.endContainer,c.endOffset,"end"),y=o.isEdgeLine(c.startContainer,c.startOffset,"front"),C=!1;if(t.options.get("_rtl")&&d&&c.collapsed&&y!==b){const k=t.fc.get("_wd");y&&yc(c,d,"front",k)?(y=!1,b=!0,C=!0):b&&yc(c,d,"end",k)&&(b=!1,y=!0,C=!0)}if(b&&(/^H[1-6]$/i.test(d.nodeName)||/^HR$/i.test(d.nodeName)))return e.enterPrevent(f),i.push(G.enterLineAddDefault(d)),i.push(G.caretScrollTo(c)),!0;if(v&&d&&!u.check.isTableCell(v)&&!/^FIGCAPTION$/i.test(v.nodeName)){const k=r.getRange();if(u.check.isEdgePoint(k.endContainer,k.endOffset)&&u.check.isList(h.nextSibling))return e.enterPrevent(f),i.push(G.enterListAddItem(d,h)),i.push(G.caretScrollTo(c)),!0;if((k.commonAncestorContainer.nodeType!==3||!k.commonAncestorContainer.nextElementSibling)&&u.check.isZeroWidth(d.innerText.trim())&&!u.check.isListCell(d.nextElementSibling))return e.enterPrevent(f),i.push(G.enterFormatExitEmpty(d,v)),!0}if(g||v===d&&o.isClosureBlock(v)&&o.isLine(d)){if(e.enterPrevent(f),g&&!o.isClosureBrLine(g))return yL(g,r.get()).shouldExit?i.push(G.enterBrLineExit(g)):i.push(G.enterBrLineInsert(c)),i.push(G.caretScrollTo(c)),!0;const k=r.get();return h===g?i.push(G.enterFormatInsertBrHtml(g,c,k,k.focusOffset)):i.push(G.enterFormatInsertBrNode(k)),i.push(G.caretScrollTo(c)),!0}if(c.collapsed&&(y||b))return e.enterPrevent(f),i.push(G.enterFormatBreakAtEdge(d,h,y,b,C)),i.push(G.caretScrollTo(c)),!0;if(d){if(i.push(G.prevent()),m){if(t.options.get("_rtl")&&y&&!b){const k=t.fc.get("_wd"),_=k.createRange();_.setStart(c.startContainer,c.startOffset),_.collapse(!0),yc(_,d,"front",k)&&(y=!1,b=!0,C=!0)}i.push(G.enterFormatBreakWithSelection(d,c,y,b))}else i.push(G.enterFormatBreakAtCursor(d,c));return i.push(G.caretScrollTo(c)),!0}}return m?(i.push(G.caretScrollTo(c)),!0):(v&&u.query.getParentElement(v,"FIGCAPTION")&&u.query.getParentElement(v,u.check.isList)&&(e.enterPrevent(f),i.push(G.enterFigcaptionExitInList(d)),i.push(G.caretScrollTo(c))),!0)}function wL(i,e,t){const{options:o,selectionNode:s,range:r,formatEl:l,ctrl:c,alt:d,shift:h}=t;return o.get("tabDisable")||(i.push(G.prevent()),c||d||u.check.isWysiwygFrame(s))||(i.push(G.tabFormatIndent(r,l,h)),i.push(G.historyPush(!1))),!0}function CL(i,e,t){var f;const{component:o}=e,{formatEl:s,range:r,selectionNode:l,keyCode:c}=t,d=t.options.get("_rtl"),h=c==="ArrowLeft"?d?"forward":"back":c==="ArrowRight"?d?"back":"forward":null;let p=null;switch(c){case"ArrowUp":o.is(s.previousElementSibling)&&(p=o.get(s.previousElementSibling));break;case"ArrowLeft":case"ArrowRight":if(h==="forward"){if(u.check.isEdgePoint(l,r.endOffset,"end")){const m=l.nextElementSibling||u.query.getNextDeepestNode(l);m?o.is(m)&&(p=o.get(m)):o.is(s.nextElementSibling)&&(p=o.get(s.nextElementSibling))}}else if(h==="back"&&u.check.isEdgePoint(l,r.startOffset,"front")){const m=l.previousElementSibling||u.query.getPreviousDeepestNode(l);m?o.is(m)&&(p=o.get(m)):o.is(s.previousElementSibling)&&(p=o.get(s.previousElementSibling))}break;case"ArrowDown":o.is(s.nextElementSibling)&&(p=o.get(s.nextElementSibling));break}p&&!((f=p.options)!=null&&f.isInputComponent)&&(i.push(G.prevent()),i.push(G.selectComponentFallback(p)))}const{isOSX_IOS:kL}=ge,_L=!0;function cp(i,e){return _L&&i.get("_canUseBeforeInput")&&!(e!=null&&e.repeat)}async function xL(i,e){const t=[];switch(e.keyCode){case"Backspace":{if(mL(t,i,e)===!1)return t;break}case"Delete":{if(bL(t,i,e)===!1)return t;break}case"Tab":{if(wL(t,i,e)===!1)return t;break}case"Enter":{if(!cp(e.store,e.e)&&Dv(t,i,e)===!1)return t;break}}const{fc:o,keyCode:s,shift:r,alt:l,ctrl:c,range:d}=e;if(r&&(kL?l:c)&&Me.isSpace(s))return t.push(G.preventStop()),t.push(G.keydownInputInsertNbsp()),t;const h=!d.collapsed||d.startContainer!==d.endContainer;return!c&&!l&&!h&&!Me.isNonTextKey(s)&&u.check.isBreak(d.commonAncestorContainer)?(t.push(G.keydownInputInsertZWS()),t):o.has("documentType_use_header")&&h&&!c&&!l&&!r&&!Me.isDirectionKey(s)?(t.push(G.documentTypeRefreshHeader()),t):(CL(t,i,e),t)}function Vv(i,{_styleNodes:e}){const{frameContext:t,ui:o,focusManager:s,selection:r,format:l,listFormat:c,component:d,html:h,nodeTransform:p,history:f,char:m,menu:g,store:v}=i.$;return{focusManager:{nativeFocus:()=>s.nativeFocus(),blur:()=>s.blur()},selection:{getRange:()=>r.getRange(),getNode:()=>r.getNode(),setRange:(b,y,C,k)=>r.setRange(b,y,C,k),get:()=>r.get()},format:{isLine:b=>l.isLine(b),getLine:(b,y)=>l.getLine(b,y),getLines:b=>l.getLines(b),getBrLine:(b,y)=>l.getBrLine(b,y),getBlock:(b,y)=>l.getBlock(b,y),isNormalLine:b=>l.isNormalLine(b),isBrLine:b=>l.isBrLine(b),isClosureBrLine:b=>l.isClosureBrLine(b),isBlock:b=>l.isBlock(b),isClosureBlock:b=>l.isClosureBlock(b),isEdgeLine:(b,y,C)=>l.isEdgeLine(b,y,C),removeBlock:(b,y)=>l.removeBlock(b,y),addLine:(b,y)=>l.addLine(b,y),addLineAfter:b=>l.addLineAfter(b)},listFormat:{applyNested:(b,y)=>c.applyNested(b,y)},component:{deselect:()=>d.deselect(),is:b=>d.is(b),get:b=>d.get(b),select:(b,y)=>d.select(b,y)},html:{remove:()=>h.remove(),insert:(b,y)=>h.insert(b,y),insertNode:(b,y)=>h.insertNode(b,y)},history:{push:b=>f.push(!!b)},nodeTransform:{removeAllParents:(b,y,C)=>p.removeAllParents(b,y,C),split:(b,y,C)=>p.split(b,y,C)},char:{check:b=>m.check(b)},menu:{dropdownOff:()=>g.dropdownOff()},setDefaultLine:b=>i._setDefaultLine(b),hideToolbar:()=>i._hideToolbar(),hideToolbar_sub:()=>i._hideToolbar_sub(),styleNodeCache:()=>e.value=i.__cacheStyleNodes,formatAttrsTempCache:b=>i._formatAttrsTemp=b,setOnShortcutKey:b=>i._onShortcutKey=b,caretScrollTo(b){o._iframeAutoHeight(t),r.scrollTo(r.getRange()||b,{behavior:"auto",block:"nearest",inline:"nearest"})},enterPrevent(b){b.preventDefault(),!(!yb||cp(v))&&(i.__focusTemp.focus({preventScroll:!0}),t.get("wysiwyg").focus({preventScroll:!0}))}}}const EL={value:[]};async function TL(i,e){if(i.get("isReadOnly")||i.get("isDisabled"))return e.preventDefault(),e.stopPropagation(),!1;if(cp(this.$.store)&&(e.inputType==="insertParagraph"||e.inputType==="insertLineBreak")){await ML.call(this,i,e);return}const t=(e.data===null?"":e.data===void 0?" ":e.data)||"";if(Me.isComposing(e))this._handledInBefore=!1;else{if(!this.$.char.test(t,!1))return e.preventDefault(),e.stopPropagation(),!1;this._handledInBefore=!0}await this.$.eventManager.triggerEvent("onBeforeInput",{frameContext:i,event:e,data:t})!==!1&&await this._callPluginEventAsync("onBeforeInput",{frameContext:i,event:e,data:t})}async function ML(i,e){if(e.isComposing||this.isComposing||this.$.ui.selectMenuOn)return;let t=this.$.selection.getNode();if(u.check.isInputElement(t)||this.$.menu.currentDropdownName)return;u.check.isWysiwygFrame(t)&&(this._setDefaultLine(this.$.options.get("defaultLine")),t=this.$.selection.getNode());const o=this._enterKeyShift||e.inputType==="insertLineBreak";if(this._enterKeyShift=!1,!o){const h=this._normalizeEditRange();h&&(t=h)}const s=this.$.selection.getRange(),r=this.$.format.getLine(t,null)||t,l={e,fc:i,store:this.$.store,options:this.$.options,frameOptions:this.$.frameOptions,range:s,selectionNode:t,formatEl:r,keyCode:"Enter",ctrl:!1,alt:!1,shift:o},c=Vv(this,{_styleNodes:EL}),d=[];Dv(d,c,l),d.some(h=>h.t==="event.prevent"||h.t==="event.prevent.stop")&&e.preventDefault(),await Iv(d,{ports:c,ctx:l})}async function SL(i,e){if(i.get("isReadOnly")||i.get("isDisabled"))return e.preventDefault(),e.stopPropagation(),!1;const t=this.$.selection.getRange(),o=this.$.selection.getNode(),s=this.$.format.getLine(o,null);if(!this.$.format.isNormalLine(s)&&!this.$.format.isBrLine(s)&&t.collapsed&&!this.$.component.is(o)&&!u.check.isList(o)){const l=this.$.format.getBlock(o,null);this._setDefaultLine(this.$.format.isBlock(l)?"DIV":this.$.options.get("defaultLine"))}this.$.selection.init();const r=(e.data===null?"":e.data===void 0?" ":e.data)||"";if(!this._handledInBefore&&!this.$.char.test(r,!0))return e.preventDefault(),e.stopPropagation(),!1;this._handledInBefore=!1,await this.$.eventManager.triggerEvent("onInput",{frameContext:i,event:e,data:r})!==!1&&(await this._callPluginEventAsync("onInput",{frameContext:i,event:e,data:r}),this.$.history.push(!0))}const{_w:Rv}=ge,AL=new RegExp(De.zeroWidthSpace+"+",""),Wr={ctrl:!1,alt:!1},dp=Object.preventExtensions({value:[]});async function BL(i,e){var g,v;if(this.isComposing=Me.isComposing(e))return!0;if(this.$.ui.selectMenuOn||!e.isTrusted)return;let t=this.$.selection.getNode();if(u.check.isInputElement(t)||this.$.menu.currentDropdownName)return;const o=e.code,s=Me.isShift(e),r=Wr.ctrl=Me.isCtrl(e),l=Wr.alt=Me.isAlt(e);if(Me.isEnter(o)&&(this._enterKeyShift=s),!r&&i.get("isReadOnly")&&!Me.isDirectionKey(o))return e.preventDefault(),!1;if(this.$.menu.dropdownOff(),this.$.store.mode.isBalloon?this.$.store.mode.isBalloonAlways||this._hideToolbar():this.$.store.mode.isSubBalloon&&(this.$.store.mode.isSubBalloonAlways||this._hideToolbar_sub()),Me.isEnter(o)&&!cp(this.$.store,e)||Me.isRemoveKey(o)){const b=this._normalizeEditRange();b&&(t=b)}const d=this.$.selection.getRange(),h=this.$.format.getLine(t,null)||t;if(r&&!Me.isNonTextKey(o)&&this.$.shortcuts.command(e,r,s,o,"",!1,null,null))return this._onShortcutKey=!0,e.preventDefault(),e.stopPropagation(),!1;if(!r&&!Me.isNonTextKey(o)&&this.$.format.isLine(h)&&d.collapsed&&u.check.isEdgePoint(d.startContainer,0,"front")){const b=(v=(g=d.startContainer).substringData)==null?void 0:v.call(g,0,d.startOffset);if(b&&this.$.shortcuts.command(e,!1,s,o,b,!0,h,d))return this._onShortcutKey=!0,e.preventDefault(),e.stopPropagation(),!1}else this._onShortcutKey&&(this._onShortcutKey=!1);const p={e,fc:i,store:this.$.store,options:this.$.options,frameOptions:this.$.frameOptions,range:d,selectionNode:t,formatEl:h,keyCode:o,ctrl:r,alt:l,shift:s},f=Vv(this,{_styleNodes:dp}),m=await xL(f,p);await this.$.eventManager.triggerEvent("onKeyDown",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onKeyDown",{frameContext:i,event:e,range:d,line:h})!==!1&&await Iv(m,{ports:f,ctx:p})}async function NL(i,e){var f;if(this._onShortcutKey||this.$.menu.currentDropdownName)return;const t=e.code,o=Me.isCtrl(e),s=Me.isAlt(e);if(o&&(Wr.ctrl=!1),s&&(Wr.alt=!1),i.get("isReadOnly"))return;const r=this.$.selection.getRange();let l=this.$.selection.getNode();if((this.$.store.mode.isBalloon||this.$.store.mode.isSubBalloon)&&((this.$.store.mode.isBalloonAlways||this.$.store.mode.isSubBalloonAlways)&&!Me.isEsc(t)||!r.collapsed))if(this.$.store.mode.isBalloonAlways||this.$.store.mode.isSubBalloonAlways)Me.isEsc(t)||this._showToolbarBalloonDelay();else{this.$.store.mode.isSubBalloon?this.$.subToolbar._showBalloon():this.$.toolbar._showBalloon();return}if(Me.isBackspace(t)&&u.check.isWysiwygFrame(l)&&l.textContent===""&&l.children.length===0){e.preventDefault(),e.stopPropagation(),l.innerHTML="";const m=this.$.store.get("currentNodes")[0],g=u.utils.createElement(this.$.format.isLine(m)&&!u.check.isListCell(m)?m:this.$.options.get("defaultLine"),null,"<br>");l.appendChild(g),this.$.selection.setRange(g,0,g,0),this.applyTagEffect(),this.$.history.push(!1),i.has("documentType_use_header")&&Me.isDocumentTypeObserverKey(t)&&i.get("documentType").reHeader();return}const c=this.$.format.getLine(l,null),d=this.$.format.getBlock(l,null),h=this._formatAttrsTemp;if(c&&h){for(let m=0,g=h.length;m<g;m++){if(Me.isEnter(t)&&/^id$/i.test(h[m].name)){c.removeAttribute("id");continue}c.setAttribute(h[m].name,h[m].value)}this._formatAttrsTemp=null}if(!this.$.format.isNormalLine(c)&&!this.$.format.isBrLine(c)&&r.collapsed&&!this.$.component.is(l)&&!u.check.isList(l)&&this._setDefaultLine(this.$.format.isBlock(d)?"DIV":this.$.options.get("defaultLine"))!==null&&(l=this.$.selection.getNode()),!Wr.ctrl&&!Wr.alt&&!Me.isNonTextKey(t)&&l.nodeType===3&&De.zeroWidthRegExp.test(l.textContent)&&!(e.isComposing!==void 0?e.isComposing:this.isComposing)){let m=r.startOffset,g=r.endOffset;const v=(l.textContent.substring(0,g).match(AL)||"").length;m=r.startOffset-v,g=r.endOffset-v,l.textContent=l.textContent.replace(De.zeroWidthRegExp,""),this.$.selection.setRange(l,m<0?0:m,l,g<0?0:g)}if(Me.isRemoveKey(t)&&u.check.isZeroWidth(c==null?void 0:c.textContent)&&!c.previousElementSibling&&!u.check.isListCell(c)){const m=this.$.options.get("retainStyleMode");m!=="none"&&((f=dp.value)==null?void 0:f.length)>0?m==="repeat"?this.__retainTimer?(this.__retainTimer=Rv.clearTimeout(this.__retainTimer),this._clearRetainStyleNodes(c)):(this.__retainTimer=Rv.setTimeout(()=>{this.__retainTimer=null},0),this._retainStyleNodes(c,dp.value)):(this.__retainTimer=null,this._retainStyleNodes(c,dp.value)):this._clearRetainStyleNodes(c)}if(i.has("documentType_use_header"))if(Me.isDocumentTypeObserverKey(t)){i.get("documentType").reHeader();const m=u.query.getParentElement(this.$.selection.selectionNode,this.$.format.isLine.bind(this.$.format));i.get("documentType").on(m)}else{const m=u.query.getParentElement(l,g=>g.nodeType===1);i.get("documentType").onChangeText(m)}await this.$.eventManager.triggerEvent("onKeyUp",{frameContext:i,event:e})!==!1&&await this._callPluginEventAsync("onKeyUp",{frameContext:i,event:e,range:r,line:c})!==!1&&Me.isHistoryRelevantKey(t)&&this.$.history.push(!0)}const{_w:LL}=ge;function IL(i,e){const t=e.clipboardData;return t?this._dataTransferAction("paste",e,t,i):!0}async function $L(i,e){const t=e.clipboardData;if(await this.$.eventManager.triggerEvent("onCopy",{frameContext:i,event:e,clipboardData:t})===!1)return e.preventDefault(),e.stopPropagation(),!1;const o=i.get("_ww").getSelection();this.__secopy=o.toString()}async function OL(i,e){const t=e.clipboardData;if(await this.$.eventManager.triggerEvent("onCut",{frameContext:i,event:e,clipboardData:t})===!1)return e.preventDefault(),e.stopPropagation(),!1;const o=i.get("_ww").getSelection();this.__secopy=o.toString(),LL.setTimeout(()=>{this.$.history.push(!1)},0)}const{_w:hp}=ge;function DL(i,e,t,o,s){var m,g;if(s.dataTransfer&&Array.from(s.dataTransfer.types||[]).includes("application/x-suneditor-block-drag"))return;const{sc:r,so:l,ec:c,eo:d}=this.$.selection.getDragEventLocationRange(s);if(!r)return;s.preventDefault();const h=i.get("_wd").createRange();h.setStart(r,l),h.setEnd(c,d);const p={y:0,x:0};if(t){const v=this.$.offset.getGlobal(t),b=o?this.$.context.get("toolbar_main").offsetHeight:0;p.y=v.top+b-hp.scrollY,p.x=v.left-hp.scrollX}const f=h.getBoundingClientRect();if(f.height>0){const v=i.get("wysiwygFrame");let b=0,y=0;/^iframe$/i.test(v.nodeName)&&(b=v.offsetLeft,y=v.offsetTop),e.style.left=`${f.right+hp.scrollX+p.x+b}px`,e.style.top=`${f.top+hp.scrollY+p.y-5+y}px`,e.style.height=`${f.height+10}px`,e.style.display="block";try{(m=e.showPopover)==null||m.call(e)}catch{}}else{try{(g=e.hidePopover)==null||g.call(e)}catch{}e.style.display="none"}}function VL(i){var e;try{(e=i.hidePopover)==null||e.call(i)}catch{}i.style.display="none"}function RL(i,e,t){var o;try{if(i.get("isReadOnly"))return t.preventDefault(),t.stopPropagation(),!1;const s=t.dataTransfer;if(!s)return!0;if(Array.from(s.types||[]).includes("application/x-suneditor-block-drag"))return;const{sc:r,so:l,ec:c,eo:d}=this.$.selection.getDragEventLocationRange(t);if(!r)return;if(u.query.getParentElement(r,".se-disable-pointer")){t.preventDefault();return}if(ye.get("__dragContainer")){if(t.preventDefault(),ye.get("__dragContainer").contains(t.target)){this.$.component.deselect();return}const h=ye.get("__dragContainer");this.$.component.deselect(),this.$.selection.setRange(r,l,c,d),this.$.html.insertNode(h,{afterNode:null,skipCharCount:!0}),i.has("documentType_use_page")&&(i.get("documentTypePageMirror").innerHTML=i.get("wysiwyg").innerHTML,i.get("documentType").rePage(!0));return}return this.$.html.remove(),this.$.selection.setRange(r,l,c,d),this._dataTransferAction("drop",t,s,i)}finally{try{(o=e.hidePopover)==null||o.call(e)}catch{}e.style.display="none"}}class zL{constructor({$:e}){w(this,Re,void 0);x(this,Re,e)}execute(e){if(!n(this,Re).options.get("__lineFormatFilter"))return null;if(n(this,Re).pluginManager.fileInfo.pluginRegExp.test(n(this,Re).ui.currentControllerName))return;const t=n(this,Re).selection.getRange(),o=t.commonAncestorContainer,s=t.startContainer,r=t.endOffset,l=n(this,Re).format.getBlock(o,null);let c,d,h;if(l){h=u.utils.createElement(e||n(this,Re).options.get("defaultLine")),h.innerHTML=l.innerHTML,h.childNodes.length===0&&(h.innerHTML=De.zeroWidthSpace),l.innerHTML=h.outerHTML,h=l.firstChild,c=h.childNodes[r]||u.query.getEdgeChildNodes(h,null).sc,c||(c=u.utils.createTextNode(De.zeroWidthSpace),h.insertBefore(c,h.firstChild)),d=c.textContent.length,n(this,Re).selection.setRange(c,d,c,d);return}if(o.nodeType===3&&n(this,Re).component.is(o.parentElement)){const p=n(this,Re).component.get(o.parentElement);if(!p)return;const f=p.container;if(o.parentElement===f){const m=o.nextElementSibling?f:f.nextElementSibling,g=u.utils.createElement(n(this,Re).options.get("defaultLine"),null,o);f.parentElement.insertBefore(g,m),n(this,Re).focusManager.focusEdge(g);return}return n(this,Re).component.select(p.target,p.pluginName),null}else if(o.nodeType===1&&o.getAttribute("data-se-embed")==="true"){let p=o.nextElementSibling;n(this,Re).format.isLine(p)||(p=n(this,Re).format.addLine(o,n(this,Re).options.get("defaultLine"))),n(this,Re).selection.setRange(p.firstChild,0,p.firstChild,0);return}if(!((n(this,Re).format.isBlock(s)||u.check.isWysiwygFrame(s))&&(n(this,Re).component.is(s.children[t.startOffset])||n(this,Re).component.is(s.children[t.startOffset-1])))){if(u.query.getParentElement(o,u.check.isExcludeFormat))return null;if(n(this,Re).format.isBlock(o)&&o.childNodes.length<=1){let p=null;o.childNodes.length===1&&u.check.isBreak(o.firstChild)?p=o.firstChild:(p=u.utils.createTextNode(De.zeroWidthSpace),o.appendChild(p)),n(this,Re).selection.setRange(p,1,p,1);return}try{if(o.nodeType===3&&(h=u.utils.createElement(e||n(this,Re).options.get("defaultLine")),o.parentNode.insertBefore(h,o),h.appendChild(o)),u.check.isBreak(h.nextSibling)&&u.utils.removeItem(h.nextSibling),u.check.isBreak(h.previousSibling)&&u.utils.removeItem(h.previousSibling),u.check.isBreak(c)){const p=u.utils.createTextNode(De.zeroWidthSpace);c.parentNode.insertBefore(p,c),c=p}}catch{n(this,Re).frameContext.get("_wd").execCommand("formatBlock",!1,`<${e||n(this,Re).options.get("defaultLine")}>`),n(this,Re).store.set("_lastSelectionNode",null),n(this,Re).selection.init();return}if(h&&(u.check.isBreak(h.nextSibling)&&u.utils.removeItem(h.nextSibling),u.check.isBreak(h.previousSibling)&&u.utils.removeItem(h.previousSibling),u.check.isBreak(c))){const p=u.utils.createTextNode(De.zeroWidthSpace);c.parentNode.insertBefore(p,c),c=p}n(this,Re).store.set("_lastSelectionNode",null),s?n(this,Re).selection.setRange(s,1,s,1):n(this,Re).focusManager.nativeFocus()}}}Re=new WeakMap;class PL{constructor(e){w(this,jh);w(this,G1);w(this,Ph,void 0);w(this,ze,void 0);w(this,Hh,void 0);x(this,Ph,e),x(this,ze,e.$),x(this,Hh,new RegExp(`^(${Object.keys(n(this,ze).options.get("_defaultStyleTagMap")).join("|")})$`,"i"))}update(e){if(e||(e=n(this,ze).selection.getNode()),e===n(this,ze).store.get("_lastSelectionNode"))return;n(this,ze).store.set("_lastSelectionNode",e);const t=n(this,ze).options.get("_rtl")?"marginRight":"marginLeft",o=n(this,ze).plugins,s=n(this,ze).commandDispatcher.targets,r=n(this,Hh),l=n(this,ze).options.get("_styleCommandMap"),c=[],d=[],h=n(this,ze).options.get("_textStyleTags"),p=[],f=[],m=n(this,ze).commandDispatcher.activeCommands,g=m.length;let v="";if(n(this,ze).component.is(e)&&!n(this,ze).component.__selectionSelected){const C=n(this,ze).component.get(e);if(!C)return;n(this,ze).store.set("_lastSelectionNode",null),n(this,ze).component.select(C.target,C.pluginName);return}for(;e.firstChild;)e=e.firstChild;const b=n(this,ze).frameContext,y=!b.get("isReadOnly");for(let C=e;!u.check.isWysiwygFrame(C)&&C;C=C.parentElement)if(!(C.nodeType!==1||u.check.isBreak(C))){if(E(this,G1,I3).call(this,C)){n(this,ze).focusManager.blur();return}if(v=C.nodeName.toLowerCase(),d.push(v),h.includes(v)&&!n(this,ze).format.isLine(v)&&p.push(C),y)for(let k=0,_;k<g;k++)_=m[k],!c.includes(_)&&!f.includes(_)&&s.get(_)&&s.get(_).filter(S=>{var M;const T=(M=o[_])==null?void 0:M.active(C,S);return T===void 0&&f.push(_),T}).length>0&&c.push(_);if(n(this,ze).format.isLine(C)){if(!c.includes("outdent")&&s.has("outdent")&&(u.check.isListCell(C)||C.style[t]&&Q.get(C.style[t],0)>0)&&s.get("outdent").filter(k=>u.check.isImportantDisabled(k)?!1:(k.disabled=!1,!0)).length>0&&c.push("outdent"),!c.includes("indent")&&s.has("indent")){const k=u.check.isListCell(C)&&!C.previousElementSibling;s.get("indent").filter(_=>u.check.isImportantDisabled(_)?!1:(_.disabled=k,!0)).length>0&&c.push("indent")}continue}r.test(v)&&(v=l[v]||v,c.push(v),u.utils.addClass(s.get(v),"active"))}return E(this,jh,a2).call(this,c),n(this,Ph).__cacheStyleNodes=p.reverse(),n(this,ze).store.set("currentNodes",d.reverse()),n(this,ze).store.set("currentNodesMap",c),n(this,ze).frameOptions.get("statusbar_showPathLabel")&&b.get("navigation")&&(b.get("navigation").textContent=n(this,ze).options.get("_rtl")?n(this,ze).store.get("currentNodes").reverse().join(" < "):n(this,ze).store.get("currentNodes").join(" > ")),e}reset(){E(this,jh,a2).call(this,[])}}Ph=new WeakMap,ze=new WeakMap,Hh=new WeakMap,jh=new WeakSet,a2=function(e){const t=n(this,ze).commandDispatcher.activeCommands,o=n(this,ze).commandDispatcher.targets,s=n(this,ze).plugins;for(let r=0,l=t.length,c,d,h;r<l;r++)if(c=t[r],!(e.includes(c)||!(d=o.get(c)))){h=s[c];for(let p=0,f=d.length,m;p<f;p++)m=d[p],m&&(h?h.active(null,m):/^outdent$/i.test(c)?u.check.isImportantDisabled(m)||(m.disabled=!0):/^indent$/i.test(c)?u.check.isImportantDisabled(m)||(m.disabled=!1):u.utils.removeClass(m,"active"))}},G1=new WeakSet,I3=function(e){return u.check.isElement(e)&&e.getAttribute("data-se-non-focus")==="true"};const{_w:Ct,isMobile:Wg,isTouchDevice:Ug}=ge;class HL extends XN{constructor(t){super(t);w(this,Y1);w(this,K1);w(this,kr);w(this,X1);w(this,Q1);w(this,J1);w(this,em);w(this,tm);w(this,im);w(this,om);w(this,Fh);w(this,sm);w(this,nm);w(this,rm);w(this,am);w(this,lm);w(this,cm);w(this,dm);w(this,hm);w(this,Ce,void 0);w(this,ko,void 0);w(this,oi,void 0);w(this,Rt,void 0);w(this,se,void 0);w(this,nt,void 0);w(this,rt,void 0);w(this,zt,void 0);w(this,qt,null);w(this,Zs,null);w(this,Gs,null);w(this,Ys,null);x(this,Ce,this.$.store),x(this,ko,this.$.contextProvider),x(this,oi,this.$.context),x(this,Rt,this.$.options),x(this,se,this.$.eventManager),x(this,nt,this.$.toolbar),x(this,rt,this.$.ui),x(this,zt,this.$.menu),this.isComposing=!1,this._enterKeyShift=!1,this.scrollparents=[],this.defaultLineManager=new zL(this),this.selectionState=new PL(this),this._onShortcutKey=!1,this._handledInBefore=!1,this._wwFrameObserver=null,this._toolbarObserver=null,this._lineBreakComp=null,this._formatAttrsTemp=null,this._resizeClientY=0,this.__cacheStyleNodes=[],this.__onDownEv=null,this._inputFocus=!1,this.__inputPlugin=null,this.__inputBlurEvent=null,this.__inputKeyEvent=null,this.__retainTimer=null,this.__eventDoc=null,this.__secopy=null,this.__focusTemp=n(this,ko).carrierWrapper.querySelector(".__se__focus__temp__")}applyTagEffect(t){return this.selectionState.update(t)}_showToolbarBalloonDelay(){n(this,qt)&&Ct.clearTimeout(n(this,qt)),x(this,qt,Ct.setTimeout(()=>{Ct.clearTimeout(n(this,qt)),x(this,qt,null),n(this,Ce).mode.isSubBalloon?this.$.subToolbar._showBalloon():n(this,nt)._showBalloon()},250))}_toggleToolbarBalloon(){this.$.selection.init();const t=this.$.selection.getRange(),o=n(this,Rt).has("_subMode");!(o?n(this,Ce).mode.isSubBalloonAlways:n(this,Ce).mode.isBalloonAlways)&&t.collapsed?o?this._hideToolbar_sub():this._hideToolbar():o?this.$.subToolbar._showBalloon(t):n(this,nt)._showBalloon(t)}_hideToolbar(){!n(this,rt).isPreventToolbarHide&&!this.$.frameContext.get("isFullScreen")&&n(this,nt).hide()}_hideToolbar_sub(){this.$.subToolbar&&!n(this,rt).isPreventToolbarHide&&this.$.subToolbar.hide()}_setDefaultLine(t){return this.defaultLineManager.execute(t)}_normalizeEditRange(){var o;if(!this.$.format.isLine((o=this.$.selection.getRange())==null?void 0:o.startContainer))return null;this.$.selection.resetRangeToTextNode();const t=this.$.selection.getRange();if(t.startContainer===t.endContainer&&t.startOffset!==t.endOffset&&t.startContainer.nodeType===3&&u.check.isZeroWidth(t.startContainer)){const s=t.startContainer.nextSibling;s&&u.check.isBreak(s)?this.$.selection.setRange(s,0,s,0):this.$.selection.setRange(t.endContainer,t.endOffset,t.endContainer,t.endOffset)}return this.$.selection.getNode()}async _dataTransferAction(t,o,s,r){try{return n(this,rt).showLoading(),await E(this,K1,O3).call(this,t,o,s,r),o.preventDefault(),o.stopPropagation(),!1}catch(l){console.warn("[SUNEDITOR.paste.error]",l)}finally{n(this,rt).hideLoading()}}_addCommonEvents(){const t=eL.bind(this),o=iL.bind(this);n(this,se).addEvent(n(this,oi).get("menuTray"),"mousedown",t,!1),n(this,se).addEvent(n(this,oi).get("menuTray"),"click",tL.bind(this),!0),n(this,se).addEvent(n(this,oi).get("toolbar_main"),"mousedown",t,!1),n(this,se).addEvent(n(this,oi).get("toolbar_main"),"click",o,!1),n(this,Rt).has("_subMode")&&(n(this,se).addEvent(n(this,oi).get("toolbar_sub_main"),"mousedown",t,!1),n(this,se).addEvent(n(this,oi).get("toolbar_sub_main"),"click",o,!1)),n(this,nt)._setResponsive(),ge.isResizeObserverSupported&&(this._toolbarObserver=new ResizeObserver(()=>{Ct.setTimeout(()=>{n(this,nt).resetResponsiveToolbar()},0)}),this._wwFrameObserver=new ResizeObserver(s=>{Ct.setTimeout(()=>{s.forEach(r=>{n(this,rt)._emitResizeEvent(this.$.frameRoots.get(r.target.getAttribute("data-root-key")),-1,r)}),n(this,Ce).mode.isInline&&n(this,Ce).mode.isBottom&&n(this,nt)._resetSticky()},0)})),n(this,Rt).get("closeModalOutsideClick")&&n(this,se).addEvent(n(this,ko).carrierWrapper.querySelector(".se-modal .se-modal-inner"),"click",s=>{s.target===n(this,ko).carrierWrapper.querySelector(".se-modal .se-modal-inner")&&n(this,rt).offCurrentModal()},!1),n(this,se).addEvent(Ct,"resize",E(this,sm,F3).bind(this),!1),n(this,se).addEvent(Ct.visualViewport,"resize",E(this,nm,W3).bind(this),!1),n(this,se).addEvent(Ct,"scroll",E(this,rm,U3).bind(this),!1),Ug&&n(this,se).addEvent(Ct.visualViewport,"scroll",E(this,am,q3).bind(this),!1)}_addFrameEvents(t){const o=t.get("options").get("iframe"),s=o?t.get("_ww"):t.get("wysiwyg");t.set("eventWysiwyg",s);const r=t.get("code"),l=n(this,ko).carrierWrapper.querySelector(".se-drag-cursor"),c=rL.bind(this,t);n(this,se).addEvent(s,"mousemove",c,!1),n(this,se).addEvent(s,"mouseleave",aL.bind(this,t),!1),n(this,se).addEvent(s,"mousedown",oL.bind(this,t),!1),n(this,se).addEvent(s,"mouseup",sL.bind(this,t),!1),n(this,se).addEvent(s,"click",nL.bind(this,t),!1),n(this,se).addEvent(s,"beforeinput",TL.bind(this,t),!1),n(this,se).addEvent(s,"input",SL.bind(this,t),!1),n(this,se).addEvent(s,"keydown",BL.bind(this,t),!1),n(this,se).addEvent(s,"keyup",NL.bind(this,t),!1),n(this,se).addEvent(s,"paste",IL.bind(this,t),!1),n(this,se).addEvent(s,"copy",$L.bind(this,t),!1),n(this,se).addEvent(s,"cut",OL.bind(this,t),!1),n(this,se).addEvent(s,"dragover",DL.bind(this,t,l,o?this.$.frameContext.get("topArea"):null,!n(this,Rt).get("toolbar_container")&&!n(this,Ce).mode.isBalloon&&!n(this,Ce).mode.isInline),!1),n(this,se).addEvent(s,"dragend",VL.bind(this,l),!1),n(this,se).addEvent(s,"drop",RL.bind(this,t,l),!1),n(this,se).addEvent(s,"scroll",E(this,Q1,V3).bind(this,t,s),{passive:!0,capture:!1}),n(this,se).addEvent(s,"focus",E(this,J1,R3).bind(this,t),!1),n(this,se).addEvent(s,"blur",E(this,em,z3).bind(this,t),!1),n(this,se).addEvent(r,"mousedown",E(this,dm,Y3).bind(this,t),!1);const d=t.get("wrapper").querySelector(".se-drag-handle");if(n(this,se).addEvent(d,"wheel",m=>{m.preventDefault(),this.$.component.deselect()},!1),n(this,se).addEvent(t.get("lineBreaker_t"),"pointerdown",E(this,Fh,l2).bind(this,"t"),!1),n(this,se).addEvent(t.get("lineBreaker_b"),"pointerdown",E(this,Fh,l2).bind(this,"b"),!1),Ug&&n(this,se).addEvent(s,"touchstart",c,{passive:!0,capture:!1}),!n(this,Rt).get("hasCodeMirror")){const m=t.get("codeNumbers"),g=this.$.viewer._codeViewAutoHeight.bind(this.$.viewer,t.get("code"),m,this.$.frameOptions.get("height")==="auto");n(this,se).addEvent(r,"keydown",g,!1),n(this,se).addEvent(r,"keyup",g,!1),n(this,se).addEvent(r,"paste",g,!1),n(this,Rt).get("tabDisable")||n(this,se).addEvent(r,"keydown",zv,!1),m&&n(this,se).addEvent(r,"scroll",this.$.viewer._scrollLineNumbers.bind(r,m),!1)}const h=t.get("markdown");if(h){n(this,se).addEvent(h,"mousedown",E(this,hm,K3).bind(this,t),!1);const m=t.get("markdownNumbers"),g=this.$.viewer._markdownViewAutoHeight.bind(this.$.viewer,h,m,this.$.frameOptions.get("height")==="auto");n(this,se).addEvent(h,"keydown",g,!1),n(this,se).addEvent(h,"keyup",g,!1),n(this,se).addEvent(h,"paste",g,!1),n(this,Rt).get("tabDisable")||n(this,se).addEvent(h,"keydown",zv,!1),m&&n(this,se).addEvent(h,"scroll",this.$.viewer._scrollMarkdownLineNumbers.bind(h,m),!1)}t.has("statusbar")&&this.__addStatusbarEvent(t,t.get("options"));const p=E(this,cm,G3).bind(this),f=u.query.getScrollParents(t.get("originElement"));for(const m of f)this.scrollparents.push(m),n(this,se).addEvent(m,"scroll",p,!1);n(this,se).addEvent(this.__focusTemp,"focus",m=>m.preventDefault(),!1),this.__eventDoc!==t.get("_wd")&&(this.__eventDoc=t.get("_wd"),n(this,se).addEvent(this.__eventDoc,"selectionchange",E(this,lm,Z3).bind(this,this.__eventDoc),!1))}__addStatusbarEvent(t,o){/\d+/.test(o.get("height"))&&o.get("statusbar_resizeEnable")?o.set("__statusbarEvent",n(this,se).addEvent(t.get("statusbar"),"mousedown",E(this,tm,P3).bind(this),!1)):u.utils.addClass(t.get("statusbar"),"se-resizing-none")}_removeAllEvents(){n(this,se)._init(),this._wwFrameObserver&&(this._wwFrameObserver.disconnect(),this._wwFrameObserver=null),this._toolbarObserver&&(this._toolbarObserver.disconnect(),this._toolbarObserver=null),n(this,qt)&&(Ct.clearTimeout(n(this,qt)),x(this,qt,null)),this.__retainTimer&&(Ct.clearTimeout(this.__retainTimer),this.__retainTimer=null),n(this,Gs)&&x(this,Gs,n(this,se).removeGlobalEvent(n(this,Gs))),n(this,Ys)&&x(this,Ys,n(this,se).removeGlobalEvent(n(this,Ys))),n(this,Zs)&&x(this,Zs,n(this,se).removeGlobalEvent(n(this,Zs))),this._formatAttrsTemp=null,this.__cacheStyleNodes=null,this.__inputPlugin=null,this.__inputBlurEvent=null,this.__inputKeyEvent=null,this.__focusTemp=null,this.__eventDoc=null,this.__secopy=null,this._lineBreakComp=null,this.scrollparents=null}_setSelectionSync(){n(this,se).removeGlobalEvent(n(this,Gs)),x(this,Gs,n(this,se).addGlobalEvent("mouseup",()=>{this.$.selection.init(),n(this,se).removeGlobalEvent(n(this,Gs))}))}_retainStyleNodes(t,o){let r=o[0].cloneNode(!1);for(let h=1,p=o.length,f;h<p;h++)f=o[h].cloneNode(!1),r.appendChild(f),r=f;const{parent:l,inner:c}=this.$.nodeTransform.createNestedNode(o,null),d=u.utils.createTextNode(De.zeroWidthSpace);c.appendChild(d),t.innerHTML="",t.appendChild(l),this.$.selection.setRange(d,1,d,1)}_clearRetainStyleNodes(t){t.innerHTML="<br>",this.$.selection.setRange(t,0,t,0)}_callPluginEvent(t,o){return this.$.pluginManager.emitEvent(t,o)}async _callPluginEventAsync(t,o){return await this.$.pluginManager.emitEventAsync(t,o)}__removeInput(){n(this,Ce).set("_preventBlur",!1),this._inputFocus=!1,this.__inputBlurEvent=n(this,se).removeEvent(this.__inputBlurEvent),this.__inputKeyEvent=n(this,se).removeEvent(this.__inputKeyEvent),this.__inputPlugin=null}__postFocusEvent(t,o){(n(this,Ce).mode.isInline||n(this,Ce).mode.isBalloonAlways)&&n(this,nt).show(),n(this,Ce).mode.isSubBalloonAlways&&this.$.subToolbar.show(),n(this,nt)._resetSticky(),n(this,rt)._updatePlaceholder(t),n(this,se).triggerEvent("onFocus",{frameContext:t,event:o}),this._callPluginEvent("onFocus",{frameContext:t,event:o})}__postBlurEvent(t,o){n(this,Ce).mode.isInline?Ct.setTimeout(()=>{n(this,Ce).get("hasFocus")||this._hideToolbar()},0):n(this,Ce).mode.isBalloon&&this._hideToolbar(),n(this,Ce).mode.isSubBalloon&&this._hideToolbar_sub(),n(this,se).triggerEvent("onBlur",{frameContext:t,event:o}),this._callPluginEvent("onBlur",{frameContext:t,event:o})}__setViewportSize(){n(this,Ce).set("currentViewportHeight",Q.get(Ct.visualViewport.height,0))}}Ce=new WeakMap,ko=new WeakMap,oi=new WeakMap,Rt=new WeakMap,se=new WeakMap,nt=new WeakMap,rt=new WeakMap,zt=new WeakMap,qt=new WeakMap,Zs=new WeakMap,Gs=new WeakMap,Ys=new WeakMap,Y1=new WeakSet,$3=function(){n(this,qt)&&Ct.clearTimeout(n(this,qt)),x(this,qt,Ct.setTimeout(()=>{Ct.clearTimeout(n(this,qt)),x(this,qt,null),this._toggleToolbarBalloon()},250))},K1=new WeakSet,O3=async function(t,o,s,r){o.preventDefault(),o.stopPropagation();let l=s.getData("text/plain"),c=s.getData("text/html");const d=!c,h=this.__secopy===l,p=/class=["']*Mso(Normal|List)/i.test(c)||/content=["']*Word.Document/i.test(c)||/content=["']*OneNote.File/i.test(c)||/content=["']*Excel.Sheet/i.test(c),f=h?"SE":p?"MS":"";if(d?c=Te.htmlToEntity(l).replace(/\n/g,"<br>"):(c=c.replace(/^<html>\r?\n?<body>\r?\n?\x3C!--StartFragment-->|\x3C!--EndFragment-->\r?\n?<\/body>\r?\n?<\/html>$/g,""),p&&(c=c.replace(/\n/g," "),l=l.replace(/\n/g," "),c=SA.cleanHTML(c))),!h&&n(this,Rt).get("autoLinkify")){const b=new DOMParser().parseFromString(c,"text/html");u.query.getListChildNodes(b.body,Te.textToAnchor,null),c=b.body.innerHTML}d||(c=this.$.html.clean(c,{forceFormat:!1,whitelist:null,blacklist:null}));const m=this.$.char.test(this.$.frameOptions.get("charCounter_type")==="byte-html"?c:l,!1);if(t==="paste"){const v=await n(this,se).triggerEvent("onPaste",{frameContext:r,event:o,data:c,maxCharCount:m,from:f});if(v===!1)return!1;if(typeof v=="string"){if(!v)return!1;c=v}}if(t==="drop"){const v=await n(this,se).triggerEvent("onDrop",{frameContext:r,event:o,data:c,maxCharCount:m,from:f});if(v===!1)return!1;if(typeof v=="string"){if(!v)return!1;c=v}}const g=s.files;if(g.length>0&&!p){for(let v=0,b=g.length;v<b;v++)await this._callPluginEventAsync("onFilePasteAndDrop",{frameContext:r,event:o,file:g[v]});return!1}if(!m)return!1;if(c){const v=new DOMParser().parseFromString(c,"text/html");return await this._callPluginEventAsync("onPaste",{frameContext:r,event:o,data:c,doc:v})!==!1&&this.$.html.insert(c,{selectInserted:!1,skipCharCount:!0,skipCleaning:!0}),r.has("documentType_use_header")&&r.get("documentType").reHeader(),!1}},kr=new WeakSet,pu=function(){n(this,zt).currentDropdownActiveButton&&n(this,zt).currentDropdown&&n(this,zt).__resetMenuPosition(n(this,zt).currentDropdownActiveButton,n(this,zt).currentDropdown),n(this,rt)._repositionControllers()},X1=new WeakSet,D3=function(){ge.isResizeObserverSupported||(n(this,nt).resetResponsiveToolbar(),n(this,Rt).get("_subMode")&&this.$.subToolbar.resetResponsiveToolbar());const t=n(this,oi).get("toolbar_main"),o=t.style.display==="none"||n(this,Ce).mode.isInline&&!n(this,nt).inlineToolbarAttr.isShow;if(t.offsetWidth===0&&!o)return;const s=n(this,rt).opendBrowser;if(s&&s.area.style.display==="block"&&(s.body.style.maxHeight=u.utils.getClientSize().h-s.header.offsetHeight-50+"px"),n(this,zt).currentDropdownActiveButton&&n(this,zt).currentDropdown&&n(this,zt).__resetMenuPosition(n(this,zt).currentDropdownActiveButton,n(this,zt).currentDropdown),this.$.viewer._resetFullScreenHeight())return;const r=this.$.frameContext;if(r.get("isCodeView")&&n(this,Ce).mode.isInline){n(this,nt)._showInline();return}n(this,rt)._iframeAutoHeight(r),n(this,nt).isSticky&&(n(this,nt).isCSSSticky||(n(this,oi).get("toolbar_main").style.width=r.get("topArea").offsetWidth-2+"px"),n(this,nt)._resetSticky())},Q1=new WeakSet,V3=function(t,o,s){n(this,rt)._syncScrollPosition(o),E(this,kr,pu).call(this),this._callPluginEvent("onScroll",{frameContext:t,event:s}),t.has("documentType_use_page")&&t.get("documentType").scrollPage(),n(this,se).triggerEvent("onScroll",{frameContext:t,event:s})},J1=new WeakSet,R3=function(t,o){if(this.$.selection.__iframeFocus||t.get("isReadOnly")||t.get("isDisabled"))return o.preventDefault(),!1;n(this,Ce).set("hasFocus",!0),this.$.component.__prevent=!1,n(this,se).triggerEvent("onNativeFocus",{frameContext:t,event:o});const s=t.get("key");if(this._inputFocus){n(this,Ce).mode.isInline&&Ct.setTimeout(()=>{n(this,nt)._showInline()},0);return}n(this,Ce).get("rootKey")===s&&n(this,Ce).get("_preventBlur")||n(this,Ce).get("_preventFocus")||(n(this,Ce).set("_preventFocus",!0),u.utils.removeClass(this.$.commandDispatcher.targets.get("codeView"),"active"),n(this,rt)._toggleCodeViewButtons(!1),this.$.facade.changeFrameContext(s),this.$.history.resetButtons(s,null),Ct.setTimeout(()=>{this.__postFocusEvent(t,o)},0))},em=new WeakSet,z3=function(t,o){t.get("isCodeView")||t.get("isReadOnly")||t.get("isDisabled")||(n(this,Ce).set("hasFocus",!1),n(this,Ce).set("_lastSelectionNode",null),n(this,se).triggerEvent("onNativeBlur",{frameContext:t,event:o}),n(this,rt)._updatePlaceholder(t),!(this._inputFocus||n(this,Ce).get("_preventBlur"))&&(n(this,Ce).set("_preventFocus",!1),this.selectionState.reset(),n(this,Ce).set("currentNodes",[]),n(this,Ce).set("currentNodesMap",[]),n(this,rt).offCurrentController(),n(this,ko).applyToRoots(s=>{s.get("navigation")&&(s.get("navigation").textContent="")}),this.$.history.check(t.get("key"),n(this,Ce).get("_range")),this.__postBlurEvent(t,o)))},tm=new WeakSet,P3=function(t){t.stopPropagation(),this._resizeClientY=t.clientY,n(this,rt).enableBackWrapper("ns-resize"),x(this,Ys,n(this,se).addGlobalEvent("mousemove",E(this,im,H3).bind(this))),x(this,Zs,n(this,se).addGlobalEvent("mouseup",E(this,om,j3).bind(this)))},im=new WeakSet,H3=function(t){const o=this.$.frameContext,s=o.get("wrapper").offsetHeight+(t.clientY-this._resizeClientY),r=s<o.get("_minHeight")?o.get("_minHeight"):s;o.get("wysiwygFrame").style.height=o.get("code").style.height=r+"px",this._resizeClientY=t.clientY,ge.isResizeObserverSupported||n(this,rt)._emitResizeEvent(o,r,null)},om=new WeakSet,j3=function(){n(this,rt).disableBackWrapper(),n(this,Ys)&&x(this,Ys,n(this,se).removeGlobalEvent(n(this,Ys))),n(this,Zs)&&x(this,Zs,n(this,se).removeGlobalEvent(n(this,Zs)))},Fh=new WeakSet,l2=function(t,o){o.preventDefault();const s=this._lineBreakComp;if(!s)return;const r=u.check.isListCell(s.parentElement),l=u.utils.createElement(r?"BR":u.check.isTableCell(s.parentElement)?"DIV":n(this,Rt).get("defaultLine"));if(r||(l.innerHTML="<br>"),!(this.$.frameOptions.get("charCounter_type")==="byte-html"&&!this.$.char.check(l.outerHTML))){s.parentNode.insertBefore(l,t==="t"?s:s.nextSibling),this.$.component.deselect();try{const c=r?l:l.firstChild;this.$.selection.setRange(c,1,c,1),this.$.history.push(!1)}catch(c){console.warn("[SUNEDITOR.lineBreaker.error]",c)}}},sm=new WeakSet,F3=function(){n(this,Ce).set("initViewportHeight",Ct.visualViewport.height),Wg||n(this,rt).offCurrentController(),n(this,Ce).mode.isBalloon?n(this,nt).hide():n(this,Ce).mode.isSubBalloon&&this.$.subToolbar.hide(),E(this,X1,D3).call(this)},nm=new WeakSet,W3=function(){Wg&&n(this,Rt).get("_toolbar_sticky")>-1&&(n(this,nt)._resetSticky(),n(this,zt).__restoreMenuPosition()),E(this,kr,pu).call(this);const t=n(this,Ce).get("currentViewportHeight");this.__setViewportSize(),Wg&&t>0&&t-Ct.visualViewport.height>100&&n(this,Ce).get("hasFocus")&&this.$.selection.scrollTo(this.$.selection.getRange(),{behavior:"auto",block:"nearest",inline:"nearest"})},rm=new WeakSet,U3=function(){n(this,Rt).get("_toolbar_sticky")>-1&&n(this,nt)._resetSticky(),n(this,Ce).mode.isBalloon&&n(this,oi).get("toolbar_main").style.display==="block"?n(this,nt)._setBalloonOffset(n(this,nt).balloonOffset.position==="top"):n(this,Ce).mode.isSubBalloon&&n(this,oi).get("toolbar_sub_main").style.display==="block"&&this.$.subToolbar._setBalloonOffset(this.$.subToolbar.balloonOffset.position==="top"),E(this,kr,pu).call(this),this.$.frameContext.has("documentType_use_page")&&this.$.frameContext.get("documentType").scrollWindow()},am=new WeakSet,q3=function(){n(this,Rt).get("_toolbar_sticky")>-1&&(n(this,nt)._resetSticky(),n(this,zt).__restoreMenuPosition())},lm=new WeakSet,Z3=function(t){let s=t.getSelection().anchorNode;n(this,ko).applyToRoots(r=>{if(s&&r.get("wysiwyg").contains(s)){if(r.get("isReadOnly")||r.get("isDisabled"))return;if(s=null,this.$.selection.init(),this.applyTagEffect(),n(this,rt)._updatePlaceholder(r),Ug&&(n(this,Ce).mode.isBalloon||n(this,Ce).mode.isSubBalloon)&&E(this,Y1,$3).call(this),r.has("documentType_use_header")){const l=u.query.getParentElement(this.$.selection.selectionNode,this.$.format.isLine.bind(this.$.format));r.get("documentType").on(l)}}})},cm=new WeakSet,G3=function(){n(this,zt).dropdownOff(),E(this,kr,pu).call(this)},dm=new WeakSet,Y3=function(t){this.$.facade.changeFrameContext(t.get("key")),u.utils.addClass(this.$.commandDispatcher.targets.get("codeView"),"active"),n(this,rt)._toggleCodeViewButtons(!0)},hm=new WeakSet,K3=function(t){this.$.facade.changeFrameContext(t.get("key")),u.utils.addClass(this.$.commandDispatcher.targets.get("markdownView"),"active"),n(this,rt)._toggleCodeViewButtons(!0)};function zv(i){if(i.key!=="Tab")return;i.preventDefault();const e=i.target,t=e.selectionStart,o=e.selectionEnd;e.value=e.value.substring(0,t)+" "+e.value.substring(o),e.selectionStart=e.selectionEnd=t+1}const jL=HL;class FL{constructor(e,t){w(this,um);w(this,pm);w(this,fm);w(this,mm);w(this,gm);w(this,si,new Map);w(this,ve,new Map);jl(this,"$",null);const{product:o,options:s}=t;this.store=new XA(o),this.$={facade:e,store:this.store},E(this,um,X3).call(this,o,s),E(this,pm,Q3).call(this),E(this,fm,J3).call(this,o),E(this,gm,t5).call(this),E(this,mm,e5).call(this),this._eventOrchestrator=new jL(this),n(this,si).get("eventManager")._bindOrchestrator(this._eventOrchestrator)}_destroy(){var t,o,s;if(this.$===null)return;const e=[];for(const[r,l]of n(this,ve))try{(t=l==null?void 0:l._destroy)==null||t.call(l)}catch(c){e.push(`[Logic:${r}] ${c.message}`)}n(this,ve).clear();try{(o=this._eventOrchestrator)==null||o._removeAllEvents()}catch(r){e.push(`[EventOrchestrator] ${r.message}`)}this._eventOrchestrator=null;for(const[r,l]of n(this,si))try{(s=l==null?void 0:l._destroy)==null||s.call(l)}catch(c){e.push(`[Config:${r}] ${c.message}`)}n(this,si).clear(),e.length>0&&console.warn("[CoreKernel._destroy] Cleanup completed with errors:",e),this.$=null,this.store._destroy(),this.store=null,this.facade=null}}si=new WeakMap,ve=new WeakMap,um=new WeakSet,X3=function(e,t){const o=new JA(e),s=new eB(this,e,t);n(this,si).set("contextProvider",o),n(this,si).set("optionProvider",s),n(this,si).set("instanceCheck",new iB(o.frameContext)),n(this,si).set("eventManager",new dB(o,s,this.$))},pm=new WeakSet,Q3=function(){const e=n(this,si).get("contextProvider"),t=n(this,si).get("optionProvider");Object.assign(this.$,{contextProvider:e,optionProvider:t,instanceCheck:n(this,si).get("instanceCheck"),eventManager:n(this,si).get("eventManager"),frameRoots:e.frameRoots,context:e.context,options:t.options,icons:e.icons,lang:e.lang,frameContext:e.frameContext,frameOptions:t.frameOptions})},fm=new WeakSet,J3=function(e){n(this,ve).set("offset",new uB(this)),n(this,ve).set("selection",new fB(this)),n(this,ve).set("html",new GB(this)),n(this,ve).set("nodeTransform",new KB(this)),n(this,ve).set("format",new gB(this)),n(this,ve).set("inline",new vB(this)),n(this,ve).set("listFormat",new wB(this)),n(this,ve).set("char",new QB(this)),n(this,ve).set("shortcuts",new eN(this)),n(this,ve).set("component",new bN(this)),n(this,ve).set("pluginManager",new yN(this,e)),n(this,ve).set("focusManager",new wN(this)),n(this,ve).set("ui",new zN(this)),n(this,ve).set("commandDispatcher",new ON(this)),n(this,ve).set("toolbar",new Ev(this,{keyName:"toolbar",balloon:this.store.mode.isBalloon,balloonAlways:this.store.mode.isBalloonAlways,inline:this.store.mode.isInline,res:e.responsiveButtons})),this.$.options.has("_subMode")&&n(this,ve).set("subToolbar",new Ev(this,{keyName:"toolbar_sub",balloon:this.store.mode.isSubBalloon,balloonAlways:this.store.mode.isSubBalloonAlways,inline:!1,res:e.responsiveButtons_sub})),n(this,ve).set("menu",new WN(this)),n(this,ve).set("viewer",new qN(this)),n(this,ve).set("finder",new YN(this)),n(this,ve).set("history",PN(this))},mm=new WeakSet,e5=function(){for(const[,e]of n(this,ve))typeof(e==null?void 0:e._init)=="function"&&e._init()},gm=new WeakSet,t5=function(){const e=n(this,ve).get("pluginManager");Object.assign(this.$,{offset:n(this,ve).get("offset"),selection:n(this,ve).get("selection"),format:n(this,ve).get("format"),inline:n(this,ve).get("inline"),listFormat:n(this,ve).get("listFormat"),html:n(this,ve).get("html"),nodeTransform:n(this,ve).get("nodeTransform"),char:n(this,ve).get("char"),component:n(this,ve).get("component"),focusManager:n(this,ve).get("focusManager"),pluginManager:e,plugins:e.plugins,ui:n(this,ve).get("ui"),commandDispatcher:n(this,ve).get("commandDispatcher"),history:n(this,ve).get("history"),shortcuts:n(this,ve).get("shortcuts"),toolbar:n(this,ve).get("toolbar"),subToolbar:n(this,ve).get("subToolbar"),menu:n(this,ve).get("menu"),viewer:n(this,ve).get("viewer"),finder:n(this,ve).get("finder")})};const WL=FL;class UL{constructor(e,t){w(this,Rl);w(this,bm);w(this,vm);w(this,ym);w(this,wm);w(this,Cm);w(this,ni,void 0);jl(this,"$");const o=OA(e,t),s=new WL(this,{product:o,options:t});x(this,ni,s),this.$=s.$,E(this,Cm,r5).call(this,t).catch(r=>{console.error("[SUNEDITOR:E_CREATE_FAIL] Failed to create editor instance.",r)})}isEmpty(e){const t=(e||this.$.frameContext).get("wysiwyg");return u.check.isZeroWidth(t.textContent)&&!t.querySelector(this.$.options.get("allowedEmptyTags"))&&(t.innerText.match(/\n/g)||"").length<=1}resetOptions(e){var t;this.$.optionProvider.reset(e),this.$.store.set("_lastSelectionNode",null),E(this,Rl,zm).call(this,this.$.frameRoots.get(this.$.store.get("rootKey")));for(const o of Object.values(this.$.plugins))(t=o.init)==null||t.call(o)}changeFrameContext(e){e!==this.$.store.get("rootKey")&&(this.$.store.set("rootKey",e),E(this,Rl,zm).call(this,this.$.frameRoots.get(e)),this.$.toolbar._resetSticky())}destroy(){this.$.options.get("hasCodeMirror")&&this.$.contextProvider.applyToRoots(e=>{const o=e.get("options").get("codeMirrorEditor");o&&o.toTextArea()}),u.utils.removeItem(this.$.context.get("toolbar_wrapper")),u.utils.removeItem(this.$.context.get("toolbar_sub_wrapper")),u.utils.removeItem(this.$.context.get("statusbar_wrapper"));for(const e in this.events)this.events[e]=null;return this.events=null,n(this,ni)._destroy(),null}}ni=new WeakMap,Rl=new WeakSet,zm=function(e){this.$.contextProvider.reset(e),this.$.optionProvider.resetFrame(e.get("options")),this.$.ui.reset(e)},bm=new WeakSet,i5=function(e){this.$.store.set("initViewportHeight",ge._w.visualViewport.height),n(this,ni)._eventOrchestrator.__setViewportSize(),this.$.store.set("_canUseBeforeInput",ge.canUseBeforeInput()),this.$.contextProvider.init(),E(this,Rl,zm).call(this,this.$.frameRoots.get(this.$.store.get("rootKey"))),E(this,ym,s5).call(this,e),this.$.contextProvider.applyToRoots(t=>{n(this,ni)._eventOrchestrator._addFrameEvents(t),E(this,vm,o5).call(this,t,t.get("options").get("value")),t.get("options").get("iframe")&&t.get("options").get("height")==="auto"&&this.$.ui._emitResizeEvent(t,t.get("wysiwygFrame").offsetHeight,null)}),n(this,ni)._eventOrchestrator.__eventDoc=null,this.$.store._editorInitFinished=!0,this.$.pluginManager.checkFileInfo(!0),this.$.history.reset(),ge._w.setTimeout(()=>{var t,o;if(!((t=this.$.context)!=null&&t.size)){console.warn("[SUNEDITOR:E_INIT_FAIL] Editor instance was destroyed before initialization completed. Check if destroy() was called.");return}this.$.context.get("toolbar_main").style.visibility="",this.$.contextProvider.applyToRoots(s=>{n(this,ni)._eventOrchestrator._wwFrameObserver&&n(this,ni)._eventOrchestrator._wwFrameObserver.observe(s.get("wysiwygFrame")),n(this,ni)._eventOrchestrator._toolbarObserver&&n(this,ni)._eventOrchestrator._toolbarObserver.observe(s.get("_toolbarShadow")),this.$.ui._syncFrameState(s)});for(const s of Object.values(this.$.plugins))(o=s.init)==null||o.call(s);this.$.selection.__init(),this.$.eventManager.triggerEvent("onload",{})},0)},vm=new WeakSet,o5=function(e,t){e.get("wysiwyg").innerHTML=this.$.html.clean(typeof t=="string"?t:(/^TEXTAREA$/i.test(e.get("originElement").nodeName)?e.get("originElement").value:e.get("originElement").innerHTML)||"",{forceFormat:!0,whitelist:null,blacklist:null,_freeCodeViewMode:this.$.options.get("freeCodeViewMode")})||"<"+this.$.options.get("defaultLine")+"><br></"+this.$.options.get("defaultLine")+">",e.has("charCounter")&&(e.get("charCounter").textContent=String(this.$.char.getLength())),e.has("wordCounter")&&(e.get("wordCounter").textContent=String(this.$.char.getWordCount())),this.$.options.get("type")==="document"&&(e.set("documentType",new YA(n(this,ni),e)),e.get("documentType").useHeader&&e.set("documentType_use_header",!0),e.get("documentType").usePage&&(e.set("documentType_use_page",!0),e.get("documentTypePageMirror").innerHTML=e.get("wysiwyg").innerHTML))},ym=new WeakSet,s5=function(e){this.$.pluginManager.init(e),this.$.shortcuts._registerShortcuts(),this.$.commandDispatcher._initCommandButtons(),this.$.ui.init()},wm=new WeakSet,n5=function(e,t,o){e.contentDocument.documentElement.className="sun-editor",e.contentDocument.head.innerHTML='<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'+Te._setIframeStyleLinks(o.get("iframe_cssFileName"))+Te._setAutoHeightStyle(o.get("height")),e.contentDocument.body.className=t.get("_editableClass"),e.contentDocument.body.setAttribute("contenteditable","true"),t.get("_rtl")&&(e.contentDocument.body.dir="rtl")},Cm=new WeakSet,r5=async function(e){n(this,ni)._eventOrchestrator._addCommonEvents();const t=[];this.$.contextProvider.applyToRoots(o=>{const s=o.get("originElement"),r=o.get("topArea");if(s.style.display="none",r.style.display="block",s.parentNode.insertBefore(r,s.nextElementSibling),o.get("options").get("iframe")){const l=new Promise(c=>{const d=h=>{E(this,wm,n5).call(this,h,this.$.optionProvider.options,o.get("options")),c()};if(ge.isGecko){let h=null;this.$.eventManager.addEvent(o.get("wysiwygFrame"),"load",({target:p})=>{clearTimeout(h),h=setTimeout(()=>{this.$&&d(p)},60)})}else this.$.eventManager.addEvent(o.get("wysiwygFrame"),"load",({target:h})=>{d(h)})});t.push(l)}}),this.$.contextProvider.applyToRoots(o=>{o.get("wrapper").appendChild(o.get("wysiwygFrame")),o.get("documentTypeInner")&&o.get("wrapper").insertBefore(o.get("documentTypeInner"),o.get("wysiwygFrame")),o.get("documentTypePage")&&(o.get("wrapper").appendChild(o.get("documentTypePage")),o.get("wrapper").appendChild(o.get("documentTypePageMirror"))),o.get("blockHandleArea")&&o.get("wrapper").insertBefore(o.get("blockHandleArea"),o.get("wysiwygFrame"))}),t.length>0&&await Promise.all(t),E(this,bm,i5).call(this,e)};const qL=UL,ZL={init(i){return{create:(e,t)=>this.create(e,t,i)}},create(i,e,t){if(typeof e!="object"&&(e={}),t&&(e=(()=>[t,e].reduce((s,r)=>(Object.entries(r).forEach(([l,c])=>{if(l==="plugins"&&c&&s[l]){const d=Array.isArray(s[l])?s[l]:Object.values(s[l]),h=Array.isArray(c)?c:Object.values(c);s[l]=[...h.filter(p=>!d.includes(p)),...d]}else s[l]=c}),s),{}))()),!i)throw Error('[SUNEDITOR.create.fail] The first parameter "target" is missing.');const o=[];if(typeof i=="string"){const s=document.querySelector(i);if(!s)throw Error(`[SUNEDITOR.create.fail]-[document.querySelector(${i})] Cannot find target element. Make sure "${i}" is a valid selector and exists in the document.`);o.push({key:null,target:s})}else if(i.nodeType===1)o.push({key:null,target:i});else{let s;for(const r in i){if(s=i[r],!s.target||s.target.nodeType!==1)throw Error(`[SUNEDITOR.create.fail] suneditor multi root requires textarea's element at the "target" property.`);s.key=r,o.push(s)}}return new qL(o,e)}},LR="",IR="",qg=a.defineComponent({__name:"AoRichTextEditor",props:{modelValue:{default:""},readonly:{type:Boolean,default:!1},placeholder:{default:""}},emits:["update:modelValue","blur","focus"],setup(i,{emit:e}){const t=i,o=e,s=a.ref(null),r=a.shallowRef(null),l=a.ref(t.modelValue??""),c=a.ref(!1),d=p=>({value:p,placeholder:t.placeholder,width:"100%",minHeight:"100px",statusBar:!1,charCounter:!1,buttonList:[["bold","italic","underline","strike"],["ul","ol"]],editable:!t.readonly,attributesWhitelist:{all:{"data-mention":"data-mention"}},defaultStyle:`
|
|
225
|
-
font-family: inherit;
|
|
226
|
-
font-size: inherit;
|
|
227
|
-
line-height: 1.5;
|
|
228
|
-
padding: 0.5rem;
|
|
229
|
-
`,styles:{border:"1px solid var(--ao-color-neutral-light)",borderRadius:"var(--ao-border-radius-sm)"},onChange:f=>{l.value=f,o("update:modelValue",f)},onFocus:()=>{c.value=!0,o("focus")},onBlur:()=>{c.value=!1,o("blur",l.value)}}),h=()=>{!s.value||r.value||(r.value=ZL.create(s.value,d(t.modelValue??"")))};return a.onMounted(()=>{setTimeout(h,0)}),a.onBeforeUnmount(()=>{r.value&&(r.value.destroy(),r.value=null)}),a.watch(()=>t.modelValue,p=>{const f=r.value;if(!f)return;const m=p??"";m!==l.value&&(l.value=m,c.value||f.setContents(m))}),a.watch(()=>t.readonly,p=>{const f=r.value;f&&f.setOptions({editable:!p})}),(p,f)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-rich-text-editor",{"ao-rich-text-editor--readonly":i.readonly}])},[a.createElementVNode("textarea",{ref_key:"editorRef",ref:s},null,512)],2))}}),$R="",GL={class:"ao-comment"},YL={class:"ao-comment__created-at"},KL={class:"ao-comment__body"},XL={class:"ao-comment__content-wrapper"},QL=["innerHTML"],JL={key:1,class:"ao-comment__footer"},eI=a.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>t.user?`${t.user.firstName} ${t.user.lastName}`:null),r=a.ref(!1),l=a.ref(t.content);a.watch(()=>t.content,k=>{r.value||(l.value=k)});const c=a.computed(()=>{const k=t.editedAt?Jl(t.editedAt):void 0,_=Jl(t.createdAt);return Wx(k??_,new Date)}),d=new Set(["P","BR","DIV","STRONG","B","EM","I","U","S","DEL","STRIKE","UL","OL","LI"]),h=new Set(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED","SVG","MATH"]),p=k=>k.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""").replaceAll("'","'"),f=k=>/<\/?(?:p|br|div|strong|b|em|i|u|s|del|strike|ul|ol|li)\b[^>]*>/i.test(k),m=k=>{if(!k)return"";if(!f(k))return p(k).replace(/\r?\n/g,"<br>");const _=new DOMParser().parseFromString(k,"text/html"),S=T=>{if(Array.from(T.children).forEach(S),h.has(T.tagName)){T.remove();return}if(!d.has(T.tagName)){T.replaceWith(...Array.from(T.childNodes));return}Array.from(T.attributes).forEach(M=>{T.removeAttribute(M.name)})};return Array.from(_.body.children).forEach(S),_.body.innerHTML},g=a.computed(()=>m(t.content)),v=()=>{l.value=t.content,r.value=!0},b=()=>{o("edit",l.value),r.value=!1},y=()=>{l.value=t.content,r.value=!1},C=()=>{o("remove")};return(k,_)=>{var S;return a.openBlock(),a.createElementBlock("li",GL,[s.value?(a.openBlock(),a.createBlock(xo,{key:0,"avatar-url":(S=i.user)==null?void 0:S.avatarUrl,"user-name":s.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):a.createCommentVNode("",!0),a.createElementVNode("span",YL,a.toDisplayString(c.value),1),a.createElementVNode("div",KL,[a.createElementVNode("div",XL,[r.value?(a.openBlock(),a.createBlock(qg,{key:1,modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=T=>l.value=T),class:"ao-comment__editor"},null,8,["modelValue"])):(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-comment__content sun-editor-editable",innerHTML:g.value},null,8,QL))])]),i.isEditable?(a.openBlock(),a.createElementBlock("div",JL,[r.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Ee,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:y}),a.createVNode(Ee,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:b})],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(Ee,{label:k.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:C},null,8,["label"]),a.createVNode(Ee,{label:k.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:v},null,8,["label"])],64))])):a.createCommentVNode("",!0)])}}}),OR="",tI={class:"ao-comments__header"},iI={class:"ao-comments__form-submit"},oI={key:0,class:"ao-comments__list"},sI=a.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>[...t.comments].sort((m,g)=>O_(Jl(m.createdAt),Jl(g.createdAt)))),r=m=>t.users.find(g=>g.id===m),l=a.ref(null),c=a.ref(t.newComment);a.watch(()=>t.newComment,m=>{m!==c.value&&(c.value=m)}),a.watch(()=>t.comments.length,async()=>{await a.nextTick(),l.value&&(l.value.scrollTop=l.value.scrollHeight)},{immediate:!0});const d=m=>{if(!m)return!0;const g=document.createElement("div");return g.innerHTML=m,(g.textContent??"").replace(/\u00a0/g," ").trim().length===0},h=()=>{d(c.value)||(o("createComment",{authorId:t.userId,message:c.value,mentionedUserIds:[]}),c.value="")},p=(m,g)=>{o("updateComment",{id:m,message:g,mentionedUserIds:[]})},f=m=>{o("removeComment",{id:m})};return(m,g)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"commentsContainer",ref:l,class:"ao-comments"},[a.createElementVNode("div",tI,[a.createElementVNode("form",{class:"ao-comments__form",onSubmit:a.withModifiers(h,["prevent"])},[a.createVNode(qg,{modelValue:c.value,"onUpdate:modelValue":g[0]||(g[0]=v=>c.value=v),placeholder:m.$t("activity.comment.label"),class:"ao-comments__form-editor"},null,8,["modelValue","placeholder"]),a.createElementVNode("div",iI,[a.createVNode(Ee,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],32)]),s.value.length>0?(a.openBlock(),a.createElementBlock("ul",oI,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,v=>(a.openBlock(),a.createBlock(eI,{key:v.id,user:r(v.author.id),content:v.message,"created-at":v.createdAt,"edited-at":v.updatedAt,"is-editable":v.author.id===i.userId,"mentionable-users":i.users,onEdit:b=>p(v.id,b),onRemove:b=>f(v.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):a.createCommentVNode("",!0)],512))}}),DR="",Pv=a.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,o=e,s=()=>{o("update:modelValue",!t.modelValue)};return(r,l)=>(a.openBlock(),a.createBlock(Ee,{color:i.modelValue?i.color:a.unref(Pm).NEUTRAL,"icon-position":"start",onClick:l[0]||(l[0]=()=>s())},null,8,["color"]))}}),nI=a.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:i=>["underline"].includes(i)}},emits:["update:modelValue"],methods:{selectTab(i){this.$emit("update:modelValue",i)}}}),VR="",rI=["onClick"],aI={class:"tab-button__label"},lI={key:0,class:"tab-button__badge"};function cI(i,e,t,o,s,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":i.variant==="underline"}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.tabs,l=>(a.openBlock(),a.createElementBlock("button",{key:l.value,class:a.normalizeClass(["tab-button",{"tab-button--active":l.value===i.modelValue},{"tab-button--underline":i.variant==="underline"}]),type:"button",onClick:c=>i.selectTab(l.value)},[a.createElementVNode("span",aI,a.toDisplayString(l.label),1),l.count!==void 0&&l.count>0?(a.openBlock(),a.createElementBlock("span",lI,a.toDisplayString(l.count),1)):a.createCommentVNode("",!0)],10,rI))),128))],2)}const wc=re(nI,[["render",cI],["__scopeId","data-v-0e91b31f"]]),dI=["innerHTML"],hI={key:1,class:"ao-rich-text-content ao-rich-text-content--empty"},uI=a.defineComponent({__name:"AoRichTextContent",props:{content:{default:""}},setup(i){const e=i,t=a.computed(()=>{const r=e.content??"";return/<[pbiostrongemulolliclassem]/i.test(r)}),o=a.computed(()=>{const r=e.content??"";return r.trim()?[/^\s*<p><br\s*\/?>\s*<\/p>\s*$/i,/^\s*<p>\s*<\/p>\s*$/i,/^\s*<br\s*\/?>\s*$/i,/^\s*<div><br\s*\/?><\/div>\s*$/i].some(c=>c.test(r)):!0}),s=a.computed(()=>{const r=e.content??"";return r?t.value?r:r.replace(/\n/g,"<br>"):""});return(r,l)=>o.value?(a.openBlock(),a.createElementBlock("span",hI,[a.renderSlot(r.$slots,"placeholder")])):(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-rich-text-content",innerHTML:s.value},null,8,dI))}}),RR="",pI={class:"ao-activity-details"},fI={class:"ao-activity-details__main"},mI={class:"ao-activity-details__header"},gI={key:1,class:"ao-activity__category"},bI={class:"ao-feed__activity-details__header"},vI={key:0,class:"ao-field ao-feed__activity-details__project"},yI={class:"ao-field__label"},wI={key:1,class:"ao-field ao-feed__activity-details__project"},CI={class:"ao-field__label"},kI={class:"ao-activity-details__content"},_I={class:"ao-activity-details__tab-content"},xI={class:"ao-fieldset"},EI={class:"ao-field__row"},TI={key:1,class:"ao-activity-details__description-placeholder"},MI={key:2,class:"ao-activity-details__description-placeholder"},SI={key:1,class:"ao-activity-details__description-editor"},AI={class:"ao-activity-details__description-actions"},BI={class:"ao-activity-details__tab-content"},NI={class:"ao-fieldset"},LI={class:"ao-fieldset__body"},II={class:"ao-activity-details__tab-content"},$I={key:0,class:"ao-fieldset"},OI={class:"ao-activity-details__aside"},DI={class:"ao-activity-details__close-button"},VI={key:0,class:"ao-activity-details__aside-section"},RI={class:"ao-field"},zI={class:"ao-field__label"},PI={class:"ao-activity-details__aside-section"},HI={class:"ao-field ao-field--multiselect"},jI={class:"assignee-inline"},FI={class:"ao-field__label"},WI={class:"ao-activity-details__aside-section"},UI={key:0,class:"ao-field__row"},qI={class:"ao-field"},ZI={class:"ao-field__label"},GI=["readonly"],YI={class:"ao-activity-details__aside-section"},KI={class:"ao-field__row"},XI={class:"ao-field ao-field--inline"},QI={class:"ao-field__label"},JI=["readonly"],e$={class:"ao-field__row"},t$={class:"ao-field ao-field--inline"},i$={class:"ao-field__label"},o$={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},s$={class:"ao-activity-details__aside-section"},n$={class:"ao-fieldset ao-activity-details__aside-section"},r$={class:"ao-fieldset__title"},a$={class:"ao-fieldset__body"},l$={class:"ao-field__row"},c$={class:"ao-field ao-field--multiselect"},d$={class:"ao-field__label"},h$={class:"ao-field__row"},u$={class:"ao-field ao-field--multiselect"},p$={class:"ao-field__label"},Zg=a.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(i,{emit:e}){const t=i,o=e,{t:s}=Ao(),r=a.ref("description"),l=a.computed(()=>{var z,X;return[{label:s("activity.description.label")||"Description",value:"description"},{label:s("activity.tasks.title")||"Checklist",value:"checklist",count:((z=t.activity.tasks)==null?void 0:z.length)??0},{label:s("activity.comments.title")||"Commentaires",value:"comments",count:((X=t.activity.comments)==null?void 0:X.length)??0}]}),c=a.computed(()=>{var z;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((z=t.activity.assignee)==null?void 0:z.id):!1}),d=z=>{o("update:activity",{id:t.activity.id,name:z})},h=a.ref(!1),p=a.ref(t.activity.description??""),f=()=>{c.value&&(p.value=t.activity.description??"",h.value=!0)},m=()=>{p.value=t.activity.description??"",h.value=!1},g=()=>{const z=p.value;if(z===(t.activity.description??"")){h.value=!1;return}o("update:activity",{id:t.activity.id,description:z}),h.value=!1},v=a.computed({get(){return t.activity.estimation??0},set(z){o("update:activity",{id:t.activity.id,estimation:z})}}),b=a.computed({get(){var X;const z=(X=t.timeTrackingData)==null?void 0:X[t.activity.id];return(z==null?void 0:z.timeSpent)??0},set(){}}),y=a.computed(()=>{var X;return((X=t.activity.project)==null?void 0:X.estimationUnit)==="days"?"d":"h"}),C=a.computed(()=>{var X;const z=(X=t.activity.project)==null?void 0:X.estimationUnit;return Eu(b.value,z)}),k=a.computed({get(){return t.activity.important??!1},set(z){o("update:activity",{id:t.activity.id,important:z})}});a.computed({get(){return t.activity.private??!1},set(z){o("update:activity",{id:t.activity.id,private:z})}});const _=a.computed({get(){return t.activity.deadline},set(z){o("update:activity",{id:t.activity.id,deadline:z})}});a.computed(()=>{var z;return(z=t.activityTypes)==null?void 0:z.map(X=>({label:X.name,value:X.id}))}),a.computed({get(){var z;return(z=t.activity.type)==null?void 0:z.id},set(z){o("update:activity",{id:t.activity.id,typeId:z})}});const S=a.computed(()=>t.templateActivities.filter(z=>z.id!==t.activity.id).map(z=>({label:z.name,value:z.id}))),T=a.computed({get(){var z;return(z=t.activity.dependingOn)==null?void 0:z.map(X=>X.id)},set(z){z&&o("update:activity",{id:t.activity.id,dependingOn:z})}}),M=a.computed(()=>S.value.map(z=>{var X;return{...z,disabled:(X=t.activity.blocking)==null?void 0:X.some(me=>me.id===z.value)}})),N=a.computed({get(){var z;return(z=t.activity.blocking)==null?void 0:z.map(X=>X.id)},set(z){z&&o("update:activity",{id:t.activity.id,blocking:z})}}),A=a.computed(()=>S.value.map(z=>{var X;return{...z,disabled:(X=t.activity.dependingOn)==null?void 0:X.some(me=>me.id===z.value)}})),B=z=>{o("addSubtask",z)},$=z=>{o("updateSubtask",z)},L=z=>{o("deleteSubtask",z)};function O(){t.userId?R.value=[t.userId]:console.error("Failed assigning to self: userId is missing")}function D(z){R.value=[z]}const I=a.computed(()=>{var X;const z=new Map;return(X=t.users)==null||X.forEach(me=>{z.has(me.id)||z.set(me.id,me)}),Array.from(z.values()).map(me=>({label:`${me.firstName} ${me.lastName}`,value:me.id,avatar:me.avatarUrl}))}),R=a.computed({get(){var z,X;return(z=t.activity.assignee)!=null&&z.id?[(X=t.activity.assignee)==null?void 0:X.id]:[]},set(z){o("update:activity",{id:t.activity.id,assigneeId:z[0]??null})}}),F=z=>{o("addFiles",{activityId:t.activity.id,files:z})},q=z=>{o("removeFile",{activityId:t.activity.id,file:z})},H=a.computed(()=>t.projects.map(z=>({value:z.id,label:z.name}))),V=a.computed(()=>{var X,me,fe;const z=(fe=(me=(X=t.activity)==null?void 0:X.project)==null?void 0:me.phases)==null?void 0:fe.reduce((He,ue)=>[...He,...ue.milestones],[]);return z==null?void 0:z.map(He=>({value:He.id,label:He.name}))}),Z=z=>{t.activity&&o("update:activity",{id:t.activity.id,projectId:z})},j=z=>{t.activity&&o("update:activity",{id:t.activity.id,milestoneId:z})},Y=a.computed(()=>{var z;return(z=t.statuses)==null?void 0:z.map(X=>({value:X.id,label:X.name}))}),ne=z=>{o("update:activity",{id:t.activity.id,statusId:z})},K=z=>{o("addComment",{...z,activityId:t.activity.id})},J=z=>{o("updateComment",z)},W=z=>{o("removeComment",z)};a.computed(()=>{var z,X;return((z=t.activity.createdBy)==null?void 0:z.firstName)&&((X=t.activity.createdBy)==null?void 0:X.lastName)&&`${t.activity.createdBy.firstName} ${t.activity.createdBy.lastName}`});function ie(){const z=window.location.origin,X=t.activity.slug,me=`${z}/activity-feed/slug/${X}`;navigator.clipboard.writeText(me).then(()=>{console.log(`Link copied to clipboard: ${me}`),o("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),o("toast","clipboard.copy.error","error")})}return(z,X)=>(a.openBlock(),a.createBlock(Mu,{onClose:X[9]||(X[9]=me=>z.$emit("close"))},{default:a.withCtx(()=>{var me,fe,He;return[a.createElementVNode("div",pI,[a.createElementVNode("div",fI,[a.createElementVNode("div",mI,[i.activity.slug?(a.openBlock(),a.createBlock(Zl,{key:0,label:i.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:ie},null,8,["label"])):a.createCommentVNode("",!0),i.breadcrumbs?(a.openBlock(),a.createElementBlock("div",gI,a.toDisplayString(i.breadcrumbs),1)):a.createCommentVNode("",!0),a.createVNode(Pt,{title:i.activity.name||"",level:4,"is-editable":c.value,"onUpdate:title":d},null,8,["title","is-editable"]),a.createElementVNode("div",bI,[H.value?(a.openBlock(),a.createElementBlock("label",vI,[a.createElementVNode("span",yI,a.toDisplayString(z.$t("activity.project.label")),1),a.createVNode(ci,{options:H.value,value:(me=i.activity.project)==null?void 0:me.id,searchable:!0,disabled:!c.value,caret:c.value,onChange:Z},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0),V.value?(a.openBlock(),a.createElementBlock("label",wI,[a.createElementVNode("span",CI,a.toDisplayString(z.$t("activity.milestone.label")),1),a.createVNode(ci,{options:V.value,value:(fe=i.activity.milestone)==null?void 0:fe.id,searchable:!0,disabled:!c.value,caret:c.value,onChange:j},null,8,["options","value","disabled","caret"])])):a.createCommentVNode("",!0)]),a.renderSlot(z.$slots,"header")]),a.createElementVNode("div",kI,[a.createVNode(wc,{modelValue:r.value,"onUpdate:modelValue":X[0]||(X[0]=ue=>r.value=ue),tabs:l.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),a.withDirectives(a.createElementVNode("div",_I,[a.createElementVNode("fieldset",xI,[a.createElementVNode("div",EI,[a.createVNode(tT,{attachments:i.activity.attachments,"is-editable":i.attachmentEnabled&&c.value&&i.isTemplate!==!0&&!!i.userId,onAdd:F,onRemove:q},{default:a.withCtx(()=>[h.value?(a.openBlock(),a.createElementBlock("div",SI,[a.createVNode(qg,{modelValue:p.value,"onUpdate:modelValue":X[1]||(X[1]=ue=>p.value=ue),placeholder:z.$t("activity.description.label")||"Add description"},null,8,["modelValue","placeholder"]),a.createElementVNode("div",AI,[a.createVNode(Ee,{label:z.$t("common.cancel")||"Cancel",variant:"ghost",color:"neutral",size:"sm",onClick:m},null,8,["label"]),a.createVNode(Ee,{label:z.$t("common.save")||"Save",variant:"solid",color:"black",size:"sm",onClick:g},null,8,["label"])])])):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":c.value}]),onClick:f},[i.activity.description?(a.openBlock(),a.createBlock(uI,{key:0,content:i.activity.description},null,8,["content"])):c.value?(a.openBlock(),a.createElementBlock("span",TI,a.toDisplayString(z.$t("activity.description.label")||"Add description"),1)):(a.openBlock(),a.createElementBlock("span",MI,a.toDisplayString(z.$t("activity.description.label")||"No description"),1))],2))]),_:1},8,["attachments","is-editable"])])])],512),[[a.vShow,r.value==="description"]]),a.withDirectives(a.createElementVNode("div",BI,[a.createElementVNode("fieldset",NI,[a.createElementVNode("div",LI,[a.createVNode(WE,{class:"ao-activity-details__tasks ao-field__row",tasks:i.activity.tasks||[],"activity-id":i.activity.id,users:i.users,"is-checkable":i.isTaskCheckable,"is-editable":c.value,"is-template":i.isTemplate,onAdd:B,onUpdate:$,onDelete:L},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[a.vShow,r.value==="checklist"]]),a.withDirectives(a.createElementVNode("div",II,[i.isTemplate!==!0&&i.userId?(a.openBlock(),a.createElementBlock("div",$I,[a.createVNode(sI,{comments:i.activity.comments,users:i.users,"user-id":i.userId,onCreateComment:K,onUpdateComment:J,onRemoveComment:W},null,8,["comments","users","user-id"])])):a.createCommentVNode("",!0)],512),[[a.vShow,r.value==="comments"]])])]),a.createElementVNode("div",OI,[a.createElementVNode("div",DI,[a.createVNode(Ze,{name:"CloseRounded",onClick:X[2]||(X[2]=ue=>z.$emit("close"))})]),Y.value?(a.openBlock(),a.createElementBlock("div",VI,[a.createElementVNode("label",RI,[a.createElementVNode("span",zI,a.toDisplayString(z.$t("activity.status.label")),1),a.createVNode(ci,{class:"ao-activity-details__multiselect",options:Y.value,value:(He=i.activity.status)==null?void 0:He.id,"can-clear":!1,"can-deselect":!1,disabled:!c.value,caret:c.value,onChange:ne},null,8,["options","value","disabled","caret"])])])):a.createCommentVNode("",!0),a.createElementVNode("div",PI,[a.createElementVNode("div",HI,[a.createElementVNode("div",jI,[a.createElementVNode("span",FI,a.toDisplayString(z.$t("activity.assignee.label")),1),a.createVNode(Ee,{label:z.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:O},null,8,["label"])]),a.createVNode(ci,{modelValue:R.value,"onUpdate:modelValue":X[3]||(X[3]=ue=>R.value=ue),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:I.value,"close-on-select":!0,searchable:!0,placeholder:z.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!c.value,caret:c.value,onSelect:D},{tag:a.withCtx(({option:ue,handleTagRemove:Be})=>[a.createVNode(xo,{"user-name":ue.label,"avatar-url":ue.avatar,"is-closable":!0,onClose:ke=>Be(ue,ke)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createElementVNode("div",WI,[i.isTemplate!==!0&&i.userId?(a.openBlock(),a.createElementBlock("div",UI,[a.createElementVNode("label",qI,[a.createElementVNode("span",ZI,a.toDisplayString(z.$t("activity.deadline.label")),1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":X[4]||(X[4]=ue=>_.value=ue),readonly:!c.value,class:"ao-field__input",type:"date"},null,8,GI),[[a.vModelText,_.value,void 0,{lazy:!0}]])])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",YI,[a.createElementVNode("div",KI,[a.createElementVNode("label",XI,[a.createElementVNode("span",QI,a.toDisplayString(z.$t("activity.estimation.label"))+" ("+a.toDisplayString(y.value)+")",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":X[5]||(X[5]=ue=>v.value=ue),readonly:!c.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,JI),[[a.vModelText,v.value,void 0,{lazy:!0,number:!0}]])])]),a.createElementVNode("div",e$,[a.createElementVNode("label",t$,[a.createElementVNode("span",i$,a.toDisplayString(z.$t("activity.timeSpent.label"))+" ("+a.toDisplayString(y.value)+")",1),a.createElementVNode("span",o$,a.toDisplayString(C.value),1)])])]),a.createElementVNode("div",s$,[a.createVNode(Pv,{modelValue:k.value,"onUpdate:modelValue":X[6]||(X[6]=ue=>k.value=ue),modelModifiers:{lazy:!0},label:z.$t("activity.important.label"),disabled:!c.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),a.createElementVNode("fieldset",n$,[a.createElementVNode("div",r$,[a.createVNode(Ze,{name:"FlowsheetOutlineRounded"}),a.createVNode(Pt,{level:4,title:z.$t("activity.dependencies.title")},null,8,["title"])]),a.createElementVNode("div",a$,[a.createElementVNode("div",l$,[a.createElementVNode("label",c$,[a.createElementVNode("span",d$,a.toDisplayString(z.$t("activity.dependingOn.label")),1),a.createVNode(ci,{modelValue:T.value,"onUpdate:modelValue":X[7]||(X[7]=ue=>T.value=ue),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:M.value,disabled:!c.value,caret:c.value},null,8,["modelValue","options","disabled","caret"])])]),a.createElementVNode("div",h$,[a.createElementVNode("label",u$,[a.createElementVNode("span",p$,a.toDisplayString(z.$t("activity.blocking.label")),1),a.createVNode(ci,{modelValue:N.value,"onUpdate:modelValue":X[8]||(X[8]=ue=>N.value=ue),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:A.value,disabled:!c.value,caret:c.value},null,8,["modelValue","options","disabled","caret"])])])])]),a.renderSlot(z.$slots,"default",{activity:i.activity})])])]}),_:3}))}}),zR="",f$=a.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(i,{emit:e}){const t=i,o=e,s=a.toRef(t.rule.itemType||dt.ACTIVITIES),r=a.computed({get(){return s.value},set(k){s.value=k,o("update:rule",{...t.rule,itemType:k,subItemId:void 0})}}),l=a.computed(()=>Object.values(dt)),c=a.computed({get(){return t.rule.subItemId},set(k){o("update:rule",{...t.rule,subItemId:k,itemType:t.rule.itemType||r.value})}}),d=a.computed(()=>{var _;return!t.templateActivities||!t.templateMilestones||!t.templatePhases?null:(_={[dt.ACTIVITIES]:t.templateActivities,[dt.MILESTONES]:t.templateMilestones,[dt.PHASES]:t.templatePhases}[s.value])==null?void 0:_.map(S=>({value:S.id,label:S.name}))}),h=a.toRef(t.rule.comparator),p=a.computed({get(){return h.value},set(k){o("update:rule",{...t.rule,comparator:k})}}),f=a.computed(()=>Object.values(u2)),m=a.toRef(t.rule.trigger),g=a.computed({get(){return m.value},set(k){o("update:rule",{...t.rule,trigger:k})}}),v=a.computed(()=>Object.values(p2)),b=a.computed({get(){return t.rule.duration},set(k){o("update:rule",{...t.rule,duration:k})}}),y=a.computed({get(){return t.rule.durationUnit},set(k){o("update:rule",{...t.rule,durationUnit:k})}}),C=a.computed(()=>Object.values(f2));return(k,_)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.tagName),{class:"ao-rule-line"},{default:a.withCtx(()=>[a.createVNode(a.unref(ss),{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=S=>r.value=S),options:l.value},null,8,["modelValue","options"]),a.createVNode(a.unref(ss),{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=S=>c.value=S),options:d.value},null,8,["modelValue","options"]),a.createVNode(a.unref(ss),{modelValue:g.value,"onUpdate:modelValue":_[2]||(_[2]=S=>g.value=S),options:v.value},null,8,["modelValue","options"]),a.createVNode(a.unref(ss),{modelValue:p.value,"onUpdate:modelValue":_[3]||(_[3]=S=>p.value=S),options:f.value},null,8,["modelValue","options"]),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=S=>b.value=S),type:"number",min:"0"},null,512),[[a.vModelText,b.value,void 0,{number:!0}]]),a.createVNode(a.unref(ss),{modelValue:y.value,"onUpdate:modelValue":_[5]||(_[5]=S=>y.value=S),options:C.value},null,8,["modelValue","options"]),a.createVNode(Ee,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=S=>k.$emit("close"))})]),_:1}))}}),PR="",m$={class:"ao-template-rules__body"},g$={class:"ao-template-rules__list"},b$=a.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(i,{emit:e}){const t=e,o=()=>{t("addRule")},s=r=>{t("removeRule",r)};return(r,l)=>(a.openBlock(),a.createBlock(Mu,null,{header:a.withCtx(()=>[a.createVNode(Pt,{title:r.$t("template.rules.title"),level:2},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("div",m$,[a.createElementVNode("ul",g$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.rules,c=>(a.openBlock(),a.createBlock(f$,{key:c.id,rule:c,"template-phases":i.templatePhases,"template-milestones":i.templateMilestones,"template-activities":i.templateActivities,class:"ao-template-rule",onClose:()=>s(c.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),a.createVNode(Qo,{label:r.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}}),HR="";function pn(i,e,t){const o=i.length,s=i.at(-1),r=s?Ht.LexoRank.parse(s.rank).genNext():Ht.LexoRank.middle();return{name:t(`template.defaultName.${e}`,{idx:o+1}),rank:r.format()}}const v$={key:0,class:"ao-template-details"},y$={class:"ao-template-details__body"},w$={class:"ao-template-details__cols"},C$={class:"ao-template-details__col"},k$={class:"ao-list__footer"},_$={class:"ao-template-details__col"},x$={class:"ao-template-details__col"},Hv=a.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e,r=a.computed(()=>{var H;return(H=o.templates)==null?void 0:H.find(V=>V.id===o.templateId)}),l=a.ref(!1);a.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>l.value=!1),a.watch(()=>{var H;return(H=r.value)==null?void 0:H.phases},(H,V)=>{l.value&&Bo(H,V)});const c=a.computed(()=>{var H,V;return(V=(H=r==null?void 0:r.value)==null?void 0:H.phases)==null?void 0:V.find(Z=>Z.id===o.phaseId)});a.watch(()=>{var H;return(H=c.value)==null?void 0:H.milestones},(H,V)=>{l.value&&Bo(H,V)});const d=a.computed(()=>{var H,V;return(V=(H=c.value)==null?void 0:H.milestones)==null?void 0:V.find(Z=>Z.id===o.milestoneId)});a.watch(()=>{var H;return(H=d.value)==null?void 0:H.activities},(H,V)=>{l.value&&Bo(H,V)});const h=a.computed(()=>{var H,V;return((V=(H=r.value)==null?void 0:H.phases)==null?void 0:V.reduce((Z,j)=>{const Y=j.milestones||[];return[...Z,...Y]},[]))||[]}),p=a.computed(()=>{var H,V;return((V=(H=r.value)==null?void 0:H.phases)==null?void 0:V.reduce((Z,j)=>{const ne=(j.milestones||[]).reduce((K,J)=>J.activities?[...K,...J.activities]:K,[]);return[...Z,...ne]},[]))||[]}),f=a.computed(()=>{var H,V;return(V=(H=d.value)==null?void 0:H.activities)==null?void 0:V.find(Z=>Z.id===o.activityId)}),m=a.computed(()=>{var H;return((H=r.value)==null?void 0:H.name)||o.templateId}),g=()=>{if(!r.value)return;const{name:H,rank:V}=pn(r.value.phases,"phase",t);l.value=!0,s("addItem",{type:dt.PHASES,templateId:o.templateId,item:{name:H,rank:V}})},v=H=>{s("updateItem",{templateId:o.templateId,id:o.templateId,itemType:dt.TEMPLATES,data:{name:H}})},b=H=>{s("removeItem",{itemType:dt.PHASES,templateId:o.templateId,data:{id:H}})},y=(H,V)=>{s("updateItem",{templateId:o.templateId,id:H,itemType:dt.PHASES,data:{name:V}})},C=H=>{s("updateItem",H)},k=H=>{if(!c.value)return;const{name:V,rank:Z}=pn(c.value.milestones,"milestone",t);l.value=!0,s("addItem",{type:dt.MILESTONES,templateId:o.templateId,phaseId:H.phaseId,item:{name:V,rank:Z,phaseId:H.phaseId}})},_=H=>{s("removeItem",{itemType:dt.MILESTONES,templateId:o.templateId,phaseId:H.phaseId,data:{id:H.id}})},S=H=>{const{id:V,...Z}=H;s("updateItem",{itemType:dt.MILESTONES,id:V,templateId:o.templateId,data:Z})},T=H=>{const{milestoneId:V}=H;if(!d.value)return;const{name:Z,rank:j}=pn(d.value.activities,"activity",t);l.value=!0,s("addItem",{type:dt.ACTIVITIES,milestoneId:V,templateId:o.templateId,item:{name:Z,rank:j,milestoneId:V}})},M=H=>{var V,Z;s("removeItem",{itemType:dt.ACTIVITIES,templateId:o.templateId,phaseId:(V=c.value)==null?void 0:V.id,milestoneId:(Z=d.value)==null?void 0:Z.id,data:{id:H.id}})},N=H=>{const{id:V,...Z}=H;s("updateItem",{itemType:dt.ACTIVITIES,id:V,templateId:o.templateId,data:Z})},A=a.ref(!1),B=()=>{A.value=!A.value},$=()=>{s("addRule",{templateId:o.templateId})},L=H=>{s("removeRule",{id:H,templateId:o.templateId})},O=H=>{var V;if(H.moved){const Z=rc(H,((V=r.value)==null?void 0:V.phases)??[]);s("updateItem",{itemType:dt.PHASES,id:H.moved.element.id,templateId:o.templateId,data:{rank:Z}})}},D=H=>{!c.value||!d.value||!f.value||s("addItem",{type:dt.TASKS,activityId:H.activityId,milestoneId:d.value.id,phaseId:c.value.id,templateId:o.templateId,item:H})},I=H=>{!c.value||!d.value||!f.value||s("updateItem",{itemType:dt.TASKS,id:H.id,templateId:o.templateId,data:H})},R=H=>{!c.value||!d.value||!f.value||s("removeItem",{itemType:dt.TASKS,activityId:f.value.id,milestoneId:d.value.id,phaseId:c.value.id,templateId:o.templateId,data:H})},F=H=>{s("addFiles",H)},q=H=>{s("removeFile",H)};return(H,V)=>{var Z,j,Y,ne,K,J;return r.value?(a.openBlock(),a.createElementBlock("div",v$,[a.createVNode(ac,{"can-go-back":!0,onGoBack:V[1]||(V[1]=W=>H.$router.push({name:a.unref(mn).TEMPLATES_LIST}))},{primary:a.withCtx(()=>[a.createVNode(Pt,{title:m.value,level:2,"is-editable":!0,"onUpdate:title":V[0]||(V[0]=W=>{v(W)})},null,8,["title"])]),_:1}),a.createElementVNode("div",y$,[a.createElementVNode("ol",w$,[a.createElementVNode("li",C$,[a.createVNode(a.unref(Li),{"model-value":r.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:O},{header:a.withCtx(()=>[a.createVNode(Pt,{title:H.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:a.withCtx(({element:W})=>{var ie;return[a.createVNode(e8,{id:W.id,name:W.name,milestones:W.milestones,"is-active":((ie=c.value)==null?void 0:ie.id)===W.id,"is-draggable":!0,onClick:z=>H.$router.push({params:{templateId:i.templateId,phaseId:W.id}}),"onUpdate:title":z=>{y(W.id,z)},onRemove:()=>b(W.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:a.withCtx(()=>[a.createElementVNode("div",k$,[a.createVNode(Qo,{"icon-name":"AddBoxOutlineRounded",label:H.$t("template.phases.add"),onClick:g},null,8,["label"])])]),_:1},8,["model-value"])]),a.createElementVNode("li",_$,[c.value?(a.openBlock(),a.createBlock(o8,{key:0,"template-id":i.templateId,phase:c.value,"milestone-id":(Z=d.value)==null?void 0:Z.id,onAddMilestone:k,onUpdateMilestone:S,onUpdatePhase:C,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):a.createCommentVNode("",!0)]),a.createElementVNode("li",x$,[c.value&&d.value?(a.openBlock(),a.createBlock(r8,{key:0,"template-id":i.templateId,"phase-id":(j=c.value)==null?void 0:j.id,milestone:d.value,"activity-id":(Y=f.value)==null?void 0:Y.id,onAddActivity:T,onUpdateActivity:N,onRemoveActivity:M},null,8,["template-id","phase-id","milestone","activity-id"])):a.createCommentVNode("",!0)])])]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[f.value?(a.openBlock(),a.createBlock(Zg,{key:0,activity:f.value,"activity-types":i.activityTypes,breadcrumbs:`${r.value.name} / ${(ne=c.value)==null?void 0:ne.name} / ${(K=d.value)==null?void 0:K.name}`,"milestone-id":(J=d.value)==null?void 0:J.id,"template-activities":p.value,"template-milestones":h.value,"is-template":!0,"is-editable":!0,users:i.users,"onUpdate:activity":V[2]||(V[2]=W=>{f.value&&N(W)}),"attachment-enabled":!1,onClose:H.$router.back,onAddSubtask:D,onUpdateSubtask:I,onDeleteSubtask:R,onAddFiles:F,onRemoveFile:q},{default:a.withCtx(W=>[a.renderSlot(H.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(W)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):a.createCommentVNode("",!0)])),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[A.value?(a.openBlock(),a.createBlock(b$,{key:0,"template-id":r.value.id,rules:r.value.rules||[],"template-phases":r.value.phases,"template-milestones":h.value,"template-activities":p.value,onClose:B,onAddRule:$,onRemoveRule:L},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):a.createCommentVNode("",!0)]))])):a.createCommentVNode("",!0)}}}),jR="",E$={class:"ao-card__content"},T$={key:0,class:"ao-card__header"},M$={class:"ao-card__body"},S$={key:1,class:"ao-card__footer"},up=a.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(i){return(e,t)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.tagName),{class:a.normalizeClass(["ao-card",{"ao-card--clickable":i.isClickable}]),style:a.normalizeStyle(i.isSelected?{border:"solid",borderColor:i.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:a.withCtx(()=>[i.withLeftBorder?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ao-card__left-border",style:a.normalizeStyle({backgroundColor:i.color})},null,4)):a.createCommentVNode("",!0),a.createElementVNode("div",E$,[e.$slots.header?(a.openBlock(),a.createElementBlock("header",T$,[a.renderSlot(e.$slots,"header")])):a.createCommentVNode("",!0),a.createElementVNode("div",M$,[a.renderSlot(e.$slots,"default")]),e.$slots.footer?(a.openBlock(),a.createElementBlock("footer",S$,[a.renderSlot(e.$slots,"footer")])):a.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}}),FR="",pp=a.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(i){const e=i,t=a.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["ao-progress",i.status?`ao-progress--${i.status}`:""]),role:"meter"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,r=>(a.openBlock(),a.createElementBlock("div",{key:r,class:a.normalizeClass(["ao-progress__progress"]),style:a.normalizeStyle({width:`${r*100}%`,"--ao-progress-color":i.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}}),WR="";/*!
|
|
1
|
+
(function(X,e){var De=document.createElement("style");De.textContent=`*,*:before,*:after{box-sizing:border-box}html,body{margin:0;overflow:hidden;display:flex;flex-direction:column;height:100%;min-height:0}button{color:inherit;font-family:inherit}input,textarea{font-family:inherit}:root{--ao-color-blue-lightest: #ebf1ff;--ao-color-blue-lighter: #aabdff;--ao-color-blue-light: #7183ff;--ao-color-blue-base: #4952ff;--ao-color-blue-dark: #2226e7;--ao-color-blue-darker: #09099c;--ao-color-blue-darkest: #000033;--ao-color-grey-lightest: #e6e6e6;--ao-color-grey-light: #c8c8c8;--ao-color-grey-base: #ababab;--ao-color-grey-dark: #636363;--ao-color-grey-darkest: #1c1c1c;--ao-color-white: #fff;--ao-color-black: #000;--ao-color-sand-base: #d8a55a;--ao-color-red-light: #ff4f4f;--ao-color-teal-light: #64d9bb;--ao-color-primary-lightest: var(--ao-color-blue-lightest);--ao-color-primary-lighter: var(--ao-color-blue-lighter);--ao-color-primary-light: var(--ao-color-blue-light);--ao-color-primary-base: var(--ao-color-blue-base);--ao-color-primary-dark: var(--ao-color-blue-dark);--ao-color-primary-darker: var(--ao-color-blue-darker);--ao-color-primary-darkest: var(--ao-color-blue-darkest);--ao-color-neutral-lightest: var(--ao-color-grey-lightest);--ao-color-neutral-light: var(--ao-color-grey-light);--ao-color-neutral-base: var(--ao-color-grey-base);--ao-color-neutral-dark: var(--ao-color-grey-dark);--ao-color-neutral-darkest: var(--ao-color-grey-darkest);--ao-color-canvas: #f1f1f1;--ao-color-sheet: #f9f9f9;--ao-color-card: #f9f9f9;--ao-color-text: var(--ao-color-grey-darkest);--ao-color-danger: var(--ao-color-red-light);--ao-color-warning: var(--ao-color-sand-base);--ao-color-success: var(--ao-color-teal-light);--ao-color-text-contrast: var(--ao-color-white);--ao-color-group: rgba(255, 255, 255, .2);--ao-color-backdrop: rgba(0, 0, 0, .7);--ao-grid-size: 8px;--ao-space-xs: calc(var(--ao-grid-size) / 4);--ao-space-sm: calc(var(--ao-grid-size) / 2);--ao-space-md: calc(var(--ao-grid-size) * 1);--ao-space-lg: calc(var(--ao-grid-size) * 3 / 2);--ao-space-xl: calc(var(--ao-grid-size) * 2);--ao-space-xxl: calc(var(--ao-grid-size) * 4);--ao-border-width-sm: 1px;--ao-border-width-md: 2px;--ao-border-width-lg: 4px;--ao-border-width-xl: 6px;--ao-border-radius-xs: 2px;--ao-border-radius-sm: 4px;--ao-border-radius-md: 8px;--ao-border-radius-lg: 16px;--ao-border-radius-xl: 24px;--ao-border-radius-round: 100em;font-size:15px;--ao-font-size-base: 1rem;--ao-font-size-text: var(--ao-font-size-base);--ao-font-size-input: var(--ao-font-size-base);--ao-font-size-h5: var(--ao-font-size-base);--ao-font-size-h4: calc(var(--ao-font-size-base) * 1.25);--ao-font-size-h3: calc(var(--ao-font-size-h4) * 1.25);--ao-font-size-h2: calc(var(--ao-font-size-h3) * 1.25);--ao-font-size-h1: calc(var(--ao-font-size-h2) * 1.25);--ao-font-size-label: calc(var(--ao-font-size-base) / 1.25);--ao-font-size-tag: calc(var(--ao-font-size-label) / 1.25);--ao-font-size-button: var(--ao-font-size-base);--ao-font-weight-extra-light: 200;--ao-font-weight-regular: 400;--ao-font-weight-medium: 500;--ao-font-weight-semi-bold: 600;--ao-font-weight-bold: 800;--ao-font-weight-extra-bold: 900;--ao-font-stack-system-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;--ao-font-stack-sans: "Kumbh Sans", var(--ao-font-stack-system-sans);--ao-icon-size-sm: calc(var(--ao-grid-size) * 9 / 5);--ao-icon-size-md: calc(var(--ao-grid-size) * 3);--ao-icon-size-lg: calc(var(--ao-grid-size) * 4);--ao-icon-size-xl: calc(var(--ao-grid-size) * 5);--ao-transition-ease: cubic-bezier(.215, .61, .355, 1);--ao-shadow-key-umbra-opacity: .2;--ao-shadow-key-penumbra-opacity: .14;--ao-shadow-ambient-shadow-opacity: .12;--ao-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 1px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 5px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 3px -2px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity)), 0 1px 8px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity));--ao-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 10px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 2px 4px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 1px 18px 0 rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 3px 5px -1px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 3px 14px 2px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 5px 5px -3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 6px 30px 5px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 8px 10px -5px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity));--ao-elevation-24dp: 0 9px 46px 8px rgba(0, 0, 0, var(--ao-shadow-key-penumbra-opacity)), 0 11px 15px -7px rgba(0, 0, 0, var(--ao-shadow-ambient-shadow-opacity)), 0 24px 38px 3px rgba(0, 0, 0, var(--ao-shadow-key-umbra-opacity))}html,body{font-family:var(--ao-font-stack-sans)}[class^=ao-]{scrollbar-width:thin}[class^=ao-]::-webkit-scrollbar{background-color:transparent;width:var(--ao-space-md);height:var(--ao-space-md);border-radius:var(--ao-border-radius-round)}[class^=ao-]::-webkit-scrollbar-thumb{background:var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-round);cursor:grab}:root{--ao-input-color: inherit;--ao-input-bg: #fff;--ao-input-border-radius: var(--ao-border-radius-sm);--ao-input-border-width: var(--ao-border-width-sm);--ao-input-border-color: var(--ao-color-neutral-light);--ao-textarea-bg: var(--ao-input-bg)}.ao-fieldset{border-width:0;padding:0;margin:0}.ao-fieldset+.ao-fieldset{margin-block-start:var(--ao-space-xl)}.ao-fieldset__title{display:flex;align-items:center;gap:var(--ao-space-sm);color:var(--ao-color-neutral-dark)}.ao-field__row{display:flex;flex-direction:row;gap:var(--ao-space-lg)}.ao-field__row+.ao-field__row{margin-block-start:var(--ao-space-lg)}.ao-field{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ao-space-md)}.ao-field--full{flex:1;width:100%}.ao-field--multiselect{min-width:20ch}.ao-field--inline{flex-direction:row;align-items:center}.ao-field__label{font-size:var(--ao-font-size-label)}.ao-field__input{padding-inline:var(--ao-space-lg);padding-block:var(--ao-space-md);margin:0;border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-input-bg)}.ao-field__input:is(:focus,:active,:hover){--ao-input-border-color: var(--ao-color-primary-base)}.ao-field__textarea{padding:var(--ao-space-lg);border:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:var(--ao-input-border-radius);color:var(--ao-input-color);background-color:var(--ao-textarea-bg);flex:1;width:100%;resize:vertical}.ao-multiselect{--ms-font-size: var(--font-size-text);--ms-line-height: 1.2;--ms-border-color: var(--ao-color-neutral-lightest);--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: var(--ao-input-border-color);--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-md);--ms-py: var(--ao-space-md);--ms-px: var(--ao-space-lg);--ms-ring-color: var(--ao-color-primary-lightest);--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-tag-font-size: var(--ao-font-size-tag);--ms-tag-font-weight: var(--ao-font-weight-regular);--ms-tag-bg: var(--ao-color-primary-base);--ms-tag-radius: var(--ao-border-radius-xl);--ms-tag-py: var(--ao-space-sm);--ms-tag-my: 0;--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}input[readonly]{cursor:default}.is-disabled>.multiselect-wrapper{cursor:default}.ao-field__input::-webkit-outer-spin-button,.ao-field__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ao-field__input[type=number]{-moz-appearance:textfield}.multiselect{align-items:center;background:var(--ms-bg,#fff);border:var(--ms-border-width,1px) solid var(--ms-border-color,#d1d5db);border-radius:var(--ms-radius,4px);box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-font-size,1rem);justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect.is-open{border-radius:var(--ms-radius,4px) var(--ms-radius,4px) 0 0}.multiselect.is-open-top{border-radius:0 0 var(--ms-radius,4px) var(--ms-radius,4px)}.multiselect.is-disabled{background:var(--ms-bg-disabled,#f3f4f6);cursor:default}.multiselect.is-active{border:var(--ms-border-width-active,var(--ms-border-width,1px)) solid var(--ms-border-color-active,var(--ms-border-color,#d1d5db));box-shadow:0 0 0 var(--ms-ring-width,3px) var(--ms-ring-color,rgba(16,185,129,.188))}.multiselect-wrapper{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;justify-content:flex-end;margin:0 auto;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);outline:none;position:relative;width:100%}.multiselect-multiple-label,.multiselect-placeholder,.multiselect-single-label{align-items:center;background:transparent;box-sizing:border-box;display:flex;height:100%;left:0;line-height:var(--ms-line-height,1.375);max-width:100%;padding-left:var(--ms-px,.875rem);padding-right:calc(1.25rem + var(--ms-px, .875rem)*3);pointer-events:none;position:absolute;top:0}.multiselect-placeholder{color:var(--ms-placeholder-color,#9ca3af)}.multiselect-single-label-text{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ms-bg,#fff);border:0;border-radius:var(--ms-radius,4px);bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;height:100%;left:0;outline:none;padding-left:var(--ms-px,.875rem);position:absolute;right:0;top:0;width:100%}.multiselect-search::-webkit-search-cancel-button,.multiselect-search::-webkit-search-decoration,.multiselect-search::-webkit-search-results-button,.multiselect-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-tags{flex-grow:1;flex-shrink:1;flex-wrap:wrap;margin:var(--ms-tag-my,.25rem) 0 0;padding-left:var(--ms-py,.5rem)}.multiselect-tag,.multiselect-tags{align-items:center;display:flex;min-width:0}.multiselect-tag{background:var(--ms-tag-bg,#10b981);border-radius:var(--ms-tag-radius,4px);color:var(--ms-tag-color,#fff);font-size:var(--ms-tag-font-size,.875rem);font-weight:var(--ms-tag-font-weight,600);line-height:var(--ms-tag-line-height,1.25rem);margin-bottom:var(--ms-tag-my,.25rem);margin-right:var(--ms-tag-mx,.25rem);padding:var(--ms-tag-py,.125rem) 0 var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem);white-space:nowrap}.multiselect-tag.is-disabled{background:var(--ms-tag-bg-disabled,#9ca3af);color:var(--ms-tag-color-disabled,#fff);padding-right:var(--ms-tag-px,.5rem)}.multiselect-tag-wrapper{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiselect-tag-wrapper-break{white-space:normal;word-break:break-all}.multiselect-tag-remove{align-items:center;border-radius:var(--ms-tag-remove-radius,4px);display:flex;justify-content:center;margin:var(--ms-tag-remove-my,0) var(--ms-tag-remove-mx,.125rem);padding:var(--ms-tag-remove-py,.25rem) var(--ms-tag-remove-px,.25rem)}.multiselect-tag-remove:hover{background:rgba(0,0,0,.063)}.multiselect-tag-remove-icon{background-color:currentColor;display:inline-block;height:.75rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;opacity:.8;width:.75rem}.multiselect-tags-search-wrapper{display:inline-block;flex-grow:1;flex-shrink:1;height:100%;margin:0 var(--ms-tag-mx,4px) var(--ms-tag-my,4px);position:relative}.multiselect-tags-search-copy{display:inline-block;height:1px;visibility:hidden;white-space:pre-wrap;width:100%}.multiselect-tags-search{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;bottom:0;box-sizing:border-box;font-family:inherit;font-size:inherit;left:0;outline:none;padding:0;position:absolute;right:0;top:0;width:100%}.multiselect-tags-search::-webkit-search-cancel-button,.multiselect-tags-search::-webkit-search-decoration,.multiselect-tags-search::-webkit-search-results-button,.multiselect-tags-search::-webkit-search-results-decoration{-webkit-appearance:none}.multiselect-inifite{align-items:center;display:flex;justify-content:center;min-height:calc(var(--ms-border-width, 1px)*2 + var(--ms-font-size, 1rem)*var(--ms-line-height, 1.375) + var(--ms-py, .5rem)*2);width:100%}.multiselect-inifite-spinner,.multiselect-spinner{animation:multiselect-spin 1s linear infinite;background-color:var(--ms-spinner-color,#10b981);flex-grow:0;flex-shrink:0;height:1rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 512 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m456.433 371.72-27.79-16.045c-7.192-4.152-10.052-13.136-6.487-20.636 25.82-54.328 23.566-118.602-6.768-171.03-30.265-52.529-84.802-86.621-144.76-91.424C262.35 71.922 256 64.953 256 56.649V24.56c0-9.31 7.916-16.609 17.204-15.96 81.795 5.717 156.412 51.902 197.611 123.408 41.301 71.385 43.99 159.096 8.042 232.792-4.082 8.369-14.361 11.575-22.424 6.92z'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:1rem;z-index:10}.multiselect-spinner{margin:0 var(--ms-px,.875rem) 0 0}.multiselect-clear{display:flex;flex-grow:0;flex-shrink:0;opacity:1;padding:0 var(--ms-px,.875rem) 0 0;position:relative;transition:.3s;z-index:10}.multiselect-clear:hover .multiselect-clear-icon{background-color:var(--ms-clear-color-hover,#000)}.multiselect-clear-icon{background-color:var(--ms-clear-color,#999);display:inline-block;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m207.6 256 107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z'/%3E%3C/svg%3E");transition:.3s}.multiselect-caret,.multiselect-clear-icon{height:1.125rem;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.625rem}.multiselect-caret{background-color:var(--ms-caret-color,#999);flex-grow:0;flex-shrink:0;margin:0 var(--ms-px,.875rem) 0 0;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 320 512' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");pointer-events:none;position:relative;transform:rotate(0);transition:transform .3s;z-index:10}.multiselect-caret.is-open{pointer-events:auto;transform:rotate(180deg)}.multiselect-dropdown{-webkit-overflow-scrolling:touch;background:var(--ms-dropdown-bg,#fff);border:var(--ms-dropdown-border-width,1px) solid var(--ms-dropdown-border-color,#d1d5db);border-radius:0 0 var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px);bottom:0;display:flex;flex-direction:column;left:calc(var(--ms-border-width, 1px)*-1);margin-top:calc(var(--ms-border-width, 1px)*-1);max-height:var(--ms-max-height,10rem);outline:none;overflow-y:scroll;position:absolute;right:calc(var(--ms-border-width, 1px)*-1);transform:translateY(100%);z-index:100}.multiselect-dropdown.is-top{border-radius:var(--ms-dropdown-radius,4px) var(--ms-dropdown-radius,4px) 0 0;bottom:auto;top:var(--ms-border-width,1px);transform:translateY(-100%)}.multiselect-dropdown.is-hidden{display:none}.multiselect-options{display:flex;flex-direction:column;list-style:none;margin:0;padding:0}.multiselect-group{margin:0;padding:0}.multiselect-group-label{align-items:center;background:var(--ms-group-label-bg,#e5e7eb);box-sizing:border-box;color:var(--ms-group-label-color,#374151);cursor:default;display:flex;font-size:.875rem;font-weight:600;justify-content:flex-start;line-height:var(--ms-group-label-line-height,1.375);padding:var(--ms-group-label-py,.3rem) var(--ms-group-label-px,.75rem);text-align:left;text-decoration:none}.multiselect-group-label.is-pointable{cursor:pointer}.multiselect-group-label.is-pointed{background:var(--ms-group-label-bg-pointed,#d1d5db);color:var(--ms-group-label-color-pointed,#374151)}.multiselect-group-label.is-selected{background:var(--ms-group-label-bg-selected,#059669);color:var(--ms-group-label-color-selected,#fff)}.multiselect-group-label.is-disabled{background:var(--ms-group-label-bg-disabled,#f3f4f6);color:var(--ms-group-label-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-group-label.is-selected.is-pointed{background:var(--ms-group-label-bg-selected-pointed,#0c9e70);color:var(--ms-group-label-color-selected-pointed,#fff)}.multiselect-group-label.is-selected.is-disabled{background:var(--ms-group-label-bg-selected-disabled,#75cfb1);color:var(--ms-group-label-color-selected-disabled,#d1fae5)}.multiselect-group-options{margin:0;padding:0}.multiselect-option{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:var(--ms-option-font-size,1rem);justify-content:flex-start;line-height:var(--ms-option-line-height,1.375);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem);text-align:left;text-decoration:none}.multiselect-option.is-pointed{background:var(--ms-option-bg-pointed,#f3f4f6);color:var(--ms-option-color-pointed,#1f2937)}.multiselect-option.is-selected{background:var(--ms-option-bg-selected,#10b981);color:var(--ms-option-color-selected,#fff)}.multiselect-option.is-disabled{background:var(--ms-option-bg-disabled,#fff);color:var(--ms-option-color-disabled,#d1d5db);cursor:not-allowed}.multiselect-option.is-selected.is-pointed{background:var(--ms-option-bg-selected-pointed,#26c08e);color:var(--ms-option-color-selected-pointed,#fff)}.multiselect-option.is-selected.is-disabled{background:var(--ms-option-bg-selected-disabled,#87dcc0);color:var(--ms-option-color-selected-disabled,#d1fae5)}.multiselect-no-options,.multiselect-no-results{color:var(--ms-empty-color,#4b5563);padding:var(--ms-option-py,.5rem) var(--ms-option-px,.75rem)}.multiselect-fake-input{background:transparent;border:0;bottom:-1px;font-size:0;height:1px;left:0;outline:none;padding:0;position:absolute;right:0;width:100%}.multiselect-fake-input:active,.multiselect-fake-input:focus{outline:none}.multiselect-assistive-text{clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;position:absolute;width:1px}.multiselect-spacer{display:none}[dir=rtl] .multiselect-multiple-label,[dir=rtl] .multiselect-placeholder,[dir=rtl] .multiselect-single-label{left:auto;padding-left:calc(1.25rem + var(--ms-px, .875rem)*3);padding-right:var(--ms-px,.875rem);right:0}[dir=rtl] .multiselect-search{padding-left:0;padding-right:var(--ms-px,.875rem)}[dir=rtl] .multiselect-tags{padding-left:0;padding-right:var(--ms-py,.5rem)}[dir=rtl] .multiselect-tag{margin-left:var(--ms-tag-mx,.25rem);margin-right:0;padding:var(--ms-tag-py,.125rem) var(--ms-tag-px,.5rem) var(--ms-tag-py,.125rem) 0}[dir=rtl] .multiselect-tag.is-disabled{padding-left:var(--ms-tag-px,.5rem)}[dir=rtl] .multiselect-caret,[dir=rtl] .multiselect-spinner{margin:0 0 0 var(--ms-px,.875rem)}[dir=rtl] .multiselect-clear{padding:0 0 0 var(--ms-px,.875rem)}@keyframes multiselect-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes blink-ad6da4a9{0%,to{opacity:1}50%{opacity:0}}.dot[data-v-ad6da4a9]{animation:blink-ad6da4a9 1.5s ease-in-out infinite}.dot--1[data-v-ad6da4a9]{animation-delay:0}.dot--2[data-v-ad6da4a9]{animation-delay:.5s}.dot--3[data-v-ad6da4a9]{animation-delay:1s}.ao-icon{color:inherit;fill:currentColor;width:var(--ao-icon-size);height:var(--ao-icon-size)}.ao-icon *{fill:inherit}.ao-icon--sm{--ao-icon-size: var(--ao-icon-size-sm)}.ao-icon--md{--ao-icon-size: var(--ao-icon-size-md)}.ao-icon--lg{--ao-icon-size: var(--ao-icon-size-lg)}.ao-icon--xl{--ao-icon-size: var(--ao-icon-size-xl)}.ao-button{--ao-button-main-color: initial;--ao-button-secondary-color: initial;--ao-button-color: var(--ao-button-main-color);--ao-button-bg: var(--ao-button-secondary);--ao-button-border-color: transparent;--ao-button-padding: var(--ao-space-sm);--ao-button-label-padding: var(--ao-space-sm);--ao-button-border-radius: var(--ao-border-radius-md);--ao-button-line-height: var(--ao-icon-size-md);--ao-button-font-size: var(--ao-font-size-button);display:flex;padding:var(--ao-button-padding);align-items:center;border-width:var(--ao-border-width-md);border-style:solid;border-radius:var(--ao-button-border-radius);border-color:var(--ao-button-border-color);color:var(--ao-button-color);background-color:var(--ao-button-bg);cursor:pointer;font-size:var(--ao-button-font-size);font-weight:var(--ao-font-weight-semi-bold);line-height:var(--ao-button-line-height)}.ao-button--primary{--ao-button-main-color: var(--ao-color-primary-base)}.ao-button--secondary{--ao-button-main-color: var(--ao-color-success)}.ao-button--neutral{--ao-button-main-color: var(--ao-color-neutral-base)}.ao-button--black{--ao-button-main-color: var(--ao-color-neutral-darkest)}.ao-button--warning{--ao-button-main-color: var(--ao-color-warning)}.ao-button--danger{--ao-button-main-color: var(--ao-color-danger)}.ao-button--success{--ao-button-main-color: var(--ao-color-success)}.ao-button--ghost{--ao-border-color: transparent;--ao-background-color: transparent}.ao-button--outline{--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid{--ao-button-color: var(--ao-button-secondary-color);--ao-button-bg: var(--ao-button-main-color);--ao-button-border-color: var(--ao-button-main-color)}.ao-button--solid:is(.ao-button--primary,.ao-button--secondary,.ao-button--neutral,.ao-button--black){--ao-button-color: var(--ao-color-white)}.ao-button--icon-start{flex-direction:row-reverse}.ao-button--icon-end{flex-direction:row}.ao-button__icon{flex-shrink:0}.ao-button__label{padding-inline:var(--ao-button-label-padding);flex:1;width:100%}.ao-button--footer{width:100%}.ao-button--footer .ao-button__label{text-align:center}.ao-button--is-disabled{cursor:default}.ao-button--sm{--ao-button-padding: var(--ao-space-xs);--ao-button-label-padding: var(--ao-space-xs);--ao-button-line-height: var(--ao-icon-size-sm);--ao-button-font-size: var(--ao-font-size-label)}.ao-button--lg{--ao-button-line-height: var(--ao-icon-size-lg);--ao-button-font-size: var(--ao-font-size-h4)}.ao-button--xl{--ao-button-line-height: var(--ao-icon-size-xl);--ao-button-font-size: var(--ao-font-size-h3)}.ao-button--round{--ao-button-border-radius: var(--ao-border-radius-round)}.ao-title{--ao-title-color: inherit;margin:0;font-weight:var(--ao-font-weight-semi-bold);font-family:var(--ao-font-family-title);color:var(--ao-title-color);cursor:default}.ao-title--editable{cursor:text}.ao-title--readonly{padding-block:var(--ao-space-md);border:var(--ao-input-border-width) solid transparent}.ao-title--1{font-size:var(--ao-font-size-h1)}.ao-title--2{font-size:var(--ao-font-size-h2)}.ao-title--3{font-size:var(--ao-font-size-h3)}.ao-title--4{font-size:var(--ao-font-size-h4)}.ao-title--5{font-size:var(--ao-font-size-h5)}.ao-title--primary{--ao-title-color: var(--ao-color-primary-base)}.ao-title--neutral{--ao-title-color: var(--ao-color-neutral-base)}.ao-title--black{--ao-title-color: var(--ao-color-neutral-darkest)}.ao-title--editing{--ao-title-color: var(--ao-color-primary-dark);width:100%}.ao-card-horiz{--ao-card-horiz-bg-color: var(--ao-color-card);--ao-card-horiz-text-color: inherit;--ao-card-horiz-label-color: var(--ao-color-neutral-base);display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;grid-template-areas:"drag header secondary" "drag body body" "drag footer footer";border-radius:var(--ao-border-radius-md);color:var(--ao-card-horiz-text-color);background-color:var(--ao-card-horiz-bg-color);overflow:hidden;cursor:pointer;container:card-horiz / inline-size}.ao-card-horiz:hover{box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz--active{--ao-card-horiz-bg-color: var(--ao-color-primary-base);--ao-card-horiz-text-color: var(--ao-color-white);box-shadow:var(--ao-elevation-2dp)}.ao-card-horiz__header{display:flex;align-items:center;padding-inline:var(--ao-space-md);padding-block-start:var(--ao-space-md);grid-area:header;width:100%}.ao-card-horiz__title-group{display:flex;flex-direction:column;flex-grow:1;overflow:hidden;width:100%}.ao-card-horiz__title{min-width:2ch;min-height:1em}.ao-card-horiz__title,.ao-card-horiz__subtitle{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:flex-start}.ao-card-horiz__subtitle{margin-top:var(--ao-space-xs);font-size:var(--ao-font-size-base)}.ao-card-horiz__body{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block:var(--ao-space-md);grid-area:body}.ao-card-horiz__footer{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-md);padding-block-end:var(--ao-space-md);grid-area:footer}.ao-card-horiz__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-card-horiz__drag-handle{opacity:0;visibility:hidden}.ao-card-horiz:hover .ao-card-horiz__drag-handle{opacity:1;visibility:visible}.ao-card-horiz__secondary{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);opacity:0;visibility:hidden;grid-area:secondary}.ao-card-horiz:hover .ao-card-horiz__secondary{opacity:1;visibility:visible}@container column (min-width: 480px){.ao-card-horiz{display:flex;flex-direction:row}.ao-card-horiz__header{padding-block:var(--ao-space-md);padding-inline-end:0;flex-shrink:1;min-width:0}.ao-card-horiz__body{padding-inline-end:0;flex-shrink:0}.ao-card-horiz__footer{align-items:flex-end;padding-block:var(--ao-space-md);grid-area:footer;flex-shrink:0}}@container column (min-width: 768px){.ao-card-horiz__header{width:50%}}@container column (min-width: 1024px){.ao-card-horiz__header{width:33%}}@container column (min-width: 1280px){.ao-card-horiz__header{width:25%}}.ao-tag{--ao-tag-color: var(--ao-color-text-contrast);--ao-tag-bg: var(transparent);--ao-tag-border-radius: var(--ao-border-radius-xl);display:flex;flex-direction:row;align-items:stretch;border:var(--ao-border-width-sm) var(--ao-tag-bg) solid;border-radius:var(--ao-tag-border-radius);font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-tag__icon{color:var(--ao-color-white)}.ao-tag--primary{--ao-tag-bg: var(--ao-color-primary-light)}.ao-tag--primary-lighter{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--black{--ao-tag-bg: var(--ao-color-neutral-darkest)}.ao-tag--secondary{--ao-tag-bg: var(--ao-color-success)}.ao-tag--neutral{--ao-tag-bg: var(--ao-color-neutral-light)}.ao-tag--solid.ao-tag--neutral{--ao-tag-color: var(--ao-color-neutral-darkest)}.ao-tag--solid .ao-tag__label{background-color:var(--ao-tag-bg)}.ao-tag--solid_icon .ao-tag__label{background-color:var(--ao-tag-bg);display:flex;gap:var(--ao-space-sm)}.ao-tag--solid .ao-tag__close{background-color:var(--ao-tag-bg)}.ao-tag--clickable .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-lightest)}.ao-tag--clickable.ao-tag--primary .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-primary-lighter)}.ao-tag--clickable.ao-tag--black .ao-tag__label:hover{--ao-tag-bg: var(--ao-color-neutral-dark)}.ao-tag--clickable .ao-tag__label{cursor:pointer}.ao-tag__label{padding:var(--ao-space-sm) var(--ao-space-md);color:var(--ao-tag-color);width:100%;border-radius:var(--ao-tag-border-radius);font-size:inherit;font-weight:inherit;text-align:inherit;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background-color:transparent;border-width:0}.ao-tag--closable .ao-tag__label{border-top-right-radius:0;border-bottom-right-radius:0}.ao-tag__close{display:flex;border-width:0;border-top-right-radius:var(--ao-tag-border-radius);border-bottom-right-radius:var(--ao-tag-border-radius);color:var(--ao-tag-color);background-color:transparent;cursor:pointer}.ao-tag--close-icon{padding:var(--ao-space-xs) var(--ao-space-md)}.ao-avatar{--ao-avatar-bg: var(--ao-color-primary-base);--ao-avatar-color: var(--ao-color-neutral-lightest);--ao-avatar-font-weight: --ao-font-weight-medium;--ao-avatar-font-size: var(--ao-font-size-base);--ao-avatar-padding: .5em;color:var(--ao-avatar-color);background-color:var(--ao-avatar-bg);position:relative;border-radius:var(--ao-border-radius-round);line-height:1;display:grid;grid-template-areas:"center";align-items:center;justify-content:center;padding:var(--ao-avatar-padding);cursor:default;overflow:hidden;font-weight:var(--ao-avatar-font-weight);font-size:var(--ao-avatar-font-size);flex-shrink:0}.ao-avatar--sm{--ao-avatar-font-weight: var(--ao-font-weight-bold);--ao-avatar-font-size: var(--ao-font-size-tag);--ao-avatar-padding: .8em}.ao-avatar--lg{--ao-avatar-font-weight: var(--ao-font-weight-light);--ao-avatar-font-size: var(--ao-font-size-h3)}.ao-avatar--xl{--ao-avatar-font-weight: var(--ao-font-weight-extra-light);--ao-avatar-font-size: var(--ao-font-size-h1)}.ao-avatar--primary{--ao-avatar-bg: var(--ao-color-primary-base)}.ao-avatar--neutral{--ao-avatar-bg: var(--ao-color-neutral-base)}.ao-avatar--black{--ao-avatar-bg: var(--ao-color-neutral-darkest)}.ao-avatar__initials{display:flex;flex-direction:column;grid-area:center;justify-content:center;align-items:center;width:1em;height:1em;text-align:center;text-transform:uppercase}.ao-avatar__close{grid-area:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);opacity:0;visibility:hidden}.ao-avatar:hover,.ao-avatar-img:hover{z-index:1}.ao-avatar:hover .ao-avatar__close,.ao-avatar-img:hover .ao-avatar__close{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}.ao-avatar-img--sm{width:var(--ao-icon-size-sm);height:var(--ao-icon-size-sm)}.ao-avatar-img--md{width:var(--ao-icon-size-md);height:var(--ao-icon-size-md)}.ao-avatar-img--lg{width:var(--ao-icon-size-lg);height:var(--ao-icon-size-lg)}.ao-avatar-img--xl{width:var(--ao-icon-size-xl);height:var(--ao-icon-size-xl)}.ao-avatar-img{position:relative;border-radius:var(--ao-border-radius-round);display:grid;grid-template-areas:"center";align-items:center;justify-content:center;cursor:default;overflow:hidden;flex-shrink:0}.ao-avatar__image{width:100%;height:100%}.ao-card-template__body{display:flex;flex-direction:row;align-items:center;flex:1}.ao-card-template__footer{display:flex;gap:var(--ao-space-md)}.ao-card-template__col-title{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-card-template__col-label{font-size:var(--ao-font-size-label);font-weight:600}.ao-card-template__col{display:flex;flex-direction:column;gap:var(--ao-space-md);color:var(--ao-color-neutral-dark);font-size:var(--ao-font-size-label)}.ao-card-template__col--phases{flex-grow:1;color:var(--ao-color-neutral-darkest)}.ao-card-template__phases-list{display:flex;gap:var(--ao-space-sm);padding:0;margin:0}.ao-card-template__col-body{display:flex;flex-direction:row;align-items:flex-start;flex:1}.ao-card-template__subitems{display:flex;margin:0;padding:0;gap:var(--ao-space-sm)}.ao-card-template__subitem{display:flex;align-items:center;list-style-type:none;font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-semi-bold)}.ao-page-header{display:flex;container:header / inline-size;z-index:1}.ao-page-header-main{display:flex;gap:var(--ao-space-sm);flex-grow:1}.ao-page-header-secondary{display:flex;gap:var(--ao-space-sm)}@container header (min-width: 720px){.ao-page-header-main{flex-direction:row;align-items:center}.ao-page-header-secondary{margin-inline-start:auto;align-items:center;justify-content:flex-end;flex-grow:1}}.ao-button-card{--ao-button-card-color: inherit;--ao-button-card-bg: transparent;--ao-button-card-border-color: currentColor;--ao-button-card-padding: var(--ao-space-md);--ao-button-card-label-padding: var(--ao-space-sm);--ao-button-card-border-radius: var(--ao-border-radius-md);display:flex;width:100%;flex:1;justify-content:center;padding:var(--ao-button-card-padding);flex-direction:column-reverse;align-items:center;border-width:var(--ao-border-width-sm);border-style:dashed;border-radius:var(--ao-button-card-border-radius);border-color:var(--ao-button-card-border-color);color:var(--ao-button-card-color);background-color:var(--ao-button-card-bg);cursor:pointer;font-size:var(--ao-font-size-button);font-weight:var(--ao-font-weight-semi-bold)}.ao-button-card--primary{--ao-button-card-color: var(--ao-color-primary-base)}.ao-button-card--secondary{--ao-button-card-color: var(--ao-color-success)}.ao-button-card--neutral{--ao-button-card-color: var(--ao-color-neutral-base)}.ao-button-card--black{--ao-button-card-color: var(--ao-color-neutral-darkest)}.ao-button-card__icon{flex-shrink:0}.ao-button-card__label{padding-inline:var(--ao-button-card-label-padding);width:100%}.ao-button-card--footer{width:100%}.ao-button-card--footer .ao-button-card__label{text-align:center}.ao-button-card--is-disabled{cursor:default}.ao-button-card--sm{--ao-button-card-padding: var(--ao-space-xs);--ao-button-card-label-padding: var(--ao-space-xs)}.ao-button-card--round{--ao-button-card-border-radius: var(--ao-border-radius-round)}.ao-card-template-item__footer{display:flex;flex:1;padding:0;margin:0;justify-content:flex-end;gap:var(--ao-space-sm);align-items:center}.ao-card-template-item__subitem{display:flex;align-items:center}.ao-card-template-item__subitem{font-size:var(--ao-font-size-label);font-weight:var(--ao-font-weight-bold)}.ao-modal__wrapper{--ao-modal-z-index: 100;--ao-modal-padding-x: var(--ao-space-sm);display:grid;grid-template-columns:5% 1fr 5%;grid-template-rows:5vh 1fr 5vh;position:absolute;top:0;left:0;width:100%;height:100%;justify-items:center;align-items:flex-start;z-index:var(--ao-modal-z-index)}.ao-modal__wrapper.ao-modal__wrapper--sm{grid-template-columns:10% 1fr 10%;grid-template-rows:15vh auto 25vh}.ao-modal__backdrop{width:100%;height:100%;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-backdrop)}.ao-modal{display:flex;width:100%;max-width:768px;height:100%;min-height:0;flex-direction:column;overflow-y:auto;grid-column:1 / -1;grid-row:1 / -1;background-color:var(--ao-color-sheet);container:modal / inline-size}.ao-modal__wrapper--sm .ao-modal{height:auto}.ao-modal__header{display:flex;flex-direction:column;padding-inline:var(--ao-modal-padding-x)}.ao-modal__header-meta{display:flex;justify-content:flex-end}.ao-modal__body{display:flex;height:100%;min-height:0;flex-direction:column;flex-grow:1}.ao-modal__footer{display:flex;flex-direction:column}@media screen and (min-width: 480px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-lg)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow-y:auto}}@media screen and (min-width: 720px){.ao-modal__wrapper{--ao-modal-padding-x: var(--ao-space-xl)}.ao-modal{grid-column:2;grid-row:2;border-radius:var(--ao-border-radius-sm)}.ao-modal__body{flex-direction:row;overflow:hidden}}.ao-tasks{display:flex;flex-direction:column}.ao-tasks__list{display:flex;flex-direction:column;padding-inline-start:0;margin-block:0;gap:var(--ao-space-md)}.ao-tasks__list-footer{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-block-start:var(--ao-space-md)}.ao-tasks__list-footer .ao-button{padding-left:0}.ao-subtask{display:flex;list-style-type:none;gap:var(--ao-space-md)}.ao-subtask__check{padding-left:0}.ao-subtask__field{flex-grow:1;border:0;border-bottom:var(--ao-input-border-width) solid var(--ao-input-border-color);border-radius:0}.ao-subtask__field--checked{text-decoration:line-through}.ao-subtask__field:focus{outline:none;border-bottom:var(--ao-border-width-md) solid var(--ao-input-border-color)}.ao-subtask__assignees{width:30%}.ao-subtask__assignees .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-subtask__assignees .multiselect-wrapper{justify-content:flex-start}.ao-subtask__delete{opacity:0;visibility:hidden}.ao-subtask:is(:hover,:focus-within) .ao-subtask__delete{opacity:1;visibility:visible}.ao-files__wrapper{--ao-input-file-color: var(--ao-color-neutral-darkest);--ao-input-file-border-color: transparent;--ao-input-file-placeholder-color: var(--ao-color-neutral-base);--ao-input-file-bg: transparent;position:relative;display:flex;width:100%;flex-direction:column;flex:1;border:var(--ao-border-width-md) solid var(--ao-input-file-border-color);border-radius:var(--ao-border-radius-md);background-color:var(--ao-input-file-bg);font-family:inherit;font-size:var(--ao-font-size-text);color:var(--ao-input-file-color);overflow-y:auto}.ao-files__wrapper--drop-active{--ao-input-file-border-color: var(--ao-color-primary-base);--ao-input-file-bg: var(--ao-color-primary-lightest);outline:0}.input-field{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.ao-files__input{display:flex}.ao-files__placeholder{width:100%;margin-block-start:var(--ao-space-md);text-align:center;color:var(--ao-color-neutral-base)}.ao-files__list{display:flex;padding:0;padding-block-start:var(--ao-space-md);margin:0;gap:var(--ao-space-sm);flex-wrap:wrap}.ao-file{display:flex;position:relative;padding:0;padding-inline-end:var(--ao-space-xl);list-style-type:none;background-color:var(--ao-color-primary-lighter);border-radius:var(--ao-border-radius-md)}.ao-files__delete-button{position:absolute;top:50%;right:0;transform:translateY(-50%) scale(0);transition:50ms var(--ao-transition-ease)}.ao-file:is(:hover,:focus-within) .ao-files__delete-button{transform:translateY(-50%) scale(1)}.ao-file__link{width:100%;display:flex;flex:1;align-items:center;padding-block:var(--ao-space-md);padding-inline-start:var(--ao-space-md);color:var(--ao-color-primary-darker);text-decoration:none}.ao-file__icon{flex:0}.ao-file__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--ao-font-size-label)}.ao-files__dropzone{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--ao-color-backdrop)}.ao-files__dropzone-label{font-size:var(--ao-font-size-text);color:var(--ao-color-text-contrast)}.ao-comment{--ao-comment-border-radius: var(--ao-border-radius-md);--ao-comment-bg: var(--ao-color-neutral-lightest);display:grid;gap:var(--ao-space-sm);grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;font-size:var(--ao-font-size-text)}.ao-comment__avatar{grid-row:2;align-self:flex-start}.ao-comment__body{padding:0 var(--ao-space-sm);grid-column:2}.ao-comment__content-wrapper{width:100%}.ao-comment__content{display:inline;width:100%;margin:0;white-space:pre-line}.ao-comment__created-at{grid-column:2;padding:0 var(--ao-space-sm);font-size:var(--ao-font-size-tag);color:var(--ao-color-neutral-light)}.ao-comment__footer{grid-column:2;display:flex;gap:var(--ao-space-sm)}.ao-comments{flex:3;overflow-y:auto}.ao-comments__list{display:flex;flex-direction:column-reverse;min-height:0;gap:var(--ao-space-lg);padding:0;padding-block-start:var(--ao-space-md);margin:0}.ao-comments__form{display:grid;gap:var(--ao-space-md);grid-template-columns:1fr auto;grid-template-rows:1fr auto;align-items:flex-end}.ao-comments__form-textarea{grid-column:1/ -1;grid-row:1/ -1}.ao-comments__form-submit{padding:var(--ao-space-md);grid-column:2;grid-row:2;display:flex;justify-content:flex-end}.mention-list{position:absolute;background:white;border:1px solid var(--ao-border-width-sm);border-radius:4px;box-shadow:0 2px 6px #00000026;z-index:1000;list-style:none;padding:0;margin:0;max-height:150px;overflow-y:auto}.mention-list li{padding:8px 12px;cursor:pointer}.mention-list li:hover{background-color:var(--ao-color-blue-lighter)}.tabbar-wrapper[data-v-0e91b31f]{display:flex;align-items:center;margin:0;font-size:var(--ao-font-size-h3);padding:var(--ao-space-sm);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-neutral-lightest)}.tab-button[data-v-0e91b31f]{border:none;background-color:transparent;padding:var(--ao-space-sm) var(--ao-space-md);border-radius:var(--ao-border-radius-sm);color:var(--ao-color-black);cursor:pointer;transition:background-color .2s ease;display:flex;align-items:center;gap:var(--ao-space-xs)}.tab-button__label[data-v-0e91b31f]{display:inline-block}.tab-button__badge[data-v-0e91b31f]{display:inline-flex;align-items:center;justify-content:center;height:1rem;min-width:1rem;padding-inline:var(--ao-space-xs);font-size:11px;font-weight:var(--ao-font-weight-regular);color:var(--ao-color-neutral);background-color:var(--ao-color-neutral-lightest);border-radius:var(--ao-border-radius-pill)}.tab-button--active[data-v-0e91b31f]{background-color:var(--ao-color-primary-base);color:var(--ao-color-white)}.tab-button--active .tab-button__badge[data-v-0e91b31f]{background-color:var(--ao-color-neutral-lightest);color:var(--ao-color-neutral-dark)}.tabbar-wrapper--underline[data-v-0e91b31f]{background-color:transparent;padding:0;border-bottom:1px solid var(--ao-color-neutral-light)}.tab-button--underline[data-v-0e91b31f]{padding:var(--ao-space-sm) var(--ao-space-lg);border-radius:0;color:var(--ao-color-neutral-dark);transition:color .2s ease,border-color .2s ease;border-bottom:2px solid transparent;margin-bottom:-1px}.tab-button--underline[data-v-0e91b31f]:hover{color:var(--ao-color-black)}.tab-button--underline.tab-button--active[data-v-0e91b31f]{background-color:transparent;color:var(--ao-color-primary-base);border-bottom-color:var(--ao-color-primary-base)}.tab-button--underline .tab-button__badge[data-v-0e91b31f]{background-color:var(--ao-color-neutral-light)}.ao-activity-details{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__header{display:flex;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-lg) var(--ao-space-md)}.ao-activity-details__main{flex-grow:1;padding:var(--ao-space-lg)}.ao-activity__category{font-weight:var(--ao-font-weight-regular)}.ao-activity-details__content{display:flex;flex-direction:column;flex-grow:1;padding-inline:var(--ao-space-lg)}.ao-activity-details__aside{border-top:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);margin-block-start:var(--ao-space-lg);padding-block-start:var(--ao-space-lg);display:flex;flex-direction:column}.ao-activity-details__aside-section:not(:empty){padding:var(--ao-space-xl) var(--ao-space-lg)}.ao-activity-details__aside-section+.ao-activity-details__aside-section:not(:empty){border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-light)}.ao-field__input--estim{width:8ch}@container modal (min-width: 480px){.ao-activity-details__content{overflow-y:auto}.ao-activity-details__aside{margin-block-start:0;border-top:0}}@container modal (min-width: 720px){.ao-activity-details{display:flex;flex-direction:column;height:auto;min-height:auto;flex-grow:1;flex-direction:row}.ao-activity-details__main{height:100%;min-height:0;flex-grow:1;overflow-y:auto}.ao-activity-details__aside{width:35%;background-color:var(--ao-color-canvas);padding-block-end:var(--ao-space-xl);padding-block-start:var(--ao-space-sm)}.ao-activity-details__aside>:nth-child(2){padding-block-start:var(--ao-space-md)}.ao-activity-details__close-button{display:flex;flex-direction:row;justify-content:end;margin-inline-end:var(--ao-space-sm)}.ao-activity-details__close-button *{cursor:pointer}.ao-activity-details__aside-section--created-by{margin-block-start:auto;border-block-start-width:0}.ao-activity-details__multiselect .multiselect-tags-search{background-color:transparent}.ao-activity-details__multiselect.ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-bg: transparent;--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-field__input:not(.ao-field__input--estim){background-color:transparent;border-color:transparent}}.ao-activity__created-by{display:flex;align-items:center;gap:var(--ao-space-sm)}.ao-activity__ao-tag{display:inline-flex;width:auto;border:none;border-radius:var(--ao-tag-border-radius)}.ao-activity__ao-tag .ao-tag__label{width:auto;max-width:100%}.assignee-inline{display:flex;align-items:center;gap:8px}.ao-activity-details__tabs{margin-block:var(--ao-space-md)}.ao-activity-details__tab-content{padding-block:var(--ao-space-md)}.ao-activity-details__description-textarea{width:100%;padding:var(--ao-space-md);border:1px solid var(--ao-color-neutral-light);border-radius:var(--ao-border-radius-sm);background-color:var(--ao-color-white);font-family:inherit;font-size:var(--ao-font-size-base);line-height:1.5;resize:vertical;transition:border-color .2s ease,box-shadow .2s ease}.ao-activity-details__description-textarea:hover{border-color:var(--ao-color-neutral-dark)}.ao-activity-details__description-textarea:focus{outline:none;border-color:var(--ao-color-primary-base);box-shadow:0 0 0 2px var(--ao-color-primary-lightest)}.ao-activity-details__description-textarea:read-only{background-color:transparent;border-color:transparent;cursor:default}.ao-activity-details__description-textarea:read-only:hover{border-color:transparent}.ao-rule-line{display:flex}.ao-rule-line__remove{visibility:hidden;opacity:0}.ao-rule-line:hover .ao-rule-line__remove{visibility:visible;opacity:1}.ao-template-rules__body{display:flex;flex-direction:column;flex:1;align-items:stretch;gap:var(--ao-space-lg)}.ao-template-rules__list{padding:0;margin:0;display:flex;flex-direction:column;flex:1;gap:var(--ao-space-md)}.ao-template-rule{list-style:none}.ao-template-details__cols{display:flex;list-style-type:none;padding:0;margin:0;container:columns / inline-size;overflow-x:auto}.ao-template-details__col{width:100%;padding-inline:var(--ao-space-md);flex-shrink:0}@container columns (min-width: 480px){.ao-template-details__col{width:50%}}@container columns (min-width: 960px){.ao-template-details__col{width:calc(1 / 3 * 100%)}}.ao-card{--ao-card-bg: var(--ao-color-card);--ao-card-color: inherit;--ao-card-padding: var(--ao-space-md);--ao-card-elevation: var(--ao-elevation-2dp);display:flex;flex-direction:row;border-radius:var(--ao-border-radius-md);background-color:var(--ao-card-bg);color:var(--ao-card-color);box-shadow:var(--ao-card-elevation);transform:translateY(0)}.ao-card__content{display:flex;flex-direction:column;width:100%}.ao-card__left-border{width:var(--ao-space-md);border-top-left-radius:var(--ao-border-radius-md);border-bottom-left-radius:var(--ao-border-radius-md)}:not(.ao-list-kanban__transition)>.ao-card{transition:all .15s var(--ao-transition-ease)}.ao-card--clickable{cursor:pointer}.ao-card--clickable:is(:hover,:focus-within){--ao-card-elevation: var(--ao-elevation-4dp);transform:translateY(-2px)}.ao-card__header{display:flex;flex-direction:column;padding-block-start:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-card__body{display:flex;flex-direction:column;flex:1;padding-inline:var(--ao-card-padding)}.ao-card__footer{display:flex;flex-direction:column;padding-block-end:var(--ao-card-padding);padding-inline:var(--ao-card-padding)}.ao-progress{--ao-progress-bg: var(--ao-color-neutral-lightest);--ao-progress-height: var(--ao-grid-size);--ao-progress-border-radius: var(--ao-border-radius-md);height:var(--ao-progress-height);width:100%;display:grid;grid-column:1 / -1;grid-row:2;background-color:var(--ao-progress-bg);border-radius:var(--ao-progress-border-radius)}.ao-progress__progress{grid-column:1;grid-row:1;border-radius:var(--ao-progress-border-radius);background-color:var(--ao-progress-color);opacity:.2}.ao-progress--success{--ao-progress-color: var(--ao-color-success)}.ao-progress--warning{--ao-progress-color: var(--ao-color-warning)}.ao-progress--danger{--ao-progress-color: var(--ao-color-danger)}.ao-progress__progress:nth-child(1){opacity:1;z-index:1}.hu-color-picker{padding:10px;background:#1d2024;border-radius:4px;box-shadow:0 0 16px #00000029;z-index:1}.hu-color-picker.light{background:#f7f8f9}.hu-color-picker.light .color-show .sucker{background:#eceef0}.hu-color-picker.light .color-type .name{background:#e7e8e9}.hu-color-picker.light .color-type .value{color:#666;background:#eceef0}.hu-color-picker.light .colors.history{border-top:1px solid #eee}.hu-color-picker canvas{vertical-align:top}.hu-color-picker .color-set{display:flex}.hu-color-picker .color-show{margin-top:8px;display:flex}.saturation{position:relative;cursor:pointer}.saturation .slide{position:absolute;left:100px;top:0;width:10px;height:10px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 1px 1px #0000004d;pointer-events:none}.color-type{display:flex;margin-top:8px;font-size:12px}.color-type .name{width:60px;height:30px;float:left;display:flex;justify-content:center;align-items:center;color:#999;background:#252930}.color-type .value{flex:1;height:30px;min-width:100px;padding:0 12px;border:0;color:#fff;background:#2e333a;box-sizing:border-box}.color-alpha{position:relative;margin-left:8px;cursor:pointer}.color-alpha .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.sucker{width:30px;fill:#9099a4;background:#2e333a;cursor:pointer;transition:all .3s}.sucker.active,.sucker:hover{fill:#1593ff}.colors{padding:0;margin:0}.colors.history{margin-top:10px;border-top:1px solid #2e333a}.colors .item{position:relative;width:16px;height:16px;margin:10px 0 0 10px;border-radius:3px;box-sizing:border-box;vertical-align:top;display:inline-block;transition:all .1s;cursor:pointer}.colors .item:nth-child(8n+1){margin-left:0}.colors .item:hover{transform:scale(1.4)}.colors .item .alpha{height:100%;border-radius:4px}.colors .item .color{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:3px}.hue{position:relative;margin-left:8px;cursor:pointer}.hue .slide{position:absolute;left:0;top:100px;width:100%;height:4px;background:#fff;box-shadow:0 0 1px #0000004d;pointer-events:none}.color-picker-wrapper{position:relative}.color-picker{box-shadow:var(--ao-elevation-2dp)}.color-picker-box{box-sizing:content-box}.ao-card-project-phase__header{display:flex;justify-content:flex-end}.ao-card-project-phase__footer{display:flex;flex-direction:column}.ao-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-card-project-phase__archive{opacity:0;visibility:hidden}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__archive{opacity:1;visibility:visible}.ao-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-card-project-phase__footer-row.ao-card-project-phase__no_deadline,.ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline{opacity:0;visibility:hidden}.ao-card-project-phase__deadline--readonly,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__deadline--input,.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-phase:is(:hover,:focus-within) .ao-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-phase__progress{flex-grow:1}.aoBadge{display:inline-block;padding:4px;width:8px;height:8px;border-radius:var(--ao-border-radius-round)}.ao-card-project-milestone{--ao-card-project-milestone-border-color: transparent;padding:0;border:var(--ao-border-width-md) solid var(--ao-card-project-milestone-border-color)}.ao-card-project-milestone__default{display:flex;justify-content:space-between}.ao-card-project-milestone__archive{display:none;height:fit-content;padding-block:var(--ao-space-md)}.ao-card-project-milestone:hover .ao-card-project-milestone__archive{display:flex}.ao-card-project-milestone__activities{display:flex;flex-direction:column}.ao-card-project-milestone__activities-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-project-milestone__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-project-milestone:hover .ao-card-project-milestone__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-project-milestone__activities-row+.ao-card-project-milestone__activities-row{margin-block-start:var(--ao-space-md)}.ao-card-project-milestone__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-project-milestone__progress{flex-grow:1}.ao-card-project-milestone__title{max-width:fit-content;display:inline;word-break:normal}.ao-card-project-item-milestone__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h5)}.ao-card-project-milestone__footer{display:flex;align-items:center;padding-block-start:var(--ao-space-sm);gap:var(--ao-space-sm)}.ao-card-project-milestone__assignee{display:flex;justify-content:flex-start;margin-inline-start:auto}.ao-card-project-milestone__deadline{padding-block:var(--ao-space-sm)}.ao-card-project-milestone__important{color:var(--ao-color-danger)}.ao-card-project-milestone__important--selected{color:var(--ao-color-white)}.ao-title-with-badge-wrapper{display:flex;align-items:center;gap:8px}.ao-mapping-card-project-phase__header{display:flex;justify-content:flex-end;opacity:0;visibility:collapse;//transition: collapse .15s}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__header{opacity:1;visibility:visible}.ao-mapping-card-project-phase__footer{display:flex;flex-direction:column}.ao-mapping-card-project-phase__footer-row{display:grid;grid-template-columns:auto;grid-template-rows:auto;gap:var(--ao-space-md);justify-items:start;position:relative}.ao-mapping-card-project-phase__archive{opacity:0;visibility:hidden}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__archive{opacity:1;visibility:visible}.ao-mapping-card-project-phase__deadline{font-size:var(--ao-font-size-label);padding:var(--ao-space-sm);grid-column:1;grid-row:1}.ao-mapping-card-project-phase__deadline--input{padding:var(--ao-space-sm);border-width:0;background-color:transparent}.ao-mapping-card-project-phase__deadline--readonly{letter-spacing:.1em}.ao-mapping-card-project-phase__footer-row.ao-mapping-card-project-phase__no_deadline,.ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline{opacity:0;visibility:collapse}.ao-mapping-card-project-phase__deadline--readonly,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__deadline--input,.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__no_deadline{opacity:1;visibility:visible}.ao-mapping-card-project-phase__title{padding-block:0;display:inline;word-break:normal}.ao-card-project-item__title-line{display:block;word-break:normal}.ao-card-project-item-phase__estimation{font-weight:var(--ao-font-weight-semi-bold);display:inline;font-size:var(--ao-font-size-h4)}.ao-mapping-card-project-phase__secondary{display:flex;position:absolute;top:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-mapping-card-project-phase:is(:hover,:focus-within) .ao-mapping-card-project-phase__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-mapping-card-project-phase__footer-row--progress{padding-block:var(--ao-space-sm)}.ao-mapping-card-project-phase__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-mapping-card-project-phase__progress{flex-grow:1}.ao-project-phase__drag-handle{opacity:0;visibility:hidden}.ao-project-phase__drag{display:flex;justify-content:center;align-items:center;padding-inline:var(--ao-space-md);cursor:grab;grid-area:drag}.ao-project-phase:hover .ao-project-phase__drag-handle{opacity:1;visibility:visible}.ao-project-phase{display:flex;flex-direction:column;padding-block:var(--ao-space-md)}.ao-project-phase--selected .ao-project-phase__col-phase{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-xl) var(--ao-space-xxl);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-mapping-project-phase__col-phase{display:flex;flex-shrink:0;flex-direction:column;padding:var(--ao-space-lg) var(--ao-space-sm);margin-inline-end:var(--ao-space-md);justify-content:center;border-radius:var(--ao-border-radius-md)}.ao-project-phase__col-milestones{display:flex;flex:1;padding:var(--ao-space-md);gap:var(--ao-space-md);overflow-x:auto;scroll-snap-type:x mandatory}.ao-project-phase__milestones,.ao-project-phase__milestones-list{display:contents}.ao-project-phase__milestone{scroll-snap-align:center;width:90%;flex-shrink:0}.ao-project-phase__milestones-list-footer{display:flex;scroll-snap-align:center}@container page (min-width: 480px){.ao-project-phase__milestones-list{grid-auto-columns:45%;overflow-x:auto}.ao-project-phase__milestone{width:45%}}@container page (min-width: 720px){.ao-project-phase{flex-direction:row}.ao-project-phase__col-phase,.ao-mapping-project-phase__col-phase{width:20em}.ao-project-phase+.ao-project-phase{border-block-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-project-phase__col-milestones{flex-direction:column;border-inline-start:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest);overflow:hidden}.ao-project-phase__milestones{display:flex;width:100%;flex-direction:row;align-items:center;height:100%;padding:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet)}.ao-project-phases__draggable-card{margin:var(--ao-space-md);border-radius:var(--ao-border-radius-md);background-color:var(--ao-color-sheet);display:flex;flex-direction:row}.ao-project-phase--selected .ao-project-phase__milestones{background-color:var(--ao-color-primary-lightest)}.ao-project-phase__milestones-list{display:grid;padding:var(--ao-space-md);flex-shrink:1;max-width:100%;min-width:0;grid-auto-columns:minmax(max(20%,147px),196px);grid-auto-flow:column;align-items:stretch;gap:var(--ao-space-md);scroll-snap-type:x mandatory;scroll-snap-padding:var(--ao-space-md)}.ao-project-phase__milestone{width:100%;scroll-snap-align:start}.ao-project-phase__milestones-list-footer{align-items:center;padding:var(--ao-space-md)}.ao-project-phase__milestone-add{flex-grow:0;flex-shrink:0}}.ao-project__phases{display:flex;flex-direction:column;height:100%;min-height:0;padding-inline-start:0;margin-block:0}.ao-project-phase__add-phase{padding:var(--ao-space-lg)}@container page (min-width: 720px){.ao-project-phase__phases-list-footer{display:flex}.ao-project-phase__empty_drag{width:40px}.ao-project-phase__phases-list-footer .ao-project-phase__col-phase{max-width:20em;padding:var(--ao-space-md)}.ao-project-phase__phases-list-footer .ao-project-phase__col-milestones{border:none}}.ao-add-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md);padding:0 var(--ao-space-xl) var(--ao-space-xl) var(--ao-space-xl)}.ao-add-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-add-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;margin-block-start:var(--ao-space-md)}.ao-save-template-modal__form-body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-save-template-modal__form-footer{display:flex;justify-content:flex-end;margin-block-start:var(--ao-space-lg)}.ao-save-template-modal__form{padding:0 var(--ao-space-lg) var(--ao-space-lg) var(--ao-space-lg)}.ao-save-template-modal__phases{margin-top:var(--ao-space-md)}.ao-field__label{padding:var(--ao-space-md) 0;font-size:var(--ao-font-size-base)}.ao-save-template-modal__phases-list{display:flex;flex-direction:column;gap:var(--ao-space-sm)}.ao-field--checkbox{display:flex;flex-direction:row}.ao-project-overview__add-template .ao-project-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:hidden}.ao-project__body{display:flex;flex-direction:column;height:100%;min-height:0;width:100%;min-width:0;flex-grow:1;align-items:flex-start;padding-block:var(--ao-space-md);overflow:hidden}@container page (min-width: 720px){.ao-project{padding-inline:var(--ao-space-lg)}}.ao-card-feed{cursor:pointer}.ao-card-feed__header{display:grid;grid-template-columns:minmax(0,1fr) auto;justify-items:flex-start}.ao-card-feed__header-secondary{grid-column:2;grid-row:1}.ao-card-feed__header-icons{margin-inline-start:auto}.ao-card-feed__title-group{margin-block:var(--ao-space-md);display:flex;align-items:center}.ao-card-feed__body{display:flex;flex-direction:column;align-items:flex-start}.ao-card-feed__project{max-width:100%}.ao-card-feed__breadcrumbs{font-size:var(--ao-font-size-label)}.ao-card-feed_deadline{color:var(--ao-color-neutral-base);font-size:var(--ao-font-size-label)}.ao-card-feed__important{margin-inline-start:auto;color:var(--ao-color-danger)}.ao-card-feed__warning{color:var(--ao-color-warning)}.ao-card-feed__footer{display:flex;flex-direction:column}.ao-card-feed__footer-row{display:flex;gap:var(--ao-space-md);align-items:center;position:relative}.ao-card-feed__secondary{display:flex;width:100%;height:100%;justify-content:center;align-items:center;background-color:var(--ao-card-bg);opacity:0;visibility:hidden;pointer-events:none}.ao-card-feed:hover .ao-card-feed__secondary{opacity:1;visibility:visible;pointer-events:all}.ao-card-feed__footer-row+.ao-card-feed__footer-row{margin-block-start:var(--ao-space-md)}.ao-assignees{display:flex;margin:0;padding:0}.ao-assignee{list-style-type:none}.ao-card-feed__subitems{margin:0;margin-inline-start:auto;padding:0;display:flex;gap:var(--ao-space-sm);align-items:center}.ao-card-feed__subitem{display:flex;flex-shrink:0;font-size:var(--ao-font-size-tag);font-weight:var(--ao-font-weight-semi-bold)}.ao-card-feed__progress-wrapper{display:flex;width:100%;align-items:center;gap:var(--ao-space-md)}.ao-card-feed__progress{flex-grow:1}.ao-card-feed__timer-wrapper{opacity:0;visibility:hidden;margin-inline-start:auto}.ao-card-feed:is(:hover,:focus-within) .ao-card-feed__timer-wrapper{opacity:1;visibility:visible}.ao-card-feed__timer{cursor:pointer;color:var(--ao-color-primary-base)}.ao-card-feed__timer:hover{color:var(--ao-color-primary-dark)}.ao-card-feed__closed{color:var(--ao-color-primary-base)}.ao-card-feed--closed :is(.ao-card-feed__body,.ao-card-feed__footer,.ao-card-feed__project,.ao-card-feed__header-icons > *:not(.ao-card-feed__closed)){opacity:.3}.ao-card-feed__title-line{display:block;word-break:normal}.ao-card-feed__slug{font-weight:var(--ao-font-weight-semi-bold);white-space:nowrap;display:inline}.ao-card-feed__title-inline{display:inline;word-break:normal}.ao-project-milestone{display:flex;flex-direction:column;flex:1;height:100%;min-height:0;width:24em;background-color:var(--ao-color-sheet);padding:var(--ao-space-lg)}.ao-project-milestone__header{display:flex;align-items:flex-start;flex-direction:column}.ao-project-milestone__header_line{display:flex;align-items:flex-start;justify-content:space-between;width:100%}.ao-project-milestone__title{display:flex;padding-inline:var(--ao-space-lg);width:100%}.ao-project-milestone__body{display:flex;flex-direction:column;height:100%;min-height:0}.ao-project-milestone__activities{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-md);margin-block:0;overflow-y:auto}.ao-project-milestone__footer{display:flex;flex-direction:column;padding:var(--ao-space-md)}.ao-milestone__fieldset{width:100%;padding:var(--ao-space-md);border-block-end:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-milestone__field-row{width:100%;align-items:center}.ao-milestone__field-row+.ao-milestone__field-row{margin-block-start:var(--ao-space-sm)}.ao-milestone__field{padding:var(--ao-space-sm);font-size:var(--ao-font-size-label);background-color:transparent;border-width:0}.ao-milestone__field-multiselect{width:14ch;background-color:transparent}.ao-milestone__field-multiselect .multiselect-tags-search{background-color:transparent}.ao-milestone__field-multiselect .ao-multiselect{--ms-font-size: var(--ao-font-size-label);--ms-line-height: 1;--ms-border-color: none;--ms-border-width: var(--ao-input-border-width);--ms-border-color-active: none;--ms-border-width-active: var(--ao-input-border-width);--ms-radius: var(--ao-border-radius-sm);--ms-py: var(--ao-space-sm);--ms-px: var(--ao-space-sm);--ms-ring-color: transparent;--ms-placeholder-color: var(--ao-color-black);--ms-spinner-color: var(--ao-color-primary-base);--ms-dropdown-radius: var(--ao-border-radius-sm);--ms-option-bg-selected: var(--ao-color-primary-base);--ms-option-bg-selected-pointed: var(--ao-color-primary-light)}.ao-milestone__important,.ao-milestone__close{margin-inline-start:auto}.color-button{cursor:pointer;width:125px;height:24px;border-radius:var(--ao-border-radius-sm);border:1px solid #ccc}.ao-col-header{--ao-col-header-bg: var(--ao-color-card);display:flex;background-color:var(--ao-col-header-bg);border-radius:var(--ao-border-radius-md);align-items:center;padding:var(--ao-space-md)}.ao-col-header__title{flex:1}.ao-col-header__items{flex-shrink:0}.ao-list-kanban{display:flex;flex-direction:column;gap:var(--ao-space-lg);height:100%;min-height:0;scroll-snap-align:start end}.ao-list-kanban__list{display:flex;flex-direction:column;gap:var(--ao-space-md);min-height:0;overflow-y:auto;padding-inline:var(--ao-space-md)}.ao-list-kanban__header,.ao-list-kanban__footer{padding-inline:var(--ao-space-md)}.ao-list-kanban__end{display:flex;flex-direction:column;padding:var(--ao-space-md);align-items:center;justify-items:center;flex-shrink:0}.ao-list-kanban__divider{width:50%;height:2px;background-color:var(--ao-color-neutral-lightest)}.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-move,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-enter-active,.ao-list-kanban .ao-list-kanban__list .ao-list-kanban__transition-leave-active{transition:all .5s ease}.ao-list-kanban__transition-leave-active{position:absolute}.ao-list-kanban__ghost{opacity:.5;background:var(--ao-color-primary-lightest)}.ao-search-field{--ao-search-field-icon-size: var(--ao-icon-size-md);--ao-search-field-icon-slot-size: calc( var(--ao-search-field-icon-size) + var(--ao-space-xl) );--ao-search-field-placeholder-color: var(--ao-color-black);--ao-input-border-color: var(--ao-color-neutral-lightest);display:grid;grid-template-columns:1fr var(--ao-search-field-icon-slot-size);align-items:center;gap:var(--ao-space-sm);flex:1}.ao-search-field__input{grid-column:1 / -1;grid-row:1;width:100%;padding-inline-end:var(--ao-search-field-icon-slot-size);font-size:var(--ao-font-size-button);border-radius:var(--ao-border-radius-md)}.ao-search-field__input:focus{color:var(--ao-color-primary-base);outline-color:var(--ao-color-primary-lightest)}.ao-search-field__input::placeholder{color:var(--ao-search-field-placeholder-color);opacity:1}.ao-search-field__action{grid-column:2;grid-row:1;justify-self:center;transform:scale(0);transition:transform .15s var(--ao-transition-ease);transform-origin:50%}.ao-search-field__action--visible{transform:scale(1)}.ao-search-field__icon{width:var(--ao-search-field-icon-size);height:var(--ao-search-field-icon-size);color:var(--ao-color-neutral-dark);pointer-events:none}.ao-feed{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;container:page / inline-size}.ao-feed__body{display:grid;grid-auto-flow:column;grid-auto-columns:100%;height:100%;min-height:0;flex-grow:1;overflow-x:auto;align-items:flex-start;padding-block:var(--ao-space-md);scroll-snap-type:x mandatory}.ao-feed__activity-details__header{display:flex;gap:var(--ao-space-md)}.ao-feed__activity-details__project{flex:2}.ao-feed__activity-details__status{flex:1}@container page (min-width: 420px){.ao-feed__body{grid-auto-columns:50cqi}}@container page (min-width: 768px){.ao-feed__body{grid-auto-columns:33cqi}}@container page (min-width: 1024px){.ao-feed__body{grid-auto-columns:minmax(calc(var(--ao-grid-size) * 32),calc(var(--ao-grid-size) * 32))}}.ao-kanban__col{display:flex;flex-direction:column;gap:var(--ao-space-md);max-height:100%;min-height:0;overflow-y:auto;padding:var(--ao-space-lg)}.ao-feed__filters{flex:1;display:flex;gap:1%;align-items:center;flex-direction:column}.ao-feed__filter .multiselect-tags{flex-wrap:nowrap;overflow-x:auto;gap:var(--ao-space-xs)}.ao-feed__filter .multiselect-wrapper{justify-content:flex-start}.ao-feed__show-archived{flex:0 auto}@container header (min-width: 720px){.ao-feed__filters{flex-direction:row}.ao-feed__search{padding-inline-end:var(--ao-space-md);border-right:var(--ao-border-width-sm) solid var(--ao-color-neutral-lightest)}.ao-feed__search,.ao-feed__filter__projects{max-width:33%}.ao-feed__filter__assignees,.ao-feed__filter__types{max-width:15%}}.ao-project-mapping-overview__add-template,.ao-project-mapping-overview__save-as-template{margin-left:auto;margin-right:var(--ao-space-md)}.ao-project-mapping-overview{display:grid;grid-template-columns:1fr auto;height:100%;min-height:0;container:page / inline-size}.ao-project-mapping{display:flex;flex-direction:column;gap:var(--ao-space-md);padding-block:var(--ao-space-lg);height:100%;min-height:0;flex-grow:1;overflow:visible}.ao-project-mapping-mapping__body{display:flex;flex-direction:row;align-items:flex-start;gap:var(--ao-space-md);padding-block:var(--ao-space-md)}.ao-project-mapping-mapping__phases{flex:0 0 auto;min-width:0;max-height:100vh;overflow:scroll}.ao-project-mapping-mapping__image-wrapper{flex:1 1 0;position:relative;min-width:0}.architecture-image{position:sticky;top:var(--ao-space-md);width:100%;height:auto;display:block}@container page (min-width: 720px){.ao-project-mapping{padding-inline:var(--ao-space-lg)}}.ao-templates{display:flex;flex-direction:column;gap:var(--ao-space-md);padding:var(--ao-space-lg)}.ao-templates__header{display:flex;padding:var(--ao-space-sm)}.ao-templates__list{display:flex;margin:0;padding:var(--ao-space-sm);list-style-type:none;flex-direction:column;gap:var(--ao-space-md);container:column / inline-size}
|
|
2
|
+
`,document.head.appendChild(De),typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","vuedraggable"],e):(X=typeof globalThis<"u"?globalThis:X||self,e(X.Orcha={},X.Vue,X.vueRouter,X.Draggable))})(this,function(X,e,De,je){"use strict";const ag="",og="",rg="",ng="",Gr=e.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(a){return(t,o)=>(e.openBlock(),e.createBlock(e.unref(De.RouterView),e.mergeProps({templates:t.templates},t.$attrs),null,16,["templates"]))}}),j=(a,t)=>{const o=a.__vccOpts||a;for(const[n,r]of t)o[n]=r;return o},Xr={},Qr={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jr=[e.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)];function en(a,t){return e.openBlock(),e.createElementBlock("svg",Qr,Jr)}const tn=j(Xr,[["render",en]]),an={},on={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rn=[e.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)];function nn(a,t){return e.openBlock(),e.createElementBlock("svg",on,rn)}const sn=j(an,[["render",nn]]),ln={},cn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dn=[e.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)];function pn(a,t){return e.openBlock(),e.createElementBlock("svg",cn,dn)}const un=j(ln,[["render",pn]]),mn={},fn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hn=[e.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)];function gn(a,t){return e.openBlock(),e.createElementBlock("svg",fn,hn)}const _n=j(mn,[["render",gn]]),vn={},bn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cn=[e.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)];function yn(a,t){return e.openBlock(),e.createElementBlock("svg",bn,Cn)}const wn=j(vn,[["render",yn]]),kn={},$n={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},En=[e.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)];function Bn(a,t){return e.openBlock(),e.createElementBlock("svg",$n,En)}const Vn=j(kn,[["render",Bn]]),Sn={},Nn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xn=[e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)];function Mn(a,t){return e.openBlock(),e.createElementBlock("svg",Nn,xn)}const Tn=j(Sn,[["render",Mn]]),An={},On={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},In=[e.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)];function Ln(a,t){return e.openBlock(),e.createElementBlock("svg",On,In)}const Dn=j(An,[["render",Ln]]),jn={},Pn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zn=[e.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)];function Hn(a,t){return e.openBlock(),e.createElementBlock("svg",Pn,zn)}const Rn=j(jn,[["render",Hn]]),Un={},Fn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zn=[e.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)];function Wn(a,t){return e.openBlock(),e.createElementBlock("svg",Fn,Zn)}const qn=j(Un,[["render",Wn]]),Yn={},Kn={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gn=[e.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)];function Xn(a,t){return e.openBlock(),e.createElementBlock("svg",Kn,Gn)}const Qn=j(Yn,[["render",Xn]]),Jn={},ei={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ti=[e.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)];function ai(a,t){return e.openBlock(),e.createElementBlock("svg",ei,ti)}const oi=j(Jn,[["render",ai]]),ri={},ni={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ii=[e.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)];function si(a,t){return e.openBlock(),e.createElementBlock("svg",ni,ii)}const li=j(ri,[["render",si]]),ci={},di={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pi=[e.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)];function ui(a,t){return e.openBlock(),e.createElementBlock("svg",di,pi)}const mi=j(ci,[["render",ui]]),fi={},hi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gi=[e.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)];function _i(a,t){return e.openBlock(),e.createElementBlock("svg",hi,gi)}const vi=j(fi,[["render",_i]]),bi={},Ci={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yi=[e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)];function wi(a,t){return e.openBlock(),e.createElementBlock("svg",Ci,yi)}const ki=j(bi,[["render",wi]]),$i={},Ei={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bi=[e.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)];function Vi(a,t){return e.openBlock(),e.createElementBlock("svg",Ei,Bi)}const Si=j($i,[["render",Vi]]),Ni={},xi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mi=[e.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)];function Ti(a,t){return e.openBlock(),e.createElementBlock("svg",xi,Mi)}const Ai=j(Ni,[["render",Ti]]),Oi={},Ii={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Li=[e.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)];function Di(a,t){return e.openBlock(),e.createElementBlock("svg",Ii,Li)}const ji=j(Oi,[["render",Di]]),Pi={},zi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hi=[e.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)];function Ri(a,t){return e.openBlock(),e.createElementBlock("svg",zi,Hi)}const Ui=j(Pi,[["render",Ri]]),Fi={},Zi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi=[e.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)];function qi(a,t){return e.openBlock(),e.createElementBlock("svg",Zi,Wi)}const Yi=j(Fi,[["render",qi]]),Ki={},Gi={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xi=[e.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)];function Qi(a,t){return e.openBlock(),e.createElementBlock("svg",Gi,Xi)}const Ji=j(Ki,[["render",Qi]]),es={},ts={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},as=[e.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)];function os(a,t){return e.openBlock(),e.createElementBlock("svg",ts,as)}const rs=j(es,[["render",os]]),ns={},is={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ss=[e.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)];function ls(a,t){return e.openBlock(),e.createElementBlock("svg",is,ss)}const cs=j(ns,[["render",ls]]),ds={},ps={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},us=[e.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)];function ms(a,t){return e.openBlock(),e.createElementBlock("svg",ps,us)}const fs=j(ds,[["render",ms]]),hs={},gs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_s=[e.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)];function vs(a,t){return e.openBlock(),e.createElementBlock("svg",gs,_s)}const bs=j(hs,[["render",vs]]),Cs={},ys={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ws=[e.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)];function ks(a,t){return e.openBlock(),e.createElementBlock("svg",ys,ws)}const $s=j(Cs,[["render",ks]]),Es={},Bs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vs=[e.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)];function Ss(a,t){return e.openBlock(),e.createElementBlock("svg",Bs,Vs)}const Ns=j(Es,[["render",Ss]]),xs={},Ms={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ts=[e.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)];function As(a,t){return e.openBlock(),e.createElementBlock("svg",Ms,Ts)}const Os=j(xs,[["render",As]]),Is={},Ls={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ds=[e.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)];function js(a,t){return e.openBlock(),e.createElementBlock("svg",Ls,Ds)}const Ps=j(Is,[["render",js]]),zs={},Hs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Rs=[e.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)];function Us(a,t){return e.openBlock(),e.createElementBlock("svg",Hs,Rs)}const Fs=j(zs,[["render",Us]]),Zs={},Ws={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qs=[e.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)];function Ys(a,t){return e.openBlock(),e.createElementBlock("svg",Ws,qs)}const Ks=j(Zs,[["render",Ys]]),Gs={},Xs={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qs=[e.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)];function Js(a,t){return e.openBlock(),e.createElementBlock("svg",Xs,Qs)}const el=j(Gs,[["render",Js]]),tl={},al={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ol=[e.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)];function rl(a,t){return e.openBlock(),e.createElementBlock("svg",al,ol)}const nl=j(tl,[["render",rl]]),il={},sl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ll=[e.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)];function cl(a,t){return e.openBlock(),e.createElementBlock("svg",sl,ll)}const dl=j(il,[["render",cl]]),pl={},ul={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ml=[e.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)];function fl(a,t){return e.openBlock(),e.createElementBlock("svg",ul,ml)}const hl=j(pl,[["render",fl]]),gl={},_l={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vl=[e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)];function bl(a,t){return e.openBlock(),e.createElementBlock("svg",_l,vl)}const Cl=j(gl,[["render",bl]]),yl={},wl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kl=[e.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)];function $l(a,t){return e.openBlock(),e.createElementBlock("svg",wl,kl)}const El=j(yl,[["render",$l]]),Bl={},Vl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sl=[e.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)];function Nl(a,t){return e.openBlock(),e.createElementBlock("svg",Vl,Sl)}const xl=j(Bl,[["render",Nl]]),Ml={},Tl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Al=[e.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)];function Ol(a,t){return e.openBlock(),e.createElementBlock("svg",Tl,Al)}const Il=j(Ml,[["render",Ol]]),Ll=e.defineComponent({name:"LoadingIcon"}),Wg="",Oa=a=>(e.pushScopeId("data-v-ad6da4a9"),a=a(),e.popScopeId(),a),Dl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jl=[Oa(()=>e.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1)),Oa(()=>e.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1)),Oa(()=>e.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1))];function Pl(a,t,o,n,r,s){return e.openBlock(),e.createElementBlock("svg",Dl,jl)}const zl=j(Ll,[["render",Pl],["__scopeId","data-v-ad6da4a9"]]),Hl={},Rl={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"},Ul=[e.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)];function Fl(a,t){return e.openBlock(),e.createElementBlock("svg",Rl,Ul)}const Zl=j(Hl,[["render",Fl]]),Wl={},ql={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yl=[e.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)];function Kl(a,t){return e.openBlock(),e.createElementBlock("svg",ql,Yl)}const Gl=j(Wl,[["render",Kl]]),Xl={},Ql={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jl=[e.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)];function ec(a,t){return e.openBlock(),e.createElementBlock("svg",Ql,Jl)}const tc=j(Xl,[["render",ec]]),ac={},oc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rc=[e.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)];function nc(a,t){return e.openBlock(),e.createElementBlock("svg",oc,rc)}const ic=j(ac,[["render",nc]]),sc={},lc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cc=[e.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)];function dc(a,t){return e.openBlock(),e.createElementBlock("svg",lc,cc)}const pc=j(sc,[["render",dc]]),uc={},mc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fc=[e.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)];function hc(a,t){return e.openBlock(),e.createElementBlock("svg",mc,fc)}const gc=j(uc,[["render",hc]]),_c={},vc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bc=[e.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)];function Cc(a,t){return e.openBlock(),e.createElementBlock("svg",vc,bc)}const yc=j(_c,[["render",Cc]]),wc={},kc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$c=[e.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)];function Ec(a,t){return e.openBlock(),e.createElementBlock("svg",kc,$c)}const Bc=j(wc,[["render",Ec]]),Vc={},Sc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nc=[e.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)];function xc(a,t){return e.openBlock(),e.createElementBlock("svg",Sc,Nc)}const Mc=j(Vc,[["render",xc]]),Tc={},Ac={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Oc=[e.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)];function Ic(a,t){return e.openBlock(),e.createElementBlock("svg",Ac,Oc)}const Lc=j(Tc,[["render",Ic]]),Dc={},jc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pc=[e.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)];function zc(a,t){return e.openBlock(),e.createElementBlock("svg",jc,Pc)}const Hc=j(Dc,[["render",zc]]),Rc={},Uc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fc=[e.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)];function Zc(a,t){return e.openBlock(),e.createElementBlock("svg",Uc,Fc)}const Wc=j(Rc,[["render",Zc]]),qc={},Yc={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kc=[e.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)];function Gc(a,t){return e.openBlock(),e.createElementBlock("svg",Yc,Kc)}const Xc=j(qc,[["render",Gc]]),Qc={},Jc={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e1=[e.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><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"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><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"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)];function t1(a,t){return e.openBlock(),e.createElementBlock("svg",Jc,e1)}const a1=j(Qc,[["render",t1]]),o1={},r1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n1=[e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)];function i1(a,t){return e.openBlock(),e.createElementBlock("svg",r1,n1)}const s1=j(o1,[["render",i1]]),l1={},c1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d1=[e.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)];function p1(a,t){return e.openBlock(),e.createElementBlock("svg",c1,d1)}const u1=j(l1,[["render",p1]]),m1={},f1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h1=[e.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)];function g1(a,t){return e.openBlock(),e.createElementBlock("svg",f1,h1)}const _1=j(m1,[["render",g1]]),v1={},b1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C1=[e.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)];function y1(a,t){return e.openBlock(),e.createElementBlock("svg",b1,C1)}const w1=j(v1,[["render",y1]]),k1={},$1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E1=[e.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)];function B1(a,t){return e.openBlock(),e.createElementBlock("svg",$1,E1)}const V1=j(k1,[["render",B1]]),S1={},N1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x1=[e.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)];function M1(a,t){return e.openBlock(),e.createElementBlock("svg",N1,x1)}const T1=j(S1,[["render",M1]]),A1={},O1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I1=[e.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)];function L1(a,t){return e.openBlock(),e.createElementBlock("svg",O1,I1)}const D1=j(A1,[["render",L1]]),j1={},P1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},z1=[e.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)];function H1(a,t){return e.openBlock(),e.createElementBlock("svg",P1,z1)}const R1=j(j1,[["render",H1]]),U1={},F1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z1=[e.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)];function W1(a,t){return e.openBlock(),e.createElementBlock("svg",F1,Z1)}const q1=j(U1,[["render",W1]]),Y1={},K1={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G1=[e.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)];function X1(a,t){return e.openBlock(),e.createElementBlock("svg",K1,G1)}const Q1=j(Y1,[["render",X1]]),J1={},ed={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},td=[e.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)];function ad(a,t){return e.openBlock(),e.createElementBlock("svg",ed,td)}const od=j(J1,[["render",ad]]),rd={},nd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},id=[e.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)];function sd(a,t){return e.openBlock(),e.createElementBlock("svg",nd,id)}const ld=j(rd,[["render",sd]]),cd={},dd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pd=[e.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)];function ud(a,t){return e.openBlock(),e.createElementBlock("svg",dd,pd)}const md=j(cd,[["render",ud]]),fd={},hd={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gd=[e.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)];function _d(a,t){return e.openBlock(),e.createElementBlock("svg",hd,gd)}const vd=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:tn,AccountCircle:sn,AccountTreeOutlineRounded:un,AccountTreeRounded:_n,Add:wn,AddBoxOutlineRounded:Vn,ArchiveOutlineRounded:Tn,ArrowBackRounded:Dn,ArrowDropDownRounded:Rn,ArrowForwardRounded:qn,AssignmentOutlineRounded:Qn,AttachFileRounded:oi,CalendarTodayOutlineRounded:li,CancelRounded:mi,ChatOutline:vi,CheckBoxOutlineBlank:ki,CheckBoxOutlineBlankSharp:Si,CheckBoxOutlineRounded:Ai,CheckSmallRounded:ji,ChecklistRounded:Ui,ChevronLeft:Yi,ChevronRight:Ji,CloseRounded:rs,ContactsOutlineRounded:cs,ContentCopyOutline:fs,DeleteOutlineRounded:bs,DragIndicator:$s,EditDocumentRounded:Ns,EditOutline:Os,ErrorOutlineRounded:Ps,FilterListRounded:Fs,FlagRounded:Ks,FlowsheetOutlineRounded:el,GifBox:nl,GroupsOutline:dl,HomeOutlineRounded:hl,ImageRounded:Cl,Info:El,KeyboardArrowDown:xl,KeyboardArrowUp:Il,Loading:zl,Lock:Zl,LogoutRounded:Gl,Menu:tc,MoreHoriz:ic,MoreTimeRounded:pc,MoreVert:gc,MountainFlagOutlineRounded:yc,PersonAddOutlineRounded:Bc,PictureAsPdfRounded:Mc,RadioButtonChecked:Lc,RadioButtonCheckedOutline:Hc,RadioButtonUnchecked:Wc,RemoveRounded:Xc,SearchRounded:a1,SelectCheckBox:s1,SendRounded:u1,Settings:_1,SlideshowRounded:w1,Target:V1,TaskOutlineRounded:T1,TextSnippetRounded:D1,TimerOutline:R1,ViewComfyAltRounded:q1,ViewCompactAltRounded:Q1,ViewTimelineRounded:od,WarningOutlineRounded:ld,WarningRounded:md,WaterfallChartRounded:j(fd,[["render",_d]])},Symbol.toStringTag,{value:"Module"})),bd={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Kt={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Ia={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"};({...Ia,...{WARNING:"warning",SUCCESS:"success",DANGER:"danger"}});const Vo={ROUND:"round",ROUNDED:"rounded"},Cd={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ee=e.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Kt.MD}},setup(a){const t=a,o=e.computed(()=>vd[t.name]);return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{class:e.normalizeClass(["ao-icon",`ao-icon--${n.size}`])},null,8,["class"]))}}),B9="",yd=["type"],wd={key:0,class:"ao-button__label"},G=e.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>bd.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Kt.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>Vo.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),n=e.computed(()=>t.isLoading?"Loading":t.iconName);return(r,s)=>(e.openBlock(),e.createElementBlock("button",{type:r.type,class:e.normalizeClass(["ao-button",`ao-button--${r.variant}`,r.color?`ao-button--${r.color}`:"",`ao-button--${r.corners}`,r.footer?"ao-button--footer":"",r.size?`ao-button--${r.size}`:"",r.iconName&&r.iconPosition?`ao-button--icon-${r.iconPosition}`:"",r.$attrs.disabled?"ao-button--is-disabled":""])},[e.renderSlot(r.$slots,"default",{},()=>[r.label?(e.openBlock(),e.createElementBlock("span",wd,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0)]),n.value?(e.openBlock(),e.createBlock(ee,{key:0,name:n.value,class:"ao-button__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,yd))}}),V9="";function So(a){const t=e.ref(!1),o=e.ref(""),n=e.computed(()=>"value"in a.value?"value":"innerHTML"),r=()=>{t.value=!t.value},s=c=>{t.value=c},i=c=>async()=>{s(!1),await e.nextTick(()=>{a.value[n.value]=o.value,c==null||c()})},l=c=>async p=>{const d=a.value[n.value];s(!1),await e.nextTick(()=>{c(d,p)})};return e.watch(t,async c=>{await e.nextTick(()=>{setTimeout(()=>{a.value&&c&&(a.value.focus(),o.value=a.value[n.value])},1)})}),{isEditing:t,setIsEditing:s,toggleIsEditing:r,onUpdate:l,onDiscard:i}}const ne=e.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(a,{emit:t}){const o=a,n=e.ref(null),{isEditing:r,setIsEditing:s,onUpdate:i,onDiscard:l}=So(n),c=e.computed(()=>r.value?"input":o.tag||`h${o.level}`),p=e.computed(()=>o.isEditable?r.value?{change:d,click:C=>C.stopPropagation(),blur:m}:{click:f,focus:f}:{}),d=i((C,h)=>{const v=h.target.value;t("update:title",v)}),u=l(),m=async()=>{r.value&&s(!1)},g=()=>{t("toggle-is-editing",!1)},f=C=>{C.stopPropagation(),r.value||s(!0)};return e.watch(()=>o.isEditable,C=>{C||u()}),(C,h)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),e.mergeProps({id:C.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${C.level}`,{[`ao-title--${C.color}`]:!!C.color,"ao-title--editable":C.isEditable,"ao-field__input ao-title--editing":e.unref(r),"ao-title--readonly":!e.unref(r)}],type:e.unref(r)?"text":null,value:e.unref(r)?C.title:null,tabindex:"0",onKeyup:e.withKeys(g,["enter"])},e.toHandlers(p.value),{onKeydown:e.withKeys(e.unref(u),["esc"])}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.title),1)]),_:1},16,["id","class","type","value","onKeyup","onKeydown"]))}}),S9="",kd={key:0,class:"ao-card-horiz__drag ao-card__drag"},$d={class:"ao-card-horiz__header"},Ed={key:0,class:"ao-card-horiz__avatar"},Bd={class:"ao-card-horiz__title-group"},Vd={key:0,class:"ao-card-horiz__subtitle"},Sd={key:1,class:"ao-card-horiz__header"},Nd={key:1,class:"ao-card-horiz__body"},xd={key:2,class:"ao-card-horiz__footer"},Md={key:3,class:"ao-card-horiz__secondary"},No=e.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(a,{emit:t}){const o=n=>{t("update:title",n)};return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.tagName),{class:e.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":n.isActive}])},{default:e.withCtx(()=>[n.isDraggable?(e.openBlock(),e.createElementBlock("div",kd,[e.createVNode(ee,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):e.createCommentVNode("",!0),e.createElementVNode("div",$d,[n.icon?(e.openBlock(),e.createElementBlock("div",Ed,[e.createVNode(ee,{class:"ao-card-horiz__icon",name:n.icon,size:"xl"},null,8,["name"])])):e.createCommentVNode("",!0),e.createElementVNode("div",Bd,[e.createVNode(ne,{id:n.id,class:"ao-card-horiz__title",level:4,title:n.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),e.renderSlot(n.$slots,"subtitle",{},()=>[n.subtitle?(e.openBlock(),e.createElementBlock("span",Vd,e.toDisplayString(n.subtitle),1)):e.createCommentVNode("",!0)])]),n.$slots.header?(e.openBlock(),e.createElementBlock("div",Sd,[e.renderSlot(n.$slots,"header")])):e.createCommentVNode("",!0)]),n.$slots.default?(e.openBlock(),e.createElementBlock("div",Nd,[e.renderSlot(n.$slots,"default")])):e.createCommentVNode("",!0),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",xd,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0),n.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Md,[e.renderSlot(n.$slots,"secondary")])):e.createCommentVNode("",!0)]),_:3},8,["class"]))}}),N9="",kt=e.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(a){const t=a,o=e.computed(()=>t.clickable?"button":"span"),n=e.computed(()=>o.value==="button"?{type:"button"}:{});return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-tag",r.color?`ao-tag--${r.color}`:"",r.clickable?"ao-tag--clickable":"",r.closable?"ao-tag--closable":"",r.variant?`ao-tag--${r.variant}`:""]),style:e.normalizeStyle(r.rawColor?{"--ao-tag-bg":r.rawColor}:{})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),e.mergeProps({class:"ao-tag__label"},n.value,{onClick:s[0]||(s[0]=i=>r.$emit("click",i))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label)+" ",1),r.variant===e.unref(Cd).SOLID_ICON&&r.iconName?(e.openBlock(),e.createBlock(ee,{key:0,name:r.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):e.createCommentVNode("",!0)]),_:1},16)),r.closable?(e.openBlock(),e.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=i=>r.$emit("close",i))},[e.createVNode(ee,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):e.createCommentVNode("",!0)],6))}}),x9="",$t={todo:"todo",done:"done",archived:"archived"},Td={months:"months",weeks:"weeks",days:"days"},Ad={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},xo={BEFORE:"before",AFTER:"after"},Mo={START:"start",end:"end"},To={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},te={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var Ao=(a=>(a.PHASES="phases",a.MILESTONES="milestones",a.ACTIVITIES="activities",a))(Ao||{});const Od={add:"add",remove:"remove",moved:"moved"};var Oo=(a=>(a.HOURS="hours",a.DAYS="days",a))(Oo||{});const Xe={project:"projectId",type:"typeId",assignee:"assigneeId"};function Gt(a){"@babel/helpers - typeof";return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(a)}function Be(a){if(a===null||a===!0||a===!1)return NaN;var t=Number(a);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function oe(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function se(a){oe(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||Gt(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Id(a,t){oe(2,arguments);var o=se(a).getTime(),n=Be(t);return new Date(o+n)}var Ld={};function Et(){return Ld}function Bt(a){var t=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return t.setUTCFullYear(a.getFullYear()),a.getTime()-t.getTime()}function Io(a){oe(1,arguments);var t=se(a);return t.setHours(0,0,0,0),t}var Dd=864e5;function jd(a,t){oe(2,arguments);var o=Io(a),n=Io(t),r=o.getTime()-Bt(o),s=n.getTime()-Bt(n);return Math.round((r-s)/Dd)}function Pd(a,t){oe(2,arguments);var o=se(a),n=se(t),r=o.getTime()-n.getTime();return r<0?-1:r>0?1:r}var Lo=6e4,Do=36e5;function zd(a){return oe(1,arguments),a instanceof Date||Gt(a)==="object"&&Object.prototype.toString.call(a)==="[object Date]"}function jo(a){if(oe(1,arguments),!zd(a)&&typeof a!="number")return!1;var t=se(a);return!isNaN(Number(t))}function La(a,t){oe(2,arguments);var o=Be(t);return Id(a,-o)}var Hd=864e5;function Rd(a){oe(1,arguments);var t=se(a),o=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),r=o-n;return Math.floor(r/Hd)+1}function Xt(a){oe(1,arguments);var t=1,o=se(a),n=o.getUTCDay(),r=(n<t?7:0)+n-t;return o.setUTCDate(o.getUTCDate()-r),o.setUTCHours(0,0,0,0),o}function Po(a){oe(1,arguments);var t=se(a),o=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(o+1,0,4),n.setUTCHours(0,0,0,0);var r=Xt(n),s=new Date(0);s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0);var i=Xt(s);return t.getTime()>=r.getTime()?o+1:t.getTime()>=i.getTime()?o:o-1}function Ud(a){oe(1,arguments);var t=Po(a),o=new Date(0);o.setUTCFullYear(t,0,4),o.setUTCHours(0,0,0,0);var n=Xt(o);return n}var Fd=6048e5;function Zd(a){oe(1,arguments);var t=se(a),o=Xt(t).getTime()-Ud(t).getTime();return Math.round(o/Fd)+1}function Qt(a,t){var o,n,r,s,i,l,c,p;oe(1,arguments);var d=Et(),u=Be((o=(n=(r=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:d.weekStartsOn)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(p=c.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&o!==void 0?o:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=se(a),g=m.getUTCDay(),f=(g<u?7:0)+g-u;return m.setUTCDate(m.getUTCDate()-f),m.setUTCHours(0,0,0,0),m}function zo(a,t){var o,n,r,s,i,l,c,p;oe(1,arguments);var d=se(a),u=d.getUTCFullYear(),m=Et(),g=Be((o=(n=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:m.firstWeekContainsDate)!==null&&n!==void 0?n:(c=m.locale)===null||c===void 0||(p=c.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(u+1,0,g),f.setUTCHours(0,0,0,0);var C=Qt(f,t),h=new Date(0);h.setUTCFullYear(u,0,g),h.setUTCHours(0,0,0,0);var y=Qt(h,t);return d.getTime()>=C.getTime()?u+1:d.getTime()>=y.getTime()?u:u-1}function Wd(a,t){var o,n,r,s,i,l,c,p;oe(1,arguments);var d=Et(),u=Be((o=(n=(r=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(i=t.locale)===null||i===void 0||(l=i.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:d.firstWeekContainsDate)!==null&&n!==void 0?n:(c=d.locale)===null||c===void 0||(p=c.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1),m=zo(a,t),g=new Date(0);g.setUTCFullYear(m,0,u),g.setUTCHours(0,0,0,0);var f=Qt(g,t);return f}var qd=6048e5;function Yd(a,t){oe(1,arguments);var o=se(a),n=Qt(o,t).getTime()-Wd(o,t).getTime();return Math.round(n/qd)+1}function J(a,t){for(var o=a<0?"-":"",n=Math.abs(a).toString();n.length<t;)n="0"+n;return o+n}var Kd={y:function(t,o){var n=t.getUTCFullYear(),r=n>0?n:1-n;return J(o==="yy"?r%100:r,o.length)},M:function(t,o){var n=t.getUTCMonth();return o==="M"?String(n+1):J(n+1,2)},d:function(t,o){return J(t.getUTCDate(),o.length)},a:function(t,o){var n=t.getUTCHours()/12>=1?"pm":"am";switch(o){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(t,o){return J(t.getUTCHours()%12||12,o.length)},H:function(t,o){return J(t.getUTCHours(),o.length)},m:function(t,o){return J(t.getUTCMinutes(),o.length)},s:function(t,o){return J(t.getUTCSeconds(),o.length)},S:function(t,o){var n=o.length,r=t.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,n-3));return J(s,o.length)}};const Pe=Kd;var ct={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Gd={G:function(t,o,n){var r=t.getUTCFullYear()>0?1:0;switch(o){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,o,n){if(o==="yo"){var r=t.getUTCFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Pe.y(t,o)},Y:function(t,o,n,r){var s=zo(t,r),i=s>0?s:1-s;if(o==="YY"){var l=i%100;return J(l,2)}return o==="Yo"?n.ordinalNumber(i,{unit:"year"}):J(i,o.length)},R:function(t,o){var n=Po(t);return J(n,o.length)},u:function(t,o){var n=t.getUTCFullYear();return J(n,o.length)},Q:function(t,o,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"Q":return String(r);case"QQ":return J(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"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,o,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(o){case"q":return String(r);case"qq":return J(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"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,o,n){var r=t.getUTCMonth();switch(o){case"M":case"MM":return Pe.M(t,o);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"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,o,n){var r=t.getUTCMonth();switch(o){case"L":return String(r+1);case"LL":return J(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"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,o,n,r){var s=Yd(t,r);return o==="wo"?n.ordinalNumber(s,{unit:"week"}):J(s,o.length)},I:function(t,o,n){var r=Zd(t);return o==="Io"?n.ordinalNumber(r,{unit:"week"}):J(r,o.length)},d:function(t,o,n){return o==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Pe.d(t,o)},D:function(t,o,n){var r=Rd(t);return o==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):J(r,o.length)},E:function(t,o,n){var r=t.getUTCDay();switch(o){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"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,o,n,r){var s=t.getUTCDay(),i=(s-r.weekStartsOn+8)%7||7;switch(o){case"e":return String(i);case"ee":return J(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,o,n,r){var s=t.getUTCDay(),i=(s-r.weekStartsOn+8)%7||7;switch(o){case"c":return String(i);case"cc":return J(i,o.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,o,n){var r=t.getUTCDay(),s=r===0?7:r;switch(o){case"i":return String(s);case"ii":return J(s,o.length);case"io":return n.ordinalNumber(s,{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"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,o,n){var r=t.getUTCHours(),s=r/12>=1?"pm":"am";switch(o){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,o,n){var r=t.getUTCHours(),s;switch(r===12?s=ct.noon:r===0?s=ct.midnight:s=r/12>=1?"pm":"am",o){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,o,n){var r=t.getUTCHours(),s;switch(r>=17?s=ct.evening:r>=12?s=ct.afternoon:r>=4?s=ct.morning:s=ct.night,o){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,o,n){if(o==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Pe.h(t,o)},H:function(t,o,n){return o==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Pe.H(t,o)},K:function(t,o,n){var r=t.getUTCHours()%12;return o==="Ko"?n.ordinalNumber(r,{unit:"hour"}):J(r,o.length)},k:function(t,o,n){var r=t.getUTCHours();return r===0&&(r=24),o==="ko"?n.ordinalNumber(r,{unit:"hour"}):J(r,o.length)},m:function(t,o,n){return o==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Pe.m(t,o)},s:function(t,o,n){return o==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Pe.s(t,o)},S:function(t,o){return Pe.S(t,o)},X:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();if(i===0)return"Z";switch(o){case"X":return Ro(i);case"XXXX":case"XX":return Qe(i);case"XXXXX":case"XXX":default:return Qe(i,":")}},x:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();switch(o){case"x":return Ro(i);case"xxxx":case"xx":return Qe(i);case"xxxxx":case"xxx":default:return Qe(i,":")}},O:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();switch(o){case"O":case"OO":case"OOO":return"GMT"+Ho(i,":");case"OOOO":default:return"GMT"+Qe(i,":")}},z:function(t,o,n,r){var s=r._originalDate||t,i=s.getTimezoneOffset();switch(o){case"z":case"zz":case"zzz":return"GMT"+Ho(i,":");case"zzzz":default:return"GMT"+Qe(i,":")}},t:function(t,o,n,r){var s=r._originalDate||t,i=Math.floor(s.getTime()/1e3);return J(i,o.length)},T:function(t,o,n,r){var s=r._originalDate||t,i=s.getTime();return J(i,o.length)}};function Ho(a,t){var o=a>0?"-":"+",n=Math.abs(a),r=Math.floor(n/60),s=n%60;if(s===0)return o+String(r);var i=t||"";return o+String(r)+i+J(s,2)}function Ro(a,t){if(a%60===0){var o=a>0?"-":"+";return o+J(Math.abs(a)/60,2)}return Qe(a,t)}function Qe(a,t){var o=t||"",n=a>0?"-":"+",r=Math.abs(a),s=J(Math.floor(r/60),2),i=J(r%60,2);return n+s+o+i}const Xd=Gd;var Uo=function(t,o){switch(t){case"P":return o.date({width:"short"});case"PP":return o.date({width:"medium"});case"PPP":return o.date({width:"long"});case"PPPP":default:return o.date({width:"full"})}},Fo=function(t,o){switch(t){case"p":return o.time({width:"short"});case"pp":return o.time({width:"medium"});case"ppp":return o.time({width:"long"});case"pppp":default:return o.time({width:"full"})}},Qd=function(t,o){var n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Uo(t,o);var i;switch(r){case"P":i=o.dateTime({width:"short"});break;case"PP":i=o.dateTime({width:"medium"});break;case"PPP":i=o.dateTime({width:"long"});break;case"PPPP":default:i=o.dateTime({width:"full"});break}return i.replace("{{date}}",Uo(r,o)).replace("{{time}}",Fo(s,o))},Jd={p:Fo,P:Qd};const ep=Jd;var tp=["D","DD"],ap=["YY","YYYY"];function op(a){return tp.indexOf(a)!==-1}function rp(a){return ap.indexOf(a)!==-1}function Zo(a,t,o){if(a==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(a==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(o,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var np={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"}},ip=function(t,o,n){var r,s=np[t];return typeof s=="string"?r=s:o===1?r=s.one:r=s.other.replace("{{count}}",o.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const sp=ip;function Da(a){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=t.width?String(t.width):a.defaultWidth,n=a.formats[o]||a.formats[a.defaultWidth];return n}}var lp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pp={date:Da({formats:lp,defaultWidth:"full"}),time:Da({formats:cp,defaultWidth:"full"}),dateTime:Da({formats:dp,defaultWidth:"full"})};const up=pp;var mp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fp=function(t,o,n,r){return mp[t]};const hp=fp;function Vt(a){return function(t,o){var n=o!=null&&o.context?String(o.context):"standalone",r;if(n==="formatting"&&a.formattingValues){var s=a.defaultFormattingWidth||a.defaultWidth,i=o!=null&&o.width?String(o.width):s;r=a.formattingValues[i]||a.formattingValues[s]}else{var l=a.defaultWidth,c=o!=null&&o.width?String(o.width):a.defaultWidth;r=a.values[c]||a.values[l]}var p=a.argumentCallback?a.argumentCallback(t):t;return r[p]}}var gp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_p={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},vp={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"]},bp={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"]},Cp={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"}},yp={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"}},wp=function(t,o){var n=Number(t),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"},kp={ordinalNumber:wp,era:Vt({values:gp,defaultWidth:"wide"}),quarter:Vt({values:_p,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Vt({values:vp,defaultWidth:"wide"}),day:Vt({values:bp,defaultWidth:"wide"}),dayPeriod:Vt({values:Cp,defaultWidth:"wide",formattingValues:yp,defaultFormattingWidth:"wide"})};const $p=kp;function St(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=o.width,r=n&&a.matchPatterns[n]||a.matchPatterns[a.defaultMatchWidth],s=t.match(r);if(!s)return null;var i=s[0],l=n&&a.parsePatterns[n]||a.parsePatterns[a.defaultParseWidth],c=Array.isArray(l)?Bp(l,function(u){return u.test(i)}):Ep(l,function(u){return u.test(i)}),p;p=a.valueCallback?a.valueCallback(c):c,p=o.valueCallback?o.valueCallback(p):p;var d=t.slice(i.length);return{value:p,rest:d}}}function Ep(a,t){for(var o in a)if(a.hasOwnProperty(o)&&t(a[o]))return o}function Bp(a,t){for(var o=0;o<a.length;o++)if(t(a[o]))return o}function Vp(a){return function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(a.matchPattern);if(!n)return null;var r=n[0],s=t.match(a.parsePattern);if(!s)return null;var i=a.valueCallback?a.valueCallback(s[0]):s[0];i=o.valueCallback?o.valueCallback(i):i;var l=t.slice(r.length);return{value:i,rest:l}}}var Sp=/^(\d+)(th|st|nd|rd)?/i,Np=/\d+/i,xp={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},Mp={any:[/^b/i,/^(a|c)/i]},Tp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ap={any:[/1/i,/2/i,/3/i,/4/i]},Op={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},Ip={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]},Lp={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},Dp={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]},jp={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},Pp={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}},zp={ordinalNumber:Vp({matchPattern:Sp,parsePattern:Np,valueCallback:function(t){return parseInt(t,10)}}),era:St({matchPatterns:xp,defaultMatchWidth:"wide",parsePatterns:Mp,defaultParseWidth:"any"}),quarter:St({matchPatterns:Tp,defaultMatchWidth:"wide",parsePatterns:Ap,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:St({matchPatterns:Op,defaultMatchWidth:"wide",parsePatterns:Ip,defaultParseWidth:"any"}),day:St({matchPatterns:Lp,defaultMatchWidth:"wide",parsePatterns:Dp,defaultParseWidth:"any"}),dayPeriod:St({matchPatterns:jp,defaultMatchWidth:"any",parsePatterns:Pp,defaultParseWidth:"any"})},Hp={code:"en-US",formatDistance:sp,formatLong:up,formatRelative:hp,localize:$p,match:zp,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Wo=Hp;var Rp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Up=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fp=/^'([^]*?)'?$/,Zp=/''/g,Wp=/[a-zA-Z]/;function qo(a,t,o){var n,r,s,i,l,c,p,d,u,m,g,f,C,h,y,v,_,b;oe(2,arguments);var B=String(t),E=Et(),N=(n=(r=o==null?void 0:o.locale)!==null&&r!==void 0?r:E.locale)!==null&&n!==void 0?n:Wo,I=Be((s=(i=(l=(c=o==null?void 0:o.firstWeekContainsDate)!==null&&c!==void 0?c:o==null||(p=o.locale)===null||p===void 0||(d=p.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:E.firstWeekContainsDate)!==null&&i!==void 0?i:(u=E.locale)===null||u===void 0||(m=u.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=Be((g=(f=(C=(h=o==null?void 0:o.weekStartsOn)!==null&&h!==void 0?h:o==null||(y=o.locale)===null||y===void 0||(v=y.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&C!==void 0?C:E.weekStartsOn)!==null&&f!==void 0?f:(_=E.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var R=se(a);if(!jo(R))throw new RangeError("Invalid time value");var F=Bt(R),A=La(R,F),H={firstWeekContainsDate:I,weekStartsOn:z,locale:N,_originalDate:R},K=B.match(Up).map(function(W){var U=W[0];if(U==="p"||U==="P"){var S=ep[U];return S(W,N.formatLong)}return W}).join("").match(Rp).map(function(W){if(W==="''")return"'";var U=W[0];if(U==="'")return qp(W);var S=Xd[U];if(S)return!(o!=null&&o.useAdditionalWeekYearTokens)&&rp(W)&&Zo(W,t,String(a)),!(o!=null&&o.useAdditionalDayOfYearTokens)&&op(W)&&Zo(W,t,String(a)),S(A,W,N.localize,H);if(U.match(Wp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return W}).join("");return K}function qp(a){var t=a.match(Fp);return t?t[1].replace(Zp,"'"):a}function Yp(a,t,o){var n,r,s,i,l,c,p,d,u,m;oe(2,arguments);var g=se(a),f=se(t),C=Et(),h=(n=(r=o==null?void 0:o.locale)!==null&&r!==void 0?r:C.locale)!==null&&n!==void 0?n:Wo,y=Be((s=(i=(l=(c=o==null?void 0:o.weekStartsOn)!==null&&c!==void 0?c:o==null||(p=o.locale)===null||p===void 0||(d=p.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:C.weekStartsOn)!==null&&i!==void 0?i:(u=C.locale)===null||u===void 0||(m=u.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&s!==void 0?s:0);if(!h.localize)throw new RangeError("locale must contain localize property");if(!h.formatLong)throw new RangeError("locale must contain formatLong property");if(!h.formatRelative)throw new RangeError("locale must contain formatRelative property");var v=jd(g,f);if(isNaN(v))throw new RangeError("Invalid time value");var _;v<-6?_="other":v<-1?_="lastWeek":v<0?_="yesterday":v<1?_="today":v<2?_="tomorrow":v<7?_="nextWeek":_="other";var b=La(g,Bt(g)),B=La(f,Bt(f)),E=h.formatRelative(_,b,B,{locale:h,weekStartsOn:y});return qo(g,E,{locale:h,weekStartsOn:y})}function Nt(a,t){var o;oe(1,arguments);var n=Be((o=t==null?void 0:t.additionalDigits)!==null&&o!==void 0?o:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof a=="string"||Object.prototype.toString.call(a)==="[object String]"))return new Date(NaN);var r=Qp(a),s;if(r.date){var i=Jp(r.date,n);s=eu(i.restDateString,i.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,p;if(r.time&&(c=tu(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(p=au(r.timezone),isNaN(p))return new Date(NaN)}else{var d=new Date(l+c),u=new Date(0);return u.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),u.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),u}return new Date(l+c+p)}var Jt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Kp=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Gp=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xp=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Qp(a){var t={},o=a.split(Jt.dateTimeDelimiter),n;if(o.length>2)return t;if(/:/.test(o[0])?n=o[0]:(t.date=o[0],n=o[1],Jt.timeZoneDelimiter.test(t.date)&&(t.date=a.split(Jt.timeZoneDelimiter)[0],n=a.substr(t.date.length,a.length))),n){var r=Jt.timezone.exec(n);r?(t.time=n.replace(r[1],""),t.timezone=r[1]):t.time=n}return t}function Jp(a,t){var o=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=a.match(o);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?r:s*100,restDateString:a.slice((n[1]||n[2]).length)}}function eu(a,t){if(t===null)return new Date(NaN);var o=a.match(Kp);if(!o)return new Date(NaN);var n=!!o[4],r=xt(o[1]),s=xt(o[2])-1,i=xt(o[3]),l=xt(o[4]),c=xt(o[5])-1;if(n)return su(t,l,c)?ou(t,l,c):new Date(NaN);var p=new Date(0);return!nu(t,s,i)||!iu(t,r)?new Date(NaN):(p.setUTCFullYear(t,s,Math.max(r,i)),p)}function xt(a){return a?parseInt(a):1}function tu(a){var t=a.match(Gp);if(!t)return NaN;var o=ja(t[1]),n=ja(t[2]),r=ja(t[3]);return lu(o,n,r)?o*Do+n*Lo+r*1e3:NaN}function ja(a){return a&&parseFloat(a.replace(",","."))||0}function au(a){if(a==="Z")return 0;var t=a.match(Xp);if(!t)return 0;var o=t[1]==="+"?-1:1,n=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return cu(n,r)?o*(n*Do+r*Lo):NaN}function ou(a,t,o){var n=new Date(0);n.setUTCFullYear(a,0,4);var r=n.getUTCDay()||7,s=(t-1)*7+o+1-r;return n.setUTCDate(n.getUTCDate()+s),n}var ru=[31,null,31,30,31,30,31,31,30,31,30,31];function Yo(a){return a%400===0||a%4===0&&a%100!==0}function nu(a,t,o){return t>=0&&t<=11&&o>=1&&o<=(ru[t]||(Yo(a)?29:28))}function iu(a,t){return t>=1&&t<=(Yo(a)?366:365)}function su(a,t,o){return t>=1&&t<=53&&o>=0&&o<=6}function lu(a,t,o){return a===24?t===0&&o===0:o>=0&&o<60&&t>=0&&t<60&&a>=0&&a<25}function cu(a,t){return t>=0&&t<=59}var ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ie={},Ko={},Mt={},Tt={},dt={},ea={};Object.defineProperty(ea,"__esModule",{value:!0}),ea.lexoHelper=void 0,ea.lexoHelper={arrayCopy:du};function du(a,t,o,n,r){let s=n;const i=t+r;for(let l=t;l<i;l++)o[s]=a[l],++s}var At={};Object.defineProperty(At,"__esModule",{value:!0});class pu{constructor(t=""){this.str=t}get length(){return this.str.length}set length(t){this.str=this.str.substring(0,t)}append(t){return this.str=this.str+t,this}remove(t,o){return this.str=this.str.substr(0,t)+this.str.substr(t+o),this}insert(t,o){return this.str=this.str.substr(0,t)+o+this.str.substr(t),this}toString(){return this.str}}At.default=pu,Object.defineProperty(dt,"__esModule",{value:!0}),dt.LexoInteger=void 0;const ta=ea,uu=At;class Y{constructor(t,o,n){this.sys=t,this.sign=o,this.mag=n}static parse(t,o){let n=t,r=1;t.indexOf(o.getPositiveChar())===0?n=t.substring(1):t.indexOf(o.getNegativeChar())===0&&(n=t.substring(1),r=-1);const s=new Array(n.length);let i=s.length-1;for(let l=0;i>=0;++l)s[l]=o.toDigit(n.charAt(i)),--i;return Y.make(o,r,s)}static zero(t){return new Y(t,0,Y.ZERO_MAG)}static one(t){return Y.make(t,1,Y.ONE_MAG)}static make(t,o,n){let r;for(r=n.length;r>0&&n[r-1]===0;--r);if(r===0)return Y.zero(t);if(r===n.length)return new Y(t,o,n);const s=new Array(r).fill(0);return ta.lexoHelper.arrayCopy(n,0,s,0,r),new Y(t,o,s)}static add(t,o,n){const r=Math.max(o.length,n.length),s=new Array(r).fill(0);let i=0;for(let l=0;l<r;++l){const c=l<o.length?o[l]:0,p=l<n.length?n[l]:0;let d=c+p+i;for(i=0;d>=t.getBase();d-=t.getBase())++i;s[l]=d}return Y.extendWithCarry(s,i)}static extendWithCarry(t,o){if(o>0){const n=new Array(t.length+1).fill(0);return ta.lexoHelper.arrayCopy(t,0,n,0,t.length),n[n.length-1]=o,n}return t}static subtract(t,o,n){const r=Y.complement(t,n,o.length),s=Y.add(t,o,r);return s[s.length-1]=0,Y.add(t,s,Y.ONE_MAG)}static multiply(t,o,n){const r=new Array(o.length+n.length).fill(0);for(let s=0;s<o.length;++s)for(let i=0;i<n.length;++i){const l=s+i;for(r[l]+=o[s]*n[i];r[l]>=t.getBase();r[l]-=t.getBase())++r[l+1]}return r}static complement(t,o,n){if(n<=0)throw new Error("Expected at least 1 digit");const r=new Array(n).fill(t.getBase()-1);for(let s=0;s<o.length;++s)r[s]=t.getBase()-1-o[s];return r}static compare(t,o){if(t.length<o.length)return-1;if(t.length>o.length)return 1;for(let n=t.length-1;n>=0;--n){if(t[n]<o[n])return-1;if(t[n]>o[n])return 1}return 0}add(t){if(this.checkSystem(t),this.isZero())return t;if(t.isZero())return this;if(this.sign!==t.sign){let n;return this.sign===-1?(n=this.negate(),n.subtract(t).negate()):(n=t.negate(),this.subtract(n))}const o=Y.add(this.sys,this.mag,t.mag);return Y.make(this.sys,this.sign,o)}subtract(t){if(this.checkSystem(t),this.isZero())return t.negate();if(t.isZero())return this;if(this.sign!==t.sign){let n;return this.sign===-1?(n=this.negate(),n.add(t).negate()):(n=t.negate(),this.add(n))}const o=Y.compare(this.mag,t.mag);return o===0?Y.zero(this.sys):o<0?Y.make(this.sys,this.sign===-1?1:-1,Y.subtract(this.sys,t.mag,this.mag)):Y.make(this.sys,this.sign===-1?-1:1,Y.subtract(this.sys,this.mag,t.mag))}multiply(t){if(this.checkSystem(t),this.isZero())return this;if(t.isZero())return t;if(this.isOneish())return this.sign===t.sign?Y.make(this.sys,1,t.mag):Y.make(this.sys,-1,t.mag);if(t.isOneish())return this.sign===t.sign?Y.make(this.sys,1,this.mag):Y.make(this.sys,-1,this.mag);const o=Y.multiply(this.sys,this.mag,t.mag);return this.sign===t.sign?Y.make(this.sys,1,o):Y.make(this.sys,-1,o)}negate(){return this.isZero()?this:Y.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(t=1){if(t===0)return this;if(t<0)return this.shiftRight(Math.abs(t));const o=new Array(this.mag.length+t).fill(0);return ta.lexoHelper.arrayCopy(this.mag,0,o,t,this.mag.length),Y.make(this.sys,this.sign,o)}shiftRight(t=1){if(this.mag.length-t<=0)return Y.zero(this.sys);const o=new Array(this.mag.length-t).fill(0);return ta.lexoHelper.arrayCopy(this.mag,t,o,0,o.length),Y.make(this.sys,this.sign,o)}complement(){return this.complementDigits(this.mag.length)}complementDigits(t){return Y.make(this.sys,this.sign,Y.complement(this.sys,this.mag,t))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(t){return this.mag[t]}compareTo(t){if(this===t)return 0;if(!t)return 1;if(this.sign===-1){if(t.sign===-1){const o=Y.compare(this.mag,t.mag);return o===-1?1:o===1?-1:0}return-1}return this.sign===1?t.sign===1?Y.compare(this.mag,t.mag):1:t.sign===-1?1:t.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const t=new uu.default,o=this.mag,n=o.length;for(let r=0;r<n;++r){const s=o[r];t.insert(0,this.sys.toChar(s))}return this.sign===-1&&t.insert(0,this.sys.getNegativeChar()),t.toString()}equals(t){return this===t?!0:t?this.sys.getBase()===t.sys.getBase()&&this.compareTo(t)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(t){if(this.sys.getBase()!==t.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}dt.LexoInteger=Y,Y.ZERO_MAG=[0],Y.ONE_MAG=[1],Y.NEGATIVE_SIGN=-1,Y.ZERO_SIGN=0,Y.POSITIVE_SIGN=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.LexoDecimal=void 0;const Ot=dt,mu=At;class me{constructor(t,o){this.mag=t,this.sig=o}static half(t){const o=t.getBase()/2|0;return me.make(Ot.LexoInteger.make(t,1,[o]),1)}static parse(t,o){const n=t.indexOf(o.getRadixPointChar());if(t.lastIndexOf(o.getRadixPointChar())!==n)throw new Error("More than one "+o.getRadixPointChar());if(n<0)return me.make(Ot.LexoInteger.parse(t,o),0);const r=t.substring(0,n)+t.substring(n+1);return me.make(Ot.LexoInteger.parse(r,o),t.length-1-n)}static from(t){return me.make(t,0)}static make(t,o){if(t.isZero())return new me(t,0);let n=0;for(let i=0;i<o&&t.getMag(i)===0;++i)++n;const r=t.shiftRight(n),s=o-n;return new me(r,s)}getSystem(){return this.mag.getSystem()}add(t){let o=this.mag,n=this.sig,r=t.mag,s;for(s=t.sig;n<s;++n)o=o.shiftLeft();for(;n>s;)r=r.shiftLeft(),++s;return me.make(o.add(r),n)}subtract(t){let o=this.mag,n=this.sig,r=t.mag,s;for(s=t.sig;n<s;++n)o=o.shiftLeft();for(;n>s;)r=r.shiftLeft(),++s;return me.make(o.subtract(r),n)}multiply(t){return me.make(this.mag.multiply(t.mag),this.sig+t.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const t=this.floor();return t.add(Ot.LexoInteger.one(t.getSystem()))}isExact(){if(this.sig===0)return!0;for(let t=0;t<this.sig;++t)if(this.mag.getMag(t)!==0)return!1;return!0}getScale(){return this.sig}setScale(t,o=!1){if(t>=this.sig)return this;t<0&&(t=0);const n=this.sig-t;let r=this.mag.shiftRight(n);return o&&(r=r.add(Ot.LexoInteger.one(r.getSystem()))),me.make(r,t)}compareTo(t){if(this===t)return 0;if(!t)return 1;let o=this.mag,n=t.mag;return this.sig>t.sig?n=n.shiftLeft(this.sig-t.sig):this.sig<t.sig&&(o=o.shiftLeft(t.sig-this.sig)),o.compareTo(n)}format(){const t=this.mag.format();if(this.sig===0)return t;const o=new mu.default(t),n=o[0],r=n===this.mag.getSystem().getPositiveChar()||n===this.mag.getSystem().getNegativeChar();for(r&&o.remove(0,1);o.length<this.sig+1;)o.insert(0,this.mag.getSystem().toChar(0));return o.insert(o.length-this.sig,this.mag.getSystem().getRadixPointChar()),o.length-this.sig===0&&o.insert(0,this.mag.getSystem().toChar(0)),r&&o.insert(0,n),o.toString()}equals(t){return this===t?!0:t?this.mag.equals(t.mag)&&this.sig===t.sig:!1}toString(){return this.format()}}Tt.LexoDecimal=me;var aa={},Go;function Xo(){if(Go)return aa;Go=1,Object.defineProperty(aa,"__esModule",{value:!0});const a=dt,t=er();class o{constructor(r){this.value=a.LexoInteger.parse(r,t.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new o("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new o("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new o("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[o.BUCKET_0,o.BUCKET_1,o.BUCKET_2]),this._VALUES}static max(){return o.VALUES[o.VALUES.length-1]}static from(r){const s=a.LexoInteger.parse(r,t.LexoRank.NUMERAL_SYSTEM),i=o.VALUES,l=i.length;for(let c=0;c<l;++c){const p=i[c];if(p.value.equals(s))return p}throw new Error("Unknown bucket: "+r)}static resolve(r){const s=o.VALUES,i=s.length;for(let l=0;l<i;++l){const c=s[l];if(c.equals(o.from(r.toString())))return c}throw new Error("No bucket found with id "+r)}format(){return this.value.format()}next(){return this.equals(o.BUCKET_0)?o.BUCKET_1:this.equals(o.BUCKET_1)?o.BUCKET_2:this.equals(o.BUCKET_2)?o.BUCKET_0:o.BUCKET_2}prev(){return this.equals(o.BUCKET_0)?o.BUCKET_2:this.equals(o.BUCKET_1)?o.BUCKET_0:this.equals(o.BUCKET_2)?o.BUCKET_1:o.BUCKET_0}equals(r){return this===r?!0:r?this.value.equals(r.value):!1}}return aa.default=o,aa}var Pa={},Qo={};Object.defineProperty(Qo,"__esModule",{value:!0});var oa={};Object.defineProperty(oa,"__esModule",{value:!0}),oa.LexoNumeralSystem10=void 0;class fu{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;throw new Error("Not valid digit: "+t)}toChar(t){return String.fromCharCode(t+48)}}oa.LexoNumeralSystem10=fu;var ra={};Object.defineProperty(ra,"__esModule",{value:!0}),ra.LexoNumeralSystem36=void 0;class hu{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;if(t>="a"&&t<="z")return t.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+t)}toChar(t){return this.DIGITS[t]}}ra.LexoNumeralSystem36=hu;var na={};Object.defineProperty(na,"__esModule",{value:!0}),na.LexoNumeralSystem64=void 0;class gu{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(t){if(t>="0"&&t<="9")return t.charCodeAt(0)-48;if(t>="A"&&t<="Z")return t.charCodeAt(0)-65+10;if(t==="^")return 36;if(t==="_")return 37;if(t>="a"&&t<="z")return t.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+t)}toChar(t){return this.DIGITS[t]}}na.LexoNumeralSystem64=gu,function(a){var t=ue&&ue.__createBinding||(Object.create?function(n,r,s,i){i===void 0&&(i=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(n,i,l)}:function(n,r,s,i){i===void 0&&(i=s),n[i]=r[s]}),o=ue&&ue.__exportStar||function(n,r){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&t(r,n,s)};Object.defineProperty(a,"__esModule",{value:!0}),o(Qo,a),o(oa,a),o(ra,a),o(na,a)}(Pa);var Jo;function er(){if(Jo)return Mt;Jo=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.LexoRank=void 0;const a=Tt,t=Xo(),o=At,n=Pa;class r{constructor(i,l){this.value=i.format()+"|"+r.formatDecimal(l),this.bucket=i,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new n.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=a.LexoDecimal.parse("0",r.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=a.LexoDecimal.parse("1",r.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=a.LexoDecimal.parse("8",r.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=r.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=a.LexoDecimal.parse("1000000",r.NUMERAL_SYSTEM).subtract(r.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=r.between(r.MIN_DECIMAL,r.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=a.LexoDecimal.parse("100000",r.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=a.LexoDecimal.parse(r.NUMERAL_SYSTEM.toChar(r.NUMERAL_SYSTEM.getBase()-2)+"00000",r.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return r.from(t.default.BUCKET_0,r.MIN_DECIMAL)}static middle(){const i=r.min();return i.between(r.max(i.bucket))}static max(i=t.default.BUCKET_0){return r.from(i,r.MAX_DECIMAL)}static initial(i){return i===t.default.BUCKET_0?r.from(i,r.INITIAL_MIN_DECIMAL):r.from(i,r.INITIAL_MAX_DECIMAL)}static between(i,l){if(i.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=i,p=l,d;if(i.getScale()<l.getScale()){if(d=l.setScale(i.getScale(),!1),i.compareTo(d)>=0)return r.mid(i,l);p=d}if(i.getScale()>p.getScale()){if(d=i.setScale(p.getScale(),!0),d.compareTo(p)>=0)return r.mid(i,l);c=d}let u;for(let f=c.getScale();f>0;p=u){const C=f-1,h=c.setScale(C,!0);if(u=p.setScale(C,!1),h.compareTo(u)===0)return r.checkMid(i,l,h);if(h.compareTo(u)>0)break;f=C,c=h}let m=r.middleInternal(i,l,c,p),g;for(let f=m.getScale();f>0;f=g){g=f-1;const C=m.setScale(g);if(i.compareTo(C)>=0||C.compareTo(l)>=0)break;m=C}return m}static parse(i){const l=i.split("|"),c=t.default.from(l[0]),p=a.LexoDecimal.parse(l[1],r.NUMERAL_SYSTEM);return new r(c,p)}static from(i,l){if(l.getSystem().getBase()!==r.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new r(i,l)}static middleInternal(i,l,c,p){const d=r.mid(c,p);return r.checkMid(i,l,d)}static checkMid(i,l,c){return i.compareTo(c)>=0||c.compareTo(l)>=0?r.mid(i,l):c}static mid(i,l){const p=i.add(l).multiply(a.LexoDecimal.half(i.getSystem())),d=i.getScale()>l.getScale()?i.getScale():l.getScale();if(p.getScale()>d){const u=p.setScale(d,!1);if(u.compareTo(i)>0)return u;const m=p.setScale(d,!0);if(m.compareTo(l)<0)return m}return p}static formatDecimal(i){const l=i.format(),c=new o.default(l);let p=l.indexOf(r.NUMERAL_SYSTEM.getRadixPointChar());const d=r.NUMERAL_SYSTEM.toChar(0);for(p<0&&(p=l.length,c.append(r.NUMERAL_SYSTEM.getRadixPointChar()));p<6;)c.insert(0,d),++p;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new r(this.bucket,r.INITIAL_MAX_DECIMAL);const i=this.decimal.floor();let c=a.LexoDecimal.from(i).subtract(r.EIGHT_DECIMAL);return c.compareTo(r.MIN_DECIMAL)<=0&&(c=r.between(r.MIN_DECIMAL,this.decimal)),new r(this.bucket,c)}genNext(){if(this.isMin())return new r(this.bucket,r.INITIAL_MIN_DECIMAL);const i=this.decimal.ceil();let c=a.LexoDecimal.from(i).add(r.EIGHT_DECIMAL);return c.compareTo(r.MAX_DECIMAL)>=0&&(c=r.between(this.decimal,r.MAX_DECIMAL)),new r(this.bucket,c)}between(i){if(!this.bucket.equals(i.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(i.decimal);if(l>0)return new r(this.bucket,r.between(i.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+i+" this.decimal="+this.decimal+" other.decimal="+i.decimal);return new r(this.bucket,r.between(this.decimal,i.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return r.from(this.bucket.next(),this.decimal)}inPrevBucket(){return r.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(r.MIN_DECIMAL)}isMax(){return this.decimal.equals(r.MAX_DECIMAL)}format(){return this.value}equals(i){return this===i?!0:i?this.value===i.value:!1}toString(){return this.value}compareTo(i){return this===i?0:i?this.value.localeCompare(i.value):1}}return Mt.LexoRank=r,Mt}(function(a){var t=ue&&ue.__createBinding||(Object.create?function(n,r,s,i){i===void 0&&(i=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(n,i,l)}:function(n,r,s,i){i===void 0&&(i=s),n[i]=r[s]}),o=ue&&ue.__exportStar||function(n,r){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&t(r,n,s)};Object.defineProperty(a,"__esModule",{value:!0}),o(er(),a),o(Xo(),a),o(Tt,a),o(dt,a)})(Ko),function(a){var t=ue&&ue.__createBinding||(Object.create?function(n,r,s,i){i===void 0&&(i=s);var l=Object.getOwnPropertyDescriptor(r,s);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[s]}}),Object.defineProperty(n,i,l)}:function(n,r,s,i){i===void 0&&(i=s),n[i]=r[s]}),o=ue&&ue.__exportStar||function(n,r){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&t(r,n,s)};Object.defineProperty(a,"__esModule",{value:!0}),o(Ko,a),o(Pa,a)}(ie);const It=60,tr=It*8;function ia(a,t){if(!a)return"0m";if(t==="days"){const n=Math.floor(a/tr),r=Math.floor(a%tr/It);if(n>0&&r>0)return`${n}d ${r}h`;if(n>0)return`${n}d`;{const s=a%It;return s>0?`${r}h ${s}m`:`${r}h`}}else{const n=Math.floor(a/It),r=a%It;return n>0&&r>0?`${n}h ${r}m`:n>0?`${n}h`:`${r}m`}}function ar(a){return(a==null?void 0:a.reduce((t,o)=>{var n;return t+(((n=o.activities)==null?void 0:n.length)??0)},0))??0}function _u(a){return(a==null?void 0:a.reduce((t,o)=>{var n;return t+(((n=o.milestones)==null?void 0:n.length)??0)},0))??0}function vu(a){return(a==null?void 0:a.reduce((t,o)=>{var r;const n=(r=o.milestones)!=null&&r.length?ar(o.milestones):0;return t+n},0))??0}function bu(a){return a.split(" ").slice(0,2).map(t=>t.charAt(0).toLocaleLowerCase()).join("")}function Lt(a,t){if(a.moved)return pt(t,a.moved.newIndex)}function pt(a,t){if(t===0)if(a.length>1){const o=a[t+1];return ie.LexoRank.parse(o.rank).genPrev().format()}else return ie.LexoRank.middle().format();else if(t===a.length-1){const o=a[t-1];return ie.LexoRank.parse(o.rank).genNext().format()}else{const o=a[t-1],n=a[t+1];return ie.LexoRank.parse(n.rank).between(ie.LexoRank.parse(o.rank)).format()}}function sa(a,t="dd/MM/yyyy"){if(!a)return"";const o=Nt(a);return jo(o)?qo(o,t):""}function za(a,t){return a.status.id===t.id}function Cu(a,t){return a.activities.length===0?!1:!a.activities.some(o=>!za(o,t))}function yu(a,t){return{...a,status:Cu(a,t)?$t.done:$t.todo}}const or=a=>{const{firstName:t,lastName:o}=a||{};return`${t??""}${t?" ":""}${o??""}`};function wu(a,t){const o=a.replace("#",""),n=parseInt(o.slice(0,2),16),r=parseInt(o.slice(2,4),16),s=parseInt(o.slice(4,6),16);return`rgba(${n}, ${r}, ${s}, ${t})`}function ku(a,t=.15){var o;if(a.startsWith("#"))return wu(a,t);if(a.startsWith("rgba")){const n=(o=a.match(/rgba?\(([^)]+)\)/))==null?void 0:o[1].split(",").map(r=>r.trim());if(n&&n.length>=3){const[r,s,i]=n;return`rgba(${r}, ${s}, ${i}, ${t})`}}return a}function rr(a,t,o){const n=e.ref(""),r=e.ref(!1),s=e.ref({top:0,left:0}),i=e.computed(()=>o.value.filter(m=>m.firstName||m.lastName).map(m=>{const f=[m.firstName,m.lastName].filter(Boolean).join("_").replace(/\s+/g,"_");return{id:m.id,name:f}})),l=e.computed(()=>i.value.filter(m=>m.name.toLowerCase().includes(n.value.toLowerCase())));return{showMentionList:r,mentionListPosition:s,filteredUsers:l,mentionQuery:n,handleInput:m=>{const g=m.target,f=g.selectionStart,h=g.value.slice(0,f).match(/@(\w*)$/);h?(n.value=h[1],r.value=!0,e.nextTick(()=>{const{top:y,left:v}=$u(g,f);s.value={top:y,left:v}})):r.value=!1},handleKeydown:m=>{m.key==="Escape"&&r.value&&(r.value=!1)},selectUserMention:m=>{const g=a.value;if(!g)return;const f=g.selectionStart,C=t.value,h=C.slice(0,f).replace(/@(\w*)$/,`@${m} `),y=C.slice(f);t.value=h+y,r.value=!1,e.nextTick(()=>{g.focus(),g.setSelectionRange(h.length,h.length)})},getMentionedUserIds:m=>{const g=Array.from(m.matchAll(/@([\p{L}\p{M}0-9-_]+)/gu)).map(f=>f[1]);return i.value.filter(f=>g.includes(f.name)).map(f=>f.id)}}}function $u(a,t){const o=document.createElement("div"),n=document.createElement("span"),r=window.getComputedStyle(a),s=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","direction","letterSpacing","wordSpacing"];o.style.position="absolute",o.style.visibility="hidden",o.style.whiteSpace="pre-wrap",o.style.overflow="hidden",s.forEach(g=>{o.style[g]=r.getPropertyValue(g)}),o.style.width=r.getPropertyValue("width"),o.scrollTop=a.scrollTop,o.scrollLeft=a.scrollLeft;const i=a.value.substring(0,t),l=a.value.substring(t)||".";o.textContent=i,n.textContent=l[0],o.appendChild(n),document.body.appendChild(o);const c=n.getBoundingClientRect(),p=o.getBoundingClientRect(),d=a.getBoundingClientRect(),u=c.top-p.top+d.top-a.scrollTop,m=c.left-p.left+d.left-a.scrollLeft;return document.body.removeChild(o),{top:u+40,left:m}}const Eu=["title"],Bu={key:0,className:"ao-avatar__initials"},Vu=["src"],Ve=e.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Kt.MD},color:{default:"primary"}},emits:["close"],setup(a,{emit:t}){const o=a,n=e.computed(()=>[`ao-avatar--${o.color}`,...o.avatarUrl?["ao-avatar-img",`ao-avatar-img--${o.size}`]:["ao-avatar",`ao-avatar--${o.size}`]]),r=bu(o.userName),s=i=>{t("close",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",{role:"img",class:e.normalizeClass(n.value),title:i.userName},[i.avatarUrl?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Bu,e.toDisplayString(e.unref(r)),1)),i.avatarUrl?(e.openBlock(),e.createElementBlock("img",{key:1,className:"ao-avatar__image",src:i.avatarUrl},null,8,Vu)):e.createCommentVNode("",!0),i.isClosable?(e.openBlock(),e.createBlock(G,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:i.color,corners:"round",onClick:e.withModifiers(s,["stop"])},null,8,["color","onClick"])):e.createCommentVNode("",!0)],10,Eu))}}),A9="",Su={class:"ao-card-template__subitems"},Nu={class:"ao-card-template__subitem"},xu={class:"ao-card-template__subitem-number"},Mu={class:"ao-card-template__subitem"},Tu={class:"ao-card-template__subitem"},Au={class:"ao-card-template__body"},Ou={class:"ao-card-template__col ao-card-template__col--phases"},Iu={class:"ao-card-template__col-title"},Lu={class:"ao-card-template__col-label"},Du={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},ju={class:"ao-card-template__footer"},Pu={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},zu={class:"ao-card-template__col-title"},Hu={class:"ao-card-template__col-label"},Ru={class:"ao-card-template__col-body"},Uu={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},Fu={class:"ao-card-template__col-title"},Zu={class:"ao-card-template__col-label"},Wu={class:"ao-card-template__col-body"},qu={class:"ao-card-template-item__secondary"},Ha=5,Yu=e.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(a,{emit:t}){const o=a,n=l=>{t("updateTitle",l)},r=(l,c)=>{t("deleteItem",l,c)},s=e.computed(()=>{var l;return((l=o.phases)==null?void 0:l.slice(0,Ha))??[]}),i=e.computed(()=>o.phases&&o.phases.length>Ha?o.phases.length-Ha:0);return(l,c)=>(e.openBlock(),e.createBlock(No,{id:l.id,title:l.title,"is-draggable":!0,"onUpdate:title":n},e.createSlots({subtitle:e.withCtx(()=>[e.createElementVNode("ul",Su,[e.createElementVNode("li",Nu,[e.createVNode(ee,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",xu,e.toDisplayString(l.milestones),1)]),e.createElementVNode("li",Mu,[e.createVNode(ee,{name:"TaskOutlineRounded",size:"sm"}),e.createElementVNode("span",Tu,e.toDisplayString(l.activities),1)])])]),default:e.withCtx(()=>[e.createElementVNode("div",Au,[e.createElementVNode("div",Ou,[e.createElementVNode("div",Iu,[e.createVNode(ee,{name:"WaterfallChartRounded",size:"sm"}),e.createElementVNode("span",Lu,e.toDisplayString(l.$t("template.phases.title")),1)]),l.phases?(e.openBlock(),e.createElementBlock("ul",Du,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,p=>(e.openBlock(),e.createBlock(kt,{key:p.id,label:p.name||p.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),i.value>0?(e.openBlock(),e.createBlock(kt,{key:0,label:`+${i.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])])]),secondary:e.withCtx(()=>[e.createElementVNode("div",qu,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:c[0]||(c[0]=e.withModifiers(p=>r(l.id,l.title),["stop"]))})])]),_:2},[l.updatedBy||l.updatedAt?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",ju,[l.updatedAt?(e.openBlock(),e.createElementBlock("div",Pu,[e.createElementVNode("div",zu,[e.createElementVNode("span",Hu,e.toDisplayString(l.$t("template.updatedAt.label")),1)]),e.createElementVNode("div",Ru,[e.createElementVNode("span",null,e.toDisplayString(l.updatedAt),1)])])):e.createCommentVNode("",!0),l.updatedBy?(e.openBlock(),e.createElementBlock("div",Uu,[e.createElementVNode("div",Fu,[e.createElementVNode("span",Zu,e.toDisplayString(l.$t("template.updatedBy.label")),1)]),e.createElementVNode("div",Wu,[e.createVNode(Ve,{"user-name":l.updatedBy},null,8,["user-name"])])])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}}),O9="",Ku={class:"ao-page-header"},Gu={class:"ao-page-header-main"},Xu={key:0,class:"ao-page-header-secondary"},Dt=e.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",Ku,[e.createElementVNode("div",Gu,[t.canGoBack?(e.openBlock(),e.createBlock(G,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:o[0]||(o[0]=n=>t.$emit("goBack"))})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"primary")]),t.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Xu,[e.renderSlot(t.$slots,"secondary")])):e.createCommentVNode("",!0)]))}}),I9="",Qu=["type"],Ju={key:0,class:"ao-button-card__label"},ze=e.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Ia.BLACK},size:{default:()=>Kt.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>Vo.ROUNDED}},setup(a){const t=a,o=e.computed(()=>t.size),n=e.computed(()=>t.isLoading?"Loading":t.iconName);return(r,s)=>(e.openBlock(),e.createElementBlock("button",{type:r.type,class:e.normalizeClass(["ao-button-card",`ao-button-card--${r.color}`,`ao-button-card--${r.corners}`,r.$attrs.disabled?"ao-button-card--is-disabled":""])},[e.renderSlot(r.$slots,"default",{},()=>[r.label?(e.openBlock(),e.createElementBlock("span",Ju,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0)]),n.value?(e.openBlock(),e.createBlock(ee,{key:0,name:n.value,class:"ao-button-card__icon",size:o.value},null,8,["name","size"])):e.createCommentVNode("",!0)],10,Qu))}}),L9="",e2={class:"ao-card-template-item__footer"},t2={key:0,class:"ao-card-template-item__subitem"},a2={class:"ao-card-template-item__subitem-number"},o2={class:"ao-card-template-item__secondary"},Ra=e.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(a,{emit:t}){const o=i=>{t("update:title",i)},n=["milestones","activities","rules","tasks"],r={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},s=()=>{t("remove")};return(i,l)=>(e.openBlock(),e.createBlock(No,{"onUpdate:title":o},{footer:e.withCtx(()=>[e.createElementVNode("ul",e2,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,c=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.$props[c]?(e.openBlock(),e.createElementBlock("li",t2,[e.createVNode(ee,{name:r[c],size:"sm"},null,8,["name"]),e.createElementVNode("span",a2,e.toDisplayString(i.$props[c]),1)])):e.createCommentVNode("",!0)],64))),64))])]),secondary:e.withCtx(()=>[e.createElementVNode("div",o2,[e.createVNode(G,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:e.withModifiers(s,["stop"])},null,8,["onClick"])])]),_:1}))}}),D9="",r2=e.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(a){const t=a,o=e.computed(()=>{var r;return(r=t.milestones)==null?void 0:r.length}),n=e.computed(()=>t.milestones?ar(t.milestones):0);return(r,s)=>(e.openBlock(),e.createBlock(Ra,e.mergeProps({id:r.id,title:r.name,activities:n.value,milestones:o.value},r.$attrs),{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),n2=e.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(a){const t=a,o=e.computed(()=>{var n;return((n=t.activities)==null?void 0:n.length)||0});return(n,r)=>(e.openBlock(),e.createBlock(Ra,{activities:o.value},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["activities"]))}}),i2={class:"ao-list__footer"},s2=e.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(a,{emit:t}){const o=a,n=()=>{t("addMilestone",{phaseId:o.phase.id})},r=l=>{t("removeMilestone",{phaseId:o.phase.id,id:l})},s=l=>{t("updateMilestone",l)},i=l=>{if(l.moved){const c=Lt(l,o.phase.milestones);t("updateMilestone",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.phase?(e.openBlock(),e.createBlock(e.unref(je),{key:0,"model-value":l.phase.milestones,class:"ao-templates__list",title:l.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:i},{header:e.withCtx(()=>[e.createVNode(ne,{title:"Milestones",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:p})=>[(e.openBlock(),e.createBlock(n2,{id:p.id,key:p.id,title:p.name,activities:p.activities,"is-active":l.milestoneId===p.id,"is-draggable":!0,"onUpdate:title":d=>s({id:p.id,name:d}),onClick:d=>l.$router.push({params:{milestoneId:p.id}}),onRemove:()=>r(p.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",i2,[e.createVNode(ze,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.milestones.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),l2=e.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(a){const t=a,o=e.computed(()=>{var n;return((n=t.tasks)==null?void 0:n.length)||0});return(n,r)=>(e.openBlock(),e.createBlock(Ra,{tasks:o.value},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["tasks"]))}}),c2={class:"ao-list__footer"},d2=e.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(a,{emit:t}){const o=a,n=()=>{t("addActivity",{milestoneId:o.milestone.id})},r=l=>{t("updateActivity",{...l})},s=l=>{t("removeActivity",{id:l})},i=l=>{if(l.moved){const c=Lt(l,o.milestone.activities);t("updateActivity",{id:l.moved.element.id,rank:c})}};return(l,c)=>l.milestone?(e.openBlock(),e.createBlock(e.unref(je),{key:0,"model-value":l.milestone.activities,title:l.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:i},{header:e.withCtx(()=>[e.createVNode(ne,{title:"Activities",level:3,class:"ao-list__title"})]),item:e.withCtx(({element:p})=>[(e.openBlock(),e.createBlock(l2,{id:p.id,key:p.id,title:p.name,tasks:p.tasks,"is-active":l.activityId===p.id,"is-draggable":!0,"onUpdate:title":d=>r({id:p.id,name:d}),onClick:d=>l.$router.push({params:{activityId:p.id}}),onRemove:()=>s(p.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:e.withCtx(()=>[e.createElementVNode("div",c2,[e.createVNode(ze,{"icon-name":"AddBoxOutlineRounded",label:l.$t("template.activities.add"),onClick:n},null,8,["label"])])]),_:1},8,["model-value","title"])):e.createCommentVNode("",!0)}}),p2={class:"ao-modal"},u2={key:0,class:"ao-modal__header"},m2={class:"ao-modal__header-meta"},f2={class:"ao-modal__title-group"},h2={class:"ao-modal__body"},g2={key:1,class:"ao-modal__footer"},la=e.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[e.createElementVNode("div",{class:"ao-modal__backdrop",onClick:o[0]||(o[0]=n=>t.$emit("close"))}),e.createElementVNode("div",p2,[t.$slots.header?(e.openBlock(),e.createElementBlock("div",u2,[e.createElementVNode("div",m2,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:o[1]||(o[1]=n=>t.$emit("close"))})]),e.createElementVNode("header",f2,[e.renderSlot(t.$slots,"header")])])):e.createCommentVNode("",!0),e.createElementVNode("div",h2,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",g2,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])],2))}}),j9="",jt=Math.min,fe=Math.max,ca=Math.round,da=Math.floor,He=a=>({x:a,y:a}),_2={left:"right",right:"left",bottom:"top",top:"bottom"},v2={start:"end",end:"start"};function Ua(a,t){return typeof a=="function"?a(t):a}function ut(a){return a.split("-")[0]}function pa(a){return a.split("-")[1]}function b2(a){return a==="x"?"y":"x"}function nr(a){return a==="y"?"height":"width"}function Fa(a){return["top","bottom"].includes(ut(a))?"y":"x"}function ir(a){return b2(Fa(a))}function C2(a,t,o){o===void 0&&(o=!1);const n=pa(a),r=ir(a),s=nr(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ua(i)),[i,ua(i)]}function y2(a){const t=ua(a);return[Za(a),t,Za(t)]}function Za(a){return a.replace(/start|end/g,t=>v2[t])}function w2(a,t,o){const n=["left","right"],r=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(a){case"top":case"bottom":return o?t?r:n:t?n:r;case"left":case"right":return t?s:i;default:return[]}}function k2(a,t,o,n){const r=pa(a);let s=w2(ut(a),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Za)))),s}function ua(a){return a.replace(/left|right|bottom|top/g,t=>_2[t])}function $2(a){return{top:0,right:0,bottom:0,left:0,...a}}function E2(a){return typeof a!="number"?$2(a):{top:a,right:a,bottom:a,left:a}}function ma(a){return{...a,top:a.y,left:a.x,right:a.x+a.width,bottom:a.y+a.height}}function sr(a,t,o){let{reference:n,floating:r}=a;const s=Fa(t),i=ir(t),l=nr(i),c=ut(t),p=s==="y",d=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2,m=n[l]/2-r[l]/2;let g;switch(c){case"top":g={x:d,y:n.y-r.height};break;case"bottom":g={x:d,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:u};break;case"left":g={x:n.x-r.width,y:u};break;default:g={x:n.x,y:n.y}}switch(pa(t)){case"start":g[i]-=m*(o&&p?-1:1);break;case"end":g[i]+=m*(o&&p?-1:1);break}return g}const B2=async(a,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let p=await i.getElementRects({reference:a,floating:t,strategy:r}),{x:d,y:u}=sr(p,n,c),m=n,g={},f=0;for(let C=0;C<l.length;C++){const{name:h,fn:y}=l[C],{x:v,y:_,data:b,reset:B}=await y({x:d,y:u,initialPlacement:n,placement:m,strategy:r,middlewareData:g,rects:p,platform:i,elements:{reference:a,floating:t}});if(d=v??d,u=_??u,g={...g,[h]:{...g[h],...b}},B&&f<=50){f++,typeof B=="object"&&(B.placement&&(m=B.placement),B.rects&&(p=B.rects===!0?await i.getElementRects({reference:a,floating:t,strategy:r}):B.rects),{x:d,y:u}=sr(p,m,c)),C=-1;continue}}return{x:d,y:u,placement:m,strategy:r,middlewareData:g}};async function lr(a,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:l,strategy:c}=a,{boundary:p="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:g=0}=Ua(t,a),f=E2(g),h=l[m?u==="floating"?"reference":"floating":u],y=ma(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(h)))==null||o?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:p,rootBoundary:d,strategy:c})),v=u==="floating"?{...i.floating,x:n,y:r}:i.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},B=ma(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:_,strategy:c}):v);return{top:(y.top-B.top+f.top)/b.y,bottom:(B.bottom-y.bottom+f.bottom)/b.y,left:(y.left-B.left+f.left)/b.x,right:(B.right-y.right+f.right)/b.x}}const V2=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:p}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:C=!0,...h}=Ua(a,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const y=ut(r),v=ut(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(p.floating)),b=m||(v||!C?[ua(l)]:y2(l));!m&&f!=="none"&&b.push(...k2(l,C,f,_));const B=[l,...b],E=await lr(t,h),N=[];let I=((n=s.flip)==null?void 0:n.overflows)||[];if(d&&N.push(E[y]),u){const A=C2(r,i,_);N.push(E[A[0]],E[A[1]])}if(I=[...I,{placement:r,overflows:N}],!N.every(A=>A<=0)){var z,R;const A=(((z=s.flip)==null?void 0:z.index)||0)+1,H=B[A];if(H)return{data:{index:A,overflows:I},reset:{placement:H}};let K=(R=I.filter(W=>W.overflows[0]<=0).sort((W,U)=>W.overflows[1]-U.overflows[1])[0])==null?void 0:R.placement;if(!K)switch(g){case"bestFit":{var F;const W=(F=I.map(U=>[U.placement,U.overflows.filter(S=>S>0).reduce((S,$)=>S+$,0)]).sort((U,S)=>U[1]-S[1])[0])==null?void 0:F[0];W&&(K=W);break}case"initialPlacement":K=l;break}if(r!==K)return{reset:{placement:K}}}return{}}}},S2=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(t){const{placement:o,rects:n,platform:r,elements:s}=t,{apply:i=()=>{},...l}=Ua(a,t),c=await lr(t,l),p=ut(o),d=pa(o),u=Fa(o)==="y",{width:m,height:g}=n.floating;let f,C;p==="top"||p==="bottom"?(f=p,C=d===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(C=p,f=d==="end"?"top":"bottom");const h=g-c[f],y=m-c[C],v=!t.middlewareData.shift;let _=h,b=y;if(u){const E=m-c.left-c.right;b=d||v?jt(y,E):E}else{const E=g-c.top-c.bottom;_=d||v?jt(h,E):E}if(v&&!d){const E=fe(c.left,0),N=fe(c.right,0),I=fe(c.top,0),z=fe(c.bottom,0);u?b=m-2*(E!==0||N!==0?E+N:fe(c.left,c.right)):_=g-2*(I!==0||z!==0?I+z:fe(c.top,c.bottom))}await i({...t,availableWidth:b,availableHeight:_});const B=await r.getDimensions(s.floating);return m!==B.width||g!==B.height?{reset:{rects:!0}}:{}}}};function Re(a){return cr(a)?(a.nodeName||"").toLowerCase():"#document"}function ce(a){var t;return(a==null||(t=a.ownerDocument)==null?void 0:t.defaultView)||window}function Se(a){var t;return(t=(cr(a)?a.ownerDocument:a.document)||window.document)==null?void 0:t.documentElement}function cr(a){return a instanceof Node||a instanceof ce(a).Node}function Ne(a){return a instanceof Element||a instanceof ce(a).Element}function ye(a){return a instanceof HTMLElement||a instanceof ce(a).HTMLElement}function dr(a){return typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof ce(a).ShadowRoot}function Pt(a){const{overflow:t,overflowX:o,overflowY:n,display:r}=he(a);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!["inline","contents"].includes(r)}function N2(a){return["table","td","th"].includes(Re(a))}function Wa(a){const t=qa(),o=he(a);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(o.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(o.contain||"").includes(n))}function x2(a){let t=mt(a);for(;ye(t)&&!fa(t);){if(Wa(t))return t;t=mt(t)}return null}function qa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fa(a){return["html","body","#document"].includes(Re(a))}function he(a){return ce(a).getComputedStyle(a)}function ha(a){return Ne(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function mt(a){if(Re(a)==="html")return a;const t=a.assignedSlot||a.parentNode||dr(a)&&a.host||Se(a);return dr(t)?t.host:t}function pr(a){const t=mt(a);return fa(t)?a.ownerDocument?a.ownerDocument.body:a.body:ye(t)&&Pt(t)?t:pr(t)}function zt(a,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=pr(a),s=r===((n=a.ownerDocument)==null?void 0:n.body),i=ce(r);return s?t.concat(i,i.visualViewport||[],Pt(r)?r:[],i.frameElement&&o?zt(i.frameElement):[]):t.concat(r,zt(r))}function ur(a){const t=he(a);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=ye(a),s=r?a.offsetWidth:o,i=r?a.offsetHeight:n,l=ca(o)!==s||ca(n)!==i;return l&&(o=s,n=i),{width:o,height:n,$:l}}function Ya(a){return Ne(a)?a:a.contextElement}function ft(a){const t=Ya(a);if(!ye(t))return He(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=ur(t);let i=(s?ca(o.width):o.width)/n,l=(s?ca(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const M2=He(0);function mr(a){const t=ce(a);return!qa()||!t.visualViewport?M2:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T2(a,t,o){return t===void 0&&(t=!1),!o||t&&o!==ce(a)?!1:t}function Je(a,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=a.getBoundingClientRect(),s=Ya(a);let i=He(1);t&&(n?Ne(n)&&(i=ft(n)):i=ft(a));const l=T2(s,o,n)?mr(s):He(0);let c=(r.left+l.x)/i.x,p=(r.top+l.y)/i.y,d=r.width/i.x,u=r.height/i.y;if(s){const m=ce(s),g=n&&Ne(n)?ce(n):n;let f=m.frameElement;for(;f&&n&&g!==m;){const C=ft(f),h=f.getBoundingClientRect(),y=he(f),v=h.left+(f.clientLeft+parseFloat(y.paddingLeft))*C.x,_=h.top+(f.clientTop+parseFloat(y.paddingTop))*C.y;c*=C.x,p*=C.y,d*=C.x,u*=C.y,c+=v,p+=_,f=ce(f).frameElement}}return ma({width:d,height:u,x:c,y:p})}function A2(a){let{rect:t,offsetParent:o,strategy:n}=a;const r=ye(o),s=Se(o);if(o===s)return t;let i={scrollLeft:0,scrollTop:0},l=He(1);const c=He(0);if((r||!r&&n!=="fixed")&&((Re(o)!=="body"||Pt(s))&&(i=ha(o)),ye(o))){const p=Je(o);l=ft(o),c.x=p.x+o.clientLeft,c.y=p.y+o.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-i.scrollLeft*l.x+c.x,y:t.y*l.y-i.scrollTop*l.y+c.y}}function O2(a){return Array.from(a.getClientRects())}function fr(a){return Je(Se(a)).left+ha(a).scrollLeft}function I2(a){const t=Se(a),o=ha(a),n=a.ownerDocument.body,r=fe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=fe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+fr(a);const l=-o.scrollTop;return he(n).direction==="rtl"&&(i+=fe(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:l}}function L2(a,t){const o=ce(a),n=Se(a),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,l=0,c=0;if(r){s=r.width,i=r.height;const p=qa();(!p||p&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:i,x:l,y:c}}function D2(a,t){const o=Je(a,!0,t==="fixed"),n=o.top+a.clientTop,r=o.left+a.clientLeft,s=ye(a)?ft(a):He(1),i=a.clientWidth*s.x,l=a.clientHeight*s.y,c=r*s.x,p=n*s.y;return{width:i,height:l,x:c,y:p}}function hr(a,t,o){let n;if(t==="viewport")n=L2(a,o);else if(t==="document")n=I2(Se(a));else if(Ne(t))n=D2(t,o);else{const r=mr(a);n={...t,x:t.x-r.x,y:t.y-r.y}}return ma(n)}function gr(a,t){const o=mt(a);return o===t||!Ne(o)||fa(o)?!1:he(o).position==="fixed"||gr(o,t)}function j2(a,t){const o=t.get(a);if(o)return o;let n=zt(a,[],!1).filter(l=>Ne(l)&&Re(l)!=="body"),r=null;const s=he(a).position==="fixed";let i=s?mt(a):a;for(;Ne(i)&&!fa(i);){const l=he(i),c=Wa(i);!c&&l.position==="fixed"&&(r=null),(s?!c&&!r:!c&&l.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Pt(i)&&!c&&gr(a,i))?n=n.filter(d=>d!==i):r=l,i=mt(i)}return t.set(a,n),n}function P2(a){let{element:t,boundary:o,rootBoundary:n,strategy:r}=a;const i=[...o==="clippingAncestors"?j2(t,this._c):[].concat(o),n],l=i[0],c=i.reduce((p,d)=>{const u=hr(t,d,r);return p.top=fe(u.top,p.top),p.right=jt(u.right,p.right),p.bottom=jt(u.bottom,p.bottom),p.left=fe(u.left,p.left),p},hr(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function z2(a){return ur(a)}function H2(a,t,o){const n=ye(t),r=Se(t),s=o==="fixed",i=Je(a,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=He(0);if(n||!n&&!s)if((Re(t)!=="body"||Pt(r))&&(l=ha(t)),n){const p=Je(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else r&&(c.x=fr(r));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function _r(a,t){return!ye(a)||he(a).position==="fixed"?null:t?t(a):a.offsetParent}function vr(a,t){const o=ce(a);if(!ye(a))return o;let n=_r(a,t);for(;n&&N2(n)&&he(n).position==="static";)n=_r(n,t);return n&&(Re(n)==="html"||Re(n)==="body"&&he(n).position==="static"&&!Wa(n))?o:n||x2(a)||o}const R2=async function(a){let{reference:t,floating:o,strategy:n}=a;const r=this.getOffsetParent||vr,s=this.getDimensions;return{reference:H2(t,await r(o),n),floating:{x:0,y:0,...await s(o)}}};function U2(a){return he(a).direction==="rtl"}const F2={convertOffsetParentRelativeRectToViewportRelativeRect:A2,getDocumentElement:Se,getClippingRect:P2,getOffsetParent:vr,getElementRects:R2,getClientRects:O2,getDimensions:z2,getScale:ft,isElement:Ne,isRTL:U2};function Z2(a,t){let o=null,n;const r=Se(a);function s(){clearTimeout(n),o&&o.disconnect(),o=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:p,top:d,width:u,height:m}=a.getBoundingClientRect();if(l||t(),!u||!m)return;const g=da(d),f=da(r.clientWidth-(p+u)),C=da(r.clientHeight-(d+m)),h=da(p),v={rootMargin:-g+"px "+-f+"px "+-C+"px "+-h+"px",threshold:fe(0,jt(1,c))||1};let _=!0;function b(B){const E=B[0].intersectionRatio;if(E!==c){if(!_)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},100)}_=!1}try{o=new IntersectionObserver(b,{...v,root:r.ownerDocument})}catch{o=new IntersectionObserver(b,v)}o.observe(a)}return i(!0),s}function W2(a,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,p=Ya(a),d=r||s?[...p?zt(p):[],...zt(t)]:[];d.forEach(y=>{r&&y.addEventListener("scroll",o,{passive:!0}),s&&y.addEventListener("resize",o)});const u=p&&l?Z2(p,o):null;let m=-1,g=null;i&&(g=new ResizeObserver(y=>{let[v]=y;v&&v.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{g&&g.observe(t)})),o()}),p&&!c&&g.observe(p),g.observe(t));let f,C=c?Je(a):null;c&&h();function h(){const y=Je(a);C&&(y.x!==C.x||y.y!==C.y||y.width!==C.width||y.height!==C.height)&&o(),C=y,f=requestAnimationFrame(h)}return o(),()=>{d.forEach(y=>{r&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),u&&u(),g&&g.disconnect(),g=null,c&&cancelAnimationFrame(f)}}const q2=(a,t,o)=>{const n=new Map,r={platform:F2,...o},s={...r.platform,_c:n};return B2(a,t,{...r,platform:s})},Y2=a=>{const t=e.ref(!1),o=e.ref(),n=e.ref(),r=e.ref(0);function s(){const u=e.unref(a.appendTo);return u?typeof u=="string"?document.getElementById(u)??document.body:u:document.getElementById("floatingElements")??document.body}const i=s(),l=e.ref(()=>{});function c(u){u.relatedTarget&&n.value&&n.value.contains(u.relatedTarget)||a.multiselect.value.deactivate()}function p(){const u=a.multiselect.value.$el,m=u.querySelector(".multiselect-dropdown");if(!m||!u||t.value===!0)return;n.value=m,o.value=u,getComputedStyle(m).getPropertyValue("display")==="none"&&(m.style.display="flex"),r.value=m.offsetHeight,m.style.removeProperty("display"),Object.assign(m.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),i.appendChild(m),a.multiselect.value.handleFocusOut=c;const f=W2(o.value,n.value,d);l.value=()=>{n.value&&i.contains(n.value)&&i.removeChild(n.value),f()}}function d(){!n.value||!o.value||q2(o.value,n.value,{strategy:"absolute",placement:"bottom-start",middleware:[V2({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),S2({apply({availableWidth:u,availableHeight:m,elements:g,rects:f}){Object.assign(g.floating.style,{minHeight:`${r.value}px`,width:`${f.reference.width}px`,maxWidth:`${u}px`,maxHeight:`${m}px`})}})]}).then(({x:u,y:m})=>{Object.assign(n.value.style,{left:`${u}px`,top:`${m}px`})})}e.onMounted(()=>{p()}),e.onBeforeUnmount(()=>{l.value()}),e.onUnmounted(()=>{l.value()})};function we(a){return[null,void 0].indexOf(a)!==-1}function K2(a,t,o){const{object:n,valueProp:r,mode:s}=e.toRefs(a),i=e.getCurrentInstance().proxy,l=o.iv,c=(u,m=!0)=>{l.value=d(u);const g=p(u);t.emit("change",g,i),m&&(t.emit("input",g),t.emit("update:modelValue",g))},p=u=>n.value||we(u)?u:Array.isArray(u)?u.map(m=>m[r.value]):u[r.value],d=u=>we(u)?s.value==="single"?{}:[]:u;return{update:c}}function G2(a,t){const{value:o,modelValue:n,mode:r,valueProp:s}=e.toRefs(a),i=e.ref(r.value!=="single"?[]:{}),l=e.computed(()=>n&&n.value!==void 0?n.value:o.value),c=e.computed(()=>r.value==="single"?i.value[s.value]:i.value.map(d=>d[s.value])),p=e.computed(()=>r.value!=="single"?i.value.map(d=>d[s.value]).join(","):i.value[s.value]);return{iv:i,internalValue:i,ev:l,externalValue:l,textValue:p,plainValue:c}}function X2(a,t,o){const{regex:n}=e.toRefs(a),r=e.getCurrentInstance().proxy,s=o.isOpen,i=o.open,l=e.ref(null),c=()=>{l.value=""},p=m=>{l.value=m.target.value},d=m=>{if(n&&n.value){let g=n.value;typeof g=="string"&&(g=new RegExp(g)),m.key.match(g)||m.preventDefault()}},u=m=>{if(n&&n.value){let f=(m.clipboardData||window.clipboardData).getData("Text"),C=n.value;typeof C=="string"&&(C=new RegExp(C)),f.split("").every(h=>!!h.match(C))||m.preventDefault()}t.emit("paste",m,r)};return e.watch(l,m=>{!s.value&&m&&i(),t.emit("search-change",m,r)}),{search:l,clearSearch:c,handleSearchInput:p,handleKeypress:d,handlePaste:u}}function Q2(a,t,o){const{groupSelect:n,mode:r,groups:s,disabledProp:i}=e.toRefs(a),l=e.ref(null),c=d=>{d===void 0||d!==null&&d[i.value]||s.value&&d&&d.group&&(r.value==="single"||!n.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Ka(a,t=!0){return t?String(a).toLowerCase().trim():String(a).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function J2(a){return Object.prototype.toString.call(a)==="[object Object]"}function e0(a,t){const o=t.slice().sort();return a.length===t.length&&a.slice().sort().every(function(n,r){return n===o[r]})}function t0(a,t,o){const{options:n,mode:r,trackBy:s,limit:i,hideSelected:l,createTag:c,createOption:p,label:d,appendNewTag:u,appendNewOption:m,multipleLabel:g,object:f,loading:C,delay:h,resolveOnLoad:y,minChars:v,filterResults:_,clearOnSearch:b,clearOnSelect:B,valueProp:E,allowAbsent:N,groupLabel:I,canDeselect:z,max:R,strict:F,closeOnSelect:A,closeOnDeselect:H,groups:K,reverse:W,infinite:U,groupOptions:S,groupHideEmpty:$,groupSelect:L,onCreate:V,disabledProp:D,searchStart:q,searchFilter:w}=e.toRefs(a),x=e.getCurrentInstance().proxy,O=o.iv,M=o.ev,P=o.search,Z=o.clearSearch,le=o.update,nt=o.pointer,Wt=o.setPointer,qe=o.clearPointer,Va=o.focus,vo=o.deactivate,Ye=o.close,Sa=o.localize,Ke=e.ref([]),Ee=e.ref([]),_e=e.ref(!1),Ce=e.ref(null),Oe=e.ref(U.value&&i.value===-1?10:i.value),qt=e.computed(()=>c.value||p.value||!1),Na=e.computed(()=>u.value!==void 0?u.value:m.value!==void 0?m.value:!0),ve=e.computed(()=>{if(K.value){let k=it.value||[],T=[];return k.forEach(Q=>{Eo(Q[S.value]).forEach(ae=>{T.push(Object.assign({},ae,Q[D.value]?{[D.value]:!0}:{}))})}),T}else{let k=Eo(Ee.value||[]);return Ke.value.length&&(k=k.concat(Ke.value)),k}}),Yt=e.computed(()=>{let k=ve.value;return W.value&&(k=k.reverse()),Ct.value.length&&(k=Ct.value.concat(k)),$o(k)}),Ge=e.computed(()=>{let k=Yt.value;return Oe.value>0&&(k=k.slice(0,Oe.value)),k}),it=e.computed(()=>{if(!K.value)return[];let k=[],T=Ee.value||[];return Ke.value.length&&k.push({[I.value]:" ",[S.value]:[...Ke.value],__CREATE__:!0}),k.concat(T)}),xa=e.computed(()=>{let k=[...it.value].map(T=>({...T}));return Ct.value.length&&(k[0]&&k[0].__CREATE__?k[0][S.value]=[...Ct.value,...k[0][S.value]]:k=[{[I.value]:" ",[S.value]:[...Ct.value],__CREATE__:!0}].concat(k)),k}),bo=e.computed(()=>{if(!K.value)return[];let k=xa.value;return J7((k||[]).map((T,Q)=>{const ae=Eo(T[S.value]);return{...T,index:Q,group:!0,[S.value]:$o(ae,!1).map(lt=>Object.assign({},lt,T[D.value]?{[D.value]:!0}:{})),__VISIBLE__:$o(ae).map(lt=>Object.assign({},lt,T[D.value]?{[D.value]:!0}:{}))}}))}),Co=e.computed(()=>{switch(r.value){case"single":return!we(O.value[E.value]);case"multiple":case"tags":return!we(O.value)&&O.value.length>0}}),P7=e.computed(()=>g!==void 0&&g.value!==void 0?g.value(O.value,x):O.value&&O.value.length>1?`${O.value.length} options selected`:"1 option selected"),z7=e.computed(()=>!ve.value.length&&!_e.value&&!Ct.value.length),H7=e.computed(()=>ve.value.length>0&&Ge.value.length==0&&(P.value&&K.value||!K.value)),Ct=e.computed(()=>qt.value===!1||!P.value?[]:G7(P.value)!==-1?[]:[{[E.value]:P.value,[st.value[0]]:P.value,[d.value]:P.value,__CREATE__:!0}]),st=e.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),R7=e.computed(()=>{switch(r.value){case"single":return null;case"multiple":case"tags":return[]}}),U7=e.computed(()=>C.value||_e.value),yt=k=>{switch(typeof k!="object"&&(k=Le(k)),r.value){case"single":le(k);break;case"multiple":case"tags":le(O.value.concat(k));break}t.emit("select",Ur(k),k,x)},wt=k=>{switch(typeof k!="object"&&(k=Le(k)),r.value){case"single":Zr();break;case"tags":case"multiple":le(Array.isArray(k)?O.value.filter(T=>k.map(Q=>Q[E.value]).indexOf(T[E.value])===-1):O.value.filter(T=>T[E.value]!=k[E.value]));break}t.emit("deselect",Ur(k),k,x)},Ur=k=>f.value?k:k[E.value],Fr=k=>{wt(k)},F7=(k,T)=>{if(T.button!==0){T.preventDefault();return}Fr(k)},Zr=()=>{le(R7.value),t.emit("clear",x)},Ie=k=>{if(k.group!==void 0)return r.value==="single"?!1:K7(k[S.value])&&k[S.value].length;switch(r.value){case"single":return!we(O.value)&&O.value[E.value]==k[E.value];case"tags":case"multiple":return!we(O.value)&&O.value.map(T=>T[E.value]).indexOf(k[E.value])!==-1}},yo=k=>k[D.value]===!0,wo=()=>R===void 0||R.value===-1||!Co.value&&R.value>0?!1:O.value.length>=R.value,Z7=k=>{if(!yo(k)){if(V&&V.value&&!Ie(k)&&k.__CREATE__&&(k={...k},delete k.__CREATE__,k=V.value(k,x),k instanceof Promise)){_e.value=!0,k.then(T=>{_e.value=!1,Wr(T)});return}Wr(k)}},Wr=k=>{switch(k.__CREATE__&&(k={...k},delete k.__CREATE__),r.value){case"single":if(k&&Ie(k)){z.value&&wt(k),H.value&&(qe(),Ye());return}k&&ko(k),B.value&&Z(),A.value&&(qe(),Ye()),k&&yt(k);break;case"multiple":if(k&&Ie(k)){wt(k),H.value&&(qe(),Ye());return}if(wo()){t.emit("max",x);return}k&&(ko(k),yt(k)),B.value&&Z(),l.value&&qe(),A.value&&Ye();break;case"tags":if(k&&Ie(k)){wt(k),H.value&&(qe(),Ye());return}if(wo()){t.emit("max",x);return}k&&ko(k),B.value&&Z(),k&&yt(k),l.value&&qe(),A.value&&Ye();break}A.value||Va()},W7=k=>{if(!(yo(k)||r.value==="single"||!L.value)){switch(r.value){case"multiple":case"tags":Y7(k[S.value])?wt(k[S.value]):yt(k[S.value].filter(T=>O.value.map(Q=>Q[E.value]).indexOf(T[E.value])===-1).filter(T=>!T[D.value]).filter((T,Q)=>O.value.length+1+Q<=R.value||R.value===-1)),l.value&&nt.value&&Wt(bo.value.filter(T=>!T[D.value])[nt.value.index]);break}A.value&&vo()}},ko=k=>{Le(k[E.value])===void 0&&qt.value&&(t.emit("tag",k[E.value],x),t.emit("option",k[E.value],x),t.emit("create",k[E.value],x),Na.value&&Q7(k),Z())},q7=()=>{r.value!=="single"&&yt(Ge.value.filter(k=>!k.disabled&&!Ie(k)))},Y7=k=>k.find(T=>!Ie(T)&&!T[D.value])===void 0,K7=k=>k.find(T=>!Ie(T))===void 0,Le=k=>ve.value[ve.value.map(T=>String(T[E.value])).indexOf(String(k))],G7=k=>ve.value.findIndex(T=>st.value.some(Q=>(parseInt(T[Q])==T[Q]?parseInt(T[Q]):T[Q])===(parseInt(k)==k?parseInt(k):k))),X7=k=>["tags","multiple"].indexOf(r.value)!==-1&&l.value&&Ie(k),Q7=k=>{Ke.value.push(k)},J7=k=>$.value?k.filter(T=>P.value?T.__VISIBLE__.length:T[S.value].length):k.filter(T=>P.value?T.__VISIBLE__.length:!0),$o=(k,T=!0)=>{let Q=k;if(P.value&&_.value){let ae=w.value;ae||(ae=(lt,Yr,h4)=>st.value.some(tg=>{let Kr=Ka(Sa(lt[tg]),F.value);return q.value?Kr.startsWith(Ka(Yr,F.value)):Kr.indexOf(Ka(Yr,F.value))!==-1})),Q=Q.filter(lt=>ae(lt,P.value,x))}return l.value&&T&&(Q=Q.filter(ae=>!X7(ae))),Q},Eo=k=>{let T=k;return J2(T)&&(T=Object.keys(T).map(Q=>{let ae=T[Q];return{[E.value]:Q,[st.value[0]]:ae,[d.value]:ae}})),T=T.map(Q=>typeof Q=="object"?Q:{[E.value]:Q,[st.value[0]]:Q,[d.value]:Q}),T},Ma=()=>{we(M.value)||(O.value=Aa(M.value))},Ta=k=>(_e.value=!0,new Promise((T,Q)=>{n.value(P.value,x).then(ae=>{Ee.value=ae||[],typeof k=="function"&&k(ae),_e.value=!1}).catch(ae=>{console.error(ae),Ee.value=[],_e.value=!1}).finally(()=>{T()})})),Bo=()=>{if(Co.value)if(r.value==="single"){let k=Le(O.value[E.value]);if(k!==void 0){let T=k[d.value];O.value[d.value]=T,f.value&&(M.value[d.value]=T)}}else O.value.forEach((k,T)=>{let Q=Le(O.value[T][E.value]);if(Q!==void 0){let ae=Q[d.value];O.value[T][d.value]=ae,f.value&&(M.value[T][d.value]=ae)}})},eg=k=>{Ta(k)},Aa=k=>we(k)?r.value==="single"?{}:[]:f.value?k:r.value==="single"?Le(k)||(N.value?{[d.value]:k,[E.value]:k,[st.value[0]]:k}:{}):k.filter(T=>!!Le(T)||N.value).map(T=>Le(T)||{[d.value]:T,[E.value]:T,[st.value[0]]:T}),qr=()=>{Ce.value=e.watch(P,k=>{k.length<v.value||!k&&v.value!==0||(_e.value=!0,b.value&&(Ee.value=[]),setTimeout(()=>{k==P.value&&n.value(P.value,x).then(T=>{(k==P.value||!P.value)&&(Ee.value=T,nt.value=Ge.value.filter(Q=>Q[D.value]!==!0)[0]||null,_e.value=!1)}).catch(T=>{console.error(T)})},h.value))},{flush:"sync"})};if(r.value!=="single"&&!we(M.value)&&!Array.isArray(M.value))throw new Error(`v-model must be an array when using "${r.value}" mode`);return n&&typeof n.value=="function"?y.value?Ta(Ma):f.value==!0&&Ma():(Ee.value=n.value,Ma()),h.value>-1&&qr(),e.watch(h,(k,T)=>{Ce.value&&Ce.value(),k>=0&&qr()}),e.watch(M,k=>{if(we(k)){le(Aa(k),!1);return}switch(r.value){case"single":(f.value?k[E.value]!=O.value[E.value]:k!=O.value[E.value])&&le(Aa(k),!1);break;case"multiple":case"tags":e0(f.value?k.map(T=>T[E.value]):k,O.value.map(T=>T[E.value]))||le(Aa(k),!1);break}},{deep:!0}),e.watch(n,(k,T)=>{typeof a.options=="function"?y.value&&(!T||k&&k.toString()!==T.toString())&&Ta():(Ee.value=a.options,Object.keys(O.value).length||Ma(),Bo())}),e.watch(d,Bo),e.watch(i,(k,T)=>{Oe.value=U.value&&k===-1?10:k}),{pfo:Yt,fo:Ge,filteredOptions:Ge,hasSelected:Co,multipleLabelText:P7,eo:ve,extendedOptions:ve,eg:it,extendedGroups:it,fg:bo,filteredGroups:bo,noOptions:z7,noResults:H7,resolving:_e,busy:U7,offset:Oe,select:yt,deselect:wt,remove:Fr,selectAll:q7,clear:Zr,isSelected:Ie,isDisabled:yo,isMax:wo,getOption:Le,handleOptionClick:Z7,handleGroupClick:W7,handleTagRemove:F7,refreshOptions:eg,resolveOptions:Ta,refreshLabels:Bo}}function a0(a,t,o){const{valueProp:n,showOptions:r,searchable:s,groupLabel:i,groups:l,mode:c,groupSelect:p,disabledProp:d,groupOptions:u}=e.toRefs(a),m=o.fo,g=o.fg,f=o.handleOptionClick,C=o.handleGroupClick,h=o.search,y=o.pointer,v=o.setPointer,_=o.clearPointer,b=o.multiselect,B=o.isOpen,E=e.computed(()=>m.value.filter(M=>!M[d.value])),N=e.computed(()=>g.value.filter(M=>!M[d.value])),I=e.computed(()=>c.value!=="single"&&p.value),z=e.computed(()=>y.value&&y.value.group),R=e.computed(()=>x(y.value)),F=e.computed(()=>{const M=z.value?y.value:x(y.value),P=N.value.map(le=>le[i.value]).indexOf(M[i.value]);let Z=N.value[P-1];return Z===void 0&&(Z=H.value),Z}),A=e.computed(()=>{let M=N.value.map(P=>P.label).indexOf(z.value?y.value[i.value]:x(y.value)[i.value])+1;return N.value.length<=M&&(M=0),N.value[M]}),H=e.computed(()=>[...N.value].slice(-1)[0]),K=e.computed(()=>y.value.__VISIBLE__.filter(M=>!M[d.value])[0]),W=e.computed(()=>{const M=R.value.__VISIBLE__.filter(P=>!P[d.value]);return M[M.map(P=>P[n.value]).indexOf(y.value[n.value])-1]}),U=e.computed(()=>{const M=x(y.value).__VISIBLE__.filter(P=>!P[d.value]);return M[M.map(P=>P[n.value]).indexOf(y.value[n.value])+1]}),S=e.computed(()=>[...F.value.__VISIBLE__.filter(M=>!M[d.value])].slice(-1)[0]),$=e.computed(()=>[...H.value.__VISIBLE__.filter(M=>!M[d.value])].slice(-1)[0]),L=M=>y.value&&(!M.group&&y.value[n.value]===M[n.value]||M.group!==void 0&&y.value[i.value]===M[i.value])?!0:void 0,V=()=>{v(E.value[0]||null)},D=()=>{!y.value||y.value[d.value]===!0||(z.value?C(y.value):f(y.value))},q=()=>{if(y.value===null)v((l.value&&I.value?N.value[0].__CREATE__?E.value[0]:N.value[0]:E.value[0])||null);else if(l.value&&I.value){let M=z.value?K.value:U.value;M===void 0&&(M=A.value,M.__CREATE__&&(M=M[u.value][0])),v(M||null)}else{let M=E.value.map(P=>P[n.value]).indexOf(y.value[n.value])+1;E.value.length<=M&&(M=0),v(E.value[M]||null)}e.nextTick(()=>{O()})},w=()=>{if(y.value===null){let M=E.value[E.value.length-1];l.value&&I.value&&(M=$.value,M===void 0&&(M=H.value)),v(M||null)}else if(l.value&&I.value){let M=z.value?S.value:W.value;M===void 0&&(M=z.value?F.value:R.value,M.__CREATE__&&(M=S.value,M===void 0&&(M=F.value))),v(M||null)}else{let M=E.value.map(P=>P[n.value]).indexOf(y.value[n.value])-1;M<0&&(M=E.value.length-1),v(E.value[M]||null)}e.nextTick(()=>{O()})},x=M=>N.value.find(P=>P.__VISIBLE__.map(Z=>Z[n.value]).indexOf(M[n.value])!==-1),O=()=>{let M=b.value.querySelector("[data-pointed]");if(!M)return;let P=M.parentElement.parentElement;l.value&&(P=z.value?M.parentElement.parentElement.parentElement:M.parentElement.parentElement.parentElement.parentElement),M.offsetTop+M.offsetHeight>P.clientHeight+P.scrollTop&&(P.scrollTop=M.offsetTop+M.offsetHeight-P.clientHeight),M.offsetTop<P.scrollTop&&(P.scrollTop=M.offsetTop)};return e.watch(h,M=>{s.value&&(M.length&&r.value?V():_())}),e.watch(B,M=>{if(M){let P=b.value.querySelectorAll("[data-selected]")[0];if(!P)return;let Z=P.parentElement.parentElement;e.nextTick(()=>{Z.scrollTop>0||(Z.scrollTop=P.offsetTop)})}}),{pointer:y,canPointGroups:I,isPointed:L,setPointerFirst:V,selectPointer:D,forwardPointer:q,backwardPointer:w}}function de(a){if(a==null)return window;if(a.toString()!=="[object Window]"){var t=a.ownerDocument;return t&&t.defaultView||window}return a}function et(a){var t=de(a).Element;return a instanceof t||a instanceof Element}function ge(a){var t=de(a).HTMLElement;return a instanceof t||a instanceof HTMLElement}function Ga(a){if(typeof ShadowRoot>"u")return!1;var t=de(a).ShadowRoot;return a instanceof t||a instanceof ShadowRoot}var tt=Math.max,ga=Math.min,ht=Math.round;function Xa(){var a=navigator.userAgentData;return a!=null&&a.brands&&Array.isArray(a.brands)?a.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function br(){return!/^((?!chrome|android).)*safari/i.test(Xa())}function gt(a,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var n=a.getBoundingClientRect(),r=1,s=1;t&&ge(a)&&(r=a.offsetWidth>0&&ht(n.width)/a.offsetWidth||1,s=a.offsetHeight>0&&ht(n.height)/a.offsetHeight||1);var i=et(a)?de(a):window,l=i.visualViewport,c=!br()&&o,p=(n.left+(c&&l?l.offsetLeft:0))/r,d=(n.top+(c&&l?l.offsetTop:0))/s,u=n.width/r,m=n.height/s;return{width:u,height:m,top:d,right:p+u,bottom:d+m,left:p,x:p,y:d}}function Qa(a){var t=de(a),o=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:o,scrollTop:n}}function o0(a){return{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}}function r0(a){return a===de(a)||!ge(a)?Qa(a):o0(a)}function ke(a){return a?(a.nodeName||"").toLowerCase():null}function Ue(a){return((et(a)?a.ownerDocument:a.document)||window.document).documentElement}function Ja(a){return gt(Ue(a)).left+Qa(a).scrollLeft}function xe(a){return de(a).getComputedStyle(a)}function eo(a){var t=xe(a),o=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function n0(a){var t=a.getBoundingClientRect(),o=ht(t.width)/a.offsetWidth||1,n=ht(t.height)/a.offsetHeight||1;return o!==1||n!==1}function i0(a,t,o){o===void 0&&(o=!1);var n=ge(t),r=ge(t)&&n0(t),s=Ue(t),i=gt(a,r,o),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!o)&&((ke(t)!=="body"||eo(s))&&(l=r0(t)),ge(t)?(c=gt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ja(s))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Cr(a){var t=gt(a),o=a.offsetWidth,n=a.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:a.offsetLeft,y:a.offsetTop,width:o,height:n}}function _a(a){return ke(a)==="html"?a:a.assignedSlot||a.parentNode||(Ga(a)?a.host:null)||Ue(a)}function yr(a){return["html","body","#document"].indexOf(ke(a))>=0?a.ownerDocument.body:ge(a)&&eo(a)?a:yr(_a(a))}function Ht(a,t){var o;t===void 0&&(t=[]);var n=yr(a),r=n===((o=a.ownerDocument)==null?void 0:o.body),s=de(n),i=r?[s].concat(s.visualViewport||[],eo(n)?n:[]):n,l=t.concat(i);return r?l:l.concat(Ht(_a(i)))}function s0(a){return["table","td","th"].indexOf(ke(a))>=0}function wr(a){return!ge(a)||xe(a).position==="fixed"?null:a.offsetParent}function l0(a){var t=/firefox/i.test(Xa()),o=/Trident/i.test(Xa());if(o&&ge(a)){var n=xe(a);if(n.position==="fixed")return null}var r=_a(a);for(Ga(r)&&(r=r.host);ge(r)&&["html","body"].indexOf(ke(r))<0;){var s=xe(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function va(a){for(var t=de(a),o=wr(a);o&&s0(o)&&xe(o).position==="static";)o=wr(o);return o&&(ke(o)==="html"||ke(o)==="body"&&xe(o).position==="static")?t:o||l0(a)||t}var be="top",$e="bottom",Fe="right",Me="left",to="auto",ba=[be,$e,Fe,Me],_t="start",Rt="end",c0="clippingParents",kr="viewport",Ut="popper",d0="reference",$r=ba.reduce(function(a,t){return a.concat([t+"-"+_t,t+"-"+Rt])},[]),p0=[].concat(ba,[to]).reduce(function(a,t){return a.concat([t,t+"-"+_t,t+"-"+Rt])},[]),u0="beforeRead",m0="read",f0="afterRead",h0="beforeMain",g0="main",_0="afterMain",v0="beforeWrite",b0="write",C0="afterWrite",y0=[u0,m0,f0,h0,g0,_0,v0,b0,C0];function w0(a){var t=new Map,o=new Set,n=[];a.forEach(function(s){t.set(s.name,s)});function r(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&r(c)}}),n.push(s)}return a.forEach(function(s){o.has(s.name)||r(s)}),n}function k0(a){var t=w0(a);return y0.reduce(function(o,n){return o.concat(t.filter(function(r){return r.phase===n}))},[])}function $0(a){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(a())})})),t}}function E0(a){var t=a.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(t).map(function(o){return t[o]})}function B0(a,t){var o=de(a),n=Ue(a),r=o.visualViewport,s=n.clientWidth,i=n.clientHeight,l=0,c=0;if(r){s=r.width,i=r.height;var p=br();(p||!p&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:i,x:l+Ja(a),y:c}}function V0(a){var t,o=Ue(a),n=Qa(a),r=(t=a.ownerDocument)==null?void 0:t.body,s=tt(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=tt(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-n.scrollLeft+Ja(a),c=-n.scrollTop;return xe(r||o).direction==="rtl"&&(l+=tt(o.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:l,y:c}}function S0(a,t){var o=t.getRootNode&&t.getRootNode();if(a.contains(t))return!0;if(o&&Ga(o)){var n=t;do{if(n&&a.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ao(a){return Object.assign({},a,{left:a.x,top:a.y,right:a.x+a.width,bottom:a.y+a.height})}function N0(a,t){var o=gt(a,!1,t==="fixed");return o.top=o.top+a.clientTop,o.left=o.left+a.clientLeft,o.bottom=o.top+a.clientHeight,o.right=o.left+a.clientWidth,o.width=a.clientWidth,o.height=a.clientHeight,o.x=o.left,o.y=o.top,o}function Er(a,t,o){return t===kr?ao(B0(a,o)):et(t)?N0(t,o):ao(V0(Ue(a)))}function x0(a){var t=Ht(_a(a)),o=["absolute","fixed"].indexOf(xe(a).position)>=0,n=o&&ge(a)?va(a):a;return et(n)?t.filter(function(r){return et(r)&&S0(r,n)&&ke(r)!=="body"}):[]}function M0(a,t,o,n){var r=t==="clippingParents"?x0(a):[].concat(t),s=[].concat(r,[o]),i=s[0],l=s.reduce(function(c,p){var d=Er(a,p,n);return c.top=tt(d.top,c.top),c.right=ga(d.right,c.right),c.bottom=ga(d.bottom,c.bottom),c.left=tt(d.left,c.left),c},Er(a,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ze(a){return a.split("-")[0]}function vt(a){return a.split("-")[1]}function Br(a){return["top","bottom"].indexOf(a)>=0?"x":"y"}function Vr(a){var t=a.reference,o=a.element,n=a.placement,r=n?Ze(n):null,s=n?vt(n):null,i=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(r){case be:c={x:i,y:t.y-o.height};break;case $e:c={x:i,y:t.y+t.height};break;case Fe:c={x:t.x+t.width,y:l};break;case Me:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var p=r?Br(r):null;if(p!=null){var d=p==="y"?"height":"width";switch(s){case _t:c[p]=c[p]-(t[d]/2-o[d]/2);break;case Rt:c[p]=c[p]+(t[d]/2-o[d]/2);break}}return c}function Sr(){return{top:0,right:0,bottom:0,left:0}}function T0(a){return Object.assign({},Sr(),a)}function A0(a,t){return t.reduce(function(o,n){return o[n]=a,o},{})}function oo(a,t){t===void 0&&(t={});var o=t,n=o.placement,r=n===void 0?a.placement:n,s=o.strategy,i=s===void 0?a.strategy:s,l=o.boundary,c=l===void 0?c0:l,p=o.rootBoundary,d=p===void 0?kr:p,u=o.elementContext,m=u===void 0?Ut:u,g=o.altBoundary,f=g===void 0?!1:g,C=o.padding,h=C===void 0?0:C,y=T0(typeof h!="number"?h:A0(h,ba)),v=m===Ut?d0:Ut,_=a.rects.popper,b=a.elements[f?v:m],B=M0(et(b)?b:b.contextElement||Ue(a.elements.popper),c,d,i),E=gt(a.elements.reference),N=Vr({reference:E,element:_,strategy:"absolute",placement:r}),I=ao(Object.assign({},_,N)),z=m===Ut?I:E,R={top:B.top-z.top+y.top,bottom:z.bottom-B.bottom+y.bottom,left:B.left-z.left+y.left,right:z.right-B.right+y.right},F=a.modifiersData.offset;if(m===Ut&&F){var A=F[r];Object.keys(R).forEach(function(H){var K=[Fe,$e].indexOf(H)>=0?1:-1,W=[be,$e].indexOf(H)>=0?"y":"x";R[H]+=A[W]*K})}return R}var Nr={placement:"bottom",modifiers:[],strategy:"absolute"};function xr(){for(var a=arguments.length,t=new Array(a),o=0;o<a;o++)t[o]=arguments[o];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function O0(a){a===void 0&&(a={});var t=a,o=t.defaultModifiers,n=o===void 0?[]:o,r=t.defaultOptions,s=r===void 0?Nr:r;return function(l,c,p){p===void 0&&(p=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nr,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},u=[],m=!1,g={state:d,setOptions:function(y){var v=typeof y=="function"?y(d.options):y;C(),d.options=Object.assign({},s,d.options,v),d.scrollParents={reference:et(l)?Ht(l):l.contextElement?Ht(l.contextElement):[],popper:Ht(c)};var _=k0(E0([].concat(n,d.options.modifiers)));return d.orderedModifiers=_.filter(function(b){return b.enabled}),f(),g.update()},forceUpdate:function(){if(!m){var y=d.elements,v=y.reference,_=y.popper;if(xr(v,_)){d.rects={reference:i0(v,va(_),d.options.strategy==="fixed"),popper:Cr(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(R){return d.modifiersData[R.name]=Object.assign({},R.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var B=d.orderedModifiers[b],E=B.fn,N=B.options,I=N===void 0?{}:N,z=B.name;typeof E=="function"&&(d=E({state:d,options:I,name:z,instance:g})||d)}}}},update:$0(function(){return new Promise(function(h){g.forceUpdate(),h(d)})}),destroy:function(){C(),m=!0}};if(!xr(l,c))return g;g.setOptions(p).then(function(h){!m&&p.onFirstUpdate&&p.onFirstUpdate(h)});function f(){d.orderedModifiers.forEach(function(h){var y=h.name,v=h.options,_=v===void 0?{}:v,b=h.effect;if(typeof b=="function"){var B=b({state:d,name:y,instance:g,options:_}),E=function(){};u.push(B||E)}})}function C(){u.forEach(function(h){return h()}),u=[]}return g}}var Ca={passive:!0};function I0(a){var t=a.state,o=a.instance,n=a.options,r=n.scroll,s=r===void 0?!0:r,i=n.resize,l=i===void 0?!0:i,c=de(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(d){d.addEventListener("scroll",o.update,Ca)}),l&&c.addEventListener("resize",o.update,Ca),function(){s&&p.forEach(function(d){d.removeEventListener("scroll",o.update,Ca)}),l&&c.removeEventListener("resize",o.update,Ca)}}var L0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:I0,data:{}};function D0(a){var t=a.state,o=a.name;t.modifiersData[o]=Vr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var j0={name:"popperOffsets",enabled:!0,phase:"read",fn:D0,data:{}},P0={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z0(a,t){var o=a.x,n=a.y,r=t.devicePixelRatio||1;return{x:ht(o*r)/r||0,y:ht(n*r)/r||0}}function Mr(a){var t,o=a.popper,n=a.popperRect,r=a.placement,s=a.variation,i=a.offsets,l=a.position,c=a.gpuAcceleration,p=a.adaptive,d=a.roundOffsets,u=a.isFixed,m=i.x,g=m===void 0?0:m,f=i.y,C=f===void 0?0:f,h=typeof d=="function"?d({x:g,y:C}):{x:g,y:C};g=h.x,C=h.y;var y=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),_=Me,b=be,B=window;if(p){var E=va(o),N="clientHeight",I="clientWidth";if(E===de(o)&&(E=Ue(o),xe(E).position!=="static"&&l==="absolute"&&(N="scrollHeight",I="scrollWidth")),E=E,r===be||(r===Me||r===Fe)&&s===Rt){b=$e;var z=u&&E===B&&B.visualViewport?B.visualViewport.height:E[N];C-=z-n.height,C*=c?1:-1}if(r===Me||(r===be||r===$e)&&s===Rt){_=Fe;var R=u&&E===B&&B.visualViewport?B.visualViewport.width:E[I];g-=R-n.width,g*=c?1:-1}}var F=Object.assign({position:l},p&&P0),A=d===!0?z0({x:g,y:C},de(o)):{x:g,y:C};if(g=A.x,C=A.y,c){var H;return Object.assign({},F,(H={},H[b]=v?"0":"",H[_]=y?"0":"",H.transform=(B.devicePixelRatio||1)<=1?"translate("+g+"px, "+C+"px)":"translate3d("+g+"px, "+C+"px, 0)",H))}return Object.assign({},F,(t={},t[b]=v?C+"px":"",t[_]=y?g+"px":"",t.transform="",t))}function H0(a){var t=a.state,o=a.options,n=o.gpuAcceleration,r=n===void 0?!0:n,s=o.adaptive,i=s===void 0?!0:s,l=o.roundOffsets,c=l===void 0?!0:l,p={placement:Ze(t.placement),variation:vt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mr(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mr(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var R0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:H0,data:{}};function U0(a){var t=a.state;Object.keys(t.elements).forEach(function(o){var n=t.styles[o]||{},r=t.attributes[o]||{},s=t.elements[o];!ge(s)||!ke(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(i){var l=r[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function F0(a){var t=a.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],s=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:o[n]),l=i.reduce(function(c,p){return c[p]="",c},{});!ge(r)||!ke(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var Z0={name:"applyStyles",enabled:!0,phase:"write",fn:U0,effect:F0,requires:["computeStyles"]},W0=[L0,j0,R0,Z0],q0=O0({defaultModifiers:W0});function Y0(a){return a==="x"?"y":"x"}function ya(a,t,o){return tt(a,ga(t,o))}function K0(a,t,o){var n=ya(a,t,o);return n>o?o:n}function G0(a){var t=a.state,o=a.options,n=a.name,r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,l=i===void 0?!1:i,c=o.boundary,p=o.rootBoundary,d=o.altBoundary,u=o.padding,m=o.tether,g=m===void 0?!0:m,f=o.tetherOffset,C=f===void 0?0:f,h=oo(t,{boundary:c,rootBoundary:p,padding:u,altBoundary:d}),y=Ze(t.placement),v=vt(t.placement),_=!v,b=Br(y),B=Y0(b),E=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,z=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(s){var H,K=b==="y"?be:Me,W=b==="y"?$e:Fe,U=b==="y"?"height":"width",S=E[b],$=S+h[K],L=S-h[W],V=g?-I[U]/2:0,D=v===_t?N[U]:I[U],q=v===_t?-I[U]:-N[U],w=t.elements.arrow,x=g&&w?Cr(w):{width:0,height:0},O=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Sr(),M=O[K],P=O[W],Z=ya(0,N[U],x[U]),le=_?N[U]/2-V-Z-M-R.mainAxis:D-Z-M-R.mainAxis,nt=_?-N[U]/2+V+Z+P+R.mainAxis:q+Z+P+R.mainAxis,Wt=t.elements.arrow&&va(t.elements.arrow),qe=Wt?b==="y"?Wt.clientTop||0:Wt.clientLeft||0:0,Va=(H=F==null?void 0:F[b])!=null?H:0,vo=S+le-Va-qe,Ye=S+nt-Va,Sa=ya(g?ga($,vo):$,S,g?tt(L,Ye):L);E[b]=Sa,A[b]=Sa-S}if(l){var Ke,Ee=b==="x"?be:Me,_e=b==="x"?$e:Fe,Ce=E[B],Oe=B==="y"?"height":"width",qt=Ce+h[Ee],Na=Ce-h[_e],ve=[be,Me].indexOf(y)!==-1,Yt=(Ke=F==null?void 0:F[B])!=null?Ke:0,Ge=ve?qt:Ce-N[Oe]-I[Oe]-Yt+R.altAxis,it=ve?Ce+N[Oe]+I[Oe]-Yt-R.altAxis:Na,xa=g&&ve?K0(Ge,Ce,it):ya(g?Ge:qt,Ce,g?it:Na);E[B]=xa,A[B]=xa-Ce}t.modifiersData[n]=A}}var X0={name:"preventOverflow",enabled:!0,phase:"main",fn:G0,requiresIfExists:["offset"]},Q0={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(a){return a.replace(/left|right|bottom|top/g,function(t){return Q0[t]})}var J0={start:"end",end:"start"};function Tr(a){return a.replace(/start|end/g,function(t){return J0[t]})}function em(a,t){t===void 0&&(t={});var o=t,n=o.placement,r=o.boundary,s=o.rootBoundary,i=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,p=c===void 0?p0:c,d=vt(n),u=d?l?$r:$r.filter(function(f){return vt(f)===d}):ba,m=u.filter(function(f){return p.indexOf(f)>=0});m.length===0&&(m=u);var g=m.reduce(function(f,C){return f[C]=oo(a,{placement:C,boundary:r,rootBoundary:s,padding:i})[Ze(C)],f},{});return Object.keys(g).sort(function(f,C){return g[f]-g[C]})}function tm(a){if(Ze(a)===to)return[];var t=wa(a);return[Tr(a),t,Tr(t)]}function am(a){var t=a.state,o=a.options,n=a.name;if(!t.modifiersData[n]._skip){for(var r=o.mainAxis,s=r===void 0?!0:r,i=o.altAxis,l=i===void 0?!0:i,c=o.fallbackPlacements,p=o.padding,d=o.boundary,u=o.rootBoundary,m=o.altBoundary,g=o.flipVariations,f=g===void 0?!0:g,C=o.allowedAutoPlacements,h=t.options.placement,y=Ze(h),v=y===h,_=c||(v||!f?[wa(h)]:tm(h)),b=[h].concat(_).reduce(function(x,O){return x.concat(Ze(O)===to?em(t,{placement:O,boundary:d,rootBoundary:u,padding:p,flipVariations:f,allowedAutoPlacements:C}):O)},[]),B=t.rects.reference,E=t.rects.popper,N=new Map,I=!0,z=b[0],R=0;R<b.length;R++){var F=b[R],A=Ze(F),H=vt(F)===_t,K=[be,$e].indexOf(A)>=0,W=K?"width":"height",U=oo(t,{placement:F,boundary:d,rootBoundary:u,altBoundary:m,padding:p}),S=K?H?Fe:Me:H?$e:be;B[W]>E[W]&&(S=wa(S));var $=wa(S),L=[];if(s&&L.push(U[A]<=0),l&&L.push(U[S]<=0,U[$]<=0),L.every(function(x){return x})){z=F,I=!1;break}N.set(F,L)}if(I)for(var V=f?3:1,D=function(O){var M=b.find(function(P){var Z=N.get(P);if(Z)return Z.slice(0,O).every(function(le){return le})});if(M)return z=M,"break"},q=V;q>0;q--){var w=D(q);if(w==="break")break}t.placement!==z&&(t.modifiersData[n]._skip=!0,t.placement=z,t.reset=!0)}}var om={name:"flip",enabled:!0,phase:"main",fn:am,requiresIfExists:["offset"],data:{_skip:!1}};function rm(a,t,o){const{disabled:n,appendTo:r,appendToBody:s,openDirection:i}=e.toRefs(a),l=e.getCurrentInstance().proxy,c=o.multiselect,p=o.dropdown,d=e.ref(!1),u=e.ref(null),m=e.ref(null),g=e.computed(()=>r.value||s.value),f=e.computed(()=>i.value==="top"&&m.value==="bottom"||i.value==="bottom"&&m.value!=="top"?"bottom":"top"),C=()=>{d.value||n.value||(d.value=!0,t.emit("open",l),g.value&&e.nextTick(()=>{y()}))},h=()=>{d.value&&(d.value=!1,t.emit("close",l))},y=()=>{if(!u.value)return;let _=parseInt(window.getComputedStyle(p.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(p.value).borderBottomWidth.replace("px",""));u.value.setOptions(B=>({...B,modifiers:[...B.modifiers,{name:"offset",options:{offset:[0,(f.value==="top"?_:b)*-1]}}]})),u.value.update()},v=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return e.onMounted(()=>{g.value&&(u.value=q0(c.value,p.value,{strategy:v(c.value)?"fixed":void 0,placement:i.value,modifiers:[X0,om,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){m.value=_.placement}}]}))}),e.onBeforeUnmount(()=>{!g.value||!u.value||(u.value.destroy(),u.value=null)}),{popper:u,isOpen:d,open:C,close:h,placement:f,updatePopper:y}}function nm(a,t,o){const{searchable:n,disabled:r,clearOnBlur:s}=e.toRefs(a),i=o.input,l=o.open,c=o.close,p=o.clearSearch,d=o.isOpen,u=o.wrapper,m=o.tags,g=e.ref(!1),f=e.ref(!1),C=e.computed(()=>n.value||r.value?-1:0),h=()=>{n.value&&i.value.blur(),u.value.blur()},y=()=>{n.value&&!r.value&&i.value.focus()},v=(I=!0)=>{r.value||(g.value=!0,I&&l())},_=()=>{g.value=!1,setTimeout(()=>{g.value||(c(),s.value&&p())},1)};return{tabindex:C,isActive:g,mouseClicked:f,blur:h,focus:y,activate:v,deactivate:_,handleFocusIn:I=>{I.target.closest("[data-tags]")&&I.target.nodeName!=="INPUT"||I.target.closest("[data-clear]")||v(f.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),h()},handleMousedown:I=>{f.value=!0,d.value&&(I.target.isEqualNode(u.value)||I.target.isEqualNode(m.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(u.value)||document.activeElement.isEqualNode(i.value))&&v(),setTimeout(()=>{f.value=!1},0)}}}function im(a,t,o){const{mode:n,addTagOn:r,openDirection:s,searchable:i,showOptions:l,valueProp:c,groups:p,addOptionOn:d,createTag:u,createOption:m,reverse:g}=e.toRefs(a),f=e.getCurrentInstance().proxy,C=o.iv,h=o.update,y=o.deselect,v=o.search,_=o.setPointer,b=o.selectPointer,B=o.backwardPointer,E=o.forwardPointer,N=o.multiselect,I=o.wrapper,z=o.tags,R=o.isOpen,F=o.open,A=o.blur,H=o.fo,K=e.computed(()=>u.value||m.value||!1),W=e.computed(()=>r.value!==void 0?r.value:d.value!==void 0?d.value:["enter"]),U=()=>{n.value==="tags"&&!l.value&&K.value&&i.value&&!p.value&&_(H.value[H.value.map(L=>L[c.value]).indexOf(v.value)])};return{handleKeydown:L=>{t.emit("keydown",L,f);let V,D;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(L.key)!==-1&&n.value==="tags"&&(V=[...N.value.querySelectorAll("[data-tags] > *")].filter(q=>q!==z.value),D=V.findIndex(q=>q===document.activeElement)),L.key){case"Backspace":if(n.value==="single"||i.value&&[null,""].indexOf(v.value)===-1||C.value.length===0)return;let q=C.value.filter(w=>!w.disabled&&w.remove!==!1);q.length&&y(q[q.length-1]);break;case"Enter":if(L.preventDefault(),L.keyCode===229)return;if(D!==-1&&D!==void 0){h([...C.value].filter((w,x)=>x!==D)),D===V.length-1&&(V.length-1?V[V.length-2].focus():i.value?z.value.querySelector("input").focus():I.value.focus());return}if(W.value.indexOf("enter")===-1&&K.value)return;U(),b();break;case" ":if(!K.value&&!i.value){L.preventDefault(),U(),b();return}if(!K.value)return!1;if(W.value.indexOf("space")===-1&&K.value)return;L.preventDefault(),U(),b();break;case"Tab":case";":case",":if(W.value.indexOf(L.key.toLowerCase())===-1||!K.value)return;U(),b(),L.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(L.preventDefault(),!l.value)return;R.value||F(),B();break;case"ArrowDown":if(L.preventDefault(),!l.value)return;R.value||F(),E();break;case"ArrowLeft":if(i.value&&z.value&&z.value.querySelector("input").selectionStart||L.shiftKey||n.value!=="tags"||!C.value||!C.value.length)return;L.preventDefault(),D===-1?V[V.length-1].focus():D>0&&V[D-1].focus();break;case"ArrowRight":if(D===-1||L.shiftKey||n.value!=="tags"||!C.value||!C.value.length)return;L.preventDefault(),V.length>D+1?V[D+1].focus():i.value?z.value.querySelector("input").focus():i.value||I.value.focus();break}},handleKeyup:L=>{t.emit("keyup",L,f)},preparePointer:U}}function sm(a,t,o){const{classes:n,disabled:r,showOptions:s,breakTags:i}=e.toRefs(a),l=o.isOpen,c=o.isPointed,p=o.isSelected,d=o.isDisabled,u=o.isActive,m=o.canPointGroups,g=o.resolving,f=o.fo,C=o.placement,h=e.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...n.value})),y=e.computed(()=>!!(l.value&&s.value&&(!g.value||g.value&&f.value.length)));return{classList:e.computed(()=>{const _=h.value;return{container:[_.container].concat(r.value?_.containerDisabled:[]).concat(y.value&&C.value==="top"?_.containerOpenTop:[]).concat(y.value&&C.value!=="top"?_.containerOpen:[]).concat(u.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(r.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,i.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(C.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!y.value?_.dropdownHidden:[]),options:[_.options].concat(C.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let B=[_.groupLabel];return c(b)?B.push(p(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):p(b)&&m.value?B.push(d(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(b)&&B.push(_.groupLabelDisabled),m.value&&B.push(_.groupLabelPointable),B},groupOptions:_.groupOptions,option:(b,B)=>{let E=[_.option];return c(b)?E.push(p(b)?_.optionSelectedPointed:_.optionPointed):p(b)?E.push(d(b)?_.optionSelectedDisabled:_.optionSelected):(d(b)||B&&d(B))&&E.push(_.optionDisabled),E},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:y}}function lm(a,t,o){const{limit:n,infinite:r}=e.toRefs(a),s=o.isOpen,i=o.offset,l=o.search,c=o.pfo,p=o.eo,d=e.ref(null),u=e.ref(null),m=e.computed(()=>i.value<c.value.length),g=C=>{const{isIntersecting:h,target:y}=C[0];if(h){const v=y.offsetParent,_=v.scrollTop;i.value+=n.value==-1?10:n.value,e.nextTick(()=>{v.scrollTop=_})}},f=()=>{s.value&&i.value<c.value.length?d.value.observe(u.value):!s.value&&d.value&&d.value.disconnect()};return e.watch(s,()=>{r.value&&f()}),e.watch(l,()=>{r.value&&(i.value=n.value,f())},{flush:"post"}),e.watch(p,()=>{r.value&&f()},{immediate:!1,flush:"post"}),e.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(g))}),{hasMore:m,infiniteLoader:u}}function cm(a,t,o){const{placeholder:n,id:r,valueProp:s,label:i,mode:l,groupLabel:c,aria:p,searchable:d}=e.toRefs(a),u=o.pointer,m=o.iv,g=o.hasSelected,f=o.multipleLabelText,C=e.ref(null),h=e.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("assist"),A.join("-")}),y=e.computed(()=>{let A=[];return r&&r.value&&A.push(r.value),A.push("multiselect-options"),A.join("-")}),v=e.computed(()=>{let A=[];if(r&&r.value&&A.push(r.value),u.value)return A.push(u.value.group?"multiselect-group":"multiselect-option"),A.push(u.value.group?u.value.index:u.value[s.value]),A.join("-")}),_=e.computed(()=>n.value),b=e.computed(()=>l.value!=="single"),B=e.computed(()=>{let A="";return l.value==="single"&&g.value&&(A+=m.value[i.value]),l.value==="multiple"&&g.value&&(A+=f.value),l.value==="tags"&&g.value&&(A+=m.value.map(H=>H[i.value]).join(", ")),A}),E=e.computed(()=>{let A={...p.value};return d.value&&(A["aria-labelledby"]=A["aria-labelledby"]?`${h.value} ${A["aria-labelledby"]}`:h.value,B.value&&A["aria-label"]&&(A["aria-label"]=`${B.value}, ${A["aria-label"]}`)),A}),N=A=>{let H=[];return r&&r.value&&H.push(r.value),H.push("multiselect-option"),H.push(A[s.value]),H.join("-")},I=A=>{let H=[];return r&&r.value&&H.push(r.value),H.push("multiselect-group"),H.push(A.index),H.join("-")},z=A=>{let H=[];return H.push(A),H.join(" ")},R=A=>{let H=[];return H.push(A),H.join(" ")},F=A=>`${A} ❎`;return e.onMounted(()=>{if(r&&r.value&&document&&document.querySelector){let A=document.querySelector(`[for="${r.value}"]`);C.value=A?A.innerText:null}}),{arias:E,ariaLabel:B,ariaAssist:h,ariaControls:y,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:v,ariaOptionId:N,ariaOptionLabel:z,ariaGroupId:I,ariaGroupLabel:R,ariaTagLabel:F}}function dm(a,t,o){const{locale:n,fallbackLocale:r}=e.toRefs(a);return{localize:i=>!i||typeof i!="object"?i:i&&i[n.value]?i[n.value]:i&&n.value&&i[n.value.toUpperCase()]?i[n.value.toUpperCase()]:i&&i[r.value]?i[r.value]:i&&r.value&&i[r.value.toUpperCase()]?i[r.value.toUpperCase()]:i&&Object.keys(i)[0]?i[Object.keys(i)[0]]:""}}function pm(a,t,o){const n=e.ref(null),r=e.ref(null),s=e.ref(null),i=e.ref(null),l=e.ref(null);return{multiselect:n,wrapper:r,tags:s,input:i,dropdown:l}}function um(a,t,o,n={}){return o.forEach(r=>{r&&(n={...n,...r(a,t,n)})}),n}var We={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(a,t){return um(a,t,[pm,dm,G2,Q2,rm,X2,K2,nm,t0,lm,a0,im,sm,cm])},beforeMount(){var a,t;((t=(a=this.$root.constructor)==null?void 0:a.version)!=null&&t.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const mm=["id","dir"],fm=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],hm=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],gm=["onKeyup","aria-label"],_m=["onClick"],vm=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],bm=["innerHTML"],Cm=["id"],ym=["id"],wm=["id","aria-label","aria-selected"],km=["data-pointed","onMouseenter","onMousedown"],$m=["innerHTML"],Em=["aria-label"],Bm=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Vm=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Sm=["innerHTML"],Nm=["innerHTML"],xm=["value"],Mm=["name","value"],Tm=["name","value"],Am=["id"];function Om(a,t,o,n,r,s){return e.openBlock(),e.createElementBlock("div",{ref:"multiselect",class:e.normalizeClass(a.classList.container),id:o.searchable?void 0:o.id,dir:o.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...i)=>a.handleFocusIn&&a.handleFocusIn(...i)),onFocusout:t[11]||(t[11]=(...i)=>a.handleFocusOut&&a.handleFocusOut(...i)),onKeyup:t[12]||(t[12]=(...i)=>a.handleKeyup&&a.handleKeyup(...i)),onKeydown:t[13]||(t[13]=(...i)=>a.handleKeydown&&a.handleKeydown(...i))},[e.createElementVNode("div",e.mergeProps({class:a.classList.wrapper,onMousedown:t[9]||(t[9]=(...i)=>a.handleMousedown&&a.handleMousedown(...i)),ref:"wrapper",tabindex:a.tabindex,"aria-controls":o.searchable?void 0:a.ariaControls,"aria-placeholder":o.searchable?void 0:a.ariaPlaceholder,"aria-expanded":o.searchable?void 0:a.isOpen,"aria-activedescendant":o.searchable?void 0:a.ariaActiveDescendant,"aria-multiselectable":o.searchable?void 0:a.ariaMultiselectable,role:o.searchable?void 0:"combobox"},o.searchable?{}:a.arias),[e.createCommentVNode(" Search "),o.mode!=="tags"&&o.searchable&&!o.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:o.inputType,modelValue:a.search,value:a.search,class:a.classList.search,autocomplete:o.autocomplete,id:o.searchable?o.id:void 0,onInput:t[0]||(t[0]=(...i)=>a.handleSearchInput&&a.handleSearchInput(...i)),onKeypress:t[1]||(t[1]=(...i)=>a.handleKeypress&&a.handleKeypress(...i)),onPaste:t[2]||(t[2]=e.withModifiers((...i)=>a.handlePaste&&a.handlePaste(...i),["stop"])),ref:"input","aria-controls":a.ariaControls,"aria-placeholder":a.ariaPlaceholder,"aria-expanded":a.isOpen,"aria-activedescendant":a.ariaActiveDescendant,"aria-multiselectable":a.ariaMultiselectable,role:"combobox"},{...o.attrs,...a.arias}),null,16,hm)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Tags (with search) "),o.mode=="tags"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.classList.tags),"data-tags":""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.iv,(i,l,c)=>e.renderSlot(a.$slots,"tag",{option:i,handleTagRemove:a.handleTagRemove,disabled:o.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([a.classList.tag,i.disabled?a.classList.tagDisabled:null]),tabindex:"-1",onKeyup:e.withKeys(p=>a.handleTagRemove(i,p),["enter"]),key:c,"aria-label":a.ariaTagLabel(a.localize(i[o.label]))},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagWrapper)},e.toDisplayString(a.localize(i[o.label])),3),!o.disabled&&!i.disabled?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(a.classList.tagRemove),onClick:e.withModifiers(p=>a.handleTagRemove(i,p),["stop"])},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagRemoveIcon)},null,2)],10,_m)):e.createCommentVNode("v-if",!0)],42,gm))])),256)),e.createElementVNode("div",{class:e.normalizeClass(a.classList.tagsSearchWrapper),ref:"tags"},[e.createCommentVNode(" Used for measuring search width "),e.createElementVNode("span",{class:e.normalizeClass(a.classList.tagsSearchCopy)},e.toDisplayString(a.search),3),e.createCommentVNode(" Actual search input "),o.searchable&&!o.disabled?(e.openBlock(),e.createElementBlock("input",e.mergeProps({key:0,type:o.inputType,modelValue:a.search,value:a.search,class:a.classList.tagsSearch,id:o.searchable?o.id:void 0,autocomplete:o.autocomplete,onInput:t[3]||(t[3]=(...i)=>a.handleSearchInput&&a.handleSearchInput(...i)),onKeypress:t[4]||(t[4]=(...i)=>a.handleKeypress&&a.handleKeypress(...i)),onPaste:t[5]||(t[5]=e.withModifiers((...i)=>a.handlePaste&&a.handlePaste(...i),["stop"])),ref:"input","aria-controls":a.ariaControls,"aria-placeholder":a.ariaPlaceholder,"aria-expanded":a.isOpen,"aria-activedescendant":a.ariaActiveDescendant,"aria-multiselectable":a.ariaMultiselectable,role:"combobox"},{...o.attrs,...a.arias}),null,16,vm)):e.createCommentVNode("v-if",!0)],2)],2)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Single label "),o.mode=="single"&&a.hasSelected&&!a.search&&a.iv?e.renderSlot(a.$slots,"singlelabel",{key:2,value:a.iv},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.singleLabel)},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.singleLabelText)},e.toDisplayString(a.localize(a.iv[o.label])),3)],2)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Multiple label "),o.mode=="multiple"&&a.hasSelected&&!a.search?e.renderSlot(a.$slots,"multiplelabel",{key:3,values:a.iv},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.multipleLabel),innerHTML:a.multipleLabelText},null,10,bm)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Placeholder "),o.placeholder&&!a.hasSelected&&!a.search?e.renderSlot(a.$slots,"placeholder",{key:4},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.placeholder),"aria-hidden":"true"},e.toDisplayString(o.placeholder),3)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Spinner "),o.loading||a.resolving?e.renderSlot(a.$slots,"spinner",{key:5},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.spinner),"aria-hidden":"true"},null,2)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Clear "),a.hasSelected&&!o.disabled&&o.canClear&&!a.busy?e.renderSlot(a.$slots,"clear",{key:6,clear:a.clear},()=>[e.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:e.normalizeClass(a.classList.clear),onClick:t[6]||(t[6]=(...i)=>a.clear&&a.clear(...i)),onKeyup:t[7]||(t[7]=e.withKeys((...i)=>a.clear&&a.clear(...i),["enter"]))},[e.createElementVNode("span",{class:e.normalizeClass(a.classList.clearIcon)},null,2)],34)]):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Caret "),o.caret&&o.showOptions?e.renderSlot(a.$slots,"caret",{key:7,handleCaretClick:a.handleCaretClick,isOpen:a.isOpen},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.caret),onClick:t[8]||(t[8]=(...i)=>a.handleCaretClick&&a.handleCaretClick(...i)),"aria-hidden":"true"},null,2)]):e.createCommentVNode("v-if",!0)],16,fm),e.createCommentVNode(" Options "),(e.openBlock(),e.createBlock(e.Teleport,{to:o.appendTo||"body",disabled:!o.appendToBody&&!o.appendTo},[e.createElementVNode("div",{id:`${o.id}-dropdown`,class:e.normalizeClass(a.classList.dropdown),tabindex:"-1",ref:"dropdown"},[e.renderSlot(a.$slots,"beforelist",{options:a.fo}),e.createElementVNode("ul",{class:e.normalizeClass(a.classList.options),id:a.ariaControls,role:"listbox"},[o.groups?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.fg,(i,l,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.group),key:c,id:a.ariaGroupId(i),"aria-label":a.ariaGroupLabel(a.localize(i[o.groupLabel])),"aria-selected":a.isSelected(i),role:"option"},[i.__CREATE__?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.classList.groupLabel(i)),"data-pointed":a.isPointed(i),onMouseenter:p=>a.setPointer(i,l),onMousedown:e.withModifiers(p=>a.handleGroupClick(i),["prevent"])},[e.renderSlot(a.$slots,"grouplabel",{group:i,isSelected:a.isSelected,isPointed:a.isPointed},()=>[e.createElementVNode("span",{innerHTML:a.localize(i[o.groupLabel])},null,8,$m)])],42,km)),e.createElementVNode("ul",{class:e.normalizeClass(a.classList.groupOptions),"aria-label":a.ariaGroupLabel(a.localize(i[o.groupLabel])),role:"group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.__VISIBLE__,(p,d,u)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.option(p,i)),"data-pointed":a.isPointed(p),"data-selected":a.isSelected(p)||void 0,key:u,onMouseenter:m=>a.setPointer(p),onMousedown:e.withModifiers(m=>a.handleOptionClick(p),["prevent"]),id:a.ariaOptionId(p),"aria-selected":a.isSelected(p),"aria-label":a.ariaOptionLabel(a.localize(p[o.label])),role:"option"},[e.renderSlot(a.$slots,"option",{option:p,isSelected:a.isSelected,isPointed:a.isPointed,search:a.search},()=>[e.createElementVNode("span",null,e.toDisplayString(a.localize(p[o.label])),1)])],42,Bm))),128))],10,Em)],10,wm))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.fo,(i,l,c)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(a.classList.option(i)),"data-pointed":a.isPointed(i),"data-selected":a.isSelected(i)||void 0,key:c,onMouseenter:p=>a.setPointer(i),onMousedown:e.withModifiers(p=>a.handleOptionClick(i),["prevent"]),id:a.ariaOptionId(i),"aria-selected":a.isSelected(i),"aria-label":a.ariaOptionLabel(a.localize(i[o.label])),role:"option"},[e.renderSlot(a.$slots,"option",{option:i,isSelected:a.isSelected,isPointed:a.isPointed,search:a.search},()=>[e.createElementVNode("span",null,e.toDisplayString(a.localize(i[o.label])),1)])],42,Vm))),128))],10,ym),a.noOptions?e.renderSlot(a.$slots,"nooptions",{key:0},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.noOptions),innerHTML:a.localize(o.noOptionsText)},null,10,Sm)]):e.createCommentVNode("v-if",!0),a.noResults?e.renderSlot(a.$slots,"noresults",{key:1},()=>[e.createElementVNode("div",{class:e.normalizeClass(a.classList.noResults),innerHTML:a.localize(o.noResultsText)},null,10,Nm)]):e.createCommentVNode("v-if",!0),o.infinite&&a.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(a.classList.inifinite),ref:"infiniteLoader"},[e.renderSlot(a.$slots,"infinite",{},()=>[e.createElementVNode("span",{class:e.normalizeClass(a.classList.inifiniteSpinner)},null,2)])],2)):e.createCommentVNode("v-if",!0),e.renderSlot(a.$slots,"afterlist",{options:a.fo})],10,Cm)],8,["to","disabled"])),e.createCommentVNode(" Hacky input element to show HTML5 required warning "),o.required?(e.openBlock(),e.createElementBlock("input",{key:0,class:e.normalizeClass(a.classList.fakeInput),tabindex:"-1",value:a.textValue,required:""},null,10,xm)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Native input support "),o.nativeSupport?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.mode=="single"?(e.openBlock(),e.createElementBlock("input",{key:0,type:"hidden",name:o.name,value:a.plainValue!==void 0?a.plainValue:""},null,8,Mm)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(a.plainValue,(i,l)=>(e.openBlock(),e.createElementBlock("input",{type:"hidden",name:`${o.name}[]`,value:i,key:l},null,8,Tm))),128))],64)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Screen reader assistive text "),o.searchable&&a.hasSelected?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(a.classList.assist),id:a.ariaAssist,"aria-hidden":"true"},e.toDisplayString(a.ariaLabel),11,Am)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" Create height for empty input "),e.createElementVNode("div",{class:e.normalizeClass(a.classList.spacer)},null,2)],42,mm)}We.render=Om,We.__file="src/Multiselect.vue";const pe=e.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean},appendTo:{}},setup(a){const t=a,o=e.toRef(()=>t.appendTo),n=e.ref();return t.detached&&Y2({multiselect:n,appendTo:o.value}),(r,s)=>(e.openBlock(),e.createBlock(e.unref(We),{ref_key:"multiselectRef",ref:n,class:"ao-multiselect"},e.createSlots({_:2},[e.renderList(r.$slots,(i,l)=>({name:l,fn:e.withCtx(c=>[e.renderSlot(r.$slots,l,e.normalizeProps(e.guardReactiveProps(c??{})))])}))]),1536))}});var Ar;function Te(){const a=Im(),t=a.appContext.config.globalProperties;return{i18next:t.$i18next,t:t.$t.bind(a.proxy)}}function Im(){const a=e.getCurrentInstance();if(!a)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return a}e.defineComponent({props:{translation:{type:String,required:!0}},setup(a,{slots:t}){return()=>{const o=a.translation,n=[];let r,s=0;for(;(r=Ar.exec(o))!==null;){n.push(o.substring(s,r.index));const i=t[r[1]];i?n.push(...i()):n.push(r[0]),s=Ar.lastIndex}return n.push(o.substring(s)),n}}});async function Ae(a,t){if(t&&a&&a.length-t.length===1){const o=new Set(t.map(l=>l.id)),n=a.filter(l=>!o.has(l.id));if(n.length!==1)return;const r=n[0].id;await e.nextTick();const s=document.getElementById(r);s==null||s.focus(),await e.nextTick();const i=document.getElementById(r);i==null||i.select()}}const Lm={class:"ao-tasks"},Dm={class:"ao-tasks__list"},jm=["id","value","readonly","onChange","onKeyup"],Pm={class:"ao-tasks__list-footer"},zm=e.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(a,{emit:t}){const o=a,{t:n}=Te();e.watch(()=>o.tasks,(u,m)=>{Ae(u,m)});const r=e.computed(()=>{var u;return((u=o.users)==null?void 0:u.map(m=>({label:`${m.firstName} ${m.lastName}`,value:m.id,avatar:m.avatarUrl})))??[]}),s=()=>{const u=o.tasks.length,m={name:n("task.defaultName",{idx:u+1}),activityId:o.activityId};t("add",m)},i=(u,m)=>{const f=u.target.value;t("update",{id:m,name:f})},l=(u,m)=>{o.isEditable&&t("update",{id:u,isDone:m})},c=u=>{t("delete",{id:u})},p=(u,m)=>{t("update",{id:m,assigneeId:u[0]??null})},d=u=>{const m=u.target;m==null||m.blur()};return(u,m)=>(e.openBlock(),e.createElementBlock("div",Lm,[e.createElementVNode("ul",Dm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.tasks,g=>{var f,C;return e.openBlock(),e.createElementBlock("li",{key:g.id,class:"ao-subtask"},[((f=u.isCheckable)==null?void 0:f.call(u,g))??!1?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-subtask__check","icon-name":g.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!u.isEditable,variant:"ghost",color:"primary",onClick:()=>l(g.id,!g.isDone)},null,8,["icon-name","disabled","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("input",{id:g.id,value:g.name,readonly:!u.isEditable,class:e.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":g.isDone}]),type:"text",onChange:h=>i(h,g.id),onKeyup:e.withKeys(d,["enter"])},null,42,jm),e.createTextVNode(". "),!u.isTemplate&&u.users?(e.openBlock(),e.createBlock(pe,{key:1,value:(C=g.assignee)!=null&&C.id?[g.assignee.id]:[],options:r.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:u.$t("feed.filters.assignee.placeholder"),disabled:!u.isEditable,caret:u.isEditable,onChange:h=>p(h,g.id)},{tag:e.withCtx(({option:h,handleTagRemove:y})=>[e.createVNode(Ve,{"user-name":h.label,"avatar-url":h.avatar,"is-closable":!0,onClose:v=>y(h,v)},null,8,["user-name","avatar-url","onClose"])]),_:2},1032,["value","options","placeholder","disabled","caret","onChange"])):e.createCommentVNode("",!0),u.isEditable?(e.openBlock(),e.createBlock(G,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>c(g.id)},null,8,["onClick"])):e.createCommentVNode("",!0)])}),128))]),e.createElementVNode("div",Pm,[u.isEditable?(e.openBlock(),e.createBlock(G,{key:0,label:u.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:s},null,8,["label"])):e.createCommentVNode("",!0)])]))}}),P9="",Hm=["onDrop","onDragenter","onDragover","onDragleave"],Rm={class:"ao-files__placeholder"},Um={key:0,class:"ao-files__list"},Fm=["href"],Zm={class:"ao-file__title"},Wm={key:0},qm={class:"ao-files__input"},Ym={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},Km={class:"ao-button__label"},Gm={class:"ao-files__dropzone"},Xm={class:"ao-files__dropzone-label"},Qm=e.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove"],setup(a,{emit:t}){const o=a,n=d=>{t("remove",d)},r=d=>{const u=d.target,m=Array.from(u.files??[]);t("add",m)},s=["dragenter","dragover","dragleave","drop"];e.onMounted(()=>{s.forEach(d=>{document.body.addEventListener(d,u=>u.preventDefault())})}),e.onUnmounted(()=>{s.forEach(d=>{document.body.removeEventListener(d,u=>u.preventDefault())})});const i=e.ref(!1);function l(){o.isEditable&&(i.value=!0)}function c(){i.value=!1}e.watch(i,d=>{t("toggleIsDropActive",d)});function p(d){var m;c();const u=Array.from(((m=d.dataTransfer)==null?void 0:m.files)||[]);d.dataTransfer&&t("add",u)}return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:e.withModifiers(p,["prevent"]),onDragenter:e.withModifiers(l,["prevent"]),onDragover:e.withModifiers(l,["prevent"]),onDragleave:e.withModifiers(c,["prevent"])},[e.renderSlot(d.$slots,"default",{},()=>[e.createElementVNode("span",Rm,e.toDisplayString(d.$t("activity.attachment.placeholder.resting")),1)]),d.attachments?(e.openBlock(),e.createElementBlock("ul",Um,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.attachments,m=>(e.openBlock(),e.createElementBlock("li",{key:m.id,class:"ao-file"},[e.createElementVNode("a",{class:"ao-file__link",href:m.url,target:"_blank",rel:"noopener noreferrer"},[e.createVNode(ee,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",Zm,e.toDisplayString(m.name),1)],8,Fm),d.isEditable?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-files__delete-button","icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round",onClick:()=>n(m)},null,8,["onClick"])):e.createCommentVNode("",!0)]))),128)),d.isEditable?(e.openBlock(),e.createElementBlock("li",Wm,[e.createElementVNode("label",qm,[e.createElementVNode("div",Ym,[e.createVNode(ee,{name:"Add",size:"sm"}),e.createElementVNode("span",Km,e.toDisplayString(d.$t("activity.attachment.button.resting")),1)]),e.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:r},null,32)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",Gm,[e.createElementVNode("span",Xm,e.toDisplayString(d.$t("activity.attachment.placeholder.active")),1)],512),[[e.vShow,i.value]])],42,Hm))}}),z9="",Jm={class:"ao-comment"},e3={class:"ao-comment__created-at"},t3={class:"ao-comment__body"},a3={class:"ao-comment__content-wrapper"},o3={key:0,class:"ao-comment__content"},r3=["rows"],n3=["onClick"],i3={key:1,class:"ao-comment__footer"},s3=e.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(a,{emit:t}){const o=a,n=e.computed(()=>{const B=o.user;return B?`${B==null?void 0:B.firstName} ${B==null?void 0:B.lastName}`:null}),r=e.ref(null),s=e.ref(o.content),{isEditing:i,toggleIsEditing:l,onUpdate:c,onDiscard:p}=So(r),d=e.computed(()=>{const B=o.editedAt&&Nt(o.editedAt),E=Nt(o.createdAt),N=new Date,I=B??E;return I&&Yp(I,N)});e.computed(()=>i.value?"textarea":"p");const u=p(),m=c(B=>{t("edit",B)}),g=()=>{t("remove")},f=e.ref(2);e.onUpdated(()=>{e.nextTick(()=>{var B;if(!i.value){const E=(B=r.value)==null?void 0:B.getClientRects().length;f.value=E||2}})});const{showMentionList:C,mentionListPosition:h,filteredUsers:y,handleInput:v,handleKeydown:_,selectUserMention:b}=rr(r,s,e.toRef(o,"mentionableUsers"));return(B,E)=>{var N;return e.openBlock(),e.createElementBlock("li",Jm,[n.value?(e.openBlock(),e.createBlock(Ve,{key:0,"avatar-url":(N=B.user)==null?void 0:N.avatarUrl,"user-name":n.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):e.createCommentVNode("",!0),e.createElementVNode("span",e3,e.toDisplayString(d.value),1),e.createElementVNode("div",t3,[e.createElementVNode("div",a3,[e.unref(i)?e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"commentContent",ref:r,class:"ao-comment__content","onUpdate:modelValue":E[0]||(E[0]=I=>s.value=I),rows:f.value,onInput:E[1]||(E[1]=(...I)=>e.unref(v)&&e.unref(v)(...I)),onKeydown:E[2]||(E[2]=(...I)=>e.unref(_)&&e.unref(_)(...I)),onKeyup:[E[3]||(E[3]=e.withKeys((...I)=>e.unref(u)&&e.unref(u)(...I),["esc"])),E[4]||(E[4]=e.withKeys(e.withModifiers((...I)=>e.unref(m)&&e.unref(m)(...I),["ctrl"]),["enter"]))]},null,40,r3)),[[e.vModelText,s.value]]):(e.openBlock(),e.createElementBlock("p",o3,e.toDisplayString(B.content),1)),e.unref(C)&&e.unref(y).length>0?(e.openBlock(),e.createElementBlock("ul",{key:2,class:"mention-list",style:e.normalizeStyle({top:e.unref(h).top+"px",left:e.unref(h).left+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(y),I=>(e.openBlock(),e.createElementBlock("li",{key:I.id,onClick:z=>e.unref(b)(I.name)}," @"+e.toDisplayString(I.name),9,n3))),128))],4)):e.createCommentVNode("",!0)])]),B.isEditable?(e.openBlock(),e.createElementBlock("div",i3,[e.unref(i)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(G,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:e.unref(u)},null,8,["onClick"]),e.createVNode(G,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:e.unref(m)},null,8,["onClick"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(G,{label:B.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:g},null,8,["label"]),e.createVNode(G,{label:B.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:e.unref(l)},null,8,["label","onClick"])],64))])):e.createCommentVNode("",!0)])}}}),H9="",l3={class:"ao-comments__header"},c3=["onSubmit"],d3=["placeholder"],p3={class:"ao-comments__form-submit"},u3={key:0,class:"ao-comments__list"},m3=["onClick"],f3=e.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(a,{emit:t}){const o=a,n=e.computed(()=>(o.comments||[]).toSorted((b,B)=>Pd(Nt(b.createdAt),Nt(B.createdAt)))),r=_=>o.users.find(B=>B.id===_),s=e.ref();e.nextTick(()=>{s.value&&(s.value.scrollTop=s.value.scrollHeight)});const i=e.toRef(o.newComment),l=e.computed({get(){return i.value},set(_){i.value=_}}),c=()=>{const _=i.value.trim();_&&(t("createComment",{authorId:o.userId,message:_,mentionedUserIds:v(_)}),i.value="")},p=(_,b)=>{t("updateComment",{id:_,message:b,mentionedUserIds:v(b)})},d=_=>{t("removeComment",{id:_})},u=e.ref(),{showMentionList:m,mentionListPosition:g,filteredUsers:f,handleInput:C,handleKeydown:h,selectUserMention:y,getMentionedUserIds:v}=rr(u,l,e.toRef(o,"users"));return(_,b)=>{var B;return e.openBlock(),e.createElementBlock("div",{ref_key:"commentsContainer",ref:s,class:"ao-comments"},[e.createElementVNode("div",l3,[e.createElementVNode("form",{class:"ao-comments__form",onSubmit:e.withModifiers(c,["prevent"])},[e.withDirectives(e.createElementVNode("textarea",{ref_key:"textareaRef",ref:u,"onUpdate:modelValue":b[0]||(b[0]=E=>l.value=E),rows:"2",class:"ao-field__textarea ao-comments__form-textarea",placeholder:_.$t("activity.comment.label"),onInput:b[1]||(b[1]=(...E)=>e.unref(C)&&e.unref(C)(...E)),onKeydown:b[2]||(b[2]=(...E)=>e.unref(h)&&e.unref(h)(...E))},null,40,d3),[[e.vModelText,l.value,void 0,{trim:!0}]]),e.createElementVNode("div",p3,[e.createVNode(G,{type:"submit","icon-name":"SendRounded",color:"primary",variant:"solid",corners:"round",size:"sm"})])],40,c3)]),((B=n.value)==null?void 0:B.length)>0?(e.openBlock(),e.createElementBlock("ul",u3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,E=>(e.openBlock(),e.createBlock(s3,{key:E.id,user:r(E.author.id),content:E.message,"created-at":E.createdAt,"edited-at":E.updatedAt,"is-editable":E.author.id===_.userId,"mentionable-users":_.users,class:"ao-comment",onEdit:N=>p(E.id,N),onRemove:()=>d(E.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):e.createCommentVNode("",!0),e.unref(m)&&e.unref(f).length>0?(e.openBlock(),e.createElementBlock("ul",{key:1,class:"mention-list",style:e.normalizeStyle({top:e.unref(g).top+"px",left:e.unref(g).left+"px"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),E=>(e.openBlock(),e.createElementBlock("li",{key:E.id,onClick:N=>e.unref(y)(E.name)}," @"+e.toDisplayString(E.name),9,m3))),128))],4)):e.createCommentVNode("",!0)],512)}}}),R9="",Or=e.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(a,{emit:t}){const o=a,n=()=>{t("update:modelValue",!o.modelValue)};return(r,s)=>(e.openBlock(),e.createBlock(G,{color:r.modelValue?r.color:e.unref(Ia).NEUTRAL,"icon-position":"start",onClick:s[0]||(s[0]=()=>n())},null,8,["color"]))}}),h3=e.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:a=>["underline"].includes(a)}},emits:["update:modelValue"],methods:{selectTab(a){this.$emit("update:modelValue",a)}}}),U9="",g3=["onClick"],_3={class:"tab-button__label"},v3={key:0,class:"tab-button__badge"};function b3(a,t,o,n,r,s){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":a.variant==="underline"}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tabs,i=>(e.openBlock(),e.createElementBlock("button",{key:i.value,class:e.normalizeClass(["tab-button",{"tab-button--active":i.value===a.modelValue},{"tab-button--underline":a.variant==="underline"}]),type:"button",onClick:l=>a.selectTab(i.value)},[e.createElementVNode("span",_3,e.toDisplayString(i.label),1),i.count!==void 0&&i.count>0?(e.openBlock(),e.createElementBlock("span",v3,e.toDisplayString(i.count),1)):e.createCommentVNode("",!0)],10,g3))),128))],2)}const Ft=j(h3,[["render",b3],["__scopeId","data-v-0e91b31f"]]),C3={class:"ao-activity-details"},y3={class:"ao-activity-details__main"},w3={class:"ao-activity-details__header"},k3={key:1,class:"ao-activity__category"},$3={class:"ao-feed__activity-details__header"},E3={key:0,class:"ao-field ao-feed__activity-details__project"},B3={class:"ao-field__label"},V3={key:1,class:"ao-field ao-feed__activity-details__project"},S3={class:"ao-field__label"},N3={class:"ao-activity-details__content"},x3={class:"ao-activity-details__tab-content"},M3={class:"ao-fieldset"},T3={class:"ao-field__row"},A3=["readonly"],O3={class:"ao-activity-details__tab-content"},I3={class:"ao-fieldset"},L3={class:"ao-fieldset__body"},D3={class:"ao-activity-details__tab-content"},j3={key:0,class:"ao-fieldset"},P3={class:"ao-activity-details__aside"},z3={class:"ao-activity-details__close-button"},H3={key:0,class:"ao-activity-details__aside-section"},R3={class:"ao-field"},U3={class:"ao-field__label"},F3={class:"ao-activity-details__aside-section"},Z3={class:"ao-field ao-field--multiselect"},W3={class:"assignee-inline"},q3={class:"ao-field__label"},Y3={class:"ao-activity-details__aside-section"},K3={key:0,class:"ao-field__row"},G3={class:"ao-field"},X3={class:"ao-field__label"},Q3=["readonly"],J3={class:"ao-activity-details__aside-section"},ef={class:"ao-field__row"},tf={class:"ao-field ao-field--inline"},af={class:"ao-field__label"},of=["readonly"],rf={class:"ao-field__row"},nf={class:"ao-field ao-field--inline"},sf={class:"ao-field__label"},lf={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},cf={class:"ao-activity-details__aside-section"},df={class:"ao-fieldset ao-activity-details__aside-section"},pf={class:"ao-fieldset__title"},uf={class:"ao-fieldset__body"},mf={class:"ao-field__row"},ff={class:"ao-field ao-field--multiselect"},hf={class:"ao-field__label"},gf={class:"ao-field__row"},_f={class:"ao-field ao-field--multiselect"},vf={class:"ao-field__label"},ro=e.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{},breadcrumbs:{},milestoneId:{},templateActivities:{},templateMilestones:{},isTemplate:{type:Boolean},users:{},userId:{},isTaskCheckable:{},statuses:{},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast"],setup(a,{emit:t}){const o=a,{t:n}=Te(),r=e.ref("description"),s=e.computed(()=>{var w,x;return[{label:n("activity.description.label")||"Description",value:"description"},{label:n("activity.tasks.title")||"Checklist",value:"checklist",count:((w=o.activity.tasks)==null?void 0:w.length)??0},{label:n("activity.comments.title")||"Commentaires",value:"comments",count:((x=o.activity.comments)==null?void 0:x.length)??0}]}),i=e.computed(()=>{var w;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((w=o.activity.assignee)==null?void 0:w.id):!1}),l=w=>{t("update:activity",{id:o.activity.id,name:w})},c=e.computed({get(){return o.activity.description??""},set(w){t("update:activity",{id:o.activity.id,description:w})}}),p=e.computed({get(){return o.activity.estimation??0},set(w){t("update:activity",{id:o.activity.id,estimation:w})}}),d=e.computed({get(){var x;const w=(x=o.timeTrackingData)==null?void 0:x[o.activity.id];return(w==null?void 0:w.timeSpent)??0},set(){}}),u=e.computed(()=>{var x;return((x=o.activity.project)==null?void 0:x.estimationUnit)==="days"?"d":"h"}),m=e.computed(()=>{var x;const w=(x=o.activity.project)==null?void 0:x.estimationUnit;return ia(d.value,w)}),g=e.computed({get(){return o.activity.important??!1},set(w){t("update:activity",{id:o.activity.id,important:w})}});e.computed({get(){return o.activity.private??!1},set(w){t("update:activity",{id:o.activity.id,private:w})}});const f=e.computed({get(){return o.activity.deadline},set(w){t("update:activity",{id:o.activity.id,deadline:w})}});e.computed(()=>{var w;return(w=o.activityTypes)==null?void 0:w.map(x=>({label:x.name,value:x.id}))}),e.computed({get(){var w;return(w=o.activity.type)==null?void 0:w.id},set(w){t("update:activity",{id:o.activity.id,typeId:w})}});const C=e.computed(()=>o.templateActivities.filter(w=>w.id!==o.activity.id).map(w=>({label:w.name,value:w.id}))),h=e.computed({get(){var w;return(w=o.activity.dependingOn)==null?void 0:w.map(x=>x.id)},set(w){w&&t("update:activity",{id:o.activity.id,dependingOn:w})}}),y=e.computed(()=>C.value.map(w=>{var x;return{...w,disabled:(x=o.activity.blocking)==null?void 0:x.some(O=>O.id===w.value)}})),v=e.computed({get(){var w;return(w=o.activity.blocking)==null?void 0:w.map(x=>x.id)},set(w){w&&t("update:activity",{id:o.activity.id,blocking:w})}}),_=e.computed(()=>C.value.map(w=>{var x;return{...w,disabled:(x=o.activity.dependingOn)==null?void 0:x.some(O=>O.id===w.value)}})),b=w=>{t("addSubtask",w)},B=w=>{t("updateSubtask",w)},E=w=>{t("deleteSubtask",w)};function N(){o.userId?R.value=[o.userId]:console.error("Failed assigning to self: userId is missing")}function I(w){R.value=[w]}const z=e.computed(()=>{var x;const w=new Map;return(x=o.users)==null||x.forEach(O=>{w.has(O.id)||w.set(O.id,O)}),Array.from(w.values()).map(O=>({label:`${O.firstName} ${O.lastName}`,value:O.id,avatar:O.avatarUrl}))}),R=e.computed({get(){var w,x;return(w=o.activity.assignee)!=null&&w.id?[(x=o.activity.assignee)==null?void 0:x.id]:[]},set(w){t("update:activity",{id:o.activity.id,assigneeId:w[0]??null})}}),F=w=>{t("addFiles",{activityId:o.activity.id,files:w})},A=w=>{t("removeFile",{activityId:o.activity.id,file:w})},H=e.computed(()=>o.projects.map(w=>({value:w.id,label:w.name}))),K=e.computed(()=>{var x,O,M;const w=(M=(O=(x=o.activity)==null?void 0:x.project)==null?void 0:O.phases)==null?void 0:M.reduce((P,Z)=>[...P,...Z.milestones],[]);return w==null?void 0:w.map(P=>({value:P.id,label:P.name}))}),W=w=>{o.activity&&t("update:activity",{id:o.activity.id,projectId:w})},U=w=>{o.activity&&t("update:activity",{id:o.activity.id,milestoneId:w})},S=e.computed(()=>{var w;return(w=o.statuses)==null?void 0:w.map(x=>({value:x.id,label:x.name}))}),$=w=>{t("update:activity",{id:o.activity.id,statusId:w})},L=w=>{t("addComment",{...w,activityId:o.activity.id})},V=w=>{t("updateComment",w)},D=w=>{t("removeComment",w)};e.computed(()=>{var w,x;return((w=o.activity.createdBy)==null?void 0:w.firstName)&&((x=o.activity.createdBy)==null?void 0:x.lastName)&&`${o.activity.createdBy.firstName} ${o.activity.createdBy.lastName}`});function q(){const w=window.location.origin,x=o.activity.slug,O=`${w}/activity-feed/slug/${x}`;navigator.clipboard.writeText(O).then(()=>{console.log(`Link copied to clipboard: ${O}`),t("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),t("toast","clipboard.copy.error","error")})}return(w,x)=>(e.openBlock(),e.createBlock(la,{onClose:x[9]||(x[9]=O=>w.$emit("close"))},{default:e.withCtx(()=>{var O,M,P;return[e.createElementVNode("div",C3,[e.createElementVNode("div",y3,[e.createElementVNode("div",w3,[w.activity.slug?(e.openBlock(),e.createBlock(kt,{key:0,label:w.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:q},null,8,["label"])):e.createCommentVNode("",!0),w.breadcrumbs?(e.openBlock(),e.createElementBlock("div",k3,e.toDisplayString(w.breadcrumbs),1)):e.createCommentVNode("",!0),e.createVNode(ne,{title:w.activity.name||"",level:4,"is-editable":i.value,"onUpdate:title":l},null,8,["title","is-editable"]),e.createElementVNode("div",$3,[H.value?(e.openBlock(),e.createElementBlock("label",E3,[e.createElementVNode("span",B3,e.toDisplayString(w.$t("activity.project.label")),1),e.createVNode(pe,{options:H.value,value:(O=w.activity.project)==null?void 0:O.id,searchable:!0,disabled:!i.value,caret:i.value,onChange:W},null,8,["options","value","disabled","caret"])])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("label",V3,[e.createElementVNode("span",S3,e.toDisplayString(w.$t("activity.milestone.label")),1),e.createVNode(pe,{options:K.value,value:(M=w.activity.milestone)==null?void 0:M.id,searchable:!0,disabled:!i.value,caret:i.value,onChange:U},null,8,["options","value","disabled","caret"])])):e.createCommentVNode("",!0)]),e.renderSlot(w.$slots,"header")]),e.createElementVNode("div",N3,[e.createVNode(Ft,{modelValue:r.value,"onUpdate:modelValue":x[0]||(x[0]=Z=>r.value=Z),tabs:s.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),e.withDirectives(e.createElementVNode("div",x3,[e.createElementVNode("fieldset",M3,[e.createElementVNode("div",T3,[e.createVNode(Qm,{attachments:w.activity.attachments,"is-editable":w.attachmentEnabled&&i.value&&w.isTemplate!==!0&&!!w.userId,onAdd:F,onRemove:A},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":x[1]||(x[1]=Z=>c.value=Z),readonly:!i.value,rows:"6",class:"ao-activity-details__description-textarea"},null,8,A3),[[e.vModelText,c.value,void 0,{lazy:!0,trim:!0}]])]),_:1},8,["attachments","is-editable"])])])],512),[[e.vShow,r.value==="description"]]),e.withDirectives(e.createElementVNode("div",O3,[e.createElementVNode("fieldset",I3,[e.createElementVNode("div",L3,[e.createVNode(zm,{class:"ao-activity-details__tasks ao-field__row",tasks:w.activity.tasks||[],"activity-id":w.activity.id,users:w.users,"is-checkable":w.isTaskCheckable,"is-editable":i.value,"is-template":w.isTemplate,onAdd:b,onUpdate:B,onDelete:E},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[e.vShow,r.value==="checklist"]]),e.withDirectives(e.createElementVNode("div",D3,[w.isTemplate!==!0&&w.userId?(e.openBlock(),e.createElementBlock("div",j3,[e.createVNode(f3,{comments:w.activity.comments,users:w.users,"user-id":w.userId,onCreateComment:L,onUpdateComment:V,onRemoveComment:D},null,8,["comments","users","user-id"])])):e.createCommentVNode("",!0)],512),[[e.vShow,r.value==="comments"]])])]),e.createElementVNode("div",P3,[e.createElementVNode("div",z3,[e.createVNode(ee,{name:"CloseRounded",onClick:x[2]||(x[2]=Z=>w.$emit("close"))})]),S.value?(e.openBlock(),e.createElementBlock("div",H3,[e.createElementVNode("label",R3,[e.createElementVNode("span",U3,e.toDisplayString(w.$t("activity.status.label")),1),e.createVNode(pe,{class:"ao-activity-details__multiselect",options:S.value,value:(P=w.activity.status)==null?void 0:P.id,"can-clear":!1,"can-deselect":!1,disabled:!i.value,caret:i.value,onChange:$},null,8,["options","value","disabled","caret"])])])):e.createCommentVNode("",!0),e.createElementVNode("div",F3,[e.createElementVNode("div",Z3,[e.createElementVNode("div",W3,[e.createElementVNode("span",q3,e.toDisplayString(w.$t("activity.assignee.label")),1),e.createVNode(G,{label:w.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:N},null,8,["label"])]),e.createVNode(pe,{modelValue:R.value,"onUpdate:modelValue":x[3]||(x[3]=Z=>R.value=Z),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:z.value,"close-on-select":!0,searchable:!0,placeholder:w.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!i.value,caret:i.value,onSelect:I},{tag:e.withCtx(({option:Z,handleTagRemove:le})=>[e.createVNode(Ve,{"user-name":Z.label,"avatar-url":Z.avatar,"is-closable":!0,onClose:nt=>le(Z,nt)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createElementVNode("div",Y3,[w.isTemplate!==!0&&w.userId?(e.openBlock(),e.createElementBlock("div",K3,[e.createElementVNode("label",G3,[e.createElementVNode("span",X3,e.toDisplayString(w.$t("activity.deadline.label")),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":x[4]||(x[4]=Z=>f.value=Z),readonly:!i.value,class:"ao-field__input",type:"date"},null,8,Q3),[[e.vModelText,f.value,void 0,{lazy:!0}]])])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",J3,[e.createElementVNode("div",ef,[e.createElementVNode("label",tf,[e.createElementVNode("span",af,e.toDisplayString(w.$t("activity.estimation.label"))+" ("+e.toDisplayString(u.value)+")",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":x[5]||(x[5]=Z=>p.value=Z),readonly:!i.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,of),[[e.vModelText,p.value,void 0,{lazy:!0,number:!0}]])])]),e.createElementVNode("div",rf,[e.createElementVNode("label",nf,[e.createElementVNode("span",sf,e.toDisplayString(w.$t("activity.timeSpent.label"))+" ("+e.toDisplayString(u.value)+")",1),e.createElementVNode("span",lf,e.toDisplayString(m.value),1)])])]),e.createElementVNode("div",cf,[e.createVNode(Or,{modelValue:g.value,"onUpdate:modelValue":x[6]||(x[6]=Z=>g.value=Z),modelModifiers:{lazy:!0},label:w.$t("activity.important.label"),disabled:!i.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),e.createElementVNode("fieldset",df,[e.createElementVNode("div",pf,[e.createVNode(ee,{name:"FlowsheetOutlineRounded"}),e.createVNode(ne,{level:4,title:w.$t("activity.dependencies.title")},null,8,["title"])]),e.createElementVNode("div",uf,[e.createElementVNode("div",mf,[e.createElementVNode("label",ff,[e.createElementVNode("span",hf,e.toDisplayString(w.$t("activity.dependingOn.label")),1),e.createVNode(pe,{modelValue:h.value,"onUpdate:modelValue":x[7]||(x[7]=Z=>h.value=Z),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:y.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])]),e.createElementVNode("div",gf,[e.createElementVNode("label",_f,[e.createElementVNode("span",vf,e.toDisplayString(w.$t("activity.blocking.label")),1),e.createVNode(pe,{modelValue:v.value,"onUpdate:modelValue":x[8]||(x[8]=Z=>v.value=Z),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:_.value,disabled:!i.value,caret:i.value},null,8,["modelValue","options","disabled","caret"])])])])]),e.renderSlot(w.$slots,"default",{activity:w.activity})])])]}),_:3}))}}),F9="",bf=e.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(a,{emit:t}){const o=a,n=e.toRef(o.rule.itemType||te.ACTIVITIES),r=e.computed({get(){return n.value},set(y){n.value=y,t("update:rule",{...o.rule,itemType:y,subItemId:void 0})}}),s=e.computed(()=>Object.values(te)),i=e.computed({get(){return o.rule.subItemId},set(y){t("update:rule",{...o.rule,subItemId:y,itemType:o.rule.itemType||r.value})}}),l=e.computed(()=>{var v;return!o.templateActivities||!o.templateMilestones||!o.templatePhases?null:(v={[te.ACTIVITIES]:o.templateActivities,[te.MILESTONES]:o.templateMilestones,[te.PHASES]:o.templatePhases}[n.value])==null?void 0:v.map(_=>({value:_.id,label:_.name}))}),c=e.toRef(o.rule.comparator),p=e.computed({get(){return c.value},set(y){t("update:rule",{...o.rule,comparator:y})}}),d=e.computed(()=>Object.values(xo)),u=e.toRef(o.rule.trigger),m=e.computed({get(){return u.value},set(y){t("update:rule",{...o.rule,trigger:y})}}),g=e.computed(()=>Object.values(Mo)),f=e.computed({get(){return o.rule.duration},set(y){t("update:rule",{...o.rule,duration:y})}}),C=e.computed({get(){return o.rule.durationUnit},set(y){t("update:rule",{...o.rule,durationUnit:y})}}),h=e.computed(()=>Object.values(To));return(y,v)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.tagName),{class:"ao-rule-line"},{default:e.withCtx(()=>[e.createVNode(e.unref(We),{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=_=>r.value=_),options:s.value},null,8,["modelValue","options"]),e.createVNode(e.unref(We),{modelValue:i.value,"onUpdate:modelValue":v[1]||(v[1]=_=>i.value=_),options:l.value},null,8,["modelValue","options"]),e.createVNode(e.unref(We),{modelValue:m.value,"onUpdate:modelValue":v[2]||(v[2]=_=>m.value=_),options:g.value},null,8,["modelValue","options"]),e.createVNode(e.unref(We),{modelValue:p.value,"onUpdate:modelValue":v[3]||(v[3]=_=>p.value=_),options:d.value},null,8,["modelValue","options"]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":v[4]||(v[4]=_=>f.value=_),type:"number",min:"0"},null,512),[[e.vModelText,f.value,void 0,{number:!0}]]),e.createVNode(e.unref(We),{modelValue:C.value,"onUpdate:modelValue":v[5]||(v[5]=_=>C.value=_),options:h.value},null,8,["modelValue","options"]),e.createVNode(G,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:v[6]||(v[6]=_=>y.$emit("close"))})]),_:1}))}}),Z9="",Cf={class:"ao-template-rules__body"},yf={class:"ao-template-rules__list"},wf=e.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(a,{emit:t}){const o=()=>{t("addRule")},n=r=>{t("removeRule",r)};return(r,s)=>(e.openBlock(),e.createBlock(la,null,{header:e.withCtx(()=>[e.createVNode(ne,{title:r.$t("template.rules.title"),level:2},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("div",Cf,[e.createElementVNode("ul",yf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.rules,i=>(e.openBlock(),e.createBlock(bf,{key:i.id,rule:i,"template-phases":r.templatePhases,"template-milestones":r.templateMilestones,"template-activities":r.templateActivities,class:"ao-template-rule",onClose:()=>n(i.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),e.createVNode(ze,{label:r.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}}),W9="";function at(a,t,o){const n=a.length,r=a.at(-1),s=r?ie.LexoRank.parse(r.rank).genNext():ie.LexoRank.middle();return{name:o(`template.defaultName.${t}`,{idx:n+1}),rank:s.format()}}const kf={key:0,class:"ao-template-details"},$f={class:"ao-template-details__body"},Ef={class:"ao-template-details__cols"},Bf={class:"ao-template-details__col"},Vf={class:"ao-list__footer"},Sf={class:"ao-template-details__col"},Nf={class:"ao-template-details__col"},Ir=e.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(a,{emit:t}){const o=a,{t:n}=Te(),r=e.computed(()=>{var S;return(S=o.templates)==null?void 0:S.find($=>$.id===o.templateId)}),s=e.ref(!1);e.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>s.value=!1),e.watch(()=>{var S;return(S=r.value)==null?void 0:S.phases},(S,$)=>{s.value&&Ae(S,$)});const i=e.computed(()=>{var S,$;return($=(S=r==null?void 0:r.value)==null?void 0:S.phases)==null?void 0:$.find(L=>L.id===o.phaseId)});e.watch(()=>{var S;return(S=i.value)==null?void 0:S.milestones},(S,$)=>{s.value&&Ae(S,$)});const l=e.computed(()=>{var S,$;return($=(S=i.value)==null?void 0:S.milestones)==null?void 0:$.find(L=>L.id===o.milestoneId)});e.watch(()=>{var S;return(S=l.value)==null?void 0:S.activities},(S,$)=>{s.value&&Ae(S,$)});const c=e.computed(()=>{var S,$;return(($=(S=r.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const D=V.milestones||[];return[...L,...D]},[]))||[]}),p=e.computed(()=>{var S,$;return(($=(S=r.value)==null?void 0:S.phases)==null?void 0:$.reduce((L,V)=>{const q=(V.milestones||[]).reduce((w,x)=>x.activities?[...w,...x.activities]:w,[]);return[...L,...q]},[]))||[]}),d=e.computed(()=>{var S,$;return($=(S=l.value)==null?void 0:S.activities)==null?void 0:$.find(L=>L.id===o.activityId)}),u=e.computed(()=>{var S;return((S=r.value)==null?void 0:S.name)||o.templateId}),m=()=>{if(!r.value)return;const{name:S,rank:$}=at(r.value.phases,"phase",n);s.value=!0,t("addItem",{type:te.PHASES,templateId:o.templateId,item:{name:S,rank:$}})},g=S=>{t("updateItem",{templateId:o.templateId,id:o.templateId,itemType:te.TEMPLATES,data:{name:S}})},f=S=>{t("removeItem",{itemType:te.PHASES,templateId:o.templateId,data:{id:S}})},C=(S,$)=>{t("updateItem",{templateId:o.templateId,id:S,itemType:te.PHASES,data:{name:$}})},h=S=>{t("updateItem",S)},y=S=>{if(!i.value)return;const{name:$,rank:L}=at(i.value.milestones,"milestone",n);s.value=!0,t("addItem",{type:te.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,item:{name:$,rank:L,phaseId:S.phaseId}})},v=S=>{t("removeItem",{itemType:te.MILESTONES,templateId:o.templateId,phaseId:S.phaseId,data:{id:S.id}})},_=S=>{const{id:$,...L}=S;t("updateItem",{itemType:te.MILESTONES,id:$,templateId:o.templateId,data:L})},b=S=>{const{milestoneId:$}=S;if(!l.value)return;const{name:L,rank:V}=at(l.value.activities,"activity",n);s.value=!0,t("addItem",{type:te.ACTIVITIES,milestoneId:$,templateId:o.templateId,item:{name:L,rank:V,milestoneId:$}})},B=S=>{var $,L;t("removeItem",{itemType:te.ACTIVITIES,templateId:o.templateId,phaseId:($=i.value)==null?void 0:$.id,milestoneId:(L=l.value)==null?void 0:L.id,data:{id:S.id}})},E=S=>{const{id:$,...L}=S;t("updateItem",{itemType:te.ACTIVITIES,id:$,templateId:o.templateId,data:L})},N=e.ref(!1),I=()=>{N.value=!N.value},z=()=>{t("addRule",{templateId:o.templateId})},R=S=>{t("removeRule",{id:S,templateId:o.templateId})},F=S=>{var $;if(S.moved){const L=Lt(S,(($=r.value)==null?void 0:$.phases)??[]);t("updateItem",{itemType:te.PHASES,id:S.moved.element.id,templateId:o.templateId,data:{rank:L}})}},A=S=>{!i.value||!l.value||!d.value||t("addItem",{type:te.TASKS,activityId:S.activityId,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,item:S})},H=S=>{!i.value||!l.value||!d.value||t("updateItem",{itemType:te.TASKS,id:S.id,templateId:o.templateId,data:S})},K=S=>{!i.value||!l.value||!d.value||t("removeItem",{itemType:te.TASKS,activityId:d.value.id,milestoneId:l.value.id,phaseId:i.value.id,templateId:o.templateId,data:S})},W=S=>{t("addFiles",S)},U=S=>{t("removeFile",S)};return(S,$)=>{var L,V,D,q,w,x;return r.value?(e.openBlock(),e.createElementBlock("div",kf,[e.createVNode(Dt,{"can-go-back":!0,onGoBack:$[1]||($[1]=O=>S.$router.push({name:e.unref(rt).TEMPLATES_LIST}))},{primary:e.withCtx(()=>[e.createVNode(ne,{title:u.value,level:2,"is-editable":!0,"onUpdate:title":$[0]||($[0]=O=>{g(O)})},null,8,["title"])]),_:1}),e.createElementVNode("div",$f,[e.createElementVNode("ol",Ef,[e.createElementVNode("li",Bf,[e.createVNode(e.unref(je),{"model-value":r.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:F},{header:e.withCtx(()=>[e.createVNode(ne,{title:S.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:e.withCtx(({element:O})=>{var M;return[e.createVNode(r2,{id:O.id,name:O.name,milestones:O.milestones,"is-active":((M=i.value)==null?void 0:M.id)===O.id,"is-draggable":!0,onClick:P=>S.$router.push({params:{templateId:S.templateId,phaseId:O.id}}),"onUpdate:title":P=>{C(O.id,P)},onRemove:()=>f(O.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:e.withCtx(()=>[e.createElementVNode("div",Vf,[e.createVNode(ze,{"icon-name":"AddBoxOutlineRounded",label:S.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),e.createElementVNode("li",Sf,[i.value?(e.openBlock(),e.createBlock(s2,{key:0,"template-id":S.templateId,phase:i.value,"milestone-id":(L=l.value)==null?void 0:L.id,onAddMilestone:y,onUpdateMilestone:_,onUpdatePhase:h,onRemoveMilestone:v},null,8,["template-id","phase","milestone-id"])):e.createCommentVNode("",!0)]),e.createElementVNode("li",Nf,[i.value&&l.value?(e.openBlock(),e.createBlock(d2,{key:0,"template-id":S.templateId,"phase-id":(V=i.value)==null?void 0:V.id,milestone:l.value,"activity-id":(D=d.value)==null?void 0:D.id,onAddActivity:b,onUpdateActivity:E,onRemoveActivity:B},null,8,["template-id","phase-id","milestone","activity-id"])):e.createCommentVNode("",!0)])])]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[d.value?(e.openBlock(),e.createBlock(ro,{key:0,activity:d.value,"activity-types":S.activityTypes,breadcrumbs:`${r.value.name} / ${(q=i.value)==null?void 0:q.name} / ${(w=l.value)==null?void 0:w.name}`,"milestone-id":(x=l.value)==null?void 0:x.id,"template-activities":p.value,"template-milestones":c.value,"is-template":!0,"is-editable":!0,users:S.users,"onUpdate:activity":$[2]||($[2]=O=>{d.value&&E(O)}),"attachment-enabled":!1,onClose:S.$router.back,onAddSubtask:A,onUpdateSubtask:H,onDeleteSubtask:K,onAddFiles:W,onRemoveFile:U},{default:e.withCtx(O=>[e.renderSlot(S.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(O)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):e.createCommentVNode("",!0)])),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[N.value?(e.openBlock(),e.createBlock(wf,{key:0,"template-id":r.value.id,rules:r.value.rules||[],"template-phases":r.value.phases,"template-milestones":c.value,"template-activities":p.value,onClose:I,onAddRule:z,onRemoveRule:R},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):e.createCommentVNode("",!0)]))])):e.createCommentVNode("",!0)}}}),q9="",xf={class:"ao-card__content"},Mf={key:0,class:"ao-card__header"},Tf={class:"ao-card__body"},Af={key:1,class:"ao-card__footer"},ka=e.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1}},setup(a){return(t,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tagName),{class:e.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable}]),style:e.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:e.withCtx(()=>[t.withLeftBorder?(e.openBlock(),e.createElementBlock("div",{key:0,class:"ao-card__left-border",style:e.normalizeStyle({backgroundColor:t.color})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",xf,[t.$slots.header?(e.openBlock(),e.createElementBlock("header",Mf,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0),e.createElementVNode("div",Tf,[e.renderSlot(t.$slots,"default")]),t.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Af,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}}),Y9="",$a=e.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(a){const t=a,o=e.computed(()=>typeof t.percentages=="number"?[t.percentages]:t.percentages??[]);return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["ao-progress",n.status?`ao-progress--${n.status}`:""]),role:"meter"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,s=>(e.openBlock(),e.createElementBlock("div",{key:s,class:e.normalizeClass(["ao-progress__progress"]),style:e.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":n.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}}),K9="";/*!
|
|
230
3
|
* vue-color-kit v1.0.6
|
|
231
4
|
* (c) 2023
|
|
232
5
|
* @license MIT
|
|
233
|
-
*/function fn(i){let e={r:0,g:0,b:0,a:1};/#/.test(i)?e=B$(i):/rgb/.test(i)?e=jv(i):typeof i=="string"?e=jv(`rgba(${i})`):Object.prototype.toString.call(i)==="[object Object]"&&(e=i);const{r:t,g:o,b:s,a:r}=e,{h:l,s:c,v:d}=N$(e);return{r:t,g:o,b:s,a:r===void 0?1:r,h:l,s:c,v:d}}function Gg(i){const e=document.createElement("canvas"),t=e.getContext("2d"),o=i*2;return e.width=o,e.height=o,t.fillStyle="#ffffff",t.fillRect(0,0,o,o),t.fillStyle="#ccd5db",t.fillRect(0,0,i,i),t.fillRect(i,i,i,i),e}function Yg(i,e,t,o,s,r){const l=i==="l",c=e.createLinearGradient(0,0,l?t:0,l?0:o);c.addColorStop(.01,s),c.addColorStop(.99,r),e.fillStyle=c,e.fillRect(0,0,t,o)}function A$({r:i,g:e,b:t},o){const s=l=>("0"+Number(l).toString(16)).slice(-2),r=`#${s(i)}${s(e)}${s(t)}`;return o?r.toUpperCase():r}function B$(i){i=i.slice(1);const e=t=>parseInt(t,16)||0;return{r:e(i.slice(0,2)),g:e(i.slice(2,4)),b:e(i.slice(4,6))}}function jv(i){return typeof i=="string"?(i=(/rgba?\((.*?)\)/.exec(i)||["","0,0,0,1"])[1].split(","),{r:Number(i[0])||0,g:Number(i[1])||0,b:Number(i[2])||0,a:Number(i[3]?i[3]:1)}):i}function N$({r:i,g:e,b:t}){i=i/255,e=e/255,t=t/255;const o=Math.max(i,e,t),s=Math.min(i,e,t),r=o-s;let l=0;o===s?l=0:o===i?e>=t?l=60*(e-t)/r:l=60*(e-t)/r+360:o===e?l=60*(t-i)/r+120:o===t&&(l=60*(i-e)/r+240),l=Math.floor(l);let c=parseFloat((o===0?0:1-s/o).toFixed(2)),d=parseFloat(o.toFixed(2));return{h:l,s:c,v:d}}var Kg=a.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const i=this.$refs.canvasSaturation,e=this.size,t=i.getContext("2d");i.width=e,i.height=e,t.fillStyle=this.color,t.fillRect(0,0,e,e),Yg("l",t,e,e,"#FFFFFF","rgba(255,255,255,0)"),Yg("p",t,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(i){const{top:e,left:t}=this.$el.getBoundingClientRect(),o=i.target.getContext("2d"),s=l=>{let c=l.clientX-t,d=l.clientY-e;c<0&&(c=0),d<0&&(d=0),c>this.size&&(c=this.size),d>this.size&&(d=this.size),this.slideSaturationStyle={left:c-5+"px",top:d-5+"px"};const h=o.getImageData(Math.min(c,this.size-1),Math.min(d,this.size-1),1,1),[p,f,m]=h.data;this.$emit("selectSaturation",{r:p,g:f,b:m})};s(i);const r=()=>{document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",s),document.addEventListener("mouseup",r)}}});const L$={ref:"canvasSaturation"};function I$(i,e,t,o,s,r){return a.openBlock(),a.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=a.withModifiers((...l)=>i.selectSaturation&&i.selectSaturation(...l),["prevent","stop"]))},[a.createVNode("canvas",L$,null,512),a.createVNode("div",{style:i.slideSaturationStyle,class:"slide"},null,4)],32)}Kg.render=I$,Kg.__file="src/color/Saturation.vue";var Xg=a.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const i=this.$refs.canvasHue,e=this.width,t=this.height,o=i.getContext("2d");i.width=e,i.height=t;const s=o.createLinearGradient(0,0,0,t);s.addColorStop(0,"#FF0000"),s.addColorStop(.17*1,"#FF00FF"),s.addColorStop(.17*2,"#0000FF"),s.addColorStop(.17*3,"#00FFFF"),s.addColorStop(.17*4,"#00FF00"),s.addColorStop(.17*5,"#FFFF00"),s.addColorStop(1,"#FF0000"),o.fillStyle=s,o.fillRect(0,0,e,t)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(i){const{top:e}=this.$el.getBoundingClientRect(),t=i.target.getContext("2d"),o=r=>{let l=r.clientY-e;l<0&&(l=0),l>this.height&&(l=this.height),this.slideHueStyle={top:l-2+"px"};const c=t.getImageData(0,Math.min(l,this.height-1),1,1),[d,h,p]=c.data;this.$emit("selectHue",{r:d,g:h,b:p})};o(i);const s=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",s)}}});const $$={ref:"canvasHue"};function O$(i,e,t,o,s,r){return a.openBlock(),a.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=a.withModifiers((...l)=>i.selectHue&&i.selectHue(...l),["prevent","stop"]))},[a.createVNode("canvas",$$,null,512),a.createVNode("div",{style:i.slideHueStyle,class:"slide"},null,4)],32)}Xg.render=O$,Xg.__file="src/color/Hue.vue";var Qg=a.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const i=this.$refs.canvasAlpha,e=this.width,t=this.height,o=this.alphaSize,s=Gg(o),r=i.getContext("2d");i.width=e,i.height=t,r.fillStyle=r.createPattern(s,"repeat"),r.fillRect(0,0,e,t),Yg("p",r,e,t,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(i){const{top:e}=this.$el.getBoundingClientRect(),t=s=>{let r=s.clientY-e;r<0&&(r=0),r>this.height&&(r=this.height);let l=parseFloat((r/this.height).toFixed(2));this.$emit("selectAlpha",l)};t(i);const o=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",o)}}});const D$={ref:"canvasAlpha"};function V$(i,e,t,o,s,r){return a.openBlock(),a.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=a.withModifiers((...l)=>i.selectAlpha&&i.selectAlpha(...l),["prevent","stop"]))},[a.createVNode("canvas",D$,null,512),a.createVNode("div",{style:i.slideAlphaStyle,class:"slide"},null,4)],32)}Qg.render=V$,Qg.__file="src/color/Alpha.vue";var Jg=a.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const i=this.$el,e=this.width,t=this.height,o=this.alphaSize,s=Gg(o),r=i.getContext("2d");i.width=e,i.height=t,r.fillStyle=r.createPattern(s,"repeat"),r.fillRect(0,0,e,t),r.fillStyle=this.color,r.fillRect(0,0,e,t)}}});function R$(i,e,t,o,s,r){return a.openBlock(),a.createBlock("canvas")}Jg.render=R$,Jg.__file="src/color/Preview.vue";var e0=a.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(i){this.isSucking=!1,this.suckColor(i)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(i){i.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(i){const{clientX:e,clientY:t}=i,{top:o,left:s,width:r,height:l}=this.suckerCanvas.getBoundingClientRect(),c=e-s,d=t-o,p=this.suckerCanvas.getContext("2d").getImageData(Math.min(c,r-1),Math.min(d,l-1),1,1);let[f,m,g,v]=p.data;v=parseFloat((v/255).toFixed(2));const b=this.suckerPreview.style;Object.assign(b,{position:"absolute",left:e+20+"px",top:t-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${f}, ${m}, ${g}, ${v})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&t>=this.suckerArea[1]&&e<=this.suckerArea[2]&&t<=this.suckerArea[3]?b.display="":b.display="none"},suckColor(i){i&&i.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),i.addEventListener("click",e=>{const{clientX:t,clientY:o}=e,{top:s,left:r,width:l,height:c}=i.getBoundingClientRect(),d=t-r,h=o-s,f=i.getContext("2d").getImageData(Math.min(d,l-1),Math.min(h,c-1),1,1);let[m,g,v,b]=f.data;b=parseFloat((b/255).toFixed(2)),this.$emit("selectSucker",{r:m,g,b:v,a:b})}))}}});const z$=a.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),P$={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},H$=a.createVNode("g",{fill:"none","fill-rule":"evenodd"},[a.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[a.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),a.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[a.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function j$(i,e,t,o,s,r){return a.openBlock(),a.createBlock("div",null,[i.isSucking?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock("svg",{key:0,class:[{active:i.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...l)=>i.openSucker&&i.openSucker(...l))},[z$],2)),i.isSucking?(a.openBlock(),a.createBlock("svg",P$,[H$])):a.createCommentVNode("v-if",!0)])}e0.render=j$,e0.__file="src/color/Sucker.vue";var t0=a.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(i,{emit:e}){return{modelColor:a.computed({get(){return i.color||""},set(r){e("inputColor",r)}}),handleFocus:r=>{e("inputFocus",r)},handleBlur:r=>{e("inputBlur",r)}}}});const F$={class:"color-type"},W$={class:"name"};function U$(i,e,t,o,s,r){return a.openBlock(),a.createBlock("div",F$,[a.createVNode("span",W$,a.toDisplayString(i.name),1),a.withDirectives(a.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=l=>i.modelColor=l),class:"value",onFocus:e[2]||(e[2]=(...l)=>i.handleFocus&&i.handleFocus(...l)),onBlur:e[3]||(e[3]=(...l)=>i.handleBlur&&i.handleBlur(...l))},null,544),[[a.vModelText,i.modelColor]])])}t0.render=U$,t0.__file="src/color/Box.vue";var i0=a.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(i,{emit:e}){const t=a.ref(),o=a.ref([]),s=a.ref();i.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(i.colorsHistoryKey))||[]),s.value=Gg(4).toDataURL(),a.onUnmounted(()=>{r(t.value)});function r(c){if(!c)return;const d=o.value||[],h=d.indexOf(c);h>=0&&d.splice(h,1),d.length>=8&&(d.length=7),d.unshift(c),o.value=d||[],localStorage&&i.colorsHistoryKey&&localStorage.setItem(i.colorsHistoryKey,JSON.stringify(d))}function l(c){e("selectColor",c)}return{setColorsHistory:r,colorsHistory:o,color:t,imgAlphaBase64:s,selectColor:l}}});const q$={class:"colors"},Z$={key:0,class:"colors history"};function G$(i,e,t,o,s,r){return a.openBlock(),a.createBlock("div",null,[a.createVNode("ul",q$,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(i.colorsDefault,l=>(a.openBlock(),a.createBlock("li",{key:l,class:"item",onClick:c=>i.selectColor(l)},[a.createVNode("div",{style:{background:`url(${i.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:l},class:"color"},null,4)],8,["onClick"]))),128))]),i.colorsHistory.length?(a.openBlock(),a.createBlock("ul",Z$,[(a.openBlock(!0),a.createBlock(a.Fragment,null,a.renderList(i.colorsHistory,l=>(a.openBlock(),a.createBlock("li",{key:l,class:"item",onClick:c=>i.selectColor(l)},[a.createVNode("div",{style:{background:`url(${i.imgAlphaBase64})`},class:"alpha"},null,4),a.createVNode("div",{style:{background:l},class:"color"},null,4)],8,["onClick"]))),128))])):a.createCommentVNode("v-if",!0)])}i0.render=G$,i0.__file="src/color/Colors.vue";var Ur=a.defineComponent({components:{Saturation:Kg,Hue:Xg,Alpha:Qg,Preview:Jg,Sucker:e0,Box:t0,Colors:i0},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return A$(this.rgba,!0)}},created(){Object.assign(this,fn(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(i){const{r:e,g:t,b:o,h:s,s:r,v:l}=fn(i);Object.assign(this,{r:e,g:t,b:o,h:s,s:r,v:l}),this.setText()},handleFocus(i){this.$emit("inputFocus",i)},handleBlur(i){this.$emit("inputBlur",i)},selectHue(i){const{r:e,g:t,b:o,h:s,s:r,v:l}=fn(i);Object.assign(this,{r:e,g:t,b:o,h:s,s:r,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(i){this.a=i,this.setText()},inputHex(i){const{r:e,g:t,b:o,a:s,h:r,s:l,v:c}=fn(i);Object.assign(this,{r:e,g:t,b:o,a:s,h:r,s:l,v:c}),this.modelHex=i,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(i){const{r:e,g:t,b:o,a:s,h:r,s:l,v:c}=fn(i);Object.assign(this,{r:e,g:t,b:o,a:s,h:r,s:l,v:c}),this.modelHex=this.hexString,this.modelRgba=i,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(i){this.$emit("openSucker",i)},selectSucker(i){const{r:e,g:t,b:o,a:s,h:r,s:l,v:c}=fn(i);Object.assign(this,{r:e,g:t,b:o,a:s,h:r,s:l,v:c}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(i){const{r:e,g:t,b:o,a:s,h:r,s:l,v:c}=fn(i);Object.assign(this,{r:e,g:t,b:o,a:s,h:r,s:l,v:c}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Y$={class:"color-set"};function K$(i,e,t,o,s,r){const l=a.resolveComponent("Saturation"),c=a.resolveComponent("Hue"),d=a.resolveComponent("Alpha"),h=a.resolveComponent("Preview"),p=a.resolveComponent("Sucker"),f=a.resolveComponent("Box"),m=a.resolveComponent("Colors");return a.openBlock(),a.createBlock("div",{class:["hu-color-picker",{light:i.isLightTheme}],style:{width:i.totalWidth+"px"}},[a.createVNode("div",Y$,[a.createVNode(l,{ref:"saturation",color:i.rgbString,hsv:i.hsv,size:i.hueHeight,onSelectSaturation:i.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),a.createVNode(c,{ref:"hue",hsv:i.hsv,width:i.hueWidth,height:i.hueHeight,onSelectHue:i.selectHue},null,8,["hsv","width","height","onSelectHue"]),a.createVNode(d,{ref:"alpha",color:i.rgbString,rgba:i.rgba,width:i.hueWidth,height:i.hueHeight,onSelectAlpha:i.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),a.createVNode("div",{style:{height:i.previewHeight+"px"},class:"color-show"},[a.createVNode(h,{color:i.rgbaString,width:i.previewWidth,height:i.previewHeight},null,8,["color","width","height"]),i.suckerHide?a.createCommentVNode("v-if",!0):(a.openBlock(),a.createBlock(p,{key:0,"sucker-canvas":i.suckerCanvas,"sucker-area":i.suckerArea,onOpenSucker:i.openSucker,onSelectSucker:i.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),a.createVNode(f,{name:"HEX",color:i.modelHex,onInputColor:i.inputHex,onInputFocus:i.handleFocus,onInputBlur:i.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(f,{name:"RGBA",color:i.modelRgba,onInputColor:i.inputRgba,onInputFocus:i.handleFocus,onInputBlur:i.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),a.createVNode(m,{color:i.rgbaString,"colors-default":i.colorsDefault,"colors-history-key":i.colorsHistoryKey,onSelectColor:i.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),a.createCommentVNode(" custom options "),a.renderSlot(i.$slots,"default")],6)}Ur.render=K$,Ur.__file="src/color/ColorPicker.vue",Ur.install=i=>{i.component(Ur.name,Ur)};const UR="",X$={class:"color-picker-wrapper"},fp=a.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(i,{emit:e}){const t=i,o=e,s=a.ref(!1),r=a.ref(null),l=a.ref(null),c=a.ref(0),d=a.ref(0),h=async v=>{l.value=v,s.value=!0,await a.nextTick();const b=v.getBoundingClientRect(),y=r.value,C=(y==null?void 0:y.offsetHeight)||300,k=window.innerHeight-b.bottom,_=b.top,S=k<C&&_>C;console.log("pickerHeight = "+C),c.value=S?b.top-C-8:b.bottom+8,d.value=b.left,setTimeout(()=>{window.addEventListener("click",f)},0)},p=a.computed(()=>({position:"fixed",top:`${c.value}px`,left:`${d.value}px`,zIndex:1e3})),f=v=>{const b=v.target;r.value&&!r.value.contains(b)&&(s.value=!1,o("update:color",m.value),window.removeEventListener("click",f))};a.onBeforeUnmount(()=>{window.removeEventListener("click",f)}),a.watch(()=>t.color,v=>{s.value||(m.value=v)});const m=a.ref(t.color),g=v=>{const{r:b,g:y,b:C,a:k}=v.rgba;m.value=`rgba(${b}, ${y}, ${C}, ${k})`};return(v,b)=>(a.openBlock(),a.createElementBlock("div",X$,[a.renderSlot(v.$slots,"clickable",{openPicker:h,bgColor:i.color}),s.value?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:r,class:"color-picker",style:a.normalizeStyle(p.value)},[a.createVNode(a.unref(Ur),{class:"color-picker-box",theme:"light",color:i.color,onChangeColor:g},null,8,["color"])],4)):a.createCommentVNode("",!0)]))}}),qR="",Q$={class:"ao-card-project-phase__header"},J$={class:"ao-card-project-item__title-line"},eO={key:0,class:"ao-card-project-item-phase__estimation"},tO={class:"ao-card-project-phase__footer"},iO={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},oO={class:"ao-card-project-phase__subitem"},sO={class:"ao-card-project-phase__subitem"},nO={key:0,class:"ao-card-project-phase__secondary"},rO={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},aO=a.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(i,{emit:e}){const t=i,o=e,s=b=>{o("update:title",b)},r=a.computed(()=>{var b;return((b=t.milestones)==null?void 0:b.reduce((y,C)=>{var k;return y+((k=C.activities)==null?void 0:k.reduce((_,S)=>_+(S.estimation||0),0))},0))||0}),l=a.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((b,y)=>{var C;return b+(((C=y.activities)==null?void 0:C.reduce((k,_)=>{var T;const S=(T=t.timeTrackingData)==null?void 0:T[_.id];return k+((S==null?void 0:S.timeSpent)||0)},0))||0)},0)),c=a.computed(()=>t.estimationUnit==="days"?"d":"h"),d=a.computed(()=>Eu(l.value,t.estimationUnit)),h=a.computed(()=>{var b;return(b=t.milestones)==null?void 0:b.length}),p=a.computed(()=>{var b;return(b=t.milestones)==null?void 0:b.filter(y=>y.status===Gl.done).length}),f=a.computed(()=>(p.value||0)/(h.value||1)),m=a.computed({get:()=>t.deadline??"",set:b=>o("update:deadline",b!=null&&b.length?b:null)}),g=a.computed({get:()=>t.color,set:b=>{o("updatePhase",{id:t.id,color:b})}}),v=(b,y)=>{const C=b.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y(C)};return(b,y)=>(a.openBlock(),a.createBlock(fp,{color:g.value,"onUpdate:color":y[2]||(y[2]=C=>g.value=C)},{clickable:a.withCtx(({openPicker:C,bgColor:k})=>[a.createVNode(up,{class:"ao-card-project-phase","is-clickable":i.isEditable,color:k,withLeftBorder:!0,onClick:_=>v(_,C)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",J$,[a.createVNode(Pt,{id:i.id,class:"ao-card-project-phase__title",title:i.name||"",level:4,"is-editable":i.isEditable,"onUpdate:title":s},null,8,["id","title","is-editable"]),r.value||l.value?(a.openBlock(),a.createElementBlock("span",eO," ("+a.toDisplayString(d.value)+"/"+a.toDisplayString(r.value)+a.toDisplayString(c.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",tO,[h.value?(a.openBlock(),a.createElementBlock("div",iO,[a.createElementVNode("div",oO,[a.createVNode(Ze,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",sO,a.toDisplayString(p.value)+" / "+a.toDisplayString(h.value),1)]),a.createVNode(pp,{percentages:f.value,class:"ao-card-project-phase__progress",color:i.color},null,8,["percentages","color"]),b.$slots.secondary?(a.openBlock(),a.createElementBlock("div",nO,[a.renderSlot(b.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-card-project-phase__footer-row",m.value?"":"ao-card-project-phase__no_deadline"])},[i.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>m.value=_),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,m.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",rO,a.toDisplayString(a.unref(Tu)(i.deadline)),1)],2)])]),_:2},[i.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",Q$,[a.createVNode(Ee,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:i.active?b.$t("archive"):b.$t("unarchive"),onClick:y[0]||(y[0]=a.withModifiers(()=>i.active?b.$emit("archivePhase",{id:i.id}):b.$emit("unarchivePhase",{id:i.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),ZR="",lO=a.defineComponent({__name:"AoBadge",props:{color:{}},setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("span",{class:"aoBadge",style:a.normalizeStyle({backgroundColor:i.color})},null,4))}}),GR="",cO={class:"ao-card-project-milestone__default"},dO={class:"ao-title-with-badge-wrapper"},hO={class:"ao-card-project-item__title-line"},uO={key:0,class:"ao-card-project-item-milestone__estimation"},pO={key:0,class:"ao-card-project-milestone__archive"},fO={class:"ao-card-project-milestone__activities"},mO={class:"ao-card-project-milestone__activities-row"},gO={class:"ao-card-project-milestone__subitem"},bO={class:"ao-card-project-milestone__subitem"},vO={key:1,class:"ao-card-project-milestone__secondary"},yO={class:"ao-card-project-milestone__footer"},wO={key:1,class:"ao-field ao-card-project-milestone__deadline"},CO={class:"ao-field__label"},kO={key:2,class:"ao-card-project-milestone__assignee"},_O=a.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>{var m;return((m=t.activities)==null?void 0:m.reduce((g,v)=>g+(v.estimation||0),0))||0}),r=a.computed(()=>!t.activities||!t.timeTrackingData?0:t.activities.reduce((m,g)=>{var b;const v=(b=t.timeTrackingData)==null?void 0:b[g.id];return m+((v==null?void 0:v.timeSpent)||0)},0)),l=a.computed(()=>t.estimationUnit==="days"?"d":"h"),c=a.computed(()=>Eu(r.value,t.estimationUnit));a.computed(()=>{const m=r.value/60;return m%1===0?m.toString():m.toFixed(2)});const d=a.computed(()=>{var m;return(m=t.activities)==null?void 0:m.length}),h=a.computed(()=>{var m;return(m=t.activities)==null?void 0:m.filter(g=>Um(g,t.closedStatus)).length}),p=a.computed(()=>(h.value||0)/(d.value||1)),f=m=>{o("updateMilestone",{id:t.id,name:m})};return(m,g)=>(a.openBlock(),a.createBlock(up,{class:a.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!i.readonly,"tag-name":"li","is-selected":i.isSelected,color:i.phaseColor},{default:a.withCtx(()=>[a.createElementVNode("div",cO,[a.createElementVNode("div",dO,[a.createVNode(lO,{color:i.color||""},null,8,["color"]),a.createElementVNode("div",hO,[a.createVNode(Pt,{id:i.id,title:i.name||"",level:5,"is-editable":!i.readonly&&i.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":f},null,8,["id","title","is-editable"]),s.value||r.value?(a.openBlock(),a.createElementBlock("span",uO," ("+a.toDisplayString(c.value)+"/"+a.toDisplayString(s.value)+a.toDisplayString(l.value)+")",1)):a.createCommentVNode("",!0)])]),!i.readonly&&i.isEditable?(a.openBlock(),a.createElementBlock("div",pO,[a.createVNode(Ee,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:i.active?m.$t("archive"):m.$t("unarchive"),onClick:g[0]||(g[0]=a.withModifiers(()=>i.active?m.$emit("archiveMilestone",{id:i.id}):m.$emit("unarchiveMilestone",{id:i.id}),["stop"]))},null,8,["label"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",fO,[a.createElementVNode("div",mO,[d.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",gO,[a.createVNode(Ze,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",bO,a.toDisplayString(h.value)+" / "+a.toDisplayString(d.value),1)]),a.createVNode(pp,{percentages:p.value,color:i.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):a.createCommentVNode("",!0),m.$slots.secondary?(a.openBlock(),a.createElementBlock("div",vO,[a.renderSlot(m.$slots,"secondary")])):a.createCommentVNode("",!0)])])]),footer:a.withCtx(()=>[a.createElementVNode("div",yO,[i.important?(a.openBlock(),a.createBlock(Ze,{key:0,name:"FlagRounded",class:a.normalizeClass(i.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):a.createCommentVNode("",!0),i.deadline?(a.openBlock(),a.createElementBlock("label",wO,[a.createElementVNode("span",CO,a.toDisplayString(a.unref(Tu)(i.deadline)),1)])):a.createCommentVNode("",!0),i.assignee?(a.openBlock(),a.createElementBlock("div",kO,[a.createVNode(xo,{"user-name":a.unref(z2)(i.assignee),"avatar-url":i.assignee.avatarUrl,color:i.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):a.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}}),YR="",xO={class:"ao-mapping-card-project-phase__header"},EO={class:"ao-card-project-item__title-line"},TO={key:0,class:"ao-card-project-item-phase__estimation"},MO={class:"ao-mapping-card-project-phase__footer"},SO={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},AO={class:"ao-mapping-card-project-phase__subitem"},BO={class:"ao-mapping-card-project-phase__subitem"},NO={key:0,class:"ao-mapping-card-project-phase__secondary"},LO={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},IO=a.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(i,{emit:e}){const t=i,o=e,s=b=>{o("update:title",b)},r=a.computed(()=>{var b;return((b=t.milestones)==null?void 0:b.reduce((y,C)=>{var k;return y+((k=C.activities)==null?void 0:k.reduce((_,S)=>_+(S.estimation||0),0))},0))||0}),l=a.computed(()=>!t.milestones||!t.timeTrackingData?0:t.milestones.reduce((b,y)=>{var C;return b+(((C=y.activities)==null?void 0:C.reduce((k,_)=>{var T;const S=(T=t.timeTrackingData)==null?void 0:T[_.id];return k+((S==null?void 0:S.timeSpent)||0)},0))||0)},0)),c=a.computed(()=>t.estimationUnit==="days"?"d":"h"),d=a.computed(()=>Eu(l.value,t.estimationUnit)),h=a.computed(()=>{var b;return(b=t.milestones)==null?void 0:b.length}),p=a.computed(()=>{var b;return(b=t.milestones)==null?void 0:b.filter(y=>y.status===Gl.done).length}),f=a.computed(()=>(p.value||0)/(h.value||1)),m=a.computed({get:()=>t.deadline??"",set:b=>o("update:deadline",b!=null&&b.length?b:null)}),g=a.computed({get:()=>t.color,set:b=>{o("updatePhase",{id:t.id,color:b})}}),v=(b,y)=>{const C=b.target;C.closest("button")||C.closest("input")||C.closest(".ao-title")||y()};return(b,y)=>(a.openBlock(),a.createBlock(fp,{color:g.value,"onUpdate:color":y[2]||(y[2]=C=>g.value=C)},{clickable:a.withCtx(({openPicker:C,bgColor:k})=>[a.createVNode(up,{class:"ao-mapping-card-project-phase","is-clickable":i.isEditable,color:k,withLeftBorder:!0,onClick:_=>v(_,C)},a.createSlots({default:a.withCtx(()=>[a.createElementVNode("div",EO,[a.createVNode(Pt,{id:i.id,class:"ao-mapping-card-project-phase__title",title:i.name||"",level:4,"is-editable":i.isEditable,"onUpdate:title":s},null,8,["id","title","is-editable"]),r.value||l.value?(a.openBlock(),a.createElementBlock("span",TO," ("+a.toDisplayString(d.value)+"/"+a.toDisplayString(r.value)+a.toDisplayString(c.value)+")",1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",MO,[h.value?(a.openBlock(),a.createElementBlock("div",SO,[a.createElementVNode("div",AO,[a.createVNode(Ze,{name:"MountainFlagOutlineRounded",size:"sm"}),a.createElementVNode("span",BO,a.toDisplayString(p.value)+" / "+a.toDisplayString(h.value),1)]),a.createVNode(pp,{percentages:f.value,class:"ao-mapping-card-project-phase__progress",color:g.value},null,8,["percentages","color"]),b.$slots.secondary?(a.openBlock(),a.createElementBlock("div",NO,[a.renderSlot(b.$slots,"secondary")])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["ao-mapping-card-project-phase__footer-row",m.value?"":"ao-mapping-card-project-phase__no_deadline"])},[i.isEditable?a.withDirectives((a.openBlock(),a.createElementBlock("input",{key:0,"onUpdate:modelValue":y[1]||(y[1]=_=>m.value=_),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[a.vModelText,m.value,void 0,{lazy:!0}]]):a.createCommentVNode("",!0),a.createElementVNode("span",LO,a.toDisplayString(a.unref(Tu)(i.deadline)),1)],2)])]),_:2},[i.isEditable?{name:"header",fn:a.withCtx(()=>[a.createElementVNode("div",xO,[a.createVNode(Ee,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:i.active?b.$t("archive"):b.$t("unarchive"),onClick:y[0]||(y[0]=a.withModifiers(()=>i.active?b.$emit("archivePhase",{id:i.id}):b.$emit("unarchivePhase",{id:i.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),KR="",$O={class:"ao-project-phase"},OO={key:0,class:"ao-project-phase__drag ao-card__drag"},DO={key:1,class:"ao-project-phase__col-phase"},VO={key:2,class:"ao-mapping-project-phase__col-phase"},RO={key:0,class:"ao-project-phase__col-milestones"},zO={class:"ao-project-phase__milestones-list-footer"},PO=a.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e;a.watch(()=>o.phase.milestones,(_,S)=>{Bo(_,S)});const r=_=>{s("updatePhase",{id:o.phase.id,name:_})},l=_=>{s("updatePhase",{id:o.phase.id,deadline:_})},c=_=>{s("updatePhase",_)},d=a.computed(()=>o.phase.milestones.map(_=>v6(_,o.closedStatus))),h=_=>{const{name:S,rank:T}=pn(d.value??[],"milestone",t);s("addMilestone",{name:S,rank:T,phaseId:_})},p=_=>{s("updateMilestone",_)},f=_=>{s("archiveMilestone",_)},m=_=>{s("unarchiveMilestone",_)},g=_=>{s("archivePhase",_)},v=_=>{s("unarchivePhase",_)},b=_=>{"added"in _?s("updateMilestone",{id:_.added.element.id,phaseId:o.phase.id,rank:Ar(d.value,_.added.newIndex)}):"removed"in _||"moved"in _&&s("updateMilestone",{id:_.moved.element.id,rank:Ar(d.value,_.moved.newIndex)})},y=at.useRoute(),C=a.computed(()=>y.path.includes("/mapping")),k=a.computed(()=>{var _;return o.phase.id!==((_=y.params)==null?void 0:_.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:w6(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(_,S)=>(a.openBlock(),a.createElementBlock("li",$O,[a.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:a.normalizeStyle(k.value)},[i.isEditable?(a.openBlock(),a.createElementBlock("div",OO,[a.createVNode(Ze,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):a.createCommentVNode("",!0),C.value?(a.openBlock(),a.createElementBlock("div",VO,[a.createVNode(IO,{id:i.phase.id,milestones:d.value,name:i.phase.name,deadline:i.phase.deadline,active:i.phase.active,"is-editable":i.isEditable,color:i.phase.color,"estimation-unit":i.estimationUnit,"onUpdate:deadline":l,"onUpdate:title":r,onArchivePhase:g,onUnarchivePhase:v,onUpdatePhase:c},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(a.openBlock(),a.createElementBlock("div",DO,[a.createVNode(aO,{id:i.phase.id,milestones:d.value,name:i.phase.name,deadline:i.phase.deadline,active:i.phase.active,"is-editable":i.isEditable,color:i.phase.color,"time-tracking-data":i.timeTrackingData,"estimation-unit":i.estimationUnit,"onUpdate:deadline":l,"onUpdate:title":r,onArchivePhase:g,onUnarchivePhase:v,onUpdatePhase:c},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),C.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",RO,[a.createElementVNode("div",{class:"ao-project-phase__milestones",style:a.normalizeStyle(k.value)},[a.createVNode(a.unref(Li),a.mergeProps({class:"ao-project-phase__milestones-list",list:d.value,disabled:i.readonly||!i.isEditable,"item-key":"id",group:"kanban"},_.$attrs,{onChange:b}),{item:a.withCtx(({element:T})=>{var M;return[a.createVNode(_O,{id:T.id,name:T.name,color:T.color,"phase-color":i.phase.color,activities:T.activities,deadline:T.deadline,active:T.active,"is-editable":!i.readonly&&i.isEditable,"is-draggable":!i.readonly&&i.isEditable,"closed-status":i.closedStatus,"is-selected":T.id===((M=_.$route.params)==null?void 0:M.milestoneId),assignee:T.assignee,important:T.important,readonly:i.readonly,"time-tracking-data":i.timeTrackingData,"estimation-unit":i.estimationUnit,class:a.normalizeClass(["ao-project-phase__milestone"]),onClick:N=>!i.readonly&&_.$router.push({name:a.unref(xt).milestone,params:{phaseId:i.phase.id,milestoneId:T.id}}),onUpdateMilestone:p,onArchiveMilestone:f,onUnarchiveMilestone:m},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),a.createElementVNode("div",zO,[i.isEditable?(a.openBlock(),a.createBlock(Qo,{key:0,label:_.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:S[0]||(S[0]=()=>h(i.phase.id))},null,8,["label"])):a.createCommentVNode("",!0)])],4)]))]))}}),XR="",HO={class:"ao-project__phases"},jO={key:0,class:"ao-project-phase__phases-list-footer"},FO={class:"ao-project-phase__col-phase"},o0=a.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(i,{emit:e}){const t=i,o=e;a.watch(()=>t.phases,(g,v)=>{Bo(g,v)});const s=g=>{o("addMilestone",g)},r=g=>{o("updateMilestone",g)},l=g=>{o("archiveMilestone",g)},c=g=>{o("unarchiveMilestone",g)},d=g=>{o("archivePhase",g)},h=g=>{o("unarchivePhase",g)},p=g=>{if(g.moved){const v=rc(g,t.phases??[]);o("updatePhase",{id:g.moved.element.id,rank:v})}},f=g=>{o("updatePhase",g)},m=g=>{o("addPhase",g)};return(g,v)=>(a.openBlock(),a.createElementBlock("div",HO,[a.createVNode(a.unref(Li),{class:"ao-project-phase__phases-list","model-value":i.phases,"item-key":"id",handle:".ao-card__drag",onChange:p},{item:a.withCtx(({element:b})=>[a.createVNode(PO,{phase:b,"is-editable":!i.readonly&&i.isEditable,"closed-status":i.closedStatus,users:i.users,readonly:i.readonly,"time-tracking-data":i.timeTrackingData,"estimation-unit":i.estimationUnit,onAddMilestone:s,onUpdateMilestone:r,onArchiveMilestone:l,onUnarchiveMilestone:c,onUpdatePhase:f,onArchivePhase:d,onUnarchivePhase:h},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),i.isEditable?(a.openBlock(),a.createElementBlock("div",jO,[v[0]||(v[0]=a.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),a.createElementVNode("div",FO,[a.createVNode(Qo,{label:g.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:m},null,8,["label"])]),v[1]||(v[1]=a.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):a.createCommentVNode("",!0)]))}}),QR="",WO={class:"ao-add-template-modal__form-body"},UO={class:"field__row"},qO={class:"ao-add-template-modal__form-footer"},Fv=a.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>t.templates.map(d=>({value:d.id,label:d.name}))),r=a.ref(null),l=d=>{r.value=d},c=()=>{r.value&&o("apply",r.value,t.projectId)};return(d,h)=>(a.openBlock(),a.createBlock(Mu,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(Pt,{title:d.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:a.withModifiers(c,["prevent"])},[a.createElementVNode("p",null,a.toDisplayString(d.$t("project.template.apply.notice")),1),a.createElementVNode("div",WO,[a.createElementVNode("div",UO,[a.createVNode(ci,{value:r.value,options:s.value,detached:!0,onChange:l},null,8,["value","options"])])]),a.createElementVNode("footer",qO,[a.createVNode(Ee,{label:d.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:c},null,8,["label"])])],32)]),_:1}))}}),JR="",ZO={class:"ao-save-template-modal__form-body"},GO={class:"field__row"},YO={class:"ao-field ao-field--inline"},KO={class:"ao-field__label"},XO={class:"ao-save-template-modal__phases"},QO={class:"ao-field__label"},JO={class:"ao-save-template-modal__phases-list"},eD=["value"],tD={class:"ao-save-template-modal__form-footer"},Wv=a.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(i,{emit:e}){const t=i,o=e,s=a.ref(""),r=a.ref([]);a.onMounted(()=>{r.value=t.phases.map(c=>c.id)});const l=()=>{s.value&&o("save",s.value,r.value)};return(c,d)=>(a.openBlock(),a.createBlock(Mu,{size:"sm"},{header:a.withCtx(()=>[a.createVNode(Pt,{title:c.$t("project.template.save.title"),level:3},null,8,["title"])]),default:a.withCtx(()=>[a.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:a.withModifiers(l,["prevent"])},[a.createElementVNode("div",ZO,[a.createElementVNode("div",GO,[a.createElementVNode("label",YO,[a.createElementVNode("span",KO,a.toDisplayString(c.$t("project.template.name.label"))+": ",1),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=h=>s.value=h),type:"text"},null,512),[[a.vModelText,s.value]])])]),a.createElementVNode("div",XO,[a.createElementVNode("div",QO,a.toDisplayString(c.$t("project.template.phases.label")),1),a.createElementVNode("div",JO,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.phases,h=>(a.openBlock(),a.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:h.id},[a.withDirectives(a.createElementVNode("input",{type:"checkbox",value:h.id,"onUpdate:modelValue":d[1]||(d[1]=p=>r.value=p)},null,8,eD),[[a.vModelCheckbox,r.value]]),a.createElementVNode("span",null,a.toDisplayString(h.name),1)]))),128))])])]),a.createElementVNode("footer",tD,[a.createVNode(Ee,{label:c.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}}),ez="",iD={class:"ao-project"},oD={class:"ao-project__body"},sD=a.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e,r=a.computed(()=>o.phases.flatMap(V=>V.milestones)),l=()=>{const{name:V,rank:Z}=pn(o.phases,"phase",t);s("addPhase",{name:V,rank:Z,projectId:o.project.id})},c=V=>{s("updatePhase",V)},d=V=>{s("archivePhase",V)},h=V=>{s("unarchivePhase",V)},p=V=>{s("copyPhaseToTemplate",V)},f=V=>{s("addMilestone",V)},m=V=>{s("updateMilestone",V)},g=V=>{s("archiveMilestone",V)},v=V=>{s("unarchiveMilestone",V)},b=V=>{s("addActivity",V)},y=V=>{s("update:activity",V)},C=V=>{s("archiveActivity",V)},k=V=>{s("unarchiveActivity",V)},_=V=>{s("addSubtask",V)},S=V=>{s("updateSubtask",V)},T=V=>{s("deleteSubtask",V)},M=a.computed(()=>r.value.flatMap(V=>V.activities)),N=V=>{s("addFiles",V)},A=V=>{s("removeFile",V)},B=V=>{s("addComment",V)},$=V=>{s("updateComment",V)},L=V=>{s("removeComment",V)},O=a.ref(!1),D=a.ref(!1),I=(V,Z)=>{s("applyTemplate",{templateId:V,projectId:Z}),O.value=!1},R=(V,Z)=>{var ne;const j=(ne=o.templates)==null?void 0:ne.at(-1),Y=j?Ht.LexoRank.parse(j.rank).genNext():Ht.LexoRank.middle();s("saveTemplate",{templateName:V,rank:Y.format(),phaseIds:Z}),D.value=!1},F=at.useRouter(),q=a.ref("overview"),H=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(q,V=>{V==="feed"?(F.push({name:xt.feed}),console.log("Navigating to feed...")):V==="overview"?(F.push({name:xt.project}),console.log("Navigating to feed...")):V==="mapping"&&(F.push({name:xt.mapping}),console.log("Navigating to feed..."))}),(V,Z)=>{var Y;const j=a.resolveComponent("RouterView");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-overview"},V.$attrs),[a.createElementVNode("div",iD,[a.createVNode(ac,null,{primary:a.withCtx(()=>[a.createVNode(wc,{tabs:H,modelValue:q.value,"onUpdate:modelValue":Z[0]||(Z[0]=ne=>q.value=ne)},null,8,["modelValue"]),a.createVNode(Ee,{class:"ao-feed__show-archived",size:"sm","icon-name":i.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":i.showsArchived,onClick:Z[1]||(Z[1]=ne=>V.$emit("update:showsArchived",!i.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[i.isEditable===!0?(a.openBlock(),a.createBlock(Ee,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:V.$t("project.template.save.label"),onClick:Z[2]||(Z[2]=ne=>D.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),i.isEditable===!0?(a.openBlock(),a.createBlock(Ee,{key:1,class:"ao-project-overview__add-template",color:"primary",label:V.$t("project.template.apply.label"),onClick:Z[3]||(Z[3]=ne=>O.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",oD,[a.createVNode(o0,{phases:i.phases,"closed-status":i.closedStatus,"is-editable":i.isEditable===!0,users:i.users,"time-tracking-data":i.timeTrackingData,"estimation-unit":(Y=i.project)==null?void 0:Y.estimationUnit,onAddMilestone:f,onUpdateMilestone:m,onArchiveMilestone:g,onUnarchiveMilestone:v,onAddPhase:l,onUpdatePhase:c,onArchivePhase:d,onUnarchivePhase:h,onCopyPhaseToTemplate:p},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),a.createVNode(j,{class:"ao-project__sidebar",phases:i.phases,"project-id":i.project.id,"project-name":i.project.name,users:i.users,"is-editable":i.isEditable===!0,"closed-status":i.closedStatus,"time-tracking-data":i.timeTrackingData,onClose:Z[4]||(Z[4]=ne=>V.$router.push({name:a.unref(xt).project})),onUpdateMilestone:m,onAddActivity:b,onUpdateActivity:y,onArchiveActivity:C,onUnarchiveActivity:k},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(j,{name:"modal",activities:M.value,"is-task-checkable":i.isTaskCheckable,statuses:i.statuses,"activity-types":i.activityTypes,phases:i.phases,project:i.project,users:i.users,"user-id":i.userId,"is-editable":i.isEditable,"attachment-enabled":i.attachmentEnabled,"time-tracking-data":i.timeTrackingData,"onUpdate:activity":y,onAddSubtask:_,onUpdateSubtask:S,onDeleteSubtask:T,onAddFiles:N,onRemoveFile:A,onAddComment:B,onUpdateComment:$,onRemoveComment:L},{default:a.withCtx(({Component:ne})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(ne),null,{default:a.withCtx(K=>[a.renderSlot(V.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(K)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[D.value?(a.openBlock(),a.createBlock(Wv,{key:0,phases:i.phases,onClose:Z[5]||(Z[5]=ne=>D.value=!1),onSave:R},null,8,["phases"])):a.createCommentVNode("",!0),O.value?(a.openBlock(),a.createBlock(Fv,{key:1,"project-id":i.project.id,templates:i.templates,onClose:Z[6]||(Z[6]=ne=>O.value=!1),onApply:I},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),tz="",nD={class:"ao-card-feed__header"},rD={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},aD={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},lD={class:"ao-card-feed__body"},cD={key:0,class:"ao-card-feed__breadcrumbs"},dD={class:a.normalizeClass(["ao-card-feed__title-group"])},hD={class:"ao-card-feed__title-line"},uD={key:0,class:"ao-card-feed__slug"},pD={key:1,class:"ao-card-feed__deadline"},fD={class:"ao-card-feed__footer"},mD={class:"ao-card-feed__footer-row"},gD={class:"ao-assignees"},bD={key:0,class:"ao-assignee"},vD={key:0,class:"ao-card-feed__subitems"},yD={key:0,class:"ao-card-feed__subitem"},wD={class:"ao-card-feed__subitem"},CD={key:1,class:"ao-card-feed__subitem"},kD={class:"ao-card-feed__subitem"},_D={class:"ao-card-feed__timer-wrapper"},xD={class:"ao-card-feed__footer-row"},ED={key:0,class:"ao-card-feed__progress-wrapper"},TD={class:"ao-card-feed__subitem"},MD={class:"ao-card-feed__subitem"},s0=a.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>t.tagType==="milestone"?t.milestoneName:t.projectName),r=a.computed(()=>t.tagType==="milestone"?t.milestoneColor:t.projectColor),l=b=>{o("updateActivity",{id:t.id,name:b})},c=a.computed(()=>t.tagType==="milestone"&&t.phaseName?`${t.phaseName}`:t.phaseName&&t.milestoneName?`${t.phaseName} / ${t.milestoneName}`:""),d=a.computed(()=>t.assignee?[t.assignee]:[]),h=a.computed(()=>Tu(t.deadline)),p=b=>{o("removeAssignee",b)},f=()=>{o("startTimer",{activityId:t.id,name:t.name,project:t.projectName,projectId:t.projectId,slug:t.slug})},m=a.computed(()=>{var b;return(b=t.tasks)==null?void 0:b.length}),g=a.computed(()=>{var b;return(b=t.tasks)==null?void 0:b.filter(y=>y.isDone).length}),v=a.computed(()=>(g.value||0)/(m.value||1));return(b,y)=>(a.openBlock(),a.createBlock(up,{class:a.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":i.isClosed}]),"is-clickable":!0},{header:a.withCtx(()=>[a.createElementVNode("div",nD,[s.value?(a.openBlock(),a.createBlock(Zl,{key:0,label:s.value,class:"ao-card-feed__project",variant:"solid",color:i.projectColor?void 0:"primary","raw-color":r.value},null,8,["label","color","raw-color"])):a.createCommentVNode("",!0),i.isPrivate||i.important||i.isClosed?(a.openBlock(),a.createElementBlock("div",rD,[i.isPrivate?(a.openBlock(),a.createBlock(Ze,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):a.createCommentVNode("",!0),i.important?(a.openBlock(),a.createBlock(Ze,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):a.createCommentVNode("",!0),i.isClosed?(a.openBlock(),a.createBlock(Ze,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),b.$slots.secondary?(a.openBlock(),a.createElementBlock("div",aD,[a.renderSlot(b.$slots,"secondary")])):a.createCommentVNode("",!0)])]),default:a.withCtx(()=>[a.createElementVNode("div",lD,[c.value?(a.openBlock(),a.createElementBlock("span",cD,a.toDisplayString(c.value),1)):a.createCommentVNode("",!0),a.createElementVNode("div",dD,[a.createElementVNode("div",hD,[i.slug?(a.openBlock(),a.createElementBlock("span",uD,a.toDisplayString(i.slug)+": ",1)):a.createCommentVNode("",!0),a.createVNode(Pt,{id:i.id,title:i.name,level:5,"is-editable":i.isEditable,"onUpdate:title":l,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),i.deadline?(a.openBlock(),a.createElementBlock("span",pD,a.toDisplayString(h.value),1)):a.createCommentVNode("",!0)])]),footer:a.withCtx(()=>[a.createElementVNode("div",fD,[a.createElementVNode("div",mD,[a.createElementVNode("ul",gD,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.value,C=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:C.id},[C?(a.openBlock(),a.createElementBlock("li",bD,[a.createVNode(xo,{"user-name":a.unref(z2)(C),"avatar-url":C.avatarUrl,"is-closable":!0,onClose:()=>p(C.id)},null,8,["user-name","avatar-url","onClose"])])):a.createCommentVNode("",!0)],64))),128))]),i.comments||i.attachments?(a.openBlock(),a.createElementBlock("ul",vD,[i.comments?(a.openBlock(),a.createElementBlock("li",yD,[a.createVNode(Ze,{name:"ChatOutline",size:"sm"}),a.createElementVNode("span",wD,a.toDisplayString(i.comments),1)])):a.createCommentVNode("",!0),i.attachments?(a.openBlock(),a.createElementBlock("li",CD,[a.createVNode(Ze,{name:"AttachFileRounded",size:"sm"}),a.createElementVNode("span",kD,a.toDisplayString(i.attachments),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",_D,[a.createVNode(Ze,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:a.withModifiers(f,["stop"])})])]),a.createElementVNode("div",xD,[i.tasks&&i.tasks.length?(a.openBlock(),a.createElementBlock("div",ED,[a.createElementVNode("div",TD,[a.createVNode(Ze,{name:"SelectCheckBox",size:"sm"}),a.createElementVNode("span",MD,a.toDisplayString(g.value)+" / "+a.toDisplayString(m.value),1)]),a.createVNode(pp,{percentages:v.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):a.createCommentVNode("",!0)])])]),_:3},8,["class"]))}}),iz="",SD={class:"ao-project-milestone"},AD={class:"ao-project-milestone__header"},BD={class:"ao-project-milestone__header_line"},ND={class:"ao-project-milestone__header_line"},LD={class:"ao-project-milestone__title"},ID={key:0,class:"ao-fieldset ao-milestone__fieldset"},$D={class:"ao-field__row ao-milestone__field-row"},OD={class:"ao-field ao-field--inline"},DD={class:"ao-field__row ao-milestone__field-row"},VD={class:"ao-field ao-milestone__field-multiselect"},RD=["onClick"],zD={class:"ao-project-milestone__body"},PD={key:0,class:"ao-project-milestone__footer"},Uv=a.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e,r=T=>{var M;s("startTimer",T),(M=window.parent)==null||M.postMessage({type:"startTimer",data:T},"*")},l=a.computed(()=>{var T;return(T=o.phases)==null?void 0:T.find(M=>M.id===o.phaseId)}),c=a.computed(()=>{var T;return(T=o.phases)==null?void 0:T.flatMap(M=>M.milestones)}),d=a.computed(()=>{var T;return(T=c.value)==null?void 0:T.find(M=>M.id===o.milestoneId)}),h=a.computed(()=>{var T;return(T=d.value)==null?void 0:T.activities});a.watch(h,(T,M)=>{Bo(T,M)});const p=T=>{s("close",T)},f=()=>{const{name:T,rank:M}=pn(h.value??[],"activity",t);s("addActivity",{milestoneId:o.milestoneId,name:T,rank:M,projectId:o.projectId})},m=T=>{s("updateActivity",T)},g=T=>{h.value&&"moved"in T&&s("updateActivity",{id:T.moved.element.id,rank:Ar(h.value,T.moved.newIndex)})},v=a.computed({get:()=>{var T;return(T=d.value)==null?void 0:T.color},set:T=>{d.value&&s("updateMilestone",{id:d.value.id,color:T})}}),b=a.computed({get:()=>{var T;return((T=d==null?void 0:d.value)==null?void 0:T.deadline)??""},set:T=>{d.value&&s("updateMilestone",{id:d.value.id,deadline:T!=null&&T.length?T:null})}}),y=T=>o.closedStatus?Um(T,o.closedStatus):!1,C=a.computed(()=>{var T;return((T=o.users)==null?void 0:T.map(M=>({label:`${M.firstName} ${M.lastName}`,value:M.id,avatar:M.avatarUrl})))||[]}),k=a.computed({get(){var T,M;return(M=(T=d.value)==null?void 0:T.assignee)!=null&&M.id?[d.value.assignee.id]:[]},set(T){s("updateMilestone",{id:o.milestoneId,assigneeId:T[0]??null})}}),_=a.computed({get(){var T;return((T=d.value)==null?void 0:T.important)??!1},set(T){s("updateMilestone",{id:o.milestoneId,important:T})}}),S=(T,M)=>{const N=T.currentTarget;N instanceof HTMLElement&&M(N)};return(T,M)=>{var N;return a.openBlock(),a.createElementBlock("div",SD,[a.createElementVNode("header",AD,[a.createElementVNode("div",BD,[a.createVNode(Ee,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:p})]),a.createElementVNode("div",ND,[a.createElementVNode("div",LD,[a.createVNode(Pt,{title:((N=d.value)==null?void 0:N.name)||i.milestoneId,level:5},null,8,["title"]),a.createVNode(Pv,{modelValue:_.value,"onUpdate:modelValue":M[0]||(M[0]=A=>_.value=A),modelModifiers:{lazy:!0},disabled:!i.isEditable,class:"ao-milestone__important",color:"danger",label:T.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),d.value?(a.openBlock(),a.createElementBlock("div",ID,[a.createElementVNode("div",$D,[a.createElementVNode("label",OD,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":M[1]||(M[1]=A=>b.value=A),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[a.vModelText,b.value,void 0,{lazy:!0}]])])]),a.createElementVNode("div",DD,[a.createElementVNode("label",VD,[a.createVNode(ci,{modelValue:k.value,"onUpdate:modelValue":M[2]||(M[2]=A=>k.value=A),options:C.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:T.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!i.isEditable,caret:i.isEditable},{tag:a.withCtx(({option:A,handleTagRemove:B})=>[a.createVNode(xo,{"user-name":A.label,"avatar-url":A.avatar,"is-closable":!0,onClose:$=>B(A,$)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),a.createVNode(fp,{color:v.value,"onUpdate:color":M[3]||(M[3]=A=>v.value=A)},{clickable:a.withCtx(({openPicker:A,bgColor:B})=>[a.createElementVNode("button",{style:a.normalizeStyle({background:B}),class:"color-button",onClick:$=>S($,A)},null,12,RD)]),_:1},8,["color"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",zD,[a.createVNode(a.unref(Li),a.mergeProps({class:"ao-project-milestone__activities",list:h.value,disabled:!i.isEditable,"item-key":"id",group:"kanban"},T.$attrs,{onChange:g}),{item:a.withCtx(({element:A})=>{var B,$,L,O,D;return[a.createVNode(s0,{id:A.id,name:A.name||A.id,"project-id":i.projectId,"phase-name":(B=l.value)==null?void 0:B.name,"milestone-name":($=d.value)==null?void 0:$.name,"milestone-color":(L=d.value)==null?void 0:L.color,deadline:A.deadline,important:A.important,users:i.users,assignee:A.assignee,slug:A.slug,comments:(O=A.comments)==null?void 0:O.length,attachments:(D=A.attachments)==null?void 0:D.length,tasks:A.tasks,"is-editable":i.isEditable,"is-private":A.private,"is-closed":y(A),onClick:I=>T.$router.push({name:a.unref(xt).activity,params:{milestoneId:i.milestoneId,activityId:A.id}}),onUpdateActivity:m,onRemoveAssignee:()=>m({id:A.id,assigneeId:null}),onStartTimer:r},a.createSlots({_:2},[i.isEditable?{name:"secondary",fn:a.withCtx(()=>[i.isEditable&&A.active?(a.openBlock(),a.createBlock(Ee,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:T.$t("archive"),onClick:a.withModifiers(()=>T.$emit("archiveActivity",{id:A.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),i.isEditable&&!A.active?(a.openBlock(),a.createBlock(Ee,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:T.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>T.$emit("unarchiveActivity",{id:A.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),i.isEditable?(a.openBlock(),a.createElementBlock("div",PD,[a.createVNode(Qo,{"icon-name":"Add",label:T.$t("project.activity.add"),onClick:f},null,8,["label"])])):a.createCommentVNode("",!0)])])}}}),oz="",HD=a.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>{var C;return(C=t.phases)==null?void 0:C.find(k=>k.id===t.phaseId)}),r=a.computed(()=>{var C;return(C=t.phases)==null?void 0:C.flatMap(k=>k.milestones)}),l=a.computed(()=>{var C;return(C=r.value)==null?void 0:C.find(k=>k.id===t.milestoneId)}),c=a.computed(()=>{var C;return(C=t.activities)==null?void 0:C.find(k=>k.id===t.activityId)}),d=C=>{o("update:activity",C)},h=C=>{o("addSubtask",C)},p=C=>{o("updateSubtask",C)},f=C=>{o("deleteSubtask",C)},m=C=>{o("addFiles",C)},g=C=>{o("removeFile",C)},v=C=>{o("addComment",C)},b=C=>{o("updateComment",C)},y=C=>{o("removeComment",C)};return(C,k)=>{var _,S;return c.value?(a.openBlock(),a.createBlock(Zg,{key:0,activity:c.value,"activity-types":i.activityTypes,"milestone-id":i.milestoneId,"template-activities":i.activities,"is-template":!1,users:i.users,"user-id":i.userId,"is-task-checkable":i.isTaskCheckable,statuses:i.statuses,breadcrumbs:`${(_=s.value)==null?void 0:_.name} / ${(S=l.value)==null?void 0:S.name}`,"is-editable":i.isEditable,"attachment-enabled":i.attachmentEnabled,projects:[i.project],"time-tracking-data":i.timeTrackingData,onClose:C.$router.back,"onUpdate:activity":d,onAddSubtask:h,onUpdateSubtask:p,onDeleteSubtask:f,onAddFiles:m,onRemoveFile:g,onAddComment:v,onUpdateComment:b,onRemoveComment:y},{default:a.withCtx(T=>[a.renderSlot(C.$slots,"default",a.normalizeProps(a.guardReactiveProps(T)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):a.createCommentVNode("",!0)}}}),jD={class:"ao-col-header"},FD=a.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("header",jD,[a.createVNode(Pt,{title:i.title,class:"ao-col-header__title",level:4},null,8,["title"]),i.items?(a.openBlock(),a.createBlock(Zl,{key:0,label:i.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):a.createCommentVNode("",!0)]))}}),sz="";function WD(i){return a.getCurrentScope()?(a.onScopeDispose(i),!0):!1}function mp(i){return typeof i=="function"?i():a.unref(i)}const UD=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qD=i=>i!=null,Cc=()=>{};function ZD(i,e){function t(...o){return new Promise((s,r)=>{Promise.resolve(i(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(s).catch(r)})}return t}function GD(i,e={}){let t,o,s=Cc;const r=c=>{clearTimeout(c),s(),s=Cc};return c=>{const d=mp(i),h=mp(e.maxWait);return t&&r(t),d<=0||h!==void 0&&h<=0?(o&&(r(o),o=null),Promise.resolve(c())):new Promise((p,f)=>{s=e.rejectOnCancel?f:p,h&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,p(c())},h)),t=setTimeout(()=>{o&&r(o),o=null,p(c())},d)})}}function YD(i,e=200,t={}){return ZD(GD(e,t),i)}function n0(i){var e;const t=mp(i);return(e=t==null?void 0:t.$el)!=null?e:t}const KD=UD?window:void 0;function XD(){const i=a.ref(!1),e=a.getCurrentInstance();return e&&a.onMounted(()=>{i.value=!0},e),i}function QD(i){const e=XD();return a.computed(()=>(e.value,!!i()))}function JD(i,e,t={}){const{root:o,rootMargin:s="0px",threshold:r=.1,window:l=KD,immediate:c=!0}=t,d=QD(()=>l&&"IntersectionObserver"in l),h=a.computed(()=>{const v=mp(i);return(Array.isArray(v)?v:[v]).map(n0).filter(qD)});let p=Cc;const f=a.ref(c),m=d.value?a.watch(()=>[h.value,n0(o),f.value],([v,b])=>{if(p(),!f.value||!v.length)return;const y=new IntersectionObserver(e,{root:n0(b),rootMargin:s,threshold:r});v.forEach(C=>C&&y.observe(C)),p=()=>{y.disconnect(),p=Cc}},{immediate:c,flush:"post"}):Cc,g=()=>{p(),m(),f.value=!1};return WD(g),{isSupported:d,isActive:f,pause(){p(),f.value=!1},resume(){f.value=!0},stop:g}}const eV={class:a.normalizeClass(["ao-list-kanban"])},tV={class:"ao-list-kanban__header"},iV={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},oV={key:1,class:"ao-list-kanban__end"},sV={key:0,class:"ao-list-kanban__no-more"},nV={key:1,class:"ao-list-kanban__divider"},rV={key:1,class:"ao-list-kanban__footer"},aV=a.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(i,{emit:e}){const t=i,o=e,s=a.ref(!1),r=a.ref(null);JD(r,([{isIntersecting:f}])=>{s.value=f}),a.watch(s,f=>{f&&t.hasMore&&!t.isLoading&&o("loadMore")});const l=f=>{var m;return t.isEditable===!0?!0:t.userId&&t.isEditable==="only-own"?t.userId===((m=f.assignee)==null?void 0:m.id):!1},c=f=>{o("selectActivity",f)},d=f=>{o("updateActivity",f)},h=f=>{"added"in f?o("updateActivity",{id:f.added.element.id,statusId:t.status.id,rank:Ar(t.list,f.added.newIndex)}):"removed"in f||"moved"in f&&o("updateActivity",{id:f.moved.element.id,rank:Ar(t.list,f.moved.newIndex)})},p=a.ref(!1);return(f,m)=>(a.openBlock(),a.createElementBlock("div",eV,[i.title||f.$slots.header?a.renderSlot(f.$slots,"header",{},()=>{var g;return[a.createElementVNode("div",tV,[i.title?(a.openBlock(),a.createBlock(FD,{key:0,title:i.title,level:3,items:(g=i.list)==null?void 0:g.length},null,8,["title","items"])):a.createCommentVNode("",!0)])]},void 0,0):a.createCommentVNode("",!0),a.createVNode(a.unref(Li),a.mergeProps({class:["ao-list-kanban__list",p.value?"ao-list-kanban__transition":void 0],list:i.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},f.$attrs,{draggable:".ao-list-draggable",disabled:!i.isEditable,onChange:h,onStart:m[1]||(m[1]=g=>p.value=!0),onEnd:m[2]||(m[2]=g=>p.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:a.withCtx(({element:g})=>{var v,b,y,C,k,_,S,T,M,N;return[a.createVNode(s0,{class:a.normalizeClass(l(g)?"ao-list-draggable":""),id:g.id,name:g.name,"project-name":(v=g.project)==null?void 0:v.name,"project-id":(b=g.project)==null?void 0:b.id,"project-color":(y=g.project)==null?void 0:y.color,"phase-name":(k=(C=g.milestone)==null?void 0:C.phase)==null?void 0:k.name,"milestone-name":(_=g.milestone)==null?void 0:_.name,"milestone-color":(S=g.milestone)==null?void 0:S.color,deadline:g.deadline,rules:((T=g.rules)==null?void 0:T.length)||0,tasks:g.tasks,description:g.description,important:g.important,type:g.type,comments:(M=g.comments)==null?void 0:M.length,attachments:(N=g.attachments)==null?void 0:N.length,users:i.users,assignee:g.assignee,slug:g.slug,"is-editable":l(g),"is-private":g.private,"tag-type":i.tagType,onUpdateActivity:[A=>l(g)&&d(A),()=>l(g)&&d],onClick:()=>c(g.id),onRemoveAssignee:()=>l(g)&&d({id:g.id,assigneeId:null}),onStartTimer:m[0]||(m[0]=A=>f.$emit("startTimer",A))},{secondary:a.withCtx(()=>[l(g)&&g.active?(a.openBlock(),a.createBlock(Ee,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.archive"),onClick:a.withModifiers(()=>f.$emit("archiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0),l(g)&&!g.active?(a.openBlock(),a.createBlock(Ee,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.$t("feed.activity.unarchive"),onClick:a.withModifiers(()=>f.$emit("unarchiveActivity",{id:g.id}),["stop"])},null,8,["label","onClick"])):a.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:a.withCtx(()=>[i.isLoading?(a.openBlock(),a.createElementBlock("div",iV,[a.createVNode(Ze,{name:"Loading"})])):i.hasMore?(a.openBlock(),a.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:r,class:"ao-list-kanban__end"},null,512)):(a.openBlock(),a.createElementBlock("div",oV,[i.noMoreLabel?(a.openBlock(),a.createElementBlock("span",sV,a.toDisplayString(i.noMoreLabel),1)):i.isEditable?(a.openBlock(),a.createElementBlock("span",nV)):a.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),f.$slots.footer||i.footerLabel?(a.openBlock(),a.createElementBlock("div",rV,[a.renderSlot(f.$slots,"footer",{},()=>[i.isEditable?(a.openBlock(),a.createBlock(Qo,{key:0,"icon-name":"AddBoxOutlineRounded",label:i.footerLabel,onClick:m[3]||(m[3]=g=>f.$emit("add"))},null,8,["label"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0)]))}}),nz="",lV={class:"ao-field ao-search-field"},cV=["value","placeholder"],dV=a.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(i,{emit:e}){const t=i,o=e,s=async c=>{const h=c.target.value;o("update:modelValue",h,c)},r=YD(s,t.delay),l=c=>{o("clear",c)};return(c,d)=>(a.openBlock(),a.createElementBlock("div",lV,[a.createElementVNode("input",{value:i.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:i.placeholder,onInput:d[0]||(d[0]=(...h)=>a.unref(r)&&a.unref(r)(...h)),onKeypress:a.withKeys(s,["enter"])},null,40,cV),a.createVNode(Ze,{name:"SearchRounded",class:a.normalizeClass(`ao-search-field__icon ao-search-field__action ${i.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),a.createVNode(Ee,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:a.normalizeClass(`ao-search-field__button ao-search-field__action ${i.modelValue?"ao-search-field__action--visible":""}`),onClick:l},null,8,["class"])]))}}),rz="",hV={class:"ao-feed"},uV={class:"ao-feed__filters"},pV={class:"ao-feed__body"},qv=a.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e;function r(j,Y){s("toast",j,Y)}const l=a.toRef(o,"activities"),c=async(j,Y)=>{await s("selectActivity",j,Y)},d=a.ref({}),h=a.ref(!1),p=a.ref(!1),f=a.computed(()=>o.project?"milestone":"project");a.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([j,Y,ne,K],[J,W])=>{d.value=Object.fromEntries(j.map(ie=>[ie.id,Y.filter(z=>{var X;return((X=z.status)==null?void 0:X.id)===ie.id})])),ne&&!h.value?(c(ne,null),h.value=!0):K&&!h.value&&(c(null,K),h.value=!0),p.value&&Bo(Y,W)},{immediate:!0});const m=a.computed(()=>{var j;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((j=o.selectedActivity.milestone.phase)==null?void 0:j.name)??""} / ${o.selectedActivity.milestone.name??""}`}),g=j=>{var W,ie;const Y=(W=o.activities)==null?void 0:W.at(-1),ne=Y?Ht.LexoRank.parse(Y.rank).genNext():Ht.LexoRank.middle(),K=((ie=o.activities)==null?void 0:ie.length)??0,J={name:t("activity.defaultName",{idx:K+1}),rank:ne.format(),statusId:j.id};o.filters.assigneeId.length>0&&(J.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(J.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(J.typeId=o.filters.typeId[0]),p.value=!0,s("addActivity",J)},v=(j,Y)=>{p.value=!1,s("update:filters",{...o.filters,[j]:Y})},b=a.computed(()=>o.project?[o.project]:o.projects??[]),y=a.computed(()=>b.value.map(j=>({value:j.id,label:j.name}))),C=a.computed(()=>{var j;return(j=o.activityTypes)==null?void 0:j.map(Y=>({value:Y.id,label:Y.name}))}),k=a.computed(()=>o.users.map(j=>({value:j.id,label:`${j.firstName} ${j.lastName}`,avatar:j.avatarUrl}))),_=j=>{o.selectedActivity&&s("update:activity",j)},S=j=>{s("update:activity",j)},T=j=>{s("archiveActivity",j)},M=j=>{s("unarchiveActivity",j)},N=j=>{var Y;s("startTimer",j),(Y=window.parent)==null||Y.postMessage({type:"startTimer",data:j},"*")},A=j=>{p.value=!1,s("update:searchText",j)},B=j=>{p.value=!1,s("clear:searchText",j)},$=j=>{o.selectedActivity&&s("addSubtask",j)},L=j=>{o.selectedActivity&&s("updateSubtask",j)},O=j=>{o.selectedActivity&&s("deleteSubtask",j)},D=j=>{s("addFiles",j)},I=j=>{s("removeFile",j)},R=j=>{o.selectedActivity&&s("addComment",{...j,activityId:o.selectedActivity.id})},F=j=>{const{id:Y}=o.selectedActivity||{};Y&&s("updateComment",j)},q=j=>{const{id:Y}=o.selectedActivity||{};Y&&s("removeComment",j)},H=at.useRouter(),V=a.ref("feed"),Z=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(V,j=>{j==="feed"?(H.push({name:xt.feed}),console.log("Navigating to feed...")):j==="overview"?(H.push({name:xt.project}),console.log("Navigating to feed...")):j==="mapping"&&(H.push({name:xt.mapping}),console.log("Navigating to feed..."))}),(j,Y)=>{var ne;return a.openBlock(),a.createElementBlock("div",hV,[a.createVNode(ac,null,{primary:a.withCtx(()=>[a.createElementVNode("div",uV,[a.createVNode(wc,{tabs:Z,modelValue:V.value,"onUpdate:modelValue":Y[0]||(Y[0]=K=>V.value=K)},null,8,["modelValue"]),a.createVNode(dV,{"model-value":i.searchText,placeholder:j.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":A,onClear:B},null,8,["model-value","placeholder"]),o.project?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(ci,{key:0,"model-value":i.filters[a.unref(Qs).project],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:j.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":Y[1]||(Y[1]=K=>v(a.unref(Qs).project,K))},null,8,["model-value","options","placeholder"])),C.value?(a.openBlock(),a.createBlock(ci,{key:1,"model-value":i.filters[a.unref(Qs).type],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:j.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":Y[2]||(Y[2]=K=>v(a.unref(Qs).type,K))},null,8,["model-value","options","placeholder"])):a.createCommentVNode("",!0),k.value.length?(a.openBlock(),a.createBlock(ci,{key:2,"model-value":i.filters[a.unref(Qs).assignee],mode:"tags",options:k.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:j.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":Y[3]||(Y[3]=K=>v(a.unref(Qs).assignee,K))},{tag:a.withCtx(({option:K,handleTagRemove:J})=>[a.createVNode(xo,{"user-name":K.label,"avatar-url":K.avatar,"is-closable":!0,onClose:W=>J(K,W)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):a.createCommentVNode("",!0)]),a.createVNode(Ee,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":i.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:j.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":i.showsOnlyNonAssigned,onClick:Y[4]||(Y[4]=K=>j.$emit("update:showsOnlyNonAssigned",!i.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),a.createVNode(Ee,{class:"ao-feed__only-important",size:"sm","icon-name":i.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:j.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":i.showsOnlyImportant,onClick:Y[5]||(Y[5]=K=>j.$emit("update:showsOnlyImportant",!i.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),a.createVNode(Ee,{class:"ao-feed__show-archived",size:"sm","icon-name":i.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:j.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":i.showsArchivedActivities,onClick:Y[6]||(Y[6]=K=>j.$emit("update:showsArchivedActivities",!i.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),a.createElementVNode("div",pV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.statuses,K=>(a.openBlock(),a.createBlock(aV,{key:K.id,status:K,list:d.value[K.id],title:K.name,"footer-label":j.$t("feed.activity.add"),users:i.users,"user-id":i.userId,"is-editable":i.isEditable,tagType:f.value,onAdd:()=>g(K),onSelectActivity:c,onArchiveActivity:T,onUnarchiveActivity:M,onUpdateActivity:S,onStartTimer:N},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[i.selectedActivity?(a.openBlock(),a.createBlock(Zg,{key:0,activity:i.selectedActivity,"activity-types":i.activityTypes,"milestone-id":(ne=i.selectedActivity.milestone)==null?void 0:ne.id,"template-activities":l.value,users:i.users,"user-id":i.userId,"is-task-checkable":i.isTaskCheckable,statuses:i.statuses,breadcrumbs:m.value,"is-editable":i.isEditable,"attachment-enabled":i.attachmentEnabled,projects:b.value,"time-tracking-data":i.timeTrackingData,onClose:Y[7]||(Y[7]=()=>c(null,null)),"onUpdate:activity":_,onAddSubtask:$,onUpdateSubtask:L,onDeleteSubtask:O,onAddFiles:D,onRemoveFile:I,onAddComment:R,onUpdateComment:F,onRemoveComment:q,onToast:r},{default:a.withCtx(K=>[a.renderSlot(j.$slots,"activityDetailsBody",a.normalizeProps(a.guardReactiveProps(K)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):a.createCommentVNode("",!0)]))])}}}),az="",fV={class:"ao-project-mapping"},mV={class:"ao-project-mapping-mapping__body"},gV={class:"ao-project-mapping-mapping__phases"},bV={key:0,class:"ao-project-mapping-mapping__image-wrapper"},vV=["src","alt"],yV=a.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e,r=()=>{const{name:C,rank:k}=pn(o.phases,"phase",t);s("addPhase",{name:C,rank:k,projectId:o.project.id})},l=C=>{s("updatePhase",C)},c=C=>{s("archivePhase",C)},d=C=>{s("unarchivePhase",C)},h=C=>{s("copyPhaseToTemplate",C)},p=a.ref(!1),f=a.ref(!1),m=(C,k)=>{s("applyTemplate",{templateId:C,projectId:k}),p.value=!1},g=(C,k)=>{var T;const _=(T=o.templates)==null?void 0:T.at(-1),S=_?Ht.LexoRank.parse(_.rank).genNext():Ht.LexoRank.middle();s("saveTemplate",{templateName:C,rank:S.format(),phaseIds:k}),f.value=!1},v=at.useRouter(),b=a.ref("mapping"),y=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return a.watch(b,C=>{C==="feed"?(v.push({name:xt.feed}),console.log("Navigating to feed...")):C==="overview"?(v.push({name:xt.project}),console.log("Navigating to feed...")):C==="mapping"&&(v.push({name:xt.mapping}),console.log("Navigating to feed..."))}),(C,k)=>{var _;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",a.mergeProps({class:"ao-project-mapping-overview"},C.$attrs),[a.createElementVNode("div",fV,[a.createVNode(ac,null,{primary:a.withCtx(()=>[a.createVNode(wc,{modelValue:b.value,"onUpdate:modelValue":k[0]||(k[0]=S=>b.value=S),tabs:y},null,8,["modelValue"]),a.createVNode(Ee,{class:"ao-feed__show-archived",size:"sm","icon-name":i.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:C.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":i.showsArchived,onClick:k[1]||(k[1]=S=>C.$emit("update:showsArchived",!i.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:a.withCtx(()=>[i.isEditable===!0?(a.openBlock(),a.createBlock(Ee,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:C.$t("project.template.save.label"),onClick:k[2]||(k[2]=S=>f.value=!0)},null,8,["label"])):a.createCommentVNode("",!0),i.isEditable===!0?(a.openBlock(),a.createBlock(Ee,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:C.$t("project.template.apply.label"),onClick:k[3]||(k[3]=S=>p.value=!0)},null,8,["label"])):a.createCommentVNode("",!0)]),_:1}),a.createElementVNode("div",mV,[a.createElementVNode("div",gV,[a.createVNode(o0,{phases:i.phases,"closed-status":i.closedStatus,"is-editable":i.isEditable===!0,users:i.users,"estimation-unit":(_=i.project)==null?void 0:_.estimationUnit,onAddPhase:r,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:d,onCopyPhaseToTemplate:h},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),i.project.architectureImage?(a.openBlock(),a.createElementBlock("div",bV,[a.createElementVNode("img",{class:"architecture-image",src:i.project.architectureImage.url,alt:a.unref(t)("architectureImage.alt")},null,8,vV)])):a.createCommentVNode("",!0)])])],16),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[f.value?(a.openBlock(),a.createBlock(Wv,{key:0,phases:i.phases,onClose:k[4]||(k[4]=S=>f.value=!1),onSave:g},null,8,["phases"])):a.createCommentVNode("",!0),p.value?(a.openBlock(),a.createBlock(Fv,{key:1,"project-id":i.project.id,templates:i.templates,onClose:k[5]||(k[5]=S=>p.value=!1),onApply:m},null,8,["project-id","templates"])):a.createCommentVNode("",!0)]))],64)}}}),lz="",mn={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},wV=(i,e={})=>[{path:i,name:mn.TEMPLATES,redirect:{name:mn.TEMPLATES_LIST},...e,children:[{path:"",name:mn.TEMPLATES_LIST,component:Zv},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:mn.TEMPLATE_DETAILS,component:Hv,props:!0}]}],xt={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},CV=(i,e={})=>[{path:i,...e,redirect:{name:xt.project},children:[{path:"",name:xt.project,component:sD,props:!0,children:[{path:":phaseId/:milestoneId",name:xt.milestone,component:Uv,props:!0},{path:":phaseId/:milestoneId/:activityId",name:xt.activity,props:{default:!0,modal:!0},components:{default:Uv,modal:HD}}]},{path:"feed",name:xt.feed,component:qv,props:!0},{path:"mapping",name:xt.mapping,component:yV,props:!0}]}],kV={class:"ao-templates"},Zv=a.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(i,{emit:e}){const{t}=Ao(),o=i,s=e;a.watch(()=>o.templates,(h,p)=>{Bo(h,p)});const r=()=>{var g,v;const h=(g=o.templates)==null?void 0:g.at(-1),p=h?Ht.LexoRank.parse(h.rank).genNext():Ht.LexoRank.middle(),f=((v=o.templates)==null?void 0:v.length)??0,m={name:t("template.defaultName.template",{idx:f+1}),rank:p.format()};s("addTemplate",m)},l=(h,p)=>{s("updateItem",{itemType:dt.TEMPLATES,id:h,templateId:h,data:{name:p}})},c=(h,p)=>{s("removeItem",{itemType:dt.TEMPLATES,templateId:h,data:{id:h,...p?{name:p}:{}}})},d=h=>{if(h.moved){const p=rc(h,o.templates??[]);s("updateItem",{itemType:dt.TEMPLATES,id:h.moved.element.id,templateId:h.moved.element.id,data:{rank:p}})}};return(h,p)=>(a.openBlock(),a.createElementBlock("div",kV,[a.createVNode(ac,null,{secondary:a.withCtx(()=>[a.createVNode(Ee,{label:h.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:r},null,8,["label"])]),_:1}),a.createVNode(a.unref(Li),{"model-value":i.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:d},{item:a.withCtx(({element:f})=>{var m;return[a.createVNode(W6,{id:f.id,title:f.name,phases:f.phases,milestones:(m=f.phases)!=null&&m.length?a.unref(f6)(f.phases):0,activities:f.phases?a.unref(m6)(f.phases):0,"updated-at":f.updatedAt,"updated-by":f.updatedBy,onUpdateTitle:g=>l(f.id,g),onClick:g=>h.$router.push({name:a.unref(mn).TEMPLATE_DETAILS,params:{templateId:f.id}}),onDeleteItem:p[0]||(p[0]=(g,v)=>c(g,v))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}}),cz="",_V={class:"ao-field__label"},Gv=a.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("label",{class:a.normalizeClass(["ao-field",{"ao-field--multiselect":i.isMultiselect}])},[a.createElementVNode("span",_V,a.toDisplayString(i.label),1),a.renderSlot(e.$slots,"default")],2))}}),xV=["type","value","disabled","readonly"],EV=a.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i,{emit:e}){const t=i,o=e,s=a.computed(()=>t.modelModifiers.lazy?"change":"input"),r=l=>{t.modelModifiers.number&&(l=Number(l)),o("update:modelValue",l)};return(l,c)=>(a.openBlock(),a.createBlock(Gv,{label:i.label},{default:a.withCtx(()=>[a.createElementVNode("input",a.mergeProps({class:"ao-field__input",type:i.type,value:i.modelValue,disabled:i.isDisabled,readonly:i.isReadonly},{[a.toHandlerKey(s.value)]:c[0]||(c[0]=d=>r(d.target.value))}),null,16,xV)]),_:1},8,["label"]))}}),TV={class:"ao-field"},MV={class:"ao-field__label"},SV=["checked","disabled"],AV=a.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(i){return(e,t)=>(a.openBlock(),a.createElementBlock("label",TV,[a.createElementVNode("span",MV,a.toDisplayString(i.label),1),a.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:i.modelValue,disabled:i.isDisabled,onChange:t[0]||(t[0]=o=>{var s;return e.$emit("update:modelValue",((s=o.target)==null?void 0:s.checked)??!1)})},null,40,SV)]))}});ce.AoAvatar=xo,ce.AoCardFeed=s0,ce.AoCheckboxField=AV,ce.AoColorPicker=fp,ce.AoFeed=qv,ce.AoField=Gv,ce.AoInputField=EV,ce.AoMultiselect=ci,ce.AoProjectPhases=o0,ce.AoTabBar=wc,ce.AoTemplateDetails=Hv,ce.AoTemplates=a5,ce.AoTemplatesList=Zv,ce.EstimationUnit=g2,ce.TemplateItemTypeEnum=m2,ce.activityFeedStatus=A_,ce.durationTypes=S_,ce.feedFilterTypes=Qs,ce.getProjectOverviewRoutes=CV,ce.getTemplateRoutes=wV,ce.listUpdateTypes=B_,ce.milestoneStatus=Gl,ce.projectOverviewRoutes=xt,ce.ruleComparators=u2,ce.ruleDurationUnits=f2,ce.ruleTriggerTypes=p2,ce.templateItemType=dt,ce.templateRouteNames=mn,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})});
|
|
6
|
+
*/function ot(a){let t={r:0,g:0,b:0,a:1};/#/.test(a)?t=If(a):/rgb/.test(a)?t=Lr(a):typeof a=="string"?t=Lr(`rgba(${a})`):Object.prototype.toString.call(a)==="[object Object]"&&(t=a);const{r:o,g:n,b:r,a:s}=t,{h:i,s:l,v:c}=Lf(t);return{r:o,g:n,b:r,a:s===void 0?1:s,h:i,s:l,v:c}}function no(a){const t=document.createElement("canvas"),o=t.getContext("2d"),n=a*2;return t.width=n,t.height=n,o.fillStyle="#ffffff",o.fillRect(0,0,n,n),o.fillStyle="#ccd5db",o.fillRect(0,0,a,a),o.fillRect(a,a,a,a),t}function io(a,t,o,n,r,s){const i=a==="l",l=t.createLinearGradient(0,0,i?o:0,i?0:n);l.addColorStop(.01,r),l.addColorStop(.99,s),t.fillStyle=l,t.fillRect(0,0,o,n)}function Of({r:a,g:t,b:o},n){const r=i=>("0"+Number(i).toString(16)).slice(-2),s=`#${r(a)}${r(t)}${r(o)}`;return n?s.toUpperCase():s}function If(a){a=a.slice(1);const t=o=>parseInt(o,16)||0;return{r:t(a.slice(0,2)),g:t(a.slice(2,4)),b:t(a.slice(4,6))}}function Lr(a){return typeof a=="string"?(a=(/rgba?\((.*?)\)/.exec(a)||["","0,0,0,1"])[1].split(","),{r:Number(a[0])||0,g:Number(a[1])||0,b:Number(a[2])||0,a:Number(a[3]?a[3]:1)}):a}function Lf({r:a,g:t,b:o}){a=a/255,t=t/255,o=o/255;const n=Math.max(a,t,o),r=Math.min(a,t,o),s=n-r;let i=0;n===r?i=0:n===a?t>=o?i=60*(t-o)/s:i=60*(t-o)/s+360:n===t?i=60*(o-a)/s+120:n===o&&(i=60*(a-t)/s+240),i=Math.floor(i);let l=parseFloat((n===0?0:1-r/n).toFixed(2)),c=parseFloat(n.toFixed(2));return{h:i,s:l,v:c}}var so=e.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const a=this.$refs.canvasSaturation,t=this.size,o=a.getContext("2d");a.width=t,a.height=t,o.fillStyle=this.color,o.fillRect(0,0,t,t),io("l",o,t,t,"#FFFFFF","rgba(255,255,255,0)"),io("p",o,t,t,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(a){const{top:t,left:o}=this.$el.getBoundingClientRect(),n=a.target.getContext("2d"),r=i=>{let l=i.clientX-o,c=i.clientY-t;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const p=n.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,u,m]=p.data;this.$emit("selectSaturation",{r:d,g:u,b:m})};r(a);const s=()=>{document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",r),document.addEventListener("mouseup",s)}}});const Df={ref:"canvasSaturation"};function jf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",{class:"saturation",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectSaturation&&a.selectSaturation(...i),["prevent","stop"]))},[e.createVNode("canvas",Df,null,512),e.createVNode("div",{style:a.slideSaturationStyle,class:"slide"},null,4)],32)}so.render=jf,so.__file="src/color/Saturation.vue";var lo=e.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const a=this.$refs.canvasHue,t=this.width,o=this.height,n=a.getContext("2d");a.width=t,a.height=o;const r=n.createLinearGradient(0,0,0,o);r.addColorStop(0,"#FF0000"),r.addColorStop(.17*1,"#FF00FF"),r.addColorStop(.17*2,"#0000FF"),r.addColorStop(.17*3,"#00FFFF"),r.addColorStop(.17*4,"#00FF00"),r.addColorStop(.17*5,"#FFFF00"),r.addColorStop(1,"#FF0000"),n.fillStyle=r,n.fillRect(0,0,t,o)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(a){const{top:t}=this.$el.getBoundingClientRect(),o=a.target.getContext("2d"),n=s=>{let i=s.clientY-t;i<0&&(i=0),i>this.height&&(i=this.height),this.slideHueStyle={top:i-2+"px"};const l=o.getImageData(0,Math.min(i,this.height-1),1,1),[c,p,d]=l.data;this.$emit("selectHue",{r:c,g:p,b:d})};n(a);const r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}}});const Pf={ref:"canvasHue"};function zf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",{class:"hue",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectHue&&a.selectHue(...i),["prevent","stop"]))},[e.createVNode("canvas",Pf,null,512),e.createVNode("div",{style:a.slideHueStyle,class:"slide"},null,4)],32)}lo.render=zf,lo.__file="src/color/Hue.vue";var co=e.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const a=this.$refs.canvasAlpha,t=this.width,o=this.height,n=this.alphaSize,r=no(n),s=a.getContext("2d");a.width=t,a.height=o,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,t,o),io("p",s,t,o,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(a){const{top:t}=this.$el.getBoundingClientRect(),o=r=>{let s=r.clientY-t;s<0&&(s=0),s>this.height&&(s=this.height);let i=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",i)};o(a);const n=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",n)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",n)}}});const Hf={ref:"canvasAlpha"};function Rf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",{class:"color-alpha",onMousedown:t[1]||(t[1]=e.withModifiers((...i)=>a.selectAlpha&&a.selectAlpha(...i),["prevent","stop"]))},[e.createVNode("canvas",Hf,null,512),e.createVNode("div",{style:a.slideAlphaStyle,class:"slide"},null,4)],32)}co.render=Rf,co.__file="src/color/Alpha.vue";var po=e.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const a=this.$el,t=this.width,o=this.height,n=this.alphaSize,r=no(n),s=a.getContext("2d");a.width=t,a.height=o,s.fillStyle=s.createPattern(r,"repeat"),s.fillRect(0,0,t,o),s.fillStyle=this.color,s.fillRect(0,0,t,o)}}});function Uf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("canvas")}po.render=Uf,po.__file="src/color/Preview.vue";var uo=e.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(a){this.isSucking=!1,this.suckColor(a)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(a){a.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(a){const{clientX:t,clientY:o}=a,{top:n,left:r,width:s,height:i}=this.suckerCanvas.getBoundingClientRect(),l=t-r,c=o-n,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,i-1),1,1);let[u,m,g,f]=d.data;f=parseFloat((f/255).toFixed(2));const C=this.suckerPreview.style;Object.assign(C,{position:"absolute",left:t+20+"px",top:o-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${u}, ${m}, ${g}, ${f})`,zIndex:95}),this.suckerArea.length&&t>=this.suckerArea[0]&&o>=this.suckerArea[1]&&t<=this.suckerArea[2]&&o<=this.suckerArea[3]?C.display="":C.display="none"},suckColor(a){a&&a.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),a.addEventListener("click",t=>{const{clientX:o,clientY:n}=t,{top:r,left:s,width:i,height:l}=a.getBoundingClientRect(),c=o-s,p=n-r,u=a.getContext("2d").getImageData(Math.min(c,i-1),Math.min(p,l-1),1,1);let[m,g,f,C]=u.data;C=parseFloat((C/255).toFixed(2)),this.$emit("selectSucker",{r:m,g,b:f,a:C})}))}}});const Ff=e.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),Zf={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},Wf=e.createVNode("g",{fill:"none","fill-rule":"evenodd"},[e.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[e.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),e.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function qf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",null,[a.isSucking?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock("svg",{key:0,class:[{active:a.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:t[1]||(t[1]=(...i)=>a.openSucker&&a.openSucker(...i))},[Ff],2)),a.isSucking?(e.openBlock(),e.createBlock("svg",Zf,[Wf])):e.createCommentVNode("v-if",!0)])}uo.render=qf,uo.__file="src/color/Sucker.vue";var mo=e.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(a,{emit:t}){return{modelColor:e.computed({get(){return a.color||""},set(s){t("inputColor",s)}}),handleFocus:s=>{t("inputFocus",s)},handleBlur:s=>{t("inputBlur",s)}}}});const Yf={class:"color-type"},Kf={class:"name"};function Gf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",Yf,[e.createVNode("span",Kf,e.toDisplayString(a.name),1),e.withDirectives(e.createVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=i=>a.modelColor=i),class:"value",onFocus:t[2]||(t[2]=(...i)=>a.handleFocus&&a.handleFocus(...i)),onBlur:t[3]||(t[3]=(...i)=>a.handleBlur&&a.handleBlur(...i))},null,544),[[e.vModelText,a.modelColor]])])}mo.render=Gf,mo.__file="src/color/Box.vue";var fo=e.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(a,{emit:t}){const o=e.ref(),n=e.ref([]),r=e.ref();a.colorsHistoryKey&&localStorage&&(n.value=JSON.parse(localStorage.getItem(a.colorsHistoryKey))||[]),r.value=no(4).toDataURL(),e.onUnmounted(()=>{s(o.value)});function s(l){if(!l)return;const c=n.value||[],p=c.indexOf(l);p>=0&&c.splice(p,1),c.length>=8&&(c.length=7),c.unshift(l),n.value=c||[],localStorage&&a.colorsHistoryKey&&localStorage.setItem(a.colorsHistoryKey,JSON.stringify(c))}function i(l){t("selectColor",l)}return{setColorsHistory:s,colorsHistory:n,color:o,imgAlphaBase64:r,selectColor:i}}});const Xf={class:"colors"},Qf={key:0,class:"colors history"};function Jf(a,t,o,n,r,s){return e.openBlock(),e.createBlock("div",null,[e.createVNode("ul",Xf,[(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(a.colorsDefault,i=>(e.openBlock(),e.createBlock("li",{key:i,class:"item",onClick:l=>a.selectColor(i)},[e.createVNode("div",{style:{background:`url(${a.imgAlphaBase64})`},class:"alpha"},null,4),e.createVNode("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))]),a.colorsHistory.length?(e.openBlock(),e.createBlock("ul",Qf,[(e.openBlock(!0),e.createBlock(e.Fragment,null,e.renderList(a.colorsHistory,i=>(e.openBlock(),e.createBlock("li",{key:i,class:"item",onClick:l=>a.selectColor(i)},[e.createVNode("div",{style:{background:`url(${a.imgAlphaBase64})`},class:"alpha"},null,4),e.createVNode("div",{style:{background:i},class:"color"},null,4)],8,["onClick"]))),128))])):e.createCommentVNode("v-if",!0)])}fo.render=Jf,fo.__file="src/color/Colors.vue";var bt=e.defineComponent({components:{Saturation:so,Hue:lo,Alpha:co,Preview:po,Sucker:uo,Box:mo,Colors:fo},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return Of(this.rgba,!0)}},created(){Object.assign(this,ot(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(a){const{r:t,g:o,b:n,h:r,s,v:i}=ot(a);Object.assign(this,{r:t,g:o,b:n,h:r,s,v:i}),this.setText()},handleFocus(a){this.$emit("inputFocus",a)},handleBlur(a){this.$emit("inputBlur",a)},selectHue(a){const{r:t,g:o,b:n,h:r,s,v:i}=ot(a);Object.assign(this,{r:t,g:o,b:n,h:r,s,v:i}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(a){this.a=a,this.setText()},inputHex(a){const{r:t,g:o,b:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,s:i,v:l}),this.modelHex=a,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(a){const{r:t,g:o,b:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,s:i,v:l}),this.modelHex=this.hexString,this.modelRgba=a,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(a){this.$emit("openSucker",a)},selectSucker(a){const{r:t,g:o,b:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,s:i,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(a){const{r:t,g:o,b:n,a:r,h:s,s:i,v:l}=ot(a);Object.assign(this,{r:t,g:o,b:n,a:r,h:s,s:i,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const eh={class:"color-set"};function th(a,t,o,n,r,s){const i=e.resolveComponent("Saturation"),l=e.resolveComponent("Hue"),c=e.resolveComponent("Alpha"),p=e.resolveComponent("Preview"),d=e.resolveComponent("Sucker"),u=e.resolveComponent("Box"),m=e.resolveComponent("Colors");return e.openBlock(),e.createBlock("div",{class:["hu-color-picker",{light:a.isLightTheme}],style:{width:a.totalWidth+"px"}},[e.createVNode("div",eh,[e.createVNode(i,{ref:"saturation",color:a.rgbString,hsv:a.hsv,size:a.hueHeight,onSelectSaturation:a.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),e.createVNode(l,{ref:"hue",hsv:a.hsv,width:a.hueWidth,height:a.hueHeight,onSelectHue:a.selectHue},null,8,["hsv","width","height","onSelectHue"]),e.createVNode(c,{ref:"alpha",color:a.rgbString,rgba:a.rgba,width:a.hueWidth,height:a.hueHeight,onSelectAlpha:a.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),e.createVNode("div",{style:{height:a.previewHeight+"px"},class:"color-show"},[e.createVNode(p,{color:a.rgbaString,width:a.previewWidth,height:a.previewHeight},null,8,["color","width","height"]),a.suckerHide?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(d,{key:0,"sucker-canvas":a.suckerCanvas,"sucker-area":a.suckerArea,onOpenSucker:a.openSucker,onSelectSucker:a.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),e.createVNode(u,{name:"HEX",color:a.modelHex,onInputColor:a.inputHex,onInputFocus:a.handleFocus,onInputBlur:a.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),e.createVNode(u,{name:"RGBA",color:a.modelRgba,onInputColor:a.inputRgba,onInputFocus:a.handleFocus,onInputBlur:a.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),e.createVNode(m,{color:a.rgbaString,"colors-default":a.colorsDefault,"colors-history-key":a.colorsHistoryKey,onSelectColor:a.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),e.createCommentVNode(" custom options "),e.renderSlot(a.$slots,"default")],6)}bt.render=th,bt.__file="src/color/ColorPicker.vue",bt.install=a=>{a.component(bt.name,bt)};const G9="",ah={class:"color-picker-wrapper"},Ea=e.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(a,{emit:t}){const o=a,n=e.ref(!1),r=e.ref(null),s=e.ref(null),i=e.ref(0),l=e.ref(0),c=async g=>{s.value=g,n.value=!0,await e.nextTick();const f=g.getBoundingClientRect(),C=r.value,h=(C==null?void 0:C.offsetHeight)||300,y=window.innerHeight-f.bottom,v=f.top,_=y<h&&v>h;console.log("pickerHeight = "+h),i.value=_?f.top-h-8:f.bottom+8,l.value=f.left,setTimeout(()=>{window.addEventListener("click",d)},0)},p=e.computed(()=>({position:"fixed",top:`${i.value}px`,left:`${l.value}px`,zIndex:1e3})),d=g=>{const f=g.target;r.value&&!r.value.contains(f)&&(n.value=!1,t("update:color",u.value),window.removeEventListener("click",d))};e.onBeforeUnmount(()=>{window.removeEventListener("click",d)}),e.watch(()=>o.color,g=>{n.value||(u.value=g)});const u=e.ref(o.color),m=g=>{const{r:f,g:C,b:h,a:y}=g.rgba;u.value=`rgba(${f}, ${C}, ${h}, ${y})`};return(g,f)=>(e.openBlock(),e.createElementBlock("div",ah,[e.renderSlot(g.$slots,"clickable",{openPicker:c,bgColor:g.color}),n.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:r,class:"color-picker",style:e.normalizeStyle(p.value)},[e.createVNode(e.unref(bt),{class:"color-picker-box",theme:"light",color:g.color,onChangeColor:m},null,8,["color"])],4)):e.createCommentVNode("",!0)]))}}),X9="",oh={class:"ao-card-project-phase__header"},rh={class:"ao-card-project-item__title-line"},nh={key:0,class:"ao-card-project-item-phase__estimation"},ih={class:"ao-card-project-phase__footer"},sh={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},lh={class:"ao-card-project-phase__subitem"},ch={class:"ao-card-project-phase__subitem"},dh={key:0,class:"ao-card-project-phase__secondary"},ph={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},uh=e.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(a,{emit:t}){const o=a,n=f=>{t("update:title",f)},r=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((C,h)=>{var y;return C+((y=h.activities)==null?void 0:y.reduce((v,_)=>v+(_.estimation||0),0))},0))||0}),s=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,C)=>{var h;return f+(((h=C.activities)==null?void 0:h.reduce((y,v)=>{var b;const _=(b=o.timeTrackingData)==null?void 0:b[v.id];return y+((_==null?void 0:_.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ia(s.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),p=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(C=>C.status===$t.done).length}),d=e.computed(()=>(p.value||0)/(c.value||1)),u=e.computed({get:()=>o.deadline??"",set:f=>t("update:deadline",f!=null&&f.length?f:null)}),m=e.computed({get:()=>o.color,set:f=>{t("updatePhase",{id:o.id,color:f})}}),g=(f,C)=>{const h=f.target;h.closest("button")||h.closest("input")||h.closest(".ao-title")||C(h)};return(f,C)=>(e.openBlock(),e.createBlock(Ea,{color:m.value,"onUpdate:color":C[2]||(C[2]=h=>m.value=h)},{clickable:e.withCtx(({openPicker:h,bgColor:y})=>[e.createVNode(ka,{class:"ao-card-project-phase","is-clickable":f.isEditable,color:y,withLeftBorder:!0,onClick:v=>g(v,h)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",rh,[e.createVNode(ne,{id:f.id,class:"ao-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||s.value?(e.openBlock(),e.createElementBlock("span",nh," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(r.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",ih,[c.value?(e.openBlock(),e.createElementBlock("div",sh,[e.createElementVNode("div",lh,[e.createVNode(ee,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",ch,e.toDisplayString(p.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode($a,{percentages:d.value,class:"ao-card-project-phase__progress",color:f.color},null,8,["percentages","color"]),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",dh,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-card-project-phase__footer-row",u.value?"":"ao-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>u.value=v),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,u.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",ph,e.toDisplayString(e.unref(sa)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",oh,[e.createVNode(G,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.active?f.$t("archive"):f.$t("unarchive"),onClick:C[0]||(C[0]=e.withModifiers(()=>f.active?f.$emit("archivePhase",{id:f.id}):f.$emit("unarchivePhase",{id:f.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),Q9="",mh=e.defineComponent({__name:"AoBadge",props:{color:{}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("span",{class:"aoBadge",style:e.normalizeStyle({backgroundColor:t.color})},null,4))}}),J9="",fh={class:"ao-card-project-milestone__default"},hh={class:"ao-title-with-badge-wrapper"},gh={class:"ao-card-project-item__title-line"},_h={key:0,class:"ao-card-project-item-milestone__estimation"},vh={key:0,class:"ao-card-project-milestone__archive"},bh={class:"ao-card-project-milestone__activities"},Ch={class:"ao-card-project-milestone__activities-row"},yh={class:"ao-card-project-milestone__subitem"},wh={class:"ao-card-project-milestone__subitem"},kh={key:1,class:"ao-card-project-milestone__secondary"},$h={class:"ao-card-project-milestone__footer"},Eh={key:1,class:"ao-field ao-card-project-milestone__deadline"},Bh={class:"ao-field__label"},Vh={key:2,class:"ao-card-project-milestone__assignee"},Sh=e.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(a,{emit:t}){const o=a,n=e.computed(()=>{var u;return((u=o.activities)==null?void 0:u.reduce((m,g)=>m+(g.estimation||0),0))||0}),r=e.computed(()=>!o.activities||!o.timeTrackingData?0:o.activities.reduce((u,m)=>{var f;const g=(f=o.timeTrackingData)==null?void 0:f[m.id];return u+((g==null?void 0:g.timeSpent)||0)},0)),s=e.computed(()=>o.estimationUnit==="days"?"d":"h"),i=e.computed(()=>ia(r.value,o.estimationUnit));e.computed(()=>{const u=r.value/60;return u%1===0?u.toString():u.toFixed(2)});const l=e.computed(()=>{var u;return(u=o.activities)==null?void 0:u.length}),c=e.computed(()=>{var u;return(u=o.activities)==null?void 0:u.filter(m=>za(m,o.closedStatus)).length}),p=e.computed(()=>(c.value||0)/(l.value||1)),d=u=>{t("updateMilestone",{id:o.id,name:u})};return(u,m)=>(e.openBlock(),e.createBlock(ka,{class:e.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!u.readonly,"tag-name":"li","is-selected":u.isSelected,color:u.phaseColor},{default:e.withCtx(()=>[e.createElementVNode("div",fh,[e.createElementVNode("div",hh,[e.createVNode(mh,{color:u.color||""},null,8,["color"]),e.createElementVNode("div",gh,[e.createVNode(ne,{id:u.id,title:u.name||"",level:5,"is-editable":!u.readonly&&u.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":d},null,8,["id","title","is-editable"]),n.value||r.value?(e.openBlock(),e.createElementBlock("span",_h," ("+e.toDisplayString(i.value)+"/"+e.toDisplayString(n.value)+e.toDisplayString(s.value)+")",1)):e.createCommentVNode("",!0)])]),!u.readonly&&u.isEditable?(e.openBlock(),e.createElementBlock("div",vh,[e.createVNode(G,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:u.active?u.$t("archive"):u.$t("unarchive"),onClick:m[0]||(m[0]=e.withModifiers(()=>u.active?u.$emit("archiveMilestone",{id:u.id}):u.$emit("unarchiveMilestone",{id:u.id}),["stop"]))},null,8,["label"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",bh,[e.createElementVNode("div",Ch,[l.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",yh,[e.createVNode(ee,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",wh,e.toDisplayString(c.value)+" / "+e.toDisplayString(l.value),1)]),e.createVNode($a,{percentages:p.value,color:u.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):e.createCommentVNode("",!0),u.$slots.secondary?(e.openBlock(),e.createElementBlock("div",kh,[e.renderSlot(u.$slots,"secondary")])):e.createCommentVNode("",!0)])])]),footer:e.withCtx(()=>[e.createElementVNode("div",$h,[u.important?(e.openBlock(),e.createBlock(ee,{key:0,name:"FlagRounded",class:e.normalizeClass(u.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):e.createCommentVNode("",!0),u.deadline?(e.openBlock(),e.createElementBlock("label",Eh,[e.createElementVNode("span",Bh,e.toDisplayString(e.unref(sa)(u.deadline)),1)])):e.createCommentVNode("",!0),u.assignee?(e.openBlock(),e.createElementBlock("div",Vh,[e.createVNode(Ve,{"user-name":e.unref(or)(u.assignee),"avatar-url":u.assignee.avatarUrl,color:u.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):e.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}}),e4="",Nh={class:"ao-mapping-card-project-phase__header"},xh={class:"ao-card-project-item__title-line"},Mh={key:0,class:"ao-card-project-item-phase__estimation"},Th={class:"ao-mapping-card-project-phase__footer"},Ah={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},Oh={class:"ao-mapping-card-project-phase__subitem"},Ih={class:"ao-mapping-card-project-phase__subitem"},Lh={key:0,class:"ao-mapping-card-project-phase__secondary"},Dh={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},jh=e.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(a,{emit:t}){const o=a,n=f=>{t("update:title",f)},r=e.computed(()=>{var f;return((f=o.milestones)==null?void 0:f.reduce((C,h)=>{var y;return C+((y=h.activities)==null?void 0:y.reduce((v,_)=>v+(_.estimation||0),0))},0))||0}),s=e.computed(()=>!o.milestones||!o.timeTrackingData?0:o.milestones.reduce((f,C)=>{var h;return f+(((h=C.activities)==null?void 0:h.reduce((y,v)=>{var b;const _=(b=o.timeTrackingData)==null?void 0:b[v.id];return y+((_==null?void 0:_.timeSpent)||0)},0))||0)},0)),i=e.computed(()=>o.estimationUnit==="days"?"d":"h"),l=e.computed(()=>ia(s.value,o.estimationUnit)),c=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.length}),p=e.computed(()=>{var f;return(f=o.milestones)==null?void 0:f.filter(C=>C.status===$t.done).length}),d=e.computed(()=>(p.value||0)/(c.value||1)),u=e.computed({get:()=>o.deadline??"",set:f=>t("update:deadline",f!=null&&f.length?f:null)}),m=e.computed({get:()=>o.color,set:f=>{t("updatePhase",{id:o.id,color:f})}}),g=(f,C)=>{const h=f.target;h.closest("button")||h.closest("input")||h.closest(".ao-title")||C()};return(f,C)=>(e.openBlock(),e.createBlock(Ea,{color:m.value,"onUpdate:color":C[2]||(C[2]=h=>m.value=h)},{clickable:e.withCtx(({openPicker:h,bgColor:y})=>[e.createVNode(ka,{class:"ao-mapping-card-project-phase","is-clickable":f.isEditable,color:y,withLeftBorder:!0,onClick:v=>g(v,h)},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",xh,[e.createVNode(ne,{id:f.id,class:"ao-mapping-card-project-phase__title",title:f.name||"",level:4,"is-editable":f.isEditable,"onUpdate:title":n},null,8,["id","title","is-editable"]),r.value||s.value?(e.openBlock(),e.createElementBlock("span",Mh," ("+e.toDisplayString(l.value)+"/"+e.toDisplayString(r.value)+e.toDisplayString(i.value)+")",1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",Th,[c.value?(e.openBlock(),e.createElementBlock("div",Ah,[e.createElementVNode("div",Oh,[e.createVNode(ee,{name:"MountainFlagOutlineRounded",size:"sm"}),e.createElementVNode("span",Ih,e.toDisplayString(p.value)+" / "+e.toDisplayString(c.value),1)]),e.createVNode($a,{percentages:d.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",Lh,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["ao-mapping-card-project-phase__footer-row",u.value?"":"ao-mapping-card-project-phase__no_deadline"])},[f.isEditable?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=v=>u.value=v),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[e.vModelText,u.value,void 0,{lazy:!0}]]):e.createCommentVNode("",!0),e.createElementVNode("span",Dh,e.toDisplayString(e.unref(sa)(f.deadline)),1)],2)])]),_:2},[f.isEditable?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",Nh,[e.createVNode(G,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:f.active?f.$t("archive"):f.$t("unarchive"),onClick:C[0]||(C[0]=e.withModifiers(()=>f.active?f.$emit("archivePhase",{id:f.id}):f.$emit("unarchivePhase",{id:f.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}}),t4="",Ph={class:"ao-project-phase"},zh={key:0,class:"ao-project-phase__drag ao-card__drag"},Hh={key:1,class:"ao-project-phase__col-phase"},Rh={key:2,class:"ao-mapping-project-phase__col-phase"},Uh={key:0,class:"ao-project-phase__col-milestones"},Fh={class:"ao-project-phase__milestones-list-footer"},Zh=e.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(a,{emit:t}){const o=a,{t:n}=Te();e.watch(()=>o.phase.milestones,(v,_)=>{Ae(v,_)});const r=v=>{t("updatePhase",{id:o.phase.id,name:v})},s=v=>{t("updatePhase",{id:o.phase.id,deadline:v})},i=v=>{t("updatePhase",v)},l=e.computed(()=>o.phase.milestones.map(v=>yu(v,o.closedStatus))),c=v=>{const{name:_,rank:b}=at(l.value??[],"milestone",n);t("addMilestone",{name:_,rank:b,phaseId:v})},p=v=>{t("updateMilestone",v)},d=v=>{t("archiveMilestone",v)},u=v=>{t("unarchiveMilestone",v)},m=v=>{t("archivePhase",v)},g=v=>{t("unarchivePhase",v)},f=v=>{"added"in v?t("updateMilestone",{id:v.added.element.id,phaseId:o.phase.id,rank:pt(l.value,v.added.newIndex)}):"removed"in v||"moved"in v&&t("updateMilestone",{id:v.moved.element.id,rank:pt(l.value,v.moved.newIndex)})},C=De.useRoute(),h=e.computed(()=>C.path.includes("/mapping")),y=e.computed(()=>{var v;return o.phase.id!==((v=C.params)==null?void 0:v.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:ku(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(v,_)=>(e.openBlock(),e.createElementBlock("li",Ph,[e.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:e.normalizeStyle(y.value)},[v.isEditable?(e.openBlock(),e.createElementBlock("div",zh,[e.createVNode(ee,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("div",Rh,[e.createVNode(jh,{id:v.phase.id,milestones:l.value,name:v.phase.name,deadline:v.phase.deadline,active:v.phase.active,"is-editable":v.isEditable,color:v.phase.color,"estimation-unit":v.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":r,onArchivePhase:m,onUnarchivePhase:g,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(e.openBlock(),e.createElementBlock("div",Hh,[e.createVNode(uh,{id:v.phase.id,milestones:l.value,name:v.phase.name,deadline:v.phase.deadline,active:v.phase.active,"is-editable":v.isEditable,color:v.phase.color,"time-tracking-data":v.timeTrackingData,"estimation-unit":v.estimationUnit,"onUpdate:deadline":s,"onUpdate:title":r,onArchivePhase:m,onUnarchivePhase:g,onUpdatePhase:i},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),h.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Uh,[e.createElementVNode("div",{class:"ao-project-phase__milestones",style:e.normalizeStyle(y.value)},[e.createVNode(e.unref(je),e.mergeProps({class:"ao-project-phase__milestones-list",list:l.value,disabled:v.readonly||!v.isEditable,"item-key":"id",group:"kanban"},v.$attrs,{onChange:f}),{item:e.withCtx(({element:b})=>{var B;return[e.createVNode(Sh,{id:b.id,name:b.name,color:b.color,"phase-color":v.phase.color,activities:b.activities,deadline:b.deadline,active:b.active,"is-editable":!v.readonly&&v.isEditable,"is-draggable":!v.readonly&&v.isEditable,"closed-status":v.closedStatus,"is-selected":b.id===((B=v.$route.params)==null?void 0:B.milestoneId),assignee:b.assignee,important:b.important,readonly:v.readonly,"time-tracking-data":v.timeTrackingData,"estimation-unit":v.estimationUnit,class:e.normalizeClass(["ao-project-phase__milestone"]),onClick:E=>!v.readonly&&v.$router.push({name:e.unref(re).milestone,params:{phaseId:v.phase.id,milestoneId:b.id}}),onUpdateMilestone:p,onArchiveMilestone:d,onUnarchiveMilestone:u},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),e.createElementVNode("div",Fh,[v.isEditable?(e.openBlock(),e.createBlock(ze,{key:0,label:v.$t("project.milestone.add"),class:"ao-project-phase__milestone-add","icon-name":"Add",onClick:_[0]||(_[0]=()=>c(v.phase.id))},null,8,["label"])):e.createCommentVNode("",!0)])],4)]))]))}}),a4="",Wh={class:"ao-project__phases"},qh={key:0,class:"ao-project-phase__phases-list-footer"},Yh=e.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1),Kh={class:"ao-project-phase__col-phase"},Gh=e.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1),ho=e.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(a,{emit:t}){const o=a;e.watch(()=>o.phases,(m,g)=>{Ae(m,g)});const n=m=>{t("addMilestone",m)},r=m=>{t("updateMilestone",m)},s=m=>{t("archiveMilestone",m)},i=m=>{t("unarchiveMilestone",m)},l=m=>{t("archivePhase",m)},c=m=>{t("unarchivePhase",m)},p=m=>{if(m.moved){const g=Lt(m,o.phases??[]);t("updatePhase",{id:m.moved.element.id,rank:g})}},d=m=>{t("updatePhase",m)},u=m=>{t("addPhase",m)};return(m,g)=>(e.openBlock(),e.createElementBlock("div",Wh,[e.createVNode(e.unref(je),{class:"ao-project-phase__phases-list","model-value":m.phases,"item-key":"id",handle:".ao-card__drag",onChange:p},{item:e.withCtx(({element:f})=>[e.createVNode(Zh,{phase:f,"is-editable":!m.readonly&&m.isEditable,"closed-status":m.closedStatus,users:m.users,readonly:m.readonly,"time-tracking-data":m.timeTrackingData,"estimation-unit":m.estimationUnit,onAddMilestone:n,onUpdateMilestone:r,onArchiveMilestone:s,onUnarchiveMilestone:i,onUpdatePhase:d,onArchivePhase:l,onUnarchivePhase:c},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),m.isEditable?(e.openBlock(),e.createElementBlock("div",qh,[Yh,e.createElementVNode("div",Kh,[e.createVNode(ze,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:u},null,8,["label"])]),Gh])):e.createCommentVNode("",!0)]))}}),o4="",Xh=["onSubmit"],Qh={class:"ao-add-template-modal__form-body"},Jh={class:"field__row"},e5={class:"ao-add-template-modal__form-footer"},Dr=e.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(a,{emit:t}){const o=a,n=e.computed(()=>o.templates.map(l=>({value:l.id,label:l.name}))),r=e.ref(null),s=l=>{r.value=l},i=()=>{r.value&&t("apply",r.value,o.projectId)};return(l,c)=>(e.openBlock(),e.createBlock(la,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(ne,{title:l.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:e.withModifiers(i,["prevent"])},[e.createElementVNode("p",null,e.toDisplayString(l.$t("project.template.apply.notice")),1),e.createElementVNode("div",Qh,[e.createElementVNode("div",Jh,[e.createVNode(pe,{value:r.value,options:n.value,detached:!0,onChange:s},null,8,["value","options"])])]),e.createElementVNode("footer",e5,[e.createVNode(G,{label:l.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:i},null,8,["label"])])],40,Xh)]),_:1}))}}),r4="",t5=["onSubmit"],a5={class:"ao-save-template-modal__form-body"},o5={class:"field__row"},r5={class:"ao-field ao-field--inline"},n5={class:"ao-field__label"},i5={class:"ao-save-template-modal__phases"},s5={class:"ao-field__label"},l5={class:"ao-save-template-modal__phases-list"},c5=["value"],d5={class:"ao-save-template-modal__form-footer"},jr=e.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(a,{emit:t}){const o=a,n=e.ref(""),r=e.ref([]);e.onMounted(()=>{r.value=o.phases.map(i=>i.id)});const s=()=>{n.value&&t("save",n.value,r.value)};return(i,l)=>(e.openBlock(),e.createBlock(la,{size:"sm"},{header:e.withCtx(()=>[e.createVNode(ne,{title:i.$t("project.template.save.title"),level:3},null,8,["title"])]),default:e.withCtx(()=>[e.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:e.withModifiers(s,["prevent"])},[e.createElementVNode("div",a5,[e.createElementVNode("div",o5,[e.createElementVNode("label",r5,[e.createElementVNode("span",n5,e.toDisplayString(i.$t("project.template.name.label"))+": ",1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>n.value=c),type:"text"},null,512),[[e.vModelText,n.value]])])]),e.createElementVNode("div",i5,[e.createElementVNode("div",s5,e.toDisplayString(i.$t("project.template.phases.label")),1),e.createElementVNode("div",l5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.phases,c=>(e.openBlock(),e.createElementBlock("label",{class:"ao-field ao-field--checkbox",key:c.id},[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:c.id,"onUpdate:modelValue":l[1]||(l[1]=p=>r.value=p)},null,8,c5),[[e.vModelCheckbox,r.value]]),e.createElementVNode("span",null,e.toDisplayString(c.name),1)]))),128))])])]),e.createElementVNode("footer",d5,[e.createVNode(G,{label:i.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:s},null,8,["label"])])],40,t5)]),_:1}))}}),n4="",p5={class:"ao-project"},u5={class:"ao-project__body"},m5=e.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived"],setup(a,{emit:t}){const o=a,{t:n}=Te(),r=e.computed(()=>o.phases.flatMap($=>$.milestones)),s=()=>{const{name:$,rank:L}=at(o.phases,"phase",n);t("addPhase",{name:$,rank:L,projectId:o.project.id})},i=$=>{t("updatePhase",$)},l=$=>{t("archivePhase",$)},c=$=>{t("unarchivePhase",$)},p=$=>{t("copyPhaseToTemplate",$)},d=$=>{t("addMilestone",$)},u=$=>{t("updateMilestone",$)},m=$=>{t("archiveMilestone",$)},g=$=>{t("unarchiveMilestone",$)},f=$=>{t("addActivity",$)},C=$=>{t("update:activity",$)},h=$=>{t("archiveActivity",$)},y=$=>{t("unarchiveActivity",$)},v=$=>{t("addSubtask",$)},_=$=>{t("updateSubtask",$)},b=$=>{t("deleteSubtask",$)},B=e.computed(()=>r.value.flatMap($=>$.activities)),E=$=>{t("addFiles",$)},N=$=>{t("removeFile",$)},I=$=>{t("addComment",$)},z=$=>{t("updateComment",$)},R=$=>{t("removeComment",$)},F=e.ref(!1),A=e.ref(!1),H=($,L)=>{t("applyTemplate",{templateId:$,projectId:L}),F.value=!1},K=($,L)=>{var q;const V=(q=o.templates)==null?void 0:q.at(-1),D=V?ie.LexoRank.parse(V.rank).genNext():ie.LexoRank.middle();t("saveTemplate",{templateName:$,rank:D.format(),phaseIds:L}),A.value=!1},W=De.useRouter(),U=e.ref("overview"),S=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(U,$=>{$==="feed"?(W.push({name:re.feed}),console.log("Navigating to feed...")):$==="overview"?(W.push({name:re.project}),console.log("Navigating to feed...")):$==="mapping"&&(W.push({name:re.mapping}),console.log("Navigating to feed..."))}),($,L)=>{var D;const V=e.resolveComponent("RouterView");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"ao-project-overview"},$.$attrs),[e.createElementVNode("div",p5,[e.createVNode(Dt,null,{primary:e.withCtx(()=>[e.createVNode(Ft,{tabs:S,modelValue:U.value,"onUpdate:modelValue":L[0]||(L[0]=q=>U.value=q)},null,8,["modelValue"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":$.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:$.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":$.showsArchived,onClick:L[1]||(L[1]=q=>$.$emit("update:showsArchived",!$.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:e.withCtx(()=>[$.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-project-overview__save-as-template",color:"primary",label:$.$t("project.template.save.label"),onClick:L[2]||(L[2]=q=>A.value=!0)},null,8,["label"])):e.createCommentVNode("",!0),$.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:1,class:"ao-project-overview__add-template",color:"primary",label:$.$t("project.template.apply.label"),onClick:L[3]||(L[3]=q=>F.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",u5,[e.createVNode(ho,{phases:$.phases,"closed-status":$.closedStatus,"is-editable":$.isEditable===!0,users:$.users,"time-tracking-data":$.timeTrackingData,"estimation-unit":(D=$.project)==null?void 0:D.estimationUnit,onAddMilestone:d,onUpdateMilestone:u,onArchiveMilestone:m,onUnarchiveMilestone:g,onAddPhase:s,onUpdatePhase:i,onArchivePhase:l,onUnarchivePhase:c,onCopyPhaseToTemplate:p},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),e.createVNode(V,{class:"ao-project__sidebar",phases:$.phases,"project-id":$.project.id,"project-name":$.project.name,users:$.users,"is-editable":$.isEditable===!0,"closed-status":$.closedStatus,"time-tracking-data":$.timeTrackingData,onClose:L[4]||(L[4]=q=>$.$router.push({name:e.unref(re).project})),onUpdateMilestone:u,onAddActivity:f,onUpdateActivity:C,onArchiveActivity:h,onUnarchiveActivity:y},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(V,{name:"modal",activities:B.value,"is-task-checkable":$.isTaskCheckable,statuses:$.statuses,"activity-types":$.activityTypes,phases:$.phases,project:$.project,users:$.users,"user-id":$.userId,"is-editable":$.isEditable,"attachment-enabled":$.attachmentEnabled,"time-tracking-data":$.timeTrackingData,"onUpdate:activity":C,onAddSubtask:v,onUpdateSubtask:_,onDeleteSubtask:b,onAddFiles:E,onRemoveFile:N,onAddComment:I,onUpdateComment:z,onRemoveComment:R},{default:e.withCtx(({Component:q})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(q),null,{default:e.withCtx(w=>[e.renderSlot($.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(w)))]),_:2},1024))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data"])]))],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[A.value?(e.openBlock(),e.createBlock(jr,{key:0,phases:$.phases,onClose:L[5]||(L[5]=q=>A.value=!1),onSave:K},null,8,["phases"])):e.createCommentVNode("",!0),F.value?(e.openBlock(),e.createBlock(Dr,{key:1,"project-id":$.project.id,templates:$.templates,onClose:L[6]||(L[6]=q=>F.value=!1),onApply:H},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}}),i4="",f5={class:"ao-card-feed__header"},h5={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},g5={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},_5={class:"ao-card-feed__body"},v5={key:0,class:"ao-card-feed__breadcrumbs"},b5={class:e.normalizeClass(["ao-card-feed__title-group"])},C5={class:"ao-card-feed__title-line"},y5={key:0,class:"ao-card-feed__slug"},w5={key:1,class:"ao-card-feed__deadline"},k5={class:"ao-card-feed__footer"},$5={class:"ao-card-feed__footer-row"},E5={class:"ao-assignees"},B5={key:0,class:"ao-assignee"},V5={key:0,class:"ao-card-feed__subitems"},S5={key:0,class:"ao-card-feed__subitem"},N5={class:"ao-card-feed__subitem"},x5={key:1,class:"ao-card-feed__subitem"},M5={class:"ao-card-feed__subitem"},T5={class:"ao-card-feed__timer-wrapper"},A5={class:"ao-card-feed__footer-row"},O5={key:0,class:"ao-card-feed__progress-wrapper"},I5={class:"ao-card-feed__subitem"},L5={class:"ao-card-feed__subitem"},go=e.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(a,{emit:t}){const o=a,n=e.computed(()=>o.tagType==="milestone"?o.milestoneName:o.projectName),r=e.computed(()=>o.tagType==="milestone"?o.milestoneColor:o.projectColor),s=f=>{t("updateActivity",{id:o.id,name:f})},i=e.computed(()=>o.tagType==="milestone"&&o.phaseName?`${o.phaseName}`:o.phaseName&&o.milestoneName?`${o.phaseName} / ${o.milestoneName}`:""),l=e.computed(()=>o.assignee?[o.assignee]:[]),c=e.computed(()=>sa(o.deadline)),p=f=>{t("removeAssignee",f)},d=()=>{t("startTimer",{activityId:o.id,name:o.name,project:o.projectName,projectId:o.projectId,slug:o.slug})},u=e.computed(()=>{var f;return(f=o.tasks)==null?void 0:f.length}),m=e.computed(()=>{var f;return(f=o.tasks)==null?void 0:f.filter(C=>C.isDone).length}),g=e.computed(()=>(m.value||0)/(u.value||1));return(f,C)=>(e.openBlock(),e.createBlock(ka,{class:e.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":f.isClosed}]),"is-clickable":!0},{header:e.withCtx(()=>[e.createElementVNode("div",f5,[n.value?(e.openBlock(),e.createBlock(kt,{key:0,label:n.value,class:"ao-card-feed__project",variant:"solid",color:f.projectColor?void 0:"primary","raw-color":r.value},null,8,["label","color","raw-color"])):e.createCommentVNode("",!0),f.isPrivate||f.important||f.isClosed?(e.openBlock(),e.createElementBlock("div",h5,[f.isPrivate?(e.openBlock(),e.createBlock(ee,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):e.createCommentVNode("",!0),f.important?(e.openBlock(),e.createBlock(ee,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):e.createCommentVNode("",!0),f.isClosed?(e.openBlock(),e.createBlock(ee,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.$slots.secondary?(e.openBlock(),e.createElementBlock("div",g5,[e.renderSlot(f.$slots,"secondary")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",_5,[i.value?(e.openBlock(),e.createElementBlock("span",v5,e.toDisplayString(i.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",b5,[e.createElementVNode("div",C5,[f.slug?(e.openBlock(),e.createElementBlock("span",y5,e.toDisplayString(f.slug)+": ",1)):e.createCommentVNode("",!0),e.createVNode(ne,{id:f.id,title:f.name,level:5,"is-editable":f.isEditable,"onUpdate:title":s,class:"ao-card-feed__title-inline"},null,8,["id","title","is-editable"])])]),f.deadline?(e.openBlock(),e.createElementBlock("span",w5,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])]),footer:e.withCtx(()=>[e.createElementVNode("div",k5,[e.createElementVNode("div",$5,[e.createElementVNode("ul",E5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,h=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h.id},[h?(e.openBlock(),e.createElementBlock("li",B5,[e.createVNode(Ve,{"user-name":e.unref(or)(h),"avatar-url":h.avatarUrl,"is-closable":!0,onClose:()=>p(h.id)},null,8,["user-name","avatar-url","onClose"])])):e.createCommentVNode("",!0)],64))),128))]),f.comments||f.attachments?(e.openBlock(),e.createElementBlock("ul",V5,[f.comments?(e.openBlock(),e.createElementBlock("li",S5,[e.createVNode(ee,{name:"ChatOutline",size:"sm"}),e.createElementVNode("span",N5,e.toDisplayString(f.comments),1)])):e.createCommentVNode("",!0),f.attachments?(e.openBlock(),e.createElementBlock("li",x5,[e.createVNode(ee,{name:"AttachFileRounded",size:"sm"}),e.createElementVNode("span",M5,e.toDisplayString(f.attachments),1)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",T5,[e.createVNode(ee,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:e.withModifiers(d,["stop"])},null,8,["onClick"])])]),e.createElementVNode("div",A5,[f.tasks&&f.tasks.length?(e.openBlock(),e.createElementBlock("div",O5,[e.createElementVNode("div",I5,[e.createVNode(ee,{name:"SelectCheckBox",size:"sm"}),e.createElementVNode("span",L5,e.toDisplayString(m.value)+" / "+e.toDisplayString(u.value),1)]),e.createVNode($a,{percentages:g.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):e.createCommentVNode("",!0)])])]),_:3},8,["class"]))}}),s4="",D5={class:"ao-project-milestone"},j5={class:"ao-project-milestone__header"},P5={class:"ao-project-milestone__header_line"},z5={class:"ao-project-milestone__header_line"},H5={class:"ao-project-milestone__title"},R5={key:0,class:"ao-fieldset ao-milestone__fieldset"},U5={class:"ao-field__row ao-milestone__field-row"},F5={class:"ao-field ao-field--inline"},Z5={class:"ao-field__row ao-milestone__field-row"},W5={class:"ao-field ao-milestone__field-multiselect"},q5=["onClick"],Y5={class:"ao-project-milestone__body"},K5={key:0,class:"ao-project-milestone__footer"},Pr=e.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(a,{emit:t}){const o=a,{t:n}=Te(),r=b=>{var B;t("startTimer",b),(B=window.parent)==null||B.postMessage({type:"startTimer",data:b},"*")},s=e.computed(()=>{var b;return(b=o.phases)==null?void 0:b.find(B=>B.id===o.phaseId)}),i=e.computed(()=>{var b;return(b=o.phases)==null?void 0:b.flatMap(B=>B.milestones)}),l=e.computed(()=>{var b;return(b=i.value)==null?void 0:b.find(B=>B.id===o.milestoneId)}),c=e.computed(()=>{var b;return(b=l.value)==null?void 0:b.activities});e.watch(c,(b,B)=>{Ae(b,B)});const p=b=>{t("close",b)},d=()=>{const{name:b,rank:B}=at(c.value??[],"activity",n);t("addActivity",{milestoneId:o.milestoneId,name:b,rank:B,projectId:o.projectId})},u=b=>{t("updateActivity",b)},m=b=>{c.value&&"moved"in b&&t("updateActivity",{id:b.moved.element.id,rank:pt(c.value,b.moved.newIndex)})},g=e.computed({get:()=>{var b;return(b=l.value)==null?void 0:b.color},set:b=>{l.value&&t("updateMilestone",{id:l.value.id,color:b})}}),f=e.computed({get:()=>{var b;return((b=l==null?void 0:l.value)==null?void 0:b.deadline)??""},set:b=>{l.value&&t("updateMilestone",{id:l.value.id,deadline:b!=null&&b.length?b:null})}}),C=b=>o.closedStatus?za(b,o.closedStatus):!1,h=e.computed(()=>{var b;return((b=o.users)==null?void 0:b.map(B=>({label:`${B.firstName} ${B.lastName}`,value:B.id,avatar:B.avatarUrl})))||[]}),y=e.computed({get(){var b,B;return(B=(b=l.value)==null?void 0:b.assignee)!=null&&B.id?[l.value.assignee.id]:[]},set(b){t("updateMilestone",{id:o.milestoneId,assigneeId:b[0]??null})}}),v=e.computed({get(){var b;return((b=l.value)==null?void 0:b.important)??!1},set(b){t("updateMilestone",{id:o.milestoneId,important:b})}}),_=(b,B)=>{const E=b.currentTarget;E instanceof HTMLElement&&B(E)};return(b,B)=>{var E;return e.openBlock(),e.createElementBlock("div",D5,[e.createElementVNode("header",j5,[e.createElementVNode("div",P5,[e.createVNode(G,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:p})]),e.createElementVNode("div",z5,[e.createElementVNode("div",H5,[e.createVNode(ne,{title:((E=l.value)==null?void 0:E.name)||b.milestoneId,level:5},null,8,["title"]),e.createVNode(Or,{modelValue:v.value,"onUpdate:modelValue":B[0]||(B[0]=N=>v.value=N),modelModifiers:{lazy:!0},disabled:!b.isEditable,class:"ao-milestone__important",color:"danger",label:b.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),l.value?(e.openBlock(),e.createElementBlock("div",R5,[e.createElementVNode("div",U5,[e.createElementVNode("label",F5,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":B[1]||(B[1]=N=>f.value=N),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[e.vModelText,f.value,void 0,{lazy:!0}]])])]),e.createElementVNode("div",Z5,[e.createElementVNode("label",W5,[e.createVNode(pe,{modelValue:y.value,"onUpdate:modelValue":B[2]||(B[2]=N=>y.value=N),options:h.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:b.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!b.isEditable,caret:b.isEditable},{tag:e.withCtx(({option:N,handleTagRemove:I})=>[e.createVNode(Ve,{"user-name":N.label,"avatar-url":N.avatar,"is-closable":!0,onClose:z=>I(N,z)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),e.createVNode(Ea,{color:g.value,"onUpdate:color":B[3]||(B[3]=N=>g.value=N)},{clickable:e.withCtx(({openPicker:N,bgColor:I})=>[e.createElementVNode("button",{style:e.normalizeStyle({background:I}),class:"color-button",onClick:z=>_(z,N)},null,12,q5)]),_:1},8,["color"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Y5,[e.createVNode(e.unref(je),e.mergeProps({class:"ao-project-milestone__activities",list:c.value,disabled:!b.isEditable,"item-key":"id",group:"kanban"},b.$attrs,{onChange:m}),{item:e.withCtx(({element:N})=>{var I,z,R,F,A;return[e.createVNode(go,{id:N.id,name:N.name||N.id,"project-id":b.projectId,"phase-name":(I=s.value)==null?void 0:I.name,"milestone-name":(z=l.value)==null?void 0:z.name,"milestone-color":(R=l.value)==null?void 0:R.color,deadline:N.deadline,important:N.important,users:b.users,assignee:N.assignee,slug:N.slug,comments:(F=N.comments)==null?void 0:F.length,attachments:(A=N.attachments)==null?void 0:A.length,tasks:N.tasks,"is-editable":b.isEditable,"is-private":N.private,"is-closed":C(N),onClick:H=>b.$router.push({name:e.unref(re).activity,params:{milestoneId:b.milestoneId,activityId:N.id}}),onUpdateActivity:u,onRemoveAssignee:()=>u({id:N.id,assigneeId:null}),onStartTimer:r},e.createSlots({_:2},[b.isEditable?{name:"secondary",fn:e.withCtx(()=>[b.isEditable&&N.active?(e.openBlock(),e.createBlock(G,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("archive"),onClick:e.withModifiers(()=>b.$emit("archiveActivity",{id:N.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0),b.isEditable&&!N.active?(e.openBlock(),e.createBlock(G,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:b.$t("feed.activity.unarchive"),onClick:e.withModifiers(()=>b.$emit("unarchiveActivity",{id:N.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),b.isEditable?(e.openBlock(),e.createElementBlock("div",K5,[e.createVNode(ze,{"icon-name":"Add",label:b.$t("project.activity.add"),onClick:d},null,8,["label"])])):e.createCommentVNode("",!0)])])}}}),l4="",G5=e.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},activities:{},isTaskCheckable:{type:Function},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment"],setup(a,{emit:t}){const o=a,n=e.computed(()=>{var h;return(h=o.phases)==null?void 0:h.find(y=>y.id===o.phaseId)}),r=e.computed(()=>{var h;return(h=o.phases)==null?void 0:h.flatMap(y=>y.milestones)}),s=e.computed(()=>{var h;return(h=r.value)==null?void 0:h.find(y=>y.id===o.milestoneId)}),i=e.computed(()=>{var h;return(h=o.activities)==null?void 0:h.find(y=>y.id===o.activityId)}),l=h=>{t("update:activity",h)},c=h=>{t("addSubtask",h)},p=h=>{t("updateSubtask",h)},d=h=>{t("deleteSubtask",h)},u=h=>{t("addFiles",h)},m=h=>{t("removeFile",h)},g=h=>{t("addComment",h)},f=h=>{t("updateComment",h)},C=h=>{t("removeComment",h)};return(h,y)=>{var v,_;return i.value?(e.openBlock(),e.createBlock(ro,{key:0,activity:i.value,"activity-types":h.activityTypes,"milestone-id":h.milestoneId,"template-activities":h.activities,"is-template":!1,users:h.users,"user-id":h.userId,"is-task-checkable":h.isTaskCheckable,statuses:h.statuses,breadcrumbs:`${(v=n.value)==null?void 0:v.name} / ${(_=s.value)==null?void 0:_.name}`,"is-editable":h.isEditable,"attachment-enabled":h.attachmentEnabled,projects:[h.project],"time-tracking-data":h.timeTrackingData,onClose:h.$router.back,"onUpdate:activity":l,onAddSubtask:c,onUpdateSubtask:p,onDeleteSubtask:d,onAddFiles:u,onRemoveFile:m,onAddComment:g,onUpdateComment:f,onRemoveComment:C},{default:e.withCtx(b=>[e.renderSlot(h.$slots,"default",e.normalizeProps(e.guardReactiveProps(b)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","onClose"])):e.createCommentVNode("",!0)}}}),X5={class:"ao-col-header"},Q5=e.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("header",X5,[e.createVNode(ne,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(e.openBlock(),e.createBlock(kt,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):e.createCommentVNode("",!0)]))}}),c4="";function J5(a){return e.getCurrentScope()?(e.onScopeDispose(a),!0):!1}function Ba(a){return typeof a=="function"?a():e.unref(a)}const e7=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const t7=a=>a!=null,Zt=()=>{};function a7(a,t){function o(...n){return new Promise((r,s)=>{Promise.resolve(a(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(s)})}return o}function o7(a,t={}){let o,n,r=Zt;const s=l=>{clearTimeout(l),r(),r=Zt};return l=>{const c=Ba(a),p=Ba(t.maxWait);return o&&s(o),c<=0||p!==void 0&&p<=0?(n&&(s(n),n=null),Promise.resolve(l())):new Promise((d,u)=>{r=t.rejectOnCancel?u:d,p&&!n&&(n=setTimeout(()=>{o&&s(o),n=null,d(l())},p)),o=setTimeout(()=>{n&&s(n),n=null,d(l())},c)})}}function r7(a,t=200,o={}){return a7(o7(t,o),a)}function _o(a){var t;const o=Ba(a);return(t=o==null?void 0:o.$el)!=null?t:o}const n7=e7?window:void 0;function i7(){const a=e.ref(!1),t=e.getCurrentInstance();return t&&e.onMounted(()=>{a.value=!0},t),a}function s7(a){const t=i7();return e.computed(()=>(t.value,!!a()))}function l7(a,t,o={}){const{root:n,rootMargin:r="0px",threshold:s=.1,window:i=n7,immediate:l=!0}=o,c=s7(()=>i&&"IntersectionObserver"in i),p=e.computed(()=>{const f=Ba(a);return(Array.isArray(f)?f:[f]).map(_o).filter(t7)});let d=Zt;const u=e.ref(l),m=c.value?e.watch(()=>[p.value,_o(n),u.value],([f,C])=>{if(d(),!u.value||!f.length)return;const h=new IntersectionObserver(t,{root:_o(C),rootMargin:r,threshold:s});f.forEach(y=>y&&h.observe(y)),d=()=>{h.disconnect(),d=Zt}},{immediate:l,flush:"post"}):Zt,g=()=>{d(),m(),u.value=!1};return J5(g),{isSupported:c,isActive:u,pause(){d(),u.value=!1},resume(){u.value=!0},stop:g}}const c7={class:e.normalizeClass(["ao-list-kanban"])},d7={class:"ao-list-kanban__header"},p7={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},u7={key:1,class:"ao-list-kanban__end"},m7={key:0,class:"ao-list-kanban__no-more"},f7={key:1,class:"ao-list-kanban__divider"},h7={key:1,class:"ao-list-kanban__footer"},g7=e.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{}},emits:["add","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(a,{emit:t}){const o=a,n=e.ref(!1),r=e.ref(null);l7(r,([{isIntersecting:d}])=>{n.value=d}),e.watch(n,d=>{d&&o.hasMore&&!o.isLoading&&t("loadMore")});const s=d=>{var u;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((u=d.assignee)==null?void 0:u.id):!1},i=d=>{t("selectActivity",d)},l=d=>{t("updateActivity",d)},c=d=>{"added"in d?t("updateActivity",{id:d.added.element.id,statusId:o.status.id,rank:pt(o.list,d.added.newIndex)}):"removed"in d||"moved"in d&&t("updateActivity",{id:d.moved.element.id,rank:pt(o.list,d.moved.newIndex)})},p=e.ref(!1);return(d,u)=>(e.openBlock(),e.createElementBlock("div",c7,[d.title||d.$slots.header?e.renderSlot(d.$slots,"header",{key:0},()=>{var m;return[e.createElementVNode("div",d7,[d.title?(e.openBlock(),e.createBlock(Q5,{key:0,title:d.title,level:3,items:(m=d.list)==null?void 0:m.length},null,8,["title","items"])):e.createCommentVNode("",!0)])]}):e.createCommentVNode("",!0),e.createVNode(e.unref(je),e.mergeProps({class:["ao-list-kanban__list",p.value?"ao-list-kanban__transition":void 0],list:d.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},d.$attrs,{draggable:".ao-list-draggable",disabled:!d.isEditable,onChange:c,onStart:u[1]||(u[1]=m=>p.value=!0),onEnd:u[2]||(u[2]=m=>p.value=!1),"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"}}),{item:e.withCtx(({element:m})=>{var g,f,C,h,y,v,_,b,B,E;return[e.createVNode(go,{class:e.normalizeClass(s(m)?"ao-list-draggable":""),id:m.id,name:m.name,"project-name":(g=m.project)==null?void 0:g.name,"project-id":(f=m.project)==null?void 0:f.id,"project-color":(C=m.project)==null?void 0:C.color,"phase-name":(y=(h=m.milestone)==null?void 0:h.phase)==null?void 0:y.name,"milestone-name":(v=m.milestone)==null?void 0:v.name,"milestone-color":(_=m.milestone)==null?void 0:_.color,deadline:m.deadline,rules:((b=m.rules)==null?void 0:b.length)||0,tasks:m.tasks,description:m.description,important:m.important,type:m.type,comments:(B=m.comments)==null?void 0:B.length,attachments:(E=m.attachments)==null?void 0:E.length,users:d.users,assignee:m.assignee,slug:m.slug,"is-editable":s(m),"is-private":m.private,"tag-type":d.tagType,onUpdateActivity:[N=>s(m)&&l(N),()=>s(m)&&l],onClick:()=>i(m.id),onRemoveAssignee:()=>s(m)&&l({id:m.id,assigneeId:null}),onStartTimer:u[0]||(u[0]=N=>d.$emit("startTimer",N))},{secondary:e.withCtx(()=>[s(m)&&m.active?(e.openBlock(),e.createBlock(G,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:d.$t("feed.activity.archive"),onClick:e.withModifiers(()=>d.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0),s(m)&&!m.active?(e.openBlock(),e.createBlock(G,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:d.$t("feed.activity.unarchive"),onClick:e.withModifiers(()=>d.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):e.createCommentVNode("",!0)]),_:2},1032,["class","id","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:e.withCtx(()=>[d.isLoading?(e.openBlock(),e.createElementBlock("div",p7,[e.createVNode(ee,{name:"Loading"})])):d.hasMore?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:r,class:"ao-list-kanban__end"},null,512)):(e.openBlock(),e.createElementBlock("div",u7,[d.noMoreLabel?(e.openBlock(),e.createElementBlock("span",m7,e.toDisplayString(d.noMoreLabel),1)):d.isEditable?(e.openBlock(),e.createElementBlock("span",f7)):e.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),d.$slots.footer||d.footerLabel?(e.openBlock(),e.createElementBlock("div",h7,[e.renderSlot(d.$slots,"footer",{},()=>[d.isEditable?(e.openBlock(),e.createBlock(ze,{key:0,"icon-name":"AddBoxOutlineRounded",label:d.footerLabel,onClick:u[3]||(u[3]=m=>d.$emit("add"))},null,8,["label"])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]))}}),d4="",_7={class:"ao-field ao-search-field"},v7=["value","placeholder","onKeypress"],b7=e.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(a,{emit:t}){const o=a,n=async i=>{const c=i.target.value;t("update:modelValue",c,i)},r=r7(n,o.delay),s=i=>{t("clear",i)};return(i,l)=>(e.openBlock(),e.createElementBlock("div",_7,[e.createElementVNode("input",{value:i.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:i.placeholder,onInput:l[0]||(l[0]=(...c)=>e.unref(r)&&e.unref(r)(...c)),onKeypress:e.withKeys(n,["enter"])},null,40,v7),e.createVNode(ee,{name:"SearchRounded",class:e.normalizeClass(`ao-search-field__icon ao-search-field__action ${i.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),e.createVNode(G,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:e.normalizeClass(`ao-search-field__button ao-search-field__action ${i.modelValue?"ao-search-field__action--visible":""}`),onClick:s},null,8,["class"])]))}}),p4="",C7={class:"ao-feed"},y7={class:"ao-feed__filters"},w7={class:"ao-feed__body"},zr=e.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},project:{},projects:{},filters:{},activityTypes:{},users:{},userId:{},initialActivityId:{},initialActivitySlug:{},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer"],setup(a,{emit:t}){const o=a,{t:n}=Te();function r(V,D){t("toast",V,D)}const s=e.toRef(o,"activities"),i=async(V,D)=>{await t("selectActivity",V,D)},l=e.ref({}),c=e.ref(!1),p=e.ref(!1),d=e.computed(()=>o.project?"milestone":"project");e.watch([()=>o.statuses,()=>o.activities,()=>o.initialActivityId,()=>o.initialActivitySlug],async([V,D,q,w],[x,O])=>{l.value=Object.fromEntries(V.map(M=>[M.id,D.filter(P=>{var Z;return((Z=P.status)==null?void 0:Z.id)===M.id})])),q&&!c.value?(i(q,null),c.value=!0):w&&!c.value&&(i(null,w),c.value=!0),p.value&&Ae(D,O)},{immediate:!0});const u=e.computed(()=>{var V;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((V=o.selectedActivity.milestone.phase)==null?void 0:V.name)??""} / ${o.selectedActivity.milestone.name??""}`}),m=V=>{var O,M;const D=(O=o.activities)==null?void 0:O.at(-1),q=D?ie.LexoRank.parse(D.rank).genNext():ie.LexoRank.middle(),w=((M=o.activities)==null?void 0:M.length)??0,x={name:n("activity.defaultName",{idx:w+1}),rank:q.format(),statusId:V.id};o.filters.assigneeId.length>0&&(x.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&(x.projectId=o.filters.projectId[0]),o.filters.typeId.length>0&&(x.typeId=o.filters.typeId[0]),p.value=!0,t("addActivity",x)},g=(V,D)=>{p.value=!1,t("update:filters",{...o.filters,[V]:D})},f=e.computed(()=>o.project?[o.project]:o.projects??[]),C=e.computed(()=>f.value.map(V=>({value:V.id,label:V.name}))),h=e.computed(()=>{var V;return(V=o.activityTypes)==null?void 0:V.map(D=>({value:D.id,label:D.name}))}),y=e.computed(()=>o.users.map(V=>({value:V.id,label:`${V.firstName} ${V.lastName}`,avatar:V.avatarUrl}))),v=V=>{o.selectedActivity&&t("update:activity",V)},_=V=>{t("update:activity",V)},b=V=>{t("archiveActivity",V)},B=V=>{t("unarchiveActivity",V)},E=V=>{var D;t("startTimer",V),(D=window.parent)==null||D.postMessage({type:"startTimer",data:V},"*")},N=V=>{p.value=!1,t("update:searchText",V)},I=V=>{p.value=!1,t("clear:searchText",V)},z=V=>{o.selectedActivity&&t("addSubtask",V)},R=V=>{o.selectedActivity&&t("updateSubtask",V)},F=V=>{o.selectedActivity&&t("deleteSubtask",V)},A=V=>{t("addFiles",V)},H=V=>{t("removeFile",V)},K=V=>{o.selectedActivity&&t("addComment",{...V,activityId:o.selectedActivity.id})},W=V=>{const{id:D}=o.selectedActivity||{};D&&t("updateComment",V)},U=V=>{const{id:D}=o.selectedActivity||{};D&&t("removeComment",V)},S=De.useRouter(),$=e.ref("feed"),L=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch($,V=>{V==="feed"?(S.push({name:re.feed}),console.log("Navigating to feed...")):V==="overview"?(S.push({name:re.project}),console.log("Navigating to feed...")):V==="mapping"&&(S.push({name:re.mapping}),console.log("Navigating to feed..."))}),(V,D)=>{var q;return e.openBlock(),e.createElementBlock("div",C7,[e.createVNode(Dt,null,{primary:e.withCtx(()=>[e.createElementVNode("div",y7,[e.createVNode(Ft,{tabs:L,modelValue:$.value,"onUpdate:modelValue":D[0]||(D[0]=w=>$.value=w)},null,8,["modelValue"]),e.createVNode(b7,{"model-value":V.searchText,placeholder:V.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":N,onClear:I},null,8,["model-value","placeholder"]),o.project?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pe,{key:0,"model-value":V.filters[e.unref(Xe).project],mode:"tags",options:C.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:V.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":D[1]||(D[1]=w=>g(e.unref(Xe).project,w))},null,8,["model-value","options","placeholder"])),h.value?(e.openBlock(),e.createBlock(pe,{key:1,"model-value":V.filters[e.unref(Xe).type],mode:"tags",options:h.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__types",placeholder:V.$t("feed.filters.activityType.placeholder"),"onUpdate:modelValue":D[2]||(D[2]=w=>g(e.unref(Xe).type,w))},null,8,["model-value","options","placeholder"])):e.createCommentVNode("",!0),y.value.length?(e.openBlock(),e.createBlock(pe,{key:2,"model-value":V.filters[e.unref(Xe).assignee],mode:"tags",options:y.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:V.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":D[3]||(D[3]=w=>g(e.unref(Xe).assignee,w))},{tag:e.withCtx(({option:w,handleTagRemove:x})=>[e.createVNode(Ve,{"user-name":w.label,"avatar-url":w.avatar,"is-closable":!0,onClose:O=>x(w,O)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):e.createCommentVNode("",!0)]),e.createVNode(G,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":V.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":V.showsOnlyNonAssigned,onClick:D[4]||(D[4]=w=>V.$emit("update:showsOnlyNonAssigned",!V.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),e.createVNode(G,{class:"ao-feed__only-important",size:"sm","icon-name":V.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":V.showsOnlyImportant,onClick:D[5]||(D[5]=w=>V.$emit("update:showsOnlyImportant",!V.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":V.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:V.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":V.showsArchivedActivities,onClick:D[6]||(D[6]=w=>V.$emit("update:showsArchivedActivities",!V.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),e.createElementVNode("div",w7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.statuses,w=>(e.openBlock(),e.createBlock(g7,{key:w.id,status:w,list:l.value[w.id],title:w.name,"footer-label":V.$t("feed.activity.add"),users:V.users,"user-id":V.userId,"is-editable":V.isEditable,tagType:d.value,onAdd:()=>m(w),onSelectActivity:i,onArchiveActivity:b,onUnarchiveActivity:B,onUpdateActivity:_,onStartTimer:E},null,8,["status","list","title","footer-label","users","user-id","is-editable","tagType","onAdd"]))),128))]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[V.selectedActivity?(e.openBlock(),e.createBlock(ro,{key:0,activity:V.selectedActivity,"activity-types":V.activityTypes,"milestone-id":(q=V.selectedActivity.milestone)==null?void 0:q.id,"template-activities":s.value,users:V.users,"user-id":V.userId,"is-task-checkable":V.isTaskCheckable,statuses:V.statuses,breadcrumbs:u.value,"is-editable":V.isEditable,"attachment-enabled":V.attachmentEnabled,projects:f.value,"time-tracking-data":V.timeTrackingData,onClose:D[7]||(D[7]=()=>i(null,null)),"onUpdate:activity":v,onAddSubtask:z,onUpdateSubtask:R,onDeleteSubtask:F,onAddFiles:A,onRemoveFile:H,onAddComment:K,onUpdateComment:W,onRemoveComment:U,onToast:r},{default:e.withCtx(w=>[e.renderSlot(V.$slots,"activityDetailsBody",e.normalizeProps(e.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data"])):e.createCommentVNode("",!0)]))])}}}),u4="",k7={class:"ao-project-mapping"},$7={class:"ao-project-mapping-mapping__body"},E7={class:"ao-project-mapping-mapping__phases"},B7={key:0,class:"ao-project-mapping-mapping__image-wrapper"},V7=["src","alt"],S7=e.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(a,{emit:t}){const o=a,{t:n}=Te(),r=()=>{const{name:h,rank:y}=at(o.phases,"phase",n);t("addPhase",{name:h,rank:y,projectId:o.project.id})},s=h=>{t("updatePhase",h)},i=h=>{t("archivePhase",h)},l=h=>{t("unarchivePhase",h)},c=h=>{t("copyPhaseToTemplate",h)},p=e.ref(!1),d=e.ref(!1),u=(h,y)=>{t("applyTemplate",{templateId:h,projectId:y}),p.value=!1},m=(h,y)=>{var b;const v=(b=o.templates)==null?void 0:b.at(-1),_=v?ie.LexoRank.parse(v.rank).genNext():ie.LexoRank.middle();t("saveTemplate",{templateName:h,rank:_.format(),phaseIds:y}),d.value=!1},g=De.useRouter(),f=e.ref("mapping"),C=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Mapping",value:"mapping"}];return e.watch(f,h=>{h==="feed"?(g.push({name:re.feed}),console.log("Navigating to feed...")):h==="overview"?(g.push({name:re.project}),console.log("Navigating to feed...")):h==="mapping"&&(g.push({name:re.mapping}),console.log("Navigating to feed..."))}),(h,y)=>{var v;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({class:"ao-project-mapping-overview"},h.$attrs),[e.createElementVNode("div",k7,[e.createVNode(Dt,null,{primary:e.withCtx(()=>[e.createVNode(Ft,{modelValue:f.value,"onUpdate:modelValue":y[0]||(y[0]=_=>f.value=_),tabs:C},null,8,["modelValue"]),e.createVNode(G,{class:"ao-feed__show-archived",size:"sm","icon-name":h.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:h.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":h.showsArchived,onClick:y[1]||(y[1]=_=>h.$emit("update:showsArchived",!h.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:e.withCtx(()=>[h.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:0,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:h.$t("project.template.save.label"),onClick:y[2]||(y[2]=_=>d.value=!0)},null,8,["label"])):e.createCommentVNode("",!0),h.isEditable===!0?(e.openBlock(),e.createBlock(G,{key:1,class:"ao-project-mapping-overview__add-template",color:"primary",label:h.$t("project.template.apply.label"),onClick:y[3]||(y[3]=_=>p.value=!0)},null,8,["label"])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",$7,[e.createElementVNode("div",E7,[e.createVNode(ho,{phases:h.phases,"closed-status":h.closedStatus,"is-editable":h.isEditable===!0,users:h.users,"estimation-unit":(v=h.project)==null?void 0:v.estimationUnit,onAddPhase:r,onUpdatePhase:s,onArchivePhase:i,onUnarchivePhase:l,onCopyPhaseToTemplate:c},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),h.project.architectureImage?(e.openBlock(),e.createElementBlock("div",B7,[e.createElementVNode("img",{class:"architecture-image",src:h.project.architectureImage.url,alt:e.unref(n)("architectureImage.alt")},null,8,V7)])):e.createCommentVNode("",!0)])])],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[d.value?(e.openBlock(),e.createBlock(jr,{key:0,phases:h.phases,onClose:y[4]||(y[4]=_=>d.value=!1),onSave:m},null,8,["phases"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createBlock(Dr,{key:1,"project-id":h.project.id,templates:h.templates,onClose:y[5]||(y[5]=_=>p.value=!1),onApply:u},null,8,["project-id","templates"])):e.createCommentVNode("",!0)]))],64)}}}),m4="",rt={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},N7=(a,t={})=>[{path:a,name:rt.TEMPLATES,redirect:{name:rt.TEMPLATES_LIST},...t,children:[{path:"",name:rt.TEMPLATES_LIST,component:Hr},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:rt.TEMPLATE_DETAILS,component:Ir,props:!0}]}],re={project:"AoProject",feed:"AoProjectFeed",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},x7=(a,t={})=>[{path:a,...t,redirect:{name:re.project},children:[{path:"",name:re.project,component:m5,props:!0,children:[{path:":phaseId/:milestoneId",name:re.milestone,component:Pr,props:!0},{path:":phaseId/:milestoneId/:activityId",name:re.activity,props:{default:!0,modal:!0},components:{default:Pr,modal:G5}}]},{path:"feed",name:re.feed,component:zr,props:!0},{path:"mapping",name:re.mapping,component:S7,props:!0}]}],M7={class:"ao-templates"},Hr=e.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(a,{emit:t}){const o=a,{t:n}=Te();e.watch(()=>o.templates,(c,p)=>{Ae(c,p)});const r=()=>{var m,g;const c=(m=o.templates)==null?void 0:m.at(-1),p=c?ie.LexoRank.parse(c.rank).genNext():ie.LexoRank.middle(),d=((g=o.templates)==null?void 0:g.length)??0,u={name:n("template.defaultName.template",{idx:d+1}),rank:p.format()};t("addTemplate",u)},s=(c,p)=>{t("updateItem",{itemType:te.TEMPLATES,id:c,templateId:c,data:{name:p}})},i=(c,p)=>{t("removeItem",{itemType:te.TEMPLATES,templateId:c,data:{id:c,...p?{name:p}:{}}})},l=c=>{if(c.moved){const p=Lt(c,o.templates??[]);t("updateItem",{itemType:te.TEMPLATES,id:c.moved.element.id,templateId:c.moved.element.id,data:{rank:p}})}};return(c,p)=>(e.openBlock(),e.createElementBlock("div",M7,[e.createVNode(Dt,null,{secondary:e.withCtx(()=>[e.createVNode(G,{label:c.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:r},null,8,["label"])]),_:1}),e.createVNode(e.unref(je),{"model-value":c.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:l},{item:e.withCtx(({element:d})=>{var u;return[e.createVNode(Yu,{id:d.id,title:d.name,phases:d.phases,milestones:(u=d.phases)!=null&&u.length?e.unref(_u)(d.phases):0,activities:d.phases?e.unref(vu)(d.phases):0,"updated-at":d.updatedAt,"updated-by":d.updatedBy,onUpdateTitle:m=>s(d.id,m),onClick:m=>c.$router.push({name:e.unref(rt).TEMPLATE_DETAILS,params:{templateId:d.id}}),onDeleteItem:p[0]||(p[0]=(m,g)=>i(m,g))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}}),f4="",T7={class:"ao-field__label"},Rr=e.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[e.createElementVNode("span",T7,e.toDisplayString(t.label),1),e.renderSlot(t.$slots,"default")],2))}}),A7=["type","value","disabled","readonly"],O7=e.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a,{emit:t}){const o=a,n=e.computed(()=>o.modelModifiers.lazy?"change":"input"),r=s=>{o.modelModifiers.number&&(s=Number(s)),t("update:modelValue",s)};return(s,i)=>(e.openBlock(),e.createBlock(Rr,{label:s.label},{default:e.withCtx(()=>[e.createElementVNode("input",e.mergeProps({class:"ao-field__input",type:s.type,value:s.modelValue,disabled:s.isDisabled,readonly:s.isReadonly},{[e.toHandlerKey(n.value)]:i[0]||(i[0]=l=>r(l.target.value))}),null,16,A7)]),_:1},8,["label"]))}}),I7={class:"ao-field"},L7={class:"ao-field__label"},D7=["checked","disabled"],j7=e.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("label",I7,[e.createElementVNode("span",L7,e.toDisplayString(t.label),1),e.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:o[0]||(o[0]=n=>{var r;return t.$emit("update:modelValue",((r=n.target)==null?void 0:r.checked)??!1)})},null,40,D7)]))}});X.AoAvatar=Ve,X.AoCardFeed=go,X.AoCheckboxField=j7,X.AoColorPicker=Ea,X.AoFeed=zr,X.AoField=Rr,X.AoInputField=O7,X.AoMultiselect=pe,X.AoProjectPhases=ho,X.AoTabBar=Ft,X.AoTemplateDetails=Ir,X.AoTemplates=Gr,X.AoTemplatesList=Hr,X.EstimationUnit=Oo,X.TemplateItemTypeEnum=Ao,X.activityFeedStatus=Ad,X.durationTypes=Td,X.feedFilterTypes=Xe,X.getProjectOverviewRoutes=x7,X.getTemplateRoutes=N7,X.listUpdateTypes=Od,X.milestoneStatus=$t,X.projectOverviewRoutes=re,X.ruleComparators=xo,X.ruleDurationUnits=To,X.ruleTriggerTypes=Mo,X.templateItemType=te,X.templateRouteNames=rt,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
|