@abtnode/webapp 1.16.28 → 1.16.29-beta-e04c6f40
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-B8Ae2MjM.js → Add-xExgHDod.js} +1 -1
- package/dist/assets/{ArrowDropDown-BNt-WuI3.js → ArrowDropDown-KUzipi3t.js} +1 -1
- package/dist/assets/{Autocomplete-Bo6UH2XL.js → Autocomplete-Er311sva.js} +1 -1
- package/dist/assets/{Breadcrumbs-CkmMkQDW.js → Breadcrumbs-Pqx4il3S.js} +1 -1
- package/dist/assets/{ButtonGroup-OcQcEz6r.js → ButtonGroup-BcupcRIM.js} +1 -1
- package/dist/assets/{CheckCircle-BnRenrK4.js → CheckCircle-zUiCwNZs.js} +1 -1
- package/dist/assets/{ChevronLeft-Dp9aa91c.js → ChevronLeft-Bet4yQzf.js} +1 -1
- package/dist/assets/{ChevronRight-C3NPaw6o.js → ChevronRight-DVus-Y96.js} +1 -1
- package/dist/assets/{Close-Cbaq-RRq.js → Close-O3YNtovt.js} +1 -1
- package/dist/assets/Delete-DOCRW1Ln.js +1 -0
- package/dist/assets/{DeleteOutline-B4LqoCK2.js → DeleteOutline-CUojn4xn.js} +1 -1
- package/dist/assets/{Done-BCLH1e-Y.js → Done-BbWcazKr.js} +1 -1
- package/dist/assets/{Edit-i_Bman7K.js → Edit-BhCFwv7o.js} +1 -1
- package/dist/assets/{EditIcon-DmNEjmIQ.js → EditIcon-CERx0ivQ.js} +1 -1
- package/dist/assets/{FilterList-fpG1-3KQ.js → FilterList-BRYDdfFq.js} +4 -4
- package/dist/assets/{Google-DLkd6TAZ.js → Google-CdmAvvA5.js} +3 -3
- package/dist/assets/{Https-amCzjB1a.js → Https-D3zQe1g3.js} +1 -1
- package/dist/assets/{InputAdornment-C6LFxcti.js → InputAdornment-CiVUPEjM.js} +1 -1
- package/dist/assets/{InputLabel-avYwCvJM.js → InputLabel-Cl0jKlH9.js} +1 -1
- package/dist/assets/{LastPage-DnBOlrut.js → LastPage-DIXa5YVo.js} +1 -1
- package/dist/assets/{Launch-DPclIZbd.js → Launch-u57ssxVt.js} +1 -1
- package/dist/assets/{Link-DfSEdivF.js → Link-8ntBDNt-.js} +1 -1
- package/dist/assets/{LoadingButton-xveWP_M5.js → LoadingButton-BhxaC5Ed.js} +1 -1
- package/dist/assets/{LockIcon-9c7sG23a.js → LockIcon-CkFf2isB.js} +1 -1
- package/dist/assets/{Loop-DwAWKPvc.js → Loop-BnL-Vxc4.js} +1 -1
- package/dist/assets/{MoreVert-Nc1QBj2D.js → MoreVert-LBoMA9yq.js} +1 -1
- package/dist/assets/{Pagination-D5t0OCBH.js → Pagination-B0vuu0Jz.js} +1 -1
- package/dist/assets/{Public-BLh26Bb9.js → Public-BPRyPUP1.js} +1 -1
- package/dist/assets/{SchemaReference.es--oFfd0mm.js → SchemaReference.es-Cw9PnK9u.js} +1 -1
- package/dist/assets/{Search-DnnCUnjB.js → Search-DoXY8XQp.js} +1 -1
- package/dist/assets/{Select-CBA-xyOJ.js → Select-CSRNZbOq.js} +2 -2
- package/dist/assets/{Skeleton-CQPjJHp3.js → Skeleton-CZxXS4jE.js} +5 -5
- package/dist/assets/{Slider-Bdpm9oO4.js → Slider-BcITXKtu.js} +1 -1
- package/dist/assets/{Stepper-UEQaZPW7.js → Stepper-mccJibcr.js} +1 -1
- package/dist/assets/TextField-HCXJkIb-.js +1 -0
- package/dist/assets/{ToggleButtonGroup-Drarswgi.js → ToggleButtonGroup-DNi-APKM.js} +1 -1
- package/dist/assets/{ViewList-CoYI2XgO.js → ViewList-B0D9uEjF.js} +1 -1
- package/dist/assets/{actions-BAUfPsQv.js → actions-CAskIzvr.js} +1 -1
- package/dist/assets/actions-Cs-U54uv.js +11 -0
- package/dist/assets/{agreement-_qYynElX.js → agreement-Dqwk0Qk1.js} +3 -3
- package/dist/assets/api-UGqvGbaE.js +1 -0
- package/dist/assets/app-avatar-DnQtdz_O.js +1 -0
- package/dist/assets/ar-DDqDOM6_.js +1 -0
- package/dist/assets/{audit-logs-BqT_1MLt.js → audit-logs-elaTyIYr.js} +1 -1
- package/dist/assets/{brace-fold.es-CkrKXotH.js → brace-fold.es-CHAwFrP-.js} +1 -1
- package/dist/assets/{bundle-avatar-RiFaz1Hb.js → bundle-avatar-DQKqTcLf.js} +1 -1
- package/dist/assets/{chart-Cinf5zq_.js → chart-B4WtoTol.js} +1 -1
- package/dist/assets/{click-to-copy-Bj13kdln.js → click-to-copy-BxTGXnkW.js} +1 -1
- package/dist/assets/{closebrackets.es-C32XuxI5.js → closebrackets.es-Cowrx9Wh.js} +1 -1
- package/dist/assets/{codemirror.es-oms3GpFv.js → codemirror.es-DDaWBk7v.js} +1 -1
- package/dist/assets/{comment.es-AVZXTIDr.js → comment.es-BpMZ3nSF.js} +1 -1
- package/dist/assets/config-navigation-mgsMFCq0.js +25 -0
- package/dist/assets/de-Df9PmQSL.js +1 -0
- package/dist/assets/delete-confirm-G3-jMPGR.js +1 -0
- package/dist/assets/{detail-CHKmnQLc.js → detail-BBKDt7TH.js} +3 -3
- package/dist/assets/{dialog.es-DHZdXjGS.js → dialog.es-CRh6VOLz.js} +1 -1
- package/dist/assets/{download-DFPnF7mz.js → download-BK5ocL5s.js} +1 -1
- package/dist/assets/es-BQD9zWi-.js +1 -0
- package/dist/assets/{foldgutter.es-CSicbQSJ.js → foldgutter.es-CHLe3IFg.js} +1 -1
- package/dist/assets/fr-DNx2OQyQ.js +1 -0
- package/dist/assets/getValidReactChildren-C2KGwF2r.js +1 -0
- package/dist/assets/hi-BmEkoTIE.js +1 -0
- package/dist/assets/{hint.es-DAEQ9N76.js → hint.es-qHNwvQXY.js} +1 -1
- package/dist/assets/{hint.es2-DYXluLKu.js → hint.es2-DRHlNN6z.js} +1 -1
- package/dist/assets/id-DXu5sStK.js +1 -0
- package/dist/assets/{iframe-DwuYX0Xq.js → iframe-D-PNyLg3.js} +1 -1
- package/dist/assets/{index-B60jROHj.js → index-3ruoHhFa.js} +26 -26
- package/dist/assets/{index-zFXZLqso.js → index-3sl31tmo.js} +2 -2
- package/dist/assets/{index-CZKHzmkC.js → index-B1h0P1L0.js} +1 -1
- package/dist/assets/index-B1yKtvhn.js +54 -0
- package/dist/assets/{index-BbS1Wq4p.js → index-B6HWus5t.js} +1 -1
- package/dist/assets/{index-baq8DMtQ.js → index-BhwGm9ir.js} +9 -9
- package/dist/assets/{index-DKkTRBZn.js → index-BlSaylBC.js} +4 -4
- package/dist/assets/{index-DOsg2sHH.js → index-Boc7heJK.js} +1 -1
- package/dist/assets/{index-cmiUur_8.js → index-Boe-4fof.js} +1 -1
- package/dist/assets/{index-CiZAReVP.js → index-Br7MMAwb.js} +1 -1
- package/dist/assets/{index-ZQu91rXz.js → index-Bt8_a71i.js} +1 -1
- package/dist/assets/{index-BVznp3M0.js → index-C4esebAE.js} +1 -1
- package/dist/assets/{index-BbW2IRRR.js → index-C5c3sxc7.js} +3 -3
- package/dist/assets/{index-0RUAEm49.js → index-C7piHvhS.js} +2 -2
- package/dist/assets/{index-BKi0XLcv.js → index-C8OOX63T.js} +1 -1
- package/dist/assets/{index-DfNh08gP.js → index-CAP7ccf-.js} +3 -3
- package/dist/assets/{index-Cl2QG8J6.js → index-CCMFLAjE.js} +16 -16
- package/dist/assets/{index-CKOyruf_.js → index-CGedY69r.js} +2 -2
- package/dist/assets/{index-ByF3apMm.js → index-CI3-G8f5.js} +3 -3
- package/dist/assets/{index-9R6mPPbN.js → index-CMw6A55r.js} +1 -1
- package/dist/assets/index-COVe-oac.js +1 -0
- package/dist/assets/{index-D5MDxbqt.js → index-CTWxKp8R.js} +1 -1
- package/dist/assets/{index-DHYJxTcV.js → index-CU4Kco8M.js} +57 -57
- package/dist/assets/{index-DrWhB0MJ.js → index-CfjU2vkP.js} +1 -1
- package/dist/assets/{index-BBnT5XB9.js → index-Cjw9QiwF.js} +1 -1
- package/dist/assets/{index-CyYUysSv.js → index-CpWB9aT7.js} +1 -1
- package/dist/assets/{index-CIbzY-F7.js → index-CsGASsXO.js} +1 -1
- package/dist/assets/{index-v2cqn0eS.js → index-CuZgQfxG.js} +1 -1
- package/dist/assets/{index-BnFWpIPQ.js → index-Cx08Fq4-.js} +1 -1
- package/dist/assets/{index-CHjwpGia.js → index-D0mxQWU5.js} +7 -7
- package/dist/assets/{index-DSByvARI.js → index-DHWCojAQ.js} +1 -1
- package/dist/assets/{index-DcU_Cijj.js → index-DIJ53y8c.js} +1 -1
- package/dist/assets/index-DIbFXQTV.js +1 -0
- package/dist/assets/{index-7J6TijHC.js → index-Dkkm6kzm.js} +1 -1
- package/dist/assets/{index-rPqHtLu4.js → index-Dw9clXjq.js} +1 -1
- package/dist/assets/{index-CucnV9EX.js → index-DzW0Cxov.js} +25 -25
- package/dist/assets/index-LlxzMpy3.js +231 -0
- package/dist/assets/{index-DV2quTIn.js → index-M5WcRzZV.js} +1 -1
- package/dist/assets/index-P1GJ1Y4T.js +177 -0
- package/dist/assets/{index-CqcpZ8C3.js → index-Pf5VRxU2.js} +174 -210
- package/dist/assets/{index-CtzAe2AR.js → index-RQQsaMDK.js} +1 -1
- package/dist/assets/{index-DPx9NPlp.js → index-_RvLZsys.js} +1 -1
- package/dist/assets/index-hFhjFjqL.js +58 -0
- package/dist/assets/{index-ECk6dODK.js → index-y8_7sFXl.js} +10 -10
- package/dist/assets/{index.es-Dkh9ejMp.js → index.es-0GspS0hl.js} +1 -1
- package/dist/assets/{index.esm-Hqw0Nfnx.js → index.esm-CJT_Vb_Y.js} +1 -1
- package/dist/assets/{info-addon.es-5NmROke-.js → info-addon.es-BvWPiOWh.js} +1 -1
- package/dist/assets/{info.es-CsELEfUv.js → info.es-D6grONEz.js} +1 -1
- package/dist/assets/{install-from-url-DXGlT7R8.js → install-from-url-CLk48T0_.js} +1 -1
- package/dist/assets/invitation-4W3IOdXy.js +200 -0
- package/dist/assets/{is-path-prefix-equal-CoJozASB.js → is-path-prefix-equal-DQciVrFn.js} +1 -1
- package/dist/assets/{isEqual-BLnnfE4T.js → isEqual-C5Iu_kl-.js} +1 -1
- package/dist/assets/{item-tD3jAfba.js → item-C9bzNYRu.js} +31 -31
- package/dist/assets/ja-thyFR9rH.js +1 -0
- package/dist/assets/{javascript.es-BIUhEWTj.js → javascript.es-CWlPpygW.js} +1 -1
- package/dist/assets/{jump-to-line.es-BQjWkUgo.js → jump-to-line.es-D7dd2At6.js} +1 -1
- package/dist/assets/{jump.es-D8ZxFsmc.js → jump.es-WtAW-Ijf.js} +1 -1
- package/dist/assets/ko-BJSWgMML.js +1 -0
- package/dist/assets/{line-DW0juCGB.js → line-Cfyg0g9I.js} +4 -4
- package/dist/assets/{lint.es-Dv2pWRyz.js → lint.es-aUUps1ME.js} +1 -1
- package/dist/assets/{lint.es2-CqGQ_rnk.js → lint.es2-CDvv_d9A.js} +1 -1
- package/dist/assets/{lint.es3-g58ofVJA.js → lint.es3-DTrQmP6j.js} +1 -1
- package/dist/assets/{list-header-tjKXNgOR.js → list-header-BG2QMZZz.js} +1 -1
- package/dist/assets/{log-BFiA_Tyh.js → log-DIJPVIRP.js} +1 -1
- package/dist/assets/{lottie-yeTV0Y2m.js → lottie-BkwIvhEu.js} +1 -1
- package/dist/assets/{matchbrackets.es-B-Xj5H9Q.js → matchbrackets.es-CCjeMHPP.js} +1 -1
- package/dist/assets/{memory-C7a59RsU.js → memory-CYabGN8q.js} +1 -1
- package/dist/assets/{mode.es-BSNxo6gK.js → mode.es-kZQjUXx0.js} +1 -1
- package/dist/assets/{mode.es2-C1LDwVOl.js → mode.es2-hCaXf0ad.js} +1 -1
- package/dist/assets/{mode.es3-C6-ZTyOk.js → mode.es3-DlVh9_RV.js} +1 -1
- package/dist/assets/{onlineParser.es-BzK7GlZv.js → onlineParser.es-g03lcwfp.js} +1 -1
- package/dist/assets/overview-BFHUS9cz.js +23 -0
- package/dist/assets/{pt-fvVMjgC8.js → pt-D828CXoS.js} +1 -1
- package/dist/assets/{react-1fE0Sobf.js → react-DjQtZm70.js} +7 -7
- package/dist/assets/{redux-hfExDDyr.js → redux-0yltQfyb.js} +1 -1
- package/dist/assets/{resource-dialog-DinbvH2C.js → resource-dialog-B2vu5Of2.js} +2 -2
- package/dist/assets/ru-t_aX-wsm.js +1 -0
- package/dist/assets/{runtime-tAjj0dmb.js → runtime-C9hFU3Ij.js} +1 -1
- package/dist/assets/{search.es-DxfjuUNu.js → search.es-C20qP8Vq.js} +1 -1
- package/dist/assets/{searchcursor.es-C0Z2DY1c.js → searchcursor.es-Cy-3eaEN.js} +1 -1
- package/dist/assets/service-CkoGqY1V.js +1 -0
- package/dist/assets/{show-hint.es-q24U0q_A.js → show-hint.es-DAqKK5Qn.js} +1 -1
- package/dist/assets/{slicedToArray-CYGiqzmA.js → slicedToArray-Bl_ysqUF.js} +3 -3
- package/dist/assets/{spaces-C58gy1rM.js → spaces-CE3KwDvq.js} +1 -1
- package/dist/assets/{sublime.es-BffqyCoy.js → sublime.es-DPcVE8hJ.js} +1 -1
- package/dist/assets/{switch-control-CuPWIx6T.js → switch-control-CCSLs9W3.js} +1 -1
- package/dist/assets/{table-icons-DOOoyljy.js → table-icons-B9NLkXar.js} +10 -10
- package/dist/assets/{tag-Cxx1sXPF.js → tag-_nponNF2.js} +1 -1
- package/dist/assets/{team-BynFP1rM.js → team-wy2ENAAe.js} +1 -1
- package/dist/assets/th-DvaD_9E5.js +1 -0
- package/dist/assets/toUpper-D-lxmi1w.js +1 -0
- package/dist/assets/{traffic-D03HdfGL.js → traffic-BU3E2tw9.js} +5 -5
- package/dist/assets/{url-evaluation-dheoi_Nj.js → url-evaluation-CAG0Y4FK.js} +4 -4
- package/dist/assets/{url-join-DMIMYkEk.js → url-join-DMJmszyo.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DWywlTbc.js → use-blocklet-info-for-connect-did-spaces-Bc-o6Zkq.js} +1 -1
- package/dist/assets/{useLocalStorage-C3GQNaV2.js → useLocalStorage-D4xQyg06.js} +1 -1
- package/dist/assets/{util-cf4pvQDW.js → util-CuvemqGW.js} +1 -1
- package/dist/assets/vi-B4VdHKzm.js +1 -0
- package/dist/assets/{wait-container-BwlRhWl0.js → wait-container-CdR6E8LE.js} +4 -4
- package/dist/assets/{withStyles-BkcRLEgx.js → withStyles-Ct7uoTy7.js} +1 -1
- package/dist/assets/wrap-locale-C2k9YLGh.js +1 -0
- package/dist/assets/zh-D0ck6JaG.js +2 -0
- package/dist/assets/zh-tw-C19pg5Jo.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Delete-CnrKsAGC.js +0 -1
- package/dist/assets/TextField-DjRhIjo4.js +0 -1
- package/dist/assets/actions-C1t0ka-G.js +0 -11
- package/dist/assets/api-xvCGCwMn.js +0 -1
- package/dist/assets/app-avatar-DcgC0kB0.js +0 -1
- package/dist/assets/ar-B5gcsN0k.js +0 -1
- package/dist/assets/config-navigation-LFUjTzgk.js +0 -25
- package/dist/assets/de-WUCASh9G.js +0 -1
- package/dist/assets/delete-confirm-BoeDYrYX.js +0 -1
- package/dist/assets/es-DsRorAcf.js +0 -1
- package/dist/assets/fr-CUMFVKph.js +0 -1
- package/dist/assets/getValidReactChildren-GMOIXwRG.js +0 -1
- package/dist/assets/hi-BinC6-tx.js +0 -1
- package/dist/assets/id-BVFhYsL8.js +0 -1
- package/dist/assets/index-BKck0oIO.js +0 -234
- package/dist/assets/index-DU7hJgoO.js +0 -1
- package/dist/assets/index-DmPgcoiv.js +0 -150
- package/dist/assets/index-DsUZ7uiP.js +0 -58
- package/dist/assets/index-HOVCi07-.js +0 -54
- package/dist/assets/invitation-CSNEw5oM.js +0 -200
- package/dist/assets/ja-B1xj2XMp.js +0 -1
- package/dist/assets/ko-Buo9FEc0.js +0 -1
- package/dist/assets/overview-BlWFlRx2.js +0 -23
- package/dist/assets/ru-OQD02sOm.js +0 -1
- package/dist/assets/service-1GhnQw9a.js +0 -1
- package/dist/assets/th-DaDxf6qI.js +0 -1
- package/dist/assets/toUpper-mYvRPeiI.js +0 -1
- package/dist/assets/vi-D2hO2mdU.js +0 -1
- package/dist/assets/wrap-locale-BqGpRCMA.js +0 -1
- package/dist/assets/zh-OQY8LvIH.js +0 -2
- package/dist/assets/zh-tw-Dd8o0udA.js +0 -1
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import{r as fe,j as P,q as ze,u as Ve,aj as Bt,ct as Ge,M as qe,n as be,cu as Vr,cv as Gr,cw as Wr,cx as Hr,cy as Kr,cz as me,cA as Xr,F as zt,b as De,B as Yr,P as Pe,aw as Zr,z as Vt,cB as Jr,v as Qr,cC as en,ac as tn,av as vt,bl as bt,a1 as Me,A as Ye,K as _t,ah as rn,Q as Fe,V as Ue,C as je,N as Gt,i as nn,W as sn,x as an,y as Wt,ag as on,cD as ln,ae as cn,c4 as Ht,cE as Kt,aa as un,aC as fn,H as mn,ak as hn,al as dn,am as pn,cF as gn,an as yn,J as vn,ao as bn,ap as Ce,aq as _n,ar as wn}from"./index-Pf5VRxU2.js";import{L as Be,P as Xt,A as En,S as xn,a as Rn}from"./index-CTWxKp8R.js";import{u as $n,A as jn,W as Sn,P as On,D as wt,L as Et,d as xt,a as Rt}from"./wait-container-CdR6E8LE.js";import{C as Yt,d as kn,A as In}from"./agreement-Dqwk0Qk1.js";import{a as An}from"./api-UGqvGbaE.js";import{i as Ln}from"./isEqual-C5Iu_kl-.js";import{_ as Tn}from"./useLocalStorage-D4xQyg06.js";import{l as We}from"./index-C4esebAE.js";import{p as Nn}from"./index-DIbFXQTV.js";import{s as Cn}from"./logo-BKA11TRi.js";import"./url-join-DMJmszyo.js";import"./Skeleton-CZxXS4jE.js";import"./Close-O3YNtovt.js";import"./lottie-BkwIvhEu.js";import"./index-B6HWus5t.js";var et={};Object.defineProperty(et,"__esModule",{value:!0});var Zt=et.default=void 0;Dn(fe);var ue=P;function Dn(g){return g&&g.__esModule?g:{default:g}}function $t(g,b){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(g);b&&(A=A.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),k.push.apply(k,A)}return k}function jt(g){for(var b=1;b<arguments.length;b++){var k=arguments[b]!=null?arguments[b]:{};b%2?$t(Object(k),!0).forEach(function(A){Pn(g,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):$t(Object(k)).forEach(function(A){Object.defineProperty(g,A,Object.getOwnPropertyDescriptor(k,A))})}return g}function Pn(g,b,k){return b=Mn(b),b in g?Object.defineProperty(g,b,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[b]=k,g}function Mn(g){var b=Fn(g,"string");return typeof b=="symbol"?b:String(b)}function Fn(g,b){if(typeof g!="object"||!g)return g;var k=g[Symbol.toPrimitive];if(k!==void 0){var A=k.call(g,b||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(g)}var tt=function(b){return(0,ue.jsxs)("svg",jt(jt({},b),{},{children:[(0,ue.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,ue.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,ue.jsxs)("defs",{children:[(0,ue.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,ue.jsx)("stop",{stopColor:"#0FA4B7"}),(0,ue.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,ue.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,ue.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,ue.jsx)("stop",{stopColor:"#0FA4B7"}),(0,ue.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,ue.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};tt.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};tt.displayName="launcher-logo-notext";Zt=et.default=tt;var rt={};Object.defineProperty(rt,"__esModule",{value:!0});var Jt=rt.default=void 0;qn(fe);var oe=P;function qn(g){return g&&g.__esModule?g:{default:g}}function St(g,b){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(g);b&&(A=A.filter(function(I){return Object.getOwnPropertyDescriptor(g,I).enumerable})),k.push.apply(k,A)}return k}function Ot(g){for(var b=1;b<arguments.length;b++){var k=arguments[b]!=null?arguments[b]:{};b%2?St(Object(k),!0).forEach(function(A){Un(g,A,k[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(k)):St(Object(k)).forEach(function(A){Object.defineProperty(g,A,Object.getOwnPropertyDescriptor(k,A))})}return g}function Un(g,b,k){return b=Bn(b),b in g?Object.defineProperty(g,b,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[b]=k,g}function Bn(g){var b=zn(g,"string");return typeof b=="symbol"?b:String(b)}function zn(g,b){if(typeof g!="object"||!g)return g;var k=g[Symbol.toPrimitive];if(k!==void 0){var A=k.call(g,b||"default");if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(g)}var nt=function(b){return(0,oe.jsxs)("svg",Ot(Ot({},b),{},{children:[(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,oe.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,oe.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,oe.jsxs)("defs",{children:[(0,oe.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,oe.jsx)("stop",{stopColor:"#0FA4B7"}),(0,oe.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,oe.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,oe.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,oe.jsx)("stop",{stopColor:"#0FA4B7"}),(0,oe.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,oe.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};nt.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};nt.displayName="launcher-logo";Jt=rt.default=nt;function Vn(){const{t:g}=ze(),{info:b}=Ve(),k=Bt(),A=decodeURIComponent(k.get("accessUrl")||""),{meta:I}=Ge();return P.jsx(Wn,{children:P.jsx("div",{className:"body",children:P.jsx(Be,{variant:"success",title:qe.getDisplayName({meta:I},!0),subTitle:g("launchBlocklet.installSuccess",{serverName:b.name}),footer:P.jsx(Gn,{href:A,rel:"noreferrer","data-cy":"open-blocklet",children:g("common.open")})})})})}const Gn=be.a`
|
|
2
|
+
display: block;
|
|
3
|
+
height: 36px;
|
|
4
|
+
color: ${g=>g.theme.palette.primary.main};
|
|
5
|
+
`,Wn=be(Yt)`
|
|
6
|
+
.app-info_desc {
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
margin-top: 40px;
|
|
9
|
+
font-size: 18px;
|
|
10
|
+
line-height: 21px;
|
|
11
|
+
color: #222222;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.body {
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
${g=>g.theme.breakpoints.down("md")} {
|
|
19
|
+
.app-info_desc {
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.circle_icon {
|
|
25
|
+
font-size: 58px;
|
|
26
|
+
color: ${g=>g.variant==="error"?g.theme.palette.error.main:g.theme.palette.success.main};
|
|
27
|
+
}
|
|
28
|
+
`;var U={},Hn=null,Qt=Hn,er={exports:{}};(function(g,b){(function(k,A){g.exports=A()})(self,()=>{return k={7629:(I,j,_)=>{const o=_(375),y=_(8571),h=_(9474),u=_(1687),e=_(8652),a=_(8160),s=_(3292),r=_(6354),t=_(8901),l=_(9708),n=_(6914),i=_(2294),f=_(6133),m=_(1152),p=_(8863),R=_(2036),x={Base:class{constructor(c){this.type=c,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new i.Ids,this._preferences=null,this._refs=new f.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return o(typeof l.describe=="function","Manifest functionality disabled"),l.describe(this)}allow(...c){return a.verifyFlat(c,"allow"),this._values(c,"_valids")}alter(c){o(c&&typeof c=="object"&&!Array.isArray(c),"Invalid targets argument"),o(!this._inRuleset(),"Cannot set alterations inside a ruleset");const d=this.clone();d.$_terms.alterations=d.$_terms.alterations||[];for(const v in c){const S=c[v];o(typeof S=="function","Alteration adjuster for",v,"must be a function"),d.$_terms.alterations.push({target:v,adjuster:S})}return d.$_temp.ruleset=!1,d}artifact(c){return o(c!==void 0,"Artifact cannot be undefined"),o(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",c)}cast(c){return o(c===!1||typeof c=="string","Invalid to value"),o(c===!1||this._definition.cast[c],"Type",this.type,"does not support casting to",c),this.$_setFlag("cast",c===!1?void 0:c)}default(c,d){return this._default("default",c,d)}description(c){return o(c&&typeof c=="string","Description must be a non-empty string"),this.$_setFlag("description",c)}empty(c){const d=this.clone();return c!==void 0&&(c=d.$_compile(c,{override:!1})),d.$_setFlag("empty",c,{clone:!1})}error(c){return o(c,"Missing error"),o(c instanceof Error||typeof c=="function","Must provide a valid Error object or a function"),this.$_setFlag("error",c)}example(c,d={}){return o(c!==void 0,"Missing example"),a.assertOptions(d,["override"]),this._inner("examples",c,{single:!0,override:d.override})}external(c,d){return typeof c=="object"&&(o(!d,"Cannot combine options with description"),d=c.description,c=c.method),o(typeof c=="function","Method must be a function"),o(d===void 0||d&&typeof d=="string","Description must be a non-empty string"),this._inner("externals",{method:c,description:d},{single:!0})}failover(c,d){return this._default("failover",c,d)}forbidden(){return this.presence("forbidden")}id(c){return c?(o(typeof c=="string","id must be a non-empty string"),o(/^[^\.]+$/.test(c),"id cannot contain period character"),this.$_setFlag("id",c)):this.$_setFlag("id",void 0)}invalid(...c){return this._values(c,"_invalids")}label(c){return o(c&&typeof c=="string","Label name must be a non-empty string"),this.$_setFlag("label",c)}meta(c){return o(c!==void 0,"Meta cannot be undefined"),this._inner("metas",c,{single:!0})}note(...c){o(c.length,"Missing notes");for(const d of c)o(d&&typeof d=="string","Notes must be non-empty strings");return this._inner("notes",c)}only(c=!0){return o(typeof c=="boolean","Invalid mode:",c),this.$_setFlag("only",c)}optional(){return this.presence("optional")}prefs(c){o(c,"Missing preferences"),o(c.context===void 0,"Cannot override context"),o(c.externals===void 0,"Cannot override externals"),o(c.warnings===void 0,"Cannot override warnings"),o(c.debug===void 0,"Cannot override debug"),a.checkPreferences(c);const d=this.clone();return d._preferences=a.preferences(d._preferences,c),d}presence(c){return o(["optional","required","forbidden"].includes(c),"Unknown presence mode",c),this.$_setFlag("presence",c)}raw(c=!0){return this.$_setFlag("result",c?"raw":void 0)}result(c){return o(["raw","strip"].includes(c),"Unknown result mode",c),this.$_setFlag("result",c)}required(){return this.presence("required")}strict(c){const d=this.clone(),v=c!==void 0&&!c;return d._preferences=a.preferences(d._preferences,{convert:v}),d}strip(c=!0){return this.$_setFlag("result",c?"strip":void 0)}tag(...c){o(c.length,"Missing tags");for(const d of c)o(d&&typeof d=="string","Tags must be non-empty strings");return this._inner("tags",c)}unit(c){return o(c&&typeof c=="string","Unit name must be a non-empty string"),this.$_setFlag("unit",c)}valid(...c){a.verifyFlat(c,"valid");const d=this.allow(...c);return d.$_setFlag("only",!!d._valids,{clone:!1}),d}when(c,d){const v=this.clone();v.$_terms.whens||(v.$_terms.whens=[]);const S=s.when(v,c,d);if(!["any","link"].includes(v.type)){const T=S.is?[S]:S.switch;for(const C of T)o(!C.then||C.then.type==="any"||C.then.type===v.type,"Cannot combine",v.type,"with",C.then&&C.then.type),o(!C.otherwise||C.otherwise.type==="any"||C.otherwise.type===v.type,"Cannot combine",v.type,"with",C.otherwise&&C.otherwise.type)}return v.$_terms.whens.push(S),v.$_mutateRebuild()}cache(c){o(!this._inRuleset(),"Cannot set caching inside a ruleset"),o(!this._cache,"Cannot override schema cache"),o(this._flags.artifact===void 0,"Cannot cache a rule with an artifact");const d=this.clone();return d._cache=c||e.provider.provision(),d.$_temp.ruleset=!1,d}clone(){const c=Object.create(Object.getPrototypeOf(this));return this._assign(c)}concat(c){o(a.isSchema(c),"Invalid schema object"),o(this.type==="any"||c.type==="any"||c.type===this.type,"Cannot merge type",this.type,"with another type:",c.type),o(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),o(!c._inRuleset(),"Cannot concatenate a schema with open ruleset");let d=this.clone();if(this.type==="any"&&c.type!=="any"){const v=c.clone();for(const S of Object.keys(d))S!=="type"&&(v[S]=d[S]);d=v}d._ids.concat(c._ids),d._refs.register(c,f.toSibling),d._preferences=d._preferences?a.preferences(d._preferences,c._preferences):c._preferences,d._valids=R.merge(d._valids,c._valids,c._invalids),d._invalids=R.merge(d._invalids,c._invalids,c._valids);for(const v of c._singleRules.keys())d._singleRules.has(v)&&(d._rules=d._rules.filter(S=>S.keep||S.name!==v),d._singleRules.delete(v));for(const v of c._rules)c._definition.rules[v.method].multi||d._singleRules.set(v.name,v),d._rules.push(v);if(d._flags.empty&&c._flags.empty){d._flags.empty=d._flags.empty.concat(c._flags.empty);const v=Object.assign({},c._flags);delete v.empty,u(d._flags,v)}else if(c._flags.empty){d._flags.empty=c._flags.empty;const v=Object.assign({},c._flags);delete v.empty,u(d._flags,v)}else u(d._flags,c._flags);for(const v in c.$_terms){const S=c.$_terms[v];S?d.$_terms[v]?d.$_terms[v]=d.$_terms[v].concat(S):d.$_terms[v]=S.slice():d.$_terms[v]||(d.$_terms[v]=S)}return this.$_root._tracer&&this.$_root._tracer._combine(d,[this,c]),d.$_mutateRebuild()}extend(c){return o(!c.base,"Cannot extend type with another base"),t.type(this,c)}extract(c){return c=Array.isArray(c)?c:c.split("."),this._ids.reach(c)}fork(c,d){o(!this._inRuleset(),"Cannot fork inside a ruleset");let v=this;for(let S of[].concat(c))S=Array.isArray(S)?S:S.split("."),v=v._ids.fork(S,d,v);return v.$_temp.ruleset=!1,v}rule(c){const d=this._definition;a.assertOptions(c,Object.keys(d.modifiers)),o(this.$_temp.ruleset!==!1,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const v=this.$_temp.ruleset===null?this._rules.length-1:this.$_temp.ruleset;o(v>=0&&v<this._rules.length,"Cannot apply rules to empty ruleset");const S=this.clone();for(let T=v;T<S._rules.length;++T){const C=S._rules[T],N=y(C);for(const M in c)d.modifiers[M](N,c[M]),o(N.name===C.name,"Cannot change rule name");S._rules[T]=N,S._singleRules.get(N.name)===C&&S._singleRules.set(N.name,N)}return S.$_temp.ruleset=!1,S.$_mutateRebuild()}get ruleset(){o(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");const c=this.clone();return c.$_temp.ruleset=c._rules.length,c}get $(){return this.ruleset}tailor(c){c=[].concat(c),o(!this._inRuleset(),"Cannot tailor inside a ruleset");let d=this;if(this.$_terms.alterations)for(const{target:v,adjuster:S}of this.$_terms.alterations)c.includes(v)&&(d=S(d),o(a.isSchema(d),"Alteration adjuster for",v,"failed to return a schema object"));return d=d.$_modify({each:v=>v.tailor(c),ref:!1}),d.$_temp.ruleset=!1,d.$_mutateRebuild()}tracer(){return m.location?m.location(this):this}validate(c,d){return p.entry(c,this,d)}validateAsync(c,d){return p.entryAsync(c,this,d)}$_addRule(c){typeof c=="string"&&(c={name:c}),o(c&&typeof c=="object","Invalid options"),o(c.name&&typeof c.name=="string","Invalid rule name");for(const C in c)o(C[0]!=="_","Cannot set private rule properties");const d=Object.assign({},c);d._resolve=[],d.method=d.method||d.name;const v=this._definition.rules[d.method],S=d.args;o(v,"Unknown rule",d.method);const T=this.clone();if(S){o(Object.keys(S).length===1||Object.keys(S).length===this._definition.rules[d.name].args.length,"Invalid rule definition for",this.type,d.name);for(const C in S){let N=S[C];if(v.argsByName){const M=v.argsByName.get(C);if(M.ref&&a.isResolvable(N))d._resolve.push(C),T.$_mutateRegister(N);else if(M.normalize&&(N=M.normalize(N),S[C]=N),M.assert){const V=a.validateArg(N,C,M);o(!V,V,"or reference")}}N!==void 0?S[C]=N:delete S[C]}}return v.multi||(T._ruleRemove(d.name,{clone:!1}),T._singleRules.set(d.name,d)),T.$_temp.ruleset===!1&&(T.$_temp.ruleset=null),v.priority?T._rules.unshift(d):T._rules.push(d),T}$_compile(c,d){return s.schema(this.$_root,c,d)}$_createError(c,d,v,S,T,C={}){const N=C.flags!==!1?this._flags:{},M=C.messages?n.merge(this._definition.messages,C.messages):this._definition.messages;return new r.Report(c,d,v,N,M,S,T)}$_getFlag(c){return this._flags[c]}$_getRule(c){return this._singleRules.get(c)}$_mapLabels(c){return c=Array.isArray(c)?c:c.split("."),this._ids.labels(c)}$_match(c,d,v,S){(v=Object.assign({},v)).abortEarly=!0,v._externals=!1,d.snapshot();const T=!p.validate(c,this,d,v,S).errors;return d.restore(),T}$_modify(c){return a.assertOptions(c,["each","once","ref","schema"]),i.schema(this,c)||this}$_mutateRebuild(){return o(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(c,{source:d,name:v,path:S,key:T})=>{const C=this._definition[d][v]&&this._definition[d][v].register;C!==!1&&this.$_mutateRegister(c,{family:C,key:T})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(c,{family:d,key:v}={}){this._refs.register(c,d),this._ids.register(c,{key:v})}$_property(c){return this._definition.properties[c]}$_reach(c){return this._ids.reach(c)}$_rootReferences(){return this._refs.roots()}$_setFlag(c,d,v={}){o(c[0]==="_"||!this._inRuleset(),"Cannot set flag inside a ruleset");const S=this._definition.flags[c]||{};if(h(d,S.default)&&(d=void 0),h(d,this._flags[c]))return this;const T=v.clone!==!1?this.clone():this;return d!==void 0?(T._flags[c]=d,T.$_mutateRegister(d)):delete T._flags[c],c[0]!=="_"&&(T.$_temp.ruleset=!1),T}$_parent(c,...d){return this[c][a.symbols.parent].call(this,...d)}$_validate(c,d,v){return p.validate(c,this,d,v)}_assign(c){c.type=this.type,c.$_root=this.$_root,c.$_temp=Object.assign({},this.$_temp),c.$_temp.whens={},c._ids=this._ids.clone(),c._preferences=this._preferences,c._valids=this._valids&&this._valids.clone(),c._invalids=this._invalids&&this._invalids.clone(),c._rules=this._rules.slice(),c._singleRules=y(this._singleRules,{shallow:!0}),c._refs=this._refs.clone(),c._flags=Object.assign({},this._flags),c._cache=null,c.$_terms={};for(const d in this.$_terms)c.$_terms[d]=this.$_terms[d]?this.$_terms[d].slice():null;c.$_super={};for(const d in this.$_super)c.$_super[d]=this._super[d].bind(c);return c}_bare(){const c=this.clone();c._reset();const d=c._definition.terms;for(const v in d){const S=d[v];c.$_terms[v]=S.init}return c.$_mutateRebuild()}_default(c,d,v={}){return a.assertOptions(v,"literal"),o(d!==void 0,"Missing",c,"value"),o(typeof d=="function"||!v.literal,"Only function value supports literal option"),typeof d=="function"&&v.literal&&(d={[a.symbols.literal]:!0,literal:d}),this.$_setFlag(c,d)}_generate(c,d,v){if(!this.$_terms.whens)return{schema:this};const S=[],T=[];for(let M=0;M<this.$_terms.whens.length;++M){const V=this.$_terms.whens[M];if(V.concat){S.push(V.concat),T.push(`${M}.concat`);continue}const B=V.ref?V.ref.resolve(c,d,v):c,H=V.is?[V]:V.switch,J=T.length;for(let K=0;K<H.length;++K){const{is:X,then:re,otherwise:te}=H[K],ie=`${M}${V.switch?"."+K:""}`;if(X.$_match(B,d.nest(X,`${ie}.is`),v)){if(re){const he=d.localize([...d.path,`${ie}.then`],d.ancestors,d.schemas),{schema:_e,id:de}=re._generate(c,he,v);S.push(_e),T.push(`${ie}.then${de?`(${de})`:""}`);break}}else if(te){const he=d.localize([...d.path,`${ie}.otherwise`],d.ancestors,d.schemas),{schema:_e,id:de}=te._generate(c,he,v);S.push(_e),T.push(`${ie}.otherwise${de?`(${de})`:""}`);break}}if(V.break&&T.length>J)break}const C=T.join(", ");if(d.mainstay.tracer.debug(d,"rule","when",C),!C)return{schema:this};if(!d.mainstay.tracer.active&&this.$_temp.whens[C])return{schema:this.$_temp.whens[C],id:C};let N=this;this._definition.generate&&(N=this._definition.generate(this,c,d,v));for(const M of S)N=N.concat(M);return this.$_root._tracer&&this.$_root._tracer._combine(N,[this,...S]),this.$_temp.whens[C]=N,{schema:N,id:C}}_inner(c,d,v={}){o(!this._inRuleset(),`Cannot set ${c} inside a ruleset`);const S=this.clone();return S.$_terms[c]&&!v.override||(S.$_terms[c]=[]),v.single?S.$_terms[c].push(d):S.$_terms[c].push(...d),S.$_temp.ruleset=!1,S}_inRuleset(){return this.$_temp.ruleset!==null&&this.$_temp.ruleset!==!1}_ruleRemove(c,d={}){if(!this._singleRules.has(c))return this;const v=d.clone!==!1?this.clone():this;v._singleRules.delete(c);const S=[];for(let T=0;T<v._rules.length;++T){const C=v._rules[T];C.name!==c||C.keep?S.push(C):v._inRuleset()&&T<v.$_temp.ruleset&&--v.$_temp.ruleset}return v._rules=S,v}_values(c,d){a.verifyFlat(c,d.slice(1,-1));const v=this.clone(),S=c[0]===a.symbols.override;if(S&&(c=c.slice(1)),!v[d]&&c.length?v[d]=new R:S&&(v[d]=c.length?new R:null,v.$_mutateRebuild()),!v[d])return v;S&&v[d].override();for(const T of c){o(T!==void 0,"Cannot call allow/valid/invalid with undefined"),o(T!==a.symbols.override,"Override must be the first value");const C=d==="_invalids"?"_valids":"_invalids";v[C]&&(v[C].remove(T),v[C].length||(o(d==="_valids"||!v._flags.only,"Setting invalid value",T,"leaves schema rejecting all values due to previous valid rule"),v[C]=null)),v[d].add(T,v._refs)}return v}}};x.Base.prototype[a.symbols.any]={version:a.version,compile:s.compile,root:"$_root"},x.Base.prototype.isImmutable=!0,x.Base.prototype.deny=x.Base.prototype.invalid,x.Base.prototype.disallow=x.Base.prototype.invalid,x.Base.prototype.equal=x.Base.prototype.valid,x.Base.prototype.exist=x.Base.prototype.required,x.Base.prototype.not=x.Base.prototype.invalid,x.Base.prototype.options=x.Base.prototype.prefs,x.Base.prototype.preferences=x.Base.prototype.prefs,I.exports=new x.Base},8652:(I,j,_)=>{const o=_(375),y=_(8571),h=_(8160),u={max:1e3,supported:new Set(["undefined","boolean","number","string"])};j.provider={provision:e=>new u.Cache(e)},u.Cache=class{constructor(e={}){h.assertOptions(e,["max"]),o(e.max===void 0||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||u.max,this._map=new Map,this._list=new u.List}get length(){return this._map.size}set(e,a){if(e!==null&&!u.supported.has(typeof e))return;let s=this._map.get(e);if(s)return s.value=a,void this._list.first(s);s=this._list.unshift({key:e,value:a}),this._map.set(e,s),this._compact()}get(e){const a=this._map.get(e);if(a)return this._list.first(a),y(a.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},u.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:a,prev:s}=e;return a.prev=s,s&&(s.next=a),e===this.tail&&(this.tail=a),e.prev=null,e.next=null,e}}},8160:(I,j,_)=>{const o=_(375),y=_(7916),h=_(5934);let u,e;const a={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};j.version=h.version,j.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},j.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},j.assertOptions=function(s,r,t="Options"){o(s&&typeof s=="object"&&!Array.isArray(s),"Options must be of type object");const l=Object.keys(s).filter(n=>!r.includes(n));o(l.length===0,`${t} contain unknown keys: ${l}`)},j.checkPreferences=function(s){e=e||_(3378);const r=e.preferences.validate(s);if(r.error)throw new y([r.error.details[0].message])},j.compare=function(s,r,t){switch(t){case"=":return s===r;case">":return s>r;case"<":return s<r;case">=":return s>=r;case"<=":return s<=r}},j.default=function(s,r){return s===void 0?r:s},j.isIsoDate=function(s){return a.isoDate.test(s)},j.isNumber=function(s){return typeof s=="number"&&!isNaN(s)},j.isResolvable=function(s){return!!s&&(s[j.symbols.ref]||s[j.symbols.template])},j.isSchema=function(s,r={}){const t=s&&s[j.symbols.any];return!!t&&(o(r.legacy||t.version===j.version,"Cannot mix different versions of joi schemas"),!0)},j.isValues=function(s){return s[j.symbols.values]},j.limit=function(s){return Number.isSafeInteger(s)&&s>=0},j.preferences=function(s,r){u=u||_(6914),s=s||{},r=r||{};const t=Object.assign({},s,r);return r.errors&&s.errors&&(t.errors=Object.assign({},s.errors,r.errors),t.errors.wrap=Object.assign({},s.errors.wrap,r.errors.wrap)),r.messages&&(t.messages=u.compile(r.messages,s.messages)),delete t[j.symbols.prefs],t},j.tryWithPath=function(s,r,t={}){try{return s()}catch(l){throw l.path!==void 0?l.path=r+"."+l.path:l.path=r,t.append&&(l.message=`${l.message} (${l.path})`),l}},j.validateArg=function(s,r,{assert:t,message:l}){if(j.isSchema(t)){const n=t.validate(s);return n.error?n.error.message:void 0}if(!t(s))return r?`${r} ${l}`:l},j.verifyFlat=function(s,r){for(const t of s)o(!Array.isArray(t),"Method no longer accepts array arguments:",r)}},3292:(I,j,_)=>{const o=_(375),y=_(8160),h=_(6133),u={};j.schema=function(e,a,s={}){y.assertOptions(s,["appendPath","override"]);try{return u.schema(e,a,s)}catch(r){throw s.appendPath&&r.path!==void 0&&(r.message=`${r.message} (${r.path})`),r}},u.schema=function(e,a,s){o(a!==void 0,"Invalid undefined schema"),Array.isArray(a)&&(o(a.length,"Invalid empty array schema"),a.length===1&&(a=a[0]));const r=(t,...l)=>s.override!==!1?t.valid(e.override,...l):t.valid(...l);if(u.simple(a))return r(e,a);if(typeof a=="function")return e.custom(a);if(o(typeof a=="object","Invalid schema content:",typeof a),y.isResolvable(a))return r(e,a);if(y.isSchema(a))return a;if(Array.isArray(a)){for(const t of a)if(!u.simple(t))return e.alternatives().try(...a);return r(e,...a)}return a instanceof RegExp?e.string().regex(a):a instanceof Date?r(e.date(),a):(o(Object.getPrototypeOf(a)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(a))},j.ref=function(e,a){return h.isRef(e)?e:h.create(e,a)},j.compile=function(e,a,s={}){y.assertOptions(s,["legacy"]);const r=a&&a[y.symbols.any];if(r)return o(s.legacy||r.version===y.version,"Cannot mix different versions of joi schemas:",r.version,y.version),a;if(typeof a!="object"||!s.legacy)return j.schema(e,a,{appendPath:!0});const t=u.walk(a);return t?t.compile(t.root,a):j.schema(e,a,{appendPath:!0})},u.walk=function(e){if(typeof e!="object")return null;if(Array.isArray(e)){for(const s of e){const r=u.walk(s);if(r)return r}return null}const a=e[y.symbols.any];if(a)return{root:e[a.root],compile:a.compile};o(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const s in e){const r=u.walk(e[s]);if(r)return r}return null},u.simple=function(e){return e===null||["boolean","string","number"].includes(typeof e)},j.when=function(e,a,s){if(s===void 0&&(o(a&&typeof a=="object","Missing options"),s=a,a=h.create(".")),Array.isArray(s)&&(s={switch:s}),y.assertOptions(s,["is","not","then","otherwise","switch","break"]),y.isSchema(a))return o(s.is===void 0,'"is" can not be used with a schema condition'),o(s.not===void 0,'"not" can not be used with a schema condition'),o(s.switch===void 0,'"switch" can not be used with a schema condition'),u.condition(e,{is:a,then:s.then,otherwise:s.otherwise,break:s.break});if(o(h.isRef(a)||typeof a=="string","Invalid condition:",a),o(s.not===void 0||s.is===void 0,'Cannot combine "is" with "not"'),s.switch===void 0){let t=s;s.not!==void 0&&(t={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let l=t.is!==void 0?e.$_compile(t.is):e.$_root.invalid(null,!1,0,"").required();return o(t.then!==void 0||t.otherwise!==void 0,'options must have at least one of "then", "otherwise", or "switch"'),o(t.break===void 0||t.then===void 0||t.otherwise===void 0,"Cannot specify then, otherwise, and break all together"),s.is===void 0||h.isRef(s.is)||y.isSchema(s.is)||(l=l.required()),u.condition(e,{ref:j.ref(a),is:l,then:t.then,otherwise:t.otherwise,break:t.break})}o(Array.isArray(s.switch),'"switch" must be an array'),o(s.is===void 0,'Cannot combine "switch" with "is"'),o(s.not===void 0,'Cannot combine "switch" with "not"'),o(s.then===void 0,'Cannot combine "switch" with "then"');const r={ref:j.ref(a),switch:[],break:s.break};for(let t=0;t<s.switch.length;++t){const l=s.switch[t],n=t===s.switch.length-1;y.assertOptions(l,n?["is","then","otherwise"]:["is","then"]),o(l.is!==void 0,'Switch statement missing "is"'),o(l.then!==void 0,'Switch statement missing "then"');const i={is:e.$_compile(l.is),then:e.$_compile(l.then)};if(h.isRef(l.is)||y.isSchema(l.is)||(i.is=i.is.required()),n){o(s.otherwise===void 0||l.otherwise===void 0,'Cannot specify "otherwise" inside and outside a "switch"');const f=s.otherwise!==void 0?s.otherwise:l.otherwise;f!==void 0&&(o(r.break===void 0,"Cannot specify both otherwise and break"),i.otherwise=e.$_compile(f))}r.switch.push(i)}return r},u.condition=function(e,a){for(const s of["then","otherwise"])a[s]===void 0?delete a[s]:a[s]=e.$_compile(a[s]);return a}},6354:(I,j,_)=>{const o=_(5688),y=_(8160),h=_(3328);j.Report=class{constructor(u,e,a,s,r,t,l){if(this.code=u,this.flags=s,this.messages=r,this.path=t.path,this.prefs=l,this.state=t,this.value=e,this.message=null,this.template=null,this.local=a||{},this.local.label=j.label(this.flags,this.state,this.prefs,this.messages),this.value===void 0||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const n=this.path[this.path.length-1];typeof n!="object"&&(this.local.key=n)}}_setTemplate(u){if(this.template=u,!this.flags.label&&this.path.length===0){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const u=this.code;if(!this.prefs.errors.render)return this.code;const e=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return e===void 0?`Error code "${u}" is not defined, your custom type is missing the correct messages definition`:(this.message=e.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(u,e){return j.template(this.value,u,e||this.code,this.state,this.prefs)}},j.path=function(u){let e="";for(const a of u)typeof a!="object"&&(typeof a=="string"?(e&&(e+="."),e+=a):e+=`[${a}]`);return e},j.template=function(u,e,a,s,r){if(!e)return;if(h.isTemplate(e))return a!=="root"?e:null;let t=r.errors.language;if(y.isResolvable(t)&&(t=t.resolve(u,s,r)),t&&e[t]){if(e[t][a]!==void 0)return e[t][a];if(e[t]["*"]!==void 0)return e[t]["*"]}return e[a]?e[a]:e["*"]},j.label=function(u,e,a,s){if(u.label)return u.label;if(!a.errors.label)return"";let r=e.path;return a.errors.label==="key"&&e.path.length>1&&(r=e.path.slice(-1)),j.path(r)||j.template(null,a.messages,"root",e,a)||s&&j.template(null,s,"root",e,a)||"value"},j.process=function(u,e,a){if(!u)return null;const{override:s,message:r,details:t}=j.details(u);if(s)return s;if(a.errors.stack)return new j.ValidationError(r,t,e);const l=Error.stackTraceLimit;Error.stackTraceLimit=0;const n=new j.ValidationError(r,t,e);return Error.stackTraceLimit=l,n},j.details=function(u,e={}){let a=[];const s=[];for(const r of u){if(r instanceof Error){if(e.override!==!1)return{override:r};const l=r.toString();a.push(l),s.push({message:l,type:"override",context:{error:r}});continue}const t=r.toString();a.push(t),s.push({message:t,path:r.path.filter(l=>typeof l!="object"),type:r.code,context:r.local})}return a.length>1&&(a=[...new Set(a)]),{message:a.join(". "),details:s}},j.ValidationError=class extends Error{constructor(u,e,a){super(u),this._original=a,this.details=e}static isError(u){return u instanceof j.ValidationError}},j.ValidationError.prototype.isJoi=!0,j.ValidationError.prototype.name="ValidationError",j.ValidationError.prototype.annotate=o.error},8901:(I,j,_)=>{const o=_(375),y=_(8571),h=_(8160),u=_(6914),e={};j.type=function(a,s){const r=Object.getPrototypeOf(a),t=y(r),l=a._assign(Object.create(t)),n=Object.assign({},s);delete n.base,t._definition=n;const i=r._definition||{};n.messages=u.merge(i.messages,n.messages),n.properties=Object.assign({},i.properties,n.properties),l.type=n.type,n.flags=Object.assign({},i.flags,n.flags);const f=Object.assign({},i.terms);if(n.terms)for(const x in n.terms){const c=n.terms[x];o(l.$_terms[x]===void 0,"Invalid term override for",n.type,x),l.$_terms[x]=c.init,f[x]=c}n.terms=f,n.args||(n.args=i.args),n.prepare=e.prepare(n.prepare,i.prepare),n.coerce&&(typeof n.coerce=="function"&&(n.coerce={method:n.coerce}),n.coerce.from&&!Array.isArray(n.coerce.from)&&(n.coerce={method:n.coerce.method,from:[].concat(n.coerce.from)})),n.coerce=e.coerce(n.coerce,i.coerce),n.validate=e.validate(n.validate,i.validate);const m=Object.assign({},i.rules);if(n.rules)for(const x in n.rules){const c=n.rules[x];o(typeof c=="object","Invalid rule definition for",n.type,x);let d=c.method;if(d===void 0&&(d=function(){return this.$_addRule(x)}),d&&(o(!t[x],"Rule conflict in",n.type,x),t[x]=d),o(!m[x],"Rule conflict in",n.type,x),m[x]=c,c.alias){const v=[].concat(c.alias);for(const S of v)t[S]=c.method}c.args&&(c.argsByName=new Map,c.args=c.args.map(v=>(typeof v=="string"&&(v={name:v}),o(!c.argsByName.has(v.name),"Duplicated argument name",v.name),h.isSchema(v.assert)&&(v.assert=v.assert.strict().label(v.name)),c.argsByName.set(v.name,v),v)))}n.rules=m;const p=Object.assign({},i.modifiers);if(n.modifiers)for(const x in n.modifiers){o(!t[x],"Rule conflict in",n.type,x);const c=n.modifiers[x];o(typeof c=="function","Invalid modifier definition for",n.type,x);const d=function(v){return this.rule({[x]:v})};t[x]=d,p[x]=c}if(n.modifiers=p,n.overrides){t._super=r,l.$_super={};for(const x in n.overrides)o(r[x],"Cannot override missing",x),n.overrides[x][h.symbols.parent]=r[x],l.$_super[x]=r[x].bind(l);Object.assign(t,n.overrides)}n.cast=Object.assign({},i.cast,n.cast);const R=Object.assign({},i.manifest,n.manifest);return R.build=e.build(n.manifest&&n.manifest.build,i.manifest&&i.manifest.build),n.manifest=R,n.rebuild=e.rebuild(n.rebuild,i.rebuild),l},e.build=function(a,s){return a&&s?function(r,t){return s(a(r,t),t)}:a||s},e.coerce=function(a,s){return a&&s?{from:a.from&&s.from?[...new Set([...a.from,...s.from])]:null,method(r,t){let l;if((!s.from||s.from.includes(typeof r))&&(l=s.method(r,t),l)){if(l.errors||l.value===void 0)return l;r=l.value}if(!a.from||a.from.includes(typeof r)){const n=a.method(r,t);if(n)return n}return l}}:a||s},e.prepare=function(a,s){return a&&s?function(r,t){const l=a(r,t);if(l){if(l.errors||l.value===void 0)return l;r=l.value}return s(r,t)||l}:a||s},e.rebuild=function(a,s){return a&&s?function(r){s(r),a(r)}:a||s},e.validate=function(a,s){return a&&s?function(r,t){const l=s(r,t);if(l){if(l.errors&&(!Array.isArray(l.errors)||l.errors.length))return l;r=l.value}return a(r,t)||l}:a||s}},5107:(I,j,_)=>{const o=_(375),y=_(8571),h=_(8652),u=_(8160),e=_(3292),a=_(6354),s=_(8901),r=_(9708),t=_(6133),l=_(3328),n=_(1152);let i;const f={types:{alternatives:_(4946),any:_(8068),array:_(546),boolean:_(4937),date:_(7500),function:_(390),link:_(8785),number:_(3832),object:_(8966),string:_(7417),symbol:_(8826)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const m={_types:new Set(Object.keys(f.types))};for(const p of m._types)m[p]=function(...R){return o(!R.length||["alternatives","link","object"].includes(p),"The",p,"type does not allow arguments"),f.generate(this,f.types[p],R)};for(const p of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])m[p]=function(...R){return this.any()[p](...R)};Object.assign(m,f.methods);for(const p in f.aliases){const R=f.aliases[p];m[p]=m[R]}return m.x=m.expression,n.setup&&n.setup(m),m}};f.methods={ValidationError:a.ValidationError,version:u.version,cache:h.provider,assert(m,p,...R){f.assert(m,p,!0,R)},attempt:(m,p,...R)=>f.assert(m,p,!1,R),build(m){return o(typeof r.build=="function","Manifest functionality disabled"),r.build(this,m)},checkPreferences(m){u.checkPreferences(m)},compile(m,p){return e.compile(this,m,p)},defaults(m){o(typeof m=="function","modifier must be a function");const p=Object.assign({},this);for(const R of p._types){const x=m(p[R]());o(u.isSchema(x),"modifier must return a valid schema object"),p[R]=function(...c){return f.generate(this,x,c)}}return p},expression:(...m)=>new l(...m),extend(...m){u.verifyFlat(m,"extend"),i=i||_(3378),o(m.length,"You need to provide at least one extension"),this.assert(m,i.extensions);const p=Object.assign({},this);p._types=new Set(p._types);for(let R of m){typeof R=="function"&&(R=R(p)),this.assert(R,i.extension);const x=f.expandExtension(R,p);for(const c of x){o(p[c.type]===void 0||p._types.has(c.type),"Cannot override name",c.type);const d=c.base||this.any(),v=s.type(d,c);p._types.add(c.type),p[c.type]=function(...S){return f.generate(this,v,S)}}}return p},isError:a.ValidationError.isError,isExpression:l.isTemplate,isRef:t.isRef,isSchema:u.isSchema,in:(...m)=>t.in(...m),override:u.symbols.override,ref:(...m)=>t.create(...m),types(){const m={};for(const p of this._types)m[p]=this[p]();for(const p in f.aliases)m[p]=this[p]();return m}},f.assert=function(m,p,R,x){const c=x[0]instanceof Error||typeof x[0]=="string"?x[0]:null,d=c!==null?x[1]:x[0],v=p.validate(m,u.preferences({errors:{stack:!0}},d||{}));let S=v.error;if(!S)return v.value;if(c instanceof Error)throw c;const T=R&&typeof S.annotate=="function"?S.annotate():S.message;throw S instanceof a.ValidationError==0&&(S=y(S)),S.message=c?`${c} ${T}`:T,S},f.generate=function(m,p,R){return o(m,"Must be invoked on a Joi instance."),p.$_root=m,p._definition.args&&R.length?p._definition.args(p,...R):p},f.expandExtension=function(m,p){if(typeof m.type=="string")return[m];const R=[];for(const x of p._types)if(m.type.test(x)){const c=Object.assign({},m);c.type=x,c.base=p[x](),R.push(c)}return R},I.exports=f.root()},6914:(I,j,_)=>{const o=_(375),y=_(8571),h=_(3328);j.compile=function(u,e){if(typeof u=="string")return o(!e,"Cannot set single message string"),new h(u);if(h.isTemplate(u))return o(!e,"Cannot set single message template"),u;o(typeof u=="object"&&!Array.isArray(u),"Invalid message options"),e=e?y(e):{};for(let a in u){const s=u[a];if(a==="root"||h.isTemplate(s)){e[a]=s;continue}if(typeof s=="string"){e[a]=new h(s);continue}o(typeof s=="object"&&!Array.isArray(s),"Invalid message for",a);const r=a;for(a in e[r]=e[r]||{},s){const t=s[a];a==="root"||h.isTemplate(t)?e[r][a]=t:(o(typeof t=="string","Invalid message for",a,"in",r),e[r][a]=new h(t))}}return e},j.decompile=function(u){const e={};for(let a in u){const s=u[a];if(a==="root"){e.root=s;continue}if(h.isTemplate(s)){e[a]=s.describe({compact:!0});continue}const r=a;for(a in e[r]={},s){const t=s[a];a!=="root"?e[r][a]=t.describe({compact:!0}):e[r].root=t}}return e},j.merge=function(u,e){if(!u)return j.compile(e);if(!e)return u;if(typeof e=="string")return new h(e);if(h.isTemplate(e))return e;const a=y(u);for(let s in e){const r=e[s];if(s==="root"||h.isTemplate(r)){a[s]=r;continue}if(typeof r=="string"){a[s]=new h(r);continue}o(typeof r=="object"&&!Array.isArray(r),"Invalid message for",s);const t=s;for(s in a[t]=a[t]||{},r){const l=r[s];s==="root"||h.isTemplate(l)?a[t][s]=l:(o(typeof l=="string","Invalid message for",s,"in",t),a[t][s]=new h(l))}}return a}},2294:(I,j,_)=>{const o=_(375),y=_(8160),h=_(6133),u={};j.Ids=u.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new u.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[a,s]of e._byId.entries())o(!this._byKey.has(a),"Schema id conflicts with existing key:",a),this._byId.set(a,s);for(const[a,s]of e._byKey.entries())o(!this._byId.has(a),"Schema key conflicts with existing id:",a),this._byKey.set(a,s)}fork(e,a,s){const r=this._collect(e);r.push({schema:s});const t=r.shift();let l={id:t.id,schema:a(t.schema)};o(y.isSchema(l.schema),"adjuster function failed to return a joi schema type");for(const n of r)l={id:n.id,schema:u.fork(n.schema,l.id,l.schema)};return l.schema}labels(e,a=[]){const s=e[0],r=this._get(s);if(!r)return[...a,...e].join(".");const t=e.slice(1);return a=[...a,r.schema._flags.label||s],t.length?r.schema._ids.labels(t,a):a.join(".")}reach(e,a=[]){const s=e[0],r=this._get(s);o(r,"Schema does not contain path",[...a,...e].join("."));const t=e.slice(1);return t.length?r.schema._ids.reach(t,[...a,s]):r.schema}register(e,{key:a}={}){if(!e||!y.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const s=e._flags.id;if(s){const r=this._byId.get(s);o(!r||r.schema===e,"Cannot add different schemas with the same id:",s),o(!this._byKey.has(s),"Schema id conflicts with existing key:",s),this._byId.set(s,{schema:e,id:s})}a&&(o(!this._byKey.has(a),"Schema already contains key:",a),o(!this._byId.has(a),"Schema key conflicts with existing id:",a),this._byKey.set(a,{schema:e,id:a}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,a=[],s=[]){const r=e[0],t=this._get(r);o(t,"Schema does not contain path",[...a,...e].join(".")),s=[t,...s];const l=e.slice(1);return l.length?t.schema._ids._collect(l,[...a,r],s):s}_get(e){return this._byId.get(e)||this._byKey.get(e)}},u.fork=function(e,a,s){const r=j.schema(e,{each:(t,{key:l})=>{if(a===(t._flags.id||l))return s},ref:!1});return r?r.$_mutateRebuild():e},j.schema=function(e,a){let s;for(const r in e._flags){if(r[0]==="_")continue;const t=u.scan(e._flags[r],{source:"flags",name:r},a);t!==void 0&&(s=s||e.clone(),s._flags[r]=t)}for(let r=0;r<e._rules.length;++r){const t=e._rules[r],l=u.scan(t.args,{source:"rules",name:t.name},a);if(l!==void 0){s=s||e.clone();const n=Object.assign({},t);n.args=l,s._rules[r]=n,s._singleRules.get(t.name)===t&&s._singleRules.set(t.name,n)}}for(const r in e.$_terms){if(r[0]==="_")continue;const t=u.scan(e.$_terms[r],{source:"terms",name:r},a);t!==void 0&&(s=s||e.clone(),s.$_terms[r]=t)}return s},u.scan=function(e,a,s,r,t){const l=r||[];if(e===null||typeof e!="object")return;let n;if(Array.isArray(e)){for(let i=0;i<e.length;++i){const f=a.source==="terms"&&a.name==="keys"&&e[i].key,m=u.scan(e[i],a,s,[i,...l],f);m!==void 0&&(n=n||e.slice(),n[i]=m)}return n}if(s.schema!==!1&&y.isSchema(e)||s.ref!==!1&&h.isRef(e)){const i=s.each(e,{...a,path:l,key:t});return i===e?void 0:i}for(const i in e){if(i[0]==="_")continue;const f=u.scan(e[i],a,s,[i,...l],t);f!==void 0&&(n=n||Object.assign({},e),n[i]=f)}return n}},6133:(I,j,_)=>{const o=_(375),y=_(8571),h=_(9621),u=_(8160);let e;const a={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};j.create=function(s,r={}){o(typeof s=="string","Invalid reference key:",s),u.assertOptions(r,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),o(!r.prefix||typeof r.prefix=="object","options.prefix must be of type object");const t=Object.assign({},a.defaults,r);delete t.prefix;const l=t.separator,n=a.context(s,l,r.prefix);if(t.type=n.type,s=n.key,t.type==="value")if(n.root&&(o(!l||s[0]!==l,"Cannot specify relative path with root prefix"),t.ancestor="root",s||(s=null)),l&&l===s)s=null,t.ancestor=0;else if(t.ancestor!==void 0)o(!l||!s||s[0]!==l,"Cannot combine prefix with ancestor option");else{const[i,f]=a.ancestor(s,l);f&&(s=s.slice(f))===""&&(s=null),t.ancestor=i}return t.path=l?s===null?[]:s.split(l):[s],new a.Ref(t)},j.in=function(s,r={}){return j.create(s,{...r,in:!0})},j.isRef=function(s){return!!s&&!!s[u.symbols.ref]},a.Ref=class{constructor(s){o(typeof s=="object","Invalid reference construction"),u.assertOptions(s,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),o([!1,void 0].includes(s.separator)||typeof s.separator=="string"&&s.separator.length===1,"Invalid separator"),o(!s.adjust||typeof s.adjust=="function","options.adjust must be a function"),o(!s.map||Array.isArray(s.map),"options.map must be an array"),o(!s.map||!s.adjust,"Cannot set both map and adjust options"),Object.assign(this,a.defaults,s),o(this.type==="value"||this.ancestor===void 0,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(s,r,t,l,n={}){return o(!this.in||n.in,"Invalid in() reference usage"),this.type==="global"?this._resolve(t.context,r,n):this.type==="local"?this._resolve(l,r,n):this.ancestor?this.ancestor==="root"?this._resolve(r.ancestors[r.ancestors.length-1],r,n):(o(this.ancestor<=r.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(r.ancestors[this.ancestor-1],r,n)):this._resolve(s,r,n)}_resolve(s,r,t){let l;if(this.type==="value"&&r.mainstay.shadow&&t.shadow!==!1&&(l=r.mainstay.shadow.get(this.absolute(r))),l===void 0&&(l=h(s,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(l=this.adjust(l)),this.map){const n=this.map.get(l);n!==void 0&&(l=n)}return r.mainstay&&r.mainstay.tracer.resolve(r,this,l),l}toString(){return this.display}absolute(s){return[...s.path.slice(0,-this.ancestor),...this.path]}clone(){return new a.Ref(this)}describe(){const s={path:this.path};this.type!=="value"&&(s.type=this.type),this.separator!=="."&&(s.separator=this.separator),this.type==="value"&&this.ancestor!==1&&(s.ancestor=this.ancestor),this.map&&(s.map=[...this.map]);for(const r of["adjust","iterables","render"])this[r]!==null&&this[r]!==void 0&&(s[r]=this[r]);return this.in!==!1&&(s.in=!0),{ref:s}}updateDisplay(){const s=this.key!==null?this.key:"";if(this.type!=="value")return void(this.display=`ref:${this.type}:${s}`);if(!this.separator)return void(this.display=`ref:${s}`);if(!this.ancestor)return void(this.display=`ref:${this.separator}${s}`);if(this.ancestor==="root")return void(this.display=`ref:root:${s}`);if(this.ancestor===1)return void(this.display=`ref:${s||".."}`);const r=new Array(this.ancestor+1).fill(this.separator).join("");this.display=`ref:${r}${s||""}`}},a.Ref.prototype[u.symbols.ref]=!0,j.build=function(s){return(s=Object.assign({},a.defaults,s)).type==="value"&&s.ancestor===void 0&&(s.ancestor=1),new a.Ref(s)},a.context=function(s,r,t={}){if(s=s.trim(),t){const l=t.global===void 0?"$":t.global;if(l!==r&&s.startsWith(l))return{key:s.slice(l.length),type:"global"};const n=t.local===void 0?"#":t.local;if(n!==r&&s.startsWith(n))return{key:s.slice(n.length),type:"local"};const i=t.root===void 0?"/":t.root;if(i!==r&&s.startsWith(i))return{key:s.slice(i.length),type:"value",root:!0}}return{key:s,type:"value"}},a.ancestor=function(s,r){if(!r)return[1,0];if(s[0]!==r)return[1,0];if(s[1]!==r)return[0,1];let t=2;for(;s[t]===r;)++t;return[t-1,t]},j.toSibling=0,j.toParent=1,j.Manager=class{constructor(){this.refs=[]}register(s,r){if(s)if(r=r===void 0?j.toParent:r,Array.isArray(s))for(const t of s)this.register(t,r);else if(u.isSchema(s))for(const t of s._refs.refs)t.ancestor-r>=0&&this.refs.push({ancestor:t.ancestor-r,root:t.root});else j.isRef(s)&&s.type==="value"&&s.ancestor-r>=0&&this.refs.push({ancestor:s.ancestor-r,root:s.root}),e=e||_(3328),e.isTemplate(s)&&this.register(s.refs(),r)}get length(){return this.refs.length}clone(){const s=new j.Manager;return s.refs=y(this.refs),s}reset(){this.refs=[]}roots(){return this.refs.filter(s=>!s.ancestor).map(s=>s.root)}}},3378:(I,j,_)=>{const o=_(5107),y={};y.wrap=o.string().min(1).max(2).allow(!1),j.preferences=o.object({allowUnknown:o.boolean(),abortEarly:o.boolean(),artifacts:o.boolean(),cache:o.boolean(),context:o.object(),convert:o.boolean(),dateFormat:o.valid("date","iso","string","time","utc"),debug:o.boolean(),errors:{escapeHtml:o.boolean(),label:o.valid("path","key",!1),language:[o.string(),o.object().ref()],render:o.boolean(),stack:o.boolean(),wrap:{label:y.wrap,array:y.wrap,string:y.wrap}},externals:o.boolean(),messages:o.object(),noDefaults:o.boolean(),nonEnumerables:o.boolean(),presence:o.valid("required","optional","forbidden"),skipFunctions:o.boolean(),stripUnknown:o.object({arrays:o.boolean(),objects:o.boolean()}).or("arrays","objects").allow(!0,!1),warnings:o.boolean()}).strict(),y.nameRx=/^[a-zA-Z0-9]\w*$/,y.rule=o.object({alias:o.array().items(o.string().pattern(y.nameRx)).single(),args:o.array().items(o.string(),o.object({name:o.string().pattern(y.nameRx).required(),ref:o.boolean(),assert:o.alternatives([o.function(),o.object().schema()]).conditional("ref",{is:!0,then:o.required()}),normalize:o.function(),message:o.string().when("assert",{is:o.function(),then:o.required()})})),convert:o.boolean(),manifest:o.boolean(),method:o.function().allow(!1),multi:o.boolean(),validate:o.function()}),j.extension=o.object({type:o.alternatives([o.string(),o.object().regex()]).required(),args:o.function(),cast:o.object().pattern(y.nameRx,o.object({from:o.function().maxArity(1).required(),to:o.function().minArity(1).maxArity(2).required()})),base:o.object().schema().when("type",{is:o.object().regex(),then:o.forbidden()}),coerce:[o.function().maxArity(3),o.object({method:o.function().maxArity(3).required(),from:o.array().items(o.string()).single()})],flags:o.object().pattern(y.nameRx,o.object({setter:o.string(),default:o.any()})),manifest:{build:o.function().arity(2)},messages:[o.object(),o.string()],modifiers:o.object().pattern(y.nameRx,o.function().minArity(1).maxArity(2)),overrides:o.object().pattern(y.nameRx,o.function()),prepare:o.function().maxArity(3),rebuild:o.function().arity(1),rules:o.object().pattern(y.nameRx,y.rule),terms:o.object().pattern(y.nameRx,o.object({init:o.array().allow(null).required(),manifest:o.object().pattern(/.+/,[o.valid("schema","single"),o.object({mapped:o.object({from:o.string().required(),to:o.string().required()}).required()})])})),validate:o.function().maxArity(3)}).strict(),j.extensions=o.array().items(o.object(),o.function().arity(1)).strict(),y.desc={buffer:o.object({buffer:o.string()}),func:o.object({function:o.function().required(),options:{literal:!0}}),override:o.object({override:!0}),ref:o.object({ref:o.object({type:o.valid("value","global","local"),path:o.array().required(),separator:o.string().length(1).allow(!1),ancestor:o.number().min(0).integer().allow("root"),map:o.array().items(o.array().length(2)).min(1),adjust:o.function(),iterables:o.boolean(),in:o.boolean(),render:o.boolean()}).required()}),regex:o.object({regex:o.string().min(3)}),special:o.object({special:o.valid("deep").required()}),template:o.object({template:o.string().required(),options:o.object()}),value:o.object({value:o.alternatives([o.object(),o.array()]).required()})},y.desc.entity=o.alternatives([o.array().items(o.link("...")),o.boolean(),o.function(),o.number(),o.string(),y.desc.buffer,y.desc.func,y.desc.ref,y.desc.regex,y.desc.special,y.desc.template,y.desc.value,o.link("/")]),y.desc.values=o.array().items(null,o.boolean(),o.function(),o.number().allow(1/0,-1/0),o.string().allow(""),o.symbol(),y.desc.buffer,y.desc.func,y.desc.override,y.desc.ref,y.desc.regex,y.desc.template,y.desc.value),y.desc.messages=o.object().pattern(/.+/,[o.string(),y.desc.template,o.object().pattern(/.+/,[o.string(),y.desc.template])]),j.description=o.object({type:o.string().required(),flags:o.object({cast:o.string(),default:o.any(),description:o.string(),empty:o.link("/"),failover:y.desc.entity,id:o.string(),label:o.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:o.boolean(),unit:o.string()}).unknown(),preferences:{allowUnknown:o.boolean(),abortEarly:o.boolean(),artifacts:o.boolean(),cache:o.boolean(),convert:o.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:o.boolean(),label:["path","key"],language:[o.string(),y.desc.ref],wrap:{label:y.wrap,array:y.wrap}},externals:o.boolean(),messages:y.desc.messages,noDefaults:o.boolean(),nonEnumerables:o.boolean(),presence:["required","optional","forbidden"],skipFunctions:o.boolean(),stripUnknown:o.object({arrays:o.boolean(),objects:o.boolean()}).or("arrays","objects").allow(!0,!1),warnings:o.boolean()},allow:y.desc.values,invalid:y.desc.values,rules:o.array().min(1).items({name:o.string().required(),args:o.object().min(1),keep:o.boolean(),message:[o.string(),y.desc.messages],warn:o.boolean()}),keys:o.object().pattern(/.*/,o.link("/")),link:y.desc.ref}).pattern(/^[a-z]\w*$/,o.any())},493:(I,j,_)=>{const o=_(8571),y=_(9621),h=_(8160),u={value:Symbol("value")};I.exports=u.State=class{constructor(e,a,s){this.path=e,this.ancestors=a,this.mainstay=s.mainstay,this.schemas=s.schemas,this.debug=null}localize(e,a=null,s=null){const r=new u.State(e,a,this);return s&&r.schemas&&(r.schemas=[u.schemas(s),...r.schemas]),r}nest(e,a){const s=new u.State(this.path,this.ancestors,this);return s.schemas=s.schemas&&[u.schemas(e),...s.schemas],s.debug=a,s}shadow(e,a){this.mainstay.shadow=this.mainstay.shadow||new u.Shadow,this.mainstay.shadow.set(this.path,e,a)}snapshot(){this.mainstay.shadow&&(this._snapshot=o(this.mainstay.shadow.node(this.path))),this.mainstay.snapshot()}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.restore()}commit(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0),this.mainstay.commit()}},u.schemas=function(e){return h.isSchema(e)?{schema:e}:e},u.Shadow=class{constructor(){this._values=null}set(e,a,s){if(!e.length||s==="strip"&&typeof e[e.length-1]=="number")return;this._values=this._values||new Map;let r=this._values;for(let t=0;t<e.length;++t){const l=e[t];let n=r.get(l);n||(n=new Map,r.set(l,n)),r=n}r[u.value]=a}get(e){const a=this.node(e);if(a)return a[u.value]}node(e){if(this._values)return y(this._values,e,{iterables:!0})}override(e,a){if(!this._values)return;const s=e.slice(0,-1),r=e[e.length-1],t=y(this._values,s,{iterables:!0});a?t.set(r,a):t&&t.delete(r)}}},3328:(I,j,_)=>{const o=_(375),y=_(8571),h=_(5277),u=_(1447),e=_(8160),a=_(6354),s=_(6133),r={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join(""),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};I.exports=r.Template=class{constructor(t,l){if(o(typeof t=="string","Template source must be a string"),o(!t.includes("\0")&&!t.includes(""),"Template source cannot contain reserved control characters"),this.source=t,this.rendered=t,this._template=null,l){const{functions:n,...i}=l;this._settings=Object.keys(i).length?y(i):void 0,this._functions=n,this._functions&&(o(Object.keys(this._functions).every(f=>typeof f=="string"),"Functions keys must be strings"),o(Object.values(this._functions).every(f=>typeof f=="function"),"Functions values must be functions"))}else this._settings=void 0,this._functions=void 0;this._parse()}_parse(){if(!this.source.includes("{"))return;const t=r.encode(this.source),l=r.split(t);let n=!1;const i=[],f=l.shift();f&&i.push(f);for(const m of l){const p=m[0]!=="{",R=p?"}":"}}",x=m.indexOf(R);if(x===-1||m[1]==="{"){i.push(`{${r.decode(m)}`);continue}let c=m.slice(p?0:1,x);const d=c[0]===":";d&&(c=c.slice(1));const v=this._ref(r.decode(c),{raw:p,wrapped:d});i.push(v),typeof v!="string"&&(n=!0);const S=m.slice(x+R.length);S&&i.push(r.decode(S))}n?this._template=i:this.rendered=i.join("")}static date(t,l){return r.dateFormat[l.dateFormat].call(t)}describe(t={}){if(!this._settings&&t.compact)return this.source;const l={template:this.source};return this._settings&&(l.options=this._settings),this._functions&&(l.functions=this._functions),l}static build(t){return new r.Template(t.template,t.options||t.functions?{...t.options,functions:t.functions}:void 0)}isDynamic(){return!!this._template}static isTemplate(t){return!!t&&!!t[e.symbols.template]}refs(){if(!this._template)return;const t=[];for(const l of this._template)typeof l!="string"&&t.push(...l.refs);return t}resolve(t,l,n,i){return this._template&&this._template.length===1?this._part(this._template[0],t,l,n,i,{}):this.render(t,l,n,i)}_part(t,...l){return t.ref?t.ref.resolve(...l):t.formula.evaluate(l)}render(t,l,n,i,f={}){if(!this.isDynamic())return this.rendered;const m=[];for(const p of this._template)if(typeof p=="string")m.push(p);else{const R=this._part(p,t,l,n,i,f),x=r.stringify(R,t,l,n,i,f);if(x!==void 0){const c=p.raw||(f.errors&&f.errors.escapeHtml)===!1?x:h(x);m.push(r.wrap(c,p.wrapped&&n.errors.wrap.label))}}return m.join("")}_ref(t,{raw:l,wrapped:n}){const i=[],f=p=>{const R=s.create(p,this._settings);return i.push(R),x=>{const c=R.resolve(...x);return c!==void 0?c:null}};try{const p=this._functions?{...r.functions,...this._functions}:r.functions;var m=new u.Parser(t,{reference:f,functions:p,constants:r.constants})}catch(p){throw p.message=`Invalid template variable "${t}" fails due to: ${p.message}`,p}if(m.single){if(m.single.type==="reference"){const p=i[0];return{ref:p,raw:l,refs:i,wrapped:n||p.type==="local"&&p.key==="label"}}return r.stringify(m.single.value)}return{formula:m,raw:l,refs:i}}toString(){return this.source}},r.Template.prototype[e.symbols.template]=!0,r.Template.prototype.isImmutable=!0,r.encode=function(t){return t.replace(/\\(\{+)/g,(l,n)=>r.opens.slice(0,n.length)).replace(/\\(\}+)/g,(l,n)=>r.closes.slice(0,n.length))},r.decode=function(t){return t.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},r.split=function(t){const l=[];let n="";for(let i=0;i<t.length;++i){const f=t[i];if(f==="{"){let m="";for(;i+1<t.length&&t[i+1]==="{";)m+="{",++i;l.push(n),n=m}else n+=f}return l.push(n),l},r.wrap=function(t,l){return l?l.length===1?`${l}${t}${l}`:`${l[0]}${t}${l[1]}`:t},r.stringify=function(t,l,n,i,f,m={}){const p=typeof t,R=i&&i.errors&&i.errors.wrap||{};let x=!1;if(s.isRef(t)&&t.render&&(x=t.in,t=t.resolve(l,n,i,f,{in:t.in,...m})),t===null)return"null";if(p==="string")return r.wrap(t,m.arrayItems&&R.string);if(p==="number"||p==="function"||p==="symbol")return t.toString();if(p!=="object")return JSON.stringify(t);if(t instanceof Date)return r.Template.date(t,i);if(t instanceof Map){const d=[];for(const[v,S]of t.entries())d.push(`${v.toString()} -> ${S.toString()}`);t=d}if(!Array.isArray(t))return t.toString();const c=[];for(const d of t)c.push(r.stringify(d,l,n,i,f,{arrayItems:!0,...m}));return r.wrap(c.join(", "),!x&&R.array)},r.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},r.functions={if:(t,l,n)=>t?l:n,length:t=>typeof t=="string"?t.length:t&&typeof t=="object"?Array.isArray(t)?t.length:Object.keys(t).length:null,msg(t){const[l,n,i,f,m]=this,p=m.messages;if(!p)return"";const R=a.template(l,p[0],t,n,i)||a.template(l,p[1],t,n,i);return R?R.render(l,n,i,f,m):""},number:t=>typeof t=="number"?t:typeof t=="string"?parseFloat(t):typeof t=="boolean"?t?1:0:t instanceof Date?t.getTime():null}},4946:(I,j,_)=>{const o=_(375),y=_(1687),h=_(8068),u=_(8160),e=_(3292),a=_(6354),s=_(6133),r={};I.exports=h.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:s.toSibling}},args:(t,...l)=>l.length===1&&Array.isArray(l[0])?t.try(...l[0]):t.try(...l),validate(t,l){const{schema:n,error:i,state:f,prefs:m}=l;if(n._flags.match){const R=[],x=[];for(let d=0;d<n.$_terms.matches.length;++d){const v=n.$_terms.matches[d],S=f.nest(v.schema,`match.${d}`);S.snapshot();const T=v.schema.$_validate(t,S,m);T.errors?(x.push(T.errors),S.restore()):(R.push(T.value),S.commit())}if(R.length===0)return{errors:i("alternatives.any",{details:x.map(d=>a.details(d,{override:!1}))})};if(n._flags.match==="one")return R.length===1?{value:R[0]}:{errors:i("alternatives.one")};if(R.length!==n.$_terms.matches.length)return{errors:i("alternatives.all",{details:x.map(d=>a.details(d,{override:!1}))})};const c=d=>d.$_terms.matches.some(v=>v.schema.type==="object"||v.schema.type==="alternatives"&&c(v.schema));return c(n)?{value:R.reduce((d,v)=>y(d,v,{mergeArrays:!1}))}:{value:R[R.length-1]}}const p=[];for(let R=0;R<n.$_terms.matches.length;++R){const x=n.$_terms.matches[R];if(x.schema){const v=f.nest(x.schema,`match.${R}`);v.snapshot();const S=x.schema.$_validate(t,v,m);if(!S.errors)return v.commit(),S;v.restore(),p.push({schema:x.schema,reports:S.errors});continue}const c=x.ref?x.ref.resolve(t,f,m):t,d=x.is?[x]:x.switch;for(let v=0;v<d.length;++v){const S=d[v],{is:T,then:C,otherwise:N}=S,M=`match.${R}${x.switch?"."+v:""}`;if(T.$_match(c,f.nest(T,`${M}.is`),m)){if(C)return C.$_validate(t,f.nest(C,`${M}.then`),m)}else if(N)return N.$_validate(t,f.nest(N,`${M}.otherwise`),m)}}return r.errors(p,l)},rules:{conditional:{method(t,l){o(!this._flags._endedSwitch,"Unreachable condition"),o(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),o(l.break===void 0,"Cannot use break option with alternatives conditional");const n=this.clone(),i=e.when(n,t,l),f=i.is?[i]:i.switch;for(const m of f)if(m.then&&m.otherwise){n.$_setFlag("_endedSwitch",!0,{clone:!1});break}return n.$_terms.matches.push(i),n.$_mutateRebuild()}},match:{method(t){if(o(["any","one","all"].includes(t),"Invalid alternatives match mode",t),t!=="any")for(const l of this.$_terms.matches)o(l.schema,"Cannot combine match mode",t,"with conditional rules");return this.$_setFlag("match",t)}},try:{method(...t){o(t.length,"Missing alternative schemas"),u.verifyFlat(t,"try"),o(!this._flags._endedSwitch,"Unreachable condition");const l=this.clone();for(const n of t)l.$_terms.matches.push({schema:l.$_compile(n)});return l.$_mutateRebuild()}}},overrides:{label(t){return this.$_parent("label",t).$_modify({each:(l,n)=>n.path[0]!=="is"&&typeof l._flags.label!="string"?l.label(t):void 0,ref:!1})}},rebuild(t){t.$_modify({each:l=>{u.isSchema(l)&&l.type==="array"&&t.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(t,l){if(l.matches)for(const n of l.matches){const{schema:i,ref:f,is:m,not:p,then:R,otherwise:x}=n;t=i?t.try(i):f?t.conditional(f,{is:m,then:R,not:p,otherwise:x,switch:n.switch}):t.conditional(m,{then:R,otherwise:x})}return t}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),r.errors=function(t,{error:l,state:n}){if(!t.length)return{errors:l("alternatives.any")};if(t.length===1)return{errors:t[0].reports};const i=new Set,f=[];for(const{reports:m,schema:p}of t){if(m.length>1)return r.unmatched(t,l);const R=m[0];if(R instanceof a.Report==0)return r.unmatched(t,l);if(R.state.path.length!==n.path.length){f.push({type:p.type,report:R});continue}if(R.code==="any.only"){for(const d of R.local.valids)i.add(d);continue}const[x,c]=R.code.split(".");c==="base"?i.add(x):f.push({type:p.type,report:R})}return f.length?f.length===1?{errors:f[0].report}:r.unmatched(t,l):{errors:l("alternatives.types",{types:[...i]})}},r.unmatched=function(t,l){const n=[];for(const i of t)n.push(...i.reports);return{errors:l("alternatives.match",a.details(n,{override:!1}))}}},8068:(I,j,_)=>{const o=_(375),y=_(7629),h=_(8160),u=_(6914);I.exports=y.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,a){return o(typeof e=="function","Method must be a function"),o(a===void 0||a&&typeof a=="string","Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:a}})},validate(e,a,{method:s}){try{return s(e,a)}catch(r){return a.error("any.custom",{error:r})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){o(h.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const a=this.clone();return a.$_terms.shared=a.$_terms.shared||[],a.$_terms.shared.push(e),a.$_mutateRegister(e),a}},warning:{method(e,a){return o(e&&typeof e=="string","Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:a},warn:!0})},validate:(e,a,{code:s,local:r})=>a.error(s,r),args:["code","local"],multi:!0}},modifiers:{keep(e,a=!0){e.keep=a},message(e,a){e.message=u.compile(a)},warn(e,a=!0){e.warn=a}},manifest:{build(e,a){for(const s in a){const r=a[s];if(["examples","externals","metas","notes","tags"].includes(s))for(const t of r)e=e[s.slice(0,-1)](t);else if(s!=="alterations")if(s!=="whens"){if(s==="shared")for(const t of r)e=e.shared(t)}else for(const t of r){const{ref:l,is:n,not:i,then:f,otherwise:m,concat:p}=t;e=p?e.concat(p):l?e.when(l,{is:n,not:i,then:f,otherwise:m,switch:t.switch,break:t.break}):e.when(n,{then:f,otherwise:m,break:t.break})}else{const t={};for(const{target:l,adjuster:n}of r)t[l]=n;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},546:(I,j,_)=>{const o=_(375),y=_(9474),h=_(9621),u=_(8068),e=_(8160),a=_(3292),s={};I.exports=u.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(r,{schema:t,state:l,prefs:n}){if(!Array.isArray(r))return;const i=t.$_getRule("sort");return i?s.sort(t,r,i.args.options,l,n):void 0}},validate(r,{schema:t,error:l}){if(!Array.isArray(r)){if(t._flags.single){const n=[r];return n[e.symbols.arraySingle]=!0,{value:n}}return{errors:l("array.base")}}if(t.$_getRule("items")||t.$_terms.externals)return{value:r.slice()}},rules:{has:{method(r){r=this.$_compile(r,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:r}});return t.$_mutateRegister(r),t},validate(r,{state:t,prefs:l,error:n},{schema:i}){const f=[r,...t.ancestors];for(let p=0;p<r.length;++p){const R=t.localize([...t.path,p],f,i);if(i.$_match(r[p],R,l))return r}const m=i._flags.label;return m?n("array.hasKnown",{patternLabel:m}):n("array.hasUnknown",null)},multi:!0},items:{method(...r){e.verifyFlat(r,"items");const t=this.$_addRule("items");for(let l=0;l<r.length;++l){const n=e.tryWithPath(()=>this.$_compile(r[l]),l,{append:!0});t.$_terms.items.push(n)}return t.$_mutateRebuild()},validate(r,{schema:t,error:l,state:n,prefs:i,errorsArray:f}){const m=t.$_terms._requireds.slice(),p=t.$_terms.ordered.slice(),R=[...t.$_terms._inclusions,...m],x=!r[e.symbols.arraySingle];delete r[e.symbols.arraySingle];const c=f();let d=r.length;for(let v=0;v<d;++v){const S=r[v];let T=!1,C=!1;const N=x?v:new Number(v),M=[...n.path,N];if(!t._flags.sparse&&S===void 0){if(c.push(l("array.sparse",{key:N,path:M,pos:v,value:void 0},n.localize(M))),i.abortEarly)return c;p.shift();continue}const V=[r,...n.ancestors];for(const K of t.$_terms._exclusions)if(K.$_match(S,n.localize(M,V,K),i,{presence:"ignore"})){if(c.push(l("array.excludes",{pos:v,value:S},n.localize(M))),i.abortEarly)return c;T=!0,p.shift();break}if(T)continue;if(t.$_terms.ordered.length){if(p.length){const K=p.shift(),X=K.$_validate(S,n.localize(M,V,K),i);if(X.errors){if(c.push(...X.errors),i.abortEarly)return c}else if(K._flags.result==="strip")s.fastSplice(r,v),--v,--d;else{if(!t._flags.sparse&&X.value===void 0){if(c.push(l("array.sparse",{key:N,path:M,pos:v,value:void 0},n.localize(M))),i.abortEarly)return c;continue}r[v]=X.value}continue}if(!t.$_terms.items.length){if(c.push(l("array.orderedLength",{pos:v,limit:t.$_terms.ordered.length})),i.abortEarly)return c;break}}const B=[];let H=m.length;for(let K=0;K<H;++K){const X=n.localize(M,V,m[K]);X.snapshot();const re=m[K].$_validate(S,X,i);if(B[K]=re,!re.errors){if(X.commit(),r[v]=re.value,C=!0,s.fastSplice(m,K),--K,--H,!t._flags.sparse&&re.value===void 0&&(c.push(l("array.sparse",{key:N,path:M,pos:v,value:void 0},n.localize(M))),i.abortEarly))return c;break}X.restore()}if(C)continue;const J=i.stripUnknown&&!!i.stripUnknown.arrays||!1;H=R.length;for(const K of R){let X;const re=m.indexOf(K);if(re!==-1)X=B[re];else{const te=n.localize(M,V,K);if(te.snapshot(),X=K.$_validate(S,te,i),!X.errors){te.commit(),K._flags.result==="strip"?(s.fastSplice(r,v),--v,--d):t._flags.sparse||X.value!==void 0?r[v]=X.value:(c.push(l("array.sparse",{key:N,path:M,pos:v,value:void 0},n.localize(M))),T=!0),C=!0;break}te.restore()}if(H===1){if(J){s.fastSplice(r,v),--v,--d,C=!0;break}if(c.push(...X.errors),i.abortEarly)return c;T=!0;break}}if(!T&&(t.$_terms._inclusions.length||t.$_terms._requireds.length)&&!C){if(J){s.fastSplice(r,v),--v,--d;continue}if(c.push(l("array.includes",{pos:v,value:S},n.localize(M))),i.abortEarly)return c}}return m.length&&s.fillMissedErrors(t,c,m,r,n,i),p.length&&(s.fillOrderedErrors(t,c,p,r,n,i),c.length||s.fillDefault(p,r,n,i)),c.length?c:r},priority:!0,manifest:!1},length:{method(r){return this.$_addRule({name:"length",args:{limit:r},operator:"="})},validate:(r,t,{limit:l},{name:n,operator:i,args:f})=>e.compare(r.length,l,i)?r:t.error("array."+n,{limit:f.limit,value:r}),args:[{name:"limit",ref:!0,assert:e.limit,message:"must be a positive integer"}]},max:{method(r){return this.$_addRule({name:"max",method:"length",args:{limit:r},operator:"<="})}},min:{method(r){return this.$_addRule({name:"min",method:"length",args:{limit:r},operator:">="})}},ordered:{method(...r){e.verifyFlat(r,"ordered");const t=this.$_addRule("items");for(let l=0;l<r.length;++l){const n=e.tryWithPath(()=>this.$_compile(r[l]),l,{append:!0});s.validateSingle(n,t),t.$_mutateRegister(n),t.$_terms.ordered.push(n)}return t.$_mutateRebuild()}},single:{method(r){const t=r===void 0||!!r;return o(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(r={}){e.assertOptions(r,["by","order"]);const t={order:r.order||"ascending"};return r.by&&(t.by=a.ref(r.by,{ancestor:0}),o(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(r,{error:t,state:l,prefs:n,schema:i},{options:f}){const{value:m,errors:p}=s.sort(i,r,f,l,n);if(p)return p;for(let R=0;R<r.length;++R)if(r[R]!==m[R])return t("array.sort",{order:f.order,by:f.by?f.by.key:"value"});return r},convert:!0},sparse:{method(r){const t=r===void 0||!!r;return this._flags.sparse===t?this:(t?this.clone():this.$_addRule("items")).$_setFlag("sparse",t,{clone:!1})}},unique:{method(r,t={}){o(!r||typeof r=="function"||typeof r=="string","comparator must be a function or a string"),e.assertOptions(t,["ignoreUndefined","separator"]);const l={name:"unique",args:{options:t,comparator:r}};if(r)if(typeof r=="string"){const n=e.default(t.separator,".");l.path=n?r.split(n):[r]}else l.comparator=r;return this.$_addRule(l)},validate(r,{state:t,error:l,schema:n},{comparator:i,options:f},{comparator:m,path:p}){const R={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},x=m||y,c=f.ignoreUndefined;for(let d=0;d<r.length;++d){const v=p?h(r[d],p):r[d],S=m?R.custom:R[typeof v];if(o(S,"Failed to find unique map container for type",typeof v),S instanceof Map){const T=S.entries();let C;for(;!(C=T.next()).done;)if(x(C.value[0],v)){const N=t.localize([...t.path,d],[r,...t.ancestors]),M={pos:d,value:r[d],dupePos:C.value[1],dupeValue:r[C.value[1]]};return p&&(M.path=i),l("array.unique",M,N)}S.set(v,d)}else{if((!c||v!==void 0)&&S[v]!==void 0){const T={pos:d,value:r[d],dupePos:S[v],dupeValue:r[S[v]]};return p&&(T.path=i),l("array.unique",T,t.localize([...t.path,d],[r,...t.ancestors]))}S[v]=d}}return r},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(r,t)=>new Set(r)}},rebuild(r){r.$_terms._inclusions=[],r.$_terms._exclusions=[],r.$_terms._requireds=[];for(const t of r.$_terms.items)s.validateSingle(t,r),t._flags.presence==="required"?r.$_terms._requireds.push(t):t._flags.presence==="forbidden"?r.$_terms._exclusions.push(t):r.$_terms._inclusions.push(t);for(const t of r.$_terms.ordered)s.validateSingle(t,r)},manifest:{build:(r,t)=>(t.items&&(r=r.items(...t.items)),t.ordered&&(r=r.ordered(...t.ordered)),r)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),s.fillMissedErrors=function(r,t,l,n,i,f){const m=[];let p=0;for(const R of l){const x=R._flags.label;x?m.push(x):++p}m.length?p?t.push(r.$_createError("array.includesRequiredBoth",n,{knownMisses:m,unknownMisses:p},i,f)):t.push(r.$_createError("array.includesRequiredKnowns",n,{knownMisses:m},i,f)):t.push(r.$_createError("array.includesRequiredUnknowns",n,{unknownMisses:p},i,f))},s.fillOrderedErrors=function(r,t,l,n,i,f){const m=[];for(const p of l)p._flags.presence==="required"&&m.push(p);m.length&&s.fillMissedErrors(r,t,m,n,i,f)},s.fillDefault=function(r,t,l,n){const i=[];let f=!0;for(let m=r.length-1;m>=0;--m){const p=r[m],R=[t,...l.ancestors],x=p.$_validate(void 0,l.localize(l.path,R,p),n).value;if(f){if(x===void 0)continue;f=!1}i.unshift(x)}i.length&&t.push(...i)},s.fastSplice=function(r,t){let l=t;for(;l<r.length;)r[l++]=r[l];--r.length},s.validateSingle=function(r,t){(r.type==="array"||r._flags._arrayItems)&&(o(!t._flags.single,"Cannot specify array item with single rule enabled"),t.$_setFlag("_arrayItems",!0,{clone:!1}))},s.sort=function(r,t,l,n,i){const f=l.order==="ascending"?1:-1,m=-1*f,p=f,R=(x,c)=>{let d=s.compare(x,c,m,p);if(d!==null||(l.by&&(x=l.by.resolve(x,n,i),c=l.by.resolve(c,n,i)),d=s.compare(x,c,m,p),d!==null))return d;const v=typeof x;if(v!==typeof c)throw r.$_createError("array.sort.mismatching",t,null,n,i);if(v!=="number"&&v!=="string")throw r.$_createError("array.sort.unsupported",t,{type:v},n,i);return v==="number"?(x-c)*f:x<c?m:p};try{return{value:t.slice().sort(R)}}catch(x){return{errors:x}}},s.compare=function(r,t,l,n){return r===t?0:r===void 0?1:t===void 0?-1:r===null?n:t===null?l:null}},4937:(I,j,_)=>{const o=_(375),y=_(8068),h=_(8160),u=_(2036),e={isBool:function(a){return typeof a=="boolean"}};I.exports=y.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(a,{schema:s}){if(typeof a!="boolean"){if(typeof a=="string"){const r=s._flags.sensitive?a:a.toLowerCase();a=r==="true"||r!=="false"&&a}return typeof a!="boolean"&&(a=s.$_terms.truthy&&s.$_terms.truthy.has(a,null,null,!s._flags.sensitive)||(!s.$_terms.falsy||!s.$_terms.falsy.has(a,null,null,!s._flags.sensitive))&&a),{value:a}}},validate(a,{error:s}){if(typeof a!="boolean")return{value:a,errors:s("boolean.base")}},rules:{truthy:{method(...a){h.verifyFlat(a,"truthy");const s=this.clone();s.$_terms.truthy=s.$_terms.truthy||new u;for(let r=0;r<a.length;++r){const t=a[r];o(t!==void 0,"Cannot call truthy with undefined"),s.$_terms.truthy.add(t)}return s}},falsy:{method(...a){h.verifyFlat(a,"falsy");const s=this.clone();s.$_terms.falsy=s.$_terms.falsy||new u;for(let r=0;r<a.length;++r){const t=a[r];o(t!==void 0,"Cannot call falsy with undefined"),s.$_terms.falsy.add(t)}return s}},sensitive:{method(a=!0){return this.$_setFlag("sensitive",a)}}},cast:{number:{from:e.isBool,to:(a,s)=>a?1:0},string:{from:e.isBool,to:(a,s)=>a?"true":"false"}},manifest:{build:(a,s)=>(s.truthy&&(a=a.truthy(...s.truthy)),s.falsy&&(a=a.falsy(...s.falsy)),a)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},7500:(I,j,_)=>{const o=_(375),y=_(8068),h=_(8160),u=_(3328),e={isDate:function(a){return a instanceof Date}};I.exports=y.extend({type:"date",coerce:{from:["number","string"],method:(a,{schema:s})=>({value:e.parse(a,s._flags.format)||a})},validate(a,{schema:s,error:r,prefs:t}){if(a instanceof Date&&!isNaN(a.getTime()))return;const l=s._flags.format;return t.convert&&l&&typeof a=="string"?{value:a,errors:r("date.format",{format:l})}:{value:a,errors:r("date.base")}},rules:{compare:{method:!1,validate(a,s,{date:r},{name:t,operator:l,args:n}){const i=r==="now"?Date.now():r.getTime();return h.compare(a.getTime(),i,l)?a:s.error("date."+t,{limit:n.date,value:a})},args:[{name:"date",ref:!0,normalize:a=>a==="now"?a:e.parse(a),assert:a=>a!==null,message:"must have a valid date format"}]},format:{method(a){return o(["iso","javascript","unix"].includes(a),"Unknown date format",a),this.$_setFlag("format",a)}},greater:{method(a){return this.$_addRule({name:"greater",method:"compare",args:{date:a},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(a){return this.$_addRule({name:"less",method:"compare",args:{date:a},operator:"<"})}},max:{method(a){return this.$_addRule({name:"max",method:"compare",args:{date:a},operator:"<="})}},min:{method(a){return this.$_addRule({name:"min",method:"compare",args:{date:a},operator:">="})}},timestamp:{method(a="javascript"){return o(["javascript","unix"].includes(a),'"type" must be one of "javascript, unix"'),this.format(a)}}},cast:{number:{from:e.isDate,to:(a,s)=>a.getTime()},string:{from:e.isDate,to:(a,{prefs:s})=>u.date(a,s)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),e.parse=function(a,s){if(a instanceof Date)return a;if(typeof a!="string"&&(isNaN(a)||!isFinite(a))||/^\s*$/.test(a))return null;if(s==="iso")return h.isIsoDate(a)?e.date(a.toString()):null;const r=a;if(typeof a=="string"&&/^[+-]?\d+(\.\d+)?$/.test(a)&&(a=parseFloat(a)),s){if(s==="javascript")return e.date(1*a);if(s==="unix")return e.date(1e3*a);if(typeof r=="string")return null}return e.date(a)},e.date=function(a){const s=new Date(a);return isNaN(s.getTime())?null:s}},390:(I,j,_)=>{const o=_(375),y=_(7824);I.exports=y.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(h){return o(Number.isSafeInteger(h)&&h>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:h}})},validate:(h,u,{n:e})=>h.length===e?h:u.error("function.arity",{n:e})},class:{method(){return this.$_addRule("class")},validate:(h,u)=>/^\s*class\s/.test(h.toString())?h:u.error("function.class",{value:h})},minArity:{method(h){return o(Number.isSafeInteger(h)&&h>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:h}})},validate:(h,u,{n:e})=>h.length>=e?h:u.error("function.minArity",{n:e})},maxArity:{method(h){return o(Number.isSafeInteger(h)&&h>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:h}})},validate:(h,u,{n:e})=>h.length<=e?h:u.error("function.maxArity",{n:e})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},7824:(I,j,_)=>{const o=_(978),y=_(375),h=_(8571),u=_(3652),e=_(8068),a=_(8160),s=_(3292),r=_(6354),t=_(6133),l=_(3328),n={renameDefaults:{alias:!1,multiple:!1,override:!1}};I.exports=e.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(i,f)=>i.keys(f),validate(i,{schema:f,error:m,state:p,prefs:R}){if(!i||typeof i!==f.$_property("typeof")||Array.isArray(i))return{value:i,errors:m("object.base",{type:f.$_property("typeof")})};if(!(f.$_terms.renames||f.$_terms.dependencies||f.$_terms.keys||f.$_terms.patterns||f.$_terms.externals))return;i=n.clone(i,R);const x=[];if(f.$_terms.renames&&!n.rename(f,i,p,R,x))return{value:i,errors:x};if(!f.$_terms.keys&&!f.$_terms.patterns&&!f.$_terms.dependencies)return{value:i,errors:x};const c=new Set(Object.keys(i));if(f.$_terms.keys){const d=[i,...p.ancestors];for(const v of f.$_terms.keys){const S=v.key,T=i[S];c.delete(S);const C=p.localize([...p.path,S],d,v),N=v.schema.$_validate(T,C,R);if(N.errors){if(R.abortEarly)return{value:i,errors:N.errors};N.value!==void 0&&(i[S]=N.value),x.push(...N.errors)}else v.schema._flags.result==="strip"||N.value===void 0&&T!==void 0?delete i[S]:N.value!==void 0&&(i[S]=N.value)}}if(c.size||f._flags._hasPatternMatch){const d=n.unknown(f,i,c,x,p,R);if(d)return d}if(f.$_terms.dependencies)for(const d of f.$_terms.dependencies){if(d.key!==null&&n.isPresent(d.options)(d.key.resolve(i,p,R,null,{shadow:!1}))===!1)continue;const v=n.dependencies[d.rel](f,d,i,p,R);if(v){const S=f.$_createError(v.code,i,v.context,p,R);if(R.abortEarly)return{value:i,errors:S};x.push(S)}}return{value:i,errors:x}},rules:{and:{method(...i){return a.verifyFlat(i,"and"),n.dependency(this,"and",null,i)}},append:{method(i){return i==null||Object.keys(i).length===0?this:this.keys(i)}},assert:{method(i,f,m){l.isTemplate(i)||(i=s.ref(i)),y(m===void 0||typeof m=="string","Message must be a string"),f=this.$_compile(f,{appendPath:!0});const p=this.$_addRule({name:"assert",args:{subject:i,schema:f,message:m}});return p.$_mutateRegister(i),p.$_mutateRegister(f),p},validate(i,{error:f,prefs:m,state:p},{subject:R,schema:x,message:c}){const d=R.resolve(i,p,m),v=t.isRef(R)?R.absolute(p):[];return x.$_match(d,p.localize(v,[i,...p.ancestors],x),m)?i:f("object.assert",{subject:R,message:c})},args:["subject","schema","message"],multi:!0},instance:{method(i,f){return y(typeof i=="function","constructor must be a function"),f=f||i.name,this.$_addRule({name:"instance",args:{constructor:i,name:f}})},validate:(i,f,{constructor:m,name:p})=>i instanceof m?i:f.error("object.instance",{type:p,value:i}),args:["constructor","name"]},keys:{method(i){y(i===void 0||typeof i=="object","Object schema must be a valid object"),y(!a.isSchema(i),"Object schema cannot be a joi schema");const f=this.clone();if(i)if(Object.keys(i).length){f.$_terms.keys=f.$_terms.keys?f.$_terms.keys.filter(m=>!i.hasOwnProperty(m.key)):new n.Keys;for(const m in i)a.tryWithPath(()=>f.$_terms.keys.push({key:m,schema:this.$_compile(i[m])}),m)}else f.$_terms.keys=new n.Keys;else f.$_terms.keys=null;return f.$_mutateRebuild()}},length:{method(i){return this.$_addRule({name:"length",args:{limit:i},operator:"="})},validate:(i,f,{limit:m},{name:p,operator:R,args:x})=>a.compare(Object.keys(i).length,m,R)?i:f.error("object."+p,{limit:x.limit,value:i}),args:[{name:"limit",ref:!0,assert:a.limit,message:"must be a positive integer"}]},max:{method(i){return this.$_addRule({name:"max",method:"length",args:{limit:i},operator:"<="})}},min:{method(i){return this.$_addRule({name:"min",method:"length",args:{limit:i},operator:">="})}},nand:{method(...i){return a.verifyFlat(i,"nand"),n.dependency(this,"nand",null,i)}},or:{method(...i){return a.verifyFlat(i,"or"),n.dependency(this,"or",null,i)}},oxor:{method(...i){return n.dependency(this,"oxor",null,i)}},pattern:{method(i,f,m={}){const p=i instanceof RegExp;p||(i=this.$_compile(i,{appendPath:!0})),y(f!==void 0,"Invalid rule"),a.assertOptions(m,["fallthrough","matches"]),p&&y(!i.flags.includes("g")&&!i.flags.includes("y"),"pattern should not use global or sticky mode"),f=this.$_compile(f,{appendPath:!0});const R=this.clone();R.$_terms.patterns=R.$_terms.patterns||[];const x={[p?"regex":"schema"]:i,rule:f};return m.matches&&(x.matches=this.$_compile(m.matches),x.matches.type!=="array"&&(x.matches=x.matches.$_root.array().items(x.matches)),R.$_mutateRegister(x.matches),R.$_setFlag("_hasPatternMatch",!0,{clone:!1})),m.fallthrough&&(x.fallthrough=!0),R.$_terms.patterns.push(x),R.$_mutateRegister(f),R}},ref:{method(){return this.$_addRule("ref")},validate:(i,f)=>t.isRef(i)?i:f.error("object.refType",{value:i})},regex:{method(){return this.$_addRule("regex")},validate:(i,f)=>i instanceof RegExp?i:f.error("object.regex",{value:i})},rename:{method(i,f,m={}){y(typeof i=="string"||i instanceof RegExp,"Rename missing the from argument"),y(typeof f=="string"||f instanceof l,"Invalid rename to argument"),y(f!==i,"Cannot rename key to same name:",i),a.assertOptions(m,["alias","ignoreUndefined","override","multiple"]);const p=this.clone();p.$_terms.renames=p.$_terms.renames||[];for(const R of p.$_terms.renames)y(R.from!==i,"Cannot rename the same key multiple times");return f instanceof l&&p.$_mutateRegister(f),p.$_terms.renames.push({from:i,to:f,options:o(n.renameDefaults,m)}),p}},schema:{method(i="any"){return this.$_addRule({name:"schema",args:{type:i}})},validate:(i,f,{type:m})=>!a.isSchema(i)||m!=="any"&&i.type!==m?f.error("object.schema",{type:m}):i},unknown:{method(i){return this.$_setFlag("unknown",i!==!1)}},with:{method(i,f,m={}){return n.dependency(this,"with",i,f,m)}},without:{method(i,f,m={}){return n.dependency(this,"without",i,f,m)}},xor:{method(...i){return a.verifyFlat(i,"xor"),n.dependency(this,"xor",null,i)}}},overrides:{default(i,f){return i===void 0&&(i=a.symbols.deepDefault),this.$_parent("default",i,f)}},rebuild(i){if(i.$_terms.keys){const f=new u.Sorter;for(const m of i.$_terms.keys)a.tryWithPath(()=>f.add(m,{after:m.schema.$_rootReferences(),group:m.key}),m.key);i.$_terms.keys=new n.Keys(...f.nodes)}},manifest:{build(i,f){if(f.keys&&(i=i.keys(f.keys)),f.dependencies)for(const{rel:m,key:p=null,peers:R,options:x}of f.dependencies)i=n.dependency(i,m,p,R,x);if(f.patterns)for(const{regex:m,schema:p,rule:R,fallthrough:x,matches:c}of f.patterns)i=i.pattern(m||p,R,{fallthrough:x,matches:c});if(f.renames)for(const{from:m,to:p,options:R}of f.renames)i=i.rename(m,p,R);return i}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),n.clone=function(i,f){if(typeof i=="object"){if(f.nonEnumerables)return h(i,{shallow:!0});const p=Object.create(Object.getPrototypeOf(i));return Object.assign(p,i),p}const m=function(...p){return i.apply(this,p)};return m.prototype=h(i.prototype),Object.defineProperty(m,"name",{value:i.name,writable:!1}),Object.defineProperty(m,"length",{value:i.length,writable:!1}),Object.assign(m,i),m},n.dependency=function(i,f,m,p,R){y(m===null||typeof m=="string",f,"key must be a strings"),R||(R=p.length>1&&typeof p[p.length-1]=="object"?p.pop():{}),a.assertOptions(R,["separator","isPresent"]),p=[].concat(p);const x=a.default(R.separator,"."),c=[];for(const v of p)y(typeof v=="string",f,"peers must be strings"),c.push(s.ref(v,{separator:x,ancestor:0,prefix:!1}));m!==null&&(m=s.ref(m,{separator:x,ancestor:0,prefix:!1}));const d=i.clone();return d.$_terms.dependencies=d.$_terms.dependencies||[],d.$_terms.dependencies.push(new n.Dependency(f,m,c,p,R)),d},n.dependencies={and(i,f,m,p,R){const x=[],c=[],d=f.peers.length,v=n.isPresent(f.options);for(const S of f.peers)v(S.resolve(m,p,R,null,{shadow:!1}))===!1?x.push(S.key):c.push(S.key);if(x.length!==d&&c.length!==d)return{code:"object.and",context:{present:c,presentWithLabels:n.keysToLabels(i,c),missing:x,missingWithLabels:n.keysToLabels(i,x)}}},nand(i,f,m,p,R){const x=[],c=n.isPresent(f.options);for(const S of f.peers)c(S.resolve(m,p,R,null,{shadow:!1}))&&x.push(S.key);if(x.length!==f.peers.length)return;const d=f.paths[0],v=f.paths.slice(1);return{code:"object.nand",context:{main:d,mainWithLabel:n.keysToLabels(i,d),peers:v,peersWithLabels:n.keysToLabels(i,v)}}},or(i,f,m,p,R){const x=n.isPresent(f.options);for(const c of f.peers)if(x(c.resolve(m,p,R,null,{shadow:!1})))return;return{code:"object.missing",context:{peers:f.paths,peersWithLabels:n.keysToLabels(i,f.paths)}}},oxor(i,f,m,p,R){const x=[],c=n.isPresent(f.options);for(const v of f.peers)c(v.resolve(m,p,R,null,{shadow:!1}))&&x.push(v.key);if(!x.length||x.length===1)return;const d={peers:f.paths,peersWithLabels:n.keysToLabels(i,f.paths)};return d.present=x,d.presentWithLabels=n.keysToLabels(i,x),{code:"object.oxor",context:d}},with(i,f,m,p,R){const x=n.isPresent(f.options);for(const c of f.peers)if(x(c.resolve(m,p,R,null,{shadow:!1}))===!1)return{code:"object.with",context:{main:f.key.key,mainWithLabel:n.keysToLabels(i,f.key.key),peer:c.key,peerWithLabel:n.keysToLabels(i,c.key)}}},without(i,f,m,p,R){const x=n.isPresent(f.options);for(const c of f.peers)if(x(c.resolve(m,p,R,null,{shadow:!1})))return{code:"object.without",context:{main:f.key.key,mainWithLabel:n.keysToLabels(i,f.key.key),peer:c.key,peerWithLabel:n.keysToLabels(i,c.key)}}},xor(i,f,m,p,R){const x=[],c=n.isPresent(f.options);for(const v of f.peers)c(v.resolve(m,p,R,null,{shadow:!1}))&&x.push(v.key);if(x.length===1)return;const d={peers:f.paths,peersWithLabels:n.keysToLabels(i,f.paths)};return x.length===0?{code:"object.missing",context:d}:(d.present=x,d.presentWithLabels=n.keysToLabels(i,x),{code:"object.xor",context:d})}},n.keysToLabels=function(i,f){return Array.isArray(f)?f.map(m=>i.$_mapLabels(m)):i.$_mapLabels(f)},n.isPresent=function(i){return typeof i.isPresent=="function"?i.isPresent:f=>f!==void 0},n.rename=function(i,f,m,p,R){const x={};for(const c of i.$_terms.renames){const d=[],v=typeof c.from!="string";if(v)for(const S in f){if(f[S]===void 0&&c.options.ignoreUndefined||S===c.to)continue;const T=c.from.exec(S);T&&d.push({from:S,to:c.to,match:T})}else!Object.prototype.hasOwnProperty.call(f,c.from)||f[c.from]===void 0&&c.options.ignoreUndefined||d.push(c);for(const S of d){const T=S.from;let C=S.to;if(C instanceof l&&(C=C.render(f,m,p,S.match)),T!==C){if(!c.options.multiple&&x[C]&&(R.push(i.$_createError("object.rename.multiple",f,{from:T,to:C,pattern:v},m,p)),p.abortEarly)||Object.prototype.hasOwnProperty.call(f,C)&&!c.options.override&&!x[C]&&(R.push(i.$_createError("object.rename.override",f,{from:T,to:C,pattern:v},m,p)),p.abortEarly))return!1;f[T]===void 0?delete f[C]:f[C]=f[T],x[C]=!0,c.options.alias||delete f[T]}}}return!0},n.unknown=function(i,f,m,p,R,x){if(i.$_terms.patterns){let c=!1;const d=i.$_terms.patterns.map(S=>{if(S.matches)return c=!0,[]}),v=[f,...R.ancestors];for(const S of m){const T=f[S],C=[...R.path,S];for(let N=0;N<i.$_terms.patterns.length;++N){const M=i.$_terms.patterns[N];if(M.regex){const H=M.regex.test(S);if(R.mainstay.tracer.debug(R,"rule",`pattern.${N}`,H?"pass":"error"),!H)continue}else if(!M.schema.$_match(S,R.nest(M.schema,`pattern.${N}`),x))continue;m.delete(S);const V=R.localize(C,v,{schema:M.rule,key:S}),B=M.rule.$_validate(T,V,x);if(B.errors){if(x.abortEarly)return{value:f,errors:B.errors};p.push(...B.errors)}if(M.matches&&d[N].push(S),f[S]=B.value,!M.fallthrough)break}}if(c)for(let S=0;S<d.length;++S){const T=d[S];if(!T)continue;const C=i.$_terms.patterns[S].matches,N=R.localize(R.path,v,C),M=C.$_validate(T,N,x);if(M.errors){const V=r.details(M.errors,{override:!1});V.matches=T;const B=i.$_createError("object.pattern.match",f,V,R,x);if(x.abortEarly)return{value:f,errors:B};p.push(B)}}}if(m.size&&(i.$_terms.keys||i.$_terms.patterns)){if(x.stripUnknown&&!i._flags.unknown||x.skipFunctions){const c=!(!x.stripUnknown||x.stripUnknown!==!0&&!x.stripUnknown.objects);for(const d of m)c?(delete f[d],m.delete(d)):typeof f[d]=="function"&&m.delete(d)}if(!a.default(i._flags.unknown,x.allowUnknown))for(const c of m){const d=R.localize([...R.path,c],[]),v=i.$_createError("object.unknown",f[c],{child:c},d,x,{flags:!1});if(x.abortEarly)return{value:f,errors:v};p.push(v)}}},n.Dependency=class{constructor(i,f,m,p,R){this.rel=i,this.key=f,this.peers=m,this.paths=p,this.options=R}describe(){const i={rel:this.rel,peers:this.paths};return this.key!==null&&(i.key=this.key.key),this.peers[0].separator!=="."&&(i.options={...i.options,separator:this.peers[0].separator}),this.options.isPresent&&(i.options={...i.options,isPresent:this.options.isPresent}),i}},n.Keys=class extends Array{concat(i){const f=this.slice(),m=new Map;for(let p=0;p<f.length;++p)m.set(f[p].key,p);for(const p of i){const R=p.key,x=m.get(R);x!==void 0?f[x]={key:R,schema:f[x].schema.concat(p.schema)}:f.push(p)}return f}}},8785:(I,j,_)=>{const o=_(375),y=_(8068),h=_(8160),u=_(3292),e=_(6354),a={};I.exports=y.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(s,r)=>s.ref(r),validate(s,{schema:r,state:t,prefs:l}){o(r.$_terms.link,"Uninitialized link schema");const n=a.generate(r,s,t,l),i=r.$_terms.link[0].ref;return n.$_validate(s,t.nest(n,`link:${i.display}:${n.type}`),l)},generate:(s,r,t,l)=>a.generate(s,r,t,l),rules:{ref:{method(s){o(!this.$_terms.link,"Cannot reinitialize schema"),s=u.ref(s),o(s.type==="value"||s.type==="local","Invalid reference type:",s.type),o(s.type==="local"||s.ancestor==="root"||s.ancestor>0,"Link cannot reference itself");const r=this.clone();return r.$_terms.link=[{ref:s}],r}},relative:{method(s=!0){return this.$_setFlag("relative",s)}}},overrides:{concat(s){o(this.$_terms.link,"Uninitialized link schema"),o(h.isSchema(s),"Invalid schema object"),o(s.type!=="link","Cannot merge type link with another link");const r=this.clone();return r.$_terms.whens||(r.$_terms.whens=[]),r.$_terms.whens.push({concat:s}),r.$_mutateRebuild()}},manifest:{build:(s,r)=>(o(r.link,"Invalid link description missing link"),s.ref(r.link))}}),a.generate=function(s,r,t,l){let n=t.mainstay.links.get(s);if(n)return n._generate(r,t,l).schema;const i=s.$_terms.link[0].ref,{perspective:f,path:m}=a.perspective(i,t);a.assert(f,"which is outside of schema boundaries",i,s,t,l);try{n=m.length?f.$_reach(m):f}catch{a.assert(!1,"to non-existing schema",i,s,t,l)}return a.assert(n.type!=="link","which is another link",i,s,t,l),s._flags.relative||t.mainstay.links.set(s,n),n._generate(r,t,l).schema},a.perspective=function(s,r){if(s.type==="local"){for(const{schema:t,key:l}of r.schemas){if((t._flags.id||l)===s.path[0])return{perspective:t,path:s.path.slice(1)};if(t.$_terms.shared){for(const n of t.$_terms.shared)if(n._flags.id===s.path[0])return{perspective:n,path:s.path.slice(1)}}}return{perspective:null,path:null}}return s.ancestor==="root"?{perspective:r.schemas[r.schemas.length-1].schema,path:s.path}:{perspective:r.schemas[s.ancestor]&&r.schemas[s.ancestor].schema,path:s.path}},a.assert=function(s,r,t,l,n,i){s||o(!1,`"${e.label(l._flags,n,i)}" contains link reference "${t.display}" ${r}`)}},3832:(I,j,_)=>{const o=_(375),y=_(8068),h=_(8160),u={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,exponentialPartRegex:/[eE][+-]?\d+$/,leadingSignAndZerosRegex:/^[+-]?(0*)?/,dotRegex:/\./,trailingZerosRegex:/0+$/,decimalPlaces(e){const a=e.toString(),s=a.indexOf("."),r=a.indexOf("e");return(s<0?0:(r<0?a.length:r)-s-1)+(r<0?0:Math.max(0,-parseInt(a.slice(r+1))))}};I.exports=y.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,{schema:a,error:s}){if(!e.match(u.numberRx))return;e=e.trim();const r={value:parseFloat(e)};if(r.value===0&&(r.value=0),!a._flags.unsafe)if(e.match(/e/i)){if(u.extractSignificantDigits(e)!==u.extractSignificantDigits(String(r.value)))return r.errors=s("number.unsafe"),r}else{const t=r.value.toString();if(t.match(/e/i))return r;if(t!==u.normalizeDecimal(e))return r.errors=s("number.unsafe"),r}return r}},validate(e,{schema:a,error:s,prefs:r}){if(e===1/0||e===-1/0)return{value:e,errors:s("number.infinity")};if(!h.isNumber(e))return{value:e,errors:s("number.base")};const t={value:e};if(r.convert){const l=a.$_getRule("precision");if(l){const n=Math.pow(10,l.args.limit);t.value=Math.round(t.value*n)/n}}return t.value===0&&(t.value=0),!a._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(t.errors=s("number.unsafe")),t},rules:{compare:{method:!1,validate:(e,a,{limit:s},{name:r,operator:t,args:l})=>h.compare(e,s,t)?e:a.error("number."+r,{limit:l.limit,value:e}),args:[{name:"limit",ref:!0,assert:h.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,a)=>Math.trunc(e)-e==0?e:a.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){const a=typeof e=="number"?u.decimalPlaces(e):null,s=Math.pow(10,a);return this.$_addRule({name:"multiple",args:{base:e,baseDecimalPlace:a,pfactor:s}})},validate:(e,a,{base:s,baseDecimalPlace:r,pfactor:t},l)=>u.decimalPlaces(e)>r?a.error("number.multiple",{multiple:l.args.base,value:e}):Math.round(t*e)%Math.round(t*s)==0?e:a.error("number.multiple",{multiple:l.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>typeof e=="number"&&isFinite(e)&&e>0,message:"must be a positive number"},"baseDecimalPlace","pfactor"],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,a)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:a.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return o(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,a,{limit:s}){const r=e.toString().match(u.precisionRx);return Math.max((r[1]?r[1].length:0)-(r[2]?parseInt(r[2],10):0),0)<=s?e:a.error("number.precision",{limit:s,value:e})},convert:!0},sign:{method(e){return o(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate:(e,a,{sign:s})=>s==="negative"&&e<0||s==="positive"&&e>0?e:a.error(`number.${s}`)},unsafe:{method(e=!0){return o(typeof e=="boolean","enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>typeof e=="number",to:(e,a)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),u.extractSignificantDigits=function(e){return e.replace(u.exponentialPartRegex,"").replace(u.dotRegex,"").replace(u.trailingZerosRegex,"").replace(u.leadingSignAndZerosRegex,"")},u.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),e==="-0"?"0":e}},8966:(I,j,_)=>{const o=_(7824);I.exports=o.extend({type:"object",cast:{map:{from:y=>y&&typeof y=="object",to:(y,h)=>new Map(Object.entries(y))}}})},7417:(I,j,_)=>{const o=_(375),y=_(5380),h=_(1745),u=_(9959),e=_(6064),a=_(9926),s=_(5752),r=_(8068),t=_(8160),l={tlds:a instanceof Set&&{tlds:{allow:a,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:{withPrefix:/^0x[0-9a-f]+$/i,withOptionalPrefix:/^(?:0x)?[0-9a-f]+$/i,withoutPrefix:/^[0-9a-f]+$/i},ipRegex:u.regex({cidr:"forbidden"}).regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5",uuidv6:"6",uuidv7:"7",uuidv8:"8"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};I.exports=r.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(n,{schema:i,state:f,prefs:m}){const p=i.$_getRule("normalize");p&&(n=n.normalize(p.args.form));const R=i.$_getRule("case");R&&(n=R.args.direction==="upper"?n.toLocaleUpperCase():n.toLocaleLowerCase());const x=i.$_getRule("trim");if(x&&x.args.enabled&&(n=n.trim()),i.$_terms.replacements)for(const d of i.$_terms.replacements)n=n.replace(d.pattern,d.replacement);const c=i.$_getRule("hex");if(c&&c.args.options.byteAligned&&n.length%2!=0&&(n=`0${n}`),i.$_getRule("isoDate")){const d=l.isoDate(n);d&&(n=d)}if(i._flags.truncate){const d=i.$_getRule("max");if(d){let v=d.args.limit;if(t.isResolvable(v)&&(v=v.resolve(n,f,m),!t.limit(v)))return{value:n,errors:i.$_createError("any.ref",v,{ref:d.args.limit,arg:"limit",reason:"must be a positive integer"},f,m)};n=n.slice(0,v)}}return{value:n}}},validate(n,{schema:i,error:f}){if(typeof n!="string")return{value:n,errors:f("string.base")};if(n===""){const m=i.$_getRule("min");return m&&m.args.limit===0?void 0:{value:n,errors:f("string.empty")}}},rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(n,i)=>/^[a-zA-Z0-9]+$/.test(n)?n:i.error("string.alphanum")},base64:{method(n={}){return t.assertOptions(n,["paddingRequired","urlSafe"]),n={urlSafe:!1,paddingRequired:!0,...n},o(typeof n.paddingRequired=="boolean","paddingRequired must be boolean"),o(typeof n.urlSafe=="boolean","urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:n}})},validate:(n,i,{options:f})=>l.base64Regex[f.paddingRequired][f.urlSafe].test(n)?n:i.error("string.base64")},case:{method(n){return o(["lower","upper"].includes(n),"Invalid case:",n),this.$_addRule({name:"case",args:{direction:n}})},validate:(n,i,{direction:f})=>f==="lower"&&n===n.toLocaleLowerCase()||f==="upper"&&n===n.toLocaleUpperCase()?n:i.error(`string.${f}case`),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(n,i){let f=n.length,m=0,p=1;for(;f--;){const R=n.charAt(f)*p;m+=R-9*(R>9),p^=3}return m>0&&m%10==0?n:i.error("string.creditCard")}},dataUri:{method(n={}){return t.assertOptions(n,["paddingRequired"]),n={paddingRequired:!0,...n},o(typeof n.paddingRequired=="boolean","paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:n}})},validate(n,i,{options:f}){const m=n.match(l.dataUriRegex);return m&&(!m[2]||m[2]!=="base64"||l.base64Regex[f.paddingRequired].false.test(m[3]))?n:i.error("string.dataUri")}},domain:{method(n){n&&t.assertOptions(n,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const i=l.addressOptions(n);return this.$_addRule({name:"domain",args:{options:n},address:i})},validate:(n,i,f,{address:m})=>y.isValid(n,m)?n:i.error("string.domain")},email:{method(n={}){t.assertOptions(n,["allowFullyQualified","allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),o(n.multiple===void 0||typeof n.multiple=="boolean","multiple option must be an boolean");const i=l.addressOptions(n),f=new RegExp(`\\s*[${n.separator?e(n.separator):","}]\\s*`);return this.$_addRule({name:"email",args:{options:n},regex:f,address:i})},validate(n,i,{options:f},{regex:m,address:p}){const R=f.multiple?n.split(m):[n],x=[];for(const c of R)h.isValid(c,p)||x.push(c);return x.length?i.error("string.email",{value:n,invalids:x}):n}},guid:{alias:"uuid",method(n={}){t.assertOptions(n,["version","separator"]);let i="";if(n.version){const p=[].concat(n.version);o(p.length>=1,"version must have at least 1 valid version specified");const R=new Set;for(let x=0;x<p.length;++x){const c=p[x];o(typeof c=="string","version at position "+x+" must be a string");const d=l.guidVersions[c.toLowerCase()];o(d,"version at position "+x+" must be one of "+Object.keys(l.guidVersions).join(", ")),o(!R.has(d),"version at position "+x+" must not be a duplicate"),i+=d,R.add(d)}}o(l.guidSeparators.has(n.separator),'separator must be one of true, false, "-", or ":"');const f=n.separator===void 0?"[:-]?":n.separator===!0?"[:-]":n.separator===!1?"[]?":`\\${n.separator}`,m=new RegExp(`^([\\[{\\(]?)[0-9A-F]{8}(${f})[0-9A-F]{4}\\2?[${i||"0-9A-F"}][0-9A-F]{3}\\2?[${i?"89AB":"0-9A-F"}][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$`,"i");return this.$_addRule({name:"guid",args:{options:n},regex:m})},validate(n,i,f,{regex:m}){const p=m.exec(n);return p?l.guidBrackets[p[1]]!==p[p.length-1]?i.error("string.guid"):n:i.error("string.guid")}},hex:{method(n={}){return t.assertOptions(n,["byteAligned","prefix"]),n={byteAligned:!1,prefix:!1,...n},o(typeof n.byteAligned=="boolean","byteAligned must be boolean"),o(typeof n.prefix=="boolean"||n.prefix==="optional",'prefix must be boolean or "optional"'),this.$_addRule({name:"hex",args:{options:n}})},validate:(n,i,{options:f})=>(f.prefix==="optional"?l.hexRegex.withOptionalPrefix:f.prefix===!0?l.hexRegex.withPrefix:l.hexRegex.withoutPrefix).test(n)?f.byteAligned&&n.length%2!=0?i.error("string.hexAlign"):n:i.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(n,i)=>y.isValid(n,{minDomainSegments:1})||l.ipRegex.test(n)?n:i.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(n={}){t.assertOptions(n,["cidr","version"]);const{cidr:i,versions:f,regex:m}=u.regex(n),p=n.version?f:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:i,version:p}},regex:m})},validate:(n,i,{options:f},{regex:m})=>m.test(n)?n:f.version?i.error("string.ipVersion",{value:n,cidr:f.cidr,version:f.version}):i.error("string.ip",{value:n,cidr:f.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(n,{error:i})=>l.isoDate(n)?n:i("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(n,i)=>l.isoDurationRegex.test(n)?n:i.error("string.isoDuration")},length:{method(n,i){return l.length(this,"length",n,"=",i)},validate(n,i,{limit:f,encoding:m},{name:p,operator:R,args:x}){const c=!m&&n.length;return t.compare(c,f,R)?n:i.error("string."+p,{limit:x.limit,value:n,encoding:m})},args:[{name:"limit",ref:!0,assert:t.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(n,i){return l.length(this,"max",n,"<=",i)},args:["limit","encoding"]},min:{method(n,i){return l.length(this,"min",n,">=",i)},args:["limit","encoding"]},normalize:{method(n="NFC"){return o(l.normalizationForms.includes(n),"normalization form must be one of "+l.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:n}})},validate:(n,{error:i},{form:f})=>n===n.normalize(f)?n:i("string.normalize",{value:n,form:f}),convert:!0},pattern:{alias:"regex",method(n,i={}){o(n instanceof RegExp,"regex must be a RegExp"),o(!n.flags.includes("g")&&!n.flags.includes("y"),"regex should not use global or sticky mode"),typeof i=="string"&&(i={name:i}),t.assertOptions(i,["invert","name"]);const f=["string.pattern",i.invert?".invert":"",i.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:n,options:i},errorCode:f})},validate:(n,i,{regex:f,options:m},{errorCode:p})=>f.test(n)^m.invert?n:i.error(p,{name:m.name,regex:f,value:n}),args:["regex","options"],multi:!0},replace:{method(n,i){typeof n=="string"&&(n=new RegExp(e(n),"g")),o(n instanceof RegExp,"pattern must be a RegExp"),o(typeof i=="string","replacement must be a String");const f=this.clone();return f.$_terms.replacements||(f.$_terms.replacements=[]),f.$_terms.replacements.push({pattern:n,replacement:i}),f}},token:{method(){return this.$_addRule("token")},validate:(n,i)=>/^\w+$/.test(n)?n:i.error("string.token")},trim:{method(n=!0){return o(typeof n=="boolean","enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:n}})},validate:(n,i,{enabled:f})=>f&&n!==n.trim()?i.error("string.trim"):n,convert:!0},truncate:{method(n=!0){return o(typeof n=="boolean","enabled must be a boolean"),this.$_setFlag("truncate",n)}},uppercase:{method(){return this.case("upper")}},uri:{method(n={}){t.assertOptions(n,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),n.domain&&t.assertOptions(n.domain,["allowFullyQualified","allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:i,scheme:f}=s.regex(n),m=n.domain?l.addressOptions(n.domain):null;return this.$_addRule({name:"uri",args:{options:n},regex:i,domain:m,scheme:f})},validate(n,i,{options:f},{regex:m,domain:p,scheme:R}){if(["http:/","https:/"].includes(n))return i.error("string.uri");const x=m.exec(n);if(x){const c=x[1]||x[2];return!p||f.allowRelative&&!c||y.isValid(c,p)?n:i.error("string.domain",{value:c})}return f.relativeOnly?i.error("string.uriRelativeOnly"):f.scheme?i.error("string.uriCustomScheme",{scheme:R,value:n}):i.error("string.uri")}}},manifest:{build(n,i){if(i.replacements)for(const{pattern:f,replacement:m}of i.replacements)n=n.replace(f,m);return n}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),l.addressOptions=function(n){if(!n)return l.tlds||n;if(o(n.minDomainSegments===void 0||Number.isSafeInteger(n.minDomainSegments)&&n.minDomainSegments>0,"minDomainSegments must be a positive integer"),o(n.maxDomainSegments===void 0||Number.isSafeInteger(n.maxDomainSegments)&&n.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),n.tlds===!1)return n;if(n.tlds===!0||n.tlds===void 0)return o(l.tlds,"Built-in TLD list disabled"),Object.assign({},n,l.tlds);o(typeof n.tlds=="object","tlds must be true, false, or an object");const i=n.tlds.deny;if(i)return Array.isArray(i)&&(n=Object.assign({},n,{tlds:{deny:new Set(i)}})),o(n.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),o(!n.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),l.validateTlds(n.tlds.deny,"tlds.deny"),n;const f=n.tlds.allow;return f?f===!0?(o(l.tlds,"Built-in TLD list disabled"),Object.assign({},n,l.tlds)):(Array.isArray(f)&&(n=Object.assign({},n,{tlds:{allow:new Set(f)}})),o(n.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),l.validateTlds(n.tlds.allow,"tlds.allow"),n):n},l.validateTlds=function(n,i){for(const f of n)o(y.isValid(f,{minDomainSegments:1,maxDomainSegments:1}),`${i} must contain valid top level domain names`)},l.isoDate=function(n){if(!t.isIsoDate(n))return null;/.*T.*[+-]\d\d$/.test(n)&&(n+="00");const i=new Date(n);return isNaN(i.getTime())?null:i.toISOString()},l.length=function(n,i,f,m,p){return o(!p||!1,"Invalid encoding:",p),n.$_addRule({name:i,method:"length",args:{limit:f,encoding:p},operator:m})}},8826:(I,j,_)=>{const o=_(375),y=_(8068),h={};h.Map=class extends Map{slice(){return new h.Map(this)}},I.exports=y.extend({type:"symbol",terms:{map:{init:new h.Map}},coerce:{method(u,{schema:e,error:a}){const s=e.$_terms.map.get(u);return s&&(u=s),e._flags.only&&typeof u!="symbol"?{value:u,errors:a("symbol.map",{map:e.$_terms.map})}:{value:u}}},validate(u,{error:e}){if(typeof u!="symbol")return{value:u,errors:e("symbol.base")}},rules:{map:{method(u){u&&!u[Symbol.iterator]&&typeof u=="object"&&(u=Object.entries(u)),o(u&&u[Symbol.iterator],"Iterable must be an iterable or object");const e=this.clone(),a=[];for(const s of u){o(s&&s[Symbol.iterator],"Entry must be an iterable");const[r,t]=s;o(typeof r!="object"&&typeof r!="function"&&typeof r!="symbol","Key must not be of type object, function, or Symbol"),o(typeof t=="symbol","Value must be a Symbol"),e.$_terms.map.set(r,t),a.push(t)}return e.valid(...a)}}},manifest:{build:(u,e)=>(e.map&&(u=u.map(e.map)),u)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})},8863:(I,j,_)=>{const o=_(375),y=_(8571),h=_(738),u=_(9621),e=_(8160),a=_(6354),s=_(493),r={result:Symbol("result")};j.entry=function(t,l,n){let i=e.defaults;n&&(o(n.warnings===void 0,"Cannot override warnings preference in synchronous validation"),o(n.artifacts===void 0,"Cannot override artifacts preference in synchronous validation"),i=e.preferences(e.defaults,n));const f=r.entry(t,l,i);o(!f.mainstay.externals.length,"Schema with external rules must use validateAsync()");const m={value:f.value};return f.error&&(m.error=f.error),f.mainstay.warnings.length&&(m.warning=a.details(f.mainstay.warnings)),f.mainstay.debug&&(m.debug=f.mainstay.debug),f.mainstay.artifacts&&(m.artifacts=f.mainstay.artifacts),m},j.entryAsync=async function(t,l,n){let i=e.defaults;n&&(i=e.preferences(e.defaults,n));const f=r.entry(t,l,i),m=f.mainstay;if(f.error)throw m.debug&&(f.error.debug=m.debug),f.error;if(m.externals.length){let R=f.value;const x=[];for(const c of m.externals){const d=c.state.path,v=c.schema.type==="link"?m.links.get(c.schema):null;let S,T,C=R;const N=d.length?[R]:[],M=d.length?u(t,d):t;if(d.length){S=d[d.length-1];let V=R;for(const B of d.slice(0,-1))V=V[B],N.unshift(V);T=N[0],C=T[S]}try{const V=(H,J)=>(v||c.schema).$_createError(H,C,J,c.state,i),B=await c.method(C,{schema:c.schema,linked:v,state:c.state,prefs:n,original:M,error:V,errorsArray:r.errorsArray,warn:(H,J)=>m.warnings.push((v||c.schema).$_createError(H,C,J,c.state,i)),message:(H,J)=>(v||c.schema).$_createError("external",C,J,c.state,i,{messages:H})});if(B===void 0||B===C)continue;if(B instanceof a.Report){if(m.tracer.log(c.schema,c.state,"rule","external","error"),x.push(B),i.abortEarly)break;continue}if(Array.isArray(B)&&B[e.symbols.errors]){if(m.tracer.log(c.schema,c.state,"rule","external","error"),x.push(...B),i.abortEarly)break;continue}T?(m.tracer.value(c.state,"rule",C,B,"external"),T[S]=B):(m.tracer.value(c.state,"rule",R,B,"external"),R=B)}catch(V){throw i.errors.label&&(V.message+=` (${c.label})`),V}}if(f.value=R,x.length)throw f.error=a.process(x,t,i),m.debug&&(f.error.debug=m.debug),f.error}if(!i.warnings&&!i.debug&&!i.artifacts)return f.value;const p={value:f.value};return m.warnings.length&&(p.warning=a.details(m.warnings)),m.debug&&(p.debug=m.debug),m.artifacts&&(p.artifacts=m.artifacts),p},r.Mainstay=class{constructor(t,l,n){this.externals=[],this.warnings=[],this.tracer=t,this.debug=l,this.links=n,this.shadow=null,this.artifacts=null,this._snapshots=[]}snapshot(){this._snapshots.push({externals:this.externals.slice(),warnings:this.warnings.slice()})}restore(){const t=this._snapshots.pop();this.externals=t.externals,this.warnings=t.warnings}commit(){this._snapshots.pop()}},r.entry=function(t,l,n){const{tracer:i,cleanup:f}=r.tracer(l,n),m=n.debug?[]:null,p=l._ids._schemaChain?new Map:null,R=new r.Mainstay(i,m,p),x=l._ids._schemaChain?[{schema:l}]:null,c=new s([],[],{mainstay:R,schemas:x}),d=j.validate(t,l,c,n);f&&l.$_root.untrace();const v=a.process(d.errors,t,n);return{value:d.value,error:v,mainstay:R}},r.tracer=function(t,l){return t.$_root._tracer?{tracer:t.$_root._tracer._register(t)}:l.debug?(o(t.$_root.trace,"Debug mode not supported"),{tracer:t.$_root.trace()._register(t),cleanup:!0}):{tracer:r.ignore}},j.validate=function(t,l,n,i,f={}){if(l.$_terms.whens&&(l=l._generate(t,n,i).schema),l._preferences&&(i=r.prefs(l,i)),l._cache&&i.cache){const v=l._cache.get(t);if(n.mainstay.tracer.debug(n,"validate","cached",!!v),v)return v}const m=(v,S,T)=>l.$_createError(v,t,S,T||n,i),p={original:t,prefs:i,schema:l,state:n,error:m,errorsArray:r.errorsArray,warn:(v,S,T)=>n.mainstay.warnings.push(m(v,S,T)),message:(v,S)=>l.$_createError("custom",t,S,n,i,{messages:v})};n.mainstay.tracer.entry(l,n);const R=l._definition;if(R.prepare&&t!==void 0&&i.convert){const v=R.prepare(t,p);if(v){if(n.mainstay.tracer.value(n,"prepare",t,v.value),v.errors)return r.finalize(v.value,[].concat(v.errors),p);t=v.value}}if(R.coerce&&t!==void 0&&i.convert&&(!R.coerce.from||R.coerce.from.includes(typeof t))){const v=R.coerce.method(t,p);if(v){if(n.mainstay.tracer.value(n,"coerced",t,v.value),v.errors)return r.finalize(v.value,[].concat(v.errors),p);t=v.value}}const x=l._flags.empty;x&&x.$_match(r.trim(t,l),n.nest(x),e.defaults)&&(n.mainstay.tracer.value(n,"empty",t,void 0),t=void 0);const c=f.presence||l._flags.presence||(l._flags._endedSwitch?null:i.presence);if(t===void 0){if(c==="forbidden")return r.finalize(t,null,p);if(c==="required")return r.finalize(t,[l.$_createError("any.required",t,null,n,i)],p);if(c==="optional"){if(l._flags.default!==e.symbols.deepDefault)return r.finalize(t,null,p);n.mainstay.tracer.value(n,"default",t,{}),t={}}}else if(c==="forbidden")return r.finalize(t,[l.$_createError("any.unknown",t,null,n,i)],p);const d=[];if(l._valids){const v=l._valids.get(t,n,i,l._flags.insensitive);if(v)return i.convert&&(n.mainstay.tracer.value(n,"valids",t,v.value),t=v.value),n.mainstay.tracer.filter(l,n,"valid",v),r.finalize(t,null,p);if(l._flags.only){const S=l.$_createError("any.only",t,{valids:l._valids.values({display:!0})},n,i);if(i.abortEarly)return r.finalize(t,[S],p);d.push(S)}}if(l._invalids){const v=l._invalids.get(t,n,i,l._flags.insensitive);if(v){n.mainstay.tracer.filter(l,n,"invalid",v);const S=l.$_createError("any.invalid",t,{invalids:l._invalids.values({display:!0})},n,i);if(i.abortEarly)return r.finalize(t,[S],p);d.push(S)}}if(R.validate){const v=R.validate(t,p);if(v&&(n.mainstay.tracer.value(n,"base",t,v.value),t=v.value,v.errors)){if(!Array.isArray(v.errors))return d.push(v.errors),r.finalize(t,d,p);if(v.errors.length)return d.push(...v.errors),r.finalize(t,d,p)}}return l._rules.length?r.rules(t,d,p):r.finalize(t,d,p)},r.rules=function(t,l,n){const{schema:i,state:f,prefs:m}=n;for(const p of i._rules){const R=i._definition.rules[p.method];if(R.convert&&m.convert){f.mainstay.tracer.log(i,f,"rule",p.name,"full");continue}let x,c=p.args;if(p._resolve.length){c=Object.assign({},c);for(const v of p._resolve){const S=R.argsByName.get(v),T=c[v].resolve(t,f,m),C=S.normalize?S.normalize(T):T,N=e.validateArg(C,null,S);if(N){x=i.$_createError("any.ref",T,{arg:v,ref:c[v],reason:N},f,m);break}c[v]=C}}x=x||R.validate(t,n,c,p);const d=r.rule(x,p);if(d.errors){if(f.mainstay.tracer.log(i,f,"rule",p.name,"error"),p.warn){f.mainstay.warnings.push(...d.errors);continue}if(m.abortEarly)return r.finalize(t,d.errors,n);l.push(...d.errors)}else f.mainstay.tracer.log(i,f,"rule",p.name,"pass"),f.mainstay.tracer.value(f,"rule",t,d.value,p.name),t=d.value}return r.finalize(t,l,n)},r.rule=function(t,l){return t instanceof a.Report?(r.error(t,l),{errors:[t],value:null}):Array.isArray(t)&&t[e.symbols.errors]?(t.forEach(n=>r.error(n,l)),{errors:t,value:null}):{errors:null,value:t}},r.error=function(t,l){return l.message&&t._setTemplate(l.message),t},r.finalize=function(t,l,n){l=l||[];const{schema:i,state:f,prefs:m}=n;if(l.length){const R=r.default("failover",void 0,l,n);R!==void 0&&(f.mainstay.tracer.value(f,"failover",t,R),t=R,l=[])}if(l.length&&i._flags.error)if(typeof i._flags.error=="function"){l=i._flags.error(l),Array.isArray(l)||(l=[l]);for(const R of l)o(R instanceof Error||R instanceof a.Report,"error() must return an Error object")}else l=[i._flags.error];if(t===void 0){const R=r.default("default",t,l,n);f.mainstay.tracer.value(f,"default",t,R),t=R}if(i._flags.cast&&t!==void 0){const R=i._definition.cast[i._flags.cast];if(R.from(t)){const x=R.to(t,n);f.mainstay.tracer.value(f,"cast",t,x,i._flags.cast),t=x}}if(i.$_terms.externals&&m.externals&&m._externals!==!1)for(const{method:R}of i.$_terms.externals)f.mainstay.externals.push({method:R,schema:i,state:f,label:a.label(i._flags,f,m)});const p={value:t,errors:l.length?l:null};return i._flags.result&&(p.value=i._flags.result==="strip"?void 0:n.original,f.mainstay.tracer.value(f,i._flags.result,t,p.value),f.shadow(t,i._flags.result)),i._cache&&m.cache!==!1&&!i._refs.length&&i._cache.set(n.original,p),t===void 0||p.errors||i._flags.artifact===void 0||(f.mainstay.artifacts=f.mainstay.artifacts||new Map,f.mainstay.artifacts.has(i._flags.artifact)||f.mainstay.artifacts.set(i._flags.artifact,[]),f.mainstay.artifacts.get(i._flags.artifact).push(f.path)),p},r.prefs=function(t,l){const n=l===e.defaults;return n&&t._preferences[e.symbols.prefs]?t._preferences[e.symbols.prefs]:(l=e.preferences(l,t._preferences),n&&(t._preferences[e.symbols.prefs]=l),l)},r.default=function(t,l,n,i){const{schema:f,state:m,prefs:p}=i,R=f._flags[t];if(p.noDefaults||R===void 0)return l;if(m.mainstay.tracer.log(f,m,"rule",t,"full"),!R)return R;if(typeof R=="function"){const x=R.length?[y(m.ancestors[0]),i]:[];try{return R(...x)}catch(c){return void n.push(f.$_createError(`any.${t}`,null,{error:c},m,p))}}return typeof R!="object"?R:R[e.symbols.literal]?R.literal:e.isResolvable(R)?R.resolve(l,m,p):y(R)},r.trim=function(t,l){if(typeof t!="string")return t;const n=l.$_getRule("trim");return n&&n.args.enabled?t.trim():t},r.ignore={active:!1,debug:h,entry:h,filter:h,log:h,resolve:h,value:h},r.errorsArray=function(){const t=[];return t[e.symbols.errors]=!0,t}},2036:(I,j,_)=>{const o=_(375),y=_(9474),h=_(8160),u={};I.exports=u.Values=class{constructor(e,a){this._values=new Set(e),this._refs=new Set(a),this._lowercase=u.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,a){h.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),a&&a.register(e)):this.has(e,null,null,!1)||(this._values.add(e),typeof e=="string"&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,a,s){if(e=e||new u.Values,a){if(a._override)return a.clone();for(const r of[...a._values,...a._refs])e.add(r)}if(s)for(const r of[...s._values,...s._refs])e.remove(r);return e.length?e:null}remove(e){h.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),typeof e=="string"&&this._lowercase.delete(e.toLowerCase()))}has(e,a,s,r){return!!this.get(e,a,s,r)}get(e,a,s,r){if(!this.length)return!1;if(this._values.has(e))return{value:e};if(typeof e=="string"&&e&&r){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&typeof e!="object")return!1;if(typeof e=="object"){for(const t of this._values)if(y(t,e))return{value:t}}if(a)for(const t of this._refs){const l=t.resolve(e,a,s,null,{in:!0});if(l===void 0)continue;const n=t.in&&typeof l=="object"?Array.isArray(l)?l:Object.keys(l):[l];for(const i of n)if(typeof i==typeof e){if(r&&e&&typeof e=="string"){if(i.toLowerCase()===e.toLowerCase())return{value:i,ref:t}}else if(y(i,e))return{value:i,ref:t}}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const a=[];for(const s of[...this._values,...this._refs])s!==void 0&&a.push(s);return a}return Array.from([...this._values,...this._refs])}clone(){const e=new u.Values(this._values,this._refs);return e._override=this._override,e}concat(e){o(!e._override,"Cannot concat override set of values");const a=new u.Values([...this._values,...e._values],[...this._refs,...e._refs]);return a._override=this._override,a}describe(){const e=[];this._override&&e.push({override:!0});for(const a of this._values.values())e.push(a&&typeof a=="object"?{value:a}:a);for(const a of this._refs.values())e.push(a.describe());return e}},u.Values.prototype[h.symbols.values]=!0,u.Values.prototype.slice=u.Values.prototype.clone,u.lowercases=function(e){const a=new Map;if(e)for(const s of e)typeof s=="string"&&a.set(s.toLowerCase(),s);return a}},978:(I,j,_)=>{const o=_(375),y=_(8571),h=_(1687),u=_(9621),e={};I.exports=function(a,s,r={}){if(o(a&&typeof a=="object","Invalid defaults value: must be an object"),o(!s||s===!0||typeof s=="object","Invalid source value: must be true, falsy or an object"),o(typeof r=="object","Invalid options: must be an object"),!s)return null;if(r.shallow)return e.applyToDefaultsWithShallow(a,s,r);const t=y(a);if(s===!0)return t;const l=r.nullOverride!==void 0&&r.nullOverride;return h(t,s,{nullOverride:l,mergeArrays:!1})},e.applyToDefaultsWithShallow=function(a,s,r){const t=r.shallow;o(Array.isArray(t),"Invalid keys");const l=new Map,n=s===!0?null:new Set;for(let m of t){m=Array.isArray(m)?m:m.split(".");const p=u(a,m);p&&typeof p=="object"?l.set(p,n&&u(s,m)||p):n&&n.add(m)}const i=y(a,{},l);if(!n)return i;for(const m of n)e.reachCopy(i,s,m);const f=r.nullOverride!==void 0&&r.nullOverride;return h(i,s,{nullOverride:f,mergeArrays:!1})},e.reachCopy=function(a,s,r){for(const n of r){if(!(n in s))return;const i=s[n];if(typeof i!="object"||i===null)return;s=i}const t=s;let l=a;for(let n=0;n<r.length-1;++n){const i=r[n];typeof l[i]!="object"&&(l[i]={}),l=l[i]}l[r[r.length-1]]=t}},375:(I,j,_)=>{const o=_(7916);I.exports=function(y,...h){if(!y)throw h.length===1&&h[0]instanceof Error?h[0]:new o(h)}},8571:(I,j,_)=>{const o=_(9621),y=_(4277),h=_(7043),u={needsProtoHack:new Set([y.set,y.map,y.weakSet,y.weakMap])};I.exports=u.clone=function(e,a={},s=null){if(typeof e!="object"||e===null)return e;let r=u.clone,t=s;if(a.shallow){if(a.shallow!==!0)return u.cloneWithShallow(e,a);r=f=>f}else if(t){const f=t.get(e);if(f)return f}else t=new Map;const l=y.getInternalProto(e);if(l===y.buffer)return!1;if(l===y.date)return new Date(e.getTime());if(l===y.regex)return new RegExp(e);const n=u.base(e,l,a);if(n===e)return e;if(t&&t.set(e,n),l===y.set)for(const f of e)n.add(r(f,a,t));else if(l===y.map)for(const[f,m]of e)n.set(f,r(m,a,t));const i=h.keys(e,a);for(const f of i){if(f==="__proto__")continue;if(l===y.array&&f==="length"){n.length=e.length;continue}const m=Object.getOwnPropertyDescriptor(e,f);m?m.get||m.set?Object.defineProperty(n,f,m):m.enumerable?n[f]=r(e[f],a,t):Object.defineProperty(n,f,{enumerable:!1,writable:!0,configurable:!0,value:r(e[f],a,t)}):Object.defineProperty(n,f,{enumerable:!0,writable:!0,configurable:!0,value:r(e[f],a,t)})}return n},u.cloneWithShallow=function(e,a){const s=a.shallow;(a=Object.assign({},a)).shallow=!1;const r=new Map;for(const t of s){const l=o(e,t);typeof l!="object"&&typeof l!="function"||r.set(l,l)}return u.clone(e,a,r)},u.base=function(e,a,s){if(s.prototype===!1)return u.needsProtoHack.has(a)?new a.constructor:a===y.array?[]:{};const r=Object.getPrototypeOf(e);if(r&&r.isImmutable)return e;if(a===y.array){const t=[];return r!==a&&Object.setPrototypeOf(t,r),t}if(u.needsProtoHack.has(a)){const t=new r.constructor;return r!==a&&Object.setPrototypeOf(t,r),t}return Object.create(r)}},9474:(I,j,_)=>{const o=_(4277),y={mismatched:null};I.exports=function(h,u,e){return e=Object.assign({prototype:!0},e),!!y.isDeepEqual(h,u,e,[])},y.isDeepEqual=function(h,u,e,a){if(h===u)return h!==0||1/h==1/u;const s=typeof h;if(s!==typeof u||h===null||u===null)return!1;if(s==="function"){if(!e.deepFunction||h.toString()!==u.toString())return!1}else if(s!=="object")return h!=h&&u!=u;const r=y.getSharedType(h,u,!!e.prototype);switch(r){case o.buffer:return!1;case o.promise:return h===u;case o.regex:return h.toString()===u.toString();case y.mismatched:return!1}for(let t=a.length-1;t>=0;--t)if(a[t].isSame(h,u))return!0;a.push(new y.SeenEntry(h,u));try{return!!y.isDeepEqualObj(r,h,u,e,a)}finally{a.pop()}},y.getSharedType=function(h,u,e){if(e)return Object.getPrototypeOf(h)!==Object.getPrototypeOf(u)?y.mismatched:o.getInternalProto(h);const a=o.getInternalProto(h);return a!==o.getInternalProto(u)?y.mismatched:a},y.valueOf=function(h){const u=h.valueOf;if(u===void 0)return h;try{return u.call(h)}catch(e){return e}},y.hasOwnEnumerableProperty=function(h,u){return Object.prototype.propertyIsEnumerable.call(h,u)},y.isSetSimpleEqual=function(h,u){for(const e of Set.prototype.values.call(h))if(!Set.prototype.has.call(u,e))return!1;return!0},y.isDeepEqualObj=function(h,u,e,a,s){const{isDeepEqual:r,valueOf:t,hasOwnEnumerableProperty:l}=y,{keys:n,getOwnPropertySymbols:i}=Object;if(h===o.array){if(!a.part){if(u.length!==e.length)return!1;for(let x=0;x<u.length;++x)if(!r(u[x],e[x],a,s))return!1;return!0}for(const x of u)for(const c of e)if(r(x,c,a,s))return!0}else if(h===o.set){if(u.size!==e.size)return!1;if(!y.isSetSimpleEqual(u,e)){const x=new Set(Set.prototype.values.call(e));for(const c of Set.prototype.values.call(u)){if(x.delete(c))continue;let d=!1;for(const v of x)if(r(c,v,a,s)){x.delete(v),d=!0;break}if(!d)return!1}}}else if(h===o.map){if(u.size!==e.size)return!1;for(const[x,c]of Map.prototype.entries.call(u))if(c===void 0&&!Map.prototype.has.call(e,x)||!r(c,Map.prototype.get.call(e,x),a,s))return!1}else if(h===o.error&&(u.name!==e.name||u.message!==e.message))return!1;const f=t(u),m=t(e);if((u!==f||e!==m)&&!r(f,m,a,s))return!1;const p=n(u);if(!a.part&&p.length!==n(e).length&&!a.skip)return!1;let R=0;for(const x of p)if(a.skip&&a.skip.includes(x))e[x]===void 0&&++R;else if(!l(e,x)||!r(u[x],e[x],a,s))return!1;if(!a.part&&p.length-R!==n(e).length)return!1;if(a.symbols!==!1){const x=i(u),c=new Set(i(e));for(const d of x){if(!a.skip||!a.skip.includes(d)){if(l(u,d)){if(!l(e,d)||!r(u[d],e[d],a,s))return!1}else if(l(e,d))return!1}c.delete(d)}for(const d of c)if(l(e,d))return!1}return!0},y.SeenEntry=class{constructor(h,u){this.obj=h,this.ref=u}isSame(h,u){return this.obj===h&&this.ref===u}}},7916:(I,j,_)=>{const o=_(8761);I.exports=class extends Error{constructor(y){super(y.filter(h=>h!=="").map(h=>typeof h=="string"?h:h instanceof Error?h.message:o(h)).join(" ")||"Unknown error"),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,j.assert)}}},5277:I=>{const j={};I.exports=function(_){if(!_)return"";let o="";for(let y=0;y<_.length;++y){const h=_.charCodeAt(y);j.isSafe(h)?o+=_[y]:o+=j.escapeHtmlChar(h)}return o},j.escapeHtmlChar=function(_){return j.namedHtml.get(_)||(_>=256?"&#"+_+";":`&#x${_.toString(16).padStart(2,"0")};`)},j.isSafe=function(_){return j.safeCharCodes.has(_)},j.namedHtml=new Map([[38,"&"],[60,"<"],[62,">"],[34,"""],[160," "],[162,"¢"],[163,"£"],[164,"¤"],[169,"©"],[174,"®"]]),j.safeCharCodes=function(){const _=new Set;for(let o=32;o<123;++o)(o>=97||o>=65&&o<=90||o>=48&&o<=57||o===32||o===46||o===44||o===45||o===58||o===95)&&_.add(o);return _}()},6064:I=>{I.exports=function(j){return j.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},738:I=>{I.exports=function(){}},1687:(I,j,_)=>{const o=_(375),y=_(8571),h=_(7043),u={};I.exports=u.merge=function(e,a,s){if(o(e&&typeof e=="object","Invalid target value: must be an object"),o(a==null||typeof a=="object","Invalid source value: must be null, undefined, or an object"),!a)return e;if(s=Object.assign({nullOverride:!0,mergeArrays:!0},s),Array.isArray(a)){o(Array.isArray(e),"Cannot merge array onto an object"),s.mergeArrays||(e.length=0);for(let t=0;t<a.length;++t)e.push(y(a[t],{symbols:s.symbols}));return e}const r=h.keys(a,s);for(let t=0;t<r.length;++t){const l=r[t];if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(a,l))continue;const n=a[l];if(n&&typeof n=="object"){if(e[l]===n)continue;!e[l]||typeof e[l]!="object"||Array.isArray(e[l])!==Array.isArray(n)||n instanceof Date||n instanceof RegExp?e[l]=y(n,{symbols:s.symbols}):u.merge(e[l],n,s)}else(n!=null||s.nullOverride)&&(e[l]=n)}return e}},9621:(I,j,_)=>{const o=_(375),y={};I.exports=function(h,u,e){if(u===!1||u==null)return h;typeof(e=e||{})=="string"&&(e={separator:e});const a=Array.isArray(u);o(!a||!e.separator,"Separator option is not valid for array-based chain");const s=a?u:u.split(e.separator||".");let r=h;for(let t=0;t<s.length;++t){let l=s[t];const n=e.iterables&&y.iterables(r);if(Array.isArray(r)||n==="set"){const i=Number(l);Number.isInteger(i)&&(l=i<0?r.length+i:i)}if(!r||typeof r=="function"&&e.functions===!1||!n&&r[l]===void 0){o(!e.strict||t+1===s.length,"Missing segment",l,"in reach path ",u),o(typeof r=="object"||e.functions===!0||typeof r!="function","Invalid segment",l,"in reach path ",u),r=e.default;break}r=n?n==="set"?[...r][l]:r.get(l):r[l]}return r},y.iterables=function(h){return h instanceof Set?"set":h instanceof Map?"map":void 0}},8761:I=>{I.exports=function(...j){try{return JSON.stringify(...j)}catch(_){return"[Cannot display object: "+_.message+"]"}}},4277:(I,j)=>{const _={};j=I.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},_.typeMap=new Map([["[object Error]",j.error],["[object Map]",j.map],["[object Promise]",j.promise],["[object Set]",j.set],["[object WeakMap]",j.weakMap],["[object WeakSet]",j.weakSet]]),j.getInternalProto=function(o){if(Array.isArray(o))return j.array;if(o instanceof Date)return j.date;if(o instanceof RegExp)return j.regex;if(o instanceof Error)return j.error;const y=Object.prototype.toString.call(o);return _.typeMap.get(y)||j.generic}},7043:(I,j)=>{j.keys=function(_,o={}){return o.symbols!==!1?Reflect.ownKeys(_):Object.getOwnPropertyNames(_)}},3652:(I,j,_)=>{const o=_(375),y={};j.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(h,u){const e=[].concat((u=u||{}).before||[]),a=[].concat(u.after||[]),s=u.group||"?",r=u.sort||0;o(!e.includes(s),`Item cannot come before itself: ${s}`),o(!e.includes("?"),"Item cannot come before unassociated items"),o(!a.includes(s),`Item cannot come after itself: ${s}`),o(!a.includes("?"),"Item cannot come after unassociated items"),Array.isArray(h)||(h=[h]);for(const t of h){const l={seq:this._items.length,sort:r,before:e,after:a,group:s,node:t};this._items.push(l)}if(!u.manual){const t=this._sort();o(t,"item",s!=="?"?`added into group ${s}`:"","created a dependencies error")}return this.nodes}merge(h){Array.isArray(h)||(h=[h]);for(const e of h)if(e)for(const a of e._items)this._items.push(Object.assign({},a));this._items.sort(y.mergeSort);for(let e=0;e<this._items.length;++e)this._items[e].seq=e;const u=this._sort();return o(u,"merge created a dependencies error"),this.nodes}sort(){const h=this._sort();return o(h,"sort created a dependencies error"),this.nodes}_sort(){const h={},u=Object.create(null),e=Object.create(null);for(const l of this._items){const n=l.seq,i=l.group;e[i]=e[i]||[],e[i].push(n),h[n]=l.before;for(const f of l.after)u[f]=u[f]||[],u[f].push(n)}for(const l in h){const n=[];for(const i in h[l]){const f=h[l][i];e[f]=e[f]||[],n.push(...e[f])}h[l]=n}for(const l in u)if(e[l])for(const n of e[l])h[n].push(...u[l]);const a={};for(const l in h){const n=h[l];for(const i of n)a[i]=a[i]||[],a[i].push(l)}const s={},r=[];for(let l=0;l<this._items.length;++l){let n=l;if(a[l]){n=null;for(let i=0;i<this._items.length;++i){if(s[i]===!0)continue;a[i]||(a[i]=[]);const f=a[i].length;let m=0;for(let p=0;p<f;++p)s[a[i][p]]&&++m;if(m===f){n=i;break}}}n!==null&&(s[n]=!0,r.push(n))}if(r.length!==this._items.length)return!1;const t={};for(const l of this._items)t[l.seq]=l;this._items=[],this.nodes=[];for(const l of r){const n=t[l];this.nodes.push(n.node),this._items.push(n)}return!0}},y.mergeSort=(h,u)=>h.sort===u.sort?0:h.sort<u.sort?-1:1},5380:(I,j,_)=>{const o=_(443),y=_(2178),h={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:o.URL||URL};j.analyze=function(u,e={}){if(!u)return y.code("DOMAIN_NON_EMPTY_STRING");if(typeof u!="string")throw new Error("Invalid input: domain must be a string");if(u.length>256)return y.code("DOMAIN_TOO_LONG");if(h.nonAsciiRx.test(u)){if(e.allowUnicode===!1)return y.code("DOMAIN_INVALID_UNICODE_CHARS");u=u.normalize("NFC")}if(h.domainControlRx.test(u))return y.code("DOMAIN_INVALID_CHARS");u=h.punycode(u),e.allowFullyQualified&&u[u.length-1]==="."&&(u=u.slice(0,-1));const a=e.minDomainSegments||h.minDomainSegments,s=u.split(".");if(s.length<a)return y.code("DOMAIN_SEGMENTS_COUNT");if(e.maxDomainSegments&&s.length>e.maxDomainSegments)return y.code("DOMAIN_SEGMENTS_COUNT_MAX");const r=e.tlds;if(r){const t=s[s.length-1].toLowerCase();if(r.deny&&r.deny.has(t)||r.allow&&!r.allow.has(t))return y.code("DOMAIN_FORBIDDEN_TLDS")}for(let t=0;t<s.length;++t){const l=s[t];if(!l.length)return y.code("DOMAIN_EMPTY_SEGMENT");if(l.length>63)return y.code("DOMAIN_LONG_SEGMENT");if(t<s.length-1){if(!h.domainSegmentRx.test(l))return y.code("DOMAIN_INVALID_CHARS")}else if(!h.tldSegmentRx.test(l))return y.code("DOMAIN_INVALID_TLDS_CHARS")}return null},j.isValid=function(u,e){return!j.analyze(u,e)},h.punycode=function(u){u.includes("%")&&(u=u.replace(/%/g,"%25"));try{return new h.URL(`http://${u}`).host}catch{return u}}},1745:(I,j,_)=>{const o=_(9848),y=_(5380),h=_(2178),u={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(o.TextEncoder||TextEncoder)};j.analyze=function(e,a){return u.email(e,a)},j.isValid=function(e,a){return!u.email(e,a)},u.email=function(e,a={}){if(typeof e!="string")throw new Error("Invalid input: email must be a string");if(!e)return h.code("EMPTY_STRING");const s=!u.nonAsciiRx.test(e);if(!s){if(a.allowUnicode===!1)return h.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const r=e.split("@");if(r.length!==2)return r.length>2?h.code("MULTIPLE_AT_CHAR"):h.code("MISSING_AT_CHAR");const[t,l]=r;if(!t)return h.code("EMPTY_LOCAL");if(!a.ignoreLength){if(e.length>254)return h.code("ADDRESS_TOO_LONG");if(u.encoder.encode(t).length>64)return h.code("LOCAL_TOO_LONG")}return u.local(t,s)||y.analyze(l,a)},u.local=function(e,a){const s=e.split(".");for(const r of s){if(!r.length)return h.code("EMPTY_LOCAL_SEGMENT");if(a){if(!u.atextRx.test(r))return h.code("INVALID_LOCAL_CHARS")}else for(const t of r){if(u.atextRx.test(t))continue;const l=u.binary(t);if(!u.atomRx.test(l))return h.code("INVALID_LOCAL_CHARS")}}},u.binary=function(e){return Array.from(u.encoder.encode(e)).map(a=>String.fromCharCode(a)).join("")},u.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,u.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},2178:(I,j)=>{j.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},j.code=function(_){return{code:_,error:j.codes[_]}}},9959:(I,j,_)=>{const o=_(375),y=_(5752);j.regex=function(h={}){o(h.cidr===void 0||typeof h.cidr=="string","options.cidr must be a string");const u=h.cidr?h.cidr.toLowerCase():"optional";o(["required","optional","forbidden"].includes(u),"options.cidr must be one of required, optional, forbidden"),o(h.version===void 0||typeof h.version=="string"||Array.isArray(h.version),"options.version must be a string or an array of string");let e=h.version||["ipv4","ipv6","ipvfuture"];Array.isArray(e)||(e=[e]),o(e.length>=1,"options.version must have at least 1 version specified");for(let r=0;r<e.length;++r)o(typeof e[r]=="string","options.version must only contain strings"),e[r]=e[r].toLowerCase(),o(["ipv4","ipv6","ipvfuture"].includes(e[r]),"options.version contains unknown version "+e[r]+" - must be one of ipv4, ipv6, ipvfuture");e=Array.from(new Set(e));const a=`(?:${e.map(r=>{if(u==="forbidden")return y.ip[r];const t=`\\/${r==="ipv4"?y.ip.v4Cidr:y.ip.v6Cidr}`;return u==="required"?`${y.ip[r]}${t}`:`${y.ip[r]}(?:${t})?`}).join("|")})`,s=new RegExp(`^${a}$`);return{cidr:u,versions:e,regex:s,raw:a}}},5752:(I,j,_)=>{const o=_(375),y=_(6064),h={generate:function(){const u={},e="\\dA-Fa-f",a="["+e+"]",s="\\w-\\.~",r="!\\$&'\\(\\)\\*\\+,;=",t="%"+e,l=s+t+r+":@",n="["+l+"]",i="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";u.ipv4address="(?:"+i+"\\.){3}"+i;const f=a+"{1,4}",m="(?:"+f+":"+f+"|"+u.ipv4address+")",p="(?:"+f+":){6}"+m,R="::(?:"+f+":){5}"+m,x="(?:"+f+")?::(?:"+f+":){4}"+m,c="(?:(?:"+f+":){0,1}"+f+")?::(?:"+f+":){3}"+m,d="(?:(?:"+f+":){0,2}"+f+")?::(?:"+f+":){2}"+m,v="(?:(?:"+f+":){0,3}"+f+")?::"+f+":"+m,S="(?:(?:"+f+":){0,4}"+f+")?::"+m,T="(?:(?:"+f+":){0,5}"+f+")?::"+f,C="(?:(?:"+f+":){0,6}"+f+")?::";u.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",u.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",u.ipv6address="(?:"+p+"|"+R+"|"+x+"|"+c+"|"+d+"|"+v+"|"+S+"|"+T+"|"+C+")",u.ipvFuture="v"+a+"+\\.["+s+r+":]+",u.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",u.schemeRegex=new RegExp(u.scheme);const N="["+s+t+r+":]*",M="["+s+t+r+"]{1,255}",V="(?:\\[(?:"+u.ipv6address+"|"+u.ipvFuture+")\\]|"+u.ipv4address+"|"+M+")",B="(?:"+N+"@)?"+V+"(?::\\d*)?",H="(?:"+N+"@)?("+V+")(?::\\d*)?",J=n+"*",K=n+"+",X="(?:\\/"+J+")*",re="\\/(?:"+K+X+")?",te=K+X,ie="["+s+t+r+"@]+"+X,he="(?:\\/\\/\\/"+J+X+")";return u.hierPart="(?:(?:\\/\\/"+B+X+")|"+re+"|"+te+"|"+he+")",u.hierPartCapture="(?:(?:\\/\\/"+H+X+")|"+re+"|"+te+")",u.relativeRef="(?:(?:\\/\\/"+B+X+")|"+re+"|"+ie+"|)",u.relativeRefCapture="(?:(?:\\/\\/"+H+X+")|"+re+"|"+ie+"|)",u.query="["+l+"\\/\\?]*(?=#|$)",u.queryWithSquareBrackets="["+l+"\\[\\]\\/\\?]*(?=#|$)",u.fragment="["+l+"\\/\\?]*",u}};h.rfc3986=h.generate(),j.ip={v4Cidr:h.rfc3986.ipv4Cidr,v6Cidr:h.rfc3986.ipv6Cidr,ipv4:h.rfc3986.ipv4address,ipv6:h.rfc3986.ipv6address,ipvfuture:h.rfc3986.ipvFuture},h.createRegex=function(u){const e=h.rfc3986,a="(?:\\?"+(u.allowQuerySquareBrackets?e.queryWithSquareBrackets:e.query)+")?(?:#"+e.fragment+")?",s=u.domain?e.relativeRefCapture:e.relativeRef;if(u.relativeOnly)return h.wrap(s+a);let r="";if(u.scheme){o(u.scheme instanceof RegExp||typeof u.scheme=="string"||Array.isArray(u.scheme),"scheme must be a RegExp, String, or Array");const n=[].concat(u.scheme);o(n.length>=1,"scheme must have at least 1 scheme specified");const i=[];for(let f=0;f<n.length;++f){const m=n[f];o(m instanceof RegExp||typeof m=="string","scheme at position "+f+" must be a RegExp or String"),m instanceof RegExp?i.push(m.source.toString()):(o(e.schemeRegex.test(m),"scheme at position "+f+" must be a valid scheme"),i.push(y(m)))}r=i.join("|")}const t="(?:"+(r?"(?:"+r+")":e.scheme)+":"+(u.domain?e.hierPartCapture:e.hierPart)+")",l=u.allowRelative?"(?:"+t+"|"+s+")":t;return h.wrap(l+a,r)},h.wrap=function(u,e){return{raw:u=`(?=.)(?!https?:/(?:$|[^/]))(?!https?:///)(?!https?:[^/])${u}`,regex:new RegExp(`^${u}$`),scheme:e}},h.uriRegex=h.createRegex({}),j.regex=function(u={}){return u.scheme||u.allowRelative||u.relativeOnly||u.allowQuerySquareBrackets||u.domain?h.createRegex(u):h.uriRegex}},1447:(I,j)=>{const _={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*(\.[0-9]*)?){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};j.Parser=class{constructor(o,y={}){if(!y[_.settings]&&y.constants)for(const h in y.constants){const u=y.constants[h];if(u!==null&&!["boolean","number","string"].includes(typeof u))throw new Error(`Formula constant ${h} contains invalid ${typeof u} value type`)}this.settings=y[_.settings]?y:Object.assign({[_.settings]:!0,constants:{},functions:{}},y),this.single=null,this._parts=null,this._parse(o)}_parse(o){let y=[],h="",u=0,e=!1;const a=r=>{if(u)throw new Error("Formula missing closing parenthesis");const t=y.length?y[y.length-1]:null;if(e||h||r){if(t&&t.type==="reference"&&r===")")return t.type="function",t.value=this._subFormula(h,t.value),void(h="");if(r===")"){const l=new j.Parser(h,this.settings);y.push({type:"segment",value:l})}else if(e){if(e==="]")return y.push({type:"reference",value:h}),void(h="");y.push({type:"literal",value:h})}else if(_.operatorCharacters.includes(h))t&&t.type==="operator"&&_.operators.includes(t.value+h)?t.value+=h:y.push({type:"operator",value:h});else if(h.match(_.numberRx))y.push({type:"constant",value:parseFloat(h)});else if(this.settings.constants[h]!==void 0)y.push({type:"constant",value:this.settings.constants[h]});else{if(!h.match(_.tokenRx))throw new Error(`Formula contains invalid token: ${h}`);y.push({type:"reference",value:h})}h=""}};for(const r of o)e?r===e?(a(),e=!1):h+=r:u?r==="("?(h+=r,++u):r===")"?(--u,u?h+=r:a(r)):h+=r:r in _.literals?e=_.literals[r]:r==="("?(a(),++u):_.operatorCharacters.includes(r)?(a(),h=r,a()):r!==" "?h+=r:a();a(),y=y.map((r,t)=>r.type!=="operator"||r.value!=="-"||t&&y[t-1].type!=="operator"?r:{type:"operator",value:"n"});let s=!1;for(const r of y){if(r.type==="operator"){if(_.operatorsPrefix.includes(r.value))continue;if(!s)throw new Error("Formula contains an operator in invalid position");if(!_.operators.includes(r.value))throw new Error(`Formula contains an unknown operator ${r.value}`)}else if(s)throw new Error("Formula missing expected operator");s=!s}if(!s)throw new Error("Formula contains invalid trailing operator");y.length===1&&["reference","literal","constant"].includes(y[0].type)&&(this.single={type:y[0].type==="reference"?"reference":"value",value:y[0].value}),this._parts=y.map(r=>{if(r.type==="operator")return _.operatorsPrefix.includes(r.value)?r:r.value;if(r.type!=="reference")return r.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(r.value))throw new Error(`Formula contains invalid reference ${r.value}`);return this.settings.reference?this.settings.reference(r.value):_.reference(r.value)})}_subFormula(o,y){const h=this.settings.functions[y];if(typeof h!="function")throw new Error(`Formula contains unknown function ${y}`);let u=[];if(o){let e="",a=0,s=!1;const r=()=>{if(!e)throw new Error(`Formula contains function ${y} with invalid arguments ${o}`);u.push(e),e=""};for(let t=0;t<o.length;++t){const l=o[t];s?(e+=l,l===s&&(s=!1)):l in _.literals&&!a?(e+=l,s=_.literals[l]):l!==","||a?(e+=l,l==="("?++a:l===")"&&--a):r()}r()}return u=u.map(e=>new j.Parser(e,this.settings)),function(e){const a=[];for(const s of u)a.push(s.evaluate(e));return h.call(e,...a)}}evaluate(o){const y=this._parts.slice();for(let h=y.length-2;h>=0;--h){const u=y[h];if(u&&u.type==="operator"){const e=y[h+1];y.splice(h+1,1);const a=_.evaluate(e,o);y[h]=_.single(u.value,a)}}return _.operatorsOrder.forEach(h=>{for(let u=1;u<y.length-1;)if(h.includes(y[u])){const e=y[u],a=_.evaluate(y[u-1],o),s=_.evaluate(y[u+1],o);y.splice(u,2);const r=_.calculate(e,a,s);y[u-1]=r===0?0:r}else u+=2}),_.evaluate(y[0],o)}},j.Parser.prototype[_.symbol]=!0,_.reference=function(o){return function(y){return y&&y[o]!==void 0?y[o]:null}},_.evaluate=function(o,y){return o===null?null:typeof o=="function"?o(y):o[_.symbol]?o.evaluate(y):o},_.single=function(o,y){if(o==="!")return!y;const h=-y;return h===0?0:h},_.calculate=function(o,y,h){if(o==="??")return _.exists(y)?y:h;if(typeof y=="string"||typeof h=="string"){if(o==="+")return(y=_.exists(y)?y:"")+(_.exists(h)?h:"")}else switch(o){case"^":return Math.pow(y,h);case"*":return y*h;case"/":return y/h;case"%":return y%h;case"+":return y+h;case"-":return y-h}switch(o){case"<":return y<h;case"<=":return y<=h;case">":return y>h;case">=":return y>=h;case"==":return y===h;case"!=":return y!==h;case"&&":return y&&h;case"||":return y||h}return null},_.exists=function(o){return o!=null}},9926:()=>{},5688:()=>{},9708:()=>{},1152:()=>{},443:()=>{},9848:()=>{},5934:I=>{I.exports=JSON.parse('{"version":"17.12.2"}')}},A={},function I(j){var _=A[j];if(_!==void 0)return _.exports;var o=A[j]={exports:{}};return k[j](o,o.exports,I),o.exports}(5107);var k,A})})(er);var tr=er.exports;const Kn=["ᄀ-ᇹ"," -〿","ぁ-ゔ","゙-ゞ","ァ-ヾ","ㄱ-ㆎ","㆐-㆟","㈀-㈜","㈠-㉃","㉠-㊰","㋀-㍶","㍻-㏝","㏠-㏾","一-龥","가-힣","-","豈-鶴"],Xn=["︰-﹄","﹉-﹒","﹔-﹫","!-~","¢-₩"];var Yn={charsWide:Kn,charsFullWidth:Xn};const{charsWide:Zn,charsFullWidth:Jn}=Yn,rr=new RegExp(`[${Zn.join("")}${Jn.join("")}]`,"g"),Qn=g=>g.replace(rr,"xx").length;var es={default:Qn,charsRegex:rr};/*!
|
|
29
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*/var ts=function(b){if(typeof b!="string"||b==="")return!1;for(var k;k=/(\\).|([@?!+*]\(.*\))/g.exec(b);){if(k[2])return!0;b=b.slice(k.index+k[0].length)}return!1};/*!
|
|
34
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
37
|
+
* Released under the MIT License.
|
|
38
|
+
*/var rs=ts,nr={"{":"}","(":")","[":"]"},ns=function(g){if(g[0]==="!")return!0;for(var b=0,k=-2,A=-2,I=-2,j=-2,_=-2;b<g.length;){if(g[b]==="*"||g[b+1]==="?"&&/[\].+)]/.test(g[b])||A!==-1&&g[b]==="["&&g[b+1]!=="]"&&(A<b&&(A=g.indexOf("]",b)),A>b&&(_===-1||_>A||(_=g.indexOf("\\",b),_===-1||_>A)))||I!==-1&&g[b]==="{"&&g[b+1]!=="}"&&(I=g.indexOf("}",b),I>b&&(_=g.indexOf("\\",b),_===-1||_>I))||j!==-1&&g[b]==="("&&g[b+1]==="?"&&/[:!=]/.test(g[b+2])&&g[b+3]!==")"&&(j=g.indexOf(")",b),j>b&&(_=g.indexOf("\\",b),_===-1||_>j))||k!==-1&&g[b]==="("&&g[b+1]!=="|"&&(k<b&&(k=g.indexOf("|",b)),k!==-1&&g[k+1]!==")"&&(j=g.indexOf(")",k),j>k&&(_=g.indexOf("\\",k),_===-1||_>j))))return!0;if(g[b]==="\\"){var o=g[b+1];b+=2;var y=nr[o];if(y){var h=g.indexOf(y,b);h!==-1&&(b=h+1)}if(g[b]==="!")return!0}else b++}return!1},ss=function(g){if(g[0]==="!")return!0;for(var b=0;b<g.length;){if(/[*?{}()[\]]/.test(g[b]))return!0;if(g[b]==="\\"){var k=g[b+1];b+=2;var A=nr[k];if(A){var I=g.indexOf(A,b);I!==-1&&(b=I+1)}if(g[b]==="!")return!0}else b++}return!1},as=function(b,k){if(typeof b!="string"||b==="")return!1;if(rs(b))return!0;var A=ns;return k&&k.strict===!1&&(A=ss),A(b)},Ze={exports:{}};(function(g,b){var k={};b=g.exports=c;var A;typeof Vr=="object"&&k&&k.NODE_DEBUG&&/\bsemver\b/i.test(k.NODE_DEBUG)?A=function(){var w=Array.prototype.slice.call(arguments,0);w.unshift("SEMVER"),console.log.apply(console,w)}:A=function(){},b.SEMVER_SPEC_VERSION="2.0.0";var I=256,j=Number.MAX_SAFE_INTEGER||9007199254740991,_=16,o=I-6,y=b.re=[],h=b.safeRe=[],u=b.src=[],e=b.tokens={},a=0;function s(w){e[w]=a++}var r="[a-zA-Z0-9-]",t=[["\\s",1],["\\d",I],[r,o]];function l(w){for(var $=0;$<t.length;$++){var O=t[$][0],L=t[$][1];w=w.split(O+"*").join(O+"{0,"+L+"}").split(O+"+").join(O+"{1,"+L+"}")}return w}s("NUMERICIDENTIFIER"),u[e.NUMERICIDENTIFIER]="0|[1-9]\\d*",s("NUMERICIDENTIFIERLOOSE"),u[e.NUMERICIDENTIFIERLOOSE]="\\d+",s("NONNUMERICIDENTIFIER"),u[e.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+r+"*",s("MAINVERSION"),u[e.MAINVERSION]="("+u[e.NUMERICIDENTIFIER]+")\\.("+u[e.NUMERICIDENTIFIER]+")\\.("+u[e.NUMERICIDENTIFIER]+")",s("MAINVERSIONLOOSE"),u[e.MAINVERSIONLOOSE]="("+u[e.NUMERICIDENTIFIERLOOSE]+")\\.("+u[e.NUMERICIDENTIFIERLOOSE]+")\\.("+u[e.NUMERICIDENTIFIERLOOSE]+")",s("PRERELEASEIDENTIFIER"),u[e.PRERELEASEIDENTIFIER]="(?:"+u[e.NUMERICIDENTIFIER]+"|"+u[e.NONNUMERICIDENTIFIER]+")",s("PRERELEASEIDENTIFIERLOOSE"),u[e.PRERELEASEIDENTIFIERLOOSE]="(?:"+u[e.NUMERICIDENTIFIERLOOSE]+"|"+u[e.NONNUMERICIDENTIFIER]+")",s("PRERELEASE"),u[e.PRERELEASE]="(?:-("+u[e.PRERELEASEIDENTIFIER]+"(?:\\."+u[e.PRERELEASEIDENTIFIER]+")*))",s("PRERELEASELOOSE"),u[e.PRERELEASELOOSE]="(?:-?("+u[e.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+u[e.PRERELEASEIDENTIFIERLOOSE]+")*))",s("BUILDIDENTIFIER"),u[e.BUILDIDENTIFIER]=r+"+",s("BUILD"),u[e.BUILD]="(?:\\+("+u[e.BUILDIDENTIFIER]+"(?:\\."+u[e.BUILDIDENTIFIER]+")*))",s("FULL"),s("FULLPLAIN"),u[e.FULLPLAIN]="v?"+u[e.MAINVERSION]+u[e.PRERELEASE]+"?"+u[e.BUILD]+"?",u[e.FULL]="^"+u[e.FULLPLAIN]+"$",s("LOOSEPLAIN"),u[e.LOOSEPLAIN]="[v=\\s]*"+u[e.MAINVERSIONLOOSE]+u[e.PRERELEASELOOSE]+"?"+u[e.BUILD]+"?",s("LOOSE"),u[e.LOOSE]="^"+u[e.LOOSEPLAIN]+"$",s("GTLT"),u[e.GTLT]="((?:<|>)?=?)",s("XRANGEIDENTIFIERLOOSE"),u[e.XRANGEIDENTIFIERLOOSE]=u[e.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",s("XRANGEIDENTIFIER"),u[e.XRANGEIDENTIFIER]=u[e.NUMERICIDENTIFIER]+"|x|X|\\*",s("XRANGEPLAIN"),u[e.XRANGEPLAIN]="[v=\\s]*("+u[e.XRANGEIDENTIFIER]+")(?:\\.("+u[e.XRANGEIDENTIFIER]+")(?:\\.("+u[e.XRANGEIDENTIFIER]+")(?:"+u[e.PRERELEASE]+")?"+u[e.BUILD]+"?)?)?",s("XRANGEPLAINLOOSE"),u[e.XRANGEPLAINLOOSE]="[v=\\s]*("+u[e.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+u[e.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+u[e.XRANGEIDENTIFIERLOOSE]+")(?:"+u[e.PRERELEASELOOSE]+")?"+u[e.BUILD]+"?)?)?",s("XRANGE"),u[e.XRANGE]="^"+u[e.GTLT]+"\\s*"+u[e.XRANGEPLAIN]+"$",s("XRANGELOOSE"),u[e.XRANGELOOSE]="^"+u[e.GTLT]+"\\s*"+u[e.XRANGEPLAINLOOSE]+"$",s("COERCE"),u[e.COERCE]="(^|[^\\d])(\\d{1,"+_+"})(?:\\.(\\d{1,"+_+"}))?(?:\\.(\\d{1,"+_+"}))?(?:$|[^\\d])",s("COERCERTL"),y[e.COERCERTL]=new RegExp(u[e.COERCE],"g"),h[e.COERCERTL]=new RegExp(l(u[e.COERCE]),"g"),s("LONETILDE"),u[e.LONETILDE]="(?:~>?)",s("TILDETRIM"),u[e.TILDETRIM]="(\\s*)"+u[e.LONETILDE]+"\\s+",y[e.TILDETRIM]=new RegExp(u[e.TILDETRIM],"g"),h[e.TILDETRIM]=new RegExp(l(u[e.TILDETRIM]),"g");var n="$1~";s("TILDE"),u[e.TILDE]="^"+u[e.LONETILDE]+u[e.XRANGEPLAIN]+"$",s("TILDELOOSE"),u[e.TILDELOOSE]="^"+u[e.LONETILDE]+u[e.XRANGEPLAINLOOSE]+"$",s("LONECARET"),u[e.LONECARET]="(?:\\^)",s("CARETTRIM"),u[e.CARETTRIM]="(\\s*)"+u[e.LONECARET]+"\\s+",y[e.CARETTRIM]=new RegExp(u[e.CARETTRIM],"g"),h[e.CARETTRIM]=new RegExp(l(u[e.CARETTRIM]),"g");var i="$1^";s("CARET"),u[e.CARET]="^"+u[e.LONECARET]+u[e.XRANGEPLAIN]+"$",s("CARETLOOSE"),u[e.CARETLOOSE]="^"+u[e.LONECARET]+u[e.XRANGEPLAINLOOSE]+"$",s("COMPARATORLOOSE"),u[e.COMPARATORLOOSE]="^"+u[e.GTLT]+"\\s*("+u[e.LOOSEPLAIN]+")$|^$",s("COMPARATOR"),u[e.COMPARATOR]="^"+u[e.GTLT]+"\\s*("+u[e.FULLPLAIN]+")$|^$",s("COMPARATORTRIM"),u[e.COMPARATORTRIM]="(\\s*)"+u[e.GTLT]+"\\s*("+u[e.LOOSEPLAIN]+"|"+u[e.XRANGEPLAIN]+")",y[e.COMPARATORTRIM]=new RegExp(u[e.COMPARATORTRIM],"g"),h[e.COMPARATORTRIM]=new RegExp(l(u[e.COMPARATORTRIM]),"g");var f="$1$2$3";s("HYPHENRANGE"),u[e.HYPHENRANGE]="^\\s*("+u[e.XRANGEPLAIN]+")\\s+-\\s+("+u[e.XRANGEPLAIN]+")\\s*$",s("HYPHENRANGELOOSE"),u[e.HYPHENRANGELOOSE]="^\\s*("+u[e.XRANGEPLAINLOOSE]+")\\s+-\\s+("+u[e.XRANGEPLAINLOOSE]+")\\s*$",s("STAR"),u[e.STAR]="(<|>)?=?\\s*\\*";for(var m=0;m<a;m++)A(m,u[m]),y[m]||(y[m]=new RegExp(u[m]),h[m]=new RegExp(l(u[m])));b.parse=p;function p(w,$){if((!$||typeof $!="object")&&($={loose:!!$,includePrerelease:!1}),w instanceof c)return w;if(typeof w!="string"||w.length>I)return null;var O=$.loose?h[e.LOOSE]:h[e.FULL];if(!O.test(w))return null;try{return new c(w,$)}catch{return null}}b.valid=R;function R(w,$){var O=p(w,$);return O?O.version:null}b.clean=x;function x(w,$){var O=p(w.trim().replace(/^[=v]+/,""),$);return O?O.version:null}b.SemVer=c;function c(w,$){if((!$||typeof $!="object")&&($={loose:!!$,includePrerelease:!1}),w instanceof c){if(w.loose===$.loose)return w;w=w.version}else if(typeof w!="string")throw new TypeError("Invalid Version: "+w);if(w.length>I)throw new TypeError("version is longer than "+I+" characters");if(!(this instanceof c))return new c(w,$);A("SemVer",w,$),this.options=$,this.loose=!!$.loose;var O=w.trim().match($.loose?h[e.LOOSE]:h[e.FULL]);if(!O)throw new TypeError("Invalid Version: "+w);if(this.raw=w,this.major=+O[1],this.minor=+O[2],this.patch=+O[3],this.major>j||this.major<0)throw new TypeError("Invalid major version");if(this.minor>j||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>j||this.patch<0)throw new TypeError("Invalid patch version");O[4]?this.prerelease=O[4].split(".").map(function(L){if(/^[0-9]+$/.test(L)){var D=+L;if(D>=0&&D<j)return D}return L}):this.prerelease=[],this.build=O[5]?O[5].split("."):[],this.format()}c.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},c.prototype.toString=function(){return this.version},c.prototype.compare=function(w){return A("SemVer.compare",this.version,this.options,w),w instanceof c||(w=new c(w,this.options)),this.compareMain(w)||this.comparePre(w)},c.prototype.compareMain=function(w){return w instanceof c||(w=new c(w,this.options)),T(this.major,w.major)||T(this.minor,w.minor)||T(this.patch,w.patch)},c.prototype.comparePre=function(w){if(w instanceof c||(w=new c(w,this.options)),this.prerelease.length&&!w.prerelease.length)return-1;if(!this.prerelease.length&&w.prerelease.length)return 1;if(!this.prerelease.length&&!w.prerelease.length)return 0;var $=0;do{var O=this.prerelease[$],L=w.prerelease[$];if(A("prerelease compare",$,O,L),O===void 0&&L===void 0)return 0;if(L===void 0)return 1;if(O===void 0)return-1;if(O===L)continue;return T(O,L)}while(++$)},c.prototype.compareBuild=function(w){w instanceof c||(w=new c(w,this.options));var $=0;do{var O=this.build[$],L=w.build[$];if(A("prerelease compare",$,O,L),O===void 0&&L===void 0)return 0;if(L===void 0)return 1;if(O===void 0)return-1;if(O===L)continue;return T(O,L)}while(++$)},c.prototype.inc=function(w,$){switch(w){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$),this.inc("pre",$);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",$),this.inc("pre",$);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var O=this.prerelease.length;--O>=0;)typeof this.prerelease[O]=="number"&&(this.prerelease[O]++,O=-2);O===-1&&this.prerelease.push(0)}$&&(this.prerelease[0]===$?isNaN(this.prerelease[1])&&(this.prerelease=[$,0]):this.prerelease=[$,0]);break;default:throw new Error("invalid increment argument: "+w)}return this.format(),this.raw=this.version,this},b.inc=d;function d(w,$,O,L){typeof O=="string"&&(L=O,O=void 0);try{return new c(w,O).inc($,L).version}catch{return null}}b.diff=v;function v(w,$){if(he(w,$))return null;var O=p(w),L=p($),D="";if(O.prerelease.length||L.prerelease.length){D="pre";var F="prerelease"}for(var q in O)if((q==="major"||q==="minor"||q==="patch")&&O[q]!==L[q])return D+q;return F}b.compareIdentifiers=T;var S=/^[0-9]+$/;function T(w,$){var O=S.test(w),L=S.test($);return O&&L&&(w=+w,$=+$),w===$?0:O&&!L?-1:L&&!O?1:w<$?-1:1}b.rcompareIdentifiers=C;function C(w,$){return T($,w)}b.major=N;function N(w,$){return new c(w,$).major}b.minor=M;function M(w,$){return new c(w,$).minor}b.patch=V;function V(w,$){return new c(w,$).patch}b.compare=B;function B(w,$,O){return new c(w,O).compare(new c($,O))}b.compareLoose=H;function H(w,$){return B(w,$,!0)}b.compareBuild=J;function J(w,$,O){var L=new c(w,O),D=new c($,O);return L.compare(D)||L.compareBuild(D)}b.rcompare=K;function K(w,$,O){return B($,w,O)}b.sort=X;function X(w,$){return w.sort(function(O,L){return b.compareBuild(O,L,$)})}b.rsort=re;function re(w,$){return w.sort(function(O,L){return b.compareBuild(L,O,$)})}b.gt=te;function te(w,$,O){return B(w,$,O)>0}b.lt=ie;function ie(w,$,O){return B(w,$,O)<0}b.eq=he;function he(w,$,O){return B(w,$,O)===0}b.neq=_e;function _e(w,$,O){return B(w,$,O)!==0}b.gte=de;function de(w,$,O){return B(w,$,O)>=0}b.lte=pe;function pe(w,$,O){return B(w,$,O)<=0}b.cmp=we;function we(w,$,O,L){switch($){case"===":return typeof w=="object"&&(w=w.version),typeof O=="object"&&(O=O.version),w===O;case"!==":return typeof w=="object"&&(w=w.version),typeof O=="object"&&(O=O.version),w!==O;case"":case"=":case"==":return he(w,O,L);case"!=":return _e(w,O,L);case">":return te(w,O,L);case">=":return de(w,O,L);case"<":return ie(w,O,L);case"<=":return pe(w,O,L);default:throw new TypeError("Invalid operator: "+$)}}b.Comparator=W;function W(w,$){if((!$||typeof $!="object")&&($={loose:!!$,includePrerelease:!1}),w instanceof W){if(w.loose===!!$.loose)return w;w=w.value}if(!(this instanceof W))return new W(w,$);w=w.trim().split(/\s+/).join(" "),A("comparator",w,$),this.options=$,this.loose=!!$.loose,this.parse(w),this.semver===Z?this.value="":this.value=this.operator+this.semver.version,A("comp",this)}var Z={};W.prototype.parse=function(w){var $=this.options.loose?h[e.COMPARATORLOOSE]:h[e.COMPARATOR],O=w.match($);if(!O)throw new TypeError("Invalid comparator: "+w);this.operator=O[1]!==void 0?O[1]:"",this.operator==="="&&(this.operator=""),O[2]?this.semver=new c(O[2],this.options.loose):this.semver=Z},W.prototype.toString=function(){return this.value},W.prototype.test=function(w){if(A("Comparator.test",w,this.options.loose),this.semver===Z||w===Z)return!0;if(typeof w=="string")try{w=new c(w,this.options)}catch{return!1}return we(w,this.operator,this.semver,this.options)},W.prototype.intersects=function(w,$){if(!(w instanceof W))throw new TypeError("a Comparator is required");(!$||typeof $!="object")&&($={loose:!!$,includePrerelease:!1});var O;if(this.operator==="")return this.value===""?!0:(O=new G(w.value,$),Ne(this.value,O,$));if(w.operator==="")return w.value===""?!0:(O=new G(this.value,$),Ne(w.semver,O,$));var L=(this.operator===">="||this.operator===">")&&(w.operator===">="||w.operator===">"),D=(this.operator==="<="||this.operator==="<")&&(w.operator==="<="||w.operator==="<"),F=this.semver.version===w.semver.version,q=(this.operator===">="||this.operator==="<=")&&(w.operator===">="||w.operator==="<="),Y=we(this.semver,"<",w.semver,$)&&(this.operator===">="||this.operator===">")&&(w.operator==="<="||w.operator==="<"),z=we(this.semver,">",w.semver,$)&&(this.operator==="<="||this.operator==="<")&&(w.operator===">="||w.operator===">");return L||D||F&&q||Y||z},b.Range=G;function G(w,$){if((!$||typeof $!="object")&&($={loose:!!$,includePrerelease:!1}),w instanceof G)return w.loose===!!$.loose&&w.includePrerelease===!!$.includePrerelease?w:new G(w.raw,$);if(w instanceof W)return new G(w.value,$);if(!(this instanceof G))return new G(w,$);if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=w.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(O){return this.parseRange(O.trim())},this).filter(function(O){return O.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}G.prototype.format=function(){return this.range=this.set.map(function(w){return w.join(" ").trim()}).join("||").trim(),this.range},G.prototype.toString=function(){return this.range},G.prototype.parseRange=function(w){var $=this.options.loose,O=$?h[e.HYPHENRANGELOOSE]:h[e.HYPHENRANGE];w=w.replace(O,Tr),A("hyphen replace",w),w=w.replace(h[e.COMPARATORTRIM],f),A("comparator trim",w,h[e.COMPARATORTRIM]),w=w.replace(h[e.TILDETRIM],n),w=w.replace(h[e.CARETTRIM],i),w=w.split(/\s+/).join(" ");var L=$?h[e.COMPARATORLOOSE]:h[e.COMPARATOR],D=w.split(" ").map(function(F){return $e(F,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(D=D.filter(function(F){return!!F.match(L)})),D=D.map(function(F){return new W(F,this.options)},this),D},G.prototype.intersects=function(w,$){if(!(w instanceof G))throw new TypeError("a Range is required");return this.set.some(function(O){return Q(O,$)&&w.set.some(function(L){return Q(L,$)&&O.every(function(D){return L.every(function(F){return D.intersects(F,$)})})})})};function Q(w,$){for(var O=!0,L=w.slice(),D=L.pop();O&&L.length;)O=L.every(function(F){return D.intersects(F,$)}),D=L.pop();return O}b.toComparators=ne;function ne(w,$){return new G(w,$).set.map(function(O){return O.map(function(L){return L.value}).join(" ").trim().split(" ")})}function $e(w,$){return A("comp",w,$),w=Or(w,$),A("caret",w),w=jr(w,$),A("tildes",w),w=Ir(w,$),A("xrange",w),w=Lr(w,$),A("stars",w),w}function ae(w){return!w||w.toLowerCase()==="x"||w==="*"}function jr(w,$){return w.trim().split(/\s+/).map(function(O){return Sr(O,$)}).join(" ")}function Sr(w,$){var O=$.loose?h[e.TILDELOOSE]:h[e.TILDE];return w.replace(O,function(L,D,F,q,Y){A("tilde",w,L,D,F,q,Y);var z;return ae(D)?z="":ae(F)?z=">="+D+".0.0 <"+(+D+1)+".0.0":ae(q)?z=">="+D+"."+F+".0 <"+D+"."+(+F+1)+".0":Y?(A("replaceTilde pr",Y),z=">="+D+"."+F+"."+q+"-"+Y+" <"+D+"."+(+F+1)+".0"):z=">="+D+"."+F+"."+q+" <"+D+"."+(+F+1)+".0",A("tilde return",z),z})}function Or(w,$){return w.trim().split(/\s+/).map(function(O){return kr(O,$)}).join(" ")}function kr(w,$){A("caret",w,$);var O=$.loose?h[e.CARETLOOSE]:h[e.CARET];return w.replace(O,function(L,D,F,q,Y){A("caret",w,L,D,F,q,Y);var z;return ae(D)?z="":ae(F)?z=">="+D+".0.0 <"+(+D+1)+".0.0":ae(q)?D==="0"?z=">="+D+"."+F+".0 <"+D+"."+(+F+1)+".0":z=">="+D+"."+F+".0 <"+(+D+1)+".0.0":Y?(A("replaceCaret pr",Y),D==="0"?F==="0"?z=">="+D+"."+F+"."+q+"-"+Y+" <"+D+"."+F+"."+(+q+1):z=">="+D+"."+F+"."+q+"-"+Y+" <"+D+"."+(+F+1)+".0":z=">="+D+"."+F+"."+q+"-"+Y+" <"+(+D+1)+".0.0"):(A("no pr"),D==="0"?F==="0"?z=">="+D+"."+F+"."+q+" <"+D+"."+F+"."+(+q+1):z=">="+D+"."+F+"."+q+" <"+D+"."+(+F+1)+".0":z=">="+D+"."+F+"."+q+" <"+(+D+1)+".0.0"),A("caret return",z),z})}function Ir(w,$){return A("replaceXRanges",w,$),w.split(/\s+/).map(function(O){return Ar(O,$)}).join(" ")}function Ar(w,$){w=w.trim();var O=$.loose?h[e.XRANGELOOSE]:h[e.XRANGE];return w.replace(O,function(L,D,F,q,Y,z){A("xRange",w,L,D,F,q,Y,z);var ge=ae(F),ye=ge||ae(q),ce=ye||ae(Y),le=ce;return D==="="&&le&&(D=""),z=$.includePrerelease?"-0":"",ge?D===">"||D==="<"?L="<0.0.0-0":L="*":D&&le?(ye&&(q=0),Y=0,D===">"?(D=">=",ye?(F=+F+1,q=0,Y=0):(q=+q+1,Y=0)):D==="<="&&(D="<",ye?F=+F+1:q=+q+1),L=D+F+"."+q+"."+Y+z):ye?L=">="+F+".0.0"+z+" <"+(+F+1)+".0.0"+z:ce&&(L=">="+F+"."+q+".0"+z+" <"+F+"."+(+q+1)+".0"+z),A("xRange return",L),L})}function Lr(w,$){return A("replaceStars",w,$),w.trim().replace(h[e.STAR],"")}function Tr(w,$,O,L,D,F,q,Y,z,ge,ye,ce,le){return ae(O)?$="":ae(L)?$=">="+O+".0.0":ae(D)?$=">="+O+"."+L+".0":$=">="+$,ae(z)?Y="":ae(ge)?Y="<"+(+z+1)+".0.0":ae(ye)?Y="<"+z+"."+(+ge+1)+".0":ce?Y="<="+z+"."+ge+"."+ye+"-"+ce:Y="<="+Y,($+" "+Y).trim()}G.prototype.test=function(w){if(!w)return!1;if(typeof w=="string")try{w=new c(w,this.options)}catch{return!1}for(var $=0;$<this.set.length;$++)if(Nr(this.set[$],w,this.options))return!0;return!1};function Nr(w,$,O){for(var L=0;L<w.length;L++)if(!w[L].test($))return!1;if($.prerelease.length&&!O.includePrerelease){for(L=0;L<w.length;L++)if(A(w[L].semver),w[L].semver!==Z&&w[L].semver.prerelease.length>0){var D=w[L].semver;if(D.major===$.major&&D.minor===$.minor&&D.patch===$.patch)return!0}return!1}return!0}b.satisfies=Ne;function Ne(w,$,O){try{$=new G($,O)}catch{return!1}return $.test(w)}b.maxSatisfying=Cr;function Cr(w,$,O){var L=null,D=null;try{var F=new G($,O)}catch{return null}return w.forEach(function(q){F.test(q)&&(!L||D.compare(q)===-1)&&(L=q,D=new c(L,O))}),L}b.minSatisfying=Dr;function Dr(w,$,O){var L=null,D=null;try{var F=new G($,O)}catch{return null}return w.forEach(function(q){F.test(q)&&(!L||D.compare(q)===1)&&(L=q,D=new c(L,O))}),L}b.minVersion=Pr;function Pr(w,$){w=new G(w,$);var O=new c("0.0.0");if(w.test(O)||(O=new c("0.0.0-0"),w.test(O)))return O;O=null;for(var L=0;L<w.set.length;++L){var D=w.set[L];D.forEach(function(F){var q=new c(F.semver.version);switch(F.operator){case">":q.prerelease.length===0?q.patch++:q.prerelease.push(0),q.raw=q.format();case"":case">=":(!O||te(O,q))&&(O=q);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+F.operator)}})}return O&&w.test(O)?O:null}b.validRange=Mr;function Mr(w,$){try{return new G(w,$).range||"*"}catch{return null}}b.ltr=Fr;function Fr(w,$,O){return Xe(w,$,"<",O)}b.gtr=qr;function qr(w,$,O){return Xe(w,$,">",O)}b.outside=Xe;function Xe(w,$,O,L){w=new c(w,L),$=new G($,L);var D,F,q,Y,z;switch(O){case">":D=te,F=pe,q=ie,Y=">",z=">=";break;case"<":D=ie,F=de,q=te,Y="<",z="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ne(w,$,L))return!1;for(var ge=0;ge<$.set.length;++ge){var ye=$.set[ge],ce=null,le=null;if(ye.forEach(function(Ee){Ee.semver===Z&&(Ee=new W(">=0.0.0")),ce=ce||Ee,le=le||Ee,D(Ee.semver,ce.semver,L)?ce=Ee:q(Ee.semver,le.semver,L)&&(le=Ee)}),ce.operator===Y||ce.operator===z||(!le.operator||le.operator===Y)&&F(w,le.semver))return!1;if(le.operator===z&&q(w,le.semver))return!1}return!0}b.prerelease=Ur;function Ur(w,$){var O=p(w,$);return O&&O.prerelease.length?O.prerelease:null}b.intersects=Br;function Br(w,$,O){return w=new G(w,O),$=new G($,O),w.intersects($)}b.coerce=zr;function zr(w,$){if(w instanceof c)return w;if(typeof w=="number"&&(w=String(w)),typeof w!="string")return null;$=$||{};var O=null;if(!$.rtl)O=w.match(h[e.COERCE]);else{for(var L;(L=h[e.COERCERTL].exec(w))&&(!O||O.index+O[0].length!==w.length);)(!O||L.index+L[0].length!==O.index+O[0].length)&&(O=L),h[e.COERCERTL].lastIndex=L.index+L[1].length+L[2].length;h[e.COERCERTL].lastIndex=-1}return O===null?null:p(O[2]+"."+(O[3]||"0")+"."+(O[4]||"0"),$)}})(Ze,Ze.exports);var is=Ze.exports;const sr=tr,ve=is,se="semver",os={base:sr.string(),type:"semverRange",validate:function(g,{error:b}){return ve.validRange(g)?{value:g}:{errors:b(`${se}.valid`)}},messages:{[`${se}.valid`]:"{{#label}} needs to be a valid semver range"}},Re={};Re.compare={method:!1,validate:function(g,b,{exp:k},{name:A}){return ve[A](g,k)?g:b.error(`${se}.${A}`,{exp:k})},args:[{name:"exp",assert:ve.valid,message:"needs to be a valid semver expression"}]};["gt","gte","lt","lte","eq","neq"].forEach(function(g){Re[g]={method:function(b){return this.$_addRule({name:g,method:"compare",args:{exp:b}})}}});Re.cmp={method:function(g,b){return this.$_addRule({name:"cmp",args:{cmp:g,exp:b}})},validate:function(g,b,{cmp:k,exp:A}){return ve.cmp(g,k,A)?g:b.error(`${se}.cmp`,{cmp:k,exp:A})},args:[{name:"cmp",assert:g=>["===","!==","","=","==","!=",">",">=","<","<="].includes(g),message:"needs to be a valid comparator"},{name:"exp",assert:ve.valid,message:"needs to be a valid semver expression"}]};Re.compareRange={method:!1,validate:function(g,b,{rng:k},{name:A}){return ve[A](g,k)?g:b.error(`${se}.${A}`,{rng:k})},args:[{name:"rng",assert:ve.validRange,message:"needs to be a valid semver range"}]};["satisfies","gtr","ltr"].forEach(function(g){Re[g]={method:function(b){return this.$_addRule({name:g,method:"compareRange",args:{rng:b}})}}});Re.outside={method:function(g,b){return this.$_addRule({name:"outside",args:{hilo:g,rng:b}})},validate:function(g,b,{hilo:k,rng:A}){return ve.outside(g,A,k)?g:b.error(`${se}.outside`,{hilo:k,rng:A})},args:[{name:"hilo",assert:g=>[">","<"].includes(g),message:"needs to be a valid comparator"},{name:"rng",assert:ve.validRange,message:"needs to be a valid semver range"}]};const ls={base:sr.string(),type:"semver",validate:function(g,{error:b}){return ve.valid(g)?{value:g}:{errors:b(`${se}.valid`)}},messages:{[`${se}.valid`]:"{{#label}} needs to be a valid semver expression",[`${se}.gt`]:"{{#label}} needs to be greater than {{#exp}}",[`${se}.gte`]:"{{#label}} needs to be greater than or equal to {{#exp}}",[`${se}.lt`]:"{{#label}} needs to be less than {{#exp}}",[`${se}.lte`]:"{{#label}} needs to be less than or equal to {{#exp}}",[`${se}.eq`]:"{{#label}} needs to be logically equivalent to {{#exp}}",[`${se}.neq`]:"{{#label}} needs to be logically different than {{#exp}}",[`${se}.cmp`]:"{{#label}} needs to satisfy {{#cmp}} on {{#exp}}",[`${se}.satisfies`]:"{{#label}} needs to satisfy {{#rng}}",[`${se}.gtr`]:"{{#label}} needs to be greater than range {{#rng}}",[`${se}.ltr`]:"{{#label}} needs to be less than range {{#rng}}",[`${se}.outside`]:"{{#label}} needs to be {{#hilo}} than range {{#rng}}"},rules:Re};var cs={semver:ls,semverRange:os};/*!
|
|
39
|
+
* is-var-name | ISC (c) Shinnosuke Watanabe
|
|
40
|
+
* https://github.com/shinnn/is-var-name
|
|
41
|
+
*/function us(g){if(typeof g!="string"||g.trim()!==g)return!1;try{new Function(g,"var "+g)}catch{return!1}return!0}const fs=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),ms=Gr(fs),hs=Hr,ds=Kr,kt=We,ps=g=>{if((0,kt.isValid)(g))return g;const b=(0,ds.toHex)(Wr.from(typeof g=="string"?g.trim():g));return(0,kt.fromPublicKey)(b,{role:hs.types.RoleType.ROLE_ANY})};var gs=ps,xe={},ar=me&&me.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(xe,"__esModule",{value:!0});xe.didExtension=xe.fileExtension=void 0;const It=ar(Qt),ys=ar(Nn),vs=We,ir=g=>({type:"file",base:g.string(),validate(b,{error:k}){return b&&typeof b=="string"?{value:b}:{errors:k("file.empty",{file:b})}},messages:{"file.empty":'file "{{#file}}" must be non-empty string',"file.enoent":'file "{{#file}}" does not exist',"file.error.generic":'file could not be read. message: "{{#message}}"'},rules:{exists:{multi:!1,method({baseDir:b=null,canSkip:k=()=>!1}={}){return this.$_addRule({name:"exists",args:{baseDir:b,canSkip:k}})},args:[{name:"baseDir",assert:b=>It.default.existsSync(b),message:"baseDir must exist"},{name:"canSkip",assert:b=>typeof b=="function",message:"canSkip must be a function"}],validate(b,{error:k},{baseDir:A,canSkip:I}={}){if(typeof I=="function"&&I(A,b))return b;try{return It.default.statSync(ys.default.join(A,b)),b}catch(j){switch(j.code){case"ENOENT":return k("file.enoent",{file:b})}return k("file.error.generic",{message:j.message})}}}}});xe.fileExtension=ir;const or=g=>({type:"DID",base:g.string(),validate(b,{error:k}){return!b||typeof b!="string"?{errors:k("did.empty",{did:b})}:(0,vs.isValid)(b)===!1?{errors:k("did.invalid",{did:b})}:{value:b}},messages:{"did.empty":'did "{{#did}}" must be non-empty string',"did.invalid":'did "{{#did}}" is not valid'}});xe.didExtension=or;xe.default={fileExtension:ir,didExtension:or};var lr={},cr={exports:{}};const bs=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"];var ur=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),_s=bs,ws=["node_modules","favicon.ico"],Es=cr.exports=function(g){var b=[],k=[];if(g===null)return k.push("name cannot be null"),Ie(b,k);if(g===void 0)return k.push("name cannot be undefined"),Ie(b,k);if(typeof g!="string")return k.push("name must be a string"),Ie(b,k);if(g.length||k.push("name length must be greater than zero"),g.match(/^\./)&&k.push("name cannot start with a period"),g.match(/^_/)&&k.push("name cannot start with an underscore"),g.trim()!==g&&k.push("name cannot contain leading or trailing spaces"),ws.forEach(function(_){g.toLowerCase()===_&&k.push(_+" is a blacklisted name")}),_s.forEach(function(_){g.toLowerCase()===_&&b.push(_+" is a core module name")}),g.length>214&&b.push("name can no longer contain more than 214 characters"),g.toLowerCase()!==g&&b.push("name can no longer contain capital letters"),/[~'!()*]/.test(g.split("/").slice(-1)[0])&&b.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(g)!==g){var A=g.match(ur);if(A){var I=A[1],j=A[2];if(encodeURIComponent(I)===I&&encodeURIComponent(j)===j)return Ie(b,k)}k.push("name can only contain URL-friendly characters")}return Ie(b,k)};Es.scopedPackagePattern=ur;var Ie=function(g,b){var k={validForNewPackages:b.length===0&&g.length===0,validForOldPackages:b.length===0,warnings:g,errors:b};return k.warnings.length||delete k.warnings,k.errors.length||delete k.errors,k},xs=cr.exports;(function(g){var b=me&&me.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(g,"__esModule",{value:!0}),g.validateName=g.validateNewDid=void 0;const k=We,A=b(xs),I=32,j=o=>{if((0,k.toTypeInfo)(o).role!==k.types.RoleType.ROLE_BLOCKLET)throw new Error("Blocklet DID's type must be ROLE_BLOCKLET")};g.validateNewDid=j;const _=(o,{checkDid:y=!0}={})=>{if((0,k.isValid)(o))y&&(0,g.validateNewDid)(o);else{const{validForNewPackages:h,errors:u=[],warnings:e=[]}=(0,A.default)(o);if(!h)throw new Error(u[0]||e[0]);if(o.length>I)throw new Error("Blocklet name is too long")}};g.validateName=_,g.default={validateName:g.validateName,validateNewDid:g.validateNewDid}})(lr);var Rs=me&&me.__createBinding||(Object.create?function(g,b,k,A){A===void 0&&(A=k);var I=Object.getOwnPropertyDescriptor(b,k);(!I||("get"in I?!b.__esModule:I.writable||I.configurable))&&(I={enumerable:!0,get:function(){return b[k]}}),Object.defineProperty(g,A,I)}:function(g,b,k,A){A===void 0&&(A=k),g[A]=b[k]}),$s=me&&me.__setModuleDefault||(Object.create?function(g,b){Object.defineProperty(g,"default",{enumerable:!0,value:b})}:function(g,b){g.default=b}),js=me&&me.__importStar||function(g){if(g&&g.__esModule)return g;var b={};if(g!=null)for(var k in g)k!=="default"&&Object.prototype.hasOwnProperty.call(g,k)&&Rs(b,g,k);return $s(b,g),b},ke=me&&me.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(U,"__esModule",{value:!0});U.Joi=U.resourceBundleSchema=U.authConfigSchema=U.cacheableSchema=U.statsSchema=fr=U.titleSchema=U.themeSchema=U.signatureSchema=U.serviceSchema=U.scriptsSchema=U.personSchema=U.navigationSchema=U.navigationItemSchema=U.updateMountPointSchema=U.mountPointSchema=U.logoSchema=U.interfaceSchema=U.environmentNameSchema=U.environmentSchema=U.engineSchema=U.endpointSchema=U.distSchema=U.descriptionSchema=U.createBlockletSchema=U.componentSchema=U.blockletNameSchema=U.blockletMetaSchema=void 0;const Ss=ke(Qt),Os=ke(tr),ks=ke(es),Is=ke(as),At=cs,As=ke(ms),Lt=zt,Ls=We,ee=De,Ts=ke(gs),Tt=xe,Je=lr,st=js(Xr),Ns=ks.default.default,Nt="/.well-known",E=Os.default.extend(At.semver).extend(At.semverRange).extend(Tt.fileExtension).extend(Tt.didExtension);U.Joi=E;const Ct=(g,b)=>(0,st.checkLink)(g)?g:b.message(`Invalid navigation link: ${g}
|
|
42
|
+
|
|
43
|
+
A valid navigation link should be a relative url which start with '/' or a absolute url, such as:
|
|
44
|
+
- /en/home
|
|
45
|
+
- /zh/home
|
|
46
|
+
- https://www.arcblock.io
|
|
47
|
+
`),Cs=(g,b)=>!g||(0,As.default)(g)?g:b.message(`Invalid navigation id: ${g}
|
|
48
|
+
|
|
49
|
+
A valid navigation id is should follow the rules of javascript variables, such as:
|
|
50
|
+
- foo
|
|
51
|
+
- fooBar
|
|
52
|
+
- foo123
|
|
53
|
+
|
|
54
|
+
see detail in https://www.npmjs.com/package/is-var-name
|
|
55
|
+
`),He=E.string().trim().min(1).custom(g=>{if(Ns(g)>ee.MAX_TITLE_LENGTH)throw new Error(`title length should not exceed ${ee.MAX_TITLE_LENGTH} (see: https://www.npmjs.com/package/cjk-length)`);return g}).meta({className:"TTitle"});var fr=U.titleSchema=He;const Ke=E.string().trim().min(3).max(160).meta({className:"TDescription"});U.descriptionSchema=Ke;const mr=E.string().uri({scheme:["http","https"],allowRelative:!0}).allow("").custom((g,b)=>g.includes(Lt.WELLKNOWN_BLOCKLET_LOGO_PATH)?b.message(`logo url should not include ${Lt.WELLKNOWN_BLOCKLET_LOGO_PATH}`):g).meta({className:"TLogo"});U.logoSchema=mr;const hr=E.string().trim().min(1),at=hr.meta({className:"TMountPoint"}).custom((g,b)=>(0,st.isValidUrlPath)(g)?g:b.message(`mountPoint cannot contain such characters space $*+~()'"!:@\\`));U.mountPointSchema=at;const dr=hr.meta({className:"TUpdateMountPoint"}).custom(g=>(0,st.default)(g));U.updateMountPointSchema=dr;const Oe=E.string().custom(g=>((0,Je.validateName)(g),g)).meta({className:"TBlockletName"});U.blockletNameSchema=Oe;const Ds=[],it=E.string().trim().min(1).max(50).required().custom((g,b)=>g.startsWith("BLOCKLET")&&!Ds.includes(g)?b.message("Env name can not start with BLOCKLET_"):g.startsWith("COMPONENT")?b.message("Env name can not start with COMPONENT_"):g.startsWith("ABTNODE")?b.message("Env name can not start with ABTNODE_"):/[^\w]/.test(g)?b.message('Env name can include only numbers or letters or "_"'):g).meta({className:"TEnvironmentName",unknownType:"any"});U.environmentNameSchema=it;const ot=E.object({name:it.required(),description:E.string().trim().required(),default:E.string().optional().allow("").default(""),required:E.boolean().default(!1),secure:E.boolean().default(!1),validation:E.string().optional(),shared:E.boolean().default(g=>g.secure?!1:void 0)}).custom((g,b)=>g.secure&&g.default?b.message(`Cannot declare default value for secure env ${g.name}`):g).meta({className:"TEnvironment",unknownType:"any"});U.environmentSchema=ot;const lt=E.object({dev:E.string().trim().min(1),e2eDev:E.string().trim().min(1),preFlight:E.string().trim().min(1),preInstall:E.string().trim().min(1),postInstall:E.string().trim().min(1),preStart:E.string().trim().min(1),postStart:E.string().trim().min(1),preStop:E.string().trim().min(1),preUninstall:E.string().trim().min(1),preConfig:E.string().trim().min(1)}).rename("pre-flight","preFlight").rename("pre-install","preInstall").rename("post-install","postInstall").rename("pre-start","preStart").rename("post-start","postStart").rename("pre-stop","preStop").rename("pre-uninstall","preUninstall").rename("pre-config","preConfig").optional().meta({className:"TScripts",unknownType:"any"});U.scriptsSchema=lt;const ct=E.object({name:E.string().required().trim(),config:E.object().optional().default({})}).unknown(!0).meta({className:"TService",unknownType:"any"});U.serviceSchema=ct;const ut=E.object({type:E.string().trim(!0).min(1).required(),path:E.string().required(),meta:E.object({vcType:E.string(),payable:E.boolean(),params:E.array().items({name:E.string().required().trim(),description:E.string().required().trim()})})}).meta({className:"TEndpoint",unknownType:"any"});U.endpointSchema=ut;const pr=E.string().trim().custom((g,b)=>{const k=g.split("/").filter(Boolean);return k.length===0?b.message("cacheable path must be a valid pathname that is not /"):`/${k.join("/")}`}).meta({className:"TPathPrefix",unknownType:"any"});U.cacheableSchema=pr;const ft=E.object({type:E.string().lowercase().valid(...ee.BLOCKLET_INTERFACE_TYPES).required(),name:E.string().trim().required(),path:E.string().trim().default("/"),prefix:E.string().trim().min(1).default(ee.BLOCKLET_DYNAMIC_PATH_PREFIX),protocol:E.string().lowercase().valid(...ee.BLOCKLET_INTERFACE_PROTOCOLS).default("http"),port:E.alternatives().try(E.string().uppercase().default(ee.BLOCKLET_DEFAULT_PORT_NAME),E.object({internal:E.string().uppercase().required(),external:E.number().port().required()})).default(ee.BLOCKLET_DEFAULT_PORT_NAME),cacheable:E.array().items(pr).unique(),services:E.array().items(ct).unique("name"),endpoints:E.array().items(ut).unique("type"),pageGroups:E.array().items(E.string().min(1).max(255).trim()).unique()}).meta({className:"TInterface",unknownType:"any"});U.interfaceSchema=ft;const Ps=E.alternatives().try(E.string().required(),E.object({url:E.string().uri({scheme:["http","https","file"]}).required(),name:Oe.required(),version:E.alternatives().try(E.string().valid("latest"),E.semverRange().valid())}),E.object({store:E.string().uri({scheme:["http","https"]}).required(),name:Oe.required(),version:E.alternatives().try(E.string().valid("latest"),E.semverRange().valid()).default("latest")})),Qe=E.object({platform:E.string().valid(...ee.BLOCKLET_PLATFORMS).optional(),interpreter:E.string().valid("binary","node","blocklet").default("node"),source:Ps,args:E.array().items(E.string()).optional().default([])}).meta({className:"TEngine",unknownType:"any"});U.engineSchema=Qe;const Le=E.object({name:E.string().min(1).required(),email:E.string().email({tlds:!1}).optional(),url:E.string().uri().optional()}).meta({className:"TPerson",unknownType:"any"});U.personSchema=Le;const Te=E.object({tarball:E.alternatives().try(E.string().uri(),E.string()).required(),integrity:E.string().required(),size:E.number().optional()}).meta({className:"TDist",unknownType:"any"});U.distSchema=Te;const gr=E.object({downloads:E.number().integer().greater(-1),star:E.number().default(0),purchases:E.number().default(0)}).meta({className:"TStats",unknownType:"any"});U.statsSchema=gr;const Ms=E.alternatives().try(E.object({url:E.alternatives().try(E.string().uri(),E.array().items(E.string().uri()).min(1)).required(),version:E.alternatives().try(E.string().valid("latest"),E.semverRange().valid())}),E.object({store:E.string().uri(),name:Oe.required(),version:E.alternatives().try(E.string().valid("latest"),E.semverRange().valid()).default("latest")})),yr={source:Ms.required(),required:E.boolean(),title:He,description:Ke,mountPoint:at,name:Oe},vr=(g,b)=>E.object(g).custom((k,A)=>!b&&k.source&&k.source.name&&!k.source.store?A.message(`missing 'store' in source of component ${k.name}`):k),mt=vr(yr).meta({className:"TComponent",unknownType:"any"});U.componentSchema=mt;const Fs=vr(yr,!0),br=({checkStore:g}={})=>{const b=[mt,Fs];return E.array().items(g?b[0]:b[1]).optional().default([])},_r=E.object({type:E.string().required(),name:E.string().required(),signer:E.string().required(),pk:E.string().required(),created:E.string().isoDate().required(),sig:E.string().required(),excludes:E.array().items(E.string()).optional(),appended:E.array().items(E.string()).optional(),delegatee:E.string(),delegateePk:E.string(),delegation:E.string()}).meta({className:"TSignature",unknownType:"any"});U.signatureSchema=_r;const Dt=["en","zh","fr","ru","ar","es","de","pt","ja","hi"],Pt={id:E.string().custom(Cs),title:E.alternatives().try(E.string().min(1).max(ee.MAX_TITLE_LENGTH),E.object().min(1).pattern(E.string().valid(...Dt),E.string().min(1).max(ee.MAX_TITLE_LENGTH))).required(),link:E.alternatives().try(E.string().custom(Ct),E.object().min(1).pattern(E.string().valid(...Dt),E.string().custom(Ct))),component:E.string().min(1),section:E.array().items(E.string().min(1)).single(),role:E.array().items(E.string().min(1)).single(),icon:E.string().min(1),visible:E.boolean()},wr=E.object({...Pt,items:E.array().items(E.object({...Pt}).rename("child","component"))}).rename("child","component").meta({className:"TNavigationItem",unknownType:"any"});U.navigationItemSchema=wr;const ht=E.array().items(wr).unique((g,b)=>g.id&&b.id?g.id===b.id:!1).meta({className:"TNavigation",unknownType:"any"});U.navigationSchema=ht;const dt=E.object({background:E.alternatives().try(E.string().min(1),E.object({header:E.string().min(1),footer:E.string().min(1),default:E.string().min(1)}).min(1))}).meta({className:"TTheme",unknownType:"any"});U.themeSchema=dt;const Er=E.object({whoCanAccess:E.string().valid("owner","invited","all"),profileFields:E.array().items(E.string().valid("fullName","email","avatar","phone")).unique(),ignoreUrls:E.array().items(E.string().min(1)),allowSwitchProfile:E.boolean(),blockUnauthenticated:E.boolean(),blockUnauthorized:E.boolean()}).options({stripUnknown:!0}).meta({className:"TAuthConfig",unknownType:"any"});U.authConfigSchema=Er;const qs=E.object({type:E.string().trim().min(1).required(),description:E.string().trim().min(1)}),pt=E.object({did:E.DID().trim().required(),type:E.string().trim().min(1).required(),public:E.boolean()}).meta({className:"TResourceBundle",unknownType:"any"});U.resourceBundleSchema=pt;const xr={did:E.DID().trim().required(),version:E.semver().valid().required(),name:E.string().optional(),description:Ke.required(),group:E.string().valid(...ee.BLOCKLET_GROUPS),main:E.string().trim(),title:He.optional().allow(""),logo:E.string().trim().optional(),specVersion:E.semver().valid().gte("1.0.0").optional(),author:Le.optional(),contributors:E.array().items(Le).optional(),maintainers:E.array().items(Le).optional(),community:E.string().uri().optional().allow("").default(""),documentation:E.string().uri().optional().allow("").default(""),homepage:E.string().uri().optional().allow("").default(""),license:E.string().optional().allow("").default(""),support:E.alternatives().try(E.string().uri(),E.string().email({tlds:!1})).optional(),nftFactory:E.DID().optional().allow("").default(""),payment:E.object({price:E.array().max(1).items(E.object({value:E.number().greater(0).required(),address:E.DID().required()})).default([]),share:E.array().max(4).items(E.object({name:E.string().required(),address:E.DID().required(),value:E.number().greater(0).max(1).required()})).default([]).custom(g=>{if(g.length===0)return g;const b=g.reduce((k,A)=>k+A.value,0);if(b!==1)throw new Error(`Invalid blocklet payment share config: total share must be 1, got ${b}`);return g},"invalid blocklet share"),componentPrice:E.array().items(E.object({parentPriceRange:E.array().items(E.number()).custom((g,b)=>g.length!==2?b.message("length of range should be 2"):g[0]<0?b.message("the first value should not less than 0 in range"):g[1]<=g[0]?b.message("the second value should greater than the first value in range"):g),type:E.string().valid("fixed","percentage").required(),value:E.number().greater(0).required()})).single()}).default({price:[],share:[]}),keywords:E.alternatives().try(E.string().trim().min(1),E.array().items(E.string().min(1))).optional(),tags:E.alternatives().try(E.string().trim().min(1),E.array().items(E.string().min(1))).optional(),gitHash:E.string().optional().allow(""),repository:E.alternatives().try(E.string().min(1),E.object({type:E.string().valid("git","https","svn").required(),url:E.string().uri().required(),directory:E.string()})).optional(),timeout:E.object({start:E.number().min(10).max(600)}).default({start:60}),requirements:E.object({abtnode:E.semverRange().valid(),server:E.semverRange().valid(),os:E.alternatives().try(E.string().valid("*",...ee.BLOCKLET_PLATFORMS),E.array().items(E.string().valid(...ee.BLOCKLET_PLATFORMS)).min(1)),cpu:E.alternatives().try(E.string().valid("*",...ee.BLOCKLET_ARCHITECTURES),E.array().items(E.string().valid(...ee.BLOCKLET_ARCHITECTURES)).min(1)),fuels:E.array().items(E.object({endpoint:E.string().trim().required(),address:E.string().trim(),value:E.string().trim().required(),reason:E.string().trim().required()})),nodejs:E.semverRange().valid()}).default({server:ee.BLOCKLET_LATEST_REQUIREMENT_SERVER,os:"*",cpu:"*",nodejs:"*"}),interfaces:E.array().items(ft).unique("name").custom((g,b)=>{if(g.filter(I=>I.type===ee.BLOCKLET_INTERFACE_TYPE_WEB).length>1)return b.message(`Only one ${ee.BLOCKLET_INTERFACE_TYPE_WEB} interface can be declared`);const A=g.filter(I=>I.type===ee.BLOCKLET_INTERFACE_TYPE_WELLKNOWN);for(const I of A)if(!I.prefix.startsWith(Nt))return b.message(`Wellknown path prefix must start with: ${Nt}`);return g}).default([]),environments:E.array().items(ot).default([]).optional().custom((g,b)=>{if(g&&g.length){const k=g.filter((A,I)=>g.findIndex(j=>j.name===A.name)!==I);if(k.length)return b.message(`find duplicate environment names ${k.map(A=>A.name).join(", ")}`)}return g}),scripts:lt,capabilities:E.object({clusterMode:E.boolean(),didSpace:E.string().valid(...Object.values(ee.BLOCKLET_APP_SPACE_REQUIREMENT)).optional(),navigation:E.boolean().default(!0),serverless:E.boolean().optional(),component:E.boolean(),sitemap:E.boolean().optional()}).default({}),files:E.array().items(E.string().trim()).optional(),resource:E.object({exportApi:E.string().trim(),bundles:E.array().items(pt),types:E.array().items(qs).max(10)}),engine:E.alternatives().try(Qe,E.array().items(Qe)).optional(),screenshots:E.array().items(E.string().min(1)).optional().default([]),logoUrl:E.string().optional().allow(""),dist:Te.optional(),stats:gr.optional(),htmlAst:E.any().optional(),path:E.string().optional(),signatures:E.array().items(_r).optional(),lastPublishedAt:E.string().isoDate().optional(),components:br(),navigation:ht,theme:dt,copyright:E.object({owner:E.string().min(1),year:E.alternatives().try(E.string(),E.number())}),bundleName:E.string(),bundleDid:E.DID().trim(),storeId:E.string()},Us=E.object(xr).options({stripUnknown:!0,noDefaults:!1}).meta({className:"TBlockletMeta",unknownType:"any"});U.blockletMetaSchema=Us;const Rr=(g,{ensureFiles:b=!1,ensureDist:k=!1,ensureComponentStore:A=!0,ensureName:I=!1,skipValidateDidName:j=!1,..._}={})=>((!g||!Ss.default.existsSync(g))&&(b=!1),E.object({...xr,logo:b?E.file().trim().exists({baseDir:g}).optional():E.string().trim().optional(),files:E.array().items(b?E.file().exists({baseDir:g,canSkip:(o,y)=>[ee.BLOCKLET_ENTRY_FILE,ee.BLOCKLET_BUNDLE_FILE].includes(y)||(0,Is.default)(y)}):E.string().trim()).optional(),dist:k?Te.required():Te.optional(),components:br({checkStore:A}),name:I?E.string().optional():E.string().required()}).options({stripUnknown:!0,noDefaults:!1,..._}).rename("children","components").custom((o,y)=>{const{did:h,name:u}=o;let e;if((0,Ls.isValid)(h))try{return(0,Je.validateNewDid)(h),o}catch(a){e=a}if(u){(0,Je.validateName)(u,{checkDid:!j});const a=(0,Ts.default)(u);return a!==h?y.message(`The did of name "${u}" should be "${a}"`):o}return e?y.message(e.message):o}));U.createBlockletSchema=Rr;U.default={blockletNameSchema:Oe,componentSchema:mt,endpointSchema:ut,serviceSchema:ct,createBlockletSchema:Rr,interfaceSchema:ft,environmentSchema:ot,environmentNameSchema:it,scriptsSchema:lt,personSchema:Le,distSchema:Te,titleSchema:He,descriptionSchema:Ke,logoSchema:mr,navigationSchema:ht,themeSchema:dt,mountPointSchema:at,updateMountPointSchema:dr,authConfigSchema:Er,resourceBundleSchema:pt,Joi:E};function $r({children:g,...b}){return P.jsx(Yr,{variant:"contained",color:"primary",...b,children:g})}$r.propTypes={children:Pe.any.isRequired};const Se=fe.forwardRef((g,b)=>P.jsx($r,{...g,forwardedRef:b})),Ae=on("@abtnode/webapp:launch-blocklet:step-install"),Mt=(g,b)=>!b.statusChanged&&(g==="installed"||g==="running")&&!b.launching,Bs=(g,b,k)=>k(b==="nft"?g?"launchBlocklet.dialog.nftFreeDescription":"launchBlocklet.dialog.nftPaidDescription":g?"launchBlocklet.dialog.freeDescription":"launchBlocklet.dialog.paidDescription"),gt="setup_token",zs=g=>{sessionStorage.setItem(gt,g)},Vs=()=>{sessionStorage.removeItem(gt)},Gs=()=>sessionStorage.getItem(gt);function Ws(){const g=Bt(),{t:b,locale:k}=ze(),{api:A,info:I}=Ve(),{session:j,api:_}=Zr(),o=Vt(),{loading:y,meta:h,isFree:u,appDid:e,sessionId:a,storeUrl:s,blockletMetaUrl:r,isExternal:t,setAppDid:l,launcherUrl:n,launcherSessionId:i,isInstalling:f,isInstalled:m}=Ge(),p=h?qe.getDisplayName({meta:h},!0):null,R=g.get("launchType"),x=g.get("chainHost"),c=!!g.get("onlyRequired"),d=g.get("nftId"),v=fe.useRef(null),{decrypt:S,encryptKey:T}=Jr(),[C]=Tn("skip-blocklet-setup",!1),[N,M]=Qr({launching:!1,visiting:!1,statusChanged:!1,isConnectOpen:!1,nextAccessUrl:"",loaded:!1,installError:null,progressIndex:0,connectData:{action:"",baseUrl:"",checkFn:()=>{},extraParams:{}}}),V=en({user:j.user,launchType:R,nftId:d}),B=tn.getServerAuthMethod(I,R,i,V),H=$n(V?e:""),{status:J,eventName:K}=H,X=g.get("from");fe.useEffect(()=>{y||(!m&&!f&&te(),M({loaded:!0}))},[y]);const re=async()=>{const{isNew:W,decoded:Z}=ln(s,I.blockletRegistryList);W&&await A.addBlockletStore({input:{teamDid:I.did,url:Z}})},te=async()=>{var Z,G;let W=p;if(j.user){const Q=`${j.user.fullName}'s ${p}`,{error:ne}=fr.validate(Q);ne||(W=Q),console.warn({appName:W,betterName:Q,error:ne})}if(M({installError:null}),j!=null&&j.user&&!t&&R!=="serverless")try{await re()}catch(Q){console.error("addNewRegistryToRegistryList error:",Q)}if(u){const Q=`launch-free-blocklet-by-${B}`;M({isConnectOpen:!0,connectData:{action:Q,baseUrl:"",checkFn:vt.create({baseURL:((Z=window==null?void 0:window.env)==null?void 0:Z.apiPrefix)??"/"}).get,extraParams:{wt:bt(h),title:W,blockletMetaUrl:r,launchType:R,nftId:d,chainHost:decodeURIComponent(x),launcherUrl:n,launcherSessionId:i,onlyRequired:c}}})}else{const Q=`launch-paid-blocklet-by-${B}`,ne=new URL(window.location.href);ne.pathname=Me(((G=window==null?void 0:window.env)==null?void 0:G.apiPrefix)??"/",`/api/did/${Q}/token`),ne.searchParams.set("wt",bt(h)),ne.searchParams.set("_ek_",T),ne.searchParams.set("title",W),ne.searchParams.set("autoConnect",!1),ne.searchParams.set("blockletMetaUrl",r),R&&ne.searchParams.set("launchType",R),d&&ne.searchParams.set("nftId",d),n&&ne.searchParams.set("launcherUrl",n),i&&ne.searchParams.set("launcherSessionId",i);const{data:$e}=await An.get(ne.href);M({isConnectOpen:!0,connectData:{action:"verify-purchase-blocklet",baseUrl:new URL(r).origin,checkFn:vt.create({baseURL:new URL(r).origin}).get,extraParams:{serverDid:I.did,blockletDid:h==null?void 0:h.did,nw:$e.url}}})}},ie=async W=>{Ye.success(b("launchBlocklet.dialog.success"));const Z=Array.isArray(W)?W[W.length-1]:W;if(Z.sessionToken&&(cn(S(Z.sessionToken)),await j.refresh()),Z.setupToken&&zs(Z.setupToken),M({launching:!Z.isInstalled,isConnectOpen:!1}),Z.appDid){l(Z.appDid,Z.sessionId);const G=new URL(window.location.href);G.searchParams.set("appDid",Z.appDid),G.searchParams.set("sessionId",Z.sessionId),window.history.replaceState(null,"",G.toString())}},he=W=>{const Z=`/${I.routing.adminPath}/blocklets/${W.meta.did}/configuration`.replace(/\/+/g,"/");let G=`/launch-blocklet/complete?status=installed&name=${encodeURIComponent(p)}&accessUrl=${encodeURIComponent(Z)}&blocklet_meta_url=${r}`;const Q=g.get("fromLauncher");Q&&(G+=`&fromLauncher=${Q}`),R&&(G+=`&launchType=${R}`),x&&(G+=`&chainHost=${x}`),o(G)},_e=async W=>{if(Ae("visitBlocklet",{status:J,state:N,appDid:e}),N.visiting)return;M({visiting:!0});const Z=Ht({blocklet:W}),G=await Kt(Z);if(Fe(G)&&R!=="serverless"||C){M({visiting:!1}),setTimeout(()=>{he(W)},1e3);return}if(Fe(G)){M({visiting:!1});return}if(Mt(J,N)===!1)try{await _.post(`/api/launch/${a}`)}catch(ae){Ae("end launch failed",{error:_t(ae)})}const Q=new URL(G);Q.searchParams.set("serverUrl",un(I)),W.status!=="running"&&Q.searchParams.set("__start__","1");const ne=g.get("fromLauncher");ne&&Q.searchParams.set("fromLauncher",ne),R&&Q.searchParams.set("launchType",R),d&&Q.searchParams.set("nftId",d),x&&Q.searchParams.set("chainHost",x);const $e=Gs();$e&&Q.searchParams.set("setupToken",$e),M({nextAccessUrl:Q.href,visiting:!1}),setTimeout(()=>{Vs(),window.location.href=Q.href},1e3)},de=[b("launchBlocklet.waiting.verifying"),b("launchBlocklet.waiting.downloading"),b("launchBlocklet.waiting.extracting"),b(J==="upgrading"?"common.upgrading":"launchBlocklet.waiting.installing"),b("launchBlocklet.waiting.done")],pe=()=>{Ae("handleInstalledProgress",{status:J,state:N}),J&&(M({progressIndex:4}),v.current&&(clearTimeout(v.current),v.current=null),v.current=setTimeout(()=>{A.getBlocklet({input:{did:e,attachRuntimeInfo:!0}}).then(W=>{W.blocklet&&_e(W.blocklet)})},500))};if(fe.useEffect(()=>{f&&M({launching:!0}),m&&pe()},[m,f]),fe.useEffect(()=>{var W;if(R==="serverless"&&K===De.BlockletEvents.nftConsumed){pe();return}switch(J){case"waiting":M({progressIndex:1,statusChanged:!0});break;case"downloading":M({progressIndex:2,statusChanged:!0});break;case"installing":case"upgrading":M({progressIndex:3,statusChanged:!0});break;case"installed":if(R==="serverless"&&!rn(H))break;pe();break;case"starting":pe();break;case"running":pe();break;case"stopped":pe();break;case"corrupted":case"error":{const Z={message:H.error.message,name:H.eventName};[De.BlockletEvents.downloadFailed,De.BlockletEvents.installFailed].includes(H.eventName)?Z.action="retry":(J==="error"||J==="corrupted")&&(Z.action="view"),Ln(Z,N.installError)||(W=H==null?void 0:H.error)!=null&&W.message&&Ye.error(_t(H.error))}break}},[J,K,H]),Ae("render",{status:J,eventName:K,launchType:R,runtimeBlockletState:H,state:N}),y||j.user&&J===null||Fe(h))return P.jsx(Ue,{relative:"parent",children:P.jsx(je,{})});if(N.installError){const W={view:!t&&P.jsx(Se,{className:"bottom-button",component:Gt,to:`/blocklets/${e}/overview`,"data-cy":"view-blocklet",color:"primary",variant:"contained",children:b("launchBlocklet.viewApplication")}),retry:P.jsxs(Xs,{children:[X&&P.jsx(Se,{variant:"text",className:"bottom-button","data-cy":"go-back",disabled:N.isConnectOpen,onClick:()=>{window.location.href=X},children:b("common.back")}),P.jsxs(Se,{className:"bottom-button","data-cy":"retry-install",disabled:N.isConnectOpen,onClick:te,children:[N.isConnectOpen&&P.jsx(je,{size:16}),b("common.retry")]})]})},Z=N.installError.name?N.installError.name.replace("blocklet.",""):"installFailed";return P.jsx(Ft,{variant:"error",title:p,subTitle:P.jsxs(Ks,{children:[P.jsx("div",{children:b(`launchBlocklet.error.${Z}`)}),N.installError.message&&P.jsx("div",{className:"error-desc",children:b("common.errorMessage")+N.installError.message})]}),footer:W[N.installError.action]})}if(Mt(J,N))return Ae("alreadyExists",{status:J,state:N,runtimeBlockletState:H}),P.jsx(Ft,{variant:"info",title:b("common.reminder"),subTitle:b("launchBlocklet.alreadyExists",{name:qe.getDisplayName({meta:h},!0)}),footer:P.jsxs("div",{children:[!N.nextAccessUrl&&P.jsx(je,{size:16}),N.nextAccessUrl&&P.jsx(nn,{href:N.nextAccessUrl,"data-cy":"open-blocklet",children:b("launchBlocklet.redirect")})]})});const we=!N.launching&&!J;return P.jsxs(Hs,{children:[P.jsx("div",{className:"header",children:P.jsx(Xt,{title:b(we?"common.install":"common.installing"),subTitle:we?b("launchBlocklet.subTitle",{appName:p,serverName:I.name}):""})}),P.jsxs("div",{className:"body",children:[we&&P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"illustrations",children:[P.jsx("div",{className:"ills-block ills-block-left",children:P.jsxs("div",{className:"ills-block-inner",children:[P.jsx(jn,{className:"i-icon",blocklet:{meta:h},blockletMetaUrl:r}),P.jsx("div",{className:"i-name",children:p})]})}),P.jsx(kn,{className:"arrow-icon"}),P.jsx("div",{className:"ills-block ills-block-right",children:P.jsxs("div",{className:"ills-block-inner",children:[P.jsx("img",{width:"64",height:"64",src:Cn,alt:""}),P.jsx("div",{className:"i-name",children:I.name}),P.jsx(sn,{size:12,responsive:!1,compact:!0,did:I.did})]})})]}),N.loaded&&!m&&!N.launching&&P.jsxs(Se,{className:"bottom-button","data-cy":"start-launch",disabled:N.isConnectOpen,onClick:te,children:[N.isConnectOpen&&P.jsx(je,{size:16}),b("launchBlocklet.confirmInstall")]})]}),N.launching&&P.jsxs(Sn,{children:[P.jsx(En,{increaseSpeed:.3,messageLoop:!1,message:P.jsx(On,{steps:de,stepIndex:N.progressIndex,autoGrowth:N.progressIndex===4?1e3:4e3})}),[1,2].includes(N.progressIndex)&&P.jsx(wt,{appDid:e})]})]}),N.isConnectOpen&&P.jsx(wt,{appDid:e,visible:!1}),P.jsx(an,{open:N.isConnectOpen,popup:!0,saveConnect:!1,className:"connect",baseUrl:N.connectData.baseUrl,action:N.connectData.action,checkFn:N.connectData.checkFn,extraParams:N.connectData.extraParams,checkTimeout:10*60*1e3,webWalletUrl:Wt(I),onSuccess:ie,onClose:()=>M({isConnectOpen:!1}),locale:k,messages:{title:`${b("launchBlocklet.dialog.title")}`,scan:Bs(u,B,b),confirm:b("launchBlocklet.dialog.confirm"),success:b("launchBlocklet.dialog.success")}})]})}const Hs=be(Yt)`
|
|
56
|
+
.body {
|
|
57
|
+
align-items: center;
|
|
58
|
+
animation: fadein ease 0.3s;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.illustrations {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: row;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
align-items: start;
|
|
66
|
+
text-align: center;
|
|
67
|
+
margin-top: 16px;
|
|
68
|
+
margin-bottom: 40px;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ills-block,
|
|
73
|
+
.ills-block-inner {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
flex: 1;
|
|
80
|
+
}
|
|
81
|
+
.ills-block {
|
|
82
|
+
max-width: 220px;
|
|
83
|
+
.i-icon {
|
|
84
|
+
width: 64px;
|
|
85
|
+
height: 64px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.i-name {
|
|
89
|
+
margin-top: 16px;
|
|
90
|
+
font-weight: 400;
|
|
91
|
+
font-size: 16px;
|
|
92
|
+
color: #222222;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.i-sub-name {
|
|
96
|
+
color: #999999;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.arrow-icon {
|
|
101
|
+
align-self: start;
|
|
102
|
+
color: #c4c5ca;
|
|
103
|
+
font-size: 30px;
|
|
104
|
+
margin: 16px 0 0;
|
|
105
|
+
${g=>g.theme.breakpoints.down("md")} {
|
|
106
|
+
margin: 25px 24px 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes fadein {
|
|
111
|
+
0% {
|
|
112
|
+
opacity: 0;
|
|
113
|
+
}
|
|
114
|
+
100% {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
`,Ks=be.div`
|
|
119
|
+
line-height: 1.4em;
|
|
120
|
+
.error-desc {
|
|
121
|
+
margin-top: 8px;
|
|
122
|
+
word-wrap: break-word;
|
|
123
|
+
color: ${g=>g.theme.palette.grey[500]};
|
|
124
|
+
}
|
|
125
|
+
`,Xs=be.div`
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: space-around;
|
|
128
|
+
flex-wrap: wrap;
|
|
129
|
+
button {
|
|
130
|
+
margin: 0 10px 18px;
|
|
131
|
+
}
|
|
132
|
+
`,Ft=be(Be)`
|
|
133
|
+
.result-footer {
|
|
134
|
+
height: auto;
|
|
135
|
+
}
|
|
136
|
+
`;function yt({onClickNext:g,handleDescEle:b,showPageHeader:k}){const A=Vt(),[I,j]=fe.useState(null),[_,o]=fe.useState(!1),{t:y}=ze(),{info:h,api:u}=Ve(),{loading:e,meta:a,isRunning:s,isInstalled:r,isInstalling:t,appDid:l,isExternal:n}=Ge(),[i,f]=fe.useState(!0),m=fe.useMemo(()=>n?I?`${new URL(I).origin}${zt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`:"":`/blocklets/${l}/overview`,[I,n,l]),p=()=>{const c=new URLSearchParams(window.location.search);i||c.set("onlyRequired","1"),A(`/launch-blocklet/install?${c.toString()}`)},R=g||p,x=async()=>{try{o(!0);const{blocklet:c}=await u.getBlocklet({input:{did:a.did,attachRuntimeInfo:!0}}),d=Ht({blocklet:c}),v=await Kt(d);if(!v&&Fe(v)){j(null);return}j(new URL(v).href)}catch(c){Ye.error(c.message)}finally{o(!1)}};if(fe.useEffect(()=>{if(!e){if(t){p();return}(s||r&&n)&&x()}},[s,n,r,t]),r){const c=s?"alreadyRunning":"alreadyInstalled";return P.jsx(Be,{variant:"info",title:y("common.reminder"),subTitle:y(`launchBlocklet.${c}`,{name:qe.getDisplayName({meta:a},!0)}),footer:P.jsxs(Ys,{children:[P.jsx(Se,{loading:!m,"data-cy":"view-blocklet",component:n?void 0:Gt,to:m,href:m,variant:s?"outlined":"contained",color:"primary",children:y("launchBlocklet.viewApplication")}),s&&P.jsx(Se,{loading:_,className:"last-button",disabled:!I,href:I,"data-cy":"open-blocklet",children:y("common.open")})]})})}return h?fn.hasStartEngine(a)?P.jsxs(qt,{children:[k&&P.jsx(Xt,{title:y("launchBlocklet.introduction"),subTitle:y("launchBlocklet.welcome")}),P.jsx(In,{installRelated:i,onChangeInstallRelated:f,meta:a,onClickNext:R,handleDescEle:b})]}):P.jsx(qt,{className:"center",children:P.jsx(Be,{variant:"error",subTitle:y("launchBlocklet.error.resourceBlocklet")})}):P.jsx(Ue,{relative:"parent",children:P.jsx(je,{})})}yt.propTypes={onClickNext:Pe.func,handleDescEle:Pe.node,showPageHeader:Pe.bool};yt.defaultProps={onClickNext:null,handleDescEle:"",showPageHeader:!0};const qt=be.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
align-items: center;
|
|
140
|
+
width: 100%;
|
|
141
|
+
height: 100%;
|
|
142
|
+
&.center {
|
|
143
|
+
justify-content: center;
|
|
144
|
+
}
|
|
145
|
+
`,Ys=be.div`
|
|
146
|
+
.MuiButton-root {
|
|
147
|
+
${g=>g.theme.breakpoints.up("md")} {
|
|
148
|
+
min-width: 200px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.last-button {
|
|
152
|
+
margin-left: ${g=>g.theme.spacing(2)};
|
|
153
|
+
}
|
|
154
|
+
`;function da(){const g=mn(i=>i.breakpoints.down("md")),{t:b,locale:k}=ze(),{info:A}=Ve(),I=Wt(A),{serverUrl:j,fromLauncher:_,meta:o,isFree:y,loading:h,error:u,storeUrl:e}=Ge(),a=Me(hn(),"/launch-blocklet"),s=[{key:"install",name:b("launchBlocklet.steps.installApp"),path:Me(a,"install")},{key:"setup",name:b("setup.steps.launchApp")}];let r=[{key:"agreement",name:b("launchBlocklet.introduction"),path:Me(a,"agreement")},...s];const t=()=>{j&&window.open(j)};let l=P.jsx(Ut,{className:`${j?"logo-can-click":""}`,children:P.jsx(Et,{onClick:t,logo:g?P.jsx(Rt,{width:"32",height:"32"}):P.jsx(xt,{width:"128",height:"48"})})});_&&(r=[{key:"purchase-space",name:b("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:b("launchBlocklet.steps.prepareSpace")},...s],l=P.jsx(Ut,{className:`${j?"logo-can-click":""}`,children:P.jsx(Et,{logo:g?P.jsx(Rt,{onClick:t,width:"32",height:"32"}):P.jsx(xt,{onClick:t,width:"128",height:"48"}),previousData:{logo:g?P.jsx(Zt,{width:"32",height:"32"}):P.jsx(Jt,{width:"145",height:"48"})}})}));const n={meta:o,isFree:y};return P.jsx(xn,{steps:r,children:P.jsx(Rn,{locale:k,loading:h,blockletMeta:{...o,isFree:y},useOfSkeleton:!1,navLogo:l,headerEndAddons:P.jsx(dn,{webWalletUrl:I,SessionContext:pn}),pcWidth:"80%",style:{height:"100%"},logoUrl:o&&o.logo?gn({did:o.did,version:o.version,baseUrl:e,logoPath:o.logo}):null,children:P.jsxs(Js,{children:[P.jsx(yn,{styles:Zs}),h&&P.jsx(Ue,{relative:"parent",children:P.jsx(je,{})}),!h&&u&&P.jsx(Ue,{relative:"parent",children:P.jsx(vn,{style:{wordBreak:"break-all"},severity:"error",children:u})}),!h&&!u&&P.jsxs(bn,{children:[P.jsx(Ce,{path:"agreement",element:P.jsx(yt,{})}),P.jsx(Ce,{path:"install",element:P.jsx(Ws,{})}),P.jsx(Ce,{path:"complete",element:P.jsx(Vn,{blocklet:n})}),P.jsx(Ce,{path:"*",element:P.jsx(_n,{to:`agreement${window.location.search}`,replace:!0})})]})]})})})}const Zs=wn`
|
|
155
|
+
html,
|
|
156
|
+
body,
|
|
157
|
+
#root,
|
|
158
|
+
#root > .wrapper {
|
|
159
|
+
height: 100%;
|
|
160
|
+
}
|
|
161
|
+
`,Js=be.div`
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: 100%;
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
justify-content: flex-start;
|
|
167
|
+
align-items: flex-start;
|
|
168
|
+
|
|
169
|
+
.bottom-button {
|
|
170
|
+
min-width: 200px;
|
|
171
|
+
}
|
|
172
|
+
`,Ut=be.div`
|
|
173
|
+
margin-top: -1px;
|
|
174
|
+
&.logo-can-click {
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
`;export{da as default};
|