@microsoft/cmr-cli 0.32.3 → 0.34.0
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/README.md +37 -14
- package/THIRD-PARTY-NOTICES.txt +287 -30
- package/dist/Add-4RULNL6A.js +11 -0
- package/dist/AddConfig-D2DCR3JH.js +12 -0
- package/dist/AddConnector-5ZR5AF6H.js +19 -0
- package/dist/AddDeployment-7U4I5IC4.js +11 -0
- package/dist/AddDeploymentBinding-BZVRRZ7H.js +18 -0
- package/dist/AddRayfin-45ASHNIX.js +87 -0
- package/dist/Alter-36TSNZ4M.js +11 -0
- package/dist/{AuthStatus-WCZYGI5G.js → AuthStatus-W5ZHOAVD.js} +2 -2
- package/dist/AuthSwitch-7HRPTGEG.js +13 -0
- package/dist/Bin.js +1 -1
- package/dist/BuildMaafApp-TLQXOVQC.js +11 -0
- package/dist/Clear-X55BZKYF.js +11 -0
- package/dist/Cli-EEO7V3MZ.js +47 -0
- package/dist/CloneMaafApp-4EHW3HE2.js +12 -0
- package/dist/CreateMaafApp-VNXWCAP4.js +23 -0
- package/dist/CreateMaafProject-WVBNZPVL.js +11 -0
- package/dist/DeleteMaafApp-UGUKARMO.js +11 -0
- package/dist/DeployMaafApp-GJO567TK.js +8 -0
- package/dist/DeployMaafProject-4TSW2SFJ.js +11 -0
- package/dist/DeploymentApprovals-SZKNJT76.js +11 -0
- package/dist/Dev-ZD3L6WYY.js +15 -0
- package/dist/{EnvironmentVariableAuthenticationProvider-EBRBQ5I2.js → EnvironmentVariableAuthenticationProvider-EURTERVX.js} +2 -2
- package/dist/FeatureSettings-GG7JGFIY.js +11 -0
- package/dist/{GenerateCode-UQCHTRGP.js → GenerateCode-PNYC45SK.js} +2 -2
- package/dist/GetMaafBuildStatus-UTPVWF5L.js +11 -0
- package/dist/GetMaafProjectDeployStatus-PLK52YC4.js +12 -0
- package/dist/{GetSettings-MVVEXMJC.js → GetSettings-RLRDJEC7.js} +2 -2
- package/dist/InfoMaafApp-CTB6IPRU.js +13 -0
- package/dist/InfoMaafProject-TULH566X.js +11 -0
- package/dist/Init-TYWP2E6U.js +11 -0
- package/dist/ListConnectorActions-UQS6D4UN.js +11 -0
- package/dist/ListConnectors-OCDO64AT.js +11 -0
- package/dist/ListDeployments-PDLJ3IEI.js +11 -0
- package/dist/ListMaafApps-UAWTTCGB.js +11 -0
- package/dist/ListMaafProjects-T3Q2GEDX.js +11 -0
- package/dist/{ListSchema-QKVHVPHB.js → ListSchema-G673LK5Q.js} +2 -2
- package/dist/{ListSettings-IIA5OGMP.js → ListSettings-EXCK5ZS6.js} +2 -2
- package/dist/{Login-BT6UTPCZ.js → Login-XZATPT4L.js} +2 -2
- package/dist/{Logout-FBJE35Q5.js → Logout-2XM4IMZF.js} +2 -2
- package/dist/{MockFetch-LQLQGTNT.js → MockFetch-LW3KYEGC.js} +2 -2
- package/dist/NodeMsalAuthenticationProvider-ALMFNUEV.js +17 -0
- package/dist/Pack-RH4D4C7W.js +8 -0
- package/dist/PackProject-5DUWSBFA.js +14 -0
- package/dist/PlayMaafApp-5BXGXE6O.js +8 -0
- package/dist/ProjectApprovals-K3JF6D72.js +13 -0
- package/dist/ProjectRoleAssignments-7IUDEVBN.js +11 -0
- package/dist/RefreshDataSource-CMHDF2GP.js +11 -0
- package/dist/RefreshGitAuth-4TRO5IOQ.js +11 -0
- package/dist/Remove-KZD3SDDC.js +11 -0
- package/dist/{RemoveDataSource-RRND46QZ.js → RemoveDataSource-C7UXOUNH.js} +3 -3
- package/dist/RemoveDeployment-ZQJWQPD6.js +11 -0
- package/dist/ServicePrincipalAuthenticationProvider-3NPJTLF5.js +11 -0
- package/dist/SetSetting-3XO6HPG7.js +11 -0
- package/dist/{SetSetting-Q7EQNOTI.js → SetSetting-ZW7F43GC.js} +2 -2
- package/dist/ShareLinkCreate-JXPW5H7A.js +11 -0
- package/dist/ShareLinkList-ICYPRIQV.js +11 -0
- package/dist/ShareLinkRevoke-JVMQZF7K.js +11 -0
- package/dist/ShareList-YGSTFMVE.js +11 -0
- package/dist/ShareMaafApp-ZCY72WHK.js +11 -0
- package/dist/{TelemetrySettings-XCT73DEI.js → TelemetrySettings-P6WYWGW4.js} +2 -2
- package/dist/UnshareMaafApp-N4UR6Q4A.js +11 -0
- package/dist/{chunk-QLK3ZVWP.js → chunk-2SRFM7D6.js} +2 -2
- package/dist/chunk-3YCPXSCO.js +11 -0
- package/dist/chunk-45EZLDPE.js +147 -0
- package/dist/{chunk-2LKCCYRF.js → chunk-4PI5THLA.js} +2 -2
- package/dist/{chunk-TMYOZDLM.js → chunk-6KOL66SF.js} +2 -2
- package/dist/{chunk-2VJIWD7V.js → chunk-74RNALDY.js} +2 -2
- package/dist/{chunk-SIEI2EB5.js → chunk-7AEULMP2.js} +2 -2
- package/dist/chunk-7LAMG4KK.js +12 -0
- package/dist/chunk-A5INC5TY.js +11 -0
- package/dist/chunk-AICYZHWK.js +11 -0
- package/dist/chunk-B4NTYKGH.js +12 -0
- package/dist/chunk-BAQPANON.js +11 -0
- package/dist/{chunk-DKSLWH4O.js → chunk-BMOTNINY.js} +6 -6
- package/dist/{chunk-OUKOEUZA.js → chunk-C7UWPNC3.js} +1 -1
- package/dist/{chunk-Q3ONTUZ7.js → chunk-CLY3OASM.js} +2 -2
- package/dist/chunk-DLUQVMUE.js +11 -0
- package/dist/{chunk-KT2SUHGM.js → chunk-ENDUKF4E.js} +2 -2
- package/dist/{chunk-UEZV46GZ.js → chunk-FESGOCAP.js} +7 -7
- package/dist/{chunk-BRRT2E75.js → chunk-GO22IDEN.js} +6 -6
- package/dist/{chunk-WTTK2GTG.js → chunk-HHW4SKVU.js} +2 -2
- package/dist/{chunk-PEZMQ2A3.js → chunk-HZGDQAKA.js} +2 -2
- package/dist/{chunk-HSNRWBA6.js → chunk-IMVZRBSQ.js} +2 -2
- package/dist/chunk-K77VBHFP.js +12 -0
- package/dist/{chunk-DGUO74I3.js → chunk-KD4NQIYX.js} +3 -3
- package/dist/{chunk-3E7QQ2BR.js → chunk-KN66FSQK.js} +2 -2
- package/dist/{chunk-UXKJNXTZ.js → chunk-KPKJZKWW.js} +2 -2
- package/dist/chunk-NMZFJESU.js +12 -0
- package/dist/{chunk-PZIEJEF5.js → chunk-NNYOT7IR.js} +2 -2
- package/dist/{chunk-EFY2BSWB.js → chunk-OH3TCDCC.js} +2 -2
- package/dist/{chunk-XIX2O22O.js → chunk-OHQNTYJG.js} +2 -2
- package/dist/{chunk-KKC5ZK4D.js → chunk-PYPCPMCR.js} +21 -21
- package/dist/{chunk-ZB6MB7GZ.js → chunk-R2IECDVU.js} +3 -3
- package/dist/{chunk-ADRQC63G.js → chunk-RA74M3YD.js} +2 -2
- package/dist/{chunk-4XKA5APP.js → chunk-RSHOMYG6.js} +228 -227
- package/dist/chunk-UHNOINTO.js +11 -0
- package/dist/{chunk-4U53RYJJ.js → chunk-WS6TGUH7.js} +2 -2
- package/dist/{chunk-6EF722GY.js → chunk-XC7Y6E2C.js} +11 -11
- package/dist/chunk-XJXWNOJR.js +11 -0
- package/dist/chunk-Y2D37EFX.js +13 -0
- package/dist/{chunk-RFLXPXBN.js → chunk-YEWRCEPT.js} +2 -2
- package/dist/chunk-Z4UX3JOS.js +12 -0
- package/dist/chunk-ZBQT5XZJ.js +32 -0
- package/dist/chunk-ZGBTKTTU.js +11 -0
- package/dist/{chunk-GE3UFHZ5.js → chunk-ZLK2CMMJ.js} +23 -23
- package/dist/chunk-ZWJ5T5VI.js +11 -0
- package/dist/node-PLZPXPD7.js +29 -0
- package/dist/typescript-6OTSQQEW.js +458 -0
- package/package.json +5 -4
- package/dist/Add-FU57YE5G.js +0 -11
- package/dist/AddConfig-CI7KNLIG.js +0 -12
- package/dist/AddConnector-WH4IU3ND.js +0 -16
- package/dist/AddDeployment-GWFCPAL5.js +0 -11
- package/dist/AddDeploymentBinding-RFLI6DKH.js +0 -18
- package/dist/AddRayfin-VRCFEOIL.js +0 -38
- package/dist/Alter-JFFT5JOA.js +0 -11
- package/dist/AuthSwitch-XJMG7IUR.js +0 -13
- package/dist/BuildMaafApp-7AUZHYOQ.js +0 -11
- package/dist/Clear-7B7CDIPV.js +0 -11
- package/dist/Cli-XZ4SJKBZ.js +0 -47
- package/dist/CloneMaafApp-7W246RZA.js +0 -12
- package/dist/CreateMaafApp-6MSPHUU4.js +0 -22
- package/dist/CreateMaafProject-JKMF5TH3.js +0 -11
- package/dist/DeleteMaafApp-TFGWGJO3.js +0 -11
- package/dist/DeployMaafApp-K2APWFOD.js +0 -8
- package/dist/DeployMaafProject-6WRKGIIW.js +0 -11
- package/dist/DeploymentApprovals-WTXBXCKE.js +0 -11
- package/dist/Dev-CIEWFRXR.js +0 -15
- package/dist/FeatureSettings-77LZQSKD.js +0 -11
- package/dist/GetMaafBuildStatus-6ZSLIZCH.js +0 -11
- package/dist/GetMaafProjectDeployStatus-NZEMVQGJ.js +0 -12
- package/dist/InfoMaafApp-7Z6OJCHD.js +0 -13
- package/dist/InfoMaafProject-SQYB736C.js +0 -11
- package/dist/Init-PBH2IXVK.js +0 -11
- package/dist/ListConnectorActions-UERYZ2C7.js +0 -11
- package/dist/ListConnectors-2FUTJMHY.js +0 -11
- package/dist/ListDeployments-4YWCHVKF.js +0 -11
- package/dist/ListMaafApps-ZATO77G3.js +0 -11
- package/dist/ListMaafProjects-GNUXZSYL.js +0 -11
- package/dist/NodeMsalAuthenticationProvider-5TJFMHR4.js +0 -17
- package/dist/Pack-TSFHSTB5.js +0 -8
- package/dist/PackProject-T575KJQ4.js +0 -14
- package/dist/PlayMaafApp-74TQEAO5.js +0 -8
- package/dist/ProjectApprovals-5KLYEM7V.js +0 -13
- package/dist/ProjectRoleAssignments-AI2FQ2VX.js +0 -11
- package/dist/RefreshDataSource-VARFN3IV.js +0 -11
- package/dist/RefreshGitAuth-DC5NAZBJ.js +0 -11
- package/dist/Remove-MCQZVI3K.js +0 -11
- package/dist/RemoveDeployment-STNFNNZF.js +0 -11
- package/dist/ServicePrincipalAuthenticationProvider-7RBHTYYY.js +0 -11
- package/dist/SetSetting-CEH44OT3.js +0 -11
- package/dist/ShareLinkCreate-ZUVHUQLH.js +0 -11
- package/dist/ShareLinkList-IEYU6NZW.js +0 -11
- package/dist/ShareLinkRevoke-22RFGOFJ.js +0 -11
- package/dist/ShareList-6UWIHPBM.js +0 -11
- package/dist/ShareMaafApp-SFNOOMOD.js +0 -11
- package/dist/UnshareMaafApp-TU7U3LQ3.js +0 -11
- package/dist/chunk-2LDU3F6O.js +0 -11
- package/dist/chunk-5MHBEEMZ.js +0 -11
- package/dist/chunk-A4PVXTJS.js +0 -13
- package/dist/chunk-BA52TY55.js +0 -12
- package/dist/chunk-FHE3OXIP.js +0 -11
- package/dist/chunk-HOIFXUTG.js +0 -11
- package/dist/chunk-NYPHWF7Q.js +0 -32
- package/dist/chunk-PLFDUGBA.js +0 -12
- package/dist/chunk-RDXQ3ZPT.js +0 -11
- package/dist/chunk-TXMTKOEJ.js +0 -12
- package/dist/chunk-WV7D7PTW.js +0 -12
- package/dist/chunk-WWVAS3DS.js +0 -11
- package/dist/chunk-YRPTITKD.js +0 -12
- package/dist/rayfin-pack-HOUOLOHQ.js +0 -164
package/dist/chunk-NYPHWF7Q.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as dt,b as le,c as _u,d as Ee,e as pe,f as de,g as me,h as Be,i as ge,j as he,k as ye}from"./chunk-6EF722GY.js";import{a as Ce}from"./chunk-OL6CTXQR.js";import{a as pt}from"./chunk-TYRVM4PP.js";import{Ob as Fe,b as ce,w as K,z as B}from"./chunk-4XKA5APP.js";import{m as fe}from"./chunk-2LDU3F6O.js";import{a as Nu}from"./chunk-FHE3OXIP.js";import{k as Ae}from"./chunk-OUKOEUZA.js";import{a as Ou}from"./chunk-HOIFXUTG.js";import{C as oe,D as se,I as X,K as Fu,a as xu,e as H,l as ee,n as te,o as ne,q as re,r as ie,s as ae,w as De,x as $u}from"./chunk-KKC5ZK4D.js";import{b as tu,d as ku}from"./chunk-UT667QSU.js";var be=tu((wn,Cu)=>{Cu.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;Cu.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;Cu.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/});var Mu=tu((Pn,Se)=>{var Iu=be();Se.exports={isSpaceSeparator(u){return typeof u=="string"&&Iu.Space_Separator.test(u)},isIdStartChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u==="$"||u==="_"||Iu.ID_Start.test(u))},isIdContinueChar(u){return typeof u=="string"&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||u==="$"||u==="_"||u==="\u200C"||u==="\u200D"||Iu.ID_Continue.test(u))},isDigit(u){return typeof u=="string"&&/[0-9]/.test(u)},isHexDigit(u){return typeof u=="string"&&/[0-9A-Fa-f]/.test(u)}}});var $e=tu((bn,xe)=>{var N=Mu(),Tu,O,J,lu,W,R,x,Vu,ru;xe.exports=function(e,n){Tu=String(e),O="start",J=[],lu=0,W=1,R=0,x=void 0,Vu=void 0,ru=void 0;do x=gt(),wt[O]();while(x.type!=="eof");return typeof n=="function"?ju({"":ru},"",n):ru};function ju(u,e,n){let t=u[e];if(t!=null&&typeof t=="object")if(Array.isArray(t))for(let i=0;i<t.length;i++){let a=String(i),D=ju(t,a,n);D===void 0?delete t[a]:Object.defineProperty(t,a,{value:D,writable:!0,enumerable:!0,configurable:!0})}else for(let i in t){let a=ju(t,i,n);a===void 0?delete t[i]:Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,configurable:!0})}return n.call(u,e,t)}var F,s,nu,V,f;function gt(){for(F="default",s="",nu=!1,V=1;;){f=z();let u=ke[F]();if(u)return u}}function z(){if(Tu[lu])return String.fromCodePoint(Tu.codePointAt(lu))}function r(){let u=z();return u===`
|
|
8
|
-
`?(W++,R=0):u?R+=u.length:R++,u&&(lu+=u.length),u}var ke={default(){switch(f){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
|
9
|
-
`:case"\r":case"\u2028":case"\u2029":r();return;case"/":r(),F="comment";return;case void 0:return r(),w("eof")}if(N.isSpaceSeparator(f)){r();return}return ke[O]()},comment(){switch(f){case"*":r(),F="multiLineComment";return;case"/":r(),F="singleLineComment";return}throw P(r())},multiLineComment(){switch(f){case"*":r(),F="multiLineCommentAsterisk";return;case void 0:throw P(r())}r()},multiLineCommentAsterisk(){switch(f){case"*":r();return;case"/":r(),F="default";return;case void 0:throw P(r())}r(),F="multiLineComment"},singleLineComment(){switch(f){case`
|
|
10
|
-
`:case"\r":case"\u2028":case"\u2029":r(),F="default";return;case void 0:return r(),w("eof")}r()},value(){switch(f){case"{":case"[":return w("punctuator",r());case"n":return r(),Z("ull"),w("null",null);case"t":return r(),Z("rue"),w("boolean",!0);case"f":return r(),Z("alse"),w("boolean",!1);case"-":case"+":r()==="-"&&(V=-1),F="sign";return;case".":s=r(),F="decimalPointLeading";return;case"0":s=r(),F="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":s=r(),F="decimalInteger";return;case"I":return r(),Z("nfinity"),w("numeric",1/0);case"N":return r(),Z("aN"),w("numeric",NaN);case'"':case"'":nu=r()==='"',s="",F="string";return}throw P(r())},identifierNameStartEscape(){if(f!=="u")throw P(r());r();let u=Lu();switch(u){case"$":case"_":break;default:if(!N.isIdStartChar(u))throw ve();break}s+=u,F="identifierName"},identifierName(){switch(f){case"$":case"_":case"\u200C":case"\u200D":s+=r();return;case"\\":r(),F="identifierNameEscape";return}if(N.isIdContinueChar(f)){s+=r();return}return w("identifier",s)},identifierNameEscape(){if(f!=="u")throw P(r());r();let u=Lu();switch(u){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!N.isIdContinueChar(u))throw ve();break}s+=u,F="identifierName"},sign(){switch(f){case".":s=r(),F="decimalPointLeading";return;case"0":s=r(),F="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":s=r(),F="decimalInteger";return;case"I":return r(),Z("nfinity"),w("numeric",V*(1/0));case"N":return r(),Z("aN"),w("numeric",NaN)}throw P(r())},zero(){switch(f){case".":s+=r(),F="decimalPoint";return;case"e":case"E":s+=r(),F="decimalExponent";return;case"x":case"X":s+=r(),F="hexadecimal";return}return w("numeric",V*0)},decimalInteger(){switch(f){case".":s+=r(),F="decimalPoint";return;case"e":case"E":s+=r(),F="decimalExponent";return}if(N.isDigit(f)){s+=r();return}return w("numeric",V*Number(s))},decimalPointLeading(){if(N.isDigit(f)){s+=r(),F="decimalFraction";return}throw P(r())},decimalPoint(){switch(f){case"e":case"E":s+=r(),F="decimalExponent";return}if(N.isDigit(f)){s+=r(),F="decimalFraction";return}return w("numeric",V*Number(s))},decimalFraction(){switch(f){case"e":case"E":s+=r(),F="decimalExponent";return}if(N.isDigit(f)){s+=r();return}return w("numeric",V*Number(s))},decimalExponent(){switch(f){case"+":case"-":s+=r(),F="decimalExponentSign";return}if(N.isDigit(f)){s+=r(),F="decimalExponentInteger";return}throw P(r())},decimalExponentSign(){if(N.isDigit(f)){s+=r(),F="decimalExponentInteger";return}throw P(r())},decimalExponentInteger(){if(N.isDigit(f)){s+=r();return}return w("numeric",V*Number(s))},hexadecimal(){if(N.isHexDigit(f)){s+=r(),F="hexadecimalInteger";return}throw P(r())},hexadecimalInteger(){if(N.isHexDigit(f)){s+=r();return}return w("numeric",V*Number(s))},string(){switch(f){case"\\":r(),s+=ht();return;case'"':if(nu)return r(),w("string",s);s+=r();return;case"'":if(!nu)return r(),w("string",s);s+=r();return;case`
|
|
11
|
-
`:case"\r":throw P(r());case"\u2028":case"\u2029":Pt(f);break;case void 0:throw P(r())}s+=r()},start(){switch(f){case"{":case"[":return w("punctuator",r())}F="value"},beforePropertyName(){switch(f){case"$":case"_":s=r(),F="identifierName";return;case"\\":r(),F="identifierNameStartEscape";return;case"}":return w("punctuator",r());case'"':case"'":nu=r()==='"',F="string";return}if(N.isIdStartChar(f)){s+=r(),F="identifierName";return}throw P(r())},afterPropertyName(){if(f===":")return w("punctuator",r());throw P(r())},beforePropertyValue(){F="value"},afterPropertyValue(){switch(f){case",":case"}":return w("punctuator",r())}throw P(r())},beforeArrayValue(){if(f==="]")return w("punctuator",r());F="value"},afterArrayValue(){switch(f){case",":case"]":return w("punctuator",r())}throw P(r())},end(){throw P(r())}};function w(u,e){return{type:u,value:e,line:W,column:R}}function Z(u){for(let e of u){if(z()!==e)throw P(r());r()}}function ht(){switch(z()){case"b":return r(),"\b";case"f":return r(),"\f";case"n":return r(),`
|
|
12
|
-
`;case"r":return r(),"\r";case"t":return r()," ";case"v":return r(),"\v";case"0":if(r(),N.isDigit(z()))throw P(r());return"\0";case"x":return r(),yt();case"u":return r(),Lu();case`
|
|
13
|
-
`:case"\u2028":case"\u2029":return r(),"";case"\r":return r(),z()===`
|
|
14
|
-
`&&r(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw P(r());case void 0:throw P(r())}return r()}function yt(){let u="",e=z();if(!N.isHexDigit(e)||(u+=r(),e=z(),!N.isHexDigit(e)))throw P(r());return u+=r(),String.fromCodePoint(parseInt(u,16))}function Lu(){let u="",e=4;for(;e-- >0;){let n=z();if(!N.isHexDigit(n))throw P(r());u+=r()}return String.fromCodePoint(parseInt(u,16))}var wt={start(){if(x.type==="eof")throw Q();Ru()},beforePropertyName(){switch(x.type){case"identifier":case"string":Vu=x.value,O="afterPropertyName";return;case"punctuator":fu();return;case"eof":throw Q()}},afterPropertyName(){if(x.type==="eof")throw Q();O="beforePropertyValue"},beforePropertyValue(){if(x.type==="eof")throw Q();Ru()},beforeArrayValue(){if(x.type==="eof")throw Q();if(x.type==="punctuator"&&x.value==="]"){fu();return}Ru()},afterPropertyValue(){if(x.type==="eof")throw Q();switch(x.value){case",":O="beforePropertyName";return;case"}":fu()}},afterArrayValue(){if(x.type==="eof")throw Q();switch(x.value){case",":O="beforeArrayValue";return;case"]":fu()}},end(){}};function Ru(){let u;switch(x.type){case"punctuator":switch(x.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=x.value;break}if(ru===void 0)ru=u;else{let e=J[J.length-1];Array.isArray(e)?e.push(u):Object.defineProperty(e,Vu,{value:u,writable:!0,enumerable:!0,configurable:!0})}if(u!==null&&typeof u=="object")J.push(u),Array.isArray(u)?O="beforeArrayValue":O="beforePropertyName";else{let e=J[J.length-1];e==null?O="end":Array.isArray(e)?O="afterArrayValue":O="afterPropertyValue"}}function fu(){J.pop();let u=J[J.length-1];u==null?O="end":Array.isArray(u)?O="afterArrayValue":O="afterPropertyValue"}function P(u){return Eu(u===void 0?`JSON5: invalid end of input at ${W}:${R}`:`JSON5: invalid character '${Ne(u)}' at ${W}:${R}`)}function Q(){return Eu(`JSON5: invalid end of input at ${W}:${R}`)}function ve(){return R-=5,Eu(`JSON5: invalid identifier character at ${W}:${R}`)}function Pt(u){console.warn(`JSON5: '${Ne(u)}' in strings is not valid ECMAScript; consider escaping`)}function Ne(u){let e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[u])return e[u];if(u<" "){let n=u.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return u}function Eu(u){let e=new SyntaxError(u);return e.lineNumber=W,e.columnNumber=R,e}});var _e=tu((Sn,Oe)=>{var Ju=Mu();Oe.exports=function(e,n,t){let i=[],a="",D,c,p="",l;if(n!=null&&typeof n=="object"&&!Array.isArray(n)&&(t=n.space,l=n.quote,n=n.replacer),typeof n=="function")c=n;else if(Array.isArray(n)){D=[];for(let C of n){let h;typeof C=="string"?h=C:(typeof C=="number"||C instanceof String||C instanceof Number)&&(h=String(C)),h!==void 0&&D.indexOf(h)<0&&D.push(h)}}return t instanceof Number?t=Number(t):t instanceof String&&(t=String(t)),typeof t=="number"?t>0&&(t=Math.min(10,Math.floor(t)),p=" ".substr(0,t)):typeof t=="string"&&(p=t.substr(0,10)),g("",{"":e});function g(C,h){let o=h[C];switch(o!=null&&(typeof o.toJSON5=="function"?o=o.toJSON5(C):typeof o.toJSON=="function"&&(o=o.toJSON(C))),c&&(o=c.call(h,C,o)),o instanceof Number?o=Number(o):o instanceof String?o=String(o):o instanceof Boolean&&(o=o.valueOf()),o){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof o=="string")return S(o,!1);if(typeof o=="number")return String(o);if(typeof o=="object")return Array.isArray(o)?yu(o):M(o)}function S(C){let h={"'":.1,'"':.2},o={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},m="";for(let y=0;y<C.length;y++){let k=C[y];switch(k){case"'":case'"':h[k]++,m+=k;continue;case"\0":if(Ju.isDigit(C[y+1])){m+="\\x00";continue}}if(o[k]){m+=o[k];continue}if(k<" "){let U=k.charCodeAt(0).toString(16);m+="\\x"+("00"+U).substring(U.length);continue}m+=k}let E=l||Object.keys(h).reduce((y,k)=>h[y]<h[k]?y:k);return m=m.replace(new RegExp(E,"g"),o[E]),E+m+E}function M(C){if(i.indexOf(C)>=0)throw TypeError("Converting circular structure to JSON5");i.push(C);let h=a;a=a+p;let o=D||Object.keys(C),m=[];for(let y of o){let k=g(y,C);if(k!==void 0){let U=L(y)+":";p!==""&&(U+=" "),U+=k,m.push(U)}}let E;if(m.length===0)E="{}";else{let y;if(p==="")y=m.join(","),E="{"+y+"}";else{let k=`,
|
|
15
|
-
`+a;y=m.join(k),E=`{
|
|
16
|
-
`+a+y+`,
|
|
17
|
-
`+h+"}"}}return i.pop(),a=h,E}function L(C){if(C.length===0)return S(C,!0);let h=String.fromCodePoint(C.codePointAt(0));if(!Ju.isIdStartChar(h))return S(C,!0);for(let o=h.length;o<C.length;o++)if(!Ju.isIdContinueChar(String.fromCodePoint(C.codePointAt(o))))return S(C,!0);return C}function yu(C){if(i.indexOf(C)>=0)throw TypeError("Converting circular structure to JSON5");i.push(C);let h=a;a=a+p;let o=[];for(let E=0;E<C.length;E++){let y=g(String(E),C);o.push(y!==void 0?y:"null")}let m;if(o.length===0)m="[]";else if(p==="")m="["+o.join(",")+"]";else{let E=`,
|
|
18
|
-
`+a,y=o.join(E);m=`[
|
|
19
|
-
`+a+y+`,
|
|
20
|
-
`+h+"]"}return i.pop(),a=h,m}}});var Me=tu((vn,Ie)=>{var bt=$e(),St=_e(),vt={parse:bt,stringify:St};Ie.exports=vt});import*as d from"node:fs/promises";import*as A from"node:path";var we="0.0",mt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/,Pe=H.object({appId:H.string().regex(mt),path:H.string()}).refine(({appId:u,path:e})=>e===`apps/${u}`,{message:"Packed app path must be the portable relative path apps/<appId>.",path:["path"]}),Bt=H.object({cliVersion:H.string(),manifestVersion:H.literal(we),apps:H.array(Pe)});var ct=ku(Me(),1);import*as j from"node:path";var pu={"@microsoft/cmr-apps/data":"@microsoft/cmr-functions/data","@microsoft/managed-apps/data":"@microsoft/cmr-functions/data"},Re="@config/dataSources";async function Te(u){let{projectRoot:e,functions:n}=u;if(n.length===0)return new Map;let t=await import("esbuild").catch(a=>{throw new K(`esbuild is required to pack functions but could not be loaded: ${a.message}`)}),i=await Promise.all(n.map(async a=>{let c=(await t.build({entryPoints:[a.absPath],bundle:!0,write:!1,format:"esm",platform:"neutral",target:"es2022",external:[...Object.values(pu),Re],alias:pu,plugins:[kt(e),Nt(e)],logLevel:"silent"})).outputFiles?.[0];if(!c)throw new K(`Failed to bundle function ${a.relPath}: esbuild produced no output`);return[a.relPath,c.text]}));return new Map(i)}function kt(u){let e=j.resolve(u,"generated/dataSources.ts");return{name:"external-data-sources",setup(n){n.onResolve({filter:/(^|\/)dataSources$/},t=>!t.path.startsWith(".")||j.resolve(j.dirname(t.importer),t.path)+".ts"!==e?null:{path:Re,external:!0})}}}function Nt(u){let e=j.resolve(u,"generated");return{name:"allowlist-imports",setup(n){n.onResolve({filter:/.*/},t=>{if(t.kind==="entry-point")return null;if(t.path.startsWith(".")){let i=j.resolve(j.dirname(t.importer),t.path);return i===e||i.startsWith(e+j.sep)?null:{errors:[{text:`Relative import '${t.path}' is outside the allowed 'generated/' folder`}]}}return pu[t.path]?null:{errors:[{text:`Import '${t.path}' is not on the allowlist. Allowed: relative imports into 'generated/' and ${Object.keys(pu).map(i=>`'${i}'`).join(", ")}.`}]}})}}}var Le=ku(dt(),1);import*as du from"node:fs/promises";import*as je from"node:path";var zu="functions.zip",Ve={archive:"zip",compression:"deflate"};async function Je(u){let e=[];return await ze(u,"",e),e.sort((n,t)=>n.relPath.localeCompare(t.relPath)),e}async function ze(u,e,n){let t=await du.readdir(u,{withFileTypes:!0});for(let i of t){let a=e?`${e}/${i.name}`:i.name,D=je.join(u,i.name);i.isDirectory()?await ze(D,a,n):i.isFile()&&xt(i.name)&&n.push({relPath:a,absPath:D})}}function xt(u){return u.endsWith(".ts")&&!u.endsWith(".d.ts")&&!u.endsWith(".test.ts")&&!u.endsWith(".spec.ts")}async function qe(u){let e;try{e=await du.stat(u)}catch{throw new B(`functions.baseDirectory does not exist: ${u}`)}if(!e.isDirectory())throw new B(`functions.baseDirectory is not a directory: ${u}`)}function Ue(u,e){let n={};for(let t of u){let i=`${e}/${He(t.relPath)}`;n[`/${i}`]={type:"function",path:`${i}.js`}}return n}function He(u){return u.slice(0,-3)}async function Ke(u){let{baseDirName:e,functions:n,bundles:t,manifestContent:i,dataSourcesJson:a}=u;return new Promise((D,c)=>{let p=[],l=(0,Le.default)("zip",{zlib:{level:9}});l.on("data",g=>p.push(g)),l.on("warning",c),l.on("error",c),l.on("end",()=>D(Buffer.concat(p)));for(let g of n){let S=t.get(g.relPath);if(S===void 0){c(new Error(`Missing bundled output for function ${g.relPath}`));return}let M=He(g.relPath);l.append(S,{name:`${e}/${M}.js`})}l.append(i,{name:"manifest.json"}),a!==void 0&&l.append(a,{name:"dataSources.json"}),l.finalize()})}import*as Bu from"node:fs";import*as b from"node:path";var We="packed",Ge="apps",Uu="client",$t="project.manifest.json";function qu(u,e,n=!1){let t=b.relative(u,e);return t.length===0?n:t!==".."&&!t.startsWith(`..${b.sep}`)&&!b.isAbsolute(t)}function Ye(u,e,n=b.join(u,`.${"ms"}`)){if(!e)return b.join(gu(u),We);let t=b.resolve(e),i=b.resolve(n),a=mu(t),D=mu(i);if(!qu(i,t)||!qu(D,a))throw new B(`Packed folder override must be inside ${i}: ${t}`);return t}function gu(u){let e=mu(u),n=mu(b.join(u,`.${"ms"}`));if(!qu(e,n))throw new B(`The .${"ms"} directory must resolve inside the project root: ${u}`);return n}function mu(u){let e=b.resolve(u),n=[];for(;!Ot(e);){let t=b.dirname(e);if(t===e)break;n.unshift(b.basename(e)),e=t}return b.resolve(Bu.realpathSync.native(e),...n)}function Ot(u){try{return Bu.lstatSync(u),!0}catch(e){if(e.code==="ENOENT")return!1;throw e}}function Hu(u,e){return b.join(u,Ge,e)}function Xe(u,e){return b.join(Hu(u,e),Uu)}function Mn(u){return b.posix.join(Ge,u)}function Rn(u){return b.join(u,$t)}function Tn(u,e){return b.join(gu(u),`${We}-staging-${e}`)}function Ze(u,e){if(!u)throw new B(`appId is required in ${e}`);if(!ee(u))throw new B(`appId in ${e} must be a valid GUID`);return u.toLowerCase()}var tt=ku(pt(),1);import*as $ from"node:fs/promises";import*as q from"node:path";var Qe="package-inventory.json",_t=1024*1024,It=10*1024*1024,Mt=1e4,ut=200,Rt=64*1024,Tt=/^(?:@[a-z0-9~][a-z0-9._~-]*\/)?[a-z0-9~][a-z0-9._~-]*$/i,_=class extends Error{constructor(n){super(n);this.reason=n}reason};function Ku(u){return{schemaVersion:1,status:"unavailable",reason:u}}function au(u){return typeof u=="object"&&u!==null&&!Array.isArray(u)}function nt(u){return typeof u=="string"&&u.length<=214&&Tt.test(u)}async function et(u,e){if(!(await $.stat(u)).isFile())throw new _("invalid-package-manifest");let n=await $.open(u,"r");try{let t=await n.stat();if(!t.isFile())throw new _("invalid-package-manifest");if(t.size>_t)throw new _("package-manifest-too-large");if(e.bytes+=t.size,e.bytes>It)throw new _("manifest-data-too-large");let i=Buffer.alloc(t.size+1),a=0;for(;a<i.length;){let{bytesRead:D}=await n.read(i,a,i.length-a,null);if(D===0)break;a+=D}if(a!==t.size)throw new _("read-failed");try{return JSON.parse(i.subarray(0,a).toString("utf8"))}catch{throw new _("invalid-package-manifest")}}finally{await n.close()}}function jt(u){if(!au(u))throw new _("invalid-production-dependencies");let e=new Map;for(let n of["dependencies","optionalDependencies"]){let t=u[n];if(t!==void 0){if(!au(t))throw new _("invalid-production-dependencies");for(let[i,a]of Object.entries(t)){if(!nt(i)||typeof a!="string")throw new _("invalid-production-dependencies");if(e.set(i,n==="optionalDependencies"),e.size>Mt)throw new _("too-many-packages")}}}return e}async function Lt(u){try{let e=jt(await et(q.join(u,"package.json"),{bytes:0})),n=q.join(u,"node_modules");if(e.size>0)try{if(!(await $.stat(n)).isDirectory())return Ku("invalid-node-modules")}catch(c){return Ku(au(c)&&c.code==="ENOENT"?"missing-node-modules":"read-failed")}let t=new Map,i={bytes:0},a=0;for(let c of[...e.keys()].sort()){let p=e.get(c)===!0,l=q.join(n,c);try{await $.lstat(l)}catch(L){if(!au(L)||L.code!=="ENOENT")throw L;p||a++;continue}let g=await et(q.join(l,"package.json"),i);if(!au(g)||!nt(g.name)||typeof g.version!="string"||g.version.length>256||(0,tt.valid)(g.version)===null)throw new _("invalid-package-manifest");let S=JSON.stringify([g.name,g.version]),M=t.get(S);M?M.optional=M.optional&&p:t.set(S,{name:g.name,version:g.version,optional:p})}let D={schemaVersion:1,status:"available",scope:"directProduction",totalPackageCount:t.size+a,truncated:t.size>ut,unresolvedPackageCount:a,packages:[...t.values()].slice(0,ut)};for(;Buffer.byteLength(JSON.stringify(D)+`
|
|
21
|
-
`)>Rt;)D.packages.pop(),D.truncated=!0;return D}catch(e){return Ku(e instanceof _?e.reason:"read-failed")}}async function rt(u,e){let n=await Lt(u);n.status==="unavailable"&&Fu(`Package inventory is unavailable (${n.reason}).`);let t;try{let i=q.join(u,`.${"ms"}`);await $.mkdir(i,{recursive:!0}),t=await $.mkdtemp(q.join(i,"package-inventory-"));let a=q.join(t,Qe);await $.writeFile(a,JSON.stringify(n)+`
|
|
22
|
-
`),await $.rename(a,q.join(e,Qe))}catch{Fu("Could not write package inventory; packing will continue.")}finally{if(t!==void 0)try{await $.rm(t,{recursive:!0,force:!0})}catch{Fu("Could not remove temporary package inventory outside the packed output.")}}}function Vt(u,e,n){let t=0,i=!1,a=Promise.resolve();return{write(D){if(i)return;let c=e-t;if(c<=0)return;let p=Buffer.from(`${D}
|
|
23
|
-
`,"utf8"),l=p.length<=c?p:p.subarray(0,c);t+=l.length,a=a.then(async()=>{if(!i)try{await d.appendFile(u,l)}catch(g){i=!0,n?.(g)}})},drainAsync:()=>a}}async function Jt(u,e){try{let n=(await d.stat(u)).size;return Math.max(0,e-n)}catch(n){if(typeof n=="object"&&n!==null&&"code"in n&&n.code==="ENOENT")return e;throw n}}function zt(u,e,n){if(!e||!(u instanceof K))return u;let t=Be(me(e),n);return t?new K(u.message,u.exitCode,u.errorData,{errorCode:u.errorCode,errorCategory:u.errorCategory,telemetryDetails:u.telemetryDetails,retryable:u.retryable,outputDetails:{...u.outputDetails,rayfinBuildOutputTail:t}}):u}var qt="manifest.json",Ut="dataSources.json",it="dataSchema.json",at=10*1024*1024,Ht="For tabular data sources (allowedActions under dataSets), use only: get, post, patch, delete.";function Kt(u,e=xu){if(!u.buildPath)throw new B(`buildPath is required in ${e} to pack an app`);if(!u.buildEntryPoint)throw new B(`buildEntryPoint is required in ${e} to pack an app`);if(u.buildType!=="none"&&!u.buildCommand)throw new B(`buildCommand is required in ${e} to pack an app`)}function Wt(u,e=n=>new B(n)){let n=te.safeParse(u);if(n.success)return;let t=n.error.issues.map(D=>`${D.path.length>0?D.path.join("."):"(root)"}: ${D.message}`),a=n.error.issues.some(D=>{let c=D.path.map(String);return c.includes("dataSets")&&c.at(-1)==="allowedActions"})?`
|
|
24
|
-
${Ht}`:"";throw e(`Invalid ${xu} for shared connection policy enforcement:
|
|
25
|
-
${t.join(`
|
|
26
|
-
`)}${a}`)}async function Gt(u,e){let n=e.state!==void 0?"state":e.data!==void 0?"data":"db",t=e[n]?.schemaPath;if(t===void 0)return;let i=`${n}.schemaPath`;if(!t.trim())throw new B(`${i} must not be empty: "${t}"`);if(A.isAbsolute(t))throw new B(`${i} must be relative to the project root: "${t}"`);let a=A.resolve(u,t),D=A.relative(u,a);if(D===".."||D.startsWith(`..${A.sep}`)||A.isAbsolute(D))throw new B(`${i} must not resolve outside the project root: "${t}"`);let c;try{c=await d.stat(a)}catch(l){throw new B(`Unable to access ${i} "${t}": ${l.message}`)}if(!c.isFile())throw new B(`${i} must reference a regular file: "${t}"`);if(c.size>at)throw new B(`${i} "${t}" is ${c.size} bytes, which exceeds the ${at/(1024*1024)} MB limit`);let p;try{p=await d.readFile(a)}catch(l){throw new B(`Unable to read ${i} "${t}": ${l.message}`)}try{JSON.parse(p.toString("utf8"))}catch(l){throw new B(`${i} "${t}" must contain valid JSON: ${l.message}`)}return p}var Dt="prod";function Wu(u,e){return{fileName:e,filePath:A.join(u,e)}}async function ot(u){try{return(await d.stat(u)).isFile()}catch(e){if(typeof e=="object"&&e!==null&&"code"in e&&e.code==="ENOENT")return!1;throw e}}async function Yt(u,e){let n=A.basename(e);if(await ot(A.resolve(e)))return Wu(u,n);for(let t of re)if(t!==n&&await ot(A.join(u,t)))return Wu(u,t);return Wu(u,n)}async function Xt(u){let e;try{e=await d.readFile(u,"utf-8")}catch(n){throw new B(`Failed to read ${A.basename(u)}: ${n.message}`)}try{return JSON.parse(e)}catch(n){throw new B(`${A.basename(u)}: ${n.message}`)}}async function Zt(u,e,n){let i=(await d.readdir(u,{withFileTypes:!0})).filter(D=>D.isFile()&&D.name!==ne).map(D=>({fileName:D.name,stageName:ae(D.name,n.fileName)})).filter(D=>D.stageName!==void 0).sort((D,c)=>D.fileName.localeCompare(c.fileName)),a=[];for(let{fileName:D,stageName:c}of i){let p;try{p=await d.readFile(A.join(u,D),"utf-8")}catch(S){throw new B(`Failed to read stage config: ${D}: ${S.message}`)}let l;try{l=De(p)}catch(S){throw new B(`${D}: ${S.message}`)}let g;try{({config:g}=$u(e,l))}catch(S){throw new B(`${D} contains invalid overrides:
|
|
27
|
-
${S.message}`)}a.push({stageName:c,resolvedConfig:g})}if(!a.some(({stageName:D})=>D===Dt)){let{config:D}=$u(e);a.push({stageName:Dt,resolvedConfig:D})}return a}async function Qt(u={}){let e=Date.now(),n=0,t=0,i=0,a=0,D=0,c=0,p=0,{quiet:l=!1,cleanPackedFolder:g=!0,commandLogFilePath:S,commandLogFileMaxBytes:M,onCommandLogError:L}=u,{appConfig:yu,fileConfig:C}=Fe(),h=u.appConfigPath??C.appConfigPath,o=A.dirname(A.resolve(h)),m=await Yt(o,h),E=A.resolve(m.filePath)===A.resolve(C.appConfigPath)?yu:await Xt(m.filePath);if(!E)throw new B(`${m.fileName} is required to pack an app`);Wt(E);let y=Ze(E.appId,m.fileName);Kt(E,m.fileName);let{buildPath:k,buildEntryPoint:U}=E,At=C.projectConfigPath?A.dirname(A.resolve(C.projectConfigPath)):o,Ft=gu(At),Du=Ye(o,u.packedFolder,Ft),T=Hu(Du,y),wu=Xe(Du,y),Gu=E.state?.enabled??E.data?.enabled??E.db?.enabled,Pu=await Gt(o,E),G=E.functions?.baseDirectory?A.resolve(o,E.functions.baseDirectory):void 0;G!==void 0&&await qe(G);let Ct=await Zt(o,E,m),ft=A.resolve(o,k),uu=l?null:new Ce;try{if(E.buildType!=="none"){let{buildCommand:v}=E;l||X(`Running: ${v}`);let I=Date.now();try{await ge(v,o,{quiet:l,...S?{logFilePath:S}:{},...M!==void 0?{logFileMaxBytes:M}:{},...L?{onLogError:L}:{}})}finally{n=Date.now()-I}}uu?.start("Packing client output...");let bu=Date.now();try{g&&await d.rm(Du,{recursive:!0,force:!0}),await d.mkdir(wu,{recursive:!0}),await d.cp(ft,wu,{recursive:!0}),await d.copyFile(m.filePath,A.join(T,m.fileName)),Pu!==void 0&&await d.writeFile(A.join(T,it),Pu);for(let{stageName:v,resolvedConfig:I}of Ct)await d.writeFile(A.join(T,ie(v,m.fileName)),JSON.stringify(I,null,2))}finally{t=Date.now()-bu}let Yu=Date.now(),Su;try{Su=await tn(o,T,{quiet:l})}catch(v){throw i=Date.now()-Yu,v}Su!==void 0&&(i=Date.now()-Yu);let Xu=Date.now(),vu;if(fe("rayfin")&&await le(o)){uu?.update("Packing Rayfin backend...");let v=l&&S?Vt(S,await Jt(S,M??Number.POSITIVE_INFINITY),L):void 0,I=l&&!S?pe():void 0,Au=l?v?.write??(I?eu=>de(I,Buffer.from(`${eu}
|
|
28
|
-
`,"utf8"),Ee):void 0):X;try{vu=await ye({projectRoot:o,packAppOutputDir:T,cliVersion:Nu.version,env:Ae(await he(o)),...Au?{onDetail:Au}:{}}),await v?.drainAsync()}catch(eu){throw a=Date.now()-Xu,await v?.drainAsync(),zt(eu,I,o)}a=Date.now()-Xu}let Zu=Date.now(),Y;try{Y=G!==void 0?await Je(G):[]}catch(v){throw D=Date.now()-Zu,v}G!==void 0&&(D=Date.now()-Zu);let ou=Y.length>0,su=G!==void 0?A.basename(G):void 0,Qu={"/":{type:"client",path:U}};ou&&su!==void 0&&Object.assign(Qu,Ue(Y,su));let cu;if(E.iconPath){let v=A.join(o,E.iconPath),I=A.extname(v).toLowerCase();if(I!==".png"&&I!==".jpg")throw new B(`iconPath in ${m.fileName} must reference a .png or .jpg file, but got "${A.basename(v)}".`);cu=A.basename(v),await d.copyFile(v,A.join(T,cu))}let lt={cliVersion:Nu.version,manifestVersion:_u,clientDirectory:Uu,hasCustomMiddleTier:ou,...ou?{functionsPackage:{path:zu,...Ve}}:{},...cu?{iconPath:cu}:{},...Pu!==void 0?{dataSchemaPath:it}:{},...Gu!==void 0?{dataEnabled:Gu}:{},...vu?{rayfinPackage:vu,backends:{default:{kind:"rayfin"}}}:{},routes:Qu},ue=JSON.stringify(lt,null,2);if(await d.writeFile(A.join(T,qt),ue),ou&&su!==void 0){uu?.update(`Bundling ${Y.length} function${Y.length===1?"":"s"}...`);let v=Date.now(),I;try{I=await Te({projectRoot:o,functions:Y})}finally{c=Date.now()-v}uu?.update("Writing functions archive...");let Au=Date.now();try{let eu=await Ke({baseDirName:su,functions:Y,bundles:I,manifestContent:ue,dataSourcesJson:Su});await d.writeFile(A.join(T,zu),eu)}finally{p=Date.now()-Au}}await rt(o,T);let Et=st({startedAt:e,clientBuildMs:n,clientCopyMs:t,dataSourcesMs:i,rayfinPackMs:a,functionsDiscoveryMs:D,middletierBuildMs:c,functionsArchiveMs:p});return{success:!0,result:{appId:y,packedFolder:Du,packAppOutputDir:T,packClientOutputDir:wu,timings:Et}}}catch(bu){return{success:!1,appId:y,error:bu,timings:st({startedAt:e,clientBuildMs:n,clientCopyMs:t,dataSourcesMs:i,rayfinPackMs:a,functionsDiscoveryMs:D,middletierBuildMs:c,functionsArchiveMs:p})}}finally{uu?.stop()}}function st({startedAt:u,clientBuildMs:e,clientCopyMs:n,dataSourcesMs:t,rayfinPackMs:i,functionsDiscoveryMs:a,middletierBuildMs:D,functionsArchiveMs:c}){return{clientBuildMs:e,clientCopyMs:n,dataSourcesMs:t,rayfinPackMs:i,functionsDiscoveryMs:a,middletierBuildMs:D,functionsArchiveMs:c,totalMs:Date.now()-u}}async function un(u={}){let e=await Qt(u);if(!e.success)throw e.error;return e.result}var hu=A.join(ce,"dataSources.ts"),en=/export\s+default\s+(\{[\s\S]*\});/;async function tn(u,e,n){let t=A.join(u,hu);try{await d.access(t)}catch{n.quiet||X(`${hu} not found \u2014 dataSources.json will not be included in the pack.`);return}let i=await d.readFile(t,"utf-8"),a=en.exec(i);if(!a?.[1])throw new K(`Could not extract dataSources from ${hu}`);let D;try{D=ct.default.parse(a[1])}catch(p){throw new K(`${hu} has an unexpected format: ${p.message}`)}let c=JSON.stringify(D,null,2);return await d.writeFile(A.join(e,Ut),c),c}function nn(u){return u<1e3?`${Math.round(u)}ms`:`${(u/1e3).toFixed(2)}s`}function rn(u){let e=[["Client build",u.clientBuildMs],["Client copy",u.clientCopyMs]];u.dataSourcesMs>0&&e.push(["Data sources",u.dataSourcesMs]),u.rayfinPackMs>0&&e.push(["Rayfin pack",u.rayfinPackMs]),u.middletierBuildMs>0&&e.push(["Middletier build",u.middletierBuildMs]),u.functionsArchiveMs>0&&e.push(["Functions archive",u.functionsArchiveMs]),e.push(["Total",u.totalMs]);let n=Math.max(...e.map(([t])=>t.length));X(""),X("Timings:");for(let[t,i]of e)X(` ${t.padEnd(n)} ${nn(i)}`)}async function Dr(u){u.setDescription(Ou.app.pack.description),u.addExamples(Ou.app.pack.examples),await u.runVerb();let e=u.isJsonMode(),n=await un({quiet:e});e?se(n):(oe("App successfully packed."),rn(n.timings))}export{we as a,qu as b,Ye as c,Mn as d,Rn as e,Tn as f,Ze as g,Kt as h,Wt as i,Qt as j,un as k,Dr as l};
|
|
29
|
-
/*!
|
|
30
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
31
|
-
*/
|
|
32
|
-
//# sourceMappingURL=chunk-NYPHWF7Q.js.map
|
package/dist/chunk-PLFDUGBA.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{b as $,e as E}from"./chunk-QLK3ZVWP.js";import{l as C,m as R}from"./chunk-GE3UFHZ5.js";import{Ma as M,Nb as L,x as p}from"./chunk-4XKA5APP.js";import{m as U}from"./chunk-2LDU3F6O.js";import{x as o}from"./chunk-4U53RYJJ.js";import{a as i}from"./chunk-HOIFXUTG.js";import{C as N,D as A,I as h,K as b}from"./chunk-KKC5ZK4D.js";import S from"open";async function q(e){k(e),await e.runVerb();let n=await C(e),r=await R(e),l=await e.getTenantIdAsync();if(!l)throw new p("Unable to determine tenant ID. Ensure you are logged in.");let m=await e.getOption(o.NoBrowser.camelName,!0)===!1,c=e.isJsonMode(),a=await e.getOption(o.CommitSha.name,!0),d=await e.getOption(o.Branch.name,!0),g=await e.getOption(o.Mode.name,!0),t=await e.getOption(o.Target.name,!0),s=t===void 0?void 0:E(t);if(s&&(g||a||d))throw new p("--target cannot be used with --mode, --commit, or --branch.");let f=T(g);if(!s&&f==="live"&&(a||d))throw new p("--commit and --branch are only valid with --mode preview.");if(a&&d)throw new p("--commit and --branch cannot be used together.");await x({appName:n,environmentId:r,tenantId:l,noBrowser:m,isJson:c,mode:f,commitId:a,branch:d,target:s})}async function x(e){let{appName:n,environmentId:r,tenantId:l,noBrowser:m,isJson:c,mode:a,commitId:d,branch:g,target:t}=e,s=await M({tenantId:l,environmentId:r,logger:L(),actionsParams:{appName:n}}),f=t!==void 0&&t!==$,u=f?s.stages?.find(v=>v.stageName.toLowerCase()===t):void 0;if(f&&!u)throw new p(`Deployment target '${t}' does not exist for app '${n}'. Run 'ms app add config --target ${t}' to create it.`);let I=u?u.commitHash:s.commitHash,y=B(s.appPlayUri,a,d,g,f?t:void 0);if(!y)throw new p(!t&&a==="live"?`No live build is available for app '${n}' yet. Run 'ms app deploy' to deploy one, then re-run 'ms app play'.`:t?`No play URL is available for app '${n}' on target '${t}'.`:`No appPlayUri is available for app '${n}' in environment '${r}'.`);let w=a==="live"&&!I?[`App '${n}' has not been deployed to target '${t??$}'. Run 'ms app deploy${t?` --target ${t}`:""}' to deploy it.`]:[];if(c){A({appName:n,mode:t?"target":a,...t?{target:t}:{},url:y,commitHash:I??null,...w.length>0?{warnings:w}:{}});return}N(`${t?"Target":a==="live"?"Live":"Preview"} URL for '${s.displayName??n}': ${y}`);for(let v of w)b(v);!t&&a==="live"&&b("Live does not auto-update. Run 'ms app deploy' to publish a new version to the live URL."),await O(y,m)}function B(e,n,r,l="main",m){if(!e)return;if(m){let a;try{a=new URL(e)}catch{throw new p("The app play URL returned by the service is not a valid absolute URL.")}return a.pathname=`${a.pathname.replace(/\/$/,"")}/target/${encodeURIComponent(m)}`,a.toString()}if(n==="live")return e;let c=e.replace(/\/$/,"");return r?`${c}/commit/${r}`:`${c}/branch/${encodeURIComponent(l)}`}async function O(e,n){if(!n){h(`Opening browser at ${e}`);try{await S(e,{wait:!1})}catch{h(`Could not open browser automatically. Please navigate to:
|
|
8
|
-
${e}`)}}}function T(e){let n=(e??o.Mode.defaultValue).trim().toLowerCase();if(n!=="live"&&n!=="preview")throw new p(`Invalid --mode value '${e}'. Expected 'live' or 'preview'.`);return n}function k(e){let n=U("alm");e.setDescription(i.app.play.description),e.addExamples(n?i.app.play.examples:i.app.play.examples.filter(r=>!r.includes(" --target "))),e.addSwitch({flags:{key:o.NoBrowser.name},description:i.app.play.options.noBrowser}),e.addOptions([{flags:{key:o.AppName.name},env:o.AppName.envVar,description:i.app.play.options.app,optionalInNonInteractive:!0},{flags:{key:o.Mode.name,alias:o.Mode.alias},env:o.Mode.envVar,description:i.app.play.options.mode,optionalInNonInteractive:!0},...n?[{flags:{key:o.Target.name},description:i.app.play.options.target,optionalInNonInteractive:!0}]:[],{flags:{key:o.CommitSha.name,alias:o.CommitSha.alias},env:o.CommitSha.envVar,description:i.app.play.options.commit,optionalInNonInteractive:!0},{flags:{key:o.Branch.name},description:i.app.play.options.branch,optionalInNonInteractive:!0}])}export{q as a,B as b};
|
|
9
|
-
/*!
|
|
10
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
11
|
-
*/
|
|
12
|
-
//# sourceMappingURL=chunk-PLFDUGBA.js.map
|
package/dist/chunk-RDXQ3ZPT.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as x,b as l,c as v}from"./chunk-Q3ONTUZ7.js";import{a as R,b as E}from"./chunk-XIX2O22O.js";import{Jb as H,Kb as G,Nb as j,d as D,ga as h,y as g}from"./chunk-4XKA5APP.js";import{I as b}from"./chunk-KKC5ZK4D.js";async function T(r){let{remoteUrl:p,tenantId:m,jsonMode:t,openBrowser:s,verb:f}=r,{host:n,owner:u,repo:i}=D(p),o=u&&i?H(u,i):"",c=j(),e=I(f);c.trackActivityEvent(e,{repoHost:n,repoHash:o}),t||b("GitHub authentication is required for this action.");let y=A({isJson:t,openBrowser:s}),a=new AbortController,d=()=>{a.abort()};process.once("SIGINT",d);try{await G({remoteUrl:p,tenantId:m,logger:c,display:y,skipBrowser:!1,signal:a.signal})}catch(w){throw c.trackActivityEvent(`${e}.Failed`,{repoHost:n,repoHash:o}),l(w)??w}finally{process.removeListener("SIGINT",d)}c.trackActivityEvent(`${e}.Complete`,{repoHost:n,repoHash:o}),t||b(M(f))}function M(r){switch(r){case"app create":return"Resuming create...";case"app init":return"Resuming init...";case"app build":case"project build":return"Resuming build...";case"app deploy":case"project deploy":return"Resuming deploy...";case"project create":return"Resuming project create..."}}function A(r){return r.isJson?new E:r.openBrowser?R:{...R,openVerificationUri:void 0}}function I(r){switch(r){case"app create":return"Maaf.Create.GitHubDcfRecovery";case"app init":return"Maaf.Init.GitHubDcfRecovery";case"app build":case"project build":return"Maaf.Build.GitHubDcfRecovery";case"app deploy":case"project deploy":return"Maaf.Deploy.GitHubDcfRecovery";case"project create":return"Maaf.ProjectCreate.GitHubDcfRecovery"}}async function F(r,p,m=T){let{repoType:t,externalRepoUrl:s,tenantId:f,jsonMode:n,openBrowser:u,verb:i}=p;try{return await r({isRetry:!1})}catch(o){if(t!=="github")throw o;if(!v(o)){if(o instanceof h)throw o;let e=l(o);throw e||o}if(!s)throw new g(`GitHub authentication is required, but the app config does not record the external repository URL needed to recover the identity mapping. This app may have been created before the URL was persisted to \`ms.config.json\`. Either add \`externalRepoUrl: "<your repo url>"\` to \`ms.config.json\`, or recreate the app with \`ms app create --repo <your repo url>\`, then run \`ms ${i}\` again.`);await m({remoteUrl:s,tenantId:f,jsonMode:n,openBrowser:u,verb:i});try{return await r({isRetry:!0})}catch(e){if(e instanceof h)throw e;let y=v(e);if(y)throw x(y.payload)??e;let a=l(e);throw a||e}}}export{F as a};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=chunk-RDXQ3ZPT.js.map
|
package/dist/chunk-TXMTKOEJ.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import*as r from"node:fs";function i(e){switch(e){case"Native":return"native";case"ExternalGitProviderBound":return"github";case"ExternallyProvidedBuild":return"none"}}function p(e,t,o){return{projectId:e.projectId,displayName:e.displayName,repositoryId:e.repositoryId,repoType:i(e.repoType),...e.repoType==="ExternalGitProviderBound"&&o&&{externalRepoUrl:o},environmentId:e.environmentId,cloud:t}}function c(e,t){let o=`${e}.${process.pid}.tmp`;try{r.writeFileSync(o,`${JSON.stringify(t,null,2)}
|
|
8
|
-
`,{encoding:"utf8",flag:"wx"}),r.renameSync(o,e)}catch(n){try{r.rmSync(o,{force:!0})}catch{}throw n}}export{i as a,p as b,c};
|
|
9
|
-
/*!
|
|
10
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
11
|
-
*/
|
|
12
|
-
//# sourceMappingURL=chunk-TXMTKOEJ.js.map
|
package/dist/chunk-WV7D7PTW.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __pathDirname(__filename);
|
|
7
|
-
function l(e){let n=new Date(e);return Number.isNaN(n.getTime())?e:n.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}function i(e){let n=e?.replace(/[\u0000-\u001f\u007f-\u009f]/g,"").trim();return n||void 0}function u(e){let n=e?.replace(/\r\n?/g,`
|
|
8
|
-
`).replace(/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,"").trim();return n||void 0}function d(e){if(!e)return;let n=i(e.email);if(n){let t=n.lastIndexOf("@");if(t>0)return n.slice(0,t);if(t<0)return n}return i(e.displayName)??i(e.objectId)}function a(e){return d(e.approvalDecidedBy)}function c(e){return d(e.cancelledBy)}function f(e){let n=e.cancelledBy;return[n?.objectId,n?.displayName,n?.email].some(r=>typeof r=="string"&&r.trim()!=="")?n??void 0:void 0}function o(e){return e.cancelledTime?.trim()||void 0}function m(e){let n=c(e),t=o(e);return n||t?{by:n,time:t}:{by:a(e),time:e.approvalDecidedTime?.trim()||void 0}}export{l as a,i as b,u as c,f as d,o as e,m as f};
|
|
9
|
-
/*!
|
|
10
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
11
|
-
*/
|
|
12
|
-
//# sourceMappingURL=chunk-WV7D7PTW.js.map
|
package/dist/chunk-WWVAS3DS.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as o}from"./chunk-DKSLWH4O.js";import{b as I,c as h}from"./chunk-TXMTKOEJ.js";import{Ma as d,Nb as u,Ob as w,fb as j,x as c,z as p}from"./chunk-4XKA5APP.js";async function E(a,l=!0,f=u()){let e=w();if(e.projectConfig)return e.projectConfig;let t=e.appConfig;if(!t)throw new c("No managed project or app configuration was found. Run this command from a directory containing ms.project.config.json or ms.config.json.");let r=o(t.projectId),i=o(t.environmentId);if(!r){let n=o(t.appId);if(!n)throw new p("The current app does not specify an app ID.");let s=await a.getTenantIdAsync();if(!s)throw new c("Unable to determine tenant ID. Ensure you are logged in.");let g=await d({tenantId:s,environmentId:i,logger:f,actionsParams:{appName:n}});r=o(g.projectId),i=o(g.environmentId)}if(!r)throw new c("The current app is not associated with a managed project.");if(!i)throw new p("The current app does not specify an environment ID.");a.updateEnvironmentId(i);let C=await j({projectId:r,logger:f}),m=I(C,t.cloud);if(l){let n=e.fileConfig.projectConfigPath;if(!n)throw new p("Unable to determine where ms.project.config.json should be created.");h(n,m)}return m}export{E as a};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=chunk-WWVAS3DS.js.map
|
package/dist/chunk-YRPTITKD.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
const __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as D,c as K,d as W,f as S}from"./chunk-HSNRWBA6.js";import{b as V}from"./chunk-2LKCCYRF.js";import{a as z}from"./chunk-SQI4XLR7.js";import{l as q,m as J,n as H}from"./chunk-GE3UFHZ5.js";import{Ma as x,N as k,Nb as R,O as w,Ob as _,P as $,Pa as b,Wa as O,k as N,ka as I,pb as L,qb as B,ra as U,x as y,z as j}from"./chunk-4XKA5APP.js";import{D as F,E as T}from"./chunk-4U53RYJJ.js";import{a as C}from"./chunk-HOIFXUTG.js";import{C as P,D as G,I as A,K as v,a as E}from"./chunk-KKC5ZK4D.js";var te=64*1024,X=1e3;async function Ee(e,n){Re(e,n),await e.runVerb();let t=_();if(!t.appConfig)throw new y(`No ${E} found in the current directory. Run "${"ms"} app init" first.`);let s=await J(e),c=await e.getTenantIdAsync();if(!c)throw new y("Unable to determine tenant ID. Ensure you are logged in.");let r=await q(e),p=K(await e.getOption("access")),m=p==="edit"?W(t.appConfig):t.appConfig.repoType??"none",f=le(e.getPositionalArgs(0));if(f.length===0)throw new y("Provide at least one principal (object ID or user/group email address). Separate multiple entries with commas, spaces, or both.");let a=p!=="edit"||m!=="native",l=R(),u=l.trackScenario("MaafApp.SharePermissions",{mode:n,access:p,repoType:m,inputCount:f.length});try{let o=[],i=await ce(f,o,a);if(l.trackActivityEvent("MaafApp.SharePermissions.PrincipalResolution",{mode:n,inputCount:f.length,resolvedCount:i.length,failedCount:o.length,emailPassthrough:a}),i.length===0)throw new y(Q(o));o.length>0&&v(Q(o));let d=await(n==="share"?ie:re)({tenantId:c,environmentId:s,appName:r,access:p,refs:i,repoType:m,jsonMode:e.isJsonMode()});u.complete({resolvedCount:i.length,failedResolutionCount:o.length,scope:d.scope,role:d.role,appScopeContributorFallback:p==="edit"&&d.scope==="app",...n==="unshare"&&{revokedCount:d.revokedCount??0,revokedPrincipalCount:d.revokedPrincipalCount??0,notFoundCount:d.notFound?.length??0,skippedCount:d.skipped?.length??0}});let g=n==="share"&&p==="edit"?await ae({appInfo:d.appInfo,tenantId:c,environmentId:s,appName:r,jsonMode:e.isJsonMode()}):void 0;e.isJsonMode()?G({access:p,partialFailure:o.length>0,...d.result,...n==="unshare"&&{revokedCount:d.revokedCount??0,revokedPrincipalCount:d.revokedPrincipalCount??0,notFound:(d.notFound??[]).map(ee),skipped:(d.skipped??[]).map(ee)},...g&&{repoType:g.repoType,cloneUrl:g.cloneUrl},warnings:o}):(ye({appName:r,mode:n,access:p,inputCount:i.length,outcome:d}),pe(g))}catch(o){let i=se(o);throw u.failure(i??o),i??o}}function se(e){if(!(e instanceof N)||e.status!==400)return null;let n=e.code,t;if(e.body&&e.body.length<=te)try{let m=JSON.parse(e.body);typeof m?.error?.code=="string"&&(n=m.error.code),typeof m?.error?.message=="string"&&m.error.message.trim()&&(t=m.error.message)}catch{}let s=`${n??""} ${t??""}`.toLowerCase(),c={httpStatus:e.status,...n&&{serverErrorCode:n},...t&&{serverMessage:t}},r={httpStatus:e.status},p=t?{serverMessage:oe(t)}:void 0;return s.includes("limit")||s.includes("quota")?new y("The sharing limit for this app has been reached.",c,{errorCode:"SharingLimitExceeded",exitCode:1,telemetryDetails:r,outputDetails:p}):s.includes("policy")||s.includes("not allowed")?new j("This sharing request is blocked by an environment or tenant policy.",c,{errorCode:"SharingRequestPolicyDenied",exitCode:1,telemetryDetails:V("app_sharing",r),outputDetails:p}):new y("The sharing request was rejected.",c,{errorCode:"SharingRequestRejected",exitCode:1,telemetryDetails:r,outputDetails:p})}function oe(e){let n=[...e].map(t=>{let s=t.codePointAt(0)??0;return s<=31||s>=127&&s<=159?" ":t}).join("").trim();return n.length<=X?n:`${n.slice(0,X)}\u2026`}async function ie(e){let{tenantId:n,environmentId:t,appName:s,access:c,refs:r,repoType:p,jsonMode:m}=e;if(c==="play"||c==="test"){let u=c==="test"?$:k,o=r.map(h=>Z(h,u));return{result:await b({tenantId:n,environmentId:t,logger:R(),actionsParams:{appName:s,put:o,delete:[]}}),scope:"app",role:u}}if(p!=="native"){!m&&p==="github"&&v(D);let u=r.map(i=>Z(i,w));return{result:await b({tenantId:n,environmentId:t,logger:R(),actionsParams:{appName:s,put:u,delete:[]}}),scope:"app",role:w}}let f=await S({tenantId:n,environmentId:t,appName:s}),a=r.map(he);return{result:await L({tenantId:n,environmentId:t,logger:R(),actionsParams:{repoId:f.repositoryId,put:a,delete:[]}}),scope:"repo",role:I,appInfo:f}}async function re(e){let{tenantId:n,environmentId:t,appName:s,access:c,refs:r,repoType:p,jsonMode:m}=e,f=c!=="edit"||p!=="native",a=f?c==="test"?$:c==="play"?k:w:I,l,u=[],o;if(f){c==="edit"&&p==="github"&&(m||v(D));let i=[],h=[];o=new Map;for(let g of r)if(g.id)i.push(g.id),o.set(`id:${g.id}`,g);else if(g.email)h.push(g.email),o.set(`email:${g.email.toLowerCase()}`,g);else throw new y(`Could not resolve '${g.input}' to an AAD object ID or email.`);let d=await O({tenantId:n,environmentId:t,logger:R(),actionsParams:{appName:s,principalIds:i,principalEmails:h,roleDefinitionName:a}});l=d,u=d.notFoundEmails}else{let i=r.map(Y);o=new Map(r.map(d=>[`id:${Y(d)}`,d]));let h=await S({tenantId:n,environmentId:t,appName:s});l=await B({tenantId:n,environmentId:t,logger:R(),actionsParams:{repoId:h.repositoryId,principalIds:i}})}return{result:l.result,scope:f?"app":"repo",role:a,revokedCount:l.revokedCount,revokedPrincipalCount:l.revokedPrincipalCount,notFound:[...l.notFoundPrincipalIds.map(i=>o.get(`id:${i}`)??{id:i,input:i}),...u.map(i=>o.get(`email:${i}`)??{email:i,input:i})],skipped:l.skippedNullRoleAssignments.map(i=>o.get(`id:${i.principalObjectId}`)??o.get(`email:${i.principalObjectId}`)??{id:i.principalObjectId,input:i.principalObjectId})}}function Y(e){if(!e.id)throw new y(`Could not resolve '${e.input}' to an object ID. Unshare requires object IDs.`);return e.id}async function ae(e){let n=e.appInfo;if(!n)try{n=await x({tenantId:e.tenantId,environmentId:e.environmentId,logger:R(),actionsParams:{appName:e.appName}})}catch{e.jsonMode||v(`Share succeeded, but repository details for '${e.appName}' could not be read.`);return}return z(n)}function pe(e){e&&(e.repoType&&A(`Repo type: ${e.repoType}`),e.cloneUrl&&A(`Clone URL: ${e.cloneUrl}`))}function le(e){let n=new Set;for(let t of e)for(let s of t.split(",")){let c=s.trim();c&&n.add(c)}return[...n]}async function ce(e,n,t){let s=new Map,c=new Map,p=(await Promise.all(e.map(async a=>{let l=a.toLowerCase(),u=s.get(l);if(u)return u;if(H(a)){let o={id:a,input:a};return s.set(l,o),o}if(!me(a))return n.push({input:a,reason:"not an object ID (GUID) or a valid email address"}),null;if(t){let o={input:a,email:a};return s.set(l,o),o}try{let o=c.get(l);o||(o=U(a,R()),c.set(l,o));let i=await o;if(!i)return n.push({input:a,reason:"no user or group found in this tenant (invite as a guest in Entra ID first if external)"}),null;let h={id:i.id,input:a,type:i.type,email:a,displayName:i.displayName};return s.set(l,h),h}catch(o){return n.push({input:a,reason:ue(o)}),null}}))).filter(a=>a!==null),m=[],f=new Set;for(let a of p){let l=(a.id??a.email??a.input).toLowerCase();f.has(l)||(f.add(l),m.push(a))}return m}function Q(e){let n=e.length===1?"entry":"entries",t=e.map(s=>` - ${s.input}: ${s.reason}`);return[`Could not resolve ${e.length} ${n}:`,...t].join(`
|
|
8
|
-
`)}function ue(e){if(e instanceof N){if(e.status===403)return de(e.status);let n=fe(e.body);return n!==void 0?`Graph ${e.status}: ${n}`:e.message}return e instanceof Error?e.message:String(e)}function de(e){return`Graph ${e}: your sign-in lacks permission to look up accounts by email. Pass the object ID (GUID) instead, or have an admin grant the User.ReadBasic.All and Group.Read.All Graph permissions.`}function fe(e){if(e)try{let t=JSON.parse(e)?.error?.message;return typeof t=="string"?t:void 0}catch{return}}function me(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function Z(e,n){return{name:e.displayName??e.input,properties:{roleName:n,principal:ge(e)}}}function ge(e){return e.id?e.email?{id:e.id,email:e.email}:{id:e.id}:{email:e.email??e.input}}function he(e){let n=e.id??e.input;return{name:e.displayName??e.input,properties:{roleName:I,principal:e.type?{id:n,type:e.type}:{id:n}}}}function ee(e){return{id:e.id??e.input,label:e.displayName??e.input}}function ye(e){let{appName:n,mode:t,access:s,inputCount:c,outcome:r}=e,p=s==="play"?"play":s==="test"?"test":"edit";if(t==="share"){let u=r.result.put?.length??0;if(u===0){A("No changes were applied.");return}P(`Shared app '${n}' with ${u} ${M("principal",u)}. They can now ${p} the app.`);return}let m=r.revokedCount??0,f=r.revokedPrincipalCount??m,a=(r.skipped?.length??0)>0;if(f===0&&!a){A(`No ${p} assignments to revoke on '${n}' \u2014 none of the ${c} ${M("principal",c)} had existing access.`);return}if(f>0?P(`Revoked ${p} permissions for ${f} ${M("principal",f)} on '${n}'.`):A(`No ${p} access changes were applied on '${n}'.`),r.notFound&&r.notFound.length>0){let l=r.notFound.map(u=>u.displayName??u.input).join(", ");A(`${r.notFound.length} ${M("principal",r.notFound.length)} had no existing ${p} access (no-op): ${l}`)}if(r.skipped&&r.skipped.length>0){let l=r.skipped.map(u=>u.displayName??u.input).join(", ");A(`${r.skipped.length} ${M("principal",r.skipped.length)} had a role assignment with an unknown role definition; ${p} access was not modified for: ${l}. Investigate via the role-assignments API.`)}}function M(e,n){return n===1?e:`${e}s`}function Re(e,n){let t=n==="share"?C.app.share:C.app.unshare,s=n==="share"?F:T;e.setDescription(t.description),e.addExamples(t.examples),e.consumePositionalArgs("principal"),e.addOptions([{flags:{key:s.AppName.name},env:s.AppName.envVar,description:t.options.app,optionalInNonInteractive:!0},{flags:{key:s.Access.name},env:s.Access.envVar,default:s.Access.defaultValue,description:t.options.access,optionalInNonInteractive:!0}])}export{Ee as a};
|
|
9
|
-
/*!
|
|
10
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
11
|
-
*/
|
|
12
|
-
//# sourceMappingURL=chunk-YRPTITKD.js.map
|