@arcgis/portal-components 6.0.0-next.1 → 6.0.0-next.2
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/cdn/23FS4XTG.js +2 -0
- package/dist/cdn/{ZSILF72K.js → 24QSQLRY.js} +2 -2
- package/dist/cdn/2MPQ5IWJ.js +2 -0
- package/dist/cdn/{UGRFT75G.js → 2YZWRFCI.js} +2 -2
- package/dist/cdn/{LCO2BWDK.js → 32BWFMTC.js} +2 -2
- package/dist/cdn/{4SHXR62X.js → 3CQKCUM5.js} +2 -2
- package/dist/cdn/{5FDUO7J4.js → 3EYB5GQX.js} +2 -2
- package/dist/cdn/{FSACXOM3.js → 3LEQ37YT.js} +2 -2
- package/dist/cdn/{JUDF3TYJ.js → 3NSHGKZA.js} +2 -2
- package/dist/cdn/{YUQFNMEZ.js → 3UFTKKFG.js} +1 -1
- package/dist/cdn/46BUEBWS.js +2 -0
- package/dist/cdn/4AI52H7C.js +2 -0
- package/dist/cdn/{ILDTKRON.js → 4KTRAA2J.js} +1 -1
- package/dist/cdn/{UZCHLKLO.js → 4MUB6TL6.js} +1 -1
- package/dist/cdn/{QKBGX2OY.js → 4PRXQFCV.js} +2 -2
- package/dist/cdn/{FFLIAQOL.js → 4QFTKB6T.js} +2 -2
- package/dist/cdn/{55FL7WQV.js → 4TSXFX3M.js} +2 -2
- package/dist/cdn/{GTZ4LKEQ.js → 5C5GHX4D.js} +2 -2
- package/dist/cdn/{LNWWUPFK.js → 5HZNBMW6.js} +2 -2
- package/dist/cdn/{ODH2VAWC.js → 5PPZNVWG.js} +2 -2
- package/dist/cdn/{UZLQALHY.js → 5PV2GUZW.js} +1 -1
- package/dist/cdn/66XWNGQ2.js +2 -0
- package/dist/cdn/6F4SJDRR.js +2 -0
- package/dist/cdn/{TJN3DTKK.js → 6RZEXOK3.js} +2 -2
- package/dist/cdn/{UQKT5JQZ.js → 74T6IXSN.js} +2 -2
- package/dist/cdn/{CVOWIH4J.js → 7LMZHJZG.js} +2 -2
- package/dist/cdn/7ZWYUHGK.js +2 -0
- package/dist/cdn/{C5U7YKVI.js → A2SQ4EMZ.js} +2 -2
- package/dist/cdn/{4TQWZ2KF.js → ABORO35R.js} +2 -2
- package/dist/cdn/{CWSEBETE.js → AICPYLWE.js} +3 -3
- package/dist/cdn/AJQT7UXB.js +2 -0
- package/dist/cdn/{FTKD53UG.js → APSYZEPP.js} +2 -2
- package/dist/cdn/{KYNL256E.js → AXOBMX3S.js} +2 -2
- package/dist/cdn/AZOJHVAO.js +2 -0
- package/dist/cdn/{DIKRXF22.js → BKD7JSV2.js} +2 -2
- package/dist/cdn/{XU3QHJD7.js → BSTA5KI5.js} +2 -2
- package/dist/cdn/{O5LFDRK2.js → CD5UWSCP.js} +2 -2
- package/dist/cdn/{XROCYFKH.js → CXXV6WJT.js} +2 -2
- package/dist/cdn/{5YDITHQA.js → DAAON2UO.js} +1 -1
- package/dist/cdn/{DKIYHE4A.js → DDBXEXOV.js} +2 -2
- package/dist/cdn/{QUOPWSRC.js → DHMNNIXZ.js} +2 -2
- package/dist/cdn/{D6QHNXEH.js → DLI4XKJ3.js} +2 -2
- package/dist/cdn/DYO5P3F2.js +2 -0
- package/dist/cdn/E66BDC6N.js +2 -0
- package/dist/cdn/EEAVX4PP.js +2 -0
- package/dist/cdn/EITRZQSC.js +2 -0
- package/dist/cdn/{2GBRZSEC.js → EMJQI4MA.js} +1 -1
- package/dist/cdn/{WDMNL6PJ.js → EQDYQOOT.js} +2 -2
- package/dist/cdn/FIBQAMJ3.js +2 -0
- package/dist/cdn/{5FOWUL6I.js → FIQZPIIK.js} +2 -2
- package/dist/cdn/FNLBJ4ZQ.js +2 -0
- package/dist/cdn/{UTA2UBBS.js → FRE56NBG.js} +2 -2
- package/dist/cdn/{MQISQ7P3.js → GAF4YT5N.js} +2 -2
- package/dist/cdn/{7NK6UF47.js → GSOBDGLK.js} +2 -2
- package/dist/cdn/{XEK22IDA.js → GUL7EIJ4.js} +1 -1
- package/dist/cdn/{Y3YIMI2Z.js → GUO7HKSP.js} +4 -4
- package/dist/cdn/{E3FQ4QWE.js → GX7U3727.js} +2 -2
- package/dist/cdn/GXM3XY3J.js +2 -0
- package/dist/cdn/{7NQY5QJK.js → I273CANO.js} +2 -2
- package/dist/cdn/{ADZAKBOJ.js → I6IRHXWR.js} +2 -2
- package/dist/cdn/I6NVKNZJ.js +2 -0
- package/dist/cdn/{OQGUCK3G.js → IN4JPZTY.js} +2 -2
- package/dist/cdn/J5FKIZAM.js +2 -0
- package/dist/cdn/{6EY5GHKE.js → JIJO4CAS.js} +2 -2
- package/dist/cdn/JL52W3Z4.js +2 -0
- package/dist/cdn/{6MWSS5YF.js → JN23JH3T.js} +2 -2
- package/dist/cdn/{QDWOQBO3.js → JOUR2FB2.js} +2 -2
- package/dist/cdn/{NDRCB2K3.js → JPUUMGX5.js} +2 -2
- package/dist/cdn/{QSAZVVVL.js → JWBUJT43.js} +2 -2
- package/dist/cdn/{6BMWSGLA.js → K2XSYDAP.js} +2 -2
- package/dist/cdn/{VMQIDO4Z.js → K75JTQPW.js} +2 -2
- package/dist/cdn/{QS3GXAIH.js → KV4ZZSNW.js} +1 -1
- package/dist/cdn/{4ZTWQN6Q.js → L64UURQB.js} +2 -2
- package/dist/cdn/{2I5SLQC5.js → LISDTBEX.js} +2 -2
- package/dist/cdn/{MCX22B23.js → LWFACY3F.js} +2 -2
- package/dist/cdn/{QKK6N2AN.js → LYLQCBVX.js} +2 -2
- package/dist/cdn/{V5YXPHYD.js → M5PPX4ZX.js} +2 -2
- package/dist/cdn/{NXFE6R2N.js → MKSFNVXL.js} +2 -2
- package/dist/cdn/{XOFCMJBQ.js → MLYQGIJU.js} +2 -2
- package/dist/cdn/N4VOTJ25.js +2 -0
- package/dist/cdn/{QNCMFQSA.js → N5QLV56W.js} +2 -2
- package/dist/cdn/{GYA7R4F6.js → NRMQDCM3.js} +2 -2
- package/dist/cdn/{NICTB76A.js → NWVLGU2C.js} +2 -2
- package/dist/cdn/{B3NVWHCS.js → OD5WXP7J.js} +2 -2
- package/dist/cdn/{KIKEE2KY.js → OR6T5SB3.js} +2 -2
- package/dist/cdn/{R74ZHFA6.js → OUMTV5H5.js} +1 -1
- package/dist/cdn/{BRJE3G3H.js → OXPXXIWL.js} +2 -2
- package/dist/cdn/{CFBSBZSS.js → PKA745KL.js} +1 -1
- package/dist/cdn/{OUFIJDIW.js → PMRFXB4F.js} +2 -2
- package/dist/cdn/{BIXJGL7B.js → PNIFJ5DQ.js} +1 -1
- package/dist/cdn/{SG7Z5VLB.js → PZDI5ZDC.js} +2 -2
- package/dist/cdn/{XKC6SPS4.js → RHCRPJWS.js} +2 -2
- package/dist/cdn/{F3ODJVJC.js → ROX3GKKA.js} +1 -1
- package/dist/cdn/{RBGARTND.js → RQYNPDN3.js} +2 -2
- package/dist/cdn/RVYSVTPQ.js +2 -0
- package/dist/cdn/{456JKNCU.js → SGDDFWCJ.js} +2 -2
- package/dist/cdn/SLQQ44IA.js +2 -0
- package/dist/cdn/{LP4IB3PV.js → SVROAT3Z.js} +2 -2
- package/dist/cdn/{T3RJKB2A.js → TBZXKKGP.js} +2 -2
- package/dist/cdn/{Q75EBGI2.js → TGCJUIEL.js} +1 -1
- package/dist/cdn/{AE574B3G.js → TLM457Z5.js} +2 -2
- package/dist/cdn/{GEZH4D32.js → TNUCSWBN.js} +2 -2
- package/dist/cdn/{OJNU7H3F.js → TOICLGFK.js} +2 -2
- package/dist/cdn/{RUB2GDBE.js → TOTWYGB3.js} +2 -2
- package/dist/cdn/{T2HQNZ36.js → TUUUK3VX.js} +2 -2
- package/dist/cdn/{OV5O7YP4.js → TWCJJCPC.js} +2 -2
- package/dist/cdn/{R3QN5WF2.js → TXC7YBGL.js} +2 -2
- package/dist/cdn/{USGROSML.js → U3KMGSVH.js} +2 -2
- package/dist/cdn/{6TO2BYXU.js → V6A6MKLU.js} +1 -1
- package/dist/cdn/{25XJ66JO.js → VDXESPJK.js} +2 -2
- package/dist/cdn/WC3FPLYQ.js +2 -0
- package/dist/cdn/{TJYPEMON.js → XYMBRPC7.js} +2 -2
- package/dist/cdn/{YVKSTDL6.js → YG6ZGQ46.js} +1 -1
- package/dist/cdn/{J537SBGI.js → YTODQCOG.js} +2 -2
- package/dist/cdn/YYTEJVBL.js +2 -0
- package/dist/cdn/{D7LRCAK4.js → YZTBAUIO.js} +2 -2
- package/dist/cdn/{23X56P4K.js → Z6R3C4AK.js} +2 -2
- package/dist/cdn/{5EFYJYWM.js → ZDDN7UKS.js} +1 -1
- package/dist/cdn/{3R4PPD5N.js → ZKZDKJ6D.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/dom.js +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/functional.js +1 -1
- package/dist/chunks/functionalities.js +1 -1
- package/dist/chunks/groups.js +1 -1
- package/dist/chunks/groups2.js +1 -1
- package/dist/chunks/icons.js +1 -1
- package/dist/chunks/info.js +1 -1
- package/dist/chunks/item.js +1 -1
- package/dist/chunks/item2.js +1 -1
- package/dist/chunks/itemThumbnail.js +1 -1
- package/dist/chunks/items.js +1 -1
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/portal-account-switcher.js +1 -1
- package/dist/chunks/portal-browser-filter-date.js +1 -1
- package/dist/chunks/portal-browser.js +1 -1
- package/dist/chunks/portal-delete-items-review.js +1 -1
- package/dist/chunks/portal-item-badge.js +1 -1
- package/dist/chunks/portal-related-items-list-item.js +1 -1
- package/dist/chunks/portal.js +1 -1
- package/dist/chunks/portal2.js +1 -1
- package/dist/chunks/query.js +1 -1
- package/dist/chunks/request.js +1 -1
- package/dist/chunks/requests.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/services.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/string.js +1 -1
- package/dist/chunks/ui.js +1 -1
- package/dist/chunks/url.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/user.js +1 -1
- package/dist/chunks/user2.js +1 -1
- package/dist/chunks/users.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/verified.js +1 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.js +1 -1
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +1 -1
- package/dist/components/arcgis-portal-account-switcher-list/customElement.js +1 -1
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.js +1 -1
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +1 -1
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +1 -1
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-actions/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-filter-status/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-pagination/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-search/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-sort/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-top-bar/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-view/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-banner/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items/customElement.js +1 -1
- package/dist/components/arcgis-portal-delete-items-review/customElement.js +1 -1
- package/dist/components/arcgis-portal-entity-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-extent-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +1 -1
- package/dist/components/arcgis-portal-field-delete/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-info-banner/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-actions/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badge/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-badges/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-card/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/index.js +5 -5
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +1 -1
- package/dist/components/arcgis-portal-review-related-items/customElement.js +1 -1
- package/dist/components/arcgis-portal-sublayer-type/customElement.js +1 -1
- package/dist/components/arcgis-portal-user-avatar/customElement.js +1 -1
- package/dist/components/arcgis-portal-user-picker/customElement.js +1 -1
- package/dist/components/arcgis-portal-user-popup/customElement.js +1 -1
- package/dist/components/arcgis-portal-voice-input/customElement.js +1 -1
- package/dist/components/portal-browser/components/portal-browser-filter/customElement.js +1 -1
- package/dist/components/portal-browser/components/portal-browser-filter-date/customElement.js +1 -1
- package/dist/components/portal-browser/components/portal-browser-filters/customElement.js +1 -1
- package/dist/components/portal-group-browser-filters/customElement.js +1 -1
- package/dist/components/portal-group-browser-pagination/customElement.js +1 -1
- package/dist/components/portal-group-browser-sort/customElement.js +1 -1
- package/dist/components/portal-related-items-list-item/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/cdn/3SO52LKS.js +0 -2
- package/dist/cdn/6KVA4AKM.js +0 -2
- package/dist/cdn/6LST5YZY.js +0 -2
- package/dist/cdn/7TGCBYRK.js +0 -2
- package/dist/cdn/AWCYG2JJ.js +0 -2
- package/dist/cdn/BEAUY47J.js +0 -2
- package/dist/cdn/C5VUNN4M.js +0 -2
- package/dist/cdn/CJHR4UK5.js +0 -2
- package/dist/cdn/DF5GVVDW.js +0 -2
- package/dist/cdn/FQOOFBPI.js +0 -2
- package/dist/cdn/FQYC25GN.js +0 -2
- package/dist/cdn/KC4FTTKP.js +0 -2
- package/dist/cdn/LRHPL6B5.js +0 -2
- package/dist/cdn/LYOR4B2O.js +0 -2
- package/dist/cdn/MY7AYBBR.js +0 -2
- package/dist/cdn/OKUI3HQ4.js +0 -2
- package/dist/cdn/QBV7VDQK.js +0 -2
- package/dist/cdn/QCOJMMT3.js +0 -2
- package/dist/cdn/QYMSY57N.js +0 -2
- package/dist/cdn/UKHCSMA4.js +0 -2
- package/dist/cdn/X4G32AIG.js +0 -2
- package/dist/cdn/XUPYBBRI.js +0 -2
- package/dist/cdn/YG5VQATB.js +0 -2
- package/dist/cdn/ZAIRH5DL.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as P}from"./YVKSTDL6.js";import c from"./RBGARTND.js";import b from"./F3ODJVJC.js";import{a as K}from"./OV5O7YP4.js";import{a as R}from"./KYNL256E.js";import{a as M}from"./23X56P4K.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import{b as N}from"./2GBRZSEC.js";import{a as J}from"./XUPYBBRI.js";import"./C5U7YKVI.js";import"./6BMWSGLA.js";import{L as _,M as L,O as x,R as T,j as d,k as O,w as A}from"./CWSEBETE.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([p,{substitute:w},,,{f:E,g:H,h:W,i:B}])=>{var C=1260*1e3,q=2500;function D(o,t="_blank",i=582,e=670){let s=window.screenLeft??0,n=window.screenTop??0,a=window.innerWidth||document.documentElement.clientWidth||window.screen.width,r=window.innerHeight||document.documentElement.clientHeight||window.screen.height,c=a/2-i/2+s,l=r/2-e/2+n,u=window.open(o,t,`scrollbars=no, width=${i}, height=${e}, top=${l}, left=${c}`);return u?.focus(),u}function z(o){let t=p.findOAuthInfo(o.url),{locale:i="en",expiration:e=C}=t??{},s=new URLSearchParams({locale:i,client_id:"arcgisonline",response_type:"token",expiration:`${e}`,linkUserRequest:"true",showSocialLogins:"true",hideEnterpriseLogins:"false",force_login:"true",parent:window.location.origin,redirect_uri:`https://${o.portalHostname}/home/link_account_callback.html`,state:JSON.stringify({useMessage:!0})}),n=`https://${o.portalHostname}/sharing/oauth2/authorize?${s.toString()}`;D(n)}function y(o){let{config:t,token:i,clientId:e="arcgisonline",redirectToClientUri:s=!1,displaySignoutComplete:n=!1,clientUri:a}=o,r=new URLSearchParams({display:"iframe",client_id:e,...i&&{token:i},parent:window.location.origin,redirect_uri:`${t.baseUrl}/home/check_sign_in_status.html`,state:JSON.stringify({signout:!0,origin:window.location.origin,accountOrigin:`${t.restBaseUrl}/`,redirectToClientUri:s,displaySignoutComplete:n,...a&&{redirectUri:a}})}),c=`${t.restBaseUrl}/oauth2/signout?${r.toString()}`,l=document.createElement("iframe");l.src=c,l.style.display="none",document.body.appendChild(l)}function F(o,t,i){let e=h(o.orgUrlKey,t),s=p.findOAuthInfo(e),{appId:n,locale:a="en",expiration:r=C}=s??{},c=v(o.provider),l=new URLSearchParams({locale:a,client_id:i??n??"arcgisonline",response_type:"token",expiration:`${r}`,parent:window.location.origin,...c==="social"&&{socialLoginProviderName:o.provider},...c==="default"&&{prepopulatedusername:o.username},force_login:"true",redirect_uri:`${e}/home/sign_in_callback.html`,state:JSON.stringify({user:o.username,server:e,portalUrl:e,origin:window.location.origin})}),u=`${I(o,t)}?${l.toString()}`;D(u)}function G({accounts:o,clientId:t="arcgisonline",usersToFilter:i=[],accountsToFilter:e=""}){let s={};return o.reduce((n,a)=>{let r={disabled:a.disabled??!1,allowed:a.clientAppAccessAllowed??!0};return n[a.username]=r,(i.includes(a.username)||i.includes(a.username.toLowerCase())||e==="org"&&a.orgUrlKey||t==="esriapps"&&a.userType!=="both")&&(r.allowed=!1),n},s),s}function Q({account:o,credential:t,clientId:i,portal:e,redirectUri:s}){let n=v(o.provider),a=I(o,e),r=s||j(o,e),c=new URLSearchParams({client_id:i,redirect_uri:r,parent:window.location.origin,response_type:"token",force_login:"false",...t.userId&&{prepopulatedusername:t.userId},...n==="social"&&{socialLoginProviderName:o.provider},expiration:`${(t?.expires??Date.now()+C)-Date.now()}`});return`${a}?${c.toString()}`}function v(o){return V(o)?"social":o==="enterprise"?"enterprise":o.includes("oidc")?"oidc":"default"}function V(o){return["apple","facebook","github","google"].includes(o)}function I(o,t){let i=h(o.orgUrlKey,t).toLowerCase(),e=v(o.provider),s="";switch(e){case"social":s="social/";break;case"enterprise":s="saml/";break;case"oidc":s=`oidc/${o.provider.split("_")[1]}/`;break}return`${i}/sharing/rest/oauth2/${s}authorize`}function h(o,t){return o?.startsWith("https://")?o:o&&t.customBaseUrl?`https://${o}.${t.customBaseUrl}`:`https://${t.portalHostname}`}function j(o,t){return`${h(o.orgUrlKey,t)}/home/accountswitcher-callback.html`}function X(o,t){return p.findCredential(h(o.orgUrlKey,t),o.username)}function Y(o,t){let i=X(o,t);if(i)return i;let e=h(o.orgUrlKey,t),s=`${e}/home/check_sign_in_status.html#state=${JSON.stringify({origin:window.location.origin,server:e,orgKey:e})}`;Z(s,`iframe__for-${e}`)}function Z(o,t){let i=document.createElement("iframe");i.src=o,i.id=t,i.style.display="none",document.body.appendChild(i)}var S=100,b=class extends _{constructor(){super(),this.messages=J({blocking:!0}),this.targetUser="",this.targetToken="",this.accountAccess={},this.remainingSignouts=0,this.signoutHandle=0,this.linkedAccounts=[],this.loading=!1,this.signedInStatus={},this.showAssociatedAccountsWarning=!1,this.signedInAccounts=[],this.clientId="arcgisonline",this.signout=!1,this.signoutOptions={redirectToClientUri:!1,displaySignoutComplete:!1},this.arcgisAccountSwitch=A(),this.arcgisClose=A(),this.arcgisSignoutComplete=A(),this.listenOn(window,"message",this.handleMessageEvent)}static{this.properties={linkedAccounts:16,userAccounts:16,user:16,credential:16,alertOptions:16,loading:16,signedInStatus:16,showAssociatedAccountsWarning:16,signedInAccounts:16,portal:0,clientId:1,redirectUri:1,signout:5,signoutOptions:0}}static{this.styles=M}willUpdate(t){if(t.has("portal")&&(this.user=this.portal?.user),(t.has("portal")||t.has("user"))&&this.portal&&this.user){this.findLinkedUsers();return}if(t.has("linkedAccounts")||t.has("signedInStatus")){if(this.signout){let{signedInStatus:i,linkedAccounts:e,portal:s,signoutOptions:n,clientId:a,user:r,redirectUri:c}=this,l=Object.keys(i).filter(k=>i[k]!==null).map(k=>e.find(U=>U.username===k));this.remainingSignouts=l.length+1;let u=h(s.urlKey??"",s),f=`${u}/sharing/rest`,{displaySignoutComplete:m=!0,redirectToClientUri:g=!0}=n;l.length>0&&(m=!1,g=!1),this.loading=!0;let $=p.findCredential(u,r?.id||r?.username);y({displaySignoutComplete:m,redirectToClientUri:g,clientId:a,config:{baseUrl:u,restBaseUrl:f},token:$?.token,clientUri:g?c:void 0}),this.signoutHandle=window.setTimeout(()=>{this.remainingSignouts-=1,this.finishSignout({accountOrigin:u,redirectToClientUri:g,displaySignoutComplete:m})},q)}return}}handleMessageEvent(t){if(new URL(t.origin).hostname!=="localhost"&&(t.origin.endsWith(".arcgis.com")||t.origin===window.location.origin)){if(typeof t.data=="string"){JSON.parse(t.data).type==="token_exchange"&&this.handleExchangeTokenMessage(t);return}if("type"in t.data)switch(t.data.type){case"signin":this.handleSigninMessage(t);return;case"signout":this.handleSignoutMessage(t);return;case"linkUser":this.handleLinkUserMessage(t);return;case"token_exchange":this.handleExchangeTokenMessage(t);return}if("credential"in t.data){this.handleSigninMessage(t);return}this.handleCheckSignInStatusMessage(t)}}handleSignoutMessage(t){let{error:i,signout:e,accountOrigin:s,redirectToClientUri:n,displaySignoutComplete:a}=t.data;if(this.remainingSignouts-=1,i&&i!=="unknown"){console.error(i),this.showAlert("danger",this.messages.errors.signout);return}e&&(this.user=void 0,this.credential=void 0,this.finishSignout({accountOrigin:s,redirectToClientUri:n,displaySignoutComplete:a}))}handleSigninMessage(t){let{messages:i,clientId:e}=this,{error:s,status:n,state:a,access_token:r,ssl:c,expires_in:l}=t.data;if(s){console.error(s),this.showAlert("danger",i.errors.signin);return}if(n==="success"){let{portal:u,user:f,redirectUri:m}=this,g=this.linkedAccounts.find(U=>U.username===a.user);g?.orgUrlKey===this.portal.urlKey&&p.findCredential(`https://${u.portalHostname}`,f?.username)?.destroy();let $={server:a.portalUrl,userId:a.user,token:r,expires:Number(l)+Date.now(),ssl:c===void 0||c!=="false"};p.registerToken($);let k=Q({account:g,credential:$,clientId:e,portal:u,redirectUri:m});window.self!==window.top?window.top?.postMessage({type:"navigate",url:k}):this.arcgisAccountSwitch.emit({account:g,finishUrl:k})}}handleCheckSignInStatusMessage(t){let{success:i,orgKey:e,server:s,userId:n,token:a,expires:r,ssl:c}=t.data;e&&s&&i&&n&&a&&r&&c!==void 0&&(this.signedInStatus[n]={token:a,expires:r,ssl:c})}async handleLinkUserMessage(t){let{error:i,username:e,access_token:s}=t.data,{portal:n,user:a,linkedAccounts:r,messages:c}=this;if(i){if(i.toString().toLowerCase().includes("user denied your request"))return;this.showAlert("danger",c.errors.accessAccount);return}if(e===a?.username){this.showAlert("danger",c.errors.selfLink);return}if(r.find(u=>u.username===e)){this.showAlert("danger",w(c.errors.alreadyLinked,{username:e}));return}let l=await H(n,e,s);if(l?.length){this.userAccounts=l,this.targetUser=e??"",this.targetToken=s??"",this.showAssociatedAccountsWarning=!0;return}this.linkAccount(e,s)}handleExchangeTokenMessage(t){let i=typeof t.data=="string"?JSON.parse(t.data):t.data;if(!(i.type&&i.type!=="token_exchange")){if(i.error)console.error(i);else if(i.status==="success"&&this.targetUser){let{portal:e,linkedAccounts:s,targetUser:n,clientId:a}=this,r=s.find(m=>m.username===n);if(!r)return;let c=j(r,e),l=h(r.orgUrlKey,e),u=new URLSearchParams({response_type:"token",client_id:a,redirect_uri:c,state:JSON.stringify({user:r.username,portalUrl:l})}),f=`${I(r,e)}?${u.toString()}`;window.opener?(window.opener.location.href=f,window.close()):window.location.href=f}}}finishSignout({accountOrigin:t,redirectToClientUri:i,displaySignoutComplete:e}){this.signoutHandle&&window.clearTimeout(this.signoutHandle),t===window.location.origin&&p.destroyCredentials(),console.info("Signout complete",t,i,e),this.remainingSignouts<=0&&this.arcgisSignoutComplete.emit({accountOrigin:t,redirectToClientUri:i,displaySignoutComplete:e})}async findLinkedUsers(){if(this.loading=!0,!this.portal||!this.user){this.linkedAccounts=[],this.loading=!1;return}this.linkedAccounts=await E(this.portal,this.user),this.linkedAccounts.length&&(this.signedInStatus=this.linkedAccounts.filter(t=>t.orgUrlKey!==this.portal.urlKey).reduce((t,i)=>(t[i.username]=Y(i,this.portal)??null,t),{}),this.accountAccess=G({accounts:this.linkedAccounts,clientId:this.clientId})),this.loading=!1}async linkAccount(t,i){let{portal:e,user:s}=this;if(!e||!s)return;let n=await W({portal:e,user:s,targetUser:t,targetToken:i}),{messages:a}=this;if(n.error){this.showAlert("danger",w(a.errors.linkAccount,{username:t})),this.targetUser="",this.userAccounts=[];return}let r=this.userAccounts?.length?a.success.linkAccountMultiple:a.success.linkAccount;this.showAlert("success",w(r,{username:t})),this.targetUser="",this.userAccounts=[],await N(350),this.findLinkedUsers()}async unlinkAccount(t){if(!this.portal||!this.user)return;let{messages:i,portal:e,user:s}=this,{success:n}=await B({portal:e,user:s,linkedUsername:t.username});n?this.showAlert("success",w(i.success.unlinkAccount,{username:t.username})):this.showAlert("danger",w(i.errors.unlinkAccount,{username:t.username})),await this.findLinkedUsers()}startAccountLink(){z(this.portal)}switchAccount(t){let{portal:i,user:e,clientId:s}=this;if(!i||!e||!t)return;let n=h(e.sourceJSON.orgUrlKey??"",i),a=p.findCredential(n,e.id||e.username);a&&y({config:{baseUrl:n,restBaseUrl:`${n}/sharing/rest`},token:a?.token,clientId:s}),F(t,i,s)}signoutAll(t){let{portal:i,signedInStatus:e,clientId:s}=this;t.forEach(n=>{let a=h(n.orgUrlKey,i),r=`${a}/sharing/rest`,c=e[n.username];y({config:{baseUrl:a,restBaseUrl:r},token:c?.token,clientId:s})})}showAlert(t,i,e){this.alertOptions={kind:t,title:e,message:i}}showUnlinkConfirmation(t){let{messages:i}=this;this.alertOptions={kind:"danger",icon:"exclamation-mark-triangle-f",title:i.unlinkAccount,message:i.unlinkWarning,actions:[{text:i.unlink,kind:"danger",clickHandler:()=>{this.alertOptions=void 0,this.unlinkAccount(t)}}]}}render(){let{linkedAccounts:t,accountAccess:i,user:e,portal:s,messages:n,signout:a}=this;if(!s||!e)return null;if(a){let{signedInAccounts:r}=this;return r.length===0?d`<calcite-loader .label=${n.signingOut} .text=${n.signingOut}></calcite-loader>`:d`<arcgis-portal-account-switcher-signout .portal=${s} .signedInAccounts=${r} @arcgisSwitchAccount=${c=>{this.switchAccount(c.detail.account)}} @arcgisSignOutAll=${()=>{this.signoutAll(r)}}></arcgis-portal-account-switcher-signout>`}return d`<calcite-dialog .heading=${n.switchAccounts} heading-level=2 scale=m width=s open modal .loading=${this.loading} outside-close-disabled @calciteDialogClose=${()=>{this.arcgisClose.emit()}}><calcite-block .heading=${n.currentAccount} heading-level=3 .description=${n.signedInAs} expanded class="current-account-block" tabindex=-1>${K(e.id??e.username,d`<calcite-block class="current-account" .label=${s.urlKey?`${e.username}, ${s.name}`:e.username} heading-level=4 .heading=${e.username} .description=${s.urlKey?`${e.fullName??e.username}, ${s.name}`:e.fullName??e.username}><calcite-avatar slot=content-start inert .fullName=${e.fullName??void 0} .username=${e.username} .userId=${e.id} .thumbnail=${R(e,s)??void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${t.length>0?d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 .description=${n.linkedAccountActions} expanded class="linked-accounts-block"><calcite-button slot=content-end icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${t.length>=S}>${n.addAccount}</calcite-button><arcgis-portal-account-switcher-list .portal=${s} .linkedAccounts=${t} .accountAccess=${i} .signedInUsers=${Object.keys(this.signedInStatus).filter(r=>this.signedInStatus[r]!==null)} interactive @arcgisAccountSwitch=${r=>{this.switchAccount(r.detail.account)}} @arcgisAccountUnlink=${r=>{this.showUnlinkConfirmation(r.detail.account)}}></arcgis-portal-account-switcher-list></calcite-block>`:d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 expanded class="empty-accounts-block"><div class="empty-accounts-info"><svg class="empty-accounts-icon" width=48 height=48 viewBox="0 0 48 48" fill=none xmlns=http://www.w3.org/2000/svg>${O`<path d=${P.couple??x} fill=currentColor />`}</svg><h4>${n.emptyListTitle}</h4><p>${n.emptyList}</p><calcite-button icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${t.length>=S}>${n.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${t.length>=S}><div slot=message>${n.maxAccounts}</div></calcite-notice><calcite-alert .label=${n.alertLabel} slot=alerts .autoClose=${this.alertOptions?.kind!=="danger"} auto-close-duration=fast placement=bottom .kind=${this.alertOptions?.kind} .icon=${this.alertOptions?.icon} .open=${!!this.alertOptions} @calciteAlertClose=${()=>{this.alertOptions=void 0}}>${this.alertOptions?.title&&d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>`||""}${this.alertOptions?.message&&d`<p slot=message class=${L({"alert-message":!0,"short-message":!!this.alertOptions?.actions?.length})}>${this.alertOptions.message}</p>`||""}${this.alertOptions?.actions?.map(r=>d`<calcite-button slot=actions-end .kind=${r.kind} .appearance=${r.appearance} @click=${r.clickHandler}>${r.text}</calcite-button>`)}</calcite-alert></calcite-dialog>${this.showAssociatedAccountsWarning&&d`<arcgis-portal-account-switcher-accounts .portal=${s} .targetUser=${this.targetUser} .accounts=${this.userAccounts??[]} @arcgisLinkAll=${()=>{this.linkAccount(this.targetUser,this.targetToken)}} @arcgisCloseDialog=${()=>{this.showAssociatedAccountsWarning=!1}}></arcgis-portal-account-switcher-accounts>`||""}`}};T("arcgis-portal-account-switcher",b);return b},"identity/IdentityManager","intl",a,b,c)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as P}from"./YG6ZGQ46.js";import c from"./RQYNPDN3.js";import b from"./ROX3GKKA.js";import{a as K}from"./TWCJJCPC.js";import{a as R}from"./AXOBMX3S.js";import{a as M}from"./Z6R3C4AK.js";import a from"./PMRFXB4F.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import{b as N}from"./EMJQI4MA.js";import{a as J}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{L as _,M as L,O as x,R as T,j as d,k as O,w as A}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([p,{substitute:w},,,{f:E,g:H,h:W,i:B}])=>{var C=1260*1e3,q=2500;function D(o,t="_blank",i=582,e=670){let s=window.screenLeft??0,n=window.screenTop??0,a=window.innerWidth||document.documentElement.clientWidth||window.screen.width,r=window.innerHeight||document.documentElement.clientHeight||window.screen.height,c=a/2-i/2+s,l=r/2-e/2+n,u=window.open(o,t,`scrollbars=no, width=${i}, height=${e}, top=${l}, left=${c}`);return u?.focus(),u}function z(o){let t=p.findOAuthInfo(o.url),{locale:i="en",expiration:e=C}=t??{},s=new URLSearchParams({locale:i,client_id:"arcgisonline",response_type:"token",expiration:`${e}`,linkUserRequest:"true",showSocialLogins:"true",hideEnterpriseLogins:"false",force_login:"true",parent:window.location.origin,redirect_uri:`https://${o.portalHostname}/home/link_account_callback.html`,state:JSON.stringify({useMessage:!0})}),n=`https://${o.portalHostname}/sharing/oauth2/authorize?${s.toString()}`;D(n)}function y(o){let{config:t,token:i,clientId:e="arcgisonline",redirectToClientUri:s=!1,displaySignoutComplete:n=!1,clientUri:a}=o,r=new URLSearchParams({display:"iframe",client_id:e,...i&&{token:i},parent:window.location.origin,redirect_uri:`${t.baseUrl}/home/check_sign_in_status.html`,state:JSON.stringify({signout:!0,origin:window.location.origin,accountOrigin:`${t.restBaseUrl}/`,redirectToClientUri:s,displaySignoutComplete:n,...a&&{redirectUri:a}})}),c=`${t.restBaseUrl}/oauth2/signout?${r.toString()}`,l=document.createElement("iframe");l.src=c,l.style.display="none",document.body.appendChild(l)}function F(o,t,i){let e=h(o.orgUrlKey,t),s=p.findOAuthInfo(e),{appId:n,locale:a="en",expiration:r=C}=s??{},c=v(o.provider),l=new URLSearchParams({locale:a,client_id:i??n??"arcgisonline",response_type:"token",expiration:`${r}`,parent:window.location.origin,...c==="social"&&{socialLoginProviderName:o.provider},...c==="default"&&{prepopulatedusername:o.username},force_login:"true",redirect_uri:`${e}/home/sign_in_callback.html`,state:JSON.stringify({user:o.username,server:e,portalUrl:e,origin:window.location.origin})}),u=`${I(o,t)}?${l.toString()}`;D(u)}function G({accounts:o,clientId:t="arcgisonline",usersToFilter:i=[],accountsToFilter:e=""}){let s={};return o.reduce((n,a)=>{let r={disabled:a.disabled??!1,allowed:a.clientAppAccessAllowed??!0};return n[a.username]=r,(i.includes(a.username)||i.includes(a.username.toLowerCase())||e==="org"&&a.orgUrlKey||t==="esriapps"&&a.userType!=="both")&&(r.allowed=!1),n},s),s}function Q({account:o,credential:t,clientId:i,portal:e,redirectUri:s}){let n=v(o.provider),a=I(o,e),r=s||j(o,e),c=new URLSearchParams({client_id:i,redirect_uri:r,parent:window.location.origin,response_type:"token",force_login:"false",...t.userId&&{prepopulatedusername:t.userId},...n==="social"&&{socialLoginProviderName:o.provider},expiration:`${(t?.expires??Date.now()+C)-Date.now()}`});return`${a}?${c.toString()}`}function v(o){return V(o)?"social":o==="enterprise"?"enterprise":o.includes("oidc")?"oidc":"default"}function V(o){return["apple","facebook","github","google"].includes(o)}function I(o,t){let i=h(o.orgUrlKey,t).toLowerCase(),e=v(o.provider),s="";switch(e){case"social":s="social/";break;case"enterprise":s="saml/";break;case"oidc":s=`oidc/${o.provider.split("_")[1]}/`;break}return`${i}/sharing/rest/oauth2/${s}authorize`}function h(o,t){return o?.startsWith("https://")?o:o&&t.customBaseUrl?`https://${o}.${t.customBaseUrl}`:`https://${t.portalHostname}`}function j(o,t){return`${h(o.orgUrlKey,t)}/home/accountswitcher-callback.html`}function X(o,t){return p.findCredential(h(o.orgUrlKey,t),o.username)}function Y(o,t){let i=X(o,t);if(i)return i;let e=h(o.orgUrlKey,t),s=`${e}/home/check_sign_in_status.html#state=${JSON.stringify({origin:window.location.origin,server:e,orgKey:e})}`;Z(s,`iframe__for-${e}`)}function Z(o,t){let i=document.createElement("iframe");i.src=o,i.id=t,i.style.display="none",document.body.appendChild(i)}var S=100,b=class extends _{constructor(){super(),this.messages=J({blocking:!0}),this.targetUser="",this.targetToken="",this.accountAccess={},this.remainingSignouts=0,this.signoutHandle=0,this.linkedAccounts=[],this.loading=!1,this.signedInStatus={},this.showAssociatedAccountsWarning=!1,this.signedInAccounts=[],this.clientId="arcgisonline",this.signout=!1,this.signoutOptions={redirectToClientUri:!1,displaySignoutComplete:!1},this.arcgisAccountSwitch=A(),this.arcgisClose=A(),this.arcgisSignoutComplete=A(),this.listenOn(window,"message",this.handleMessageEvent)}static{this.properties={linkedAccounts:16,userAccounts:16,user:16,credential:16,alertOptions:16,loading:16,signedInStatus:16,showAssociatedAccountsWarning:16,signedInAccounts:16,portal:0,clientId:1,redirectUri:1,signout:5,signoutOptions:0}}static{this.styles=M}willUpdate(t){if(t.has("portal")&&(this.user=this.portal?.user),(t.has("portal")||t.has("user"))&&this.portal&&this.user){this.findLinkedUsers();return}if(t.has("linkedAccounts")||t.has("signedInStatus")){if(this.signout){let{signedInStatus:i,linkedAccounts:e,portal:s,signoutOptions:n,clientId:a,user:r,redirectUri:c}=this,l=Object.keys(i).filter(k=>i[k]!==null).map(k=>e.find(U=>U.username===k));this.remainingSignouts=l.length+1;let u=h(s.urlKey??"",s),f=`${u}/sharing/rest`,{displaySignoutComplete:m=!0,redirectToClientUri:g=!0}=n;l.length>0&&(m=!1,g=!1),this.loading=!0;let $=p.findCredential(u,r?.id||r?.username);y({displaySignoutComplete:m,redirectToClientUri:g,clientId:a,config:{baseUrl:u,restBaseUrl:f},token:$?.token,clientUri:g?c:void 0}),this.signoutHandle=window.setTimeout(()=>{this.remainingSignouts-=1,this.finishSignout({accountOrigin:u,redirectToClientUri:g,displaySignoutComplete:m})},q)}return}}handleMessageEvent(t){if(new URL(t.origin).hostname!=="localhost"&&(t.origin.endsWith(".arcgis.com")||t.origin===window.location.origin)){if(typeof t.data=="string"){JSON.parse(t.data).type==="token_exchange"&&this.handleExchangeTokenMessage(t);return}if("type"in t.data)switch(t.data.type){case"signin":this.handleSigninMessage(t);return;case"signout":this.handleSignoutMessage(t);return;case"linkUser":this.handleLinkUserMessage(t);return;case"token_exchange":this.handleExchangeTokenMessage(t);return}if("credential"in t.data){this.handleSigninMessage(t);return}this.handleCheckSignInStatusMessage(t)}}handleSignoutMessage(t){let{error:i,signout:e,accountOrigin:s,redirectToClientUri:n,displaySignoutComplete:a}=t.data;if(this.remainingSignouts-=1,i&&i!=="unknown"){console.error(i),this.showAlert("danger",this.messages.errors.signout);return}e&&(this.user=void 0,this.credential=void 0,this.finishSignout({accountOrigin:s,redirectToClientUri:n,displaySignoutComplete:a}))}handleSigninMessage(t){let{messages:i,clientId:e}=this,{error:s,status:n,state:a,access_token:r,ssl:c,expires_in:l}=t.data;if(s){console.error(s),this.showAlert("danger",i.errors.signin);return}if(n==="success"){let{portal:u,user:f,redirectUri:m}=this,g=this.linkedAccounts.find(U=>U.username===a.user);g?.orgUrlKey===this.portal.urlKey&&p.findCredential(`https://${u.portalHostname}`,f?.username)?.destroy();let $={server:a.portalUrl,userId:a.user,token:r,expires:Number(l)+Date.now(),ssl:c===void 0||c!=="false"};p.registerToken($);let k=Q({account:g,credential:$,clientId:e,portal:u,redirectUri:m});window.self!==window.top?window.top?.postMessage({type:"navigate",url:k}):this.arcgisAccountSwitch.emit({account:g,finishUrl:k})}}handleCheckSignInStatusMessage(t){let{success:i,orgKey:e,server:s,userId:n,token:a,expires:r,ssl:c}=t.data;e&&s&&i&&n&&a&&r&&c!==void 0&&(this.signedInStatus[n]={token:a,expires:r,ssl:c})}async handleLinkUserMessage(t){let{error:i,username:e,access_token:s}=t.data,{portal:n,user:a,linkedAccounts:r,messages:c}=this;if(i){if(i.toString().toLowerCase().includes("user denied your request"))return;this.showAlert("danger",c.errors.accessAccount);return}if(e===a?.username){this.showAlert("danger",c.errors.selfLink);return}if(r.find(u=>u.username===e)){this.showAlert("danger",w(c.errors.alreadyLinked,{username:e}));return}let l=await H(n,e,s);if(l?.length){this.userAccounts=l,this.targetUser=e??"",this.targetToken=s??"",this.showAssociatedAccountsWarning=!0;return}this.linkAccount(e,s)}handleExchangeTokenMessage(t){let i=typeof t.data=="string"?JSON.parse(t.data):t.data;if(!(i.type&&i.type!=="token_exchange")){if(i.error)console.error(i);else if(i.status==="success"&&this.targetUser){let{portal:e,linkedAccounts:s,targetUser:n,clientId:a}=this,r=s.find(m=>m.username===n);if(!r)return;let c=j(r,e),l=h(r.orgUrlKey,e),u=new URLSearchParams({response_type:"token",client_id:a,redirect_uri:c,state:JSON.stringify({user:r.username,portalUrl:l})}),f=`${I(r,e)}?${u.toString()}`;window.opener?(window.opener.location.href=f,window.close()):window.location.href=f}}}finishSignout({accountOrigin:t,redirectToClientUri:i,displaySignoutComplete:e}){this.signoutHandle&&window.clearTimeout(this.signoutHandle),t===window.location.origin&&p.destroyCredentials(),console.info("Signout complete",t,i,e),this.remainingSignouts<=0&&this.arcgisSignoutComplete.emit({accountOrigin:t,redirectToClientUri:i,displaySignoutComplete:e})}async findLinkedUsers(){if(this.loading=!0,!this.portal||!this.user){this.linkedAccounts=[],this.loading=!1;return}this.linkedAccounts=await E(this.portal,this.user),this.linkedAccounts.length&&(this.signedInStatus=this.linkedAccounts.filter(t=>t.orgUrlKey!==this.portal.urlKey).reduce((t,i)=>(t[i.username]=Y(i,this.portal)??null,t),{}),this.accountAccess=G({accounts:this.linkedAccounts,clientId:this.clientId})),this.loading=!1}async linkAccount(t,i){let{portal:e,user:s}=this;if(!e||!s)return;let n=await W({portal:e,user:s,targetUser:t,targetToken:i}),{messages:a}=this;if(n.error){this.showAlert("danger",w(a.errors.linkAccount,{username:t})),this.targetUser="",this.userAccounts=[];return}let r=this.userAccounts?.length?a.success.linkAccountMultiple:a.success.linkAccount;this.showAlert("success",w(r,{username:t})),this.targetUser="",this.userAccounts=[],await N(350),this.findLinkedUsers()}async unlinkAccount(t){if(!this.portal||!this.user)return;let{messages:i,portal:e,user:s}=this,{success:n}=await B({portal:e,user:s,linkedUsername:t.username});n?this.showAlert("success",w(i.success.unlinkAccount,{username:t.username})):this.showAlert("danger",w(i.errors.unlinkAccount,{username:t.username})),await this.findLinkedUsers()}startAccountLink(){z(this.portal)}switchAccount(t){let{portal:i,user:e,clientId:s}=this;if(!i||!e||!t)return;let n=h(e.sourceJSON.orgUrlKey??"",i),a=p.findCredential(n,e.id||e.username);a&&y({config:{baseUrl:n,restBaseUrl:`${n}/sharing/rest`},token:a?.token,clientId:s}),F(t,i,s)}signoutAll(t){let{portal:i,signedInStatus:e,clientId:s}=this;t.forEach(n=>{let a=h(n.orgUrlKey,i),r=`${a}/sharing/rest`,c=e[n.username];y({config:{baseUrl:a,restBaseUrl:r},token:c?.token,clientId:s})})}showAlert(t,i,e){this.alertOptions={kind:t,title:e,message:i}}showUnlinkConfirmation(t){let{messages:i}=this;this.alertOptions={kind:"danger",icon:"exclamation-mark-triangle-f",title:i.unlinkAccount,message:i.unlinkWarning,actions:[{text:i.unlink,kind:"danger",clickHandler:()=>{this.alertOptions=void 0,this.unlinkAccount(t)}}]}}render(){let{linkedAccounts:t,accountAccess:i,user:e,portal:s,messages:n,signout:a}=this;if(!s||!e)return null;if(a){let{signedInAccounts:r}=this;return r.length===0?d`<calcite-loader .label=${n.signingOut} .text=${n.signingOut}></calcite-loader>`:d`<arcgis-portal-account-switcher-signout .portal=${s} .signedInAccounts=${r} @arcgisSwitchAccount=${c=>{this.switchAccount(c.detail.account)}} @arcgisSignOutAll=${()=>{this.signoutAll(r)}}></arcgis-portal-account-switcher-signout>`}return d`<calcite-dialog .heading=${n.switchAccounts} heading-level=2 scale=m width=s open modal .loading=${this.loading} outside-close-disabled @calciteDialogClose=${()=>{this.arcgisClose.emit()}}><calcite-block .heading=${n.currentAccount} heading-level=3 .description=${n.signedInAs} expanded class="current-account-block" tabindex=-1>${K(e.id??e.username,d`<calcite-block class="current-account" .label=${s.urlKey?`${e.username}, ${s.name}`:e.username} heading-level=4 .heading=${e.username} .description=${s.urlKey?`${e.fullName??e.username}, ${s.name}`:e.fullName??e.username}><calcite-avatar slot=content-start inert .fullName=${e.fullName??void 0} .username=${e.username} .userId=${e.id} .thumbnail=${R(e,s)??void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${t.length>0?d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 .description=${n.linkedAccountActions} expanded class="linked-accounts-block"><calcite-button slot=content-end icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${t.length>=S}>${n.addAccount}</calcite-button><arcgis-portal-account-switcher-list .portal=${s} .linkedAccounts=${t} .accountAccess=${i} .signedInUsers=${Object.keys(this.signedInStatus).filter(r=>this.signedInStatus[r]!==null)} interactive @arcgisAccountSwitch=${r=>{this.switchAccount(r.detail.account)}} @arcgisAccountUnlink=${r=>{this.showUnlinkConfirmation(r.detail.account)}}></arcgis-portal-account-switcher-list></calcite-block>`:d`<calcite-block .heading=${n.linkedAccounts} heading-level=3 expanded class="empty-accounts-block"><div class="empty-accounts-info"><svg class="empty-accounts-icon" width=48 height=48 viewBox="0 0 48 48" fill=none xmlns=http://www.w3.org/2000/svg>${O`<path d=${P.couple??x} fill=currentColor />`}</svg><h4>${n.emptyListTitle}</h4><p>${n.emptyList}</p><calcite-button icon-start=plus class="link-account-button" @click=${()=>this.startAccountLink()} .disabled=${t.length>=S}>${n.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${t.length>=S}><div slot=message>${n.maxAccounts}</div></calcite-notice><calcite-alert .label=${n.alertLabel} slot=alerts .autoClose=${this.alertOptions?.kind!=="danger"} auto-close-duration=fast placement=bottom .kind=${this.alertOptions?.kind} .icon=${this.alertOptions?.icon} .open=${!!this.alertOptions} @calciteAlertClose=${()=>{this.alertOptions=void 0}}>${this.alertOptions?.title&&d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>`||""}${this.alertOptions?.message&&d`<p slot=message class=${L({"alert-message":!0,"short-message":!!this.alertOptions?.actions?.length})}>${this.alertOptions.message}</p>`||""}${this.alertOptions?.actions?.map(r=>d`<calcite-button slot=actions-end .kind=${r.kind} .appearance=${r.appearance} @click=${r.clickHandler}>${r.text}</calcite-button>`)}</calcite-alert></calcite-dialog>${this.showAssociatedAccountsWarning&&d`<arcgis-portal-account-switcher-accounts .portal=${s} .targetUser=${this.targetUser} .accounts=${this.userAccounts??[]} @arcgisLinkAll=${()=>{this.linkAccount(this.targetUser,this.targetToken)}} @arcgisCloseDialog=${()=>{this.showAssociatedAccountsWarning=!1}}></arcgis-portal-account-switcher-accounts>`||""}`}};T("arcgis-portal-account-switcher",b);return b},"identity/IdentityManager","intl",a,b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import a from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import a from"./FRE56NBG.js";import"./GUL7EIJ4.js";import{a as v}from"./TWCJJCPC.js";import{a as b}from"./YZTBAUIO.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import{b as $}from"./EMJQI4MA.js";import{a as F}from"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import{J as p,K as m,L as f,O as o,R as u,h as g,j as n,w as c}from"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([{a:y,b:I,c:k}])=>{var x=g`:host{display:inline-flex}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}`,w=class extends f{constructor(){super(),this.messages=F({name:"portal-item-favorite",blocking:!0}),this.actionRef=p(),this.dropdownRef=p(),this.favoriteRequestId=0,this.didWarnEmptyActions=!1,this.handleFavoriteUpdate=e=>{let i=k(e,this.item.id??void 0);i&&(this.isFavorite=i.favorite)},this.isFavorite=!1,this.actions=[],this.showFavorite=!1,this.showPreview=!1,this.arcgisItemActionClick=c(),this.arcgisItemActionsOpen=c(),this.arcgisItemFavoriteUpdate=c(),this.arcgisItemActions=c(),this.listenOn(window,"arcgisItemFavoriteUpdate",this.handleFavoriteUpdate)}static{this.properties={isFavorite:16,item:0,portal:0,user:0,actions:0,keyHandler:0,label:1,showFavorite:5,showPreview:5,previewText:1,tabIndexOverride:9}}static{this.styles=x}async setFocus(){await this.actionRef.value?.setFocus()}willUpdate(e){(e.has("item")||e.has("portal")||e.has("user"))&&this.refreshFavorite()}async refreshFavorite(){if(!this.item.id||!this.portal||!this.user){this.isFavorite=!1;return}let e=++this.favoriteRequestId,i=await y(this.item.id,this.portal,this.user);e===this.favoriteRequestId&&(this.isFavorite=i)}async handleToggleFavorite(e){e.preventDefault(),e.stopPropagation();let{item:i,portal:d,user:l,isFavorite:a}=this;if(!i.id||!d||!l)return;let r={id:i.id,access:i.access},{updated:s}=await I({currentFavorite:a,item:r,portal:d,user:l});s&&(await $(300),this.isFavorite=!a,this.arcgisItemFavoriteUpdate.emit({id:i.id,favorite:this.isFavorite}))}handleActionClick(e,i){i.stopPropagation(),this.arcgisItemActionClick.emit(e.id||e.text),e.action&&(i.preventDefault(),e.action())}render(){let{item:e,actions:i,label:d,previewText:l}=this,a=i.length>0,r=this.showFavorite&&!!this.user;if(!a&&!r&&!this.showPreview&&!this.didWarnEmptyActions&&(console.warn("[arcgis-portal-item-actions] The actions menu is hidden because no actions were provided and both showFavorite/showPreview are disabled."),this.didWarnEmptyActions=!0),!a&&!r&&!this.showPreview)return null;let s=`${e.id}-title`;return n`<span class="screen-readers-only" id=${s??o}>${e.title}</span><calcite-dropdown overlay-positioning=fixed placement=bottom-end close-on-select-disabled @click=${t=>{t.stopPropagation()}} ${m(this.dropdownRef)}><calcite-action scale=s slot=trigger alignment=center .text=${d} icon=ellipsis tabindex=${this.tabIndexOverride??o} @click=${t=>{this.arcgisItemActionsOpen.emit({el:t.currentTarget})}} @keydown=${t=>{let h=this.dropdownRef.value;this.keyHandler&&h&&this.keyHandler(t,h)}} ${m(this.actionRef)}></calcite-action><calcite-dropdown-group selection-mode=none>${b(i,t=>t.id||t.text,t=>n`<calcite-dropdown-item aria-describedby=${s??o} .href=${t.link} .target=${t.newTab?"_blank":void 0} .rel=${t.newTab?"noopener noreferrer":void 0} .innerHTML=${t.text??""} @calciteDropdownItemSelect=${h=>{this.handleActionClick(t,h)}}></calcite-dropdown-item>`)}${r&&v("favorites",n`<calcite-dropdown-item aria-describedby=${s??o} @calciteDropdownItemSelect=${t=>{this.handleToggleFavorite(t)}} @click=${t=>{t.preventDefault(),t.stopPropagation()}}>${this.isFavorite?this.messages.remove:this.messages.add}</calcite-dropdown-item>`)||""}${this.showPreview&&v("preview",n`<calcite-dropdown-item id=item-preview aria-describedby=${s??o} @calciteDropdownItemSelect=${t=>{t.stopPropagation(),this.arcgisItemActionClick.emit("preview")}}>${l}</calcite-dropdown-item>`)||""}</calcite-dropdown-group></calcite-dropdown>`}};u("arcgis-portal-item-actions",w);return w},a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import b from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import b from"./ROX3GKKA.js";import a from"./PMRFXB4F.js";import{a as e}from"./K75JTQPW.js";export default $arcgis.t(([i,{a:n,b:o},{e:t}])=>{async function y(s){let r=`${s.restUrl}/portals/${s.id}/approvedApps`;return await t(r,{query:{returnAllApps:!1}})}async function m(s){let r=`${s.restUrl}/portals/self/subscriptionInfo`,{result:a}=await t(r);return a?.orgCapabilities||[]}async function d(s){let r=`${s.restUrl}/portals/self/settings`,{result:a}=await t(r);return a}async function w(s){let r=`${s.restUrl}/portals/self/servers`;return(await t(r))?.result?.servers||[]}async function u(s){let r=`${s.restUrl}/portals/self/signinSettings`;return(await t(r)).result||{}}async function g(s){return s?.user?(await u(s))?.blockedApps||[]:[]}async function $(s){return(await n({requester:async()=>await i(`${e(s)}portals/self/userDefaultSettings`,{query:{f:"json"}}),key:"memberDefaults",id:s.id})).data}async function b(s){try{return{result:await n({requester:async()=>await o({url:`${e(s)}portals/self/resources/home.page.json`,portal:s}),key:"homePageConfig",id:s.id})}}catch{return{result:void 0}}}return{a:y,b:m,c:d,d:w,e:u,f:g,g:$,h:b}},"request",a,b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as L}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as L}from"./K2XSYDAP.js";import{a as C,b as y,c as A,p as f,v as x,x as w}from"./AICPYLWE.js";var H=(s,n)=>{let e=s;for(;e;){if(e===n)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},d=(s,n,e)=>{let t=M(n).subscribe;return t(o=>{o.some(r=>H(s,r.target))&&e()})},m={},M=s=>{let n=s.join(","),e=m[n];if(e!==void 0)return e;let t=new Set,o=new MutationObserver(r=>t.forEach(i=>i(r)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:s,subtree:!0});let a={subscribe:r=>(t.add(r),()=>{t.delete(r),t.size===0&&(o.disconnect(),m[n]=void 0)})};return m[n]=a,a},N=(s,n)=>{let e=s;for(;e;){let t=e.closest?.(n);if(t)return t;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};var u=(s,n,e)=>N(s,`[${n}]`)?.getAttribute(n)??e;var E=s=>{let n=u(s,"lang",globalThis.navigator?.language||g);return{lang:n,t9nLocale:P(n)}},O=(s,n,e,t)=>{let o,a=()=>D(s,n(),t).then(r=>{(o?.lang!==r.lang||o.t9nLocale!==r.t9nLocale||o.t9nStrings!==r.t9nStrings)&&e(r),o=r}).catch(r=>{f("error","intl","Error updating component locale state",{detail:{error:r}})});return queueMicrotask(a),d(s,["lang"],a)},D=async(s,n,e=s.localName.split("-").slice(1).join("-"))=>{let{lang:t,t9nLocale:o}=E(s),a=`${n}/${e}/t9n`,i=e===null?{}:await z(o,a,"messages.");return{lang:t,t9nLocale:o,t9nStrings:i}};var _="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(_),g="en",R={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},z=async(s,n,e="")=>{let t=`${n}/${e}`,o=`${t}${s}.json`;return $[o]??=k(s,t),await $[o]},$={},k=async(s,n)=>{let e=`${n}${s}.json`;try{let t=await fetch(e);if(t.ok)return await t.json()}catch(t){return f("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:t}}),{}}return s===g?{}:await k(g,n)},P=s=>{let[n,e]=s.split("-"),t=n.toLowerCase(),o=t;return e&&(o=`${t}-${e.toUpperCase()}`),o=R[o]??o,F.has(o)?o:e?P(t):g};var S=s=>G(void 0,s),Ae=s=>n=>G(n,s),v=class extends w{constructor(n,e){super(n);let t=this.exports;try{y(this.component);let o=e(this.component,this),a=this.exports!==t;if(C(o)){a||this.setProvisionalExports(o);let r=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await r)}else(!a||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},G=L(v);var T="ltr",xe=()=>S((s,n)=>{n.exports=T,n.onLifecycle(()=>{let e=()=>{let t=u(s.el,"dir",T);n.exports=t==="rtl"?"rtl":"ltr"};return e(),d(s.el,["dir"],e)})}),we=s=>(n={})=>S((e,t)=>{let o=E(e.el),a={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},r=e;t.onLifecycle(()=>O(e.el,()=>s("./assets"),({t9nLocale:c,t9nStrings:l,lang:h})=>{let p={...l,_lang:h,_t9nLocale:c,_loading:!1};t.exports=p;let b=l.componentLabel;typeof b=="string"&&"label"in e&&e.label==null&&(e.label??=b),i(r.messageOverrides)},n.name));let i=c=>{let l=t.exports,h=l._original??l,p=j(h,c);c&&(p._original=h),t.exports=p};return"messageOverrides"in r&&t.onUpdate(c=>{c.has("messageOverrides")&&i(r.messageOverrides)}),n.blocking?(t.setProvisionalExports(a,!1),t.ready):a}),j=(s,n)=>{if(!n)return s;let e={...s};return Object.entries(n).forEach(([t,o])=>{s[t]!==void 0&&(typeof o=="object"?e[t]=j(s[t],o):e[t]=o??s[t])}),e},Le=s=>q,V="arcgisPropertyChange",q=(...s)=>{let n=A(),e=x(V,void 0,n),t=!0;return n.manager.onUpdated(o=>{if(t||!n.el.isConnected){t=!1;return}for(let a of s)o.has(a)&&e.emit({name:a})}),e};export{N as a,Ae as b,xe as c,we as d,Le as e};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{_a as a}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{_a as a}from"./MLYQGIJU.js";import"./5PV2GUZW.js";async function c(e,i,o){if(o===void 0)throw new Error(["Unable to dispatch a custom event without a parent run id.",'"dispatchCustomEvent" can only be called from within an existing run (e.g.,',"inside a tool or a RunnableLambda).",`
|
|
3
3
|
|
|
4
4
|
If you continue to see this error, please import from "@langchain/core/callbacks/dispatch/web"`,"and explicitly pass in a config parameter.",`
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as Y}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as Y}from"./OUMTV5H5.js";var X=globalThis,Z=X.ShadowRoot&&(X.ShadyCSS===void 0||X.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),kt=new WeakMap,I=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&kt.set(e,t))}return t}toString(){return this.cssText}},jt=s=>new I(typeof s=="string"?s:s+"",void 0,Et),Ce=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new I(e,s,Et)},Ht=(s,t)=>{if(Z)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),r=X.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,s.appendChild(o)}},$t=Z?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return jt(e)})(s):s;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,et=globalThis,Vt=et.trustedTypes,De=Vt?Vt.emptyScript:"",xe=et.reactiveElementPolyfillSupport,k=(s,t)=>s,tt={toAttribute(s,t){switch(t){case Boolean:s=s?De:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},j=(s,t)=>!we(s,t),zt={attribute:!0,type:String,converter:tt,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),et.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&&Oe(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:n}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:r,set(i){let a=r?.call(this);n?.call(this,i),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,o=[...Se(e),...Pe(e)];for(let r of o)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)e.unshift($t(r))}else t!==void 0&&e.push($t(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:tt).toAttribute(e,o.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=o.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:tt;this._$Em=r;let a=i.fromAttribute(e,n.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,n){if(t!==void 0){let i=this.constructor;if(r===!1&&(n=this[t]),o??=i.getPropertyOptions(t),!((o.hasChanged??j)(n,e)||o.useDefault&&o.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:n},i){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,n]of o){let{wrapped:i}=n,a=this[r];i!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,n,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[k("elementProperties")]=new Map,_[k("finalized")]=new Map,xe?.({ReactiveElement:_}),(et.reactiveElementVersions??=[]).push("2.1.2");var _t=globalThis,Bt=s=>s,st=_t.trustedTypes,Wt=st?st.createPolicy("lit-html",{createHTML:s=>s}):void 0,At="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+A,Le=`<${Ct}>`,T=document,V=()=>T.createComment(""),z=s=>s===null||typeof s!="object"&&typeof s!="function",wt=Array.isArray,Qt=s=>wt(s)||typeof s?.[Symbol.iterator]=="function",bt=`[
|
|
3
3
|
\f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,qt=/>/g,w=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
|
|
4
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),fs=Ot(1),ms=Ot(2),ys=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Jt=new WeakMap,O=T.createTreeWalker(T,129);function Xt(s,t){if(!wt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Zt=(s,t)=>{let e=s.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let l=s[a],c,u,h=-1,m=0;for(;m<l.length&&(i.lastIndex=m,u=i.exec(l),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(r=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=r??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,r=void 0);let v=i===w&&s[a+1].startsWith("/>")?" ":"";n+=i===H?l+Le:h>=0?(o.push(c),l.slice(0,h)+At+l.slice(h)+A+v):l+A+(h===-2?a:v)}return[Xt(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},B=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[c,u]=Zt(t,e);if(this.el=s.createElement(c,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(m);l.push({type:1,index:n,name:C[2],strings:v,ctor:C[1]==="."?rt:C[1]==="?"?nt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(l.push({type:6,index:n}),r.removeAttribute(h));if(Yt.test(r.tagName)){let h=r.textContent.split(A),m=h.length-1;if(m>0){r.textContent=st?st.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],V()),O.nextNode(),l.push({type:2,index:++n});r.append(h[m],V())}}}else if(r.nodeType===8)if(r.data===Ct)l.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)l.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,n=z(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),t}var ot=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let n=O.nextNode(),i=0,a=0,l=o[0];for(;l!==void 0;){if(i===l.index){let c;l.type===2?c=new L(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new at(n,this,t)),this._$AV.push(c),l=o[++a]}i!==l?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),z(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=B.createElement(Xt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let n=new ot(r,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Jt.get(t.strings);return e===void 0&&Jt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let n of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Bt(t).nextSibling;Bt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let n=this.strings,i=!1;if(n===void 0)t=S(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,l,c;for(t=n[0],l=0;l<n.length-1;l++)c=S(this,a[o+l],e,l),c===f&&(c=this._$AH[l]),i||=!z(c)||c!==this._$AH[l],c===d?t=d:t!==d&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}i&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},at=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:At,P:A,A:Ct,C:1,L:Zt,R:ot,D:Qt,V:S,I:L,H:P,N:nt,U:it,B:rt,F:at},Re=_t.litHtmlPolyfillSupport;Re?.(B,L),(_t.litHtmlVersions??=[]).push("3.3.2");var lt=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let n=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(V(),n),n,void 0,e??{})}return r._$AI(s),r};var Tt=globalThis,E=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Ue=Tt.litElementPolyfillSupport;Ue?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ps=(s,t,e,o)=>{let r=oe(t);if(o?.once){let i=`${s}${r}${e}`;if(ee.has(i))return;ee.add(i)}let n;if(o?.detail){n={};for(let[i,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let l=new WeakRef(a);Object.defineProperty(n,i,{enumerable:!0,get(){return l.deref()}})}else n[i]=a;se?.log.interceptors?.forEach(i=>i(s,r,e,n)),console[s](`[${r}]: ${e}`,n)}else se?.log.interceptors?.forEach(i=>i(s,r,e)),console[s](`[${r}]: ${e}`)},re=s=>{let t=`[${oe(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},Ns=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`;var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},W=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var q=Symbol.for("controller"),Me=s=>typeof s=="object"&&s!==null&&(q in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Rs=s=>typeof s?.then=="function";var F,D=s=>{F!==s&&(F=s,queueMicrotask(()=>F===s?F=void 0:0))},G=s=>F,N=[],ht=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},ne=()=>N,R,Us=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Ie=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=dt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ae=async s=>{let t=dt(s);return await t.ready,t},dt=s=>{let e=G().manager.X(s);if(e!==void 0)return e;if(Me(s))return s;let o=Ie();if(o!==void 0)return o},ct=!1,Ms=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var le=(s,t)=>{let e=t>ke?je:t/He,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ke=4e3,je=2e3,He=4;var Ve=(s,t,e)=>{let o=Object.keys(s),r=o.length;U===void 0&&queueMicrotask(M),U??=new Map;let n=U.get(s);return n===void 0&&(n={callbacks:[],keyCount:r},U.set(s,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let a=c=>p(t,null,c),l=i[r];l===void 0?a(void 0):s[l]===e?a(l):a(void 0)}),e},U,M=()=>{U?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),U=void 0},ze=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,n)=>p(t,void 0,e===n?r:void 0)),e},Be=(s=[G(),...ne()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,n=i=>{r-=1,i!==void 0&&(r=Math.min(r,0)),r===0&&t(i)};o.forEach(i=>Ve(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of o)if("manager"in i&&i.manager.component===i){ze(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(s="",t={},e=G())=>{let o={emit:r=>{s===""&&M();let n=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(n),n}};return s===""&&Be(void 0,r=>s=r.key,o),o},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#n=[],this.#l=[],this.#c=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,o=t??G(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=he(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(ht(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#n;#l;#c;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(re(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),dt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#l.push(t)}onDestroy(t){this.#c.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#n.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#l.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#c.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#i.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#i.push(r.remove)})}};function ce(s){p(s,void 0,this)}var he=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,n){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,n)}},e=new Proxy(s,t);return e};var pe=St;var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:qe}=te,ue=s=>s;var pt=s=>s.strings===void 0,fe=()=>document.createComment(""),Ks=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let n=o.insertBefore(fe(),r),i=o.insertBefore(fe(),r);e=new qe(n,i,s,s.options)}else{let n=e._$AB.nextSibling,i=e._$AM,a=i!==s;if(a){let l;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(l=s._$AU)!==i._$AU&&e._$AP(l)}if(n!==r||a){let l=e._$AA;for(;l!==n;){let c=ue(l).nextSibling;ue(o).insertBefore(l,r),l=c}}}return e},Js=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},me=(s,t=Ge)=>s._$AH=t,Qs=s=>s._$AH,Ys=s=>{s._$AR(),s._$AA.remove()};var Ke=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!pt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return me(s),t}});var K=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),K(o,t);return!0},ut=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ye(t)}};function Je(s){this._$AN!==void 0?(ut(this),this._$AM=s,ye(this)):this._$AM=s}function Qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let n=e;n<o.length;n++)K(o[n],!1),ut(o[n]);else o!=null&&(K(o,!1),ut(o));else K(this,s)}var Ye=s=>{s.type==y.CHILD&&(s._$AP??=Qe,s._$AQ??=Je)},ft=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),ut(this))}setValue(t){if(pt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var fo=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ft{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Lt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Rt={};function Ut(){}function Mt(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Ze=(s,t)=>function(o,r){if(!globalThis.customElements)return;let i=(r??o??{}).resourcesUrl;i&&s.setAssetPath(i);for(let[a,[l,c="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=c.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),Q=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!Q.B&&(Q.B=l(),Q.F()),super()}};customElements.define(a,Q)}},mt=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],Y(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Mt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Lt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,n=Object.values(t).find(h=>h.L===o),i=`${o}--lazy`,a=n;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=n,customElements.define(i,n)),n.N=this;let c=document.createElement(i);n.N=void 0,this.#t=c,this.#e=c,this.#s.forEach(h=>c.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,c);let u=this.isConnected;(u||this.G)&&(c.connectedCallback?.(),u||c.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,n){e.setAttribute.call(this.el,r,n)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=gt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${gt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),M();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),ht(void 0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=le(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},rs=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var Ee="important",ns=" !"+Ee,$e=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let n=typeof r=="string"&&r.endsWith(ns);o.includes("-")||n?e.setProperty(o,n?r.slice(0,-11):r,n?Ee:""):e[o]=r}}return f}});var be=class s extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,n=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==n&&(t.#e=t.shouldUpdate,t.shouldUpdate=n),r&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Rt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,n=r?.hasChanged??j,i={attribute:o&1&&typeof t=="string"?Y(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),useDefault:!!(o&128),c:!1,...r,hasChanged(a,l){let c=n(a,l);return i.c=c,c}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,o){let r=this.K,n=super.getPropertyDescriptor(t,e,o);return o.d=n,{...n,get(){return r.t?.(this.#t.get(t)),n.get?.call(this)},set(i){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);n.set.call(this,i??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(M(),a?.S(t,i))}}}static{this.lumina=!0}static{Mt(this)}#t;#e;#s;#r;#n;#l;get elementInternals(){return this.#l??=this.el.attachInternals(),this.#l}connectedCallback(){this.hasAttribute("defer-hydration")||this.#c(!0)}#c(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#i().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,n=t??(o===Rt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#c(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return n}async#i(){let t=this.el.G??Lt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(W(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ae=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:e,customElement(r,n){n.K=o,n.L=r,customElements.get(r)||customElements.define(r,n)}};return e(s.defaultAssetPath),o};var Sr=s=>typeof s=="object"&&s!=null?ve(s):s,Pr=s=>typeof s=="object"&&s!=null?$e(s):s;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},Nr=$(It);var Dr=d;var xr=s=>{let t=document.createElement("div");return lt(s,t),t.firstElementChild};var J=Ae({defaultAssetPath:"https://jsdev.arcgis.com/5.2.0-next/portal-components/",hydratedAttribute:"hydrated"}),{customElement:Ir,getAssetPath:kr,setAssetPath:jr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Rs as a,D as b,G as c,ht as d,ne as e,Us as f,Ms as g,Ce as h,j as i,fs as j,ms as k,f as l,d as m,lt as n,b as o,Ps as p,re as q,Ns as r,Ds as s,ze as t,Be as u,We as v,Fe as w,St as x,pe as y,Ze as z,y as A,$ as B,g as C,Ks as D,Js as E,me as F,Qs as G,Ys as H,Ke as I,fo as J,Dt as K,be as L,Sr as M,Pr as N,Dr as O,xr as P,J as Q,Ir as R,kr as S};
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),fs=Ot(1),ms=Ot(2),ys=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Jt=new WeakMap,O=T.createTreeWalker(T,129);function Xt(s,t){if(!wt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Zt=(s,t)=>{let e=s.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let l=s[a],c,u,h=-1,m=0;for(;m<l.length&&(i.lastIndex=m,u=i.exec(l),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(r=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=r??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,c=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,r=void 0);let v=i===w&&s[a+1].startsWith("/>")?" ":"";n+=i===H?l+Le:h>=0?(o.push(c),l.slice(0,h)+At+l.slice(h)+A+v):l+A+(h===-2?a:v)}return[Xt(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},B=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0,a=t.length-1,l=this.parts,[c,u]=Zt(t,e);if(this.el=s.createElement(c,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(At)){let m=u[i++],v=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(m);l.push({type:1,index:n,name:C[2],strings:v,ctor:C[1]==="."?rt:C[1]==="?"?nt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(l.push({type:6,index:n}),r.removeAttribute(h));if(Yt.test(r.tagName)){let h=r.textContent.split(A),m=h.length-1;if(m>0){r.textContent=st?st.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],V()),O.nextNode(),l.push({type:2,index:++n});r.append(h[m],V())}}}else if(r.nodeType===8)if(r.data===Ct)l.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)l.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,n=z(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),t}var ot=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let n=O.nextNode(),i=0,a=0,l=o[0];for(;l!==void 0;){if(i===l.index){let c;l.type===2?c=new L(n,n.nextSibling,this,t):l.type===1?c=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(c=new at(n,this,t)),this._$AV.push(c),l=o[++a]}i!==l?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),z(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=B.createElement(Xt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let n=new ot(r,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Jt.get(t.strings);return e===void 0&&Jt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let n of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Bt(t).nextSibling;Bt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let n=this.strings,i=!1;if(n===void 0)t=S(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,l,c;for(t=n[0],l=0;l<n.length-1;l++)c=S(this,a[o+l],e,l),c===f&&(c=this._$AH[l]),i||=!z(c)||c!==this._$AH[l],c===d?t=d:t!==d&&(t+=(c??"")+n[l+1]),this._$AH[l]=c}i&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},rt=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},at=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:At,P:A,A:Ct,C:1,L:Zt,R:ot,D:Qt,V:S,I:L,H:P,N:nt,U:it,B:rt,F:at},Re=_t.litHtmlPolyfillSupport;Re?.(B,L),(_t.litHtmlVersions??=[]).push("3.3.2");var lt=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let n=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(V(),n),n,void 0,e??{})}return r._$AI(s),r};var Tt=globalThis,E=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Ue=Tt.litElementPolyfillSupport;Ue?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ps=(s,t,e,o)=>{let r=oe(t);if(o?.once){let i=`${s}${r}${e}`;if(ee.has(i))return;ee.add(i)}let n;if(o?.detail){n={};for(let[i,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let l=new WeakRef(a);Object.defineProperty(n,i,{enumerable:!0,get(){return l.deref()}})}else n[i]=a;se?.log.interceptors?.forEach(i=>i(s,r,e,n)),console[s](`[${r}]: ${e}`,n)}else se?.log.interceptors?.forEach(i=>i(s,r,e)),console[s](`[${r}]: ${e}`)},re=s=>{let t=`[${oe(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},Ns=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`;var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},W=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var q=Symbol.for("controller"),Me=s=>typeof s=="object"&&s!==null&&(q in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Rs=s=>typeof s?.then=="function";var F,D=s=>{F!==s&&(F=s,queueMicrotask(()=>F===s?F=void 0:0))},G=s=>F,N=[],ht=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},ne=()=>N,R,Us=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Ie=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=dt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ae=async s=>{let t=dt(s);return await t.ready,t},dt=s=>{let e=G().manager.X(s);if(e!==void 0)return e;if(Me(s))return s;let o=Ie();if(o!==void 0)return o},ct=!1,Ms=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var le=(s,t)=>{let e=t>ke?je:t/He,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ke=4e3,je=2e3,He=4;var Ve=(s,t,e)=>{let o=Object.keys(s),r=o.length;U===void 0&&queueMicrotask(M),U??=new Map;let n=U.get(s);return n===void 0&&(n={callbacks:[],keyCount:r},U.set(s,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let a=c=>p(t,null,c),l=i[r];l===void 0?a(void 0):s[l]===e?a(l):a(void 0)}),e},U,M=()=>{U?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),U=void 0},ze=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,n)=>p(t,void 0,e===n?r:void 0)),e},Be=(s=[G(),...ne()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,n=i=>{r-=1,i!==void 0&&(r=Math.min(r,0)),r===0&&t(i)};o.forEach(i=>Ve(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of o)if("manager"in i&&i.manager.component===i){ze(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(s="",t={},e=G())=>{let o={emit:r=>{s===""&&M();let n=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(n),n}};return s===""&&Be(void 0,r=>s=r.key,o),o},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#n=[],this.#l=[],this.#c=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,o=t??G(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=he(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(ht(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#n;#l;#c;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(re(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),dt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#l.push(t)}onDestroy(t){this.#c.push(t)}onLifecycle(t){this.#d.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#n.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#l.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#c.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#i.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#i.push(r.remove)})}};function ce(s){p(s,void 0,this)}var he=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,n){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,n)}},e=new Proxy(s,t);return e};var pe=St;var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:qe}=te,ue=s=>s;var pt=s=>s.strings===void 0,fe=()=>document.createComment(""),Ks=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let n=o.insertBefore(fe(),r),i=o.insertBefore(fe(),r);e=new qe(n,i,s,s.options)}else{let n=e._$AB.nextSibling,i=e._$AM,a=i!==s;if(a){let l;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(l=s._$AU)!==i._$AU&&e._$AP(l)}if(n!==r||a){let l=e._$AA;for(;l!==n;){let c=ue(l).nextSibling;ue(o).insertBefore(l,r),l=c}}}return e},Js=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},me=(s,t=Ge)=>s._$AH=t,Qs=s=>s._$AH,Ys=s=>{s._$AR(),s._$AA.remove()};var Ke=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!pt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return me(s),t}});var K=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),K(o,t);return!0},ut=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ye(t)}};function Je(s){this._$AN!==void 0?(ut(this),this._$AM=s,ye(this)):this._$AM=s}function Qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let n=e;n<o.length;n++)K(o[n],!1),ut(o[n]);else o!=null&&(K(o,!1),ut(o));else K(this,s)}var Ye=s=>{s.type==y.CHILD&&(s._$AP??=Qe,s._$AQ??=Je)},ft=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(this,t),ut(this))}setValue(t){if(pt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var fo=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ft{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?Pt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Lt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Rt={};function Ut(){}function Mt(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Ze=(s,t)=>function(o,r){if(!globalThis.customElements)return;let i=(r??o??{}).resourcesUrl;i&&s.setAssetPath(i);for(let[a,[l,c="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=c.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),Q=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!Q.B&&(Q.B=l(),Q.F()),super()}};customElements.define(a,Q)}},mt=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],Y(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{Mt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Lt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,n=Object.values(t).find(h=>h.L===o),i=`${o}--lazy`,a=n;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=n,customElements.define(i,n)),n.N=this;let c=document.createElement(i);n.N=void 0,this.#t=c,this.#e=c,this.#s.forEach(h=>c.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,c);let u=this.isConnected;(u||this.G)&&(c.connectedCallback?.(),u||c.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,n){e.setAttribute.call(this.el,r,n)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=gt in t&&typeof t.destroy=="function",E.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${gt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),M();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),ht(void 0),D(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>{this.#e.destroy()};this.#t=le(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},rs=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var Ee="important",ns=" !"+Ee,$e=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let n=typeof r=="string"&&r.endsWith(ns);o.includes("-")||n?e.setProperty(o,n?r.slice(0,-11):r,n?Ee:""):e[o]=r}}return f}});var be=class s extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,n=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==n&&(t.#e=t.shouldUpdate,t.shouldUpdate=n),r&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Rt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,n=r?.hasChanged??j,i={attribute:o&1&&typeof t=="string"?Y(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),useDefault:!!(o&128),c:!1,...r,hasChanged(a,l){let c=n(a,l);return i.c=c,c}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,o){let r=this.K,n=super.getPropertyDescriptor(t,e,o);return o.d=n,{...n,get(){return r.t?.(this.#t.get(t)),n.get?.call(this)},set(i){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);n.set.call(this,i??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(M(),a?.S(t,i))}}}static{this.lumina=!0}static{Mt(this)}#t;#e;#s;#r;#n;#l;get elementInternals(){return this.#l??=this.el.attachInternals(),this.#l}connectedCallback(){this.hasAttribute("defer-hydration")||this.#c(!0)}#c(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#i().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,n=t??(o===Rt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#c(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return n}async#i(){let t=this.el.G??Lt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(W(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ae=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:e,customElement(r,n){n.K=o,n.L=r,customElements.get(r)||customElements.define(r,n)}};return e(s.defaultAssetPath),o};var Sr=s=>typeof s=="object"&&s!=null?ve(s):s,Pr=s=>typeof s=="object"&&s!=null?$e(s):s;var It=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},Nr=$(It);var Dr=d;var xr=s=>{let t=document.createElement("div");return lt(s,t),t.firstElementChild};var J=Ae({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/portal-components/",hydratedAttribute:"hydrated"}),{customElement:Ir,getAssetPath:kr,setAssetPath:jr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Rs as a,D as b,G as c,ht as d,ne as e,Us as f,Ms as g,Ce as h,j as i,fs as j,ms as k,f as l,d as m,lt as n,b as o,Ps as p,re as q,Ns as r,Ds as s,ze as t,Be as u,We as v,Fe as w,St as x,pe as y,Ze as z,y as A,$ as B,g as C,Ks as D,Js as E,me as F,Qs as G,Ys as H,Ke as I,fo as J,Dt as K,be as L,Sr as M,Pr as N,Dr as O,xr as P,J as Q,Ir as R,kr as S};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import e from"./L64UURQB.js";import"./V6A6MKLU.js";import d from"./GAF4YT5N.js";import"./SLQQ44IA.js";import"./4KTRAA2J.js";import"./PKA745KL.js";import"./VDXESPJK.js";import"./DAAON2UO.js";import c from"./RQYNPDN3.js";import b from"./ROX3GKKA.js";import a from"./PMRFXB4F.js";import"./K75JTQPW.js";import"./KV4ZZSNW.js";import"./EMJQI4MA.js";import"./7ZWYUHGK.js";import"./A2SQ4EMZ.js";import"./K2XSYDAP.js";import"./AICPYLWE.js";import"./OUMTV5H5.js";import"./5PV2GUZW.js";export default $arcgis.t(([,,,,{b:r}])=>{return r},a,b,c,d,e)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{$ as UA,$a as Ui,A as kA,Aa as hp,B as AA,Ba as xo,C as fp,Ca as gp,D as qc,Da as yp,E as Jc,Ea as XA,F as _s,Fa as GA,G as IA,Ga as Mi,H as $A,Ha as YA,I as SA,J as OA,Ja as _p,K as PA,Ka as QA,L as TA,M as EA,Ma as hC,N as RA,O as CA,P as zA,Pa as xs,Q as NA,R as Vr,Ra as vp,S as vs,U as mp,V as Ar,Va as bp,W as Ri,Wa as mn,X as jA,Y as DA,Ya as Qt,Z as MA,_ as bs,_a as Ct,a as oe,aa as ws,ab as Pe,ba as Ci,bb as De,c as yA,ca as Hc,cb as Ft,da as LA,ea as ZA,f as _A,fa as st,g as Vc,ga as wo,ha as Xc,ia as ut,ja as Un,ka as zi,la as FA,ma as BA,n as lp,na as Gc,oa as Ni,p as vA,pa as WA,q as yt,qa as KA,ra as pn,s as bA,sa as ji,t as pr,ta as VA,u as wA,ua as qA,v as cg,va as Yc,w as xA,wa as Di,x as ys,xa as fn,y as dp,ya as JA,z as pp,za as HA}from"./XOFCMJBQ.js";import{a as gA,b as Kr,c as ug}from"./UZLQALHY.js";var XS=gA(tm=>{"use strict";tm.byteLength=yD;tm.toByteArray=vD;tm.fromByteArray=xD;var Sn=[],Er=[],gD=typeof Uint8Array<"u"?Uint8Array:Array,rw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ha=0,JS=rw.length;ha<JS;++ha)Sn[ha]=rw[ha],Er[rw.charCodeAt(ha)]=ha;var ha,JS;Er[45]=62;Er[95]=63;function HS(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function yD(e){var t=HS(e),r=t[0],o=t[1];return(r+o)*3/4-o}function _D(e,t,r){return(t+r)*3/4-r}function vD(e){var t,r=HS(e),o=r[0],n=r[1],i=new gD(_D(e,o,n)),a=0,s=n>0?o-4:o,u;for(u=0;u<s;u+=4)t=Er[e.charCodeAt(u)]<<18|Er[e.charCodeAt(u+1)]<<12|Er[e.charCodeAt(u+2)]<<6|Er[e.charCodeAt(u+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return n===2&&(t=Er[e.charCodeAt(u)]<<2|Er[e.charCodeAt(u+1)]>>4,i[a++]=t&255),n===1&&(t=Er[e.charCodeAt(u)]<<10|Er[e.charCodeAt(u+1)]<<4|Er[e.charCodeAt(u+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function bD(e){return Sn[e>>18&63]+Sn[e>>12&63]+Sn[e>>6&63]+Sn[e&63]}function wD(e,t,r){for(var o,n=[],i=t;i<r;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),n.push(bD(o));return n.join("")}function xD(e){for(var t,r=e.length,o=r%3,n=[],i=16383,a=0,s=r-o;a<s;a+=i)n.push(wD(e,a,a+i>s?s:a+i));return o===1?(t=e[r-1],n.push(Sn[t>>2]+Sn[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],n.push(Sn[t>>10]+Sn[t>>4&63]+Sn[t<<2&63]+"=")),n.join("")}});var aP=gA((We,Vm)=>{"use strict";if(typeof Vm<"u"&&Vm!==globalThis.module&&typeof We<"u"&&Vm.exports===We){Object.defineProperty(We,"__esModule",{value:!0}),We.findX509Credential=We.rememberX509Credential=We.findX509OAuthError=We.rememberX509OAuthError=We.isApprovedX509Client=We.markApprovedX509Client=We.isRetryableX509IssuerError=We.markRetryableX509IssuerError=We.isTransientX509ConnectionError=We.markTransientX509ConnectionError=We.rememberRegisteredX509Transport=We.findRegisteredX509Transport=void 0;let e=new WeakMap,t=new WeakSet,r=new WeakSet,o=new WeakSet,n=new WeakMap,i=new WeakMap;We.findRegisteredX509Transport=WeakMap.prototype.get.bind(e),We.rememberRegisteredX509Transport=WeakMap.prototype.set.bind(e),We.markTransientX509ConnectionError=WeakSet.prototype.add.bind(t),We.isTransientX509ConnectionError=WeakSet.prototype.has.bind(t),We.markRetryableX509IssuerError=WeakSet.prototype.add.bind(r),We.isRetryableX509IssuerError=WeakSet.prototype.has.bind(r),We.markApprovedX509Client=WeakSet.prototype.add.bind(o),We.isApprovedX509Client=WeakSet.prototype.has.bind(o),We.rememberX509OAuthError=WeakMap.prototype.set.bind(n),We.findX509OAuthError=WeakMap.prototype.get.bind(n),We.rememberX509Credential=WeakMap.prototype.set.bind(i),We.findX509Credential=WeakMap.prototype.get.bind(i)}});async function fr(e,t){if(t===void 0)return e;let r;return Promise.race([e.catch(o=>{if(!t?.aborted)throw o}),new Promise((o,n)=>{r=()=>{n(ko(t))},t.addEventListener("abort",r,{once:!0}),t.aborted&&n(ko(t))})]).finally(()=>t.removeEventListener("abort",r))}function ko(e){return e?.reason instanceof Error?e.reason:typeof e?.reason=="string"?new Error(e.reason):new Error("Aborted")}var Bn={};Kr(Bn,{$ZodAny:()=>Qy,$ZodArray:()=>r_,$ZodAsyncError:()=>qr,$ZodBase64:()=>By,$ZodBase64URL:()=>Wy,$ZodBigInt:()=>Lp,$ZodBigIntFormat:()=>Hy,$ZodBoolean:()=>dl,$ZodCIDRv4:()=>Ly,$ZodCIDRv6:()=>Zy,$ZodCUID:()=>Oy,$ZodCUID2:()=>Py,$ZodCatch:()=>b_,$ZodCheck:()=>Ke,$ZodCheckBigIntFormat:()=>oy,$ZodCheckEndsWith:()=>gy,$ZodCheckGreaterThan:()=>zp,$ZodCheckIncludes:()=>my,$ZodCheckLengthEquals:()=>ly,$ZodCheckLessThan:()=>Cp,$ZodCheckLowerCase:()=>py,$ZodCheckMaxLength:()=>uy,$ZodCheckMaxSize:()=>iy,$ZodCheckMimeType:()=>_y,$ZodCheckMinLength:()=>cy,$ZodCheckMinSize:()=>ay,$ZodCheckMultipleOf:()=>ry,$ZodCheckNumberFormat:()=>ny,$ZodCheckOverwrite:()=>vy,$ZodCheckProperty:()=>yy,$ZodCheckRegex:()=>dy,$ZodCheckSizeEquals:()=>sy,$ZodCheckStartsWith:()=>hy,$ZodCheckStringFormat:()=>Ts,$ZodCheckUpperCase:()=>fy,$ZodCodec:()=>hl,$ZodCustom:()=>O_,$ZodCustomStringFormat:()=>qy,$ZodDate:()=>t_,$ZodDefault:()=>g_,$ZodDiscriminatedUnion:()=>i_,$ZodE164:()=>Ky,$ZodEmail:()=>Ay,$ZodEmoji:()=>$y,$ZodEncodeError:()=>Ao,$ZodEnum:()=>l_,$ZodError:()=>il,$ZodExactOptional:()=>m_,$ZodFile:()=>p_,$ZodFunction:()=>I_,$ZodGUID:()=>xy,$ZodIPv4:()=>Dy,$ZodIPv6:()=>My,$ZodISODate:()=>zy,$ZodISODateTime:()=>Cy,$ZodISODuration:()=>jy,$ZodISOTime:()=>Ny,$ZodIntersection:()=>a_,$ZodJWT:()=>Vy,$ZodKSUID:()=>Ry,$ZodLazy:()=>S_,$ZodLiteral:()=>d_,$ZodMAC:()=>Uy,$ZodMap:()=>u_,$ZodNaN:()=>w_,$ZodNanoID:()=>Sy,$ZodNever:()=>fl,$ZodNonOptional:()=>__,$ZodNull:()=>Yy,$ZodNullable:()=>h_,$ZodNumber:()=>Up,$ZodNumberFormat:()=>Jy,$ZodObject:()=>TI,$ZodObjectJIT:()=>n_,$ZodOptional:()=>Ki,$ZodPipe:()=>Fp,$ZodPrefault:()=>y_,$ZodPreprocess:()=>x_,$ZodPromise:()=>$_,$ZodReadonly:()=>k_,$ZodRealError:()=>tr,$ZodRecord:()=>s_,$ZodRegistry:()=>Vp,$ZodSet:()=>c_,$ZodString:()=>Wi,$ZodStringFormat:()=>Le,$ZodSuccess:()=>v_,$ZodSymbol:()=>Xy,$ZodTemplateLiteral:()=>A_,$ZodTransform:()=>f_,$ZodTuple:()=>Zp,$ZodType:()=>ye,$ZodULID:()=>Ty,$ZodURL:()=>Iy,$ZodUUID:()=>ky,$ZodUndefined:()=>Gy,$ZodUnion:()=>ml,$ZodUnknown:()=>pl,$ZodVoid:()=>e_,$ZodXID:()=>Ey,$ZodXor:()=>o_,$brand:()=>dg,$constructor:()=>P,$input:()=>T_,$output:()=>P_,Doc:()=>ll,JSONSchema:()=>R$,JSONSchemaGenerator:()=>xf,NEVER:()=>lg,TimePrecision:()=>z_,_any:()=>tv,_array:()=>av,_base64:()=>lf,_base64url:()=>df,_bigint:()=>J_,_boolean:()=>V_,_catch:()=>MN,_check:()=>E$,_cidrv4:()=>uf,_cidrv6:()=>cf,_coercedBigint:()=>H_,_coercedBoolean:()=>q_,_coercedDate:()=>ov,_coercedNumber:()=>L_,_coercedString:()=>R_,_cuid:()=>ef,_cuid2:()=>tf,_custom:()=>uv,_date:()=>nv,_decode:()=>Ap,_decodeAsync:()=>$p,_default:()=>NN,_discriminatedUnion:()=>kN,_e164:()=>pf,_email:()=>qp,_emoji:()=>Yp,_encode:()=>kp,_encodeAsync:()=>Ip,_endsWith:()=>Ms,_enum:()=>PN,_file:()=>sv,_float32:()=>F_,_float64:()=>B_,_gt:()=>yn,_gte:()=>Wt,_guid:()=>_l,_includes:()=>js,_int:()=>Z_,_int32:()=>W_,_int64:()=>X_,_intersection:()=>AN,_ipv4:()=>af,_ipv6:()=>sf,_isoDate:()=>j_,_isoDateTime:()=>N_,_isoDuration:()=>M_,_isoTime:()=>D_,_jwt:()=>ff,_ksuid:()=>of,_lazy:()=>FN,_length:()=>Ji,_literal:()=>EN,_lowercase:()=>zs,_lt:()=>gn,_lte:()=>hr,_mac:()=>C_,_map:()=>SN,_max:()=>hr,_maxLength:()=>qi,_maxSize:()=>To,_mime:()=>Us,_min:()=>Wt,_minLength:()=>Zn,_minSize:()=>_n,_multipleOf:()=>Po,_nan:()=>iv,_nanoid:()=>Qp,_nativeEnum:()=>TN,_negative:()=>hf,_never:()=>wl,_nonnegative:()=>yf,_nonoptional:()=>jN,_nonpositive:()=>gf,_normalize:()=>Ls,_null:()=>ev,_nullable:()=>zN,_number:()=>U_,_optional:()=>CN,_overwrite:()=>Jr,_parse:()=>$s,_parseAsync:()=>Ss,_pipe:()=>UN,_positive:()=>mf,_promise:()=>BN,_property:()=>_f,_readonly:()=>LN,_record:()=>$N,_refine:()=>cv,_regex:()=>Cs,_safeDecode:()=>Op,_safeDecodeAsync:()=>Tp,_safeEncode:()=>Sp,_safeEncodeAsync:()=>Pp,_safeParse:()=>Os,_safeParseAsync:()=>Ps,_set:()=>ON,_size:()=>Vi,_slugify:()=>Ws,_startsWith:()=>Ds,_string:()=>E_,_stringFormat:()=>Ks,_stringbool:()=>fv,_success:()=>DN,_superRefine:()=>lv,_symbol:()=>Y_,_templateLiteral:()=>ZN,_toLowerCase:()=>Fs,_toUpperCase:()=>Bs,_transform:()=>RN,_trim:()=>Zs,_tuple:()=>IN,_uint32:()=>K_,_uint64:()=>G_,_ulid:()=>rf,_undefined:()=>Q_,_union:()=>wN,_unknown:()=>bl,_uppercase:()=>Ns,_url:()=>vl,_uuid:()=>Jp,_uuidv4:()=>Hp,_uuidv6:()=>Xp,_uuidv7:()=>Gp,_void:()=>rv,_xid:()=>nf,_xor:()=>xN,clone:()=>Je,config:()=>tt,createStandardJSONSchemaMethod:()=>Vs,createToJSONSchemaMethod:()=>mv,decode:()=>BC,decodeAsync:()=>KC,describe:()=>dv,encode:()=>FC,encodeAsync:()=>WC,extractDefs:()=>Ro,finalize:()=>Co,flattenError:()=>al,formatError:()=>sl,globalConfig:()=>Li,globalRegistry:()=>je,initializeContext:()=>Eo,isValidBase64:()=>Fy,isValidBase64URL:()=>$I,isValidJWT:()=>SI,locales:()=>yl,meta:()=>pv,parse:()=>hn,parseAsync:()=>Fi,prettifyError:()=>Ag,process:()=>Me,regexes:()=>mr,registry:()=>Rs,safeDecode:()=>qC,safeDecodeAsync:()=>HC,safeEncode:()=>VC,safeEncodeAsync:()=>JC,safeParse:()=>Ig,safeParseAsync:()=>$g,toDotPath:()=>iI,toJSONSchema:()=>Fn,treeifyError:()=>kg,util:()=>L,version:()=>by});var eI,lg=Object.freeze({status:"aborted"});function P(e,t,r){function o(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var u;let c=r?.Parent?new i:this;o(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var dg=Symbol("zod_brand"),qr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ao=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(eI=globalThis).__zod_globalConfig??(eI.__zod_globalConfig={});var Li=globalThis.__zod_globalConfig;function tt(e){return e&&Object.assign(Li,e),Li}var L={};Kr(L,{BIGINT_FORMAT_RANGES:()=>wg,Class:()=>fg,NUMBER_FORMAT_RANGES:()=>bg,aborted:()=>Oo,allowsEval:()=>gg,assert:()=>bC,assertEqual:()=>gC,assertIs:()=>_C,assertNever:()=>vC,assertNotEqual:()=>yC,assignProp:()=>$o,base64ToUint8Array:()=>rI,base64urlToUint8Array:()=>DC,cached:()=>As,captureStackTrace:()=>xp,cleanEnum:()=>jC,cleanRegex:()=>tl,clone:()=>Je,cloneDef:()=>xC,createTransparentProxy:()=>OC,defineLazy:()=>Ie,esc:()=>wp,escapeRegex:()=>Ir,explicitlyAborted:()=>xg,extend:()=>EC,finalizeIssue:()=>Bt,floatSafeRemainder:()=>mg,getElementAtPath:()=>kC,getEnumValues:()=>el,getLengthableOrigin:()=>ol,getParsedType:()=>SC,getSizableOrigin:()=>nl,hexToUint8Array:()=>UC,isObject:()=>Zi,isPlainObject:()=>So,issue:()=>Is,joinValues:()=>T,jsonStringifyReplacer:()=>ks,merge:()=>CC,mergeDefs:()=>Ln,normalizeParams:()=>B,nullish:()=>Io,numKeys:()=>$C,objectClone:()=>wC,omit:()=>TC,optionalKeys:()=>vg,parsedType:()=>U,partial:()=>zC,pick:()=>PC,prefixIssues:()=>er,primitiveTypes:()=>_g,promiseAllObject:()=>AC,propertyKeyTypes:()=>rl,randomString:()=>IC,required:()=>NC,safeExtend:()=>RC,shallowClone:()=>yg,slugify:()=>hg,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>nI,uint8ArrayToBase64url:()=>MC,uint8ArrayToHex:()=>LC,unwrapMessage:()=>Qc});function gC(e){return e}function yC(e){return e}function _C(e){}function vC(e){throw new Error("Unexpected value in exhaustive check")}function bC(e){}function el(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function T(e,t="|"){return e.map(r=>M(r)).join(t)}function ks(e,t){return typeof t=="bigint"?t.toString():t}function As(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Io(e){return e==null}function tl(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function mg(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var tI=Symbol("evaluating");function Ie(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==tI)return o===void 0&&(o=tI,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function wC(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $o(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ln(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function xC(e){return Ln(e._zod.def)}function kC(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function AC(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function IC(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function wp(e){return JSON.stringify(e)}function hg(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var xp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gg=As(()=>{if(Li.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function So(e){if(Zi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Zi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function yg(e){return So(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function $C(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var SC=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},rl=new Set(["string","number","symbol"]),_g=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ir(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function B(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function OC(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function M(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vg(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var bg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},wg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function PC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function TC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function EC(e,t){if(!So(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Ln(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return $o(this,"shape",i),i}});return Je(e,n)}function RC(e,t){if(!So(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return $o(this,"shape",o),o}});return Je(e,r)}function CC(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return $o(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Je(e,r)}function zC(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Ln(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return $o(this,"shape",u),u},checks:[]});return Je(t,a)}function NC(e,t,r){let o=Ln(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return $o(this,"shape",i),i}});return Je(t,o)}function Oo(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function xg(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function er(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Qc(e){return typeof e=="string"?e:e?.message}function Bt(e,t,r){let o=e.message?e.message:Qc(e.inst?._zod.def?.error?.(e))??Qc(t?.error?.(e))??Qc(r.customError?.(e))??Qc(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function nl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ol(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function U(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Is(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function jC(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function rI(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function nI(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function DC(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return rI(t+r)}function MC(e){return nI(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function UC(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function LC(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var fg=class{constructor(...t){}};var oI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ks,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},il=P("$ZodError",oI),tr=P("$ZodError",oI,{Parent:Error});function al(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function sl(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)r._errors.push(t(a));else{let u=r,c=0;for(;c<s.length;){let l=s[c];c===s.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(t(a))):u[l]=u[l]||{_errors:[]},u=u[l],c++}}}};return o(e),r}function kg(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>o({issues:c},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let c=[...i,...u.path];if(c.length===0){r.errors.push(t(u));continue}let l=r,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(t(u)),d++}}};return o(e),r}function iI(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Ag(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${iI(o.path)}`);return t.join(`
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{$ as UA,$a as Ui,A as kA,Aa as hp,B as AA,Ba as xo,C as fp,Ca as gp,D as qc,Da as yp,E as Jc,Ea as XA,F as _s,Fa as GA,G as IA,Ga as Mi,H as $A,Ha as YA,I as SA,J as OA,Ja as _p,K as PA,Ka as QA,L as TA,M as EA,Ma as hC,N as RA,O as CA,P as zA,Pa as xs,Q as NA,R as Vr,Ra as vp,S as vs,U as mp,V as Ar,Va as bp,W as Ri,Wa as mn,X as jA,Y as DA,Ya as Qt,Z as MA,_ as bs,_a as Ct,a as oe,aa as ws,ab as Pe,ba as Ci,bb as De,c as yA,ca as Hc,cb as Ft,da as LA,ea as ZA,f as _A,fa as st,g as Vc,ga as wo,ha as Xc,ia as ut,ja as Un,ka as zi,la as FA,ma as BA,n as lp,na as Gc,oa as Ni,p as vA,pa as WA,q as yt,qa as KA,ra as pn,s as bA,sa as ji,t as pr,ta as VA,u as wA,ua as qA,v as cg,va as Yc,w as xA,wa as Di,x as ys,xa as fn,y as dp,ya as JA,z as pp,za as HA}from"./MLYQGIJU.js";import{a as gA,b as Kr,c as ug}from"./5PV2GUZW.js";var XS=gA(tm=>{"use strict";tm.byteLength=yD;tm.toByteArray=vD;tm.fromByteArray=xD;var Sn=[],Er=[],gD=typeof Uint8Array<"u"?Uint8Array:Array,rw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(ha=0,JS=rw.length;ha<JS;++ha)Sn[ha]=rw[ha],Er[rw.charCodeAt(ha)]=ha;var ha,JS;Er[45]=62;Er[95]=63;function HS(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var o=r===t?0:4-r%4;return[r,o]}function yD(e){var t=HS(e),r=t[0],o=t[1];return(r+o)*3/4-o}function _D(e,t,r){return(t+r)*3/4-r}function vD(e){var t,r=HS(e),o=r[0],n=r[1],i=new gD(_D(e,o,n)),a=0,s=n>0?o-4:o,u;for(u=0;u<s;u+=4)t=Er[e.charCodeAt(u)]<<18|Er[e.charCodeAt(u+1)]<<12|Er[e.charCodeAt(u+2)]<<6|Er[e.charCodeAt(u+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return n===2&&(t=Er[e.charCodeAt(u)]<<2|Er[e.charCodeAt(u+1)]>>4,i[a++]=t&255),n===1&&(t=Er[e.charCodeAt(u)]<<10|Er[e.charCodeAt(u+1)]<<4|Er[e.charCodeAt(u+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function bD(e){return Sn[e>>18&63]+Sn[e>>12&63]+Sn[e>>6&63]+Sn[e&63]}function wD(e,t,r){for(var o,n=[],i=t;i<r;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),n.push(bD(o));return n.join("")}function xD(e){for(var t,r=e.length,o=r%3,n=[],i=16383,a=0,s=r-o;a<s;a+=i)n.push(wD(e,a,a+i>s?s:a+i));return o===1?(t=e[r-1],n.push(Sn[t>>2]+Sn[t<<4&63]+"==")):o===2&&(t=(e[r-2]<<8)+e[r-1],n.push(Sn[t>>10]+Sn[t>>4&63]+Sn[t<<2&63]+"=")),n.join("")}});var aP=gA((We,Vm)=>{"use strict";if(typeof Vm<"u"&&Vm!==globalThis.module&&typeof We<"u"&&Vm.exports===We){Object.defineProperty(We,"__esModule",{value:!0}),We.findX509Credential=We.rememberX509Credential=We.findX509OAuthError=We.rememberX509OAuthError=We.isApprovedX509Client=We.markApprovedX509Client=We.isRetryableX509IssuerError=We.markRetryableX509IssuerError=We.isTransientX509ConnectionError=We.markTransientX509ConnectionError=We.rememberRegisteredX509Transport=We.findRegisteredX509Transport=void 0;let e=new WeakMap,t=new WeakSet,r=new WeakSet,o=new WeakSet,n=new WeakMap,i=new WeakMap;We.findRegisteredX509Transport=WeakMap.prototype.get.bind(e),We.rememberRegisteredX509Transport=WeakMap.prototype.set.bind(e),We.markTransientX509ConnectionError=WeakSet.prototype.add.bind(t),We.isTransientX509ConnectionError=WeakSet.prototype.has.bind(t),We.markRetryableX509IssuerError=WeakSet.prototype.add.bind(r),We.isRetryableX509IssuerError=WeakSet.prototype.has.bind(r),We.markApprovedX509Client=WeakSet.prototype.add.bind(o),We.isApprovedX509Client=WeakSet.prototype.has.bind(o),We.rememberX509OAuthError=WeakMap.prototype.set.bind(n),We.findX509OAuthError=WeakMap.prototype.get.bind(n),We.rememberX509Credential=WeakMap.prototype.set.bind(i),We.findX509Credential=WeakMap.prototype.get.bind(i)}});async function fr(e,t){if(t===void 0)return e;let r;return Promise.race([e.catch(o=>{if(!t?.aborted)throw o}),new Promise((o,n)=>{r=()=>{n(ko(t))},t.addEventListener("abort",r,{once:!0}),t.aborted&&n(ko(t))})]).finally(()=>t.removeEventListener("abort",r))}function ko(e){return e?.reason instanceof Error?e.reason:typeof e?.reason=="string"?new Error(e.reason):new Error("Aborted")}var Bn={};Kr(Bn,{$ZodAny:()=>Qy,$ZodArray:()=>r_,$ZodAsyncError:()=>qr,$ZodBase64:()=>By,$ZodBase64URL:()=>Wy,$ZodBigInt:()=>Lp,$ZodBigIntFormat:()=>Hy,$ZodBoolean:()=>dl,$ZodCIDRv4:()=>Ly,$ZodCIDRv6:()=>Zy,$ZodCUID:()=>Oy,$ZodCUID2:()=>Py,$ZodCatch:()=>b_,$ZodCheck:()=>Ke,$ZodCheckBigIntFormat:()=>oy,$ZodCheckEndsWith:()=>gy,$ZodCheckGreaterThan:()=>zp,$ZodCheckIncludes:()=>my,$ZodCheckLengthEquals:()=>ly,$ZodCheckLessThan:()=>Cp,$ZodCheckLowerCase:()=>py,$ZodCheckMaxLength:()=>uy,$ZodCheckMaxSize:()=>iy,$ZodCheckMimeType:()=>_y,$ZodCheckMinLength:()=>cy,$ZodCheckMinSize:()=>ay,$ZodCheckMultipleOf:()=>ry,$ZodCheckNumberFormat:()=>ny,$ZodCheckOverwrite:()=>vy,$ZodCheckProperty:()=>yy,$ZodCheckRegex:()=>dy,$ZodCheckSizeEquals:()=>sy,$ZodCheckStartsWith:()=>hy,$ZodCheckStringFormat:()=>Ts,$ZodCheckUpperCase:()=>fy,$ZodCodec:()=>hl,$ZodCustom:()=>O_,$ZodCustomStringFormat:()=>qy,$ZodDate:()=>t_,$ZodDefault:()=>g_,$ZodDiscriminatedUnion:()=>i_,$ZodE164:()=>Ky,$ZodEmail:()=>Ay,$ZodEmoji:()=>$y,$ZodEncodeError:()=>Ao,$ZodEnum:()=>l_,$ZodError:()=>il,$ZodExactOptional:()=>m_,$ZodFile:()=>p_,$ZodFunction:()=>I_,$ZodGUID:()=>xy,$ZodIPv4:()=>Dy,$ZodIPv6:()=>My,$ZodISODate:()=>zy,$ZodISODateTime:()=>Cy,$ZodISODuration:()=>jy,$ZodISOTime:()=>Ny,$ZodIntersection:()=>a_,$ZodJWT:()=>Vy,$ZodKSUID:()=>Ry,$ZodLazy:()=>S_,$ZodLiteral:()=>d_,$ZodMAC:()=>Uy,$ZodMap:()=>u_,$ZodNaN:()=>w_,$ZodNanoID:()=>Sy,$ZodNever:()=>fl,$ZodNonOptional:()=>__,$ZodNull:()=>Yy,$ZodNullable:()=>h_,$ZodNumber:()=>Up,$ZodNumberFormat:()=>Jy,$ZodObject:()=>TI,$ZodObjectJIT:()=>n_,$ZodOptional:()=>Ki,$ZodPipe:()=>Fp,$ZodPrefault:()=>y_,$ZodPreprocess:()=>x_,$ZodPromise:()=>$_,$ZodReadonly:()=>k_,$ZodRealError:()=>tr,$ZodRecord:()=>s_,$ZodRegistry:()=>Vp,$ZodSet:()=>c_,$ZodString:()=>Wi,$ZodStringFormat:()=>Le,$ZodSuccess:()=>v_,$ZodSymbol:()=>Xy,$ZodTemplateLiteral:()=>A_,$ZodTransform:()=>f_,$ZodTuple:()=>Zp,$ZodType:()=>ye,$ZodULID:()=>Ty,$ZodURL:()=>Iy,$ZodUUID:()=>ky,$ZodUndefined:()=>Gy,$ZodUnion:()=>ml,$ZodUnknown:()=>pl,$ZodVoid:()=>e_,$ZodXID:()=>Ey,$ZodXor:()=>o_,$brand:()=>dg,$constructor:()=>P,$input:()=>T_,$output:()=>P_,Doc:()=>ll,JSONSchema:()=>R$,JSONSchemaGenerator:()=>xf,NEVER:()=>lg,TimePrecision:()=>z_,_any:()=>tv,_array:()=>av,_base64:()=>lf,_base64url:()=>df,_bigint:()=>J_,_boolean:()=>V_,_catch:()=>MN,_check:()=>E$,_cidrv4:()=>uf,_cidrv6:()=>cf,_coercedBigint:()=>H_,_coercedBoolean:()=>q_,_coercedDate:()=>ov,_coercedNumber:()=>L_,_coercedString:()=>R_,_cuid:()=>ef,_cuid2:()=>tf,_custom:()=>uv,_date:()=>nv,_decode:()=>Ap,_decodeAsync:()=>$p,_default:()=>NN,_discriminatedUnion:()=>kN,_e164:()=>pf,_email:()=>qp,_emoji:()=>Yp,_encode:()=>kp,_encodeAsync:()=>Ip,_endsWith:()=>Ms,_enum:()=>PN,_file:()=>sv,_float32:()=>F_,_float64:()=>B_,_gt:()=>yn,_gte:()=>Wt,_guid:()=>_l,_includes:()=>js,_int:()=>Z_,_int32:()=>W_,_int64:()=>X_,_intersection:()=>AN,_ipv4:()=>af,_ipv6:()=>sf,_isoDate:()=>j_,_isoDateTime:()=>N_,_isoDuration:()=>M_,_isoTime:()=>D_,_jwt:()=>ff,_ksuid:()=>of,_lazy:()=>FN,_length:()=>Ji,_literal:()=>EN,_lowercase:()=>zs,_lt:()=>gn,_lte:()=>hr,_mac:()=>C_,_map:()=>SN,_max:()=>hr,_maxLength:()=>qi,_maxSize:()=>To,_mime:()=>Us,_min:()=>Wt,_minLength:()=>Zn,_minSize:()=>_n,_multipleOf:()=>Po,_nan:()=>iv,_nanoid:()=>Qp,_nativeEnum:()=>TN,_negative:()=>hf,_never:()=>wl,_nonnegative:()=>yf,_nonoptional:()=>jN,_nonpositive:()=>gf,_normalize:()=>Ls,_null:()=>ev,_nullable:()=>zN,_number:()=>U_,_optional:()=>CN,_overwrite:()=>Jr,_parse:()=>$s,_parseAsync:()=>Ss,_pipe:()=>UN,_positive:()=>mf,_promise:()=>BN,_property:()=>_f,_readonly:()=>LN,_record:()=>$N,_refine:()=>cv,_regex:()=>Cs,_safeDecode:()=>Op,_safeDecodeAsync:()=>Tp,_safeEncode:()=>Sp,_safeEncodeAsync:()=>Pp,_safeParse:()=>Os,_safeParseAsync:()=>Ps,_set:()=>ON,_size:()=>Vi,_slugify:()=>Ws,_startsWith:()=>Ds,_string:()=>E_,_stringFormat:()=>Ks,_stringbool:()=>fv,_success:()=>DN,_superRefine:()=>lv,_symbol:()=>Y_,_templateLiteral:()=>ZN,_toLowerCase:()=>Fs,_toUpperCase:()=>Bs,_transform:()=>RN,_trim:()=>Zs,_tuple:()=>IN,_uint32:()=>K_,_uint64:()=>G_,_ulid:()=>rf,_undefined:()=>Q_,_union:()=>wN,_unknown:()=>bl,_uppercase:()=>Ns,_url:()=>vl,_uuid:()=>Jp,_uuidv4:()=>Hp,_uuidv6:()=>Xp,_uuidv7:()=>Gp,_void:()=>rv,_xid:()=>nf,_xor:()=>xN,clone:()=>Je,config:()=>tt,createStandardJSONSchemaMethod:()=>Vs,createToJSONSchemaMethod:()=>mv,decode:()=>BC,decodeAsync:()=>KC,describe:()=>dv,encode:()=>FC,encodeAsync:()=>WC,extractDefs:()=>Ro,finalize:()=>Co,flattenError:()=>al,formatError:()=>sl,globalConfig:()=>Li,globalRegistry:()=>je,initializeContext:()=>Eo,isValidBase64:()=>Fy,isValidBase64URL:()=>$I,isValidJWT:()=>SI,locales:()=>yl,meta:()=>pv,parse:()=>hn,parseAsync:()=>Fi,prettifyError:()=>Ag,process:()=>Me,regexes:()=>mr,registry:()=>Rs,safeDecode:()=>qC,safeDecodeAsync:()=>HC,safeEncode:()=>VC,safeEncodeAsync:()=>JC,safeParse:()=>Ig,safeParseAsync:()=>$g,toDotPath:()=>iI,toJSONSchema:()=>Fn,treeifyError:()=>kg,util:()=>L,version:()=>by});var eI,lg=Object.freeze({status:"aborted"});function P(e,t,r){function o(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=a.prototype,l=Object.keys(c);for(let d=0;d<l.length;d++){let p=l[d];p in s||(s[p]=c[p].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var u;let c=r?.Parent?new i:this;o(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let l of c._zod.deferred)l();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var dg=Symbol("zod_brand"),qr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ao=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(eI=globalThis).__zod_globalConfig??(eI.__zod_globalConfig={});var Li=globalThis.__zod_globalConfig;function tt(e){return e&&Object.assign(Li,e),Li}var L={};Kr(L,{BIGINT_FORMAT_RANGES:()=>wg,Class:()=>fg,NUMBER_FORMAT_RANGES:()=>bg,aborted:()=>Oo,allowsEval:()=>gg,assert:()=>bC,assertEqual:()=>gC,assertIs:()=>_C,assertNever:()=>vC,assertNotEqual:()=>yC,assignProp:()=>$o,base64ToUint8Array:()=>rI,base64urlToUint8Array:()=>DC,cached:()=>As,captureStackTrace:()=>xp,cleanEnum:()=>jC,cleanRegex:()=>tl,clone:()=>Je,cloneDef:()=>xC,createTransparentProxy:()=>OC,defineLazy:()=>Ie,esc:()=>wp,escapeRegex:()=>Ir,explicitlyAborted:()=>xg,extend:()=>EC,finalizeIssue:()=>Bt,floatSafeRemainder:()=>mg,getElementAtPath:()=>kC,getEnumValues:()=>el,getLengthableOrigin:()=>ol,getParsedType:()=>SC,getSizableOrigin:()=>nl,hexToUint8Array:()=>UC,isObject:()=>Zi,isPlainObject:()=>So,issue:()=>Is,joinValues:()=>T,jsonStringifyReplacer:()=>ks,merge:()=>CC,mergeDefs:()=>Ln,normalizeParams:()=>B,nullish:()=>Io,numKeys:()=>$C,objectClone:()=>wC,omit:()=>TC,optionalKeys:()=>vg,parsedType:()=>U,partial:()=>zC,pick:()=>PC,prefixIssues:()=>er,primitiveTypes:()=>_g,promiseAllObject:()=>AC,propertyKeyTypes:()=>rl,randomString:()=>IC,required:()=>NC,safeExtend:()=>RC,shallowClone:()=>yg,slugify:()=>hg,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>nI,uint8ArrayToBase64url:()=>MC,uint8ArrayToHex:()=>LC,unwrapMessage:()=>Qc});function gC(e){return e}function yC(e){return e}function _C(e){}function vC(e){throw new Error("Unexpected value in exhaustive check")}function bC(e){}function el(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function T(e,t="|"){return e.map(r=>M(r)).join(t)}function ks(e,t){return typeof t=="bigint"?t.toString():t}function As(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Io(e){return e==null}function tl(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function mg(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var tI=Symbol("evaluating");function Ie(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==tI)return o===void 0&&(o=tI,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function wC(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $o(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ln(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function xC(e){return Ln(e._zod.def)}function kC(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function AC(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function IC(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function wp(e){return JSON.stringify(e)}function hg(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var xp="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Zi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gg=As(()=>{if(Li.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function So(e){if(Zi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Zi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function yg(e){return So(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function $C(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var SC=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},rl=new Set(["string","number","symbol"]),_g=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ir(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Je(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function B(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function OC(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function M(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function vg(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var bg={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},wg={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function PC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function TC(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Ln(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return $o(this,"shape",a),a},checks:[]});return Je(e,i)}function EC(e,t){if(!So(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Ln(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return $o(this,"shape",i),i}});return Je(e,n)}function RC(e,t){if(!So(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return $o(this,"shape",o),o}});return Je(e,r)}function CC(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Ln(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return $o(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Je(e,r)}function zC(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Ln(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return $o(this,"shape",u),u},checks:[]});return Je(t,a)}function NC(e,t,r){let o=Ln(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return $o(this,"shape",i),i}});return Je(t,o)}function Oo(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function xg(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function er(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Qc(e){return typeof e=="string"?e:e?.message}function Bt(e,t,r){let o=e.message?e.message:Qc(e.inst?._zod.def?.error?.(e))??Qc(t?.error?.(e))??Qc(r.customError?.(e))??Qc(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...s}=e;return s.path??(s.path=[]),s.message=o,t?.reportInput&&(s.input=a),s}function nl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ol(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function U(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Is(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function jC(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function rI(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function nI(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function DC(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return rI(t+r)}function MC(e){return nI(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function UC(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function LC(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var fg=class{constructor(...t){}};var oI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ks,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},il=P("$ZodError",oI),tr=P("$ZodError",oI,{Parent:Error});function al(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function sl(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let s=[...i,...a.path];if(s.length===0)r._errors.push(t(a));else{let u=r,c=0;for(;c<s.length;){let l=s[c];c===s.length-1?(u[l]=u[l]||{_errors:[]},u[l]._errors.push(t(a))):u[l]=u[l]||{_errors:[]},u=u[l],c++}}}};return o(e),r}function kg(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>o({issues:c},[...i,...u.path]));else if(u.code==="invalid_key")o({issues:u.issues},[...i,...u.path]);else if(u.code==="invalid_element")o({issues:u.issues},[...i,...u.path]);else{let c=[...i,...u.path];if(c.length===0){r.errors.push(t(u));continue}let l=r,d=0;for(;d<c.length;){let p=c[d],f=d===c.length-1;typeof p=="string"?(l.properties??(l.properties={}),(a=l.properties)[p]??(a[p]={errors:[]}),l=l.properties[p]):(l.items??(l.items=[]),(s=l.items)[p]??(s[p]={errors:[]}),l=l.items[p]),f&&l.errors.push(t(u)),d++}}};return o(e),r}function iI(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function Ag(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${iI(o.path)}`);return t.join(`
|
|
3
3
|
`)}var $s=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new qr;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(u=>Bt(u,i,tt())));throw xp(s,n?.callee),s}return a.value},hn=$s(tr),Ss=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(u=>Bt(u,i,tt())));throw xp(s,n?.callee),s}return a.value},Fi=Ss(tr),Os=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new qr;return i.issues.length?{success:!1,error:new(e??il)(i.issues.map(a=>Bt(a,n,tt())))}:{success:!0,data:i.value}},Ig=Os(tr),Ps=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>Bt(a,n,tt())))}:{success:!0,data:i.value}},$g=Ps(tr),kp=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return $s(e)(t,r,n)},FC=kp(tr),Ap=e=>(t,r,o)=>$s(e)(t,r,o),BC=Ap(tr),Ip=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ss(e)(t,r,n)},WC=Ip(tr),$p=e=>async(t,r,o)=>Ss(e)(t,r,o),KC=$p(tr),Sp=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Os(e)(t,r,n)},VC=Sp(tr),Op=e=>(t,r,o)=>Os(e)(t,r,o),qC=Op(tr),Pp=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ps(e)(t,r,n)},JC=Pp(tr),Tp=e=>async(t,r,o)=>Ps(e)(t,r,o),HC=Tp(tr);var mr={};Kr(mr,{base64:()=>Fg,base64url:()=>Ep,bigint:()=>Hg,boolean:()=>Gg,browserEmail:()=>nz,cidrv4:()=>Lg,cidrv6:()=>Zg,cuid:()=>Sg,cuid2:()=>Og,date:()=>Kg,datetime:()=>qg,domain:()=>az,duration:()=>Cg,e164:()=>Wg,email:()=>Ng,emoji:()=>jg,extendedDuration:()=>XC,guid:()=>zg,hex:()=>sz,hostname:()=>iz,html5Email:()=>ez,httpProtocol:()=>Bg,idnEmail:()=>rz,integer:()=>Xg,ipv4:()=>Dg,ipv6:()=>Mg,ksuid:()=>Eg,lowercase:()=>ey,mac:()=>Ug,md5_base64:()=>cz,md5_base64url:()=>lz,md5_hex:()=>uz,nanoid:()=>Rg,null:()=>Yg,number:()=>Rp,rfc5322Email:()=>tz,sha1_base64:()=>pz,sha1_base64url:()=>fz,sha1_hex:()=>dz,sha256_base64:()=>hz,sha256_base64url:()=>gz,sha256_hex:()=>mz,sha384_base64:()=>_z,sha384_base64url:()=>vz,sha384_hex:()=>yz,sha512_base64:()=>wz,sha512_base64url:()=>xz,sha512_hex:()=>bz,string:()=>Jg,time:()=>Vg,ulid:()=>Pg,undefined:()=>Qg,unicodeEmail:()=>aI,uppercase:()=>ty,uuid:()=>Bi,uuid4:()=>GC,uuid6:()=>YC,uuid7:()=>QC,xid:()=>Tg});var Sg=/^[cC][0-9a-z]{6,}$/,Og=/^[0-9a-z]+$/,Pg=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tg=/^[0-9a-vA-V]{20}$/,Eg=/^[A-Za-z0-9]{27}$/,Rg=/^[a-zA-Z0-9_-]{21}$/,Cg=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,XC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,zg=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Bi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,GC=Bi(4),YC=Bi(6),QC=Bi(7),Ng=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ez=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,tz=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,aI=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rz=aI,nz=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,oz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jg(){return new RegExp(oz,"u")}var Dg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Mg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ug=e=>{let t=Ir(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Lg=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Zg=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Fg=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ep=/^[A-Za-z0-9_-]*$/,iz=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,az=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Bg=/^https?$/,Wg=/^\+[1-9]\d{6,14}$/,sI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Kg=new RegExp(`^${sI}$`);function uI(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Vg(e){return new RegExp(`^${uI(e)}$`)}function qg(e){let t=uI({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${sI}T(?:${o})$`)}var Jg=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Hg=/^-?\d+n?$/,Xg=/^-?\d+$/,Rp=/^-?\d+(?:\.\d+)?$/,Gg=/^(?:true|false)$/i,Yg=/^null$/i;var Qg=/^undefined$/i;var ey=/^[^A-Z]*$/,ty=/^[^a-z]*$/,sz=/^[0-9a-fA-F]*$/;function ul(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function cl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var uz=/^[0-9a-fA-F]{32}$/,cz=ul(22,"=="),lz=cl(22),dz=/^[0-9a-fA-F]{40}$/,pz=ul(27,"="),fz=cl(27),mz=/^[0-9a-fA-F]{64}$/,hz=ul(43,"="),gz=cl(43),yz=/^[0-9a-fA-F]{96}$/,_z=ul(64,""),vz=cl(64),bz=/^[0-9a-fA-F]{128}$/,wz=ul(86,"=="),xz=cl(86);var Ke=P("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),lI={number:"number",bigint:"bigint",object:"date"},Cp=P("$ZodCheckLessThan",(e,t)=>{Ke.init(e,t);let r=lI[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zp=P("$ZodCheckGreaterThan",(e,t)=>{Ke.init(e,t);let r=lI[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ry=P("$ZodCheckMultipleOf",(e,t)=>{Ke.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):mg(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ny=P("$ZodCheckNumberFormat",(e,t)=>{Ke.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=bg[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Xg)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),oy=P("$ZodCheckBigIntFormat",(e,t)=>{Ke.init(e,t);let[r,o]=wg[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),iy=P("$ZodCheckMaxSize",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:nl(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ay=P("$ZodCheckMinSize",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:nl(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sy=P("$ZodCheckSizeEquals",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:nl(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),uy=P("$ZodCheckMaxLength",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=ol(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),cy=P("$ZodCheckMinLength",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=ol(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ly=P("$ZodCheckLengthEquals",(e,t)=>{var r;Ke.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Io(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=ol(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ts=P("$ZodCheckStringFormat",(e,t)=>{var r,o;Ke.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),dy=P("$ZodCheckRegex",(e,t)=>{Ts.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),py=P("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ey),Ts.init(e,t)}),fy=P("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ty),Ts.init(e,t)}),my=P("$ZodCheckIncludes",(e,t)=>{Ke.init(e,t);let r=Ir(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),hy=P("$ZodCheckStartsWith",(e,t)=>{Ke.init(e,t);let r=new RegExp(`^${Ir(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),gy=P("$ZodCheckEndsWith",(e,t)=>{Ke.init(e,t);let r=new RegExp(`.*${Ir(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function cI(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues))}var yy=P("$ZodCheckProperty",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>cI(n,r,t.property));cI(o,r,t.property)}}),_y=P("$ZodCheckMimeType",(e,t)=>{Ke.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),vy=P("$ZodCheckOverwrite",(e,t)=>{Ke.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var ll=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
|
|
4
4
|
`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
|
|
5
5
|
`))}};var by={major:4,minor:4,patch:3};var ye=P("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=by;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,u)=>{let c=Oo(a),l;for(let d of s){if(d._zod.def.when){if(xg(a)||!d._zod.def.when(a))continue}else if(c)continue;let p=a.issues.length,f=d._zod.check(a);if(f instanceof Promise&&u?.async===!1)throw new qr;if(l||f instanceof Promise)l=(l??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(c||(c=Oo(a,p)))});else{if(a.issues.length===p)continue;c||(c=Oo(a,p))}}return l?l.then(()=>a):a},i=(a,s,u)=>{if(Oo(a))return a.aborted=!0,a;let c=n(s,o,u);if(c instanceof Promise){if(u.async===!1)throw new qr;return c.then(l=>e._zod.parse(l,u))}return e._zod.parse(c,u)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(l=>i(l,a,s)):i(c,a,s)}let u=e._zod.parse(a,s);if(u instanceof Promise){if(s.async===!1)throw new qr;return u.then(c=>n(c,o,s))}return n(u,o,s)}}Ie(e,"~standard",()=>({validate:n=>{try{let i=Ig(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return $g(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Wi=P("$ZodString",(e,t)=>{ye.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Jg(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Le=P("$ZodStringFormat",(e,t)=>{Ts.init(e,t),Wi.init(e,t)}),xy=P("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=zg),Le.init(e,t)}),ky=P("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Bi(o))}else t.pattern??(t.pattern=Bi());Le.init(e,t)}),Ay=P("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ng),Le.init(e,t)}),Iy=P("$ZodURL",(e,t)=>{Le.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===Bg.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),$y=P("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jg()),Le.init(e,t)}),Sy=P("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Rg),Le.init(e,t)}),Oy=P("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Sg),Le.init(e,t)}),Py=P("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Og),Le.init(e,t)}),Ty=P("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Pg),Le.init(e,t)}),Ey=P("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Tg),Le.init(e,t)}),Ry=P("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Eg),Le.init(e,t)}),Cy=P("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=qg(t)),Le.init(e,t)}),zy=P("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Kg),Le.init(e,t)}),Ny=P("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Vg(t)),Le.init(e,t)}),jy=P("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Cg),Le.init(e,t)}),Dy=P("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Dg),Le.init(e,t),e._zod.bag.format="ipv4"}),My=P("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Mg),Le.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Uy=P("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ug(t.delimiter)),Le.init(e,t),e._zod.bag.format="mac"}),Ly=P("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Lg),Le.init(e,t)}),Zy=P("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zg),Le.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Fy(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var By=P("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Fg),Le.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Fy(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function $I(e){if(!Ep.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Fy(r)}var Wy=P("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ep),Le.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{$I(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Ky=P("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Wg),Le.init(e,t)});function SI(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Vy=P("$ZodJWT",(e,t)=>{Le.init(e,t),e._zod.check=r=>{SI(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),qy=P("$ZodCustomStringFormat",(e,t)=>{Le.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Up=P("$ZodNumber",(e,t)=>{ye.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rp,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Jy=P("$ZodNumberFormat",(e,t)=>{ny.init(e,t),Up.init(e,t)}),dl=P("$ZodBoolean",(e,t)=>{ye.init(e,t),e._zod.pattern=Gg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Lp=P("$ZodBigInt",(e,t)=>{ye.init(e,t),e._zod.pattern=Hg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Hy=P("$ZodBigIntFormat",(e,t)=>{oy.init(e,t),Lp.init(e,t)}),Xy=P("$ZodSymbol",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Gy=P("$ZodUndefined",(e,t)=>{ye.init(e,t),e._zod.pattern=Qg,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Yy=P("$ZodNull",(e,t)=>{ye.init(e,t),e._zod.pattern=Yg,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Qy=P("$ZodAny",(e,t)=>{ye.init(e,t),e._zod.parse=r=>r}),pl=P("$ZodUnknown",(e,t)=>{ye.init(e,t),e._zod.parse=r=>r}),fl=P("$ZodNever",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),e_=P("$ZodVoid",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),t_=P("$ZodDate",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function pI(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}var r_=P("$ZodArray",(e,t)=>{ye.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let s=n[a],u=t.element._zod.run({value:s,issues:[]},o);u instanceof Promise?i.push(u.then(c=>pI(c,r,a))):pI(u,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Mp(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...er(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function OI(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=vg(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function PI(e,t,r,o,n,i){let a=[],s=n.keySet,u=n.catchall._zod,c=u.def.type,l=u.optin==="optional",d=u.optout==="optional";for(let p in t){if(p==="__proto__"||s.has(p))continue;if(c==="never"){a.push(p);continue}let f=u.run({value:t[p],issues:[]},o);f instanceof Promise?e.push(f.then(h=>Mp(h,r,p,t,l,d))):Mp(f,r,p,t,l,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var TI=P("$ZodObject",(e,t)=>{if(ye.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}let o=As(()=>OI(t));Ie(e._zod,"propValues",()=>{let s=t.shape,u={};for(let c in s){let l=s[c]._zod;if(l.values){u[c]??(u[c]=new Set);for(let d of l.values)u[c].add(d)}}return u});let n=Zi,i=t.catchall,a;e._zod.parse=(s,u)=>{a??(a=o.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let l=[],d=a.shape;for(let p of a.keys){let f=d[p],h=f._zod.optin==="optional",y=f._zod.optout==="optional",_=f._zod.run({value:c[p],issues:[]},u);_ instanceof Promise?l.push(_.then($=>Mp($,s,p,c,h,y))):Mp(_,s,p,c,h,y)}return i?PI(l,c,s,u,o.value,e):l.length?Promise.all(l).then(()=>s):s}}),n_=P("$ZodObjectJIT",(e,t)=>{TI.init(e,t);let r=e._zod.parse,o=As(()=>OI(t)),n=p=>{let f=new ll(["shape","payload","ctx"]),h=o.value,y=x=>{let S=wp(x);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};f.write("const input = payload.value;");let _=Object.create(null),$=0;for(let x of h.keys)_[x]=`key_${$++}`;f.write("const newResult = {};");for(let x of h.keys){let S=_[x],C=wp(x),j=p[x],F=j?._zod?.optin==="optional",A=j?._zod?.optout==="optional";f.write(`const ${S} = ${y(x)};`),F&&A?f.write(`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as o,d as u}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as o,d as u}from"./K75JTQPW.js";var a=t=>t.thumbnailUrl!==void 0;function m(t,n,s=!1){if(a(t))return t.thumbnailUrl;let r=t.thumbnail;if(!r)return null;if(r.startsWith("http"))return r;let i=u(n);return`${s?"https://www.arcgis.com/sharing/rest/":o(n)}community/users/${t.username}/info/${r}${i&&!s?`?token=${i}`:""}`}export{m as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{L as n,R as c,j as d,w as a}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{L as n,R as c,j as d,w as a}from"./AICPYLWE.js";var i=class extends n{constructor(){super(...arguments),this.cardProps={},this.arcgisGroupCardSelect=a(),this.arcgisGroupBrowserCardPreview=a()}static{this.properties={group:0,browser:0,cardProps:0}}async restoreFocus(){await this.renderRoot.querySelector("arcgis-portal-group-card")?.restoreFocus?.()}getBrowser(){let r=this.el.closest("arcgis-portal-group-browser");return this.browser??r}isSelected(r,t){if(!r)return!1;let e=t.selectedGroupsState;return Array.isArray(e)&&e.some(({id:o})=>o===r)}render(){let r=this.getBrowser(),t=this.group;if(!r||!t)return;let e=this.cardProps,o=r.store.view??"list";return d`<arcgis-portal-group-card .portal=${r.portal} .group=${t} .user=${e.user} .indeterminate=${e.indeterminate} .view=${o} .selection=${r.selection} .selected=${e.selected??this.isSelected(t.id,r)} .preview=${e.preview??r.preview} .previewed=${e.previewed??r.previewedGroupId===t.id} .name=${e.name} .showSummary=${e.showSummary??!0} .hideBadges=${e.hideBadges??!1} .hideDateUpdated=${e.hideDateUpdated??!1} .showDateCreated=${e.showDateCreated??!1} .hideViewableBy=${e.hideViewableBy??!1} .hideOwner=${e.hideOwner??!1} .link=${e.link} .linkHandler=${e.linkHandler} .newTab=${e.newTab??!1} .disabled=${e.disabled??!1} @arcgisGroupCardSelect=${s=>{s.stopPropagation(),this.arcgisGroupCardSelect.emit(s.detail)}} @arcgisGroupBrowserCardPreview=${s=>{s.stopPropagation(),this.arcgisGroupBrowserCardPreview.emit(s.detail)}}><slot name=content-top slot=content-top></slot><div slot=content-end><slot name=content-end></slot></div><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-portal-group-card>`}};c("arcgis-portal-group-browser-card",i);export{i as a};
|