@microsoft/cmr-cli 0.32.3 → 0.33.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/dist/{Add-FU57YE5G.js → Add-75RSJNM4.js} +2 -2
- package/dist/{AddConfig-CI7KNLIG.js → AddConfig-4SAYYOBQ.js} +2 -2
- package/dist/{AddConnector-WH4IU3ND.js → AddConnector-P4R4NJ5P.js} +2 -2
- package/dist/{AddDeployment-GWFCPAL5.js → AddDeployment-TBA3AAGD.js} +2 -2
- package/dist/{AddDeploymentBinding-RFLI6DKH.js → AddDeploymentBinding-6FZ7Y5JM.js} +2 -2
- package/dist/{AddRayfin-VRCFEOIL.js → AddRayfin-35GBGCWF.js} +2 -2
- package/dist/{Alter-JFFT5JOA.js → Alter-U7WDVOMU.js} +2 -2
- package/dist/{AuthStatus-WCZYGI5G.js → AuthStatus-XA6RGYYZ.js} +2 -2
- package/dist/{AuthSwitch-XJMG7IUR.js → AuthSwitch-2FXB7WFU.js} +2 -2
- package/dist/Bin.js +1 -1
- package/dist/{BuildMaafApp-7AUZHYOQ.js → BuildMaafApp-3EGRD23G.js} +2 -2
- package/dist/{Clear-7B7CDIPV.js → Clear-MZGQZ2XK.js} +2 -2
- package/dist/{Cli-XZ4SJKBZ.js → Cli-6A2HUP7R.js} +3 -3
- package/dist/{CloneMaafApp-7W246RZA.js → CloneMaafApp-YAEYSP23.js} +2 -2
- package/dist/CreateMaafApp-2XYROOHB.js +23 -0
- package/dist/CreateMaafProject-Q7KIVAR2.js +11 -0
- package/dist/{DeleteMaafApp-TFGWGJO3.js → DeleteMaafApp-G3SL3GGP.js} +2 -2
- package/dist/DeployMaafApp-DBJONCUH.js +8 -0
- package/dist/DeployMaafProject-SOMMKVJO.js +11 -0
- package/dist/{DeploymentApprovals-WTXBXCKE.js → DeploymentApprovals-Y67LSQQG.js} +2 -2
- package/dist/{Dev-CIEWFRXR.js → Dev-TXJLPT7K.js} +3 -3
- package/dist/FeatureSettings-LYV6QUZB.js +11 -0
- package/dist/{GenerateCode-UQCHTRGP.js → GenerateCode-Z2OY3SZR.js} +2 -2
- package/dist/{GetMaafBuildStatus-6ZSLIZCH.js → GetMaafBuildStatus-ZR5GCREL.js} +2 -2
- package/dist/{GetMaafProjectDeployStatus-NZEMVQGJ.js → GetMaafProjectDeployStatus-OJ56DPZ6.js} +2 -2
- package/dist/{GetSettings-MVVEXMJC.js → GetSettings-64N4P6L7.js} +2 -2
- package/dist/{InfoMaafApp-7Z6OJCHD.js → InfoMaafApp-FJM7UI5H.js} +2 -2
- package/dist/InfoMaafProject-EU6OQ7DX.js +11 -0
- package/dist/{Init-PBH2IXVK.js → Init-MTONJT7V.js} +2 -2
- package/dist/{ListConnectorActions-UERYZ2C7.js → ListConnectorActions-PJTNNWLH.js} +2 -2
- package/dist/{ListConnectors-2FUTJMHY.js → ListConnectors-JYNVPB3O.js} +2 -2
- package/dist/{ListDeployments-4YWCHVKF.js → ListDeployments-UV6J6WA5.js} +2 -2
- package/dist/ListMaafApps-QPEX7JA4.js +11 -0
- package/dist/{ListMaafProjects-GNUXZSYL.js → ListMaafProjects-RDR2S3HD.js} +2 -2
- package/dist/{ListSchema-QKVHVPHB.js → ListSchema-IR7FTBRR.js} +2 -2
- package/dist/{ListSettings-IIA5OGMP.js → ListSettings-3M7UOOLI.js} +2 -2
- package/dist/{Login-BT6UTPCZ.js → Login-G7TNQISG.js} +2 -2
- package/dist/{Logout-FBJE35Q5.js → Logout-AOOISVWK.js} +2 -2
- package/dist/{MockFetch-LQLQGTNT.js → MockFetch-GKQMNDW3.js} +2 -2
- package/dist/{NodeMsalAuthenticationProvider-5TJFMHR4.js → NodeMsalAuthenticationProvider-6ABSS6QK.js} +2 -2
- package/dist/{Pack-TSFHSTB5.js → Pack-QJZCMVEM.js} +2 -2
- package/dist/{PackProject-T575KJQ4.js → PackProject-Y3Q3KOTC.js} +2 -2
- package/dist/{PlayMaafApp-74TQEAO5.js → PlayMaafApp-MH66OLOV.js} +2 -2
- package/dist/ProjectApprovals-NTFYLH3W.js +13 -0
- package/dist/{ProjectRoleAssignments-AI2FQ2VX.js → ProjectRoleAssignments-7IDK6SGJ.js} +2 -2
- package/dist/{RefreshDataSource-VARFN3IV.js → RefreshDataSource-CISFHQNA.js} +2 -2
- package/dist/{RefreshGitAuth-DC5NAZBJ.js → RefreshGitAuth-NUQ7JNJA.js} +2 -2
- package/dist/{Remove-MCQZVI3K.js → Remove-IYDTKDJE.js} +2 -2
- package/dist/{RemoveDataSource-RRND46QZ.js → RemoveDataSource-T2AG7ZWC.js} +2 -2
- package/dist/{RemoveDeployment-STNFNNZF.js → RemoveDeployment-K3GDRCXJ.js} +2 -2
- package/dist/{ServicePrincipalAuthenticationProvider-7RBHTYYY.js → ServicePrincipalAuthenticationProvider-CEHIAANL.js} +2 -2
- package/dist/{SetSetting-Q7EQNOTI.js → SetSetting-KOWAPJWX.js} +2 -2
- package/dist/{SetSetting-CEH44OT3.js → SetSetting-PD76MA6O.js} +2 -2
- package/dist/{ShareLinkCreate-ZUVHUQLH.js → ShareLinkCreate-VCWVBQ4B.js} +2 -2
- package/dist/{ShareLinkList-IEYU6NZW.js → ShareLinkList-5VG5CG34.js} +2 -2
- package/dist/ShareLinkRevoke-KYUNMTG5.js +11 -0
- package/dist/ShareList-M25UE6LD.js +11 -0
- package/dist/{ShareMaafApp-SFNOOMOD.js → ShareMaafApp-QMEJEXPZ.js} +2 -2
- package/dist/{TelemetrySettings-XCT73DEI.js → TelemetrySettings-FVJUK5MR.js} +2 -2
- package/dist/{UnshareMaafApp-TU7U3LQ3.js → UnshareMaafApp-RIUUYHIL.js} +2 -2
- package/dist/{chunk-Q3ONTUZ7.js → chunk-2UMD5IAQ.js} +2 -2
- package/dist/chunk-36YYCVFC.js +12 -0
- package/dist/chunk-3UIUI5Q2.js +11 -0
- package/dist/{chunk-KKC5ZK4D.js → chunk-4AO24KKT.js} +21 -21
- package/dist/{chunk-TMYOZDLM.js → chunk-4C6DWU2Y.js} +2 -2
- package/dist/{chunk-SIEI2EB5.js → chunk-4JTUAUHI.js} +2 -2
- package/dist/{chunk-UXKJNXTZ.js → chunk-4UHMKZLH.js} +2 -2
- package/dist/{chunk-3E7QQ2BR.js → chunk-4WQT5P2M.js} +2 -2
- package/dist/{chunk-GE3UFHZ5.js → chunk-5BE4TLDK.js} +2 -2
- package/dist/{chunk-XIX2O22O.js → chunk-A57M2UGH.js} +2 -2
- package/dist/chunk-B6REHI77.js +11 -0
- package/dist/{chunk-DKSLWH4O.js → chunk-BREK3DVB.js} +2 -2
- package/dist/{chunk-RFLXPXBN.js → chunk-C7V6WEZM.js} +2 -2
- package/dist/{chunk-DGUO74I3.js → chunk-CER3QPDN.js} +2 -2
- package/dist/{chunk-PEZMQ2A3.js → chunk-CONEIY4I.js} +2 -2
- package/dist/{chunk-UEZV46GZ.js → chunk-DOCWK326.js} +2 -2
- package/dist/{chunk-4XKA5APP.js → chunk-E2O4YZX2.js} +192 -192
- package/dist/{chunk-2LKCCYRF.js → chunk-EFTF4FA7.js} +2 -2
- package/dist/{chunk-6EF722GY.js → chunk-ELHOJBVT.js} +11 -11
- package/dist/{chunk-ADRQC63G.js → chunk-FGB6GFXI.js} +2 -2
- package/dist/chunk-GVLAG66W.js +13 -0
- package/dist/{chunk-PLFDUGBA.js → chunk-HWEMI6JI.js} +2 -2
- package/dist/{chunk-BRRT2E75.js → chunk-IM7SC23O.js} +3 -3
- package/dist/{chunk-KT2SUHGM.js → chunk-JDRULLI3.js} +2 -2
- package/dist/{chunk-EFY2BSWB.js → chunk-JMF444BA.js} +2 -2
- package/dist/{chunk-QLK3ZVWP.js → chunk-JWSX7DVU.js} +2 -2
- package/dist/chunk-MWN7R4VR.js +12 -0
- package/dist/{chunk-HSNRWBA6.js → chunk-O4G2KO7E.js} +2 -2
- package/dist/{chunk-FHE3OXIP.js → chunk-OB6WEE2V.js} +2 -2
- package/dist/{chunk-RDXQ3ZPT.js → chunk-OBATM5M4.js} +2 -2
- package/dist/{chunk-ZB6MB7GZ.js → chunk-OTXBVG3E.js} +2 -2
- package/dist/{chunk-5MHBEEMZ.js → chunk-PBXK6LJO.js} +2 -2
- package/dist/chunk-VAKAW5BD.js +12 -0
- package/dist/{chunk-4U53RYJJ.js → chunk-WS6TGUH7.js} +2 -2
- package/dist/{chunk-WTTK2GTG.js → chunk-WV7KDGLS.js} +2 -2
- package/dist/{chunk-NYPHWF7Q.js → chunk-YMRQPXY7.js} +2 -2
- package/dist/{chunk-WWVAS3DS.js → chunk-YYXAAA2U.js} +2 -2
- package/dist/{chunk-PZIEJEF5.js → chunk-ZREDMBLO.js} +2 -2
- package/package.json +4 -4
- package/dist/CreateMaafApp-6MSPHUU4.js +0 -22
- package/dist/CreateMaafProject-JKMF5TH3.js +0 -11
- package/dist/DeployMaafApp-K2APWFOD.js +0 -8
- package/dist/DeployMaafProject-6WRKGIIW.js +0 -11
- package/dist/FeatureSettings-77LZQSKD.js +0 -11
- package/dist/InfoMaafProject-SQYB736C.js +0 -11
- package/dist/ListMaafApps-ZATO77G3.js +0 -11
- package/dist/ProjectApprovals-5KLYEM7V.js +0 -13
- package/dist/ShareLinkRevoke-22RFGOFJ.js +0 -11
- package/dist/ShareList-6UWIHPBM.js +0 -11
- package/dist/chunk-2LDU3F6O.js +0 -11
- package/dist/chunk-A4PVXTJS.js +0 -13
- package/dist/chunk-BA52TY55.js +0 -12
- package/dist/chunk-HOIFXUTG.js +0 -11
- package/dist/chunk-TXMTKOEJ.js +0 -12
- package/dist/chunk-YRPTITKD.js +0 -12
|
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
var i={Account:{name:"account"},DeviceCode:{name:"device-code",camelName:"deviceCode"}},c={Collection:{name:"collection",promptMessage:"Please provide the collection name:"},Property:{name:"property",promptMessage:"Please provide the property name:"},Type:{name:"type",promptMessage:"Please provide the property type:"},Locale:{name:"locale",promptMessage:"Please provide the locale (e.g. en-US):"},Validation:{name:"validation"},Required:{name:"required"},Index:{name:"index"},IndexIgnoreCase:{name:"index-ignore-case"},IndexIgnoreAccents:{name:"index-ignore-accents"},MaxLength:{name:"max-length"},MinLength:{name:"min-length"},MaxValue:{name:"max-value"},MinValue:{name:"min-value"},Format:{name:"format"},Kind:{name:"kind"}},r={Help:{name:"help",alias:"h"},Connector:{name:"connector",promptMessage:"Please provide the connector (e.g. shared_office365):",envVar:"CONNECTOR"},ConnectionId:{name:"connection-id",alias:"c",promptMessage:"Please provide the Connection ID:",envVar:"CONNECTION_ID"},Dataset:{name:"dataset",alias:"d",promptMessage:"Please provide the dataset:",envVar:"DATASET"},Search:{name:"search",alias:"s",promptMessage:"Please provide a search term:",envVar:"SEARCH_TERM"}},s={SkipCodegen:{name:"skip-codegen",env:"SKIP_CODEGEN"},UseV1Codegen:{name:"use-v1-codegen",env:"USE_V1_CODEGEN"}},p={Table:{name:"table",alias:"t",promptMessage:"Please provide the table name:",envVar:"TABLE_NAME"},...s},l={As:{name:"as",promptMessage:"Add as table or action?",envVar:"ADD_CONNECTOR_AS"},Table:p.Table,DataverseEnvironmentId:{name:"dataverse-environment-id",promptMessage:"Please provide the Dataverse environment ID:",envVar:"DATAVERSE_ENVIRONMENT_ID"},UseSso:{name:"use-sso",env:"USE_SSO"},...s},A={Target:{name:"target"},Name:"<name>"},d={Target:{name:"target"}},v={EnvironmentId:{name:"environment-id",alias:"e",envVar:"ENVIRONMENT_ID"},Provider:{name:"provider",envVar:"ADD_BACKEND_PROVIDER"}},M={Name:{name:"name"}},I={Target:{name:"target"}},N={DataSourceName:{name:"name",alias:"n",promptMessage:"Please provide the data source or table name:",envVar:"DATA_SOURCE_NAME"}},g={DataSourceName:{name:"name",alias:"n",promptMessage:"Please provide the data source name to regenerate:",envVar:"DATA_SOURCE_NAME"},Offline:{name:"offline",env:"OFFLINE"}},P={Cloud:{name:"cloud",promptMessage:"Please select the cloud instance:",envVar:"CLOUD_INSTANCE"}},u={Port:{name:"port",alias:"p",promptMessage:"Please provide the port number:",envVar:"PORT",initialValue:"8080"},LocalAppUrl:{name:"local-app-url",alias:"l",promptMessage:"Please provide the local app URL:",envVar:"LOCAL_APP_URL",initialValue:"http://localhost:3000"},ConfigOnly:{name:"config-only",alias:"C",envVar:"CONFIG_ONLY"}},E={Search:{...r.Search,promptMessage:"Please provide a search term to filter connectors by name or ID:",envVar:"CONNECTOR_SEARCH"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},OnlyAllowed:{name:"only-allowed",camelName:"onlyAllowed"}},_={EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",promptMessage:"Please provide the environment ID to filter by:",envVar:"LIST_ENVIRONMENT_ID"},Permission:{name:"permission",alias:"p",promptMessage:"Please provide the permission filter (edit or play):",envVar:"LIST_PERMISSION"}},h={EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",promptMessage:"Please provide the environment ID to filter by:",envVar:"MAAF_ENVIRONMENT_ID"}},V={Project:{name:"project",camelName:"project"},EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},Target:{name:"target"},Status:{name:"status"},Top:{name:"top"},ContinuationToken:{name:"continuation-token",camelName:"continuationToken"}},D={Search:{...r.Search,promptMessage:"Please provide a search term to filter actions by summary or action ID:",envVar:"CONNECTOR_ACTION_SEARCH"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}};var m={EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},DisplayName:{name:"display-name",alias:"n",promptMessage:"Please provide the display name for the app:",envVar:"APP_DISPLAY_NAME"},Description:{name:"description",alias:"d",promptMessage:"Please provide a description for the app (optional):",envVar:"APP_DESCRIPTION"},BuildPath:{name:"build-path",alias:"b",promptMessage:"Please provide the build output path:",envVar:"BUILD_PATH",initialValue:"./dist"},BuildCommand:{name:"build-command",alias:"S",promptMessage:"Please provide the full command used to build your app:",envVar:"BUILD_COMMAND",initialValue:"npm run build"},BuildEntryPoint:{name:"build-entry-point",promptMessage:"Please provide the entry point HTML file:",envVar:"BUILD_ENTRY_POINT",initialValue:"index.html"},BuildType:{name:"build-type",camelName:"buildType",envVar:"BUILD_TYPE"},IconPath:{name:"icon-path",camelName:"iconPath",envVar:"APP_ICON_PATH"},LocalAppUrl:{name:"local-app-url",camelName:"localAppUrl",envVar:"LOCAL_APP_URL"}},e={name:"force-reauth",camelName:"forceReauth"},C={...m,AppId:{name:"app-id",alias:"i",promptMessage:"Please provide an app ID (letters, numbers, and underscores only, 1-64 chars):",envVar:"APP_ID"},Template:{name:"template",alias:"t",promptMessage:"Please provide the template name:",envVar:"APP_TEMPLATE"},RepositoryId:{name:"repository-id",alias:"r",promptMessage:"Please provide the repository ID:",envVar:"APP_REPOSITORY_ID"},Repo:{name:"repo",envVar:"APP_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e},T={App:{name:"app",promptMessage:"Please provide the app ID:"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},Directory:"[directory]"},O={App:{name:"app",promptMessage:"Please provide the app name or app ID:",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},S={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},NoWait:{name:"no-wait",camelName:"wait"},ForceReauth:e},R={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},ShowLog:{name:"show-log"}},x={AppName:{name:"app",envVar:"MAAF_APP_NAME"},Mode:{name:"mode",alias:"m",envVar:"MAAF_PLAY_MODE",defaultValue:"live"},Target:{name:"target"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},Branch:{name:"branch"},NoBrowser:{name:"no-browser",camelName:"browser"}},y={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},Artifact:{name:"artifact",envVar:"MAAF_DEPLOY_ARTIFACT"},Target:{name:"target",envVar:"MAAF_DEPLOYMENT"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},Force:{name:"force"},NoWait:{name:"no-wait",camelName:"wait"},ForceReauth:e},t={ProjectId:{name:"project",camelName:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"}},f={ProjectId:t.ProjectId,EnvironmentId:t.EnvironmentId,DeploymentId:{name:"deployment-id",camelName:"deploymentId"}},L={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},F={App:{name:"app",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},b={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},Access:{name:"access",envVar:"MAAF_APP_ACCESS",defaultValue:"play"}},w={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},Access:{name:"access",envVar:"MAAF_APP_ACCESS",defaultValue:"play"}},j={Repo:{name:"repo",alias:"r",promptMessage:"Please provide the GitHub repository URL (e.g. https://contoso.ghe.com/owner/repo or https://github.com/owner/repo):",envVar:"MAAF_GITHUB_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"}},a={name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},n={name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},B={AppName:a,EnvironmentId:n},U={AppName:a,EnvironmentId:n},k={AppName:a,EnvironmentId:n,Access:{name:"access",envVar:"MAAF_APP_ACCESS"}},H={AppName:a,EnvironmentId:n,LinkId:{name:"link-id",alias:"l",promptMessage:"Please provide the share link ID:",envVar:"MAAF_SHARE_LINK_ID"},Force:{name:"force",alias:"f"}},G={...m,Repo:{name:"repo",envVar:"APP_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e},Y={EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},DisplayName:{name:"display-name",alias:"n",promptMessage:"Please provide the display name for the project:"},Repo:{name:"repo"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e},K={ProjectId:{name:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"}},q={Name:{name:"name"}},o={ProjectId:{name:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},All:{name:"all"},Target:{name:"target"}},W={ProjectId:o.ProjectId,EnvironmentId:o.EnvironmentId,Role:{name:"role"}},z={ProjectId:{name:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},Target:{name:"target"},Comment:{name:"comment"},DeploymentId:{name:"deployment-id"}};export{i as a,c as b,r as c,l as d,A as e,d as f,v as g,M as h,I as i,N as j,g as k,P as l,u as m,E as n,_ as o,h as p,V as q,D as r,C as s,T as t,O as u,S as v,R as w,x,y,t as z,f as A,L as B,F as C,b as D,w as E,j as F,B as G,U as H,k as I,H as J,G as K,Y as L,K as M,q as N,o as O,W as P,z as Q};
|
|
7
|
+
var i={Account:{name:"account"},DeviceCode:{name:"device-code",camelName:"deviceCode"}},c={Collection:{name:"collection",promptMessage:"Please provide the collection name:"},Property:{name:"property",promptMessage:"Please provide the property name:"},Type:{name:"type",promptMessage:"Please provide the property type:"},Locale:{name:"locale",promptMessage:"Please provide the locale (e.g. en-US):"},Validation:{name:"validation"},Required:{name:"required"},Index:{name:"index"},IndexIgnoreCase:{name:"index-ignore-case"},IndexIgnoreAccents:{name:"index-ignore-accents"},MaxLength:{name:"max-length"},MinLength:{name:"min-length"},MaxValue:{name:"max-value"},MinValue:{name:"min-value"},Format:{name:"format"},Kind:{name:"kind"}},r={Help:{name:"help",alias:"h"},Connector:{name:"connector",promptMessage:"Please provide the connector (e.g. shared_office365):",envVar:"CONNECTOR"},ConnectionId:{name:"connection-id",alias:"c",promptMessage:"Please provide the Connection ID:",envVar:"CONNECTION_ID"},Dataset:{name:"dataset",alias:"d",promptMessage:"Please provide the dataset:",envVar:"DATASET"},Search:{name:"search",alias:"s",promptMessage:"Please provide a search term:",envVar:"SEARCH_TERM"}},s={SkipCodegen:{name:"skip-codegen",env:"SKIP_CODEGEN"},UseV1Codegen:{name:"use-v1-codegen",env:"USE_V1_CODEGEN"}},p={Table:{name:"table",alias:"t",promptMessage:"Please provide the table name:",envVar:"TABLE_NAME"},...s},l={As:{name:"as",promptMessage:"Add as table or action?",envVar:"ADD_CONNECTOR_AS"},Table:p.Table,DataverseEnvironmentId:{name:"dataverse-environment-id",promptMessage:"Please provide the Dataverse environment ID:",envVar:"DATAVERSE_ENVIRONMENT_ID"},UseSso:{name:"use-sso",env:"USE_SSO"},...s},A={Target:{name:"target"},Name:"<name>"},d={Target:{name:"target"}},v={EnvironmentId:{name:"environment-id",alias:"e",envVar:"ENVIRONMENT_ID"},Provider:{name:"provider",envVar:"ADD_BACKEND_PROVIDER"}},M={Name:{name:"name"}},I={Target:{name:"target"}},N={DataSourceName:{name:"name",alias:"n",promptMessage:"Please provide the data source or table name:",envVar:"DATA_SOURCE_NAME"}},g={DataSourceName:{name:"name",alias:"n",promptMessage:"Please provide the data source name to regenerate:",envVar:"DATA_SOURCE_NAME"},Offline:{name:"offline",env:"OFFLINE"}},P={Cloud:{name:"cloud",promptMessage:"Please select the cloud instance:",envVar:"CLOUD_INSTANCE"}},u={Port:{name:"port",alias:"p",promptMessage:"Please provide the port number:",envVar:"PORT",initialValue:"8080"},LocalAppUrl:{name:"local-app-url",alias:"l",promptMessage:"Please provide the local app URL:",envVar:"LOCAL_APP_URL",initialValue:"http://localhost:3000"},ConfigOnly:{name:"config-only",alias:"C",envVar:"CONFIG_ONLY"}},E={Search:{...r.Search,promptMessage:"Please provide a search term to filter connectors by name or ID:",envVar:"CONNECTOR_SEARCH"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},OnlyAllowed:{name:"only-allowed",camelName:"onlyAllowed"}},_={EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",promptMessage:"Please provide the environment ID to filter by:",envVar:"LIST_ENVIRONMENT_ID"},Permission:{name:"permission",alias:"p",promptMessage:"Please provide the permission filter (edit or play):",envVar:"LIST_PERMISSION"}},h={EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",promptMessage:"Please provide the environment ID to filter by:",envVar:"MAAF_ENVIRONMENT_ID"}},V={Project:{name:"project",camelName:"project"},EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},Target:{name:"target"},Status:{name:"status"},Top:{name:"top"},ContinuationToken:{name:"continuation-token",camelName:"continuationToken"}},D={Search:{...r.Search,promptMessage:"Please provide a search term to filter actions by summary or action ID:",envVar:"CONNECTOR_ACTION_SEARCH"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}};var m={EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},DisplayName:{name:"display-name",alias:"n",promptMessage:"Please provide the display name for the app:",envVar:"APP_DISPLAY_NAME"},Description:{name:"description",alias:"d",promptMessage:"Please provide a description for the app (optional):",envVar:"APP_DESCRIPTION"},BuildPath:{name:"build-path",alias:"b",promptMessage:"Please provide the build output path:",envVar:"BUILD_PATH",initialValue:"./dist"},BuildCommand:{name:"build-command",alias:"S",promptMessage:"Please provide the full command used to build your app:",envVar:"BUILD_COMMAND",initialValue:"npm run build"},BuildEntryPoint:{name:"build-entry-point",promptMessage:"Please provide the entry point HTML file:",envVar:"BUILD_ENTRY_POINT",initialValue:"index.html"},BuildType:{name:"build-type",camelName:"buildType",envVar:"BUILD_TYPE"},IconPath:{name:"icon-path",camelName:"iconPath",envVar:"APP_ICON_PATH"},LocalAppUrl:{name:"local-app-url",camelName:"localAppUrl",envVar:"LOCAL_APP_URL"}},e={name:"force-reauth",camelName:"forceReauth"},C={...m,ProjectLocalAppId:{name:"project-local-app-id",camelName:"projectLocalAppId"},AppId:{name:"app-id",alias:"i",promptMessage:"Please provide an app ID (letters, numbers, and underscores only, 1-64 chars):",envVar:"APP_ID"},Template:{name:"template",alias:"t",promptMessage:"Please provide the template name:",envVar:"APP_TEMPLATE"},RepositoryId:{name:"repository-id",alias:"r",promptMessage:"Please provide the repository ID:",envVar:"APP_REPOSITORY_ID"},Repo:{name:"repo",envVar:"APP_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e},T={App:{name:"app",promptMessage:"Please provide the app ID:"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},Directory:"[directory]"},O={App:{name:"app",promptMessage:"Please provide the app name or app ID:",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},S={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},NoWait:{name:"no-wait",camelName:"wait"},ForceReauth:e},R={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},ShowLog:{name:"show-log"}},x={AppName:{name:"app",envVar:"MAAF_APP_NAME"},Mode:{name:"mode",alias:"m",envVar:"MAAF_PLAY_MODE",defaultValue:"live"},Target:{name:"target"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},Branch:{name:"branch"},NoBrowser:{name:"no-browser",camelName:"browser"}},y={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},CommitSha:{name:"commit",alias:"c",envVar:"MAAF_COMMIT_SHA"},Artifact:{name:"artifact",envVar:"MAAF_DEPLOY_ARTIFACT"},Target:{name:"target",envVar:"MAAF_DEPLOYMENT"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},Force:{name:"force"},NoWait:{name:"no-wait",camelName:"wait"},ForceReauth:e},t={ProjectId:{name:"project",camelName:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",camelName:"environmentId",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"}},f={ProjectId:t.ProjectId,EnvironmentId:t.EnvironmentId,DeploymentId:{name:"deployment-id",camelName:"deploymentId"}},L={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},F={App:{name:"app",envVar:"MAAF_APP_NAME"},EnvironmentId:{name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"}},b={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},Access:{name:"access",envVar:"MAAF_APP_ACCESS",defaultValue:"play"}},j={AppName:{name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},Access:{name:"access",envVar:"MAAF_APP_ACCESS",defaultValue:"play"}},w={Repo:{name:"repo",alias:"r",promptMessage:"Please provide the GitHub repository URL (e.g. https://contoso.ghe.com/owner/repo or https://github.com/owner/repo):",envVar:"MAAF_GITHUB_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"}},a={name:"app",promptMessage:"Please provide the app name:",envVar:"MAAF_APP_NAME"},n={name:"environment-id",alias:"e",envVar:"MAAF_ENVIRONMENT_ID"},B={AppName:a,EnvironmentId:n},U={AppName:a,EnvironmentId:n},k={AppName:a,EnvironmentId:n,Access:{name:"access",envVar:"MAAF_APP_ACCESS"}},H={AppName:a,EnvironmentId:n,LinkId:{name:"link-id",alias:"l",promptMessage:"Please provide the share link ID:",envVar:"MAAF_SHARE_LINK_ID",camelName:"linkId"},Force:{name:"force",alias:"f"}},G={...m,Repo:{name:"repo",envVar:"APP_REPO"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e},Y={EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},DisplayName:{name:"display-name",alias:"n",promptMessage:"Please provide the display name for the project:"},Repo:{name:"repo"},OpenBrowser:{name:"open-browser",camelName:"openBrowser"},ForceReauth:e},K={ProjectId:{name:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"}},q={Name:{name:"name"}},o={ProjectId:{name:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},All:{name:"all"},Target:{name:"target"}},W={ProjectId:o.ProjectId,EnvironmentId:o.EnvironmentId,Role:{name:"role"}},z={ProjectId:{name:"project",alias:"p",promptMessage:"Please provide the project ID:"},EnvironmentId:{name:"environment-id",alias:"e",promptMessage:"Please provide the environment ID:",envVar:"ENVIRONMENT_ID"},Target:{name:"target"},Comment:{name:"comment"},DeploymentId:{name:"deployment-id"}};export{i as a,c as b,r as c,l as d,A as e,d as f,v as g,M as h,I as i,N as j,g as k,P as l,u as m,E as n,_ as o,h as p,V as q,D as r,C as s,T as t,O as u,S as v,R as w,x,y,t as z,f as A,L as B,F as C,b as D,j as E,w as F,B as G,U as H,k as I,H as J,G as K,Y as L,K as M,q as N,o as O,W as P,z as Q};
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
10
|
*/
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-WS6TGUH7.js.map
|
|
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as c}from"./chunk-
|
|
7
|
+
import{a as c}from"./chunk-BREK3DVB.js";import{m}from"./chunk-5BE4TLDK.js";import{A as a,Na as p,Ob as i,Pb as g,gb as d,y as r}from"./chunk-E2O4YZX2.js";async function w(n,t,o){let e=await p({tenantId:t,environmentId:o,logger:i(),actionsParams:{appName:n}});return{projectId:c(e.projectId),environmentId:c(e.environmentId)}}async function A(n){let{projectId:t,environmentId:o}=await j(n);n.updateEnvironmentId(o);let e=await d({projectId:t,logger:i()});return{projectId:e.projectId,tenantId:e.tenantId,environmentId:e.environmentId}}async function C(n){let{projectId:t,environmentId:o}=await j(n);n.updateEnvironmentId(o);let e=await n.getTenantIdAsync();if(!e)throw new r("Unable to determine tenant ID. Ensure you are logged in.");return{projectId:t,tenantId:e,environmentId:o}}async function j(n){let t=g(),o=(await n.getOption("project",!0))?.trim();if(!o&&t.projectConfigError)throw new a(`Unable to read ${t.fileConfig.projectConfigPath}. ${t.projectConfigError.message}`);let e=o||t.projectConfig?.projectId;if(!e)throw new r("Argument project is required. Use --project or -p to specify it, or run from a directory containing ms.project.config.json.");let f=!o||t.projectConfig?.projectId.toLowerCase()===o.toLowerCase()?t.projectConfig:void 0,s=await m(n,{failIfMissing:!1})??f?.environmentId;if(!s)throw new r("Unable to determine the environment hosting this project. Use --environment-id or -e to specify it, or run from a directory containing ms.project.config.json.");return{projectId:e,environmentId:s}}export{w as a,A as b,C as c};
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
10
|
*/
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-WV7KDGLS.js.map
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
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===`
|
|
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-ELHOJBVT.js";import{a as Ce}from"./chunk-OL6CTXQR.js";import{a as pt}from"./chunk-TYRVM4PP.js";import{A as B,Pb as Fe,b as ce,x as K}from"./chunk-E2O4YZX2.js";import{n as fe}from"./chunk-B6REHI77.js";import{a as Nu}from"./chunk-OB6WEE2V.js";import{k as Ae}from"./chunk-OUKOEUZA.js";import{a as Ou}from"./chunk-3UIUI5Q2.js";import{A as De,B as $u,G as oe,H as se,M as X,O as Fu,a as xu,d as H,l as ee,n as te,q as ne,u as re,v as ie,w as ae}from"./chunk-4AO24KKT.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
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
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
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`
|
|
@@ -29,4 +29,4 @@ ${S.message}`)}a.push({stageName:c,resolvedConfig:g})}if(!a.some(({stageName:D})
|
|
|
29
29
|
/*!
|
|
30
30
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
31
31
|
*/
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-YMRQPXY7.js.map
|
|
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as o}from"./chunk-
|
|
7
|
+
import{a as o}from"./chunk-BREK3DVB.js";import{b as I,d as h}from"./chunk-MWN7R4VR.js";import{A as p,Na as d,Ob as u,Pb as w,gb as j,y as c}from"./chunk-E2O4YZX2.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
8
|
/*!
|
|
9
9
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
10
|
*/
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-YYXAAA2U.js.map
|
|
@@ -4,8 +4,8 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as w}from"./chunk-OL6CTXQR.js";import{
|
|
7
|
+
import{a as w}from"./chunk-OL6CTXQR.js";import{Ga as g,Ob as M,Pb as b,x as c}from"./chunk-E2O4YZX2.js";import{M as p}from"./chunk-4AO24KKT.js";var h=1e3;function A(t){if(typeof t=="string"){let n=t.trim();return n?{errorMessage:n}:{}}if(!t||typeof t!="object")return{};let e=t,a=typeof e.code=="string"&&e.code.trim()?e.code.trim():void 0;if(typeof e.error=="string"){let n=e.error.trim(),o=S(a,n||void 0);return o?{errorMessage:o}:{}}let d,r,i;if(e.error&&typeof e.error=="object"){let n=e.error.code,o=e.error.message,s=e.error.buildOutput;d=typeof n=="string"&&n.trim()?n.trim():void 0,r=typeof o=="string"&&o.trim()?o.trim():void 0,i=typeof s=="string"&&s.trim()?s.trim():void 0}!r&&typeof e.message=="string"&&e.message.trim()&&(r=e.message.trim()),!i&&typeof e.buildOutput=="string"&&e.buildOutput.trim()&&(i=e.buildOutput.trim());let l=S(d??a,r);return l||i?{errorMessage:l,buildOutput:i}:{}}async function I(t){let e=M(),a=h,d=t.maxIntervalMs??1/0,r=Math.min(d,Math.max(a,t.initialWaitMs)),i=t.deadlineMs!=null?Date.now()+t.deadlineMs:null,l=t.spinnerLabel??"Waiting for build status...",n=b().origin.toLowerCase().startsWith("plugin/"),s=!t.isJsonMode&&process.stdout.isTTY===!0&&!n?new w:null;!t.isJsonMode&&n&&p(l),s?.start(l);try{for(;;){if(i!==null&&Date.now()>=i)throw new c(`Build did not complete within ${Math.round(t.deadlineMs/6e4)} minutes. Commit SHA: ${t.commitSha}.`);await B(r);let u=await g({logger:e,actionsParams:{appName:t.appName,commitSha:t.commitSha}});switch(u.status){case"Succeeded":return u;case"Failed":case"Canceled":{s?.stop();let m=A(u.result);!t.isJsonMode&&m.buildOutput&&p(m.buildOutput);let f=m.errorMessage??"",y=f?`Build ${u.status.toLowerCase()}: ${f}.`:`Build ${u.status.toLowerCase()}.`;throw new c(y+(t.commitSha?` Commit SHA: ${t.commitSha}.`:""))}case"NotStarted":case"Running":{let m=u.retryAfterMs??r;r=Math.min(d,Math.max(a,m));break}default:return L(u.status)}}}finally{s?.stop()}}function L(t){throw new c(`Unexpected build status from server: ${String(t)}.`)}function S(t,e){return t&&e?`${t}: ${e}`:t??e}function B(t){return new Promise(e=>setTimeout(e,t))}export{A as a,I as b};
|
|
8
8
|
/*!
|
|
9
9
|
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
10
|
*/
|
|
11
|
-
//# sourceMappingURL=chunk-
|
|
11
|
+
//# sourceMappingURL=chunk-ZREDMBLO.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/cmr-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Command-line interface for building and managing Copilot Managed Runtime",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"git": ">=2.27.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@microsoft/cmr-apps-actions": "0.
|
|
40
|
-
"@microsoft/cmr-apps-codegen": "0.5.
|
|
41
|
-
"@microsoft/cmr-apps-common": "0.
|
|
39
|
+
"@microsoft/cmr-apps-actions": "0.28.0",
|
|
40
|
+
"@microsoft/cmr-apps-codegen": "0.5.3",
|
|
41
|
+
"@microsoft/cmr-apps-common": "0.33.0",
|
|
42
42
|
"@azure/msal-node": "5.2.2",
|
|
43
43
|
"@azure/msal-node-extensions": "5.2.2",
|
|
44
44
|
"@clack/prompts": "1.4.0",
|
|
@@ -1,22 +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 Me,b as De,c as Pe,d as Ue}from"./chunk-EFY2BSWB.js";import{b as xe}from"./chunk-PEZMQ2A3.js";import{b as Be}from"./chunk-TXMTKOEJ.js";import{a as Ee}from"./chunk-2VJIWD7V.js";import{a as Te}from"./chunk-OL6CTXQR.js";import{a as $e,b as Le,c as Ve,d as Fe}from"./chunk-BA52TY55.js";import{b as Ge,c as _e}from"./chunk-5MHBEEMZ.js";import{a as Ne,b as ke}from"./chunk-DGUO74I3.js";import{a as je}from"./chunk-RDXQ3ZPT.js";import"./chunk-Q3ONTUZ7.js";import"./chunk-XIX2O22O.js";import{a as Re,b as Ie}from"./chunk-TMYOZDLM.js";import"./chunk-TYRVM4PP.js";import{a as ve,b as Ae,d as S,i as Q,j as Se}from"./chunk-ZB6MB7GZ.js";import"./chunk-2LKCCYRF.js";import{i as U,m as Ce}from"./chunk-GE3UFHZ5.js";import{A as z,Ga as ye,K as ge,Nb as Y,Ob as K,Pb as be,i as me,na as he,w as M,x as d,y as q,z as D}from"./chunk-4XKA5APP.js";import{m as Oe}from"./chunk-2LDU3F6O.js";import"./chunk-RFLXPXBN.js";import"./chunk-FHE3OXIP.js";import{e as we}from"./chunk-OUKOEUZA.js";import{s as i}from"./chunk-4U53RYJJ.js";import{a as v}from"./chunk-HOIFXUTG.js";import{C as le,D as ue,E as W,I as x,K as fe,a as se,i as pe,o as ce,y as de,z as J}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";import*as m from"fs";import*as Ye from"os";import*as g from"path";import*as I from"fs";import*as He from"os";import*as L from"path";function X(e){if(!e)throw new d("Template source is empty. Use --template to specify one.");if(/^https?:\/\//i.test(e)){let n;try{n=new URL(e)}catch{throw new d(`Template source '${e}' is not a valid URL.`)}if(n.hostname.toLowerCase()!=="github.com")throw new d(`Template source '${e}' uses host '${n.hostname}'; only github.com URLs are supported.`);let y=n.pathname.split("/").filter(Boolean);if(y.length<2)throw new d(`Template source '${e}' is missing the owner/repo path. Use 'https://github.com/<owner>/<repo>'.`);let[$,u,...E]=y,c=u.endsWith(".git")?u.slice(0,-4):u,C=n.hash?n.hash.slice(1):void 0;if(E.length===0)return{owner:$,repo:c,subdir:"",ref:C};if(E[0].toLowerCase()==="tree"&&E.length>=2)return{owner:$,repo:c,subdir:E.slice(2).join("/"),ref:C??E[1]};throw E[0].toLowerCase()==="blob"?new d(`Template source '${e}' points at a file ('/blob/...'). Templates must be a directory \u2014 use the '/tree/<branch>/<subdir>' URL form instead.`):new d(`Template source '${e}' has an unrecognised path. Use 'https://github.com/<owner>/<repo>' or 'https://github.com/<owner>/<repo>/tree/<branch>/<subdir>'.`)}let r=/^([a-z][a-z0-9+.-]*):/i.exec(e);if(r){let n=r[1].toLowerCase();if(n!=="github"&&n!=="gh")throw new d(`Template source '${e}' uses unsupported provider prefix '${r[1]}:'. Only 'github:' (or 'gh:' shorthand) templates are supported.`)}let t=e.replace(/^(?:github|gh):/i,""),[a,l]=t.split("#",2),s=a.split("/").filter(Boolean);if(s.length<2)throw new d(`Template source '${e}' is missing the owner/repo path. Expected 'github:<owner>/<repo>[/<subdir>]'.`);let[w,h,...p]=s;return{owner:w,repo:h,subdir:p.join("/"),ref:l||void 0}}function Je(e,r){let t=X(e),a=`https://github.com/${t.owner}/${t.repo}.git`,l=I.mkdtempSync(L.join(He.tmpdir(),"ms-template-"));try{let s=["clone","--depth=1","--filter=blob:none"];t.subdir&&s.push("--sparse"),t.ref&&s.push("--branch",t.ref),s.push(a,l),S(s,{network:!0}),t.subdir&&S(["-C",l,"sparse-checkout","set",t.subdir]);let w=t.subdir?L.join(l,t.subdir):l;if(!I.existsSync(w))throw new d(`Template subdirectory '${t.subdir}' was not found in https://github.com/${t.owner}/${t.repo}${t.ref?` at ref '${t.ref}'`:""}. If the branch name contains '/', use the 'github:<owner>/<repo>/<subdir>#<branch>' form to disambiguate.`);I.mkdirSync(r.dir,{recursive:!0}),I.cpSync(w,r.dir,{recursive:!0,force:!0,filter:h=>L.basename(h)!==".git"})}finally{I.rmSync(l,{recursive:!0,force:!0})}}var ot="github:microsoft/Managed-Apps/templates/vite8",at=new Set([".ds_store","desktop.ini","thumbs.db"]),st=new Set([ce,".git","README.md"]),te="Initial scaffold from 'ms app create'";async function Qt(e){de();try{await pt(e)}catch(r){throw r instanceof be||J()&&xe(r),r}}async function pt(e){wt(e),await e.runVerb();let r=await e.getTenantIdAsync();if(!r)throw new d("Unable to determine tenant ID. Ensure you are logged in.");let t=Y(),a=K(),{region:l}=ge(),s=await e.getOption("displayName");if(!s)throw new d("Argument displayName is required. Use --display-name or -n to specify it.");let w=e.getPositionalArg(0),h=await e.getOption("template",!0),p=await e.getOption("repo",!0),{repoType:n,remoteUrl:y}=_e(p),$=p!==void 0&&p.trim().length>0,u=a.projectConfig;if(a.projectConfigError)throw new D(`Unable to read ${a.fileConfig.projectConfigPath}. ${a.projectConfigError.message}`);if(u&&$)throw new d("'--repo' cannot be specified inside a managed project. Omit '--repo' to use the project's repository, or run the command outside the managed project to create a standalone app.");if(u)if(n=u.repoType,n==="github"){if(!u.externalRepoUrl)throw new D("The current GitHub-backed managed project is missing externalRepoUrl.");y=Ge(u.externalRepoUrl,"The current managed project's externalRepoUrl")}else y=void 0;let E=w===void 0&&u!==void 0;if(w===void 0&&!E&&!Ee(s))throw new d("The display name cannot be used as a directory name. Specify a target directory as the first argument.");let c=w??(E?".":s),C=await e.getOption("repositoryId",!0),V=u?.projectId,A=u!==void 0,O,G=!1,re=[];if(A){let o=a.fileConfig.projectConfigPath;if(!o)throw new D("Unable to locate ms.project.config.json for the current managed project.");O=g.dirname(g.resolve(o));let f=ee(O,c),k=ee(O,O);G=f===k}let Ke=await e.getOption(i.BuildType.camelName,!0),ne=await e.getOption("buildCommand",!0),P=Le({buildType:Ke,buildPath:await e.getOption("buildPath",!0),buildCommand:ne,buildEntryPoint:await e.getOption("buildEntryPoint",!0)});P.buildType==="none"&&ne?.trim()&&fe("--build-command is ignored when --build-type none is selected.");let R=e.isJsonMode();if(!R){let o=pe(l),f=o?`cloud ${o}`:`region ${l}`;x(`About to create app '${s}' in tenant ${r} (${f}).`)}let ie=!R&&process.stdout.isTTY;!R&&!ie&&x("Running preflight checks...");let T=ie?new Te:null;T?.start("Running preflight checks...");try{if(n==="none"&&C)throw new d("'--repo none' is incompatible with '--repository-id'. Use '--repo none' for an app with no git binding, or omit '--repo' (or pass a repo URL) to use a backing repository.");if(C&&V)throw new d("A managed project is incompatible with '--repository-id'. Use a managed project or a standalone platform-managed repository, not both.");P.buildType!=="none"&&(T?.update("Validating template source..."),mt(h)),(n!=="none"||P.buildType!=="none")&&(T?.update("Checking git installation..."),Re()),n==="native"&&(T?.update("Checking Git Credential Manager..."),Ie()),T?.update("Verifying target directory is writable..."),ht(c),n==="github"&&!A?(T?.update("Verifying target directory is empty..."),qe(c),T?.update(`Verifying ${y} is empty...`),gt(y)):(T?.update("Verifying target directory is empty..."),We(c,G))}finally{T?.stop()}let B=await Ce(e,{failIfMissing:!1});if(u&&B&&B.toLowerCase()!==u.environmentId.toLowerCase())throw new d(`Environment '${B}' does not match the current managed project's environment '${u.environmentId}'.`);let _=u?.environmentId??B,oe=we("MAAF_DOGFOOD");if(oe&&_)throw new d("MS_CLI_MAAF_DOGFOOD cannot be used with an explicit or configured environment ID.");let Qe=_?void 0:Ne(e,r,t,"CreateMaafApp",{dogfood:oe}),Xe=await e.getOption("description",!0),H=await ke(_,Qe);e.updateEnvironmentId(H),n==="github"&&!A?qe(c):re=We(c,G);let Ze=await e.getOption(i.OpenBrowser.camelName,!0)??!1,et=await e.getOption(i.ForceReauth.camelName,!0)??!1,F=V;if(n==="native"&&!F&&Oe("alm")){let o=await he({displayName:s});u=Be(o,e.getCloud()),F=u.projectId}R&&n==="github"&&W({phase:"create-validation"});let tt={displayName:s,description:Xe,repositoryId:C,remoteUrl:y,repoType:n,origin:a.origin,...F&&{projectId:F}},rt=({isRetry:o})=>ye({tenantId:r,environmentId:H,logger:t,actionsParams:{...tt,...et&&!o&&{forceReauth:!0}}}),ae;try{ae=await je(rt,{repoType:n,externalRepoUrl:y,tenantId:r,jsonMode:R,openBrowser:Ze,verb:"app create"})}catch(o){let f=$e(o,{repoType:n,environmentId:H});throw f||o}let{app:b,cloneUrl:j}=ae;if(n==="native"&&!A&&!j){let o=Z(b.id,b.environmentId);throw new M(`App '${b.displayName}' was created on the server, but creating a git repository failed. This is a platform-side issue; please report it. In the meantime, the partial app needs to be cleaned up.
|
|
8
|
-
`+o)}R||x(`App '${b.displayName}' (${b.id}) was created on the server. Setting up local files.`);let N=null;try{let o=()=>O?ee(O,c):c,f=o();if(n==="github"&&!A){if(ft({directory:f,repoUrl:y}),m.readdirSync(f).filter(nt=>nt!==".git").length>0)throw new d(`Repository ${y} is not empty (must contain no files of any kind, including hidden files like .gitignore, .gitattributes, README, or LICENSE). Choose a different repository to create an app or run 'ms app init' to update the existing app.
|
|
9
|
-
|
|
10
|
-
`+Z(b.id,b.environmentId))}else n==="native"&&!A?Q({directory:f,gitUrl:j,loginAuthority:e.getLoginAuthority(r),authResource:e.getAuthResourceUrl()}):m.mkdirSync(f,{recursive:!0});P.buildType!=="none"&&(f=o(),R||x(`Fetching template '${h}' into ${f}...`),Je(h,{dir:f}),f=o(),await Fe(f,R,e.getHttpClient()));let k=Ve({appId:b.id,appDisplayName:b.displayName,description:b.description,environmentId:b.environmentId,repoType:n,cloud:e.getCloud(),...P,repositoryId:n==="native"?b.repositoryId:void 0,externalRepoUrl:n==="github"?y:void 0});f=o(),await me(g.join(f,se),k),n!=="none"&&(f=o(),N=await ct(f,R,n==="native"&&!A?j:void 0,n==="native"&&!A?K().sessionId:void 0,n==="native",re))}catch(o){if(o instanceof d&&n!=="native")throw o;let f=o instanceof Error?o.message:String(o),k=`App '${b.displayName}' was created, but local setup failed: ${f}
|
|
11
|
-
The local directory ${c} may contain partial files; remove them or choose a new directory before retrying.
|
|
12
|
-
`+Z(b.id,b.environmentId);throw o instanceof M?(o.message=k,o):new M(k)}if(N&&!N.success)throw dt({appDisplayName:b.displayName,appId:b.id,appDir:c,jsonMode:R,gitRemoteUrl:n==="native"&&!A?j:void 0,externalRepoUrl:n==="github"?y:void 0,pushOutcome:N});if(R){let o={appId:b.id,repoType:n,...n==="github"&&y&&{externalRepoUrl:y},...n==="native"&&!A&&j&&{gitRemoteUrl:j},appDir:c,...N&&{push:N}};J()?W({success:!0,...o}):ue(o)}else{let o=c==="."?"the current folder":c;le(`Created app '${b.displayName}' in ${o}.`),n==="github"?x(`Bound to external repository: ${y}.`):n==="none"&&x("Your app has been created. Run `git init` (or your VCS of choice) when ready; subsequent `ms app deploy` calls do not require a git remote.")}}async function ct(e,r,t,a,l=t!==void 0,s=[]){let w=s.map(C=>`:(exclude)${C}`),h=["-c","core.autocrlf=false"],p="git -c core.autocrlf=false",n=[...h,"add","--",".",...w],y=[`${p} add -- .`,...w.map(C=>`"${C}"`)].join(" ").trim(),$=`${p} commit -m "${te}" -- .`,u="git push -u origin HEAD",E=t&&a?[`x-ms-client-session-id: ${a}`]:void 0,c="add";try{return S(n,{cwd:e}),c="commit",S([...h,"commit","-m",te,"--","."],{cwd:e}),t&&(c="fetch",Ae(t,r,"the initial git fetch and push"),Se(e,t,void 0,E),c="reconcile",lt(e)),c="push",S([...l?["-c","http.sslVersion=tlsv1.3"]:[],"push","-u","origin","HEAD"],{cwd:e,network:!0,classify:t?{action:`pushing to ${ve(t)}`}:void 0,httpExtraHeaders:E}),{success:!0}}catch(C){Y().trackErrorEvent("Maaf.Create.ScaffoldPushFailed",{error:C instanceof Error?C.stack??`${C.name}: ${C.message}`:String(C)});let V={code:"GitOperationFailed",message:`The initial Git synchronization failed during '${c}'. Review the Git output and retry.`},A=t?void 0:[...c==="add"?[y]:[],...c==="add"||c==="commit"?[$]:[],u].join(" && ");return{success:!1,failedStage:c,error:V,retryCommand:A,cause:C}}}function dt(e){let{appDisplayName:r,appId:t,appDir:a,jsonMode:l,gitRemoteUrl:s,externalRepoUrl:w,pushOutcome:h}=e,p=h.cause instanceof M?h.cause:void 0,n=h.error?.message??"Review the Git output and retry.",y=l?n:p?.message??n,$=h.retryCommand?`To finish wiring it up, run:
|
|
13
|
-
${h.retryCommand}`:`Resolve the git issue above, then finish the initial push from ${a}.`,u=`App '${r}' was provisioned and the local scaffold was created, but the initial repository synchronization failed.
|
|
14
|
-
Failed stage: ${h.failedStage}.
|
|
15
|
-
${y}
|
|
16
|
-
${$}`,E={appId:t,projectPath:a,...s&&{gitRemoteUrl:s},...w&&{externalRepoUrl:w},appCreated:!0,scaffoldCreated:!0,initialPushSucceeded:!1,recoveryRequired:"git-initial-push",failedStage:h.failedStage,...h.retryCommand&&{retryCommand:h.retryCommand}};return p instanceof q?new q(u,p.errorData,{errorCode:p.errorCode,exitCode:p.exitCode,retryable:p.retryable,outputDetails:E}):p instanceof z?new z(u,p.errorData,{errorCode:p.errorCode,exitCode:p.exitCode,retryable:p.retryable,outputDetails:E}):new M(u,p?.exitCode,p?.errorData,{errorCode:p?.errorCode??"GitOperationFailed",errorCategory:p?.errorCategory,exitCode:p?.exitCode,retryable:p?.retryable,outputDetails:E})}function lt(e){S(["rev-parse","--verify","origin/main"],{cwd:e,allowFailure:!0,emitStderr:!1}).success&&(S(["reset","--soft","origin/main"],{cwd:e}),S(["commit","-m",te],{cwd:e}))}function ut(e){return`Cannot access repository '${e}', so no app was created. `+Pe()}function ft(e){Ue(e)}function Z(e,r){return`The server app is still in environment ${r} (id: ${e}).
|
|
17
|
-
If you want to clean it up before retrying, run the following command:
|
|
18
|
-
${"ms"} app delete --app ${e} --environment-id ${r} --force`}function mt(e){X(e)}function We(e,r=!1){if(!m.existsSync(e))return[];let t=r?st:new Set,a=m.readdirSync(e),l=a.filter(w=>at.has(w.toLowerCase()));if(a.filter(w=>!t.has(w)&&!l.includes(w)).length>0)throw new d(`'${e}' is not empty. Specify an empty directory as the first argument, or run 'ms app init' to bind an existing project to a new app.`);return l}function qe(e){if(!m.existsSync(e))return;if(m.readdirSync(e).length>0)throw new d(`'${e}' is not empty. --repo requires an empty target directory; specify an empty directory as the first argument, move to one before running, or run 'ms app init' to bind an existing project to a new app.`)}function gt(e){let r;try{r=m.mkdtempSync(g.join(Ye.tmpdir(),"ms-app-create-probe-"))}catch{return}try{let t=S(["clone","--depth=1","--filter=blob:none","--no-checkout",e,r],{allowFailure:!0,emitStderr:!1});if(!t.success){let s=t.stderr;if(De(s))throw new D(ut(e),{underlyingError:Me(t.error,s)});return}let a=S(["-C",r,"ls-tree","-r","HEAD"],{captureStdout:!0,allowFailure:!0,emitStderr:!1});if(!a.success)return;if(a.stdout.trim().length>0)throw new d(`Repository ${e} is not empty (must contain no tracked files of any kind, including hidden files like .gitignore, .gitattributes, README, or LICENSE). Choose a different repository to create an app or run 'ms app init' to update the existing app.`)}finally{try{m.rmSync(r,{recursive:!0,force:!0})}catch{}}}function ht(e){let r=e;for(;!m.existsSync(r);){let t=g.dirname(r);if(t===r)break;r=t}try{m.accessSync(r,m.constants.W_OK)}catch{throw new D(`'${e}' is not writable. Choose a different directory or fix the permissions and retry.`)}}function ee(e,r){let t=ze(e),a=ze(r),l=g.relative(t,a);if(l===".."||l.startsWith(`..${g.sep}`)||g.isAbsolute(l))throw new d(`The app directory '${g.resolve(r)}' must be inside the managed project at '${g.resolve(e)}'.`);return a}function ze(e){let t=g.resolve(e),a=[];for(;!yt(t);){let s=g.dirname(t);if(s===t)break;a.unshift(g.basename(t)),t=s}let l=m.realpathSync.native(t);return g.resolve(l,...a)}function yt(e){try{return m.lstatSync(e),!0}catch(r){if(r.code==="ENOENT")return!1;throw r}}function wt(e){e.setDescription(v.app.create.description),e.addExamples(v.app.create.examples),e.consumePositionalArg("[directory]"),e.addOptions([{flags:{key:i.EnvironmentId.name,alias:i.EnvironmentId.alias},env:i.EnvironmentId.envVar,description:v.app.create.options.environmentId,optionalInNonInteractive:!0},U({flags:{key:i.DisplayName.name,alias:i.DisplayName.alias},env:i.DisplayName.envVar,message:i.DisplayName.promptMessage,description:v.app.create.options.displayName}),{flags:{key:i.Description.name,alias:i.Description.alias},env:i.Description.envVar,description:v.app.create.options.description,optionalInNonInteractive:!0},{flags:{key:i.RepositoryId.name,alias:i.RepositoryId.alias},env:i.RepositoryId.envVar,description:v.app.create.options.repositoryId,optionalInNonInteractive:!0},{flags:{key:i.Template.name,alias:i.Template.alias},env:i.Template.envVar,default:ot,description:v.app.create.options.template,optionalInNonInteractive:!0},{flags:{key:i.Repo.name},env:i.Repo.envVar,description:v.app.create.options.repo,optionalInNonInteractive:!0},{flags:{key:i.BuildType.name},env:i.BuildType.envVar,description:v.app.create.options.buildType,optionalInNonInteractive:!0,hidden:!0},U({flags:{key:i.BuildPath.name,alias:i.BuildPath.alias},env:i.BuildPath.envVar,message:i.BuildPath.promptMessage,initialValue:i.BuildPath.initialValue,description:v.app.create.options.buildPath}),U({flags:{key:i.BuildCommand.name,alias:i.BuildCommand.alias},env:i.BuildCommand.envVar,message:i.BuildCommand.promptMessage,initialValue:i.BuildCommand.initialValue,description:v.app.create.options.buildCommand}),U({flags:{key:i.BuildEntryPoint.name},env:i.BuildEntryPoint.envVar,message:i.BuildEntryPoint.promptMessage,initialValue:i.BuildEntryPoint.initialValue,default:"index.html",description:v.app.create.options.buildEntryPoint})]),e.addSwitch({flags:{key:i.OpenBrowser.name},description:v.app.create.options.openBrowser}),e.addSwitch({flags:{key:i.ForceReauth.name},description:v.app.create.options.forceReauth})}export{Z as buildOrphanedAppRecoveryHint,ee as canonicalizeAndValidateManagedProjectAppDirectory,ft as cloneRepo,ct as commitAndPushScaffoldAsync,Qt as createMaafAppAsync,gt as ensureExternalRepoIsEmpty,qe as ensureRepoTargetDirectoryEmpty,We as ensureTargetDirectoryEmpty,ht as ensureTargetDirectoryWritable,mt as ensureTemplateSourceValid,Q as initLocalRepo};
|
|
19
|
-
/*!
|
|
20
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
21
|
-
*/
|
|
22
|
-
//# sourceMappingURL=CreateMaafApp-6MSPHUU4.js.map
|
|
@@ -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{d as Q}from"./chunk-EFY2BSWB.js";import{b as z}from"./chunk-PEZMQ2A3.js";import{b as A,c as M}from"./chunk-TXMTKOEJ.js";import{a as H}from"./chunk-2VJIWD7V.js";import{a as _}from"./chunk-OL6CTXQR.js";import{b as X,c as Z}from"./chunk-5MHBEEMZ.js";import{a as K,b as Y}from"./chunk-DGUO74I3.js";import{a as q}from"./chunk-RDXQ3ZPT.js";import"./chunk-Q3ONTUZ7.js";import"./chunk-XIX2O22O.js";import{a as F}from"./chunk-TMYOZDLM.js";import"./chunk-TYRVM4PP.js";import{d as j,i as V,j as W}from"./chunk-ZB6MB7GZ.js";import{i as J,m as B}from"./chunk-GE3UFHZ5.js";import{Nb as G,Pb as L,ja as P,ma as N,na as T,x as l,z as S}from"./chunk-4XKA5APP.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import{L as s}from"./chunk-4U53RYJJ.js";import{a as f}from"./chunk-HOIFXUTG.js";import{C as O,D,E as $,I as k,o as c,y as v,z as U}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";import*as a from"fs";import*as I from"path";var ae="Initial scaffold from 'ms project create'";function se(e){e.setDescription(f.project.create.description),e.addExamples(f.project.create.examples),e.consumePositionalArg("[directory]"),e.addOptions([J({flags:{key:s.DisplayName.name,alias:s.DisplayName.alias},message:s.DisplayName.promptMessage,description:f.project.create.options.displayName}),{flags:{key:s.EnvironmentId.name,alias:s.EnvironmentId.alias},env:s.EnvironmentId.envVar,description:f.project.create.options.environmentId,optionalInNonInteractive:!0},{flags:{key:s.Repo.name},description:f.project.create.options.repo,optionalInNonInteractive:!0}]),e.addSwitch({flags:{key:s.OpenBrowser.name},description:f.project.create.options.openBrowser}),e.addSwitch({flags:{key:s.ForceReauth.name},description:f.project.create.options.forceReauth})}async function xe(e){v();try{await ce(e)}catch(o){throw o instanceof L||U()&&z(o),o}}async function ce(e){se(e),await e.runVerb();let o=(await e.getOption("displayName"))?.trim();if(!o)throw new l("Argument displayName is required. Use --display-name or -n to specify it.");if(o.length>N)throw new l(`Argument displayName must not exceed ${N} characters.`);let g=e.getPositionalArg(0);if(g===void 0&&!H(o))throw new l("The display name cannot be used as a directory name. Specify a target directory as the first argument.");let n=g??o,C=await e.getOption(s.Repo.name,!0),{repoType:p,remoteUrl:b}=Z(C);if(p==="none")throw new l("'--repo none' is not supported for managed projects. Omit '--repo' for a platform-managed repository or pass an external GitHub repository URL.");F(),E(n);let R=await e.getTenantIdAsync();if(!R)throw new l("Unable to determine tenant ID. Ensure you are logged in.");let w=e.isJsonMode(),ee=await e.getOption(s.OpenBrowser.camelName,!0)??!1,te=await e.getOption(s.ForceReauth.camelName,!0)??!1,y=!w&&process.stdout.isTTY?new _:null,m=w?void 0:d=>{y?y.update(d):k(d)},re=d=>{y?y.start(d):m?.(d)};try{re("Resolving environment...");let d=await B(e,{failIfMissing:!1}),oe=d?void 0:K(e,R,G(),"CreateMaafProject"),ie=await Y(d,oe);e.updateEnvironmentId(ie),m?.("Creating managed project..."),w&&p==="github"&&$({phase:"project-create-validation"});let t=await q(({isRetry:r})=>T({displayName:o,...p==="github"&&{externalRepo:{provider:"GitHubEnterprise",remoteUrl:b}},...p==="github"&&te&&!r&&{forceReauth:!0}}),{repoType:p,externalRepoUrl:b,tenantId:R,jsonMode:w,openBrowser:ee,verb:"project create"}),x=t.repositoryId?.trim();if(!x)throw new S(`Managed project '${t.displayName}' (${t.projectId}) was created, but the service response did not include a repository ID.`,{partialSuccess:!0,projectId:t.projectId,phase:"repository-metadata"});let i;if(p==="github"){let r=t.cloneUrl?.trim()||b;try{i=X(r,"The service clone URL")}catch(ne){throw u(t,b,"repository-metadata",`Managed project '${t.displayName}' (${t.projectId}) was created, but the service returned an invalid external repository clone URL.`,ne)}}else i=P(x);let h;if(p==="github"){try{m?.("Cloning external project repository..."),E(n),Q({directory:n,repoUrl:i})}catch(r){throw u(t,i,"git-clone",`Managed project '${t.displayName}' (${t.projectId}) was created, but the external repository could not be cloned. Clone ${i} manually before creating ${c}.`,r)}try{m?.("Writing project configuration...");let r=I.join(n,c);if(a.existsSync(r))throw new l(`Repository '${i}' already contains ${c}. Use the existing managed project configuration instead of creating another project.`);h=A(t,e.getCloud(),i),M(r,h)}catch(r){throw u(t,i,"local-files",`Managed project '${t.displayName}' (${t.projectId}) was created and the external repository was cloned, but ${c} could not be created.`,r)}}else{try{m?.("Writing project configuration..."),E(n),a.mkdirSync(n,{recursive:!0}),h=A(t,e.getCloud());let r=I.join(n,c);M(r,h)}catch(r){throw u(t,i,"local-files",`Managed project '${t.displayName}' (${t.projectId}) was created, but its local files could not be prepared. Use ${i} to set up the local working tree manually.`,r)}try{m?.("Initializing project repository..."),V({directory:n,gitUrl:i,loginAuthority:e.getLoginAuthority(R),authResource:e.getAuthResourceUrl(),emitRemoteError:!1}),W(n,i,"main",void 0,!1),j(["checkout","-B","main","origin/main"],{cwd:n,emitStderr:!1})}catch(r){throw u(t,i,"git-setup",`Managed project '${t.displayName}' and ${c} were created, but local Git setup failed. Use ${i} to set up the local working tree manually.`,r)}}try{m?.("Committing project configuration..."),j(["add","--",c],{cwd:n,emitStderr:!1}),j(["commit","-m",ae,"--",c],{cwd:n,emitStderr:!1})}catch(r){throw u(t,i,"git-commit",`Managed project '${t.displayName}', ${c}, and the local repository were created, but the local commit was not completed. Complete git add and git commit manually.`,r)}try{m?.("Pushing project repository..."),j(["-c","http.sslVersion=tlsv1.3","push","-u","origin",p==="github"?"HEAD":"main"],{cwd:n,network:!0,...p==="native"&&{classify:{action:"pushing the managed project repository"}},emitStderr:!1})}catch(r){throw u(t,i,"git-push",`Managed project '${t.displayName}', ${c}, the local repository, and the local commit were created, but git push failed. Retry git push.`,r)}y?.stop(),w?p==="github"?$({success:!0,...h}):D(h):O(`Created project '${t.displayName}'.`)}finally{y?.stop()}}function E(e){if(a.existsSync(e)){if(!a.statSync(e).isDirectory())throw new l(`'${e}' exists and is not a directory.`);if(a.readdirSync(e).length>0)throw new l(`'${e}' is not empty. Specify an empty directory.`)}let o=e;for(;!a.existsSync(o);){let g=I.dirname(o);if(g===o)break;o=g}try{a.accessSync(o,a.constants.W_OK)}catch{throw new S(`'${e}' is not writable. Choose a different directory or fix its permissions.`)}}function pe(e){return e instanceof Error?e.message:String(e)}function u(e,o,g,n,C){return new S(n,{partialSuccess:!0,projectId:e.projectId,cloneUrl:o,phase:g,underlyingError:pe(C)})}export{c as ProjectConfigFileName,xe as createMaafProjectAsync,E as ensureProjectTargetDirectory};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=CreateMaafProject-JKMF5TH3.js.map
|
|
@@ -1,8 +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,b}from"./chunk-A4PVXTJS.js";import"./chunk-NYPHWF7Q.js";import"./chunk-PLFDUGBA.js";import"./chunk-6EF722GY.js";import"./chunk-HBLO3WDD.js";import"./chunk-QLK3ZVWP.js";import"./chunk-PZIEJEF5.js";import"./chunk-OL6CTXQR.js";import"./chunk-RDXQ3ZPT.js";import"./chunk-Q3ONTUZ7.js";import"./chunk-XIX2O22O.js";import"./chunk-TYRVM4PP.js";import"./chunk-ZB6MB7GZ.js";import"./chunk-2LKCCYRF.js";import"./chunk-GE3UFHZ5.js";import"./chunk-4XKA5APP.js";import"./chunk-2LDU3F6O.js";import"./chunk-RFLXPXBN.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import"./chunk-4U53RYJJ.js";import"./chunk-HOIFXUTG.js";import"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";export{a as deployMaafAppAsync,b as executeDeployAsync};
|
|
8
|
-
//# sourceMappingURL=DeployMaafApp-K2APWFOD.js.map
|
|
@@ -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{b as U}from"./chunk-A4PVXTJS.js";import"./chunk-NYPHWF7Q.js";import"./chunk-PLFDUGBA.js";import"./chunk-6EF722GY.js";import"./chunk-HBLO3WDD.js";import"./chunk-QLK3ZVWP.js";import"./chunk-PZIEJEF5.js";import{a as l}from"./chunk-TXMTKOEJ.js";import"./chunk-OL6CTXQR.js";import{a as E,b as P}from"./chunk-DGUO74I3.js";import"./chunk-RDXQ3ZPT.js";import"./chunk-Q3ONTUZ7.js";import"./chunk-XIX2O22O.js";import"./chunk-TYRVM4PP.js";import"./chunk-ZB6MB7GZ.js";import"./chunk-2LKCCYRF.js";import"./chunk-GE3UFHZ5.js";import{Ma as A,Nb as d,Ob as h,fb as v,qa as C,x as r,z as w}from"./chunk-4XKA5APP.js";import"./chunk-2LDU3F6O.js";import"./chunk-RFLXPXBN.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import{z as g}from"./chunk-4U53RYJJ.js";import"./chunk-HOIFXUTG.js";import"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function G(e){await U(e,!0,M)}async function M(e){let n=h(),i=o(await e.getOption(g.ProjectId.camelName,!0)),c=o(await e.getOption(g.EnvironmentId.camelName,!0));if(c&&e.updateEnvironmentId(c),!i&&n.projectConfigError)throw new w(`Unable to read ${n.fileConfig.projectConfigPath}. ${n.projectConfigError.message}`);let x=o(n.appConfig?.projectId),T=o(n.projectConfig?.projectId),p=i??x??T,m=o(n.appConfig?.appId);if(!p&&!m)throw new r("Argument project is required. Use --project or -p to specify it, or run from a directory containing ms.project.config.json or an ms.config.json associated with a managed project.");let s=await e.getTenantIdAsync();if(!s)throw new r("Unable to determine tenant ID. Ensure you are logged in.");if(!i&&m){let t=await A({tenantId:s,environmentId:c??o(n.appConfig?.environmentId),logger:d(),actionsParams:{appName:m}});if(o(t.projectId)){let u=t.repoType?l(t.repoType):n.appConfig?.repoType??"native";if(u==="none")throw new r("`ms project deploy` currently supports only git-backed managed projects.");return e.updateEnvironmentId(t.environmentId),{appName:t.id,tenantId:o(t.tenantId)??s,environmentId:t.environmentId,repoType:u,externalRepoUrl:o(t.externalRepo?.remoteUrl)??o(t.cloneUrl)??o(n.appConfig?.externalRepoUrl),interactive:n.interactive}}if(!p)throw new r("The current app is not associated with a managed project.")}if(!p)throw new r("Unable to determine the managed project ID.");let F=n.projectConfig?.projectId.toLowerCase()===p.toLowerCase()?n.projectConfig:void 0,I=o(n.appConfig?.projectId)?.toLowerCase()===p.toLowerCase()?n.appConfig:void 0,j=c??o(F?.environmentId)??o(I?.environmentId),L=j?void 0:E(e,s,d(),"DeployMaafProject"),D=await P(j,L);e.updateEnvironmentId(D);let a=await v({projectId:p,logger:d()});e.updateEnvironmentId(a.environmentId);let R=await C(a.projectId),f=b(R),y=l(f.repoType??a.repoType);if(y==="none")throw new r("`ms project deploy` currently supports only git-backed managed projects.");return{appName:f.id,tenantId:a.tenantId,environmentId:a.environmentId,repoType:y,externalRepoUrl:o(f.cloneUrl)??o(I?.externalRepoUrl),interactive:n.interactive}}function b(e){if(e.length===0)throw new r("Project contains no deployable apps.");if(e.length>1){let n=e.map(i=>`${i.displayName} (${i.id})`).join(", ");throw new r(`\`ms project deploy\` currently supports projects containing exactly one app. Found: ${n}.`)}return e[0]}function o(e){return typeof e=="string"&&e.trim()||void 0}export{G as deployMaafProjectAsync};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=DeployMaafProject-6WRKGIIW.js.map
|
|
@@ -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{Nb as w,x as F,z as V}from"./chunk-4XKA5APP.js";import{b as a,c as u,d as l,e as D,f as M,g as c,h as d,k as b,l as P}from"./chunk-2LDU3F6O.js";import{a as R,b as x,c as L,d as O,e as J,f as T}from"./chunk-RFLXPXBN.js";import"./chunk-FHE3OXIP.js";import{c as I,d as j}from"./chunk-OUKOEUZA.js";import{N as S}from"./chunk-4U53RYJJ.js";import{a as f}from"./chunk-HOIFXUTG.js";import{A as U,B as A,C as g,D as m,F as k,I as N,K as p}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";var h={environment:"environment variable",userSettings:"user settings",tenant:"tenant default",workspace:"used by this app or project",default:"default"};async function le(e){e.setDescription(f.feature.list.description),e.addExamples(f.feature.list.examples),await e.runVerb();let t=E(),n=P(d(t));if(e.isJsonMode()){k(n);return}U({title:"CLI features",columns:[{header:"Name"},{header:"Stage"},{header:"State"},{header:"Source"},{header:"Description"}],rows:n.map(r=>[r.name,r.stage,v(r.enabled),h[r.source],r.description]),emptyMessage:"This version of the CLI has no experimental or preview features."});for(let r of Z(t))p(r)}async function ce(e){$(e,"status"),await e.runVerb();let t=K(await C(e)),n=E(),r=b(t,d(n));if(e.isJsonMode()){m({feature:r});return}A({title:`CLI feature '${r.name}'`,items:[r],fields:[{label:"Stage",value:i=>i.stage},{label:"Description",value:i=>i.description},{label:"State",value:i=>v(i.enabled)},{label:"Source",value:i=>h[i.source]},{label:"Environment variable",value:H},{label:"User setting",value:i=>Q(i,n)},{label:"Tenant default",value:X},{label:"Used by this app or project",value:i=>i.usedInWorkspace?"yes":"no"}]})}async function de(e){await _(e,"enable","enabled")}async function fe(e){await _(e,"disable","disabled")}async function ge(e){$(e,"reset"),await e.runVerb();let t=await C(e),n=E(),r=Y(c(n),t);if(!r&&!l(t))throw W(t);r&&(n=z(s=>G(s,t)));let i=l(t)?b(t,d(n)):void 0;if(e.isJsonMode()){m({name:t,removed:r,...i&&{feature:i}});return}if(!r){N(`Feature '${t}' has no saved setting; nothing to reset.`);return}if(!i){g(`Removed the saved setting for unknown feature '${t}'.`);return}g(`Removed the saved setting for feature '${t}'. It is now ${v(i.enabled)} (${h[i.source]}).`)}async function _(e,t,n){$(e,t),await e.runVerb();let r=K(await C(e)),i=z(o=>({...o,[a]:{...q(c(o),r),[r]:n}})),s=b(r,d(i));if(w().trackActivityEvent("Feature.SettingSaved",{featureName:r,setting:n,stage:s.stage}),e.isJsonMode()){m({feature:s});return}g(`Feature '${r}' is now ${n} for future runs.`),s.source==="environment"?p(`${s.envVar}=${s.envValue} is set and takes precedence over saved settings, so '${r}' stays ${v(s.enabled)} while it is set.`):s.source==="workspace"&&p(`This app or project already uses '${r}', so it stays enabled here.`)}function $(e,t){let n=f.feature[t];e.setDescription(n.description),e.addExamples(n.examples),e.addOptions([{flags:{key:S.Name.name},description:n.options.name}])}async function C(e){let t=await e.getOption(S.Name.name,!0),n=typeof t=="string"?u(t):"";if(!n)throw new F(`Provide a feature name via --${S.Name.name}. Run '${"ms"} feature list' to see available features.`);return n}function K(e){if(!l(e))throw W(e);return e}function W(e){let t=D().join(", ")||"none";return new F(`Unknown feature '${e}'. Available features: ${t}. Run '${"ms"} feature list' for details.`)}function E(){try{return O()}catch(e){throw B("read",e)}}function z(e){try{return T(e)}catch(t){throw B("update",t)}}function B(e,t){return w().trackErrorEvent("Feature.SettingsFileFailed",{operation:e,...J(t)}),x(),new V(e==="read"?"Couldn't read the CLI's userSettings.json. Make sure it contains a valid JSON object, or delete it to clear your saved settings.":"Couldn't save your feature settings to the CLI's userSettings.json. Make sure it contains a valid JSON object and can be written.")}function Y(e,t){return Object.keys(e).some(n=>u(n)===t)}function q(e,t){return Object.fromEntries(Object.entries(e).filter(([n])=>u(n)!==t))}function G(e,t){let n={...e},r=q(c(e),t);return Object.keys(r).length>0?n[a]=r:delete n[a],n}function v(e){return e?"enabled":"disabled"}function H(e){if(e.envValue===void 0)return`${e.envVar} (not set)`;let t=`${e.envVar}=${e.envValue}`;return I(e.envValue)||j(e.envValue)?t:`${t} (ignored: not a recognized true/false value)`}function Q(e,t){return e.userSetting?e.userSetting:Y(c(t),e.name)?'ignored (expected "enabled" or "disabled")':"not set"}function X(e){return e.tenantId===void 0?"not signed in":`${e.tenantDefault??"not set"} (tenant ${e.tenantId})`}function Z(e){let t=e?.[a];if(t===void 0)return[];let n=R();if(!L(t))return[`Ignoring '${a}' in ${n}: expected a JSON object.`];let r=[];for(let[i,s]of Object.entries(t)){let o=u(i);l(o)?M(s)||r.push(`Ignoring saved setting for feature '${i}' in ${n}: expected "enabled" or "disabled".`):r.push(`Ignoring saved setting for unknown feature '${i}' in ${n}. Remove it with '${"ms"} feature reset --name ${o}'.`)}return r}export{fe as featureDisableAsync,de as featureEnableAsync,le as featureListAsync,ge as featureResetAsync,ce as featureStatusAsync};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=FeatureSettings-77LZQSKD.js.map
|
|
@@ -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 V}from"./chunk-WTTK2GTG.js";import{a as I}from"./chunk-DKSLWH4O.js";import{b as F}from"./chunk-KT2SUHGM.js";import{i as R,m as O}from"./chunk-GE3UFHZ5.js";import{A,Nb as h,Ob as b,da as L,fb as x,gb as $,hb as u,k as w,oa as U,x as l,z as M}from"./chunk-4XKA5APP.js";import"./chunk-BRRT2E75.js";import"./chunk-2LDU3F6O.js";import"./chunk-RFLXPXBN.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import{M as s}from"./chunk-4U53RYJJ.js";import{a as f}from"./chunk-HOIFXUTG.js";import{D as C,I as a,K as D,l as E}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function se(e){W(e),await e.runVerb();let o=b(),i=(await e.getOption("project",!0))?.trim();if(o.projectConfigError)throw new M(`Unable to read ${o.fileConfig.projectConfigPath}. ${o.projectConfigError.message} Fix the project configuration before retrying.`);let n=!i||o.projectConfig?.projectId.toLowerCase()===i.toLowerCase()?o.projectConfig:void 0,p=!i||o.appConfig?.projectId?.toLowerCase()===i.toLowerCase()?o.appConfig:void 0,c=I(o.appConfig?.appId),r=i||n?.projectId||I(p?.projectId),y=I(n?.projectId?n.environmentId:p?.environmentId);if(!r&&!c)throw new l("Argument project is required. Use --project or -p to specify it, or run from a directory containing ms.project.config.json or ms.config.json.");let j=await e.getTenantIdAsync();if(!j)throw new l("Unable to determine tenant ID. Ensure you are logged in.");let k=await O(e,{failIfMissing:!1,overridesOnly:!0});if(!r&&c){let t=await V(c,j,k??y);r=I(t.projectId),y=t.environmentId??y}if(!r)throw new l("The current app is not associated with a managed project.");if(!E(r))throw new l("The project ID must be a valid GUID.");let P=k??y;if(!P)try{P=(await U(j,r)).environmentId}catch(t){if(!(t instanceof w)&&!(t instanceof A))throw t;let d=t instanceof w?t:void 0,T=d?.code&&/^[A-Za-z][A-Za-z0-9_.]{0,63}$/.test(d.code)?d.code:void 0;throw h().trackErrorEvent("InfoMaafProject.LocateFailed",{errorName:d?"HttpClientError":"Error",...d&&{httpStatus:d.status},...T&&{serverErrorCode:T}}),new A("Unable to locate the environment hosting this project. Retry the command, or pass --environment-id <id> if you know the environment.")}e.updateEnvironmentId(P);let g=h(),H=u({projectId:r,logger:g}).then(t=>({ok:!0,page:t}),t=>({ok:!1,error:t})),[S,N]=await Promise.all([x({projectId:r,logger:g}),$({projectId:r,logger:g})]),m=await H;if(e.isJsonMode()){if(!m.ok)throw m.error;let t=await z(r,m.page,g);C(_(S,N,t));return}if(J(S,N),!m.ok){D(`Project details were retrieved, but its apps could not be listed. Try again. Operation ID: ${o.operationId}.`);return}await F({title:"Apps",columns:[{header:"App ID",maxWidth:38},{header:"Display Name"},{header:"Last Deployed"},{header:"URL"}],firstPage:G(m.page),fetchNextPage:async t=>G(await u({projectId:r,skipToken:t,logger:g})),toRow:t=>[t.id,t.displayName||"<No Name>",Z(t.lastDeployedTime??void 0),t.appPlayUri??"-"],emptyMessage:"No apps found in this project.",totalLabel:"app(s)"})>0&&a("Use `ms app info --app <GUID>` to get app details, including the clone URL.")}function G(e){return{items:e.apps,...e.nextSkipToken===void 0?{}:{nextSkipToken:e.nextSkipToken}}}async function z(e,o,i){let n=[...o.apps],p=o.nextSkipToken,c=1;for(;p;){if(c>=200)throw new L(`drainAppsAsync: exceeded ${200}-page cap for project ${e}; the server is likely returning a $skiptoken cycle.`,200);let r=await u({projectId:e,skipToken:p,logger:i});n.push(...r.apps),p=r.nextSkipToken,c++}return n}function _(e,o,i){return{projectId:e.projectId,displayName:e.displayName,environmentId:e.environmentId,tenantId:e.tenantId,repositoryId:e.repositoryId,repoType:e.repoType,...e.storageSource?{storageSource:e.storageSource}:{},stages:o.map(n=>({stageName:n.stageName,stageUrl:n.stageUrl})),apps:i.map(n=>({appId:n.id,displayName:n.displayName,...n.lastDeployedTime?{lastDeployedTime:n.lastDeployedTime}:{},...n.appPlayUri?{appPlayUri:n.appPlayUri}:{}}))}}function J(e,o){a(`Name: ${e.displayName}`),a(`Project ID: ${e.projectId}`),a(`Environment: ${e.environmentId}`),a(`Repository: ${e.repositoryId}`),a(`Repo type: ${e.repoType}`),e.storageSource&&a(`Storage: ${e.storageSource}`),o.length>0&&a(`Targets: ${o.map(i=>i.stageName).join(", ")}`)}function W(e){e.setDescription(f.project.info.description),e.addExamples(f.project.info.examples),e.addOptions([R({flags:{key:s.ProjectId.name,alias:s.ProjectId.alias},message:s.ProjectId.promptMessage,description:f.project.info.options.project}),{flags:{key:s.EnvironmentId.name,alias:s.EnvironmentId.alias},env:s.EnvironmentId.envVar,description:f.project.info.options.environmentId,optionalInNonInteractive:!0}])}function Z(e){if(!e)return"-";let o=new Date(e);return Number.isNaN(o.getTime())?e:o.toLocaleDateString()}export{_ as buildProjectInfoView,se as infoMaafProjectAsync};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=InfoMaafProject-SQYB736C.js.map
|
|
@@ -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{i as g}from"./chunk-GE3UFHZ5.js";import{Na as l,Nb as m,Ob as h,x as f}from"./chunk-4XKA5APP.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import{o as t}from"./chunk-4U53RYJJ.js";import{a as r}from"./chunk-HOIFXUTG.js";import{A as I,F as L,I as M}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";var D="edit",v={edit:"write",play:"read"},E=Object.keys(v);async function _(e){S(e),await e.runVerb();let s=await e.getTenantIdAsync();if(!s)throw new f("Unable to determine tenant ID. Ensure you are logged in.");let a=e.getEnvironmentId({includeConfig:!1}),p=await e.getOption(t.Permission.name,!0),w=!!p?.trim(),o;if(w){let i=U(p),d=await l({tenantId:s,environmentId:a,permission:i,logger:m()}),c=i==="write";o=d.map(n=>u(n,c))}else{let[i,d]=await Promise.all([l({tenantId:s,environmentId:a,permission:"write",logger:m()}),l({tenantId:s,environmentId:a,permission:"read",logger:m()})]),c=new Set(i.map(n=>n.id));o=[...i.map(n=>u(n,!0)),...d.filter(n=>!c.has(n.id)).map(n=>u(n,!1))]}if(e.isJsonMode()){L(o);return}let y=h().interactive,A=!y;I({title:a?`Copilot Managed Runtime (environment: ${a})`:"Copilot Managed Runtime",columns:[{header:"App ID",maxWidth:38},{header:"Display Name"},{header:"Last Deployed"},{header:"URL"},{header:A?"Repo":"Edit Access"}],rows:o.map(i=>[i.appId,i.displayName||"<No Name>",P(i.lastDeployedTime),i.appPlayUri??"-",A?i.cloneUrl??"-":i.hasEditAccess?"Yes":"No"]),emptyMessage:"No managed apps found.",totalLabel:"Managed app(s) found"}),y&&o.length>0&&M("Use `ms app info --app <GUID>` to get app details, including the clone URL.")}function S(e){e.setDescription(r.app.list.description),e.addExamples(r.app.list.examples),e.addOptions([g({flags:{key:t.EnvironmentId.name,alias:t.EnvironmentId.alias},env:t.EnvironmentId.envVar,message:t.EnvironmentId.promptMessage,description:r.app.list.options.environmentId}),g({flags:{key:t.Permission.name,alias:t.Permission.alias},env:t.Permission.envVar,message:t.Permission.promptMessage,description:r.app.list.options.permission})])}function U(e){let s=e?e.toLowerCase():D,a=E.find(p=>p===s);if(a)return v[a];throw new f(`Invalid --permission value '${e}'. Must be one of: ${E.join(", ")}.`)}function u(e,s=!0){return{appId:e.id,displayName:e.displayName,lastDeployedTime:e.lastDeployedTime??void 0,appPlayUri:e.appPlayUri??void 0,hasEditAccess:s,...s?{cloneUrl:e.cloneUrl??void 0}:{}}}function P(e){if(!e)return"-";let s=new Date(e);return Number.isNaN(s.getTime())?e:s.toLocaleDateString()}export{_ as listMaafAppsAsync,U as resolvePermission,u as toRow};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ListMaafApps-ZATO77G3.js.map
|
|
@@ -1,13 +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 A}from"./chunk-WTTK2GTG.js";import"./chunk-DKSLWH4O.js";import{a as V,b as J}from"./chunk-2LKCCYRF.js";import{n as D}from"./chunk-GE3UFHZ5.js";import{A as O,Nb as w,Pb as G,ab as y,bb as M,cb as $,db as k,k as E,u as C,v as x,w as j,x as v,y as L}from"./chunk-4XKA5APP.js";import"./chunk-BRRT2E75.js";import"./chunk-2LDU3F6O.js";import"./chunk-RFLXPXBN.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import{O as p}from"./chunk-4U53RYJJ.js";import{a as d}from"./chunk-HOIFXUTG.js";import{A as T,C as h,D as I,G as S,I as F,K as R}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function ue(e){Q(e),await e.runVerb();let o=B(e.getPositionalArgs(0));if(o.length===0)throw new v("Provide at least one approver (object ID or user/group email address). Separate multiple entries with commas, spaces, or both.");let r=w(),a=r.trackScenario("ProjectApproval.Add",{inputCount:o.length});try{let t=[],c=Z(o,t);if(c.length===0)throw new v(b(t));t.length>0&&R(b(t));let{projectId:n,tenantId:l,environmentId:s}=await A(e),u=await N(e);try{await M({tenantId:l,environmentId:s,logger:r,actionsParams:{projectId:n,approvers:c.map(i=>i.entry),...u?{target:u}:{}}})}catch(i){throw Y(i)}if(a.complete({addedCount:c.length,failedResolutionCount:t.length}),e.isJsonMode()){I({projectId:n,...u?{target:u}:{},partialFailure:t.length>0,added:c.map(i=>({input:i.input})),warnings:t});return}h(`Added ${c.length} approver${c.length===1?"":"s"} to the ${u??y} target of project '${n}'.`);for(let i of c)F(` + ${i.input}`)}catch(t){throw H(a,t),t}}function H(e,o){o instanceof E?e.failure(void 0,{status:o.status,errorCode:o.code}):e.failure(o)}var W={PrincipalNotFound:"An approver was not found in the tenant directory. Check the email address or object ID.",InvalidPrincipalId:"An approver ID is not a valid object ID (GUID).",InvalidPrincipalType:"An approver is a kind of principal that cannot be an approver, or its type does not match.",InvalidRequestContent:"An approver entry was not accepted. An email address may be malformed or match more than one account; pass the object ID instead."};function z(e){return e.code&&/^[A-Za-z][A-Za-z0-9_.]{0,63}$/.test(e.code)?e.code:void 0}function Y(e){if(!(e instanceof E))return e;let o=z(e),r={telemetryDetails:{status:e.status,serviceErrorCode:o}};if(e.status===400){let a=e.code?W[e.code]:void 0;return new v(`The service rejected the approvers; none were added. ${a??`The request was not accepted${o?` (${o})`:""}.`}`,void 0,r)}return e.status===502&&e.code==="BadGateway"?new v("The tenant directory could not be reached to resolve an approver; none were added. Try again.",void 0,r):e.status===401?new L(`The service did not accept your sign-in. Run \`${"ms"} auth login\`, then try again.`,void 0,r):e.status===403?new j("You do not have permission to manage approvers on this project.",C.GeneralError,void 0,{errorCode:V.ProjectApprovalPermissionDenied,errorCategory:x.User,telemetryDetails:J("project_approvals",r.telemetryDetails)}):e.status===429?new O("The service is limiting requests right now. Wait a moment, then try again.",void 0,r):new j(`The service could not complete the request (HTTP ${e.status}). Run \`${"ms"} project list approval\` to see which approvers are configured, then try again.`,C.GeneralError,void 0,{errorCode:"ServiceError",...r})}async function me(e){X(e),await e.runVerb();let o=await e.getOption(p.All.name,!0),r=B(e.getPositionalArgs(0));if(o&&r.length>0)throw new v("Provide either explicit approvers or --all, not both.");if(!o&&r.length===0)throw new v("Provide at least one approver (object ID or user/group email address) to remove, or pass --all to remove every approver.");let{projectId:a,tenantId:t,environmentId:c}=await A(e),n=await N(e),l=n??y,s=w(),u=s.trackScenario("ProjectApproval.Remove",{all:!!o,inputCount:r.length});try{let i,m=[],f=[];if(o)i=await $({tenantId:t,environmentId:c,logger:s,actionsParams:{projectId:a,all:!0,...n?{target:n}:{}}});else{if(m=[],f=await K(r,m,()=>k({tenantId:t,environmentId:c,logger:s,actionsParams:{projectId:a,...n?{target:n}:{}}})),f.length===0)throw new v(b(m));m.length>0&&R(b(m)),i=await $({tenantId:t,environmentId:c,logger:s,actionsParams:{projectId:a,principalIds:f.map(g=>g.objectId),...n?{target:n}:{}}})}u.complete({all:!!o,removedCount:i.removed.length,failureCount:i.failures.length,failedResolutionCount:m.length});let P=i.failures.length>0;if(e.isJsonMode()){let g={projectId:a,...n?{target:n}:{},all:!!o,partialFailure:m.length>0||P,removed:i.removed,failures:i.failures,warnings:m};if(P)throw S(g),new G(_(i.failures,f));I(g);return}if(o)h(`Removed every approver from the ${l} target of project '${a}'.`);else if(i.removed.length>0&&h(`Removed ${i.removed.length} approver${i.removed.length===1?"":"s"} from the ${l} target of project '${a}'.`),P)throw new j(_(i.failures,f))}catch(i){throw u.failure(i),i}}async function ve(e){ee(e),await e.runVerb();let{projectId:o,tenantId:r,environmentId:a}=await A(e),t=await N(e),c=w(),n=c.trackScenario("ProjectApproval.List");try{let l=await k({tenantId:r,environmentId:a,logger:c,actionsParams:{projectId:o,...t?{target:t}:{}}});if(n.complete({approverCount:l.length}),e.isJsonMode()){I({projectId:o,...t?{target:t}:{},approvers:l.map(s=>({objectId:s.objectId,objectType:s.objectType,...s.email?{email:s.email}:{},...s.displayName?{displayName:s.displayName}:{}}))});return}T({title:`Approvers \u2014 project '${o}' (${t??y} target)`,columns:[{header:"Name"},{header:"Email"},{header:"Type"},{header:"Object ID",maxWidth:38}],rows:l.map(s=>[s.displayName??"-",s.email??"-",s.objectType,s.objectId]),emptyMessage:"No approvers are configured for this project.",totalLabel:"approver(s)"})}catch(l){throw n.failure(l),l}}function B(e){let o=new Set;for(let r of e)for(let a of r.split(",")){let t=a.trim();t&&o.add(t)}return[...o]}function Z(e,o){let r=[],a=new Set;for(let t of e){let c=t.toLowerCase();if(!a.has(c)){if(D(t))r.push({input:t,entry:{objectId:t}});else if(q(t))r.push({input:t,entry:{email:t}});else{o.push({input:t,reason:"not an object ID (GUID) or a valid email address"});continue}a.add(c)}}return r}async function K(e,o,r){let a,t=[];for(let n of e){if(D(n)){t.push({objectId:n,input:n});continue}if(!q(n)){o.push({input:n,reason:"not an object ID (GUID) or a valid email address"});continue}a??=await r();let l=new Map;for(let u of a)if(u.email?.toLowerCase()===n.toLowerCase()){let i=u.objectId.trim().toLowerCase();l.has(i)||l.set(i,u.objectId)}let s=[...l.values()];if(s.length===0){o.push({input:n,reason:"not a current approver, or the service reports a different address for them (pass the object ID shown by `project list approval` instead)"});continue}if(s.length>1){o.push({input:n,reason:`matches ${s.length} approvers (${s.join(", ")}); none was removed. Pass the object ID of the one to remove instead`});continue}t.push({objectId:s[0],input:n})}let c=new Set;return t.filter(n=>{let l=n.objectId.toLowerCase();return c.has(l)?!1:(c.add(l),!0)})}function _(e,o){let r=e.length===1?"approver":"approvers",a=e.map(t=>` - ${o.find(n=>n.objectId===t.principalId)?.input??t.principalId}`);return[`Failed to remove ${e.length} ${r}:`,...a].join(`
|
|
8
|
-
`)}function b(e){let o=e.length===1?"entry":"entries",r=e.map(a=>` - ${a.input}: ${a.reason}`);return[`Could not resolve ${e.length} ${o}:`,...r].join(`
|
|
9
|
-
`)}function q(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}async function N(e){return(await e.getOption(p.Target.name,!0))?.trim()||void 0}function Q(e){e.setDescription(d.project.add.approval.description),e.addExamples(d.project.add.approval.examples),e.consumePositionalArgs("principal"),e.addOptions([{flags:{key:p.ProjectId.name,alias:p.ProjectId.alias},description:d.project.add.approval.options.projectId,optionalInNonInteractive:!0},{flags:{key:p.EnvironmentId.name,alias:p.EnvironmentId.alias},env:p.EnvironmentId.envVar,description:d.project.add.approval.options.environmentId,optionalInNonInteractive:!0},{flags:{key:p.Target.name},description:d.project.add.approval.options.target,optionalInNonInteractive:!0,hidden:!0}])}function X(e){e.setDescription(d.project.remove.approval.description),e.addExamples(d.project.remove.approval.examples),e.consumePositionalArgs("principal"),e.addSwitch({flags:{key:p.All.name},description:d.project.remove.approval.options.all}),e.addOptions([{flags:{key:p.ProjectId.name,alias:p.ProjectId.alias},description:d.project.remove.approval.options.projectId,optionalInNonInteractive:!0},{flags:{key:p.EnvironmentId.name,alias:p.EnvironmentId.alias},env:p.EnvironmentId.envVar,description:d.project.remove.approval.options.environmentId,optionalInNonInteractive:!0},{flags:{key:p.Target.name},description:d.project.remove.approval.options.target,optionalInNonInteractive:!0,hidden:!0}])}function ee(e){e.setDescription(d.project.list.approval.description),e.addExamples(d.project.list.approval.examples),e.addOptions([{flags:{key:p.ProjectId.name,alias:p.ProjectId.alias},description:d.project.list.approval.options.projectId,optionalInNonInteractive:!0},{flags:{key:p.EnvironmentId.name,alias:p.EnvironmentId.alias},env:p.EnvironmentId.envVar,description:d.project.list.approval.options.environmentId,optionalInNonInteractive:!0},{flags:{key:p.Target.name},description:d.project.list.approval.options.target,optionalInNonInteractive:!0,hidden:!0}])}export{ue as addProjectApprovalAsync,ve as listProjectApprovalAsync,me as removeProjectApprovalAsync};
|
|
10
|
-
/*!
|
|
11
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
12
|
-
*/
|
|
13
|
-
//# sourceMappingURL=ProjectApprovals-5KLYEM7V.js.map
|
|
@@ -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{d as w}from"./chunk-2LKCCYRF.js";import{b as v,l as u,m as I}from"./chunk-GE3UFHZ5.js";import{Nb as k,Ob as h,Va as m,k as f,x as p}from"./chunk-4XKA5APP.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import{J as n}from"./chunk-4U53RYJJ.js";import{a as r}from"./chunk-HOIFXUTG.js";import{C as l,D as a,K as s}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function R(e){L(e),await e.runVerb();let c=await I(e),d=await e.getTenantIdAsync();if(!d)throw new p("Unable to determine tenant ID. Ensure you are logged in.");let i=await u(e),o=await e.getOption(n.LinkId.name);if(!o)throw new p("Provide a share link ID via --link-id.");if(!await e.getOption(n.Force.name,!0)&&h().interactive&&!await v({message:`Revoke share link '${o}' for app '${i}'? Anyone who has not yet redeemed it will lose access; redeemers will have their Microsoft App Reader role revoked.`})){s("Revoke cancelled.");return}try{await m({tenantId:d,environmentId:c,logger:k(),actionsParams:{appName:i,appShareLinkId:o}})}catch(t){if(g(t)){if(e.isJsonMode()){a({appName:i,linkId:o,existed:!1});return}s(`Share link '${o}' was not found on '${i}'; nothing was revoked.`);return}throw w(t)??t}if(e.isJsonMode()){a({appName:i,linkId:o,existed:!0});return}l(`Share link '${o}' revoked for '${i}'.`)}function g(e){if(!(e instanceof f)||e.status!==404||!e.body)return!1;try{return JSON.parse(e.body).error?.code==="AppShareLinkNotFound"}catch{return!1}}function L(e){e.setDescription(r.app.shareLink.revoke.description),e.addExamples(r.app.shareLink.revoke.examples),e.addSwitch({flags:{key:n.Force.name,alias:n.Force.alias},description:r.app.shareLink.revoke.options.force}),e.addOptions([{flags:{key:n.LinkId.name,alias:n.LinkId.alias},env:n.LinkId.envVar,description:r.app.shareLink.revoke.options.linkId},{flags:{key:n.AppName.name},env:n.AppName.envVar,description:r.app.shareLink.revoke.options.app,optionalInNonInteractive:!0},{flags:{key:n.EnvironmentId.name,alias:n.EnvironmentId.alias},env:n.EnvironmentId.envVar,description:r.app.shareLink.revoke.options.environmentId,optionalInNonInteractive:!0}])}export{R as shareLinkRevokeAsync};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ShareLinkRevoke-22RFGOFJ.js.map
|
|
@@ -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 L,b as y,c as x,d as $,e as P,f as G}from"./chunk-HSNRWBA6.js";import{l as b,m as O}from"./chunk-GE3UFHZ5.js";import{N as I,Nb as N,O as g,Oa as M,Ob as E,P as h,ka as R,ob as S,x as u}from"./chunk-4XKA5APP.js";import"./chunk-FHE3OXIP.js";import"./chunk-OUKOEUZA.js";import{I as r}from"./chunk-4U53RYJJ.js";import{a as l}from"./chunk-HOIFXUTG.js";import{A as w,D,I as T,K as C}from"./chunk-KKC5ZK4D.js";import"./chunk-Y5AMO72S.js";import"./chunk-UT667QSU.js";async function Z(e){k(e),await e.runVerb();let i=await O(e),p=await e.getTenantIdAsync();if(!p)throw new u("Unable to determine tenant ID. Ensure you are logged in.");let o=await b(e),f=!!await e.getOption("app",!0),m=await e.getOption("access",!0);if(!m||!m.trim())throw new u("The --access option is required. Use --access play, --access edit, or --access test.");let t=x(m),s,a="none",d;if(f)(t==="edit"||e.isJsonMode())&&(s=await P({tenantId:p,environmentId:i,appName:o}),a=F(s));else{let n=E().appConfig??{};d=y(n.repositoryId)?n.repositoryId:void 0,a=t==="edit"?$(n):n.repoType??"none"}let J=W(t,a);!e.isJsonMode()&&t==="edit"&&a==="github"&&C(L);let A=await Promise.all(J.map(n=>V({target:n,tenantId:p,environmentId:i,appName:o,appInfo:s,configRepoId:d})));if(e.isJsonMode()){D({appName:o,access:t,repoType:a,results:A.map(n=>({scope:n.scope,roleDefinitionName:n.roleDefinitionName,...n.repoId?{repoId:n.repoId}:{},unclassifiedCount:n.unclassifiedCount,value:n.assignments}))});return}let U=A.flatMap(n=>n.assignments.map(c=>[n.scope,c.principalObjectId??"-",String(c.principalType??"-"),B(c.roleDefinitionName),c.createdOn??"-"]));w({title:`${t==="play"?"Play":t==="test"?"Test":"Edit"} shares for '${o}'`,columns:[{header:"SCOPE"},{header:"PRINCIPAL ID"},{header:"TYPE"},{header:"ROLE"},{header:"CREATED ON"}],rows:U,emptyMessage:`No ${t} shares for '${o}'.`,totalLabel:"assignment(s)"});let v=A.reduce((n,c)=>n+c.unclassifiedCount,0);v>0&&T(`${v} assignment(s) with an unrecognized role definition were not shown.`)}async function V(e){let{target:i,tenantId:p,environmentId:o,appName:f,appInfo:m,configRepoId:t}=e;if(i.scope==="app"){let d=await M({tenantId:p,environmentId:o,logger:N(),actionsParams:{appName:f,roleDefinitionName:i.roleDefinitionName}});return{scope:"app",roleDefinitionName:i.roleDefinitionName,assignments:d.assignments,unclassifiedCount:d.unclassifiedCount}}let s=[t,m?.repositoryId].find(y);if(s||(s=(await G({tenantId:p,environmentId:o,appName:f})).repositoryId),!y(s))throw new u(`App '${f}' has no associated repository, so edit access cannot be listed.`);let a=await S({tenantId:p,environmentId:o,logger:N(),actionsParams:{repoId:s}});return{scope:"repo",roleDefinitionName:i.roleDefinitionName,repoId:s,assignments:a.assignments,unclassifiedCount:a.unclassifiedCount}}function k(e){e.setDescription(l.app.share.list.description),e.addExamples(l.app.share.list.examples),e.addOptions([{flags:{key:r.AppName.name},env:r.AppName.envVar,description:l.app.share.list.options.app,optionalInNonInteractive:!0},{flags:{key:r.EnvironmentId.name,alias:r.EnvironmentId.alias},env:r.EnvironmentId.envVar,description:l.app.share.list.options.environmentId,optionalInNonInteractive:!0},{flags:{key:r.Access.name},env:r.Access.envVar,description:l.app.share.list.options.access}])}function F(e){switch(e.repoType){case"Native":return"native";case"ExternalGitProviderBound":return"github";default:return"none"}}function B(e){switch(e){case I:return"App Reader";case g:return"App Contributor";case h:return"App Test Operator";case R:return"Repository Contributor";default:return e??"-"}}function W(e,i){return e==="play"||e==="test"?[{scope:"app",roleDefinitionName:e==="test"?h:I}]:i!=="native"?[{scope:"app",roleDefinitionName:g}]:[{scope:"repo",roleDefinitionName:R},{scope:"app",roleDefinitionName:g}]}export{Z as shareListAsync};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=ShareList-6UWIHPBM.js.map
|
package/dist/chunk-2LDU3F6O.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 m,c as F,d as S}from"./chunk-RFLXPXBN.js";import{a as p,b as f,c as g,d as C}from"./chunk-OUKOEUZA.js";import{K as c}from"./chunk-KKC5ZK4D.js";var o={codegenv3:{stage:"development",description:"Simplified codegen",isEnabledInWorkspace:async()=>!1},state:{stage:"experimental",description:"Project state command group",isEnabledInWorkspace:async e=>[e?.state,e?.data,e?.db].some(t=>t?.enabled===!0)},alm:{stage:"development",description:"Single-app ALM deployments",isEnabledInWorkspace:async e=>!!e?.projectId},projects:{stage:"development",description:"Managed project commands and Managed DevOps app deployments",isEnabledInWorkspace:async(e,t)=>t!==void 0||!!e?.projectId},rayfin:{stage:"development",description:"Rayfin backend integration",isEnabledInWorkspace:async()=>!1}},d={"72f988bf-86f1-41af-91ab-2d7cd011db47":{}};function x(e){return`FEATURE_${e.toUpperCase()}`}var I="features";function U(e){return e.trim().toLowerCase()}function O(e){return Object.hasOwn(o,e)}function h(){return Object.keys(o).filter(e=>o[e].stage!=="development")}function k(e){if(typeof e!="string")return;let t=e.trim().toLowerCase();return t==="enabled"||t==="disabled"?t:void 0}function A(e){let t=e?.[I];return F(t)?t:{}}function R(e){let t=new Map;for(let[n,r]of Object.entries(A(e))){let a=k(r);a&&t.set(U(n),a)}return t}var y=!1;function v(){try{return R(S())}catch{return y||(y=!0,c(`Ignoring saved feature settings: couldn't read ${m()}. Make sure it contains a valid JSON object, or delete it to clear your saved settings.`)),new Map}}var b;function M(e){b=e}function E(){return b?.getUserTenantId()?.trim().toLowerCase()||void 0}function j(e,t){if(!(t===void 0||!Object.hasOwn(d,t)))return d[t][e]}var N=new Set;async function $(e,t){let n=new Set;for(let r of Object.keys(o))await o[r].isEnabledInWorkspace(e,t)&&n.add(r);N=n}function _(e,t,n,r){let a=x(e),i=f(a),u=n.get(e),l=j(e,r),s={name:e,stage:t.stage,description:t.description,envVar:p(a),...i!==void 0&&{envValue:i},...u&&{userSetting:u},...r!==void 0&&{tenantId:r},...l&&{tenantDefault:l}};return g(i)?{...s,enabled:!0,source:"environment"}:C(i)?{...s,enabled:!1,source:"environment"}:u?{...s,enabled:u==="enabled",source:"userSettings"}:l?{...s,enabled:l==="enabled",source:"tenant"}:{...s,enabled:!1,source:"default"}}function T(e,t,n){let r=o[e],a=_(e,r,t,n),i=N.has(e);return i&&!a.enabled?{...a,usedInWorkspace:i,enabled:!0,source:"workspace"}:{...a,usedInWorkspace:i}}function w(e,t=v()){return T(e,t,E())}function z(e=v()){let t=E();return Object.keys(o).map(n=>T(n,e,t)).filter(n=>n.enabled||n.stage!=="development")}function B(e){return w(e).enabled}export{x as a,I as b,U as c,O as d,h as e,k as f,A as g,R as h,M as i,$ as j,w as k,z as l,B as m};
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (C) Microsoft Corporation. All rights reserved.
|
|
10
|
-
*/
|
|
11
|
-
//# sourceMappingURL=chunk-2LDU3F6O.js.map
|