@abtnode/webapp 1.16.37 → 1.16.38-beta-20250110-003414-d3c1bfbd
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-LNeK5jrT.js → Add-DMbK1vzy.js} +1 -1
- package/dist/assets/{ArrowDropDown-BMCAROdz.js → ArrowDropDown-DKLRovgu.js} +1 -1
- package/dist/assets/Autocomplete-72OfUAKA.js +1 -0
- package/dist/assets/{Breadcrumbs-D96Ji_Fg.js → Breadcrumbs-DvzeQG2v.js} +1 -1
- package/dist/assets/{ButtonGroup-DNhSwTTP.js → ButtonGroup-l0siWVyy.js} +1 -1
- package/dist/assets/{CSSTransition-CyKJ1XLf.js → CSSTransition-DD9Kx1Iq.js} +1 -1
- package/dist/assets/{CheckCircle-fa5-ji4k.js → CheckCircle-BgjyHaH-.js} +1 -1
- package/dist/assets/{ChevronLeft-CBG0DKr8.js → ChevronLeft-D3UVaBk1.js} +1 -1
- package/dist/assets/{ChevronRight-CiXNKrQ5.js → ChevronRight-CRdbPktx.js} +1 -1
- package/dist/assets/{Delete-SdWkobPu.js → Delete-VacyAtz7.js} +1 -1
- package/dist/assets/{DeleteOutline-DmY0qAVl.js → DeleteOutline-B4ZeZmby.js} +1 -1
- package/dist/assets/{Done-D93m_XkV.js → Done-Dm_L4cxw.js} +1 -1
- package/dist/assets/{Edit-CJLZw07X.js → Edit-udIPbjjy.js} +1 -1
- package/dist/assets/{EditIcon-FonE6fi3.js → EditIcon-D8Tco2Vt.js} +1 -1
- package/dist/assets/{ExpandMore-CqgNg-wv.js → ExpandMore-BMpZ8Wgn.js} +1 -1
- package/dist/assets/{Google-BfbvXp8-.js → Google-Ccj7tlHn.js} +1 -1
- package/dist/assets/{HelpOutline-jNej_Tmw.js → HelpOutline-CczYi4vf.js} +1 -1
- package/dist/assets/{Https-CqP1fmfy.js → Https-oAl-nB9G.js} +1 -1
- package/dist/assets/{InputAdornment-CtznPOEY.js → InputAdornment-DWZfDxJ5.js} +1 -1
- package/dist/assets/{Launch-CU2t4bei.js → Launch-Bh2GBEVm.js} +1 -1
- package/dist/assets/{Link-BPz9fTjE.js → Link-D4R9lXIc.js} +1 -1
- package/dist/assets/{ListItemButton-Ctd0Olny.js → ListItemButton-06IoaY7h.js} +1 -1
- package/dist/assets/{LoadingButton-CVn1jCOP.js → LoadingButton-C9iCYV5S.js} +1 -1
- package/dist/assets/{LockIcon-934wV3SA.js → LockIcon-lED3NuFb.js} +1 -1
- package/dist/assets/{Loop-Csp9pHLq.js → Loop-DwiO6dO7.js} +1 -1
- package/dist/assets/{MoreHoriz-kumMux-w.js → MoreHoriz-Dw0WqG6e.js} +1 -1
- package/dist/assets/{MoreVert-sneedYyB.js → MoreVert-C6wKUwAk.js} +1 -1
- package/dist/assets/{Public-BZcXc7nl.js → Public-CMOXQyK4.js} +1 -1
- package/dist/assets/{SchemaReference.es-DPFWnUmw.js → SchemaReference.es-Dlnv0kOV.js} +1 -1
- package/dist/assets/{Search-HG2-ZiCd.js → Search-B79uNwsG.js} +1 -1
- package/dist/assets/{ShoppingCart-B05O0lLg.js → ShoppingCart-Cbf3RE3D.js} +1 -1
- package/dist/assets/{Stepper-CGVylDau.js → Stepper-B03Gdn9z.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-37A-_sW7.js → ToggleButtonGroup-D1XjcSzv.js} +1 -1
- package/dist/assets/{ViewColumn-Bw1Dr-Hv.js → ViewColumn-o0LIJqw8.js} +1 -1
- package/dist/assets/{ViewList-DtZNy2-d.js → ViewList-D8dbR_yl.js} +1 -1
- package/dist/assets/{_createAggregator-DVwXFFA3.js → _createAggregator-BJ_Gxlsc.js} +1 -1
- package/dist/assets/{actions-j_X8RXTm.js → actions-B3nBC3nT.js} +1 -1
- package/dist/assets/{actions-COHejXyQ.js → actions-BmNXubeF.js} +1 -1
- package/dist/assets/{agreement-CdA52x1A.js → agreement-9M0NNXBk.js} +1 -1
- package/dist/assets/api-BhoYn1LW.js +1 -0
- package/dist/assets/ar-DuHAbPhE.js +3 -0
- package/dist/assets/{audit-logs-D6otUrNH.js → audit-logs-C3C4F9zM.js} +1 -1
- package/dist/assets/{base32-CIv3UxMA.js → base32-DsZtf55n.js} +1 -1
- package/dist/assets/blocklet-WvBRbHhh.js +1 -0
- package/dist/assets/{brace-fold.es-SvvPxAcu.js → brace-fold.es-DlGtg1Ay.js} +1 -1
- package/dist/assets/{chart-CAbejja_.js → chart-DGkq-7L_.js} +1 -1
- package/dist/assets/{click-to-copy-DHZn0BU2.js → click-to-copy-C05ik3Tc.js} +1 -1
- package/dist/assets/{closebrackets.es-D0Vu1pph.js → closebrackets.es-BnxC_9rd.js} +1 -1
- package/dist/assets/{codemirror.es-BnDHzwS1.js → codemirror.es-Cq41RbvR.js} +1 -1
- package/dist/assets/{comment.es-CjNTzTkn.js → comment.es-DdPugZrN.js} +1 -1
- package/dist/assets/{config-navigation-CmYuYlOV.js → config-navigation-DDPZOOR-.js} +3 -3
- package/dist/assets/{connect-to-BE2k9kkw.js → connect-to-Crdst8cO.js} +1 -1
- package/dist/assets/de-CJi7wiel.js +3 -0
- package/dist/assets/{delete-confirm-BdV9ygjA.js → delete-confirm-DVXl439v.js} +1 -1
- package/dist/assets/{detail-DhWlLI9a.js → detail-BA6YG4e9.js} +3 -3
- package/dist/assets/{dialog.es-DAZEbvCl.js → dialog.es-mAWjZ4X4.js} +1 -1
- package/dist/assets/{download-CdMMZrfm.js → download-D3JXYHJu.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-Cv2k92pS.js +1 -0
- package/dist/assets/es-ClwhOFrW.js +3 -0
- package/dist/assets/{foldgutter.es-Cj4Bse4O.js → foldgutter.es-CGXjckQe.js} +1 -1
- package/dist/assets/fr-CAkkNKvy.js +3 -0
- package/dist/assets/{get-safe-url-CPcoBNzz.js → get-safe-url-BkFcpbAL.js} +1 -1
- package/dist/assets/{get-safe-url-skqz94-m.js → get-safe-url-CW8aFZFz.js} +1 -1
- package/dist/assets/getValidReactChildren-CQZDoI1W.js +1 -0
- package/dist/assets/hi-CGrG89HI.js +1 -0
- package/dist/assets/{hint.es-D04OYf-Z.js → hint.es-BCbIeXfD.js} +1 -1
- package/dist/assets/{hint.es2--NLmq3n0.js → hint.es2-CH6AINL7.js} +1 -1
- package/dist/assets/id-D6PyIa8m.js +3 -0
- package/dist/assets/{iframe-DvBCKkSE.js → iframe-8AjXIKnl.js} +1 -1
- package/dist/assets/{index-CUO9cP5M.js → index-BJ4-V7tZ.js} +1 -1
- package/dist/assets/{index-CMxyXyyp.js → index-BJdqQbbW.js} +1 -1
- package/dist/assets/{index-D6UlG4np.js → index-BRQeDn6I.js} +1 -1
- package/dist/assets/{index-Bl6HgP2X.js → index-BWk_UMqc.js} +1 -1
- package/dist/assets/{index-Wpz0M9Lm.js → index-BY5fd9sZ.js} +1 -1
- package/dist/assets/{index-DqS8dcdo.js → index-Bp6z3aGT.js} +1 -1
- package/dist/assets/{index-CTEjUADr.js → index-C-tSf3Nu.js} +1 -1
- package/dist/assets/{index-C9zz2Y-O.js → index-C4Yo_q7y.js} +1 -1
- package/dist/assets/{index-CqXcJ23O.js → index-C92-6luS.js} +1 -1
- package/dist/assets/{index-CiMGLB06.js → index-CA15GHeA.js} +1 -1
- package/dist/assets/{index-DdlTTDA0.js → index-CBnuVUeW.js} +1 -1
- package/dist/assets/{index-DiahrB7x.js → index-CC2cdnYk.js} +1 -1
- package/dist/assets/{index-BDUwUVTl.js → index-CG1_igpG.js} +1 -1
- package/dist/assets/{index-CuGRRyR8.js → index-CG7xm8bB.js} +1 -1
- package/dist/assets/{index-CmTNtczD.js → index-CGvRuMnC.js} +1 -1
- package/dist/assets/{index-CME7w0y5.js → index-CIE4pfp7.js} +1 -1
- package/dist/assets/{index-Cu4oiqSG.js → index-CMc0Du4F.js} +21 -21
- package/dist/assets/{index-CenWKla5.js → index-CWbfhRhH.js} +78 -78
- package/dist/assets/{index-ZnkjBWZr.js → index-Cc-UKLvv.js} +1 -1
- package/dist/assets/{index-BQQ6HoHt.js → index-CdtPbsZF.js} +1 -1
- package/dist/assets/{index-BBVHal1U.js → index-CqJwdJfi.js} +1 -1
- package/dist/assets/{index-CeDvR2dF.js → index-D2R4EXnK.js} +4 -4
- package/dist/assets/{index-CdlDvYRv.js → index-D2u3Hmgc.js} +1 -1
- package/dist/assets/{index-BHOZSahD.js → index-D3NL2XyY.js} +1 -1
- package/dist/assets/{index-BUNJKpmD.js → index-D49YArUG.js} +124 -124
- package/dist/assets/{index-B-7NiZMn.js → index-D4cunB-D.js} +1 -1
- package/dist/assets/{index-Cq8gXYls.js → index-DHi3bYBp.js} +1 -1
- package/dist/assets/{index--g6tWKGz.js → index-DKi6BJy-.js} +1 -1
- package/dist/assets/{index-B_4PtLjv.js → index-Dc4xgOvt.js} +1 -1
- package/dist/assets/{index-DFZvQNhs.js → index-DhWjINOl.js} +1 -1
- package/dist/assets/{index-DbPjug53.js → index-DxpxiMNX.js} +1 -1
- package/dist/assets/{index-BZOzc2yh.js → index-GeGGg5FS.js} +1 -1
- package/dist/assets/{index-CTnaHN2F.js → index-JJP1bzc4.js} +1 -1
- package/dist/assets/{index-B7u6DMob.js → index-Jxsgp5Uf.js} +3 -3
- package/dist/assets/{index-CdjAgPV6.js → index-WAManj1W.js} +1 -1
- package/dist/assets/{index-BzJr8MZd.js → index-g54V2euN.js} +1 -1
- package/dist/assets/{index-sR_PZ0Y7.js → index-hLMcQc7k.js} +1 -1
- package/dist/assets/{index-BcFgJ4P7.js → index-n0yXt8Sx.js} +1 -1
- package/dist/assets/{index-DbM7eu_G.js → index-oSDNX64t.js} +3 -3
- package/dist/assets/{index-JwV9ZSj1.js → index-wrId3cmL.js} +1 -1
- package/dist/assets/{index-D_gJpdyF.js → index-zTokKslW.js} +2 -2
- package/dist/assets/{index.esm-BmJ6gVOZ.js → index.esm-CcF_wSql.js} +1 -1
- package/dist/assets/{info-addon.es-LRhGzFNO.js → info-addon.es-Zv7hO3v8.js} +1 -1
- package/dist/assets/{info.es-C-a7s3gR.js → info.es-_PvJk0Sn.js} +1 -1
- package/dist/assets/{install-from-url-SQrCQcYi.js → install-from-url-CHeZ3efm.js} +1 -1
- package/dist/assets/{invitation-DvJLTIS2.js → invitation-DSrQVBko.js} +1 -1
- package/dist/assets/is-path-prefix-equal-6Xk283GW.js +1 -0
- package/dist/assets/{item-BHaPtXP2.js → item-B8Ikm43l.js} +1 -1
- package/dist/assets/ja-C82Szos_.js +3 -0
- package/dist/assets/{javascript.es-C7DdWJKB.js → javascript.es-BRUVbIfm.js} +1 -1
- package/dist/assets/{jump-to-line.es-ivjE1mPV.js → jump-to-line.es-DwDv0xWQ.js} +1 -1
- package/dist/assets/{jump.es-D4TIjpbX.js → jump.es-Djy2R28D.js} +1 -1
- package/dist/assets/ko-zaXquvPm.js +3 -0
- package/dist/assets/{lint.es-DGHaTgxf.js → lint.es-CqwAPBE0.js} +1 -1
- package/dist/assets/{lint.es2-ivQKovR2.js → lint.es2-BzvK8jqN.js} +1 -1
- package/dist/assets/{lint.es3-Bt2w8cvz.js → lint.es3-DK49uIoO.js} +1 -1
- package/dist/assets/{list-header-BX4fmTdb.js → list-header-Dp2PLIET.js} +1 -1
- package/dist/assets/{log-zCc1coPH.js → log-DhOu9Kdc.js} +1 -1
- package/dist/assets/{logo-uploader-Dw-uh1T2.js → logo-uploader-Dj6giLFm.js} +4 -4
- package/dist/assets/{lottie-react.esm-CgEl2A0C.js → lottie-react.esm-Csdw9Vzz.js} +1 -1
- package/dist/assets/{matchbrackets.es-49-A2Uxh.js → matchbrackets.es-imT7Z0Y9.js} +1 -1
- package/dist/assets/{memory-BxEEk0to.js → memory-CCO4mC07.js} +1 -1
- package/dist/assets/{mode.es-CRvvIVYR.js → mode.es-230XBHtp.js} +1 -1
- package/dist/assets/{mode.es2-CH8NtrwB.js → mode.es2-DIyH3KiP.js} +1 -1
- package/dist/assets/{mode.es3-BSTnMxNC.js → mode.es3-MypnvBX7.js} +1 -1
- package/dist/assets/{onlineParser.es-BsaAMnEA.js → onlineParser.es-CIQBs0ab.js} +1 -1
- package/dist/assets/{overview-CbRHUR59.js → overview-f1KcRwxU.js} +1 -1
- package/dist/assets/{permission-Bkth4eV7.js → permission-Bcmsu5d5.js} +1 -1
- package/dist/assets/pt-CMq2TmiV.js +1 -0
- package/dist/assets/{resource-dialog-B39zqK45.js → resource-dialog-CjkV1JgT.js} +9 -9
- package/dist/assets/ru-BwmmHWZS.js +1 -0
- package/dist/assets/{runtime-C-QxOBAC.js → runtime-Bo8HSyE-.js} +1 -1
- package/dist/assets/schema-CCOnGjM-.js +29 -0
- package/dist/assets/sdk-qrY1rACG.js +1 -0
- package/dist/assets/{search.es-BwzP6MG0.js → search.es-DyMbgBDt.js} +1 -1
- package/dist/assets/{searchcursor.es-Bidk4QWP.js → searchcursor.es-BXpAUvZO.js} +1 -1
- package/dist/assets/{service-JO-3dMQL.js → service-CifH8b_H.js} +1 -1
- package/dist/assets/session-Oj9XmKr2.js +1 -0
- package/dist/assets/{shorten-label-Cyl52dM6.js → shorten-label-DWmSldhD.js} +1 -1
- package/dist/assets/{show-hint.es-BshPrCed.js → show-hint.es-E3psg9hY.js} +1 -1
- package/dist/assets/{simple-select-BMHJl3YE.js → simple-select-49kuuDJ_.js} +1 -1
- package/dist/assets/{slicedToArray-BNRTfgmS.js → slicedToArray-Yixr-oJu.js} +1 -1
- package/dist/assets/{spaces-BK8M5T_O.js → spaces-A_lKSdhY.js} +1 -1
- package/dist/assets/{status-CjSQkY6J.js → status-DCmFj-i0.js} +1 -1
- package/dist/assets/{sublime.es-DcKiuWNC.js → sublime.es-ComfFZLY.js} +1 -1
- package/dist/assets/{switch-control-BDeteUmz.js → switch-control-xE4sjHp6.js} +1 -1
- package/dist/assets/{table-icons-B2I5P9wN.js → table-icons-Q5LDmDtO.js} +1 -1
- package/dist/assets/{team-CT47mbew.js → team-3vCE6Gdh.js} +1 -1
- package/dist/assets/{th-CKxPcxWD.js → th-C-hKn9xa.js} +1 -1
- package/dist/assets/{toUpper-DanPvCnW.js → toUpper-0YthuLMH.js} +1 -1
- package/dist/assets/{traffic-DdIpuI4L.js → traffic-C-peaCPk.js} +1 -1
- package/dist/assets/{uniqBy-BwI-KO3U.js → uniqBy-nvRXjDh4.js} +1 -1
- package/dist/assets/{url-evaluation-BkGwhDBb.js → url-evaluation-Chv1gy0N.js} +1 -1
- package/dist/assets/{url-join-CXZZH1hT.js → url-join-Beajpd0B.js} +1 -1
- package/dist/assets/{use-mobile-DL3ieg5k.js → use-mobile-DRPYNh8e.js} +1 -1
- package/dist/assets/{useAsync-tkSQIJ7B.js → useAsync-BkCbq0Nt.js} +1 -1
- package/dist/assets/{useLocalStorage-BuIYftF5.js → useLocalStorage-DJrGEjBO.js} +1 -1
- package/dist/assets/{useThemeProps-CMeYnErS.js → useThemeProps-C9wZ4SLX.js} +1 -1
- package/dist/assets/{util-CJ7LZmNA.js → util-S0lCOd3M.js} +1 -1
- package/dist/assets/{vi-DsheN6LQ.js → vi-C_iM9J2X.js} +1 -1
- package/dist/assets/{wait-container-Bejv0Pdm.js → wait-container-izhq2H-L.js} +1 -1
- package/dist/assets/{withStyles-C7pv6jh1.js → withStyles-DcLZK18s.js} +1 -1
- package/dist/assets/wrap-locale-BEOy0Wuw.js +1 -0
- package/dist/assets/{zh-BJMvTFip.js → zh-DNY792IC.js} +1 -1
- package/dist/assets/zh-tw-9sY6BN2s.js +3 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Autocomplete-TOUUVKuI.js +0 -1
- package/dist/assets/api-Cs_T_Ea4.js +0 -1
- package/dist/assets/ar-DJ10cGfc.js +0 -3
- package/dist/assets/blocklet-B717ECiV.js +0 -1
- package/dist/assets/de-5ORoKwiw.js +0 -3
- package/dist/assets/emotion-react.browser.esm-CNy46FnI.js +0 -1
- package/dist/assets/es-CWClvbjs.js +0 -3
- package/dist/assets/fr-CE8mlhdK.js +0 -3
- package/dist/assets/getValidReactChildren-Cg0RyAku.js +0 -1
- package/dist/assets/hi-DVuJdQme.js +0 -1
- package/dist/assets/id-L6JUyxUh.js +0 -3
- package/dist/assets/is-path-prefix-equal-Bhvu_H7P.js +0 -1
- package/dist/assets/ja-C5orBePq.js +0 -3
- package/dist/assets/ko-BeIurXFC.js +0 -3
- package/dist/assets/pt-BED0VqHV.js +0 -1
- package/dist/assets/ru-B5wj2v7e.js +0 -1
- package/dist/assets/schema-BNNwED-s.js +0 -28
- package/dist/assets/sdk-DKS71jwM.js +0 -1
- package/dist/assets/session-Denx5-a_.js +0 -1
- package/dist/assets/wrap-locale-HbAVHA9D.js +0 -1
- package/dist/assets/zh-tw-B_su4eMW.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bW as K,bV as X,bU as W,c4 as st,bS as x,bP as H,j as o,bQ as E,bR as nt,c2 as R,r as P,bX as Q,d3 as rt,g3 as S,g4 as U,bZ as _,c1 as M,b_ as Y,bs as q,z as it,o as lt,C as ct,N as w,Q as dt,S as pt,U as ut,V as gt,a0 as ft,n as vt,az as F,l as B,K as D,T as xt,g5 as bt,E as yt}from"./index-CenWKla5.js";import{c as mt,v as ht,p as Ct,s as T,M as Pt}from"./index-CqXcJ23O.js";import{_ as $t}from"./useLocalStorage-BuIYftF5.js";function jt(t){return K("MuiPagination",t)}X("MuiPagination",["root","ul","outlined","text"]);const Lt=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Nt(t={}){const{boundaryCount:a=1,componentName:e="usePagination",count:s=1,defaultPage:g=1,disabled:r=!1,hideNextButton:p=!1,hidePrevButton:i=!1,onChange:n,page:u,showFirstButton:C=!1,showLastButton:m=!1,siblingCount:f=1}=t,c=W(t,Lt),[l,j]=st({controlled:u,default:g,name:e,state:"page"}),L=(d,I)=>{u||j(I),n&&n(d,I)},b=(d,I)=>{const et=I-d+1;return Array.from({length:et},(ta,ot)=>d+ot)},N=b(1,Math.min(a,s)),v=b(Math.max(s-a+1,a+1),s),z=Math.max(Math.min(l-f,s-a-f*2-1),a+2),y=Math.min(Math.max(l+f,a+f*2+2),v.length>0?v[0]-2:s-1),$=[...C?["first"]:[],...i?[]:["previous"],...N,...z>a+2?["start-ellipsis"]:a+1<s-a?[a+1]:[],...b(z,y),...y<s-a-1?["end-ellipsis"]:s-a>a?[s-a]:[],...v,...p?[]:["next"],...m?["last"]:[]],O=d=>{switch(d){case"first":return 1;case"previous":return l-1;case"next":return l+1;case"last":return s;default:return null}},k=$.map(d=>typeof d=="number"?{onClick:I=>{L(I,d)},type:"page",page:d,selected:d===l,disabled:r,"aria-current":d===l?"true":void 0}:{onClick:I=>{L(I,O(d))},type:d,page:O(d),selected:!1,disabled:r||d.indexOf("ellipsis")===-1&&(d==="next"||d==="last"?l>=s:l<=1)});return x({items:k},c)}function kt(t){return K("MuiPaginationItem",t)}const h=X("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),V=H(o.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),G=H(o.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),It=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],J=(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],a[`size${M(e.size)}`],e.variant==="text"&&a[`text${M(e.color)}`],e.variant==="outlined"&&a[`outlined${M(e.color)}`],e.shape==="rounded"&&a.rounded,e.type==="page"&&a.page,(e.type==="start-ellipsis"||e.type==="end-ellipsis")&&a.ellipsis,(e.type==="previous"||e.type==="next")&&a.previousNext,(e.type==="first"||e.type==="last")&&a.firstLast]},zt=t=>{const{classes:a,color:e,disabled:s,selected:g,size:r,shape:p,type:i,variant:n}=t,u={root:["root",`size${M(r)}`,n,p,e!=="standard"&&`color${M(e)}`,e!=="standard"&&`${n}${M(e)}`,s&&"disabled",g&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[i]],icon:["icon"]};return Y(u,kt,a)},Rt=E("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:J})(({theme:t,ownerState:a})=>x({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${h.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},a.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},a.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),Bt=E(nt,{name:"MuiPaginationItem",slot:"Root",overridesResolver:J})(({theme:t,ownerState:a})=>x({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${h.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${h.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:R(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${h.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:R(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${h.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},a.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},a.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)},a.shape==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:a})=>x({},a.variant==="text"&&{[`&.${h.selected}`]:x({},a.color!=="standard"&&{color:(t.vars||t).palette[a.color].contrastText,backgroundColor:(t.vars||t).palette[a.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[a.color].main}},[`&.${h.focusVisible}`]:{backgroundColor:(t.vars||t).palette[a.color].dark}},{[`&.${h.disabled}`]:{color:(t.vars||t).palette.action.disabled}})},a.variant==="outlined"&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${h.selected}`]:x({},a.color!=="standard"&&{color:(t.vars||t).palette[a.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / 0.5)`:R(t.palette[a.color].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:R(t.palette[a.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:R(t.palette[a.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:R(t.palette[a.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{[`&.${h.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),Mt=E("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,a)=>a.icon})(({theme:t,ownerState:a})=>x({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},a.size==="small"&&{fontSize:t.typography.pxToRem(18)},a.size==="large"&&{fontSize:t.typography.pxToRem(22)})),Ot=P.forwardRef(function(a,e){const s=Q({props:a,name:"MuiPaginationItem"}),{className:g,color:r="standard",component:p,components:i={},disabled:n=!1,page:u,selected:C=!1,shape:m="circular",size:f="medium",slots:c={},type:l="page",variant:j="text"}=s,L=W(s,It),b=x({},s,{color:r,disabled:n,selected:C,shape:m,size:f,type:l,variant:j}),N=rt(),v=zt(b),y=(N?{previous:c.next||i.next||G,next:c.previous||i.previous||V,last:c.first||i.first||S,first:c.last||i.last||U}:{previous:c.previous||i.previous||V,next:c.next||i.next||G,first:c.first||i.first||S,last:c.last||i.last||U})[l];return l==="start-ellipsis"||l==="end-ellipsis"?o.jsx(Rt,{ref:e,ownerState:b,className:_(v.root,g),children:"…"}):o.jsxs(Bt,x({ref:e,ownerState:b,component:p,disabled:n,className:_(v.root,g)},L,{children:[l==="page"&&u,y?o.jsx(Mt,{as:y,ownerState:b,className:v.icon}):null]}))}),At=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Et=t=>{const{classes:a,variant:e}=t;return Y({root:["root",e],ul:["ul"]},jt,a)},wt=E("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant]]}})({}),Tt=E("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,a)=>a.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function _t(t,a,e){return t==="page"?`${e?"":"Go to "}page ${a}`:`Go to ${t} page`}const Wt=P.forwardRef(function(a,e){const s=Q({props:a,name:"MuiPagination"}),{boundaryCount:g=1,className:r,color:p="standard",count:i=1,defaultPage:n=1,disabled:u=!1,getItemAriaLabel:C=_t,hideNextButton:m=!1,hidePrevButton:f=!1,renderItem:c=k=>o.jsx(Ot,x({},k)),shape:l="circular",showFirstButton:j=!1,showLastButton:L=!1,siblingCount:b=1,size:N="medium",variant:v="text"}=s,z=W(s,At),{items:y}=Nt(x({},s,{componentName:"Pagination"})),$=x({},s,{boundaryCount:g,color:p,count:i,defaultPage:n,disabled:u,getItemAriaLabel:C,hideNextButton:m,hidePrevButton:f,renderItem:c,shape:l,showFirstButton:j,showLastButton:L,siblingCount:b,size:N,variant:v}),O=Et($);return o.jsx(wt,x({"aria-label":"pagination navigation",className:_(O.root,r),ownerState:$,ref:e},z,{children:o.jsx(Tt,{className:O.ul,ownerState:$,children:y.map((k,d)=>o.jsx("li",{children:c(x({},k,{color:p,"aria-label":C(k.type,k.page,k.selected),shape:l,size:N,variant:v}))},d))})}))}),St=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Ut=/^[a-zA-Z]:\\/;function Ft(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return Ut.test(t)?!1:St.test(t)}const Dt=["http","https"],Vt=["nofollow"],Gt={};function Zt(t){const a=t||Gt,e=a.protocols||Dt,s=mt(a.test);return function(g){ht(g,"element",function(r,p,i){if(r.tagName==="a"&&typeof r.properties.href=="string"&&s(r,p,i)){const n=r.properties.href;if(Ft(n)?e.includes(n.slice(0,n.indexOf(":"))):n.startsWith("//")){const u=A(a.content,r),C=u&&!Array.isArray(u)?[u]:u,m=A(a.rel,r)||Vt,f=typeof m=="string"?Ct(m):m,c=A(a.target,r),l=A(a.properties,r);if(l&&Object.assign(r.properties,T(l)),f.length>0&&(r.properties.rel=[...f]),c&&(r.properties.target=c),C){const j=A(a.contentProperties,r)||{};r.children.push({type:"element",tagName:"span",properties:T(j),children:T(C)})}}}})}}function A(t,a){return typeof t=="function"?t(a):t}let Z=!1;const Kt=P.forwardRef(function(a,e){return Z||(console.warn(["MUI: The Pagination component was moved from the lab to the core.","","You should use `import { Pagination } from '@mui/material'`","or `import Pagination from '@mui/material/Pagination'`"].join(`
|
|
1
|
+
import{bW as K,bV as X,bU as W,c4 as st,bS as x,bP as H,j as o,bQ as E,bR as nt,c2 as R,r as P,bX as Q,d3 as rt,g3 as S,g4 as U,bZ as _,c1 as M,b_ as Y,bs as q,z as it,o as lt,C as ct,N as w,Q as dt,S as pt,U as ut,V as gt,a0 as ft,n as vt,az as F,l as B,K as D,T as xt,g5 as bt,E as yt}from"./index-CWbfhRhH.js";import{c as mt,v as ht,p as Ct,s as T,M as Pt}from"./index-C92-6luS.js";import{_ as $t}from"./useLocalStorage-DJrGEjBO.js";function jt(t){return K("MuiPagination",t)}X("MuiPagination",["root","ul","outlined","text"]);const Lt=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function Nt(t={}){const{boundaryCount:a=1,componentName:e="usePagination",count:s=1,defaultPage:g=1,disabled:r=!1,hideNextButton:p=!1,hidePrevButton:i=!1,onChange:n,page:u,showFirstButton:C=!1,showLastButton:m=!1,siblingCount:f=1}=t,c=W(t,Lt),[l,j]=st({controlled:u,default:g,name:e,state:"page"}),L=(d,I)=>{u||j(I),n&&n(d,I)},b=(d,I)=>{const et=I-d+1;return Array.from({length:et},(ta,ot)=>d+ot)},N=b(1,Math.min(a,s)),v=b(Math.max(s-a+1,a+1),s),z=Math.max(Math.min(l-f,s-a-f*2-1),a+2),y=Math.min(Math.max(l+f,a+f*2+2),v.length>0?v[0]-2:s-1),$=[...C?["first"]:[],...i?[]:["previous"],...N,...z>a+2?["start-ellipsis"]:a+1<s-a?[a+1]:[],...b(z,y),...y<s-a-1?["end-ellipsis"]:s-a>a?[s-a]:[],...v,...p?[]:["next"],...m?["last"]:[]],O=d=>{switch(d){case"first":return 1;case"previous":return l-1;case"next":return l+1;case"last":return s;default:return null}},k=$.map(d=>typeof d=="number"?{onClick:I=>{L(I,d)},type:"page",page:d,selected:d===l,disabled:r,"aria-current":d===l?"true":void 0}:{onClick:I=>{L(I,O(d))},type:d,page:O(d),selected:!1,disabled:r||d.indexOf("ellipsis")===-1&&(d==="next"||d==="last"?l>=s:l<=1)});return x({items:k},c)}function kt(t){return K("MuiPaginationItem",t)}const h=X("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),V=H(o.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),G=H(o.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),It=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],J=(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],a[`size${M(e.size)}`],e.variant==="text"&&a[`text${M(e.color)}`],e.variant==="outlined"&&a[`outlined${M(e.color)}`],e.shape==="rounded"&&a.rounded,e.type==="page"&&a.page,(e.type==="start-ellipsis"||e.type==="end-ellipsis")&&a.ellipsis,(e.type==="previous"||e.type==="next")&&a.previousNext,(e.type==="first"||e.type==="last")&&a.firstLast]},zt=t=>{const{classes:a,color:e,disabled:s,selected:g,size:r,shape:p,type:i,variant:n}=t,u={root:["root",`size${M(r)}`,n,p,e!=="standard"&&`color${M(e)}`,e!=="standard"&&`${n}${M(e)}`,s&&"disabled",g&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[i]],icon:["icon"]};return Y(u,kt,a)},Rt=E("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:J})(({theme:t,ownerState:a})=>x({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${h.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},a.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},a.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),Bt=E(nt,{name:"MuiPaginationItem",slot:"Root",overridesResolver:J})(({theme:t,ownerState:a})=>x({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${h.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${h.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:R(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${h.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:R(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${h.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},a.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},a.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)},a.shape==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:a})=>x({},a.variant==="text"&&{[`&.${h.selected}`]:x({},a.color!=="standard"&&{color:(t.vars||t).palette[a.color].contrastText,backgroundColor:(t.vars||t).palette[a.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[a.color].main}},[`&.${h.focusVisible}`]:{backgroundColor:(t.vars||t).palette[a.color].dark}},{[`&.${h.disabled}`]:{color:(t.vars||t).palette.action.disabled}})},a.variant==="outlined"&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${h.selected}`]:x({},a.color!=="standard"&&{color:(t.vars||t).palette[a.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / 0.5)`:R(t.palette[a.color].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:R(t.palette[a.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:R(t.palette[a.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[a.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:R(t.palette[a.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{[`&.${h.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),Mt=E("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,a)=>a.icon})(({theme:t,ownerState:a})=>x({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},a.size==="small"&&{fontSize:t.typography.pxToRem(18)},a.size==="large"&&{fontSize:t.typography.pxToRem(22)})),Ot=P.forwardRef(function(a,e){const s=Q({props:a,name:"MuiPaginationItem"}),{className:g,color:r="standard",component:p,components:i={},disabled:n=!1,page:u,selected:C=!1,shape:m="circular",size:f="medium",slots:c={},type:l="page",variant:j="text"}=s,L=W(s,It),b=x({},s,{color:r,disabled:n,selected:C,shape:m,size:f,type:l,variant:j}),N=rt(),v=zt(b),y=(N?{previous:c.next||i.next||G,next:c.previous||i.previous||V,last:c.first||i.first||S,first:c.last||i.last||U}:{previous:c.previous||i.previous||V,next:c.next||i.next||G,first:c.first||i.first||S,last:c.last||i.last||U})[l];return l==="start-ellipsis"||l==="end-ellipsis"?o.jsx(Rt,{ref:e,ownerState:b,className:_(v.root,g),children:"…"}):o.jsxs(Bt,x({ref:e,ownerState:b,component:p,disabled:n,className:_(v.root,g)},L,{children:[l==="page"&&u,y?o.jsx(Mt,{as:y,ownerState:b,className:v.icon}):null]}))}),At=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],Et=t=>{const{classes:a,variant:e}=t;return Y({root:["root",e],ul:["ul"]},jt,a)},wt=E("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant]]}})({}),Tt=E("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,a)=>a.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function _t(t,a,e){return t==="page"?`${e?"":"Go to "}page ${a}`:`Go to ${t} page`}const Wt=P.forwardRef(function(a,e){const s=Q({props:a,name:"MuiPagination"}),{boundaryCount:g=1,className:r,color:p="standard",count:i=1,defaultPage:n=1,disabled:u=!1,getItemAriaLabel:C=_t,hideNextButton:m=!1,hidePrevButton:f=!1,renderItem:c=k=>o.jsx(Ot,x({},k)),shape:l="circular",showFirstButton:j=!1,showLastButton:L=!1,siblingCount:b=1,size:N="medium",variant:v="text"}=s,z=W(s,At),{items:y}=Nt(x({},s,{componentName:"Pagination"})),$=x({},s,{boundaryCount:g,color:p,count:i,defaultPage:n,disabled:u,getItemAriaLabel:C,hideNextButton:m,hidePrevButton:f,renderItem:c,shape:l,showFirstButton:j,showLastButton:L,siblingCount:b,size:N,variant:v}),O=Et($);return o.jsx(wt,x({"aria-label":"pagination navigation",className:_(O.root,r),ownerState:$,ref:e},z,{children:o.jsx(Tt,{className:O.ul,ownerState:$,children:y.map((k,d)=>o.jsx("li",{children:c(x({},k,{color:p,"aria-label":C(k.type,k.page,k.selected),shape:l,size:N,variant:v}))},d))})}))}),St=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Ut=/^[a-zA-Z]:\\/;function Ft(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return Ut.test(t)?!1:St.test(t)}const Dt=["http","https"],Vt=["nofollow"],Gt={};function Zt(t){const a=t||Gt,e=a.protocols||Dt,s=mt(a.test);return function(g){ht(g,"element",function(r,p,i){if(r.tagName==="a"&&typeof r.properties.href=="string"&&s(r,p,i)){const n=r.properties.href;if(Ft(n)?e.includes(n.slice(0,n.indexOf(":"))):n.startsWith("//")){const u=A(a.content,r),C=u&&!Array.isArray(u)?[u]:u,m=A(a.rel,r)||Vt,f=typeof m=="string"?Ct(m):m,c=A(a.target,r),l=A(a.properties,r);if(l&&Object.assign(r.properties,T(l)),f.length>0&&(r.properties.rel=[...f]),c&&(r.properties.target=c),C){const j=A(a.contentProperties,r)||{};r.children.push({type:"element",tagName:"span",properties:T(j),children:T(C)})}}}})}}function A(t,a){return typeof t=="function"?t(a):t}let Z=!1;const Kt=P.forwardRef(function(a,e){return Z||(console.warn(["MUI: The Pagination component was moved from the lab to the core.","","You should use `import { Pagination } from '@mui/material'`","or `import Pagination from '@mui/material/Pagination'`"].join(`
|
|
2
2
|
`)),Z=!0),o.jsx(Wt,x({ref:e},a))}),tt=P.createContext({}),{Provider:Xt,Consumer:sa}=tt;function Ht({children:t,scope:a="",categories:e=[],showScope:s,scopeFormatter:g}){const{api:r,info:p}=q(),[i,n]=P.useState([]),[u,C]=P.useState({total:0,pageSize:20,pageCount:0,page:1}),[m,f]=P.useState(!1),[c,l]=$t(`audit-log-category-${a}`,"all"),L=[{value:"all",label:"All",description:""},{value:"blocklet",label:"Blocklet Management",description:""},{value:"server",label:"Server Management",description:""},{value:"team",label:"Team Management",description:""},{value:"security",label:"Security",description:""},{value:"certificates",label:"Certificate Management",description:""},{value:"integrations",label:"Integration Management",description:""},{value:"gateway",label:"Gateway",description:""}].filter(v=>e.length?v.value==="all"||e.includes(v.value):!0),b=async({page:v=1,silent:z=!0}={})=>{if(!m){z||f(!0);try{const y=await r.getAuditLogs({input:{paging:{page:v},category:c==="all"?"":c,scope:a}});s&&(y.list||[]).forEach($=>{$.scope!==p.did&&($.link=`/blocklets/${$.scope}/components`)}),n(y.list),C(y.paging),f(!1)}catch(y){it.error(y.message),f(!1)}}};P.useEffect(()=>{b({page:1,silent:!1})},[]),P.useEffect(()=>{b({page:1,silent:!1})},[c]);const N={loading:m,fetch:b,filter:{category:c,scope:a},categories:L,setCategory:l,data:i,paging:u,showScope:s,scopeFormatter:g};return o.jsx(Xt,{value:{auditLogs:N},children:t})}function at(){const{auditLogs:t}=P.useContext(tt);return t}const Qt=({log:t,info:a,inService:e})=>e?`${yt.WELLKNOWN_BLOCKLET_ADMIN_PATH}/members?did=${t.actor.did}`:t.scope===a.did?`/team/members?did=${t.actor.did}`:`/blocklets/${t.scope}/members?did=${t.actor.did}`;function Yt({log:t}){var p,i;const{inService:a,info:e}=q(),{showScope:s,scopeFormatter:g=n=>n}=at();if(!t.actor.did)return null;const r=!["blocklet",""].includes(t.actor.role);return o.jsxs(w,{className:"log-entry","data-cy":"log-entry",children:[o.jsx("div",{className:"log-author",children:r?o.jsx(F,{did:t.actor.did,size:36,shape:"circle"}):o.jsx(F,{did:t.actor.did,size:36})}),o.jsxs("div",{className:"log-body",children:[o.jsxs(B,{className:"log-header",color:"textSecondary",component:"p",gutterBottom:!0,display:"flex",alignItems:"center",children:[s&&o.jsx(D,{to:t.link,children:o.jsx(xt,{style:{marginRight:8},children:g(t.scope)})}),r?o.jsxs(D,{to:Qt({log:t,inService:a,info:e}),target:"_blank",children:[t.actor.fullName,t.actor.role?`(${t.actor.role})`:""]}):o.jsxs("span",{children:[t.actor.fullName,t.actor.role?`(${t.actor.role})`:""]})," ",o.jsx("span",{style:{margin:"0 4px"},children:"-"})," ",t.action]}),o.jsx(B,{className:"log-content",maxWidth:"lg",color:"textPrimary",component:"div","data-color-mode":"light",gutterBottom:!0,children:o.jsx(Pt,{source:t.content,rehypePlugins:[[Zt,{target:"_blank"}]]})}),o.jsxs(w,{className:"log-meta",variant:"body2",children:[!!t.ip&&o.jsx(B,{component:"span",color:"textSecondary",children:`IP: ${t.ip}`}),!!((p=t.env.os)!=null&&p.name)&&o.jsxs(B,{component:"span",color:"textSecondary",children:[t.env.os.name,"(",t.env.os.version,")"]}),!!((i=t.env.browser)!=null&&i.name)&&o.jsxs(B,{component:"span",color:"textSecondary",children:[t.env.browser.name,"(",t.env.browser.version,")"]}),o.jsx(B,{component:"span",color:"textSecondary",children:o.jsx(bt,{value:t.createdAt})})]})]})]})}function qt(){const{t}=lt(),{data:a,loading:e,paging:s,filter:g,categories:r,setCategory:p,fetch:i}=at();return e?o.jsx("div",{style:{textAlign:"center",marginTop:"50px"},children:o.jsx(ct,{})}):o.jsxs(Jt,{"data-cy":"audit-logs",children:[o.jsx(w,{className:"log-controls",children:o.jsxs(dt,{style:{width:"240px"},variant:"outlined",children:[o.jsx(pt,{children:t("common.filter")}),o.jsx(ut,{"data-cy":"filter-by-category-trigger",value:g.category,onChange:n=>p(n.target.value),fullWidth:!0,label:t("common.category"),disabled:e,children:r.map(n=>o.jsx(gt,{value:n.value,"data-cy":`filter-by-category-${n.value}`,children:o.jsx(w,{children:o.jsx("span",{children:n.label})})},n.label))})]})}),a.length===0&&o.jsx(ft,{children:t("common.empty")}),a.length>0&&a.map(n=>o.jsx(Yt,{log:n},n.id)),s.pageCount>1&&o.jsx(Kt,{page:s.page,count:s.pageCount,onChange:(n,u)=>i({page:u}),showFirstButton:!0,showLastButton:!0})]})}function na({scope:t,categories:a,showScope:e,scopeFormatter:s}){return o.jsx(Ht,{scope:t,categories:a,showScope:e,scopeFormatter:s,children:o.jsx(qt,{})})}const Jt=vt.div`
|
|
3
3
|
.log-controls {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cN as l,fa as x}from"./index-
|
|
1
|
+
import{cN as l,fa as x}from"./index-CWbfhRhH.js";class m{constructor(e,t,o){this.name=e,this.prefix=t,this.baseEncode=o}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class w{constructor(e,t,o){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=o}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return f(this,e)}}class g{constructor(e){this.decoders=e}or(e){return f(this,e)}decode(e){const t=e[0],o=this.decoders[t];if(o)return o.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const f=(r,e)=>new g({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}});class y{constructor(e,t,o,s){this.name=e,this.prefix=t,this.baseEncode=o,this.baseDecode=s,this.encoder=new m(e,t,o),this.decoder=new w(e,t,s)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const E=({name:r,prefix:e,encode:t,decode:o})=>new y(r,e,t,o),$=(r,e,t,o)=>{const s={};for(let p=0;p<e.length;++p)s[e[p]]=p;let c=r.length;for(;r[c-1]==="=";)--c;const i=new Uint8Array(c*t/8|0);let n=0,d=0,u=0;for(let p=0;p<c;++p){const h=s[r[p]];if(h===void 0)throw new SyntaxError(`Non-${o} character`);d=d<<t|h,n+=t,n>=8&&(n-=8,i[u++]=255&d>>n)}if(n>=t||255&d<<8-n)throw new SyntaxError("Unexpected end of data");return i},A=(r,e,t)=>{const o=e[e.length-1]==="=",s=(1<<t)-1;let c="",i=0,n=0;for(let d=0;d<r.length;++d)for(n=n<<8|r[d],i+=8;i>t;)i-=t,c+=e[s&n>>i];if(i&&(c+=e[s&n<<t-i]),o)for(;c.length*t&7;)c+="=";return c},a=({name:r,prefix:e,bitsPerChar:t,alphabet:o})=>E({prefix:e,name:r,encode(s){return A(s,o,t)},decode(s){return $(s,o,t,r)}}),C=a({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),P=a({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),S=a({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),U=a({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),v=a({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),N=a({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),O=a({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),j=a({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),k=a({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),D=Object.freeze(Object.defineProperty({__proto__:null,base32:C,base32hex:v,base32hexpad:O,base32hexpadupper:j,base32hexupper:N,base32pad:S,base32padupper:U,base32upper:P,base32z:k},Symbol.toStringTag,{value:"Module"})),B=l(D),{toBuffer:q,toAddress:z,toBase58:J,toHex:T}=x,{base32:b}=B,H=r=>{if(!r)return r;const e=q(z(r));return b.encode(e)},I=r=>{if(!r)return r;const e=b.decode(r),t=J(e);return t.length>30?t:T(e)};var R={encode:H,decode:I};export{R as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t}from"./index-CWbfhRhH.js";const e=t.createContext({});function r(){return t.useContext(e)}export{e as B,r as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as I}from"./codemirror.es-
|
|
1
|
+
import{a as I}from"./codemirror.es-Cq41RbvR.js";import"./index-D49YArUG.js";import"./index-CWbfhRhH.js";var H=Object.defineProperty,L=(k,m)=>H(k,"name",{value:m,configurable:!0});function j(k,m){return m.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(u){if(u!=="default"&&!(u in k)){var n=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(k,u,n.get?n:{enumerable:!0,get:function(){return e[u]}})}})}),Object.freeze(k)}L(j,"_mergeNamespaces");var F={exports:{}};(function(k,m){(function(e){e(I.exports)})(function(e){function u(n){return function(o,a){var r=a.line,s=o.getLine(r);function c(i){for(var l,v=a.ch,p=0;;){var b=v<=0?-1:s.lastIndexOf(i[0],v-1);if(b==-1){if(p==1)break;p=1,v=s.length;continue}if(p==1&&b<a.ch)break;if(l=o.getTokenTypeAt(e.Pos(r,b+1)),!/^(comment|string)/.test(l))return{ch:b+1,tokenType:l,pair:i};v=b-1}}L(c,"findOpening");function h(i){var l=1,v=o.lastLine(),p,b=i.ch,A;e:for(var d=r;d<=v;++d)for(var T=o.getLine(d),P=d==r?b:0;;){var O=T.indexOf(i.pair[0],P),_=T.indexOf(i.pair[1],P);if(O<0&&(O=T.length),_<0&&(_=T.length),P=Math.min(O,_),P==T.length)break;if(o.getTokenTypeAt(e.Pos(d,P+1))==i.tokenType){if(P==O)++l;else if(!--l){p=d,A=P;break e}}++P}return p==null||r==p?null:{from:e.Pos(r,b),to:e.Pos(p,A)}}L(h,"findRange");for(var f=[],t=0;t<n.length;t++){var g=c(n[t]);g&&f.push(g)}f.sort(function(i,l){return i.ch-l.ch});for(var t=0;t<f.length;t++){var y=h(f[t]);if(y)return y}return null}}L(u,"bracketFolding"),e.registerHelper("fold","brace",u([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",u([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(n,o){function a(t){if(t<n.firstLine()||t>n.lastLine())return null;var g=n.getTokenAt(e.Pos(t,1));if(/\S/.test(g.string)||(g=n.getTokenAt(e.Pos(t,g.end+1))),g.type!="keyword"||g.string!="import")return null;for(var y=t,i=Math.min(n.lastLine(),t+10);y<=i;++y){var l=n.getLine(y),v=l.indexOf(";");if(v!=-1)return{startCh:g.end,end:e.Pos(y,v)}}}L(a,"hasImport");var r=o.line,s=a(r),c;if(!s||a(r-1)||(c=a(r-2))&&c.end.line==r-1)return null;for(var h=s.end;;){var f=a(h.line+1);if(f==null)break;h=f.end}return{from:n.clipPos(e.Pos(r,s.startCh+1)),to:h}}),e.registerHelper("fold","include",function(n,o){function a(f){if(f<n.firstLine()||f>n.lastLine())return null;var t=n.getTokenAt(e.Pos(f,1));if(/\S/.test(t.string)||(t=n.getTokenAt(e.Pos(f,t.end+1))),t.type=="meta"&&t.string.slice(0,8)=="#include")return t.start+8}L(a,"hasInclude");var r=o.line,s=a(r);if(s==null||a(r-1)!=null)return null;for(var c=r;;){var h=a(c+1);if(h==null)break;++c}return{from:e.Pos(r,s+1),to:n.clipPos(e.Pos(c))}})})})();var S=F.exports,E=Object.freeze(j({__proto__:null,[Symbol.toStringTag]:"Module",default:S},[F.exports]));export{E as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,b9 as Z,l as N,bh as G,N as z,P as s,n as J,b8 as K,r as w,aV as Q,hx as U}from"./index-
|
|
1
|
+
import{j as i,b9 as Z,l as N,bh as G,N as z,P as s,n as J,b8 as K,r as w,aV as Q,hx as U}from"./index-CWbfhRhH.js";function D(t,e,n,r){return parseFloat((e-r*e/t+n).toFixed(2))}function _(t){[...t.querySelectorAll("*")].forEach(e=>t.removeChild(e))}function tt(t){return t.value}function C(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg",t);for(const r in e)n.setAttribute(r,e[r]);return n}function et(t,e=[],n={}){if(_(t),e.length<=1)return;let r=[];typeof e[0]=="number"?r=e.map(a=>({value:a})):r=e;const{onmousemove:l}=n,{onmouseout:p}=n,R="interactive"in n?n.interactive:!!l,x=n.spotRadius||2,c=x*2,F=n.cursorWidth||2,o=parseFloat(t.attributes["stroke-width"].value),A=n.fetch||tt,h=r.map(a=>A(a)),g=parseFloat(t.attributes.width.value)-c*2,m=parseFloat(t.attributes.height.value),T=m-o*2-c,S=Math.max(...h)===0?1:Math.max(...h),d=-1e3,j=h.length-1,M=g/j,b=[],O=D(S,T,o+x,h[0]);let E=`M${c} ${O}`;h.forEach((a,y)=>{const u=y*M+c,f=D(S,T,o+x,a);b.push(Object.assign({},r[y],{index:y,x:u,y:f})),E+=` L ${u} ${f}`});const V=C("path",{class:"sparkline--line",d:E,fill:"none"}),X=`${E} V ${m} L ${c} ${m} Z`,Y=C("path",{class:"sparkline--fill",d:X,stroke:"none"});if(t.appendChild(Y),t.appendChild(V),!R)return;const k=C("line",{class:"sparkline--cursor",x1:d,x2:d,y1:0,y2:m,"stroke-width":F}),$=C("circle",{class:"sparkline--spot",cx:d,cy:d,r:x});t.appendChild(k),t.appendChild($);const P=C("rect",{width:t.attributes.width.value,height:t.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});t.appendChild(P),P.addEventListener("mouseout",a=>{k.setAttribute("x1",d.toString()),k.setAttribute("x2",d.toString()),$.setAttribute("cx",d.toString()),p&&p(a)}),P.addEventListener("mousemove",a=>{const y=a.offsetX;let u=b.find(H=>H.x>=y);u||(u=b[j]);const f=b[b.indexOf(u)-1];let v,L;f?(L=f.x+(u.x-f.x)/2,v=y>=L?u:f):v=u;const{x:I}=v,{y:B}=v;$.setAttribute("cx",I.toString()),$.setAttribute("cy",B.toString()),k.setAttribute("x1",I.toString()),k.setAttribute("x2",I.toString()),l&&l(a,v)})}function q({style:t,title:e,value:n,graph:r,description:l,empty:p}){return i.jsx(nt,{children:i.jsxs(Z,{style:{...t},children:[i.jsx(N,{sx:{fontSize:14},color:"text.secondary",children:e}),p&&G.isValidElement(p)?i.jsx(z,{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center",style:{height:150},children:p}):i.jsxs(i.Fragment,{children:[i.jsx(N,{variant:"h5",component:"div",mt:1,children:n}),r,!!l&&i.jsx(z,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:l})]})]})})}q.propTypes={style:s.object,title:s.node,value:s.node,graph:s.node,description:s.any,empty:s.node};q.defaultProps={style:{},title:null,value:null,graph:null,empty:null,description:null};const nt=J(K)`
|
|
2
2
|
.card-content {
|
|
3
3
|
height: 150px;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,f as s,j as t,dg as r,P as c}from"./index-
|
|
1
|
+
import{r as i,f as s,j as t,dg as r,P as c}from"./index-CWbfhRhH.js";function n({children:p,...e}){const{t:o}=i.useContext(s);return t.jsx(r,{tip:o("common.copyTip"),copiedTip:o("common.copiedTip"),...e,children:p})}n.propTypes={children:c.any.isRequired};export{n as C};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as G}from"./codemirror.es-
|
|
1
|
+
import{a as G}from"./codemirror.es-Cq41RbvR.js";import"./index-D49YArUG.js";import"./index-CWbfhRhH.js";var H=Object.defineProperty,h=(O,B)=>H(O,"name",{value:B,configurable:!0});function D(O,B){return B.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(d){if(d!=="default"&&!(d in O)){var o=Object.getOwnPropertyDescriptor(n,d);Object.defineProperty(O,d,o.get?o:{enumerable:!0,get:function(){return n[d]}})}})}),Object.freeze(O)}h(D,"_mergeNamespaces");var q={exports:{}};(function(O,B){(function(n){n(G.exports)})(function(n){var d={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},o=n.Pos;n.defineOption("autoCloseBrackets",!1,function(e,t,a){a&&a!=n.Init&&(e.removeKeyMap(y),e.state.closeBrackets=null),t&&(_(b(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(y))});function b(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:d[t]}h(b,"getOption");var y={Backspace:$,Enter:z};function _(e){for(var t=0;t<e.length;t++){var a=e.charAt(t),i="'"+a+"'";y[i]||(y[i]=I(a))}}h(_,"ensureBound"),_(d.pairs+"`");function I(e){return function(t){return K(t,e)}}h(I,"handler");function x(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var a=e.getModeAt(e.getCursor());return a.closeBrackets||t}h(x,"getConfig");function $(e){var t=x(e);if(!t||e.getOption("disableInput"))return n.Pass;for(var a=b(t,"pairs"),i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}for(var r=i.length-1;r>=0;r--){var l=i[r].head;e.replaceRange("",o(l.line,l.ch-1),o(l.line,l.ch+1),"+delete")}}h($,"handleBackspace");function z(e){var t=x(e),a=t&&b(t,"explode");if(!a||e.getOption("disableInput"))return n.Pass;for(var i=e.listSelections(),r=0;r<i.length;r++){if(!i[r].empty())return n.Pass;var f=j(e,i[r].head);if(!f||a.indexOf(f)%2!=0)return n.Pass}e.operation(function(){var l=e.lineSeparator()||`
|
|
2
2
|
`;e.replaceSelection(l+l,null),P(e,-1),i=e.listSelections();for(var g=0;g<i.length;g++){var k=i[g].head.line;e.indentLine(k,null,!0),e.indentLine(k+1,null,!0)}})}h(z,"handleEnter");function P(e,t){for(var a=[],i=e.listSelections(),r=0,f=0;f<i.length;f++){var l=i[f];l.head==e.getCursor()&&(r=f);var g=l.head.ch||t>0?{line:l.head.line,ch:l.head.ch+t}:{line:l.head.line-1};a.push({anchor:g,head:g})}e.setSelections(a,r)}h(P,"moveSel");function F(e){var t=n.cmpPos(e.anchor,e.head)>0;return{anchor:new o(e.anchor.line,e.anchor.ch+(t?-1:1)),head:new o(e.head.line,e.head.ch+(t?1:-1))}}h(F,"contractSelection");function K(e,t){var a=x(e);if(!a||e.getOption("disableInput"))return n.Pass;var i=b(a,"pairs"),r=i.indexOf(t);if(r==-1)return n.Pass;for(var f=b(a,"closeBefore"),l=b(a,"triples"),g=i.charAt(r+1)==t,k=e.listSelections(),R=r%2==0,c,E=0;E<k.length;E++){var N=k[E],s=N.head,p,A=e.getRange(s,o(s.line,s.ch+1));if(R&&!N.empty())p="surround";else if((g||!R)&&A==t)g&&L(e,s)?p="both":l.indexOf(t)>=0&&e.getRange(s,o(s.line,s.ch+3))==t+t+t?p="skipThree":p="skip";else if(g&&s.ch>1&&l.indexOf(t)>=0&&e.getRange(o(s.line,s.ch-2),s)==t+t){if(s.ch>2&&/\bstring/.test(e.getTokenTypeAt(o(s.line,s.ch-2))))return n.Pass;p="addFour"}else if(g){var W=s.ch==0?" ":e.getRange(o(s.line,s.ch-1),s);if(!n.isWordChar(A)&&W!=t&&!n.isWordChar(W))p="both";else return n.Pass}else if(R&&(A.length===0||/\s/.test(A)||f.indexOf(A)>-1))p="both";else return n.Pass;if(!c)c=p;else if(c!=p)return n.Pass}var S=r%2?i.charAt(r-1):t,w=r%2?t:i.charAt(r+1);e.operation(function(){if(c=="skip")P(e,1);else if(c=="skipThree")P(e,3);else if(c=="surround"){for(var u=e.getSelections(),v=0;v<u.length;v++)u[v]=S+u[v]+w;e.replaceSelections(u,"around"),u=e.listSelections().slice();for(var v=0;v<u.length;v++)u[v]=F(u[v]);e.setSelections(u)}else c=="both"?(e.replaceSelection(S+w,null),e.triggerElectric(S+w),P(e,-1)):c=="addFour"&&(e.replaceSelection(S+S+S+S,"before"),P(e,1))})}h(K,"handleChar");function j(e,t){var a=e.getRange(o(t.line,t.ch-1),o(t.line,t.ch+1));return a.length==2?a:null}h(j,"charsAround");function L(e,t){var a=e.getTokenAt(o(t.line,t.ch+1));return/\bstring/.test(a.type)&&a.start==t.ch&&(t.ch==0||!/\bstring/.test(e.getTokenTypeAt(t)))}h(L,"stringStartsAfter")})})();var J=q.exports,V=Object.freeze(D({__proto__:null,[Symbol.toStringTag]:"Module",default:J},[q.exports]));export{V as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as su}from"./index-BUNJKpmD.js";import"./index-CenWKla5.js";var uu=Object.defineProperty,u=(ht,ei)=>uu(ht,"name",{value:ei,configurable:!0});function Ks(ht,ei){return ei.forEach(function(z){z&&typeof z!="string"&&!Array.isArray(z)&&Object.keys(z).forEach(function(Ne){if(Ne!=="default"&&!(Ne in ht)){var Ce=Object.getOwnPropertyDescriptor(z,Ne);Object.defineProperty(ht,Ne,Ce.get?Ce:{enumerable:!0,get:function(){return z[Ne]}})}})}),Object.freeze(ht)}u(Ks,"_mergeNamespaces");var Al={exports:{}};(function(ht,ei){(function(z,Ne){ht.exports=Ne()})(su,function(){var z=navigator.userAgent,Ne=navigator.platform,Ce=/gecko\/\d/i.test(z),Ol=/MSIE \d/.test(z),Nl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(z),ti=/Edge\/(\d+)/.exec(z),N=Ol||Nl||ti,I=N&&(Ol?document.documentMode||6:+(ti||Nl)[1]),oe=!ti&&/WebKit\//.test(z),_s=oe&&/Qt\/\d+\.\d+/.test(z),ri=!ti&&/Chrome\//.test(z),Te=/Opera\//.test(z),ii=/Apple Computer/.test(navigator.vendor),Xs=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(z),Ys=/PhantomJS/.test(z),hr=ii&&(/Mobile\/\w+/.test(z)||navigator.maxTouchPoints>2),ni=/Android/.test(z),dr=hr||ni||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(z),Se=hr||/Mac/.test(Ne),qs=/\bCrOS\b/.test(z),Zs=/win/i.test(Ne),dt=Te&&z.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Te=!1,oe=!0);var Wl=Se&&(_s||Te&&(dt==null||dt<12.11)),gn=Ce||N&&I>=9;function ct(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}u(ct,"classTest");var pt=u(function(e,t){var i=e.className,r=ct(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}},"rmClass");function Be(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}u(Be,"removeChildren");function ve(e,t){return Be(e).appendChild(t)}u(ve,"removeChildrenAndAdd");function T(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}u(T,"elt");function vt(e,t,i,r){var n=T(e,t,i,r);return n.setAttribute("role","presentation"),n}u(vt,"eltP");var gt;document.createRange?gt=u(function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n},"range"):gt=u(function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r},"range");function Re(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}u(Re,"contains");function ye(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}u(ye,"activeElt");function Je(e,t){var i=e.className;ct(t).test(i)||(e.className+=(i?" ":"")+t)}u(Je,"addClass");function oi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!ct(i[r]).test(t)&&(t+=" "+i[r]);return t}u(oi,"joinClasses");var cr=u(function(e){e.select()},"selectInput");hr?cr=u(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):N&&(cr=u(function(e){try{e.select()}catch{}},"selectInput"));function li(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}u(li,"bind");function je(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}u(je,"copyObj");function me(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,l=n||0;;){var a=e.indexOf(" ",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}u(me,"countColumn");var Ve=u(function(){this.id=null,this.f=null,this.time=0,this.handler=li(this.onTimeout,this)},"Delayed");Ve.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ve.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}u(ee,"indexOf");var Hl=50,ai={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},yn={origin:"*mouse"},pr={origin:"+move"};function si(e,t,i){for(var r=0,n=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||n+l>=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}u(si,"findColumn");var ui=[""];function fi(e){for(;ui.length<=e;)ui.push(W(ui)+" ");return ui[e]}u(fi,"spaceStr");function W(e){return e[e.length-1]}u(W,"lst");function vr(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}u(vr,"map");function Pl(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}u(Pl,"insertSorted");function mn(){}u(mn,"nothing");function bn(e,t){var i;return Object.create?i=Object.create(e):(mn.prototype=e,i=new mn),t&&je(t,i),i}u(bn,"createObj");var Qs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function hi(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Qs.test(e))}u(hi,"isWordCharBasic");function gr(e,t){return t?t.source.indexOf("\\w")>-1&&hi(e)?!0:t.test(e):hi(e)}u(gr,"isWordChar");function xn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}u(xn,"isEmpty");var Js=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function di(e){return e.charCodeAt(0)>=768&&Js.test(e)}u(di,"isExtendingChar");function Cn(e,t,i){for(;(i<0?t>0:t<e.length)&&di(e.charAt(t));)t+=i;return t}u(Cn,"skipExtendingChars");function Et(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}u(Et,"findFirst");function Fl(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var l=e[o];(l.from<i&&l.to>t||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}u(Fl,"iterateBidiSections");var yr=null;function It(e,t,i){var r;yr=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}u(It,"getBidiPartAt");var js=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}u(i,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(f,h,d){this.level=f,this.from=h,this.to=d}return u(s,"BidiSpan"),function(f,h){var d=h=="ltr"?"L":"R";if(f.length==0||h=="ltr"&&!r.test(f))return!1;for(var p=f.length,c=[],v=0;v<p;++v)c.push(i(f.charCodeAt(v)));for(var g=0,m=d;g<p;++g){var b=c[g];b=="m"?c[g]=m:m=b}for(var C=0,x=d;C<p;++C){var S=c[C];S=="1"&&x=="r"?c[C]="n":o.test(S)&&(x=S,S=="r"&&(c[C]="R"))}for(var k=1,L=c[0];k<p-1;++k){var O=c[k];O=="+"&&L=="1"&&c[k+1]=="1"?c[k]="1":O==","&&L==c[k+1]&&(L=="1"||L=="n")&&(c[k]=L),L=O}for(var E=0;E<p;++E){var V=c[E];if(V==",")c[E]="N";else if(V=="%"){var R=void 0;for(R=E+1;R<p&&c[R]=="%";++R);for(var he=E&&c[E-1]=="!"||R<p&&c[R]=="1"?"1":"N",de=E;de<R;++de)c[de]=he;E=R-1}}for(var X=0,ce=d;X<p;++X){var re=c[X];ce=="L"&&re=="1"?c[X]="L":o.test(re)&&(ce=re)}for(var j=0;j<p;++j)if(n.test(c[j])){var Y=void 0;for(Y=j+1;Y<p&&n.test(c[Y]);++Y);for(var G=(j?c[j-1]:d)=="L",pe=(Y<p?c[Y]:d)=="L",ur=G==pe?G?"L":"R":d,ft=j;ft<Y;++ft)c[ft]=ur;j=Y-1}for(var ne=[],Ie,$=0;$<p;)if(l.test(c[$])){var Ml=$;for(++$;$<p&&l.test(c[$]);++$);ne.push(new s(0,Ml,$))}else{var Qe=$,Pt=ne.length,Ft=h=="rtl"?1:0;for(++$;$<p&&c[$]!="L";++$);for(var se=Qe;se<$;)if(a.test(c[se])){Qe<se&&(ne.splice(Pt,0,new s(1,Qe,se)),Pt+=Ft);var fr=se;for(++se;se<$&&a.test(c[se]);++se);ne.splice(Pt,0,new s(2,fr,se)),Pt+=Ft,Qe=se}else++se;Qe<$&&ne.splice(Pt,0,new s(1,Qe,$))}return h=="ltr"&&(ne[0].level==1&&(Ie=f.match(/^\s+/))&&(ne[0].from=Ie[0].length,ne.unshift(new s(0,0,Ie[0].length))),W(ne).level==1&&(Ie=f.match(/\s+$/))&&(W(ne).to-=Ie[0].length,ne.push(new s(0,p-Ie[0].length,p)))),h=="rtl"?ne.reverse():ne}}();function He(e,t){var i=e.order;return i==null&&(i=e.order=js(e.text,t)),i}u(He,"getOrder");var El=[],M=u(function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||El).concat(i)}},"on");function ci(e,t){return e._handlers&&e._handlers[t]||El}u(ci,"getHandlers");function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var o=ee(n,i);o>-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}u(ge,"off");function U(e,t){var i=ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}u(U,"signal");function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),U(e,i||t.type,e,t),pi(t)||t.codemirrorIgnore}u(q,"signalDOMEvent");function Sn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}u(Sn,"signalCursorActivity");function be(e,t){return ci(e,t).length>0}u(be,"hasHandler");function yt(e){e.prototype.on=function(t,i){M(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}u(yt,"eventMixin");function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}u(le,"e_preventDefault");function wn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}u(wn,"e_stopPropagation");function pi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}u(pi,"e_defaultPrevented");function Bt(e){le(e),wn(e)}u(Bt,"e_stop");function vi(e){return e.target||e.srcElement}u(vi,"e_target");function Ln(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Se&&e.ctrlKey&&t==1&&(t=3),t}u(Ln,"e_button");var Vs=function(){if(N&&I<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),kn;function Il(e){if(kn==null){var t=T("span","");ve(e,T("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=t.offsetWidth<=1&&t.offsetHeight>2&&!(N&&I<8))}var i=kn?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}u(Il,"zeroWidthElement");var Tn;function Bl(e){if(Tn!=null)return Tn;var t=ve(e,document.createTextNode("AخA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Be(e),!i||i.left==i.right?!1:Tn=r.right-i.right<3}u(Bl,"hasBadBidiRects");var Mn=`
|
|
1
|
+
import{c as su}from"./index-D49YArUG.js";import"./index-CWbfhRhH.js";var uu=Object.defineProperty,u=(ht,ei)=>uu(ht,"name",{value:ei,configurable:!0});function Ks(ht,ei){return ei.forEach(function(z){z&&typeof z!="string"&&!Array.isArray(z)&&Object.keys(z).forEach(function(Ne){if(Ne!=="default"&&!(Ne in ht)){var Ce=Object.getOwnPropertyDescriptor(z,Ne);Object.defineProperty(ht,Ne,Ce.get?Ce:{enumerable:!0,get:function(){return z[Ne]}})}})}),Object.freeze(ht)}u(Ks,"_mergeNamespaces");var Al={exports:{}};(function(ht,ei){(function(z,Ne){ht.exports=Ne()})(su,function(){var z=navigator.userAgent,Ne=navigator.platform,Ce=/gecko\/\d/i.test(z),Ol=/MSIE \d/.test(z),Nl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(z),ti=/Edge\/(\d+)/.exec(z),N=Ol||Nl||ti,I=N&&(Ol?document.documentMode||6:+(ti||Nl)[1]),oe=!ti&&/WebKit\//.test(z),_s=oe&&/Qt\/\d+\.\d+/.test(z),ri=!ti&&/Chrome\//.test(z),Te=/Opera\//.test(z),ii=/Apple Computer/.test(navigator.vendor),Xs=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(z),Ys=/PhantomJS/.test(z),hr=ii&&(/Mobile\/\w+/.test(z)||navigator.maxTouchPoints>2),ni=/Android/.test(z),dr=hr||ni||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(z),Se=hr||/Mac/.test(Ne),qs=/\bCrOS\b/.test(z),Zs=/win/i.test(Ne),dt=Te&&z.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(Te=!1,oe=!0);var Wl=Se&&(_s||Te&&(dt==null||dt<12.11)),gn=Ce||N&&I>=9;function ct(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}u(ct,"classTest");var pt=u(function(e,t){var i=e.className,r=ct(t).exec(i);if(r){var n=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(n?r[1]+n:"")}},"rmClass");function Be(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}u(Be,"removeChildren");function ve(e,t){return Be(e).appendChild(t)}u(ve,"removeChildrenAndAdd");function T(e,t,i,r){var n=document.createElement(e);if(i&&(n.className=i),r&&(n.style.cssText=r),typeof t=="string")n.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)n.appendChild(t[o]);return n}u(T,"elt");function vt(e,t,i,r){var n=T(e,t,i,r);return n.setAttribute("role","presentation"),n}u(vt,"eltP");var gt;document.createRange?gt=u(function(e,t,i,r){var n=document.createRange();return n.setEnd(r||e,i),n.setStart(e,t),n},"range"):gt=u(function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r},"range");function Re(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}u(Re,"contains");function ye(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}u(ye,"activeElt");function Je(e,t){var i=e.className;ct(t).test(i)||(e.className+=(i?" ":"")+t)}u(Je,"addClass");function oi(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!ct(i[r]).test(t)&&(t+=" "+i[r]);return t}u(oi,"joinClasses");var cr=u(function(e){e.select()},"selectInput");hr?cr=u(function(e){e.selectionStart=0,e.selectionEnd=e.value.length},"selectInput"):N&&(cr=u(function(e){try{e.select()}catch{}},"selectInput"));function li(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}u(li,"bind");function je(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}u(je,"copyObj");function me(e,t,i,r,n){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,l=n||0;;){var a=e.indexOf(" ",o);if(a<0||a>=t)return l+(t-o);l+=a-o,l+=i-l%i,o=a+1}}u(me,"countColumn");var Ve=u(function(){this.id=null,this.f=null,this.time=0,this.handler=li(this.onTimeout,this)},"Delayed");Ve.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Ve.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function ee(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}u(ee,"indexOf");var Hl=50,ai={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},yn={origin:"*mouse"},pr={origin:"+move"};function si(e,t,i){for(var r=0,n=0;;){var o=e.indexOf(" ",r);o==-1&&(o=e.length);var l=o-r;if(o==e.length||n+l>=t)return r+Math.min(l,t-n);if(n+=o-r,n+=i-n%i,r=o+1,n>=t)return r}}u(si,"findColumn");var ui=[""];function fi(e){for(;ui.length<=e;)ui.push(W(ui)+" ");return ui[e]}u(fi,"spaceStr");function W(e){return e[e.length-1]}u(W,"lst");function vr(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}u(vr,"map");function Pl(e,t,i){for(var r=0,n=i(t);r<e.length&&i(e[r])<=n;)r++;e.splice(r,0,t)}u(Pl,"insertSorted");function mn(){}u(mn,"nothing");function bn(e,t){var i;return Object.create?i=Object.create(e):(mn.prototype=e,i=new mn),t&&je(t,i),i}u(bn,"createObj");var Qs=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function hi(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Qs.test(e))}u(hi,"isWordCharBasic");function gr(e,t){return t?t.source.indexOf("\\w")>-1&&hi(e)?!0:t.test(e):hi(e)}u(gr,"isWordChar");function xn(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}u(xn,"isEmpty");var Js=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function di(e){return e.charCodeAt(0)>=768&&Js.test(e)}u(di,"isExtendingChar");function Cn(e,t,i){for(;(i<0?t>0:t<e.length)&&di(e.charAt(t));)t+=i;return t}u(Cn,"skipExtendingChars");function Et(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var n=(t+i)/2,o=r<0?Math.ceil(n):Math.floor(n);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+r}}u(Et,"findFirst");function Fl(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var n=!1,o=0;o<e.length;++o){var l=e[o];(l.from<i&&l.to>t||t==i&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",o),n=!0)}n||r(t,i,"ltr")}u(Fl,"iterateBidiSections");var yr=null;function It(e,t,i){var r;yr=null;for(var n=0;n<e.length;++n){var o=e[n];if(o.from<t&&o.to>t)return n;o.to==t&&(o.from!=o.to&&i=="before"?r=n:yr=n),o.from==t&&(o.from!=o.to&&i!="before"?r=n:yr=n)}return r??yr}u(It,"getBidiPartAt");var js=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}u(i,"charType");var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(f,h,d){this.level=f,this.from=h,this.to=d}return u(s,"BidiSpan"),function(f,h){var d=h=="ltr"?"L":"R";if(f.length==0||h=="ltr"&&!r.test(f))return!1;for(var p=f.length,c=[],v=0;v<p;++v)c.push(i(f.charCodeAt(v)));for(var g=0,m=d;g<p;++g){var b=c[g];b=="m"?c[g]=m:m=b}for(var C=0,x=d;C<p;++C){var S=c[C];S=="1"&&x=="r"?c[C]="n":o.test(S)&&(x=S,S=="r"&&(c[C]="R"))}for(var k=1,L=c[0];k<p-1;++k){var O=c[k];O=="+"&&L=="1"&&c[k+1]=="1"?c[k]="1":O==","&&L==c[k+1]&&(L=="1"||L=="n")&&(c[k]=L),L=O}for(var E=0;E<p;++E){var V=c[E];if(V==",")c[E]="N";else if(V=="%"){var R=void 0;for(R=E+1;R<p&&c[R]=="%";++R);for(var he=E&&c[E-1]=="!"||R<p&&c[R]=="1"?"1":"N",de=E;de<R;++de)c[de]=he;E=R-1}}for(var X=0,ce=d;X<p;++X){var re=c[X];ce=="L"&&re=="1"?c[X]="L":o.test(re)&&(ce=re)}for(var j=0;j<p;++j)if(n.test(c[j])){var Y=void 0;for(Y=j+1;Y<p&&n.test(c[Y]);++Y);for(var G=(j?c[j-1]:d)=="L",pe=(Y<p?c[Y]:d)=="L",ur=G==pe?G?"L":"R":d,ft=j;ft<Y;++ft)c[ft]=ur;j=Y-1}for(var ne=[],Ie,$=0;$<p;)if(l.test(c[$])){var Ml=$;for(++$;$<p&&l.test(c[$]);++$);ne.push(new s(0,Ml,$))}else{var Qe=$,Pt=ne.length,Ft=h=="rtl"?1:0;for(++$;$<p&&c[$]!="L";++$);for(var se=Qe;se<$;)if(a.test(c[se])){Qe<se&&(ne.splice(Pt,0,new s(1,Qe,se)),Pt+=Ft);var fr=se;for(++se;se<$&&a.test(c[se]);++se);ne.splice(Pt,0,new s(2,fr,se)),Pt+=Ft,Qe=se}else++se;Qe<$&&ne.splice(Pt,0,new s(1,Qe,$))}return h=="ltr"&&(ne[0].level==1&&(Ie=f.match(/^\s+/))&&(ne[0].from=Ie[0].length,ne.unshift(new s(0,0,Ie[0].length))),W(ne).level==1&&(Ie=f.match(/\s+$/))&&(W(ne).to-=Ie[0].length,ne.push(new s(0,p-Ie[0].length,p)))),h=="rtl"?ne.reverse():ne}}();function He(e,t){var i=e.order;return i==null&&(i=e.order=js(e.text,t)),i}u(He,"getOrder");var El=[],M=u(function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||El).concat(i)}},"on");function ci(e,t){return e._handlers&&e._handlers[t]||El}u(ci,"getHandlers");function ge(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,n=r&&r[t];if(n){var o=ee(n,i);o>-1&&(r[t]=n.slice(0,o).concat(n.slice(o+1)))}}}u(ge,"off");function U(e,t){var i=ci(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),n=0;n<i.length;++n)i[n].apply(null,r)}u(U,"signal");function q(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),U(e,i||t.type,e,t),pi(t)||t.codemirrorIgnore}u(q,"signalDOMEvent");function Sn(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)ee(i,t[r])==-1&&i.push(t[r])}u(Sn,"signalCursorActivity");function be(e,t){return ci(e,t).length>0}u(be,"hasHandler");function yt(e){e.prototype.on=function(t,i){M(this,t,i)},e.prototype.off=function(t,i){ge(this,t,i)}}u(yt,"eventMixin");function le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}u(le,"e_preventDefault");function wn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}u(wn,"e_stopPropagation");function pi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}u(pi,"e_defaultPrevented");function Bt(e){le(e),wn(e)}u(Bt,"e_stop");function vi(e){return e.target||e.srcElement}u(vi,"e_target");function Ln(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Se&&e.ctrlKey&&t==1&&(t=3),t}u(Ln,"e_button");var Vs=function(){if(N&&I<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),kn;function Il(e){if(kn==null){var t=T("span","");ve(e,T("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(kn=t.offsetWidth<=1&&t.offsetHeight>2&&!(N&&I<8))}var i=kn?T("span",""):T("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}u(Il,"zeroWidthElement");var Tn;function Bl(e){if(Tn!=null)return Tn;var t=ve(e,document.createTextNode("AخA")),i=gt(t,0,1).getBoundingClientRect(),r=gt(t,1,2).getBoundingClientRect();return Be(e),!i||i.left==i.right?!1:Tn=r.right-i.right<3}u(Bl,"hasBadBidiRects");var Mn=`
|
|
2
2
|
|
|
3
3
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e.indexOf(`
|
|
4
4
|
`,t);n==-1&&(n=e.length);var o=e.slice(t,e.charAt(n-1)=="\r"?n-1:n),l=o.indexOf("\r");l!=-1?(i.push(o.slice(0,l)),t+=l+1):(i.push(o),t=n+1)}return i}:function(e){return e.split(/\r\n?|\n/)},$s=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},eu=function(){var e=T("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Dn=null;function Rl(e){if(Dn!=null)return Dn;var t=ve(e,T("span","x")),i=t.getBoundingClientRect(),r=gt(t,0,1).getBoundingClientRect();return Dn=Math.abs(i.left-r.left)>1}u(Rl,"hasBadZoomedRects");var An={},Rt={};function zl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),An[e]=t}u(zl,"defineMode");function Gl(e,t){Rt[e]=t}u(Gl,"defineMIME");function mr(e){if(typeof e=="string"&&Rt.hasOwnProperty(e))e=Rt[e];else if(e&&typeof e.name=="string"&&Rt.hasOwnProperty(e.name)){var t=Rt[e.name];typeof t=="string"&&(t={name:t}),e=bn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return mr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return mr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}u(mr,"resolveMode");function gi(e,t){t=mr(t);var i=An[t.name];if(!i)return gi(e,"text/plain");var r=i(e,t);if(zt.hasOwnProperty(t.name)){var n=zt[t.name];for(var o in n)n.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=n[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}u(gi,"getMode");var zt={};function Ul(e,t){var i=zt.hasOwnProperty(e)?zt[e]:zt[e]={};je(t,i)}u(Ul,"extendMode");function $e(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var n=t[r];n instanceof Array&&(n=n.concat([])),i[r]=n}return i}u($e,"copyState");function yi(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}u(yi,"innerMode");function On(e,t,i){return e.startState?e.startState(t,i):!0}u(On,"startState");var _=u(function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i},"StringStream");_.prototype.eol=function(){return this.pos>=this.string.length},_.prototype.sol=function(){return this.pos==this.lineStart},_.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},_.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},_.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},_.prototype.skipToEnd=function(){this.pos=this.string.length},_.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},_.prototype.backUp=function(e){this.pos-=e},_.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=me(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},_.prototype.indentation=function(){return me(this.string,null,this.tabSize)-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},_.prototype.match=function(e,t,i){if(typeof e=="string"){var r=u(function(l){return i?l.toLowerCase():l},"cased"),n=this.string.substr(this.pos,e.length);if(r(n)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},_.prototype.current=function(){return this.string.slice(this.start,this.pos)},_.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},_.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},_.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function w(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var n=i.children[r],o=n.chunkSize();if(t<o){i=n;break}t-=o}return i.lines[t]}u(w,"getLine");function et(e,t,i){var r=[],n=t.line;return e.iter(t.line,i.line+1,function(o){var l=o.text;n==i.line&&(l=l.slice(0,i.ch)),n==t.line&&(l=l.slice(t.ch)),r.push(l),++n}),r}u(et,"getBetween");function mi(e,t,i){var r=[];return e.iter(t,i,function(n){r.push(n.text)}),r}u(mi,"getLines");function Me(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}u(Me,"updateLineHeight");function P(e){if(e.parent==null)return null;for(var t=e.parent,i=ee(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var n=0;r.children[n]!=t;++n)i+=r.children[n].chunkSize();return i+t.first}u(P,"lineNo");function tt(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var n=e.children[r],o=n.height;if(t<o){e=n;continue e}t-=o,i+=n.chunkSize()}return i}while(!e.lines);for(var l=0;l<e.lines.length;++l){var a=e.lines[l],s=a.height;if(t<s)break;t-=s}return i+l}u(tt,"lineAtHeight");function Gt(e,t){return t>=e.first&&t<e.first+e.size}u(Gt,"isLine");function bi(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}u(bi,"lineNumberFor");function y(e,t,i){if(i===void 0&&(i=null),!(this instanceof y))return new y(e,t,i);this.line=e,this.ch=t,this.sticky=i}u(y,"Pos");function D(e,t){return e.line-t.line||e.ch-t.ch}u(D,"cmp");function xi(e,t){return e.sticky==t.sticky&&D(e,t)==0}u(xi,"equalCursorPos");function Ci(e){return y(e.line,e.ch)}u(Ci,"copyPos");function br(e,t){return D(e,t)<0?t:e}u(br,"maxPos");function xr(e,t){return D(e,t)<0?e:t}u(xr,"minPos");function Nn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}u(Nn,"clipLine");function A(e,t){if(t.line<e.first)return y(e.first,0);var i=e.first+e.size-1;return t.line>i?y(i,w(e,i).text.length):Kl(t,w(e,t.line).text.length)}u(A,"clipPos");function Kl(e,t){var i=e.ch;return i==null||i>t?y(e.line,t):i<0?y(e.line,0):e}u(Kl,"clipToLen");function Wn(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=A(e,t[r]);return i}u(Wn,"clipPosArray");var Si=u(function(e,t){this.state=e,this.lookAhead=t},"SavedContext"),Pe=u(function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1},"Context");Pe.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Pe.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pe.fromSaved=function(e,t,i){return t instanceof Si?new Pe(e,$e(e.mode,t.state),i,t.lookAhead):new Pe(e,$e(e.mode,t),i)},Pe.prototype.save=function(e){var t=e!==!1?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Si(t,this.maxLookAhead):t};function Hn(e,t,i,r){var n=[e.state.modeGen],o={};Bn(e,t.text,e.doc.mode,i,function(f,h){return n.push(f,h)},o,r);for(var l=i.state,a=u(function(f){i.baseTokens=n;var h=e.state.overlays[f],d=1,p=0;i.state=!0,Bn(e,t.text,h.mode,i,function(c,v){for(var g=d;p<c;){var m=n[d];m>c&&n.splice(d,1,c,n[d+1],m),d+=2,p=Math.min(c,m)}if(v)if(h.opaque)n.splice(g,d-g,c,"overlay "+v),d=g+2;else for(;g<d;g+=2){var b=n[g+1];n[g+1]=(b?b+" ":"")+"overlay "+v}},o),i.state=l,i.baseTokens=null,i.baseTokenPos=1},"loop"),s=0;s<e.state.overlays.length;++s)a(s);return{styles:n,classes:o.bgClass||o.textClass?o:null}}u(Hn,"highlightLine");function Pn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Ut(e,P(t)),n=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=Hn(e,t,r);n&&(r.state=n),t.stateAfter=r.save(!n),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}u(Pn,"getLineStyles");function Ut(e,t,i){var r=e.doc,n=e.display;if(!r.mode.startState)return new Pe(r,!0,t);var o=Xl(e,t,i),l=o>r.first&&w(r,o-1).stateAfter,a=l?Pe.fromSaved(r,l,o):new Pe(r,On(r.mode),o);return r.iter(o,t,function(s){wi(e,s.text,a);var f=a.line;s.stateAfter=f==t-1||f%5==0||f>=n.viewFrom&&f<n.viewTo?a.save():null,a.nextLine()}),i&&(r.modeFrontier=a.line),a}u(Ut,"getContextBefore");function wi(e,t,i,r){var n=e.doc.mode,o=new _(t,e.options.tabSize,i);for(o.start=o.pos=r||0,t==""&&Fn(n,i.state);!o.eol();)Li(n,o,i.state),o.start=o.pos}u(wi,"processLine");function Fn(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=yi(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}u(Fn,"callBlankLine");function Li(e,t,i,r){for(var n=0;n<10;n++){r&&(r[0]=yi(e,i).mode);var o=e.token(t,i);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}u(Li,"readToken");var _l=u(function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i},"Token");function En(e,t,i,r){var n=e.doc,o=n.mode,l;t=A(n,t);var a=w(n,t.line),s=Ut(e,t.line,i),f=new _(a.text,e.options.tabSize,s),h;for(r&&(h=[]);(r||f.pos<t.ch)&&!f.eol();)f.start=f.pos,l=Li(o,f,s.state),r&&h.push(new _l(f,l,$e(n.mode,s.state)));return r?h:new _l(f,l,s.state)}u(En,"takeToken");function In(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}u(In,"extractLineClasses");function Bn(e,t,i,r,n,o,l){var a=i.flattenSpans;a==null&&(a=e.options.flattenSpans);var s=0,f=null,h=new _(t,e.options.tabSize,r),d,p=e.options.addModeClass&&[null];for(t==""&&In(Fn(i,r.state),o);!h.eol();){if(h.pos>e.options.maxHighlightLength?(a=!1,l&&wi(e,t,r,h.pos),h.pos=t.length,d=null):d=In(Li(i,h,r.state,p),o),p){var c=p[0].name;c&&(d="m-"+(d?c+" "+d:c))}if(!a||f!=d){for(;s<h.start;)s=Math.min(h.start,s+5e3),n(s,f);f=d}h.start=h.pos}for(;s<h.pos;){var v=Math.min(h.pos,s+5e3);n(v,f),s=v}}u(Bn,"runMode");function Xl(e,t,i){for(var r,n,o=e.doc,l=i?-1:t-(e.doc.mode.innerMode?1e3:100),a=t;a>l;--a){if(a<=o.first)return o.first;var s=w(o,a-1),f=s.stateAfter;if(f&&(!i||a+(f instanceof Si?f.lookAhead:0)<=o.modeFrontier))return a;var h=me(s.text,null,e.options.tabSize);(n==null||r>h)&&(n=a-1,r=h)}return n}u(Xl,"findStartLine");function Yl(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var n=w(e,r).stateAfter;if(n&&(!(n instanceof Si)||r+n.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}u(Yl,"retreatFrontier");var ql=!1,ze=!1;function Zl(){ql=!0}u(Zl,"seeReadOnlySpans");function Ql(){ze=!0}u(Ql,"seeCollapsedSpans");function Cr(e,t,i){this.marker=e,this.from=t,this.to=i}u(Cr,"MarkedSpan");function Kt(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}u(Kt,"getMarkedSpanFor");function Jl(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}u(Jl,"removeMarkedSpan");function jl(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}u(jl,"addMarkedSpan");function Vl(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var o=e[n],l=o.marker,a=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);if(a||o.from==t&&l.type=="bookmark"&&(!i||!o.marker.insertLeft)){var s=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Cr(l,o.from,s?null:o.to))}}return r}u(Vl,"markedSpansBefore");function $l(e,t,i){var r;if(e)for(var n=0;n<e.length;++n){var o=e[n],l=o.marker,a=o.to==null||(l.inclusiveRight?o.to>=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!i||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Cr(l,s?null:o.from-t,o.to==null?null:o.to-t))}}return r}u($l,"markedSpansAfter");function ki(e,t){if(t.full)return null;var i=Gt(e,t.from.line)&&w(e,t.from.line).markedSpans,r=Gt(e,t.to.line)&&w(e,t.to.line).markedSpans;if(!i&&!r)return null;var n=t.from.ch,o=t.to.ch,l=D(t.from,t.to)==0,a=Vl(i,n,l),s=$l(r,o,l),f=t.text.length==1,h=W(t.text).length+(f?n:0);if(a)for(var d=0;d<a.length;++d){var p=a[d];if(p.to==null){var c=Kt(s,p.marker);c?f&&(p.to=c.to==null?null:c.to+h):p.to=n}}if(s)for(var v=0;v<s.length;++v){var g=s[v];if(g.to!=null&&(g.to+=h),g.from==null){var m=Kt(a,g.marker);m||(g.from=h,f&&(a||(a=[])).push(g))}else g.from+=h,f&&(a||(a=[])).push(g)}a&&(a=Rn(a)),s&&s!=a&&(s=Rn(s));var b=[a];if(!f){var C=t.text.length-2,x;if(C>0&&a)for(var S=0;S<a.length;++S)a[S].to==null&&(x||(x=[])).push(new Cr(a[S].marker,null,null));for(var k=0;k<C;++k)b.push(x);b.push(s)}return b}u(ki,"stretchSpansOverChange");function Rn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}u(Rn,"clearEmptySpans");function ea(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(c){if(c.markedSpans)for(var v=0;v<c.markedSpans.length;++v){var g=c.markedSpans[v].marker;g.readOnly&&(!r||ee(r,g)==-1)&&(r||(r=[])).push(g)}}),!r)return null;for(var n=[{from:t,to:i}],o=0;o<r.length;++o)for(var l=r[o],a=l.find(0),s=0;s<n.length;++s){var f=n[s];if(!(D(f.to,a.from)<0||D(f.from,a.to)>0)){var h=[s,1],d=D(f.from,a.from),p=D(f.to,a.to);(d<0||!l.inclusiveLeft&&!d)&&h.push({from:f.from,to:a.from}),(p>0||!l.inclusiveRight&&!p)&&h.push({from:a.to,to:f.to}),n.splice.apply(n,h),s+=h.length-3}}return n}u(ea,"removeReadOnlyRanges");function zn(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}u(zn,"detachMarkedSpans");function Gn(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}u(Gn,"attachMarkedSpans");function Sr(e){return e.inclusiveLeft?-1:0}u(Sr,"extraLeft");function wr(e){return e.inclusiveRight?1:0}u(wr,"extraRight");function Ti(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),n=t.find(),o=D(r.from,n.from)||Sr(e)-Sr(t);if(o)return-o;var l=D(r.to,n.to)||wr(e)-wr(t);return l||t.id-e.id}u(Ti,"compareCollapsedMarkers");function Un(e,t){var i=ze&&e.markedSpans,r;if(i)for(var n=void 0,o=0;o<i.length;++o)n=i[o],n.marker.collapsed&&(t?n.from:n.to)==null&&(!r||Ti(r,n.marker)<0)&&(r=n.marker);return r}u(Un,"collapsedSpanAtSide");function Kn(e){return Un(e,!0)}u(Kn,"collapsedSpanAtStart");function Lr(e){return Un(e,!1)}u(Lr,"collapsedSpanAtEnd");function ta(e,t){var i=ze&&e.markedSpans,r;if(i)for(var n=0;n<i.length;++n){var o=i[n];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!r||Ti(r,o.marker)<0)&&(r=o.marker)}return r}u(ta,"collapsedSpanAround");function _n(e,t,i,r,n){var o=w(e,t),l=ze&&o.markedSpans;if(l)for(var a=0;a<l.length;++a){var s=l[a];if(s.marker.collapsed){var f=s.marker.find(0),h=D(f.from,i)||Sr(s.marker)-Sr(n),d=D(f.to,r)||wr(s.marker)-wr(n);if(!(h>=0&&d<=0||h<=0&&d>=0)&&(h<=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?D(f.to,i)>=0:D(f.to,i)>0)||h>=0&&(s.marker.inclusiveRight&&n.inclusiveLeft?D(f.from,r)<=0:D(f.from,r)<0)))return!0}}}u(_n,"conflictingCollapsedRange");function we(e){for(var t;t=Kn(e);)e=t.find(-1,!0).line;return e}u(we,"visualLine");function ra(e){for(var t;t=Lr(e);)e=t.find(1,!0).line;return e}u(ra,"visualLineEnd");function ia(e){for(var t,i;t=Lr(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}u(ia,"visualLineContinued");function Mi(e,t){var i=w(e,t),r=we(i);return i==r?t:P(r)}u(Mi,"visualLineNo");function Xn(e,t){if(t>e.lastLine())return t;var i=w(e,t),r;if(!Ge(e,i))return t;for(;r=Lr(i);)i=r.find(1,!0).line;return P(i)+1}u(Xn,"visualLineEndNo");function Ge(e,t){var i=ze&&t.markedSpans;if(i){for(var r=void 0,n=0;n<i.length;++n)if(r=i[n],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Di(e,t,r))return!0}}}u(Ge,"lineIsHidden");function Di(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Di(e,r.line,Kt(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var n=void 0,o=0;o<t.markedSpans.length;++o)if(n=t.markedSpans[o],n.marker.collapsed&&!n.marker.widgetNode&&n.from==i.to&&(n.to==null||n.to!=i.from)&&(n.marker.inclusiveLeft||i.marker.inclusiveRight)&&Di(e,t,n))return!0}u(Di,"lineIsHiddenInner");function Fe(e){e=we(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var n=i.lines[r];if(n==e)break;t+=n.height}for(var o=i.parent;o;i=o,o=i.parent)for(var l=0;l<o.children.length;++l){var a=o.children[l];if(a==i)break;t+=a.height}return t}u(Fe,"heightAtLine");function kr(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=Kn(r);){var n=i.find(0,!0);r=n.from.line,t+=n.from.ch-n.to.ch}for(r=e;i=Lr(r);){var o=i.find(0,!0);t-=r.text.length-o.from.ch,r=o.to.line,t+=r.text.length-o.to.ch}return t}u(kr,"lineLength");function Ai(e){var t=e.display,i=e.doc;t.maxLine=w(i,i.first),t.maxLineLength=kr(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var n=kr(r);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=r)})}u(Ai,"findMaxLine");var _t=u(function(e,t,i){this.text=e,Gn(this,t),this.height=i?i(this):1},"Line");_t.prototype.lineNo=function(){return P(this)},yt(_t);function na(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),zn(e),Gn(e,i);var n=r?r(e):1;n!=e.height&&Me(e,n)}u(na,"updateLine");function oa(e){e.parent=null,zn(e)}u(oa,"cleanUpLine");var tu={},ru={};function Yn(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?ru:tu;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}u(Yn,"interpretTokenStyle");function qn(e,t){var i=vt("span",null,null,oe?"padding-right: .1px":null),r={pre:vt("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var o=n?t.rest[n-1]:t.line,l=void 0;r.pos=0,r.addToken=aa,Bl(e.display.measure)&&(l=He(o,e.doc.direction))&&(r.addToken=ua(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&P(o);fa(o,r,Pn(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=oi(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=oi(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Il(e.display.measure))),n==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(oe){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return U(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=oi(r.pre.className,r.textClass||"")),r}u(qn,"buildLineContent");function la(e){var t=T("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}u(la,"defaultSpecialCharPlaceholder");function aa(e,t,i,r,n,o,l){if(t){var a=e.splitSpaces?sa(t,e.trailingSpace):t,s=e.cm.state.specialChars,f=!1,h;if(!s.test(t))e.col+=t.length,h=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,h),N&&I<9&&(f=!0),e.pos+=t.length;else{h=document.createDocumentFragment();for(var d=0;;){s.lastIndex=d;var p=s.exec(t),c=p?p.index-d:t.length-d;if(c){var v=document.createTextNode(a.slice(d,d+c));N&&I<9?h.appendChild(T("span",[v])):h.appendChild(v),e.map.push(e.pos,e.pos+c,v),e.col+=c,e.pos+=c}if(!p)break;d+=c+1;var g=void 0;if(p[0]==" "){var m=e.cm.options.tabSize,b=m-e.col%m;g=h.appendChild(T("span",fi(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text"," "),e.col+=b}else p[0]=="\r"||p[0]==`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as G}from"./codemirror.es-
|
|
1
|
+
import{a as G}from"./codemirror.es-Cq41RbvR.js";import"./index-D49YArUG.js";import"./index-CWbfhRhH.js";var H=Object.defineProperty,N=(O,A)=>H(O,"name",{value:A,configurable:!0});function q(O,A){return A.forEach(function(s){s&&typeof s!="string"&&!Array.isArray(s)&&Object.keys(s).forEach(function(b){if(b!=="default"&&!(b in O)){var d=Object.getOwnPropertyDescriptor(s,b);Object.defineProperty(O,b,d.get?d:{enumerable:!0,get:function(){return s[b]}})}})}),Object.freeze(O)}N(q,"_mergeNamespaces");var w={exports:{}};(function(O,A){(function(s){s(G.exports)})(function(s){var b={},d=/[^\s\u00a0]/,m=s.Pos,F=s.cmpPos;function P(t){var a=t.search(d);return a==-1?0:a}N(P,"firstNonWS"),s.commands.toggleComment=function(t){t.toggleComment()},s.defineExtension("toggleComment",function(t){t||(t=b);for(var a=this,n=1/0,e=this.listSelections(),g=null,c=e.length-1;c>=0;c--){var l=e[c].from(),r=e[c].to();l.line>=n||(r.line>=n&&(r=m(n,0)),n=l.line,g==null?a.uncomment(l,r,t)?g="un":(a.lineComment(l,r,t),g="line"):g=="un"?a.uncomment(l,r,t):a.lineComment(l,r,t))}});function $(t,a,n){return/\bstring\b/.test(t.getTokenTypeAt(m(a.line,0)))&&!/^[\'\"\`]/.test(n)}N($,"probablyInsideString");function j(t,a){var n=t.getMode();return n.useInnerComments===!1||!n.innerMode?n:t.getModeAt(a)}N(j,"getMode"),s.defineExtension("lineComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=e.getLine(t.line);if(!(c==null||$(e,t,c))){var l=n.lineComment||g.lineComment;if(!l){(n.blockCommentStart||g.blockCommentStart)&&(n.fullLines=!0,e.blockComment(t,a,n));return}var r=Math.min(a.ch!=0||a.line==t.line?a.line+1:a.line,e.lastLine()+1),C=n.padding==null?" ":n.padding,f=n.commentBlankLines||t.line==a.line;e.operation(function(){if(n.indent){for(var v=null,i=t.line;i<r;++i){var u=e.getLine(i),h=u.slice(0,P(u));(v==null||v.length>h.length)&&(v=h)}for(var i=t.line;i<r;++i){var u=e.getLine(i),o=v.length;!f&&!d.test(u)||(u.slice(0,o)!=v&&(o=P(u)),e.replaceRange(v+l+C,m(i,0),m(i,o)))}}else for(var i=t.line;i<r;++i)(f||d.test(e.getLine(i)))&&e.replaceRange(l+C,m(i,0))})}}),s.defineExtension("blockComment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=n.blockCommentStart||g.blockCommentStart,l=n.blockCommentEnd||g.blockCommentEnd;if(!c||!l){(n.lineComment||g.lineComment)&&n.fullLines!=!1&&e.lineComment(t,a,n);return}if(!/\bcomment\b/.test(e.getTokenTypeAt(m(t.line,0)))){var r=Math.min(a.line,e.lastLine());r!=t.line&&a.ch==0&&d.test(e.getLine(r))&&--r;var C=n.padding==null?" ":n.padding;t.line>r||e.operation(function(){if(n.fullLines!=!1){var f=d.test(e.getLine(r));e.replaceRange(C+l,m(r)),e.replaceRange(c+C,m(t.line,0));var v=n.blockCommentLead||g.blockCommentLead;if(v!=null)for(var i=t.line+1;i<=r;++i)(i!=r||f)&&e.replaceRange(v+C,m(i,0))}else{var u=F(e.getCursor("to"),a)==0,h=!e.somethingSelected();e.replaceRange(l,a),u&&e.setSelection(h?a:e.getCursor("from"),a),e.replaceRange(c,t)}})}}),s.defineExtension("uncomment",function(t,a,n){n||(n=b);var e=this,g=j(e,t),c=Math.min(a.ch!=0||a.line==t.line?a.line:a.line-1,e.lastLine()),l=Math.min(t.line,c),r=n.lineComment||g.lineComment,C=[],f=n.padding==null?" ":n.padding,v;e:{if(!r)break e;for(var i=l;i<=c;++i){var u=e.getLine(i),h=u.indexOf(r);if(h>-1&&!/comment/.test(e.getTokenTypeAt(m(i,h+1)))&&(h=-1),h==-1&&d.test(u)||h>-1&&d.test(u.slice(0,h)))break e;C.push(u)}if(e.operation(function(){for(var L=l;L<=c;++L){var p=C[L-l],x=p.indexOf(r),k=x+r.length;x<0||(p.slice(k,k+f.length)==f&&(k+=f.length),v=!0,e.replaceRange("",m(L,x),m(L,k)))}}),v)return!0}var o=n.blockCommentStart||g.blockCommentStart,S=n.blockCommentEnd||g.blockCommentEnd;if(!o||!S)return!1;var W=n.blockCommentLead||g.blockCommentLead,E=e.getLine(l),_=E.indexOf(o);if(_==-1)return!1;var I=c==l?E:e.getLine(c),y=I.indexOf(S,c==l?_+o.length:0),z=m(l,_+1),B=m(c,y+1);if(y==-1||!/comment/.test(e.getTokenTypeAt(z))||!/comment/.test(e.getTokenTypeAt(B))||e.getRange(z,B,`
|
|
2
2
|
`).indexOf(S)>-1)return!1;var R=E.lastIndexOf(o,t.ch),T=R==-1?-1:E.slice(0,t.ch).indexOf(S,R+o.length);if(R!=-1&&T!=-1&&T+S.length!=t.ch)return!1;T=I.indexOf(S,a.ch);var D=I.slice(a.ch).lastIndexOf(o,T-a.ch);return R=T==-1||D==-1?-1:a.ch+D,T!=-1&&R!=-1&&R!=a.ch?!1:(e.operation(function(){e.replaceRange("",m(c,y-(f&&I.slice(y-f.length,y)==f?f.length:0)),m(c,y+S.length));var L=_+o.length;if(f&&E.slice(L,L+f.length)==f&&(L+=f.length),e.replaceRange("",m(l,_),m(l,L)),W)for(var p=l+1;p<=c;++p){var x=e.getLine(p),k=x.indexOf(W);if(!(k==-1||d.test(x.slice(0,k)))){var M=k+W.length;f&&x.slice(M,M+f.length)==f&&(M+=f.length),e.replaceRange("",m(p,k),m(p,M))}}}),!0)})})})();var J=w.exports,V=Object.freeze(q({__proto__:null,[Symbol.toStringTag]:"Module",default:J},[w.exports]));export{V as c};
|